!function(e){function t(t){for(var a,o,c=t[0],l=t[1],u=t[2],d=0,g=[];d<c.length;d++)o=c[d],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&g.push(r[o][0]),r[o]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(s&&s(t);g.length;)g.shift()();return i.push.apply(i,u||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],a=!0,o=1;o<n.length;o++){var c=n[o];0!==r[c]&&(a=!1)}a&&(i.splice(t--,1),e=__webpack_require__(__webpack_require__.s=n[0]))}return e}var a={},r={6:0},i=[];function __webpack_require__(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}__webpack_require__.m=e,__webpack_require__.c=a,__webpack_require__.d=function(e,t,n){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(__webpack_require__.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)__webpack_require__.d(n,a,function(t){return e[t]}.bind(null,a));return n},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="";var o=window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[],c=o.push.bind(o);o.push=t,o=o.slice();for(var l=0;l<o.length;l++)t(o[l]);var s=c;i.push([788,0]),n()}([function(e,t){e.exports=googlesitekit.i18n},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"i",(function(){return v})),n.d(t,"j",(function(){return E})),n.d(t,"k",(function(){return R})),n.d(t,"l",(function(){return N})),n.d(t,"m",(function(){return C})),n.d(t,"n",(function(){return P})),n.d(t,"o",(function(){return T})),n.d(t,"p",(function(){return M})),n.d(t,"q",(function(){return I})),n.d(t,"r",(function(){return U}));var a=n(124);void 0===e.googlesitekit&&(e.googlesitekit={});var r=e.googlesitekit._element||a,i=r.Children,o=r.cloneElement,c=r.Component,l=r.concatChildren,s=r.createContext,u=r.createElement,d=r.createInterpolateElement,g=r.createPortal,f=r.createRef,p=r.findDOMNode,m=r.forwardRef,h=r.Fragment,b=r.isEmptyElement,v=r.isValidElement,y=r.lazy,_=r.memo,k=r.Platform,O=r.RawHTML,E=r.render,j=r.renderToString,S=r.StrictMode,D=r.Suspense,w=r.switchChildrenNodeName,A=r.unmountComponentAtNode,R=r.useCallback,N=r.useContext,x=r.useDebugValue,C=r.useEffect,L=r.useImperativeHandle,P=r.useLayoutEffect,T=r.useMemo,M=r.useReducer,I=r.useRef,U=r.useState;void 0===e.googlesitekit._element&&(e.googlesitekit._element={Children:i,cloneElement:o,Component:c,concatChildren:l,createContext:s,createElement:u,createInterpolateElement:d,createPortal:g,createRef:f,findDOMNode:p,forwardRef:m,Fragment:h,isEmptyElement:b,isValidElement:v,lazy:y,memo:_,Platform:k,RawHTML:O,render:E,renderToString:j,StrictMode:S,Suspense:D,switchChildrenNodeName:w,unmountComponentAtNode:A,useCallback:R,useContext:N,useDebugValue:x,useEffect:C,useImperativeHandle:L,useLayoutEffect:P,useMemo:T,useReducer:M,useRef:I,useState:U})}).call(this,n(16))},,function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Children",(function(){return u})),n.d(t,"createRef",(function(){return d})),n.d(t,"Component",(function(){return g})),n.d(t,"PureComponent",(function(){return f})),n.d(t,"createContext",(function(){return p})),n.d(t,"forwardRef",(function(){return m})),n.d(t,"lazy",(function(){return h})),n.d(t,"memo",(function(){return b})),n.d(t,"useCallback",(function(){return v})),n.d(t,"useContext",(function(){return y})),n.d(t,"useEffect",(function(){return _})),n.d(t,"useImperativeHandle",(function(){return k})),n.d(t,"useDebugValue",(function(){return O})),n.d(t,"useLayoutEffect",(function(){return E})),n.d(t,"useMemo",(function(){return j})),n.d(t,"useReducer",(function(){return S})),n.d(t,"useRef",(function(){return D})),n.d(t,"useState",(function(){return w})),n.d(t,"Fragment",(function(){return A})),n.d(t,"Profiler",(function(){return R})),n.d(t,"StrictMode",(function(){return N})),n.d(t,"Suspense",(function(){return x})),n.d(t,"createElement",(function(){return C})),n.d(t,"cloneElement",(function(){return L})),n.d(t,"createFactory",(function(){return P})),n.d(t,"isValidElement",(function(){return T})),n.d(t,"version",(function(){return M})),n.d(t,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return I}));var a=n(8),r=n.n(a),i=n(69),o=n.n(i);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}void 0===e.googlesitekit&&(e.googlesitekit={});var l=e.googlesitekit._react||function(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}({default:o.a},i),s=l.default,u=l.Children,d=l.createRef,g=l.Component,f=l.PureComponent,p=l.createContext,m=l.forwardRef,h=l.lazy,b=l.memo,v=l.useCallback,y=l.useContext,_=l.useEffect,k=l.useImperativeHandle,O=l.useDebugValue,E=l.useLayoutEffect,j=l.useMemo,S=l.useReducer,D=l.useRef,w=l.useState,A=l.Fragment,R=l.Profiler,N=l.StrictMode,x=l.Suspense,C=l.createElement,L=l.cloneElement,P=l.createFactory,T=l.isValidElement,M=l.version,I=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;void 0===e.googlesitekit._react&&(e.googlesitekit._react={default:o.a,Children:u,createRef:d,Component:g,PureComponent:f,createContext:p,forwardRef:m,lazy:h,memo:b,useCallback:v,useContext:y,useEffect:_,useImperativeHandle:k,useDebugValue:O,useLayoutEffect:E,useMemo:j,useReducer:S,useRef:D,useState:w,Fragment:A,Profiler:R,StrictMode:N,Suspense:x,createElement:C,cloneElement:L,createFactory:P,isValidElement:T,version:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:I}),t.default=s}.call(this,n(16))},function(e,t,n){"use strict";(function(e){n.d(t,"o",(function(){return D})),n.d(t,"m",(function(){return w})),n.d(t,"l",(function(){return R})),n.d(t,"n",(function(){return N})),n.d(t,"f",(function(){return x})),n.d(t,"b",(function(){return C})),n.d(t,"h",(function(){return L})),n.d(t,"j",(function(){return P})),n.d(t,"k",(function(){return T})),n.d(t,"u",(function(){return M})),n.d(t,"a",(function(){return I})),n.d(t,"q",(function(){return U})),n.d(t,"d",(function(){return W})),n.d(t,"g",(function(){return z}));var a=n(5),r=n.n(a),i=n(15),o=n.n(i),c=n(8),l=n.n(c),s=n(36),u=n.n(s),d=n(34),g=n.n(d),f=n(14),p=n(17),m=n(0),h=n(56),b=n(192),v=n(58);n.d(t,"s",(function(){return v.c}));var y=n(25),_=n(63);n.d(t,"p",(function(){return _.a})),n.d(t,"t",(function(){return _.b}));var k=n(64);n.d(t,"r",(function(){return k.a}));var O=n(67);n.d(t,"c",(function(){return O.b})),n.d(t,"i",(function(){return O.c}));n(42),n(54);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}function j(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){l()(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}n.d(t,"e",(function(){return y.b}));var S=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Object(f.isFinite)(e)?e:Number(e),Object(f.isFinite)(e)||(console.warn("Invalid number",e,g()(e)),e=0),t)return w(e,{style:"currency",currency:t});var n={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in millions.
Object(m.__)("%sM","google-site-kit"),w(S(e),e%10==0?{}:n)):1e4<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(S(e))):1e3<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(S(e),e%10==0?{}:n)):e.toString()},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?A():n,r=u()(t,["locale"]);return new Intl.NumberFormat(a,r).format(e)},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(f.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},R=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}},N=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()},x=function(e,t){var n=1e3*R("day"),a=e.getTime(),r=t.getTime();return Math.round(Math.abs(a-r)/n)},C=function(e,t){if("0"===e||0===e||isNaN(e))return"";var n=((t-e)/e*100).toFixed(1);return isNaN(n)||"Infinity"===n?"":n},L=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"!==g()(n[t])||void 0===n[t].slug||void 0===n[t].name||n[t].slug!==t?e:j(j({},e),{},l()({},t,n[t]))}),{}):{}},P=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=L(a)[t].screenID,s="pagespeed-insights"===t?{notification:"authentication_success",reAuth:void 0}:{},u=Object(h.a)(o,j({page:t&&n&&l?l:"googlesitekit-dashboard",slug:t,reAuth:n},s));if(!c)return u;var d=encodeURIComponent(Object(b.a)(u));return u=o+"?"+d,Object(h.a)(i,{redirect:u,status:n})},T=function(t,n){var a=e._googlesitekitLegacyData.admin.adminRoot;return t||(t="googlesitekit-dashboard"),n=j({page:t},n),Object(h.a)(a,n)},M=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},I=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]:v.c,o=s.length>4&&void 0!==s[4]?s[4]:L,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)}}(),U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(p.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(y.b)(e,t),1)},W=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(f.unescape)(t)};function z(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(16))},,,function(e,t){e.exports=googlesitekit.data},,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p}));var a=n(118);void 0===e.googlesitekit&&(e.googlesitekit={});var r=e.googlesitekit._hooks||a,i=r.addAction,o=r.addFilter,c=r.removeAction,l=r.removeFilter,s=r.hasAction,u=r.hasFilter,d=r.removeAllActions,g=r.removeAllFilters,f=r.doAction,p=r.applyFilters,m=r.currentAction,h=r.currentFilter,b=r.doingAction,v=r.doingFilter,y=r.didAction,_=r.didFilter,k=r.actions,O=r.filters;void 0===e.googlesitekit._hooks&&(e.googlesitekit._hooks={addAction:i,addFilter:o,removeAction:c,removeFilter:l,hasAction:s,hasFilter:u,removeAllActions:d,removeAllFilters:g,doAction:f,applyFilters:p,currentAction:m,currentFilter:h,doingAction:b,doingFilter:v,didAction:y,didFilter:_,actions:k,filters:O})}).call(this,n(16))},function(e,t,n){"use strict";n.d(t,"h",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return s})),n.d(t,"b",(function(){return u}));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"},function(e,t,n){"use strict";var a=n(8),r=n.n(a),i=n(14),o=n(76),c=n(56),l=n(17),s=n(39),u=n(25),d=n(67),g=n(70),f=n(152),p=n(116),m=n(153),h=n(29),b=n(68);n.d(t,"a",(function(){return b.a})),n.d(t,"b",(function(){return b.b}));var v=n(112),y=n(142);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 k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){r()(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 O=function(e,t){var n=k({data:{}},e);if("prev-date-range-placeholder"===n.data.dateRange){var a=t.replace("last","prev");return n.data=k(k({},n.data),{},{dateRange:a}),n}return n.data=k({dateRange:t},n.data),n},E={maxRequests:10,combinedGetFromCache:function(e){var t=this;return new Promise((function(n,a){try{var r=[],o=Object(s.c)();Object(i.each)(e,(function(e){var n=O(e,o);n.key=Object(h.d)(n.type,n.identifier,n.datapoint,n.data);var a=Object(h.c)(n.key,n.maxAge);void 0!==a&&(r[n.key]=a,t.resolve(n,a))})),n(r)}catch(e){a()}}))},combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=[],r=25,u=Object(s.c)();Object(i.each)(e,(function(e){var n=O(e,u);n.key=Object(h.d)(n.type,n.identifier,n.datapoint,n.data);var i=Object(h.c)(n.key,n.maxAge);void 0!==i?(setTimeout((function(){t.resolve(n,i)}),r),r+=25):a.push(n)})),a=Object(i.sortBy)(a,"priority");var f=[],p=[],m={},b=!!a.find((function(e){return e.priority<10}));Object(i.each)(a,(function(e,t){!n&&10<=e.priority&&b?p.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],f.push(e))}));var v=10,y=f.slice(0,v),_=f.slice(v);if(_=_.concat(p),0!==y.length||0!==_.length){0<_.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(_,!0)}),50):this.maxRequests=10;var k=null!==Object(d.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:k||void 0}),data:{request:y},method:"POST"}).then((function(e){Object(i.each)(e,(function(e,n){if(m[n]){var r=Object(g.d)(e);if(r){var o=a[m[n]],c=o.datapoint,s=o.type,u=o.identifier;t.handleWPError({method:"POST",datapoint:c,type:s,identifier:u,error:e})}Object(i.each)(m[n],(function(n){var i=a[n];r||Object(h.f)(i.key,e),t.resolve(i,e)})),0===_.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+n)}))})).catch((function(e){console.warn("Error caught during combinedGet",e)}))}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",i),Object(y.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(u.b)(p.a),1),c++),"forbidden"===o.reason&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(u.b)(m.a),1),c++),o.reconnectURL&&(Object(l.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",Object(u.b)(f.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:v.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(h.d)(e,t,n,r);if(!i){var s=Object(h.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(h.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 E.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(b.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",E.collectModuleData.bind(E)),t.c=E},,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"q",(function(){return _})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return m})),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 p})),n.d(t,"e",(function(){return k})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return j})),n.d(t,"f",(function(){return S})),n.d(t,"h",(function(){return D})),n.d(t,"a",(function(){return w})),n.d(t,"s",(function(){return A})),n.d(t,"p",(function(){return R})),n.d(t,"u",(function(){return N})),n.d(t,"t",(function(){return x})),n.d(t,"g",(function(){return C})),n.d(t,"r",(function(){return L}));var a=n(14),r=n(13),i=n.n(r),o=n(0),c=n(54),l=n(4),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(120),d=n(20),g=n.n(d),f=n(18),p=function(e){return(parseInt(e,10)||0)>0};function m(e){return e===f.a||p(e)}function h(e){return"string"==typeof e&&/^UA-\d+-\d+$/.test(e)}function b(e){return e===f.f||h(e)}function v(e){return e===f.e||p(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]}}function k(e,t){if(!e||!e.length)return null;var n=e[0].data,r=n.rows,i=n.totals[0].values[t],o=[["Source","Percent"]];return Object(a.each)(r,(function(e){var n=e.metrics[0].values[t]/i,a=e.dimensions[0];o.push([a,n])})),o}function O(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(),p=u.getFullYear().toString()+(2>g.length?"0":"")+g+(2>f.length?"0":"")+f;if(d>s){var m={dimensions:[p],metrics:[{values:[0,0,0,0,0]}]};r.unshift(m)}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 parseFloat(e).toFixed(2)+"%"},l.n],v=[[{type:"date",label:Object(o.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:"number",label:h[t]},{type:"number",label:Object(o.__)("Previous period","google-site-kit")}]],y=r.slice(r.length-n,r.length),_=r.slice(0,r.length-n),k=O(y,t),E=O(_,t),j=Object(c.a)(),S={weekday:"short",month:"short",day:"numeric"};return Object(a.each)(k,(function(e,n){if(e[0]&&e[1]&&E[n]){var a=parseFloat(E[n][1]),r=0!==a?100*e[1]/a-100:100,c=Object(o.sprintf)(
/* translators: %1$s: date for user stats, %2$s: previous date for user stats comparison */
Object(o._x)("%1$s vs %2$s","Date range for Analytics dashboard chart tooltip","google-site-kit"),e[0].toLocaleDateString(j,S),E[n][0].toLocaleDateString(j,S)),l=Object(o.sprintf)(
/* translators: %1$s: selected stat label, %2$s: numberic value of selected stat, %3$s: up or down arrow , %4$s: different change in percentage, %%: percent symbol */
Object(o._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s%%</em>","Stat information for Analytics dashboard 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>'),Math.abs(r).toFixed(2).replace(/(.00|0)$/,""));v.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(l,"</p>\n\t\t\t</div>"),e[1],E[n][1]])}})),v},j=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},S=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},D=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},w={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},A={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},R={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},N={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},C=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";n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(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,"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";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(41),r=n.n(a),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.e)(i.b,{},"",Object(i.e)(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(3))},function(e,t,n){"use strict";(function(e){var a=n(41),r=n.n(a),i=n(36),o=n.n(i),c=(n(1),n(2)),l=n.n(c),s=n(13),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,p=t.inherit,m=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,k=_?"a":"button";return e.createElement(k,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":p,"googlesitekit-cta-link--caps":m,"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(3))},function(e,t,n){"use strict";(function(e){var a=n(41),r=n.n(a),i=n(8),o=n.n(i),c=n(9),l=n.n(c),s=n(10),u=n.n(s),d=n(11),g=n.n(d),f=n(12),p=n.n(f),m=n(6),h=n.n(m),b=n(1),v=n(243),y=n.n(v),_=n(133),k=n.n(_),O=n(17),E=n(0),j=n(4),S=n(55),D=n(74),w=n(139),A=n(68);function R(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(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 p()(this,n)}}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},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1},c=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(E.__)("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(E.__)("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},s=function(s){g()(NewComponent,s);var d=x(NewComponent);function NewComponent(e){var t;l()(this,NewComponent),(t=d.call(this,e)).state={data:!1,zeroData:!1,errorMessage:!1,moduleRequiringSetup:""},Object(O.a)("googlesitekit.moduleDataReset","googlesitekit.moduleDataResetHandler",(function(){t.setState({data:!1,errorMessage:!1,zeroData:!1})}));return k()(n,(function(e){var n=e||{},a=n.type,r=n.identifier;k()(y()(e.context),(function(n){Object(O.b)("googlesitekit.module".concat(n,"DataRequest"),"googlesitekit.data".concat(n),(function(n){var i;if(A.b===a&&!(null===(i=Object(j.h)()[r])||void 0===i?void 0:i.setupComplete))return t.setState({moduleRequiringSetup:r}),n;return n.concat(N(N({},e),{},{callback:function(n){!function(e,n){var a=t.props,r=a.handleDataError,i=a.handleDataSuccess,l=n.datapoint,s=n.identifier,u=n.toState,d=c(e);d?(t.setState({errorMessage:d,errorObj:e,module:s}),r&&r(d,e)):o(e,l,n)?(r&&r(d,e),t.setState({zeroData:!0})):i&&i(),t.setState({requestDataToState:u,data:e,datapoint:l,module:s})}(n,e)}}))}))}))})),t}return u()(NewComponent,[{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(f)return Object(w.a)(f,i.inGrid,i.fullWidth,i.createGrid);if(!o)return a;if(u)return"string"!=typeof u?u:Object(D.a)(l,u,i.inGrid,i.fullWidth,i.createGrid,d);if(s){var p,m=(null===(p=Object(j.h)()[l])||void 0===p?void 0:p.name)||Object(E.__)("Site Kit","google-site-kit");return Object(S.a)(m,i.inGrid,i.fullWidth,i.createGrid)}return e.createElement(t,r()({data:o,datapoint:c,requestDataToState:g},this.props))}}]),NewComponent}(b.a),d=t.displayName||t.name||"AnonymousComponent";return s.displayName="withData(".concat(d,")"),s}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(2),m=n.n(p),h=n(13),b=n.n(h),v=n(161),y=n(162);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 k=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:b()("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}(f.a);k.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},k.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=k}).call(this,n(3))},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(34),r=n.n(a),i=n(14),o=n(42),c=n(64),l="googlesitekit_legacy_",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(16))},function(e,t,n){"use strict";(function(e){n(1);var a=n(2),r=n.n(a),i=n(13),o=n.n(i);function PreviewBlock(t){var n=t.width,a=t.height,r=t.shape,i=t.padding;return e.createElement("div",{className:o()("googlesitekit-preview-block",{"googlesitekit-preview-block--padding":i}),style:{width:n,height:a}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===r})}))}PreviewBlock.propTypes={width:r.a.string,height:r.a.string,shape:r.a.string,padding:r.a.bool},PreviewBlock.defaultProps={width:"100px",height:"100px",shape:"square",padding:!1},t.a=PreviewBlock}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(35),l=n.n(c),s=n(11),u=n.n(s),d=n(12),g=n.n(d),f=n(6),p=n.n(f),m=n(1),h=n(2),b=n.n(h),v=n(13),y=n.n(v),_=n(0),k=n(135),O=n(54),E=n(72);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=p()(e);if(t){var r=p()(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=j(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,p=t.invertChangeColor,h="button"===l?"button":"",b=f;b&&p&&(b=Object(m.c)(f,{invertChangeColor:p}));var v=o;if(o){if(c)try{v=Object(O.b)(Math.abs(o),{style:"currency",currency:c})}catch(e){v="".concat(Object(O.b)(Math.abs(o))).concat(c)}s&&(v=Object(_.sprintf)(s,v))}return e.createElement("div",{className:y()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&h,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"},"".concat(r).concat(i))),b&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},b),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:"googlesitekit-data-block__change"},""===o&&e.createElement(m.b,null," "),o&&e.createElement(m.b,null,e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(k.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),g&&e.createElement(E.a,{className:"googlesitekit-data-block__source",name:g.name,href:g.link,external:null==g?void 0:g.external})))}}]),DataBlock}(m.a);S.propTypes={stat:b.a.number,onClick:b.a.func,className:b.a.string,title:b.a.string,datapoint:b.a.oneOfType([b.a.string,b.a.number]),datapointUnit:b.a.string,change:b.a.oneOfType([b.a.string,b.a.number]),changeDataUnit:b.a.string,context:b.a.string,period:b.a.string,selected:b.a.bool,handleStatSelection:b.a.func,invertChangeColor:b.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(3))},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p.a})),n.d(t,"m",(function(){return m.a})),n.d(t,"b",(function(){return h.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})),n.d(t,"j",(function(){return i.a})),n.d(t,"g",(function(){return o.a})),n.d(t,"i",(function(){return c.a})),n.d(t,"n",(function(){return s.a})),n.d(t,"l",(function(){return l.Option})),n.d(t,"k",(function(){return u.a})),n.d(t,"f",(function(){return d.a})),n.d(t,"e",(function(){return g.a})),n.d(t,"h",(function(){return f.a}));var a=n(93),r=n.n(a),i=n(274),o=n(812),c=n(811),l=n(119),s=n.n(l),u=n(810),d=n(808),g=n(809),f=n(807),p=n(121),m=n(122),h=n(123)},function(e,t,n){"use strict";(function(e){var a=n(8),r=n.n(a),i=n(5),o=n.n(i),c=n(15),l=n.n(c),s=n(9),u=n.n(s),d=n(10),g=n.n(d),f=n(35),p=n.n(f),m=n(11),h=n.n(m),b=n(12),v=n.n(b),y=n(6),_=n.n(y),k=n(1),O=n(2),E=n.n(O),j=n(13),S=n.n(j),D=n(14),w=n(97),A=n(63),R=n(29),N=n(31),x=n(44),C=n(134),L=n(143),P=n(26),T=n(106);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 I=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(k.h)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(R.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(R.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(R.c)("notification::dismissed::".concat(t));if(a){var r=new Date(a);r.setSeconds(r.getSeconds()+parseInt(n,10)),r<new Date&&Object(R.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.title,l=a.description,s=a.blockData,u=a.winImage,d=a.smallImage,g=a.format,f=a.learnMoreURL,p=a.learnMoreDescription,m=a.learnMoreLabel,h=a.ctaLink,b=a.ctaLabel,v=a.ctaTarget,y=a.type,_=a.dismiss,O=a.isDismissable,E=a.logo,j=a.module,M=a.moduleName,I=a.pageIndex,U=a.anchorLink,W=a.anchorLinkLabel;if(Object(R.c)("notification::dismissed::".concat(o)))return null;var z,q=n?"is-closed":"is-open",H="large"===g&&"win-stats-increase"===y,F="mdc-layout-grid__cell--span-12";"large"===g?(F="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 ",H&&(F="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"===g&&(F="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),z="win-warning"===y?e.createElement(C.a,null):"win-error"===y?e.createElement(L.a,null):"";var G=e.createElement(k.b,null,s&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(D.map)(s,(function(t,n){return e.createElement("div",{key:n,className:S()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(N.a,t)))})))),B=e.createElement(k.b,null,c&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},c),U&&W&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(P.a,{href:U},W)),l&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(k.i)(l)?l:e.createElement("span",{dangerouslySetInnerHTML:Object(A.a)(l,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),m&&e.createElement(k.b,null," ",e.createElement(P.a,{href:f,external:!0,inherit:!0},m),p),I&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},I))),i),V=j?e.createElement(T.a,{slug:j,height:19,width:19}):e.createElement(w.a,{height:"34",width:"32"});return e.createElement("section",{ref:this.cardRef,className:S()("googlesitekit-publisher-win",(t={},r()(t,"googlesitekit-publisher-win--".concat(g),g),r()(t,"googlesitekit-publisher-win--".concat(y),y),r()(t,"googlesitekit-publisher-win--".concat(q),q),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},E&&e.createElement("div",{className:S()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},V),M&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},M)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("img",{className:"googlesitekit-publisher-win__small-image",alt:"",src:d})),e.createElement("div",{className:S()("mdc-layout-grid__cell",F)},H?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"},B),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"},G)):e.createElement(k.b,null,B,G),h&&e.createElement(x.a,{href:h,target:v,onClick:this.handleCTAClick},b),O&&_&&e.createElement(P.a,{onClick:this.handleDismiss},_)),u&&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"},e.createElement("img",{alt:"",src:u}))),("win-error"===y||"win-warning"===y)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},z)))))}}]),Notification}(k.a);I.propTypes={id:E.a.string.isRequired,title:E.a.string.isRequired,description:E.a.node,learnMoreURL:E.a.string,learnMoreDescription:E.a.string,learnMoreLabel:E.a.string,blockData:E.a.array,winImage:E.a.string,smallImage:E.a.string,format:E.a.string,ctaLink:E.a.string,ctaLabel:E.a.string,type:E.a.string,dismiss:E.a.string,isDismissable:E.a.bool,logo:E.a.bool,module:E.a.string,moduleName:E.a.string,pageIndex:E.a.string,dismissExpires:E.a.number,showOnce:E.a.bool,onCTAClick:E.a.func,onDismiss:E.a.func,anchorLink:E.a.string,anchorLinkLabel:E.a.string},I.defaultProps={isDismissable:!0,dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return s}));var a=n(0),r=n(7),i=n.n(r),o=n(23);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l(),t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}function l(){return i.a.select(o.d).getDateRange()}function s(){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)},"last-14-days":{slug:"last-14-days",label:e(14)},"last-28-days":{slug:"last-28-days",label:e(28)},"last-90-days":{slug:"last-90-days",label:e(90)}}}},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){n.d(t,"a",(function(){return u}));var a,r=n(9),i=n.n(r),o=n(10),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(16))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a="modules/search-console"},function(e,t,n){"use strict";(function(e){var a=n(41),r=n.n(a),i=n(36),o=n.n(i),c=n(9),l=n.n(c),s=n(10),u=n.n(s),d=n(11),g=n.n(d),f=n(12),p=n.n(f),m=n(6),h=n.n(m),b=n(1),v=n(2),y=n.n(v),_=n(13),k=n.n(_),O=n(37);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=h()(e);if(t){var r=h()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return p()(this,n)}}var j=function(t){g()(Button,t);var n=E(Button);function Button(e){var t;return l()(this,Button),(t=n.call(this,e)).buttonRef=Object(b.h)(),t}return u()(Button,[{key:"componentDidMount",value:function(){new O.j(this.buttonRef.current)}},{key:"render",value:function(){var t=this.props,n=t.children,a=t.href,i=t.text,c=t.className,l=t.danger,s=t.disabled,u=t.target,d=t.icon,g=t.trailingIcon,f=t.ariaHaspopup,p=t.ariaExpanded,m=t.ariaControls,h=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","ariaHaspopup","ariaExpanded","ariaControls"]),b=a&&!s?"a":"button";return e.createElement(b,r()({className:k()("mdc-button",c,{"mdc-button--raised":!i,"mdc-button--danger":l}),href:s?void 0:a,ref:this.buttonRef,disabled:!!s,target:u||"_self","aria-haspopup":f,"aria-expanded":p,"aria-controls":m,role:"a"===b?"button":void 0},h),d,e.createElement("span",{className:"mdc-button__label"},n),g)}}]),Button}(b.a);j.propTypes={onClick:y.a.func,children:y.a.string.isRequired,href:y.a.string,text:y.a.bool,className:y.a.string,danger:y.a.bool,disabled:y.a.bool,icon:y.a.element,trailingIcon:y.a.element,ariaHaspopup:y.a.string,ariaExpanded:y.a.bool,ariaControls:y.a.string},j.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,ariaHaspopup:"",ariaExpanded:!1,ariaControls:""},t.a=j}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a="modules/adsense"},function(e,t,n){"use strict";(function(e){n(1);var a=n(2),r=n.n(a),i=n(13),o=n.n(i),c=n(30);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(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return g}));var r=n(8),i=n.n(r),o=(n(1),n(13)),c=n.n(o),l=n(14),s=n(72),u=n(26),d=n(4),g=function(t,n,r){var o=[],g=r.links,f=r.source,p=r.showURLs,m=r.useAdminURLs,h=void 0!==m&&m;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(u.a,{className:"googlesitekit-table__body-item-link",href:h?Object(d.k)("googlesitekit-dashboard",{permaLink:f}):s,external:!h,inherit:!0},e),p&&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 b=t&&t[0]&&t[0].length?t[0].length:1,v=r.hideColumns&&r.hideColumns.mobile&&r.hideColumns.mobile.length>0?b-r.hideColumns.mobile.length:b;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(b,"-col"),i()({},"googlesitekit-table__wrapper--mobile-".concat(v,"-col"),v!==b))},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(16),n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(20),i=n.n(r),o=n(1),c=n(2),l=n.n(c),s=n(14),u=n(13),d=n.n(u);function TableOverflowContainer(t){var n=t.children,r=Object(o.r)(!1),c=i()(r,2),l=c[0],u=c[1],g=Object(o.q)();Object(o.m)((function(){f();var t=Object(s.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;u(t<n-16&&0<n-16)}};return a.createElement("div",{onScroll:Object(s.debounce)(f,100),className:d()("googlesitekit-table-overflow",{"googlesitekit-table-overflow--gradient":l})},a.createElement("div",{ref:g,className:"googlesitekit-table-overflow__container"},n))}TableOverflowContainer.propTypes={children:l.a.element},t.a=TableOverflowContainer}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(2),m=n.n(p),h=n(13),b=n.n(h),v=n(26);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()(CTA,t);var n=y(CTA);function CTA(){return r()(this,CTA),n.apply(this,arguments)}return o()(CTA,[{key:"render",value:function(){var t=this.props,n=t.title,a=t.description,r=t.ctaLink,i=t.ctaLabel,o=t.error,c=t.onClick;return e.createElement("div",{className:b()("googlesitekit-cta",{"googlesitekit-cta--error":o})},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(v.a,{href:r,onClick:c,inverse:!o,caps:!0,arrow:!0},i))}}]),CTA}(f.a);_.propTypes={title:m.a.string.isRequired,description:m.a.oneOfType([m.a.string,m.a.node]),ctaLink:m.a.string,ctaLabel:m.a.string,error:m.a.bool,onClick:m.a.func},_.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",error:!1,onClick:function(){}},t.a=_}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));n(1);var a=n(2),r=n.n(a),i=n(13),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(3))},function(e,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(14),r=n(4);function i(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,i=0,o=0,c=0,l=e.length;Object(a.each)(e,(function(e){var a=new Date(e.keys[0]);t.push([a.getMonth()+1+"/"+a.getUTCDate(),e.clicks,e.impressions,e.ctr,e.position]),n+=e.clicks,i+=e.impressions,o+=e.ctr,c+=e.position}));var s=n,u=i;n=Object(r.o)(n),i=Object(r.o)(i);var d=l>0?(o/l*100).toFixed(1):"0.0",g=l>0?o/l:0,f=l>0?(c/l).toFixed(1):"0.0";return{dataMap:t,totalClicks:n,totalClicksRaw:s,totalImpressions:i,totalImpressionsRaw:u,averageCTR:d,averageCTRRaw:g,averagePosition:f}}var o=function(e){var t=Math.floor(e.length/2),n=i(e.slice(t)),a=i(e.slice(0,t));return{dataMap:n.dataMap,totalClicks:n.totalClicks,totalImpressions:n.totalImpressions,averageCTR:n.averageCTR,averagePosition:n.averagePosition,totalClicksChange:Object(r.b)(a.totalClicksRaw,n.totalClicksRaw),totalImpressionsChange:Object(r.b)(a.totalImpressionsRaw,n.totalImpressionsRaw),averageCTRChange:Object(r.b)(a.averageCTRRaw,n.averageCTRRaw),averagePositionChange:Object(r.b)(a.averagePosition,n.averagePosition)}},c=function(e){if(!e.length)return!0;var t=o(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){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var a=n(36),r=n.n(a),i=n(14),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?c():n,i=r()(t,["locale"]);return new Intl.NumberFormat(a,i).format(e)},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(i.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(16))},function(e,t,n){"use strict";(function(e){n(1);var a=n(0),r=n(49),i=n(79);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(3))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a="core/modules"},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(86),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(16))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(2),m=n.n(p);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}(f.a);b.propTypes={title:m.a.string,description:m.a.string},b.defaultProps={title:"",description:""},t.a=b}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(40);function r(e){return function(){e[a.a]=e[a.a]||[],e[a.a].push(arguments)}}},function(e,t,n){"use strict";(function(e){n(1);var a=n(2),r=n.n(a),i=n(193),o=n(65);function Sparkline(t){var n=t.data,a=t.change,r=t.instanceId,i=t.invertChangeColor,c=t.loadSmall,l=t.loadCompressed,s=t.loadHeight,u=t.loadText;if(!n)return"loading...";var d=i?"red":"green",g=i?"green":"red",f={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(a)||0)?d:g]};return e.createElement("div",{className:"googlesitekit-analytics-sparkline-chart-wrap"},e.createElement(o.a,{data:n,options:f,id:"googlesitekit-sparkline-".concat(r),loadSmall:c,loadCompressed:l,loadHeight:s,loadText:u}))}Sparkline.propTypes={instanceId:r.a.number.isRequired,invertChangeColor:r.a.bool,loadSmall:r.a.bool,loadCompressed:r.a.bool,loadHeight:r.a.number,loadText:r.a.bool},Sparkline.defaultProps={invertChangeColor:!1,loadSmall:!0,loadCompressed:!0,loadHeight:46,loadText:!1},t.a=Object(i.a)(Sparkline)}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(168),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 r})),n.d(t,"b",(function(){return i}));var a=n(89),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 c}));var a=n(34),r=n.n(a),i=n(85),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,a){n.d(t,"a",(function(){return GoogleChart}));var r,i=n(5),o=n.n(i),c=n(50),l=n.n(c),s=n(20),u=n.n(s),d=n(15),g=n.n(d),f=n(1),p=n(2),m=n.n(p),h=n(237),b=n.n(h),v=n(0),y=n(51);function _(){return(_=g()(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=2;break}return t.abrupt("return",r);case 2:return e.google&&e.google.charts?r=Promise.resolve():((n=document.createElement("script")).type="text/javascript",r=new Promise((function(t){n.onload=t,e.document.head.appendChild(n),n.src="https://www.gstatic.com/charts/loader.js"}))),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function GoogleChart(t){var n=t.chartType,r=t.className,i=t.data,o=t.loadCompressed,c=t.loadHeight,s=t.loadSmall,d=t.loadText,g=t.options,p=t.selectedStats,m=t.singleStat,h=Object(f.q)(null),k=Object(f.r)(null),O=u()(k,2),E=O[0],j=O[1],S=Object(f.r)(!0),D=u()(S,2),w=D[0],A=D[1];return Object(f.m)((function(){(function(){return _.apply(this,arguments)})().then((function(){e.google.charts.load("current",{packages:["corechart"],callback:function(){A(!1)}})}))}),[]),Object(f.m)((function(){if(!w&&h.current&&e.google){var t="pie"===n?new e.google.visualization.PieChart(h.current):new e.google.visualization.LineChart(h.current);j(t)}}),[w,!!h.current,n]),Object(f.m)((function(){var t=function(){var t,n,a,r=null===(t=e.google)||void 0===t||null===(n=t.visualization)||void 0===n||null===(a=n.arrayToDataTable)||void 0===a?void 0:a.call(n,i);if(r){if(p.length>0){var o=new e.google.visualization.DataView(r);m||o.setColumns([0].concat(l()(p.map((function(e){return e+1}))))),r=o}E&&E.draw(r,g)}},n=b()(t,100);return e.addEventListener("resize",n),t(),function(){e.removeEventListener("resize",n)}}),[E,i,p,g,m]),a.createElement("div",{className:"googlesitekit-graph-wrapper"},a.createElement("div",{ref:h,className:"googlesitekit-line-chart"},a.createElement("div",{className:"googlesitekit-chart-loading"},w&&a.createElement("div",{className:"googlesitekit-chart-loading__wrapper"},d&&a.createElement("p",null,Object(v.__)("Loading chart…","google-site-kit")),a.createElement(y.a,{className:r,small:s,compress:o,height:c})))))}GoogleChart.propTypes={chartType:m.a.string,className:m.a.string,data:m.a.arrayOf(m.a.array),loadCompressed:m.a.bool,loadHeight:m.a.number,loadSmall:m.a.bool,loadText:m.a.bool,options:m.a.object.isRequired,selectedStats:m.a.array,singleStat:m.a.bool},GoogleChart.defaultProps={chartType:"line",className:"",data:[],loadCompressed:!1,loadSmall:!1,loadHeight:null,loadText:!0,selectedStats:[],singleStat:!0}}).call(this,n(16),n(3))},,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(20),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(16))},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 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(75),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";(function(e){var a=n(1),r=n(2),i=n.n(r),o=n(13),c=n.n(o),l=n(0),s=n(26);function SourceLink(t){var n=t.name,r=t.href,i=t.className,o=t.external;return e.createElement("div",{className:c()("googlesitekit-source-link",i)},Object(a.f)(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:r,external:o,inherit:!0})}))}SourceLink.propTypes={name:i.a.string,href:i.a.string,className:i.a.string,external:i.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n(1);var a=n(0),r=n(4),i=n(70),o=n(130),c=n(80),l=n(49),s=n(79),u=n(189);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],p=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=Object(r.h)(),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)(m)&&(
/* 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==m||null===(d=m.data)||void 0===d?void 0:d.reconnectURL,k=_?e.createElement(c.a,{message:y,reconnectURL:_}):y,O=e.createElement(l.a,{title:v,description:k,error:!0});return"Invalid Credentials"===n&&Object(r.q)(u.a),Object(s.a)(O,g,f,p)}}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){var a=n(32),r=n.n(a),i=n(129),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(16))},function(e,t,n){"use strict";(function(e){n(1);var a=n(0),r=n(26);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(3))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n(7),i=n.n(r),o=n(156),c=n(171),l=n(173),s=n(23),u=i.a.useSelect;t.a=function Header(){var t=u((function(e){return e(s.d).isAuthenticated()}));return e.createElement(a.b,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:" mdc-layout-grid__cell mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--span-3-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-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-1-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},t&&e.createElement(c.a,null))))),e.createElement(l.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n(28);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.b,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(3))},function(e,t,n){"use strict";(function(e){n(1);var a=n(2),r=n.n(a),i=n(191),o=n(0),c=n(4);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.p)(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(3))},,,function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return b}));var a=n(5),r=n.n(a),i=n(15),o=n.n(i);n(50);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)}}(),p=function(){var e=o()(r.a.mark((function e(t){var n,a,i,o,c=arguments;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>1&&void 0!==c[1]?c[1]:null,e.next=3,f();case 3:if(!(a=e.sent)){e.next=10;break}if(!(i=a.getItem("".concat("googlesitekit_").concat(t)))){e.next=10;break}if(!(o=JSON.parse(i)).timestamp||!(null===n||Math.round(Date.now()/1e3)-o.timestamp<n)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:o.value});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)}}(),m=function(){var t=o()(r.a.mark((function t(n,a){var i,o,c=arguments;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=c.length>2&&void 0!==c[2]?c[2]:void 0,t.next=3,f();case 3:if(!(o=t.sent)){t.next=14;break}return t.prev=5,o.setItem("".concat("googlesitekit_").concat(n),JSON.stringify({timestamp:i||Math.round(Date.now()/1e3),value:a})),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_").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_")&&a.push(o.substring("googlesitekit_".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(16))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),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";(function(e){n.d(t,"a",(function(){return u}));var a=n(8),r=n.n(a),i=n(87),o=n(88);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(16))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var a=n(60),r=n(40);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(16))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var a=n(5),r=n.n(a),i=n(8),o=n.n(i),c=n(15),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,p,m,h,b,v;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(f=t.isFirstAdmin,p=t.referenceSiteURL,m=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(m){n.next=5;break}return n.abrupt("return");case 5:return v={send_to:h,event_category:o,event_label:l,value:s,dimension1:p,dimension2:f?"true":"false",dimension3:b},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(16))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var a=n(126),r=n.n(a)()(e)}).call(this,n(16))},function(e,t,n){"use strict";function a(e,t){if(!e)return t;try{var n=new URL(e),a="_r.drilldown=analytics.pagePath:".concat(n.pathname.replace(/\//g,"~2F"));return"".concat(t.replace(/\/$/,""),"/").concat(a)}catch(e){throw new Error("currentEntityURL must be a valid URL.")}}n.d(t,"a",(function(){return a}))},,function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return o.b})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return l}));var a=n(133),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(160),n(103);var o=n(115);n(169);function c(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 l=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,"g",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return j})),n.d(t,"a",(function(){return S}));var a=n(5),r=n.n(a),i=n(15),o=n.n(i),c=n(17),l=n(14),s=n(4),u=n(233),d=n(19),g=n(29),f=Object(c.c)("googlesitekit.winCallbacks",{}),p=function(){return Object(c.c)("googlesitekit.WinsNotificationsRequest",[])},m=function(){return Object(c.c)("googlesitekit.ModulesNotificationsRequest",[])};function h(){return b.apply(this,arguments)}function b(){return(b=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:if((n=e._googlesitekitLegacyData.setup).isSiteKitConnected&&(n.isAuthenticated||n.isVerified)){t.next=3;break}return t.abrupt("return",0);case 3:return a=0,t.next=6,_();case 6:return(i=t.sent)&&i.total&&(a+=i.total),t.next=10,O();case 10:return(o=t.sent)&&o.total&&(a+=o.total),a=Object(c.c)("googlesitekit.TotalNotifications",a),a=Math.max(0,Math.abs(a)),e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",a),t.abrupt("return",a);case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var v=function(e){return e?e.length?e.filter((function(e){return!Object(g.c)("notification::dismissed::".concat(e.id))})):e:[]},y=function(e){var t=function(e){return Object.keys(e).slice(0,1).map((function(t){return e[t]}))};if(1>=Object.keys(e).length)return e;var n=Object.values(e).filter((function(e){var t=Object(g.c)("notification::displayed::".concat(e[0].id));if(t){var n=new Date(t),a=new Date,r=new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()));if(n.setHours(0,0,0),r.setHours(0,0,0),n.getTime()===r.getTime())return!0;7<=Object(s.f)(n,r)&&Object(g.b)("notification::displayed::".concat(e[0].id))}return null===t})),a=null,r=[];return 0<Object.keys(n).length?(a=t(n),r[Object.keys(n)[0]]=a):(a=t(e),r[Object.keys(e)[0]]=a)};function _(){return k.apply(this,arguments)}function k(){return(k=o()(r.a.mark((function e(){var t,n,a,i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=0,e.next=4,m();case 4:return a=e.sent,i=[],a.map(function(){var e=o()(r.a.mark((function e(t){var n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Promise(function(){var e=o()(r.a.mark((function e(n){var a,i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.identifier,e.t0=v,e.next=4,d.c.get(d.b,a,"notifications",{},!1);case 4:e.t1=e.sent,i=(0,e.t0)(e.t1),n({identifier:a,notifications:i});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),i.push(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Promise.all(i).then((function(e){e.forEach((function(e){e.notifications.length&&(n+=e.notifications.length,t[e.identifier]=e.notifications)}))}));case 9:return e.abrupt("return",{results:t,total:n});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(){return E.apply(this,arguments)}function E(){return(E=o()(r.a.mark((function e(){var t,n,a,i,c;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=0,e.next=4,p();case 4:return a=e.sent,e.next=7,new u.a(a).get();case 7:return i=e.sent,c=[],a.map(function(){var e=o()(r.a.mark((function e(t){var n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Promise(function(){var e=o()(r.a.mark((function e(n){var a,o,c,s,u;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t.identifier,o=t.callback||Object(l.camelCase)(a),c=null,s=[],t.withData?(u=i[a]||null,c=f[o](u,a)):c=f[o](a),s=v(s=c?[c]:[]),n({identifier:a,notifications:s});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),c.push(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=12,Promise.all(c).then((function(e){e.forEach((function(e){e.notifications.length&&(t[e.identifier]=e.notifications)}))}));case 12:return t=y(t),n=t.length||Object.keys(t).length||0,e.abrupt("return",{results:t,total:n});case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var j=function(t){var n=Math.abs(t.count)+1;return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}},S=function(t){var n=Math.max(0,Math.abs(t.count)-1);return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}}}).call(this,n(16))},function(e,t,n){"use strict";var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(81);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 m=function(e){l()(ModuleSettingsWarning,e);var t=p(ModuleSettingsWarning);function ModuleSettingsWarning(){return r()(this,ModuleSettingsWarning),t.apply(this,arguments)}return o()(ModuleSettingsWarning,[{key:"render",value:function(){return null}}]),ModuleSettingsWarning}(n(1).a);t.a=Object(f.a)("googlesitekit.ModuleSettingsWarning")(m)},function(e,t,n){"use strict";(function(e){n(1);var a=n(13),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},t.a=PageHeader}).call(this,n(3))},function(e,t,n){"use strict";var a=n(3);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,a){var r=n(5),i=n.n(r),o=n(15),c=n.n(o),l=n(1),s=n(2),u=n.n(s),d=n(0),g=n(4),f=n(7),p=n.n(f),m=n(49),h=n(117),b=n(23),v=n(57),y=p.a.useSelect,_=p.a.useDispatch;function AnalyticsInactiveCTA(t){var n=t.title,r=void 0===n?Object(d.__)("Learn more about what visitors do on your site.","google-site-kit"):n,o=t.description,s=void 0===o?Object(d.__)("Connect with Google Analytics to see unique visitors, goal completions, top pages and more.","google-site-kit"):o,u=t.ctaLabel,f=void 0===u?Object(d.__)("Set up Analytics","google-site-kit"):u,p=_(v.a).activateModule,k=Object(l.k)(c()(i.a.mark((function t(){var n,a,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p("analytics");case 2:n=t.sent,a=n.error,r=n.response,a?Object(g.q)(h.a,{id:"analytics-setup-error",title:Object(d.__)("Internal Server Error","google-site-kit"),description:a.message,format:"small",type:"win-error"}):e.location.assign(r.moduleReauthURL);case 6:case"end":return t.stop()}}),t)}))));return y((function(e){return e(b.d).hasCapability(b.b)}))?a.createElement(m.a,{title:r,description:s,onClick:k,ctaLabel:f}):null}AnalyticsInactiveCTA.propTypes={title:u.a.string,description:u.a.string,ctaLabel:u.a.string},t.a=AnalyticsInactiveCTA}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e){var a=n(41),r=n.n(a),i=n(36),o=n.n(i),c=(n(1),n(2)),l=n.n(c),s=n(13),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(3))},,,function(e,t,n){"use strict";var a=n(3);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";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 p})),n.d(t,"l",(function(){return m})),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):p({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:m({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},p=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}},m=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";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v}));var a=n(36),r=n.n(a),i=n(8),o=n.n(i),c=n(5),l=n.n(c),s=n(22),u=n.n(s),d=n(7),g=n.n(d),f=n(83),p=g.a.createRegistryControl,m=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",p((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){n.d(t,"a",(function(){return ModuleIcon}));var a=n(41),r=n.n(a),i=n(36),o=n.n(i),c=(n(1),n(2)),l=n.n(c),s=n(102),u=n(107),d=n(136),g=n(138),f=n(108),p=n(137),m={adsense:s.a,analytics:u.a,optimize:d.a,"pagespeed-insights":g.a,"search-console":f.a,tagmanager:p.a};function ModuleIcon(t){var n=t.slug,a=t.width,i=void 0===a?33:a,c=t.height,l=void 0===c?33:c,s=o()(t,["slug","width","height"]);if(!m.hasOwnProperty(n))return null;var u=m[n];return e.createElement(u,r()({width:i,height:l},s))}ModuleIcon.propTypes={slug:l.a.string,width:l.a.number,height:l.a.number}}).call(this,n(3))},function(e,t,n){"use strict";var a=n(3);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";var a=n(3);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){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(2),m=n.n(p),h=n(236),b=n.n(h),v=n(13),y=n.n(v),_=n(193),k=n(0),O=n(44),E=n(26),j=n(37);function S(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 D=function(t){l()(Dialog,t);var n=S(Dialog);function Dialog(){var e;return r()(this,Dialog),(e=n.call(this)).state={attributes:[Object(k.__)("Audience overview","google-site-kit"),Object(k.__)("Top pages","google-site-kit"),Object(k.__)("Top acquisition channels","google-site-kit"),Object(k.__)("AdSense & Analytics metrics for top pages","google-site-kit")]},e.dialogRef=Object(f.h)(),e}return o()(Dialog,[{key:"componentDidMount",value:function(){new j.f(this.dialogRef.current)}},{key:"render",value:function(){var t=this.props,n=t.dialogActive,a=t.handleDialog,r=t.title,i=t.provides,o=t.handleConfirm,c=t.subtitle,l=t.confirmButton,s=t.dependentModules,u=t.instanceId,d=t.danger,g="googlesitekit-dialog-label-".concat(u),f="googlesitekit-dialog-description-".concat(u),p=!(!i||!i.length);return e.createElement("div",{ref:this.dialogRef,className:y()("mdc-dialog",{"mdc-dialog--open":n}),role:"alertdialog","aria-modal":"true","aria-labelledby":r?g:void 0,"aria-describedby":p?f:void 0,"aria-hidden":n?"false":"true",tabIndex:"-1"},e.createElement("div",{className:"mdc-dialog__scrim"}," "),e.createElement(b.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:g,className:"mdc-dialog__title"},r),c&&e.createElement("p",{className:"mdc-dialog__lead"},c),p&&e.createElement("section",{id:f,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))})))),s&&e.createElement("p",{className:"mdc-dialog__dependecies"},e.createElement("strong",null,Object(k.__)("Note: ","google-site-kit")),s),e.createElement("footer",{className:"mdc-dialog__actions"},e.createElement(O.a,{onClick:o,danger:d},l||Object(k.__)("Disconnect","google-site-kit")),e.createElement(E.a,{className:"mdc-dialog__cancel-button",onClick:function(){return a()},inherit:!0},Object(k.__)("Cancel","google-site-kit"))))))))}}]),Dialog}(f.a);D.propTypes={dialogActive:m.a.bool,handleDialog:m.a.func,handleConfirm:m.a.func.isRequired,title:m.a.string,description:m.a.string,confirmButton:m.a.string,danger:m.a.bool},D.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=Object(_.a)(D)}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(15),o=n.n(i),c=n(9),l=n.n(c),s=n(10),u=n.n(s),d=n(11),g=n.n(d),f=n(12),p=n.n(f),m=n(6),h=n.n(m),b=n(1),v=n(2),y=n.n(v),_=n(0),k=n(19),O=n(38);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=h()(e);if(t){var r=h()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return p()(this,n)}}var j=function(t){g()(Alert,t);var n,a=E(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,k.c.get(k.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(O.a,{id:t.id,key:t.id,title:t.title,description:t.message||t.description,dismiss:Object(_.__)("Dismiss","google-site-kit"),isDismissable:t.isDismissible,format:"small",ctaLink:t.ctaURL,ctaLabel:t.ctaLabel,ctaTarget:t.ctaTarget,type:t.severity})}));return e.createElement(b.b,null,i)}}]),Alert}(b.a);j.propTypes={module:y.a.string.isRequired},t.a=j}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeaderDateRange}));n(1);var a=n(170);function PageHeaderDateRange(){return e.createElement("span",{className:"googlesitekit-page-header__range"},e.createElement(a.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var a=n(42),r=n(29),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(16))},function(e,t,n){"use strict";var a=n(20),r=n.n(a),i=n(1);t.a=function Modal(e){var t=e.children,n=Object(i.r)(document.createElement("div")),a=r()(n,1)[0];return Object(i.m)((function(){var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(a),function(){return e.removeChild(a)}}),[]),Object(i.g)(t,a)}},function(e,t,n){"use strict";(function(e,a){var r=n(8),i=n.n(r),o=n(1),c=n(2),l=n.n(c),s=n(0),u=n(7),d=n.n(u),g=n(18),f=n(24),p=n(4),m=n(65),h=n(27),b=n(19),v=n(26),y=n(30),_=n(21),k=n(90);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}function E(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){i()(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}var j=d.a.useSelect,S=function LegacyDashboardAcquisitionPieChart(t){var n=t.data,a=t.source,r=j((function(e){return e(g.h).getAccountID()})),i=j((function(e){return e(g.h).getProfileID()})),c=j((function(e){return e(g.h).getInternalWebPropertyID()})),l=j((function(e){return e(f.c).getCurrentEntityURL()})),u=j((function(e){return e(g.h).getServiceURL({path:Object(k.a)(l,"/report/trafficsources-overview/a".concat(r,"w").concat(c,"p").concat(i,"/"))})}));if(!n||n.error||!n.length)return null;var d=Object(_.e)(n,1);return e.createElement("div",{className:"googlesitekit-chart googlesitekit-chart--pie"},e.createElement(m.a,{data:d,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(o.f)(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:u,inherit:!0,external:!0})})))};S.defaultProps={source:!1},S.propTypes={source:l.a.bool},t.a=Object(h.a)(S,[{type:b.b,identifier:"analytics",datapoint:"report",data:E(E({},_.t),{},{url:a._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(p.l)("day"),context:["Dashboard","Single"]}],e.createElement(y.a,{width:"282px",height:"282px",shape:"circular"}),{},_.h,_.f)}).call(this,n(3),n(16))},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,a){n.d(t,"a",(function(){return DashboardAuthScopesAlert}));var r=n(20),i=n.n(r),o=(n(1),n(196)),c=n.n(o),l=n(0),s=n(7),u=n.n(s),d=n(38),g=n(4),f=n(23),p=u.a.useSelect,m={siteverification:"site-verification",webmasters:"search-console"};function DashboardAuthScopesAlert(){var t,n,r,o,s,u=p((function(e){return e(f.d).getUnsatisfiedScopes()})),h=p((function(t){return t(f.d).getConnectURL({redirectURL:e.location.href})}));if(void 0===u||void 0===h)return null;switch(u.some((function(e){return!e.match(/^https:\/\/www.googleapis.com\/auth\//)}))?t="generic":(r=u,o=Object(g.h)(),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 m[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":
/* translators: used between list items, there is a space after the comma. */
var b=Object(l.__)(", ","google-site-kit");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"),n.join(b));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:h,ctaLabel:Object(l.__)("Redo setup","google-site-kit")})}}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(38);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=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=m(GenericError);function GenericError(){return r()(this,GenericError),n.apply(this,arguments)}return o()(GenericError,[{key:"render",value:function(){return e.createElement(p.a,this.props)}}]),GenericError}(f.a);t.a=h}).call(this,n(3))},,,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 Cell}));var a=n(8),r=n.n(a),i=(n(1),n(2)),o=n.n(i),c=n(13),l=n.n(c);function Cell(t){var n,a=t.className,i=t.smSize,o=t.smStart,c=t.mdSize,s=t.mdStart,u=t.lgSize,d=t.lgStart,g=t.size,f=t.children;return e.createElement("div",{className:l()(a,"mdc-layout-grid__cell",(n={},r()(n,"mdc-layout-grid__cell--span-".concat(g),12>=g&&g>0),r()(n,"mdc-layout-grid__cell--span-".concat(u,"-desktop"),12>=u&&u>0),r()(n,"mdc-layout-grid__cell--start-".concat(d,"-desktop"),12>=d&&d>0),r()(n,"mdc-layout-grid__cell--span-".concat(c,"-tablet"),8>=c&&c>0),r()(n,"mdc-layout-grid__cell--start-".concat(s,"-tablet"),8>=s&&s>0),r()(n,"mdc-layout-grid__cell--span-".concat(i,"-phone"),4>=i&&i>0),r()(n,"mdc-layout-grid__cell--start-".concat(o,"-phone"),4>=o&&o>0),n))},f)}Cell.propTypes={smSize:o.a.number,smStart:o.a.number,mdSize:o.a.number,mdStart:o.a.number,lgSize:o.a.number,lgStart:o.a.number,size:o.a.number,className:o.a.string,children:o.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Row}));n(1);var a=n(2),r=n.n(a),i=n(13),o=n.n(i);function Row(t){var n=t.className,a=t.children;return e.createElement("div",{className:o()("mdc-layout-grid__inner",n)},a)}Row.propTypes={className:r.a.string,children:r.a.node},Row.defaultProps={className:""}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Grid}));n(1);var a=n(2),r=n.n(a),i=n(13),o=n.n(i);function Grid(t){var n=t.className,a=t.children;return e.createElement("div",{className:o()("mdc-layout-grid",n)},a)}Grid.propTypes={className:r.a.string,children:r.a.node},Grid.defaultProps={className:""}}).call(this,n(3))},,,,,,function(e,t,n){"use strict";var a=n(125);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";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";(function(e){n.d(t,"a",(function(){return AdSenseLinkCTA}));n(1);var a=n(0),r=n(49);function AdSenseLinkCTA(){return e.createElement(r.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:"https://support.google.com/adsense/answer/6084409",ctaLabel:Object(a.__)("Learn more","google-site-kit")})}}).call(this,n(3))},,,function(e,t,n){"use strict";(function(e){n(1);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(3))},function(e,t,n){"use strict";(function(e){n(1);var a=n(2),r=n.n(a),i=n(13),o=n.n(i);function ChangeArrow(t){var n=t.direction,a=t.invertColor;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":a}),width:"9",height:"9",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},ChangeArrow.defaultProps={direction:"up",invertColor:!1},t.a=ChangeArrow}).call(this,n(3))},function(e,t,n){"use strict";var a=n(3);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"},a.createElement("g",{transform:"translate(0 57)"},a.createElement("path",{d:"M102 21c-.15-11.83-9.95-21-22-21H22C10.6.53 1 9.53 1 21s9.6 21.47 21 22h37v35c0 12.23 10.12 22 22 22 11.87 0 21-9.77 21-22V21z",fill:"#B366F6"}),a.createElement("circle",{fill:"#8430CE",cx:21.5,cy:21.5,r:21.5})),a.createElement("path",{d:"M159 21c-.15-11.83-9.95-21-22-21H79C67.6.53 58 9.53 58 21s9.6 21.47 21 22h37v35c0 12.23 10.12 22 22 22 11.87 0 21-9.77 21-22V21z",fill:"#C58AF8"}));t.a=function SvgOptimize(e){return a.createElement("svg",r({viewBox:"0 0 159 157"},e),i)}},function(e,t,n){"use strict";var a=n(3);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",transform:"translate(.422 .422)"},a.createElement("path",{d:"M16.091 30.725l14.461-14.543 6.817 6.856L22.908 37.58z",fill:"#8ab4f8"}),a.createElement("path",{d:"M22.91 8.496L16.09 1.64 1.63 16.182a4.867 4.867 0 000 6.854L16.09 37.58l6.817-6.855L11.856 19.61z",fill:"#4285f4"}),a.createElement("ellipse",{cx:19.5,cy:34.153,fill:"#1967d2",rx:4.82,ry:4.847}),a.createElement("path",{d:"M37.37 16.182L22.91 1.639a4.801 4.801 0 00-6.817 0 4.867 4.867 0 000 6.855l14.46 14.542a4.801 4.801 0 006.817 0 4.867 4.867 0 000-6.854z",fill:"#8ab4f8"}));t.a=function SvgTagmanager(e){return a.createElement("svg",r({viewBox:"0 0 40 40"},e),i)}},function(e,t,n){"use strict";var a=n(3);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("defs",null,a.createElement("radialGradient",{id:"pagespeed-insights_svg__b",cx:1360.51,cy:10958.05,r:458.83,gradientTransform:"matrix(.5 0 0 .5 -675.69 -5476.24)",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:0,stopColor:"#fff",stopOpacity:.1}),a.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),a.createElement("linearGradient",{id:"pagespeed-insights_svg__a",x1:1572.36,y1:11164.11,x2:1691.74,y2:11283.49,gradientTransform:"matrix(.5 0 0 .5 -675.69 -5476.24)",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:0,stopColor:"#212121",stopOpacity:.2}),a.createElement("stop",{offset:1,stopColor:"#212121",stopOpacity:0}))),o=a.createElement("path",{d:"M183.93 25.08v121.19a12.53 12.53 0 01-12.54 12.54H12.58A12.53 12.53 0 010 146.27V25.08z",fill:"#e1e1e1"}),c=a.createElement("path",{d:"M12.58 0h158.81a12.53 12.53 0 0112.54 12.54v12.54H0V12.54A12.53 12.53 0 0112.58 0z",fill:"#c2c2c2"}),l=a.createElement("path",{d:"M171.39 0H12.58A12.57 12.57 0 000 12.54v1A12.58 12.58 0 0112.58 1h158.81a12.59 12.59 0 0112.54 12.54v-1A12.58 12.58 0 00171.39 0z",fillOpacity:.2,fill:"#fff"}),s=a.createElement("path",{fill:"#212121",fillOpacity:.1,d:"M0 25.08h183.93v1H0z"}),u=a.createElement("path",{d:"M91.91 62.69a66.76 66.76 0 00-66.76 66.86c0 1.4-.09 3.14 0 4.18h29.13a36.26 36.26 0 010-4.18 37.64 37.64 0 0157.36-32l21-21a66.62 66.62 0 00-40.73-13.86z",fill:"#4285f4"}),d=a.createElement("path",{d:"M132.64 76.52l-21 21a37.59 37.59 0 0117.9 32 36.26 36.26 0 010 4.18h29.27c.08-1 0-2.78 0-4.18a66.73 66.73 0 00-26.17-53z",fill:"#f44336"}),g=a.createElement("circle",{fill:"#eee",cx:16.76,cy:12.54,r:4.18}),f=a.createElement("circle",{fill:"#eee",cx:33.48,cy:12.54,r:4.18}),p=a.createElement("path",{fill:"#212121",fillOpacity:.1,d:"M171.41 157.76H12.54A12.57 12.57 0 010 145.23v1a12.57 12.57 0 0012.54 12.54h158.87a12.58 12.58 0 0012.59-12.5v-1a12.58 12.58 0 01-12.54 12.53z"}),m=a.createElement("path",{d:"M132.86 79.06a2.06 2.06 0 00.39-1.22 2.1 2.1 0 00-2.09-2.09 2 2 0 00-1.28.46l-45.57 35.07a12.53 12.53 0 1018.37 16.41l30.17-48.65z",fill:"#9e9e9e"}),h=a.createElement("path",{d:"M132.82 76.58a2 2 0 01.43 1.26 2.06 2.06 0 01-.39 1.22l-30.17 48.65a12.53 12.53 0 01-18.84 3.05l28.08 28.07h59.47a12.53 12.53 0 0012.54-12.54v-18.61z",fill:"url(#pagespeed-insights_svg__a)"}),b=a.createElement("path",{d:"M183.93 12.54A12.53 12.53 0 00171.39 0H12.58A12.53 12.53 0 000 12.54v133.73a12.53 12.53 0 0012.54 12.54h158.85a12.53 12.53 0 0012.54-12.54z",fill:"url(#pagespeed-insights_svg__b)"});t.a=function SvgPagespeedInsights(e){return a.createElement("svg",r({viewBox:"0 0 183.95 158.81"},e),i,o,c,l,s,u,d,g,f,p,m,a.createElement("path",{d:"M84.31 112.33l45.57-35.09a2.06 2.06 0 011.28-.46 2.09 2.09 0 012 1.55 2 2 0 00-2-2.59 2 2 0 00-1.28.46l-45.57 35.07a12.5 12.5 0 00-4.87 9.92v.56a12.49 12.49 0 014.87-9.42z",style:{isolation:"isolate"},opacity:.2,fill:"#fff"}),a.createElement("path",{d:"M132.86 79.06l-30.17 48.65a12.51 12.51 0 01-23.21-5.93v.48a12.52 12.52 0 0023.24 6.5l30.14-48.66a2 2 0 00.39-1.22 1.91 1.91 0 00-.08-.54 2.31 2.31 0 01-.31.72z",style:{isolation:"isolate"},opacity:.2,fill:"#212121"}),h,b)}},function(e,t,n){"use strict";(function(e,a){n(1);var r=n(0),i=n(4),o=n(49),c=n(79);t.a=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=Object(i.h)()[t].name,d=e.createElement(o.a
/* translators: %s: Module name */,{title:Object(r.sprintf)(Object(r.__)("%s activation","google-site-kit"),u)
/* translators: %s: Module name */,description:Object(r.sprintf)(Object(r.__)("%s module needs to be configured","google-site-kit"),u),ctaLabel:Object(r.__)("Complete activation","google-site-kit"),onClick:function(){a.location=Object(i.j)(t,!0)}});return Object(c.a)(d,n,l,s)}}).call(this,n(3),n(16))},function(e,t,n){"use strict";(function(e){n(1);var a=n(65);t.a=function MiniChart(t){var n=t.index,r=t.percent,i={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=[["source","percent"],["",+r],["",100-r]];return e.createElement("div",{className:"googlesitekit-mini-chart"},e.createElement(a.a,{data:o,options:i,chartType:"pie",loadSmall:!0,loadCompressed:!0,loadHeight:24,loadText:!1,id:"minichart"+n}))}}).call(this,n(3))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(5),r=n.n(a),i=n(15),o=n.n(i),c=n(4),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.s)("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){n(1);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(3))},function(e,t,n){"use strict";(function(e,a){var r=n(8),i=n.n(r),o=n(1),c=n(0),l=n(7),s=n.n(l),u=n(4),d=n(39),g=n(27),f=n(19),p=n(47),m=n(46),h=n(140),b=n(21),v=n(23),y=n(48);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 k(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 O=s.a.useSelect;t.a=Object(g.a)((function LegacyAnalyticsDashboardWidgetTopAcquisitionSources(t){var n=t.data,a=O((function(e){return e(v.d).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(c.__)("Channel","google-site-kit"),tooltip:Object(c.__)("Channel refers to where your traffic originated from","google-site-kit")},{title:Object(c.__)("Users","google-site-kit"),tooltip:Object(c.__)("Number of users that originated from that traffic","google-site-kit")},{title:Object(c.__)("New Users","google-site-kit"),tooltip:Object(c.sprintf)(
/* translators: %s: number of days */
Object(c._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(c.__)("Sessions","google-site-kit"),tooltip:Object(c.sprintf)(
/* translators: %s: number of days */
Object(c._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(c.__)("Percentage","google-site-kit"),tooltip:Object(c.__)("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*100;return[t.dimensions[0],Object(u.m)(t.metrics[0].values[0]),Object(u.m)(t.metrics[0].values[1]),Object(u.m)(t.metrics[0].values[2]),e.createElement(o.b,{key:"minichart-analytics-top-as-"+n},e.createElement("div",{className:"googlesitekit-table__body-item-chart-wrap"},"".concat(a.toFixed(2),"%")," ",e.createElement(h.a,{percent:a.toFixed(1),index:n})))]})),g=Object(p.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:k(k({},b.t),{},{url:a._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(u.l)("day"),context:["Single","Dashboard"]}],e.createElement(m.a,{rows:4,rowHeight:50}),{},b.h)}).call(this,n(3),n(16))},function(e,t,n){"use strict";(function(e,a){n(1);var r=n(0),i=n(56),o=n(7),c=n.n(o),l=n(4),s=n(27),u=n(19),d=n(47),g=n(46),f=n(43),p=n(24),m=n(39),h=n(48),b=c.a.useSelect;t.a=Object(s.a)((function LegacySearchConsoleDashboardWidgetKeywordTable(t){var n=t.data,a=b((function(e){return e(f.a).getPropertyID()})),o=b((function(e){return e(p.c).getCurrentEntityURL()})),c=b((function(e){return e(f.a).isDomainProperty()})),s=b((function(e){return Object(l.t)(e(p.c).getReferenceSiteURL())})),u={resource_id:a,num_of_days:Object(m.b)()};o?u.page="!".concat(o):c&&s&&(u.page="*".concat(s));var g=b((function(e){return e(f.a).getServiceURL({path:"/performance/search-analytics",query:u})}));if(!n||!n.length)return null;var v=[{title:Object(r.__)("Keyword","google-site-kit"),tooltip:Object(r.__)("Most searched for keywords related to your content","google-site-kit"),primary:!0},{title:Object(r.__)("Clicks","google-site-kit"),tooltip:Object(r.__)("Number of times users clicked on your content in search results","google-site-kit")},{title:Object(r.__)("Impressions","google-site-kit"),tooltip:Object(r.__)("Counted each time your content appears in search results","google-site-kit")}],y=[],_=n.map((function(e,t){var n=e.keys[0];return y[t]=Object(i.a)(g,{query:"!".concat(n)}),[n,Object(l.m)(e.clicks),Object(l.m)(e.impressions)]})),k={hideHeader:!1,chartsEnabled:!1,links:y},O=Object(d.a)(_,v,k);return e.createElement(h.a,null,O)}),[{type:u.b,identifier:"search-console",datapoint:"searchanalytics",data:{url:a._googlesitekitLegacyData.permaLink,dimensions:"query",limit:10},priority:1,maxAge:Object(l.l)("day"),context:["Single","Dashboard"]}],e.createElement(g.a,{padding:!0}),{createGrid:!0},(function(e){return!e.length}))}).call(this,n(3),n(16))},function(e,t,n){"use strict";var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(81);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 m=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}(n(1).a);t.a=Object(f.a)("googlesitekit.DashboardSearchFunnel")(m)},,function(e,t,n){"use strict";(function(e){n(1);var a=n(0),r=n(7),i=n.n(r),o=n(45),c=n(23),l=n(28),s=n(39),u=i.a.useSelect;t.a=function AnalyticsAdSenseDashboardWidgetLayout(t){var n=t.children,r=u((function(e){return e(o.a).getServiceAccountSiteURL()})),i=u((function(e){return e(c.d).getDateRange()})),d=Object(s.b)(i);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",d,"google-site-kit"),d),headerCTALabel:Object(a.__)("See full stats in AdSense","google-site-kit"),headerCTALink:r},n)}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m}));var a=n(5),r=n.n(a),i=n(15),o=n.n(i),c=n(19);function l(){return s.apply(this,arguments)}function s(){return(s=o()(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.c.get(c.a,"site","notifications",{},!1);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var u=n(58);function d(e,t){return g.apply(this,arguments)}function g(){return(g=o()(r.a.mark((function e(t,n){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.c.invalidateCacheGroup(c.a,"site","notifications"),e.next=3,Object(u.c)("site_notifications",n,t);case 3:return e.next=5,c.c.set(c.a,"site","mark-notification",{notificationID:t,notificationState:n});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return(p=o()(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,"accepted");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return(h=o()(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t,"dismissed");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AuthError}));n(1);var a=n(0),r=n(7),i=n.n(r),o=n(23),c=n(38),l=i.a.useSelect;function AuthError(){var t=l((function(e){return e(o.d).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(3))},function(e,t,n){"use strict";(function(e){n(1);var a=n(0),r=n(38);t.a=function DashboardPermissionAlert(){return e.createElement(r.a,{id:"permission error",title:Object(a.__)("Permissions issue accessing data","google-site-kit"),description:Object(a.__)("This account does not have access to the requested data.","google-site-kit"),handleDismiss:function(){},format:"small",type:"win-error",isDismissable:!0})}}).call(this,n(3))},,,function(e,t,n){"use strict";(function(e){n(1);var a=n(0),r=n(97),i=n(163),o=n(99);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(3))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(115);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(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(2),m=n.n(p),h=n(13),b=n.n(h),v=n(26);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:b()("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}(f.a);_.propTypes={title:m.a.string,ctaLabel:m.a.string,ctaLink:m.a.string},_.defaultProps={title:"",ctaLabel:"",ctaLink:""},t.a=_}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(2),m=n.n(p),h=n(72);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}(f.a);v.propTypes={ctaLabel:m.a.string,ctaLink:m.a.string},t.a=v}).call(this,n(3))},function(e,t,n){"use strict";var a=n(3);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";n.d(t,"a",(function(){return r}));var a=n(249),r=function(e){var t=new URL(e);return Object(a.parse)(t.hostname).domain}},function(e,t,n){"use strict";(function(e){var a=n(1),r=n(7),i=n.n(r),o=n(37),c=n(39),l=n(23),s=i.a.useSelect,u=i.a.useDispatch;t.a=function DateRangeSelector(){var t=Object.values(Object(c.a)()),n=s((function(e){return e(l.d).getDateRange()})),r=u(l.d).setDateRange,i=Object(a.k)((function(e,t){r(t.dataset.value)}),[t]);return e.createElement(o.n,{enhanced:!0,className:"mdc-select--minimal",name:"time_period",label:"",onEnhancedChange:i,value:n},t.map((function(t){var n=t.slug,a=t.label;return e.createElement(o.l,{key:n,value:n},a)})))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(20),i=n.n(r),o=n(1),c=n(0),l=n(7),s=n.n(l),u=n(4),d=n(109),g=n(44),f=n(172),p=n(113),m=n(24),h=n(23),b=s.a.useSelect;t.a=function UserMenu(){var t=b((function(e){return e(m.c).getProxyPermissionsURL()})),n=b((function(e){return e(h.d).getEmail()})),r=b((function(e){return e(h.d).getPicture()})),l=b((function(e){return e(m.c).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})})),s=Object(o.r)(!1),v=i()(s,2),y=v[0],_=v[1],k=Object(o.r)(!1),O=i()(k,2),E=O[0],j=O[1],S=Object(o.q)(),D=Object(o.q)();Object(o.m)((function(){var t=function(e){("keyup"!==e.type||27!==e.keyCode)&&"mouseup"!==e.type||S.current.buttonRef.current.contains(e.target)||D.current.menuRef.current.contains(e.target)||j(!1)},n=function(e){27===e.keyCode&&(_(!1),j(!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 w=Object(o.k)((function(){j(!E)}),[E]),A=Object(o.k)((function(){_(!y),j(!1)}),[y]),R=Object(o.k)((function(n,a){if("keydown"===a.type&&(13===a.keyCode||32===a.keyCode)||"click"===a.type)switch(n){case 0:A();break;case 1:t&&e.location.assign(t);break;default:w()}}),[t,w,A]),N=Object(o.k)((function(){_(!1),Object(u.c)(),e.location.assign(l)}),[l]);return n?a.createElement(o.b,null,a.createElement("div",{className:"googlesitekit-dropdown-menu mdc-menu-surface--anchor"},a.createElement(g.a,{ref:S,className:"googlesitekit-header__dropdown mdc-button--dropdown",text:!0,onClick:w,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":E,"aria-controls":"user-menu"},n),a.createElement(f.a,{ref:D,menuOpen:E,menuItems:[Object(c.__)("Disconnect","google-site-kit")].concat(t?[Object(c.__)("Manage sites…","google-site-kit")]:[]),onSelected:R,id:"user-menu"})),a.createElement(p.a,null,a.createElement(d.a,{dialogActive:y,handleConfirm:N,handleDialog:A,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(16),n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(2),m=n.n(p),h=n(37);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()(Menu,t);var n=b(Menu);function Menu(e){var t;return r()(this,Menu),(t=n.call(this,e)).menuRef=Object(f.h)(),t}return o()(Menu,[{key:"componentDidMount",value:function(){var e=this.props.menuOpen;this.menu=new h.h(this.menuRef.current),this.menu.open=e,this.menu.setDefaultFocusState(1)}},{key:"componentDidUpdate",value:function(e){var t=this.props.menuOpen;t!==e.menuOpen&&(this.menu.open=t)}},{key:"render",value:function(){var t=this.props,n=t.menuOpen,a=t.menuItems,r=t.onSelected,i=t.id;return e.createElement("div",{className:"mdc-menu mdc-menu-surface",ref:this.menuRef},e.createElement("ul",{id:i,className:"mdc-list",role:"menu","aria-hidden":!n,"aria-orientation":"vertical",tabIndex:"-1"},a.map((function(t,n){return e.createElement("li",{key:n,className:"mdc-list-item",role:"menuitem",onClick:r.bind(null,n),onKeyDown:r.bind(null,n)},e.createElement("span",{className:"mdc-list-item__text"},t))}))))}}]),Menu}(f.a);v.propTypes={menuOpen:m.a.bool.isRequired,menuItems:m.a.array.isRequired,id:m.a.string.isRequired},t.a=v}).call(this,n(3))},function(e,t,n){"use strict";var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(81);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 m=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}(n(1).a);t.a=Object(f.a)("googlesitekit.ErrorNotification")(m)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));n(1);var a=n(2),r=n.n(a),i=n(7),o=n.n(i),c=n(175),l=n(176),s=n(177),u=n(178);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(c.a,null,e.createElement(s.a,null,n,r&&e.createElement(u.a,{context:r,args:i})),e.createElement(l.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(3))},function(e,t,n){"use strict";(function(e,a){var r=n(9),i=n.n(r),o=n(10),c=n.n(o),l=n(35),s=n.n(l),u=n(11),d=n.n(u),g=n(12),f=n.n(g),p=n(6),m=n.n(p),h=n(1),b=n(244),v=n.n(b),y=n(2),_=n.n(y),k=n(0),O=n(285),E=n(286),j=n(287),S=n(38),D=n(26),w=n(44);function A(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 f()(this,n)}}var R=function(t){d()(ErrorHandler,t);var n=A(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;v()("`".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(O.a,{className:"mdc-button__icon",icon:i?E.a:j.a});return a.createElement(S.a,{id:"googlesitekit-error",title:Object(k.__)("Site Kit encountered an error","google-site-kit"),description:a.createElement(h.b,null,a.createElement(w.a,{trailingIcon:o,onClick:this.onErrorClick},Object(k.__)("Copy error to clipboard","google-site-kit")),a.createElement(D.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(k.__)("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}(h.a);R.propTypes={children:_.a.node.isRequired},t.a=R}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(5),i=n.n(r),o=n(15),c=n.n(o),l=n(1),s=n(0),u=n(7),d=n.n(u),g=n(23),f=n(109),p=n(113),m=n(105),h=d.a.useSelect,b=d.a.useDispatch,v=d.a.useRegistry;t.a=function PermissionsModal(){var t,n,r,o=v(),u=h((function(e){return e(g.d).getPermissionScopeError()})),d=h((function(t){var n;return t(g.d).getConnectURL({additionalScopes:null==u||null===(n=u.data)||void 0===n?void 0:n.scopes,redirectURL:e.location.href})})),y=b(g.d).clearPermissionScopeError,_=Object(l.k)((function(){y()}),[y]),k=Object(l.k)(c()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(m.c)(o);case 2:e.location.assign(d);case 3:case"end":return t.stop()}}),t)}))),[o,d]);return Object(l.m)((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,k();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[k,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(p.a,null,a.createElement(f.a,{title:Object(s.__)("Additional Permissions Required","google-site-kit"),subtitle:u.message,confirmButton:Object(s.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:k,handleDialog:_})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",u),null):null}}).call(this,n(16),n(3))},function(e,t,n){"use strict";var a=n(5),r=n.n(a),i=n(15),o=n.n(i),c=n(20),l=n.n(c),s=n(1),u=n(7),d=n.n(u),g=n(105),f=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=f(),a=Object(s.r)(!1),i=l()(a,2),c=i[0],u=i[1];return Object(s.m)((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(17),i=(n(19),n(7)),o=n.n(i),c=n(23),l=o.a.useSelect;function CollectModuleData(e){var t=e.context,n=e.args,i=l((function(e){return e(c.d).getDateRange()}));return Object(a.m)((function(){return function(){return Object(r.d)("googlesitekit.moduleDataReset")}}),[i]),Object(a.m)((function(){Object(r.d)("googlesitekit.moduleLoaded",t,n)}),[t,n,i]),null}},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(0),m=n(14),h=n(4),b=n(19),v=n(31),y=n(30),_=n(92),k=n(27);function O(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()(AdSensePerformanceWidget,t);var n=O(AdSensePerformanceWidget);function AdSensePerformanceWidget(e){var t;return r()(this,AdSensePerformanceWidget),(t=n.call(this,e)).state={currentRangeData:!1,prevRangeData:!1},t}return o()(AdSensePerformanceWidget,[{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,n,a=this.state,r=a.currentRangeData,i=a.prevRangeData,o=r.totals?[{className:"googlesitekit-data-block--page-rpm",title:Object(p.__)("Earnings","google-site-kit"),datapoint:Object(h.o)(r.totals[0],null===(t=r.headers[0])||void 0===t?void 0:t.currency),change:Object(m.isUndefined)(i.totals)?0:Object(h.b)(i.totals[0],r.totals[0]),changeDataUnit:"%"},{className:"googlesitekit-data-block--page-rpm",title:Object(p.__)("Page RPM","google-site-kit"),datapoint:Object(h.o)(r.totals[1],null===(n=r.headers[1])||void 0===n?void 0:n.currency),change:Object(m.isUndefined)(i.totals)?0:Object(h.b)(i.totals[1],r.totals[1]),changeDataUnit:"%"},{className:"googlesitekit-data-block--impression",title:Object(p.__)("Impressions","google-site-kit"),datapoint:Object(h.o)(r.totals[2]),change:Object(m.isUndefined)(i.totals)?0:Object(h.b)(i.totals[2],r.totals[2]),changeDataUnit:"%"},{className:"googlesitekit-data-block--impression",title:Object(p.__)("Page CTR","google-site-kit"),
/* translators: %s: percentage value. */
datapoint:Object(p.sprintf)(Object(p._x)(" %1$s%%","AdSense performance Page CTA percentage","google-site-kit"),Object(h.m)(100*r.totals[3],{maximumFractionDigits:2})),change:Object(m.isUndefined)(i.totals)?0:Object(h.b)(i.totals[3],r.totals[3]),changeDataUnit:"%"}]:[];return e.createElement("section",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},o.map((function(t,n){return e.createElement("div",{key:n,className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-top 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}))}))))}}]),AdSensePerformanceWidget}(f.a);t.a=Object(k.a)(E,[{type:b.b,identifier:"adsense",datapoint:"earnings",data:{metrics:["EARNINGS","PAGE_VIEWS_RPM","IMPRESSIONS","PAGE_VIEWS_CTR"]},priority:1,maxAge:Object(h.l)("day"),context:["Single","Dashboard"],toState:function(e,t){var n=t.data;if(!e.currentRangeData)return{currentRangeData:n}}},{type:b.b,identifier:"adsense",datapoint:"earnings",data:{dateRange:"prev-date-range-placeholder",metrics:["EARNINGS","PAGE_VIEWS_RPM","IMPRESSIONS","PAGE_VIEWS_CTR"]},priority:1,maxAge:Object(h.l)("day"),context:["Single","Dashboard"],toState:function(e,t){var n=t.data;if(!e.prevRangeData)return{prevRangeData:n}}}],e.createElement(y.a,{width:"100%",height:"250px"}),{createGrid:!0},_.a)}).call(this,n(3))},function(e,t,n){"use strict";var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(81);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 m=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}(n(1).a);t.a=Object(f.a)("googlesitekit.AnalyticsAdSenseTopPagesTable")(m)},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(0),m=n(92),h=n(28),b=n(27),v=n(19),y=n(30),_=n(4),k=n(62),O=n(31),E=n(61);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 S=function(t){l()(LegacyAdSenseDashboardMainSummary,t);var n=j(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(m.e)(r.rows),o=Object(_.k)("googlesitekit-module-adsense",{}),c=a.headers.find((function(e){return null!==e.currency&&0<e.currency.length})),l=!!c&&c.currency;return e.createElement(f.b,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(O.a,{className:"overview-adsense-rpm",title:Object(p.__)("RPM","google-site-kit"),datapoint:Object(_.o)(a.totals[1],l),source:{name:Object(p._x)("AdSense","Service name","google-site-kit"),link:o},sparkline:r&&e.createElement(E.a,{data:Object(k.a)(i.dataMap,2),change:1,loadSmall:!1}),context:"compact"})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(O.a,{className:"overview-adsense-earnings",title:Object(p.__)("Total Earnings","google-site-kit"),datapoint:Object(_.o)(a.totals[0],l),source:{name:Object(p._x)("AdSense","Service name","google-site-kit"),link:o},change:n.totals[0],changeDataUnit:l,sparkline:r&&e.createElement(E.a,{data:Object(k.a)(i.dataMap,1),change:1,loadSmall:!1}),context:"compact"})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(O.a,{className:"overview-adsense-impressions",title:Object(p.__)("Ad Impressions","google-site-kit"),datapoint:Object(_.o)(a.totals[2]),source:{name:Object(p._x)("AdSense","Service name","google-site-kit"),link:o},sparkline:r&&e.createElement(E.a,{data:Object(k.a)(i.dataMap,3),change:1,loadSmall:!1}),context:"compact"})))))))}}]),LegacyAdSenseDashboardMainSummary}(f.a);t.a=Object(b.a)(S,[{type:v.b,identifier:"adsense",datapoint:"earnings",data:{dateRange:"today"},priority:1,maxAge:Object(_.l)("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(_.l)("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:{dateRange:"this-month",dimensions:["DATE"]},priority:1,maxAge:Object(_.l)("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},m.a)}).call(this,n(3))},function(e,t,n){"use strict";var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(81);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 m=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}(n(1).a);t.a=Object(f.a)("googlesitekit.AnalyticsAdSenseTopPagesTableSmall")(m)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var a=n(5),r=n.n(a),i=n(8),o=n.n(i),c=n(15),l=n.n(c),s=n(19);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}var g=function(){var t=l()(r.a.mark((function t(){var n,a,i,o,c,l;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.c.get(s.a,"user","authentication",{timestamp:Date.now()});case 3:n=t.sent,a=n.authenticated,i=n.requiredScopes,o=n.grantedScopes,c=n.unsatisfiedScopes,l=void 0===c?[]:c,e._googlesitekitLegacyData.setup=d(d({},e._googlesitekitLegacyData.setup||{}),{},{isAuthenticated:a,requiredScopes:i,grantedScopes:o,unsatisfiedScopes:l,needReauthenticate:0<l.length}),t.next=14;break;case 12:t.prev=12,t.t0=t.catch(0);case 14:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(16))},function(e,t,n){"use strict";t.a="images/rocket.png"},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(35),l=n.n(c),s=n(11),u=n.n(s),d=n(12),g=n.n(d),f=n(6),p=n.n(f),m=n(1),h=n(13),b=n.n(h),v=n(81),y=n(0),_=n(7),k=n.n(_),O=n(102),E=n(179),j=n(110),S=n(180),D=n(55),w=n(74),A=n(51),R=n(95),N=n(4),x=n(77),C=n(78),L=n(96),P=n(111),T=n(28),M=n(23),I=n(39);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=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return g()(this,n)}}var W=k.a.withSelect,z=Object(v.a)("googlesitekit.AdSenseDashboardZeroData")((function(){return null})),q=function(t){u()(AdSenseDashboardWidget,t);var n=U(AdSenseDashboardWidget);function AdSenseDashboardWidget(e){var t;return r()(this,AdSenseDashboardWidget),(t=n.call(this,e)).state={receivingData:!0,error:!1,zeroData:!1,loading:!0},t.handleDataError=t.handleDataError.bind(l()(t)),t.handleDataSuccess=t.handleDataSuccess.bind(l()(t)),t.handleZeroData=t.handleZeroData.bind(l()(t)),t}return o()(AdSenseDashboardWidget,[{key:"handleDataError",value:function(e,t){this.setState({receivingData:!1,error:e,errorObj:t,loading:!1})}},{key:"handleDataSuccess",value:function(){this.setState({receivingData:!0,error:!1,loading:!1,zeroData:!1})}},{key:"handleZeroData",value:function(){this.setState({zeroData:!0,loading:!1})}},{key:"render",value:function(){var t,n,a=this,r=Object(N.h)(),i=this.state,o=i.receivingData,c=i.error,l=i.errorObj,s=i.loading,u=i.zeroData,d=this.props.dateRange,g=r.adsense.homepage,f=s||!o||u?"googlesitekit-nodata":"",p=Object(I.b)(d);return!c&&r.adsense.setupComplete?(t="connected",n=Object(y.sprintf)(
/* translators: %s: module name. */
Object(y.__)("%s is connected","google-site-kit"),Object(y._x)("AdSense","Service name","google-site-kit"))):(t="not-connected",n=Object(y.sprintf)(
/* translators: %s: module name. */
Object(y.__)("%s is not connected","google-site-kit"),Object(y._x)("AdSense","Service name","google-site-kit"))),e.createElement(m.b,null,e.createElement(C.a,null),e.createElement("div",{className:f},e.createElement(j.a,{module:"adsense"})),e.createElement("div",{className:"googlesitekit-module-page googlesitekit-module-page--adsense"},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(L.a,{title:Object(y._x)("AdSense","Service name","google-site-kit"),icon:e.createElement(O.a,{className:"googlesitekit-page-header__icon",height:"33",width:"33"}),status:t,statusText:n},e.createElement(P.a,null)),s&&e.createElement(A.a,null)),u&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(T.a,{fill:!0},e.createElement(z,null))),!o&&(c?Object(w.a)("adsense",c,!0,!0,!0,l):Object(D.a)(Object(y._x)("AdSense","Service name","google-site-kit"),!0,!0,!0)),e.createElement("div",{className:b()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",f)},e.createElement(R.a,{slug:"adsense",context:"module-dashboard"})),e.createElement("div",{className:b()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",f)},e.createElement(T.a,{header:!0,title:Object(y.sprintf)(
/* translators: %s: number of days */
Object(y._n)("Performance over the last %s day","Performance over the last %s days",p,"google-site-kit"),p),headerCTALabel:Object(y.__)("See full stats in AdSense","google-site-kit"),headerCTALink:g},e.createElement(E.a,{handleDataError:function(e){e?a.handleDataError():a.handleZeroData()},handleDataSuccess:this.handleDataSuccess}))),e.createElement("div",{className:b()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",f)},e.createElement(S.a,null)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 mdc-layout-grid__cell--align-right "},e.createElement(x.a,null))))))}}]),AdSenseDashboardWidget}(m.a);t.a=W((function(e){return{dateRange:e(M.d).getDateRange()}}))(q)}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(0),m=n(59),h=n(182),b=n(181),v=n(95);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.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(m.a,{title:Object(p.__)("Earnings","google-site-kit"),description:Object(p.__)("How much you’re earning from your content through AdSense.","google-site-kit")}),e.createElement(v.a,{slug:"adsense",context:"module-sitekit-dashboard"})),e.createElement(b.a,null),e.createElement(h.a,null))}}]),LegacyDashboardEarnings}(f.a);t.a=_}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(20),r=n.n(a),i=n(1),o=n(101),c=n(0),l=n(52),s=n.n(l),u=n(188);t.a=function PostSearcherAutoSuggest(t){var n=t.setCanSubmit,a=t.setMatch,l=Object(i.r)(""),d=r()(l,2),g=d[0],f=d[1],p=Object(u.a)(g,200),m=Object(i.r)([]),h=r()(m,2),b=h[0],v=h[1],y=Object(c.__)("No results found","google-site-kit"),_=Object(i.k)((function(e){if(Array.isArray(b)&&e!==y){var t=b.find((function(t){return t.post_title===e}));t&&(n(!0),a(t))}else n(!1)}),[b,n,a]),k=Object(i.k)((function(e){n(!1),f(e.target.value)}),[n]);return Object(i.m)((function(){""!==p&&s.a.get("core","search","post-search",{query:encodeURIComponent(p)},{useCache:!1}).then(v).catch((function(){return v([])}))}),[p,v]),e.createElement(o.a,{className:"autocomplete__wrapper",onSelect:_},e.createElement(o.b,{id:"autocomplete",className:"autocomplete__input autocomplete__input--default",type:"text",onChange:k}),""!==p&&e.createElement(o.e,{portal:!1},e.createElement(o.c,{className:"autocomplete__menu autocomplete__menu--inline"},b.length>0?b.map((function(t){var n=t.ID,a=t.post_title;return e.createElement(o.d,{key:n,value:a,className:"autocomplete__option"})})):e.createElement(o.d,{value:y,className:"autocomplete__option"}))))}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(20),r=n.n(a),i=n(1);function o(e,t){var n=Object(i.r)(e),a=r()(n,2),o=a[0],c=a[1];return Object(i.m)((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(9),i=n.n(r),o=n(10),c=n.n(o),l=n(11),s=n.n(l),u=n(12),d=n.n(u),g=n(6),f=n.n(g),p=n(1),m=n(0),h=n(38);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(m.__)("Security Token Error","google-site-kit"),description:Object(m.__)("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(m.__)("Please reauthenticate your account","google-site-kit"),format:"small",type:"win-error"})}}]),InvalidCredentialsWarning}(p.a);t.a=v}).call(this,n(3),n(16))},,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AnalyticsDashboardWidget}));var a=n(20),r=n.n(a),i=n(1),o=n(13),c=n.n(o),l=n(0),s=n(7),u=n.n(s),d=n(107),g=n(78),f=n(199),p=n(200),m=n(201),h=n(144),b=n(28),v=n(96),y=n(111),_=n(114),k=n(110),O=n(51),E=n(55),j=n(74),S=n(77),D=n(39),w=n(23),A=n(18),R=u.a.useSelect;function AnalyticsDashboardWidget(){var t,n=Object(i.r)([0]),a=r()(n,2),o=a[0],s=a[1],u=Object(i.r)(!0),N=r()(u,2),x=N[0],C=N[1],L=Object(i.r)(!1),P=r()(L,2),T=P[0],M=P[1],I=Object(i.r)(),U=r()(I,2),W=U[0],z=U[1],q=Object(i.r)(!0),H=r()(q,2),F=H[0],G=H[1],B=R((function(e){return e(w.d).getDateRange()})),V=R((function(e){var t=e(A.h).getAccountID(),n=e(A.h).getProfileID(),a=e(A.h).getInternalWebPropertyID();return{topContentServiceURL:e(A.h).getServiceURL({path:"/report/content-pages/a".concat(t,"w").concat(a,"p").concat(n,"/")}),topAcquisitionServiceURL:e(A.h).getServiceURL({path:"/report/trafficsources-overview/a".concat(t,"w").concat(a,"p").concat(n,"/")}),visitorsOverview:e(A.h).getServiceURL({path:"/report/visitors-overview/a".concat(t,"w").concat(a,"p").concat(n,"/")})}})),K=V.topContentServiceURL,$=V.topAcquisitionServiceURL,Y=V.visitorsOverview,J={0:{color:(t={0:"#4285f4",1:"#27bcd4",2:"#1b9688",3:"#673ab7"})[o],targetAxisIndex:0},1:{color:t[o],targetAxisIndex:0,lineDashStyle:[3,3],lineWidth:1}},Q=!F&&x?"":"googlesitekit-nodata",Z=Object(D.b)(B);return e.createElement(i.b,null,e.createElement(g.a,null),e.createElement(k.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(v.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"))},e.createElement(y.a,null)),F&&e.createElement(O.a,null)),!x&&(T?Object(j.a)("analytics",T,!0,!0,!0,W):Object(E.a)(Object(l._x)("Analytics","Service name","google-site-kit"),!0,!0,!0)),e.createElement("div",{className:c()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",Q)},e.createElement(b.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",Z,"google-site-kit"),Z),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:Y},e.createElement(m.a,{selectedStats:o,handleStatSelection:function(e){s([e])},handleDataError:function(e,t){C(!1),G(!1),M(e),z(t)},handleDataSuccess:function(){C(!0),G(!1)}}),e.createElement(f.a,{selectedStats:o,series:J,vAxes:null,dateRangeSlug:B}))),e.createElement("div",{className:c()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",Q)},e.createElement(b.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",Z,"google-site-kit"),Z),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(p.a,null))),e.createElement("div",{className:c()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",Q)},e.createElement(b.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",Z,"google-site-kit"),Z),headerCTALink:$,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:$},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(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(3))},function(e,t,n){"use strict";(function(e,a){var r=n(9),i=n.n(r),o=n(10),c=n.n(o),l=n(35),s=n.n(l),u=n(11),d=n.n(u),g=n(12),f=n.n(g),p=n(6),m=n.n(p),h=n(1),b=n(0),v=n(4),y=n(65),_=n(27),k=n(19),O=n(21),E=n(30);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=m()(e);if(t){var r=m()(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=j(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(b.__)("Users Traffic Summary","google-site-kit")},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"},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(O.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,{selectedStats:n,data:o,options:c}))))}}]),AnalyticsDashboardWidgetSiteStats}(h.a);t.a=Object(_.a)(S,[{type:k.b,identifier:"analytics",datapoint:"report",data:O.s,priority:1,maxAge:Object(v.l)("day"),context:"Single"}],a.createElement(E.a,{width:"100%",height:"270px",padding:!0}),{createGrid:!0})}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e){var a=n(20),r=n.n(a),i=(n(1),n(13)),o=n.n(i),c=n(2),l=n.n(c),s=n(0),u=n(7),d=n.n(u),g=n(4),f=n(27),p=n(19),m=n(47),h=n(46),b=n(21),v=n(18),y=n(48),_=d.a.useSelect,k=function AnalyticsDashboardWidgetTopPagesTable(t){var n=_((function(e){return e(v.h).getAccountID()})),a=_((function(e){return e(v.h).getProfileID()})),i=_((function(e){return e(v.h).getInternalWebPropertyID()})),c=_((function(e){return e(v.h).getServiceURL({path:"/report/content-drilldown/a".concat(n,"w").concat(i,"p").concat(a,"/explorer-table.plotKeys=%5B%5D&_r.drilldown=analytics.pagePath")})})),l=t.data,u=t.colspan;if(!l||!l.length)return null;if(!Array.isArray(l[0].data.rows))return null;var d=[{title:Object(s.__)("Title","google-site-kit"),tooltip:Object(s.__)("Page Title","google-site-kit"),primary:!0},{title:Object(s.__)("Pageviews","google-site-kit"),tooltip:Object(s.__)("Pageviews","google-site-kit")},{title:Object(s.__)("Unique Pageviews","google-site-kit"),tooltip:Object(s.__)("Unique Pageviews","google-site-kit")},{title:Object(s.__)("Bounce Rate","google-site-kit"),tooltip:Object(s.__)("Bounce Rate","google-site-kit")}],f=[],p=l[0].data.rows.map((function(t,n){var a=Number(t.metrics[0].values[2]),i=r()(t.dimensions,2),o=i[0],l=i[1];return f[n]="".concat(c,":").concat(encodeURIComponent(l.replace(/\//g,"~2F"))),[o,Object(g.m)(t.metrics[0].values[0]),Object(g.m)(t.metrics[0].values[1]),e.createElement("div",{className:"googlesitekit-table__body-item-chart-wrap",key:"minichart-"+n},"".concat(a.toFixed(2),"%"))]})),h={hideHeader:!1,chartsEnabled:!1,links:f,hideColumns:{mobile:[2,3]}},b=Object(m.a)(p,d,h);return e.createElement("div",{className:o()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-".concat(u))},e.createElement(y.a,null,b))};k.propTypes={data:l.a.array,colspan:l.a.number},k.defaultProps={data:null,colspan:12},t.a=Object(f.a)(k,[{type:p.b,identifier:"analytics",datapoint:"report",data:Object(b.g)(),priority:1,maxAge:Object(g.l)("day"),context:["Single","Dashboard"]}],e.createElement(h.a,{padding:!0}),{createGrid:!0})}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(2),m=n.n(p),h=n(0),b=n(4),v=n(31),y=n(27),_=n(19),k=n(21),O=n(30);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 j=function(t){l()(AnalyticsDashboardWidgetOverview,t);var n=E(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(k.b)(i);if(!l)return null;var s=l.totalSessions,u=l.averageBounceRate,d=l.averageSessionDuration,g=l.totalSessionsChange,f=l.averageBounceRateChange,p=l.averageSessionDurationChange,m=Object(b.b)(c,o),y=[{className:"googlesitekit-data-block--users googlesitekit-data-block--button-1",title:Object(h.__)("Users","google-site-kit"),datapoint:Object(b.o)(o),change:m,changeDataUnit:"%",context:"button",selected:n.includes(0),handleStatSelection:a},{className:"googlesitekit-data-block--sessions googlesitekit-data-block--button-2",title:Object(h.__)("Sessions","google-site-kit"),datapoint:Object(b.o)(s),change:g,changeDataUnit:"%",context:"button",selected:n.includes(1),handleStatSelection:a},{className:"googlesitekit-data-block--bounce googlesitekit-data-block--button-3",title:Object(h.__)("Bounce Rate","google-site-kit"),datapoint:Number(u).toFixed(2),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(h.__)("Session Duration","google-site-kit"),datapoint:Object(b.n)(d),change:p,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}(f.a);j.propTypes={handleDataError:m.a.func.isRequired},t.a=Object(y.a)(j,[{type:_.b,identifier:"analytics",datapoint:"report",data:k.p,priority:1,maxAge:Object(b.l)("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:k.u,priority:1,maxAge:Object(b.l)("day"),context:["Single"],toState:function(e,t){var n=t.data;if(!1===e.totalUsers)return Object(k.r)(n)}}],e.createElement(O.a,{width:"100%",height:"190px",padding:!0}),{createGrid:!0},k.h,k.f)}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(34),i=n.n(r),o=n(9),c=n.n(o),l=n(10),s=n.n(l),u=n(11),d=n.n(u),g=n(12),f=n.n(g),p=n(6),m=n.n(p),h=n(1),b=n(203),v=n(98),y=n(4);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=m()(e);if(t){var r=m()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return f()(this,n)}}var k=function(t){d()(AnalyticsAdminbarWidget,t);var n=_(AnalyticsAdminbarWidget);function AnalyticsAdminbarWidget(){return c()(this,AnalyticsAdminbarWidget),n.apply(this,arguments)}return s()(AnalyticsAdminbarWidget,[{key:"render",value:function(){return"undefined"!==i()(e._googlesitekitLegacyData.permaLink)&&""===e._googlesitekitLegacyData.permaLink?null:Object(y.h)().analytics.active?a.createElement(b.a,null):a.createElement(h.b,null,a.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},a.createElement(v.a,null)))}}]),AnalyticsAdminbarWidget}(h.a);t.a=k}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(8),i=n.n(r),o=n(9),c=n.n(o),l=n(10),s=n.n(l),u=n(11),d=n.n(u),g=n(12),f=n.n(g),p=n(6),m=n.n(p),h=n(1),b=n(0),v=n(4),y=n(31),_=n(27),k=n(19),O=n(21),E=n(30);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 S(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){i()(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}function D(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 f()(this,n)}}var w=function(t){d()(AnalyticsAdminbarWidgetOverview,t);var n=D(AnalyticsAdminbarWidgetOverview);function AnalyticsAdminbarWidgetOverview(e){var t;return c()(this,AnalyticsAdminbarWidgetOverview),(t=n.call(this,e)).state={overview:!1,totalUsers:!1,previousTotalUsers:!1},t}return s()(AnalyticsAdminbarWidgetOverview,[{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.overview,a=t.totalUsers,r=t.previousTotalUsers;if(!n||!a)return null;var i=n.totalSessions,o=n.totalSessionsChange,c=Object(v.b)(r,a);return e.createElement(h.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(y.a,{className:"overview-total-users",title:Object(b.__)("Total Users","google-site-kit"),datapoint:Object(v.o)(a),change:c,changeDataUnit:"%"})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(y.a,{className:"overview-total-sessions",title:Object(b.__)("Total Sessions","google-site-kit"),datapoint:Object(v.o)(i),change:o,changeDataUnit:"%"})))}}]),AnalyticsAdminbarWidgetOverview}(h.a);t.a=Object(_.a)(w,[{type:k.b,identifier:"analytics",datapoint:"report",data:S(S({},O.p),{},{url:a._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(v.l)("day"),context:"Adminbar",toState:function(e,t){var n=t.data;if(!e.overview)return{overview:Object(O.b)(n)}}},{type:k.b,identifier:"analytics",datapoint:"report",data:S(S({},O.u),{},{url:a._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(v.l)("day"),context:"Adminbar",toState:function(e,t){var n=t.data;if(!1===e.totalUsers)return Object(O.r)(n)}}],e.createElement(h.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(E.a,{width:"auto",height:"59px"})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(E.a,{width:"auto",height:"59px"}))),{inGrid:!0},O.h,O.f)}).call(this,n(3),n(16))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(35),l=n.n(c),s=n(11),u=n.n(s),d=n(12),g=n.n(d),f=n(6),p=n.n(f),m=n(1),h=n(13),b=n.n(h),v=n(0),y=n(28),_=n(59),k=n(55),O=n(74),E=n(139),j=n(114),S=n(205),D=n(4);function w(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 g()(this,n)}}var A=function(t){u()(LegacyAnalyticsAllTraffic,t);var n=w(LegacyAnalyticsAllTraffic);function LegacyAnalyticsAllTraffic(e){var t;return r()(this,LegacyAnalyticsAllTraffic),(t=n.call(this,e)).state={receivingData:!0,error:!1},t.handleDataError=t.handleDataError.bind(l()(t)),t.handleDataSuccess=t.handleDataSuccess.bind(l()(t)),t}return o()(LegacyAnalyticsAllTraffic,[{key:"handleDataError",value:function(e,t){this.setState({receivingData:!1,error:e,errorObj:t})}},{key:"handleDataSuccess",value:function(){this.setState({receivingData:!0})}},{key:"getErrorDataComponent",value:function(){var e=Object(D.h)().analytics,t=e.active,n=e.setupComplete,a=this.state,r=a.error,i=a.errorObj,o=a.receivingData;return t&&!n?Object(E.a)("analytics",!0,!0,!0):o?null:r?Object(O.a)("analytics",r,!0,!0,!0,i):Object(k.a)(Object(v._x)("Analytics","Service name","google-site-kit"),!0,!0,!0)}},{key:"render",value:function(){var t=this.getErrorDataComponent();return e.createElement(m.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(_.a,{title:Object(v.__)("All Traffic","google-site-kit"),description:Object(v.__)("How people found your site.","google-site-kit")})),t,e.createElement("div",{className:b()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"googlesitekit-nodata":t})},e.createElement(y.a,{className:"googlesitekit-dashboard-all-traffic"},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-4-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement(j.a,{source:!0,handleDataError:this.handleDataError,handleDataSuccess:this.handleDataSuccess})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-8-desktop mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement(S.a,null)))))))}}]),LegacyAnalyticsAllTraffic}(m.a);t.a=A}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(0),m=n(4),h=n(27),b=n(19),v=n(47),y=n(140),_=n(46),k=n(21),O=n(48);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 j=function(t){l()(LegacyAnalyticsAllTrafficDashboardWidgetTopAcquisitionSources,t);var n=E(LegacyAnalyticsAllTrafficDashboardWidgetTopAcquisitionSources);function LegacyAnalyticsAllTrafficDashboardWidgetTopAcquisitionSources(){return r()(this,LegacyAnalyticsAllTrafficDashboardWidgetTopAcquisitionSources),n.apply(this,arguments)}return o()(LegacyAnalyticsAllTrafficDashboardWidgetTopAcquisitionSources,[{key:"render",value:function(){var t=this.props.data;if(!t||!t.length)return null;if(!Array.isArray(t[0].data.totals)||!t[0].data.totals.length)return null;if(!Array.isArray(t[0].data.rows)||!t[0].data.rows.length)return null;var n=[{title:Object(p.__)("Source","google-site-kit"),primary:!0},{title:Object(p.__)("Percent","google-site-kit")}],a=t[0].data.totals[0].values[1],r=t[0].data.rows.map((function(t,n){var r=t.metrics[0].values[1]/a*100;return[t.dimensions[0],e.createElement(f.b,{key:"minichart-"+n},e.createElement("div",{className:"googlesitekit-table__body-item-chart-wrap"},"".concat(r.toFixed(2),"%")," ",e.createElement(y.a,{percent:r.toFixed(1),index:n})))]})),i=Object(v.a)(r,n,{hideHeader:!0,chartsEnabled:!0});return e.createElement("div",{className:"googlesitekit-alltraffic-widget"},e.createElement(O.a,null,i))}}]),LegacyAnalyticsAllTrafficDashboardWidgetTopAcquisitionSources}(f.a);t.a=Object(h.a)(j,[{type:b.b,identifier:"analytics",datapoint:"report",data:k.t,priority:1,maxAge:Object(m.l)("day"),context:"Dashboard"}],e.createElement(_.a,{rows:3,rowHeight:50}))}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(8),i=n.n(r),o=n(20),c=n.n(o),l=n(1),s=n(14),u=n(0),d=n(4),g=n(62),f=n(21),p=n(90),m=n(7),h=n.n(m),b=n(31),v=n(27),y=n(19),_=n(61),k=n(49),O=n(30),E=n(24),j=n(18);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(l.r)(!1),o=c()(i,2),f=o[0],m=o[1],h=Object(l.r)(!1),v=c()(h,2),y=v[0],S=v[1],D=Object(l.r)(!1),A=c()(D,2),R=A[0],N=A[1],x=Object(l.r)(!1),C=c()(x,2),L=C[0],P=C[1],T=Object(l.r)(!1),M=c()(T,2),I=M[0],U=M[1];Object(l.m)((function(){if(n&&!n.error&&"function"==typeof r){var e=r({goals:f,overview:L,extractedAnalytics:I,totalUsers:y,previousTotalUsers:R},{data:n})||{},t=e.goals,a=e.overview,i=e.extractedAnalytics,o=e.totalUsers,c=e.previousTotalUsers;void 0!==t&&m(t),void 0!==a&&P(a),void 0!==i&&U(i),void 0!==o&&S(o),void 0!==c&&N(c)}}),[n,r,f,L,I,y,R,m,P,U,S,N]);var W=e._googlesitekitLegacyData.permaLink,z=w((function(e){return e(j.h).getAccountID()})),q=w((function(e){return e(j.h).getProfileID()})),H=w((function(e){return e(j.h).getInternalWebPropertyID()})),F=w((function(e){return e(E.c).getCurrentEntityURL()})),G="a".concat(z,"w").concat(H,"p").concat(q,"/"),B=w((function(e){return e(j.h).getServiceURL({path:Object(p.a)(F,"/report/visitors-overview/".concat(G))})})),V=w((function(e){return e(j.h).getServiceURL({path:Object(p.a)(F,"/report/conversions-goals-overview/".concat(G))})})),K="",$="",Y="",J="";L&&(K=L.goalCompletions,$=L.goalCompletionsChange,Y=L.averageBounceRate,J=L.averageBounceRateChange);var Q=Object(d.b)(R,y);return a.createElement(l.b,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(u.__)("Unique Visitors from Search","google-site-kit"),datapoint:Object(d.o)(y),change:Q,changeDataUnit:"%",source:{name:Object(u._x)("Analytics","Service name","google-site-kit"),link:B,external:!0},sparkline:I&&a.createElement(_.a,{data:Object(g.a)(I,1),change:Q})})),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 "},W&&a.createElement(b.a,{className:"overview-bounce-rate",title:Object(u.__)("Bounce Rate","google-site-kit"),datapoint:Number(Y).toFixed(2),datapointUnit:"%",change:J,changeDataUnit:"%",invertChangeColor:!0,source:{name:Object(u._x)("Analytics","Service name","google-site-kit"),link:B,external:!0},sparkline:I&&a.createElement(_.a,{data:Object(g.a)(I,2),change:J})}),!W&&f&&Object(s.isEmpty)(f.items)&&a.createElement(k.a,{title:Object(u.__)("Use goals to measure success.","google-site-kit"),description:Object(u.__)("Goals measure how well your site or app fulfills your target objectives.","google-site-kit"),ctaLink:"https://support.google.com/analytics/answer/1032415?hl=en#create_or_edit_goals",ctaLabel:Object(u.__)("Create a new goal","google-site-kit")}),!W&&f&&!Object(s.isEmpty)(f.items)&&a.createElement(b.a,{className:"overview-goals-completed",title:Object(u.__)("Goals Completed","google-site-kit"),datapoint:Object(d.o)(K),change:$,changeDataUnit:"%",source:{name:Object(u._x)("Analytics","Service name","google-site-kit"),link:V,external:!0},sparkline:I&&a.createElement(_.a,{data:Object(g.a)(I,3),change:$})}),!W&&!f&&a.createElement(O.a,{width:"100%",height:"202px"})))}),[{type:y.b,identifier:"analytics",datapoint:"report",data:D(D({},f.p),{},{url:e._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(d.l)("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.u),{},{url:e._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(d.l)("day"),context:"Dashboard",toState:function(e,t){var n=t.data;if(!1===e.totalUsers)return Object(f.r)(n)}},{type:y.b,identifier:"analytics",datapoint:"report",data:D(D({},f.s),{},{url:e._googlesitekitLegacyData.permaLink}),priority:1,maxAge:Object(d.l)("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.l)("hour"),context:"Dashboard",toState:function(e,t){var n=t.data;if(!e.goals)return{goals:n}}}],a.createElement(l.b,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(O.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(O.a,{width:"100%",height:"202px"}))),{inGrid:!0},(function(e,t){return"report"===t&&Object(f.h)(e)}),f.f)}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(0),m=n(4),h=n(21),b=n(208),v=n(31),y=n(55),_=n(27),k=n(19);function O(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()(WPAnalyticsDashboardWidgetOverview,t);var n=O(WPAnalyticsDashboardWidgetOverview);function WPAnalyticsDashboardWidgetOverview(e){var t;return r()(this,WPAnalyticsDashboardWidgetOverview),(t=n.call(this,e)).state={overview:!1,totalUsers:!1,previousTotalUsers:!1},t}return o()(WPAnalyticsDashboardWidgetOverview,[{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.overview,a=t.totalUsers,r=t.previousTotalUsers;if(!n||!a)return null;var i=n.averageSessionDuration,o=n.averageSessionDurationChange,c=Object(m.b)(r,a);return e.createElement(f.b,null,0===a?e.createElement("div",{className:"googlesitekit-wp-dashboard-stats__cta"},Object(y.a)(Object(p._x)("Analytics","Service name","google-site-kit"))):e.createElement(f.b,null,e.createElement(v.a,{className:"googlesitekit-wp-dashboard-stats__data-table overview-total-users",title:Object(p.__)("Total Unique Visitors","google-site-kit"),datapoint:Object(m.o)(a),change:c,changeDataUnit:"%"}),e.createElement(v.a,{className:"googlesitekit-wp-dashboard-stats__data-table overview-average-session-duration",title:Object(p.__)("Avg. Time on Page","google-site-kit"),datapoint:Object(m.n)(i),change:o,changeDataUnit:"%"})))}}]),WPAnalyticsDashboardWidgetOverview}(f.a);t.a=Object(_.a)(E,[{type:k.b,identifier:"analytics",datapoint:"report",data:h.p,priority:1,maxAge:Object(m.l)("day"),context:"WPDashboard",toState:function(e,t){var n=t.data;if(!e.overview)return{overview:Object(h.b)(n)}}},{type:k.b,identifier:"analytics",datapoint:"report",data:h.u,priority:1,maxAge:Object(m.l)("day"),context:"WPDashboard",toState:function(e,t){var n=t.data;if(!1===e.totalUsers)return Object(h.r)(n)}}],e.createElement(b.a,{width:"23%",height:"94px",count:2}),{},h.h,h.f)}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n(1);var a=n(2),r=n.n(a),i=n(30);function PreviewBlocks(t){for(var n=t.width,a=t.height,r=t.shape,o=t.count,c=[],l=0;l++<o;)c.push(e.createElement(i.a,{width:n,height:a,shape:r,key:l}));return c}PreviewBlocks.propTypes={width:r.a.string,height:r.a.string,shape:r.a.string,count:r.a.number},PreviewBlocks.defaultProps={width:"100px",height:"100px",shape:"square",count:1},t.a=PreviewBlocks}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AnalyticsDashboardDetailsWidgetTopAcquisitionSources}));var a=n(1),r=n(0),i=n(7),o=n.n(i),c=n(59),l=n(28),s=n(144),u=n(114),d=n(18),g=n(24),f=n(90),p=o.a.useSelect;function AnalyticsDashboardDetailsWidgetTopAcquisitionSources(){var t=p((function(e){var t=e(d.h).getAccountID(),n=e(d.h).getProfileID(),a=e(d.h).getInternalWebPropertyID(),r=e(g.c).getCurrentEntityURL();return e(d.h).getServiceURL({path:Object(f.a)(r,"/report/trafficsources-overview/a".concat(t,"w").concat(a,"p").concat(n,"/"))})}));return e.createElement(a.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(c.a,{title:Object(r.__)("All Traffic","google-site-kit"),description:Object(r.__)("How people found your page.","google-site-kit")})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(l.a,{className:"googlesitekit-analytics-acquisition-sources",footer:!0,footerCTALabel:Object(r._x)("Analytics","Service name","google-site-kit"),footerCTALink:t},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(u.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(s.a,null)))))))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(20),r=n.n(a),i=n(9),o=n.n(i),c=n(10),l=n.n(c),s=n(11),u=n.n(s),d=n(12),g=n.n(d),f=n(6),p=n.n(f),m=n(1),h=n(0),b=n(27),v=n(19),y=n(47),_=n(46),k=n(4),O=n(21),E=n(48);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=p()(e);if(t){var r=p()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return g()(this,n)}}var S=function(t){u()(WPAnalyticsDashboardWidgetTopPagesTable,t);var n=j(WPAnalyticsDashboardWidgetTopPagesTable);function WPAnalyticsDashboardWidgetTopPagesTable(){return o()(this,WPAnalyticsDashboardWidgetTopPagesTable),n.apply(this,arguments)}return l()(WPAnalyticsDashboardWidgetTopPagesTable,[{key:"render",value:function(){var t=this.props.data;if(Object(O.h)(t))return null;if(!t||!t.length)return null;if(!Array.isArray(t[0].data.rows))return null;var n=[],a=t[0].data.rows.map((function(e,t){var a=r()(e.dimensions,2),i=a[0],o=a[1];return n[t]=o.startsWith("/")?o:"/"+o,[i,Object(k.m)(e.metrics[0].values[0])]})),i=[{title:Object(h.__)("Title","google-site-kit"),tooltip:Object(h.__)("Page Title","google-site-kit"),primary:!0},{title:Object(h.__)("Pageviews","google-site-kit"),tooltip:Object(h.__)("Pageviews","google-site-kit")}],o={chartsEnabled:!0,links:n,cap:5,showURLs:!0,useAdminURLs:!0},c=Object(y.a)(a,i,o);return e.createElement("div",{className:"googlesitekit-search-console-widget"},e.createElement("h2",{className:"googlesitekit-search-console-widget__title"},Object(h.__)("Top content over the last 28 days","google-site-kit")),e.createElement(E.a,null,c))}}]),WPAnalyticsDashboardWidgetTopPagesTable}(m.a);t.a=Object(b.a)(S,[{type:v.b,identifier:"analytics",datapoint:"report",data:Object(O.g)(),priority:1,maxAge:Object(k.l)("day"),context:"WPDashboard"}],e.createElement(_.a,{rows:6}))}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n(1);var a=n(0),r=n(7),i=n.n(r),o=n(4),c=n(27),l=n(19),s=n(47),u=n(46),d=n(79),g=n(131),f=n(21),p=n(18),m=n(148),h=n(48),b=i.a.useSelect;t.a=Object(c.a)((function AnalyticsAdSenseDashboardWidgetTopPagesTable(t){var n=t.data,r=b((function(e){return e(p.h).getAccountID()})),i=b((function(e){return e(p.h).getProfileID()})),c=b((function(e){return e(p.h).getInternalWebPropertyID()})),l=b((function(e){return e(p.h).getServiceURL({path:"/report/content-pages/a".concat(r,"w").concat(c,"p").concat(i,"/explorer-table.plotKeys=[]&_r.drilldown=analytics.pagePath:~2F")})}));if(Object(f.h)(n))return null;if(!n||!n.length)return null;if(!Array.isArray(n[0].data.rows))return null;var u=[{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")}],d=n[0].data.rows.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.m)(e.metrics[0].values[2])]})),g={hideHeader:!1,chartsEnabled:!1,links:n[0].data.rows.map((function(e){var t=e.dimensions[1].replace(/\//g,"~2F");return encodeURI(l+t)}))},v=Object(s.a)(d,u,g);return e.createElement(m.a,null,e.createElement(h.a,null,v))}),[{type:l.b,identifier:"analytics",datapoint:"report",data:f.a,priority:1,maxAge:Object(o.l)("day"),context:"Single"}],e.createElement(m.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(m.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(3))},function(e,t,n){"use strict";(function(e){var a=n(20),r=n.n(a),i=(n(1),n(0)),o=n(7),c=n.n(o),l=n(4),s=n(21),u=n(27),d=n(19),g=n(47),f=n(46),p=n(28),m=n(18),h=n(48),b=c.a.useSelect,v=function RenderLayout(t){var n=t.children,a=b((function(e){var t=e(m.h).getAccountID(),n=e(m.h).getProfileID(),a=e(m.h).getInternalWebPropertyID();return e(m.h).getServiceURL({path:"/report/content-pages/a".concat(t,"w").concat(a,"p").concat(n)})}));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(p.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.m)(e.metrics[0].values[0])]})),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.l)("day"),context:["Single","Dashboard"]}],e.createElement(v,null,e.createElement(f.a,{padding:!0})),{inGrid:!0,createGrid:!0},s.h)}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(0),m=n(27),h=n(19),b=n(47),v=n(46),y=n(28),_=n(131),k=n(4),O=n(21),E=n(48);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 S=function(t){l()(LegacyAdSenseDashboardWidgetTopPagesTableSmall,t);var n=j(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(p.__)("Top Earning Pages","google-site-kit"),tooltip:Object(p.__)("Top Earning Pages","google-site-kit"),primary:!0},{title:Object(p.__)("Revenue","google-site-kit"),tooltip:Object(p.__)("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(E.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(p._x)("Analytics","Service name","google-site-kit"),footerCTALink:"http://analytics.google.com",fill:!0},t))}}]),LegacyAdSenseDashboardWidgetTopPagesTableSmall}(f.a);t.a=Object(m.a)(S,[{type:h.b,identifier:"analytics",datapoint:"report",data:O.a,priority:1,maxAge:Object(k.l)("day"),context:"Dashboard"}],S.renderLayout(e.createElement(v.a,{rows:5,padding:!0})),{inGrid:!0,createGrid:!0},O.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(3))},function(e,t,n){"use strict";(function(e,a){var r=n(20),i=n.n(r),o=n(1),c=n(13),l=n.n(c),s=n(0),u=n(7),d=n.n(u),g=n(44),f=n(28),p=n(57),m=n(24),h=n(187),b=d.a.useSelect;t.a=function PostSearcher(){var t=Object(o.r)(!1),n=i()(t,2),r=n[0],c=n[1],u=Object(o.r)({}),d=i()(u,2),v=d[0],y=d[1],_=b((function(e){return e(p.a).isModuleActive("analytics")})),k=b((function(e){return e(m.c).getAdminURL("googlesitekit-dashboard",{permaLink:null==v?void 0:v.permalink})})),O=Object(o.k)((function(){e.location.assign(k)}),[k]);return a.createElement("div",{className:l()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-12":_,"mdc-layout-grid__cell--span-4-tablet":!_,"mdc-layout-grid__cell--span-6-desktop":!_})},a.createElement(f.a,{title:Object(s.__)("Search for individual page or post information","google-site-kit"),header:!0},a.createElement("div",{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("div",{className:"googlesitekit-post-searcher"},a.createElement("label",{className:"googlesitekit-post-searcher__label",htmlFor:"autocomplete"},Object(s.__)("Title or URL","google-site-kit")),a.createElement(h.a,{setCanSubmit:c,setMatch:y}),a.createElement("div",{className:"googlesitekit-post-searcher__button-wrapper"},a.createElement(g.a,{onClick:O,className:"googlesitekit-post-searcher__button",disabled:!r},Object(s.__)("View Data","google-site-kit")))))))))}}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e){var a=n(8),r=n.n(a),i=n(20),o=n.n(i),c=n(1),l=n(13),s=n.n(l),u=n(0),d=n(7),g=n.n(d),f=n(108),p=n(78),m=n(216),h=n(145),b=n(217),v=n(96),y=n(111),_=n(28),k=n(110),O=n(51),E=n(55),j=n(74),S=n(77),D=n(39),w=n(43),A=n(23),R=n(24),N=n(4);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}var C=g.a.useSelect;t.a=function GoogleSitekitSearchConsoleDashboardWidget(){var t=Object(c.r)([0,1]),n=o()(t,2),a=n[0],i=n[1],l=Object(c.r)(!0),d=o()(l,2),g=d[0],L=d[1],P=Object(c.r)(!1),T=o()(P,2),M=T[0],I=T[1],U=Object(c.r)(),W=o()(U,2),z=W[0],q=W[1],H=Object(c.r)(!0),F=o()(H,2),G=F[0],B=F[1],V=C((function(e){return e(A.d).getDateRange()})),K=C((function(e){return e(w.a).getPropertyID()})),$=C((function(e){return e(w.a).isDomainProperty()})),Y=C((function(e){return Object(N.t)(e(R.c).getReferenceSiteURL())})),J={resource_id:K,num_of_days:Object(D.b)()};$&&Y&&(J.page="*".concat(Y));var Q,Z,X=C((function(e){return e(w.a).getServiceURL({path:"/performance/search-analytics",query:J})})),ee=(Q={0:"#4285f4",1:"#27bcd4",2:"#1b9688",3:"#673ab7"},a.map((function(e,t){return{color:Q[e],targetAxisIndex:t}}))),te=(Z={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),function(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}({title:Z[e]},t)}))),ne=!G&&g?"":"googlesitekit-nodata",ae=Object(D.b)(V);return e.createElement(c.b,null,e.createElement(p.a,null),e.createElement(k.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(v.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"))},e.createElement(y.a,null)),G&&e.createElement(O.a,null)),!g&&(M?Object(j.a)("search-console",M,!0,!0,!0,z):Object(E.a)(Object(u._x)("Search Console","Service name","google-site-kit"),!0,!0,!0)),e.createElement("div",{className:s()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",ne)},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",ae,"google-site-kit"),ae),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:X},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&&i(t)},handleDataError:function(e,t){L(!1),I(e),q(t),B(!1)},handleDataSuccess:function(){L(!0),B(!1)}}),e.createElement(m.a,{selectedStats:a,series:ee,vAxes:te}))),e.createElement("div",{className:s()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",ne)},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",ae,"google-site-kit"),ae),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:X,footerCTALabel:Object(u._x)("Search Console","Service name","google-site-kit"),footerCTALink:X},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(3))},function(e,t,n){"use strict";(function(e,a){var r=n(9),i=n.n(r),o=n(10),c=n.n(o),l=n(35),s=n.n(l),u=n(11),d=n.n(u),g=n(12),f=n.n(g),p=n(6),m=n.n(p),h=n(1),b=n(0),v=n(4),y=n(27),_=n(19),k=n(65),O=n(30),E=n(53);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=m()(e);if(t){var r=m()(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=j(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(b.__)("Search Traffic Summary","google-site-kit");i&&i.length&&(
/* translators: %s: page title */
o=Object(b.sprintf)(Object(b.__)("Search Traffic Summary for %s","google-site-kit"),Object(v.d)(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"},textStyle:{color:"#616161",fontSize:12},titleTextStyle:{color:"#616161",fontSize:12,italic:!1}}};return c.series=a,c.vAxes=r,3<=n.length&&(c.vAxis.textPosition="none",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(E.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(k.a,{selectedStats:n,data:i.dataMap,options:r,singleStat:!1}))))}}]),SearchConsoleDashboardWidgetSiteStats}(h.a);t.a=Object(y.a)(S,[{type:_.b,identifier:"search-console",datapoint:"searchanalytics",data:{dimensions:"date",compareDateRanges:!0},priority:1,maxAge:Object(v.l)("day"),context:"Single"}],a.createElement(O.a,{width:"100%",height:"270px",padding:!0}),{createGrid:!0})}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(0),m=n(4),h=n(31),b=n(27),v=n(19),y=n(30),_=n(53),k=n(2),O=n.n(k);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 j=function(t){l()(SearchConsoleDashboardWidgetOverview,t);var n=E(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,m=i.averagePositionChange,b=[{className:"googlesitekit-data-block--clicks googlesitekit-data-block--button-1",title:Object(p.__)("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(p.__)("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(p.__)("Average CTR","google-site-kit"),datapoint:l+"%",change:g,changeDataUnit:"%",context:"button",selected:a.includes(2),handleStatSelection:r},{className:"googlesitekit-data-block--position googlesitekit-data-block--button-4",title:Object(p.__)("Average Position","google-site-kit"),datapoint:s,change:m,changeDataUnit:"%",context:"button",selected:a.includes(3),handleStatSelection:r}];return e.createElement(f.b,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,change:t.change,changeDataUnit:t.changeDataUnit,context:t.context,selected:t.selected,handleStatSelection:t.handleStatSelection}))})))))}}]),SearchConsoleDashboardWidgetOverview}(f.a);j.propTypes={handleDataError:O.a.func.isRequired},t.a=Object(b.a)(j,[{type:v.b,identifier:"search-console",datapoint:"searchanalytics",data:{dimensions:"date",compareDateRanges:!0},priority:1,maxAge:Object(m.l)("day"),context:["Single","Dashboard"]}],e.createElement(y.a,{width:"100%",height:"190px",padding:!0}),{createGrid:!0},_.b)}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(34),i=n.n(r),o=n(9),c=n.n(o),l=n(10),s=n.n(l),u=n(11),d=n.n(u),g=n(12),f=n.n(g),p=n(6),m=n.n(p),h=n(1),b=n(219);function v(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 f()(this,n)}}var y=function(t){d()(GoogleSitekitSearchConsoleAdminbarWidget,t);var n=v(GoogleSitekitSearchConsoleAdminbarWidget);function GoogleSitekitSearchConsoleAdminbarWidget(){return c()(this,GoogleSitekitSearchConsoleAdminbarWidget),n.apply(this,arguments)}return s()(GoogleSitekitSearchConsoleAdminbarWidget,[{key:"render",value:function(){return"undefined"!==i()(e._googlesitekitLegacyData.permaLink)&&""===e._googlesitekitLegacyData.permaLink?null:a.createElement(b.a,null)}}]),GoogleSitekitSearchConsoleAdminbarWidget}(h.a);t.a=y}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(9),i=n.n(r),o=n(10),c=n.n(o),l=n(11),s=n.n(l),u=n(12),d=n.n(u),g=n(6),f=n.n(g),p=n(1),m=n(0),h=n(4),b=n(31),v=n(27),y=n(19),_=n(53),k=n(30);function O(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()(SearchConsoleAdminbarWidgetOverview,t);var n=O(SearchConsoleAdminbarWidgetOverview);function SearchConsoleAdminbarWidgetOverview(){return i()(this,SearchConsoleAdminbarWidgetOverview),n.apply(this,arguments)}return c()(SearchConsoleAdminbarWidgetOverview,[{key:"render",value:function(){var t=this.props.data;if(!t||t.error)return null;var n=Object(_.a)(t),a=n.totalClicks,r=n.totalImpressions,i=n.totalClicksChange,o=n.totalImpressionsChange;return e.createElement(p.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(b.a,{className:"overview-total-impressions",title:Object(m.__)("Total Impressions","google-site-kit"),datapoint:r,change:o,changeDataUnit:"%"})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(b.a,{className:"overview-total-clicks",title:Object(m.__)("Total Clicks","google-site-kit"),datapoint:a,change:i,changeDataUnit:"%"})))}}]),SearchConsoleAdminbarWidgetOverview}(p.a);t.a=Object(v.a)(E,[{type:y.b,identifier:"search-console",datapoint:"searchanalytics",data:{url:a._googlesitekitLegacyData.permaLink,dimensions:"date",compareDateRanges:!0},priority:1,maxAge:Object(h.l)("day"),context:"Adminbar"}],e.createElement(p.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(k.a,{width:"auto",height:"59px"})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-3-desktop "},e.createElement(k.a,{width:"auto",height:"59px"}))),{inGrid:!0},_.b)}).call(this,n(3),n(16))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(221);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=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()(WPSearchConsoleDashboardWidget,t);var n=m(WPSearchConsoleDashboardWidget);function WPSearchConsoleDashboardWidget(){return r()(this,WPSearchConsoleDashboardWidget),n.apply(this,arguments)}return o()(WPSearchConsoleDashboardWidget,[{key:"render",value:function(){return e.createElement(f.b,null,e.createElement(p.a,null))}}]),WPSearchConsoleDashboardWidget}(f.a);t.a=h}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(0),m=n(4),h=n(30),b=n(31),v=n(27),y=n(19),_=n(53),k=n(55);function O(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()(WPSearchConsoleDashboardWidgetOverview,t);var n=O(WPSearchConsoleDashboardWidgetOverview);function WPSearchConsoleDashboardWidgetOverview(){return r()(this,WPSearchConsoleDashboardWidgetOverview),n.apply(this,arguments)}return o()(WPSearchConsoleDashboardWidgetOverview,[{key:"render",value:function(){var t=this.props.data;if(!t||!t.length)return null;var n=Object(_.a)(t),a=n.totalClicks,r=n.totalImpressions,i=n.totalClicksChange,o=n.totalImpressionsChange;return e.createElement(f.b,null,t.length?e.createElement(f.b,null,e.createElement(b.a,{className:"googlesitekit-wp-dashboard-stats__data-table overview-total-impressions",title:Object(p.__)("Total Impressions","google-site-kit"),datapoint:r,change:o,changeDataUnit:"%"}),e.createElement(b.a,{className:"googlesitekit-wp-dashboard-stats__data-table overview-total-clicks",title:Object(p.__)("Total Clicks","google-site-kit"),datapoint:a,change:i,changeDataUnit:"%"})):e.createElement("div",{className:"googlesitekit-wp-dashboard-stats__cta"},Object(k.a)(Object(p._x)("Search Console","Service name","google-site-kit"))))}}]),WPSearchConsoleDashboardWidgetOverview}(f.a);t.a=Object(v.a)(E,[{type:y.b,identifier:"search-console",datapoint:"searchanalytics",data:{dimensions:"date",compareDateRanges:!0},priority:1,maxAge:Object(m.l)("day"),context:["WPDashboard"]}],e.createElement(h.a,{width:"23%",height:"94px",count:2}),{},_.b)}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(9),i=n.n(r),o=n(10),c=n.n(o),l=n(11),s=n.n(l),u=n(12),d=n.n(u),g=n(6),f=n.n(g),p=n(1),m=n(13),h=n.n(m),b=n(0),v=n(4),y=n(28),_=n(59),k=n(98),O=n(146);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=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 j=function(t){s()(LegacyDashboardSearchFunnel,t);var n=E(LegacyDashboardSearchFunnel);function LegacyDashboardSearchFunnel(){return i()(this,LegacyDashboardSearchFunnel),n.apply(this,arguments)}return c()(LegacyDashboardSearchFunnel,[{key:"render",value:function(){var t=Object(v.h)(),n=e._googlesitekitLegacyData.permissions.canManageOptions,r=t.analytics.active||n?12:6;return a.createElement(p.b,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:h()("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(O.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(k.a,null)))))))}}]),LegacyDashboardSearchFunnel}(p.a);t.a=j}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(1),i=n(0),o=n(7),c=n.n(o),l=n(31),s=n(27),u=n(19),d=n(53),g=n(61),f=n(30),p=n(4),m=n(62),h=n(49),b=n(24),v=n(23),y=n(43),_=n(39),k=n(55),O=c.a.useSelect;t.a=Object(s.a)((function LegacySearchConsoleDashboardWidgetTopLevel(t){var n=t.data,a=n.error,o=O((function(e){return e(b.c).getCurrentEntityURL()})),c=O((function(e){return e(y.a).getPropertyID()})),s=O((function(e){return e(v.d).getDateRange()})),u=O((function(e){return e(y.a).isDomainProperty()})),f=O((function(e){return Object(p.t)(e(b.c).getReferenceSiteURL())})),E={resource_id:c,num_of_days:Object(_.b)(s)};o?E.page="!".concat(o):u&&f&&(E.page="*".concat(f));var j=O((function(e){return e(y.a).getServiceURL({path:"/performance/search-analytics",query:E})}));if(a)return Object(p.s)("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(h.a,{title:Object(i.__)("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(i._x)("Search Console","Service name","google-site-kit")));var S=Object(d.a)(n),D=S.totalClicks,w=S.totalImpressions,A=S.totalClicksChange,R=S.totalImpressionsChange,N=S.dataMap;return e.createElement(r.b,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(l.a,{className:"overview-total-impressions",title:Object(i.__)("Impressions","google-site-kit"),datapoint:w,change:R,changeDataUnit:"%",source:{name:Object(i._x)("Search Console","Service name","google-site-kit"),link:j,external:!0},sparkline:e.createElement(g.a,{data:Object(m.a)(N,2),change:R})})),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(l.a,{className:"overview-total-clicks",title:Object(i.__)("Clicks","google-site-kit"),datapoint:D,change:A,changeDataUnit:"%",source:{name:Object(i._x)("Search Console","Service name","google-site-kit"),link:j,external:!0},sparkline:e.createElement(g.a,{data:Object(m.a)(N,1),change:A})})))}),[{type:u.b,identifier:"search-console",datapoint:"searchanalytics",data:{url:a._googlesitekitLegacyData.permaLink,dimensions:"date",compareDateRanges:!0},priority:1,maxAge:Object(p.l)("day"),context:["Single","Dashboard"]}],e.createElement(r.b,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(f.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(f.a,{width:"100%",height:"202px"}))),{inGrid:!0},d.b)}).call(this,n(3),n(16))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n(0),i=n(7),o=n.n(i),c=n(145),l=n(59),s=n(28),u=n(43),d=n(24),g=n(39),f=n(4),p=o.a.useSelect;t.a=function DashboardDetailsWidgetKeywordsTable(){var t=p((function(e){return e(u.a).getPropertyID()})),n=p((function(e){return e(d.c).getCurrentEntityURL()})),i={resource_id:t,num_of_days:Object(g.b)()},o=p((function(e){return e(u.a).isDomainProperty()})),m=p((function(e){return Object(f.t)(e(d.c).getReferenceSiteURL())}));n?i.page="!".concat(n):o&&m&&(i.page="*".concat(m));var h=p((function(e){return e(u.a).getServiceURL({path:"/performance/search-analytics",query:i})}));return e.createElement(a.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(l.a,{title:Object(r.__)("Top Queries","google-site-kit"),description:Object(r.__)("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(s.a,{footer:!0,footerCTALabel:Object(r._x)("Search Console","Service name","google-site-kit"),footerCTALink:h},e.createElement(c.a,null))))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n(1);var a=n(0),r=n(56),i=n(7),o=n.n(i),c=n(4),l=n(27),s=n(19),u=n(47),d=n(46),g=n(28),f=n(53),p=n(39),m=n(43),h=n(24),b=n(48),v=o.a.useSelect;t.a=Object(l.a)((function LegacyDashboardWidgetPopularKeywordsTable(t){var n=t.data,i=v((function(e){return e(m.a).getPropertyID()})),o=v((function(e){return e(m.a).isDomainProperty()})),l=v((function(e){return Object(c.t)(e(h.c).getReferenceSiteURL())})),s={resource_id:i,num_of_days:Object(p.b)()};o&&l&&(s.page="*".concat(l));var d=v((function(e){return e(m.a).getServiceURL({path:"/performance/search-analytics",query:s})}));if(!n||!n.length)return null;var f=[{title:Object(a.__)("Top search queries for your site","google-site-kit"),tooltip:Object(a.__)("Most searched for keywords related to your content","google-site-kit"),primary:!0},{title:Object(a.__)("Clicks","google-site-kit"),tooltip:Object(a.__)("Number of times users clicked on your content in search results","google-site-kit")},{title:Object(a.__)("Impressions","google-site-kit"),tooltip:Object(a.__)("Counted each time your content appears in search results","google-site-kit")}],y=[],_=n.map((function(e,t){var n=e.keys[0];return y[t]=Object(r.a)(d,{query:"!".concat(n)}),[n,Object(c.m)(e.clicks),Object(c.m)(e.impressions)]})),k={hideHeader:!1,chartsEnabled:!1,links:y},O=Object(u.a)(_,f,k);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(g.a,{className:"googlesitekit-popular-content",footer:!0,footerCTALabel:Object(a._x)("Search Console","Service name","google-site-kit"),footerCTALink:d,fill:!0},e.createElement(b.a,null,O)))}),[{type:s.b,identifier:"search-console",datapoint:"searchanalytics",data:{dimensions:"query",limit:10},priority:1,maxAge:Object(c.l)("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(g.a,{className:"googlesitekit-popular-content",fill:!0},e.createElement(d.a,{padding:!0}))),{inGrid:!0,createGrid:!0},f.b)}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(0),m=n(28),h=n(146),b=n(4),v=n(98),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 k=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.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(y.a,{description:Object(p.__)("How your site appeared in Search results and how many visitors you got from Search.","google-site-kit"),title:Object(p.__)("Search Funnel","google-site-kit")})),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},e.createElement(m.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.h)().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,null)))))))}}]),DashboardDetailsSearchFunnel}(f.a);t.a=k}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(0),m=n(228),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.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(h.a,{title:Object(p.__)("Popularity","google-site-kit"),description:Object(p.__)("Your most popular pages and how people found them from Search.","google-site-kit")})),e.createElement(m.a,null))}}]),LegacyDashboardPopularity}(f.a);t.a=v}).call(this,n(3))},function(e,t,n){"use strict";var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(81);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 m=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}(n(1).a);t.a=Object(f.a)("googlesitekit.DashboardPopularity")(m)},function(e,t,n){"use strict";(function(e){var a=n(5),r=n.n(a),i=n(15),o=n.n(i),c=n(9),l=n.n(c),s=n(10),u=n.n(s),d=n(11),g=n.n(d),f=n(12),p=n.n(f),m=n(6),h=n.n(m),b=n(1),v=n(0),y=n(149),_=n(38);function k(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 p()(this,n)}}var O=function(t){g()(DashboardCoreSiteAlerts,t);var n,a=k(DashboardCoreSiteAlerts);function DashboardCoreSiteAlerts(e){var t;return l()(this,DashboardCoreSiteAlerts),(t=a.call(this,e)).state={notifications:!1},t}return u()(DashboardCoreSiteAlerts,[{key:"componentDidMount",value:(n=o()(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(y.c)();case 3:t=e.sent,this.setState({notifications:t}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.warn("Error caught while fetching notifications",e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.notifications;return Array.isArray(t)?t.map((function(t){return e.createElement(_.a,{key:t.id,id:t.id,title:t.title||"",description:t.content||"",learnMoreURL:t.learnMoreURL||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",dismiss:t.dismissLabel||Object(v.__)("OK, Got it!","google-site-kit"),isDismissable:t.dismissible,onCTAClick: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(y.a)(t.id);case 2:case"end":return e.stop()}}),e)}))),onDismiss: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(y.b)(t.id);case 2:case"end":return e.stop()}}),e)})))})})):null}}]),DashboardCoreSiteAlerts}(b.a);t.a=O}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(9),i=n.n(r),o=n(10),c=n.n(o),l=n(11),s=n.n(l),u=n(12),d=n.n(u),g=n(6),f=n.n(g),p=n(1),m=n(0),h=n(17),b=n(4),v=n(38),y=n(231),_=n(184);function k(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 O=function(t){s()(DashboardSetupAlerts,t);var n=k(DashboardSetupAlerts);function DashboardSetupAlerts(){return i()(this,DashboardSetupAlerts),n.apply(this,arguments)}return c()(DashboardSetupAlerts,[{key:"render",value:function(){var t=Object(b.i)("notification");if(!t||""===t)return null;var n={id:"connected-successfully",setupTitle:Object(m.__)("Site Kit","google-site-kit"),description:Object(m.__)("Now you’ll be able to see how your site is doing in search. To get even more detailed stats, activate more modules. Here are our recommendations for what to include in your Site Kit:","google-site-kit"),learnMore:{label:"",url:"",description:""}},r=e._googlesitekitLegacyData.permissions.canManageOptions;switch(t){case"authentication_success":if(!r)return null;var i=Object(b.h)(),o=Object(b.i)("slug");return o&&i[o]&&!i[o].active?null:(o&&i[o]&&(n.id="".concat(n.id,"-").concat(o),n.setupTitle=i[o].name,n.description=Object(m.__)("Here are some other services you can connect to see even more stats:","google-site-kit"),n=Object(h.c)("googlesitekit.SetupWinNotification-".concat(o),n)),a.createElement(p.b,null,a.createElement(v.a,{id:n.id
/* translators: %s: the name of a module that setup was completed for */,title:Object(m.sprintf)(Object(m.__)("Congrats on completing the setup for %s!","google-site-kit"),n.setupTitle),description:n.description,handleDismiss:function(){},winImage:e._googlesitekitLegacyData.admin.assetsRoot+_.a,dismiss:Object(m.__)("OK, Got it!","google-site-kit"),format:"large",type:"win-success",learnMoreLabel:n.learnMore.label,learnMoreDescription:n.learnMore.description,learnMoreURL:n.learnMore.url,anchorLink:"pagespeed-insights"===o?"#googlesitekit-pagespeed-header":"",anchorLinkLabel:"pagespeed-insights"===o?Object(m.__)("Jump to the bottom of the dashboard to see how fast your home page is.","google-site-kit"):""},a.createElement(y.a,{moduleSlugs:["search-console","adsense","analytics","pagespeed-insights"]}))));case"authentication_failure":return a.createElement(p.b,null,a.createElement(v.a,{id:"connection error",title:Object(m.__)("There was a problem connecting to Google!","google-site-kit"),description:"",handleDismiss:function(){},format:"small",type:"win-error"}))}}}]),DashboardSetupAlerts}(p.a);t.a=O}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(8),i=n.n(r),o=n(5),c=n.n(o),l=n(15),s=n.n(l),u=n(9),d=n.n(u),g=n(10),f=n.n(g),p=n(35),m=n.n(p),h=n(11),b=n.n(h),v=n(12),y=n.n(v),_=n(6),k=n.n(_),O=n(1),E=n(14),j=n(13),S=n.n(j),D=n(0),w=n(4),A=n(183),R=n(26),N=n(19),x=n(106),C=n(117),L=n(95),P=n(99);function T(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 M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(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=k()(e);if(t){var r=k()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return y()(this,n)}}var U=function(t){b()(ModulesList,t);var n,r=I(ModulesList);function ModulesList(e){var t;return d()(this,ModulesList),(t=r.call(this,e)).setupModuleClick=t.setupModuleClick.bind(m()(t)),t}return f()(ModulesList,[{key:"setupModuleClick",value:(n=s()(c.a.mark((function t(n){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.setState({isSaving:!0}),t.next=4,Object(w.a)(N.c,n,!0);case 4:return t.next=6,Object(A.a)();case 6:e.location=Object(w.j)(n,!0),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),Object(w.q)(C.a,{id:"setup-module-error",title:Object(D.__)("Internal Server Error","google-site-kit"),description:t.t0.message,format:"small",type:"win-error"}),this.setState({isSaving:!1});case 13:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(e){return n.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.props.moduleSlugs,n=Object(w.h)(),r=Array.isArray(t)&&t.length?t.filter((function(e){return n.hasOwnProperty(e)})).reduce((function(e,t){return M(M({},e),{},i()({},t,n[t]))}),{}):n,o=Object.values(r).filter((function(e){return!e.internal})),c=o.filter((function(e){return e.active&&e.setupComplete})).reduce((function(e,t){return e[t.slug]=t.name,e}),{}),l=o.filter((function(e){return 0===e.required.length})).sort((function(e,t){return e.sort-t.sort}));return a.createElement("div",{className:"googlesitekit-modules-list"},Object(E.map)(l,(function(t){var n=!1,r="",i=t.slug,o=t.name,l=t.setupComplete,s=t.required;return 0<s.length&&s.forEach((function(e){c[e]&&(n=!0,r=c[e])})),a.createElement("div",{key:i,className:S()("googlesitekit-modules-list__module","googlesitekit-modules-list__module--".concat(i),{"googlesitekit-modules-list__module--disabled":n})},a.createElement("div",{className:"googlesitekit-settings-connect-module__wrapper"},a.createElement("div",{className:"googlesitekit-settings-connect-module__logo"},a.createElement(x.a,{slug:i})),a.createElement("h3",{className:"googlesitekit-settings-connect-module__title"},o)),a.createElement(L.a,{slug:i,context:"modules-list"}),l&&a.createElement("span",{className:"googlesitekit-settings-module__status"},a.createElement("span",{className:"googlesitekit-settings-module__status-icon googlesitekit-settings-module__status-icon--connected"},a.createElement(P.a,null,Object(D.__)("Connected","google-site-kit"))),Object(D.__)("Connected","google-site-kit")),!l&&!n&&a.createElement(R.a,{arrow:!0,small:!0,inherit:!0,onClick:function(){e.setupModuleClick(i)}}," ",Object(D.__)("Connect Service","google-site-kit")),!l&&n&&a.createElement(R.a,{disabled:!0,small:!0,inherit:!0},
/* translators: %s: parent module name */
Object(D.sprintf)(Object(D.__)("Enable %s to start setup","google-site-kit"),r)))})))}}]),ModulesList}(O.a);t.a=U}).call(this,n(16),n(3))},function(e,t,n){"use strict";(function(e,a){var r=n(9),i=n.n(r),o=n(10),c=n.n(o),l=n(11),s=n.n(l),u=n(12),d=n.n(u),g=n(6),f=n.n(g),p=n(1),m=n(14),h=n(0),b=n(4),v=n(38),y=n(94);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=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 k=function(t){s()(DashboardModulesAlerts,t);var n=_(DashboardModulesAlerts);function DashboardModulesAlerts(e){var t;return i()(this,DashboardModulesAlerts),(t=n.call(this,e)).state={data:!1},t}return c()(DashboardModulesAlerts,[{key:"componentDidMount",value:function(){var e=this,t=Object(y.f)();t&&Object(y.b)(t).then((function(t){e.setState({data:t.results})}))}},{key:"render",value:function(){var t=this.state.data;if(0===Object.keys(t).length)return null;var n=Object(b.h)(),r=[];return Object.keys(t).forEach((function(i){Object(m.each)(t[i],(function(t){r.push(e.createElement(v.a,{key:t.id,id:t.id,title:t.title||"",description:t.description||"",blockData:t.blockData||[],winImage:t.winImage?"".concat(a._googlesitekitLegacyData.admin.assetsRoot,"images/").concat(t.winImage):"",format:t.format||"small",learnMoreURL:t.learnMoreURL||"",learnMoreDescription:t.learnMoreDescription||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",type:t.severity||"",dismiss:t.dismiss||Object(h.__)("OK, Got it!","google-site-kit"),isDismissable:t.isDismissable||!0,logo:t.logo||!0,module:i,moduleName:n[i].name,pageIndex:t.pageIndex||"",dismissExpires:t.dismissExpires||0,showOnce:t.showOnce||!1}))}))})),e.createElement(p.b,null,r)}}]),DashboardModulesAlerts}(p.a);t.a=k}).call(this,n(3),n(16))},function(e,t,n){"use strict";var a=n(5),r=n.n(a),i=n(15),o=n.n(i),c=n(9),l=n.n(c),s=n(10),u=n.n(s),d=n(14),g=n(19),f=function(){function WinsWithData(e){l()(this,WinsWithData),this.wins=e,this.response=[]}var e;return u()(WinsWithData,[{key:"get",value:(e=o()(r.a.mark((function e(){var t,n=this;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(d.filter)(this.wins.map((function(e){return!!e.withData&&(e.withData.callback=function(t){n.response[e.identifier]=t},e.withData)}))),e.next=3,g.c.combinedGetFromCache(t);case 3:return e.abrupt("return",this.response);case 4:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]),WinsWithData}();t.a=f},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(14),m=n(0),h=n(17),b=n(38),v=n(94);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()(DashboardWinsAlerts,t);var n=y(DashboardWinsAlerts);function DashboardWinsAlerts(e){var t;return r()(this,DashboardWinsAlerts),(t=n.call(this,e)).state={data:!1},t}return o()(DashboardWinsAlerts,[{key:"componentDidMount",value:function(){var e=this;Object(h.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetWinsNotifications",(function(){Object(h.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetWinsNotifications");var t=Object(v.g)();t&&Object(v.d)(t).then((function(t){e.setState({data:t.results})}))}))}},{key:"render",value:function(){var t=this.state.data;if(0===Object.keys(t).length)return null;var n=[];return Object.keys(t).forEach((function(a){Object(p.each)(t[a],(function(t){n.push(e.createElement(b.a,{key:t.id,id:t.id,title:t.title||"",description:t.description||"",blockData:t.blockData||[],winImage:t.winImage||"",format:t.format||"small",learnMoreURL:t.learnMoreURL||"",learnMoreDescription:t.learnMoreDescription||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaLink||"",ctaLabel:t.ctaLabel||"",type:t.severity||"",dismiss:t.dismiss||Object(m.__)("OK, Got it!","google-site-kit"),isDismissable:t.isDismissable||!0,logo:t.logo||!1,pageIndex:t.pageIndex||"",dismissExpires:t.dismissExpires||0,showOnce:t.showOnce||!1}))}))})),e.createElement(f.b,null,n)}}]),DashboardWinsAlerts}(f.a);t.a=_}).call(this,n(3))},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e,t){n(1);var a=n(25),r=n(4),i=n(185),o=n(186),c=n(17),l="adsense";Object(c.b)("googlesitekit.SetupModuleShowLink","googlesitekit.adsenseSetupModuleShowLink",(function(t,n){return!("adsense"===n&&!e._googlesitekitLegacyData.canAdsRun)&&t}));var s=Object(r.h)();if(s.adsense.active){var u=Object(a.a)(t.createElement(i.a,null)),d=Object(a.a)(t.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=e._googlesitekitLegacyData.admin,f=g.reAuth,p=g.currentScreen,m=p?p.id:null;f||"site-kit_page_googlesitekit-module-adsense"!==m||(e.location=Object(r.k)("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(16),n(3))},function(e,t,n){"use strict";(function(e,t){n(1);var a=n(17),r=n(4),i=n(25),o=n(198),c=n(202),l=n(204),s=n(206),u=n(207),d=n(209),g=n(210),f=n(211),p=n(212),m=n(213),h="analytics",b=Object(i.a)(e.createElement(c.a,null));Object(a.b)("googlesitekit.AdminbarModules","googlesitekit.Analytics",b,11);var v=Object(r.h)();if(!v[h].setupComplete){var y=t._googlesitekitLegacyData.admin,_=y.reAuth,k=y.currentScreen,O=k?k.id:null;_||"site-kit_page_googlesitekit-module-analytics"!==O||(t.location=Object(r.k)("googlesitekit-module-".concat(h),{reAuth:!0,slug:h}))}if(v.analytics.active){var E=Object(i.a)(e.createElement(o.a,null)),j=Object(i.a)(e.createElement(l.a,null)),S=Object(i.a)(e.createElement(u.a,null)),D=Object(i.a)(e.createElement(g.a,null)),w=Object(i.a)(e.createElement(s.a,null)),A=Object(i.a)(e.createElement(d.a,null)),R=Object(i.a)(e.createElement(f.a,null)),N=Object(i.a)(e.createElement(p.a,null)),x=Object(i.a)(e.createElement(m.a,null));Object(a.b)("googlesitekit.DashboardModule","googlesitekit.Analytics",j,9),Object(a.b)("googlesitekit.DashboardSearchFunnel","googlesitekit.Analytics",w,11),Object(a.b)("googlesitekit.DashboardPopularity","googlesitekit.Analytics",N,20),Object(a.b)("googlesitekit.AnalyticsAdSenseTopPagesTableSmall","googlesitekit.Analytics",x,20),Object(a.b)("googlesitekit.DashboardDetailsModule","googlesitekit.Analytics",A,20),Object(a.b)("googlesitekit.WPDashboardHeader","googlesitekit.Analytics",S),Object(a.b)("googlesitekit.WPDashboardModule","googlesitekit.Analytics",D),v[h].setupComplete&&Object(a.b)("googlesitekit.ModuleApp-"+h,"googlesitekit.Analytics",E),Object(a.b)("googlesitekit.AnalyticsAdSenseTopPagesTable","googlesitekit.Analytics",R,11),Object(a.b)("googlesitekit.showDateRangeSelector-".concat(h),"googlesitekit.analyticsShowDateRangeSelector",(function(){return!0}))}}).call(this,n(3),n(16))},function(e,t,n){"use strict";(function(e){n(1);var t=n(17),a=n(25),r=n(214),i=n(215),o=n(218),c=n(220),l=n(222),s=n(223),u=n(224),d=n(225),g=n(226),f=n(227),p="search-console",m=Object(a.a)(e.createElement(i.a,null)),h=Object(a.a)(e.createElement(o.a,null)),b=Object(a.a)(e.createElement(c.a,null)),v=Object(a.a)(e.createElement(l.a,null)),y=Object(a.a)(e.createElement(s.a,null)),_=Object(a.a)(e.createElement(g.a,null)),k=Object(a.a)(e.createElement(u.a,null)),O=Object(a.a)(e.createElement(d.a,null)),E=Object(a.a)(e.createElement(f.a,null)),j=Object(a.a)(e.createElement(r.a,null));Object(t.b)("googlesitekit.DashboardModule","googlesitekit.SearchConsole",v,11),Object(t.b)("googlesitekit.DashboardModule","googlesitekit.DashboardPopularityModule",E,40),Object(t.b)("googlesitekit.DashboardSearchFunnel","googlesitekit.SearchConsoleSearchFunnel",y),Object(t.b)("googlesitekit.DashboardDetailsModule","googlesitekit.SearchConsole",_),Object(t.b)("googlesitekit.DashboardDetailsModule","googlesitekit.SearchConsole",k,40),Object(t.b)("googlesitekit.DashboardPopularity","googlesitekit.SearchConsoleDashboardPopularity",O),Object(t.b)("googlesitekit.DashboardPopularity","googlesitekit.DashboardPPostSearcherModule",j,30),Object(t.b)("googlesitekit.WPDashboardHeader","googlesitekit.SearchConsole",b,11),Object(t.b)("googlesitekit.ModuleApp-"+p,"googlesitekit.ModuleApp",m),Object(t.b)("googlesitekit.showDateRangeSelector-".concat(p),"googlesitekit.searchConsoleShowDateRangeSelector",(function(){return!0})),Object(t.b)("googlesitekit.AdminbarModules","googlesitekit.SearchConsole",h)}).call(this,n(3))},function(e,t,n){"use strict";(function(e,t){n(1);var a=n(17),r=n(25),i=n(4),o=n(229),c=n(230),l=n(232),s=n(234),u=n(116),d=e._googlesitekitLegacyData.setup,g=Object(i.i)("notification"),f=Object(r.a)(t.createElement(o.a,null)),p=Object(r.a)(t.createElement(c.a,null)),m=Object(r.a)(t.createElement(l.a,null)),h=Object(r.a)(t.createElement(s.a,null)),b=Object(r.a)(t.createElement(u.a,null));Object(a.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",f,10),d.needReauthenticate&&Object(a.b)("googlesitekit.ErrorNotification","googlesitekit.AuthNotification",b,1),"authentication_success"===g||"authentication_failure"===g?Object(a.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",p,1):d.isAuthenticated&&d.isVerified&&(Object(a.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",m,1),Object(a.b)("googlesitekit.DashboardNotifications","googlesitekit.WinsNotification",h,1))}).call(this,n(16),n(3))},function(e,t,n){"use strict";n(261),n(262);var a=n(17),r=n(0),i=n(4);Object(i.h)().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(263)},,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n(1);var a=n(13),r=n.n(a),i=n(2),o=n.n(i),c=function Widget(t){var n=t.children,a=t.className,i=t.slug,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,slug:o.a.string.isRequired,noPadding:o.a.bool,header:o.a.elementType,footer:o.a.elementType},t.a=c}).call(this,n(3))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetAreaRenderer}));n(1);var a=n(13),r=n.n(a),i=n(2),o=n.n(i),c=n(7),l=n.n(c),s=n(84),u=n(327),d=n(332),g=n(37),f=l.a.useSelect;function WidgetAreaRenderer(t){var n=t.slug,a=f((function(e){return{widgetArea:e(s.a).getWidgetArea(n),widgets:e(s.a).getWidgets(n)}})),i=a.widgets,o=a.widgetArea,c=i.filter((function(e){var t=i.some((function(t){return t.slug===e.slug})),n="function"==typeof e.component,a=e.component.prototype.render?new e.component({}).render():e.component({});return t&&n&&Boolean(a)}));if(0===c.length)return null;var l=Object(d.a)(c),p=c.map((function(t,n){return e.createElement(u.a,{gridClassName:null!==l[n]?r()(l[n]):"googlesitekit-widget-area--hidden",key:t.slug,slug:t.slug})}));return e.createElement(g.b,{className:"googlesitekit-widget-area googlesitekit-widget-area--".concat(o.slug," googlesitekit-widget-area--").concat(o.style)},e.createElement(g.m,null,e.createElement(g.a,{className:"googlesitekit-widget-area-header",size:12},e.createElement("img",{alt:"",src:o.icon}),o.title&&e.createElement("h3",{className:"googlesitekit-widget-area-header__title googlesitekit-heading-3"},o.title),o.subtitle&&e.createElement("h4",{className:"googlesitekit-widget-area-header__subtitle"},o.subtitle))),e.createElement("div",{className:"googlesitekit-widget-area-widgets"},e.createElement(g.m,null,o.style===s.b.BOXES&&p,o.style===s.b.COMPOSITE&&e.createElement(g.a,{size:12},e.createElement(g.b,null,e.createElement(g.m,null,p))))))}WidgetAreaRenderer.propTypes={slug:o.a.string.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n(1);var a=n(2),r=n.n(a),i=n(7),o=n.n(i),c=n(84),l=n(277),s=o.a.useSelect,u=function WidgetRenderer(t){var n=t.slug,a=t.gridClassName,r=s((function(e){return e(c.a).getWidget(n)}));if(!r)return null;var i=r.component,o=r.wrapWidget,u=e.createElement(i,null);return o&&(u=e.createElement(l.a,{slug:n},u)),a&&(u=e.createElement("div",{className:a},u)),u};u.propTypes={slug:r.a.string.isRequired,gridClassName:r.a.string},t.a=u}).call(this,n(3))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a,r,i=n(20),o=n.n(i),c=n(50),l=n.n(c),s=n(8),u=n.n(s),d=n(84),g=(a={},u()(a,d.c.QUARTER,3),u()(a,d.c.HALF,6),u()(a,d.c.FULL,12),a),f=(r={},u()(r,d.c.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"]),u()(r,d.c.HALF,["mdc-layout-grid__cell","mdc-layout-grid__cell--span-6-desktop","mdc-layout-grid__cell--span-8-tablet"]),u()(r,d.c.FULL,["mdc-layout-grid__cell","mdc-layout-grid__cell--span-12"]),r);function p(e,t){if(9!==t)return[e,t];for(var n=(e=l()(e)).length-1;0!==t&&n>=0;)if(e[n]&&Array.isArray(e[n])){var a=l()(e[n]);a.includes("mdc-layout-grid__cell--span-3-desktop")&&(a[a.indexOf("mdc-layout-grid__cell--span-3-desktop")]="mdc-layout-grid__cell--span-4-desktop",t-=3),a.includes("mdc-layout-grid__cell--span-6-desktop")&&(a[a.indexOf("mdc-layout-grid__cell--span-6-desktop")]="mdc-layout-grid__cell--span-8-desktop",t-=6),e[n]=a,n--}else n--;return[e,t]}function m(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map((function(t){return{counter:e+g[t],width:t}}))}function h(e){var t=0,n=[].fill(null,0,e.length),a=function(e,t){return e.counter-t.counter},r=function(e,t){var n=e.counter;return t.counter-n},i=function(e){return e.counter<=12};if(e.forEach((function(c,l){var s=m(t,c);l+1!==e.length&&0!==m(s.sort(a)[0].counter,e[l+1]).filter(i).length||s.some(i)&&(s=(s=s.sort(r)).filter(i));var u=s[0].width;if((t+=g[u])%12==0&&(t=0),t>12){if(9===(t-=g[u])){var d=p(n,t),h=o()(d,2);n=h[0],t=h[1]}t=g[u]}n[l]=f[u]})),9===t){var c=p(n,t),l=o()(c,2);n=l[0],t=l[1]}return n}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardDetailsEntityHeaderContainer}));n(1);var a=n(2),r=n.n(a),i=n(28);function DashboardDetailsEntityHeaderContainer(t){var n=t.children;return e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},e.createElement(i.a,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-12"},n)))))}DashboardDetailsEntityHeaderContainer.propTypes={children:r.a.node.isRequired}}).call(this,n(3))},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n(1);var t=n(2),a=n.n(t),r=n(7),i=n.n(r),o=n(326),c=n(84),l=i.a.useSelect,s=function WidgetContextRenderer(t){var n=t.slug,a=l((function(e){return e(c.a).getWidgetAreas(n)}));return e.createElement("div",{className:"googlesitekit-widget-context"},a.map((function(t){return e.createElement(o.a,{slug:t.slug,key:t.slug})})))};s.propTypes={slug:a.a.string.isRequired}}).call(this,n(3))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardDetailsApp}));var a=n(1),r=n(0),i=n(7),o=n.n(i),c=n(78),l=n(26),s=n(96),u=n(77),d=n(577),g=n(580),f=n(24),p=o.a.useSelect;function DashboardDetailsApp(){var t=p((function(e){return e(f.c).getAdminURL("googlesitekit-dashboard")})),n=p((function(e){return e(f.c).getCurrentEntityURL()}));return t?e.createElement(a.b,null,e.createElement(c.a,null),e.createElement("div",{className:"googlesitekit-module-page"},e.createElement("div",{className:"googlesitekit-dashboard-single-url"},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-2-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-8-desktop "},e.createElement(l.a,{href:t,inherit:!0,back:!0,small:!0},Object(r.__)("Back to the Site Kit Dashboard","google-site-kit")),e.createElement(s.a,{title:Object(r.__)("Detailed Page Stats","google-site-kit"),className:" googlesitekit-heading-2 googlesitekit-dashboard-single-url__heading ",fullWidth:!0})),n&&e.createElement(d.a,null),!n&&e.createElement(g.a,null),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 mdc-layout-grid__cell--align-right "},e.createElement(u.a,null))))))):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardDetailsEntityView}));var a=n(1),r=n(7),i=n.n(r),o=n(4),c=n(26),l=(n(411),n(170)),s=n(578),u=n(383),d=n(24),g=i.a.useSelect;function DashboardDetailsEntityView(){var t=g((function(e){return e(d.c).getCurrentEntityURL()})),n=g((function(e){return e(d.c).getCurrentEntityTitle()}));return e.createElement(a.b,null,e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-4-desktop mdc-layout-grid__cell--align-right mdc-layout-grid__cell--align-bottom "},e.createElement(l.a,null)),e.createElement(u.a,null,e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-single-url__title "},Object(o.d)(n)),e.createElement(c.a,{href:t,inherit:!0,external:!0},t)),!1,e.createElement(s.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(1),p=n(579);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=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()(DashboardDetailsModules,t);var n=m(DashboardDetailsModules);function DashboardDetailsModules(){return r()(this,DashboardDetailsModules),n.apply(this,arguments)}return o()(DashboardDetailsModules,[{key:"render",value:function(){return e.createElement(p.a,{key:"googlesitekit-dashboard-details-module"})}}]),DashboardDetailsModules}(f.a);t.a=h}).call(this,n(3))},function(e,t,n){"use strict";var a=n(9),r=n.n(a),i=n(10),o=n.n(i),c=n(11),l=n.n(c),s=n(12),u=n.n(s),d=n(6),g=n.n(d),f=n(81);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 m=function(e){l()(DashboardDetailsModule,e);var t=p(DashboardDetailsModule);function DashboardDetailsModule(){return r()(this,DashboardDetailsModule),t.apply(this,arguments)}return o()(DashboardDetailsModule,[{key:"render",value:function(){return null}}]),DashboardDetailsModule}(n(1).a);t.a=Object(f.a)("googlesitekit.DashboardDetailsModule")(m)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardDetailsEntityNotFoundView}));n(1);var a=n(0),r=n(7),i=n.n(r),o=n(4),c=n(383),l=n(24),s=i.a.useSelect;function DashboardDetailsEntityNotFoundView(){var t=s((function(e){return e(l.c).getPermaLinkParam()})),n=Object(a.sprintf)(
/* translators: %s: current entity URL */
Object(a.__)("It looks like the URL %s is not part of this site, therefore there is no data available to display.","google-site-kit"),"<strong>".concat(t,"</strong>"));return e.createElement(c.a,null,e.createElement("p",{dangerouslySetInnerHTML:Object(o.p)(n,{ALLOWED_TAGS:["strong"],ALLOWED_ATTR:[]})}))}}).call(this,n(3))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(1),a=(n(265),n(154)),r=(n(264),n(576)),i=n(174);Object(a.a)((function(){var n=document.getElementById("js-googlesitekit-dashboard-details");n&&Object(t.j)(e.createElement(i.a,{dataAPIContext:"Dashboard"},e.createElement(r.a,null)),n)}))}.call(this,n(3))}]);