OwlCyberSecurity - MANAGER
Edit File: googlesitekit-entity-dashboard-990ad7368408e9822817.js
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[14],{1:function(e,t){e.exports=googlesitekit.i18n},10:function(e,t){e.exports=googlesitekit.components},100:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(60),a=n(35);function i(t,n){var i,o=Object(r.a)(n);return function(){var n=e.document;if(void 0===i&&(i=!!n.querySelector("script[".concat(a.b,"]"))),!i){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),o("js",new Date),o("config",t.trackingID,{send_page_view:t.isSiteKitScreen}),i=!0}}}}).call(this,n(26))},101:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(5),a=n.n(r),i=n(6),o=n.n(i),c=n(14),s=n.n(c),l=n(60),u=n(42);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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n,r){var i=Object(l.a)(t);return function(){var t=s()(a.a.mark((function t(o,c,s,l){var d,f,m,p,h,b,v,O,y,_;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d=e.activeModules,f=e.referenceSiteURL,m=e.trackingEnabled,p=e.trackingID,h=e.userIDHash,b=e.userRoles,v=void 0===b?[]:b,O=e.isAuthenticated,y=e.pluginVersion,m){t.next=3;break}return t.abrupt("return");case 3:return n(),_={send_to:p,event_category:o,event_label:s,value:l,dimension1:f,dimension2:v.join(","),dimension3:h,dimension4:y||"",dimension5:Array.from(u.a).join(","),dimension6:d.join(","),dimension7:O?"1":"0"},t.abrupt("return",new Promise((function(e){var t,n,a=setTimeout((function(){r.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),e()}),1e3),s=function(){clearTimeout(a),e()};i("event",c,g(g({},_),{},{event_callback:s})),(null===(t=r._gaUserPrefs)||void 0===t||null===(n=t.ioo)||void 0===n?void 0:n.call(t))&&s()})));case 6:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}()}},102:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(12),o=n.n(i),c=n(10),s=n(21),l=function CTA(t){var n=t.title,r=t.headerText,a=t.description,i=t.ctaLink,l=t.ctaLabel,u=t.ctaLinkExternal,d=t.ctaType,g=t.error,f=t.onClick,m=t["aria-label"],p=t.children;return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":g})},r&&e.createElement("h2",{className:"googlesitekit-cta__header_text"},r),n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),a&&"string"==typeof a&&e.createElement("p",{className:"googlesitekit-cta__description"},a),a&&"string"!=typeof a&&e.createElement("div",{className:"googlesitekit-cta__description"},a),l&&"button"===d&&e.createElement(c.Button,{"aria-label":m,href:i,onClick:f},l),l&&"link"===d&&e.createElement(s.a,{href:i,onClick:f,"aria-label":m,external:u,hideExternalIndicator:u,arrow:!0},l),p)};l.propTypes={title:a.a.string.isRequired,headerText:a.a.string,description:a.a.oneOfType([a.a.string,a.a.node]),ctaLink:a.a.string,ctaLinkExternal:a.a.bool,ctaLabel:a.a.string,ctaType:a.a.string,"aria-label":a.a.string,error:a.a.bool,onClick:a.a.func,children:a.a.node},l.defaultProps={title:"",headerText:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:function(){}},t.a=l}).call(this,n(3))},103:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var r=n(4),a=n.n(r),i=n(18),o=n(87),c=a.a.useSelect;function s(t){var n=t.moduleName,r=t.FallbackComponent,a=t.IncompleteComponent;return function(t){var s=function WhenActiveComponent(o){var s=c((function(e){return e(i.a).getModule(n)}),[n]);if(!s)return null;var l=r||o.WidgetNull||null;if(!1===s.active)return l&&e.createElement(l,o);if(!1===s.connected){var u=a||l;return u&&e.createElement(u,o)}return e.createElement(t,o)};return s.displayName="When".concat(Object(o.c)(n),"Active"),(t.displayName||t.name)&&(s.displayName+="(".concat(t.displayName||t.name,")")),s}}}).call(this,n(3))},1030:function(e,t,n){"use strict";n.r(t),function(e){var t=n(266),r=n(122),a=n(910),i=n(185),o=n(24);Object(t.a)((function(){var t=document.getElementById("js-googlesitekit-entity-dashboard");if(t){var n=t.dataset.viewOnly;Object(r.render)(e.createElement(i.a,{viewContext:n?o.k:o.j},e.createElement(a.a,null)),t)}}))}.call(this,n(3))},104:function(e,t,n){"use strict";(function(e,r){n.d(t,"c",(function(){return k})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return TourTooltips}));var a=n(6),i=n.n(a),o=n(89),c=n(27),s=n(0),l=n.n(s),u=n(1),d=n(4),g=n.n(d),f=n(28),m=n(9),p=n(34),h=n(117),b=n(20);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 O=g.a.useSelect,y=g.a.useDispatch,_=g.a.useRegistry,k={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},E={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")},j={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)"}}},S="feature_tooltip_view",w="feature_tooltip_advance",N="feature_tooltip_return",T="feature_tooltip_dismiss",A="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"),g=y(f.b).setValue,C=y(m.a).dismissTour,D=_(),x=Object(b.a)(),R=O((function(e){return e(f.b).getValue(u)})),L=O((function(e){return e(f.b).getValue(d)&&!1===e(m.a).isTourDismissed(a)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(a)),g(d,!0)}));var M=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,u="function"==typeof s?s(x):s;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(p.b)(u,S,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(p.b)(u,T,l):n===c.a.NEXT&&i===c.d.FINISHED&&o===c.b.TOUR_END&&a===l&&Object(p.b)(u,A,l),r===c.c.COMPLETE&&i!==c.d.FINISHED&&(n===c.a.PREV&&Object(p.b)(u,N,l),n===c.a.NEXT&&Object(p.b)(u,w,l))}(t);var n=t.action,r=t.index,i=t.status,o=t.step,d=t.type,f=n===c.a.CLOSE,m=!f&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(d),h=[c.d.FINISHED,c.d.SKIPPED].includes(i),b=f&&d===c.b.STEP_AFTER,v=h||b;if(c.b.STEP_BEFORE===d){var O,y,_=o.target;"string"==typeof o.target&&(_=e.document.querySelector(o.target)),null===(O=_)||void 0===O||null===(y=O.scrollIntoView)||void 0===y||y.call(O,{block:"center"})}m?function(e,t){g(u,e+(t===c.a.PREV?-1:1))}(r,n):v&&(e.document.body.classList.remove("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(a)),C(a)),l&&l(t,D)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:j,locale:E,run:L,showProgress:!0,stepIndex:R,steps:M,styles:k,tooltipComponent:h.a})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.oneOfType([l.a.string,l.a.func]).isRequired,callback:l.a.func}}).call(this,n(26),n(3))},105:function(e,t,n){"use strict";(function(e){var r=n(23),a=n.n(r),i=n(25),o=n.n(i),c=n(12),s=n.n(c),l=n(0),u=n.n(l),d=n(2),g=Object(d.forwardRef)((function(t,n){var r=t.label,i=t.className,c=t.hasLeftSpacing,l=void 0!==c&&c,u=o()(t,["label","className","hasLeftSpacing"]);return e.createElement("span",a()({ref:n},u,{className:s()("googlesitekit-badge",i,{"googlesitekit-badge--has-left-spacing":l})}),r)}));g.displayName="Badge",g.propTypes={label:u.a.string.isRequired,hasLeftSpacing:u.a.bool},t.a=g}).call(this,n(3))},106:function(e,t,n){"use strict";(function(e){var r=n(23),a=n.n(r),i=n(25),o=n.n(i),c=n(0),s=n.n(c),l=n(12),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(3))},109:function(e,t,n){"use strict";var r=n(2),a=n(42),i=Object(r.createContext)(a.a);t.a=i},111:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(437),a=function(e,t,n){Object(r.a)((function(n){return e.includes(n.keyCode)&&t.current.contains(n.target)}),n)}},113:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o}));function r(e){var t=e.format,n=void 0===t?"small":t,r=e.hasErrorOrWarning,a=e.hasSmallImageSVG,o=e.hasWinImageSVG,c={smSize:4,mdSize:8,lgSize:12},s=i(n);return Object.keys(c).forEach((function(e){var t=c[e];r&&(t-=1),a&&(t-=1),o&&0<t-s[e]&&(t-=s[e]),c[e]=t})),c}var a=function(e){switch(e){case"small":return{};case"larger":return{smOrder:2,mdOrder:2,lgOrder:1};default:return{smOrder:2,mdOrder:1}}},i=function(e){switch(e){case"smaller":return{smSize:4,mdSize:2,lgSize:2};case"larger":return{smSize:4,mdSize:8,lgSize:7};default:return{smSize:4,mdSize:2,lgSize:4}}},o=function(e){switch(e){case"larger":return{smOrder:1,mdOrder:1,lgOrder:2};default:return{smOrder:1,mdOrder:2}}}},115:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotice}));var r=n(0),a=n.n(r),i=n(2),o=n(1),c=n(4),s=n.n(c),l=n(10),u=n(50),d=n(78),g=s.a.useSelect,f=s.a.useDispatch;function ErrorNotice(t){var n,r=t.error,a=t.storeName,c=t.message,s=void 0===c?r.message:c,m=t.shouldDisplayError,p=void 0===m?function(){return!0}:m,h=t.noPrefix,b=void 0!==h&&h,v=f(),O=g((function(e){return a?e(a).getSelectorDataForError(r):null})),y=Object(i.useCallback)((function(){v(O.storeName).invalidateResolution(O.name,O.args)}),[v,O]);if(!r||Object(u.f)(r)||!p(r))return null;var _=Object(u.d)(r,O);return e.createElement(i.Fragment,null,e.createElement(d.a,{message:s,reconnectURL:null===(n=r.data)||void 0===n?void 0:n.reconnectURL,noPrefix:b}),_&&e.createElement(l.Button,{className:"googlesitekit-error-notice__retry-button",onClick:y},Object(o.__)("Retry","google-site-kit")))}ErrorNotice.propTypes={error:a.a.shape({message:a.a.string}),storeName:a.a.string,message:a.a.string,shouldDisplayError:a.a.func,noPrefix:a.a.bool}}).call(this,n(3))},116:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c}));var r=n(36),a=n(128);function i(t,n){var r=document.querySelector(t);if(!r)return 0;var a=r.getBoundingClientRect().top,i=o(n);return a+e.scrollY-i}function o(e){var t=c(e),n=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(n).reduce((function(e,t){return e+t.offsetHeight}),0)}function c(t){var n=0,i=document.querySelector(".googlesitekit-header");return n=!!i&&"sticky"===e.getComputedStyle(i).position?function(e){var t=document.querySelector(".googlesitekit-header");if(t){if(e===r.b)return t.offsetHeight;var n=t.getBoundingClientRect().bottom;return n<0?0:n}return 0}(t):function(e){var t=document.querySelector("#wpadminbar");return t&&e!==r.b?t.offsetHeight:0}(t),(n=Object(a.a)(n))<0?0:n}}).call(this,n(26))},117:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(23),a=n.n(r),i=n(141),o=n.n(i),c=n(12),s=n.n(c),l=n(0),u=n.n(l),d=n(10),g=n(142),f=n(137);function TourTooltip(t){var n=t.backProps,r=t.closeProps,c=t.index,l=t.primaryProps,u=t.size,m=t.step,p=t.tooltipProps,h=u>1?Object(g.a)(u):[],b=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",a()({className:s()("googlesitekit-tour-tooltip",m.className)},p),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},m.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},m.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:b(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(d.Button,a()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),m.cta,l.title&&e.createElement(d.Button,a()({className:"googlesitekit-tooltip-button",text:!0},l),l.title))),e.createElement(d.Button,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,title:u.a.node.isRequired,cta:u.a.oneOfType([u.a.element,u.a.bool]),className:u.a.string}).isRequired,tooltipProps:u.a.object.isRequired}}).call(this,n(3))},118:function(e,t,n){"use strict";function Null(){return null}n.d(t,"a",(function(){return Null}))},120: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="editing-user-role-select-slug-key",a=[],i="dashboardSharingDialogOpen",o="resetSharingDialogOpen"},123:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(12),o=n.n(i),c=n(46),s=n(1),l=n(21),u=n(38);function SourceLink(t){var n=t.name,r=t.href,a=t.className,i=t.external;return Object(u.a)()?null: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})}))}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(3))},124:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(23),a=n.n(r),i=n(6),o=n.n(i),c=n(25),s=n.n(c),l=n(0),u=n.n(l),d=n(12),g=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,f=t.smAlignRight,m=t.mdAlignRight,p=t.lgAlignRight,h=t.smSize,b=t.smStart,v=t.smOrder,O=t.mdSize,y=t.mdStart,_=t.mdOrder,k=t.lgSize,E=t.lgStart,j=t.lgOrder,S=t.size,w=t.children,N=s()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smAlignRight","mdAlignRight","lgAlignRight","smSize","smStart","smOrder","mdSize","mdStart","mdOrder","lgSize","lgStart","lgOrder","size","children"]);return e.createElement("div",a()({},N,{className:g()(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,"mdc-layout-grid__cell--align-right-phone":f,"mdc-layout-grid__cell--align-right-tablet":m,"mdc-layout-grid__cell--align-right-desktop":p},o()(n,"mdc-layout-grid__cell--span-".concat(S),12>=S&&S>0),o()(n,"mdc-layout-grid__cell--span-".concat(k,"-desktop"),12>=k&&k>0),o()(n,"mdc-layout-grid__cell--start-".concat(E,"-desktop"),12>=E&&E>0),o()(n,"mdc-layout-grid__cell--order-".concat(j,"-desktop"),12>=j&&j>0),o()(n,"mdc-layout-grid__cell--span-".concat(O,"-tablet"),8>=O&&O>0),o()(n,"mdc-layout-grid__cell--start-".concat(y,"-tablet"),8>=y&&y>0),o()(n,"mdc-layout-grid__cell--order-".concat(_,"-tablet"),8>=_&&_>0),o()(n,"mdc-layout-grid__cell--span-".concat(h,"-phone"),4>=h&&h>0),o()(n,"mdc-layout-grid__cell--start-".concat(b,"-phone"),4>=b&&b>0),o()(n,"mdc-layout-grid__cell--order-".concat(v,"-phone"),4>=v&&v>0),n))}),w)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,smOrder:u.a.number,mdSize:u.a.number,mdStart:u.a.number,mdOrder:u.a.number,lgSize:u.a.number,lgStart:u.a.number,lgOrder: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,smAlignRight:u.a.bool,mdAlignRight:u.a.bool,lgAlignRight:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,smOrder:0,mdSize:0,mdStart:0,mdOrder:0,lgSize:0,lgStart:0,lgOrder:0}}).call(this,n(3))},125:function(e,t,n){"use strict";(function(e){var r=n(23),a=n.n(r),i=n(25),o=n.n(i),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(2),g=Object(d.forwardRef)((function(t,n){var r=t.className,i=t.children,c=o()(t,["className","children"]);return e.createElement("div",a()({ref:n,className:u()("mdc-layout-grid__inner",r)},c),i)}));g.displayName="Row",g.propTypes={className:s.a.string,children:s.a.node},g.defaultProps={className:""},t.a=g}).call(this,n(3))},126:function(e,t,n){"use strict";(function(e){var r=n(23),a=n.n(r),i=n(25),o=n.n(i),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(2),g=Object(d.forwardRef)((function(t,n){var r=t.alignLeft,i=t.fill,c=t.className,s=t.children,l=t.collapsed,d=o()(t,["alignLeft","fill","className","children","collapsed"]);return e.createElement("div",a()({className:u()("mdc-layout-grid",c,{"mdc-layout-grid--align-left":r,"mdc-layout-grid--collapsed":l,"mdc-layout-grid--fill":i})},d,{ref:n}),s)}));g.displayName="Grid",g.propTypes={alignLeft:s.a.bool,fill:s.a.bool,className:s.a.string,collapsed:s.a.bool,children:s.a.node},g.defaultProps={className:""},t.a=g}).call(this,n(3))},128:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15),a=function(e){return Object(r.isFinite)(e)?e:0}},13: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"},130:function(e,t,n){"use strict";var r=n(2);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)}},131:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(229),o=n(46),c=n(1),s=n(10),l=n(21),u=function ModalDialog(t){var n=t.dialogActive,r=t.handleDialog,a=t.title,u=t.provides,d=t.handleConfirm,g=t.subtitle,f=t.confirmButton,m=t.dependentModules,p=t.danger,h=t.inProgress,b=void 0!==h&&h,v=Object(i.a)(ModalDialog),O="googlesitekit-dialog-description-".concat(v),y=!(!u||!u.length);return e.createElement(s.Dialog,{open:n,"aria-describedby":y?O:void 0,tabIndex:"-1"},e.createElement(s.DialogTitle,null,a),g?e.createElement("p",{className:"mdc-dialog__lead"},g):[],e.createElement(s.DialogContent,null,y&&e.createElement("section",{id:O,className:"mdc-dialog__provides"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},u.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),m&&e.createElement("p",{className:"mdc-dialog__dependencies"},Object(o.a)(Object(c.sprintf)( /* translators: %s is replaced with the dependent modules. */ Object(c.__)("<strong>Note:</strong> %s","google-site-kit"),m),{strong:e.createElement("strong",null)}))),e.createElement(s.DialogFooter,null,e.createElement(s.SpinnerButton,{onClick:d,danger:p,disabled:b,isSaving:b},f||Object(c.__)("Disconnect","google-site-kit")),e.createElement(l.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:r,disabled:b},Object(c.__)("Cancel","google-site-kit"))))};u.displayName="Dialog",u.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},u.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=u}).call(this,n(3))},134:function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r,a=n(6),i=n.n(a),o=n(41),c=n(161),s=n(151),l=(r={},i()(r,o.c.QUARTER,3),i()(r,o.c.HALF,6),i()(r,o.c.FULL,12),r),u="googlesitekit-hidden",d=[c.a,s.a]},136:function(e,t,n){"use strict";var r=n(2),a=Object(r.createContext)(!1);t.a=a},137:function(e,t,n){"use strict";var r=n(2);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:"currentColor"});t.a=function SvgClose(e){return r.createElement("svg",a({viewBox:"0 0 14 14",fill:"none"},e),i)}},138:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),a=n(4),i=n.n(a),o=n(41),c=i.a.useDispatch;function s(e,t,n){var a=c(o.a),i=a.setWidgetState,s=a.unsetWidgetState;Object(r.useEffect)((function(){return i(e,t,n),function(){s(e,t,n)}}),[e,t,n,i,s])}},140:function(e,t,n){"use strict";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,"a",(function(){return s}));var r=n(19);n(8);function a(e){return"string"==typeof e&&/^\d+$/.test(e)}function i(e){return e===r.e||a(e)}function o(e){return"string"==typeof e&&/^\d+$/.test(e)}function c(e){return e===r.f||o(e)}function s(e){return"string"==typeof e&&/^G-[a-zA-Z0-9]+$/.test(e)}},142: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}))}},143:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(24),a=function(e){return r.f.includes(e)}},147:function(e,t,n){"use strict";(function(e){var r=n(5),a=n.n(r),i=n(14),o=n.n(i),c=n(0),s=n.n(c),l=n(2),u=n(21),d=n(8),g=n(20);function HelpMenuLink(t){var n=t.children,r=t.href,i=t.gaEventLabel,c=Object(g.a)(),s=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.A)("".concat(c,"_headerbar_helpmenu"),"click_outgoing_link",i);case 3:case"end":return e.stop()}}),e)}))),[i,c]);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,role:"menuitem",onClick:s},n))}HelpMenuLink.propTypes={children:s.a.node.isRequired,href:s.a.string.isRequired,gaEventLabel:s.a.string},t.a=HelpMenuLink}).call(this,n(3))},148:function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,r=e.slice(6,8);return new Date(t,n.toString(),r)}return!1}},149:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t||{},a=n.slug,i=void 0===a?"":a,o=n.name,c=void 0===o?"":o,s=n.owner,l=void 0===s?{}:s;if(!i||!c)return e;var u="",d="";return"analytics"===i?e.match(/account/i)?u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")):"search-console"===i&&(u=Object(r.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")),u||(u=Object(r.sprintf)( /* translators: %s: module name */ Object(r.__)("Your Google account does not have sufficient permissions to access %s data, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"),c)),l&&l.login&&(d=Object(r.sprintf)( /* translators: %s: owner name */ Object(r.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),l.login)),d||(d=Object(r.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(u," ").concat(d)}},150:function(e,t,n){"use strict";var r=n(2);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:"currentColor",fillRule:"nonzero"});t.a=function SvgError(e){return r.createElement("svg",a({viewBox:"0 0 28 25"},e),i)}},151:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return RecoverableModules}));var r=n(0),a=n.n(r),i=n(1),o=n(4),c=n.n(o),s=n(18),l=n(102),u=c.a.useSelect;function RecoverableModules(t){var n=t.moduleSlugs,r=u((function(e){var t=e(s.a).getModules();if(void 0!==t)return n.map((function(e){return t[e].name}))}));if(void 0===r)return null;var a=1===r.length?Object(i.sprintf)( /* translators: %s: Module name */ Object(i.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),r[0]):Object(i.sprintf)( /* translators: %s: List of module names */ Object(i.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),r.join(Object(i._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(l.a,{title:Object(i.__)("Data Unavailable","google-site-kit"),description:a})}RecoverableModules.propTypes={moduleSlugs:a.a.arrayOf(a.a.string).isRequired}}).call(this,n(3))},152:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GenericErrorHandlerActions}));var r=n(0),a=n.n(r),i=n(1),o=n(21),c=n(156);function GenericErrorHandlerActions(t){var n=t.message,r=t.componentStack;return e.createElement("div",{className:"googlesitekit-generic-error-handler-actions"},e.createElement(c.a,{message:n,componentStack:r}),e.createElement(o.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(i.__)("Report this problem","google-site-kit")))}GenericErrorHandlerActions.propTypes={message:a.a.string,componentStack:a.a.string}}).call(this,n(3))},153:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(23),a=n.n(r),i=n(25),o=n.n(i),c=n(0),s=n.n(c),l=n(4),u=n.n(l),d=n(18),g=u.a.useSelect;function ModuleIcon(t){var n=t.slug,r=t.size,i=o()(t,["slug","size"]),c=g((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(3))},155:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(11),a=n.n(r),i=function(e,t){var n=t.dateRangeLength;a()(Array.isArray(e),"report must be an array to partition."),a()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=-1*n;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},156:function(e,t,n){"use strict";(function(e){var r=n(16),a=n.n(r),i=n(164),o=n.n(i),c=n(0),s=n.n(c),l=n(2),u=n(1),d=n(200),g=n(344),f=n(345),m=n(10);function ReportErrorButton(t){var n=t.message,r=t.componentStack,i=Object(l.useState)(!1),c=a()(i,2),s=c[0],p=c[1];return e.createElement(m.Button,{"aria-label":s?Object(u.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){o()("`".concat(n,"\n").concat(r,"`")),p(!0)},trailingIcon:e.createElement(d.a,{className:"mdc-button__icon",icon:s?g.a:f.a})},s?Object(u.__)("Copied to clipboard","google-site-kit"):Object(u.__)("Copy error contents","google-site-kit"))}ReportErrorButton.propTypes={message:s.a.string,componentStack:s.a.string},t.a=ReportErrorButton}).call(this,n(3))},158:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureTours}));var r=n(89),a=n(4),i=n.n(a),o=n(9),c=n(20),s=n(104),l=i.a.useSelect,u=i.a.useDispatch;function FeatureTours(){var t=Object(c.a)(),n=u(o.a).triggerTourForView;Object(r.a)((function(){n(t)}));var a=l((function(e){return e(o.a).getCurrentTour()}));return a?e.createElement(s.a,{tourID:a.slug,steps:a.steps,gaEventCategory:a.gaEventCategory,callback:a.callback}):null}}).call(this,n(3))},160:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),a=n.n(r),i=n(28),o=a.a.useSelect;function c(e){return o((function(t){return t(i.b).getValue(e)||{isTooltipVisible:!1,rehideAdminMenu:!1,rehideAdminSubMenu:!1}}))}},161:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var r=n(0),a=n.n(r),i=n(1),o=n(4),c=n.n(o),s=n(18),l=n(102),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,r=u((function(e){return e(s.a).getModule(n)}));return e.createElement(l.a,{title:Object(i.sprintf)( /* translators: %s: Module name */ Object(i.__)("%s Gathering Data","google-site-kit"),null==r?void 0:r.name),description:Object(i.sprintf)( /* translators: %s: Module name */ Object(i.__)("%s data is not yet available, please check back later","google-site-kit"),null==r?void 0:r.name)})}ReportZero.propTypes={moduleSlug:a.a.string.isRequired}}).call(this,n(3))},162:function(e,t,n){"use strict";var r=n(136),a=(r.a.Consumer,r.a.Provider);t.a=a},163:function(e,t,n){"use strict";(function(e){var r=n(51),a=n.n(r),i=n(52),o=n.n(i),c=n(68),s=n.n(c),l=n(69),u=n.n(l),d=n(45),g=n.n(d),f=n(0),m=n.n(f),p=n(12),h=n.n(p),b=n(2),v=n(279),O=n(280);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return 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 u()(this,n)}}var _=function(t){s()(Layout,t);var n=y(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,g=t.fill,f=t.relative,m=t.rounded,p=void 0!==m&&m,b=t.transparent,y=void 0!==b&&b;return e.createElement("div",{className:h()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f,"googlesitekit-layout--rounded":p,"googlesitekit-layout--transparent":y})},n&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),a,r&&e.createElement(O.a,{ctaLabel:s,ctaLink:l,footerContent:u}))}}]),Layout}(b.Component);_.propTypes={header:m.a.bool,footer:m.a.bool,children:m.a.node.isRequired,title:m.a.string,headerCTALabel:m.a.string,headerCTALink:m.a.string,footerCTALabel:m.a.string,footerCTALink:m.a.string,footerContent:m.a.node,className:m.a.string,fill:m.a.bool,relative:m.a.bool,rounded:m.a.bool,transparent:m.a.bool},_.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=_}).call(this,n(3))},166:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(12),o=n.n(i),c=n(2),s=n(17),l=Object(c.forwardRef)((function(t,n){var r=t.id,a=t.className,i=t.children,l=t.secondaryPane;return e.createElement("section",{id:r,className:o()(a,"googlesitekit-publisher-win"),ref:n},e.createElement(s.e,null,e.createElement(s.k,null,i)),l&&e.createElement(c.Fragment,null,e.createElement("div",{className:"googlesitekit-publisher-win__secondary-pane-divider"}),e.createElement(s.e,{className:"googlesitekit-publisher-win__secondary-pane"},e.createElement(s.k,null,e.createElement(s.a,{className:"googlesitekit-publisher-win__secondary-pane",size:12},l)))))}));l.displayName="Banner",l.propTypes={id:a.a.string,className:a.a.string,secondaryPane:a.a.node},t.a=l}).call(this,n(3))},167:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerTitle}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(12),s=n.n(c),l=n(105);function BannerTitle(t){var n=t.title,r=t.badgeLabel,i=t.WinImageSVG,o=t.winImageFormat,c=void 0===o?"":o,u=t.smallWinImageSVGWidth,d=void 0===u?75:u,g=t.smallWinImageSVGHeight,f=void 0===g?75:g;return n?e.createElement("div",{className:"googlesitekit-publisher-win__title-image-wrapper"},e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},n,r&&e.createElement(l.a,{label:r})),i&&e.createElement("div",{className:s()(a()({},"googlesitekit-publisher-win__image-".concat(c),c))},e.createElement(i,{width:d,height:f}))):null}BannerTitle.propTypes={title:o.a.string,badgeLabel:o.a.string,WinImageSVG:o.a.elementType,winImageFormat:o.a.string,smallWinImageSVGWidth:o.a.number,smallWinImageSVGHeight:o.a.number}}).call(this,n(3))},168:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerActions}));var r=n(5),a=n.n(r),i=n(14),o=n.n(i),c=n(16),s=n.n(c),l=n(0),u=n.n(l),d=n(221),g=n(2),f=n(4),m=n.n(f),p=n(10),h=n(31),b=n(21),v=m.a.useSelect;function BannerActions(t){var n=t.ctaLink,r=t.ctaLabel,i=t.ctaComponent,c=t.ctaTarget,l=t.ctaCallback,u=t.dismissLabel,f=t.dismissCallback,m=Object(g.useState)(!1),O=s()(m,2),y=O[0],_=O[1],k=Object(d.a)(),E=v((function(e){return!!n&&e(h.a).isNavigatingTo(n)})),j=function(){var e=o()(a.a.mark((function e(){var t,n,r,i=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(_(!0),t=i.length,n=new Array(t),r=0;r<t;r++)n[r]=i[r];return e.next=4,null==l?void 0:l.apply(void 0,n);case 4:k()&&_(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(!n&&!u&&!i)return null;var S=n||i?b.a:p.Button;return e.createElement("div",{className:"googlesitekit-publisher-win__actions"},i,r&&e.createElement(p.SpinnerButton,{className:"googlesitekit-notification__cta",href:n,target:c,onClick:j,disabled:y||E,isSaving:y||E},r),u&&e.createElement(S,{onClick:f,disabled:y||E},u))}BannerActions.propTypes={ctaLink:u.a.string,ctaLabel:u.a.string,ctaComponent:u.a.element,ctaTarget:u.a.string,ctaCallback:u.a.func,dismissLabel:u.a.string,dismissCallback:u.a.func}}).call(this,n(3))},169:function(e,t,n){"use strict";var r=n(2);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:"M0 0h24v24H0z",fill:"none"}),o=r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"});t.a=function SvgWarning(e){return r.createElement("svg",a({fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e),i,o)}},17:function(e,t,n){"use strict";var r=n(219);n.d(t,"i",(function(){return r.a}));var a=n(289);n.d(t,"f",(function(){return a.a}));var i=n(290);n.d(t,"h",(function(){return i.a}));var o=n(291);n.d(t,"j",(function(){return o.a}));var c=n(288);n.d(t,"g",(function(){return c.a}));var s=n(96),l=n.n(s);n.d(t,"b",(function(){return l.a})),n.d(t,"c",(function(){return s.DialogContent})),n.d(t,"d",(function(){return s.DialogFooter}));var u=n(77);n.d(t,"a",(function(){return u.a})),n.d(t,"e",(function(){return u.b})),n.d(t,"k",(function(){return u.c}))},170:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportErrorActions}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(2),s=n(46),l=n(1),u=n(4),d=n.n(u),g=n(10),f=n(13),m=n(18),p=n(50),h=n(38),b=n(21);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 O=d.a.useSelect,y=d.a.useDispatch;function ReportErrorActions(t){var n=t.moduleSlug,r=t.error,i=Object(h.a)(),o=O((function(e){return e(m.a).getModuleStoreName(n)})),u=O((function(e){var t;return"function"==typeof(null===(t=e(o))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(o).getServiceEntityAccessURL():null})),d=Array.isArray(r)?r:[r],_=d.filter((function(e){return Object(p.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),k=!!_.length,E=O((function(e){var t=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){a()(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}({},k?_[0]:d[0]);return Object(p.e)(t)&&(t.code="".concat(n,"_insufficient_permissions")),e(f.c).getErrorTroubleshootingLinkURL(t)})),j=y(),S=d.some((function(e){return Object(p.e)(e)})),w=Object(c.useCallback)((function(){_.forEach((function(e){var t=e.selectorData;j(t.storeName).invalidateResolution(t.name,t.args)}))}),[j,_]),N=u&&S&&!i;return e.createElement("div",{className:"googlesitekit-report-error-actions"},N&&e.createElement(g.Button,{href:u,target:"_blank"},Object(l.__)("Request access","google-site-kit")),k?e.createElement(c.Fragment,null,e.createElement(g.Button,{onClick:w},Object(l.__)("Retry","google-site-kit")),e.createElement("span",{className:"googlesitekit-error-retry-text"},Object(s.a)(Object(l.__)("Retry didn’t work? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(b.a,{href:E,external:!0},Object(l.__)("Get help","google-site-kit"))}))):e.createElement(b.a,{href:E,external:!0},Object(l.__)("Get help","google-site-kit")))}ReportErrorActions.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired}}).call(this,n(3))},172:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerIcon}));var r=n(0),a=n.n(r),i=n(169),o=n(150),c=n(17);function BannerIcon(t){var n=t.type;if("win-error"!==n&&"win-warning"!==n)return null;var r="win-warning"===n?e.createElement(i.a,{width:34}):e.createElement(o.a,{width:28});return e.createElement(c.a,{size:1,smOrder:3,mdOrder:3,lgOrder:3},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},r))}BannerIcon.propTypes={type:a.a.string}}).call(this,n(3))},173:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerLogo}));var r=n(0),a=n.n(r),i=n(17),o=n(130),c=n(153);function BannerLogo(t){var n=t.module,r=t.moduleName;return e.createElement(i.a,{size:12},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},n&&e.createElement(c.a,{slug:n,size:19}),!n&&e.createElement(o.a,{height:"34",width:"32"})),r&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},r))}BannerLogo.propTypes={module:a.a.string,moduleName:a.a.string}}).call(this,n(3))},174:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerDescription}));var r=n(0),a=n.n(r),i=n(2),o=n(73),c=n(21),s=n(80);function BannerDescription(t){var n=t.description,r=t.learnMoreLabel,a=t.learnMoreURL,l=t.learnMoreTarget,u=t.learnMoreDescription,d=t.onLearnMoreClick;if(!n)return null;var g;return r&&(g=e.createElement(i.Fragment,null,e.createElement(c.a,{onClick:function(e){e.persist(),null==d||d()},href:a,external:l===s.a.EXTERNAL},r),u)),e.createElement("div",{className:"googlesitekit-publisher-win__desc"},Object(i.isValidElement)(n)?e.createElement(i.Fragment,null,n,e.createElement("p",null,g)):e.createElement("p",null,e.createElement("span",{dangerouslySetInnerHTML:Object(o.a)(n,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})})," ",g))}BannerDescription.propTypes={description:a.a.node,learnMoreURL:a.a.string,learnMoreDescription:a.a.string,learnMoreLabel:a.a.string,learnMoreTarget:a.a.oneOf(Object.values(s.a)),onLearnMoreClick:a.a.func}}).call(this,n(3))},176:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(5),a=n.n(r),i=n(14),o=n.n(i),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(2),g=n(46),f=n(1),m=n(4),p=n.n(m),h=n(10),b=n(9),v=n(34),O=n(21),y=n(20),_=p.a.useSelect,k=p.a.useDispatch;function OptIn(t){var n=t.id,r=void 0===n?"googlesitekit-opt-in":n,i=t.name,c=void 0===i?"optIn":i,s=t.className,l=t.trackEventCategory,m=t.alignLeftCheckbox,p=void 0!==m&&m,E=_((function(e){return e(b.a).isTrackingEnabled()})),j=_((function(e){return e(b.a).isSavingTrackingEnabled()})),S=_((function(e){return e(b.a).getErrorForAction("setTrackingEnabled",[!E])})),w=k(b.a).setTrackingEnabled,N=Object(y.a)(),T=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,w(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(v.a)(r.enabled),r.enabled&&Object(v.b)(l||N,"tracking_optin"));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[w,l,N]);return e.createElement("div",{className:u()("googlesitekit-opt-in",s)},e.createElement(h.Checkbox,{id:r,name:c,value:"1",checked:E,disabled:j,onChange:T,loading:void 0===E,alignLeft:p},Object(g.a)(Object(f.__)("<span>Help us improve Site Kit by sharing anonymous usage data.</span> <span>All collected data is treated in accordance with the <a>Google Privacy Policy.</a></span>","google-site-kit"),{a:e.createElement(O.a,{key:"link",href:"https://policies.google.com/privacy",external:!0}),span:e.createElement("span",null)})),(null==S?void 0:S.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==S?void 0:S.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,trackEventCategory:s.a.string,alignLeftCheckbox:s.a.bool}}).call(this,n(3))},177:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(15),s=n(2),l=n(1),u=n(4),d=n.n(u),g=n(18),f=n(50),m=n(149),p=n(85),h=n(78),b=n(102),v=n(170),O=n(38);function y(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?y(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=d.a.useSelect;function ReportError(t){var n,r=t.moduleSlug,a=t.error,i=Object(O.a)(),o=k((function(e){return e(g.a).getModule(r)})),u=Array.isArray(a)?a:[a],d=function(e){return Object(f.e)(e)?i?(n=Object(l.sprintf)( /* translators: %s: module name */ Object(l.__)("Access lost to %s","google-site-kit"),null==o?void 0:o.name),Object(l.sprintf)( /* translators: %s: module name */ Object(l.__)("The administrator sharing this module with you has lost access to the %s service, so you won’t be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),null==o?void 0:o.name)):(n=Object(l.sprintf)( /* translators: %s: module name */ Object(l.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),Object(m.a)(e.message,o)):Object(f.b)(e)},y=Object(c.uniqWith)(u.map((function(e){var t;return _(_({},e),{},{message:d(e),reconnectURL:null===(t=e.data)||void 0===t?void 0:t.reconnectURL})})),(function(e,t){return e.message===t.message&&e.reconnectURL===t.reconnectURL})),E=u.some((function(e){return Object(f.e)(e)}));E||1!==y.length?!E&&y.length>1&&(n=Object(l.sprintf)( /* translators: %s: module name */ Object(l.__)("Data errors in %s","google-site-kit"),null==o?void 0:o.name)):n=Object(l.sprintf)( /* translators: %s: module name */ Object(l.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name);var j=e.createElement(s.Fragment,null,y.map((function(t){var n,r=null==a||null===(n=a.data)||void 0===n?void 0:n.reconnectURL;return r?e.createElement(h.a,{key:t.message,message:t.message,reconnectURL:r}):e.createElement("p",{key:t.message},p.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(b.a,{title:n,description:j,error:!0},e.createElement(v.a,{moduleSlug:r,error:a}))}ReportError.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired}}).call(this,n(3))},179:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var r=n(23),a=n.n(r),i=n(79),o=n.n(i),c=n(263),s=n(312),l=n(313),u=n(314),d=n(264),g=o()((function(e){return{widgetSlug:e,Widget:f(e)(c.a),WidgetRecoverableModules:f(e)(d.a),WidgetReportZero:f(e)(s.a),WidgetReportError:f(e)(l.a),WidgetNull:f(e)(u.a)}}));function f(t){return function(n){var r=function WithWidgetSlug(r){return e.createElement(n,a()({},r,{widgetSlug:t}))};return r.displayName="WithWidgetSlug",(n.displayName||n.name)&&(r.displayName+="(".concat(n.displayName||n.name,")")),r}}var m=function(t){var n=g(t);return function(t){var r=function DecoratedComponent(r){return e.createElement(t,a()({},r,n))};return r.displayName="WithWidgetComponentProps",(t.displayName||t.name)&&(r.displayName+="(".concat(t.displayName||t.name,")")),r}}}).call(this,n(3))},18: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"},183:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Item}));var r=n(0),a=n.n(r);function Item(t){var n=t.icon,r=t.label;return e.createElement("div",{className:"googlesitekit-user-menu__item"},e.createElement("div",{className:"googlesitekit-user-menu__item-icon"},n),e.createElement("span",{className:"googlesitekit-user-menu__item-label"},r))}Item.propTypes={icon:a.a.node,label:a.a.string}}).call(this,n(3))},185:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(16),a=n.n(r),i=n(0),o=n.n(i),c=n(380),s=n(409),l=n(2),u=n(4),d=n.n(u),g=n(186),f=n(187),m=n(42),p=n(188),h=n(190),b=n(191),v=n(65),O=n(162),y=n(143);function Root(t){var n=t.children,r=t.registry,i=t.viewContext,o=void 0===i?null:i,u=c.a,_=Object(l.useState)({key:"Root",value:!0}),k=a()(_,1)[0];return e.createElement(l.StrictMode,null,e.createElement(O.a,{value:k},e.createElement(d.a.RegistryProvider,{value:r},e.createElement(f.a,{value:m.a},e.createElement(v.a,{value:o},e.createElement(s.a,{theme:u()},e.createElement(g.a,null,e.createElement(h.a,null,n,o&&e.createElement(b.a,null)),Object(y.a)(o)&&e.createElement(p.a,null))))))))}Root.propTypes={children:o.a.node,registry:o.a.object,viewContext:o.a.string.isRequired},Root.defaultProps={registry:d.a}}).call(this,n(3))},186:function(e,t,n){"use strict";(function(e,r){var a=n(51),i=n.n(a),o=n(52),c=n.n(o),s=n(68),l=n.n(s),u=n(69),d=n.n(u),g=n(45),f=n.n(g),m=n(0),p=n.n(m),h=n(2),b=n(1),v=n(152),O=n(65),y=n(49),_=n(8);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 d()(this,n)}}var E=function(t){l()(ErrorHandler,t);var n=k(ErrorHandler);function ErrorHandler(e){var t;return i()(this,ErrorHandler),(t=n.call(this,e)).state={error:null,info:null,copied:!1},t}return c()(ErrorHandler,[{key:"componentDidCatch",value:function(t,n){e.console.error("Caught an error:",t,n),this.setState({error:t,info:n}),Object(_.A)("react_error","handle_".concat(this.context||"unknown","_error"),"".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack).slice(0,500))}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.error,a=t.info;return n?r.createElement(y.b,{id:"googlesitekit-error",className:"googlesitekit-error-handler",title:Object(b.__)("Site Kit encountered an error","google-site-kit"),description:r.createElement(v.a,{message:n.message,componentStack:a.componentStack}),isDismissible:!1,format:"small",type:"win-error"},r.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,a.componentStack)):e}}]),ErrorHandler}(h.Component);E.contextType=O.b,E.propTypes={children:p.a.node.isRequired},t.a=E}).call(this,n(26),n(3))},187:function(e,t,n){"use strict";var r=n(109),a=(r.a.Consumer,r.a.Provider);t.a=a},188:function(e,t,n){"use strict";(function(e){var r=n(4),a=n.n(r),i=n(189),o=n(9),c=a.a.useSelect;t.a=function PermissionsModal(){return c((function(e){return e(o.a).isAuthenticated()}))?e.createElement(i.a,null):null}}).call(this,n(3))},189:function(e,t,n){"use strict";(function(e,r){var a=n(5),i=n.n(a),o=n(14),c=n.n(o),s=n(1),l=n(2),u=n(4),d=n.n(u),g=n(131),f=n(9),m=n(31),p=n(93),h=n(94),b=d.a.useSelect,v=d.a.useDispatch,O=d.a.useRegistry;t.a=function AuthenticatedPermissionsModal(){var t,n,a,o,u=O(),d=b((function(e){return e(f.a).getPermissionScopeError()})),y=b((function(e){return e(f.a).getUnsatisfiedScopes()})),_=b((function(t){var n,r;return t(f.a).getConnectURL({additionalScopes:null==d||null===(n=d.data)||void 0===n?void 0:n.scopes,redirectURL:(null==d||null===(r=d.data)||void 0===r?void 0:r.redirectURL)||e.location.href})})),k=v(f.a).clearPermissionScopeError,E=v(m.a).navigateTo,j=Object(l.useCallback)((function(){k()}),[k]),S=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(p.c)(u);case 2:E(_);case 3:case"end":return e.stop()}}),e)}))),[u,_,E]);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==d||null===(t=d.data)||void 0===t?void 0:t.skipModal)||!(null==d||null===(n=d.data)||void 0===n||null===(r=n.scopes)||void 0===r?void 0:r.length)){e.next=3;break}return e.next=3,S();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[S,d]),d?(null==d||null===(t=d.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.length)?(null==d||null===(a=d.data)||void 0===a?void 0:a.skipModal)||y&&(null==d||null===(o=d.data)||void 0===o?void 0:o.scopes.every((function(e){return y.includes(e)})))?null:r.createElement(h.a,null,r.createElement(g.a,{title:Object(s.__)("Additional Permissions Required","google-site-kit"),subtitle:d.message,confirmButton:Object(s.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:S,handleDialog:j})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",d),null):null}}).call(this,n(26),n(3))},19:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var r="modules/analytics-4",a="property_create",i="webdatastream_create",o=10,c=1,s="https://www.googleapis.com/auth/tagmanager.readonly"},190:function(e,t,n){"use strict";var r=n(5),a=n.n(r),i=n(14),o=n.n(i),c=n(16),s=n.n(c),l=n(2),u=n(4),d=n.n(u),g=n(93),f=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=f(),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(g.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},191: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(92),o=n(158);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(3))},192:function(e,t,n){"use strict";(function(e){var r=n(16),a=n.n(r),i=n(0),o=n.n(i),c=n(12),s=n.n(c),l=n(462),u=n(1),d=n(2),g=n(4),f=n.n(g),m=n(204),p=n(230),h=n(234),b=n(9),v=n(17),O=n(239),y=n(246),_=n(248),k=n(38),E=n(63),j=n(21),S=n(13),w=f.a.useSelect,N=function Header(t){var n,r=t.children,i=t.subHeader,o=t.showNavigation,c=!!Object(E.c)(),g=Object(k.a)(),f=w((function(e){return e(S.c).getAdminURL("googlesitekit-dashboard")})),N=w((function(e){return e(b.a).isAuthenticated()})),T=Object(l.a)({childList:!0}),A=a()(T,2),C=A[0],D=!!(null===(n=A[1].target)||void 0===n?void 0:n.childElementCount);return e.createElement(d.Fragment,null,e.createElement("header",{className:s()("googlesitekit-header",{"googlesitekit-header--has-subheader":D,"googlesitekit-header--has-navigation":o})},e.createElement(v.e,null,e.createElement(v.k,null,e.createElement(v.a,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0},e.createElement(j.a,{"aria-label":Object(u.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:f},e.createElement(m.a,null))),e.createElement(v.a,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0},r,!N&&c&&g&&e.createElement(_.a,null),N&&!g&&e.createElement(p.a,null))))),e.createElement("div",{className:"googlesitekit-subheader",ref:C},i),o&&e.createElement(O.a,null),e.createElement(y.a,null),e.createElement(h.a,null))};N.displayName="Header",N.propTypes={children:o.a.node,subHeader:o.a.element,showNavigation:o.a.bool},N.defaultProps={children:null,subHeader:null},t.a=N}).call(this,n(3))},193:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return HelpMenu}));var r=n(16),a=n.n(r),i=n(0),o=n.n(i),c=n(203),s=n(2),l=n(57),u=n(1),d=n(4),g=n.n(d),f=n(10),m=n(254),p=n(111),h=n(8),b=n(147),v=n(18),O=n(20),y=n(13),_=g.a.useSelect;function HelpMenu(t){var n=t.children,r=Object(s.useState)(!1),i=a()(r,2),o=i[0],d=i[1],g=Object(s.useRef)(),k=Object(O.a)();Object(c.a)(g,(function(){return d(!1)})),Object(p.a)([l.c,l.f],g,(function(){return d(!1)}));var E=_((function(e){return e(v.a).isModuleActive("adsense")})),j=Object(s.useCallback)((function(){o||Object(h.A)("".concat(k,"_headerbar"),"open_helpmenu"),d(!o)}),[o,k]),S=Object(s.useCallback)((function(){d(!1)}),[]),w=_((function(e){return e(y.c).getDocumentationLinkURL("fix-common-issues")}));return e.createElement("div",{ref:g,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},e.createElement(f.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":o,"aria-label":Object(u.__)("Help","google-site-kit"),"aria-haspopup":"menu",className:"googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon googlesitekit-help-menu__button mdc-button--dropdown",icon:e.createElement(m.a,{width:"20",height:"20"}),onClick:j,text:!0}),e.createElement(f.Menu,{className:"googlesitekit-width-auto",menuOpen:o,id:"googlesitekit-help-menu",onSelected:S},n,e.createElement(b.a,{gaEventLabel:"fix_common_issues",href:w},Object(u.__)("Fix common issues","google-site-kit")),e.createElement(b.a,{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/"},Object(u.__)("Read help docs","google-site-kit")),e.createElement(b.a,{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/"},Object(u.__)("Get support","google-site-kit")),E&&e.createElement(b.a,{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/"},Object(u.__)("Get help with AdSense","google-site-kit"))))}HelpMenu.propTypes={children:o.a.node}}).call(this,n(3))},194:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return JoyrideTooltip}));var a=n(6),i=n.n(a),o=n(16),c=n.n(o),s=n(0),l=n(27),u=n(461),d=n(2),g=n(117),f=n(94),m=n(104);function p(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?p(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JoyrideTooltip(t){var n=t.title,a=t.content,i=t.dismissLabel,o=t.target,s=t.cta,p=void 0!==s&&s,b=t.className,v=t.styles,O=void 0===v?{}:v,y=t.slug,_=void 0===y?"":y,k=t.onDismiss,E=void 0===k?function(){}:k,j=t.onView,S=void 0===j?function(){}:j,w=t.onTourStart,N=void 0===w?function(){}:w,T=t.onTourEnd,A=void 0===T?function(){}:T,C=function(){return!!e.document.querySelector(o)},D=Object(d.useState)(C),x=c()(D,2),R=x[0],L=x[1];if(Object(u.a)((function(){C()&&L(!0)}),R?null:250),Object(d.useEffect)((function(){if(R&&e.ResizeObserver){var t=e.document.querySelector(o),n=new ResizeObserver((function(){e.dispatchEvent(new Event("resize"))}));return n.observe(t),function(){n.disconnect()}}}),[o,R]),!R)return null;var M=[{title:n,target:o,content:a,disableBeacon:!0,isFixed:!0,placement:"auto",cta:p,className:b}],P={last:i};return r.createElement(f.a,{slug:_},r.createElement(l.e,{callback:function(e){switch(e.type){case l.b.TOUR_START:N();break;case l.b.TOUR_END:A();break;case l.b.STEP_AFTER:E();break;case l.b.TOOLTIP:S()}},disableOverlay:!0,disableScrolling:!0,spotlightPadding:0,floaterProps:m.b,locale:P,steps:M,styles:h(h(h({},m.c),O),{},{options:h(h({},m.c.options),null==O?void 0:O.options),spotlight:h(h({},m.c.spotlight),null==O?void 0:O.spotlight)}),tooltipComponent:g.a,run:!0}))}JoyrideTooltip.propTypes={title:s.PropTypes.string.isRequired,content:s.PropTypes.string,dismissLabel:s.PropTypes.string,target:s.PropTypes.string.isRequired,onDismiss:s.PropTypes.func,onShow:s.PropTypes.func,className:s.PropTypes.string,styles:s.PropTypes.object,slug:s.PropTypes.string,onView:s.PropTypes.func}}).call(this,n(26),n(3))},20:function(e,t,n){"use strict";var r=n(2),a=n(65);t.a=function(){return Object(r.useContext)(a.b)}},204:function(e,t,n){"use strict";(function(e){var r=n(1),a=n(130),i=n(205),o=n(106);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(3))},205:function(e,t,n){"use strict";var r=n(2);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)}},21:function(e,t,n){"use strict";(function(e){var r=n(23),a=n.n(r),i=n(25),o=n.n(i),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(132),g=n(1),f=n(2),m=Object(f.forwardRef)((function(t,n){var r,i=t["aria-label"],c=t.arrow,s=void 0!==c&&c,l=t.back,f=void 0!==l&&l,m=t.caps,p=void 0!==m&&m,h=t.children,b=t.className,v=void 0===b?"":b,O=t.danger,y=void 0!==O&&O,_=t.disabled,k=void 0!==_&&_,E=t.external,j=void 0!==E&&E,S=t.hideExternalIndicator,w=void 0!==S&&S,N=t.href,T=void 0===N?"":N,A=t.inverse,C=void 0!==A&&A,D=t.onClick,x=t.small,R=void 0!==x&&x,L=t.standalone,M=void 0!==L&&L,P=t.to,I=o()(t,["aria-label","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inverse","onClick","small","standalone","to"]),B=T||P||!D?P?"ROUTER_LINK":j?"EXTERNAL_LINK":"LINK":k?"BUTTON_DISABLED":"BUTTON",z="BUTTON"===B||"BUTTON_DISABLED"===B?"button":"ROUTER_LINK"===B?d.b:"a",H=("EXTERNAL_LINK"===B&&(r=Object(g._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===B&&(r=Object(g._x)("(disabled)","screen reader text","google-site-kit")),r?i?"".concat(i," ").concat(r):"string"==typeof h?"".concat(h," ").concat(r):void 0:i);return e.createElement(z,a()({"aria-label":H,className:u()("googlesitekit-cta-link",v,{"googlesitekit-cta-link--arrow":s,"googlesitekit-cta-link--external":j&&!w,"googlesitekit-cta-link--inverse":C,"googlesitekit-cta-link--back":f,"googlesitekit-cta-link--small":R,"googlesitekit-cta-link--caps":p,"googlesitekit-cta-link--danger":y,"googlesitekit-cta-link--disabled":k,"googlesitekit-cta-link--standalone":M}),disabled:k,href:"LINK"!==B&&"EXTERNAL_LINK"!==B||k?void 0:T,onClick:D,rel:"EXTERNAL_LINK"===B?"noopener noreferrer":void 0,ref:n,target:"EXTERNAL_LINK"===B?"_blank":void 0,to:P},I),h)}));m.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,inverse:s.a.bool,onClick:s.a.func,small:s.a.bool,standalone:s.a.bool,to:s.a.string},t.a=m}).call(this,n(3))},214:function(e,t,n){"use strict";var r=n(416);n.d(t,"c",(function(){return r.a}));var a=n(417);n.d(t,"a",(function(){return a.a}));var i=n(333);n.d(t,"b",(function(){return i.a}))},223:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(5),a=n.n(r),i=n(14),o=n.n(i),c=n(2),s=n(4),l=n.n(s),u=n(13),d=n(28),g=l.a.useDispatch,f=l.a.useSelect;function m(e){var t=g(d.b).setValue,n=f((function(e){return e(u.c).hasMinimumWordPressVersion("6.2")}));return Object(c.useCallback)(o()(a.a.mark((function r(){var i,o,c,s;return a.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=document.querySelector("#adminmenu").offsetHeight>0){r.next=7;break}if(!(o=document.getElementById("wp-admin-bar-menu-toggle"))){r.next=7;break}return o.click(),r.next=7,new Promise((function(e){setTimeout(e,0)}));case 7:"#adminmenu [href*='page=googlesitekit-dashboard']",(c=!!document.querySelector("".concat("#adminmenu [href*='page=googlesitekit-dashboard']","[aria-haspopup=true]")))&&document.querySelector("#adminmenu [href*='page=googlesitekit-dashboard']").click(),n&&(s=document.hasFocus,document.hasFocus=function(){return document.hasFocus=s,!1}),t(e,{isTooltipVisible:!0,rehideAdminMenu:!i,rehideAdminSubMenu:c});case 12:case"end":return r.stop()}}),r)}))),[n,t,e])}},224:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminMenuTooltip}));var r=n(6),a=n.n(r),i=n(23),o=n.n(i),c=n(5),s=n.n(c),l=n(14),u=n.n(l),d=n(25),g=n.n(d),f=n(2),m=n(0),p=n.n(m),h=n(4),b=n.n(h),v=n(194),O=n(28),y=n(160);function _(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 k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=b.a.useDispatch;function AdminMenuTooltip(t){var n=t.onDismiss,r=t.tooltipStateKey,a=g()(t,["onDismiss","tooltipStateKey"]),i=E(O.b).setValue,c=Object(y.a)(r),l=c.rehideAdminMenu,d=c.rehideAdminSubMenu,m=Object(f.useCallback)(u()(s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l&&document.querySelector("#adminmenu").offsetHeight>0&&(null===(t=document.getElementById("wp-admin-bar-menu-toggle"))||void 0===t||t.click()),d&&document.querySelector("body").click(),e.next=4,null==n?void 0:n();case 4:i(r,void 0);case 5:case"end":return e.stop()}}),e)}))),[n,l,d,i,r]);return e.createElement(v.a,o()({slug:"ga4-activation-banner-admin-menu-tooltip",onDismiss:m},a))}AdminMenuTooltip.propTypes=k(k({},v.a.propTypes),{},{target:p.a.string,tooltipStateKey:p.a.string.isRequired}),AdminMenuTooltip.defaultProps={target:'#adminmenu [href*="page=googlesitekit-settings"]'}}).call(this,n(3))},230:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UserMenu}));var a=n(5),i=n.n(a),o=n(14),c=n.n(o),s=n(16),l=n.n(s),u=n(203),d=n(2),g=n(1),f=n(57),m=n(4),p=n.n(m),h=n(10),b=n(131),v=n(8),O=n(39),y=n(94),_=n(231),k=n(183),E=n(232),j=n(233),S=n(13),w=n(9),N=n(31),T=n(111),A=n(20),C=p.a.useSelect,D=p.a.useDispatch;function UserMenu(){var t=C((function(e){return e(S.c).getProxyPermissionsURL()})),n=C((function(e){return e(w.a).getEmail()})),a=C((function(e){return e(w.a).getPicture()})),o=C((function(e){return e(w.a).getFullName()})),s=C((function(e){return e(S.c).getAdminURL("googlesitekit-splash",{googlesitekit_context:"revoked"})})),m=Object(d.useState)(!1),p=l()(m,2),x=p[0],R=p[1],L=Object(d.useState)(!1),M=l()(L,2),P=M[0],I=M[1],B=Object(d.useRef)(),z=Object(d.useRef)(),H=Object(A.a)(),F=D(N.a).navigateTo;Object(u.a)(B,(function(){return I(!1)})),Object(T.a)([f.c,f.f],B,(function(){var e;I(!1),null===(e=z.current)||void 0===e||e.focus()})),Object(d.useEffect)((function(){var t=function(e){f.c===e.keyCode&&(R(!1),I(!1))};return e.addEventListener("keyup",t),function(){e.removeEventListener("keyup",t)}}),[]);var W,V=Object(d.useCallback)((function(){P||Object(v.A)("".concat(H,"_headerbar"),"open_usermenu"),I(!P)}),[P,H]),U=Object(d.useCallback)((function(){R(!x),I(!1)}),[x]),G=Object(d.useCallback)(function(){var e=c()(i.a.mark((function e(n,r){var a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=r.detail.item,e.t0=null==a?void 0:a.id,e.next="manage-sites"===e.t0?4:"disconnect"===e.t0?9:11;break;case 4:if(!t){e.next=8;break}return e.next=7,Object(v.A)("".concat(H,"_headerbar_usermenu"),"manage_sites");case 7:F(t);case 8:return e.abrupt("break",12);case 9:return U(),e.abrupt("break",12);case 11:V();case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[t,V,U,F,H]),q=Object(d.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!1),e.next=3,Object(O.b)();case 3:return e.next=5,Object(v.A)("".concat(H,"_headerbar_usermenu"),"disconnect_user");case 5:F(s);case 6:case"end":return e.stop()}}),e)}))),[s,F,H]);return n?(o&&n&&(W=Object(g.sprintf)( /* translators: Account info text. 1: User's (full) name 2: User's email address. */ Object(g.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),o,n)),o&&!n&&(W=Object(g.sprintf)( /* translators: Account info text. 1: User's (full) name. */ Object(g.__)("Google Account for %1$s","google-site-kit"),o)),!o&&n&&(W=Object(g.sprintf)( /* translators: Account info text. 1: User's email address. */ Object(g.__)("Google Account (Email: %1$s)","google-site-kit"),n)),r.createElement(d.Fragment,null,r.createElement("div",{ref:B,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},r.createElement(h.Button,{ref:z,className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--tablet googlesitekit-border-radius-round--phone googlesitekit-border-radius-round googlesitekit-button-icon",text:!0,onClick:V,icon:!!a&&r.createElement("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true"},r.createElement("img",{className:"mdc-button__icon--image",src:a,alt:Object(g.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":P,"aria-controls":"user-menu","aria-label":Object(g.__)("Account","google-site-kit"),tooltip:!0,customizedTooltip:r.createElement("span",{"aria-label":W},r.createElement("strong",null,Object(g.__)("Google Account","google-site-kit")),r.createElement("br",null),r.createElement("br",null),o,o&&r.createElement("br",null),n)}),r.createElement(h.Menu,{className:"googlesitekit-user-menu",menuOpen:P,onSelected:G,id:"user-menu"},r.createElement("li",null,r.createElement(_.a,null)),!!t&&r.createElement("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem"},r.createElement(k.a,{icon:r.createElement(j.a,{width:"22"}),label:Object(g.__)("Manage Sites","google-site-kit")})),r.createElement("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem"},r.createElement(k.a,{icon:r.createElement(E.a,{width:"22"}),label:Object(g.__)("Disconnect","google-site-kit")})))),r.createElement(y.a,null,r.createElement(b.a,{dialogActive:x,handleConfirm:q,handleDialog:U,title:Object(g.__)("Disconnect","google-site-kit"),subtitle:Object(g.__)("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(g.__)("Disconnect","google-site-kit"),danger:!0})))):null}}).call(this,n(26),n(3))},231:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Details}));var r=n(1),a=n(4),i=n.n(a),o=n(9),c=i.a.useSelect;function Details(){var t=c((function(e){return e(o.a).getPicture()})),n=c((function(e){return e(o.a).getFullName()})),a=c((function(e){return e(o.a).getEmail()}));return e.createElement("div",{className:"googlesitekit-user-menu__details","aria-label":Object(r.__)("Google account","google-site-kit")},!!t&&e.createElement("img",{className:"googlesitekit-user-menu__details-avatar",src:t,alt:""}),e.createElement("div",{className:"googlesitekit-user-menu__details-info"},e.createElement("p",{className:"googlesitekit-user-menu__details-info__name"},n),e.createElement("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":Object(r.__)("Email","google-site-kit")},a)))}}).call(this,n(3))},232:function(e,t,n){"use strict";var r=n(2);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:"M6.83 2H20a2 2 0 012 2v12c0 .34-.09.66-.23.94L20 15.17V6h-9.17l-4-4zm13.66 19.31L17.17 18H4a2 2 0 01-2-2V4c0-.34.08-.66.23-.94L.69 1.51 2.1.1l19.8 19.8-1.41 1.41zM15.17 16l-10-10H4v10h11.17z",fill:"#6C726E"});t.a=function SvgDisconnect(e){return r.createElement("svg",a({viewBox:"0 0 22 22",fill:"none"},e),i)}},233:function(e,t,n){"use strict";var r=n(2);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:"M20 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h18v12zm-2-9H7v2h11V5zm0 4H7v2h11V9zM6 5H4v2h2V5zm0 4H4v2h2V9z",fill:"#6C726E"});t.a=function SvgManageSites(e){return r.createElement("svg",a({viewBox:"0 0 22 18",fill:"none"},e),i)}},234:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotifications}));var r=n(2),a=n(1),i=n(4),o=n.n(i),c=n(235),s=n(236),l=n(237),u=n(238),d=n(18),g=n(9),f=n(13),m=n(30),p=n(49),h=o.a.useSelect;function ErrorNotifications(){var t=h((function(e){return e(g.a).isAuthenticated()})),n=h((function(e){return e(f.c).getSetupErrorCode()})),i=h((function(e){return e(f.c).getSetupErrorMessage()})),o=h((function(e){return e(f.c).getSetupErrorRedoURL()})),b=h((function(e){return e(f.c).getErrorTroubleshootingLinkURL({code:n})})),v=h((function(e){return e(d.a).isModuleConnected("analytics-4")})),O=h((function(e){return e(g.a).hasScope(m.h)})),y=v&&!O;return e.createElement(r.Fragment,null,e.createElement(u.a,null),e.createElement(c.a,null),i&&e.createElement(p.b,{id:"setup_error",type:"win-error",title:Object(a.__)("Error connecting Site Kit","google-site-kit"),description:i,isDismissible:!1,ctaLink:o,ctaLabel:Object(a.__)("Redo the plugin setup","google-site-kit"),learnMoreLabel:Object(a.__)("Get help","google-site-kit"),learnMoreURL:b}),!i&&t&&e.createElement(r.Fragment,null,!y&&e.createElement(s.a,null),y&&e.createElement(l.a,null)))}}).call(this,n(3))},235:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AuthError}));var r=n(1),a=n(4),i=n.n(a),o=n(9),c=n(49),s=i.a.useSelect;function AuthError(){var t=s((function(e){return e(o.a).getAuthError()}));return t?e.createElement(c.b,{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(3))},236:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlert}));var a=n(16),i=n.n(a),o=n(15),c=n(2),s=n(1),l=n(4),u=n.n(l),d=n(49),g=n(8),f=n(9),m=n(31),p=n(18),h=u.a.useSelect,b={siteverification:"site-verification",webmasters:"search-console"};function UnsatisfiedScopesAlert(){var t,n,a,l=Object(c.useRef)(),u=h((function(e){return e(m.a).isNavigatingTo(new RegExp("//oauth2|action=googlesitekit_connect","i"))})),v=h((function(e){return e(f.a).getUnsatisfiedScopes()})),O=h((function(t){return t(f.a).getConnectURL({redirectURL:e.location.href})})),y=h((function(e){return e(p.a).getModules()}));if(u&&!l.current||!(null==v?void 0:v.length)||void 0===O)return null;t=v.some((function(e){return!e.match(new RegExp("^https://www\\.googleapis\\.com/auth/"))}))||!(n=function(e,t){return void 0===t?null:e.map((function(e){return e.match(new RegExp("^https://www\\.googleapis\\.com/auth/([a-z]+)"))})).map((function(e){var t=i()(e,2)[1];return b[t]||t})).map((function(e){var n;return(null===(n=t[e])||void 0===n?void 0:n.name)||!1}))}(v,y))||n.some((function(e){return!1===e}))?"generic":1<(n=Object(o.uniq)(n)).length?"multiple":"single";var _=Object(s.__)("Site Kit can’t access necessary data","google-site-kit"),k=Object(s.__)("Redo setup","google-site-kit");switch(t){case"multiple":a=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(g.s)(n));break;case"single":a=Object(s.sprintf)( /* translators: %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":a=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.b,{id:"authentication error",title:_,description:a,format:"small",type:"win-error",isDismissible:!1,ctaLink:O,onCTAClick:function(){l.current=!0},ctaLabel:k})}}).call(this,n(26),n(3))},237:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlertGTE}));var a=n(1),i=n(4),o=n.n(i),c=n(49),s=n(13),l=n(9),u=n(30),d=o.a.useSelect;function UnsatisfiedScopesAlertGTE(){var t=d((function(t){return t(l.a).getConnectURL({additionalScopes:[u.h],redirectURL:e.location.href})})),n=d((function(e){return e(s.c).getGoogleSupportURL({path:"/tagmanager/answer/11994839"})}));return void 0===t?null:r.createElement(c.b,{id:"authentication-error-gte",title:Object(a.__)("Site Kit needs additional permissions to detect updates to tags on your site","google-site-kit"),description:Object(a.__)("To continue using Analytics with Site Kit, you need to grant permission to check for any changes in your Google tag’s target Analytics property. The Google tag feature was recently updated to allow users to change a tag’s connected Analytics property without editing site code. Because of this change, Site Kit now must regularly check if the tag on your site matches the Analytics property destination.","google-site-kit"),format:"small",type:"win-error",isDismissible:!1,ctaLink:t,ctaLabel:Object(a.__)("Grant permission","google-site-kit"),learnMoreLabel:Object(a.__)("Learn more","google-site-kit"),learnMoreURL:n})}}).call(this,n(26),n(3))},238:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(4),a=n.n(r),i=n(13),o=n(49),c=a.a.useSelect;function InternalServerError(){var t=c((function(e){return e(i.c).getInternalServerError()}));return t?e.createElement(o.b,t):null}}).call(this,n(3))},239:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardNavigation}));var r=n(4),a=n.n(r),i=n(9),o=n(38),c=n(240),s=n(55),l=a.a.useSelect;function DashboardNavigation(){var t=Object(o.a)(),n=l((function(e){return t?e(i.a).getViewableModules():null})),r=Object(s.a)("userInput"),a=l((function(e){return r&&e(i.a).getKeyMetrics()}));return void 0===n||void 0===a?null:e.createElement(c.a,null)}}).call(this,n(3))},24:function(e,t,n){"use strict";n.d(t,"l",(function(){return r})),n.d(t,"j",(function(){return a})),n.d(t,"m",(function(){return i})),n.d(t,"k",(function(){return o})),n.d(t,"q",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"p",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"o",(function(){return d})),n.d(t,"i",(function(){return g})),n.d(t,"r",(function(){return f})),n.d(t,"n",(function(){return m})),n.d(t,"b",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return O})),n.d(t,"f",(function(){return y}));var r="mainDashboard",a="entityDashboard",i="mainDashboardViewOnly",o="entityDashboardViewOnly",c="userInput",s="activation",l="splash",u="adminBar",d="settings",g="adBlockingRecovery",f="wpDashboard",m="moduleSetup",p="key-metrics",h="traffic",b="content",v="speed",O="monetization",y=[r,a,i,o,c,l,d,m]},240:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return Navigation}));var a=n(29),i=n.n(a),o=n(16),c=n.n(o),s=n(12),l=n.n(s),u=n(15),d=n(89),g=n(135),f=n(2),m=n(1),p=n(4),h=n.n(p),b=n(241),v=n(242),O=n(243),y=n(244),_=n(245),k=n(24),E=n(9),j=n(41),S=n(28),w=n(71),N=n(63),T=n(36),A=n(116),C=n(8),D=n(20),x=n(38),R=n(55);function L(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 M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var 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 M(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 P=h.a.useSelect,I=h.a.useDispatch;function Navigation(){var t,n=Object(N.c)(),a=Object(f.useRef)(),o=Object(T.e)(),s=null===(t=e.location.hash)||void 0===t?void 0:t.substring(1),p=Object(f.useState)(s),h=c()(p,2),M=h[0],B=h[1],z=Object(f.useState)(s||void 0),H=c()(z,2),F=H[0],W=H[1],V=Object(f.useState)(!1),U=c()(V,2),G=U[0],q=U[1],K=Object(D.a)(),Y=Object(x.a)(),X=I(S.b).setValue,$=P((function(e){return Y?e(E.a).getViewableModules():null})),Z=Object(R.a)("userInput"),J=P((function(e){return Z&&e(E.a).isKeyMetricsWidgetHidden()})),Q={modules:$||void 0},ee=P((function(e){return!(!Z||n!==N.b||!0===J)&&e(j.a).isWidgetContextActive(w.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,Q)})),te=P((function(e){return e(j.a).isWidgetContextActive(n===N.b?w.CONTEXT_MAIN_DASHBOARD_TRAFFIC:w.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,Q)})),ne=P((function(e){return e(j.a).isWidgetContextActive(n===N.b?w.CONTEXT_MAIN_DASHBOARD_CONTENT:w.CONTEXT_ENTITY_DASHBOARD_CONTENT,Q)})),re=P((function(e){return e(j.a).isWidgetContextActive(n===N.b?w.CONTEXT_MAIN_DASHBOARD_SPEED:w.CONTEXT_ENTITY_DASHBOARD_SPEED,Q)})),ae=P((function(e){return e(j.a).isWidgetContextActive(n===N.b?w.CONTEXT_MAIN_DASHBOARD_MONETIZATION:w.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,Q)})),ie=Object(f.useCallback)((function(){return ee?k.b:Y?te?k.e:ne?k.a:re?k.d:ae?k.c:"":k.e}),[ee,te,ne,re,ae,Y]),oe=Object(f.useCallback)((function(t){var n,r=t.target.closest(".mdc-chip"),a=null==r||null===(n=r.dataset)||void 0===n?void 0:n.contextId;e.history.replaceState({},"","#".concat(a)),W(a),Object(C.A)("".concat(K,"_navigation"),"tab_select",a),e.scrollTo({top:a!==ie()?Object(A.a)("#".concat(a),o):0,behavior:"smooth"}),setTimeout((function(){X(S.a,a)}),50)}),[o,K,X,ie]);return Object(d.a)((function(){var t=ie();if(!s)return B(t),void setTimeout((function(){return e.history.replaceState({},"","#".concat(t))}));var n=s;(function(e){return!(!ee||e!==k.b)||(!(!te||e!==k.e)||(!(!ne||e!==k.a)||(!(!re||e!==k.d)||!(!ae||e!==k.c))))})(n)||(n=t),X(S.a,n),B(n),setTimeout((function(){var r=n!==t?Object(A.a)("#".concat(n),o):0;e.scrollY!==r?e.scrollTo({top:r,behavior:"smooth"}):X(S.a,void 0)}),50)})),Object(f.useEffect)((function(){var t=function(e){X(S.a,void 0),B(e),W(void 0)},n=Object(u.throttle)((function(n){var r,o,c,s,l=e.scrollY,u=null===(r=document.querySelector(".googlesitekit-entity-header"))||void 0===r||null===(o=r.getBoundingClientRect())||void 0===o?void 0:o.bottom,d=null==a||null===(c=a.current)||void 0===c?void 0:c.getBoundingClientRect(),g=d.bottom,f=d.top,m=[].concat(i()(ee?[k.b]:[]),i()(te?[k.e]:[]),i()(ne?[k.a]:[]),i()(re?[k.d]:[]),i()(ae?[k.c]:[])),p=ie();if(0===l)q(!1);else{var h,b=null===(h=document.querySelector(".googlesitekit-header"))||void 0===h?void 0:h.getBoundingClientRect().bottom;q(f===b)}var v,O=L(m);try{for(O.s();!(v=O.n()).done;){var y=v.value,_=document.getElementById(y);if(_){var E=_.getBoundingClientRect().top-20-(u||g||0);E<0&&(void 0===s||s<E)&&(s=E,p=y)}}}catch(e){O.e(e)}finally{O.f()}if(F)F===p&&t(p);else{var j=e.location.hash;p!==(null==j?void 0:j.substring(1))&&(n&&Object(C.A)("".concat(K,"_navigation"),"tab_scroll",p),e.history.replaceState({},"","#".concat(p)),t(p))}}),150);return e.addEventListener("scroll",n),function(){e.removeEventListener("scroll",n)}}),[F,ee,te,ne,re,ae,K,X,ie]),r.createElement("nav",{className:l()("mdc-chip-set","googlesitekit-navigation","googlesitekit-navigation--".concat(n),{"googlesitekit-navigation--is-sticky":G}),ref:a},ee&&r.createElement(g.Chip,{id:k.b,label:Object(m.__)("Key metrics","google-site-kit"),leadingIcon:r.createElement(b.a,{width:"18",height:"16"}),onClick:oe,selected:M===k.b,"data-context-id":k.b}),te&&r.createElement(g.Chip,{id:k.e,label:Object(m.__)("Traffic","google-site-kit"),leadingIcon:r.createElement(v.a,{width:"18",height:"16"}),onClick:oe,selected:M===k.e,"data-context-id":k.e}),ne&&r.createElement(g.Chip,{id:k.a,label:Object(m.__)("Content","google-site-kit"),leadingIcon:r.createElement(O.a,{width:"18",height:"18"}),onClick:oe,selected:M===k.a,"data-context-id":k.a}),re&&r.createElement(g.Chip,{id:k.d,label:Object(m.__)("Speed","google-site-kit"),leadingIcon:r.createElement(y.a,{width:"20",height:"16"}),onClick:oe,selected:M===k.d,"data-context-id":k.d}),ae&&r.createElement(g.Chip,{id:k.c,label:Object(m.__)("Monetization","google-site-kit"),leadingIcon:r.createElement(_.a,{width:"18",height:"16"}),onClick:oe,selected:M===k.c,"data-context-id":k.c}))}}).call(this,n(26),n(3))},241:function(e,t,n){"use strict";var r=n(2);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("rect",{x:.5,width:5,height:5,rx:1,fill:"currentColor"}),o=r.createElement("rect",{x:7.5,width:5,height:5,rx:1,fill:"currentColor"}),c=r.createElement("rect",{x:.5,y:7,width:5,height:5,rx:1,fill:"currentColor"}),s=r.createElement("rect",{x:7.5,y:7,width:5,height:5,rx:1,fill:"currentColor"});t.a=function SvgNavKeyMetricsIcon(e){return r.createElement("svg",a({viewBox:"0 0 13 12",fill:"none"},e),i,o,c,s)}},242:function(e,t,n){"use strict";var r=n(2);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:"M7 0h3.971v16H7V0zM0 8h4v8H0V8zm18-3h-4v11h4V5z",fill:"currentColor"});t.a=function SvgNavTrafficIcon(e){return r.createElement("svg",a({viewBox:"0 0 18 16",fill:"none"},e),i)}},243:function(e,t,n){"use strict";var r=n(2);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:"M18 16V2c0-1.1-1-2-2.222-2H2.222C1 0 0 .9 0 2v14c0 1.1 1 2 2.222 2h13.556C17 18 18 17.1 18 16zM9 7h5V5H9v2zm7-5H2v14h14V2zM4 4h4v4H4V4zm10 7H9v2h5v-2zM4 10h4v4H4v-4z",fill:"currentColor"});t.a=function SvgNavContentIcon(e){return r.createElement("svg",a({viewBox:"0 0 18 18",fill:"none"},e),i)}},244:function(e,t,n){"use strict";var r=n(2);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:"M18.378 4.543l-1.232 1.854a8.024 8.024 0 01-.22 7.598H3.043A8.024 8.024 0 014.154 4.49 8.011 8.011 0 0113.57 2.82l1.853-1.233A10.01 10.01 0 003.117 2.758a10.026 10.026 0 00-1.797 12.24A2.004 2.004 0 003.043 16h13.873a2.003 2.003 0 001.742-1.002 10.03 10.03 0 00-.27-10.465l-.01.01z",fill:"currentColor"}),o=r.createElement("path",{d:"M8.572 11.399a2.003 2.003 0 002.835 0l5.669-8.51-8.504 5.673a2.005 2.005 0 000 2.837z",fill:"currentColor"});t.a=function SvgNavSpeedIcon(e){return r.createElement("svg",a({viewBox:"0 0 20 16",fill:"none"},e),i,o)}},245:function(e,t,n){"use strict";var r=n(2);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:"M16.1 0v2h2.967l-5.946 5.17-4.6-4L0 10.59 1.621 12l6.9-6 4.6 4L20.7 3.42V6H23V0h-6.9z",fill:"currentColor"});t.a=function SvgNavMonetizationIcon(e){return r.createElement("svg",a({viewBox:"0 0 23 12",fill:"none"},e),i)}},246:function(e,t,n){"use strict";(function(e,r){var a=n(16),i=n.n(a),o=n(15),c=n(1),s=n(2),l=n(4),u=n.n(l),d=n(10),g=n(13),f=n(247),m=n(31),p=n(21),h=n(66),b=n(8),v=n(63),O=n(20),y=u.a.useSelect,_=u.a.useDispatch;t.a=function EntityHeader(){var t=Object(O.a)(),n=Object(v.c)(),a=y((function(e){return e(g.c).getCurrentEntityTitle()})),l=y((function(e){return e(g.c).getCurrentEntityURL()})),u=Object(s.useRef)(),k=Object(s.useState)(l),E=i()(k,2),j=E[0],S=E[1];Object(s.useEffect)((function(){var t=function(){if(u.current){var t=u.current.clientWidth-40,n=e.getComputedStyle(u.current.lastChild,null).getPropertyValue("font-size"),r=2*t/parseFloat(n);S(Object(h.d)(l,r))}},n=Object(o.throttle)(t,100);return t(),e.addEventListener("resize",n),function(){e.removeEventListener("resize",n)}}),[l,u,S]);var w=_(m.a).navigateTo,N=y((function(e){return e(g.c).getAdminURL("googlesitekit-dashboard")})),T=Object(s.useCallback)((function(){Object(b.A)("".concat(t,"_navigation"),"return_to_dashboard"),w(N)}),[N,w,t]);return v.a!==n||null===l||null===a?null:r.createElement("div",{className:"googlesitekit-entity-header"},r.createElement("div",{className:"googlesitekit-entity-header__back"},r.createElement(d.Button,{icon:r.createElement(f.a,{width:24,height:24}),"aria-label":Object(c.__)("Back to dashboard","google-site-kit"),onClick:T,text:!0},Object(c.__)("Back to dashboard","google-site-kit"))),r.createElement("div",{ref:u,className:"googlesitekit-entity-header__details"},r.createElement("p",null,a),r.createElement(p.a,{href:l,"aria-label":l,external:!0},j)))}}).call(this,n(26),n(3))},247:function(e,t,n){"use strict";var r=n(2);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:"M0 0h24v24H0z",fill:"none"}),o=r.createElement("path",{d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z",fill:"currentColor"});t.a=function SvgKeyboardBackspace(e){return r.createElement("svg",a({viewBox:"0 0 24 24"},e),i,o)}},248:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ViewOnlyMenu}));var r=n(16),a=n.n(r),i=n(203),o=n(12),c=n.n(o),s=n(2),l=n(1),u=n(57),d=n(10),g=n(20),f=n(111),m=n(8),p=n(249),h=n(250),b=n(251),v=n(253),O=n(4),y=n.n(O),_=n(9),k=y.a.useSelect;function ViewOnlyMenu(){var t=Object(s.useState)(!1),n=a()(t,2),r=n[0],o=n[1],O=Object(s.useRef)(),y=Object(g.a)();Object(i.a)(O,(function(){return o(!1)})),Object(f.a)([u.c,u.f],O,(function(){return o(!1)}));var E=Object(s.useCallback)((function(){r||Object(m.A)("".concat(y,"_headerbar"),"open_viewonly"),o(!r)}),[r,y]),j=k((function(e){return e(_.a).hasCapability(_.o)}));return e.createElement("div",{ref:O,className:c()("googlesitekit-view-only-menu","googlesitekit-dropdown-menu","googlesitekit-dropdown-menu__icon-menu","mdc-menu-surface--anchor",{"googlesitekit-view-only-menu--user-can-authenticate":j})},e.createElement(d.Button,{className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--phone googlesitekit-button-icon",text:!0,onClick:E,icon:e.createElement("span",{className:"mdc-button__icon","aria-hidden":"true"},e.createElement(p.a,{className:"mdc-button__icon--image"})),"aria-haspopup":"menu","aria-expanded":r,"aria-controls":"view-only-menu","aria-label":Object(l.__)("View only","google-site-kit"),tooltip:!0},Object(l.__)("View only","google-site-kit")),e.createElement(d.Menu,{menuOpen:r,nonInteractive:!0,onSelected:E,id:"view-only-menu"},e.createElement(h.a,null),e.createElement(b.a,null),e.createElement("li",{className:"mdc-list-divider",role:"separator"}),e.createElement(v.a,null)))}}).call(this,n(3))},249:function(e,t,n){"use strict";var r=n(2);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:"M8 1.333c2.756 0 5.214 1.42 6.415 3.667-1.2 2.247-3.659 3.667-6.415 3.667-2.756 0-5.215-1.42-6.415-3.667C2.785 2.753 5.244 1.333 8 1.333zM8 0C4.364 0 1.258 2.073 0 5c1.258 2.927 4.364 5 8 5s6.742-2.073 8-5c-1.258-2.927-4.364-5-8-5zm0 3.333c1.004 0 1.818.747 1.818 1.667S9.004 6.667 8 6.667 6.182 5.92 6.182 5 6.996 3.333 8 3.333zM8 2C6.196 2 4.727 3.347 4.727 5S6.197 8 8 8c1.804 0 3.273-1.347 3.273-3S9.803 2 8 2z",fill:"currentColor"});t.a=function SvgView(e){return r.createElement("svg",a({viewBox:"0 0 16 10",fill:"none"},e),i)}},250:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Description}));var r=n(5),a=n.n(r),i=n(14),o=n.n(i),c=n(2),s=n(46),l=n(1),u=n(4),d=n.n(u),g=n(10),f=n(31),m=n(13),p=n(9),h=n(8),b=n(21),v=n(20),O=d.a.useDispatch,y=d.a.useSelect;function Description(){var t=Object(v.a)(),n=y((function(e){return e(p.a).hasCapability(p.o)})),r=y((function(e){return e(m.c).getProxySetupURL()})),i=y((function(e){return e(m.c).getDocumentationLinkURL("dashboard-sharing")})),u=O(f.a).navigateTo,d=Object(c.useCallback)(function(){var e=o()(a.a.mark((function e(n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),e.next=3,Object(h.A)("".concat(t,"_headerbar_viewonly"),"start_user_setup",r?"proxy":"custom-oauth");case 3:u(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[r,u,t]),_=Object(c.useCallback)((function(){Object(h.A)("".concat(t,"_headerbar_viewonly"),"click_learn_more_link")}),[t]),k=n?Object(s.a)(Object(l.__)("You can see stats from all shared Google services, but you can't make any changes. <strong>Sign in to connect more services and control sharing access.</strong>","google-site-kit"),{strong:e.createElement("strong",null)}):Object(s.a)(Object(l.__)("You can see stats from all shared Google services, but you can't make any changes. <a>Learn more</a>","google-site-kit"),{a:e.createElement(b.a,{href:i,external:!0,onClick:_,"aria-label":Object(l.__)("Learn more about dashboard sharing","google-site-kit")})});return e.createElement("li",{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description"},e.createElement("p",null,k),n&&e.createElement(g.Button,{onClick:d},Object(l.__)("Sign in with Google","google-site-kit")))}}).call(this,n(3))},251:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SharedServices}));var r=n(1),a=n(4),i=n.n(a),o=n(9),c=n(252),s=i.a.useSelect;function SharedServices(){var t=s((function(e){return e(o.a).getViewableModules()}));return void 0===t?null:e.createElement("li",{className:"googlesitekit-view-only-menu__list-item"},e.createElement("h4",null,Object(r.__)("Shared services","google-site-kit")),e.createElement("ul",null,t.map((function(t){return e.createElement(c.a,{key:t,module:t})}))))}}).call(this,n(3))},252:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Service}));var r=n(0),a=n.n(r),i=n(46),o=n(1),c=n(4),s=n.n(c),l=n(18),u=n(9),d=s.a.useSelect;function Service(t){var n=t.module,r=d((function(e){return e(u.a).hasCapability(u.o)})),a=d((function(e){return e(l.a).getModule(n)||{}})),c=a.name,s=a.owner,g=d((function(e){return e(l.a).getModuleIcon(n)}));return e.createElement("li",{className:"googlesitekit-view-only-menu__service"},e.createElement("span",{className:"googlesitekit-view-only-menu__service--icon"},e.createElement(g,{height:26})),e.createElement("span",{className:"googlesitekit-view-only-menu__service--name"},c),r&&(null==s?void 0:s.login)&&e.createElement("span",{className:"googlesitekit-view-only-menu__service--owner"},Object(i.a)(Object(o.sprintf)( /* translators: %s: module owner Google Account email address */ Object(o.__)("Shared by <strong>%s</strong>","google-site-kit"),s.login),{strong:e.createElement("strong",{title:s.login})})))}Service.propTypes={module:a.a.string.isRequired}}).call(this,n(3))},253:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Tracking}));var r=n(46),a=n(1),i=n(176),o=n(20);function Tracking(){var t=Object(o.a)();return e.createElement("li",{className:"googlesitekit-view-only-menu__list-item"},e.createElement("p",null,Object(r.a)(Object(a.__)("Thanks for using Site Kit!<br />Help us make it even better.","google-site-kit"),{br:e.createElement("br",null)})),e.createElement(i.a,{trackEventCategory:"".concat(t,"_headerbar_viewonly"),alignCheckboxLeft:!0}))}}).call(this,n(3))},254:function(e,t,n){"use strict";var r=n(2);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)}},263:function(e,t,n){"use strict";(function(e){var r=n(12),a=n.n(r),i=n(0),o=n.n(i),c=function Widget(t){var n=t.children,r=t.className,i=t.widgetSlug,o=t.noPadding,c=t.Header,s=t.Footer;return e.createElement("div",{className:a()("googlesitekit-widget","googlesitekit-widget--".concat(i),{"googlesitekit-widget--no-padding":o},{"googlesitekit-widget--with-header":c},r)},c&&e.createElement("div",{className:"googlesitekit-widget__header"},e.createElement(c,null)),e.createElement("div",{className:"googlesitekit-widget__body"},n),s&&e.createElement("div",{className:"googlesitekit-widget__footer"},e.createElement(s,null)))};c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:o.a.node,widgetSlug:o.a.string.isRequired,noPadding:o.a.bool,Header:o.a.elementType,Footer:o.a.elementType},t.a=c}).call(this,n(3))},264:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetRecoverableModules}));var r=n(6),a=n.n(r),i=n(23),o=n.n(i),c=n(29),s=n.n(c),l=n(25),u=n.n(l),d=n(0),g=n.n(d),f=n(2),m=n(138),p=n(151);function h(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 WidgetRecoverableModules(t){var n=t.widgetSlug,r=t.moduleSlugs,a=u()(t,["widgetSlug","moduleSlugs"]),i=Object(f.useMemo)((function(){return{moduleSlug:s()(r).sort().join(","),moduleSlugs:r}}),[r]);return Object(m.a)(n,p.a,i),e.createElement(p.a,o()({moduleSlugs:r},a))}WidgetRecoverableModules.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:g.a.string.isRequired},p.a.propTypes)}).call(this,n(3))},267:function(e,t,n){"use strict";n.d(t,"d",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return p.a})),n.d(t,"a",(function(){return c.a})),n.d(t,"f",(function(){return h})),n.d(t,"e",(function(){return l}));var r=n(16),a=n.n(r),i=n(29),o=n.n(i),c=n(134),s=n(118);function l(e){return!!e&&e.Component===s.a}function u(e,t){if(9!==t)return[e,t];for(var n=(e=o()(e)).length-1;0!==t&&n>=0;)3===e[n]?(t-=3,e[n]=4):6===e[n]&&(t-=6,e[n]=8),n--;return[e,t]}function d(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map((function(t){return{counter:e+c.c[t],width:t}}))}function g(e,t){var n=[],r=[];if(!(null==e?void 0:e.length))return{columnWidths:n,rowIndexes:r};var i=0,o=0,s=function(e,t){return e.counter-t.counter},g=function(e,t){var n=e.counter;return t.counter-n},f=function(e){return e.counter<=12};if(e.forEach((function(m,p){if(l(t[m.slug]))return n.push(0),void r.push(o);var h=d(i,m),b=function(e,t,n){for(;++e<t.length;)if(!l(n[t[e].slug]))return t[e];return null}(p,e,t);null!==b&&0!==d(h.sort(s)[0].counter,b).filter(f).length||h.some(f)&&(h=(h=h.sort(g)).filter(f));var v=h[0].width;if(r.push(o),(i+=c.c[v])>12){if(i-=c.c[v],r[p]++,9===i){var O=u(n,i),y=a()(O,2);n=y[0],i=y[1]}i=c.c[v],o++}else 12===i&&(i=0,o++);n.push(c.c[v])})),9===i){var m=u(n,i),p=a()(m,2);n=p[0],i=p[1]}return{columnWidths:n,rowIndexes:r}}var f=n(15);function m(e,t,n){var r=n.columnWidths,a=n.rowIndexes,i=[],s=o()(r);if(!(null==e?void 0:e.length))return{gridColumnWidths:s,overrideComponents:i};var l=null,u=-1,d=[];if(function(e,t){for(var n={},r=0;r<e.length;r++){var a,i=e[r],o=null==t?void 0:t[i.slug],s=null==o?void 0:o.Component,l=null==o||null===(a=o.metadata)||void 0===a?void 0:a.moduleSlug,u=c.b.includes(s);if(!s||!l||!u)return!1;if(n[l]){if(n[l]!==s)return!1}else n[l]=s}return!(Object.keys(n).length>1)}(e,t)){var g=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12].concat(o()(g))}}return e.forEach((function(n,o){var c,g,m,p,h;if(i.push(null),l=t[n.slug],u=a[o],l)if(g=l,m=t[null===(c=e[o+1])||void 0===c?void 0:c.slug],p=u,h=a[o+1],p===h&&Object(f.isEqual)(g,m))d.push(r[o]),s[o]=0;else if(d.length>0){d.push(r[o]);var b=d.reduce((function(e,t){return e+t}),0);i[o]=l,s[o]=b,d=[]}})),{gridColumnWidths:s,overrideComponents:i}}var p=n(179);function h(e){return(Array.isArray(e)?e:[e]).filter((function(e){return"string"==typeof e&&e.length>0}))}},279:function(e,t,n){"use strict";(function(e){var r=n(51),a=n.n(r),i=n(52),o=n.n(i),c=n(68),s=n.n(c),l=n(69),u=n.n(l),d=n(45),g=n.n(d),f=n(0),m=n.n(f),p=n(2),h=n(17),b=n(21);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var O=function(t){s()(LayoutHeader,t);var n=v(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,i=a?{alignMiddle:!0,smSize:4,lgSize:6}:{alignMiddle:!0,smSize:4,mdSize:8,lgSize:12};return e.createElement("header",{className:"googlesitekit-layout__header"},e.createElement(h.e,null,e.createElement(h.k,null,n&&e.createElement(h.a,i,e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-layout__header-title"},n)),a&&e.createElement(h.a,{alignMiddle:!0,mdAlignRight:!0,smSize:4,lgSize:6},e.createElement(b.a,{href:a,external:!0},r)))))}}]),LayoutHeader}(p.Component);O.propTypes={title:m.a.string,ctaLabel:m.a.string,ctaLink:m.a.string},O.defaultProps={title:"",ctaLabel:"",ctaLink:""},t.a=O}).call(this,n(3))},28:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="core/ui",a="activeContextID"},280:function(e,t,n){"use strict";(function(e){var r=n(51),a=n.n(r),i=n(52),o=n.n(i),c=n(68),s=n.n(c),l=n(69),u=n.n(l),d=n(45),g=n.n(d),f=n(0),m=n.n(f),p=n(2),h=n(17),b=n(123);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=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var O=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(h.e,null,e.createElement(h.k,null,e.createElement(h.a,{size:12},r&&n&&e.createElement(b.a,{className:"googlesitekit-data-block__source",name:n,href:r,external:!0}),a))))}}]),LayoutFooter}(p.Component);O.propTypes={ctaLabel:m.a.string,ctaLink:m.a.string},t.a=O}).call(this,n(3))},30:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"i",(function(){return d}));var r="modules/tagmanager",a="account_create",i="container_create",o="web",c="amp",s="tagmanagerSetup",l="https://www.googleapis.com/auth/tagmanager.readonly",u="https://www.googleapis.com/auth/tagmanager.edit.containers",d="SETUP_WITH_ANALYTICS"},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/location"},310:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={EXISTING_PROPERTY:"EXISTING_PROPERTY",NO_EXISTING_PROPERTY:"NO_EXISTING_PROPERTY"}},312:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var r=n(6),a=n.n(r),i=n(23),o=n.n(i),c=n(25),s=n.n(c),l=n(0),u=n.n(l),d=n(2),g=n(138),f=n(161);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 WidgetReportZero(t){var n=t.widgetSlug,r=t.moduleSlug,a=s()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(g.a)(n,f.a,i),e.createElement(f.a,o()({moduleSlug:r},a))}WidgetReportZero.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},f.a.propTypes)}).call(this,n(3))},313:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var r=n(6),a=n.n(r),i=n(25),o=n.n(i),c=n(0),s=n.n(c),l=n(177);function u(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 WidgetReportError(t){t.widgetSlug;var n=o()(t,["widgetSlug"]);return e.createElement(l.a,n)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:s.a.string.isRequired},l.a.propTypes)}).call(this,n(3))},314:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetNull}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(138),s=n(118);function l(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 u={};function WidgetNull(t){var n=t.widgetSlug;return Object(c.a)(n,s.a,u),e.createElement(s.a,null)}WidgetNull.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:o.a.string.isRequired},s.a.propTypes)}).call(this,n(3))},316:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var r=n(12),a=n.n(r),i=n(0),o=n.n(i),c=n(17);function PageHeader(t){var n=t.title,r=t.icon,i=t.className,o=t.status,s=t.statusText,l=t.fullWidth,u=t.children,d=l?{size:12}:{smSize:4,mdSize:4,lgSize:6},g=""!==o||Boolean(u);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement(c.k,null,n&&e.createElement(c.a,d,r,e.createElement("h1",{className:a()("googlesitekit-page-header__title",i)},n)),g&&e.createElement(c.a,{alignBottom:!0,mdAlignRight:!0,smSize:4,mdSize:4,lgSize:6},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:a()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},s),u))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(3))},32:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/forms"},325:function(e,t,n){"use strict";var r=n(2);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:"M16.666 7.5V5H15v2.5h-2.5v1.666H15v2.5h1.666v-2.5h2.5V7.5h-2.5zM7.5 10a3.332 3.332 0 100-6.667A3.332 3.332 0 107.5 10zm0-5c.916 0 1.666.75 1.666 1.666 0 .917-.75 1.667-1.666 1.667-.917 0-1.667-.75-1.667-1.667C5.833 5.75 6.583 5 7.5 5zm5.325 7.133c-1.4-.717-3.217-1.3-5.325-1.3-2.109 0-3.925.583-5.325 1.3A2.476 2.476 0 00.833 14.35v2.316h13.333V14.35c0-.934-.508-1.792-1.341-2.217zM12.5 15h-10v-.65c0-.317.166-.6.433-.734A10.09 10.09 0 017.5 12.5c1.975 0 3.575.608 4.566 1.116a.81.81 0 01.434.734V15z",fill:"currentColor"});t.a=function SvgShare(e){return r.createElement("svg",a({viewBox:"0 0 20 20",fill:"none"},e),i)}},333:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UseSnippetSwitch}));var r=n(0),a=n.n(r),i=n(2),o=n(1),c=n(4),s=n.n(c),l=n(10),u=n(19),d=n(8),g=n(20),f=s.a.useSelect,m=s.a.useDispatch;function UseSnippetSwitch(t){var n=t.description,r=Object(g.a)(),a=f((function(e){return e(u.d).getUseSnippet()})),c=m(u.d).setUseSnippet,s=Object(i.useCallback)((function(){var e=!a;c(e),Object(d.A)("".concat(r,"_analytics"),e?"enable_tag":"disable_tag","ga4")}),[a,c,r]);return void 0===a?null:e.createElement("div",{className:"googlesitekit-analytics-usesnippet"},e.createElement(l.Switch,{label:Object(o.__)("Place Google Analytics 4 code","google-site-kit"),checked:a,onClick:s,hideLabel:!1}),n)}UseSnippetSwitch.propTypes={description:a.a.node}}).call(this,n(3))},34:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return v}));var r=n(99),a=e._googlesitekitTrackingData||{},i=a.activeModules,o=void 0===i?[]:i,c=a.isSiteKitScreen,s=a.trackingEnabled,l=a.trackingID,u=a.referenceSiteURL,d=a.userIDHash,g=a.isAuthenticated,f={activeModules:o,trackingEnabled:s,trackingID:l,referenceSiteURL:u,userIDHash:d,isSiteKitScreen:c,userRoles:a.userRoles,isAuthenticated:g,pluginVersion:"1.109.0"},m=Object(r.a)(f),p=m.enableTracking,h=m.disableTracking,b=(m.isTrackingEnabled,m.initializeSnippet),v=m.trackEvent;function O(e){e?p():h()}c&&s&&b()}).call(this,n(26))},341:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(12),o=n.n(i),c=n(4),s=n.n(c),l=n(535),u=n(9),d=n(41),g=n(17),f=n(38),m=s.a.useSelect,p=function WidgetContextRenderer(t){var n=t.id,r=t.slug,a=t.className,i=t.Header,c=t.Footer,s=Object(f.a)(),p=m((function(e){return s?e(u.a).getViewableModules():null})),h=m((function(e){return r?e(d.a).getWidgetAreas(r):null})),b=m((function(e){return!!r&&e(d.a).isWidgetContextActive(r,{modules:p||void 0})}));return void 0===p?null:e.createElement("div",{id:n,className:o()("googlesitekit-widget-context",{"googlesitekit-hidden":!b},a)},i&&b&&e.createElement(g.e,null,e.createElement(g.k,null,e.createElement(g.a,{size:12},e.createElement(i,null)))),h&&h.map((function(t){return e.createElement(l.a,{key:t.slug,slug:t.slug,contextID:n})})),c&&b&&e.createElement(g.e,null,e.createElement(g.k,null,e.createElement(g.a,{size:12},e.createElement(c,null)))))};p.propTypes={id:a.a.string,slug:a.a.string,className:a.a.string,Header:a.a.elementType,Footer:a.a.elementType},t.a=p}).call(this,n(3))},35: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"},36:function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return s}));var r=n(92),a="xlarge",i="desktop",o="tablet",c="small";function s(){var e=Object(r.a)();return e>1280?a:e>960?i:e>600?o:c}},37:function(e,t){e.exports=googlesitekit.api},376:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(8),a=n(40);function i(e){var t=Object(a.a)(e);return t<Object(a.a)("2023-05-01")?Object(r.n)("month"):Object(a.a)("2023-05-01")<=t&&t<Object(a.a)("2023-06-01")?Math.max(31*Object(r.n)("day")-t.getDate()*Object(r.n)("day"),2*Object(r.n)("day")):2*Object(r.n)("day")}},38:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(24),a=n(20);function i(){var e=Object(a.a)();return e===r.m||e===r.k}},384:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(2),a=n(4),i=n.n(a),o=n(19),c=i.a.useSelect,s=i.a.useDispatch;function l(){var e=s(o.d).setUseSnippet,t=c((function(e){return e(o.d).getExistingTag()})),n=c((function(e){return e(o.d).getMeasurementID()})),a=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(t&&void 0!==n){if(""===n||a.current)return void(a.current=!1);e(n!==t)}}),[e,t,n])}},39:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return v})),n.d(t,"f",(function(){return O})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return _})),n.d(t,"b",(function(){return k}));var r=n(5),a=n.n(r),i=n(14),o=n.n(i),c=(n(29),n(8));function s(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 l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var 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 l(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 u,d="googlesitekit_",g="".concat(d).concat("1.109.0","_").concat(e._googlesitekitBaseData.storagePrefix,"_"),f=["sessionStorage","localStorage"],m=[].concat(f),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 h(){return b.apply(this,arguments)}function b(){return(b=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===u){t.next=2;break}return t.abrupt("return",u);case 2:n=s(m),t.prev=3,n.s();case 5:if((r=n.n()).done){t.next=15;break}if(i=r.value,!u){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}u=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===u&&(u=null),t.abrupt("return",u);case 25:case"end":return t.stop()}}),t,null,[[3,17,20,23]])})))).apply(this,arguments)}var v=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,h();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(g).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)}}(),O=function(){var t=o()(a.a.mark((function t(n,r){var i,o,s,l,u,d,f,m,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=p.length>2&&void 0!==p[2]?p[2]:{},o=i.ttl,s=void 0===o?c.b:o,l=i.timestamp,u=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,f=void 0!==d&&d,t.next=3,h();case 3:if(!(m=t.sent)){t.next=14;break}return t.prev=5,m.setItem("".concat(g).concat(n),JSON.stringify({timestamp:u,ttl:s,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)}}(),y=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:return t.next=2,h();case 2:if(!(r=t.sent)){t.next=14;break}return t.prev=4,i=n.startsWith(d)?n:"".concat(g).concat(n),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(4),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,[[4,10]])})));return function(e){return t.apply(this,arguments)}}(),_=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,h();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(d)&&r.push(o);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)}}(),k=function(){var e=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 e.next=2,h();case 2:if(!e.sent){e.next=25;break}return e.next=6,_();case 6:t=e.sent,n=s(t),e.prev=8,n.s();case 10:if((r=n.n()).done){e.next=16;break}return i=r.value,e.next=14,y(i);case 14:e.next=10;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(8),n.e(e.t0);case 21:return e.prev=21,n.f(),e.finish(21);case 24:return e.abrupt("return",!0);case 25:return e.abrupt("return",!1);case 26:case"end":return e.stop()}}),e,null,[[8,18,21,24]])})));return function(){return e.apply(this,arguments)}}()}).call(this,n(26))},4:function(e,t){e.exports=googlesitekit.data},40:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(16),a=n.n(r),i=n(11),o=n.n(i),c=n(43),s=n(53),l=function(e){o()(Object(s.a)(e),c.e);var t=e.split("-"),n=a()(t,3),r=n[0],i=n[1],l=n[2];return new Date(r,i-1,l)}},401:function(e,t,n){"use strict";(function(e){var r=n(27),a=n(1),i=n(9),o=(e._googlesitekitUserData||{}).hasMultipleAdmins,c=[{target:".googlesitekit-dashboard-sharing-settings__main .googlesitekit-dashboard-sharing-settings__column--view",title:Object(a.__)("Manage view access for other roles","google-site-kit"),content:Object(a.__)("Grant access to the view-only dashboard for each service for the specific roles you want. Users will see the Site Kit dashboard with only the services that have been shared with them without needing to sign-in with Google.","google-site-kit"),placement:"auto"}];o&&c.push({target:".googlesitekit-dashboard-sharing-settings__main .googlesitekit-dashboard-sharing-settings__column--manage",title:Object(a.__)("Share management with other admins","google-site-kit"),content:Object(a.__)("By default only the user who connects a service can control who it is shared with. This setting optionally lets these users allow any other admin signed in with Google to manage the roles a service is shared with.","google-site-kit"),placement:"auto"}),t.a={slug:"dashboardSharingSettings",gaEventCategory:function(e){return"".concat(e,"_dashboard-sharing")},steps:c,callback:function(e,t){var n=e.type,a=t.select,o=t.dispatch;r.b.TOOLTIP===n&&!1===a(i.a).isTourDismissed("dashboardSharing")&&o(i.a).dismissTour("dashboardSharing")}}}).call(this,n(26))},404:function(e,t,n){"use strict";var r=n(2);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:"M4.522 143.34c2.283 6.363 5.534 12.204 9.6 17.248 15.98 19.643 39.589 21.308 61.242 16.393 21.924-5.009 42.593-15.632 60.484-31.083 10.296-8.905 20.465-19.956 34.097-20.448 5.118-.184 10.412 1.462 14.278 5.346 8.035 8.019 7.892 21.731 14.162 31.235 8.339 12.64 20.332 16.554 33.415 18.013 36.961 4.116 80.986-9.39 106.41-42.253 22.699-29.338 25.423-76.02-2.053-102.765-12.553-12.22-29.767-17.818-46.014-14.965-12.418 2.18-25.024 8.813-37.878 10.657-15.138 2.177-24.497-5.246-36.745-13.892-21.342-15.026-49.557-20.8-73.716-12.081-23.127 8.343-39.771 31.125-62.275 41.133-19.446 8.653-42.416 7.336-59.313 21.43C.225 83.98-4.8 117.641 4.522 143.34z",fill:"#F9FAF9"}),o=r.createElement("g",{filter:"url(#ga4-success-green_svg__filter0_d_826_6999)"},r.createElement("rect",{x:83,y:3,width:218.232,height:149,rx:11.919,fill:"#fff"}),r.createElement("rect",{x:82.409,y:2.409,width:219.414,height:150.182,rx:12.51,stroke:"#CBD0D3",strokeWidth:1.182})),c=r.createElement("path",{d:"M83 14.92C83 8.336 88.337 3 94.92 3h194.393c6.583 0 11.919 5.337 11.919 11.92v6.14H83v-6.14z",fill:"#EBEEF0"}),s=r.createElement("rect",{x:92.03,y:9.02,width:6.02,height:6.02,rx:3.01,fill:"#CBD0D3"}),l=r.createElement("rect",{x:101.061,y:9.02,width:6.02,height:6.02,rx:3.01,fill:"#CBD0D3"}),u=r.createElement("rect",{x:95.002,y:30.603,width:25.582,height:9.303,rx:4.651,fill:"#EBEEF0"}),d=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M111.598 49.79H96.481v-2.907h15.117v2.907zM108.11 57.93H96.481v-2.907h11.629v2.906zM104.621 66.07h-8.14v-2.908h8.14v2.907zM109.273 74.21H96.481v-2.908h12.792v2.907z",fill:"#EBEEF0"}),g=r.createElement("rect",{x:237.141,y:30.151,width:49.924,height:49.078,rx:3.07,fill:"#EBEEF0"}),f=r.createElement("rect",{x:255.516,y:70.242,width:13.305,height:3.07,rx:1.023,fill:"#CBD0D3"}),m=r.createElement("circle",{cx:262.167,cy:51.309,r:10.746,stroke:"#F5C3EA",strokeWidth:3.07}),p=r.createElement("path",{d:"M272.914 51.309c0 5.934-4.812 10.746-10.747 10.746-5.934 0-10.746-4.812-10.746-10.746 0-5.935 4.812-10.746 10.746-10.746",stroke:"#E399D3",strokeWidth:3.07,strokeLinecap:"round"}),h=r.createElement("rect",{x:136.446,y:85.999,width:49.924,height:49.078,rx:3.07,fill:"#EBEEF0"}),b=r.createElement("rect",{x:155.258,y:125.508,width:13.305,height:3.07,rx:1.023,fill:"#CBD0D3"}),v=r.createElement("circle",{cx:161.911,cy:106.574,r:10.746,stroke:"#F5C3EA",strokeWidth:3.295}),O=r.createElement("path",{d:"M158.294 116.693c-5.589-1.997-8.5-8.147-6.502-13.736 1.997-5.588 8.147-8.5 13.736-6.502",stroke:"#E399D3",strokeWidth:3.07,strokeLinecap:"round"}),y=r.createElement("rect",{x:136.446,y:30.151,width:93.079,height:49.078,rx:3.07,fill:"#EBEEF0"}),_=r.createElement("rect",{x:141.639,y:37.492,width:44.008,height:3.07,rx:1.023,fill:"#CBD0D3"}),k=r.createElement("rect",{x:141.639,y:43.633,width:28.656,height:3.07,rx:1.023,fill:"#CBD0D3"}),E=r.createElement("rect",{x:141.523,y:50.459,width:82.925,height:23.693,rx:2.047,fill:"#fff"}),j=r.createElement("g",{mask:"url(#ga4-success-green_svg__a)"},r.createElement("path",{d:"M152.343 70.074c-8.033 0-11.243-1.866-13.358-3.732v11.195h87.156V57.906c-.668-1.348-2.296-4.908-7.984-4.908-7.346 0-13.306 14.277-24.284 14.277-10.977 0-12.308-6.84-18.628-6.84-7.984 0-12.551 9.639-22.902 9.639z",fill:"#F5C3EA",stroke:"#E399D3",strokeWidth:3.07}),r.createElement("path",{d:"M178.129 60.008a3.07 3.07 0 11-6.141-.001 3.07 3.07 0 016.141 0z",fill:"#AC629B"})),S=r.createElement("rect",{x:193.986,y:85.999,width:93.079,height:49.078,rx:3.07,fill:"#EBEEF0"}),w=r.createElement("rect",{x:199.267,y:92.758,width:19.445,height:3.07,rx:1.023,fill:"#CBD0D3"}),N=r.createElement("rect",{x:199.267,y:98.898,width:10.234,height:3.07,rx:1.023,fill:"#CBD0D3"}),T=r.createElement("rect",{x:204.875,y:127.555,width:12.281,height:3.07,rx:1.023,transform:"rotate(-90 204.875 127.555)",fill:"#F5C3EA"}),A=r.createElement("rect",{x:213.062,y:127.555,width:6.141,height:3.07,rx:1.023,transform:"rotate(-90 213.062 127.555)",fill:"#F5C3EA"}),C=r.createElement("rect",{x:221.25,y:127.555,width:6.141,height:3.07,rx:1.023,transform:"rotate(-90 221.25 127.555)",fill:"#F5C3EA"}),D=r.createElement("rect",{x:229.438,y:127.555,width:8.188,height:3.07,rx:1.023,transform:"rotate(-90 229.438 127.555)",fill:"#E399D3"}),x=r.createElement("rect",{x:237.625,y:127.555,width:12.281,height:3.07,rx:1.023,transform:"rotate(-90 237.625 127.555)",fill:"#E399D3"}),R=r.createElement("rect",{x:245.812,y:127.555,width:15.352,height:3.07,rx:1.023,transform:"rotate(-90 245.812 127.555)",fill:"#E399D3"}),L=r.createElement("rect",{x:254,y:127.555,width:18.422,height:3.07,rx:1.023,transform:"rotate(-90 254 127.555)",fill:"#E399D3"}),M=r.createElement("rect",{x:262.188,y:127.555,width:15.352,height:3.07,rx:1.023,transform:"rotate(-90 262.188 127.555)",fill:"#E399D3"}),P=r.createElement("rect",{x:270.375,y:127.555,width:9.211,height:3.07,rx:1.023,transform:"rotate(-90 270.375 127.555)",fill:"#E399D3"}),I=r.createElement("path",{d:"M79.162 126.71l-10.25 43.198H55M95.27 126.71l5.124 12.447-8.786 30.751h12.447",stroke:"#000",strokeWidth:2.758,strokeLinecap:"round"}),B=r.createElement("path",{d:"M120.896 104.725c5.939.696 30.067 6.234 23.615-15.253l5.672-1.395",stroke:"#191C1A",strokeWidth:2.758,strokeLinecap:"round",strokeLinejoin:"round"}),z=r.createElement("path",{d:"M58.868 105.86c.72 9.731.871 20.959-1.877 30.341",stroke:"#191C1A",strokeWidth:2.758,strokeMiterlimit:10,strokeLinecap:"round"}),H=r.createElement("circle",{cx:88.68,cy:97.424,r:32.215,fill:"#77AD8C"}),F=r.createElement("path",{d:"M98.93 111.803c-4.788 6.599-13.708 8.761-20.5.899",stroke:"#191C1A",strokeWidth:2.758,strokeMiterlimit:10,strokeLinecap:"round"}),W=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.02 126.711c18.196 0 32.947-14.752 32.947-32.948a32.791 32.791 0 00-5.113-17.637 32.09 32.09 0 018.042 21.296c0 17.792-14.423 32.216-32.215 32.216a32.093 32.093 0 01-21.282-8.03 32.788 32.788 0 0017.62 5.103z",fill:"#59866A"}),V=r.createElement("defs",null,r.createElement("filter",{id:"ga4-success-green_svg__filter0_d_826_6999",x:81.818,y:1.818,width:223.98,height:155.594,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:3.385,dy:4.231}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{values:"0 0 0 0 0.796078 0 0 0 0 0.815686 0 0 0 0 0.827451 0 0 0 1 0"}),r.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_826_6999"}),r.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_826_6999",result:"shape"})));t.a=function SvgGa4SuccessGreen(e){return r.createElement("svg",a({viewBox:"0 0 356 181",fill:"none"},e),i,o,c,s,l,u,d,g,f,m,p,h,b,v,O,y,_,k,r.createElement("mask",{id:"ga4-success-green_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:141,y:50,width:84,height:25},E),j,S,w,N,T,A,C,D,x,R,L,M,P,I,B,z,H,F,W,V)}},408:function(e,t,n){"use strict";var r=n(2);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",{fill:"#3c7251",d:"M10.6 16.6l7.05-7.05-1.4-1.4-5.65 5.65-2.85-2.85-1.4 1.4 4.25 4.25zM12 22a9.873 9.873 0 01-3.9-.775 10.274 10.274 0 01-3.175-2.15c-.9-.9-1.617-1.958-2.15-3.175A9.873 9.873 0 012 12c0-1.383.258-2.683.775-3.9a10.275 10.275 0 012.15-3.175c.9-.9 1.958-1.608 3.175-2.125A9.607 9.607 0 0112 2c1.383 0 2.683.267 3.9.8a9.927 9.927 0 013.175 2.125c.9.9 1.608 1.958 2.125 3.175.533 1.217.8 2.517.8 3.9a9.607 9.607 0 01-.8 3.9 9.927 9.927 0 01-2.125 3.175c-.9.9-1.958 1.617-3.175 2.15A9.873 9.873 0 0112 22zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20z"});t.a=function SvgCheckCircle(e){return r.createElement("svg",a({viewBox:"0 0 24 24"},e),i)}},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var r={BOXES:"boxes",COMPOSITE:"composite"},a={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},416:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebDataStreamSelect}));var r=n(12),a=n.n(r),i=n(0),o=n.n(i),c=n(2),s=n(1),l=n(10),u=n(4),d=n.n(u),g=n(19),f=n(7),m=n(56),p=n(140),h=n(8),b=n(20),v=d.a.useSelect,O=d.a.useDispatch;function WebDataStreamSelect(t){var n=t.hasModuleAccess,r=t.isDisabled,i=t.className;v((function(e){return e(f.i).getAccounts()}));var o=v((function(e){return e(f.i).getAccountID()})),u=v((function(e){return e(g.d).getSettings()||{}})),d=u.propertyID,y=u.webDataStreamID,_=u.measurementID,k=v((function(e){return Object(p.b)(d)&&!1!==n?e(g.d).getWebDataStreams(d):[]})),E=v((function(e){if(r)return!1;var t=e(f.i).hasFinishedResolution("getAccounts"),a=!1===n||e(g.d).hasFinishedResolution("getProperties",[o]),i=!Object(p.b)(d)||!1===n||e(g.d).hasFinishedResolution("getWebDataStreams",[d]),c=!1!==e(f.i).hasFinishedSelectingAccount();return e(g.d).isMatchingAccountProperty()||!t||!a||!i||!c})),j=Object(b.a)(),S=O(g.d),w=S.setWebDataStreamID,N=S.updateSettingsForMeasurementID,T=Object(c.useCallback)((function(e,t){var n,r,a=t.dataset.value;y!==a&&(w(a),N((null===(n=k.find((function(e){return e._id===a})))||void 0===n||null===(r=n.webStreamData)||void 0===r?void 0:r.measurementId)||""),Object(h.A)("".concat(j,"_analytics"),a===g.f?"change_webdatastream_new":"change_webdatastream","ga4"))}),[k,y,w,N,j]);if(!Object(m.c)(o))return null;if(E)return e.createElement(l.ProgressBar,{smallHeight:80,desktopHeight:88,small:!0});var A=void 0===y||""===y||Object(p.e)(y);return!1===n?e.createElement(l.Select,{className:a()("googlesitekit-analytics-4__select-webdatastream",i),label:Object(s.__)("Web Data Stream","google-site-kit"),value:_,enhanced:!0,outlined:!0,disabled:!0},e.createElement(l.Option,{value:_},_)):e.createElement(l.Select,{className:a()("googlesitekit-analytics-4__select-webdatastream",i,{"mdc-select--invalid":!A}),label:Object(s.__)("Web Data Stream","google-site-kit"),value:y,onEnhancedChange:T,disabled:r||!Object(p.c)(d),enhanced:!0,outlined:!0},(k||[]).concat({_id:g.f,displayName:Object(s.__)("Set up a new web data stream","google-site-kit")}).map((function(t,n){var r=t._id,a=t.displayName,i=t.webStreamData,o=void 0===i?{}:i;return e.createElement(l.Option,{key:n,value:r},r!==g.f&&(null==o?void 0:o.measurementId)?Object(s.sprintf)( /* translators: 1: Data stream name. 2: Measurement ID. */ Object(s._x)("%1$s (%2$s)","Analytics 4 data stream name and measurement ID","google-site-kit"),a,o.measurementId):a)})))}WebDataStreamSelect.propTypes={hasModuleAccess:o.a.bool,isDisabled:o.a.bool,className:o.a.string}}).call(this,n(3))},417:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertySelect}));var r=n(12),a=n.n(r),i=n(0),o=n.n(i),c=n(2),s=n(1),l=n(10),u=n(4),d=n.n(u),g=n(19),f=n(7),m=n(56),p=n(140),h=n(8),b=n(20),v=d.a.useSelect,O=d.a.useDispatch;function PropertySelect(t){var n=t.isDisabled,r=t.hasModuleAccess,i=t.className,o=t.onChange,u=void 0===o?function(){}:o;v((function(e){return e(f.i).getAccounts()}));var d=v((function(e){return e(f.i).getAccountID()})),y=v((function(e){return!1===r||n?null:e(g.d).getProperties(d)||[]})),_=v((function(e){return e(g.d).getPropertyID()})),k=v((function(e){if(n)return!1;var t=!(!1===r||!d)&&e(g.d).isResolving("getProperties",[d]);return e(g.d).isMatchingAccountProperty()||!e(f.i).hasFinishedResolution("getAccounts")||t||!1===e(f.i).hasFinishedSelectingAccount()})),E=Object(b.a)(),j=O(g.d).selectProperty,S=Object(c.useCallback)((function(e,t){var n=t.dataset.value;_!==n&&(j(n),Object(h.A)("".concat(E,"_analytics"),n===g.e?"change_property_new":"change_property","ga4"),u())}),[u,_,j,E]);if(!Object(m.c)(d))return null;if(k)return e.createElement(l.ProgressBar,{smallHeight:80,desktopHeight:88,small:!0});var w=void 0===_||""===_||Object(p.c)(_);return!1===r?e.createElement(l.Select,{className:a()("googlesitekit-analytics-4__select-property",i),label:Object(s.__)("Property","google-site-kit"),value:_,enhanced:!0,outlined:!0,disabled:!0},e.createElement(l.Option,{value:_},_)):e.createElement(l.Select,{className:a()("googlesitekit-analytics-4__select-property",i,{"mdc-select--invalid":!w,"googlesitekit-analytics-4__select-property--loaded":!n&&!k}),label:Object(s.__)("Property","google-site-kit"),value:_,onEnhancedChange:S,disabled:n,enhanced:!0,outlined:!0},(y||[]).concat({_id:g.e,displayName:Object(s.__)("Set up a new property","google-site-kit")}).map((function(t){var n=t._id,r=t.displayName;return e.createElement(l.Option,{key:n,value:n},n===g.e?r:Object(s.sprintf)( /* translators: 1: Property name. 2: Property ID. */ Object(s._x)("%1$s (%2$s)","Analytics property name and ID","google-site-kit"),r,n))})))}PropertySelect.propTypes={isDisabled:o.a.bool,hasModuleAccess:o.a.bool,className:o.a.string,onChange:o.a.func}}).call(this,n(3))},42: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(26))},426:function(e,t,n){"use strict";var r=n(2);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:"currentColor",fillRule:"evenodd"},r.createElement("path",{d:"M0 6.414L1.415 5l5.292 5.292-1.414 1.415z"}),r.createElement("path",{d:"M14.146.146l1.415 1.414L5.414 11.707 4 10.292z"}));t.a=function SvgCheck(e){return r.createElement("svg",a({viewBox:"0 0 16 12"},e),i)}},43:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return s}));var r="Date param must construct to a valid date instance or be a valid date instance itself.",a="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".',o=3600,c=86400,s=604800},44:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},474:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ZeroDataStateNotifications}));var r=n(1),a=n(4),i=n.n(a),o=n(9),c=n(18),s=n(38),l=n(19),u=n(7),d=n(58),g=n(551),f=n(553),m=i.a.useSelect,p=i.a.useInViewSelect;function ZeroDataStateNotifications(){var t,n=Object(s.a)(),a=m((function(e){return e(u.i).isGA4DashboardView()})),i=a?"analytics-4":"analytics",h=a?l.d:u.i,b=m((function(e){return e(c.a).isModuleConnected(i)})),v=m((function(e){return!n||e(o.a).canViewSharedModule(i)})),O=m((function(e){return!n||e(o.a).canViewSharedModule("search-console")})),y=m((function(e){if(!n)return!1;var t=e(c.a).getRecoverableModules();return void 0!==t?Object.keys(t).includes(a?"analytics-4":"analytics"):void 0})),_=m((function(e){if(!n)return!1;var t=e(c.a).getRecoverableModules();return void 0!==t?Object.keys(t).includes("search-console"):void 0})),k=p((function(e){return!(void 0===a||!b||!v||!1!==y)&&e(h).isGatheringData()})),E=p((function(e){return O&&!1===_&&e(d.b).isGatheringData()})),j=p((function(e){return!(void 0===a||!b||!v||!1!==y)&&e(h).hasZeroData()})),S=p((function(e){return O&&!1===_&&e(d.b).hasZeroData()}));return void 0===a||void 0===k||void 0===E||void 0===j||void 0===S?null:k||E||j||S?(k&&E?t=Object(r.__)("Search Console and Analytics are gathering data","google-site-kit"):k?t=Object(r.__)("Analytics is gathering data","google-site-kit"):E&&(t=Object(r.__)("Search Console is gathering data","google-site-kit")),k||E?e.createElement(g.a,{title:t}):e.createElement(f.a,null)):null}}).call(this,n(3))},476:function(e,t,n){"use strict";n.d(t,"a",(function(){return ScrollEffect}));var r=n(555);function ScrollEffect(){return Object(r.a)(),null}},49:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return BannerNotification}));var r=n(23),a=n.n(r),i=n(6),o=n.n(i),c=n(5),s=n.n(c),l=n(14),u=n.n(l),d=n(16),g=n.n(d),f=n(0),m=n.n(f),p=n(12),h=n.n(p),b=n(221),v=n(323),O=n(89),y=n(92),_=n(2),k=n(95),E=n(4),j=n.n(E),S=n(17),w=n(116),N=n(39),T=n(36),A=n(166),C=n(167),D=n(168),x=n(172),R=n(173),L=n(80),M=n(113),P=n(40),I=n(128),B=n(31),z=n(174);n.d(t,"a",(function(){return L.a}));var H=j.a.useSelect,F=j.a.useDispatch;function BannerNotification(t){var n,r=t.badgeLabel,i=t.children,c=t.className,l=void 0===c?"":c,d=t.ctaLabel,f=t.ctaLink,m=t.ctaTarget,p=t.description,E=t.dismiss,j=t.dismissExpires,W=void 0===j?0:j,V=t.format,U=void 0===V?"":V,G=t.id,q=t.isDismissible,K=void 0===q||q,Y=t.learnMoreDescription,X=t.learnMoreLabel,$=t.learnMoreURL,Z=t.learnMoreTarget,J=void 0===Z?L.a.EXTERNAL:Z,Q=t.logo,ee=t.module,te=t.moduleName,ne=t.onCTAClick,re=t.onView,ae=t.onDismiss,ie=t.onLearnMoreClick,oe=t.showOnce,ce=void 0!==oe&&oe,se=t.SmallImageSVG,le=t.title,ue=t.type,de=t.WinImageSVG,ge=t.showSmallWinImage,fe=void 0===ge||ge,me=t.smallWinImageSVGWidth,pe=void 0===me?75:me,he=t.smallWinImageSVGHeight,be=void 0===he?75:he,ve=t.mediumWinImageSVGWidth,Oe=void 0===ve?105:ve,ye=t.mediumWinImageSVGHeight,_e=void 0===ye?105:ye,ke=t.rounded,Ee=void 0!==ke&&ke,je=t.footer,Se=t.secondaryPane,we=t.ctaComponent,Ne=Object(_.useState)(!1),Te=g()(Ne,2),Ae=Te[0],Ce=Te[1],De=Object(_.useState)(!1),xe=g()(De,2),Re=xe[0],Le=xe[1],Me="notification::dismissed::".concat(G),Pe=function(){return Object(N.f)(Me,new Date,{ttl:null})},Ie=Object(y.a)(),Be=Object(T.e)(),ze=Object(b.a)(),He=Object(_.useState)(!1),Fe=g()(He,2),We=Fe[0],Ve=Fe[1],Ue=Object(_.useRef)(),Ge=Object(v.a)(Ue,{rootMargin:"".concat(-Object(I.a)(Object(w.c)(Be)),"px 0px 0px 0px"),threshold:0});Object(_.useEffect)((function(){!We&&(null==Ge?void 0:Ge.isIntersecting)&&("function"==typeof re&&re(),Ve(!0))}),[G,re,We,Ge]);var qe=Ie>=600;Object(O.a)(u()(s.a.mark((function e(){var t,n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(W>0)){e.next=3;break}return e.next=3,Je();case 3:if(!K){e.next=9;break}return e.next=6,Object(N.d)(Me);case 6:t=e.sent,n=t.cacheHit,Le(n);case 9:if(!ce){e.next=12;break}return e.next=12,Pe();case 12:case"end":return e.stop()}}),e)}))));var Ke=function(){var e=u()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!ae){e.next=5;break}return e.next=5,ae(t);case 5:Ye();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ye=function(){Ce(!0),setTimeout(u()(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,Pe();case 2:ze()&&Le(!0),t=new Event("notificationDismissed"),document.dispatchEvent(t);case 5:case"end":return e.stop()}}),e)}))),350)},Xe=H((function(e){return!!f&&e(B.a).isNavigatingTo(f)})),$e=F(B.a).navigateTo,Ze=function(){var e=u()(s.a.mark((function e(t){var n,r,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=!0,!ne){e.next=11;break}return e.next=5,ne(t);case 5:if(e.t0=e.sent,e.t0){e.next=8;break}e.t0={};case 8:r=e.t0,a=r.dismissOnCTAClick,n=void 0===a||a;case 11:K&&n&&Ye(),Object(k.a)(f)&&"_blank"!==m&&!t.defaultPrevented&&(t.preventDefault(),$e(f));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Je=function(){var e=u()(s.a.mark((function e(){var t,n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(N.d)(Me);case 2:if(t=e.sent,!(n=t.value)){e.next=10;break}if((r=Object(P.a)(n)).setSeconds(r.getSeconds()+parseInt(W,10)),!(r<new Date)){e.next=10;break}return e.next=10,Object(N.c)(Me);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(!Xe&&K&&(void 0===Re||Re))return null;var Qe=!Xe&&Ae?"is-closed":"is-open",et=Object(M.d)(U),tt=Object(M.c)(U),nt=Object(M.a)(U),rt=Object(M.b)({format:U,hasErrorOrWarning:"win-error"===ue||"win-warning"===ue,hasSmallImageSVG:!!se,hasWinImageSVG:!!de});return e.createElement(A.a,{id:G,className:h()(l,(n={},o()(n,"googlesitekit-publisher-win--".concat(U),U),o()(n,"googlesitekit-publisher-win--".concat(ue),ue),o()(n,"googlesitekit-publisher-win--".concat(Qe),Qe),o()(n,"googlesitekit-publisher-win--rounded",Ee),n)),secondaryPane:Se,ref:Ue},Q&&e.createElement(R.a,{module:ee,moduleName:te}),se&&e.createElement(S.a,{size:1,className:"googlesitekit-publisher-win__small-media"},e.createElement(se,null)),e.createElement(S.a,a()({},rt,nt,{className:"googlesitekit-publisher-win__content"}),e.createElement(C.a,{title:le,badgeLabel:r,smallWinImageSVGHeight:be,smallWinImageSVGWidth:pe,winImageFormat:U,WinImageSVG:!qe&&fe?de:void 0}),e.createElement(z.a,{description:p,learnMoreURL:$,learnMoreLabel:X,learnMoreTarget:J,learnMoreDescription:Y,onLearnMoreClick:ie}),i,e.createElement(D.a,{ctaLink:f,ctaLabel:d,ctaComponent:we,ctaTarget:m,ctaCallback:Ze,dismissLabel:K?E:void 0,dismissCallback:Ke}),je&&e.createElement("div",{className:"googlesitekit-publisher-win__footer"},je)),de&&(qe||!fe)&&e.createElement(S.a,a()({},et,tt,{alignBottom:"larger"===U}),e.createElement("div",{className:"googlesitekit-publisher-win__image-".concat(U)},e.createElement(de,{style:{maxWidth:Oe,maxHeight:_e}}))),e.createElement(x.a,{type:ue}))}BannerNotification.propTypes={id:m.a.string.isRequired,className:m.a.string,title:m.a.string.isRequired,description:m.a.node,learnMoreURL:m.a.string,learnMoreDescription:m.a.string,learnMoreLabel:m.a.string,learnMoreTarget:m.a.oneOf(Object.values(L.a)),WinImageSVG:m.a.elementType,SmallImageSVG:m.a.elementType,format:m.a.string,ctaLink:m.a.string,ctaLabel:m.a.string,type:m.a.string,dismiss:m.a.string,isDismissible:m.a.bool,logo:m.a.bool,module:m.a.string,moduleName:m.a.string,dismissExpires:m.a.number,showOnce:m.a.bool,onCTAClick:m.a.func,onView:m.a.func,onDismiss:m.a.func,onLearnMoreClick:m.a.func,badgeLabel:m.a.string,rounded:m.a.bool,footer:m.a.node,secondaryPane:m.a.node,showSmallWinImage:m.a.bool,smallWinImageSVGWidth:m.a.number,smallWinImageSVGHeight:m.a.number,mediumWinImageSVGWidth:m.a.number,mediumWinImageSVGHeight:m.a.number}}).call(this,n(3))},497:function(e,t,n){"use strict";(function(e){var r=n(29),a=n.n(r),i=n(5),o=n.n(i),c=n(14),s=n.n(c),l=n(16),u=n.n(l),d=n(958),g=n(2),f=n(4),m=n.n(f),p=n(546),h=n(548),b=n(550),v=n(115),O=n(88),y=n(18),_=n(9),k=n(7),E=n(19),j=n(32),S=n(39),w=n(103),N=m.a.useSelect,T=m.a.useDispatch,A=m.a.useRegistry;t.a=Object(w.a)({moduleName:"analytics"})((function ActivationBanner(){var t=Object(g.useState)(null),n=u()(t,2),r=n[0],i=n[1],c=Object(g.useState)(),l=u()(c,2),f=l[0],m=l[1],w=Object(d.a)(),C=A(),D=N((function(e){return e(y.a).isModuleConnected("analytics-4")})),x=N((function(e){return e(_.a).hasScope(k.e)})),R=N((function(e){return e(j.a).getValue(O.e,"returnToSetupStep")})),L=N((function(e){return e(k.i).getAccountID()})),M=N((function(e){return[e(E.d).getErrorForSelector("getProperties",[L]),e(k.i).getErrorForSelector("getAccounts"),e(E.d).getErrorForSelector("getSettings")].filter((function(e){return void 0!==e}))})),P=T(),I=P(j.a).setValues;Object(g.useEffect)((function(){x&&R&&(i(O.c),I(O.e,{returnToSetupStep:!1}))}),[x,C,R,I]),Object(g.useEffect)((function(){M.length>0&&i(O.b)}),[M.length]);var B=Object(g.useCallback)(s()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r!==O.b){e.next=5;break}if(!(M.length>0)){e.next=4;break}return e.next=4,Promise.all([P(E.d).clearError("getProperties",[L]),P(E.d).invalidateResolution("getProperties",[L]),P(k.i).clearError("getAccounts",[]),P(k.i).invalidateResolution("getAccounts",[]),P(E.d).clearError("getSettings",[]),P(E.d).invalidateResolution("getSettings",[])]);case 4:i(O.c);case 5:return R||r!==O.c||i(O.d),e.abrupt("return",{dismissOnCTAClick:!1});case 7:case"end":return e.stop()}}),e)}))),[r,R,M.length,P,L]);Object(g.useEffect)((function(){s()(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w(Object(S.d)("notification::dismissed::ga4-activation-banner"));case 2:t=e.sent,n=t.cacheHit,m(n);case 5:case"end":return e.stop()}}),e)})))()})),Object(g.useEffect)((function(){void 0!==f&&(null!==r||D||i(O.b))}),[D,r,f]);var z=M.length>0&&M.reduce((function(e,t){return e.some((function(e){return e.code===t.code&&e.message===t.message}))?e:[].concat(a()(e),[t])}),[]).map((function(t){return e.createElement(v.a,{key:t.code,error:t})}));switch(r){case O.b:return e.createElement(p.a,{isDismissed:f,onSubmitSuccess:B},z);case O.c:return e.createElement(h.a,{onSubmitSuccess:B});case O.d:return e.createElement(b.a,null);default:return null}}))}).call(this,n(3))},50:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return d}));n(15);var r=n(1),a="missing_required_scopes",i="insufficientPermissions",o="forbidden";function c(e){return(null==e?void 0:e.code)===a}function s(e){var t;return[i,o].includes(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}function l(e){var t;return!!(null==e||null===(t=e.data)||void 0===t?void 0:t.reconnectURL)}function u(e,t){return!(!(null==t?void 0:t.storeName)||s(e)||c(e)||l(e))}function d(e){return"internal_server_error"===(null==e?void 0:e.code)?Object(r.__)("There was a critical error on this website while fetching data.","google-site-kit"):"invalid_json"===(null==e?void 0:e.code)?Object(r.__)("The server provided an invalid response.","google-site-kit"):null==e?void 0:e.message}},528:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardSharingSettingsButton}));var r=n(1),a=n(2),i=n(4),o=n.n(i),c=n(10),s=n(325),l=n(20),u=n(8),d=n(28),g=n(13),f=n(120),m=n(529),p=o.a.useSelect,h=o.a.useDispatch;function DashboardSharingSettingsButton(){var t=Object(l.a)(),n=h(d.b).setValue,i=p((function(e){return e(g.c).hasMultipleAdmins()})),o=Object(a.useCallback)((function(){Object(u.A)("".concat(t,"_headerbar"),"open_sharing",i?"advanced":"simple"),n(f.d,!0)}),[n,t,i]);return e.createElement(a.Fragment,null,e.createElement(c.Button,{"aria-label":Object(r.__)("Open sharing settings","google-site-kit"),className:"googlesitekit-sharing-settings__button googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon",onClick:o,icon:e.createElement(s.a,{width:20,height:20})}),e.createElement(m.a,null))}}).call(this,n(3))},529:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardSharingDialog}));var r=n(629),a=n(12),i=n.n(a),o=n(1),c=n(2),s=n(46),l=n(200),u=n(956),d=n(4),g=n.n(d),f=n(10),m=n(28),p=n(9),h=n(13),b=n(18),v=n(120),O=n(36),y=n(401),_=n(94),k=n(17),E=n(325),j=n(21),S=n(530),w=n(533),N=g.a.useSelect,T=g.a.useDispatch;function DashboardSharingDialog(){var t=Object(O.e)(),n=Object(r.a)().y,a=T(m.b).setValue,d=T(p.a).triggerOnDemandTour,g=T(b.a).rollbackSharingSettings,A=N((function(e){return!!e(m.b).getValue(v.d)})),C=N((function(e){return!!e(m.b).getValue(v.c)})),D=N((function(e){return e(m.b).getValue(v.a)})),x=N((function(e){return e(b.a).haveSharingSettingsChanged()})),R=N((function(e){return e(h.c).getDocumentationLinkURL("dashboard-sharing")})),L=Object(c.useRef)(),M=Object(c.useCallback)((function(){L.current||(L.current=!0,d(y.a))}),[d]),P={};t===O.b&&(P.top="".concat(n<46?46-n:0,"px"),P.height="calc(100% - 46px + ".concat(n<46?n:46,"px)")),Object(c.useEffect)((function(){!A&&x&&g()}),[A,x,g]);var I=Object(c.useCallback)((function(){a(v.d,!0)}),[a]),B=Object(c.useCallback)((function(){a(v.d,!1),a(v.a,void 0)}),[a]),z=Object(c.useCallback)((function(){B(),a(v.c,!0)}),[B,a]),H=Object(c.useCallback)((function(){a(v.c,!1),I()}),[I,a]),F=Object(c.useCallback)((function(){if(C)return H(),null;B()}),[H,B,C]);return e.createElement(_.a,null,e.createElement(k.b,{open:A||C,onOpen:M,onClose:F,className:"googlesitekit-dialog googlesitekit-sharing-settings-dialog",style:P,escapeKeyAction:void 0===D?"close":""},e.createElement("div",{className:"googlesitekit-dialog__back-wrapper","aria-hidden":t!==O.b},e.createElement(f.Button,{"aria-label":Object(o.__)("Back","google-site-kit"),className:"googlesitekit-dialog__back",onClick:F},e.createElement(l.a,{icon:u.a}))),e.createElement(k.c,{className:"googlesitekit-dialog__content"},e.createElement("div",{className:"googlesitekit-dialog__header"},A&&e.createElement("div",{className:"googlesitekit-dialog__header-icon","aria-hidden":t===O.b},e.createElement("span",null,e.createElement(E.a,{width:20,height:20}))),e.createElement("div",{className:"googlesitekit-dialog__header-titles"},e.createElement("h2",{className:"googlesitekit-dialog__title"},A&&Object(o.__)("Dashboard sharing & permissions","google-site-kit"),C&&Object(o.__)("Reset Dashboard Sharing permissions","google-site-kit")),e.createElement("p",{className:i()("googlesitekit-dialog__subtitle",{"googlesitekit-dialog__subtitle--emphasis":C})},A&&Object(s.a)(Object(o.__)("Share a view-only version of your Site Kit dashboard with other WordPress roles. <a>Learn more</a>","google-site-kit"),{a:e.createElement(j.a,{"aria-label":Object(o.__)("Learn more about dashboard sharing","google-site-kit"),href:R,external:!0})}),C&&Object(o.__)("Warning: Resetting these permissions will remove view-only access for all users. Are you sure you want to reset all Dashboard Sharing permissions?","google-site-kit")))),A&&e.createElement("div",{className:"googlesitekit-dialog__main"},e.createElement(S.a,null))),e.createElement(k.d,{className:"googlesitekit-dialog__footer"},e.createElement(w.a,{closeDialog:F,openResetDialog:z}))))}}).call(this,n(3))},53:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(44),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))}},530:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return DashboardSharingSettings}));var a=n(12),i=n.n(a),o=n(1),c=n(4),s=n.n(c),l=n(531),u=n(18),d=n(13),g=n(9),f=s.a.useSelect;function DashboardSharingSettings(){var t=f((function(e){return e(d.c).hasMultipleAdmins()})),n=f((function(t){for(var n=t(g.a).getID(),r=t(u.a).getShareableModules(),a=[],i=[],o=[],c=0,s=Object.values(r);c<s.length;c++){var l;(null===(l=(e=s[c]).owner)||void 0===l?void 0:l.id)===n?a.push(e):t(g.a).hasCapability(g.q,e.slug)?i.push(e):o.push(e)}return[].concat(a,i,o)}));return void 0===n?null:r.createElement("div",{className:i()("googlesitekit-dashboard-sharing-settings",{"googlesitekit-dashboard-sharing-settings--has-multiple-admins":t})},r.createElement("header",{className:"googlesitekit-dashboard-sharing-settings__header googlesitekit-dashboard-sharing-settings__row"},r.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__column--product"},Object(o.__)("Product","google-site-kit")),r.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__column--view"},Object(o.__)("Who can view","google-site-kit")),t&&r.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage"},Object(o.__)("Who can manage view access","google-site-kit"))),r.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__main"},n.map((function(e){var t=e.slug,n=e.name,a=e.owner;return r.createElement(l.a,{key:t,moduleSlug:t,moduleName:n,ownerUsername:null==a?void 0:a.login})}))))}}).call(this,n(723)(e),n(3))},531:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Module}));var r=n(16),a=n.n(r),i=n(0),o=n.n(i),c=n(12),s=n.n(c),l=n(1),u=n(200),d=n(436),g=n(2),f=n(46),m=n(10),p=n(4),h=n.n(p),b=n(153),v=n(532),O=n(20),y=n(18),_=n(13),k=n(28),E=n(120),j=n(8),S=n(9),w=h.a.useSelect,N=h.a.useDispatch,T=[{value:"owner",label:Object(l.__)("Only me","google-site-kit")},{value:"all_admins",label:Object(l.__)("Any admin signed in with Google","google-site-kit")}];function Module(t){var n=t.moduleSlug,r=t.moduleName,i=t.ownerUsername,o=Object(O.a)(),c=Object(g.useRef)(),p=Object(g.useState)(void 0),h=a()(p,2),A=h[0],C=h[1],D=w((function(e){return e(_.c).hasMultipleAdmins()})),x=w((function(e){var t;return null!==(t=e(y.a).getSharingManagement(n))&&void 0!==t?t:"owner"})),R=w((function(e){return e(S.a).hasCapability(S.p,n)})),L=w((function(e){return e(S.a).hasCapability(S.q,n)})),M=w((function(e){return e(y.a).getSharedOwnershipModules()})),P=w((function(e){return e(k.b).getValue(E.a)})),I=w((function(e){return e(y.a).isDoingSubmitSharingChanges()})),B=N(y.a).setSharingManagement,z=M&&Object.keys(M).includes(n);Object(g.useEffect)((function(){C(z?"all_admins":x)}),[x,z]);var H=w((function(e){return e(y.a).haveModuleSharingSettingsChanged(n,"management")}));Object(g.useEffect)((function(){H&&Object(j.A)("".concat(o,"_sharing"),"change_management_".concat(x),n)}),[H,x,n,o]);var F=Object(g.useCallback)((function(e){var t=e.target.value;C(t),B(n,t)}),[B,C,n]),W=n===P,V=!W&&void 0!==P||I;return e.createElement("div",{className:s()("googlesitekit-dashboard-sharing-settings__module","googlesitekit-dashboard-sharing-settings__row",{"googlesitekit-dashboard-sharing-settings__row--editing":W,"googlesitekit-dashboard-sharing-settings__row--disabled":V}),ref:c},e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__column--product"},e.createElement(b.a,{slug:n,size:48}),e.createElement("span",{className:"googlesitekit-dashboard-sharing-settings__module-name"},r)),e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__column--view"},L&&e.createElement(v.a,{moduleSlug:n,isLocked:V,ref:c}),!L&&e.createElement("p",{className:"googlesitekit-dashboard-sharing-settings__note"},Object(l.__)("Contact managing user to manage view access","google-site-kit"))),D&&e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__column--manage"},z&&e.createElement("p",{className:"googlesitekit-dashboard-sharing-settings__note"},e.createElement("span",null,Object(l.__)("Any admin signed in with Google","google-site-kit")),e.createElement(m.Tooltip,{title:Object(l.__)("This service requires general access to Google APIs rather than access to a specific user-owned property/entity, so view access is manageable by any admin signed in with Google.","google-site-kit")},e.createElement("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon"},e.createElement(u.a,{icon:d.a,size:18})))),!z&&R&&e.createElement(m.Select,{className:"googlesitekit-dashboard-sharing-settings__select",value:A,options:T,onChange:F,onClick:F,outlined:!0}),!z&&!R&&i&&e.createElement("p",{className:"googlesitekit-dashboard-sharing-settings__note"},Object(f.a)(Object(l.sprintf)( /* translators: %s: user who manages the module. */ Object(l.__)("<span>Managed by</span> <strong>%s</strong>","google-site-kit"),i),{span:e.createElement("span",null),strong:e.createElement("strong",null)}),e.createElement(m.Tooltip,{title:L?Object(l.sprintf)( /* translators: %s: name of the user who manages the module. */ Object(l.__)("%s has connected this and given managing permissions to all admins. You can change who can view this on the dashboard.","google-site-kit"),i):Object(l.sprintf)( /* translators: %s: name of the user who manages the module. */ Object(l.__)("Contact %s to change who can manage view access for this module.","google-site-kit"),i)},e.createElement("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon"},e.createElement(u.a,{icon:d.a,size:18}))))))}Module.propTypes={moduleSlug:o.a.string.isRequired,moduleName:o.a.string.isRequired,ownerUsername:o.a.string}}).call(this,n(3))},532:function(e,t,n){"use strict";(function(e){var r=n(29),a=n.n(r),i=n(0),o=n.n(i),c=n(12),s=n.n(c),l=n(1),u=n(57),d=n(2),g=n(4),f=n.n(g),m=n(10),p=n(21),h=n(325),b=n(426),v=n(20),O=n(111),y=n(8),_=n(18),k=n(28),E=n(120),j=f.a.useSelect,S=f.a.useDispatch,w=Object(l.__)("All","google-site-kit"),N=Object(d.forwardRef)((function(t,n){var r=t.moduleSlug,i=t.isLocked,o=void 0!==i&&i,c=Object(v.a)(),g=Object(d.useRef)(),f=S(_.a).setSharedRoles,N=S(k.b).setValue,T=j((function(e){return e(_.a).getShareableRoles()})),A=j((function(e){return e(_.a).getSharedRoles(r)})),C=j((function(e){return e(k.b).getValue(E.a)}))===r;Object(O.a)([u.c],n,(function(){C&&N(E.a,void 0)}));var D=j((function(e){return e(_.a).haveModuleSharingSettingsChanged(r,"sharedRoles")})),x=Object(d.useCallback)((function(){C?(N(E.a,void 0),D&&Object(y.A)("".concat(c,"_sharing"),"change_shared_roles",r)):N(E.a,r)}),[C,D,r,N,c]);Object(d.useEffect)((function(){g.current&&(C?g.current.firstChild.focus():g.current.focus())}),[C]);var R=Object(d.useCallback)((function(e){var t,n=e.type,i=e.target,o=e.keyCode;if("keydown"!==n||o===u.b){var c,s=i.closest(".mdc-chip"),l=null==s||null===(t=s.dataset)||void 0===t?void 0:t.chipId;if(l)c="all"===l?(null==A?void 0:A.length)===(null==T?void 0:T.length)?[]:T.map((function(e){return e.id})):null===A?[l]:A.includes(l)?A.filter((function(e){return e!==l})):[].concat(a()(A),[l]),f(r,c)}}),[r,f,A,T]);return T?e.createElement("div",{className:s()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":C})},!C&&e.createElement(m.Button,{"aria-label":Object(l.__)("Edit roles","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:x,icon:e.createElement(h.a,{width:23,height:23}),tabIndex:o?-1:void 0,ref:g}),!C&&(null==A?void 0:A.length)>0&&e.createElement("span",{className:"googlesitekit-user-role-select__current-roles"},(null==T?void 0:T.reduce((function(e,t){return A.includes(t.id)&&e.push(t.displayName),e}),[])).join(", ")),!C&&(!A||0===(null==A?void 0:A.length))&&e.createElement("span",{className:"googlesitekit-user-role-select__add-roles"},e.createElement(p.a,{onClick:x,tabIndex:o?-1:void 0},Object(l.__)("Add roles","google-site-kit"))),C&&e.createElement(d.Fragment,null,e.createElement("div",{className:"googlesitekit-user-role-select__chipset",ref:g},e.createElement(m.Chip,{id:"all",label:w,onClick:R,onKeyDown:R,selected:(null==A?void 0:A.length)===(null==T?void 0:T.length),className:"googlesitekit-user-role-select__chip--all"}),T.map((function(t,n){var r=t.id,a=t.displayName;return e.createElement(m.Chip,{key:n,id:r,label:a,onClick:R,onKeyDown:R,selected:null==A?void 0:A.includes(r)})}))),e.createElement(m.Button,{"aria-label":Object(l.__)("Done editing roles","google-site-kit"),title:Object(l.__)("Done","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:x,icon:e.createElement(b.a,{width:18,height:18}),tabIndex:o?-1:void 0}))):null}));N.propTypes={moduleSlug:o.a.string.isRequired,isLocked:o.a.bool},t.a=N}).call(this,n(3))},533:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Footer}));var r=n(5),a=n.n(r),i=n(14),o=n.n(i),c=n(16),s=n.n(c),l=n(0),u=n.n(l),d=n(1),g=n(2),f=n(10),m=n(4),p=n.n(m),h=n(18),b=n(28),v=n(120),O=n(20),y=n(8),_=n(21),k=n(534),E=n(78),j=p.a.useSelect,S=p.a.useDispatch;function Footer(t){var n=t.closeDialog,r=t.openResetDialog,i=Object(O.a)(),c=Object(g.useState)(null),l=s()(c,2),u=l[0],m=l[1],p=Object(g.useState)(!1),w=s()(p,2),N=w[0],T=w[1],A=j((function(e){return e(h.a).canSubmitSharingChanges()})),C=j((function(e){return e(h.a).isDoingSubmitSharingChanges()})),D=j((function(e){return e(h.a).haveSharingSettingsExpanded("management")})),x=j((function(e){return e(h.a).haveSharingSettingsExpanded("sharedRoles")})),R=j((function(e){return e(h.a).haveSharingSettingsUpdated()})),L=j((function(e){return!!e(b.b).getValue(v.d)})),M=j((function(e){return!!e(b.b).getValue(v.c)})),P=S(h.a),I=P.resetSharingSettings,B=P.saveSharingSettings,z=S(b.b).setValue,H=Object(g.useCallback)(o()(a.a.mark((function e(){var t,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(null),e.next=3,B();case 3:if(t=e.sent,!(r=t.error)){e.next=8;break}return m(r.message),e.abrupt("return");case 8:Object(y.A)("".concat(i,"_sharing"),"settings_confirm"),z(v.a,void 0),n();case 11:case"end":return e.stop()}}),e)}))),[i,B,z,n]),F=Object(g.useCallback)(o()(a.a.mark((function e(){var t,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(null),T(!0),e.next=4,I();case 4:if(t=e.sent,!(r=t.error)){e.next=9;break}return m(r.message),e.abrupt("return");case 9:T(!1),n();case 11:case"end":return e.stop()}}),e)}))),[n,I]),W=Object(g.useCallback)((function(){Object(y.A)("".concat(i,"_sharing"),"settings_cancel"),n()}),[n,i]),V=u||D||x;return e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__footer"},V&&e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__footer-notice"},u&&e.createElement(E.a,{message:u}),!u&&e.createElement(k.a,null)),e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions"},R&&L&&!V&&e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-left"},e.createElement(_.a,{onClick:r,danger:!0},Object(d.__)("Reset sharing permissions","google-site-kit"))),e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-right"},e.createElement(_.a,{onClick:W},Object(d.__)("Cancel","google-site-kit")),L&&e.createElement(f.SpinnerButton,{onClick:H,disabled:C||!A,isSaving:C},Object(d.__)("Apply","google-site-kit")),M&&e.createElement(f.SpinnerButton,{onClick:F,disabled:N,isSaving:N,danger:!0},Object(d.__)("Reset","google-site-kit")))))}Footer.propTypes={closeDialog:u.a.func.isRequired}}).call(this,n(3))},534:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Notice}));var r=n(1),a=n(46),i=n(4),o=n.n(i),c=n(18),s=o.a.useSelect;function Notice(){var t=s((function(e){return e(c.a).canSubmitSharingChanges()})),n=s((function(e){return e(c.a).haveSharingSettingsExpanded("management")})),i=s((function(e){return e(c.a).haveSharingSettingsExpanded("sharedRoles")}));return e.createElement("p",{className:"googlesitekit-dashboard-sharing-settings__notice"},n&&t&&Object(a.a)(Object(r.__)("By clicking <strong>Apply</strong>, you will give other authenticated admins of your site permission to manage view-only access to Site Kit Dashboard data from the chosen Google service.","google-site-kit"),{span:e.createElement("span",null),strong:e.createElement("strong",null)}),!n&&t&&i&&Object(a.a)(Object(r.__)("By clicking <strong>Apply</strong>, you’re granting the selected roles view-only access to data from the Google services you’ve connected via your account.","google-site-kit"),{span:e.createElement("span",null),strong:e.createElement("strong",null)}))}}).call(this,n(3))},535:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetAreaRenderer}));var r=n(16),a=n.n(r),i=n(6),o=n.n(i),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(2),g=n(4),f=n.n(g),m=n(267),p=n(116),h=n(41),b=n(28),v=n(17),O=n(36),y=n(162),_=n(536),k=n(537),E=n(38),j=n(9),S=n(538),w=f.a.useSelect;function N(e){var t,n=(t={},o()(t,O.d,48),o()(t,O.a,48),o()(t,O.c,32),o()(t,O.b,32),t)[e],r=Math.abs(Object(p.b)(e)+n);return"".concat(-r,"px ").concat(-n,"px ").concat(-n,"px ").concat(-n,"px")}function WidgetAreaRenderer(t){var n=t.slug,r=t.contextID,i=Object(E.a)(),c=w((function(e){return i?e(j.a).getViewableModules():null})),s=Object(O.e)(),l=Object(d.useRef)(),g=Object(S.a)(l,{rootMargin:N(s),threshold:0}),f=w((function(e){return e(h.a).getWidgetArea(n)})),p=w((function(e){return e(h.a).getWidgets(n,{modules:c||void 0})})),T=w((function(e){return e(h.a).getWidgetStates()})),A=w((function(e){return e(h.a).isWidgetAreaActive(n,{modules:c||void 0})})),C=w((function(e){return e(b.b).getValue(b.a)})),D=Object(d.useState)({key:"WidgetAreaRenderer-".concat(n),value:C?C===r:!!(null==g?void 0:g.intersectionRatio)}),x=a()(D,2),R=x[0],L=x[1];if(Object(d.useEffect)((function(){L({key:"WidgetAreaRenderer-".concat(n),value:C?C===r:!!(null==g?void 0:g.intersectionRatio)})}),[g,n,C,r]),void 0===c)return null;var M,P=Object(m.d)(p,T),I=P.columnWidths,B=P.rowIndexes,z=Object(m.b)(p,T,{columnWidths:I,rowIndexes:B}),H=z.gridColumnWidths,F=z.overrideComponents,W=p.map((function(t,n){return e.createElement(k.a,{key:"".concat(t.slug,"-wrapper"),gridColumnWidth:H[n]},e.createElement(_.a,{OverrideComponent:F[n]?function(){var t=F[n],r=t.Component,a=t.metadata;return e.createElement(r,a)}:void 0,slug:t.slug}))})),V=f.Icon,U=f.title,G=f.style,q=f.subtitle,K=f.CTA;return A?e.createElement(y.a,{value:R},e.createElement(v.e,{className:u()("googlesitekit-widget-area","googlesitekit-widget-area--".concat(n),"googlesitekit-widget-area--".concat(G)),ref:l},e.createElement(v.k,null,e.createElement(v.a,{className:"googlesitekit-widget-area-header",size:12},V&&e.createElement(V,{width:33,height:33}),U&&e.createElement("h3",{className:"googlesitekit-widget-area-header__title googlesitekit-heading-3"},U),(q||K)&&e.createElement("div",{className:"googlesitekit-widget-area-header__details"},q&&e.createElement("h4",{className:"googlesitekit-widget-area-header__subtitle"},q),K&&e.createElement("div",{className:"googlesitekit-widget-area-header__cta"},e.createElement(K,null))))),e.createElement("div",{className:"googlesitekit-widget-area-widgets"},e.createElement(v.k,null,G===h.b.BOXES&&W,G===h.b.COMPOSITE&&e.createElement(v.a,{size:12},e.createElement(v.e,null,e.createElement(v.k,null,W))))))):e.createElement(v.e,{className:u()(m.a,"googlesitekit-widget-area",(M={},o()(M,"googlesitekit-widget-area--".concat(n),!!n),o()(M,"googlesitekit-widget-area--".concat(G),!!G),M)),ref:l},W)}WidgetAreaRenderer.propTypes={slug:s.a.string.isRequired,contextID:s.a.string}}).call(this,n(3))},536:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(15),o=n(2),c=n(4),s=n.n(c),l=n(41),u=n(18),d=n(263),g=n(264),f=n(267),m=n(134),p=n(38),h=s.a.useSelect,b=function WidgetRenderer(t){var n=t.slug,r=t.OverrideComponent,a=h((function(e){return e(l.a).getWidget(n)})),c=Object(f.c)(n),s=c.Widget,b=c.WidgetNull,v=h((function(e){return e(u.a).getRecoverableModules()})),O=Object(p.a)(),y=Object(o.useMemo)((function(){return a&&v&&Object(i.intersection)(a.modules,Object.keys(v))}),[v,a]),_=h((function(e){return e(l.a).isWidgetPreloaded(n)}));if(!a)return e.createElement(b,null);var k=a.Component,E=a.wrapWidget,j=e.createElement(k,c);return O&&(null==y?void 0:y.length)&&(j=e.createElement(g.a,{widgetSlug:n,moduleSlugs:y})),r?j=e.createElement(o.Fragment,null,e.createElement(d.a,{widgetSlug:"overridden"},e.createElement(r,null)),e.createElement("div",{className:m.a},j)):E&&(j=e.createElement(s,null,j)),_?e.createElement("div",{className:m.a},j):j};b.propTypes={slug:a.a.string.isRequired,OverrideComponent:a.a.elementType},t.a=b}).call(this,n(3))},537:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(134),o=n(17),c=function WidgetCellWrapper(t){var n=t.gridColumnWidth,r=t.children;return 0===n?e.createElement("div",{className:i.a},r):n<6?e.createElement(o.a,{lgSize:n,mdSize:4,smSize:2},r):n<8?e.createElement(o.a,{lgSize:n,mdSize:8},r):e.createElement(o.a,{size:n},r)};c.propTypes={gridColumnWidth:a.a.number.isRequired,children:a.a.element.isRequired},t.a=c}).call(this,n(3))},538:function(e,t,n){"use strict";(function(e){var r=n(16),a=n.n(r),i=n(2);t.a=function(t,n){var r=Object(i.useState)(null),o=a()(r,2),c=o[0],s=o[1];return Object(i.useEffect)((function(){if(t.current&&"function"==typeof e.IntersectionObserver){var r=new e.IntersectionObserver((function(e){s(e[e.length-1])}),n);return r.observe(t.current),function(){s(null),r.disconnect()}}return function(){}}),[t.current,n.threshold,n.root,n.rootMargin]),c}}).call(this,n(26))},539:function(e,t,n){"use strict";(function(e){var r=n(16),a=n.n(r),i=n(89),o=n(410),c=n(229),s=n(2),l=n(1),u=n(4),d=n.n(u),g=n(10),f=n(106),m=n(540),p=n(541),h=n(542),b=n(13),v=n(31),O=n(8),y=n(63),_=n(20),k=d.a.useSelect,E=d.a.useDispatch;t.a=function EntitySearchInput(){var t=Object(c.a)(EntitySearchInput,"EntitySearchInput"),n=Object(s.useState)(!1),r=a()(n,2),u=r[0],d=r[1],j=Object(s.useState)(!1),S=a()(j,2),w=S[0],N=S[1],T=Object(s.useState)(!1),A=a()(T,2),C=A[0],D=A[1],x=Object(_.a)(),R=Object(y.c)(),L=Object(s.useRef)(),M=Object(s.useCallback)((function(){Object(O.A)("".concat(x,"_headerbar"),"open_urlsearch"),d(!0)}),[x]),P=Object(s.useCallback)((function(){Object(O.A)("".concat(x,"_headerbar"),"close_urlsearch"),d(!1)}),[x]),I=Object(s.useState)({}),B=a()(I,2),z=B[0],H=B[1],F=k((function(e){return(null==z?void 0:z.url)?e(b.c).getAdminURL("googlesitekit-dashboard",{permaLink:z.url}):null})),W=E(v.a).navigateTo;return Object(s.useEffect)((function(){F&&Object(O.A)("".concat(x,"_headerbar_urlsearch"),"open_urldetails").finally((function(){W(F)}))}),[F,W,x]),Object(i.a)((function(){R===y.a&&d(!0)})),Object(o.a)((function(){var e;u||(null==L||null===(e=L.current)||void 0===e||e.focus())}),[u]),u?e.createElement("div",{className:"googlesitekit-entity-search googlesitekit-entity-search--is-open"},e.createElement(f.a,null,e.createElement("label",{htmlFor:t},Object(l.__)("Page/URL Search","google-site-kit"))),e.createElement(h.a,{id:t,match:z,setIsActive:D,setMatch:H,placeholder:Object(l.__)("Enter title or URL…","google-site-kit"),isLoading:w,setIsLoading:N,showDropdown:C,onClose:P,autoFocus:!0}),w&&C&&e.createElement(g.ProgressBar,{className:"googlesitekit-entity-search__loading",compress:!0}),e.createElement("div",{className:"googlesitekit-entity-search__actions"},e.createElement(g.Button,{onClick:P,trailingIcon:e.createElement(p.a,{width:"30",height:"20"}),className:"googlesitekit-entity-search__close",title:Object(l.__)("Close","google-site-kit"),text:!0,tooltip:!0}))):e.createElement("div",{className:"googlesitekit-entity-search"},e.createElement(g.Button,{className:"googlesitekit-border-radius-round--phone googlesitekit-button-icon--phone",onClick:M,text:!0,ref:L,title:Object(l.__)("Search","google-site-kit"),trailingIcon:e.createElement(m.a,{width:"20",height:"20"}),tooltip:!0},Object(l.__)("URL Search","google-site-kit")))}}).call(this,n(3))},540:function(e,t,n){"use strict";var r=n(2);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:"M16 9.5c0 1.407-.45 2.714-1.218 3.783L20.49 19 19 20.49l-5.717-5.708A6.463 6.463 0 019.5 16 6.5 6.5 0 1116 9.5zm-11 0C5 11.99 7.01 14 9.5 14S14 11.99 14 9.5 11.99 5 9.5 5 5 7.01 5 9.5z",fill:"currentColor"});t.a=function SvgMagnifyingGlass(e){return r.createElement("svg",a({viewBox:"0 0 20 20",fill:"none"},e),i)}},541:function(e,t,n){"use strict";var r=n(2);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:"M15.833 5.342l-1.175-1.175L10 8.825 5.342 4.167 4.167 5.342 8.825 10l-4.658 4.658 1.175 1.175L10 11.175l4.658 4.658 1.175-1.175L11.175 10l4.658-4.658z",fill:"currentColor"});t.a=function SvgCloseDark(e){return r.createElement("svg",a({viewBox:"0 0 20 20",fill:"none"},e),i)}},542:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PostSearcherAutoSuggest}));var r=n(5),a=n.n(r),i=n(14),o=n.n(i),c=n(16),s=n.n(c),l=n(0),u=n.n(l),d=n(273),g=n(2),f=n(1),m=n(57),p=n(37),h=n.n(p),b=n(4),v=n.n(b),O=n(543),y=n(13),_=v.a.useSelect,k=function(){};function PostSearcherAutoSuggest(t){var n=t.id,r=t.match,i=t.setMatch,c=t.isLoading,l=t.showDropdown,u=void 0===l||l,p=t.setIsLoading,b=void 0===p?k:p,v=t.setIsActive,E=void 0===v?k:v,j=t.autoFocus,S=t.setCanSubmit,w=void 0===S?k:S,N=t.onClose,T=void 0===N?k:N,A=t.placeholder,C=void 0===A?"":A,D=Object(g.useRef)(),x=Object(g.useState)(""),R=s()(x,2),L=R[0],M=R[1],P=null==r?void 0:r.title,I=Object(O.a)(L,L===P?0:200),B=Object(g.useState)([]),z=s()(B,2),H=z[0],F=z[1],W=Object(f.__)("No results found","google-site-kit"),V=_((function(e){return e(y.c).getCurrentEntityTitle()})),U=Object(g.useRef)(null),G=Object(g.useCallback)((function(){E(!0)}),[E]),q=Object(g.useCallback)((function(e){var t,n,r;(null===(t=e.relatedTarget)||void 0===t?void 0:t.classList.contains("autocomplete__option--result"))||(E(!1),M(null!==(n=null!==(r=U.current)&&void 0!==r?r:V)&&void 0!==n?n:""))}),[V,E]),K=Object(g.useCallback)((function(e){if(Array.isArray(H)&&e!==W){var t=H.find((function(t){return t.title.toLowerCase()===e.toLowerCase()}));t?(U.current=t.title,w(!0),i(t),M(t.title)):U.current=null}else U.current=null,w(!1)}),[H,w,i,W,M]),Y=Object(g.useCallback)((function(e){w(!1),M(e.target.value)}),[w]);Object(g.useEffect)((function(){if(""!==I&&I!==V&&(null==I?void 0:I.toLowerCase())!==(null==P?void 0:P.toLowerCase())){var e="undefined"==typeof AbortController?void 0:new AbortController;return(t=o()(a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return b(!0),n=h.a.get("core","search","entity-search",{query:encodeURIComponent(I)},{useCache:!1,signal:null==e?void 0:e.signal}),D.current=n,t.prev=3,t.next=6,n;case 6:r=t.sent,F(r),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),F(null);case 13:return t.prev=13,n===D.current&&b(!1),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[3,10,13,16]])}))),function(){return t.apply(this,arguments)})(),function(){return null==e?void 0:e.abort()}}var t}),[I,b,V,P]),Object(g.useEffect)((function(){L||F([])}),[L]),Object(g.useEffect)((function(){V&&M(V)}),[V]);var X=Object(g.useRef)(),$=Object(g.useCallback)((function(e){var t=X.current;switch(e.keyCode){case m.d:(null==t?void 0:t.value)&&(e.preventDefault(),t.selectionStart=0,t.selectionEnd=0);break;case m.a:(null==t?void 0:t.value)&&(e.preventDefault(),t.selectionStart=t.value.length,t.selectionEnd=t.value.length)}switch(e.keyCode){case m.c:return T();case m.b:return K(L)}}),[T,K,L]);return e.createElement(d.a,{className:"autocomplete__wrapper",onSelect:K},e.createElement(d.b,{ref:X,id:n,className:"autocomplete__input autocomplete__input--default",type:"text",onBlur:q,onChange:Y,onFocus:G,placeholder:C,onKeyDown:$,value:L,autoFocus:j}),!c&&u&&I!==V&&""!==I&&0===(null==H?void 0:H.length)&&e.createElement(d.e,{portal:!1},e.createElement(d.c,{className:"autocomplete__menu autocomplete__menu--inline"},e.createElement(d.d,{value:W,className:"autocomplete__option autocomplete__option--no-results"}))),u&&""!==I&&I!==V&&(null==H?void 0:H.length)>0&&e.createElement(d.e,{portal:!1},e.createElement(d.c,{className:"autocomplete__menu autocomplete__menu--inline"},H.map((function(t){var n=t.id,r=t.title;return e.createElement(d.d,{key:n,value:r,className:"autocomplete__option autocomplete__option--result"})})))))}PostSearcherAutoSuggest.propTypes={id:u.a.string,match:u.a.object,setCanSubmit:u.a.func,setMatch:u.a.func,isLoading:u.a.bool,setIsLoading:u.a.func,onKeyDown:u.a.func,autoFocus:u.a.bool,placeholder:u.a.string}}).call(this,n(3))},543:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(16),a=n.n(r),i=n(2);function o(e,t){var n=Object(i.useState)(e),r=a()(n,2),o=r[0],c=r[1];return Object(i.useEffect)((function(){var n=setTimeout((function(){c(e)}),t);return function(){clearTimeout(n)}}),[e,t]),o}},544:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DateRangeSelector}));var r=n(16),a=n.n(r),i=n(203),o=n(12),c=n.n(o),s=n(2),l=n(57),u=n(1),d=n(4),g=n.n(d),f=n(10),m=n(545),p=n(9),h=n(111),b=n(64),v=n(8),O=n(28),y=n(20),_=g.a.useSelect,k=g.a.useDispatch;function DateRangeSelector(){var t,n=Object(b.f)(),r=_((function(e){return e(p.a).getDateRange()})),o=k(p.a).setDateRange,d=k(O.b).resetInViewHook,g=Object(s.useState)(!1),E=a()(g,2),j=E[0],S=E[1],w=Object(s.useRef)(),N=Object(y.a)();Object(i.a)(w,(function(){return S(!1)})),Object(h.a)([l.c,l.f],w,(function(){return S(!1)}));var T=Object(s.useCallback)((function(){S(!j)}),[j]),A=Object(s.useCallback)((function(e){var t=Object.values(n)[e].slug;r!==t&&Object(v.A)("".concat(N,"_headerbar"),"change_daterange",t),d(),o(t),S(!1)}),[n,r,d,o,N]),C=null===(t=n[r])||void 0===t?void 0:t.label,D=Object.values(n).map((function(e){return e.label}));return e.createElement("div",{ref:w,className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor"},e.createElement(f.Button,{className:c()("mdc-button--dropdown","googlesitekit-header__dropdown","googlesitekit-header__date-range-selector-menu","googlesitekit-border-radius-round--phone","googlesitekit-button-icon--phone"),text:!0,onClick:T,icon:e.createElement(m.a,{width:"20",height:"20"}),"aria-haspopup":"menu","aria-expanded":j,"aria-controls":"date-range-selector-menu",title:Object(u.__)("Date range","google-site-kit"),tooltip:!0},C),e.createElement(f.Menu,{menuOpen:j,menuItems:D,onSelected:A,id:"date-range-selector-menu",className:"googlesitekit-width-auto"}))}}).call(this,n(3))},545:function(e,t,n){"use strict";var r=n(2);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:"M6 9H4v2h2V9zm4 0H8v2h2V9zm4 0h-2v2h2V9zm2-7h-1V0h-2v2H5V0H3v2H2C.89 2 .01 2.9.01 4L0 18a2 2 0 002 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 16H2V7h14v11z",fill:"currentColor",fillRule:"evenodd"});t.a=function SvgDateRange(e){return r.createElement("svg",a({viewBox:"0 0 18 20"},e),i)}},546:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReminderBanner}));var r=n(5),a=n.n(r),i=n(14),o=n.n(i),c=n(89),s=n(1),l=n(2),u=n(4),d=n.n(u),g=n(10),f=n(9),m=n(13),p=n(88),h=n(49),b=n(160),v=n(223),O=n(224),y=n(376),_=n(8),k=n(34),E=n(547),j=n(18),S=n(17),w=n(20),N=n(408),T=d.a.useSelect;function ReminderBanner(t){var n=t.isDismissed,r=t.onSubmitSuccess,i=t.children,u=T((function(e){if(!n)return e(j.a).hasModuleOwnershipOrAccess("analytics")})),d=T((function(e){return e(j.a).isResolving("hasModuleAccess",["analytics"])})),A=T((function(e){return e(f.a).getReferenceDate()})),C=T((function(e){return e(m.c).getDocumentationLinkURL("ga4")})),D=Object(b.a)(p.a).isTooltipVisible,x=Object(v.a)(p.a),R=Object(w.a)(),L=Object(_.y)(A),M=Object(_.y)("2023-07-01")<=L?"".concat(R,"_ua-stale-notification"):"".concat(R,"_ga4-reminder-notification");Object(c.a)((function(){D||d||n||Object(k.b)(M,"view_notification")}));var P,I=Object(l.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,Object(k.b)(M,"confirm_notification");case 2:return e.abrupt("return",r());case 3:case"end":return e.stop()}}),e)}))),[M,r]),B=Object(l.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,Object(k.b)(M,"dismiss_notification");case 2:x();case 3:case"end":return e.stop()}}),e)}))),[M,x]),z=Object(l.useCallback)((function(){Object(k.b)(M,"click_learn_more_link")}),[M]);if(D)return e.createElement(O.a,{title:Object(s.__)("You can connect Google Analytics 4 later here","google-site-kit"),content:Object(s.__)("You can configure the Google Analytics 4 property inside the Site Kit Settings later.","google-site-kit"),dismissLabel:Object(s.__)("Got it","google-site-kit"),tooltipStateKey:p.a});if(d&&!n)return e.createElement("div",{className:"googlesitekit-publisher-win"},e.createElement(S.e,null,e.createElement(S.k,null,e.createElement(S.a,{size:12},e.createElement(g.ProgressBar,null)))));var H=Object(s.__)("Google Analytics 4 is the newest version of Google Analytics. It will replace Universal Analytics on July 1, 2023. After that, Universal Analytics properties will no longer collect new data.","google-site-kit");if(L<Object(_.y)("2023-06-01"))P=Object(s.__)("Set up Google Analytics 4 now to join the future of Analytics","google-site-kit");else if(Object(_.y)("2023-06-01")<=L&&L<Object(_.y)("2023-07-01")){var F=30-L.getDate();P=Object(s.sprintf)( /* translators: %s: Number of days remaining before the user can set up Google Analytics 4 */ Object(s.__)("You only have %d more days to set up Google Analytics 4","google-site-kit"),F)}else P=Object(s.__)("Universal Analytics stopped collecting data on July 1, 2023","google-site-kit"),H=Object(s.__)("Set up Google Analytics 4, the new version of Google Analytics, to continue seeing data in Site Kit.","google-site-kit");var W=e.createElement("section",null,e.createElement("h4",{className:"googlesitekit-publisher-win__secondary-pane-title"},Object(s.__)("Google Analytics 4 benefits:","google-site-kit")),e.createElement("ul",{className:"googlesitekit-publisher-win__secondary-pane-list"},e.createElement("li",null,e.createElement(N.a,{height:18,width:18}),Object(s.__)("Full cross-device and cross-platform reporting","google-site-kit")),e.createElement("li",null,e.createElement(N.a,{height:18,width:18}),Object(s.__)("Advanced conversion tracking, such as when visitors submit a form or add an item to cart","google-site-kit")),e.createElement("li",null,e.createElement(N.a,{height:18,width:18}),Object(s.__)("Detailed insights on how users navigate your site","google-site-kit"))));return!1===u?e.createElement(E.a,{title:P,description:H,dismissExpires:Object(y.a)(A),onDismiss:B}):e.createElement(h.b,{id:"ga4-activation-banner",className:"googlesitekit-ga4-reminder-banner",title:P,description:H,learnMoreLabel:Object(s.__)("Learn more about Google Analytics 4","google-site-kit"),learnMoreURL:C,ctaLabel:Object(s.__)("Set up now","google-site-kit"),ctaLink:r?"#":null,onCTAClick:I,dismiss:Object(s.__)("Remind me later","google-site-kit"),dismissExpires:Object(y.a)(A),secondaryPane:W,onDismiss:B,onLearnMoreClick:z},i)}}).call(this,n(3))},547:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReminderBannerNoAccess}));var r=n(0),a=n.n(r),i=n(1),o=n(46),c=n(4),s=n.n(c),l=n(18),u=n(49),d=s.a.useSelect;function ReminderBannerNoAccess(t){var n,r=t.title,a=t.description,c=t.dismissExpires,s=t.onDismiss,g=d((function(e){return e(l.a).getModule("analytics")})),f=(null==g||null===(n=g.owner)||void 0===n?void 0:n.login)?"<strong>".concat(g.owner.login,"</strong>"):Object(i.__)("Another admin","google-site-kit"),m=e.createElement("p",null,Object(o.a)(Object(i.sprintf)( /* translators: 1. Original reminder description text, 2: module owner's name */ Object(i.__)("%1$s.<br />%2$s configured Analytics and you don’t have access to its configured property. Contact them to share access or set up Google Analytics 4.","google-site-kit"),a,f),{strong:e.createElement("strong",null),br:e.createElement("br",null)}));return e.createElement(u.b,{id:"ga4-activation-banner",className:"googlesitekit-ga4-reminder-banner",title:r,description:m,dismiss:Object(i.__)("Remind me later","google-site-kit"),dismissExpires:c,onDismiss:s})}ReminderBannerNoAccess.propTypes={title:a.a.string.isRequired,description:a.a.node,dismissExpires:a.a.number,onDismiss:a.a.func}}).call(this,n(3))},548:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SetupBanner}));var a=n(5),i=n.n(a),o=n(14),c=n.n(o),s=n(16),l=n.n(s),u=n(2),d=n(274),g=n(1),f=n(10),m=n(4),p=n.n(m),h=n(49),b=n(214),v=n(115),O=n(19),y=n(384),_=n(7),k=n(9),E=n(88),j=n(160),S=n(223),w=n(224),N=n(376),T=n(17),A=n(32),C=n(50),D=n(20),x=n(8),R=n(549),L=n(310),M=p.a.useDispatch,P=p.a.useSelect;function SetupBanner(t){var n=t.onSubmitSuccess,a=Object(u.useState)(null),o=l()(a,2),s=o[0],m=o[1],p=Object(u.useState)(null),I=l()(p,2),B=I[0],z=I[1],H=Object(u.useState)(!1),F=l()(H,2),W=F[0],V=F[1],U=Object(u.useState)(!1),G=l()(U,2),q=G[0],K=G[1],Y=Object(D.a)(),X="".concat(Y,"_ga4-setup-notification"),$=M(O.d),Z=$.submitChanges,J=$.selectProperty,Q=$.matchAndSelectProperty,ee=P((function(e){return e(_.i).getAccountID()})),te=P((function(e){return e(O.d).getProperties(ee)})),ne=P((function(e){return e(_.i).getAccounts()})),re=P((function(e){return e(O.d).getPropertyID})),ae=P((function(e){return e(O.d).getMeasurementID})),ie=Object(u.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===B){e.next=2;break}return e.abrupt("return");case 2:if(void 0!==te){e.next=4;break}return e.abrupt("return");case 4:if(0!==te.length){e.next=8;break}return z(L.a.NO_EXISTING_PROPERTY),J(O.e),e.abrupt("return");case 8:if(void 0!==ne){e.next=10;break}return e.abrupt("return");case 10:if(re()){e.next=13;break}return e.next=13,Q(ee,O.e);case 13:z(L.a.EXISTING_PROPERTY);case 14:case"end":return e.stop()}}),e)}))),[ee,ne,re,Q,te,J,B]);Object(u.useEffect)((function(){B||ie()}),[B,ie]);var oe=P((function(e){return e(k.a).hasScope(_.e)})),ce=P((function(e){return e(O.d).getExistingTag()})),se=P((function(e){return e(A.a).getValue(_.g,"autoSubmit")}));Object(y.a)();var le=P((function(e){return e(k.a).getReferenceDate()})),ue=M(k.a).setPermissionScopeError,de=M(A.a).setValues,ge=Object(u.useCallback)(c()(i.a.mark((function e(){var t,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return V(!0),e.next=3,Z();case 3:if(t=e.sent,r=t.error,V(!1),!r){e.next=9;break}return m(r),e.abrupt("return");case 9:n();case 10:case"end":return e.stop()}}),e)}))),[Z,n]),fe=Object(u.useCallback)(c()(i.a.mark((function t(){var n,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],!1!==oe||re()!==O.e&&ae()||n.push(_.e),B===L.a.NO_EXISTING_PROPERTY||re()===O.e?Object(x.A)(X,"create_property"):Object(x.A)(X,"connect_property"),!(n.length>0)){t.next=9;break}return de(_.g,{autoSubmit:!0}),de(E.e,{returnToSetupStep:!0}),r=Object(d.a)(e.location.href,{notification:"ga4_setup"}),ue({code:C.a,message:Object(g.__)("Additional permissions are required to create a new GA4 property.","google-site-kit"),data:{status:403,scopes:n,skipModal:!0,redirectURL:r}}),t.abrupt("return");case 9:return t.next=11,ge();case 11:case"end":return t.stop()}}),t)}))),[X,B,oe,ue,de,ge,re,ae]);Object(u.useEffect)((function(){function e(){return(e=c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return de(_.g,{autoSubmit:!1}),e.next=3,ge();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}se&&oe&&function(){e.apply(this,arguments)}()}),[se,oe,de,ge,n]),Object(u.useEffect)((function(){q||se||!B||(Object(x.A)(X,"view_notification"),K(!0))}),[X,se,B,q]);var me,pe,he,be=Object(j.a)(E.a).isTooltipVisible,ve=Object(S.a)(E.a);return null===B?r.createElement("div",{className:"googlesitekit-publisher-win"},r.createElement(T.e,null,r.createElement(T.k,null,r.createElement(T.a,{size:12},r.createElement(f.ProgressBar,null))))):be?r.createElement(u.Fragment,null,r.createElement(w.a,{title:Object(g.__)("You can connect Google Analytics 4 later here","google-site-kit"),content:Object(g.__)("You can configure the Google Analytics 4 property inside the Site Kit Settings later.","google-site-kit"),dismissLabel:Object(g.__)("Remind me later","google-site-kit"),tooltipStateKey:E.a})):(B===L.a.EXISTING_PROPERTY?(me=Object(g.__)("Connect the Google Analytics 4 property that’s associated with your existing Universal Analytics property","google-site-kit"),pe=Object(g.__)("Connect","google-site-kit"),he=r.createElement("div",{className:"googlesitekit-ga4-setup-banner__field-group"},r.createElement(b.a,null),r.createElement(b.c,null),ce&&r.createElement(b.b,{description:r.createElement(u.Fragment,null,r.createElement("p",null,Object(g.sprintf)( /* translators: %s: existing tag ID */ Object(g.__)("A tag %s for the selected property already exists on the site.","google-site-kit"),ce)),r.createElement("p",null,Object(g.__)("Make sure you remove it if you decide to place the same GA4 tag via Site Kit, otherwise they will be duplicated.","google-site-kit")))}))):(me=Object(g.__)("No existing Google Analytics 4 property found, Site Kit will help you create a new one and insert it on your site","google-site-kit"),pe=Object(g.__)("Create property","google-site-kit")),r.createElement(h.b,{id:"ga4-activation-banner",className:"googlesitekit-ga4-setup-banner",title:me,ctaComponent:r.createElement(f.SpinnerButton,{onClick:fe,isSaving:W},pe),footer:r.createElement(R.a,{variant:B}),dismiss:Object(g.__)("Cancel","google-site-kit"),dismissExpires:Object(N.a)(le),onDismiss:ve},s&&r.createElement(v.a,{error:s}),he))}}).call(this,n(26),n(3))},549:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupBannerFooter}));var r=n(1),a=n(4),i=n.n(a),o=n(9),c=n(7),s=n(19),l=n(310),u=i.a.useSelect;function SetupBannerFooter(t){var n=t.variant,a=u((function(e){var t=[],a=e(o.a).hasScope(c.e),i=e(s.d).getPropertyID(),u=e(s.d).getMeasurementID(),d=e(s.d).getExistingTag();return n===l.a.EXISTING_PROPERTY?(!1!==a||i!==s.e&&u||t.push(Object(r.__)("You will need to give Site Kit permission to create an Analytics property on your behalf","google-site-kit")),t.push(Object(r.__)("You can always add/edit this in the Site Kit Settings","google-site-kit"))):(d&&t.push(Object(r.sprintf)( /* translators: %s: The existing tag ID. */ Object(r.__)("A GA4 tag %s is found on this site but this property is not associated with your Google Analytics account","google-site-kit"),d)),!1===a&&t.push(Object(r.__)("You will need to give Site Kit permission to create an Analytics property on your behalf","google-site-kit")),t.push(Object(r.__)("You can always add/edit this in the Site Kit Settings","google-site-kit"))),t}));return!!a.length&&e.createElement("ul",{className:"googlesitekit-ga4-setup-banner__footer-text-list"},a.map((function(t){return e.createElement("li",{key:t},t)})))}}).call(this,n(3))},55:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),a=n(109),i=n(42),o=function(e){var t=Object(r.useContext)(a.a);return Object(i.b)(e,t)}},550:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SuccessBanner}));var r=n(89),a=n(1),i=n(4),o=n.n(i),c=n(13),s=n(49),l=n(404),u=n(20),d=n(55),g=n(34),f=o.a.useSelect;function SuccessBanner(){var t,n=f((function(e){return e(c.c).getDocumentationLinkURL("ga4")})),i=Object(u.a)(),o="".concat(i,"_ga4-success-notification");return t=Object(d.a)("ga4Reporting")?Object(a.__)("Google Analytics 4 has started collecting data for your site. As soon there is enough data, you’ll be able to switch your Site Kit dashboard to show data from Google Analytics 4.","google-site-kit"):Object(a.__)("GA4 is collecting data for your site. You’ll only see Universal Analytics data on your dashboard for now.","google-site-kit"),Object(r.a)((function(){Object(g.b)(o,"view_notification")})),e.createElement(s.b,{id:"ga4-activation-banner",title:Object(a.__)("You successfully set up your Google Analytics 4 property","google-site-kit"),description:t,dismiss:Object(a.__)("OK, Got it","google-site-kit"),WinImageSVG:function WinImageSVG(){return e.createElement(l.a,null)},format:"small",type:"win-success",learnMoreLabel:Object(a.__)("Learn more about Google Analytics 4","google-site-kit"),learnMoreURL:n})}}).call(this,n(3))},551:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GatheringDataNotification}));var r=n(0),a=n.n(r),i=n(1),o=n(2),c=n(4),s=n.n(c),l=n(49),u=n(552),d=n(7),g=n(8),f=n(20),m=s.a.useSelect;function GatheringDataNotification(t){var n=t.title,r=Object(f.a)(),a="".concat(r,"_gathering-data-notification"),c=Object(o.useCallback)((function(){Object(g.A)(a,"view_notification")}),[a]),s=Object(o.useCallback)((function(){Object(g.A)(a,"dismiss_notification")}),[a]),p=m((function(e){return e(d.i).isGA4DashboardView()}))?"72":"48";return e.createElement(l.b,{id:"gathering-data-notification",title:n,description:Object(i.sprintf)( /* translators: %s: the number of hours the site can be in a gathering data state */ Object(i.__)("It can take up to %s hours before stats show up for your site. While you’re waiting, connect more services to get more stats.","google-site-kit"),p),format:"small",onView:c,dismiss:Object(i.__)("OK, Got it!","google-site-kit"),dismissExpires:Object(g.n)("day"),SmallImageSVG:u.a,onDismiss:s,isDismissible:!0})}GatheringDataNotification.propTypes={title:a.a.string}}).call(this,n(3))},552:function(e,t,n){"use strict";var r=n(2);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:"M128.91 163c-12.56 3.66-25.8 10.57-31.82 22.81-6.35 12.93-1.46 28.49 10.19 36.65M271.09 163c12.56 3.66 25.8 10.57 31.82 22.81 6.35 12.93 1.46 28.49-10.19 36.65",stroke:"#EE675C",strokeLinejoin:"round",strokeWidth:9.27}),o=r.createElement("ellipse",{cx:200,cy:381.74,rx:79.51,ry:8.26,fill:"#F1F3F4"}),c=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"}),s=r.createElement("path",{d:"M216.76 201.8s-64.53 36.51-77.35 71.84c-4.72 13 3.53 27.36 17.27 29 11.31 1.39 28.4-3.14 53.06-24.33v31.36",stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27}),l=r.createElement("path",{d:"M216.76 201.8s-35.21 19.92-58.76 44.56",stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27}),u=r.createElement("path",{stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47V380h29.52"}),d=r.createElement("path",{stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47v47.5"}),g=r.createElement("circle",{cx:200,cy:162.34,r:81.45,fill:"#D93025"}),f=r.createElement("path",{d:"M206.36 156.18c-18.33 10.42-42 6.07-50.25-19.59M164.26 137.72c-5.22-2.69-9-2.82-16.17-.91",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6.62}),m=r.createElement("path",{d:"M107.28 222.48c28.36 19.87 76.07-7.28 88.72-35.17M292.72 222.48c-28.36 19.87-76.07-7.28-88.72-35.17",stroke:"#EE675C",strokeLinejoin:"round",strokeWidth:9.27});t.a=function SvgZeroStateRed(e){return r.createElement("svg",a({viewBox:"0 0 400 400",fill:"none"},e),i,o,c,s,l,u,d,g,f,m)}},553:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ZeroDataNotification}));var r=n(331),a=n(2),i=n(1),o=n(13),c=n(49),s=n(554),l=n(8),u=n(20);function ZeroDataNotification(){var t=Object(u.a)(),n="".concat(t,"_zero-data-notification"),d=Object(a.useCallback)((function(){Object(l.A)(n,"view_notification")}),[n]),g=Object(a.useCallback)((function(){Object(l.A)(n,"dismiss_notification")}),[n]),f=Object(a.useCallback)((function(){Object(l.A)(n,"click_learn_more_link")}),[n]),m=Object(r.a)((function(e){return e(o.c).getDocumentationLinkURL("not-enough-traffic")}));return e.createElement(c.b,{id:"zero-data-notification",title:Object(i.__)("Not enough traffic yet to display stats","google-site-kit"),description:Object(i.__)("Site Kit will start showing stats on the dashboard as soon as enough people have visited your site. Keep working on your site to attract more visitors.","google-site-kit"),format:"small",learnMoreLabel:Object(i.__)("Learn more","google-site-kit"),learnMoreURL:m,dismiss:Object(i.__)("Remind me later","google-site-kit"),dismissExpires:Object(l.n)("day"),SmallImageSVG:s.a,onView:d,onDismiss:g,onLearnMoreClick:f,isDismissible:!0})}}).call(this,n(3))},554:function(e,t,n){"use strict";var r=n(2);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("ellipse",{cx:175.51,cy:381.74,rx:104,ry:8.26,fill:"#F1F3F4"}),o=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"}),c=r.createElement("path",{d:"M201.85 238.9l61.65 74a20 20 0 011 24.29l-30 42.81h32.13",stroke:"#1967D2",strokeLinejoin:"round",strokeWidth:9.27}),s=r.createElement("path",{stroke:"#1967D2",strokeLinejoin:"round",strokeWidth:9.27,d:"M214.03 222.14L114.03 380h-29.6"}),l=r.createElement("path",{stroke:"#185ABC",strokeLinejoin:"round",strokeWidth:9.27,d:"M201.85 238.9l46.71 56.1M214.03 222.14L167.87 295"}),u=r.createElement("path",{d:"M129.21 229.83l-11.7-42.66A50 50 0 01136 133.78L191 93a10 10 0 004-8V61.71M270.79 229.83l11.7-42.66A50 50 0 00264 133.78L209.05 93a10 10 0 01-4.05-8V61.71",stroke:"#4285F4",strokeLinejoin:"round",strokeWidth:9.27}),d=r.createElement("path",{d:"M199.87 289.41a81.45 81.45 0 0081.58-81.32l-162.9-.26a81.45 81.45 0 0081.32 81.58z",fill:"#1A73E8"}),g=r.createElement("path",{d:"M172.86 256.89c13.38 16.47 37.19 21.05 54.28 0",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6.66});t.a=function SvgZeroStateBlue(e){return r.createElement("svg",a({viewBox:"0 0 400 400",fill:"none"},e),i,o,c,s,l,u,d,g)}},555:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(16),a=n.n(r),i=n(629),o=n(2),c=function(){var t=Object(i.a)().y,n=Object(o.useState)(!1),r=a()(n,2),c=r[0],s=r[1],l="googlesitekit-plugin--has-scrolled";return Object(o.useEffect)((function(){c?e.document.body.classList.add(l):e.document.body.classList.remove(l)}),[c]),t>0&&!c?s(!0):0===t&&c&&s(!1),c}}).call(this,n(26))},556:function(e,t,n){"use strict";(function(e){var r=n(1),a=n(4),i=n.n(a),o=n(105),c=n(9),s=n(7),l=n(88),u=n(8),d=n(103),g=n(38),f=i.a.useSelect;t.a=Object(d.a)({moduleName:"analytics"})((function DashboardViewIndicator(){var t=f((function(e){return e(s.i).isGA4DashboardView()})),n=f((function(e){return e(c.a).getReferenceDate()})),a=Object(g.a)();if(!f((function(e){return!a||(e(c.a).canViewSharedModule("analytics")||e(c.a).canViewSharedModule("analytics-4"))}))||void 0===t||Object(u.y)(n)>=Object(u.y)(l.f))return null;var i=t?Object(r.__)("Google Analytics 4 view","google-site-kit"):Object(r.__)("Universal Analytics view","google-site-kit");return e.createElement("div",{className:"googlesitekit-dashboard-view-indicator__wrapper"},e.createElement(o.a,{className:"googlesitekit-dashboard-view-indicator__badge",label:i}))}))}).call(this,n(3))},56:function(e,t,n){"use strict";n.d(t,"n",(function(){return E})),n.d(t,"l",(function(){return j})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"k",(function(){return O})),n.d(t,"g",(function(){return h})),n.d(t,"i",(function(){return y})),n.d(t,"h",(function(){return _})),n.d(t,"f",(function(){return h})),n.d(t,"e",(function(){return k})),n.d(t,"m",(function(){return T})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return D}));var r=n(29),a=n.n(r),i=n(15),o=n(12),c=n.n(o),s=n(1),l=n(74),u=n(148),d=n(8),g=n(155),f=n(16),m=n.n(f),p=n(7),h=function(e){return(parseInt(e,10)||0)>0};function b(e){return e===p.a||h(e)}function v(e){return"string"==typeof e&&/^UA-\d+-\d+$/.test(e)}function O(e){return e===p.k||v(e)}function y(e){return e===p.j||h(e)}function _(e){return"string"==typeof e&&e.trim().length>0}function k(e){return"string"==typeof e&&/^AW-[0-9]+$/.test(e)}function E(e){if(!v(e))return!1;var t=e.match(/^UA-(\d+)-(\d+)/),n=m()(t,3);return{accountID:n[1],propertyID:e,number:n[2]}}function j(e){var t,n,r,a,i,o,c,s;if(void 0!==e)return!(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.totals)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.values)||void 0===s?void 0:s.length)||!e[0].data.totals.some((function(e){return e.values.some((function(e){return e>0}))}))}var S=n(66);function w(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 N(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 N(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 N(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 T(e,t){var n,r=(Array.isArray(t)?t:[t]).map(S.c),a=w(e);try{for(a.s();!(n=a.n()).done;){var i=n.value,o=i.websiteUrl;if(o){var c,s=w(r);try{for(s.s();!(c=s.n()).done;){if(c.value===Object(S.c)(o))return i}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){a.e(e)}finally{a.f()}return null}function A(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.keyColumnIndex,i=void 0===a?0:a,o=r.maxSlices,c=r.withOthers,l=void 0!==c&&c,u=r.tooltipCallback,d=(null==e?void 0:e[0])||{},g=d.data,f=void 0===g?{}:g,m=f.rows,p=void 0===m?[]:m,h=f.totals,b=void 0===h?[]:h,v="function"==typeof u,O=["Source","Percent"];v&&O.push({type:"string",role:"tooltip",p:{html:!0}});var y=(null==b||null===(t=b[0])||void 0===t||null===(n=t.values)||void 0===n?void 0:n[i])||0,_=[O],k=l,E=p.length,j=1;o>0?(k=l&&p.length>o,E=Math.min(p.length,k?o-1:o)):(k=!1,E=p.length);for(var S=0;S<E;S++){var w=p[S],N=w.metrics[0].values[i],T=y>0?N/y:0;j-=T;var A=[w.dimensions[0],T];v&&A.push(u(w,A)),_.push(A)}if(k&&j>0){var C=[Object(s.__)("Others","google-site-kit"),j];v&&C.push(u(null,C)),_.push(C)}return _}function C(e,t,n){var r=[];return Object(i.each)(e,(function(e){if(e.metrics){var a=e.metrics[t].values,i=e.dimensions[0],o=Object(u.a)(i);r.push([o,a[n]])}})),r}function D(e,t,n){var r,o,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[Object(s.__)("Users","google-site-kit"),Object(s.__)("Sessions","google-site-kit"),Object(s.__)("Bounce Rate %","google-site-kit"),Object(s.__)("Session Duration","google-site-kit")],p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[function(e){return parseFloat(e).toLocaleString()},function(e){return parseFloat(e).toLocaleString()},function(e){return Object(d.v)(e/100,{style:"percent",signDisplay:"never",maximumFractionDigits:2})},function(e){return Object(d.v)(e,"s")}];if(!Array.isArray(null===(r=e[0])||void 0===r||null===(o=r.data)||void 0===o?void 0:o.rows))return!1;var h=a()(e[0].data.rows),b=h.length;if(2*n>b){for(var v=new Date,O=0;n>O;O++){var y=(v.getMonth()+1).toString(),_=v.getDate().toString(),k=v.getFullYear().toString()+(2>y.length?"0":"")+y+(2>_.length?"0":"")+_;if(O>b){var E={dimensions:[k],metrics:[{values:[0,0,0,0,0]}]};h.unshift(E)}v.setDate(v.getDate()-1)}h.push([0,0])}var j=m[t]===Object(s.__)("Session Duration","google-site-kit"),S=j?"timeofday":"number",w=[[{type:"date",label:Object(s.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:S,label:m[t]},{type:S,label:Object(s.__)("Previous period","google-site-kit")}]],N=Object(g.a)(h,{dateRangeLength:n}),T=N.compareRange,A=N.currentRange,D=C(A,u,t),x=C(T,f,t),R=Object(l.b)(),L={weekday:"short",month:"short",day:"numeric"};return Object(i.each)(D,(function(e,n){if(e[0]&&e[1]&&x[n]){var r=parseFloat(x[n][1]),a=Object(d.e)(e[1],r),i=Object(d.j)(a),o=Object(s.sprintf)( /* translators: 1: date for user stats, 2: previous date for user stats comparison */ Object(s._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(R,L),x[n][0].toLocaleDateString(R,L)),l=Object(s.sprintf)( /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */ Object(s._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),m[t],p[t](e[1]),i,Object(d.v)(Math.abs(a),"%"));w.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":a>0,"googlesitekit-visualization-tooltip--down":a<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(l,"</p>\n\t\t\t</div>"),j?Object(d.f)(e[1]):e[1],j?Object(d.f)(x[n][1]):x[n][1]])}})),w}},58:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/search-console",a=1},60:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(35);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},63:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return c}));var r=n(24),a=n(20),i=r.l,o=r.j;function c(){var e=Object(a.a)();return e===r.l||e===r.m?i:e===r.j||e===r.k?o:null}},64:function(e,t,n){"use strict";n.d(t,"d",(function(){return r.e})),n.d(t,"c",(function(){return r.d})),n.d(t,"b",(function(){return r.b})),n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return r.f})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"j",(function(){return d.a})),n.d(t,"f",(function(){return f})),n.d(t,"k",(function(){return s.a}));var r=n(43),a=n(11),i=n.n(a),o=n(44),c=function(e){i()(Object(o.a)(e),r.c);var t="".concat(e.getMonth()+1),n="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,n.length<2?"0".concat(n):n].join("-")},s=n(40),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=Object(s.a)(e);return n.setDate(n.getDate()-t),c(n)},u=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]},d=n(53);var g=n(1);function f(){var e=function(e){return Object(g.sprintf)( /* translators: %s: number of days */ Object(g._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}}}},65:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),a=Object(r.createContext)(""),i=(a.Consumer,a.Provider);t.b=a},66:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c}));var r=n(95);function a(e){try{return new URL(e).pathname}catch(e){}return null}function i(e,t){try{return new URL(t,e).href}catch(e){}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function o(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function c(e,t){if(!Object(r.a)(e))return e;if(e.length<=t)return e;var n=new URL(e),a=e.replace(n.origin,"");if(a.length<t)return a;var i=a.length-Math.floor(t)+1;return"…"+a.substr(i)}},7:function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"k",(function(){return i})),n.d(t,"j",(function(){return o})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"n",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"v",(function(){return g})),n.d(t,"u",(function(){return f})),n.d(t,"w",(function(){return m})),n.d(t,"s",(function(){return p})),n.d(t,"t",(function(){return h})),n.d(t,"r",(function(){return b})),n.d(t,"o",(function(){return v})),n.d(t,"p",(function(){return O})),n.d(t,"q",(function(){return y})),n.d(t,"m",(function(){return _})),n.d(t,"l",(function(){return k})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return j})),n.d(t,"h",(function(){return S}));var r="modules/analytics",a="account_create",i="property_create",o="profile_create",c="analyticsAccountCreate",s="analyticsSetup",l="https://www.googleapis.com/auth/analytics.provision",u="https://www.googleapis.com/auth/analytics.edit",d=1,g="dashboardAllTrafficWidgetDimensionName",f="dashboardAllTrafficWidgetDimensionColor",m="dashboardAllTrafficWidgetDimensionValue",p="dashboardAllTrafficWidgetActiveRowIndex",h="dashboardAllTrafficWidgetLoaded",b="ua",v="ga4",O="ga4-legacy",y="ga4-transitional",_="ua",k="ga4",E="google-analytics-4",j="universal-analytics",S="switch-ga4-dashboard-view"},71:function(e,t,n){"use strict";n.r(t),n.d(t,"CONTEXT_MAIN_DASHBOARD_KEY_METRICS",(function(){return r})),n.d(t,"CONTEXT_MAIN_DASHBOARD_TRAFFIC",(function(){return a})),n.d(t,"CONTEXT_MAIN_DASHBOARD_CONTENT",(function(){return i})),n.d(t,"CONTEXT_MAIN_DASHBOARD_SPEED",(function(){return o})),n.d(t,"CONTEXT_MAIN_DASHBOARD_MONETIZATION",(function(){return c})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_TRAFFIC",(function(){return s})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_CONTENT",(function(){return l})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_SPEED",(function(){return u})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_MONETIZATION",(function(){return d}));var r="mainDashboardKeyMetrics",a="mainDashboardTraffic",i="mainDashboardContent",o="mainDashboardSpeed",c="mainDashboardMonetization",s="entityDashboardTraffic",l="entityDashboardContent",u="entityDashboardSpeed",d="entityDashboardMonetization";t.default={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:r,CONTEXT_MAIN_DASHBOARD_TRAFFIC:a,CONTEXT_MAIN_DASHBOARD_CONTENT:i,CONTEXT_MAIN_DASHBOARD_SPEED:o,CONTEXT_MAIN_DASHBOARD_MONETIZATION:c,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:s,CONTEXT_ENTITY_DASHBOARD_CONTENT:l,CONTEXT_ENTITY_DASHBOARD_SPEED:u,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:d}},73:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(33),a=n.n(r),i=n(85),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,/\/+$/,"")}},74:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return _})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return j})),n.d(t,"c",(function(){return S})),n.d(t,"b",(function(){return w}));var r=n(16),a=n.n(r),i=n(33),o=n.n(i),c=n(6),s=n.n(c),l=n(25),u=n.n(l),d=n(15),g=n(79),f=n.n(g),m=n(1);function p(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?p(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},v=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?j(a,h(h({},o),{},{unit:"second"})):Object(m.sprintf)( /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?j(a,h(h({},o),{},{unit:"second"})):"",r?j(r,h(h({},o),{},{unit:"minute"})):"",n?j(n,h(h({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(m.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit. Object(m.__)("%ds","google-site-kit"),a);if(0===e)return t;var i=Object(m.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit. Object(m.__)("%dm","google-site-kit"),r),o=Object(m.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit. Object(m.__)("%dh","google-site-kit"),n);return Object(m.sprintf)( /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",r?i:"",n?o:"").trim()}}},O=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},y=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in millions. Object(m.__)("%sM","google-site-kit"),j(O(e),e%10==0?{}:t)):1e4<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands. Object(m.__)("%sK","google-site-kit"),j(O(e))):1e3<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands. Object(m.__)("%sK","google-site-kit"),j(O(e),e%10==0?{}:t)):j(e,{signDisplay:"never",maximumFractionDigits:1})};function _(e){var t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:Object(d.isPlainObject)(e)&&(t=h({},e)),t}function k(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=_(t),r=n.style,a=void 0===r?"metric":r;return"metric"===a?y(e):"duration"===a?b(e,n):j(e,n)}var E=f()(console.warn),j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():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,g=Object.entries(i);d<g.length;d++){var f=a()(g[d],2),m=f[0],p=f[1];c[m]&&p===c[m]||(s.includes(m)||(l[m]=p))}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?w():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(m.__)(", ","google-site-kit");return e.join(l)},w=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(26))},77:function(e,t,n){"use strict";var r=n(124);n.d(t,"a",(function(){return r.a}));var a=n(125);n.d(t,"c",(function(){return a.a}));var i=n(126);n.d(t,"b",(function(){return i.a}))},78:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(95),o=n(1),c=n(8);function ErrorText(t){var n=t.message,r=t.reconnectURL,a=t.noPrefix;if(!n)return null;var s=n;void 0!==a&&a||(s=Object(o.sprintf)( /* translators: %s: Error message */ Object(o.__)("Error: %s","google-site-kit"),n)),r&&Object(i.a)(r)&&(s=s+" "+Object(o.sprintf)( /* translators: %s: Reconnect URL */ Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),r));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.x)(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:a.a.string.isRequired,reconnectURL:a.a.string,noPrefix:a.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(3))},8:function(e,t,n){"use strict";n.d(t,"A",(function(){return a.b})),n.d(t,"x",(function(){return i.a})),n.d(t,"B",(function(){return i.b})),n.d(t,"z",(function(){return u})),n.d(t,"h",(function(){return d.a})),n.d(t,"v",(function(){return d.d})),n.d(t,"w",(function(){return d.e})),n.d(t,"s",(function(){return d.c})),n.d(t,"m",(function(){return d.b})),n.d(t,"t",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"b",(function(){return b.b})),n.d(t,"a",(function(){return b.a})),n.d(t,"c",(function(){return b.e})),n.d(t,"k",(function(){return b.g})),n.d(t,"i",(function(){return b.f})),n.d(t,"y",(function(){return b.k})),n.d(t,"j",(function(){return v.b})),n.d(t,"q",(function(){return v.c})),n.d(t,"e",(function(){return v.a})),n.d(t,"o",(function(){return O.b})),n.d(t,"l",(function(){return O.a})),n.d(t,"u",(function(){return O.c})),n.d(t,"r",(function(){return y})),n.d(t,"p",(function(){return _})),n.d(t,"n",(function(){return k})),n.d(t,"d",(function(){return E})),n.d(t,"C",(function(){return j})),n.d(t,"g",(function(){return S}));var r=n(15),a=n(34),i=n(73),o=n(33),c=n.n(o),s=n(91),l=n.n(s),u=function(e){return l()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var a=t[r];a&&"object"===c()(a)&&!Array.isArray(a)&&(a=e(a)),n[r]=a})),n}(e)))};n(97);var d=n(74);function g(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function f(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function m(e){return e.replace(/\n/gi,"<br>")}function p(e){for(var t=e,n=0,r=[g,f,m];n<r.length;n++){t=(0,r[n])(t)}return t}var h=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)]},b=n(64),v=n(98),O=n(66);function y(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function _(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var k=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}};function E(e,t){var n=function(e){return"0"===e||0===e};if(n(e)&&n(t))return 0;if(n(e)||Number.isNaN(e))return null;var r=(t-e)/e;return Number.isNaN(r)||!Number.isFinite(r)?null:r}var j=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},S=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(r.unescape)(t)}},80:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={EXTERNAL:"external",INTERNAL:"internal"}},84:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(12),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(3))},85:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(133),a=n.n(r)()(e)}).call(this,n(26))},87:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}));var r=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},a=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},88:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"k",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"g",(function(){return g})),n.d(t,"f",(function(){return f}));var r=0,a=1,i=2,o="activation-acknowledgement-tooltip-state",c="ga4-activation-banner-state",s="_r.explorerCard..selmet",l="_r.explorerCard..seldim",u="_r..dataFilters",d="_r..nav",g="key-metrics-connect-ga4-cta-widget",f="2023-09-25"},9: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,"o",(function(){return o})),n.d(t,"t",(function(){return c})),n.d(t,"v",(function(){return s})),n.d(t,"r",(function(){return l})),n.d(t,"s",(function(){return u})),n.d(t,"q",(function(){return d})),n.d(t,"p",(function(){return g})),n.d(t,"u",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return v})),n.d(t,"i",(function(){return O})),n.d(t,"j",(function(){return y})),n.d(t,"k",(function(){return _})),n.d(t,"l",(function(){return k})),n.d(t,"m",(function(){return E})),n.d(t,"n",(function(){return j}));var r="core/user",a="connected_url_mismatch",i="__global",o="googlesitekit_authenticate",c="googlesitekit_setup",s="googlesitekit_view_dashboard",l="googlesitekit_manage_options",u="googlesitekit_read_shared_module_data",d="googlesitekit_manage_module_sharing_options",g="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",m="kmAnalyticsAdSenseTopEarningContent",p="kmAnalyticsEngagedTrafficSource",h="kmAnalyticsLoyalVisitors",b="kmAnalyticsNewVisitors",v="kmAnalyticsPopularContent",O="kmAnalyticsPopularProducts",y="kmAnalyticsTopCities",_="kmAnalyticsTopConvertingTrafficSource",k="kmAnalyticsTopCountries",E="kmAnalyticsTopTrafficSource",j="kmSearchConsolePopularKeywords"},910:function(e,t,n){"use strict";(function(e){var r=n(12),a=n.n(r),i=n(2),o=n(46),c=n(1),s=n(4),l=n.n(s),u=n(192),d=n(71),g=n(341),f=n(539),m=n(544),p=n(193),h=n(24),b=n(13),v=n(9),O=n(21),y=n(106),_=n(17),k=n(316),E=n(163),j=n(41),S=n(476),w=n(911),N=n(528),T=n(55),A=n(38),C=n(556),D=l.a.useSelect;t.a=function DashboardEntityApp(){var t=Object(A.a)(),n=Object(T.a)("ga4Reporting"),r=D((function(e){return t?e(v.a).getViewableModules():null})),s=D((function(e){return e(b.c).getCurrentEntityURL()})),l=D((function(e){return e(b.c).getPermaLinkParam()})),x=D((function(e){return e(b.c).getAdminURL("googlesitekit-dashboard")})),R={modules:r||void 0},L=D((function(e){return e(j.a).isWidgetContextActive(d.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,R)})),M=D((function(e){return e(j.a).isWidgetContextActive(d.CONTEXT_ENTITY_DASHBOARD_CONTENT,R)})),P=D((function(e){return e(j.a).isWidgetContextActive(d.CONTEXT_ENTITY_DASHBOARD_SPEED,R)})),I=D((function(e){return e(j.a).isWidgetContextActive(d.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,R)})),B=D((function(e){return e(b.c).getDocumentationLinkURL("url-not-part-of-this-site")})),z=null;return I?z=h.c:P?z=h.d:M?z=h.a:L&&(z=h.e),null===s?e.createElement("div",{className:"googlesitekit-widget-context googlesitekit-module-page googlesitekit-entity-dashboard"},e.createElement(S.a,null),e.createElement(_.e,null,e.createElement(_.k,null,e.createElement(_.a,{size:12},e.createElement(i.Fragment,null,e.createElement(O.a,{href:x,back:!0,small:!0},Object(c.__)("Back to the Site Kit Dashboard","google-site-kit")),e.createElement(k.a,{title:Object(c.__)("Detailed Page Stats","google-site-kit"),className:"googlesitekit-heading-2 googlesitekit-entity-dashboard__heading",fullWidth:!0}),e.createElement(E.a,{className:"googlesitekit-entity-dashboard__entity-header"},e.createElement(_.e,null,e.createElement(_.k,null,e.createElement(_.a,{size:12},e.createElement("p",null,Object(o.a)(Object(c.sprintf)( /* translators: %s: current entity URL. */ Object(c.__)("It looks like the URL %s is not part of this site or is not based on standard WordPress content types, therefore there is no data available to display. Visit our <link1>support forums</link1> or <link2><VisuallyHidden>Site Kit</VisuallyHidden> website</link2> for support or further information.","google-site-kit"),"<strong>".concat(l,"</strong>")),{strong:e.createElement("strong",null),link1:e.createElement(O.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0}),link2:e.createElement(O.a,{href:B,external:!0}),VisuallyHidden:e.createElement(y.a,null)}))))))))))):e.createElement(i.Fragment,null,e.createElement(S.a,null),e.createElement(u.a,{subHeader:e.createElement(w.a,null),showNavigation:!0},e.createElement(f.a,null),e.createElement(m.a,null),!t&&e.createElement(N.a,null),e.createElement(p.a,null)),n&&e.createElement(C.a,null),e.createElement(g.a,{id:h.e,slug:d.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,className:a()({"googlesitekit-widget-context--last":z===h.e})}),e.createElement(g.a,{id:h.a,slug:d.CONTEXT_ENTITY_DASHBOARD_CONTENT,className:a()({"googlesitekit-widget-context--last":z===h.a})}),e.createElement(g.a,{id:h.d,slug:d.CONTEXT_ENTITY_DASHBOARD_SPEED,className:a()({"googlesitekit-widget-context--last":z===h.d})}),e.createElement(g.a,{id:h.c,slug:d.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,className:a()({"googlesitekit-widget-context--last":z===h.c})}))}}).call(this,n(3))},911:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return EntityBannerNotifications}));var r=n(2),a=n(912),i=n(474),o=n(38);function EntityBannerNotifications(){var t=Object(o.a)();return e.createElement(r.Fragment,null,!t&&e.createElement(a.a,null),e.createElement(i.a,null))}}).call(this,n(3))},912:function(e,t,n){"use strict";var r=n(497);n.d(t,"a",(function(){return r.a}))},93:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return O}));var r=n(25),a=n.n(r),i=n(6),o=n.n(i),c=n(5),s=n.n(c),l=n(11),u=n.n(l),d=n(4),g=n.n(d),f=n(39),m=n(8),p=g.a.createRegistryControl,h=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(f.c)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(f.f)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(f.d)("datastore::cache::".concat(e),m.b)})),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}}}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(b(e).map((function(e){return e.getActions().createSnapshot()})))},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(b(e).map((function(e){return e.getActions().restoreSnapshot()})))}},94:function(e,t,n){"use strict";var r=n(16),a=n.n(r),i=n(272),o=n(0),c=n.n(o),s=n(2),l=n(122);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},97:function(e,t,n){"use strict";(function(e){n(51),n(52)}).call(this,n(26))},98:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return c}));var r=n(199),a=n(84),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,g,f,m,p;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===(g=d.data)||void 0===g||null===(f=g.totals)||void 0===f||null===(m=f[0])||void 0===m||null===(p=m.values)||void 0===p?void 0:p[0])},c=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,n(3))},99: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(100),o=n(101);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={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};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);a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,""));var c=Object(i.a)(a,n);return{enableTracking:function(){a.trackingEnabled=!0},disableTracking:function(){a.trackingEnabled=!1},initializeSnippet:c,isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,c,r)}}}).call(this,n(26))}},[[1030,1,0]]]);