52 lines
219 KiB
JavaScript
52 lines
219 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[21],{1:function(e,t){e.exports=googlesitekit.i18n},10:function(e,t){e.exports=googlesitekit.components},100:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(35),i=n.n(r),o=n(96),a=n.n(o),c=function(e){return a()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var o=t[r];o&&"object"===i()(o)&&!Array.isArray(o)&&(o=e(o)),n[r]=o})),n}(e)))}},101:function(e,t,n){"use strict";(function(e){n(49),n(50)}).call(this,n(26))},102:function(e,t,n){"use strict";function r(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function i(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function o(e){return e.replace(/\n/gi,"<br>")}function a(e){for(var t=e,n=0,a=[r,i,o];n<a.length;n++){t=(0,a[n])(t)}return t}n.d(t,"a",(function(){return a}))},103:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=function(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]},i=function(e){var t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}},104:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(221),i=n(85),o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var o=n.invertColor,a=void 0!==o&&o;return Object(r.a)(e.createElement(i.a,{direction:t>0?"up":"down",invertColor:a}))},a=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,n(3))},1047:function(e,t,n){"use strict";n.r(t);var r=n(4),i=n.n(r),o=n(191),a=n.n(o),c=n(332),s=n.n(c),l=n(733),u=(n(610),n(737)),g=n(833),d=n(834),f=n(123),p=n(2);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v=p.createElement("path",{fill:"#525252",d:"M97.15 2.73c.46-.55 1.37-1.64 1.82-2.2 27-.1 53.98-.04 80.97-.02.44.5 1.32 1.5 1.75 2 .1.15.4.43.5.57.18.16.5.48.68.65.25.23.77.67 1.03.9.33.3.98.92 1.3 1.24.26.25.76.75 1 1 .25.23.7.7.96.94.25.25.74.75.98 1 .25.25.76.75 1 1 .27.26.78.76 1.03 1.02.25.25.76.75 1.02 1 .23.25.72.73.96.97l1 1c.24.24.73.73.98 1 .3.3.93.94 1.24 1.26.23.26.67.78.9 1.04.17.2.5.55.67.73.18.2.56.6.75.78.43.45 1.3 1.3 1.72 1.76.14.15.43.46.57.6.07.13.25.37.33.48.27.56.8 1.67 1.08 2.22.2 5.67-.07 11.34.06 17-7.7-.1-15.4-.1-23.08.02.26-.16.8-.47 1.07-.63-.7-6.6-.7-13.24-.58-19.87-26.28-.02-52.56-.02-78.83 0 .17 6.83-.08 13.64-.44 20.46l1.27.04c-7.8-.1-15.63-.12-23.44-.02.12-5.66-.14-11.32.03-16.98.3-.57.86-1.72 1.15-2.3.1-.1.26-.34.35-.46.15-.16.45-.47.6-.63.44-.45 1.33-1.3 1.77-1.75.2-.18.6-.56.78-.75.22-.22.65-.64.86-.85.24-.23.7-.7.94-.94.25-.24.74-.73.98-1 .25-.22.74-.72 1-.96.23-.26.72-.75.96-1 .24-.23.7-.7.94-.95.2-.23.63-.67.84-.9.32-.32.96-1 1.28-1.33l1.28-1.2c.2-.2.62-.6.83-.8.23-.22.7-.68.9-.9.26-.24.75-.73 1-.97s.72-.73.97-.97c.23-.24.7-.7.94-.94l.8-.8c.1-.14.35-.4.46-.54zm37.7 166.57c2.8-14.95 12.87-28.3 26.16-35.56.2 12.76.08 25.53-.04 38.3.03 2.54-.08 5.12.42 7.63 6.28 4 13.18 6.96 19.6 10.74 6.25-3.25 12.47-6.6 18.7-9.9 2.18-.66 1.4-3.2 1.62-4.93-.06-13.9-.1-27.82 0-41.73 10.12 4.16 17.33 12.82 23 21.85 1.95 6.62 4.35 13.27 4.08 20.3.38 16.85-9.32 33.53-24.3 41.32-1.08.74-2.8 1.17-2.66 2.8-.96 9.1-.42 18.3.17 27.4h-41c.3-9.72.8-19.43-.05-29.14-7.56-3.6-14.02-9.35-18.68-16.3-6.28-9.55-8.7-21.48-7.03-32.76z"}),b=p.createElement("path",{fill:"#4d4d4d",d:"M96.68 3.26c.12-.13.36-.4.47-.53-.1.13-.35.4-.47.53zm85.02-.76c.12.14.4.42.52.56-.13-.14-.4-.42-.53-.56zM95.9 4.06c.2-.2.6-.6.78-.8-.2.2-.6.6-.78.8zm86.32-1c.17.16.5.48.67.65-.2-.15-.5-.47-.7-.63zM94.96 5c.23-.24.7-.7.94-.94-.24.24-.7.7-.94.93zm87.94-1.3c.25.23.77.67 1.03.9-.26-.23-.78-.67-1.04-.9zM93.98 5.96c.24-.24.73-.
|
|||
|
|
/* translators: %s: source link */
|
|||
|
|
Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(l.a,{key:"link",href:r,external:o})}))}SourceLink.propTypes={name:i.a.string,href:i.a.string,className:i.a.string,external:i.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(3))},14:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r="core/site",i="primary",o="secondary"},146:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=r.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"currentColor"});t.a=function SvgClose(e){return r.createElement("svg",i({viewBox:"0 0 14 14",fill:"none"},e),o)}},151:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},152:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(21),i=function(e){return r.f.includes(e)}},154:function(e,t,n){"use strict";var r=n(2),i=n(53),o=Object(r.createContext)(i.a);t.a=o},157:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t||{},i=n.slug,o=void 0===i?"":i,a=n.name,c=void 0===a?"":a,s=n.owner,l=void 0===s?{}:s;if(!o||!c)return e;var u="",g="";return"analytics"===o?e.match(/account/i)?u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(u=Object(r.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")):"search-console"===o&&(u=Object(r.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")),u||(u=Object(r.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(r.__)("Your Google account does not have sufficient permissions to access %s data, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"),c)),l&&l.login&&(g=Object(r.sprintf)(
|
|||
|
|
/* translators: %s: owner name */
|
|||
|
|
Object(r.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),l.login)),g||(g=Object(r.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(u," ").concat(g)}},159:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(4),i=n.n(r),o=n(29),a=i.a.useSelect;function c(e){return a((function(t){return t(o.b).getValue(e)||{isTooltipVisible:!1,rehideAdminMenu:!1,rehideAdminSubMenu:!1}}))}},161:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GenericErrorHandlerActions}));var r=n(0),i=n.n(r),o=n(1),a=n(24),c=n(166);function GenericErrorHandlerActions(t){var n=t.message,r=t.componentStack;return e.createElement("div",{className:"googlesitekit-generic-error-handler-actions"},e.createElement(c.a,{message:n,componentStack:r}),e.createElement(a.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(o.__)("Report this problem","google-site-kit")))}GenericErrorHandlerActions.propTypes={message:i.a.string,componentStack:i.a.string}}).call(this,n(3))},163:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(11),i=n.n(r),o=function(e,t){var n=t.dateRangeLength;i()(Array.isArray(e),"report must be an array to partition."),i()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=-1*n;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},164:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=r.createElement("path",{d:"M0 0h2v7H0zm0 10h2v2H0z",fill:"currentColor",fillRule:"evenodd"});t.a=function SvgWarningIcon(e){return r.createElement("svg",i({viewBox:"0 0 2 12"},e),o)}},165:function(e,t,n){"use strict";t.a=function(e){if("string"==typeof e&&e.match(/[0-9]{8}/)){var t=e.slice(0,4),n=Number(e.slice(4,6))-1,r=e.slice(6,8);return new Date(t,n.toString(),r)}return!1}},166:function(e,t,n){"use strict";(function(e){var r=n(17),i=n.n(r),o=n(177),a=n.n(o),c=n(0),s=n.n(c),l=n(2),u=n(1),g=n(226),d=n(365),f=n(366),p=n(10);function ReportErrorButton(t){var n=t.message,r=t.componentStack,o=Object(l.useState)(!1),c=i()(o,2),s=c[0],m=c[1];return e.createElement(p.Button,{"aria-label":s?Object(u.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){a()("`".concat(n,"\n").concat(r,"`")),m(!0)},trailingIcon:e.createElement(g.a,{className:"mdc-button__icon",icon:s?d.a:f.a})},s?Object(u.__)("Copied to clipboard","google-site-kit"):Object(u.__)("Copy error contents","google-site-kit"))}ReportErrorButton.propTypes={message:s.a.string,componentStack:s.a.string},t.a=ReportErrorButton}).call(this,n(3))},169:function(e,t,n){"use strict";var r=n(0),i=n.n(r);function DisplaySetting(e){return e.value||" "}DisplaySetting.propTypes={value:i.a.oneOfType([i.a.string,i.a.bool,i.a.number])},t.a=DisplaySetting},172:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return RecoverableModules}));var r=n(0),i=n.n(r),o=n(1),a=n(4),c=n.n(a),s=n(20),l=n(110),u=c.a.useSelect;function RecoverableModules(t){var n=t.moduleSlugs,r=u((function(e){var t=e(s.a).getModules();if(void 0!==t)return n.map((function(e){return t[e].name}))}));if(void 0===r)return null;var i=1===r.length?Object(o.sprintf)(
|
|||
|
|
/* translators: %s: Module name */
|
|||
|
|
Object(o.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),r[0]):Object(o.sprintf)(
|
|||
|
|
/* translators: %s: List of module names */
|
|||
|
|
Object(o.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),r.join(Object(o._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(l.a,{title:Object(o.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:i.a.arrayOf(i.a.string).isRequired}}).call(this,n(3))},178:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r,i=n(6),o=n.n(i),a=n(1),c=n(7),s=n(14),l=n(9);function u(e,t){return!t||e(l.m).hasCustomDimensions(this.requiredCustomDimensions)}var g=(r={},o()(r,c.s,{title:Object(a.__)("Top recent trending pages","google-site-kit"),description:Object(a.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),infoTooltip:Object(a.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_date"],displayInList:u}),o()(r,c.k,{title:Object(a.__)("Most popular authors by pageviews","google-site-kit"),description:Object(a.__)("Authors whose posts got the most visits","google-site-kit"),infoTooltip:Object(a.__)("Authors whose posts got the most visits","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_author"],displayInList:u}),o()(r,c.o,{title:Object(a.__)("Top categories by pageviews","google-site-kit"),description:Object(a.__)("Categories that your site visitors viewed the most","google-site-kit"),infoTooltip:Object(a.__)("Categories that your site visitors viewed the most","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_categories"],displayInList:u}),o()(r,c.l,{title:Object(a.__)("Most popular content by pageviews","google-site-kit"),description:Object(a.__)("Pages that brought in the most visitors","google-site-kit"),infoTooltip:Object(a.__)("Pages your visitors read the most","google-site-kit")}),o()(r,c.m,{title:Object(a.__)("Most popular products by pageviews","google-site-kit"),description:Object(a.__)("Products that brought in the most visitors","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_type"],displayInList:function(e){return e(c.a).isKeyMetricActive(c.m)||e(s.c).getProductPostType()}}),o()(r,c.j,{title:Object(a.__)("Pages per visit","google-site-kit"),description:Object(a.__)("Number of pages visitors viewed per session on average","google-site-kit"),infoTooltip:Object(a.__)("Number of pages visitors viewed per session on average","google-site-kit")}),o()(r,c.w,{title:Object(a.__)("Visit length","google-site-kit"),description:Object(a.__)("Average duration of engaged visits","google-site-kit"),infoTooltip:Object(a.__)("Average duration of engaged visits","google-site-kit")}),o()(r,c.v,{title:Object(a.__)("Visits per visitor","google-site-kit"),description:Object(a.__)("Average number of sessions per site visitor","google-site-kit"),infoTooltip:Object(a.__)("Average number of sessions per site visitor","google-site-kit")}),o()(r,c.h,{title:Object(a.__)("Most engaging pages","google-site-kit"),description:Object(a.__)("Pages with the highest engagement rate","google-site-kit"),infoTooltip:Object(a.__)("Pages with the highest engagement rate","google-site-kit")}),o()(r,c.g,{title:Object(a.__)("Least engaging pages","google-site-kit"),description:Object(a.__)("Pages with the highest percentage of visitors that left without engagement with your site","google-site-kit"),infoTooltip:Object(a.__)("Percentage of visitors that left without engagement with your site","google-site-kit")}),o()(r,c.t,{title:Object(a.__)("Top pages by returning visitors","google-site-kit"),description:Object(a.__)("Pages that attracted the most returning visitors","google-site-kit"),infoTooltip:Object(a.__)("Pages that attracted the most returning visitors","google-site-kit")}),o()(r,c.i,{title:Object(a.__)("New visitors","google-site-kit"),description:Object(a.__)("How many new visitors you got and how the overall audience changed","google-site-kit"),infoTooltip:Object(a.__)("Portion of visitors who visit
|
|||
|
|
/* translators: 1: date for user stats, 2: previous date for user stats comparison */
|
|||
|
|
Object(u._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),Object(g.k)(v).toLocaleDateString(c,s),Object(g.k)(h).toLocaleDateString(c,s)),O=Object(i.d)(b,m),_=Object(i.e)(m,b),k=Object(i.k)(_),j=Object(u.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(u._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s%%</em>","Stat information for chart tooltip","google-site-kit"),n,Math.abs(m).toFixed(2).replace(/(.00|0)$/,""),k,Object(i.w)(O));a.push([Object(g.k)(v),'<div class="'.concat(l()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":_>0,"googlesitekit-visualization-tooltip--down":_<0}),'">\n\t\t\t\t<p>').concat(y,"</p>\n\t\t\t\t<p>").concat(j,"</p>\n\t\t\t</div>"),m,b])})),a},f=n(11),p=n.n(f),m=n(54),v=function(e){var t=e.startDate,n=e.endDate;return p()(Object(m.a)(t),"A valid startDate is required."),p()(Object(m.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}};function b(e){return"string"==typeof e&&e.length>0}function h(e){var t=[[{type:"string",label:"Day"},{type:"number",label:"Clicks"},{type:"number",label:"Impressions"},{type:"number",label:"CTR"},{type:"number",label:"Position"}]],n=0,i=0,o=0,c=0,s=e.length;return Object(r.each)(e,(function(e){var s=Object(a.a)(e.keys[0]);t.push([s.getMonth()+1+"/"+s.getUTCDate(),e.clicks,e.impressions,Object(r.round)(e.ctr,3),Object(r.round)(e.position,3)]),n+=e.clicks,i+=e.impressions,o+=e.ctr,c+=e.position})),{dataMap:t,totalClicks:n,totalImpressions:i,averageCTR:s>0?o/s:0,averagePosition:s>0?c/s:0}}var y=function(e,t){var n=Object(o.a)(e,{dateRangeLength:t}),r=n.compareRange,a=h(n.currentRange),c=h(r);return{dataMap:a.dataMap,totalClicks:a.totalClicks,totalImpressions:a.totalImpressions,averageCTR:a.averageCTR,averagePosition:a.averagePosition,totalClicksChange:Object(i.d)(c.totalClicks,a.totalClicks),totalImpressionsChange:Object(i.d)(c.totalImpressions,a.totalImpressions),averageCTRChange:Object(i.d)(c.averageCTR,a.averageCTR),averagePositionChange:Object(i.d)(c.averagePosition,a.averagePosition)}}},331:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(2),i=n(4),o=n.n(i),a=n(7),c=n(20),s=n(32),l=o.a.useSelect,u=o.a.useDispatch;function g(e){var t=l((function(e){return e(a.a).hasCapability(a.B)})),n=l((function(t){return t(c.a).getModuleStoreName(e)})),i=l((function(e){var t;return null===(t=e(n))||void 0===t?void 0:t.getAdminReauthURL()})),o=u(s.a).navigateTo,g=Object(r.useCallback)((function(){return o(i)}),[i,o]);return i&&t?g:null}},332:function(e,t){e.exports=googlesitekit.widgets},334:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(2);function Sparkline(t){var n=t.sparkline,r=t.invertChangeColor,i=n;return i&&r&&(i=Object(o.cloneElement)(n,{invertChangeColor:r})),e.createElement("div",{className:"googlesitekit-data-block__sparkline"},i)}Sparkline.propTypes={sparkline:i.a.element,invertChangeColor:i.a.bool},t.a=Sparkline}).call(this,n(3))},335:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(12),a=n.n(o),c=n(1),s=n(8),l=n(85);function Change(t){var n=t.change,r=t.changeDataUnit,i=t.period,o=t.invertChangeColor,u=n;return r&&(u="%"===r?Object(s.w)(n,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(s.w)(n,r)),i&&(u=Object(c.sprintf)(i,u)),e.createElement("div",{className:a()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!n})},!!n&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(l.a,{direction:0<parseFloat(n)?"up":"down",invertColor:o})),e.createElement("span",{className:"googlesitekit-data-block__value"},u))}Change.propTypes={change:i.a.oneOfType([i.a.string,i.a.number]),changeDataUnit:i.a.oneOfType([i.a.string,i.a.bool]),period:i.a.string,invertChangeColor:i.a.bool},t.a=Change}).call(this,n(3))},336:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ChangeBadge}));var r=n(0),i=n.n(r),o=n(12),a=n.n(o),c=n(8);function ChangeBadge(t){var n=t.previousValue,r=t.currentValue,i=t.isAbsolute?r-n:Object(c.d)(n,r),o=i<0,s=0===i;return null===i?null:e.createElement("div",{className:a()("googlesitekit-change-badge",{"googlesitekit-change-badge--negative":o,"googlesitekit-change-badge--zero":s})},Object(c.w)(i,{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:1}))}Change
|
|||
|
|
/* 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,C),D[n][0].toLocaleDateString(R,C)),v=Object(s.sprintf)(
|
|||
|
|
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
|
|||
|
|
Object(s._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),r[t],o[t](c),p,Object(u.w)(Math.abs(f),"%"));E.push([e[0],'<div class="'.concat(a()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":f>0,"googlesitekit-visualization-tooltip--down":f<0}),'">\n\t\t\t\t<p>').concat(m,"</p>\n\t\t\t\t<p>").concat(v,"</p>\n\t\t\t</div>"),k?Object(u.g)(c):c,k?Object(u.g)(l):l])}})),E}},388:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=r.createElement("path",{d:"M7.334 11.333h1.333v-4H7.334v4zM8.001 6a.658.658 0 00.667-.667.605.605 0 00-.2-.467.605.605 0 00-.467-.2.658.658 0 00-.667.667c0 .189.061.35.183.483A.69.69 0 008.001 6zm0 8.666a6.583 6.583 0 01-2.6-.516 6.85 6.85 0 01-2.117-1.434A6.85 6.85 0 011.851 10.6 6.582 6.582 0 011.334 8c0-.923.172-1.79.517-2.6a6.85 6.85 0 011.433-2.117c.6-.6 1.306-1.072 2.117-1.417A6.404 6.404 0 018 1.333c.922 0 1.789.178 2.6.533a6.618 6.618 0 012.116 1.417c.6.6 1.072 1.306 1.417 2.117.355.81.533 1.677.533 2.6 0 .922-.178 1.789-.533 2.6a6.619 6.619 0 01-1.417 2.116 6.85 6.85 0 01-2.116 1.434 6.583 6.583 0 01-2.6.516zm0-1.333c1.489 0 2.75-.517 3.783-1.55s1.55-2.294 1.55-3.783c0-1.49-.517-2.75-1.55-3.784-1.033-1.033-2.294-1.55-3.783-1.55-1.49 0-2.75.517-3.784 1.55C3.184 5.25 2.667 6.511 2.667 8c0 1.489.517 2.75 1.55 3.783 1.034 1.033 2.295 1.55 3.784 1.55z",fill:"#108080"});t.a=function SvgInfoGreen(e){return r.createElement("svg",i({viewBox:"0 0 16 16",fill:"none"},e),o)}},389:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return KeyMetricsSetupCTARenderedEffect}));var r=n(236),i=n(4),o=n.n(i),a=n(29),c=o.a.useDispatch,s="KEY_METRICS_SETUP_CTA_RENDERED";function KeyMetricsSetupCTARenderedEffect(){var e=c(a.b).setValue;return Object(r.a)((function(){e(s,!0)})),null}},395:function(e,t,n){"use strict";(function(e,r){var i=n(49),o=n.n(i),a=n(50),c=n.n(a),s=n(230),l=n.n(s),u=n(68),g=n.n(u),d=n(69),f=n.n(d),p=n(46),m=n.n(p),v=n(177),b=n.n(v),h=n(0),y=n.n(h),O=n(2),_=n(1),k=n(110),j=n(161),E=n(62),w=n(8);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var i=m()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var A=function(t){g()(GoogleChartErrorHandler,t);var n=S(GoogleChartErrorHandler);function GoogleChartErrorHandler(e){var t;return o()(this,GoogleChartErrorHandler),(t=n.call(this,e)).state={error:null,info:null},t.onErrorClick=t.onErrorClick.bind(l()(t)),t}return c()(GoogleChartErrorHandler,[{key:"componentDidCatch",value:function(t,n){e.console.error("Google Charts error:",t,n),this.setState({error:t,info:n}),Object(w.B)("google_chart_error","handle_".concat(this.context||"unknown","_error"),"".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack).slice(0,500))}},{key:"onErrorClick",value:function(){var e=this.state,t=e.error,n=e.info;b()("`".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack,"`"))}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.error,i=t.info;return n?r.createElement("div",{className:"googlesitekit-googlechart-error-handler"},r.createElement(k.a,{description:r.createElement(O.Fragment,null,r.createElement("p",null,Object(_.__)("An error prevented this Google chart from being displayed properly. Report the exact contents of the error on the support forum to find out what caused it.","google-site-kit")),r.createElement(j.a,{message:n.message,componentStack:i.componentStack})),error:!0,onErrorClick:this.onErrorClick,onClick:this.onErrorClick,title:Object(_.__)("Error
|
|||
|
|
/* translators: %s: get help text. */
|
|||
|
|
Object(a.__)("Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(c.a,{href:n,external:!0,hideExternalIndicator:!0},Object(a.__)("Get help","google-site-kit"))})}GetHelpLink.propTypes={linkURL:i.a.string.isRequired}}).call(this,n(3))},451:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricTileLoader}));var r=n(55);function MetricTileLoader(){return e.createElement("div",{className:"googlesitekit-km-widget-tile__loading"},e.createElement(r.a,{className:"googlesitekit-km-widget-tile__loading-header",width:"100%",height:"14px"}),e.createElement(r.a,{className:"googlesitekit-km-widget-tile__loading-body",width:"100%",height:"53px"}))}}).call(this,n(3))},452:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return MetricTileHeader}));var r=n(0),i=n.n(r),o=n(272),a=n(88);function MetricTileHeader(t){var n=t.title,r=t.infoTooltip,i=t.loading;return e.createElement("div",{className:"googlesitekit-km-widget-tile__title-container"},e.createElement("h3",{className:"googlesitekit-km-widget-tile__title"},n),i?e.createElement(a.a,null,e.createElement(o.a,{title:r})):e.createElement(o.a,{title:r}))}MetricTileHeader.propTypes={title:i.a.string,infoTooltip:i.a.oneOfType([i.a.string,i.a.element]),loading:i.a.bool}}).call(this,n(3))},453:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(5),i=n.n(r),o=n(6),a=n.n(o),c=n(11),s=n.n(c),l=n(37),u=n.n(l),g=n(4),d=n.n(g),f=n(45);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(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){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=d.a.createRegistryControl,b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.storeName,r=t.dataAvailable,o=void 0!==r&&r,c=t.selectDataAvailability;s()("string"==typeof e&&e,"module slug is required."),s()("string"==typeof n&&n,"store name is required."),s()("boolean"==typeof o,"dataAvailable must be a boolean."),s()("function"==typeof c,"selectDataAvailability must be a function.");var l=Object(f.a)({baseName:"saveDataAvailableState",controlCallback:function(){return u.a.set("modules",e,"data-available")}}),g={dataAvailableOnLoad:o,gatheringData:void 0},p={receiveIsGatheringData:function(e){return s()("boolean"==typeof e,"gatheringData must be a boolean."),{payload:{gatheringData:e},type:"RECEIVE_GATHERING_DATA"}},receiveIsDataAvailableOnLoad:function(e){return s()("boolean"==typeof e,"dataAvailableOnLoad must be a boolean."),{payload:{dataAvailableOnLoad:e},type:"RECEIVE_DATA_AVAILABLE_ON_LOAD"}}},b=a()({},"WAIT_FOR_DATA_AVAILABILITY_STATE",v((function(e){return function(){var t=function(){return void 0!==e.select(n).selectDataAvailability()};return!!t()||new Promise((function(n){var r=e.subscribe((function(){t()&&(r(),n(!0))}))}))}}))),h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case"RECEIVE_GATHERING_DATA":var i=r.gatheringData;return m(m({},e),{},{gatheringData:i});case"RECEIVE_DATA_AVAILABLE_ON_LOAD":var o=r.dataAvailableOnLoad;return m(m({},e),{},{dataAvailableOnLoad:o});default:return e}},y={isGatheringData:i.a.mark((function e(){var t,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.a.commonActions.getRegistry();case 2:if(void 0===(t=e.sent).select(n).isGatheringData()){e.next=5;break}return e.abrupt("return");case 5:if(!t.select(n).isDataAvailableOnLoad()){e.next=10;break}return e.next=9,p.receiveIsGatheringData(!1);case 9:return e.abrupt("return");case 10:return e.next=12,{payload:{},type:"WAIT_FOR_DATA_AVAILABILITY_STATE"};case 12
|
|||
|
|
/* translators: %s: module name. */
|
|||
|
|
Object(c.__)("By clicking confirm changes, you’re granting other users view-only access to data from %s via your Google account. You can always manage this later in the dashboard sharing settings.","google-site-kit"),Object(m.t)(v))}):null}EntityOwnershipChangeNotice.propTypes={slug:a.a.oneOfType([a.a.string,a.a.arrayOf(a.a.string)]).isRequired}}).call(this,n(3))},545:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2),i=n(154),o=n(53),a=function(e){var t=Object(r.useContext)(i.a);return Object(o.b)(e,t)}},547:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=r.createElement("path",{d:"M1 24.053l5-4.825 4 2.193 5.333-2.193 7.334 6.579 6-1.754 3-4.825 4.666 6.579 3.334-1.754L47.333 28 55 19.228l4.333 2.193 5.334-3.509 2 1.316h6L81.333 3 84 9.579l2.333-1.754L89 13.088l12-5.263",stroke:"#CCC",strokeWidth:2});t.a=function SvgCtaGraphVisitors(e){return r.createElement("svg",i({viewBox:"0 0 102 30",fill:"none"},e),o)}},55:function(e,t,n){"use strict";(function(e){var r=n(6),i=n.n(r),o=n(0),a=n.n(o),c=n(12),s=n.n(c),l=n(30);function PreviewBlock(t){var n,r,o=t.className,a=t.width,c=t.height,u=t.shape,g=t.padding,d=t.smallWidth,f=t.smallHeight,p=t.tabletWidth,m=t.tabletHeight,v=t.desktopWidth,b=t.desktopHeight,h=Object(l.e)(),y={width:(n={},i()(n,l.b,d),i()(n,l.c,p),i()(n,l.a,v),i()(n,l.d,v),n),height:(r={},i()(r,l.b,f),i()(r,l.c,m),i()(r,l.a,b),i()(r,l.d,v),r)};return e.createElement("div",{className:s()("googlesitekit-preview-block",o,{"googlesitekit-preview-block--padding":g}),style:{width:y.width[h]||a,height:y.height[h]||c}},e.createElement("div",{className:s()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===u})}))}PreviewBlock.propTypes={className:a.a.string,width:a.a.string,height:a.a.string,shape:a.a.string,padding:a.a.bool,smallWidth:a.a.string,smallHeight:a.a.string,tabletWidth:a.a.string,tabletHeight:a.a.string,desktopWidth:a.a.string,desktopHeight:a.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(3))},56:function(e,t,n){"use strict";n.d(t,"l",(function(){return j})),n.d(t,"j",(function(){return E})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return b})),n.d(t,"h",(function(){return h})),n.d(t,"i",(function(){return y})),n.d(t,"g",(function(){return O})),n.d(t,"f",(function(){return _})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return k})),n.d(t,"k",(function(){return T})),n.d(t,"a",(function(){return R}));var r=n(31),i=n.n(r),o=n(15),a=n(12),c=n.n(a),s=n(1),l=n(73),u=n(165),g=n(8),d=n(163),f=n(17),p=n.n(f),m=n(13),v=function(e){return(parseInt(e,10)||0)>0};function b(e){return e===m.a||v(e)}function h(e){return"string"==typeof e&&/^UA-\d+-\d+$/.test(e)}function y(e){return e===m.h||h(e)}function O(e){return e===m.g||v(e)}function _(e){return"string"==typeof e&&e.trim().length>0}function k(e){return"string"==typeof e&&/^AW-[0-9]+$/.test(e)}function j(e){if(!h(e))return!1;var t=e.match(/^UA-(\d+)-(\d+)/),n=p()(t,3);return{accountID:n[1],propertyID:e,number:n[2]}}function E(e){var t,n,r,i,o,a,c,s;if(void 0!==e)return!(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||!(null==e||null===(i=e[0])||void 0===i||null===(o=i.data)||void 0===o||null===(a=o.totals)||void 0===a||null===(c=a[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 w=n(65);function S(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 A(e,t);var n=Object.prototype.toS
|
|||
|
|
/* 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(N,x),P[n][0].toLocaleDateString(N,x)),l=Object(s.sprintf)(
|
|||
|
|
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
|
|||
|
|
Object(s._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),p[t],m[t](e[1]),o,Object(g.w)(Math.abs(i),"%"));S.push([e[0],'<div class="'.concat(c()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":i>0,"googlesitekit-visualization-tooltip--down":i<0}),'">\n\t\t\t\t<p>').concat(a,"</p>\n\t\t\t\t<p>").concat(l,"</p>\n\t\t\t</div>"),E?Object(g.g)(e[1]):e[1],E?Object(g.g)(P[n][1]):P[n][1]])}})),S}},58:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r="modules/search-console",i=1},60:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(36);function i(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},610:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsForm}));var r=n(43),i=n(1),o=n(4),a=n.n(o),c=n(58),s=n(20),l=n(358),u=n(93),g=n(544),d=n(127),f=n(74),p=n(164),m=a.a.useSelect;function SettingsForm(t){var n,o=t.hasModuleAccess,a=m((function(e){return e(s.a).getModule("search-console")})),v=(null==a||null===(n=a.owner)||void 0===n?void 0:n.login)?"<strong>".concat(a.owner.login,"</strong>"):Object(i.__)("Another admin","google-site-kit");return e.createElement("div",{className:"googlesitekit-search-console-settings-fields"},e.createElement(u.a,{moduleSlug:"search-console",storeName:c.b}),e.createElement("div",{className:"googlesitekit-setup-module__inputs"},e.createElement(l.c,{hasModuleAccess:o})),!1===o&&e.createElement(d.a,{type:f.a,Icon:p.a,notice:Object(r.a)(Object(i.sprintf)(
|
|||
|
|
/* translators: 1: module owner's name, 2: module name */
|
|||
|
|
Object(i.__)("%1$s configured %2$s and you don’t have access to this Search Console property. Contact them to share access or change the Search Console property.","google-site-kit"),v,null==a?void 0:a.name),{strong:e.createElement("strong",null)})}),o&&e.createElement(g.a,{slug:"search-console"}))}}).call(this,n(3))},62:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=Object(r.createContext)(""),o=(i.Consumer,i.Provider);t.b=i},626:function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=r.createElement("path",{d:"M101 35.5H1V0",stroke:"#CCC"}),a=r.createElement("path",{d:"M2 24.685l24.5-7.404L51 25 75.5 8.774 100 2",stroke:"#CCC",strokeWidth:2});t.a=function SvgCtaGraphGoals(e){return r.createElement("svg",i({viewBox:"0 0 101 36",fill:"none"},e),o,a)}},63:function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return b}));var r=n(6),i=n.n(r),o=n(35),a=n.n(o),c=n(145),s=n(11),l=n.n(s),u=n(96),g=n.n(u),d=n(8);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){if(t&&Array.isArray(t)){var n=t.map((function(e){return"object"===a()(e)?Object(d.A)(e):e}));return"".concat(e,"::").concat(g()(JSON.stringify(n)))}return e}var v={receiveError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return l()(e,"error is required."),l()(t,"baseName is required."),l()(n&&Array.isArray(n),"args must be an array."),{type:"RECEIVE_ERROR",payload:{error:e,baseName:t,args:n}}},clearError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return l()(e,"baseName is required."),l()(t&&Array.isArray(t),"args must be an array."),{type:"CLEAR_ERROR",payload:{baseName:e,args:t}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function b(e){l()(e,"storeName must be defined.");var t={getErrorForSelector:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return l()(n,"selectorName is required."),t.getError(e,n,r)},getErrorForAction:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return l()(n,"actionName is required."),t.getError(e,n,r)},getError:function(e,t,n){var r=e.errors;return l()(t,"baseName is required."),r[m(t,n)]},getErrors:function(e){var t=new Set(Object.values(e.errors));return Array.from(t)},getMetaDataForError:function(e,t){var n=Object.keys(e.errors).find((function(n){return e.errors[n]===t}));return n?{baseName:n.substring(0,n.indexOf("::")),args:e.errorArgs[n]}:null},getSelectorDataForError:Object(c.b)((function(t){return function(n,r){var i=t(e).getMetaDataForError(r);if(i){var o=i.baseName,a=i.args;if(!!t(e)[o])return{storeName:e,name:o,args:a}}return null}})),hasErrors:function(e){return t.getErrors(e).length>0}};return{initialState:{errors:{},errorArgs:{}},actions:v,controls:{},reducer:function(e,t){var n=t.type,r=t.payload;switch(n){case"RECEIVE_ERROR":var o=r.baseName,a=r.args,c=r.error,s=m(o,a);return p(p({},e),{},{errors:p(p({},e.errors||{}),{},i()({},s,c)),errorArgs:p(p({},e.errorArgs||{}),{},i()({},s,a))});case"CLEAR_ERROR":var l=r.baseName,u=r.args,g=p({},e),d=m(l,u);return g.errors=p({},e.errors||{}),g.errorArgs=p({},e.errorArgs||{}),delete g.errors[d],delete g.errorArgs[d],g;case"CLEAR_ERRORS":var f=r.baseName,v=p({},e);if(f)for(var b in v.errors=p({},e.errors||{}),v.errorArgs=p({},e.errorArgs||{}),v.errors
|
|||
|
|
/* translators: %s: number of days */
|
|||
|
|
Object(d._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}}}},647:function(e,t,n){"use strict";(function(e){var r=n(1),i=n(7),o=n(413),a=n(4),c=n.n(a).a.useSelect;t.a=function Header(){var t=c((function(e){return e(i.a).getDateRangeNumberOfDays()}));return e.createElement(o.a,{title:Object(r.sprintf)(
|
|||
|
|
/* translators: %s: number of days */
|
|||
|
|
Object(r._n)("Search traffic over the last %s day","Search traffic over the last %s days",t,"google-site-kit"),t)})}}).call(this,n(3))},65:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return c}));var r=n(112);function i(e){try{return new URL(e).pathname}catch(e){}return null}function o(e,t){try{return new URL(t,e).href}catch(e){}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function a(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function c(e,t){if(!Object(r.a)(e))return e;if(e.length<=t)return e;var n=new URL(e),i=e.replace(n.origin,"");if(i.length<t)return i;var o=i.length-Math.floor(t)+1;return"…"+i.substr(o)}},66:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c}));var r=n(21),i=n(19),o=r.m,a=r.k;function c(){var e=Object(i.a)();return e===r.m||e===r.n?o:e===r.k||e===r.l?a:null}},67:function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return y}));var r=n(6),i=n.n(r),o=n(2);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=o.createElement("path",{d:"M10 15.27L16.18 19l-1.64-7.03L20 7.24l-7.19-.61L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19 10 15.27z"});var s=function SvgInfoIcon(e){return o.createElement("svg",a({viewBox:"0 0 20 20",fill:"currentColor"},e),c)};function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=o.createElement("path",{d:"M0 4h2v7H0zm0-4h2v2H0z",fill:"currentColor",fillRule:"evenodd"});var g,d=function SvgSuggestionIcon(e){return o.createElement("svg",l({viewBox:"0 0 2 11"},e),u)},f=n(164),p=n(114),m="warning",v="info",b="suggestion",h=(g={},i()(g,v,s),i()(g,m,f.a),i()(g,b,d),g),y=function(e){return h[e]||p.a}},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"y",(function(){return c})),n.d(t,"D",(function(){return s})),n.d(t,"F",(function(){return l})),n.d(t,"B",(function(){return u})),n.d(t,"C",(function(){return g})),n.d(t,"A",(function(){return d})),n.d(t,"z",(function(){return f})),n.d(t,"E",(function(){return p})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return b})),n.d(t,"i",(function(){return h})),n.d(t,"k",(function(){return y})),n.d(t,"l",(function(){return O})),n.d(t,"m",(function(){return _})),n.d(t,"n",(function(){return k})),n.d(t,"p",(function(){return j})),n.d(t,"q",(function(){return E})),n.d(t,"r",(function(){return w})),n.d(t,"s",(function(){return S})),n.d(t,"u",(function(){return A})),n.d(t,"j",(function(){return T})),n.d(t,"w",(function(){return D})),n.d(t,"t",(function(){return R})),n.d(t,"x",(function(){return C})),n.d(t,"v",(function(){return P})),n.d(t,"h",(function(){return N})),n.d(t,"o",(function(){return x})),n.d(t,"H",(function(){return L})),n.d(t,"G",(function(){return M}));var r="core/user",i="connected_url_mismatch",o="__global",a="temporary_persist_permission_error",c="googlesitekit_authenticate",s="googlesitekit_setup",l="googlesitekit_view_dashboard",u="googlesitekit_manage_options",g="googlesitekit_read_shared_module_data",d="googlesitekit_manage_module_sharing_options",f="googlesitekit_delegate_module_sharing_management",p="googlesitekit_update_plugins",m="kmAnalyticsAdSenseTopEarningContent",v="kmAnalyticsEngagedTrafficSource",b="kmAnalyticsLeastEngagingPages",h="kmAnalyticsNewVisitors",y="kmAnalyticsPopularAuthors",O="kmAnalyticsPopularContent",_="kmAnalyticsPopularProducts",k="kmAnalyticsReturningVisitors",j="kmAnalyticsTopCities",E="kmAnalyti
|
|||
|
|
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
|
|||
|
|
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?S(o,v(v({},a),{},{unit:"second"})):"",i?S(i,v(v({},a),{},{unit:"minute"})):"",r?S(r,v(v({},a),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(p.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
|
|||
|
|
Object(p.__)("%ds","google-site-kit"),o);if(0===e)return t;var n=Object(p.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
|
|||
|
|
Object(p.__)("%dm","google-site-kit"),i),a=Object(p.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
|
|||
|
|
Object(p.__)("%dh","google-site-kit"),r);return Object(p.sprintf)(
|
|||
|
|
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
|
|||
|
|
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",i?n:"",r?a:"").trim()}}},_=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},k=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in millions.
|
|||
|
|
Object(p.__)("%sM","google-site-kit"),S(_(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(p.__)("%sK","google-site-kit"),S(_(e))):1e3<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(p.__)("%sK","google-site-kit"),S(_(e),e%10==0?{}:t)):S(e,{signDisplay:"never",maximumFractionDigits:1})};function j(e){var t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:Object(g.isPlainObject)(e)&&(t=v({},e)),t}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(g.isFinite)(e)?e:Number(e),Object(g.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var n=j(t),r=n.style,i=void 0===r?"metric":r;return"metric"===i?k(e):"duration"===i?b(e,n):"durationISO"===i?h(e):S(e,n)}var w=f()(console.warn),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?T():n,o=u()(t,["locale"]);try{return new Intl.NumberFormat(r,o).format(e)}catch(t){w("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(o)," ).format( ").concat(a()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},g=0,d=Object.entries(o);g<d.length;g++){var f=i()(d[g],2),p=f[0],m=f[1];c[p]&&m===c[p]||(s.includes(p)||(l[p]=m))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?T():n,i=t.style,o=void 0===i?"long":i,a=t.type,c=void 0===a?"conjunction":a;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:o,type:c});return s.format(e)}
|
|||
|
|
/* translators: used between list items, there is a space after the comma. */var l=Object(p.__)(", ","google-site-kit");return e.join(l)},T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(g.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(26))},733:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsView}));var r=n(1),i=n(4),o=n.n(i),a=n(58),c=n(169),s=o.a.useSelect;function SettingsView(){var t=s((function(e){return e(a.b).getPropertyID()}));return e.createElement("div",{className:"googlesitekit-settings-module__meta-item"},e.createElement("h5",{className:"googlesitekit-settings-module__meta-item-type"},Object(r.__)("Connected Property","google-site-kit")),e.createElement("p",{className:"googlesitekit-settings-module__meta-item-data"},e.createElement(c.a,{value:t})))}}).call(this,n(3))},734:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertySelect}));var r=n(2),i=n(1),o=n(10),a=n(4),c=n.n(a),s=n(58),l=n(34),u=n(19),g=c.a.useSelect,d=c.a.useDispatch;function PropertySelect(t){var n=t.hasModuleAccess,a=Object(u.a)(),c=g((function(e){return e(s.b).getPropertyID()})),f=g((function(e){return e(s.b).getMatchedProperties()})),p=g((function(e){return e(s.b).hasFinishedResolution("getMatchedProperties")})),m=d(s.b).setPropertyID,v=Object(r.useCallback)((function(e,t){var n=t.dataset.value;c!==n&&(m(n),Object(l.b)("".concat(a,"_search-console"),"change_property"))}),[c,m,a]);return p?!1===n?e.createElement(o.Select,{className:"googlesitekit-search-console__select-property",label:Object(i.__)("Property","google-site-kit"),value:c,enhanced:!0,outlined:!0,disabled:!0},e.createElement(o.Option,{value:c},c)):e.createElement(o.Select,{className:"googlesitekit-search-console__select-property",label:Object(i.__)("Property","google-site-kit"),value:c,onEnhancedChange:v,enhanced:!0,outlined:!0},(f||[]).map((function(t){var n=t.siteURL;return e.createElement(o.Option,{key:n,value:n},n.startsWith("sc-domain:")?Object(i.sprintf)(
|
|||
|
|
/* translators: %s: domain name */
|
|||
|
|
Object(i.__)("%s (domain property)","google-site-kit"),n.replace(/^sc-domain:/,"")):n)}))):e.createElement(o.ProgressBar,{small:!0})}}).call(this,n(3))},735:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ActivateAnalyticsCTA}));var r=n(0),i=n.n(r),o=n(1),a=n(547),c=n(626),s=n(454),l=n(347);function ActivateAnalyticsCTA(t){var n=t.title;return e.createElement(s.a,null,e.createElement(l.a,{title:Object(o.__)("Unique visitors from Search","google-site-kit"),GraphSVG:a.a}),e.createElement(l.a,{title:n,GraphSVG:c.a}))}ActivateAnalyticsCTA.propTypes={title:i.a.string.isRequired}}).call(this,n(3))},736:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AnalyticsStats}));var r=n(6),i=n.n(r),o=n(17),a=n.n(o),c=n(415),s=n.n(c),l=n(0),u=n.n(l),g=n(1),d=n(4),f=n.n(d),p=n(18),m=n(20),v=n(56),b=n(287),h=n(299),y=n(9),O=n(38),_=n(8);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=f.a.useSelect;function AnalyticsStats(t){var n=t.data,r=t.selectedStats,i=t.dateRangeLength,o=t.dataLabels,c=t.tooltipDataFormats,l=t.chartDataFormats,u=t.statsColor,d=t.gatheringData,f=t.moduleSlug,k=Object(O.a)(),w=E((function(e){return e(m.a).isModuleConnected(f)})),S=E((function(e){return e(m.a).isModuleActive(f)})),A=E((function(e){return k?null:e(y.m).getPropertyCreateTime()})),T=[];if(A&&(T=[{date:Object(_.l)(new Date(A)),text:Object(g.__)("Google Analytics 4 property created","google-site-kit")}]),!S||!w)return null;var D=function(e,t,n,r,i,o,a){return"analytics-4"===e?Object(b.a)(t,n,r,i,o,a):Object(v.a)(t,n,r,0,1,i,o)||[]}(f,n,r,i,o,c,l),R=D.slice(1).map((function(e){return a()(e,1)[0]})),C=s()(R).slice(1),P=j(j({},AnalyticsStats.chartOptions),{},{hAxis:j(j({},AnalyticsStats.chartOptions.hAxis),{},{ticks:C}),vAxis:j({},AnalyticsStats.chartOptions.vAxis),series:{0:{color:u,targetAxisIndex:0},1:{color:u,targetAxisIndex:0,lineDashStyle:[3,3],lineWidth:1}}});if(!D.slice(1).some((function(e){return e[2]>0||e[3]>0}))){var N={0:1,1:100}[r];P.vAxis.viewWindow.max=N}else P.vAxis.viewWindow.max=void 0;return e.createElement(p.e,{className:"googlesitekit-analytics-site-stats"},e.createElement(p.k,null,e.createElement(p.a,{size:12},e.createElement(h.a,{chartType:"LineChart",data:D,dateMarkers:T,loadingHeight:"270px",loadingWidth:"100%",options:P,gatheringData:d}))))}AnalyticsStats.propTypes={data:u.a.oneOfType([u.a.arrayOf(u.a.object),u.a.object]).isRequired,dateRangeLength:u.a.number.isRequired,selectedStats:u.a.number.isRequired,dataLabels:u.a.arrayOf(u.a.string).isRequired,tooltipDataFormats:u.a.arrayOf(u.a.func).isRequired,statsColor:u.a.string.isRequired,gatheringData:u.a.bool,moduleSlug:u.a.string.isRequired},AnalyticsStats.chartOptions={chart:{title:""},curveType:"function",height:270,width:"100%",chartArea:{height:"80%",left:60,right:25},legend:{position:"top",textStyle:{color:"#616161",fontSize:12}},hAxis:{format:"MMM d",gridlines:{color:"#fff"},textStyle:{color:"#616161",fontSize:12}},vAxis:{gridlines:{color:"#eee"},minorGridlines:{color:"#eee"},textStyle:{color:"#616161",fontSize:12},titleTextStyle:{color:"#616161",fontSize:12,italic:!1},viewWindow:{min:0}},focusTarget:"category",crosshair:{color:"gray",opacity:.1,orientation:"vertical",trigger:"both"},tooltip:{isHtml:!0,trigger:"both"}}}).call(this,n(3))},737:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SettingsEdit}));var r=n(4),i=n.n(r),o=n(10),a=n(58),c=n(20),s=n(610),l=i.a.useSelect;function SettingsEdit(){l((function(e){return e(a.b).getMatchedProperties()}));var t,n=l((function(e){return e(a.b).isDoi
|
|||
|
|
/* translators: %s: clickthrough rate value */
|
|||
|
|
Object(c.__)("%s CTR","google-site-kit"),Object(f.w)(n,"%")))}}],j=(a||[]).sort((function(e,t){var n=e.ctr,r=void 0===n?0:n,i=t.ctr;return(void 0===i?0:i)-r}));return e.createElement(v.e,{Widget:n,widgetSlug:u.x,loading:l,rows:j,columns:k,ZeroState:b.d,limit:3,error:s,moduleSlug:"search-console"})}PopularKeywordsWidget.propTypes={Widget:a.a.elementType.isRequired}}).call(this,n(3))},841:function(e,t,n){"use strict";(function(e){var r,i=n(5),o=n.n(i),a=n(6),c=n.n(a),s=n(11),l=n.n(s),u=n(15),g=n(37),d=n.n(g),f=n(4),p=n.n(f),m=n(7),v=n(14),b=n(58),h=n(8),y=n(45),O=n(195),_=n(322),k=n(453);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=p.a.createRegistrySelector,S=function(e){var t=e(v.c).getCurrentEntityURL(),n=e(m.a).getDateRangeDates({compare:!0,offsetDays:b.a}),r={startDate:n.compareStartDate,endDate:n.endDate,dimensions:"date"};return t&&(r.url=t),r},A=Object(y.a)({baseName:"getReport",storeName:b.b,controlCallback:function(e){var t=e.options;return d.a.get("modules","search-console","searchanalytics",t)},reducerCallback:function(e,t,n){var r=n.options;return E(E({},e),{},{reports:E(E({},e.reports),{},c()({},Object(h.A)(r),t))})},argsToParams:function(e){return{options:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options;l()(Object(u.isPlainObject)(t),"Options for Search Console report must be an object."),l()(Object(O.a)(t),"Either date range or start/end dates must be provided for Search Console report.");var n=t.dimensions;n&&l()(Object(O.d)(n),"Dimensions for Search Console report must be either a string or an array of strings")}}),T=Object(k.a)("search-console",{storeName:b.b,dataAvailable:null===(r=e._googlesitekitModulesData)||void 0===r?void 0:r["data_available_search-console"],selectDataAvailability:w((function(e){return function(){var t=S(e),n=e(b.b).getReport(t);if(e(b.b).hasFinishedResolution("getReport",[t]))return e(b.b).getErrorForSelector("getReport",[t])||!Array.isArray(n)?null:!!n.length}}))}),D={getReport:o.a.mark((function e(){var t,n,r=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,p.a.commonActions.getRegistry();case 3:if(n=e.sent,!n.select(b.b).getReport(t)){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,A.actions.fetchGetReport(t);case 9:case"end":return e.stop()}}),e)}))},R={getReport:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.reports;return n[Object(h.A)(t)]},hasZeroData:w((function(e){return function(){var t=e(b.b).isGatheringData();if(void 0!==t){if(!0===t)return!0;var n=S(e),r=e(b.b).getReport(n);if(e(b.b).hasFinishedResolution("getReport",[n]))return!!Array.isArray(r)&&Object(_.e)(r)}}}))},C=p.a.combineStores(A,T,{initialState:{reports:{}},resolvers:D,selectors:R});C.initialState,C.actions,C.controls,C.reducer,C.resolvers,C.selectors;t.a=C}).call(this,n(26))},85:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(12),a=n.n(o);function ChangeArrow(t){var n=t.direction,r=t.invertColor,i=t.width,o=t.height;return e.createElement("svg",{className:a()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:i,height:o,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:i.a.string,invertColor:i.a.b
|
|||
|
|
/* translators: %s: Error message */
|
|||
|
|
Object(a.__)("Error: %s","google-site-kit"),n)),r&&Object(o.a)(r)&&(s=s+" "+Object(a.sprintf)(
|
|||
|
|
/* translators: %s: Reconnect URL */
|
|||
|
|
Object(a.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),r));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.y)(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:i.a.string.isRequired,reconnectURL:i.a.string,noPrefix:i.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(3))},88:function(e,t,n){"use strict";(function(e){var r=n(22),i=n.n(r),o=n(23),a=n.n(o),c=n(0),s=n.n(c),l=n(12),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,o=a()(t,["className","children"]);return r?e.createElement("span",i()({},o,{className:u()("screen-reader-text",n)}),r):null}VisuallyHidden.propTypes={className:s.a.string,children:s.a.node},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(3))},9:function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"n",(function(){return o})),n.d(t,"o",(function(){return a})),n.d(t,"j",(function(){return c})),n.d(t,"l",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"b",(function(){return b}));var r="modules/analytics-4",i="account_create",o="property_create",a="webdatastream_create",c="analyticsSetup",s=10,l=1,u="https://www.googleapis.com/auth/tagmanager.readonly",g="enhanced-measurement-form",d="enhanced-measurement-enabled",f="enhanced-measurement-should-dismiss-activation-banner",p="analyticsAccountCreate",m="analyticsCustomDimensionsCreate",v="https://www.googleapis.com/auth/analytics.edit",b={googlesitekit_post_date:{parameterName:"googlesitekit_post_date",displayName:"WordPress Post Date",description:"Created by Site Kit: Date when a post was published",scope:"EVENT"},googlesitekit_post_author:{parameterName:"googlesitekit_post_author",displayName:"WordPress Post Author",description:"Created by Site Kit: WordPress name of the post author",scope:"EVENT"},googlesitekit_post_categories:{parameterName:"googlesitekit_post_categories",displayName:"WordPress Post Categories",description:"Created by Site Kit: Names of categories assigned to a post",scope:"EVENT"},googlesitekit_post_type:{parameterName:"googlesitekit_post_type",displayName:"WordPress Post Type",description:"Created by Site Kit: Content type of a post",scope:"EVENT"}}},91:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}));var r=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function o(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},92:function(e,t,n){"use strict";var r=n(17),i=n.n(r),o=n(236),a=n(0),c=n.n(a),s=n(2),l=n(124);function Portal(e){var t=e.children,n=e.slug,r=Object(s.useState)(document.createElement("div")),a=i()(r,1)[0];return Object(o.a)((function(){n&&a.classList.add("googlesitekit-portal-".concat(n));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(a),function(){return e.removeChild(a)}})),Object(l.createPortal)(t,a)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},93:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return StoreErrorNotices}));var r=n(0),i=n.n(r),o=n(4),a=n.n(o),c=n(111),s=n(20),l=n(40),u=n(157),g=a.a.useSelect;function StoreErrorNotices(t){var n=t.moduleSlug,r=t.storeName,i=g((function(e){return e(r).getErrors()})),o=g((function(e){return e(s.a).getModule(n)})),a=[];return i.filter((function(e){return!(!(null==e?void 0:e.message)||a.includes(e.message))&&(a.push(e.message),!0)})).map((function(t,n){var i=t.message;return Object(l.e)(t)&&(i=Object(u.a)(i,o)),e.createElement(c.a
|