OwlCyberSecurity - MANAGER
Edit File: googlesitekit-main-dashboard-4d6623cea8983b2941bb.js
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[15],[,,function(e,t){e.exports=googlesitekit.i18n},,function(e,t){e.exports=googlesitekit.data},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"y",(function(){return c})),n.d(t,"D",(function(){return s})),n.d(t,"F",(function(){return l})),n.d(t,"B",(function(){return u})),n.d(t,"C",(function(){return d})),n.d(t,"A",(function(){return g})),n.d(t,"z",(function(){return f})),n.d(t,"E",(function(){return m})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return v})),n.d(t,"i",(function(){return b})),n.d(t,"k",(function(){return _})),n.d(t,"l",(function(){return O})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return E})),n.d(t,"p",(function(){return k})),n.d(t,"q",(function(){return j})),n.d(t,"r",(function(){return S})),n.d(t,"s",(function(){return w})),n.d(t,"u",(function(){return C})),n.d(t,"j",(function(){return A})),n.d(t,"w",(function(){return N})),n.d(t,"t",(function(){return T})),n.d(t,"x",(function(){return D})),n.d(t,"v",(function(){return x})),n.d(t,"h",(function(){return R})),n.d(t,"o",(function(){return M})),n.d(t,"H",(function(){return P})),n.d(t,"G",(function(){return L}));var r="core/user",i="connected_url_mismatch",a="__global",o="temporary_persist_permission_error",c="googlesitekit_authenticate",s="googlesitekit_setup",l="googlesitekit_view_dashboard",u="googlesitekit_manage_options",d="googlesitekit_read_shared_module_data",g="googlesitekit_manage_module_sharing_options",f="googlesitekit_delegate_module_sharing_management",m="googlesitekit_update_plugins",p="kmAnalyticsAdSenseTopEarningContent",h="kmAnalyticsEngagedTrafficSource",v="kmAnalyticsLeastEngagingPages",b="kmAnalyticsNewVisitors",_="kmAnalyticsPopularAuthors",O="kmAnalyticsPopularContent",y="kmAnalyticsPopularProducts",E="kmAnalyticsReturningVisitors",k="kmAnalyticsTopCities",j="kmAnalyticsTopConvertingTrafficSource",S="kmAnalyticsTopCountries",w="kmAnalyticsTopRecentTrendingPages",C="kmAnalyticsTopTrafficSource",A="kmAnalyticsPagesPerVisit",N="kmAnalyticsVisitLength",T="kmAnalyticsTopReturningVisitorPages",D="kmSearchConsolePopularKeywords",x="kmAnalyticsVisitsPerVisitor",R="kmAnalyticsMostEngagingPages",M="kmAnalyticsTopCategories",P=[p,h,v,b,_,O,y,E,M,k,j,S,w,C,A,N,T,x,R,M],L=[].concat(P,[D])},function(e,t,n){"use strict";(function(e){n.d(t,"p",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"E",(function(){return v})),n.d(t,"h",(function(){return b}));var r=n(13),i=n(33);n.d(t,"B",(function(){return i.b})),n.d(t,"C",(function(){return i.c}));var a=n(72);n.d(t,"y",(function(){return a.a})),n.d(t,"D",(function(){return a.b}));var o=n(90);n.d(t,"A",(function(){return o.a}));n(91);var c=n(70);n.d(t,"i",(function(){return c.a})),n.d(t,"n",(function(){return c.b})),n.d(t,"t",(function(){return c.c})),n.d(t,"w",(function(){return c.d})),n.d(t,"x",(function(){return c.e}));var s=n(92);n.d(t,"u",(function(){return s.a}));var l=n(93);n.d(t,"f",(function(){return l.a})),n.d(t,"g",(function(){return l.b}));var u=n(61);n.d(t,"a",(function(){return u.a})),n.d(t,"b",(function(){return u.b})),n.d(t,"c",(function(){return u.e})),n.d(t,"j",(function(){return u.f})),n.d(t,"l",(function(){return u.g})),n.d(t,"o",(function(){return u.h})),n.d(t,"z",(function(){return u.k}));var d=n(94);n.d(t,"e",(function(){return d.a})),n.d(t,"k",(function(){return d.b}));var g=n(76);n.d(t,"m",(function(){return g.a})),n.d(t,"q",(function(){return g.b})),n.d(t,"v",(function(){return g.c}));var f=n(95);n.d(t,"s",(function(){return f.a}));var m=n(96);n.d(t,"r",(function(){return m.a})),e._gsktag=i.b;var p=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 h(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 v=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},b=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)}}).call(this,n(24))},function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"n",(function(){return a})),n.d(t,"t",(function(){return o})),n.d(t,"j",(function(){return c})),n.d(t,"l",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return g})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"r",(function(){return v})),n.d(t,"q",(function(){return b})),n.d(t,"s",(function(){return _})),n.d(t,"o",(function(){return O})),n.d(t,"p",(function(){return y})),n.d(t,"b",(function(){return E}));var r="modules/analytics-4",i="account_create",a="property_create",o="webdatastream_create",c="analyticsSetup",s=10,l=1,u="https://www.googleapis.com/auth/tagmanager.readonly",d="enhanced-measurement-form",g="enhanced-measurement-enabled",f="enhanced-measurement-should-dismiss-activation-banner",m="analyticsAccountCreate",p="analyticsCustomDimensionsCreate",h="https://www.googleapis.com/auth/analytics.edit",v="dashboardAllTrafficWidgetDimensionName",b="dashboardAllTrafficWidgetDimensionColor",_="dashboardAllTrafficWidgetDimensionValue",O="dashboardAllTrafficWidgetActiveRowIndex",y="dashboardAllTrafficWidgetLoaded",E={googlesitekit_post_date:{parameterName:"googlesitekit_post_date",displayName:"WordPress Post Date",description:"Created by Site Kit: Date when a post was published",scope:"EVENT"},googlesitekit_post_author:{parameterName:"googlesitekit_post_author",displayName:"WordPress Post Author",description:"Created by Site Kit: WordPress name of the post author",scope:"EVENT"},googlesitekit_post_categories:{parameterName:"googlesitekit_post_categories",displayName:"WordPress Post Categories",description:"Created by Site Kit: Names of categories assigned to a post",scope:"EVENT"},googlesitekit_post_type:{parameterName:"googlesitekit_post_type",displayName:"WordPress Post Type",description:"Created by Site Kit: Content type of a post",scope:"EVENT"}}},function(e,t){e.exports=googlesitekit.components},,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r="core/site",i="primary",a="secondary"},function(e,t,n){"use strict";var r=n(240);n.d(t,"i",(function(){return r.a}));var i=n(296);n.d(t,"f",(function(){return i.a}));var a=n(297);n.d(t,"h",(function(){return a.a}));var o=n(298);n.d(t,"j",(function(){return o.a}));var c=n(295);n.d(t,"g",(function(){return c.a}));var s=n(97),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(106);n.d(t,"a",(function(){return u.a})),n.d(t,"e",(function(){return u.b})),n.d(t,"k",(function(){return u.c}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="core/modules",i="insufficient_module_dependencies"},function(e,t,n){"use strict";var r=n(1),i=n(62);t.a=function(){return Object(r.useContext)(i.b)}},function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"k",(function(){return i})),n.d(t,"n",(function(){return a})),n.d(t,"l",(function(){return o})),n.d(t,"r",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"q",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"p",(function(){return g})),n.d(t,"j",(function(){return f})),n.d(t,"s",(function(){return m})),n.d(t,"t",(function(){return p})),n.d(t,"o",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return b})),n.d(t,"a",(function(){return _})),n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return y})),n.d(t,"f",(function(){return E}));var r="mainDashboard",i="entityDashboard",a="mainDashboardViewOnly",o="entityDashboardViewOnly",c="userInput",s="activation",l="splash",u="adminBar",d="adminBarViewOnly",g="settings",f="adBlockingRecovery",m="wpDashboard",p="wpDashboardViewOnly",h="moduleSetup",v="key-metrics",b="traffic",_="content",O="speed",y="monetization",E=[r,i,a,o,c,l,g,h]},,,function(e,t,n){"use strict";(function(e){var r=n(21),i=n.n(r),a=n(22),o=n.n(a),c=n(12),s=n.n(c),l=n(0),u=n.n(l),d=n(144),g=n(1),f=n(2),m=n(130),p=n(131),h=n(132),v=n(133),b=n(81),_=Object(g.forwardRef)((function(t,n){var r,a=t["aria-label"],c=t.secondary,l=void 0!==c&&c,u=t.arrow,g=void 0!==u&&u,_=t.back,O=void 0!==_&&_,y=t.caps,E=void 0!==y&&y,k=t.children,j=t.className,S=void 0===j?"":j,w=t.danger,C=void 0!==w&&w,A=t.disabled,N=void 0!==A&&A,T=t.external,D=void 0!==T&&T,x=t.hideExternalIndicator,R=void 0!==x&&x,M=t.href,P=void 0===M?"":M,L=t.inverse,I=void 0!==L&&L,B=t.onClick,z=t.small,F=void 0!==z&&z,W=t.standalone,V=void 0!==W&&W,H=t.linkButton,U=void 0!==H&&H,q=t.to,G=t.leadingIcon,K=t.trailingIcon,Y=o()(t,["aria-label","secondary","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inverse","onClick","small","standalone","linkButton","to","leadingIcon","trailingIcon"]),$=P||q||!B?q?"ROUTER_LINK":D?"EXTERNAL_LINK":"LINK":N?"BUTTON_DISABLED":"BUTTON",X="BUTTON"===$||"BUTTON_DISABLED"===$?"button":"ROUTER_LINK"===$?d.b:"a",Q=("EXTERNAL_LINK"===$&&(r=Object(f._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===$&&(r=Object(f._x)("(disabled)","screen reader text","google-site-kit")),r?a?"".concat(a," ").concat(r):"string"==typeof k?"".concat(k," ").concat(r):void 0:a),Z=G,J=K;return O&&(Z=e.createElement(h.a,{width:14,height:14})),D&&!R&&(J=e.createElement(v.a,{width:14,height:14})),g&&!I&&(J=e.createElement(m.a,{width:14,height:14})),g&&I&&(J=e.createElement(p.a,{width:14,height:14})),e.createElement(X,i()({"aria-label":Q,className:s()("googlesitekit-cta-link",S,{"googlesitekit-cta-link--secondary":l,"googlesitekit-cta-link--inverse":I,"googlesitekit-cta-link--small":F,"googlesitekit-cta-link--caps":E,"googlesitekit-cta-link--danger":C,"googlesitekit-cta-link--disabled":N,"googlesitekit-cta-link--standalone":V,"googlesitekit-cta-link--link-button":U}),disabled:N,href:"LINK"!==$&&"EXTERNAL_LINK"!==$||N?void 0:P,onClick:B,rel:"EXTERNAL_LINK"===$?"noopener noreferrer":void 0,ref:n,target:"EXTERNAL_LINK"===$?"_blank":void 0,to:q},Y),!!Z&&e.createElement(b.a,{marginRight:5},Z),e.createElement("span",{className:"googlesitekit-cta-link__contents"},k),!!J&&e.createElement(b.a,{marginLeft:5},J))}));_.propTypes={arrow:u.a.bool,back:u.a.bool,caps:u.a.bool,children:u.a.node,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,external:u.a.bool,hideExternalIndicator:u.a.bool,href:u.a.string,inverse:u.a.bool,leadingIcon:u.a.node,linkButton:u.a.bool,onClick:u.a.func,small:u.a.bool,standalone:u.a.bool,to:u.a.string,trailingIcon:u.a.node},t.a=_}).call(this,n(3))},,function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"j",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return f})),n.d(t,"k",(function(){return m})),n.d(t,"l",(function(){return p}));var r="modules/adsense",i=1,a="READY",o="NEEDS_ATTENTION",c="REQUIRES_REVIEW",s="GETTING_READY",l="background-submit-suspended",u="ad-blocking-recovery-setup-success",d="adsenseAdBlockingFormSettings",g="googlesitekit-ad-blocking-recovery-setup-create-message-cta-clicked",f="ad-blocking-recovery-notification",m={TAG_PLACED:"tag-placed",SETUP_CONFIRMED:"setup-confirmed"},p={PLACE_TAGS:0,CREATE_MESSAGE:1,COMPLETE:2}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r="core/ui",i="activeContextID"},,function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return s}));var r=n(84),i="xlarge",a="desktop",o="tablet",c="small";function s(){var e=Object(r.a)();return e>1280?i:e>960?a:e>600?o:c}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/location"},function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),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",i="account_create",a="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"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return _}));var r=n(98),i=e._googlesitekitTrackingData||{},a=i.activeModules,o=void 0===a?[]:a,c=i.isSiteKitScreen,s=i.trackingEnabled,l=i.trackingID,u=i.referenceSiteURL,d=i.userIDHash,g=i.isAuthenticated,f={activeModules:o,trackingEnabled:s,trackingID:l,trackingID_GA4:"G-EQDN3BWDSD",referenceSiteURL:u,userIDHash:d,isSiteKitScreen:c,userRoles:i.userRoles,isAuthenticated:g,pluginVersion:"1.123.0"},m=Object(r.a)(f),p=m.enableTracking,h=m.disableTracking,v=(m.isTrackingEnabled,m.initializeSnippet),b=m.trackEvent,_=m.trackEventOnce;function O(e){e?p():h()}c&&s&&v()}).call(this,n(24))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/forms"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="_googlesitekitDataLayer",i="data-googlesitekit-gtag"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(20),i=n(19);function a(){var e=Object(i.a)();return e===r.n||e===r.l||e===r.t||e===r.i}},function(e,t){e.exports=googlesitekit.api},function(e,t,n){"use strict";(function(e){var r,i;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var a=new Set((null===(r=e)||void 0===r||null===(i=r._googlesitekitBaseData)||void 0===i?void 0:i.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return t instanceof Set&&t.has(e)}}).call(this,n(24))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return b})),n.d(t,"f",(function(){return _})),n.d(t,"c",(function(){return O})),n.d(t,"e",(function(){return y})),n.d(t,"b",(function(){return E}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),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,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,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,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}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.123.0","_").concat(e._googlesitekitBaseData.storagePrefix,"_"),f=["sessionStorage","localStorage"],m=[].concat(f),p=function(){var t=o()(i.a.mark((function t(n){var r,a;return i.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,a="__storage_test__",r.setItem(a,a),r.removeItem(a),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 v.apply(this,arguments)}function v(){return(v=o()(i.a.mark((function t(){var n,r,a;return i.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(a=r.value,!u){t.next=9;break}return t.abrupt("continue",13);case 9:return t.next=11,p(a);case 11:if(!t.sent){t.next=13;break}u=e[a];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 b=function(){var e=o()(i.a.mark((function e(t){var n,r,a,o,c,s,l;return i.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(a=JSON.parse(r),o=a.timestamp,c=a.ttl,s=a.value,l=a.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)}}(),_=function(){var t=o()(i.a.mark((function t(n,r){var a,o,s,l,u,d,f,m,p=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=p.length>2&&void 0!==p[2]?p[2]:{},o=a.ttl,s=void 0===o?c.b:o,l=a.timestamp,u=void 0===l?Math.round(Date.now()/1e3):l,d=a.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)}}(),O=function(){var t=o()(i.a.mark((function t(n){var r,a;return i.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,a=n.startsWith(d)?n:"".concat(g).concat(n),r.removeItem(a),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)}}(),y=function(){var t=o()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],a=0;a<n.length;a++)0===(o=n.key(a)).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)}}(),E=function(){var e=o()(i.a.mark((function e(){var t,n,r,a;return i.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,y();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 a=r.value,e.next=14,O(a);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(24))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r={BOXES:"boxes",COMPOSITE:"composite"},i={QUARTER:"quarter",HALF:"half",FULL:"full"},a="core/widgets"},,function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return BannerNotification}));var r=n(21),i=n.n(r),a=n(6),o=n.n(a),c=n(5),s=n.n(c),l=n(16),u=n.n(l),d=n(17),g=n.n(d),f=n(0),m=n.n(f),p=n(12),h=n.n(p),v=n(236),b=n(218),_=n(88),O=n(84),y=n(1),E=n(108),k=n(4),j=n.n(k),S=n(15),w=n(111),C=n(39),A=n(28),N=n(167),T=n(168),D=n(169),x=n(179),R=n(180),M=n(68),P=n(102),L=n(117),I=n(31),B=n(181);n.d(t,"a",(function(){return M.a}));var z=j.a.useSelect,F=j.a.useDispatch;function BannerNotification(t){var n,r=t.badgeLabel,a=t.children,c=t.className,l=void 0===c?"":c,d=t.ctaLabel,f=t.ctaLink,m=t.ctaTarget,p=t.description,k=t.dismiss,j=t.dismissExpires,W=void 0===j?0:j,V=t.format,H=void 0===V?"":V,U=t.id,q=t.isDismissible,G=void 0===q||q,K=t.learnMoreDescription,Y=t.learnMoreLabel,$=t.learnMoreURL,X=t.learnMoreTarget,Q=void 0===X?M.a.EXTERNAL:X,Z=t.logo,J=t.module,ee=t.moduleName,te=t.onCTAClick,ne=t.onView,re=t.onDismiss,ie=t.onLearnMoreClick,ae=t.showOnce,oe=void 0!==ae&&ae,ce=t.SmallImageSVG,se=t.title,le=t.type,ue=t.WinImageSVG,de=t.showSmallWinImage,ge=void 0===de||de,fe=t.smallWinImageSVGWidth,me=void 0===fe?75:fe,pe=t.smallWinImageSVGHeight,he=void 0===pe?75:pe,ve=t.mediumWinImageSVGWidth,be=void 0===ve?105:ve,_e=t.mediumWinImageSVGHeight,Oe=void 0===_e?105:_e,ye=t.rounded,Ee=void 0!==ye&&ye,ke=t.footer,je=t.secondaryPane,Se=t.ctaComponent,we=Object(y.useState)(!1),Ce=g()(we,2),Ae=Ce[0],Ne=Ce[1],Te=Object(y.useState)(!1),De=g()(Te,2),xe=De[0],Re=De[1],Me="notification::dismissed::".concat(U),Pe=function(){return Object(C.f)(Me,new Date,{ttl:null})},Le=Object(O.a)(),Ie=Object(A.e)(),Be=Object(v.a)(),ze=Object(y.useState)(!1),Fe=g()(ze,2),We=Fe[0],Ve=Fe[1],He=Object(y.useRef)(),Ue=Object(b.a)(He,{rootMargin:"".concat(-Object(L.a)(Object(w.c)(Ie)),"px 0px 0px 0px"),threshold:0});Object(y.useEffect)((function(){!We&&(null==Ue?void 0:Ue.isIntersecting)&&("function"==typeof ne&&ne(),Ve(!0))}),[U,ne,We,Ue]);var qe=Le>=600;Object(_.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,Ze();case 3:if(!G){e.next=9;break}return e.next=6,Object(C.d)(Me);case 6:t=e.sent,n=t.cacheHit,Re(n);case 9:if(!oe){e.next=12;break}return e.next=12,Pe();case 12:case"end":return e.stop()}}),e)}))));var Ge=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(),!re){e.next=5;break}return e.next=5,re(t);case 5:Ye();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ke=Object(E.a)(f)&&"_blank"!==m,Ye=function(){return Ke||Ne(!0),new Promise((function(e){setTimeout(u()(s.a.mark((function t(){var n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pe();case 2:Be()&&Re(!0),n=new Event("notificationDismissed"),document.dispatchEvent(n),e();case 6:case"end":return t.stop()}}),t)}))),350)}))},$e=z((function(e){return!!f&&e(I.a).isNavigatingTo(f)})),Xe=F(I.a).navigateTo,Qe=function(){var e=u()(s.a.mark((function e(t){var n,r,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),Ke&&!t.defaultPrevented&&t.preventDefault(),n=!0,!te){e.next=12;break}return e.next=6,te(t);case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0={};case 9:r=e.t0,i=r.dismissOnCTAClick,n=void 0===i||i;case 12:if(!G||!n){e.next=15;break}return e.next=15,Ye();case 15:Ke&&Xe(f);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ze=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(C.d)(Me);case 2:if(t=e.sent,!(n=t.value)){e.next=10;break}if((r=new Date(n)).setSeconds(r.getSeconds()+parseInt(W,10)),!(r<new Date)){e.next=10;break}return e.next=10,Object(C.c)(Me);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(!$e&&G&&(void 0===xe||xe))return null;var Je=!$e&&Ae?"is-closed":"is-open",et=Object(P.d)(H),tt=Object(P.c)(H),nt=Object(P.a)(H),rt=Object(P.b)({format:H,hasErrorOrWarning:"win-error"===le||"win-warning"===le,hasSmallImageSVG:!!ce,hasWinImageSVG:!!ue});return e.createElement(N.a,{id:U,className:h()(l,(n={},o()(n,"googlesitekit-publisher-win--".concat(H),H),o()(n,"googlesitekit-publisher-win--".concat(le),le),o()(n,"googlesitekit-publisher-win--".concat(Je),Je),o()(n,"googlesitekit-publisher-win--rounded",Ee),n)),secondaryPane:je,ref:He},Z&&e.createElement(R.a,{module:J,moduleName:ee}),ce&&e.createElement(S.a,{size:1,className:"googlesitekit-publisher-win__small-media"},e.createElement(ce,null)),e.createElement(S.a,i()({},rt,nt,{className:"googlesitekit-publisher-win__content"}),e.createElement(T.a,{title:se,badgeLabel:r,smallWinImageSVGHeight:he,smallWinImageSVGWidth:me,winImageFormat:H,WinImageSVG:!qe&&ge?ue:void 0}),e.createElement(B.a,{description:p,learnMoreURL:$,learnMoreLabel:Y,learnMoreTarget:Q,learnMoreDescription:K,onLearnMoreClick:ie}),a,e.createElement(D.a,{ctaLink:f,ctaLabel:d,ctaComponent:Se,ctaTarget:m,ctaCallback:Qe,dismissLabel:G?k:void 0,dismissCallback:Ge}),ke&&e.createElement("div",{className:"googlesitekit-publisher-win__footer"},ke)),ue&&(qe||!ge)&&e.createElement(S.a,i()({},et,tt,{alignBottom:"larger"===H,className:"googlesitekit-publisher-win__image"}),e.createElement("div",{className:"googlesitekit-publisher-win__image-".concat(H)},e.createElement(ue,{style:{maxWidth:be,maxHeight:Oe}}))),e.createElement(x.a,{type:le}))}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(M.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))},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return a})),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.",i="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',o=3600,c=86400,s=604800},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),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(13);var r=n(2),i="missing_required_scopes",a="insufficientPermissions",o="forbidden";function c(e){return(null==e?void 0:e.code)===i}function s(e){var t;return[a,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}},,,,,,function(e,t,n){"use strict";(function(e){var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(12),s=n.n(c),l=n(28);function PreviewBlock(t){var n,r,a=t.className,o=t.width,c=t.height,u=t.shape,d=t.padding,g=t.smallWidth,f=t.smallHeight,m=t.tabletWidth,p=t.tabletHeight,h=t.desktopWidth,v=t.desktopHeight,b=Object(l.e)(),_={width:(n={},i()(n,l.b,g),i()(n,l.c,m),i()(n,l.a,h),i()(n,l.d,h),n),height:(r={},i()(r,l.b,f),i()(r,l.c,p),i()(r,l.a,v),i()(r,l.d,h),r)};return e.createElement("div",{className:s()("googlesitekit-preview-block",a,{"googlesitekit-preview-block--padding":d}),style:{width:_.width[b]||o,height:_.height[b]||c}},e.createElement("div",{className:s()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===u})}))}PreviewBlock.propTypes={className:o.a.string,width:o.a.string,height:o.a.string,shape:o.a.string,padding:o.a.bool,smallWidth:o.a.string,smallHeight:o.a.string,tabletWidth:o.a.string,tabletHeight:o.a.string,desktopWidth:o.a.string,desktopHeight:o.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(17),i=n.n(r),a=n(11),o=n.n(a),c=n(44),s=n(54),l=function(e){o()(Object(s.a)(e),c.e);var t=e.split("-"),n=i()(t,3),r=n[0],a=n[1],l=n[2];return new Date(r,a-1,l)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(45),i=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))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return c}));var r=n(20),i=n(19),a=r.m,o=r.k;function c(){var e=Object(i.a)();return e===r.m||e===r.n?a:e===r.k||e===r.l?o:null}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r="modules/search-console",i=1},,function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return _}));var r=n(6),i=n.n(r),a=n(1);function o(){return(o=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 c=a.createElement("path",{d:"M10 15.27L16.18 19l-1.64-7.03L20 7.24l-7.19-.61L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19 10 15.27z"});var s=function SvgInfoIcon(e){return a.createElement("svg",o({viewBox:"0 0 20 20",fill:"currentColor"},e),c)};function l(){return(l=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 u=a.createElement("path",{d:"M0 4h2v7H0zm0-4h2v2H0z",fill:"currentColor",fillRule:"evenodd"});var d,g=function SvgSuggestionIcon(e){return a.createElement("svg",l({viewBox:"0 0 2 11"},e),u)},f=n(160),m=n(105),p="warning",h="info",v="suggestion",b=(d={},i()(d,h,s),i()(d,p,f.a),i()(d,v,g),d),_=function(e){return b[e]||m.a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(35);function i(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return g})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return p})),n.d(t,"j",(function(){return h}));var r=n(11),i=n.n(r),a=n(13),o=n(9),c=n(8);function s(e){return e===o.a||Object(c.s)(e)}function l(e){return"string"==typeof e&&/^\d+$/.test(e)}function u(e){return e===o.n||l(e)}function d(e){return"string"==typeof e&&/^\d+$/.test(e)}function g(e){return e===o.t||d(e)}function f(e){return"string"==typeof e&&/^G-[a-zA-Z0-9]+$/.test(e)}function m(e){return"string"==typeof e&&/^(G|GT|AW)-[a-zA-Z0-9]+$/.test(e)}function p(e){return"string"==typeof e&&/^AW-[0-9]+$/.test(e)}function h(e){var t=["displayName","description","membershipDurationDays","eventTrigger","exclusionDurationMode","filterClauses"];i()(Object(a.isPlainObject)(e),"Audience must be an object."),Object.keys(e).forEach((function(e){i()(t.includes(e),'Audience object must contain only valid keys. Invalid key: "'.concat(e,'"'))})),["displayName","description","membershipDurationDays","filterClauses"].forEach((function(t){i()(e[t],'Audience object must contain required keys. Missing key: "'.concat(t,'"'))})),i()(Object(a.isArray)(e.filterClauses),"filterClauses must be an array with AudienceFilterClause objects.")}n.d(t,"a",(function(){return c.s}))},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(44),i=n(11),a=n.n(i),o=n(45),c=function(e){a()(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(53),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(54);var g=n(2);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}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i=Object(r.createContext)(""),a=(i.Consumer,i.Provider);t.b=i},,,,,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 i})),n.d(t,"CONTEXT_MAIN_DASHBOARD_CONTENT",(function(){return a})),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",i="mainDashboardTraffic",a="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:i,CONTEXT_MAIN_DASHBOARD_CONTENT:a,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}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={EXTERNAL:"external",INTERNAL:"internal"}},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return w})),n.d(t,"c",(function(){return C})),n.d(t,"b",(function(){return A}));var r=n(17),i=n.n(r),a=n(30),o=n.n(a),c=n(6),s=n.n(c),l=n(22),u=n.n(l),d=n(13),g=n(69),f=n.n(g),m=n(2);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 v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=O(e,t),r=n.formatUnit,i=n.formatDecimal;try{return r()}catch(e){return i()}},b=function(e){var t=_(e),n=t.hours,r=t.minutes,i=t.seconds;return i=("0"+i).slice(-2),r=("0"+r).slice(-2),"00"===(n=("0"+n).slice(-2))?"".concat(r,":").concat(i):"".concat(n,":").concat(r,":").concat(i)},_=function(e){return e=parseInt(e,10),Number.isNaN(e)&&(e=0),{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_(e),r=n.hours,i=n.minutes,a=n.seconds;return{hours:r,minutes:i,seconds:a,formatUnit:function(){var n=t.unitDisplay,o=h(h({unitDisplay:void 0===n?"short":n},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?w(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?w(a,h(h({},o),{},{unit:"second"})):"",i?w(i,h(h({},o),{},{unit:"minute"})):"",r?w(r,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 n=Object(m.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit. Object(m.__)("%dm","google-site-kit"),i),o=Object(m.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit. Object(m.__)("%dh","google-site-kit"),r);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:"",i?n:"",r?o:"").trim()}}},y=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},E=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"),w(y(e),e%10==0?{}:t)):1e4<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands. Object(m.__)("%sK","google-site-kit"),w(y(e))):1e3<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands. Object(m.__)("%sK","google-site-kit"),w(y(e),e%10==0?{}:t)):w(e,{signDisplay:"never",maximumFractionDigits:1})};function k(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 j(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=k(t),r=n.style,i=void 0===r?"metric":r;return"metric"===i?E(e):"duration"===i?v(e,n):"durationISO"===i?b(e):w(e,n)}var S=f()(console.warn),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?A():n,a=u()(t,["locale"]);try{return new Intl.NumberFormat(r,a).format(e)}catch(t){S("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,g=Object.entries(a);d<g.length;d++){var f=i()(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)}},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?A():n,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:a,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)},A=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(24))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(30),i=n.n(r),a=n(78),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(e,t)}};function c(e){var t,n="object"===i()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c}));var r=n(108);function i(e){try{return new URL(e).pathname}catch(e){}return null}function a(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),i=e.replace(n.origin,"");if(i.length<t)return i;var a=i.length-Math.floor(t)+1;return"…"+i.substr(a)}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(108),o=n(2),c=n(8);function ErrorText(t){var n=t.message,r=t.reconnectURL,i=t.noPrefix;if(!n)return null;var s=n;void 0!==i&&i||(s=Object(o.sprintf)( /* translators: %s: Error message */ Object(o.__)("Error: %s","google-site-kit"),n)),r&&Object(a.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.y)(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:i.a.string.isRequired,reconnectURL:i.a.string,noPrefix:i.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(142),i=n.n(r)()(e)}).call(this,n(24))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(12),o=n.n(a);function ChangeArrow(t){var n=t.direction,r=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:i,height:a,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:i.a.string,invertColor:i.a.bool,width:i.a.number,height:i.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var r=n(4),i=n.n(r),a=n(18),o=n(87),c=i.a.useSelect;function s(t){var n=t.moduleName,r=t.FallbackComponent,i=t.IncompleteComponent;return function(t){function WhenActiveComponent(o){var s=c((function(e){return e(a.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=i||l;return u&&e.createElement(u,o)}return e.createElement(t,o)}return WhenActiveComponent.displayName="When".concat(Object(o.c)(n),"Active"),(t.displayName||t.name)&&(WhenActiveComponent.displayName+="(".concat(t.displayName||t.name,")")),WhenActiveComponent}}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return IconWrapper}));var r=n(0),i=n.n(r);function IconWrapper(t){var n=t.children,r=t.marginLeft,i=t.marginRight;return e.createElement("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:r,marginRight:i}},n)}IconWrapper.propTypes={children:i.a.node.isRequired,marginLeft:i.a.number,marginRight:i.a.number}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return s}));var r="key-metrics-setup-cta-widget",i="googlesitekit-key-metrics-selection-panel-opened",a="key-metrics-selection-form",o="key-metrics-selected",c=2,s=4},,,function(e,t,n){"use strict";var r=n(17),i=n.n(r),a=n(234),o=n(0),c=n.n(o),s=n(1),l=n(118);function Portal(e){var t=e.children,n=e.slug,r=Object(s.useState)(document.createElement("div")),o=i()(r,1)[0];return Object(a.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},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}));var r=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function a(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(30),i=n.n(r),a=n(86),o=n.n(a),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var a=t[r];a&&"object"===i()(a)&&!Array.isArray(a)&&(a=e(a)),n[r]=a})),n}(e)))}},function(e,t,n){"use strict";(function(e){n(49),n(50)}).call(this,n(24))},function(e,t,n){"use strict";function r(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function i(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,i,a];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=function(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]},i=function(e){var t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(216),i=n(79),a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var a=n.invertColor,o=void 0!==a&&a;return Object(r.a)(e.createElement(i.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,n(3))},function(e,t,n){"use strict";function r(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var r=n(6),i=n.n(r),a=n(13),o=n(99),c=n(100);function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};function d(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=l(l({},u),t);i.referenceSiteURL&&(i.referenceSiteURL=i.referenceSiteURL.toString().replace(/\/+$/,""));var s=Object(o.a)(i,n),d=Object(c.a)(i,n,s,r),g={},f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=JSON.stringify(t);g[r]||(g[r]=Object(a.once)(d)),g[r].apply(g,t)};return{enableTracking:function(){i.trackingEnabled=!0},disableTracking:function(){i.trackingEnabled=!1},initializeSnippet:s,isTrackingEnabled:function(){return!!i.trackingEnabled},trackEvent:d,trackEventOnce:f}}}).call(this,n(24))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(59),i=n(35),a=n(38);function o(t,n){var o,c=Object(r.a)(n),s=t.activeModules,l=t.referenceSiteURL,u=t.userIDHash,d=t.userRoles,g=void 0===d?[]:d,f=t.isAuthenticated,m=t.pluginVersion;return function(){var n=e.document;if(void 0===o&&(o=!!n.querySelector("script[".concat(i.b,"]"))),!o){o=!0;var r=(null==g?void 0:g.length)?g.join(","):"";c("js",new Date),c("config",t.trackingID,{groups:"site_kit",send_page_view:t.isSiteKitScreen,dimension1:l,dimension2:r,dimension3:u,dimension4:m||"",dimension5:Array.from(a.a).join(","),dimension6:s.join(","),dimension7:f?"1":"0"}),c("config",t.trackingID_GA4,{groups:"site_kit",send_page_view:t.isSiteKitScreen,domain:l,plugin_version:m||"",enabled_features:Array.from(a.a).join(","),active_modules:s.join(","),authenticated:f?"1":"0",user_properties:{user_roles:r,user_identifier:u}});var d=n.createElement("script");return d.setAttribute(i.b,""),d.async=!0,d.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID_GA4,"&l=").concat(i.a),n.head.appendChild(d),{scriptTagSrc:"https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID_GA4,"&l=").concat(i.a)}}}}}).call(this,n(24))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(5),i=n.n(r),a=n(6),o=n.n(a),c=n(16),s=n.n(c),l=n(59);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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n,r){var a=Object(l.a)(t);return function(){var t=s()(i.a.mark((function t(o,c,s,l){var u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.trackingEnabled){t.next=3;break}return t.abrupt("return");case 3:return n(),u={send_to:"site_kit",event_category:o,event_label:s,value:l},t.abrupt("return",new Promise((function(e){var t,n,i=setTimeout((function(){r.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),e()}),1e3),s=function(){clearTimeout(i),e()};a("event",c,d(d({},u),{},{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,i){return t.apply(this,arguments)}}()}},function(e,t,n){"use strict";(function(e){var r=n(21),i=n.n(r),a=n(22),o=n.n(a),c=n(12),s=n.n(c),l=n(0),u=n.n(l),d=n(1),g=Object(d.forwardRef)((function(t,n){var r=t.label,a=t.className,c=t.hasLeftSpacing,l=void 0!==c&&c,u=o()(t,["label","className","hasLeftSpacing"]);return e.createElement("span",i()({ref:n},u,{className:s()("googlesitekit-badge",a,{"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))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o}));function r(e){var t=e.format,n=void 0===t?"small":t,r=e.hasErrorOrWarning,i=e.hasSmallImageSVG,o=e.hasWinImageSVG,c={smSize:4,mdSize:8,lgSize:12},s=a(n);return Object.keys(c).forEach((function(e){var t=c[e];r&&(t-=1),i&&(t-=1),o&&0<t-s[e]&&(t-=s[e]),c[e]=t})),c}var i=function(e){switch(e){case"small":return{};case"larger":return{smOrder:2,mdOrder:2,lgOrder:1};default:return{smOrder:2,mdOrder:1}}},a=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}}}},function(e,t,n){"use strict";(function(e){var r=n(21),i=n.n(r),a=n(22),o=n.n(a),c=n(0),s=n.n(c),l=n(12),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,a=o()(t,["className","children"]);return r?e.createElement("span",i()({},a,{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))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(12),o=n.n(a),c=n(10),s=n(23);function CTA(t){var n=t.title,r=t.headerText,i=t.headerContent,a=t.description,l=t.ctaLink,u=t.ctaLabel,d=t.ctaLinkExternal,g=t.ctaType,f=t.error,m=t.onClick,p=t["aria-label"],h=t.children;return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":f})},(r||i)&&e.createElement("div",{className:"googlesitekit-cta__header"},r&&e.createElement("h2",{className:"googlesitekit-cta__header_text"},r),i),e.createElement("div",{className:"googlesitekit-cta__body"},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),u&&"button"===g&&e.createElement(c.Button,{"aria-label":p,href:l,onClick:m},u),u&&"link"===g&&e.createElement(s.a,{href:l,onClick:m,"aria-label":p,external:d,hideExternalIndicator:d,arrow:!0},u),h))}CTA.propTypes={title:i.a.string.isRequired,headerText:i.a.string,description:i.a.oneOfType([i.a.string,i.a.node]),ctaLink:i.a.string,ctaLinkExternal:i.a.bool,ctaLabel:i.a.string,ctaType:i.a.string,"aria-label":i.a.string,error:i.a.bool,onClick:i.a.func,children:i.a.node,headerContent:i.a.node},CTA.defaultProps={title:"",headerText:"",headerContent:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:function(){}},t.a=CTA}).call(this,n(3))},function(e,t,n){"use strict";function Null(){return null}n.d(t,"a",(function(){return Null}))},function(e,t,n){"use strict";var r=n(126);n.d(t,"a",(function(){return r.a}));var i=n(127);n.d(t,"c",(function(){return i.a}));var a=n(128);n.d(t,"b",(function(){return a.a}))},function(e,t,n){"use strict";(function(e,r){n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return TourTooltips}));var i=n(6),a=n.n(i),o=n(88),c=n(27),s=n(0),l=n.n(s),u=n(2),d=n(4),g=n.n(d),f=n(26),m=n(7),p=n(33),h=n(122),v=n(19);function b(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 _=g.a.useSelect,O=g.a.useDispatch,y=g.a.useRegistry,E={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},k={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",C="feature_tooltip_return",A="feature_tooltip_dismiss",N="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,i=t.tourID,s=t.gaEventCategory,l=t.callback,u="".concat(i,"-step"),d="".concat(i,"-run"),g=O(f.b).setValue,T=O(m.a).dismissTour,D=y(),x=Object(v.a)(),R=_((function(e){return e(f.b).getValue(u)})),M=_((function(e){return e(f.b).getValue(d)&&!1===e(m.a).isTourDismissed(i)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(i)),g(d,!0)}));var P=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({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,i=e.size,a=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,A,l):n===c.a.NEXT&&a===c.d.FINISHED&&o===c.b.TOUR_END&&i===l&&Object(p.b)(u,N,l),r===c.c.COMPLETE&&a!==c.d.FINISHED&&(n===c.a.PREV&&Object(p.b)(u,C,l),n===c.a.NEXT&&Object(p.b)(u,w,l))}(t);var n=t.action,r=t.index,a=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(a),v=f&&d===c.b.STEP_AFTER,b=h||v;if(c.b.STEP_BEFORE===d){var _,O,y=o.target;"string"==typeof o.target&&(y=e.document.querySelector(o.target)),null===(_=y)||void 0===_||null===(O=_.scrollIntoView)||void 0===O||O.call(_,{block:"center"})}m?function(e,t){g(u,e+(t===c.a.PREV?-1:1))}(r,n):b&&(e.document.body.classList.remove("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(i)),T(i)),l&&l(t,D)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:j,locale:k,run:M,showProgress:!0,stepIndex:R,steps:P,styles:E,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(24),n(3))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(434),i=function(e,t,n){Object(r.a)((function(n){return e.includes(n.keyCode)&&t.current.contains(n.target)}),n)}},function(e,t,n){"use strict";var r=n(1),i=n(38),a=Object(r.createContext)(i.a);t.a=a},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c}));var r=n(28),i=n(117);function a(t,n){var r=document.querySelector(t);if(!r)return 0;var i=r.getBoundingClientRect().top,a=o(n);return i+e.scrollY-a}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,a=document.querySelector(".googlesitekit-header");return n=!!a&&"sticky"===e.getComputedStyle(a).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(i.a)(n))<0?0:n}}).call(this,n(24))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return _}));var r=n(22),i=n.n(r),a=n(6),o=n.n(a),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,i,a,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(i=e.sent,a=i.cacheHit,o=i.value,!a){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",a);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)}))},a=(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:a,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,a=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=a.snapshot,c=(o.error,i()(o,["error"]));return c;default:return e}}}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(v(e).map((function(e){return e.getActions().createSnapshot()})))},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(v(e).map((function(e){return e.getActions().restoreSnapshot()})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o}));var r="editing-user-role-select-slug-key",i=[],a="dashboardSharingDialogOpen",o="resetSharingDialogOpen"},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e),a,o)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),i=function(e){return Object(r.isFinite)(e)?e:0}},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY",(function(){return r})),n.d(t,"AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY",(function(){return i})),n.d(t,"AREA_MAIN_DASHBOARD_CONTENT_PRIMARY",(function(){return a})),n.d(t,"AREA_MAIN_DASHBOARD_SPEED_PRIMARY",(function(){return o})),n.d(t,"AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY",(function(){return c})),n.d(t,"AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY",(function(){return s})),n.d(t,"AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY",(function(){return l})),n.d(t,"AREA_ENTITY_DASHBOARD_SPEED_PRIMARY",(function(){return u})),n.d(t,"AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY",(function(){return d}));var r="mainDashboardKeyMetricsPrimary",i="mainDashboardTrafficPrimary",a="mainDashboardContentPrimary",o="mainDashboardSpeedPrimary",c="mainDashboardMonetizationPrimary",s="entityDashboardTrafficPrimary",l="entityDashboardContentPrimary",u="entityDashboardSpeedPrimary",d="entityDashboardMonetizationPrimary";t.default={AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:r,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:i,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:a,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:o,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:c,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:s,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:l,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:u,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:d}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(21),i=n.n(r),a=n(156),o=n.n(a),c=n(12),s=n.n(c),l=n(0),u=n.n(l),d=n(10),g=n(157),f=n(153);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):[],v=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",i()({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(a.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},h.map((function(t){return e.createElement("li",{key:"indicator-".concat(t),className:v(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(d.Button,i()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),m.cta,l.title&&e.createElement(d.Button,i()({className:"googlesitekit-tooltip-button",text:!0},l),l.title))),e.createElement(d.Button,i()({className:"googlesitekit-tooltip-close",text:!0,hideTooltipTitle:!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))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 43 44"},e),a)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotice}));var r=n(0),i=n.n(r),a=n(1),o=n(2),c=n(4),s=n.n(c),l=n(10),u=n(46),d=n(77),g=s.a.useSelect,f=s.a.useDispatch;function ErrorNotice(t){var n,r=t.error,i=t.storeName,c=t.message,s=void 0===c?r.message:c,m=t.noPrefix,p=void 0!==m&&m,h=f(),v=g((function(e){return i?e(i).getSelectorDataForError(r):null})),b=Object(a.useCallback)((function(){h(v.storeName).invalidateResolution(v.name,v.args)}),[h,v]);if(!r||Object(u.f)(r))return null;var _=Object(u.d)(r,v);return e.createElement(a.Fragment,null,e.createElement(d.a,{message:s,reconnectURL:null===(n=r.data)||void 0===n?void 0:n.reconnectURL,noPrefix:p}),_&&e.createElement(l.Button,{className:"googlesitekit-error-notice__retry-button",onClick:b},Object(o.__)("Retry","google-site-kit")))}ErrorNotice.propTypes={error:i.a.shape({message:i.a.string}),storeName:i.a.string,message:i.a.string,noPrefix:i.a.bool}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(12),o=n.n(a),c=n(212),s=n(48),l=n(2),u=n(10),d=n(116);function ModalDialog(t){var n=t.className,r=void 0===n?"":n,i=t.dialogActive,a=void 0!==i&&i,g=t.handleDialog,f=void 0===g?null:g,m=t.title,p=void 0===m?null:m,h=t.provides,v=t.handleConfirm,b=t.subtitle,_=t.confirmButton,O=void 0===_?null:_,y=t.dependentModules,E=t.danger,k=void 0!==E&&E,j=t.inProgress,S=void 0!==j&&j,w=t.small,C=void 0!==w&&w,A=t.medium,N=void 0!==A&&A,T=Object(c.a)(ModalDialog),D="googlesitekit-dialog-description-".concat(T),x=!(!h||!h.length);return e.createElement(u.Dialog,{open:a,"aria-describedby":x?D:void 0,tabIndex:"-1",className:o()(r,{"googlesitekit-dialog-sm":C,"googlesitekit-dialog-md":N})},e.createElement(u.DialogTitle,null,k&&e.createElement(d.a,{width:28,height:28}),p),b?e.createElement("p",{className:"mdc-dialog__lead"},b):[],e.createElement(u.DialogContent,null,x&&e.createElement("section",{id:D,className:"mdc-dialog__provides"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},h.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),y&&e.createElement("p",{className:"mdc-dialog__dependencies"},Object(s.a)(Object(l.sprintf)( /* translators: %s is replaced with the dependent modules. */ Object(l.__)("<strong>Note:</strong> %s","google-site-kit"),y),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",tertiary:!0,onClick:f,disabled:S},Object(l.__)("Cancel","google-site-kit")),e.createElement(u.SpinnerButton,{onClick:v,danger:k,disabled:S,isSaving:S},O||Object(l.__)("Disconnect","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:i.a.string,dialogActive:i.a.bool,handleDialog:i.a.func,handleConfirm:i.a.func.isRequired,title:i.a.string,confirmButton:i.a.string,danger:i.a.bool,small:i.a.bool,medium:i.a.bool},t.a=ModalDialog}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(21),i=n.n(r),a=n(6),o=n.n(a),c=n(22),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,a=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,v=t.smStart,b=t.smOrder,_=t.mdSize,O=t.mdStart,y=t.mdOrder,E=t.lgSize,k=t.lgStart,j=t.lgOrder,S=t.size,w=t.children,C=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",i()({},C,{className:g()(r,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":a,"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(E,"-desktop"),12>=E&&E>0),o()(n,"mdc-layout-grid__cell--start-".concat(k,"-desktop"),12>=k&&k>0),o()(n,"mdc-layout-grid__cell--order-".concat(j,"-desktop"),12>=j&&j>0),o()(n,"mdc-layout-grid__cell--span-".concat(_,"-tablet"),8>=_&&_>0),o()(n,"mdc-layout-grid__cell--start-".concat(O,"-tablet"),8>=O&&O>0),o()(n,"mdc-layout-grid__cell--order-".concat(y,"-tablet"),8>=y&&y>0),o()(n,"mdc-layout-grid__cell--span-".concat(h,"-phone"),4>=h&&h>0),o()(n,"mdc-layout-grid__cell--start-".concat(v,"-phone"),4>=v&&v>0),o()(n,"mdc-layout-grid__cell--order-".concat(b,"-phone"),4>=b&&b>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))},function(e,t,n){"use strict";(function(e){var r=n(21),i=n.n(r),a=n(22),o=n.n(a),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(1),g=Object(d.forwardRef)((function(t,n){var r=t.className,a=t.children,c=o()(t,["className","children"]);return e.createElement("div",i()({ref:n,className:u()("mdc-layout-grid__inner",r)},c),a)}));g.displayName="Row",g.propTypes={className:s.a.string,children:s.a.node},g.defaultProps={className:""},t.a=g}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(21),i=n.n(r),a=n(22),o=n.n(a),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(1),g=Object(d.forwardRef)((function(t,n){var r=t.alignLeft,a=t.fill,c=t.className,s=t.children,l=t.collapsed,d=o()(t,["alignLeft","fill","className","children","collapsed"]);return e.createElement("div",i()({className:u()("mdc-layout-grid",c,{"mdc-layout-grid--align-left":r,"mdc-layout-grid--collapsed":l,"mdc-layout-grid--fill":a})},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))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNotice}));var r=n(12),i=n.n(r),a=n(0),o=n.n(a),c=n(2),s=n(4),l=n.n(s),u=n(175),d=n(190),g=n(58),f=n(7),m=n(10),p=l.a.useSelect,h=l.a.useDispatch;function SettingsNotice(t){var n=t.className,r=t.children,a=t.type,o=t.dismiss,s=void 0===o?"":o,l=t.Icon,v=void 0===l?Object(g.d)(a):l,b=t.OuterCTA,_=h(f.a).dismissItem,O=p((function(e){return s?e(f.a).isItemDismissed(s):void 0}));if(s&&O)return null;var y=r?d.a:u.a;return e.createElement("div",{className:i()(n,"googlesitekit-settings-notice","googlesitekit-settings-notice--".concat(a),{"googlesitekit-settings-notice--single-row":!r,"googlesitekit-settings-notice--multi-row":r})},e.createElement("div",{className:"googlesitekit-settings-notice__icon"},e.createElement(v,{width:"20",height:"20"})),e.createElement("div",{className:"googlesitekit-settings-notice__body"},e.createElement(y,t)),s&&e.createElement("div",{className:"googlesitekit-settings-notice__button"},e.createElement(m.Button,{onClick:function(){_(s)}},Object(c.__)("OK, Got it!","google-site-kit"))),b&&e.createElement("div",{className:"googlesitekit-settings-notice__button"},e.createElement(b,null)))}SettingsNotice.propTypes={className:o.a.string,children:o.a.node,notice:o.a.node.isRequired,type:o.a.oneOf([g.a,g.c,g.b]),Icon:o.a.elementType,LearnMore:o.a.elementType,CTA:o.a.elementType,OuterCTA:o.a.elementType},SettingsNotice.defaultProps={type:g.a}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("circle",{fill:"currentColor",cx:6.5,cy:6.5,r:6.5}),r.createElement("path",{d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 00.325.79.459.459 0 00.325-.135l3.037-3.038a.459.459 0 000-.65L7.015 3.135a.46.46 0 00-.65.65L8.61 6.039H3.461a.462.462 0 00-.461.46c0 .254.207.462.461.462z",fill:"#FFF"}),".");t.a=function SvgArrow(e){return r.createElement("svg",i({viewBox:"0 0 13 13"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("circle",{fill:"#FFF",cx:6.5,cy:6.5,r:6.5}),r.createElement("path",{d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 00.325.79.459.459 0 00.325-.135l3.037-3.038a.459.459 0 000-.65L7.015 3.135a.46.46 0 00-.65.65L8.61 6.039H3.461a.462.462 0 00-.461.46c0 .254.207.462.461.462z",fill:"currentColor"}),".");t.a=function SvgArrowInverse(e){return r.createElement("svg",i({viewBox:"0 0 13 13"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{d:"M12 20l-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825l5.6 5.6L12 20z"});t.a=function SvgBack(e){return r.createElement("svg",i({viewBox:"0 0 24 24",fill:"currentColor"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{d:"M5 21a1.99 1.99 0 01-1.425-.575A1.99 1.99 0 013 19V5c0-.55.192-1.017.575-1.4.4-.4.875-.6 1.425-.6h7v2H5v14h14v-7h2v7c0 .55-.2 1.025-.6 1.425-.383.383-.85.575-1.4.575H5zm4.7-5.3l-1.4-1.4L17.6 5H14V3h7v7h-2V6.4l-9.3 9.3z"});t.a=function SvgExternal(e){return r.createElement("svg",i({viewBox:"0 0 24 24",fill:"currentColor"},e),a)}},,function(e,t,n){"use strict";var r=n(1),i=Object(r.createContext)(!1);t.a=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"j",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"f",(function(){return g}));var r=1,i=2,a=3,o="enhanced-measurement-activation-banner-tooltip-state",c="enhanced-measurement-activation-banner-dismissed-item",s="_r.explorerCard..selmet",l="_r.explorerCard..seldim",u="_r..dataFilters",d="_r..nav",g="key-metrics-connect-ga4-cta-widget"},function(e,t,n){"use strict";var r=n(129);n.d(t,"c",(function(){return r.a}));var i=n(58);n.d(t,"b",(function(){return i.c})),n.d(t,"a",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s}));var r=n(30),i=n.n(r);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0};return"string"==typeof e?n(e):!("object"!==i()(e)||!t(e))||!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e?n(e):"object"===i()(e)&&t(e)}))}function o(e){var t=e.startDate,n=e.endDate,r=t&&t.match(/^\d{4}-\d{2}-\d{2}$/),i=n&&n.match(/^\d{4}-\d{2}-\d{2}$/);return r&&i}function c(e){var t=function(e){var t=e.hasOwnProperty("fieldName")&&!!e.fieldName,n=e.hasOwnProperty("sortOrder")&&/(ASCENDING|DESCENDING)/i.test(e.sortOrder.toString());return t&&n};return Array.isArray(e)?e.every((function(e){return"object"===i()(e)&&t(e)})):"object"===i()(e)&&t(e)}function s(e){return"string"==typeof e||!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"i",(function(){return c})),n.d(t,"j",(function(){return p})),n.d(t,"g",(function(){return _})),n.d(t,"e",(function(){return O})),n.d(t,"d",(function(){return y})),n.d(t,"f",(function(){return E})),n.d(t,"h",(function(){return k})),n.d(t,"a",(function(){return j.a}));var r=n(2);function i(e){var t,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.keyColumnIndex,c=void 0===o?0:o,s=a.maxSlices,l=a.withOthers,u=void 0!==l&&l,d=a.tooltipCallback,g=e||{},f=g.rows,m=void 0===f?[]:f,p=g.totals,h=void 0===p?[]:p,v="function"==typeof d,b=["Source","Percent"];v&&b.push({type:"string",role:"tooltip",p:{html:!0}});var _=(null==h||null===(t=h[0])||void 0===t||null===(n=t.metricValues)||void 0===n||null===(i=n[c])||void 0===i?void 0:i.value)||0,O=[b],y=m.filter((function(e){return"date_range_0"===e.dimensionValues[1].value})),E=u,k=y.length,j=1;s>0?(E=u&&y.length>s,k=Math.min(y.length,E?s-1:s)):(E=!1,k=y.length);for(var S=function(e){var t=y[e],n=t.metricValues[c].value,r=_>0?n/_:0;j-=r;var i=[t.dimensionValues[0].value,r];if(v){var a=m.find((function(e){var n=e.dimensionValues;return"date_range_1"===n[1].value&&n[0].value===t.dimensionValues[0].value}));i.push(d(t,a,i))}O.push(i)},w=0;w<k;w++)S(w);if(E&&j>0){var C=[Object(r.__)("Others","google-site-kit"),j];v&&C.push(d(null,null,C)),O.push(C)}return O}var a=function(e){var t,n,r,i,a,o,c;if(void 0!==e){var s=((null==e?void 0:e.rows)||[]).filter((function(e){return"date_range_0"===e.dimensionValues[1].value}));return 1===(null==s?void 0:s.length)||(null==s||null===(t=s[0])||void 0===t||null===(n=t.metricValues)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.value)===(null==e||null===(i=e.totals)||void 0===i||null===(a=i[0])||void 0===a||null===(o=a.metricValues)||void 0===o||null===(c=o[0])||void 0===c?void 0:c.value)}},o=n(13);function c(e){var t;if(void 0!==e)return!((null==e?void 0:e.rows)&&(null==e?void 0:e.totals)&&!(null==e||null===(t=e.totals)||void 0===t?void 0:t.every(o.isEmpty)))||!e.totals.some((function(e){return!!e.metricValues&&e.metricValues.some((function(e){return e.value>0}))}))}var s=n(6),l=n.n(s),u=n(22),d=n.n(u),g=n(69);function f(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=n.n(g)()((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.metrics,n=e.dimensions,r=d()(e,["metrics","dimensions"]);return m({metrics:report_normalization_normalizeMetrics(t),dimensions:report_normalization_normalizeDimensions(n)},r)})),report_normalization_normalizeMetrics=function(e){return Object(o.castArray)(e).map((function(e){return"string"==typeof e?{name:e}:e})).filter((function(e){return Object(o.isPlainObject)(e)}))},report_normalization_normalizeDimensions=function(e){return Object(o.castArray)(e).map((function(e){return"string"==typeof e?{name:e}:e})).filter((function(e){return Object(o.isPlainObject)(e)}))},h=n(30),v=n.n(h),b=n(138);function _(e){var t=function(e){return"string"==typeof e&&/^[a-zA-Z0-9_]+$/.test(e)};return"string"==typeof e?e.split(",").every(t):Object(b.c)(e,(function(e){var n=e.hasOwnProperty("name")&&t(e.name);if(!e.hasOwnProperty("expression"))return n;var r="string"==typeof e.expression;return n&&r}),t)}function O(e){return Object(b.c)(e,(function(e){return e.hasOwnProperty("name")&&"string"==typeof e.name}))}function y(e){var t=["string"];return Object.keys(e).every((function(n){if(t.includes(v()(e[n])))return!0;if(Array.isArray(e[n]))return e[n].every((function(e){return t.includes(v()(e))}));if(Object(o.isPlainObject)(e[n])){var r=Object.keys(e[n]);return r.includes("filterType")&&r.includes("value")}return!1}))}function E(e){var t=["string"];return Object.keys(e).every((function(n){if(t.includes(v()(e[n])))return!0;if(Array.isArray(e[n]))return e[n].every((function(e){return t.includes(v()(e))}));if(Object(o.isPlainObject)(e[n])){var r=Object.keys(e[n]);if(r.includes("filterType")&&!["numericFilter","betweenFilter"].includes(e[n].filterType))return!1;if(r.includes("filterType")&&"numericFilter"===e[n].filterType||!r.includes("filterType"))return!(r.includes("value")&&Object(o.isPlainObject)(e[n].value)&&!Object.keys(e[n].value).includes("int64Value"))&&(r.includes("operation")&&r.includes("value"));if(r.includes("filterType")&&"betweenFilter"===e[n].filterType){var i=["fromValue","toValue"].every((function(t){return!(r.includes(t)&&Object(o.isPlainObject)(e[n][t])&&!Object.keys(e[n][t]).includes("int64Value"))}));return r.includes("fromValue")&&r.includes("toValue")&&i}}return!1}))}function k(e){return!!Array.isArray(e)&&e.every((function(e){return!!Object(o.isPlainObject)(e)&&((!e.hasOwnProperty("desc")||"boolean"==typeof e.desc)&&(e.metric?!e.dimension&&"string"==typeof(null===(t=e.metric)||void 0===t?void 0:t.metricName):!!e.dimension&&"string"==typeof(null===(n=e.dimension)||void 0===n?void 0:n.dimensionName)));var t,n}))}var j=n(189)},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(4),a=n.n(i),o=n(41),c=a.a.useDispatch;function s(e,t,n){var i=c(o.a),a=i.setWidgetState,s=i.unsetWidgetState;Object(r.useEffect)((function(){return a(e,t,n),function(){s(e,t,n)}}),[e,t,n,a,s])}},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,i=n(6),a=n.n(i),o=n(41),c=n(188),s=n(176),l=(r={},a()(r,o.c.QUARTER,3),a()(r,o.c.HALF,6),a()(r,o.c.FULL,12),r),u="googlesitekit-hidden",d=[c.a,s.a]},,function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 28 25"},e),a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(20),i=function(e){return r.f.includes(e)}},,,function(e,t,n){"use strict";(function(e){var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(0),s=n.n(c),l=n(1),u=n(23),d=n(8),g=n(19);function HelpMenuLink(t){var n=t.children,r=t.href,a=t.gaEventLabel,c=Object(g.a)(),s=Object(l.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=3;break}return e.next=3,Object(d.B)("".concat(c,"_headerbar_helpmenu"),"click_outgoing_link",a);case 3:case"end":return e.stop()}}),e)}))),[a,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))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 14 14",fill:"none"},e),a)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(21),i=n.n(r),a=n(22),o=n.n(a),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,a=o()(t,["slug","size"]),c=g((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,i()({width:r,height:r},a)):null}ModuleIcon.propTypes={slug:s.a.string.isRequired,size:s.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(3))},,,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}))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return LoadingWrapper}));var r=n(6),i=n.n(r),a=n(22),o=n.n(a),c=n(0),s=n.n(c),l=n(52);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 LoadingWrapper(t){var n=t.loading,r=t.children,i=o()(t,["loading","children"]);return n?e.createElement(l.a,i):r}LoadingWrapper.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){i()(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}({loading:s.a.bool,children:s.a.node},l.a.propTypes)}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GenericErrorHandlerActions}));var r=n(0),i=n.n(r),a=n(2),o=n(23),c=n(165);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(a.__)("Report this problem","google-site-kit")))}GenericErrorHandlerActions.propTypes={message:i.a.string,componentStack:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{d:"M0 0h2v7H0zm0 10h2v2H0z",fill:"currentColor",fillRule:"evenodd"});t.a=function SvgWarningIcon(e){return r.createElement("svg",i({viewBox:"0 0 2 12"},e),a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r,i=n(6),a=n.n(i),o=n(2),c=n(7),s=n(14),l=n(9),u=n(18),d=n(38);function g(e,t){return!t||e(l.m).hasCustomDimensions(this.requiredCustomDimensions)}var f=(r={},a()(r,c.e,{title:Object(o.__)("Top earning pages","google-site-kit"),description:Object(o.__)("Pages that generated the most AdSense revenue","google-site-kit"),infoTooltip:Object(o.__)("Pages that generated the most AdSense revenue","google-site-kit"),displayInList:function(e,t){return!!Object(d.b)("ga4AdSenseIntegration")&&(!(!e(u.a).isModuleConnected("analytics-4")||!e(u.a).isModuleConnected("adsense"))&&(!t||!(!t||!e(l.m).getAdSenseLinked())))}}),a()(r,c.s,{title:Object(o.__)("Top recent trending pages","google-site-kit"),description:Object(o.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),infoTooltip:Object(o.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_date"],displayInList:g}),a()(r,c.k,{title:Object(o.__)("Most popular authors by pageviews","google-site-kit"),description:Object(o.__)("Authors whose posts got the most visits","google-site-kit"),infoTooltip:Object(o.__)("Authors whose posts got the most visits","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_author"],displayInList:g}),a()(r,c.o,{title:Object(o.__)("Top categories by pageviews","google-site-kit"),description:Object(o.__)("Categories that your site visitors viewed the most","google-site-kit"),infoTooltip:Object(o.__)("Categories that your site visitors viewed the most","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_categories"],displayInList:g}),a()(r,c.l,{title:Object(o.__)("Most popular content by pageviews","google-site-kit"),description:Object(o.__)("Pages that brought in the most visitors","google-site-kit"),infoTooltip:Object(o.__)("Pages your visitors read the most","google-site-kit")}),a()(r,c.m,{title:Object(o.__)("Most popular products by pageviews","google-site-kit"),description:Object(o.__)("Products that brought in the most visitors","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_type"],displayInList:function(e){return e(c.a).isKeyMetricActive(c.m)||e(s.c).getProductPostType()}}),a()(r,c.j,{title:Object(o.__)("Pages per visit","google-site-kit"),description:Object(o.__)("Number of pages visitors viewed per session on average","google-site-kit"),infoTooltip:Object(o.__)("Number of pages visitors viewed per session on average","google-site-kit")}),a()(r,c.w,{title:Object(o.__)("Visit length","google-site-kit"),description:Object(o.__)("Average duration of engaged visits","google-site-kit"),infoTooltip:Object(o.__)("Average duration of engaged visits","google-site-kit")}),a()(r,c.v,{title:Object(o.__)("Visits per visitor","google-site-kit"),description:Object(o.__)("Average number of sessions per site visitor","google-site-kit"),infoTooltip:Object(o.__)("Average number of sessions per site visitor","google-site-kit")}),a()(r,c.h,{title:Object(o.__)("Most engaging pages","google-site-kit"),description:Object(o.__)("Pages with the highest engagement rate","google-site-kit"),infoTooltip:Object(o.__)("Pages with the highest engagement rate","google-site-kit")}),a()(r,c.g,{title:Object(o.__)("Least engaging pages","google-site-kit"),description:Object(o.__)("Pages with the highest percentage of visitors that left without engagement with your site","google-site-kit"),infoTooltip:Object(o.__)("Percentage of visitors that left without engagement with your site","google-site-kit")}),a()(r,c.t,{title:Object(o.__)("Top pages by returning visitors","google-site-kit"),description:Object(o.__)("Pages that attracted the most returning visitors","google-site-kit"),infoTooltip:Object(o.__)("Pages that attracted the most returning visitors","google-site-kit")}),a()(r,c.i,{title:Object(o.__)("New visitors","google-site-kit"),description:Object(o.__)("How many new visitors you got and how the overall audience changed","google-site-kit"),infoTooltip:Object(o.__)("Portion of visitors who visited your site for the first time in this timeframe","google-site-kit")}),a()(r,c.n,{title:Object(o.__)("Returning visitors","google-site-kit"),description:Object(o.__)("Portion of people who visited your site more than once","google-site-kit"),infoTooltip:Object(o.__)("Portion of your site’s visitors that returned at least once in this timeframe","google-site-kit")}),a()(r,c.u,{title:Object(o.__)("Top traffic source","google-site-kit"),description:Object(o.__)("Channel which brought in the most visitors to your site","google-site-kit"),infoTooltip:Object(o.__)("Channel (e.g. social, paid, search) that brought in the most visitors to your site","google-site-kit")}),a()(r,c.f,{title:Object(o.__)("Most engaged traffic source","google-site-kit"),description:Object(o.__)("Visitors coming via this channel spent the most time on your site","google-site-kit"),infoTooltip:Object(o.__)("Channel (e.g. social, paid, search) that brought in the most visitors who had a meaningful engagement with your site","google-site-kit")}),a()(r,c.q,{title:Object(o.__)("Top converting traffic source","google-site-kit"),description:Object(o.__)("Channel which brought in the most visits that resulted in conversions","google-site-kit"),infoTooltip:Object(o.__)("Channel (e.g. social, paid, search) that brought in visitors who generated the most conversions","google-site-kit")}),a()(r,c.p,{title:Object(o.__)("Top cities driving traffic","google-site-kit"),description:Object(o.__)("Which cities you get the most visitors from","google-site-kit"),infoTooltip:Object(o.__)("The cities where most of your visitors came from","google-site-kit")}),a()(r,c.r,{title:Object(o.__)("Top countries driving traffic","google-site-kit"),description:Object(o.__)("Which countries you get the most visitors from","google-site-kit"),infoTooltip:Object(o.__)("The countries where most of your visitors came from","google-site-kit")}),a()(r,c.x,{title:Object(o.__)("Top performing keywords","google-site-kit"),description:Object(o.__)("What people searched for before they came to your site","google-site-kit"),infoTooltip:Object(o.__)("The top search queries for your site by highest clickthrough rate","google-site-kit")}),r)},function(e,t,n){"use strict";var r=n(238);n.d(t,"b",(function(){return r.a}));var i=n(173);n.d(t,"c",(function(){return i.a}));var a=n(239);n.d(t,"a",(function(){return a.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t||{},i=n.slug,a=void 0===i?"":i,o=n.name,c=void 0===o?"":o,s=n.owner,l=void 0===s?{}:s;if(!a||!c)return e;var u="",d="";return"analytics-4"===a?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"===a&&(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)}},,function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),a=n(185),o=n.n(a),c=n(0),s=n.n(c),l=n(1),u=n(2),d=n(220),g=n(356),f=n(357),m=n(10);function ReportErrorButton(t){var n=t.message,r=t.componentStack,a=Object(l.useState)(!1),c=i()(a,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))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return FeatureTours}));var i=n(88),a=n(1),o=n(4),c=n.n(o),s=n(7),l=n(19),u=n(107),d=c.a.useSelect,g=c.a.useDispatch;function FeatureTours(){var t=Object(l.a)(),n=g(s.a).triggerTourForView;Object(i.a)((function(){n(t)}));var o=d((function(e){return e(s.a).getCurrentTour()}));return Object(a.useEffect)((function(){if(o){var t=document.getElementById("js-googlesitekit-main-dashboard");if(t){var n=new ResizeObserver((function(){e.dispatchEvent(new Event("resize"))}));return n.observe(t),function(){n.disconnect()}}}}),[o]),o?r.createElement(u.a,{tourID:o.slug,steps:o.steps,gaEventCategory:o.gaEventCategory,callback:o.callback}):null}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(12),o=n.n(a),c=n(1),s=n(15),l=Object(c.forwardRef)((function(t,n){var r=t.id,i=t.className,a=t.children,l=t.secondaryPane;return e.createElement("section",{id:r,className:o()(i,"googlesitekit-publisher-win"),ref:n},e.createElement(s.e,null,e.createElement(s.k,null,a)),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:i.a.string,className:i.a.string,secondaryPane:i.a.node},t.a=l}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerTitle}));var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(12),s=n.n(c),l=n(101);function BannerTitle(t){var n=t.title,r=t.badgeLabel,a=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})),a&&e.createElement("div",{className:s()(i()({},"googlesitekit-publisher-win__image-".concat(c),c))},e.createElement(a,{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))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerActions}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(17),s=n.n(c),l=n(0),u=n.n(l),d=n(236),g=n(1),f=n(4),m=n.n(f),p=n(10),h=n(31),v=m.a.useSelect;function BannerActions(t){var n=t.ctaLink,r=t.ctaLabel,a=t.ctaComponent,c=t.ctaTarget,l=t.ctaCallback,u=t.dismissLabel,f=t.dismissCallback,m=Object(g.useState)(!1),b=s()(m,2),_=b[0],O=b[1],y=Object(d.a)(),E=v((function(e){return!!n&&e(h.a).isNavigatingTo(n)})),k=function(){var e=o()(i.a.mark((function e(){var t,n,r,a=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(O(!0),t=a.length,n=new Array(t),r=0;r<t;r++)n[r]=a[r];return e.next=4,null==l?void 0:l.apply(void 0,n);case 4:y()&&O(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return n||u||a?e.createElement("div",{className:"googlesitekit-publisher-win__actions"},a,r&&e.createElement(p.SpinnerButton,{className:"googlesitekit-notification__cta",href:n,target:c,onClick:k,disabled:_||E,isSaving:_||E},r),u&&e.createElement(p.Button,{tertiary:n||a,onClick:f,disabled:_||E},u)):null}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))},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}},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(13),s=n(1),l=n(2),u=n(4),d=n.n(u),g=n(18),f=n(46),m=n(163),p=n(78),h=n(77),v=n(104),b=n(182),_=n(36);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=d.a.useSelect;function ReportError(t){var n,r=t.moduleSlug,i=t.error,a=Object(_.a)(),o=E((function(e){return e(g.a).getModule(r)})),u=Array.isArray(i)?i:[i],d=function(e){return Object(f.e)(e)?a?(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)},O=Object(c.uniqWith)(u.map((function(e){var t;return y(y({},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})),k=u.some((function(e){return Object(f.e)(e)}));k||1!==O.length?!k&&O.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,O.map((function(t){var n,r=null==i||null===(n=i.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(v.a,{title:n,description:j,error:!0},e.createElement(b.a,{moduleSlug:r,error:i}))}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))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),i=n.n(r),a=n(26),o=i.a.useSelect;function c(e){return o((function(t){return t(a.b).getValue(e)||{isTooltipVisible:!1,rehideAdminMenu:!1,rehideAdminSubMenu:!1}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),i=n(110),a=n(38),o=function(e){var t=Object(r.useContext)(i.a);return Object(a.b)(e,t)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNoticeSingleRow}));var r=n(0),i=n.n(r),a=n(1);function SettingsNoticeSingleRow(t){var n=t.notice,r=t.LearnMore,i=t.CTA;return e.createElement(a.Fragment,null,e.createElement("div",{className:"googlesitekit-settings-notice__text"},n),r&&e.createElement("div",{className:"googlesitekit-settings-notice__learn-more"},e.createElement(r,null)),i&&e.createElement("div",{className:"googlesitekit-settings-notice__cta"},e.createElement(i,null)))}SettingsNoticeSingleRow.propTypes={notice:i.a.node.isRequired,LearnMore:i.a.elementType,CTA:i.a.elementType}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return RecoverableModules}));var r=n(0),i=n.n(r),a=n(2),o=n(4),c=n.n(o),s=n(18),l=n(104),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 i=1===r.length?Object(a.sprintf)( /* translators: %s: Module name */ Object(a.__)("%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(a.sprintf)( /* translators: %s: List of module names */ Object(a.__)("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(a._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(l.a,{title:Object(a.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:i.a.arrayOf(i.a.string).isRequired}}).call(this,n(3))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerIcon}));var r=n(0),i=n.n(r),a=n(116),o=n(148),c=n(15);function BannerIcon(t){var n=t.type;if("win-error"!==n&&"win-warning"!==n)return null;var r="win-warning"===n?e.createElement(a.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:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerLogo}));var r=n(0),i=n.n(r),a=n(15),o=n(123),c=n(154);function BannerLogo(t){var n=t.module,r=t.moduleName;return e.createElement(a.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:i.a.string,moduleName:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerDescription}));var r=n(0),i=n.n(r),a=n(1),o=n(72),c=n(23),s=n(68);function BannerDescription(t){var n=t.description,r=t.learnMoreLabel,i=t.learnMoreURL,l=t.learnMoreTarget,u=t.learnMoreDescription,d=t.onLearnMoreClick;if(!n)return null;var g;return r&&(g=e.createElement(a.Fragment,null,e.createElement(c.a,{onClick:function(e){e.persist(),null==d||d()},href:i,external:l===s.a.EXTERNAL},r),u)),e.createElement("div",{className:"googlesitekit-publisher-win__desc"},Object(a.isValidElement)(n)?e.createElement(a.Fragment,null,n,g&&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:i.a.node,learnMoreURL:i.a.string,learnMoreDescription:i.a.string,learnMoreLabel:i.a.string,learnMoreTarget:i.a.oneOf(Object.values(s.a)),onLearnMoreClick:i.a.func}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportErrorActions}));var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(1),s=n(48),l=n(2),u=n(4),d=n.n(u),g=n(10),f=n(14),m=n(18),p=n(46),h=n(36),v=n(23);function b(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?b(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=d.a.useSelect,y=d.a.useDispatch;function ReportErrorActions(t){var n=t.moduleSlug,r=t.error,i=t.GetHelpLink,a=t.onRetry,o=t.getHelpClassName,u=Object(h.a)(),d=O((function(e){return e(m.a).getModuleStoreName(n)})),b=O((function(e){var t;return"function"==typeof(null===(t=e(d))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(d).getServiceEntityAccessURL():null})),E=Array.isArray(r)?r:[r],k=O((function(e){return E.map((function(t){var n,r=null===(n=e(d))||void 0===n?void 0:n.getSelectorDataForError(t);return _(_({},t),{},{selectorData:r})}))})),j=null==k?void 0:k.filter((function(e){return Object(p.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),S=!!j.length,w=O((function(e){var t=_({},S?j[0]:E[0]);return Object(p.e)(t)&&(t.code="".concat(n,"_insufficient_permissions")),e(f.c).getErrorTroubleshootingLinkURL(t)})),C=y(),A=E.some((function(e){return Object(p.e)(e)})),N=Object(c.useCallback)((function(){j.forEach((function(e){var t=e.selectorData;C(t.storeName).invalidateResolution(t.name,t.args)})),null==a||a()}),[C,j,a]),T=b&&A&&!u;return e.createElement("div",{className:"googlesitekit-report-error-actions"},T&&e.createElement(g.Button,{href:b,target:"_blank"},Object(l.__)("Request access","google-site-kit")),S?e.createElement(c.Fragment,null,e.createElement(g.Button,{onClick:N},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(v.a,{href:w,external:!0,hideExternalIndicator:!0},Object(l.__)("Get help","google-site-kit"))}))):e.createElement("div",{className:o},"function"==typeof i?e.createElement(i,{linkURL:w}):e.createElement(v.a,{href:w,external:!0,hideExternalIndicator:!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,GetHelpLink:o.a.elementType,onRetry:o.a.func,getHelpClassName:o.a.string}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(135),i=(r.a.Consumer,r.a.Provider);t.a=i},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return SurveyViewTrigger}));var r=n(1),i=n(0),a=n.n(i),o=n(4),c=n.n(o),s=n(14),l=n(7),u=c.a.useSelect,d=c.a.useDispatch;function SurveyViewTrigger(e){var t=e.triggerID,n=e.ttl,i=void 0===n?0:n,a=u((function(e){return e(s.c).isUsingProxy()})),o=d(l.a).triggerSurvey;return Object(r.useEffect)((function(){a&&o(t,{ttl:i})}),[a,t,i,o]),null}SurveyViewTrigger.propTypes={triggerID:a.a.string.isRequired,ttl:a.a.number}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var r=n(0),i=n.n(r),a=n(2),o=n(4),c=n.n(o),s=n(18),l=n(104),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(a.sprintf)( /* translators: %s: Module name */ Object(a.__)("%s Gathering Data","google-site-kit"),null==r?void 0:r.name),description:Object(a.sprintf)( /* translators: %s: Module name */ Object(a.__)("%s data is not yet available, please check back later","google-site-kit"),null==r?void 0:r.name)})}ReportZero.propTypes={moduleSlug:i.a.string.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(29),i=n.n(r),a=n(12),o=n.n(a),c=n(13),s=n(2),l=n(70),u=n(8),d=n(17),g=n.n(d),f=n(11),m=n.n(f);function p(e,t){var n=t.dateRangeLength;m()(Array.isArray(e),"report must be an array to partition."),m()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=function(t){return e.filter((function(e){return g()(e.dimensionValues,2)[1].value===t}))},i=-1*n;return{currentRange:r("date_range_0").slice(i),compareRange:r("date_range_1").slice(2*i,i)}}var h=n(170);function v(e,t){var n=[];return e.forEach((function(e){if(e.metricValues){var r=e.metricValues[t].value,i=e.dimensionValues[0].value,a=Object(h.a)(i);n.push([a,r])}})),n}function b(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[Object(s.__)("Users","google-site-kit"),Object(s.__)("Sessions","google-site-kit"),Object(s.__)("Engagement Rate","google-site-kit"),Object(s.__)("Session Duration","google-site-kit")],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[function(e){return parseFloat(e).toLocaleString()},function(e){return parseFloat(e).toLocaleString()},function(e){return Object(u.w)(e/100,{style:"percent",signDisplay:"never",maximumFractionDigits:2})},function(e){return Object(u.w)(e,"s")}],d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[c.identity,c.identity,function(e){return 100*e},c.identity],g=i()((null==e?void 0:e.rows)||[]),f=g.length;if(2*n>f){for(var m=new Date,h=0;n>h;h++){var b=(m.getMonth()+1).toString(),_=m.getDate().toString(),O=m.getFullYear().toString()+(2>b.length?"0":"")+b+(2>_.length?"0":"")+_;if(h>f){var y=[{dimensionValues:[{value:O},{value:"date_range_0"}],metricValues:[{value:0},{value:0}]},{dimensionValues:[{value:O},{value:"date_range_1"}],metricValues:[{value:0},{value:0}]}];g.unshift.apply(g,y)}m.setDate(m.getDate()-1)}g.push({dimensionValues:[{value:"0"},{value:"date_range_0"}]},{dimensionValues:[{value:"0"},{value:"date_range_1"}]})}var E=r[t]===Object(s.__)("Session Duration","google-site-kit"),k=E?"timeofday":"number",j=[[{type:"date",label:Object(s.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:k,label:r[t]},{type:k,label:Object(s.__)("Previous period","google-site-kit")}]],S=p(g,{dateRangeLength:n}),w=S.compareRange,C=S.currentRange,A=v(C,t),N=v(w,t),T=Object(l.b)(),D={weekday:"short",month:"short",day:"numeric"};return A.forEach((function(e,n){if(e[0]&&e[1]&&N[n]){var i=d[t],c=i(e[1]),l=i(N[n][1]),g=parseFloat(l),f=Object(u.e)(c,g),m=Object(u.k)(f),p=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(T,D),N[n][0].toLocaleDateString(T,D)),h=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"),r[t],a[t](c),m,Object(u.w)(Math.abs(f),"%"));j.push([e[0],'<div class="'.concat(o()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":f>0,"googlesitekit-visualization-tooltip--down":f<0}),'">\n\t\t\t\t<p>').concat(p,"</p>\n\t\t\t\t<p>").concat(h,"</p>\n\t\t\t</div>"),E?Object(u.g)(c):c,E?Object(u.g)(l):l])}})),j}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNoticeMultiRow}));var r=n(0),i=n.n(r),a=n(1);function SettingsNoticeMultiRow(t){var n=t.notice,r=t.LearnMore,i=t.CTA,o=t.children;return e.createElement(a.Fragment,null,e.createElement("div",{className:"googlesitekit-settings-notice__text"},n),e.createElement("div",{className:"googlesitekit-settings-notice__inner-row"},e.createElement("div",{className:"googlesitekit-settings-notice__children-container"},o),r&&e.createElement("div",{className:"googlesitekit-settings-notice__learn-more"},e.createElement(r,null)),i&&e.createElement("div",{className:"googlesitekit-settings-notice__cta"},e.createElement(i,null))))}SettingsNoticeMultiRow.propTypes={children:i.a.node.isRequired,notice:i.a.node.isRequired,LearnMore:i.a.elementType,CTA:i.a.elementType}}).call(this,n(3))},,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(1),g=n(48),f=n(2),m=n(4),p=n.n(m),h=n(10),v=n(7),b=n(33),_=n(23),O=n(19),y=p.a.useSelect,E=p.a.useDispatch;function OptIn(t){var n=t.id,r=void 0===n?"googlesitekit-opt-in":n,a=t.name,c=void 0===a?"optIn":a,s=t.className,l=t.trackEventCategory,m=t.alignLeftCheckbox,p=void 0!==m&&m,k=y((function(e){return e(v.a).isTrackingEnabled()})),j=y((function(e){return e(v.a).isSavingTrackingEnabled()})),S=y((function(e){return e(v.a).getErrorForAction("setTrackingEnabled",[!k])})),w=E(v.a).setTrackingEnabled,C=Object(O.a)(),A=Object(d.useCallback)(function(){var e=o()(i.a.mark((function e(t){var n,r;return i.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(b.a)(r.enabled),r.enabled&&Object(b.b)(l||C,"tracking_optin"));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[w,l,C]);return e.createElement("div",{className:u()("googlesitekit-opt-in",s)},e.createElement(h.Checkbox,{id:r,name:c,value:"1",checked:k,disabled:j,onChange:A,loading:void 0===k,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(_.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))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Item}));var r=n(0),i=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:i.a.node,label:i.a.string}}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(17),i=n.n(r),a=n(0),o=n.n(a),c=n(382),s=n(404),l=n(1),u=n(4),d=n.n(u),g=n(200),f=n(201),m=n(38),p=n(202),h=n(204),v=n(205),b=n(62),_=n(183),O=n(149);function Root(t){var n=t.children,r=t.registry,a=t.viewContext,o=void 0===a?null:a,u=c.a,y=Object(l.useState)({key:"Root",value:!0}),E=i()(y,1)[0];return e.createElement(l.StrictMode,null,e.createElement(_.a,{value:E},e.createElement(d.a.RegistryProvider,{value:r},e.createElement(f.a,{value:m.a},e.createElement(b.a,{value:o},e.createElement(s.a,{theme:u()},e.createElement(g.a,null,e.createElement(h.a,null,n,o&&e.createElement(v.a,null)),Object(O.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))},function(e,t,n){"use strict";(function(e,r){var i=n(49),a=n.n(i),o=n(50),c=n.n(o),s=n(63),l=n.n(s),u=n(64),d=n.n(u),g=n(42),f=n.n(g),m=n(0),p=n.n(m),h=n(1),v=n(2),b=n(159),_=n(62),O=n(43),y=n(8);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var k=function(t){l()(ErrorHandler,t);var n=E(ErrorHandler);function ErrorHandler(e){var t;return a()(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(y.B)("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,i=t.info;return n?r.createElement(O.b,{id:"googlesitekit-error",className:"googlesitekit-error-handler",title:Object(v.__)("Site Kit encountered an error","google-site-kit"),description:r.createElement(b.a,{message:n.message,componentStack:i.componentStack}),isDismissible:!1,format:"small",type:"win-error"},r.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,i.componentStack)):e}}]),ErrorHandler}(h.Component);k.contextType=_.b,k.propTypes={children:p.a.node.isRequired},t.a=k}).call(this,n(24),n(3))},function(e,t,n){"use strict";var r=n(110),i=(r.a.Consumer,r.a.Provider);t.a=i},function(e,t,n){"use strict";(function(e){var r=n(4),i=n.n(r),a=n(203),o=n(7),c=i.a.useSelect;t.a=function PermissionsModal(){return c((function(e){return e(o.a).isAuthenticated()}))?e.createElement(a.a,null):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,r){var i=n(5),a=n.n(i),o=n(16),c=n.n(o),s=n(2),l=n(1),u=n(4),d=n.n(u),g=n(125),f=n(34),m=n(31),p=n(7),h=n(114),v=n(85),b=d.a.useSelect,_=d.a.useDispatch,O=d.a.useRegistry;t.a=function AuthenticatedPermissionsModal(){var t,n,i,o,u=O(),d=b((function(e){return e(p.a).getPermissionScopeError()})),y=b((function(e){return e(p.a).getUnsatisfiedScopes()})),E=b((function(t){var n,r;return t(p.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=_(p.a).clearPermissionScopeError,j=_(m.a).navigateTo,S=_(f.a).setValues,w=Object(l.useCallback)((function(){k()}),[k]),C=Object(l.useCallback)(c()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(p.c,{permissionsError:d}),e.next=3,Object(h.c)(u);case 3:j(E);case 4:case"end":return e.stop()}}),e)}))),[u,E,j,d,S]);return Object(l.useEffect)((function(){(function(){var e=c()(a.a.mark((function e(){var t,n,r;return a.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,C();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[C,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===(i=d.data)||void 0===i?void 0:i.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(v.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:C,handleDialog:w,medium:!0})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",d),null):null}}).call(this,n(24),n(3))},function(e,t,n){"use strict";var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(17),s=n.n(c),l=n(1),u=n(4),d=n.n(u),g=n(114),f=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=f(),r=Object(l.useState)(!1),a=s()(r,2),c=a[0],u=a[1];return Object(l.useEffect)((function(){c||o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(g.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureToursDesktop}));var r=n(6),i=n.n(r),a=n(84),o=n(166);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(a.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){i()(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))},function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),a=n(0),o=n.n(a),c=n(12),s=n.n(c),l=n(450),u=n(2),d=n(1),g=n(4),f=n.n(g),m=n(221),p=n(242),h=n(246),v=n(7),b=n(15),_=n(251),O=n(258),y=n(260),E=n(266),k=n(36),j=n(55),S=n(23),w=n(267),C=n(14),A=f.a.useSelect;function Header(t){var n,r=t.children,a=t.subHeader,o=t.showNavigation,c=!!Object(j.c)(),g=Object(k.a)(),f=A((function(e){return e(C.c).getAdminURL("googlesitekit-dashboard")})),N=A((function(e){return e(v.a).isAuthenticated()})),T=Object(l.a)({childList:!0}),D=i()(T,2),x=D[0],R=!!(null===(n=D[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":R,"googlesitekit-header--has-navigation":o})},e.createElement(b.e,null,e.createElement(b.k,null,e.createElement(b.a,{smSize:1,mdSize:2,lgSize:4,className:"googlesitekit-header__logo",alignMiddle:!0},e.createElement(S.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(b.a,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0},r,!N&&c&&g&&e.createElement(y.a,null),N&&!g&&e.createElement(p.a,null))))),e.createElement("div",{className:"googlesitekit-subheader",ref:x},e.createElement(h.a,null),e.createElement(E.a,null),a),o&&e.createElement(_.a,null),e.createElement(w.a,null),e.createElement(O.a,null))}Header.displayName="Header",Header.propTypes={children:o.a.node,subHeader:o.a.element,showNavigation:o.a.bool},Header.defaultProps={children:null,subHeader:null},t.a=Header}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return HelpMenu}));var r=n(17),i=n.n(r),a=n(0),o=n.n(a),c=n(219),s=n(1),l=n(57),u=n(2),d=n(4),g=n.n(d),f=n(10),m=n(270),p=n(109),h=n(8),v=n(152),b=n(18),_=n(19),O=n(14),y=g.a.useSelect;function HelpMenu(t){var n=t.children,r=Object(s.useState)(!1),a=i()(r,2),o=a[0],d=a[1],g=Object(s.useRef)(),E=Object(_.a)();Object(c.a)(g,(function(){return d(!1)})),Object(p.a)([l.c,l.f],g,(function(){return d(!1)}));var k=y((function(e){return e(b.a).isModuleActive("adsense")})),j=Object(s.useCallback)((function(){o||Object(h.B)("".concat(E,"_headerbar"),"open_helpmenu"),d(!o)}),[o,E]),S=Object(s.useCallback)((function(){d(!1)}),[]),w=y((function(e){return e(O.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,tooltipEnterDelayInMS:500}),e.createElement(f.Menu,{className:"googlesitekit-width-auto",menuOpen:o,id:"googlesitekit-help-menu",onSelected:S},n,e.createElement(v.a,{gaEventLabel:"fix_common_issues",href:w},Object(u.__)("Fix common issues","google-site-kit")),e.createElement(v.a,{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/"},Object(u.__)("Read help docs","google-site-kit")),e.createElement(v.a,{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/"},Object(u.__)("Get support","google-site-kit")),k&&e.createElement(v.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))},,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){var r=n(2),i=n(123),a=n(222),o=n(103);t.a=function Logo(){return e.createElement("div",{className:"googlesitekit-logo","aria-hidden":"true"},e.createElement(i.a,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),e.createElement(a.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))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 80 21",fill:"none"},e),a)}},,,function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return JoyrideTooltip}));var i=n(6),a=n.n(i),o=n(17),c=n.n(o),s=n(0),l=n(27),u=n(432),d=n(1),g=n(122),f=n(85),m=n(107);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){a()(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,i=t.content,a=t.dismissLabel,o=t.target,s=t.cta,p=void 0!==s&&s,v=t.className,b=t.styles,_=void 0===b?{}:b,O=t.slug,y=void 0===O?"":O,E=t.onDismiss,k=void 0===E?function(){}:E,j=t.onView,S=void 0===j?function(){}:j,w=t.onTourStart,C=void 0===w?function(){}:w,A=t.onTourEnd,N=void 0===A?function(){}:A,T=function(){return!!e.document.querySelector(o)},D=Object(d.useState)(T),x=c()(D,2),R=x[0],M=x[1];if(Object(u.a)((function(){T()&&M(!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 P=[{title:n,target:o,content:i,disableBeacon:!0,isFixed:!0,placement:"auto",cta:p,className:v}],L={last:a};return r.createElement(f.a,{slug:y},r.createElement(l.e,{callback:function(e){switch(e.type){case l.b.TOUR_START:C();break;case l.b.TOUR_END:N();break;case l.b.STEP_AFTER:k();break;case l.b.TOOLTIP:S()}},disableOverlay:!0,disableScrolling:!0,spotlightPadding:0,floaterProps:m.b,locale:L,steps:P,styles:h(h(h({},m.c),_),{},{options:h(h({},m.c.options),null==_?void 0:_.options),spotlight:h(h({},m.c.spotlight),null==_?void 0:_.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(24),n(3))},,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return v}));var r=n(21),i=n.n(r),a=n(69),o=n.n(a),c=n(276),s=n(321),l=n(322),u=n(323),d=n(277),g=n(324),f=n(1),m=o()((function(e){return{widgetSlug:e,Widget:p(e)(c.a),WidgetRecoverableModules:p(e)(d.a),WidgetReportZero:p(e)(s.a),WidgetReportError:p(e)(l.a),WidgetNull:p(e)(u.a)}}));function p(t){return function(n){var r=Object(f.forwardRef)((function(r,a){return e.createElement(n,i()({},r,{ref:a,widgetSlug:t}))}));return r.displayName="WithWidgetSlug",(n.displayName||n.name)&&(r.displayName+="(".concat(n.displayName||n.name,")")),r}}var h=function(t){var n=m(t);return function(t){function DecoratedComponent(r){return e.createElement(t,i()({},r,n))}return DecoratedComponent.displayName="WithWidgetComponentProps",(t.displayName||t.name)&&(DecoratedComponent.displayName+="(".concat(t.displayName||t.name,")")),DecoratedComponent}},v=function(t){return function(n){function DecoratedComponent(r){return e.createElement(n,i()({},r,{WPDashboardReportError:p(t)(g.a)}))}return DecoratedComponent.displayName="WithWPDashboardWidgetComponentProps",(n.displayName||n.name)&&(DecoratedComponent.displayName+="(".concat(n.displayName||n.name,")")),DecoratedComponent}}}).call(this,n(3))},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,"g",(function(){return p.c})),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(17),i=n.n(r),a=n(29),o=n.n(a),c=n(146),s=n(105);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 a=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(a,m),v=function(e,t,n){for(;++e<t.length;)if(!l(n[t[e].slug]))return t[e];return null}(p,e,t);null!==v&&0!==d(h.sort(s)[0].counter,v).filter(f).length||h.some(f)&&(h=(h=h.sort(g)).filter(f));var b=h[0].width;if(r.push(o),(a+=c.c[b])>12){if(a-=c.c[b],r[p]++,9===a){var _=u(n,a),O=i()(_,2);n=O[0],a=O[1]}a=c.c[b],o++}else 12===a&&(a=0,o++);n.push(c.c[b])})),9===a){var m=u(n,a),p=i()(m,2);n=p[0],a=p[1]}return{columnWidths:n,rowIndexes:r}}var f=n(13);function m(e,t,n){var r=n.columnWidths,i=n.rowIndexes,a=[],s=o()(r);if(!(null==e?void 0:e.length))return{gridColumnWidths:s,overrideComponents:a};var l=null,u=-1,d=[];if(function(e,t){for(var n={},r=0;r<e.length;r++){var i,a=e[r],o=null==t?void 0:t[a.slug],s=null==o?void 0:o.Component,l=null==o||null===(i=o.metadata)||void 0===i?void 0:i.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(a.push(null),l=t[n.slug],u=i[o],l)if(g=l,m=t[null===(c=e[o+1])||void 0===c?void 0:c.slug],p=u,h=i[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 v=d.reduce((function(e,t){return e+t}),0);a[o]=l,s[o]=v,d=[]}})),{gridColumnWidths:s,overrideComponents:a}}var p=n(232);function h(e){return(Array.isArray(e)?e:[e]).filter((function(e){return"string"==typeof e&&e.length>0}))}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(1),s=n(4),l=n.n(s),u=n(14),d=n(26),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")})),r=f((function(e){return e(u.c).hasMinimumWordPressVersion("6.4")}));return Object(c.useCallback)(o()(i.a.mark((function a(){var o,c,s,l;return i.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=document.querySelector("#adminmenu").offsetHeight>0){i.next=7;break}if(!(c=document.getElementById("wp-admin-bar-menu-toggle"))){i.next=7;break}return c.firstChild.click(),i.next=7,new Promise((function(e){setTimeout(e,0)}));case 7:"#adminmenu [href*='page=googlesitekit-dashboard']",(s=!!document.querySelector("".concat("#adminmenu [href*='page=googlesitekit-dashboard']","[aria-haspopup=true]")))&&document.querySelector("#adminmenu [href*='page=googlesitekit-dashboard']").click(),n&&!r&&(l=document.hasFocus,document.hasFocus=function(){return document.hasFocus=l,!1}),t(e,{isTooltipVisible:!0,rehideAdminMenu:!o,rehideAdminSubMenu:s});case 12:case"end":return i.stop()}}),a)}))),[n,r,t,e])}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminMenuTooltip}));var r=n(6),i=n.n(r),a=n(21),o=n.n(a),c=n(5),s=n.n(c),l=n(16),u=n.n(l),d=n(22),g=n.n(d),f=n(1),m=n(0),p=n.n(m),h=n(4),v=n.n(h),b=n(225),_=n(26),O=n(173);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(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){i()(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=v.a.useDispatch;function AdminMenuTooltip(t){var n=t.onDismiss,r=t.tooltipStateKey,i=g()(t,["onDismiss","tooltipStateKey"]),a=k(_.b).setValue,c=Object(O.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:a(r,void 0);case 5:case"end":return e.stop()}}),e)}))),[n,l,d,a,r]);return e.createElement(b.a,o()({slug:"ga4-activation-banner-admin-menu-tooltip",onDismiss:m},i))}AdminMenuTooltip.propTypes=E(E({},b.a.propTypes),{},{target:p.a.string,tooltipStateKey:p.a.string.isRequired}),AdminMenuTooltip.defaultProps={target:'#adminmenu [href*="page=googlesitekit-settings"]'}}).call(this,n(3))},,,function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UserMenu}));var i=n(5),a=n.n(i),o=n(16),c=n.n(o),s=n(17),l=n.n(s),u=n(219),d=n(1),g=n(2),f=n(57),m=n(4),p=n.n(m),h=n(10),v=n(125),b=n(8),_=n(39),O=n(85),y=n(243),E=n(197),k=n(244),j=n(245),S=n(14),w=n(7),C=n(31),A=n(109),N=n(19),T=p.a.useSelect,D=p.a.useDispatch;function UserMenu(){var t=T((function(e){return e(S.c).getProxyPermissionsURL()})),n=T((function(e){return e(w.a).getEmail()})),i=T((function(e){return e(w.a).getPicture()})),o=T((function(e){return e(w.a).getFullName()})),s=T((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],M=Object(d.useState)(!1),P=l()(M,2),L=P[0],I=P[1],B=Object(d.useRef)(),z=Object(d.useRef)(),F=Object(N.a)(),W=D(C.a).navigateTo;Object(u.a)(B,(function(){return I(!1)})),Object(A.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 V,H=Object(d.useCallback)((function(){L||Object(b.B)("".concat(F,"_headerbar"),"open_usermenu"),I(!L)}),[L,F]),U=Object(d.useCallback)((function(){R(!x),I(!1)}),[x]),q=Object(d.useCallback)(function(){var e=c()(a.a.mark((function e(n,r){var i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=r.detail.item,e.t0=null==i?void 0:i.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(b.B)("".concat(F,"_headerbar_usermenu"),"manage_sites");case 7:W(t);case 8:return e.abrupt("break",12);case 9:return U(),e.abrupt("break",12);case 11:H();case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[t,H,U,W,F]),G=Object(d.useCallback)(c()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!1),e.next=3,Object(_.b)();case 3:return e.next=5,Object(b.B)("".concat(F,"_headerbar_usermenu"),"disconnect_user");case 5:W(s);case 6:case"end":return e.stop()}}),e)}))),[s,W,F]);return n?(o&&n&&(V=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&&(V=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&&(V=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:H,icon:!!i&&r.createElement("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true"},r.createElement("img",{className:"mdc-button__icon--image",src:i,alt:Object(g.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":L,"aria-controls":"user-menu","aria-label":Object(g.__)("Account","google-site-kit"),tooltip:!0,tooltipEnterDelayInMS:500,customizedTooltip:r.createElement("span",{"aria-label":V},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:L,onSelected:q,id:"user-menu"},r.createElement("li",null,r.createElement(y.a,null)),!!t&&r.createElement("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem"},r.createElement(E.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(E.a,{icon:r.createElement(k.a,{width:"22"}),label:Object(g.__)("Disconnect","google-site-kit")})))),r.createElement(O.a,null,r.createElement(v.a,{dialogActive:x,handleConfirm:G,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,small:!0})))):null}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Details}));var r=n(2),i=n(4),a=n.n(i),o=n(7),c=a.a.useSelect;function Details(){var t=c((function(e){return e(o.a).getPicture()})),n=c((function(e){return e(o.a).getFullName()})),i=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")},i)))}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 22 22",fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 22 18",fill:"none"},e),a)}},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return ErrorNotifications}));var i=n(1),a=n(2),o=n(4),c=n.n(o),s=n(247),l=n(248),u=n(249),d=n(250),g=n(18),f=n(7),m=n(14),p=n(32),h=n(34),v=n(43),b=c.a.useSelect;function ErrorNotifications(){var t=b((function(e){return e(f.a).isAuthenticated()})),n=b((function(e){return e(m.c).getSetupErrorCode()})),o=b((function(e){return e(m.c).getSetupErrorMessage()})),c=b((function(e){return e(h.a).getValue(f.c,"permissionsError")})),_=b((function(r){var i,a;return(null==c?void 0:c.data)?r(f.a).getConnectURL({additionalScopes:null==c||null===(i=c.data)||void 0===i?void 0:i.scopes,redirectURL:(null==c||null===(a=c.data)||void 0===a?void 0:a.redirectURL)||e.location.href}):"access_denied"===n&&!(null==c?void 0:c.data)&&t?null:r(m.c).getSetupErrorRedoURL()})),O=b((function(e){return e(m.c).getErrorTroubleshootingLinkURL({code:n})})),y=b((function(e){return e(g.a).isModuleConnected("analytics-4")})),E=b((function(e){return e(f.a).hasScope(p.h)})),k=y&&!E,j=Object(a.__)("Error connecting Site Kit","google-site-kit"),S=Object(a.__)("Redo the plugin setup","google-site-kit");return"access_denied"===n&&(j=Object(a.__)("Permissions Error","google-site-kit"),(null==c?void 0:c.data)?S=Object(a.__)("Grant permission","google-site-kit"):!(null==c?void 0:c.data)&&t&&(S=null)),r.createElement(i.Fragment,null,r.createElement(d.a,null),r.createElement(s.a,null),o&&r.createElement(v.b,{id:"setup_error",type:"win-error",title:j,description:o,isDismissible:!1,ctaLink:_,ctaLabel:S,learnMoreLabel:Object(a.__)("Get help","google-site-kit"),learnMoreURL:O}),!o&&t&&r.createElement(i.Fragment,null,!k&&r.createElement(l.a,null),k&&r.createElement(u.a,null)))}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AuthError}));var r=n(2),i=n(4),a=n.n(i),o=n(7),c=n(43),s=a.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))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlert}));var i=n(17),a=n.n(i),o=n(13),c=n(1),s=n(2),l=n(4),u=n.n(l),d=n(43),g=n(8),f=n(7),m=n(31),p=n(18),h=n(34),v=u.a.useSelect,b={siteverification:"site-verification",webmasters:"search-console",analytics:"analytics-4"};function UnsatisfiedScopesAlert(){var t,n,i,l,u,_=Object(c.useRef)(),O=v((function(e){return e(m.a).isNavigatingTo(new RegExp("//oauth2|action=googlesitekit_connect","i"))})),y=v((function(e){return e(h.a).getValue(f.c,"permissionsError")})),E=v((function(e){return e(f.a).getUnsatisfiedScopes()})),k=(null==y?void 0:y.data)?{additionalScopes:null===(t=y.data)||void 0===t?void 0:t.scopes,redirectURL:(null===(n=y.data)||void 0===n?void 0:n.redirectURL)||e.location.href}:{redirectURL:e.location.href},j=v((function(e){return e(f.a).getConnectURL(k)})),S=v((function(e){return e(p.a).getModules()}));if(O&&!_.current||!(null==E?void 0:E.length)||void 0===j)return null;i=E.some((function(e){return!e.match(new RegExp("^https://www\\.googleapis\\.com/auth/"))}))||!(l=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=a()(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}))}(E,S))||l.some((function(e){return!1===e}))?"generic":1<(l=Object(o.uniq)(l)).length?"multiple":"single";var w=Object(s.__)("Site Kit can’t access necessary data","google-site-kit"),C=(null==y?void 0:y.data)?Object(s.__)("Grant permission","google-site-kit"):Object(s.__)("Redo setup","google-site-kit");switch(i){case"multiple":u=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.t)(l));break;case"single":u=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"),l[0]);break;case"generic":u=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:w,description:u,format:"small",type:"win-error",isDismissible:!1,ctaLink:j,onCTAClick:function(){_.current=!0},ctaLabel:C})}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlertGTE}));var i=n(2),a=n(4),o=n.n(a),c=n(43),s=n(14),l=n(7),u=n(32),d=n(34),g=o.a.useSelect;function UnsatisfiedScopesAlertGTE(){var t=g((function(e){return e(d.a).getValue(l.c,"permissionsError")})),n=g((function(n){var r;return n(l.a).getConnectURL({additionalScopes:[u.h],redirectURL:(null==t||null===(r=t.data)||void 0===r?void 0:r.redirectURL)||e.location.href})})),a=g((function(e){return e(s.c).getGoogleSupportURL({path:"/tagmanager/answer/11994839"})}));return void 0===n?null:r.createElement(c.b,{id:"authentication-error-gte",title:Object(i.__)("Site Kit needs additional permissions to detect updates to tags on your site","google-site-kit"),description:Object(i.__)("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:n,ctaLabel:Object(i.__)("Grant permission","google-site-kit"),learnMoreLabel:Object(i.__)("Learn more","google-site-kit"),learnMoreURL:a})}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(4),i=n.n(r),a=n(14),o=n(43),c=i.a.useSelect;function InternalServerError(){var t=c((function(e){return e(a.c).getInternalServerError()}));return t?e.createElement(o.b,t):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardNavigation}));var r=n(4),i=n.n(r),a=n(7),o=n(36),c=n(158),s=n(252),l=i.a.useSelect;function DashboardNavigation(){var t=Object(o.a)(),n=l((function(e){return t?e(a.a).getViewableModules():null})),r=l((function(e){return e(a.a).getKeyMetrics()}));return e.createElement(c.a,{loading:void 0===n||void 0===r,width:"100%",smallHeight:"59px",height:"71px"},e.createElement(s.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return Navigation}));var i=n(29),a=n.n(i),o=n(17),c=n.n(o),s=n(12),l=n.n(s),u=n(13),d=n(88),g=n(141),f=n(1),m=n(2),p=n(4),h=n.n(p),v=n(253),b=n(254),_=n(255),O=n(256),y=n(257),E=n(20),k=n(7),j=n(41),S=n(26),w=n(67),C=n(55),A=n(28),N=n(111),T=n(8),D=n(19),x=n(36);function R(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,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,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,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}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,L=h.a.useDispatch;function Navigation(){var t,n=Object(C.c)(),i=Object(f.useRef)(),o=Object(A.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],I=h[1],B=Object(f.useState)(s||void 0),z=c()(B,2),F=z[0],W=z[1],V=Object(f.useState)(!1),H=c()(V,2),U=H[0],q=H[1],G=Object(D.a)(),K=Object(x.a)(),Y=L(S.b).setValue,$=P((function(e){return K?e(k.a).getViewableModules():null})),X=P((function(e){return e(k.a).isKeyMetricsWidgetHidden()})),Q={modules:$||void 0},Z=P((function(e){return n===C.b&&!0!==X&&e(j.a).isWidgetContextActive(w.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,Q)})),J=P((function(e){return e(j.a).isWidgetContextActive(n===C.b?w.CONTEXT_MAIN_DASHBOARD_TRAFFIC:w.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,Q)})),ee=P((function(e){return e(j.a).isWidgetContextActive(n===C.b?w.CONTEXT_MAIN_DASHBOARD_CONTENT:w.CONTEXT_ENTITY_DASHBOARD_CONTENT,Q)})),te=P((function(e){return e(j.a).isWidgetContextActive(n===C.b?w.CONTEXT_MAIN_DASHBOARD_SPEED:w.CONTEXT_ENTITY_DASHBOARD_SPEED,Q)})),ne=P((function(e){return e(j.a).isWidgetContextActive(n===C.b?w.CONTEXT_MAIN_DASHBOARD_MONETIZATION:w.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,Q)})),re=Object(f.useCallback)((function(){return Z?E.b:K?J?E.e:ee?E.a:te?E.d:ne?E.c:"":E.e}),[Z,J,ee,te,ne,K]),ie=Object(f.useCallback)((function(t){var n,r=t.target.closest(".mdc-chip"),i=null==r||null===(n=r.dataset)||void 0===n?void 0:n.contextId;e.history.replaceState({},"","#".concat(i)),W(i),Object(T.B)("".concat(G,"_navigation"),"tab_select",i),e.scrollTo({top:i!==re()?Object(N.a)("#".concat(i),o):0,behavior:"smooth"}),setTimeout((function(){Y(S.a,i)}),50)}),[o,G,Y,re]);return Object(d.a)((function(){var t=re();if(!s)return I(t),void setTimeout((function(){return e.history.replaceState({},"","#".concat(t))}));var n=s;(function(e){return!(!Z||e!==E.b)||(!(!J||e!==E.e)||(!(!ee||e!==E.a)||(!(!te||e!==E.d)||!(!ne||e!==E.c))))})(n)||(n=t),Y(S.a,n),I(n),setTimeout((function(){var r=n!==t?Object(N.a)("#".concat(n),o):0;e.scrollY!==r?e.scrollTo({top:r,behavior:"smooth"}):Y(S.a,void 0)}),50)})),Object(f.useEffect)((function(){var t=function(e){Y(S.a,void 0),I(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==i||null===(c=i.current)||void 0===c?void 0:c.getBoundingClientRect(),g=d.bottom,f=d.top,m=[].concat(a()(Z?[E.b]:[]),a()(J?[E.e]:[]),a()(ee?[E.a]:[]),a()(te?[E.d]:[]),a()(ne?[E.c]:[])),p=re();if(0===l)q(!1);else{var h,v=null===(h=document.querySelector(".googlesitekit-header"))||void 0===h?void 0:h.getBoundingClientRect().bottom;q(f===v)}var b,_=R(m);try{for(_.s();!(b=_.n()).done;){var O=b.value,y=document.getElementById(O);if(y){var k=y.getBoundingClientRect().top-20-(u||g||0);k<0&&(void 0===s||s<k)&&(s=k,p=O)}}}catch(e){_.e(e)}finally{_.f()}if(F)F===p&&t(p);else{var j=e.location.hash;p!==(null==j?void 0:j.substring(1))&&(n&&Object(T.B)("".concat(G,"_navigation"),"tab_scroll",p),e.history.replaceState({},"","#".concat(p)),t(p))}}),150);return e.addEventListener("scroll",n),function(){e.removeEventListener("scroll",n)}}),[F,Z,J,ee,te,ne,G,Y,re]),r.createElement("nav",{className:l()("mdc-chip-set","googlesitekit-navigation","googlesitekit-navigation--".concat(n),{"googlesitekit-navigation--is-sticky":U}),ref:i},Z&&r.createElement(g.Chip,{id:E.b,label:Object(m.__)("Key metrics","google-site-kit"),leadingIcon:r.createElement(v.a,{width:"18",height:"16"}),onClick:ie,selected:M===E.b,"data-context-id":E.b}),J&&r.createElement(g.Chip,{id:E.e,label:Object(m.__)("Traffic","google-site-kit"),leadingIcon:r.createElement(b.a,{width:"18",height:"16"}),onClick:ie,selected:M===E.e,"data-context-id":E.e}),ee&&r.createElement(g.Chip,{id:E.a,label:Object(m.__)("Content","google-site-kit"),leadingIcon:r.createElement(_.a,{width:"18",height:"18"}),onClick:ie,selected:M===E.a,"data-context-id":E.a}),te&&r.createElement(g.Chip,{id:E.d,label:Object(m.__)("Speed","google-site-kit"),leadingIcon:r.createElement(O.a,{width:"20",height:"16"}),onClick:ie,selected:M===E.d,"data-context-id":E.d}),ne&&r.createElement(g.Chip,{id:E.c,label:Object(m.__)("Monetization","google-site-kit"),leadingIcon:r.createElement(y.a,{width:"18",height:"16"}),onClick:ie,selected:M===E.c,"data-context-id":E.c}))}}).call(this,n(24),n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 13 12",fill:"none"},e),a,o,c,s)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 18 16",fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 18 18",fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 20 16",fill:"none"},e),a,o)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 23 12",fill:"none"},e),a)}},function(e,t,n){"use strict";(function(e,r){var i=n(17),a=n.n(i),o=n(13),c=n(2),s=n(1),l=n(4),u=n.n(l),d=n(10),g=n(14),f=n(259),m=n(31),p=n(23),h=n(76),v=n(8),b=n(55),_=n(19),O=u.a.useSelect,y=u.a.useDispatch;t.a=function EntityHeader(){var t=Object(_.a)(),n=Object(b.c)(),i=O((function(e){return e(g.c).getCurrentEntityTitle()})),l=O((function(e){return e(g.c).getCurrentEntityURL()})),u=Object(s.useRef)(),E=Object(s.useState)(l),k=a()(E,2),j=k[0],S=k[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=y(m.a).navigateTo,C=O((function(e){return e(g.c).getAdminURL("googlesitekit-dashboard")})),A=Object(s.useCallback)((function(){Object(v.B)("".concat(t,"_navigation"),"return_to_dashboard"),w(C)}),[C,w,t]);return b.a!==n||null===l||null===i?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:A,text:!0,tertiary:!0},Object(c.__)("Back to dashboard","google-site-kit"))),r.createElement("div",{ref:u,className:"googlesitekit-entity-header__details"},r.createElement("p",null,i),r.createElement(p.a,{secondary:!0,href:l,"aria-label":l,external:!0},j)))}}).call(this,n(24),n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 24 24"},e),a,o)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ViewOnlyMenu}));var r=n(17),i=n.n(r),a=n(219),o=n(12),c=n.n(o),s=n(1),l=n(2),u=n(57),d=n(10),g=n(19),f=n(109),m=n(8),p=n(261),h=n(262),v=n(263),b=n(265),_=n(4),O=n.n(_),y=n(7),E=O.a.useSelect;function ViewOnlyMenu(){var t=Object(s.useState)(!1),n=i()(t,2),r=n[0],o=n[1],_=Object(s.useRef)(),O=Object(g.a)();Object(a.a)(_,(function(){return o(!1)})),Object(f.a)([u.c,u.f],_,(function(){return o(!1)}));var k=Object(s.useCallback)((function(){r||Object(m.B)("".concat(O,"_headerbar"),"open_viewonly"),o(!r)}),[r,O]),j=E((function(e){return e(y.a).hasCapability(y.y)}));return e.createElement("div",{ref:_,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:k,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,tooltipEnterDelayInMS:500},Object(l.__)("View only","google-site-kit")),e.createElement(d.Menu,{menuOpen:r,nonInteractive:!0,onSelected:k,id:"view-only-menu"},e.createElement(h.a,null),e.createElement(v.a,null),e.createElement("li",{className:"mdc-list-divider",role:"separator"}),e.createElement(b.a,null)))}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 16 10",fill:"none"},e),a)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Description}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(1),s=n(48),l=n(2),u=n(4),d=n.n(u),g=n(10),f=n(31),m=n(14),p=n(7),h=n(8),v=n(23),b=n(19),_=d.a.useDispatch,O=d.a.useSelect;function Description(){var t=Object(b.a)(),n=O((function(e){return e(p.a).hasCapability(p.y)})),r=O((function(e){return e(m.c).getProxySetupURL()})),a=O((function(e){return e(m.c).getDocumentationLinkURL("dashboard-sharing")})),u=_(f.a).navigateTo,d=Object(c.useCallback)(function(){var e=o()(i.a.mark((function e(n){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),e.next=3,Object(h.B)("".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]),y=Object(c.useCallback)((function(){Object(h.B)("".concat(t,"_headerbar_viewonly"),"click_learn_more_link")}),[t]),E=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(v.a,{href:a,external:!0,onClick:y,"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,E),n&&e.createElement(g.Button,{onClick:d},Object(l.__)("Sign in with Google","google-site-kit")))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SharedServices}));var r=n(2),i=n(4),a=n.n(i),o=n(7),c=n(264),s=a.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))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Service}));var r=n(0),i=n.n(r),a=n(48),o=n(2),c=n(4),s=n.n(c),l=n(18),u=n(7),d=s.a.useSelect;function Service(t){var n=t.module,r=d((function(e){return e(u.a).hasCapability(u.y)})),i=d((function(e){return e(l.a).getModule(n)||{}})),c=i.name,s=i.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(a.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:i.a.string.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Tracking}));var r=n(48),i=n(2),a=n(196),o=n(19);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(i.__)("Thanks for using Site Kit!<br />Help us make it even better","google-site-kit"),{br:e.createElement("br",null)})),e.createElement(a.a,{trackEventCategory:"".concat(t,"_headerbar_viewonly"),alignCheckboxLeft:!0}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupErrorNotification}));var r=n(2),i=n(4),a=n.n(i),o=n(43),c=n(14),s=a.a.useSelect;function SetupErrorNotification(){var t=s((function(e){return e(c.c).getSetupErrorMessage()})),n=s((function(e){return e(c.c).getSetupErrorRedoURL()}));return t?e.createElement(o.b,{id:"setup_error",type:"win-error",title:Object(r.__)("Oops! There was a problem during set up. Please try again.","google-site-kit"),description:t,isDismissible:!1,ctaLabel:Object(r.__)("Redo the plugin setup","google-site-kit"),ctaLink:n}):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SubtleNotifications}));var r=n(1),i=n(268);function SubtleNotifications(){return e.createElement(r.Fragment,null,e.createElement(i.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GA4AdSenseLinkedNotification}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(1),s=n(2),l=n(4),u=n.n(l),d=n(7),g=n(9),f=n(269),m=n(10),p=n(15),h=n(36),v=n(140),b=n(174),_=n(18),O=n(55),y=n(19),E=n(8),k=u.a.useSelect,j=u.a.useDispatch;function GA4AdSenseLinkedNotification(){var t=Object(b.a)("ga4AdSenseIntegration"),n=Object(O.c)(),r=Object(h.a)(),a=k((function(e){return t&&n&&!r?e(_.a).isModuleConnected("adsense"):null})),l=k((function(e){return t&&n&&!r?e(_.a).isModuleConnected("analytics-4"):null})),u=k((function(e){return t&&n&&!r?e(g.m).getAdSenseLinked():null})),S=a&&l&&u,w=k((function(e){return t&&n&&!r?e(d.a).isItemDismissed("ga4_adsense_linked_notification"):null})),C=j(d.a).dismissItem,A=k((function(e){return e(d.a).getDateRangeDates({offsetDays:g.c})})),N=A.startDate,T=A.endDate,D=Object(y.a)(),x={startDate:N,endDate:T,dimensions:["pagePath"],metrics:[{name:"totalAdRevenue"}],orderby:[{metric:{metricName:"totalAdRevenue"},desc:!0}],limit:3},R=k((function(e){return r||w||!S||!t?null:e(g.m).getReport(x)})),M=k((function(e){return e(g.m).hasFinishedResolution("getReport",[x])})),P=Object(c.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(E.B)("".concat(D,"_top-earning-pages-success-notification"),"confirm_notification"),e.next=3,C("ga4_adsense_linked_notification");case 3:case"end":return e.stop()}}),e)}))),[C,D]);Object(c.useEffect)((function(){n&&!r&&!1===w&&t&&M&&!1===Object(v.i)(R)&&S&&P()}),[R,w,r,M,S,t,P,n]);var L=n&&!r&&!w&&t&&M&&Object(v.i)(R)&&S;return Object(c.useEffect)((function(){L&&Object(E.B)("".concat(D,"_top-earning-pages-success-notification"),"view_notification")}),[L,D]),L?e.createElement(p.e,null,e.createElement(p.k,null,e.createElement(p.a,{alignMiddle:!0,size:12,className:"googlesitekit-subtle-notification"},e.createElement("div",{className:"googlesitekit-subtle-notification__icon"},e.createElement(f.a,{width:24,height:24})),e.createElement("div",{className:"googlesitekit-subtle-notification__content"},e.createElement("p",null,Object(s.__)("Your AdSense and Analytics accounts are linked.","google-site-kit")),e.createElement("p",null,Object(s.__)("We’ll let you know as soon as there’s enough data available.","google-site-kit"))),e.createElement(m.Button,{tertiary:!0,onClick:P},Object(s.__)("Got it","google-site-kit"))))):null}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zm4.806 8.592l.592-.806-1.612-1.184-.592.806-3.89 5.296c-.166.226-.36.296-.512.296-.152 0-.346-.07-.512-.296l-1.474-2.007-.592-.806-1.612 1.184.592.806 1.474 2.007C9.191 15.6 9.971 16 10.792 16c.821 0 1.6-.4 2.124-1.112l3.89-5.296z",fill:"#265C3B"});t.a=function SvgCheckFill(e){return r.createElement("svg",i({viewBox:"0 0 24 24",fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 20 20",fill:"none"},e),a)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="consent-mode-setup-cta-widget"},,function(e,t,n){"use strict";(function(e){var r=n(12),i=n.n(r),a=n(0),o=n.n(a),c=n(1),s=Object(c.forwardRef)((function(t,n){var r=t.children,a=t.className,o=t.widgetSlug,c=t.noPadding,s=t.Header,l=t.Footer;return e.createElement("div",{className:i()("googlesitekit-widget","googlesitekit-widget--".concat(o),{"googlesitekit-widget--no-padding":c},{"googlesitekit-widget--with-header":s},a),ref:n},s&&e.createElement("div",{className:"googlesitekit-widget__header"},e.createElement(s,null)),e.createElement("div",{className:"googlesitekit-widget__body"},r),l&&e.createElement("div",{className:"googlesitekit-widget__footer"},e.createElement(l,null)))}));s.defaultProps={children:void 0,noPadding:!1},s.propTypes={children:o.a.node,widgetSlug:o.a.string.isRequired,noPadding:o.a.bool,Header:o.a.elementType,Footer:o.a.elementType},t.a=s}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetRecoverableModules}));var r=n(6),i=n.n(r),a=n(21),o=n.n(a),c=n(29),s=n.n(c),l=n(22),u=n.n(l),d=n(0),g=n.n(d),f=n(1),m=n(145),p=n(176);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,i=u()(t,["widgetSlug","moduleSlugs"]),a=Object(f.useMemo)((function(){return{moduleSlug:s()(r).sort().join(","),moduleSlugs:r}}),[r]);return Object(m.a)(n,p.a,a),e.createElement(p.a,o()({moduleSlugs:r},i))}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){i()(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))},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){var r=n(6),i=n.n(r),a=n(17),o=n.n(a),c=n(1),s=n(473),l=n(285);t.a=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=Object(c.useState)(Object(s.a)(r.location.href,t)||n),u=o()(a,2),d=u[0],g=u[1],f=function(e){g(e);var n=Object(l.a)(r.location.href,i()({},t,e));r.history.replaceState(null,"",n)};return[d,f]}}).call(this,n(24))},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var r=n(6),i=n.n(r),a=n(21),o=n.n(a),c=n(22),s=n.n(c),l=n(0),u=n.n(l),d=n(1),g=n(145),f=n(188);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,i=s()(t,["widgetSlug","moduleSlug"]),a=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(g.a)(n,f.a,a),e.createElement(f.a,o()({moduleSlug:r},i))}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){i()(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))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var r=n(6),i=n.n(r),a=n(22),o=n.n(a),c=n(0),s=n.n(c),l=n(172);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){i()(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))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetNull}));var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(145),s=n(105);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){i()(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))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WPDashboardReportError}));var r=n(0),i=n.n(r),a=n(449),o=n(212),c=n(4),s=n.n(c),l=n(26),u=n(172),d=s.a.useSelect,g=s.a.useDispatch;function WPDashboardReportError(t){var n=t.moduleSlug,r=t.error,i=Object(o.a)(WPDashboardReportError,"WPDashboardReportError"),c=g(l.b).setValue,s=r.message,f=d((function(e){return e(l.b).getValue("WPDashboardReportError-".concat(n,"-").concat(s))}));return Object(a.a)((function(){c("WPDashboardReportError-".concat(n,"-").concat(s),i)}),(function(){c("WPDashboardReportError-".concat(n,"-").concat(s),void 0)})),f!==i?null:e.createElement(u.a,{moduleSlug:n,error:r})}WPDashboardReportError.propTypes={moduleSlug:i.a.string.isRequired,error:i.a.object.isRequired}}).call(this,n(3))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return KeyMetricsSetupCTARenderedEffect}));var r=n(234),i=n(4),a=n.n(i),o=n(26),c=a.a.useDispatch,s="KEY_METRICS_SETUP_CTA_RENDERED";function KeyMetricsSetupCTARenderedEffect(){var e=c(o.b).setValue;return Object(r.a)((function(){e(s,!0)})),null}},,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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"}),v=r.createElement("rect",{x:155.258,y:125.508,width:13.305,height:3.07,rx:1.023,fill:"#CBD0D3"}),b=r.createElement("circle",{cx:161.911,cy:106.574,r:10.746,stroke:"#F5C3EA",strokeWidth:3.295}),_=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"}),O=r.createElement("rect",{x:136.446,y:30.151,width:93.079,height:49.078,rx:3.07,fill:"#EBEEF0"}),y=r.createElement("rect",{x:141.639,y:37.492,width:44.008,height:3.07,rx:1.023,fill:"#CBD0D3"}),E=r.createElement("rect",{x:141.639,y:43.633,width:28.656,height:3.07,rx:1.023,fill:"#CBD0D3"}),k=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"}),C=r.createElement("rect",{x:199.267,y:98.898,width:10.234,height:3.07,rx:1.023,fill:"#CBD0D3"}),A=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"}),N=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"}),T=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"}),M=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"}),P=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"}),L=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"}),F=r.createElement("circle",{cx:88.68,cy:97.424,r:32.215,fill:"#77AD8C"}),W=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"}),V=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"}),H=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",i({viewBox:"0 0 356 181",fill:"none"},e),a,o,c,s,l,u,d,g,f,m,p,h,v,b,_,O,y,E,r.createElement("mask",{id:"ga4-success-green_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:141,y:50,width:84,height:25},k),j,S,w,C,A,N,T,D,x,R,M,P,L,I,B,z,F,W,V,H)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 20 20",fill:"none"},e),a)}},,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(12),o=n.n(a),c=n(4),s=n.n(c),l=n(525),u=n(7),d=n(41),g=n(15),f=n(36),m=s.a.useSelect;function WidgetContextRenderer(t){var n=t.id,r=t.slug,i=t.className,a=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})),v=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":!v},i)},a&&v&&e.createElement(g.e,null,e.createElement(g.k,null,e.createElement(g.a,{size:12},e.createElement(a,null)))),h&&h.map((function(t){return e.createElement(l.a,{key:t.slug,slug:t.slug,contextID:n})})),c&&v&&e.createElement(g.e,null,e.createElement(g.k,null,e.createElement(g.a,{size:12},e.createElement(c,null)))))}WidgetContextRenderer.propTypes={id:i.a.string,slug:i.a.string,className:i.a.string,Header:i.a.elementType,Footer:i.a.elementType},t.a=WidgetContextRenderer}).call(this,n(3))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(2),o=n(220),c=n(1019),s=n(10),l=n(123);function SurveyHeader(t){var n=t.title,r=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__header"},e.createElement("div",{className:"googlesitekit-survey__header-logo"},e.createElement(l.a,{width:24,height:24})),e.createElement("div",{className:"googlesitekit-survey__header-details"},e.createElement("h3",null,n),e.createElement(s.Button,{"aria-label":Object(a.__)("Dismiss","google-site-kit"),icon:e.createElement(o.a,{icon:c.a,size:40}),onClick:r,className:"googlesitekit-survey__header-close"})))}SurveyHeader.propTypes={title:i.a.string.isRequired,dismissSurvey:i.a.func.isRequired},t.a=SurveyHeader}).call(this,n(3))},,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){var r=n(27),i=n(2),a=n(7),o=(e._googlesitekitUserData||{}).hasMultipleAdmins,c=[{target:".googlesitekit-dashboard-sharing-settings__main .googlesitekit-dashboard-sharing-settings__column--view",title:Object(i.__)("Manage view access for other roles","google-site-kit"),content:Object(i.__)("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(i.__)("Share management with other admins","google-site-kit"),content:Object(i.__)("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,i=t.select,o=t.dispatch;r.b.TOOLTIP===n&&!1===i(a.a).isTourDismissed("dashboardSharing")&&o(a.a).dismissTour("dashboardSharing")}}}).call(this,n(24))},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 16 12"},e),a)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ZeroDataStateNotifications}));var r=n(2),i=n(4),a=n.n(i),o=n(7),c=n(18),s=n(36),l=n(9),u=n(56),d=n(536),g=n(538),f=a.a.useSelect,m=a.a.useInViewSelect;function ZeroDataStateNotifications(){var t,n=Object(s.a)(),i=f((function(e){return e(c.a).isModuleConnected("analytics-4")})),a=f((function(e){return!n||e(o.a).canViewSharedModule("analytics-4")})),p=f((function(e){return!n||e(o.a).canViewSharedModule("search-console")})),h=f((function(e){if(!n)return!1;var t=e(c.a).getRecoverableModules();return void 0!==t?Object.keys(t).includes("analytics-4"):void 0})),v=f((function(e){if(!n)return!1;var t=e(c.a).getRecoverableModules();return void 0!==t?Object.keys(t).includes("search-console"):void 0})),b=m((function(e){return!(!i||!a||!1!==h)&&e(l.m).isGatheringData()})),_=m((function(e){return p&&!1===v&&e(u.b).isGatheringData()})),O=m((function(e){return!(!i||!a||!1!==h)&&e(l.m).hasZeroData()})),y=m((function(e){return p&&!1===v&&e(u.b).hasZeroData()}));if(void 0===b||void 0===_||void 0===O||void 0===y)return null;if(!(b||_||O||y))return null;var E=72;return b&&_?t=Object(r.__)("Search Console and Analytics are gathering data","google-site-kit"):b?t=Object(r.__)("Analytics is gathering data","google-site-kit"):_&&(E=48,t=Object(r.__)("Search Console is gathering data","google-site-kit")),b||_?e.createElement(d.a,{title:t,gatheringDataWaitTimeInHours:E}):e.createElement(g.a,null)}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=200},function(e,t,n){"use strict";n.d(t,"a",(function(){return ScrollEffect}));var r=n(542);function ScrollEffect(){return Object(r.a)(),null}},function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),a=n(12),o=n.n(a),c=n(1),s=n(2),l=n(4),u=n.n(l),d=n(137),g=n(26),f=n(175),m=n(10),p=u.a.useSelect;t.a=function OfflineNotification(){var t=Object(c.useState)(!1),n=i()(t,2),r=n[0],a=n[1],l=p((function(e){return e(g.b).getIsOnline()}));return Object(c.useEffect)((function(){l&&r&&a(!1)}),[l,r]),e.createElement("div",{"aria-live":"polite"},!l&&!r&&e.createElement("div",{className:o()("googlesitekit-margin-top-0","googlesitekit-margin-bottom-0","googlesitekit-settings-notice-offline-notice","googlesitekit-settings-notice","googlesitekit-settings-notice--single-row","googlesitekit-settings-notice--".concat(d.b))},e.createElement("div",{className:"googlesitekit-settings-notice__body"},e.createElement(f.a,{notice:Object(s.__)("You are currently offline. Some features may not be available.","google-site-kit")})),e.createElement("div",{className:"googlesitekit-settings-notice__button"},e.createElement(m.Button,{onClick:function(){a(!0)}},Object(s.__)("OK, Got it!","google-site-kit")))))}}).call(this,n(3))},,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r="enable-plugin-auto-update-notification",i="auto-update-banner-hide-notification-on-first-setup",a="auto-update-cta"},,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){var r=n(5),i=n.n(r),a=n(6),o=n.n(a),c=n(16),s=n.n(c),l=n(17),u=n.n(l),d=n(1),g=n(2),f=n(4),m=n.n(f),p=n(34),h=n(18),v=n(7),b=n(9),_=n(136),O=n(173),y=n(238),E=n(239),k=n(505),j=n(506),S=n(507),w=n(8),C=n(80),A=n(60),N=n(19),T=m.a.useSelect,D=m.a.useDispatch;t.a=Object(C.a)({moduleName:"analytics-4"})((function EnhancedMeasurementActivationBanner(){var t=Object(N.a)(),n=Object(d.useState)(_.b),r=u()(n,2),a=r[0],c=r[1],l=Object(d.useState)(void 0),f=u()(l,2),m=f[0],C=f[1],x=Object(d.useState)(!1),R=u()(x,2),M=R[0],P=R[1],L=Object(d.useState)(null),I=u()(L,2),B=I[0],z=I[1],F=T((function(e){return e(b.m).getPropertyID()})),W=T((function(e){return e(b.m).getWebDataStreamID()})),V=T((function(e){return e(v.a).isItemDismissed(_.d)})),H=T((function(e){return e(h.a).hasModuleOwnershipOrAccess("analytics-4")})),U=T((function(e){if(Object(A.f)(F)&&Object(A.h)(W)&&H&&!V)return e(b.m).isEnhancedMeasurementStreamEnabled(F,W)})),q=T((function(e){return e(v.a).hasScope(b.d)})),G=T((function(e){return e(p.a).getValue(b.j,"autoSubmit")})),K=D(p.a).setValues,Y=D(v.a).dismissItem,$=D(b.m).submitChanges,X=Object(O.a)(_.e).isTooltipVisible,Q=Object(y.a)(_.e),Z=Object(d.useCallback)(s()(i.a.mark((function e(){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),K(b.f,o()({},b.e,!0)),e.next=4,$();case 4:if(n=e.sent,r=n.error,P(!1),!r){e.next=11;break}return z(r),c(_.b),e.abrupt("return");case 11:Object(w.B)("".concat(t,"_enhanced-measurement-notification"),"confirm_notification"),c(_.c);case 13:case"end":return e.stop()}}),e)}))),[K,$,t]);return Object(d.useEffect)((function(){!1===U&&void 0===m&&C(!0)}),[m,U]),Object(d.useEffect)((function(){function e(){return(e=s()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return K(b.j,{autoSubmit:!1}),c(_.a),e.next=4,Z();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}G&&q&&function(){e.apply(this,arguments)}()}),[q,K,Z,G]),X?e.createElement(E.a,{title:Object(g.__)("Enable enhanced measurement later here","google-site-kit"),content:Object(g.__)("You can always turn on enhanced measurement later in Site Kit Settings","google-site-kit"),dismissLabel:Object(g.__)("Got it","google-site-kit"),tooltipStateKey:_.e}):!m||V?null:a===_.b?e.createElement(j.a,{errorNotice:B,isSaving:M,onDismiss:function(){Q(),Y(_.d,{expiresInSeconds:Object(w.p)("month")})},onSubmit:Z}):a===_.a?e.createElement(k.a,null):a===_.c?e.createElement(S.a,null):null}))}).call(this,n(3))},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InProgressBanner}));var r=n(2),i=n(4),a=n.n(i),o=n(14),c=n(10),s=n(43),l=n(338),u=a.a.useSelect;function InProgressBanner(){var t=u((function(e){return e(o.c).getGoogleSupportURL({path:"/analytics/answer/9216061"})}));return e.createElement(s.b,{id:"googlesitekit-enhanced-measurement-activation-banner",className:"googlesitekit-enhanced-measurement-success-banner",title:Object(r.__)("Setup in progress","google-site-kit"),description:Object(r.__)("Enhanced measurement is being enabled.","google-site-kit"),WinImageSVG:function WinImageSVG(){return e.createElement(l.a,null)},format:"small",type:"win-success",learnMoreLabel:Object(r.__)("Learn more","google-site-kit"),learnMoreURL:t},e.createElement(c.CircularProgress,{size:20}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SetupBanner}));var i=n(5),a=n.n(i),o=n(16),c=n.n(o),s=n(0),l=n.n(s),u=n(1),d=n(2),g=n(285),f=n(4),m=n.n(f),p=n(10),h=n(34),v=n(31),b=n(14),_=n(7),O=n(9),y=n(46),E=n(8),k=n(43),j=n(338),S=n(124),w=n(187),C=n(19),A=m.a.useDispatch,N=m.a.useSelect;function SetupBanner(t){var n=t.children,i=t.errorNotice,o=t.isDismissed,s=t.isSaving,l=t.onDismiss,f=t.onSubmit,m=Object(C.a)(),T=Object(g.a)(e.location.href,{notification:"enhanced_measurement"}),D=N((function(e){return e(_.a).hasScope(O.d)})),x=N((function(e){return e(b.c).getGoogleSupportURL({path:"/analytics/answer/9216061"})})),R=N((function(e){var t=e(_.a).getConnectURL({additionalScopes:[O.d],redirectURL:T});return!!t&&e(v.a).isNavigatingTo(t)})),M=A(h.a).setValues,P=A(_.a).setPermissionScopeError,L=Object(u.useCallback)(c()(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=[],!1===D&&t.push(O.d),!(t.length>0)){e.next=6;break}return M(O.j,{autoSubmit:!0}),P({code:y.a,message:Object(d.__)("Additional permissions are required to enable enhanced measurement for the selected web data stream","google-site-kit"),data:{status:403,scopes:t,skipModal:!0,redirectURL:T}}),e.abrupt("return");case 6:return e.next=8,f();case 8:case"end":return e.stop()}}),e)}))),[D,f,T,P,M]),I=Object(u.useCallback)((function(){Object(E.B)("".concat(m,"_enhanced-measurement-notification"),"dismiss_notification"),null==l||l()}),[l,m]),B=Object(u.useCallback)((function(){Object(E.B)("".concat(m,"_enhanced-measurement-notification"),"click_learn_more_link")}),[m]);Object(u.useEffect)((function(){Object(E.B)("".concat(m,"_enhanced-measurement-notification"),"view_notification")}),[m]);var z=D?Object(d.__)("Enable enhanced measurement in Analytics to automatically track metrics like file downloads, video plays, form interactions, etc. No extra code required.","google-site-kit"):Object(d.__)("Enable enhanced measurement in Analytics to automatically track metrics like file downloads, video plays, form interactions, etc. No extra code required — you’ll be redirected to give permission for Site Kit to enable it on your behalf.","google-site-kit");return r.createElement(k.b,{id:"googlesitekit-enhanced-measurement-activation-banner",className:"googlesitekit-enhanced-measurement-setup-banner",title:Object(d.__)("Understand how visitors interact with your content","google-site-kit"),description:z,learnMoreLabel:Object(d.__)("Learn more","google-site-kit"),learnMoreURL:x,onLearnMoreClick:B,ctaComponent:r.createElement(p.SpinnerButton,{onClick:L,isSaving:s||R},Object(d.__)("Enable now","google-site-kit")),footer:r.createElement("p",{className:"googlesitekit-enhanced-measurement-setup-banner__footer-notice"},Object(d.__)("You can always add/edit this in the Site Kit Settings","google-site-kit")),dismiss:Object(d.__)("Maybe later","google-site-kit"),WinImageSVG:function WinImageSVG(){return r.createElement(j.a,null)},format:"small",dismissExpires:Object(E.p)("month"),onDismiss:I},i&&r.createElement(S.a,{error:i}),!o&&r.createElement(w.a,{triggerID:"view_enhanced_measurement_cta",ttl:E.a}),n)}SetupBanner.propTypes={onSubmitSuccess:l.a.func,onDismiss:l.a.func,children:l.a.node}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SuccessBanner}));var r=n(2),i=n(1),a=n(4),o=n.n(a),c=n(14),s=n(7),l=n(136),u=n(43),d=n(338),g=n(19),f=n(8),m=o.a.useDispatch,p=o.a.useSelect;function SuccessBanner(){var t=Object(g.a)(),n=p((function(e){return e(c.c).getGoogleSupportURL({path:"/analytics/answer/9216061"})})),a=m(s.a).dismissItem,o=Object(i.useCallback)((function(){a(l.d),Object(f.B)("".concat(t,"_enhanced-measurement-success"),"confirm_notification")}),[t,a]);return Object(i.useEffect)((function(){Object(f.B)("".concat(t,"_enhanced-measurement-success"),"view_notification")}),[t]),e.createElement(u.b,{id:"googlesitekit-enhanced-measurement-activation-banner",className:"googlesitekit-enhanced-measurement-success-banner",title:Object(r.__)("You successfully enabled enhanced measurement for your site","google-site-kit"),description:Object(r.__)("Your configured Analytics web data stream will now automatically measure interactions on your site in addition to standard page views measurement.","google-site-kit"),dismiss:Object(r.__)("OK, Got it","google-site-kit"),onDismiss:o,WinImageSVG:function WinImageSVG(){return e.createElement(d.a,null)},format:"small",type:"win-success",learnMoreLabel:Object(r.__)("Learn more","google-site-kit"),learnMoreURL:n})}}).call(this,n(3))},,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardSharingSettingsButton}));var r=n(2),i=n(1),a=n(4),o=n.n(a),c=n(10),s=n(339),l=n(19),u=n(8),d=n(26),g=n(14),f=n(115),m=n(519),p=o.a.useSelect,h=o.a.useDispatch;function DashboardSharingSettingsButton(){var t=Object(l.a)(),n=h(d.b).setValue,a=p((function(e){return e(g.c).hasMultipleAdmins()})),o=Object(i.useCallback)((function(){Object(u.B)("".concat(t,"_headerbar"),"open_sharing",a?"advanced":"simple"),n(f.d,!0)}),[n,t,a]);return e.createElement(i.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}),tooltipEnterDelayInMS:500}),e.createElement(m.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardSharingDialog}));var r=n(615),i=n(12),a=n.n(i),o=n(2),c=n(1),s=n(48),l=n(220),u=n(935),d=n(4),g=n.n(d),f=n(10),m=n(26),p=n(7),h=n(14),v=n(18),b=n(115),_=n(28),O=n(400),y=n(85),E=n(15),k=n(339),j=n(23),S=n(520),w=n(523),C=g.a.useSelect,A=g.a.useDispatch;function DashboardSharingDialog(){var t=Object(_.e)(),n=Object(r.a)().y,i=A(m.b).setValue,d=A(p.a).triggerOnDemandTour,g=A(v.a).rollbackSharingSettings,N=C((function(e){return!!e(m.b).getValue(b.d)})),T=C((function(e){return!!e(m.b).getValue(b.c)})),D=C((function(e){return e(m.b).getValue(b.a)})),x=C((function(e){return e(v.a).haveSharingSettingsChanged()})),R=C((function(e){return e(h.c).getDocumentationLinkURL("dashboard-sharing")})),M=Object(c.useRef)(),P=Object(c.useCallback)((function(){M.current||(M.current=!0,d(O.a))}),[d]),L={};t===_.b&&(L.top="".concat(n<46?46-n:0,"px"),L.height="calc(100% - 46px + ".concat(n<46?n:46,"px)")),Object(c.useEffect)((function(){!N&&x&&g()}),[N,x,g]);var I=Object(c.useCallback)((function(){i(b.d,!0)}),[i]),B=Object(c.useCallback)((function(){i(b.d,!1),i(b.a,void 0)}),[i]),z=Object(c.useCallback)((function(){B(),i(b.c,!0)}),[B,i]),F=Object(c.useCallback)((function(){i(b.c,!1),I()}),[I,i]),W=Object(c.useCallback)((function(){if(T)return F(),null;B()}),[F,B,T]);return e.createElement(y.a,null,e.createElement(E.b,{open:N||T,onOpen:P,onClose:W,className:"googlesitekit-dialog googlesitekit-sharing-settings-dialog",style:L,escapeKeyAction:void 0===D?"close":""},e.createElement("div",{className:"googlesitekit-dialog__back-wrapper","aria-hidden":t!==_.b},e.createElement(f.Button,{"aria-label":Object(o.__)("Back","google-site-kit"),className:"googlesitekit-dialog__back",onClick:W},e.createElement(l.a,{icon:u.a}))),e.createElement(E.c,{className:"googlesitekit-dialog__content"},e.createElement("div",{className:"googlesitekit-dialog__header"},N&&e.createElement("div",{className:"googlesitekit-dialog__header-icon","aria-hidden":t===_.b},e.createElement("span",null,e.createElement(k.a,{width:20,height:20}))),e.createElement("div",{className:"googlesitekit-dialog__header-titles"},e.createElement("h2",{className:"googlesitekit-dialog__title"},N&&Object(o.__)("Dashboard sharing & permissions","google-site-kit"),T&&Object(o.__)("Reset Dashboard Sharing permissions","google-site-kit")),e.createElement("p",{className:a()("googlesitekit-dialog__subtitle",{"googlesitekit-dialog__subtitle--emphasis":T})},N&&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})}),T&&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")))),N&&e.createElement("div",{className:"googlesitekit-dialog__main"},e.createElement(S.a,null))),e.createElement(E.d,{className:"googlesitekit-dialog__footer"},e.createElement(w.a,{closeDialog:W,openResetDialog:z}))))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return DashboardSharingSettings}));var i=n(12),a=n.n(i),o=n(2),c=n(4),s=n.n(c),l=n(521),u=n(18),d=n(14),g=n(7),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(),i=[],a=[],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?i.push(e):t(g.a).hasCapability(g.A,e.slug)?a.push(e):o.push(e)}return[].concat(i,a,o)}));return void 0===n?null:r.createElement("div",{className:a()("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,i=e.owner;return r.createElement(l.a,{key:t,moduleSlug:t,moduleName:n,ownerUsername:null==i?void 0:i.login})}))))}}).call(this,n(717)(e),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Module}));var r=n(17),i=n.n(r),a=n(0),o=n.n(a),c=n(12),s=n.n(c),l=n(2),u=n(220),d=n(433),g=n(1),f=n(48),m=n(10),p=n(4),h=n.n(p),v=n(154),b=n(522),_=n(19),O=n(18),y=n(14),E=n(26),k=n(115),j=n(8),S=n(7),w=h.a.useSelect,C=h.a.useDispatch,A=[{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,a=t.ownerUsername,o=Object(_.a)(),c=Object(g.useRef)(),p=Object(g.useState)(void 0),h=i()(p,2),N=h[0],T=h[1],D=w((function(e){return e(y.c).hasMultipleAdmins()})),x=w((function(e){var t;return null!==(t=e(O.a).getSharingManagement(n))&&void 0!==t?t:"owner"})),R=w((function(e){return e(S.a).hasCapability(S.z,n)})),M=w((function(e){return e(S.a).hasCapability(S.A,n)})),P=w((function(e){return e(O.a).getSharedOwnershipModules()})),L=w((function(e){return e(E.b).getValue(k.a)})),I=w((function(e){return e(O.a).isDoingSubmitSharingChanges()})),B=C(O.a).setSharingManagement,z=P&&Object.keys(P).includes(n);Object(g.useEffect)((function(){T(z?"all_admins":x)}),[x,z]);var F=w((function(e){return e(O.a).haveModuleSharingSettingsChanged(n,"management")}));Object(g.useEffect)((function(){F&&Object(j.B)("".concat(o,"_sharing"),"change_management_".concat(x),n)}),[F,x,n,o]);var W=Object(g.useCallback)((function(e){var t=e.target.value;T(t),B(n,t)}),[B,T,n]),V=n===L,H=!V&&void 0!==L||I;return e.createElement("div",{className:s()("googlesitekit-dashboard-sharing-settings__module","googlesitekit-dashboard-sharing-settings__row",{"googlesitekit-dashboard-sharing-settings__row--editing":V,"googlesitekit-dashboard-sharing-settings__row--disabled":H}),ref:c},e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__column--product"},e.createElement(v.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"},M&&e.createElement(b.a,{moduleSlug:n,isLocked:H,ref:c}),!M&&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:N,options:A,onChange:W,onClick:W,outlined:!0}),!z&&!R&&a&&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"),a),{span:e.createElement("span",null),strong:e.createElement("strong",null)}),e.createElement(m.Tooltip,{title:M?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"),a):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"),a)},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))},function(e,t,n){"use strict";(function(e){var r=n(29),i=n.n(r),a=n(0),o=n.n(a),c=n(12),s=n.n(c),l=n(2),u=n(57),d=n(1),g=n(4),f=n.n(g),m=n(10),p=n(23),h=n(339),v=n(424),b=n(19),_=n(109),O=n(8),y=n(18),E=n(26),k=n(115),j=f.a.useSelect,S=f.a.useDispatch,w=Object(l.__)("All","google-site-kit"),C=Object(d.forwardRef)((function(t,n){var r=t.moduleSlug,a=t.isLocked,o=void 0!==a&&a,c=Object(b.a)(),g=Object(d.useRef)(),f=S(y.a).setSharedRoles,C=S(E.b).setValue,A=j((function(e){return e(y.a).getShareableRoles()})),N=j((function(e){return e(y.a).getSharedRoles(r)})),T=j((function(e){return e(E.b).getValue(k.a)}))===r;Object(_.a)([u.c],n,(function(){T&&C(k.a,void 0)}));var D=j((function(e){return e(y.a).haveModuleSharingSettingsChanged(r,"sharedRoles")})),x=Object(d.useCallback)((function(){T?(C(k.a,void 0),D&&Object(O.B)("".concat(c,"_sharing"),"change_shared_roles",r)):C(k.a,r)}),[T,D,r,C,c]);Object(d.useEffect)((function(){g.current&&(T?g.current.firstChild.focus():g.current.focus())}),[T]);var R=Object(d.useCallback)((function(e){var t,n=e.type,a=e.target,o=e.keyCode;if("keydown"!==n||o===u.b){var c,s=a.closest(".mdc-chip"),l=null==s||null===(t=s.dataset)||void 0===t?void 0:t.chipId;if(l)c="all"===l?(null==N?void 0:N.length)===(null==A?void 0:A.length)?[]:A.map((function(e){return e.id})):null===N?[l]:N.includes(l)?N.filter((function(e){return e!==l})):[].concat(i()(N),[l]),f(r,c)}}),[r,f,N,A]);return A?e.createElement("div",{className:s()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":T})},!T&&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}),!T&&(null==N?void 0:N.length)>0&&e.createElement("span",{className:"googlesitekit-user-role-select__current-roles"},(null==A?void 0:A.reduce((function(e,t){return N.includes(t.id)&&e.push(t.displayName),e}),[])).join(", ")),!T&&(!N||0===(null==N?void 0:N.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"))),T&&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==N?void 0:N.length)===(null==A?void 0:A.length),className:"googlesitekit-user-role-select__chip--all"}),A.map((function(t,n){var r=t.id,i=t.displayName;return e.createElement(m.Chip,{key:n,id:r,label:i,onClick:R,onKeyDown:R,selected:null==N?void 0:N.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(v.a,{width:18,height:18}),tabIndex:o?-1:void 0}))):null}));C.propTypes={moduleSlug:o.a.string.isRequired,isLocked:o.a.bool},t.a=C}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Footer}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(17),s=n.n(c),l=n(0),u=n.n(l),d=n(2),g=n(1),f=n(10),m=n(4),p=n.n(m),h=n(18),v=n(26),b=n(115),_=n(19),O=n(8),y=n(23),E=n(524),k=n(77),j=p.a.useSelect,S=p.a.useDispatch;function Footer(t){var n=t.closeDialog,r=t.openResetDialog,a=Object(_.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),C=w[0],A=w[1],N=j((function(e){return e(h.a).canSubmitSharingChanges()})),T=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()})),M=j((function(e){return!!e(v.b).getValue(b.d)})),P=j((function(e){return!!e(v.b).getValue(b.c)})),L=S(h.a),I=L.resetSharingSettings,B=L.saveSharingSettings,z=S(v.b).setValue,F=Object(g.useCallback)(o()(i.a.mark((function e(){var t,r;return i.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(O.B)("".concat(a,"_sharing"),"settings_confirm"),z(b.a,void 0),n();case 11:case"end":return e.stop()}}),e)}))),[a,B,z,n]),W=Object(g.useCallback)(o()(i.a.mark((function e(){var t,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(null),A(!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:A(!1),n();case 11:case"end":return e.stop()}}),e)}))),[n,I]),V=Object(g.useCallback)((function(){Object(O.B)("".concat(a,"_sharing"),"settings_cancel"),n()}),[n,a]),H=u||D||x;return e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__footer"},H&&e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__footer-notice"},u&&e.createElement(k.a,{message:u}),!u&&e.createElement(E.a,null)),e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions"},R&&M&&!H&&e.createElement("div",{className:"googlesitekit-dashboard-sharing-settings__footer-actions-left"},e.createElement(y.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(f.Button,{tertiary:!0,onClick:V},Object(d.__)("Cancel","google-site-kit")),M&&e.createElement(f.SpinnerButton,{onClick:F,disabled:T||!N,isSaving:T},Object(d.__)("Apply","google-site-kit")),P&&e.createElement(f.SpinnerButton,{onClick:W,disabled:C,isSaving:C,danger:!0},Object(d.__)("Reset","google-site-kit")))))}Footer.propTypes={closeDialog:u.a.func.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Notice}));var r=n(2),i=n(48),a=n(4),o=n.n(a),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")})),a=s((function(e){return e(c.a).haveSharingSettingsExpanded("sharedRoles")}));return e.createElement("p",{className:"googlesitekit-dashboard-sharing-settings__notice"},n&&t&&Object(i.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&&a&&Object(i.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))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetAreaRenderer}));var r=n(17),i=n.n(r),a=n(6),o=n.n(a),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(1),g=n(4),f=n.n(g),m=n(233),p=n(111),h=n(41),v=n(26),b=n(15),_=n(28),O=n(183),y=n(526),E=n(527),k=n(36),j=n(7),S=n(528),w=f.a.useSelect;function C(e){var t,n=(t={},o()(t,_.d,48),o()(t,_.a,48),o()(t,_.c,32),o()(t,_.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,r=t.slug,a=t.contextID,c=Object(k.a)(),s=w((function(e){return c?e(j.a).getViewableModules():null})),l=Object(_.e)(),g=Object(d.useRef)(),f=Object(S.a)(g,{rootMargin:C(l),threshold:0}),p=w((function(e){return e(h.a).getWidgetArea(r)})),A=w((function(e){return e(h.a).getWidgets(r,{modules:s||void 0})})),N=w((function(e){return e(h.a).getWidgetStates()})),T=w((function(e){return e(h.a).isWidgetAreaActive(r,{modules:s||void 0})})),D=w((function(e){return e(v.b).getValue(v.a)})),x=Object(d.useState)({key:"WidgetAreaRenderer-".concat(r),value:D?D===a:!!(null==f?void 0:f.intersectionRatio)}),R=i()(x,2),M=R[0],P=R[1];if(Object(d.useEffect)((function(){P({key:"WidgetAreaRenderer-".concat(r),value:D?D===a:!!(null==f?void 0:f.intersectionRatio)})}),[f,r,D,a]),void 0===s)return null;var L=Object(m.d)(A,N),I=L.columnWidths,B=L.rowIndexes,z=Object(m.b)(A,N,{columnWidths:I,rowIndexes:B}),F=z.gridColumnWidths,W=z.overrideComponents,V=A.map((function(t,n){return e.createElement(E.a,{key:"".concat(t.slug,"-wrapper"),gridColumnWidth:F[n]},e.createElement(y.a,{OverrideComponent:W[n]?function(){var t=W[n],r=t.Component,i=t.metadata;return e.createElement(r,i)}:void 0,slug:t.slug}))})),H=p.Icon,U=p.title,q=p.style,G=p.subtitle,K=p.CTA;return e.createElement(O.a,{value:M},!!T&&e.createElement(b.e,{className:u()("googlesitekit-widget-area","googlesitekit-widget-area--".concat(r),"googlesitekit-widget-area--".concat(q)),ref:g},e.createElement(b.k,null,e.createElement(b.a,{className:"googlesitekit-widget-area-header",size:12},H&&e.createElement(H,{width:33,height:33}),U&&e.createElement("h3",{className:"googlesitekit-widget-area-header__title googlesitekit-heading-3"},U),(G||K)&&e.createElement("div",{className:"googlesitekit-widget-area-header__details"},G&&e.createElement("h4",{className:"googlesitekit-widget-area-header__subtitle"},G),K&&e.createElement("div",{className:"googlesitekit-widget-area-header__cta"},e.createElement(K,null))))),e.createElement("div",{className:"googlesitekit-widget-area-widgets"},e.createElement(b.k,null,q===h.b.BOXES&&V,q===h.b.COMPOSITE&&e.createElement(b.a,{size:12},e.createElement(b.e,null,e.createElement(b.k,null,V)))))),!T&&e.createElement(b.e,{className:u()(m.a,"googlesitekit-widget-area",(n={},o()(n,"googlesitekit-widget-area--".concat(r),!!r),o()(n,"googlesitekit-widget-area--".concat(q),!!q),n)),ref:g},V))}WidgetAreaRenderer.propTypes={slug:s.a.string.isRequired,contextID:s.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(13),o=n(1),c=n(4),s=n.n(c),l=n(41),u=n(18),d=n(276),g=n(277),f=n(233),m=n(146),p=n(36),h=s.a.useSelect;function WidgetRenderer(t){var n=t.slug,r=t.OverrideComponent,i=h((function(e){return e(l.a).getWidget(n)})),c=Object(f.c)(n),s=c.Widget,v=c.WidgetNull,b=h((function(e){return e(u.a).getRecoverableModules()})),_=Object(p.a)(),O=Object(o.useMemo)((function(){return i&&b&&Object(a.intersection)(i.modules,Object.keys(b))}),[b,i]),y=h((function(e){return e(l.a).isWidgetPreloaded(n)}));if(!i||void 0===O)return e.createElement(v,null);var E=i.Component,k=i.wrapWidget,j=e.createElement(E,c);return _&&(null==O?void 0:O.length)&&(j=e.createElement(g.a,{widgetSlug:n,moduleSlugs:O})),r?j=e.createElement(o.Fragment,null,e.createElement(d.a,{widgetSlug:"overridden"},e.createElement(r,null)),e.createElement("div",{className:m.a},j)):k&&(j=e.createElement(s,null,j)),y?e.createElement("div",{className:m.a},j):j}WidgetRenderer.propTypes={slug:i.a.string.isRequired,OverrideComponent:i.a.elementType},t.a=WidgetRenderer}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(146),o=n(15);function WidgetCellWrapper(t){var n=t.gridColumnWidth,r=t.children;return 0===n?e.createElement("div",{className:a.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)}WidgetCellWrapper.propTypes={gridColumnWidth:i.a.number.isRequired,children:i.a.element.isRequired},t.a=WidgetCellWrapper}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),a=n(1);t.a=function(t,n){var r=Object(a.useState)(null),o=i()(r,2),c=o[0],s=o[1];return Object(a.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(24))},function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),a=n(88),o=n(391),c=n(212),s=n(1),l=n(2),u=n(4),d=n.n(u),g=n(10),f=n(103),m=n(530),p=n(531),h=n(532),v=n(14),b=n(31),_=n(8),O=n(55),y=n(19),E=d.a.useSelect,k=d.a.useDispatch;t.a=function EntitySearchInput(){var t=Object(c.a)(EntitySearchInput,"EntitySearchInput"),n=Object(s.useState)(!1),r=i()(n,2),u=r[0],d=r[1],j=Object(s.useState)(!1),S=i()(j,2),w=S[0],C=S[1],A=Object(s.useState)(!1),N=i()(A,2),T=N[0],D=N[1],x=Object(y.a)(),R=Object(O.c)(),M=Object(s.useRef)(),P=Object(s.useCallback)((function(){Object(_.B)("".concat(x,"_headerbar"),"open_urlsearch"),d(!0)}),[x]),L=Object(s.useCallback)((function(){Object(_.B)("".concat(x,"_headerbar"),"close_urlsearch"),d(!1)}),[x]),I=Object(s.useState)({}),B=i()(I,2),z=B[0],F=B[1],W=E((function(e){return(null==z?void 0:z.url)?e(v.c).getAdminURL("googlesitekit-dashboard",{permaLink:z.url}):null})),V=k(b.a).navigateTo;return Object(s.useEffect)((function(){W&&Object(_.B)("".concat(x,"_headerbar_urlsearch"),"open_urldetails").finally((function(){V(W)}))}),[W,V,x]),Object(a.a)((function(){R===O.a&&d(!0)})),Object(o.a)((function(){var e;u||(null==M||null===(e=M.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:F,placeholder:Object(l.__)("Enter title or URL…","google-site-kit"),isLoading:w,setIsLoading:C,showDropdown:T,onClose:L,autoFocus:!0}),w&&T&&e.createElement(g.ProgressBar,{className:"googlesitekit-entity-search__loading",compress:!0}),e.createElement("div",{className:"googlesitekit-entity-search__actions"},e.createElement(g.Button,{onClick:L,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,tooltipEnterDelayInMS:500}))):e.createElement("div",{className:"googlesitekit-entity-search"},e.createElement(g.Button,{className:"googlesitekit-border-radius-round--phone googlesitekit-button-icon--phone",onClick:P,text:!0,ref:M,title:Object(l.__)("Search","google-site-kit"),trailingIcon:e.createElement(m.a,{width:"20",height:"20"}),tooltip:!0,tooltipEnterDelayInMS:500},Object(l.__)("URL Search","google-site-kit")))}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 20 20",fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 20 20",fill:"none"},e),a)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PostSearcherAutoSuggest}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(17),s=n.n(c),l=n(0),u=n.n(l),d=n(284),g=n(1),f=n(2),m=n(57),p=n(37),h=n.n(p),v=n(4),b=n.n(v),_=n(533),O=n(14),y=b.a.useSelect,E=function(){};function PostSearcherAutoSuggest(t){var n=t.id,r=t.match,a=t.setMatch,c=t.isLoading,l=t.showDropdown,u=void 0===l||l,p=t.setIsLoading,v=void 0===p?E:p,b=t.setIsActive,k=void 0===b?E:b,j=t.autoFocus,S=t.setCanSubmit,w=void 0===S?E:S,C=t.onClose,A=void 0===C?E:C,N=t.placeholder,T=void 0===N?"":N,D=Object(g.useRef)(),x=Object(g.useState)(""),R=s()(x,2),M=R[0],P=R[1],L=null==r?void 0:r.title,I=Object(_.a)(M,M===L?0:200),B=Object(g.useState)([]),z=s()(B,2),F=z[0],W=z[1],V=Object(f.__)("No results found","google-site-kit"),H=y((function(e){return e(O.c).getCurrentEntityTitle()})),U=Object(g.useRef)(null),q=Object(g.useCallback)((function(){k(!0)}),[k]),G=Object(g.useCallback)((function(e){var t,n,r;(null===(t=e.relatedTarget)||void 0===t?void 0:t.classList.contains("autocomplete__option--result"))||(k(!1),P(null!==(n=null!==(r=U.current)&&void 0!==r?r:H)&&void 0!==n?n:""))}),[H,k]),K=Object(g.useCallback)((function(e){if(Array.isArray(F)&&e!==V){var t=F.find((function(t){return t.title.toLowerCase()===e.toLowerCase()}));t?(U.current=t.title,w(!0),a(t),P(t.title)):U.current=null}else U.current=null,w(!1)}),[F,w,a,V,P]),Y=Object(g.useCallback)((function(e){w(!1),P(e.target.value)}),[w]);Object(g.useEffect)((function(){if(""!==I&&I!==H&&(null==I?void 0:I.toLowerCase())!==(null==L?void 0:L.toLowerCase())){var e="undefined"==typeof AbortController?void 0:new AbortController;return(t=o()(i.a.mark((function t(){var n,r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v(!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,W(r),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),W(null);case 13:return t.prev=13,n===D.current&&v(!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,v,H,L]),Object(g.useEffect)((function(){M||W([])}),[M]),Object(g.useEffect)((function(){H&&P(H)}),[H]);var $=Object(g.useRef)(),X=Object(g.useCallback)((function(e){var t=$.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 A();case m.b:return K(M)}}),[A,K,M]);return e.createElement(d.a,{className:"autocomplete__wrapper",onSelect:K},e.createElement(d.b,{ref:$,id:n,className:"autocomplete__input autocomplete__input--default",type:"text",onBlur:G,onChange:Y,onFocus:q,placeholder:T,onKeyDown:X,value:M,autoFocus:j}),!c&&u&&I!==H&&""!==I&&0===(null==F?void 0:F.length)&&e.createElement(d.e,{portal:!1},e.createElement(d.c,{className:"autocomplete__menu autocomplete__menu--inline"},e.createElement(d.d,{value:V,className:"autocomplete__option autocomplete__option--no-results"}))),u&&""!==I&&I!==H&&(null==F?void 0:F.length)>0&&e.createElement(d.e,{portal:!1},e.createElement(d.c,{className:"autocomplete__menu autocomplete__menu--inline"},F.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))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(17),i=n.n(r),a=n(1);function o(e,t){var n=Object(a.useState)(e),r=i()(n,2),o=r[0],c=r[1];return Object(a.useEffect)((function(){var n=setTimeout((function(){c(e)}),t);return function(){clearTimeout(n)}}),[e,t]),o}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DateRangeSelector}));var r=n(17),i=n.n(r),a=n(219),o=n(12),c=n.n(o),s=n(1),l=n(57),u=n(2),d=n(4),g=n.n(d),f=n(10),m=n(535),p=n(7),h=n(109),v=n(61),b=n(8),_=n(26),O=n(19),y=g.a.useSelect,E=g.a.useDispatch;function DateRangeSelector(){var t,n=Object(v.f)(),r=y((function(e){return e(p.a).getDateRange()})),o=E(p.a).setDateRange,d=E(_.b).resetInViewHook,g=Object(s.useState)(!1),k=i()(g,2),j=k[0],S=k[1],w=Object(s.useRef)(),C=Object(O.a)();Object(a.a)(w,(function(){return S(!1)})),Object(h.a)([l.c,l.f],w,(function(){return S(!1)}));var A=Object(s.useCallback)((function(){S(!j)}),[j]),N=Object(s.useCallback)((function(e){var t=Object.values(n)[e].slug;r!==t&&Object(b.B)("".concat(C,"_headerbar"),"change_daterange",t),d(),o(t),S(!1)}),[n,r,d,o,C]),T=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:A,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,tooltipEnterDelayInMS:500},T),e.createElement(f.Menu,{menuOpen:j,menuItems:D,onSelected:N,id:"date-range-selector-menu",className:"googlesitekit-width-auto"}))}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 18 20"},e),a)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GatheringDataNotification}));var r=n(0),i=n.n(r),a=n(2),o=n(1),c=n(4),s=n.n(c),l=n(43),u=n(537),d=n(14),g=n(8),f=n(19),m=s.a.useSelect;function GatheringDataNotification(t){var n=t.title,r=t.gatheringDataWaitTimeInHours,i=Object(f.a)(),c="".concat(i,"_gathering-data-notification"),s=Object(o.useCallback)((function(){Object(g.B)(c,"view_notification")}),[c]),p=Object(o.useCallback)((function(){Object(g.B)(c,"dismiss_notification")}),[c]),h=Object(o.useCallback)((function(){Object(g.B)(c,"confirm_notification")}),[c]),v=m((function(e){return e(d.c).getAdminURL("googlesitekit-settings")}));return r?e.createElement(l.b,{id:"gathering-data-notification",title:n,description:Object(a.sprintf)( /* translators: %s: the number of hours the site can be in a gathering data state */ Object(a._n)("It can take up to %s hour before stats show up for your site. While you’re waiting, connect more services to get more stats.","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.",r,"google-site-kit"),r),format:"small",onView:s,ctaLabel:Object(a.__)("See other services","google-site-kit"),ctaLink:"".concat(v,"#/connect-more-services"),onCTAClick:h,dismiss:Object(a.__)("Maybe later","google-site-kit"),dismissExpires:Object(g.p)("day"),SmallImageSVG:u.a,onDismiss:p,isDismissible:!0}):null}GatheringDataNotification.propTypes={title:i.a.string,gatheringDataWaitTimeInHours:i.a.number}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,g,f,m)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ZeroDataNotification}));var r=n(308),i=n(1),a=n(2),o=n(14),c=n(43),s=n(539),l=n(8),u=n(19);function ZeroDataNotification(){var t=Object(u.a)(),n="".concat(t,"_zero-data-notification"),d=Object(i.useCallback)((function(){Object(l.B)(n,"view_notification")}),[n]),g=Object(i.useCallback)((function(){Object(l.B)(n,"dismiss_notification")}),[n]),f=Object(i.useCallback)((function(){Object(l.B)(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(a.__)("Not enough traffic yet to display stats","google-site-kit"),description:Object(a.__)("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(a.__)("Learn more","google-site-kit"),learnMoreURL:m,dismiss:Object(a.__)("Remind me later","google-site-kit"),dismissExpires:Object(l.p)("day"),SmallImageSVG:s.a,onView:d,onDismiss:g,onLearnMoreClick:f,isDismissible:!0})}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=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",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,g)}},function(e,t,n){"use strict";(function(e){var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(17),s=n.n(c),l=n(0),u=n.n(l),d=n(218),g=n(2),f=n(1),m=n(48),p=n(4),h=n.n(p),v=n(10),b=n(31),_=n(14),O=n(7),y=n(9),E=n(233),k=n(15),j=n(541),S=n(162),w=n(77),C=n(23),A=n(19),N=n(36),T=n(8),D=n(274),x=h.a.useSelect,R=h.a.useDispatch;function ConsentModeSetupCTAWidget(t){var n=t.Widget,r=t.WidgetNull,a=Object(f.useState)(!1),c=s()(a,2),l=c[0],u=c[1],p=Object(f.useState)(null),h=s()(p,2),E=h[0],M=h[1],P=Object(A.a)(),L=Object(N.a)(),I=x((function(e){return e(_.c).isConsentModeEnabled()})),B=x((function(e){return e(y.m).getAdsConversionID()})),z=x((function(e){return e(_.c).getAdminURL("googlesitekit-settings")})),F=x((function(e){return e(_.c).getDocumentationLinkURL("consent-mode")})),W=Object(S.b)(D.a),V=Object(S.c)(D.a).isTooltipVisible,H=x((function(e){return e(O.a).isPromptDismissed(D.a)})),U=x((function(e){return e(O.a).getPromptDismissCount(D.a)})),q=x((function(e){return e(_.c).isUsingProxy()})),G=R(_.c),K=G.setConsentModeEnabled,Y=G.saveConsentModeSettings,$=R(O.a),X=$.dismissPrompt,Q=$.triggerSurvey,Z=R(b.a).navigateTo,J=Object(f.useRef)(),ee=Object(d.a)(J,{threshold:.25}),te=Object(f.useState)(!1),ne=s()(te,2),re=ne[0],ie=ne[1],ae=!!(null==ee?void 0:ee.intersectionRatio),oe=!L&&(l||!1===H&&!1===I&&B);if(Object(f.useEffect)((function(){ae&&!re&&oe&&(Object(T.B)("".concat(P,"_CoMo-ads-setup-notification"),"view_notification"),q&&Q("view_como_setup_cta",{ttl:T.a}),ie(!0))}),[re,ae,oe,Q,q,P]),V)return e.createElement(f.Fragment,null,e.createElement(r,null),e.createElement(S.a,{title:"",content:Object(g.__)("You can always enable consent mode from Settings later","google-site-kit"),dismissLabel:Object(g.__)("Got it","google-site-kit"),tooltipStateKey:D.a}));if(!oe)return e.createElement(r,null);var ce=function(){var e=o()(i.a.mark((function e(){var t,n,r,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M(null),u(!0),K(!0),t=[Y(),Object(T.B)("".concat(P,"_CoMo-ads-setup-notification"),"confirm_notification")],q&&t.push(Q("enable_como",{ttl:T.a})),e.next=7,Promise.all(t);case 7:if(n=e.sent,r=s()(n,1),!(a=r[0].error)){e.next=16;break}M(a),K(!1),u(!1),e.next=19;break;case 16:return e.next=18,X(D.a);case 18:Z("".concat(z,"#/admin-settings"));case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),se=function(){var e=o()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(T.B)("".concat(P,"_CoMo-ads-setup-notification"),"dismiss_notification"),W(),!(U<2)){e.next=8;break}return t=2*T.c,e.next=6,X(D.a,{expiresInSeconds:t});case 6:e.next=10;break;case 8:return e.next=10,X(D.a);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return e.createElement("div",{className:"googlesitekit-widget-context"},e.createElement(k.e,{className:"googlesitekit-widget-area"},e.createElement(k.k,null,e.createElement(k.a,{size:12},e.createElement(n,{noPadding:!0,className:"googlesitekit-consent-mode-setup-cta-widget"},e.createElement(k.e,{collapsed:!0,ref:J},e.createElement(k.k,null,e.createElement(k.a,{smSize:6,mdSize:8,lgSize:6,className:"googlesitekit-consent-mode-setup-cta-widget__primary-cell"},e.createElement("h3",{className:"googlesitekit-consent-mode-setup-cta-widget__title"},Object(g.__)("Enable Consent Mode to preserve tracking for your Ads campaigns","google-site-kit")),e.createElement("p",{className:"googlesitekit-consent-mode-setup-cta-widget__description"},Object(m.a)(Object(g.__)("Consent mode interacts with your Consent Management Platform (CMP) or custom implementation for obtaining visitor consent, such as a cookie consent banner. <a>Learn more</a>","google-site-kit"),{a:e.createElement(C.a,{href:F,external:!0,"aria-label":Object(g.__)("Learn more about consent mode","google-site-kit")})})),E&&e.createElement(w.a,{message:E.message}),e.createElement("div",{className:"googlesitekit-consent-mode-setup-cta-widget__actions-wrapper"},e.createElement(f.Fragment,null,e.createElement(v.SpinnerButton,{onClick:ce,isSaving:l},Object(g.__)("Enable consent mode","google-site-kit")),e.createElement(v.Button,{tertiary:!0,onClick:se},U<2?Object(g.__)("Maybe later","google-site-kit"):Object(g.__)("Don’t show again","google-site-kit"))))),e.createElement(k.a,{alignBottom:!0,className:"googlesitekit-consent-mode-setup-cta-widget__svg-wrapper",smSize:6,mdSize:8,lgSize:6},e.createElement(j.a,null)))))))))}ConsentModeSetupCTAWidget.propTypes={Widget:u.a.elementType.isRequired,WidgetNull:u.a.elementType.isRequired},t.a=Object(E.g)("consent-mode-setup-cta")(ConsentModeSetupCTAWidget)}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{d:"M457.125 293.876a100.692 100.692 0 01-10.24 9.22c-34.362 26.944-62.751 26.901-102.055 21.983-26.57-3.323-42.093-15.97-78.319-13.981-36.226 1.989-45.507 11.196-89.85 8.247-35.101-2.334-77.689-.546-108.896-16.753C38.883 287.593 7.271 257.447 1.287 187.48c-5.984-69.967 10.507-112.4 55.75-144 55.679-38.889 109.66-3.521 151.33-6.5C250.038 34 253.263 21.115 272.038 4c21.904-19.968 63.565-24.71 89.214-14.054 27.786 6.054 50.219 29.28 58.202 58.922 6.077 22.573 3.427 65.335 19.584 86.632 22 29 37.449 37.613 44.519 71.5 6.139 29.431-8.182 68.021-26.432 86.876z",fill:"#b8e6ca"}),o=r.createElement("g",{filter:"url(#consent-mode-setup_svg__filter0_d_162_2908)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M303.594 56.932H105.081c-7.657 0-13.865 6.207-13.865 13.865V216.39c0 7.658 6.208 13.865 13.865 13.865h226.126c7.657 0 13.865-6.207 13.865-13.865V112.838c-23.762-3.629-41.965-24.154-41.965-48.93a50 50 0 01.487-6.976z",fill:"#fff"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M303.594 56.932H105.081c-7.657 0-13.865 6.207-13.865 13.865v7.144h213.908a49.502 49.502 0 01-2.017-14.033 50 50 0 01.487-6.976z",fill:"#ebeef0"}),r.createElement("rect",{x:101.72,y:63.934,width:7.003,height:7.003,rx:3.501,fill:"#cbd0d3"}),r.createElement("rect",{x:112.224,y:63.934,width:7.003,height:7.003,rx:3.501,fill:"#cbd0d3"}),r.createElement("rect",{x:105.318,y:92.19,width:25.184,height:25.184,rx:5.199,fill:"#ebeef0"}),r.createElement("rect",{x:105.318,y:131.477,width:25.184,height:25.184,rx:5.199,fill:"#ebeef0"}),r.createElement("rect",{x:105.318,y:170.764,width:25.184,height:25.184,rx:5.199,fill:"#ebeef0"}),r.createElement("rect",{x:138.562,y:94.204,width:41.302,height:10.074,rx:5.037,fill:"#ebeef0"}),r.createElement("rect",{x:138.562,y:133.492,width:41.302,height:10.074,rx:5.037,fill:"#ebeef0"}),r.createElement("rect",{x:138.562,y:172.779,width:41.302,height:10.074,rx:5.037,fill:"#ebeef0"}),r.createElement("rect",{x:138.562,y:109.315,width:88.648,height:6.044,rx:3.022,fill:"#ebeef0"}),r.createElement("rect",{x:138.562,y:148.602,width:88.648,height:6.044,rx:3.022,fill:"#ebeef0"}),r.createElement("rect",{x:138.562,y:187.889,width:88.648,height:6.044,rx:3.022,fill:"#ebeef0"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M330.969 108.441a49.72 49.72 0 01-18.992-16.251h-30.916a5.498 5.498 0 00-5.498 5.497v101.83a5.499 5.499 0 005.498 5.498h44.41a5.499 5.499 0 005.498-5.498z",fill:"#ebeef0"}),r.createElement("circle",{cx:352.606,cy:63.908,r:42.5,fill:"#fff"}),r.createElement("path",{d:"M353.31 39.13s-12.187 5.606-21.937 7.556c0 30.712 16.575 41.68 21.937 41.68 5.362 0 22.181-13.406 21.206-41.68-9.994-2.194-21.206-7.556-21.206-7.556z",fill:"#8e68cb"}),r.createElement("path",{d:"M353.31 39.13s-12.187 5.606-21.937 7.556c0 30.712 16.575 41.68 21.937 41.68 5.362 0 22.181-13.406 21.206-41.68-9.994-2.194-21.206-7.556-21.206-7.556z",fill:"#a983e6"}),r.createElement("path",{d:"M353.31 39.13s-12.187 5.606-21.937 7.556c0 30.712 16.575 41.68 21.937 41.68z",fill:"#8e68cb"}),r.createElement("circle",{cx:353.553,cy:62.773,r:10.237,fill:"#462083"}),r.createElement("circle",{opacity:.5,cx:353.354,cy:62.869,r:13.068,stroke:"#6e48ab",strokeWidth:2}),r.createElement("mask",{id:"consent-mode-setup_svg__a",maskUnits:"userSpaceOnUse",x:343,y:52,width:21,height:22},r.createElement("circle",{cx:353.553,cy:62.773,r:10.237,fill:"#d9d9d9"})),r.createElement("g",{mask:"url(#consent-mode-setup_svg__a)",fill:"#fff"},r.createElement("circle",{cx:353.554,cy:58.874,r:4.387}),r.createElement("ellipse",{cx:353.553,cy:72.036,rx:9.75,ry:7.8}))),c=r.createElement("g",{filter:"url(#consent-mode-setup_svg__filter1_d_162_2908)"},r.createElement("rect",{x:133.078,y:190.932,width:170.133,height:60.256,rx:6.098,fill:"#8e68cb"}),r.createElement("rect",{x:179.156,y:202.746,width:77.978,height:4.726,rx:2.363,fill:"#fff"}),r.createElement("rect",{x:166.16,y:213.38,width:103.97,height:4.726,rx:2.363,fill:"#fff"}),r.createElement("rect",{x:220.507,y:227.557,width:36.626,height:12.996,rx:6.498,fill:"#fff"}),r.createElement("rect",{x:180.156,y:228.557,width:34.626,height:10.996,rx:5.498,stroke:"#fff",strokeWidth:2})),s=r.createElement("defs",{id:"consent-mode-setup_svg__defs2017"},r.createElement("filter",{id:"consent-mode-setup_svg__filter0_d_162_2908",x:75.216,y:9.408,width:335.891,height:240.846,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix",id:"consent-mode-setup_svg__feFlood1983"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha",id:"consent-mode-setup_svg__feColorMatrix1985"}),r.createElement("feOffset",{dy:4,id:"consent-mode-setup_svg__feOffset1987"}),r.createElement("feGaussianBlur",{stdDeviation:8,id:"consent-mode-setup_svg__feGaussianBlur1989"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out",id:"consent-mode-setup_svg__feComposite1991"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0",id:"consent-mode-setup_svg__feColorMatrix1993"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_162_2908",id:"consent-mode-setup_svg__feBlend1995"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_162_2908",result:"shape",id:"consent-mode-setup_svg__feBlend1997"})),r.createElement("filter",{id:"consent-mode-setup_svg__filter1_d_162_2908",x:117.078,y:182.932,width:202.133,height:92.256,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix",id:"consent-mode-setup_svg__feFlood2000"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha",id:"consent-mode-setup_svg__feColorMatrix2002"}),r.createElement("feOffset",{dy:8,id:"consent-mode-setup_svg__feOffset2004"}),r.createElement("feGaussianBlur",{stdDeviation:8,id:"consent-mode-setup_svg__feGaussianBlur2006"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out",id:"consent-mode-setup_svg__feComposite2008"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",id:"consent-mode-setup_svg__feColorMatrix2010"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_162_2908",id:"consent-mode-setup_svg__feBlend2012"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_162_2908",result:"shape",id:"consent-mode-setup_svg__feBlend2014"})));t.a=function SvgConsentModeSetup(e){return r.createElement("svg",i({viewBox:"0 -16 485 344",fill:"none"},e),a,o,c,s)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(17),i=n.n(r),a=n(615),o=n(1),c=function(){var t=Object(a.a)().y,n=Object(o.useState)(!1),r=i()(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(24))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OverlayNotificationsRenderer}));var r=n(1),i=n(544);function OverlayNotificationsRenderer(){return e.createElement(r.Fragment,null,e.createElement(i.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return LinkAnalyticsAndAdSenseAccountsOverlayNotification}));var r=n(1),i=n(2),a=n(10),o=n(4),c=n.n(o),s=n(7),l=n(14),u=n(26),d=n(18),g=n(9),f=n(545),m=n(546),p=n(36),h=n(174),v=n(55),b=c.a.useSelect,_=c.a.useDispatch;function LinkAnalyticsAndAdSenseAccountsOverlayNotification(){var t=Object(h.a)("ga4AdSenseIntegration"),n=Object(p.a)(),o=Object(v.c)()===v.b,c=b((function(e){return e(u.b).isShowingOverlayNotification("LinkAnalyticsAndAdSenseAccountsOverlayNotification")})),O=_(u.b),y=O.setOverlayNotificationToShow,E=O.dismissOverlayNotification,k=b((function(e){return e(l.c).getGoogleSupportURL({path:"/adsense/answer/6084409"})})),j=b((function(e){return e(s.a).isItemDismissed("LinkAnalyticsAndAdSenseAccountsOverlayNotification")})),S=b((function(e){return e(s.a).isDismissingItem("LinkAnalyticsAndAdSenseAccountsOverlayNotification")})),w=b((function(e){return n||!o||j?null:e(d.a).isModuleConnected("analytics-4")})),C=b((function(e){return n||!o||j?null:e(d.a).isModuleConnected("adsense")})),A=b((function(e){return n||!o||j?null:e(g.m).getAdSenseLinked()})),N=t&&!n&&o&&(w&&C)&&!1===A&&!1===j,T=function(){E("LinkAnalyticsAndAdSenseAccountsOverlayNotification")};return Object(r.useEffect)((function(){N&&!c&&y("LinkAnalyticsAndAdSenseAccountsOverlayNotification")}),[N,c,n,y]),N&&c?e.createElement(m.a,{animateNotification:c},e.createElement(f.a,null),e.createElement("div",{className:"googlesitekit-overlay-notification__body"},e.createElement("h3",null,Object(i.__)("See which content earns you the most","google-site-kit")),e.createElement("p",null,Object(i.__)("Link your Analytics and AdSense accounts to find out which content brings you the most revenue.","google-site-kit"))),e.createElement("div",{className:"googlesitekit-overlay-notification__actions"},e.createElement(a.Button,{tertiary:!0,disabled:S,onClick:T},Object(i.__)("Maybe later","google-site-kit")),e.createElement(a.Button,{disabled:S,href:k,target:"_blank",onClick:T,"aria-label":Object(i.__)("Learn how (opens in a new tab)","google-site-kit")},Object(i.__)("Learn how","google-site-kit")))):null}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("g",{clipPath:"url(#analytics-adsense-connect_svg__clip0_50_9707)"},r.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0V16z",fill:"#B8E6CA"}),r.createElement("g",{filter:"url(#analytics-adsense-connect_svg__filter0_d_50_9707)"},r.createElement("rect",{x:22,y:30,width:252,height:172.055,rx:13.764,fill:"#fff"}),r.createElement("rect",{x:36,y:65,width:224,height:47,rx:5.161,fill:"#DCE8FF"}),r.createElement("rect",{x:43,y:145,width:30,height:3,rx:1.5,fill:"#9BB8F0"}),r.createElement("rect",{x:43,y:151,width:40,height:3,rx:1.5,fill:"#9BB8F0"}),r.createElement("path",{d:"M168.539 90.857L188 112h-81l29.455-32 21.039 22.857 11.045-12z",fill:"#9BB8F0"}),r.createElement("path",{d:"M22 43.764C22 36.162 28.162 30 35.764 30h224.472C267.838 30 274 36.162 274 43.764v7.091H22v-7.091z",fill:"#EBEEF0"}),r.createElement("rect",{x:32.427,y:36.952,width:6.952,height:6.952,rx:3.476,fill:"#CBD0D3"}),r.createElement("rect",{x:42.855,y:36.952,width:6.952,height:6.952,rx:3.476,fill:"#CBD0D3"}),r.createElement("rect",{x:36,y:122,width:59,height:55,rx:5.457,fill:"#EBEEF0"}),r.createElement("rect",{x:107,y:122,width:54,height:10,rx:5,fill:"#EBEEF0"}),r.createElement("rect",{x:107,y:141,width:153,height:5,rx:2.5,fill:"#EBEEF0"}),r.createElement("rect",{x:107,y:154,width:153,height:5,rx:2.5,fill:"#EBEEF0"}),r.createElement("path",{d:"M238.51 171.625c11.868 0 21.49-3.528 21.49-7.88v-2.865h-42.98v2.865c0 4.352 9.621 7.88 21.49 7.88z",fill:"#E1B155"}),r.createElement("ellipse",{cx:238.51,cy:159.88,rx:21.49,ry:7.88,fill:"#FECE72"}),r.createElement("path",{d:"M237.859 162.363v-.48a4.538 4.538 0 01-.901-.154 2.897 2.897 0 01-.77-.342 1.423 1.423 0 01-.496-.534l.952-.209c.081.161.23.306.446.435.222.128.479.211.769.248v-1.223l-.03-.011c-.54-.111-.986-.254-1.337-.43-.351-.18-.526-.41-.526-.689 0-.165.074-.321.222-.468.156-.147.375-.269.659-.364a3.58 3.58 0 011.012-.176v-.474h.81v.485c.352.029.645.086.882.17.243.081.432.175.567.281.141.107.239.208.293.304l-.931.22a.881.881 0 00-.284-.243 1.504 1.504 0 00-.527-.181v1.157c.365.081.689.171.973.27.283.095.506.211.668.347a.606.606 0 01.253.496.69.69 0 01-.273.551c-.176.151-.409.27-.699.358a4.225 4.225 0 01-.922.171v.485h-.81zm-.85-3.389c0 .118.071.217.212.298.149.077.362.152.638.225v-.991a1.796 1.796 0 00-.617.17c-.156.085-.233.184-.233.298zm2.501 1.829c0-.125-.074-.226-.223-.303a2.833 2.833 0 00-.618-.22v1.041c.244-.033.443-.093.598-.181.162-.089.243-.201.243-.337z",fill:"#AA7A1E"}),r.createElement("path",{d:"M238.51 165.625c11.868 0 21.49-3.528 21.49-7.88v-2.865h-42.98v2.865c0 4.352 9.621 7.88 21.49 7.88z",fill:"#E1B155"}),r.createElement("ellipse",{cx:238.51,cy:153.88,rx:21.49,ry:7.88,fill:"#FECE72"}),r.createElement("path",{d:"M237.859 156.363v-.48a4.538 4.538 0 01-.901-.154 2.897 2.897 0 01-.77-.342 1.423 1.423 0 01-.496-.534l.952-.209c.081.161.23.306.446.435.222.128.479.211.769.248v-1.223l-.03-.011c-.54-.111-.986-.254-1.337-.43-.351-.18-.526-.41-.526-.689 0-.165.074-.321.222-.468.156-.147.375-.269.659-.364a3.58 3.58 0 011.012-.176v-.474h.81v.485c.352.029.645.086.882.17.243.081.432.175.567.281.141.107.239.208.293.304l-.931.22a.881.881 0 00-.284-.243 1.504 1.504 0 00-.527-.181v1.157c.365.081.689.171.973.27.283.095.506.211.668.347a.606.606 0 01.253.496.69.69 0 01-.273.551c-.176.151-.409.27-.699.358a4.225 4.225 0 01-.922.171v.485h-.81zm-.85-3.389c0 .118.071.217.212.298.149.077.362.152.638.225v-.991a1.796 1.796 0 00-.617.17c-.156.085-.233.184-.233.298zm2.501 1.829c0-.125-.074-.226-.223-.303a2.833 2.833 0 00-.618-.22v1.041c.244-.033.443-.093.598-.181.162-.089.243-.201.243-.337z",fill:"#AA7A1E"}),r.createElement("path",{d:"M238.51 159.625c11.868 0 21.49-3.528 21.49-7.88v-2.865h-42.98v2.865c0 4.352 9.621 7.88 21.49 7.88z",fill:"#E1B155"}),r.createElement("ellipse",{cx:238.51,cy:147.88,rx:21.49,ry:7.88,fill:"#FECE72"}),r.createElement("path",{d:"M237.859 150.363v-.48a4.538 4.538 0 01-.901-.154 2.897 2.897 0 01-.77-.342 1.423 1.423 0 01-.496-.534l.952-.209c.081.161.23.306.446.435.222.128.479.211.769.248v-1.223l-.03-.011c-.54-.111-.986-.254-1.337-.43-.351-.18-.526-.41-.526-.689 0-.165.074-.321.222-.468.156-.147.375-.269.659-.364a3.58 3.58 0 011.012-.176v-.474h.81v.485c.352.029.645.086.882.17.243.081.432.175.567.281.141.107.239.208.293.304l-.931.22a.881.881 0 00-.284-.243 1.504 1.504 0 00-.527-.181v1.157c.365.081.689.171.973.27.283.095.506.211.668.347a.606.606 0 01.253.496.69.69 0 01-.273.551c-.176.151-.409.27-.699.358a4.225 4.225 0 01-.922.171v.485h-.81zm-.85-3.389c0 .118.071.217.212.298.149.077.362.152.638.225v-.991a1.796 1.796 0 00-.617.17c-.156.085-.233.184-.233.298zm2.501 1.829c0-.125-.074-.226-.223-.303a2.833 2.833 0 00-.618-.22v1.041c.244-.033.443-.093.598-.181.162-.089.243-.201.243-.337z",fill:"#AA7A1E"}),r.createElement("path",{d:"M238.51 153.625c11.868 0 21.49-3.528 21.49-7.88v-2.865h-42.98v2.865c0 4.352 9.621 7.88 21.49 7.88z",fill:"#E1B155"}),r.createElement("ellipse",{cx:238.51,cy:141.88,rx:21.49,ry:7.88,fill:"#FECE72"}),r.createElement("path",{d:"M237.859 144.363v-.48a4.538 4.538 0 01-.901-.154 2.897 2.897 0 01-.77-.342 1.423 1.423 0 01-.496-.534l.952-.209c.081.161.23.306.446.435.222.128.479.211.769.248v-1.223l-.03-.011c-.54-.111-.986-.254-1.337-.43-.351-.18-.526-.41-.526-.689 0-.165.074-.321.222-.468.156-.147.375-.269.659-.364a3.58 3.58 0 011.012-.176v-.474h.81v.485c.352.029.645.086.882.17.243.081.432.175.567.281.141.107.239.208.293.304l-.931.22a.881.881 0 00-.284-.243 1.504 1.504 0 00-.527-.181v1.157c.365.081.689.171.973.27.283.095.506.211.668.347a.606.606 0 01.253.496.69.69 0 01-.273.551c-.176.151-.409.27-.699.358a4.225 4.225 0 01-.922.171v.485h-.81zm-.85-3.389c0 .118.071.217.212.298.149.077.362.152.638.225v-.991a1.796 1.796 0 00-.617.17c-.156.085-.233.184-.233.298zm2.501 1.829c0-.125-.074-.226-.223-.303a2.833 2.833 0 00-.618-.22v1.041c.244-.033.443-.093.598-.181.162-.089.243-.201.243-.337z",fill:"#AA7A1E"}),r.createElement("path",{d:"M238.51 147.625c11.868 0 21.49-3.528 21.49-7.88v-2.865h-42.98v2.865c0 4.352 9.621 7.88 21.49 7.88z",fill:"#E1B155"}),r.createElement("ellipse",{cx:238.51,cy:135.88,rx:21.49,ry:7.88,fill:"#FECE72"}),r.createElement("path",{d:"M237.859 138.363v-.48a4.538 4.538 0 01-.901-.154 2.897 2.897 0 01-.77-.342 1.423 1.423 0 01-.496-.534l.952-.209c.081.161.23.306.446.435.222.128.479.211.769.248v-1.223l-.03-.011c-.54-.111-.986-.254-1.337-.43-.351-.18-.526-.41-.526-.689 0-.165.074-.321.222-.468.156-.147.375-.269.659-.364a3.58 3.58 0 011.012-.176v-.474h.81v.485c.352.029.645.086.882.17.243.081.432.175.567.281.141.107.239.208.293.304l-.931.22a.881.881 0 00-.284-.243 1.504 1.504 0 00-.527-.181v1.157c.365.081.689.171.973.27.283.095.506.211.668.347a.606.606 0 01.253.496.69.69 0 01-.273.551c-.176.151-.409.27-.699.358a4.225 4.225 0 01-.922.171v.485h-.81zm-.85-3.389c0 .118.071.217.212.298.149.077.362.152.638.225v-.991a1.796 1.796 0 00-.617.17c-.156.085-.233.184-.233.298zm2.501 1.829c0-.125-.074-.226-.223-.303a2.833 2.833 0 00-.618-.22v1.041c.244-.033.443-.093.598-.181.162-.089.243-.201.243-.337z",fill:"#AA7A1E"}),r.createElement("path",{d:"M238.51 141.625c11.868 0 21.49-3.528 21.49-7.88v-2.865h-42.98v2.865c0 4.352 9.621 7.88 21.49 7.88z",fill:"#E1B155"}),r.createElement("ellipse",{cx:238.51,cy:129.88,rx:21.49,ry:7.88,fill:"#FECE72"}),r.createElement("path",{d:"M237.859 132.363v-.48a4.538 4.538 0 01-.901-.154 2.897 2.897 0 01-.77-.342 1.423 1.423 0 01-.496-.534l.952-.209c.081.161.23.306.446.435.222.128.479.211.769.248v-1.223l-.03-.011c-.54-.111-.986-.254-1.337-.43-.351-.18-.526-.41-.526-.689 0-.165.074-.321.222-.468.156-.147.375-.269.659-.364a3.58 3.58 0 011.012-.176v-.474h.81v.485c.352.029.645.086.882.17.243.081.432.175.567.281.141.107.239.208.293.304l-.931.22a.881.881 0 00-.284-.243 1.504 1.504 0 00-.527-.181v1.157c.365.081.689.171.973.27.283.095.506.211.668.347a.606.606 0 01.253.496.69.69 0 01-.273.551c-.176.151-.409.27-.699.358a4.225 4.225 0 01-.922.171v.485h-.81zm-.85-3.389c0 .118.071.217.212.298.149.077.362.152.638.225v-.991a1.796 1.796 0 00-.617.17c-.156.085-.233.184-.233.298zm2.501 1.829c0-.125-.074-.226-.223-.303a2.833 2.833 0 00-.618-.22v1.041c.244-.033.443-.093.598-.181.162-.089.243-.201.243-.337z",fill:"#AA7A1E"}),r.createElement("path",{d:"M256.323 129.88c0 .547-.319 1.188-1.166 1.881-.841.688-2.107 1.344-3.743 1.91-3.264 1.13-7.827 1.844-12.904 1.844-5.078 0-9.64-.714-12.904-1.844-1.636-.566-2.902-1.222-3.743-1.91-.847-.693-1.166-1.334-1.166-1.881 0-.548.319-1.189 1.166-1.882.841-.688 2.107-1.344 3.743-1.91 3.264-1.13 7.826-1.844 12.904-1.844 5.077 0 9.64.714 12.904 1.844 1.636.566 2.902 1.222 3.743 1.91.847.693 1.166 1.334 1.166 1.882z",stroke:"#E1B155",strokeWidth:1.624}),r.createElement("ellipse",{cx:209.51,cy:166.88,rx:21.49,ry:7.88,fill:"#FECE72"}),r.createElement("path",{d:"M209.51 172.625c11.868 0 21.49-3.528 21.49-7.88v-2.865h-42.98v2.865c0 4.352 9.621 7.88 21.49 7.88z",fill:"#E1B155"}),r.createElement("ellipse",{cx:209.51,cy:160.88,rx:21.49,ry:7.88,fill:"#FECE72"}),r.createElement("path",{d:"M208.859 163.363v-.48a4.538 4.538 0 01-.901-.154 2.897 2.897 0 01-.77-.342 1.423 1.423 0 01-.496-.534l.952-.209c.081.161.23.306.446.435.222.128.479.211.769.248v-1.223l-.03-.011c-.54-.111-.986-.254-1.337-.43-.351-.18-.526-.41-.526-.689 0-.165.074-.321.222-.468.156-.147.375-.269.659-.364a3.58 3.58 0 011.012-.176v-.474h.81v.485c.352.029.645.086.882.17.243.081.432.175.567.281.141.107.239.208.293.304l-.931.22a.881.881 0 00-.284-.243 1.504 1.504 0 00-.527-.181v1.157c.365.081.689.171.973.27.283.095.506.211.668.347a.606.606 0 01.253.496.69.69 0 01-.273.551c-.176.151-.409.27-.699.358a4.225 4.225 0 01-.922.171v.485h-.81zm-.85-3.389c0 .118.071.217.212.298.149.077.362.152.638.225v-.991a1.796 1.796 0 00-.617.17c-.156.085-.233.184-.233.298zm2.501 1.829c0-.125-.074-.226-.223-.303a2.833 2.833 0 00-.618-.22v1.041c.244-.033.443-.093.598-.181.162-.089.243-.201.243-.337z",fill:"#AA7A1E"}),r.createElement("path",{d:"M209.51 166.625c11.868 0 21.49-3.528 21.49-7.88v-2.865h-42.98v2.865c0 4.352 9.621 7.88 21.49 7.88z",fill:"#E1B155"}),r.createElement("ellipse",{cx:209.51,cy:154.88,rx:21.49,ry:7.88,fill:"#FECE72"}),r.createElement("path",{d:"M208.859 157.363v-.48a4.538 4.538 0 01-.901-.154 2.897 2.897 0 01-.77-.342 1.423 1.423 0 01-.496-.534l.952-.209c.081.161.23.306.446.435.222.128.479.211.769.248v-1.223l-.03-.011c-.54-.111-.986-.254-1.337-.43-.351-.18-.526-.41-.526-.689 0-.165.074-.321.222-.468.156-.147.375-.269.659-.364a3.58 3.58 0 011.012-.176v-.474h.81v.485c.352.029.645.086.882.17.243.081.432.175.567.281.141.107.239.208.293.304l-.931.22a.881.881 0 00-.284-.243 1.504 1.504 0 00-.527-.181v1.157c.365.081.689.171.973.27.283.095.506.211.668.347a.606.606 0 01.253.496.69.69 0 01-.273.551c-.176.151-.409.27-.699.358a4.225 4.225 0 01-.922.171v.485h-.81zm-.85-3.389c0 .118.071.217.212.298.149.077.362.152.638.225v-.991a1.796 1.796 0 00-.617.17c-.156.085-.233.184-.233.298zm2.501 1.829c0-.125-.074-.226-.223-.303a2.833 2.833 0 00-.618-.22v1.041c.244-.033.443-.093.598-.181.162-.089.243-.201.243-.337z",fill:"#AA7A1E"}),r.createElement("path",{d:"M209.51 160.625c11.868 0 21.49-3.528 21.49-7.88v-2.865h-42.98v2.865c0 4.352 9.621 7.88 21.49 7.88z",fill:"#E1B155"}),r.createElement("ellipse",{cx:209.51,cy:148.88,rx:21.49,ry:7.88,fill:"#FECE72"}),r.createElement("path",{d:"M208.859 151.363v-.48a4.538 4.538 0 01-.901-.154 2.897 2.897 0 01-.77-.342 1.423 1.423 0 01-.496-.534l.952-.209c.081.161.23.306.446.435.222.128.479.211.769.248v-1.223l-.03-.011c-.54-.111-.986-.254-1.337-.43-.351-.18-.526-.41-.526-.689 0-.165.074-.321.222-.468.156-.147.375-.269.659-.364a3.58 3.58 0 011.012-.176v-.474h.81v.485c.352.029.645.086.882.17.243.081.432.175.567.281.141.107.239.208.293.304l-.931.22a.881.881 0 00-.284-.243 1.504 1.504 0 00-.527-.181v1.157c.365.081.689.171.973.27.283.095.506.211.668.347a.606.606 0 01.253.496.69.69 0 01-.273.551c-.176.151-.409.27-.699.358a4.225 4.225 0 01-.922.171v.485h-.81zm-.85-3.389c0 .118.071.217.212.298.149.077.362.152.638.225v-.991a1.796 1.796 0 00-.617.17c-.156.085-.233.184-.233.298zm2.501 1.829c0-.125-.074-.226-.223-.303a2.833 2.833 0 00-.618-.22v1.041c.244-.033.443-.093.598-.181.162-.089.243-.201.243-.337z",fill:"#AA7A1E"}),r.createElement("path",{d:"M227.323 148.88c0 .547-.319 1.188-1.166 1.881-.841.688-2.107 1.344-3.743 1.91-3.264 1.13-7.827 1.844-12.904 1.844-5.078 0-9.64-.714-12.904-1.844-1.636-.566-2.902-1.222-3.743-1.91-.847-.693-1.166-1.334-1.166-1.881 0-.548.319-1.189 1.166-1.882.841-.688 2.107-1.344 3.743-1.91 3.264-1.13 7.826-1.844 12.904-1.844 5.077 0 9.64.714 12.904 1.844 1.636.566 2.902 1.222 3.743 1.91.847.693 1.166 1.334 1.166 1.882z",stroke:"#E1B155",strokeWidth:1.624}))),o=r.createElement("defs",null,r.createElement("clipPath",{id:"analytics-adsense-connect_svg__clip0_50_9707"},r.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0V16z",fill:"#fff"})),r.createElement("filter",{id:"analytics-adsense-connect_svg__filter0_d_50_9707",x:6,y:18,width:284,height:204.055,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",{dy:4}),r.createElement("feGaussianBlur",{stdDeviation:8}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),r.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_50_9707"}),r.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_50_9707",result:"shape"})));t.a=function SvgAnalyticsAdsenseConnect(e){return r.createElement("svg",i({viewBox:"0 0 296 163",fill:"none"},e),a,o)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OverlayNotification}));var r=n(616);function OverlayNotification(t){var n=t.animateNotification,i=t.handleAnimationOnExited,a=t.children;return e.createElement(r.a,{direction:"up",in:n,onExited:i},e.createElement("div",{className:"googlesitekit-overlay-notification"},a))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return v}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(449),s=n(432),l=n(1),u=n(37),d=n.n(u),g=n(4),f=n.n(g),m=n(26),p=f.a.useDispatch,h=f.a.useSelect;function v(){var t=p(m.b).setIsOnline,n=h((function(e){return e(m.b).getIsOnline()})),r=Object(l.useCallback)(o()(i.a.mark((function e(){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.onLine){e.next=3;break}return t(!1),e.abrupt("return");case 3:return e.prev=3,e.next=6,d.a.get("core","site","connection-check",void 0,{useCache:!1});case 6:n=e.sent,t(!!n),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),t(!1);case 14:case"end":return e.stop()}}),e,null,[[3,11]])}))),[t]);Object(c.a)((function(){e.addEventListener("online",r),e.addEventListener("offline",r),r()}),(function(){e.removeEventListener("online",r),e.removeEventListener("offline",r)})),Object(s.a)(r,n?12e4:15e3)}}).call(this,n(24))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Errors}));var r=n(0),i=n.n(r),a=n(1),o=n(2);function Errors(t){var n=t.recoveryErrors;return e.createElement("div",{className:"googlesitekit-module-recovery-errors"},1===Object.keys(n).length&&e.createElement("p",null,Object(o.sprintf)( /* translators: %s: Error message */ Object(o.__)("Error: %s","google-site-kit"),Object.values(n)[0].message)),Object.keys(n).length>1&&e.createElement(a.Fragment,null,e.createElement("p",null,Object(o.__)("The following modules failed to be recovered:","google-site-kit")),e.createElement("ul",null,Object.keys(n).map((function(t){return e.createElement("li",{key:t},Object(o.sprintf)( /* translators: 1: Module name, 2: Error message */ Object(o.__)("%1$s: %2$s","google-site-kit"),n[t].name,n[t].message))})))))}Errors.propTypes={recoveryErrors:i.a.object.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(29),i=n.n(r),a=function(e){return Array.isArray(e)?i()(e).sort():e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardEntryPoint}));var r=n(0),i=n.n(r),a=n(88),o=n(4),c=n.n(o),s=n(9),l=n(852),u=n(854),d=c.a.useDispatch;function DashboardEntryPoint(t){var n=t.setupModuleSlug,r=d(s.m);return Object(a.a)((function(){null==r||r.syncGoogleTagSettings()})),n?e.createElement(l.a,{moduleSlug:n}):e.createElement(u.a,null)}DashboardEntryPoint.propTypes={setupModuleSlug:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSetup}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(0),s=n.n(c),l=n(88),u=n(1),d=n(2),g=n(4),f=n.n(g),m=n(14),p=n(18),h=n(31),v=n(8),b=n(207),_=n(15),O=n(206),y=n(853),E=f.a.useSelect,k=f.a.useDispatch;function ModuleSetup(t){var n=t.moduleSlug,r=k(h.a).navigateTo,a=E((function(e){return e(p.a).getModule(n)})),c={notification:"authentication_success"};n&&(c.slug=n);var s=E((function(e){return e(m.c).getAdminURL("googlesitekit-dashboard",c)})),g=Object(u.useCallback)(function(){var e=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(v.B)("moduleSetup","complete_module_setup",n);case 2:r(t||s);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[s,r,n]),f=Object(u.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(v.B)("moduleSetup","cancel_module_setup",n);case 2:case"end":return e.stop()}}),e)}))),[n]);if(Object(l.a)((function(){Object(v.B)("moduleSetup","view_module_setup",n)})),!(null==a?void 0:a.SetupComponent))return null;var j=a.SetupComponent;return e.createElement(u.Fragment,null,e.createElement(O.a,null,e.createElement(b.a,null)),e.createElement("div",{className:"googlesitekit-setup"},e.createElement(_.e,null,e.createElement(_.k,null,e.createElement(_.a,{size:12},e.createElement("section",{className:"googlesitekit-setup__wrapper"},e.createElement(_.e,null,e.createElement(_.k,null,e.createElement(_.a,{size:12},e.createElement("p",{className:"googlesitekit-setup__intro-title"},Object(d.__)("Connect Service","google-site-kit")),e.createElement(j,{module:a,finishSetup:g})))),e.createElement(y.a,{module:a,onCancel:f})))))))}ModuleSetup.propTypes={moduleSlug:s.a.string.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSetupFooter}));var r=n(0),i=n.n(r),a=n(2),o=n(4),c=n.n(o),s=n(14),l=n(15),u=n(23),d=c.a.useSelect;function ModuleSetupFooter(t){var n=t.module,r=t.onCancel,i=d((function(e){return e(s.c).getAdminURL("googlesitekit-settings")})),o=d((function(e){var t,r;return null===(t=e(null==n?void 0:n.storeName))||void 0===t||null===(r=t.isSetupBlocked)||void 0===r?void 0:r.call(t)}));return n?e.createElement("div",{className:"googlesitekit-setup__footer"},e.createElement(l.e,null,e.createElement(l.k,null,e.createElement(l.a,{smSize:2,mdSize:4,lgSize:6},e.createElement(u.a,{id:"setup-".concat(n.slug,"-cancel"),href:i,onClick:r},o?Object(a.__)("Back","google-site-kit"):Object(a.__)("Cancel","google-site-kit")))))):null}ModuleSetupFooter.propTypes={module:i.a.shape({slug:i.a.string.isRequired,storeName:i.a.string.isRequired}).isRequired,onCancel:i.a.func.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardMainApp}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(17),s=n.n(c),l=n(12),u=n.n(l),d=n(1),g=n(88),f=n(4),m=n.n(f),p=n(67),h=n(8),v=n(206),b=n(518),_=n(353),O=n(529),y=n(534),E=n(207),k=n(856),j=n(187),S=n(870),w=n(540),C=n(464),A=n(885),N=n(20),T=n(7),D=n(41),x=n(36),R=n(34),M=n(18),P=n(14),L=n(9),I=n(465),B=n(543),z=n(547),F=m.a.useSelect,W=m.a.useDispatch;function DashboardMainApp(){var t,n,r=Object(d.useState)(!1),a=s()(r,2),c=a[0],l=a[1],f=Object(x.a)(),m=F((function(e){return e(P.c).isKeyMetricsSetupCompleted()})),V=F((function(e){return e(M.a).isModuleConnected("analytics-4")})),H=F((function(e){return e(T.a).hasScope(L.d)})),U=F((function(e){return e(R.a).getValue(L.i,"autoSubmit")})),q=W(L.m).createCustomDimensions,G=W(R.a).setValues,K=F((function(e){return e(T.a).getGrantedScopes()})),Y=F((function(e){return e(R.a).getValue(T.c,"permissionsError")})),$=void 0!==K&&(null==Y||null===(t=Y.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.some((function(e){return K.includes(e)})));Object(g.a)((function(){f||setTimeout((function(){return l(!0)}),5e3)})),Object(d.useEffect)((function(){void 0!==Y&&$&&G(T.c,{permissionsError:{}})}),[$,G,Y]);var X=Object(d.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q();case 2:G(L.i,{isAutoCreatingCustomDimensions:!1});case 3:case"end":return e.stop()}}),e)}))),[q,G]);Object(d.useEffect)((function(){m&&V&&H&&U&&(G(L.i,{autoSubmit:!1,isAutoCreatingCustomDimensions:!0}),X())}),[U,q,H,m,V,G,X]);var Q=F((function(e){return f?e(T.a).getViewableModules():null})),Z={modules:Q||void 0},J=F((function(e){return e(D.a).isWidgetContextActive(p.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,Z)})),ee=F((function(e){return e(D.a).isWidgetContextActive(p.CONTEXT_MAIN_DASHBOARD_TRAFFIC,Z)})),te=F((function(e){return e(D.a).isWidgetContextActive(p.CONTEXT_MAIN_DASHBOARD_CONTENT,Z)})),ne=F((function(e){return e(D.a).isWidgetContextActive(p.CONTEXT_MAIN_DASHBOARD_SPEED,Z)})),re=F((function(e){return e(D.a).isWidgetContextActive(p.CONTEXT_MAIN_DASHBOARD_MONETIZATION,Z)})),ie=F((function(e){return e(T.a).isKeyMetricsWidgetHidden()}));Object(z.a)();var ae=null;return re?ae=N.c:ne?ae=N.d:te?ae=N.a:ee?ae=N.e:J&&(ae=N.b),e.createElement(d.Fragment,null,e.createElement(C.a,null),e.createElement(v.a,{subHeader:e.createElement(k.a,null),showNavigation:!0},e.createElement(O.a,null),e.createElement(y.a,null),!f&&e.createElement(b.a,null),e.createElement(E.a,null)),e.createElement(w.a,null),!0!==ie&&e.createElement(_.a,{id:N.b,slug:p.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,className:u()({"googlesitekit-widget-context--last":ae===N.b})}),e.createElement(_.a,{id:N.e,slug:p.CONTEXT_MAIN_DASHBOARD_TRAFFIC,className:u()({"googlesitekit-widget-context--last":ae===N.e})}),e.createElement(_.a,{id:N.a,slug:p.CONTEXT_MAIN_DASHBOARD_CONTENT,className:u()({"googlesitekit-widget-context--last":ae===N.a})}),e.createElement(_.a,{id:N.d,slug:p.CONTEXT_MAIN_DASHBOARD_SPEED,className:u()({"googlesitekit-widget-context--last":ae===N.d})}),e.createElement(_.a,{id:N.c,slug:p.CONTEXT_MAIN_DASHBOARD_MONETIZATION,className:u()({"googlesitekit-widget-context--last":ae===N.c})}),e.createElement(j.a,{triggerID:"view_dashboard",ttl:h.a}),c&&e.createElement(S.a,null),e.createElement(A.a,null),e.createElement(B.a,null),e.createElement(I.a,null))}}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerNotifications}));var r=n(17),i=n.n(r),a=n(1),o=n(4),c=n.n(o),s=n(18),l=n(7),u=n(9),d=n(303),g=n(857),f=n(859),m=n(861),p=n(862),h=n(486),v=n(36),b=n(462),_=n(864),O=n(865),y=n(867),E=n(868),k=n(26),j=n(326),S=c.a.useSelect;function BannerNotifications(){var t=Object(v.a)(),n=S((function(e){return e(l.a).isAuthenticated()})),r=S((function(e){return e(s.a).isModuleActive("adsense")})),o=S((function(e){return e(s.a).isModuleConnected("analytics-4")})),c=S((function(e){return e(l.a).hasScope(u.k)})),w=S((function(e){return e(u.m).hasMismatchedGoogleTagID()})),C=S((function(e){return e(k.b).getValue(j.a)})),A=S((function(e){if(t||!o)return!1;var n=e(u.m).getOwnerID(),r=e(l.a).getID();return void 0!==n&&void 0!==r?n===r:void 0})),N=Object(d.a)("notification"),T=i()(N,1)[0];return t?e.createElement(b.a,null):e.createElement(a.Fragment,null,r&&e.createElement(p.a,null),e.createElement(m.a,null),"authentication_success"===T&&e.createElement(g.a,null),"ad_blocking_recovery_setup_success"===T&&e.createElement(E.a,null),e.createElement(_.a,null),n&&e.createElement(f.a,null),!C&&e.createElement(h.a,null),o&&c&&A&&e.createElement(a.Fragment,null,w&&e.createElement(O.a,null),e.createElement(y.a,null)),e.createElement(b.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,r){var i=n(5),a=n.n(i),o=n(16),c=n.n(o),s=n(17),l=n.n(s),u=n(1),d=n(2),g=n(936),f=n(4),m=n.n(f),p=n(303),h=n(43),v=n(858),b=n(20),_=n(18),O=n(14),y=n(7),E=n(33),k=n(111),j=n(19),S=n(28),w=n(23),C=m.a.useSelect;t.a=function SetupSuccessBannerNotification(){var t,n=Object(p.a)("slug"),i=l()(n,1)[0],o=Object(p.a)("notification"),s=l()(o,1)[0],f=Object(S.e)(),m=Object(j.a)(),A=C((function(e){return e(_.a).getModules()})),N=C((function(e){return e(y.a).hasCapability(y.B)})),T=C((function(e){return e(O.c).hasMultipleAdmins()})),D=C((function(e){return e(O.c).isUsingProxy()})),x=C((function(e){var t,n=null==A||null===(t=A[i])||void 0===t?void 0:t.storeName;if(!n)return null;var r=e(n).getSetupSuccessContent;return r?r():null})),R=C((function(e){return e(O.c).getAdminURL("googlesitekit-settings")})),M=Object(u.useState)(!1),P=l()(M,2),L=P[0],I=P[1],B=Object(u.useState)(!1),z=l()(B,2),F=z[0],W=z[1];Object(u.useEffect)((function(){void 0!==A&&"authentication_success"===s&&(null!==i||L||(Object(E.b)("".concat(m,"_authentication-success-notification"),"complete_user_setup",D?"proxy":"custom-oauth"),I(!0)),null!==i||F||!1!==T||(Object(E.b)("".concat(m,"_authentication-success-notification"),"complete_site_setup",D?"proxy":"custom-oauth"),W(!0)))}),[N,F,L,T,D,A,s,i,m]);var V=Object(u.useCallback)((function(){Object(E.b)("".concat(m,"_authentication-success-notification"),"view_notification")}),[m]),H=Object(u.useCallback)(c()(a.a.mark((function t(){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(E.b)("".concat(m,"_authentication-success-notification"),"confirm_notification");case 2:n=Object(g.a)(e.location.href,"notification"),e.history.replaceState(null,"",n);case 4:case"end":return t.stop()}}),t)}))),[m]);if(void 0===A)return null;if(!s||""===s)return null;if("authentication_success"===s&&!N)return null;if("authentication_success"===s&&i&&!(null===(t=A[i])||void 0===t?void 0:t.active))return null;var U={id:"connected-successfully",setupTitle:Object(d.__)("Site Kit","google-site-kit"),description:"",learnMore:{label:"",url:"",description:""}};switch(s){case"authentication_success":if(A[i]&&(U.id="".concat(U.id,"-").concat(i),U.setupTitle=A[i].name,U.description="",x)){var q=x.description,G=x.learnMore;U.description=q,U.learnMore=G}if("pagespeed-insights"===i){var K="#".concat(b.d);U.description=r.createElement("p",{className:"googlesitekit-publisher-win__link"},r.createElement(w.a,{href:K,onClick:function(t){t.preventDefault(),e.history.replaceState({},"",K),e.scrollTo({top:Object(k.a)(K,f),behavior:"smooth"})}},Object(d.__)("Jump to the bottom of the dashboard to see how fast your home page is","google-site-kit")))}else U.description||U.learnMore.label||(U.description=Object(d.__)("Connect more services to see more stats.","google-site-kit"),U.learnMore={label:Object(d.__)("Go to Settings","google-site-kit"),url:"".concat(R,"#/connect-more-services"),target:h.a.INTERNAL});return r.createElement(u.Fragment,null,r.createElement(h.b,{id:U.id,title:Object(d.sprintf)( /* translators: %s: the name of a module that setup was completed for */ Object(d.__)("Congrats on completing the setup for %s!","google-site-kit"),U.setupTitle),description:U.description,handleDismiss:function(){},WinImageSVG:v.a,onView:V,dismiss:Object(d.__)("OK, Got it!","google-site-kit"),onDismiss:H,format:"smaller",type:"win-success",learnMoreLabel:U.learnMore.label,learnMoreDescription:U.learnMore.description,learnMoreURL:U.learnMore.url,learnMoreTarget:U.learnMore.target}));default:return null}}}).call(this,n(24),n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),o=r.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),l=r.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),u=r.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),d=r.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),g=r.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),f=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,g,f)}},function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),a=n(1),o=n(4),c=n.n(o),s=n(14),l=n(7),u=n(860),d=c.a.useSelect;t.a=function CoreSiteBannerNotifications(){var t=Object(a.useState)(!1),n=i()(t,2),r=n[0],o=n[1],c=Object(a.useState)(!1),g=i()(c,2),f=g[0],m=g[1],p=Object(a.useRef)(Date.now()),h=d((function(e){return e(s.c).isUsingProxy()&&!1===e(l.a).areSurveysOnCooldown()?e(l.a).getCurrentSurvey():null})),v=d((function(e){return e(s.c).getNotifications()}));return Object(a.useEffect)((function(){var e=setTimeout((function(){f||o(!0)}),5e3);return function(){clearTimeout(e)}}),[f]),Object(a.useEffect)((function(){Math.floor((Date.now()-p.current)/1e3)<5&&h&&m(!0)}),[p,h,m]),Array.isArray(v)&&r&&!f?v.map((function(t){return e.createElement(u.a,{content:t.content,ctaLabel:t.ctaLabel,ctaTarget:t.ctaTarget,ctaURL:t.ctaURL,dismissLabel:t.dismissLabel,dismissible:t.dismissible,id:t.id,key:t.id,learnMoreLabel:t.learnMoreLabel,learnMoreURL:t.learnMoreURL,title:t.title})})):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(2),o=n(1),c=n(4),s=n.n(c),l=n(43),u=n(14),d=n(8),g=n(19),f=s.a.useDispatch;function CoreSiteBannerNotification(t){var n=t.content,r=t.ctaLabel,i=t.ctaTarget,a=t.ctaURL,c=t.dismissLabel,s=t.dismissible,m=t.id,p=t.learnMoreLabel,h=t.learnMoreURL,v=t.title,b=f(u.c),_=b.dismissNotification,O=b.acceptNotification,y=Object(g.a)(),E=Object(o.useCallback)((function(){Object(d.B)("".concat(y,"_remote-site-notification"),"view_notification",m)}),[m,y]),k=Object(o.useCallback)((function(){O(m),Object(d.B)("".concat(y,"_remote-site-notification"),"confirm_notification",m)}),[m,O,y]),j=Object(o.useCallback)((function(){_(m),Object(d.B)("".concat(y,"_remote-site-notification"),"dismiss_notification",m)}),[m,_,y]),S=Object(o.useCallback)((function(){Object(d.B)("".concat(y,"_remote-site-notification"),"click_learn_more_link",m)}),[m,y]);return e.createElement(l.b,{key:m,id:m,title:v,description:n,learnMoreURL:h,learnMoreLabel:p,ctaLink:a,ctaLabel:r,ctaTarget:i,dismiss:c,isDismissible:s,onCTAClick:k,onView:E,onDismiss:j,onLearnMoreClick:S})}CoreSiteBannerNotification.propTypes={content:i.a.string,ctaLabel:i.a.string,ctaTarget:i.a.string,ctaURL:i.a.string,dismissLabel:i.a.string,dismissible:i.a.bool,id:i.a.string.isRequired,learnMoreLabel:i.a.string,learnMoreURL:i.a.string,title:i.a.string.isRequired},CoreSiteBannerNotification.defaultProps={content:"",ctaLabel:"",ctaTarget:"",ctaURL:"",dismissLabel:Object(a.__)("OK, Got it!","google-site-kit"),dismissible:!0,learnMoreLabel:"",learnMoreURL:""},t.a=CoreSiteBannerNotification}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleRecoveryAlert}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(6),s=n.n(c),l=n(17),u=n.n(l),d=n(1),g=n(2),f=n(4),m=n.n(f),p=n(10),h=n(14),v=n(18),b=n(8),_=n(43),O=n(639);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(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){s()(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=m.a.useDispatch,j=m.a.useSelect;function ModuleRecoveryAlert(){var t=Object(d.useState)(null),n=u()(t,2),r=n[0],a=n[1],c=Object(d.useState)(!1),l=u()(c,2),f=l[0],m=l[1],y=j((function(e){return e(v.a).getRecoverableModules()})),S=j((function(e){return e(h.c).getDocumentationLinkURL("dashboard-sharing")})),w=j((function(e){var t=e(v.a).getRecoverableModules();if(void 0!==t){var n=Object.keys(t).map((function(t){return{slug:t,hasModuleAccess:e(v.a).hasModuleAccess(t)}}));if(!n.some((function(e){return void 0===e.hasModuleAccess})))return n.filter((function(e){return e.hasModuleAccess})).map((function(e){return e.slug}))}})),C=j((function(e){if(y){var t=e(v.a).getRecoveredModules();if(!t)return{};var n=Object.keys(y),r=function(e){var n;return null==t||null===(n=t.error)||void 0===n?void 0:n[e]};return n.filter((function(e){return!!r(e)})).reduce((function(e,t){return E(E({},e),{},s()({},t,E({name:y[t].name},r(t))))}),{})}})),A=k(v.a),N=A.recoverModules,T=A.clearRecoveredModules,D=void 0===w||null===r,x=Object(d.useCallback)((function(e){return a((function(t){return E(E({},t),{},s()({},e,!t[e]))}))}),[]),R=Object(d.useCallback)(o()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),t=Object.keys(r).filter((function(e){return r[e]})),e.next=4,T();case 4:return e.next=6,N(t);case 6:return m(!1),a(null),e.abrupt("return",{dismissOnCTAClick:!1});case 9:case"end":return e.stop()}}),e)}))),[r,T,N]);Object(d.useEffect)((function(){if(void 0!==w&&null===r){var e={};w.forEach((function(t){e[t]=!0})),a(e)}}),[r,w]);var M=Object.keys(y||{});if(void 0===y||0===M.length)return null;var P=null,L=null,I=null,B=!0;return D?(L=e.createElement(p.ProgressBar,null),B=!1):0===w.length?1===M.length?P=Object(g.sprintf)( /* translators: %s: module name. */ Object(g.__)("%s data was previously shared with other users on the site by another admin who no longer has access. To restore access, the module must be recovered by another admin who has access.","google-site-kit"),y[M[0]].name):(P=Object(g.__)("The data for the following modules was previously shared with other users on the site by another admin who no longer has access. To restore access, the module must be recovered by another admin who has access.","google-site-kit"),L=e.createElement("ul",{className:"mdc-list mdc-list--non-interactive"},M.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},y[t].name))})))):1===w.length?(P=Object(g.sprintf)( /* translators: %s: module name. */ Object(g.__)("%s data was previously shared with other users on the site by another admin who no longer has access. To restore access, you may recover the module as the new owner.","google-site-kit"),y[w[0]].name),L=e.createElement(d.Fragment,null,e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(g.__)("By recovering the module, you will restore access for other users by sharing access via your Google account. This does not make any changes to external services and can be managed at any time via the dashboard sharing settings.","google-site-kit")),Object.keys(C).length>0&&e.createElement(O.a,{recoveryErrors:C})),I=R):(P=Object(g.__)("The data for the following modules was previously shared with other users on the site by another admin who no longer has access. To restore access, you may recover the module as the new owner.","google-site-kit"),L=e.createElement(d.Fragment,null,w.map((function(t){return e.createElement("div",{key:t},e.createElement(p.Checkbox,{checked:r[t],name:"module-recovery-alert-checkbox",id:"module-recovery-alert-checkbox-".concat(t),onChange:function(){return x(t)},value:t,disabled:f},y[t].name))})),e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(g.__)("By recovering the selected modules, you will restore access for other users by sharing access via your Google account. This does not make any changes to external services and can be managed at any time via the dashboard sharing settings.","google-site-kit")),Object.keys(C).length>0&&e.createElement(O.a,{recoveryErrors:C})),I=R),e.createElement(_.b,{id:"module-recovery-alert",title:Object(g.__)("Dashboard data for some services has been interrupted","google-site-kit"),onCTAClick:I,ctaLabel:I?Object(g.__)("Recover","google-site-kit"):null,ctaLink:I?"#":null,description:P,learnMoreURL:S,learnMoreLabel:Object(g.__)("Learn more","google-site-kit"),isDismissible:B,dismiss:Object(g.__)("Remind me later","google-site-kit"),dismissExpires:Object(b.p)("day")},L)}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(1),i=n(2),a=n(4),o=n.n(a),c=n(18),s=n(25),l=n(863),u=n(43),d=o.a.useSelect;t.a=function AdSenseAlerts(){var t=d((function(e){return e(c.a).isModuleConnected("adsense")})),n=d((function(e){return e(s.m).getAccountID()})),a=d((function(e){return e(s.m).getNotifications()}));return t&&n&&void 0!==a?e.createElement(r.Fragment,null,a.map((function(t){var n=t.id,r=t.title,a=t.description,o=t.format,c=t.ctaURL,s=t.ctaLabel,d=t.ctaTarget,g=t.severity,f=t.isDismissable;return e.createElement(u.b,{key:n,id:n,title:r||"",description:a,WinImageSVG:l.a,format:o||"small",ctaLink:c,ctaLabel:s,ctaTarget:d,type:g,dismiss:Object(i.__)("OK, Got it!","google-site-kit"),isDismissible:f||!0,logo:!0,module:"adsense",moduleName:Object(i._x)("AdSense","Service name","google-site-kit"),dismissExpires:0,showOnce:!1})}))):null}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("g",{clipPath:"url(#notification-alert_svg__clip0)",strokeMiterlimit:10,strokeWidth:15},r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15s44.18-11.1 65.14-20.18c9.91-4.3 20.07-8.62 30.85-9.31s22.46 2.9 28.7 11.71a24 24 0 013.78 17.65",stroke:"#4285F4"}),r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15",stroke:"#1A73E8"})),c=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),s=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),l=r.createElement("path",{d:"M221.3 13l-94.69 95.2a10 10 0 004.53 16.72L261 159.3a10 10 0 0012.18-12.3L238 17.39A10 10 0 00221.3 13z",fill:"#D93025"}),u=r.createElement("path",{d:"M137.37 111.56l87.36-87.87a3 3 0 015 1.33l32.42 119.6a3 3 0 01-3.66 3.68l-119.76-31.72a3 3 0 01-1.36-5.02z",stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:2}),d=r.createElement("path",{d:"M196.78 118.35a7.38 7.38 0 01-.78-5.84 7.25 7.25 0 013.56-4.64 7.46 7.46 0 015.83-.73 7.51 7.51 0 015.4 9.29 7.51 7.51 0 01-3.52 4.7 7.27 7.27 0 01-5.8.8 7.44 7.44 0 01-4.69-3.58zm12.05-46.1l5.56-21 10.82 2.87-5.55 21-8 25.41-8.6-2.28z",fill:"#FFF"}),g=r.createElement("path",{d:"M198.47 181.73a23.18 23.18 0 01-8.2 14.28c-9.2 7.58-24.24 6.67-32.46-2",stroke:"#4285F4",strokeMiterlimit:10,strokeWidth:15}),f=r.createElement("defs",null,r.createElement("clipPath",{id:"notification-alert_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgNotificationAlert(e){return r.createElement("svg",i({viewBox:"0 0 300 300",fill:"none"},e),a,o,c,s,l,u,d,g,f)}},function(e,t,n){"use strict";(function(e){var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(17),s=n.n(c),l=n(2),u=n(1),d=n(10),g=n(4),f=n.n(g),m=n(14),p=n(8),h=n(303),v=n(7),b=n(39),_=n(124),O=n(43),y=n(472),E=f.a.useSelect,k=f.a.useDispatch;t.a=function EnableAutoUpdateBannerNotification(){var t=E((function(e){return e(v.a).hasCapability(v.E)})),n=E((function(e){return e(v.a).isItemDismissed(y.b)})),r=E((function(e){return e(m.c).hasChangePluginAutoUpdatesCapacity()})),a=E((function(e){return e(m.c).getSiteKitAutoUpdatesEnabled()})),c=E((function(e){return e(m.c).isDoingEnableAutoUpdate()})),g=E((function(e){return e(m.c).getErrorForAction("enableAutoUpdate",[])})),f=k(m.c).enableAutoUpdate,j=k(v.a).dismissItem,S=Object(h.a)("notification"),w=s()(S,1)[0],C=Object(u.useState)(!0),A=s()(C,2),N=A[0],T=A[1],D=Object(u.useState)(void 0),x=s()(D,2),R=x[0],M=x[1];Object(u.useEffect)((function(){void 0===R&&void 0!==a&&M(a)}),[R,a]);var P=Object(u.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:case"end":return e.stop()}}),e)}))),[f]);Object(u.useEffect)((function(){!1===R&&!0===a&&M(!0)}),[R,a]);var L=Object(u.useCallback)(function(){var e=o()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=6;break}return e.next=3,Object(b.f)(y.a,!0,{ttl:10*Object(p.p)()});case 3:T(t),e.next=11;break;case 6:return e.next=8,Object(b.d)(y.a);case 8:n=e.sent,r=n.value,T(!!r);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[T]);return Object(u.useEffect)((function(){t&&r&&!a&&L("authentication_success"===w)}),[w,t,r,L,a]),!1!==n||!t||!r||a&&!R||N?null:e.createElement(O.b,{id:y.c,title:R?Object(l.__)("Thanks for enabling auto-updates","google-site-kit"):Object(l.__)("Keep Site Kit up-to-date","google-site-kit"),description:R?Object(l.__)("Auto-updates have been enabled. Your version of Site Kit will automatically be updated when new versions are available.","google-site-kit"):Object(l.__)("Turn on auto-updates so you always have the latest version of Site Kit. We constantly introduce new features to help you get the insights you need to be successful on the web.","google-site-kit"),ctaComponent:R?void 0:e.createElement(u.Fragment,null,g&&e.createElement("div",null,e.createElement(_.a,{error:g,storeName:m.c})),e.createElement(d.SpinnerButton,{onClick:P,isSaving:c},Object(l.__)("Enable auto-updates","google-site-kit"))),dismiss:Object(l.__)("Dismiss","google-site-kit"),isDismissible:!0,dismissExpires:0,onDismiss:function(){j(y.b)}})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GoogleTagIDMismatchNotification}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(2),s=n(1),l=n(4),u=n.n(l),d=n(9),g=n(60),f=n(10),m=n(43),p=n(18),h=n(15),v=n(866),b=u.a.useSelect,_=u.a.useDispatch;function GoogleTagIDMismatchNotification(){var t=b((function(e){return e(d.m).getSettings()})),n=b((function(e){return(null==t?void 0:t.googleTagAccountID)&&(null==t?void 0:t.googleTagContainerID)&&e(d.m).getGoogleTagContainerDestinations(t.googleTagAccountID,t.googleTagContainerID)})),r=b((function(e){return(null==t?void 0:t.propertyID)&&e(d.m).getProperty(t.propertyID)})),a=b((function(e){if(!Array.isArray(n))return null;var t=n.map((function(e){return e.destinationId})).filter(g.e);return 0===t.length?null:e(d.m).getAnalyticsConfigByMeasurementIDs(t)})),l=b((function(e){return a&&a.propertyID&&e(d.m).getProperty(null==a?void 0:a.propertyID)})),u=b((function(e){var n,r=(null==t?void 0:t.measurementID)&&(null===(n=e(d.m).getGoogleTagContainer(null==t?void 0:t.measurementID))||void 0===n?void 0:n.tagIds);if(Array.isArray(r))return Object(v.a)(r,t.measurementID)})),O=b((function(e){return e(p.a).isDoingSubmitChanges("analytics-4")})),y=_(d.m),E=y.setPropertyID,k=y.setWebDataStreamID,j=y.setMeasurementID,S=y.updateSettingsForMeasurementID,w=y.submitChanges,C=y.setHasMismatchedGoogleTagID,A=Object(s.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(null==a?void 0:a.propertyID),k(null==a?void 0:a.webDataStreamID),j(null==a?void 0:a.measurementID),e.next=5,w();case 5:C(!1);case 6:case"end":return e.stop()}}),e)}))),[E,k,j,null==a?void 0:a.propertyID,null==a?void 0:a.webDataStreamID,null==a?void 0:a.measurementID,w,C]),N=Object(s.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S(null==t?void 0:t.measurementID);case 2:return e.next=4,w();case 4:C(!1);case 5:case"end":return e.stop()}}),e)}))),[S,null==t?void 0:t.measurementID,w,C]);return void 0===n||void 0===l||void 0===u||void 0===r?e.createElement("div",{className:"googlesitekit-publisher-win"},e.createElement(h.e,null,e.createElement(h.k,null,e.createElement(h.a,{size:12},e.createElement(f.ProgressBar,null))))):l?e.createElement(m.b,{id:"google-tag-id-mismatch",title:Object(c.__)("Update Site Kit's Analytics configuration to continue seeing Analytics data on the dashboard","google-site-kit"),description:Object(c.sprintf)( /* translators: 1: Currently GA4 property name. 2: Current GA4 property ID. 3: Newly linked GA4 property name. 4: Newly linked GA4 property ID. */ Object(c.__)('The Google Tag on your site is no longer associated with your current Google Analytics property "%1$s (%2$s)". It is now recording metrics to another Google Analytics property "%3$s (%4$s)". If you want to continue seeing Analytics data in the Site Kit dashboard, we suggest you update Site Kit’s Google Analytics configuration to show data for the property used in your Google Tag.',"google-site-kit"),r.displayName,r._id,l.displayName,l._id),ctaComponent:e.createElement(s.Fragment,null,e.createElement(f.SpinnerButton,{onClick:A,isSaving:O},Object(c.__)("Use new property","google-site-kit")),e.createElement(f.Button,{tertiary:!0,onClick:N},Object(c.__)("Keep existing property","google-site-kit"))),isDismissible:!1}):u?e.createElement(m.b,{id:"google-tag-id-mismatch",title:Object(c.__)("Your Google tag configuration has changed","google-site-kit"),description:Object(c.sprintf)( /* translators: 1: Currently set Google Tag ID. 2: Newly linked Google Tag ID. 3: Currently GA4 property name. 4: Current GA4 property ID. */ Object(c.__)('The Google tag for your Google Analytics configuration has changed from %1$s to %2$s. To keep using your current Google Analytics property "%3$s (%4$s)", you need to configure Site Kit to place the new Google tag %2$s instead.',"google-site-kit"),t.googleTagID,u,r.displayName,r._id),ctaLabel:Object(c.sprintf)( /* translators: %s: Newly linked Google Tag ID. */ Object(c.__)("Update Google tag to %s","google-site-kit"),u),ctaLink:N?"#":null,onCTAClick:N,isDismissible:!1}):void 0}}).call(this,n(3))},function(e,t,n){"use strict";function r(e,t){if(1===e.length)return e[0];var n=e.find((function(e){return"GT-"===e.substring(0,3)}));if(n)return n;if(e.includes(t))return t;var r=e.find((function(e){return"G-"===e.substring(0,2)}));return r||e[0]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebDataStreamNotAvailableNotification}));var r=n(2),i=n(10),a=n(4),o=n.n(a),c=n(43),s=n(9),l=n(14),u=n(8),d=n(15),g=o.a.useSelect;function WebDataStreamNotAvailableNotification(){var t=g((function(e){return e(s.m).isWebDataStreamAvailable()})),n=g((function(e){return e(s.m).getMeasurementID()})),a=g((function(e){return e(l.c).getAdminURL("googlesitekit-settings")}));return t?null:void 0===n?e.createElement("div",{className:"googlesitekit-publisher-win"},e.createElement(d.e,null,e.createElement(d.k,null,e.createElement(d.a,{size:12},e.createElement(i.ProgressBar,null))))):e.createElement(c.b,{id:"web-data-stream-not-available",title:Object(r.__)("Your Analytics configuration has changed","google-site-kit"),description:Object(r.sprintf)( /* translators: 1: Google Analytics Measurement ID. */ Object(r.__)("The previously selected web data stream with measurement ID %1$s is no longer available. Please select a new web data stream to continue collecting data with Google Analytics.","google-site-kit"),n),ctaLink:"".concat(a,"#connected-services/analytics-4/edit"),ctaLabel:Object(r.__)("Update Analytics settings","google-site-kit"),dismiss:Object(r.__)("Maybe later","google-site-kit"),dismissExpires:55*Object(u.p)("minute")})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return AdBlockingRecoverySetupSuccessBannerNotification}));var i=n(1),a=n(48),o=n(2),c=n(936),s=n(4),l=n.n(s),u=n(869),d=n(19),g=n(25),f=n(8),m=n(23),p=n(43),h=n(14),v=n(7),b=l.a.useDispatch,_=l.a.useSelect;function AdBlockingRecoverySetupSuccessBannerNotification(){var t=Object(d.a)(),n=b(v.a).triggerSurvey,s=_((function(e){return e(h.c).isUsingProxy()})),l=_((function(e){return e(g.m).getAdBlockingRecoverySetupStatus()})),O=_((function(e){return e(g.m).getAccountID()})),y=_((function(e){return e(g.m).getServiceURL({path:"/".concat(O,"/privacymessaging/ad_blocking")})})),E=Object(i.useCallback)((function(){Object(f.B)("".concat(t,"_adsense-abr-success-notification"),"view_notification"),s&&n("abr_setup_completed",{ttl:f.a})}),[n,s,t]);return l!==g.k.SETUP_CONFIRMED?null:r.createElement(p.b,{id:g.d,className:"googlesitekit-ad-blocking-recovery-notification",title:Object(o.__)("You successfully enabled the ad blocking recovery message","google-site-kit"),description:r.createElement("p",null,Object(a.a)(Object(o.__)("Make sure to also create the message in <a>AdSense</a>, otherwise this feature won’t work","google-site-kit"),{a:r.createElement(m.a,{href:y,external:!0,hideExternalIndicator:!0})})),dismiss:Object(o.__)("OK, Got it!","google-site-kit"),onDismiss:function(){Object(f.B)("".concat(t,"_adsense-abr-success-notification"),"confirm_notification");var n=Object(c.a)(e.location.href,"notification");e.history.replaceState(null,"",n)},isDismissible:!0,onView:E,type:"win-success",WinImageSVG:function WinImageSVG(){return r.createElement(u.a,null)},format:"small"})}}).call(this,n(24),n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{d:"M12.9 14.73a46.926 46.926 0 014.92-3.892C34.333-.533 47.975-.514 66.862 1.562c12.769 1.402 23.849 8.053 37.279 7.405 13.43-.648 31.996-4.651 46.813-3.786 16.868.985 21.156 2.71 36.153 9.55 13.879 6.33 26.481 17.452 32.814 32.16 10.855 25.211-8.5 70.586-34.456 72.726-18.808 1.551-34.33-16.736-53.314-12.501-11.694 2.609-18.63 13.554-27.652 20.777-10.527 8.428-27.56 7.898-39.886 3.401-11.746-4.286-20.373-12.772-24.209-25.282-2.92-9.526-2.627-19.07-9.64-26.532C20.869 68.95 5.394 66.512.732 46.89-2.218 34.47 4.13 22.687 12.9 14.73z",fill:"#F3F5F7"}),o=r.createElement("g",{filter:"url(#ad-blocking-recovery-success_svg__filter0_d_766_3674)"},r.createElement("path",{d:"M48.967 34.532a9.359 9.359 0 019.358-9.36h107.2a9.359 9.359 0 019.359 9.36v70.648c0 5.168-4.19 9.358-9.359 9.358h-107.2a9.359 9.359 0 01-9.358-9.358V34.531z",fill:"#fff"}),r.createElement("path",{d:"M49.392 34.532c0-4.934 4-8.934 8.933-8.934h107.2c4.934 0 8.933 4 8.933 8.934v70.648a8.933 8.933 0 01-8.933 8.933h-107.2c-4.933 0-8.933-4-8.933-8.933V34.531z",stroke:"#CBD0D3",strokeWidth:.851})),c=r.createElement("rect",{x:70.447,y:59.985,width:82.216,height:4.444,rx:2.222,fill:"#EBEEF0"}),s=r.createElement("rect",{x:89.705,y:85.169,width:45.182,height:19.258,rx:9.629,fill:"#77AD8C"}),l=r.createElement("circle",{cx:111.926,cy:42.209,r:8.148,fill:"#EBEEF0"}),u=r.createElement("path",{d:"M106.74 94.545l4.257 4.257 8.078-8.078",stroke:"#fff",strokeWidth:2.552}),d=r.createElement("rect",{x:68.966,y:70.355,width:83.698,height:4.444,rx:2.222,fill:"#EBEEF0"}),g=r.createElement("defs",null,r.createElement("filter",{id:"ad-blocking-recovery-success_svg__filter0_d_766_3674",x:48.967,y:25.173,width:129.32,height:93.62,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.403,dy:4.254}),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_766_3674"}),r.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_766_3674",result:"shape"})));t.a=function SvgAdBlockingRecoverySuccess(e){return r.createElement("svg",i({viewBox:"0 0 223 135",fill:"none"},e),a,o,c,s,l,u,d,g)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CurrentSurveyPortal}));var r=n(4),i=n.n(r),a=n(14),o=n(7),c=n(871),s=n(85),l=i.a.useSelect;function CurrentSurveyPortal(){return l((function(e){return e(a.c).isUsingProxy()&&!1===e(o.a).areSurveysOnCooldown()?e(o.a).getCurrentSurvey():null}))?e.createElement(s.a,{slug:"survey"},e.createElement(c.a,null)):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CurrentSurvey}));var r=n(21),i=n.n(r),a=n(29),o=n.n(a),c=n(6),s=n.n(c),l=n(17),u=n.n(l),d=n(88),g=n(616),f=n(1),m=n(2),p=n(4),h=n.n(p),v=n(34),b=n(7),_=n(872),O=n(873),y=n(880),E=n(881),k=n(882),j=n(884);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 w(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 w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,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,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function w(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 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 A(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){s()(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 N=h.a.useDispatch,T=h.a.useSelect,D=["multi_select","open_text","rating","single_select"];function CurrentSurvey(){var t=Object(f.useState)(!1),n=u()(t,2),r=n[0],a=n[1],c=Object(f.useState)(!1),l=u()(c,2),p=l[0],h=l[1],w=Object(f.useState)(!1),C=u()(w,2),x=C[0],R=C[1],M=Object(f.useState)(!1),P=u()(M,2),L=P[0],I=P[1],B=T((function(e){return e(b.a).getCurrentSurveyCompletions()})),z=T((function(e){return e(b.a).getCurrentSurveyQuestions()})),F=T((function(e){return e(b.a).getCurrentSurveySession()})),W=T((function(e){return e(b.a).isTrackingEnabled()})),V=F?"survey-".concat(F.session_id):null,H=T((function(e){return e(v.a).getValue(V,"hideSurvey")})),U=T((function(e){return e(v.a).getValue(V,"answers")||[]})),q=N(v.a).setValues,G=N(b.a).sendSurveyEvent;Object(f.useEffect)((function(){(null==z?void 0:z.length)&&!r&&(a(!0),G("survey_shown"))}),[z,r,G]);var K,Y=U.reduce((function(e,t){var n=t.question_ordinal,r=t.answer;return A(A({},e),{},s()({},n,r.answer.answer_ordinal||r.answer))}),{}),$=Math.max.apply(Math,[0].concat(o()(U.map((function(e){return e.question_ordinal})))))+1,X=null==z?void 0:z.find((function(e){var t=e.question_ordinal,n=e.trigger_condition;if(t<$)return!1;if(Array.isArray(n)&&n.length>0){var r,i=S(n);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=Y[a.question_ordinal],c=a.answer_ordinal||[];if(!o||!c.includes(o))return $++,!1}}catch(e){i.e(e)}finally{i.f()}}return t===$})),Q=Object(f.useCallback)((function(e){L||(I(!0),G("question_answered",{question_ordinal:null==X?void 0:X.question_ordinal,answer:e}),setTimeout((function(){q(V,{answers:[].concat(o()(U),[{question_ordinal:null==X?void 0:X.question_ordinal,answer:e}])}),I(!1)}),300))}),[U,X,V,G,q,L]);(null==z?void 0:z.length)&&$>z.length&&((K=(B||[]).find((function(e){var t,n=S(e.trigger_condition||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.answer_ordinal.includes(Y[r.question_ordinal]))return K=e,!0}}catch(e){n.e(e)}finally{n.f()}return!1})))||(K=B[0]));var Z=Object(f.useCallback)((function(){var e;G("follow_up_link_clicked",{completion_ordinal:null===(e=K)||void 0===e?void 0:e.completion_ordinal}),G("survey_closed"),q(V,{hideSurvey:!0})}),[V,G,q,K]),J=Object(f.useCallback)((function(){G("survey_closed"),R(!1)}),[G]),ee=Object(f.useCallback)((function(){q(V,{hideSurvey:!0})}),[V,q]);if(Object(f.useEffect)((function(){var e;K&&!p&&(h(!0),G("completion_shown",{completion_ordinal:null===(e=K)||void 0===e?void 0:e.completion_ordinal}))}),[p,G,K]),Object(d.a)((function(){R(!0)})),H||!z||!B||void 0===W)return null;if(K)return e.createElement(g.a,{direction:"up",in:x,onExited:ee},e.createElement("div",{className:"googlesitekit-survey"},e.createElement(_.a,{dismissSurvey:J,ctaOnClick:Z,ctaText:K.follow_up_text,ctaURL:K.follow_up_url,title:K.completion_title},K.completion_text)));if(!D.includes(null==X?void 0:X.question_type))return null;var te={key:X.question_text,answerQuestion:Q,dismissSurvey:J,question:X.question_text,submitButtonText:(null==z?void 0:z.length)===$?Object(m.__)("Submit","google-site-kit"):Object(m.__)("Next","google-site-kit")};return e.createElement(g.a,{direction:"up",in:x,onExited:ee},e.createElement("div",{className:"googlesitekit-survey"},"multi_select"===X.question_type&&e.createElement(E.a,i()({},te,{choices:X.question.answer_choice,minChoices:X.question.min_choices,maxChoices:X.question.max_choices})),"open_text"===X.question_type&&e.createElement(y.a,i()({},te,{subtitle:X.question.subtitle,placeholder:X.question.placeholder})),"rating"===X.question_type&&e.createElement(O.a,i()({},te,{choices:X.question.answer_choice})),"single_select"===X.question_type&&e.createElement(k.a,i()({},te,{choices:X.question.answer_choice})),!1===W&&1===(null==X?void 0:X.question_ordinal)&&e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(j.a,null))))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(10),o=n(386);function SurveyCompletion(t){var n=t.title,r=t.children,i=t.ctaText,c=t.ctaURL,s=t.ctaOnClick,l=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__completion"},e.createElement(o.a,{title:n,dismissSurvey:l}),e.createElement("div",{className:"googlesitekit-survey__body"},r),c&&i&&e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(a.Button,{href:c,onClick:s,target:"_blank"},i)))}SurveyCompletion.propTypes={title:i.a.string.isRequired,children:i.a.node,ctaText:i.a.string,ctaURL:i.a.string,ctaOnClick:i.a.func,dismissSurvey:i.a.func.isRequired},SurveyCompletion.defaultProps={title:"",children:null,ctaText:"",ctaURL:"",ctaOnClick:null},t.a=SurveyCompletion}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(386),o=n(874);function SurveyQuestionRating(t){var n=t.question,r=t.choices,i=t.answerQuestion,c=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__question-rating"},e.createElement(a.a,{title:n,dismissSurvey:c}),e.createElement("div",{className:"googlesitekit-survey__body"},e.createElement("div",{className:"googlesitekit-survey__choices"},r.map((function(t,n){return e.createElement(o.a,{key:n,choice:t,answerQuestion:i})})))))}SurveyQuestionRating.propTypes={question:i.a.string.isRequired,choices:i.a.arrayOf(i.a.shape({answer_ordinal:i.a.oneOfType([i.a.string,i.a.number]),text:i.a.string})).isRequired,answerQuestion:i.a.func.isRequired,dismissSurvey:i.a.func.isRequired},t.a=SurveyQuestionRating}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(1),o=n(10),c=n(875),s=n(876),l=n(877),u=n(878),d=n(879),g={1:c.a,2:s.a,3:l.a,4:u.a,5:d.a};function SurveyQuestionRatingChoice(t){var n=t.choice,r=t.answerQuestion,i=Object(a.useCallback)((function(){"function"==typeof r&&r({answer:{answer_ordinal:n.answer_ordinal}})}),[r,n]),c=g[n.answer_ordinal];return c?e.createElement("div",{className:"googlesitekit-survey__choice"},e.createElement(o.Button,{icon:e.createElement(c,{width:30,height:30}),"aria-label":n.text,onClick:i}),e.createElement("p",null,n.text)):null}SurveyQuestionRatingChoice.propTypes={choice:i.a.shape({answer_ordinal:i.a.oneOfType([i.a.string,i.a.number]),text:i.a.string}).isRequired},t.a=SurveyQuestionRatingChoice}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15c0 8.28 6.705 15 14.985 15C23.28 30 30 23.28 30 15c0-8.28-6.72-15-15.015-15zM15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12zm7.5-15.75a2.247 2.247 0 01-2.25 2.25A2.247 2.247 0 0118 11.25 2.247 2.247 0 0120.25 9a2.247 2.247 0 012.25 2.25zM9.75 13.5A2.247 2.247 0 0012 11.25 2.247 2.247 0 009.75 9a2.247 2.247 0 00-2.25 2.25 2.247 2.247 0 002.25 2.25zm-2.415 9c1.2-3.06 4.17-5.25 7.665-5.25s6.465 2.19 7.665 5.25H7.335z",fill:"currentColor"});t.a=function SvgSurveyUnhappy(e){return r.createElement("svg",i({fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zm-9.75-1.5a2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9 2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25zm-13.725 9c1.245-3.495 4.56-6 8.49-6 3.915 0 7.23 2.505 8.475 6h-3.315c-1.035-1.785-2.955-3-5.16-3-2.22 0-4.125 1.215-5.175 3H6.525zM12 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9 2.247 2.247 0 0112 11.25zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveyDissatisfied(e){return r.createElement("svg",i({fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zM9.75 9A2.247 2.247 0 0112 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9zm10.5 0A2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25 2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9zM10.5 22.5v-3h9v3h-9zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveyNeutral(e){return r.createElement("svg",i({fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zm-9.75-1.5a2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9 2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25zm3.225 4.5c-1.245 3.495-4.56 6-8.49 6-3.915 0-7.23-2.505-8.475-6h3.315c1.035 1.785 2.955 3 5.16 3 2.22 0 4.125-1.215 5.175-3h3.315zM12 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9 2.247 2.247 0 0112 11.25zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveySatisfied(e){return r.createElement("svg",i({fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=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 a=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15c0 8.28 6.705 15 14.985 15C23.28 30 30 23.28 30 15c0-8.28-6.72-15-15.015-15zM15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12zm7.5-15.75a2.247 2.247 0 01-2.25 2.25A2.247 2.247 0 0118 11.25 2.247 2.247 0 0120.25 9a2.247 2.247 0 012.25 2.25zM9.75 13.5A2.247 2.247 0 0012 11.25 2.247 2.247 0 009.75 9a2.247 2.247 0 00-2.25 2.25 2.247 2.247 0 002.25 2.25zM22.665 18c-1.2 3.06-4.17 5.25-7.665 5.25S8.535 21.06 7.335 18h15.33z",fill:"currentColor"});t.a=function SvgSurveyDelighted(e){return r.createElement("svg",i({fill:"none"},e),a)}},function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),a=n(0),o=n.n(a),c=n(1),s=n(212),l=n(10),u=n(386),d=n(103),g=n(463);function SurveyQuestionOpenText(t){var n=t.question,r=t.answerQuestion,a=t.placeholder,o=t.subtitle,f=t.dismissSurvey,m=t.submitButtonText,p=Object(c.useState)(""),h=i()(p,2),v=h[0],b=h[1],_=Object(c.useCallback)((function(e){b(e.target.value.slice(0,g.a))}),[b]),O=Object(s.a)(SurveyQuestionOpenText,"SurveyQuestionOpenText");return e.createElement("div",{className:"googlesitekit-survey__open-text"},e.createElement(u.a,{title:n,dismissSurvey:f}),e.createElement("div",{className:"googlesitekit-survey__body"},e.createElement(d.a,null,e.createElement("label",{htmlFor:O},a)),e.createElement(l.TextField,{name:"survey-opentext-".concat(O),helperText:o,onChange:_,label:a,textarea:!0,inputType:"textarea",id:O,value:v})),e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(l.Button,{disabled:0===v.length,onClick:function(){r({answer:v})}},m)))}SurveyQuestionOpenText.propTypes={question:o.a.string.isRequired,subtitle:o.a.string.isRequired,placeholder:o.a.string.isRequired,answerQuestion:o.a.func.isRequired,dismissSurvey:o.a.func.isRequired,submitButtonText:o.a.string.isRequired},t.a=SurveyQuestionOpenText}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),a=n(6),o=n.n(a),c=n(12),s=n.n(c),l=n(0),u=n.n(l),d=n(13),g=n(212),f=n(1),m=n(2),p=n(10),h=n(386),v=n(103),b=n(463);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 O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){o()(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}function SurveyQuestionMultiSelect(t){var n=t.question,r=t.choices,a=t.answerQuestion,c=t.dismissSurvey,l=t.minChoices,u=void 0===l?1:l,_=t.maxChoices,y=t.submitButtonText,E=Object(g.a)(SurveyQuestionMultiSelect,"SurveyQuestionMultiSelect"),k=r.map((function(e){return O({answer_ordinal:e.answer_ordinal,selected:!1},e.write_in?{answer_text:""}:{})})),j=Object(d.keyBy)(k,"answer_ordinal"),S=Object(f.useState)(j),w=i()(S,2),C=w[0],A=w[1],N=r.filter((function(e){var t=e.write_in,n=e.answer_ordinal;if(t){var r=C[n],i=r.selected,a=r.answer_text;if(i&&0===a.length)return!0}return!1})).length>0,T=Object.values(C).filter((function(e){return e.selected})).length,D=_&&T===_,x=N||T<u;return e.createElement("div",{className:"googlesitekit-survey__multi-select"},e.createElement(h.a,{title:n,dismissSurvey:c}),e.createElement("div",{className:"googlesitekit-survey__body"},r.map((function(t){var n=t.answer_ordinal,r=t.text,i=t.write_in,a=C[n],c="".concat(E,"-answer-").concat(n);return e.createElement("div",{key:c,className:s()("googlesitekit-survey__multi-select__choice",{"googlesitekit-survey__multi-select__choice--disabled":D&&!a.selected})},e.createElement(p.Checkbox,{checked:a.selected,disabled:D&&!a.selected,onChange:function(){return function(e){var t=O(O({},C),{},o()({},e,O(O({},C[e]),{},{selected:!C[e].selected})));A(t)}(n)},value:"".concat(n),id:c,name:c},r),i&&e.createElement(f.Fragment,null,e.createElement(v.a,null,e.createElement("label",{htmlFor:"".concat(c,"-write-in")},Object(m.sprintf)( /* translators: %s: Option name */ Object(m.__)("Text input for option %s","google-site-kit"),r))),e.createElement(p.TextField,{id:"".concat(c,"-write-in"),onChange:function(e){return function(e,t){var n,r=O(O({},C),{},o()({},t,O(O({},C[t]),{},{answer_text:null===(n=e.target.value)||void 0===n?void 0:n.slice(0,b.a)})));A(r)}(e,n)},value:a.answer_text,disabled:!a.selected})))}))),e.createElement("div",{className:"googlesitekit-survey__footer"},u>1&&e.createElement(p.HelperText,{persistent:!0},Object(m.sprintf)( /* translators: %s: the number of answers. */ Object(m.__)("Choose at least %s answers","google-site-kit"),u)),e.createElement(p.Button,{onClick:function(){var e=Object.values(C).filter((function(e){return e.selected})).map((function(e){var t=e.answer_ordinal,n=e.answer_text;return n?{answer_ordinal:t,answer_text:n}:{answer_ordinal:t}}));a({answer:e})},disabled:x},y)))}SurveyQuestionMultiSelect.propTypes={question:u.a.string.isRequired,choices:u.a.arrayOf(u.a.shape({answer_ordinal:u.a.oneOfType([u.a.string,u.a.number]),text:u.a.string,write_in:u.a.bool})).isRequired,answerQuestion:u.a.func.isRequired,dismissSurvey:u.a.func.isRequired,minChoices:u.a.number,maxChoices:u.a.number,submitButtonText:u.a.string.isRequired},t.a=SurveyQuestionMultiSelect}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(6),i=n.n(r),a=n(17),o=n.n(a),c=n(0),s=n.n(c),l=n(1),u=n(10),d=n(386),g=n(883);function f(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SurveyQuestionSingleSelect(t){var n=t.question,r=t.choices,i=t.answerQuestion,a=t.dismissSurvey,c=t.submitButtonText,s=Object(l.useState)(""),f=o()(s,2),p=f[0],h=f[1],v=Object(l.useState)(""),b=o()(v,2),_=b[0],O=b[1],y=r.map((function(e){return m(m({},e),{},{answer_ordinal:"".concat(e.answer_ordinal)})})),E=!!p&&y.filter((function(e){var t=e.answer_ordinal,n=e.write_in;return t===p&&n})).length>0,k=""===p||E&&""===_;return e.createElement("div",{className:"googlesitekit-single-select"},e.createElement(d.a,{title:n,dismissSurvey:a}),e.createElement("div",{className:"googlesitekit-survey__body"},y.map((function(t,n){return e.createElement(g.a,{key:n,value:p,setValue:h,writeIn:_,setWriteIn:O,choice:t})}))),e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(u.Button,{onClick:function(){var e=E?{answer_text:_}:{};i({answer:m({answer_ordinal:Number(p)},e)})},disabled:k},c)))}SurveyQuestionSingleSelect.propTypes={question:s.a.string.isRequired,choices:s.a.arrayOf(s.a.shape({answer_ordinal:s.a.oneOfType([s.a.string,s.a.number]),text:s.a.string,write_in:s.a.bool})).isRequired,answerQuestion:s.a.func.isRequired,dismissSurvey:s.a.func.isRequired},t.a=SurveyQuestionSingleSelect}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(1),o=n(2),c=n(10),s=n(103),l=n(463);function SurveyQuestionSingleSelectChoice(t){var n=t.value,r=t.setValue,i=t.writeIn,u=t.setWriteIn,d=t.choice,g=d.answer_ordinal,f=d.text,m=d.write_in,p=n===g,h="googlesitekit-survey__multi-select-".concat(g,"-").concat(f);return e.createElement("div",{className:"googlesitekit-single-select__choice"},e.createElement(c.Radio,{id:f.replace(/ /g,"-"),value:g,checked:p,name:f,onClick:function(){return r(g)}},f),m&&e.createElement(a.Fragment,null,e.createElement(s.a,null,e.createElement("label",{htmlFor:h},Object(o.sprintf)( /* translators: %s: Option name */ Object(o.__)("Text input for option %s","google-site-kit"),f))),e.createElement(c.TextField,{id:h,onChange:function(e){return u(e.target.value.slice(0,l.a))},value:i,disabled:!p})))}SurveyQuestionSingleSelectChoice.propTypes={choice:i.a.shape({answer_ordinal:i.a.oneOfType([i.a.string,i.a.number]),text:i.a.string,write_in:i.a.bool}),value:i.a.string.isRequired,setValue:i.a.func.isRequired,writeIn:i.a.string.isRequired,setWriteIn:i.a.func.isRequired},t.a=SurveyQuestionSingleSelectChoice}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SurveyTerms}));var r=n(2),i=n(48),a=n(4),o=n.n(a),c=n(14),s=n(23),l=o.a.useSelect;function SurveyTerms(){var t=l((function(e){return e(c.c).getGooglePrivacyPolicyURL()})),n=l((function(e){return e(c.c).getGoogleTermsURL()}));return e.createElement("p",{className:"googlesitekit-survey__terms"},Object(i.a)(Object(r.__)("By continuing, you agree to allow Google to use your answers and account info to improve services, per our <privacy>Privacy</privacy> & <terms>Terms</terms>.","google-site-kit"),{privacy:e.createElement(s.a,{href:t,external:!0,hideExternalIndicator:!0}),terms:e.createElement(s.a,{href:n,external:!0,hideExternalIndicator:!0})}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricsSelectionPanel}));var r=n(17),i=n.n(r),a=n(6),o=n.n(a),c=n(1),s=n(4),l=n.n(s),u=n(34),d=n(26),g=n(7),f=n(82),m=n(886),p=n(888),h=n(889),v=n(890),b=n(893),_=n(19),O=n(8),y=l.a.useSelect,E=l.a.useDispatch;function MetricsSelectionPanel(){var t=Object(_.a)(),n=y((function(e){return e(d.b).getValue(f.c)})),r=y((function(e){var t=e(g.a).getKeyMetrics();if(!Array.isArray(t))return[];var n=e(g.a).isKeyMetricAvailable;return t.filter(n)})),a=E(u.a).setValues,s=E(d.b).setValue,l=Object(c.useCallback)((function(){a(f.b,o()({},f.a,r)),Object(O.B)("".concat(t,"_kmw-sidebar"),"metrics_sidebar_view")}),[r,a,t]),k=Object(c.useCallback)((function(){n&&s(f.c,!1)}),[s,n]),j=Object(c.useState)(!1),S=i()(j,2),w=S[0],C=S[1];return e.createElement(m.a,{className:"googlesitekit-km-selection-panel",isOpen:n||w,onOpen:l,closeFn:k,focusTrapOptions:{initialFocus:".googlesitekit-km-selection-panel-metrics__metric-item .googlesitekit-selection-box input"}},e.createElement(p.a,null),e.createElement(v.a,{savedMetrics:r}),e.createElement(b.a,null),e.createElement(h.a,{savedMetrics:r,onNavigationToOAuthURL:function(){C(!0)}}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SideSheet}));var r=n(6),i=n.n(r),a=n(12),o=n.n(a),c=n(887),s=n.n(c),l=n(0),u=n.n(l),d=n(219),g=n(434),f=n(1),m=n(57),p=n(85);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 v(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){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SideSheet(t){var n=t.className,r=t.children,i=t.isOpen,a=t.onOpen,c=void 0===a?function(){}:a,l=t.closeFn,u=void 0===l?function(){}:l,h=t.focusTrapOptions,b=void 0===h?{}:h,_=Object(f.useRef)();return Object(f.useEffect)((function(){i?(c(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):document.body.classList.remove("googlesitekit-side-sheet-scroll-lock")}),[i,c]),Object(d.a)(_,u),Object(g.a)((function(e){return i&&m.c===e.keyCode}),u),e.createElement(p.a,null,e.createElement(s.a,{active:!!i,focusTrapOptions:v({fallbackFocus:"body"},b)},e.createElement("section",{ref:_,className:o()("googlesitekit-side-sheet",n,{"googlesitekit-side-sheet--open":i}),role:"dialog","aria-modal":"true","aria-hidden":!i,tabIndex:"0"},r)),i&&e.createElement("span",{className:"googlesitekit-side-sheet-overlay"}))}SideSheet.propTypes={className:u.a.string,children:u.a.node,isOpen:u.a.bool,onOpen:u.a.func,closeFn:u.a.func,focusTrapOptions:u.a.object}}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Header}));var r=n(1),i=n(48),a=n(2),o=n(4),c=n.n(o),s=n(31),l=n(14),u=n(26),d=n(7),g=n(82),f=n(23),m=n(153),p=n(36),h=c.a.useSelect,v=c.a.useDispatch;function Header(){var t=Object(p.a)(),n=h((function(e){return e(l.c).getAdminURL("googlesitekit-settings")})),o=h((function(e){return e(d.a).isSavingKeyMetricsSettings()})),c=v(u.b).setValue,b=v(s.a).navigateTo,_=Object(r.useCallback)((function(){c(g.c,!1)}),[c]),O=Object(r.useCallback)((function(){return b("".concat(n,"#/admin-settings"))}),[b,n]);return e.createElement("header",{className:"googlesitekit-km-selection-panel-header"},e.createElement("div",{className:"googlesitekit-km-selection-panel-header__row"},e.createElement("h3",null,Object(a.__)("Select your metrics","google-site-kit")),e.createElement(f.a,{className:"googlesitekit-km-selection-panel-header__close",onClick:_,linkButton:!0},e.createElement(m.a,{width:"15",height:"15"}))),!t&&e.createElement("p",null,Object(i.a)(Object(a.__)("Edit your personalized goals or deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:e.createElement(f.a,{secondary:!0,onClick:O,disabled:o}),strong:e.createElement("strong",null)})))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return Footer}));var i=n(5),a=n.n(i),o=n(16),c=n.n(o),s=n(17),l=n.n(s),u=n(6),d=n.n(u),g=n(13),f=n(0),m=n.n(f),p=n(1),h=n(48),v=n(285),b=n(2),_=n(10),O=n(4),y=n.n(O),E=n(7),k=n(34),j=n(31),S=n(18),w=n(26),C=n(82),A=n(9),N=n(161),T=n(46),D=n(124),x=n(640),R=n(19),M=n(8);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 L(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){d()(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 I=y.a.useSelect,B=y.a.useDispatch;function Footer(t){var n=t.savedMetrics,i=t.onNavigationToOAuthURL,o=void 0===i?function(){}:i,s=Object(R.a)(),u=I((function(e){return e(k.a).getValue(C.b,C.a)})),d=I((function(e){return e(E.a).getKeyMetricsSettings()})),f=I((function(e){return e(E.a).isSavingKeyMetricsSettings()})),m="".concat(s,"_kmw-sidebar"),O=Object(p.useMemo)((function(){return!Object(g.isEqual)(Object(x.a)(u),Object(x.a)(n))}),[n,u]),y=null==u?void 0:u.flatMap((function(e){var t=N.a[e];return(null==t?void 0:t.requiredCustomDimensions)||[]})),P=I((function(e){return!!(null==y?void 0:y.length)&&!e(A.m).hasCustomDimensions(y)})),z=I((function(e){return e(E.a).hasScope(A.d)})),F=I((function(e){return e(S.a).isModuleConnected("analytics-4")})),W=I((function(e){return e(E.a).getErrorForAction("saveKeyMetricsSettings",[L(L({},d),{},{widgetSlugs:u})])})),V=Object(v.a)(e.location.href,{notification:"custom_dimensions"}),H=I((function(e){var t=e(E.a).getConnectURL({additionalScopes:[A.d],redirectURL:V});return!!t&&e(j.a).isNavigatingTo(t)})),U=I((function(e){return e(w.b).getValue(C.c)})),q=B(E.a),G=q.saveKeyMetricsSettings,K=q.setPermissionScopeError,Y=B(w.b).setValue,$=B(k.a).setValues,X=Object(p.useState)(null),Q=l()(X,2),Z=Q[0],J=Q[1],ee=Object(p.useState)(!1),te=l()(ee,2),ne=te[0],re=te[1],ie=(null==n?void 0:n.length)>0&&O?Object(b.__)("Apply changes","google-site-kit"):Object(b.__)("Save selection","google-site-kit"),ae=Object(p.useCallback)(c()(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G({widgetSlugs:u});case 2:t=e.sent,t.error||(Object(M.B)(m,"metrics_sidebar_save"),F&&P&&($(A.i,{autoSubmit:!0}),z||(o(),Y(C.c,!1),K({code:T.a,message:Object(b.__)("Additional permissions are required to create new Analytics custom dimensions","google-site-kit"),data:{status:403,scopes:[A.d],skipModal:!0,redirectURL:V}}))),U&&Y(C.c,!1),J(ie),re(!0));case 5:case"end":return e.stop()}}),e)}))),[G,u,m,F,P,U,ie,$,z,o,Y,K,V]),oe=Object(p.useCallback)((function(){Y(C.c,!1),Object(M.B)(m,"metrics_sidebar_cancel")}),[Y,m]),ce=Object(p.useState)(null),se=l()(ce,2),le=se[0],ue=se[1];Object(p.useEffect)((function(){null!==le&&le!==U&&U&&(J(null),re(!1)),ue(U)}),[U,le]);var de,ge=(null==u?void 0:u.length)||0;return ge<C.f?de=Object(b.sprintf)( /* translators: 1: Minimum number of metrics that can be selected. 2: Number of selected metrics. */ Object(b.__)("Select at least %1$d metrics (%2$d selected)","google-site-kit"),C.f,ge):ge>C.e&&(de=Object(b.sprintf)( /* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */ Object(b.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),C.e,ge)),r.createElement("footer",{className:"googlesitekit-km-selection-panel-footer"},W&&r.createElement(D.a,{error:W}),r.createElement("div",{className:"googlesitekit-km-selection-panel-footer__content"},O&&de?r.createElement(D.a,{error:{message:de},noPrefix:ge<C.f||ge>C.e}):r.createElement("p",{className:"googlesitekit-km-selection-panel-footer__metric-count"},Object(h.a)(Object(b.sprintf)( /* translators: 1: Number of selected metrics. 2: Maximum number of metrics that can be selected. */ Object(b.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),ge,C.e),{MaxCount:r.createElement("span",{className:"googlesitekit-km-selection-panel-footer__metric-count--max-count"})})),r.createElement("div",{className:"googlesitekit-km-selection-panel-footer__actions"},r.createElement(_.Button,{tertiary:!0,onClick:oe,disabled:f||H},Object(b.__)("Cancel","google-site-kit")),r.createElement(_.SpinnerButton,{onClick:ae,isSaving:f||H,disabled:ge<C.f||ge>C.e||f||!U&&ne||H},Z||ie))))}Footer.propTypes={savedMetrics:m.a.array,onNavigationToOAuthURL:m.a.func}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Metrics}));var r=n(6),i=n.n(r),a=n(29),o=n.n(a),c=n(0),s=n.n(c),l=n(2),u=n(4),d=n.n(u),g=n(121),f=n(7),m=n(41),p=n(18),h=n(161),v=n(891),b=n(36),_=n(1);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=d.a.useSelect;function Metrics(t){var n=t.savedMetrics,r=Object(b.a)(),a=E((function(e){return e(f.a)})).isKeyMetricAvailable,c=E((function(e){return e(p.a)})).getModule,s=E((function(e){return function(t){return h.a[t].displayInList(e,r)}})),u=E((function(e){return function(t){return e(m.a).getWidget(t)}})),d=function(e,t){if(!a(t))return e;if("function"==typeof h.a[t].displayInList&&!s(t))return e;var n=u(t).modules.reduce((function(e,t){var n=c(t);return(null==n?void 0:n.connected)||!(null==n?void 0:n.name)?e:[].concat(o()(e),[n.name])}),[]);return y(y({},e),{},i()({},t,y(y({},h.a[t]),{},{disconnectedModules:n})))},O=E((function(e){return e(m.a).getWidgets(g.AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY)||[]})).filter((function(e){var t=e.slug;return n.includes(t)})).map((function(e){return e.slug})),k=Object.keys(h.a).filter((function(e){return O.includes(e)})).reduce(d,{}),j=Object.keys(h.a).filter((function(e){return!O.includes(e)})).reduce(d,{}),S=function(t){return Object.keys(t).map((function(r){var i=t[r],a=i.title,o=i.description,c=i.disconnectedModules,s="key-metric-selection-checkbox-".concat(r);return e.createElement(v.a,{key:s,id:s,slug:r,title:a,description:o,disconnectedModules:c,savedMetrics:n})}))};return e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics"},0!==n.length&&e.createElement(_.Fragment,null,e.createElement("p",{className:"googlesitekit-km-selection-panel-metrics__subheading"},Object(l.__)("Current selection","google-site-kit")),e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics__subsection"},S(k)),e.createElement("p",{className:"googlesitekit-km-selection-panel-metrics__subheading"},Object(l.__)("Additional metrics","google-site-kit"))),e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics__subsection"},S(j)))}Metrics.propTypes={savedMetrics:s.a.array}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricItem}));var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(1),s=n(2),l=n(4),u=n.n(l),d=n(34),g=n(82),f=n(892),m=u.a.useSelect,p=u.a.useDispatch;function MetricItem(t){var n=t.id,r=t.slug,a=t.title,o=t.description,l=t.disconnectedModules,u=t.savedMetrics,h=void 0===u?[]:u,v=m((function(e){return e(d.a).getValue(g.b,g.a)})),b=m((function(e){return e(d.a)})).getValue,_=p(d.a).setValues,O=Object(c.useCallback)((function(e){var t=b(g.b,g.a);_(g.b,i()({},g.a,e.target.checked?t.concat([r]):t.filter((function(e){return e!==r}))))}),[b,_,r]),y=null==v?void 0:v.includes(r),E=!h.includes(r)&&l.length>0;return e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics__metric-item"},e.createElement(f.a,{checked:y,disabled:E,id:n,onChange:O,title:a,value:r},o,l.length>0&&e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics__metric-item-error"},Object(s.sprintf)( /* translators: %s: module names. */ Object(s._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",l.length,"google-site-kit"),l.join(Object(s.__)(" and ","google-site-kit"))))))}MetricItem.propTypes={id:o.a.string.isRequired,slug:o.a.string.isRequired,title:o.a.string.isRequired,description:o.a.string.isRequired,disconnectedModules:o.a.array,savedMetrics:o.a.array}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionBox}));var r=n(0),i=n.n(r),a=n(12),o=n.n(a),c=n(10);function SelectionBox(t){var n=t.checked,r=t.children,i=t.disabled,a=t.id,s=t.onChange,l=t.title,u=t.value;return e.createElement("div",{className:o()("googlesitekit-selection-box",{"googlesitekit-selection-box--disabled":i})},e.createElement(c.Checkbox,{checked:n,description:r,disabled:i,id:a,name:a,onChange:s,value:u},l))}SelectionBox.propTypes={checked:i.a.bool,children:i.a.node,disabled:i.a.bool,id:i.a.string,onChange:i.a.func,title:i.a.string,value:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n(1020),a=n(1),o=n(4),c=n.n(o),s=n(34),l=n(7),u=n(9),d=n(82),g=n(161),f=n(894),m=n(80),p=c.a.useSelect;t.a=Object(m.a)({moduleName:"analytics-4"})((function CustomDimensionsNotice(){var t=p((function(e){return e(s.a).getValue(d.b,d.a)})),n=null==t?void 0:t.flatMap((function(e){var t=g.a[e];return(null==t?void 0:t.requiredCustomDimensions)||[]})),o=p((function(e){return!!(null==n?void 0:n.length)&&!e(u.m).hasCustomDimensions(n)})),c=p((function(e){return e(l.a).hasScope(u.d)}));p((function(e){return e(u.m).getAvailableCustomDimensions()}));var m=Object(i.a)(o),h=Object(a.useRef)();if(Object(a.useEffect)((function(){if(o&&!1===m){var e=document.activeElement;e&&e.closest(".googlesitekit-km-selection-panel-metrics__metric-item")&&Object(f.a)(h.current,e)&&e.scrollIntoView()}}),[o,m]),!1===o)return null;var v=c?Object(r.__)("The metrics you selected require more data tracking. We will update your Analytics property after saving your selection.","google-site-kit"):Object(r.__)("The metrics you selected require more data tracking. You will be directed to update your Analytics property after saving your selection.","google-site-kit");return e.createElement("div",{className:"googlesitekit-km-selection-panel-notice",ref:h},e.createElement("p",null,v))}))}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return!(n.bottom<r.top||r.bottom<n.top||n.right<r.left||r.right<n.left)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e,t){var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(281),s=n(118),l=n(39),u=n(199),d=n(20),g=n(851);Object(c.a)(o()(i.a.mark((function n(){var r,a,o,c,f;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e._googlesitekitLegacyData.admin.resetSession){n.next=3;break}return n.next=3,Object(l.b)();case 3:(r=document.getElementById("js-googlesitekit-main-dashboard"))&&(a=r.dataset,o=a.setupModuleSlug,c=a.viewOnly,f=d.o,o||(f=c?d.n:d.m),Object(s.render)(t.createElement(u.a,{viewContext:f},t.createElement(g.a,{setupModuleSlug:o})),r));case 5:case"end":return n.stop()}}),n)}))))}.call(this,n(24),n(3))}],[[1001,1,0]]]);