kollapsminoriteten/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-metric-select...

32 lines
215 KiB
JavaScript
Raw Normal View History

2025-07-27 19:58:08 +02:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[15],{101:function(e,t,n){"use strict";(function(e,r){n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return TourTooltips}));var i=n(5),a=n.n(i),o=n(84),c=n(32),s=n(0),l=n.n(s),u=n(2),d=n(4),g=n(26),f=n(7),m=n(40),p=n(119),v=n(18);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var 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")},_={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)"}}},E="feature_tooltip_view",k="feature_tooltip_advance",y="feature_tooltip_return",j="feature_tooltip_dismiss",S="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,i=t.tourID,s=t.gaEventCategory,l=t.callback,u="".concat(i,"-step"),w="".concat(i,"-run"),T=Object(d.useDispatch)(g.b).setValue,C=Object(d.useDispatch)(f.a).dismissTour,N=Object(d.useRegistry)(),A=Object(v.a)(),L=Object(d.useSelect)((function(e){return e(g.b).getValue(u)||0})),x=Object(d.useSelect)((function(e){return e(g.b).getValue(w)&&!1===e(f.a).isTourDismissed(i)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(i)),T(w,!0)}));var D=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,i=e.size,a=e.status,o=e.type,l=t+1,u="function"==typeof s?s(A):s;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(m.b)(u,E,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(m.b)(u,j,l):n===c.a.NEXT&&a===c.d.FINISHED&&o===c.b.TOUR_END&&i===l&&Object(m.b)(u,S,l),r===c.c.COMPLETE&&a!==c.d.FINISHED&&(n===c.a.PREV&&Object(m.b)(u,y,l),n===c.a.NEXT&&Object(m.b)(u,k,l))}(t);var n=t.action,r=t.index,a=t.status,o=t.step,d=t.type,g=n===c.a.CLOSE,f=!g&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(d),p=[c.d.FINISHED,c.d.SKIPPED].includes(a),v=g&&d===c.b.STEP_AFTER,b=p||v;if(c.b.STEP_BEFORE===d){var h,O,_=o.target;"string"==typeof o.target&&(_=e.document.querySelector(o.target)),null===(h=_)||void 0===h||null===(O=h.scrollIntoView)||void 0===O||O.call(h,{block:"center"})}f?function(e,t){T(u,e+(t===c.a.PREV?-1:1))}(r,n):b&&(e.document.body.classList.remove("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(i)),C(i)),l&&l(t,N)},floaterProps:_,locale:O,run:x,stepIndex:L,steps:D,styles:h,tooltipComponent:p.a,continuous:!0,disableOverlayClose:!0,disableScrolling:!0,showProgress:!0})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.oneOfType([l.a.string,l.a.func]).isRequired,callback:l.a.func}}).call(this,n(28),n(3))},104:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,i=n(52),a=n.n(i),o=n(53),c=n.n(o),s=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!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}},l=function(){function NullStor
Object(l.__)("<strong>Note:</strong> %s","google-site-kit"),S),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",onClick:f,disabled:N,tertiary:!0},Object(l.__)("Cancel","google-site-kit")),P?e.createElement(u.Button,{href:P,onClick:E,target:"_blank",danger:T},j):e.createElement(u.SpinnerButton,{onClick:E,danger:T,disabled:N,isSaving:N},j||Object(l.__)("Disconnect","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:i.a.string,dialogActive:i.a.bool,handleDialog:i.a.func,handleConfirm:i.a.func.isRequired,onOpen:i.a.func,onClose:i.a.func,title:i.a.string,confirmButton:i.a.string,danger:i.a.bool,small:i.a.bool,medium:i.a.bool,buttonLink:i.a.string},t.a=ModalDialog}).call(this,n(3))},143:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(10),o=n.n(a),c=n(42),s=n(2),l=n(21),u=n(39);function SourceLink(t){var n=t.name,r=t.href,i=t.className,a=t.external;return Object(u.a)()?null:e.createElement("div",{className:o()("googlesitekit-source-link",i)},Object(c.a)(Object(s.sprintf)(/* translators: %s: source link */
Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(l.a,{key:"link",href:r,external:a})}))}SourceLink.propTypes={name:i.a.string,href:i.a.string,className:i.a.string,external:i.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(3))},150:function(e,t,n){"use strict";var r=n(1),i=Object(r.createContext)(!1);t.a=i},154:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(5),i=n.n(r),a=n(2),o=n(7),c=n(13),s=n(8);function l(e,t,n){return e(s.r).hasConversionReportingEvents(this.requiredConversionEventName)||e(o.a).isKeyMetricActive(n)}var u,d=n(25);function g(e,t){return!t||!(!t||!e(s.r).getAdSenseLinked())}function f(e,t){return!t||e(s.r).hasCustomDimensions(this.requiredCustomDimensions)}var m=(u={},i()(u,o.f,{title:Object(a.__)("Top earning pages","google-site-kit"),description:Object(a.__)("Pages that generated the most AdSense revenue","google-site-kit"),infoTooltip:Object(a.__)("Pages that generated the most AdSense revenue","google-site-kit"),displayInSelectionPanel:g,displayInList:g,metadata:{group:d.b.SLUG}}),i()(u,o.y,{title:Object(a.__)("Top recent trending pages","google-site-kit"),description:Object(a.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),infoTooltip:Object(a.__)("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}}),i()(u,o.l,{title:Object(a.__)("Most popular authors by pageviews","google-site-kit"),description:Object(a.__)("Authors whose posts got the most visits","google-site-kit"),infoTooltip:Object(a.__)("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}}),i()(u,o.p,{title:Object(a.__)("Top categories by pageviews","google-site-kit"),description:Object(a.__)("Categories that your site visitors viewed the most","google-site-kit"),infoTooltip:Object(a.__)("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}}),i()(u,o.m,{title:Object(a.__)("Most popular content by pageviews","google-site-kit"),description:Object(a.__)("Pages that brought in the most visitors","google-site-kit"),infoTooltip:Object(a.__)("Pages your visitors read the most","google-site-kit"),metadata:{group:d.b.SLUG}}),i()(u,o.n,{title:Object(a.__)("Most popular products by pageviews","google-site-kit"),description:Object(a.__)("Products that brought in the most visitors","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_type"],displayInSelectionPanel:function(e){return e(o.a).isKeyMetricActive(o.n)||e(c.c).getProductPostType()},displayInWidgetArea:f,metadata:{group:d.f.SLUG}}),i()(u,o.k,{title:Object(a.__)("Pages per visit","google-site-kit"),description:Object(a.__)("Number of pages visitors viewed per session on average","google-site-kit"),infoTooltip:Object(a.__)("Number of pages visitors viewed per session on average","google-site-kit"),metadata:{group:d.h.SLUG}}),i()(u,o.F,{title:Object(a.__)("Visit length","google-site-kit"),description:Object(a.__)("Average duration of engaged visits","google-site-kit"),infoTooltip:Object(a.__)("Average duration of engaged visits","google-site-kit"),metadata:{group:d.h.SLUG}}),i()(u,o.E,{title:Object(a.__)("Visits per visitor","google-site-kit"),description:Object(a.__)("Average number of sessions per site visitor","google-site-kit"),infoTooltip:Object(a.__)("Average number of sessions per site visitor","google-site-kit"),metadata:{group:d.h.SLUG}}),i()(u,o.i,{title:Object(a.__)("Most engaging pages","google-site-kit"),description:Object(a.__)("Pages with the highest engagement rate","google-site-kit"),infoTooltip:Object(a.__)("Pages with the highest engag
Object(g.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),o,n)),o&&!n&&(W=Object(g.sprintf)(/* translators: Account info text. 1: User's (full) name. */
Object(g.__)("Google Account for %1$s","google-site-kit"),o)),!o&&n&&(W=Object(g.sprintf)(/* translators: Account info text. 1: User's email address. */
Object(g.__)("Google Account (Email: %1$s)","google-site-kit"),n)),r.createElement(d.Fragment,null,r.createElement("div",{ref:F,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},r.createElement(p.Button,{disabled:L,ref:z,className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--tablet googlesitekit-border-radius-round--phone googlesitekit-border-radius-round googlesitekit-button-icon",onClick:q,icon:!!i&&r.createElement("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true"},r.createElement("img",{className:"mdc-button__icon--image",src:i,alt:Object(g.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":B,"aria-controls":"user-menu","aria-label":L?void 0:Object(g.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:L?null:r.createElement("span",{"aria-label":W},r.createElement("strong",null,Object(g.__)("Google Account","google-site-kit")),r.createElement("br",null),r.createElement("br",null),o,o&&r.createElement("br",null),n),text:!0,tooltip:!0}),r.createElement(p.Menu,{className:"googlesitekit-user-menu",menuOpen:B,onSelected:X,id:"user-menu"},r.createElement("li",null,r.createElement(_.a,null)),!!t&&r.createElement("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem"},r.createElement(E.a,{icon:r.createElement(y.a,{width:"22"}),label:Object(g.__)("Manage Sites","google-site-kit")})),r.createElement("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem"},r.createElement(E.a,{icon:r.createElement(k.a,{width:"22"}),label:Object(g.__)("Disconnect","google-site-kit")})))),r.createElement(O.a,null,r.createElement(v.a,{dialogActive:I,handleConfirm:Y,handleCancel:V,onClose:V,title:Object(g.__)("Disconnect","google-site-kit"),subtitle:Object(g.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:Object(g.__)("Disconnect","google-site-kit"),danger:!0,small:!0})))):null}}).call(this,n(28),n(3))},282:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Details}));var r=n(2),i=n(4),a=n(7);function Details(){var t=Object(i.useSelect)((function(e){return e(a.a).getPicture()})),n=Object(i.useSelect)((function(e){return e(a.a).getFullName()})),o=Object(i.useSelect)((function(e){return e(a.a).getEmail()}));return e.createElement("div",{className:"googlesitekit-user-menu__details","aria-label":Object(r.__)("Google account","google-site-kit")},!!t&&e.createElement("img",{className:"googlesitekit-user-menu__details-avatar",src:t,alt:""}),e.createElement("div",{className:"googlesitekit-user-menu__details-info"},e.createElement("p",{className:"googlesitekit-user-menu__details-info__name"},n),e.createElement("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":Object(r.__)("Email","google-site-kit")},o)))}}).call(this,n(3))},283:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M6.83 2H20a2 2 0 012 2v12c0 .34-.09.66-.23.94L20 15.17V6h-9.17l-4-4zm13.66 19.31L17.17 18H4a2 2 0 01-2-2V4c0-.34.08-.66.23-.94L.69 1.51 2.1.1l19.8 19.8-1.41 1.41zM15.17 16l-10-10H4v10h11.17z",fill:"currentColor"});t.a=function SvgDisconnect(e){return r.createElement("svg",i({viewBox:"0 0 22 22",fill:"none"},e),a)}},284:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M20 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h18v12zm-2-9H7v2h11V5zm0 4H7v2h11V9zM6 5H4v2h2V5zm0 4H4v2h2V9z",fill:"currentColor
Object(o.__)("Shared by <strong>%s</strong>","google-site-kit"),d.login),{strong:e.createElement("strong",{title:d.login})})))}Service.propTypes={module:i.a.string.isRequired}}).call(this,n(3))},299:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Tracking}));var r=n(42),i=n(2),a=n(223),o=n(18);function Tracking(){var t=Object(o.a)();return e.createElement("li",{className:"googlesitekit-view-only-menu__list-item"},e.createElement("p",null,Object(r.a)(Object(i.__)("Thanks for using Site Kit!<br />Help us make it even better","google-site-kit"),{br:e.createElement("br",null)})),e.createElement(a.a,{trackEventCategory:"".concat(t,"_headerbar_viewonly"),alignCheckboxLeft:!0}))}}).call(this,n(3))},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/forms"},300:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return LegacyNotifications}));var r=n(1),i=n(4),a=n(19),o=n(7),c=n(301),s=n(308),l=n(39),u=n(54),d=n(67),g=n(310);function LegacyNotifications(){var t=Object(l.a)(),n=Object(u.c)(),f=Object(i.useSelect)((function(e){return e(o.a).isAuthenticated()})),m=Object(i.useSelect)((function(e){return e(a.a).isModuleActive(d.d)}));return e.createElement(r.Fragment,null,e.createElement(g.a,null),!t&&n===u.b&&e.createElement(r.Fragment,null,m&&e.createElement(s.a,null),f&&e.createElement(c.a,null)))}}).call(this,n(3))},301:function(e,t,n){"use strict";(function(e){var r=n(14),i=n.n(r),a=n(1),o=n(4),c=n(13),s=n(7),l=n(41),u=n(302),d=n(51);t.a=function CoreSiteBannerNotifications(){var t=Object(a.useState)(!1),n=i()(t,2),r=n[0],g=n[1],f=Object(a.useState)(!1),m=i()(f,2),p=m[0],v=m[1],b=Object(a.useRef)(Date.now()),h=Object(o.useSelect)((function(e){return e(c.c).isUsingProxy()&&!1===e(s.a).areSurveysOnCooldown()?e(s.a).getCurrentSurvey():null})),O=Object(a.useState)([]),_=i()(O,2),E=_[0],k=_[1],y=Object(o.useDispatch)(l.a).registerNotification,j=Object(o.useSelect)((function(e){return e(c.c).getNotifications()}));return Object(a.useEffect)((function(){var e=setTimeout((function(){p||g(!0)}),5e3);return function(){clearTimeout(e)}}),[p]),Object(a.useEffect)((function(){Math.floor((Date.now()-b.current)/1e3)<5&&h&&v(!0)}),[b,h,v]),Object(a.useEffect)((function(){r&&!p&&(null==j||j.forEach((function(t){E.includes(t.id)||(y(t.id,{Component:function Component(){return e.createElement(u.a,t)},priority:t.priority,areaSlug:d.c.DASHBOARD_TOP,isDismissible:t.isDismissible}),k((function(e){return e.push(t.id),e})))})))}),[p,j,y,E,r]),null}}).call(this,n(3))},302:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(303),o=n(305),c=n(189),s=n(306),l=n(21);function NotificationFromServer(t){var n=t.id,r=t.title,i=t.content,u=t.ctaLabel,d=t.ctaTarget,g=t.ctaURL,f=t.dismissible,m=t.dismissLabel,p=t.learnMoreLabel,v=t.learnMoreURL;return e.createElement(a.a,{className:"googlesitekit-notification-from-server",id:n},e.createElement(o.a,{title:r,description:e.createElement(c.a,{learnMoreLink:e.createElement(l.a,{href:v,external:!0},p),text:i}),actions:e.createElement(s.a,{id:n,ctaLabel:u,ctaURL:g,ctaTarget:d,dismissLabel:f&&m?m:void 0,dismissExpires:1,dismissOnCTAClick:!0})}))}NotificationFromServer.propTypes={id:i.a.string.isRequired,title:i.a.string.isRequired,content:i.a.node,ctaLabel:i.a.string,ctaTarget:i.a.string,ctaURL:i.a.string,dismissible:i.a.bool,dismissLabel:i.a.string,learnMoreLabel:i.a.string,learnMoreURL:i.a.string},t.a=NotificationFromServer}).call(this,n(3))},303:function(e,t,n){"use strict";var r=n(155);n.d(t,"a",(function(){return r.a}))},304:function(e,t,n){"use strict";n.d(t,"a",(function(){return ViewedStateObserver}));var r=n(0),i=n.n(r),a=n(1),o=n(4),c=n(26),s=n(41),l=n(255),u=n(171);function ViewedStateObserver(e){var t=e.id,n=e.observeRef,r=e.threshold,i=Object(l.a)(n,{threshold:r}),d=Object(o.useDispatch)(c.b).setValue,g=Object(o.useDispatch)(s.a).markNotificationSeen,f=!!(null==i?void 0:i.isIntersecting),m=Object(u.a)(t),p=Object(a.useRef)(),v=function(){p.current&&clearTimeout(p.current)};return Object(a.useEffect)((function(){return!m&&f?(v(),p.curre
Object(m.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),Z,T),{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(b.a,{error:k}),e.createElement("div",{className:"googlesitekit-selection-panel-footer__content"},W&&y?e.createElement(E.a,{type:E.a.TYPES.ERROR,description:y}):ee,e.createElement("div",{className:"googlesitekit-selection-panel-footer__actions"},e.createElement(v.Button,{onClick:X,disabled:C,tertiary:!0},Object(m.__)("Cancel","google-site-kit")),e.createElement(v.SpinnerButton,{onClick:K,isSaving:C,disabled:Z<S||Z>T||C||!D&&U},B||q))))}SelectionPanelFooter.propTypes={savedItemSlugs:d.a.array,selectedItemSlugs:d.a.array,saveSettings:d.a.func,saveError:d.a.object,itemLimitError:d.a.string,minSelectedItemCount:d.a.number,maxSelectedItemCount:d.a.number,isBusy:d.a.bool,onSaveSuccess:d.a.func,onCancel:d.a.func,isOpen:d.a.bool,closePanel:d.a.func}}).call(this,n(3))},34:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return d}));n(15);var r=n(2),i="missing_required_scopes",a="insufficientPermissions",o="forbidden";function c(e){return(null==e?void 0:e.code)===i}function s(e){var t;return[a,o].includes(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}function l(e){var t;return!!(null==e||null===(t=e.data)||void 0===t?void 0:t.reconnectURL)}function u(e,t){return!(!(null==t?void 0:t.storeName)||s(e)||c(e)||l(e))}function d(e){return"internal_server_error"===(null==e?void 0:e.code)?Object(r.__)("There was a critical error on this website while fetching data","google-site-kit"):"invalid_json"===(null==e?void 0:e.code)?Object(r.__)("The server provided an invalid response","google-site-kit"):null==e?void 0:e.message}},340:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanel}));var r=n(10),i=n.n(r),a=n(0),o=n.n(a),c=n(341);function SelectionPanel(t){var n=t.children,r=t.isOpen,a=t.isLoading,o=t.onOpen,s=t.closePanel,l=t.className,u=null==l?void 0:l.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:i()("googlesitekit-selection-panel",l),isOpen:r,isLoading:a,onOpen:o,closeSheet:s,focusTrapOptions:{initialFocus:d}},n)}SelectionPanel.propTypes={children:o.a.node,isOpen:o.a.bool,isLoading:o.a.bool,onOpen:o.a.func,closePanel:o.a.func,className:o.a.string}}).call(this,n(3))},341:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SideSheet}));var r=n(5),i=n.n(r),a=n(10),o=n.n(a),c=n(427),s=n.n(c),l=n(0),u=n.n(l),d=n(213),g=n(397),f=n(1),m=n(57),p=n(75);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SideSheet(t){var n=t.className,r=t.children,i=t.isOpen,a=t.isLoading,c=t.onOpen,l=void 0===c?function(){}:c,u=t.closeSheet,v=void 0===u?function(){}:u,h=t.focusTrapOptions,O=void 0===h?{}:h,_=Object(f.useRef)();return Object(f.useEffect)((function(){i?(l(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):document.body.classList.remove("googlesitekit-side-sheet-scroll-lock")}),[i,l]),Object(d.a)(_,v),Object(g.a)((function(e){return i&&m.c===e.keyCode}),v),e.createElem
Object(u._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",h.length,"google-site-kit"),h.join(Object(u.__)(" and ","google-site-kit")))))}MetricItem.propTypes={slug:s.a.string.isRequired,title:s.a.string.isRequired,description:s.a.string.isRequired,isNewlyDetected:s.a.bool,savedItemSlugs:s.a.array}}).call(this,n(3))},385:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M59.238 58.571c-2.136 20.178 4.272 29.099 20.48 53.216 16.209 24.118-29.092 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.443-3.208 57.819 12.98 90.86 5.9 33.04-7.08 46.385-42.599 43.153-68.059-5.59-44.041-26.24-49.107-34.893-66.461-8.654-17.354 2.902-52.997-30.287-73.16-33.19-20.163-76.71 14.42-112.503 12.37-20.651-1.182-40.932-4.995-59.264.86-18.53 5.918-32.662 22.571-34.335 38.621z",fill:"#B8E6CA"}),o=r.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__filter0_d_2200_11981)"},r.createElement("rect",{x:242.455,y:45.266,width:130.621,height:89.651,rx:10.957,transform:"rotate(15 242.455 45.266)",fill:"#fff"})),c=r.createElement("rect",{x:253.726,y:64.785,width:24.903,height:7.969,rx:3.985,transform:"rotate(15 253.726 64.785)",fill:"#EBEEF0"}),s=r.createElement("rect",{x:249.342,y:81.144,width:49.806,height:19.923,rx:9.961,transform:"rotate(15 249.342 81.144)",fill:"#FFDED3"}),l=r.createElement("rect",{x:240.436,y:114.357,width:99.428,height:8.773,rx:3.985,transform:"rotate(15 240.436 114.357)",fill:"#EBEEF0"}),u=r.createElement("path",{d:"M256.195 90.198l4.644 8.044m0 0l1.412-4.986m-1.412 4.986l-5.023-1.27",stroke:"#fff",strokeWidth:1.494,strokeLinecap:"round",strokeLinejoin:"round"}),d=r.createElement("rect",{x:268.706,y:93.551,width:19.923,height:5.977,rx:1.992,transform:"rotate(15 268.706 93.55)",fill:"#fff"}),g=r.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__filter1_d_2200_11981)"},r.createElement("rect",{x:13.887,y:79.094,width:130.621,height:89.68,rx:10.957,transform:"rotate(-15 13.887 79.094)",fill:"#fff"})),f=r.createElement("rect",{x:32.989,y:90.122,width:62.386,height:7.798,rx:3.899,transform:"rotate(-15 32.99 90.122)",fill:"#EBEEF0"}),m=r.createElement("rect",{x:37.691,y:106.902,width:49.806,height:19.923,rx:9.961,transform:"rotate(-15 37.691 106.902)",fill:"#FFDED3"}),p=r.createElement("rect",{x:46.612,y:140.967,width:99.428,height:7.798,rx:3.899,transform:"rotate(-15 46.612 140.967)",fill:"#EBEEF0"}),v=r.createElement("path",{d:"M48.152 111.318l8.044 4.645m0 0l-1.27-5.024m1.27 5.024l-4.986 1.411",stroke:"#fff",strokeWidth:1.494,strokeLinecap:"round",strokeLinejoin:"round"}),b=r.createElement("rect",{x:60.663,y:107.966,width:19.923,height:5.977,rx:1.992,transform:"rotate(-15 60.663 107.966)",fill:"#fff"}),h=r.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__filter2_d_2200_11981)"},r.createElement("rect",{x:126.251,y:37.4,width:130.621,height:89.68,rx:10.957,fill:"#fff"})),O=r.createElement("rect",{x:143.013,y:53.134,width:98.333,height:7.867,rx:3.933,fill:"#EBEEF0"}),_=r.createElement("rect",{x:142.369,y:70.423,width:49.806,height:19.923,rx:9.961,fill:"#B8E6CA"}),E=r.createElement("rect",{x:143.013,y:105.84,width:33.04,height:7.867,rx:3.933,fill:"#EBEEF0"}),k=r.createElement("path",{d:"M151.336 84.036l6.568-6.567m0 0l-5.182-.073m5.182.073l.073 5.18",stroke:"#fff",strokeWidth:1.494,strokeLinecap:"round",strokeLinejoin:"round"}),y=r.createElement("rect",{x:164.287,y:77.395,width:19.923,height:5.977,rx:1.992,fill:"#fff"}),j=r.createElement("path",{d:"M59.237 58.571C57.1 78.75 63.509 87.67 79.717 111.787c16.209 24.118-29.091 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.444-3.208 57.82 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461-8.654-17.354 2.902-52.997-30.287-73.16-33.19-20.163-76.71 14.42-112.503 12.37-20.651-1.182-40.932-4.995-59.264.86C75.042 25.867 60.91 42
Object(o.__)("%s (Please try again.)","google-site-kit"),w)),h||(w=Object(o.sprintf)(/* translators: $%s: Error message */
Object(o.__)("Error: %s","google-site-kit"),w));var T=null==i||null===(n=i.data)||void 0===n?void 0:n.reconnectURL;T&&Object(c.a)(T)&&(w=Object(o.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */
Object(o.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),w,T));return e.createElement(u.a,{className:r,type:u.a.TYPES.ERROR,description:e.createElement("span",{dangerouslySetInnerHTML:Object(d.F)(w,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:S?{label:Object(o.__)("Retry","google-site-kit"),onClick:j}:void 0,hideIcon:E})}ErrorNotice.propTypes={className:i.a.string,error:i.a.shape({message:i.a.string}),hasButton:i.a.bool,storeName:i.a.string,message:i.a.string,noPrefix:i.a.bool,skipRetryMessage:i.a.bool,hideIcon:i.a.bool}}).call(this,n(3))},60:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(4),i=n(19),a=n(93);function o(t){var n=t.moduleName,o=t.FallbackComponent,c=t.IncompleteComponent;return function(t){function WhenActiveComponent(a){var s=Object(r.useSelect)((function(e){return e(i.a).getModule(n)}),[n]);if(!s)return null;var l=o||a.WidgetNull||null;if(!1===s.active)return l&&e.createElement(l,a);if(!1===s.connected){var u=c||l;return u&&e.createElement(u,a)}return e.createElement(t,a)}return WhenActiveComponent.displayName="When".concat(Object(a.c)(n),"Active"),(t.displayName||t.name)&&(WhenActiveComponent.displayName+="(".concat(t.displayName||t.name,")")),WhenActiveComponent}}}).call(this,n(3))},61:function(e,t,n){"use strict";(function(e){var r,i;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var a=new Set((null===(r=e)||void 0===r||null===(i=r._googlesitekitBaseData)||void 0===i?void 0:i.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return t instanceof Set&&t.has(e)}}).call(this,n(28))},62:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(43);function i(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},65:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i=Object(r.createContext)(""),a=(i.Consumer,i.Provider);t.b=i},67:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o}));var r="adsense-connect-cta",i="adsense-connect-cta-tooltip-state",a="adsense-ga4-top-earnings-notice",o="adsense"},686:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PanelContent}));var r=n(10),i=n.n(r),a=n(15),o=n(0),c=n.n(o),s=n(1),l=n(687),u=n(688),d=n(689),g=n(691),f=n(693);function PanelContent(t){var n=t.isOpen,r=void 0!==n&&n,o=t.closePanel,c=t.savedViewableMetrics,m=t.showHeader,p=void 0===m||m,v=t.setIsNavigatingToOAuthURL,b=void 0===v?a.noop:v,h=t.isFullScreen,O=void 0!==h&&h;return e.createElement(s.Fragment,null,p&&e.createElement(u.a,{closePanel:o}),e.createElement(g.a,{savedMetrics:c}),e.createElement(l.a,null),e.createElement("div",{className:i()("googlesitekit-user-input__footer-container",{"googlesitekit-user-input__footer-container--fullscreen":O})},e.createElement(f.a,{savedMetrics:c}),e.createElement(d.a,{isOpen:r,closePanel:o,savedMetrics:c,onNavigationToOAuthURL:function(){b(!0)},isFullScreen:O})))}PanelContent.propTypes={isOpen:c.a.bool,closePanel:c.a.func,savedViewableMetrics:c.a.array,showHeader:c.a.bool,setIsNavigatingToOAuthURL:c.a.func,isFullScreen:c.a.bool}}).call(this,n(3))},687:function(e,t,n){"use strict";(function(e,r){var i=n(2),a=n(259),o=n(1),c=n(4),s=n(30),l=n(7),u=n(8),d=n(29),g=n(25),f=n(154),m=n(566),p=n(60);t.a=Object(p.a)({moduleName:d.g})((function CustomDimensionsNotice(){var t=Object(c.useSelect)((function(e){return e(s.a).getValue(g.j,g.i)})),n=null==t?void 0:t.flatMap((function(e){var t=f.a[e];return(null==t?void 0:t.requiredCustomDimensions)||[]})),d=Object(c.useInViewSelect)((function(e){return!!(null==n?void 0:n.length)&&!e(u.r).hasCustomDimensions(n)}),[n]),p=Object(c.useInViewSelect)((function(e){return e(l.a).hasScope(u.h)}));Object(c.useInViewSelect)((function(e){return e(u.r).getAvailableCustomDimensions()}));var v=Object(a.a)(d),b=Object(o.useRef)();if(Object(o.useEffect)((function(){if(d&&!1===v){var t=e.document.activeElement;t&&t.closest(".
Object(c.__)("Select up to %d metrics","google-site-kit"),g.m),onCloseClick:n},!r&&e.createElement("p",null,Object(o.a)(Object(c.__)("Edit your personalized goals or deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:e.createElement(f.a,{onClick:h,disabled:v,secondary:!0}),strong:e.createElement("strong",null)})))}Header.propTypes={closePanel:i.a.func.isRequired}}).call(this,n(3))},689:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Footer}));var r=n(6),i=n.n(r),a=n(16),o=n.n(a),c=n(15),s=n(0),l=n.n(s),u=n(1),d=n(2),g=n(4),f=n(7),m=n(30),p=n(33),v=n(19),b=n(13),h=n(25),O=n(8),_=n(29),E=n(154),k=n(34),y=n(18),j=n(123),S=n(9),w=n(690);function Footer(t){var n=t.isOpen,r=t.closePanel,a=void 0===r?c.noop:r,s=t.savedMetrics,l=t.onNavigationToOAuthURL,T=void 0===l?function(){}:l,C=t.isFullScreen,N=void 0!==C&&C,A=Object(g.useRegistry)(),L=Object(y.a)(),x=Object(g.useSelect)((function(e){return e(m.a).getValue(h.j,h.i)})),D=Object(g.useSelect)((function(e){return e(f.a).isSavingKeyMetricsSettings()})),I="".concat(L,"_kmw-sidebar"),P=null==x?void 0:x.flatMap((function(e){var t=E.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]),M=Object(g.useInViewSelect)((function(e){return e(f.a).hasScope(O.h)})),B=Object(g.useSelect)((function(e){return e(v.a).isModuleConnected(_.g)})),H=Object(g.useSelect)((function(e){return e(b.c).getAdminURL("googlesitekit-dashboard",{notification:"custom_dimensions"})})),F=Object(g.useSelect)((function(e){var t=e(f.a).getConnectURL({additionalScopes:[O.h],redirectURL:H});return!!t&&e(p.a).isNavigatingTo(t)})),z=Object(g.useSelect)((function(e){return e(b.c).getAdminURL("googlesitekit-dashboard")})),U=Object(g.useSelect)((function(e){return!!z&&e(p.a).isNavigatingTo(z)})),G=Object(g.useDispatch)(f.a),V=G.saveKeyMetricsSettings,W=G.setPermissionScopeError,q=Object(g.useDispatch)(m.a).setValues,K=Object(g.useDispatch)(p.a).navigateTo,X=Object(g.useSelect)((function(e){return e(O.r).getKeyMetricsConversionEventWidgets()})),Y=Object(u.useCallback)(function(){var e=o()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V({widgetSlugs:t});case 2:return n=e.sent,r=n.error,e.abrupt("return",{error:r});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[V]),$=Object(u.useCallback)(function(){var e=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object.values(X).flat().some((function(e){return t.includes(e)}))?Object(S.I)(I,"metrics_sidebar_save","conversion_reporting"):Object(S.I)(I,"metrics_sidebar_save"),!B||!R){e.next=12;break}if(q(O.n,{autoSubmit:!0}),M){e.next=9;break}return T(),a(),W({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:H}}),e.abrupt("return");case 9:if(!N){e.next=12;break}return e.next=12,Object(j.c)(A);case 12:N&&K(z);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[X,B,R,N,I,q,M,T,a,W,H,A,K,z]),Q=Object(u.useCallback)((function(){Object(S.I)(I,"metrics_sidebar_cancel"),N&&K(z)}),[N,z,K,I]);return e.createElement(w.a,{savedItemSlugs:s,selectedItemSlugs:x,saveSettings:Y,minSelectedItemCount:h.n,maxSelectedItemCount:h.m,isBusy:D||F||U&&N,onSaveSuccess:function(){$(x)},onCancel:Q,isOpen:n,closePanel:a,isFullScreen:N})}Footer.propTypes={isOpen:l.a.bool,closePanel:l.a.func,savedMetrics:l.a.array,onNavigationToOAuthURL:l.a.func,isFullScreen:l.a.bool}}).call(this,n(3))},69:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),i=n(18),a=n(9);function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.viewAction,c=void 0===o?"view_notification":o,s=n.confirmAction,l=void 0===s?"confirm_notification":s,u=n.dismissAction,d=void 0===u?"dismi
Object(m.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),Q,y),{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(v.Button,{onClick:q,disabled:j,tertiary:!0},Object(m.__)("Cancel","google-site-kit")),J,e.createElement(v.SpinnerButton,{onClick:W,isSaving:j,disabled:Q<E||Q>y||j||!N&&F},R||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))},691:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricItems}));var r=n(5),i=n.n(r),a=n(0),o=n.n(a),c=n(4),s=n(7),l=n(154),u=n(39),d=n(692);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MetricItems(t){var n=t.savedMetrics,r=Object(u.a)(),a=Object(c.useSelect)((function(e){return e(s.a)})).isKeyMetricAvailable,o=Object(c.useInViewSelect)((function(e){return function(t){return l.a[t].displayInSelectionPanel(e,r,t)}}),[r]),g=Object.keys(l.a).reduce((function(e,t){if(!a(t))return e;if(void 0===o||"function"==typeof l.a[t].displayInSelectionPanel&&!o(t))return e;var n=l.a[t],r=n.title,c=n.description,s=n.metadata.group;return f(f({},e),{},i()({},t,{title:r,description:c,group:s}))}),{});return e.createElement(d.a,{savedItemSlugs:n,allMetricItems:g})}MetricItems.propTypes={savedMetrics:o.a.array}}).call(this,n(3))},692:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanelItems}));var r=n(0),i=n.n(r),a=n(377);function SelectionPanelItems(t){var n=t.savedItemSlugs,r=void 0===n?[]:n,i=t.allMetricItems;return e.createElement("div",{className:"googlesitekit-selection-panel-items"},e.createElement(a.a,{savedItemSlugs:r,allMetricItems:i}))}SelectionPanelItems.propTypes={savedItemSlugs:i.a.array,allMetricItems:i.a.object.isRequired}}).call(this,n(3))},693:function(e,t,n){"use strict";(function(e){var r=n(5),i=n.n(r),a=n(15),o=n(2),c=n(1),s=n(4),l=n(30),u=n(7),d=n(25),g=n(29),f=n(694),m=n(9),p=n(60);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=Object(p.a)({moduleName:g.g})((function KeyMetricsError(t){var n,r=t.savedMetrics,i=Object(s.useSelect)((function(e){return e(l.a).getValue(d.j,d.i)})),g=Object(s.useInViewSelect)((function(e){return e(u.a).getKeyMetricsSettings()})),p=Object(c.useMemo)((function(){return!Object(a.isEqual)(Object(m.E)(i),Object(m.E)(r))}),[r,i]),v=Object(s.useSelect)((function(e){return e(u.a).getErrorForAction("saveKeyMetricsSettings",[b(b({},g),{},{widgetSlugs:i})])})),h=(null==i?void 0:i.length)||0;h<d.n?n=Object(o.sprintf
Object(o.__)("Select at least %1$d metrics (%2$d selected)","google-site-kit"),d.n,h):h>d.m&&(n=Object(o.sprintf)(/* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */
Object(o.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),d.m,h));var O=v;return p&&n&&(O={message:n}),e.createElement(f.a,{error:O,skipRetryMessage:!!n})}))}).call(this,n(3))},694:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SelectionPanelError}));var i=n(0),a=n.n(i),o=n(1),c=n(566),s=n(59);function SelectionPanelError(t){var n=t.error,i=t.noPrefix,a=void 0===i||i,l=t.skipRetryMessage,u=void 0===l||l,d=Object(o.useRef)();return Object(o.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?r.createElement("div",{ref:d},r.createElement(s.a,{className:"googlesitekit-notice--square googlesitekit-selection-panel-error",error:n,noPrefix:a,skipRetryMessage:u})):null}SelectionPanelError.propTypes={error:a.a.shape({message:a.a.string}),noPrefix:a.a.bool,skipRetryMessage:a.a.bool}}).call(this,n(28),n(3))},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"H",(function(){return s})),n.d(t,"M",(function(){return l})),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 m})),n.d(t,"N",(function(){return p})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return h})),n.d(t,"j",(function(){return O})),n.d(t,"l",(function(){return _})),n.d(t,"m",(function(){return E})),n.d(t,"n",(function(){return k})),n.d(t,"o",(function(){return y})),n.d(t,"q",(function(){return j})),n.d(t,"s",(function(){return S})),n.d(t,"r",(function(){return w})),n.d(t,"t",(function(){return T})),n.d(t,"w",(function(){return C})),n.d(t,"u",(function(){return N})),n.d(t,"v",(function(){return A})),n.d(t,"x",(function(){return L})),n.d(t,"y",(function(){return x})),n.d(t,"A",(function(){return D})),n.d(t,"B",(function(){return I})),n.d(t,"C",(function(){return P})),n.d(t,"D",(function(){return R})),n.d(t,"k",(function(){return M})),n.d(t,"F",(function(){return B})),n.d(t,"z",(function(){return H})),n.d(t,"G",(function(){return F})),n.d(t,"E",(function(){return z})),n.d(t,"i",(function(){return U})),n.d(t,"p",(function(){return G})),n.d(t,"Q",(function(){return V})),n.d(t,"P",(function(){return W}));var r="core/user",i="connected_url_mismatch",a="__global",o="temporary_persist_permission_error",c="adblocker_active",s="googlesitekit_authenticate",l="googlesitekit_setup",u="googlesitekit_view_dashboard",d="googlesitekit_manage_options",g="googlesitekit_read_shared_module_data",f="googlesitekit_manage_module_sharing_options",m="googlesitekit_delegate_module_sharing_management",p="googlesitekit_update_plugins",v="kmAnalyticsAdSenseTopEarningContent",b="kmAnalyticsEngagedTrafficSource",h="kmAnalyticsLeastEngagingPages",O="kmAnalyticsNewVisitors",_="kmAnalyticsPopularAuthors",E="kmAnalyticsPopularContent",k="kmAnalyticsPopularProducts",y="kmAnalyticsReturningVisitors",j="kmAnalyticsTopCities",S="kmAnalyticsTopCitiesDrivingLeads",w="kmAnalyticsTopCitiesDrivingAddToCart",T="kmAnalyticsTopCitiesDrivingPurchases",C="kmAnalyticsTopDeviceDrivingPurchases",N="kmAnalyticsTopConvertingTrafficSource",A="kmAnalyticsTopCountries",L="kmAnalyticsTopPagesDrivingLeads",x="kmAnalyticsTopRecentTrendingPages",D="kmAnalyticsTopTrafficSource",I="kmAnalyticsTopTrafficSourceDrivingAddToCart",P="kmAnalyticsTopTrafficSourceDrivingLeads",R="kmAnalyticsTopTrafficSourceDrivingPurchases",M="kmAnalyticsPagesPerVisit",B="kmAnalyticsVisitLength",H="kmAnalyticsTopReturningVisitorPages",F="kmSearchConsolePopularKeywords",z="kmAnalyticsVisitsPerVisitor",U="kmAnalyticsMostEngagingPages",G="kmAnalyticsTopCategories",V=[v,b,h,O,_,E,k,y,G,j,S,w,T,C,N,A,x,D,I,M,B,H,z,U,G],W=[].concat(V,[F])},71:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?w(a,v(v({},o),{},{unit:"second"})):"",i?w(i,v(v({},o),{},{unit:"minute"})):"",r?w(r,v(v({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(m.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(m.__)("%ds","google-site-kit"),a);if(0===e)return t;var n=Object(m.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(m.__)("%dm","google-site-kit"),i),o=Object(m.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
Object(m.__)("%dh","google-site-kit"),r);return Object(m.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",i?n:"",r?o:"").trim()}}},E=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},k=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(m.sprintf)(
// translators: %s: an abbreviated number in millions.
Object(m.__)("%sM","google-site-kit"),w(E(e),e%10==0?{}:t)):1e4<=e?Object(m.sprintf)(
// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(E(e))):1e3<=e?Object(m.sprintf)(
// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(E(e),e%10==0?{}:t)):w(e,{signDisplay:"never",maximumFractionDigits:1})};function y(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=v({},e)),t}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n=y(t),r=n.style,i=void 0===r?"metric":r;return"metric"===i?k(e):"duration"===i?b(e,n):"durationISO"===i?h(e):w(e,n)}var S=f()(console.warn),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?C():n,a=u()(t,["locale"]);try{return new Intl.NumberFormat(r,a).format(e)}catch(t){S("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,g=Object.entries(a);d<g.length;d++){var f=i()(g[d],2),m=f[0],p=f[1];c[m]&&p===c[m]||(s.includes(m)||(l[m]=p))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?C():n,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:a,type:c});return s.format(e)}
/* translators: used between list items, there is a space after the comma. */var l=Object(m.__)(", ","google-site-kit");return e.join(l)},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(28))},88:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(160),i=n.n(r)()(e)}).call(this,n(28))},89:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(10),o=n.n(a);function ChangeArrow(t){var n=t.direction,r=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:i,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:i.a.string,invertColor:i.a.bool,width:i.a.number,height:i.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(3))},9:function(e,t,n){"use strict";n.d(t,"I",(function(){return i.b})),n.d(t,"J",(function(){return i.c})),n.d(t,"F",(function(){return a.a})),n.d(t,"K",(function(){return a.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 p})),n.d(t,"j",(function(){return v})),n.d(t,"i",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"c",(function(){return j})),n.d(t,"e",(function(){return S})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return T})),n.d(t,"f",(function(){return C})),n.d(t,"n",(function(){return N})),n.d(t,"w",(function(){return A})),n.d(t,"p",(function(){return L})),n.d(t,"G",(function(){return x})),n.d(t,"s",(function(){return D})),n.d(t,"v",(function(){return I})),n.d(t,"k",(function(){return P})),n.d(t,"o",(function(){return R.b})),n.d(t,"h",(function(){return R.a})),n.d(t,"t",(function(){return M.b})),n.d(t,"q",(function(){return M.a})),n.d(t,"A",(function(){return M.c})),n.d(t,"x",(function(){return B})),n.d(t,"u",(function(){return H})),n.d(t,"E",(function(){return U})),n.d(t,"D",(function(){return G.a})),n.d(t,"g",(function(){return V})),n.d(t,"L",(function(){return W})),n.d(t,"l",(function(){return q}));var r=n(15),i=n(40),a=n(76),o=n(36),c=n.n(o),s=n(103),l=n.n(s),u=function(e){return l()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===c()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))};n(104);var d=n(87);function g(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function f(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function m(e){return e.replace(/\n/gi,"<br>")}function p(e){for(var t=e,n=0,r=[g,f,m];n<r.length;n++){t=(0,r[n])(t)}return t}var v=function(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]},b=function(e){var t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t},h=n(14),O=n.n(h),_=n(12),E=n.n(_),k=n(2),y="Invalid dateString parameter, it must be a string.",j='Invalid date range, it must be a string with the format "last-x-days".',S=60,w=60*S,T=24*w,C=7*T;function N(){var e=function(e){return Object(k.sprintf)(/* translators: %s: number of days */
Object(k._n)("Last %s day","Last %s days",e,"google-site-kit"),e)};return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!Object(r.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var n=new Date(e);return Object(r.isDate)(n)&&!isNaN(n)}function L(e){E()(Object(r.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 x(e){E()(A(e),y);var t=e.split("-"),n=O()(t,3),r=n[0],i=n[1],a=n[2];return new Date(r,i-1,a)}function D(e,t){return L(P(e,t*T))}function I(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 P(e,t){E()(A(e)||Object(r.isDate)(e)&&!isNaN(e),y);var n=A(e)?Date.parse(e):e.getTime();return new Date(n-1e3*t)}var R=n(107),M=n(85);function B(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function H(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var F=n(27),z=n.n(F),U=function(e){return Array.isArray(e)?z()(e).sort():e},G=n(92);function V(e,t){var n=function(e){return"0"===e||0===e};if(n(e)&&n(t))return 0;if(n(e)||Number.isNaN(e))return null;var r=(t-e)/e;return Number.isNaN(r)||!Number.isFinite(r)?null:r}var W=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},q=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(r.unescape)(t)}},90:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var r=n(14),i=n.n(r),a=n(196),o=n(138),c={},s=void 0===e?null:e,l=function(){return[e.innerWidth,e.innerHeight]},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=e.fps,n=e.leading,r=e.initialWidth,u=void 0===r?0:r,d=e.initialHeight,g=void 0===d?0:d,f=Object(a.a)("undefined"==typeof document?[u,g]:l,t,n),m=i()(f,2),p=m[0],v=m[1],b=function(){return v(l)};return Object(o.a)(s,"resize",b),Object(o.a)(s,"orientationchange",b),p},d=function(e){return u(e)[0]}}).call(this,n(28))},92:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(12),i=n.n(r),a=function(e,t){var n=t.dateRangeLength;i()(Array.isArray(e),"report must be an array to partition."),i()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=-1*n;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},93:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}));var r=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function a(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},94:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c}));var r=n(23),i=n(120);function a(t,n){var r=document.querySelector(t);if(!r)return 0;var i=r.getBoundingClientRect().top,a=o(n);return i+e.scrollY-a}function o(e){var t=c(e),n=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(n).reduce((function(e,t){return e+t.offsetHeight}),0)}function c(t){var n=0,a=document.querySelector(".googlesitekit-header");return n=!!a&&"sticky"===e.getComputedStyle(a).position?function(e){var t=document.querySelector(".googlesitekit-header");if(t){if(e===r.b)return t.offsetHeight;var n=t.getBoundingClientRect().bottom;return n<0?0:n}return 0}(t):function(e){var t=document.querySelector("#wpadminbar");return t&&e!==r.b?t.offsetHeight:0}(t),(n=Object(i.a)(n))<0?0:n}}).call(this,n(28)