kollapsminoriteten/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-modules-adsen...

78 lines
314 KiB
JavaScript
Raw Normal View History

2023-04-26 17:39:43 +02:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[16],[,function(e,t){e.exports=googlesitekit.i18n},,,function(e,t){e.exports=googlesitekit.data},,,function(e,t,n){"use strict";n.d(t,"h",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"j",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"m",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"u",(function(){return g})),n.d(t,"t",(function(){return m})),n.d(t,"v",(function(){return f})),n.d(t,"r",(function(){return p})),n.d(t,"s",(function(){return y})),n.d(t,"q",(function(){return b})),n.d(t,"n",(function(){return v})),n.d(t,"o",(function(){return h})),n.d(t,"p",(function(){return _})),n.d(t,"l",(function(){return S})),n.d(t,"k",(function(){return E})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return A}));var a="modules/analytics",r="account_create",i="property_create",o="profile_create",c="analyticsAccountCreate",s="analyticsSetup",u="https://www.googleapis.com/auth/analytics.provision",l="https://www.googleapis.com/auth/analytics.edit",d=1,g="dashboardAllTrafficWidgetDimensionName",m="dashboardAllTrafficWidgetDimensionColor",f="dashboardAllTrafficWidgetDimensionValue",p="dashboardAllTrafficWidgetActiveRowIndex",y="dashboardAllTrafficWidgetLoaded",b="ua",v="ga4",h="ga4-legacy",_="ga4-transitional",S="ua",E="ga4",O="google-analytics-4",A="universal-analytics"},function(e,t,n){"use strict";n.d(t,"z",(function(){return r.b})),n.d(t,"w",(function(){return i.a})),n.d(t,"A",(function(){return i.b})),n.d(t,"y",(function(){return l})),n.d(t,"l",(function(){return y})),n.d(t,"u",(function(){return b.c})),n.d(t,"v",(function(){return b.d})),n.d(t,"r",(function(){return b.b})),n.d(t,"k",(function(){return b.a})),n.d(t,"s",(function(){return S})),n.d(t,"e",(function(){return E})),n.d(t,"b",(function(){return O.b})),n.d(t,"a",(function(){return O.a})),n.d(t,"i",(function(){return O.f})),n.d(t,"g",(function(){return O.e})),n.d(t,"x",(function(){return O.j})),n.d(t,"h",(function(){return A.b})),n.d(t,"p",(function(){return A.c})),n.d(t,"d",(function(){return A.a})),n.d(t,"n",(function(){return T.b})),n.d(t,"j",(function(){return T.a})),n.d(t,"t",(function(){return T.d})),n.d(t,"q",(function(){return k})),n.d(t,"o",(function(){return N})),n.d(t,"m",(function(){return j})),n.d(t,"c",(function(){return I})),n.d(t,"B",(function(){return C})),n.d(t,"f",(function(){return w}));var a=n(13),r=n(34),i=n(70),o=n(31),c=n.n(o),s=n(83),u=n.n(s),l=function(e){return u()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(a){var r=t[a];r&&"object"===c()(r)&&!Array.isArray(r)&&(r=e(r)),n[a]=r})),n}(e)))};var d=n(14),g=n.n(d);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 f(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 f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}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 i,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var p=function(e){for(var t=location.search.substr(1).split("&"),n={},a=0;a<t.length;a++)n[t[a].split("=")[0]]=decodeURIComponent(t[a].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},y=f
/* 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,"n",(function(){return O})),n.d(t,"l",(function(){return A})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"k",(function(){return h})),n.d(t,"g",(function(){return y})),n.d(t,"i",(function(){return _})),n.d(t,"h",(function(){return S})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return E})),n.d(t,"m",(function(){return j})),n.d(t,"b",(function(){return I})),n.d(t,"a",(function(){return w}));var a=n(26),r=n.n(a),i=n(13),o=n(11),c=n.n(o),s=n(1),u=n(67),l=n(131),d=n(8),g=n(139),m=n(14),f=n.n(m),p=n(7),y=function(e){return(parseInt(e,10)||0)>0};function b(e){return e===p.a||y(e)}function v(e){return"string"==typeof e&&/^UA-\d+-\d+$/.test(e)}function h(e){return e===p.j||v(e)}function _(e){return e===p.i||y(e)}function S(e){return"string"==typeof e&&e.trim().length>0}function E(e){return"string"==typeof e&&/^AW-[0-9]+$/.test(e)}function O(e){if(!v(e))return!1;var t=e.match(/^UA-(\d+)-(\d+)/),n=f()(t,3);return{accountID:n[1],propertyID:e,number:n[2]}}function A(e){var t,n,a,r,i,o,c,s;if(void 0!==e)return!(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.rows)||void 0===a?void 0:a.length)||!(null==e||null===(r=e[0])||void 0===r||null===(i=r.data)||void 0===i||null===(o=i.totals)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.values)||void 0===s?void 0:s.length)||!e[0].data.totals.some((function(e){return e.values.some((function(e){return e>0}))}))}var T=n(55);function k(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 N(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 N(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}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 i,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function j(e,t){var n,a=(Array.isArray(t)?t:[t]).map(T.d),r=k(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.websiteUrl;if(o){var c,s=k(a);try{for(s.s();!(c=s.n()).done;){if(c.value===Object(T.d)(o))return i}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){r.e(e)}finally{r.f()}return null}function I(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a.keyColumnIndex,i=void 0===r?0:r,o=a.maxSlices,c=a.withOthers,u=void 0!==c&&c,l=a.tooltipCallback,d=(null==e?void 0:e[0])||{},g=d.data,m=void 0===g?{}:g,f=m.rows,p=void 0===f?[]:f,y=m.totals,b=void 0===y?[]:y,v="function"==typeof l,h=["Source","Percent"];v&&h.push({type:"string",role:"tooltip",p:{html:!0}});var _=(null==b||null===(t=b[0])||void 0===t||null===(n=t.values)||void 0===n?void 0:n[i])||0,S=[h],E=u,O=p.length,A=1;o>0?(E=u&&p.length>o,O=Math.min(p.length,E?o-1:o)):(E=!1,O=p.length);for(var T=0;T<O;T++){var k=p[T],N=k.metrics[0].values[i],j=_>0?N/_:0;A-=j;var I=[k.dimensions[0],j];v&&I.push(l(k,I)),S.push(I)}if(E&&A>0){var C=[Object(s.__)("Others","google-site-kit"),A];v&&C.push(l(null,C)),S.push(C)}return S}function C(e,t,n){var a=[];return Object(i.each)(e,(function(e){if(e.metrics){var r=e.metrics[t].values,i=e.dimensions[0],
/* 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(R,M),D[n][0].toLocaleDateString(R,M)),u=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"),f[t],p[t](e[1]),i,Object(d.u)(Math.abs(r),"%"));k.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":r>0,"googlesitekit-visualization-tooltip--down":r<0}),'">\n\t\t\t\t<p>').concat(o,"</p>\n\t\t\t\t<p>").concat(u,"</p>\n\t\t\t</div>"),A?Object(d.e)(e[1]):e[1],A?Object(d.e)(D[n][1]):D[n][1]])}})),k}},,function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(11),o=n.n(i);function ChangeArrow(t){var n=t.direction,a=t.invertColor,r=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":a}),width:r,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:r.a.string,invertColor:r.a.bool,width:r.a.number,height:r.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return O})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return T}));var a=n(14),r=n.n(a),i=n(31),o=n.n(i),c=n(6),s=n.n(c),u=n(22),l=n.n(u),d=n(13),g=n(69),m=n.n(g),f=n(1);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(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 b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v(e,t),a=n.formatUnit,r=n.formatDecimal;try{return a()}catch(e){return r()}},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),a=Math.floor(e/60%60),r=Math.floor(e%60);return{hours:n,minutes:a,seconds:r,formatUnit:function(){var i=t.unitDisplay,o=y(y({unitDisplay:void 0===i?"short":i},l()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?O(r,y(y({},o),{},{unit:"second"})):Object(f.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(f._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),r?O(r,y(y({},o),{},{unit:"second"})):"",a?O(a,y(y({},o),{},{unit:"minute"})):"",n?O(n,y(y({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(f.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(f.__)("%ds","google-site-kit"),r);if(0===e)return t;var i=Object(f.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(f.__)("%dm","google-site-kit"),a),o=Object(f.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
Object(f.__)("%dh","google-site-kit"),n);return Object(f.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(f._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),r?t:"",a?i:"",n?o:"").trim()}}},h=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},_=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(f.sprintf)(// translators: %s: an abbreviated number in millions.
Object(f.__)("%sM","google-site-kit"),O(h(e),e%10==0?{}:t)):1e4<=e?Object(f.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(f.__)("%sK","google-site-kit"),O(h(e))):1e3<=e?Object(f.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(f.__)("%sK","google-site-kit"),O(h(e),e%10==0?{}:t)):O(e,{signDisplay:"never",maximumFractionDigits:1})},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return b(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=y({},t))}var a=n,r=a.style,i=void 0===r?"metric":r;return"metric"===i?_(e):"duration"===i?b(e,t):O(e,n)},E=m()(console.warn),O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?T():n,i=l()(t,["locale"]);try{return new Intl.NumberFormat(a,i).format(e)}catch(t){E("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(a),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],u={},d=0,g=Object.entries(i);d<g.length;d++){var m=r()(g[d],2),f=m[0],p=m[1];c[f]&&p===c[f]||(s.includes(f)||(u[f]=p))}try{return new Intl.NumberFormat(a,u).format(e)}catch(t){return new Intl.NumberFormat(a).format(e)}},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?T():n,r=t.style,i=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(a,{style:i,type:c});return s.format(e)}
/* translators: used between list items, there is a space after the comma. */var u=Object(f.__)(", ","google-site-kit");return e.join(u)},T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var a=n.match(/^(\w{2})?(_)?(\w{2})/);if(a&&a[0])return a[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(25))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(2),r=Object(a.createContext)(""),i=(r.Consumer,r.Provider);t.b=r},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n(31),r=n.n(a),i=n(79),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===r()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return j})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return w})),n.d(t,"g",(function(){return R})),n.d(t,"f",(function(){return M}));var a,r=n(5),i=n.n(r),o=n(26),c=n.n(o),s=n(6),u=n.n(s),l=n(9),d=n.n(l),g=n(69),m=n.n(g),f=n(13),p=n(113);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t.reduce((function(e,t){return b(b({},e),t)}),{}),r=t.reduce((function(e,t){return[].concat(c()(e),c()(Object.keys(t)))}),[]),i=I(r);return d()(0===i.length,"collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ".concat(i.join(", "),". Check your data stores for duplicates.")),a},h=v,_=v,S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a,r=[].concat(t);return"function"!=typeof r[0]&&(a=r.shift()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.reduce((function(e,n){return n(e,t)}),e)}},E=v,O=v,A=v,T=function(e){return e},k=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=A.apply(void 0,c()(t.map((function(e){return e.initialState||{}}))));return{initialState:a,controls:_.apply(void 0,c()(t.map((function(e){return e.controls||{}})))),actions:h.apply(void 0,c()(t.map((function(e){return e.actions||{}})))),reducer:S.apply(void 0,[a].concat(c()(t.map((function(e){return e.reducer||T}))))),resolvers:E.apply(void 0,c()(t.map((function(e){return e.resolvers||{}})))),selectors:O.apply(void 0,c()(t.map((function(e){return e.selectors||{}}))))}},N={getRegistry:function(){return{payload:{},type:"GET_REGISTRY"}},await:i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{payload:{value:t},type:"AWAIT"});case 1:case"end":return e.stop()}}),e)}))},j=(a={},u()(a,"GET_REGISTRY",Object(p.a)((function(e){return function(){return e}}))),u()(a,"AWAIT",(function(e){return e.payload.value})),a),I=function(e){for(var t=[],n={},a=0;a<e.length;a++){var r=e[a];n[r]=n[r]>=1?n[r]+1:1,n[r]>1&&t.push(r)}return t},C={actions:N,controls:j,reducer:T},w=function(e){return function(t){return D(e(t))}},D=m()((function(e){return Object(f.mapValues)(e,(function(e,t){return function(){var n=e.apply(void 0,arguments);return d()(void 0!==n,"".concat(t,"(...) is not resolved")),n}}))}));function R(e){var t=arguments.length>1&&void 0!==argu
/* translators: %s: Error message */
Object(o.__)("Error: %s","google-site-kit"),n);a&&Object(i.a)(a)&&(r=r+" "+Object(o.sprintf)(
/* translators: %s: Reconnect URL */
Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),a));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.w)(r,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:r.a.string.isRequired,reconnectURL:r.a.string},ErrorText.defaultProps={reconnectURL:""},t.a=ErrorText}).call(this,n(3))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));var a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},r=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},,function(e,t,n){"use strict";(function(e){n(49),n(51)}).call(this,n(25))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return c}));var a=n(178),r=n(65),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(a.a)(e.createElement(r.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,a,r,i,o,c,s,u,l,d,g,m,f,p;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.rows)||void 0===a?void 0:a.length)||(null==e||null===(r=e[0])||void 0===r||null===(i=r.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(u=s[0])||void 0===u||null===(l=u.values)||void 0===l?void 0:l[0])===(null==e||null===(d=e[0])||void 0===d||null===(g=d.data)||void 0===g||null===(m=g.totals)||void 0===m||null===(f=m[0])||void 0===f||null===(p=f.values)||void 0===p?void 0:p[0])},c=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var a=n(6),r=n.n(a),i=n(89),o=n(90);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=s(s({},u),t);r.referenceSiteURL&&(r.referenceSiteURL=r.referenceSiteURL.toString().replace(/\/+$/,""));var c=Object(i.a)(r,n);return{enableTracking:function(){r.trackingEnabled=!0},disableTracking:function(){r.trackingEnabled=!1},initializeSnippet:c,isTrackingEnabled:function(){return!!r.trackingEnabled},trackEvent:Object(o.a)(r,n,c,a)}}}).call(this,n(25))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var a=n(57),r=n(32);function i(t,n){var i,o=Object(a.a)(n);return function(){var n=e.document;if(void 0===i&&(i=!!n.querySelector("script[".concat(r.b,"]"))),!i){var a=n.createElement("script");a.setAttribute(r.b,""),a.async=!0,a.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(r.a),n.head.appendChild(a),o("js",new Date),o("config",t.trackingID,{send_page_view:t.isSiteKitScreen}),i=!0}}}}).call(this,n(25))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(5),r=n.n(a),i=n(6),o=n.n(i),c=n(17),s=n.n(c),u=n(57),l=n(38);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescript
/* translators: %s: source link */
Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(u.a,{key:"link",href:a,external:i})}))}SourceLink.propTypes={name:r.a.string,href:r.a.string,className:r.a.string,external:r.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(3))},,,function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return r})),n.d(t,"j",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"k",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"h",(function(){return d})),n.d(t,"f",(function(){return g})),n.d(t,"i",(function(){return m})),n.d(t,"l",(function(){return f})),n.d(t,"n",(function(){return p})),n.d(t,"r",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"p",(function(){return v})),n.d(t,"q",(function(){return h})),n.d(t,"o",(function(){return _})),n.d(t,"t",(function(){return S})),n.d(t,"v",(function(){return E})),n.d(t,"s",(function(){return O})),n.d(t,"u",(function(){return A})),n.d(t,"x",(function(){return T})),n.d(t,"w",(function(){return k}));var a="disapproved",r="graylisted",i="pending",o="approved",c="needs-attention",s="ready",u="client-requires-review",l="client-getting-ready",d="none",g="multiple",m="no-client",f="added",p="needs-attention",y="requires-review",b="getting-ready",v="ready",h="ready-no-auto-ads",_="none";function S(e){var t=e.accounts,n=e.clients,a=e.alerts,i=e.urlChannels,c=e.accountsError,s=e.alertsError,u=e.urlChannelsError,l=e.previousAccountID,f=e.previousClientID;return void 0===t||void 0===l?N(c):O({accounts:t,previousAccountID:l})?void 0!==n&&void 0!==f?void 0===a?j(s):a.some((function(e){return"graylisted-publisher"===e.type}))?r:A({clients:n,previousClientID:f})?void 0===i?I(u):o:m:void 0:t.length?g:d}var E=function(e){var t=e.urlChannels,n=e.siteURL;if(void 0!==t&&void 0!==n){var a=n.toLowerCase();return t.some((function(e){return 0<=a.indexOf(e.uriPattern.toLowerCase())}))?f:_}},O=function(e){var t=e.accounts,n=e.previousAccountID;if(void 0!==t&&t.length){if(t.length>1){if(!n)return;return t.reduce((function(e,t){return t._id===n?n:e}),void 0)}return t[0]._id}},A=function(e){var t=e.clients,n=e.previousClientID;if(void 0!==t){var a=t.filter((function(e){return"AFC"===e.productCode}));if(a.length){if(a.length>1&&n){var r=a.reduce((function(e,t){return t._id===n?n:e}),"");if(r)return r}return a[0]._id}}},T=function(e){return e===r||e===i},k=function(e){return N(e)||j(e)||I(e)},N=function(e){return C(e,"noAdSenseAccount")?d:C(e,"disapprovedAccount")?a:void 0},j=function(e){if(C(e,"accountPendingReview"))return i};function I(e){if((null==e?void 0:e.message)&&"ad client not found."===e.message.toLowerCase())return i}var C=function(e,t){return!(!e||!e.data)&&t===e.data.reason}},function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(11),o=n.n(i),c=n(15),s=n(23),u=function CTA(t){var n=t.title,a=t.description,r=t.ctaLink,i=t.ctaLabel,u=t.ctaLinkExternal,l=t.ctaType,d=t.error,g=t.onClick,m=t["aria-label"],f=t.children;return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":d})},n&&e.createElement("h3",{className:"googlesitekit-cta__title"},n),a&&"string"==typeof a&&e.createElement("p",{className:"googlesitekit-cta__description"},a),a&&"string"!=typeof a&&e.createElement("div",{className:"googlesitekit-cta__description"},a),i&&"button"===l&&e.createElement(c.Button,{"aria-label":m,href:r,onClick:g},i),i&&"link"===l&&e.createElement(s.a,{href:r,onClick:g,"aria-label":m,external:u,hideExternalIndicator:u,arrow:!0},i),f)};u.propTypes={title:r.a.string.isRequired,description:r.a.oneOfType([r.a.string,r.a.node]),ctaLink:r.a.string,ctaLinkExternal:r.a.bool,ctaLabel:r.a.string,ctaType:r.a.string,"aria-label":r.a.string,error:r.a.bool,onClick:r.a.func,children:r.a.node},u.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:function(){}},t.a=u}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"c",(function(){
/* translators: %s: Module name */
Object(i.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),a[0]):Object(i.sprintf)(
/* translators: %s: List of module names */
Object(i.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),a.join(Object(i._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(u.a,{title:Object(i.__)("Data Unavailable","google-site-kit"),description:r})}RecoverableModules.propTypes={moduleSlugs:r.a.arrayOf(r.a.string).isRequired}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var a=n(21),r=n.n(a),i=n(155),o=n.n(i),c=n(11),s=n.n(c),u=n(0),l=n.n(u),d=n(15),g=n(156),m=n(157);function TourTooltip(t){var n=t.backProps,a=t.closeProps,c=t.index,u=t.primaryProps,l=t.size,f=t.step,p=t.tooltipProps,y=l>1?Object(g.a)(l):[],b=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",r()({className:s()("googlesitekit-tour-tooltip",f.className)},p),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},f.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},f.content)),e.createElement(i.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},y.map((function(t){return e.createElement("li",{key:"indicator-".concat(t),className:b(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(d.Button,r()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),f.cta,u.title&&e.createElement(d.Button,r()({className:"googlesitekit-tooltip-button",text:!0},u),u.title))),e.createElement(d.Button,r()({className:"googlesitekit-tooltip-close",text:!0,icon:e.createElement(m.a,{width:"14",height:"14"})},a))))}TourTooltip.propTypes={backProps:l.a.object.isRequired,closeProps:l.a.object.isRequired,index:l.a.number.isRequired,isLastStep:l.a.bool.isRequired,primaryProps:l.a.object.isRequired,size:l.a.number.isRequired,step:l.a.shape({content:l.a.node,title:l.a.node.isRequired,cta:l.a.oneOfType([l.a.element,l.a.bool]),className:l.a.string}).isRequired,tooltipProps:l.a.object.isRequired}}).call(this,n(3))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(9),r=n.n(a),i=function(e,t){var n=t.dateRangeLength;r()(Array.isArray(e),"report must be an array to partition."),r()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var a=-1*n;return{currentRange:e.slice(a),compareRange:e.slice(2*a,a)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNotice}));var a=n(11),r=n.n(a),i=n(0),o=n.n(i),c=n(1),s=n(4),u=n.n(s),l=n(260),d=n(261),g=n(99),m=n(10),f=n(15),p=u.a.useSelect,y=u.a.useDispatch;function SettingsNotice(t){var n=t.className,a=t.children,i=t.type,o=t.dismiss,s=void 0===o?"":o,u=t.Icon,b=void 0===u?Object(g.d)(i):u,v=y(m.a).dismissItem,h=p((function(e){return s?e(m.a).isItemDismissed(s):void 0}));if(s&&h)return null;var _=a?d.a:l.a;return e.createElement("div",{className:r()(n,"googlesitekit-settings-notice","googlesitekit-settings-notice--".concat(i),{"googlesitekit-settings-notice--single-row":!a,"googlesitekit-settings-notice--multi-row":a})},e.createElement("div",{className:"googlesitekit-settings-notice__icon"},e.createElement(b,{width:"20",height:"20"})),e.createElement("div",{className:"googlesitekit-settings-notice__body"},e.createElement(_,t)),s&&e.createElement("div",{className:"googlesitekit-settings-notice__button"},e.createElement(f.Button,{onClick:function(){v(s)}},Object(c.__)("OK, Got it!","google-site-kit"))))}SettingsNotice.propTypes={className:o.a.string,children:o.a.node,notice:o.a.node.isRequired,type:o.a.oneOf([g.a,g.c,g.b]),Icon:o.a.elementType,LearnMore:o.a.elementType,CTA:o.a.elementType},SettingsNotice.defaultProps={type:g.a}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(14),r=n.n(a),i=n(154),o=n.n(i),c=n(0),s=n.n(c),u=n(2),l=n(1),d=n(179),g=n(329),m=n(330),f=n(15);function ReportEr
/* translators: %s: module name */
Object(a.__)("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)),u&&u.login&&(d=Object(a.sprintf)(
/* translators: %s: owner name */
Object(a.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),u.login)),d||(d=Object(a.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(l," ").concat(d)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var a=n(0),r=n.n(a),i=n(1),o=n(4),c=n.n(o),s=n(18),u=n(98),l=c.a.useSelect;function ReportZero(t){var n=t.moduleSlug,a=l((function(e){return e(s.a).getModule(n)}));return e.createElement(u.a,{title:Object(i.sprintf)(
/* translators: %s: Module name */
Object(i.__)("%s Gathering Data","google-site-kit"),null==a?void 0:a.name),description:Object(i.sprintf)(
/* translators: %s: Module name */
Object(i.__)("%s data is not yet available, please check back later","google-site-kit"),null==a?void 0:a.name)})}ReportZero.propTypes={moduleSlug:r.a.string.isRequired}}).call(this,n(3))},,function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(2),o=function Sparkline(t){var n=t.sparkline,a=t.invertChangeColor,r=n;return r&&a&&(r=Object(i.cloneElement)(n,{invertChangeColor:a})),e.createElement("div",{className:"googlesitekit-data-block__sparkline"},r)};o.propTypes={sparkline:r.a.element,invertChangeColor:r.a.bool},t.a=o}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(0),r=n.n(a),i=n(11),o=n.n(i),c=n(1),s=n(8),u=n(65),l=function Change(t){var n=t.change,a=t.changeDataUnit,r=t.period,i=t.invertChangeColor,l=n;return a&&(l="%"===a?Object(s.u)(n,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(s.u)(n,a)),r&&(l=Object(c.sprintf)(r,l)),e.createElement("div",{className:o()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!n})},!!n&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(u.a,{direction:0<parseFloat(n)?"up":"down",invertColor:i})),e.createElement("span",{className:"googlesitekit-data-block__value"},l))};l.propTypes={change:r.a.oneOfType([r.a.string,r.a.number]),changeDataUnit:r.a.oneOfType([r.a.string,r.a.bool]),period:r.a.string,invertChangeColor:r.a.bool},t.a=l}).call(this,n(3))},function(e,t,n){"use strict";var a=n(2);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"currentColor",fillRule:"nonzero"});t.a=function SvgError(e){return a.createElement("svg",r({viewBox:"0 0 28 25"},e),i)}},,,function(e,t,n){"use strict";var a=n(2);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{d:"M0 0h2v7H0zm0 10h2v2H0z",fill:"currentColor",fillRule:"evenodd"});t.a=function SvgWarningIcon(e){return a.createElement("svg",r({viewBox:"0 0 2 12"},e),i)}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},function(e,t,n){"use strict";var a=n(2);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=a.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"currentColor"});t.a=function SvgClose(e){return a.createElement("svg",r({viewBox:"0 0 14 14",fill:"none"},e),i)}},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var a=n(4),r=n.n(a),i=n(18),o=n(84),c=r.a.useSelect;function s(t){var n=t.moduleName,a=t.FallbackComponent,r=t.IncompleteComponent;return function(t){var s=function WhenActiveComponent(o){var s=c((function(e){return e(i.a).getModule(n)}),[n]);if(!s)return null;var u=a||o.WidgetNull||null;if(!1===s.active)return u&&e.createElement(u,o);if(!1===s.connected){var l=r||u;return l&&e.createElement(l,o)}return e.createElement(t,o)};return s.displayName="When".concat(Object(o.c)(n),"Active"),(t.displayName||t.name)&&(s.displayName+="(".concat(t.displayName||t.name,")")),s}}}).call(this,n(3))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return N})),n.d(t,"f",(function(){return j})),n.d(t,"e",(function(){
/* translators: 1: date for user stats, 2: previous date for user stats comparison */
Object(o._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),g.toLocaleDateString(p,y),m.toLocaleDateString(p,y)),j=Object(c.u)(O,null==r?void 0:r.currencyCode);"METRIC_RATIO"===(null==r?void 0:r.type)&&(j=Object(c.u)(O,"%"));var I=Object(o.sprintf)(
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage, %%: percent symbol */
Object(o._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s%%</em>","Stat information for chart tooltip","google-site-kit"),n,j,k,Math.abs(T).toFixed(2).replace(/(.00|0)$/,""));u.push([g,'<div class="'.concat(i()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":T>0,"googlesitekit-visualization-tooltip--down":T<0}),'">\n\t\t\t\t<p>').concat(N,"</p>\n\t\t\t\t<p>").concat(I,"</p>\n\t\t\t</div>"),O,A]),g=l(g),m=l(m)}return u}n(97);var l=n(487);n(397)},,,,function(e,t,n){"use strict";(function(e){var a=n(58),r=n.n(a),i=n(214),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,u=o.preloadedData,l=o.rootURL;r.a.nonceEndpoint=s,r.a.nonceMiddleware=r.a.createNonceMiddleware(c),r.a.rootURLMiddleware=r.a.createRootURLMiddleware(l),r.a.preloadingMiddleware=Object(i.a)(u),r.a.use(r.a.nonceMiddleware),r.a.use(r.a.mediaUploadMiddleware),r.a.use(r.a.rootURLMiddleware),r.a.use(r.a.preloadingMiddleware),t.default=r.a}).call(this,n(25))},function(e,t,n){"use strict";var a=n(201);t.a=function(e){var t=Object.keys(e).reduce((function(t,n){return t[Object(a.getStablePath)(n)]=e[n],t}),{}),n=!1;return function(e,r){if(n)return r(e);setTimeout((function(){n=!0}),1e3);var i=e.parse,o=void 0===i||i,c=e.path;if("string"==typeof e.path){var s,u=(null===(s=e.method)||void 0===s?void 0:s.toUpperCase())||"GET",l=Object(a.getStablePath)(c);if(o&&"GET"===u&&t[l]){var d=Promise.resolve(t[l].body);return delete t[l],d}if("OPTIONS"===u&&t[u]&&t[u][l]){var g=Promise.resolve(t[u][l]);return delete t[u][l],g}}return r(e)}}},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportTable}));var a=n(11),r=n.n(a),i=n(9),o=n.n(i),c=n(0),s=n.n(c),u=n(13),l=n(56);function ReportTable(t){var n=t.rows,a=t.columns,i=t.className,c=t.limit,s=t.zeroState,d=t.gatheringData,g=void 0!==d&&d;o()(Array.isArray(n),"rows must be an array."),o()(Array.isArray(a),"columns must be an array."),a.forEach((function(e){var t=e.Component,n=e.field,a=void 0===n?null:n;o()(t||null!==a,"each column must define a Component and/or a field.")})),o()(Number.isInteger(c)||void 0===c,"limit must be an integer, if provided.");var m=a.filter((function(e){return!e.hideOnMobile}));return e.createElement("div",{className:r()("googlesitekit-table","googlesitekit-table--with-list",{"googlesitekit-table--gathering-data":g},i)},e.createElement("table",{className:r()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(a.length,"-col"),"googlesitekit-table__wrapper--mobile-".concat(m.length,"-col"))},e.createElement("thead",{className:"googlesitekit-table__head"},e.createElement("tr",{className:"googlesitekit-table__head-row"},a.map((function(t,n){var a=t.title,i=t.description,o=t.primary,c=t.hideOnMobile,s=t.className,u=t.badge;return e.createElement("th",{className:r()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":o},{"hidden-on-mobile":c},s),"data-tooltip":i,key:"googlesitekit-table__head-row-".concat(n)},a,u)})))),e.createElement("tbody",{className:"googlesitekit-table__body"},g&&e.createElement("tr",{className:"googlesitekit-table__body-row googlesitekit-table__body-row--no-data"},e.createElement("td",{className:"googlesitekit-table__body-item",colSpan:a.length},e.createElement(l.b,null))),!g&&!(null==n?void 0:n.length)&&s&&e.createElement("tr",{className:"googlesitekit-table__body-row googlesitekit-table__body-row--no-data"},e.createElement("td",{className:"googlesitekit-table__body-item",colSpan:a.length},e.createElement(s,null))),!g&&n.slice(0,c).map((function(t,n){return e.createElement("tr",{className:"googlesitekit-table__body-row",key:"googlesitekit-table__body-row-".concat(n)},a.map((function(n,a){var i=n.Component,o=n.field,c=n.hideOnMobile,s=n.className,l=void 0!==o?Object(u.get)(t,o):void 0;return e.createElement("td",{key:"googlesitekit-table__body-item-".concat(a),className:r()("googlesitekit-table__body-item",{"hidden-on-mobile":c},s)},e.createElement("div",{className:"googlesitekit-table__body-item-content"},i&&e.createElement(i,{row:t,fieldValue:l}),!i&&l))})))})))))}ReportTa
/* translators: 1: property name, 2: property ID */
Object(r._x)("%1$s (%2$s)","Analytics property name and ID","google-site-kit"),i,a):i)})))):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return y})),n.d(t,"c",(function(){return TrackingExclusionSwitches}));var a,r=n(6),i=n.n(r),o=n(2),c=n(1),s=n(4),u=n.n(s),l=n(15),d=n(7),g=u.a.useSelect,m=u.a.useDispatch,f="loggedinUsers",p="contentCreators",y=(a={},i()(a,f,Object(c.__)("All logged-in users","google-site-kit")),i()(a,p,Object(c.__)("Users that can write posts","google-site-kit")),a);function TrackingExclusionSwitches(){var t,n=g((function(e){return e(d.h).getTrackingDisabled()})),a=m(d.h).setTrackingDisabled;t=n&&n.includes(f)?Object(c.__)("All logged-in users will be excluded from Analytics tracking","google-site-kit"):n&&n.includes(p)?Object(c.__)("Users that can write posts will be excluded from Analytics tracking","google-site-kit"):Object(c.__)("All logged-in users will be included in Analytics tracking","google-site-kit");var r=Object(o.useCallback)((function(e,t){var r=t?n.concat(e):n.filter((function(t){return t!==e}));a(r)}),[n,a]),i=Object(o.useCallback)((function(e){var t=e.target.checked;r(p,t)}),[r]),s=Object(o.useCallback)((function(e){var t=e.target.checked;r(f,t)}),[r]);return Array.isArray(n)?e.createElement("div",{className:"googlesitekit-settings-module__fields-group"},e.createElement("h4",{className:"googlesitekit-settings-module__fields-group-title"},Object(c.__)("Exclude Analytics","google-site-kit")),e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("div",{className:"googlesitekit-settings-module__inline-items"},e.createElement("div",{className:"googlesitekit-settings-module__inline-item"},e.createElement(l.Switch,{label:y[f],checked:n.includes(f),onClick:s,hideLabel:!1})),!n.includes(f)&&e.createElement("div",{className:"googlesitekit-settings-module__inline-item"},e.createElement(l.Switch,{label:y[p],checked:n.includes(p),onClick:i,hideLabel:!1}))),e.createElement("p",null,t))):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UseSnippetSwitch}));var a=n(0),r=n.n(a),i=n(2),o=n(1),c=n(4),s=n.n(c),u=n(15),l=n(7),d=n(8),g=n(20),m=s.a.useSelect,f=s.a.useDispatch;function UseSnippetSwitch(t){var n=t.description,a=Object(g.a)(),r=m((function(e){return e(l.h).getUseSnippet()})),c=m((function(e){return e(l.h).getCanUseSnippet()})),s=m((function(e){return e(l.h).hasExistingTag()})),p=f(l.h).setUseSnippet,y=Object(i.useCallback)((function(){var e=!r;p(e),Object(d.z)("".concat(a,"_analytics"),e?"enable_tag":"disable_tag","ua")}),[r,p,a]);return void 0===r||void 0===s?null:e.createElement("div",{className:"googlesitekit-analytics-usesnippet"},e.createElement(u.Switch,{label:Object(o.__)("Place Universal Analytics code","google-site-kit"),checked:!1!==c&&r,onClick:y,hideLabel:!1,disabled:!1===c}),n)}UseSnippetSwitch.propTypes={description:r.a.node}}).call(this,n(3))},,,,function(e,t){e.exports=googlesitekit.widgets},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNoticeSingleRow}));var a=n(0),r=n.n(a),i=n(2);function SettingsNoticeSingleRow(t){var n=t.notice,a=t.LearnMore,r=t.CTA;return e.createElement(i.Fragment,null,e.createElement("div",{className:"googlesitekit-settings-notice__text"},n),a&&e.createElement("div",{className:"googlesitekit-settings-notice__learn-more"},e.createElement(a,null)),r&&e.createElement("div",{className:"googlesitekit-settings-notice__cta"},e.createElement(r,null)))}SettingsNoticeSingleRow.propTypes={notice:r.a.node.isRequired,LearnMore:r.a.elementType,CTA:r.a.elementType}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsNoticeMultiRow}));var a=n(0),r=n.n(a),i=n(2);function SettingsNoticeMultiRow(t){var n=t.notice,a=t.LearnMore,r=t.CTA,o=t.children;return e.createElement(i.Fragment,null,e.createElement("div",{className:"googlesitekit-settings-notice__text"},n),e.createElement("div",{className:"googlesit
/* translators: 1: module owner's name, 2: module name */
Object(o.__)("%1$s configured %2$s and you dont have access to its configured property. Contact them to share access or change the configured property.","google-site-kit"),w,null==T?void 0:T.name),{strong:e.createElement("strong",null)})})))}EnableUniversalAnalytics.propTypes={children:r.a.node.isRequired,hasModuleAccess:r.a.bool}}).call(this,n(3))},,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AccountCreate}));var a=n(5),r=n.n(a),i=n(17),o=n.n(i),c=n(14),s=n.n(c),u=n(1),l=n(2),d=n(4),g=n.n(d),m=n(15),f=n(7),p=n(19),y=n(16),b=n(10),v=n(33),h=n(36),_=n(48),S=n(8),E=n(360),O=n(361),A=n(12),T=n(23),k=n(128),N=n(222),j=n(362),I=n(363),C=n(364),w=n(365),D=n(366),R=n(367),M=n(20),P=n(52),Z=g.a.useDispatch,L=g.a.useSelect;function AccountCreate(){var t=Object(P.a)("ga4Reporting"),n=Object(l.useState)(!1),a=s()(n,2),i=a[0],c=a[1],d=L((function(e){return e(f.h).getAccounts()})),g=L((function(e){return e(f.h).hasFinishedResolution("getAccounts")})),G=L((function(e){return e(f.h).getAccountTicketTermsOfServiceURL()})),x=L((function(e){return e(p.d).getAccountTicketTermsOfServiceURL()})),U=L((function(e){return e(f.h).canSubmitAccountCreate()})),B=L((function(e){return e(p.d).canSubmitAccountCreate()})),F=L((function(e){return e(f.h).isDoingCreateAccount()})),W=L((function(e){return e(p.d).isDoingCreateAccount()})),z=L((function(e){return e(b.a).hasScope(f.m)})),q=L((function(e){return e(b.a).hasScope(f.e)})),H=L((function(e){return e(v.a).hasForm(f.f)})),V=L((function(e){return e(v.a).getValue(f.f,"autoSubmit")})),K=L((function(e){return e(y.c).getReferenceSiteURL()})),Y=L((function(e){return e(y.c).getSiteName()})),$=L((function(e){return e(y.c).getTimezone()})),J=Object(M.a)(),Q=Z(v.a).setValues,X=Z(h.a).navigateTo,ee=Z(t?p.d:f.h).createAccount,te=Z(b.a).setPermissionScopeError,ne=t?O.a:E.a,ae=t?q:z,re=t?W:F,ie=t?B:U,oe=t?x:G;Object(l.useEffect)((function(){oe&&X(oe)}),[oe,X]),Object(l.useEffect)((function(){H||Q(f.f,ne({siteName:Y,siteURL:K,timezone:$}))}),[H,Y,K,$,Q,ne]);var ce=Object(l.useCallback)(o()(r.a.mark((function e(){var t,n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=[],z&&q||(t.push(f.m),t.push(f.e)),!(t.length>0)){e.next=6;break}return Q(f.f,{autoSubmit:!0}),te({code:_.a,message:Object(u.__)("Additional permissions are required to create a new Analytics account.","google-site-kit"),data:{status:403,scopes:t,skipModal:!0}}),e.abrupt("return");case 6:return Q(f.f,{autoSubmit:!1}),e.next=9,Object(S.z)("".concat(J,"_analytics"),"create_account","proxy");case 9:return e.next=11,ee();case 11:n=e.sent,n.error||c(!0);case 14:case"end":return e.stop()}}),e)}))),[ee,c,z,q,te,Q,J]);Object(l.useEffect)((function(){ae&&V&&ce()}),[ae,V,ce]);var se=Z(f.h).rollbackSettings,ue=Object(l.useCallback)((function(){return se()}),[se]);return re||i||!g||void 0===ae?e.createElement(m.ProgressBar,null):e.createElement("div",null,e.createElement(k.a,{moduleSlug:"analytics",storeName:f.h}),e.createElement("h3",{className:"googlesitekit-heading-4"},Object(u.__)("Create your Analytics account","google-site-kit")),e.createElement("p",null,Object(u.__)("Weve pre-filled the required information for your new account. Confirm or edit any details:","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__inputs"},e.createElement(A.a,{size:6},e.createElement(I.a,null)),e.createElement(A.a,{size:6},e.createElement(C.a,null)),e.createElement(A.a,{size:6},t&&e.createElement(R.a,null),!t&&e.createElement(w.a,null))),e.createElement("div",{className:"googlesitekit-setup-module__inputs"},e.createElement(D.a,null),e.createElement(j.a,null)),e.createElement("p",null,ae&&e.createElement("span",null,Object(u.__)("You will be redirected to Google Analytics to accept the terms of service.","google-site-kit")),!ae&&e.createElement("span",null,Object(u.__)("You will need to give Site Kit permission to create an Analytics account on your behalf and also accept the Google Analytics terms of service.","google-site-kit"))),!t&&e.createElement(N.a,{notice:Object(u.__)("This
/* translators: %s: GTM property ID */
Object(i.__)("A Google Tag Manager container with a tag for the selected property, %s, was found on your site, so Site Kit will not place its own tag. If you would prefer to have Site Kit insert this tag, remove it from your Google Tag Manager container and update later in Settings.","google-site-kit"),n)):e.createElement("p",null,Object(i.sprintf)(
/* translators: %s: GTM property ID */
Object(i.__)("An existing Google Analytics property with the ID %s was found on your site, added by Google Tag Manager.","google-site-kit"),n)):null}ExistingGTMPropertyNotice.propTypes={gtmAnalyticsPropertyID:r.a.oneOfType([r.a.string,r.a.bool])}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProfileNameTextField}));var a=n(101),r=n(2),i=n(1),o=n(4),c=n.n(o),s=n(33),u=n(12),l=n(7),d=n(104),g=c.a.useSelect,m=c.a.useDispatch;function ProfileNameTextField(){var t,n,o=g((function(e){return e(l.h).getAccountID()})),c=g((function(e){return e(l.h).getPropertyID()})),f=g((function(e){return e(l.h).getProfiles(o,c)})),p=g((function(e){return e(l.h).getProfileID()})),y=g((function(e){return e(s.a).getValue(l.g,"profileName")})),b=m(s.a).setValues,v=Object(r.useCallback)((function(e){var t=e.currentTarget;b(l.g,{profileName:t.value})}),[b]);return Object(a.a)((function(){y||b(l.g,{profileName:Object(i._x)("All Web Site Data","default Analytics view name","google-site-kit")})})),p!==l.i?null:(Array.isArray(f)&&f.some((function(e){return e.name===y}))&&(t=e.createElement(u.g,{persistent:!0},Object(i.__)("A view with this name already exists.","google-site-kit")),n=e.createElement("span",{className:"googlesitekit-text-field-icon--warning"},e.createElement(d.a,null,Object(i.__)("Warning","google-site-kit")))),e.createElement("div",{className:"googlesitekit-analytics-profilename"},e.createElement(u.r,{label:Object(i.__)("View Name","google-site-kit"),outlined:!0,helperText:t,trailingIcon:n},e.createElement(u.h,{value:y,onChange:v})),e.createElement("p",null,Object(i.__)("You can make changes to this view (e.g. exclude URL query parameters) in Google Analytics.","google-site-kit"))))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertySelectIncludingGA4}));var a=n(6),r=n.n(a),i=n(5),o=n.n(i),c=n(17),s=n.n(c),u=n(2),l=n(1),d=n(4),g=n.n(d),m=n(15),f=n(12),p=n(19),y=n(7),b=n(63),v=n(8),h=n(20);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=g.a.useSelect,O=g.a.useDispatch;function PropertySelectIncludingGA4(){var t=E((function(e){return e(y.h).getAccountID()})),n=E((function(e){return e(y.h).getPropertiesIncludingGA4(t)||[]})),a=E((function(e){return e(p.d).getPropertyID()})),r=E((function(e){return e(y.h).getPropertyID()})),i=E((function(e){var n=!e(y.h).hasFinishedResolution("getAccounts"),a=!e(p.d).hasFinishedResolution("getProperties",[t]),r=!e(y.h).hasFinishedResolution("getProperties",[t]);return n||r||a})),c=E((function(e){return e(y.h).getPrimaryPropertyType()}))===y.k?a:r,d=O(p.d),g=O(y.h),_=Object(h.a)(),A=Object(u.useCallback)(function(){var e=s()(o.a.mark((function e(n,a){var r,i,s,u,l,m,f,p,b,h,S;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.dataset.value,i=a.dataset.internalId,c!==r){e.next=4;break}return e.abrupt("return");case 4:if(r===y.j?Object(v.z)("".concat(_,"_analytics"),"change_property_new","ua"):(s=i?"ua":"ga4",Object(v.z)("".concat(_,"_analytics"),"change_property",s)),!i&&r!==y.j){e.next=20;break}return e.next=8,d.matchAccountProperty(t);case 8:if(!(null==(f=e.sent)?void 0:f._id)){e.next=13;break}return e.next=12,d.matchWebDataStream(f._id);case 12:p=e.sent;case 13:g.selectProperty(r,i),g.setPrimaryPropertyType(y.l),d.setPropertyID((null==f?void 0:f._id)||""),d.setWebDataStreamID((null===(u=p)||void 0===u?void 0:u._id)||""),d.updateSettingsForMeasurementID((null===(l=p)||void 0===l||null===(m=l.webStreamData)||void 0===m?void 0:m.measurementId)||""),e.next=32;break;case 20:r
/* translators: 1: Property name. 2: Property ID. */
Object(l._x)("%1$s (%2$s)","Analytics property name and ID","google-site-kit"),a,n))})))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GA4ActivateSwitch}));var a=n(0),r=n.n(a),i=n(1),o=n(2),c=n(4),s=n.n(c),u=n(15),l=n(33),d=n(7),g=n(8),m=n(23),f=n(20),p=n(16),y=s.a.useSelect,b=s.a.useDispatch;function GA4ActivateSwitch(t){var n=t.onActivate,a=t.disabled,r=Object(f.a)(),c=y((function(e){return e(l.a).getValue(d.g,"enableGA4")})),s=y((function(e){return e(p.c).getDocumentationLinkURL("ga4")})),v=b(l.a).setValues,h=Object(o.useCallback)((function(){v(d.g,{enableGA4:!0}),Object(g.z)("".concat(r,"_analytics"),"activate_ga4"),"function"==typeof n&&n()}),[v,n,r]);return e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement(u.Switch,{label:e.createElement(o.Fragment,null,Object(i.__)("Activate Google Analytics 4 and place code on your site.","google-site-kit")," ",e.createElement(m.a,{href:s,external:!0},Object(i.__)("Learn more","google-site-kit"))),checked:c,disabled:a,onClick:h,hideLabel:!1}))}GA4ActivateSwitch.propTypes={onActivate:r.a.func,disabled:r.a.bool}}).call(this,n(3))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(9),r=n.n(a),i=n(1),o=n(92),c=n(130);function s(e){var t=e.siteName,n=e.siteURL,a=e.timezone,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Intl.DateTimeFormat().resolvedOptions().timeZone;r()(Object(o.a)(n),"A valid siteURL is required.");var u=new URL(n),l=u.hostname,d=u.pathname,g=c.c[a]?a:s;return{accountName:t||l,propertyName:"".concat(l).concat(d).replace(/\/$/,""),profileName:Object(i._x)("All Web Site Data","default Analytics view name","google-site-kit"),countryCode:c.c[g],timezone:g}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(9),r=n.n(a),i=n(92),o=n(130);function c(e){var t=e.siteName,n=e.siteURL,a=e.timezone,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Intl.DateTimeFormat().resolvedOptions().timeZone;r()(Object(i.a)(n),"A valid siteURL is required.");var s=new URL(n),u=s.hostname,l=s.pathname;return{accountName:t||u,propertyName:"".concat(u).concat(l).replace(/\/$/,""),dataStreamName:u,countryCode:o.c[a]||o.c[c],timezone:o.c[a]?a:c}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TimezoneSelect}));var a=n(2),r=n(1),i=n(12),o=n(130),c=n(4),s=n.n(c),u=n(7),l=n(33),d=s.a.useSelect,g=s.a.useDispatch;function TimezoneSelect(){var t=d((function(e){return e(l.a).getValue(u.f,"countryCode")})),n=d((function(e){return e(l.a).getValue(u.f,"timezone")})),c=g(l.a).setValues,s=Object(a.useCallback)((function(e,t){c(u.f,{timezone:t.dataset.value})}),[c]);return e.createElement(i.q,{className:"googlesitekit-analytics__select-timezone",label:Object(r.__)("Timezone","google-site-kit"),value:n,onEnhancedChange:s,disabled:!t,enhanced:!0,outlined:!0},(o.d[t]||[]).map((function(t,n){var a=t.timeZoneId,r=t.displayName;return e.createElement(i.o,{key:n,value:a},r)})))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AccountField}));var a=n(2),r=n(1),i=n(170),o=n(4),c=n.n(o),s=n(7),u=n(33),l=c.a.useSelect,d=c.a.useDispatch;function AccountField(){var t=l((function(e){return e(u.a).getValue(s.f,"accountName")})),n=d(u.a).setValues,o=Object(a.useCallback)((function(e){n(s.f,{accountName:e})}),[n]);return e.createElement(i.a,{label:Object(r.__)("Account","google-site-kit"),hasError:!t,value:t,setValue:o,name:"account"})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertyField}));var a=n(2),r=n(1),i=n(170),o=n(4),c=n.n(o),s=n(7),u=n(33),l=c.a.useSelect,d=c.a.useDispatch;function PropertyField(){var t=l((function(e){return e(u.a).getValue(s.f,"propertyName")})),n=d(u.a).setValues,o=Object(a.useCallback)((function(e){n(s.f,{propertyName:e})}),[n]);return e.createElement(i.a,{label:Object(r.__)("Property","google-site-kit"),value:t,hasError:!t,setValue:o,name:"property"})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function
/* translators: 1: The warning message. 2: "Get help" text. */
Object(u.__)("<ErrorIcon /> %1$s. <Link>%2$s</Link>","google-site-kit"),a,Object(u.__)("Get help","google-site-kit")),{ErrorIcon:e.createElement(m.a,{height:"20",width:"23"}),Link:e.createElement(f.a,{href:i,external:!0})})):null}AdBlockerWarning.propTypes={context:o.a.string},AdBlockerWarning.defaultProps={context:""}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SiteSteps}));var a=n(1),r=n(4),i=n.n(r),o=n(23),c=n(28),s=i.a.useSelect;function SiteSteps(){var t=s((function(e){return e(c.f).getServiceAccountManageSitesURL()})),n=s((function(e){return e(c.f).getServiceAccountSiteAdsPreviewURL()})),r=[{linkText:Object(a.__)("Enabled auto ads for your site","google-site-kit"),linkURL:n},{linkText:Object(a.__)('Verified that your site is marked as "Ready"',"google-site-kit"),linkURL:t}];return e.createElement("div",{className:"googlesitekit-setup-module__list-wrapper"},e.createElement("ol",{className:"googlesitekit-setup-module__list"},r.map((function(t,n){return e.createElement("li",{className:"googlesitekit-setup-module__list-item",key:n},e.createElement(o.a,{href:t.linkURL,external:!0},t.linkText))}))))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupUseSnippetSwitch}));var a=n(2),r=n(1),i=n(4),o=n.n(i),c=n(28),s=n(290),u=n(108),l=o.a.useSelect,d=o.a.useDispatch;function SetupUseSnippetSwitch(){var t,n,i=l((function(e){return e(c.f).getOriginalUseSnippet()})),o=l((function(e){return e(c.f).getExistingTag()})),g=l((function(e){return e(c.f).getClientID()})),m=d(c.f),f=m.setUseSnippet,p=m.saveSettings,y=Boolean(o);if(Object(a.useEffect)((function(){y&&(f(!1),p())}),[y,p,f]),i&&!o||void 0===o||void 0===i)return null;var b=Object(r.__)("Make sure to remove the existing AdSense code to avoid conflicts with the code placed by Site Kit.","google-site-kit");return o===g?(n=Object(r.__)("Youve already got an AdSense code on your site for this account. We recommend you use Site Kit to place the code to get the most out of AdSense.","google-site-kit"),t="".concat(n," ").concat(b)):o?(n=Object(r.sprintf)(
/* translators: 1: existing account ID, 2: current account ID */
Object(r.__)("Site Kit detected AdSense code for a different account %1$s on your site. In order to configure AdSense for your current account %2$s, we recommend you use Site Kit to place the code instead.","google-site-kit"),Object(s.a)(o),Object(s.a)(g)),t="".concat(n," ").concat(b)):t=b,e.createElement(u.e,{checkedMessage:t,uncheckedMessage:n,saveOnChange:!0})}}).call(this,n(3))},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return g}));var a=n(1),r=n(64),i=n(104),o=n(324),c=n(97),s=function(e){var t=Object(a.__)("Your site isnt ready to show ads yet","google-site-kit");switch(e){case c.a:t=Object(a.__)("Your account has been approved","google-site-kit");break;case c.k:t=Object(a.__)("Your site is ready for ads","google-site-kit");break;case c.j:case c.e:t=Object(a.__)("Were getting your site ready for ads. This usually takes less than a day, but it can sometimes take a bit longer","google-site-kit");break;case c.i:case c.d:case c.g:case c.c:case c.b:t=Object(a.__)("You need to fix some issues before your account is approved. Go to AdSense to find out how to fix it","google-site-kit")}return t},u=function(e){var t="";switch(e){case c.n:case c.r:t=Object(a.__)("You need to fix some things before your site is ready.","google-site-kit");break;case c.m:t=Object(a.__)("Your site is getting ready.","google-site-kit");break;case c.p:t=Object(a.__)("Your site is ready for ads.","google-site-kit");break;case c.q:t=Object(a.__)("Your site is ready, with auto-ads disabled.","google-site-kit")}return t},l=function(t){return t?Object(r.a)(Object(a.__)("View <VisuallyHidden>site </VisuallyHidden>in AdSense","google-site-kit"),{VisuallyHidden:e.createElement(i.a,null)}):Object(a.__)("Check your site status","google-site-kit")},d=function(e,t,n){var r=Object(a.__)("The AdSense code has not been placed on your site","google-site-kit");return e?r=Object(a.__)("The AdSense code has been placed on your site","google-site-kit"):t&&t===n&&(r=Object(a.__)("The AdSense code has been placed by another plugin or theme","google-site-kit")),r},g=function(e){var t=Object(a.__)("Ads are currently displayed for all visitors","google-site-kit");return e.includes(o.b)&&e.includes(o.a)?t=Object(a.__)("All logged-in users and users who can write posts","google-site-kit"):e.includes(o.b)?t=o.d[o.b]:e.includes(o.a)&&(t=o.d[o.a]),t}}).call(this,n(3))},,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupSiteAdded}));var a=n(5),r=n.n(a),i=n(17),o=n.n(i),c=n(0),s=n.n(c),u=n(2),l=n(1),d=n(4),g=n.n(d),m=n(15),f=n(28),p=n(403),y=n(108),b=g.a.useSelect,v=g.a.useDispatch;function SetupSiteAdded(t){var n=t.finishSetup,a=b((function(e){return e(f.f).isDoingSubmitChanges()})),i=v(f.f).completeSiteSetup,c=Object(u.useCallback)(o()(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,i();case 4:e.sent&&n();case 6:case"end":return e.stop()}}),e)}))),[a,n,i]);return e.createElement(u.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(l.__)("Lets get your site ready for ads","google-site-kit")),e.createElement(y.d,null),e.createElement("p",null,Object(l.__)("In order for your site to display ads, make sure youve completed these steps in AdSense","google-site-kit")),e.createElement(p.a,null),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(m.Button,{onClick:c,disabled:a},Object(l.__)("Continue","google-site-kit"))))}SetupSiteAdded.propTypes={finishSetup:s.a.func},SetupSiteAdded.defaultProps={finishSetup:function(){}}}).call(this,n(3))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupMain}));var a=n(5),r=n.n(a),i=n(17),o=n.n(i),c=n(14),s=n.n(c),u=n(565),l=n(0),d=n.n(l),g=n(1),m=n
/* translators: %s: account ID */
Object(s.__)("Site Kit detected AdSense code for a different account %s on your site. For a better ads experience, you should remove AdSense code thats not linked to this AdSense account.","google-site-kit"),Object(m.a)(t)),E=Object(s.__)("Please note that AdSense will not show ads on your website unless youve already placed the code.","google-site-kit")):(_=!1,E=Object(s.__)("Please note that AdSense will not show ads on your website unless youve already placed the code.","google-site-kit")),e.createElement(c.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},O&&e.createElement("span",null,Object(s.__)("Looks like youre already using AdSense","google-site-kit")),!O&&e.createElement("span",null,Object(s.__)("Your account is ready to use AdSense","google-site-kit"))),e.createElement(p.d,null),e.createElement("p",null,O&&e.createElement("span",null,Object(s.__)("Site Kit will place AdSense code on your site to connect your site to AdSense and help you get the most out of ads. This means Google will automatically place ads for you in all the best places.","google-site-kit")),!O&&e.createElement("span",null,Object(s.__)("Site Kit has placed AdSense code on your site to connect your site to AdSense and help you get the most out of ads. This means Google will automatically place ads for you in all the best places.","google-site-kit"))),_&&e.createElement(p.f,null),e.createElement(p.e,{label:h,checkedMessage:S,uncheckedMessage:E,saveOnChange:!0}),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(d.Button,{onClick:v,disabled:i},Object(s.__)("Continue","google-site-kit"))))}}).call(this,n(3))},function(e,t,n){"use strict";function a(e){return"string"==typeof e&&/^pub-\d+$/.test(e)}function r(e){return"string"==typeof e&&/^ca-pub-\d+$/.test(e)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebStoriesAdUnitSelect}));var a=n(2),r=n(1),i=n(4),o=n.n(i),c=n(15),s=n(12),u=n(28),l=o.a.useSelect,d=o.a.useDispatch;function WebStoriesAdUnitSelect(){var t=l((function(e){return e(u.f).getAccountID()})),n=l((function(e){return e(u.f).getClientID()})),i=l((function(e){return e(u.f).getWebStoriesAdUnit()})),o=l((function(e){return e(u.f).getAdUnits(t,n)})),g=l((function(e){return e(u.f).hasFinishedResolution("getAdUnits",[t,n])})),m=d(u.f).setWebStoriesAdUnit,f=Object(a.useCallback)((function(e,t){var n=t.dataset.value;i!==n&&m(n)}),[i,m]);return g?e.createElement(s.q,{className:"googlesitekit-adsense__select-field",label:Object(r.__)("Web Stories Ad Unit","google-site-kit"),value:i,onEnhancedChange:f,enhanced:!0,outlined:!0},e.createElement(s.o,{value:""},Object(r.__)("Select ad unit","google-site-kit")),(o||[]).map((function(t){var n=t._id,a=t.displayName;return e.createElement(s.o,{key:n,value:n},a)}))):e.createElement(c.ProgressBar,{small:!0})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdSenseConnectCTA}));var a=n(21),r=n.n(a),i=n(5),o=n.n(i),c=n(17),s=n.n(c),u=n(14),l=n.n(u),d=n(328),g=n(0),m=n.n(g),f=n(1),p=n(2),y=n(64),b=n(4),v=n.n(b),h=n(15),_=n(28),S=n(12),E=n(16),O=n(18),A=n(36),T=n(8),k=n(697),N=n(23),j=n(174),I=n(20),C=v.a.useSelect,w=v.a.useDispatch;function AdSenseConnectCTA(t){var n=t.onDismissModule,a=w(A.a).navigateTo,i=w(O.a).activateModule,c=w(E.c).setInternalServerError,u=Object(I.a)(),g=Object(p.useRef)(),m=Object(p.useState)(!1),b=l()(m,2),v=b[0],D=b[1],R=Object(d.a)(g,{threshold:.25}),M=!!(null==R?void 0:R.intersectionRatio);Object(p.useEffect)((function(){M&&!v&&(Object(T.z)("".concat(u,"_adsense-cta-widget"),"widget_view"),D(!0))}),[M,u,v]);var P=C((function(e){return e(_.f).getAdminReauthURL()})),Z=C((function(e){return e(O.a).isModuleActive("adsense")})),L=C((function(e){return e(O.a).isModuleConnected("adsense")})),G=Object(p.useCallback)(s()(o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i("adsense");case 2:i
/* translators: 1: client ID, 2: user email address, 3: account ID */
Object(u.__)("Site Kit detected AdSense code %1$s on your page. We recommend you remove that code or add %2$s as a user to the AdSense account %3$s.","google-site-kit"),l,o,Object(p.a)(l)),!l&&Object(u.sprintf)(
/* translators: %s: user email address */
Object(u.__)("Already use AdSense? Add %s as a user to an existing AdSense account.","google-site-kit"),o)," ",a.createElement(m.a,{path:"/adsense/answer/2659101",external:!0,"aria-label":Object(u.__)("Learn more about adding a user to an existing AdSense account","google-site-kit")},Object(u.__)("Learn more","google-site-kit")))):null}}).call(this,n(25),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountDisapproved}));var a=n(2),r=n(1),i=n(4),o=n.n(i),c=n(23),s=n(28),u=n(108),l=o.a.useSelect;function SetupAccountDisapproved(){var t=l((function(e){return e(s.f).getAccountID()})),n=l((function(e){return e(s.f).getServiceAccountURL()}));return void 0!==t&&n?e.createElement(a.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(r.__)("Your site isnt ready to show ads yet","google-site-kit")),e.createElement(u.d,null),e.createElement("p",null,Object(r.__)("You need to fix some things before we can connect Site Kit to your AdSense account.","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(c.a,{href:n,external:!0},Object(r.__)("Go to AdSense to find out how to fix the issue","google-site-kit")))):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountNoClient}));var a=n(2),r=n(1),i=n(174),o=n(108);function SetupAccountNoClient(){return e.createElement(a.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(r.__)("Looks like you have an AdMob account","google-site-kit")),e.createElement(o.d,null),e.createElement("p",null,Object(r.__)("To start using AdSense, you need to update your account so that you can connect your site to AdSense.","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(i.a,{path:"/adsense/answer/6023158",external:!0,"aria-label":Object(r.__)("Learn more about updating your AdSense account","google-site-kit")},Object(r.__)("Learn more","google-site-kit"))))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountPending}));var a=n(2),r=n(1),i=n(4),o=n.n(i),c=n(23),s=n(28),u=n(108),l=o.a.useSelect;function SetupAccountPending(){var t=l((function(e){return e(s.f).getServiceAccountManageSiteURL()}));return t?e.createElement(a.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(r.__)("Your account is getting ready","google-site-kit")),e.createElement(u.d,null),e.createElement("p",null,Object(r.__)("Site Kit has placed AdSense code on every page across your site.","google-site-kit")," ",Object(r.__)("After youve finished setting up your account, well let you know when your site is ready to show ads. This usually takes less than a day, but it can sometimes take a bit longer.","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(c.a,{href:t,external:!0},Object(r.__)("Go to your AdSense account to check on your sites status or to complete setting up","google-site-kit")))):null}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountSelect}));var a=n(2),r=n(1),i=n(108);function SetupAccountSelect(){return e.createElement(a.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(r.__)("Select your AdSense account","google-site-kit")),e.createElement(i.d,null),e.createElement("p",null,Object(r.__)("Looks like you have multiple AdSense accounts associated with your Google account. Select the account to use with Site Kit below.","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__inputs"},e.createElement(i.a,null)))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return SetupSiteAdd}));var r=n(2),i=n(1),o=n(4),c=n.n(o),s=n(15),u=n(28),l=n(108),d=c.a.useSelect;fu
/* translators: %s: invalid site state identifier */
Object(o.__)("Invalid site state %s","google-site-kit"),c)})}}SetupAccountSite.propTypes={site:r.a.shape({autoAdsEnabled:r.a.bool,state:r.a.string}).isRequired,finishSetup:r.a.func}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountNoClient}));var a=n(2),r=n(64),i=n(1),o=n(15),c=n(174),s=n(108),u=n(8),l=n(20);function SetupAccountNoClient(){var t=Object(l.a)(),n=Object(a.useCallback)((function(){Object(u.z)("".concat(t,"_adsense"),"apply_afc")}),[t]);return e.createElement(a.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(i.__)("Looks like you need to upgrade your AdSense account","google-site-kit")),e.createElement(s.d,null),e.createElement("p",null,Object(r.a)(Object(i.__)("To start using AdSense on your website, you need to upgrade your account to add “AdSense for content”. <a>Learn more</a>","google-site-kit"),{a:e.createElement(c.a,{path:"/adsense/answer/6023158",external:!0,"aria-label":Object(i.__)("Learn more about updating your AdSense account","google-site-kit")})})),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(o.Button,{href:"https://www.google.com/adsense",target:"_blank","aria-label":Object(i.__)("Learn more about updating your AdSense account","google-site-kit"),onClick:n},Object(i.__)("Apply now","google-site-kit"))))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return SetupAccountCreateSite}));var r=n(2),i=n(1),o=n(4),c=n.n(o),s=n(15),u=n(28),l=n(108),d=n(8),g=n(20),m=c.a.useSelect;function SetupAccountCreateSite(){var t=Object(g.a)(),n=m((function(e){return e(u.f).getServiceAccountManageSiteURL()})),o=Object(r.useCallback)((function(a){a.preventDefault(),Object(d.z)("".concat(t,"_adsense"),"create_site"),e.open(n,"_blank")}),[n,t]);return a.createElement(r.Fragment,null,a.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(i.__)("Add this site to your AdSense account","google-site-kit")),a.createElement(l.d,null),a.createElement("p",null,Object(i.__)("Weve detected that you havent added this site to your AdSense account yet.","google-site-kit")),a.createElement("div",{className:"googlesitekit-setup-module__action"},a.createElement(s.Button,{onClick:o,href:n},Object(i.__)("Add site to AdSense","google-site-kit"))))}}).call(this,n(25),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountPendingTasks}));var a=n(2),r=n(1),i=n(4),o=n.n(i),c=n(15),s=n(404),u=n(28),l=n(108),d=n(8),g=n(20),m=o.a.useSelect;function SetupAccountPendingTasks(){var t=Object(g.a)(),n=Object(a.useCallback)((function(){Object(d.z)("".concat(t,"_adsense"),"review_tasks")}),[t]),i=m((function(e){return e(u.f).getServiceAccountURL()}));return e.createElement(a.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(r.__)("Your account isnt ready to show ads yet","google-site-kit")),e.createElement(l.d,null),e.createElement("p",null,Object(r.__)("You need to fix some things before we can connect Site Kit to your AdSense account.","google-site-kit")),e.createElement(s.a,null),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(c.Button,{onClick:n,href:i},Object(r.__)("Review AdSense account","google-site-kit"))))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return SetupCreateAccount}));var r=n(5),i=n.n(r),o=n(17),c=n.n(o),s=n(2),u=n(64),l=n(1),d=n(4),g=n.n(d),m=n(15),f=n(174),p=n(8),y=n(290),b=n(28),v=n(10),h=n(108),_=n(20),S=g.a.useSelect;function SetupCreateAccount(){var t=Object(_.a)(),n="".concat(t,"_adsense"),r=S((function(e){return e(v.a).getEmail()})),o=S((function(e){return e(b.f).getExistingTag()})),d=S((function(e){return e(b.f).getServiceCreateAccountURL()})),g=Object(s.useCallback)(function(){var t=c()(i.a.mark((function t(a){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a.preven
/* translators: 1: client ID, 2: user email address, 3: account ID */
Object(l.__)("Site Kit detected AdSense code %1$s on your page. We recommend you remove that code or add %2$s as a user to the AdSense account %3$s.","google-site-kit"),o,r,Object(y.a)(o)),!o&&Object(u.a)(Object(l.sprintf)(
/* translators: %s: user email address */
Object(l.__)("Already use AdSense? Add %s as a user to an existing AdSense account. <a>Learn more</a>","google-site-kit"),r),{a:a.createElement(f.a,{path:"/adsense/answer/2659101",external:!0,"aria-label":Object(l.__)("Learn more about adding a user to an existing AdSense account","google-site-kit")})})))}}).call(this,n(25),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupSelectAccount}));var a=n(2),r=n(1),i=n(108);function SetupSelectAccount(){return e.createElement(a.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(r.__)("Select your AdSense account","google-site-kit")),e.createElement(i.d,null),e.createElement("p",null,Object(r.__)("Looks like you have multiple AdSense accounts associated with your Google account. Select the account to use with Site Kit below.","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__inputs"},e.createElement(i.a,null)))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsForm}));var a=n(1),r=n(2),i=n(4),o=n.n(i),c=n(15),s=n(28),u=n(290),l=n(108),d=n(488),g=n(23),m=n(16),f=o.a.useSelect;function SettingsForm(){var t,n,i=f((function(e){return e(m.c).isWebStoriesActive()})),o=f((function(e){return e(s.f).getClientID()})),p=f((function(e){return e(s.f).getExistingTag()}));if(!f((function(e){return e(s.f).hasFinishedResolution("getExistingTag")})))return e.createElement(c.ProgressBar,null);p&&p===o?n=t=Object(a.__)("Youve already got an AdSense code on your site for this account, we recommend you use Site Kit to place code to get the most out of AdSense.","google-site-kit"):p?(t=Object(a.sprintf)(
/* translators: %s: account ID */
Object(a.__)("Site Kit detected AdSense code for a different account %s on your site. For a better ads experience, you should remove AdSense code thats not linked to this AdSense account.","google-site-kit"),Object(u.a)(p)),n=Object(a.__)("Please note that AdSense will not show ads on your website unless youve already placed the code.","google-site-kit")):n=Object(a.__)("Please note that AdSense will not show ads on your website unless youve already placed the code.","google-site-kit");return e.createElement("div",{className:"googlesitekit-adsense-settings-fields"},e.createElement(l.d,null),e.createElement(l.e,{checkedMessage:t,uncheckedMessage:n}),i&&e.createElement(r.Fragment,null,e.createElement(d.a,null),e.createElement("p",null,Object(a.__)("This ad unit will be used for your Web Stories.","google-site-kit")," ",e.createElement(g.a,{href:"https://support.google.com/adsense/answer/10175505#create-an-ad-unit-for-web-stories",external:!0,"aria-label":Object(a.__)("Learn more about Ad Sense Web Stories.","google-site-kit")},Object(a.__)("Learn more","google-site-kit")))),e.createElement(l.c,null))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardZeroData}));var a=n(1),r=n(12),i=n(403);function DashboardZeroData(){return e.createElement(r.f,{fill:!0},e.createElement(r.p,null,e.createElement(r.a,{size:12},e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(a.__)("No ad impressions yet","google-site-kit")),e.createElement("p",null,Object(a.__)("You dont have any ad impressions yet. Make sure youve completed these steps in AdSense:","google-site-kit")),e.createElement(i.a,null))))}}).call(this,n(3))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=n(297);n.d(t,"b",(function(){return a.a}));var r=n(204);n.d(t,"c",(function(){return r.a}));var i=n(298);n.d(t,"a",(function(){return i.a}))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n(10),i=n(299),o=n(4),c=n.n(o).a.useSelect;t.a=function Header(){var t=c((function(e){return e(r.a).getDateRangeNumberOfDays()}));return e.createElement(i.a,{title:Object(a.sprintf)(
/* translators: %s: number of days */
Object(a._n)("Performance over the last %s day","Performance over the last %s days",t,"google-site-kit"),t)})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(1),r=n(28),i=n(10),o=n(709),c=n(94),s=n(4),u=n.n(s),l=n(43),d=u.a.useSelect;t.a=function Footer(){var t=Object(l.a)(),n=d((function(e){return e(i.a).getDateRangeDates({offsetDays:r.e})})),s=d((function(e){return t?null:e(r.f).getServiceReportURL(Object(o.a)(n))}));return e.createElement(c.a,{href:s,name:Object(a._x)("AdSense","Service name","google-site-kit"),external:!0})}}).call(this,n(3))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AccountSelect}));var a=n(2),r=n(1),i=n(4),o=n.n(i),c=n(15),s=n(12),u=n(8),l=n(28),d=n(20),g=o.a.useSelect,m=o.a.useDispatch;function AccountSelect(){var t=Object(d.a)(),n="".concat(t,"_adsense"),i=g((function(e){return e(l.f).getAccountID()})),o=g((function(e){return e(l.f).getAccounts()})),f=g((function(e){return e(l.f).hasFinishedResolution("getAccounts")})),p=m(l.f).setAccountID,y=Object(a.useCallback)((function(e,t){var a=t.dataset.value;i!==a&&(p(a),Object(u.z)(n,"change_account"))}),[i,n,p]);return f?e.createElement(s.q,{className:"googlesitekit-adsense__select-account",label:Object(r.__)("Account","google-site-kit"),value:i,onEnhancedChange:y,enhanced:!0,outlined:!0},(o||[]).map((function(t,n){var a=t._id,r=t.displayName;return e.createElement(s.o,{key:n,value:a},r)}))):e.createElement(c.ProgressBar,{small:!0})}}).call(this,n(3))},,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotices}));var a=n(2),r=n(28),i=n(97),o=n(128),c=n(52);function ErrorNotices(){var t=Object(a.useCallback)((function(e){return void 0===Object(i.w)(e)}),[]),n=Object(c.a)("adsenseSetupV2");return e.createElement(o.a,{moduleSlug:"adsense",storeName:r.f,shouldDisplayError:n?void 0:t})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserProfile}));var a=n(4),r=n.n(a),i=n(15),o=n(10),c=r.a.useSelect;function UserProfile(){var t=c((function(e){return e(o.a).getEmail()})),n=c((function(e){return e(o.a).getPicture()}));return c((function(e){return e(o.a).hasFinishedResolution("getUser")}))?e.createElement("p",{className:"googlesitekit-setup-module__user"},e.createElement("img",{className:"googlesitekit-setup-module__user-image",src:n,alt:""}),e.createElement("span",{className:"googlesitekit-setup-module__user-email"},t)):e.createElement(i.ProgressBar,{small:!0})}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UseSnippetSwitch}));var a=n(5),r=n.n(a),i=n(17),o=n.n(i),c=n(0),s=n.n(c),u=n(565),l=n(2),d=n(1),g=n(4),m=n.n(g),f=n(15),p=n(100),y=n(8),b=n(28),v=n(20),h=n(132),_=m.a.useSelect,S=m.a.useDispatch;function UseSnippetSwitch(t){var n=t.label,a=void 0===n?Object(d.__)("Let Site Kit place AdSense code on your site","google-site-kit"):n,i=t.checkedMessage,c=t.uncheckedMessage,s=t.saveOnChange,g=Object(v.a)(),m="".concat(g,"_adsense"),E=_((function(e){return e(b.f).getUseSnippet()})),O=_((function(e){return e(b.f).isDoingSubmitChanges()})),A=S(b.f),T=A.setUseSnippet,k=A.saveSettings,N=Object(l.useCallback)(o()(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(T(!E),!s){e.next=4;break}return e.next=4,k();case 4:case"end":return e.stop()}}),e)}))),[E,s,T,k]);return Object(u.a)((function(){Object(y.z)(m,E?"enable_tag":"disable_tag")}),[m,E]),void 0===E?null:e.createElement(l.Fragment,null,e.createElement("div",{className:"googlesitekit-setup-module__switch"},e.createElement(f.Switch,{label:a,onClick:N,checked:E,disabled:O,hideLabel:!1})," ",e.createElement(h.a,{className:"googlesitekit-badge--primary",label:Object(d.__)("Recommended","google-site-kit")})),E&&i&&e.createElement(p.c,{notice:i}),!E&&c&&e.createElement(p.c,{notice:c}))}UseSnippetSwitch.propTypes={label:s.a.string,checkedMessage:s.a.string,uncheckedMessage:s.a.string,saveOnChange:s.a.bool},UseSnippetSwitch.defaultProps={saveOnChange:!1}}).call(this,n(3))},funct
/* translators: %s: link with next step */
t=Object(i.__)("Site Kit has placed AdSense code on your site: %s","google-site-kit"),n=Object(i.__)("check module page","google-site-kit")):(
/* translators: %s: link with next step */
t=Object(i.__)("Setup incomplete: %s","google-site-kit"),n=Object(i.__)("continue module setup","google-site-kit")),e.createElement(a.Fragment,null,e.createElement(d.b,null),Object(r.a)(Object(i.sprintf)(t,"<a>".concat(n,"</a>")),{a:e.createElement(s.a,{className:"googlesitekit-settings-module__edit-button",href:m})}))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsView}));var a=n(1),r=n(4),i=n.n(r),o=n(169),c=n(23),s=n(52),u=n(16),l=n(28),d=n(108),g=n(424),m=i.a.useSelect;function SettingsView(){var t=Object(s.a)("adsenseSetupV2"),n=m((function(e){return e(l.f).getAccountID()})),r=m((function(e){return e(l.f).getServiceAccountManageSitesURL()})),i=m((function(e){return e(u.c).isWebStoriesActive()})),f=m((function(e){return e(l.f).getWebStoriesAdUnit()})),p=m((function(e){return e(l.f).getAccountStatus()})),y=m((function(e){return e(l.f).getSiteStatus()})),b=m((function(e){return e(l.f).getUseSnippet()})),v=m((function(e){return e(l.f).getExistingTag()})),h=m((function(e){return e(l.f).getClientID()})),_=m((function(e){return e(l.f).getAutoAdsDisabled()||[]})),S=Object(g.a)(p),E=Object(g.c)(y),O=Object(g.d)(t),A=Object(g.e)(b,v,h),T=Object(g.b)(_);return e.createElement("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--adsense"},e.createElement(d.d,null),e.createElement("div",{className:"googlesitekit-settings-module__meta-items"},e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(a.__)("Publisher ID","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},e.createElement(o.a,{value:n}))),e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(a.__)("Account Status","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},S)),e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(a.__)("Site Status","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},t&&E+" ",e.createElement(c.a,{href:r,className:"googlesitekit-settings-module__cta-button",external:!0,disabled:void 0===r,hideExternalIndicator:void 0===r},O)))),e.createElement("div",{className:"googlesitekit-settings-module__meta-items"},e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(a.__)("AdSense Code","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},A))),e.createElement("div",{className:"googlesitekit-settings-module__meta-items"},e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(a.__)("Excluded from ads","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},T))),i&&e.createElement("div",{className:"googlesitekit-settings-module__meta-items"},e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(a.__)("Web Stories Ad Unit","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},!f&&e.createElement("span",null,Object(a.__)("None","google-site-kit")),f&&e.createElement(o.a,{value:f}))))))}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var a=n(14),r=n.n(a),i=n(1),o=n(584),c=n(4),s=n.n(c),u=n(7),l=n(10),d=n(28),g=n(159),m=n(234),f=n(94),p=n(235),y=n(217),b=n(23),v=n(402),h=n(198),_=n(195),S=n(103),E=n(8),O=n(707),A=n(43),T=s.a.useSelect,k=s.a.useInViewSelect;t.a=Object(o.a)
/* translators: %s: invalid site status identifier */
Object(a.__)("Invalid site status: %s","google-site-kit"),t)});switch(t){case o.o:c=e.createElement(m.a,null);break;case o.l:c=e.createElement(f.a,{finishSetup:r})}return c}(S,n,O):function(t,n){var r=n?e.createElement(p.d,null):e.createElement(i.a,{message:Object(a.sprintf)(
/* translators: %s: invalid account status identifier */
Object(a.__)("Invalid account status: %s","google-site-kit"),t)});switch(t){case o.h:r=e.createElement(c.a,null);break;case o.f:r=e.createElement(s.a,null);break;case o.d:r=e.createElement(u.a,null);break;case o.e:case o.j:r=e.createElement(l.a,null);break;case o.i:r=e.createElement(d.a,null);break;case o.a:r=e.createElement(g.a,null)}return r}(t,n)}}).call(this,n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return NeedsAttention}));var r=n(2),i=n(1),o=n(4),c=n.n(o),s=n(68),u=n(8),l=n(28),d=n(378),g=c.a.useSelect;function NeedsAttention(){var t=Object(r.useContext)(s.b),n=g((function(e){return e(l.f).getServiceAccountManageSitesURL()})),o=Object(r.useCallback)((function(a){a.preventDefault(),Object(u.z)("".concat(t,"_adsense"),"review_site_state","needs_attention"),e.open(n,"_blank")}),[n,t]),c=Object(i.__)("Your site isnt ready to show ads yet","google-site-kit"),m=Object(i.__)("You need to fix some things with this site before we can connect Site Kit to your AdSense account.","google-site-kit"),f={label:Object(i.__)("Review site in AdSense","google-site-kit"),href:n,onClick:o};return a.createElement(d.a,{heading:c,description:m,primaryButton:f})}}).call(this,n(25),n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return GettingReady}));var r=n(2),i=n(1),o=n(4),c=n.n(o),s=n(68),u=n(8),l=n(28),d=n(378),g=c.a.useSelect;function GettingReady(){var t=Object(r.useContext)(s.b),n=g((function(e){return e(l.f).getServiceAccountManageSitesURL()})),o=Object(r.useCallback)((function(a){a.preventDefault(),Object(u.z)("".concat(t,"_adsense"),"review_site_state","getting_ready"),e.open(n,"_blank")}),[n,t]),c=Object(i.__)("Your site is getting ready","google-site-kit"),m=Object(i.__)("This usually takes a few days, but in some cases can take up to 2 weeks. Youll get an email from AdSense as soon as they have run some checks on your site.","google-site-kit"),f={label:Object(i.__)("Review site in AdSense","google-site-kit"),href:n,onClick:o};return a.createElement(d.a,{heading:c,description:m,primaryButton:f})}}).call(this,n(25),n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return RequiresReview}));var r=n(2),i=n(1),o=n(4),c=n.n(o),s=n(68),u=n(8),l=n(28),d=n(378),g=c.a.useSelect;function RequiresReview(){var t=Object(r.useContext)(s.b),n=g((function(e){return e(l.f).getServiceAccountManageSitesURL()})),o=Object(r.useCallback)((function(a){a.preventDefault(),Object(u.z)("".concat(t,"_adsense"),"review_site_state","requires_review"),e.open(n,"_blank")}),[n,t]),c=Object(i.__)("Your site requires review","google-site-kit"),m=Object(i.__)("To start serving ads, your site needs to be approved first. Go to AdSense to request the review.","google-site-kit"),f={label:Object(i.__)("Request review in AdSense","google-site-kit"),href:n,onClick:o};return a.createElement(d.a,{heading:c,description:m,primaryButton:f})}}).call(this,n(25),n(3))},function(e,t,n){"use strict";(function(e,a){n.d(t,"a",(function(){return Ready}));var r=n(5),i=n.n(r),o=n(17),c=n.n(o),s=n(14),u=n.n(s),l=n(2),d=n(1),g=n(4),m=n.n(g),f=n(68),p=n(8),y=n(28),b=n(378),v=m.a.useSelect,h=m.a.useDispatch;function Ready(t){var n=t.site,r=t.finishSetup,o=Object(l.useState)(!1),s=u()(o,2),g=s[0],m=s[1],_=Object(l.useContext)(f.b),S=v((function(e){return e(y.f).getExistingTag()})),E=v((function(e){return e(y.f).getServiceAccountSiteAdsPreviewURL()})),O=v((function(e){return e(y.f).isDoingSubmitChanges()})),A=h(y.f),T=A.completeSiteSetup,k=A.completeAccountSetup,N=Object(l.useCallback)((function(t){t.preventDefault(),Object(p.z)("".concat(_,"_adsense"),"enable_auto_ads"),e.open(E,"_blank")}),[E,_]),j=Object(l.useCallback)((function(e){e.preventDefault(),Object(p.z)("".concat(_,"_adsense"),"disable_auto_ads"),m(!0)}),[_]),I=Object(l.useCallback)(c()(i.a.mark((function e(){var t,n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!O){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,T();case 4:return t=e.sent,e.next=7,k();case 7:n=e.sent,t&&n&&"function"==typeof r&&r();case 9:ca