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

98 lines
366 KiB
JavaScript
Raw Normal View History

2024-04-17 11:32:24 +02:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[15],[,,function(e,t){e.exports=googlesitekit.i18n},,function(e,t){e.exports=googlesitekit.data},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"y",(function(){return c})),n.d(t,"D",(function(){return s})),n.d(t,"F",(function(){return l})),n.d(t,"B",(function(){return u})),n.d(t,"C",(function(){return d})),n.d(t,"A",(function(){return g})),n.d(t,"z",(function(){return f})),n.d(t,"E",(function(){return m})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return v})),n.d(t,"i",(function(){return b})),n.d(t,"k",(function(){return _})),n.d(t,"l",(function(){return E})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return O})),n.d(t,"p",(function(){return k})),n.d(t,"q",(function(){return j})),n.d(t,"r",(function(){return S})),n.d(t,"s",(function(){return w})),n.d(t,"u",(function(){return A})),n.d(t,"j",(function(){return C})),n.d(t,"w",(function(){return N})),n.d(t,"t",(function(){return x})),n.d(t,"x",(function(){return D})),n.d(t,"v",(function(){return T})),n.d(t,"h",(function(){return M})),n.d(t,"o",(function(){return R})),n.d(t,"H",(function(){return P})),n.d(t,"G",(function(){return L}));var r="core/user",i="connected_url_mismatch",a="__global",o="temporary_persist_permission_error",c="googlesitekit_authenticate",s="googlesitekit_setup",l="googlesitekit_view_dashboard",u="googlesitekit_manage_options",d="googlesitekit_read_shared_module_data",g="googlesitekit_manage_module_sharing_options",f="googlesitekit_delegate_module_sharing_management",m="googlesitekit_update_plugins",p="kmAnalyticsAdSenseTopEarningContent",h="kmAnalyticsEngagedTrafficSource",v="kmAnalyticsLeastEngagingPages",b="kmAnalyticsNewVisitors",_="kmAnalyticsPopularAuthors",E="kmAnalyticsPopularContent",y="kmAnalyticsPopularProducts",O="kmAnalyticsReturningVisitors",k="kmAnalyticsTopCities",j="kmAnalyticsTopConvertingTrafficSource",S="kmAnalyticsTopCountries",w="kmAnalyticsTopRecentTrendingPages",A="kmAnalyticsTopTrafficSource",C="kmAnalyticsPagesPerVisit",N="kmAnalyticsVisitLength",x="kmAnalyticsTopReturningVisitorPages",D="kmSearchConsolePopularKeywords",T="kmAnalyticsVisitsPerVisitor",M="kmAnalyticsMostEngagingPages",R="kmAnalyticsTopCategories",P=[p,h,v,b,_,E,y,O,R,k,j,S,w,A,C,N,x,T,M,R],L=[].concat(P,[D])},function(e,t,n){"use strict";(function(e){n.d(t,"p",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"E",(function(){return v})),n.d(t,"h",(function(){return b}));var r=n(13),i=n(32);n.d(t,"B",(function(){return i.b})),n.d(t,"C",(function(){return i.c}));var a=n(72);n.d(t,"y",(function(){return a.a})),n.d(t,"D",(function(){return a.b}));var o=n(91);n.d(t,"A",(function(){return o.a}));n(92);var c=n(70);n.d(t,"i",(function(){return c.a})),n.d(t,"n",(function(){return c.b})),n.d(t,"t",(function(){return c.c})),n.d(t,"w",(function(){return c.d})),n.d(t,"x",(function(){return c.e}));var s=n(93);n.d(t,"u",(function(){return s.a}));var l=n(94);n.d(t,"f",(function(){return l.a})),n.d(t,"g",(function(){return l.b}));var u=n(61);n.d(t,"a",(function(){return u.a})),n.d(t,"b",(function(){return u.b})),n.d(t,"c",(function(){return u.e})),n.d(t,"j",(function(){return u.f})),n.d(t,"l",(function(){return u.g})),n.d(t,"o",(function(){return u.h})),n.d(t,"z",(function(){return u.k}));var d=n(95);n.d(t,"e",(function(){return d.a})),n.d(t,"k",(function(){return d.b}));var g=n(76);n.d(t,"m",(function(){return g.a})),n.d(t,"q",(function(){return g.b})),n.d(t,"v",(function(){return g.c}));var f=n(96);n.d(t,"s",(function(){return f.a}));var m=n(97);n.d(t,"r",(function(){return m.a})),e._gsktag=i.b;var p=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}};function 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;re
/* translators: %s: number of days */
Object(g._n)("Last %s day","Last %s days",e,"google-site-kit"),e)};return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i=Object(r.createContext)(""),a=(i.Consumer,i.Provider);t.b=i},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"CONTEXT_MAIN_DASHBOARD_KEY_METRICS",(function(){return r})),n.d(t,"CONTEXT_MAIN_DASHBOARD_TRAFFIC",(function(){return i})),n.d(t,"CONTEXT_MAIN_DASHBOARD_CONTENT",(function(){return a})),n.d(t,"CONTEXT_MAIN_DASHBOARD_SPEED",(function(){return o})),n.d(t,"CONTEXT_MAIN_DASHBOARD_MONETIZATION",(function(){return c})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_TRAFFIC",(function(){return s})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_CONTENT",(function(){return l})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_SPEED",(function(){return u})),n.d(t,"CONTEXT_ENTITY_DASHBOARD_MONETIZATION",(function(){return d}));var r="mainDashboardKeyMetrics",i="mainDashboardTraffic",a="mainDashboardContent",o="mainDashboardSpeed",c="mainDashboardMonetization",s="entityDashboardTraffic",l="entityDashboardContent",u="entityDashboardSpeed",d="entityDashboardMonetization";t.default={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:r,CONTEXT_MAIN_DASHBOARD_TRAFFIC:i,CONTEXT_MAIN_DASHBOARD_CONTENT:a,CONTEXT_MAIN_DASHBOARD_SPEED:o,CONTEXT_MAIN_DASHBOARD_MONETIZATION:c,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:s,CONTEXT_ENTITY_DASHBOARD_CONTENT:l,CONTEXT_ENTITY_DASHBOARD_SPEED:u,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:d}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={EXTERNAL:"external",INTERNAL:"internal"}},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return w})),n.d(t,"c",(function(){return A})),n.d(t,"b",(function(){return C}));var r=n(16),i=n.n(r),a=n(30),o=n.n(a),c=n(6),s=n.n(c),l=n(22),u=n.n(l),d=n(13),g=n(69),f=n.n(g),m=n(2);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(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=E(e,t),r=n.formatUnit,i=n.formatDecimal;try{return r()}catch(e){return i()}},b=function(e){var t=_(e),n=t.hours,r=t.minutes,i=t.seconds;return i=("0"+i).slice(-2),r=("0"+r).slice(-2),"00"===(n=("0"+n).slice(-2))?"".concat(r,":").concat(i):"".concat(n,":").concat(r,":").concat(i)},_=function(e){return e=parseInt(e,10),Number.isNaN(e)&&(e=0),{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_(e),r=n.hours,i=n.minutes,a=n.seconds;return{hours:r,minutes:i,seconds:a,formatUnit:function(){var n=t.unitDisplay,o=h(h({unitDisplay:void 0===n?"short":n},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?w(a,h(h({},o),{},{unit:"second"})):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?w(a,h(h({},o),{},{unit:"second"})):"",i?w(i,h(h({},o),{},{unit:"minute"})):"",r?w(r,h(h({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(m.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(m.__)("%ds","google-site-kit"),a);if(0===e)return t;var n=Object(m.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(m.__)("%dm","google-site-kit"),i),o=Object(m.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
Object(m.__)("%dh","google-site-kit"),r);return Object(m.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",i?n:"",r?o:"").trim()}}},y=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},O=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in millions.
Object(m.__)("%sM","google-site-kit"),w(y(e),e%10==0?{}:t)):1e4<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(y(e))):1e3<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(y(e),e%10==0?{}:t)):w(e,{signDisplay:"never",maximumFractionDigits:1})};function 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,o()(e)),e=0);var n=k(t),r=n.style,i=void 0===r?"metric":r;return"metric"===i?O(e):"duration"===i?v(e,n):"durationISO"===i?b(e):w(e,n)}var S=f()(console.warn),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?C():n,a=u()(t,["locale"]);try{return new Intl.NumberFormat(r,a).format(e)}catch(t){S("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,g=Object.entries(a);d<g.length;d++){var f=i()(g[d],2),m=f[0],p=f[1];c[m]&&p===c[m]||(s.includes(m)||(l[m]=p))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?C():n,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:a,type:c});return s.format(e)}
/* translators: used between list items, there is a space after the comma. */var l=Object(m.__)(", ","google-site-kit");return e.join(l)},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(24))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(30),i=n.n(r),a=n(78),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(e,t)}};function c(e){var t,n="object"===i()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c}));var r=n(105);function i(e){try{return new URL(e).pathname}catch(e){}return null}function a(e,t){try{return new URL(t,e).href}catch(e){}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function o(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function c(e,t){if(!Object(r.a)(e))return e;if(e.length<=t)return e;var n=new URL(e),i=e.replace(n.origin,"");if(i.length<t)return i;var a=i.length-Math.floor(t)+1;return"…"+i.substr(a)}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(105),o=n(2),c=n(8);function ErrorText(t){var n=t.message,r=t.reconnectURL,i=t.noPrefix;if(!n)return null;var s=n;void 0!==i&&i||(s=Object(o.sprintf)(
/* translators: %s: Error message */
Object(o.__)("Error: %s","google-site-kit"),n)),r&&Object(a.a)(r)&&(s=s+" "+Object(o.sprintf)(
/* translators: %s: Reconnect URL */
Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),r));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.y)(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:i.a.string.isRequired,reconnectURL:i.a.string,noPrefix:i.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(141),i=n.n(r)()(e)}).call(this,n(24))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(12),o=n.n(a);function ChangeArrow(t){var n=t.direction,r=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:i,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:i.a.string,invertColor:i.a.bool,width:i.a.number,height:i.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var r=n(4),i=n.n(r),a=n(18),o=n(89),c=i.a.useSelect;function s(t){var n=t.moduleName,r=t.FallbackComponent,i=t.IncompleteComponent;return function(t){function WhenActiveComponent(o){var s=c((function(e){return e(a.a).getModule(n)}),[n]);if(!s)return null;var l=r||o.WidgetNull||null;if(!1===s.active)return l&&e.createElement(l,o);if(!1===s.connected){var u=i||l;return u&&e.createElement(u,o)}return e.createElement(t,o)}return WhenActiveComponent.displayName="When".concat(Object(o.c)(n),"Active"),(t.displayName||t.name)&&(WhenActiveComponent.displayName+="(".concat(t.displayName||t.name,")")),WhenActiveComponent}}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return IconWrapper}));var r=n(0),i=n.n(r);function IconWrapper(t){var n=t.children,r=t.marginLeft,i=t.marginRight;return e.createElement("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:r,marginRight:i}},n)}IconWrapper.propTypes={children:i.a.node.isRequired,marginLeft:i.a.number,marginRight:i.a.number}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return s}));var r="key-metrics-setup-cta-widget",i="googlesitekit-key-metrics-selection-panel-opened",a="key-metrics-selection-form",o="key-metrics-selected",c=2,s=4},,,,function(e,t,n){"use strict";var r=n(16),i=n.n(r),a=n(237),o=n(0),c=n.n(o),s=n(1),l=n(117);function Portal(e){var t=e.children,n=e.slug,r=Object(s.useState)(document.createElement("div")),o=i()(r,1)[0];return Object(a.a)((function(){n&&o.classList.add("googlesitekit-portal-".concat(n));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(o),function(){return e.removeChild(o)}})),Object(l.createPortal)(t,o)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},function(e,t,n){"use strict";(function(e){var r=n(21),i=n.n(r),a=n(22),o=n.n(a),c=n(0),s=n.n(c),l=n(12),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,a=o()(t,["className","children"]);return r?e.createElement("span",i()({},a,{className:u()("screen-reader-text",n)}),r):null}VisuallyHidden.propTypes={className:s.a.string,children:s.a.node},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(3))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}));var r=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e){return e.replace(/([a-z0-9]{1})
/* translators: %s is replaced with the dependent modules. */
Object(l.__)("<strong>Note:</strong> %s","google-site-kit"),y),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",tertiary:!0,onClick:f,disabled:S},Object(l.__)("Cancel","google-site-kit")),e.createElement(u.SpinnerButton,{onClick:v,danger:k,disabled:S,isSaving:S},E||Object(l.__)("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,title:i.a.string,confirmButton:i.a.string,danger:i.a.bool,small:i.a.bool,medium:i.a.bool},t.a=ModalDialog}).call(this,n(3))},function(e,t,n){"use strict";var r=n(130);n.d(t,"c",(function(){return r.a}));var i=n(59);n.d(t,"b",(function(){return i.c})),n.d(t,"a",(function(){return i.a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"k",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return f}));var r=1,i=2,a=3,o="enhanced-measurement-activation-banner-tooltip-state",c="enhanced-measurement-activation-banner-dismissed-item",s="_r.explorerCard..selmet",l="_r.explorerCard..seldim",u="_r..dataFilters",d="_r..nav",g="key-metrics-connect-ga4-cta-widget",f="ads-conversion-id-notice-dismissed-item"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(21),i=n.n(r),a=n(6),o=n.n(a),c=n(22),s=n.n(c),l=n(0),u=n.n(l),d=n(12),g=n.n(d);function Cell(t){var n,r=t.className,a=t.alignTop,c=t.alignMiddle,l=t.alignBottom,u=t.alignRight,d=t.alignLeft,f=t.smAlignRight,m=t.mdAlignRight,p=t.lgAlignRight,h=t.smSize,v=t.smStart,b=t.smOrder,_=t.mdSize,E=t.mdStart,y=t.mdOrder,O=t.lgSize,k=t.lgStart,j=t.lgOrder,S=t.size,w=t.children,A=s()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smAlignRight","mdAlignRight","lgAlignRight","smSize","smStart","smOrder","mdSize","mdStart","mdOrder","lgSize","lgStart","lgOrder","size","children"]);return e.createElement("div",i()({},A,{className:g()(r,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":a,"mdc-layout-grid__cell--align-middle":c,"mdc-layout-grid__cell--align-bottom":l,"mdc-layout-grid__cell--align-right":u,"mdc-layout-grid__cell--align-left":d,"mdc-layout-grid__cell--align-right-phone":f,"mdc-layout-grid__cell--align-right-tablet":m,"mdc-layout-grid__cell--align-right-desktop":p},o()(n,"mdc-layout-grid__cell--span-".concat(S),12>=S&&S>0),o()(n,"mdc-layout-grid__cell--span-".concat(O,"-desktop"),12>=O&&O>0),o()(n,"mdc-layout-grid__cell--start-".concat(k,"-desktop"),12>=k&&k>0),o()(n,"mdc-layout-grid__cell--order-".concat(j,"-desktop"),12>=j&&j>0),o()(n,"mdc-layout-grid__cell--span-".concat(_,"-tablet"),8>=_&&_>0),o()(n,"mdc-layout-grid__cell--start-".concat(E,"-tablet"),8>=E&&E>0),o()(n,"mdc-layout-grid__cell--order-".concat(y,"-tablet"),8>=y&&y>0),o()(n,"mdc-layout-grid__cell--span-".concat(h,"-phone"),4>=h&&h>0),o()(n,"mdc-layout-grid__cell--start-".concat(v,"-phone"),4>=v&&v>0),o()(n,"mdc-layout-grid__cell--order-".concat(b,"-phone"),4>=b&&b>0),n))}),w)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,smOrder:u.a.number,mdSize:u.a.number,mdStart:u.a.number,mdOrder:u.a.number,lgSize:u.a.number,lgStart:u.a.number,lgOrder:u.a.number,size:u.a.number,alignTop:u.a.bool,alignMiddle:u.a.bool,alignBottom:u.a.bool,alignRight:u.a.bool,alignLeft:u.a.bool,smAlignRight:u.a.bool,mdAlignRight:u.a.bool,lgAlignRight:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,smOrder:0,mdSize:0,mdStart:0,mdOrder:0,lgSize:0,lgStart:0,lgOrder:0}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(21),i=n.n(r),a=n(22),o=n.n(a),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(1),g=Object(d.forwardRef)((function(t,n){var r=t.className,a=t.children,c
/* translators: %s: module name */
Object(r.__)("Your Google account does not have sufficient permissions to access %s data, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"),c)),l&&l.login&&(d=Object(r.sprintf)(
/* translators: %s: owner name */
Object(r.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),l.login)),d||(d=Object(r.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(u," ").concat(d)}},,,function(e,t,n){"use strict";(function(e){var r=n(16),i=n.n(r),a=n(187),o=n.n(a),c=n(0),s=n.n(c),l=n(1),u=n(2),d=n(223),g=n(359),f=n(360),m=n(10);function ReportErrorButton(t){var n=t.message,r=t.componentStack,a=Object(l.useState)(!1),c=i()(a,2),s=c[0],p=c[1];return e.createElement(m.Button,{"aria-label":s?Object(u.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){o()("`".concat(n,"\n").concat(r,"`")),p(!0)},trailingIcon:e.createElement(d.a,{className:"mdc-button__icon",icon:s?g.a:f.a})},s?Object(u.__)("Copied to clipboard","google-site-kit"):Object(u.__)("Copy error contents","google-site-kit"))}ReportErrorButton.propTypes={message:s.a.string,componentStack:s.a.string},t.a=ReportErrorButton}).call(this,n(3))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return FeatureTours}));var i=n(85),a=n(1),o=n(4),c=n.n(o),s=n(7),l=n(19),u=n(109),d=c.a.useSelect,g=c.a.useDispatch;function FeatureTours(){var t=Object(l.a)(),n=g(s.a).triggerTourForView;Object(i.a)((function(){n(t)}));var o=d((function(e){return e(s.a).getCurrentTour()}));return Object(a.useEffect)((function(){if(o){var t=document.getElementById("js-googlesitekit-main-dashboard");if(t){var n=new ResizeObserver((function(){e.dispatchEvent(new Event("resize"))}));return n.observe(t),function(){n.disconnect()}}}}),[o]),o?r.createElement(u.a,{tourID:o.slug,steps:o.steps,gaEventCategory:o.gaEventCategory,callback:o.callback}):null}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(12),o=n.n(a),c=n(1),s=n(15),l=Object(c.forwardRef)((function(t,n){var r=t.id,i=t.className,a=t.children,l=t.secondaryPane;return e.createElement("section",{id:r,className:o()(i,"googlesitekit-publisher-win"),ref:n},e.createElement(s.e,null,e.createElement(s.k,null,a)),l&&e.createElement(c.Fragment,null,e.createElement("div",{className:"googlesitekit-publisher-win__secondary-pane-divider"}),e.createElement(s.e,{className:"googlesitekit-publisher-win__secondary-pane"},e.createElement(s.k,null,e.createElement(s.a,{className:"googlesitekit-publisher-win__secondary-pane",size:12},l)))))}));l.displayName="Banner",l.propTypes={id:i.a.string,className:i.a.string,secondaryPane:i.a.node},t.a=l}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerTitle}));var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(12),s=n.n(c),l=n(102);function BannerTitle(t){var n=t.title,r=t.badgeLabel,a=t.WinImageSVG,o=t.winImageFormat,c=void 0===o?"":o,u=t.smallWinImageSVGWidth,d=void 0===u?75:u,g=t.smallWinImageSVGHeight,f=void 0===g?75:g;return n?e.createElement("div",{className:"googlesitekit-publisher-win__title-image-wrapper"},e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},n,r&&e.createElement(l.a,{label:r})),a&&e.createElement("div",{className:s()(i()({},"googlesitekit-publisher-win__image-".concat(c),c))},e.createElement(a,{width:d,height:f}))):null}BannerTitle.propTypes={title:o.a.string,badgeLabel:o.a.string,WinImageSVG:o.a.elementType,winImageFormat:o.a.string,smallWinImageSVGWidth:o.a.number,smallWinImageSVGHeight:o.a.number}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerActions}));var r=n(5),i=n.n(r),a=n(17),o=n.n(a),c=n(16),s=n.n(c),l=n(0),u=n.n(l),d=n(240),g=n(1),f=n(4),m=n.n(f),p=n(10),h=n(31),v=m.a.useSelect;function BannerActions(t){var n=t.ctaLink,r=t.ctaLabel,a=t.ctaComponent,c=t.ctaTarget,l=t.ctaCallback,u=t.dismissLabel,f=t.dismissCallback,m=Object(g.useState)(!1),b=s()(m,2),_=b[0],E=b[1],y=Object(d.a)(),O=v((function(e){return!!n&&e(h.a).isNavigatingTo(n)})),k=function(){var e=o()(i.a.mark((function e(){var t,n,r,a=argu
/* translators: %s: module name */
Object(l.__)("Access lost to %s","google-site-kit"),null==o?void 0:o.name),Object(l.sprintf)(
/* translators: %s: module name */
Object(l.__)("The administrator sharing this module with you has lost access to the %s service, so you wont be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),null==o?void 0:o.name)):(n=Object(l.sprintf)(
/* translators: %s: module name */
Object(l.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),Object(m.a)(e.message,o)):Object(f.b)(e)},E=Object(c.uniqWith)(u.map((function(e){var t;return y(y({},e),{},{message:d(e),reconnectURL:null===(t=e.data)||void 0===t?void 0:t.reconnectURL})})),(function(e,t){return e.message===t.message&&e.reconnectURL===t.reconnectURL})),k=u.some((function(e){return Object(f.e)(e)}));k||1!==E.length?!k&&E.length>1&&(n=Object(l.sprintf)(
/* translators: %s: module name */
Object(l.__)("Data errors in %s","google-site-kit"),null==o?void 0:o.name)):n=Object(l.sprintf)(
/* translators: %s: module name */
Object(l.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name);var j=e.createElement(s.Fragment,null,E.map((function(t){var n,r=null==i||null===(n=i.data)||void 0===n?void 0:n.reconnectURL;return r?e.createElement(h.a,{key:t.message,message:t.message,reconnectURL:r}):e.createElement("p",{key:t.message},p.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(v.a,{title:n,description:j,error:!0},e.createElement(b.a,{moduleSlug:r,error:i}))}ReportError.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),i=n.n(r),a=n(26),o=i.a.useSelect;function c(e){return o((function(t){return t(a.b).getValue(e)||{isTooltipVisible:!1,rehideAdminMenu:!1,rehideAdminSubMenu:!1}}))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNoticeSingleRow}));var r=n(0),i=n.n(r),a=n(1);function SettingsNoticeSingleRow(t){var n=t.notice,r=t.LearnMore,i=t.CTA;return e.createElement(a.Fragment,null,e.createElement("div",{className:"googlesitekit-settings-notice__text"},n),r&&e.createElement("div",{className:"googlesitekit-settings-notice__learn-more"},e.createElement(r,null)),i&&e.createElement("div",{className:"googlesitekit-settings-notice__cta"},e.createElement(i,null)))}SettingsNoticeSingleRow.propTypes={notice:i.a.node.isRequired,LearnMore:i.a.elementType,CTA:i.a.elementType}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return RecoverableModules}));var r=n(0),i=n.n(r),a=n(2),o=n(4),c=n.n(o),s=n(18),l=n(106),u=c.a.useSelect;function RecoverableModules(t){var n=t.moduleSlugs,r=u((function(e){var t=e(s.a).getModules();if(void 0!==t)return n.map((function(e){return t[e].name}))}));if(void 0===r)return null;var i=1===r.length?Object(a.sprintf)(
/* translators: %s: Module name */
Object(a.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),r[0]):Object(a.sprintf)(
/* translators: %s: List of module names */
Object(a.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),r.join(Object(a._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(l.a,{title:Object(a.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:i.a.arrayOf(i.a.string).isRequired}}).call(this,n(3))},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerIcon}));var r=n(0),i=n.n(r),a=n(115),o=n(148),c=n(15);function BannerIcon(t){var n=t.type;if("win-error"!==n&&"win-warning"!==n)return null;var r="win-warning"===n?e.createElement(a.a,{width:34}):e.createElement(o.a,{width:28});return e.createElement(c.a,{size:1,smOrder:3,mdOrder:3,lgOrder:3},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},r))}BannerIcon.propTypes={type:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerLogo}));var r=n(0),i=n.n(r),a=n(15),o=n(122),c=n(155);function BannerLogo(t){var n=t.module,r=t.moduleName;return e.createElement(a.a,{size:12},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},n&&e.createElement(c.a,{slug:n,size:19}),!n&&e.createElement(o.a,{height:"34",width:"32"})),r&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},r))}BannerLogo.propTypes={module:i.a.string,moduleName:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerDescription}));var r=n(0),i=n.n(r),a=n(1),o=n(72),c=n(23),s=n(68);function BannerDescription(t){var n=t.description,r=t.learnMoreLabel,i=t.learnMoreURL,l=t.learnMoreTarget,u=t.learnMoreDescription,d=t.onLearnMoreClick;if(!n)return null;var g;return r&&(g=e.createElement(a.Fragment,null,e.createElement(c.a,{onClick:function(e){e.persist(),null==d||d()},href:i,external:l===s.a.EXTERNAL},r),u)),e.createElement("div",{className:"googlesitekit-publisher-win__desc"},Object(a.isValidElement)(n)?e.createElement(a.Fragment,null,n,g&&e.createElement("p",null,g)):e.createElement("p",null,e.createElement("span",{dangerouslySetInnerHTML:Object(o.a)(n,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})})," ",g))}BannerDescription.propTypes={description:i.a.node,learnMoreURL:i.a.string,learnMoreDescription:i.a.string,learnMoreLabel:i.a.string,learnMoreTarget:i.a.oneOf(Object.values(s.a)),onLearnMoreClick:i.a.func}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportErrorActions}));var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(1),s=n(47),l=n(2),u=n(4),d=n.n(u),g=n(10),f=n(14),m=n(18),p=n(46),h=n(36),v=n(23);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){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}var E=d.a.useSelect,y=d.a.useDispatch;function ReportErrorActions(t){var n=t.moduleSlug,r=t.error,i=t.GetHelpLink,a=t.onRetry,o=t.getHelpClassName,u=Object(h.a)(),d=E((function(e){return e(m.a).getModuleStoreName(n)})),b=E((function(e){var t;return"function"==typeof(null===(t=e(d))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(d).getServiceEntityAccessURL():null})),O=Array.isArray(r)?r:[r],k=E((function(e){return O.map((function(t){var n,r=null===(n=e(d))||void 0===n?void 0:n.getSelectorDataForError(t);return _(_({},t),{},{selectorData:r})}))})),j=null==k?void 0:k.filter((function(e){return Object(p.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),S=!!j.length,w=E((function(e){var t=_({},S?j[0]:O[0]);return Object(p.e)(t)&&(t.code="".concat(n,"_insufficient_per
/* 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(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(29),i=n.n(r),a=n(12),o=n.n(a),c=n(13),s=n(2),l=n(70),u=n(8),d=n(16),g=n.n(d),f=n(11),m=n.n(f);function p(e,t){var n=t.dateRangeLength;m()(Array.isArray(e),"report must be an array to partition."),m()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=function(t){return e.filter((function(e){return g()(e.dimensionValues,2)[1].value===t}))},i=-1*n;return{currentRange:r("date_range_0").slice(i),compareRange:r("date_range_1").slice(2*i,i)}}var h=n(172);function v(e,t){var n=[];return e.forEach((function(e){if(e.metricValues){var r=e.metricValues[t].value,i=e.dimensionValues[0].value,a=Object(h.a)(i);n.push([a,r])}})),n}function b(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[Object(s.__)("Users","google-site-kit"),Object(s.__)("Sessions","google-site-kit"),Object(s.__)("Engagement Rate","google-site-kit"),Object(s.__)("Session Duration","google-site-kit")],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[function(e){return parseFloat(e).toLocaleString()},function(e){return parseFloat(e).toLocaleString()},function(e){return Object(u.w)(e/100,{style:"percent",signDisplay:"never",maximumFractionDigits:2})},function(e){return Object(u.w)(e,"s")}],d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[c.identity,c.identity,function(e){return 100*e},c.identity],g=i()((null==e?void 0:e.rows)||[]),f=g.length;if(2*n>f){for(var m=new Date,h=0;n>h;h++){var b=(m.getMonth()+1).toString(),_=m.getDate().toString(),E=m.getFullYear().toString()+(2>b.length?"0":"")+b+(2>_.length?"0":"")+_;if(h>f){var y=[{dimensionValues:[{value:E},{value:"date_range_0"}],metricValues:[{value:0},{value:0}]},{dimensionValues:[{value:E},{value:"date_range_1"}],metricValues:[{value:0},{value:0}]}];g.unshift.apply(g,y)}m.setDate(m.getDate()-1)}g.push({dimensionValues:[{value:"0"},{value:"date_range_0"}]},{dimensionValues:[{value:"0"},{value:"date_range_1"}]})}var O=r[t]===Object(s.__)("Session Duration","google-site-kit"),k=O?"timeofday":"number",j=[[{type:"date",label:Object(s.__)("Day","google-site-kit")},{type:"string",role:"tooltip",p:{html:!0}},{type:k,label:r[t]},{type:k,label:Object(s.__)("Previous period","google-site-kit")}]],S=p(g,{dateRangeLength:n}),w=S.compareRange,A=S.currentRange,C=v(A,t),N=v(w,t),x=Object(l.b)(),D={weekday:"short",month:"short",day:"numeric"};return C.forEach((function(e,n){if(e[0]&&e[1]&&N[n]){var i=d[t],c=i(e[1]),l=i(N[n][1]),g=parseFloat(l),f=Object(u.e)(c,g),m=Object(u.k)(f),p=Object(s.sprintf)(
/* translators: 1: date for user stats, 2: previous date for user stats comparison */
Object(s._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(x,D),N[n][0].toLocaleDateString(x,D)),h=Object(s.sprintf)(
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
Object(s._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),r[t],a[t](c),m,Object(u.w)(Math.abs(f),"%"));j.push([e[0],'<div class="'.concat(o()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":f>0,"googlesitekit-visualization-tooltip--down":f<0}),'">\n\t\t\t\t<p>').concat(p,"</p>\n\t\t\t\t<p>").concat(h,"</p>\n\t\t\t</div>"),O?Object(u.g)(c):c,O?Object(u.g)(l):l])}})),j}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNoticeMultiRow}));var r=n(0),i=n.n(r),a=n(1);function SettingsNoticeMultiRow(t){var n=t.notice,r=t.LearnMore,i=t.CTA,o=t.children;return e.createElement(a.Fragment,null,e.createElement("div",{className:"googlesitekit-settings-notice__text"},n),e.createElement("div",{className:"googlesitekit-settings-notice__inner-row"},e.createElement("div",{className:"googlesitekit-settings-notice__children-container"},o),r&&e.createElement("div",{className:"googlesitekit-settings-notice__learn-more"},e.createElement(r,null)),i&&e.createElement("div",{className:"googlesitekit-settings-notice__cta"},e.createElement(i,null))))}SettingsNoticeMultiRow.propTypes={children:i.a.node.isRequired,notice:i.a.node.isRequired,LearnMore:i.a.elementType,CTA:i.a.elementType}}).call(this,n(3))},,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(5),i=n.n(r),a=n(17),o=n.n(a),c=n(0),s=n.n(c),l=n(12),u=n.n(l),d=n(1),g=n(47),f=n(2),m=n(4),p=n.n(m),h=n(10),v=n(7),b=n(32),_=n(23),E=n(19),y=p.a.useSelect,O=p.a.useDispatch;function OptIn(t){var n=t.id,r=void 0===n?"googlesitekit-opt-in":n,a=t.name,c=void 0===a?"optIn":a,s=t.className,l=t.trackEventCategory,m=t.alignLeftCheckbox,p=void 0!==m&&m,k=y((function(e){return e(v.a).isTrackingEnabled()})),j=y((function(e){return e(v.a).isSavingTrackingEnabled()})),S=y((function(e){return e(v.a).getErrorForAction("setTrackingEnabled",[!k])})),w=O(v.a).setTrackingEnabled,A=Object(E.a)(),C=Object(d.useCallback)(function(){var e=o()(i.a.mark((function e(t){var n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(b.a)(r.enabled),r.enabled&&Object(b.b)(l||A,"tracking_optin"));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[w,l,A]);return e.createElement("div",{className:u()("googlesitekit-opt-in",s)},e.createElement(h.Checkbox,{id:r,name:c,value:"1",checked:k,disabled:j,onChange:C,loading:void 0===k,alignLeft:p},Object(g.a)(Object(f.__)("<span>Help us improve Site Kit by sharing anonymous usage data.</span> <span>All collected data is treated in accordance with the <a>Google Privacy Policy.</a></span>","google-site-kit"),{a:e.createElement(_.a,{key:"link",href:"https://policies.google.com/privacy",external:!0}),span:e.createElement("span",null)})),(null==S?void 0:S.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==S?void 0:S.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,trackEventCategory:s.a.string,alignLeftCheckbox:s.a.bool}}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Item}));var r=n(0),i=n.n(r);function Item(t){var n=t.icon,r=t.label;return e.createElement("div",{className:"googlesitekit-user-menu__item"},e.createElement("div",{className:"googlesitekit-user-menu__item-icon"},n),e.createElement("span",{className:"googlesitekit-user-menu__item-label"},r))}Item.propTypes={icon:i.a.node,label:i.a.string}}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(16),i=n.n(r),a=n(0),o=n.n(a),c=n(385),s=n(410),l=n(1),u=n(4),d=n.n(u),g=n(204),f=n(205),m=n(51),p=n(206),h=n(208),v=n(209),b=n(62),_=n(185),E=n(149);function Root(t){var n=t.children,r=t.registry,a=t.viewContext,o=void 0===a?null:a,u=c.a,y=Object(l.useState)({key:"Root",value:!0}),O=i()(y,1)[0];return e.createElement(l.StrictMode,null,e.createElement(_.a,{value:O},e.createElement(d.a.RegistryProv
/* translators: Account info text. 1: User's (full) name 2: User's email address. */
Object(g.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),o,n)),o&&!n&&(V=Object(g.sprintf)(
/* translators: Account info text. 1: User's (full) name. */
Object(g.__)("Google Account for %1$s","google-site-kit"),o)),!o&&n&&(V=Object(g.sprintf)(
/* translators: Account info text. 1: User's email address. */
Object(g.__)("Google Account (Email: %1$s)","google-site-kit"),n)),r.createElement(d.Fragment,null,r.createElement("div",{ref:B,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},r.createElement(h.Button,{ref:z,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(g.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":L,"aria-controls":"user-menu","aria-label":Object(g.__)("Account","google-site-kit"),tooltip:!0,tooltipEnterDelayInMS:500,customizedTooltip:r.createElement("span",{"aria-label":V},r.createElement("strong",null,Object(g.__)("Google Account","google-site-kit")),r.createElement("br",null),r.createElement("br",null),o,o&&r.createElement("br",null),n)}),r.createElement(h.Menu,{className:"googlesitekit-user-menu",menuOpen:L,onSelected:q,id:"user-menu"},r.createElement("li",null,r.createElement(y.a,null)),!!t&&r.createElement("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem"},r.createElement(O.a,{icon:r.createElement(j.a,{width:"22"}),label:Object(g.__)("Manage Sites","google-site-kit")})),r.createElement("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem"},r.createElement(O.a,{icon:r.createElement(k.a,{width:"22"}),label:Object(g.__)("Disconnect","google-site-kit")})))),r.createElement(E.a,null,r.createElement(v.a,{dialogActive:T,handleConfirm:G,handleDialog:U,title:Object(g.__)("Disconnect","google-site-kit"),subtitle:Object(g.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:Object(g.__)("Disconnect","google-site-kit"),danger:!0,small:!0})))):null}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Details}));var r=n(2),i=n(4),a=n.n(i),o=n(7),c=a.a.useSelect;function Details(){var t=c((function(e){return e(o.a).getPicture()})),n=c((function(e){return e(o.a).getFullName()})),i=c((function(e){return e(o.a).getEmail()}));return e.createElement("div",{className:"googlesitekit-user-menu__details","aria-label":Object(r.__)("Google account","google-site-kit")},!!t&&e.createElement("img",{className:"googlesitekit-user-menu__details-avatar",src:t,alt:""}),e.createElement("div",{className:"googlesitekit-user-menu__details-info"},e.createElement("p",{className:"googlesitekit-user-menu__details-info__name"},n),e.createElement("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":Object(r.__)("Email","google-site-kit")},i)))}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M6.83 2H20a2 2 0 012 2v12c0 .34-.09.66-.23.94L20 15.17V6h-9.17l-4-4zm13.66 19.31L17.17 18H4a2 2 0 01-2-2V4c0-.34.08-.66.23-.94L.69 1.51 2.1.1l19.8 19.8-1.41 1.41zM15.17 16l-10-10H4v10h11.17z",fill:"#6C726E"});t.a=function SvgDisconnect(e){return r.createElement("svg",i({viewBox:"0 0 22 22",fill:"none"},e),a)}},function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M20 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h18v12zm-2-9H7v2h11V5zm0 4H7v2h11V9zM6 5H4v2h2V5zm0 4H4v2h2V9z",fill:"#6C726E"});t.a=function SvgManageSites(e){return r.createElement("svg",i({viewBox:"0 0 22 18",f
/* translators: %s: List of product names */
Object(s.__)("Site Kit cant access all relevant data because you havent granted all permissions requested during setup. To use Site Kit, youll need to redo the setup for: %s make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(g.t)(l));break;case"single":u=Object(s.sprintf)(
/* translators: %s: Product name */
Object(s.__)("Site Kit cant access the relevant data from %1$s because you havent granted all permissions requested during setup. To use Site Kit, youll need to redo the setup for %1$s make sure to approve all permissions at the authentication stage.","google-site-kit"),l[0]);break;case"generic":u=Object(s.__)("Site Kit cant access all relevant data because you havent granted all permissions requested during setup. To use Site Kit, youll need to redo the setup make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.b,{id:"authentication error",title:w,description:u,format:"small",type:"win-error",isDismissible:!1,ctaLink:j,onCTAClick:function(){_.current=!0},ctaLabel:A})}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlertGTE}));var i=n(2),a=n(4),o=n.n(a),c=n(42),s=n(14),l=n(7),u=n(33),d=n(34),g=o.a.useSelect;function UnsatisfiedScopesAlertGTE(){var t=g((function(e){return e(d.a).getValue(l.c,"permissionsError")})),n=g((function(n){var r;return n(l.a).getConnectURL({additionalScopes:[u.h],redirectURL:(null==t||null===(r=t.data)||void 0===r?void 0:r.redirectURL)||e.location.href})})),a=g((function(e){return e(s.c).getGoogleSupportURL({path:"/tagmanager/answer/11994839"})}));return void 0===n?null:r.createElement(c.b,{id:"authentication-error-gte",title:Object(i.__)("Site Kit needs additional permissions to detect updates to tags on your site","google-site-kit"),description:Object(i.__)("To continue using Analytics with Site Kit, you need to grant permission to check for any changes in your Google tags target Analytics property. The Google tag feature was recently updated to allow users to change a tags connected Analytics property without editing site code. Because of this change, Site Kit now must regularly check if the tag on your site matches the Analytics property destination.","google-site-kit"),format:"small",type:"win-error",isDismissible:!1,ctaLink:n,ctaLabel:Object(i.__)("Grant permission","google-site-kit"),learnMoreLabel:Object(i.__)("Learn more","google-site-kit"),learnMoreURL:a})}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(4),i=n.n(r),a=n(14),o=n(42),c=i.a.useSelect;function InternalServerError(){var t=c((function(e){return e(a.c).getInternalServerError()}));return t?e.createElement(o.b,t):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardNavigation}));var r=n(4),i=n.n(r),a=n(7),o=n(36),c=n(159),s=n(256),l=i.a.useSelect;function DashboardNavigation(){var t=Object(o.a)(),n=l((function(e){return t?e(a.a).getViewableModules():null})),r=l((function(e){return e(a.a).getKeyMetrics()}));return e.createElement(c.a,{loading:void 0===n||void 0===r,width:"100%",smallHeight:"59px",height:"71px"},e.createElement(s.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return Navigation}));var i=n(29),a=n.n(i),o=n(16),c=n.n(o),s=n(12),l=n.n(s),u=n(13),d=n(85),g=n(140),f=n(1),m=n(2),p=n(4),h=n.n(p),v=n(257),b=n(258),_=n(259),E=n(260),y=n(261),O=n(20),k=n(7),j=n(40),S=n(26),w=n(67),A=n(53),C=n(28),N=n(104),x=n(8),D=n(19),T=n(36);function M(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(
/* translators: %s: module owner Google Account email address */
Object(o.__)("Shared by <strong>%s</strong>","google-site-kit"),s.login),{strong:e.createElement("strong",{title:s.login})})))}Service.propTypes={module:i.a.string.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Tracking}));var r=n(47),i=n(2),a=n(199),o=n(19);function Tracking(){var t=Object(o.a)();return e.createElement("li",{className:"googlesitekit-view-only-menu__list-item"},e.createElement("p",null,Object(r.a)(Object(i.__)("Thanks for using Site Kit!<br />Help us make it even better","google-site-kit"),{br:e.createElement("br",null)})),e.createElement(a.a,{trackEventCategory:"".concat(t,"_headerbar_viewonly"),alignCheckboxLeft:!0}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupErrorNotification}));var r=n(2),i=n(4),a=n.n(i),o=n(42),c=n(14),s=a.a.useSelect;function SetupErrorNotification(){var t=s((function(e){return e(c.c).getSetupErrorMessage()})),n=s((function(e){return e(c.c).getSetupErrorRedoURL()}));return t?e.createElement(o.b,{id:"setup_error",type:"win-error",title:Object(r.__)("Oops! There was a problem during set up. Please try again.","google-site-kit"),description:t,isDismissible:!1,ctaLabel:Object(r.__)("Redo the plugin setup","google-site-kit"),ctaLink:n}):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SubtleNotifications}));var r=n(1),i=n(272),a=n(273);function SubtleNotifications(){return e.createElement(r.Fragment,null,e.createElement(i.a,null),e.createElement(a.a,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GA4AdSenseLinkedNotification}));var r=n(5),i=n.n(r),a=n(17),o=n.n(a),c=n(1),s=n(2),l=n(4),u=n.n(l),d=n(7),g=n(9),f=n(173),m=n(10),p=n(15),h=n(36),v=n(139),b=n(18),_=n(53),E=n(19),y=n(8),O=u.a.useSelect,k=u.a.useDispatch;function GA4AdSenseLinkedNotification(){var t=Object(_.c)(),n=Object(h.a)(),r=O((function(e){return!t||n?null:e(b.a).isModuleConnected("adsense")})),a=O((function(e){return!t||n?null:e(b.a).isModuleConnected("analytics-4")})),l=O((function(e){return!t||n?null:e(g.m).getAdSenseLinked()})),u=r&&a&&l,j=O((function(e){return!t||n?null:e(d.a).isItemDismissed("ga4_adsense_linked_notification")})),S=k(d.a).dismissItem,w=O((function(e){return e(d.a).getDateRangeDates({offsetDays:g.c})})),A=w.startDate,C=w.endDate,N=Object(E.a)(),x={startDate:A,endDate:C,dimensions:["pagePath"],metrics:[{name:"totalAdRevenue"}],orderby:[{metric:{metricName:"totalAdRevenue"},desc:!0}],limit:3},D=O((function(e){return n||j||!u?null:e(g.m).getReport(x)})),T=O((function(e){return e(g.m).hasFinishedResolution("getReport",[x])})),M=Object(c.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(y.B)("".concat(N,"_top-earning-pages-success-notification"),"confirm_notification"),e.next=3,S("ga4_adsense_linked_notification");case 3:case"end":return e.stop()}}),e)}))),[S,N]);Object(c.useEffect)((function(){t&&!n&&!1===j&&T&&!1===Object(v.i)(D)&&u&&M()}),[D,j,n,T,u,M,t]);var R=t&&!n&&!j&&T&&Object(v.i)(D)&&u;return Object(c.useEffect)((function(){R&&Object(y.B)("".concat(N,"_top-earning-pages-success-notification"),"view_notification")}),[R,N]),R?e.createElement(p.e,null,e.createElement(p.k,null,e.createElement(p.a,{alignMiddle:!0,size:12,className:"googlesitekit-subtle-notification"},e.createElement("div",{className:"googlesitekit-subtle-notification__icon"},e.createElement(f.a,{width:24,height:24})),e.createElement("div",{className:"googlesitekit-subtle-notification__content"},e.createElement("p",null,Object(s.__)("Your AdSense and Analytics accounts are linked.","google-site-kit")),e.createElement("p",null,Object(s.__)("Well let you know as soon as theres enough data available.","google-site-kit"))),e.createElement(m.Button,{tertiary:!0,onClick:M},Object(s.__)("Got it","google-site-kit"))))):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupSuccessSubtleNotification}));var r=n(16),i=n.n(r),
/* translators: %s: user who manages the module. */
Object(l.__)("<span>Managed by</span> <strong>%s</strong>","google-site-kit"),a),{span:e.createElement("span",null),strong:e.createElement("strong",null)}),e.createElement(m.Tooltip,{title:R?Object(l.sprintf)(
/* translators: %s: name of the user who manages the module. */
Object(l.__)("%s has connected this and given managing permissions to all admins. You can change who can view this on the dashboard.","google-site-kit"),a):Object(l.sprintf)(
/* translators: %s: name of the user who manages the module. */
Object(l.__)("Contact %s to change who can manage view access for this module","google-site-kit"),a)},e.createElement("span",{className:"googlesitekit-dashboard-sharing-settings__tooltip-icon"},e.createElement(u.a,{icon:d.a,size:18}))))))}Module.propTypes={moduleSlug:o.a.string.isRequired,moduleName:o.a.string.isRequired,ownerUsername:o.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(29),i=n.n(r),a=n(0),o=n.n(a),c=n(12),s=n.n(c),l=n(2),u=n(58),d=n(1),g=n(4),f=n.n(g),m=n(10),p=n(23),h=n(341),v=n(431),b=n(19),_=n(110),E=n(8),y=n(18),O=n(26),k=n(114),j=f.a.useSelect,S=f.a.useDispatch,w=Object(l.__)("All","google-site-kit"),A=Object(d.forwardRef)((function(t,n){var r=t.moduleSlug,a=t.isLocked,o=void 0!==a&&a,c=Object(b.a)(),g=Object(d.useRef)(),f=S(y.a).setSharedRoles,A=S(O.b).setValue,C=j((function(e){return e(y.a).getShareableRoles()})),N=j((function(e){return e(y.a).getSharedRoles(r)})),x=j((function(e){return e(O.b).getValue(k.a)}))===r;Object(_.a)([u.c],n,(function(){x&&A(k.a,void 0)}));var D=j((function(e){return e(y.a).haveModuleSharingSettingsChanged(r,"sharedRoles")})),T=Object(d.useCallback)((function(){x?(A(k.a,void 0),D&&Object(E.B)("".concat(c,"_sharing"),"change_shared_roles",r)):A(k.a,r)}),[x,D,r,A,c]);Object(d.useEffect)((function(){g.current&&(x?g.current.firstChild.focus():g.current.focus())}),[x]);var M=Object(d.useCallback)((function(e){var t,n=e.type,a=e.target,o=e.keyCode;if("keydown"!==n||o===u.b){var c,s=a.closest(".mdc-chip"),l=null==s||null===(t=s.dataset)||void 0===t?void 0:t.chipId;if(l)c="all"===l?(null==N?void 0:N.length)===(null==C?void 0:C.length)?[]:C.map((function(e){return e.id})):null===N?[l]:N.includes(l)?N.filter((function(e){return e!==l})):[].concat(i()(N),[l]),f(r,c)}}),[r,f,N,C]);return C?e.createElement("div",{className:s()("googlesitekit-user-role-select",{"googlesitekit-user-role-select--open":x})},!x&&e.createElement(m.Button,{"aria-label":Object(l.__)("Edit roles","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:T,icon:e.createElement(h.a,{width:23,height:23}),tabIndex:o?-1:void 0,ref:g}),!x&&(null==N?void 0:N.length)>0&&e.createElement("span",{className:"googlesitekit-user-role-select__current-roles"},(null==C?void 0:C.reduce((function(e,t){return N.includes(t.id)&&e.push(t.displayName),e}),[])).join(", ")),!x&&(!N||0===(null==N?void 0:N.length))&&e.createElement("span",{className:"googlesitekit-user-role-select__add-roles"},e.createElement(p.a,{onClick:T,tabIndex:o?-1:void 0},Object(l.__)("Add roles","google-site-kit"))),x&&e.createElement(d.Fragment,null,e.createElement("div",{className:"googlesitekit-user-role-select__chipset",ref:g},e.createElement(m.Chip,{id:"all",label:w,onClick:M,onKeyDown:M,selected:(null==N?void 0:N.length)===(null==C?void 0:C.length),className:"googlesitekit-user-role-select__chip--all"}),C.map((function(t,n){var r=t.id,i=t.displayName;return e.createElement(m.Chip,{key:n,id:r,label:i,onClick:M,onKeyDown:M,selected:null==N?void 0:N.includes(r)})}))),e.createElement(m.Button,{"aria-label":Object(l.__)("Done editing roles","google-site-kit"),title:Object(l.__)("Done","google-site-kit"),className:"googlesitekit-user-role-select__button",onClick:T,icon:e.createElement(v.a,{width:18,height:18}),tabIndex:o?-1:void 0}))):null}));A.propTypes={moduleSlug:o.a.string.isRequired,isLocked:o.a.bool},t.a=A}).call(this,n(3))},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(17),o=n.n(a),c=n(16),s=n.n(c),l=n(0),u=n.n(l),d=n(2),g=n(1),f=n(10),m=n(4),p=n.n(m),h=n(18),v=n(26),b=n(114),_=n(19),E=n(8),y=n(23),O=n(533),k=n(77),j=p.a.useSelect,S=p.a.useDispatch;function Footer(t){var n=t.closeDialog,r=t.openResetDialog,a=Object(_.a)(),c=Object(g.useState)(null),l=s()(c,2),u=l[0],m=l[1],p=Object(g.useState)(!1),w=s()(p,2),A=w[0],C=w[1],N=j((function(e){return e(h.a).canSubmitSharingChanges()})),x=j((function(e){return e(h.a).isDoingSubmitSharingChanges()})),D=j((function(e){return e(h.a).haveSharingSettingsExpanded("management")})),T=j((function(e){return e(h.a
/* translators: %s: the number of hours the site can be in a gathering data state */
Object(a._n)("It can take up to %s hour before stats show up for your site. While youre waiting, connect more services to get more stats.","It can take up to %s hours before stats show up for your site. While youre waiting, connect more services to get more stats.",r,"google-site-kit"),r),format:"small",onView:s,ctaLabel:Object(a.__)("See other services","google-site-kit"),ctaLink:"".concat(v,"#/connect-more-services"),onCTAClick:h,dismiss:Object(a.__)("Maybe later","google-site-kit"),dismissExpires:Object(g.p)("day"),SmallImageSVG:u.a,onDismiss:p,isDismissible:!0}):null}GatheringDataNotification.propTypes={title:i.a.string,gatheringDataWaitTimeInHours:i.a.number}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M128.91 163c-12.56 3.66-25.8 10.57-31.82 22.81-6.35 12.93-1.46 28.49 10.19 36.65M271.09 163c12.56 3.66 25.8 10.57 31.82 22.81 6.35 12.93 1.46 28.49-10.19 36.65",stroke:"#EE675C",strokeLinejoin:"round",strokeWidth:9.27}),o=r.createElement("ellipse",{cx:200,cy:381.74,rx:79.51,ry:8.26,fill:"#F1F3F4"}),c=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),s=r.createElement("path",{d:"M216.76 201.8s-64.53 36.51-77.35 71.84c-4.72 13 3.53 27.36 17.27 29 11.31 1.39 28.4-3.14 53.06-24.33v31.36",stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27}),l=r.createElement("path",{d:"M216.76 201.8s-35.21 19.92-58.76 44.56",stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27}),u=r.createElement("path",{stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47V380h29.52"}),d=r.createElement("path",{stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47v47.5"}),g=r.createElement("circle",{cx:200,cy:162.34,r:81.45,fill:"#D93025"}),f=r.createElement("path",{d:"M206.36 156.18c-18.33 10.42-42 6.07-50.25-19.59M164.26 137.72c-5.22-2.69-9-2.82-16.17-.91",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6.62}),m=r.createElement("path",{d:"M107.28 222.48c28.36 19.87 76.07-7.28 88.72-35.17M292.72 222.48c-28.36 19.87-76.07-7.28-88.72-35.17",stroke:"#EE675C",strokeLinejoin:"round",strokeWidth:9.27});t.a=function SvgZeroStateRed(e){return r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,g,f,m)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ZeroDataNotification}));var r=n(311),i=n(1),a=n(2),o=n(14),c=n(42),s=n(548),l=n(8),u=n(19);function ZeroDataNotification(){var t=Object(u.a)(),n="".concat(t,"_zero-data-notification"),d=Object(i.useCallback)((function(){Object(l.B)(n,"view_notification")}),[n]),g=Object(i.useCallback)((function(){Object(l.B)(n,"dismiss_notification")}),[n]),f=Object(i.useCallback)((function(){Object(l.B)(n,"click_learn_more_link")}),[n]),m=Object(r.a)((function(e){return e(o.c).getDocumentationLinkURL("not-enough-traffic")}));return e.createElement(c.b,{id:"zero-data-notification",title:Object(a.__)("Not enough traffic yet to display stats","google-site-kit"),description:Object(a.__)("Site Kit will start showing stats on the dashboard as soon as enough people have visited your site. Keep working on your site to attract more visitors.","google-site-kit"),format:"small",learnMoreLabel:Object(a.__)("Learn more","google-site-kit"),learnMoreURL:m,dismiss:Object(a.__)("Remind me later","google-site-kit"),dismissExpires:Object(l.p)("day"),SmallImageSVG:s.a,onView:d,onDismiss:g,onLearnMoreClick:f,isDismissible:!0})}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);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: Error message */
Object(o.__)("Error: %s","google-site-kit"),Object.values(n)[0].message)),Object.keys(n).length>1&&e.createElement(a.Fragment,null,e.createElement("p",null,Object(o.__)("The following modules failed to be recovered:","google-site-kit")),e.createElement("ul",null,Object.keys(n).map((function(t){return e.createElement("li",{key:t},Object(o.sprintf)(
/* translators: 1: Module name, 2: Error message */
Object(o.__)("%1$s: %2$s","google-site-kit"),n[t].name,n[t].message))})))))}Errors.propTypes={recoveryErrors:i.a.object.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(29),i=n.n(r),a=function(e){return Array.isArray(e)?i()(e).sort():e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardEntryPoint}));var r=n(0),i=n.n(r),a=n(85),o=n(4),c=n.n(o),s=n(9),l=n(867),u=n(869),d=c.a.useDispatch;function DashboardEntryPoint(t){var n=t.setupModuleSlug,r=d(s.m);return Object(a.a)((function(){null==r||r.syncGoogleTagSettings()})),n?e.createElement(l.a,{moduleSlug:n}):e.createElement(u.a,null)}DashboardEntryPoint.propTypes={setupModuleSlug:i.a.string}}).call(this,n(3))},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(17),o=n.n(a),c=n(0),s=n.n(c),l=n(85),u=n(1),d=n(2),g=n(4),f=n.n(g),m=n(14),p=n(18),h=n(31),v=n(8),b=n(211),_=n(15),E=n(210),y=n(868),O=f.a.useSelect,k=f.a.useDispatch;function ModuleSetup(t){var n=t.moduleSlug,r=k(h.a).navigateTo,a=O((function(e){return e(p.a).getModule(n)})),c={notification:"authentication_success"};n&&(c.slug=n);var s=O((function(e){return e(m.c).getAdminURL("googlesitekit-dashboard",c)})),g=Object(u.useCallback)(function(){var e=o()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(v.B)("moduleSetup","complete_module_setup",n);case 2:r(t||s);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[s,r,n]),f=Object(u.useCallback)(o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(v.B)("moduleSetup","cancel_module_setup",n);case 2:case"end":return e.stop()}}),e)}))),[n]);if(Object(l.a)((function(){Object(v.B)("moduleSetup","view_module_setup",n)})),!(null==a?void 0:a.SetupComponent))return null;var j=a.SetupComponent;return e.createElement(u.Fragment,null,e.createElement(E.a,null,e.createElement(b.a,null)),e.createElement("div",{className:"googlesitekit-setup"},e.createElement(_.e,null,e.createElement(_.k,null,e.createElement(_.a,{size:12},e.createElement("section",{className:"googlesitekit-setup__wrapper"},e.createElement(_.e,null,e.createElement(_.k,null,e.createElement(_.a,{size:12},e.createElement("p",{className:"googlesitekit-setup__intro-title"},Object(d.__)("Connect Service","google-site-kit")),e.createElement(j,{module:a,finishSetup:g})))),e.createElement(y.a,{module:a,onCancel:f})))))))}ModuleSetup.propTypes={moduleSlug:s.a.string.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSetupFooter}));var r=n(0),i=n.n(r),a=n(2),o=n(4),c=n.n(o),s=n(14),l=n(15),u=n(23),d=c.a.useSelect;function ModuleSetupFooter(t){var n=t.module,r=t.onCancel,i=d((function(e){return e(s.c).getAdminURL("googlesitekit-settings")})),o=d((function(e){var t,r;return null===(t=e(null==n?void 0:n.storeName))||void 0===t||null===(r=t.isSetupBlocked)||void 0===r?void 0:r.call(t)}));return n?e.createElement("div",{className:"googlesitekit-setup__footer"},e.createElement(l.e,null,e.createElement(l.k,null,e.createElement(l.a,{smSize:2,mdSize:4,lgSize:6},e.createElement(u.a,{id:"setup-".concat(n.slug,"-cancel"),href:i,onClick:r},o?Object(a.__)("Back","google-site-kit"):Object(a.__)("Cancel","google-site-kit")))))):null}ModuleSetupFooter.propTypes={module:i.a.shape({slug:i.a.string.isRequired,storeName:i.a.string.isRequired}).isRequired,onCancel:i.a.func.isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardMainApp}));var r=n(5),i=n.n(r),a=n(17),o=n.n(a),c=n(16),s=n.n(c),l=n(12),u=n.n(l),d=n(1),g=n(85),f=n(4),m=n.n(f),p=n(67),h=n(8),v=n(210),b=n(527),_=n(356),E=n(538),y=n(543),O=n(211),k=n(871),j=n(189),S=n(
/* translators: %s: the name of a module that setup was completed for */
Object(d.__)("Congrats on completing the setup for %s!","google-site-kit"),U.setupTitle),description:U.description,handleDismiss:function(){},WinImageSVG:v.a,onView:V,dismiss:Object(d.__)("OK, Got it!","google-site-kit"),onDismiss:H,format:"smaller",type:"win-success",learnMoreLabel:U.learnMore.label,learnMoreDescription:U.learnMore.description,learnMoreURL:U.learnMore.url,learnMoreTarget:U.learnMore.target}));default:return null}}}).call(this,n(24),n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),o=r.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),l=r.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),u=r.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),d=r.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),g=r.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),f=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,g,f)}},function(e,t,n){"use strict";(function(e){var r=n(16),i=n.n(r),a=n(1),o=n(4),c=n.n(o),s=n(14),l=n(7),u=n(875),d=c.a.useSelect;t.a=function CoreSiteBannerNotifications(){var t=Object(a.useState)(!1),n=i()(t,2),r=n[0],o=n[1],c=Object(a.useState)(!1),g=i()(c,2),f=g[0],m=g[1],p=Object(a.useRef)(Date.now()),h=d((function(e){return e(s.c).isUsingProxy()&&!1===e(l.a).areSurveysOnCooldown()?e(l.a).getCurrentSurvey():null})),v=d((function(e){return e(s.c).getNotifications()}));return Object(a.useEffect)((function(){var e=setTimeout((function(){f||o(!0)}),5e3);return function(){clearTimeout(e)}}),[f]),Object(a.useEffect)((function(){Math.floor((Date.now()-p.current)/1e3)<5&&h&&m(!0)}),[p,h,m]),Array.isArray(v)&&r&&!f?v.map((function(t){return e.createElement(u.a,{content:t.content,ctaLabel:t.ctaLabel,ctaTarget:t.ctaTarget,ctaURL:t.ctaURL,dismissLabel:t.dismissLabel,dismissible:t.dismissible,id:t.id,key:t.id,learnMoreLabel:t.learnMoreLabel,learnMoreURL:t.learnMoreURL,title:t.title})})):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(2),o=n(1),c=n(4),s=n.n(c),l=n(42),u=n(14),d=n(8),g=n(19),f=s.a.useDispatch;function CoreSiteBannerNotification(t){var n=t.content,r=t.ctaLabel,i=t.ctaTarget,a=t.ctaURL,c=t.dismissLabel,s=t.dismissible,m=t.id,p=t.learnMoreLabel,h=t.learnMoreURL,v=t.title,b=f(u.c),_=b.dismissNotification,E=b.acceptNotification,y=Object(g.a)(),O=Object(o.useCallback)((function(){Object(d.B)("".concat(y,"_remote-site-notification"),"view_notification",m)}),[m,y]),k=Object(o.useCallback)((function(){
/* translators: %s: module name. */
Object(g.__)("%s data was previously shared with other users on the site by another admin who no longer has access. To restore access, the module must be recovered by another admin who has access.","google-site-kit"),y[R[0]].name):(P=Object(g.__)("The data for the following modules was previously shared with other users on the site by another admin who no longer has access. To restore access, the module must be recovered by another admin who has access.","google-site-kit"),L=e.createElement("ul",{className:"mdc-list mdc-list--non-interactive"},R.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},y[t].name))})))):1===w.length?(P=Object(g.sprintf)(
/* translators: %s: module name. */
Object(g.__)("%s data was previously shared with other users on the site by another admin who no longer has access. To restore access, you may recover the module as the new owner.","google-site-kit"),y[w[0]].name),L=e.createElement(d.Fragment,null,e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(g.__)("By recovering the module, you will restore access for other users by sharing access via your Google account. This does not make any changes to external services and can be managed at any time via the dashboard sharing settings.","google-site-kit")),Object.keys(A).length>0&&e.createElement(E.a,{recoveryErrors:A})),I=M):(P=Object(g.__)("The data for the following modules was previously shared with other users on the site by another admin who no longer has access. To restore access, you may recover the module as the new owner.","google-site-kit"),L=e.createElement(d.Fragment,null,w.map((function(t){return e.createElement("div",{key:t},e.createElement(p.Checkbox,{checked:r[t],name:"module-recovery-alert-checkbox",id:"module-recovery-alert-checkbox-".concat(t),onChange:function(){return T(t)},value:t,disabled:f},y[t].name))})),e.createElement("p",{className:"googlesitekit-publisher-win__desc"},Object(g.__)("By recovering the selected modules, you will restore access for other users by sharing access via your Google account. This does not make any changes to external services and can be managed at any time via the dashboard sharing settings.","google-site-kit")),Object.keys(A).length>0&&e.createElement(E.a,{recoveryErrors:A})),I=M),e.createElement(_.b,{id:"module-recovery-alert",title:Object(g.__)("Dashboard data for some services has been interrupted","google-site-kit"),onCTAClick:I,ctaLabel:I?Object(g.__)("Recover","google-site-kit"):null,ctaLink:I?"#":null,description:P,learnMoreURL:S,learnMoreLabel:Object(g.__)("Learn more","google-site-kit"),isDismissible:B,dismiss:Object(g.__)("Remind me later","google-site-kit"),dismissExpires:Object(b.p)("day")},L)}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(1),i=n(2),a=n(4),o=n.n(a),c=n(18),s=n(25),l=n(878),u=n(42),d=o.a.useSelect;t.a=function AdSenseAlerts(){var t=d((function(e){return e(c.a).isModuleConnected("adsense")})),n=d((function(e){return e(s.m).getAccountID()})),a=d((function(e){return e(s.m).getNotifications()}));return t&&n&&void 0!==a?e.createElement(r.Fragment,null,a.map((function(t){var n=t.id,r=t.title,a=t.description,o=t.format,c=t.ctaURL,s=t.ctaLabel,d=t.ctaTarget,g=t.severity,f=t.isDismissable;return e.createElement(u.b,{key:n,id:n,title:r||"",description:a,WinImageSVG:l.a,format:o||"small",ctaLink:c,ctaLabel:s,ctaTarget:d,type:g,dismiss:Object(i.__)("OK, Got it!","google-site-kit"),isDismissible:f||!0,logo:!0,module:"adsense",moduleName:Object(i._x)("AdSense","Service name","google-site-kit"),dismissExpires:0,showOnce:!1})}))):null}}).call(this,n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("g",{clipPath:"url(#notification-alert_svg__clip0)",strokeMiterlimit:10,strokeWidth:15},r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15s44.18-11.1 65.14-20.18c9.91-4.3 20.07-8.62 30.85-9.31s22.46 2.9 28.7 11.71a24 24 0 013.78 17.65",stroke:"#4285F4"}),r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15",stroke:"#1A73E8"})),c=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),s=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),l=r.createElement("path",{d:"M221.3 13l-94.69 95.2a10 10 0 004.53 16.72L261 159.3a10 10 0 0012.18-12.3L238 17.39A10 10 0 00221.3 13z",fill:"#D93025"}),u=r.createElement("path",{d:"M137.37 111.56l87.36-87.87a3 3 0 015 1.33l32.42 119.6a3 3 0 01-3.66 3.68l-119.7
/* translators: 1: Currently GA4 property name. 2: Current GA4 property ID. 3: Newly linked GA4 property name. 4: Newly linked GA4 property ID. */
Object(c.__)('The Google Tag on your site is no longer associated with your current Google Analytics 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,l.displayName,l._id),ctaComponent:e.createElement(s.Fragment,null,e.createElement(f.SpinnerButton,{onClick:C,isSaving:E},Object(c.__)("Use new property","google-site-kit")),e.createElement(f.Button,{tertiary:!0,onClick:N},Object(c.__)("Keep existing property","google-site-kit"))),isDismissible:!1}):u?e.createElement(m.b,{id:"google-tag-id-mismatch",title:Object(c.__)("Your Google tag configuration has changed","google-site-kit"),description:Object(c.sprintf)(
/* translators: 1: Currently set Google Tag ID. 2: Newly linked Google Tag ID. 3: Currently GA4 property name. 4: Current GA4 property ID. */
Object(c.__)('The Google tag for your Google Analytics 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,u,r.displayName,r._id),ctaLabel:Object(c.sprintf)(
/* translators: %s: Newly linked Google Tag ID. */
Object(c.__)("Update Google tag to %s","google-site-kit"),u),ctaLink:N?"#":null,onCTAClick:N,isDismissible:!1}):void 0}}).call(this,n(3))},function(e,t,n){"use strict";function r(e,t){if(1===e.length)return e[0];var n=e.find((function(e){return"GT-"===e.substring(0,3)}));if(n)return n;if(e.includes(t))return t;var r=e.find((function(e){return"G-"===e.substring(0,2)}));return r||e[0]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebDataStreamNotAvailableNotification}));var r=n(2),i=n(10),a=n(4),o=n.n(a),c=n(42),s=n(9),l=n(14),u=n(8),d=n(15),g=o.a.useSelect;function WebDataStreamNotAvailableNotification(){var t=g((function(e){return e(s.m).isWebDataStreamAvailable()})),n=g((function(e){return e(s.m).getMeasurementID()})),a=g((function(e){return e(l.c).getAdminURL("googlesitekit-settings")}));return t?null:void 0===n?e.createElement("div",{className:"googlesitekit-publisher-win"},e.createElement(d.e,null,e.createElement(d.k,null,e.createElement(d.a,{size:12},e.createElement(i.ProgressBar,null))))):e.createElement(c.b,{id:"web-data-stream-not-available",title:Object(r.__)("Your Analytics configuration has changed","google-site-kit"),description:Object(r.sprintf)(
/* translators: 1: Google Analytics Measurement ID. */
Object(r.__)("The previously selected web data stream with measurement ID %1$s is no longer available. Please select a new web data stream to continue collecting data with Google Analytics.","google-site-kit"),n),ctaLink:"".concat(a,"#connected-services/analytics-4/edit"),ctaLabel:Object(r.__)("Update Analytics settings","google-site-kit"),dismiss:Object(r.__)("Maybe later","google-site-kit"),dismissExpires:55*Object(u.p)("minute")})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return AdBlockingRecoverySetupSuccessBannerNotification}));var i=n(1),a=n(47),o=n(2),c=n(951),s=n(4),l=n.n(s),u=n(884),d=n(19),g=n(25),f=n(8),m=n(23),p=n(42),h=n(14),v=n(7),b=l.a.useDispatch,_=l.a.useSelect;function AdBlockingRecoverySetupSuccessBannerNotification(){var t=Object(d.a)(),n=b(v.a).triggerSurvey,s=_((function(e){return e(h.c).isUsingProxy()})),l=_((function(e){return e(g.m).getAdBlockingRecoverySetupStatus()})),E=_((function(e){return e(g.m).getAccountID()})),y=_((function(e){return e(g.m).getServiceURL({path:"/".concat(E,"/privacymessaging/ad_blocking")})})),O=Object(i.useCallback)((function(){Object(f.B)("".concat(t,"_adsense-abr-success-notification"),"view_notification"),s&&n("abr_setup_completed",{ttl:f.a})}),[n,s,t]);return l!==g.k.SETUP_CONFIRMED?null:r.createElement(p.b,{id:g.d,className:"googlesitekit-ad-blocking-recovery-notification",title:Object(o.__)("You successfully enabled the ad blocking recovery message","google-site-kit"),description:r.createElement("p",null,Object(a.a)(Object(o.__)("Make sure to also create the message in <a>AdSense</a>, otherwise this feature wont work","google-site-kit"),{a:r.createElement(m.a,{href:y,external:!0,hideExternalIndicator:!0})})),dismiss:Object(o.__)("OK, Got it!","google-site-kit"),onDismiss:function(){Object(f.B)("".concat(t,"_adsense-abr-success-notification"),"confirm_notification");var n=Object(c.a)(e.location.href,"notification");e.history.replaceState(null,"",n)},isDismissible:!0,onView:O,type:"win-success",WinImageSVG:function WinImageSVG(){return r.createElement(u.a,null)},format:"small"})}}).call(this,n(24),n(3))},function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M12.9 14.73a46.926 46.926 0 014.92-3.892C34.333-.533 47.975-.514 66.862 1.562c12.769 1.402 23.849 8.053 37.279 7.405 13.43-.648 31.996-4.651 46.813-3.786 16.868.985 21.156 2.71 36.153 9.55 13.879 6.33 26.481 17.452 32.814 32.16 10.855 25.211-8.5 70.586-34.456 72.726-18.808 1.551-34.33-16.736-53.314-12.501-11.694 2.609-18.63 13.554-27.652 20.777-10.527 8.428-27.56 7.898-39.886 3.401-11.746-4.286-20.373-12.772-24.209-25.282-2.92-9.526-2.627-19.07-9.64-26.532C20.869 68.95 5.394 66.512.732 46.89-2.218 34.47 4.13 22.687 12.9 14.73z",fill:"#F3F5F7"}),o=r.createElement("g",{filter:"url(#ad-blocking-recovery-success_svg__filter0_d_766_3674)"},r.createElement("path",{d:"M48.967 34.532a9.359 9.359 0 019.358-9.36h107.2a9.359 9.359 0 019.359 9.36v70.648c0 5.168-4.19 9.358-9.359 9.358h-107.2a9.359 9.359 0 01-9.358-9.358V34.531z",fill:"#fff"}),r.createElement("path",{d:"M49.392 34.532c0-4.934 4-8.934 8.933-8.934h107.2c4.934 0 8.933 4 8.933 8.934v70.648a8.933 8.933 0 01-8.933 8.933h-107.2c-4.933 0-8.933-4-8.933-8.933V34.531z",stroke:"#CBD0D3",strokeWidth:.851})),c=r.createElement("rect",{x:70.447,y:59.985,width:82.216,height:4.444,rx:2.222,fill:"#EBEEF0"}),s=r.createElement("rect",{x:89.705,y:85.169,width:45.182,height:19.258,rx:9.629,fill:"#77AD8C"}),l=r.createElement("circle",{cx:111.926,cy:42.209,r:8.148,fill:"#EBEEF0"}),u=r.createElement("path",{d:"M106.74 94.545l4.257 4.257 8.078-8.078",stroke:"#fff",strokeWidth:2.552}),d=r.createElement("rect",{x:68.966,y:70.355,width:83.698,height:4.444,rx:2.222,fill:"#EBEEF0"}),g=r.createElement("defs",null,r.createElement("filter",{id:"ad-blocking-recovery-success_svg__filter0_d_766_3674",x:48.967,y:25.173,width:129.3
/* translators: %s: Option name */
Object(m.__)("Text input for option %s","google-site-kit"),r))),e.createElement(p.TextField,{id:"".concat(c,"-write-in"),onChange:function(e){return function(e,t){var n,r=E(E({},A),{},o()({},t,E(E({},A[t]),{},{answer_text:null===(n=e.target.value)||void 0===n?void 0:n.slice(0,b.a)})));C(r)}(e,n)},value:a.answer_text,disabled:!a.selected})))}))),e.createElement("div",{className:"googlesitekit-survey__footer"},u>1&&e.createElement(p.HelperText,{persistent:!0},Object(m.sprintf)(
/* translators: %s: the number of answers. */
Object(m.__)("Choose at least %s answers","google-site-kit"),u)),e.createElement(p.Button,{onClick:function(){var e=Object.values(A).filter((function(e){return e.selected})).map((function(e){var t=e.answer_ordinal,n=e.answer_text;return n?{answer_ordinal:t,answer_text:n}:{answer_ordinal:t}}));a({answer:e})},disabled:T},y)))}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(3))},function(e,t,n){"use strict";(function(e){var r=n(6),i=n.n(r),a=n(16),o=n.n(a),c=n(0),s=n.n(c),l=n(1),u=n(10),d=n(389),g=n(898);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SurveyQuestionSingleSelect(t){var n=t.question,r=t.choices,i=t.answerQuestion,a=t.dismissSurvey,c=t.submitButtonText,s=Object(l.useState)(""),f=o()(s,2),p=f[0],h=f[1],v=Object(l.useState)(""),b=o()(v,2),_=b[0],E=b[1],y=r.map((function(e){return m(m({},e),{},{answer_ordinal:"".concat(e.answer_ordinal)})})),O=!!p&&y.filter((function(e){var t=e.answer_ordinal,n=e.write_in;return t===p&&n})).length>0,k=""===p||O&&""===_;return e.createElement("div",{className:"googlesitekit-single-select"},e.createElement(d.a,{title:n,dismissSurvey:a}),e.createElement("div",{className:"googlesitekit-survey__body"},y.map((function(t,n){return e.createElement(g.a,{key:n,value:p,setValue:h,writeIn:_,setWriteIn:E,choice:t})}))),e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(u.Button,{onClick:function(){var e=O?{answer_text:_}:{};i({answer:m({answer_ordinal:Number(p)},e)})},disabled:k},c)))}SurveyQuestionSingleSelect.propTypes={question:s.a.string.isRequired,choices:s.a.arrayOf(s.a.shape({answer_ordinal:s.a.oneOfType([s.a.string,s.a.number]),text:s.a.string,write_in:s.a.bool})).isRequired,answerQuestion:s.a.func.isRequired,dismissSurvey:s.a.func.isRequired},t.a=SurveyQuestionSingleSelect}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(1),o=n(2),c=n(10),s=n(87),l=n(472);function SurveyQuestionSingleSelectChoice(t){var n=t.value,r=t.setValue,i=t.writeIn,u=t.setWriteIn,d=t.choice,g=d.answer_ordinal,f=d.text,m=d.write_in,p=n===g,h="googlesitekit-survey__multi-select-".concat(g,"-").concat(f);return e.createElement("div",{className:"googlesitekit-single-select__choice"},e.createElement(c.Radio,{id:f.replace(/ /g,"-"),value:g,checked:p,name:f,onClick:function(){return r(g)}},f),m&&e.createElement(a.Fragment,null,e.createElement(s.a,null,e.createElement("label",{htmlFor:h},Object(o.sprintf)(
/* translators: %s: Option name */
Object(o.__)("Text input for option %s","google-site-kit"),f))),e.createElement(c.TextField,{id:h,onChange:function(e){return u(e.target.value.slice(0,l.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(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SurveyTerms}));var r=n(2),i=n(47),a=n(4),o=n.n(a),c=n(14),s=n(23),l=o.a.useSelect;function SurveyTerms(){var t=l((function(e){return e(c.c).getGooglePrivacyPolicyURL()})),n=l((function(e){return e(c.c).getGoogleTermsURL()}));return e.createElement("p",{className:"googlesitekit-survey__terms"},Object(i.a)(Object(r.__)("By continuing, you agree to allow Google to use your answers and account info to improve services, per our <privacy>Privacy</privacy> & <terms>Terms</terms>.","google-site-kit"),{privacy:e.createElement(s.a,{href:t,external:!0,hideExternalIndicator:!0}),terms:e.createElement(s.a,{href:n,external:!0,hideExternalIndicator:!0})}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricsSelectionPanel}));var r=n(16),i=n.n(r),a=n(6),o=n.n(a),c=n(1),s=n(4),l=n.n(s),u=n(34),d=n(26),g=n(7),f=n(82),m=n(901),p=n(903),h=n(904),v=n(905),b=n(908),_=n(19),E=n(8),y=l.a.useSelect,O=l.a.useDispatch;function MetricsSelectionPanel(){var t=Object(_.a)(),n=y((function(e){return e(d.b).getValue(f.c)})),r=y((function(e){var t=e(g.a).getKeyMetrics();if(!Array.isArray(t))return[];var n=e(g.a).isKeyMetricAvailable;return t.filter(n)})),a=O(u.a).setValues,s=O(d.b).setValue,l=Object(c.useCallback)((function(){a(f.b,o()({},f.a,r)),Object(E.B)("".concat(t,"_kmw-sidebar"),"metrics_sidebar_view")}),[r,a,t]),k=Object(c.useCallback)((function(){n&&s(f.c,!1)}),[s,n]),j=Object(c.useState)(!1),S=i()(j,2),w=S[0],A=S[1];return e.createElement(m.a,{className:"googlesitekit-km-selection-panel",isOpen:n||w,onOpen:l,closeFn:k,focusTrapOptions:{initialFocus:".googlesitekit-km-selection-panel-metrics__metric-item .googlesitekit-selection-box input"}},e.createElement(p.a,null),e.createElement(v.a,{savedMetrics:r}),e.createElement(b.a,null),e.createElement(h.a,{savedMetrics:r,onNavigationToOAuthURL:function(){A(!0)}}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SideSheet}));var r=n(6),i=n.n(r),a=n(12),o=n.n(a),c=n(902),s=n.n(c),l=n(0),u=n.n(l),d=n(222),g=n(442),f=n(1),m=n(58),p=n(86);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(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SideSheet(t){var n=t.className,r=t.children,i=t.isOpen,a=t.onOpen,c=void 0===a?function(){}:a,l=t.closeFn,u=void 0===l?function(){}:l,h=t.focusTrapOptions,b=void 0===h?{}:h,_=Object(f.useRef)();return Object(f.useEffect)((function(){i?(c(),document.body.classList.add("googlesitekit-side-sheet-scroll-lock")):document.body.classList.remove("googlesitekit-side-sheet-scroll-lock")}),[i,c]),Object(d.a)(_,u),Object(g.a)((function(e){return i&&m.c===e.keyCode}),u),e.createElement(p.a,null,e.createElement(s.a,{active:!!i,focusTrapOptions:v({fallbackFocus:"body"},b)},e.createElement("section",{ref:_,className:o()("googlesitekit-side-sheet",n,{"googlesitekit-side-sheet--open":i}),role:"dialog","aria-modal":"true","aria-hidden":!i,tabIndex:"0"},r)),i&&e.createElement("span",{className:"googlesitekit-side-sheet-overlay"}))}SideSheet.propTypes={className
/* translators: 1: Minimum number of metrics that can be selected. 2: Number of selected metrics. */
Object(b.__)("Select at least %1$d metrics (%2$d selected)","google-site-kit"),A.f,ge):ge>A.e&&(de=Object(b.sprintf)(
/* translators: 1: Maximum number of metrics that can be selected. 2: Number of selected metrics. */
Object(b.__)("Select up to %1$d metrics (%2$d selected)","google-site-kit"),A.e,ge)),r.createElement("footer",{className:"googlesitekit-km-selection-panel-footer"},W&&r.createElement(D.a,{error:W}),r.createElement("div",{className:"googlesitekit-km-selection-panel-footer__content"},E&&de?r.createElement(D.a,{error:{message:de},noPrefix:ge<A.f||ge>A.e}):r.createElement("p",{className:"googlesitekit-km-selection-panel-footer__metric-count"},Object(h.a)(Object(b.sprintf)(
/* translators: 1: Number of selected metrics. 2: Maximum number of metrics that can be selected. */
Object(b.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),ge,A.e),{MaxCount:r.createElement("span",{className:"googlesitekit-km-selection-panel-footer__metric-count--max-count"})})),r.createElement("div",{className:"googlesitekit-km-selection-panel-footer__actions"},r.createElement(_.Button,{tertiary:!0,onClick:oe,disabled:f||H},Object(b.__)("Cancel","google-site-kit")),r.createElement(_.SpinnerButton,{onClick:ae,isSaving:f||H,disabled:ge<A.f||ge>A.e||f||!U&&ne||H},Z||ie))))}Footer.propTypes={savedMetrics:m.a.array,onNavigationToOAuthURL:m.a.func}}).call(this,n(24),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Metrics}));var r=n(6),i=n.n(r),a=n(29),o=n.n(a),c=n(0),s=n.n(c),l=n(2),u=n(4),d=n.n(u),g=n(120),f=n(7),m=n(40),p=n(18),h=n(162),v=n(906),b=n(36),_=n(1);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 y(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}var O=d.a.useSelect;function Metrics(t){var n=t.savedMetrics,r=Object(b.a)(),a=O((function(e){return e(f.a)})).isKeyMetricAvailable,c=O((function(e){return e(p.a)})).getModule,s=O((function(e){return function(t){return h.a[t].displayInList(e,r)}})),u=O((function(e){return function(t){return e(m.a).getWidget(t)}})),d=function(e,t){if(!a(t))return e;if("function"==typeof h.a[t].displayInList&&!s(t))return e;var n=u(t).modules.reduce((function(e,t){var n=c(t);return(null==n?void 0:n.connected)||!(null==n?void 0:n.name)?e:[].concat(o()(e),[n.name])}),[]);return y(y({},e),{},i()({},t,y(y({},h.a[t]),{},{disconnectedModules:n})))},E=O((function(e){return e(m.a).getWidgets(g.AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY)||[]})).filter((function(e){var t=e.slug;return n.includes(t)})).map((function(e){return e.slug})),k=Object.keys(h.a).filter((function(e){return E.includes(e)})).reduce(d,{}),j=Object.keys(h.a).filter((function(e){return!E.includes(e)})).reduce(d,{}),S=function(t){return Object.keys(t).map((function(r){var i=t[r],a=i.title,o=i.description,c=i.disconnectedModules,s="key-metric-selection-checkbox-".concat(r);return e.createElement(v.a,{key:s,id:s,slug:r,title:a,description:o,disconnectedModules:c,savedMetrics:n})}))};return e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics"},0!==n.length&&e.createElement(_.Fragment,null,e.createElement("p",{className:"googlesitekit-km-selection-panel-metrics__subheading"},Object(l.__)("Current selection","google-site-kit")),e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics__subsection"},S(k)),e.createElement("p",{className:"googlesitekit-km-selection-panel-metrics__subheading"},Object(l.__)("Additional metrics","google-site-kit"))),e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics__subsection"},S(j)))}Metrics.propTypes={savedMetrics:s.a.array}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricItem}));var r=n(6),i=n.n(r),a=n(0),o=n.n(a),c=n(1),s=n(2),l=n(4),u=n.n(l),d=n(34),g=n(82),f=n(907),m=u.a.useSelect,p=u.a.useDispatch;function MetricItem(t){var n=t.id,r=t.slug,a=t.title,o=t.description,l=t.disconnectedModules,u=t.savedMetrics,h=void 0===u?[]:u,v=m((function(e){return e(d.a).getValue(g.b,g.a)})),b=m((function(e){return e(d.a)})).getValue,_=p(d.a).setValues,E=Object(c.useCallback)((function(e){var t=b(g.b,g.a);_(g.b,i()({},g.a,e.target.checked?t.concat([r]):t.filter((function(e){return e!==r}))))}),[b,_,r]),y=null==v?void 0:v.includes(r),O=!h.includes(r)&&l.length>0;return e.createElement("div",{className:"googlesitekit-km-selection-panel-metrics__metric-item"},e.createElement(f.a,{checked
/* translators: %s: module names. */
Object(s._n)("%s is disconnected, no data to show","%s are disconnected, no data to show",l.length,"google-site-kit"),l.join(Object(s.__)(" and ","google-site-kit"))))))}MetricItem.propTypes={id:o.a.string.isRequired,slug:o.a.string.isRequired,title:o.a.string.isRequired,description:o.a.string.isRequired,disconnectedModules:o.a.array,savedMetrics:o.a.array}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SelectionBox}));var r=n(0),i=n.n(r),a=n(12),o=n.n(a),c=n(10);function SelectionBox(t){var n=t.checked,r=t.children,i=t.disabled,a=t.id,s=t.onChange,l=t.title,u=t.value;return e.createElement("div",{className:o()("googlesitekit-selection-box",{"googlesitekit-selection-box--disabled":i})},e.createElement(c.Checkbox,{checked:n,description:r,disabled:i,id:a,name:a,onChange:s,value:u},l))}SelectionBox.propTypes={checked:i.a.bool,children:i.a.node,disabled:i.a.bool,id:i.a.string,onChange:i.a.func,title:i.a.string,value:i.a.string}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n(1035),a=n(1),o=n(4),c=n.n(o),s=n(34),l=n(7),u=n(9),d=n(82),g=n(162),f=n(909),m=n(80),p=c.a.useSelect;t.a=Object(m.a)({moduleName:"analytics-4"})((function CustomDimensionsNotice(){var t=p((function(e){return e(s.a).getValue(d.b,d.a)})),n=null==t?void 0:t.flatMap((function(e){var t=g.a[e];return(null==t?void 0:t.requiredCustomDimensions)||[]})),o=p((function(e){return!!(null==n?void 0:n.length)&&!e(u.m).hasCustomDimensions(n)})),c=p((function(e){return e(l.a).hasScope(u.d)}));p((function(e){return e(u.m).getAvailableCustomDimensions()}));var m=Object(i.a)(o),h=Object(a.useRef)();if(Object(a.useEffect)((function(){if(o&&!1===m){var e=document.activeElement;e&&e.closest(".googlesitekit-km-selection-panel-metrics__metric-item")&&Object(f.a)(h.current,e)&&e.scrollIntoView()}}),[o,m]),!1===o)return null;var v=c?Object(r.__)("The metrics you selected require more data tracking. We will update your Analytics property after saving your selection.","google-site-kit"):Object(r.__)("The metrics you selected require more data tracking. You will be directed to update your Analytics property after saving your selection.","google-site-kit");return e.createElement("div",{className:"googlesitekit-km-selection-panel-notice",ref:h},e.createElement("p",null,v))}))}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return!(n.bottom<r.top||r.bottom<n.top||n.right<r.left||r.right<n.left)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e,t){var r=n(5),i=n.n(r),a=n(17),o=n.n(a),c=n(285),s=n(117),l=n(38),u=n(203),d=n(20),g=n(866);Object(c.a)(o()(i.a.mark((function n(){var r,a,o,c,f;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e._googlesitekitLegacyData.admin.resetSession){n.next=3;break}return n.next=3,Object(l.b)();case 3:(r=document.getElementById("js-googlesitekit-main-dashboard"))&&(a=r.dataset,o=a.setupModuleSlug,c=a.viewOnly,f=d.o,o||(f=c?d.n:d.m),Object(s.render)(t.createElement(u.a,{viewContext:f},t.createElement(g.a,{setupModuleSlug:o})),r));case 5:case"end":return n.stop()}}),n)}))))}.call(this,n(24),n(3))}],[[1016,1,0]]]);