56 lines
246 KiB
JavaScript
56 lines
246 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[32],{10:function(e,t){e.exports=googlesitekit.components},100:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var a=n(59),r=n(39),i=n(57);function o(t,n){var o,c=Object(a.a)(n),l=t.activeModules,s=t.referenceSiteURL,u=t.userIDHash,d=t.userRoles,m=void 0===d?[]:d,g=t.isAuthenticated,f=t.pluginVersion;return function(){var n=e.document;if(void 0===o&&(o=!!n.querySelector("script[".concat(r.b,"]"))),!o){o=!0;var a=(null==m?void 0:m.length)?m.join(","):"";c("js",new Date),c("config",t.trackingID,{groups:"site_kit",send_page_view:t.isSiteKitScreen,domain:s,plugin_version:f||"",enabled_features:Array.from(i.a).join(","),active_modules:l.join(","),authenticated:g?"1":"0",user_properties:{user_roles:a,user_identifier:u}});var d=n.createElement("script");return d.setAttribute(r.b,""),d.async=!0,d.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(r.a),n.head.appendChild(d),{scriptTagSrc:"https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(r.a)}}}}}).call(this,n(28))},101: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(16),l=n.n(c),s=n(59);function u(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n,a){var i=Object(s.a)(t);return function(){var t=l()(r.a.mark((function t(o,c,l,s){var u;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.trackingEnabled){t.next=3;break}return t.abrupt("return");case 3:return n(),u={send_to:"site_kit",event_category:o,event_label:l,value:s},t.abrupt("return",new Promise((function(e){var t,n,r=setTimeout((function(){a.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),e()}),1e3),l=function(){clearTimeout(r),e()};i("event",c,d(d({},u),{},{event_callback:l})),(null===(t=a._gaUserPrefs)||void 0===t||null===(n=t.ioo)||void 0===n?void 0:n.call(t))&&l()})));case 6:case"end":return t.stop()}}),t)})));return function(e,n,a,r){return t.apply(this,arguments)}}()}},102:function(e,t,n){"use strict";var a=n(123);n.d(t,"a",(function(){return a.a}));var r=n(124);n.d(t,"c",(function(){return r.a}));var i=n(125);n.d(t,"b",(function(){return i.a}))},104:function(e,t,n){"use strict";var a=n(0);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)}},105:function(e,t,n){"use strict";(function(e){var a=n(21),r=n.n(a),i=n(25),o=n.n(i),c=n(1),l=n.n(c),s=n(11),u=n.n(s);function VisuallyHidden(t){var n=t.className,a=t.children,i=o()(t,["className","children"]);return a?e.createElement("span",r()({},i,{className:u()("screen-reader-text",n)}),a):null}VisuallyHidden.propTypes={className:l.a.string,children:l.a.node},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(4))},107: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(152),o=n.n(i),c=n(11),l=n.n(c),s=n(1),u=n.n(s),d=n(2),m=n(10),g=n(154),f=n(104);function TourTooltip(t){var n=t.backProps,a=t.closeProps,c=t.index,s=t.primaryProps,u=t.size,p=t.step,y=t.tooltipProps,b=u>1?Object(g
|
|||
|
|
/* translators: %s is replaced with the dependent modules. */
|
|||
|
|
Object(s.__)("<strong>Note:</strong> %s","google-site-kit"),j),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",tertiary:!0,onClick:g,disabled:I},Object(s.__)("Cancel","google-site-kit")),P?e.createElement(u.Button,{href:P,onClick:O,target:"_blank",danger:_},N):e.createElement(u.SpinnerButton,{onClick:O,danger:_,disabled:I,isSaving:I},N||Object(s.__)("Disconnect","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:r.a.string,dialogActive:r.a.bool,handleDialog:r.a.func,handleConfirm:r.a.func.isRequired,onOpen:r.a.func,onClose:r.a.func,title:r.a.string,confirmButton:r.a.string,danger:r.a.bool,small:r.a.bool,medium:r.a.bool,buttonLink:r.a.string},t.a=ModalDialog}).call(this,n(4))},114:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var a=n(6),r=n.n(a),i=n(1),o=n.n(i),c=n(11),l=n.n(c),s=n(2),u={DEFAULT:"default",OVERLAY:"overlay",SMALL:"small",SMALL_OVERLAY:"small-overlay",LARGE:"large"};function GatheringDataNotice(t){var n=t.style;return e.createElement("div",{className:l()("googlesitekit-gathering-data-notice",r()({},"googlesitekit-gathering-data-notice--has-style-".concat(n),!!n))},e.createElement("span",null,Object(s.__)("Gathering data…","google-site-kit")))}GatheringDataNotice.propTypes={style:o.a.oneOf(Object.values(u))},t.b=GatheringDataNotice}).call(this,n(4))},1199:function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(240),o=n(0),c=n(2),l=n(3),s=n(20),u=n(1200),d=n(160),m=n(13);t.a=function WPDashboardApp(){var t=Object(o.useRef)(),n=Object(i.a)(t,{threshold:0}),a=Object(l.useSelect)((function(e){return e(m.c).getAdminURL("googlesitekit-dashboard")})),g=Object(o.useState)({key:"WPDashboardApp",value:!!(null==n?void 0:n.intersectionRatio)}),f=r()(g,2),p=f[0],y=f[1];return Object(o.useEffect)((function(){y({key:"WPDashboardApp",value:!!(null==n?void 0:n.intersectionRatio)})}),[n]),void 0===a?e.createElement("div",{ref:t}):a?e.createElement(d.a,{value:p},e.createElement("div",{className:"googlesitekit-wp-dashboard",ref:t},e.createElement("div",{className:"googlesitekit-wp-dashboard__cta"},e.createElement(s.a,{className:"googlesitekit-wp-dashboard__cta-link",href:a},Object(c.__)("Visit your Site Kit Dashboard","google-site-kit"))),e.createElement(u.a,null))):null}}).call(this,n(4))},120:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotice}));var a=n(1),r=n.n(a),i=n(0),o=n(2),c=n(3),l=n(10),s=n(35),u=n(54);function ErrorNotice(t){var n,a=t.error,r=t.hasButton,d=void 0!==r&&r,m=t.storeName,g=t.message,f=void 0===g?a.message:g,p=t.noPrefix,y=void 0!==p&&p,b=t.skipRetryMessage,h=t.Icon,v=Object(c.useDispatch)(),T=Object(c.useSelect)((function(e){return m?e(m).getSelectorDataForError(a):null})),O=Object(i.useCallback)((function(){v(T.storeName).invalidateResolution(T.name,T.args)}),[v,T]);if(!a||Object(s.f)(a))return null;var k=d&&Object(s.d)(a,T);return d||b||(f=Object(o.sprintf)(
|
|||
|
|
/* translators: %1$s: Error message from Google API. */
|
|||
|
|
Object(o.__)("%1$s%2$s Please try again.","google-site-kit"),f,f.endsWith(".")?"":".")),e.createElement(i.Fragment,null,h&&e.createElement("div",{className:"googlesitekit-error-notice__icon"},e.createElement(h,{width:"24",height:"24"})),e.createElement(u.a,{message:f,reconnectURL:null===(n=a.data)||void 0===n?void 0:n.reconnectURL,noPrefix:y}),k&&e.createElement(l.Button,{className:"googlesitekit-error-notice__retry-button",onClick:O},Object(o.__)("Retry","google-site-kit")))}ErrorNotice.propTypes={error:r.a.shape({message:r.a.string}),hasButton:r.a.bool,storeName:r.a.string,message:r.a.string,noPrefix:r.a.bool,skipRetryMessage:r.a.bool,Icon:r.a.elementType}}).call(this,n(4))},1200:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WPDashboardWidgets}));var a=n(11),r=n.n(a),i=n(0),o=n(3),c=n(19),l=n(7),s=n(243),u=n(1201),d=n(1202),m=n(1203),g=n(1204),f=n(1205),p=n(1206),y=n(1207),b=n(507),h=Object(s.b)("wpDashboardImpressions")(u.a),v=Object(s.b)("wpDashboardClicks")(d.a),T=Object(s.b)("wpDashboardUniqueVisitors")(m.a),O=Object(s.b)("wpDashboardSessionDuration")(g.a),k=Object(s.b)("wpDashboardPopularPages")(f.a),E=Object(s.b)("wpDashboardUniqueVisitorsChart")(p.a);function WPDashboardWidgets(){var t=Object(o.useSelect)((function(e){return e(c.a).getModule("analytics-4")})),n=Object(o.useSelect)((function(e){return e(l.a).hasAccessToShareableModule("analytics-4")})),a=Object(o.useSelect)((function(e){return e(l.a).hasAccessToShareableModule("search-console")}));if(void 0===t)return null;var s=t.active,u=t.connected,d=s&&u;return e.createElement(b.a,{className:r()("googlesitekit-wp-dashboard-stats googlesitekit-wp-dashboard-stats--twoup",{"googlesitekit-wp-dashboard-stats--fourup":d})},d&&n&&e.createElement(i.Fragment,null,e.createElement(T,null),e.createElement(O,null)),a&&e.createElement(i.Fragment,null,e.createElement(h,null),e.createElement(v,null)),!d&&e.createElement("div",{className:"googlesitekit-wp-dashboard-stats__cta"},e.createElement(y.a,null)),d&&n&&e.createElement(i.Fragment,null,e.createElement(E,null),e.createElement(k,null)))}}).call(this,n(4))},1201:function(e,t,n){"use strict";(function(e){var a=n(21),r=n.n(a),i=n(1),o=n.n(i),c=n(2),l=n(3),s=n(66),u=n(7),d=n(236),m=n(44),g=n(114),f=n(9),p=n(418),y=n(89);function WPDashboardImpressions(t){var n=t.WPDashboardReportError,a=Object(l.useInViewSelect)((function(e){return e(s.b).isGatheringData()})),i=Object(l.useSelect)((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:s.a})})),o=i.compareStartDate,b=i.endDate,h=Object(l.useSelect)((function(e){return e(u.a).getDateRangeNumberOfDays()})),v={startDate:o,endDate:b,dimensions:"date"},T=Object(l.useInViewSelect)((function(e){return e(s.b).getReport(v)}),[v]),O=Object(l.useSelect)((function(e){return e(s.b).getErrorForSelector("getReport",[v])}));if(Object(l.useSelect)((function(e){return!e(s.b).hasFinishedResolution("getReport",[v])}))||void 0===a)return e.createElement(m.a,{width:"48%",height:"92px"});if(O)return e.createElement(n,{moduleSlug:"search-console",error:O});var k=Object(y.a)(T,{dateRangeLength:h}),E=k.compareRange,N=k.currentRange,j=Object(p.a)(N,"impressions"),S=Object(p.a)(E,"impressions"),_=Object(f.g)(S,j),A={gatheringData:a,gatheringDataNoticeStyle:g.a.SMALL};return e.createElement(d.a,r()({className:"googlesitekit-wp-dashboard-stats__data-table overview-total-impressions",title:Object(c.__)("Total Impressions","google-site-kit"),datapoint:j,change:_,changeDataUnit:"%"},A))}WPDashboardImpressions.propTypes={WPDashboardReportError:o.a.elementType.isRequired},t.a=WPDashboardImpressions}).call(this,n(4))},1202:function(e,t,n){"use strict";(function(e){var a=n(21),r=n.n(a),i=n(1),o=n.n(i),c=n(2),l=n(3),s=n(66),u=n(7),d=n(9),m=n(418),g=n(89),f=n(236),p=n(44),y=n(114);function WPDashboardClicks(t){var n=t.WPDashboardReportError,a=Object(l.useInViewSelect)((function(e){return e(s.b).isGatheringData()})),i=Object(l.useSelect)((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:s.a})})),o=i.compareStartDate,b=i.endDate,h=Object(l.useSelect)((function(
|
|||
|
|
/* translators: %s: number of days */
|
|||
|
|
Object(d._n)("Unique visitors over the last %s day","Unique visitors over the last %s days",E,"google-site-kit"),E)),e.createElement(y.a,{chartType:"LineChart",data:A,loadingHeight:"270px",loadingWidth:"100%",loaded:!(S||void 0===a),options:C,gatheringData:a}))}WPDashboardUniqueVisitorsChartGA4.propTypes={WPDashboardReportError:u.a.elementType.isRequired}}).call(this,n(4))},1207:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WPDashboardActivateAnalyticsCTA}));var a=n(2),r=n(693),i=n(1208),o=n(576),c=n(416);function WPDashboardActivateAnalyticsCTA(){return e.createElement(o.a,null,e.createElement(c.a,{title:Object(a.__)("Traffic","google-site-kit"),GraphSVG:r.a,showIcons:!1}),e.createElement(c.a,{title:Object(a.__)("Most popular content","google-site-kit"),GraphSVG:i.a,showIcons:!1}))}}).call(this,n(4))},1208:function(e,t,n){"use strict";var a=n(0);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:"M96.91 4.813l1.34-4.5h1.305L97.575 6h-.86l.195-1.188zm-1.234-4.5l1.336 4.5L97.215 6h-.867L94.378.312h1.298zm5.527 1.46V6h-1.129V1.773h1.129zM100.004.672c0-.164.057-.3.172-.406a.648.648 0 01.461-.16c.19 0 .342.053.457.16a.526.526 0 01.176.406c0 .164-.059.3-.176.406a.644.644 0 01-.457.16.648.648 0 01-.461-.16.53.53 0 01-.172-.406zm4.074 5.406c-.328 0-.622-.052-.883-.156a1.95 1.95 0 01-.664-.442 1.983 1.983 0 01-.414-.652 2.204 2.204 0 01-.144-.797v-.156c0-.32.045-.613.136-.879.092-.266.222-.496.391-.691.172-.196.38-.345.625-.45.245-.106.521-.16.828-.16.3 0 .565.05.797.149.232.099.426.24.582.422.159.182.279.4.359.656.081.252.121.534.121.844v.468h-3.359v-.75h2.254v-.086a.98.98 0 00-.086-.418.665.665 0 00-.25-.296.774.774 0 00-.43-.11.717.717 0 00-.382.098.756.756 0 00-.262.273 1.496 1.496 0 00-.149.414 2.656 2.656 0 00-.046.516v.156c0 .17.023.326.07.469.049.143.118.267.207.371a.94.94 0 00.328.242c.13.058.277.086.441.086.204 0 .392-.039.567-.117a1.23 1.23 0 00.457-.363l.547.593a1.67 1.67 0 01-.364.368 1.941 1.941 0 01-.546.289c-.214.073-.457.11-.731.11zm3.582-1.172l.879-3.133h.715l-.231 1.23L108.145 6h-.598l.113-1.094zm-.445-3.133l.629 3.13.058 1.097h-.703l-1.07-4.227h1.086zm2.844 3.079l.613-3.079h1.09L110.691 6h-.699l.067-1.148zm-.707-3.079l.875 3.11.121 1.117h-.602l-.879-2.992-.222-1.235h.707zm5.261 3.059a.364.364 0 00-.07-.219.616.616 0 00-.262-.18 2.555 2.555 0 00-.543-.156 4.25 4.25 0 01-.597-.175 2.052 2.052 0 01-.477-.262 1.128 1.128 0 01-.312-.36.994.994 0 01-.114-.48c0-.177.038-.344.114-.5.078-.156.188-.294.332-.414.145-.122.323-.218.531-.285.211-.07.448-.106.711-.106.367 0 .682.059.945.176.266.117.469.279.609.484.144.204.215.435.215.696h-1.125a.6.6 0 00-.07-.293.465.465 0 00-.211-.207.753.753 0 00-.367-.078.734.734 0 00-.324.066.495.495 0 00-.211.172.413.413 0 00-.032.41c.029.05.075.095.137.137.063.041.143.08.242.117.102.034.227.065.375.094.305.062.577.144.817.246.239.099.429.234.57.406.141.17.211.392.211.668 0 .188-.042.36-.125.516a1.242 1.242 0 01-.359.41 1.83 1.83 0 01-.563.27 2.624 2.624 0 01-.73.093c-.394 0-.727-.07-1-.21a1.59 1.59 0 01-.618-.536 1.245 1.245 0 01-.207-.672h1.067a.622.622 0 00.117.371.645.645 0 00.285.203c.117.042.244.063.379.063a.97.97 0 00.363-.059.51.51 0 00.219-.164.397.397 0 00.078-.242z",fill:"#C7C7C7"}),o=a.createElement("rect",{x:103,y:18.6,width:13.3,height:4.2,rx:2.1,fill:"#C7C7C7"}),c=a.createElement("rect",{x:107,y:33,width:9.1,height:4.2,rx:2.1,fill:"#C7C7C7"}),l=a.createElement("rect",{x:107,y:47,width:9.1,height:4.2,rx:2.1,fill:"#C7C7C7"}),s=a.createElement("rect",{x:110,y:61,width:5.6,height:4.2,rx:2.1,fill:"#C7C7C7"}),u=a.createElement("path",{d:"M2.848 17.981v5.72h-.723v-4.817l-1.457.531v-.652l2.066-.782h.114zm1.351 19.125v.594H.477v-.52l1.863-2.074c.229-.255.406-.47.531-.648.128-.18.216-.34.266-.48a1.27 1.27 0 00.078-.438c0-.188-.04-.357-.117-.508a.879.879 0 00-.336-.367 1.011 1.011 0 00-.54-.137c-.252 0-.463.05-.632.149a.913.913 0 00-.375.406 1.38 1.38 0 00-.125.602H.367c0
|
|||
|
|
/* translators: %s: source link */
|
|||
|
|
Object(l.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(s.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(4))},135:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportErrorActions}));var a=n(6),r=n.n(a),i=n(1),o=n.n(i),c=n(0),l=n(38),s=n(2),u=n(3),d=n(10),m=n(13),g=n(19),f=n(35),p=n(34),y=n(20);function b(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ReportErrorActions(t){var n=t.moduleSlug,a=t.error,r=t.GetHelpLink,i=t.hideGetHelpLink,o=t.buttonVariant,b=t.onRetry,v=t.onRequestAccess,T=t.getHelpClassName,O=t.RequestAccessButton,k=t.RetryButton,E=Object(p.a)(),N=Object(u.useSelect)((function(e){return e(g.a).getModuleStoreName(n)})),j=Object(u.useSelect)((function(e){var t;return"function"==typeof(null===(t=e(N))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(N).getServiceEntityAccessURL():null})),S=Array.isArray(a)?a:[a],_=Object(u.useSelect)((function(e){return S.map((function(t){var n,a=null===(n=e(N))||void 0===n?void 0:n.getSelectorDataForError(t);return h(h({},t),{},{selectorData:a})}))})),A=null==_?void 0:_.filter((function(e){return Object(f.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),I=!!A.length,w=Object(u.useSelect)((function(e){var t=h({},I?A[0]:S[0]);return Object(f.e)(t)&&(t.code="".concat(n,"_insufficient_permissions")),e(m.c).getErrorTroubleshootingLinkURL(t)})),C=Object(u.useDispatch)(),Z=S.some((function(e){return Object(f.e)(e)})),M=Object(c.useCallback)((function(){A.forEach((function(e){var t=e.selectorData;C(t.storeName).invalidateResolution(t.name,t.args)})),null==b||b()}),[C,A,b]),D=j&&Z&&!E;return e.createElement("div",{className:"googlesitekit-report-error-actions"},D&&("function"==typeof O?e.createElement(O,{requestAccessURL:j}):e.createElement(d.Button,{onClick:v,href:j,target:"_blank",danger:"danger"===o,tertiary:"tertiary"===o},Object(s.__)("Request access","google-site-kit"))),I&&e.createElement(c.Fragment,null,"function"==typeof k?e.createElement(k,{handleRetry:M}):e.createElement(d.Button,{onClick:M,danger:"danger"===o,tertiary:"tertiary"===o},Object(s.__)("Retry","google-site-kit")),!i&&e.createElement("span",{className:"googlesitekit-error-retry-text"},Object(l.a)(Object(s.__)("Retry didn’t work? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(y.a,{href:w,external:!0,hideExternalIndicator:!0},Object(s.__)("Get help","google-site-kit"))}))),!I&&!i&&e.createElement("div",{className:T},"function"==typeof r?e.createElement(r,{linkURL:w}):e.createElement(y.a,{href:w,external:!0,hideExternalIndicator:!0},Object(s.__)("Get help","google-site-kit"))))}ReportErrorActions.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired,GetHelpLink:o.a.elementType,hideGetHelpLink:o.a.bool,buttonVariant:o.a.string,onRetry:o.a.func,onRequestAccess:o.a.func,getHelpClassName:o.a.string,RequestAccessButton:o.a.elementType,RetryButton:o.a.elementType}}).call(this,n(4))},136:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o}));function a(e){var t=e.format,n=void 0===t?"small":t,a=e.hasErrorOrWarning,r=e.hasSmallImageSVG,o=e.hasWinImageSVG,c={smSize:4,mdSize:8,lgSize:12},l=i(n);return Object.keys(c).forEach((function(e){var t=c[e];a&&(t-=1),r&&(t-=1),o&&0<t-l[e]&&(t-
|
|||
|
|
/* 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(l.a,{title:Object(i.__)("Data Unavailable","google-site-kit"),description:r})}RecoverableModules.propTypes={moduleSlugs:r.a.arrayOf(r.a.string).isRequired}}).call(this,n(4))},166:function(e,t,n){"use strict";(function(e){var a=n(11),r=n.n(a),i=n(1),o=n.n(i),c=n(2),l=n(3),s=n(201),u=n(210),d=n(65),m=n(7),g=n(10),f=n(0),p=Object(f.forwardRef)((function(t,n){var a=t.className,i=t.children,o=t.type,f=t.dismiss,p=void 0===f?"":f,y=t.dismissCallback,b=t.dismissLabel,h=void 0===b?Object(c.__)("OK, Got it!","google-site-kit"):b,v=t.Icon,T=void 0===v?Object(d.d)(o):v,O=t.OuterCTA,k=Object(l.useDispatch)(m.a).dismissItem,E=Object(l.useSelect)((function(e){return p?e(m.a).isItemDismissed(p):void 0}));if(p&&E)return null;var N=i?u.a:s.a;return e.createElement("div",{ref:n,className:r()(a,"googlesitekit-settings-notice","googlesitekit-settings-notice--".concat(o),{"googlesitekit-settings-notice--single-row":!i,"googlesitekit-settings-notice--multi-row":i})},e.createElement("div",{className:"googlesitekit-settings-notice__icon"},e.createElement(T,{width:"20",height:"20"})),e.createElement("div",{className:"googlesitekit-settings-notice__body"},e.createElement(N,t)),p&&e.createElement("div",{className:"googlesitekit-settings-notice__button"},e.createElement(g.Button,{tertiary:!0,onClick:function(){"string"==typeof p&&k(p),null==y||y()}},h)),O&&e.createElement("div",{className:"googlesitekit-settings-notice__button"},e.createElement(O,null)))}));p.propTypes={className:o.a.string,children:o.a.node,notice:o.a.node.isRequired,type:o.a.oneOf([d.a,d.c,d.b]),Icon:o.a.elementType,LearnMore:o.a.elementType,CTA:o.a.elementType,OuterCTA:o.a.elementType,dismiss:o.a.string,dismissLabel:o.a.string,dismissCallback:o.a.func},p.defaultProps={type:d.a},t.a=p}).call(this,n(4))},169:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(2);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t||{},r=n.slug,i=void 0===r?"":r,o=n.name,c=void 0===o?"":o,l=n.owner,s=void 0===l?{}:l;if(!i||!c)return e;var u="",d="";return"analytics-4"===i?e.match(/account/i)?u=Object(a.__)("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(a.__)("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(a.__)("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"===i&&(u=Object(a.__)("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(a.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(a.__)("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)),s&&s.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"),s.login)),d||(d=Object(a.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(u," ").concat(d)}},17:function(e,t,n){"use strict";var a=n(254);n.d(t,"i",(function(){return a.a}));var r=n(319);n.d(t,"f",(function(){return r.a}));var i=n(320);n.d(t,"h",(function(){return i.a}));var o=n(321);n.d(t,"j",(function(){return o.a}));var c=n(318);n.d(t,"g",(function(){return c.a}));var l=n(91),s=n.n(l);n.d(t,"b",(function(){return s.a})),n.d(t,"c",(function(){return l.DialogContent})),n.d(t,"d",(function(){return l.DialogFooter}));var u=n(102);n.d(t,"a",(function(){return u.a})),n.d(t,"e",(function(){return u.b})),n.d(t,"k",(function(){return u.c}))},170:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var a=n(6),r=n.n(a),i=n(1),o=n.n(i),c=n(14),l=n(0),s=n(2),u=n(3),d=n(19),m=n(35),g=n(169),f=n(84),p=n(54),y=n(95),b=n(135),h=n(34);function v(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 T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ReportError(t){var n,a=t.moduleSlug,r=t.error,i=Object(h.a)(),o=Object(u.useSelect)((function(e){return e(d.a).getModule(a)})),v=Array.isArray(r)?r:[r],O=function(e){return Object(m.e)(e)?i?(n=Object(s.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Access lost to %s","google-site-kit"),null==o?void 0:o.name),Object(s.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(s.__)("The administrator sharing this module with you has lost access to the %s service, so you won’t be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),null==o?void 0:o.name)):(n=Object(s.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),Object(g.a)(e.message,o)):Object(m.b)(e)},k=Object(c.uniqWith)(v.map((function(e){var t;return T(T({},e),{},{message:O(e),reconnectURL:null===(t=e.data)||void 0===t?void 0:t.reconnectURL})})),(function(e,t){return e.message===t.message&&e.reconnectURL===t.reconnectURL})),E=v.some((function(e){return Object(m.e)(e)}));E||1!==k.length?!E&&k.length>1&&(n=Object(s.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Data errors in %s","google-site-kit"),null==o?void 0:o.name)):n=Object(s.sprintf)(
|
|||
|
|
/* translators: %s: module name */
|
|||
|
|
Object(s.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name);var N=e.createElement(l.Fragment,null,k.map((function(t){var n,a=null==r||null===(n=r.data)||void 0===n?void 0:n.reconnectURL;return a?e.createElement(p.a,{key:t.message,message:t.message,reconnectURL:a}):e.createElement("p",{key:t.message},f.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(y.a,{title:n,description:N,error:!0},e.createElement(b.a,{moduleSlug:a,error:r}))}ReportError.propTypes={moduleSlug:o.a.string.isRequired,error:o.a.oneOfType([o.a.arrayOf(o.a.object),o.a.object]).isRequired}}).call(this,n(4))},172:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GenericErrorHandlerActions}));var a=n(1),r=n.n(a),i=n(2),o=n(20),c=n(194);function GenericErrorHandlerActions(t){var n=t.message,a=t.componentStack;return e.createElement("div",{className:"googlesitekit-generic-error-handler-actions"},e.createElement(c.a,{message:n,componentStack:a}),e.createElement(o.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(i.__)("Report this problem","google-site-kit")))}GenericErrorHandlerActions.propTypes={message:r.a.string,componentStack:r.a.string}}).call(this,n(4))},173:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(22),r=function(e){return a.f.includes(e)}},174:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportZero}));var a=n(1),r=n.n(a),i=n(2),o=n(3),c=n(19),l=n(95);function ReportZero(t){var n=t.moduleSlug,a=Object(o.useSelect)((function(e){return e(c.a).getModule(n)}));return e.createElement(l.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(4))},178:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return l}));var a=n(33),r=n.n(a);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0};return"string"==typeof e?n(e):!("object"!==r()(e)||!t(e))||!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e?n(e):"object"===r()(e)&&t(e)}))}function o(e){var t=e.startDate,n=e.endDate,a=t&&t.match(/^\d{4}-\d{2}-\d{2}$/),r=n&&n.match(/^\d{4}-\d{2}-\d{2}$/);return a&&r}function c(e){var t=function(e){var t=e.hasOwnProperty("fieldName")&&!!e.fieldName,n=e.hasOwnProperty("sortOrder")&&/(ASCENDING|DESCENDING)/i.test(e.sortOrder.toString());return t&&n};return Array.isArray(e)?e.every((function(e){return"object"===r()(e)&&t(e)})):"object"===r()(e)&&t(e)}function l(e){return"string"==typeof e||!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}},18:function(e,t,n){"use strict";var a=n(0),r=n(61);t.a=function(){return Object(a.useContext)(r.b)}},186:function(e,t,n){"use strict";var a=n(0);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)}},19:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var a="core/modules",r="insufficient_module_dependencies"},194:function(e,t,n){"use strict";(function(e){var a=n(15),r=n.n(a),i=n(195),o=n.n(i),c=n(1),l=n.n(c),s=n(0),u=n(2),d=n(266),m=n(423),g=n(424),f=n(10);function ReportErrorButton(t){var n=t.message,a=t.componentStack,i=Object(s.useState)(!1),c=r()(i,2),l=c[0],p=c[1];return e.createElement(f.Button,{"aria-label":l?Object(u.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){o()("`".concat(n,"\n").concat(a,"`")),p(!0)},trailingIcon:e.createElement(d.a,{className:"mdc-button__icon",icon:l?m.a:g.a})},l?Object(u.__)("Copied to clipboard","google-site-kit"):Object(u.__)("Copy error contents","google-site-kit"))}ReportErrorButton.propTypes={message:l.a.string,componentStack:l.a.string},t.a=ReportErrorButton}).call(this,n(4))},197:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return BannerNotification}));var a=n(21),r=n.n(a),i=n(6),o=n.n(i),c=n(5),l=n.n(c),s=n(16),u=n.n(s),d=n(15),m=n.n(d),g=n(1),f=n.n(g),p=n(11),y=n.n(p),b=n(206),h=n(240),v=n(81),T=n(0),O=n(106),k=n(3),E=n(17),N=n(93),j=n(37),S=n(24),_=n(211),A=n(213),I=n(212),w=n(226),C=n(227),Z=n(86),M=n(136),D=n(130),P=n(32),L=n(228),G=n(79);function BannerNotification(t){var n,a=t.badgeLabel,i=t.children,c=t.className,s=void 0===c?"":c,d=t.ctaLabel,g=t.ctaLink,f=t.ctaTarget,p=t.description,R=t.dismiss,x=t.dismissExpires,B=void 0===x?0:x,U=t.format,W=void 0===U?"":U,V=t.id,F=t.isDismissible,z=void 0===F||F,H=t.learnMoreDescription,q=t.learnMoreLabel,K=t.learnMoreURL,J=t.learnMoreTarget,Y=void 0===J?Z.a.EXTERNAL:J,$=t.logo,X=t.module,Q=t.moduleName,ee=t.onCTAClick,te=t.onView,ne=t.onDismiss,ae=t.onLearnMoreClick,re=t.showOnce,ie=void 0!==re&&re,oe=t.SmallImageSVG,ce=t.title,le=t.type,se=t.WinImageSVG,ue=t.showSmallWinImage,de=void 0===ue||ue,me=t.smallWinImageSVGWidth,ge=void 0===me?75:me,fe=t.smallWinImageSVGHeight,pe=void 0===fe?75:fe,ye=t.mediumWinImageSVGWidth,be=void 0===ye?105:ye,he=t.mediumWinImageSVGHeight,ve=void 0===he?105:he,Te=t.rounded,Oe=void 0!==Te&&Te,ke=t.footer,Ee=t.secondaryPane,Ne=t.ctaComponent,je=Object(T.useState)(!1),Se=m()(je,2),_e=Se[0],Ae=Se[1],Ie=Object(T.useState)(!1),we=m()(Ie,2),Ce=we[0],Ze=we[1],Me="notification::dismissed::".concat(
|
|||
|
|
/* translators: 1: date for user stats, 2: previous date for user stats comparison */
|
|||
|
|
Object(l._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),e[0].toLocaleDateString(C,Z),w[n][0].toLocaleDateString(C,Z)),y=Object(l.sprintf)(
|
|||
|
|
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
|
|||
|
|
Object(l._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),i[t],d[t](r),f,Object(u.B)(Math.abs(g),"%"));j.push([e[0],'<div class="'.concat(o()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":g>0,"googlesitekit-visualization-tooltip--down":g<0}),'">\n\t\t\t\t<p>').concat(p,"</p>\n\t\t\t\t<p>").concat(y,"</p>\n\t\t\t</div>"),E?Object(u.j)(r):r,E?Object(u.j)(c):c])}})),j}},45:function(e,t){e.exports=googlesitekit.api},47:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var a={BOXES:"boxes",COMPOSITE:"composite"},r={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},503:function(e,t,n){"use strict";(function(e){var a=n(1),r=n.n(a),i=n(11),o=n.n(i),c=n(44);function PreviewTable(t){for(var n=t.rows,a=t.rowHeight,r=t.padding,i=[],l=0;n>l;l++)i.push(e.createElement("div",{className:"googlesitekit-preview-table__row",key:"table-row-"+l},e.createElement(c.a,{width:"100%",height:a+"px"})));return e.createElement("div",{className:o()("googlesitekit-preview-table",{"googlesitekit-preview-table--padding":r})},i)}PreviewTable.propTypes={rows:r.a.number,rowHeight:r.a.number,padding:r.a.bool},PreviewTable.defaultProps={rows:11,rowHeight:35,padding:!1},t.a=PreviewTable}).call(this,n(4))},504:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportTable}));var a=n(15),r=n.n(a),i=n(11),o=n.n(i),c=n(12),l=n.n(c),s=n(1),u=n.n(s),d=n(14),m=n(0),g=n(10),f=n(114);function ReportTable(t){var n=t.rows,a=t.columns,i=t.className,c=t.limit,s=t.zeroState,u=t.gatheringData,p=void 0!==u&&u,y=t.tabbedLayout,b=void 0!==y&&y;function h(e){return!b&&e}l()(Array.isArray(n),"rows must be an array."),l()(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;l()(t||null!==a,"each column must define a Component and/or a field.")})),l()(Number.isInteger(c)||void 0===c,"limit must be an integer, if provided.");var v=a.some((function(e){return!!e.badge})),T=Object(m.useState)(0),O=r()(T,2),k=O[0],E=O[1],N=b&&a.slice(1),j=b?[a[0],N[k]]:a,S=j.filter((function(e){return!h(e.hideOnMobile)}));return e.createElement("div",{className:i},b&&e.createElement(g.TabBar,{className:"googlesitekit-tab-bar--start-aligned-high-contrast",activeIndex:k,handleActiveIndexUpdate:E},N.map((function(t){var n=t.title,a=t.badge;return e.createElement(g.Tab,{key:n,"aria-label":n},n,a)}))),e.createElement("div",{className:o()("googlesitekit-table","googlesitekit-table--with-list",{"googlesitekit-table--gathering-data":p})},e.createElement("table",{className:o()("googlesitekit-table__wrapper","googlesitekit-table__wrapper--".concat(j.length,"-col"),"googlesitekit-table__wrapper--mobile-".concat(S.length,"-col"),{"googlesitekit-table__wrapper--tabbed-layout":b})},!b&&e.createElement("thead",{className:"googlesitekit-table__head"},v&&e.createElement("tr",{className:o()("googlesitekit-table__head-badges",{"hidden-on-mobile":!a.some((function(e){var t=e.badge,n=e.hideOnMobile;return!!t&&!h(n)}))})},a.map((function(t,n){var a=t.badge,r=t.primary,i=t.hideOnMobile,c=t.className;return e.createElement("th",{className:o()("googlesitekit-table__head-item","googlesitekit-table__head-item--badge",{"googlesitekit-table__head-item--primary":r,"hidden-on-mobile":h(i)},c),key:"googlesitekit-table__head-row-badge-".concat(n)},a)}))),e.createElement("tr",{className:"googlesitekit-table__head-row"},a.map((function(t,n){var a=t.title,r=t.description,i=t.primary,c=t.hideOnMobile,l=t.className;return e.createElement("th",{className:o()("googlesitekit-table__head-item",{"googlesitekit-table__head-item--primary":i,"hidden-on-mobile":h(c)},l),"data-tooltip":r,key:"googlesitekit-table__head-row-".concat(n)},a)})))),e.createElement("tbody",{className:"googlesitekit-table__body"},p&&e.createElement("tr",{className:"googlesitekit-table__body-row googlesitekit-table__body-row--no-data"},e.createElement("td",{className:"googlesitekit-table__body-item",colSpan:
|
|||
|
|
/* translators: %s: Error message */
|
|||
|
|
Object(o.__)("Error: %s","google-site-kit"),n)),a&&Object(i.a)(a)&&(l=l+" "+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.F)(l,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:r.a.string.isRequired,reconnectURL:r.a.string,noPrefix:r.a.bool},ErrorText.defaultProps={reconnectURL:"",noPrefix:!1},t.a=ErrorText}).call(this,n(4))},551: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(16),o=n.n(i),c=n(15),l=n.n(c),s=n(2),u=n(0),d=n(45),m=n.n(d),g=n(3),f=n(10),p=n(8),y=n(13),b=n(7),h=n(29),v=n(32),T=n(35),O=n(9),k=n(522),E=n(17),N=n(141),j=n(563),S=n(564),_=n(565),A=n(566),I=n(567),w=n(352),C=n(18),Z=n(414);function AccountCreate(){var t=Object(u.useState)(!1),n=l()(t,2),a=n[0],i=n[1],c=Object(g.useSelect)((function(e){return e(p.r).getAccountSummaries()})),d=Object(g.useSelect)((function(e){return e(p.r).hasFinishedResolution("getAccountSummaries")})),M=Object(g.useSelect)((function(e){return e(p.r).getAccountTicketTermsOfServiceURL()})),D=Object(g.useSelect)((function(e){return e(p.r).canSubmitAccountCreate()})),P=Object(g.useSelect)((function(e){return e(p.r).isDoingCreateAccount()})),L=Object(g.useSelect)((function(e){return e(b.a).hasScope(p.h)})),G=Object(g.useSelect)((function(e){return e(b.a).hasScope(p.p)})),R=Object(g.useSelect)((function(e){return e(h.a).hasForm(p.m)})),x=Object(g.useSelect)((function(e){return e(h.a).getValue(p.m,"autoSubmit")})),B=Object(g.useSelect)((function(e){return e(y.c).getReferenceSiteURL()})),U=Object(g.useSelect)((function(e){return e(y.c).getSiteName()})),W=Object(g.useSelect)((function(e){return e(y.c).getTimezone()})),V=Object(C.a)(),F=Object(g.useDispatch)(h.a).setValues,z=Object(g.useDispatch)(v.a).navigateTo,H=Object(g.useDispatch)(p.r).createAccount,q=Object(g.useDispatch)(b.a).setPermissionScopeError,K=Object(g.useDispatch)(y.c),J=K.setConversionTrackingEnabled,Y=K.saveConversionTrackingSettings,$=L;Object(u.useEffect)((function(){M&&o()(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.a.invalidateCache("modules","analytics-4");case 2:z(M);case 3:case"end":return e.stop()}}),e)})))()}),[M,z]),Object(u.useEffect)((function(){R||F(p.m,Object(k.a)({siteName:U,siteURL:B,timezone:W}))}),[R,U,B,W,F]);var X=Object(u.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=[],L||t.push(p.h),G||t.push(p.p),!(t.length>0)){e.next=7;break}return F(p.m,{autoSubmit:!0}),q({code:T.a,message:Object(s.__)("Additional permissions are required to create a new Analytics account.","google-site-kit"),data:{status:403,scopes:t,skipModal:!0}}),e.abrupt("return");case 7:return F(p.m,{autoSubmit:!1}),e.next=10,Object(O.I)("".concat(V,"_analytics"),"create_account","proxy");case 10:return e.next=12,H();case 12:if(n=e.sent,n.error){e.next=19;break}return J(!0),e.next=18,Y();case 18:i(!0);case 19:case"end":return e.stop()}}),e)}))),[L,G,F,V,H,q,J,Y]);Object(u.useEffect)((function(){$&&x&&X()}),[$,x,X]);var Q=Object(g.useDispatch)(p.r).rollbackSettings,ee=Object(u.useCallback)((function(){return Q()}),[Q]);return P||a||!d||void 0===$?e.createElement(f.ProgressBar,null):e.createElement("div",null,e.createElement(N.a,{moduleSlug:"analytics-4",storeName:p.r}),e.createElement("h3",{className:"googlesitekit-heading-4"},Object(s.__)("Create your Analytics account","google-site-kit")),e.createElement("p",null,Object(s.__)("We’ve 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(E.a,{size:6},e.createElement(S.a,null)),e.createElement(E.a,{size:6},e.createElement(_.a,null)),e.createElement(E.a,{size:6},e.createElement(I.a,null))),e.createElement("div",{className:"googlesitekit-setup-module__inputs"},e.createElement(A.a,null),e.createElement(j.a,null)),e.createElement("div",{classNam
|
|||
|
|
/* translators: 1: Data stream name. 2: Measurement ID. */
|
|||
|
|
Object(l._x)("%1$s (%2$s)","Analytics data stream name and measurement ID","google-site-kit"),r,o.measurementId):r)})))}WebDataStreamSelect.propTypes={hasModuleAccess:o.a.bool,isDisabled:o.a.bool,className:o.a.string}}).call(this,n(4))},555:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertySelect}));var a=n(11),r=n.n(a),i=n(1),o=n.n(i),c=n(0),l=n(2),s=n(10),u=n(3),d=n(8),m=n(67),g=n(9),f=n(18);function PropertySelect(t){var n=t.isDisabled,a=t.hasModuleAccess,i=t.className,o=t.onChange,p=void 0===o?function(){}:o,y=Object(u.useSelect)((function(e){return e(d.r).getAccountID()})),b=Object(u.useSelect)((function(e){return!1===a||n?null:e(d.r).getPropertySummaries(y)||[]})),h=Object(u.useSelect)((function(e){return e(d.r).getPropertyID()})),v=Object(u.useSelect)((function(e){return!n&&(e(d.r).isLoadingPropertySummaries()||e(d.r).isLoadingWebDataStreams({hasModuleAccess:a}))})),T=Object(f.a)(),O=Object(u.useDispatch)(d.r).selectProperty,k=Object(c.useCallback)((function(e,t){var n=t.dataset.value;h!==n&&(O(n),Object(g.I)("".concat(T,"_analytics"),n===d.s?"change_property_new":"change_property","ga4"),p())}),[p,h,O,T]);if(!Object(m.a)(y))return null;if(v)return e.createElement(s.ProgressBar,{smallHeight:80,desktopHeight:88,small:!0});var E=void 0===h||""===h||Object(m.f)(h);return!1===a?e.createElement(s.Select,{className:r()("googlesitekit-analytics-4__select-property",i),label:Object(l.__)("Property","google-site-kit"),value:h,enhanced:!0,outlined:!0,disabled:!0},e.createElement(s.Option,{value:h},h)):e.createElement(s.Select,{className:r()("googlesitekit-analytics-4__select-property",i,{"mdc-select--invalid":!E,"googlesitekit-analytics-4__select-property--loaded":!n&&!v}),label:Object(l.__)("Property","google-site-kit"),value:h,onEnhancedChange:k,disabled:n,enhanced:!0,outlined:!0},(b||[]).concat({_id:d.s,displayName:Object(l.__)("Set up a new property","google-site-kit")}).map((function(t){var n=t._id,a=t.displayName;return e.createElement(s.Option,{key:n,value:n},n===d.s?a:Object(l.sprintf)(
|
|||
|
|
/* translators: 1: Property name. 2: Property ID. */
|
|||
|
|
Object(l._x)("%1$s (%2$s)","Analytics property name and ID","google-site-kit"),a,n))})))}PropertySelect.propTypes={isDisabled:o.a.bool,hasModuleAccess:o.a.bool,className:o.a.string,onChange:o.a.func}}).call(this,n(4))},556:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebDataStreamNameInput}));var a=n(11),r=n.n(a),i=n(81),o=n(0),c=n(2),l=n(106),s=n(3),u=n(29),d=n(13),m=n(8),g=n(506),f=n(10),p=n(67);function WebDataStreamNameInput(){var t=Object(s.useSelect)((function(e){return e(m.r).getPropertyID()})),n=Object(s.useSelect)((function(e){return e(m.r).getWebDataStreamID()})),a=Object(s.useSelect)((function(e){return e(u.a).getValue(m.o,"webDataStreamName")})),y=Object(s.useSelect)((function(e){return!!Object(p.e)(t)&&e(m.r).doesWebDataStreamExist(t,a)})),b=Object(s.useSelect)((function(e){return e(d.c).getReferenceSiteURL()})),h=Object(s.useDispatch)(u.a).setValues,v=Object(o.useCallback)((function(e){var t=e.currentTarget;h(m.o,{webDataStreamName:t.value})}),[h]);if(Object(i.a)((function(){if(!a&&Object(l.a)(b)){var e=new URL(b).hostname;h(m.o,{webDataStreamName:e})}})),n!==m.z)return null;var T=y||!a||!Object(p.h)(a),O=!1;return y?O=Object(c.__)("A web data stream with this name already exists.","google-site-kit"):a?Object(p.h)(a)||(O=Object(c.__)("This is not a valid web data stream name.","google-site-kit")):O=Object(c.__)("A web data stream name is required.","google-site-kit"),e.createElement("div",{className:"googlesitekit-analytics-webdatastreamname"},e.createElement(f.TextField,{className:r()({"mdc-text-field--error":T}),label:Object(c.__)("Web Data Stream Name","google-site-kit"),outlined:!0,helperText:O,trailingIcon:T&&e.createElement("span",{className:"googlesitekit-text-field-icon--error"},e.createElement(g.a,null)),value:a,onChange:v}))}}).call(this,n(4))},563:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TimezoneSelect}));var a=n(0),r=n(2),i=n(10),o=n(3),c=n(215),l=n(8),s=n(29);function TimezoneSelect(){var t=Object(o.useSelect)((function(e){return e(s.a).getValue(l.m,"countryCode")})),n=Object(o.useSelect)((function(e){return e(s.a).getValue(l.m,"timezone")})),u=Object(o.useDispatch)(s.a).setValues,d=Object(a.useCallback)((function(e,t){u(l.m,{timezone:t.dataset.value})}),[u]);return e.createElement(i.Select,{className:"googlesitekit-analytics__select-timezone",label:Object(r.__)("Timezone","google-site-kit"),value:n,onEnhancedChange:d,disabled:!t,enhanced:!0,outlined:!0},(c.d[t]||[]).map((function(t,n){var a=t.timeZoneId,r=t.displayName;return e.createElement(i.Option,{key:n,value:a},r)})))}}).call(this,n(4))},564:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AccountField}));var a=n(0),r=n(2),i=n(331),o=n(3),c=n(8),l=n(29);function AccountField(){var t=Object(o.useSelect)((function(e){return e(l.a).getValue(c.m,"accountName")})),n=Object(o.useDispatch)(l.a).setValues,s=Object(a.useCallback)((function(e){n(c.m,{accountName:e})}),[n]);return e.createElement(i.a,{label:Object(r.__)("Account","google-site-kit"),hasError:!t,value:t,setValue:s,name:"account"})}}).call(this,n(4))},565:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PropertyField}));var a=n(0),r=n(2),i=n(331),o=n(3),c=n(8),l=n(29);function PropertyField(){var t=Object(o.useSelect)((function(e){return e(l.a).getValue(c.m,"propertyName")})),n=Object(o.useDispatch)(l.a).setValues,s=Object(a.useCallback)((function(e){n(c.m,{propertyName:e})}),[n]);return e.createElement(i.a,{label:Object(r.__)("Property","google-site-kit"),value:t,hasError:!t,setValue:s,name:"property"})}}).call(this,n(4))},566:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CountrySelect}));var a=n(0),r=n(2),i=n(10),o=n(3),c=n(215),l=n(8),s=n(29);function CountrySelect(){var t=Object(o.useSelect)((function(e){return e(s.a).getValue(l.m,"countryCode")})),n=Object(o.useDispatch)(s.a).setValues,u=Object(a.useCallback)((function(e,a){var r=a.dataset.value;r!==t&&c.b[r]&&n(l.m,{countryCode:r,timezone:c.b[r].defaultTimeZoneId})}),[n,t]);return e.createElement(i.Select,
|
|||
|
|
/* 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"),i?S(i,y(y({},o),{},{unit:"second"})):"",r?S(r,y(y({},o),{},{unit:"minute"})):"",a?S(a,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"),i);if(0===e)return t;var n=Object(f.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
|
|||
|
|
Object(f.__)("%dm","google-site-kit"),r),o=Object(f.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
|
|||
|
|
Object(f.__)("%dh","google-site-kit"),a);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"),i?t:"",r?n:"",a?o:"").trim()}}},O=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},k=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"),S(O(e),e%10==0?{}:t)):1e4<=e?Object(f.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(f.__)("%sK","google-site-kit"),S(O(e))):1e3<=e?Object(f.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(f.__)("%sK","google-site-kit"),S(O(e),e%10==0?{}:t)):S(e,{signDisplay:"never",maximumFractionDigits:1})};function E(e){var t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:Object(d.isPlainObject)(e)&&(t=y({},e)),t}function N(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=E(t),a=n.style,r=void 0===a?"metric":a;return"metric"===r?k(e):"duration"===r?b(e,n):"durationISO"===r?h(e):S(e,n)}var j=g()(console.warn),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?A():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(a,i).format(e)}catch(t){j("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"},l=["signDisplay","compactDisplay"],s={},d=0,m=Object.entries(i);d<m.length;d++){var g=r()(m[d],2),f=g[0],p=g[1];c[f]&&p===c[f]||(l.includes(f)||(s[f]=p))}try{return new Intl.NumberFormat(a,s).format(e)}catch(t){return new Intl.NumberFormat(a).format(e)}},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,a=void 0===n?A():n,r=t.style,i=void 0===r?"long":r,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(a,{style:i,type:c});return l.format(e)}
|
|||
|
|
/* translators: used between list items, there is a space after the comma. */var s=Object(f.__)(", ","google-site-kit");return e.join(s)},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var a=n.match(/^(\w{2})?(_)?(\w{2})/);if(a&&a[0])return a[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(28))},837:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(2),r={animation:{startup:!0},chart:{title:Object(a.__)("Unique visitors","google-site-kit")},curveType:"function",height:270,width:"100%",chartArea:{height:"80%",left:20,right:20},legend:{position:"top",textStyle:{color:"#616161",fontSize:12}},hAxis:{format:"MMM d",gridlines:{color:"#fff"},textStyle:{color:"#616161",fontSize:12}},vAxis:{textPosition:"none",viewWindow:{min:0},gridlines:{color:"#eee"}},series:{0:{color:"#6380b8",targetAxisIndex:0},1:{color:"#6380b8",targetAxisIndex:0,lineDashStyle:[3,3],lineWidth:1}},focusTarget:"category",crosshair:{color:"gray",opacity:.1,orientation:"vertical",trigger:"both"},tooltip:{isHtml:!0,trigger:"both"}}},84:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var a=n(149),r=n.n(a)()(e)}).call(this,n(28))},85:function(e,t,n){"use strict";(function(e){var a=n(1),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(4))},86:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a={EXTERNAL:"external",INTERNAL:"internal"}},89:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(12),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)}}},9:function(e,t,n){"use strict";n.d(t,"I",(function(){return r.b})),n.d(t,"J",(function(){return r.c})),n.d(t,"F",(function(){return i.a})),n.d(t,"K",(function(){return i.b})),n.d(t,"H",(function(){return u})),n.d(t,"m",(function(){return d.a})),n.d(t,"B",(function(){return d.d})),n.d(t,"C",(function(){return d.e})),n.d(t,"y",(function(){return d.c})),n.d(t,"r",(function(){return d.b})),n.d(t,"z",(function(){return p})),n.d(t,"j",(function(){return y})),n.d(t,"i",(function(){return b})),n.d(t,"d",(function(){return E})),n.d(t,"c",(function(){return N})),n.d(t,"e",(function(){return j})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return _})),n.d(t,"f",(function(){return A})),n.d(t,"n",(function(){return I})),n.d(t,"w",(function(){return w})),n.d(t,"p",(function(){return C})),n.d(t,"G",(function(){return Z})),n.d(t,"s",(function(){return M})),n.d(t,"v",(function(){return D})),n.d(t,"k",(function(){return P})),n.d(t,"o",(function(){return L.b})),n.d(t,"h",(function(){return L.a})),n.d(t,"t",(function(){return G.b})),n.d(t,"q",(function(){return G.a})),n.d(t,"A",(function(){return G.c})),n.d(t,"x",(function(){return R})),n.d(t,"u",(function(){return x})),n.d(t,"E",(function(){return W})),n.d(t,"D",(function(){return V.a})),n.d(t,"g",(function(){return F})),n.d(t,"L",(function(){return z})),n.d(t,"l",(function(){return H}));var a=n(14),r=n(36),i=n(75),o=n(33),c=n.n(o),l=n(96),s=n.n(l),u=function(e){return s()(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})),
|
|||
|
|
/* translators: %s: number of days */
|
|||
|
|
Object(k._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 w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!Object(a.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var n=new Date(e);return Object(a.isDate)(n)&&!isNaN(n)}function C(e){O()(Object(a.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");var t="".concat(e.getMonth()+1),n="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,n.length<2?"0".concat(n):n].join("-")}function Z(e){O()(w(e),E);var t=e.split("-"),n=v()(t,3),a=n[0],r=n[1],i=n[2];return new Date(a,r-1,i)}function M(e,t){return C(P(e,t*_))}function D(e){var t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function P(e,t){O()(w(e)||Object(a.isDate)(e)&&!isNaN(e),E);var n=w(e)?Date.parse(e):e.getTime();return new Date(n-1e3*t)}var L=n(98),G=n(80);function R(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function x(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var B=n(27),U=n.n(B),W=function(e){return Array.isArray(e)?U()(e).sort():e},V=n(89);function F(e,t){var n=function(e){return"0"===e||0===e};if(n(e)&&n(t))return 0;if(n(e)||Number.isNaN(e))return null;var a=(t-e)/e;return Number.isNaN(a)||!Number.isFinite(a)?null:a}var z=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},H=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(a.unescape)(t)}},90:function(e,t,n){"use strict";(function(e,a){n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return T})),n.d(t,"a",(function(){return TourTooltips}));var r=n(6),i=n.n(r),o=n(81),c=n(30),l=n(1),s=n.n(l),u=n(2),d=n(3),m=n(23),g=n(7),f=n(36),p=n(107),y=n(18);function b(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}var h={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},v={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},T={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},O="feature_tooltip_view",k="feature_tooltip_advance",E="feature_tooltip_return",N="feature_tooltip_dismiss",j="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,r=t.tourID,l=t.gaEventCategory,s=t.callback,u="".concat(r,"-step"),S="".concat(r,"-run"),_=Object(d.useDispatch)(m.b).setValue,A=Object(d.useDispatch)(g.a).dismissTour,I=Object(d.useRegistry)(),w=Object(y.a)(),C=Object(d.useSelect)((function(e){return e(m.b).getValue(u)})),Z=Object(d.useSelect)((function(e){return e(m.b).getValue(S)&&!1===e(g.a).isTourDismissed(r)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(r)),_(S,!0)}));var M=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return a.createElement(c.e,{callback:function(t){!fu
|