(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[16],{100:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var i=n(38),r=n.n(i),o=n(90);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:o.a.sanitize(e,t)}}function c(e){var t,n="object"===r()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},101:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CTAButton}));var i=n(0),r=n.n(i),o=n(11),a=n(75);function CTAButton(t){var n,i=t.label,r=t.disabled,c=t.inProgress,l=t.onClick,s=t.href,u=t.external,d=t.hideExternalIndicator;return u&&!d&&(n=e.createElement(a.a,{width:14,height:14})),e.createElement(o.SpinnerButton,{className:"googlesitekit-notice__cta",disabled:r,isSaving:c,onClick:l,href:s,target:u?"_blank":"_self",trailingIcon:n},i)}CTAButton.propTypes={label:r.a.string.isRequired,disabled:r.a.bool,inProgress:r.a.bool,onClick:r.a.func,href:r.a.string,external:r.a.bool,hideExternalIndicator:r.a.bool}}).call(this,n(3))},102:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DismissButton}));var i=n(0),r=n.n(i),o=n(2),a=n(11);function DismissButton(t){var n=t.label,i=void 0===n?Object(o.__)("Got it","google-site-kit"):n,r=t.onClick,c=t.disabled;return e.createElement(a.Button,{onClick:r,disabled:c,tertiary:!0},i)}DismissButton.propTypes={label:r.a.string,onClick:r.a.func.isRequired,disabled:r.a.bool}}).call(this,n(3))},104:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var i=n(56),r=n.n(i),o=n(57),a=n.n(o);function c(t){var n=e[t];if(!n)return!1;try{var i="__storage_test__";return n.setItem(i,i),n.removeItem(i),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}}var l,s=function(){function NullStorage(){r()(this,NullStorage)}return a()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}();function u(){return l||(l=c("sessionStorage")?e.sessionStorage:c("localStorage")?e.localStorage:new s),l}}).call(this,n(27))},107:function(e,t,n){"use strict";(function(e,i){n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return TourTooltips}));var r=n(5),o=n.n(r),a=n(103),c=n(31),l=n(0),s=n.n(l),u=n(2),d=n(4),g=n(26),f=n(7),p=n(41),m=n(125),b=n(17);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var h={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},O={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},y={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},j="feature_tooltip_view",k="feature_tooltip_advance",E="feature_tooltip_return",_="feature_tooltip_dismiss",I="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,r=t.tourID,l=t.gaEventCategory,s=t.callback,u="".concat(r,"-step"),S="".concat(r,"-run"),N=Object(d.useDispatch)(g.b).setValue,M=Object(d.useDispatch)(f.a).dismissTour,T=Object(d.useRegistry)(),C=Object(b.a)(),w=Object(d.useSelect)((function(e){return e(g.b).getValue(u)||0})),D=Object(d.useSelect)((function(e){return e(g.b).getValue(S)&&!1===e(f.a).isTourDismissed(r)}));Object(a.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(r)),N(S,!0)}));var A=n.map((function(e){return function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var o=n.invertColor,a=void 0!==o&&o;return Object(i.a)(e.createElement(r.a,{direction:t>0?"up":"down",invertColor:a}))}function a(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,n(3))},109:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var i=n(5),r=n.n(i),o=n(14),a=n(110),c=n(111);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=s(s({},u),t);r.referenceSiteURL&&(r.referenceSiteURL=r.referenceSiteURL.toString().replace(/\/+$/,""));var l=Object(a.a)(r,n),d=Object(c.a)(r,n,l,i),g={};function f(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:c,t=e.fps,n=e.leading,i=e.initialWidth,u=void 0===i?0:i,d=e.initialHeight,g=void 0===d?0:d,f=Object(o.a)("undefined"==typeof document?[u,g]:s,t,n),p=r()(f,2),m=p[0],b=p[1];function v(){return b(s)}return Object(a.a)(l,"resize",v),Object(a.a)(l,"orientationchange",v),m}function d(e){return u(e)[0]}}).call(this,n(27))},125:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var i=n(18),r=n.n(i),o=n(167),a=n.n(o),c=n(10),l=n.n(c),s=n(0),u=n.n(s),d=n(2),g=n(11),f=n(168),p=n(119),m=n(30);function TourTooltip(t){var n=t.backProps,i=t.closeProps,c=t.index,s=t.primaryProps,u=t.size,b=t.step,v=t.tooltipProps,h=u>1?Object(f.a)(u):[];function O(e){return l()("googlesitekit-tooltip-indicator",{active:e===c})}return e.createElement("div",r()({className:l()("googlesitekit-tour-tooltip",b.className)},v),e.createElement(a.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement(m.a,{as:"h2",className:"googlesitekit-tooltip-title",size:"medium",type:"title"},b.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},b.content)),e.createElement(o.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:O(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(g.Button,r()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),b.cta,s.title&&e.createElement(g.Button,r()({className:"googlesitekit-tooltip-button",text:!0},s),s.title))),e.createElement(g.Button,{className:"googlesitekit-tooltip-close",icon:e.createElement(p.a,{width:"14",height:"14"}),onClick:i.onClick,"aria-label":Object(d.__)("Close","google-site-kit"),text:!0,hideTooltipTitle:!0})))}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,cta:u.a.oneOfType([u.a.element,u.a.bool]),className:u.a.string}).isRequired,tooltipProps:u.a.object.isRequired}}).call(this,n(3))},126:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(381);function r(e,t,n){Object(i.a)((function(n){return e.includes(n.keyCode)&&t.current.contains(n.target)}),n)}},1267:function(e,t,n){"use strict";n.r(t),function(e){var t=n(331),i=n(159),r=n(223),o=n(1107),a=n(24);Object(t.a)((function(){var t=document.getElementById("js-googlesitekit-metric-selection");t&&Object(i.render)(e.createElement(r.a,{viewContext:a.p},e.createElement(o.a,null)),t)}))}.call(this,n(3))},128:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return h}));var i=n(19),r=n.n(i),o=n(5),a=n.n(o),c=n(6),l=n.n(c),s=n(12),u=n.n(s),d=n(4),g=n.n(d),f=n(48),p=n(9);function m(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},i={deleteSnapshot:l.a.mark((function e(){var t;return l.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:l.a.mark((function e(){var t,n,i,r,o,a,c=arguments;return l.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,i=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(r=e.sent,o=r.cacheHit,a=r.value,!o){e.next=13;break}return e.next=10,{payload:{snapshot:a},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!i){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",o);case 14:case"end":return e.stop()}}),e)})),createSnapshot:l.a.mark((function e(){var t;return l.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)}))},o=(t={},a()(t,"DELETE_SNAPSHOT",(function(){return Object(f.c)("datastore::cache::".concat(e))})),a()(t,"CREATE_SNAPSHOT",Object(d.createRegistryControl)((function(t){return function(){return Object(f.f)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),a()(t,"RESTORE_SNAPSHOT",(function(){return Object(f.d)("datastore::cache::".concat(e),p.b)})),t);return{initialState:n,actions:i,controls:o,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,i=t.type,o=t.payload;switch(i){case"SET_STATE_FROM_SNAPSHOT":var a=o.snapshot,c=(a.error,r()(a,["error"]));return c;default:return e}}}}function b(){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")}))}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(b(e).map((function(e){return e.getActions().createSnapshot()})))}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.a;return Promise.all(b(e).map((function(e){return e.getActions().restoreSnapshot()})))}},129:function(e,t,n){"use strict";var i=n(325),r=n(313);n.d(t,"b",(function(){return r.a}));var o=n(314);n.d(t,"c",(function(){return o.a}));var a=n(315);n.d(t,"d",(function(){return a.a}));var c=n(316);n.d(t,"a",(function(){return c.a})),t.e=i.a},13:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i="core/site",r="primary",o="secondary"},131:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(219),r=n(14),o=n(1);function a(){for(var e=arguments.length,t=new Array(e),n=0;n=I&&I>0),a()(n,"mdc-layout-grid__cell--span-".concat(k,"-desktop"),12>=k&&k>0),a()(n,"mdc-layout-grid__cell--start-".concat(E,"-desktop"),12>=E&&E>0),a()(n,"mdc-layout-grid__cell--order-".concat(_,"-desktop"),12>=_&&_>0),a()(n,"mdc-layout-grid__cell--span-".concat(O,"-tablet"),8>=O&&O>0),a()(n,"mdc-layout-grid__cell--start-".concat(y,"-tablet"),8>=y&&y>0),a()(n,"mdc-layout-grid__cell--order-".concat(j,"-tablet"),8>=j&&j>0),a()(n,"mdc-layout-grid__cell--span-".concat(b,"-phone"),4>=b&&b>0),a()(n,"mdc-layout-grid__cell--start-".concat(v,"-phone"),4>=v&&v>0),a()(n,"mdc-layout-grid__cell--order-".concat(h,"-phone"),4>=h&&h>0),n))}),S)}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))},135:function(e,t,n){"use strict";(function(e){var i=n(18),r=n.n(i),o=n(19),a=n.n(o),c=n(0),l=n.n(c),s=n(10),u=n.n(s),d=n(1),g=Object(d.forwardRef)((function(t,n){var i=t.className,o=t.children,c=a()(t,["className","children"]);return e.createElement("div",r()({ref:n,className:u()("mdc-layout-grid__inner",i)},c),o)}));g.displayName="Row",g.propTypes={className:l.a.string,children:l.a.node},g.defaultProps={className:""},t.a=g}).call(this,n(3))},136:function(e,t,n){"use strict";(function(e){var i=n(18),r=n.n(i),o=n(19),a=n.n(o),c=n(0),l=n.n(c),s=n(10),u=n.n(s),d=n(1),g=Object(d.forwardRef)((function(t,n){var i=t.alignLeft,o=t.fill,c=t.className,l=t.children,s=t.collapsed,d=a()(t,["alignLeft","fill","className","children","collapsed"]);return e.createElement("div",r()({className:u()("mdc-layout-grid",c,{"mdc-layout-grid--align-left":i,"mdc-layout-grid--collapsed":s,"mdc-layout-grid--fill":o})},d,{ref:n}),l)}));g.displayName="Grid",g.propTypes={alignLeft:l.a.bool,fill:l.a.bool,className:l.a.string,collapsed:l.a.bool,children:l.a.node},g.defaultProps={className:""},t.a=g}).call(this,n(3))},137:function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;tNote: %s","google-site-kit"),I),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",onClick:f,disabled:T,tertiary:!0},Object(s.__)("Cancel","google-site-kit")),L?e.createElement(u.Button,{href:L,onClick:j,target:"_blank",danger:N},_):e.createElement(u.SpinnerButton,{onClick:j,danger:N,disabled:T,isSaving:T},_||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(3))},146:function(e,t,n){"use strict";(function(e){var i=n(0),r=n.n(i),o=n(10),a=n.n(o),c=n(44),l=n(2),s=n(22),u=n(37);function SourceLink(t){var n=t.name,i=t.href,r=t.className,o=t.external;return Object(u.a)()?null:e.createElement("div",{className:a()("googlesitekit-source-link",r)},Object(c.a)(Object(l.sprintf)(/* translators: %s: source link */ Object(l.__)("Source: %s","google-site-kit"),"".concat(n,"")),{a:e.createElement(s.a,{key:"link",href:i,external:o})}))}SourceLink.propTypes={name:r.a.string,href:r.a.string,className:r.a.string,external:r.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(3))},151:function(e,t,n){"use strict";var i=n(1),r=Object(i.createContext)(!1);t.a=r},156:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n(5),r=n.n(i),o=n(2),a=n(7),c=n(13),l=n(8);function s(e){var t=e.select,n=e.slug;return t(l.r).hasConversionReportingEvents(this.requiredConversionEventName)||t(a.a).isKeyMetricActive(n)}var u,d=n(25);function g(e){var t=e.select,n=e.isViewOnlyDashboard;return!n||!(!n||!t(l.r).getAdSenseLinked())}function f(e){var t=e.select;return!e.isViewOnlyDashboard||t(l.r).hasCustomDimensions(this.requiredCustomDimensions)}var p=(u={},r()(u,a.f,{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"),displayInSelectionPanel:g,displayInList:g,metadata:{group:d.b.SLUG}}),r()(u,a.y,{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"],displayInSelectionPanel:f,displayInWidgetArea:f,displayInList:f,metadata:{group:d.b.SLUG}}),r()(u,a.l,{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"],displayInSelectionPanel:f,displayInWidgetArea:f,displayInList:f,metadata:{group:d.b.SLUG}}),r()(u,a.p,{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"],displayInSelectionPanel:f,displayInWidgetArea:f,displayInList:f,metadata:{group:d.b.SLUG}}),r()(u,a.m,{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"),metadata:{group:d.b.SLUG}}),r()(u,a.n,{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"],displayInSelectionPanel:function(e){var t=e.select;return t(a.a).isKeyMetricActive(a.n)||t(c.c).getProductPostType()},displayInWidgetArea:f,metadata:{group:d.f.SLUG}}),r()(u,a.k,{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"),metadata:{group:d.h.SLUG}}),r()(u,a.F,{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"),metadata:{group:d.h.SLUG}}),r()(u,a.E,{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"),metadata:{group:d.h.SLUG}}),r()(u,a.i,{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"),metadata:{group:d.b.SLUG}}),r()(u,a.h,{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"),metadata:{group:d.b.SLUG}}),r()(u,a.z,{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"),metadata:{group:d.h.SLUG}}),r()(u,a.j,{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"),metadata:{group:d.h.SLUG}}),r()(u,a.o,{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"),metadata:{group:d.h.SLUG}}),r()(u,a.A,{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"),metadata:{group:d.d.SLUG}}),r()(u,a.B,{title:Object(o.__)("Top traffic source driving add to cart","google-site-kit"),description:Object(o.__)("Channel which brought in the most add to cart events to your site","google-site-kit"),infoTooltip:Object(o.__)("Channel (e.g. social, paid, search) that brought in the most add to cart events to your site","google-site-kit"),requiredConversionEventName:[l.l.ADD_TO_CART],displayInSelectionPanel:s,displayInList:s,metadata:{group:d.f.SLUG}}),r()(u,a.C,{title:Object(o.__)("Top traffic source driving leads","google-site-kit"),description:Object(o.__)("Channel which brought in the most leads to your site","google-site-kit"),infoTooltip:Object(o.__)("Channel (e.g. social, paid, search) that brought in the most leads to your site","google-site-kit"),requiredConversionEventName:[l.l.SUBMIT_LEAD_FORM,l.l.CONTACT,l.l.GENERATE_LEAD],displayInSelectionPanel:s,displayInList:s,metadata:{group:d.e.SLUG}}),r()(u,a.D,{title:Object(o.__)("Top traffic source driving purchases","google-site-kit"),description:Object(o.__)("Channel which brought in the most purchases to your site","google-site-kit"),infoTooltip:Object(o.__)("Channel (e.g. social, paid, search) that brought in the most purchases to your site","google-site-kit"),requiredConversionEventName:[l.l.PURCHASE],displayInSelectionPanel:s,displayInList:s,metadata:{group:d.f.SLUG}}),r()(u,a.g,{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"),metadata:{group:d.d.SLUG}}),r()(u,a.u,{title:Object(o.__)("Top converting traffic source","google-site-kit"),description:Object(o.__)("Channel which brought in the most visits that resulted in key events","google-site-kit"),infoTooltip:Object(o.__)("Channel (e.g. social, paid, search) that brought in visitors who generated the most key events","google-site-kit"),metadata:{group:d.d.SLUG}}),r()(u,a.q,{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"),metadata:{group:d.d.SLUG}}),r()(u,a.s,{title:Object(o.__)("Top cities driving leads","google-site-kit"),description:Object(o.__)("Cities driving the most contact form submissions","google-site-kit"),infoTooltip:Object(o.__)("Cities driving the most contact form submissions","google-site-kit"),requiredConversionEventName:[l.l.SUBMIT_LEAD_FORM,l.l.CONTACT,l.l.GENERATE_LEAD],displayInSelectionPanel:s,displayInList:s,metadata:{group:d.e.SLUG}}),r()(u,a.r,{title:Object(o.__)("Top cities driving add to cart","google-site-kit"),description:Object(o.__)("Cities where visitors most frequently add products to their carts","google-site-kit"),infoTooltip:Object(o.__)("Cities where visitors most frequently add products to their carts","google-site-kit"),requiredConversionEventName:[l.l.ADD_TO_CART],displayInSelectionPanel:s,displayInList:s,metadata:{group:d.f.SLUG}}),r()(u,a.t,{title:Object(o.__)("Top cities driving purchases","google-site-kit"),description:Object(o.__)("Cities driving the most purchases","google-site-kit"),infoTooltip:Object(o.__)("Cities driving the most purchases","google-site-kit"),requiredConversionEventName:[l.l.PURCHASE],displayInSelectionPanel:s,displayInList:s,metadata:{group:d.f.SLUG}}),r()(u,a.w,{title:Object(o.__)("Top device driving purchases","google-site-kit"),description:Object(o.__)("Top device driving the most purchases","google-site-kit"),infoTooltip:Object(o.__)("Top device driving the most purchases","google-site-kit"),requiredConversionEventName:[l.l.PURCHASE],displayInSelectionPanel:s,displayInList:s,metadata:{group:d.f.SLUG}}),r()(u,a.v,{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"),metadata:{group:d.d.SLUG}}),r()(u,a.G,{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"),metadata:{group:d.d.SLUG}}),r()(u,a.x,{title:Object(o.__)("Top pages driving leads","google-site-kit"),description:Object(o.__)("Pages on which forms are most frequently submitted","google-site-kit"),requiredConversionEventName:[l.l.SUBMIT_LEAD_FORM,l.l.CONTACT,l.l.GENERATE_LEAD],displayInSelectionPanel:s,displayInList:s,metadata:{group:d.e.SLUG}}),u)},157:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var i=n(20),r=n(209);function o(t,n){var i=document.querySelector(t);if(!i)return 0;var r=i.getBoundingClientRect().top,o=a(n);return r+e.scrollY-o}function a(t){var n=function(t){var n=0,o=document.querySelector(".googlesitekit-header");n=o&&"sticky"===e.getComputedStyle(o).position?function(e){var t=document.querySelector(".googlesitekit-header");if(t){if(e===i.b)return t.offsetHeight;var n=t.getBoundingClientRect().bottom;return n<0?0:n}return 0}(t):function(e){var t=document.querySelector("#wpadminbar");if(t&&e!==i.b)return t.offsetHeight;return 0}(t);return(n=Object(r.a)(n))<0?0:n}(t),o=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return n+=Array.from(o).reduce((function(e,t){return e+t.offsetHeight}),0)}}).call(this,n(27))},161:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Title}));var i=n(10),r=n.n(i),o=n(0),a=n.n(o);function Title(t){var n=t.className,i=t.children;return e.createElement("p",{className:r()("googlesitekit-banner__title",n)},i)}Title.propTypes={className:a.a.string,children:a.a.node}}).call(this,n(3))},162:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Description}));var i=n(10),r=n.n(i),o=n(0),a=n.n(o),c=n(1),l=n(9),s=n(58);function Description(t){var n=t.className,i=t.description,o=t.learnMoreLink,a=t.additionalDescription,u=t.children;return e.createElement("div",{className:r()("googlesitekit-banner__description",n)},Object(c.isValidElement)(i)?i:"string"==typeof i?e.createElement("span",{dangerouslySetInnerHTML:Object(l.F)(i,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):i," ",(null==o?void 0:o.href)&&e.createElement(s.a,o),a&&e.createElement("div",{className:"googlesitekit-banner__additional-description"},a),u)}Description.propTypes={className:a.a.string,description:a.a.oneOfType([a.a.string,a.a.node]),learnMoreLink:a.a.shape(s.a.propTypes),additionalDescription:a.a.oneOfType([a.a.string,a.a.node]),children:a.a.node}}).call(this,n(3))},163:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return HelpText}));var i=n(10),r=n.n(i),o=n(0),a=n.n(o);function HelpText(t){var n=t.className,i=t.children;return e.createElement("p",{className:r()("googlesitekit-banner__help-text",n)},i)}HelpText.propTypes={className:a.a.string,children:a.a.node}}).call(this,n(3))},164:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Footer}));var i=n(10),r=n.n(i),o=n(0),a=n.n(o);function Footer(t){var n=t.className,i=t.children;return e.createElement("div",{className:r()("googlesitekit-banner__footer",n)},i)}Footer.propTypes={className:a.a.string,children:a.a.node}}).call(this,n(3))},168:function(e,t,n){"use strict";function i(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}n.d(t,"a",(function(){return i}))},17:function(e,t,n){"use strict";var i=n(1),r=n(69);t.a=function(){return Object(i.useContext)(r.b)}},171:function(e,t,n){"use strict";(function(e,i){var r=n(5),o=n.n(r),a=n(18),c=n.n(a),l=n(19),s=n.n(l),u=n(0),d=n.n(u),g=n(1),f=n(249),p=n(11),m=n(145);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var v=null;function RefocusableModalDialog(e){var t=e.dialogActive,n=void 0!==t&&t,r=e.refocusQuerySelector,o=void 0===r?null:r,a=s()(e,["dialogActive","refocusQuerySelector"]),l=Object(g.useCallback)((function(){setTimeout((function(){var e=o?document.querySelector(o):v;e&&document.body.contains(e)&&e.focus(),o||(v=null)}))}),[o]),u=Object(f.a)(n);return Object(g.useEffect)((function(){return!0===u&&!1===n&&l(),function(){l()}}),[u,n,l]),i.createElement(m.a,c()({dialogActive:n},a))}!function(){function t(e){var t=e.target.closest("button, a, input");t&&!t.classList.contains("mdc-dialog__cancel-button")&&(v=t)}void 0!==e&&e.document&&!e._googlesitekitModalFocusTrackerInitialized&&(e.document.addEventListener("mousedown",t),e.document.addEventListener("keydown",(function(e){"Enter"!==e.key&&" "!==e.key||t(e)})),e._googlesitekitModalFocusTrackerInitialized=!0)}(),RefocusableModalDialog.propTypes=function(e){for(var t=1;t=3&&k(n,{skipHidingFromQueue:!0})}),[m,b,O,o,f,j,k,n]),e.createElement("section",{id:n,ref:p,className:i},a,!m&&e.createElement(s.a,{id:n,observeRef:p,threshold:.5}))}Notification.propTypes={id:a.a.string,className:a.a.string,gaTrackingEventArgs:a.a.shape({category:a.a.string,viewAction:a.a.string,label:a.a.string,value:a.a.string}),children:a.a.node,onView:a.a.func}}).call(this,n(3))},198:function(e,t,n){"use strict";(function(e){var i=n(18),r=n.n(i),o=n(19),a=n.n(o),c=n(56),l=n.n(c),s=n(57),u=n.n(s),d=n(85),g=n.n(d),f=n(86),p=n.n(f),m=n(59),b=n.n(m),v=n(0),h=n.n(v),O=n(10),y=n.n(O),j=n(1),k=n(328),E=n(329);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=b()(e);if(t){var r=b()(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return p()(this,n)}}var I=function(t){g()(Layout,t);var n=_(Layout);function Layout(){return l()(this,Layout),n.apply(this,arguments)}return u()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,i=t.footer,o=t.children,c=t.title,l=t.badge,s=t.headerCTALabel,u=t.headerCTALink,d=t.footerCTALabel,g=t.footerCTALink,f=t.footerContent,p=t.className,m=t.fill,b=t.relative,v=t.rounded,h=void 0!==v&&v,O=t.transparent,j=void 0!==O&&O,_=a()(t,["header","footer","children","title","badge","headerCTALabel","headerCTALink","footerCTALabel","footerCTALink","footerContent","className","fill","relative","rounded","transparent"]);return e.createElement("div",r()({className:y()("googlesitekit-layout",p,{"googlesitekit-layout--fill":m,"googlesitekit-layout--relative":b,"googlesitekit-layout--rounded":h,"googlesitekit-layout--transparent":j})},_),n&&e.createElement(k.a,{title:c,badge:l,ctaLabel:s,ctaLink:u}),o,i&&e.createElement(E.a,{ctaLabel:d,ctaLink:g,footerContent:f}))}}]),Layout}(j.Component);I.propTypes={header:h.a.bool,footer:h.a.bool,children:h.a.node.isRequired,title:h.a.string,badge:h.a.node,headerCTALabel:h.a.string,headerCTALink:h.a.string,footerCTALabel:h.a.string,footerCTALink:h.a.string,footerContent:h.a.node,className:h.a.string,fill:h.a.bool,relative:h.a.bool,rounded:h.a.bool,transparent:h.a.bool},I.defaultProps={header:!1,footer:!1,title:"",badge:null,headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=I}).call(this,n(3))},2:function(e,t){e.exports=googlesitekit.i18n},20:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return l}));var i=n(122),r="xlarge",o="desktop",a="tablet",c="small";function l(){var e=Object(i.a)();return e>1280?r:e>960?o:e>600?a:c}},201:function(e,t,n){"use strict";t.a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYwIiBoZWlnaHQ9IjIzNCIgdmlld0JveD0iMCAwIDM2MCAyMzQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+C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427),p=n(11);function ReportErrorButton(t){var n=t.message,i=t.componentStack,o=Object(s.useState)(!1),c=r()(o,2),l=c[0],m=c[1];return e.createElement(p.Button,{"aria-label":l?Object(u.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){a()("```\n".concat(n,"\n").concat(i,"\n```")),m(!0)},trailingIcon:e.createElement(d.a,{className:"mdc-button__icon",icon:l?g.a:f.a})},l?Object(u.__)("Copied to clipboard","google-site-kit"):Object(u.__)("Copy error contents","google-site-kit"))}ReportErrorButton.propTypes={message:l.a.string,componentStack:l.a.string},t.a=ReportErrorButton}).call(this,n(3))},209:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(14);function r(e){return Object(i.isFinite)(e)?e:0}},21:function(e,t,n){"use strict";var i=n(251);n.d(t,"i",(function(){return i.a}));var r=n(318);n.d(t,"f",(function(){return r.a}));var o=n(319);n.d(t,"h",(function(){return o.a}));var a=n(320);n.d(t,"j",(function(){return a.a}));var c=n(317);n.d(t,"g",(function(){return c.a}));var l=n(98),s=n.n(l);n.d(t,"b",(function(){return s.a})),n.d(t,"c",(function(){return l.DialogContent})),n.d(t,"d",(function(){return l.DialogFooter}));var u=n(114);n.d(t,"a",(function(){return u.a})),n.d(t,"e",(function(){return u.b})),n.d(t,"k",(function(){return u.c}))},215:function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;tHelp us improve Site Kit by sharing anonymous usage data. All collected data is treated in accordance with the Google Privacy Policy.","google-site-kit"),{a:e.createElement(h.a,{key:"link",href:"https://policies.google.com/privacy",external:!0}),span:e.createElement("span",null)})),(null==_?void 0:_.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==_?void 0:_.message))}OptIn.propTypes={id:l.a.string,name:l.a.string,className:l.a.string,trackEventCategory:l.a.string,alignLeftCheckbox:l.a.bool}}).call(this,n(3))},22:function(e,t,n){"use strict";(function(e){var i=n(18),r=n.n(i),o=n(19),a=n.n(o),c=n(10),l=n.n(c),s=n(0),u=n.n(s),d=n(165),g=n(1),f=n(2),p=n(137),m=n(138),b=n(139),v=n(75),h=n(84),O=Object(g.forwardRef)((function(t,n){var i=t["aria-label"],o=t.secondary,c=void 0!==o&&o,s=t.arrow,u=void 0!==s&&s,g=t.back,O=void 0!==g&&g,y=t.caps,j=void 0!==y&&y,k=t.children,E=t.className,_=void 0===E?"":E,I=t.danger,S=void 0!==I&&I,N=t.disabled,M=void 0!==N&&N,T=t.external,C=void 0!==T&&T,w=t.hideExternalIndicator,D=void 0!==w&&w,A=t.href,x=void 0===A?"":A,L=t.inverse,P=void 0!==L&&L,R=t.noFlex,z=void 0!==R&&R,B=t.onClick,U=t.small,H=void 0!==U&&U,G=t.standalone,F=void 0!==G&&G,V=t.linkButton,W=void 0!==V&&V,Y=t.to,Z=t.leadingIcon,X=t.trailingIcon,Q=a()(t,["aria-label","secondary","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inverse","noFlex","onClick","small","standalone","linkButton","to","leadingIcon","trailingIcon"]);var J=x||Y||!B?Y?"ROUTER_LINK":C?"EXTERNAL_LINK":"LINK":M?"BUTTON_DISABLED":"BUTTON";var K,q="BUTTON"===J||"BUTTON_DISABLED"===J?"button":"ROUTER_LINK"===J?d.b:"a",$=("EXTERNAL_LINK"===J&&(K=Object(f._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===J&&(K=Object(f._x)("(disabled)","screen reader text","google-site-kit")),K?i?"".concat(i," ").concat(K):"string"==typeof k?"".concat(k," ").concat(K):void 0:i),ee=Z,te=X;return O&&(ee=e.createElement(b.a,{width:14,height:14})),C&&!D&&(te=e.createElement(v.a,{width:14,height:14})),u&&!P&&(te=e.createElement(p.a,{width:14,height:14})),u&&P&&(te=e.createElement(m.a,{width:14,height:14})),e.createElement(q,r()({"aria-label":$,className:l()("googlesitekit-cta-link",_,{"googlesitekit-cta-link--secondary":c,"googlesitekit-cta-link--inverse":P,"googlesitekit-cta-link--small":H,"googlesitekit-cta-link--caps":j,"googlesitekit-cta-link--danger":S,"googlesitekit-cta-link--disabled":M,"googlesitekit-cta-link--standalone":F,"googlesitekit-cta-link--link-button":W,"googlesitekit-cta-link--no-flex":!!z}),disabled:M,href:"LINK"!==J&&"EXTERNAL_LINK"!==J||M?void 0:x,onClick:B,rel:"EXTERNAL_LINK"===J?"noopener noreferrer":void 0,ref:n,target:"EXTERNAL_LINK"===J?"_blank":void 0,to:Y},Q),!!ee&&e.createElement(h.a,{marginRight:5},ee),e.createElement("span",{className:"googlesitekit-cta-link__contents"},k),!!te&&e.createElement(h.a,{marginLeft:5},te))}));O.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,noFlex: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=O}).call(this,n(3))},220:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Item}));var i=n(0),r=n.n(i);function Item(t){var n=t.icon,i=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"},i))}Item.propTypes={icon:r.a.node,label:r.a.string}}).call(this,n(3))},223:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var i=n(15),r=n.n(i),o=n(0),a=n.n(o),c=n(438),l=n(537),s=n(1),u=n(4),d=n.n(u),g=n(224),f=n(225),p=n(67),m=n(226),b=n(228),v=n(229),h=n(69),O=n(172),y=n(184);function Root(t){var n=t.children,i=t.registry,o=t.viewContext,a=void 0===o?null:o,d=c.a,j=Object(s.useState)({key:"Root",value:!0}),k=r()(j,1)[0];return e.createElement(s.StrictMode,null,e.createElement(O.a,{value:k},e.createElement(u.RegistryProvider,{value:i},e.createElement(f.a,{value:p.a},e.createElement(h.a,{value:a},e.createElement(l.a,{theme:d()},e.createElement(g.a,null,e.createElement(b.a,null,n,a&&e.createElement(v.a,null)),Object(y.a)(a)&&e.createElement(m.a,null))))))))}Root.propTypes={children:a.a.node,registry:a.a.object,viewContext:a.a.string.isRequired},Root.defaultProps={registry:d.a}}).call(this,n(3))},224:function(e,t,n){"use strict";(function(e,i){var r=n(56),o=n.n(r),a=n(57),c=n.n(a),l=n(85),s=n.n(l),u=n(86),d=n.n(u),g=n(59),f=n.n(g),p=n(0),m=n.n(p),b=n(1),v=n(2),h=n(183),O=n(69),y=n(80),j=n(9);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=f()(e);if(t){var r=f()(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d()(this,n)}}var E=function(t){s()(ErrorHandler,t);var n=k(ErrorHandler);function ErrorHandler(e){var t;return o()(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(j.I)("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,r=t.info;return n?i.createElement(y.b,{notificationID:"googlesitekit-error",className:"googlesitekit-error-handler",type:"error",title:Object(v.__)("Site Kit encountered an error","google-site-kit"),description:i.createElement(b.Fragment,null,i.createElement(h.a,{message:n.message,componentStack:r.componentStack}),i.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,r.componentStack))}):e}}]),ErrorHandler}(b.Component);E.contextType=O.b,E.propTypes={children:m.a.node.isRequired},t.a=E}).call(this,n(27),n(3))},225:function(e,t,n){"use strict";var i=n(180),r=(i.a.Consumer,i.a.Provider);t.a=r},226:function(e,t,n){"use strict";(function(e){var i=n(4),r=n(227),o=n(7);t.a=function PermissionsModal(){return Object(i.useSelect)((function(e){return e(o.a).isAuthenticated()}))?e.createElement(r.a,null):null}}).call(this,n(3))},227:function(e,t,n){"use strict";(function(e,i){var r=n(6),o=n.n(r),a=n(16),c=n.n(a),l=n(2),s=n(1),u=n(4),d=n(171),g=n(39),f=n(40),p=n(7),m=n(128),b=n(82);t.a=function AuthenticatedPermissionsModal(){var t,n,r,a,v=Object(u.useRegistry)(),h=Object(u.useSelect)((function(e){return e(p.a).getPermissionScopeError()})),O=Object(u.useSelect)((function(e){return e(p.a).getUnsatisfiedScopes()})),y=Object(u.useSelect)((function(t){var n,i,r;return t(p.a).getConnectURL({additionalScopes:null==h||null===(n=h.data)||void 0===n?void 0:n.scopes,redirectURL:(null==h||null===(i=h.data)||void 0===i?void 0:i.redirectURL)||e.location.href,errorRedirectURL:null==h||null===(r=h.data)||void 0===r?void 0:r.errorRedirectURL})})),j=Object(u.useDispatch)(p.a).clearPermissionScopeError,k=Object(u.useDispatch)(f.a).navigateTo,E=Object(u.useDispatch)(g.a).setValues,_=Object(s.useCallback)((function(){j()}),[j]),I=Object(s.useCallback)(c()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(p.d,{permissionsError:h}),e.next=3,Object(m.c)(v);case 3:k(y);case 4:case"end":return e.stop()}}),e)}))),[v,y,k,h,E]);return Object(s.useEffect)((function(){function e(){return(e=c()(o.a.mark((function e(){var t,n,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==h||null===(t=h.data)||void 0===t?void 0:t.skipModal)||!(null==h||null===(n=h.data)||void 0===n||null===(i=n.scopes)||void 0===i?void 0:i.length)){e.next=3;break}return e.next=3,I();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[I,h]),h?(null==h||null===(t=h.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.length)?(null==h||null===(r=h.data)||void 0===r?void 0:r.skipModal)||O&&(null==h||null===(a=h.data)||void 0===a?void 0:a.scopes.every((function(e){return O.includes(e)})))?null:i.createElement(b.a,null,i.createElement(d.a,{title:Object(l.__)("Additional Permissions Required","google-site-kit"),subtitle:h.message,confirmButton:Object(l.__)("Proceed","google-site-kit"),handleConfirm:I,handleCancel:_,onClose:_,dialogActive:!0,medium:!0})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",h),null):null}}).call(this,n(27),n(3))},228:function(e,t,n){"use strict";var i=n(6),r=n.n(i),o=n(16),a=n.n(o),c=n(15),l=n.n(c),s=n(1),u=n(4),d=n(128);t.a=function RestoreSnapshots(e){var t=e.children,n=Object(u.useRegistry)(),i=Object(s.useState)(!1),o=l()(i,2),c=o[0],g=o[1];return Object(s.useEffect)((function(){c||a()(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.b)(n);case 2:g(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},229:function(e,t,n){"use strict";(function(e,i){n.d(t,"a",(function(){return FeatureTours}));var r=n(103),o=n(1),a=n(4),c=n(7),l=n(17),s=n(107);function FeatureTours(){var t=Object(l.a)(),n=Object(a.useDispatch)(c.a).triggerTourForView;Object(r.a)((function(){n(t)}));var u=Object(a.useSelect)((function(e){return e(c.a).getCurrentTour()}));return Object(o.useEffect)((function(){if(u){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()}}}}),[u]),u?i.createElement(s.a,{tourID:u.slug,steps:u.steps,gaEventCategory:u.gaEventCategory,callback:u.callback}):null}}).call(this,n(27),n(3))},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i="core/modules",r="insufficient_module_dependencies"},231:function(e,t,n){"use strict";(function(e){var i=n(15),r=n.n(i),o=n(0),a=n.n(o),c=n(10),l=n.n(c),s=n(581),u=n(2),d=n(1),g=n(4),f=n(253),p=n(271),m=n(7),b=n(21),v=n(275),h=n(284),O=n(286),y=n(37),j=n(62),k=n(22),E=n(292),_=n(247),I=n(54),S=n(13),N=n(298);function Header(t){var n,i=t.children,o=t.subHeader,a=t.showNavigation,c=!!Object(j.c)(),M=Object(y.a)();Object(N.a)();var T=Object(g.useSelect)((function(e){return e(S.c).getAdminURL("googlesitekit-dashboard")})),C=Object(g.useSelect)((function(e){return e(m.a).isAuthenticated()})),w=Object(s.a)({childList:!0}),D=r()(w,2),A=D[0],x=!!(null===(n=D[1].target)||void 0===n?void 0:n.childElementCount);return e.createElement(d.Fragment,null,e.createElement("header",{className:l()("googlesitekit-header",{"googlesitekit-header--has-subheader":x,"googlesitekit-header--has-navigation":a})},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(k.a,{"aria-label":Object(u.__)("Go to dashboard","google-site-kit"),className:"googlesitekit-header__logo-link",href:T},e.createElement(f.a,null))),e.createElement(b.a,{smSize:3,mdSize:6,lgSize:8,className:"googlesitekit-header__children",alignMiddle:!0},i,!C&&c&&M&&e.createElement(O.a,null),C&&!M&&e.createElement(p.a,null))))),e.createElement("div",{className:"googlesitekit-subheader",ref:A},o),a&&e.createElement(v.a,null),e.createElement(h.a,null),e.createElement(E.a,null),e.createElement(_.a,{areaSlug:I.c.HEADER}))}Header.displayName="Header",Header.propTypes={children:a.a.node,subHeader:a.a.element,showNavigation:a.a.bool},Header.defaultProps={children:null,subHeader:null},t.a=Header}).call(this,n(3))},232:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return HelpMenu}));var i=n(15),r=n.n(i),o=n(0),a=n.n(o),c=n(214),l=n(1),s=n(61),u=n(2),d=n(4),g=n(11),f=n(299),p=n(126),m=n(9),b=n(176),v=n(23),h=n(17),O=n(13),y=n(88);function HelpMenu(t){var n=t.children,i=Object(l.useState)(!1),o=r()(i,2),a=o[0],j=o[1],k=Object(l.useRef)(),E=Object(h.a)();Object(c.a)(k,(function(){return j(!1)})),Object(p.a)([s.c,s.f],k,(function(){return j(!1)}));var _=Object(d.useSelect)((function(e){return e(v.a).isModuleActive(y.d)})),I=Object(l.useCallback)((function(){a||Object(m.I)("".concat(E,"_headerbar"),"open_helpmenu"),j(!a)}),[a,E]),S=Object(l.useCallback)((function(){j(!1)}),[]),N=Object(d.useSelect)((function(e){return e(O.c).getDocumentationLinkURL("fix-common-issues")}));return e.createElement("div",{ref:k,className:"googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},e.createElement(g.Button,{"aria-controls":"googlesitekit-help-menu","aria-expanded":a,"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(f.a,{width:"20",height:"20"}),onClick:I,tooltipEnterDelayInMS:500,text:!0}),e.createElement(g.Menu,{className:"googlesitekit-width-auto",menuOpen:a,id:"googlesitekit-help-menu",onSelected:S},n,e.createElement(b.a,{gaEventLabel:"fix_common_issues",href:N},Object(u.__)("Fix common issues","google-site-kit")),e.createElement(b.a,{gaEventLabel:"documentation",href:"https://sitekit.withgoogle.com/documentation/"},Object(u.__)("Read help docs","google-site-kit")),e.createElement(b.a,{gaEventLabel:"support_forum",href:"https://wordpress.org/support/plugin/google-site-kit/"},Object(u.__)("Get support","google-site-kit")),_&&e.createElement(b.a,{gaEventLabel:"adsense_help",href:"https://support.google.com/adsense/"},Object(u.__)("Get help with AdSense","google-site-kit"))))}HelpMenu.propTypes={children:a.a.node}}).call(this,n(3))},239:function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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 o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nSign in to connect more services and control sharing access.","google-site-kit"),{strong:e.createElement("strong",null)}):Object(l.a)(Object(s.__)("You can see stats from all shared Google services, but you can't make any changes. Learn more","google-site-kit"),{a:e.createElement(v.a,{href:o,onClick:k,"aria-label":Object(s.__)("Learn more about dashboard sharing","google-site-kit"),external:!0})});return e.createElement("li",{className:"googlesitekit-view-only-menu__list-item googlesitekit-view-only-menu__description"},e.createElement(g.a,null,E),n&&e.createElement(d.Button,{onClick:j},Object(s._x)("Sign in with Google","Service name","google-site-kit")))}}).call(this,n(3))},289:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SharedServices}));var i=n(2),r=n(4),o=n(7),a=n(290),c=n(30);function SharedServices(){var t=Object(r.useSelect)((function(e){return e(o.a).getViewableModules()}));return void 0===t?null:e.createElement("li",{className:"googlesitekit-view-only-menu__list-item"},e.createElement(c.a,{as:"h4",size:"large",type:"title"},Object(i.__)("Shared services","google-site-kit")),e.createElement("ul",null,t.map((function(t){return e.createElement(a.a,{key:t,module:t})}))))}}).call(this,n(3))},290:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Service}));var i=n(0),r=n.n(i),o=n(44),a=n(2),c=n(4),l=n(23),s=n(7);function Service(t){var n=t.module,i=Object(c.useSelect)((function(e){return e(s.a).hasCapability(s.H)})),r=Object(c.useSelect)((function(e){return e(l.a).getModule(n)||{}})),u=r.name,d=r.owner,g=Object(c.useSelect)((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"},u),i&&(null==d?void 0:d.login)&&e.createElement("span",{className:"googlesitekit-view-only-menu__service--owner"},Object(o.a)(Object(a.sprintf)(/* translators: %s: module owner Google Account email address */ Object(a.__)("Shared by %s","google-site-kit"),d.login),{strong:e.createElement("strong",{title:d.login})})))}Service.propTypes={module:r.a.string.isRequired}}).call(this,n(3))},291:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Tracking}));var i=n(44),r=n(2),o=n(217),a=n(17),c=n(33);function Tracking(){var t=Object(a.a)();return e.createElement("li",{className:"googlesitekit-view-only-menu__list-item"},e.createElement(c.a,null,Object(i.a)(Object(r.__)("Thanks for using Site Kit!
Help us make it even better","google-site-kit"),{br:e.createElement("br",null)})),e.createElement(o.a,{trackEventCategory:"".concat(t,"_headerbar_viewonly"),alignCheckboxLeft:!0}))}}).call(this,n(3))},292:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return LegacyNotifications}));var i=n(1),r=n(4),o=n(7),a=n(293),c=n(37),l=n(62),s=n(295);function LegacyNotifications(){var t=Object(c.a)(),n=Object(l.c)(),u=Object(r.useSelect)((function(e){return e(o.a).isAuthenticated()}));return e.createElement(i.Fragment,null,e.createElement(s.a,null),!t&&n===l.b&&u&&e.createElement(a.a,null))}}).call(this,n(3))},293:function(e,t,n){"use strict";(function(e){var i=n(15),r=n.n(i),o=n(1),a=n(4),c=n(13),l=n(7),s=n(45),u=n(54),d=n(294);t.a=function CoreSiteBannerNotifications(){var t=Object(o.useState)(!1),n=r()(t,2),i=n[0],g=n[1],f=Object(o.useState)(!1),p=r()(f,2),m=p[0],b=p[1],v=Object(o.useRef)(Date.now()),h=Object(a.useSelect)((function(e){return e(c.c).isUsingProxy()&&!1===e(l.a).areSurveysOnCooldown()?e(l.a).getCurrentSurvey():null})),O=Object(o.useState)([]),y=r()(O,2),j=y[0],k=y[1],E=Object(a.useDispatch)(s.a).registerNotification,_=Object(a.useSelect)((function(e){return e(c.c).getNotifications()}));return Object(o.useEffect)((function(){var e=setTimeout((function(){m||g(!0)}),5e3);return function(){clearTimeout(e)}}),[m]),Object(o.useEffect)((function(){Math.floor((Date.now()-v.current)/1e3)<5&&h&&b(!0)}),[v,h,b]),Object(o.useEffect)((function(){i&&!m&&(null==_||_.forEach((function(t){j.includes(t.id)||(E(t.id,{Component:function Component(n){var i=n.Notification;return e.createElement(i,null,e.createElement(d.a,t))},priority:t.priority,areaSlug:u.c.HEADER,isDismissible:t.dismissible}),k((function(e){return e.push(t.id),e})))})))}),[m,_,E,j,i]),null}}).call(this,n(3))},294:function(e,t,n){"use strict";(function(e){var i=n(18),r=n.n(i),o=n(19),a=n.n(o),c=n(0),l=n.n(c),s=n(2),u=n(1),d=n(4),g=n(13),f=n(256);function CoreSiteBannerNotification(t){var n=t.id,i=a()(t,["id"]),o=Object(d.useDispatch)(g.c),c=o.dismissNotification,l=o.acceptNotification,s=Object(u.useCallback)((function(){l(n)}),[n,l]),p=Object(u.useCallback)((function(){c(n)}),[n,c]);return e.createElement(f.a,r()({onCTAClick:s,onDismissClick:p},i,{id:n}))}CoreSiteBannerNotification.propTypes={content:l.a.string,ctaLabel:l.a.string,ctaTarget:l.a.string,ctaURL:l.a.string,dismissLabel:l.a.string,dismissible:l.a.bool,id:l.a.string.isRequired,learnMoreLabel:l.a.string,learnMoreURL:l.a.string,title:l.a.string.isRequired},CoreSiteBannerNotification.defaultProps={content:"",ctaLabel:"",ctaTarget:"",ctaURL:"",dismissLabel:Object(s.__)("OK, Got it!","google-site-kit"),dismissible:!0,learnMoreLabel:"",learnMoreURL:""},t.a=CoreSiteBannerNotification}).call(this,n(3))},295:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var i=n(4),r=n(13),o=n(80),a=n(197);function InternalServerError(){var t=Object(i.useSelect)((function(e){return e(r.c).getInternalServerError()}));return t?e.createElement(a.a,{id:"internal-server-error"},e.createElement(o.b,{notificationID:"internal-server-error",type:o.a.ERROR,title:t.title,description:t.description})):null}}).call(this,n(3))},296:function(e,t,n){"use strict";n.d(t,"a",(function(){return ViewedStateObserver}));var i=n(0),r=n.n(i),o=n(1),a=n(4),c=n(26),l=n(45),s=n(246),u=n(173);function ViewedStateObserver(e){var t=e.id,n=e.observeRef,i=e.threshold,r=Object(s.a)(n,{threshold:i}),d=Object(a.useDispatch)(c.b).setValue,g=Object(a.useDispatch)(l.a).markNotificationSeen,f=!!(null==r?void 0:r.isIntersecting),p=Object(u.a)(t),m=Object(o.useRef)();function b(){m.current&&clearTimeout(m.current)}return Object(o.useEffect)((function(){return!p&&f?(b(),m.current=setTimeout((function(){(null==r?void 0:r.isIntersecting)&&(d(u.a.getKey(t),!0),g(t))}),3e3)):!f&&m.current&&b(),function(){b()}}),[p,f,d,g,t,r]),null}ViewedStateObserver.propTypes={id:r.a.string,observeRef:r.a.object,threshold:r.a.number}},297:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var i=n(18),r=n.n(i),o=n(68),a=n.n(o),c=n(197),l=a()((function(e){return{id:e,Notification:s(e)(c.a)}}));function s(t){return function(n){function WithNotificationID(i){return e.createElement(n,r()({},i,{id:t}))}return WithNotificationID.displayName="WithNotificationID",(n.displayName||n.name)&&(WithNotificationID.displayName+="(".concat(n.displayName||n.name,")")),WithNotificationID}}}).call(this,n(3))},298:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n(6),r=n.n(i),o=n(16),a=n.n(o),c=n(1),l=n(4),s=n(13),u=n(17),d=n(48),g=n(9);function f(){var e=Object(u.a)(),t=Object(l.useSelect)((function(e){return e(s.c).isUsingProxy()})),n=Object(l.useSelect)((function(e){return e(s.c).getSetupErrorMessage()}));Object(c.useEffect)((function(){function i(){return(i=a()(r.a.mark((function n(){var i,o;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(d.d)("start_user_setup");case 2:return i=n.sent,n.next=5,Object(d.d)("start_site_setup");case 5:if(o=n.sent,!i.cacheHit){n.next=10;break}return n.next=9,Object(d.c)("start_user_setup");case 9:Object(g.I)("".concat(e,"_setup"),"complete_user_setup",t?"proxy":"custom-oauth");case 10:if(!o.cacheHit){n.next=14;break}return n.next=13,Object(d.c)("start_site_setup");case 13:Object(g.I)("".concat(e,"_setup"),"complete_site_setup",t?"proxy":"custom-oauth");case 14:case"end":return n.stop()}}),n)})))).apply(this,arguments)}n||void 0===t||function(){i.apply(this,arguments)}()}),[e,t,n])}},299:function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t0&&e.createElement("p",{className:"googlesitekit-selection-panel-items__subheading"},a)),h>0&&e.createElement("div",{className:"googlesitekit-selection-panel-items__subsection"},v(p)),b)}SelectionPanelItems.propTypes={currentSelectionTitle:a.a.string,availableItemsTitle:a.a.string,savedItemSlugs:a.a.array,availableSavedItems:a.a.object,availableUnsavedItems:a.a.object,ItemComponent:a.a.elementType,notice:a.a.node}}).call(this,n(3))},316:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanelFooter}));var i=n(6),r=n.n(i),o=n(16),a=n.n(o),c=n(15),l=n.n(c),s=n(14),u=n(0),d=n.n(u),g=n(1),f=n(44),p=n(2),m=n(4),b=n(11),v=n(72),h=n(9),O=n(8),y=n(51),j=n(34);function SelectionPanelFooter(t){var n=t.savedItemSlugs,i=void 0===n?[]:n,o=t.selectedItemSlugs,c=void 0===o?[]:o,u=t.saveSettings,d=void 0===u?function(){}:u,k=t.saveError,E=t.itemLimitError,_=t.minSelectedItemCount,I=void 0===_?0:_,S=t.maxSelectedItemCount,N=void 0===S?0:S,M=t.isBusy,T=t.onSaveSuccess,C=void 0===T?function(){}:T,w=t.onCancel,D=void 0===w?function(){}:w,A=t.isOpen,x=t.closePanel,L=void 0===x?function(){}:x,P=Object(g.useState)(null),R=l()(P,2),z=R[0],B=R[1],U=Object(g.useState)(!1),H=l()(U,2),G=H[0],F=H[1],V=Object(m.useSelect)((function(e){return e(O.r).isFetchingSyncAvailableAudiences()})),W=Object(g.useMemo)((function(){return!Object(s.isEqual)(Object(h.E)(c),Object(h.E)(i))}),[i,c]),Y=(null==i?void 0:i.length)>0&&W?Object(p.__)("Apply changes","google-site-kit"):Object(p.__)("Save selection","google-site-kit"),Z=Object(g.useCallback)(a()(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(c);case 2:t=e.sent,t.error||(C(),L(),B(Y),F(!0));case 5:case"end":return e.stop()}}),e)}))),[d,c,C,L,Y]),X=Object(g.useCallback)((function(){L(),D()}),[L,D]),Q=Object(g.useState)(null),J=l()(Q,2),K=J[0],q=J[1];Object(g.useEffect)((function(){null!==K&&K!==A&&A&&(B(null),F(!1)),q(A)}),[A,K]);var $=(null==c?void 0:c.length)||0,ee=V?e.createElement(y.a,{width:"89px",height:"20px"}):e.createElement("p",{className:"googlesitekit-selection-panel-footer__item-count"},Object(f.a)(Object(p.sprintf)(/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ Object(p.__)("%1$d selected (up to %2$d)","google-site-kit"),$,N),{MaxCount:e.createElement("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})}));return e.createElement("footer",{className:"googlesitekit-selection-panel-footer"},k&&e.createElement(v.a,{error:k}),e.createElement("div",{className:"googlesitekit-selection-panel-footer__content"},W&&E?e.createElement(j.a,{type:j.a.TYPES.ERROR,description:E}):ee,e.createElement("div",{className:"googlesitekit-selection-panel-footer__actions"},e.createElement(b.Button,{onClick:X,disabled:M,tertiary:!0},Object(p.__)("Cancel","google-site-kit")),e.createElement(b.SpinnerButton,{onClick:Z,isSaving:M,disabled:$N||M||!A&&G},z||Y))))}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(3))},325:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanel}));var i=n(10),r=n.n(i),o=n(0),a=n.n(o),c=n(326);function SelectionPanel(t){var n=t.children,i=t.isOpen,o=t.isLoading,a=t.onOpen,l=t.closePanel,s=t.className,u=null==s?void 0:s.split(/\s+/).map((function(e){return".".concat(e)})).join(""),d=u?"".concat(u," .googlesitekit-selection-panel-item .googlesitekit-selection-box input"):".googlesitekit-selection-panel-item .googlesitekit-selection-box input";return e.createElement(c.a,{className:r()("googlesitekit-selection-panel",s),isOpen:i,isLoading:o,onOpen:a,closeSheet:l,focusTrapOptions:{initialFocus:d}},n)}SelectionPanel.propTypes={children:a.a.node,isOpen:a.a.bool,isLoading:a.a.bool,onOpen:a.a.func,closePanel:a.a.func,className:a.a.string}}).call(this,n(3))},326:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SideSheet}));var i=n(5),r=n.n(i),o=n(10),a=n.n(o),c=n(410),l=n.n(c),s=n(0),u=n.n(s),d=n(214),g=n(381),f=n(1),p=n(61),m=n(82);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function v(e){for(var t=1;t1&&i.length>0)return r}return t})),ie=Object(h.useSelect)((function(e){return X?e(k.r).getKeyMetricsConversionEventWidgets():[]})),re=Object(m.useCallback)((function(){var e,t,n,i=null===(e=o.current)||void 0===e?void 0:e.querySelector(".mdc-tab-scroller__scroll-content");if(G){var r=null===(t=o.current)||void 0===t?void 0:t.querySelectorAll(".googlesitekit-chip-tab-group__tab-items .mdc-tab");if((null==r?void 0:r.length)&&i){var a=null===(n=o.current)||void 0===n?void 0:n.getBoundingClientRect(),c=[];r.forEach((function(e,t){var n=e.getBoundingClientRect();n.left>=a.left&&n.right<=a.right&&c.push(t)}));var l=r[c.length];if(l){var s=l.getBoundingClientRect();(s.left>=a.right||s.left-a.right<0&&-(s.left-a.right)<=20)&&("2px"===i.style.columnGap?i.style.columnGap="20px":i.style.columnGap="2px",re())}}}}),[G]),oe=g()({},y.c.SLUG,0),ae={},ce={},le=function(e){var t,i=n[e].group;if((i===d||d===y.c.SLUG&&V.includes(e))&&(ae[e]=n[e]),d===y.g.SLUG&&J.includes(e)&&J.includes(e)&&(ae[e]=n[e]),!oe[i]){var r=Object.keys(n).filter((function(e){return!(n[e].group!==i||!(null==F?void 0:F.includes(e)))})).length;oe[i]=r}(null==ne?void 0:ne.length)&&(ne.some((function(t){return ie[t].includes(e)}))&&(ce[i]=[].concat(l()(null!==(t=ce[i])&&void 0!==t?t:[]),[e])))};for(var se in n)le(se);var ue=Object(h.useDispatch)(j.a).setValues,de=Object(m.useCallback)((function(){var e;ue(y.j,(e={},g()(e,y.i,F),g()(e,y.a,[].concat(l()(V),l()(W))),g()(e,y.o,[]),e))}),[F,V,W,ue]),ge=Object(m.useCallback)((function(e,t){if(e)D(e);else{var n=te[t];H(t),D(n.SLUG)}W.length&&de()}),[te,W,D,de]),fe=Object(h.useSelect)((function(e){return e(_.b).getValue(y.k)})),pe=Object(b.a)(fe),me=Object.keys(ce);Object(m.useEffect)((function(){if(!pe&&fe)if(D(y.c.SLUG),H(0),me.length&&G){var e=te.find((function(e){return e.SLUG===me[0]}));H(te.indexOf(e)),D(e.SLUG)}else H(0),D(y.c.SLUG);pe&&!fe&&de(),!pe&&fe&&re()}),[fe,pe,W,te,G,me,de,re]);var be=Object(w.a)(re,50);Object(f.a)((function(){e.addEventListener("resize",be)})),Object(p.a)((function(){return e.removeEventListener("resize",be)}));var ve=[[].concat(l()(ee),l()($.slice(0,2))),l()($.slice(2))];return i.createElement("div",{className:"googlesitekit-chip-tab-group"},i.createElement("div",{className:"googlesitekit-chip-tab-group__tab-items",ref:o},!G&&ve.map((function(e){return i.createElement("div",{key:"row-".concat(e[0].SLUG),className:"googlesitekit-chip-tab-group__tab-items-row"},e.map((function(e){return i.createElement(N.a,{key:e.SLUG,slug:e.SLUG,label:e.LABEL,hasNewBadge:!!(null==ce?void 0:ce[e.SLUG]),isActive:e.SLUG===d,onClick:ge,selectedCount:oe[e.SLUG]})})))})),G&&i.createElement(O.TabBar,{activeIndex:U,handleActiveIndexUpdate:function(e){return ge(null,e)}},te.map((function(e,t){var n=R[e.SLUG]||x.a;return i.createElement(O.Tab,{key:t,"aria-label":e.LABEL},i.createElement(n,{width:12,height:12,className:"googlesitekit-chip-tab-group__chip-item-svg googlesitekit-chip-tab-group__tab-item-mobile-svg googlesitekit-chip-tab-group__chip-item-svg__".concat(e.SLUG)}),e.LABEL,oe[e.SLUG]>0&&i.createElement("span",{className:"googlesitekit-chip-tab-group__chip-item-count"},"(",oe[e.SLUG],")"),!!(null==ce?void 0:ce[e.SLUG])&&i.createElement("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"}))})))),i.createElement("div",{className:"googlesitekit-chip-tab-group__tab-item"},Object.keys(ae).map((function(e){var t,n=ae[e].group,o=null==ce||null===(t=ce[n])||void 0===t?void 0:t.includes(e);return i.createElement(M.a,a()({key:e,slug:e,savedItemSlugs:r,isNewlyDetected:o},ae[e]))})),!Object.keys(ae).length&&i.createElement("div",{className:"googlesitekit-chip-tab-group__graphic"},i.createElement(T.a,{height:250}),i.createElement(P.a,null,Object(v.__)("No metrics were selected yet","google-site-kit")))))}}).call(this,n(27),n(3))},368:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Chip}));var i,r=n(5),o=n.n(r),a=n(0),c=n.n(a),l=n(10),s=n.n(l),u=n(11),d=n(25),g=n(215),f=n(96),p=n(113),m=(i={},o()(i,d.c.SLUG,g.a),o()(i,d.g.SLUG,f.a),i);function Chip(t){var n=t.slug,i=t.label,r=t.isActive,o=t.onClick,a=t.hasNewBadge,c=void 0!==a&&a,l=t.selectedCount,d=void 0===l?0:l,g=m[n]||p.a;return e.createElement(u.Button,{className:s()("googlesitekit-chip-tab-group__chip-item",{"googlesitekit-chip-tab-group__chip-item--active":r}),icon:e.createElement(g,{width:12,height:12,className:"googlesitekit-chip-tab-group__chip-item-svg googlesitekit-chip-tab-group__chip-item-svg__".concat(n)}),trailingIcon:d>0?e.createElement("span",{className:"googlesitekit-chip-tab-group__chip-item-count"},"(",d,")"):null,onClick:function(){return o(n)}},i,c&&e.createElement("span",{className:"googlesitekit-chip-tab-group__chip-item-new-dot"}))}Chip.propTypes={slug:c.a.string.isRequired,label:c.a.string.isRequired,isActive:c.a.bool,hasNewBadge:c.a.bool,selectedCount:c.a.number,onClick:c.a.func.isRequired}}).call(this,n(3))},369:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricItem}));var i=n(5),r=n.n(i),o=n(29),a=n.n(o),c=n(0),l=n.n(c),s=n(1),u=n(2),d=n(4),g=n(39),f=n(55),p=n(23),m=n(25),b=n(129),v=n(42);function MetricItem(t){var n=t.slug,i=t.title,o=t.description,c=t.isNewlyDetected,l=t.savedItemSlugs,h=void 0===l?[]:l,O=Object(d.useSelect)((function(e){var t=e(p.a).getModule,i=e(f.a).getWidget(n);return null==i?void 0:i.modules.reduce((function(e,n){var i=t(n);return(null==i?void 0:i.connected)||!(null==i?void 0:i.name)?e:[].concat(a()(e),[i.name])}),[])})),y=Object(v.a)(m.j,m.i),j=Object(d.useSelect)((function(e){return e(g.a)})).getValue,k=Object(d.useDispatch)(g.a).setValues,E=Object(s.useCallback)((function(e){var t,i=j(m.j,m.i),o=e.target.checked?i.concat([n]):i.filter((function(e){return e!==n}));k(m.j,(t={},r()(t,m.i,o),r()(t,m.o,o),t))}),[j,k,n]),_=null==y?void 0:y.includes(n),I=!h.includes(n)&&O.length>0,S="key-metric-selection-checkbox-".concat(n);return e.createElement(b.c,{id:S,slug:n,title:i,description:o,isNewlyDetected:c,isItemSelected:_,isItemDisabled:I,onCheckboxChange:E},O.length>0&&e.createElement("div",{className:"googlesitekit-selection-panel-item-error"},Object(u.sprintf)(/* translators: %s: module names. */ Object(u._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",O.length,"google-site-kit"),O.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(3))},37:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(24),r=n(17);function o(){var e=Object(r.a)();return i.g.includes(e)}},370:function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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 o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n2&&void 0!==m[2]?m[2]:{},a=o.ttl,l=void 0===a?c.b:a,s=o.timestamp,u=void 0===s?Math.round(Date.now()/1e3):s,d=o.isError,f=void 0!==d&&d,t.next=3,v();case 3:if(!(p=t.sent)){t.next=14;break}return t.prev=5,p.setItem("".concat(g).concat(n),JSON.stringify({timestamp:u,ttl:l,value:i,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]])})))).apply(this,arguments)}function E(e){return _.apply(this,arguments)}function _(){return(_=a()(r.a.mark((function t(n){var i,o;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(i=t.sent)){t.next=14;break}return t.prev=4,o=n.startsWith(d)?n:"".concat(g).concat(n),i.removeItem(o),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]])})))).apply(this,arguments)}function I(){return S.apply(this,arguments)}function S(){return(S=a()(r.a.mark((function t(){var n,i,o,a;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:o;return t instanceof Set&&t.has(e)}}).call(this,n(27))},670:function(e,t,n){"use strict";(function(e,i){var r=n(2),o=n(249),a=n(1),c=n(4),l=n(7),s=n(8),u=n(28),d=n(25),g=n(156),f=n(548),p=n(65),m=n(42),b=n(33);t.a=Object(p.a)({moduleName:u.g})((function CustomDimensionsNotice(){var t=Object(m.a)(d.j,d.i),n=null==t?void 0:t.flatMap((function(e){var t=g.a[e];return(null==t?void 0:t.requiredCustomDimensions)||[]})),u=Object(c.useInViewSelect)((function(e){return!!(null==n?void 0:n.length)&&!e(s.r).hasCustomDimensions(n)}),[n]),p=Object(c.useInViewSelect)((function(e){return e(l.a).hasScope(s.h)}));Object(c.useInViewSelect)((function(e){return e(s.r).getAvailableCustomDimensions()}));var v=Object(o.a)(u),h=Object(a.useRef)();if(Object(a.useEffect)((function(){if(u&&!1===v){var t=e.document.activeElement;t&&t.closest(".googlesitekit-selection-panel-item")&&Object(f.a)(h.current,t)&&t.scrollIntoView()}}),[u,v]),!1===u)return null;var O=p?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 i.createElement("div",{className:"googlesitekit-selection-panel-notice",ref:h},i.createElement(b.a,null,O))}))}).call(this,n(27),n(3))},671:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Header}));var i=n(0),r=n.n(i),o=n(1),a=n(44),c=n(2),l=n(4),s=n(40),u=n(13),d=n(7),g=n(25),f=n(22),p=n(129),m=n(37),b=n(33);function Header(t){var n=t.closePanel,i=Object(m.a)(),r=Object(l.useSelect)((function(e){return e(u.c).getSiteKitAdminSettingsURL()})),v=Object(l.useSelect)((function(e){return e(d.a).isSavingKeyMetricsSettings()})),h=Object(l.useDispatch)(s.a).navigateTo,O=Object(o.useCallback)((function(){return h(r)}),[r,h]);return e.createElement(p.b,{title:Object(c.sprintf)(/* translators: %d: number of max allowed metrics */ Object(c.__)("Select up to %d metrics","google-site-kit"),g.m),onCloseClick:n},!i&&e.createElement(b.a,null,Object(a.a)(Object(c.__)("Edit your personalized goals or deactivate this widget in Settings","google-site-kit"),{link:e.createElement(f.a,{onClick:O,disabled:v,secondary:!0}),strong:e.createElement("strong",null)})))}Header.propTypes={closePanel:r.a.func.isRequired}}).call(this,n(3))},672:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Footer}));var i=n(6),r=n.n(i),o=n(16),a=n.n(o),c=n(14),l=n(0),s=n.n(l),u=n(1),d=n(2),g=n(4),f=n(7),p=n(39),m=n(40),b=n(23),v=n(13),h=n(25),O=n(8),y=n(28),j=n(156),k=n(36),E=n(17),_=n(128),I=n(9),S=n(673),N=n(42);function Footer(t){var n=t.isOpen,i=t.closePanel,o=void 0===i?c.noop:i,l=t.savedMetrics,s=t.onNavigationToOAuthURL,M=void 0===s?function(){}:s,T=t.isFullScreen,C=void 0!==T&&T,w=Object(g.useRegistry)(),D=Object(E.a)(),A=Object(N.a)(h.j,h.i),x=Object(g.useSelect)((function(e){return e(f.a).isSavingKeyMetricsSettings()})),L="".concat(D,"_kmw-sidebar"),P=null==A?void 0:A.flatMap((function(e){var t=j.a[e];return(null==t?void 0:t.requiredCustomDimensions)||[]})),R=Object(g.useInViewSelect)((function(e){return!!(null==P?void 0:P.length)&&!e(O.r).hasCustomDimensions(P)}),[P]),z=Object(g.useInViewSelect)((function(e){return e(f.a).hasScope(O.h)})),B=Object(g.useSelect)((function(e){return e(b.a).isModuleConnected(y.g)})),U=Object(g.useSelect)((function(e){return e(v.c).getAdminURL("googlesitekit-dashboard",{notification:"custom_dimensions"})})),H=Object(g.useSelect)((function(e){var t=e(f.a).getConnectURL({additionalScopes:[O.h],redirectURL:U});return!!t&&e(m.a).isNavigatingTo(t)})),G=Object(g.useSelect)((function(e){return e(v.c).getAdminURL("googlesitekit-dashboard")})),F=Object(g.useSelect)((function(e){return!!G&&e(m.a).isNavigatingTo(G)})),V=Object(g.useDispatch)(f.a),W=V.saveKeyMetricsSettings,Y=V.setPermissionScopeError,Z=Object(g.useDispatch)(p.a).setValues,X=Object(g.useDispatch)(m.a).navigateTo,Q=Object(g.useSelect)((function(e){return e(O.r).getKeyMetricsConversionEventWidgets()})),J=Object(u.useCallback)(function(){var e=a()(r.a.mark((function e(t){var n,i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W({widgetSlugs:t});case 2:return n=e.sent,i=n.error,e.abrupt("return",{error:i});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[W]),K=Object(u.useCallback)(function(){var e=a()(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object.values(Q).flat().some((function(e){return t.includes(e)}))?Object(I.I)(L,"metrics_sidebar_save","conversion_reporting"):Object(I.I)(L,"metrics_sidebar_save"),!B||!R){e.next=12;break}if(Z(O.n,{autoSubmit:!0}),z){e.next=9;break}return M(),o(),Y({code:k.a,message:Object(d.__)("Additional permissions are required to create new Analytics custom dimensions","google-site-kit"),data:{status:403,scopes:[O.h],skipModal:!0,redirectURL:U}}),e.abrupt("return");case 9:if(!C){e.next=12;break}return e.next=12,Object(_.c)(w);case 12:C&&X(G);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[Q,B,R,C,L,Z,z,M,o,Y,U,w,X,G]),q=Object(u.useCallback)((function(){Object(I.I)(L,"metrics_sidebar_cancel"),C&&X(G)}),[C,G,X,L]);return e.createElement(S.a,{savedItemSlugs:l,selectedItemSlugs:A,saveSettings:J,minSelectedItemCount:h.n,maxSelectedItemCount:h.m,isBusy:x||H||F&&C,onSaveSuccess:function(){K(A)},onCancel:q,isOpen:n,closePanel:o,isFullScreen:C})}Footer.propTypes={isOpen:s.a.bool,closePanel:s.a.func,savedMetrics:s.a.array,onNavigationToOAuthURL:s.a.func,isFullScreen:s.a.bool}}).call(this,n(3))},673:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanelFooter}));var i=n(6),r=n.n(i),o=n(16),a=n.n(o),c=n(15),l=n.n(c),s=n(14),u=n(0),d=n.n(u),g=n(1),f=n(44),p=n(2),m=n(4),b=n(11),v=n(9),h=n(8),O=n(51);function SelectionPanelFooter(t){var n=t.savedItemSlugs,i=void 0===n?[]:n,o=t.selectedItemSlugs,c=void 0===o?[]:o,u=t.saveSettings,d=void 0===u?function(){}:u,y=t.minSelectedItemCount,j=void 0===y?0:y,k=t.maxSelectedItemCount,E=void 0===k?0:k,_=t.isBusy,I=t.onSaveSuccess,S=void 0===I?function(){}:I,N=t.onCancel,M=void 0===N?function(){}:N,T=t.isOpen,C=t.closePanel,w=void 0===C?function(){}:C,D=t.isFullScreen,A=void 0!==D&&D,x=Object(g.useState)(null),L=l()(x,2),P=L[0],R=L[1],z=Object(g.useState)(!1),B=l()(z,2),U=B[0],H=B[1],G=Object(m.useSelect)((function(e){return e(h.r).isFetchingSyncAvailableAudiences()})),F=Object(g.useMemo)((function(){return!Object(s.isEqual)(Object(v.E)(c),Object(v.E)(i))}),[i,c]),V=(null==i?void 0:i.length)>0&&F?Object(p.__)("Apply changes","google-site-kit"):Object(p.__)("Save selection","google-site-kit");A&&(V=Object(p.__)("Complete setup","google-site-kit"));var W=Object(g.useCallback)(a()(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(c);case 2:t=e.sent,t.error||(S(),w(),A||(R(V),H(!0)));case 5:case"end":return e.stop()}}),e)}))),[d,c,S,w,A,V]),Y=Object(g.useCallback)((function(){w(),M()}),[w,M]),Z=Object(g.useState)(null),X=l()(Z,2),Q=X[0],J=X[1];Object(g.useEffect)((function(){null!==Q&&Q!==T&&T&&(R(null),H(!1)),J(T)}),[T,Q]);var K=(null==c?void 0:c.length)||0,q=G?e.createElement(O.a,{width:"89px",height:"20px"}):e.createElement("p",{className:"googlesitekit-selection-panel-footer__item-count"},Object(f.a)(Object(p.sprintf)(/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */ Object(p.__)("%1$d selected (up to %2$d)","google-site-kit"),K,E),{MaxCount:e.createElement("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})}));return e.createElement("footer",{className:"googlesitekit-selection-panel-footer"},e.createElement("div",{className:"googlesitekit-selection-panel-footer__content"},e.createElement("div",{className:"googlesitekit-selection-panel-footer__actions"},e.createElement(b.Button,{onClick:Y,disabled:_,tertiary:!0},Object(p.__)("Cancel","google-site-kit")),q,e.createElement(b.SpinnerButton,{onClick:W,isSaving:_,disabled:KE||_||!T&&U},P||V))))}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,isFullScreen:d.a.bool}}).call(this,n(3))},674:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricItems}));var i=n(5),r=n.n(i),o=n(0),a=n.n(o),c=n(4),l=n(7),s=n(156),u=n(37),d=n(675);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;tu.m&&(n=Object(a.sprintf)(/* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */ Object(a.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),u.m,h));var O=b;return p&&n&&(O={message:n}),e.createElement(g.a,{error:O,skipRetryMessage:!!n})}))}).call(this,n(3))},677:function(e,t,n){"use strict";(function(e,i){n.d(t,"a",(function(){return SelectionPanelError}));var r=n(0),o=n.n(r),a=n(1),c=n(548),l=n(72);function SelectionPanelError(t){var n=t.error,r=t.noPrefix,o=void 0===r||r,s=t.skipRetryMessage,u=void 0===s||s,d=Object(a.useRef)();return Object(a.useEffect)((function(){if(n){var t=e.document.activeElement;t&&t.closest(".googlesitekit-selection-panel-item")&&Object(c.a)(d.current,t)&&t.scrollIntoView()}}),[n]),n?i.createElement("div",{ref:d},i.createElement(l.a,{className:"googlesitekit-notice--square googlesitekit-selection-panel-error",error:n,noPrefix:o,skipRetryMessage:u})):null}SelectionPanelError.propTypes={error:o.a.shape({message:o.a.string}),noPrefix:o.a.bool,skipRetryMessage:o.a.bool}}).call(this,n(27),n(3))},69:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(1),r=Object(i.createContext)(""),o=(r.Consumer,r.Provider);t.b=r},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"H",(function(){return l})),n.d(t,"M",(function(){return s})),n.d(t,"O",(function(){return u})),n.d(t,"K",(function(){return d})),n.d(t,"L",(function(){return g})),n.d(t,"J",(function(){return f})),n.d(t,"I",(function(){return p})),n.d(t,"N",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"h",(function(){return h})),n.d(t,"j",(function(){return O})),n.d(t,"l",(function(){return y})),n.d(t,"m",(function(){return j})),n.d(t,"n",(function(){return k})),n.d(t,"o",(function(){return E})),n.d(t,"q",(function(){return _})),n.d(t,"s",(function(){return I})),n.d(t,"r",(function(){return S})),n.d(t,"t",(function(){return N})),n.d(t,"w",(function(){return M})),n.d(t,"u",(function(){return T})),n.d(t,"v",(function(){return C})),n.d(t,"x",(function(){return w})),n.d(t,"y",(function(){return D})),n.d(t,"A",(function(){return A})),n.d(t,"B",(function(){return x})),n.d(t,"C",(function(){return L})),n.d(t,"D",(function(){return P})),n.d(t,"k",(function(){return R})),n.d(t,"F",(function(){return z})),n.d(t,"z",(function(){return B})),n.d(t,"G",(function(){return U})),n.d(t,"E",(function(){return H})),n.d(t,"i",(function(){return G})),n.d(t,"p",(function(){return F})),n.d(t,"Q",(function(){return V})),n.d(t,"P",(function(){return W}));var i="core/user",r="connected_url_mismatch",o="__global",a="temporary_persist_permission_error",c="adblocker_active",l="googlesitekit_authenticate",s="googlesitekit_setup",u="googlesitekit_view_dashboard",d="googlesitekit_manage_options",g="googlesitekit_read_shared_module_data",f="googlesitekit_manage_module_sharing_options",p="googlesitekit_delegate_module_sharing_management",m="googlesitekit_update_plugins",b="kmAnalyticsAdSenseTopEarningContent",v="kmAnalyticsEngagedTrafficSource",h="kmAnalyticsLeastEngagingPages",O="kmAnalyticsNewVisitors",y="kmAnalyticsPopularAuthors",j="kmAnalyticsPopularContent",k="kmAnalyticsPopularProducts",E="kmAnalyticsReturningVisitors",_="kmAnalyticsTopCities",I="kmAnalyticsTopCitiesDrivingLeads",S="kmAnalyticsTopCitiesDrivingAddToCart",N="kmAnalyticsTopCitiesDrivingPurchases",M="kmAnalyticsTopDeviceDrivingPurchases",T="kmAnalyticsTopConvertingTrafficSource",C="kmAnalyticsTopCountries",w="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",A="kmAnalyticsTopTrafficSource",x="kmAnalyticsTopTrafficSourceDrivingAddToCart",L="kmAnalyticsTopTrafficSourceDrivingLeads",P="kmAnalyticsTopTrafficSourceDrivingPurchases",R="kmAnalyticsPagesPerVisit",z="kmAnalyticsVisitLength",B="kmAnalyticsTopReturningVisitorPages",U="kmSearchConsolePopularKeywords",H="kmAnalyticsVisitsPerVisitor",G="kmAnalyticsMostEngagingPages",F="kmAnalyticsTopCategories",V=[b,v,h,O,y,j,k,E,F,_,I,S,N,M,T,C,D,A,x,R,z,B,H,G,F],W=[].concat(V,[U])},71:function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;tredo the plugin setup.',"google-site-kit"),S,N));return e.createElement(u.a,{className:i,type:u.a.TYPES.ERROR,description:e.createElement("span",{dangerouslySetInnerHTML:Object(d.F)(S,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:I?{label:Object(a.__)("Retry","google-site-kit"),onClick:_}:void 0,hideIcon:j})}ErrorNotice.propTypes={className:r.a.string,error:r.a.shape({message:r.a.string}),hasButton:r.a.bool,storeName:r.a.string,message:r.a.string,noPrefix:r.a.bool,skipRetryMessage:r.a.bool,hideIcon:r.a.bool}}).call(this,n(3))},75:function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},a=n.viewAction,c=void 0===a?"view_notification":a,l=n.confirmAction,s=void 0===l?"confirm_notification":l,u=n.dismissAction,d=void 0===u?"dismiss_notification":u,g=n.clickLearnMoreAction,f=void 0===g?"click_learn_more_link":g,p=Object(r.a)(),m=null!=t?t:"".concat(p,"_").concat(e),b=Object(i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=y(e,t),i=n.formatUnit,r=n.formatDecimal;try{return i()}catch(e){return r()}}function h(e){var t=O(e),n=t.hours,i=t.minutes,r=t.seconds;return r=("0"+r).slice(-2),i=("0"+i).slice(-2),"00"===(n=("0"+n).slice(-2))?"".concat(i,":").concat(r):"".concat(n,":").concat(i,":").concat(r)}function O(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)}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=O(e),i=n.hours,r=n.minutes,o=n.seconds;return{hours:i,minutes:r,seconds:o,formatUnit:function(){var n=t.unitDisplay,a=b(b({unitDisplay:void 0===n?"short":n},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?S(o,b(b({},a),{},{unit:"second"})):Object(p.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?S(o,b(b({},a),{},{unit:"second"})):"",r?S(r,b(b({},a),{},{unit:"minute"})):"",i?S(i,b(b({},a),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(p.sprintf)( // translators: %s: number of seconds with "s" as the abbreviated unit. Object(p.__)("%ds","google-site-kit"),o);if(0===e)return t;var n=Object(p.sprintf)( // translators: %s: number of minutes with "m" as the abbreviated unit. Object(p.__)("%dm","google-site-kit"),r),a=Object(p.sprintf)( // translators: %s: number of hours with "h" as the abbreviated unit. Object(p.__)("%dh","google-site-kit"),i);return Object(p.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",r?n:"",i?a:"").trim()}}}function j(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function k(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(p.sprintf)( // translators: %s: an abbreviated number in millions. Object(p.__)("%sM","google-site-kit"),S(j(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)( // translators: %s: an abbreviated number in thousands. Object(p.__)("%sK","google-site-kit"),S(j(e))):1e3<=e?Object(p.sprintf)( // translators: %s: an abbreviated number in thousands. Object(p.__)("%sK","google-site-kit"),S(j(e),e%10==0?{}:t)):S(e,{signDisplay:"never",maximumFractionDigits:1})}function E(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=b({},e)),t}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var n=E(t),i=n.style,r=void 0===i?"metric":i;return"metric"===r?k(e):"duration"===r?v(e,n):"durationISO"===r?h(e):S(e,n)}var I=f()(console.warn);function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,i=void 0===n?M():n,o=u()(t,["locale"]);try{return new Intl.NumberFormat(i,o).format(e)}catch(t){I("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(i),", ").concat(JSON.stringify(o)," ).format( ").concat(a()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,g=Object.entries(o);d1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,i=void 0===n?M():n,r=t.style,o=void 0===r?"long":r,a=t.type,c=void 0===a?"conjunction":a;if(Intl.ListFormat){var l=new Intl.ListFormat(i,{style:o,type:c});return l.format(e)} /* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return e.join(s)}function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var i=n.match(/^(\w{2})?(_)?(\w{2})/);if(i&&i[0])return i[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(27))},9:function(e,t,n){"use strict";n.d(t,"I",(function(){return r.b})),n.d(t,"J",(function(){return r.c})),n.d(t,"F",(function(){return o.a})),n.d(t,"K",(function(){return o.b})),n.d(t,"H",(function(){return u})),n.d(t,"m",(function(){return d.a})),n.d(t,"B",(function(){return d.d})),n.d(t,"C",(function(){return d.e})),n.d(t,"y",(function(){return d.c})),n.d(t,"r",(function(){return d.b})),n.d(t,"z",(function(){return m})),n.d(t,"j",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"d",(function(){return E})),n.d(t,"c",(function(){return _})),n.d(t,"e",(function(){return I})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return N})),n.d(t,"f",(function(){return M})),n.d(t,"n",(function(){return T})),n.d(t,"w",(function(){return C})),n.d(t,"p",(function(){return w})),n.d(t,"G",(function(){return D})),n.d(t,"s",(function(){return A})),n.d(t,"v",(function(){return x})),n.d(t,"k",(function(){return L})),n.d(t,"o",(function(){return P.b})),n.d(t,"h",(function(){return P.a})),n.d(t,"t",(function(){return R.b})),n.d(t,"q",(function(){return R.a})),n.d(t,"A",(function(){return R.c})),n.d(t,"x",(function(){return z})),n.d(t,"u",(function(){return B})),n.d(t,"E",(function(){return G})),n.d(t,"D",(function(){return F.a})),n.d(t,"g",(function(){return V})),n.d(t,"L",(function(){return W})),n.d(t,"l",(function(){return Y}));var i=n(14),r=n(41),o=n(100),a=n(38),c=n.n(a),l=n(99),s=n.n(l);function u(e){return s()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(i){var r=t[i];r&&"object"===c()(r)&&!Array.isArray(r)&&(r=e(r)),n[i]=r})),n}(e)))}n(104);var d=n(89);function g(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'$1')}function f(e){return"

