kollapsminoriteten/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-widgets-05c7c...

40 lines
63 KiB
JavaScript
Raw Normal View History

2023-04-26 17:39:43 +02:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[27],{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(38),o=Object(n.createContext)(i.a);t.a=o},117:function(e,t,r){"use strict";function Null(){return null}r.d(t,"a",(function(){return Null}))},124: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(146),u=r(135),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]},125: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}},135: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(4),c=r.n(a),u=r(18),s=r(98),l=c.a.useSelect;function RecoverableModules(t){var r=t.moduleSlugs,n=l((function(e){var t=e(u.a).getModules();if(void 0!==t)return r.map((function(e){return t[e].name}))}));if(void 0===n)return null;var i=1===n.length?Object(o.sprintf)(
/* 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))},143: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])}},145: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)}},146: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(98),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))},15:function(e,t){e.exports=googlesitekit.components},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"},163: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(48),p=r(145),b=r(79),v=r(82),O=r(98),m=r(192),y=r(43);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 j=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:j,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))},165: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(21),i=r.n(n),o=r(69),a=r.n(o),c=r(202),u=r(256),s=r(257),l=r(258),d=r(203),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"},192: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(64),s=r(1),l=r(4),d=r.n(l),f=r(15),g=r(16),p=r(18),b=r(48),v=r(43),O=r(23);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)})),j=h(),T=d.some((function(e){return Object(b.e)(e)})),R=Object(c.useCallback)((function(){_.forEach((function(e){var t=e.selectorData;j(t.storeName).invalidateResolution(t.name,t.args)}))}),[j,_]),S=l&&T&&!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.a.object]).isRequired}}).call(this,r(3))},20:function(e,t,r){"use strict";var n=r(2),i=r(68);t.a=func
/* 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}}}},65: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))},67:function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return _})),r.d(t,"d",(function(){return E})),r.d(t,"b",(function(){return j})),r.d(t,"a",(function(){return T}));var n=r(14),i=r.n(n),o=r(31),a=r.n(o),c=r(6),u=r.n(c),s=r(22),l=r.n(s),d=r(13),f=r(69),g=r.n(f),p=r(1);function b(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=m(e,t),n=r.formatUnit,i=r.formatDecimal;try{return n()}catch(e){return i()}},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var r=Math.floor(e/60/60),n=Math.floor(e/60%60),i=Math.floor(e%60);return{hours:r,minutes:n,seconds:i,formatUnit:function(){var o=t.unitDisplay,a=v(v({unitDisplay:void 0===o?"short":o},l()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?E(i,v(v({},a),{},{unit:"second"})):Object(p.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),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?T():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)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?T():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)},T=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))},68: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},691: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(692),d=r(289);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)})),t;case"REGISTER_WIDGET_AREA":var a=i.slug,c=i.settings;return void 0!==t.areas[a]?(e.console.warn('Could not register widget area with slug "'.concat(a,'". Widget area "').concat(a,'" is already registered.')),t):(t.areas[a]=g(g({},c),{},{slug:a}),t);default:return t}})),m={isWidgetAreaActive:p((function(e){return function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a()(r,"widgetAreaSlug is required to check a widget area is active.");var i=n.modules;return e(s.a).getWidgets(r,{modules:i}).some((function(t){return e(s.a).isWidgetActive(t.slug)}))}})),isWidgetAreaRegistered:function(e,t){return void 0!==e.areas[t]},getWidgetAreas:function(e,t){a()(t,"contextSlug is required.");var r=e.areas,n=e.contextAssignments;return Object(l.a)(Object.values(r).filter((function(e){return n[t]&&n[t].includes(e.slug)})),"priority")},getWidgetArea:function(e,t){return a()(t,"slug is required."),e.areas[t]||null}};t.a={initialState:{areas:{},contextAssignments:{}},actions:v,controls:{},reducer:O,resolvers:{},selectors:m}}).call(this,r(25))},692:function(e,t,r){"use strict";function n(e,t){return e.sort((function(e,r){return e[t]>r[t]?1:e[t]<r[t]?-1:0}))}r.d(t,"a",(function(){return n}))},693: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(13),u=r(376),s=r(4),l=r.n(s),d=r(207),f=r(44),g=r(289);function p(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 b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.definePr
/* 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))},86:function(e,t,r){"use strict";(function(e){r(49),r(51)}).call(this,r(25))},87: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(178),i=r(65),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))},88: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(89),a=r(90);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))},89:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n=r(57),i=r(32);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))},90: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(57),l=r(38);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