(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[4],{10:function(e,t){e.exports=googlesitekit.components},100:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnd}));varr=n(6),a=n.n(r),i=n(14),o=n(101),c=n(102);functions(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionl(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a()(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))}))}returne}varu={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};functiond(t){varn=arguments.length>1&&void0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void0!==arguments[2]?arguments[2]:e,a=l(l({},u),t);a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,""));vars=Object(o.a)(a,n),d=Object(c.a)(a,n,s,r),g={},f=function(){for(vare=arguments.length,t=newArray(e),n=0;n<e;n++)t[n]=arguments[n];varr=JSON.stringify(t);g[r]||(g[r]=Object(i.once)(d)),g[r].apply(g,t)};return{enableTracking:function(){a.trackingEnabled=!0},disableTracking:function(){a.trackingEnabled=!1},initializeSnippet:s,isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:d,trackEventOnce:f}}}).call(this,n(28))},101:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returno}));varr=n(59),a=n(39),i=n(57);functiono(t,n){varo,c=Object(r.a)(n),s=t.activeModules,l=t.referenceSiteURL,u=t.userIDHash,d=t.userRoles,g=void0===d?[]:d,f=t.isAuthenticated,p=t.pluginVersion;returnfunction(){varn=e.document;if(void0===o&&(o=!!n.querySelector("script[".concat(a.b,"]"))),!o){o=!0;varr=(null==g?void0:g.length)?g.join(","):"";c("js",newDate),c("config",t.trackingID,{groups:"site_kit",send_page_view:t.isSiteKitScreen,domain:l,plugin_version:p||"",enabled_features:Array.from(i.a).join(","),active_modules:s.join(","),authenticated:f?"1":"0",user_properties:{user_roles:r,user_identifier:u}});vard=n.createElement("script");returnd.setAttribute(a.b,""),d.async=!0,d.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(d),{scriptTagSrc:"https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a)}}}}}).call(this,n(28))},102:function(e,t,n){"use strict";n.d(t,"a",(function(){returng}));varr=n(5),a=n.n(r),i=n(6),o=n.n(i),c=n(16),s=n.n(c),l=n(59);functionu(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functiond(e){for(vart=1;t<arguments.length;t++){varn=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))}))}returne}functiong(e,t,n,r){vari=Object(l.a)(t);returnfunction(){vart=s()(a.a.mark((functiont(o,c,s,l){varu;returna.a.wrap((function(t){for(;;)switch(t.prev=t.next){case0:if(e.trackingEnabled){t.next=3;break}returnt.abrupt("return");case3:returnn(),u={send_to:"site_kit",event_category:o,event_label:s,value:l},t.abrupt("return",newPromise((function(e){vart,n,a=setTimeout((function(){r.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),e()}),1e3),s=function(){clearTimeout(a),e()};i("event",c,d(d({},u),{},{event_callback:s})),(null===(t=r._gaUserPrefs)||void0===t||null===(n=t.ioo)||void0===n?void0:n.call(t))&&s()})));case6:case"end":returnt.stop()}}),t)})));returnfunction(e
Object(l.__)("<strong>Note:</strong> %s","google-site-kit"),S),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",tertiary:!0,onClick:f,disabled:T},Object(l.__)("Cancel","google-site-kit")),x?e.createElement(u.Button,{href:x,onClick:E,target:"_blank",danger:N},_):e.createElement(u.SpinnerButton,{onClick:E,danger:N,disabled:T,isSaving:T},_||Object(l.__)("Disconnect","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:a.a.string,dialogActive:a.a.bool,handleDialog:a.a.func,handleConfirm:a.a.func.isRequired,onOpen:a.a.func,onClose:a.a.func,title:a.a.string,confirmButton:a.a.string,danger:a.a.bool,small:a.a.bool,medium:a.a.bool,buttonLink:a.a.string},t.a=ModalDialog}).call(this,n(4))},1104:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnAdminBarApp}));varr=n(5),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n(2),l=n(3),u=n(20),d=n(17),g=n(13),f=n(7),p=n(9),m=n(1105),b=n(18);functionAdminBarApp(){vart=Object(b.a)(),n=Object(l.useSelect)((function(e){returne(g.c).getCurrentEntityURL()})),r=Object(l.useSelect)((function(e){returne(g.c).getCurrentEntityTitle()})),i=Object(l.useSelect)((function(e){returne(g.c).getAdminURL("googlesitekit-dashboard",{permaLink:n})})),v=Object(l.useSelect)((function(e){returne(f.a).getDateRangeNumberOfDays()})),h=Object(c.useCallback)(o()(a.a.mark((functione(){returna.a.wrap((function(e){for(;;)switch(e.prev=e.next){case0:returne.next=2,Object(p.I)(t,"open_urldetails");case2:document.location.assign(i);case3:case"end":returne.stop()}}),e)}))),[i,t]);returni&&n?e.createElement(c.Fragment,null,e.createElement(d.e,null,e.createElement(d.k,null,e.createElement(d.a,{alignMiddle:!0,size:3},e.createElement("div",{className:"googlesitekit-adminbar__subtitle"},Object(s.__)("Stats for","google-site-kit")),e.createElement("div",{className:"googlesitekit-adminbar__title"},r?Object(p.l)(r):n,e.createElement("p",{className:"googlesitekit-adminbar__title--date-range"},Object(s.sprintf)(/* translators: %s: number of days */
Object(s._n)("over the last %s day","over the last %s days",v,"google-site-kit"),v)))),e.createElement(d.a,{alignMiddle:!0,mdSize:8,lgSize:7},e.createElement(m.a,null)),e.createElement(d.a,{alignMiddle:!0,size:2},e.createElement(u.a,{className:"googlesitekit-adminbar__link",href:"#",onClick:h},Object(s.__)("More details","google-site-kit"))))),e.createElement(u.a,{className:"googlesitekit-adminbar__link googlesitekit-adminbar__link--mobile",href:"#",onClick:h},Object(s.__)("More details","google-site-kit"))):null}}).call(this,n(4))},1105:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnAdminBarWidgets}));varr=n(0),a=n(3),i=n(1106),o=n(1107),c=n(1108),s=n(1109),l=n(1110),u=n(19),d=n(7),g=n(17),f=n(245),p=Object(f.c)("adminBarImpressions")(i.a),m=Object(f.c)("adminBarClicks")(o.a),b=Object(f.c)("adminBarUniqueVisitors")(c.a),v=Object(f.c)("adminBarSessions")(s.a);functionAdminBarWidgets(){vart=Object(a.useSelect)((function(e){returne(u.a).isModuleAvailable("analytics-4")})),n=Object(a.useSelect)((function(e){returne(u.a).isModuleConnected("analytics-4")})),i=Object(a.useSelect)((function(e){returne(u.a).isModuleActive("analytics-4")})),o=Object(a.useSelect)((function(e){returne(d.a).hasAccessToShareableModule("analytics-4")})),c=Object(a.useSelect)((function(e){returne(d.a).hasAccessToShareableModule("search-console")})),s=o?{lg:3,md:2}:{lg:6,md:4},f=c?{lg:3,md:2}:{lg:6,md:4};returne.createElement(r.Fragment,null,e.createElement(g.k,null,c&&e.createElement(r.Fragment,null,e.createElement(g.a,{lgSize:s.lg,mdSize:s.md},e.createElement(p,null)),e.createElement(g.a,{lgSize:s.lg,mdSize:s.md},e.createElement(m,null))),n&&i&&o&&e.createElement(r.Fragment,null,e.createElement(r.Fragment,null,e.createElement(g.a,{lgSize:f.lg,mdSize:f.md},e.createElement(b,null)),e.createElement(g.a,{lgSize:f.lg,mdSize:f.md},e.createElement(v,null)))),t&&(!n||!i)&&e.createElement(g.a,{lgSize:6,mdSize:4},e.createElement(l.a,null))))}}).call(this,n(4))},1106:function(e,t,n){"use strict";(function(e){varr=n(21),a=n.n(r),i=n(2),o=n(3),c=n(239),s=n(44),l=n(114),u=n(7),d=n(13),g=n(66),f=n(9),p=n(417),m=n(89);t.a=functionAdminBarImpressions(t){varn=t.WidgetReportError,r=Object(o.useSelect)((function(e){returne(g.b).isGatheringData()})),b=Object(o.useSelect)((function(e){returne(d.c).getCurrentEntityURL()})),v=Object(o.useSelect)((function(e){returne(u.a).getDateRangeDates({compare:!0,offsetDays:g.a})})),h=v.compareStartDate,O=v.endDate,y=Object(o.useSelect)((function(e){returne(u.a).getDateRangeNumberOfDays()})),E={startDate:h,endDate:O,dimensions:"date",url:b},k=Object(o.useSelect)((function(e){returne(g.b).getReport(E)})),j=Object(o.useSelect)((function(e){returne(g.b).hasFinishedResolution("getReport",[E])})),_=Object(o.useSelect)((function(e){returne(g.b).getErrorForSelector("getReport",[E])}));if(!j||void0===r)returne.createElement(s.a,{width:"auto",height:"59px"});if(_)returne.createElement(n,{moduleSlug:"search-console",error:_});varS=Object(m.a)(k,{dateRangeLength:y}),w=S.compareRange,N=S.currentRange,D=Object(p.a)(N,"impressions"),T=Object(p.a)(w,"impressions"),R=Object(f.g)(T,D),C={gatheringData:r,gatheringDataNoticeStyle:l.a.SMALL};returne.createElement(c.a,a()({className:"overview-total-impressions",title:Object(i.__)("Total Impressions","google-site-kit"),datapoint:D,change:R,changeDataUnit:"%"},C))}}).call(this,n(4))},1107:function(e,t,n){"use strict";(function(e){varr=n(21),a=n.n(r),i=n(2),o=n(3),c=n(7),s=n(13),l=n(66),u=n(9),d=n(44),g=n(239),f=n(114),p=n(417),m=n(89);t.a=functionAdminBarClicks(t){varn=t.WidgetReportError,r=Object(o.useSelect)((function(e){returne(l.b).isGatheringData()})),b=Object(o.useSelect)((function(e){returne(s.c).getCurrentEntityURL()})),v=Object(o.useSelect)((function(e){returne(c.a).getDateRangeDates({compare:!0,offsetDays:l.a})})),h=v.compareStartDate,O=v.endDate,y=Object(o.useSelect)((function(e){returne(c.a).getDateRangeNumberOfDays()})),E={startDate:h,endDate:O,dimensions:"date",url:b},k=Object(o.useSelect)((function(e){returne(l.b).getReport(E)})),j=Object(
Object(i.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),r[0]):Object(i.sprintf)(/* translators: %s: List of module names */
Object(i.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),r.join(Object(i._x)(", ","Recoverable modules","google-site-kit")));returne.createElement(s.a,{title:Object(i.__)("Data Unavailable","google-site-kit"),description:a})}RecoverableModules.propTypes={moduleSlugs:a.a.arrayOf(a.a.string).isRequired}}).call(this,n(4))},169:function(e,t,n){"use strict";n.d(t,"a",(function(){returna}));varr=n(2);functiona(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},n=t||{},a=n.slug,i=void0===a?"":a,o=n.name,c=void0===o?"":o,s=n.owner,l=void0===s?{}:s;if(!i||!c)returne;varu="",d="";return"analytics-4"===i?e.match(/account/i)?u=Object(r.__)("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(r.__)("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(r.__)("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(r.__)("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(r.sprintf)(/* translators: %s: module name */
Object(r.__)("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)),l&&l.login&&(d=Object(r.sprintf)(/* translators: %s: owner name */
Object(r.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),l.login)),d||(d=Object(r.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(u," ").concat(d)}},17:function(e,t,n){"use strict";varr=n(255);n.d(t,"i",(function(){returnr.a}));vara=n(317);n.d(t,"f",(function(){returna.a}));vari=n(318);n.d(t,"h",(function(){returni.a}));varo=n(319);n.d(t,"j",(function(){returno.a}));varc=n(316);n.d(t,"g",(function(){returnc.a}));vars=n(92),l=n.n(s);n.d(t,"b",(function(){returnl.a})),n.d(t,"c",(function(){returns.DialogContent})),n.d(t,"d",(function(){returns.DialogFooter}));varu=n(103);n.d(t,"a",(function(){returnu.a})),n.d(t,"e",(function(){returnu.b})),n.d(t,"k",(function(){returnu.c}))},170:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnReportError}));varr=n(6),a=n.n(r),i=n(1),o=n.n(i),c=n(14),s=n(0),l=n(2),u=n(3),d=n(19),g=n(35),f=n(169),p=n(85),m=n(51),b=n(96),v=n(135),h=n(33);functionO(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functiony(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){a()(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))}))}returne}functionReportError(t){varn,r=t.moduleSlug,a=t.error,i=Object(h.a)(),o=Object(u.useSelect)((function(e){returne(d.a).getModule(r)})),O=Array.isArray(a)?a:[a],E=function(e){returnObject(g.e)(e)?i?(n=Object(l.sprintf)(/* translators: %s: module name */
Object(l.__)("Access lost to %s","google-site-kit"),null==o?void0:o.name),Object(l.sprintf)(/* translators: %s: module name */
Object(l.__)("The administrator sharing this module with you has lost access to the %s service, so you won’t be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),null==o?void0:o.name)):(n=Object(l.sprintf)(/* translators: %s: module name */
Object(l.__)("Insufficient permissions in %s","google-site-kit"),null==o?void0:o.name),Object(f.a)(e.message,o)):Object(g.b)(e)},k=Object(c.uniqWith)(O.map((function(e){vart;returny(y({},e),{},{message:E(e),reconnectURL:null===(t=e.data)||void0===t?void0:t.reconnectURL})})),(function(e,t){returne.message===t.message&&e.reconnectURL===t.reconnectURL})),j=O.some((function(e){returnObject(g.e)(e)}));j||1!==k.length?!j&&k.length>1&&(n=Object(l.sprintf)(/* translators: %s: module name */
Object(l.__)("Data errors in %s","google-site-kit"),null==o?void0:o.name)):n=Object(l.sprintf)(/* translators: %s: module name */
Object(l.__)("Data error in %s","google-site-kit"),null==o?void0:o.name);var_=e.createElement(s.Fragment,null,k.map((function(t){varn,r=null==a||null===(n=a.data)||void0===n?void0:n.reconnectURL;returnr?e.createElement(m.a,{key:t.message,message:t.message,reconnectURL:r}):e.createElement("p",{key:t.message},p.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));returne.createElement(b.a,{title:n,description:_,error:!0},e.createElement(v.a,{moduleSlug:r,error:a}))}ReportError.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired}}).call(this,n(4))},172:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnGenericErrorHandlerActions}));varr=n(1),a=n.n(r),i=n(2),o=n(20),c=n(195);functionGenericErrorHandlerActions(t){varn=t.message,r=t.componentStack;returne.createElement("div",{className:"googlesitekit-generic-error-handler-actions"},e.createElement(c.a,{message:n,componentStack:r}),e.createElement(o.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(i.__)("Report this problem","google-site-kit")))}GenericErrorHandlerActions.propTypes={message:a.a.string,componentStack:a.a.string}}).call(this,n(4))},173:function(e,t,n){"use strict";n.d(t,"a",(function(){returna}));varr=n(22),a=function(e){returnr.f.includes(e)}},174:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnReportZero}));varr=n(1),a=n.n(r),i=n(2),o=n(3),c=n(19),s=n(96);functionReportZero(t){varn=t.moduleSlug,r=Object(o.useSelect)((function(e){returne(c.a).getModule(n)}));returne.createElement(s.a,{title:Object(i.sprintf)(/* translators: %s: Module name */
Object(i.__)("%s Gathering Data","google-site-kit"),null==r?void0:r.name),description:Object(i.sprintf)(/* translators: %s: Module name */
Object(i.__)("%s data is not yet available, please check back later","google-site-kit"),null==r?void0:r.name)})}ReportZero.propTypes={moduleSlug:a.a.string.isRequired}}).call(this,n(4))},18:function(e,t,n){"use strict";varr=n(0),a=n(61);t.a=function(){returnObject(r.useContext)(a.b)}},19:function(e,t,n){"use strict";n.d(t,"a",(function(){returnr})),n.d(t,"b",(function(){returna}));varr="core/modules",a="insufficient_module_dependencies"},195:function(e,t,n){"use strict";(function(e){varr=n(15),a=n.n(r),i=n(196),o=n.n(i),c=n(1),s=n.n(c),l=n(0),u=n(2),d=n(267),g=n(422),f=n(423),p=n(10);functionReportErrorButton(t){varn=t.message,r=t.componentStack,i=Object(l.useState)(!1),c=a()(i,2),s=c[0],m=c[1];returne.createElement(p.Button,{"aria-label":s?Object(u.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void0,onClick:function(){o()("`".concat(n,"\n").concat(r,"`")),m(!0)},trailingIcon:e.createElement(d.a,{className:"mdc-button__icon",icon:s?g.a:f.a})},s?Object(u.__)("Copied to clipboard","google-site-kit"):Object(u.__)("Copy error contents","google-site-kit"))}ReportErrorButton.propTypes={message:s.a.string,componentStack:s.a.string},t.a=ReportErrorButton}).call(this,n(4))},198:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnBannerNotification}));varr=n(21),a=n.n(r),i=n(6),o=n.n(i),c=n(5),s=n.n(c),l=n(16),u=n.n(l),d=n(15),g=n.n(d),f=n(1),p=n.n(f),m=n(11),b=n.n(m),v=n(208),h=n(242),O=n(82),y=n(0),E=n(106),k=n(3),j=n(17),_=n(94),S=n(37),w=n(24),N=n(213),D=n(215),T=n(214),R=n(229),C=n(230),A=n(87),P=n(136),L=n(130),x=n(32),I=n(231),M=n(79);functionBannerNotification(t){varn,r=t.badgeLabel,i=t.children,c=t.className,l=void0===c?"":c,d=t.ctaLabel,f=t.ctaLink,p=t.ctaTarget,m=t.description,B=t.dismiss,W=t.dismissExpires,F=void0===W?0:W,z=t.format,U=void0===z?"":z,V=t.id,G=t.isDismissible,H=void0===G||G,q=t.learnMoreDescription,K=t.learnMoreLabel,X=t.learnMoreURL,$=t.learnMoreTarget,J=void0===$?A.a.EXTERNAL:$,Y=t.logo,Z=t.module,Q=t.moduleName,ee=t.onCTAClick,te=t.onView,ne=t.onDismiss,re=t.onLearnMoreClick,ae=t.showOnce,ie=void0!==ae&&ae,oe=t.SmallImageSVG,ce=t.title,se=t.type,le=t.WinImageSVG,ue=t.showSmallWinImage,de=void0===ue||ue,ge=t.smallWinImageSVGWidth,fe=void0===ge?75:ge,pe=t.smallWinImageSVGHeight,me=void0===pe?75:pe,be=t.mediumWinImageSVGWidth,ve=void0===be?105:be,he=t.mediumWinImageSVGHeight,Oe=void0===he?105:he,ye=t.rounded,Ee=void0!==ye&&ye,ke=t.footer,je=t.secondaryPane,_e=t.ctaComponent,Se=Object(y.useState)(!1),we=g()(Se,2),Ne=we[0],De=we[1],Te=Object(y.useState)(!1),Re=g()(Te,2),Ce=Re[0],Ae=Re[1],Pe="notification::dismissed::".concat(V),Le=function(){returnObject(S.f)(Pe,newDate,{ttl:null})},xe=Object(M.a)(),Ie=Object(w.e)(),Me=Object(v.a)(),Be=Object(y.useState)(!1),We=g()(Be,2),Fe=We[0],ze=We[1],Ue=Object(y.useRef)(),Ve=Object(h.a)(Ue,{rootMargin:"".concat(-Object(L.a)(Object(_.c)(Ie)),"px 0px 0px 0px"),threshold:0});Object(y.useEffect)((function(){!Fe&&(null==Ve?void0:Ve.isIntersecting)&&("function"==typeofte&&te(),ze(!0))}),[V,te,Fe,Ve]);varGe=xe>=600;Object(O.a)(u()(s.a.mark((functione(){vart,n;returns.a.wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(!(F>0)){e.next=3;break}returne.next=3,Ye();case3:if(!H){e.next=9;break}returne.next=6,Object(S.d)(Pe);case6:t=e.sent,n=t.cacheHit,Ae(n);case9:if(!ie){e.next=12;break}returne.next=12,Le();case12:case"end":returne.stop()}}),e)}))));varHe=function(){vare=u()(s.a.mark((functione(t){returns.a.wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(t.persist(),t.preventDefault(),!ne){e.next=5;break}returne.next=5,ne(t);case5:Ke();case6:case"end":returne.stop()}}),e)})));returnfunction(t){returne.apply(this,arguments)}}(),qe=Object(E.a)(f)&&"_blank"!==p,Ke=function(){returnqe||De(!0),newPromise((function(e){setTimeout(u()(s.a.mark((functiont(){varn;returns.a.wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,Le();case2:Me()&&Ae(!0),n=newEvent("notificationDismissed"),document.dispatchEvent(n),e();case6:case"end
Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),r));returne.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.F)(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:a.a.string.isRequired,reconnectURL:a.a.string,noPrefix:a.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(4))},57:function(e,t,n){"use strict";(function(e){varr,a;n.d(t,"a",(function(){returni})),n.d(t,"b",(function(){returno}));vari=newSet((null===(r=e)||void0===r||null===(a=r._googlesitekitBaseData)||void0===a?void0:a.enabledFeatures)||[]),o=function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:i;returntinstanceofSet&&t.has(e)}}).call(this,n(28))},574:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnActivateAnalyticsCTA}));varr=n(15),a=n.n(r),i=n(1),o=n.n(i),c=n(0),s=n(2),l=n(10),u=n(3),d=n(19),g=n(8),f=n(32),p=n(159),m=n(397),b=n(121);functionActivateAnalyticsCTA(t){varn=t.children,r=Object(p.a)("analytics-4"),i=Object(m.a)("analytics-4"),o=Object(u.useSelect)((function(e){returne(d.a).isModuleActive("analytics-4")})),v=Object(u.useSelect)((function(e){return(0,e(d.a).isModuleAvailable)("analytics-4")&&!!e(g.r)})),h=Object(c.useState)(!1),O=a()(h,2),y=O[0],E=O[1],k=Object(u.useSelect)((function(e){if(!v)return!1;vart=e(g.r).getAdminReauthURL();return!!t&&e(f.a).isNavigatingTo(t)})),j=Object(u.useSelect)((function(e){return!!v&&e(d.a).isFetchingSetModuleActivation("analytics-4",!0)})),_=Object(b.a)(E,3e3);Object(c.useEffect)((function(){j||k?E(!0):_(!1)}),[j,k,_]);varS=o?i:r;returnv&&S?e.createElement("div",{className:"googlesitekit-analytics-cta"},e.createElement("div",{className:"googlesitekit-analytics-cta__preview-graphs"},n),e.createElement("div",{className:"googlesitekit-analytics-cta__details"},e.createElement("p",{className:"googlesitekit-analytics-cta--description"},Object(s.__)("See how many people visit your site from Search and track how you’re achieving your goals","google-site-kit")),e.createElement(l.SpinnerButton,{onClick:S,isSaving:y},o?Object(s.__)("Complete setup","google-site-kit"):Object(s.__)("Set up Google Analytics","google-site-kit")))):null}ActivateAnalyticsCTA.propTypes={children:o.a.node.isRequired}}).call(this,n(4))},575:function(e,t,n){"use strict";varr=n(0);functiona(){return(a=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne}).apply(this,arguments)}vari=r.createElement("path",{d:"M0 3.01l.443.387 1.755-1.534v3.344h.628V1.863L4.578 3.4l.446-.39L2.512.811 0 3.009z",fill:"currentColor"});t.a=functionSvgArrowUp(e){returnr.createElement("svg",a({viewBox:"0 0 6 6",fill:"none"},e),i)}},58:function(e,t,n){"use strict";varr=n(0);functiona(){return(a=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne}).apply(this,arguments)}vari=r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o=r.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"});t.a=functionSvgWarning(e){returnr.createElement("svg",a({fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e),i,o)}},59:function(e,t,n){"use strict";n.d(t,"a",(function(){returna}));varr=n(39);functiona(e){returnfunction(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},61:function(e,t,n){"use strict";n.d(t,"a",(function(){returni}));varr=n(0),a=Object(r.createContext)(""),i=(a.Consumer,a.Provider);t.b=a},66:function(e,t,n){"use strict";n.d(t,"b",(function(){returnr})),n.d(t,"a",(function(){returna}));varr="modules/search-console",a=1},670:function(e,t,n){"use strict";varr=n(0);functiona(){return(a=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?w(i,b(b({},o),{},{unit:"second"})):"",a?w(a,b(b({},o),{},{unit:"minute"})):"",r?w(r,b(b({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){vart=Object(p.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?t:"",a?n:"",r?o:"").trim()}}},E=function(e){return1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},k=function(e){vart={minimumFractionDigits:1,maximumFractionDigits:1};return1e6<=e?Object(p.sprintf)(
// translators: %s: an abbreviated number in millions.
/* translators: used between list items, there is a space after the comma. */varl=Object(p.__)(", ","google-site-kit");returne.join(l)},D=function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){varr=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])returnr[0].replace(/_/g,"-")}returnt.navigator.language}}).call(this,n(28))},85:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returna}));varr=n(149),a=n.n(r)()(e)}).call(this,n(28))},86:function(e,t,n){"use strict";(function(e){varr=n(1),a=n.n(r),i=n(11),o=n.n(i);functionChangeArrow(t){varn=t.direction,r=t.invertColor,a=t.width,i=t.height;returne.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(4))},87:function(e,t,n){"use strict";n.d(t,"a",(function(){returnr}));varr={EXTERNAL:"external",INTERNAL:"internal"}},89:function(e,t,n){"use strict";n.d(t,"a",(function(){returni}));varr=n(12),a=n.n(r),i=function(e,t){varn=t.dateRangeLength;a()(Array.isArray(e),"report must be an array to partition."),a()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");varr=-1*n;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},9:function(e,t,n){"use strict";n.d(t,"I",(function(){returna.b})),n.d(t,"J",(function(){returna.c})),n.d(t,"F",(function(){returni.a})),n.d(t,"K",(function(){returni.b})),n.d(t,"H",(function(){returnu})),n.d(t,"m",(function(){returnd.a})),n.d(t,"B",(function(){returnd.d})),n.d(t,"C",(function(){returnd.e})),n.d(t,"y",(function(){returnd.c})),n.d(t,"r",(function(){returnd.b})),n.d(t,"z",(function(){returnm})),n.d(t,"j",(function(){returnb})),n.d(t,"i",(function(){returnv})),n.d(t,"d",(function(){returnj})),n.d(t,"c",(function(){return_})),n.d(t,"e",(function(){returnS})),n.d(t,"b",(function(){returnw})),n.d(t,"a",(function(){returnN})),n.d(t,"f",(function(){returnD})),n.d(t,"n",(function(){returnT})),n.d(t,"w",(function(){returnR})),n.d(t,"p",(function(){returnC})),n.d(t,"G",(function(){returnA})),n.d(t,"s",(function(){returnP})),n.d(t,"v",(function(){returnL})),n.d(t,"k",(function(){returnx})),n.d(t,"o",(function(){returnI.b})),n.d(t,"h",(function(){returnI.a})),n.d(t,"t",(function(){returnM.b})),n.d(t,"q",(function(){returnM.a})),n.d(t,"A",(function(){returnM.c})),n.d(t,"x",(function(){returnB})),n.d(t,"u",(function(){returnW})),n.d(t,"E",(function(){returnU})),n.d(t,"D",(function(){returnV.a})),n.d(t,"g",(function(){returnG})),n.d(t,"L",(function(){returnH})),n.d(t,"l",(function(){returnq}));varr=n(14),a=n(36),i=n(76),o=n(34),c=n.n(o),s=n(97),l=n.n(s),u=function(e){returnl()(JSON.stringify(functione(t){varn={};returnObject.keys(t).sort().forEach((function(r){vara=t[r];a&&"object"===c()(a)&&!Array.isArray(a)&&(a=e(a)),n[r]=a})),n}(e)))};n(98);vard=n(84);functiong(e){returne.replace(newRegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}functionf(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}functionp(e){returne.replace(/\n/gi,"<br>")}functionm(e){for(vart=e,n=0,r=[g,f,p];n<r.length;n++){t=(0,r[n])(t)}returnt}varb=function(e){returne=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]},v=function(e){vart=e&&!Number.isInteger(e)?newDate(e).getTime():e;returnisNaN(t)||!t?0:t},h=n(15),O=n.n(h),y=n(12),E=n.n(y),k=n(2),j="InvaliddateStringparameter,itmustbe
Object(k._n)("Last %s day","Last %s days",e,"google-site-kit"),e)};return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}functionR(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:"";if(!Object(r.isString)(e))return!1;vart=e.split("-");if(3!==t.length)return!1;varn=newDate(e);returnObject(r.isDate)(n)&&!isNaN(n)}functionC(e){E()(Object(r.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");vart="".concat(e.getMonth()+1),n="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,n.length<2?"0".concat(n):n].join("-")}functionA(e){E()(R(e),j);vart=e.split("-"),n=O()(t,3),r=n[0],a=n[1],i=n[2];returnnewDate(r,a-1,i)}functionP(e,t){returnC(x(e,t*N))}functionL(e){vart=e.split("-");return3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}functionx(e,t){E()(R(e)||Object(r.isDate)(e)&&!isNaN(e),j);varn=R(e)?Date.parse(e):e.getTime();returnnewDate(n-1e3*t)}varI=n(99),M=n(81);functionB(e){vart=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}functionW(e){if("number"==typeofe)return!0;vart=(e||"").toString();return!!t&&!isNaN(t)}varF=n(27),z=n.n(F),U=function(e){returnArray.isArray(e)?z()(e).sort():e},V=n(89);functionG(e,t){varn=function(e){return"0"===e||0===e};if(n(e)&&n(t))return0;if(n(e)||Number.isNaN(e))returnnull;varr=(t-e)/e;returnNumber.isNaN(r)||!Number.isFinite(r)?null:r}varH=function(e){try{returnJSON.parse(e)&&!!e}catch(e){return!1}},q=function(e){if(!e)return"";vart=e.replace(/&#(\d+);/g,(function(e,t){returnString.fromCharCode(t)})).replace(/(\\)/g,"");returnObject(r.unescape)(t)}},90:function(e,t,n){"use strict";(function(e,r){n.d(t,"c",(function(){returnh})),n.d(t,"b",(function(){returny})),n.d(t,"a",(function(){returnTourTooltips}));vara=n(6),i=n.n(a),o=n(82),c=n(30),s=n(1),l=n.n(s),u=n(2),d=n(3),g=n(23),f=n(7),p=n(36),m=n(107),b=n(18);functionv(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}varh={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},O={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},y={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},E="feature_tooltip_view",k="feature_tooltip_advance",j="feature_tooltip_return",_="feature_tooltip_dismiss",S="feature_tooltip_complete";functionTourTooltips(t){varn=t.steps,a=t.tourID,s=t.gaEventCategory,l=t.callback,u="".concat(a,"-step"),w="".concat(a,"-run"),N=Object(d.useDispatch)(g.b).setValue,D=Object(d.useDispatch)(f.a).dismissTour,T=Object(d.useRegistry)(),R=Object(b.a)(),C=Object(d.useSelect)((function(e){returne(g.b).getValue(u)})),A=Object(d.useSelect)((function(e){returne(g.b).getValue(w)&&!1===e(f.a).isTourDismissed(a)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(a)),N(w,!0)}));varP=n.map((function(e){returnfunction(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));returnr.createElement(c.e,{callback:function(t){!fu