text: (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[3],[function(e,t){e.exports=googlesitekit.i18n},,,,function(e,t){e.exports=googlesitekit.data},,function(e,t,n){"use strict";(function(e){n.d(t,"g",(function(){return S})),n.d(t,"m",(function(){return D})),n.d(t,"b",(function(){return w})),n.d(t,"i",(function(){return R})),n.d(t,"k",(function(){return C})),n.d(t,"l",(function(){return N})),n.d(t,"x",(function(){return A})),n.d(t,"a",(function(){return x})),n.d(t,"t",(function(){return P})),n.d(t,"e",(function(){return L})),n.d(t,"h",(function(){return T}));var a=n(7),r=n.n(a),i=n(14),o=n.n(i),c=n(5),l=n.n(c),s=n(35),u=n.n(s),d=n(15),g=n(20),f=n(57),m=n(210),p=n(53);n.d(t,"v",(function(){return p.c}));var h=n(31),b=n(65);n.d(t,"s",(function(){return b.a})),n.d(t,"w",(function(){return b.b}));var v=n(68);n.d(t,"u",(function(){return v.a}));var y=n(72);n.d(t,"c",(function(){return y.b})),n.d(t,"j",(function(){return y.c}));n(47);var _=n(74);n.d(t,"n",(function(){return _.b})),n.d(t,"p",(function(){return _.c})),n.d(t,"q",(function(){return _.d})),n.d(t,"r",(function(){return _.e})),n.d(t,"f",(function(){return h.b}));var O=n(94);n.d(t,"o",(function(){return O.a}));var k=n(95);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"d",(function(){return k.a}));var S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale","","lang"]);if(n){var a=n.match(/^(\w{2})?(_)?(\w{2})/);if(a&&a[0])return a[0].replace(/_/g,"-")}return t.navigator.language},D=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},w=function(e,t){if("0"===e||0===e||isNaN(e))return null;var n=(t-e)/e;return isNaN(n)||!Object(d.isFinite)(n)?null:n},R=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,n=t.modules;return n?Object.keys(n).reduce((function(e,t){return"object"!==u()(n[t])||void 0===n[t].slug||void 0===n[t].name||n[t].slug!==t?e:E(E({},e),{},l()({},t,n[t]))}),{}):{}},C=function(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e._googlesitekitLegacyData,r=a.admin,i=r.connectURL,o=r.adminRoot,c=a.setup.needReauthenticate,l=R(a)[t].screenID,s="pagespeed-insights"===t?{notification:"authentication_success",reAuth:void 0}:{},u=Object(f.a)(o,E({page:t&&n&&l?l:"googlesitekit-dashboard",slug:t,reAuth:n},s));if(!c)return u;var d=encodeURIComponent(Object(m.a)(u));return u=o+"?"+d,Object(f.a)(i,{redirect:u,status:n})},N=function(t,n){var a=e._googlesitekitLegacyData.admin.adminRoot;return t||(t="googlesitekit-dashboard"),n=E({page:t},n),Object(f.a)(a,n)},A=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},x=function(){var e=o()(r.a.mark((function e(t,n,a){var i,o,c,l,s=arguments;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=s.length>3&&void 0!==s[3]?s[3]:p.c,o=s.length>4&&void 0!==s[4]?s[4]:R,e.next=4,t.setModuleActive(n,a);case 4:return c=e.sent,(l=o())[n]&&(l[n].active=a),e.next=9,i("".concat(n,"_setup"),a?"module_activate":"module_deactivate",n);case 9:return e.abrupt("return",c);case 10:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(g.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(h.b)(e,t),1)},L=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(d.unescape)(t)};function T(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e._googlesitekitBaseData,a=n.blogPrefix,r=n.isNetworkMode;return r?t:a+t}}).call(this,n(21))},,,function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"f",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"i",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"m",(function(){return g})),n.d(t,"l",(function(){return f})),n.d(t,"n",(function(){return m})),n.d(t,"k",(function(){return p}));var a="modules/analytics",r="account_create",i="property_create",o="profile_create",c="analyticsAccountCreate",l="analyticsSetup",s="https://www.googleapis.com/auth/analytics.provision",u="https://www.googleapis.com/auth/analytics.edit",d=1,g="dashboardAllTrafficWidgetDimensionName",f="dashboardAllTrafficWidgetDimensionColor",m="dashboardAllTrafficWidgetDimensionValue",p="dashboardAllTrafficWidgetActiveRowIndex"},,,function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o}));var a="core/user",r="connected_url_mismatch",i="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var a="core/site",r="primary",i="secondary"},function(e,t,n){"use strict";var a=n(106),r=n.n(a);n.d(t,"o",(function(){return r.a})),n.d(t,"c",(function(){return a.HelperText})),n.d(t,"d",(function(){return a.Input}));var i=n(186);n.d(t,"j",(function(){return i.a}));var o=n(285);n.d(t,"g",(function(){return o.a}));var c=n(286);n.d(t,"i",(function(){return c.a}));var l=n(139),s=n.n(l);n.d(t,"n",(function(){return s.a})),n.d(t,"l",(function(){return l.Option}));var u=n(287);n.d(t,"k",(function(){return u.a}));var d=n(283);n.d(t,"f",(function(){return d.a}));var g=n(284);n.d(t,"e",(function(){return g.a}));var f=n(282);n.d(t,"h",(function(){return f.a}));var m=n(61);n.d(t,"a",(function(){return m.a})),n.d(t,"b",(function(){return m.b})),n.d(t,"m",(function(){return m.c}))},function(e,t,n){"use strict";var a=n(11),r=n.n(a),i=n(15),o=n(90),c=n(57),l=n(20),s=n(31),u=n(72),d=n(66),g=n(135),f=n(102),m=n(36),p=n(79);n.d(t,"a",(function(){return p.a})),n.d(t,"b",(function(){return p.b}));var h=n(134),b=n(163),v={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=[],s=25;Object(i.each)(e,(function(e){e.key=Object(m.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(m.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),s),s+=25):a.push(e)})),a=Object(i.sortBy)(a,"priority");var g=[],f=[],p={},h=!!a.find((function(e){return e.priority<10}));Object(i.each)(a,(function(e,t){!n&&10<=e.priority&&h?f.push(e):p[e.key]?p[e.key].push(t):(p[e.key]=[t],g.push(e))}));var b=10,v=g.slice(0,b),y=g.slice(b);if(y=y.concat(f),0!==v.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var _=null!==Object(u.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:_||void 0}),data:{request:v},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=r()(e,2),i=n[0],o=n[1];if(p[i]){if(Object(d.d)(o)){var c=p[i][0],s=a[c],u=s.datapoint,g=s.type,f=s.identifier;t.handleWPError({method:"GET",datapoint:u,type:g,identifier:f,error:o})}else Object(m.f)(i,o);p[i].forEach((function(e){var n=a[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,a=e.type,r=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(a),"identifier:".concat(r),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(b.a)({method:t,datapoint:n,type:a,identifier:r,error:i});var o=i.data;if(o&&(o.reason||o.reconnectURL)){var c=0;["authError","insufficientPermissions"].includes(o.reason)&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(f.a),1),c++),o.reconnectURL&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(s.b)(g.a),1),c++),c&&Object(l.b)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease",(function(e){return Object(l.g)("googlesitekit.TotalNotifications","googlesitekit.AuthCountIncrease"),e+c}))}},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:h.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var a=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(m.d)(e,t,n,r);if(!i){var s=Object(m.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),r)}).then((function(e){return i||Object(m.f)(l,e),Promise.resolve(e)})).catch((function(r){return a.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},set:function(e,t,n,a){var r=this,i={};return i.data=a,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(a){return v.invalidateCacheGroup(e,t,n),new Promise((function(e){e(a)}))})).catch((function(a){return r.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},setModuleActive:function(e,t){return this.set(p.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",v.collectModuleData.bind(v)),t.c=v},,,function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(26),o=n.n(i),c=n(2),l=n.n(c),s=n(8),u=n.n(s),d=n(0);function Link(t){var n=t.href,a=t.children,i=t.className,c=t.arrow,l=t.external,s=t.inverse,g=t.back,f=t.small,m=t.inherit,p=t.caps,h=t.danger,b=t.disabled,v=t["aria-label"],y=o()(t,["href","children","className","arrow","external","inverse","back","small","inherit","caps","danger","disabled","aria-label"]),_=n&&!b,O=_?"a":"button";return e.createElement(O,r()({className:u()("googlesitekit-cta-link",i,{"googlesitekit-cta-link--arrow":c,"googlesitekit-cta-link--external":l,"googlesitekit-cta-link--inverse":s,"googlesitekit-cta-link--back":g,"googlesitekit-cta-link--small":f,"googlesitekit-cta-link--inherit":m,"googlesitekit-cta-link--caps":p,"googlesitekit-cta-link--danger":h,"googlesitekit-cta-link--disabled":b}),href:_?n:void 0,target:_&&l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,disabled:b,"aria-label":function(){var e=v;if(!l)return e;"string"==typeof a&&(e=e||a);var t=Object(d._x)("(opens in a new tab)","screen reader text","google-site-kit");return e?"".concat(e," ").concat(t):t}()},y),a)}Link.propTypes={dangerouslySetInnerHTML:l.a.shape({__html:l.a.string}),onClick:l.a.func,href:l.a.string,children:l.a.oneOfType([l.a.string.isRequired,l.a.array.isRequired,l.a.element.isRequired]),className:l.a.string,arrow:l.a.bool,external:l.a.bool,inverse:l.a.bool,back:l.a.bool,small:l.a.bool,inherit:l.a.bool,caps:l.a.bool,danger:l.a.bool,disabled:l.a.bool},Link.defaultProps={dangerouslySetInnerHTML:void 0,onClick:null,href:"",className:"",arrow:!1,external:!1,inverse:!1,back:!1,small:!1,inherit:!1,caps:!1,danger:!1,disabled:!1},t.a=Link}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"r",(function(){return _})),n.d(t,"p",(function(){return O.a})),n.d(t,"i",(function(){return m})),n.d(t,"j",(function(){return p})),n.d(t,"n",(function(){return h})),n.d(t,"o",(function(){return b})),n.d(t,"m",(function(){return v})),n.d(t,"l",(function(){return y})),n.d(t,"k",(function(){return m})),n.d(t,"e",(function(){return k})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return S})),n.d(t,"f",(function(){return D})),n.d(t,"h",(function(){return w})),n.d(t,"a",(function(){return R})),n.d(t,"t",(function(){return C})),n.d(t,"q",(function(){return N})),n.d(t,"v",(function(){return A})),n.d(t,"u",(function(){return x})),n.d(t,"g",(function(){return P})),n.d(t,"s",(function(){return L}));var a=n(15),r=n(8),i=n.n(r),o=n(0),c=n(74),l=n(6),s=function(e){if(!e||!e.length)return!1;var t=e[0].data.totals,n=t[0].values,a=t[1].values,r=n[1],i=n[2],o=n[3],c=n[4],s=n[5];return{totalSessions:r,averageBounceRate:i,averageSessionDuration:o,totalSessionsChange:Object(l.b)(a[1],n[1]),averageBounceRateChange:Object(l.b)(a[2],n[2]),averageSessionDurationChange:Object(l.b)(a[3],n[3]),goalCompletions:c,goalCompletionsChange:Object(l.b)(a[4],n[4]),totalPageViews:s,totalPageViewsChange:Object(l.b)(a[5],n[5])}},u=n(105),d=n(11),g=n.n(d),f=n(9),m=function(e){return(parseInt(e,10)||0)>0};function p(e){return e===f.a||m(e)}function h(e){return"string"==typeof e&&/^UA-\d+-\d+$/.test(e)}function b(e){return e===f.h||h(e)}function v(e){return e===f.g||m(e)}function y(e){return"string"==typeof e&&e.trim().length>0}function _(e){if(!h(e))return!1;var t=e.match(/^UA-(\d+)-(\d+)/),n=g()(t,3);return{accountID:n[1],propertyID:e,number:n[2]}}var O=n(146);function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return null;var n=t.keyColumnIndex,a=void 0===n?0:n,r=t.maxSlices,i=t.withOthers,c=void 0!==i&&i,l=t.tooltipCallback,s=e[0].data,u=s.rows,d="function"==typeof l,g=["Source","Percent"];d&&g.push({type:"string",role:"tooltip",p:{html:!0}});var f=s.totals[0].values[a],m=[g],p=c,h=u.length,b=1;r>0?(p=c&&u.length>r,h=Math.min(u.length,p?r-1:r)):(p=!1,h=u.length);for(var v=0;v<h;v++){var y=u[v],_=y.metrics[0].values[a],O=_/f;b-=O;var k=[y.dimensions[0],O];d&&k.push(l(y,k)),m.push(k)}if(p&&b>0){var j=[Object(o.__)("Others","google-site-kit"),b];d&&j.push(l(null,j)),m.push(j)}return m}function j(e,t){var n=[];return Object(a.each)(e,(function(e){if(e.metrics){var a=e.metrics[0].values,r=e.dimensions[0],i=Object(u.a)(r);n.push([i,a[t]])}})),n}var E=function(e,t,n){if(!e||!e.length)return null;var r=e[0].data.rows;if(!r)return!1;var s=r.length;if(2*n>s){for(var u=new Date,d=0;n>d;d++){var g=(u.getMonth()+1).toString(),f=u.getDate().toString(),m=u.getFullYear().toString()+(2>g.length?"0":"")+g+(2>f.length?"0":"")+f;if(d>s){var p={dimensions:[m],metrics:[{values:[0,0,0,0,0]}]};r.unshift(p)}u.setDate(u.getDate()-1)}r.push([0,0])}var h=[Object(o.__)("Users","google-site-kit"),Object(o.__)("Sessions","google-site-kit"),Object(o.__)("Bounce Rate %","google-site-kit"),Object(o.__)("Session Duration","google-site-kit")],b=[function(e){return parseFloat(e).toLocaleString()},function(e){return parseFloat(e).toLocaleString()},function(e){return Object(l.p)(e/100,{style:"percent",signDisplay:"never",maximumFractionDigits:2})},l.r],v=h[t]===Object(o.__)("Session Duration","google-site-kit"),y=v?"timeofday":"number",_=[[{type:"date",label:Object(o.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:y,label:h[t]},{type:y,label:Object(o.__)("Previous period","google-site-kit")}]],O=r.slice(r.length-n,r.length),k=r.slice(0,r.length-n),E=j(O,t),S=j(k,t),D=Object(c.a)(),w={weekday:"short",month:"short",day:"numeric"};return Object(a.each)(E,(function(e,n){if(e[0]&&e[1]&&S[n]){var a=parseFloat(S[n][1]),r=0!==a?e[1]/a-1:1,c=Object(o.sprintf)(
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
  Object(o._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(D,w),S[n][0].toLocaleDateString(D,w)),s=Object(o.sprintf)(
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
  Object(o._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),h[t],b[t](e[1]),'<svg width="9" height="9" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg" class="'.concat(i()("googlesitekit-change-arrow",{"googlesitekit-change-arrow--up":r>0,"googlesitekit-change-arrow--down":r<0}),'">\n\t\t\t\t<path d="M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z" fill="currentColor" />\n\t\t\t</svg>'),Object(l.p)(Math.abs(r),"%"));_.push([e[0],'<div class="'.concat(i()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":r>0,"googlesitekit-visualization-tooltip--down":r<0}),'">\n\t\t\t\t<p>').concat(c,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),v?Object(l.d)(e[1]):e[1],v?Object(l.d)(S[n][1]):S[n][1]])}})),_},S=function(e){if(!e||!e.length)return null;var t=e[0].data.rows,n=[[{type:"date",label:"Day"},{type:"number",label:"Users"},{type:"number",label:"Sessions"},{type:"number",label:"Goals Completed"}]];return Object(a.each)(t,(function(e){var t=e.metrics[0].values,a=e.dimensions[0],r=Object(u.a)(a);n.push([r,t[0],t[1],t[4]])})),n},D=function(e){var t;return e.error&&e.error.status?function(e,t){var n="";switch(e){case"INVALID_ARGUMENT":n=Object(o.__)("Analytics module needs to be configured.","google-site-kit");break;case"UNAUTHENTICATED":n=Object(o.__)("You need to be authenticated to get this data.","google-site-kit");break;case"PERMISSION_DENIED":n=Object(o.__)("Your account does not have sufficient permission to access this data, please consult to your web administrator.","google-site-kit");break;case"RESOURCE_EXHAUSTED":n=Object(o.__)("Your account exceeded the maximum quota. Please try again later.","google-site-kit");break;case"INTERNAL":n=Object(o.__)("Unexpected internal server error occurred.","google-site-kit");break;case"BACKEND_ERROR":n=Object(o.__)("Analytics server returned unknown error. Please try again later.","google-site-kit");break;case"UNAVAILABLE":n=Object(o.__)("The service was unable to process the request. Please try again later.","google-site-kit");break;default:n=t}return n}(e.error.status,e.error.message):!!(e.code&&e.message&&(null===(t=e.data)||void 0===t?void 0:t.status))&&e.message},w=function(e){if(!e||!e.length)return!0;if(e&&e[0]&&e[0].data&&e[0].data.totals&&e[0].data.totals[0]){var t=e[0].data.totals[0].values,n=!0;return Object(a.each)(t,(function(e){0!==parseInt(e,10)&&(n=!1)})),n}return!1},R={dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:adsenseRevenue",alias:"Earnings"},{expression:"ga:adsenseECPM",alias:"Page RPM"},{expression:"ga:adsensePageImpressions",alias:"Impressions"}],orderby:[{fieldName:"ga:adsenseRevenue",sortOrder:"DESCENDING"}],limit:10},C={compareDateRanges:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"}],limit:180},N={multiDateRange:1,dimensions:"ga:date",metrics:[{expression:"ga:users",alias:"Users"},{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:bounceRate",alias:"Bounce Rate"},{expression:"ga:avgSessionDuration",alias:"Average Session Duration"},{expression:"ga:goalCompletionsAll",alias:"Goal Completions"},{expression:"ga:pageviews",alias:"Pageviews"}],limit:10},A={multiDateRange:1,metrics:[{expression:"ga:users",alias:"Total Users"}]},x={dimensions:"ga:channelGrouping",metrics:[{expression:"ga:sessions",alias:"Sessions"},{expression:"ga:users",alias:"Users"},{expression:"ga:newUsers",alias:"New Users"}],orderby:[{fieldName:"ga:users",sortOrder:"DESCENDING"}],limit:10},P=function(){return{dimensions:["ga:pageTitle","ga:pagePath"].join(","),metrics:[{expression:"ga:pageviews",alias:"Pageviews"},{expression:"ga:uniquePageviews",alias:"Unique Pageviews"},{expression:"ga:bounceRate",alias:"Bounce rate"}],orderby:[{fieldName:"ga:pageviews",sortOrder:"DESCENDING"}],limit:10}},L=function(e){var t,n,a,r,i,o,c,l,s,u;return{totalUsers:null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.totals)||void 0===a||null===(r=a[0])||void 0===r||null===(i=r.values)||void 0===i?void 0:i[0],previousTotalUsers:null==e||null===(o=e[0])||void 0===o||null===(c=o.data)||void 0===c||null===(l=c.totals)||void 0===l||null===(s=l[1])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0]}}},function(e,t,n){"use strict";(function(e){var a=n(2),r=n.n(a),i=n(8),o=n.n(i);function PreviewBlock(t){var n=t.className,a=t.width,r=t.height,i=t.shape,c=t.padding;return e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":c}),style:{width:a,height:r}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:r.a.string,width:r.a.string,height:r.a.string,shape:r.a.string,padding:r.a.bool},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1},t.a=PreviewBlock}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core/modules",r="insufficient_module_dependencies"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(25),r=n.n(a),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(a){return function InnerComponent(i){return e.createElement(t,r()({},i,n,{OriginalComponent:a}))}}}}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a="modules/adsense",r=1},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(2),m=n.n(f),p=n(8),h=n.n(p),b=n(1),v=n(175),y=n(176);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var O=function(t){l()(Layout,t);var n=_(Layout);function Layout(){return r()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,a=t.footer,r=t.children,i=t.title,o=t.headerCTALabel,c=t.headerCTALink,l=t.footerCTALabel,s=t.footerCTALink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},n&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),r,a&&e.createElement(y.a,{ctaLabel:l,ctaLink:s,footerContent:u}))}}]),Layout}(b.Component);O.propTypes={header:m.a.bool,footer:m.a.bool,children:m.a.node.isRequired,title:m.a.string,headerCTALabel:m.a.string,headerCTALink:m.a.string,footerCTALabel:m.a.string,footerCTALink:m.a.string,footerContent:m.a.node,className:m.a.string,fill:m.a.bool,relative:m.a.bool},O.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=O}).call(this,n(1))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return f}));var a=n(35),r=n.n(a),i=n(15),o=n(47),c=n(68),l="googlesitekit_legacy_1.27.0_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==r()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==r()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var a={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(a))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var a=JSON.parse(Object(o.a)().getItem(l+t));return a&&"object"===r()(a)&&a.date&&(!n||Date.now()/1e3-a.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(a.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},g=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},f=function(e,t,n){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&a&&"object"===r()(a)&&Object.keys(a).length&&i.push(Object(c.a)(a)),i.join("::")}}).call(this,n(21))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));var a="modules/search-console",r=1},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(11),o=n.n(i),c=n(16),l=n.n(c),s=n(17),u=n.n(s),d=n(43),g=n.n(d),f=n(18),m=n.n(f),p=n(19),h=n.n(p),b=n(10),v=n.n(b),y=n(271),_=n.n(y),O=n(155),k=n.n(O),j=n(20),E=n(1),S=n(0),D=n(4),w=n.n(D),R=n(6),C=n(83),N=n(93),A=n(168),x=n(79),P=n(12),L=n(217);function T(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=v()(e);if(t){var r=v()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return h()(this,n)}}var I=w.a.withSelect,z=k()(R.u);t.a=function(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{inGrid:!1,fullWidth:!1,createGrid:!1},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(e){if(e&&e.error)return e.error.message?e.error.message:e.error.errors&&e.error.errors[0]&&e.error.errors[0].message?e.error.errors[0].message:Object(S.__)("Unidentified error","google-site-kit");if(e&&e.errors&&e.errors[0]&&e.errors[0].message)return e.errors[0].message;if(e&&e.error_data){var t=Object.values(e.error_data);if(t[0]&&"RateLimitExceeded"===t[0].reason)return Object(S.__)("Too many requests have been sent within a given time span. Please reload this page again in a few seconds","google-site-kit")}if(e&&e.errors){var n=Object.values(e.errors);if(n[0]&&n[0][0])return n[0][0]}return!!(e.code&&e.message&&e.data&&e.data.status)&&e.message},d=n.reduce((function(e,t){return _()(t.context).forEach((function(n){e[n]=e[n]||[],e[n].push(t)})),e}),{}),f=function(n){m()(NewComponent,n);var f=U(NewComponent);function NewComponent(e){var t;return l()(this,NewComponent),(t=f.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1,moduleRequiringSetup:""},t.handleModuleDataReset=t.handleModuleDataReset.bind(g()(t)),t.handleReturnedData=t.handleReturnedData.bind(g()(t)),t.addDataRequests=t.addDataRequests.bind(g()(t)),t.removeDataRequests=t.removeDataRequests.bind(g()(t)),t}return u()(NewComponent,[{key:"componentDidMount",value:function(){Object(j.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.addDataRequests()}},{key:"componentWillUnmount",value:function(){Object(j.f)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",this.handleModuleDataReset),this.removeDataRequests()}},{key:"handleModuleDataReset",value:function(){this.removeDataRequests(),this.addDataRequests(),this.setState({data:!1,errorMessage:!1,zeroData:!1})}},{key:"addDataRequests",value:function(){var e=this,t=this.props.dateRange;Object.entries(d).forEach((function(n){var a=o()(n,2),r=a[0],i=a[1];Object(j.b)("googlesitekit.module".concat(r,"DataRequest"),"googlesitekit.withData.".concat(z(i)),(function(n){var a,r=Object(R.i)(),o=[],c=T(i);try{var l=function(){var n,i,c=a.value,l=c||{},s=l.type,u=l.identifier;if(x.b===s&&!(null===(n=r[u])||void 0===n?void 0:n.setupComplete))return e.setState({moduleRequiringSetup:u,moduleRequiringActivation:!(null===(i=r[u])||void 0===i?void 0:i.active)}),"continue";var d=Object(L.a)(c,t);d.callback=function(t){e.handleReturnedData(t,c)},o.push(d)};for(c.s();!(a=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return n.concat(o)}))}))}},{key:"removeDataRequests",value:function(){Object.entries(d).forEach((function(e){var t=o()(e,2),n=t[0],a=t[1];Object(j.g)("googlesitekit.module".concat(n,"DataRequest"),"googlesitekit.withData.".concat(z(a)))}))}},{key:"handleReturnedData",value:function(e,t){var n=this.props,a=n.handleDataError,r=n.handleDataSuccess,i=t.datapoint,o=t.identifier,l=t.toState,u=s(e);u?(this.setState({errorMessage:u,errorObj:e,module:o}),a&&a(u,e)):c(e,i,t)?(a&&a(u,e),this.setState({zeroData:!0})):r&&r(),this.setState({requestDataToState:l,data:e,datapoint:i,module:o})}},{key:"render",value:function(){var n=this.state,o=n.data,c=n.datapoint,l=n.module,s=n.zeroData,u=n.errorMessage,d=n.errorObj,g=n.requestDataToState,f=n.moduleRequiringSetup;if(n.moduleRequiringActivation)return Object(A.b)(f,i.inGrid,i.fullWidth,i.createGrid);if(f)return Object(A.a)(f,i.inGrid,i.fullWidth,i.createGrid);if(!o)return a;if(u)return"string"!=typeof u?u:Object(N.a)(l,u,i.inGrid,i.fullWidth,i.createGrid,d);if(s){var m,p=(null===(m=Object(R.i)()[l])||void 0===m?void 0:m.name)||Object(S.__)("Site Kit","google-site-kit");return Object(C.a)(p,i.inGrid,i.fullWidth,i.createGrid)}return e.createElement(t,r()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(E.Component),p=t.displayName||t.name||"AnonymousComponent";return f.displayName="withData(".concat(p,")"),I((function(e){return{dateRange:e(P.a).getDateRange()}}))(f)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(43),l=n.n(c),s=n(18),u=n.n(s),d=n(19),g=n.n(d),f=n(10),m=n.n(f),p=n(2),h=n.n(p),b=n(8),v=n.n(b),y=n(1),_=n(0),O=n(116),k=n(64),j=n(6);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=m()(e);if(t){var r=m()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return g()(this,n)}}var S=function(t){u()(DataBlock,t);var n=E(DataBlock);function DataBlock(e){var t;return r()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,a=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||a(n)}},{key:"render",value:function(){var t=this.props,n=t.className,a=t.title,r=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,m=t.invertChangeColor,p="button"===l?"button":"",h=f;h&&m&&(h=Object(y.cloneElement)(f,{invertChangeColor:m}));var b=o;o&&(c&&(b="%"===c?Object(j.p)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(j.p)(o,c)),s&&(b=Object(_.sprintf)(s,b)));var E=r&&Object(j.p)(r,i||void 0);return e.createElement("div",{className:v()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&p,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&a,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},a),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},E)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:"googlesitekit-data-block__change"},!!o&&e.createElement(y.Fragment,null,e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(O.a,{direction:0<parseFloat(o)?"up":"down",invertColor:m})),e.createElement("span",{className:"googlesitekit-data-block__value"},b))),g&&e.createElement(k.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(y.Component);S.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.string,context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},S.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=S}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(7),o=n.n(i),c=n(14),l=n.n(c),s=n(16),u=n.n(s),d=n(17),g=n.n(d),f=n(43),m=n.n(f),p=n(18),h=n.n(p),b=n(19),v=n.n(b),y=n(10),_=n.n(y),O=n(2),k=n.n(O),j=n(8),E=n.n(j),S=n(15),D=n(1),w=n(121),R=n(65),C=n(36),N=n(40),A=n(45),x=n(153),P=n(164),L=n(27),T=n(129);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=_()(e);if(t){var r=_()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return v()(this,n)}}var U=function(t){h()(Notification,t);var n,a,i=M(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(D.createRef)(),t.handleDismiss=t.handleDismiss.bind(m()(t)),t.handleCTAClick=t.handleCTAClick.bind(m()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(C.f)("notification::displayed::".concat(t.props.id),new Date),t}return g()(Notification,[{key:"handleDismiss",value:(a=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(C.f)("notification::dismissed::".concat(e.props.id),new Date),t.style.display="none";var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,a,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,a=n.isDismissable,!(r=n.onCTAClick)){e.next=5;break}return e.next=5,r(t);case 5:a&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,a=Object(C.c)("notification::dismissed::".concat(t));if(a){var r=new Date(a);r.setSeconds(r.getSeconds()+parseInt(n,10)),r<new Date&&Object(C.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,a=this.props,i=a.children,o=a.id,c=a.className,l=a.title,s=a.description,u=a.blockData,d=a.winImage,g=a.WinImageSVG,f=a.SmallImageSVG,m=a.smallImage,p=a.format,h=a.learnMoreURL,b=a.learnMoreDescription,v=a.learnMoreLabel,y=a.ctaLink,_=a.ctaLabel,O=a.ctaTarget,k=a.type,j=a.dismiss,M=a.isDismissable,U=a.logo,I=a.module,z=a.moduleName,W=a.pageIndex,q=a.anchorLink,F=a.anchorLinkLabel;if(Object(C.c)("notification::dismissed::".concat(o)))return null;var G,H=n?"is-closed":"is-open",B="large"===p&&"win-stats-increase"===k,V="mdc-layout-grid__cell--span-12";"large"===p?(V="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",B&&(V="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===p&&(V="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),G="win-warning"===k?e.createElement(x.a,null):"win-error"===k?e.createElement(P.a,null):"";var K=e.createElement(D.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(S.map)(u,(function(t,n){return e.createElement("div",{key:n,className:E()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":B,"mdc-layout-grid__cell--span-4-desktop":!B})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(N.a,t)))})))),$=e.createElement(D.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),q&&F&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(L.a,{href:q},F)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(D.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(R.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),v&&e.createElement(D.Fragment,null," ",e.createElement(L.a,{href:h,external:!0,inherit:!0},v),b),W&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},W))),i),Z=I?e.createElement(T.a,{slug:I,size:19}):e.createElement(w.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:E()(c,"googlesitekit-publisher-win",(t={},r()(t,"googlesitekit-publisher-win--".concat(p),p),r()(t,"googlesitekit-publisher-win--".concat(k),k),r()(t,"googlesitekit-publisher-win--".concat(H),H),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},U&&e.createElement("div",{className:E()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":B,"mdc-layout-grid__cell--order-1-tablet":B})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},Z),z&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},z)),(m||f)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},m&&e.createElement("img",{className:"googlesitekit-publisher-win__small-image",alt:"",src:m}),f&&e.createElement(f,null)),e.createElement("div",{className:E()("mdc-layout-grid__cell",V)},B?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},$),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},K)):e.createElement(D.Fragment,null,$,K),y&&e.createElement(A.a,{className:"googlesitekit-notification__cta",href:y,target:O,onClick:this.handleCTAClick},_),M&&j&&e.createElement(L.a,{onClick:this.handleDismiss},j)),(d||g)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},d&&e.createElement("img",{alt:"",src:d}),g&&e.createElement(g,null))),("win-error"===k||"win-warning"===k)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},G)))))}}]),Notification}(D.Component);U.propTypes={id:k.a.string.isRequired,className:k.a.string,title:k.a.string.isRequired,description:k.a.node,learnMoreURL:k.a.string,learnMoreDescription:k.a.string,learnMoreLabel:k.a.string,blockData:k.a.array,winImage:k.a.string,WinImageSVG:k.a.elementType,smallImage:k.a.string,SmallImageSVG:k.a.elementType,format:k.a.string,ctaLink:k.a.string,ctaLabel:k.a.string,type:k.a.string,dismiss:k.a.string,isDismissable:k.a.bool,logo:k.a.bool,module:k.a.string,moduleName:k.a.string,pageIndex:k.a.string,dismissExpires:k.a.number,showOnce:k.a.bool,onCTAClick:k.a.func,onDismiss:k.a.func,anchorLink:k.a.string,anchorLinkLabel:k.a.string},U.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=U}).call(this,n(1))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="_googlesitekitDataLayer",r="data-googlesitekit-gtag"},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(26),o=n.n(i),c=n(8),l=n.n(c),s=n(2),u=n.n(s),d=n(132),g=n(1),f=n(23),m=Object(g.forwardRef)((function(t,n){var a=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,m=t.disabled,p=t.target,h=t.icon,b=t.trailingIcon,v=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon"]),y=Object(g.useCallback)((function(e){null!==e&&f.j.attachTo(e)}),[]),_=Object(d.a)(n,y),O=i&&!m?"a":"button";return e.createElement(O,r()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:m?void 0:i,ref:_,disabled:!!m,target:p||"_self",role:"a"===O?"button":void 0},v),h,e.createElement("span",{className:"mdc-button__label"},a),b)}));m.displayName="Button",m.propTypes={onClick:u.a.func,children:u.a.string.isRequired,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element},m.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null},t.a=m}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return a}));var a="core/location"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a,r=n(16),i=n.n(r),o=n(17),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var a="__storage_test__";return n.setItem(a,a),n.removeItem(a),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return a||(a=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),a}}).call(this,n(21))},function(e,t,n){"use strict";(function(e){var a=n(2),r=n.n(a),i=n(8),o=n.n(i),c=n(27),l=function CTA(t){var n=t.title,a=t.description,r=t.ctaLink,i=t.ctaLabel,l=t.error,s=t.onClick,u=t["aria-label"];return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":l})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),a&&"string"==typeof a&&e.createElement("p",{className:"googlesitekit-cta__description"},a),a&&"string"!=typeof a&&e.createElement("div",{className:"googlesitekit-cta__description"},a),i&&e.createElement(c.a,{href:r,onClick:s,inverse:!l,caps:!0,arrow:!0,"aria-label":u},i))};l.propTypes={title:r.a.string.isRequired,description:r.a.oneOfType([r.a.string,r.a.node]),ctaLink:r.a.string,ctaLabel:r.a.string,"aria-label":r.a.string,error:r.a.bool,onClick:r.a.func},l.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",error:!1,onClick:function(){}},t.a=l}).call(this,n(1))},function(e,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var a=n(2),r=n.n(a),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,a=t.small,r=t.compress,i=t.indeterminate,c=t.height,l=t.progress,s=void 0!==c?Math.round(c/2):void 0,u=l?"scaleX(".concat(l,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:s,marginBottom:s},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":a,"mdc-linear-progress--compress":r})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:r.a.string,small:r.a.bool,compress:r.a.bool,indeterminate:r.a.bool,progress:r.a.number,height:r.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var a={BOXES:"boxes",COMPOSITE:"composite"},r={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return a}));var a="core/ui"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return g}));var a=n(96),r=e._googlesitekitBaseData||{},i=r.isFirstAdmin,o=r.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:r.trackingEnabled,trackingID:r.trackingID,referenceSiteURL:r.referenceSiteURL,userIDHash:r.userIDHash},l=Object(a.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,g=l.trackEvent;function f(e){e?s():u()}!0===o&&f(d())}).call(this,n(21))},function(e,t,n){"use strict";(function(e){var a=n(2),r=n.n(a),i=n(8),o=n.n(i),c=n(29);function PreviewTable(t){for(var n=t.rows,a=t.rowHeight,r=t.padding,i=[],l=0;n>l;l++)i.push(e.createElement("div",{className:"googlesitekit-preview-table__row",key:"table-row-"+l},e.createElement(c.a,{width:"100%",height:a+"px"})));return e.createElement("div",{className:o()("googlesitekit-preview-table",{"googlesitekit-preview-table--padding":r})},i)}PreviewTable.propTypes={rows:r.a.number,rowHeight:r.a.number,padding:r.a.bool},PreviewTable.defaultProps={rows:11,rowHeight:35,padding:!1},t.a=PreviewTable}).call(this,n(1))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return g}));var r=n(5),i=n.n(r),o=n(8),c=n.n(o),l=n(15),s=n(64),u=n(27),d=n(6),g=function(t,n,r){var o=[],g=r.links,f=r.source,m=r.showURLs,p=r.useAdminURLs,h=void 0!==p&&p,b=r.PrimaryLink,v=void 0===b?u.a:b;r.cap&&(t=t.slice(0,r.cap)),Object(l.each)(t,(function(t,n){var i=[],s=g&&g[n],f=s&&"/"===s[0]?e._googlesitekitLegacyData.admin.siteURL+s:s;Object(l.each)(t,(function(e,n){"string"==typeof e&&(e=e.replace(/\(none\)/gi,"direct"));var o=r&&r.hideColumns&&r.hideColumns.mobile.includes(n);i.push(a.createElement("td",{key:"cell-"+n,className:c()("googlesitekit-table__body-item",{"hidden-on-mobile":o})},t[0]===e&&s?a.createElement("div",{className:"googlesitekit-table__body-item-content"},a.createElement(v,{className:"googlesitekit-table__body-item-link",href:h?Object(d.l)("googlesitekit-dashboard",{permaLink:f}):s,external:!h,inherit:!0},e),m&&a.createElement(u.a,{className:"googlesitekit-table__body-item-url",href:s,inherit:!0,external:!0},s)):a.createElement("div",{className:"googlesitekit-table__body-item-content"},e)))})),o.push(a.createElement("tr",{key:"tr-"+n,className:"googlesitekit-table__body-row"},i))}));var y=t&&t[0]&&t[0].length?t[0].length:1,_=r.hideColumns&&r.hideColumns.mobile&&r.hideColumns.mobile.length>0?y-r.hideColumns.mobile.length:y;return a.createElement("div",{className:c()("googlesitekit-table",{"googlesitekit-table--with-list":!r||!r.disableListMode})},a.createElement("table",{className:c()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(y,"-col"),i()({},"googlesitekit-table__wrapper--mobile-".concat(_,"-col"),_!==y))},a.createElement("thead",{className:"googlesitekit-table__head"},a.createElement("tr",{key:"gksc_data_row_header-wrap",style:r&&r.hideHeader?{display:"none"}:{},className:"googlesitekit-table__head-row"},n.map((function(e,t){var n=r&&r.hideColumns&&r.hideColumns.mobile.includes(t);return a.createElement("th",{key:"gksc_data_row_header-".concat(t),className:c()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":e.primary},{"hidden-on-mobile":n}),"data-tooltip":e.tooltip},e.title)})))),a.createElement("tbody",{className:"googlesitekit-table__body"},o)),f&&a.createElement(s.a,{className:"googlesitekit-table__source",name:f.name,href:f.link}))}}).call(this,n(21),n(1))},function(e,t,n){"use strict";(function(e,a){var r=n(11),i=n.n(r),o=n(2),c=n.n(o),l=n(15),s=n(8),u=n.n(s),d=n(1);function TableOverflowContainer(t){var n=t.children,r=Object(d.useState)(!1),o=i()(r,2),c=o[0],s=o[1],g=Object(d.useRef)();Object(d.useEffect)((function(){f();var t=Object(l.debounce)(f,100);return e.addEventListener("resize",t),function(){return e.removeEventListener("resize",t)}}),[]);var f=function(){if(g.current){var e=g.current,t=e.scrollLeft,n=e.scrollWidth-e.offsetWidth;s(t<n-16&&0<n-16)}};return a.createElement("div",{onScroll:Object(l.debounce)(f,100),className:u()("googlesitekit-table-overflow",{"googlesitekit-table-overflow--gradient":c})},a.createElement("div",{ref:g,className:"googlesitekit-table-overflow__container"},n))}TableOverflowContainer.propTypes={children:c.a.element},t.a=TableOverflowContainer}).call(this,n(21),n(1))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(0);function r(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}function i(){var e=function(e){return Object(a.sprintf)(
  /* translators: %s: number of days */
  Object(a._n)("Last %s day","Last %s days",e,"google-site-kit"),e)};return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(2),m=n.n(f),p=n(1);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var b=function(t){l()(DashboardModuleHeader,t);var n=h(DashboardModuleHeader);function DashboardModuleHeader(){return r()(this,DashboardModuleHeader),n.apply(this,arguments)}return o()(DashboardModuleHeader,[{key:"render",value:function(){var t=this.props,n=t.title,a=t.description;return e.createElement("header",{className:"googlesitekit-dashboard-module-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-module-header__title "},n),a&&e.createElement("p",{className:"googlesitekit-dashboard-module-header__description"},a))))}}]),DashboardModuleHeader}(p.Component);b.propTypes={title:m.a.string,description:m.a.string},b.defaultProps={title:"",description:""},t.a=b}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(44);function r(e){return function(){e[a.a]=e[a.a]||[],e[a.a].push(arguments)}}},function(e,t,n){"use strict";var a=n(126);n.d(t,"a",(function(){return a.a}));var r=n(127);n.d(t,"c",(function(){return r.a}));var i=n(128);n.d(t,"b",(function(){return i.a}))},function(e,t,n){"use strict";(function(e){var a=n(2),r=n.n(a),i=n(104);function Sparkline(t){var n=t.change,a=t.data,r=t.invertChangeColor,o=t.loadingHeight;if(!a)return null;var c=r?"red":"green",l=r?"green":"red",s={title:"",backgroundColor:"transparent",curveType:"line",width:"100%",height:"50",enableInteractivity:!1,chartArea:{height:"100%",width:"100%"},legend:{position:"none"},axisFontSize:0,hAxis:{baselineColor:"none",ticks:[]},vAxis:{baselineColor:"none",ticks:[]},axes:[],colors:[0<=(parseFloat(n)||0)?c:l]};return e.createElement("div",{className:"googlesitekit-analytics-sparkline-chart-wrap"},e.createElement(i.a,{chartType:"LineChart",data:a,loadingHeight:o,options:s}))}Sparkline.propTypes={invertChangeColor:r.a.bool,loadingHeight:r.a.string},Sparkline.defaultProps={invertChangeColor:!1,loadingHeight:"46px"},t.a=Sparkline}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(152),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(a.a)(new Date(e))}},function(e,t,n){"use strict";(function(e){var a=n(2),r=n.n(a),i=n(8),o=n.n(i),c=n(199),l=n(0),s=n(27);function SourceLink(t){var n=t.name,a=t.href,r=t.className,i=t.external;return e.createElement("div",{className:o()("googlesitekit-source-link",r)},Object(c.a)(Object(l.sprintf)(
  /* translators: %s: source link */
  Object(l.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(s.a,{key:"link",href:a,external:i,inherit:!0})}))}SourceLink.propTypes={name:r.a.string,href:r.a.string,className:r.a.string,external:r.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var a=n(99),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(e,t)}},i=function(e){var t;return null==e||null===(t=e.replace)||void 0===t?void 0:t.call(e,/\/+$/,"")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var a=n(76),r=n.n(a),i="missing_required_scopes";function o(e){return r()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(181),r=n.n(a);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e.map((function(e,a){return[r()(e,n),r()(e,t,0===a?"":0)]}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(35),r=n.n(a),i=n(92),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(a){var i=t[a];i&&"object"===r()(i)&&!Array.isArray(i)&&(i=e(i)),n[a]=i})),n}(e)))}},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var a=n(2),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(30),s=n(66),u=n(120),d=n(82),g=n(48),f=c.a.useSelect;function ReportError(t){var n,a=t.moduleSlug,r=t.error,o=f((function(e){return e(l.a).getModule(a)})),c=Object(i.sprintf)(Object(i.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name),m=r.message;Object(s.b)(r)&&(
  /* translators: %s: module name */
  c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),m=Object(u.a)(m,o));var p=null==r||null===(n=r.data)||void 0===n?void 0:n.reconnectURL,h=p?e.createElement(d.a,{message:m,reconnectURL:p}):m;return e.createElement(g.a,{title:c,description:h,error:!0})}ReportError.propTypes={moduleSlug:r.a.string.isRequired,error:r.a.object.isRequired}}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return f.a})),n.d(t,"d",(function(){return f.b})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return p}));var a=n(165),r=n.n(a);function i(e){if(void 0!==e){var t=e||{},n=t.rows,a=t.totals;return!n||!a||(!(!n||Array.isArray(n)&&n.length)||(!(!a||Array.isArray(a)&&a.length)||!a.some((function(e){return e>0}))))}}n(174);var o=n(11),c=n.n(o),l=n(8),s=n.n(l),u=n(0),d=n(6);function g(e,t,n,a,r){for(var i=[[{type:"date",label:Object(u.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:n},{type:"number",label:Object(u.__)("Previous period","google-site-kit")}]],o=function(e){return new Date("".concat(e," 00:00:00"))},l=function(e){return function(t){var n=c()(t,1)[0];return e.getTime()===o(n).getTime()}},g=o(e.startDate),f=o(t.startDate),m=o(e.endDate),p=Object(d.g)(),h={weekday:"short",month:"short",day:"numeric"};+g<=+m;){var b,v,y=parseFloat((null===(b=((null==e?void 0:e.rows)||[]).find(l(g)))||void 0===b?void 0:b[a])||0),_=parseFloat((null===(v=((null==t?void 0:t.rows)||[]).find(l(f)))||void 0===v?void 0:v[a])||0),O=0!==_?y/_-1:1,k=Object(u.sprintf)(
  /* translators: 1: date for user stats, 2: previous date for user stats comparison */
  Object(u._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),g.toLocaleDateString(p,h),f.toLocaleDateString(p,h)),j=Object(d.p)(y,null==r?void 0:r.currency);"METRIC_RATIO"===(null==r?void 0:r.type)&&(j=Object(d.p)(y,"%"));var E=Object(u.sprintf)(
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage, %%: percent symbol */
  Object(u._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s%%</em>","Stat information for chart tooltip","google-site-kit"),n,j,'<svg width="9" height="9" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg" class="'.concat(s()("googlesitekit-change-arrow",{"googlesitekit-change-arrow--up":O>0,"googlesitekit-change-arrow--down":O<0}),'">\n\t\t\t\t<path d="M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z" fill="currentColor" />\n\t\t\t</svg>'),Math.abs(O).toFixed(2).replace(/(.00|0)$/,""));i.push([new Date(g),'<div class="'.concat(s()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":O>0,"googlesitekit-visualization-tooltip--down":O<0}),'">\n\t\t\t\t<p>').concat(k,"</p>\n\t\t\t\t<p>").concat(E,"</p>\n\t\t\t</div>"),y,_]),g.setDate(g.getDate()+1),f.setDate(f.getDate()+1)}return i}n(117);var f=n(133);n(184);function m(e){var t=[[{type:"date",label:"Day"},{type:"number",label:"RPM"},{type:"number",label:"Earnings"},{type:"number",label:"Impressions"}]];return r()(e,(function(e){var n=new Date(e[0]);t.push([n,e[2],e[1],e[3]])})),{dataMap:t}}var p=function(e,t,n){if(!n.data||!n.data.dateRange||"last-28-days"!==n.data.dateRange)return!1;var a=[];return e.totals&&(a=e.totals),0===(a=a.filter((function(e){return 0<e}))).length}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return d}));var a=n(11),r=n.n(a),i=n(0);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,a=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),r=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(a&&r)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var l=document.createElement("span");return l.setAttribute("class","screen-reader-text"),l.textContent=Object(i.sprintf)(
  /* translators: %d is the number of notifications */
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(l),t&&null===a&&t.appendChild(o),n&&null===r&&n.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},a=0;a<t.length;a++)n[t[a].split("=")[0]]=decodeURIComponent(t[a].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var a,i={},c=o(n.searchParams.entries());try{for(c.s();!(a=c.n()).done;){var l=r()(a.value,2),s=l[0],d=l[1];i[s]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(21))},,function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return y}));var a=n(26),r=n.n(a),i=n(5),o=n.n(i),c=n(35),l=n.n(c),s=n(15),u=n(0);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){if(e=parseInt(e,10),isNaN(e)||0===e)return"0.0s";var t={};return t.hours=Math.floor(e/60/60),t.minutes=Math.floor(e/60%60),t.seconds=Math.floor(e%60),((t.hours?t.hours+"h ":"")+(t.minutes?t.minutes+"m ":"")+(t.seconds?t.seconds+"s ":"")).trim()},m=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},p=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in millions.
  Object(u.__)("%sM","google-site-kit"),b(m(e),e%10==0?{}:t)):1e4<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in thousands.
  Object(u.__)("%sK","google-site-kit"),b(m(e))):1e3<=e?Object(u.sprintf)(// translators: %s: an abbreviated number in thousands.
  Object(u.__)("%sK","google-site-kit"),b(m(e),e%10==0?{}:t)):b(e,{signDisplay:"never",maximumFractionDigits:1})},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(s.isFinite)(e)?e:Number(e),Object(s.isFinite)(e)||(console.warn("Invalid number",e,l()(e)),e=0);var n={};"%"===t?n={style:"percent",maximumFractionDigits:2}:"s"===t?n={style:"duration"}:t&&"string"==typeof t?n={style:"currency",currency:t}:Object(s.isPlainObject)(t)&&(n=g({},t));var a=n,r=a.style,i=void 0===r?"metric":r;return"metric"===i?p(e):"duration"===i?f(e):b(e,n)},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?y():n,i=r()(t,["locale"]);return new Intl.NumberFormat(a,i).format(e)},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?y():n,r=t.style,i=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(a,{style:i,type:c});return l.format(e)}
  /* translators: used between list items, there is a space after the comma. */var s=Object(u.__)(", ","google-site-kit");return e.join(s)},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(s.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var a=n.match(/^(\w{2})?(_)?(\w{2})/);if(a&&a[0])return a[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(21))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var a=n(165),r=n.n(a),i=n(209),o=n.n(i),c=n(6),l=n(183);function s(e){var t=[[{type:"string",label:"Day"},{type:"number",label:"Clicks"},{type:"number",label:"Impressions"},{type:"number",label:"CTR"},{type:"number",label:"Position"}]],n=0,a=0,i=0,c=0,l=e.length;return r()(e,(function(e){var r=new Date(e.keys[0]);t.push([r.getMonth()+1+"/"+r.getUTCDate(),e.clicks,e.impressions,o()(e.ctr,3),o()(e.position,3)]),n+=e.clicks,a+=e.impressions,i+=e.ctr,c+=e.position})),{dataMap:t,totalClicks:n,totalImpressions:a,averageCTR:l>0?i/l:0,averagePosition:l>0?c/l:0}}n.d(t,"c",(function(){return l.a}));var u=function(e){var t=Math.floor(e.length/2),n=s(e.slice(t)),a=s(e.slice(0,t));return{dataMap:n.dataMap,totalClicks:n.totalClicks,totalImpressions:n.totalImpressions,averageCTR:n.averageCTR,averagePosition:n.averagePosition,totalClicksChange:Object(c.b)(a.totalClicks,n.totalClicks),totalImpressionsChange:Object(c.b)(a.totalImpressions,n.totalImpressions),averageCTRChange:Object(c.b)(a.averageCTR,n.averageCTR),averagePositionChange:Object(c.b)(a.averagePosition,n.averagePosition)}},d=function(e){if(!e.length)return!0;var t=u(e),n=t.totalClicks,a=t.totalImpressions,r=t.averageCTR,i=t.averagePosition;return 0===parseInt(n,10)&&0===parseInt(a,10)&&0===parseInt(r,10)&&0===parseInt(i,10)}},,function(e,t,n){"use strict";(function(e){var a=n(7),r=n.n(a),i=n(14),o=n.n(i),c=n(2),l=n.n(c),s=n(1),u=n(0),d=n(6),g=n(48),f=n(4),m=n.n(f),p=n(137),h=n(12),b=n(30),v=n(46),y=m.a.useSelect,_=m.a.useDispatch,O=function ActivateModuleCTA(t){var n=t.moduleSlug,a=t.title,i=t.description,c=y((function(e){return e(b.a).getModule(n)})),l=y((function(e){return e(h.a).hasCapability(h.c)})),f=_(b.a).activateModule,m=_(v.a).navigateTo,O=Object(s.useCallback)(o()(r.a.mark((function e(){var t,a,i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f(n);case 2:t=e.sent,a=t.error,i=t.response,a?Object(d.t)(p.a,{id:"".concat(n,"-setup-error"),title:Object(u.__)("Internal Server Error","google-site-kit"),description:a.message,format:"small",type:"win-error"}):m(i.moduleReauthURL);case 6:case"end":return e.stop()}}),e)}))),[f]);if(!(null==c?void 0:c.name)||!l)return null;switch(n){case"analytics":a||(a=Object(u.__)("Learn more about what visitors do on your site.","google-site-kit")),i||(i=Object(u.__)("Connect with Google Analytics to see unique visitors, goal completions, top pages and more.","google-site-kit"));break;case"pagespeed-insights":i||(i=Object(u.__)("Google PageSpeed Insights gives you metrics about performance, accessibility, SEO and PWA.","google-site-kit"))}return e.createElement(g.a,{title:a||Object(u.sprintf)(
  /* translators: %s: Module name */
  Object(u.__)("Activate %s","google-site-kit"),c.name),description:i||Object(u.sprintf)(
  /* translators: %s: Module name */
  Object(u.__)("%s module needs to be configured","google-site-kit"),c.name),ctaLabel:Object(u.sprintf)(
  /* translators: %s: Module name */
  Object(u.__)("Set up %s","google-site-kit"),c.name),onClick:O})};O.propTypes={moduleSlug:l.a.string.isRequired,title:l.a.string,description:l.a.string},t.a=O}).call(this,n(1))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core",r="modules"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(13),r=n.n(a),i=n(63),o=function(e){var t=e.startDate,n=e.endDate;return r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var a,r,i=n(5),o=n.n(i),c=n(51),l=(a={},o()(a,c.d.QUARTER,3),o()(a,c.d.HALF,6),o()(a,c.d.FULL,12),a),s=(r={},o()(r,c.d.QUARTER,["mdc-layout-grid__cell","mdc-layout-grid__cell--span-2-phone","mdc-layout-grid__cell--span-3-desktop","mdc-layout-grid__cell--span-4-tablet"]),o()(r,c.d.HALF,["mdc-layout-grid__cell","mdc-layout-grid__cell--span-6-desktop","mdc-layout-grid__cell--span-8-tablet"]),o()(r,c.d.FULL,["mdc-layout-grid__cell","mdc-layout-grid__cell--span-12"]),r),u="googlesitekit-hidden"},function(e,t,n){"use strict";(function(e){var a=n(2),r=n.n(a),i=n(226),o=n(0),c=n(6);function ErrorText(t){var n=t.message,a=t.reconnectURL;if(!n)return null;var r=Object(o.sprintf)(
  /* translators: %s: Error message */
  Object(o.__)("Error: %s","google-site-kit"),n);a&&Object(i.a)(a)&&(r=r+" "+Object(o.sprintf)(
  /* translators: %s: Reconnect URL */
  Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),a));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.s)(r,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:r.a.string.isRequired,reconnectURL:r.a.string},ErrorText.defaultProps={reconnectURL:""},t.a=ErrorText}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(48),i=n(86);t.a=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=e.createElement(r.a
  /* translators: %s: Module name */,{title:Object(a.sprintf)(Object(a.__)("%s Gathering Data","google-site-kit"),t)
  /* translators: %s: Module name */,description:Object(a.sprintf)(Object(a.__)("%s data is not yet available, please check back later.","google-site-kit"),t)});return Object(i.a)(l,n,o,c)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return GoogleChart}));var r=n(42),i=n.n(r),o=n(11),c=n.n(o),l=n(280),s=n.n(l),u=n(2),d=n.n(u),g=n(0),f=n(1),m=n(50);function GoogleChart(t){var n=t.chartID,r=t.chartType,o=t.className,l=t.data,u=t.loadCompressed,d=t.loadHeight,p=t.loadSmall,h=t.loadText,b=t.onReady,v=t.options,y=t.selectedStats,_=t.singleStat,O=Object(f.useRef)(null),k=Object(f.useState)(null),j=c()(k,2),E=j[0],S=j[1],D=Object(f.useState)(!0),w=c()(D,2),R=w[0],C=w[1],N=Object(f.useState)(!1),A=c()(N,2),x=A[0],P=A[1];return Object(f.useEffect)((function(){if(!E&&!R&&O.current&&x){var t;if(n&&GoogleChart.charts.has(n))t=GoogleChart.charts.get(n).chart;else{switch(r){case"area":t=new e.google.visualization.AreaChart(O.current);break;case"line":t=new e.google.visualization.LineChart(O.current);break;case"pie":t=new e.google.visualization.PieChart(O.current);break;default:throw new Error("Unknown chart type")}var a={chart:t};b&&(a.onReady=e.google.visualization.events.addListener(t,"ready",b)),n&&GoogleChart.charts.set(n,a)}S(t)}}),[R,!!O.current,x,!!E]),Object(f.useEffect)((function(){var t=function(){var t,a,r,o=null===(t=e.google)||void 0===t||null===(a=t.visualization)||void 0===a||null===(r=a.arrayToDataTable)||void 0===r?void 0:r.call(a,l);if(o){if(y.length>0){var c=new e.google.visualization.DataView(o);_||c.setColumns([0].concat(i()(y.map((function(e){return e+1}))))),o=c}E&&(E.draw(o,v),n&&GoogleChart.charts.has(n)&&(GoogleChart.charts.get(n).dataTable=o))}},a=s()(t,100);return e.addEventListener("resize",a),t(),function(){e.removeEventListener("resize",a)}}),[E,JSON.stringify(l),JSON.stringify(v),y,_]),Object(f.useEffect)((function(){var t=setInterval((function(){var n,a,r,i,o,c;(null===(n=e.google)||void 0===n||null===(a=n.visualization)||void 0===a?void 0:a.AreaChart)&&(null===(r=e.google)||void 0===r||null===(i=r.visualization)||void 0===i?void 0:i.PieChart)&&(null===(o=e.google)||void 0===o||null===(c=o.visualization)||void 0===c?void 0:c.LineChart)&&(clearInterval(t),C(!1),P(!0))}),50);return function(){if(n&&GoogleChart.charts.has(n)){var a=GoogleChart.charts.get(n),r=a.chart,i=a.onSelect,o=a.onReady,c=a.onMouseOver,l=a.onMouseOut;r&&(e.google.visualization.events.removeListener(i),e.google.visualization.events.removeListener(o),e.google.visualization.events.removeListener(c),e.google.visualization.events.removeListener(l),r.clearChart()),GoogleChart.charts.delete(n)}clearInterval(t)}}),[]),a.createElement("div",{className:"googlesitekit-graph-wrapper"},a.createElement("div",{ref:O,className:"googlesitekit-line-chart"},a.createElement("div",{className:"googlesitekit-chart-loading"},R&&a.createElement("div",{className:"googlesitekit-chart-loading__wrapper"},h&&a.createElement("p",null,Object(g.__)("Loading chart…","google-site-kit")),a.createElement(m.a,{className:o,small:p,compress:u,height:d})))))}GoogleChart.propTypes={chartID:d.a.string,chartType:d.a.oneOf(["area","pie","line"]).isRequired,className:d.a.string,data:d.a.arrayOf(d.a.array),loadCompressed:d.a.bool,loadSmall:d.a.bool,loadHeight:d.a.number,loadText:d.a.bool,onReady:d.a.func,selectedStats:d.a.arrayOf(d.a.number),singleStat:d.a.bool},GoogleChart.defaultProps={className:"",data:[],loadCompressed:!1,loadSmall:!1,loadHeight:null,loadText:!0,selectedStats:[],singleStat:!0},GoogleChart.charts=new Map}).call(this,n(21),n(1))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));var a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},r=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},function(e,t,n){"use strict";(function(e){var a=n(1),r=n(33);t.a=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.createElement(a.Fragment,null,n&&i&&o&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(r.a,{fill:!0},e.createElement("div",{className:"mdc-layout-grid mdc-layout-grid--fill"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},t))))),n&&!i&&o&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet "},e.createElement(r.a,{fill:!0},e.createElement("div",{className:"mdc-layout-grid mdc-layout-grid--fill"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},t))))),n&&i&&!o&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},t),n&&!i&&!o&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet "},t),!n&&!i&&o&&e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},t))),!n&&!i&&!o&&t)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var a=n(2),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(30),s=n(48),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,a=u((function(e){return e(l.a).getModule(n)}));return e.createElement(s.a,{title:
  /* translators: %s: Module name */
  Object(i.sprintf)(Object(i.__)("%s Gathering Data","google-site-kit"),null==a?void 0:a.name),description:Object(i.sprintf)(
  /* translators: %s: Module name */
  Object(i.__)("%s data is not yet available, please check back later.","google-site-kit"),null==a?void 0:a.name)})}ReportZero.propTypes={moduleSlug:r.a.string.isRequired}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return b}));var a=n(7),r=n.n(a),i=n(14),o=n.n(i);n(42);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var s,u=["sessionStorage","localStorage"],d=[].concat(u),g=function(){var t=o()(r.a.mark((function t(n){var a,i;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",a.setItem(i,i),a.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==a.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),f=function(){var t=o()(r.a.mark((function t(){var n,a,i,o,l;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(a=n.admin)||void 0===a?void 0:a.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(d),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(r.a.mark((function e(t){var n,a,i,o,c,l,s;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:if(!(n=e.sent)){e.next=10;break}if(!(a=n.getItem("".concat("googlesitekit_1.27.0_").concat(t)))){e.next=10;break}if(i=JSON.parse(a),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var t=o()(r.a.mark((function t(n,a){var i,o,c,l,s,u,d,g,m=arguments;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,u=i.isError,d=void 0!==u&&u,t.next=3,f();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat("googlesitekit_1.27.0_").concat(n),JSON.stringify({timestamp:s,ttl:c,value:a,isError:d})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),h=function(){var t=o()(r.a.mark((function t(n){var a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f();case 2:if(!(a=t.sent)){t.next=13;break}return t.prev=4,a.removeItem("".concat("googlesitekit_1.27.0_").concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(r.a.mark((function t(){var n,a,i,o;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,a=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf("googlesitekit_1.27.0_")&&a.push(o.substring("googlesitekit_1.27.0_".length));return t.abrupt("return",a);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(21))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(27);t.a=function HelpLink(){var t=Object(a.__)("Need help?","google-site-kit");return e.createElement(r.a,{className:"googlesitekit-help-link",href:"https://sitekit.withgoogle.com/documentation/",external:!0},t)}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(34),r=n.n(a),i=n(144),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;r.a.nonceEndpoint=l,r.a.nonceMiddleware=r.a.createNonceMiddleware(c),r.a.rootURLMiddleware=r.a.createRootURLMiddleware(u),r.a.preloadingMiddleware=Object(i.a)(s),r.a.use(r.a.nonceMiddleware),r.a.use(r.a.mediaUploadMiddleware),r.a.use(r.a.rootURLMiddleware),r.a.use(r.a.preloadingMiddleware),t.default=r.a}).call(this,n(21))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n(4),i=n.n(r),o=n(177),c=n(187),l=n(188),s=n(189),u=n(12),d=n(154),g=i.a.useSelect;t.a=function Header(t){var n=t.children,r=Object(d.a)("storeErrorNotifications"),i=g((function(e){return e(u.a).isAuthenticated()}));return e.createElement(a.Fragment,null,e.createElement("header",{className:"googlesitekit-header"},e.createElement("section",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" googlesitekit-header__logo mdc-layout-grid__cell mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--span-1-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement(o.a,null)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-phone mdc-layout-grid__cell--span-3-phone mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop "},i&&n,i&&e.createElement(c.a,null))))),e.createElement(l.a,null),r&&e.createElement(s.a,null))}}).call(this,n(1))},,function(e,t,n){"use strict";(function(e){var a=n(0),r=n(6),i=n(66),o=n(120),c=n(82),l=n(48),s=n(86),u=n(215);t.a=function(t,n){var d,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]&&arguments[3],m=arguments.length>4&&void 0!==arguments[4]&&arguments[4],p=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=Object(r.i)(),b=h[t],v=Object(a.sprintf)(Object(a.__)("Data error in %s","google-site-kit"),null==b?void 0:b.name),y=n;Object(i.b)(p)&&(
  /* translators: %s: module name */
  v=Object(a.sprintf)(Object(a.__)("Insufficient permissions in %s","google-site-kit"),null==b?void 0:b.name),y=Object(o.a)(y,b));var _=null==p||null===(d=p.data)||void 0===d?void 0:d.reconnectURL,O=_?e.createElement(c.a,{message:y,reconnectURL:_}):y,k=e.createElement(l.a,{title:v,description:O,error:!0});return"Invalid Credentials"===n&&Object(r.t)(u.a),Object(s.a)(k,g,f,m)}}).call(this,n(1))},function(e,t,n){"use strict";function a(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function r(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[a,r,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a=n(5),r=n.n(a),i=n(97),o=n(98);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=l(l({},s),t);return r.referenceSiteURL&&(r.referenceSiteURL=r.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(r,n),disableTracking:function(){r.trackingEnabled=!1},isTrackingEnabled:function(){return!!r.trackingEnabled},trackEvent:Object(o.a)(r,n,a)}}}).call(this,n(21))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var a=n(60),r=n(44);function i(t,n){var i=Object(a.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(r.b,"]"))){var a=n.createElement("script");a.setAttribute(r.b,""),a.async=!0,a.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(r.a),n.head.appendChild(a),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(21))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var a=n(7),r=n.n(a),i=n(5),o=n.n(i),c=n(14),l=n.n(c),s=n(60);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,a){var i=Object(s.a)(n);return function(){var n=l()(r.a.mark((function n(o,c,l,s){var u,g,f,m,p,h,b,v;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(f=t.isFirstAdmin,m=t.referenceSiteURL,p=t.trackingEnabled,h=t.trackingID,b=t.userIDHash,!(null===(u=a._gaUserPrefs)||void 0===u||null===(g=u.ioo)||void 0===g?void 0:g.call(u))){n.next=3;break}return n.abrupt("return");case 3:if(p){n.next=5;break}return n.abrupt("return");case 5:return v={send_to:h,event_category:o,event_label:l,value:s,dimension1:m,dimension2:f?"true":"false",dimension3:b,dimension4:"1.27.0"},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,d(d({},v),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,a,r){return n.apply(this,arguments)}}()}}).call(this,n(21))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var a=n(141),r=n.n(a)()(e)}).call(this,n(21))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var a=n(4),r=n.n(a),i=n(30),o=n(8),c=n.n(o),l=n(149),s=r.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,a=s((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return a?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(l.a,{height:"20",width:"23"})," ",a.message):null}}).call(this,n(1))},function(e,t,n){"use strict";function a(e){return new URL(e).pathname}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return UnsatisfiedScopesAlert}));var r=n(11),i=n.n(r),o=n(264),c=n.n(o),l=n(0),s=n(4),u=n.n(s),d=n(41),g=n(6),f=n(12),m=n(46),p=u.a.useSelect,h={siteverification:"site-verification",webmasters:"search-console"};function UnsatisfiedScopesAlert(){var t,n,r,o,s,u=p((function(e){return e(m.a).isNavigatingTo(/(\/o\/oauth2)|(googlesitekit_connect=1)/i)})),b=p((function(e){return e(f.a).getUnsatisfiedScopes()})),v=p((function(t){return t(f.a).getConnectURL({redirectURL:e.location.href})}));if(u||!(null==b?void 0:b.length)||void 0===v)return null;switch(b.some((function(e){return!e.match(/^https:\/\/www.googleapis.com\/auth\//)}))?t="generic":(r=b,o=Object(g.i)(),t=(n=r.map((function(e){return e.match(/^https:\/\/www.googleapis.com\/auth\/([a-z]+)/)})).map((function(e){var t=i()(e,2)[1];return h[t]||t})).map((function(e){var t;return(null===(t=o[e])||void 0===t?void 0:t.name)||!1}))).some((function(e){return!1===e}))?"generic":1<(n=c()(n)).length?"multiple":"single"),t){case"multiple":s=Object(l.sprintf)(
  /* translators: %s: List of product names */
  Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(g.n)(n));break;case"single":s=Object(l.sprintf)(
  /* translators: %1$s: Product name */
  Object(l.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":s=Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return a.createElement(d.a,{id:"authentication error",title:Object(l.__)("Site Kit can’t access necessary data","google-site-kit"),description:s,format:"small",type:"win-error",isDismissable:!1,ctaLink:v,ctaLabel:Object(l.__)("Redo setup","google-site-kit")})}}).call(this,n(21),n(1))},function(e,t,n){"use strict";(function(e){var a,r;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=(null===(a=e)||void 0===a||null===(r=a._googlesitekitBaseData)||void 0===r?void 0:r.enabledFeatures)||[],o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t.includes(e)}}).call(this,n(21))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GoogleChartV2}));var a=n(5),r=n.n(a),i=n(25),o=n.n(i),c=n(42),l=n.n(c),s=n(26),u=n.n(s),d=n(8),g=n.n(d),f=n(172),m=n(1),p=n(29);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GoogleChartV2(t){var n=t.chartEvents,a=t.chartType,r=t.children,i=t.className,c=t.getChartWrapper,s=t.height,d=t.loaded,h=t.loadingHeight,b=t.loadingWidth,v=t.onMouseOver,y=t.onMouseOut,_=t.onReady,O=t.onSelect,k=t.width,j=u()(t,["chartEvents","chartType","children","className","getChartWrapper","height","loaded","loadingHeight","loadingWidth","onMouseOver","onMouseOut","onReady","onSelect","width"]),E=h||s,S=b||k,D="PieChart"===a?"circular":"square",w=e.createElement("div",{className:"googlesitekit-chart-v2-loading"},e.createElement(p.a,{className:"googlesitekit-chart-v2-loading__wrapper",height:E,shape:D,width:S})),R=Object(m.useRef)(),C=Object(m.useRef)();if(Object(m.useEffect)((function(){return function(){if(C.current&&R.current){var e=C.current.visualization.events;e.removeAllListeners(R.current.getChart()),e.removeAllListeners(R.current)}}}),[]),Object(m.useLayoutEffect)((function(){var e,t;v&&(null===(e=C.current)||void 0===e||e.visualization.events.addListener(R.current.getChart(),"onmouseover",(function(e){v(e,{chartWrapper:R.current,google:C.current})})));y&&(null===(t=C.current)||void 0===t||t.visualization.events.addListener(R.current.getChart(),"onmouseout",(function(e){y(e,{chartWrapper:R.current,google:C.current})})))}),[v,y]),!d)return e.createElement("div",{className:g()("googlesitekit-chart-v2","googlesitekit-chart-v2-loading__forced",i)},w);var N=l()(n||[]);return _&&N.push({eventName:"ready",callback:_}),O&&N.push({eventName:"select",callback:O}),e.createElement(m.Fragment,null,e.createElement(f.a,o()({chartEvents:N,chartType:a,className:g()("googlesitekit-chart-v2","googlesitekit-chart-v2--".concat(a),i),loader:w,height:s,getChartWrapper:function(e,t){var n,a,r;e!==R.current&&(null===(n=C.current)||void 0===n||n.visualization.events.removeAllListeners(null===(a=R.current)||void 0===a?void 0:a.getChart()),null===(r=C.current)||void 0===r||r.visualization.events.removeAllListeners(R.current));R.current=e,C.current=t,c&&c(e,t)},width:k},j)),r)}GoogleChartV2.defaultProps=b(b({},f.a.defaultProps),{},{loaded:!0})}).call(this,n(1))},function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,a=e.slice(6,8);return new Date(t,n.toString(),a)}return!1}},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var a=n(8),r=n.n(a),i=n(2),o=n.n(i);function PageHeader(t){var n=t.title,a=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},a,e.createElement("h1",{className:r()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:r()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(1))},,function(e,t,n){"use strict";(function(e){var a=n(2),r=n.n(a),i=n(1),o=n(0),c=n(48),l=n(4),s=n.n(l),u=n(12),d=n(30),g=n(46),f=s.a.useSelect,m=s.a.useDispatch,p=function CompleteModuleActivationCTA(t){var n=t.moduleSlug,a=t.title,r=t.description,l=f((function(e){return e(d.a).getModule(n)})),s=f((function(e){return e(d.a).getModuleStoreName(n)})),p=f((function(e){var t;return null===(t=e(s))||void 0===t?void 0:t.getAdminReauthURL()})),h=f((function(e){return e(u.a).hasCapability(u.c)})),b=m(g.a).navigateTo,v=Object(i.useCallback)((function(){return b(p)}),[p]);return(null==l?void 0:l.name)&&p&&h?e.createElement(c.a,{title:a||Object(o.sprintf)(
  /* translators: %s: Module name */
  Object(o.__)("Complete %s activation","google-site-kit"),l.name),description:r||Object(o.sprintf)(
  /* translators: %s: Module name */
  Object(o.__)("%s module setup needs to be completed","google-site-kit"),l.name),ctaLabel:Object(o.__)("Complete setup","google-site-kit"),"aria-label":Object(o.sprintf)(
  /* translators: %s: Module name */
  Object(o.__)("Complete %s setup","google-site-kit"),l.name),onClick:v}):null};p.propTypes={moduleSlug:r.a.string.isRequired,title:r.a.string,description:r.a.string},t.a=p}).call(this,n(1))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v}));var a=n(26),r=n.n(a),i=n(5),o=n.n(i),c=n(7),l=n.n(c),s=n(13),u=n.n(s),d=n(4),g=n.n(d),f=n(88),m=g.a.createRegistryControl,p=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},a={deleteSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:l.a.mark((function e(){var t,n,a,r,i,o,c=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,a=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(r=e.sent,i=r.cacheHit,o=r.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!a){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(f.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",m((function(t){return function(){return Object(f.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(f.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:a,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,a=t.type,i=t.payload;switch(a){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,r()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},function(e,t,n){"use strict";(function(e){var a=n(25),r=n.n(a),i=n(26),o=n.n(i),c=n(2),l=n.n(c),s=n(8),u=n.n(s);function VisuallyHidden(t){var n=t.className,a=t.children,i=o()(t,["className","children"]);return e.createElement("span",r()({},i,{className:u()("screen-reader-text",n)}),a)}VisuallyHidden.propTypes={className:l.a.string,children:l.a.node.isRequired},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(1))},,function(e,t,n){"use strict";(function(e,a){var r=n(11),i=n.n(r),o=n(1),c=n(110),l=n(4),s=n.n(l),u=n(216),d=n(143),g=n(58),f=n(12),m=n(45),p=s.a.useSelect,h=s.a.useDispatch;t.a=function DateRangeSelector(){var t,n=Object(g.a)(),r=p((function(e){return e(f.a).getDateRange()})),l=h(f.a).setDateRange,s=Object(o.useState)(!1),b=i()(s,2),v=b[0],y=b[1],_=Object(o.useRef)(),O=Object(o.useRef)();Object(o.useEffect)((function(){var t=function(e){_&&_.current&&O&&O.current&&(("keyup"!==e.type||c.b!==e.keyCode)&&"mouseup"!==e.type||_.current.contains(e.target)||O.current.contains(e.target)||y(!1))};return e.addEventListener("mouseup",t),e.addEventListener("keyup",t),function(){e.removeEventListener("mouseup",t),e.removeEventListener("keyup",t)}}),[]);var k=Object(o.useCallback)((function(){y(!v)}),[v]),j=Object(o.useCallback)((function(e){l(Object.values(n)[e].slug),y(!1)}),[k]),E=null===(t=n[r])||void 0===t?void 0:t.label,S=Object.values(n).map((function(e){return e.label}));return a.createElement("div",{className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor"},a.createElement(m.a,{ref:_,className:"googlesitekit-header__date-range-selector-menu mdc-button--dropdown",text:!0,onClick:k,icon:a.createElement(u.a,{width:"18",height:"20"}),"aria-haspopup":"menu","aria-expanded":v,"aria-controls":"date-range-selector-menu"},E),a.createElement(d.a,{ref:O,menuOpen:v,menuItems:S,onSelected:j,id:"date-range-selector-menu"}))}}).call(this,n(21),n(1))},function(e,t,n){"use strict";(function(e){var a=n(2),r=n.n(a),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,a=t.invertColor,r=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":a}),width:r,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:r.a.string,invertColor:r.a.bool,width:r.a.number,height:r.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"i",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"k",(function(){return g})),n.d(t,"m",(function(){return f})),n.d(t,"j",(function(){return m})),n.d(t,"l",(function(){return p})),n.d(t,"o",(function(){return h})),n.d(t,"n",(function(){return b}));var a="none",r="multiple",i="disapproved",o="graylisted",c="pending",l="no-client",s="approved",u="none",d="added",g=function(e){var t=e.accounts,n=e.clients,i=e.alerts,c=e.accountsError,u=e.alertsError,d=e.previousAccountID,g=e.previousClientID;return void 0===t||void 0===d?v(c):m({accounts:t,previousAccountID:d})?void 0!==n&&void 0!==g?void 0===i?y(u):i.some((function(e){return"GRAYLISTED_PUBLISHER"===e.type}))?o:p({clients:n,previousClientID:g})?s:l:void 0:t.length?r:a},f=function(e){var t=e.urlChannels,n=e.siteURL;if(void 0!==t&&void 0!==n)return t.some((function(e){return 0<=n.indexOf(e.urlPattern)}))?d:u},m=function(e){var t=e.accounts,n=e.previousAccountID;if(void 0!==t&&t.length){if(t.length>1){if(!n)return;return t.reduce((function(e,t){return t.id===n?n:e}),void 0)}return t[0].id}},p=function(e){var t=e.clients,n=e.previousClientID;if(void 0!==t){var a=t.filter((function(e){return"AFC"===e.productCode}));if(a.length){if(a.length>1&&n){var r=a.reduce((function(e,t){return t.id===n?n:e}),"");if(r)return r}return a[0].id}}},h=function(e){return e===o||e===c},b=function(e){return v(e)||y(e)},v=function(e){return _(e,"noAdSenseAccount")?a:_(e,"disapprovedAccount")?i:void 0},y=function(e){if(_(e,"accountPendingReview"))return c},_=function(e,t){return!(!e||!e.data)&&t===e.data.reason}},function(e,t,n){"use strict";var a=n(1),r=n(103),i=Object(a.createContext)(r.a);t.a=i},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0);function r(e,t){var n=t||{},r=n.slug,i=void 0===r?"":r,o=n.name,c=void 0===o?"":o,l=n.owner,s=void 0===l?null:l;if(!i||!c)return e;var u="",d="";return"analytics"===i?e.match(/account/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won't be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won't be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won't be able to see stats from it on the Site Kit dashboard.","google-site-kit")):"search-console"===i&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won't be able to see stats from it on the Site Kit dashboard.","google-site-kit")),u||(u=Object(a.sprintf)(
  /* translators: %s: module name */
  Object(a.__)("Your Google account does not have sufficient permissions to access %s data, so you won't be able to see stats from it on the Site Kit dashboard.","google-site-kit"),c)),s&&s.login&&(d=Object(a.sprintf)(
  /* translators: %s: owner name */
  Object(a.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),s.login)),d||(d=Object(a.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(u," ").concat(d).trim()}},function(e,t,n){"use strict";var a=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),a.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),a.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),a.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return a.createElement("svg",r({viewBox:"0 0 43 44"},e),i)}},function(e,t,n){"use strict";(function(e){var a=n(2),r=n.n(a),i=n(265),o=n.n(i),c=n(8),l=n.n(c),s=n(268),u=n(1),d=n(0),g=n(45),f=n(27),m=n(23),p=n(161),h=function Dialog(t){var n=t.dialogActive,a=t.handleDialog,r=t.title,i=t.provides,c=t.handleConfirm,h=t.subtitle,b=t.confirmButton,v=t.dependentModules,y=t.danger,_=t.inProgress,O=void 0!==_&&_,k=Object(u.useCallback)((function(e){null!==e&&m.f.attachTo(e)}),[]),j=Object(s.a)(Dialog),E="googlesitekit-dialog-label-".concat(j),S="googlesitekit-dialog-description-".concat(j),D=!(!i||!i.length);return e.createElement("div",{ref:k,className:l()("mdc-dialog",{"mdc-dialog--open":n}),role:"alertdialog","aria-modal":"true","aria-labelledby":r?E:void 0,"aria-describedby":D?S:void 0,"aria-hidden":n?"false":"true",tabIndex:"-1"},e.createElement("div",{className:"mdc-dialog__scrim"}," "),e.createElement(o.a,{active:n},e.createElement("div",null,e.createElement("div",{className:"mdc-dialog__container"},e.createElement("div",{className:"mdc-dialog__surface"},r&&e.createElement("h2",{id:E,className:"mdc-dialog__title"},r),h&&e.createElement("p",{className:"mdc-dialog__lead"},h),D&&e.createElement("section",{id:S,className:"mdc-dialog__content"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},i.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),v&&e.createElement("p",{className:"mdc-dialog__dependecies"},e.createElement("strong",null,Object(d.__)("Note: ","google-site-kit")),v),e.createElement("footer",{className:"mdc-dialog__actions"},e.createElement(g.a,{onClick:c,danger:y,disabled:O},b||Object(d.__)("Disconnect","google-site-kit")),e.createElement(p.a,{isSaving:O}),e.createElement(f.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:a,inherit:!0,disabled:O},Object(d.__)("Cancel","google-site-kit"))))))))};h.displayName="Dialog",h.propTypes={dialogActive:r.a.bool,handleDialog:r.a.func,handleConfirm:r.a.func.isRequired,title:r.a.string,description:r.a.string,confirmButton:r.a.string,danger:r.a.bool},h.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=h}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(7),r=n.n(a),i=n(14),o=n.n(i),c=n(16),l=n.n(c),s=n(17),u=n.n(s),d=n(18),g=n.n(d),f=n(19),m=n.n(f),p=n(10),h=n.n(p),b=n(2),v=n.n(b),y=n(0),_=n(1),O=n(24),k=n(41);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=h()(e);if(t){var r=h()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return m()(this,n)}}var E=function(t){g()(Alert,t);var n,a=j(Alert);function Alert(e){var t;return l()(this,Alert),(t=a.call(this,e)).state={isLoading:!0,alerts:[],error:!1,message:""},t}return u()(Alert,[{key:"componentDidMount",value:function(){this.getAlert()}},{key:"getAlert",value:(n=o()(r.a.mark((function e(){var t,n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this.props.module,e.next=4,O.c.get(O.b,t,"notifications",{},!1);case 4:n=e.sent,this.setState({isLoading:!1,error:!1,alerts:n}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.setState({isLoading:!1,error:e.t0.code});case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var t=this.state,n=t.alerts,a=t.error,r=t.isLoading;if(a||r||!n||!n.length)return null;var i=n.map((function(t){return e.createElement(k.a,{id:t.id,key:t.id,title:t.title,description:t.message||t.description,dismiss:Object(y.__)("Dismiss","google-site-kit"),isDismissable:t.isDismissible,format:"small",ctaLink:t.ctaURL,ctaLabel:t.ctaLabel,ctaTarget:t.ctaTarget,type:t.severity})}));return e.createElement(_.Fragment,null,i)}}]),Alert}(_.Component);E.propTypes={module:v.a.string.isRequired},t.a=E}).call(this,n(1))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var a=n(25),r=n.n(a),i=n(5),o=n.n(i),c=n(26),l=n.n(c),s=n(2),u=n.n(s),d=n(8),g=n.n(d);function Cell(t){var n,a=t.className,i=t.alignTop,c=t.alignMiddle,s=t.alignBottom,u=t.alignRight,d=t.alignLeft,f=t.smSize,m=t.smStart,p=t.mdSize,h=t.mdStart,b=t.lgSize,v=t.lgStart,y=t.size,_=t.children,O=l()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smSize","smStart","mdSize","mdStart","lgSize","lgStart","size","children"]);return e.createElement("div",r()({},O,{className:g()(a,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":c,"mdc-layout-grid__cell--align-bottom":s,"mdc-layout-grid__cell--align-right":u,"mdc-layout-grid__cell--align-left":d},o()(n,"mdc-layout-grid__cell--span-".concat(y),12>=y&&y>0),o()(n,"mdc-layout-grid__cell--span-".concat(b,"-desktop"),12>=b&&b>0),o()(n,"mdc-layout-grid__cell--start-".concat(v,"-desktop"),12>=v&&v>0),o()(n,"mdc-layout-grid__cell--span-".concat(p,"-tablet"),8>=p&&p>0),o()(n,"mdc-layout-grid__cell--start-".concat(h,"-tablet"),8>=h&&h>0),o()(n,"mdc-layout-grid__cell--span-".concat(f,"-phone"),4>=f&&f>0),o()(n,"mdc-layout-grid__cell--start-".concat(m,"-phone"),4>=m&&m>0),n))}),_)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,mdSize:u.a.number,mdStart:u.a.number,lgSize:u.a.number,lgStart:u.a.number,size:u.a.number,alignTop:u.a.bool,alignMiddle:u.a.bool,alignBottom:u.a.bool,alignRight:u.a.bool,alignLeft:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Row}));var a=n(25),r=n.n(a),i=n(26),o=n.n(i),c=n(2),l=n.n(c),s=n(8),u=n.n(s);function Row(t){var n=t.className,a=t.children,i=o()(t,["className","children"]);return e.createElement("div",r()({className:u()("mdc-layout-grid__inner",n)},i),a)}Row.propTypes={className:l.a.string,children:l.a.node},Row.defaultProps={className:""}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Grid}));var a=n(25),r=n.n(a),i=n(26),o=n.n(i),c=n(2),l=n.n(c),s=n(8),u=n.n(s);function Grid(t){var n=t.className,a=t.children,i=o()(t,["className","children"]);return e.createElement("div",r()({className:u()("mdc-layout-grid",n)},i),a)}Grid.propTypes={className:l.a.string,children:l.a.node},Grid.defaultProps={className:""}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var a=n(25),r=n.n(a),i=n(26),o=n.n(i),c=n(2),l=n.n(c),s=n(4),u=n.n(s),d=n(30),g=u.a.useSelect;function ModuleIcon(t){var n=t.slug,a=t.size,i=o()(t,["slug","size"]),c=g((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,r()({width:a,height:a},i)):null}ModuleIcon.propTypes={slug:l.a.string.isRequired,size:l.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(1))},function(e,t,n){"use strict";var a=n(11),r=n.n(a),i=n(1),o=n(198);t.a=function Modal(e){var t=e.children,n=Object(i.useState)(document.createElement("div")),a=r()(n,1)[0];return Object(i.useEffect)((function(){var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(a),function(){return e.removeChild(a)}}),[]),Object(o.createPortal)(t,a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(1),r=n(4),i=n.n(r),o=n(51),c=i.a.useDispatch;function l(e,t,n){var r=c(o.b),i=r.setWidgetState,l=r.unsetWidgetState;Object(a.useEffect)((function(){return i(e,t,n),function(){l(e,t,n)}}),[e,t,n])}},,function(e,t,n){"use strict";function a(e){return"string"==typeof e&&/^pub-\d+$/.test(e)}function r(e){return"string"==typeof e&&/^ca-pub-\d+$/.test(e)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var a=n(47),r=n(36),i=function(t,n,i){var o=Object(r.d)(t,n,i);Object(r.e)(),Object.keys(e._googlesitekitLegacyData.admin.datacache).forEach((function(t){0!==t.indexOf(o+"::")&&t!==o||delete e._googlesitekitLegacyData.admin.datacache[t]})),Object.keys(Object(a.a)()).forEach((function(e){0!==e.indexOf("".concat(r.a).concat(o,"::"))&&e!=="".concat(r.a).concat(o)||Object(a.a)().removeItem(e)}))}}).call(this,n(21))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AuthError}));var a=n(0),r=n(4),i=n.n(r),o=n(12),c=n(41),l=i.a.useSelect;function AuthError(){var t=l((function(e){return e(o.a).getAuthError()}));return t?e.createElement(c.a,{id:"autherror",title:Object(a.__)("Site Kit can’t access necessary data","google-site-kit"),description:t.message,ctaLink:t.data.reconnectURL,ctaLabel:Object(a.__)("Redo the plugin setup","google-site-kit")}):null}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var a=n(1),r=n(4),i=n.n(r),o=n(30),c=n(85),l=i.a.useSelect;function s(t){var n=t.moduleName,r=t.FallbackComponent,i=void 0===r?null:r,s=t.IncompleteComponent,u=void 0===s?null:s;return function(t){var r=function(r){var c=l((function(e){return e(o.a).getModule(n)}));return c?!1===c.active?null!==i?e.createElement(i,r):null:!1===c.connected?null!==u?e.createElement(u,r):null!==i?e.createElement(i,r):null:Object(a.createElement)(t,r):null};return r.displayName="When".concat(Object(c.c)(n),"Active"),(t.displayName||t.name)&&(r.displayName+="(".concat(t.displayName||t.name,")")),r}}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(1),m=n(41);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var h=function(t){l()(GenericError,t);var n=p(GenericError);function GenericError(){return r()(this,GenericError),n.apply(this,arguments)}return o()(GenericError,[{key:"render",value:function(){return e.createElement(m.a,this.props)}}]),GenericError}(f.Component);t.a=h}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m.a}));var a=n(11),r=n.n(a),i=n(42),o=n.n(i),c=n(81);function l(e,t,n){if(9!==n)return[e,t,n];e=o()(e),t=o()(t);for(var a=e.length-1;0!==n&&a>=0;)if(e[a]&&Array.isArray(e[a])){var r=o()(e[a]);r.includes("mdc-layout-grid__cell--span-3-desktop")?(r[r.indexOf("mdc-layout-grid__cell--span-3-desktop")]="mdc-layout-grid__cell--span-4-desktop",n-=3,t[a]=4):r.includes("mdc-layout-grid__cell--span-6-desktop")&&(r[r.indexOf("mdc-layout-grid__cell--span-6-desktop")]="mdc-layout-grid__cell--span-8-desktop",n-=6,t[a]=8),e[a]=r,a--}else a--;return[e,t,n]}function s(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map((function(t){return{counter:e+c.c[t],width:t}}))}function u(e){var t=0,n=0,a=[].fill(null,0,e.length),i=[],o=[],u=function(e,t){return e.counter-t.counter},d=function(e,t){var n=e.counter;return t.counter-n},g=function(e){return e.counter<=12};if(e.forEach((function(f,m){var p=s(t,f);m+1!==e.length&&0!==s(p.sort(u)[0].counter,e[m+1]).filter(g).length||p.some(g)&&(p=(p=p.sort(d)).filter(g));var h=p[0].width;if(i.push(c.c[h]),o.push(n),(t+=c.c[h])>12){if(t-=c.c[h],o[m]++,9===t){var b=l(a,i,t),v=r()(b,3);a=v[0],i=v[1],t=v[2]}t=c.c[h],n++}else 12===t&&(t=0,n++);a[m]=c.b[h]})),9===t){var f=l(a,i,t),m=r()(f,3);a=m[0],i=m[1],t=m[2]}return{classNames:a,columnWidths:i,rowIndexes:o}}var d=n(208),g=n.n(d);function f(e,t,n){var a=n.classNames,r=n.columnWidths,i=n.rowIndexes,l=o()(a),s=[],u=null,d=-1,f=[];return e.forEach((function(n,a){var o,m,p,h,b;if(s.push(null),null!==l[a]){if(u=t[n.slug],d=i[a],u)if(m=u,p=t[null===(o=e[a+1])||void 0===o?void 0:o.slug],h=d,b=i[a+1],h===b&&g()(m,p))l[a]=[c.a],f.push(r[a]);else if(f.length>0){f.push(r[a]);var v=f.reduce((function(e,t){return e+t}),0);l[a]=["mdc-layout-grid__cell","mdc-layout-grid__cell--span-".concat(v)],s[a]=u,f=[]}}else l[a]=[c.a]})),{gridClassNames:l,overrideComponents:s}}var m=n(167)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(13),r=n.n(a),i=n(63),o=function(e){var t=e.startDate,n=e.endDate,a=e.compareStartDate,o=e.compareEndDate;r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required.");var c={"_u.date00":t.replace(/-/g,""),"_u.date01":n.replace(/-/g,"")};return(a||o)&&(r()(Object(i.a)(a)&&Object(i.a)(o),"Valid compareStartDate and compareEndDate values are required."),c["_u.date10"]=a.replace(/-/g,""),c["_u.date11"]=o.replace(/-/g,"")),c}},,,function(e,t,n){"use strict";(function(e){var a=n(11),r=n.n(a),i=n(2),o=n.n(i),c=n(132),l=n(1),s=n(23),u=Object(l.forwardRef)((function(t,n){var a=t.menuOpen,i=t.menuItems,o=t.onSelected,u=t.id,d=Object(l.useState)(null),g=r()(d,2),f=g[0],m=g[1],p=Object(l.useRef)(null),h=Object(c.a)(n,p),b=Object(l.useCallback)((function(e){var t=e.detail.index;o(t,e)}),[o]);return Object(l.useEffect)((function(){if(null==p?void 0:p.current){var e=new s.h(p.current);return e.listen("MDCMenu:selected",b),m(e),function(){e.unlisten("MDCMenu:selected",b)}}}),[]),Object(l.useEffect)((function(){f&&(f.open=a,f.setDefaultFocusState(1))}),[f,a]),e.createElement("div",{className:"mdc-menu mdc-menu-surface",ref:h},e.createElement("ul",{"aria-hidden":!a,"aria-orientation":"vertical",className:"mdc-list",id:u,role:"menu",tabIndex:"-1"},i.map((function(t,n){return e.createElement("li",{key:n,className:"mdc-list-item",role:"menuitem"},e.createElement("span",{className:"mdc-list-item__text"},t))}))))}));u.displayName="Menu",u.propTypes={menuOpen:o.a.bool.isRequired,menuItems:o.a.array.isRequired,id:o.a.string.isRequired},t.a=u}).call(this,n(1))},function(e,t,n){"use strict";var a=n(142);t.a=function(e){var t=Object.keys(e).reduce((function(t,n){return t[Object(a.getStablePath)(n)]=e[n],t}),{}),n=!1;return function(e,r){if(n)return r(e);setTimeout((function(){n=!0}),1e3);var i=e.parse,o=void 0===i||i,c=e.path;if("string"==typeof e.path){var l,s=(null===(l=e.method)||void 0===l?void 0:l.toUpperCase())||"GET",u=Object(a.getStablePath)(c);if(o&&"GET"===s&&t[u]){var d=Promise.resolve(t[u].body);return delete t[u],d}if("OPTIONS"===s&&t[s]&&t[s][u]){var g=Promise.resolve(t[s][u]);return delete t[s][u],g}}return r(e)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdSenseLinkCTA}));var a=n(0),r=n(4),i=n.n(r),o=n(48),c=n(22),l=i.a.useSelect;function AdSenseLinkCTA(){var t=l((function(e){return e(c.c).getGoogleSupportURL({path:"/adsense/answer/6084409"})}));return e.createElement(o.a,{title:Object(a.__)("Link Analytics and AdSense","google-site-kit"),description:Object(a.__)("Get reports for your top earning pages by linking your Analytics and AdSense accounts.","google-site-kit"),ctaLink:t,ctaLabel:Object(a.__)("Learn more","google-site-kit")})}}).call(this,n(1))},function(e,t,n){"use strict";function a(e){var t,n,a,r,i,o,c,l;if(void 0!==e)return!(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.rows)||void 0===a?void 0:a.length)||!(null==e||null===(r=e[0])||void 0===r||null===(i=r.data)||void 0===i||null===(o=i.totals)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.values)||void 0===l?void 0:l.length)||!e[0].data.totals.some((function(e){return e.values.some((function(e){return e>0}))}))}n.d(t,"a",(function(){return a}))},,,function(e,t,n){"use strict";var a=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"#EA4336",fillRule:"nonzero"});t.a=function SvgError(e){return a.createElement("svg",r({viewBox:"0 0 28 25"},e),i)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(13),r=n.n(a),i=n(63),o=function(e){r()(e,"A dates object is required.");var t=e.startDate,n=e.endDate;return r()(Object(i.a)(t),"A valid startDate is required."),r()(Object(i.a)(n),"A valid endDate is required."),{d:"".concat(t.replace(/-/g,"/"),"-").concat(n.replace(/-/g,"/"))}}},function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(11),o=n.n(i),c=n(0),l=n(1),s=n(4),u=n.n(s),d=n(9),g=n(22),f=n(12),m=n(52),p=n(61),h=n(101),b=n(136),v=n(64),y=n(218),_=n(219),O=n(220),k=n(221),j=n(28),E=n(140);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=u.a.useSelect;t.a=Object(b.a)({moduleName:"analytics"})((function DashboardAllTrafficWidget(t){var n=t.Widget,a=t.WidgetReportZero,i=t.WidgetReportError,s=Object(l.useState)(!0),u=o()(s,2),b=u[0],S=u[1],R=Object(l.useState)(""),C=o()(R,2),N=C[0],A=C[1],x=w((function(e){return e(f.a).getDateRange()})),P=w((function(e){return e(m.a).getValue(d.m)||"ga:channelGrouping"})),L=w((function(e){return e(m.a).getValue(d.n)})),T=w((function(e){return e(g.c).getCurrentEntityURL()})),M=w((function(e){return e(f.a).getDateRangeDates({compare:!0,offsetDays:d.b})})),U=M.startDate,I=M.endDate,z=M.compareStartDate,W=M.compareEndDate,q={startDate:U,endDate:I,metrics:[{expression:"ga:users"}]},F=D(D({},q),{},{compareStartDate:z,compareEndDate:W,dimensions:[P],orderby:{fieldName:"ga:users",sortOrder:"DESCENDING"},limit:6}),G=D(D({},q),{},{dimensions:["ga:date"]}),H=D(D({},q),{},{compareStartDate:z,compareEndDate:W});T&&(F.url=T,G.url=T,H.url=T),P&&L&&(G.dimensionFilters=r()({},P,L),H.dimensionFilters=r()({},P,L));var B,V=w((function(e){return e(d.j).hasFinishedResolution("getReport",[F])})),K=w((function(e){return e(d.j).getErrorForSelector("getReport",[F])})),$=w((function(e){return e(d.j).getReport(F)})),Z=w((function(e){return e(d.j).hasFinishedResolution("getReport",[G])})),Y=w((function(e){return e(d.j).getErrorForSelector("getReport",[G])})),J=w((function(e){return e(d.j).getReport(G)})),Q=w((function(e){return e(d.j).hasFinishedResolution("getReport",[H])})),X=w((function(e){return e(d.j).getErrorForSelector("getReport",[H])})),ee=w((function(e){return e(d.j).getReport(H)}));switch(P){case"ga:country":B="visitors-geo";break;case"ga:deviceCategory":B="visitors-mobile-overview";break;case"ga:channelGrouping":default:B="trafficsources-overview"}var te=Object(E.a)({startDate:U,endDate:I,compareStartDate:z,compareEndDate:W});T&&(te["explorer-table.plotKeys"]="[]",te["_r.drilldown"]="analytics.pagePath:".concat(Object(h.a)(T)));var ne=w((function(e){return e(d.j).getServiceReportURL(B,te)}));return Object(l.useEffect)((function(){x!==N?(S(!0),A(x)):V&&Q&&Z&&S(!1)}),[V,Q,Z,x,N]),K?e.createElement(i,{moduleSlug:"analytics",error:K}):Object(j.p)($)?e.createElement(a,{moduleSlug:"analytics"}):e.createElement(n,{className:"googlesitekit-widget--footer-v2",Footer:function Footer(){return e.createElement(v.a,{className:"googlesitekit-data-block__source",name:Object(c._x)("Analytics","Service name","google-site-kit"),href:ne,external:!0})},noPadding:!0},e.createElement(p.b,null,e.createElement(p.c,null,e.createElement(p.a,{className:"googlesitekit-widget--analyticsAllTraffic__totals",lgSize:7,mdSize:8},e.createElement(y.a,{loaded:Q&&!b,report:ee,error:X,dimensionValue:L}),e.createElement(_.a,{loaded:Z&&!b,error:Y,report:J})),e.createElement(p.a,{className:"googlesitekit-widget--analyticsAllTraffic__dimensions",lgSize:5,mdSize:8},e.createElement(O.a,{loaded:!b,dimensionName:P}),e.createElement(k.a,{dimensionName:P,dimensionValue:L,loaded:V&&!b,report:$})))))}))}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(e){return e instanceof Date&&!isNaN(e)}},function(e,t,n){"use strict";(function(e){t.a=function Warning(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#F9BB2D",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1),r=n(118),i=function(e){var t=Object(a.useContext)(r.a);return!!Array.isArray(t)&&t.includes(e)}},,,function(e,t,n){"use strict";(function(e,a){var r=n(5),i=n.n(r),o=n(0),c=n(57),l=n(4),s=n.n(l),u=n(6),d=n(39),g=n(24),f=n(55),m=n(54),p=n(38),h=n(22),b=n(12),v=n(56),y=n(80);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var O=s.a.useSelect;t.a=Object(d.a)((function LegacySearchConsoleDashboardWidgetKeywordTable(t){var n=t.data,a=O((function(e){return e(p.c).getPropertyID()})),r=O((function(e){return e(h.c).getCurrentEntityURL()})),l=O((function(e){return e(p.c).isDomainProperty()})),s=O((function(e){return Object(u.w)(e(h.c).getReferenceSiteURL())})),d=O((function(e){return e(b.a).getDateRangeDates({offsetDays:p.a})})),g=d.startDate,m=d.endDate,k=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({resource_id:a},Object(y.a)({startDate:g,endDate:m}));r?k.page="!".concat(r):l&&s&&(k.page="*".concat(s));var j=O((function(e){return e(p.c).getServiceURL({path:"/performance/search-analytics",query:k})}));if(!n||!n.length)return null;var E=[{title:Object(o.__)("Keyword","google-site-kit"),tooltip:Object(o.__)("Most searched for keywords related to your content","google-site-kit"),primary:!0},{title:Object(o.__)("Clicks","google-site-kit"),tooltip:Object(o.__)("Number of times users clicked on your content in search results","google-site-kit")},{title:Object(o.__)("Impressions","google-site-kit"),tooltip:Object(o.__)("Counted each time your content appears in search results","google-site-kit")}],S=[],D=n.map((function(e,t){var n=e.keys[0];return S[t]=Object(c.a)(j,{query:"!".concat(n)}),[n,Object(u.p)(e.clicks,{style:"decimal"}),Object(u.p)(e.impressions,{style:"decimal"})]})),w={hideHeader:!1,chartsEnabled:!1,links:S},R=Object(f.a)(D,E,w);return e.createElement(v.a,null,R)}),[{type:g.b,identifier:"search-console",datapoint:"searchanalytics",data:{url:a._googlesitekitLegacyData.permaLink,dimensions:"query",limit:10},priority:1,maxAge:Object(u.m)("day"),context:["Single","Dashboard"]}],e.createElement(m.a,{padding:!0}),{createGrid:!0},(function(e){return!e.length}))}).call(this,n(1),n(21))},function(e,t,n){"use strict";var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(124),m=n(1);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var h=function(e){l()(LegacyDashboardSearchFunnelInner,e);var t=p(LegacyDashboardSearchFunnelInner);function LegacyDashboardSearchFunnelInner(){return r()(this,LegacyDashboardSearchFunnelInner),t.apply(this,arguments)}return o()(LegacyDashboardSearchFunnelInner,[{key:"render",value:function(){return null}}]),LegacyDashboardSearchFunnelInner}(m.Component);t.a=Object(f.a)("googlesitekit.DashboardSearchFunnel")(h)},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(4),i=n.n(r),o=n(32),c=n(12),l=n(33),s=n(58),u=n(150),d=i.a.useSelect;t.a=function AnalyticsAdSenseDashboardWidgetLayout(t){var n=t.children,r=d((function(e){return e(c.a).getDateRangeDates({offsetDays:o.a})})),i=d((function(e){return e(o.b).getServiceReportURL(Object(u.a)(r))})),g=d((function(e){return e(c.a).getDateRange()})),f=Object(s.b)(g);return e.createElement(l.a,{header:!0,title:Object(a.sprintf)(
  /* translators: %s: number of days */
  Object(a._n)("Performance by page over the last %s day","Performance by page over the last %s days",f,"google-site-kit"),f),headerCTALabel:Object(a.__)("See full stats in AdSense","google-site-kit"),headerCTALink:i},n)}}).call(this,n(1))},,function(e,t,n){"use strict";(function(e){t.a=function Spinner(t){var n=t.isSaving;return e.createElement("span",{className:"spinner",style:{display:n?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible"}})}}).call(this,n(1))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(7),r=n.n(a),i=n(14),o=n.n(i),c=n(6),l=["fetch_error"];function s(e){return u.apply(this,arguments)}function u(){return(u=o()(r.a.mark((function e(t){var n,a,i,o,s,u,d,g;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.method,o=t.type,s=t.identifier,u=t.datapoint,(d=t.error)&&!l.includes(null==d?void 0:d.code)){e.next=3;break}return e.abrupt("return");case 3:return g="code: ".concat(d.code),(null===(n=d.data)||void 0===n?void 0:n.reason)&&(g+=", reason: ".concat(d.data.reason)),e.next=7,Object(c.v)("api_error","".concat(i,":").concat(o,"/").concat(s,"/data/").concat(u),"".concat(d.message," (").concat(g,")"),(null===(a=d.data)||void 0===a?void 0:a.status)||d.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";(function(e){t.a=function Error(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#EA4336",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"error-title error-desc"},e.createElement("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}))}}).call(this,n(1))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return g}));var a=n(25),r=n.n(a),i=n(196),o=n(236),c=n(237),l=n(238),s=n(239);function u(e){return{Widget:d(e)(i.a),WidgetReportZero:d(e)(o.a),WidgetReportError:d(e)(c.a),WidgetActivateModuleCTA:d(e)(l.a),WidgetCompleteModuleActivationCTA:d(e)(s.a)}}function d(t){return function(n){var a=function WithWidgetSlug(a){return e.createElement(n,r()({},a,{widgetSlug:t}))};return a.displayName="WithWidgetSlug",(n.displayName||n.name)&&(a.displayName+="(".concat(n.displayName||n.name,")")),a}}var g=function(t){var n=u(t);return function(t){var a=function DecoratedComponent(a){return e.createElement(t,r()({},a,n))};return a.displayName="WithWidgetComponentProps",(t.displayName||t.name)&&(a.displayName+="(".concat(t.displayName||t.name,")")),a}}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return o}));var a=n(86),r=n(109),i=n(77);t.a=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=e.createElement(r.a,{moduleSlug:t});return Object(a.a)(c,n,i,o)};var o=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=e.createElement(i.a,{moduleSlug:t});return Object(a.a)(c,n,r,o)}}).call(this,n(1))},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(133);function r(e){if(Object(a.b)(e))return e.match(/pub-\d+$/)[0]}},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(2),m=n.n(f),p=n(8),h=n.n(p),b=n(1),v=n(27);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var _=function(t){l()(LayoutHeader,t);var n=y(LayoutHeader);function LayoutHeader(){return r()(this,LayoutHeader),n.apply(this,arguments)}return o()(LayoutHeader,[{key:"render",value:function(){var t=this.props,n=t.title,a=t.ctaLabel,r=t.ctaLink;return e.createElement("header",{className:"googlesitekit-layout__header"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:h()("mdc-layout-grid__cell","mdc-layout-grid__cell--align-middle","mdc-layout-grid__cell--span-4-phone",{"mdc-layout-grid__cell--span-6-desktop":r,"mdc-layout-grid__cell--span-12-desktop":!r,"mdc-layout-grid__cell--span-8-tablet":!r})},e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-layout__header-title"},n)),r&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-tablet "},e.createElement(v.a,{href:r,external:!0,inherit:!0},a)))))}}]),LayoutHeader}(b.Component);_.propTypes={title:m.a.string,ctaLabel:m.a.string,ctaLink:m.a.string},_.defaultProps={title:"",ctaLabel:"",ctaLink:""},t.a=_}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(2),m=n.n(f),p=n(1),h=n(64);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var v=function(t){l()(LayoutFooter,t);var n=b(LayoutFooter);function LayoutFooter(){return r()(this,LayoutFooter),n.apply(this,arguments)}return o()(LayoutFooter,[{key:"render",value:function(){var t=this.props,n=t.ctaLabel,a=t.ctaLink,r=t.footerContent;return e.createElement("footer",{className:"googlesitekit-layout__footer"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},a&&n&&e.createElement(h.a,{className:"googlesitekit-data-block__source",name:n,href:a,external:!0}),r))))}}]),LayoutFooter}(p.Component);v.propTypes={ctaLabel:m.a.string,ctaLink:m.a.string},t.a=v}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(121),i=n(178),o=n(113);t.a=function Logo(){return e.createElement("div",{className:"googlesitekit-logo","aria-hidden":"true"},e.createElement(r.a,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),e.createElement(i.a,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),e.createElement(o.a,null,Object(a.__)("Site Kit by Google Logo","google-site-kit")))}}).call(this,n(1))},function(e,t,n){"use strict";var a=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1l8.04-9.415zM69.984 3.117c0 .454-.166.853-.487 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.599 1.599 0 01-.488-1.175c0-.466.166-.854.488-1.176.321-.322.71-.488 1.175-.488.455 0 .854.166 1.176.488.332.333.487.72.487 1.176zm-.476 4.313v12.498h-2.351V7.43h2.35zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943-.676-.632-1.02-1.508-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333zM2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974-.588-.521-1.62-1.042-3.094-1.564l-1.22-.432C4.025 10.224 2.928 9.57 2.04 8.716 1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673C2.018 1.852 2.75 1.209 3.693.72 4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676c-.61.455-.91 1.032-.91 1.742 0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6.01 6.01 0 01-2.495 1.919 8.014 8.014 0 01-3.116.621c-1.62 0-3.072-.466-4.358-1.408zM15.969 3.449a1.95 1.95 0 01-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0117.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 01-1.43.589c-.566-.012-1.043-.2-1.431-.588zm-.067 2.595h2.994v13.883h-2.994V6.044zM25.405 19.85c-.543-.2-.986-.466-1.33-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122.233-.077.488-.21.765-.399v2.917c-.599.277-1.32.41-2.173.41a5.01 5.01 0 01-1.753-.3zM33.623 19.407a6.63 6.63 0 01-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706 1.053-.666 2.251-1.01 3.593-1.01 1.397 0 2.606.311 3.637.921a6.123 6.123 0 012.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.162 4.162 0 002.817 1.043c.854 0 1.597-.189 2.218-.588a4.266 4.266 0 001.508-1.597l2.528 1.198c-.654 1.142-1.508 2.04-2.561 2.694-1.054.655-2.318.976-3.782.976-1.364.022-2.584-.288-3.66-.931zm7.23-8.051a3.332 3.332 0 00-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296h7.552z",fill:"#5F6368"});t.a=function SvgLogoSitekit(e){return a.createElement("svg",r({viewBox:"0 0 80 21",fill:"none"},e),i)}},,,,,function(e,t,n){"use strict";function a(e){if(void 0!==e)return!Array.isArray(e)||!e.length||!e.some((function(e){return e.clicks>0||e.ctr>0||e.impressions>0||e.position>0}))}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(279),r=function(e){var t=new URL(e);return Object(a.parse)(t.hostname).domain}},function(e,t,n){"use strict";var a=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M107.91 41.72c7.73-13.22 3.14-30.12-10.24-37.75C84.29-3.66 67.18.87 59.45 14.09c-.35.59-.66 1.2-.96 1.81l-26.1 44.66a27.172 27.172 0 00-1.6 2.75L3.67 110.1l48.45 27.16 26.98-46.4c.29-.44.57-.89.84-1.35.27-.46.52-.93.76-1.39l26.11-44.67c.38-.57.76-1.14 1.1-1.73z",fill:"#FBBC04"}),a.createElement("path",{d:"M52.34 137.11c-7.68 13.43-25 18.38-38.31 10.62-13.31-7.76-18.02-24.57-10.34-38s24.86-18.39 38.16-10.64c13.3 7.75 18.18 24.59 10.49 38.02z",fill:"#34A853"}),a.createElement("path",{d:"M158.79 51.86c-13.23-7.62-30.15-3.1-37.79 10.1l-27.66 47.8c-7.64 13.2-3.11 30.08 10.13 37.7 13.23 7.62 30.15 3.1 37.79-10.1l27.66-47.8c7.63-13.2 3.1-30.08-10.13-37.7z",fill:"#4285F4"}));t.a=function SvgAdsense(e){return a.createElement("svg",r({viewBox:"0 0 173 152"},e),i)}},,function(e,t,n){"use strict";(function(e,a){var r=n(11),i=n.n(r),o=n(1),c=n(0),l=n(110),s=n(4),u=n.n(s),d=n(6),g=n(122),f=n(45),m=n(143),p=n(130),h=n(22),b=n(12),v=n(46),y=u.a.useSelect,_=u.a.useDispatch;t.a=function UserMenu(){var t=y((function(e){return e(h.c).getProxyPermissionsURL()})),n=y((function(e){return e(b.a).getEmail()})),r=y((function(e){return e(b.a).getPicture()})),s=y((function(e){return e(h.c).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})})),u=Object(o.useState)(!1),O=i()(u,2),k=O[0],j=O[1],E=Object(o.useState)(!1),S=i()(E,2),D=S[0],w=S[1],R=Object(o.useRef)(),C=Object(o.useRef)(),N=_(v.a).navigateTo;Object(o.useEffect)((function(){var t=function(e){(null==R?void 0:R.current)&&(null==C?void 0:C.current)&&(("keyup"!==e.type||l.b!==e.keyCode)&&"mouseup"!==e.type||R.current.contains(e.target)||C.current.contains(e.target)||w(!1))},n=function(e){l.b===e.keyCode&&(j(!1),w(!1))};return e.addEventListener("mouseup",t),e.addEventListener("keyup",t),e.addEventListener("keyup",n),function(){e.removeEventListener("mouseup",t),e.removeEventListener("keyup",t),e.removeEventListener("keyup",n)}}),[]);var A=Object(o.useCallback)((function(){w(!D)}),[D]),x=Object(o.useCallback)((function(){j(!k),w(!1)}),[k]),P=Object(o.useCallback)((function(e){switch(e){case 0:x();break;case 1:t&&N(t);break;default:A()}}),[t,A,x]),L=Object(o.useCallback)((function(){j(!1),Object(d.c)(),N(s)}),[s]);return n?a.createElement(o.Fragment,null,a.createElement("div",{className:"googlesitekit-user-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor"},a.createElement(f.a,{ref:R,className:"googlesitekit-header__dropdown mdc-button--dropdown",text:!0,onClick:A,icon:!!r&&a.createElement("i",{className:"mdc-button__icon","aria-hidden":"true"},a.createElement("img",{className:"mdc-button__icon--image",src:r,alt:Object(c.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":D,"aria-controls":"user-menu"},n),a.createElement(m.a,{ref:C,menuOpen:D,menuItems:[Object(c.__)("Disconnect","google-site-kit")].concat(t?[Object(c.__)("Manage sites…","google-site-kit")]:[]),onSelected:P,id:"user-menu"})),a.createElement(p.a,null,a.createElement(g.a,{dialogActive:k,handleConfirm:L,handleDialog:x,title:Object(c.__)("Disconnect","google-site-kit"),subtitle:Object(c.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:Object(c.__)("Disconnect","google-site-kit"),danger:!0}))):null}}).call(this,n(21),n(1))},function(e,t,n){"use strict";var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(124),m=n(1);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var h=function(e){l()(ErrorNotification,e);var t=p(ErrorNotification);function ErrorNotification(){return r()(this,ErrorNotification),t.apply(this,arguments)}return o()(ErrorNotification,[{key:"render",value:function(){return null}}]),ErrorNotification}(m.Component);t.a=Object(f.a)("googlesitekit.ErrorNotification")(h)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotifications}));var a=n(1),r=n(135),i=n(102);function ErrorNotifications(){return e.createElement(a.Fragment,null,e.createElement(r.a,null),e.createElement(i.a,null))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var a=n(2),r=n.n(a),i=n(4),o=n.n(i),c=n(191),l=n(192),s=n(103),u=n(193),d=n(194),g=n(195);function Root(t){var n=t.children,a=t.registry,r=t.dataAPIContext,i=t.dataAPIModuleArgs;return e.createElement(o.a.RegistryProvider,{value:a},e.createElement(l.a,{value:s.a},e.createElement(c.a,null,e.createElement(d.a,null,n,r&&e.createElement(g.a,{context:r,args:i})),e.createElement(u.a,null))))}Root.propTypes={children:r.a.node.isRequired,registry:r.a.object,dataAPIContext:r.a.string,dataAPIModuleArgs:r.a.object},Root.defaultProps={registry:o.a}}).call(this,n(1))},function(e,t,n){"use strict";(function(e,a){var r=n(16),i=n.n(r),o=n(17),c=n.n(o),l=n(43),s=n.n(l),u=n(18),d=n.n(u),g=n(19),f=n.n(g),m=n(10),p=n.n(m),h=n(273),b=n.n(h),v=n(2),y=n.n(v),_=n(1),O=n(0),k=n(276),j=n(321),E=n(322),S=n(41),D=n(27),w=n(45);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return f()(this,n)}}var C=function(t){d()(ErrorHandler,t);var n=R(ErrorHandler);function ErrorHandler(e){var t;return i()(this,ErrorHandler),(t=n.call(this,e)).state={error:null,info:null,copied:!1},t.onErrorClick=t.onErrorClick.bind(s()(t)),t}return c()(ErrorHandler,[{key:"componentDidCatch",value:function(t,n){e.console.error("Caught an error:",t,n),this.setState({error:t,info:n})}},{key:"onErrorClick",value:function(){var e=this.state,t=e.error,n=e.info;b()("`".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack,"`")),this.setState({copied:!0})}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.error,r=t.info,i=t.copied;if(!n)return e;var o=a.createElement(k.a,{className:"mdc-button__icon",icon:i?j.a:E.a});return a.createElement(S.a,{id:"googlesitekit-error",title:Object(O.__)("Site Kit encountered an error","google-site-kit"),description:a.createElement(_.Fragment,null,a.createElement(w.a,{trailingIcon:o,onClick:this.onErrorClick},Object(O.__)("Copy error to clipboard","google-site-kit")),a.createElement(D.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(O.__)("Report this problem","google-site-kit"))),isDismissable:!1,format:"small",type:"win-error"},a.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,r.componentStack))}}]),ErrorHandler}(_.Component);C.propTypes={children:y.a.node.isRequired},t.a=C}).call(this,n(21),n(1))},function(e,t,n){"use strict";var a=n(118),r=(a.a.Consumer,a.a.Provider);t.a=r},function(e,t,n){"use strict";(function(e,a){var r=n(7),i=n.n(r),o=n(14),c=n.n(o),l=n(0),s=n(1),u=n(4),d=n.n(u),g=n(12),f=n(46),m=n(112),p=n(122),h=n(130),b=d.a.useSelect,v=d.a.useDispatch,y=d.a.useRegistry;t.a=function PermissionsModal(){var t,n,r,o=y(),u=b((function(e){return e(g.a).getPermissionScopeError()})),d=b((function(t){var n;return t(g.a).getConnectURL({additionalScopes:null==u||null===(n=u.data)||void 0===n?void 0:n.scopes,redirectURL:e.location.href})})),_=v(g.a).clearPermissionScopeError,O=v(f.a).navigateTo,k=Object(s.useCallback)((function(){_()}),[_]),j=Object(s.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.c)(o);case 2:O(d);case 3:case"end":return e.stop()}}),e)}))),[o,d]);return Object(s.useEffect)((function(){(function(){var e=c()(i.a.mark((function e(){var t,n,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==u||null===(t=u.data)||void 0===t?void 0:t.skipModal)||!(null==u||null===(n=u.data)||void 0===n||null===(a=n.scopes)||void 0===a?void 0:a.length)){e.next=3;break}return e.next=3,j();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[j,u]),u?(null==u||null===(t=u.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.length)?(null==u||null===(r=u.data)||void 0===r?void 0:r.skipModal)?null:a.createElement(h.a,null,a.createElement(p.a,{title:Object(l.__)("Additional Permissions Required","google-site-kit"),subtitle:u.message,confirmButton:Object(l.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:j,handleDialog:k})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",u),null):null}}).call(this,n(21),n(1))},function(e,t,n){"use strict";var a=n(7),r=n.n(a),i=n(14),o=n.n(i),c=n(11),l=n.n(c),s=n(1),u=n(4),d=n.n(u),g=n(112),f=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=f(),a=Object(s.useState)(!1),i=l()(a,2),c=i[0],u=i[1];return Object(s.useEffect)((function(){c||o()(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(g.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return CollectModuleData}));var a=n(1),r=n(20),i=(n(24),n(4)),o=n.n(i),c=n(12),l=o.a.useSelect;function CollectModuleData(e){var t=e.context,n=e.args,i=l((function(e){return e(c.a).getDateRange()}));return Object(a.useEffect)((function(){return function(){return Object(r.d)("googlesitekit.moduleDataReset")}}),[i]),Object(a.useEffect)((function(){Object(r.d)("googlesitekit.moduleLoaded",t,n)}),[t,n,i]),null}},function(e,t,n){"use strict";(function(e){var a=n(8),r=n.n(a),i=n(2),o=n.n(i),c=function Widget(t){var n=t.children,a=t.className,i=t.widgetSlug,o=t.noPadding,c=t.Header,l=t.Footer;return e.createElement("div",{className:r()("googlesitekit-widget","googlesitekit-widget--".concat(i),{"googlesitekit-widget--no-padding":o},a)},c&&e.createElement("div",{className:"googlesitekit-widget__header"},e.createElement(c,null)),e.createElement("div",{className:"googlesitekit-widget__body"},n),l&&e.createElement("div",{className:"googlesitekit-widget__footer"},e.createElement(l,null)))};c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:o.a.node,widgetSlug:o.a.string.isRequired,noPadding:o.a.bool,Header:o.a.elementType,Footer:o.a.elementType},t.a=c}).call(this,n(1))},,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdSensePerformanceWidget}));var a=n(11),r=n.n(a),i=n(2),o=n.n(i),c=n(1),l=n(0),s=n(4),u=n.n(s),d=n(12),g=n(202),f=n(203),m=u.a.useSelect;function AdSensePerformanceWidget(t){var n=t.handleDataSuccess,a=t.handleDataError,i=Object(c.useState)(0),o=r()(i,2),s=o[0],u=o[1],p=m((function(e){return e(d.a).getDateRangeDates({compare:!0})})),h=p.startDate,b=p.endDate,v=p.compareStartDate,y=p.compareEndDate,_=Object(c.useCallback)((function(e){u(e)}),[]),O={EARNINGS:Object(l.__)("Earnings","google-site-kit"),PAGE_VIEWS_RPM:Object(l.__)("Page RPM","google-site-kit"),IMPRESSIONS:Object(l.__)("Impressions","google-site-kit"),PAGE_VIEWS_CTR:Object(l.__)("Page CTR","google-site-kit")};return e.createElement(c.Fragment,null,e.createElement(g.a,{startDate:h,endDate:b,compareStartDate:v,compareEndDate:y,metrics:O,selectedStats:s,handleStatSelection:_,handleDataSuccess:n,handleDataError:a}),e.createElement(f.a,{startDate:h,endDate:b,compareStartDate:v,compareEndDate:y,metrics:O,selectedStats:s}))}AdSensePerformanceWidget.propTpyes={handleDataError:o.a.func.isRequired,handleDataSuccess:o.a.func.isRequired}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdSenseDashboardWidgetOverview}));var a=n(2),r=n.n(a),i=n(1),o=n(4),c=n.n(o),l=n(32),s=n(29),u=n(40),d=n(70),g=n(87),f=n(6),m=n(71),p=c.a.useSelect;function AdSenseDashboardWidgetOverview(t){var n,a,r=t.startDate,o=t.endDate,c=t.compareStartDate,h=t.compareEndDate,b=t.metrics,v=t.selectedStats,y=t.handleStatSelection,_=t.handleDataError,O=t.handleDataSuccess,k={metrics:Object.keys(b),startDate:r,endDate:o},j={metrics:Object.keys(b),startDate:c,endDate:h},E=p((function(e){return e(l.c).getReport(k)})),S=p((function(e){return e(l.c).getReport(j)})),D=p((function(e){return e(l.c).hasFinishedResolution("getReport",[k])})),w=p((function(e){return e(l.c).hasFinishedResolution("getReport",[j])})),R=p((function(e){return e(l.c).getErrorForSelector("getReport",[k])})),C=p((function(e){return e(l.c).getErrorForSelector("getReport",[j])}));if(Object(i.useEffect)((function(){D&&w&&(R||C?_(R||C):Object(m.e)(E)?_():O())}),[D&&w,!!R||!!C,JSON.stringify(E)]),!D||!w)return e.createElement(s.a,{width:"100%",height:"250px"});if(R||C){var N=R||C;return e.createElement(d.a,{moduleSlug:"adsense",error:N})}if(Object(m.e)(E))return e.createElement(g.a,{moduleSlug:"adsense"});var A=E.totals,x=E.headers,P=S.totals;return e.createElement("div",{className:"googlesitekit-adsense-performance-overview"},e.createElement(u.a,{stat:0,className:"googlesitekit-data-block--page-rpm googlesitekit-data-block--button-1",title:b[x[0].name],datapoint:A[0],datapointUnit:null===(n=x[0])||void 0===n?void 0:n.currency,change:Object(f.b)(P[0],A[0]),changeDataUnit:"%",context:"button",selected:0===v,handleStatSelection:function(){return y(0)}}),e.createElement(u.a,{stat:1,className:"googlesitekit-data-block--page-rpm googlesitekit-data-block--button-2",title:b[x[1].name],datapoint:A[1],datapointUnit:null===(a=x[1])||void 0===a?void 0:a.currency,change:Object(f.b)(P[1],A[1]),changeDataUnit:"%",context:"button",selected:1===v,handleStatSelection:function(){return y(1)}}),e.createElement(u.a,{stat:2,className:"googlesitekit-data-block--impression googlesitekit-data-block--button-3",title:b[x[2].name],datapoint:A[2],change:Object(f.b)(P[2],A[2]),changeDataUnit:"%",context:"button",selected:2===v,handleStatSelection:function(){return y(2)}}),e.createElement(u.a,{stat:3,className:"googlesitekit-data-block--impression googlesitekit-data-block--button-4",title:b[x[3].name],datapoint:A[3],datapointUnit:"%",change:Object(f.b)(P[3],A[3]),changeDataUnit:"%",context:"button",selected:3===v,handleStatSelection:function(){return y(3)}}))}AdSenseDashboardWidgetOverview.propTypes={startDate:r.a.string.isRequired,endDate:r.a.string.isRequired,compareStartDate:r.a.string.isRequired,compareEndDate:r.a.string.isRequired,metrics:r.a.shape({}).isRequired,selectedStats:r.a.number.isRequired,handleStatSelection:r.a.func.isRequired,handleDataError:r.a.func.isRequired,handleDataSuccess:r.a.func.isRequired}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdSenseDashboardWidgetSiteStats}));var a=n(2),r=n.n(a),i=n(4),o=n.n(i),c=n(32),l=n(23),s=n(70),u=n(87),d=n(29),g=n(84),f=n(71),m=o.a.useSelect;function AdSenseDashboardWidgetSiteStats(t){var n=t.startDate,a=t.endDate,r=t.compareStartDate,i=t.compareEndDate,o=t.metrics,p=t.selectedStats,h={dimensions:["DATE"],metrics:Object.keys(o),startDate:n,endDate:a},b={dimensions:["DATE"],metrics:Object.keys(o),startDate:r,endDate:i},v=m((function(e){return e(c.c).getReport(h)})),y=m((function(e){return e(c.c).getReport(b)})),_=m((function(e){return e(c.c).hasFinishedResolution("getReport",[h])})),O=m((function(e){return e(c.c).hasFinishedResolution("getReport",[b])})),k=m((function(e){return e(c.c).getErrorForSelector("getReport",[h])})),j=m((function(e){return e(c.c).getErrorForSelector("getReport",[b])}));if(!_||!O)return e.createElement(d.a,{width:"100%",height:"250px"});if(k||j){var E=k||j;return e.createElement(s.a,{moduleSlug:"adsense",error:E})}if(Object(f.e)(v))return e.createElement(u.a,{moduleSlug:"adsense"});var S={curveType:"line",height:270,width:"100%",chartArea:{height:"80%",width:"87%"},legend:{position:"top",textStyle:{color:"#616161",fontSize:12}},hAxis:{format:"M/d/yy",gridlines:{color:"#fff"},textStyle:{color:"#616161",fontSize:12}},vAxis:{format:AdSenseDashboardWidgetSiteStats.formats[v.headers[p+1].type],gridlines:{color:"#eee"},minorGridlines:{color:"#eee"},textStyle:{color:"#616161",fontSize:12},titleTextStyle:{color:"#616161",fontSize:12,italic:!1}},focusTarget:"category",crosshair:{color:"gray",opacity:.1,orientation:"vertical",trigger:"both"},tooltip:{isHtml:!0,trigger:"both"},series:{0:{color:AdSenseDashboardWidgetSiteStats.colors[p],targetAxisIndex:0},1:{color:AdSenseDashboardWidgetSiteStats.colors[p],targetAxisIndex:0,lineDashStyle:[3,3],lineWidth:1}}},D=Object(f.a)(v,y,Object.values(o)[p],p+1,v.headers[p+1]);return e.createElement(l.b,{className:"googlesitekit-adsense-site-stats"},e.createElement(l.m,null,e.createElement(l.a,{size:12},e.createElement(g.a,{chartType:"line",selectedStats:[p],data:D,options:S}))))}AdSenseDashboardWidgetSiteStats.colors=["#4285f4","#27bcd4","#1b9688","#673ab7"],AdSenseDashboardWidgetSiteStats.formats={METRIC_TALLY:void 0,METRIC_CURRENCY:"currency",METRIC_RATIO:"percent",METRIC_DECIMAL:"decimal",METRIC_MILLISECONDS:void 0},AdSenseDashboardWidgetSiteStats.propTypes={startDate:r.a.string.isRequired,endDate:r.a.string.isRequired,compareStartDate:r.a.string.isRequired,compareEndDate:r.a.string.isRequired,metrics:r.a.shape({}).isRequired,selectedStats:r.a.number.isRequired}}).call(this,n(1))},function(e,t,n){"use strict";var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(124),m=n(1);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var h=function(e){l()(DashboardAdSenseTopPages,e);var t=p(DashboardAdSenseTopPages);function DashboardAdSenseTopPages(){return r()(this,DashboardAdSenseTopPages),t.apply(this,arguments)}return o()(DashboardAdSenseTopPages,[{key:"render",value:function(){return null}}]),DashboardAdSenseTopPages}(m.Component);t.a=Object(f.a)("googlesitekit.AnalyticsAdSenseTopPagesTable")(h)},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(0),m=n(1),p=n(71),h=n(33),b=n(39),v=n(24),y=n(29),_=n(6),O=n(67),k=n(40),j=n(62);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var S=function(t){l()(LegacyAdSenseDashboardMainSummary,t);var n=E(LegacyAdSenseDashboardMainSummary);function LegacyAdSenseDashboardMainSummary(e){var t;return r()(this,LegacyAdSenseDashboardMainSummary),(t=n.call(this,e)).state={today:!1,period:!1,daily:!1},t}return o()(LegacyAdSenseDashboardMainSummary,[{key:"componentDidUpdate",value:function(){this.processCallbackData()}},{key:"componentDidMount",value:function(){this.processCallbackData()}},{key:"processCallbackData",value:function(){var e=this.props,t=e.data,n=e.requestDataToState;t&&!t.error&&"function"==typeof n&&this.setState(n)}},{key:"render",value:function(){var t=this.state,n=t.today,a=t.period,r=t.daily;if(!(n&&a&&r&&a.totals))return e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet "},e.createElement(h.a,{className:"googlesitekit-dashboard-adsense-stats",fill:!0},e.createElement(y.a,{width:"100%",height:"276px",padding:!0})));var i=Object(p.f)(r.rows),o=Object(_.l)("googlesitekit-module-adsense",{}),c=a.headers.find((function(e){return null!==e.currency&&0<e.currency.length})),l=!!c&&c.currency;return e.createElement(m.Fragment,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet "},e.createElement(h.a,{className:"googlesitekit-dashboard-adsense-stats",fill:!0},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(k.a,{className:"overview-adsense-rpm",title:Object(f.__)("RPM","google-site-kit"),datapoint:a.totals[1],datapointUnit:l,source:{name:Object(f._x)("AdSense","Service name","google-site-kit"),link:o},sparkline:r&&e.createElement(j.a,{data:Object(O.a)(i.dataMap,2),change:1}),context:"compact"})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(k.a,{className:"overview-adsense-earnings",title:Object(f.__)("Total Earnings","google-site-kit"),datapoint:a.totals[0],datapointUnit:l,source:{name:Object(f._x)("AdSense","Service name","google-site-kit"),link:o},change:n.totals[0],changeDataUnit:l,sparkline:r&&e.createElement(j.a,{data:Object(O.a)(i.dataMap,1),change:1}),context:"compact"})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(k.a,{className:"overview-adsense-impressions",title:Object(f.__)("Ad Impressions","google-site-kit"),datapoint:a.totals[2],source:{name:Object(f._x)("AdSense","Service name","google-site-kit"),link:o},sparkline:r&&e.createElement(j.a,{data:Object(O.a)(i.dataMap,3),change:1}),context:"compact"})))))))}}]),LegacyAdSenseDashboardMainSummary}(m.Component);t.a=Object(b.a)(S,[{type:v.b,identifier:"adsense",datapoint:"earnings",data:{dateRange:"today"},priority:1,maxAge:Object(_.m)("day"),context:"Dashboard",toState:function(e,t){var n=t.data;if(!e.today)return{today:n}}},{type:v.b,identifier:"adsense",datapoint:"earnings",data:{},priority:1,maxAge:Object(_.m)("day"),context:"Dashboard",toState:function(e,t){var n=t.data;if(!e.period)return{period:n}}},{type:v.b,identifier:"adsense",datapoint:"earnings",data:{dimensions:["DATE"]},priority:1,maxAge:Object(_.m)("day"),context:"Dashboard",toState:function(e,t){var n=t.data;if(!e.daily)return{daily:n}}}],e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet "},e.createElement(h.a,{className:"googlesitekit-dashboard-adsense-stats",fill:!0},e.createElement(y.a,{width:"100%",height:"276px",padding:!0}))),{inGrid:!0,createGrid:!0},p.b)}).call(this,n(1))},function(e,t,n){"use strict";var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(124),m=n(1);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var h=function(e){l()(LegacyDashboardAdSenseTopEarningPagesSmall,e);var t=p(LegacyDashboardAdSenseTopEarningPagesSmall);function LegacyDashboardAdSenseTopEarningPagesSmall(){return r()(this,LegacyDashboardAdSenseTopEarningPagesSmall),t.apply(this,arguments)}return o()(LegacyDashboardAdSenseTopEarningPagesSmall,[{key:"render",value:function(){return null}}]),LegacyDashboardAdSenseTopEarningPagesSmall}(m.Component);t.a=Object(f.a)("googlesitekit.AnalyticsAdSenseTopPagesTableSmall")(h)},function(e,t,n){"use strict";var a=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M48 46.376a6.629 6.629 0 01-2.18 4.952 6.466 6.466 0 01-5.11 1.625c-3.339-.495-5.789-3.433-5.708-6.848V6.891C34.925 3.475 37.379.537 40.72.045a6.469 6.469 0 015.102 1.631A6.63 6.63 0 0148 6.622v39.754z",fill:"#F9AB00"}),a.createElement("path",{d:"M6.5 40.002a6.489 6.489 0 014.594 1.901 6.51 6.51 0 011.906 4.6 6.51 6.51 0 01-1.906 4.596A6.489 6.489 0 016.5 53a6.489 6.489 0 01-4.594-1.9A6.51 6.51 0 010 46.501a6.51 6.51 0 011.905-4.6A6.489 6.489 0 016.5 40v.002zM24.348 20.002c-3.62.197-6.429 3.256-6.346 6.908v17.644c0 4.79 2.092 7.696 5.16 8.314a6.498 6.498 0 005.442-1.358A6.61 6.61 0 0031 46.4V26.605a6.624 6.624 0 00-1.912-4.668A6.519 6.519 0 0024.459 20l-.111.002z",fill:"#E37400",fillRule:"nonzero"}));t.a=function SvgAnalytics(e){return a.createElement("svg",r({viewBox:"0 0 48 53"},e),i)}},,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdSenseDashboardWidget}));var a=n(11),r=n.n(a),i=n(124),o=n(1),c=n(0),l=n(4),s=n.n(l),u=n(185),d=n(201),g=n(123),f=n(204),m=n(83),p=n(93),h=n(50),b=n(100),v=n(115),y=n(89),_=n(91),O=n(107),k=n(33),j=n(12),E=n(30),S=n(32),D=n(23),w=n(58),R=n(150),C=s.a.useSelect,N=Object(i.a)("googlesitekit.AdSenseDashboardZeroData")((function(){return null}));function AdSenseDashboardWidget(){var t,n,a=Object(o.useState)(!0),i=r()(a,2),l=i[0],s=i[1],A=Object(o.useState)(!1),x=r()(A,2),P=x[0],L=x[1],T=Object(o.useState)(),M=r()(T,2),U=M[0],I=M[1],z=Object(o.useState)(!0),W=r()(z,2),q=W[0],F=W[1],G=Object(o.useState)(!1),H=r()(G,2),B=H[0],V=H[1],K=C((function(e){return e(E.a).isModuleConnected("adsense")})),$=C((function(e){return e(j.a).getDateRangeDates({offsetDays:S.a})})),Z=C((function(e){return e(S.c).getServiceReportURL(Object(R.a)($))})),Y=C((function(e){return e(j.a).getDateRange()})),J=Object(w.b)(Y),Q=q||!l||B?"googlesitekit-nodata":"";return!P&&K?(t="connected",n=Object(c.sprintf)(
  /* translators: %s: module name. */
  Object(c.__)("%s is connected","google-site-kit"),Object(c._x)("AdSense","Service name","google-site-kit"))):(t="not-connected",n=Object(c.sprintf)(
  /* translators: %s: module name. */
  Object(c.__)("%s is not connected","google-site-kit"),Object(c._x)("AdSense","Service name","google-site-kit"))),e.createElement(o.Fragment,null,e.createElement(_.a,null,"connected"===t&&e.createElement(v.a,null)),e.createElement("div",{className:Q},e.createElement(g.a,{module:"adsense"})),e.createElement("div",{className:"googlesitekit-module-page googlesitekit-module-page--adsense"},e.createElement(D.b,null,e.createElement(D.m,null,e.createElement(D.a,{size:12},e.createElement(O.a,{title:Object(c._x)("AdSense","Service name","google-site-kit"),icon:e.createElement(u.a,{className:"googlesitekit-page-header__icon",height:"33",width:"33"}),status:t,statusText:n}),q&&e.createElement(h.a,null)),B&&e.createElement(D.a,{size:12},e.createElement(k.a,{fill:!0},e.createElement(N,null))),!l&&(P?Object(p.a)("adsense",P,!0,!0,!0,U):Object(m.a)(Object(c._x)("AdSense","Service name","google-site-kit"),!0,!0,!0)),e.createElement(D.a,{className:Q,size:12},e.createElement(b.a,{slug:"adsense"})),e.createElement(D.a,{className:Q,size:12},e.createElement(k.a,{header:!0,title:Object(c.sprintf)(
  /* translators: %s: number of days */
  Object(c._n)("Performance over the last %s day","Performance over the last %s days",J,"google-site-kit"),J),headerCTALabel:Object(c.__)("See full stats in AdSense","google-site-kit"),headerCTALink:Z},e.createElement(d.a,{handleDataError:function(e){e?function(e,t){s(!1),F(!1),L(e),I(t)}():(V(!0),F(!1))},handleDataSuccess:function(){s(!0),F(!1),V(!1),L(!1)}}))),e.createElement(D.a,{className:Q,size:12},e.createElement(f.a,null)),e.createElement(D.a,{alignRight:!0,size:12},e.createElement(y.a,null))))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(1),m=n(0),p=n(59),h=n(206),b=n(205),v=n(100);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var _=function(t){l()(LegacyDashboardEarnings,t);var n=y(LegacyDashboardEarnings);function LegacyDashboardEarnings(){return r()(this,LegacyDashboardEarnings),n.apply(this,arguments)}return o()(LegacyDashboardEarnings,[{key:"render",value:function(){return e.createElement(f.Fragment,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(p.a,{title:Object(m.__)("Earnings","google-site-kit"),description:Object(m.__)("How much you’re earning from your content through AdSense.","google-site-kit")}),e.createElement(v.a,{slug:"adsense"})),e.createElement(b.a,null),e.createElement(h.a,null))}}]),LegacyDashboardEarnings}(f.Component);t.a=_}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PostSearcherAutoSuggest}));var a=n(11),r=n.n(a),i=n(2),o=n.n(i),c=n(114),l=n(1),s=n(0),u=n(49),d=n.n(u),g=n(214);function PostSearcherAutoSuggest(t){var n=t.id,a=t.setCanSubmit,i=t.setMatch,o=Object(l.useState)(""),u=r()(o,2),f=u[0],m=u[1],p=Object(g.a)(f,200),h=Object(l.useState)([]),b=r()(h,2),v=b[0],y=b[1],_=Object(s.__)("No results found","google-site-kit"),O=Object(l.useCallback)((function(e){if(Array.isArray(v)&&e!==_){var t=v.find((function(t){return t.post_title===e}));t&&(a(!0),i(t))}else a(!1)}),[v,a,i]),k=Object(l.useCallback)((function(e){a(!1),m(e.target.value)}),[a]);return Object(l.useEffect)((function(){""!==p&&d.a.get("core","search","post-search",{query:encodeURIComponent(p)},{useCache:!1}).then(y).catch((function(){return y([])}))}),[p,y]),e.createElement(c.a,{className:"autocomplete__wrapper",onSelect:O},e.createElement(c.b,{id:n,className:"autocomplete__input autocomplete__input--default",type:"text",onChange:k}),""!==p&&e.createElement(c.e,{portal:!1},e.createElement(c.c,{className:"autocomplete__menu autocomplete__menu--inline"},v.length>0?v.map((function(t){var n=t.ID,a=t.post_title;return e.createElement(c.d,{key:n,value:a,className:"autocomplete__option"})})):e.createElement(c.d,{value:_,className:"autocomplete__option"}))))}PostSearcherAutoSuggest.propTypes={id:o.a.string,setCanSubmit:o.a.func,setMatch:o.a.func}}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(11),r=n.n(a),i=n(1);function o(e,t){var n=Object(i.useState)(e),a=r()(n,2),o=a[0],c=a[1];return Object(i.useEffect)((function(){var n=setTimeout((function(){c(e)}),t);return function(){clearTimeout(n)}}),[e,t]),o}},function(e,t,n){"use strict";(function(e,a){var r=n(16),i=n.n(r),o=n(17),c=n.n(o),l=n(18),s=n.n(l),u=n(19),d=n.n(u),g=n(10),f=n.n(g),m=n(1),p=n(0),h=n(41);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=f()(e);if(t){var r=f()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return d()(this,n)}}var v=function(t){s()(InvalidCredentialsWarning,t);var n=b(InvalidCredentialsWarning);function InvalidCredentialsWarning(){return i()(this,InvalidCredentialsWarning),n.apply(this,arguments)}return c()(InvalidCredentialsWarning,[{key:"render",value:function(){return e.createElement(h.a,{id:"notification-id",title:Object(p.__)("Security Token Error","google-site-kit"),description:Object(p.__)("We’re unable to retrieve your data because your security token is expired or revoked.","google-site-kit"),learnMoreURL:a._googlesitekitLegacyData.admin.connectURL,learnMoreLabel:Object(p.__)("Please reauthenticate your account","google-site-kit"),format:"small",type:"win-error"})}}]),InvalidCredentialsWarning}(m.Component);t.a=v}).call(this,n(1),n(21))},function(e,t,n){"use strict";var a=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{d:"M6 9H4v2h2V9zm4 0H8v2h2V9zm4 0h-2v2h2V9zm2-7h-1V0h-2v2H5V0H3v2H2C.89 2 .01 2.9.01 4L0 18a2 2 0 002 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 16H2V7h14v11z",fill:"currentColor",fillRule:"evenodd"});t.a=function SvgDateRange(e){return a.createElement("svg",r({viewBox:"0 0 18 20"},e),i)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(5),r=n.n(a);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(e,t){var n=o({data:{}},e);return n.data=o({dateRange:t},n.data),n}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TotalUserCount}));var a=n(11),r=n.n(a),i=n(5),o=n.n(i),c=n(2),l=n.n(c),s=n(8),u=n.n(s),d=n(1),g=n(276),f=n(332),m=n(0),p=n(4),h=n.n(p),b=n(12),v=n(6),y=n(58),_=n(116),O=n(29),k=n(70),j=n(52),E=n(9),S=n(27),D=h.a.useSelect,w=h.a.useDispatch;function TotalUserCount(t){var n,a,i,c,l,s=t.loaded,p=t.error,h=t.report,R=t.dimensionValue,C=D((function(e){return e(b.a).getDateRange()})),N=w(j.a).setValues;if(!s)return e.createElement(O.a,{className:"googlesitekit-widget--analyticsAllTraffic__totalcount--loading",width:"220px",height:"90px",shape:"square"});if(p)return e.createElement(k.a,{moduleSlug:"analytics",error:p});var A=((null==h||null===(n=h[0])||void 0===n?void 0:n.data)||{}).totals||[],x=r()(A,2),P=x[0],L=x[1],T=Object(v.b)(null==L||null===(a=L.values)||void 0===a?void 0:a[0],null==P||null===(i=P.values)||void 0===i?void 0:i[0]),M=null,U=null===(c=Object(y.a)()[C])||void 0===c?void 0:c.days;return U&&(M=Object(m.sprintf)(
  /* translators: %s number of days */
  Object(m.__)("compared to the previous %s days","google-site-kit"),U)),e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__totalcount googlesitekit-data-block"},e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-data-block__title"},!R&&Object(m.__)("All Users","google-site-kit"),R&&e.createElement(d.Fragment,null,R&&e.createElement(S.a,{onClick:function(){var e;N((e={},o()(e,E.n,""),o()(e,E.l,""),e))}},Object(m.__)("All Users","google-site-kit")),!R&&Object(m.__)("All Users","google-site-kit"),e.createElement(g.a,{icon:f.a,size:"18",fill:"currentColor"}),R)),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},Object(v.p)(null==P||null===(l=P.values)||void 0===l?void 0:l[0])),e.createElement("div",{className:"googlesitekit-data-block__change"},e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<=T?"up":"down",width:9,height:9})),e.createElement("span",{className:u()("googlesitekit-data-block__value",{"googlesitekit-data-block__value--up":0<=T,"googlesitekit-data-block__value--down":0>T})},Object(v.p)(Math.abs(T),{style:"percent",maximumFractionDigits:1})),e.createElement("span",{className:"googlesitekit-data-block__suffix"},M)))}TotalUserCount.propTypes={loaded:l.a.bool,report:l.a.arrayOf(l.a.object),dimensionValue:l.a.string}}).call(this,n(1))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return UserCountGraph}));var r=n(5),i=n.n(r),o=n(42),c=n.n(o),l=n(11),s=n.n(l),u=n(2),d=n.n(u),g=n(0),f=n(1),m=n(4),p=n.n(m),h=n(52),b=n(12),v=n(9),y=n(104),_=n(105),O=n(70);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var j=p.a.useSelect;function UserCountGraph(t){var n,r,o,l,u=t.loaded,d=t.error,m=t.report,p=j((function(e){return e(b.a).getDateRangeDates({offsetDays:v.b})})),E=p.startDate,S=p.endDate,D=j((function(e){return e(b.a).getDateRangeNumberOfDays()})),w=j((function(e){return e(h.a).getValue(v.l)||"#1a73e8"})),R=Object(f.useState)(e.matchMedia("(max-width: 450px)")),C=s()(R,2),N=C[0],A=C[1],x=Object(f.useState)(e.matchMedia("(min-width: 451px) and (max-width: 1280px")),P=s()(x,2),L=P[0],T=P[1],M=Object(f.useState)(e.matchMedia("(min-width: 1281px)")),U=s()(M,2),I=U[0],z=U[1];if(Object(f.useEffect)((function(){var t=function(){A(e.matchMedia("(max-width: 450px)")),T(e.matchMedia("(min-width: 451px) and (max-width: 1280px")),z(e.matchMedia("(min-width: 1281px)"))};return e.addEventListener("resize",t),function(){e.removeEventListener("resize",t)}}),[]),d)return a.createElement(O.a,{moduleSlug:"analytics",error:d});var W=Array.isArray(null==m||null===(n=m[0])||void 0===n||null===(r=n.data)||void 0===r?void 0:r.rows)?null==m||null===(o=m[0])||void 0===o||null===(l=o.data)||void 0===l?void 0:l.rows:[],q=[[{type:"date",label:Object(g.__)("Day","google-site-kit")},{type:"number",label:Object(g.__)("Users","google-site-kit")}]].concat(c()(W.map((function(e){var t=e.metrics,n=e.dimensions;return[Object(_.a)(n[0]),t[0].values[0]]})))),F=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},UserCountGraph.chartOptions),G=1,H=2;N.matches&&(D>28?G=8:D>7&&(G=3),D>7&&(H=3)),L.matches&&(D>28?G=5:D>7&&(G=2),D>7&&(H=3)),I.matches&&(D>28&&(G=5),D>7&&(H=4));var B=new Date(E);B.setDate(new Date(E).getDate()+G);var V=new Date(S);V.setDate(new Date(S).getDate()-G);var K=[],$=H-1;for(H-=2;H>0;){var Z=new Date(S);Z.setDate(new Date(S).getDate()-H*(D/$)),K.push(Z),H-=1}return F.hAxis.ticks=[B].concat(K,[V]),F.series[0].color=w,a.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__user-count-chart"},a.createElement(y.a,{chartType:"LineChart",data:q,height:"368px",loadingHeight:"340px",loaded:u,options:F,width:"100%"}))}UserCountGraph.propTypes={loaded:d.a.bool,error:d.a.shape({}),report:d.a.arrayOf(d.a.object)},UserCountGraph.chartOptions={animation:{startup:!0},curveType:"function",height:340,width:"100%",colors:["#1a73e8"],chartArea:{left:"1%",height:300,top:21,width:"90%"},legend:{position:"none"},hAxis:{backgroundColor:"#eef4fd",format:"MMM d",gridlines:{color:"#ffffff"},textPosition:"out",textStyle:{color:"#616161",fontSize:12}},vAxes:{0:{baseline:0,gridlines:{color:"#ffffff"},viewWindow:{max:1,min:0},viewWindowMode:"explicit",textPosition:"none",ticks:[]},1:{gridlines:{color:"#ece9f1"},lineWidth:3,minorGridlines:{color:"#ffffff"},minValue:0,textStyle:{color:"#616161",fontSize:12},textPosition:"out",viewWindow:{min:0}}},series:{0:{lineWidth:3,targetAxisIndex:1}},crosshair:{color:"#1a73e8",opacity:.1,orientation:"vertical"}}}).call(this,n(21),n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DimensionTabs}));var a=n(5),r=n.n(a),i=n(2),o=n.n(i),c=n(197),l=n.n(c),s=n(224),u=n.n(s),d=n(1),g=n(0),f=n(4),m=n.n(f),p=n(52),h=n(9),b=n(29),v=n(23),y=n(6),_=m.a.useDispatch;function DimensionTabs(t){var n=t.dimensionName,a=t.loaded,i=_(p.a).setValues,o=[{tabText:Object(g.__)("Channels","google-site-kit"),dimensionName:"ga:channelGrouping"},{tabText:Object(g.__)("Locations","google-site-kit"),dimensionName:"ga:country"},{tabText:Object(g.__)("Devices","google-site-kit"),dimensionName:"ga:deviceCategory"}],c=o.findIndex((function(e){return e.dimensionName===n})),s=Object(d.useCallback)((function(e){var t,n=(o[e]||{}).dimensionName;i((t={},r()(t,h.m,n),r()(t,h.n,""),r()(t,h.l,""),r()(t,h.k,null),t)),Object(y.v)("all_traffic_widget","tab_select",n)}));return a?e.createElement(d.Fragment,null,e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__tabs hidden-on-mobile"},e.createElement(u.a,{activeIndex:c,handleActiveIndexUpdate:s},o.map((function(t){return e.createElement(l.a,{key:t.dimensionName,className:"mdc-tab--min-width",focusOnActivate:!1},e.createElement("span",{className:"mdc-tab__text-label"},t.tabText))})))),e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__tabs--small"},e.createElement(v.n,{enhanced:!0,onEnhancedChange:s,outlined:!0,value:"dimension-name-".concat(c)},o.map((function(t,n){return e.createElement(v.l,{key:n,value:"dimension-name-".concat(n)},t.tabText)}))))):e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__tabs--loading"},e.createElement(b.a,{width:"100px",height:"40px",shape:"square"}),e.createElement(b.a,{width:"100px",height:"40px",shape:"square"}),e.createElement(b.a,{width:"100px",height:"40px",shape:"square"}))}DimensionTabs.propTypes={dimensionName:o.a.string.isRequired,loaded:o.a.bool}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserDimensionsPieChart}));var a=n(5),r=n.n(a),i=n(11),o=n.n(i),c=n(8),l=n.n(c),s=n(2),u=n.n(s),d=n(1),g=n(0),f=n(4),m=n.n(f),p=n(22),h=n(52),b=n(9),v=n(6),y=n(28),_=n(104),O=n(27),k=n(29);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var E=m.a.useDispatch,S=m.a.useSelect;function UserDimensionsPieChart(t){var n,a,i,c,s,u,f,m,D,w,R,C,N,A,x,P=t.dimensionName,L=t.dimensionValue,T=t.loaded,M=t.report,U=Object(d.useState)(!1),I=o()(U,2),z=I[0],W=I[1],q=S((function(e){return e(p.c).getGoogleSupportURL({path:"/analytics/answer/1009671"})})),F=S((function(e){return e(p.c).getGoogleSupportURL({path:"/analytics/answer/2820717"})})),G=S((function(e){return e(h.a).getValue(b.l)})),H=S((function(e){return e(h.a).getValue(b.k)})),B=E(h.a).setValues,V=Object(d.useRef)(),K=Object(d.useRef)();Object(d.useEffect)((function(){var e=function(e){var t,n=(e||{}).target;if(null==n||null===(t=n.classList)||void 0===t?void 0:t.contains("googlesitekit-cta-link__tooltip")){var a=n.dataset.rowLabel;"(other)"!==a&&"(not set)"!==a||Object(v.v)("all_traffic_widget","help_click",a)}};return K.current&&K.current.addEventListener("click",e),function(){K.current&&K.current.removeEventListener("click",e)}}),[K.current]);var $={current:null==M||null===(n=M[0])||void 0===n||null===(a=n.data)||void 0===a||null===(i=a.totals)||void 0===i||null===(c=i[0])||void 0===c||null===(s=c.values)||void 0===s?void 0:s[0],previous:null==M||null===(u=M[0])||void 0===u||null===(f=u.data)||void 0===f||null===(m=f.totals)||void 0===m||null===(D=m[1])||void 0===D||null===(w=D.values)||void 0===w?void 0:w[0]};((null==M||null===(R=M[0])||void 0===R||null===(C=R.data)||void 0===C?void 0:C.rows)||[]).forEach((function(e){var t=e.metrics;$.current-=t[0].values[0],$.previous-=t[1].values[0]}));var Z=function(e,t,n){return'<p>\n\t\t\t<a\n\t\t\t\thref="'.concat(e,'"\n\t\t\t\tclass="googlesitekit-cta-link googlesitekit-cta-link--external googlesitekit-cta-link--inherit googlesitekit-cta-link__tooltip"\n\t\t\t\ttarget="_blank"\n\t\t\t\trel="noreferrer noopener"\n\t\t\t\tdata-row-label="').concat(n,'"\n\t\t\t>\n\t\t\t\t').concat(t,"\n\t\t\t</a>\n\t\t</p>")},Y=Object(y.e)(M,{keyColumnIndex:0,maxSlices:5,withOthers:!0,tooltipCallback:function(e,t){var n,a,r,i=(null==e||null===(n=e.metrics)||void 0===n||null===(a=n[1])||void 0===a||null===(r=a.values)||void 0===r?void 0:r[0])>0?100*e.metrics[0].values[0]/e.metrics[1].values[0]-100:100;null===e&&$.previous>0&&(i=100*$.current/$.previous-100);var o=e?e.metrics[0].values[0]:$.current,c=Object(g.sprintf)(
  /* translators: 1: numeric value of users, 2: up or down arrow , 3: different change in percentage, %%: percent symbol */
  Object(g._x)("Users: <strong>%1$s</strong> <em>%2$s %3$s%%</em>","Stat information for the user dimensions chart tooltip","google-site-kit"),Object(v.q)(o),'<svg width="9" height="9" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg" class="'.concat(l()("googlesitekit-change-arrow",{"googlesitekit-change-arrow--up":i>0,"googlesitekit-change-arrow--down":i<0}),'">\n\t\t\t\t\t<path d="M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z" fill="currentColor" />\n\t\t\t\t</svg>'),Object(v.q)(Math.abs(i),{maximumFractionDigits:2})),s=t[0].toLowerCase(),u="googlesitekit-visualization-tooltip-".concat(s.replace(/\W+/,"_")),d="<p>\n\t\t\t\t\t".concat(
  /* translators: %s: dimension label */
  Object(g.sprintf)(Object(g.__)("%s:","google-site-kit"),t[0].toUpperCase()),"\n\t\t\t\t\t<b>").concat(Object(v.q)(t[1],{maximumFractionDigits:1,style:"percent"}),"</b>\n\t\t\t\t</p>\n\t\t\t\t<p>\n\t\t\t\t\t").concat(c,"\n\t\t\t\t</p>");if(s===Object(g.__)("Others","google-site-kit").toLowerCase())switch(P){case"ga:country":d+="<p>".concat(Object(g.__)("See the full list of locations in Analytics","google-site-kit"),"</p>");break;case"ga:deviceCategory":d+="<p>".concat(Object(g.__)("See the full list of devices in Analytics","google-site-kit"),"</p>");break;case"ga:channelGrouping":default:d+="<p>".concat(Object(g.__)("See the full list of channels in Analytics","google-site-kit"),"</p>")}return q&&"(other)"===s&&(d+=Z(q,
  /* translators: %s: pie slice label */
  Object(g.sprintf)(Object(g.__)('Learn more about what "%s" means',"google-site-kit"),s),s)),F&&"(not set)"===s&&(d+=Z(F,
  /* translators: %s: pie slice label */
  Object(g.sprintf)(Object(g.__)('Learn more about what "%s" means',"google-site-kit"),s),s)),d='<div class="'.concat(l()("googlesitekit-visualization-tooltip",u,{"googlesitekit-visualization-tooltip--up":i>0,"googlesitekit-visualization-tooltip--down":i<0}),'">\n\t\t\t\t\t').concat(d,"\n\t\t\t\t</div>")}}),J=UserDimensionsPieChart.chartOptions.slices,Q={"ga:channelGrouping":Object(g.__)("<span>By</span> channels","google-site-kit"),"ga:country":Object(g.__)("<span>By</span> locations","google-site-kit"),"ga:deviceCategory":Object(g.__)("<span>By</span> devices","google-site-kit")},X=T?Object(v.s)(Q[P]||"",{ALLOWED_TAGS:["span"],ALLOWED_ATTR:[]}):{__html:""},ee=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},UserDimensionsPieChart.chartOptions);return(null==M||null===(N=M[0])||void 0===N||null===(A=N.data)||void 0===A||null===(x=A.rows)||void 0===x?void 0:x.length)<2&&(ee.pieSliceTextStyle.color="transparent"),(null==L?void 0:L.length)?ee.tooltip.trigger="selection":ee.tooltip.trigger="focus",e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__dimensions-container"},e.createElement("div",{ref:K,className:l()("googlesitekit-widget--analyticsAllTraffic__dimensions-chart",{"googlesitekit-widget--analyticsAllTraffic__slice-selected":!!L,"googlesitekit-widget--analyticsAllTraffic__selectable":z})},e.createElement(_.a,{chartType:"PieChart",data:Y||[],getChartWrapper:function(e){V.current=e},height:"368px",loaded:T,loadingHeight:"300px",loadingWidth:"300px",onMouseOut:function(){W(!1)},onMouseOver:function(e,t){var n=t.chartWrapper,a=e.row;null==a&&W(!1);var r=n.getDataTable();W(r.getValue(a,0)!==Object(g.__)("Others","google-site-kit"))},onReady:function(e){var t=e.chartWrapper.getChart();if(L&&!t.getSelection().length){var n,a,i,o,c=Y.findIndex((function(e){return e[0]===L}))-1;if(c>=0){if(t.setSelection([{row:c}]),H!==c||((null===(n=J[c])||void 0===n?void 0:n.color)||G)!==G)B((i={},r()(i,b.k,c),r()(i,b.l,(null===(a=J[c])||void 0===a?void 0:a.color)||G),i))}else B((o={},r()(o,b.n,""),r()(o,b.l,""),r()(o,b.k,null),o))}!L&&t.getSelection().length&&(t.setSelection([]),null!==H&&B(r()({},b.k,null))),L||""===G||B(r()({},b.l,""))},onSelect:function(e){var t,n=e.chartWrapper,a=n.getChart(),i=((null===(t=a.getSelection())||void 0===t?void 0:t[0])||{}).row;if(null==i){var o;B((o={},r()(o,b.n,""),r()(o,b.l,""),r()(o,b.k,null),o))}else{var c=n.getDataTable();if(c){var l,s,u=c.getValue(i,0);if(Object(g.__)("Others","google-site-kit")===u)null==H?a.setSelection([]):a.setSelection([{row:H}]);else B((s={},r()(s,b.l,null===(l=J[i])||void 0===l?void 0:l.color),r()(s,b.n,u),r()(s,b.k,i),s)),Object(v.v)("all_traffic_widget","slice_select","".concat(P,":").concat(u))}}},options:ee,width:"100%"},e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__dimensions-chart-title",dangerouslySetInnerHTML:X})),e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__legend"},T&&(null==Y?void 0:Y.slice(1).map((function(t,n){var a,i=o()(t,1)[0],c=i===L,s=null===(a=J[n])||void 0===a?void 0:a.color,u=Object(g.__)("Others","google-site-kit")===i;return e.createElement(O.a,{key:i,onClick:function(){return function(e){var t;if(V.current){var n=V.current.getDataTable().getValue(e,0);if(!(Object(g.__)("Others","google-site-kit")===n)){var a,i=((null===(t=V.current.getChart().getSelection())||void 0===t?void 0:t[0])||{}).row;if(i===e)B((a={},r()(a,b.n,""),r()(a,b.l,""),r()(a,b.k,null),a));else if(n){var o,c;B((c={},r()(c,b.l,null===(o=J[i])||void 0===o?void 0:o.color),r()(c,b.n,n),r()(c,b.k,e),c)),Object(v.v)("all_traffic_widget","slice_select","".concat(P,":").concat(n))}}}}(n)},className:l()("googlesitekit-widget--analyticsAllTraffic__legend-slice",{"googlesitekit-widget--analyticsAllTraffic__legend-active":c,"googlesitekit-widget--analyticsAllTraffic__legend-others":u})},e.createElement("span",{className:"googlesitekit-widget--analyticsAllTraffic__dot",style:{backgroundColor:s}}),e.createElement("span",{className:"googlesitekit-widget--analyticsAllTraffic__label","data-label":i},i),e.createElement("span",{className:"googlesitekit-widget--analyticsAllTraffic__underlay",style:{backgroundColor:s}}))}))),!T&&e.createElement(d.Fragment,null,e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__legend-slice"},e.createElement("span",{className:"googlesitekit-widget--analyticsAllTraffic__dot",style:{backgroundColor:"#ccc"}}),e.createElement(k.a,{height:"18px",width:"68px",shape:"square"})),e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__legend-slice"},e.createElement("span",{className:"googlesitekit-widget--analyticsAllTraffic__dot",style:{backgroundColor:"#ccc"}}),e.createElement(k.a,{height:"18px",width:"52px",shape:"square"})),e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__legend-slice"},e.createElement("span",{className:"googlesitekit-widget--analyticsAllTraffic__dot",style:{backgroundColor:"#ccc"}}),e.createElement(k.a,{height:"18px",width:"40px",shape:"square"})),e.createElement("div",{className:"googlesitekit-widget--analyticsAllTraffic__legend-slice"},e.createElement("span",{className:"googlesitekit-widget--analyticsAllTraffic__dot",style:{backgroundColor:"#ccc"}}),e.createElement(k.a,{height:"18px",width:"52px",shape:"square"}))))))}UserDimensionsPieChart.defaultProps={dimensionName:"ga:channelGrouping"},UserDimensionsPieChart.chartOptions={chartArea:{left:"auto",height:300,top:"auto",width:"100%"},backgroundColor:"transparent",fontSize:12,height:368,legend:{position:"none"},pieHole:.6,pieSliceTextStyle:{color:"black",fontSize:12},slices:{0:{color:"#ffcd33"},1:{color:"#c196ff"},2:{color:"#9de3fe"},3:{color:"#ff7fc6"},4:{color:"#ff886b"}},title:null,tooltip:{isHtml:!0,trigger:"focus"},width:"100%"},UserDimensionsPieChart.propTypes={dimensionName:u.a.string.isRequired,dimensionValue:u.a.string,report:u.a.arrayOf(u.a.object),loaded:u.a.bool}}).call(this,n(1))},function(e,t,n){"use strict";var a=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{fill:"#525252",d:"M97.15 2.73c.46-.55 1.37-1.64 1.82-2.2 27-.1 53.98-.04 80.97-.02.44.5 1.32 1.5 1.75 2 .1.15.4.43.5.57.18.16.5.48.68.65.25.23.77.67 1.03.9.33.3.98.92 1.3 1.24.26.25.76.75 1 1 .25.23.7.7.96.94.25.25.74.75.98 1 .25.25.76.75 1 1 .27.26.78.76 1.03 1.02.25.25.76.75 1.02 1 .23.25.72.73.96.97l1 1c.24.24.73.73.98 1 .3.3.93.94 1.24 1.26.23.26.67.78.9 1.04.17.2.5.55.67.73.18.2.56.6.75.78.43.45 1.3 1.3 1.72 1.76.14.15.43.46.57.6.07.13.25.37.33.48.27.56.8 1.67 1.08 2.22.2 5.67-.07 11.34.06 17-7.7-.1-15.4-.1-23.08.02.26-.16.8-.47 1.07-.63-.7-6.6-.7-13.24-.58-19.87-26.28-.02-52.56-.02-78.83 0 .17 6.83-.08 13.64-.44 20.46l1.27.04c-7.8-.1-15.63-.12-23.44-.02.12-5.66-.14-11.32.03-16.98.3-.57.86-1.72 1.15-2.3.1-.1.26-.34.35-.46.15-.16.45-.47.6-.63.44-.45 1.33-1.3 1.77-1.75.2-.18.6-.56.78-.75.22-.22.65-.64.86-.85.24-.23.7-.7.94-.94.25-.24.74-.73.98-1 .25-.22.74-.72 1-.96.23-.26.72-.75.96-1 .24-.23.7-.7.94-.95.2-.23.63-.67.84-.9.32-.32.96-1 1.28-1.33l1.28-1.2c.2-.2.62-.6.83-.8.23-.22.7-.68.9-.9.26-.24.75-.73 1-.97s.72-.73.97-.97c.23-.24.7-.7.94-.94l.8-.8c.1-.14.35-.4.46-.54zm37.7 166.57c2.8-14.95 12.87-28.3 26.16-35.56.2 12.76.08 25.53-.04 38.3.03 2.54-.08 5.12.42 7.63 6.28 4 13.18 6.96 19.6 10.74 6.25-3.25 12.47-6.6 18.7-9.9 2.18-.66 1.4-3.2 1.62-4.93-.06-13.9-.1-27.82 0-41.73 10.12 4.16 17.33 12.82 23 21.85 1.95 6.62 4.35 13.27 4.08 20.3.38 16.85-9.32 33.53-24.3 41.32-1.08.74-2.8 1.17-2.66 2.8-.96 9.1-.42 18.3.17 27.4h-41c.3-9.72.8-19.43-.05-29.14-7.56-3.6-14.02-9.35-18.68-16.3-6.28-9.55-8.7-21.48-7.03-32.76z"}),o=a.createElement("path",{fill:"#4d4d4d",d:"M96.68 3.26c.12-.13.36-.4.47-.53-.1.13-.35.4-.47.53zm85.02-.76c.12.14.4.42.52.56-.13-.14-.4-.42-.53-.56zM95.9 4.06c.2-.2.6-.6.78-.8-.2.2-.6.6-.78.8zm86.32-1c.17.16.5.48.67.65-.2-.15-.5-.47-.7-.63zM94.96 5c.23-.24.7-.7.94-.94-.24.24-.7.7-.94.93zm87.94-1.3c.25.23.77.67 1.03.9-.26-.23-.78-.67-1.04-.9zM93.98 5.96c.24-.24.73-.73.98-.97-.25.22-.74.7-.98.95zm89.95-1.36c.32.3.97.92 1.3 1.24-.33-.32-.98-.94-1.3-1.25zM93 6.93c.25-.24.74-.73.98-.97l-.97.97zm92.22-1.1l1 1-1-1zm-93.12 2c.22-.22.68-.7.9-.9-.22.2-.68.68-.9.9zm94.13-1l.95.95c-.24-.24-.7-.7-.95-.94zm-94.97 1.8c.2-.2.62-.6.83-.8-.23.2-.64.6-.85.8zm95.92-.85zm-97.2 2.05l1.28-1.2-1.28 1.2zm98.18-1.06c.25.26.76.76 1 1.02-.24-.28-.75-.78-1-1.04zm-99.46 2.4c.32-.33.96-1 1.28-1.34-.32.34-.96 1-1.28 1.34zM189.17 9.8c.26.24.77.74 1.02 1-.27-.26-.78-.76-1.04-1zm-101.3 2.25c.2-.22.62-.66.83-.88-.2.22-.63.66-.84.88zM190.2 10.8c.25.25.76.75 1.02 1-.26-.25-.77-.75-1.03-1zM86.92 13c.24-.23.7-.7.94-.95-.23.24-.7.72-.94.96zm104.3-1.2c.24.25.73.73.97.97-.26-.24-.75-.72-1-.96zM85.95 14c.24-.26.73-.75.97-1-.24.25-.73.74-.97 1zm106.25-1.23zm-107.24 2.2c.25-.24.74-.74 1-.98-.26.22-.75.72-1 .96zm108.24-1.2c.24.25.73.74.98 1-.25-.26-.74-.75-1-1zm-109.22 2.2c.25-.26.74-.75.98-1-.24.25-.73.74-.98 1zm110.2-1.2c.3.3.93.95 1.24 1.27-.3-.32-.93-.96-1.24-1.28zM83.04 16.9c.24-.23.7-.7.94-.94l-.94.94zm112.38-.86c.23.26.67.78.9 1.04-.23-.26-.67-.78-.9-1.04zm-113.24 1.7c.22-.2.65-.63.86-.84-.2.2-.64.63-.86.85zm114.14-.66c.17.2.5.55.67.73-.2-.16-.5-.52-.7-.7zM81.4 18.5c.2-.18.6-.56.78-.75-.2.2-.6.57-.8.76zm115.6-.7c.18.2.56.6.75.78-.2-.2-.57-.58-.76-.77zM79.02 20.88c.15-.16.45-.47.6-.63-.15.16-.45.47-.6.63zm120.45-.55zm-120.8 1c.1-.1.26-.33.35-.45-.1.12-.26.35-.34.46zm121.37-.4c.08.13.26.37.34.48-.08-.1-.26-.33-.34-.45z",opacity:.47}),c=a.createElement("path",{fill:"#d8d9da",d:"M40.3 40.66c12.4-.04 24.8.04 37.2-.04 7.8-.1 15.62-.1 23.43.02 25.83.02 51.66.02 77.5 0 7.68-.1 15.38-.12 23.08-.02 13.27.05 26.5.06 39.76 0C253.9 53.07 266.42 65.67 279 78.2v165.98c-1.32 1.53-2.82 3.45-5.07 3.3-8.86.12-17.72 0-26.57.04-.42-18.84-.05-37.68-.18-56.52-.1-4.3.55-8.73-.8-12.9 1.9-4.46.78-9.4 1.04-14.1-.2-15.05.4-30.14-.3-45.2-.66-11.58-.07-23.2-.3-34.8-.15-1.27.04-2.84-1-3.78-2.52-2.72-6.54-1.6-9.8-1.8-64.34.05-128.67.04-193 0-3.28.2-7.3-.97-9.8 1.8-1.05.92-.9 2.46-1.05 3.7-.24 11.63.4 23.27-.3 34.88-.26 3.07-.36 6.15-.32 9.23.15 39.83-.14 79.66.14 119.5-8.9-.26-17.78.14-26.65-.05-2.24.14-3.72-1.78-5.06-3.27V78.3c13.35-12.6 26.9-25.07 40.3-37.64zM52.6 86.8c6.7-1.8 13.87 5.82 11.3 12.38-1.67 5.15-8.2 8.87-13.24 6.06-3.68-1.78-6.6-5.98-5.97-10.17.94-3.9 3.8-7.48 7.9-8.26zm19.16 9.23c-.2-6.04 6.67-11.2 12.37-8.95 4.2 1 6.32 5.1 7.3 8.96-.83 3.42-2 7.26-5.5 8.8-5.96 4.1-14.94-1.8-14.17-8.8zm-26.43 38.3c23.17-.1 46.34.07 69.5-.05.3 26.85.12 53.72.08 80.58-23.2 0-46.4.14-69.6-.05.13-26.8.05-53.63.04-80.45zm.8 96.92c31.16-.04 62.33-.07 93.5.02 0 5.4-.08 10.82.12 16.23-2.8-.12-5.63-.16-8.44-.1-3.52.13-7.07.16-10.6-.02-1.46-.03-2.9-.03-4.37 0-23.74.25-47.48-.03-71.23.13 1.76-5.24.62-10.83 1.03-16.24z"}),l=a.createElement("path",{fill:"#4189f8",d:"M33.22 80.23c2.5-2.78 6.52-1.6 9.8-1.8 64.33.03 128.66.04 193-.02 3.26.24 7.28-.9 9.8 1.83 1.04.94.85 2.5 1 3.78.23 11.6-.36 23.23.3 34.8-71.75.1-143.5.1-215.26 0 .7-11.6.07-23.24.3-34.87.16-1.24 0-2.78 1.06-3.7m19.38 6.6c-4.1.77-6.95 4.35-7.9 8.25-.65 4.2 2.28 8.4 5.96 10.17 5.03 2.8 11.57-.9 13.24-6.06 2.57-6.58-4.6-14.2-11.3-12.4m19.16 9.23c-.77 7 8.2 12.9 14.16 8.82 3.5-1.55 4.68-5.4 5.5-8.8-.97-3.86-3.1-7.97-7.3-8.97-5.7-2.25-12.55 2.9-12.36 8.95z"}),s=a.createElement("path",{fill:"#fff",d:"M31.86 118.8c71.75.1 143.5.1 215.27 0 .68 15.06.08 30.15.3 45.2-.27 4.7.86 9.64-1.05 14.1-7.74-7.1-13.8-15.87-22.07-22.42-5.66-9.03-12.87-17.7-23-21.85-.1 13.9-.05 27.82 0 41.73-2.63-1.17-4.42-3.44-6.27-5.52-4.96-5.4-10.38-10.37-15.13-15.95-6.08-7-13.2-13.03-18.9-20.37-13.28 7.26-23.35 20.6-26.15 35.56-1.67 11.27.75 23.2 7.03 32.76 4.66 6.94 11.12 12.7 18.68 16.3.85 9.7.35 19.4.04 29.13h-20.85c-.2-5.4-.13-10.83-.12-16.24-31.17-.1-62.34-.06-93.5-.02-.4 5.4.73 11-1.04 16.26-4.48 0-8.95-.02-13.4.02-.3-39.83 0-79.66-.16-119.5-.04-3.07.06-6.15.3-9.22m13.48 15.54c0 26.82.1 53.65-.05 80.47 23.2.2 46.42.08 69.63.07.05-26.86.22-53.73-.07-80.58-23.16.1-46.33-.04-69.5.05z"}),u=a.createElement("path",{fill:"#bdbdbd",d:"M161 133.74c5.7 7.34 12.82 13.36 18.9 20.35 4.74 5.56 10.16 10.53 15.12 15.93 1.85 2.08 3.64 4.35 6.27 5.52-.24 1.72.54 4.27-1.64 4.93-6.23 3.3-12.45 6.64-18.7 9.9-6.42-3.77-13.32-6.74-19.6-10.73-.5-2.5-.4-5.1-.42-7.64.12-12.75.24-25.52.06-38.3zm63.3 21.94c8.27 6.55 14.34 15.32 22.08 22.42 1.35 4.17.7 8.6.8 12.9.13 18.84-.24 37.68.18 56.52-15.26-.04-30.5-.02-45.77 0-.6-9.13-1.15-18.32-.2-27.43-.13-1.64 1.6-2.07 2.66-2.8 15-7.8 24.7-24.47 24.3-41.33.28-7.02-2.12-13.67-4.06-20.3z"});t.a=function SvgSearchConsole(e){return a.createElement("svg",r({viewBox:"0 0 279 248"},e),i,o,c,l,s,u)}},,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AnalyticsDashboardWidget}));var a=n(11),r=n.n(a),i=n(8),o=n.n(i),c=n(1),l=n(0),s=n(4),u=n.n(s),d=n(207),g=n(91),f=n(228),m=n(229),p=n(230),h=n(115),b=n(231),v=n(33),y=n(107),_=n(233),O=n(123),k=n(50),j=n(83),E=n(93),S=n(89),D=n(58),w=n(12),R=n(9),C=u.a.useSelect;function AnalyticsDashboardWidget(){var t,n=Object(c.useState)([0]),a=r()(n,2),i=a[0],s=a[1],u=Object(c.useState)(!0),N=r()(u,2),A=N[0],x=N[1],P=Object(c.useState)(!1),L=r()(P,2),T=L[0],M=L[1],U=Object(c.useState)(),I=r()(U,2),z=I[0],W=I[1],q=Object(c.useState)(!0),F=r()(q,2),G=F[0],H=F[1],B=C((function(e){return e(w.a).getDateRange()})),V=C((function(e){return e(R.j).getServiceReportURL("content-pages")})),K=C((function(e){return e(R.j).getServiceReportURL("trafficsources-overview")})),$=C((function(e){return e(R.j).getServiceReportURL("visitors-overview")})),Z={0:{color:(t={0:"#4285f4",1:"#27bcd4",2:"#1b9688",3:"#673ab7"})[i],targetAxisIndex:0},1:{color:t[i],targetAxisIndex:0,lineDashStyle:[3,3],lineWidth:1}},Y=!G&&A?"":"googlesitekit-nodata",J=Object(D.b)(B);return e.createElement(c.Fragment,null,e.createElement(g.a,null,e.createElement(h.a,null)),e.createElement(O.a,{module:"analytics"}),e.createElement("div",{className:"googlesitekit-module-page googlesitekit-module-page--analytics"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(y.a,{title:Object(l._x)("Analytics","Service name","google-site-kit"),icon:e.createElement(d.a,{className:"googlesitekit-page-header__icon",height:"26",width:"24"}),status:"connected",statusText:Object(l.sprintf)(
  /* translators: %s: module name. */
  Object(l.__)("%s is connected","google-site-kit"),Object(l._x)("Analytics","Service name","google-site-kit"))}),G&&e.createElement(k.a,null)),!A&&(T?Object(E.a)("analytics",T,!0,!0,!0,z):Object(j.a)(Object(l._x)("Analytics","Service name","google-site-kit"),!0,!0,!0)),e.createElement("div",{className:o()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",Y)},e.createElement(v.a,{header:!0,title:Object(l.sprintf)(
  /* translators: %s: number of days */
  Object(l._n)("Audience overview for the last %s day","Audience overview for the last %s days",J,"google-site-kit"),J),headerCTALabel:Object(l.sprintf)(
  /* translators: %s: module name. */
  Object(l.__)("See full stats in %s","google-site-kit"),Object(l._x)("Analytics","Service name","google-site-kit")),headerCTALink:$},e.createElement(p.a,{selectedStats:i,handleStatSelection:function(e){s([e])},handleDataError:function(e,t){x(!1),H(!1),M(e),W(t)},handleDataSuccess:function(){x(!0),H(!1)}}),e.createElement(f.a,{selectedStats:i,series:Z,vAxes:null,dateRangeSlug:B}))),e.createElement("div",{className:o()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",Y)},e.createElement(v.a,{header:!0,footer:!0,title:Object(l.sprintf)(
  /* translators: %s: number of days */
  Object(l._n)("Top content over the last %s day","Top content over the last %s days",J,"google-site-kit"),J),headerCTALink:V,headerCTALabel:Object(l.sprintf)(
  /* translators: %s: module name. */
  Object(l.__)("See full stats in %s","google-site-kit"),Object(l._x)("Analytics","Service name","google-site-kit")),footerCTALabel:Object(l._x)("Analytics","Service name","google-site-kit"),footerCTALink:V},e.createElement(m.a,null))),e.createElement("div",{className:o()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",Y)},e.createElement(v.a,{header:!0,footer:!0,title:Object(l.sprintf)(
  /* translators: %s: number of days */
  Object(l._n)("Top acquisition channels over the last %s day","Top acquisition channels over the last %s days",J,"google-site-kit"),J),headerCTALink:K,headerCTALabel:Object(l.sprintf)(
  /* translators: %s: module name. */
  Object(l.__)("See full stats in %s","google-site-kit"),Object(l._x)("Analytics","Service name","google-site-kit")),footerCTALabel:Object(l._x)("Analytics","Service name","google-site-kit"),footerCTALink:K},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-4-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement(_.a,null)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-8-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement(b.a,null)))))),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 mdc-layout-grid__cell--align-right "},e.createElement(S.a,null))))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e,a){var r=n(16),i=n.n(r),o=n(17),c=n.n(o),l=n(43),s=n.n(l),u=n(18),d=n.n(u),g=n(19),f=n.n(g),m=n(10),p=n.n(m),h=n(0),b=n(1),v=n(6),y=n(84),_=n(39),O=n(24),k=n(28),j=n(29);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return f()(this,n)}}var S=function(t){d()(AnalyticsDashboardWidgetSiteStats,t);var n=E(AnalyticsDashboardWidgetSiteStats);function AnalyticsDashboardWidgetSiteStats(e){var t;return i()(this,AnalyticsDashboardWidgetSiteStats),(t=n.call(this,e)).setOptions=t.setOptions.bind(s()(t)),t}return c()(AnalyticsDashboardWidgetSiteStats,[{key:"setOptions",value:function(){var t=this.props,n=t.series,a=t.vAxes,r={chart:{title:""===e._googlesitekitLegacyData.pageTitle?"":Object(h.__)("Users Traffic Summary","google-site-kit")},curveType:"line",height:270,width:"100%",chartArea:{height:"80%",width:"100%",left:60},legend:{position:"top",textStyle:{color:"#616161",fontSize:12}},hAxis:{format:"M/d/yy",gridlines:{color:"#fff"},textStyle:{color:"#616161",fontSize:12}},vAxis:{gridlines:{color:"#eee"},minorGridlines:{color:"#eee"},textStyle:{color:"#616161",fontSize:12},titleTextStyle:{color:"#616161",fontSize:12,italic:!1}},focusTarget:"category",crosshair:{color:"gray",opacity:.1,orientation:"vertical",trigger:"both"},tooltip:{isHtml:!0,trigger:"both"}};return r.series=n,r.vAxes=a,r}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.selectedStats,r=e.dateRangeSlug;if(!t||!t.length)return null;var i=r?r.match(/\d+/).map(Number)[0]:28,o=Object(k.c)(t,n,i);if(!o)return null;var c=this.setOptions();return a.createElement("section",{className:"googlesitekit-analytics-site-stats mdc-layout-grid"},a.createElement("div",{className:"mdc-layout-grid__inner"},a.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},a.createElement(y.a,{chartType:"line",selectedStats:n,data:o,options:c}))))}}]),AnalyticsDashboardWidgetSiteStats}(b.Component);t.a=Object(_.a)(S,[{type:O.b,identifier:"analytics",datapoint:"report",data:k.t,priority:1,maxAge:Object(v.m)("day"),context:"Single"}],a.createElement(j.a,{width:"100%",height:"270px",padding:!0}),{createGrid:!0})}).call(this,n(21),n(1))},function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(11),o=n.n(i),c=n(8),l=n.n(c),s=n(2),u=n.n(s),d=n(0),g=n(4),f=n.n(g),m=n(6),p=n(39),h=n(9),b=n(12),v=n(24),y=n(55),_=n(54),O=n(28),k=n(56),j=n(27),E=n(140);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var D=f.a.useSelect,w=f.a.withSelect,R=function AnalyticsDashboardWidgetTopPagesTable(t){var n=t.data,a=t.colspan,i=D((function(e){return e(b.a).getDateRangeDates({offsetDays:h.b})}));if(!n||!n.length)return null;if(!Array.isArray(n[0].data.rows))return null;var c=[{title:Object(d.__)("Title","google-site-kit"),tooltip:Object(d.__)("Page Title","google-site-kit"),primary:!0},{title:Object(d.__)("Pageviews","google-site-kit"),tooltip:Object(d.__)("Pageviews","google-site-kit")},{title:Object(d.__)("Unique Pageviews","google-site-kit"),tooltip:Object(d.__)("Unique Pageviews","google-site-kit")},{title:Object(d.__)("Bounce Rate","google-site-kit"),tooltip:Object(d.__)("Bounce Rate","google-site-kit")}],s=[],u=n[0].data.rows.map((function(t,n){var a=Number(t.metrics[0].values[2])/100,r=o()(t.dimensions,2),i=r[0],c=r[1];return s[n]=c,[i,Object(m.p)(t.metrics[0].values[0],{style:"decimal"}),Object(m.p)(t.metrics[0].values[1],{style:"decimal"}),e.createElement("div",{className:"googlesitekit-table__body-item-chart-wrap",key:"minichart-"+n},Object(m.p)(a,"%"))]})),g={hideHeader:!1,chartsEnabled:!1,links:s,hideColumns:{mobile:[2,3]},PrimaryLink:w((function(e,t){var n=t.href,a=void 0===n?"/":n;return{href:e(h.j).getServiceReportURL("content-drilldown",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"explorer-table.plotKeys":"[]","_r.drilldown":"analytics.pagePath:".concat(a)},Object(E.a)(i))),external:!0}}))(j.a)},f=Object(y.a)(u,c,g);return e.createElement("div",{className:l()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-".concat(a))},e.createElement(k.a,null,f))};R.propTypes={data:u.a.array,colspan:u.a.number},R.defaultProps={data:null,colspan:12},t.a=Object(p.a)(R,[{type:v.b,identifier:"analytics",datapoint:"report",data:Object(O.g)(),priority:1,maxAge:Object(m.m)("day"),context:["Single","Dashboard"]}],e.createElement(_.a,{padding:!0}),{createGrid:!0})}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(2),m=n.n(f),p=n(0),h=n(1),b=n(6),v=n(40),y=n(39),_=n(24),O=n(28),k=n(29);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var E=function(t){l()(AnalyticsDashboardWidgetOverview,t);var n=j(AnalyticsDashboardWidgetOverview);function AnalyticsDashboardWidgetOverview(e){var t;return r()(this,AnalyticsDashboardWidgetOverview),(t=n.call(this,e)).state={report:!1,totalUsers:!1,previousTotalUsers:!1},t}return o()(AnalyticsDashboardWidgetOverview,[{key:"componentDidUpdate",value:function(){this.processCallbackData()}},{key:"componentDidMount",value:function(){this.processCallbackData()}},{key:"processCallbackData",value:function(){var e=this.props.requestDataToState;this.setState(e)}},{key:"render",value:function(){var t=this.props,n=t.selectedStats,a=t.handleStatSelection,r=this.state,i=r.report,o=r.totalUsers,c=r.previousTotalUsers;if(!i||!i.length||!o)return null;var l=Object(O.b)(i);if(!l)return null;var s=l.totalSessions,u=l.averageBounceRate,d=l.averageSessionDuration,g=l.totalSessionsChange,f=l.averageBounceRateChange,m=l.averageSessionDurationChange,h=Object(b.b)(c,o),y=[{className:"googlesitekit-data-block--users googlesitekit-data-block--button-1",title:Object(p.__)("Users","google-site-kit"),datapoint:o,change:h,changeDataUnit:"%",context:"button",selected:n.includes(0),handleStatSelection:a},{className:"googlesitekit-data-block--sessions googlesitekit-data-block--button-2",title:Object(p.__)("Sessions","google-site-kit"),datapoint:s,change:g,changeDataUnit:"%",context:"button",selected:n.includes(1),handleStatSelection:a},{className:"googlesitekit-data-block--bounce googlesitekit-data-block--button-3",title:Object(p.__)("Bounce Rate","google-site-kit"),datapoint:u/100,change:f,changeDataUnit:"%",context:"button",selected:n.includes(2),handleStatSelection:a,datapointUnit:"%",invertChangeColor:!0},{className:"googlesitekit-data-block--duration googlesitekit-data-block--button-4",title:Object(p.__)("Session Duration","google-site-kit"),datapoint:d,datapointUnit:"s",change:m,changeDataUnit:"%",context:"button",selected:n.includes(3),handleStatSelection:a}];return e.createElement("section",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner",role:"toolbar","aria-label":"Line Chart Options"},y.map((function(t,n){return e.createElement("div",{key:n,className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(v.a,{stat:n,className:t.className,title:t.title,datapoint:t.datapoint,change:t.change,changeDataUnit:t.changeDataUnit,context:t.context,selected:t.selected,handleStatSelection:t.handleStatSelection,datapointUnit:t.datapointUnit,invertChangeColor:t.invertChangeColor}))}))))}}]),AnalyticsDashboardWidgetOverview}(h.Component);E.propTypes={handleDataError:m.a.func.isRequired},t.a=Object(y.a)(E,[{type:_.b,identifier:"analytics",datapoint:"report",data:O.q,priority:1,maxAge:Object(b.m)("day"),context:["Single","Dashboard"],toState:function(e,t){var n=t.data;if(!e.report)return{report:n}}},{type:_.b,identifier:"analytics",datapoint:"report",data:O.v,priority:1,maxAge:Object(b.m)("day"),context:["Single"],toState:function(e,t){var n=t.data;if(!1===e.totalUsers)return Object(O.s)(n)}}],e.createElement(k.a,{width:"100%",height:"190px",padding:!0}),{createGrid:!0},O.h,O.f)}).call(this,n(1))},function(e,t,n){"use strict";(function(e,a){var r=n(5),i=n.n(r),o=n(0),c=n(1),l=n(4),s=n.n(l),u=n(6),d=n(58),g=n(39),f=n(24),m=n(55),p=n(54),h=n(232),b=n(28),v=n(12),y=n(56);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=s.a.useSelect;t.a=Object(g.a)((function LegacyAnalyticsDashboardWidgetTopAcquisitionSources(t){var n=t.data,a=k((function(e){return e(v.a).getDateRange()}));if(!n||!n.length)return null;if(!Array.isArray(n[0].data.totals)||!n[0].data.totals.length)return null;if(!Array.isArray(n[0].data.rows)||!n[0].data.rows.length)return null;var r=Object(d.b)(a),i=[{title:Object(o.__)("Channel","google-site-kit"),tooltip:Object(o.__)("Channel refers to where your traffic originated from","google-site-kit")},{title:Object(o.__)("Users","google-site-kit"),tooltip:Object(o.__)("Number of users that originated from that traffic","google-site-kit")},{title:Object(o.__)("New Users","google-site-kit"),tooltip:Object(o.sprintf)(
  /* translators: %s: number of days */
  Object(o._n)("Number of new users to visit your page over last %s day","Number of new users to visit your page over last %s days",r,"google-site-kit"),r)},{title:Object(o.__)("Sessions","google-site-kit"),tooltip:Object(o.sprintf)(
  /* translators: %s: number of days */
  Object(o._n)("Number of sessions users had on your website over last %s day","Number of sessions users had on your website over last %s days",r,"google-site-kit"),r)},{title:Object(o.__)("Percentage","google-site-kit"),tooltip:Object(o.__)("Percentage of sessions","google-site-kit")}],l=n[0].data.totals[0].values[1],s=n[0].data.rows.map((function(t,n){var a=t.metrics[0].values[1]/l;return[t.dimensions[0],Object(u.p)(t.metrics[0].values[0],{style:"decimal"}),Object(u.p)(t.metrics[0].values[1],{style:"decimal"}),Object(u.p)(t.metrics[0].values[2],{style:"decimal"}),e.createElement(c.Fragment,{key:"minichart-analytics-top-as-"+n},e.createElement("div",{className:"googlesitekit-table__body-item-chart-wrap"},Object(u.p)(a,"%"),e.createElement(h.a,{change:a,index:n})))]})),g=Object(m.a)(s,i,{hideHeader:!1,chartsEnabled:!1});return e.createElement("div",{className:"googlesitekit-details-widget"},e.createElement(y.a,null,g))}),[{type:f.b,identifier:"analytics",datapoint:"report",data:O(O({},b.u),{},{url:a._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(u.m)("day"),context:["Single","Dashboard"]}],e.createElement(p.a,{rows:4,rowHeight:50}),{},b.h)}).call(this,n(1),n(21))},function(e,t,n){"use strict";(function(e){var a=n(2),r=n.n(a),i=n(84);function MiniChart(t){var n=t.index,a=t.change,r={backgroundColor:"transparent",chartArea:{width:"100%",height:"100%"},enableInteractivity:!1,height:28,legend:{position:"none"},slices:{0:{color:["#178EC5","#54B23B","#EB5729","#ECED33","#34CBE3","#82E88E"][n]},1:{color:"#e6e6e6"}},title:null,tooltip:{trigger:"none"},width:28},o=+(100*a).toFixed(1),c=[["source","percent"],["",o],["",100-o]];return e.createElement("div",{className:"googlesitekit-mini-chart"},e.createElement(i.a,{data:c,options:r,chartType:"pie",loadSmall:!0,loadCompressed:!0,loadHeight:24,loadText:!1,id:"minichart"+n}))}MiniChart.propTypes={index:r.a.number.isRequired,change:r.a.number.isRequired},t.a=MiniChart}).call(this,n(1))},function(e,t,n){"use strict";(function(e,a){var r=n(5),i=n.n(r),o=n(2),c=n.n(o),l=n(199),s=n(0),u=n(4),d=n.n(u),g=n(9),f=n(22),m=n(6),p=n(84),h=n(39),b=n(24),v=n(27),y=n(29),_=n(28),O=n(101);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=d.a.useSelect,S=function LegacyDashboardAcquisitionPieChart(t){var n=t.data,a=t.source,r=E((function(e){return e(f.c).getCurrentEntityURL()})),i=E((function(e){return e(g.j).getServiceReportURL("trafficsources-overview",{"_r.drilldown":r?"analytics.pagePath:".concat(Object(O.a)(r)):void 0})}));if(!n||n.error||!n.length)return null;var o=Object(_.e)(n,{keyColumnIndex:1});return e.createElement("div",{className:"googlesitekit-chart googlesitekit-chart--pie"},e.createElement(p.a,{data:o,options:{chartArea:{width:"100%",height:"100%"},backgroundColor:"transparent",height:250,legend:{alignment:"center",textStyle:{color:"#5b5b61",fontSize:12}},slices:{0:{color:"#178EC5"},1:{color:"#54B23B"},2:{color:"#EB5729"},3:{color:"#ECED33"},4:{color:"#34CBE3"},5:{color:"#82E88E"}},title:null,width:"100%"},chartType:"pie",id:"overview-piechart",loadHeight:205}),a&&e.createElement("div",{className:"googlesitekit-chart__source"},Object(l.a)(Object(s.sprintf)(
  /* translators: %s: source link */
  Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(Object(s._x)("Analytics","Service name","google-site-kit"),"</a>")),{a:e.createElement(v.a,{key:"link",href:i,inherit:!0,external:!0})})))};S.defaultProps={source:!1},S.propTypes={source:c.a.bool},t.a=Object(h.a)(S,[{type:b.b,identifier:"analytics",datapoint:"report",data:j(j({},_.u),{},{url:a._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(m.m)("day"),context:["Dashboard","Single"]}],e.createElement(y.a,{width:"282px",height:"282px",shape:"circular"}),{},_.h,_.f)}).call(this,n(1),n(21))},function(e,t,n){"use strict";(function(e,a){var r=n(5),i=n.n(r),o=n(11),c=n.n(o),l=n(15),s=n(0),u=n(1),d=n(6),g=n(67),f=n(28),m=n(101),p=n(4),h=n.n(p),b=n(40),v=n(39),y=n(24),_=n(62),O=n(48),k=n(29),j=n(22),E=n(9);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=h.a.useSelect;t.a=Object(v.a)((function LegacyAnalyticsDashboardWidgetTopLevel(t){var n=t.data,r=t.requestDataToState,i=Object(u.useState)(!1),o=c()(i,2),f=o[0],p=o[1],h=Object(u.useState)(!1),v=c()(h,2),y=v[0],S=v[1],D=Object(u.useState)(!1),R=c()(D,2),C=R[0],N=R[1],A=Object(u.useState)(!1),x=c()(A,2),P=x[0],L=x[1],T=Object(u.useState)(!1),M=c()(T,2),U=M[0],I=M[1];Object(u.useEffect)((function(){if(n&&!n.error&&"function"==typeof r){var e=r({goals:f,overview:P,extractedAnalytics:U,totalUsers:y,previousTotalUsers:C},{data:n})||{},t=e.goals,a=e.overview,i=e.extractedAnalytics,o=e.totalUsers,c=e.previousTotalUsers;void 0!==t&&p(t),void 0!==a&&L(a),void 0!==i&&I(i),void 0!==o&&S(o),void 0!==c&&N(c)}}),[n,r,f,P,U,y,C,p,L,I,S,N]);var z=e._googlesitekitLegacyData.permaLink,W=w((function(e){return e(j.c).getCurrentEntityURL()})),q=w((function(e){return e(E.j).getServiceReportURL("visitors-overview",{"_r.drilldown":W?"analytics.pagePath:".concat(Object(m.a)(W)):void 0})})),F=w((function(e){return e(E.j).getServiceReportURL("conversions-goals-overview",{"_r.drilldown":W?"analytics.pagePath:".concat(Object(m.a)(W)):void 0})})),G=w((function(e){return e(j.c).getGoogleSupportURL({path:"/analytics/answer/1032415",hash:"create_or_edit_goals"})})),H="",B="",V="",K="";P&&(H=P.goalCompletions,B=P.goalCompletionsChange,V=P.averageBounceRate/100,K=P.averageBounceRateChange);var $=Object(d.b)(C,y);return a.createElement(u.Fragment,null,a.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},a.createElement(b.a,{className:"overview-total-users",title:Object(s.__)("Unique Visitors from Search","google-site-kit"),datapoint:y||0,change:$,changeDataUnit:"%",source:{name:Object(s._x)("Analytics","Service name","google-site-kit"),link:q,external:!0},sparkline:U&&a.createElement(_.a,{data:Object(g.a)(U,1),change:$})})),a.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},z&&a.createElement(b.a,{className:"overview-bounce-rate",title:Object(s.__)("Bounce Rate","google-site-kit"),datapoint:V,datapointUnit:"%",change:K,changeDataUnit:"%",invertChangeColor:!0,source:{name:Object(s._x)("Analytics","Service name","google-site-kit"),link:q,external:!0},sparkline:U&&a.createElement(_.a,{data:Object(g.a)(U,2),change:K})}),!z&&f&&Object(l.isEmpty)(f.items)&&a.createElement(O.a,{title:Object(s.__)("Use goals to measure success.","google-site-kit"),description:Object(s.__)("Goals measure how well your site or app fulfills your target objectives.","google-site-kit"),ctaLink:G,ctaLabel:Object(s.__)("Create a new goal","google-site-kit")}),!z&&f&&!Object(l.isEmpty)(f.items)&&a.createElement(b.a,{className:"overview-goals-completed",title:Object(s.__)("Goals Completed","google-site-kit"),datapoint:H,change:B,changeDataUnit:"%",source:{name:Object(s._x)("Analytics","Service name","google-site-kit"),link:F,external:!0},sparkline:U&&a.createElement(_.a,{data:Object(g.a)(U,3),change:B})}),!z&&!f&&a.createElement(k.a,{width:"100%",height:"202px"})))}),[{type:y.b,identifier:"analytics",datapoint:"report",data:D(D({},f.q),{},{url:e._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(d.m)("day"),context:"Dashboard",toState:function(e,t){var n=t.data;if(!e.overview)return{overview:Object(f.b)(n)}}},{type:y.b,identifier:"analytics",datapoint:"report",data:D(D({},f.v),{},{url:e._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(d.m)("day"),context:"Dashboard",toState:function(e,t){var n=t.data;if(!1===e.totalUsers)return Object(f.s)(n)}},{type:y.b,identifier:"analytics",datapoint:"report",data:D(D({},f.t),{},{url:e._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(d.m)("day"),context:"Dashboard",toState:function(e,t){var n=t.data;if(!e.extractedAnalytics)return{extractedAnalytics:Object(f.d)(n)}}},{type:y.b,identifier:"analytics",datapoint:"goals",data:{url:e._googlesitekitLegacyData.permaLink},priority:1,maxAge:Object(d.m)("hour"),context:"Dashboard",toState:function(e,t){var n=t.data;if(!e.goals)return{goals:n}}}],a.createElement(u.Fragment,null,a.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},a.createElement(k.a,{width:"100%",height:"202px"})),a.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},a.createElement(k.a,{width:"100%",height:"202px"}))),{inGrid:!0},(function(e,t){return"report"===t&&Object(f.h)(e)}),f.f)}).call(this,n(21),n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AnalyticsDashboardDetailsWidgetTopAcquisitionSources}));var a=n(1),r=n(0),i=n(59),o=n(33),c=n(23),l=n(138),s=n(151);function AnalyticsDashboardDetailsWidgetTopAcquisitionSources(){var t=Object(l.b)("legacy-all-traffic-widget");return e.createElement(a.Fragment,null,e.createElement(c.a,{size:12},e.createElement(i.a,{title:Object(r.__)("Your Traffic at a Glance","google-site-kit"),description:Object(r.__)("How people found your page.","google-site-kit")})),e.createElement(c.a,{size:12},e.createElement(o.a,null,e.createElement(s.a,t))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var a=n(5),r=n.n(a),i=n(25),o=n.n(i),c=n(26),l=n.n(c),s=n(2),u=n.n(s),d=n(1),g=n(131),f=n(87);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function WidgetReportZero(t){var n=t.widgetSlug,a=t.moduleSlug,r=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:a}}),[a]);return Object(g.a)(n,f.a,i),e.createElement(f.a,o()({moduleSlug:a},r))}WidgetReportZero.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},f.a.propTypes)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var a=n(5),r=n.n(a),i=n(26),o=n.n(i),c=n(2),l=n.n(c),s=n(70);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function WidgetReportError(t){t.widgetSlug;var n=o()(t,["widgetSlug"]);return e.createElement(s.a,n)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:l.a.string.isRequired},s.a.propTypes)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetActivateModuleCTA}));var a=n(5),r=n.n(a),i=n(25),o=n.n(i),c=n(26),l=n.n(c),s=n(2),u=n.n(s),d=n(1),g=n(131),f=n(77);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function WidgetActivateModuleCTA(t){var n=t.widgetSlug,a=t.moduleSlug,r=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:a}}),[a]);return Object(g.a)(n,f.a,i),e.createElement(f.a,o()({moduleSlug:a},r))}WidgetActivateModuleCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},f.a.propTypes)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetCompleteModuleActivationCTA}));var a=n(5),r=n.n(a),i=n(25),o=n.n(i),c=n(26),l=n.n(c),s=n(2),u=n.n(s),d=n(1),g=n(131),f=n(109);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function WidgetCompleteModuleActivationCTA(t){var n=t.widgetSlug,a=t.moduleSlug,r=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:a}}),[a]);return Object(g.a)(n,f.a,i),e.createElement(f.a,o()({moduleSlug:a},r))}WidgetCompleteModuleActivationCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},f.a.propTypes)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(4),i=n.n(r),o=n(6),c=n(39),l=n(24),s=n(55),u=n(54),d=n(86),g=n(145),f=n(28),m=n(9),p=n(159),h=n(56),b=n(27),v=i.a.withSelect;t.a=Object(c.a)((function AnalyticsAdSenseDashboardWidgetTopPagesTable(t){var n,r=t.data;if(Object(f.h)(r))return null;var i=((null==r||null===(n=r[0])||void 0===n?void 0:n.data)||{}).rows;if(!Array.isArray(i))return null;var c=[{title:Object(a.__)("Page Title","google-site-kit"),tooltip:Object(a.__)("Page Title","google-site-kit"),primary:!0},{title:Object(a.__)("Earnings","google-site-kit"),tooltip:Object(a.__)("Earnings","google-site-kit")},{title:Object(a.__)("Page RPM","google-site-kit"),tooltip:Object(a.__)("Page RPM","google-site-kit")},{title:Object(a.__)("Impressions","google-site-kit"),tooltip:Object(a.__)("Impressions","google-site-kit")}],l=i.map((function(e){return[e.dimensions[0],Number(e.metrics[0].values[0]).toFixed(2),Number(e.metrics[0].values[1]).toFixed(2),Object(o.p)(e.metrics[0].values[2],{style:"decimal"})]})),u={hideHeader:!1,chartsEnabled:!1,links:i.map((function(e){return e.dimensions[1]||"/"})),PrimaryLink:v((function(e,t){var n=t.href,a=void 0===n?"/":n;return{href:e(m.j).getServiceReportURL("content-pages",{"explorer-table.plotKeys":"[]","_r.drilldown":"analytics.pagePath:".concat(a)}),external:!0}}))(b.a)},d=Object(s.a)(l,c,u);return e.createElement(p.a,null,e.createElement(h.a,null,d))}),[{type:l.b,identifier:"analytics",datapoint:"report",data:f.a,priority:1,maxAge:Object(o.m)("day"),context:"Single"}],e.createElement(p.a,null,e.createElement(u.a,{padding:!0})),{createGrid:!0},(function(){return!1}),(function(t){return t.code&&t.message&&t.data&&t.data.status?"badRequest"===t.data.reason?e.createElement(p.a,null,Object(d.a)(e.createElement(g.a,null),!1,!1,!0)):t.message:!!t.error&&(t.error.message?t.error.message:t.error.errors&&t.error.errors[0]&&t.error.errors[0].message?t.error.errors[0].message:Object(a.__)("Unidentified error","google-site-kit"))}))}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(11),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(6),s=n(28),u=n(39),d=n(24),g=n(55),f=n(54),m=n(33),p=n(9),h=n(56),b=c.a.useSelect,v=function RenderLayout(t){var n=t.children,a=b((function(e){return e(p.j).getServiceReportURL("content-pages")}));return e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet "},e.createElement(m.a,{className:"googlesitekit-popular-content",footer:!0,footerCTALabel:Object(i._x)("Analytics","Service name","google-site-kit"),footerCTALink:a,fill:!0},n))};t.a=Object(u.a)((function LegacyAnalyticsDashboardWidgetPopularPagesTable(t){var n=t.data;if(!n||!n.length)return null;if(!Array.isArray(n[0].data.rows))return null;var a=[{title:Object(i.__)("Most popular content","google-site-kit"),primary:!0},{title:Object(i.__)("Views","google-site-kit")}],o=[],c=n[0].data.rows.map((function(e,t){var n=r()(e.dimensions,2),a=n[0],i=n[1];return o[t]=i.startsWith("/")?i:"/"+i,[a,Object(l.p)(e.metrics[0].values[0],{style:"decimal"})]})),s={hideHeader:!1,chartsEnabled:!1,links:o,showURLs:!0,useAdminURLs:!0},u=Object(g.a)(c,a,s);return e.createElement(v,null,e.createElement(h.a,null,u))}),[{type:d.b,identifier:"analytics",datapoint:"report",data:Object(s.g)(),priority:1,maxAge:Object(l.m)("day"),context:["Single","Dashboard"]}],e.createElement(v,null,e.createElement(f.a,{padding:!0})),{inGrid:!0,createGrid:!0},s.h)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(0),m=n(1),p=n(39),h=n(24),b=n(55),v=n(54),y=n(33),_=n(145),O=n(6),k=n(28),j=n(56);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var S=function(t){l()(LegacyAdSenseDashboardWidgetTopPagesTableSmall,t);var n=E(LegacyAdSenseDashboardWidgetTopPagesTableSmall);function LegacyAdSenseDashboardWidgetTopPagesTableSmall(){return r()(this,LegacyAdSenseDashboardWidgetTopPagesTableSmall),n.apply(this,arguments)}return o()(LegacyAdSenseDashboardWidgetTopPagesTableSmall,[{key:"render",value:function(){var t=this.props.data;if(!t||!t.length)return null;if(!Array.isArray(t[0].data.rows))return null;var n=[{title:Object(f.__)("Top Earning Pages","google-site-kit"),tooltip:Object(f.__)("Top Earning Pages","google-site-kit"),primary:!0},{title:Object(f.__)("Revenue","google-site-kit"),tooltip:Object(f.__)("Revenue","google-site-kit")}],a=[],r=t[0].data.rows.map((function(e,t){return a[t]=e.dimensions[1],[e.dimensions[0],Number(e.metrics[0].values[0]).toFixed(2)]})),i={hideHeader:!1,chartsEnabled:!1,cap:5,links:a},o=Object(b.a)(r,n,i);return LegacyAdSenseDashboardWidgetTopPagesTableSmall.renderLayout(e.createElement(j.a,null,o))}}],[{key:"renderLayout",value:function(t){return e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet "},e.createElement(y.a,{className:"googlesitekit-top-earnings-pages",footer:!0,footerCTALabel:Object(f._x)("Analytics","Service name","google-site-kit"),footerCTALink:"http://analytics.google.com",fill:!0},t))}}]),LegacyAdSenseDashboardWidgetTopPagesTableSmall}(m.Component);t.a=Object(p.a)(S,[{type:h.b,identifier:"analytics",datapoint:"report",data:k.a,priority:1,maxAge:Object(O.m)("day"),context:"Dashboard"}],S.renderLayout(e.createElement(v.a,{rows:5,padding:!0})),{inGrid:!0,createGrid:!0},k.h,(function(t){if(t.code&&t.message&&t.data&&t.data.status)return"badRequest"===t.data.reason?e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet "},e.createElement(y.a,{className:"googlesitekit-top-earnings-pages",fill:!0},e.createElement(_.a,null))):t.message;if(t&&t.errors){var n=Object.values(t.errors);if(n[0]&&n[0][0])return n[0][0]}return!1}))}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n(0),i=n(33),o=n(59),c=n(151),l=n(23),s=n(138);t.a=function LegacyDashboardAllTraffic(){var t=Object(s.b)("legacy-all-traffic-widget");return e.createElement(a.Fragment,null,e.createElement(l.a,{size:12},e.createElement(o.a,{title:Object(r.__)("Your Traffic at a Glance","google-site-kit"),description:Object(r.__)("How people found your site.","google-site-kit")})),e.createElement(l.a,{size:12},e.createElement(i.a,null,e.createElement(c.a,t))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(11),r=n.n(a),i=n(8),o=n.n(i),c=n(1),l=n(0),s=n(4),u=n.n(s),d=n(30),g=n(22),f=n(46),m=n(45),p=n(33),h=n(213),b=u.a.useSelect,v=u.a.useDispatch;t.a=function PostSearcher(){var t=Object(c.useState)(!1),n=r()(t,2),a=n[0],i=n[1],s=Object(c.useState)({}),u=r()(s,2),y=u[0],_=u[1],O=b((function(e){return e(d.a).isModuleConnected("analytics")})),k=b((function(e){return e(g.c).getAdminURL("googlesitekit-dashboard",{permaLink:null==y?void 0:y.permalink})})),j=v(f.a).navigateTo,E=Object(c.useCallback)((function(){return j(k)}),[k]);return e.createElement("div",{className:o()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-12":O,"mdc-layout-grid__cell--span-4-tablet":!O,"mdc-layout-grid__cell--span-6-desktop":!O})},e.createElement(p.a,{title:Object(l.__)("Search for individual page or post information","google-site-kit"),header:!0},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},e.createElement("div",{className:"googlesitekit-post-searcher"},e.createElement("label",{className:"googlesitekit-post-searcher__label",htmlFor:"postsearcher-autocomplete"},Object(l.__)("Title or URL","google-site-kit")),e.createElement(h.a,{id:"postsearcher-autocomplete",setCanSubmit:i,setMatch:_}),e.createElement("div",{className:"googlesitekit-post-searcher__button-wrapper"},e.createElement(m.a,{onClick:E,className:"googlesitekit-post-searcher__button",disabled:!a},Object(l.__)("View Data","google-site-kit")))))))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(11),o=n.n(i),c=n(8),l=n.n(c),s=n(1),u=n(0),d=n(4),g=n.n(d),f=n(222),m=n(91),p=n(246),h=n(157),b=n(247),v=n(115),y=n(107),_=n(33),O=n(123),k=n(50),j=n(83),E=n(93),S=n(89),D=n(58),w=n(38),R=n(12),C=n(22),N=n(6),A=n(80);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=g.a.useSelect;t.a=function GoogleSitekitSearchConsoleDashboardWidget(){var t=Object(s.useState)([0,1]),n=o()(t,2),a=n[0],r=n[1],i=Object(s.useState)(!0),c=o()(i,2),d=c[0],g=c[1],x=Object(s.useState)(!1),T=o()(x,2),M=T[0],U=T[1],I=Object(s.useState)(),z=o()(I,2),W=z[0],q=z[1],F=Object(s.useState)(!0),G=o()(F,2),H=G[0],B=G[1],V=L((function(e){return e(R.a).getDateRange()})),K=L((function(e){return e(w.c).getPropertyID()})),$=L((function(e){return e(w.c).isDomainProperty()})),Z=L((function(e){return Object(N.w)(e(C.c).getReferenceSiteURL())})),Y=L((function(e){return e(R.a).getDateRangeDates({offsetDays:w.a})})),J=Y.startDate,Q=Y.endDate,X=P({resource_id:K},Object(A.a)({startDate:J,endDate:Q}));$&&Z&&(X.page="*".concat(Z));var ee,te,ne=L((function(e){return e(w.c).getServiceURL({path:"/performance/search-analytics",query:X})})),ae=(ee={0:"#4285f4",1:"#27bcd4",2:"#1b9688",3:"#673ab7"},a.map((function(e,t){return{color:ee[e],targetAxisIndex:t}}))),re=(te={0:Object(u.__)("Clicks","google-site-kit"),1:Object(u.__)("Impressions","google-site-kit"),2:Object(u.__)("Average CTR","google-site-kit"),3:Object(u.__)("Average Position","google-site-kit")},a.map((function(e){var t={};return 3===e&&(t.direction=-1),P({title:te[e]},t)}))),ie=!H&&d?"":"googlesitekit-nodata",oe=Object(D.b)(V);return e.createElement(s.Fragment,null,e.createElement(m.a,null,e.createElement(v.a,null)),e.createElement(O.a,{module:"search-console"}),e.createElement("div",{className:"googlesitekit-module-page googlesitekit-module-page--search-console"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(y.a,{title:Object(u._x)("Search Console","Service name","google-site-kit"),icon:e.createElement(f.a,{className:"googlesitekit-page-header__icon",height:"21",width:"23"}),status:"connected",statusText:Object(u.sprintf)(
  /* translators: %s: module name. */
  Object(u.__)("%s is connected","google-site-kit"),Object(u._x)("Search Console","Service name","google-site-kit"))}),H&&e.createElement(k.a,null)),!d&&(M?Object(E.a)("search-console",M,!0,!0,!0,W):Object(j.a)(Object(u._x)("Search Console","Service name","google-site-kit"),!0,!0,!0)),e.createElement("div",{className:l()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",ie)},e.createElement(_.a,{header:!0,title:Object(u.sprintf)(
  /* translators: %s: number of days */
  Object(u._n)("Overview for the last %s day","Overview for the last %s days",oe,"google-site-kit"),oe),headerCTALabel:Object(u.sprintf)(
  /* translators: %s: module name. */
  Object(u.__)("See full stats in %s","google-site-kit"),Object(u._x)("Search Console","Service name","google-site-kit")),headerCTALink:ne},e.createElement(b.a,{selectedStats:a,handleStatSelection:function(e){var t=a.slice();a.includes(e)?t=a.filter((function(t){return e!==t})):t.push(e),0!==t.length&&r(t)},handleDataError:function(e,t){g(!1),U(e),q(t),B(!1)},handleDataSuccess:function(){g(!0),B(!1)}}),e.createElement(p.a,{selectedStats:a,series:ae,vAxes:re}))),e.createElement("div",{className:l()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",ie)},e.createElement(_.a
  /* translators: %s: number of days */,{title:Object(u.sprintf)(
  /* translators: %s: number of days */
  Object(u._n)("Top search queries over the last %s day","Top search queries over last %s days",oe,"google-site-kit"),oe),header:!0,footer:!0,headerCTALabel:Object(u.sprintf)(
  /* translators: %s: module name. */
  Object(u.__)("See full stats in %s","google-site-kit"),Object(u._x)("Search Console","Service name","google-site-kit")),headerCTALink:ne,footerCTALabel:Object(u._x)("Search Console","Service name","google-site-kit"),footerCTALink:ne},e.createElement(h.a,null))),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 mdc-layout-grid__cell--align-right "},e.createElement(S.a,null))))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e,a){var r=n(16),i=n.n(r),o=n(17),c=n.n(o),l=n(43),s=n.n(l),u=n(18),d=n.n(u),g=n(19),f=n.n(g),m=n(10),p=n.n(m),h=n(0),b=n(1),v=n(6),y=n(39),_=n(24),O=n(84),k=n(29),j=n(75);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return f()(this,n)}}var S=function(t){d()(SearchConsoleDashboardWidgetSiteStats,t);var n=E(SearchConsoleDashboardWidgetSiteStats);function SearchConsoleDashboardWidgetSiteStats(e){var t;return i()(this,SearchConsoleDashboardWidgetSiteStats),(t=n.call(this,e)).setOptions=t.setOptions.bind(s()(t)),t}return c()(SearchConsoleDashboardWidgetSiteStats,[{key:"setOptions",value:function(){var t=this.props,n=t.selectedStats,a=t.series,r=t.vAxes,i=e._googlesitekitLegacyData.pageTitle,o=Object(h.__)("Search Traffic Summary","google-site-kit");i&&i.length&&(
  /* translators: %s: page title */
  o=Object(h.sprintf)(Object(h.__)("Search Traffic Summary for %s","google-site-kit"),Object(v.e)(i)));var c={chart:{title:o},curveType:"line",height:270,width:"100%",chartArea:{height:"80%",width:"87%"},legend:{position:"top",textStyle:{color:"#616161",fontSize:12}},hAxis:{format:"M/d/yy",gridlines:{color:"#fff"},textStyle:{color:"#616161",fontSize:12}},vAxis:{gridlines:{color:"#eee"},minorGridlines:{color:"#eee"}}};return c.series=a,c.vAxes=r,n.length<3?(c.vAxis.textStyle={color:"#616161",fontSize:12},c.vAxis.titleTextStyle={color:"#616161",fontSize:12,italic:!1}):(c.vAxis.gridlines.color="#fff",c.vAxis.minorGridlines.color="#fff",c.chartArea.width="98%"),c}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.selectedStats;if(!t||!t.length)return null;var r=this.setOptions(),i=Object(j.a)(t);return a.createElement("section",{className:"mdc-layout-grid"},a.createElement("div",{className:"mdc-layout-grid__inner"},a.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},a.createElement(O.a,{chartType:"line",selectedStats:n,data:i.dataMap,options:r,singleStat:!1}))))}}]),SearchConsoleDashboardWidgetSiteStats}(b.Component);t.a=Object(y.a)(S,[{type:_.b,identifier:"search-console",datapoint:"searchanalytics",data:{dimensions:"date",compareDateRanges:!0},priority:1,maxAge:Object(v.m)("day"),context:"Single"}],a.createElement(k.a,{width:"100%",height:"270px",padding:!0}),{createGrid:!0})}).call(this,n(21),n(1))},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(0),m=n(1),p=n(6),h=n(40),b=n(39),v=n(24),y=n(29),_=n(75),O=n(2),k=n.n(O);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var E=function(t){l()(SearchConsoleDashboardWidgetOverview,t);var n=j(SearchConsoleDashboardWidgetOverview);function SearchConsoleDashboardWidgetOverview(){return r()(this,SearchConsoleDashboardWidgetOverview),n.apply(this,arguments)}return o()(SearchConsoleDashboardWidgetOverview,[{key:"render",value:function(){var t=this.props,n=t.data,a=t.selectedStats,r=t.handleStatSelection;if(!n||!n.length)return null;var i=Object(_.a)(n),o=i.totalClicks,c=i.totalImpressions,l=i.averageCTR,s=i.averagePosition,u=i.totalClicksChange,d=i.totalImpressionsChange,g=i.averageCTRChange,p=i.averagePositionChange,b=[{className:"googlesitekit-data-block--clicks googlesitekit-data-block--button-1",title:Object(f.__)("Total Clicks","google-site-kit"),datapoint:o,change:u,changeDataUnit:"%",context:"button",selected:a.includes(0),handleStatSelection:r},{className:"googlesitekit-data-block--impressions googlesitekit-data-block--button-2",title:Object(f.__)("Total Impressions","google-site-kit"),datapoint:c,change:d,changeDataUnit:"%",context:"button",selected:a.includes(1),handleStatSelection:r},{className:"googlesitekit-data-block--ctr googlesitekit-data-block--button-3",title:Object(f.__)("Average CTR","google-site-kit"),datapoint:l,datapointUnit:"%",change:g,changeDataUnit:"%",context:"button",selected:a.includes(2),handleStatSelection:r},{className:"googlesitekit-data-block--position googlesitekit-data-block--button-4",title:Object(f.__)("Average Position","google-site-kit"),datapoint:s,change:p,changeDataUnit:"%",context:"button",selected:a.includes(3),handleStatSelection:r}];return e.createElement(m.Fragment,null,e.createElement("section",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner",role:"toolbar","aria-label":"Line Chart Options"},b.map((function(t,n){return e.createElement("div",{key:n,className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(h.a,{stat:n,className:t.className,title:t.title,datapoint:t.datapoint,datapointUnit:t.datapointUnit,change:t.change,changeDataUnit:t.changeDataUnit,context:t.context,selected:t.selected,handleStatSelection:t.handleStatSelection}))})))))}}]),SearchConsoleDashboardWidgetOverview}(m.Component);E.propTypes={handleDataError:k.a.func.isRequired},t.a=Object(b.a)(E,[{type:v.b,identifier:"search-console",datapoint:"searchanalytics",data:{dimensions:"date",compareDateRanges:!0},priority:1,maxAge:Object(p.m)("day"),context:["Single","Dashboard"]}],e.createElement(y.a,{width:"100%",height:"190px",padding:!0}),{createGrid:!0},_.b)}).call(this,n(1))},function(e,t,n){"use strict";(function(e,a){var r=n(16),i=n.n(r),o=n(17),c=n.n(o),l=n(18),s=n.n(l),u=n(19),d=n.n(u),g=n(10),f=n.n(g),m=n(8),p=n.n(m),h=n(1),b=n(0),v=n(6),y=n(33),_=n(59),O=n(77),k=n(158);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=f()(e);if(t){var r=f()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return d()(this,n)}}var E=function(t){s()(LegacyDashboardSearchFunnel,t);var n=j(LegacyDashboardSearchFunnel);function LegacyDashboardSearchFunnel(){return i()(this,LegacyDashboardSearchFunnel),n.apply(this,arguments)}return c()(LegacyDashboardSearchFunnel,[{key:"render",value:function(){var t=Object(v.i)(),n=e._googlesitekitLegacyData.permissions.canManageOptions,r=t.analytics.active||n?12:6;return a.createElement(h.Fragment,null,a.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},a.createElement(_.a,{title:Object(b.__)("Search Funnel","google-site-kit"),description:Object(b.__)("How your site appeared in Search results and how many visitors you got from Search.","google-site-kit")})),a.createElement("div",{className:p()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-".concat(r))},a.createElement(y.a,{className:"googlesitekit-analytics-search-funnel"},a.createElement("div",{className:"mdc-layout-grid"},a.createElement("div",{className:"mdc-layout-grid__inner"},a.createElement(k.a,null),!t.analytics.active&&a.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},a.createElement(O.a,{moduleSlug:"analytics"})))))))}}]),LegacyDashboardSearchFunnel}(h.Component);t.a=E}).call(this,n(21),n(1))},function(e,t,n){"use strict";(function(e,a){var r=n(5),i=n.n(r),o=n(0),c=n(1),l=n(4),s=n.n(l),u=n(40),d=n(39),g=n(24),f=n(75),m=n(62),p=n(29),h=n(6),b=n(67),v=n(48),y=n(22),_=n(12),O=n(38),k=n(83),j=n(80);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var S=s.a.useSelect;t.a=Object(d.a)((function LegacySearchConsoleDashboardWidgetTopLevel(t){var n=t.data,a=n.error,r=S((function(e){return e(y.c).getCurrentEntityURL()})),l=S((function(e){return e(O.c).getPropertyID()})),s=S((function(e){return e(O.c).isDomainProperty()})),d=S((function(e){return Object(h.w)(e(y.c).getReferenceSiteURL())})),g=S((function(e){return e(_.a).getDateRangeDates({offsetDays:O.a})})),p=g.startDate,D=g.endDate,w=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({resource_id:l},Object(j.a)({startDate:p,endDate:D}));r?w.page="!".concat(r):s&&d&&(w.page="*".concat(d));var R=S((function(e){return e(O.c).getServiceURL({path:"/performance/search-analytics",query:w})}));if(a)return Object(h.v)("plugin_setup","search_console_error",a.message),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement(v.a,{title:Object(o.__)("Something went wrong","google-site-kit"),description:a.message,error:!0}));if(!n)return null;if(!n.length)return e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},Object(k.a)(Object(o._x)("Search Console","Service name","google-site-kit")));var C=Object(f.a)(n),N=C.totalClicks,A=C.totalImpressions,x=C.totalClicksChange,P=C.totalImpressionsChange,L=C.dataMap;return e.createElement(c.Fragment,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(u.a,{className:"overview-total-impressions",title:Object(o.__)("Impressions","google-site-kit"),datapoint:A,change:P,changeDataUnit:"%",source:{name:Object(o._x)("Search Console","Service name","google-site-kit"),link:R,external:!0},sparkline:e.createElement(m.a,{data:Object(b.a)(L,2),change:P})})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(u.a,{className:"overview-total-clicks",title:Object(o.__)("Clicks","google-site-kit"),datapoint:N,change:x,changeDataUnit:"%",source:{name:Object(o._x)("Search Console","Service name","google-site-kit"),link:R,external:!0},sparkline:e.createElement(m.a,{data:Object(b.a)(L,1),change:x})})))}),[{type:g.b,identifier:"search-console",datapoint:"searchanalytics",data:{url:a._googlesitekitLegacyData.permaLink,dimensions:"date",compareDateRanges:!0},priority:1,maxAge:Object(h.m)("day"),context:["Single","Dashboard"]}],e.createElement(c.Fragment,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(p.a,{width:"100%",height:"202px"})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(p.a,{width:"100%",height:"202px"}))),{inGrid:!0},f.b)}).call(this,n(1),n(21))},function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(1),o=n(0),c=n(4),l=n.n(c),s=n(157),u=n(59),d=n(33),g=n(38),f=n(22),m=n(12),p=n(6),h=n(80);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var v=l.a.useSelect;t.a=function DashboardDetailsWidgetKeywordsTable(){var t=v((function(e){return e(g.c).getPropertyID()})),n=v((function(e){return e(f.c).getCurrentEntityURL()})),a=v((function(e){return e(m.a).getDateRangeDates({offsetDays:g.a})})),c=a.startDate,l=a.endDate,y=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({resource_id:t},Object(h.a)({startDate:c,endDate:l})),_=v((function(e){return e(g.c).isDomainProperty()})),O=v((function(e){return Object(p.w)(e(f.c).getReferenceSiteURL())}));n?y.page="!".concat(n):_&&O&&(y.page="*".concat(O));var k=v((function(e){return e(g.c).getServiceURL({path:"/performance/search-analytics",query:y})}));return e.createElement(i.Fragment,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(u.a,{title:Object(o.__)("Top Queries","google-site-kit"),description:Object(o.__)("What people searched for to find your page.","google-site-kit")})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(d.a,{footer:!0,footerCTALabel:Object(o._x)("Search Console","Service name","google-site-kit"),footerCTALink:k},e.createElement(s.a,null))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(0),o=n(57),c=n(4),l=n.n(c),s=n(6),u=n(39),d=n(24),g=n(55),f=n(54),m=n(33),p=n(75),h=n(38),b=n(22),v=n(12),y=n(56),_=n(80);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var k=l.a.useSelect;t.a=Object(u.a)((function LegacyDashboardWidgetPopularKeywordsTable(t){var n=t.data,a=k((function(e){return e(h.c).getPropertyID()})),c=k((function(e){return e(h.c).isDomainProperty()})),l=k((function(e){return Object(s.w)(e(b.c).getReferenceSiteURL())})),u=k((function(e){return e(v.a).getDateRangeDates({offsetDays:h.a})})),d=u.startDate,f=u.endDate,p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({resource_id:a},Object(_.a)({startDate:d,endDate:f}));c&&l&&(p.page="*".concat(l));var j=k((function(e){return e(h.c).getServiceURL({path:"/performance/search-analytics",query:p})}));if(!n||!n.length)return null;var E=[{title:Object(i.__)("Top search queries for your site","google-site-kit"),tooltip:Object(i.__)("Most searched for keywords related to your content","google-site-kit"),primary:!0},{title:Object(i.__)("Clicks","google-site-kit"),tooltip:Object(i.__)("Number of times users clicked on your content in search results","google-site-kit")},{title:Object(i.__)("Impressions","google-site-kit"),tooltip:Object(i.__)("Counted each time your content appears in search results","google-site-kit")}],S=[],D=n.map((function(e,t){var n=e.keys[0];return S[t]=Object(o.a)(j,{query:"!".concat(n)}),[n,Object(s.p)(e.clicks,{style:"decimal"}),Object(s.p)(e.impressions,{style:"decimal"})]})),w={hideHeader:!1,chartsEnabled:!1,links:S},R=Object(g.a)(D,E,w);return e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet "},e.createElement(m.a,{className:"googlesitekit-popular-content",footer:!0,footerCTALabel:Object(i._x)("Search Console","Service name","google-site-kit"),footerCTALink:j,fill:!0},e.createElement(y.a,null,R)))}),[{type:d.b,identifier:"search-console",datapoint:"searchanalytics",data:{dimensions:"query",limit:10},priority:1,maxAge:Object(s.m)("day"),context:["Dashboard"]}],e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet"},e.createElement(m.a,{className:"googlesitekit-popular-content",fill:!0},e.createElement(f.a,{padding:!0}))),{inGrid:!0,createGrid:!0},p.b)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(1),m=n(0),p=n(33),h=n(158),b=n(6),v=n(77),y=n(59);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var O=function(t){l()(DashboardDetailsSearchFunnel,t);var n=_(DashboardDetailsSearchFunnel);function DashboardDetailsSearchFunnel(){return r()(this,DashboardDetailsSearchFunnel),n.apply(this,arguments)}return o()(DashboardDetailsSearchFunnel,[{key:"render",value:function(){return e.createElement(f.Fragment,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(y.a,{description:Object(m.__)("How your site appeared in Search results and how many visitors you got from Search.","google-site-kit"),title:Object(m.__)("Search Funnel","google-site-kit")})),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},e.createElement(p.a,{className:"googlesitekit-analytics-search-funnel"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement(h.a,null),!Object(b.i)().analytics.active&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement(v.a,{moduleSlug:"analytics"})))))))}}]),DashboardDetailsSearchFunnel}(f.Component);t.a=O}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(1),m=n(0),p=n(254),h=n(59);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var v=function(t){l()(LegacyDashboardPopularity,t);var n=b(LegacyDashboardPopularity);function LegacyDashboardPopularity(){return r()(this,LegacyDashboardPopularity),n.apply(this,arguments)}return o()(LegacyDashboardPopularity,[{key:"render",value:function(){return e.createElement(f.Fragment,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(h.a,{title:Object(m.__)("Popularity","google-site-kit"),description:Object(m.__)("Your most popular pages and how people found them from Search.","google-site-kit")})),e.createElement(p.a,null))}}]),LegacyDashboardPopularity}(f.Component);t.a=v}).call(this,n(1))},function(e,t,n){"use strict";var a=n(16),r=n.n(a),i=n(17),o=n.n(i),c=n(18),l=n.n(c),s=n(19),u=n.n(s),d=n(10),g=n.n(d),f=n(124),m=n(1);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g()(e);if(t){var r=g()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return u()(this,n)}}var h=function(e){l()(LegacyDashboardPopularityInner,e);var t=p(LegacyDashboardPopularityInner);function LegacyDashboardPopularityInner(){return r()(this,LegacyDashboardPopularityInner),t.apply(this,arguments)}return o()(LegacyDashboardPopularityInner,[{key:"render",value:function(){return null}}]),LegacyDashboardPopularityInner}(m.Component);t.a=Object(f.a)("googlesitekit.DashboardPopularity")(h)},,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(344),r=n.n(a);function i(e,t){return r()(e,t)||0}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e,t){var a=n(31),r=n(6),i=n(211),o=n(212),c=n(20),l="adsense",s=Object(r.i)();if(s.adsense.active){var u=Object(a.a)(e.createElement(i.a,null)),d=Object(a.a)(e.createElement(o.a,null));if(s[l].setupComplete)Object(c.b)("googlesitekit.ModuleApp-".concat(l),"googlesitekit.ModuleApp",u),Object(c.b)("googlesitekit.DashboardModule","googlesitekit.DashboardEarningModule",d,50);else{var g=t._googlesitekitLegacyData.admin,f=g.reAuth,m=g.currentScreen,p=m?m.id:null;f||"site-kit_page_googlesitekit-module-adsense"!==p||(t.location=Object(r.l)("googlesitekit-module-".concat(l),{reAuth:!0,slug:l})),Object(c.b)("googlesitekit.Connected-".concat(l),"googlesitekit.AdSenseModuleConnected",(function(e){var t=s[l].settings;return!(e||void 0===t||"graylisted"!==t.accountStatus&&"pending"!==t.accountStatus)||e}))}Object(c.b)("googlesitekit.ModulesNotificationsRequest","googlesitekit.adsenseNotifications",(function(e){return e.push({identifier:"adsense"}),e}))}}).call(this,n(1),n(21))},function(e,t,n){"use strict";(function(e,t){var a=n(20),r=n(6),i=n(31),o=n(227),c=n(234),l=n(235),s=n(240),u=n(241),d=n(242),g=n(243),f="analytics",m=Object(r.i)();if(!m[f].setupComplete){var p=e._googlesitekitLegacyData.admin,h=p.reAuth,b=p.currentScreen,v=b?b.id:null;h||"site-kit_page_googlesitekit-module-analytics"!==v||(e.location=Object(r.l)("googlesitekit-module-".concat(f),{reAuth:!0,slug:f}))}if(m.analytics.active){var y=Object(i.a)(t.createElement(o.a,null)),_=Object(i.a)(t.createElement(g.a,null)),O=Object(i.a)(t.createElement(c.a,null)),k=Object(i.a)(t.createElement(l.a,null)),j=Object(i.a)(t.createElement(s.a,null)),E=Object(i.a)(t.createElement(u.a,null)),S=Object(i.a)(t.createElement(d.a,null));Object(a.b)("googlesitekit.DashboardModule","googlesitekit.Analytics",_,9),Object(a.b)("googlesitekit.DashboardSearchFunnel","googlesitekit.Analytics",O,11),Object(a.b)("googlesitekit.DashboardPopularity","googlesitekit.Analytics",E,20),Object(a.b)("googlesitekit.AnalyticsAdSenseTopPagesTableSmall","googlesitekit.Analytics",S,20),Object(a.b)("googlesitekit.DashboardDetailsModule","googlesitekit.Analytics",k,20),m[f].setupComplete&&Object(a.b)("googlesitekit.ModuleApp-"+f,"googlesitekit.Analytics",y),Object(a.b)("googlesitekit.AnalyticsAdSenseTopPagesTable","googlesitekit.Analytics",j,11),Object(a.b)("googlesitekit.showDateRangeSelector-".concat(f),"googlesitekit.analyticsShowDateRangeSelector",(function(){return!0}))}}).call(this,n(21),n(1))},function(e,t,n){"use strict";(function(e){var t=n(20),a=n(31),r=n(244),i=n(245),o=n(248),c=n(249),l=n(250),s=n(251),u=n(252),d=n(253),g="search-console",f=Object(a.a)(e.createElement(i.a,null)),m=Object(a.a)(e.createElement(o.a,null)),p=Object(a.a)(e.createElement(c.a,null)),h=Object(a.a)(e.createElement(u.a,null)),b=Object(a.a)(e.createElement(l.a,null)),v=Object(a.a)(e.createElement(s.a,null)),y=Object(a.a)(e.createElement(d.a,null)),_=Object(a.a)(e.createElement(r.a,null));Object(t.b)("googlesitekit.DashboardModule","googlesitekit.SearchConsole",m,11),Object(t.b)("googlesitekit.DashboardModule","googlesitekit.DashboardPopularityModule",y,40),Object(t.b)("googlesitekit.DashboardSearchFunnel","googlesitekit.SearchConsoleSearchFunnel",p),Object(t.b)("googlesitekit.DashboardDetailsModule","googlesitekit.SearchConsole",h),Object(t.b)("googlesitekit.DashboardDetailsModule","googlesitekit.SearchConsole",b,40),Object(t.b)("googlesitekit.DashboardPopularity","googlesitekit.SearchConsoleDashboardPopularity",v),Object(t.b)("googlesitekit.DashboardPopularity","googlesitekit.DashboardPPostSearcherModule",_,30),Object(t.b)("googlesitekit.ModuleApp-"+g,"googlesitekit.ModuleApp",f),Object(t.b)("googlesitekit.showDateRangeSelector-".concat(g),"googlesitekit.searchConsoleShowDateRangeSelector",(function(){return!0}))}).call(this,n(1))},,function(e,t,n){"use strict";n(296),n(297);var a=n(20),r=n(0),i=n(6);Object(i.i)().optimize.active&&Object(a.b)("googlesitekit.SetupWinNotification-optimize","googlesitekit.OptimizeSetupWinNotification",(function(e){return e.description=Object(r.__)("To set up experiments and see the results, go to ","google-site-kit"),e.learnMore.label="Optimize",e.learnMore.url="https://optimize.withgoogle.com/",e}));n(298)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminBarApp}));var a=n(7),r=n.n(a),i=n(14),o=n.n(i),c=n(1),l=n(0),s=n(4),u=n.n(s),d=n(27),g=n(22),f=n(6),m=n(596),p=u.a.useSelect;function AdminBarApp(){var t=p((function(e){return e(g.c).getCurrentEntityURL()})),n=p((function(e){return e(g.c).getCurrentEntityTitle()})),a=p((function(e){return e(g.c).getAdminURL("googlesitekit-dashboard",{permaLink:t})})),i=Object(c.useCallback)(o()(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.v)("admin_bar","post_details_click");case 2:document.location.assign(a);case 3:case"end":return e.stop()}}),e)}))),[a]);return a&&t?e.createElement(c.Fragment,null,e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-3 mdc-layout-grid__cell--align-middle "},e.createElement("div",{className:"googlesitekit-adminbar__subtitle"},Object(l.__)("Stats for","google-site-kit")),e.createElement("div",{className:"googlesitekit-adminbar__title"},n?Object(f.e)(n):t)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--align-middle "},e.createElement(m.a,null)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2 mdc-layout-grid__cell--align-middle "},e.createElement(d.a,{className:"googlesitekit-adminbar__link",href:"#",onClick:i},Object(l.__)("More details","google-site-kit"))))),e.createElement(d.a,{className:"googlesitekit-adminbar__link googlesitekit-adminbar__link--mobile",href:"#",onClick:i},Object(l.__)("More details","google-site-kit"))):null}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminBarWidgets}));var a=n(5),r=n.n(a),i=n(8),o=n.n(i),c=n(1),l=n(4),s=n.n(l),u=n(597),d=n(598),g=n(599),f=n(600),m=n(77),p=n(109),h=n(601),b=n(30),v=n(23),y=n(51),_=n(81),O=n(87),k=n(167),j=s.a.useSelect,E=Object(k.b)("adminBarImpressions")(u.a),S=Object(k.b)("adminBarClicks")(d.a),D=Object(k.b)("adminBarUniqueVisitors")(g.a),w=Object(k.b)("adminBarSessions")(f.a);function AdminBarWidgets(){var t=j((function(e){return e(b.c).isModuleConnected("analytics")})),n=j((function(e){return e(b.c).isModuleActive("analytics")})),a=j((function(e){var t,n;return(null===(t=e(y.a).getWidgetState("adminBarImpressions"))||void 0===t?void 0:t.Component)===O.a&&(null===(n=e(y.a).getWidgetState("adminBarClicks"))||void 0===n?void 0:n.Component)===O.a})),i=j((function(e){var t,n;return(null===(t=e(y.a).getWidgetState("adminBarUniqueVisitors"))||void 0===t?void 0:t.Component)===O.a&&(null===(n=e(y.a).getWidgetState("adminBarSessions"))||void 0===n?void 0:n.Component)===O.a})),l=a&&i||a&&!t;return e.createElement(c.Fragment,null,l&&e.createElement(h.a,null),e.createElement(v.m,{className:o()(r()({},_.a,l))},e.createElement(v.a,{lgSize:a?6:3,mdSize:a?4:2},e.createElement(E,null)),e.createElement(v.a,{lgSize:3,mdSize:2,className:o()(r()({},_.a,a))},e.createElement(S,null)),t&&n&&e.createElement(c.Fragment,null,e.createElement(v.a,{lgSize:3,mdSize:2},e.createElement(D,null)),e.createElement(v.a,{lgSize:3,mdSize:2},e.createElement(w,null))),(!t||!n)&&e.createElement(v.a,{lgSize:6,mdSize:4},!n&&e.createElement(m.a,{moduleSlug:"analytics"}),n&&!t&&e.createElement(p.a,{moduleSlug:"analytics"}))))}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(4),i=n.n(r),o=n(40),c=n(29),l=n(12),s=n(22),u=n(38),d=n(6),g=n(183),f=n(267),m=i.a.useSelect;t.a=function AdminBarImpressions(t){var n=t.WidgetReportZero,r=t.WidgetReportError,i=m((function(e){return e(s.c).getCurrentEntityURL()})),p=m((function(e){return e(l.a).getDateRangeDates({compare:!0,offsetDays:u.a})})),h={startDate:p.compareStartDate,endDate:p.endDate,dimensions:"date",url:i},b=m((function(e){return e(u.b).getReport(h)})),v=m((function(e){return e(u.b).hasFinishedResolution("getReport",[h])})),y=m((function(e){return e(u.b).getErrorForSelector("getReport",[h])}));if(!v)return e.createElement(c.a,{width:"auto",height:"59px"});if(y)return e.createElement(r,{moduleSlug:"search-console",error:y});if(Object(g.a)(b))return e.createElement(n,{moduleSlug:"search-console"});var _=Math.floor(b.length/2),O=b.slice(_),k=b.slice(0,_),j=Object(f.a)(O,"impressions"),E=Object(f.a)(k,"impressions"),S=Object(d.b)(E,j);return e.createElement(o.a,{className:"overview-total-impressions",title:Object(a.__)("Total Impressions","google-site-kit"),datapoint:j,change:S,changeDataUnit:"%"})}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n(4),i=n.n(r),o=n(12),c=n(22),l=n(38),s=n(6),u=n(183),d=n(29),g=n(40),f=n(267),m=i.a.useSelect;t.a=function AdminBarClicks(t){var n=t.WidgetReportZero,r=t.WidgetReportError,i=m((function(e){return e(c.c).getCurrentEntityURL()})),p=m((function(e){return e(o.a).getDateRangeDates({compare:!0,offsetDays:l.a})})),h={startDate:p.compareStartDate,endDate:p.endDate,dimensions:"date",url:i},b=m((function(e){return e(l.b).getReport(h)})),v=m((function(e){return e(l.b).hasFinishedResolution("getReport",[h])})),y=m((function(e){return e(l.b).getErrorForSelector("getReport",[h])}));if(!v)return e.createElement(d.a,{width:"auto",height:"59px"});if(y)return e.createElement(r,{moduleSlug:"search-console",error:y});if(Object(u.a)(b))return e.createElement(n,{moduleSlug:"search-console"});var _=Math.floor(b.length/2),O=b.slice(_),k=b.slice(0,_),j=Object(f.a)(O,"clicks"),E=Object(f.a)(k,"clicks"),S=Object(s.b)(E,j);return e.createElement(g.a,{className:"overview-total-clicks",title:Object(a.__)("Total Clicks","google-site-kit"),datapoint:j,change:S,changeDataUnit:"%"})}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(0),o=n(40),c=n(4),l=n.n(c),s=n(29),u=n(12),d=n(22),g=n(9),f=n(6),m=n(146);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=l.a.useSelect;t.a=function AdminBarUniqueVisitors(t){var n=t.WidgetReportZero,a=t.WidgetReportError,r=b((function(e){return e(d.c).getCurrentEntityURL()})),c=h(h({},b((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:g.b})}))),{},{metrics:[{expression:"ga:users",alias:"Total Users"}],url:r}),l=b((function(e){return e(g.f).getReport(c)})),p=b((function(e){return e(g.f).hasFinishedResolution("getReport",[c])})),v=b((function(e){return e(g.f).getErrorForSelector("getReport",[c])}));if(!p)return e.createElement(s.a,{width:"auto",height:"59px"});if(v)return e.createElement(a,{moduleSlug:"analytics",error:v});if(Object(m.a)(l))return e.createElement(n,{moduleSlug:"analytics"});var y=l[0].data.totals,_=y[0].values,O=y[1].values,k=_[0],j=O[0];return e.createElement(o.a,{className:"overview-total-users",title:Object(i.__)("Total Users","google-site-kit"),datapoint:k,change:Object(f.b)(j,k),changeDataUnit:"%"})}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(0),o=n(4),c=n.n(o),l=n(40),s=n(29),u=n(12),d=n(22),g=n(9),f=n(6),m=n(146);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=c.a.useSelect;t.a=function AdminBarSessions(t){var n=t.WidgetReportZero,a=t.WidgetReportError,r=b((function(e){return e(d.c).getCurrentEntityURL()})),o=h(h({},b((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:g.b})}))),{},{dimensions:"ga:date",limit:10,metrics:[{expression:"ga:sessions",alias:"Sessions"}],url:r}),c=b((function(e){return e(g.f).getReport(o)})),p=b((function(e){return e(g.f).hasFinishedResolution("getReport",[o])})),v=b((function(e){return e(g.f).getErrorForSelector("getReport",[o])}));if(!p)return e.createElement(s.a,{width:"auto",height:"59px"});if(v)return e.createElement(a,{moduleSlug:"analytics",error:v});if(Object(m.a)(c))return e.createElement(n,{moduleSlug:"analytics"});var y=c[0].data.totals,_=y[0].values,O=y[1].values,k=_[0],j=Object(f.b)(O[0],_[0]);return e.createElement(l.a,{className:"overview-total-sessions",title:Object(i.__)("Total Sessions","google-site-kit"),datapoint:k,change:j,changeDataUnit:"%"})}}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var a=n(0);t.a=function AdminBarZeroData(){return e.createElement("div",null,e.createElement("div",{className:"googlesitekit-adminbar__subtitle googlesitekit-font-weight-bold"},Object(a.__)("No data available yet","google-site-kit")),e.createElement("div",{className:"googlesitekit-adminbar__subtitle"},Object(a.__)("There is no data available for this content yet. This could be because it was recently created or because nobody has accessed it so far.","google-site-kit")))}}).call(this,n(1))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"GoogleSitekitAdminbar",(function(){return u}));var a=n(594),r=n.n(a),i=n(274),o=n(198),c=n(6),l=n(190),s=n(595),u=(n(300),function GoogleSitekitAdminbar(){return e.createElement(s.a,null)}),d=r()((function(){var t=document.getElementById("js-googlesitekit-adminbar-modules");t&&(Object(o.render)(e.createElement(l.a,{dataAPIContext:"Adminbar"},e.createElement(u,null)),t),Object(c.v)("admin_bar","page_stats_view"))}));Object(i.a)((function(){var e=document.getElementById("wp-admin-bar-google-site-kit");e&&(e.addEventListener("mouseover",d,{once:!0}),e.addEventListener("focusin",d,{once:!0}))}))}.call(this,n(1))}],[[800,1,0]]]);