".concat(e.replace(/\n{2,}/g,"

"),"

")}function p(e){return e.replace(/\n/gi,"
")}function m(e){for(var t=e,n=0,i=[g,f,p];n0&&void 0!==arguments[0]?arguments[0]:"";if(!Object(i.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var n=new Date(e);return Object(i.isDate)(n)&&!isNaN(n)}function w(e){j()(Object(i.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");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("-")}function D(e){j()(C(e),E);var t=e.split("-"),n=O()(t,3),i=n[0],r=n[1],o=n[2];return new Date(i,r-1,o)}function A(e,t){return w(L(e,t*N))}function x(e){var t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function L(e,t){j()(C(e)||Object(i.isDate)(e)&&!isNaN(e),E);var n=C(e)?Date.parse(e):e.getTime();return new Date(n-1e3*t)}var P=n(108),R=n(87);function z(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function B(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var U=n(29),H=n.n(U);function G(e){return Array.isArray(e)?H()(e).sort():e}var F=n(94);function V(e,t){function n(e){return"0"===e||0===e}if(n(e)&&n(t))return 0;if(n(e)||Number.isNaN(e))return null;var i=(t-e)/e;return Number.isNaN(i)||!Number.isFinite(i)?null:i}function W(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function Y(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(i.unescape)(t)}},90:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var i=n(160),r=n.n(i)()(e)}).call(this,n(27))},92:function(e,t,n){"use strict";(function(e){var i=n(0),r=n.n(i),o=n(10),a=n.n(o);function ChangeArrow(t){var n=t.direction,i=t.invertColor,r=t.width,o=t.height;return e.createElement("svg",{className:a()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":i}),width:r,height:o,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:r.a.string,invertColor:r.a.bool,width:r.a.number,height:r.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(3))},94:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(12),r=n.n(i);function o(e,t){var n=t.dateRangeLength;r()(Array.isArray(e),"report must be an array to partition."),r()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var i=-1*n;return{currentRange:e.slice(i),compareRange:e.slice(2*i,i)}}},95:function(e,t,n){"use strict";function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()}function o(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o}))},96:function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t