kollapsminoriteten/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-widgets-4240f...

40 lines
64 KiB
JavaScript
Raw Normal View History

2023-05-23 23:18:12 +02:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[28],{1:function(e,t){e.exports=googlesitekit.i18n},10:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return a})),r.d(t,"i",(function(){return c})),r.d(t,"k",(function(){return u})),r.d(t,"g",(function(){return s})),r.d(t,"h",(function(){return l})),r.d(t,"f",(function(){return d})),r.d(t,"e",(function(){return f})),r.d(t,"j",(function(){return g}));var n="core/user",i="connected_url_mismatch",o="__global",a="googlesitekit_authenticate",c="googlesitekit_setup",u="googlesitekit_view_dashboard",s="googlesitekit_manage_options",l="googlesitekit_read_shared_module_data",d="googlesitekit_manage_module_sharing_options",f="googlesitekit_delegate_module_sharing_management",g="googlesitekit_update_plugins"},105:function(e,t,r){"use strict";var n=r(2),i=r(39),o=Object(n.createContext)(i.a);t.a=o},108:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),o=r(11),a=r.n(o),c=r(14),u=r(22),s=function CTA(t){var r=t.title,n=t.description,i=t.ctaLink,o=t.ctaLabel,s=t.ctaLinkExternal,l=t.ctaType,d=t.error,f=t.onClick,g=t["aria-label"],p=t.children;return e.createElement("div",{className:a()("googlesitekit-cta",{"googlesitekit-cta--error":d})},r&&e.createElement("h3",{className:"googlesitekit-cta__title"},r),n&&"string"==typeof n&&e.createElement("p",{className:"googlesitekit-cta__description"},n),n&&"string"!=typeof n&&e.createElement("div",{className:"googlesitekit-cta__description"},n),o&&"button"===l&&e.createElement(c.Button,{"aria-label":g,href:i,onClick:f},o),o&&"link"===l&&e.createElement(u.a,{href:i,onClick:f,"aria-label":g,external:s,hideExternalIndicator:s,arrow:!0},o),p)};s.propTypes={title:i.a.string.isRequired,description:i.a.oneOfType([i.a.string,i.a.node]),ctaLink:i.a.string,ctaLinkExternal:i.a.bool,ctaLabel:i.a.string,ctaType:i.a.string,"aria-label":i.a.string,error:i.a.bool,onClick:i.a.func,children:i.a.node},s.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:function(){}},t.a=s}).call(this,r(3))},119:function(e,t,r){"use strict";function Null(){return null}r.d(t,"a",(function(){return Null}))},128:function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return d}));var n,i=r(6),o=r.n(i),a=r(44),c=r(155),u=r(142),s=(n={},o()(n,a.c.QUARTER,3),o()(n,a.c.HALF,6),o()(n,a.c.FULL,12),n),l="googlesitekit-hidden",d=[c.a,u.a]},131:function(e,t,r){"use strict";r.r(t),r.d(t,"AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY",(function(){return n})),r.d(t,"AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY",(function(){return i})),r.d(t,"AREA_MAIN_DASHBOARD_CONTENT_PRIMARY",(function(){return o})),r.d(t,"AREA_MAIN_DASHBOARD_SPEED_PRIMARY",(function(){return a})),r.d(t,"AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY",(function(){return c})),r.d(t,"AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY",(function(){return u})),r.d(t,"AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY",(function(){return s})),r.d(t,"AREA_ENTITY_DASHBOARD_SPEED_PRIMARY",(function(){return l})),r.d(t,"AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY",(function(){return d}));var n="mainDashboardKeyMetricsPrimary",i="mainDashboardTrafficPrimary",o="mainDashboardContentPrimary",a="mainDashboardSpeedPrimary",c="mainDashboardMonetizationPrimary",u="entityDashboardTrafficPrimary",s="entityDashboardContentPrimary",l="entityDashboardSpeedPrimary",d="entityDashboardMonetizationPrimary";t.default={AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:n,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:i,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:o,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:a,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:c,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:u,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:s,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:l,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:d}},14:function(e,t){e.exports=googlesitekit.components},142:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return RecoverableModules}));var n=r(0),i=r.n(n),o=r(1),a=r(
/* translators: %s: Module name */
Object(o.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),n[0]):Object(o.sprintf)(
/* translators: %s: List of module names */
Object(o.__)("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"),n.join(Object(o._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(s.a,{title:Object(o.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:i.a.arrayOf(i.a.string).isRequired}}).call(this,r(3))},147:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(1);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t||{},i=r.slug,o=void 0===i?"":i,a=r.name,c=void 0===a?"":a,u=r.owner,s=void 0===u?{}:u;if(!o||!c)return e;var l="",d="";return"analytics"===o?e.match(/account/i)?l=Object(n.__)("Your Google account does not have sufficient permissions for this Analytics account, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?l=Object(n.__)("Your Google account does not have sufficient permissions for this Analytics property, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(l=Object(n.__)("Your Google account does not have sufficient permissions for this Analytics view, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit")):"search-console"===o&&(l=Object(n.__)("Your Google account does not have sufficient permissions for this Search Console property, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit")),l||(l=Object(n.sprintf)(
/* translators: %s: module name */
Object(n.__)("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(n.sprintf)(
/* translators: %s: owner name */
Object(n.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),s.login)),d||(d=Object(n.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(l," ").concat(d)}},153:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(2),i=r(4),o=r.n(i),a=r(44),c=o.a.useDispatch;function u(e,t,r){var i=c(a.a),o=i.setWidgetState,u=i.unsetWidgetState;Object(n.useEffect)((function(){return o(e,t,r),function(){u(e,t,r)}}),[e,t,r,o,u])}},155:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportZero}));var n=r(0),i=r.n(n),o=r(1),a=r(4),c=r.n(a),u=r(18),s=r(108),l=c.a.useSelect;function ReportZero(t){var r=t.moduleSlug,n=l((function(e){return e(u.a).getModule(r)}));return e.createElement(s.a,{title:Object(o.sprintf)(
/* translators: %s: Module name */
Object(o.__)("%s Gathering Data","google-site-kit"),null==n?void 0:n.name),description:Object(o.sprintf)(
/* translators: %s: Module name */
Object(o.__)("%s data is not yet available, please check back later","google-site-kit"),null==n?void 0:n.name)})}ReportZero.propTypes={moduleSlug:i.a.string.isRequired}}).call(this,r(3))},16:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var n="core/site",i="primary",o="secondary"},167:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportError}));var n=r(6),i=r.n(n),o=r(0),a=r.n(o),c=r(13),u=r(2),s=r(1),l=r(4),d=r.n(l),f=r(18),g=r(50),p=r(147),b=r(81),v=r(82),O=r(108),m=r(202),y=r(40);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var A=d.a.useSelect;function ReportError(t){var r,n=t.moduleSlug,i=t.error,o=Object(y.a)(),a=A((function(e){return e(f.a).getModule(n)})),l=Array.isArray(i)?i:[i],d=function(e){return Object(g.e)(e)?o?(r=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Access lost to %s","google-site-kit"),null==a?void 0:a.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==a?void 0:a.name)):(r=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Insufficient permissions in %s","google-site-kit"),null==a?void 0:a.name),Object(p.a)(e.message,a)):Object(g.b)(e)},h=Object(c.uniqWith)(l.map((function(e){var t;return _(_({},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})),E=l.some((function(e){return Object(g.e)(e)}));E||1!==h.length?!E&&h.length>1&&(r=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Data errors in %s","google-site-kit"),null==a?void 0:a.name)):r=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Data error in %s","google-site-kit"),null==a?void 0:a.name);var T=e.createElement(u.Fragment,null,h.map((function(t){var r,n=null==i||null===(r=i.data)||void 0===r?void 0:r.reconnectURL;return n?e.createElement(v.a,{key:t.message,message:t.message,reconnectURL:n}):e.createElement("p",{key:t.message},b.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(O.a,{title:r,description:T,error:!0},e.createElement(m.a,{moduleSlug:n,error:i}))}ReportError.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.oneOfType([a.a.arrayOf(a.a.object),a.a.object]).isRequired}}).call(this,r(3))},169:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return p}));var n=r(23),i=r.n(n),o=r(72),a=r.n(o),c=r(231),u=r(285),s=r(286),l=r(287),d=r(232),f=a()((function(e){return{Widget:g(e)(c.a),WidgetRecoverableModules:g(e)(d.a),WidgetReportZero:g(e)(u.a),WidgetReportError:g(e)(s.a),WidgetNull:g(e)(l.a)}}));function g(t){return function(r){var n=function WithWidgetSlug(n){return e.createElement(r,i()({},n,{widgetSlug:t}))};return n.displayName="WithWidgetSlug",(r.displayName||r.name)&&(n.displayName+="(".concat(r.displayName||r.name,")")),n}}var p=function(t){var r=f(t);return function(t){var n=function DecoratedComponent(n){return e.createElement(t,i()({},n,r))};return n.displayName="WithWidgetComponentProps",(t.displayName||t.name)&&(n.displayName+="(".concat(t.displayName||t.name,")")),n}}}).call(this,r(3))},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="core/modules",i="insufficient_module_dependencies"},20:function(e,t,r){"use strict";var n=r(2),i=r(69);t.a=function(){return Object(n.useContext)(i.b)}},202:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportErrorActions}));var n=r(6),i=r.n(n),o=r(0),a=r.n(o),c=r(2),u=r(57),s=r(1),l=r(4),d=r.n(l),f=r(14),g=r(16),p=r(18),b=r(50),v=r(40),O=r(22);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var y=d.a.useSelect,h=d.a.useDispatch;function ReportErrorActions(t){var r=t.moduleSlug,n=t.error,o=Object(v.a)(),a=y((function(e){return e(p.a).getModuleStoreName(r)})),l=y((function(e){var t;return"function"==typeof(null===(t=e(a))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(a).getServiceEntityAccessURL():null})),d=Array.isArray(n)?n:[n],_=d.filter((function(e){return Object(b.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),A=!!_.length,E=y((function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},A?_[0]:d[0]);return Object(b.e)(t)&&(t.code="".concat(r,"_insufficient_permissions")),e(g.c).getErrorTroubleshootingLinkURL(t)})),T=h(),j=d.some((function(e){return Object(b.e)(e)})),R=Object(c.useCallback)((function(){_.forEach((function(e){var t=e.selectorData;T(t.storeName).invalidateResolution(t.name,t.args)}))}),[T,_]),S=l&&j&&!o;return e.createElement("div",{className:"googlesitekit-report-error-actions"},S&&e.createElement(f.Button,{href:l,target:"_blank"},Object(s.__)("Request access","google-site-kit")),A?e.createElement(c.Fragment,null,e.createElement(f.Button,{onClick:R},Object(s.__)("Retry","google-site-kit")),e.createElement("span",{className:"googlesitekit-error-retry-text"},Object(u.a)(Object(s.__)("Retry didnt work? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(O.a,{href:E,external:!0},Object(s.__)("Get help","google-site-kit"))}))):e.createElement(O.a,{href:E,external:!0},Object(s.__)("Get help","google-site-kit")))}ReportErrorActions.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.oneOfType([a.a.arrayOf(a.a.object),a.
/* translators: %s: number of days */
Object(f._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}}}},67:function(e,t,r){"use strict";r.r(t),r.d(t,"CONTEXT_MAIN_DASHBOARD_KEY_METRICS",(function(){return n})),r.d(t,"CONTEXT_MAIN_DASHBOARD_TRAFFIC",(function(){return i})),r.d(t,"CONTEXT_MAIN_DASHBOARD_CONTENT",(function(){return o})),r.d(t,"CONTEXT_MAIN_DASHBOARD_SPEED",(function(){return a})),r.d(t,"CONTEXT_MAIN_DASHBOARD_MONETIZATION",(function(){return c})),r.d(t,"CONTEXT_ENTITY_DASHBOARD_TRAFFIC",(function(){return u})),r.d(t,"CONTEXT_ENTITY_DASHBOARD_CONTENT",(function(){return s})),r.d(t,"CONTEXT_ENTITY_DASHBOARD_SPEED",(function(){return l})),r.d(t,"CONTEXT_ENTITY_DASHBOARD_MONETIZATION",(function(){return d}));var n="mainDashboardKeyMetrics",i="mainDashboardTraffic",o="mainDashboardContent",a="mainDashboardSpeed",c="mainDashboardMonetization",u="entityDashboardTraffic",s="entityDashboardContent",l="entityDashboardSpeed",d="entityDashboardMonetization";t.default={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:n,CONTEXT_MAIN_DASHBOARD_TRAFFIC:i,CONTEXT_MAIN_DASHBOARD_CONTENT:o,CONTEXT_MAIN_DASHBOARD_SPEED:a,CONTEXT_MAIN_DASHBOARD_MONETIZATION:c,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:u,CONTEXT_ENTITY_DASHBOARD_CONTENT:s,CONTEXT_ENTITY_DASHBOARD_SPEED:l,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:d}},68:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),o=r(11),a=r.n(o);function ChangeArrow(t){var r=t.direction,n=t.invertColor,i=t.width,o=t.height;return e.createElement("svg",{className:a()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:i,height:o,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction: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,r(3))},69:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(2),i=Object(n.createContext)(""),o=(i.Consumer,i.Provider);t.b=i},699:function(e,t,r){"use strict";(function(e){var n=r(6),i=r.n(n),o=r(9),a=r.n(o),c=r(4),u=r.n(c),s=r(44),l=r(700),d=r(294);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=u.a.createRegistrySelector,b=Object.keys(s.b).map((function(e){return"WIDGET_AREA_STYLES.".concat(e)})).join(", "),v={assignWidgetArea:function(e,t){return{payload:{slug:e,contextSlugs:"string"==typeof t?[t]:t},type:"ASSIGN_WIDGET_AREA"}},registerWidgetArea:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.priority,n=void 0===r?10:r,i=t.style,o=void 0===i?s.b.BOXES:i,c=t.title,u=t.subtitle,l=t.Icon;return a()(e,"slug is required."),a()(c,"settings.title is required."),a()(Object.values(s.b).includes(o),"settings.style must be one of: ".concat(b,".")),{payload:{slug:e,settings:{priority:n,style:o,title:c,subtitle:u,Icon:l}},type:"REGISTER_WIDGET_AREA"}}},O=Object(d.a)((function(t,r){var n=r.type,i=r.payload;switch(n){case"ASSIGN_WIDGET_AREA":var o=i.slug;return i.contextSlugs.forEach((function(e){void 0===t.contextAssignments[e]&&(t.contextAssignments[e]=[]),t.contextAssignments[e].includes(o)||t.contextAssignments[e].push(o
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?E(i,v(v({},a),{},{unit:"second"})):"",n?E(n,v(v({},a),{},{unit:"minute"})):"",r?E(r,v(v({},a),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(p.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(p.__)("%ds","google-site-kit"),i);if(0===e)return t;var o=Object(p.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(p.__)("%dm","google-site-kit"),n),a=Object(p.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
Object(p.__)("%dh","google-site-kit"),r);return Object(p.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?t:"",n?o:"",r?a:"").trim()}}},y=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},h=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in millions.
Object(p.__)("%sM","google-site-kit"),E(y(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(p.__)("%sK","google-site-kit"),E(y(e))):1e3<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(p.__)("%sK","google-site-kit"),E(y(e),e%10==0?{}:t)):E(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var r={};if("%"===t)r={style:"percent",maximumFractionDigits:2};else{if("s"===t)return O(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(r=v({},t))}var n=r,i=n.style,o=void 0===i?"metric":i;return"metric"===o?h(e):"duration"===o?O(e,t):E(e,r)},A=g()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,o=l()(t,["locale"]);try{return new Intl.NumberFormat(n,o).format(e)}catch(t){A("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(o)," ).format( ").concat(a()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},d=0,f=Object.entries(o);d<f.length;d++){var g=i()(f[d],2),p=g[0],b=g[1];c[p]&&b===c[p]||(u.includes(p)||(s[p]=b))}try{return new Intl.NumberFormat(n,s).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,i=t.style,o=void 0===i?"long":i,a=t.type,c=void 0===a?"conjunction":a;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:o,type:c});return u.format(e)}
/* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return e.join(s)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(25))},8:function(e,t,r){"use strict";r.d(t,"z",(function(){return i.b})),r.d(t,"w",(function(){return o.a})),r.d(t,"A",(function(){return o.b})),r.d(t,"y",(function(){return l})),r.d(t,"l",(function(){return v})),r.d(t,"u",(function(){return O.c})),r.d(t,"v",(function(){return O.d})),r.d(t,"r",(function(){return O.b})),r.d(t,"k",(function(){return O.a})),r.d(t,"s",(function(){return _})),r.d(t,"e",(function(){return A})),r.d(t,"b",(function(){return E.b})),r.d(t,"a",(function(){return E.a})),r.d(t,"i",(function(){return E.f})),r.d(t,"g",(function(){return E.e})),r.d(t,"x",(function(){return E.j})),r.d(t,"h",(function(){return T.b})),r.d(t,"p",(function(){return T.c})),r.d(t,"d",(function(){return T.a})),r.d(t,"n",(function(){return j.b})),r.d(t,"j",(function(){return j.a})),r.d(t,"t",(function(){return j.d})),r.d(t,"q",(function(){return R})),r.d(t,"o",(function(){return S})),r.d(t,"m",(function(){return w})),r.d(t,"c",(function(){return D})),r.d(t,"B",(function(){return N})),r.d(t,"f",(function(){return k}));var n=r(13),i=r(35),o=r(70),a=r(31),c=r.n(a),u=r(84),s=r.n(u),l=function(e){return s()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var i=t[n];i&&"object"===c()(i)&&!Array.isArray(i)&&(i=e(i)),r[n]=i})),r}(e)))};var d=r(15),f=r.n(d);function g(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var b=function(e){for(var t=location.search.substr(1).split("&"),r={},n=0;n<t.length;n++)r[t[n].split("=")[0]]=decodeURIComponent(t[n].split("=")[1]);return e?r.hasOwnProperty(e)?decodeURIComponent(r[e].replace(/\+/g," ")):"":r},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,r=new URL(t.href);if(e)return r.searchParams&&r.searchParams.get?r.searchParams.get(e):b(e);var n,i={},o=g(r.searchParams.entries());try{for(o.s();!(n=o.n()).done;){var a=f()(n.value,2),c=a[0],u=a[1];i[c]=u}}catch(e){o.e(e)}finally{o.f()}return i},O=(r(88),r(71));function m(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function y(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function h(e){return e.replace(/\n/gi,"<br>")}function _(e){for(var t=e,r=0,n=[m,y,h];r<n.length;r++){t=(0,n[r])(t)}return t}var A=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)]},E=r(63),T=r(89),j=r(54);function R(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function S(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var w=function(e){switch(e){case"minute":return 60;case"hour":re
/* translators: %s: Error message */
Object(a.__)("Error: %s","google-site-kit"),r);n&&Object(o.a)(n)&&(i=i+" "+Object(a.sprintf)(
/* translators: %s: Reconnect URL */
Object(a.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),n));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.w)(i,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:i.a.string.isRequired,reconnectURL:i.a.string},ErrorText.defaultProps={reconnectURL:""},t.a=ErrorText}).call(this,r(3))},88:function(e,t,r){"use strict";(function(e){r(49),r(53)}).call(this,r(25))},89:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return c}));var n=r(190),i=r(68),o=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var o=r.invertColor,a=void 0!==o&&o;return Object(n.a)(e.createElement(i.a,{direction:t>0?"up":"down",invertColor:a}))},a=function(e){var t,r,n,i,o,a,c,u,s,l,d,f,g,p,b;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(i=e[0])||void 0===i||null===(o=i.data)||void 0===o||null===(a=o.rows)||void 0===a||null===(c=a[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[0])||void 0===p||null===(b=p.values)||void 0===b?void 0:b[0])},c=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,r(3))},90:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(6),i=r.n(n),o=r(91),a=r(92);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};function l(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=u(u({},s),t);i.referenceSiteURL&&(i.referenceSiteURL=i.referenceSiteURL.toString().replace(/\/+$/,""));var c=Object(o.a)(i,r);return{enableTracking:function(){i.trackingEnabled=!0},disableTracking:function(){i.trackingEnabled=!1},initializeSnippet:c,isTrackingEnabled:function(){return!!i.trackingEnabled},trackEvent:Object(a.a)(i,r,c,n)}}}).call(this,r(25))},91:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n=r(59),i=r(33);function o(t,r){var o,a=Object(n.a)(r);return function(){var r=e.document;if(void 0===o&&(o=!!r.querySelector("script[".concat(i.b,"]"))),!o){var n=r.createElement("script");n.setAttribute(i.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(i.a),r.head.appendChild(n),a("js",new Date),a("config",t.trackingID,{send_page_view:t.isSiteKitScreen}),o=!0}}}}).call(this,r(25))},92:function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),c=r(17),u=r.n(c),s=r(59),l=r(39);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnProp