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

56 lines
234 KiB
JavaScript
Raw Normal View History

2023-12-07 09:44:11 +01:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[28],{1:function(e,t){e.exports=googlesitekit.i18n},100:function(e,t,n){"use strict";(function(e,a){n.d(t,"c",(function(){return O})),n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return TourTooltips}));var r=n(6),i=n.n(r),o=n(87),c=n(27),l=n(0),s=n.n(l),u=n(1),d=n(4),m=n.n(d),g=n(28),f=n(7),p=n(33),y=n(116),h=n(19);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var v=m.a.useSelect,T=m.a.useDispatch,k=m.a.useRegistry,O={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},N={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")},E={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)"}}},_="feature_tooltip_view",S="feature_tooltip_advance",A="feature_tooltip_return",j="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"),d="".concat(r,"-run"),m=T(g.b).setValue,C=T(f.a).dismissTour,w=k(),Z=Object(h.a)(),M=v((function(e){return e(g.b).getValue(u)})),L=v((function(e){return e(g.b).getValue(d)&&!1===e(f.a).isTourDismissed(r)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(r)),m(d,!0)}));var P=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return a.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,a=e.lifecycle,r=e.size,i=e.status,o=e.type,s=t+1,u="function"==typeof l?l(Z):l;o===c.b.TOOLTIP&&a===c.c.TOOLTIP?Object(p.b)(u,_,s):n===c.a.CLOSE&&a===c.c.COMPLETE?Object(p.b)(u,j,s):n===c.a.NEXT&&i===c.d.FINISHED&&o===c.b.TOUR_END&&r===s&&Object(p.b)(u,I,s),a===c.c.COMPLETE&&i!==c.d.FINISHED&&(n===c.a.PREV&&Object(p.b)(u,A,s),n===c.a.NEXT&&Object(p.b)(u,S,s))}(t);var n=t.action,a=t.index,i=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),y=[c.d.FINISHED,c.d.SKIPPED].includes(i),h=g&&d===c.b.STEP_AFTER,b=y||h;if(c.b.STEP_BEFORE===d){var v,T,k=o.target;"string"==typeof o.target&&(k=e.document.querySelector(o.target)),null===(v=k)||void 0===v||null===(T=v.scrollIntoView)||void 0===T||T.call(v,{block:"center"})}f?function(e,t){m(u,e+(t===c.a.PREV?-1:1))}(a,n):b&&(e.document.body.classList.remove("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(r)),C(r)),s&&s(t,w)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:E,locale:N,run:L,showProgress:!0,stepIndex:M,steps:P,styles:O,tooltipComponent:y.a})}TourTooltips.propTypes={steps:s.a.arrayOf(s.a.object).isRequired,tourID:s.a.string.isRequired,gaEventCategory:s.a.oneOfType([s.a.string,s.a.func]).isRequired,callback:s.a.func}}).call(this,n(26),n(2))},101:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a=n(6),r=n.n(a),i=n(0),o=n.n(i),c=n(12),l=n.n(c),s=n(1),u={DEFAULT:"default",OVERLAY:"overlay",SMALL:"small",SMALL_OVERLAY:"small-overlay",LARGE:"large"};function GatheringDataNotice(t){var n=t.style;return e.createElement("div",{className:l()("googlesitekit-gathering-data-notice",r()({},"googlesitekit-gathering-data-notice-
/* translators: %s: source link */
Object(l.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(s.a,{key:"link",href:a,external:i})}))}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(2))},128:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return StoreErrorNotices}));var a=n(0),r=n.n(a),i=n(4),o=n.n(i),c=n(111),l=n(20),s=n(45),u=n(152),d=o.a.useSelect;function StoreErrorNotices(t){var n=t.moduleSlug,a=t.storeName,r=t.shouldDisplayError,i=d((function(e){return e(a).getErrors()})),o=d((function(e){return e(l.a).getModule(n)})),m=[];return i.filter((function(e){return!(!(null==e?void 0:e.message)||m.includes(e.message))&&(m.push(e.message),!0)})).map((function(t,n){var i=t.message;return Object(s.e)(t)&&(i=Object(u.a)(i,o)),e.createElement(c.a,{key:n,error:t,storeName:a,message:i,shouldDisplayError:r})}))}StoreErrorNotices.propTypes={storeName:r.a.string.isRequired,shouldDisplayError:r.a.func,moduleSlug:r.a.string}}).call(this,n(2))},129:function(e,t,n){"use strict";var a=n(3);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),a.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),a.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),a.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return a.createElement("svg",r({viewBox:"0 0 43 44"},e),i)}},13:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var a="core/site",r="primary",i="secondary"},130:function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(199),o=n(43),c=n(1),l=n(9),s=n(21),u=function ModalDialog(t){var n=t.dialogActive,a=t.handleDialog,r=t.title,u=t.provides,d=t.handleConfirm,m=t.subtitle,g=t.confirmButton,f=t.dependentModules,p=t.danger,y=t.inProgress,h=void 0!==y&&y,b=Object(i.a)(ModalDialog),v="googlesitekit-dialog-description-".concat(b),T=!(!u||!u.length);return e.createElement(l.Dialog,{open:n,"aria-describedby":T?v:void 0,tabIndex:"-1"},e.createElement(l.DialogTitle,null,r),m?e.createElement("p",{className:"mdc-dialog__lead"},m):[],e.createElement(l.DialogContent,null,T&&e.createElement("section",{id:v,className:"mdc-dialog__provides"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},u.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),f&&e.createElement("p",{className:"mdc-dialog__dependencies"},Object(o.a)(Object(c.sprintf)(
/* translators: %s is replaced with the dependent modules. */
Object(c.__)("<strong>Note:</strong> %s","google-site-kit"),f),{strong:e.createElement("strong",null)}))),e.createElement(l.DialogFooter,null,e.createElement(l.SpinnerButton,{onClick:d,danger:p,disabled:h,isSaving:h},g||Object(c.__)("Disconnect","google-site-kit")),e.createElement(s.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:a,disabled:h},Object(c.__)("Cancel","google-site-kit"))))};u.displayName="Dialog",u.propTypes={dialogActive:r.a.bool,handleDialog:r.a.func,handleConfirm:r.a.func.isRequired,title:r.a.string,description:r.a.string,confirmButton:r.a.string,danger:r.a.bool},u.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=u}).call(this,n(2))},131:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNotice}));var a=n(12),r=n.n(a),i=n(0),o=n.n(i),c=n(1),l=n(4),s=n.n(l),u=n(255),d=n(256),m=n(83),g=n(7),f=n(9),p=s.a.useSelect,y=s.a.useDispatch;function SettingsNotice(t){var n=t.className,a=t.children,i=t.type,o=t.dismiss,l=void 0===o?"":o,s=t.Icon,h=void 0===s?Object(m.d)(i):s,b=t.OuterCTA,v=y(g.a).dismissItem,T=p((function(e){return l?e(g.a).isItemDismissed(l):void 0}));if(l&&T)return null;var k=a?d.a:u.a;return e.createElement("div",{className:r()(n,"googlesitekit-settings-notice","googlesitekit-settings-notice--".concat(i),{"googlesitekit-settings-notice--single-row":!a,"googlesitekit-settings-notice--multi-row":a})},e.createElement("div",{className:"googlesitekit-settings-notice__icon"},e.createElement(h,{width:"20",height:"20"})),e.createElement("div",{className:"googlesitekit-settings-notice__body"},e.createElement(k,t)),l&&e.createElement("div",{className:"googlesitekit-settings-notice__button"},e.createElement(f.Button,{onClick:function(){v(l)}},Object(c.__)("OK, Got it!","google-site-kit"))),b&&e.createElement("div",{className:"googlesitekit-settings-notice__button"},e.createElement(b,null)))}SettingsNotice.propTypes={className:o.a.string,children:o.a.node,notice:o.a.node.isRequired,type:o.a.oneOf([m.a,m.c,m.b]),Icon:o.a.elementType,LearnMore:o.a.elementType,CTA:o.a.elementType,OuterCTA:o.a.elementType},SettingsNotice.defaultProps={type:m.a}}).call(this,n(2))},132:function(e,t,n){"use strict";var a=n(3),r=Object(a.createContext)(!1);t.a=r},138:function(e,t,n){"use strict";var a=n(3);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"currentColor"});t.a=function SvgClose(e){return a.createElement("svg",r({viewBox:"0 0 14 14",fill:"none"},e),i)}},139:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c}));var a=n(15),r=[{countryCode:"AF",displayName:"Afghanistan",defaultTimeZoneId:"Asia/Kabul",timeZone:[{timeZoneId:"Asia/Kabul",displayName:"(GMT+04:30) Afghanistan Time"}],tosLocale:{language:"en",country:"US"}},{countryCode:"AL",displayName:"Albania",defaultTimeZoneId:"Europe/Tirane",timeZone:[{timeZoneId:"Europe/Tirane",displayName:"(GMT+02:00) Albania Time"}],tosLocale:{language:"en",country:"GB"}},{countryCode:"DZ",displayName:"Algeria",defaultTimeZoneId:"Africa/Algiers",timeZone:[{timeZoneId:"Africa/Algiers",displayName:"(GMT+01:00) Algeria Time"}],tosLocale:{language:"en",country:"GB"}},{countryCode:"AS",displayName:"American Samoa",defaultTimeZoneId:"Pacific/Pago_Pago",timeZone:[{timeZoneId:"Pacific/Pago_Pago",displayName:"(GMT-11:00) American Samoa Time"}],tosLocale:{language:"en",country:"US"}},{countryCode:"AD",displayName:"Andorra",defaultTimeZoneId:"Europe/Andorra",timeZone:[{timeZoneId:"Europe/Andorra",displayName:"(GMT+02:00) Andorra Time"}],tosLocale:{language:"en",country:"GB"}},{countryCode:"AQ",displayName:"Antarctica",defaultTimeZoneId:"Antarctica/Palmer",timeZone:[{timeZoneI
/* translators: %s: module name */
Object(a.__)("Your Google account does not have sufficient permissions to access %s data, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"),c)),s&&s.login&&(d=Object(a.sprintf)(
/* translators: %s: owner name */
Object(a.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),s.login)),d||(d=Object(a.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(u," ").concat(d)}},153:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(10),r=n.n(a),i=function(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 a=-1*n;return{currentRange:e.slice(a),compareRange:e.slice(2*a,a)}}},154:function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,a=e.slice(6,8);return new Date(t,n.toString(),a)}return!1}},155:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return RecoverableModules}));var a=n(0),r=n.n(a),i=n(1),o=n(4),c=n.n(o),l=n(20),s=n(97),u=c.a.useSelect;function RecoverableModules(t){var n=t.moduleSlugs,a=u((function(e){var t=e(l.a).getModules();if(void 0!==t)return n.map((function(e){return t[e].name}))}));if(void 0===a)return null;var r=1===a.length?Object(i.sprintf)(
/* translators: %s: Module name */
Object(i.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),a[0]):Object(i.sprintf)(
/* translators: %s: List of module names */
Object(i.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),a.join(Object(i._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(s.a,{title:Object(i.__)("Data Unavailable","google-site-kit"),description:r})}RecoverableModules.propTypes={moduleSlugs:r.a.arrayOf(r.a.string).isRequired}}).call(this,n(2))},156:function(e,t,n){"use strict";(function(e){var a=n(17),r=n.n(a),i=n(164),o=n.n(i),c=n(0),l=n.n(c),s=n(3),u=n(1),d=n(208),m=n(347),g=n(348),f=n(9);function ReportErrorButton(t){var n=t.message,a=t.componentStack,i=Object(s.useState)(!1),c=r()(i,2),l=c[0],p=c[1];return e.createElement(f.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(){o()("`".concat(n,"\n").concat(a,"`")),p(!0)},trailingIcon:e.createElement(d.a,{className:"mdc-button__icon",icon:l?m.a:g.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(2))},157:function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return FeatureTours}));var r=n(87),i=n(3),o=n(4),c=n.n(o),l=n(7),s=n(19),u=n(100),d=c.a.useSelect,m=c.a.useDispatch;function FeatureTours(){var t=Object(s.a)(),n=m(l.a).triggerTourForView;Object(r.a)((function(){n(t)}));var o=d((function(e){return e(l.a).getCurrentTour()}));return Object(i.useEffect)((function(){if(o){var t=document.getElementById("js-googlesitekit-main-dashboard"),n=new ResizeObserver((function(){e.dispatchEvent(new Event("resize"))}));return n.observe(t),function(){n.disconnect()}}}),[o]),o?a.createElement(u.a,{tourID:o.slug,steps:o.steps,gaEventCategory:o.gaEventCategory,callback:o.callback}):null}}).call(this,n(26),n(2))},158:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var a=n(6),r=n.n(a),i=n(0),o=n.n(i),c=n(15),l=n(3),s=n(1),u=n(4),d=n.n(u),m=n(20),g=n(45),f=n(152),p=n(85),y=n(81),h=n(97),b=n(170),v=n(38);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=d.a.useSelect;function ReportError(t){var n,a=t.moduleSlug,r=t.error,i=Object(v.a)(),o=O((function(e){return e(m.a).getModule(a)})),u=Array.isArray(r)?r:[r],d=function(e){return Object(g.e)(e)?i?(n=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Access lost to %s","google-site-kit"),null==o?void 0:o.name),Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("The administrator sharing this module with you has lost access to the %s service, so you wont be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),null==o?void 0:o.name)):(n=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),Object(f.a)(e.message,o)):Object(g.b)(e)},T=Object(c.uniqWith)(u.map((function(e){var t;return k(k({},e),{},{message:d(e),reconnectURL:null===(t=e.data)||void 0===t?void 0:t.reconnectURL})})),(function(e,t){return e.message===t.message&&e.reconnectURL===t.reconnectURL})),N=u.some((function(e){return Object(g.e)(e)}));N||1!==T.length?!N&&T.length>1&&(n=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Data errors in %s","google-site-kit"),null==o?void 0:o.name)):n=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name);var E=e.createElement(l.Fragment,null,T.map((function(t){var n,a=null==r||null===(n=r.data)||void 0===n?void 0:n.reconnectURL;return a?e.createElement(y.a,{key:t.message,message:t.message,reconnectURL:a}):e.createElement("p",{key:t.message},p.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(h.a,{title:n,description:E,error:!0},e.createElement(b.a,{moduleSlug:a,error:r}))}ReportError.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired}}).call(this,n(2))},160:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var a=n(0),r=n.n(a),i=n(1),o=n(4),c=n.n(o),l=n(20),s=n(97),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,a=u((function(e){return e(l.a).getModule(n)}));return e.createElement(s.a,{title:Object(i.sprintf)(
/* translators: %s: Module name */
Object(i.__)("%s Gathering Data","google-site-kit"),null==a?void 0:a.name),description:Object(i.sprintf)(
/* translators: %s: Module name */
Object(i.__)("%s data is not yet available, please check back later","google-site-kit"),null==a?void 0:a.name)})}ReportZero.propTypes={moduleSlug:r.a.string.isRequired}}).call(this,n(2))},162:function(e,t,n){"use strict";var a=n(132),r=(a.a.Consumer,a.a.Provider);t.a=r},166:function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(12),o=n.n(i),c=n(3),l=n(18),s=Object(c.forwardRef)((function(t,n){var a=t.id,r=t.className,i=t.children,s=t.secondaryPane;return e.createElement("section",{id:a,className:o()(r,"googlesitekit-publisher-win"),ref:n},e.createElement(l.e,null,e.createElement(l.k,null,i)),s&&e.createElement(c.Fragment,null,e.createElement("div",{className:"googlesitekit-publisher-win__secondary-pane-divider"}),e.createElement(l.e,{className:"googlesitekit-publisher-win__secondary-pane"},e.createElement(l.k,null,e.createElement(l.a,{className:"googlesitekit-publisher-win__secondary-pane",size:12},s)))))}));s.displayName="Banner",s.propTypes={id:r.a.string,className:r.a.string,secondaryPane:r.a.node},t.a=s}).call(this,n(2))},167:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerTitle}));var a=n(6),r=n.n(a),i=n(0),o=n.n(i),c=n(12),l=n.n(c),s=n(108);function BannerTitle(t){var n=t.title,a=t.badgeLabel,i=t.WinImageSVG,o=t.winImageFormat,c=void 0===o?"":o,u=t.smallWinImageSVGWidth,d=void 0===u?75:u,m=t.smallWinImageSVGHeight,g=void 0===m?75:m;return n?e.createElement("div",{className:"googlesitekit-publisher-win__title-image-wrapper"},e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},n,a&&e.createElement(s.a,{label:a})),i&&e.createElement("div",{className:l()(r()({},"googlesitekit-publisher-win__image-".concat(c),c))},e.createElement(i,{width:d,height:g}))):null}BannerTitle.propTypes={title:o.a.string,badgeLabel:o.a.string,WinImageSVG:o.a.elementType,winImageFormat:o.a.string,smallWinImageSVGWidth:o.a.number,smallWinImageSVGHeight:o.a.number}}).call(this,n(2))},168:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerActions}));var a=n(5),r=n.n(a),i=n(16),o=n.n(i),c=n(17),l=n.n(c),s=n(0),u=n.n(s),d=n(223),m=n(3),g=n(4),f=n.n(g),p=n(9),y=n(32),h=n(21),b=f.a.useSelect;function BannerActions(t){var n=t.ctaLink,a=t.ctaLabel,i=t.ctaComponent,c=t.ctaTarget,s=t.ctaCallback,u=t.dismissLabel,g=t.dismissCallback,f=Object(m.useState)(!1),v=l()(f,2),T=v[0],k=v[1],O=Object(d.a)(),N=b((function(e){return!!n&&e(y.a).isNavigatingTo(n)})),E=function(){var e=o()(r.a.mark((function e(){var t,n,a,i=arguments;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(k(!0),t=i.length,n=new Array(t),a=0;a<t;a++)n[a]=i[a];return e.next=4,null==s?void 0:s.apply(void 0,n);case 4:O()&&k(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(!n&&!u&&!i)return null;var _=n||i?h.a:p.Button;return e.createElement("div",{className:"googlesitekit-publisher-win__actions"},i,a&&e.createElement(p.SpinnerButton,{className:"googlesitekit-notification__cta",href:n,target:c,onClick:E,disabled:T||N,isSaving:T||N},a),u&&e.createElement(_,{onClick:g,disabled:T||N},u))}BannerActions.propTypes={ctaLink:u.a.string,ctaLabel:u.a.string,ctaComponent:u.a.element,ctaTarget:u.a.string,ctaCallback:u.a.func,dismissLabel:u.a.string,dismissCallback:u.a.func}}).call(this,n(2))},169:function(e,t,n){"use strict";var a=n(3);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o=a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"});t.a=function SvgWarning(e){return a.createElement("svg",r({fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e),i,o)}},170:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportErrorActions}));var a=n(6),r=n.n(a),i=n(0),o=n.n(i),c=n(3),l=n(43),s=n(1)
/* translators: 1: property name, 2: property ID */
Object(r._x)("%1$s (%2$s)","Analytics property name and ID","google-site-kit"),o,a):o)}))):null}}).call(this,n(2))},361:function(e,t,n){"use strict";(function(e){n(6),n(5),n(16),n(3),n(1),n(9);var t=n(4),a=n.n(t);n(14),n(11),n(57),n(8),n(19);a.a.useSelect,a.a.useDispatch}).call(this,n(2))},362:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GA4ActivateSwitch}));var a=n(0),r=n.n(a),i=n(1),o=n(3),c=n(43),l=n(4),s=n.n(l),u=n(9),d=n(29),m=n(11),g=n(8),f=n(21),p=n(19),y=n(13),h=s.a.useSelect,b=s.a.useDispatch;function GA4ActivateSwitch(t){var n=t.onActivate,a=t.disabled,r=Object(p.a)(),l=h((function(e){return e(d.a).getValue(m.e,"enableGA4")})),s=h((function(e){return e(y.c).getDocumentationLinkURL("ga4")})),v=b(d.a).setValues,T=Object(o.useCallback)((function(){v(m.e,{enableGA4:!0}),Object(g.A)("".concat(r,"_analytics"),"activate_ga4"),"function"==typeof n&&n()}),[v,n,r]);return e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement(u.Switch,{label:Object(c.a)(Object(i.__)("Activate Google Analytics 4 and place code on your site. <a>Learn more</a>","google-site-kit"),{a:e.createElement(f.a,{href:s,external:!0})}),checked:l,disabled:a,onClick:T,hideLabel:!1}))}GA4ActivateSwitch.propTypes={onActivate:r.a.func,disabled:r.a.bool}}).call(this,n(2))},363:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(30),r=n.n(a),i=n(12),o=n.n(i),c=n(15),l=n(1),s=n(73),u=n(8),d=n(17),m=n.n(d),g=n(10),f=n.n(g);function p(e,t){var n=t.dateRangeLength;f()(Array.isArray(e),"report must be an array to partition."),f()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var a=function(t){return e.filter((function(e){return m()(e.dimensionValues,2)[1].value===t}))},r=-1*n;return{currentRange:a("date_range_0").slice(r),compareRange:a("date_range_1").slice(2*r,r)}}var y=n(154);function h(e,t){var n=[];return e.forEach((function(e){if(e.metricValues){var a=e.metricValues[t].value,r=e.dimensionValues[0].value,i=Object(y.a)(r);n.push([i,a])}})),n}function b(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[Object(l.__)("Users","google-site-kit"),Object(l.__)("Sessions","google-site-kit"),Object(l.__)("Engagement Rate","google-site-kit"),Object(l.__)("Session Duration","google-site-kit")],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[function(e){return parseFloat(e).toLocaleString()},function(e){return parseFloat(e).toLocaleString()},function(e){return Object(u.v)(e/100,{style:"percent",signDisplay:"never",maximumFractionDigits:2})},function(e){return Object(u.v)(e,"s")}],d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[c.identity,c.identity,function(e){return 100*e},c.identity],m=r()((null==e?void 0:e.rows)||[]),g=m.length;if(2*n>g){for(var f=new Date,y=0;n>y;y++){var b=(f.getMonth()+1).toString(),v=f.getDate().toString(),T=f.getFullYear().toString()+(2>b.length?"0":"")+b+(2>v.length?"0":"")+v;if(y>g){var k=[{dimensionValues:[{value:T},{value:"date_range_0"}],metricValues:[{value:0},{value:0}]},{dimensionValues:[{value:T},{value:"date_range_1"}],metricValues:[{value:0},{value:0}]}];m.unshift.apply(m,k)}f.setDate(f.getDate()-1)}m.push({dimensionValues:[{value:"0"},{value:"date_range_0"}]},{dimensionValues:[{value:"0"},{value:"date_range_1"}]})}var O=a[t]===Object(l.__)("Session Duration","google-site-kit"),N=O?"timeofday":"number",E=[[{type:"date",label:Object(l.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:N,label:a[t]},{type:N,label:Object(l.__)("Previous period","google-site-kit")}]],_=p(m,{dateRangeLength:n}),S=_.compareRange,A=_.currentRange,j=h(A,t),I=h(S,t),C=Object(s.b)(),w={weekday:"short",month:"short",day:"numeric"};return j.forEach((function(e,n){if(e[0]&&e[1]&&I[n]){var r=d[t],c=r(e[1]),s=r(I[n][1]),m=parseFloat(s),g=Object(u.e)(c,m),f=Object(u.j)(g),p=Object(l.sprintf)(
/* translators: 1: date for user stats, 2: previous date for user stats comparison */
Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(C,w),I[n][0].toLocaleDateString(C,w)),y=Object(l.sprintf)(
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),a[t],i[t](c),f,Object(u.v)(Math.abs(g),"%"));E.push([e[0],'<div class="'.concat(o()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":g>0,"googlesitekit-visualization-tooltip--down":g<0}),'">\n\t\t\t\t<p>').concat(p,"</p>\n\t\t\t\t<p>").concat(y,"</p>\n\t\t\t</div>"),O?Object(u.f)(c):c,O?Object(u.f)(s):s])}})),E}},369:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(6),r=n.n(a),i=n(10),o=n.n(i),c=n(110),l=n(139),s=n(14);function u(e){var t=e.siteName,n=e.siteURL,a=e.timezone,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Intl.DateTimeFormat().resolvedOptions().timeZone;o()(Object(c.a)(n),"A valid siteURL is required.");var u=new URL(n),d=u.hostname,m=u.pathname;return r()({accountName:t||d,propertyName:"".concat(d).concat(m).replace(/\/$/,""),dataStreamName:d,countryCode:l.c[a]||l.c[i],timezone:l.c[a]?a:i},s.c,!0)}},37:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="_googlesitekitDataLayer",r="data-googlesitekit-gtag"},370:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TimezoneSelect}));var a=n(3),r=n(1),i=n(9),o=n(4),c=n.n(o),l=n(139),s=n(11),u=n(29),d=c.a.useSelect,m=c.a.useDispatch;function TimezoneSelect(){var t=d((function(e){return e(u.a).getValue(s.d,"countryCode")})),n=d((function(e){return e(u.a).getValue(s.d,"timezone")})),o=m(u.a).setValues,c=Object(a.useCallback)((function(e,t){o(s.d,{timezone:t.dataset.value})}),[o]);return e.createElement(i.Select,{className:"googlesitekit-analytics__select-timezone",label:Object(r.__)("Timezone","google-site-kit"),value:n,onEnhancedChange:c,disabled:!t,enhanced:!0,outlined:!0},(l.d[t]||[]).map((function(t,n){var a=t.timeZoneId,r=t.displayName;return e.createElement(i.Option,{key:n,value:a},r)})))}}).call(this,n(2))},371:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AccountField}));var a=n(3),r=n(1),i=n(183),o=n(4),c=n.n(o),l=n(11),s=n(29),u=c.a.useSelect,d=c.a.useDispatch;function AccountField(){var t=u((function(e){return e(s.a).getValue(l.d,"accountName")})),n=d(s.a).setValues,o=Object(a.useCallback)((function(e){n(l.d,{accountName:e})}),[n]);return e.createElement(i.a,{label:Object(r.__)("Account","google-site-kit"),hasError:!t,value:t,setValue:o,name:"account"})}}).call(this,n(2))},372:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertyField}));var a=n(3),r=n(1),i=n(183),o=n(4),c=n.n(o),l=n(11),s=n(29),u=c.a.useSelect,d=c.a.useDispatch;function PropertyField(){var t=u((function(e){return e(s.a).getValue(l.d,"propertyName")})),n=d(s.a).setValues,o=Object(a.useCallback)((function(e){n(l.d,{propertyName:e})}),[n]);return e.createElement(i.a,{label:Object(r.__)("Property","google-site-kit"),value:t,hasError:!t,setValue:o,name:"property"})}}).call(this,n(2))},373:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CountrySelect}));var a=n(3),r=n(1),i=n(9),o=n(4),c=n.n(o),l=n(139),s=n(11),u=n(29),d=c.a.useSelect,m=c.a.useDispatch;function CountrySelect(){var t=d((function(e){return e(u.a).getValue(s.d,"countryCode")})),n=m(u.a).setValues,o=Object(a.useCallback)((function(e,a){var r=a.dataset.value;r!==t&&l.b[r]&&n(s.d,{countryCode:r,timezone:l.b[r].defaultTimeZoneId})}),[n,t]);return e.createElement(i.Select,{className:"googlesitekit-analytics__select-country",label:Object(r.__)("Country","google-site-kit"),value:t,onEnhancedChange:o,enhanced:!0,outlined:!0},l.a.map((function(t,n){var a=t.countryCode,r=t.displayName;return e.createElement(i.Option,{key:n,value:a},r)})))}}).call(this,n(2))},374:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebDataStreamField}));var a=n(3),r=n(1),i=n(183),o=n(4),c=n.n(o),l=n(11),s=n(29),u=c.a.useSelect,d=c.a.useDispatch;function WebDataStreamField(){var t=u((function(e){return e(s.a).getValue(l.d,"dataStreamName")})),n=d(s.a).setValues,o=Object(a.useCallback)((function(e){n(l.d,{dataStreamNa
/* translators: 1: date for user stats, 2: previous date for user stats comparison */
Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(M,L),Z[n][0].toLocaleDateString(M,L)),s=Object(l.sprintf)(
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),f[t],p[t](e[1]),i,Object(d.v)(Math.abs(r),"%"));S.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":r>0,"googlesitekit-visualization-tooltip--down":r<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),E?Object(d.f)(e[1]):e[1],E?Object(d.f)(Z[n][1]):Z[n][1]])}})),S}},59:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(37);function r(e){return function(){e[a.a]=e[a.a]||[],e[a.a].push(arguments)}}},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(3),r=Object(a.createContext)(""),i=(r.Consumer,r.Provider);t.b=r},63:function(e,t,n){"use strict";n.d(t,"d",(function(){return a.e})),n.d(t,"c",(function(){return a.d})),n.d(t,"b",(function(){return a.b})),n.d(t,"a",(function(){return a.a})),n.d(t,"e",(function(){return a.f})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return s})),n.d(t,"i",(function(){return u})),n.d(t,"j",(function(){return d.a})),n.d(t,"f",(function(){return g})),n.d(t,"k",(function(){return l.a}));var a=n(47),r=n(10),i=n.n(r),o=n(48),c=function(e){i()(Object(o.a)(e),a.c);var t="".concat(e.getMonth()+1),n="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,n.length<2?"0".concat(n):n].join("-")},l=n(51),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=Object(l.a)(e);return n.setDate(n.getDate()-t),c(n)},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]},d=n(54);var m=n(1);function g(){var e=function(e){return Object(m.sprintf)(
/* translators: %s: number of days */
Object(m._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}}}},64: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 o})),n.d(t,"d",(function(){return c}));var a=n(110);function r(e){try{return new URL(e).pathname}catch(e){}return null}function i(e,t){try{return new URL(t,e).href}catch(e){}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function o(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function c(e,t){if(!Object(a.a)(e))return e;if(e.length<=t)return e;var n=new URL(e),r=e.replace(n.origin,"");if(r.length<t)return r;var i=r.length-Math.floor(t)+1;return"…"+r.substr(i)}},65:function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(12),o=n.n(i),c=n(35);function PreviewBlock(t){var n=t.className,a=t.width,r=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,m=t.tabletHeight,g=t.desktopWidth,f=t.desktopHeight,p=Object(c.e)(),y=a,h=r;return c.b===p&&s&&u&&(y=s,h=u),c.c===p&&d&&m&&(y=d,h=m),(c.d===p||c.a===p)&&g&&f&&(y=g,h=f),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:y,height:h}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:r.a.string,width:r.a.string,height:r.a.string,shape:r.a.string,padding:r.a.bool,smallWidth:r.a.string,smallHeight:r.a.string,tabletWidth:r.a.string,tabletHeight:r.a.string,desktopWidth:r.a.string,desktopHeight:r.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(2))},651:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(1),r={animation:{startup:!0},chart:{title:Object(a.__)("Unique visitors","google-site-kit")},curveType:"function",height:270,width:"100%",chartArea:{height:"80%",left:20,right:20},legend:{position:"top",textStyle:{color:"#616161",fontSize:12}},hAxis:{format:"M/d/yy",gridlines:{color:"#fff"},textStyle:{color:"#616161",fontSize:12}},vAxis:{textPosition:"none",viewWindow:{min:0},gridlines:{color:"#eee"}},series:{0:{color:"#6380b8",targetAxisIndex:0},1:{color:"#6380b8",targetAxisIndex:0,lineDashStyle:[3,3],lineWidth:1}},focusTarget:"category",crosshair:{color:"gray",opacity:.1,orientation:"vertical",trigger:"both"},tooltip:{isHtml:!0,trigger:"both"}}},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"y",(function(){return c})),n.d(t,"D",(function(){return l})),n.d(t,"F",(function(){return s})),n.d(t,"B",(function(){return u})),n.d(t,"C",(function(){return d})),n.d(t,"A",(function(){return m})),n.d(t,"z",(function(){return g})),n.d(t,"E",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return h})),n.d(t,"i",(function(){return b})),n.d(t,"k",(function(){return v})),n.d(t,"l",(function(){return T})),n.d(t,"m",(function(){return k})),n.d(t,"n",(function(){return O})),n.d(t,"p",(function(){return N})),n.d(t,"q",(function(){return E})),n.d(t,"r",(function(){return _})),n.d(t,"s",(function(){return S})),n.d(t,"u",(function(){return A})),n.d(t,"j",(function(){return j})),n.d(t,"w",(function(){return I})),n.d(t,"t",(function(){return C})),n.d(t,"x",(function(){return w})),n.d(t,"v",(function(){return Z})),n.d(t,"h",(function(){return M})),n.d(t,"o",(function(){return L})),n.d(t,"H",(function(){return P})),n.d(t,"G",(function(){return G}));var a="core/user",r="connected_url_mismatch"
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(f._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?S(i,y(y({},o),{},{unit:"second"})):"",r?S(r,y(y({},o),{},{unit:"minute"})):"",a?S(a,y(y({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(f.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(f.__)("%ds","google-site-kit"),i);if(0===e)return t;var n=Object(f.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(f.__)("%dm","google-site-kit"),r),o=Object(f.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
Object(f.__)("%dh","google-site-kit"),a);return Object(f.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(f._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?t:"",r?n:"",a?o:"").trim()}}},k=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},O=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(f.sprintf)(// translators: %s: an abbreviated number in millions.
Object(f.__)("%sM","google-site-kit"),S(k(e),e%10==0?{}:t)):1e4<=e?Object(f.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(f.__)("%sK","google-site-kit"),S(k(e))):1e3<=e?Object(f.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(f.__)("%sK","google-site-kit"),S(k(e),e%10==0?{}:t)):S(e,{signDisplay:"never",maximumFractionDigits:1})};function N(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=y({},e)),t}function E(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=N(t),a=n.style,r=void 0===a?"metric":a;return"metric"===r?O(e):"duration"===r?h(e,n):"durationISO"===r?b(e):S(e,n)}var _=g()(console.warn),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?j():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(a,i).format(e)}catch(t){_("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(a),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,m=Object.entries(i);d<m.length;d++){var g=r()(m[d],2),f=g[0],p=g[1];c[f]&&p===c[f]||(l.includes(f)||(s[f]=p))}try{return new Intl.NumberFormat(a,s).format(e)}catch(t){return new Intl.NumberFormat(a).format(e)}},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?j():n,r=t.style,i=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(a,{style:i,type:c});return l.format(e)}
/* translators: used between list items, there is a space after the comma. */var s=Object(f.__)(", ","google-site-kit");return e.join(s)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var a=n.match(/^(\w{2})?(_)?(\w{2})/);if(a&&a[0])return a[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(26))},74:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a={EXTERNAL:"external",INTERNAL:"internal"}},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(34),r=n.n(a),i=n(85),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===r()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},8:function(e,t,n){"use strict";n.d(t,"A",(function(){return r.b})),n.d(t,"B",(function(){return r.c})),n.d(t,"x",(function(){return i.a})),n.d(t,"C",(function(){return i.b})),n.d(t,"z",(function(){return u})),n.d(t,"h",(function(){return d.a})),n.d(t,"v",(function(){return d.d})),n.d(t,"w",(function(){return d.e})),n.d(t,"s",(function(){return d.c})),n.d(t,"m",(function(){return d.b})),n.d(t,"t",(function(){return p})),n.d(t,"f",(function(){return y})),n.d(t,"b",(function(){return h.b})),n.d(t,"a",(function(){return h.a})),n.d(t,"c",(function(){return h.e})),n.d(t,"k",(function(){return h.g})),n.d(t,"n",(function(){return h.h})),n.d(t,"i",(function(){return h.f})),n.d(t,"y",(function(){return h.k})),n.d(t,"j",(function(){return b.b})),n.d(t,"e",(function(){return b.a})),n.d(t,"p",(function(){return v.b})),n.d(t,"l",(function(){return v.a})),n.d(t,"u",(function(){return v.c})),n.d(t,"r",(function(){return T})),n.d(t,"q",(function(){return k})),n.d(t,"o",(function(){return O})),n.d(t,"d",(function(){return N})),n.d(t,"D",(function(){return E})),n.d(t,"g",(function(){return _}));var a=n(15),r=n(33),i=n(75),o=n(34),c=n.n(o),l=n(98),s=n.n(l),u=function(e){return s()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(a){var r=t[a];r&&"object"===c()(r)&&!Array.isArray(r)&&(r=e(r)),n[a]=r})),n}(e)))};n(102);var d=n(73);function m(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function g(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function f(e){return e.replace(/\n/gi,"<br>")}function p(e){for(var t=e,n=0,a=[m,g,f];n<a.length;n++){t=(0,a[n])(t)}return t}var y=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)]},h=n(63),b=n(103),v=n(64);function T(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function k(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var O=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}};function N(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 a=(t-e)/e;return Number.isNaN(a)||!Number.isFinite(a)?null:a}var E=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},_=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(a.unescape)(t)}},81:function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(110),o=n(1),c=n(8);function ErrorText(t){var n=t.message,a=t.reconnectURL,r=t.noPrefix;if(!n)return null;var l=n;void 0!==r&&r||(l=Object(o.sprintf)(
/* translators: %s: Error message */
Object(o.__)("Error: %s","google-site-kit"),n)),a&&Object(i.a)(a)&&(l=l+" "+Object(o.sprintf)(
/* translators: %s: Reconnect URL */
Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),a));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.x)(l,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:r.a.string.isRequired,reconnectURL:r.a.string,noPrefix:r.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(2))},83:function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return v}));var a=n(6),r=n.n(a),i=n(3);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var c=i.createElement("path",{d:"M10 15.27L16.18 19l-1.64-7.03L20 7.24l-7.19-.61L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19 10 15.27z"});var l=function SvgInfoIcon(e){return i.createElement("svg",o({viewBox:"0 0 20 20",fill:"currentColor"},e),c)};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var u=i.createElement("path",{d:"M0 4h2v7H0zm0-4h2v2H0z",fill:"currentColor",fillRule:"evenodd"});var d,m=function SvgSuggestionIcon(e){return i.createElement("svg",s({viewBox:"0 0 2 11"},e),u)},g=n(173),f=n(115),p="warning",y="info",h="suggestion",b=(d={},r()(d,y,l),r()(d,p,g.a),r()(d,h,m),d),v=function(e){return b[e]||f.a}},84:function(e,t,n){"use strict";var a=n(123);n.d(t,"a",(function(){return a.a}));var r=n(124);n.d(t,"c",(function(){return r.a}));var i=n(125);n.d(t,"b",(function(){return i.a}))},85:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var a=n(136),r=n.n(a)()(e)}).call(this,n(26))},86:function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(12),o=n.n(i);function ChangeArrow(t){var n=t.direction,a=t.invertColor,r=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":a}),width:r,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction: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(2))},88:function(e,t,n){"use strict";var a=n(131);n.d(t,"c",(function(){return a.a}));var r=n(83);n.d(t,"b",(function(){return r.c})),n.d(t,"a",(function(){return r.a}))},9:function(e,t){e.exports=googlesitekit.components},90:function(e,t,n){"use strict";(function(e){var a=n(23),r=n.n(a),i=n(25),o=n.n(i),c=n(0),l=n.n(c),s=n(12),u=n.n(s);function VisuallyHidden(t){var n=t.className,a=t.children,i=o()(t,["className","children"]);return a?e.createElement("span",r()({},i,{className:u()("screen-reader-text",n)}),a):null}VisuallyHidden.propTypes={className:l.a.string,children:l.a.node},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(2))},926:function(e,t,n){"use strict";(function(e){var a=n(17),r=n.n(a),i=n(273),o=n(3),c=n(1),l=n(4),s=n.n(l),u=n(21),d=n(927),m=n(162),g=n(13),f=s.a.useSelect;t.a=function WPDashboardApp(){var t=Object(o.useRef)(),n=Object(i.a)(t,{threshold:0}),a=f((function(e){return e(g.c).getAdminURL("googlesitekit-dashboard")})),l=Object(o.useState)({key:"WPDashboardApp",value:!!(null==n?void 0:n.intersectionRatio)}),s=r()(l,2),p=s[0],y=s[1];return Object(o.useEffect)((function(){y({key:"WPDashboardApp",value:!!(null==n?void 0:n.intersectionRatio)})}),[n]),void 0===a?e.createElement("div",{ref:t}):a?e.createElement(m.a,{value:p},e.createElement("div",{className:"googlesitekit-wp-dashboard",ref:t},e.createElement("div",{class
/* translators: %s: number of days */
Object(s._n)("Unique visitors over the last %s day","Unique visitors over the last %s days",v,"google-site-kit"),v)),e.createElement(y.a,{chartType:"LineChart",data:A,loadingHeight:"270px",loadingWidth:"100%",loaded:!(_||void 0===a),options:I,gatheringData:a}))}WPDashboardUniqueVisitorsChartGA4.propTypes={WPDashboardReportError:l.a.elementType.isRequired}}).call(this,n(2))},934:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WPDashboardActivateAnalyticsCTA}));var a=n(1),r=n(525),i=n(935),o=n(425),c=n(328);function WPDashboardActivateAnalyticsCTA(){return e.createElement(o.a,null,e.createElement(c.a,{title:Object(a.__)("Traffic","google-site-kit"),GraphSVG:r.a,showIcons:!1}),e.createElement(c.a,{title:Object(a.__)("Most popular content","google-site-kit"),GraphSVG:i.a,showIcons:!1}))}}).call(this,n(2))},935:function(e,t,n){"use strict";var a=n(3);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{d:"M96.91 4.813l1.34-4.5h1.305L97.575 6h-.86l.195-1.188zm-1.234-4.5l1.336 4.5L97.215 6h-.867L94.378.312h1.298zm5.527 1.46V6h-1.129V1.773h1.129zM100.004.672c0-.164.057-.3.172-.406a.648.648 0 01.461-.16c.19 0 .342.053.457.16a.526.526 0 01.176.406c0 .164-.059.3-.176.406a.644.644 0 01-.457.16.648.648 0 01-.461-.16.53.53 0 01-.172-.406zm4.074 5.406c-.328 0-.622-.052-.883-.156a1.95 1.95 0 01-.664-.442 1.983 1.983 0 01-.414-.652 2.204 2.204 0 01-.144-.797v-.156c0-.32.045-.613.136-.879.092-.266.222-.496.391-.691.172-.196.38-.345.625-.45.245-.106.521-.16.828-.16.3 0 .565.05.797.149.232.099.426.24.582.422.159.182.279.4.359.656.081.252.121.534.121.844v.468h-3.359v-.75h2.254v-.086a.98.98 0 00-.086-.418.665.665 0 00-.25-.296.774.774 0 00-.43-.11.717.717 0 00-.382.098.756.756 0 00-.262.273 1.496 1.496 0 00-.149.414 2.656 2.656 0 00-.046.516v.156c0 .17.023.326.07.469.049.143.118.267.207.371a.94.94 0 00.328.242c.13.058.277.086.441.086.204 0 .392-.039.567-.117a1.23 1.23 0 00.457-.363l.547.593a1.67 1.67 0 01-.364.368 1.941 1.941 0 01-.546.289c-.214.073-.457.11-.731.11zm3.582-1.172l.879-3.133h.715l-.231 1.23L108.145 6h-.598l.113-1.094zm-.445-3.133l.629 3.13.058 1.097h-.703l-1.07-4.227h1.086zm2.844 3.079l.613-3.079h1.09L110.691 6h-.699l.067-1.148zm-.707-3.079l.875 3.11.121 1.117h-.602l-.879-2.992-.222-1.235h.707zm5.261 3.059a.364.364 0 00-.07-.219.616.616 0 00-.262-.18 2.555 2.555 0 00-.543-.156 4.25 4.25 0 01-.597-.175 2.052 2.052 0 01-.477-.262 1.128 1.128 0 01-.312-.36.994.994 0 01-.114-.48c0-.177.038-.344.114-.5.078-.156.188-.294.332-.414.145-.122.323-.218.531-.285.211-.07.448-.106.711-.106.367 0 .682.059.945.176.266.117.469.279.609.484.144.204.215.435.215.696h-1.125a.6.6 0 00-.07-.293.465.465 0 00-.211-.207.753.753 0 00-.367-.078.734.734 0 00-.324.066.495.495 0 00-.211.172.413.413 0 00-.032.41c.029.05.075.095.137.137.063.041.143.08.242.117.102.034.227.065.375.094.305.062.577.144.817.246.239.099.429.234.57.406.141.17.211.392.211.668 0 .188-.042.36-.125.516a1.242 1.242 0 01-.359.41 1.83 1.83 0 01-.563.27 2.624 2.624 0 01-.73.093c-.394 0-.727-.07-1-.21a1.59 1.59 0 01-.618-.536 1.245 1.245 0 01-.207-.672h1.067a.622.622 0 00.117.371.645.645 0 00.285.203c.117.042.244.063.379.063a.97.97 0 00.363-.059.51.51 0 00.219-.164.397.397 0 00.078-.242z",fill:"#C7C7C7"}),o=a.createElement("rect",{x:103,y:18.6,width:13.3,height:4.2,rx:2.1,fill:"#C7C7C7"}),c=a.createElement("rect",{x:107,y:33,width:9.1,height:4.2,rx:2.1,fill:"#C7C7C7"}),l=a.createElement("rect",{x:107,y:47,width:9.1,height:4.2,rx:2.1,fill:"#C7C7C7"}),s=a.createElement("rect",{x:110,y:61,width:5.6,height:4.2,rx:2.1,fill:"#C7C7C7"}),u=a.createElement("path",{d:"M2.848 17.981v5.72h-.723v-4.817l-1.457.531v-.652l2.066-.782h.114zm1.351 19.125v.594H.477v-.52l1.863-2.074c.229-.255.406-.47.531-.648.128-.18.216-.34.266-.48a1.27 1.27 0 00.078-.438c0-.188-.04-.357-.117-.508a.879.879 0 00-.336-.367 1.011 1.011 0 00-.54-.137c-.252 0-.463.05-.632.149a.913.913 0 00-.375.406 1.38 1.38 0 00-.125.602H.367c0-.3