(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[30],{10:function(e,t){e.exports=googlesitekit.components},100:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnd}));vari=n(6),r=n.n(i),a=n(14),o=n(101),c=n(102);functionl(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}functions(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){r()(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))}))}returne}varu={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};functiond(t){varn=arguments.length>1&&void0!==arguments[1]?arguments[1]:e,i=arguments.length>2&&void0!==arguments[2]?arguments[2]:e,r=s(s({},u),t);r.referenceSiteURL&&(r.referenceSiteURL=r.referenceSiteURL.toString().replace(/\/+$/,""));varl=Object(o.a)(r,n),d=Object(c.a)(r,n,l,i),g={},f=function(){for(vare=arguments.length,t=newArray(e),n=0;n<e;n++)t[n]=arguments[n];vari=JSON.stringify(t);g[i]||(g[i]=Object(a.once)(d)),g[i].apply(g,t)};return{enableTracking:function(){r.trackingEnabled=!0},disableTracking:function(){r.trackingEnabled=!1},initializeSnippet:l,isTrackingEnabled:function(){return!!r.trackingEnabled},trackEvent:d,trackEventOnce:f}}}).call(this,n(28))},1008:function(e,t,n){"use strict";(function(e){vari=n(6),r=n.n(i),a=n(12),o=n.n(a),c=n(3),l=n(47),s=n(1009),u=n(176);functiond(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}functiong(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}varf=Object.keys(l.b).map((function(e){return"WIDGET_AREA_STYLES.".concat(e)})).join(", "),m={assignWidgetArea:function(e,t){return{payload:{slug:e,contextSlugs:"string"==typeoft?[t]:t},type:"ASSIGN_WIDGET_AREA"}},registerWidgetArea:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},n=t.priority,i=void0===n?10:n,r=t.style,a=void0===r?l.b.BOXES:r,c=t.title,s=t.subtitle,u=t.Icon,d=t.hasNewBadge,g=void0!==d&&d,m=t.CTA,p=t.Footer,h=t.filterActiveWidgets;returno()(e,"slug is required."),o()(Object.values(l.b).includes(a),"settings.style must be one of: ".concat(f,".")),{payload:{slug:e,settings:{priority:i,style:a,title:c,subtitle:s,Icon:u,hasNewBadge:g,CTA:m,Footer:p,filterActiveWidgets:h}},type:"REGISTER_WIDGET_AREA"}}},p=Object(u.a)((function(t,n){vari=n.type,r=n.payload;switch(i){case"ASSIGN_WIDGET_AREA":vara=r.slug;returnr.contextSlugs.forEach((function(e){void0===t.contextAssignments[e]&&(t.contextAssignments[e]=[]),t.contextAssignments[e].includes(a)||t.contextAssignments[e].push(a)})),t;case"REGISTER_WIDGET_AREA":varo=r.slug,c=r.settings;returnvoid0!==t.areas[o]?(e.console.warn('Could not register widget area with slug "'.concat(o,'". Widget area "').concat(o,'" is already registered.')),t):(t.areas[o]=g(g({},c),{},{slug:o}),t);default:returnt}})),h={isWidgetAreaActive:Object(c.createRegistrySelector)((function(e){returnfunction(t,n){vari=arguments.length>2&&void0!==arguments[2]?arguments[2]:{};o()(n,"widgetAreaSlug is required to check a widget area is active.");varr=i.modules,a=e(l.a).getWidgetArea(n),c=e(l.a).getWidgets(n,{modules:r});returna.filterActiveWidgets&&(c=a.filterActiveWidgets(e,c)),c.some((function(t){returne(l.a).isWidgetActive(t.slug)}))}})),isWidgetAreaRe
Object(s.__)("<strong>Note:</strong> %s","google-site-kit"),S),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",tertiary:!0,onClick:f,disabled:C},Object(s.__)("Cancel","google-site-kit")),I?e.createElement(u.Button,{href:I,onClick:O,target:"_blank",danger:w},j):e.createElement(u.SpinnerButton,{onClick:O,danger:w,disabled:C,isSaving:C},j||Object(s.__)("Disconnect","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:r.a.string,dialogActive:r.a.bool,handleDialog:r.a.func,handleConfirm:r.a.func.isRequired,onOpen:r.a.func,onClose:r.a.func,title:r.a.string,confirmButton:r.a.string,danger:r.a.bool,small:r.a.bool,medium:r.a.bool,buttonLink:r.a.string},t.a=ModalDialog}).call(this,n(4))},113:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnh}));vari=n(6),r=n.n(i),a=n(21),o=n.n(a),c=n(15),l=n.n(c),s=n(25),u=n.n(s),d=n(242),g=n(1),f=n.n(g),m=n(0);functionp(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}functionh(t){functionWithIntersectionObserverComponent(n){vari=n.onInView,r=u()(n,["onInView"]),a=Object(m.useRef)(),c=Object(d.a)(a,{root:null,threshold:.45}),s=Object(m.useState)(!1),g=l()(s,2),f=g[0],p=g[1],h=!!(null==c?void0:c.isIntersecting)&&!!(null==c?void0:c.intersectionRatio);returnObject(m.useEffect)((function(){c&&h&&!f&&(i(),p(!0))}),[f,h,c,i]),e.createElement(t,o()({ref:a},r))}returnWithIntersectionObserverComponent.displayName="WithIntersectionObserverComponent",(t.displayName||t.name)&&(WithIntersectionObserverComponent.displayName+="(".concat(t.displayName||t.name,")")),WithIntersectionObserverComponent.propTypes=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){r()(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))}))}returne}({onInView:f.a.func.isRequired},t.propTypes),WithIntersectionObserverComponent}}).call(this,n(4))},117:function(e,t,n){"use strict";vari=n(324),r=n(312);n.d(t,"b",(function(){returnr.a}));vara=n(313);n.d(t,"c",(function(){returna.a}));varo=n(314);n.d(t,"d",(function(){returno.a}));varc=n(315);n.d(t,"a",(function(){returnc.a})),t.e=i.a},118:function(e,t,n){"use strict";n.d(t,"c",(function(){returns})),n.d(t,"a",(function(){returnu})),n.d(t,"b",(function(){returnd}));vari,r=n(6),a=n.n(r),o=n(47),c=n(174),l=n(163),s=(i={},a()(i,o.c.QUARTER,3),a()(i,o.c.HALF,6),a()(i,o.c.FULL,12),i),u="googlesitekit-hidden",d=[c.a,l.a]},120:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnErrorNotice}));vari=n(1),r=n.n(i),a=n(0),o=n(2),c=n(3),l=n(10),s=n(35),u=n(51);functionErrorNotice(t){varn,i=t.error,r=t.hasButton,d=void0!==r&&r,g=t.storeName,f=t.message,m=void0===f?i.message:f,p=t.noPrefix,h=void0!==p&&p,v=t.skipRetryMessage,b=t.Icon,E=Object(c.useDispatch)(),_=Object(c.useSelect)((function(e){returng?e(g).getSelectorDataForError(i):null})),O=Object(a.useCallback)((function(){E(_.storeName).invalidateResolution(_.name,_.args)}),[E,_]);if(!i||Object(s.f)(i))returnnull;vary=d&&Object(s.d)(i,_);returnd||v||(m=Object(o.sprintf)(/* translators: %1$s: Error message from Google API. */
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"),i[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"),i.join(Object(a._x)(", ","Recoverable modules","google-site-kit")));returne.createElement(l.a,{title:Object(a.__)("Data Unavailable","google-site-kit"),description:r})}RecoverableModules.propTypes={moduleSlugs:r.a.arrayOf(r.a.string).isRequired}}).call(this,n(4))},165:function(e,t,n){"use strict";n.d(t,"b",(function(){returnr})),n.d(t,"c",(function(){returna})),n.d(t,"a",(function(){returno}));vari=n(2),r="audience-segmentation-info-notice-ui",a="audience-segmentation-info-notice",o=[{slug:"new-visitors",content:Object(i.__)("The higher the portion of new visitors you have, the more your audience is growing. Looking at what content brings them to your site may give you insights on how to reach even more people.","google-site-kit")},{slug:"compare-metrics",content:Object(i.__)("Select up to three visitor groups to display on the dashboard and easily compare metrics between them.","google-site-kit")},{slug:"custom-audiences",content:Object(i.__)("Configure your own custom audiences in Analytics to gain deeper insights into visitor behavior, for example consider creating an “Existing customers” or “Subscribers” segment, depending on what goals you have for your site.","google-site-kit")},{slug:"purchasers",content:Object(i.__)("Select the Purchasers visitor group to gain insights into which visitors bring the most revenue to your site.","google-site-kit")},{slug:"returning-visitors",content:Object(i.__)("The more returning visitors your site has, the stronger and more loyal an audience you’re building. Check which content brings people back to your site - it might help you create a strategy to build a community.","google-site-kit")},{slug:"compare-new-returning",content:Object(i.__)("Compare the ratio of “new” to “returning” visitors – this can give you insights on whether you have more people stopping by as a one-off, or more loyal visitors.","google-site-kit")},{slug:"compare-cities",content:Object(i.__)("Check the cities which bring you more new vs more returning visitors – there might be new audiences you could engage with in locations you hadn’t thought about.","google-site-kit")}]},169:function(e,t,n){"use strict";n.d(t,"a",(function(){returnr}));vari=n(2);functionr(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},n=t||{},r=n.slug,a=void0===r?"":r,o=n.name,c=void0===o?"":o,l=n.owner,s=void0===l?{}:l;if(!a||!c)returne;varu="",d="";return"analytics-4"===a?e.match(/account/i)?u=Object(i.__)("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(i.__)("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(i.__)("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(i.__)("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(i.sprintf)(/* translators: %s: module name */
Object(i.__)("Your Google account does not have sufficient permissions to access %s data, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"),c)),s&&s.login&&(d=Object(i.sprintf)(/* translators: %s: owner name */
Object(i.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),s.login)),d||(d=Object(i.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(u," ").concat(d)}},17:function(e,t,n){"use strict";vari=n(255);n.d(t,"i",(function(){returni.a}));varr=n(317);n.d(t,"f",(function(){returnr.a}));vara=n(318);n.d(t,"h",(function(){returna.a}));varo=n(319);n.d(t,"j",(function(){returno.a}));varc=n(316);n.d(t,"g",(function(){returnc.a}));varl=n(92),s=n.n(l);n.d(t,"b",(function(){returns.a})),n.d(t,"c",(function(){returnl.DialogContent})),n.d(t,"d",(function(){returnl.DialogFooter}));varu=n(103);n.d(t,"a",(function(){returnu.a})),n.d(t,"e",(function(){returnu.b})),n.d(t,"k",(function(){returnu.c}))},170:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnReportError}));vari=n(6),r=n.n(i),a=n(1),o=n.n(a),c=n(14),l=n(0),s=n(2),u=n(3),d=n(19),g=n(35),f=n(169),m=n(85),p=n(51),h=n(96),v=n(135),b=n(33);functionE(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}function_(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionReportError(t){varn,i=t.moduleSlug,r=t.error,a=Object(b.a)(),o=Object(u.useSelect)((function(e){returne(d.a).getModule(i)})),E=Array.isArray(r)?r:[r],O=function(e){returnObject(g.e)(e)?a?(n=Object(s.sprintf)(/* translators: %s: module name */
Object(s.__)("Access lost to %s","google-site-kit"),null==o?void0:o.name),Object(s.sprintf)(/* translators: %s: module name */
Object(s.__)("The administrator sharing this module with you has lost access to the %s service, so you won’t be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),null==o?void0:o.name)):(n=Object(s.sprintf)(/* translators: %s: module name */
Object(s.__)("Insufficient permissions in %s","google-site-kit"),null==o?void0:o.name),Object(f.a)(e.message,o)):Object(g.b)(e)},y=Object(c.uniqWith)(E.map((function(e){vart;return_(_({},e),{},{message:O(e),reconnectURL:null===(t=e.data)||void0===t?void0:t.reconnectURL})})),(function(e,t){returne.message===t.message&&e.reconnectURL===t.reconnectURL})),k=E.some((function(e){returnObject(g.e)(e)}));k||1!==y.length?!k&&y.length>1&&(n=Object(s.sprintf)(/* translators: %s: module name */
Object(s.__)("Data errors in %s","google-site-kit"),null==o?void0:o.name)):n=Object(s.sprintf)(/* translators: %s: module name */
Object(s.__)("Data error in %s","google-site-kit"),null==o?void0:o.name);varj=e.createElement(l.Fragment,null,y.map((function(t){varn,i=null==r||null===(n=r.data)||void0===n?void0:n.reconnectURL;returni?e.createElement(p.a,{key:t.message,message:t.message,reconnectURL:i}):e.createElement("p",{key:t.message},m.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));returne.createElement(h.a,{title:n,description:j,error:!0},e.createElement(v.a,{moduleSlug:i,error:r}))}ReportError.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired}}).call(this,n(4))},174:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnReportZero}));vari=n(1),r=n.n(i),a=n(2),o=n(3),c=n(19),l=n(96);functionReportZero(t){varn=t.moduleSlug,i=Object(o.useSelect)((function(e){returne(c.a).getModule(n)}));returne.createElement(l.a,{title:Object(a.sprintf)(/* translators: %s: Module name */
Object(a.__)("%s Gathering Data","google-site-kit"),null==i?void0:i.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==i?void0:i.name)})}ReportZero.propTypes={moduleSlug:r.a.string.isRequired}}).call(this,n(4))},175:function(e,t,n){"use strict";vari=n(219);n.d(t,"b",(function(){returni.a}));varr=n(224);n.d(t,"a",(function(){returnr.a}))},176:function(e,t,n){"use strict";n.d(t,"a",(function(){returnr}));vari=n(376);functionr(e){returnObject(i.a)(e)}},177:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnAudienceTileLoading}));vari=n(44);functionAudienceTileLoading(){returne.createElement("div",{className:"googlesitekit-audience-segmentation-tile-loading"},e.createElement(i.a,{width:"100%",height:"20px"}),e.createElement(i.a,{width:"100%",height:"52px"}),e.createElement(i.a,{width:"100%",height:"52px"}),e.createElement(i.a,{width:"100%",height:"52px"}),e.createElement(i.a,{width:"100%",height:"52px"}),e.createElement(i.a,{width:"100%",height:"52px"}),e.createElement(i.a,{width:"100%",height:"52px"}))}}).call(this,n(4))},179:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnActionsCTALinkDismiss}));vari=n(1),r=n.n(i),a=n(2),o=n(0),c=n(3),l=n(32),s=n(93),u=n(187);functionActionsCTALinkDismiss(t){varn=t.id,i=t.className,r=void0===i?"googlesitekit-publisher-win__actions":i,d=t.ctaLink,g=t.ctaLabel,f=t.ctaDisabled,m=void0!==f&&f,p=t.onCTAClick,h=t.ctaDismissOptions,v=t.isSaving,b=void0!==v&&v,E=t.onDismiss,_=void0===E?function(){}:E,O=t.dismissLabel,y=void0===O?Object(a.__)("OK, Got it!","google-site-kit"):O,k=t.dismissOnCTAClick,j=void0===k||k,S=t.dismissExpires,A=void0===S?0:S,w=t.dismissOptions,T=void0===w?{}:w,C=t.gaTrackingEventArgs,N=void0===C?{}:C,D=Object(c.useSelect)((function(e){return!!d&&e(l.a).isNavigatingTo(d)}));returne.createElement(o.Fragment,null,e.createElement("div",{className:r},e.createElement(u.a,{id:n,ctaLink:d,ctaLabel:g,onCTAClick:p,dismissOnCTAClick:j,dismissExpires:A,dismissOptions:h,gaTrackingEventArgs:N,isSaving:b,isDisabled:m}),e.createElement(s.a,{id:n,primary:!1,dismissLabel:y,dismissExpires:A,disabled:D,onDismiss:_,dismissOptions:T,gaTrackingEventArgs:N})))}ActionsCTALinkDismiss.propTypes={id:r.a.string,className:r.a.string,ctaDisabled:r.a.bool,ctaLink:r.a.string,ctaLabel:r.a.string,onCTAClick:r.a.func,isSaving:r.a.bool,onDismiss:r.a.func,ctaDismissOptions:r.a.object,dismissLabel:r.a.string,dismissOnCTAClick:r.a.bool,dismissExpires:r.a.number,dismissOptions:r.a.object,gaTrackingEventArgs:r.a.object}}).call(this,n(4))},18:function(e,t,n){"use strict";vari=n(0),r=n(61);t.a=function(){returnObject(i.useContext)(r.b)}},184:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnChangeBadge}));vari=n(1),r=n.n(i),a=n(11),o=n.n(a),c=n(9);functionChangeBadge(t){varn=t.previousValue,i=t.currentValue,r=t.isAbsolute?i-n:Object(c.g)(n,i),a=r<0,l=0===r;returnnull===r?null:e.createElement("div",{className:o()("googlesitekit-change-badge",{"googlesitekit-change-badge--negative":a,"googlesitekit-change-badge--zero":l})},Object(c.B)(r,{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:1}))}ChangeBadge.propTypes={isAbsolute:r.a.bool,previousValue:r.a.number.isRequired,currentValue:r.a.number.isRequired}}).call(this,n(4))},187:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnCTALink}));vari=n(5),r=n.n(i),a=n(6),o=n.n(a),c=n(16),l=n.n(c),s=n(15),u=n.n(s),d=n(1),g=n.n(d),f=n(208),m=n(0),p=n(3),h=n(41),v=n(32),b=n(13),E=n(71),_=n(10);functionO(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}functiony(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionCTALink(t
Object(m.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),Q,w),{MaxCount:e.createElement("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})}));returne.createElement("footer",{className:"googlesitekit-selection-panel-footer"},y&&e.createElement(v.a,{error:y}),e.createElement("div",{className:"googlesitekit-selection-panel-footer__content"},H&&k?e.createElement(O.a,{noPrefix:!0,message:k}):ee,e.createElement("div",{className:"googlesitekit-selection-panel-footer__actions"},e.createElement(h.Button,{tertiary:!0,onClick:Y,disabled:T},Object(m.__)("Cancel","google-site-kit")),e.createElement(h.SpinnerButton,{onClick:K,isSaving:T,disabled:Q<S||Q>w||T||!x&&V},L||q))))}SelectionPanelFooter.propTypes={savedItemSlugs:d.a.array,selectedItemSlugs:d.a.array,saveSettings:d.a.func,saveError:d.a.object,itemLimitError:d.a.string,minSelectedItemCount:d.a.number,maxSelectedItemCount:d.a.number,isBusy:d.a.bool,onSaveSuccess:d.a.func,onCancel:d.a.func,isOpen:d.a.bool,closePanel:d.a.func}}).call(this,n(4))},32:function(e,t,n){"use strict";n.d(t,"a",(function(){returni}));vari="core/location"},320:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnWidgetReportZero}));vari=n(6),r=n.n(i),a=n(21),o=n.n(a),c=n(25),l=n.n(c),s=n(1),u=n.n(s),d=n(0),g=n(143),f=n(174);functionm(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}functionWidgetReportZero(t){varn=t.widgetSlug,i=t.moduleSlug,r=l()(t,["widgetSlug","moduleSlug"]),a=Object(d.useMemo)((function(){return{moduleSlug:i}}),[i]);returnObject(g.a)(n,f.a,a),e.createElement(f.a,o()({moduleSlug:i},r))}WidgetReportZero.propTypes=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){r()(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))}))}returne}({widgetSlug:u.a.string.isRequired},f.a.propTypes)}).call(this,n(4))},321:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnWidgetReportError}));vari=n(6),r=n.n(i),a=n(25),o=n.n(a),c=n(1),l=n.n(c),s=n(170);functionu(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}functionWidgetReportError(t){t.widgetSlug;varn=o()(t,["widgetSlug"]);returne.createElement(s.a,n)}WidgetReportError.propTypes=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}({widgetSlug:l.a.string.isRequired},s.a.propTypes)}).call(this,n(4))},322:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnWPDashboardReportError}));vari=n(1),r=n.n(i),a=n(547),o=n(210),c=n(3),l=n(23),s=n(170);functionWPDashboardReportError(t){varn=t.moduleSlug,i=t.error,r=Object(o.a)(WPDashboardReportError,"WPDashboardReportError"),u=Object(c.useDispatch)(l.b).setValue,d=i.message,g=Object(c.useSelect)((function(e){returne(l.b).getValue("WPDashboardReportError-".concat(n,"-").concat(d))}));returnObject(a.a)((function(){u("WPDashboardReportError-".concat(n,"-").concat(d),r)}),(function(){u("WPDashboardReportError-".concat(n,"-").concat(d),void0)})),g!==r?null:e.createElement(s.a,{moduleSlug:n,error:i})}WPDashboardReportError.propTypes={moduleSlug:r.a.string.isRequired,error:r.a.object.isRequired}}).call(this,n(4))},323:function(e,t,n){"use strict";vari=n(0);functionr(){return(r=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=argu
Object(u._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",b.length,"google-site-kit"),b.join(Object(u.__)(" and ","google-site-kit")))))}MetricItem.propTypes={slug:l.a.string.isRequired,title:l.a.string.isRequired,description:l.a.string.isRequired,isNewlyDetected:l.a.bool,savedItemSlugs:l.a.array}}).call(this,n(4))},363:function(e,t,n){"use strict";vari=n(0);functionr(){return(r=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(variinn)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}returne}).apply(this,arguments)}vara=i.createElement("path",{d:"M59.238 58.571c-2.136 20.178 4.272 29.099 20.48 53.216 16.209 24.118-29.092 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.443-3.208 57.819 12.98 90.86 5.9 33.04-7.08 46.385-42.599 43.153-68.059-5.59-44.041-26.24-49.107-34.893-66.461-8.654-17.354 2.902-52.997-30.287-73.16-33.19-20.163-76.71 14.42-112.503 12.37-20.651-1.182-40.932-4.995-59.264.86-18.53 5.918-32.662 22.571-34.335 38.621z",fill:"#B8E6CA"}),o=i.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__filter0_d_2200_11981)"},i.createElement("rect",{x:242.455,y:45.266,width:130.621,height:89.651,rx:10.957,transform:"rotate(15 242.455 45.266)",fill:"#fff"})),c=i.createElement("rect",{x:253.726,y:64.785,width:24.903,height:7.969,rx:3.985,transform:"rotate(15 253.726 64.785)",fill:"#EBEEF0"}),l=i.createElement("rect",{x:249.342,y:81.144,width:49.806,height:19.923,rx:9.961,transform:"rotate(15 249.342 81.144)",fill:"#FFDED3"}),s=i.createElement("rect",{x:240.436,y:114.357,width:99.428,height:8.773,rx:3.985,transform:"rotate(15 240.436 114.357)",fill:"#EBEEF0"}),u=i.createElement("path",{d:"M256.195 90.198l4.644 8.044m0 0l1.412-4.986m-1.412 4.986l-5.023-1.27",stroke:"#fff",strokeWidth:1.494,strokeLinecap:"round",strokeLinejoin:"round"}),d=i.createElement("rect",{x:268.706,y:93.551,width:19.923,height:5.977,rx:1.992,transform:"rotate(15 268.706 93.55)",fill:"#fff"}),g=i.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__filter1_d_2200_11981)"},i.createElement("rect",{x:13.887,y:79.094,width:130.621,height:89.68,rx:10.957,transform:"rotate(-15 13.887 79.094)",fill:"#fff"})),f=i.createElement("rect",{x:32.989,y:90.122,width:62.386,height:7.798,rx:3.899,transform:"rotate(-15 32.99 90.122)",fill:"#EBEEF0"}),m=i.createElement("rect",{x:37.691,y:106.902,width:49.806,height:19.923,rx:9.961,transform:"rotate(-15 37.691 106.902)",fill:"#FFDED3"}),p=i.createElement("rect",{x:46.612,y:140.967,width:99.428,height:7.798,rx:3.899,transform:"rotate(-15 46.612 140.967)",fill:"#EBEEF0"}),h=i.createElement("path",{d:"M48.152 111.318l8.044 4.645m0 0l-1.27-5.024m1.27 5.024l-4.986 1.411",stroke:"#fff",strokeWidth:1.494,strokeLinecap:"round",strokeLinejoin:"round"}),v=i.createElement("rect",{x:60.663,y:107.966,width:19.923,height:5.977,rx:1.992,transform:"rotate(-15 60.663 107.966)",fill:"#fff"}),b=i.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__filter2_d_2200_11981)"},i.createElement("rect",{x:126.251,y:37.4,width:130.621,height:89.68,rx:10.957,fill:"#fff"})),E=i.createElement("rect",{x:143.013,y:53.134,width:98.333,height:7.867,rx:3.933,fill:"#EBEEF0"}),_=i.createElement("rect",{x:142.369,y:70.423,width:49.806,height:19.923,rx:9.961,fill:"#B8E6CA"}),O=i.createElement("rect",{x:143.013,y:105.84,width:33.04,height:7.867,rx:3.933,fill:"#EBEEF0"}),y=i.createElement("path",{d:"M151.336 84.036l6.568-6.567m0 0l-5.182-.073m5.182.073l.073 5.18",stroke:"#fff",strokeWidth:1.494,strokeLinecap:"round",strokeLinejoin:"round"}),k=i.createElement("rect",{x:164.287,y:77.395,width:19.923,height:5.977,rx:1.992,fill:"#fff"}),j=i.createElement("path",{d:"M59.23758.571C57.178.7563.50987.6779.717111.787c16.20924.118-29.09162.9145.475101.26833.82737.53269.419.009111.314-4.55529.444-3.20857.8212.9890.865.9s46.385-42.59943.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461-8.654-17.3542.902-52.997-30.287-73.16-33.19-20.163-76.7114.42-112.50312.37-20.651-1.182-40.932-4.995-59.264.86C75.04225.86760.9142
Object(c.__)('%s are people who visited your site for the first time. Note that under some circumstances it\'s possible for a visitor to be counted in both the "new" and "returning" groups. <link>Learn more</link>',"google-site-kit"),"<strong>New visitors</strong>"),{strong:e.createElement("strong",null),link:e.createElement(s.a,{href:r,external:!0,hideExternalIndicator:!0})});case"returning-visitors":returnObject(o.a)(Object(c.sprintf)(/* translators: %s: is the audience name */
Object(c.__)('%s are people who have visited your site at least once before. Note that under some circumstances it\'s possible for a visitor to be counted in both the "new" and "returning" groups. <link>Learn more</link>',"google-site-kit"),"<strong>Returning visitors</strong>"),{strong:e.createElement("strong",null),link:e.createElement(s.a,{href:r,external:!0,hideExternalIndicator:!0})});default:returnObject(o.a)(Object(c.sprintf)(/* translators: %s: is the audience name */
Object(c.__)("%s is an audience that already exists in your Analytics property. Note that it's possible for a visitor to be counted in more than one group. <link>Learn more</link>","google-site-kit"),"<strong>".concat(i,"</strong>")),{strong:e.createElement("strong",null),link:e.createElement(s.a,{href:r,external:!0,hideExternalIndicator:!0})})}}),[n,i,r])}AudienceTooltipMessage.propTypes={audienceSlug:r.a.string.isRequired}}).call(this,n(4))},388:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnRetryButton}));vari=n(1),r=n.n(i),a=n(2),o=n(10),c=n(9),l=n(18);functionRetryButton(t){varn=t.handleRetry,i=Object(l.a)();returne.createElement(o.Button,{className:"googlesitekit-audience-selection-panel__error-notice-action",onClick:function(){n(),Object(c.I)("".concat(i,"_audiences-sidebar"),"data_loading_error_retry")},tertiary:!0},Object(a.__)("Retry","google-site-kit"))}RetryButton.propTypes={handleRetry:r.a.func.isRequired}}).call(this,n(4))},39:function(e,t,n){"use strict";n.d(t,"a",(function(){returni})),n.d(t,"b",(function(){returnr}));vari="_googlesitekitDataLayer",r="data-googlesitekit-gtag"},396:function(e,t,n){"use strict";n.d(t,"a",(function(){returns}));vari=n(3),r=n(19),a=n(7),o=n(26),c=n(8),l=n(66);functions(){returnObject(i.useSelect)((function(e){vart=e(a.a).isItemDismissed(o.l),n=e(a.a).isDismissingItem(o.l),i=u(e,"search-console",l.b),r=u(e,"analytics-4",c.r);return!1===t&&!1===n&&i&&r}),[])}functionu(e,t,n){if(e(r.a).isModuleConnected(t)){vari=e(n),a=i.isGatheringData,o=i.isDataAvailableOnLoad;returna(),o()}}},397:function(e,t,n){"use strict";n.d(t,"a",(function(){returnl}));vari=n(0),r=n(3),a=n(7),o=n(19),c=n(32);functionl(e){vart=Object(r.useSelect)((function(e){returne(a.a).hasCapability(a.K)})),n=Object(r.useSelect)((function(t){returnt(o.a).getModuleStoreName(e)})),l=Object(r.useSelect)((function(e){vart;returnnull===(t=e(n))||void0===t?void0:t.getAdminReauthURL()})),s=Object(r.useDispatch)(c.a).navigateTo,u=Object(i.useCallback)((function(){returns(l)}),[l,s]);returnl&&t?u:null}},398:function(e,t,n){"use strict";vari=n(0);functionr(){return(r=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(variinn)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}returne}).apply(this,arguments)}vara=i.createElement("g",{clipPath:"url(#audience-segmentation-introductory-graphic-desktop_svg__clip0_1395_20972)"},i.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0V16z",fill:"#B8E6CA"}),i.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__filter0_d_1395_20972)"},i.createElement("rect",{x:-10,y:25,width:153,height:174,rx:11,fill:"#fff"})),i.createElement("rect",{x:9.031,y:110.641,width:53.016,height:9.516,rx:4.758,fill:"#EBEEF0"}),i.createElement("rect",{x:9.031,y:95.688,width:19.031,height:9.516,rx:4.758,fill:"#EBEEF0"}),i.createElement("rect",{x:9.031,y:148.703,width:19.031,height:9.516,rx:4.758,fill:"#EBEEF0"}),i.createElement("path",{d:"M94.672 108.602a8.836 8.836 0 018.836-8.836h13.594a8.836 8.836 0 010 17.672h-13.594a8.836 8.836 0 01-8.836-8.836z",fill:"#B8E6CA"}),i.createElement("rect",{x:9,y:46,width:36,height:9,rx:4.5,fill:"#EBEEF0"}),i.createElement("path",{d:"M94.672 161.617a8.836 8.836 0 018.836-8.836h13.594a8.836 8.836 0 110 17.672h-13.594a8.836 8.836 0 01-8.836-8.836z",fill:"#FFDED3"}),i.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__filter1_d_1395_20972)"},i.createElement("rect",{x:152,y:25,width:153,height:174,rx:11,fill:"#fff"})),i.createElement("rect",{x:170.955,y:110.641,width:52.805,height:9.516,rx:4.758,fill:"#EBEEF0"}),i.createElement("rect",{x:170.955,y:95.688,width:18.956,height:9.516,rx:4.758,fill:"#EBEEF0"}),i.createElement("rect",{x:170.955,y:148.703,width:18.956,height:9.516,rx:4.758,fill:"#EBEEF0"}),i.createElement("path",{d:"M256.256 108.602a8.836 8.836 0 018.836-8.836h13.47a8.836 8.836 0 018.835 8.836 8.836 8.836 0 01-8.835 8.836h-13.47a8.836 8.836 0 01-8.836-8.836z",fill:"#B8E6CA"}),i
Object(o.__)("Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(c.a,{href:n,external:!0,hideExternalIndicator:!0},Object(o.__)("Get help","google-site-kit"))})}GetHelpLink.propTypes={linkURL:r.a.string.isRequired}}).call(this,n(4))},454:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnMetricTileLoader}));vari=n(44);functionMetricTileLoader(){returne.createElement("div",{className:"googlesitekit-km-widget-tile__loading"},e.createElement(i.a,{className:"googlesitekit-km-widget-tile__loading-header",width:"100%",height:"14px"}),e.createElement(i.a,{className:"googlesitekit-km-widget-tile__loading-body",width:"100%",height:"53px"}))}}).call(this,n(4))},455:function(e,t,n){"use strict";(function(e){vari=n(1),r=n.n(i),a=n(0),o=n(2),c=n(10),l=n(17),s=n(24),u=n(350),d=n(35),g=n(135),f=n(345),m=Object(a.forwardRef)((function(t,n){vari=t.Widget,r=t.errors,a=t.onRetry,m=t.onRequestAccess,p=t.showRetryButton,h=Object(s.e)(),v=h===s.b,b=h===s.c,E=r.some(d.e);returne.createElement(i,{ref:n,noPadding:!0,className:"googlesitekit-audience-segmentation-error-widget"},e.createElement(l.e,{collapsed:!0,className:"googlesitekit-audience-segmentation-error__widget-primary-cell"},e.createElement(l.k,null,e.createElement(l.a,{smSize:6,mdSize:8,lgSize:7},e.createElement("h3",{className:"googlesitekit-publisher-win__title"},E?Object(o.__)("Insufficient permissions","google-site-kit"):Object(o.__)("Your visitor groups data loading failed","google-site-kit")),e.createElement("div",{className:"googlesitekit-widget-audience-segmentation-error__actions"},p&&a?e.createElement(c.Button,{onClick:a,danger:!0},Object(o.__)("Retry","google-site-kit")):e.createElement(g.a,{moduleSlug:"analytics-4",error:r,GetHelpLink:E?f.a:void0,hideGetHelpLink:!E,buttonVariant:"danger",getHelpClassName:"googlesitekit-error-retry-text",onRetry:a,onRequestAccess:m}))),!v&&!b&&e.createElement(l.a,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:6,mdSize:3,lgSize:5},e.createElement(u.a,{width:"233px"})),b&&e.createElement(l.a,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",mdSize:8},e.createElement(u.a,{width:"233px"})),v&&e.createElement(l.a,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:8},e.createElement(u.a,{width:"233px"})))))}));m.propTypes={Widget:r.a.elementType.isRequired,errors:r.a.arrayOf(r.a.object).isRequired,onRetry:r.a.func.isRequired,onRequestAccess:r.a.func.isRequired,showRetryButton:r.a.bool},t.a=m}).call(this,n(4))},456:function(e,t,n){"use strict";(function(e){vari=n(5),r=n.n(i),a=n(16),o=n.n(a),c=n(0),l=n(2),s=n(157),u=n(88),d=n(32),g=n(13),f=n(7),m=n(9),p=n(18),h=n(3),v=n(10),b=n(137),E=Object(c.forwardRef)((function(t,n){vari=Object(p.a)(),a=Object(h.useSelect)((function(e){vart=e(g.c).getAdminURL("googlesitekit-dashboard");returnObject(s.a)(t,{widgetArea:u.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION})})),c=Object(h.useDispatch)(d.a).navigateTo,E=Object(h.useDispatch)(f.a).dismissItem;function_(){returnE("settings_visitor_groups_setup_success_notification")}returne.createElement("div",{ref:n,className:"googlesitekit-settings-visitor-groups__setup-success googlesitekit-subtle-notification"},e.createElement("div",{className:"googlesitekit-subtle-notification__icon"},e.createElement(b.a,{width:24,height:24})),e.createElement("div",{className:"googlesitekit-subtle-notification__content"},e.createElement("p",null,Object(l.__)("We’ve added the visitor groups section to your dashboard!","google-site-kit"))),e.createElement("div",{className:"googlesitekit-subtle-notification__action"},e.createElement(v.Button,{tertiary:!0,onClick:function(){Object(m.I)("".concat(i,"_audiences-setup-cta-settings-success"),"dismiss_notification").finally(_)}},Object(l.__)("Got it","google-site-kit")),e.createElement(v.Button,{onClick:function(){Object(m.I)("".concat(i,"_audiences-setup-cta-settings-success"),"confirm_notification").finally(o()(r.a.mark((functione(){returnr.a.wrap((function(e){for(;;)switch(e.p
Object(h._n)("Select at least %1$d group (%2$d selected)","Select at least %1$d groups (%2$d selected)",_.k,"google-site-kit"),_.k,R):R>_.j&&(n=Object(h.sprintf)(/* translators: 1: Maximum number of groups that can be selected. 2: Number of selected groups. */
Object(h.__)("Select up to %1$d groups (%2$d selected)","google-site-kit"),_.j,R));varx=Object(p.useState)(null),M=u()(x,2),I=M[0],B=M[1],P=Object(p.useCallback)(function(){vare=l()(r.a.mark((functione(t){varn,i,a,c;returnr.a.wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnB(null),e.next=3,C({configuredAudiences:t});case3:if(n=e.sent,i=n.error){e.next=14;break}if(a=(null==S?void0:S.filter((function(e){varn=e.replace("audience-tile-","");return!t.includes(n)})))||[],t.every((function(e){returnnull==S?void0:S.includes("audience-tile-".concat(e))}))&&a.push("audience-tile-".concat(t[0])),!((null==a?void0:a.length)>0)){e.next=14;break}returne.next=11,N.apply(void0,o()(a));case11:c=e.sent,(i=c.error)&&B(i);case14:returne.abrupt("return",{error:i});case15:case"end":returne.stop()}}),e)})));returnfunction(t){returne.apply(this,arguments)}}(),[S,N,C]),L=Object(p.useCallback)((function(){vare={USER_AUDIENCE:"user",SITE_KIT_AUDIENCE:"site-kit",DEFAULT_AUDIENCE:"default"},t=D(),n=Object.keys(e).map((function(n){vari=t.filter((function(e){vart=null==w?void0:w.find((function(t){varn=t.name;returne===n}));return(null==t?void0:t.audienceType)===n}));return"".concat(e[n],":").concat(i.length)})).join(",");Object(E.I)("".concat(s,"_audiences-sidebar"),"audiences_sidebar_save",n)}),[w,D,s]),F=Object(p.useCallback)((function(){Object(E.I)("".concat(s,"_audiences-sidebar"),"audiences_sidebar_cancel")}),[s]);returne.createElement(j.a,{savedItemSlugs:c,selectedItemSlugs:d,saveSettings:P,saveError:f||I,itemLimitError:n,minSelectedItemCount:_.k,maxSelectedItemCount:_.j,isBusy:m,isOpen:i,closePanel:a,onSaveSuccess:L,onCancel:F})}Footer.propTypes={isOpen:m.a.bool,closePanel:m.a.func.isRequired,savedItemSlugs:m.a.array}}).call(this,n(4))},496:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnHeader}));vari=n(1),r=n.n(i),a=n(0),o=n(38),c=n(2),l=n(3),s=n(32),u=n(13),d=n(7),g=n(33),f=n(20),m=n(117);functionHeader(t){varn=t.closePanel,i=Object(g.a)(),r=Object(l.useSelect)((function(e){returne(u.c).getAdminURL("googlesitekit-settings")})),p=Object(l.useSelect)((function(e){returne(d.a).isSavingUserAudienceSettings()})),h=Object(l.useDispatch)(s.a).navigateTo,v=Object(a.useCallback)((function(){returnh("".concat(r,"#/admin-settings"))}),[h,r]);returne.createElement(m.b,{title:Object(c.__)("Select visitor groups","google-site-kit"),onCloseClick:n},!i&&e.createElement("p",null,Object(o.a)(Object(c.__)("You can deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:e.createElement(f.a,{secondary:!0,onClick:v,disabled:p}),strong:e.createElement("strong",null)})))}Header.propTypes={closePanel:r.a.func.isRequired}}).call(this,n(4))},497:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnLearnMoreLink}));vari=n(2),r=n(38),a=n(3),o=n(13),c=n(20);functionLearnMoreLink(){vart=Object(a.useSelect)((function(e){returne(o.c).getGoogleSupportURL({path:"/analytics/answer/12799087"})}));returne.createElement("div",{className:"googlesitekit-audience-selection-panel__learn-more"},Object(r.a)(Object(i.__)("Learn more about grouping site visitors and audiences in <link><strong>Analytics</strong></link>","google-site-kit"),{link:e.createElement(c.a,{secondary:!0,href:t,external:!0}),strong:e.createElement("strong",null)}))}}).call(this,n(4))},498:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnAudienceCreationSuccessNotice}));vari=n(0),r=n(2),a=n(3),o=n(18),c=n(9),l=n(40),s=n(23),u=n(10),d=n(137);functionAudienceCreationSuccessNotice(){vart=Object(o.a)(),n=Object(a.useDispatch)(s.b).setValue,g=Object(a.useSelect)((function(e){returne(s.b).getValue(l.e)})),f=Object(a.useSelect)((function(e){returne(s.b).getValue(l.i)}));returnObject(i.useEffect)((function(){f&&g&&Object(c.I)("".concat(t,"_audiences-sidebar-create-audiences-success"),"view_notification")}),[f,g,t]),g?e.createElement("div",{className:"googlesitekit-audience-selection-panel__success-notice"},e.createElement("div",{className:"googlesitekit-audience-selecti
Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),i));returne.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.F)(l,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:r.a.string.isRequired,reconnectURL:r.a.string,noPrefix:r.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(4))},57:function(e,t,n){"use strict";(function(e){vari,r;n.d(t,"a",(function(){returna})),n.d(t,"b",(function(){returno}));vara=newSet((null===(i=e)||void0===i||null===(r=i._googlesitekitBaseData)||void0===r?void0:r.enabledFeatures)||[]),o=function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:a;returntinstanceofSet&&t.has(e)}}).call(this,n(28))},58:function(e,t,n){"use strict";vari=n(0);functionr(){return(r=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(variinn)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}returne}).apply(this,arguments)}vara=i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o=i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"});t.a=functionSvgWarning(e){returni.createElement("svg",r({fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e),a,o)}},59:function(e,t,n){"use strict";n.d(t,"a",(function(){returnr}));vari=n(39);functionr(e){returnfunction(){e[i.a]=e[i.a]||[],e[i.a].push(arguments)}}},61:function(e,t,n){"use strict";n.d(t,"a",(function(){returna}));vari=n(0),r=Object(i.createContext)(""),a=(r.Consumer,r.Provider);t.b=r},627:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returnAddMetricCTATile}));vari=n(15),r=n.n(i),a=n(1),o=n.n(a),c=n(0),l=n(242),s=n(2),u=n(56),d=n(3),g=n(23),f=n(26),m=n(1012),p=n(9),h=n(18);functionAddMetricCTATile(t){varn=t.Widget,i=Object(c.useRef)(),a=Object(d.useDispatch)(g.b).setValue,o=Object(h.a)(),v="".concat(o,"_kmw"),b=Object(c.useCallback)((function(e){("keydown"!==e.type||[u.b,u.e].includes(e.keyCode))&&(e.preventDefault(),a(f.k,!0),Object(p.I)(v,"add_metric_click"))}),[a,v]),E=Object(l.a)(i,{threshold:.25}),_=Object(c.useState)(!1),O=r()(_,2),y=O[0],k=O[1],j=!!(null==E?void0:E.intersectionRatio);returnObject(c.useEffect)((function(){j&&!y&&(Object(p.I)(v,"add_metric_view"),k(!0))}),[j,v,y]),e.createElement(n,{className:"googlesitekit-widget--addMetricCTATile",noPadding:!0},e.createElement("div",{ref:i,className:"googlesitekit-km-add-metric-cta-tile",onClick:b,onKeyDown:b,tabIndex:0,role:"button"},e.createElement("div",{className:"googlesitekit-km-add-metric-cta-tile__icon"},e.createElement(m.a,{width:16,height:16})),e.createElement("p",{className:"googlesitekit-km-add-metric-cta-tile__text"},Object(s.__)("Add a metric","google-site-kit"))))}AddMetricCTATile.propTypes={Widget:o.a.elementType.isRequired}}).call(this,n(4))},64:function(e,t,n){"use strict";n.d(t,"a",(function(){returnh})),n.d(t,"b",(function(){returnv}));vari=n(6),r=n.n(i),a=n(34),o=n.n(a),c=n(116),l=n(12),s=n.n(l),u=n(97),d=n.n(u),g=n(9);functionf(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}functionm(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){r()(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))}))}returne}functionp(e,t){if(t&&Array.isArray(t)){varn=t.map((function(e){return"object"===o()(e)?Object(g.H)(e):e}));return"".concat(e,"::").concat(d()(JSON.stringify(n)))}returne}varh={receiveError:function(e,t){varn=arguments.length>2&&void0!==arguments[2]?arguments[2]:[];returns()(e,"error is required."),s()(t,"baseName is required."),s()(n
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?A(a,h(h({},o),{},{unit:"second"})):"",r?A(r,h(h({},o),{},{unit:"minute"})):"",i?A(i,h(h({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){vart=Object(m.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",r?n:"",i?o:"").trim()}}},O=function(e){return1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},y=function(e){vart={minimumFractionDigits:1,maximumFractionDigits:1};return1e6<=e?Object(m.sprintf)(
// translators: %s: an abbreviated number in millions.
/* translators: used between list items, there is a space after the comma. */vars=Object(m.__)(", ","google-site-kit");returne.join(s)},T=function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){vari=n.match(/^(\w{2})?(_)?(\w{2})/);if(i&&i[0])returni[0].replace(/_/g,"-")}returnt.navigator.language}}).call(this,n(28))},842:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){returny}));vari=n(21),r=n.n(i),a=n(0),o=n(2),c=n(69),l=n(88),s=n(7),u=n(47),d=n(19),g=n(13),f=n(108),m=n(627),p=n(1013),h=n(1014),v=n(641),b=n(386),E=n(24),_=r()({},c),O=r()({},l);functiony(t){varn=_.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,i=_.CONTEXT_MAIN_DASHBOARD_TRAFFIC,r=_.CONTEXT_MAIN_DASHBOARD_CONTENT,c=_.CONTEXT_MAIN_DASHBOARD_SPEED,l=_.CONTEXT_MAIN_DASHBOARD_MONETIZATION,y=_.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,k=_.CONTEXT_ENTITY_DASHBOARD_CONTENT,j=_.CONTEXT_ENTITY_DASHBOARD_SPEED,S=_.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,A=O.AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY,w=O.AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY,T=O.AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION,C=O.AREA_MAIN_DASHBOARD_CONTENT_PRIMARY,N=O.AREA_MAIN_DASHBOARD_SPEED_PRIMARY,D=O.AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY,R=O.AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY,x=O.AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY,M=O.AREA_ENTITY_DASHBOARD_SPEED_PRIMARY,I=O.AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY;t.registerWidgetArea(A,{title:e.createElement(a.Fragment,null,Object(o.__)("Key metrics","google-site-kit"),e.createElement(p.a,null)),subtitle:h.a,style:u.b.BOXES,priority:1,CTA:f.a,filterActiveWidgets:function(e,t){return1===t.length&&s.P.includes(t[0].slug)?[]:t}},n),t.registerWidgetArea(w,{title:Object(o.__)("Find out how your audience is growing","google-site-kit"),subtitle:Object(o.__)("Track your site’s traffic over time","google-site-kit"),style:u.b.BOXES,priority:1},i),t.registerWidgetArea(T,{subtitle:Object(o.__)("Understand how different visitor groups interact with your site","google-site-kit"),hasNewBadge:!0,style:u.b.BOXES,priority:2,CTA:b.e,Footer:b.a,filterActiveWidgets:function(e,t){varn=e(s.a).isAudienceSegmentationWidgetHidden();returnvoid0===n||n?[]:t}},i),t.registerWidgetArea(C,{title:Object(o.__)("See how your content is doing","google-site-kit"),subtitle:Object(o.__)("Keep track of your most popular pages and how people found them from Search","google-site-kit"),style:u.b.BOXES,priority:1},r),t.registerWidgetArea(N,{title:Object(o.__)("Find out how visitors experience your site","google-site-kit"),subtitle:Object(o.__)("Keep track of how fast your pages are and get specific recommendations on what to improve","google-site-kit"),style:u.b.BOXES,priority:1},c),t.registerWidgetArea(D,{title:Object(o.__)("Find out how much you’re earning from your content","google-site-kit"),subtitle:Object(o.__)("Track your AdSense revenue over time","google-site-kit"),style:u.b.BOXES,priority:1},l),t.registerWidgetArea(R,{title:Object(o.__)("Find out how your audience is growing","google-site-kit"),subtitle:Object(o.__)("Track traffic to this page over time","google-site-kit"),style:u.b.BOXES,priority:1},y),t.registerWidgetArea(x,{title:Object(o.__)("See how your content is doing","google-site-kit"),subtitle:Object(o.__)("Understand how people found this page from Search","google-site-kit"),style:u.b.BOXES,priority:1},k),t.registerWidgetArea(M,{title:Object(o.__)("Find out how visitors experience this page","google-site-kit"),subtitle:Object(o.__)("Keep track of how fast your page is and get specific recommendations on what to improve","google-site-kit"),style:u.b.BOXES,priority:1},j),t.registerWidgetArea(I,{title:Object(o.__)("Find out how much you’re earning from your content","google-site-kit"),subtitle:Object(o.__)("Track your AdSense revenue over time","google-site-kit"),style:u.b.BOXES,priority:1},S),t.registerWidget("keyMetricsSetupCTA",{Component:f.c,width:[t.WIDGET_WIDTHS.FULL],priority:1,wrapWidget:!1,isActive:function(e){returne(s.a).isAuthenticated()&&!1===e(g.c).isKeyMetricsSetupCom
Object(y._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}}}functionN(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:"";if(!Object(i.isString)(e))return!1;vart=e.split("-");if(3!==t.length)return!1;varn=newDate(e);returnObject(i.isDate)(n)&&!isNaN(n)}functionD(e){O()(Object(i.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");vart="".concat(e.getMonth()+1),n="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,n.length<2?"0".concat(n):n].join("-")}functionR(e){O()(N(e),k);vart=e.split("-"),n=E()(t,3),i=n[0],r=n[1],a=n[2];returnnewDate(i,r-1,a)}functionx(e,t){returnD(I(e,t*w))}functionM(e){vart=e.split("-");return3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}functionI(e,t){O()(N(e)||Object(i.isDate)(e)&&!isNaN(e),k);varn=N(e)?Date.parse(e):e.getTime();returnnewDate(n-1e3*t)}varB=n(99),P=n(81);functionL(e){vart=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}functionF(e){if("number"==typeofe)return!0;vart=(e||"").toString();return!!t&&!isNaN(t)}varz=n(27),W=n.n(z),V=function(e){returnArray.isArray(e)?W()(e).sort():e},U=n(89);functionG(e,t){varn=function(e){return"0"===e||0===e};if(n(e)&&n(t))return0;if(n(e)||Number.isNaN(e))returnnull;vari=(t-e)/e;returnNumber.isNaN(i)||!Number.isFinite(i)?null:i}varH=function(e){try{returnJSON.parse(e)&&!!e}catch(e){return!1}},q=function(e){if(!e)return"";vart=e.replace(/&#(\d+);/g,(function(e,t){returnString.fromCharCode(t)})).replace(/(\\)/g,"");returnObject(i.unescape)(t)}},90:function(e,t,n){"use strict";(function(e,i){n.d(t,"c",(function(){returnb})),n.d(t,"b",(function(){return_})),n.d(t,"a",(function(){returnTourTooltips}));varr=n(6),a=n.n(r),o=n(82),c=n(30),l=n(1),s=n.n(l),u=n(2),d=n(3),g=n(23),f=n(7),m=n(36),p=n(107),h=n(18);functionv(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}varb={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},E={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},_={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},O="feature_tooltip_view",y="feature_tooltip_advance",k="feature_tooltip_return",j="feature_tooltip_dismiss",S="feature_tooltip_complete";functionTourTooltips(t){varn=t.steps,r=t.tourID,l=t.gaEventCategory,s=t.callback,u="".concat(r,"-step"),A="".concat(r,"-run"),w=Object(d.useDispatch)(g.b).setValue,T=Object(d.useDispatch)(f.a).dismissTour,C=Object(d.useRegistry)(),N=Object(h.a)(),D=Object(d.useSelect)((function(e){returne(g.b).getValue(u)})),R=Object(d.useSelect)((function(e){returne(g.b).getValue(A)&&!1===e(f.a).isTourDismissed(r)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(r)),w(A,!0)}));varx=n.map((function(e){returnfunction(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));returni.createElement(c.e,{callback:function(t){!fu