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

42 lines
419 KiB
JavaScript
Raw Normal View History

2025-08-27 08:44:30 +02:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[31],[,,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 i})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),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 g})),n.d(t,"J",(function(){return f})),n.d(t,"I",(function(){return p})),n.d(t,"N",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"h",(function(){return h})),n.d(t,"j",(function(){return j})),n.d(t,"l",(function(){return I})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return E})),n.d(t,"o",(function(){return O})),n.d(t,"q",(function(){return M})),n.d(t,"s",(function(){return k})),n.d(t,"r",(function(){return N})),n.d(t,"t",(function(){return _})),n.d(t,"w",(function(){return D})),n.d(t,"u",(function(){return A})),n.d(t,"v",(function(){return T})),n.d(t,"x",(function(){return S})),n.d(t,"y",(function(){return w})),n.d(t,"A",(function(){return C})),n.d(t,"B",(function(){return z})),n.d(t,"C",(function(){return R})),n.d(t,"D",(function(){return x})),n.d(t,"k",(function(){return P})),n.d(t,"F",(function(){return L})),n.d(t,"z",(function(){return B})),n.d(t,"G",(function(){return G})),n.d(t,"E",(function(){return W})),n.d(t,"i",(function(){return Z})),n.d(t,"p",(function(){return V})),n.d(t,"Q",(function(){return U})),n.d(t,"P",(function(){return F}));var i="core/user",r="connected_url_mismatch",a="__global",o="temporary_persist_permission_error",c="adblocker_active",l="googlesitekit_authenticate",s="googlesitekit_setup",u="googlesitekit_view_dashboard",d="googlesitekit_manage_options",g="googlesitekit_read_shared_module_data",f="googlesitekit_manage_module_sharing_options",p="googlesitekit_delegate_module_sharing_management",m="googlesitekit_update_plugins",b="kmAnalyticsAdSenseTopEarningContent",v="kmAnalyticsEngagedTrafficSource",h="kmAnalyticsLeastEngagingPages",j="kmAnalyticsNewVisitors",I="kmAnalyticsPopularAuthors",y="kmAnalyticsPopularContent",E="kmAnalyticsPopularProducts",O="kmAnalyticsReturningVisitors",M="kmAnalyticsTopCities",k="kmAnalyticsTopCitiesDrivingLeads",N="kmAnalyticsTopCitiesDrivingAddToCart",_="kmAnalyticsTopCitiesDrivingPurchases",D="kmAnalyticsTopDeviceDrivingPurchases",A="kmAnalyticsTopConvertingTrafficSource",T="kmAnalyticsTopCountries",S="kmAnalyticsTopPagesDrivingLeads",w="kmAnalyticsTopRecentTrendingPages",C="kmAnalyticsTopTrafficSource",z="kmAnalyticsTopTrafficSourceDrivingAddToCart",R="kmAnalyticsTopTrafficSourceDrivingLeads",x="kmAnalyticsTopTrafficSourceDrivingPurchases",P="kmAnalyticsPagesPerVisit",L="kmAnalyticsVisitLength",B="kmAnalyticsTopReturningVisitorPages",G="kmSearchConsolePopularKeywords",W="kmAnalyticsVisitsPerVisitor",Z="kmAnalyticsMostEngagingPages",V="kmAnalyticsTopCategories",U=[b,v,h,j,I,y,E,O,V,M,k,N,_,D,A,T,w,C,z,P,L,B,W,Z,V],F=[].concat(U,[G])},function(e,t,n){"use strict";n.d(t,"r",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"s",(function(){return a})),n.d(t,"D",(function(){return o})),n.d(t,"o",(function(){return c})),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 g})),n.d(t,"k",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"n",(function(){return m})),n.d(t,"h",(function(){return b})),n.d(t,"B",(function(){return v})),n.d(t,"A",(function(){return h})),n.d(t,"C",(function(){return j})),n.d(t,"y",(function(){return I})),n.d(t,"z",(function(){return y})),n.d(t,"f",(function(){return E})),n.d(t,"l",(function(){return O})),n.d(t,"e",(function(){return M})),n.d(t,"x",(function(){return k})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return _})),n.d(t,"b",(function(){return D})),n.d(t,"u",(function(){return A})
Object(E._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(i.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var n=new Date(e);return Object(i.isDate)(n)&&!isNaN(n)}function S(e){y()(Object(i.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 w(e){y()(T(e),O);var t=e.split("-"),n=j()(t,3),i=n[0],r=n[1],a=n[2];return new Date(i,r-1,a)}function C(e,t){return S(R(e,t*_))}function z(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 R(e,t){y()(T(e)||Object(i.isDate)(e)&&!isNaN(e),O);var n=T(e)?Date.parse(e):e.getTime();return new Date(n-1e3*t)}var x=n(108),P=n(87);function L(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function B(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var G=n(29),W=n.n(G);function Z(e){return Array.isArray(e)?W()(e).sort():e}var V=n(94);function U(e,t){function n(e){return"0"===e||0===e}if(n(e)&&n(t))return 0;if(n(e)||Number.isNaN(e))return null;var i=(t-e)/e;return Number.isNaN(i)||!Number.isFinite(i)?null:i}function F(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function H(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(i.unescape)(t)}},,function(e,t){e.exports=googlesitekit.components},,function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i="core/site",r="primary",a="secondary"},,,,function(e,t,n){"use strict";var i=n(1),r=n(69);t.a=function(){return Object(i.useContext)(r.b)}},,,function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return l}));var i=n(122),r="xlarge",a="desktop",o="tablet",c="small";function l(){var e=Object(i.a)();return e>1280?r:e>960?a:e>600?o:c}},function(e,t,n){"use strict";var i=n(251);n.d(t,"i",(function(){return i.a}));var r=n(318);n.d(t,"f",(function(){return r.a}));var a=n(319);n.d(t,"h",(function(){return a.a}));var o=n(320);n.d(t,"j",(function(){return o.a}));var c=n(317);n.d(t,"g",(function(){return c.a}));var l=n(98),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(114);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";(function(e){var i=n(18),r=n.n(i),a=n(19),o=n.n(a),c=n(10),l=n.n(c),s=n(0),u=n.n(s),d=n(165),g=n(1),f=n(2),p=n(137),m=n(138),b=n(139),v=n(75),h=n(84),j=Object(g.forwardRef)((function(t,n){var i=t["aria-label"],a=t.secondary,c=void 0!==a&&a,s=t.arrow,u=void 0!==s&&s,g=t.back,j=void 0!==g&&g,I=t.caps,y=void 0!==I&&I,E=t.children,O=t.className,M=void 0===O?"":O,k=t.danger,N=void 0!==k&&k,_=t.disabled,D=void 0!==_&&_,A=t.external,T=void 0!==A&&A,S=t.hideExternalIndicator,w=void 0!==S&&S,C=t.href,z=void 0===C?"":C,R=t.inverse,x=void 0!==R&&R,P=t.noFlex,L=void 0!==P&&P,B=t.onClick,G=t.small,W=void 0!==G&&G,Z=t.standalone,V=void 0!==Z&&Z,U=t.linkButton,F=void 0!==U&&U,H=t.to,Y=t.leadingIcon,Q=t.trailingIcon,X=o()(t,["aria-label","secondary","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inverse","noFlex","onClick","small","standalone","linkButton","to","leadingIcon","trailingIcon"]);var J=z||H||!B?H?"ROUTER_LINK":T?"EXTERNAL_LINK":"LINK":D?
Object(o.__)("%s (Please try again.)","google-site-kit"),N)),h||(N=Object(o.sprintf)(/* translators: $%s: Error message */
Object(o.__)("Error: %s","google-site-kit"),N));var _=null==r||null===(n=r.data)||void 0===n?void 0:n.reconnectURL;_&&Object(c.a)(_)&&(N=Object(o.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */
Object(o.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),N,_));return e.createElement(u.a,{className:i,type:u.a.TYPES.ERROR,description:e.createElement("span",{dangerouslySetInnerHTML:Object(d.F)(N,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:k?{label:Object(o.__)("Retry","google-site-kit"),onClick:M}:void 0,hideIcon:y})}ErrorNotice.propTypes={className:r.a.string,error:r.a.shape({message:r.a.string}),hasButton:r.a.bool,storeName:r.a.string,message:r.a.string,noPrefix:r.a.bool,skipRetryMessage:r.a.bool,hideIcon:r.a.bool}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var i="modules/search-console",r=1},,function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.createElement("path",{d:"M5 21a1.99 1.99 0 01-1.425-.575A1.99 1.99 0 013 19V5c0-.55.192-1.017.575-1.4.4-.4.875-.6 1.425-.6h7v2H5v14h14v-7h2v7c0 .55-.2 1.025-.6 1.425-.383.383-.85.575-1.4.575H5zm4.7-5.3l-1.4-1.4L17.6 5H14V3h7v7h-2V6.4l-9.3 9.3z"});t.a=function SvgExternal(e){return i.createElement("svg",r({viewBox:"0 0 24 24",fill:"currentColor"},e),a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(1),r=n(17),a=n(9);function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.viewAction,c=void 0===o?"view_notification":o,l=n.confirmAction,s=void 0===l?"confirm_notification":l,u=n.dismissAction,d=void 0===u?"dismiss_notification":u,g=n.clickLearnMoreAction,f=void 0===g?"click_learn_more_link":g,p=Object(r.a)(),m=null!=t?t:"".concat(p,"_").concat(e),b=Object(i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.I.apply(void 0,[m,c].concat(t))}),[m,c]),v=Object(i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.I.apply(void 0,[m,s].concat(t))}),[m,s]),h=Object(i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.I.apply(void 0,[m,d].concat(t))}),[m,d]),j=Object(i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.I.apply(void 0,[m,f].concat(t))}),[m,f]);return{view:b,confirm:v,dismiss:h,clickLearnMore:j}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CTAButton}));var i=n(0),r=n.n(i),a=n(11);function CTAButton(t){var n=t.label,i=t.ariaLabel,r=t.disabled,o=t.inProgress,c=t.onClick,l=t.href;return n&&(c||l)?e.createElement(a.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":i,disabled:r||o,isSaving:o,onClick:c,href:l},n):null}CTAButton.propTypes={label:r.a.string,ariaLabel:r.a.string,disabled:r.a.bool,inProgress:r.a.bool,onClick:r.a.func,href:r.a.string,dismissOnClick:r.a.bool,dismissOptions:r.a.shape({expiresInSeconds:r.a.number,skipHidingFromQueue:r.a.bool})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DismissButton}));var i=n(0),r=n.n(i),a=n(2),o=n(11);function DismissButton(t){var n=t.className,i=t.label,r=void 0===i?Object(a.__)("Maybe later","google-site-kit"):i,c=t.onClick,l=t.disabled,s=t.tertiary,u=void 0===s||s;return c?e.createElement(o.Button,{className:n,onClick:c,disabled:l,tertiary:u},r):null}DismissButton.propTypes={className:r.a.string,label:r.a.string,onClick:r.a.func,disabled:r.a.bool,tertiary:r.a.bool,dismissOptions:r.a.shape({expiresInSeconds:r.a.number,skipHidingFromQueue:r.a.bool})}}).call(this,n(3))},,,function(e,t,n){"use strict";n.r(t),n.d(t,"CONTEXT_MAIN_DASHBOARD_KEY_METRICS",(function(){return i})),n.d(t,"CONTEXT_MAIN_DASHBOARD_TRAFFIC",(function(){return r})),n.d(t,"CONTEXT_MAIN_DASHBOARD_CONTENT",(function(){return a})),n.d(t,"CONTEXT_MAIN_DASHBOARD_SPEED",(function(){return o})),n.d(t,"CONTEXT_MAIN_DASHBOARD_MONETIZATION",(function(){return c})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_TRA
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?N(a,b(b({},o),{},{unit:"second"})):"",r?N(r,b(b({},o),{},{unit:"minute"})):"",i?N(i,b(b({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(p.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(p.__)("%ds","google-site-kit"),a);if(0===e)return t;var n=Object(p.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(p.__)("%dm","google-site-kit"),r),o=Object(p.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
Object(p.__)("%dh","google-site-kit"),i);return Object(p.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",r?n:"",i?o:"").trim()}}}function y(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function E(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(p.sprintf)(
// translators: %s: an abbreviated number in millions.
Object(p.__)("%sM","google-site-kit"),N(y(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(
// translators: %s: an abbreviated number in thousands.
Object(p.__)("%sK","google-site-kit"),N(y(e))):1e3<=e?Object(p.sprintf)(
// translators: %s: an abbreviated number in thousands.
Object(p.__)("%sK","google-site-kit"),N(y(e),e%10==0?{}:t)):N(e,{signDisplay:"never",maximumFractionDigits:1})}function O(e){var t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:Object(d.isPlainObject)(e)&&(t=b({},e)),t}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n=O(t),i=n.style,r=void 0===i?"metric":i;return"metric"===r?E(e):"duration"===r?v(e,n):"durationISO"===r?h(e):N(e,n)}var k=f()(console.warn);function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,i=void 0===n?D():n,a=u()(t,["locale"]);try{return new Intl.NumberFormat(i,a).format(e)}catch(t){k("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(i),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,g=Object.entries(a);d<g.length;d++){var f=r()(g[d],2),p=f[0],m=f[1];c[p]&&m===c[p]||(l.includes(p)||(s[p]=m))}try{return new Intl.NumberFormat(i,s).format(e)}catch(t){return new Intl.NumberFormat(i).format(e)}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,i=void 0===n?D():n,r=t.style,a=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(i,{style:a,type:c});return l.format(e)}
/* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return e.join(s)}function D(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var i=n.match(/^(\w{2})?(_)?(\w{2})/);if(i&&i[0])return i[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(27))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var i=n(160),r=n.n(i)()(e)}).call(this,n(27))},,function(e,t,n){"use strict";(function(e){var i=n(0),r=n.n(i),a=n(10),o=n.n(a);function ChangeArrow(t){var n=t.direction,i=t.invertColor,r=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":i}),width:r,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:r.a.string,invertColor:r.a.bool,width:r.a.number,height:r.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i="search-console"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(12),r=n.n(i);function a(e,t){var n=t.dateRangeLength;r()(Array.isArray(e),"report must be an array to partition."),r()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var i=-1*n;return{currentRange:e.slice(i),compareRange:e.slice(2*i,i)}}},function(e,t,n){"use strict";function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()}function a(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a}))},function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.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){return i.createElement("svg",r({viewBox:"0 0 24 24",fill:"none"},e),a)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var i=n(38),r=n.n(i),a=n(90);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(e,t)}}function c(e){var t,n="object"===r()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CTAButton}));var i=n(0),r=n.n(i),a=n(11),o=n(75);function CTAButton(t){var n,i=t.label,r=t.disabled,c=t.inProgress,l=t.onClick,s=t.href,u=t.external,d=t.hideExternalIndicator;return u&&!d&&(n=e.createElement(o.a,{width:14,height:14})),e.createElement(a.SpinnerButton,{className:"googlesitekit-notice__cta",disabled:r,isSaving:c,onClick:l,href:s,target:u?"_blank":"_self",trailingIcon:n},i)}CTAButton.propTypes={label:r.a.string.isRequired,disabled:r.a.bool,inProgress:r.a.bool,onClick:r.a.func,href:r.a.string,external:r.a.bool,hideExternalIndicator:r.a.bool}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DismissButton}));var i=n(0),r=n.n(i),a=n(2),o=n(11);function DismissButton(t){var n=t.label,i=void 0===n?Object(a.__)("Got it","google-site-kit"):n,r=t.onClick,c=t.disabled;return e.createElement(o.Button,{onClick:r,disabled:c,tertiary:!0},i)}DismissButton.propTypes={label:r.a.string,onClick:r.a.func.isRequired,disabled:r.a.bool}}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(func
Object(s.__)("<strong>Note:</strong> %s","google-site-kit"),k),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",onClick:f,disabled:A,tertiary:!0},Object(s.__)("Cancel","google-site-kit")),R?e.createElement(u.Button,{href:R,onClick:y,target:"_blank",danger:_},M):e.createElement(u.SpinnerButton,{onClick:y,danger:_,disabled:A,isSaving:A},M||Object(s.__)("Disconnect","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:r.a.string,dialogActive:r.a.bool,handleDialog:r.a.func,handleConfirm:r.a.func.isRequired,onOpen:r.a.func,onClose:r.a.func,title:r.a.string,confirmButton:r.a.string,danger:r.a.bool,small:r.a.bool,medium:r.a.bool,buttonLink:r.a.string},t.a=ModalDialog}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var i=n(0),r=n.n(i),a=n(10),o=n.n(a),c=n(44),l=n(2),s=n(22),u=n(37);function SourceLink(t){var n=t.name,i=t.href,r=t.className,a=t.external;return Object(u.a)()?null:e.createElement("div",{className:o()("googlesitekit-source-link",r)},Object(c.a)(Object(l.sprintf)(/* translators: %s: source link */
Object(l.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(s.a,{key:"link",href:i,external:a})}))}SourceLink.propTypes={name:r.a.string,href:r.a.string,className:r.a.string,external:r.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportErrorActions}));var i=n(5),r=n.n(i),a=n(0),o=n.n(a),c=n(1),l=n(44),s=n(2),u=n(4),d=n(11),g=n(13),f=n(23),p=n(36),m=n(37),b=n(22);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(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){r()(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,i=t.error,r=t.GetHelpLink,a=t.hideGetHelpLink,o=t.buttonVariant,v=t.onRetry,j=t.onRequestAccess,I=t.getHelpClassName,y=t.RequestAccessButton,E=t.RetryButton,O=Object(m.a)(),M=Object(u.useSelect)((function(e){return e(f.a).getModuleStoreName(n)})),k=Object(u.useSelect)((function(e){var t;return"function"==typeof(null===(t=e(M))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(M).getServiceEntityAccessURL():null})),N=Array.isArray(i)?i:[i],_=Object(u.useSelect)((function(e){return N.map((function(t){var n,i=null===(n=e(M))||void 0===n?void 0:n.getSelectorDataForError(t);return h(h({},t),{},{selectorData:i})}))})),D=null==_?void 0:_.filter((function(e){return Object(p.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),A=!!D.length,T=Object(u.useSelect)((function(e){var t=h({},A?D[0]:N[0]);return Object(p.e)(t)&&(t.code="".concat(n,"_insufficient_permissions")),e(g.c).getErrorTroubleshootingLinkURL(t)})),S=Object(u.useDispatch)(),w=N.some((function(e){return Object(p.e)(e)})),C=Object(c.useCallback)((function(){D.forEach((function(e){var t=e.selectorData;S(t.storeName).invalidateResolution(t.name,t.args)})),null==v||v()}),[S,D,v]),z=k&&w&&!O;return e.createElement("div",{className:"googlesitekit-report-error-actions"},z&&("function"==typeof y?e.createElement(y,{requestAccessURL:k}):e.createElement(d.Button,{onClick:j,href:k,target:"_blank",danger:"danger"===o,tertiary:"tertiary"===o},Object(s.__)("Request access","google-site-kit"))),A&&e.createElement(c.Fragment,null,"function"==typeof E?e.createElement(E,{handleRetry:C}):e.createElement(d.Button,{onClick:C,danger:"danger"===o,tertiary:"tertiary"===o},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(b.a,{href:T,external:!0,hideExternalIndicator:!0},Object(s.__)("Get help","google-site-kit"))}))),!A&&!a&&e.createElement("div",{className:I},"function"==typeof r?e.createElement(r,{linkURL:T}):e.createElement(b.a,{href:T,external:!0,hideExternalIndicator:!0},Object(s.__)("Get help","google-site-kit"))))}ReportErrorActions.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired,GetHelpLink:o.a.elementType,hideGetHelpLink:o.a.bool,buttonVariant:o.a.string,onRetry:o.a.func,onRequestAccess:o.a.func,getHelpClassName:o.a.string,RequestAccessButton:o.a.elementType,RetryButton:o.a.elementType}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return DismissButton})),n.d(t,"a",(function(){return c}));var i=n(0),r=n.n(i),a=n(2),o=n(11);function DismissButton(t){var n=t.label,i=void 0===n?Object(a.__)("Maybe later","google-site-kit"):n,r=t.onClick,c=t.disabled;return e.createElement(o.Button,{onClick:r,disabled:c,tertiary:!0},i)}var c={label:r.a.string,onClick:r.a.func,disabled:r.a.bool};Dis
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"),i[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"),i.join(Object(a._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(l.a,{title:Object(a.__)("Data Unavailable","google-site-kit"),description:r})}RecoverableModules.propTypes={moduleSlugs:r.a.arrayOf(r.a.string).isRequired}}).call(this,n(3))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var i=n(2),r="audience-segmentation-info-notice-ui",a="audience-segmentation-info-notice",o=[{slug:"new-visitors",content:Object(i.__)("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(i.__)("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(i.__)("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(i.__)("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(i.__)("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(i.__)("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(i.__)("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";n.d(t,"a",(function(){return o}));var i=n(2),r=n(93),a=n(28);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t||{},o=n.slug,c=void 0===o?"":o,l=n.name,s=void 0===l?"":l,u=n.owner,d=void 0===u?{}:u;if(!c||!s)return e;var g="",f="";return a.g===c?e.match(/account/i)?g=Object(i.__)("Your Google account does not have sufficient permissions for this Analytics account, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?g=Object(i.__)("Your Google account does not have sufficient permissions for this Analytics property, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(g=Object(i.__)("Your Google account does not have sufficient permissions for this Analytics view, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit")):r.a===c&&(g=Object(i.__)("Your Google account does not have sufficient permissions for this Search Console property, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit")),g||(g=Object(i.sprintf)(/* translators: %s: module name */
Object(i.__)("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"),s)),d&&d.login&&(f=Object(i.sprintf)(/* translators: %s: owner name */
Object(i.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),d.login)),f||(f=Object(i.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(g," ").concat(f)}},function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o=i.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 i.createElement("svg",r({fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e),a,o)}},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var i=n(5),r=n.n(i),a=n(0),o=n.n(a),c=n(14),l=n(1),s=n(2),u=n(4),d=n(23),g=n(36),f=n(178),p=n(90),m=n(112),b=n(147),v=n(37),h=n(72);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ReportError(t){var n,i=t.moduleSlug,r=t.error,a=Object(v.a)(),o=Object(u.useSelect)((function(e){return e(d.a).getModule(i)})),j=Array.isArray(r)?r:[r];function y(e){return Object(g.e)(e)?a?(n=Object(s.sprintf)(/* translators: %s: module name */
Object(s.__)("Access lost to %s","google-site-kit"),null==o?void 0:o.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==o?void 0:o.name)):(n=Object(s.sprintf)(/* translators: %s: module name */
Object(s.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),Object(f.a)(e.message,o)):Object(g.b)(e)}var E=Object(c.uniqWith)(j.map((function(e){var t;return I(I({},e),{},{message:y(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})),O=j.some((function(e){return Object(g.e)(e)}));O||1!==E.length?!O&&E.length>1&&(n=Object(s.sprintf)(/* translators: %s: module name */
Object(s.__)("Data errors in %s","google-site-kit"),null==o?void 0:o.name)):n=Object(s.sprintf)(/* translators: %s: module name */
Object(s.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name);var M=e.createElement(l.Fragment,null,E.map((function(t){var n;return(null==t||null===(n=t.data)||void 0===n?void 0:n.reconnectURL)?e.createElement(h.a,{key:t.message,error:t,message:t.message}):e.createElement("p",{key:t.message},p.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(m.a,{title:n,description:M,error:!0},e.createElement(b.a,{moduleSlug:i,error:r}))}ReportError.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired}}).call(this,n(3))},,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var i=n(0),r=n.n(i),a=n(2),o=n(4),c=n(23),l=n(112);function ReportZero(t){var n=t.moduleSlug,i=Object(o.useSelect)((function(e){return e(c.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==i?void 0:i.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==i?void 0:i.name)})}ReportZero.propTypes={moduleSlug:r.a.string.isRequired}}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AudienceTileLoading}));var i=n(51);function AudienceTileLoading(){return e.createElement("div",{className:"googlesitekit-audience-segmentation-tile-loading"},e.createElement(i.a,{width:"100%",height:"20px"}),e.createElement(i.a,{width:"100%",height:"52px"}),e.createElement(i.a,{width:"100%",height:"52px"}),e.createElement(i.a,{width:"100%",height:"52px"}),e.createElement(i.a,{width:"100%",height:"52px"}),e.createElement(i.a,{width:"100%",height:"52px"}),e.createElement(i.a,{width:"100%",height:"52px"}))}}).call(this,n(3))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var i=n(6),r=n.n(i),a=n(16),o=n.n(a),c=n(1),l=n(4),s=n(13),u=n(7),d=n(23),g=n(40),f=n(48),p=n(41),m=n(17);function b(e){var t=Object(m.a)(),n=Object(l.useSelect)((function(t){return t(d.a).getModule(e)})),i=Object(l.useSelect)((function(e){return e(u.a).hasCapability(u.K)})),a=Object(l.useDispatch)(d.a).activateModule,b=Object(l.useDispatch)(g.a).navigateTo,v=Object(l.useDispatch)(s.c).setInternalServerError,h=Object(c.useCallback)(o()(r.a.mark((function n(){var i,o,c;return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a(e);case 2:if(i=n.sent,o=i.error,c=i.response,o){n.next=13;break}return n.next=8,Object(p.b)("".concat(t,"_widget-activation-cta"),"activate_module",e);case 8:return n.next=10,Object(f.f)("module_setup",e,{ttl:300});case 10:b(c.moduleReauthURL),n.next=14;break;case 13:v({id:"".concat(e,"-setup-error"),description:o.message});case 14:case"end":return n.stop()}}),n)}))),[a,e,b,v,t]);return(null==n?void 0:n.name)&&i?h:null}},,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ChangeBadge}));var i=n(0),r=n.n(i),a=n(10),o=n.n(a),c=n(9);function ChangeBadge(t){var n=t.previousValue,i=t.currentValue,r=t.isAbsolute?i-n:Object(c.g)(n,i),a=r<0,l=0===r;return null===r?null:e.createElement("div",{className:o()("googlesitekit-change-badge",{"googlesitekit-change-badge--negative":a,"googlesitekit-change-badge--zero":l})},Object(c.B)(r,{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:1}))}ChangeBadge.propTypes={isAbsolute:r.a.bool,previousValue:r.a.number.isRequired,currentValue:r.a.number.isRequired}}).call(this,n(3))},,,,,,,,,,function(e,t,n){"use strict";var i=n(237);n.d(t,"b",(function(){return i.a}));var r=n(250);n.d(t,"a",(function(){return r.a}))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(14);function r(e){return Object(i.isFinite)(e)?e:0}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricTileWrapper}));var i=n(10),r=n.n(i),a=n(14),o=n(0),c=n.n(o),l=n(1),s=n(2),u=n(156),d=n(458),g=n(459),f=n(301),p=n(392),m=n(147),b=n(36),v=n(9),h=n(17);function MetricTileWrapper(t){var n,i,o,c=t.className,j=t.children,I=t.error,y=t.loading,E=t.moduleSlug,O=t.Widget,M=t.widgetSlug,k=t.title,N=void 0===k?null===(n=u.a[M])||void 0===n?void 0:n.title:k,_=t.infoTooltip,D=void 0===_?(null===(i=u.a[M])||void 0===i?void 0:i.infoTooltip)||(null===(o=u.a[M])||void 0===o?void 0:o.description):_,A=Object(h.a)(),T=!!I&&Object(a.castArray)(I).some(b.e),S=Object(l.useCallback)((function(){Object(v.I)("".concat(A,"_kmw"),"data_loading_error_retry")}),[A]);return Object(l.useEffect)((function(){I&&Object(v.I)("".concat(A,"_kmw"),"data_loading_error")}),[A,I]),I?e.createElement(f.a,{title:T?Object(s.__)("Insufficient permissions","google-site-kit"):Object(s.__)("Data loading failed","google-site-kit"),headerText:N,infoTooltip:D},e.createElement(m.a,{moduleSlug:E,error:I,onRetry:S,GetHelpLink:T?d.a:void 0,getHelpClassName:"googlesitekit-error-retry-text"})):e.createElement(O,{noPadding:!0},e.createElement("div",{className:r()("googlesitekit-km-widget-tile",c)},e.createElement(p.a,{title:N,infoTooltip:D,loading:y}),e.createElement("div",{className:"googlesitekit-km-widget-tile__body"},
Object(p.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),$,_),{MaxCount:e.createElement("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})}));return e.createElement("footer",{className:"googlesitekit-selection-panel-footer"},E&&e.createElement(v.a,{error:E}),e.createElement("div",{className:"googlesitekit-selection-panel-footer__content"},F&&O?e.createElement(y.a,{type:y.a.TYPES.ERROR,description:O}):ee,e.createElement("div",{className:"googlesitekit-selection-panel-footer__actions"},e.createElement(b.Button,{onClick:Q,disabled:D,tertiary:!0},Object(p.__)("Cancel","google-site-kit")),e.createElement(b.SpinnerButton,{onClick:Y,isSaving:D,disabled:$<k||$>_||D||!C&&Z},L||H))))}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(3))},,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var i=n(5),r=n.n(i),a=n(18),o=n.n(a),c=n(19),l=n.n(c),s=n(0),u=n.n(s),d=n(1),g=n(158),f=n(185);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function WidgetReportZero(t){var n=t.widgetSlug,i=t.moduleSlug,r=l()(t,["widgetSlug","moduleSlug"]),a=Object(d.useMemo)((function(){return{moduleSlug:i}}),[i]);return Object(g.a)(n,f.a,a),e.createElement(f.a,o()({moduleSlug:i},r))}WidgetReportZero.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){r()(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}({widgetSlug:u.a.string.isRequired},f.a.propTypes)}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var i=n(5),r=n.n(i),a=n(19),o=n.n(a),c=n(0),l=n.n(c),s=n(181);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function WidgetReportError(t){t.widgetSlug;var n=o()(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){r()(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(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WPDashboardReportError}));var i=n(0),r=n.n(i),a=n(550),o=n(213),c=n(4),l=n(26),s=n(181);function WPDashboardReportError(t){var n=t.moduleSlug,i=t.error,r=Object(o.a)(WPDashboardReportError,"WPDashboardReportError"),u=Object(c.useDispatch)(l.b).setValue,d=i.message,g=Object(c.useSelect)((function(e){return e(l.b).getValue("WPDashboardReportError-".concat(n,"-").concat(d))}));return Object(a.a)((function(){u("WPDashboardReportError-".concat(n,"-").concat(d),r)}),(function(){u("WPDashboardReportError-".concat(n,"-").concat(d),void 0)})),g!==r?null:e.createElement(s.a,{moduleSlug:n,error:i})}WPDashboardReportError.propTypes={moduleSlug:r.a.string.isRequired,error:r.a.object.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}
Object(c.__)('%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:r,external:!0,hideExternalIndicator:!0})});case"returning-visitors":return Object(o.a)(Object(c.sprintf)(/* translators: %s: is the audience name */
Object(c.__)('%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:r,external:!0,hideExternalIndicator:!0})});default:return Object(o.a)(Object(c.sprintf)(/* translators: %s: is the audience name */
Object(c.__)("%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(i,"</strong>")),{strong:e.createElement("strong",null),link:e.createElement(s.a,{href:r,external:!0,hideExternalIndicator:!0})})}}),[n,i,r])}AudienceTooltipMessage.propTypes={audienceSlug:r.a.string.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.createElement("path",{d:"M2.675 72.31a29.248 29.248 0 005.678 8.74c9.451 9.955 23.416 10.799 36.223 8.308a88.838 88.838 0 0035.776-15.752c6.09-4.513 12.104-10.113 20.167-10.363 3.027-.093 6.158.741 8.445 2.71 4.753 4.063 4.668 11.012 8.377 15.829 4.932 6.405 12.026 8.389 19.764 9.128 21.862 2.086 47.902-4.758 62.939-21.412 13.426-14.868 15.038-38.526-1.214-52.08-7.425-6.192-17.606-9.03-27.216-7.584-7.345 1.105-14.801 4.467-22.404 5.401-8.954 1.103-14.49-2.659-21.734-7.04C114.852.58 98.164-2.345 83.874 2.072 70.195 6.301 60.35 17.846 47.04 22.918c-11.502 4.385-25.089 3.717-35.082 10.86C.133 42.228-2.84 59.286 2.675 72.31z",fill:"#B8E6CA"}),o=i.createElement("path",{d:"M108.273 109c54.612 0 98.883-1.735 98.883-3.874 0-2.14-44.271-3.875-98.883-3.875-54.611 0-98.882 1.735-98.882 3.875 0 2.139 44.27 3.874 98.882 3.874z",fill:"#161B18",opacity:.1}),c=i.createElement("path",{d:"M108.273 109c54.612 0 98.883-1.735 98.883-3.874 0-2.14-44.271-3.875-98.883-3.875-54.611 0-98.882 1.735-98.882 3.875 0 2.139 44.27 3.874 98.882 3.874z",fill:"#CBD0D3"}),l=i.createElement("path",{d:"M134.765 53.225c-1.065 16.927-6.936 32.112-3.012 51.193h-4.468M139.814 104.418h-4.47l7.9-51.193",stroke:"#161B18",strokeWidth:1.472,strokeLinecap:"round",strokeLinejoin:"round"}),s=i.createElement("path",{d:"M120.504 36.651c-3.814 1.73-11.135 5.58-11.135 13.398M147.266 35.787c3.493 1.787 11.06 7.678 11.977 13.225",stroke:"#000",strokeWidth:1.468,strokeLinecap:"round"}),u=i.createElement("path",{d:"M151.555 75.952l-3.102.282-18.926 1.719-11.063 1.002-1.049-24.735-1.825-43.046 34.528-1.262.697 32.058.094 4.316.642 29.565.004.1z",fill:"#77AD8C"}),d=i.createElement("path",{d:"M148.453 76.234l1.78-.162 1.323-.12-1.439-66.042-1.983.091 1.281 63.2-24.976 2.127.862-19.15-7.844-1.074.86 20.438.107 2.465.041.946 11.063-1.002 18.927-1.719-.002.002z",fill:"#5C9271"}),g=i.createElement("path",{d:"M135.891 70.752c.032.916-.392-20.197-.629-27.044-6.628-3.008-13.797-3.559-20.67-1.228l.628 27.043c6.874-2.33 14.043-1.779 20.671 1.23z",fill:"#CBD0D3"}),f=i.createElement("path",{d:"M135.926 70.752c.01.916-.547-20.194-.629-27.044 6.481-3.306 13.617-4.182 20.592-2.166l.629 27.043c-6.975-2.015-14.111-1.139-20.592 2.167z",fill:"#EBEEF0"}),p=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M133.233 60.796c-.083-3.907-.202-9.298-.333-14.96l.196-.005a8403.731 8403.731 0 01.43 19.559l.023 1.18.004.262a.337.337 0 010 .046v.004l-.001.008a.179.179 0 01-.093.083.177.177 0 01-.1-.08l-.002-.007v-.004-.003l-.001-.02h.001v-.025l-.004-.26-.023-1.18-.097-4.598zm.126 6.063a.19.19 0 01.093-.08.19.19 0 01.097.073l-.19.007zm.194.01v-.001.001zM130.917 60.007c-.084-3.912-.203-9.29-.334-14.911l.197-.004a10934.46 10934.46 0 01.432 19.528l.024 1.198.004.271.001.05v.008l-.004.02c-.054.062-.17.035-.189-.002a.054.054 0 01-.003-.015l-.001-.005v-.018-.035l-.005-.27-.024-1.198c-.022-1.071-.055-2.66-.098-4.617zm.129 6.12l.193-.006-.001-.006c-.02-.037-.135-.063-.19-.002a.079.079 0 00-.002.014zM128.613 59.401c-.086-3.923-.206-9.285-.335-14.834l.197-.005a9889.942 9889.942 0 01.459 20.704l.005.284.001.055v.008l-.001.006a.179.179 0 01-.094.087.184.184 0 01-.1-.082l-.001-.007-.001-.017h.001l-.001-.047-.005-.283-.025-1.221-.1-4.648zm.131 6.199l.195-.007a.192.192 0 00-.1-.081.187.187 0 00-.095.086v.002zM126.303 58.977c-.087-3.938-.207-9.284-.334-14.744l.196-.005c.127 5.46.248 10.807.335 14.744l.102 4.688a412.921 412
Object(u._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",j.length,"google-site-kit"),j.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(3))},function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.createElement("path",{d:"M59.238 58.571c-2.136 20.178 4.272 29.099 20.48 53.216 16.209 24.118-29.092 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.443-3.208 57.819 12.98 90.86 5.9 33.04-7.08 46.385-42.599 43.153-68.059-5.59-44.041-26.24-49.107-34.893-66.461-8.654-17.354 2.902-52.997-30.287-73.16-33.19-20.163-76.71 14.42-112.503 12.37-20.651-1.182-40.932-4.995-59.264.86-18.53 5.918-32.662 22.571-34.335 38.621z",fill:"#B8E6CA"}),o=i.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__filter0_d_2200_11981)"},i.createElement("rect",{x:242.455,y:45.266,width:130.621,height:89.651,rx:10.957,transform:"rotate(15 242.455 45.266)",fill:"#fff"})),c=i.createElement("rect",{x:253.726,y:64.785,width:24.903,height:7.969,rx:3.985,transform:"rotate(15 253.726 64.785)",fill:"#EBEEF0"}),l=i.createElement("rect",{x:249.342,y:81.144,width:49.806,height:19.923,rx:9.961,transform:"rotate(15 249.342 81.144)",fill:"#FFDED3"}),s=i.createElement("rect",{x:240.436,y:114.357,width:99.428,height:8.773,rx:3.985,transform:"rotate(15 240.436 114.357)",fill:"#EBEEF0"}),u=i.createElement("path",{d:"M256.195 90.198l4.644 8.044m0 0l1.412-4.986m-1.412 4.986l-5.023-1.27",stroke:"#fff",strokeWidth:1.494,strokeLinecap:"round",strokeLinejoin:"round"}),d=i.createElement("rect",{x:268.706,y:93.551,width:19.923,height:5.977,rx:1.992,transform:"rotate(15 268.706 93.55)",fill:"#fff"}),g=i.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__filter1_d_2200_11981)"},i.createElement("rect",{x:13.887,y:79.094,width:130.621,height:89.68,rx:10.957,transform:"rotate(-15 13.887 79.094)",fill:"#fff"})),f=i.createElement("rect",{x:32.989,y:90.122,width:62.386,height:7.798,rx:3.899,transform:"rotate(-15 32.99 90.122)",fill:"#EBEEF0"}),p=i.createElement("rect",{x:37.691,y:106.902,width:49.806,height:19.923,rx:9.961,transform:"rotate(-15 37.691 106.902)",fill:"#FFDED3"}),m=i.createElement("rect",{x:46.612,y:140.967,width:99.428,height:7.798,rx:3.899,transform:"rotate(-15 46.612 140.967)",fill:"#EBEEF0"}),b=i.createElement("path",{d:"M48.152 111.318l8.044 4.645m0 0l-1.27-5.024m1.27 5.024l-4.986 1.411",stroke:"#fff",strokeWidth:1.494,strokeLinecap:"round",strokeLinejoin:"round"}),v=i.createElement("rect",{x:60.663,y:107.966,width:19.923,height:5.977,rx:1.992,transform:"rotate(-15 60.663 107.966)",fill:"#fff"}),h=i.createElement("g",{filter:"url(#key-metrics-no-selected-items_svg__filter2_d_2200_11981)"},i.createElement("rect",{x:126.251,y:37.4,width:130.621,height:89.68,rx:10.957,fill:"#fff"})),j=i.createElement("rect",{x:143.013,y:53.134,width:98.333,height:7.867,rx:3.933,fill:"#EBEEF0"}),I=i.createElement("rect",{x:142.369,y:70.423,width:49.806,height:19.923,rx:9.961,fill:"#B8E6CA"}),y=i.createElement("rect",{x:143.013,y:105.84,width:33.04,height:7.867,rx:3.933,fill:"#EBEEF0"}),E=i.createElement("path",{d:"M151.336 84.036l6.568-6.567m0 0l-5.182-.073m5.182.073l.073 5.18",stroke:"#fff",strokeWidth:1.494,strokeLinecap:"round",strokeLinejoin:"round"}),O=i.createElement("rect",{x:164.287,y:77.395,width:19.923,height:5.977,rx:1.992,fill:"#fff"}),M=i.createElement("path",{d:"M59.237 58.571C57.1 78.75 63.509 87.67 79.717 111.787c16.209 24.118-29.091 62.914 5.475 101.268 33.827 37.532 69.419.009 111.314-4.555 29.444-3.208 57.82 12.98 90.86 5.9s46.385-42.599 43.153-68.059c-5.59-44.041-26.24-49.107-34.893-66.461-8.654-17.354 2.902-52.997-30.287-73.16-33.19-20.163-76.71 14.42-112.503 12.37-20.651-1.182-40.932-4.995-59.264.86C75.042 25.867 60.91 42.52
Object(o.__)("Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(c.a,{href:n,external:!0,hideExternalIndicator:!0},Object(o.__)("Get help","google-site-kit"))})}GetHelpLink.propTypes={linkURL:r.a.string.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricTileLoader}));var i=n(51);function MetricTileLoader(){return e.createElement("div",{className:"googlesitekit-km-widget-tile__loading"},e.createElement(i.a,{className:"googlesitekit-km-widget-tile__loading-header",width:"100%",height:"14px"}),e.createElement(i.a,{className:"googlesitekit-km-widget-tile__loading-body",width:"100%",height:"53px"}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var i=n(0),r=n.n(i),a=n(1),o=n(2),c=n(11),l=n(21),s=n(20),u=n(354),d=n(36),g=n(147),f=n(346),p=n(30),m=Object(a.forwardRef)((function(t,n){var i=t.Widget,r=t.errors,a=t.onRetry,m=t.onRequestAccess,b=t.showRetryButton,v=Object(s.e)(),h=v===s.b,j=v===s.c,I=r.some(d.e);return e.createElement(i,{ref:n,className:"googlesitekit-audience-segmentation-error-widget",noPadding:!0},e.createElement(l.e,{className:"googlesitekit-audience-segmentation-error__widget-primary-cell",collapsed:!0},e.createElement(l.k,null,e.createElement(l.a,{smSize:6,mdSize:8,lgSize:7},e.createElement(p.a,{as:"h3",type:"title",size:"large"},I?Object(o.__)("Insufficient permissions","google-site-kit"):Object(o.__)("Your visitor groups data loading failed","google-site-kit")),e.createElement("div",{className:"googlesitekit-widget-audience-segmentation-error__actions"},b&&a?e.createElement(c.Button,{onClick:a,danger:!0},Object(o.__)("Retry","google-site-kit")):e.createElement(g.a,{moduleSlug:"analytics-4",error:r,GetHelpLink:I?f.a:void 0,hideGetHelpLink:!I,buttonVariant:"danger",getHelpClassName:"googlesitekit-error-retry-text",onRetry:a,onRequestAccess:m}))),!h&&!j&&e.createElement(l.a,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:6,mdSize:3,lgSize:5},e.createElement(u.a,{width:"233px"})),j&&e.createElement(l.a,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",mdSize:8},e.createElement(u.a,{width:"233px"})),h&&e.createElement(l.a,{className:"googlesitekit-widget-audience-segmentation-error__svg-wrapper",smSize:8},e.createElement(u.a,{width:"233px"})))))}));m.propTypes={Widget:r.a.elementType.isRequired,errors:r.a.arrayOf(r.a.object).isRequired,onRetry:r.a.func.isRequired,onRequestAccess:r.a.func.isRequired,showRetryButton:r.a.bool},t.a=m}).call(this,n(3))},function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.createElement("g",{clipPath:"url(#audience-segmentation-introductory-graphic-desktop_svg__clip0_1395_20972)"},i.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0h264c8.837 0 16 7.163 16 16v147H0V16z",fill:"#B8E6CA"}),i.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__filter0_d_1395_20972)"},i.createElement("rect",{x:-10,y:25,width:153,height:174,rx:11,fill:"#fff"})),i.createElement("rect",{x:9.031,y:110.641,width:53.016,height:9.516,rx:4.758,fill:"#EBEEF0"}),i.createElement("rect",{x:9.031,y:95.688,width:19.031,height:9.516,rx:4.758,fill:"#EBEEF0"}),i.createElement("rect",{x:9.031,y:148.703,width:19.031,height:9.516,rx:4.758,fill:"#EBEEF0"}),i.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"}),i.createElement("rect",{x:9,y:46,width:36,height:9,rx:4.5,fill:"#EBEEF0"}),i.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"}),i.createElement("g",{filter:"url(#audience-segmentation-introductory-graphic-desktop_svg__filter1_d_1395_20972)"},i.createElement("rect",{x:152,y:25,width:153,height:174,rx:11,fill:"#fff"})),i
Object(c.__)("%s of total pageviews","google-site-kit"),Object(M.B)(C,{style:"percent",maximumFractionDigits:1})),metricValue:w.currentValue,Badge:function Badge(){return e.createElement(y.a,{previousValue:w.previousValue,currentValue:w.currentValue})}}),e.createElement(j.a,{TileIcon:b.a,title:Object(c.__)("Cities with the most visitors","google-site-kit"),topCities:z}),(!H||K&&!P)&&e.createElement(I.a,{audienceTileNumber:i,audienceSlug:a,TileIcon:v.a,title:Object(c.__)("Top content by pageviews","google-site-kit"),topContentTitles:x,topContent:R,isTopContentPartialData:J}))))}AudienceTile.propTypes={audienceTileNumber:o.a.number,audienceSlug:o.a.string.isRequired,title:o.a.string.isRequired,infoTooltip:o.a.oneOfType([o.a.string,o.a.element]),visitors:o.a.object,visitsPerVisitor:o.a.object,pagesPerVisit:o.a.object,pageviews:o.a.object,percentageOfTotalPageViews:o.a.number,topCities:o.a.object,topContent:o.a.object,topContentTitles:o.a.object,hasInvalidCustomDimensionError:o.a.bool,Widget:o.a.elementType.isRequired,audienceResourceName:o.a.string.isRequired,isZeroData:o.a.bool,isPartialData:o.a.bool,isTileHideable:o.a.bool,onHideTile:o.a.func}}).call(this,n(3))},function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.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 i.createElement("svg",r({viewBox:"0 0 20 20",fill:"none"},e),a)}},function(e,t,n){"use strict";var i=n(1);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=i.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 i.createElement("svg",r({viewBox:"0 0 20 20",fill:"none"},e),a)}},function(e,t,n){"use strict";var i=
Object(b._n)("Select at least %1$d group (%2$d selected)","Select at least %1$d groups (%2$d selected)",I.k,"google-site-kit"),I.k,w):w>I.j&&(n=Object(b.sprintf)(/* translators: 1: Maximum number of groups that can be selected. 2: Number of selected groups. */
Object(b.__)("Select up to %1$d groups (%2$d selected)","google-site-kit"),I.j,w));var C=Object(m.useState)(null),z=u()(C,2),R=z[0],x=z[1],P=Object(m.useCallback)(function(){var e=l()(r.a.mark((function e(t){var n,i,a,c;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x(null),e.next=3,A({configuredAudiences:t});case 3:if(n=e.sent,i=n.error){e.next=14;break}if(a=(null==k?void 0:k.filter((function(e){var n=e.replace("audience-tile-","");return!t.includes(n)})))||[],t.every((function(e){return null==k?void 0:k.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,T.apply(void 0,o()(a));case 11:c=e.sent,(i=c.error)&&x(i);case 14:return e.abrupt("return",{error:i});case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[k,T,A]),L=Object(m.useCallback)((function(){var e={USER_AUDIENCE:"user",SITE_KIT_AUDIENCE:"site-kit",DEFAULT_AUDIENCE:"default"},t=S(),n=Object.keys(e).map((function(n){var i=t.filter((function(e){var t=null==_?void 0:_.find((function(t){var n=t.name;return e===n}));return(null==t?void 0:t.audienceType)===n}));return"".concat(e[n],":").concat(i.length)})).join(",");Object(j.I)("".concat(s,"_audiences-sidebar"),"audiences_sidebar_save",n)}),[_,S,s]),B=Object(m.useCallback)((function(){Object(j.I)("".concat(s,"_audiences-sidebar"),"audiences_sidebar_cancel")}),[s]);return e.createElement(O.a,{savedItemSlugs:c,selectedItemSlugs:d,saveSettings:P,saveError:f||R,itemLimitError:n,minSelectedItemCount:I.k,maxSelectedItemCount:I.j,isBusy:p,isOpen:i,closePanel:a,onSaveSuccess:L,onCancel:B})}Footer.propTypes={isOpen:p.a.bool,closePanel:p.a.func.isRequired,savedItemSlugs:p.a.array}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Header}));var i=n(0),r=n.n(i),a=n(1),o=n(44),c=n(2),l=n(4),s=n(40),u=n(13),d=n(7),g=n(37),f=n(22),p=n(33),m=n(129);function Header(t){var n=t.closePanel,i=Object(g.a)(),r=Object(l.useSelect)((function(e){return e(u.c).getSiteKitAdminSettingsURL({scrollTo:"visitor-groups"})})),b=Object(l.useSelect)((function(e){return e(d.a).isSavingUserAudienceSettings()})),v=Object(l.useDispatch)(s.a).navigateTo,h=Object(a.useCallback)((function(){return v(r)}),[r,v]);return e.createElement(m.b,{title:Object(c.__)("Select visitor groups","google-site-kit"),onCloseClick:n},!i&&e.createElement(p.a,null,Object(o.a)(Object(c.__)("You can deactivate this widget in <link><strong>Settings</strong></link>","google-site-kit"),{link:e.createElement(f.a,{onClick:h,disabled:b,secondary:!0}),strong:e.createElement("strong",null)})))}Header.propTypes={closePanel:r.a.func.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return LearnMoreLink}));var i=n(2),r=n(44),a=n(4),o=n(13),c=n(22);function LearnMoreLink(){var t=Object(a.useSelect)((function(e){return e(o.c).getGoogleSupportURL({path:"/analytics/answer/12799087"})}));return e.createElement("div",{className:"googlesitekit-audience-selection-panel__learn-more"},Object(r.a)(Object(i.__)("Learn more about grouping site visitors and audiences in <link><strong>Analytics</strong></link>","google-site-kit"),{link:e.createElement(c.a,{href:t,secondary:!0,external:!0}),strong:e.createElement("strong",null)}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AudienceCreationSuccessNotice}));var i=n(1),r=n(2),a=n(4),o=n(17),c=n(9),l=n(46),s=n(26),u=n(11),d=n(118);function AudienceCreationSuccessNotice(){var t=Object(o.a)(),n=Object(a.useDispatch)(s.b).setValue,g=Object(a.useSelect)((function(e){return e(s.b).getValue(l.e)})),f=Object(a.useSelect)((function(e){return e(s.b).getValue(l.i)}));return Object(i.useEffect)((function(){f&&g&&Object(c.I)("".concat(t,"_audiences-sidebar-create-audiences-success"),"view_notification")}),[f,g,t]),g?e.createElement("div",{className:"googlesitekit-audience-selection-panel__success-notice"},e.createElement("div",{className:"googlesitekit-audience-selection-panel__succes