kollapsminoriteten/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-datastore-use...

14 lines
96 KiB
JavaScript
Raw Normal View History

2023-05-23 23:18:12 +02:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[13],{1:function(e,t){e.exports=googlesitekit.i18n},10:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return o})),r.d(t,"i",(function(){return c})),r.d(t,"k",(function(){return s})),r.d(t,"g",(function(){return u})),r.d(t,"h",(function(){return l})),r.d(t,"f",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"j",(function(){return p}));var n="core/user",i="connected_url_mismatch",a="__global",o="googlesitekit_authenticate",c="googlesitekit_setup",s="googlesitekit_view_dashboard",u="googlesitekit_manage_options",l="googlesitekit_read_shared_module_data",f="googlesitekit_manage_module_sharing_options",d="googlesitekit_delegate_module_sharing_management",p="googlesitekit_update_plugins"},112: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"},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="core/modules",i="insufficient_module_dependencies"},21:function(e,t,r){"use strict";r.d(t,"l",(function(){return n})),r.d(t,"j",(function(){return i})),r.d(t,"m",(function(){return a})),r.d(t,"k",(function(){return o})),r.d(t,"q",(function(){return c})),r.d(t,"g",(function(){return s})),r.d(t,"p",(function(){return u})),r.d(t,"h",(function(){return l})),r.d(t,"o",(function(){return f})),r.d(t,"i",(function(){return d})),r.d(t,"r",(function(){return p})),r.d(t,"n",(function(){return g})),r.d(t,"b",(function(){return v})),r.d(t,"e",(function(){return b})),r.d(t,"a",(function(){return m})),r.d(t,"d",(function(){return y})),r.d(t,"c",(function(){return h})),r.d(t,"f",(function(){return O}));var n="mainDashboard",i="entityDashboard",a="mainDashboardViewOnly",o="entityDashboardViewOnly",c="userInput",s="activation",u="splash",l="adminBar",f="settings",d="adBlockingRecovery",p="wpDashboard",g="moduleSetup",v="key-metrics",b="traffic",m="content",y="speed",h="monetization",O=[n,i,a,o,c,u,f,g]},256:function(e,t,r){"use strict";function n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((function(e,t,n){return e+t+encodeURIComponent(r[n]||"")}),"")}r.d(t,"a",(function(){return n}))},30:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i}));var n="core/ui",i="activeContextID"},33:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="_googlesitekitDataLayer",i="data-googlesitekit-gtag"},35:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return y}));var n=r(90),i=e._googlesitekitTrackingData||{},a=i.activeModules,o=void 0===a?[]:a,c=i.isSiteKitScreen,s=i.trackingEnabled,u=i.trackingID,l=i.referenceSiteURL,f=i.userIDHash,d=i.isAuthenticated,p={activeModules:o,trackingEnabled:s,trackingID:u,referenceSiteURL:l,userIDHash:f,isSiteKitScreen:c,userRoles:i.userRoles,isAuthenticated:d,pluginVersion:"1.101.0"},g=Object(n.a)(p),v=g.enableTracking,b=g.disableTracking,m=(g.isTrackingEnabled,g.initializeSnippet),y=g.trackEvent;function h(e){e?v():b()}c&&s&&m()}).call(this,r(25))},351:function(e,t,r){"use strict";(function(e){var n=r(29),i=r(1),a=r(39),o=r(10),c=(e._googlesitekitUserData||{}).hasMultipleAdmins,s=[{target:".googlesitekit-dashboard-sharing-settings__main .googlesitekit-dashboard-sharing-settings__column--view",title:Object(i.__)("Manage view access for other roles","google-site-kit"),content:Object(i.__)("Grant access to the view-only dashboard for each service for the specific roles you want. Users will see the Site Kit dashboard with only the services that have been shared with them without needing to sign-in with Google.","google-site-kit"),placement:"auto"}];c&&s.push({target:".goog
/* 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}}}},675:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return S}));var n=r(4),i=r.n(n),a=r(56),o=r(676),c=r(10),s=r(677),u=r(678),l=r(679),f=r(879),d=r(684),p=r(685),g=r(686),v=r(687),b=r(689),m=r(690),y=r(691),h=r(692),O=i.a.combineStores(i.a.commonStore,Object(a.b)(c.a),o.a,s.a,u.a,l.a,f.a,d.a,p.a,v.a,g.a,b.a,m.a,y.a,h.a),S=(O.initialState,O.actions,O.controls,O.reducer,O.resolvers,O.selectors,function(t){var r;t.registerStore(c.a,O),(null===(r=e._googlesitekitBaseData)||void 0===r?void 0:r.referenceDate)&&t.dispatch(c.a).setReferenceDate(e._googlesitekitBaseData.referenceDate)})}).call(this,r(25))},676:function(e,t,r){"use strict";var n=r(5),i=r.n(n),a=r(6),o=r.n(a),c=r(36),s=r.n(c),u=r(4),l=r.n(u),f=r(10),d=r(43);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 g(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){o()(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 v=l.a.createRegistrySelector;function b(e){return v((function(t){return function(){return(t(f.a).getAuthentication()||{})[e]}}))}var m=Object(d.a)({baseName:"getAuthentication",controlCallback:function(){return s.a.get("core","user","authentication",void 0,{useCache:!1})},reducerCallback:function(e,t){return g(g({},e),{},{authentication:t})}}),y={authentication:void 0,authError:null},h={setAuthError:function(e){return{payload:{error:e},type:"SET_AUTH_ERROR"}},clearAuthError:function(){return{payload:{},type:"CLEAR_AUTH_ERROR"}}},O={getAuthentication:i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.a.commonActions.getRegistry();case 2:if(t=e.sent,(0,t.select)(f.a).getAuthentication()){e.next=7;break}return e.next=7,m.actions.fetchGetAuthentication();case 7:case"end":return e.stop()}}),e)}))},S={getAuthentication:function(e){return e.authentication},hasScope:v((function(e){return function(t,r){var n=e(f.a).getGrantedScopes(t);if(void 0!==n)return n.includes(r)}})),isAuthenticated:b("authenticated"),getGrantedScopes:b("grantedScopes"),getRequiredScopes:b("requiredScopes"),getUnsatisfiedScopes:b("unsatisfiedScopes"),needsReauthentication:b("needsReauthentication"),getDisconnectedReason:b("disconnectedReason"),getConnectedProxyURL:b("connectedProxyURL"),getPreviousConnectedProxyURL:b("previousConnectedProxyURL"),getAuthError:function(e){return e.authError}},w=l.a.combineStores(m,{initialState:y,actions:h,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_AUTH_ERROR":return g(g({},e),{},{authError:n.error});case"CLEAR_AUTH_ERROR":return g(g({},e),{},{authError:null});default:return e}},resolvers:O,selectors:S});w.initialState,w.actions,w.controls,w.reducer,w.resolvers,w.selectors;t.a=w},677:function(e,t,r){"use strict";var n=r(6),i=r.n(n),a=r(9),o=r.n(a),c=r(63);function s(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l={dateRange:"last-28-days"
/* 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"),i?E(i,b(b({},o),{},{unit:"second"})):"",n?E(n,b(b({},o),{},{unit:"minute"})):"",r?E(r,b(b({},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"),i);if(0===e)return t;var a=Object(g.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(g.__)("%dm","google-site-kit"),n),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"),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(g.sprintf)(// translators: %s: an abbreviated number in millions.
Object(g.__)("%sM","google-site-kit"),E(h(e),e%10==0?{}:t)):1e4<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(g.__)("%sK","google-site-kit"),E(h(e))):1e3<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(g.__)("%sK","google-site-kit"),E(h(e),e%10==0?{}:t)):E(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):E(e,r)},w=p()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?k():r,a=l()(t,["locale"]);try{return new Intl.NumberFormat(n,a).format(e)}catch(t){w("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"},s=["signDisplay","compactDisplay"],u={},f=0,d=Object.entries(a);f<d.length;f++){var p=i()(d[f],2),g=p[0],v=p[1];c[g]&&v===c[g]||(s.includes(g)||(u[g]=v))}try{return new Intl.NumberFormat(n,u).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?k():r,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(n,{style:a,type:c});return s.format(e)}
/* translators: used between list items, there is a space after the comma. */var u=Object(g.__)(", ","google-site-kit");return e.join(u)},k=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(25))},76:function(e,t,r){"use strict";r.d(t,"a",(function(){return _})),r.d(t,"b",(function(){return I})),r.d(t,"c",(function(){return x})),r.d(t,"d",(function(){return T})),r.d(t,"e",(function(){return R})),r.d(t,"g",(function(){return P})),r.d(t,"f",(function(){return A}));var n,i=r(5),a=r.n(i),o=r(26),c=r.n(o),s=r(6),u=r.n(s),l=r(9),f=r.n(l),d=r(72),p=r.n(d),g=r(13),v=r(124);function b(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 m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return m(m({},e),t)}),{}),i=t.reduce((function(e,t){return[].concat(c()(e),c()(Object.keys(t)))}),[]),a=D(i);return f()(0===a.length,"collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ".concat(a.join(", "),". Check your data stores for duplicates.")),n},h=y,O=y,S=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=[].concat(t);return"function"!=typeof i[0]&&(n=i.shift()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.reduce((function(e,r){return r(e,t)}),e)}},w=y,E=y,j=y,k=function(e){return e},_=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=j.apply(void 0,c()(t.map((function(e){return e.initialState||{}}))));return{initialState:n,controls:O.apply(void 0,c()(t.map((function(e){return e.controls||{}})))),actions:h.apply(void 0,c()(t.map((function(e){return e.actions||{}})))),reducer:S.apply(void 0,[n].concat(c()(t.map((function(e){return e.reducer||k}))))),resolvers:w.apply(void 0,c()(t.map((function(e){return e.resolvers||{}})))),selectors:E.apply(void 0,c()(t.map((function(e){return e.selectors||{}}))))}},I={getRegistry:function(){return{payload:{},type:"GET_REGISTRY"}},await:a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{payload:{value:t},type:"AWAIT"});case 1:case"end":return e.stop()}}),e)}))},x=(n={},u()(n,"GET_REGISTRY",Object(v.a)((function(e){return function(){return e}}))),u()(n,"AWAIT",(function(e){return e.payload.value})),n),D=function(e){for(var t=[],r={},n=0;n<e.length;n++){var i=e[n];r[i]=r[i]>=1?r[i]+1:1,r[i]>1&&t.push(i)}return t},T={actions:I,controls:x,reducer:k},R=function(e){return function(t){return C(e(t))}},C=p()((function(e){return Object(g.mapValues)(e,(function(e,t){return function(){var r=e.apply(void 0,arguments);return f()(void 0!==r,"".concat(t,"(...) is not resolved")),r}}))}));function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.negate,n=void 0!==r&&r,i=Object(v.b)((function(t){return function(r){var i=!n,a=!!n;try{for(var o=arguments.length,c=new Array(o>1?o-1:0),s=1;s<o;s++)c[s-1]=arguments[s];return e.apply(void 0,[t,r].concat(c)),i}catch(e){return a}}})),a=Object(v.b)((function(t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e.apply(void 0,[t,r].concat(i))}}));return{safeSelector:i,dangerousSelector:a}}function A(e,t){return f()("function