14 lines
89 KiB
JavaScript
14 lines
89 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[13],{1:function(e,t){e.exports=googlesitekit.i18n},106:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"d",(function(){return a})),r.d(t,"c",(function(){return o}));var n="editing-user-role-select-slug-key",i=[],a="dashboardSharingDialogOpen",o="resetSharingDialogOpen"},1083:function(e,t,r){"use strict";r.r(t);var n=r(4),i=r.n(n),a=r(56),o=r(5),c=r.n(o),u=r(6),s=r.n(u),l=r(35),f=r.n(l),d=r(12),g=r(45);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=i.a.createRegistrySelector;function m(e){return b((function(t){return function(){return(t(d.a).getAuthentication()||{})[e]}}))}var y=Object(g.a)({baseName:"getAuthentication",controlCallback:function(){return f.a.get("core","user","authentication",void 0,{useCache:!1})},reducerCallback:function(e,t){return v(v({},e),{},{authentication:t})}}),h={authentication:void 0,authError:null},O={setAuthError:function(e){return{payload:{error:e},type:"SET_AUTH_ERROR"}},clearAuthError:function(){return{payload:{},type:"CLEAR_AUTH_ERROR"}}},S={getAuthentication:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.getRegistry();case 2:if(t=e.sent,(0,t.select)(d.a).getAuthentication()){e.next=7;break}return e.next=7,y.actions.fetchGetAuthentication();case 7:case"end":return e.stop()}}),e)}))},E={getAuthentication:function(e){return e.authentication},hasScope:b((function(e){return function(t,r){var n=e(d.a).getGrantedScopes(t);if(void 0!==n)return n.includes(r)}})),isAuthenticated:m("authenticated"),getGrantedScopes:m("grantedScopes"),getRequiredScopes:m("requiredScopes"),getUnsatisfiedScopes:m("unsatisfiedScopes"),needsReauthentication:m("needsReauthentication"),getDisconnectedReason:m("disconnectedReason"),getConnectedProxyURL:m("connectedProxyURL"),getPreviousConnectedProxyURL:m("previousConnectedProxyURL"),getAuthError:function(e){return e.authError}},w=i.a.combineStores(y,{initialState:h,actions:O,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_AUTH_ERROR":return v(v({},e),{},{authError:n.error});case"CLEAR_AUTH_ERROR":return v(v({},e),{},{authError:null});default:return e}},resolvers:S,selectors:E}),_=(w.initialState,w.actions,w.controls,w.reducer,w.resolvers,w.selectors,w),j=r(7),k=r.n(j),I=r(73);function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var x={dateRange:"last-28-days",referenceDate:Object(I.f)(new Date)};var R={getDateRange:function(e){return e.dateRange},getDateRangeDates:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.compare,n=void 0!==r&&r,i=t.offsetDays,a=void 0===i?0:i,o=t.referenceDate,c=void 0===o?e.referenceDate:o,u=R.getDateRange(e),s=Object(I.g)(c,a),l=u.match("-(.*)-"),f=Number(l?l[1]:28),d=Object(I.g)(s,f-1),g={startDate:d,endDate:s};if(n){var p=Object(I.g)(d,1),v=Object(I.g)(p,f-1);g.compareStartDate=v,g.compareEndDate=p}return g},getDateRangeNumberOfDays:functi
|
|||
|
|
/* 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}}}},734:function(e,t,r){"use strict";(function(e){var n=r(28),i=r(1),a=r(23),o={slug:"unifiedDashboard",contexts:[a.j,a.k],version:"1.68.0",gaEventCategory:function(e){return"".concat(e,"_unified-dashboard")},steps:[{target:".googlesitekit-navigation",title:Object(i.__)("New! Navigate your dashboard easily","google-site-kit"),content:Object(i.__)("Jump straight to the relevant section in your dashboard with just one click - no more scrolling.","google-site-kit"),placement:"bottom"},{target:".googlesitekit-entity-search",title:Object(i.__)("Check stats for a specific post","google-site-kit"),content:Object(i.__)("Search by URL or by post title and your dashboard will be filtered to show stats just for that URL.","google-site-kit"),placement:"bottom"},{target:".googlesitekit-widget--searchFunnel",title:Object(i.__)("See trends over time for your site’s Search metrics","google-site-kit"),content:Object(i.__)("The updated Search Funnel shows you a more comprehensive view of how traffic from Search is changing.","google-site-kit"),placement:"top-end"}],callback:function(t){var r=t.type,i=t.index;n.b.TOOLTIP===r&&2===i&&setTimeout((function(){var t=e.document.querySelector(".googlesitekit-tour-tooltip"),r=e.document.querySelector("#wpadminbar");t&&r&&e.scrollTo({top:e.scrollY+t.getBoundingClientRect().top-r.offsetHeight,behavior:"smooth"})}),50)}};t.a=o}).call(this,r(21))},737:function(e,t,r){"use strict";(function(e){var n=r(24),i=r.n(n),a=r(5),o=r.n(a),c=r(6),u=r.n(c),s=r(7),l=r.n(s),f=r(35),d=r.n(f),g=r(4),p=r.n(g),v=r(12),b=r(17),m=r(738),y=r(45);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=p.a.createRegistrySelector,E=Object(y.a)({baseName:"getCapabilities",controlCallback:function(){return d.a.get("core","user","permissions",void 0,{useCache:!1})},reducerCallback:function(e,t){return O(O({},e),{},{capabilities:t})}}),w={permissionError:null,capabilities:void 0},_={clearPermissionScopeError:function(){return{payload:{},type:"CLEAR_PERMISSION_SCOPE_ERROR"}},setPermissionScopeError:function(e){return l()(e,"permissionError is required."),{payload:{permissionError:e},type:"SET_PERMISSION_SCOPE_ERROR"}},receiveCapabilities:function(e){return{type:"RECEIVE_CAPABILITIES",payload:{capabilities:e}}},refreshCapabilities:o.a.mark((function e(){var t,r,n,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.a.commonActions.getRegistry();case 2:return t=e.sent,r=t.dispatch,e.next=6,E.actions.fetchGetCapabilities();case 6:return n=e.sent,i=n.response,(a=n.error)&&r(v.a).setPermissionScopeError(a),e.abrupt("return",{response:i,error:a});case 11:case"end":return e.stop()}}),e)}))},j={getCapabilities:o.a.mark((function t(){var r,n,i,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p.a.commonActions.getRegistry();case 2:if(!t.sent.select(v.a).getCapabilities()){t.next=5;break}return t.abrupt("return");case 5:if(!(a=null===(r=e._googlesitekitAPIFetchData)||void 0===r||null===(n=r.preloadedData)||void 0===n||null===(i=n["/google-site-kit/v1/core/user/data/permissions"])||void 0===i?void 0:i.body)){t.next=9;break}return t.next=9,E.actions.receiveGetCapabilities(O({},a));case 9:return t.next=11,E.actions.fetchGetCapabilities();case 11:case"end":return t.s
|
|||
|
|
/* 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"),i?w(i,b(b({},o),{},{unit:"second"})):"",n?w(n,b(b({},o),{},{unit:"minute"})):"",r?w(r,b(b({},o),{},{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"),i);if(0===e)return t;var a=Object(p.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
|
|||
|
|
Object(p.__)("%dm","google-site-kit"),n),o=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"),i?t:"",n?a:"",r?o:"").trim()}}},h=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},O=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"),w(h(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(p.__)("%sK","google-site-kit"),w(h(e))):1e3<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
|
|||
|
|
Object(p.__)("%sK","google-site-kit"),w(h(e),e%10==0?{}:t)):w(e,{signDisplay:"never",maximumFractionDigits:1})},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(f.isFinite)(e)?e:Number(e),Object(f.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var r={};if("%"===t)r={style:"percent",maximumFractionDigits:2};else{if("s"===t)return m(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(f.isPlainObject)(t)&&(r=b({},t))}var n=r,i=n.style,a=void 0===i?"metric":i;return"metric"===a?O(e):"duration"===a?m(e,t):w(e,r)},E=g()(console.warn),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,a=l()(t,["locale"]);try{return new Intl.NumberFormat(n,a).format(e)}catch(t){E("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,d=Object.entries(a);f<d.length;f++){var g=i()(d[f],2),p=g[0],v=g[1];c[p]&&v===c[p]||(u.includes(p)||(s[p]=v))}try{return new Intl.NumberFormat(n,s).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(e)}
|
|||
|
|
/* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return e.join(s)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(f.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(21))},77:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(130),i=r.n(n)()(e)}).call(this,r(21))},8:function(e,t,r){"use strict";r.d(t,"f",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"h",(function(){return a})),r.d(t,"g",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"k",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"b",(function(){return f})),r.d(t,"r",(function(){return d})),r.d(t,"q",(function(){return g})),r.d(t,"s",(function(){return p})),r.d(t,"o",(function(){return v})),r.d(t,"p",(function(){return b})),r.d(t,"n",(function(){return m})),r.d(t,"l",(function(){return y})),r.d(t,"m",(function(){return h})),r.d(t,"j",(function(){return O})),r.d(t,"i",(function(){return S}));var n="modules/analytics",i="account_create",a="property_create",o="profile_create",c="analyticsAccountCreate",u="analyticsSetup",s="https://www.googleapis.com/auth/analytics.provision",l="https://www.googleapis.com/auth/analytics.edit",f=1,d="dashboardAllTrafficWidgetDimensionName",g="dashboardAllTrafficWidgetDimensionColor",p="dashboardAllTrafficWidgetDimensionValue",v="dashboardAllTrafficWidgetActiveRowIndex",b="dashboardAllTrafficWidgetLoaded",m="ua",y="ga4",h="ga4-transitional",O="ua",S="ga4"},85:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return s}));var n=r(14),i=r.n(n);function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),r={},n=0;n<t.length;n++)r[t[n].split("=")[0]]=decodeURIComponent(t[n].split("=")[1]);return e?r.hasOwnProperty(e)?decodeURIComponent(r[e].replace(/\+/g," ")):"":r},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,r=new URL(t.href);if(e)return r.searchParams&&r.searchParams.get?r.searchParams.get(e):u(e);var n,o={},c=a(r.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var s=i()(n.value,2),l=s[0],f=s[1];o[l]=f}}catch(e){c.e(e)}finally{c.f()}return o}}).call(this,r(21))},86:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return a}));var n=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 a(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},88:function(e,t,r){"use strict";(function(e){r(41),r(42)}).call(this,r(21))},89:function(e,t,r){"use strict";(function(e){r.d(t,"b",(functio
|