text: (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[8],{106:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),a=n(91),i=n(32),o=function(e){var t=Object(r.useContext)(a.a);return Object(i.b)(e,t)}},108:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(5),u=n.n(l),d=n(20),f=u.a.useSelect;function ModuleIcon(t){var n=t.slug,r=t.size,i=o()(t,["slug","size"]),c=f((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,a()({width:r,height:r},i)):null}ModuleIcon.propTypes={slug:s.a.string.isRequired,size:s.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(1))},109:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(225),o=n.n(i),c=n(8),s=n.n(c),l=n(216),u=n(1),d=n(2),f=n(22),p=n(19),g=n(17),m=n(141),h=function Dialog(t){var n=t.dialogActive,r=t.handleDialog,a=t.title,i=t.provides,c=t.handleConfirm,h=t.subtitle,v=t.confirmButton,b=t.dependentModules,k=t.danger,_=t.inProgress,y=void 0!==_&&_,E=Object(u.useCallback)((function(e){null!==e&&g.e.attachTo(e)}),[]),O=Object(l.a)(Dialog),S="googlesitekit-dialog-label-".concat(O),j="googlesitekit-dialog-description-".concat(O),w=!(!i||!i.length);return e.createElement("div",{ref:E,className:s()("mdc-dialog",{"mdc-dialog--open":n}),role:"alertdialog","aria-modal":"true","aria-labelledby":a?S:void 0,"aria-describedby":w?j:void 0,"aria-hidden":n?"false":"true",tabIndex:"-1"},e.createElement("div",{className:"mdc-dialog__scrim"}," "),e.createElement(o.a,{active:n},e.createElement("div",null,e.createElement("div",{className:"mdc-dialog__container"},e.createElement("div",{className:"mdc-dialog__surface"},a&&e.createElement("h2",{id:S,className:"mdc-dialog__title"},a),h&&e.createElement("p",{className:"mdc-dialog__lead"},h),w&&e.createElement("section",{id:j,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))})))),b&&e.createElement("p",{className:"mdc-dialog__dependecies"},e.createElement("strong",null,Object(d.__)("Note: ","google-site-kit")),b),e.createElement("footer",{className:"mdc-dialog__actions"},e.createElement(f.a,{onClick:c,danger:k,disabled:y},v||Object(d.__)("Disconnect","google-site-kit")),e.createElement(m.a,{isSaving:y}),e.createElement(p.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:r,inherit:!0,disabled:y},Object(d.__)("Cancel","google-site-kit"))))))))};h.displayName="Dialog",h.propTypes={dialogActive:a.a.bool,handleDialog:a.a.func,handleConfirm:a.a.func.isRequired,title:a.a.string,description:a.a.string,confirmButton:a.a.string,danger:a.a.bool},h.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=h}).call(this,n(1))},11:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o}));var r="core/user",a="connected_url_mismatch",i="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},110:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(2),o=n(192),c=n(312),s=n(22),l=n(85),u=function SurveyHeader(t){var n=t.title,r=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__header"},e.createElement("div",{className:"googlesitekit-survey__header-logo"},e.createElement(l.a,{width:24,height:24})),e.createElement("div",{className:"googlesitekit-survey__header-details"},e.createElement("h3",null,n),e.createElement(s.a,{"aria-label":Object(i.__)("Dismiss","google-site-kit"),icon:e.createElement(o.a,{icon:c.a,size:40}),onClick:r,className:"googlesitekit-survey__header-close"})))};u.propTypes={title:a.a.string.isRequired,dismissSurvey:a.a.func.isRequired},t.a=u}).call(this,n(1))},118:function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"a",(function(){return b}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(51),s=n(37),l=n(26),u=n.n(l),d=(Object(c.c)("googlesitekit.winCallbacks",{}),function(){return Object(c.c)("googlesitekit.ModulesNotificationsRequest",[])});function f(){return p.apply(this,arguments)}function p(){return(p=o()(a.a.mark((function t(){var n,r,i;return a.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 r=0,t.next=6,m();case 6:return(i=t.sent)&&i.total&&(r+=i.total),r=Object(c.c)("googlesitekit.TotalNotifications",r),r=Math.max(0,Math.abs(r)),e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",r),t.abrupt("return",r);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var g=function(){var e=o()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",[]);case 2:if(t.length){e.next=4;break}return e.abrupt("return",t);case 4:return n=t.map((function(e){return Object(s.b)("notification::dismissed::".concat(e.id))})),e.next=7,Promise.all(n);case 7:return r=e.sent,e.abrupt("return",t.filter((function(e,t){return!r[t].cacheHit})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function m(){return h.apply(this,arguments)}function h(){return(h=o()(a.a.mark((function e(){var t,n,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=0,e.next=4,d();case 4:return r=e.sent,i=[],r.map(function(){var e=o()(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Promise(function(){var e=o()(a.a.mark((function e(n){var r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.identifier,e.t0=g,e.next=4,u.a.get("modules",r,"notifications");case 4:return e.t1=e.sent,e.next=7,(0,e.t0)(e.t1);case 7:i=e.sent,n({identifier:r,notifications:i});case 9: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)}var v=function(t){var n=Math.abs(t.count)+1;return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}},b=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(15))},124:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return u}));var r="https://cdn.ampproject.org/v0.js",a="amp_cdn_restricted",i="check_api_unavailable",o="check_fetch_failed",c="google_api_connection_fail",s="invalid_hostname",l="setup_token_mismatch",u="wp_pre_v5"},126:function(e,t,n){"use strict";(function(e){var r=n(13),a=n.n(r),i=n(238),o=n(8),c=n.n(o),s=n(0),l=n.n(s),u=n(112),d=n(1),f=n(17),p=Object(d.forwardRef)((function(t,n){var r=t.children,o=t.className,s=t.menuOpen,l=t.menuItems,p=t.onSelected,g=t.id,m=Object(d.useState)(null),h=a()(m,2),v=h[0],b=h[1],k=Object(d.useRef)(null),_=Object(u.a)(n,k),y=Object(d.useCallback)((function(e){var t=e.detail.index;p(t,e)}),[p]);return Object(i.a)((function(){if(null==k?void 0:k.current){var e=new f.g(k.current);return e.listen("MDCMenu:selected",y),b(e),function(){e.unlisten("MDCMenu:selected",y)}}})),Object(d.useEffect)((function(){v&&(v.open=s,v.setDefaultFocusState(1))}),[v,s]),e.createElement("div",{className:c()("mdc-menu","mdc-menu-surface",o),ref:_},e.createElement("ul",{"aria-hidden":!s,"aria-orientation":"vertical",className:"mdc-list",id:g,role:"menu",tabIndex:"-1"},!r&&l.map((function(t,n){return e.createElement("li",{key:n,className:"mdc-list-item",role:"menuitem"},e.createElement("span",{className:"mdc-list-item__text"},t))})),r))}));p.displayName="Menu",p.propTypes={className:l.a.string,children:l.a.node,menuOpen:l.a.bool.isRequired,menuItems:l.a.array,id:l.a.string.isRequired,onSelected:l.a.func},p.defaultProps={onSelected:function(){}},t.a=p}).call(this,n(1))},127:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(373),a=function(e,t,n){Object(r.a)((function(n){return e.includes(n.keyCode)&&t.current.contains(n.target)}),n)}},128:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureTours}));var r=n(0),a=n.n(r),i=n(5),o=n.n(i),c=n(11),s=n(156),l=o.a.useSelect;function FeatureTours(t){var n=t.viewContext,r=l((function(e){var t;return null===(t=e(c.a).getFeatureToursForView(n))||void 0===t?void 0:t[0]})),a=l((function(e){return e(c.a).areFeatureToursOnCooldown()}));return!r||a?null:e.createElement(s.a,{tourID:r.slug,steps:r.steps,gaEventCategory:r.gaEventCategory,callback:r.callback})}FeatureTours.propTypes={viewContext:a.a.string}}).call(this,n(1))},129:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(0),s=n.n(c),l=n(1),u=n(19),d=n(9);function HelpMenuLink(t){var n=t.children,r=t.href,i=t.gaEventLabel,c=Object(l.useCallback)(o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=3;break}return e.next=3,Object(d.v)("global_help_menu","click_outgoing_link",i);case 3:case"end":return e.stop()}}),e)}))),[i]);return e.createElement("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none"},e.createElement(u.a,{className:"mdc-list-item__text",href:r,external:!0,hideExternalIndicator:!0,inherit:!0,role:"menuitem",onClick:c},n))}HelpMenuLink.propTypes={children:s.a.node.isRequired,href:s.a.string.isRequired,gaEventLabel:s.a.string},t.a=HelpMenuLink}).call(this,n(1))},137:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"#fff"});t.a=function SvgClose(e){return r.createElement("svg",a({viewBox:"0 0 14 14",fill:"none"},e),i)}},14:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r="core/site",a="primary",i="secondary"},140:function(e,t,n){"use strict";(function(e){t.a=function Warning(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#F9BB2D",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}}).call(this,n(1))},141:function(e,t,n){"use strict";(function(e){t.a=function Spinner(t){var n=t.isSaving;return e.createElement("span",{className:"spinner",style:{display:n?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible"}})}}).call(this,n(1))},146:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(36),s=n(26),l=n.n(s);function u(e,t){return d.apply(this,arguments)}function d(){return(d=o()(a.a.mark((function e(t,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.a.invalidateCache("core","site","notifications");case 2:return e.next=4,Object(c.b)("site_notifications",n,t);case 4:return e.next=6,l.a.set("core","site","mark-notification",{notificationID:t,notificationState:n});case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return(p=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(t,"accepted");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return m.apply(this,arguments)}function m(){return(m=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(t,"dismissed");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},148:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"#EA4336",fillRule:"nonzero"});t.a=function SvgError(e){return r.createElement("svg",a({viewBox:"0 0 28 25"},e),i)}},149:function(e,t,n){"use strict";(function(e){t.a=function Error(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#EA4336",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"error-title error-desc"},e.createElement("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}))}}).call(this,n(1))},150:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(0),a=n.n(r),i=n(5),o=n.n(i),c=n(151),s=n(152),l=n(32),u=n(153),d=n(154),f=n(155),p=n(106),g=n(159);function Root(t){var n=t.children,r=t.registry,a=t.viewContext,i=void 0===a?null:a,m=Object(p.a)("userFeedback");return e.createElement(o.a.RegistryProvider,{value:r},e.createElement(s.a,{value:l.a},e.createElement(c.a,{viewContext:i},e.createElement(d.a,null,n,i&&e.createElement(f.a,{viewContext:i}),m&&e.createElement(g.a,null)),e.createElement(u.a,null))))}Root.propTypes={children:a.a.node.isRequired,registry:a.a.object,viewContext:a.a.string},Root.defaultProps={registry:o.a}}).call(this,n(1))},151:function(e,t,n){"use strict";(function(e,r){var a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=n(62),l=n.n(s),u=n(45),d=n.n(u),f=n(46),p=n.n(f),g=n(30),m=n.n(g),h=n(224),v=n.n(h),b=n(0),k=n.n(b),_=n(1),y=n(2),E=n(192),O=n(310),S=n(311),j=n(35),w=n(19),C=n(22),N=n(9);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p()(this,n)}}var L=function(t){d()(ErrorHandler,t);var n=x(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(l()(t)),t}return c()(ErrorHandler,[{key:"componentDidCatch",value:function(t,n){var r=this.props.viewContext,a=void 0===r?"unknown":r;e.console.error("Caught an error:",t,n),this.setState({error:t,info:n}),Object(N.v)("react_error","handle_".concat(a,"_error"),"".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack).slice(0,500))}},{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,a=t.info,i=t.copied;if(!n)return e;var o=r.createElement(E.a,{className:"mdc-button__icon",icon:i?O.a:S.a});return r.createElement(j.a,{id:"googlesitekit-error",title:Object(y.__)("Site Kit encountered an error","google-site-kit"),description:r.createElement(_.Fragment,null,r.createElement(C.a,{trailingIcon:o,onClick:this.onErrorClick},Object(y.__)("Copy error to clipboard","google-site-kit")),r.createElement(w.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(y.__)("Report this problem","google-site-kit"))),isDismissable:!1,format:"small",type:"win-error"},r.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,a.componentStack))}}]),ErrorHandler}(_.Component);L.propTypes={children:k.a.node.isRequired},t.a=L}).call(this,n(15),n(1))},152:function(e,t,n){"use strict";var r=n(91),a=(r.a.Consumer,r.a.Provider);t.a=a},153:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(2),l=n(1),u=n(5),d=n.n(u),f=n(11),p=n(38),g=n(89),m=n(109),h=n(86),v=d.a.useSelect,b=d.a.useDispatch,k=d.a.useRegistry;t.a=function PermissionsModal(){var t,n,a,o=k(),u=v((function(e){return e(f.a).getPermissionScopeError()})),d=v((function(t){var n;return t(f.a).getConnectURL({additionalScopes:null==u||null===(n=u.data)||void 0===n?void 0:n.scopes,redirectURL:e.location.href})})),_=b(f.a).clearPermissionScopeError,y=b(p.a).navigateTo,E=Object(l.useCallback)((function(){_()}),[_]),O=Object(l.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(g.c)(o);case 2:y(d);case 3:case"end":return e.stop()}}),e)}))),[o,d,y]);return Object(l.useEffect)((function(){(function(){var e=c()(i.a.mark((function e(){var t,n,r;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===(r=n.scopes)||void 0===r?void 0:r.length)){e.next=3;break}return e.next=3,O();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[O,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===(a=u.data)||void 0===a?void 0:a.skipModal)?null:r.createElement(h.a,null,r.createElement(m.a,{title:Object(s.__)("Additional Permissions Required","google-site-kit"),subtitle:u.message,confirmButton:Object(s.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:O,handleDialog:E})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",u),null):null}}).call(this,n(15),n(1))},154:function(e,t,n){"use strict";var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(1),u=n(5),d=n.n(u),f=n(89),p=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=p(),r=Object(l.useState)(!1),i=s()(r,2),c=i[0],u=i[1];return Object(l.useEffect)((function(){c||o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},155:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureToursDesktop}));var r=n(6),a=n.n(r),i=n(142),o=n(128);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FeatureToursDesktop(t){return Object(i.a)()<783?null:e.createElement(o.a,t)}FeatureToursDesktop.propTypes=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){a()(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}({},o.a.propTypes)}).call(this,n(1))},156:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return TourTooltips}));var a=n(6),i=n.n(a),o=n(125),c=n(28),s=n(0),l=n.n(s),u=n(2),d=n(5),f=n.n(d),p=n(57),g=n(11),m=n(36),h=n(157);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=f.a.useSelect,k=f.a.useDispatch,_={options:{arrowColor:"#1A73E8",backgroundColor:"#1A73E8",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#ffffff"}},y={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")},E={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)"}}},O="feature_tooltip_view",S="feature_tooltip_advance",j="feature_tooltip_return",w="feature_tooltip_dismiss",C="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,a=t.tourID,s=t.gaEventCategory,l=t.callback,u="".concat(a,"-step"),d="".concat(a,"-run"),f=k(p.a).setValue,N=k(g.a).dismissTour,x=b((function(e){return e(p.a).getValue(u)})),L=b((function(e){return e(p.a).getValue(d)&&!1===e(g.a).isTourDismissed(a)}));Object(o.a)((function(){f(d,!0)}));var R=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=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))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,a=e.size,i=e.status,o=e.type,l=t+1;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(m.b)(s,O,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(m.b)(s,w,l):n===c.a.NEXT&&i===c.d.FINISHED&&o===c.b.TOUR_END&&a===l&&Object(m.b)(s,C,l),r===c.c.COMPLETE&&i!==c.d.FINISHED&&(n===c.a.PREV&&Object(m.b)(s,j,l),n===c.a.NEXT&&Object(m.b)(s,S,l))}(t);var n=t.action,r=t.index,i=t.status,o=t.step,d=t.type,p=n===c.a.CLOSE,g=!p&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(d),h=[c.d.FINISHED,c.d.SKIPPED].includes(i),v=p&&d===c.b.STEP_AFTER,b=h||v;if(c.b.STEP_BEFORE===d){var k,_,y=o.target;"string"==typeof o.target&&(y=e.document.querySelector(o.target)),null===(k=y)||void 0===k||null===(_=k.scrollIntoView)||void 0===_||_.call(k,{block:"center"})}g?function(e,t){f(u,e+(t===c.a.PREV?-1:1))}(r,n):b&&N(a),l&&l(t)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:E,locale:y,run:L,showProgress:!0,stepIndex:x,steps:R,styles:_,tooltipComponent:h.a})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.string.isRequired,callback:l.a.func}}).call(this,n(15),n(1))},157:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(18),a=n.n(r),i=n(147),o=n.n(i),c=n(8),s=n.n(c),l=n(0),u=n.n(l),d=n(158),f=n(137),p=n(22);function TourTooltip(t){var n=t.backProps,r=t.closeProps,c=t.index,l=t.primaryProps,u=t.size,g=t.step,m=t.tooltipProps,h=u>1?Object(d.a)(u):[],v=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",a()({className:"googlesitekit-tour-tooltip"},m),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},g.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},g.content)),e.createElement(i.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},h.map((function(t){return e.createElement("li",{key:"indicator-".concat(t),className:v(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(p.a,a()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),e.createElement(p.a,a()({className:"googlesitekit-tooltip-button",text:!0},l),l.title))),e.createElement(p.a,a()({className:"googlesitekit-tooltip-close",text:!0,icon:e.createElement(f.a,{width:"14",height:"14"})},r))))}TourTooltip.propTypes={backProps:u.a.object.isRequired,closeProps:u.a.object.isRequired,index:u.a.number.isRequired,isLastStep:u.a.bool.isRequired,primaryProps:u.a.object.isRequired,size:u.a.number.isRequired,step:u.a.shape({content:u.a.node.isRequired,title:u.a.node.isRequired}).isRequired,tooltipProps:u.a.object.isRequired}}).call(this,n(1))},158:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},159:function(e,t,n){"use strict";(function(e){var r=n(5),a=n.n(r),i=n(14),o=n(11),c=n(160),s=n(86),l=a.a.useSelect;t.a=function CurrentSurveyPortal(){var t=l((function(e){return e(i.c).isUsingProxy()})),n=l((function(e){return e(o.a).getCurrentSurvey()}));return t&&n?e.createElement(s.a,{slug:"survey"},e.createElement(c.a,null)):null}}).call(this,n(1))},160:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CurrentSurvey}));var r=n(6),a=n.n(r),i=n(25),o=n.n(i),c=n(13),s=n.n(c),l=n(125),u=n(227),d=n(1),f=n(5),p=n.n(f),g=n(52),m=n(11),h=n(161),v=n(162),b=n(169);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=p.a.useDispatch,E=p.a.useSelect,O={rating:v.a};function CurrentSurvey(){var t=Object(d.useState)(!1),n=s()(t,2),r=n[0],i=n[1],c=Object(d.useState)(!1),f=s()(c,2),p=f[0],v=f[1],k=Object(d.useState)(!1),S=s()(k,2),j=S[0],w=S[1],C=Object(d.useState)(!1),N=s()(C,2),x=N[0],L=N[1],R=E((function(e){return e(m.a).getCurrentSurveyCompletions()})),M=E((function(e){return e(m.a).getCurrentSurveyQuestions()})),D=E((function(e){return e(m.a).getCurrentSurveySession()})),A=E((function(e){return e(m.a).isTrackingEnabled()})),P=D?"survey-".concat(D.session_id):null,T=E((function(e){return e(g.a).getValue(P,"hideSurvey")})),z=E((function(e){return e(g.a).getValue(P,"answers")})),F=y(g.a).setValues,I=y(m.a).sendSurveyEvent;Object(d.useEffect)((function(){(null==M?void 0:M.length)&&!r&&(i(!0),I("survey_shown"))}),[M,r,I]);var U,B=Math.max.apply(Math,[0].concat(o()((z||[]).map((function(e){return e.question_ordinal})))))+1,W=null==M?void 0:M.find((function(e){return e.question_ordinal===B})),q=Object(d.useCallback)((function(e){x||(L(!0),I("question_answered",{question_ordinal:null==W?void 0:W.question_ordinal,answer:e}),setTimeout((function(){F(P,{answers:[].concat(o()(z||[]),[{question_ordinal:null==W?void 0:W.question_ordinal,answer:e}])}),L(!1)}),300))}),[z,W,P,I,F,x]),H=(null==z?void 0:z.length)?z.reduce((function(e,t){return _(_({},e),{},a()({},t.question_ordinal,t.answer.answer.answer_ordinal))}),{}):[];(null==M?void 0:M.length)&&B>(null==M?void 0:M.length)&&(null==R||R.some((function(e){return e.trigger_condition.some((function(t){return!!t.answer_ordinal.includes(H[t.question_ordinal])&&(U=e,!0)})),!!U})),U||(U=R[0]));var V=Object(d.useCallback)((function(){var e;I("follow_up_link_clicked",{completion_ordinal:null===(e=U)||void 0===e?void 0:e.completion_ordinal}),I("survey_closed"),F(P,{hideSurvey:!0})}),[P,I,F,U]),K=Object(d.useCallback)((function(){I("survey_closed"),w(!1)}),[I]),G=Object(d.useCallback)((function(){F(P,{hideSurvey:!0})}),[P,F]);if(Object(d.useEffect)((function(){var e;U&&!p&&(v(!0),I("completion_shown",{completion_ordinal:null===(e=U)||void 0===e?void 0:e.completion_ordinal}))}),[p,I,U]),Object(l.a)((function(){w(!0)})),T||!M||!R||void 0===A)return null;if(U)return e.createElement(u.a,{direction:"up",in:j,onExited:G},e.createElement("div",{className:"googlesitekit-survey"},e.createElement(h.a,{dismissSurvey:K,ctaOnClick:V,ctaText:U.follow_up_text,ctaURL:U.follow_up_url,title:U.completion_title},U.completion_text)));var $=O[null==W?void 0:W.question_type];return $?e.createElement(u.a,{direction:"up",in:j,onExited:G},e.createElement("div",{className:"googlesitekit-survey"},e.createElement($,{key:W.question_text,answerQuestion:q,choices:W.question.answer_choice,dismissSurvey:K,question:W.question_text}),!1===A&&1===(null==W?void 0:W.question_ordinal)&&e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(b.a,null)))):null}}).call(this,n(1))},161:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(22),o=n(110),c=function SurveyCompletion(t){var n=t.title,r=t.children,a=t.ctaText,c=t.ctaURL,s=t.ctaOnClick,l=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__completion"},e.createElement(o.a,{title:n,dismissSurvey:l}),e.createElement("div",{className:"googlesitekit-survey__body"},r),c&&a&&e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(i.a,{href:c,onClick:s,target:"_blank"},a)))};c.propTypes={title:a.a.string.isRequired,children:a.a.node,ctaText:a.a.string,ctaURL:a.a.string,ctaOnClick:a.a.func,dismissSurvey:a.a.func.isRequired},c.defaultProps={title:"",children:null,ctaText:"",ctaURL:"",ctaOnClick:null},t.a=c}).call(this,n(1))},162:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(110),o=n(163),c=function SurveyQuestionRating(t){var n=t.question,r=t.choices,a=t.answerQuestion,c=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__question-rating"},e.createElement(i.a,{title:n,dismissSurvey:c}),e.createElement("div",{className:"googlesitekit-survey__body"},e.createElement("div",{className:"googlesitekit-survey__choices"},r.map((function(t,n){return e.createElement(o.a,{key:n,choice:t,answerQuestion:a})})))))};c.propTypes={question:a.a.string.isRequired,choices:a.a.arrayOf(a.a.shape({answer_ordinal:a.a.oneOfType([a.a.string,a.a.number]),text:a.a.string})).isRequired,answerQuestion:a.a.func.isRequired,dismissSurvey:a.a.func.isRequired},t.a=c}).call(this,n(1))},163:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(1),o=n(22),c=n(164),s=n(165),l=n(166),u=n(167),d=n(168),f={1:c.a,2:s.a,3:l.a,4:u.a,5:d.a},p=function SurveyQuestionRatingChoice(t){var n=t.choice,r=t.answerQuestion,a=Object(i.useCallback)((function(){"function"==typeof r&&r({answer:{answer_ordinal:n.answer_ordinal}})}),[r,n]),c=f[n.answer_ordinal];return c?e.createElement("div",{className:"googlesitekit-survey__choice"},e.createElement(o.a,{icon:e.createElement(c,{width:30,height:30}),"aria-label":n.text,onClick:a}),e.createElement("p",null,n.text)):null};p.propTypes={choice:a.a.shape({answer_ordinal:a.a.oneOfType([a.a.string,a.a.number]),text:a.a.string}).isRequired},t.a=p}).call(this,n(1))},164:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15c0 8.28 6.705 15 14.985 15C23.28 30 30 23.28 30 15c0-8.28-6.72-15-15.015-15zM15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12zm7.5-15.75a2.247 2.247 0 01-2.25 2.25A2.247 2.247 0 0118 11.25 2.247 2.247 0 0120.25 9a2.247 2.247 0 012.25 2.25zM9.75 13.5A2.247 2.247 0 0012 11.25 2.247 2.247 0 009.75 9a2.247 2.247 0 00-2.25 2.25 2.247 2.247 0 002.25 2.25zm-2.415 9c1.2-3.06 4.17-5.25 7.665-5.25s6.465 2.19 7.665 5.25H7.335z",fill:"currentColor"});t.a=function SvgSurveyUnhappy(e){return r.createElement("svg",a({fill:"none"},e),i)}},165:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zm-9.75-1.5a2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9 2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25zm-13.725 9c1.245-3.495 4.56-6 8.49-6 3.915 0 7.23 2.505 8.475 6h-3.315c-1.035-1.785-2.955-3-5.16-3-2.22 0-4.125 1.215-5.175 3H6.525zM12 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9 2.247 2.247 0 0112 11.25zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveyDissatisfied(e){return r.createElement("svg",a({fill:"none"},e),i)}},166:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zM9.75 9A2.247 2.247 0 0112 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9zm10.5 0A2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25 2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9zM10.5 22.5v-3h9v3h-9zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveyNeutral(e){return r.createElement("svg",a({fill:"none"},e),i)}},167:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zm-9.75-1.5a2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9 2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25zm3.225 4.5c-1.245 3.495-4.56 6-8.49 6-3.915 0-7.23-2.505-8.475-6h3.315c1.035 1.785 2.955 3 5.16 3 2.22 0 4.125-1.215 5.175-3h3.315zM12 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9 2.247 2.247 0 0112 11.25zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveySatisfied(e){return r.createElement("svg",a({fill:"none"},e),i)}},168:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15c0 8.28 6.705 15 14.985 15C23.28 30 30 23.28 30 15c0-8.28-6.72-15-15.015-15zM15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12zm7.5-15.75a2.247 2.247 0 01-2.25 2.25A2.247 2.247 0 0118 11.25 2.247 2.247 0 0120.25 9a2.247 2.247 0 012.25 2.25zM9.75 13.5A2.247 2.247 0 0012 11.25 2.247 2.247 0 009.75 9a2.247 2.247 0 00-2.25 2.25 2.247 2.247 0 002.25 2.25zM22.665 18c-1.2 3.06-4.17 5.25-7.665 5.25S8.535 21.06 7.335 18h15.33z",fill:"currentColor"});t.a=function SvgSurveyDelighted(e){return r.createElement("svg",a({fill:"none"},e),i)}},169:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SurveyTerms}));var r=n(2),a=n(132),i=n(5),o=n.n(i),c=n(14),s=n(19),l=o.a.useSelect;function SurveyTerms(){var t=l((function(e){return e(c.c).getGooglePrivacyPolicyURL()})),n=l((function(e){return e(c.c).getGoogleTermsURL()}));return e.createElement("p",{className:"googlesitekit-survey__terms"},Object(a.a)(Object(r.__)("By continuing, you agree to allow Google to use your answers and account info to improve services, per our <privacy>Privacy</privacy> & <terms>Terms</terms>.","google-site-kit"),{privacy:e.createElement(s.a,{href:t,inherit:!0,external:!0}),terms:e.createElement(s.a,{href:n,inherit:!0,external:!0})}))}}).call(this,n(1))},17:function(e,t,n){"use strict";var r=n(82),a=n.n(r);n.d(t,"n",(function(){return a.a})),n.d(t,"c",(function(){return r.HelperText})),n.d(t,"d",(function(){return r.Input}));var i=n(176);n.d(t,"i",(function(){return i.a}));var o=n(241);n.d(t,"f",(function(){return o.a}));var c=n(242);n.d(t,"h",(function(){return c.a}));var s=n(101),l=n.n(s);n.d(t,"m",(function(){return l.a})),n.d(t,"k",(function(){return s.Option}));var u=n(243);n.d(t,"j",(function(){return u.a}));var d=n(240);n.d(t,"e",(function(){return d.a}));var f=n(239);n.d(t,"g",(function(){return f.a}));var p=n(88);n.d(t,"a",(function(){return p.a})),n.d(t,"b",(function(){return p.b})),n.d(t,"l",(function(){return p.c}))},174:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var r=n(5),a=n.n(r),i=n(20),o=n(8),c=n.n(o),s=n(148),l=a.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,r=l((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return r?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(s.a,{height:"20",width:"23"})," ",r.message):null}}).call(this,n(1))},180:function(e,t,n){"use strict";(function(e){var r=n(1),a=n(5),i=n.n(a),o=n(208),c=n(229),s=n(230),l=n(11),u=i.a.useSelect;t.a=function Header(t){var n=t.children,a=u((function(e){return e(l.a).isAuthenticated()}));return e.createElement(r.Fragment,null,e.createElement("header",{className:"googlesitekit-header"},e.createElement("section",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" googlesitekit-header__logo mdc-layout-grid__cell mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--span-1-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement(o.a,null)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-phone mdc-layout-grid__cell--span-3-phone mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop "},n,a&&e.createElement(c.a,null))))),e.createElement(s.a,null))}}).call(this,n(1))},181:function(e,t,n){"use strict";(function(e){var r=n(13),a=n.n(r),i=n(265),o=n(1),c=n(81),s=n(2),l=n(22),u=n(234),d=n(129),f=n(126),p=n(127);t.a=function HelpMenu(t){var n=t.children,r=Object(o.useState)(!1),g=a()(r,2),m=g[0],h=g[1],v=Object(o.useRef)();Object(i.a)(v,(function(){return h(!1)})),Object(p.a)([c.c,c.d],v,(function(){return h(!1)}));var b=Object(o.useCallback)((function(){h(!m)}),[m]),k=Object(o.useCallback)((function(){h(!1)}),[]);return e.createElement("div",{ref:v,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu googlesitekit-help-menu mdc-menu-surface--anchor"},e.createElement(l.a,{"aria-controls":"googlesitekit-help-menu","aria-expanded":m,"aria-label":Object(s.__)("Help","google-site-kit"),"aria-haspopup":"menu",className:"googlesitekit-header__dropdown googlesitekit-help-menu__button googlesitekit-margin-right-0 mdc-button--dropdown",icon:e.createElement(u.a,{width:"20",height:"20"}),onClick:b,text:!0}),e.createElement(f.a,{className:"googlesitekit-width-auto",menuOpen:m,id:"googlesitekit-help-menu",onSelected:k},n,e.createElement(d.a,{gaEventLabel:"fix_common_issues",href:"https://sitekit.withgoogle.com/documentation/fix-common-issues/"},Object(s.__)("Fix common issues","google-site-kit")),e.createElement(d.a,{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/"},Object(s.__)("Read help docs","google-site-kit")),e.createElement(d.a,{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/"},Object(s.__)("Get support","google-site-kit"))))}}).call(this,n(1))},183:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSettings}));var r=n(0),a=n.n(r),i=n(216),o=n(2),c=n(5),s=n.n(c),l=n(35),u=n(9),d=n(11),f=n(14),p=n(205),g=s.a.useSelect;function UserInputSettings(t){var n=t.onCTAClick,r=t.onDismiss,a=t.isDismissable,c=Object(i.a)(UserInputSettings),s=g((function(e){return e(f.c).getAdminURL("googlesitekit-user-input")}));return"completed"===g((function(e){return e(d.a).getUserInputState()}))?null:e.createElement(l.a,{id:"user-input-settings-notification-".concat(c),className:"googlesitekit-user-input__notification",title:Object(o.__)("Customize Site Kit to match your goals","google-site-kit"),description:Object(o.__)("Answer 5 questions and Site Kit will customize your dashboard with specific metrics and opportunities that match your site’s goals","google-site-kit"),format:"large",dismissExpires:3*Object(u.k)("hour"),ctaLink:s,ctaLabel:Object(o.__)("Let’s go","google-site-kit"),onCTAClick:n,dismiss:Object(o.__)("Remind me later","google-site-kit"),WinImageSVG:p.a,isDismissable:a,onDismiss:r})}UserInputSettings.propTypes={onCTAClick:a.a.func,onDismiss:a.a.func,isDismissable:a.a.bool}}).call(this,n(1))},19:function(e,t,n){"use strict";(function(e){var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l),d=n(107),f=n(2);function Link(t){var n,r=t["aria-label"],i=t.arrow,c=t.back,s=t.caps,l=t.children,p=t.className,g=t.danger,m=t.disabled,h=t.external,v=t.hideExternalIndicator,b=t.href,k=t.inherit,_=t.inverse,y=t.onClick,E=t.small,O=t.to,S=o()(t,["aria-label","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inherit","inverse","onClick","small","to"]),j=b||O||!y?O?"ROUTER_LINK":h?"EXTERNAL_LINK":"LINK":m?"BUTTON_DISABLED":"BUTTON",w="BUTTON"===j||"BUTTON_DISABLED"===j?"button":"ROUTER_LINK"===j?d.b:"a",C=("EXTERNAL_LINK"===j&&(n=Object(f._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===j&&(n=Object(f._x)("(disabled)","screen reader text","google-site-kit")),n?r?"".concat(r," ").concat(n):"string"==typeof l?"".concat(l," ").concat(n):void 0:r);return e.createElement(w,a()({"aria-label":C,className:u()("googlesitekit-cta-link",p,{"googlesitekit-cta-link--arrow":i,"googlesitekit-cta-link--external":h&&!v,"googlesitekit-cta-link--inverse":_,"googlesitekit-cta-link--back":c,"googlesitekit-cta-link--small":E,"googlesitekit-cta-link--inherit":k,"googlesitekit-cta-link--caps":s,"googlesitekit-cta-link--danger":g,"googlesitekit-cta-link--disabled":m}),disabled:m,href:"LINK"===j||"EXTERNAL_LINK"===j?b:void 0,onClick:y,rel:"EXTERNAL_LINK"===j?"noopener noreferrer":void 0,target:"EXTERNAL_LINK"===j?"_blank":void 0,to:O},S),l)}Link.propTypes={arrow:s.a.bool,back:s.a.bool,caps:s.a.bool,children:s.a.node,className:s.a.string,danger:s.a.bool,disabled:s.a.bool,external:s.a.bool,hideExternalIndicator:s.a.bool,href:s.a.string,inherit:s.a.bool,inverse:s.a.bool,onClick:s.a.func,small:s.a.bool,to:s.a.string},Link.defaultProps={arrow:!1,back:!1,caps:!1,className:"",danger:!1,disabled:!1,external:!1,hideExternalIndicator:!1,href:"",inherit:!1,inverse:!1,small:!1},t.a=Link}).call(this,n(1))},196:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(2),u=n(1),d=n(5),f=n.n(d),p=n(14),g=n(11),m=n(35),h=n(146),v=f.a.useSelect;t.a=function DashboardCoreSiteAlerts(){var t=Object(u.useState)(!1),n=s()(t,2),r=n[0],i=n[1],c=Object(u.useState)(!1),d=s()(c,2),f=d[0],b=d[1],k=Object(u.useRef)(Date.now()),_=v((function(e){return e(g.a).getCurrentSurvey()})),y=v((function(e){return e(p.c).getNotifications()}));return Object(u.useEffect)((function(){var e=setTimeout((function(){f||i(!0)}),5e3);return function(){clearTimeout(e)}}),[f]),Object(u.useEffect)((function(){Math.floor((Date.now()-k.current)/1e3)<5&&_&&b(!0)}),[k,_,b]),Array.isArray(y)&&r&&!f?y.map((function(t){return e.createElement(m.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(l.__)("OK, Got it!","google-site-kit"),isDismissable:t.dismissible,onCTAClick:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.a)(t.id);case 2:case"end":return e.stop()}}),e)}))),onDismiss:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.b)(t.id);case 2:case"end":return e.stop()}}),e)})))})})):null}}).call(this,n(1))},197:function(e,t,n){"use strict";(function(e,r){var a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=n(45),l=n.n(s),u=n(46),d=n.n(u),f=n(30),p=n.n(f),g=n(1),m=n(2),h=n(51),v=n(9),b=n(35),k=n(198),_=n(199),y=n(200);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d()(this,n)}}var O=function(t){l()(DashboardSetupAlerts,t);var n=E(DashboardSetupAlerts);function DashboardSetupAlerts(){return i()(this,DashboardSetupAlerts),n.apply(this,arguments)}return c()(DashboardSetupAlerts,[{key:"render",value:function(){var t=Object(v.j)("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:""}},a=e._googlesitekitLegacyData.permissions.canManageOptions;switch(t){case"authentication_success":if(!a)return null;var i=Object(v.i)(),o=Object(v.j)("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)),r.createElement(g.Fragment,null,r.createElement(b.a,{id:n.id,title:Object(m.sprintf)(
  /* translators: %s: the name of a module that setup was completed for */
  Object(m.__)("Congrats on completing the setup for %s!","google-site-kit"),n.setupTitle),description:n.description,handleDismiss:function(){},WinImageSVG:_.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"):""},r.createElement(k.a,{moduleSlugs:["search-console","adsense","analytics","pagespeed-insights"]}))));case"authentication_failure":return r.createElement(g.Fragment,null,r.createElement(b.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"}));case"user_input_success":return r.createElement(y.a,null)}}}]),DashboardSetupAlerts}(g.Component);t.a=O}).call(this,n(15),n(1))},198:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),s=n.n(c),l=n(8),u=n.n(l),d=n(1),f=n(2),p=n(9),g=n(5),m=n.n(g),h=n(19),v=n(108),b=n(174),k=n(95),_=n(14),y=n(20),E=n(38);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(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){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))}))}return e}var j=m.a.useSelect,w=m.a.useDispatch;t.a=function ModulesList(t){var n=t.moduleSlugs,r=w(y.a).activateModule,i=w(E.a).navigateTo,c=w(_.c).setInternalServerError,l=j((function(e){return e(y.a).getModules()})),g=Object(d.useCallback)(function(){var e=s()(o.a.mark((function e(t){var n,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(t);case 2:if(n=e.sent,a=n.response,!(s=n.error)){e.next=8;break}return c({id:"setup-module-error",description:s.message}),e.abrupt("return",null);case 8:return e.next=10,Object(p.v)("".concat(t,"_setup"),"module_activate",t);case 10:i(a.moduleReauthURL);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[r,i,c]);if(!l)return null;var m=Array.isArray(n)&&n.length?n.filter((function(e){return l.hasOwnProperty(e)})).reduce((function(e,t){return S(S({},e),{},a()({},t,l[t]))}),{}):l,O=Object.values(m).filter((function(e){return!e.internal&&0===e.dependencies.length})).sort((function(e,t){return e.order-t.order}));return e.createElement("div",{className:"googlesitekit-modules-list"},O.map((function(t){var n=t.slug,r=t.name,a=t.connected,i=t.active,o=a&&i;return e.createElement("div",{key:n,className:u()("googlesitekit-modules-list__module","googlesitekit-modules-list__module--".concat(n))},e.createElement("div",{className:"googlesitekit-settings-connect-module__wrapper"},e.createElement("div",{className:"googlesitekit-settings-connect-module__logo"},e.createElement(v.a,{slug:n})),e.createElement("h3",{className:"googlesitekit-settings-connect-module__title"},r)),e.createElement(b.a,{slug:n,context:"modules-list"}),o&&e.createElement("span",{className:"googlesitekit-settings-module__status"},e.createElement("span",{className:"googlesitekit-settings-module__status-icon googlesitekit-settings-module__status-icon--connected"},e.createElement(k.a,null,Object(f.__)("Connected","google-site-kit"))),Object(f.__)("Connected","google-site-kit")),!o&&e.createElement(h.a,{onClick:function(){return g(n)},arrow:!0,small:!0,inherit:!0},Object(f.__)("Connect Service","google-site-kit")))})))}}).call(this,n(1))},199:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),o=r.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),l=r.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),u=r.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),d=r.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),f=r.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),p=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",a({viewBox:"0 0 400 400",fill:"none"},e),i,o,c,s,l,u,d,f,p)}},2:function(e,t){e.exports=googlesitekit.i18n},20:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},200:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSuccessNotification}));var r=n(2),a=n(1),i=n(35),o=n(201),c=n(9);function UserInputSuccessNotification(){Object(a.useEffect)((function(){Object(c.v)("user_input","success_notification_view")}),[]);return e.createElement(i.a,{id:"user-input-success",title:Object(r.__)("Congrats! You set your site goals","google-site-kit"),description:Object(r.__)("Now Site Kit will begin suggesting metrics to add to your dashboard that are relevant specifically to you, based on the goals you shared","google-site-kit"),SmallImageSVG:o.a,dismiss:Object(r.__)("OK, got it!","google-site-kit"),format:"small",onDismiss:function(){Object(c.v)("user_input","success_notification_dismiss")}})}}).call(this,n(1))},201:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("path",{d:"M154.32 135.43c-10.56 8.65-20.59 16.68-30.15 23.63-5.07 3.7-14.21-1.31-15.28-8.16-1.86-12.85-3-26.17-3.63-39.8-12.15-7.93-24.13-15.53-35.44-22.35-6.11-3.63-4.22-12.48 3-15.39 13.28-5.23 26.64-10.44 40-15.38 4.23-13.83 8.45-27.77 12.11-41.4 2-7.39 10.41-8.93 14.89-2.73 8.25 11.45 17.13 23 26 34.42 14.22-.1 28.56 0 42.84.22 7.73.18 12.64 7.79 8.2 13.35-8.15 10.38-16.67 21.73-25.21 33.45 4.25 13 7.89 25.84 10.7 38.51 1.43 6.79-5.34 14.71-11.39 13-11.49-3.06-23.71-7.03-36.64-11.37z",fill:"#FBBC04"}),c=r.createElement("path",{d:"M205.44 73.7c10.67 26.59 20.64 47.74 16.58 76.8-4.67 33.43-33.31 70.54-68.1 75.46-17.34 2.45-35.57-2.42-47.85-15-12-12.26-18.78-29.18-21.81-45.85-3.25-17.94-2.2-36.87 3.91-54.11a77.26 77.26 0 014.71-10.76",stroke:"#4285F4",strokeLinecap:"square",strokeLinejoin:"round",strokeWidth:6}),s=r.createElement("g",{clipPath:"url(#milestone-blue_svg__clip0)",strokeLinejoin:"round",strokeWidth:6},r.createElement("path",{d:"M151.73 225.81L144 246.63a35.18 35.18 0 00.07 24.7l6.51 12.51h-8.34",stroke:"#1967D2"}),r.createElement("path",{stroke:"#185ABC",d:"M151.73 225.81l-5.6 15.04"}),r.createElement("path",{stroke:"#1967D2",d:"M164.04 231.67v52.17h7.76"}),r.createElement("path",{stroke:"#185ABC",d:"M164.04 221.67v20.1"})),l=r.createElement("path",{d:"M161.08 235.06a36.17 36.17 0 0026.08-44L117.07 209a36.17 36.17 0 0044.01 26.06z",fill:"#1A73E8"}),u=r.createElement("path",{d:"M142.64 217.51c5.53 7.83 16.11 10.61 24.45 1.64M145.07 215.59c-2.58.66-2.41 3.54-5.51 4.88",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:3}),d=r.createElement("path",{stroke:"#FEEFC3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:6,d:"M101.3 47.04L75.8 22.68M60.45 68.72l-34.37-6.91M208.28 22.68l-18.86 17.87M265.17 73.7l-32.36 3.02M66.15 109.02l-49.01 15.36"}),f=r.createElement("defs",null,r.createElement("clipPath",{id:"milestone-blue_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgMilestoneBlue(e){return r.createElement("svg",a({viewBox:"0 0 300 300",fill:"none"},e),i,o,c,s,l,u,d,f)}},202:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(45),s=n.n(c),l=n(46),u=n.n(l),d=n(30),f=n.n(d),p=n(23),g=n(1),m=n(2),h=n(9),v=n(35),b=n(118),k=n(203);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var y=function(t){s()(DashboardModulesAlerts,t);var n=_(DashboardModulesAlerts);function DashboardModulesAlerts(e){var t;return a()(this,DashboardModulesAlerts),(t=n.call(this,e)).state={data:!1},t}return o()(DashboardModulesAlerts,[{key:"componentDidMount",value:function(){var e=this,t=Object(b.e)();t&&Object(b.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(h.i)(),r=[];return Object.keys(t).forEach((function(a){Object(p.each)(t[a],(function(t){r.push(e.createElement(v.a,{key:t.id,id:t.id,title:t.title||"",description:t.description||"",blockData:t.blockData||[],WinImageSVG:function WinImageSVG(){return e.createElement(k.a,{height:"136"})},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(m.__)("OK, Got it!","google-site-kit"),isDismissable:t.isDismissable||!0,logo:t.logo||!0,module:a,moduleName:n[a].name,pageIndex:t.pageIndex||"",dismissExpires:t.dismissExpires||0,showOnce:t.showOnce||!1}))}))})),e.createElement(g.Fragment,null,r)}}]),DashboardModulesAlerts}(g.Component);t.a=y}).call(this,n(1))},203:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("g",{clipPath:"url(#notification-alert_svg__clip0)",strokeMiterlimit:10,strokeWidth:15},r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15s44.18-11.1 65.14-20.18c9.91-4.3 20.07-8.62 30.85-9.31s22.46 2.9 28.7 11.71a24 24 0 013.78 17.65",stroke:"#4285F4"}),r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15",stroke:"#1A73E8"})),c=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),s=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),l=r.createElement("path",{d:"M221.3 13l-94.69 95.2a10 10 0 004.53 16.72L261 159.3a10 10 0 0012.18-12.3L238 17.39A10 10 0 00221.3 13z",fill:"#D93025"}),u=r.createElement("path",{d:"M137.37 111.56l87.36-87.87a3 3 0 015 1.33l32.42 119.6a3 3 0 01-3.66 3.68l-119.76-31.72a3 3 0 01-1.36-5.02z",stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:2}),d=r.createElement("path",{d:"M196.78 118.35a7.38 7.38 0 01-.78-5.84 7.25 7.25 0 013.56-4.64 7.46 7.46 0 015.83-.73 7.51 7.51 0 015.4 9.29 7.51 7.51 0 01-3.52 4.7 7.27 7.27 0 01-5.8.8 7.44 7.44 0 01-4.69-3.58zm12.05-46.1l5.56-21 10.82 2.87-5.55 21-8 25.41-8.6-2.28z",fill:"#FFF"}),f=r.createElement("path",{d:"M198.47 181.73a23.18 23.18 0 01-8.2 14.28c-9.2 7.58-24.24 6.67-32.46-2",stroke:"#4285F4",strokeMiterlimit:10,strokeWidth:15}),p=r.createElement("defs",null,r.createElement("clipPath",{id:"notification-alert_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgNotificationAlert(e){return r.createElement("svg",a({viewBox:"0 0 300 300",fill:"none"},e),i,o,c,s,l,u,d,f,p)}},204:function(e,t,n){"use strict";(function(e){var r=n(1),a=n(9),i=n(183);t.a=function UserInputPromptNotification(){Object(r.useEffect)((function(){Object(a.v)("user_input","prompt_notification_view")}),[]);return e.createElement(i.a,{isDismissable:!0,onCTAClick:function(){Object(a.v)("user_input","prompt_notification_start")},onDismiss:function(){Object(a.v)("user_input","prompt_notification_dismiss")}})}}).call(this,n(1))},205:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M294.5 39.35h244.69v251.12a7.5 7.5 0 01-7.5 7.5H302a7.5 7.5 0 01-7.5-7.5V39.35z",fill:"#F1F3F4"}),o=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 68.28h45.25v45.25H314.5zM314.5 146.04h45.25v45.25H314.5z"}),c=r.createElement("path",{d:"M313.38 145.1c14.28 17.62 17.8 21.42 32.08 39",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5}),s=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 223.79h45.25v45.25H314.5z"}),l=r.createElement("ellipse",{cx:149.01,cy:322.24,rx:72.28,ry:7.51,fill:"#F1F3F4"}),u=r.createElement("path",{d:"M302 10h229.69a7.5 7.5 0 017.5 7.5v21.85H294.5V17.5A7.5 7.5 0 01302 10z",fill:"#80868B"}),d=r.createElement("circle",{cx:314.91,cy:24.68,r:5.32,fill:"#FFF"}),f=r.createElement("circle",{cx:336.18,cy:24.68,r:5.32,fill:"#FFF"}),p=r.createElement("path",{d:"M232.78 231.28c42.24.91 55.06-20.59 39.78-70.34",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),g=r.createElement("path",{d:"M158.93 241.76c-2.23 25.53-1.22 59.63 6.93 80.6H184M126.69 241.76c-2.29 25-.62 58.69 6.93 80.6H116.8",stroke:"#188038",strokeLinejoin:"round",strokeWidth:8.03}),m=r.createElement("path",{d:"M158.93 241.76a244.31 244.31 0 00-1 26.13M126.69 241.76c-.57 6.24-.9 17.52-1 23.59",stroke:"#137333",strokeLinejoin:"round",strokeWidth:8.03}),h=r.createElement("path",{d:"M36.83 277.33c-9.72-9.09-13.91-26.06-8.22-38.36 4.92-10.64 20.49-22.29 31.69-23.47",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),v=r.createElement("path",{fill:"#1E8E3E",d:"M151.1 160.94l93.85 6.87-6.87 93.85-93.85-6.87-93.85-6.87 6.87-93.85 93.85 6.87z"}),b=r.createElement("path",{d:"M181.25 219.25c-18.11 15.64-48.49 18.13-68.47-5",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5.74}),k=r.createElement("path",{stroke:"#DADCE0",strokeLinejoin:"round",strokeWidth:20,d:"M380.07 90.91h139.12M380.07 168.66h139.12M380.07 246.42h139.12"}),_=r.createElement("path",{fill:"#FBBC04",d:"M319.603 184.523l-155.3-70.055 8.98-19.908 155.3 70.055z"}),y=r.createElement("path",{fill:"#DADCE0",d:"M328.59 164.62l25.17 22.94-34.15-3.03 8.98-19.91z"}),E=r.createElement("path",{fill:"#5F6368",d:"M344.35 186.72l9.41.84-6.92-6.29-2.49 5.45z"}),O=r.createElement("path",{d:"M164.22 114.43h.09L175 119.3l9-19.91-10.7-4.84h-.09a10.92 10.92 0 00-9 19.91z",fill:"#EE675C"}),S=r.createElement("path",{fill:"#DADCE0",d:"M176.772 120.092l-4.557-2.056 8.984-19.917 4.558 2.056z"}),j=r.createElement("path",{stroke:"#F29900",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4,d:"M318.21 172.07l-130.15-58.71"}),w=r.createElement("path",{d:"M307.33 65.64a267 267 0 0064.05 58M312.39 117.93l40.77-54.45",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5});t.a=function SvgUserInputPrompt(e){return r.createElement("svg",a({viewBox:"0 0 570 336",fill:"none"},e),i,o,c,s,l,u,d,f,p,g,m,h,v,b,k,_,y,E,O,S,j,w)}},206:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(2),s=n(1),l=n(5),u=n.n(l),d=n(20),f=n(11),p=n(38),g=n(14),m=n(48),h=n(35),v=n(207),b=u.a.useSelect,k=u.a.useDispatch;t.a=function IdeaHubModuleNotification(){var t=k(f.a).dismissItem,n=k(d.a).activateModule,r=k(p.a).navigateTo,i=k(g.c).setInternalServerError,l=b((function(e){return e(d.a).isModuleActive("idea-hub")})),u=b((function(e){return e(f.a).isItemDismissed("idea-hub-module-notification")})),_=b((function(e){var t;return null===(t=e(m.j))||void 0===t?void 0:t.getAdminReauthURL()})),y=Object(s.useCallback)(o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("idea-hub-module-notification");case 2:case"end":return e.stop()}}),e)}))),[t]),E=Object(s.useCallback)(function(){var e=o()(a.a.mark((function e(t){var o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,n("idea-hub");case 3:o=e.sent,c=o.error,s=o.response,c?i({id:"idea-hub-setup-error",description:c.message}):r(s.moduleReauthURL);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,r,i]);return l||void 0===l||u||void 0===u?null:e.createElement(h.a,{id:"idea-hub-module-notification",title:Object(c.__)("Get new ideas to write about based on what people are searching for","google-site-kit"),description:Object(c.__)("Set up Idea Hub to get topic suggestions based on unanswered searches that match your site’s topic.","google-site-kit"),ctaLabel:Object(c.__)("Set up","google-site-kit"),ctaLink:_,SmallImageSVG:v.a,format:"small",type:"win-success",dismiss:Object(c.__)("Dismiss","google-site-kit"),onDismiss:y,onCTAClick:E})}}).call(this,n(1))},207:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:72,cy:72,r:72,fill:"#FDE9CC"}),o=r.createElement("g",{clipPath:"url(#idea-hub-notification_svg__clip0)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.755 64.393c1.844 1.18 2.421 3.625 1.33 5.519l-.073.12L67.567 83.6H79.02c3.314 0 5.194 3.82 3.254 6.5l-.076.103-14.014 18.223a3.993 3.993 0 01-5.657.709c-1.717-1.359-2.054-3.849-.784-5.623l.085-.115 8.936-11.62H60.256c-3.13 0-5.05-3.452-3.475-6.158l.067-.113 12.348-19.839a3.997 3.997 0 015.56-1.274zm16.02-18.441l.044.027.023.014a4.071 4.071 0 011.287 5.575l-4.313 7a3.995 3.995 0 01-5.498 1.306l-.043-.027-.023-.014a4.071 4.071 0 01-1.286-5.575l4.312-7a3.996 3.996 0 015.497-1.306zm-36.837 0a3.996 3.996 0 015.498 1.306l4.312 7a4.071 4.071 0 01-1.287 5.575l-.023.014-.043.027a3.995 3.995 0 01-5.497-1.306l-4.313-7a4.071 4.071 0 011.287-5.575l.023-.014.043-.027zM72.34 34c2.183 0 3.96 1.76 4.03 3.956l.001.132v14.138c0 2.258-1.804 4.088-4.03 4.088-2.183 0-3.96-1.76-4.029-3.956l-.002-.132V38.088c0-2.258 1.805-4.088 4.03-4.088z",fill:"url(#idea-hub-notification_svg__paint0_linear)"})),c=r.createElement("defs",null,r.createElement("linearGradient",{id:"idea-hub-notification_svg__paint0_linear",x1:76.563,y1:27.817,x2:53.123,y2:106.964,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FAA900"}),r.createElement("stop",{offset:1,stopColor:"#F57F00"})),r.createElement("clipPath",{id:"idea-hub-notification_svg__clip0"},r.createElement("path",{fill:"#fff",transform:"translate(52 34)",d:"M0 0h40.714v76H0z"})));t.a=function SvgIdeaHubNotification(e){return r.createElement("svg",a({viewBox:"0 0 144 144",fill:"none"},e),i,o,c)}},208:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(85),i=n(209),o=n(95);t.a=function Logo(){return e.createElement("div",{className:"googlesitekit-logo","aria-hidden":"true"},e.createElement(a.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(r.__)("Site Kit by Google Logo","google-site-kit")))}}).call(this,n(1))},209:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.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 r.createElement("svg",a({viewBox:"0 0 80 21",fill:"none"},e),i)}},214:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(45),s=n.n(c),l=n(46),u=n.n(l),d=n(30),f=n.n(d),p=n(0),g=n.n(p),m=n(8),h=n.n(m),v=n(1),b=n(319),k=n(320);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var y=function(t){s()(Layout,t);var n=_(Layout);function Layout(){return a()(this,Layout),n.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,r=t.footer,a=t.children,i=t.title,o=t.headerCTALabel,c=t.headerCTALink,s=t.footerCTALabel,l=t.footerCTALink,u=t.footerContent,d=t.className,f=t.fill,p=t.relative;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":f,"googlesitekit-layout--relative":p})},n&&e.createElement(b.a,{title:i,ctaLabel:o,ctaLink:c}),a,r&&e.createElement(k.a,{ctaLabel:s,ctaLink:l,footerContent:u}))}}]),Layout}(v.Component);y.propTypes={header:g.a.bool,footer:g.a.bool,children:g.a.node.isRequired,title:g.a.string,headerCTALabel:g.a.string,headerCTALink:g.a.string,footerCTALabel:g.a.string,footerCTALink:g.a.string,footerContent:g.a.node,className:g.a.string,fill:g.a.bool,relative:g.a.bool},y.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=y}).call(this,n(1))},22:function(e,t,n){"use strict";(function(e){var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(8),s=n.n(c),l=n(0),u=n.n(l),d=n(112),f=n(266),p=n(1),g=n(2),m=n(17),h=Object(p.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,l=t.className,u=t.danger,h=t.disabled,v=t.target,b=t.icon,k=t.trailingIcon,_=t["aria-label"],y=t.title,E=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),O=Object(p.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),S=Object(d.a)(n,O),j=i&&!h?"a":"button",w=e.createElement(j,a()({className:s()("mdc-button",l,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:h?void 0:i,ref:S,disabled:!!h,"aria-label":function(){var e=_;if("_blank"!==v)return e;var t=Object(g._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:v||"_self",role:"a"===j?"button":void 0},E),b,r&&e.createElement("span",{className:"mdc-button__label"},r),k);return b&&(y||_)&&void 0===r?e.createElement(f.a,{title:y||_,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},w):w}));h.displayName="Button",h.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},h.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=h}).call(this,n(1))},229:function(e,t,n){"use strict";(function(e,r){var a=n(13),i=n.n(a),o=n(265),c=n(1),s=n(2),l=n(81),u=n(5),d=n.n(u),f=n(9),p=n(109),g=n(22),m=n(126),h=n(86),v=n(14),b=n(11),k=n(38),_=n(127),y=d.a.useSelect,E=d.a.useDispatch;t.a=function UserMenu(){var t=y((function(e){return e(v.c).getProxyPermissionsURL()})),n=y((function(e){return e(b.a).getEmail()})),a=y((function(e){return e(b.a).getPicture()})),u=y((function(e){return e(v.c).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})})),d=Object(c.useState)(!1),O=i()(d,2),S=O[0],j=O[1],w=Object(c.useState)(!1),C=i()(w,2),N=C[0],x=C[1],L=Object(c.useRef)(),R=E(k.a).navigateTo;Object(o.a)(L,(function(){return x(!1)})),Object(_.a)([l.c,l.d],L,(function(){return x(!1)})),Object(c.useEffect)((function(){var t=function(e){l.c===e.keyCode&&(j(!1),x(!1))};return e.addEventListener("keyup",t),function(){e.removeEventListener("keyup",t)}}),[]);var M=Object(c.useCallback)((function(){x(!N)}),[N]),D=Object(c.useCallback)((function(){j(!S),x(!1)}),[S]),A=Object(c.useCallback)((function(e){switch(e){case 0:D();break;case 1:t&&R(t);break;default:M()}}),[t,M,D,R]),P=Object(c.useCallback)((function(){j(!1),Object(f.b)(),R(u)}),[u,R]);return n?r.createElement(c.Fragment,null,r.createElement("div",{ref:L,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},r.createElement(g.a,{className:"googlesitekit-header__dropdown mdc-button--dropdown",text:!0,onClick:M,icon:!!a&&r.createElement("i",{className:"mdc-button__icon","aria-hidden":"true"},r.createElement("img",{className:"mdc-button__icon--image",src:a,alt:Object(s.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":N,"aria-controls":"user-menu"},n),r.createElement(m.a,{className:"googlesitekit-width-auto",menuOpen:N,menuItems:[Object(s.__)("Disconnect","google-site-kit")].concat(t?[Object(s.__)("Manage sites…","google-site-kit")]:[]),onSelected:A,id:"user-menu"})),r.createElement(h.a,null,r.createElement(p.a,{dialogActive:S,handleConfirm:P,handleDialog:D,title:Object(s.__)("Disconnect","google-site-kit"),subtitle:Object(s.__)("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(s.__)("Disconnect","google-site-kit"),danger:!0}))):null}}).call(this,n(15),n(1))},230:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotifications}));var r=n(1),a=n(231),i=n(232),o=n(233);function ErrorNotifications(){return e.createElement(r.Fragment,null,e.createElement(o.a,null),e.createElement(a.a,null),e.createElement(i.a,null))}}).call(this,n(1))},231:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AuthError}));var r=n(2),a=n(5),i=n.n(a),o=n(11),c=n(35),s=i.a.useSelect;function AuthError(){var t=s((function(e){return e(o.a).getAuthError()}));return t?e.createElement(c.a,{id:"autherror",title:Object(r.__)("Site Kit can’t access necessary data","google-site-kit"),description:t.message,ctaLink:t.data.reconnectURL,ctaLabel:Object(r.__)("Redo the plugin setup","google-site-kit")}):null}}).call(this,n(1))},232:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlert}));var a=n(13),i=n.n(a),o=n(287),c=n.n(o),s=n(2),l=n(5),u=n.n(l),d=n(35),f=n(9),p=n(11),g=n(38),m=u.a.useSelect,h={siteverification:"site-verification",webmasters:"search-console"};function UnsatisfiedScopesAlert(){var t,n,a,o,l,u=m((function(e){return e(g.a).isNavigatingTo(/(\/o\/oauth2)|(action=googlesitekit_connect)/i)})),v=m((function(e){return e(p.a).getUnsatisfiedScopes()})),b=m((function(t){return t(p.a).getConnectURL({redirectURL:e.location.href})}));if(u||!(null==v?void 0:v.length)||void 0===b)return null;switch(v.some((function(e){return!e.match(/^https:\/\/www.googleapis.com\/auth\//)}))?t="generic":(a=v,o=Object(f.i)(),t=(n=a.map((function(e){return e.match(/^https:\/\/www.googleapis.com\/auth\/([a-z]+)/)})).map((function(e){var t=i()(e,2)[1];return h[t]||t})).map((function(e){var t;return(null===(t=o[e])||void 0===t?void 0:t.name)||!1}))).some((function(e){return!1===e}))?"generic":1<(n=c()(n)).length?"multiple":"single"),t){case"multiple":l=Object(s.sprintf)(
  /* translators: %s: List of product names */
  Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.n)(n));break;case"single":l=Object(s.sprintf)(
  /* translators: %1$s: Product name */
  Object(s.__)("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":l=Object(s.__)("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 r.createElement(d.a,{id:"authentication error",title:Object(s.__)("Site Kit can’t access necessary data","google-site-kit"),description:l,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(s.__)("Redo setup","google-site-kit")})}}).call(this,n(15),n(1))},233:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(5),a=n.n(r),i=n(14),o=n(35),c=a.a.useSelect;function InternalServerError(){var t=c((function(e){return e(i.c).getInternalServerError()}));return t?e.createElement(o.a,t):null}}).call(this,n(1))},234:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M9 16h2v-2H9v2zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",fill:"currentColor"});t.a=function SvgHelp(e){return r.createElement("svg",a({viewBox:"0 0 20 20",fill:"none"},e),i)}},244:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Checkbox}));var r=n(8),a=n.n(r),i=n(0),o=n.n(i);function Checkbox(t){var n=t.onChange,r=t.id,i=t.name,o=t.value,c=t.checked,s=t.disabled,l=t.children,u=t.tabIndex,d=t.onKeyDown;return e.createElement("div",{className:"mdc-form-field"},e.createElement("div",{className:a()("mdc-checkbox",{"mdc-checkbox--disabled":s})},e.createElement("input",{className:"mdc-checkbox__native-control",type:"checkbox",id:r,name:i,value:o,checked:c,disabled:s,onChange:n,tabIndex:u,onKeyDown:d}),e.createElement("div",{className:"mdc-checkbox__background"},e.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},e.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),e.createElement("div",{className:"mdc-checkbox__mixedmark"}))),e.createElement("label",{htmlFor:r},l))}Checkbox.propTypes={onChange:o.a.func.isRequired,onKeyDown:o.a.func,id:o.a.string.isRequired,name:o.a.string.isRequired,value:o.a.string.isRequired,checked:o.a.bool,disabled:o.a.bool,children:o.a.node.isRequired,tabIndex:o.a.oneOfType([o.a.number,o.a.string])},Checkbox.defaultProps={checked:!1,disabled:!1,tabIndex:void 0,onKeyDown:null}}).call(this,n(1))},26:function(e,t){e.exports=googlesitekit.api},27:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},274:function(e,t,n){"use strict";(function(e,t){var r=n(51),a=n(32),i=n(47),o=n(9),c=n(196),s=n(197),l=n(202),u=n(204),d=n(206),f=e._googlesitekitLegacyData.setup,p=Object(o.j)("notification"),g=Object(i.a)(t.createElement(c.a,null)),m=Object(i.a)(t.createElement(s.a,null)),h=Object(i.a)(t.createElement(l.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",g,10),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),Object(a.b)("ideaHubModule")&&"authentication_success"!==p&&"authentication_failure"!==p&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.IdeaHubModule",b,1),"authentication_success"===p||"authentication_failure"===p||"user_input_success"===p?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(15),n(1))},282:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return m}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(26),s=n.n(c),l=n(14),u=n(124),d=function(){var t=o()(a.a.mark((function t(){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.location.hostname,!["localhost","127.0.0.1"].includes(n)&&!n.match(/\.(example|invalid|localhost|test)$/)){t.next=3;break}throw u.f;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(e){return o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(l.c).checkForSetupTag();case 2:if(!t.sent.error){t.next=5;break}throw u.g;case 5:case"end":return t.stop()}}),t)})))},p=function(){var e=o()(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("core","site","health-checks",void 0,{useCache:!1}).catch((function(e){if("fetch_error"===e.code)throw u.d;throw u.c}));case 2:if(null==(r=e.sent)||null===(t=r.checks)||void 0===t||null===(n=t.googleAPI)||void 0===n?void 0:n.pass){e.next=5;break}throw u.e;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(u.a).catch((function(){throw u.b}));case 2:if(e.sent.ok){e.next=5;break}throw u.b;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e._googlesitekitBaseData||{},!((r=n.wpVersion)&&r.major<5)){t.next=3;break}throw u.h;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}).call(this,n(15))},298:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l),d=n(1),f=n(132),p=n(2),g=n(5),m=n.n(g),h=n(11),v=n(36),b=n(244),k=n(19),_=m.a.useSelect,y=m.a.useDispatch;function OptIn(t){var n=t.id,r=t.name,i=t.className,c=t.optinAction,s=_((function(e){return e(h.a).isTrackingEnabled()})),l=_((function(e){return e(h.a).isSavingTrackingEnabled()})),g=_((function(e){return e(h.a).getErrorForAction("setTrackingEnabled",[!s])})),m=y(h.a).setTrackingEnabled,E=Object(d.useCallback)(function(){var e=o()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(v.a)(r.enabled),r.enabled&&Object(v.b)("tracking_plugin",c));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c,m]);return void 0===s?null:e.createElement("div",{className:u()("googlesitekit-opt-in",i)},e.createElement(b.a,{id:n,name:r,value:"1",checked:s,disabled:l,onChange:E},e.createElement("span",null,Object(p.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")," "),e.createElement("span",null,Object(f.a)(Object(p.__)("All collected data is treated in accordance with the <a>Google Privacy Policy.</a>","google-site-kit"),{a:e.createElement(k.a,{key:"link",href:"https://policies.google.com/privacy",external:!0,inherit:!0})}))),(null==g?void 0:g.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==g?void 0:g.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,optinAction:s.a.string},OptIn.defaultProps={id:"googlesitekit-opt-in",name:"optIn"}}).call(this,n(1))},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},318:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(62),s=n.n(c),l=n(45),u=n.n(l),d=n(46),f=n.n(d),p=n(30),g=n.n(p),m=n(8),h=n.n(m),v=n(105),b=n(1),k=n(2),_=n(51),y=n(118),E=n(95);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var S=function(t){u()(NotificationCounter,t);var n=O(NotificationCounter);function NotificationCounter(e){var t;return a()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(s()(t)),t.handleDecrement=t.handleDecrement.bind(s()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(_.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(_.e)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(y.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(y.d)}},{key:"handleDecrement",value:function(){this.setState(y.a)}},{key:"render",value:function(){var t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name");if(!t)return null;var n=Object(k.sprintf)(
  /* translators: %d: the number of notifications */
  Object(k._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),r=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(E.a,null,n));return Object(v.createPortal)(r,t)}}]),NotificationCounter}(b.Component);t.a=S}).call(this,n(1))},319:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(45),s=n.n(c),l=n(46),u=n.n(l),d=n(30),f=n.n(d),p=n(0),g=n.n(p),m=n(8),h=n.n(m),v=n(1),b=n(19);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(t){s()(LayoutHeader,t);var n=k(LayoutHeader);function LayoutHeader(){return a()(this,LayoutHeader),n.apply(this,arguments)}return o()(LayoutHeader,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.ctaLabel,a=t.ctaLink;return e.createElement("header",{className:"googlesitekit-layout__header"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:h()("mdc-layout-grid__cell","mdc-layout-grid__cell--align-middle","mdc-layout-grid__cell--span-4-phone",{"mdc-layout-grid__cell--span-6-desktop":a,"mdc-layout-grid__cell--span-12-desktop":!a,"mdc-layout-grid__cell--span-8-tablet":!a})},e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-layout__header-title"},n)),a&&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(b.a,{href:a,external:!0,inherit:!0},r)))))}}]),LayoutHeader}(v.Component);_.propTypes={title:g.a.string,ctaLabel:g.a.string,ctaLink:g.a.string},_.defaultProps={title:"",ctaLabel:"",ctaLink:""},t.a=_}).call(this,n(1))},32:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(15))},320:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(45),s=n.n(c),l=n(46),u=n.n(l),d=n(30),f=n.n(d),p=n(0),g=n.n(p),m=n(1),h=n(93);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var b=function(t){s()(LayoutFooter,t);var n=v(LayoutFooter);function LayoutFooter(){return a()(this,LayoutFooter),n.apply(this,arguments)}return o()(LayoutFooter,[{key:"render",value:function(){var t=this.props,n=t.ctaLabel,r=t.ctaLink,a=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"},r&&n&&e.createElement(h.a,{className:"googlesitekit-data-block__source",name:n,href:r,external:!0}),a))))}}]),LayoutFooter}(m.Component);b.propTypes={ctaLabel:g.a.string,ctaLink:g.a.string},t.a=b}).call(this,n(1))},35:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),s=n.n(c),l=n(13),u=n.n(l),d=n(0),f=n.n(d),p=n(8),g=n.n(p),m=n(223),h=n.n(m),v=n(125),b=n(1),k=n(85),_=n(55),y=n(79),E=n(22),O=n(140),S=n(149),j=n(19),w=n(108),C=n(37);function Notification(t){var n,r=t.anchorLink,i=t.anchorLinkLabel,c=t.blockData,l=t.children,d=t.className,f=t.ctaLabel,p=t.ctaLink,m=t.ctaTarget,N=t.description,x=t.dismiss,L=t.dismissExpires,R=t.format,M=t.id,D=t.isDismissable,A=t.learnMoreDescription,P=t.learnMoreLabel,T=t.learnMoreURL,z=t.logo,F=t.module,I=t.moduleName,U=t.onCTAClick,B=t.onDismiss,W=t.pageIndex,q=t.showOnce,H=t.SmallImageSVG,V=t.title,K=t.type,G=t.WinImageSVG,$=Object(b.useState)(!1),Y=u()($,2),J=Y[0],Q=Y[1],X=Object(b.useState)(!1),Z=u()(X,2),ee=Z[0],te=Z[1],ne=Object(b.useRef)(),re="notification::dismissed::".concat(M),ae=function(){return Object(C.d)(re,new Date,{ttl:null})};function ie(){return(ie=s()(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!B){e.next=5;break}return e.next=5,B(t);case 5:oe();case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oe(){var e=ne.current;Q(!0),setTimeout(s()(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ae();case 2:(null==e?void 0:e.style)&&(e.style.display="none"),n=new Event("notificationDismissed"),document.dispatchEvent(n);case 5:case"end":return t.stop()}}),t)}))),350)}function ce(){return(ce=s()(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),!U){e.next=4;break}return e.next=4,U(t);case 4:D&&oe();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(){return le.apply(this,arguments)}function le(){return(le=s()(o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(C.b)(re);case 2:if(t=e.sent,!(n=t.value)){e.next=10;break}if((r=new Date(n)).setSeconds(r.getSeconds()+parseInt(L,10)),!(r<new Date)){e.next=10;break}return e.next=10,Object(C.a)(re);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}if(Object(v.a)(s()(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(L>0)){e.next=3;break}return e.next=3,se();case 3:if(!D){e.next=9;break}return e.next=6,Object(C.b)(re);case 6:t=e.sent,n=t.cacheHit,te(n);case 9:if(!q){e.next=12;break}return e.next=12,ae();case 12:case"end":return e.stop()}}),e)})))),D&&(void 0===ee||ee))return null;var ue,de=J?"is-closed":"is-open",fe="large"===R&&"win-stats-increase"===K,pe="mdc-layout-grid__cell--span-12";"large"===R?(pe="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 ",fe&&(pe="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"===R&&(pe="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),ue="win-warning"===K?e.createElement(O.a,null):"win-error"===K?e.createElement(S.a,null):"";var ge=e.createElement(b.Fragment,null,c&&e.createElement("div",{className:"mdc-layout-grid__inner"},h()(c,(function(t,n){return e.createElement("div",{key:n,className:g()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":fe,"mdc-layout-grid__cell--span-4-desktop":!fe})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(y.a,t)))})))),me=e.createElement(b.Fragment,null,V&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},V),r&&i&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(j.a,{href:r},i)),N&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(b.isValidElement)(N)?N:e.createElement("span",{dangerouslySetInnerHTML:Object(_.a)(N,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),P&&e.createElement(b.Fragment,null," ",e.createElement(j.a,{href:T,external:!0,inherit:!0},P),A),W&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},W))),l),he=F?e.createElement(w.a,{slug:F,size:19}):e.createElement(k.a,{height:"34",width:"32"});return e.createElement("section",{id:M,ref:ne,className:g()(d,"googlesitekit-publisher-win",(n={},a()(n,"googlesitekit-publisher-win--".concat(R),R),a()(n,"googlesitekit-publisher-win--".concat(K),K),a()(n,"googlesitekit-publisher-win--".concat(de),de),n))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},z&&e.createElement("div",{className:g()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":fe,"mdc-layout-grid__cell--order-1-tablet":fe})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},he),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),H&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(H,null)),e.createElement("div",{className:g()("mdc-layout-grid__cell",pe)},fe?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"},me),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"},ge)):e.createElement(b.Fragment,null,me,ge),p&&e.createElement(E.a,{className:"googlesitekit-notification__cta",href:p,target:m,onClick:function(e){return ce.apply(this,arguments)}},f),D&&x&&e.createElement(j.a,{onClick:function(e){return ie.apply(this,arguments)}},x)),G&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(G,null))),("win-error"===K||"win-warning"===K)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},ue)))))}Notification.propTypes={id:f.a.string.isRequired,className:f.a.string,title:f.a.string.isRequired,description:f.a.node,learnMoreURL:f.a.string,learnMoreDescription:f.a.string,learnMoreLabel:f.a.string,blockData:f.a.array,WinImageSVG:f.a.elementType,SmallImageSVG:f.a.elementType,format:f.a.string,ctaLink:f.a.string,ctaLabel:f.a.string,type:f.a.string,dismiss:f.a.string,isDismissable:f.a.bool,logo:f.a.bool,module:f.a.string,moduleName:f.a.string,pageIndex:f.a.string,dismissExpires:f.a.number,showOnce:f.a.bool,onCTAClick:f.a.func,onDismiss:f.a.func,anchorLink:f.a.string,anchorLinkLabel:f.a.string},Notification.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=Notification}).call(this,n(1))},36:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n(75),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},s=Object(r.a)(c),l=s.enableTracking,u=s.disableTracking,d=s.isTrackingEnabled,f=s.trackEvent;function p(e){e?l():u()}!0===o&&p(d())}).call(this,n(15))},37:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return v})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return k}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(25);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(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 s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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=n.call(e)},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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,u="googlesitekit_".concat("1.39.0","_"),d=["sessionStorage","localStorage"],f=[].concat(d),p=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.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!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}();function g(){return m.apply(this,arguments)}function m(){return(m=o()(a.a.mark((function t(){var n,r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===l){t.next=2;break}return t.abrupt("return",l);case 2:n=c(f),t.prev=3,n.s();case 5:if((r=n.n()).done){t.next=15;break}if(i=r.value,!l){t.next=9;break}return t.abrupt("continue",13);case 9:return t.next=11,p(i);case 11:if(!t.sent){t.next=13;break}l=e[i];case 13:t.next=5;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(3),n.e(t.t0);case 20:return t.prev=20,n.f(),t.finish(20);case 23:return void 0===l&&(l=null),t.abrupt("return",l);case 25:case"end":return t.stop()}}),t,null,[[3,17,20,23]])})))).apply(this,arguments)}var h=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,s=i.value,l=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:s,isError:l});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)}}(),v=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,s,l,d,f,p,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,s=i.timestamp,l=void 0===s?Math.round(Date.now()/1e3):s,d=i.isError,f=void 0!==d&&d,t.next=3,g();case 3:if(!(p=t.sent)){t.next=14;break}return t.prev=5,p.setItem("".concat(u).concat(n),JSON.stringify({timestamp:l,ttl:c,value:r,isError:f})),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)}}(),b=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).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)}}(),k=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);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(15))},379:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityChecks}));var r=n(16),a=n.n(r),i=n(2),o=n(0),c=n.n(o),s=n(5),l=n.n(s),u=n(140),d=n(66),f=n(380),p=n(381),g=n(14),m=n(282),h=l.a.useRegistry;function CompatibilityChecks(t){var n=t.children,r=a()(t,["children"]),o=h(),c=Object(f.a)(function(e){return e.select(g.c).isConnected()?[]:[m.c,m.b,Object(m.e)(e),m.a,m.d]}(o)),s=c.complete,l=c.error,v=l&&e.createElement("div",{className:"googlesitekit-setup-compat mdc-layout-grid mdc-layout-grid--align-left"},e.createElement("div",{className:"googlesitekit-setup__warning"},e.createElement(u.a,null),e.createElement("div",{className:"googlesitekit-heading-4"},Object(i.__)("Your site may not be ready for Site Kit","google-site-kit"))),e.createElement(p.a,{error:l}));return n({props:r,complete:s,error:l,inProgressFeedback:!s&&e.createElement("div",{className:"googlesitekit-margin-left-1rem googlesitekit-align-self-center"},e.createElement("small",null,Object(i.__)("Checking Compatibility…","google-site-kit")),e.createElement(d.a,{small:!0,compress:!0})),ctaFeedback:v})}CompatibilityChecks.propTypes={children:c.a.func.isRequired}}).call(this,n(1))},38:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/location"},380:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(125),u=n(1);function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(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 f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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=n.call(e)},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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){var t=Object(u.useState)(e),n=s()(t,1)[0],r=Object(u.useState)(!(null==n?void 0:n.length)),i=s()(r,2),c=i[0],f=i[1],p=Object(u.useState)(void 0),g=s()(p,2),m=g[0],h=g[1];return Object(l.a)((function(){c||function(){var e=o()(a.a.mark((function e(){var t,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=d(n),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=10;break}return i=r.value,e.next=8,i();case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(0),h(e.t1);case 23:f(!0);case 24:case"end":return e.stop()}}),e,null,[[0,20],[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}()()})),{complete:c,error:m}}},381:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityErrorNotice}));var r=n(18),a=n.n(r),i=n(2),o=n(5),c=n.n(o),s=n(55),l=n(19),u=n(14),d=n(124),f=c.a.useSelect;function CompatibilityErrorNotice(t){var n=t.error,r=f((function(e){return e(u.c).getDeveloperPluginState()}))||{},o=r.installed;switch(n){case d.c:return e.createElement("p",null,Object(i.__)("Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.","google-site-kit"));case d.f:case d.d:return e.createElement("p",null,!o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment. If so, you’ll need to install a helper plugin and verify your production site in Search Console.","google-site-kit")),o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment and you already have the helper plugin. Before you can use Site Kit, please make sure you’ve provided the necessary credentials in the Authentication section and verified your production site in Search Console.","google-site-kit"))," ",e.createElement(l.a,a()({},function(e){var t=e.installed,n=e.active,r=e.installURL,a=e.activateURL,o=e.configureURL;return!t&&r?{"aria-label":Object(i.__)("Install the helper plugin","google-site-kit"),children:Object(i.__)("Install","google-site-kit"),href:r,external:!1}:t&&!n&&a?{"aria-label":Object(i.__)("Activate the helper plugin","google-site-kit"),children:Object(i.__)("Activate","google-site-kit"),href:a,external:!1}:t&&n&&o?{"aria-label":Object(i.__)("Configure the helper plugin","google-site-kit"),children:Object(i.__)("Configure","google-site-kit"),href:o,external:!1}:{"aria-label":Object(i.__)("Learn how to install and use the helper plugin","google-site-kit"),children:Object(i.__)("Learn how","google-site-kit"),href:"https://sitekit.withgoogle.com/documentation/using-site-kit-on-a-staging-environment/",external:!0}}(r),{inherit:!0})));case d.g:return e.createElement("p",null,Object(i.__)("Looks like you may be using a caching plugin which could interfere with setup. Please deactivate any caching plugins before setting up Site Kit. You may reactivate them once setup has been completed.","google-site-kit"));case d.e:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(i.__)("Looks like your site is having a technical issue with requesting data from Google services.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(i.sprintf)(
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
  Object(i.__)('To get more help, ask a question on our <a href="%1$s">support forum</a> and include the text of the original error message: %2$s',"google-site-kit"),"https://wordpress.org/support/plugin/google-site-kit/","<br/>".concat(n)),"\n\t\t\t\t\t\t"),{ALLOWED_TAGS:["a","br"],ALLOWED_ATTR:["href"]})});case d.b:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(i.__)("Looks like the AMP CDN is restricted in your region, which could interfere with setup on the Site Kit service.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(i.sprintf)(
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
  Object(i.__)('To get more help, ask a question on our <a href="%1$s">support forum</a> and include the text of the original error message: %2$s',"google-site-kit"),"https://wordpress.org/support/plugin/google-site-kit/","<br/>".concat(n)),"\n\t\t\t\t\t\t"),{ALLOWED_TAGS:["a","br"],ALLOWED_ATTR:["href"]})});case d.h:return e.createElement("p",null,Object(i.__)("Looks like you’re using a version of WordPress that’s older than 5.0. You can still install and use Site Kit, but some of its features might not work (for example translations).","google-site-kit"))}}}).call(this,n(1))},382:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(13),l=n.n(s),u=n(2),d=n(1),f=n(132),p=n(81),g=n(383),m=n(5),h=n.n(m),v=n(9),b=n(109),k=n(86),_=n(19),y=n(14),E=n(38),O=h.a.useSelect,S=h.a.useDispatch;t.a=function ResetButton(t){var n=t.children,a=O((function(e){return e(y.c).getAdminURL("googlesitekit-splash",{notification:"reset_success"})})),o=O((function(e){return e(y.c).isDoingReset()})),s=O((function(e){return e(E.a).isNavigatingTo(a||"")})),m=Object(d.useState)(!1),h=l()(m,2),j=h[0],w=h[1],C=Object(d.useState)(!1),N=l()(C,2),x=N[0],L=N[1],R=Object(g.a)(w,3e3);Object(d.useEffect)((function(){o||s?w(!0):R(!1)}),[o,s,R]),Object(d.useEffect)((function(){var t=function(e){p.c===e.keyCode&&L(!1)};return x&&e.addEventListener("keyup",t,!1),function(){x&&e.removeEventListener("keyup",t)}}),[x]);var M=S(y.c).reset,D=S(E.a).navigateTo,A=Object(d.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:Object(v.b)(),D(a);case 4:case"end":return e.stop()}}),e)}))),[M,a,D]),P=Object(d.useCallback)((function(){L(!x)}),[x]),T=Object(d.useCallback)((function(){L(!0)}),[]);return r.createElement(d.Fragment,null,r.createElement(_.a,{className:"googlesitekit-reset-button",onClick:T,inherit:!0},n||Object(u.__)("Reset Site Kit","google-site-kit")),r.createElement(k.a,null,r.createElement(b.a,{dialogActive:x,handleConfirm:A,handleDialog:P,title:Object(u.__)("Reset Site Kit","google-site-kit"),subtitle:Object(f.a)(Object(u.__)("Resetting will disconnect all users and remove all Site Kit settings and data within WordPress. <br />You and any other users who wish to use Site Kit will need to reconnect to restore access.","google-site-kit"),{br:r.createElement("br",null)}),confirmButton:Object(u.__)("Reset","google-site-kit"),danger:!0,inProgress:j})))}}).call(this,n(15),n(1))},383:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(466),a=n(23),i=n(1);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=Object(r.a)((function(){return a.debounce.apply(void 0,t)}),t);return Object(i.useEffect)((function(){return function(){return o.cancel()}}),[o]),o}},39:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(31),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},44:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(27);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},47:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(18),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(1))},48:function(e,t,n){"use strict";n.d(t,"j",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return f}));var r="modules/idea-hub",a="IDEA_HUB_BUTTON_CREATE",i="IDEA_HUB_BUTTON_VIEW",o="IDEA_HUB_BUTTON_PIN",c="IDEA_HUB_BUTTON_UNPIN",s="IDEA_HUB_BUTTON_DELETE",l=4,u="IDEA_HUB_ACTIVITY_CREATING_DRAFT",d="IDEA_HUB_ACTIVITY_DRAFT_CREATED",f="IDEA_HUB_ACTIVITY_IS_PROCESSING"},5:function(e,t){e.exports=googlesitekit.data},50:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(31),s=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},l=n(13),u=n.n(l),d=n(39),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),s(n)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function m(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var h=n(2);function v(){var e=function(e){return Object(h.sprintf)(
  /* translators: %s: number of days */
  Object(h._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}}}},512:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(33),l=n.n(s),u=n(34),d=n.n(u),f=n(62),p=n.n(f),g=n(45),m=n.n(g),h=n(46),v=n.n(h),b=n(30),k=n.n(b),_=n(0),y=n.n(_),E=n(2),O=n(1),S=n(26),j=n.n(S),w=n(9),C=n(66),N=n(17),x=n(22);function L(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var R=function(t){m()(SearchConsole,t);var n,a,o=L(SearchConsole);function SearchConsole(t){var n;l()(this,SearchConsole),n=o.call(this,t);var r=e._googlesitekitLegacyData.admin.siteURL;return n.state={loading:!0,sites:!1,selectedURL:r,siteURL:r,connected:!1,errorCode:!1,errorMsg:""},n.handleURLSelect=n.handleURLSelect.bind(p()(n)),n.insertPropertyToSearchConsole=n.insertPropertyToSearchConsole.bind(p()(n)),n.submitPropertyEventHandler=n.submitPropertyEventHandler.bind(p()(n)),n}return d()(SearchConsole,[{key:"componentDidMount",value:(a=c()(i.a.mark((function e(){var t,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,n=t.isAuthenticated,r=t.shouldSetup,n&&r){e.next=3;break}return e.abrupt("return");case 3:this.requestSearchConsoleSiteList();case 4:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"requestSearchConsoleSiteList",value:function(){var e=this,t=this.props.setErrorMessage;c()(i.a.mark((function n(){var r;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,j.a.get("modules","search-console","matched-sites",void 0,{useCache:!1});case 3:if(1!==(r=n.sent).length){n.next=9;break}return n.next=7,e.insertPropertyToSearchConsole(r[0].siteURL);case 7:return e.props.searchConsoleSetup(r[0].siteURL),n.abrupt("return");case 9:if(r.length){n.next=11;break}throw{code:"no_property_matched",message:Object(E.__)("Your site has not been added to Search Console yet. Would you like to add it now?","google-site-kit")};case 11:throw t(""),e.setState({loading:!1,selectedURL:r[0].siteURL,sites:r}),{code:"multiple_properties_matched",message:Object(E.sprintf)(
  /* translators: %d: the number of matching properties */
  Object(E.__)("We found %d existing accounts. Please choose which one to use below.","google-site-kit"),r.length)};case 16:n.prev=16,n.t0=n.catch(0),t(n.t0.message),e.setState({loading:!1,errorCode:n.t0.code,errorMsg:n.t0.message});case 20:case"end":return n.stop()}}),n,null,[[0,16]])})))()}},{key:"insertPropertyToSearchConsole",value:(n=c()(i.a.mark((function e(t){var n,r=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]&&r[1],e.next=3,j.a.set("modules","search-console","site",{siteURL:t});case 3:if(!n){e.next=6;break}return e.next=6,Object(w.v)("search_console_setup","add_new_sc_property");case 6:this.setState({loading:!1,connected:!0});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"submitPropertyEventHandler",value:function(){var e=this,t=this.state,n=t.selectedURL,r=t.errorCode,a=this.props.setErrorMessage;c()(i.a.mark((function t(){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.insertPropertyToSearchConsole(n,"no_property_matched"===r);case 3:a(""),e.props.searchConsoleSetup(n),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(0),a(t.t0.message[0].message),e.setState({loading:!1,errorCode:t.t0.code,errorMsg:t.t0.message[0].message});case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()}},{key:"handleURLSelect",value:function(e,t){this.setState({selectedURL:t.getAttribute("data-value")})}},{key:"matchedForm",value:function(){var e=this.state,t=e.sites,n=e.selectedURL;if(!t)return null;var a=t.map((function(e){var t=e.siteURL;return t.startsWith("sc-domain:")&&(t=Object(E.sprintf)(
  /* translators: %s: Search Console property domain name */
  Object(E.__)("%s (domain property)","google-site-kit"),t.replace(/^sc-domain:/,""))),{label:t,value:e.siteURL}}));return r.createElement(O.Fragment,null,r.createElement("div",{className:"googlesitekit-setup-module__inputs"},r.createElement(N.m,{enhanced:!0,name:"siteProperty",label:Object(E.__)("Choose URL","google-site-kit"),outlined:!0,onEnhancedChange:this.handleURLSelect,options:a,value:n})),r.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},r.createElement(x.a,{onClick:this.submitPropertyEventHandler},Object(E.__)("Continue","google-site-kit"))))}},{key:"noSiteForm",value:function(){var e=this.state.siteURL;return r.createElement(O.Fragment,null,r.createElement("div",{className:"googlesitekit-setup-module__inputs"},r.createElement(N.n,{label:Object(E.__)("Website Address","google-site-kit"),name:"siteProperty",floatingLabelClassName:"mdc-floating-label--float-above",outlined:!0,disabled:!0},r.createElement(N.d,{value:e}))),r.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},r.createElement(x.a,{onClick:this.submitPropertyEventHandler},Object(E.__)("Continue","google-site-kit"))))}},{key:"renderForm",value:function(){var e=this.state,t=e.loading,n=e.sites;return t?r.createElement(O.Fragment,null,r.createElement("p",null,Object(E.__)("We’re locating your Search Console account.","google-site-kit")),r.createElement(C.a,null)):0===n.length?this.noSiteForm():this.matchedForm()}},{key:"render",value:function(){var e=this.props,t=e.isAuthenticated,n=e.shouldSetup,a=this.state,i=a.errorMsg,o=a.connected;return!n||o?SearchConsole.connected():r.createElement("section",{className:"googlesitekit-setup-module googlesitekit-setup-module--search-console"},r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-setup-module__title "},Object(E._x)("Search Console","Service name","google-site-kit")),i&&0<i.length&&r.createElement("p",{className:"googlesitekit-error-text"},i),t&&n&&this.renderForm())}}],[{key:"connected",value:function(){return r.createElement("section",{className:"googlesitekit-setup-module googlesitekit-setup-module--search-console"},r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-setup-module__title "},Object(E._x)("Search Console","Service name","google-site-kit")),r.createElement("p",{className:"googlesitekit-setup-module__text--no-margin"},Object(E.__)("Your Search Console is set up with Site Kit.","google-site-kit")))}}]),SearchConsole}(O.Component);R.propTypes={isAuthenticated:y.a.bool.isRequired,shouldSetup:y.a.bool.isRequired,searchConsoleSetup:y.a.func.isRequired,setErrorMessage:y.a.func.isRequired},t.a=R}).call(this,n(15),n(1))},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/forms"},55:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(21),a=n.n(r),i=n(78),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},56:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.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(1))},57:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/ui"},60:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},61:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return O})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return j}));var r=n(13),a=n.n(r),i=n(21),o=n.n(i),c=n(6),s=n.n(c),l=n(16),u=n.n(l),d=n(23),f=n(59),p=n.n(f),g=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=h(h({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?O(a,h(h({},o),{},{unit:"second"})):Object(g.sprintf)(
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
  Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?O(a,h(h({},o),{},{unit:"second"})):"",r?O(r,h(h({},o),{},{unit:"minute"})):"",n?O(n,h(h({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(g.sprintf)(// translators: %s number of seconds with "s" as the abbreviated unit.
  Object(g.__)("%ds","google-site-kit"),a);if(0===e)return t;var i=Object(g.sprintf)(// translators: %s number of minutes with "m" as the abbreviated unit.
  Object(g.__)("%dm","google-site-kit"),r),o=Object(g.sprintf)(// translators: %s number of hours with "h" as the abbreviated unit.
  Object(g.__)("%dh","google-site-kit"),n);return Object(g.sprintf)(
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
  Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",r?i:"",n?o:"").trim()}}},k=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},_=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in millions.
  Object(g.__)("%sM","google-site-kit"),O(k(e),e%10==0?{}:t)):1e4<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands.
  Object(g.__)("%sK","google-site-kit"),O(k(e))):1e3<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands.
  Object(g.__)("%sK","google-site-kit"),O(k(e),e%10==0?{}:t)):O(e,{signDisplay:"never",maximumFractionDigits:1})},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=h({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?_(e):"duration"===i?v(e,t):O(e,n)},E=p()(console.warn),O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?j():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){E("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,f=Object.entries(i);d<f.length;d++){var p=a()(f[d],2),g=p[0],m=p[1];c[g]&&m===c[g]||(s.includes(g)||(l[g]=m))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?j():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:i,type:c});return s.format(e)}
  /* translators: used between list items, there is a space after the comma. */var l=Object(g.__)(", ","google-site-kit");return e.join(l)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(15))},65:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){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 r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)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 s=document.createElement("span");return s.setAttribute("class","screen-reader-text"),s.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(s),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},l=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].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 r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var s=a()(r.value,2),l=s[0],d=s[1];i[l]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(15))},66:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,r=t.small,a=t.compress,i=t.indeterminate,c=t.height,s=t.progress,l=void 0!==c?Math.round(c/2):void 0,u=s?"scaleX(".concat(s,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:l,marginBottom:l},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":r,"mdc-linear-progress--compress":a})},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:a.a.string,small:a.a.bool,compress:a.a.bool,indeterminate:a.a.bool,progress:a.a.number,height:a.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(1))},70:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(21),a=n.n(r),i=n(64),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},71:function(e,t,n){"use strict";(function(e){n(33),n(34)}).call(this,n(15))},72:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},73:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}},74:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(179),a=n(56),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,s,l,u,d,f,p,g,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(l=s[0])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(p=f.totals)||void 0===p||null===(g=p[0])||void 0===g||null===(m=g.values)||void 0===m?void 0:m[0])}}).call(this,n(1))},75:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(76),o=n(77);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(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){a()(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 l={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=s(s({},l),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(15))},756:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardSplashApp}));var r=n(5),a=n.n(r),i=n(14),o=n(757),c=n(759),s=a.a.useSelect;function DashboardSplashApp(){var t=s((function(e){return e(i.c).isUsingProxy()}));return!0===t?e.createElement(o.a,null):!1===t?e.createElement(c.a,null):null}}).call(this,n(1))},757:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(503),l=n.n(s),u=n(8),d=n.n(u),f=n(1),p=n(2),g=n(401),m=n(5),h=n.n(m),v=n(758),b=n(9),k=n(180),_=n(22),y=n(382),E=n(214),O=n(35),S=n(298),j=n(379),w=n(14),C=n(11),N=n(38),x=n(106),L=n(181),R=h.a.useSelect,M=h.a.useDispatch;t.a=function SetupUsingProxy(){var t,n,a=Object(x.a)("serviceSetupV2"),o=R((function(e){var t=e(w.c),n=e(C.a);return{isSecondAdmin:t.hasConnectedAdmins(),isResettable:t.isResettable(),siteURL:t.getReferenceSiteURL(),proxySetupURL:t.getProxySetupURL(),disconnectedReason:n.getDisconnectedReason()}})),s=o.isSecondAdmin,u=o.isResettable,m=o.siteURL,h=o.proxySetupURL,D=o.disconnectedReason,A=M(N.a).navigateTo,P=Object(f.useCallback)(function(){var e=c()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,Object(b.v)("plugin_setup","proxy_start_setup_landing_page");case 3:A(h);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[h,A]),T=e._googlesitekitLegacyData.setup.errorMessage;return"revoked"===Object(g.a)(location.href,"googlesitekit_context")?(t=Object(p.sprintf)(
  /* translators: %s is the site's hostname. (e.g. example.com) */
  Object(p.__)("You revoked access to Site Kit for %s","google-site-kit"),l.a.toUnicode(new URL(m).hostname)),n=Object(p.__)('Site Kit will no longer have access to your account. If you’d like to reconnect Site Kit, click "Sign in with Google" below to generate new credentials.',"google-site-kit")):s?(t=Object(p.__)("Connect your Google account to Site Kit","google-site-kit"),n=Object(p.__)("Site Kit has already been configured by another admin of this site. To use Site Kit as well, sign in with your Google account which has access to Google services for this site (e.g. Google Analytics). Once you complete the 3 setup steps, you’ll see stats from all activated Google products.","google-site-kit")):C.b===D?(t=Object(p.__)("Reconnect Site Kit","google-site-kit"),n=Object(p.__)("Looks like the URL of your site has changed. In order to continue using Site Kit, you'll need to reconnect, so that your plugin settings are updated with the new URL.","google-site-kit")):(t=Object(p.__)("Set up Site Kit","google-site-kit"),n=Object(p.__)("Get insights on how people find your site, as well as how to improve and monetize your site’s content, directly in your WordPress dashboard.","google-site-kit")),r.createElement(f.Fragment,null,r.createElement(k.a,null,r.createElement(L.a,null)),T&&r.createElement(O.a,{id:"setup_error",type:"win-error",title:Object(p.__)("Oops! There was a problem during set up. Please try again.","google-site-kit"),description:T,isDismissable:!1}),"reset_success"===Object(g.a)(location.href,"notification")&&r.createElement(O.a,{id:"reset_success",title:Object(p.__)("Site Kit by Google was successfully reset.","google-site-kit"),isDismissable:!1}),r.createElement("div",{className:"googlesitekit-setup"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},r.createElement(E.a,null,r.createElement("section",{className:"googlesitekit-setup__splash"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:d()("mdc-layout-grid__inner",{"googlesitekit-setup__content":a})},a&&r.createElement("div",{className:" googlesitekit-setup__icon mdc-layout-grid__cell mdc-layout-grid__cell--span-12-tablet mdc-layout-grid__cell--span-6-desktop "},r.createElement(v.a,{width:"570",height:"336"})),r.createElement("div",{className:d()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12-tablet",{"mdc-layout-grid__cell--span-6-desktop":a,"mdc-layout-grid__cell--span-12-desktop":!a})},r.createElement("h1",{className:"googlesitekit-setup__title"},t),r.createElement("p",{className:"googlesitekit-setup__description"},n),r.createElement(j.a,null,(function(e){var t=e.complete,n=e.inProgressFeedback,a=e.ctaFeedback;return r.createElement(f.Fragment,null,a,r.createElement(S.a,{optinAction:"analytics_optin_setup_fallback"}),r.createElement("div",{className:"googlesitekit-start-setup-wrap"},r.createElement(_.a,{className:"googlesitekit-start-setup",href:h,onClick:P,disabled:!t},Object(p.__)("Sign in with Google","google-site-kit")),n,!s&&u&&t&&r.createElement(y.a,null)))}))))))))))))}}).call(this,n(15),n(1))},758:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M170.78 167.21c11.36-5.5 21.2 1.59 22.73 7",stroke:"#4285F4",strokeLinejoin:"round",strokeWidth:7}),o=r.createElement("ellipse",{cx:292.73,cy:307.44,rx:252.51,ry:10.01,fill:"#F1F3F4"}),c=r.createElement("path",{d:"M93.23 212.44c-6 6.78-17 9.12-25.62 8.24-14.77-1.52-23-11-28.38-24",stroke:"#4285F4",strokeLinejoin:"round",strokeWidth:7}),s=r.createElement("path",{d:"M93.23 212.44a24.66 24.66 0 01-11.81 7",stroke:"#1A73E8",strokeLinejoin:"round",strokeWidth:7}),l=r.createElement("path",{d:"M125.33 206.44L112.12 242a60 60 0 00.12 42.15l11.09 21.34h-14.22M125.33 206.44l-9.55 25.67M146.34 216.44v89h13.23M125.33 206.44a72.1 72.1 0 00-5.25 13.5M146.34 216.44v7",stroke:"#1967D2",strokeLinejoin:"round",strokeWidth:7}),u=r.createElement("path",{d:"M142.65 219.64a61.5 61.5 0 01-80.49-33l113.46-47.52a61.51 61.51 0 01-32.97 80.52z",fill:"#1A73E8"}),d=r.createElement("path",{d:"M146.93 202c7.74-4.34 12.25-12.92 12.66-22.39l-43.54 17.79",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),f=r.createElement("path",{d:"M385.07 137.93c18 7.48 43.08 2.83 56-12.14 11.22-13 11.51-31.12 6.34-46.75M322.39 152.05c-24.41 12-41.12 72.46-24.79 98M365.34 177.13c2.77 13.29 5.23 29.83 9.9 45.42",stroke:"#FBBC04",strokeLinejoin:"round",strokeWidth:7}),p=r.createElement("path",{d:"M366 239.9l3.21 28.92a29.93 29.93 0 01-3.14 17L356 305.44h14.22M341.55 234.9v70.54h-13.23",stroke:"#F29900",strokeLinejoin:"round",strokeWidth:7}),g=r.createElement("path",{stroke:"#EA8600",strokeLinejoin:"round",strokeWidth:7,d:"M366.02 239.9l1.16 10.44M341.55 234.9v15.44"}),m=r.createElement("path",{fill:"#F9AB00",d:"M396.25 159.92l3.18-81.94-81.94-3.17-3.18 81.94-3.18 81.94 81.95 3.18 3.17-81.95z"}),h=r.createElement("path",{d:"M335.08 118.92c5 15.13 20.44 24.7 38.06 14.51M340 115c-2.94 3.32-5.56 4.45-11.13 5.07",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),v=r.createElement("path",{d:"M326.51 226.26c9.21 1.09 46.63 9.81 36.62-24",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7}),b=r.createElement("path",{d:"M255.19 243.91c-1.95 22.25-1.06 43.25 6 61.53H277M227.09 243.91c-2 21.75-.54 42.43 6 61.53h-14.62",stroke:"#188038",strokeLinejoin:"round",strokeWidth:7}),k=r.createElement("path",{d:"M255.19 243.91a212.54 212.54 0 00-.86 22.78M227.09 243.91q-.75 8.16-.82 16.11",stroke:"#137333",strokeLinejoin:"round",strokeWidth:7}),_=r.createElement("path",{d:"M193.58 180c-2.07 8.2-14.68 10.84-20.68 15.6-1.52 1.21-3.64 2.28-4.66 4a5 5 0 00-.6 1.84",stroke:"#4285F4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:7}),y=r.createElement("path",{d:"M163.46 270.46c-9.77-6.25-16-20.14-13.11-31.58 2.53-9.9 14-22.34 23.45-25.13",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7}),E=r.createElement("path",{fill:"#1E8E3E",d:"M256.35 176.56l-81.51-8.96-8.96 81.52 81.51 8.96 81.52 8.96 8.96-81.51-81.52-8.97z"}),O=r.createElement("path",{d:"M221.29 221.77C234.34 238 260 245 280.76 228.31",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),S=r.createElement("path",{d:"M486.65 220.21c17.35 10.79 35.85 29.69 49.2-6.29",stroke:"#E94235",strokeLinejoin:"round",strokeWidth:7}),j=r.createElement("path",{d:"M486.65 220.21c4.33 2.7 8.74 5.9 13.12 8.63",stroke:"#D93025",strokeLinejoin:"round",strokeWidth:7}),w=r.createElement("path",{d:"M392.08 212.43c2.38 17.25 3.91 37.24 0 54.26",stroke:"#E94235",strokeLinejoin:"round",strokeWidth:7}),C=r.createElement("path",{d:"M392.08 212.43c1 7.16 1.82 14.78 2.19 22.47",stroke:"#D93025",strokeLinejoin:"round",strokeWidth:7}),N=r.createElement("path",{stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:7,d:"M430.17 218.39l-8.54 87.05h-22.3M469.93 218.39l-8.54 87.05h20.74"}),x=r.createElement("path",{stroke:"#B31412",strokeLinejoin:"round",strokeWidth:7,d:"M430.17 218.39l-3.67 37.38M469.93 218.39l-3.33 33.95"}),L=r.createElement("circle",{cx:444.5,cy:188.84,r:61.5,fill:"#D93025"}),R=r.createElement("path",{d:"M464.88 219.51c-9.5 12.78-27.2 17-40.68 1.74M430.17 219.55c-4.42-.27-7.08.79-11.45 4.29",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),M=r.createElement("path",{d:"M167.64 201.39a8.07 8.07 0 002.46 7.06c3.38 3 10.33 1.86 12-2.55"}),D=r.createElement("path",{d:"M517.93 197.07l-.44 2.26a3 3 0 00.93 2.81l4.27 3.85a6 6 0 011.53 6.75l-4.56 11.07a20.08 20.08 0 00-1.5 8.14l.31 12.64a2 2 0 001.62 1.91l2.75.54a2 2 0 002.22-1.16l5.06-11.58a20 20 0 001.68-8.11v-12a6 6 0 014-5.68l5.4-1.95a3 3 0 001.93-2.25l.44-2.26z",fill:"#80868B"}),A=r.createElement("path",{fill:"#DADCE0",d:"M520.641 183.266l25.565 5.006-2.697 13.769-25.564-5.007z"}),P=r.createElement("path",{stroke:"#BDC1C6",strokeMiterlimit:10,strokeWidth:.44,d:"M520.05 186.25l25.56 5.01M518.51 194.12l25.56 5.01"}),T=r.createElement("path",{d:"M525.462 161.77l24.446 4.787a.59.59 0 01.465.693l-4.114 21.01-25.604-5.013 4.12-21.04a.59.59 0 01.693-.466z",fill:"#5F6368"}),z=r.createElement("path",{stroke:"#BDC1C6",strokeMiterlimit:10,strokeWidth:.44,d:"M523.58 183.88l4.23-21.63M527.51 184.65l4.24-21.63M531.44 185.42l4.24-21.63M535.37 186.19l4.24-21.63M539.31 186.96l4.24-21.63M543.24 187.73l4.24-21.63"}),F=r.createElement("path",{d:"M549.45 166.49l-23.6-4.63a1 1 0 00-1.18.79l-1.35 6.89 2.56 9.24a3 3 0 004.38 1.82l8.63-4.89a6 6 0 017.33 1.1l1.84 1.95 2.18-11.1a1 1 0 00-.79-1.17z",fill:"#24C1E0"}),I=r.createElement("path",{d:"M91.3 137.33l-14.21-11.47-57 70.65a9.12 9.12 0 001.38 12.84A9.12 9.12 0 0034.33 208zm-60.91 61a5 5 0 11-7.09.76 5 5 0 017.09-.78z",fill:"#BDC1C6"}),U=r.createElement("path",{d:"M83.68 117.3l15.58 9.54 10-16.37a22.82 22.82 0 11-15.38-9.85z",fill:"#DADCE0"}),B=r.createElement("path",{fill:"#DADCE0",d:"M81.24 122.25l-6.01 5.62 16.25 9.95 5.94-5.65-16.18-9.92z"}),W=r.createElement("path",{fill:"#F8F9FA",d:"M95.68 131.1l-6.01 5.61 1.75 1.07 6-5.61-1.74-1.07zM92.07 128.89l-6.01 5.61 1.75 1.07 6-5.61-1.74-1.07zM88.46 126.67l-6.01 5.62 1.75 1.07 6-5.62-1.74-1.07zM84.85 124.46l-6.01 5.62 1.75 1.07 6-5.62-1.74-1.07zM81.24 122.25l-6.01 5.62 1.75 1.07 6-5.62-1.74-1.07z"}),q=r.createElement("path",{fill:"#BDC1C6",d:"M466.08 97.09l-4.91 2.54-33.57-70.67 4.91-2.54 33.57 70.67z"}),H=r.createElement("path",{fill:"#DADCE0",d:"M437.63 33.71l-7.57 3.92-5.62-15.68 4.63-2.4 8.56 14.16z"}),V=r.createElement("path",{d:"M466.83 105.11a7.34 7.34 0 01-10.14-3.11l-15.25-32.1 13.88-7.18 15.24 32.1a8 8 0 01-3.73 10.29z"}),K=r.createElement("path",{d:"M464.56 100.33A4 4 0 01459 98.6l-14.41-30.38 7.58-3.92 14.43 30.38a4.35 4.35 0 01-2.04 5.65z",fill:"#5F6368"}),G=r.createElement("path",{fill:"#BDC1C6",d:"M145.57 277.902l47.608-38.744 8.01 9.842-47.607 38.745z"}),$=r.createElement("path",{fill:"#9AA0A6",d:"M189.085 242.485l4.087-3.326 8.01 9.842-4.087 3.327z"}),Y=r.createElement("path",{fill:"#BDC1C6",d:"M211.607 241.354l8.143 10.005-7.415 6.035-8.143-10.006z"}),J=r.createElement("rect",{x:209.99,y:252.12,width:16.52,height:9.9,rx:1.53,transform:"rotate(140.86 218.257 257.06)",fill:"#DADCE0"}),Q=r.createElement("path",{d:"M175.87 220.73c4.56-.39 13.4-.24 24.73 4.4a14.61 14.61 0 015.8 4.3l9 11.11a1.53 1.53 0 01-.22 2.16l-10.44 8.5a1.53 1.53 0 01-2.15-.23l-8-9.81a44.24 44.24 0 01-4.69-7.16c-1.21-2.28-4.66-6.23-14.42-11.22a1.06 1.06 0 01.39-2.05z",fill:"#DADCE0"}),X=r.createElement("rect",{x:158.98,y:236.29,width:3.47,height:74.9,rx:1.73,transform:"rotate(50.86 160.713 273.711)",fill:"#BDC1C6"}),Z=r.createElement("path",{d:"M166.85 260.56l-38.79 31.57a6.34 6.34 0 008 9.84l38.79-31.57z",fill:"#5F6368"}),ee=r.createElement("path",{d:"M163.46 270.46c-9.77-6.25-16-20.14-13.11-31.58",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7});t.a=function SvgWelcome(e){return r.createElement("svg",a({viewBox:"0 0 570 336",fill:"none"},e),i,o,c,s,l,u,d,f,p,g,m,h,v,b,k,_,y,E,O,S,j,w,C,N,x,L,R,M,D,A,P,T,z,F,I,U,B,W,q,H,V,K,G,$,Y,J,Q,X,Z,ee)}},759:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(33),l=n.n(s),u=n(34),d=n.n(u),f=n(62),p=n.n(f),g=n(45),m=n.n(g),h=n(46),v=n.n(h),b=n(30),k=n.n(b),_=n(23),y=n(2),E=n(1),O=n(779),S=n(5),j=n.n(S),w=n(26),C=n.n(w),N=n(14),x=n(180),L=n(22),R=n(214),M=n(9),D=n(760),A=n(777),P=n(181);function T(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var z=j.a.withSelect,F=function(t){m()(SetupUsingGCP,t);var n,a=T(SetupUsingGCP);function SetupUsingGCP(t){var n;l()(this,SetupUsingGCP),n=a.call(this,t);var r=e._googlesitekitLegacyData.admin.connectURL,i=e._googlesitekitLegacyData.setup,o=i.isAuthenticated,c=i.hasSearchConsoleProperty,s=i.isSiteKitConnected,u=i.isVerified,d=i.needReauthenticate,f=e._googlesitekitLegacyData.permissions.canSetup;return n.state={canSetup:f,isAuthenticated:o,isVerified:u,needReauthenticate:d,hasSearchConsoleProperty:c,hasSearchConsolePropertyFromTheStart:c,connectURL:r,errorMsg:"",isSiteKitConnected:s,completeSetup:!1},n.siteConnectedSetup=n.siteConnectedSetup.bind(p()(n)),n.siteVerificationSetup=n.siteVerificationSetup.bind(p()(n)),n.searchConsoleSetup=n.searchConsoleSetup.bind(p()(n)),n.resetAndRestart=n.resetAndRestart.bind(p()(n)),n.completeSetup=n.completeSetup.bind(p()(n)),n.setErrorMessage=n.setErrorMessage.bind(p()(n)),n}return d()(SetupUsingGCP,[{key:"resetAndRestart",value:(n=c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C.a.set("core","site","reset");case 2:Object(M.b)(),this.setState({isSiteKitConnected:!1,isAuthenticated:!1,isVerified:!1,hasSearchConsoleProperty:!1,completeSetup:!1,errorMsg:""});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"completeSetup",value:function(){this.setState({completeSetup:!0})}},{key:"siteConnectedSetup",value:function(e){this.setState({isSiteKitConnected:e})}},{key:"siteVerificationSetup",value:function(e){this.setState({isVerified:e})}},{key:"searchConsoleSetup",value:function(e){this.setState({hasSearchConsoleProperty:e})}},{key:"isSetupFinished",value:function(){var e=this.state,t=e.isSiteKitConnected,n=e.isAuthenticated,r=e.isVerified,a=e.hasSearchConsoleProperty,i=e.completeSetup;return t&&n&&r&&a&&i}},{key:"setErrorMessage",value:function(e){this.setState({errorMsg:e})}},{key:"getApplicableSteps",value:function(){var e,t=D.a,n=Object.keys(t);for(e=0;e<n.length;e++)t[n[e]].isApplicable(this.state)||delete t[n[e]];return t}},{key:"currentStep",value:function(e){var t,n=Object.keys(e);for(t=0;t<n.length-1;t++)if(!e[n[t]].isCompleted(this.state))return n[t];return n[t]}},{key:"stepStatus",value:function(e,t){return e[t].isCompleted(this.state)?"completed":t===this.currentStep(e)?"inprogress":""}},{key:"render",value:function(){var t=this,n=this.state,a=n.canSetup,o=n.isAuthenticated,s=n.isVerified,l=n.needReauthenticate,u=n.hasSearchConsoleProperty,d=n.connectURL,f=n.isSiteKitConnected,p=this.props.redirectURL;this.isSetupFinished()&&Object(_.delay)((function(){e.location.replace(p)}),500,"later");var g=this.getApplicableSteps(),m=this.currentStep(g),h=g[m].Component,v=r.createElement(h,{siteConnectedSetup:this.siteConnectedSetup,connectURL:d,siteVerificationSetup:this.siteVerificationSetup,searchConsoleSetup:this.searchConsoleSetup,completeSetup:this.completeSetup,isSiteKitConnected:f,isAuthenticated:o,isVerified:s,needReauthenticate:l,hasSearchConsoleProperty:u,setErrorMessage:this.setErrorMessage,resetAndRestart:g.clientCredentials?this.resetAndRestart:void 0}),b=a,k=!b&&!o;return r.createElement(E.Fragment,null,r.createElement(x.a,null,r.createElement(P.a,null)),r.createElement("div",{className:"googlesitekit-wizard"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement(R.a,null,r.createElement("section",{className:"googlesitekit-wizard-progress"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},b&&r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement("div",{className:"googlesitekit-wizard-progress__steps"},Object.keys(g).map((function(e,n){return r.createElement(A.a,{key:g[e].title,currentStep:m===e,title:g[e].title,step:n+1,status:t.stepStatus(g,e),warning:g[e].warning,error:g[e].error,stepKey:e})})))))),k&&r.createElement("div",{className:"googlesitekit-setup__footer"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement("h1",{className:"googlesitekit-setup__title"},Object(y.__)("Authenticate Site Kit","google-site-kit")),r.createElement("p",{className:"googlesitekit-setup__description"},Object(y.__)("Please sign into your Google account to begin.","google-site-kit")),r.createElement(L.a,{href:"#",onClick:c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(M.v)("plugin_setup","signin_with_google");case 2:document.location=d;case 3:case"end":return e.stop()}}),e)})))},Object(y.__)("Sign in with Google","google-site-kit"))))))),b&&v))))))}}]),SetupUsingGCP}(E.Component);t.a=Object(O.a)(z((function(e){return{redirectURL:e(N.c).getAdminURL("googlesitekit-dashboard",{notification:"authentication_success"})}})))(F)}).call(this,n(15),n(1))},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(44),a=n(27);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(15))},760:function(e,t,n){"use strict";var r=n(2),a=n(761),i=n(762),o=n(764),c=n(765),s={authentication:{title:Object(r.__)("Authenticate","google-site-kit"),required:!0,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&!e.needReauthenticate},Component:a.a},verification:{title:Object(r.__)("Verify URL","google-site-kit"),required:!0,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified},Component:i.a},seachConsoleProperty:{title:Object(r.__)("Connect Search Console","google-site-kit"),required:!0,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified&&e.hasSearchConsoleProperty},Component:o.a},completeSetup:{title:Object(r._x)("Finish","complete module setup","google-site-kit"),required:!1,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified&&e.hasSearchConsoleProperty},Component:c.a}};t.a=s},761:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(33),s=n.n(c),l=n(34),u=n.n(l),d=n(45),f=n.n(d),p=n(46),g=n.n(p),m=n(30),h=n.n(m),v=n(0),b=n.n(v),k=n(2),_=n(1),y=n(9),E=n(22),O=n(19),S=n(298);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var a=h()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var w=function(t){f()(WizardStepAuthentication,t);var n=j(WizardStepAuthentication);function WizardStepAuthentication(){return s()(this,WizardStepAuthentication),n.apply(this,arguments)}return u()(WizardStepAuthentication,[{key:"render",value:function(){var t=this.props,n=t.connectURL,r=t.needReauthenticate,i=t.resetAndRestart;return e.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--two"},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("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(k.__)("Authenticate with Google","google-site-kit")),e.createElement("p",null,Object(k.__)("Please sign into your Google account to begin.","google-site-kit")),r&&e.createElement("p",{className:"googlesitekit-error-text"},Object(k.__)("You did not grant access to one or more of the requested scopes. Please grant all scopes that you are prompted for.","google-site-kit")),e.createElement("p",null,e.createElement(E.a,{onClick:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(y.v)("plugin_setup","signin_with_google");case 2:document.location=n;case 3:case"end":return e.stop()}}),e)})))},Object(k.__)("Sign in with Google","google-site-kit")),i&&e.createElement(O.a,{className:"googlesitekit-wizard-step__back",onClick:i},Object(k.__)("Back","google-site-kit"))),e.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},e.createElement(S.a,{optinAction:"analytics_optin_setup_fallback"}))))))}}]),WizardStepAuthentication}(_.Component);w.propTypes={connectURL:b.a.string.isRequired,resetAndRestart:b.a.func},t.a=w}).call(this,n(1))},762:function(e,t,n){"use strict";(function(e){var r=n(18),a=n.n(r),i=n(33),o=n.n(i),c=n(34),s=n.n(c),l=n(45),u=n.n(l),d=n(46),f=n.n(d),p=n(30),g=n.n(p),m=n(0),h=n.n(m),v=n(1),b=n(763);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var _=function(t){u()(WizardStepVerification,t);var n=k(WizardStepVerification);function WizardStepVerification(){return o()(this,WizardStepVerification),n.apply(this,arguments)}return s()(WizardStepVerification,[{key:"render",value:function(){var t=!this.props.isVerified;return e.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--three"},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(b.a,a()({shouldSetup:t},this.props))))))}}]),WizardStepVerification}(v.Component);_.propTypes={siteVerificationSetup:h.a.func.isRequired},t.a=_}).call(this,n(1))},763:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(33),l=n.n(s),u=n(34),d=n.n(u),f=n(62),p=n.n(f),g=n(45),m=n.n(g),h=n(46),v=n.n(h),b=n(30),k=n.n(b),_=n(0),y=n.n(_),E=n(2),O=n(1),S=n(26),j=n.n(S),w=n(9),C=n(17),N=n(22),x=n(66);function L(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var R=function(t){m()(SiteVerification,t);var n,a,o=L(SiteVerification);function SiteVerification(e){var t;l()(this,SiteVerification);var n=(t=o.call(this,e)).props,r=n.isAuthenticated,a=n.shouldSetup;return t.state={loading:r&&a,loadingMsg:Object(E.__)("Getting your verified sites…","google-site-kit"),siteURL:" ",selectedURL:"",errorCode:!1,errorMsg:""},t.onProceed=t.onProceed.bind(p()(t)),t}return d()(SiteVerification,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isAuthenticated,n=e.shouldSetup;t&&n&&this.requestSitePropertyList()}},{key:"requestSitePropertyList",value:function(){var t=this,n=this.props.setErrorMessage;c()(i.a.mark((function r(){var a,o,c,s,l;return i.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,j.a.get("modules","site-verification","verification",void 0,{useCache:!1});case 3:if(a=r.sent,o=a.verified,c=a.identifier,!o){r.next=17;break}return r.next=9,Object(w.v)("verification_setup","verification_check_true");case 9:return r.next=11,t.insertSiteVerification(c);case 11:if(!0!==r.sent.verified){r.next=15;break}return t.props.siteVerificationSetup(!0),r.abrupt("return",!0);case 15:r.next=19;break;case 17:return r.next=19,Object(w.v)("verification_setup","verification_check_false");case 19:t.setState({loading:!1,siteURL:c}),r.next=28;break;case 22:r.prev=22,r.t0=r.catch(0),s=r.t0.message,Object(w.x)(r.t0.message)&&(l=JSON.parse(r.t0.message),s=l.error.message||r.t0.message),n(s),t.setState({loading:!1,errorCode:r.t0.code,errorMsg:s,siteURL:e._googlesitekitLegacyData.admin.siteURL});case 28:case"end":return r.stop()}}),r,null,[[0,22]])})))()}},{key:"insertSiteVerification",value:(a=c()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j.a.set("modules","site-verification","verification",{siteURL:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"onProceed",value:(n=c()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.props.setErrorMessage,r=this.state.siteURL?this.state.siteURL:e._googlesitekitLegacyData.admin.siteURL,n(""),this.setState({loading:!0,loadingMsg:Object(E.__)("Verifying…","google-site-kit"),errorCode:!1,errorMsg:""}),t.prev=4,t.next=7,this.insertSiteVerification(r);case 7:!0===t.sent.verified&&(Object(w.v)("verification_setup","verification_insert_tag"),this.props.siteVerificationSetup(!0)),t.next=17;break;case 11:t.prev=11,t.t0=t.catch(4),a=t.t0.message,Object(w.x)(t.t0.message)&&(o=JSON.parse(t.t0.message),a=o.error.message||t.t0.message),n(a),this.setState({loading:!1,errorCode:t.t0.code,errorMsg:a});case 17:case"end":return t.stop()}}),t,this,[[4,11]])}))),function(){return n.apply(this,arguments)})},{key:"renderForm",value:function(){var e=this.state,t=e.loading,n=e.loadingMsg,a=e.siteURL,i=r.createElement(O.Fragment,null,n&&r.createElement("p",null,n),r.createElement(x.a,null));return t?i:r.createElement(O.Fragment,null,r.createElement("div",{className:"googlesitekit-wizard-step__inputs"},r.createElement(C.n,{label:Object(E.__)("Website Address","google-site-kit"),name:"siteProperty",floatingLabelClassName:"mdc-floating-label--float-above",outlined:!0,disabled:!0},r.createElement(C.d,{value:a}))),r.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},r.createElement(N.a,{onClick:this.onProceed},Object(E.__)("Continue","google-site-kit"))))}},{key:"render",value:function(){var e=this.props,t=e.isAuthenticated,n=e.shouldSetup,a=this.state.errorMsg;return n?r.createElement(O.Fragment,null,r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(E.__)("Verify URL","google-site-kit")),r.createElement("p",{className:"googlesitekit-wizard-step__text"},Object(E.__)("We will need to verify your URL for Site Kit.","google-site-kit")),a&&0<a.length&&r.createElement("p",{className:"googlesitekit-error-text"},a),t&&this.renderForm()):SiteVerification.renderSetupDone()}}],[{key:"renderSetupDone",value:function(){return r.createElement(O.Fragment,null,r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(E.__)("Verify URL","google-site-kit")),r.createElement("p",{className:"googlesitekit-wizard-step__text"},Object(E.__)("Congratulations, your site has been verified!","google-site-kit")))}}]),SiteVerification}(O.Component);R.propTypes={isAuthenticated:y.a.bool.isRequired,shouldSetup:y.a.bool.isRequired,siteVerificationSetup:y.a.func.isRequired,completeSetup:y.a.func,setErrorMessage:y.a.func.isRequired},t.a=R}).call(this,n(15),n(1))},764:function(e,t,n){"use strict";(function(e){var r=n(18),a=n.n(r),i=n(33),o=n.n(i),c=n(34),s=n.n(c),l=n(45),u=n.n(l),d=n(46),f=n.n(d),p=n(30),g=n.n(p),m=n(0),h=n.n(m),v=n(1),b=n(512);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var _=function(t){u()(WizardStepSearchConsoleProperty,t);var n=k(WizardStepSearchConsoleProperty);function WizardStepSearchConsoleProperty(){return o()(this,WizardStepSearchConsoleProperty),n.apply(this,arguments)}return s()(WizardStepSearchConsoleProperty,[{key:"render",value:function(){var t=this.props,n=t.isVerified,r=t.hasSearchConsoleProperty,i=n&&!r;return e.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--four"},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 "},i?e.createElement(b.a,a()({shouldSetup:i},this.props)):b.a.connected()))))}}]),WizardStepSearchConsoleProperty}(v.Component);_.propTypes={searchConsoleSetup:h.a.func.isRequired},t.a=_}).call(this,n(1))},765:function(e,t,n){"use strict";(function(e,r){var a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=n(45),l=n.n(s),u=n(46),d=n.n(u),f=n(30),p=n.n(f),g=n(0),m=n.n(g),h=n(2),v=n(1),b=n(9),k=n(22);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d()(this,n)}}var y=function(t){l()(WizardStepCompleteSetup,t);var n=_(WizardStepCompleteSetup);function WizardStepCompleteSetup(t){var r;return i()(this,WizardStepCompleteSetup),r=n.call(this,t),e._googlesitekitLegacyData.setup.hasSearchConsoleProperty?Object(b.v)("plugin_setup","user_verified"):Object(b.v)("plugin_setup","site_verified"),r}return c()(WizardStepCompleteSetup,[{key:"render",value:function(){return r.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--five"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(h.__)("Congratulations!","google-site-kit")),r.createElement("p",null,Object(h.__)("You successfully completed the Site Kit setup and connected Search Console. Check the dashboard for more services to connect.","google-site-kit")),r.createElement("div",{className:"googlesitekit-wizard-step__action"},r.createElement(k.a,{id:"wizard-step-five-proceed",onClick:this.props.completeSetup},Object(h.__)("Go to Dashboard","google-site-kit")))))))}}]),WizardStepCompleteSetup}(v.Component);y.propTypes={completeSetup:m.a.func.isRequired},t.a=y}).call(this,n(15),n(1))},77:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),s=n.n(c),l=n(44),u=n(32);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(t,n,r){var i=Object(l.a)(n);return function(){var n=s()(a.a.mark((function n(o,c,s,l){var d,p,g,m,h,v,b,k;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(g=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(p=d.ioo)||void 0===p?void 0:p.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return k={send_to:v,event_category:o,event_label:s,value:l,dimension1:m,dimension2:g?"true":"false",dimension3:b,dimension4:"1.39.0",dimension5:Array.from(u.a).join(", ")},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,f(f({},k),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(15))},777:function(e,t,n){"use strict";var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(45),s=n.n(c),l=n(46),u=n.n(l),d=n(30),f=n.n(d),p=n(0),g=n.n(p),m=n(1),h=n.n(m),v=n(8),b=n.n(v);function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _=m.createElement("g",{fill:"#FFF",fillRule:"evenodd"},m.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}));var y=function SvgExclamation(e){return m.createElement("svg",k({viewBox:"0 0 2 12"},e),_)};function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var O=m.createElement("g",{fill:"#FFF",fillRule:"evenodd"},m.createElement("path",{d:"M0 6.414L1.415 5l5.292 5.292-1.414 1.415z"}),m.createElement("path",{d:"M14.146.146l1.415 1.414L5.414 11.707 4 10.292z"}));var S=function SvgCheck(e){return m.createElement("svg",E({viewBox:"0 0 16 12"},e),O)};function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var w=function(e){s()(WizardProgressStep,e);var t=j(WizardProgressStep);function WizardProgressStep(){return a()(this,WizardProgressStep),t.apply(this,arguments)}return o()(WizardProgressStep,[{key:"render",value:function(){var e=this.props,t=e.currentStep,n=e.step,r=e.title,a=e.status,i=e.warning,o=e.error,c=e.stepKey,s=a;i?s="warning":o&&(s="error");var l=!1;switch(s){case"warning":case"error":l=h.a.createElement(y,{height:"12",width:"2"});break;case"completed":l=h.a.createElement(S,{height:"12",width:"16"})}return h.a.createElement("div",{className:b()("googlesitekit-wizard-progress-step","googlesitekit-wizard-progress-step--".concat(n),"googlesitekit-wizard-progress-step--".concat(c),{"googlesitekit-wizard-progress-step--current":t})},h.a.createElement("div",{className:"googlesitekit-wizard-progress-step__number-wrapper"},h.a.createElement("div",{className:b()("googlesitekit-wizard-progress-step__number","googlesitekit-wizard-progress-step__number--".concat(s))},h.a.createElement("span",{className:b()("googlesitekit-wizard-progress-step__number-text","googlesitekit-wizard-progress-step__number-text--".concat(s))},n),l&&h.a.createElement("span",{className:b()("googlesitekit-wizard-progress-step__number-icon","googlesitekit-wizard-progress-step__number-icon--".concat(s))},l))),h.a.createElement("p",{className:"googlesitekit-wizard-progress-step__text"},r))}}]),WizardProgressStep}(m.Component);w.propTypes={currentStep:g.a.bool.isRequired,step:g.a.number.isRequired,title:g.a.string,status:g.a.string,warning:g.a.bool,error:g.a.bool},w.defaultProps={title:"",status:"",warning:!1,error:!1,removeFirstStep:!1};t.a=w},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(103),a=n.n(r)()(e)}).call(this,n(15))},79:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(62),s=n.n(c),l=n(45),u=n.n(l),d=n(46),f=n.n(d),p=n(30),g=n.n(p),m=n(0),h=n.n(m),v=n(8),b=n.n(v),k=n(1),_=n(2),y=n(56),E=n(93),O=n(9);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(DataBlock,t);var n=S(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(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,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,l=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,p=t.sparkline,g=t.invertChangeColor,m="button"===s?"button":"",h=p;h&&g&&(h=Object(k.cloneElement)(p,{invertChangeColor:g}));var v=o;c&&(v="%"===c?Object(O.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(O.q)(o,c)),l&&(v=Object(_.sprintf)(l,v));var S=a&&Object(O.q)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===s?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"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 "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},S)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(k.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(y.a,{direction:0<parseFloat(o)?"up":"down",invertColor:g})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(E.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(k.Component);j.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},j.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=j}).call(this,n(1))},85:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.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"}),r.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"}),r.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"}),r.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 r.createElement("svg",a({viewBox:"0 0 43 44"},e),i)}},86:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(238),o=n(0),c=n.n(o),s=n(1),l=n(105);function Portal(e){var t=e.children,n=e.slug,r=Object(s.useState)(document.createElement("div")),o=a()(r,1)[0];return Object(i.a)((function(){n&&o.classList.add("googlesitekit-portal-".concat(n));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(o),function(){return e.removeChild(o)}})),Object(l.createPortal)(t,o)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},88:function(e,t,n){"use strict";var r=n(96);n.d(t,"a",(function(){return r.a}));var a=n(97);n.d(t,"c",(function(){return a.a}));var i=n(98);n.d(t,"b",(function(){return i.a}))},89:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return b}));var r=n(16),a=n.n(r),i=n(6),o=n.n(i),c=n(3),s=n.n(c),l=n(7),u=n.n(l),d=n(5),f=n.n(d),p=n(37),g=f.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:s.a.mark((function e(){var t;return s.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:s.a.mark((function e(){var t,n,r,a,i,o,c=arguments;return s.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,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(a=e.sent,i=a.cacheHit,o=a.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){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:s.a.mark((function e(){var t;return s.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(p.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",g((function(t){return function(){return Object(p.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(p.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,i=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,a()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},9:function(e,t,n){"use strict";(function(e){n.d(t,"k",(function(){return S})),n.d(t,"a",(function(){return j})),n.d(t,"i",(function(){return w})),n.d(t,"x",(function(){return C})),n.d(t,"d",(function(){return N}));var r=n(6),a=n.n(r),i=n(21),o=n.n(i),c=n(102),s=n.n(c),l=n(99),u=n.n(l),d=n(36);n.d(t,"v",(function(){return d.b}));var f=n(55);n.d(t,"s",(function(){return f.a})),n.d(t,"w",(function(){return f.b}));var p=n(70);n.d(t,"u",(function(){return p.a}));var g=n(65);n.d(t,"b",(function(){return g.b})),n.d(t,"j",(function(){return g.c}));n(71);var m=n(61);n.d(t,"h",(function(){return m.a})),n.d(t,"n",(function(){return m.b})),n.d(t,"q",(function(){return m.c})),n.d(t,"r",(function(){return m.d}));var h=n(47);n.d(t,"e",(function(){return h.b}));var v=n(72);n.d(t,"o",(function(){return v.a}));var b=n(73);n.d(t,"c",(function(){return b.a}));var k=n(50);n.d(t,"t",(function(){return k.i}));var _=n(74);n.d(t,"f",(function(){return _.a})),n.d(t,"m",(function(){return _.b}));var y=n(60);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(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){a()(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,"g",(function(){return y.a})),n.d(t,"l",(function(){return y.b})),n.d(t,"p",(function(){return y.c}));var S=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}},j=function(e,t){if("0"===e||0===e||isNaN(e))return null;var n=(t-e)/e;return isNaN(n)||!s()(n)?null:n},w=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"!==o()(n[t])||void 0===n[t].slug||void 0===n[t].name||n[t].slug!==t?e:O(O({},e),{},a()({},t,n[t]))}),{}):{}},C=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},N=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return u()(t)}}).call(this,n(15))},91:function(e,t,n){"use strict";var r=n(1),a=n(32),i=Object(r.createContext)(a.a);t.a=i},93:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(132),s=n(2),l=n(19);function SourceLink(t){var n=t.name,r=t.href,a=t.className,i=t.external;return e.createElement("div",{className:o()("googlesitekit-source-link",a)},Object(c.a)(Object(s.sprintf)(
  /* translators: %s: source link */
  Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(l.a,{key:"link",href:r,external:i,inherit:!0})}))}SourceLink.propTypes={name:a.a.string,href:a.a.string,className:a.a.string,external:a.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(1))},95:function(e,t,n){"use strict";(function(e){var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return r?e.createElement("span",a()({},i,{className:u()("screen-reader-text",n)}),r):null}VisuallyHidden.propTypes={className:s.a.string,children:s.a.node},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(1))},96:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(18),a=n.n(r),i=n(6),o=n.n(i),c=n(16),s=n.n(c),l=n(0),u=n.n(l),d=n(8),f=n.n(d);function Cell(t){var n,r=t.className,i=t.alignTop,c=t.alignMiddle,l=t.alignBottom,u=t.alignRight,d=t.alignLeft,p=t.smSize,g=t.smStart,m=t.mdSize,h=t.mdStart,v=t.lgSize,b=t.lgStart,k=t.size,_=t.children,y=s()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smSize","smStart","mdSize","mdStart","lgSize","lgStart","size","children"]);return e.createElement("div",a()({},y,{className:f()(r,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":c,"mdc-layout-grid__cell--align-bottom":l,"mdc-layout-grid__cell--align-right":u,"mdc-layout-grid__cell--align-left":d},o()(n,"mdc-layout-grid__cell--span-".concat(k),12>=k&&k>0),o()(n,"mdc-layout-grid__cell--span-".concat(v,"-desktop"),12>=v&&v>0),o()(n,"mdc-layout-grid__cell--start-".concat(b,"-desktop"),12>=b&&b>0),o()(n,"mdc-layout-grid__cell--span-".concat(m,"-tablet"),8>=m&&m>0),o()(n,"mdc-layout-grid__cell--start-".concat(h,"-tablet"),8>=h&&h>0),o()(n,"mdc-layout-grid__cell--span-".concat(p,"-phone"),4>=p&&p>0),o()(n,"mdc-layout-grid__cell--start-".concat(g,"-phone"),4>=g&&g>0),n))}),_)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,mdSize:u.a.number,mdStart:u.a.number,lgSize:u.a.number,lgStart:u.a.number,size:u.a.number,alignTop:u.a.bool,alignMiddle:u.a.bool,alignBottom:u.a.bool,alignRight:u.a.bool,alignLeft:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(1))},960:function(e,t,n){"use strict";n.r(t),function(e,t){var r=n(213),a=n(105),i=n(9),o=(n(274),n(150)),c=n(756),s=n(318);Object(r.a)((function(){e._googlesitekitLegacyData.admin.resetSession&&Object(i.b)();var n=document.getElementById("js-googlesitekit-dashboard-splash");n&&Object(a.render)(t.createElement(o.a,null,t.createElement(s.a,null),t.createElement(c.a,null)),n)}))}.call(this,n(15),n(1))},97:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Row}));var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l);function Row(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid__inner",n)},i),r)}Row.propTypes={className:s.a.string,children:s.a.node},Row.defaultProps={className:""}}).call(this,n(1))},98:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Grid}));var r=n(18),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l);function Grid(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid",n)},i),r)}Grid.propTypes={className:s.a.string,children:s.a.node},Grid.defaultProps={className:""}}).call(this,n(1))}},[[960,1,0]]]);