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

110 lines
325 KiB
JavaScript
Raw Normal View History

2023-12-07 09:44:11 +01:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[15],[,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 r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"y",(function(){return c})),n.d(t,"D",(function(){return s})),n.d(t,"F",(function(){return l})),n.d(t,"B",(function(){return u})),n.d(t,"C",(function(){return d})),n.d(t,"A",(function(){return g})),n.d(t,"z",(function(){return f})),n.d(t,"E",(function(){return m})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return b})),n.d(t,"g",(function(){return h})),n.d(t,"i",(function(){return v})),n.d(t,"k",(function(){return _})),n.d(t,"l",(function(){return O})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return k})),n.d(t,"p",(function(){return E})),n.d(t,"q",(function(){return j})),n.d(t,"r",(function(){return S})),n.d(t,"s",(function(){return w})),n.d(t,"u",(function(){return A})),n.d(t,"j",(function(){return C})),n.d(t,"w",(function(){return D})),n.d(t,"t",(function(){return T})),n.d(t,"x",(function(){return N})),n.d(t,"v",(function(){return R})),n.d(t,"h",(function(){return x})),n.d(t,"o",(function(){return M})),n.d(t,"H",(function(){return P})),n.d(t,"G",(function(){return I}));var r="core/user",i="connected_url_mismatch",a="__global",o="temporary_persist_permission_error",c="googlesitekit_authenticate",s="googlesitekit_setup",l="googlesitekit_view_dashboard",u="googlesitekit_manage_options",d="googlesitekit_read_shared_module_data",g="googlesitekit_manage_module_sharing_options",f="googlesitekit_delegate_module_sharing_management",m="googlesitekit_update_plugins",p="kmAnalyticsAdSenseTopEarningContent",b="kmAnalyticsEngagedTrafficSource",h="kmAnalyticsLeastEngagingPages",v="kmAnalyticsNewVisitors",_="kmAnalyticsPopularAuthors",O="kmAnalyticsPopularContent",y="kmAnalyticsPopularProducts",k="kmAnalyticsReturningVisitors",E="kmAnalyticsTopCities",j="kmAnalyticsTopConvertingTrafficSource",S="kmAnalyticsTopCountries",w="kmAnalyticsTopRecentTrendingPages",A="kmAnalyticsTopTrafficSource",C="kmAnalyticsPagesPerVisit",D="kmAnalyticsVisitLength",T="kmAnalyticsTopReturningVisitorPages",N="kmSearchConsolePopularKeywords",R="kmAnalyticsVisitsPerVisitor",x="kmAnalyticsMostEngagingPages",M="kmAnalyticsTopCategories",P=[p,b,h,v,_,O,y,k,M,E,j,S,w,A,C,D,T,R,x,M],I=[].concat(P,[N])},function(e,t,n){"use strict";n.d(t,"A",(function(){return i.b})),n.d(t,"B",(function(){return i.c})),n.d(t,"x",(function(){return a.a})),n.d(t,"C",(function(){return a.b})),n.d(t,"z",(function(){return u})),n.d(t,"h",(function(){return d.a})),n.d(t,"v",(function(){return d.d})),n.d(t,"w",(function(){return d.e})),n.d(t,"s",(function(){return d.c})),n.d(t,"m",(function(){return d.b})),n.d(t,"t",(function(){return p})),n.d(t,"f",(function(){return b})),n.d(t,"b",(function(){return h.b})),n.d(t,"a",(function(){return h.a})),n.d(t,"c",(function(){return h.e})),n.d(t,"k",(function(){return h.g})),n.d(t,"n",(function(){return h.h})),n.d(t,"i",(function(){return h.f})),n.d(t,"y",(function(){return h.k})),n.d(t,"j",(function(){return v.b})),n.d(t,"e",(function(){return v.a})),n.d(t,"p",(function(){return _.b})),n.d(t,"l",(function(){return _.a})),n.d(t,"u",(function(){return _.c})),n.d(t,"r",(function(){return O})),n.d(t,"q",(function(){return y})),n.d(t,"o",(function(){return k})),n.d(t,"d",(function(){return E})),n.d(t,"D",(function(){return j})),n.d(t,"g",(function(){return S}));var r=n(15),i=n(33),a=n(75),o=n(34),c=n.n(o),s=n(98),l=n.n(s),u=function(e){return l()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===c()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))};n(102);var d=n(73);function g(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function f(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function m(e){re
/* translators: 1: date for user stats, 2: previous date for user stats comparison */
Object(s._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(x,M),R[n][0].toLocaleDateString(x,M)),l=Object(s.sprintf)(
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
Object(s._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),m[t],p[t](e[1]),a,Object(d.v)(Math.abs(i),"%"));w.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(o,"</p>\n\t\t\t\t<p>").concat(l,"</p>\n\t\t\t</div>"),j?Object(d.f)(e[1]):e[1],j?Object(d.f)(R[n][1]):R[n][1]])}})),w}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(37);function i(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i=Object(r.createContext)(""),a=(i.Consumer,i.Provider);t.b=i},,function(e,t,n){"use strict";n.d(t,"d",(function(){return r.e})),n.d(t,"c",(function(){return r.d})),n.d(t,"b",(function(){return r.b})),n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return r.f})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"j",(function(){return d.a})),n.d(t,"f",(function(){return f})),n.d(t,"k",(function(){return s.a}));var r=n(47),i=n(10),a=n.n(i),o=n(48),c=function(e){a()(Object(o.a)(e),r.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("-")},s=n(51),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=Object(s.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 g=n(1);function f(){var e=function(e){return Object(g.sprintf)(
/* translators: %s: number of days */
Object(g._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 a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c}));var r=n(110);function i(e){try{return new URL(e).pathname}catch(e){}return null}function a(e,t){try{return new URL(t,e).href}catch(e){}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function o(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function c(e,t){if(!Object(r.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 a=i.length-Math.floor(t)+1;return"…"+i.substr(a)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return c}));var r=n(24),i=n(19),a=r.l,o=r.j;function c(){var e=Object(i.a)();return e===r.l||e===r.m?a:e===r.j||e===r.k?o:null}},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"CONTEXT_MAIN_DASHBOARD_KEY_METRICS",(function(){return r})),n.d(t,"CONTEXT_MAIN_DASHBOARD_TRAFFIC",(function(){return i})),n.d(t,"CONTEXT_MAIN_DASHBOARD_CONTENT",(function(){return a})),n.d(t,"CONTEXT_MAIN_DASHBOARD_SPEED",(function(){return o})),n.d(t,"CONTEXT_MAIN_DASHBOARD_MONETIZATION",(function(){return c})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_TRAFFIC",(function(){return s})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_CONTENT",(function(){return l})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_SPEED",(function(){return u})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_MONETIZATION",(function(){return d}));var r="mainDashboardKeyMetrics",i="mainDashboardTraffic",a="mainDashboardContent",o="mainDashboardSpeed",c="mainDashboardMonetization",s="entityDashboardTraffic",l="entityDashboardContent",u="entityDashboardSpeed",d="entityDashboardMonetization";t.default={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:r,CONTEXT_MAIN_DASHBOARD_TRAFFIC:i,CONTEXT_MAIN_DASHBOARD_CONTENT:a,CONTEXT_MAIN_DASHBOARD_SPEED:o,CONTEXT_MAIN_DASHBOARD_MONETIZATION:c,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:s,CONTEXT_ENTITY_DASHBOARD_CONTENT:l,CONTEXT_ENTITY_DASHBOARD_SPEED:u,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:d}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"m",(function(){return u})),n.d(t,"l",(function(){return d})),n.d(t,"j",(function(){return g})),n.d(t,"k",(function(){return f})),n.d(t,"i",(function(){return m})),n.d(t,"h",(function(){return p}));var r=0,i=1,a=2,o="activation-acknowledgement-tooltip-state",c="ga4-activation-banner-state",s="enhanced-measurement-activation-banner-tooltip-state",l="enhanced-measurement-activation-banner-dismissed-item",u="_r.explorerCard..selmet",d="_r.explorerCard..seldim",g="_r..dataFilters",f="_r..nav",m="key-metrics-connect-ga4-cta-widget",p="2023-09-25"},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return E})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return w})),n.d(t,"c",(function(){return A})),n.d(t,"b",(function(){return C}));var r=n(17),i=n.n(r),a=n(34),o=n.n(a),c=n(6),s=n.n(c),l=n(25),u=n.n(l),d=n(15),g=n(76),f=n.n(g),m=n(1);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?w(a,b(b({},o),{},{unit:"second"})):"",i?w(i,b(b({},o),{},{unit:"minute"})):"",r?w(r,b(b({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(m.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(m.__)("%ds","google-site-kit"),a);if(0===e)return t;var n=Object(m.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(m.__)("%dm","google-site-kit"),i),o=Object(m.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
Object(m.__)("%dh","google-site-kit"),r);return Object(m.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",i?n:"",r?o:"").trim()}}},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},k=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in millions.
Object(m.__)("%sM","google-site-kit"),w(y(e),e%10==0?{}:t)):1e4<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(y(e))):1e3<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(y(e),e%10==0?{}:t)):w(e,{signDisplay:"never",maximumFractionDigits:1})};function E(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=b({},e)),t}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n=E(t),r=n.style,i=void 0===r?"metric":r;return"metric"===i?k(e):"duration"===i?h(e,n):"durationISO"===i?v(e):w(e,n)}var S=f()(console.warn),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?C():n,a=u()(t,["locale"]);try{return new Intl.NumberFormat(r,a).format(e)}catch(t){S("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,g=Object.entries(a);d<g.length;d++){var f=i()(g[d],2),m=f[0],p=f[1];c[m]&&p===c[m]||(s.includes(m)||(l[m]=p))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?C():n,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:a,type:c});return s.format(e)}
/* translators: used between list items, there is a space after the comma. */var l=Object(m.__)(", ","google-site-kit");return e.join(l)},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(26))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={EXTERNAL:"external",INTERNAL:"internal"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(34),i=n.n(r),a=n(85),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.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 s}));var r=n(4),i=n.n(r),a=n(20),o=n(92),c=i.a.useSelect;function s(t){var n=t.moduleName,r=t.FallbackComponent,i=t.IncompleteComponent;return function(t){var s=function WhenActiveComponent(o){var s=c((function(e){return e(a.a).getModule(n)}),[n]);if(!s)return null;var l=r||o.WidgetNull||null;if(!1===s.active)return l&&e.createElement(l,o);if(!1===s.connected){var u=i||l;return u&&e.createElement(u,o)}return e.createElement(t,o)};return s.displayName="When".concat(Object(o.c)(n),"Active"),(t.displayName||t.name)&&(s.displayName+="(".concat(t.displayName||t.name,")")),s}}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(110),o=n(1),c=n(8);function ErrorText(t){var n=t.message,r=t.reconnectURL,i=t.noPrefix;if(!n)return null;var s=n;void 0!==i&&i||(s=Object(o.sprintf)(
/* translators: %s: Error message */
Object(o.__)("Error: %s","google-site-kit"),n)),r&&Object(a.a)(r)&&(s=s+" "+Object(o.sprintf)(
/* translators: %s: Reconnect URL */
Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),r));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.x)(s,{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(2))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(14);n(8);function i(e){return"string"==typeof e&&/^\d+$/.test(e)}function a(e){return e===r.j||i(e)}function o(e){return"string"==typeof e&&/^\d+$/.test(e)}function c(e){return e===r.k||o(e)}function s(e){return"string"==typeof e&&/^G-[a-zA-Z0-9]+$/.test(e)}},,function(e,t,n){"use strict";var r=n(123);n.d(t,"a",(function(){return r.a}));var i=n(124);n.d(t,"c",(function(){return i.a}));var a=n(125);n.d(t,"b",(function(){return a.a}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(136),i=n.n(r)()(e)}).call(this,n(26))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(12),o=n.n(a);function ChangeArrow(t){var n=t.direction,r=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:i,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:i.a.string,invertColor:i.a.bool,width:i.a.number,height:i.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(2))},,,,function(e,t,n){"use strict";(function(e){var r=n(23),i=n.n(r),a=n(25),o=n.n(a),c=n(0),s=n.n(c),l=n(12),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,a=o()(t,["className","children"]);return r?e.createElement("span",i()({},a,{className:u()("screen-reader-text",n)}),r):null}VisuallyHidden.propTypes={className:s.a.string,children:s.a.node},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(2))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}));var r=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function a(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},function(e,t,n){"use strict";var r=n(17),i=n.n(r),a=n(222),o=n(0),c=n.n(o),s=n(3),l=n(121);function Portal(e){var t=e.children,n=e.slug,r=Object(s.useState)(document.createElement("div")),o=i()(r,1)[0];return Object(a.a)((function(){n&&o.classList.add("googlesitekit-portal-".concat(n));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(o),function(){return e.removeChild(o)}})),Object(l.createPortal)(t,o)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=n(109),a=n(49),o=function(e){var t=Object(r.useContext)(i.a);return Object(a.b)(e,t)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return _}));var r=n(25),i=n.n(r),a=n(6),o=n.n(a),c=n(5),s=n.n(c),l=n(10),u=n.n(l),d=n(4),g=n.n(d),f=n(39),m=n(8),p=g.a.createRegistryControl,b=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:s.a.mark((function e(){var t;return s.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"
/* translators: %s is replaced with the dependent modules. */
Object(c.__)("<strong>Note:</strong> %s","google-site-kit"),m),{strong:e.createElement("strong",null)}))),e.createElement(s.DialogFooter,null,e.createElement(s.SpinnerButton,{onClick:d,danger:p,disabled:h,isSaving:h},f||Object(c.__)("Disconnect","google-site-kit")),e.createElement(l.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:r,disabled:h},Object(c.__)("Cancel","google-site-kit"))))};u.displayName="Dialog",u.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},u.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=u}).call(this,n(2))},,function(e,t,n){"use strict";var r=n(3),i=Object(r.createContext)(!1);t.a=i},,function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r,i=n(6),a=n.n(i),o=n(42),c=n(160),s=n(155),l=(r={},a()(r,o.c.QUARTER,3),a()(r,o.c.HALF,6),a()(r,o.c.FULL,12),r),u="googlesitekit-hidden",d=[c.a,s.a]},,,,function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"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 r.createElement("svg",i({viewBox:"0 0 14 14",fill:"none"},e),a)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),i=n(4),a=n.n(i),o=n(42),c=a.a.useDispatch;function s(e,t,n){var i=c(o.a),a=i.setWidgetState,s=i.unsetWidgetState;Object(r.useEffect)((function(){return a(e,t,n),function(){s(e,t,n)}}),[e,t,n,a,s])}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=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 r=n(24),i=function(e){return r.f.includes(e)}},,,function(e,t,n){"use strict";(function(e){var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(0),s=n.n(c),l=n(3),u=n(21),d=n(8),g=n(19);function HelpMenuLink(t){var n=t.children,r=t.href,a=t.gaEventLabel,c=Object(g.a)(),s=Object(l.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=3;break}return e.next=3,Object(d.A)("".concat(c,"_headerbar_helpmenu"),"click_outgoing_link",a);case 3:case"end":return e.stop()}}),e)}))),[a,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:r,external:!0,hideExternalIndicator:!0,role:"menuitem",onClick:s},n))}HelpMenuLink.propTypes={children:s.a.node.isRequired,href:s.a.string.isRequired,gaEventLabel:s.a.string},t.a=HelpMenuLink}).call(this,n(2))},function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"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 r.createElement("svg",i({viewBox:"0 0 28 25"},e),a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),i=n.n(r),a=n(28),o=i.a.useSelect;function c(e){return o((function(t){return t(a.b).getValue(e)||{isTooltipVisible:!1,rehideAdminMenu:!1,rehideAdminSubMenu:!1}}))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GenericErrorHandlerActions}));var r=n(0),i=n.n(r),a=n(
/* translators: %s: module name */
Object(r.__)("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)),l&&l.login&&(d=Object(r.sprintf)(
/* translators: %s: owner name */
Object(r.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),l.login)),d||(d=Object(r.__)("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";n.d(t,"a",(function(){return a}));var r=n(10),i=n.n(r),a=function(e,t){var n=t.dateRangeLength;i()(Array.isArray(e),"report must be an array to partition."),i()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=-1*n;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,r=e.slice(6,8);return new Date(t,n.toString(),r)}return!1}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return RecoverableModules}));var r=n(0),i=n.n(r),a=n(1),o=n(4),c=n.n(o),s=n(20),l=n(97),u=c.a.useSelect;function RecoverableModules(t){var n=t.moduleSlugs,r=u((function(e){var t=e(s.a).getModules();if(void 0!==t)return n.map((function(e){return t[e].name}))}));if(void 0===r)return null;var i=1===r.length?Object(a.sprintf)(
/* translators: %s: Module name */
Object(a.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),r[0]):Object(a.sprintf)(
/* translators: %s: List of module names */
Object(a.__)("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"),r.join(Object(a._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(l.a,{title:Object(a.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:i.a.arrayOf(i.a.string).isRequired}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),a=n(164),o=n.n(a),c=n(0),s=n.n(c),l=n(3),u=n(1),d=n(208),g=n(347),f=n(348),m=n(9);function ReportErrorButton(t){var n=t.message,r=t.componentStack,a=Object(l.useState)(!1),c=i()(a,2),s=c[0],p=c[1];return e.createElement(m.Button,{"aria-label":s?Object(u.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){o()("`".concat(n,"\n").concat(r,"`")),p(!0)},trailingIcon:e.createElement(d.a,{className:"mdc-button__icon",icon:s?g.a:f.a})},s?Object(u.__)("Copied to clipboard","google-site-kit"):Object(u.__)("Copy error contents","google-site-kit"))}ReportErrorButton.propTypes={message:s.a.string,componentStack:s.a.string},t.a=ReportErrorButton}).call(this,n(2))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return FeatureTours}));var i=n(87),a=n(3),o=n(4),c=n.n(o),s=n(7),l=n(19),u=n(100),d=c.a.useSelect,g=c.a.useDispatch;function FeatureTours(){var t=Object(l.a)(),n=g(s.a).triggerTourForView;Object(i.a)((function(){n(t)}));var o=d((function(e){return e(s.a).getCurrentTour()}));return Object(a.useEffect)((function(){if(o){var t=document.getElementById("js-googlesitekit-main-dashboard"),n=new ResizeObserver((function(){e.dispatchEvent(new Event("resize"))}));return n.observe(t),function(){n.disconnect()}}}),[o]),o?r.createElement(u.a,{tourID:o.slug,steps:o.steps,gaEventCategory:o.gaEventCategory,callback:o.callback}):null}}).call(this,n(26),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(15),s=n(3),l=n(1),u=n(4),d=n.n(u),g=n(20),f=n(45),m=n(152),p=n(85),b=n(81),h=n(97),v=n(170),_=n(38);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=d.a.useSelect;function ReportError(t){var n,r=t.moduleSlug,i=t.error,a=Object(_.a)(),o=k((function(e){return e(g.a).getModule(r)})),u=Array.isArray(i)?i:[i],d=function(e){return Object(f.e)(e)?a?(n=Object(l.sprintf)(
/* translators: %s: module name */
Object(l.__)("Access lost to %s","google-site-kit"),null==o?void 0:o.name),Object(l.sprintf)(
/* translators: %s: module name */
Object(l.__)("The administrator sharing this module with you has lost access to the %s service, so you wont be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),null==o?void 0:o.name)):(n=Object(l.sprintf)(
/* translators: %s: module name */
Object(l.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),Object(m.a)(e.message,o)):Object(f.b)(e)},O=Object(c.uniqWith)(u.map((function(e){var t;return y(y({},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=u.some((function(e){return Object(f.e)(e)}));E||1!==O.length?!E&&O.length>1&&(n=Object(l.sprintf)(
/* translators: %s: module name */
Object(l.__)("Data errors in %s","google-site-kit"),null==o?void 0:o.name)):n=Object(l.sprintf)(
/* translators: %s: module name */
Object(l.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name);var j=e.createElement(s.Fragment,null,O.map((function(t){var n,r=null==i||null===(n=i.data)||void 0===n?void 0:n.reconnectURL;return r?e.createElement(b.a,{key:t.message,message:t.message,reconnectURL:r}):e.createElement("p",{key:t.message},p.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(h.a,{title:n,description:j,error:!0},e.createElement(v.a,{moduleSlug:r,error:i}))}ReportError.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired}}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var r=n(0),i=n.n(r),a=n(1),o=n(4),c=n.n(o),s=n(20),l=n(97),u=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,r=u((function(e){return e(s.a).getModule(n)}));return e.createElement(l.a,{title:Object(a.sprintf)(
/* translators: %s: Module name */
Object(a.__)("%s Gathering Data","google-site-kit"),null==r?void 0:r.name),description:Object(a.sprintf)(
/* translators: %s: Module name */
Object(a.__)("%s data is not yet available, please check back later","google-site-kit"),null==r?void 0:r.name)})}ReportZero.propTypes={moduleSlug:i.a.string.isRequired}}).call(this,n(2))},,function(e,t,n){"use strict";var r=n(132),i=(r.a.Consumer,r.a.Provider);t.a=i},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r,i=n(6),a=n.n(i),o=n(1),c=n(7),s=n(13),l=n(14);function u(e,t){return!t||e(l.i).hasCustomDimensions(this.requiredCustomDimensions)}var d=(r={},a()(r,c.s,{title:Object(o.__)("Top recent trending pages","google-site-kit"),description:Object(o.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),infoTooltip:Object(o.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_date"],displayInList:u}),a()(r,c.k,{title:Object(o.__)("Most popular authors by pageviews","google-site-kit"),description:Object(o.__)("Authors whose posts got the most visits","google-site-kit"),infoTooltip:Object(o.__)("Authors whose posts got the most visits","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_author"],displayInList:u}),a()(r,c.o,{title:Object(o.__)("Top categories by pageviews","google-site-kit"),description:Object(o.__)("Categories that your site visitors viewed the most","google-site-kit"),infoTooltip:Object(o.__)("Categories that your site visitors viewed the most","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_categories"],displayInList:u}),a()(r,c.l,{title:Object(o.__)("Most popular content by pageviews","google-site-kit"),description:Object(o.__)("Pages that brought in the most visitors","google-site-kit"),infoTooltip:Object(o.__)("Pages your visitors read the most","google-site-kit")}),a()(r,c.m,{title:Object(o.__)("Most popular products by pageviews","google-site-kit"),description:Object(o.__)("Products that brought in the most visitors","google-site-kit"),displayInList:function(e){var t;return e(c.a).isKeyMetricActive(c.m)||(null===(t=e(s.c).getProductBasePaths())||void 0===t?void 0:t.length)>0}}),a()(r,c.j,{title:Object(o.__)("Pages per visit","google-site-kit"),description:Object(o.__)("Number of pages visitors viewed per session on average","google-site-kit"),infoTooltip:Object(o.__)("Number of pages visitors viewed per session on average","google-site-kit")}),a()(r,c.w,{title:Object(o.__)("Visit length","google-site-kit"),description:Object(o.__)("Average duration of engaged visits","google-site-kit"),infoTooltip:Object(o.__)("Average duration of engaged visits","google-site-kit")}),a()(r,c.v,{title:Object(o.__)("Visits per visitor","google-site-kit"),description:Object(o.__)("Average number of sessions per site visitor","google-site-kit"),infoTooltip:Object(o.__)("Average number of sessions per site visitor","google-site-kit")}),a()(r,c.h,{title:Object(o.__)("Most engaging pages","google-site-kit"),description:Object(o.__)("Pages with the highest engagement rate","google-site-kit"),infoTooltip:Object(o.__)("Pages with the highest engagement rate","google-site-kit")}),a()(r,c.g,{title:Object(o.__)("Least engaging pages","google-site-kit"),description:Object(o.__)("Pages with the highest percentage of visitors that left without engagement with your site","google-site-kit"),infoTooltip:Object(o.__)("Percentage of visitors that left without engagement with your site","google-site-kit")}),a()(r,c.t,{title:Object(o.__)("Top pages by returning visitors","google-site-kit"),description:Object(o.__)("Pages that attracted the most returning visitors","google-site-kit"),infoTooltip:Object(o.__)("Pages that attracted the most returning visitors","google-site-kit")}),a()(r,c.i,{title:Object(o.__)("New visitors","google-site-kit"),description:Object(o.__)("How many new visitors you got and how the overall audience changed","google-site-kit"),infoTooltip:Object(o.__)("Portion of visitors who visited your site for the first time in this timeframe","google-site-kit")}),a()(r,c.n,{title:Object(o.__)("Returning visitors","google-site-kit"),description:Object(o.__)("Portion of
/* translators: Account info text. 1: User's (full) name 2: User's email address. */
Object(g.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),o,n)),o&&!n&&(V=Object(g.sprintf)(
/* translators: Account info text. 1: User's (full) name. */
Object(g.__)("Google Account for %1$s","google-site-kit"),o)),!o&&n&&(V=Object(g.sprintf)(
/* translators: Account info text. 1: User's email address. */
Object(g.__)("Google Account (Email: %1$s)","google-site-kit"),n)),r.createElement(d.Fragment,null,r.createElement("div",{ref:B,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},r.createElement(b.Button,{ref:F,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:U,icon:!!i&&r.createElement("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true"},r.createElement("img",{className:"mdc-button__icon--image",src:i,alt:Object(g.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":I,"aria-controls":"user-menu","aria-label":Object(g.__)("Account","google-site-kit"),tooltip:!0,tooltipEnterDelayInMS:500,customizedTooltip:r.createElement("span",{"aria-label":V},r.createElement("strong",null,Object(g.__)("Google Account","google-site-kit")),r.createElement("br",null),r.createElement("br",null),o,o&&r.createElement("br",null),n)}),r.createElement(b.Menu,{className:"googlesitekit-user-menu",menuOpen:I,onSelected:H,id:"user-menu"},r.createElement("li",null,r.createElement(y.a,null)),!!t&&r.createElement("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem"},r.createElement(k.a,{icon:r.createElement(j.a,{width:"22"}),label:Object(g.__)("Manage Sites","google-site-kit")})),r.createElement("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem"},r.createElement(k.a,{icon:r.createElement(E.a,{width:"22"}),label:Object(g.__)("Disconnect","google-site-kit")})))),r.createElement(O.a,null,r.createElement(h.a,{dialogActive:R,handleConfirm:q,handleDialog:G,title:Object(g.__)("Disconnect","google-site-kit"),subtitle:Object(g.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:Object(g.__)("Disconnect","google-site-kit"),danger:!0})))):null}}).call(this,n(26),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Details}));var r=n(1),i=n(4),a=n.n(i),o=n(7),c=a.a.useSelect;function Details(){var t=c((function(e){return e(o.a).getPicture()})),n=c((function(e){return e(o.a).getFullName()})),i=c((function(e){return e(o.a).getEmail()}));return e.createElement("div",{className:"googlesitekit-user-menu__details","aria-label":Object(r.__)("Google account","google-site-kit")},!!t&&e.createElement("img",{className:"googlesitekit-user-menu__details-avatar",src:t,alt:""}),e.createElement("div",{className:"googlesitekit-user-menu__details-info"},e.createElement("p",{className:"googlesitekit-user-menu__details-info__name"},n),e.createElement("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":Object(r.__)("Email","google-site-kit")},i)))}}).call(this,n(2))},function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M6.83 2H20a2 2 0 012 2v12c0 .34-.09.66-.23.94L20 15.17V6h-9.17l-4-4zm13.66 19.31L17.17 18H4a2 2 0 01-2-2V4c0-.34.08-.66.23-.94L.69 1.51 2.1.1l19.8 19.8-1.41 1.41zM15.17 16l-10-10H4v10h11.17z",fill:"#6C726E"});t.a=function SvgDisconnect(e){return r.createElement("svg",i({viewBox:"0 0 22 22",fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M20 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h18v12zm-2-9H7v2h11V5zm0 4H7v2h11V9zM6 5H4v2h2V5zm0 4H4v2h2V9z",fill:"#6C726E"});t.a=function SvgManageSites(e){return r.createElement("svg",i({viewBox:"0 0 22 18",fill:"none
/* translators: %s: List of product names */
Object(s.__)("Site Kit cant access all relevant data because you havent granted all permissions requested during setup. To use Site Kit, youll need to redo the setup for: %s make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(g.s)(l));break;case"single":u=Object(s.sprintf)(
/* translators: %s: Product name */
Object(s.__)("Site Kit cant access the relevant data from %1$s because you havent granted all permissions requested during setup. To use Site Kit, youll need to redo the setup for %1$s make sure to approve all permissions at the authentication stage.","google-site-kit"),l[0]);break;case"generic":u=Object(s.__)("Site Kit cant access all relevant data because you havent granted all permissions requested during setup. To use Site Kit, youll need to redo the setup make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.b,{id:"authentication error",title:w,description:u,format:"small",type:"win-error",isDismissible:!1,ctaLink:j,onCTAClick:function(){_.current=!0},ctaLabel:A})}}).call(this,n(26),n(2))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlertGTE}));var i=n(1),a=n(4),o=n.n(a),c=n(41),s=n(13),l=n(7),u=n(31),d=n(29),g=o.a.useSelect;function UnsatisfiedScopesAlertGTE(){var t=g((function(e){return e(d.a).getValue(l.c,"permissionsError")})),n=g((function(n){var r;return n(l.a).getConnectURL({additionalScopes:[u.h],redirectURL:(null==t||null===(r=t.data)||void 0===r?void 0:r.redirectURL)||e.location.href})})),a=g((function(e){return e(s.c).getGoogleSupportURL({path:"/tagmanager/answer/11994839"})}));return void 0===n?null:r.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 tags target Analytics property. The Google tag feature was recently updated to allow users to change a tags 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:a})}}).call(this,n(26),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(4),i=n.n(r),a=n(13),o=n(41),c=i.a.useSelect;function InternalServerError(){var t=c((function(e){return e(a.c).getInternalServerError()}));return t?e.createElement(o.b,t):null}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardNavigation}));var r=n(4),i=n.n(r),a=n(7),o=n(38),c=n(239),s=n(94),l=i.a.useSelect;function DashboardNavigation(){var t=Object(o.a)(),n=l((function(e){return t?e(a.a).getViewableModules():null})),r=Object(s.a)("keyMetrics"),i=l((function(e){return r&&e(a.a).getKeyMetrics()}));return void 0===n||void 0===i?null:e.createElement(c.a,null)}}).call(this,n(2))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return Navigation}));var i=n(30),a=n.n(i),o=n(17),c=n.n(o),s=n(12),l=n.n(s),u=n(15),d=n(87),g=n(135),f=n(3),m=n(1),p=n(4),b=n.n(p),h=n(240),v=n(241),_=n(242),O=n(243),y=n(244),k=n(24),E=n(7),j=n(42),S=n(28),w=n(70),A=n(66),C=n(35),D=n(114),T=n(8),N=n(19),R=n(38),x=n(94);function M(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 P(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 P(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=
/* translators: %s: module owner Google Account email address */
Object(o.__)("Shared by <strong>%s</strong>","google-site-kit"),s.login),{strong:e.createElement("strong",{title:s.login})})))}Service.propTypes={module:i.a.string.isRequired}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Tracking}));var r=n(43),i=n(1),a=n(181),o=n(19);function Tracking(){var t=Object(o.a)();return e.createElement("li",{className:"googlesitekit-view-only-menu__list-item"},e.createElement("p",null,Object(r.a)(Object(i.__)("Thanks for using Site Kit!<br />Help us make it even better.","google-site-kit"),{br:e.createElement("br",null)})),e.createElement(a.a,{trackEventCategory:"".concat(t,"_headerbar_viewonly"),alignCheckboxLeft:!0}))}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupErrorNotification}));var r=n(1),i=n(4),a=n.n(i),o=n(41),c=n(13),s=a.a.useSelect;function SetupErrorNotification(){var t=s((function(e){return e(c.c).getSetupErrorMessage()})),n=s((function(e){return e(c.c).getSetupErrorRedoURL()}));return t?e.createElement(o.b,{id:"setup_error",type:"win-error",title:Object(r.__)("Oops! There was a problem during set up. Please try again.","google-site-kit"),description:t,isDismissible:!1,ctaLabel:Object(r.__)("Redo the plugin setup","google-site-kit"),ctaLink:n}):null}}).call(this,n(2))},function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"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 r.createElement("svg",i({viewBox:"0 0 20 20",fill:"none"},e),a)}},,,,,,,,,,function(e,t,n){"use strict";(function(e){var r=n(12),i=n.n(r),a=n(0),o=n.n(a),c=function Widget(t){var n=t.children,r=t.className,a=t.widgetSlug,o=t.noPadding,c=t.Header,s=t.Footer;return e.createElement("div",{className:i()("googlesitekit-widget","googlesitekit-widget--".concat(a),{"googlesitekit-widget--no-padding":o},{"googlesitekit-widget--with-header":c},r)},c&&e.createElement("div",{className:"googlesitekit-widget__header"},e.createElement(c,null)),e.createElement("div",{className:"googlesitekit-widget__body"},n),s&&e.createElement("div",{className:"googlesitekit-widget__footer"},e.createElement(s,null)))};c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:o.a.node,widgetSlug:o.a.string.isRequired,noPadding:o.a.bool,Header:o.a.elementType,Footer:o.a.elementType},t.a=c}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetRecoverableModules}));var r=n(6),i=n.n(r),a=n(23),o=n.n(a),c=n(30),s=n.n(c),l=n(25),u=n.n(l),d=n(0),g=n.n(d),f=n(3),m=n(140),p=n(155);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetRecoverableModules(t){var n=t.widgetSlug,r=t.moduleSlugs,i=u()(t,["widgetSlug","moduleSlugs"]),a=Object(f.useMemo)((function(){return{moduleSlug:s()(r).sort().join(","),moduleSlugs:r}}),[r]);return Object(m.a)(n,p.a,a),e.createElement(p.a,o()({moduleSlugs:r},i))}WidgetRecoverableModules.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:g.a.string.isRequired},p.a.propTypes)}).call(this,n(2))},,,function(e,t,n){"use strict";n.d(t,"d",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return p
/* translators: 1: Data stream name. 2: Measurement ID. */
Object(s._x)("%1$s (%2$s)","Analytics 4 data stream name and measurement ID","google-site-kit"),i,o.measurementId):i)})))}WebDataStreamSelect.propTypes={hasModuleAccess:o.a.bool,isDisabled:o.a.bool,className:o.a.string}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertySelect}));var r=n(12),i=n.n(r),a=n(0),o=n.n(a),c=n(3),s=n(1),l=n(9),u=n(4),d=n.n(u),g=n(14),f=n(11),m=n(57),p=n(82),b=n(8),h=n(19),v=d.a.useSelect,_=d.a.useDispatch;function PropertySelect(t){var n=t.isDisabled,r=t.hasModuleAccess,a=t.className,o=t.onChange,u=void 0===o?function(){}:o;v((function(e){return e(f.f).getAccounts()}));var d=v((function(e){return e(f.f).getAccountID()})),O=v((function(e){return!1===r||n?null:e(g.i).getProperties(d)||[]})),y=v((function(e){return e(g.i).getPropertyID()})),k=v((function(e){return!n&&e(g.i).isLoadingProperties({hasModuleAccess:r})})),E=Object(h.a)(),j=_(g.i).selectProperty,S=Object(c.useCallback)((function(e,t){var n=t.dataset.value;y!==n&&(j(n),Object(b.A)("".concat(E,"_analytics"),n===g.j?"change_property_new":"change_property","ga4"),u())}),[u,y,j,E]);if(!Object(m.b)(d))return null;if(k)return e.createElement(l.ProgressBar,{smallHeight:80,desktopHeight:88,small:!0});var w=void 0===y||""===y||Object(p.c)(y);return!1===r?e.createElement(l.Select,{className:i()("googlesitekit-analytics-4__select-property",a),label:Object(s.__)("Property","google-site-kit"),value:y,enhanced:!0,outlined:!0,disabled:!0},e.createElement(l.Option,{value:y},y)):e.createElement(l.Select,{className:i()("googlesitekit-analytics-4__select-property",a,{"mdc-select--invalid":!w,"googlesitekit-analytics-4__select-property--loaded":!n&&!k}),label:Object(s.__)("Property","google-site-kit"),value:y,onEnhancedChange:S,disabled:n,enhanced:!0,outlined:!0},(O||[]).concat({_id:g.j,displayName:Object(s.__)("Set up a new property","google-site-kit")}).map((function(t){var n=t._id,r=t.displayName;return e.createElement(l.Option,{key:n,value:n},n===g.j?r:Object(s.sprintf)(
/* translators: 1: Property name. 2: Property ID. */
Object(s._x)("%1$s (%2$s)","Analytics property name and ID","google-site-kit"),r,n))})))}PropertySelect.propTypes={isDisabled:o.a.bool,hasModuleAccess:o.a.bool,className:o.a.string,onChange:o.a.func}}).call(this,n(2))},,,,,,,,,,,function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("g",{fill:"currentColor",fillRule:"evenodd"},r.createElement("path",{d:"M0 6.414L1.415 5l5.292 5.292-1.414 1.415z"}),r.createElement("path",{d:"M14.146.146l1.415 1.414L5.414 11.707 4 10.292z"}));t.a=function SvgCheck(e){return r.createElement("svg",i({viewBox:"0 0 16 12"},e),a)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ZeroDataStateNotifications}));var r=n(1),i=n(4),a=n.n(i),o=n(7),c=n(20),s=n(38),l=n(14),u=n(56),d=n(552),g=n(554),f=a.a.useSelect,m=a.a.useInViewSelect;function ZeroDataStateNotifications(){var t,n=Object(s.a)(),i=f((function(e){return e(c.a).isModuleConnected("analytics-4")})),a=f((function(e){return!n||e(o.a).canViewSharedModule("analytics-4")})),p=f((function(e){return!n||e(o.a).canViewSharedModule("search-console")})),b=f((function(e){if(!n)return!1;var t=e(c.a).getRecoverableModules();return void 0!==t?Object.keys(t).includes("analytics-4"):void 0})),h=f((function(e){if(!n)return!1;var t=e(c.a).getRecoverableModules();return void 0!==t?Object.keys(t).includes("search-console"):void 0})),v=m((function(e){return!(!i||!a||!1!==b)&&e(l.i).isGatheringData()})),_=m((function(e){return p&&!1===h&&e(u.b).isGatheringData()})),O=m((function(e){return!(!i||!a||!1!==b)&&e(l.i).hasZeroData()})),y=m((function(e){return p&&!1===h&&e(u.b).hasZeroData()}));return void 0===v||void 0===_||void 0===O||void 0===y?null:v||_||O||y?(v&&_?t=Object(r.__)("Search Console and Analytics are gathering data","google-site-kit"):v?t=Object(r.__)("Analytics is gathering data","google-site-kit"):_&&(t=Object(r.__)("Search Console is gathering data","google-site-kit")),v||_?e.createElement(d.a,{title:t}):e.createElement(g.a,null)):null}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=200},function(e,t,n){"use strict";n.d(t,"a",(function(){return ScrollEffect}));var r=n(556);function ScrollEffect(){return Object(r.a)(),null}},,,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r="enable-plugin-auto-update-notification",i="auto-update-banner-hide-notification-on-first-setup",a="auto-update-cta"},,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){var r=n(30),i=n.n(r),a=n(5),o=n.n(a),c=n(16),s=n.n(c),l=n(17),u=n.n(l),d=n(946),g=n(3),f=n(4),m=n.n(f),p=n(545),b=n(547),h=n(549),v=n(111),_=n(71),O=n(20),y=n(7),k=n(11),E=n(14),j=n(29),S=n(39),w=n(80),A=m.a.useSelect,C=m.a.useDispatch,D=m.a.useRegistry;t.a=Object(w.a)({moduleName:"analytics"})((function ActivationBanner(){var t=Object(g.useState)(null),n=u()(t,2),r=n[0],a=n[1],c=Object(g.useState)(),l=u()(c,2),f=l[0],m=l[1],w=Object(d.a)(),T=D(),N=A((function(e){return e(O.a).isModuleConnected("analytics-4")})),R=A((function(e){return e(y.a).hasScope(k.c)})),x=A((function(e){return e(j.a).getValue(_.g,"returnToSetupStep")})),M=A((function(e){return e(k.f).getAccountID()})),P=A((function(e){return[e(E.i).getErrorForSelector("getProperties",[M]),e(k.f).getErrorForSelector("getAccounts"),e(E.i).getErrorForSelector("getSettings")].filter((function(e){return void 0!==e}))})),I=C(),L=I(j.a).setValues;Object(g.useEffect)((function(){R&&x&&(a(_.c),L(_.g,{returnToSetupStep:!1}))}),[R,T,x,L]),Object(g.useEffect)((function(){P.length>0&&a(_.b)}),[P.length]);var B=Object(g.useCallback)(s()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r!==_.b){e.next=5;break}if(!(P.length>0)){e.next=4;break}return e.next=4,Promise.all([I(E.i).clearError("getProperties",[M]),I(E.i).inv
/* translators: %s: user who manages the module. */
Object(l.__)("<span>Managed by</span> <strong>%s</strong>","google-site-kit"),a),{span:e.createElement("span",null),strong:e.createElement("strong",null)}),e.createElement(m.Tooltip,{title:M?Object(l.sprintf)(
/* translators: %s: name of the user who manages the module. */
Object(l.__)("%s has connected this and given managing permissions to all admins. You can change who can view this on the dashboard.","google-site-kit"),a):Object(l.sprintf)(
/* translators: %s: name of the user who manages the module. */
Object(l.__)("Contact %s to change who can manage view access for this module.","google-site-kit"),a)},e.createElement("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon"},e.createElement(u.a,{icon:d.a,size:18}))))))}Module.propTypes={moduleSlug:o.a.string.isRequired,moduleName:o.a.string.isRequired,ownerUsername:o.a.string}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(30),i=n.n(r),a=n(0),o=n.n(a),c=n(12),s=n.n(c),l=n(1),u=n(55),d=n(3),g=n(4),f=n.n(g),m=n(9),p=n(21),b=n(327),h=n(428),v=n(19),_=n(112),O=n(8),y=n(20),k=n(28),E=n(117),j=f.a.useSelect,S=f.a.useDispatch,w=Object(l.__)("All","google-site-kit"),A=Object(d.forwardRef)((function(t,n){var r=t.moduleSlug,a=t.isLocked,o=void 0!==a&&a,c=Object(v.a)(),g=Object(d.useRef)(),f=S(y.a).setSharedRoles,A=S(k.b).setValue,C=j((function(e){return e(y.a).getShareableRoles()})),D=j((function(e){return e(y.a).getSharedRoles(r)})),T=j((function(e){return e(k.b).getValue(E.a)}))===r;Object(_.a)([u.c],n,(function(){T&&A(E.a,void 0)}));var N=j((function(e){return e(y.a).haveModuleSharingSettingsChanged(r,"sharedRoles")})),R=Object(d.useCallback)((function(){T?(A(E.a,void 0),N&&Object(O.A)("".concat(c,"_sharing"),"change_shared_roles",r)):A(E.a,r)}),[T,N,r,A,c]);Object(d.useEffect)((function(){g.current&&(T?g.current.firstChild.focus():g.current.focus())}),[T]);var x=Object(d.useCallback)((function(e){var t,n=e.type,a=e.target,o=e.keyCode;if("keydown"!==n||o===u.b){var c,s=a.closest(".mdc-chip"),l=null==s||null===(t=s.dataset)||void 0===t?void 0:t.chipId;if(l)c="all"===l?(null==D?void 0:D.length)===(null==C?void 0:C.length)?[]:C.map((function(e){return e.id})):null===D?[l]:D.includes(l)?D.filter((function(e){return e!==l})):[].concat(i()(D),[l]),f(r,c)}}),[r,f,D,C]);return C?e.createElement("div",{className:s()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":T})},!T&&e.createElement(m.Button,{"aria-label":Object(l.__)("Edit roles","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:R,icon:e.createElement(b.a,{width:23,height:23}),tabIndex:o?-1:void 0,ref:g}),!T&&(null==D?void 0:D.length)>0&&e.createElement("span",{className:"googlesitekit-user-role-select__current-roles"},(null==C?void 0:C.reduce((function(e,t){return D.includes(t.id)&&e.push(t.displayName),e}),[])).join(", ")),!T&&(!D||0===(null==D?void 0:D.length))&&e.createElement("span",{className:"googlesitekit-user-role-select__add-roles"},e.createElement(p.a,{onClick:R,tabIndex:o?-1:void 0},Object(l.__)("Add roles","google-site-kit"))),T&&e.createElement(d.Fragment,null,e.createElement("div",{className:"googlesitekit-user-role-select__chipset",ref:g},e.createElement(m.Chip,{id:"all",label:w,onClick:x,onKeyDown:x,selected:(null==D?void 0:D.length)===(null==C?void 0:C.length),className:"googlesitekit-user-role-select__chip--all"}),C.map((function(t,n){var r=t.id,i=t.displayName;return e.createElement(m.Chip,{key:n,id:r,label:i,onClick:x,onKeyDown:x,selected:null==D?void 0:D.includes(r)})}))),e.createElement(m.Button,{"aria-label":Object(l.__)("Done editing roles","google-site-kit"),title:Object(l.__)("Done","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:R,icon:e.createElement(h.a,{width:18,height:18}),tabIndex:o?-1:void 0}))):null}));A.propTypes={moduleSlug:o.a.string.isRequired,isLocked:o.a.bool},t.a=A}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Footer}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(17),s=n.n(c),l=n(0),u=n.n(l),d=n(1),g=n(3),f=n(9),m=n(4),p=n.n(m),b=n(20),h=n(28),v=n(117),_=n(19),O=n(8),y=n(21),k=n(533),E=n(81),j=p.a.useSelect,S=p.a.useDispatch;function Footer(t){var n=t.closeDialog,r=t.openResetDialog,a=Object(_.a)(),c=Object(g.useState)(null),l=s()(c,2),u=l[0],m=l[1],p=Object(g.useState)(!1),w=s()(p,2),A=w[0],C=w[1],D=j((function(e){return e(b.a).canSubmitSharingChanges()})),T=j((function(e){return e(b.a).isDoingSubmitSharingChanges()})),N=j((function(e){return e(b.a).haveSharingSettingsExpanded("management")})),R=j((function(e){return e(b.a)
/* translators: %s: Number of days remaining before the user can set up Google Analytics 4 */
Object(s.__)("You only have %d more days to set up Google Analytics 4","google-site-kit"),z)}else I=Object(s.__)("Universal Analytics stopped collecting data on July 1, 2023","google-site-kit"),W=Object(s.__)("Set up Google Analytics 4, the new version of Google Analytics, to continue seeing data in Site Kit.","google-site-kit");var V=e.createElement("section",null,e.createElement("h4",{className:"googlesitekit-publisher-win__secondary-pane-title"},Object(s.__)("Google Analytics 4 benefits:","google-site-kit")),e.createElement("ul",{className:"googlesitekit-publisher-win__secondary-pane-list"},e.createElement("li",null,e.createElement(A.a,{height:18,width:18}),Object(s.__)("Full cross-device and cross-platform reporting","google-site-kit")),e.createElement("li",null,e.createElement(A.a,{height:18,width:18}),Object(s.__)("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(A.a,{height:18,width:18}),Object(s.__)("Detailed insights on how users navigate your site","google-site-kit"))));return!1===u?e.createElement(E.a,{title:I,description:W,dismissExpires:Object(O.a)(D),onDismiss:B}):e.createElement(b.b,{id:"ga4-activation-banner",className:"googlesitekit-ga4-reminder-banner",title:I,description:W,learnMoreLabel:Object(s.__)("Learn more about Google Analytics 4","google-site-kit"),learnMoreURL:T,ctaLabel:Object(s.__)("Set up now","google-site-kit"),ctaLink:r?"#":null,onCTAClick:L,dismiss:Object(s.__)("Remind me later","google-site-kit"),dismissExpires:Object(O.a)(D),secondaryPane:V,onDismiss:B,onLearnMoreClick:F},a)}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReminderBannerNoAccess}));var r=n(0),i=n.n(r),a=n(1),o=n(43),c=n(4),s=n.n(c),l=n(20),u=n(41),d=s.a.useSelect;function ReminderBannerNoAccess(t){var n,r=t.title,i=t.description,c=t.dismissExpires,s=t.onDismiss,g=d((function(e){return e(l.a).getModule("analytics")})),f=(null==g||null===(n=g.owner)||void 0===n?void 0:n.login)?"<strong>".concat(g.owner.login,"</strong>"):Object(a.__)("Another admin","google-site-kit"),m=e.createElement("p",null,Object(o.a)(Object(a.sprintf)(
/* translators: 1. Original reminder description text, 2: module owner's name */
Object(a.__)("%1$s.<br />%2$s configured Analytics and you dont have access to its configured property. Contact them to share access or set up Google Analytics 4.","google-site-kit"),i,f),{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:r,description:m,dismiss:Object(a.__)("Remind me later","google-site-kit"),dismissExpires:c,onDismiss:s})}ReminderBannerNoAccess.propTypes={title:i.a.string.isRequired,description:i.a.node,dismissExpires:i.a.number,onDismiss:i.a.func}}).call(this,n(2))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SetupBanner}));var i=n(5),a=n.n(i),o=n(16),c=n.n(o),s=n(17),l=n.n(s),u=n(3),d=n(263),g=n(1),f=n(9),m=n(4),p=n.n(m),b=n(41),h=n(288),v=n(111),_=n(14),O=n(387),y=n(11),k=n(7),E=n(71),j=n(149),S=n(200),w=n(201),A=n(380),C=n(18),D=n(29),T=n(45),N=n(19),R=n(8),x=n(548),M=n(307),P=p.a.useDispatch,I=p.a.useSelect;function SetupBanner(t){var n=t.onSubmitSuccess,i=Object(u.useState)(null),o=l()(i,2),s=o[0],m=o[1],p=Object(u.useState)(null),L=l()(p,2),B=L[0],F=L[1],W=Object(u.useState)(!1),z=l()(W,2),V=z[0],U=z[1],G=Object(u.useState)(!1),H=l()(G,2),q=H[0],K=H[1],Y=Object(N.a)(),X="".concat(Y,"_ga4-setup-notification"),$=P(_.i),Z=$.submitChanges,Q=$.selectProperty,J=$.matchAndSelectProperty,ee=I((function(e){return e(y.f).getAccountID()})),te=I((function(e){return e(_.i).getProperties(ee)})),ne=I((function(e){return e(y.f).getAccounts()})),re=I((function(e){return e(_.i).getPropertyID})),ie=I((function(e){return e(_.i).getMeasurementID})),ae=Object(u.useCallback)(c()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===B){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 F(M.a.NO_EXISTING_PROPERTY),Q(_.j),e.abrupt("return");case 8:if(void 0!==ne){e.next=10;break}return e.abrupt("return");case 10:if(re()){e.next=13;break}return e.next=13,J(ee,_.j);case 13:F(M.a.EXISTING_PROPERTY);case 14:case"end":return e.stop()}}),e)}))),[ee,ne,re,J,te,Q,B]);Object(u.useEffect)((function(){B||ae()}),[B,ae]);var oe=I((function(e){return e(k.a).hasScope(y.c)})),ce=I((function(e){return e(_.i).getExistingTag()})),se=I((function(e){return e(D.a).getValue(y.e,"autoSubmit")}));Object(O.a)();var le=I((function(e){return e(k.a).getReferenceDate()})),ue=P(k.a).setPermissionScopeError,de=P(D.a).setValues,ge=Object(u.useCallback)(c()(a.a.mark((function e(){var t,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return U(!0),e.next=3,Z();case 3:if(t=e.sent,r=t.error,U(!1),!r){e.next=9;break}return m(r),e.abrupt("return");case 9:n();case 10:case"end":return e.stop()}}),e)}))),[Z,n]),fe=Object(u.useCallback)(c()(a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],!1!==oe||re()!==_.j&&ie()||n.push(y.c),B===M.a.NO_EXISTING_PROPERTY||re()===_.j?Object(R.A)(X,"create_property"):Object(R.A)(X,"connect_property"),!(n.length>0)){t.next=9;break}return de(y.e,{autoSubmit:!0}),de(E.g,{returnToSetupStep:!0}),r=Object(d.a)(e.location.href,{notification:"ga4_setup"}),ue({code:T.a,message:Object(g.__)("Additional permissions are required to create a new GA4 property.","google-site-kit"),data:{status:403,scopes:n,skipModal:!0,redirectURL:r}}),t.abrupt("return");case 9:return t.next=11,ge();case 11:case"end":return t.stop()}}),t)}))),[X,B,oe,ue,de,ge,re,ie]);Object(u.useEffect)((function(){function e(){return(e=c()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return de(y.e,{autoSubmit:!1}),e.next=3,ge();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}se&&oe&&function(){e.apply(this,arguments)}()}),[se,oe,de,ge,n]),Object(u.useEffect)((function(){q||se||!B||(Object(R.A)(X,"view_notification"),K(!0))}),[X,se,B,q]);var me,pe,be,he=Object(j.a)(E.a).isTooltipVisible,ve=Object(S.a)(E.a);return null===B?r.createElement("div",{c
/* translators: %s: existing tag ID */
Object(g.__)("A tag %s for the selected property already exists on the site.","google-site-kit"),ce)),r.createElement("p",null,Object(g.__)("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")))}))):(me=Object(g.__)("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(g.__)("Create property","google-site-kit")),r.createElement(b.b,{id:"ga4-activation-banner",className:"googlesitekit-ga4-setup-banner",title:me,ctaComponent:r.createElement(f.SpinnerButton,{onClick:fe,isSaving:V},pe),footer:r.createElement(x.a,{variant:B}),dismiss:Object(g.__)("Cancel","google-site-kit"),dismissExpires:Object(A.a)(le),onDismiss:ve},s&&r.createElement(v.a,{error:s}),be))}}).call(this,n(26),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupBannerFooter}));var r=n(1),i=n(4),a=n.n(i),o=n(7),c=n(11),s=n(14),l=n(307),u=a.a.useSelect;function SetupBannerFooter(t){var n=t.variant,i=u((function(e){var t=[],i=e(o.a).hasScope(c.c),a=e(s.i).getPropertyID(),u=e(s.i).getMeasurementID(),d=e(s.i).getExistingTag();return n===l.a.EXISTING_PROPERTY?(!1!==i||a!==s.j&&u||t.push(Object(r.__)("You will need to give Site Kit permission to create an Analytics property on your behalf","google-site-kit")),t.push(Object(r.__)("You can always add/edit this in the Site Kit Settings","google-site-kit"))):(d&&t.push(Object(r.sprintf)(
/* translators: %s: The existing tag ID. */
Object(r.__)("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(r.__)("You will need to give Site Kit permission to create an Analytics property on your behalf","google-site-kit")),t.push(Object(r.__)("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(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SuccessBanner}));var r=n(87),i=n(1),a=n(4),o=n.n(a),c=n(13),s=n(41),l=n(304),u=n(19),d=n(33),g=o.a.useSelect;function SuccessBanner(){var t=g((function(e){return e(c.c).getDocumentationLinkURL("ga4")})),n=Object(u.a)(),a="".concat(n,"_ga4-success-notification"),o=Object(i.__)("Google Analytics 4 has started collecting data for your site. As soon there is enough data, youll be able to switch your Site Kit dashboard to show data from Google Analytics 4.","google-site-kit");return Object(r.a)((function(){Object(d.b)(a,"view_notification")})),e.createElement(s.b,{id:"ga4-activation-banner",title:Object(i.__)("You successfully set up your Google Analytics 4 property","google-site-kit"),description:o,dismiss:Object(i.__)("OK, Got it","google-site-kit"),WinImageSVG:function WinImageSVG(){return e.createElement(l.a,null)},format:"small",type:"win-success",learnMoreLabel:Object(i.__)("Learn more about Google Analytics 4","google-site-kit"),learnMoreURL:t})}}).call(this,n(2))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SetupBanner}));var i=n(5),a=n.n(i),o=n(6),c=n.n(o),s=n(16),l=n.n(s),u=n(17),d=n.n(u),g=n(0),f=n.n(g),m=n(3),p=n(1),b=n(4),h=n.n(b),v=n(9),_=n(29),O=n(13),y=n(7),k=n(11),E=n(14),j=n(45),S=n(8),w=n(41),A=n(304),C=n(111),D=n(172),T=n(19),N=h.a.useDispatch,R=h.a.useSelect;function SetupBanner(t){var n=t.isDismissed,i=t.onSubmitSuccess,o=t.onDismiss,s=t.children,u=Object(T.a)(),g=Object(m.useState)(null),f=d()(g,2),b=f[0],h=f[1],x=Object(m.useState)(!1),M=d()(x,2),P=M[0],I=M[1],L=R((function(e){return e(y.a).hasScope(k.c)})),B=R((function(e){return e(_.a).getValue(k.e,"autoSubmit")})),F=R((function(e){return e(O.c).getGoogleSupportURL({path:"/analytics/answer/9216061"})})),W=N(E.i).submitChanges,z=N(y.a).setPermissionScopeError,V=N(_.a).setValues,U=Object(m.useCallback)(l()(a.a.mark((function e(){var t,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(!0),V(E.d,c()({},E.c,!0)),e.next=4,W();case 4:if(t=e.sent,n=t.error,I(!1),!n){e.next=10;break}return h(n),e.abrupt("return");case 10:i();case 11:case"end":return e.stop()}}),e)}))),[V,W,i]),G=Object(m.useCallback)(l()(a.a.mark((function t(){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],!1===L&&n.push(k.c),!(n.length>0)){t.next=6;break}return V(k.e,{autoSubmit:!0}),z({code:j.a,message:Object(p.__)("Additional permissions are required to enable enhanced measurement for the selected web data stream.","google-site-kit"),data:{status:403,scopes:n,skipModal:!0,redirectURL:e.location.href}}),t.abrupt("return");case 6:return Object(S.A)("".concat(u,"_enhanced-measurement-notification"),"confirm_notification"),t.next=9,U();case 9:case"end":return t.stop()}}),t)}))),[u,L,U,z,V]),H=Object(m.useCallback)((function(){Object(S.A)("".concat(u,"_enhanced-measurement-notification"),"dismiss_notification"),null==o||o()}),[o,u]),q=Object(m.useCallback)((function(){Object(S.A)("".concat(u,"_enhanced-measurement-notification"),"click_learn_more_link")}),[u]);Object(m.useEffect)((function(){Object(S.A)("".concat(u,"_enhanced-measurement-notification"),"view_notification")}),[u]),Object(m.useEffect)((function(){function e(){return(e=l()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return V(k.e,{autoSubmit:!1}),e.next=3,U();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}B&&L&&function(){e.apply(this,arguments)}()}),[L
/* translators: %s: the number of hours the site can be in a gathering data state */
Object(a.__)("It can take up to %s hours before stats show up for your site. While youre waiting, connect more services to get more stats.","google-site-kit"),"72"),format:"small",onView:d,dismiss:Object(a.__)("OK, Got it!","google-site-kit"),dismissExpires:Object(l.o)("day"),SmallImageSVG:s.a,onDismiss:g,isDismissible:!0})}GatheringDataNotification.propTypes={title:i.a.string}}).call(this,n(2))},function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"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}),o=r.createElement("ellipse",{cx:200,cy:381.74,rx:79.51,ry:8.26,fill:"#F1F3F4"}),c=r.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"}),s=r.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}),l=r.createElement("path",{d:"M216.76 201.8s-35.21 19.92-58.76 44.56",stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27}),u=r.createElement("path",{stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47V380h29.52"}),d=r.createElement("path",{stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47v47.5"}),g=r.createElement("circle",{cx:200,cy:162.34,r:81.45,fill:"#D93025"}),f=r.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}),m=r.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 r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,g,f,m)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ZeroDataNotification}));var r=n(309),i=n(3),a=n(1),o=n(13),c=n(41),s=n(555),l=n(8),u=n(19);function ZeroDataNotification(){var t=Object(u.a)(),n="".concat(t,"_zero-data-notification"),d=Object(i.useCallback)((function(){Object(l.A)(n,"view_notification")}),[n]),g=Object(i.useCallback)((function(){Object(l.A)(n,"dismiss_notification")}),[n]),f=Object(i.useCallback)((function(){Object(l.A)(n,"click_learn_more_link")}),[n]),m=Object(r.a)((function(e){return e(o.c).getDocumentationLinkURL("not-enough-traffic")}));return e.createElement(c.b,{id:"zero-data-notification",title:Object(a.__)("Not enough traffic yet to display stats","google-site-kit"),description:Object(a.__)("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(a.__)("Learn more","google-site-kit"),learnMoreURL:m,dismiss:Object(a.__)("Remind me later","google-site-kit"),dismissExpires:Object(l.o)("day"),SmallImageSVG:s.a,onView:d,onDismiss:g,onLearnMoreClick:f,isDismissible:!0})}}).call(this,n(2))},function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("ellipse",{cx:175.51,cy:381.74,rx:104,ry:8.26,fill:"#F1F3F4"}),o=r.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
/* translators: %s: Error message */
Object(o.__)("Error: %s","google-site-kit"),Object.values(n)[0].message)),Object.keys(n).length>1&&e.createElement(a.Fragment,null,e.createElement("p",null,Object(o.__)("The following modules failed to be recovered:","google-site-kit")),e.createElement("ul",null,Object.keys(n).map((function(t){return e.createElement("li",{key:t},Object(o.sprintf)(
/* translators: 1: Module name, 2: Error message */
Object(o.__)("%1$s: %2$s","google-site-kit"),n[t].name,n[t].message))})))))}Errors.propTypes={recoveryErrors:i.a.object.isRequired}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(30),i=n.n(r),a=function(e){return Array.isArray(e)?i()(e).sort():e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardEntryPoint}));var r=n(0),i=n.n(r),a=n(87),o=n(4),c=n.n(o),s=n(14),l=n(859),u=n(861),d=c.a.useDispatch;function DashboardEntryPoint(t){var n=t.setupModuleSlug,r=d(s.i).syncGoogleTagSettings;return Object(a.a)((function(){r()})),n?e.createElement(l.a,{moduleSlug:n}):e.createElement(u.a,null)}DashboardEntryPoint.propTypes={setupModuleSlug:i.a.string}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSetup}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(0),s=n.n(c),l=n(87),u=n(3),d=n(1),g=n(4),f=n.n(g),m=n(13),p=n(20),b=n(32),h=n(8),v=n(195),_=n(18),O=n(194),y=n(860),k=f.a.useSelect,E=f.a.useDispatch;function ModuleSetup(t){var n=t.moduleSlug,r=E(b.a).navigateTo,a=k((function(e){return e(p.a).getModule(n)})),c={notification:"authentication_success"};n&&(c.slug=n);var s=k((function(e){return e(m.c).getAdminURL("googlesitekit-dashboard",c)})),g=Object(u.useCallback)(function(){var e=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.A)("moduleSetup","complete_module_setup",n);case 2:r(t||s);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[s,r,n]),f=Object(u.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.A)("moduleSetup","cancel_module_setup",n);case 2:case"end":return e.stop()}}),e)}))),[n]);if(Object(l.a)((function(){Object(h.A)("moduleSetup","view_module_setup",n)})),!(null==a?void 0:a.SetupComponent))return null;var j=a.SetupComponent;return e.createElement(u.Fragment,null,e.createElement(O.a,null,e.createElement(v.a,null)),e.createElement("div",{className:"googlesitekit-setup"},e.createElement(_.e,null,e.createElement(_.k,null,e.createElement(_.a,{size:12},e.createElement("section",{className:"googlesitekit-setup__wrapper"},e.createElement(_.e,null,e.createElement(_.k,null,e.createElement(_.a,{size:12},e.createElement("p",{className:"googlesitekit-setup__intro-title"},Object(d.__)("Connect Service","google-site-kit")),e.createElement(j,{module:a,finishSetup:g})))),e.createElement(y.a,{module:a,onCancel:f})))))))}ModuleSetup.propTypes={moduleSlug:s.a.string.isRequired}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSetupFooter}));var r=n(0),i=n.n(r),a=n(1),o=n(4),c=n.n(o),s=n(13),l=n(18),u=n(21),d=c.a.useSelect;function ModuleSetupFooter(t){var n=t.module,r=t.onCancel,i=d((function(e){return e(s.c).getAdminURL("googlesitekit-settings")})),o=d((function(e){var t,r;return null===(t=e(null==n?void 0:n.storeName))||void 0===t||null===(r=t.isSetupBlocked)||void 0===r?void 0:r.call(t)}));return n?e.createElement("div",{className:"googlesitekit-setup__footer"},e.createElement(l.e,null,e.createElement(l.k,null,e.createElement(l.a,{smSize:2,mdSize:4,lgSize:6},e.createElement(u.a,{id:"setup-".concat(n.slug,"-cancel"),href:i,onClick:r},o?Object(a.__)("Back","google-site-kit"):Object(a.__)("Cancel","google-site-kit")))))):null}ModuleSetupFooter.propTypes={module:i.a.shape({slug:i.a.string.isRequired,storeName:i.a.string.isRequired}).isRequired,onCancel:i.a.func.isRequired}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardMainApp}));var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(17),s=n.n(c),l=n(12),u=n.n(l),d=n(3),g=n(87),f=n(4),m=n.n(f),p=n(70),b=n(8),h=n(194),v=n(527),_=n(344),O=n(538),y=n(543),k=n(195),E=n(863),j=n(172),S=n(878),w=n(47
/* translators: %s: the name of a module that setup was completed for */
Object(d.__)("Congrats on completing the setup for %s!","google-site-kit"),G.setupTitle),description:G.description,handleDismiss:function(){},WinImageSVG:h.a,onView:V,dismiss:Object(d.__)("OK, Got it!","google-site-kit"),onDismiss:U,format:"smaller",type:"win-success",learnMoreLabel:G.learnMore.label,learnMoreDescription:G.learnMore.description,learnMoreURL:G.learnMore.url,learnMoreTarget:G.learnMore.target}));default:return null}}}).call(this,n(26),n(2))},function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{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"}),o=r.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),l=r.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),u=r.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),d=r.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),g=r.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),f=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,g,f)}},function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),a=n(3),o=n(4),c=n.n(o),s=n(13),l=n(7),u=n(867),d=c.a.useSelect;t.a=function CoreSiteBannerNotifications(){var t=Object(a.useState)(!1),n=i()(t,2),r=n[0],o=n[1],c=Object(a.useState)(!1),g=i()(c,2),f=g[0],m=g[1],p=Object(a.useRef)(Date.now()),b=d((function(e){return e(s.c).isUsingProxy()&&!1===e(l.a).areSurveysOnCooldown()?e(l.a).getCurrentSurvey():null})),h=d((function(e){return e(s.c).getNotifications()}));return Object(a.useEffect)((function(){var e=setTimeout((function(){f||o(!0)}),5e3);return function(){clearTimeout(e)}}),[f]),Object(a.useEffect)((function(){Math.floor((Date.now()-p.current)/1e3)<5&&b&&m(!0)}),[p,b,m]),Array.isArray(h)&&r&&!f?h.map((function(t){return e.createElement(u.a,{content:t.content,ctaLabel:t.ctaLabel,ctaTarget:t.ctaTarget,ctaURL:t.ctaURL,dismissLabel:t.dismissLabel,dismissible:t.dismissible,id:t.id,key:t.id,learnMoreLabel:t.learnMoreLabel,learnMoreURL:t.learnMoreURL,title:t.title})})):null}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(1),o=n(3),c=n(4),s=n.n(c),l=n(41),u=n(13),d=n(8),g=n(19),f=s.a.useDispatch,m=function CoreSiteBannerNotification(t){var n=t.content,r=t.ctaLabel,i=t.ctaTarget,a=t.ctaURL,c=t.dismissLabel,s=t.dismissible,m=t.id,p=t.learnMoreLabel,b=t.learnMoreURL,h=t.title,v=f(u.c),_=v.dismissNotification,O=v.acceptNotification,y=Object(g.a)(),k=Object(o.useCallback)((function(){Object(d.A)("".concat(y,"_remote-site-notification"),"view_notification",m)}),[m,y]),E=Object(o.useCallback)((function(
/* translators: %s: module name. */
Object(g.__)("%s data was previously shared with other users on the site by another admin who no longer has access. To restore access, the module must be recovered by another admin who has access.","google-site-kit"),y[M[0]].name):(P=Object(g.__)("The data for the following modules was previously shared with other users on the site by another admin who no longer has access. To restore access, the module must be recovered by another admin who has access.","google-site-kit"),I=e.createElement("ul",{className:"mdc-list mdc-list--non-interactive"},M.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},y[t].name))})))):1===w.length?(P=Object(g.sprintf)(
/* translators: %s: module name. */
Object(g.__)("%s data was previously shared with other users on the site by another admin who no longer has access. To restore access, you may recover the module as the new owner.","google-site-kit"),y[w[0]].name),I=e.createElement(d.Fragment,null,e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(g.__)("By recovering the module, you will restore access for other users by sharing access via your Google account. This does not make any changes to external services and can be managed at any time via the dashboard sharing settings.","google-site-kit")),Object.keys(A).length>0&&e.createElement(O.a,{recoveryErrors:A})),L=x):(P=Object(g.__)("The data for the following modules was previously shared with other users on the site by another admin who no longer has access. To restore access, you may recover the module as the new owner.","google-site-kit"),I=e.createElement(d.Fragment,null,w.map((function(t){return e.createElement("div",{key:t},e.createElement(p.Checkbox,{checked:r[t],name:"module-recovery-alert-checkbox",id:"module-recovery-alert-checkbox-".concat(t),onChange:function(){return R(t)},value:t,disabled:f},y[t].name))})),e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(g.__)("By recovering the selected modules, you will restore access for other users by sharing access via your Google account. This does not make any changes to external services and can be managed at any time via the dashboard sharing settings.","google-site-kit")),Object.keys(A).length>0&&e.createElement(O.a,{recoveryErrors:A})),L=x),e.createElement(_.b,{id:"module-recovery-alert",title:Object(g.__)("Dashboard data for some services has been interrupted","google-site-kit"),onCTAClick:L,ctaLabel:L?Object(g.__)("Recover","google-site-kit"):null,ctaLink:L?"#":null,description:P,learnMoreURL:S,learnMoreLabel:Object(g.__)("Learn more","google-site-kit"),isDismissible:B,dismiss:Object(g.__)("Remind me later","google-site-kit"),dismissExpires:Object(v.o)("day")},I)}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(3),i=n(1),a=n(4),o=n.n(a),c=n(20),s=n(22),l=n(870),u=n(41),d=o.a.useSelect;t.a=function AdSenseAlerts(){var t=d((function(e){return e(c.a).isModuleConnected("adsense")})),n=d((function(e){return e(s.m).getAccountID()})),a=d((function(e){return e(s.m).getNotifications()}));return t&&n&&void 0!==a?e.createElement(r.Fragment,null,a.map((function(t){var n=t.id,r=t.title,a=t.description,o=t.format,c=t.ctaURL,s=t.ctaLabel,d=t.ctaTarget,g=t.severity,f=t.isDismissable;return e.createElement(u.b,{key:n,id:n,title:r||"",description:a,WinImageSVG:l.a,format:o||"small",ctaLink:c,ctaLabel:s,ctaTarget:d,type:g,dismiss:Object(i.__)("OK, Got it!","google-site-kit"),isDismissible:f||!0,logo:!0,module:"adsense",moduleName:Object(i._x)("AdSense","Service name","google-site-kit"),dismissExpires:0,showOnce:!1})}))):null}}).call(this,n(2))},function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("g",{clipPath:"url(#notification-alert_svg__clip0)",strokeMiterlimit:10,strokeWidth:15},r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15s44.18-11.1 65.14-20.18c9.91-4.3 20.07-8.62 30.85-9.31s22.46 2.9 28.7 11.71a24 24 0 013.78 17.65",stroke:"#4285F4"}),r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15",stroke:"#1A73E8"})),c=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),s=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),l=r.createElement("path",{d:"M221.3 13l-94.69 95.2a10 10 0 004.53 16.72L261 159.3a10 10 0 0012.18-12.3L238 17.39A10 10 0 00221.3 13z",fill:"#D93025"}),u=r.createElement("path",{d:"M137.37 111.56l87.36-87.87a3 3 0 015 1.33l32.42 119.6a3 3 0 01-3.66 3.68l-119.7
/* translators: 1: Currently GA4 property name. 2: Current GA4 property ID. 3: Newly linked GA4 property name. 4: Newly linked GA4 property ID. */
Object(c.__)('The Google Tag on your site is no longer associated with your current Google Analytics 4 property "%1$s (%2$s)". It is now recording metrics to another Google Analytics 4 property "%3$s (%4$s)". If you want to continue seeing Analytics data in the Site Kit dashboard, we suggest you update Site Kits Google Analytics configuration to show data for the property used in your Google Tag.',"google-site-kit"),r.displayName,r._id,l.displayName,l._id),ctaComponent:e.createElement(s.Fragment,null,e.createElement(f.SpinnerButton,{onClick:D,isSaving:y},Object(c.__)("Use new property","google-site-kit")),e.createElement(p.a,{onClick:T},Object(c.__)("Keep existing property","google-site-kit"))),isDismissible:!1}):u?e.createElement(m.b,{id:"google-tag-id-mismatch",title:Object(c.__)("Your Google tag configuration has changed","google-site-kit"),description:Object(c.sprintf)(
/* translators: 1: Currently set Google Tag ID. 2: Newly linked Google Tag ID. 3: Currently GA4 property name. 4: Current GA4 property ID. */
Object(c.__)('The Google tag for your Google Analytics 4 configuration has changed from %1$s to %2$s. To keep using your current Google Analytics 4 property "%3$s (%4$s)", you need to configure Site Kit to place the new Google tag %2$s instead.',"google-site-kit"),t.googleTagID,u,r.displayName,r._id),ctaLabel:Object(c.sprintf)(
/* translators: %s: Newly linked Google Tag ID. */
Object(c.__)("Update Google tag to %s","google-site-kit"),u),ctaLink:T?"#":null,onCTAClick:T,isDismissible:!1}):void 0}}).call(this,n(2))},function(e,t,n){"use strict";function r(e,t){if(1===e.length)return e[0];var n=e.find((function(e){return"GT-"===e.substring(0,3)}));if(n)return n;if(e.includes(t))return t;var r=e.find((function(e){return"G-"===e.substring(0,2)}));return r||e[0]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SwitchedToGA4Banner}));var r=n(91),i=n(3),a=n(1),o=n(4),c=n.n(o),s=n(304),l=n(20),u=n(7),d=n(28),g=n(11),f=n(279),m=n(8),p=n(57),b=n(19),h=n(338),v=n(41),_=c.a.useSelect,O=c.a.useDispatch;function SwitchedToGA4Banner(){var t=Object(r.a)()>=783,n=Object(b.a)(),o=_((function(e){return e(u.a).getReferenceDate()})),c=_((function(e){return e(u.a).isTourDismissed(h.a.slug)})),y=_((function(e){return e(d.b).getValue("showGA4ReportingTour")})),k=_((function(e){var t=e(g.f).getPropertyID();return Object(p.h)(t)})),E=_((function(e){return e(l.a).hasModuleOwnershipOrAccess("analytics-4")})),j="".concat(n,"_ga4-display-success-notification"),S=Object(i.useCallback)((function(){Object(m.A)(j,"view_notification")}),[j]),w=O(d.b).setValue,A=O(u.a).dismissTour,C=function(){Object(m.A)(j,"dismiss_notification"),A(h.a.slug)};if(!k||void 0===c||c||!E||y)return null;var D=Object(m.y)(o)>=Object(m.y)(f.a)?Object(a.__)("Universal Analytics, the old version of Google Analytics, stopped collecting data on July 1, 2023.","google-site-kit"):Object(a.__)("Universal Analytics, the old version of Google Analytics, will stop collecting data on July 1, 2023.","google-site-kit");return e.createElement(v.b,{id:"switched-ga4-dashboard-view",title:Object(a.__)("Your dashboard now displays data from Google Analytics 4, the new version of Analytics","google-site-kit"),description:D,ctaLabel:t?Object(a.__)("Learn whats new","google-site-kit"):Object(a.__)("OK, Got it!","google-site-kit"),ctaLink:"#",onView:S,onCTAClick:t?function(){Object(m.A)(j,"confirm_notification"),w("forceInView",!0),w("showGA4ReportingTour",!0)}:C,onDismiss:C,dismiss:t?Object(a.__)("OK, Got it!","google-site-kit"):void 0,WinImageSVG:function WinImageSVG(){return e.createElement(s.a,null)}})}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebDataStreamNotAvailableNotification}));var r=n(1),i=n(9),a=n(4),o=n.n(a),c=n(41),s=n(14),l=n(13),u=n(8),d=n(18),g=o.a.useSelect;function WebDataStreamNotAvailableNotification(){var t=g((function(e){return e(s.i).isWebDataStreamAvailable()})),n=g((function(e){return e(s.i).getMeasurementID()})),a=g((function(e){return e(l.c).getAdminURL("googlesitekit-settings")}));return t?null:void 0===n?e.createElement("div",{className:"googlesitekit-publisher-win"},e.createElement(d.e,null,e.createElement(d.k,null,e.createElement(d.a,{size:12},e.createElement(i.ProgressBar,null))))):e.createElement(c.b,{id:"web-data-stream-not-available",title:Object(r.__)("Your Analytics 4 configuration has changed","google-site-kit"),description:Object(r.sprintf)(
/* translators: 1: Google Analytics 4 Measurement ID. */
Object(r.__)("The previously selected web data stream with measurement ID %1$s is no longer available. Please select a new web data stream to continue collecting data with Google Analytics 4.","google-site-kit"),n),ctaLink:"".concat(a,"#connected-services/analytics/edit"),ctaLabel:Object(r.__)("Update Analytics settings","google-site-kit"),dismiss:Object(r.__)("Maybe later","google-site-kit"),dismissExpires:55*Object(u.o)("minute")})}}).call(this,n(2))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return AdBlockingRecoverySetupSuccessBannerNotification}));var i=n(3),a=n(43),o=n(1),c=n(945),s=n(4),l=n.n(s),u=n(877),d=n(19),g=n(22),f=n(8),m=n(21),p=n(41),b=n(13),h=n(7),v=l.a.useDispatch,_=l.a.useSelect;function AdBlockingRecoverySetupSuccessBannerNotification(){var t=Object(d.a)(),n=v(h.a).triggerSurvey,s=_((function(e){return e(b.c).isUsingProxy()})),l=_((function(e){return e(g.m).getAdBlockingRecoverySetupStatus()})),O=_((function(e){return e(g.m).getAccountID()})),y=_((function(e){return e(g.m).getServiceURL({path:"/".concat(O,"/privacymessaging/ad_blocking")})})),k=Object(i.useCallback)((function(){Object(f.A)("".concat(t,"_adsense-abr-success-notification"),"view_notification"),s&&n("abr_setup_completed",{ttl:f.a})}),[n,s,t]);return l!==g.k.SETUP_CONFIRMED?null:r.createElement(p.b,{id:g.d,className:"googlesitekit-ad-blocking-recovery-notification",title:Object(o.__)("You successfully enabled the ad blocking recovery message","google-site-kit"),description:Object(a.a)(Object(o.__)("Make sure to also create the message in <a>AdSense</a>, otherwise this feature wont work.","google-site-kit"),{a:r.createElement(m.a,{href:y,external:!0,hideExternalIndicator:!0})}),dismiss:Object(o.__)("OK, Got it!","google-site-kit"),onDismiss:function(){Object(f.A)("".concat(t,"_adsense-abr-success-notification"),"confirm_notification");var n=Object(c.a)(e.location.href,"notification");e.history.replaceState(null,"",n)},isDismissible:!0,onView:k,type:"win-success",WinImageSVG:function WinImageSVG(){return r.createElement(u.a,null)},format:"small"})}}).call(this,n(26),n(2))},function(e,t,n){"use strict";var r=n(3);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M12.9 14.73a46.926 46.926 0 014.92-3.892C34.333-.533 47.975-.514 66.862 1.562c12.769 1.402 23.849 8.053 37.279 7.405 13.43-.648 31.996-4.651 46.813-3.786 16.868.985 21.156 2.71 36.153 9.55 13.879 6.33 26.481 17.452 32.814 32.16 10.855 25.211-8.5 70.586-34.456 72.726-18.808 1.551-34.33-16.736-53.314-12.501-11.694 2.609-18.63 13.554-27.652 20.777-10.527 8.428-27.56 7.898-39.886 3.401-11.746-4.286-20.373-12.772-24.209-25.282-2.92-9.526-2.627-19.07-9.64-26.532C20.869 68.95 5.394 66.512.732 46.89-2.218 34.47 4.13 22.687 12.9 14.73z",fill:"#F3F5F7"}),o=r.createElement("g",{filter:"url(#ad-blocking-recovery-success_svg__filter0_d_766_3674)"},r.createElement("path",{d:"M48.967 34.532a9.359 9.359 0 019.358-9.36h107.2a9.359 9.359 0 019.359 9.36v70.648c0 5.168-4.19 9.358-9.359 9.358h-107.2a9.359 9.359 0 01-9.358-9.358V34.531z",fill:"#fff"}),r.createElement("path",{d:"M49.392 34.532c0-4.934 4-8.934 8.933-8.934h107.2c4.934 0 8.933 4 8.933 8.934v70.648a8.933 8.933 0 01-8.933 8.933h-107.2c-4.933 0-8.933-4-8.933-8.933V34.531z",stroke:"#CBD0D3",strokeWidth:.851})),c=r.createElement("rect",{x:70.447,y:59.985,width:82.216,height:4.444,rx:2.222,fill:"#EBEEF0"}),s=r.createElement("rect",{x:89.705,y:85.169,width:45.182,height:19.258,rx:9.629,fill:"#77AD8C"}),l=r.createElement("circle",{cx:111.926,cy:42.209,r:8.148,fill:"#EBEEF0"}),u=r.createElement("path",{d:"M106.74 94.545l4.257 4.257 8.078-8.078",stroke:"#fff",strokeWidth:2.552}),d=r.createElement("rect",{x:68.966,y:70.355,width:83.698,height:4.444,rx:2.222,fill:"#EBEEF0"}),g=r.createElement("defs",null,r.createElement("filter",{id:"ad-blocking-recovery-success_svg__filter0_d_766_3674",x:48.967,y:25.173,width:129.32,height:93.62,filterUnit
/* translators: %s: Option name */
Object(m.__)("Text input for option %s","google-site-kit"),r))),e.createElement(p.TextField,{id:"".concat(c,"-write-in"),onChange:function(e){return function(e,t){var n,r=O(O({},A),{},o()({},t,O(O({},A[t]),{},{answer_text:null===(n=e.target.value)||void 0===n?void 0:n.slice(0,v.a)})));C(r)}(e,n)},value:a.answer_text,disabled:!a.selected})))}))),e.createElement("div",{className:"googlesitekit-survey__footer"},u>1&&e.createElement(p.HelperText,{persistent:!0},Object(m.sprintf)(
/* translators: %s: the number of answers. */
Object(m.__)("Choose at least %s answers","google-site-kit"),u)),e.createElement(p.Button,{onClick:function(){var e=Object.values(A).filter((function(e){return e.selected})).map((function(e){var t=e.answer_ordinal,n=e.answer_text;return n?{answer_ordinal:t,answer_text:n}:{answer_ordinal:t}}));a({answer:e})},disabled:R},y)))};y.propTypes={question:u.a.string.isRequired,choices:u.a.arrayOf(u.a.shape({answer_ordinal:u.a.oneOfType([u.a.string,u.a.number]),text:u.a.string,write_in:u.a.bool})).isRequired,answerQuestion:u.a.func.isRequired,dismissSurvey:u.a.func.isRequired,minChoices:u.a.number,maxChoices:u.a.number,submitButtonText:u.a.string.isRequired},t.a=y}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(6),i=n.n(r),a=n(17),o=n.n(a),c=n(0),s=n.n(c),l=n(3),u=n(9),d=n(389),g=n(891);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function SurveyQuestionSingleSelect(t){var n=t.question,r=t.choices,i=t.answerQuestion,a=t.dismissSurvey,c=t.submitButtonText,s=Object(l.useState)(""),f=o()(s,2),p=f[0],b=f[1],h=Object(l.useState)(""),v=o()(h,2),_=v[0],O=v[1],y=r.map((function(e){return m(m({},e),{},{answer_ordinal:"".concat(e.answer_ordinal)})})),k=!!p&&y.filter((function(e){var t=e.answer_ordinal,n=e.write_in;return t===p&&n})).length>0,E=""===p||k&&""===_;return e.createElement("div",{className:"googlesitekit-single-select"},e.createElement(d.a,{title:n,dismissSurvey:a}),e.createElement("div",{className:"googlesitekit-survey__body"},y.map((function(t,n){return e.createElement(g.a,{key:n,value:p,setValue:b,writeIn:_,setWriteIn:O,choice:t})}))),e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(u.Button,{onClick:function(){var e=k?{answer_text:_}:{};i({answer:m({answer_ordinal:Number(p)},e)})},disabled:E},c)))};p.propTypes={question:s.a.string.isRequired,choices:s.a.arrayOf(s.a.shape({answer_ordinal:s.a.oneOfType([s.a.string,s.a.number]),text:s.a.string,write_in:s.a.bool})).isRequired,answerQuestion:s.a.func.isRequired,dismissSurvey:s.a.func.isRequired},t.a=p}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(3),o=n(1),c=n(9),s=n(90),l=n(477),u=function SurveyQuestionSingleSelectChoice(t){var n=t.value,r=t.setValue,i=t.writeIn,u=t.setWriteIn,d=t.choice,g=d.answer_ordinal,f=d.text,m=d.write_in,p=n===g,b="googlesitekit-survey__multi-select-".concat(g,"-").concat(f);return e.createElement("div",{className:"googlesitekit-single-select__choice"},e.createElement(c.Radio,{id:f.replace(/ /g,"-"),value:g,checked:p,name:f,onClick:function(){return r(g)}},f),m&&e.createElement(a.Fragment,null,e.createElement(s.a,null,e.createElement("label",{htmlFor:b},Object(o.sprintf)(
/* translators: %s: Option name */
Object(o.__)("Text input for option %s","google-site-kit"),f))),e.createElement(c.TextField,{id:b,onChange:function(e){return u(e.target.value.slice(0,l.a))},value:i,disabled:!p})))};u.propTypes={choice:i.a.shape({answer_ordinal:i.a.oneOfType([i.a.string,i.a.number]),text:i.a.string,write_in:i.a.bool}),value:i.a.string.isRequired,setValue:i.a.func.isRequired,writeIn:i.a.string.isRequired,setWriteIn:i.a.func.isRequired},t.a=u}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SurveyTerms}));var r=n(1),i=n(43),a=n(4),o=n.n(a),c=n(13),s=n(21),l=o.a.useSelect;function SurveyTerms(){var t=l((function(e){return e(c.c).getGooglePrivacyPolicyURL()})),n=l((function(e){return e(c.c).getGoogleTermsURL()}));return e.createElement("p",{className:"googlesitekit-survey__terms"},Object(i.a)(Object(r.__)("By continuing, you agree to allow Google to use your answers and account info to improve services, per our <privacy>Privacy</privacy> & <terms>Terms</terms>.","google-site-kit"),{privacy:e.createElement(s.a,{href:t,external:!0}),terms:e.createElement(s.a,{href:n,external:!0})}))}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricsSelectionPanel}));var r=n(17),i=n.n(r),a=n(6),o=n.n(a),c=n(3),s=n(4),l=n.n(s),u=n(29),d=n(28),g=n(7),f=n(99),m=n(894),p=n(896),b=n(897),h=n(898),v=n(901),_=n(19),O=n(8),y=l.a.useSelect,k=l.a.useDispatch;function MetricsSelectionPanel(){var t=Object(_.a)(),n=y((function(e){return e(d.b).getValue(f.c)})),r=y((function(e){var t=e(g.a).getKeyMetrics();if(!Array.isArray(t))return[];var n=e(g.a).isKeyMetricAvailable;return t.filter(n)})),a=k(u.a).setValues,s=k(d.b).setValue,l=Object(c.useCallback)((function(){a(f.b,o()({},f.a,r)),Object(O.A)("".concat(t,"_kmw-sidebar"),"metrics_sidebar_view")}),[r,a,t]),E=Object(c.useCallback)((function(){n&&s(f.c,!1)}),[s,n]),j=Object(c.useState)(!1),S=i()(j,2),w=S[0],A=S[1];return e.createElement(m.a,{className:"googlesitekit-km-selection-panel",isOpen:n||w,onOpen:l,closeFn:E,focusTrapOptions:{initialFocus:".googlesitekit-km-selection-panel-metrics__metric-item .googlesitekit-selection-box input"}},e.createElement(p.a,null),e.createElement(h.a,{savedMetrics:r}),e.createElement(v.a,null),e.createElement(b.a,{savedMetrics:r,onNavigationToOAuthURL:function(){A(!0)}}))}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SideSheet}));var r=n(6),i=n.n(r),a=n(12),o=n.n(a),c=n(895),s=n.n(c),l=n(0),u=n.n(l),d=n(207),g=n(439),f=n(3),m=n(55),p=n(93);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SideSheet(t){var n=t.className,r=t.children,i=t.isOpen,a=t.onOpen,c=void 0===a?function(){}:a,l=t.closeFn,u=void 0===l?function(){}:l,b=t.focusTrapOptions,v=void 0===b?{}:b,_=Object(f.useRef)();return Object(f.useEffect)((function(){i?(c(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):document.body.classList.remove("googlesitekit-side-sheet-scroll-lock")}),[i,c]),Object(d.a)(_,u),Object(g.a)((function(e){return i&&m.c===e.keyCode}),u),e.createElement(p.a,null,e.createElement(s.a,{active:!!i,focusTrapOptions:h({fallbackFocus:"body"},v)},e.createElement("section",{ref:_,className:o()("googlesitekit-side-sheet",n,{"googlesitekit-side-sheet--open":i}),role:"dialog","aria-modal":"true","aria-hidden":!i,tabIndex:"0"},r)),i&&e.createElement("span",{className:"googlesitekit-side-sheet-overlay"}))}SideSheet.propTypes={className:u.a.string,children:u.a.node,isOpen:u.a.bool,onOpen:u.a.func,closeFn:u.a.func,focusTrapOptions:u.a.object}}).c
/* translators: 1: Minimum number of metrics that can be selected. 2: Number of selected metrics. */
Object(v.__)("Select at least %1$d metrics (%2$d selected)","google-site-kit"),A.f,me):me>A.e&&(fe=Object(v.sprintf)(
/* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */
Object(v.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),A.e,me)),r.createElement("footer",{className:"googlesitekit-km-selection-panel-footer"},U&&r.createElement(x.a,{error:U}),r.createElement("div",{className:"googlesitekit-km-selection-panel-footer__content"},O&&fe?r.createElement(x.a,{error:{message:fe},noPrefix:me<A.f||me>A.e}):r.createElement("p",{className:"googlesitekit-km-selection-panel-footer__metric-count"},Object(b.a)(Object(v.sprintf)(
/* translators: 1: Number of selected metrics. 2: Maximum number of metrics that can be selected. */
Object(v.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),me,A.e),{MaxCount:r.createElement("span",{className:"googlesitekit-km-selection-panel-footer__metric-count--max-count"})})),r.createElement("div",{className:"googlesitekit-km-selection-panel-footer__actions"},r.createElement(R.a,{onClick:se,disabled:f||H},Object(v.__)("Cancel","google-site-kit")),r.createElement(_.SpinnerButton,{onClick:ce,isSaving:f||H,disabled:me<A.f||me>A.e||f||!q&&ie||H},ee||oe))))}Footer.propTypes={savedMetrics:m.a.array,onNavigationToOAuthURL:m.a.func}}).call(this,n(26),n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Metrics}));var r=n(6),i=n.n(r),a=n(30),o=n.n(a),c=n(0),s=n.n(c),l=n(1),u=n(4),d=n.n(u),g=n(120),f=n(7),m=n(42),p=n(20),b=n(165),h=n(899),v=n(38),_=n(3);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=d.a.useSelect;function Metrics(t){var n=t.savedMetrics,r=Object(v.a)(),a=k((function(e){return e(f.a)})).isKeyMetricAvailable,c=k((function(e){return e(p.a)})).getModule,s=k((function(e){return function(t){return b.a[t].displayInList(e,r)}})),u=k((function(e){return function(t){return e(m.a).getWidget(t)}})),d=function(e,t){if(!a(t))return e;if("function"==typeof b.a[t].displayInList&&!s(t))return e;var n=u(t).modules.reduce((function(e,t){var n=c(t);return(null==n?void 0:n.connected)||!(null==n?void 0:n.name)?e:[].concat(o()(e),[n.name])}),[]);return y(y({},e),{},i()({},t,y(y({},b.a[t]),{},{disconnectedModules:n})))},O=k((function(e){return e(m.a).getWidgets(g.AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY)||[]})).filter((function(e){var t=e.slug;return n.includes(t)})).map((function(e){return e.slug})),E=Object.keys(b.a).filter((function(e){return O.includes(e)})).reduce(d,{}),j=Object.keys(b.a).filter((function(e){return!O.includes(e)})).reduce(d,{}),S=function(t){return Object.keys(t).map((function(r){var i=t[r],a=i.title,o=i.description,c=i.disconnectedModules,s="key-metric-selection-checkbox-".concat(r);return e.createElement(h.a,{key:s,id:s,slug:r,title:a,description:o,disconnectedModules:c,savedMetrics:n})}))};return e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics"},0!==n.length&&e.createElement(_.Fragment,null,e.createElement("p",{className:"googlesitekit-km-selection-panel-metrics__subheading"},Object(l.__)("Current selection","google-site-kit")),e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics__subsection"},S(E)),e.createElement("p",{className:"googlesitekit-km-selection-panel-metrics__subheading"},Object(l.__)("Additional metrics","google-site-kit"))),e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics__subsection"},S(j)))}Metrics.propTypes={savedMetrics:s.a.array}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricItem}));var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(3),s=n(1),l=n(4),u=n.n(l),d=n(29),g=n(99),f=n(900),m=u.a.useSelect,p=u.a.useDispatch;function MetricItem(t){var n=t.id,r=t.slug,a=t.title,o=t.description,l=t.disconnectedModules,u=t.savedMetrics,b=void 0===u?[]:u,h=m((function(e){return e(d.a).getValue(g.b,g.a)})),v=m((function(e){return e(d.a)})).getValue,_=p(d.a).setValues,O=Object(c.useCallback)((function(e){var t=v(g.b,g.a);_(g.b,i()({},g.a,e.target.checked?t.concat([r]):t.filter((function(e){return e!==r}))))}),[v,_,r]),y=null==h?void 0:h.includes(r),k=!b.includes(r)&&l.length>0;return e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics__metric-item"},e.createElement(f.a,{checked:y,disabled:k,id
/* translators: %s: module names. */
Object(s._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",l.length,"google-site-kit"),l.join(Object(s.__)(" and ","google-site-kit"))))))}MetricItem.propTypes={id:o.a.string.isRequired,slug:o.a.string.isRequired,title:o.a.string.isRequired,description:o.a.string.isRequired,disconnectedModules:o.a.array,savedMetrics:o.a.array}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionBox}));var r=n(0),i=n.n(r),a=n(12),o=n.n(a),c=n(9);function SelectionBox(t){var n=t.checked,r=t.children,i=t.disabled,a=t.id,s=t.onChange,l=t.title,u=t.value;return e.createElement("div",{className:o()("googlesitekit-selection-box",{"googlesitekit-selection-box--disabled":i})},e.createElement(c.Checkbox,{checked:n,description:r,disabled:i,id:a,name:a,onChange:s,value:u},l))}SelectionBox.propTypes={checked:i.a.bool,children:i.a.node,disabled:i.a.bool,id:i.a.string,onChange:i.a.func,title:i.a.string,value:i.a.string}}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var r=n(1),i=n(1034),a=n(3),o=n(4),c=n.n(o),s=n(29),l=n(7),u=n(14),d=n(99),g=n(165),f=n(11),m=n(902),p=n(80),b=c.a.useSelect;t.a=Object(p.a)({moduleName:"analytics-4"})((function CustomDimensionsNotice(){var t=b((function(e){return e(s.a).getValue(d.b,d.a)})),n=null==t?void 0:t.flatMap((function(e){var t=g.a[e];return(null==t?void 0:t.requiredCustomDimensions)||[]})),o=b((function(e){return!!(null==n?void 0:n.length)&&!e(u.i).hasCustomDimensions(n)})),c=b((function(e){return e(l.a).hasScope(f.c)}));b((function(e){return e(u.i).getAvailableCustomDimensions()}));var p=Object(i.a)(o),h=Object(a.useRef)();if(Object(a.useEffect)((function(){if(o&&!1===p){var e=document.activeElement;e&&e.closest(".googlesitekit-km-selection-panel-metrics__metric-item")&&Object(m.a)(h.current,e)&&e.scrollIntoView()}}),[o,p]),!1===o)return null;var v=c?Object(r.__)("The metrics you selected require more data tracking. We will update your Analytics property after saving your selection.","google-site-kit"):Object(r.__)("The metrics you selected require more data tracking. You will be directed to update your Analytics property after saving your selection.","google-site-kit");return e.createElement("div",{className:"googlesitekit-km-selection-panel-notice",ref:h},e.createElement("p",null,v))}))}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return!(n.bottom<r.top||r.bottom<n.top||n.right<r.left||r.right<n.left)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e,t){var r=n(5),i=n.n(r),a=n(16),o=n.n(a),c=n(267),s=n(121),l=n(39),u=n(187),d=n(24),g=n(858);Object(c.a)(o()(i.a.mark((function n(){var r,a,o,c,f;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e._googlesitekitLegacyData.admin.resetSession){n.next=3;break}return n.next=3,Object(l.b)();case 3:(r=document.getElementById("js-googlesitekit-main-dashboard"))&&(a=r.dataset,o=a.setupModuleSlug,c=a.viewOnly,f=d.n,o||(f=c?d.m:d.l),Object(s.render)(t.createElement(u.a,{viewContext:f},t.createElement(g.a,{setupModuleSlug:o})),r));case 5:case"end":return n.stop()}}),n)}))))}.call(this,n(26),n(2))}],[[1015,1,0]]]);