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

106 lines
658 KiB
JavaScript
Raw Normal View History

2025-02-28 08:42: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,"e",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"H",(function(){return l})),n.d(t,"M",(function(){return s})),n.d(t,"O",(function(){return u})),n.d(t,"K",(function(){return d})),n.d(t,"L",(function(){return f})),n.d(t,"J",(function(){return g})),n.d(t,"I",(function(){return m})),n.d(t,"N",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return v})),n.d(t,"h",(function(){return b})),n.d(t,"j",(function(){return E})),n.d(t,"l",(function(){return _})),n.d(t,"m",(function(){return O})),n.d(t,"n",(function(){return y})),n.d(t,"o",(function(){return k})),n.d(t,"q",(function(){return j})),n.d(t,"s",(function(){return S})),n.d(t,"r",(function(){return w})),n.d(t,"t",(function(){return C})),n.d(t,"w",(function(){return A})),n.d(t,"u",(function(){return x})),n.d(t,"v",(function(){return N})),n.d(t,"x",(function(){return T})),n.d(t,"y",(function(){return D})),n.d(t,"A",(function(){return M})),n.d(t,"B",(function(){return R})),n.d(t,"C",(function(){return B})),n.d(t,"D",(function(){return I})),n.d(t,"k",(function(){return P})),n.d(t,"F",(function(){return F})),n.d(t,"z",(function(){return L})),n.d(t,"G",(function(){return z})),n.d(t,"E",(function(){return V})),n.d(t,"i",(function(){return W})),n.d(t,"p",(function(){return G})),n.d(t,"Q",(function(){return U})),n.d(t,"P",(function(){return H}));var r="core/user",i="connected_url_mismatch",a="__global",c="temporary_persist_permission_error",o="adblocker_active",l="googlesitekit_authenticate",s="googlesitekit_setup",u="googlesitekit_view_dashboard",d="googlesitekit_manage_options",f="googlesitekit_read_shared_module_data",g="googlesitekit_manage_module_sharing_options",m="googlesitekit_delegate_module_sharing_management",p="googlesitekit_update_plugins",h="kmAnalyticsAdSenseTopEarningContent",v="kmAnalyticsEngagedTrafficSource",b="kmAnalyticsLeastEngagingPages",E="kmAnalyticsNewVisitors",_="kmAnalyticsPopularAuthors",O="kmAnalyticsPopularContent",y="kmAnalyticsPopularProducts",k="kmAnalyticsReturningVisitors",j="kmAnalyticsTopCities",S="kmAnalyticsTopCitiesDrivingLeads",w="kmAnalyticsTopCitiesDrivingAddToCart",C="kmAnalyticsTopCitiesDrivingPurchases",A="kmAnalyticsTopDeviceDrivingPurchases",x="kmAnalyticsTopConvertingTrafficSource",N="kmAnalyticsTopCountries",T="kmAnalyticsTopPagesDrivingLeads",D="kmAnalyticsTopRecentTrendingPages",M="kmAnalyticsTopTrafficSource",R="kmAnalyticsTopTrafficSourceDrivingAddToCart",B="kmAnalyticsTopTrafficSourceDrivingLeads",I="kmAnalyticsTopTrafficSourceDrivingPurchases",P="kmAnalyticsPagesPerVisit",F="kmAnalyticsVisitLength",L="kmAnalyticsTopReturningVisitorPages",z="kmSearchConsolePopularKeywords",V="kmAnalyticsVisitsPerVisitor",W="kmAnalyticsMostEngagingPages",G="kmAnalyticsTopCategories",U=[h,v,b,E,_,O,y,k,G,j,S,w,C,A,x,N,D,M,R,P,F,L,V,W,G],H=[].concat(U,[z])},,function(e,t,n){"use strict";n.d(t,"r",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"s",(function(){return a})),n.d(t,"z",(function(){return c})),n.d(t,"o",(function(){return o})),n.d(t,"q",(function(){return l})),n.d(t,"g",(function(){return s})),n.d(t,"p",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"i",(function(){return f})),n.d(t,"k",(function(){return g})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"x",(function(){return v})),n.d(t,"w",(function(){return b})),n.d(t,"y",(function(){return E})),n.d(t,"u",(function(){return _})),n.d(t,"v",(function(){return O})),n.d(t,"f",(function(){return y})),n.d(t,"l",(function(){return k})),n.d(t,"e",(function(){return j})),n.d(t,"t",(function(){return S})),n.d(t,"c",(function(){return w})),n.d(t,"d",(function(){return C})),n.d(t,"b",(function(){return A}));var r="modules/analytics-4",i="a
/* translators: %s: number of days */
Object(y._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 T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!Object(r.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var n=new Date(e);return Object(r.isDate)(n)&&!isNaN(n)}function D(e){O()(Object(r.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");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("-")}function M(e){O()(T(e),k);var t=e.split("-"),n=E()(t,3),r=n[0],i=n[1],a=n[2];return new Date(r,i-1,a)}function R(e,t){return D(I(e,t*C))}function B(e){var t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function I(e,t){O()(T(e)||Object(r.isDate)(e)&&!isNaN(e),k);var n=T(e)?Date.parse(e):e.getTime();return new Date(n-1e3*t)}var P=n(96),F=n(81);function L(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function z(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var V=n(27),W=n.n(V),G=function(e){return Array.isArray(e)?W()(e).sort():e},U=n(88);function H(e,t){var n=function(e){return"0"===e||0===e};if(n(e)&&n(t))return 0;if(n(e)||Number.isNaN(e))return null;var r=(t-e)/e;return Number.isNaN(r)||!Number.isFinite(r)?null:r}var q=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},K=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(r.unescape)(t)}},function(e,t){e.exports=googlesitekit.components},,,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="core/site",i="primary",a="secondary"},,,,function(e,t,n){"use strict";var r=n(252);n.d(t,"i",(function(){return r.a}));var i=n(321);n.d(t,"f",(function(){return i.a}));var a=n(322);n.d(t,"h",(function(){return a.a}));var c=n(323);n.d(t,"j",(function(){return c.a}));var o=n(320);n.d(t,"g",(function(){return o.a}));var l=n(91),s=n.n(l);n.d(t,"b",(function(){return s.a})),n.d(t,"c",(function(){return l.DialogContent})),n.d(t,"d",(function(){return l.DialogFooter}));var u=n(102);n.d(t,"a",(function(){return u.a})),n.d(t,"e",(function(){return u.b})),n.d(t,"k",(function(){return u.c}))},function(e,t,n){"use strict";var r=n(0),i=n(60);t.a=function(){return Object(r.useContext)(i.b)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="core/modules",i="insufficient_module_dependencies"},,function(e,t,n){"use strict";(function(e){var r=n(20),i=n.n(r),a=n(25),c=n.n(a),o=n(11),l=n.n(o),s=n(1),u=n.n(s),d=n(147),f=n(0),g=n(2),m=n(127),p=n(128),h=n(129),v=n(71),b=n(76),E=Object(f.forwardRef)((function(t,n){var r,a=t["aria-label"],o=t.secondary,s=void 0!==o&&o,u=t.arrow,f=void 0!==u&&u,E=t.back,_=void 0!==E&&E,O=t.caps,y=void 0!==O&&O,k=t.children,j=t.className,S=void 0===j?"":j,w=t.danger,C=void 0!==w&&w,A=t.disabled,x=void 0!==A&&A,N=t.external,T=void 0!==N&&N,D=t.hideExternalIndicator,M=void 0!==D&&D,R=t.href,B=void 0===R?"":R,I=t.inverse,P=void 0!==I&&I,F=t.noFlex,L=void 0!==F&&F,z=t.onClick,V=t.small,W=void 0!==V&&V,G=t.standalone,U=void 0!==G&&G,H=t.linkButton,q=void 0!==H&&H,K=t.to,J=t.leadingIcon,Y=t.trailingIcon,$=c()(t,["aria-label","secondary","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inverse","noFlex","onClick","small","standalone","linkButton","to","leadingIcon","trailingIcon"]),X=B||K||!z?K?"ROUTER_LINK":T?"EXTERNAL_LINK":"LINK":x?"BUTTON_DISABLED":"BUTTON",Q="BUTTON"===X||"BUTTON_DISABLED"===X?"button":"ROUTER_LINK"===X?d.b:"a",Z=("EXTERNAL_LINK"===X&&(r=Object(g._x)("(opens in a new tab)","s
/* translators: %s: Error message */
Object(c.__)("Error: %s","google-site-kit"),n)),r&&Object(a.a)(r)&&(l=l+" "+Object(c.sprintf)(
/* translators: %s: Reconnect URL */
Object(c.__)('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(o.G)(l,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:i.a.string.isRequired,reconnectURL:i.a.string,noPrefix:i.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(4))},,,function(e,t,n){"use strict";var r=n(0);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:"M0 0h24v24H0z",fill:"none"}),c=r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"});t.a=function SvgWarning(e){return r.createElement("svg",i({fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e),a,c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(40);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(0),i=Object(r.createContext)(""),a=(i.Consumer,i.Provider);t.b=i},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return E}));var r=n(7),i=n.n(r),a=n(0);function c(){return(c=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 o=a.createElement("path",{d:"M10 15.27L16.18 19l-1.64-7.03L20 7.24l-7.19-.61L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19 10 15.27z"});var l=function SvgInfoIcon(e){return a.createElement("svg",c({viewBox:"0 0 20 20",fill:"currentColor"},e),o)};function s(){return(s=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 u=a.createElement("path",{d:"M0 4h2v7H0zm0-4h2v2H0z",fill:"currentColor",fillRule:"evenodd"});var d,f=function SvgSuggestionIcon(e){return a.createElement("svg",s({viewBox:"0 0 2 11"},e),u)},g=n(187),m=n(74),p="warning",h="info",v="suggestion",b=(d={},i()(d,h,l),i()(d,p,g.a),i()(d,v,f),d),E=function(e){return b[e]||m.a}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"h",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return E})),n.d(t,"l",(function(){return _})),n.d(t,"k",(function(){return O})),n.d(t,"j",(function(){return y}));var r=n(12),i=n.n(r),a=n(14),c=n(8),o=n(9);n.d(t,"a",(function(){return o.y}));var l=n(156),s=n(247),u=n(101),d=n(309);function f(e){return e===c.a||Object(o.y)(e)}function g(e){return"string"==typeof e&&/^\d+$/.test(e)}function m(e){return e===c.s||g(e)}function p(e){return"string"==typeof e&&/^\d+$/.test(e)}function h(e){return e===c.z||p(e)}function v(e){return"string"==typeof e&&e.trim().length>0}function b(e){return"string"==typeof e&&/^G-[a-zA-Z0-9]+$/.test(e)}function E(e){return"string"==typeof e&&/^(G|GT|AW)-[a-zA-Z0-9]+$/.test(e)}function _(e){i()(Object(a.isPlainObject)(e),"options for Analytics 4 report must be an object."),i()(Object(l.a)(e),"Either date range or start/end dates must be provided for Analytics 4 report.");var t=Object(s.a)(e),n=t.metrics,r=t.dimensions,c=t.dimensionFilters,o=t.metricFilters,d=t.orderby;i()(n.length,"Requests must specify at least one metric for an Analytics 4 report."),i()(Object(u.d)(n),'metrics for an Analytics 4 report must be either a string, an array of strings, an object, an array of objects, or a mix of strings and objects. Objects must have a "name" property. Metric names must match the expression ^[a-zA-Z0-9_]
/* 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,h(h({},c),{},{unit:"second"})):"",i?w(i,h(h({},c),{},{unit:"minute"})):"",r?w(r,h(h({},c),{},{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),c=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?c:"").trim()}}},O=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},y=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(O(e),e%10==0?{}:t)):1e4<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(O(e))):1e3<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(O(e),e%10==0?{}:t)):w(e,{signDisplay:"never",maximumFractionDigits:1})};function k(e){var t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:Object(d.isPlainObject)(e)&&(t=h({},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,c()(e)),e=0);var n=k(t),r=n.style,i=void 0===r?"metric":r;return"metric"===i?y(e):"duration"===i?v(e,n):"durationISO"===i?b(e):w(e,n)}var S=g()(console.warn),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?A():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(c()(e)," )"),t.message)}for(var o={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,f=Object.entries(a);d<f.length;d++){var g=i()(f[d],2),m=g[0],p=g[1];o[m]&&p===o[m]||(l.includes(m)||(s[m]=p))}try{return new Intl.NumberFormat(r,s).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?A():n,i=t.style,a=void 0===i?"long":i,c=t.type,o=void 0===c?"conjunction":c;if(Intl.ListFormat){var l=new Intl.ListFormat(r,{style:a,type:o});return l.format(e)}
/* translators: used between list items, there is a space after the comma. */var s=Object(m.__)(", ","google-site-kit");return e.join(s)},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(28))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(150),i=n.n(r)()(e)}).call(this,n(28))},function(e,t,n){"use strict";n.r(t),n.d(t,"AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY",(function(){return r})),n.d(t,"AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY",(function(){return i})),n.d(t,"AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION",(function(){return a})),n.d(t,"AREA_MAIN_DASHBOARD_CONTENT_PRIMARY",(function(){return c})),n.d(t,"AREA_MAIN_DASHBOARD_SPEED_PRIMARY",(function(){return o})),n.d(t,"AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY",(function(){return l})),n.d(t,"AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY",(function(){return s})),n.d(t,"AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY",(function(){return u})),n.d(t,"AREA_ENTITY_DASHBOARD_SPEED_PRIMARY",(function(){return d})),n.d(t,"AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY",(function(){return f}));var r="mainDashboardKeyMetricsPrimary",i="mainDashboardTrafficPrimary",a="mainDashboardTrafficAudienceSegmentation",c="mainDashboardContentPrimary",o="mainDashboardSpeedPrimary",l="mainDashboardMonetizationPrimary",s="entityDashboardTrafficPrimary",u="entityDashboardContentPrimary",d="entityDashboardSpeedPrimary",f="entityDashboardMonetizationPrimary";t.default={AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:r,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:i,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:c,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:o,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:l,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:s,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:u,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:d,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:f}},function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),a=n(11),c=n.n(a);function ChangeArrow(t){var n=t.direction,r=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:c()("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(4))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(12),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";n.d(t,"a",(function(){return c}));var r=n(0),i=n(18),a=n(9);function c(e,t){var n=Object(i.a)(),c=null!=t?t:"".concat(n,"_").concat(e);return{view:Object(r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.J.apply(void 0,[c,"view_notification"].concat(t))}),[c]),confirm:Object(r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.J.apply(void 0,[c,"confirm_notification"].concat(t))}),[c]),dismiss:Object(r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.J.apply(void 0,[c,"dismiss_notification"].concat(t))}),[c]),clickLearnMore:Object(r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.J.apply(void 0,[c,"click_learn_more_link"].concat(t))}),[c])}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){retu
/* translators: %1$s: Error message from Google API. */
Object(c.__)("%1$s%2$s Please try again.","google-site-kit"),m,m.endsWith(".")?"":".")),e.createElement(a.Fragment,null,b&&e.createElement("div",{className:"googlesitekit-error-notice__icon"},e.createElement(b,{width:"24",height:"24"})),e.createElement(u.a,{message:m,reconnectURL:null===(n=r.data)||void 0===n?void 0:n.reconnectURL,noPrefix:h}),y&&e.createElement(l.Button,{className:"googlesitekit-error-notice__retry-button",onClick:O},Object(c.__)("Retry","google-site-kit")))}ErrorNotice.propTypes={error:i.a.shape({message:i.a.string}),hasButton:i.a.bool,storeName:i.a.string,message:i.a.string,noPrefix:i.a.bool,skipRetryMessage:i.a.bool,Icon:i.a.elementType}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),a=n(11),c=n.n(a),o=n(211),l=n(38),s=n(2),u=n(10),d=n(58);function ModalDialog(t){var n=t.className,r=void 0===n?"":n,i=t.dialogActive,a=void 0!==i&&i,f=t.handleDialog,g=void 0===f?null:f,m=t.onOpen,p=void 0===m?null:m,h=t.onClose,v=void 0===h?null:h,b=t.title,E=void 0===b?null:b,_=t.provides,O=t.handleConfirm,y=t.subtitle,k=t.confirmButton,j=void 0===k?null:k,S=t.dependentModules,w=t.danger,C=void 0!==w&&w,A=t.inProgress,x=void 0!==A&&A,N=t.small,T=void 0!==N&&N,D=t.medium,M=void 0!==D&&D,R=t.buttonLink,B=void 0===R?null:R,I=Object(o.a)(ModalDialog),P="googlesitekit-dialog-description-".concat(I),F=!(!_||!_.length);return e.createElement(u.Dialog,{open:a,onOpen:p,onClose:v,"aria-describedby":F?P:void 0,tabIndex:"-1",className:c()(r,{"googlesitekit-dialog-sm":T,"googlesitekit-dialog-md":M})},e.createElement(u.DialogTitle,null,C&&e.createElement(d.a,{width:28,height:28}),E),y?e.createElement("p",{className:"mdc-dialog__lead"},y):[],e.createElement(u.DialogContent,null,F&&e.createElement("section",{id:P,className:"mdc-dialog__provides"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},_.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),S&&e.createElement("p",{className:"mdc-dialog__dependencies"},Object(l.a)(Object(s.sprintf)(
/* translators: %s is replaced with the dependent modules. */
Object(s.__)("<strong>Note:</strong> %s","google-site-kit"),S),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",tertiary:!0,onClick:g,disabled:x},Object(s.__)("Cancel","google-site-kit")),B?e.createElement(u.Button,{href:B,onClick:O,target:"_blank",danger:C},j):e.createElement(u.SpinnerButton,{onClick:O,danger:C,disabled:x,isSaving:x},j||Object(s.__)("Disconnect","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:i.a.string,dialogActive:i.a.bool,handleDialog:i.a.func,handleConfirm:i.a.func.isRequired,onOpen:i.a.func,onClose:i.a.func,title:i.a.string,confirmButton:i.a.string,danger:i.a.bool,small:i.a.bool,medium:i.a.bool,buttonLink:i.a.string},t.a=ModalDialog}).call(this,n(4))},,function(e,t,n){"use strict";var r=n(328),i=n(316);n.d(t,"b",(function(){return i.a}));var a=n(317);n.d(t,"c",(function(){return a.a}));var c=n(318);n.d(t,"d",(function(){return c.a}));var o=n(319);n.d(t,"a",(function(){return o.a})),t.e=r.a},function(e,t,n){"use strict";var r=n(0),i=n(39),a=Object(r.createContext)(i.a);t.a=a},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(389),i=function(e,t,n){Object(r.a)((function(n){return e.includes(n.keyCode)&&t.current.contains(n.target)}),n)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return h}));var r=n(7),i=n.n(r),a=n(20),c=n.n(a),o=n(15),l=n.n(o),s=n(25),u=n.n(s),d=n(225),f=n(1),g=n.n(f),m=n(0);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 h(t){function WithIntersectionObserverComponent(n){var r=n.onInView,i=u()(n,["onInView"]),a=Object(m.useRef)(),o=Object(d.a)(a,{root:null,threshold:.45}),s=Object(m.useState)(!1),f=l()(s,2),g=f[0],p=f[1],h=!!(null==o?void 0:o.isIntersecting)&&!!(null==o?void 0:o.intersectionRatio);return Object(m.useEffect)((function(){o&&h&&!g&&(r(),p(!0))}),[g,h,o,r]),e.createElement(t,c()({ref:a},i))}return WithIntersectionObserverComponent.displayName="WithIntersectionObserverComponent",(t.displayName||t.name)&&(WithIntersectionObserverComponent.displayName+="(".concat(t.displayName||t.name,")")),WithIntersectionObserverComponent.propTypes=function(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){i()(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))}))}return e}({onInView:g.a.func.isRequired},t.propTypes),WithIntersectionObserverComponent}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Dismiss}));var r=n(5),i=n.n(r),a=n(7),c=n.n(a),o=n(16),l=n.n(o),s=n(1),u=n.n(s),d=n(2),f=n(3),g=n(89),m=n(45),p=n(10);function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dismiss(t){var n=t.id,r=t.primary,a=void 0===r||r,c=t.dismissLabel,o=void 0===c?Object(d.__)("OK, Got it!","google-site-kit"):c,s=t.dismissExpires,u=void 0===s?0:s,h=t.disabled,b=t.onDismiss,E=void 0===b?function(){}:b,_=t.gaTrackingEventArgs,O=t.dismissOptions,y=Object(g.a)(n,null==_?void 0:_.category),k=Object(f.useDispatch)(m.a).dismissNotification,j=function(){var e=l()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null==E?
/* translators: %s: source link */
Object(l.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(s.a,{key:"link",href:r,external:a})}))}SourceLink.propTypes={name:i.a.string,href:i.a.string,className:i.a.string,external:i.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportErrorActions}));var r=n(7),i=n.n(r),a=n(1),c=n.n(a),o=n(0),l=n(38),s=n(2),u=n(3),d=n(10),f=n(13),g=n(19),m=n(35),p=n(34),h=n(21);function v(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?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ReportErrorActions(t){var n=t.moduleSlug,r=t.error,i=t.GetHelpLink,a=t.hideGetHelpLink,c=t.buttonVariant,v=t.onRetry,E=t.onRequestAccess,_=t.getHelpClassName,O=t.RequestAccessButton,y=t.RetryButton,k=Object(p.a)(),j=Object(u.useSelect)((function(e){return e(g.a).getModuleStoreName(n)})),S=Object(u.useSelect)((function(e){var t;return"function"==typeof(null===(t=e(j))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(j).getServiceEntityAccessURL():null})),w=Array.isArray(r)?r:[r],C=Object(u.useSelect)((function(e){return w.map((function(t){var n,r=null===(n=e(j))||void 0===n?void 0:n.getSelectorDataForError(t);return b(b({},t),{},{selectorData:r})}))})),A=null==C?void 0:C.filter((function(e){return Object(m.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),x=!!A.length,N=Object(u.useSelect)((function(e){var t=b({},x?A[0]:w[0]);return Object(m.e)(t)&&(t.code="".concat(n,"_insufficient_permissions")),e(f.c).getErrorTroubleshootingLinkURL(t)})),T=Object(u.useDispatch)(),D=w.some((function(e){return Object(m.e)(e)})),M=Object(o.useCallback)((function(){A.forEach((function(e){var t=e.selectorData;T(t.storeName).invalidateResolution(t.name,t.args)})),null==v||v()}),[T,A,v]),R=S&&D&&!k;return e.createElement("div",{className:"googlesitekit-report-error-actions"},R&&("function"==typeof O?e.createElement(O,{requestAccessURL:S}):e.createElement(d.Button,{onClick:E,href:S,target:"_blank",danger:"danger"===c,tertiary:"tertiary"===c},Object(s.__)("Request access","google-site-kit"))),x&&e.createElement(o.Fragment,null,"function"==typeof y?e.createElement(y,{handleRetry:M}):e.createElement(d.Button,{onClick:M,danger:"danger"===c,tertiary:"tertiary"===c},Object(s.__)("Retry","google-site-kit")),!a&&e.createElement("span",{className:"googlesitekit-error-retry-text"},Object(l.a)(Object(s.__)("Retry didnt work? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(h.a,{href:N,external:!0,hideExternalIndicator:!0},Object(s.__)("Get help","google-site-kit"))}))),!x&&!a&&e.createElement("div",{className:_},"function"==typeof i?e.createElement(i,{linkURL:N}):e.createElement(h.a,{href:N,external:!0,hideExternalIndicator:!0},Object(s.__)("Get help","google-site-kit"))))}ReportErrorActions.propTypes={moduleSlug:c.a.string.isRequired,error:c.a.oneOfType([c.a.arrayOf(c.a.object),c.a.object]).isRequired,GetHelpLink:c.a.elementType,hideGetHelpLink:c.a.bool,buttonVariant:c.a.string,onRetry:c.a.func,onRequestAccess:c.a.func,getHelpClassName:c.a.string,RequestAccessButton:c.a.elementType,RetryButton:c.a.elementType}}).call(this,n(4))},function(e,t,n){"use strict";var r=n(0);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:"M5.825 22l2.325-7.6L2 10h7.6L12 2l2.4 8H22l-6.15 4.4 2.325 7.6L12 17.3 5.825 22z",fill:"currentColor"});t.a=function SvgStarFill(e){retu
/* 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(4))},function(e,t,n){"use strict";(function(e){var r=n(5),i=n.n(r),a=n(16),c=n.n(a),o=n(1),l=n.n(o),s=n(0),u=n(21),d=n(9),f=n(18);function HelpMenuLink(t){var n=t.children,r=t.href,a=t.gaEventLabel,o=Object(f.a)(),l=Object(s.useCallback)(c()(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.J)("".concat(o,"_headerbar_helpmenu"),"click_outgoing_link",a);case 3:case"end":return e.stop()}}),e)}))),[a,o]);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:l},n))}HelpMenuLink.propTypes={children:l.a.node.isRequired,href:l.a.string.isRequired,gaEventLabel:l.a.string},t.a=HelpMenuLink}).call(this,n(4))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(2),i="audience-segmentation-info-notice-ui",a="audience-segmentation-info-notice",c=[{slug:"new-visitors",content:Object(r.__)("The higher the portion of new visitors you have, the more your audience is growing. Looking at what content brings them to your site may give you insights on how to reach even more people.","google-site-kit")},{slug:"compare-metrics",content:Object(r.__)("Select up to three visitor groups to display on the dashboard and easily compare metrics between them.","google-site-kit")},{slug:"custom-audiences",content:Object(r.__)("Configure your own custom audiences in Analytics to gain deeper insights into visitor behavior, for example consider creating an “Existing customers” or “Subscribers” segment, depending on what goals you have for your site.","google-site-kit")},{slug:"purchasers",content:Object(r.__)("Select the Purchasers visitor group to gain insights into which visitors bring the most revenue to your site.","google-site-kit")},{slug:"returning-visitors",content:Object(r.__)("The more returning visitors your site has, the stronger and more loyal an audience youre building. Check which content brings people back to your site - it might help you create a strategy to build a community.","google-site-kit")},{slug:"compare-new-returning",content:Object(r.__)("Compare the ratio of “new” to “returning” visitors this can give you insights on whether you have more people stopping by as a one-off, or more loyal visitors.","google-site-kit")},{slug:"compare-cities",content:Object(r.__)("Check the cities which bring you more new vs more returning visitors there might be new audiences you could engage with in locations you hadnt thought about.","google-site-kit")}]},,function(e,t,n){"use strict";(function(e){var r=n(11),i=n.n(r),a=n(1),c=n.n(a),o=n(2),l=n(3),s=n(199),u=n(213),d=n(63),f=n(6),g=n(10),m=n(0),p=Object(m.forwardRef)((function(t,n){var r=t.className,a=t.children,c=t.type,m=t.dismiss,p=void 0===m?"":m,h=t.dismissCallback,v=t.dismissLabel,b=void 0===v?Object(o.__)("OK, Got it!","google-site-kit"):v,E=t.Icon,_=void 0===E?Object(d.d)(c):E,O=t.OuterCTA,y=Object(l.useDispatch)(f.a).dismissItem,k=Object(l.useSelect)((function(e){return p?e(f.a).isItemDismissed(p):void 0}));if(p&&k)return null;var j=a?u.a:s.a;return e.createElement("div",{ref:n,className:i()(r,"googlesitekit-settings-notice","googlesitekit-settings-notice--".concat(c),{"googlesitekit-settings-notice--single-row":!a,"googlesitekit-settings-notice--multi-row":a})},e.createElement("div",{className:"googlesitekit-settings-notice__icon"},e.createElement(_,{width:"20",height:"20"})),e.createElement("div",
/* 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"),o)),s&&s.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"),s.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";(function(e){n.d(t,"a",(function(){return ReportError}));var r=n(7),i=n.n(r),a=n(1),c=n.n(a),o=n(14),l=n(0),s=n(2),u=n(3),d=n(19),f=n(35),g=n(174),m=n(83),p=n(55),h=n(92),v=n(135),b=n(34);function E(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ReportError(t){var n,r=t.moduleSlug,i=t.error,a=Object(b.a)(),c=Object(u.useSelect)((function(e){return e(d.a).getModule(r)})),E=Array.isArray(i)?i:[i],O=function(e){return Object(f.e)(e)?a?(n=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Access lost to %s","google-site-kit"),null==c?void 0:c.name),Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("The administrator sharing this module with you has lost access to the %s service, so you wont be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),null==c?void 0:c.name)):(n=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Insufficient permissions in %s","google-site-kit"),null==c?void 0:c.name),Object(g.a)(e.message,c)):Object(f.b)(e)},y=Object(o.uniqWith)(E.map((function(e){var t;return _(_({},e),{},{message:O(e),reconnectURL:null===(t=e.data)||void 0===t?void 0:t.reconnectURL})})),(function(e,t){return e.message===t.message&&e.reconnectURL===t.reconnectURL})),k=E.some((function(e){return Object(f.e)(e)}));k||1!==y.length?!k&&y.length>1&&(n=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Data errors in %s","google-site-kit"),null==c?void 0:c.name)):n=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Data error in %s","google-site-kit"),null==c?void 0:c.name);var j=e.createElement(l.Fragment,null,y.map((function(t){var n,r=null==i||null===(n=i.data)||void 0===n?void 0:n.reconnectURL;return r?e.createElement(p.a,{key:t.message,message:t.message,reconnectURL:r}):e.createElement("p",{key:t.message},m.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:c.a.string.isRequired,error:c.a.oneOfType([c.a.arrayOf(c.a.object),c.a.object]).isRequired}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GenericErrorHandlerActions}));var r=n(1),i=n.n(r),a=n(2),c=n(21),o=n(194);function GenericErrorHandlerActions(t){var n=t.message,r=t.componentStack;return e.createElement("div",{className:"googlesitekit-generic-error-handler-actions"},e.createElement(o.a,{message:n,componentStack:r}),e.createElement(c.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(a.__)("Report this problem","google-site-kit")))}GenericErrorHandlerActions.propTypes={message:i.a.string,componentStack:i.a.string}}).call(this,n(4))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(22),i=function(e){return r.f.includes(e)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return LoadingWrapper}));var r=n(7),i=n.n(r),a=n(25),c=n.n(a),o=n(1),l=n.n(o),s=n(42);function u(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 LoadingWrapper(t){var n=t.loading,r=t.children,i=c()(t,["loading","children"]);return n?e.createElement(s.a,i):r}LoadingWrapper.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({loading:l.a.bool,children:l.a.node},s.a.propTypes)}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var r=n(1),i=n.n(r),a=n(2),c=n(3),o=n(19),l=n(92);function ReportZero(t){var n=t.moduleSlug,r=Object(c.useSelect)((function(e){return e(o.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(4))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AudienceTileLoading}));var r=n(42);function AudienceTileLoading(){return e.createElement("div",{className:"googlesitekit-audience-segmentation-tile-loading"},e.createElement(r.a,{width:"100%",height:"20px"}),e.createElement(r.a,{width:"100%",height:"52px"}),e.createElement(r.a,{width:"100%",height:"52px"}),e.createElement(r.a,{width:"100%",height:"52px"}),e.createElement(r.a,{width:"100%",height:"52px"}),e.createElement(r.a,{width:"100%",height:"52px"}),e.createElement(r.a,{width:"100%",height:"52px"}))}}).call(this,n(4))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ChangeBadge}));var r=n(1),i=n.n(r),a=n(11),c=n.n(a),o=n(9);function ChangeBadge(t){var n=t.previousValue,r=t.currentValue,i=t.isAbsolute?r-n:Object(o.h)(n,r),a=i<0,l=0===i;return null===i?null:e.createElement("div",{className:c()("googlesitekit-change-badge",{"googlesitekit-change-badge--negative":a,"googlesitekit-change-badge--zero":l})},Object(o.C)(i,{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:1}))}ChangeBadge.propTypes={isAbsolute:i.a.bool,previousValue:i.a.number.isRequired,currentValue:i.a.number.isRequired}}).call(this,n(4))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(5),i=n.n(r),a=n(16),c=n.n(a),o=n(0),l=n(3),s=n(13),u=n(6),d=n(19),f=n(32),g=n(36),m=n(37),p=n(18);function h(e){var t=Object(p.a)(),n=Object(l.useSelect)((function(t){return t(d.a).getModule(e)})),r=Object(l.useSelect)((function(e){return e(u.a).hasCapability(u.K)})),a=Object(l.useDispatch)(d.a).activateModule,h=Object(l.useDispatch)(f.a).navigateTo,v=Object(l.useDispatch)(s.c).setInternalServerError,b=Object(o.useCallback)(c()(i.a.mark((function n(){var r,c,o;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a(e);case 2:if(r=n.sent,c=r.error,o=r.response,c){n.next=13;break}return n.next=8,Object(m.b)("".concat(t,"_widget-activation-cta"),"activate_module",e);case 8:return n.next=10,Object(g.f)("module_setup",e,{ttl:300});case 10:h(o.moduleReauthURL),n.next=14;break;case 13:v({id:"".concat(e,"-setup-error"),description:c.message});case 14:case"end":return n.stop()}}),n)}))),[a,e,h,v,t]);return(null==n?void 0:n.name)&&r?b:null}},function(e,t,n){"use strict";var r=n(0);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:"M0 0h2v7H0zm0 10h2v2H0z",fill:"currentColor",fillRule:"evenodd"});t.a=function SvgWarningIcon(e){return r.createElement("svg",i({viewBox:"0 0 2 12"},e),a)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(20),i=n.n(r),a=n(25),c=n.n(a),o=n(1),l=n.n(o),s=n(3),u=n(19);function ModuleIcon(t){var n=t.slug,r=t.size,a=c()(t,["slug","size"]),o=Object(s.useSelect)((function(e){return e(u.a).getModuleIcon(n)}));return o?e.createElement(o,i()({width:r,height:r},a)):null}ModuleIcon.propTypes={slug:l.a.string.isRequired,size:l.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(4))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Notification}));var r=n(15),i=n.n(r),a=n(1),c=n.n(a),o=n(0),l=n(281),s=n(165),u=n(89);function Notification(t){var n=t.id,r=t.className,a=t.gaTrackingEventArgs,c=t.children,d=t.onView,f=Object(o.useRef)(),g=Object(s.a)(n),m=Object(u.a)(n,null==a?void 0:a.category),p=Object(o.useState)(!1),h=i()(p,2),v=h[0],b=h[1];return Object(o.useEffect)((function(){!v&&g&&(m.view(null==a?void 0:a.label,null==a?void 0:a.value),null==d||d(),b(!0))}),[g,m,v,a,d]),e.createElement("section",{id:n,ref:f,className:r},c,!g&&e.createElement(l.a,{id:n,observeRef:f,threshold:.5}))}Notification.propTypes={id:c.a.string,className:c.a.string,gaTrackingEventArgs:c.a.sha
/* translators: Account info text. 1: User's (full) name 2: User's email address. */
Object(f.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),c,n)),c&&!n&&(U=Object(f.sprintf)(
/* translators: Account info text. 1: User's (full) name. */
Object(f.__)("Google Account for %1$s","google-site-kit"),c)),!c&&n&&(U=Object(f.sprintf)(
/* translators: Account info text. 1: User's email address. */
Object(f.__)("Google Account (Email: %1$s)","google-site-kit"),n)),r.createElement(d.Fragment,null,r.createElement("div",{ref:z,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},r.createElement(p.Button,{disabled:T,ref:V,className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--tablet googlesitekit-border-radius-round--phone googlesitekit-border-radius-round googlesitekit-button-icon",text:!0,onClick:H,icon:!!i&&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(f.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":F,"aria-controls":"user-menu","aria-label":T?void 0:Object(f.__)("Account","google-site-kit"),tooltip:!0,tooltipEnterDelayInMS:500,customizedTooltip:T?null:r.createElement("span",{"aria-label":U},r.createElement("strong",null,Object(f.__)("Google Account","google-site-kit")),r.createElement("br",null),r.createElement("br",null),c,c&&r.createElement("br",null),n)}),r.createElement(p.Menu,{className:"googlesitekit-user-menu",menuOpen:F,onSelected:K,id:"user-menu"},r.createElement("li",null,r.createElement(_.a,null)),!!t&&r.createElement("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem"},r.createElement(O.a,{icon:r.createElement(k.a,{width:"22"}),label:Object(f.__)("Manage Sites","google-site-kit")})),r.createElement("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem"},r.createElement(O.a,{icon:r.createElement(y.a,{width:"22"}),label:Object(f.__)("Disconnect","google-site-kit")})))),r.createElement(E.a,null,r.createElement(h.a,{dialogActive:R,handleConfirm:J,handleDialog:q,title:Object(f.__)("Disconnect","google-site-kit"),subtitle:Object(f.__)("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(f.__)("Disconnect","google-site-kit"),danger:!0,small:!0})))):null}}).call(this,n(28),n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Details}));var r=n(2),i=n(3),a=n(6);function Details(){var t=Object(i.useSelect)((function(e){return e(a.a).getPicture()})),n=Object(i.useSelect)((function(e){return e(a.a).getFullName()})),c=Object(i.useSelect)((function(e){return e(a.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")},c)))}}).call(this,n(4))},function(e,t,n){"use strict";var r=n(0);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:"currentColor"});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(0);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:"currentColor"});t.a=function SvgMa
/* translators: %s: module owner Google Account email address */
Object(c.__)("Shared by <strong>%s</strong>","google-site-kit"),d.login),{strong:e.createElement("strong",{title:d.login})})))}Service.propTypes={module:i.a.string.isRequired}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Tracking}));var r=n(38),i=n(2),a=n(221),c=n(18);function Tracking(){var t=Object(c.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(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SubtleNotifications}));var r=n(172),i=n(45);function SubtleNotifications(){return e.createElement(r.a,{areaSlug:i.b.BANNERS_BELOW_NAV})}}).call(this,n(4))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(5),i=n.n(r),a=n(16),c=n.n(a),o=n(0),l=n(3),s=n(13),u=n(18),d=n(36),f=n(9),g=function(){var e=Object(u.a)(),t=Object(l.useSelect)((function(e){return e(s.c).isUsingProxy()})),n=Object(l.useSelect)((function(e){return e(s.c).getSetupErrorMessage()}));Object(o.useEffect)((function(){n||void 0===t||function(){var n=c()(i.a.mark((function n(){var r,a;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(d.d)("start_user_setup");case 2:return r=n.sent,n.next=5,Object(d.d)("start_site_setup");case 5:if(a=n.sent,!r.cacheHit){n.next=10;break}return n.next=9,Object(d.c)("start_user_setup");case 9:Object(f.J)("".concat(e,"_setup"),"complete_user_setup",t?"proxy":"custom-oauth");case 10:if(!a.cacheHit){n.next=14;break}return n.next=13,Object(d.c)("start_site_setup");case 13:Object(f.J)("".concat(e,"_setup"),"complete_site_setup",t?"proxy":"custom-oauth");case 14:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}()()}),[e,t,n])}},function(e,t,n){"use strict";var r=n(0);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(1),i=n.n(r),a=n(11),c=n.n(a),o=n(0),l=n(2),s=n(10),u=n(75),d=n(21);function NewBadge(t){var n=t.tooltipTitle,r=t.learnMoreLink,i=t.forceOpen,a=t.hasLeftSpacing,f=t.hasNoSpacing,g=t.onLearnMoreClick,m=void 0===g?function(){}:g,p=e.createElement(u.a,{className:c()("googlesitekit-new-badge",{"googlesitekit-new-badge--has-no-spacing":f}),label:Object(l.__)("New","google-site-kit"),hasLeftSpacing:a});return n?e.createElement(s.Tooltip,{tooltipClassName:"googlesitekit-new-badge__tooltip",title:e.createElement(o.Fragment,null,n,e.createElement("br",null),e.createElement(d.a,{href:r,onClick:m,external:!0,hideExternalIndicator:!0},Object(l.__)("Learn more","google-site-kit"))),placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,interactive:!0,open:i},p):p}NewBadge.propTypes={tooltipTitle:i.a.string,learnMoreLink:i.a.string,forceOpen:i.a.bool,onLearnMoreClick:i.a.func,hasLeftSpacing:i.a.bool,hasNoSpacing:i.a.bool},t.a=NewBadge}).call(this,n(4))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var r=n(11),i=n.n(r),a=n(1),c=n.n(a),o=n(0),l=n(10),s=n(143),u=n(71),d=n(58),f={SUCCESS:"success",WARNING:"warning"},g=Object(o.forwardRef)((function(t,n){var r=t.title,a=t.description,c=t.Icon,o=t.ctaLink,g=t.ctaLabel,m=t.className,p=t.onCTAClick,h=t.isCTALinkExternal,v=t.dismissLabel,b=t.onDismiss,E=t.variant,_=void 0===E?f.SUCCESS:E,O=t.hideIcon,y=voi
/* translators: %s: module names. */
Object(u._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",b.length,"google-site-kit"),b.join(Object(u.__)(" and ","google-site-kit")))))}MetricItem.propTypes={slug:l.a.string.isRequired,title:l.a.string.isRequired,description:l.a.string.isRequired,isNewlyDetected:l.a.bool,savedItemSlugs:l.a.array}}).call(this,n(4))},,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanelHeader}));var r=n(1),i=n.n(r),a=n(21),c=n(108);function SelectionPanelHeader(t){var n=t.children,r=t.title,i=t.onCloseClick;return e.createElement("header",{className:"googlesitekit-selection-panel-header"},e.createElement("div",{className:"googlesitekit-selection-panel-header__row"},e.createElement("h3",null,r),e.createElement(a.a,{className:"googlesitekit-selection-panel-header__close",onClick:i,linkButton:!0},e.createElement(c.a,{width:"15",height:"15"}))),n)}SelectionPanelHeader.propTypes={children:i.a.node,title:i.a.string,onCloseClick:i.a.func}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanelItem}));var r=n(1),i=n.n(r),a=n(2),c=n(330),o=n(75);function SelectionPanelItem(t){var n=t.children,r=t.id,i=t.slug,l=t.title,s=t.description,u=t.isItemSelected,d=t.isItemDisabled,f=t.onCheckboxChange,g=t.subtitle,m=t.suffix,p=t.badge,h=t.isNewlyDetected;return e.createElement("div",{className:"googlesitekit-selection-panel-item"},e.createElement(c.a,{badge:p,checked:u,disabled:d,id:r,onChange:f,title:l,value:i},g&&e.createElement("span",{className:"googlesitekit-selection-panel-item__subtitle"},g),s,n),h&&e.createElement(o.a,{label:Object(a.__)("New","google-site-kit")}),m&&e.createElement("span",{className:"googlesitekit-selection-panel-item__suffix"},m))}SelectionPanelItem.propTypes={children:i.a.node,id:i.a.string,slug:i.a.string,title:i.a.string,description:i.a.string,isItemSelected:i.a.bool,isItemDisabled:i.a.bool,onCheckboxChange:i.a.func,subtitle:i.a.string,suffix:i.a.node,badge:i.a.node,isNewlyDetected:i.a.bool}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanelItems}));var r=n(20),i=n.n(r),a=n(1),c=n.n(a),o=n(0),l=n(2);function SelectionPanelItems(t){var n=t.currentSelectionTitle,r=void 0===n?Object(l.__)("Current selection","google-site-kit"):n,a=t.availableItemsTitle,c=void 0===a?Object(l.__)("Additional items","google-site-kit"):a,s=t.savedItemSlugs,u=void 0===s?[]:s,d=t.availableSavedItems,f=void 0===d?{}:d,g=t.availableUnsavedItems,m=void 0===g?{}:g,p=t.ItemComponent,h=t.notice,v=function(t){return Object.keys(t).map((function(n){return e.createElement(p,i()({key:n,slug:n,savedItemSlugs:u},t[n]))}))},b=Object.keys(m).length;return e.createElement("div",{className:"googlesitekit-selection-panel-items"},0!==u.length&&e.createElement(o.Fragment,null,e.createElement("p",{className:"googlesitekit-selection-panel-items__subheading"},r),e.createElement("div",{className:"googlesitekit-selection-panel-items__subsection"},v(f)),b>0&&e.createElement("p",{className:"googlesitekit-selection-panel-items__subheading"},c)),b>0&&e.createElement("div",{className:"googlesitekit-selection-panel-items__subsection"},v(m)),h)}SelectionPanelItems.propTypes={currentSelectionTitle:c.a.string,availableItemsTitle:c.a.string,savedItemSlugs:c.a.array,availableSavedItems:c.a.object,availableUnsavedItems:c.a.object,ItemComponent:c.a.elementType,notice:c.a.node}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanelFooter}));var r=n(5),i=n.n(r),a=n(16),c=n.n(a),o=n(15),l=n.n(o),s=n(14),u=n(1),d=n.n(u),f=n(0),g=n(38),m=n(2),p=n(3),h=n(10),v=n(109),b=n(9),E=n(8),_=n(42),O=n(55);function SelectionPanelFooter(t){var n=t.savedItemSlugs,r=void 0===n?[]:n,a=t.selectedItemSlugs,o=void 0===a?[]:a,u=t.saveSettings,d=void 0===u?function(){}:u,y=t.saveError,k=t.itemLimitError,j=t.minSelectedItemCount,S=void 0===j?0:j,w=t.maxSelectedItemCount,C=void 0===w?0:w,A=t.isBusy,x=t.onSaveSuccess,N=void 0===x?function(){}:x,T=t.onCancel,D=void 0===T?function(){}:T,M=t.isOpen,R=t.
/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */
Object(m.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),Z,C),{MaxCount:e.createElement("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})}));return e.createElement("footer",{className:"googlesitekit-selection-panel-footer"},y&&e.createElement(v.a,{error:y}),e.createElement("div",{className:"googlesitekit-selection-panel-footer__content"},H&&k?e.createElement(O.a,{noPrefix:!0,message:k}):ee,e.createElement("div",{className:"googlesitekit-selection-panel-footer__actions"},e.createElement(h.Button,{tertiary:!0,onClick:J,disabled:A},Object(m.__)("Cancel","google-site-kit")),e.createElement(h.SpinnerButton,{onClick:K,isSaving:A,disabled:Z<S||Z>C||A||!M&&W},F||q))))}SelectionPanelFooter.propTypes={savedItemSlugs:d.a.array,selectedItemSlugs:d.a.array,saveSettings:d.a.func,saveError:d.a.object,itemLimitError:d.a.string,minSelectedItemCount:d.a.number,maxSelectedItemCount:d.a.number,isBusy:d.a.bool,onSaveSuccess:d.a.func,onCancel:d.a.func,isOpen:d.a.bool,closePanel:d.a.func}}).call(this,n(4))},,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var r=n(7),i=n.n(r),a=n(20),c=n.n(a),o=n(25),l=n.n(o),s=n(1),u=n.n(s),d=n(0),f=n(142),g=n(179);function m(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 WidgetReportZero(t){var n=t.widgetSlug,r=t.moduleSlug,i=l()(t,["widgetSlug","moduleSlug"]),a=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,a),e.createElement(g.a,c()({moduleSlug:r},i))}WidgetReportZero.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var r=n(7),i=n.n(r),a=n(25),c=n.n(a),o=n(1),l=n.n(o),s=n(175);function u(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 WidgetReportError(t){t.widgetSlug;var n=c()(t,["widgetSlug"]);return e.createElement(s.a,n)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:l.a.string.isRequired},s.a.propTypes)}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WPDashboardReportError}));var r=n(1),i=n.n(r),a=n(552),c=n(211),o=n(3),l=n(23),s=n(175);function WPDashboardReportError(t){var n=t.moduleSlug,r=t.error,i=Object(c.a)(WPDashboardReportError,"WPDashboardReportError"),u=Object(o.useDispatch)(l.b).setValue,d=r.message,f=Object(o.useSelect)((function(e){return e(l.b).getValue("WPDashboardReportError-".concat(n,"-").concat(d))}));return Object(a.a)((function(){u("WPDashboardReportError-".concat(n,"-").concat(d),i)}),(function(){u("WPDashboardReportError-".concat(n,"-").concat(d),void 0)})),f!==i?null:e.createElement(s.a,{moduleSlug:n,error:r})}WPDashboardReportError.propTypes={moduleSlug:i.a.string.isRequired,error:i.a.object.isRequired}}).call(this,n(4))},function(e,t,n){"use strict";var r=n(0);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,
/* translators: %s: is the audience name */
Object(o.__)('%s are people who visited your site for the first time. Note that under some circumstances it\'s possible for a visitor to be counted in both the "new" and "returning" groups. <link>Learn more</link>',"google-site-kit"),"<strong>New visitors</strong>"),{strong:e.createElement("strong",null),link:e.createElement(s.a,{href:i,external:!0,hideExternalIndicator:!0})});case"returning-visitors":return Object(c.a)(Object(o.sprintf)(
/* translators: %s: is the audience name */
Object(o.__)('%s are people who have visited your site at least once before. Note that under some circumstances it\'s possible for a visitor to be counted in both the "new" and "returning" groups. <link>Learn more</link>',"google-site-kit"),"<strong>Returning visitors</strong>"),{strong:e.createElement("strong",null),link:e.createElement(s.a,{href:i,external:!0,hideExternalIndicator:!0})});default:return Object(c.a)(Object(o.sprintf)(
/* translators: %s: is the audience name */
Object(o.__)("%s is an audience that already exists in your Analytics property. Note that it's possible for a visitor to be counted in more than one group. <link>Learn more</link>","google-site-kit"),"<strong>".concat(r,"</strong>")),{strong:e.createElement("strong",null),link:e.createElement(s.a,{href:i,external:!0,hideExternalIndicator:!0})})}}),[n,r,i])}AudienceTooltipMessage.propTypes={audienceSlug:i.a.string.isRequired}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return RetryButton}));var r=n(1),i=n.n(r),a=n(2),c=n(10),o=n(9),l=n(18);function RetryButton(t){var n=t.handleRetry,r=Object(l.a)();return e.createElement(c.Button,{className:"googlesitekit-audience-selection-panel__error-notice-action",onClick:function(){n(),Object(o.J)("".concat(r,"_audiences-sidebar"),"data_loading_error_retry")},tertiary:!0},Object(a.__)("Retry","google-site-kit"))}RetryButton.propTypes={handleRetry:i.a.func.isRequired}}).call(this,n(4))},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(14);function i(e){var t;if(void 0!==e)return!((null==e?void 0:e.rows)&&(null==e?void 0:e.totals)&&!(null==e||null===(t=e.totals)||void 0===t?void 0:t.every(r.isEmpty)))||!e.totals.some((function(e){return!!e.metricValues&&e.metricValues.some((function(e){return e.value>0}))}))}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),i=n(19),a=n(6),c=n(26),o=n(8),l=n(67);function s(){return Object(r.useSelect)((function(e){var t=e(a.a).isItemDismissed(c.l),n=e(a.a).isDismissingItem(c.l),r=u(e,"search-console",l.b),i=u(e,"analytics-4",o.r);return!1===t&&!1===n&&r&&i}),[])}function u(e,t,n){if(e(i.a).isModuleConnected(t)){var r=e(n),a=r.isGatheringData,c=r.isDataAvailableOnLoad;return a(),c()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return KeyMetricsSetupCTARenderedEffect}));var r=n(263),i=n(3),a=n(23),c="KEY_METRICS_SETUP_CTA_RENDERED";function KeyMetricsSetupCTARenderedEffect(){var e=Object(i.useDispatch)(a.b).setValue;return Object(r.a)((function(){e(c,!0)})),null}},,function(e,t,n){"use strict";var r=n(0);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",{clipPath:"url(#audience-segmentation-introductory-graphic-desktop_svg__clip0_1395_20972)"},r.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0V16z",fill:"#B8E6CA"}),r.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__filter0_d_1395_20972)"},r.createElement("rect",{x:-10,y:25,width:153,height:174,rx:11,fill:"#fff"})),r.createElement("rect",{x:9.031,y:110.641,width:53.016,height:9.516,rx:4.758,fill:"#EBEEF0"}),r.createElement("rect",{x:9.031,y:95.688,width:19.031,height:9.516,rx:4.758,fill:"#EBEEF0"}),r.createElement("rect",{x:9.031,y:148.703,width:19.031,height:9.516,rx:4.758,fill:"#EBEEF0"}),r.createElement("path",{d:"M94.672 108.602a8.836 8.836 0 018.836-8.836h13.594a8.836 8.836 0 010 17.672h-13.594a8.836 8.836 0 01-8.836-8.836z",fill:"#B8E6CA"}),r.createElement("rect",{x:9,y:46,width:36,height:9,rx:4.5,fill:"#EBEEF0"}),r.createElement("path",{d:"M94.672 161.617a8.836 8.836 0 018.836-8.836h13.594a8.836 8.836 0 110 17.672h-13.594a8.836 8.836 0 01-8.836-8.836z",fill:"#FFDED3"}),r.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__filter1_d_1395_20972)"},r.createElement("rect",{x:152,y:25,width:153,height:174,rx:11,fill:"#fff"})),r.createElement("rect",{x:170.955,y:110.641,width:52.805,height:9.516,rx:4.758,fill:"#EBEEF0"}),r.createElement("rect",{x:170.955,y:95.688,width:18.956,height:9.516,rx:4.758,fill:"#EBEEF0"}),r.createElement("rect",{x:170.955,y:148.703,width:18.956,height:9.516,rx:4.758,fill:"#EBEEF0"}),r.createElement("path",{d:"M256.256 108.602a8.836 8.836 0 018.836-8.836h13.47a8.836 8.836 0 018.835 8.836 8.836 8.836 0 01-8.835 8.836h-13.47a8.836 8.836 0 01-8.836-8.836z",f
/* translators: %s: is a percentage value such as 33.3%. */
Object(o.__)("%s of total pageviews","google-site-kit"),Object(j.C)(M,{style:"percent",maximumFractionDigits:1})),metricValue:D.currentValue,Badge:function Badge(){return e.createElement(O.a,{previousValue:D.previousValue,currentValue:D.currentValue})}}),e.createElement(E.a,{TileIcon:h.a,title:Object(o.__)("Cities with the most visitors","google-site-kit"),topCities:R}),(!q||X&&!P)&&e.createElement(_.a,{audienceTileNumber:r,audienceSlug:a,TileIcon:v.a,title:Object(o.__)("Top content by pageviews","google-site-kit"),topContentTitles:I,topContent:B,isTopContentPartialData:$}))))}AudienceTile.propTypes={audienceTileNumber:c.a.number,audienceSlug:c.a.string.isRequired,title:c.a.string.isRequired,infoTooltip:c.a.oneOfType([c.a.string,c.a.element]),visitors:c.a.object,visitsPerVisitor:c.a.object,pagesPerVisit:c.a.object,pageviews:c.a.object,percentageOfTotalPageViews:c.a.number,topCities:c.a.object,topContent:c.a.object,topContentTitles:c.a.object,hasInvalidCustomDimensionError:c.a.bool,Widget:c.a.elementType.isRequired,audienceResourceName:c.a.string.isRequired,isZeroData:c.a.bool,isPartialData:c.a.bool,isTileHideable:c.a.bool,onHideTile:c.a.func}}).call(this,n(4))},function(e,t,n){"use strict";var r=n(0);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:"M.833 16.667v-2.334c0-.472.118-.902.354-1.291a2.48 2.48 0 01.98-.917c.86-.43 1.735-.75 2.624-.958a11.126 11.126 0 012.709-.333c.916 0 1.82.11 2.708.333.889.208 1.764.528 2.625.958.403.209.722.514.958.917.25.389.375.82.375 1.292v2.333H.833zm15 0v-2.5c0-.611-.174-1.195-.52-1.75-.334-.57-.813-1.056-1.438-1.458.708.083 1.375.229 2 .437a9.852 9.852 0 011.75.73c.5.277.882.59 1.145.937.264.333.396.701.396 1.104v2.5h-3.333zM7.5 10a3.21 3.21 0 01-2.354-.979 3.21 3.21 0 01-.98-2.354c0-.917.327-1.702.98-2.354a3.21 3.21 0 012.354-.98 3.21 3.21 0 012.354.98 3.21 3.21 0 01.979 2.354 3.21 3.21 0 01-.98 2.354 3.21 3.21 0 01-2.353.98zm8.333-3.333a3.21 3.21 0 01-.98 2.354 3.21 3.21 0 01-2.353.98c-.153 0-.348-.015-.584-.042a6.732 6.732 0 01-.583-.125c.375-.445.66-.938.854-1.48a4.662 4.662 0 00.313-1.687c0-.583-.104-1.146-.313-1.688a4.784 4.784 0 00-.854-1.479c.194-.07.389-.11.583-.125a4.12 4.12 0 01.584-.042 3.21 3.21 0 012.354.98 3.21 3.21 0 01.979 2.354zM2.5 15h10v-.666a.735.735 0 00-.125-.417.737.737 0 00-.292-.292 10.446 10.446 0 00-2.27-.833 9.342 9.342 0 00-4.626 0c-.764.18-1.52.458-2.27.833a.894.894 0 00-.313.292.843.843 0 00-.104.417V15zm5-6.666c.458 0 .847-.16 1.166-.48.334-.333.5-.729.5-1.187 0-.458-.166-.847-.5-1.167-.32-.333-.708-.5-1.166-.5-.459 0-.854.167-1.188.5-.32.32-.479.708-.479 1.167 0 .458.16.854.48 1.187.333.32.728.48 1.187.48z",fill:"currentColor"});t.a=function SvgAudienceMetricIconVisitors(e){return r.createElement("svg",i({viewBox:"0 0 20 20",fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(0);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:"M10 17.5a7.443 7.443 0 01-2.938-.583 8.045 8.045 0 01-2.375-1.605 8.045 8.045 0 01-1.604-2.374A7.443 7.443 0 012.5 10c0-1.042.194-2.014.583-2.917a7.7 7.7 0 011.604-2.375 7.548 7.548 0 012.375-1.604A7.221 7.221 0 0110 2.5c1.139 0 2.215.243 3.23.73a7.252 7.252 0 012.603 2.062V3.333H17.5v5h-5V6.667h2.292a6.194 6.194 0 00-2.104-1.834A5.625 5.625 0 0010 4.167c-1.625 0-3.007.57-4.146 1.708C4.73 7 4.167 8.375 4.167 10s.562 3.007 1.687 4.146c1.14 1.125 2.521 1.687 4.146 1.687 1.458 0 2.73-.472 3.813-1.416 1.097-.945 1.743-2.14 1.937-3.584h1.708c-.208 1.903-1.027 3.493-2.458 4.771-1.417 1.264-3.083 1.896-5 1.896zm2.333-4l-3.166-3.167v-4.5h1.666v3.834l2.667 2.666-1.167 1.167z",fill:"currentColor"});t.a=function SvgAudienceMetricIconVisitsPerVisitor(e){return r.createElement("svg",i({viewBox:"0 0 20 20",fill:"none"},e),a)}},function(e,t,n){"use strict";var r=
/* translators: 1: Minimum number of groups that can be selected. 2: Number of selected groups. */
Object(h._n)("Select at least %1$d group (%2$d selected)","Select at least %1$d groups (%2$d selected)",_.k,"google-site-kit"),_.k,D):D>_.j&&(n=Object(h.sprintf)(
/* translators: 1: Maximum number of groups that can be selected. 2: Number of selected groups. */
Object(h.__)("Select up to %1$d groups (%2$d selected)","google-site-kit"),_.j,D));var M=Object(p.useState)(null),R=u()(M,2),B=R[0],I=R[1],P=Object(p.useCallback)(function(){var e=l()(i.a.mark((function e(t){var n,r,a,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(null),e.next=3,x({configuredAudiences:t});case 3:if(n=e.sent,r=n.error){e.next=14;break}if(a=(null==S?void 0:S.filter((function(e){var n=e.replace("audience-tile-","");return!t.includes(n)})))||[],t.every((function(e){return null==S?void 0:S.includes("audience-tile-".concat(e))}))&&a.push("audience-tile-".concat(t[0])),!((null==a?void 0:a.length)>0)){e.next=14;break}return e.next=11,N.apply(void 0,c()(a));case 11:o=e.sent,(r=o.error)&&I(r);case 14:return e.abrupt("return",{error:r});case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[S,N,x]),F=Object(p.useCallback)((function(){var e={USER_AUDIENCE:"user",SITE_KIT_AUDIENCE:"site-kit",DEFAULT_AUDIENCE:"default"},t=T(),n=Object.keys(e).map((function(n){var r=t.filter((function(e){var t=null==C?void 0:C.find((function(t){var n=t.name;return e===n}));return(null==t?void 0:t.audienceType)===n}));return"".concat(e[n],":").concat(r.length)})).join(",");Object(E.J)("".concat(s,"_audiences-sidebar"),"audiences_sidebar_save",n)}),[C,T,s]),L=Object(p.useCallback)((function(){Object(E.J)("".concat(s,"_audiences-sidebar"),"audiences_sidebar_cancel")}),[s]);return e.createElement(j.a,{savedItemSlugs:o,selectedItemSlugs:d,saveSettings:P,saveError:g||B,itemLimitError:n,minSelectedItemCount:_.k,maxSelectedItemCount:_.j,isBusy:m,isOpen:r,closePanel:a,onSaveSuccess:F,onCancel:L})}Footer.propTypes={isOpen:m.a.bool,closePanel:m.a.func.isRequired,savedItemSlugs:m.a.array}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Header}));var r=n(1),i=n.n(r),a=n(0),c=n(38),o=n(2),l=n(3),s=n(32),u=n(13),d=n(6),f=n(34),g=n(21),m=n(112);function Header(t){var n=t.closePanel,r=Object(f.a)(),i=Object(l.useSelect)((function(e){return e(u.c).getAdminURL("googlesitekit-settings")})),p=Object(l.useSelect)((function(e){return e(d.a).isSavingAudienceSettings()})),h=Object(l.useDispatch)(s.a).navigateTo,v=Object(a.useCallback)((function(){return h("".concat(i,"#/admin-settings"))}),[h,i]);return e.createElement(m.b,{title:Object(o.__)("Select visitor groups","google-site-kit"),onCloseClick:n},!r&&e.createElement("p",null,Object(c.a)(Object(o.__)("You can deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:e.createElement(g.a,{secondary:!0,onClick:v,disabled:p}),strong:e.createElement("strong",null)})))}Header.propTypes={closePanel:i.a.func.isRequired}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return LearnMoreLink}));var r=n(2),i=n(38),a=n(3),c=n(13),o=n(21);function LearnMoreLink(){var t=Object(a.useSelect)((function(e){return e(c.c).getGoogleSupportURL({path:"/analytics/answer/12799087"})}));return e.createElement("div",{className:"googlesitekit-audience-selection-panel__learn-more"},Object(i.a)(Object(r.__)("Learn more about grouping site visitors and audiences in <link><strong>Analytics</strong></link>","google-site-kit"),{link:e.createElement(o.a,{secondary:!0,href:t,external:!0}),strong:e.createElement("strong",null)}))}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AudienceCreationSuccessNotice}));var r=n(0),i=n(2),a=n(3),c=n(18),o=n(9),l=n(41),s=n(23),u=n(10),d=n(143);function AudienceCreationSuccessNotice(){var t=Object(c.a)(),n=Object(a.useDispatch)(s.b).setValue,f=Object(a.useSelect)((function(e){return e(s.b).getValue(l.e)})),g=Object(a.useSelect)((function(e){return e(s.b).getValue(l.i)}));return Object(r.useEffect)((function(){g&&f&&Object(o.J)("".concat(t,"_audiences-sidebar-create-audiences-success"),"view_notification")}),[g,f,t]),f?e.createElement("div",{className:"googlesitekit-audience-selection-panel__success-notice"},e.createElement("div",{className:"googlesitekit-audience-selection-panel__succes
/* translators: %d: number of max allowed metrics */
Object(o._n)("Select up to %d metric","Select up to %d metrics",f.n,"google-site-kit"),f.n):Object(o.__)("Select your metrics","google-site-kit"),onCloseClick:n},!r&&e.createElement("p",null,Object(c.a)(Object(o.__)("Edit your personalized goals or deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:e.createElement(g.a,{secondary:!0,onClick:_,disabled:b}),strong:e.createElement("strong",null)})))}Header.propTypes={closePanel:i.a.func.isRequired}}).call(this,n(4))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return Footer}));var i=n(5),a=n.n(i),c=n(16),o=n.n(c),l=n(1),s=n.n(l),u=n(0),d=n(170),f=n(2),g=n(3),m=n(6),p=n(29),h=n(32),v=n(19),b=n(26),E=n(8),_=n(144),O=n(35),y=n(18),k=n(9),j=n(698),S=n(100);function Footer(t){var n=t.isOpen,i=t.closePanel,c=t.savedMetrics,l=t.onNavigationToOAuthURL,s=void 0===l?function(){}:l,w=t.isFullScreen,C=void 0!==w&&w,A=Object(y.a)(),x=Object(S.a)("conversionReporting"),N=Object(g.useSelect)((function(e){return e(p.a).getValue(b.j,b.i)})),T=Object(g.useSelect)((function(e){return e(m.a).isSavingKeyMetricsSettings()})),D="".concat(A,"_kmw-sidebar"),M=null==N?void 0:N.flatMap((function(e){var t=_.a[e];return(null==t?void 0:t.requiredCustomDimensions)||[]})),R=Object(g.useInViewSelect)((function(e){return!!(null==M?void 0:M.length)&&!e(E.r).hasCustomDimensions(M)}),[M]),B=Object(g.useInViewSelect)((function(e){return e(m.a).hasScope(E.h)})),I=Object(g.useSelect)((function(e){return e(v.a).isModuleConnected("analytics-4")})),P=Object(d.a)(e.location.href,{notification:"custom_dimensions"}),F=Object(g.useSelect)((function(e){var t=e(m.a).getConnectURL({additionalScopes:[E.h],redirectURL:P});return!!t&&e(h.a).isNavigatingTo(t)})),L=Object(g.useDispatch)(m.a),z=L.saveKeyMetricsSettings,V=L.setPermissionScopeError,W=Object(g.useDispatch)(p.a).setValues,G=Object(g.useSelect)((function(e){return e(E.r).getKeyMetricsConversionEventWidgets()})),U=Object(u.useCallback)(function(){var e=o()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,z({widgetSlugs:t});case 2:return n=e.sent,r=n.error,e.abrupt("return",{error:r});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[z]),H=Object(u.useCallback)((function(e){Object.values(G).flat().some((function(t){return e.includes(t)}))?Object(k.J)(D,"metrics_sidebar_save","conversion_reporting"):Object(k.J)(D,"metrics_sidebar_save"),I&&R&&(W(E.n,{autoSubmit:!0}),B||(s(),i(),V({code:O.a,message:Object(f.__)("Additional permissions are required to create new Analytics custom dimensions","google-site-kit"),data:{status:403,scopes:[E.h],skipModal:!0,redirectURL:P}})))}),[D,I,R,W,B,s,i,V,P,G]),q=Object(u.useCallback)((function(){Object(k.J)(D,"metrics_sidebar_cancel")}),[D]),K=x?b.n:b.m;return r.createElement(j.a,{savedItemSlugs:c,selectedItemSlugs:N,saveSettings:U,minSelectedItemCount:b.o,maxSelectedItemCount:K,isBusy:T||F,onSaveSuccess:function(){H(N)},onCancel:q,isOpen:n,closePanel:i,isFullScreen:C})}Footer.propTypes={isOpen:s.a.bool,closePanel:s.a.func.isRequired,savedMetrics:s.a.array,onNavigationToOAuthURL:s.a.func,isFullScreen:s.a.bool}}).call(this,n(28),n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanelFooter}));var r=n(5),i=n.n(r),a=n(16),c=n.n(a),o=n(15),l=n.n(o),s=n(14),u=n(1),d=n.n(u),f=n(0),g=n(38),m=n(2),p=n(3),h=n(10),v=n(9),b=n(8),E=n(42);function SelectionPanelFooter(t){var n=t.savedItemSlugs,r=void 0===n?[]:n,a=t.selectedItemSlugs,o=void 0===a?[]:a,u=t.saveSettings,d=void 0===u?function(){}:u,_=t.minSelectedItemCount,O=void 0===_?0:_,y=t.maxSelectedItemCount,k=void 0===y?0:y,j=t.isBusy,S=t.onSaveSuccess,w=void 0===S?function(){}:S,C=t.onCancel,A=void 0===C?function(){}:C,x=t.isOpen,N=t.closePanel,T=void 0===N?function(){}:N,D=t.isFullScreen,M=void 0!==D&&D,R=Object(f.useState)(null),B=l()(R,2),I=B[0],P=B[1],F=Object(f.useState)(!1),L=l()(F,2),z=L[0],V=L[1],W=Object(p.useSelect)((function(e){return e(b.r).isFetchingSyncAvailableAudiences()}))
/* translators: 1: Number of selected items. 2: Maximum number of items that can be selected. */
Object(m.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),X,k),{MaxCount:e.createElement("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})}));return e.createElement("footer",{className:"googlesitekit-selection-panel-footer"},e.createElement("div",{className:"googlesitekit-selection-panel-footer__content"},e.createElement("div",{className:"googlesitekit-selection-panel-footer__actions"},e.createElement(h.Button,{tertiary:!0,onClick:q,disabled:j},Object(m.__)("Cancel","google-site-kit")),Q,e.createElement(h.SpinnerButton,{onClick:H,isSaving:j,disabled:X<O||X>k||j||!x&&z},I||U))))}SelectionPanelFooter.propTypes={savedItemSlugs:d.a.array,selectedItemSlugs:d.a.array,saveSettings:d.a.func,saveError:d.a.object,itemLimitError:d.a.string,minSelectedItemCount:d.a.number,maxSelectedItemCount:d.a.number,isBusy:d.a.bool,onSaveSuccess:d.a.func,onCancel:d.a.func,isOpen:d.a.bool,closePanel:d.a.func,isFullScreen:d.a.bool}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricItems}));var r=n(7),i=n.n(r),a=n(1),c=n.n(a),o=n(2),l=n(3),s=n(84),u=n(6),d=n(48),f=n(144),g=n(312),m=n(34),p=n(100),h=n(700),v=n(112);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 E(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 MetricItems(t){var n=t.savedMetrics,r=Object(m.a)(),a=Object(p.a)("conversionReporting"),c=Object(l.useSelect)((function(e){return e(u.a)})).isKeyMetricAvailable,b=Object(l.useInViewSelect)((function(e){return function(t){return f.a[t].displayInSelectionPanel(e,r,t)}}),[r]),_=function(e,t){if(!c(t))return e;if(void 0===b||"function"==typeof f.a[t].displayInSelectionPanel&&!b(t))return e;var n=f.a[t],r=n.title,a=n.description,o=n.metadata.group;return E(E({},e),{},i()({},t,{title:r,description:a,group:o}))},O=Object(l.useSelect)((function(e){return e(d.a).getWidgets(s.AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY)||[]})).filter((function(e){var t=e.slug;return null==n?void 0:n.includes(t)})).map((function(e){return e.slug})),y=Object.keys(f.a).filter((function(e){return O.includes(e)})).reduce(_,{}),k=Object.keys(f.a).filter((function(e){return!O.includes(e)})).reduce(_,{}),j=Object.keys(f.a).reduce(_,{});return a?e.createElement(h.a,{savedItemSlugs:n,allMetricItems:j}):e.createElement(v.d,{availableItemsTitle:Object(o.__)("Additional metrics","google-site-kit"),savedItemSlugs:n,availableSavedItems:y,availableUnsavedItems:k,ItemComponent:g.a})}MetricItems.propTypes={savedMetrics:c.a.array}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionPanelItems}));var r=n(1),i=n.n(r),a=n(359);function SelectionPanelItems(t){var n=t.savedItemSlugs,r=void 0===n?[]:n,i=t.allMetricItems;return e.createElement("div",{className:"googlesitekit-selection-panel-items"},e.createElement(a.a,{savedItemSlugs:r,allMetricItems:i}))}SelectionPanelItems.propTypes={savedItemSlugs:i.a.array,allMetricItems:i.a.object.isRequired}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){var r=n(7),i=n.n(r),a=n(14),c=n(2),o=n(0),l=n(3),s=n(29),u=n(6),d=n(26),f=n(702),g=n(9),m=n(50),p=n(100);function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(O
/* translators: 1: Minimum number of metrics that can be selected. 2: Number of selected metrics. */
Object(c.__)("Select at least %1$d metrics (%2$d selected)","google-site-kit"),d.o,_):_>O&&(n=Object(c.sprintf)(
/* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */
Object(c.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),O,_));var y=E;return b&&n&&(y={message:n}),e.createElement(f.a,{error:y,skipRetryMessage:!!n})}))}).call(this,n(4))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SelectionPanelError}));var i=n(1),a=n.n(i),c=n(0),o=n(548),l=n(109),s=n(58);function SelectionPanelError(t){var n=t.error,i=t.noPrefix,a=void 0===i||i,u=t.skipRetryMessage,d=void 0===u||u,f=Object(c.useRef)();return Object(c.useEffect)((function(){if(n){var t=e.document.activeElement;t&&t.closest(".googlesitekit-selection-panel-item")&&Object(o.a)(f.current,t)&&t.scrollIntoView()}}),[n]),n?r.createElement("div",{className:"googlesitekit-selection-panel-error",ref:f},r.createElement(l.a,{Icon:s.a,error:n,noPrefix:a,skipRetryMessage:d})):null}SelectionPanelError.propTypes={error:a.a.shape({message:a.a.string}),noPrefix:a.a.bool,skipRetryMessage:a.a.bool}}).call(this,n(28),n(4))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardSharingSettingsButton}));var r=n(2),i=n(0),a=n(3),c=n(10),o=n(412),l=n(18),s=n(9),u=n(29),d=n(23),f=n(13),g=n(8),m=n(157),p=n(706);function DashboardSharingSettingsButton(){var t=Object(l.a)(),n=Object(a.useDispatch)(d.b).setValue,h=Object(a.useSelect)((function(e){return e(f.c).hasMultipleAdmins()})),v=Object(a.useSelect)((function(e){return e(u.a).getValue(g.d,"isAutoCreatingCustomDimensionsForAudience")})),b=Object(i.useCallback)((function(){Object(s.J)("".concat(t,"_headerbar"),"open_sharing",h?"advanced":"simple"),n(m.c,!0)}),[n,t,h]);return e.createElement(i.Fragment,null,e.createElement(c.Button,{"aria-label":Object(r.__)("Open sharing settings","google-site-kit"),className:"googlesitekit-sharing-settings__button googlesitekit-header__dropdown googlesitekit-border-radius-round googlesitekit-button-icon",onClick:b,icon:e.createElement(o.a,{width:20,height:20}),tooltipEnterDelayInMS:500,disabled:v}),e.createElement(p.a,null))}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardSharingDialog}));var r=n(817),i=n(11),a=n.n(i),c=n(2),o=n(0),l=n(38),s=n(264),u=n(1206),d=n(3),f=n(10),g=n(23),m=n(6),p=n(13),h=n(19),v=n(157),b=n(24),E=n(546),_=n(72),O=n(17),y=n(412),k=n(21),j=n(707),S=n(710);function DashboardSharingDialog(){var t=Object(b.e)(),n=Object(r.a)().y,i=Object(d.useDispatch)(g.b).setValue,w=Object(d.useDispatch)(m.a).triggerOnDemandTour,C=Object(d.useDispatch)(h.a).rollbackSharingSettings,A=Object(d.useSelect)((function(e){return!!e(g.b).getValue(v.c)})),x=Object(d.useSelect)((function(e){return!!e(g.b).getValue(v.b)})),N=Object(d.useSelect)((function(e){return e(g.b).getValue(v.a)})),T=Object(d.useSelect)((function(e){return e(h.a).haveSharingSettingsChanged()})),D=Object(d.useSelect)((function(e){return e(p.c).getDocumentationLinkURL("dashboard-sharing")})),M=Object(o.useRef)(),R=Object(o.useCallback)((function(){M.current||(M.current=!0,w(E.a))}),[w]),B={};t===b.b&&(B.top="".concat(n<46?46-n:0,"px"),B.height="calc(100% - 46px + ".concat(n<46?n:46,"px)")),Object(o.useEffect)((function(){!A&&T&&C()}),[A,T,C]);var I=Object(o.useCallback)((function(){i(v.c,!0)}),[i]),P=Object(o.useCallback)((function(){i(v.c,!1),i(v.a,void 0)}),[i]),F=Object(o.useCallback)((function(){P(),i(v.b,!0)}),[P,i]),L=Object(o.useCallback)((function(){i(v.b,!1),I()}),[I,i]),z=Object(o.useCallback)((function(){if(x)return L(),null;P()}),[L,P,x]);return e.createElement(_.a,null,e.createElement(O.b,{open:A||x,onOpen:R,onClose:z,className:"googlesitekit-dialog googlesitekit-sharing-settings-dialog",style:B,escapeKeyAction:void 0===N?"close":""},e.createElement("div",{className:"googlesitekit-dialog__back-wrapper","aria-hidden":t!==b.b},e.createElement(f.Button,{"aria-label":Object(c.__)("Back","google-site-kit"),className:"googlesitekit-dialog__back",onClick:z},e.createElement(s.a,{icon:u.a}))),e.createElement(O.c,{className:"googlesitekit-dialog__content"},e.createElement("div",{className:"googlesitekit-dialog__header"},A&&e.createElement("div",{className:"googlesitekit-dialog__he
/* translators: %s: user who manages the module. */
Object(s.__)("<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:F?Object(s.sprintf)(
/* translators: %s: name of the user who manages the module. */
Object(s.__)("%s has connected this and given managing permissions to all admins. You can change who can view this on the dashboard.","google-site-kit"),a):Object(s.sprintf)(
/* translators: %s: name of the user who manages the module. */
Object(s.__)("Contact %s to change who can manage view access for this module","google-site-kit"),a)},e.createElement("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon"},e.createElement(u.a,{icon:d.a,size:18}))))))}Module.propTypes={moduleSlug:c.a.string.isRequired,moduleName:c.a.string.isRequired,ownerUsername:c.a.string}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){var r=n(27),i=n.n(r),a=n(1),c=n.n(a),o=n(11),l=n.n(o),s=n(2),u=n(57),d=n(0),f=n(3),g=n(10),m=n(21),p=n(412),h=n(581),v=n(18),b=n(115),E=n(9),_=n(19),O=n(23),y=n(157),k=Object(s.__)("All","google-site-kit"),j=Object(d.forwardRef)((function(t,n){var r=t.moduleSlug,a=t.isLocked,c=void 0!==a&&a,o=Object(v.a)(),j=Object(d.useRef)(),S=Object(f.useDispatch)(_.a).setSharedRoles,w=Object(f.useDispatch)(O.b).setValue,C=Object(f.useSelect)((function(e){return e(_.a).getShareableRoles()})),A=Object(f.useSelect)((function(e){return e(_.a).getSharedRoles(r)})),x=Object(f.useSelect)((function(e){return e(O.b).getValue(y.a)}))===r;Object(b.a)([u.c],n,(function(){x&&w(y.a,void 0)}));var N=Object(f.useSelect)((function(e){return e(_.a).haveModuleSharingSettingsChanged(r,"sharedRoles")})),T=Object(d.useCallback)((function(){x?(w(y.a,void 0),N&&Object(E.J)("".concat(o,"_sharing"),"change_shared_roles",r)):w(y.a,r)}),[x,N,r,w,o]);Object(d.useEffect)((function(){j.current&&(x?j.current.firstChild.focus():j.current.focus())}),[x]);var D=Object(d.useCallback)((function(e){var t,n=e.type,a=e.target,c=e.keyCode;if("keydown"!==n||c===u.b){var o,l=a.closest(".mdc-chip"),s=null==l||null===(t=l.dataset)||void 0===t?void 0:t.chipId;if(s)o="all"===s?(null==A?void 0:A.length)===(null==C?void 0:C.length)?[]:C.map((function(e){return e.id})):null===A?[s]:A.includes(s)?A.filter((function(e){return e!==s})):[].concat(i()(A),[s]),S(r,o)}}),[r,S,A,C]);return C?e.createElement("div",{className:l()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":x})},!x&&e.createElement(g.Button,{"aria-label":Object(s.__)("Edit roles","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:T,icon:e.createElement(p.a,{width:23,height:23}),tabIndex:c?-1:void 0,ref:j}),!x&&(null==A?void 0:A.length)>0&&e.createElement("span",{className:"googlesitekit-user-role-select__current-roles"},(null==C?void 0:C.reduce((function(e,t){return A.includes(t.id)&&e.push(t.displayName),e}),[])).join(", ")),!x&&(!A||0===(null==A?void 0:A.length))&&e.createElement("span",{className:"googlesitekit-user-role-select__add-roles"},e.createElement(m.a,{onClick:T,tabIndex:c?-1:void 0},Object(s.__)("Add roles","google-site-kit"))),x&&e.createElement(d.Fragment,null,e.createElement("div",{className:"googlesitekit-user-role-select__chipset",ref:j},e.createElement(g.Chip,{id:"all",label:k,onClick:D,onKeyDown:D,selected:(null==A?void 0:A.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(g.Chip,{key:n,id:r,label:i,onClick:D,onKeyDown:D,selected:null==A?void 0:A.includes(r)})}))),e.createElement(g.Button,{"aria-label":Object(s.__)("Done editing roles","google-site-kit"),title:Object(s.__)("Done","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:T,icon:e.createElement(h.a,{width:18,height:18}),tabIndex:c?-1:void 0}))):null}));j.propTypes={moduleSlug:c.a.string.isRequired,isLocked:c.a.bool},t.a=j}).call(this,n(4))},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),c=n.n(a),o=n(15),l=n.n(o),s=n(1),u=n.n(s),d=n(2),f=n(0),g=n(10),m=n(3),p=n(19),h=n(23),v=n(157),b=n(18),E=n(9),_=n(21),O=n(711),y=n(55);function Footer(t){var n=t.closeDialog,r=t.openResetDialog,a=Object(b.a)(),o=Object(f.useState)(null),s=l()(o,2),u=s[0],k=s[1],j=Object(f.useState)(!1),S=l()(j,2),w=S[0],C=S[1],A=Object(m.useSelect)((function(e){return e(p.a).canSubmitSharingChanges()})),x=Object(m.useSelect)((function(e){return e(p.a).isDoingSubmitSharingChanges()})),N=Object(m.useSelect)((function(e){return e
/* translators: %s: Error message */
Object(c.__)("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(c.__)("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(c.sprintf)(
/* translators: 1: Module name, 2: Error message */
Object(c.__)("%1$s: %2$s","google-site-kit"),n[t].name,n[t].message))})))))}Errors.propTypes={recoveryErrors:i.a.object.isRequired}}).call(this,n(4))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardEntryPoint}));var r=n(1),i=n.n(r),a=n(1133),c=n(1135);function DashboardEntryPoint(t){var n=t.setupModuleSlug;return n?e.createElement(a.a,{moduleSlug:n}):e.createElement(c.a,null)}DashboardEntryPoint.propTypes={setupModuleSlug:i.a.string}}).call(this,n(4))},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),c=n.n(a),o=n(1),l=n.n(o),s=n(87),u=n(250),d=n(0),f=n(2),g=n(3),m=n(13),p=n(19),h=n(32),v=n(36),b=n(9),E=n(235),_=n(17),O=n(234),y=n(1134);function ModuleSetup(t){var n=t.moduleSlug,r=Object(g.useDispatch)(h.a).navigateTo,a=Object(g.useSelect)((function(e){return e(p.a).getModule(n)})),o=Object(g.useRegistry)(),l=Object(u.a)(function(){var e=c()(i.a.mark((function e(t){var a,c,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(v.c)("module_setup");case 2:return e.next=4,Object(b.J)("moduleSetup","complete_module_setup",n);case 4:if(!t){e.next=7;break}return r(t),e.abrupt("return");case 7:return a=o.select,c=o.resolveSelect,e.next=10,c(m.c).getSiteInfo();case 10:l=a(m.c).getAdminURL("googlesitekit-dashboard",{notification:"authentication_success",slug:n}),r(l);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,r,n]),k=null==a?void 0:a.onCompleteSetup,j=Object(d.useCallback)((function(){return k(o,l)}),[k,o,l]),S=Object(d.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.J)("moduleSetup","cancel_module_setup",n);case 2:case"end":return e.stop()}}),e)}))),[n]);if(Object(s.a)((function(){Object(b.J)("moduleSetup","view_module_setup",n)})),!(null==a?void 0:a.SetupComponent))return null;var w=a.SetupComponent;return e.createElement(d.Fragment,null,e.createElement(O.a,null,e.createElement(E.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(f.__)("Connect Service","google-site-kit")),e.createElement(w,{module:a,finishSetup:l})))),e.createElement(y.a,{module:a,onCancel:S,onComplete:"function"==typeof k?j:void 0})))))))}ModuleSetup.propTypes={moduleSlug:l.a.string.isRequired}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSetupFooter}));var r=n(5),i=n.n(r),a=n(16),c=n.n(a),o=n(15),l=n.n(o),s=n(1),u=n.n(s),d=n(11),f=n.n(d),g=n(2),m=n(0),p=n(3),h=n(13),v=n(17),b=n(21),E=n(10),_=n(19);function ModuleSetupFooter(t){var n=t.module,r=t.onCancel,a=t.onComplete,o=Object(m.useState)(!1),s=l()(o,2),u=s[0],d=s[1],O=Object(p.useSelect)((function(e){return e(h.c).getAdminURL("googlesitekit-settings")})),y=Object(p.useSelect)((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)})),k=Object(p.useSelect)((function(e){return e(_.a).canSubmitChanges(null==n?void 0:n.slug)})),j=Object(m.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),e.next=3,a();case 3:d(!1);case 4:case"end":return e.stop()}}),e)}))),[d,a]);return n?e.createElement("div",{className:f()("googlesitekit-setup__footer","googlesitekit-setup__footer--".concat(null==n?void 0:n.slug))},e.createElement(v.e,null,e.createElement(v.k,nu
/* translators: %s: the name of a module that setup was completed for */
Object(d.__)("Congrats on completing the setup for %s!","google-site-kit"),R.setupTitle),description:R.description,handleDismiss:function(){},WinImageSVG:h.a,onView:D,dismiss:Object(d.__)("OK, Got it!","google-site-kit"),onDismiss:M,format:"smaller",type:"win-success",learnMoreLabel:R.learnMore.label,learnMoreDescription:R.learnMore.description,learnMoreURL:R.learnMore.url,learnMoreTarget:R.learnMore.target}));default:return null}}}).call(this,n(28),n(4))},function(e,t,n){"use strict";var r=n(0);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"}),c=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"}),o=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),l=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}),s=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"}),f=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}),g=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,c,o,l,s,u,d,f,g)}},function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),a=n(0),c=n(3),o=n(13),l=n(6),s=n(1141);t.a=function CoreSiteBannerNotifications(){var t=Object(a.useState)(!1),n=i()(t,2),r=n[0],u=n[1],d=Object(a.useState)(!1),f=i()(d,2),g=f[0],m=f[1],p=Object(a.useRef)(Date.now()),h=Object(c.useSelect)((function(e){return e(o.c).isUsingProxy()&&!1===e(l.a).areSurveysOnCooldown()?e(l.a).getCurrentSurvey():null})),v=Object(c.useSelect)((function(e){return e(o.c).getNotifications()}));return Object(a.useEffect)((function(){var e=setTimeout((function(){g||u(!0)}),5e3);return function(){clearTimeout(e)}}),[g]),Object(a.useEffect)((function(){Math.floor((Date.now()-p.current)/1e3)<5&&h&&m(!0)}),[p,h,m]),Array.isArray(v)&&r&&!g?v.map((function(t){return e.createElement(s.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(4))},function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),a=n(2),c=n(0),o=n(3),l=n(130),s=n(13),u=n(9),d=n(18);function CoreSiteBannerNotification(t){var n=t.content,r=t.ctaLabel,i=t.ctaTarget,a=t.ctaURL,f=t.dismissLabel,g=t.dismissible,m=t.id,p=t.learnMoreLabel,h=t.learnMoreURL,v=t.title,b=Object(o.useDispatch)(s.c),E=b.dismissNotification,_=b.acceptNotification,O=Object(d.a)(),y=Object(c.useCallback)((function(){Object(u.J)("".concat(O,"_remote-site-notification"),"view_notification",m)}),[m,O]),k=Object(c.useCallback)((funct
/* translators: %s: module name. */
Object(f.__)("%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"),k[M[0]].name):(R=Object(f.__)("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"),B=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"},k[t].name))})))):1===S.length?(R=Object(f.sprintf)(
/* translators: %s: module name. */
Object(f.__)("%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"),k[S[0]].name),B=e.createElement(d.Fragment,null,e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(f.__)("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(w).length>0&&e.createElement(E.a,{recoveryErrors:w})),I=D):(R=Object(f.__)("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"),B=e.createElement(d.Fragment,null,S.map((function(t){return e.createElement("div",{key:t},e.createElement(m.Checkbox,{checked:r[t],name:"module-recovery-alert-checkbox",id:"module-recovery-alert-checkbox-".concat(t),onChange:function(){return T(t)},value:t,disabled:_},k[t].name))})),e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(f.__)("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(w).length>0&&e.createElement(E.a,{recoveryErrors:w})),I=D),e.createElement(b.b,{id:"module-recovery-alert",title:Object(f.__)("Dashboard data for some services has been interrupted","google-site-kit"),onCTAClick:I,ctaLabel:I?Object(f.__)("Recover","google-site-kit"):null,ctaLink:I?"#":null,description:R,learnMoreURL:j,learnMoreLabel:Object(f.__)("Learn more","google-site-kit"),isDismissible:P,dismiss:Object(f.__)("Remind me later","google-site-kit"),dismissExpires:v.a},B)}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n(2),a=n(3),c=n(19),o=n(31),l=n(1144),s=n(130);t.a=function AdSenseAlerts(){var t=Object(a.useSelect)((function(e){return e(c.a).isModuleConnected("adsense")})),n=Object(a.useSelect)((function(e){return e(o.m).getAccountID()})),u=Object(a.useSelect)((function(e){return e(o.m).getNotifications()}));return t&&n&&void 0!==u?e.createElement(r.Fragment,null,u.map((function(t){var n=t.id,r=t.title,a=t.description,c=t.format,o=t.ctaURL,u=t.ctaLabel,d=t.ctaTarget,f=t.severity,g=t.isDismissable;return e.createElement(s.b,{className:"googlesitekit-adsense-alert",key:n,id:n,title:r||"",description:a,WinImageSVG:l.a,format:c||"small",ctaLink:o,ctaLabel:u,ctaTarget:d,type:f,dismiss:Object(i.__)("OK, Got it!","google-site-kit"),isDismissible:g||!0,logo:!0,module:"adsense",moduleName:Object(i._x)("AdSense","Service name","google-site-kit"),dismissExpires:0,showOnce:!1})}))):null}}).call(this,n(4))},function(e,t,n){"use strict";var r=n(0);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"}),c=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"})),o=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),l=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),s=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
/* translators: 1: Currently GA4 property name. 2: Current GA4 property ID. 3: Newly linked GA4 property name. 4: Newly linked GA4 property ID. */
Object(o.__)('The Google Tag on your site is no longer associated with your current Google Analytics property "%1$s (%2$s)". It is now recording metrics to another Google Analytics 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,v.displayName,v._id),ctaComponent:e.createElement(l.Fragment,null,e.createElement(f.SpinnerButton,{onClick:C,isSaving:E},Object(o.__)("Use new property","google-site-kit")),e.createElement(f.Button,{tertiary:!0,onClick:A},Object(o.__)("Keep existing property","google-site-kit"))),isDismissible:!1}):b?e.createElement(g.b,{id:"google-tag-id-mismatch",title:Object(o.__)("Your Google tag configuration has changed","google-site-kit"),description:Object(o.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(o.__)('The Google tag for your Google Analytics configuration has changed from %1$s to %2$s. To keep using your current Google Analytics 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,b,r.displayName,r._id),ctaLabel:Object(o.sprintf)(
/* translators: %s: Newly linked Google Tag ID. */
Object(o.__)("Update Google tag to %s","google-site-kit"),b),ctaLink:A?"#":null,onCTAClick:A,isDismissible:!1}):void 0}}).call(this,n(4))},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,r){n.d(t,"a",(function(){return AdBlockingRecoverySetupSuccessBannerNotification}));var i=n(0),a=n(38),c=n(2),o=n(1207),l=n(3),s=n(1149),u=n(18),d=n(31),f=n(9),g=n(21),m=n(130),p=n(13),h=n(6);function AdBlockingRecoverySetupSuccessBannerNotification(){var t=Object(u.a)(),n=Object(l.useDispatch)(h.a).triggerSurvey,v=Object(l.useSelect)((function(e){return e(p.c).isUsingProxy()})),b=Object(l.useSelect)((function(e){return e(d.m).getAdBlockingRecoverySetupStatus()})),E=Object(l.useSelect)((function(e){return e(d.m).getAccountID()})),_=Object(l.useSelect)((function(e){return e(d.m).getServiceURL({path:"/".concat(E,"/privacymessaging/ad_blocking")})})),O=Object(i.useCallback)((function(){Object(f.J)("".concat(t,"_adsense-abr-success-notification"),"view_notification"),v&&n("abr_setup_completed",{ttl:f.a})}),[n,v,t]);return b!==d.k.SETUP_CONFIRMED?null:r.createElement(m.b,{id:d.d,className:"googlesitekit-ad-blocking-recovery-notification",title:Object(c.__)("You successfully enabled the ad blocking recovery message","google-site-kit"),description:r.createElement("p",null,Object(a.a)(Object(c.__)("Make sure to also create the message in <a>AdSense</a>, otherwise this feature wont work","google-site-kit"),{a:r.createElement(g.a,{href:_,external:!0,hideExternalIndicator:!0})})),dismiss:Object(c.__)("OK, Got it!","google-site-kit"),onDismiss:function(){Object(f.J)("".concat(t,"_adsense-abr-success-notification"),"confirm_notification");var n=Object(o.a)(e.location.href,"notification");e.history.replaceState(null,"",n)},isDismissible:!0,onView:O,type:"win-success",WinImageSVG:function WinImageSVG(){return r.createElement(s.a,null)},format:"small"})}}).call(this,n(28),n(4))},function(e,t,n){"use strict";var r=n(0);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"}),c=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})),o=r.createElement("rect",{x:70.447,y:59.985,width:82.216,height:4.444,rx:2.222,fill:"#EBEEF0"}),l=r.createElement("rect",{x:89.705,y:85.169,width:45.182,height:19.258,rx:9.629,fill:"#77AD8C"}),s=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"}),f=r.createElement("defs",null,r.createElement("filter",{id:"ad-blocking-recovery-success_svg__filter0_d_766_3674",x:48.967,y:25.
/* translators: %s: Option name */
Object(m.__)("Text input for option %s","google-site-kit"),r))),e.createElement(p.TextField,{id:"".concat(o,"-write-in"),onChange:function(e){return function(e,t){var n,r=_(_({},C),{},c()({},t,_(_({},C[t]),{},{answer_text:null===(n=e.target.value)||void 0===n?void 0:n.slice(0,b.a)})));A(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(C).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:D},O)))}SurveyQuestionMultiSelect.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=SurveyQuestionMultiSelect}).call(this,n(4))},function(e,t,n){"use strict";(function(e){var r=n(7),i=n.n(r),a=n(15),c=n.n(a),o=n(1),l=n.n(o),s=n(0),u=n(10),d=n(528),f=n(1163);function g(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?g(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SurveyQuestionSingleSelect(t){var n=t.question,r=t.choices,i=t.answerQuestion,a=t.dismissSurvey,o=t.submitButtonText,l=Object(s.useState)(""),g=c()(l,2),p=g[0],h=g[1],v=Object(s.useState)(""),b=c()(v,2),E=b[0],_=b[1],O=r.map((function(e){return m(m({},e),{},{answer_ordinal:"".concat(e.answer_ordinal)})})),y=!!p&&O.filter((function(e){var t=e.answer_ordinal,n=e.write_in;return t===p&&n})).length>0,k=""===p||y&&""===E;return e.createElement("div",{className:"googlesitekit-single-select"},e.createElement(d.a,{title:n,dismissSurvey:a}),e.createElement("div",{className:"googlesitekit-survey__body"},O.map((function(t,n){return e.createElement(f.a,{key:n,value:p,setValue:h,writeIn:E,setWriteIn:_,choice:t})}))),e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(u.Button,{onClick:function(){var e=y?{answer_text:E}:{};i({answer:m({answer_ordinal:Number(p)},e)})},disabled:k},o)))}SurveyQuestionSingleSelect.propTypes={question:l.a.string.isRequired,choices:l.a.arrayOf(l.a.shape({answer_ordinal:l.a.oneOfType([l.a.string,l.a.number]),text:l.a.string,write_in:l.a.bool})).isRequired,answerQuestion:l.a.func.isRequired,dismissSurvey:l.a.func.isRequired},t.a=SurveyQuestionSingleSelect}).call(this,n(4))},function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),a=n(0),c=n(2),o=n(10),l=n(103),s=n(625);function SurveyQuestionSingleSelectChoice(t){var n=t.value,r=t.setValue,i=t.writeIn,u=t.setWriteIn,d=t.choice,f=d.answer_ordinal,g=d.text,m=d.write_in,p=n===f,h="googlesitekit-survey__multi-select-".concat(f,"-").concat(g);return e.createElement("div",{className:"googlesitekit-single-select__choice"},e.createElement(o.Radio,{id:g.replace(/ /g,"-"),value:f,checked:p,name:g,onClick:function(){return r(f)}},g),m&&e.createElement(a.Fragment,null,e.createElement(l.a,null,e.createElement("label",{htmlFor:h},Object(c.sprintf)(
/* translators: %s: Option name */
Object(c.__)("Text input for option %s","google-site-kit"),g))),e.createElement(o.TextField,{id:h,onChange:function(e){return u(e.target.value.slice(0,s.a))},value:i,disabled:!p})))}SurveyQuestionSingleSelectChoice.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=SurveyQuestionSingleSelectChoice}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SurveyTerms}));var r=n(2),i=n(38),a=n(3),c=n(13),o=n(21);function SurveyTerms(){var t=Object(a.useSelect)((function(e){return e(c.c).getGooglePrivacyPolicyURL()})),n=Object(a.useSelect)((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(o.a,{href:t,external:!0,hideExternalIndicator:!0,noFlex:!0}),terms:e.createElement(o.a,{href:n,external:!0,hideExternalIndicator:!0,noFlex:!0})}))}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricsSelectionPanel}));var r=n(3),i=n(23),a=n(26),c=n(164),o=n(1166);function MetricsSelectionPanel(){var t=Object(r.useSelect)((function(e){return e(i.b).getValue(a.k)}));return e.createElement(c.a,{value:{key:"MetricsSelectionPanel",value:!!t}},e.createElement(o.a,null))}}).call(this,n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Panel}));var r=n(15),i=n.n(r),a=n(7),c=n.n(a),o=n(11),l=n.n(o),s=n(0),u=n(3),d=n(29),f=n(23),g=n(6),m=n(26),p=n(694),h=n(112),v=n(18),b=n(9),E=n(100);function Panel(){var t=Object(v.a)(),n=Object(E.a)("conversionReporting"),r=Object(u.useSelect)((function(e){return e(f.b).getValue(m.k)})),a=Object(u.useInViewSelect)((function(e){var t=e(g.a).getKeyMetrics();if(!Array.isArray(t))return[];var n=e(g.a).isKeyMetricAvailable;return t.filter(n)})),o=Object(u.useDispatch)(d.a).setValues,_=Object(u.useDispatch)(f.b).setValue,O=Object(s.useCallback)((function(){var e;o(m.j,(e={},c()(e,m.i,a),c()(e,m.a,a),e)),Object(b.J)("".concat(t,"_kmw-sidebar"),"metrics_sidebar_view")}),[a,o,t]),y=Object(s.useCallback)((function(){r&&_(m.k,!1)}),[_,r]),k=Object(s.useState)(!1),j=i()(k,2),S=j[0],w=j[1];return e.createElement(h.e,{isOpen:r||S,onOpen:O,closePanel:y,className:l()("googlesitekit-km-selection-panel",{"googlesitekit-acr-km-selection-panel":n})},e.createElement(p.a,{isOpen:r,closePanel:y,savedViewableMetrics:a,setIsNavigatingToOAuthURL:w}))}}).call(this,n(4))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e,t){var r=n(5),i=n.n(r),a=n(16),c=n.n(a),o=n(335),l=n(145),s=n(36),u=n(226),d=n(22),f=n(1132);Object(o.a)(c()(i.a.mark((function n(){var r,a,c,o,g;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(s.b)();case 3:(r=document.getElementById("js-googlesitekit-main-dashboard"))&&(a=r.dataset,c=a.setupModuleSlug,o=a.viewOnly,g=d.q,c||(g=o?d.o:d.n),Object(l.render)(t.createElement(u.a,{viewContext:g},t.createElement(f.a,{setupModuleSlug:c})),r));case 5:case"end":return n.stop()}}),n)}))))}.call(this,n(28),n(4))}],[[1277,1,0]]]);