28 lines
162 KiB
JavaScript
28 lines
162 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[26],{10:function(e,t){e.exports=googlesitekit.components},1e3:function(e,t,n){"use strict";var r=n(0);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M434.125 308.505c-30.473 31.409-70.568 36.424-112.295 31.203C250.558 330.793 253.038 265.5 203.5 231c-31.111-21.667-82.978 24.804-137 4.5C6.071 212.788-32 130.003 40 67.5 94.483 20.203 131.83 51.98 173.5 49c41.67-2.98 56.763-13.256 75.538-30.37C270.942-1.34 309.5-3.913 338.252 4.574c29.338 8.66 50.219 29.28 58.202 58.922 6.077 22.573 3.427 65.335 19.583 86.632 22 29 37.45 37.613 44.52 71.5 6.139 29.431-8.182 68.021-26.432 86.876z",fill:"#B8E6CA"}),o=r.createElement("g",{filter:"url(#first-party-mode-setup-banner-desktop_svg__filter0_d_34_998)"},r.createElement("path",{d:"M118 45.764C118 38.162 124.162 32 131.764 32h167.472C306.838 32 313 38.162 313 45.764v216.472c0 7.602-6.162 13.764-13.764 13.764H131.764c-7.602 0-13.764-6.162-13.764-13.764V45.764z",fill:"#fff"})),c=r.createElement("path",{d:"M48.692 87.681c16.818 0 30.372-14.004 30.372-31.181 0-17.176-13.554-31.181-30.372-31.181-16.819 0-30.373 14.005-30.373 31.181 0 17.177 13.555 31.181 30.373 31.181z",fill:"#895A00",stroke:"#fff",strokeWidth:3.362}),s=r.createElement("ellipse",{cx:48.692,cy:56.5,rx:28.692,ry:29.5,fill:"#D9D9D9"}),l=r.createElement("g",{mask:"url(#first-party-mode-setup-banner-desktop_svg__a)",fill:"#FECE72"},r.createElement("path",{d:"M60.73 50.809c0 6.366-5.16 11.527-11.526 11.527s-11.527-5.161-11.527-11.527 5.161-11.527 11.527-11.527S60.73 44.443 60.73 50.81z"}),r.createElement("ellipse",{cx:49.204,cy:84.868,rx:24.494,ry:20.147})),u=r.createElement("path",{d:"M403.087 162.667c23.599 0 42.619-19.652 42.619-43.754 0-24.103-19.02-43.754-42.619-43.754-23.6 0-42.62 19.651-42.62 43.754 0 24.102 19.02 43.754 42.62 43.754z",fill:"#895A00",stroke:"#fff",strokeWidth:4.718}),d=r.createElement("ellipse",{cx:403.261,cy:118.913,rx:40.261,ry:41.395,fill:"#D9D9D9"}),f=r.createElement("g",{mask:"url(#first-party-mode-setup-banner-desktop_svg__b)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M387.922 113.637a6.29 6.29 0 00-1.922 4.526v40.393a6.29 6.29 0 006.29 6.291h22.017a6.29 6.29 0 006.29-6.291v-40.393a6.29 6.29 0 00-1.922-4.526l-13.192-12.731a3.145 3.145 0 00-4.369 0l-13.192 12.731zm15.377 15.04a4.717 4.717 0 100-9.435 4.717 4.717 0 000 9.435z",fill:"#FECE72"})),p=r.createElement("path",{d:"M133.363 63.061a4 4 0 014-4h157a4 4 0 014 4v38a4 4 0 01-4 4h-157a4 4 0 01-4-4v-38z",fill:"#FFE4B1"}),g=r.createElement("rect",{x:133,y:115,width:165,height:8,rx:4,fill:"#FFE4B1"}),m=r.createElement("rect",{x:225,y:209,width:73,height:8,rx:4,fill:"#FFE4B1"}),h=r.createElement("rect",{opacity:.6,x:225,y:225,width:73,height:8,rx:4,fill:"#FFE4B1"}),v=r.createElement("rect",{opacity:.25,x:225,y:241,width:73,height:8,rx:4,fill:"#FFE4B1"}),b=r.createElement("rect",{opacity:.6,x:133,y:130,width:165,height:8,rx:4,fill:"#FFE4B1"}),y=r.createElement("rect",{opacity:.25,x:133,y:145,width:75,height:8,rx:4,fill:"#FFE4B1"}),E=r.createElement("rect",{opacity:.25,x:133,y:158,width:75,height:8,rx:4,fill:"#FFE4B1"}),_=r.createElement("rect",{x:225,y:146,width:73,height:50,rx:4,fill:"#FFE4B1"}),O=r.createElement("circle",{cx:241,cy:167,r:5,fill:"#E1B155"}),k=r.createElement("path",{d:"M252.37 173.768L243 185h39l-14.182-17-10.13 12.143-5.318-6.375z",fill:"#E1B155"}),w=r.createElement("rect",{x:133,y:177,width:73,height:99,rx:4,fill:"#FFE4B1"}),x=r.createElement("path",{d:"M321.909 241.145c15.006 0 27.101-12.496 27.101-27.822 0-15.327-12.095-27.823-27.101-27.823-15.007 0-27.102 12.496-27.102 27.823 0 15.326 12.095 27.822 27.102 27.822z",fill:"#895A00",stroke:"#fff",strokeWidth:3}),S=r.createElement("path",{d:"M347.01 213.323c0 14.274-11.251 25.822-25.101 25.822s-25.102-11.548-25.102-25.822c0-14.275 11.252-25.823 25.102-25.823s25.101 11.548 25.101 25.823z",fi
|
|||
|
|
/* 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(T,C),N[n][0].toLocaleDateString(T,C)),h=Object(s.sprintf)(
|
|||
|
|
/* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage */
|
|||
|
|
Object(s._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s</em>","Stat information for chart tooltip","google-site-kit"),a[t],d[t](i),g,Object(u.C)(Math.abs(p),"%"));x.push([e[0],'<div class="'.concat(o()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":p>0,"googlesitekit-visualization-tooltip--down":p<0}),'">\n\t\t\t\t<p>').concat(m,"</p>\n\t\t\t\t<p>").concat(h,"</p>\n\t\t\t</div>"),k?Object(u.k)(i):i,k?Object(u.k)(c):c])}})),x}},45:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c}));var r=n(22),i="core/notifications",a={ERRORS:"notification-area-errors",BANNERS_ABOVE_NAV:"notification-area-banners-above-nav",BANNERS_BELOW_NAV:"notification-area-banners-below-nav"},o={DEFAULT:"default",SETUP_CTAS:"setup-ctas"},c=[r.s,r.n,r.l,r.o,r.m]},46:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"i",(function(){return d}));var r="modules/tagmanager",i="account_create",a="container_create",o="web",c="amp",s="tagmanagerSetup",l="https://www.googleapis.com/auth/tagmanager.readonly",u="https://www.googleapis.com/auth/tagmanager.edit.containers",d="SETUP_WITH_ANALYTICS"},512:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="warning-notification-fpm",i="fpm-setup-cta"},55:function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),a=n(106),o=n(2),c=n(9);function ErrorText(t){var n=t.message,r=t.reconnectURL,i=t.noPrefix;if(!n)return null;var s=n;void 0!==i&&i||(s=Object(o.sprintf)(
|
|||
|
|
/* translators: %s: Error message */
|
|||
|
|
Object(o.__)("Error: %s","google-site-kit"),n)),r&&Object(a.a)(r)&&(s=s+" "+Object(o.sprintf)(
|
|||
|
|
/* translators: %s: Reconnect URL */
|
|||
|
|
Object(o.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),r));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.G)(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(4))},58:function(e,t,n){"use strict";var r=n(0);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),o=r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"});t.a=function SvgWarning(e){return r.createElement("svg",i({fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e),a,o)}},59:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(40);function i(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},6:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"H",(function(){return s})),n.d(t,"M",(function(){return l})),n.d(t,"O",(function(){return u})),n.d(t,"K",(function(){return d})),n.d(t,"L",(function(){return f})),n.d(t,"J",(function(){return p})),n.d(t,"I",(function(){return g})),n.d(t,"N",(function(){return m})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return v})),n.d(t,"h",(function(){return b})),n.d(t,"j",(function(){return y})),n.d(t,"l",(function(){return E})),n.d(t,"m",(function(){return _})),n.d(t,"n",(function(){return O})),n.d(t,"o",(function(){return k})),n.d(t,"q",(function(){return w})),n.d(t,"s",(function(){return x})),n.d(t,"r",(function(){return S})),n.d(t,"t",(function(){return j})),n.d(t,"w",(function(){return A})),n.d(t,"u",(function(){return D})),n.d(t,"v",(function(){return N})),n.d(t,"x",(function(){return T})),n.d(t,"y",(function(){return C})),n.d(t,"A",(function(){return P})),n.d(t,"B",(function(){return R})),n.d(t,"C",(function(){return M})),n.d(t,"D",(function(){return L})),n.d(t,"k",(function(){return F})),n.d(t,"F",(function(){return I})),n.d(t,"z",(function(){return B})),n.d(t,"G",(function(){return U})),n.d(t,"E",(function(){return V})),n.d(t,"i",(function(){return z})),n.d(t,"p",(function(){return G})),n.d(t,"Q",(function(){return q})),n.d(t,"P",(function(){return W}));var r="core/user",i="connected_url_mismatch",a="__global",o="temporary_persist_permission_error",c="adblocker_active",s="googlesitekit_authenticate",l="googlesitekit_setup",u="googlesitekit_view_dashboard",d="googlesitekit_manage_options",f="googlesitekit_read_shared_module_data",p="googlesitekit_manage_module_sharing_options",g="googlesitekit_delegate_module_sharing_management",m="googlesitekit_update_plugins",h="kmAnalyticsAdSenseTopEarningContent",v="kmAnalyticsEngagedTrafficSource",b="kmAnalyticsLeastEngagingPages",y="kmAnalyticsNewVisitors",E="kmAnalyticsPopularAuthors",_="kmAnalyticsPopularContent",O="kmAnalyticsPopularProducts",k="kmAnalyticsReturningVisitors",w="kmAnalyticsTopCities",x="kmAnalyticsTopCitiesDrivingLeads",S="kmAnalyticsTopCitiesDrivingAddToCart",j="kmAnalyticsTopCitiesDrivingPurchases",A="kmAnalyticsTopDeviceDrivingPurchases",D="kmAnalyticsTopConvertingTrafficSource",N="kmAnalyticsTopCountries",T="kmAnalyticsTopPagesDrivingLeads",C="kmAnalyticsTopRecentTrendingPages",P="kmAnalyticsTopTrafficSource",R="kmAnalyticsTopTrafficSourceDrivingAddToCart",M="kmAnalyticsTopTrafficSourceDrivingLeads",L="kmAnalyticsTopTrafficSourceDrivingPurchases",F="kmAnalyticsPagesPerVisit",I="kmAnalyticsVisitLength",B="kmAnalyticsTopReturningVisitorPages",U="kmSearchConsolePopularKeywords",V="kmAnalyticsVisitsPerVisitor",z="kmAnalyticsMostEngagingPages",G="kmAnalyticsTopCategories",q=[
|
|||
|
|
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
|
|||
|
|
Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?S(a,h(h({},o),{},{unit:"second"})):"",i?S(i,h(h({},o),{},{unit:"minute"})):"",r?S(r,h(h({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(g.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
|
|||
|
|
Object(g.__)("%ds","google-site-kit"),a);if(0===e)return t;var n=Object(g.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
|
|||
|
|
Object(g.__)("%dm","google-site-kit"),i),o=Object(g.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
|
|||
|
|
Object(g.__)("%dh","google-site-kit"),r);return Object(g.sprintf)(
|
|||
|
|
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
|
|||
|
|
Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",i?n:"",r?o:"").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},O=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in millions.
|
|||
|
|
Object(g.__)("%sM","google-site-kit"),S(_(e),e%10==0?{}:t)):1e4<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(g.__)("%sK","google-site-kit"),S(_(e))):1e3<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(g.__)("%sK","google-site-kit"),S(_(e),e%10==0?{}:t)):S(e,{signDisplay:"never",maximumFractionDigits:1})};function k(e){var t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:Object(d.isPlainObject)(e)&&(t=h({},e)),t}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n=k(t),r=n.style,i=void 0===r?"metric":r;return"metric"===i?O(e):"duration"===i?v(e,n):"durationISO"===i?b(e):S(e,n)}var x=p()(console.warn),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?A():n,a=u()(t,["locale"]);try{return new Intl.NumberFormat(r,a).format(e)}catch(t){x("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,f=Object.entries(a);d<f.length;d++){var p=i()(f[d],2),g=p[0],m=p[1];c[g]&&m===c[g]||(s.includes(g)||(l[g]=m))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?A():n,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:a,type:c});return s.format(e)}
|
|||
|
|
/* translators: used between list items, there is a space after the comma. */var l=Object(g.__)(", ","google-site-kit");return e.join(l)},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(28))},83:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(150),i=n.n(r)()(e)}).call(this,n(28))},831:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return FirstPartyModeSetupBanner}));var r=n(7),i=n.n(r),a=n(5),o=n.n(a),c=n(16),s=n.n(c),l=n(0),u=n(2),d=n(3),f=n(105),p=n(45),g=n(13),m=n(6),h=n(23),v=n(155),b=n(267),y=n(257),E=n(210),_=n(1e3),O=n(1001),k=n(1002),w=n(24),x=n(18),S=n(9),j="fpm-show-setup-success-notification";function FirstPartyModeSetupBanner(t){var n,r=t.id,a=t.Notification,c=Object(w.e)(),A=Object(x.a)(),D=Object(d.useDispatch)(g.c),N=D.setFirstPartyModeEnabled,T=D.saveFirstPartyModeSettings,C=Object(f.b)(r),P=Object(f.c)(r).isTooltipVisible,R=Object(d.useSelect)((function(e){return e(g.c).isUsingProxy()})),M=Object(d.useSelect)((function(e){return e(p.a).isNotificationDismissed(r)})),L=Object(d.useDispatch)(p.a).invalidateResolution,F=Object(d.useSelect)((function(e){return e(m.a).isDismissingItem(r)})),I=Object(d.useDispatch)(h.b).setValue,B=Object(d.useSelect)((function(e){return e(g.c).getDocumentationLinkURL("first-party-mode-introduction")}));Object(l.useEffect)((function(){P&&Object(S.J)("".concat(A,"_fpm-setup-cta"),"tooltip_view")}),[P,A]);var U=function(){var e=s()(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),e.next=3,T();case 3:if(t=e.sent,!(n=t.error)){e.next=7;break}return e.abrupt("return",{error:n});case 7:I(j,!0),L("getQueuedNotifications",[A,p.c.DEFAULT]);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=Object(d.useDispatch)(m.a).triggerSurvey,z=Object(l.useCallback)((function(){R&&V("view_fpm_setup_cta",{ttl:S.a})}),[V,R]);if(P)return e.createElement(l.Fragment,null,e.createElement(f.a,{title:"",content:Object(u.__)("You can always enable First-party mode from Settings later","google-site-kit"),dismissLabel:Object(u.__)("Got it","google-site-kit"),onDismiss:function(){Object(S.J)("".concat(A,"_fpm-setup-cta"),"tooltip_dismiss")},tooltipStateKey:r}));if(M||F)return null;var G=(n={},i()(n,w.b,k.a),i()(n,w.c,O.a),n);return e.createElement(a,{onView:z},e.createElement(y.a,{id:r,title:Object(u.__)("Get more comprehensive stats by collecting metrics via your own site","google-site-kit"),description:e.createElement(v.a,{text:Object(u.__)("Enable First-party mode (<em>beta</em>) to send measurement through your own domain - this helps improve the quality and completeness of Analytics or Ads metrics.","google-site-kit"),learnMoreLink:e.createElement(b.a,{id:r,label:Object(u.__)("Learn more","google-site-kit"),url:B})}),actions:e.createElement(E.a,{id:r,className:"googlesitekit-setup-cta-banner__actions-wrapper",ctaLabel:Object(u.__)("Enable First-party mode","google-site-kit"),onCTAClick:U,ctaDismissOptions:{skipHidingFromQueue:!1},dismissLabel:Object(u.__)("Maybe later","google-site-kit"),onDismiss:C,dismissOptions:{skipHidingFromQueue:!0}}),SVG:G[c]||_.a}))}}).call(this,n(4))},85:function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),a=n(11),o=n.n(a);function ChangeArrow(t){var n=t.direction,r=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:i,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:i.a.string,invertColor:i.a.bool,width
|
|||
|
|
/* translators: %s: number of days */
|
|||
|
|
Object(O._n)("Last %s day","Last %s days",e,"google-site-kit"),e)};return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!Object(r.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var n=new Date(e);return Object(r.isDate)(n)&&!isNaN(n)}function C(e){_()(Object(r.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 P(e){_()(T(e),k);var t=e.split("-"),n=y()(t,3),r=n[0],i=n[1],a=n[2];return new Date(r,i-1,a)}function R(e,t){return C(L(e,t*j))}function M(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 L(e,t){_()(T(e)||Object(r.isDate)(e)&&!isNaN(e),k);var n=T(e)?Date.parse(e):e.getTime();return new Date(n-1e3*t)}var F=n(96),I=n(81);function B(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function U(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var V=n(27),z=n.n(V),G=function(e){return Array.isArray(e)?z()(e).sort():e},q=n(88);function W(e,t){var n=function(e){return"0"===e||0===e};if(n(e)&&n(t))return 0;if(n(e)||Number.isNaN(e))return null;var r=(t-e)/e;return Number.isNaN(r)||!Number.isFinite(r)?null:r}var H=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},K=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(r.unescape)(t)}},94:function(e,t,n){"use strict";(function(e,r){n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return TourTooltips}));var i=n(7),a=n.n(i),o=n(87),c=n(30),s=n(1),l=n.n(s),u=n(2),d=n(3),f=n(23),p=n(6),g=n(37),m=n(119),h=n(18);function v(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}var b={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},y={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")},E={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)"}}},_="feature_tooltip_view",O="feature_tooltip_advance",k="feature_tooltip_return",w="feature_tooltip_dismiss",x="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,i=t.tourID,s=t.gaEventCategory,l=t.callback,u="".concat(i,"-step"),S="".concat(i,"-run"),j=Object(d.useDispatch)(f.b).setValue,A=Object(d.useDispatch)(p.a).dismissTour,D=Object(d.useRegistry)(),N=Object(h.a)(),T=Object(d.useSelect)((function(e){return e(f.b).getValue(u)})),C=Object(d.useSelect)((function(e){return e(f.b).getValue(S)&&!1===e(p.a).isTourDismissed(i)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(i)),j(S,!0)}));var P=n.map((function(e){return function(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){a()(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}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!fu
|
|||
|
|
/* translators: %s: List of product names */
|
|||
|
|
Object(p.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(m.z)(V));break;case"single":z=Object(p.sprintf)(
|
|||
|
|
/* translators: %s: Product name */
|
|||
|
|
Object(p.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),V[0]);break;case"generic":z=Object(p.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(s,{className:"googlesitekit-publisher-win googlesitekit-publisher-win--win-error"},r.createElement(O.a,{title:q,description:r.createElement(k.a,{text:z}),actions:r.createElement(w.a,{id:o,ctaLabel:W,ctaLink:D?void 0:M,onCTAClick:G})}))}}).call(this,n(28),n(4))},99:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(5),i=n.n(r),a=n(7),o=n.n(a),c=n(16),s=n.n(c),l=n(59);function u(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 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 f(e,t,n,r){var a=Object(l.a)(t);return function(){var t=s()(i.a.mark((function t(o,c,s,l){var u;return i.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:s,value:l},t.abrupt("return",new Promise((function(e){var t,n,i=setTimeout((function(){r.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),e()}),1e3),s=function(){clearTimeout(i),e()};a("event",c,d(d({},u),{},{event_callback:s})),(null===(t=r._gaUserPrefs)||void 0===t||null===(n=t.ioo)||void 0===n?void 0:n.call(t))&&s()})));case 6:case"end":return t.stop()}}),t)})));return function(e,n,r,i){return t.apply(this,arguments)}}()}},990:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return UnsatisfiedScopesAlertGTE}));var i=n(2),a=n(3),o=n(13),c=n(6),s=n(46),l=n(29),u=n(208),d=n(155),f=n(267),p=n(209);function UnsatisfiedScopesAlertGTE(t){var n=t.id,g=t.Notification,m=Object(a.useSelect)((function(e){return e(l.a).getValue(c.d,"permissionsError")})),h=Object(a.useSelect)((function(t){var n;return t(c.a).getConnectURL({additionalScopes:[s.h],redirectURL:(null==m||null===(n=m.data)||void 0===n?void 0:n.redirectURL)||e.location.href})})),v=Object(a.useSelect)((function(e){return e(o.c).getGoogleSupportURL({path:"/tagmanager/answer/11994839"})}));return void 0===h?null:r.createElement(g,{className:"googlesitekit-publisher-win googlesitekit-publisher-win--win-error"},r.createElement(u.a,{title:Object(i.__)("Site Kit needs additional permissions to detect updates to tags on your site","google-site-kit"),description:r.createElement(d.a,{text:Object(i.__)("To continue using Analytics with Site Kit, you need to grant permission to check for any changes in your Google tag’s target Analytics property. The Google tag feature was recently updated to allow users to change a tag’s connected Analytics property without editing site code. Because of this change, Site Kit now must regularly check if the tag on your site matches the Analytics property destination.","google-site-kit"),learnMoreLink:r.createElement(f.a,{id:n,label:Object(i.__)("Learn more","google-site-kit"),url:v})}),actions:r.createElement(p.a,{id:n,ctaLabel:Object(i.__)("Grant permission","google-site-kit"),ctaLink:h})}))}}).call(this,n(28),n(4))},991:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GatheringDataNotification}));var r=n(1),i=n.n(r),a=n(2),o
|
|||
|
|
/* translators: %s: the number of hours the site can be in a gathering data state */
|
|||
|
|
Object(a._n)("It can take up to %s hour before stats show up for your site. While you’re waiting, connect more services to get more stats.","It can take up to %s hours before stats show up for your site. While you’re waiting, connect more services to get more stats.",b,"google-site-kit"),b)}),actions:e.createElement(f.a,{id:r,ctaLabel:Object(a.__)("See other services","google-site-kit"),ctaLink:"".concat(g,"#/connect-more-services"),dismissLabel:Object(a.__)("Maybe later","google-site-kit"),dismissExpires:s.a}),SmallImageSVG:p.a})):null}GatheringDataNotification.propTypes={id:i.a.string,Notification:i.a.elementType}}).call(this,n(4))},992:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),i=n(19),a=n(6),o=n(8),c=n(67),s=n(34);function l(){var e=Object(s.a)(),t=Object(r.useSelect)((function(e){return e(i.a).isModuleConnected("analytics-4")})),n=Object(r.useSelect)((function(t){return!e||t(a.a).canViewSharedModule("analytics-4")})),l=Object(r.useSelect)((function(t){return!e||t(a.a).canViewSharedModule("search-console")})),u=Object(r.useSelect)((function(t){if(!e)return!1;var n=t(i.a).getRecoverableModules();return void 0!==n?Object.keys(n).includes("analytics-4"):void 0})),d=Object(r.useSelect)((function(t){if(!e)return!1;var n=t(i.a).getRecoverableModules();return void 0!==n?Object.keys(n).includes("search-console"):void 0}));return{analyticsGatheringData:Object(r.useInViewSelect)((function(e){return!(!t||!n||!1!==u)&&e(o.r).isGatheringData()}),[t,n,u]),searchConsoleGatheringData:Object(r.useInViewSelect)((function(e){return l&&!1===d&&e(c.b).isGatheringData()}),[l,d]),analyticsHasZeroData:Object(r.useInViewSelect)((function(e){return!(!t||!n||!1!==u)&&e(o.r).hasZeroData()}),[t,n,u]),searchConsoleHasZeroData:Object(r.useInViewSelect)((function(e){return l&&!1===d&&e(c.b).hasZeroData()}),[l,d])}}},993:function(e,t,n){"use strict";var r=n(0);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M128.91 163c-12.56 3.66-25.8 10.57-31.82 22.81-6.35 12.93-1.46 28.49 10.19 36.65M271.09 163c12.56 3.66 25.8 10.57 31.82 22.81 6.35 12.93 1.46 28.49-10.19 36.65",stroke:"#EE675C",strokeLinejoin:"round",strokeWidth:9.27}),o=r.createElement("ellipse",{cx:200,cy:381.74,rx:79.51,ry:8.26,fill:"#F1F3F4"}),c=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),s=r.createElement("path",{d:"M216.76 201.8s-64.53 36.51-77.35 71.84c-4.72 13 3.53 27.36 17.27 29 11.31 1.39 28.4-3.14 53.06-24.33v31.36",stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27}),l=r.createElement("path",{d:"M216.76 201.8s-35.21 19.92-58.76 44.56",stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27}),u=r.createElement("path",{stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47V380h29.52"}),d=r.createElement("path",{stroke:"#B31412",strokeLinejoin:"round",strokeWidth:9.27,d:"M218.98 201.47v47.5"}),f=r.createElement("circle",{cx:200,cy:162.34,r:81.45,fill:"#D93025"}),p=r.createElement("path",{d:"M206.36 156.18c-18.33 10.42-42 6.07-50.25-19.59M164.26 137.72c-5.22-2.69-9-2.82-16.17-.91",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6.62}),g=r.createElement("path",{d:"M107.28 222.48c28.36 19.87 76.07-7.28 88.72-35.17M292.72 222.48c-28.36 19.87-76.07-7.28-88.72-35.17",stroke:"#EE675C",strokeLinejoin:"round",strokeWidth:9.27});t.a=function SvgZeroStateRed(e){return r.createElement("svg",i({viewBox:"0 0 400 400",fill:"none"},e),a,o,c,s,l,u,d,f,p,g)}},994:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ZeroDataNotification}));var r=n(2),i=n(3),a=n(13),o=n(995),c=n(9),s=n(780),l=n(155),u=n(267),d=n(117);function ZeroDataNotification(t){var n=t.id,f=t.Notification,p=Object(i.useSelect)((function(e){r
|