82 lines
360 KiB
JavaScript
82 lines
360 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[14],[,function(e,t){e.exports=googlesitekit.i18n},,,function(e,t){e.exports=googlesitekit.data},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return r})),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 N})),n.d(t,"n",(function(){return E})),n.d(t,"p",(function(){return k})),n.d(t,"q",(function(){return _})),n.d(t,"r",(function(){return O})),n.d(t,"s",(function(){return I})),n.d(t,"u",(function(){return S})),n.d(t,"j",(function(){return A})),n.d(t,"w",(function(){return Z})),n.d(t,"t",(function(){return C})),n.d(t,"x",(function(){return j})),n.d(t,"v",(function(){return M})),n.d(t,"h",(function(){return w})),n.d(t,"o",(function(){return G})),n.d(t,"H",(function(){return L})),n.d(t,"G",(function(){return P}));var a="core/user",i="connected_url_mismatch",o="__global",r="temporary_persist_permission_error",c="googlesitekit_authenticate",l="googlesitekit_setup",s="googlesitekit_view_dashboard",u="googlesitekit_manage_options",d="googlesitekit_read_shared_module_data",m="googlesitekit_manage_module_sharing_options",g="googlesitekit_delegate_module_sharing_management",f="googlesitekit_update_plugins",p="kmAnalyticsAdSenseTopEarningContent",y="kmAnalyticsEngagedTrafficSource",h="kmAnalyticsLeastEngagingPages",b="kmAnalyticsNewVisitors",v="kmAnalyticsPopularAuthors",T="kmAnalyticsPopularContent",N="kmAnalyticsPopularProducts",E="kmAnalyticsReturningVisitors",k="kmAnalyticsTopCities",_="kmAnalyticsTopConvertingTrafficSource",O="kmAnalyticsTopCountries",I="kmAnalyticsTopRecentTrendingPages",S="kmAnalyticsTopTrafficSource",A="kmAnalyticsPagesPerVisit",Z="kmAnalyticsVisitLength",C="kmAnalyticsTopReturningVisitorPages",j="kmSearchConsolePopularKeywords",M="kmAnalyticsVisitsPerVisitor",w="kmAnalyticsMostEngagingPages",G="kmAnalyticsTopCategories",L=[p,y,h,b,v,T,N,E,G,k,_,O,I,S,A,Z,C,M,w,G],P=[].concat(L,[j])},function(e,t,n){"use strict";(function(e){n.d(t,"p",(function(){return p})),n.d(t,"d",(function(){return y})),n.d(t,"E",(function(){return h})),n.d(t,"h",(function(){return b}));var a=n(15),i=n(34);n.d(t,"B",(function(){return i.b})),n.d(t,"C",(function(){return i.c}));var o=n(78);n.d(t,"y",(function(){return o.a})),n.d(t,"D",(function(){return o.b}));var r=n(100);n.d(t,"A",(function(){return r.a}));n(101);var c=n(73);n.d(t,"i",(function(){return c.a})),n.d(t,"n",(function(){return c.b})),n.d(t,"t",(function(){return c.c})),n.d(t,"w",(function(){return c.d})),n.d(t,"x",(function(){return c.e}));var l=n(102);n.d(t,"u",(function(){return l.a}));var s=n(103);n.d(t,"f",(function(){return s.a})),n.d(t,"g",(function(){return s.b}));var u=n(64);n.d(t,"a",(function(){return u.a})),n.d(t,"b",(function(){return u.b})),n.d(t,"c",(function(){return u.e})),n.d(t,"j",(function(){return u.f})),n.d(t,"l",(function(){return u.g})),n.d(t,"o",(function(){return u.h})),n.d(t,"z",(function(){return u.k}));var d=n(104);n.d(t,"e",(function(){return d.a})),n.d(t,"k",(function(){return d.b}));var m=n(65);n.d(t,"m",(function(){return m.a})),n.d(t,"q",(function(){return m.b})),n.d(t,"v",(function(){return m.c}));var g=n(105);n.d(t,"s",(function(){return g.a}));var f=n(106);n.d(t,"r",(function(){return f.a})),e._gsktag=i.b;var p=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 y(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-
|
|||
|
|
/* 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(w,G),M[n][0].toLocaleDateString(w,G)),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]),o,Object(d.w)(Math.abs(i),"%"));I.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":i>0,"googlesitekit-visualization-tooltip--down":i<0}),'">\n\t\t\t\t<p>').concat(r,"</p>\n\t\t\t\t<p>").concat(s,"</p>\n\t\t\t</div>"),_?Object(d.g)(e[1]):e[1],_?Object(d.g)(M[n][1]):M[n][1]])}})),I}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var a="modules/search-console",i=1},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"g",(function(){return f}));var a=n(11),i=n.n(a),o=n(15),r=n(9),c=n(8);function l(e){return e===r.a||Object(c.s)(e)}function s(e){return"string"==typeof e&&/^\d+$/.test(e)}function u(e){return e===r.n||s(e)}function d(e){return"string"==typeof e&&/^\d+$/.test(e)}function m(e){return e===r.o||d(e)}function g(e){return"string"==typeof e&&/^G-[a-zA-Z0-9]+$/.test(e)}function f(e){var t=["displayName","description","membershipDurationDays","eventTrigger","exclusionDurationMode","filterClauses"];i()(Object(o.isPlainObject)(e),"Audience must be an object."),Object.keys(e).forEach((function(e){i()(t.includes(e),'Audience object must contain only valid keys. Invalid key: "'.concat(e,'"'))})),["displayName","description","membershipDurationDays","filterClauses"].forEach((function(t){i()(e[t],'Audience object must contain required keys. Missing key: "'.concat(t,'"'))})),i()(Object(o.isArray)(e.filterClauses),"filterClauses must be an array with AudienceFilterClause objects.")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(36);function i(e){return function(){e[a.a]=e[a.a]||[],e[a.a].push(arguments)}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(2),i=Object(a.createContext)(""),o=(i.Consumer,i.Provider);t.b=i},,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),i=n(11),o=n.n(i),r=n(48),c=function(e){o()(Object(r.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}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return c}));var a=n(112);function i(e){try{return new URL(e).pathname}catch(e){}return null}function o(e,t){try{return new URL(t,e).href}catch(e){}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function r(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),i=e.replace(n.origin,"");if(i.length<t)return i;var o=i.length-Math.floor(t)+1;return"…"+i.substr(o)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return c}));var a=n(21),i=n(19),o=a.m,r=a.k;function c(){var e=Object(i.a)();return e===a.m||e===a.n?o:e===a.k||e===a.l?r:null}},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),i=n.n(a),o=n(2);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 c=o.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 o.createElement("svg",r({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=o.createElement("path",{d:"M0 4h2v7H0zm0-4h2v2H0z",fill:"currentColor",fillRule:"evenodd"});var d,m=function SvgSuggestionIcon(e){return o.createElement("svg",s({viewBox:"0 0 2 11"},e),u)},g=n(164),f=n(114),p="warning",y="info",h="suggestion",b=(d={},i()(d,y,l),i()(d,p,g.a),i()(d,h,m),d),v=function(e){return b[e]||f.a}},,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"m",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"l",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"i",(function(){return y}));var a=0,i=1,o=2,r=3,c="activation-acknowledgement-tooltip-state",l="ga4-activation-banner-state",s="enhanced-measurement-activation-banner-tooltip-state",u="enhanced-measurement-activation-banner-dismissed-item",d="_r.explorerCard..selmet",m="_r.explorerCard..seldim",g="_r..dataFilters",f="_r..nav",p="key-metrics-connect-ga4-cta-widget",y="2023-09-25"},function(e,t,n){"use strict";n.r(t),n.d(t,"CONTEXT_MAIN_DASHBOARD_KEY_METRICS",(function(){return a})),n.d(t,"CONTEXT_MAIN_DASHBOARD_TRAFFIC",(function(){return i})),n.d(t,"CONTEXT_MAIN_DASHBOARD_CONTENT",(function(){return o})),n.d(t,"CONTEXT_MAIN_DASHBOARD_SPEED",(function(){return r})),n.d(t,"CONTEXT_MAIN_DASHBOARD_MONETIZATION",(function(){return c})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_TRAFFIC",(function(){return l})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_CONTENT",(function(){return s})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_SPEED",(function(){return u})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_MONETIZATION",(function(){return d}));var a="mainDashboardKeyMetrics",i="mainDashboardTraffic",o="mainDashboardContent",r="mainDashboardSpeed",c="mainDashboardMonetization",l="entityDashboardTraffic",s="entityDashboardContent",u="entityDashboardSpeed",d="entityDashboardMonetiz
|
|||
|
|
/* 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"),o?I(o,y(y({},r),{},{unit:"second"})):"",i?I(i,y(y({},r),{},{unit:"minute"})):"",a?I(a,y(y({},r),{},{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"),o);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"),i),r=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"),o?t:"",i?n:"",a?r:"").trim()}}},N=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},E=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"),I(N(e),e%10==0?{}:t)):1e4<=e?Object(f.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(f.__)("%sK","google-site-kit"),I(N(e))):1e3<=e?Object(f.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(f.__)("%sK","google-site-kit"),I(N(e),e%10==0?{}:t)):I(e,{signDisplay:"never",maximumFractionDigits:1})};function k(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){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,r()(e)),e=0);var n=k(t),a=n.style,i=void 0===a?"metric":a;return"metric"===i?E(e):"duration"===i?h(e,n):"durationISO"===i?b(e):I(e,n)}var O=g()(console.warn),I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?A():n,o=u()(t,["locale"]);try{return new Intl.NumberFormat(a,o).format(e)}catch(t){O("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(a),", ").concat(JSON.stringify(o)," ).format( ").concat(r()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,m=Object.entries(o);d<m.length;d++){var g=i()(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)}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?A():n,i=t.style,o=void 0===i?"long":i,r=t.type,c=void 0===r?"conjunction":r;if(Intl.ListFormat){var l=new Intl.ListFormat(a,{style:o,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)},A=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))},function(e,t,n){"use strict";var a=n(127);n.d(t,"c",(function(){return a.a}));var i=n(67);n.d(t,"b",(function(){return i.c})),n.d(t,"a",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a={EXTERNAL:"external",INTERNAL:"internal"}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var a=n(35),i=n.n(a),o=n(84),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:o.a.sanitize(e,t)}};function c(e){var t,n="object"===i()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var a=n(4),i=n.n(a),o=n(20),r=n(91),c=i.a.useSelect;function l(t){var n=t.moduleName,a=t.FallbackComponent,i=t.IncompleteComponent;return function(t){function WhenActiveComponent(r){var l=c((function(e){return e(o.a).getModule(n)}),[n]);if(!l)return null;var s=a||r.WidgetNull||null;if(!1===l.active)return s&&e.createElement(s,r);if(!1===l.connected){var u=i||s;return u&&e.createElement(u,r)}return e.createElement(t,r)}return WhenActiveComponent.displayName="When".concat(Object(r.c)(n),"Active"),(t.displayName||t.name)&&(WhenActiveComponent.displayName+="(".concat(t.displayName||t.name,")")),WhenActiveComponent}}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return IconWrapper}));var a=n(0),i=n.n(a);function IconWrapper(t){var n=t.children,a=t.marginLeft,i=t.marginRight;return e.createElement("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:a,marginRight:i}},n)}IconWrapper.propTypes={children:i.a.node.isRequired,marginLeft:i.a.number,marginRight:i.a.number}}).call(this,n(3))},function(e,t,n){"use strict";var a=n(129);n.d(t,"a",(function(){return a.a}));var i=n(130);n.d(t,"c",(function(){return i.a}));var o=n(131);n.d(t,"b",(function(){return o.a}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var a=n(144),i=n.n(a)()(e)}).call(this,n(26))},function(e,t,n){"use strict";(function(e){var a=n(0),i=n.n(a),o=n(12),r=n.n(o);function ChangeArrow(t){var n=t.direction,a=t.invertColor,i=t.width,o=t.height;return e.createElement("svg",{className:r()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":a}),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,n(3))},,function(e,t,n){"use strict";(function(e){var a=n(0),i=n.n(a),o=n(112),r=n(1),c=n(8);function ErrorText(t){var n=t.message,a=t.reconnectURL,i=t.noPrefix;if(!n)return null;var l=n;void 0!==i&&i||(l=Object(r.sprintf)(
|
|||
|
|
/* translators: %s: Error message */
|
|||
|
|
Object(r.__)("Error: %s","google-site-kit"),n)),a&&Object(o.a)(a)&&(l=l+" "+Object(r.sprintf)(
|
|||
|
|
/* translators: %s: Reconnect URL */
|
|||
|
|
Object(r.__)('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.y)(l,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:i.a.string.isRequired,reconnectURL:i.a.string,noPrefix:i.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(22),i=n.n(a),o=n(23),r=n.n(o),c=n(0),l=n.n(c),s=n(12),u=n.n(s);function VisuallyHidden(t){var n=t.className,a=t.children,o=r()(t,["className","children"]);return a?e.createElement("span",i()({},o,{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(3))},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}));var a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function o(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},function(e,t,n){"use strict";var a=n(17),i=n.n(a),o=n(236),r=n(0),c=n.n(r),l=n(2),s=n(124);function Portal(e){var t=e.children,n=e.slug,a=Object(l.useState)(document.createElement("div")),r=i()(a,1)[0];return Object(o.a)((function(){n&&r.classList.add("googlesitekit-portal-".concat(n));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(r),function(){return e.removeChild(r)}})),Object(s.createPortal)(t,r)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return StoreErrorNotices}));var a=n(0),i=n.n(a),o=n(4),r=n.n(o),c=n(111),l=n(20),s=n(40),u=n(157),d=r.a.useSelect;function StoreErrorNotices(t){var n=t.moduleSlug,a=t.storeName,i=d((function(e){return e(a).getErrors()})),o=d((function(e){return e(l.a).getModule(n)})),r=[];return i.filter((function(e){return!(!(null==e?void 0:e.message)||r.includes(e.message))&&(r.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})}))}StoreErrorNotices.propTypes={storeName:i.a.string.isRequired,moduleSlug:i.a.string}}).call(this,n(3))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v}));var a=n(23),i=n.n(a),o=n(6),r=n.n(o),c=n(5),l=n.n(c),s=n(11),u=n.n(s),d=n(4),m=n.n(d),g=n(39),f=n(8),p=m.a.createRegistryControl,y=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},a={deleteSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:l.a.mark((function e(){var t,n,a,i,o,r,c=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,a=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(i=e.sent,o=i.cacheHit,r=i.value,!o){e.next=13;break}return e.next=10,{payload:{snapshot:r},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!a){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",o);case 14:case"end":return e.stop()}}),e)})),createSnapshot:l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},o=(t={},r()(t,"DELETE_SNAPSHOT",(function(){return Object(g.c)("datastore::cache::".concat(e))})),r()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Obje
|
|||
|
|
/* 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:o})}))}SourceLink.propTypes={name:i.a.string,href:i.a.string,className:i.a.string,external:i.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(3))},function(e,t,n){"use strict";var a=n(2);function i(){return(i=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 o=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",i({viewBox:"0 0 43 44"},e),o)}},function(e,t,n){"use strict";(function(e){var a=n(0),i=n.n(a),o=n(216),r=n(43),c=n(1),l=n(10);function ModalDialog(t){var n=t.dialogActive,a=t.handleDialog,i=t.title,s=t.provides,u=t.handleConfirm,d=t.subtitle,m=t.confirmButton,g=t.dependentModules,f=t.danger,p=t.inProgress,y=void 0!==p&&p,h=Object(o.a)(ModalDialog),b="googlesitekit-dialog-description-".concat(h),v=!(!s||!s.length);return e.createElement(l.Dialog,{open:n,"aria-describedby":v?b:void 0,tabIndex:"-1"},e.createElement(l.DialogTitle,null,i),d?e.createElement("p",{className:"mdc-dialog__lead"},d):[],e.createElement(l.DialogContent,null,v&&e.createElement("section",{id:b,className:"mdc-dialog__provides"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},s.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),g&&e.createElement("p",{className:"mdc-dialog__dependencies"},Object(r.a)(Object(c.sprintf)(
|
|||
|
|
/* translators: %s is replaced with the dependent modules. */
|
|||
|
|
Object(c.__)("<strong>Note:</strong> %s","google-site-kit"),g),{strong:e.createElement("strong",null)}))),e.createElement(l.DialogFooter,null,e.createElement(l.SpinnerButton,{onClick:u,danger:f,disabled:y,isSaving:y},m||Object(c.__)("Disconnect","google-site-kit")),e.createElement(l.Button,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",tertiary:!0,onClick:a,disabled:y},Object(c.__)("Cancel","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={dialogActive:i.a.bool,handleDialog:i.a.func,handleConfirm:i.a.func.isRequired,title:i.a.string,description:i.a.string,confirmButton:i.a.string,danger:i.a.bool},ModalDialog.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=ModalDialog}).call(this,n(3))},,function(e,t,n){"use strict";var a=n(2),i=Object(a.createContext)(!1);t.a=i},,,,,function(e,t,n){"use strict";var a=n(2);function i(){return(i=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 o=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",i({viewBox:"0 0 14 14",fill:"none"},e),o)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(2),i=n(4),o=n.n(i),r=n(44),c=o.a.useDispatch;function l(e,t,n){var i=c(r.a),o=i.setWidgetState,l=i.unsetWidgetState;Object(a.useEffect)((function(){return o(e,t,n),function(){l(e,t,n)}}),[e,t,n,o,l])}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var a,i=n(6),o=n.n(i),r=n(44),c=n(187),l=n(172),s=(a={},o()(a,r.c.QUARTER,3),o()(a,r.c.HALF,6),o()(a,r.c.FULL,12),a),u="googlesitekit-hidden",d=[c.a,l.a]},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(21),i=function(e){return a.f.includes(e)}},,function(e,t,n){"use strict";var a=n(2),i=n(53),o=Object(a.createContext)(i.a);t.a=o},,function(e,t,n){"use strict";(function(e){var a=n(5),i=n.n(a),o=n(16),r=n.n(o),c=n(0),l=n.n(c),s=n(2),u=n(24),d=n(8),m=n(19);function HelpMenuLink(t){var n=t.children,a=t.href,o=t.gaEventLabel,c=Object(m.a)(),l=Object(s.useCallback)(r()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=3;break}return e.next=3,Object(d.B)("".concat(c,"_headerbar_helpmenu"),"click_outgoing_link",o);case 3:case"end":return e.stop()}}),e)}))),[o,c]);return e.createElement("li",{className:"googlesitekit-help-menu-link mdc-list-item",role:"none"},e.createElement(u.a,{className:"mdc-list-item__text",href:a,external:!0,hideExternalIndicator:!0,role:"menuitem",onClick:l},n))}HelpMenuLink.propTypes={children:l.a.node.isRequired,href:l.a.string.isRequired,gaEventLabel:l.a.string},t.a=HelpMenuLink}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t||{},i=n.slug,o=void 0===i?"":i,r=n.name,c=void 0===r?"":r,l=n.owner,s=void 0===l?{}:l;if(!o||!c)return e;var u="",d="";return"analytics"===o?e.match(/account/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(u=Object(a.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won’t be able to see stats fr
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(a.__)("Your Google account does not have sufficient permissions to access %s data, so you won’t 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)}},function(e,t,n){"use strict";var a=n(2);function i(){return(i=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 o=a.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"currentColor",fillRule:"nonzero"});t.a=function SvgError(e){return a.createElement("svg",i({viewBox:"0 0 28 25"},e),o)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(4),i=n.n(a),o=n(29),r=i.a.useSelect;function c(e){return r((function(t){return t(o.b).getValue(e)||{isTooltipVisible:!1,rehideAdminMenu:!1,rehideAdminSubMenu:!1}}))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return EnhancedMeasurementSwitch}));var a=n(6),i=n.n(a),o=n(12),r=n.n(o),c=n(0),l=n.n(c),s=n(86),u=n(2),d=n(43),m=n(1),g=n(4),f=n.n(g),p=n(10),y=n(25),h=n(9),b=n(117),v=n(8),T=n(19),N=f.a.useSelect,E=f.a.useDispatch;function EnhancedMeasurementSwitch(t){var n=t.onClick,a=t.disabled,o=void 0!==a&&a,c=t.loading,l=void 0!==c&&c,g=t.formName,f=void 0===g?h.f:g,k=t.isEnhancedMeasurementAlreadyEnabled,_=void 0!==k&&k,O=N((function(e){return e(y.a).getValue(f,h.e)})),I=Object(T.a)(),S=E(y.a).setValues,A=Object(u.useCallback)((function(){S(f,i()({},h.e,!O)),Object(v.B)("".concat(I,"_analytics"),O?"deactivate_enhanced_measurement":"activate_enhanced_measurement"),null==n||n()}),[f,O,n,S,I]);return Object(s.a)((function(){S(h.f,i()({},h.g,!0))})),e.createElement("div",{className:r()("googlesitekit-analytics-enable-enhanced-measurement",{"googlesitekit-analytics-enable-enhanced-measurement--loading":l})},l&&e.createElement(p.ProgressBar,{small:!0,className:"googlesitekit-analytics-enable-enhanced-measurement__progress--settings-edit"}),!l&&_&&e.createElement("p",{className:"googlesitekit-margin-top-0"},"Enhanced measurement is enabled for this web data stream"),!l&&!_&&e.createElement(p.Switch,{label:Object(m.__)("Enable enhanced measurement","google-site-kit"),checked:O,disabled:o,onClick:A,hideLabel:!1}),e.createElement("p",null,Object(d.a)(Object(m.__)("This allows you to measure interactions with your content (e.g. file downloads, form completions, video views). <a>Learn more</a>","google-site-kit"),{a:e.createElement(b.a,{path:"/analytics/answer/9216061",external:!0})})))}EnhancedMeasurementSwitch.propTypes={onClick:l.a.func,disabled:l.a.bool,loading:l.a.bool,isEnhancedMeasurementAlreadyEnabled:l.a.bool}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GenericErrorHandlerActions}));var a=n(0),i=n.n(a),o=n(1),r=n(24),c=n(166);function GenericErrorHandlerActions(t){var n=t.message,a=t.componentStack;return e.createElement("div",{className:"googlesitekit-generic-error-handler-actions"},e.createElement(c.a,{message:n,componentStack:a}),e.createElement(r.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(o.__)("Report this problem","google-site-kit")))}GenericErrorHandlerActions.propTypes={message:i.a.string,componentStack:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var a=n(22),i=n.n(a),o=n(23),r=n.n(o),c=n(0),l=n.n(c),s=n(4),u=n.n(s),d=n(20),m=u.a.useSelect;function ModuleIcon(t){var n=t.slug,a=t.size,o=r()(t,["slug","size"]),c=m((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,i()({width:a,height:a},o)):null}ModuleIcon.propTypes={slug:l.a.s
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Access lost to %s","google-site-kit"),null==r?void 0:r.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 won’t 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==r?void 0:r.name)):(n=Object(s.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Insufficient permissions in %s","google-site-kit"),null==r?void 0:r.name),Object(f.a)(e.message,r)):Object(g.b)(e)},T=Object(c.uniqWith)(u.map((function(e){var t;return N(N({},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})),k=u.some((function(e){return Object(g.e)(e)}));k||1!==T.length?!k&&T.length>1&&(n=Object(s.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Data errors in %s","google-site-kit"),null==r?void 0:r.name)):n=Object(s.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Data error in %s","google-site-kit"),null==r?void 0:r.name);var _=e.createElement(l.Fragment,null,T.map((function(t){var n,a=null==i||null===(n=i.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:_,error:!0},e.createElement(b.a,{moduleSlug:a,error:i}))}ReportError.propTypes={moduleSlug:r.a.string.isRequired,error:r.a.oneOfType([r.a.arrayOf(r.a.object),r.a.object]).isRequired}}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return RecoverableModules}));var a=n(0),i=n.n(a),o=n(1),r=n(4),c=n.n(r),l=n(20),s=n(110),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 i=1===a.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"),a[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"),a.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,n(3))},function(e,t,n){"use strict";var a=n(381);n.d(t,"a",(function(){return a.a}));var i=n(382);n.d(t,"c",(function(){return i.a}));var o=n(383);n.d(t,"b",(function(){return o.a}));n(160);var r=n(384);n.d(t,"f",(function(){return r.a}));var c=n(385);n.d(t,"d",(function(){return c.a}));n(342);var l=n(274);n.d(t,"e",(function(){return l.a}));n(275)},,function(e,t,n){"use strict";var a=n(141),i=(a.a.Consumer,a.a.Provider);t.a=i},function(e,t,n){"use strict";(function(e){var a=n(49),i=n.n(a),o=n(50),r=n.n(o),c=n(68),l=n.n(c),s=n(69),u=n.n(s),d=n(46),m=n.n(d),g=n(0),f=n.n(g),p=n(12),y=n.n(p),h=n(2),b=n(295),v=n(296);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=m()(e);if(t){var i=m()(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return u()(this,n)}}var N=function(t){l()(Layout,t);var n=T(Layout);function Layout(){return i()(this,Layout),n.apply(this,arguments)}return r()(Layout,[{key:"render",value:function(){var t=this.props,n=t.header,a=t.footer,i=t.children,o=t.title,r=t.headerCTALabel,c=t.headerCTALink,l=t.footerCTALabel,s=t.footerCTALink,u=t.footerContent,d=t.className,m=t.fill,g=t.relative,f=t.rounded,p=void 0!==f&&f,h=t.transparent,T=void 0!==h&&h;return e.createElement("div",{className:y()("googlesitekit-layout",d,{"googlesitekit-layout--fill":m,"googlesitekit-layout--relative":g,"googlesitekit-layout--rounded":p,"googlesitekit-layout--transparent":T})},n&&e.createElement(b.a,{title:o,ctaLabel:r,ctaLink:c}),i,a&&e.createElement(v.a,{ctaLabel:l,ctaLink:s,footerContent:u}))}}]),Layout}(h.Component);N.propTypes={header:f.a.bool,footer:f.a.bool,children:f.a.node.isRequired,title:f.a.string,headerCTALabel:f.a.string,headerCTALink:f.a.string,footerCTALabel:f.a.string,footerCTALink:f.a.string,footerContent:f.a.node,className:f.a.string,fill:f.a.bool,relative:f.a.bool,rounded:f.a.bool,transparent:f.a.bool},N.defaultProps={header:!1,footer:!1,title:"",headerCTALabel:"",headerCTALink:"",footerCTALabel:"",footerCTALink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=N}).call(this,n(3))},,,function(e,t,n){"use strict";(function(e){var a=n(0),i=n.n(a),o=n(12),r=n.n(o),c=n(2),l=n(18),s=Object(c.forwardRef)((function(t,n){var a=t.id,i=t.className,o=t.children,s=t.secondaryPane;return e.createElement("section",{id:a,className:r()(i,"googlesitekit-publisher-win"),ref:n},e.createElement(l.e,null,e.createElement(l.k,null,o)),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:i.a.string,className:i.a.string,secondaryPane:i.a.node},t.a=s}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerTitle}));var a=n(6),i=n.n(a),o=n(0),r=n.n(o),c=n(12),l=n.n(c),s=n(113);function BannerTitle(t){var n=t.title,a=t.badgeLabel,o=t.WinImageSVG,r=t.winImageFormat,c=void 0===r?"":r,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,{
|
|||
|
|
/* translators: %s: Module name */
|
|||
|
|
Object(o.__)("%s Gathering Data","google-site-kit"),null==a?void 0:a.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==a?void 0:a.name)})}ReportZero.propTypes={moduleSlug:i.a.string.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerIcon}));var a=n(0),i=n.n(a),o=n(182),r=n(158),c=n(18);function BannerIcon(t){var n=t.type;if("win-error"!==n&&"win-warning"!==n)return null;var a="win-warning"===n?e.createElement(o.a,{width:34}):e.createElement(r.a,{width:28});return e.createElement(c.a,{size:1,smOrder:3,mdOrder:3,lgOrder:3},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},a))}BannerIcon.propTypes={type:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerLogo}));var a=n(0),i=n.n(a),o=n(18),r=n(138),c=n(162);function BannerLogo(t){var n=t.module,a=t.moduleName;return e.createElement(o.a,{size:12},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},n&&e.createElement(c.a,{slug:n,size:19}),!n&&e.createElement(r.a,{height:"34",width:"32"})),a&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},a))}BannerLogo.propTypes={module:i.a.string,moduleName:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerDescription}));var a=n(0),i=n.n(a),o=n(2),r=n(78),c=n(24),l=n(75);function BannerDescription(t){var n=t.description,a=t.learnMoreLabel,i=t.learnMoreURL,s=t.learnMoreTarget,u=t.learnMoreDescription,d=t.onLearnMoreClick;if(!n)return null;var m;return a&&(m=e.createElement(o.Fragment,null,e.createElement(c.a,{onClick:function(e){e.persist(),null==d||d()},href:i,external:s===l.a.EXTERNAL},a),u)),e.createElement("div",{className:"googlesitekit-publisher-win__desc"},Object(o.isValidElement)(n)?e.createElement(o.Fragment,null,n,m&&e.createElement("p",null,m)):e.createElement("p",null,e.createElement("span",{dangerouslySetInnerHTML:Object(r.a)(n,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})})," ",m))}BannerDescription.propTypes={description:i.a.node,learnMoreURL:i.a.string,learnMoreDescription:i.a.string,learnMoreLabel:i.a.string,learnMoreTarget:i.a.oneOf(Object.values(l.a)),onLearnMoreClick:i.a.func}}).call(this,n(3))},,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var a=n(5),i=n.n(a),o=n(16),r=n.n(o),c=n(0),l=n.n(c),s=n(12),u=n.n(s),d=n(2),m=n(43),g=n(1),f=n(4),p=n.n(f),y=n(10),h=n(7),b=n(34),v=n(24),T=n(19),N=p.a.useSelect,E=p.a.useDispatch;function OptIn(t){var n=t.id,a=void 0===n?"googlesitekit-opt-in":n,o=t.name,c=void 0===o?"optIn":o,l=t.className,s=t.trackEventCategory,f=t.alignLeftCheckbox,p=void 0!==f&&f,k=N((function(e){return e(h.a).isTrackingEnabled()})),_=N((function(e){return e(h.a).isSavingTrackingEnabled()})),O=N((function(e){return e(h.a).getErrorForAction("setTrackingEnabled",[!k])})),I=E(h.a).setTrackingEnabled,S=Object(T.a)(),A=Object(d.useCallback)(function(){var e=r()(i.a.mark((function e(t){var n,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I(!!t.target.checked);case 2:n=e.sent,a=n.response,n.error||(Object(b.a)(a.enabled),a.enabled&&Object(b.b)(s||S,"tracking_optin"));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[I,s,S]);return e.createElement("div",{className:u()("googlesitekit-opt-in",l)},e.createElement(y.Checkbox,{id:a,name:c,value:"1",checked:k,disabled:_,onChange:A,loading:void 0===k,alignLeft:p},Object(m.a)(Object(g.__)("<span>Help us improve Site Kit by sharing anonymous usage data.</span> <span>All collected data is treated in accordance with the <a>Google Privacy Policy.</a></span>","google-site-kit"),{a:e.createElement(v.a,{key:"link",href:"https://policies.google.com/privacy",external:!0}),span:e.createElement("span",null)})),(null==O?void 0:O.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==O?void 0:O.message))}OptIn.propTypes={id:l.a.string,name:l.a.string,className:l.a.string,trackEventCategory:l.a.string,alignLeftCheckbox:l.a.b
|
|||
|
|
/* translators: Account info text. 1: User's (full) name 2: User's email address. */
|
|||
|
|
Object(m.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),r,n)),r&&!n&&(z=Object(m.sprintf)(
|
|||
|
|
/* translators: Account info text. 1: User's (full) name. */
|
|||
|
|
Object(m.__)("Google Account for %1$s","google-site-kit"),r)),!r&&n&&(z=Object(m.sprintf)(
|
|||
|
|
/* translators: Account info text. 1: User's email address. */
|
|||
|
|
Object(m.__)("Google Account (Email: %1$s)","google-site-kit"),n)),a.createElement(d.Fragment,null,a.createElement("div",{ref:R,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},a.createElement(y.Button,{ref:B,className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--tablet googlesitekit-border-radius-round--phone googlesitekit-border-radius-round googlesitekit-button-icon",text:!0,onClick:H,icon:!!i&&a.createElement("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true"},a.createElement("img",{className:"mdc-button__icon--image",src:i,alt:Object(m.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":P,"aria-controls":"user-menu","aria-label":Object(m.__)("Account","google-site-kit"),tooltip:!0,tooltipEnterDelayInMS:500,customizedTooltip:a.createElement("span",{"aria-label":z},a.createElement("strong",null,Object(m.__)("Google Account","google-site-kit")),a.createElement("br",null),a.createElement("br",null),r,r&&a.createElement("br",null),n)}),a.createElement(y.Menu,{className:"googlesitekit-user-menu",menuOpen:P,onSelected:W,id:"user-menu"},a.createElement("li",null,a.createElement(N.a,null)),!!t&&a.createElement("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem"},a.createElement(E.a,{icon:a.createElement(_.a,{width:"22"}),label:Object(m.__)("Manage Sites","google-site-kit")})),a.createElement("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem"},a.createElement(E.a,{icon:a.createElement(k.a,{width:"22"}),label:Object(m.__)("Disconnect","google-site-kit")})))),a.createElement(T.a,null,a.createElement(h.a,{dialogActive:M,handleConfirm:V,handleDialog:F,title:Object(m.__)("Disconnect","google-site-kit"),subtitle:Object(m.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:Object(m.__)("Disconnect","google-site-kit"),danger:!0})))):null}}).call(this,n(26),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Details}));var a=n(1),i=n(4),o=n.n(i),r=n(7),c=o.a.useSelect;function Details(){var t=c((function(e){return e(r.a).getPicture()})),n=c((function(e){return e(r.a).getFullName()})),i=c((function(e){return e(r.a).getEmail()}));return e.createElement("div",{className:"googlesitekit-user-menu__details","aria-label":Object(a.__)("Google account","google-site-kit")},!!t&&e.createElement("img",{className:"googlesitekit-user-menu__details-avatar",src:t,alt:""}),e.createElement("div",{className:"googlesitekit-user-menu__details-info"},e.createElement("p",{className:"googlesitekit-user-menu__details-info__name"},n),e.createElement("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":Object(a.__)("Email","google-site-kit")},i)))}}).call(this,n(3))},function(e,t,n){"use strict";var a=n(2);function i(){return(i=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 o=a.createElement("path",{d:"M6.83 2H20a2 2 0 012 2v12c0 .34-.09.66-.23.94L20 15.17V6h-9.17l-4-4zm13.66 19.31L17.17 18H4a2 2 0 01-2-2V4c0-.34.08-.66.23-.94L.69 1.51 2.1.1l19.8 19.8-1.41 1.41zM15.17 16l-10-10H4v10h11.17z",fill:"#6C726E"});t.a=function SvgDisconnect(e){return a.createElement("svg",i({viewBox:"0 0 22 22",fill:"none"},e),o)}},function(e,t,n){"use strict";var a=n(2);function i(){return(i=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 o=a.createElement("path",{d:"M20 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h18v12zm-2-9H7v2h11V5zm0 4H7v2h11V9zM6 5H4v2h2V5zm0 4H4v2h2V9z",fill:"#6C726E"});t.a=function SvgManageSites(e){return a.createElement("svg",i({viewBox:"0 0 22 18",fill:"none
|
|||
|
|
/* translators: %s: List of product names */
|
|||
|
|
Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(m.t)(s));break;case"single":u=Object(l.sprintf)(
|
|||
|
|
/* translators: %s: Product name */
|
|||
|
|
Object(l.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),s[0]);break;case"generic":u=Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return a.createElement(d.b,{id:"authentication error",title:I,description:u,format:"small",type:"win-error",isDismissible:!1,ctaLink:_,onCTAClick:function(){v.current=!0},ctaLabel:S})}}).call(this,n(26),n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return UnsatisfiedScopesAlertGTE}));var i=n(1),o=n(4),r=n.n(o),c=n(42),l=n(14),s=n(7),u=n(33),d=n(25),m=r.a.useSelect;function UnsatisfiedScopesAlertGTE(){var t=m((function(e){return e(d.a).getValue(s.c,"permissionsError")})),n=m((function(n){var a;return n(s.a).getConnectURL({additionalScopes:[u.h],redirectURL:(null==t||null===(a=t.data)||void 0===a?void 0:a.redirectURL)||e.location.href})})),o=m((function(e){return e(l.c).getGoogleSupportURL({path:"/tagmanager/answer/11994839"})}));return void 0===n?null:a.createElement(c.b,{id:"authentication-error-gte",title:Object(i.__)("Site Kit needs additional permissions to detect updates to tags on your site","google-site-kit"),description:Object(i.__)("To continue using Analytics with Site Kit, you need to grant permission to check for any changes in your Google tag’s target Analytics property. The Google tag feature was recently updated to allow users to change a tag’s connected Analytics property without editing site code. Because of this change, Site Kit now must regularly check if the tag on your site matches the Analytics property destination.","google-site-kit"),format:"small",type:"win-error",isDismissible:!1,ctaLink:n,ctaLabel:Object(i.__)("Grant permission","google-site-kit"),learnMoreLabel:Object(i.__)("Learn more","google-site-kit"),learnMoreURL:o})}}).call(this,n(26),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var a=n(4),i=n.n(a),o=n(14),r=n(42),c=i.a.useSelect;function InternalServerError(){var t=c((function(e){return e(o.c).getInternalServerError()}));return t?e.createElement(r.b,t):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardNavigation}));var a=n(4),i=n.n(a),o=n(7),r=n(38),c=n(167),l=n(255),s=i.a.useSelect;function DashboardNavigation(){var t=Object(r.a)(),n=s((function(e){return t?e(o.a).getViewableModules():null})),a=s((function(e){return e(o.a).getKeyMetrics()}));return e.createElement(c.a,{loading:void 0===n||void 0===a,width:"100%",smallHeight:"59px",height:"71px"},e.createElement(l.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return Navigation}));var i=n(31),o=n.n(i),r=n(17),c=n.n(r),l=n(12),s=n.n(l),u=n(15),d=n(86),m=n(143),g=n(2),f=n(1),p=n(4),y=n.n(p),h=n(256),b=n(257),v=n(258),T=n(259),N=n(260),E=n(21),k=n(7),_=n(44),O=n(29),I=n(72),S=n(66),A=n(30),Z=n(119),C=n(8),j=n(19),M=n(38);function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},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,r=!0,c=!1;return{s:function(
|
|||
|
|
/* translators: %s: module owner Google Account email address */
|
|||
|
|
Object(r.__)("Shared by <strong>%s</strong>","google-site-kit"),l.login),{strong:e.createElement("strong",{title:l.login})})))}Service.propTypes={module:i.a.string.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Tracking}));var a=n(43),i=n(1),o=n(194),r=n(19);function Tracking(){var t=Object(r.a)();return e.createElement("li",{className:"googlesitekit-view-only-menu__list-item"},e.createElement("p",null,Object(a.a)(Object(i.__)("Thanks for using Site Kit!<br />Help us make it even better","google-site-kit"),{br:e.createElement("br",null)})),e.createElement(o.a,{trackEventCategory:"".concat(t,"_headerbar_viewonly"),alignCheckboxLeft:!0}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupErrorNotification}));var a=n(1),i=n(4),o=n.n(i),r=n(42),c=n(14),l=o.a.useSelect;function SetupErrorNotification(){var t=l((function(e){return e(c.c).getSetupErrorMessage()})),n=l((function(e){return e(c.c).getSetupErrorRedoURL()}));return t?e.createElement(r.b,{id:"setup_error",type:"win-error",title:Object(a.__)("Oops! There was a problem during set up. Please try again.","google-site-kit"),description:t,isDismissible:!1,ctaLabel:Object(a.__)("Redo the plugin setup","google-site-kit"),ctaLink:n}):null}}).call(this,n(3))},function(e,t,n){"use strict";var a=n(2);function i(){return(i=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 o=a.createElement("path",{d:"M9 16h2v-2H9v2zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",fill:"currentColor"});t.a=function SvgHelp(e){return a.createElement("svg",i({viewBox:"0 0 20 20",fill:"none"},e),o)}},,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UseSnippetSwitch}));var a=n(0),i=n.n(a),o=n(2),r=n(1),c=n(4),l=n.n(c),s=n(10),u=n(9),d=n(8),m=n(19),g=l.a.useSelect,f=l.a.useDispatch;function UseSnippetSwitch(t){var n=t.description,a=Object(m.a)(),i=g((function(e){return e(u.m).getUseSnippet()})),c=f(u.m).setUseSnippet,l=Object(o.useCallback)((function(){var e=!i;c(e),Object(d.B)("".concat(a,"_analytics"),e?"enable_tag":"disable_tag","ga4")}),[i,c,a]);return void 0===i?null:e.createElement("div",{className:"googlesitekit-analytics-usesnippet"},e.createElement(s.Switch,{label:Object(r.__)("Place Google Analytics 4 code","google-site-kit"),checked:i,onClick:l,hideLabel:!1}),n)}UseSnippetSwitch.propTypes={description:i.a.node}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Notice}));var a=n(1),i=n(4),o=n.n(i),r=n(74),c=n(24),l=n(14),s=o.a.useSelect;function Notice(){var t=s((function(e){return e(l.c).getDocumentationLinkURL("ga4")}));return e.createElement(r.c,{type:r.a,LearnMore:function LearnMore(){return e.createElement(c.a,{href:t,external:!0},Object(a.__)("Learn more here.","google-site-kit"))},notice:Object(a.__)("Got a Google Analytics 4 (GA4) property and want to find out how to use it with Site Kit?","google-site-kit")})}}).call(this,n(3))},,function(e,t,n){"use strict";var a=n(2);function i(){return(i=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 o=a.createElement("path",{d:"M4.522 143.34c2.283 6.363 5.534 12.204 9.6 17.248 15.98 19.643 39.589 21.308 61.242 16.393 21.924-5.009 42.593-15.632 60.484-31.083 10.296-8.905 20.465-19.956 34.097-20.448 5.118-.184 10.412 1.462 14.278 5.346 8.035 8.019 7.892 21.731 14.162 31.235 8.339 12.64 20.332 16.554 33.415 18.013 36.961 4.116 80.986-9.39 106.41-42.253 22.699-29.338 25.423-76.02-2.053-102.765-12.553-12.22-29.767-17.818-46.014-14.965-12.418 2.18-25.024 8.813-37.878 10.657-15.138 2.177-24.497-5.246-36.745-13.892-21.342-15.026-49.557-20.8
|
|||
|
|
/* translators: 1: Data stream name. 2: Measurement ID. */
|
|||
|
|
Object(l._x)("%1$s (%2$s)","Analytics 4 data stream name and measurement ID","google-site-kit"),i,r.measurementId):i)})))}WebDataStreamSelect.propTypes={hasModuleAccess:r.a.bool,isDisabled:r.a.bool,className:r.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertySelect}));var a=n(12),i=n.n(a),o=n(0),r=n.n(o),c=n(2),l=n(1),s=n(10),u=n(4),d=n.n(u),m=n(9),g=n(13),f=n(56),p=n(59),y=n(8),h=n(19),b=d.a.useSelect,v=d.a.useDispatch;function PropertySelect(t){var n=t.isDisabled,a=t.hasModuleAccess,o=t.className,r=t.onChange,u=void 0===r?function(){}:r,d=b((function(e){return e(g.f).getAccountID()})),T=b((function(e){return!1===a||n?null:e(m.m).getPropertySummaries(d)||[]})),N=b((function(e){return e(m.m).getPropertyID()})),E=b((function(e){return!n&&(e(m.m).isLoadingPropertySummaries()||e(m.m).isLoadingWebDataStreams({hasModuleAccess:a}))})),k=Object(h.a)(),_=v(m.m).selectProperty,O=Object(c.useCallback)((function(e,t){var n=t.dataset.value;N!==n&&(_(n),Object(y.B)("".concat(k,"_analytics"),n===m.n?"change_property_new":"change_property","ga4"),u())}),[u,N,_,k]);if(!Object(f.b)(d))return null;if(E)return e.createElement(s.ProgressBar,{smallHeight:80,desktopHeight:88,small:!0});var I=void 0===N||""===N||Object(p.d)(N);return!1===a?e.createElement(s.Select,{className:i()("googlesitekit-analytics-4__select-property",o),label:Object(l.__)("Property","google-site-kit"),value:N,enhanced:!0,outlined:!0,disabled:!0},e.createElement(s.Option,{value:N},N)):e.createElement(s.Select,{className:i()("googlesitekit-analytics-4__select-property",o,{"mdc-select--invalid":!I,"googlesitekit-analytics-4__select-property--loaded":!n&&!E}),label:Object(l.__)("Property","google-site-kit"),value:N,onEnhancedChange:O,disabled:n,enhanced:!0,outlined:!0},(T||[]).concat({_id:m.n,displayName:Object(l.__)("Set up a new property","google-site-kit")}).map((function(t){var n=t._id,a=t.displayName;return e.createElement(s.Option,{key:n,value:n},n===m.n?a:Object(l.sprintf)(
|
|||
|
|
/* translators: 1: Property name. 2: Property ID. */
|
|||
|
|
Object(l._x)("%1$s (%2$s)","Analytics property name and ID","google-site-kit"),a,n))})))}PropertySelect.propTypes={isDisabled:r.a.bool,hasModuleAccess:r.a.bool,className:r.a.string,onChange:r.a.func}}).call(this,n(3))},,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TimezoneSelect}));var a=n(2),i=n(1),o=n(10),r=n(4),c=n.n(r),l=n(201),s=n(9),u=n(25),d=c.a.useSelect,m=c.a.useDispatch;function TimezoneSelect(){var t=d((function(e){return e(u.a).getValue(s.h,"countryCode")})),n=d((function(e){return e(u.a).getValue(s.h,"timezone")})),r=m(u.a).setValues,c=Object(a.useCallback)((function(e,t){r(s.h,{timezone:t.dataset.value})}),[r]);return e.createElement(o.Select,{className:"googlesitekit-analytics__select-timezone",label:Object(i.__)("Timezone","google-site-kit"),value:n,onEnhancedChange:c,disabled:!t,enhanced:!0,outlined:!0},(l.c[t]||[]).map((function(t,n){var a=t.timeZoneId,i=t.displayName;return e.createElement(o.Option,{key:n,value:a},i)})))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AccountField}));var a=n(2),i=n(1),o=n(197),r=n(4),c=n.n(r),l=n(9),s=n(25),u=c.a.useSelect,d=c.a.useDispatch;function AccountField(){var t=u((function(e){return e(s.a).getValue(l.h,"accountName")})),n=d(s.a).setValues,r=Object(a.useCallback)((function(e){n(l.h,{accountName:e})}),[n]);return e.createElement(o.a,{label:Object(i.__)("Account","google-site-kit"),hasError:!t,value:t,setValue:r,name:"account"})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertyField}));var a=n(2),i=n(1),o=n(197),r=n(4),c=n.n(r),l=n(9),s=n(25),u=c.a.useSelect,d=c.a.useDispatch;function PropertyField(){var t=u((function(e){return e(s.a).getValue(l.h,"propertyName")})),n=d(s.a).setValues,r=Object(a.useCallback)((function(e){n(l.h,{propertyName:e})}),[n]);return e.createElement(o.a,{label:Object(i.__)("Property","google-site-kit"),value:t,hasError:!t,setValue:r,name:"property"})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CountrySelect}));var a=n(2),i=n(1),o=n(10),r=n(4),c=n.n(r),l=n(201),s=n(9),u=n(25),d=c.a.useSelect,m=c.a.useDispatch;function CountrySelect(){var t=d((function(e){return e(u.a).getValue(s.h,"countryCode")})),n=m(u.a).setValues,r=Object(a.useCallback)((function(e,a){var i=a.dataset.value;i!==t&&l.b[i]&&n(s.h,{countryCode:i,timezone:l.b[i].defaultTimeZoneId})}),[n,t]);return e.createElement(o.Select,{className:"googlesitekit-analytics__select-country",label:Object(i.__)("Country","google-site-kit"),value:t,onEnhancedChange:r,enhanced:!0,outlined:!0},l.a.map((function(t,n){var a=t.countryCode,i=t.displayName;return e.createElement(o.Option,{key:n,value:a},i)})))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebDataStreamField}));var a=n(2),i=n(1),o=n(197),r=n(4),c=n.n(r),l=n(9),s=n(25),u=c.a.useSelect,d=c.a.useDispatch;function WebDataStreamField(){var t=u((function(e){return e(s.a).getValue(l.h,"dataStreamName")})),n=d(s.a).setValues,r=Object(a.useCallback)((function(e){n(l.h,{dataStreamName:e})}),[n]);return e.createElement(o.a,{label:Object(i.__)("Web Data Stream","google-site-kit"),value:t,hasError:!t,setValue:r,name:"dataStream"})}}).call(this,n(3))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(8),i=n(51);function o(e){var t=Object(i.a)(e);return t<Object(i.a)("2023-05-01")?Object(a.p)("month"):Object(i.a)("2023-05-01")<=t&&t<Object(i.a)("2023-06-01")?Math.max(31*Object(a.p)("day")-t.getDate()*Object(a.p)("day"),2*Object(a.p)("day")):2*Object(a.p)("day")}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){var a=n(28),i=n(1),o=n(7),r=(e._googlesitekitUserData||{}).hasMultipleAdmins,c=[{target:".googlesitekit-dashboard-sharing-settings__main .googlesitekit-dashboard-sharing-settings__column--view",title:Object(i.__)("Manage view access for other roles","google-site-kit"),content:Object(i.__)("Grant access to the view-only dashboard for each service for the specific roles you want. Us
|
|||
|
|
/* translators: %s: user who manages the module. */
|
|||
|
|
Object(s.__)("<span>Managed by</span> <strong>%s</strong>","google-site-kit"),o),{span:e.createElement("span",null),strong:e.createElement("strong",null)}),e.createElement(f.Tooltip,{title:G?Object(s.sprintf)(
|
|||
|
|
/* translators: %s: name of the user who manages the module. */
|
|||
|
|
Object(s.__)("%s has connected this and given managing permissions to all admins. You can change who can view this on the dashboard.","google-site-kit"),o):Object(s.sprintf)(
|
|||
|
|
/* translators: %s: name of the user who manages the module. */
|
|||
|
|
Object(s.__)("Contact %s to change who can manage view access for this module","google-site-kit"),o)},e.createElement("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon"},e.createElement(u.a,{icon:d.a,size:18}))))))}Module.propTypes={moduleSlug:r.a.string.isRequired,moduleName:r.a.string.isRequired,ownerUsername:r.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(31),i=n.n(a),o=n(0),r=n.n(o),c=n(12),l=n.n(c),s=n(1),u=n(57),d=n(2),m=n(4),g=n.n(m),f=n(10),p=n(24),y=n(346),h=n(457),b=n(19),v=n(115),T=n(8),N=n(20),E=n(29),k=n(121),_=g.a.useSelect,O=g.a.useDispatch,I=Object(s.__)("All","google-site-kit"),S=Object(d.forwardRef)((function(t,n){var a=t.moduleSlug,o=t.isLocked,r=void 0!==o&&o,c=Object(b.a)(),m=Object(d.useRef)(),g=O(N.a).setSharedRoles,S=O(E.b).setValue,A=_((function(e){return e(N.a).getShareableRoles()})),Z=_((function(e){return e(N.a).getSharedRoles(a)})),C=_((function(e){return e(E.b).getValue(k.a)}))===a;Object(v.a)([u.c],n,(function(){C&&S(k.a,void 0)}));var j=_((function(e){return e(N.a).haveModuleSharingSettingsChanged(a,"sharedRoles")})),M=Object(d.useCallback)((function(){C?(S(k.a,void 0),j&&Object(T.B)("".concat(c,"_sharing"),"change_shared_roles",a)):S(k.a,a)}),[C,j,a,S,c]);Object(d.useEffect)((function(){m.current&&(C?m.current.firstChild.focus():m.current.focus())}),[C]);var w=Object(d.useCallback)((function(e){var t,n=e.type,o=e.target,r=e.keyCode;if("keydown"!==n||r===u.b){var c,l=o.closest(".mdc-chip"),s=null==l||null===(t=l.dataset)||void 0===t?void 0:t.chipId;if(s)c="all"===s?(null==Z?void 0:Z.length)===(null==A?void 0:A.length)?[]:A.map((function(e){return e.id})):null===Z?[s]:Z.includes(s)?Z.filter((function(e){return e!==s})):[].concat(i()(Z),[s]),g(a,c)}}),[a,g,Z,A]);return A?e.createElement("div",{className:l()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":C})},!C&&e.createElement(f.Button,{"aria-label":Object(s.__)("Edit roles","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:M,icon:e.createElement(y.a,{width:23,height:23}),tabIndex:r?-1:void 0,ref:m}),!C&&(null==Z?void 0:Z.length)>0&&e.createElement("span",{className:"googlesitekit-user-role-select__current-roles"},(null==A?void 0:A.reduce((function(e,t){return Z.includes(t.id)&&e.push(t.displayName),e}),[])).join(", ")),!C&&(!Z||0===(null==Z?void 0:Z.length))&&e.createElement("span",{className:"googlesitekit-user-role-select__add-roles"},e.createElement(p.a,{onClick:M,tabIndex:r?-1:void 0},Object(s.__)("Add roles","google-site-kit"))),C&&e.createElement(d.Fragment,null,e.createElement("div",{className:"googlesitekit-user-role-select__chipset",ref:m},e.createElement(f.Chip,{id:"all",label:I,onClick:w,onKeyDown:w,selected:(null==Z?void 0:Z.length)===(null==A?void 0:A.length),className:"googlesitekit-user-role-select__chip--all"}),A.map((function(t,n){var a=t.id,i=t.displayName;return e.createElement(f.Chip,{key:n,id:a,label:i,onClick:w,onKeyDown:w,selected:null==Z?void 0:Z.includes(a)})}))),e.createElement(f.Button,{"aria-label":Object(s.__)("Done editing roles","google-site-kit"),title:Object(s.__)("Done","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:M,icon:e.createElement(h.a,{width:18,height:18}),tabIndex:r?-1:void 0}))):null}));S.propTypes={moduleSlug:r.a.string.isRequired,isLocked:r.a.bool},t.a=S}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Footer}));var a=n(5),i=n.n(a),o=n(16),r=n.n(o),c=n(17),l=n.n(c),s=n(0),u=n.n(s),d=n(1),m=n(2),g=n(10),f=n(4),p=n.n(f),y=n(20),h=n(29),b=n(121),v=n(19),T=n(8),N=n(24),E=n(559),k=n(87),_=p.a.useSelect,O=p.a.useDispatch;function Footer(t){var n=t.closeDialog,a=t.openResetDialog,o=Object(v.a)(),c=Object(m.useState)(null),s=l()(c,2),u=s[0],f=s[1],p=Object(m.useState)(!1),I=l()(p,2),S=I[0],A=I[1],Z=_((function(e){return e(y.a).canSubmitSharingChanges()})),C=_((function(e){return e(y.a).isDoingSubmitSharingChanges()})),j=_((function(e){return e(y.a).haveSharingSettingsExpanded("management")})),M=_((function(e){return e(y.a
|
|||
|
|
/* translators: %s: Number of days remaining before the user can set up Google Analytics 4 */
|
|||
|
|
Object(l.__)("You only have %d more days to set up Google Analytics 4","google-site-kit"),U)}else P=Object(l.__)("Universal Analytics stopped collecting data on July 1, 2023","google-site-kit"),x=Object(l.__)("Set up Google Analytics 4, the new version of Google Analytics, to continue seeing data in Site Kit.","google-site-kit");var z=e.createElement("section",null,e.createElement("h4",{className:"googlesitekit-publisher-win__secondary-pane-title"},Object(l.__)("Google Analytics 4 benefits:","google-site-kit")),e.createElement("ul",{className:"googlesitekit-publisher-win__secondary-pane-list"},e.createElement("li",null,e.createElement(S.a,{height:18,width:18}),Object(l.__)("Full cross-device and cross-platform reporting","google-site-kit")),e.createElement("li",null,e.createElement(S.a,{height:18,width:18}),Object(l.__)("Advanced conversion tracking, such as when visitors submit a form or add an item to cart","google-site-kit")),e.createElement("li",null,e.createElement(S.a,{height:18,width:18}),Object(l.__)("Detailed insights on how users navigate your site","google-site-kit"))));return!1===u?e.createElement(k.a,{title:P,description:x,dismissExpires:Object(T.a)(Z),onDismiss:R}):e.createElement(y.b,{id:"ga4-activation-banner",className:"googlesitekit-ga4-reminder-banner",title:P,description:x,learnMoreLabel:Object(l.__)("Learn more about Google Analytics 4","google-site-kit"),learnMoreURL:C,ctaLabel:Object(l.__)("Set up now","google-site-kit"),ctaLink:a?"#":null,onCTAClick:D,dismiss:Object(l.__)("Remind me later","google-site-kit"),dismissExpires:Object(T.a)(Z),secondaryPane:z,onDismiss:R,onLearnMoreClick:B},o)}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReminderBannerNoAccess}));var a=n(0),i=n.n(a),o=n(1),r=n(43),c=n(4),l=n.n(c),s=n(20),u=n(42),d=l.a.useSelect;function ReminderBannerNoAccess(t){var n,a=t.title,i=t.description,c=t.dismissExpires,l=t.onDismiss,m=d((function(e){return e(s.a).getModule("analytics")})),g=(null==m||null===(n=m.owner)||void 0===n?void 0:n.login)?"<strong>".concat(m.owner.login,"</strong>"):Object(o.__)("Another admin","google-site-kit"),f=e.createElement("p",null,Object(r.a)(Object(o.sprintf)(
|
|||
|
|
/* translators: 1. Original reminder description text, 2: module owner's name */
|
|||
|
|
Object(o.__)("%1$s.<br />%2$s configured Analytics and you don’t have access to its configured property. Contact them to share access or set up Google Analytics 4.","google-site-kit"),i,g),{strong:e.createElement("strong",null),br:e.createElement("br",null)}));return e.createElement(u.b,{id:"ga4-activation-banner",className:"googlesitekit-ga4-reminder-banner",title:a,description:f,dismiss:Object(o.__)("Remind me later","google-site-kit"),dismissExpires:c,onDismiss:l})}ReminderBannerNoAccess.propTypes={title:i.a.string.isRequired,description:i.a.node,dismissExpires:i.a.number,onDismiss:i.a.func}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return SetupBanner}));var i=n(5),o=n.n(i),r=n(16),c=n.n(r),l=n(17),s=n.n(l),u=n(2),d=n(244),m=n(1),g=n(10),f=n(4),p=n.n(f),y=n(42),h=n(173),b=n(111),v=n(9),T=n(319),N=n(13),E=n(7),k=n(71),_=n(159),O=n(217),I=n(218),S=n(407),A=n(18),Z=n(25),C=n(40),j=n(19),M=n(8),w=n(574),G=n(324),L=p.a.useDispatch,P=p.a.useSelect;function SetupBanner(t){var n=t.onSubmitSuccess,i=Object(u.useState)(null),r=s()(i,2),l=r[0],f=r[1],p=Object(u.useState)(null),D=s()(p,2),R=D[0],B=D[1],x=Object(u.useState)(!1),U=s()(x,2),z=U[0],H=U[1],F=Object(u.useState)(!1),W=s()(F,2),V=W[0],K=W[1],q=Object(j.a)(),Y="".concat(q,"_ga4-setup-notification"),J=L(v.m),X=J.submitChanges,$=J.selectProperty,Q=J.matchAndSelectProperty,ee=P((function(e){return e(N.f).getAccountID()})),te=P((function(e){return e(v.m).getProperties(ee)})),ne=P((function(e){return e(N.f).getAccounts()})),ae=P((function(e){return e(v.m).getPropertyID})),ie=P((function(e){return e(v.m).getMeasurementID})),oe=Object(u.useCallback)(c()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===R){e.next=2;break}return e.abrupt("return");case 2:if(void 0!==te){e.next=4;break}return e.abrupt("return");case 4:if(0!==te.length){e.next=8;break}return B(G.a.NO_EXISTING_PROPERTY),$(v.n),e.abrupt("return");case 8:if(void 0!==ne){e.next=10;break}return e.abrupt("return");case 10:if(ae()){e.next=13;break}return e.next=13,Q(ee,v.n);case 13:B(G.a.EXISTING_PROPERTY);case 14:case"end":return e.stop()}}),e)}))),[ee,ne,ae,Q,te,$,R]);Object(u.useEffect)((function(){R||oe()}),[R,oe]);var re=P((function(e){return e(E.a).hasScope(N.c)})),ce=P((function(e){return e(v.m).getExistingTag()})),le=P((function(e){return e(Z.a).getValue(N.e,"autoSubmit")}));Object(T.a)();var se=P((function(e){return e(E.a).getReferenceDate()})),ue=L(E.a).setPermissionScopeError,de=L(Z.a).setValues,me=Object(u.useCallback)(c()(o.a.mark((function e(){var t,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),e.next=3,X();case 3:if(t=e.sent,a=t.error,H(!1),!a){e.next=9;break}return f(a),e.abrupt("return");case 9:n();case 10:case"end":return e.stop()}}),e)}))),[X,n]),ge=Object(u.useCallback)(c()(o.a.mark((function t(){var n,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],!1!==re||ae()!==v.n&&ie()||n.push(N.c),R===G.a.NO_EXISTING_PROPERTY||ae()===v.n?Object(M.B)(Y,"create_property"):Object(M.B)(Y,"connect_property"),!(n.length>0)){t.next=9;break}return de(N.e,{autoSubmit:!0}),de(k.h,{returnToSetupStep:!0}),a=Object(d.a)(e.location.href,{notification:"ga4_setup"}),ue({code:C.a,message:Object(m.__)("Additional permissions are required to create a new GA4 property","google-site-kit"),data:{status:403,scopes:n,skipModal:!0,redirectURL:a}}),t.abrupt("return");case 9:return t.next=11,me();case 11:case"end":return t.stop()}}),t)}))),[Y,R,re,ue,de,me,ae,ie]);Object(u.useEffect)((function(){function e(){return(e=c()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return de(N.e,{autoSubmit:!1}),e.next=3,me();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}le&&re&&function(){e.apply(this,arguments)}()}),[le,re,de,me,n]),Object(u.useEffect)((function(){V||le||!R||(Object(M.B)(Y,"view_notification"),K(!0))}),[Y,le,R,V]);var fe,pe,ye,he=Object(_.a)(k.a).isTooltipVisible,be=Object(O.a)(k.a);return null===R?a.createElement("div",{cl
|
|||
|
|
/* translators: %s: existing tag ID */
|
|||
|
|
Object(m.__)("A tag %s for the selected property already exists on the site.","google-site-kit"),ce)),a.createElement("p",null,Object(m.__)("Make sure you remove it if you decide to place the same GA4 tag via Site Kit, otherwise they will be duplicated.","google-site-kit")))}))):(fe=Object(m.__)("No existing Google Analytics 4 property found, Site Kit will help you create a new one and insert it on your site","google-site-kit"),pe=Object(m.__)("Create property","google-site-kit")),a.createElement(y.b,{id:"ga4-activation-banner",className:"googlesitekit-ga4-setup-banner",title:fe,ctaComponent:a.createElement(g.SpinnerButton,{onClick:ge,isSaving:z},pe),footer:a.createElement(w.a,{variant:R}),dismiss:Object(m.__)("Cancel","google-site-kit"),dismissExpires:Object(S.a)(se),onDismiss:be},l&&a.createElement(b.a,{error:l}),ye))}}).call(this,n(26),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupBannerFooter}));var a=n(1),i=n(4),o=n.n(i),r=n(7),c=n(13),l=n(9),s=n(324),u=o.a.useSelect;function SetupBannerFooter(t){var n=t.variant,i=u((function(e){var t=[],i=e(r.a).hasScope(c.c),o=e(l.m).getPropertyID(),u=e(l.m).getMeasurementID(),d=e(l.m).getExistingTag();return n===s.a.EXISTING_PROPERTY?(!1!==i||o!==l.n&&u||t.push(Object(a.__)("You will need to give Site Kit permission to create an Analytics property on your behalf","google-site-kit")),t.push(Object(a.__)("You can always add/edit this in the Site Kit Settings","google-site-kit"))):(d&&t.push(Object(a.sprintf)(
|
|||
|
|
/* translators: %s: The existing tag ID. */
|
|||
|
|
Object(a.__)("A GA4 tag %s is found on this site but this property is not associated with your Google Analytics account","google-site-kit"),d)),!1===i&&t.push(Object(a.__)("You will need to give Site Kit permission to create an Analytics property on your behalf","google-site-kit")),t.push(Object(a.__)("You can always add/edit this in the Site Kit Settings","google-site-kit"))),t}));return!!i.length&&e.createElement("ul",{className:"googlesitekit-ga4-setup-banner__footer-text-list"},i.map((function(t){return e.createElement("li",{key:t},t)})))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SuccessBanner}));var a=n(86),i=n(1),o=n(4),r=n.n(o),c=n(14),l=n(42),s=n(277),u=n(19),d=n(34),m=r.a.useSelect;function SuccessBanner(){var t=m((function(e){return e(c.c).getDocumentationLinkURL("ga4")})),n=Object(u.a)(),o="".concat(n,"_ga4-success-notification"),r=Object(i.__)("Google Analytics 4 has started collecting data for your site. As soon there is enough data, you’ll be able to switch your Site Kit dashboard to show data from Google Analytics 4.","google-site-kit");return Object(a.a)((function(){Object(d.b)(o,"view_notification")})),e.createElement(l.b,{id:"ga4-activation-banner",title:Object(i.__)("You successfully set up your Google Analytics 4 property","google-site-kit"),description:r,dismiss:Object(i.__)("OK, Got it","google-site-kit"),WinImageSVG:function WinImageSVG(){return e.createElement(s.a,null)},format:"small",type:"win-success",learnMoreLabel:Object(i.__)("Learn more about Google Analytics 4","google-site-kit"),learnMoreURL:t})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InProgressBanner}));var a=n(1),i=n(4),o=n.n(i),r=n(14),c=n(10),l=n(42),s=n(277),u=o.a.useSelect;function InProgressBanner(){var t=u((function(e){return e(r.c).getGoogleSupportURL({path:"/analytics/answer/9216061"})}));return e.createElement(l.b,{id:"googlesitekit-enhanced-measurement-activation-banner",className:"googlesitekit-enhanced-measurement-success-banner",title:Object(a.__)("Setup in progress","google-site-kit"),description:Object(a.__)("Enhanced measurement is being enabled.","google-site-kit"),WinImageSVG:function WinImageSVG(){return e.createElement(s.a,null)},format:"small",type:"win-success",learnMoreLabel:Object(a.__)("Learn more","google-site-kit"),learnMoreURL:t},e.createElement(c.CircularProgress,{size:20}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return SetupBanner}));var i=n(5),o=n.n(i),r=n(16),c=n.n(r),l=n(0),s=n.n(l),u=n(2),d=n(1),m=n(244),g=n(4),f=n.n(g),p=n(10),y=n(25),h=n(32),b=n(14),v=n(7),T=n(13),N=n(40),E=n(8),k=n(42),_=n(277),O=n(111),I=n(186),S=n(19),A=f.a.useDispatch,Z=f.a.useSelect;function SetupBanner(t){var n=t.children,i=t.errorNotice,r=t.isDismissed,l=t.isSaving,s=t.onDismiss,g=t.onSubmit,f=Object(S.a)(),C=Object(m.a)(e.location.href,{notification:"enhanced_measurement"}),j=Z((function(e){return e(v.a).hasScope(T.c)})),M=Z((function(e){return e(b.c).getGoogleSupportURL({path:"/analytics/answer/9216061"})})),w=Z((function(e){var t=e(v.a).getConnectURL({additionalScopes:[T.c],redirectURL:C});return!!t&&e(h.a).isNavigatingTo(t)})),G=A(y.a).setValues,L=A(v.a).setPermissionScopeError,P=Object(u.useCallback)(c()(o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=[],!1===j&&t.push(T.c),!(t.length>0)){e.next=6;break}return G(T.e,{autoSubmit:!0}),L({code:N.a,message:Object(d.__)("Additional permissions are required to enable enhanced measurement for the selected web data stream","google-site-kit"),data:{status:403,scopes:t,skipModal:!0,redirectURL:C}}),e.abrupt("return");case 6:return e.next=8,g();case 8:case"end":return e.stop()}}),e)}))),[j,g,C,L,G]),D=Object(u.useCallback)((function(){Object(E.B)("".concat(f,"_enhanced-measurement-notification"),"dismiss_notification"),null==s||s()}),[s,f]),R=Object(u.useCallback)((function(){Object(E.B)("".concat(f,"_enhanced-measurement-notification"),"click_learn_more_link")}),[f]);Object(u.useEffect
|
|||
|
|
/* translators: %s: the number of hours the site can be in a gathering data state */
|
|||
|
|
Object(o._n)("It can take up to %s hour before stats show up for your site. While you’re waiting, connect more services to get more stats.","It can take up to %s hours before stats show up for your site. While you’re waiting, connect more services to get more stats.",a,"google-site-kit"),a),format:"small",onView:l,ctaLabel:Object(o.__)("See other services","google-site-kit"),ctaLink:"".concat(h,"#/connect-more-services"),onCTAClick:y,dismiss:Object(o.__)("Maybe later","google-site-kit"),dismissExpires:Object(m.p)("day"),SmallImageSVG:u.a,onDismiss:p,isDismissible:!0}):null}GatheringDataNotification.propTypes={title:i.a.string,gatheringDataWaitTimeInHours:i.a.number}}).call(this,n(3))},function(e,t,n){"use strict";var a=n(2);function i(){return(i=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 o=a.createElement("path",{d:"M128.91 163c-12.56 3.66-25.8 10.57-31.82 22.81-6.35 12.93-1.46 28.49 10.19 36.65M271.09 163c12.56 3.66 25.8 10.57 31.82 22.81 6.35 12.93 1.46 28.49-10.19 36.65",stroke:"#EE675C",strokeLinejoin:"round",strokeWidth:9.27}),r=a.createElement("ellipse",{cx:200,cy:381.74,rx:79.51,ry:8.26,fill:"#F1F3F4"}),c=a.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),l=a.createElement("path",{d:"M216.76 201.8s-64.53 36.51-77.35 71.84c-4.72 13 3.53 27.36 17.27 29 11.31 1.39 28.4-3.14 53.06-24.33v31.36",stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27}),s=a.createElement("path",{d:"M216.76 201.8s-35.21 19.92-58.76 44.56",stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27}),u=a.createElement("path",{stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47V380h29.52"}),d=a.createElement("path",{stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47v47.5"}),m=a.createElement("circle",{cx:200,cy:162.34,r:81.45,fill:"#D93025"}),g=a.createElement("path",{d:"M206.36 156.18c-18.33 10.42-42 6.07-50.25-19.59M164.26 137.72c-5.22-2.69-9-2.82-16.17-.91",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6.62}),f=a.createElement("path",{d:"M107.28 222.48c28.36 19.87 76.07-7.28 88.72-35.17M292.72 222.48c-28.36 19.87-76.07-7.28-88.72-35.17",stroke:"#EE675C",strokeLinejoin:"round",strokeWidth:9.27});t.a=function SvgZeroStateRed(e){return a.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),o,r,c,l,s,u,d,m,g,f)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ZeroDataNotification}));var a=n(326),i=n(2),o=n(1),r=n(14),c=n(42),l=n(582),s=n(8),u=n(19);function ZeroDataNotification(){var t=Object(u.a)(),n="".concat(t,"_zero-data-notification"),d=Object(i.useCallback)((function(){Object(s.B)(n,"view_notification")}),[n]),m=Object(i.useCallback)((function(){Object(s.B)(n,"dismiss_notification")}),[n]),g=Object(i.useCallback)((function(){Object(s.B)(n,"click_learn_more_link")}),[n]),f=Object(a.a)((function(e){return e(r.c).getDocumentationLinkURL("not-enough-traffic")}));return e.createElement(c.b,{id:"zero-data-notification",title:Object(o.__)("Not enough traffic yet to display stats","google-site-kit"),description:Object(o.__)("Site Kit will start showing stats on the dashboard as soon as enough people have visited your site. Keep working on your site to attract more visitors.","google-site-kit"),format:"small",learnMoreLabel:Object(o.__)("Learn more","google-site-kit"),learnMoreURL:f,dismiss:Object(o.__)("Remind me later","google-site-kit"),dismissExpires:Object(s.p)("day"),SmallImageSVG:l.a,onView:d,onDismiss:m,onLearnMoreClick:g,isDismissible:!0})}}).call(this,n(3))},function(e,t,n){"use strict";var a=n(2);function i(){return(i=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,
|
|||
|
|
/* translators: %s: current entity URL. */
|
|||
|
|
Object(c.__)("It looks like the URL %s is not part of this site or is not based on standard WordPress content types, therefore there is no data available to display. Visit our <link1>support forums</link1> or <link2><VisuallyHidden>Site Kit</VisuallyHidden> website</link2> for support or further information.","google-site-kit"),"<strong>".concat(l,"</strong>")),{strong:e.createElement("strong",null),link1:e.createElement(v.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0}),link2:e.createElement(v.a,{href:D,external:!0}),VisuallyHidden:e.createElement(T.a,null)})))))))))),e.createElement(Z.a,null)):e.createElement(o.Fragment,null,e.createElement(O.a,null),e.createElement(u.a,{subHeader:e.createElement(I.a,null),showNavigation:!0},e.createElement(g.a,null),e.createElement(f.a,null),!t&&e.createElement(S.a,null),e.createElement(p.a,null)),e.createElement(m.a,{id:y.e,slug:d.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,className:i()({"googlesitekit-widget-context--last":R===y.e})}),e.createElement(m.a,{id:y.a,slug:d.CONTEXT_ENTITY_DASHBOARD_CONTENT,className:i()({"googlesitekit-widget-context--last":R===y.a})}),e.createElement(m.a,{id:y.d,slug:d.CONTEXT_ENTITY_DASHBOARD_SPEED,className:i()({"googlesitekit-widget-context--last":R===y.d})}),e.createElement(m.a,{id:y.c,slug:d.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,className:i()({"googlesitekit-widget-context--last":R===y.c})}),e.createElement(Z.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return EntityBannerNotifications}));var a=n(2),i=n(930),o=n(499),r=n(38);function EntityBannerNotifications(){var t=Object(r.a)();return e.createElement(a.Fragment,null,!t&&e.createElement(i.a,null),e.createElement(o.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";var a=n(524);n.d(t,"a",(function(){return a.a}));n(525)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(285),a=n(124),i=n(928),o=n(204),r=n(21);Object(t.a)((function(){var t=document.getElementById("js-googlesitekit-entity-dashboard");if(t){var n=t.dataset.viewOnly;Object(a.render)(e.createElement(o.a,{viewContext:n?r.l:r.k},e.createElement(i.a,null)),t)}}))}.call(this,n(3))}],[[1039,1,0]]]);
|