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

14 lines
36 KiB
JavaScript
Raw Normal View History

2024-04-17 11:32:24 +02:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[12],{100:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return o}));var n=e(60),a=e(35),i=e(51);function o(r,e){var o,u=Object(n.a)(e),c=r.activeModules,s=r.referenceSiteURL,f=r.userIDHash,l=r.userRoles,d=void 0===l?[]:l,g=r.isAuthenticated,p=r.pluginVersion;return function(){var e=t.document;if(void 0===o&&(o=!!e.querySelector("script[".concat(a.b,"]"))),!o){o=!0;var n=(null==d?void 0:d.length)?d.join(","):"";u("js",new Date),u("config",r.trackingID,{groups:"site_kit",send_page_view:r.isSiteKitScreen,dimension1:s,dimension2:n,dimension3:f,dimension4:p||"",dimension5:Array.from(i.a).join(","),dimension6:c.join(","),dimension7:g?"1":"0"}),u("config",r.trackingID_GA4,{groups:"site_kit",send_page_view:r.isSiteKitScreen,domain:s,plugin_version:p||"",enabled_features:Array.from(i.a).join(","),active_modules:c.join(","),authenticated:g?"1":"0",user_properties:{user_roles:n,user_identifier:f}});var l=e.createElement("script");return l.setAttribute(a.b,""),l.async=!0,l.src="https://www.googletagmanager.com/gtag/js?id=".concat(r.trackingID_GA4,"&l=").concat(a.a),e.head.appendChild(l),{scriptTagSrc:"https://www.googletagmanager.com/gtag/js?id=".concat(r.trackingID_GA4,"&l=").concat(a.a)}}}}}).call(this,e(24))},101:function(t,r,e){"use strict";e.d(r,"a",(function(){return d}));var n=e(5),a=e.n(n),i=e(6),o=e.n(i),u=e(17),c=e.n(u),s=e(60);function f(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function l(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?f(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function d(t,r,e,n){var i=Object(s.a)(r);return function(){var r=c()(a.a.mark((function r(o,u,c,s){var f;return a.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.trackingEnabled){r.next=3;break}return r.abrupt("return");case 3:return e(),f={send_to:"site_kit",event_category:o,event_label:c,value:s},r.abrupt("return",new Promise((function(t){var r,e,a=setTimeout((function(){n.console.warn('Tracking event "'.concat(u,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3),c=function(){clearTimeout(a),t()};i("event",u,l(l({},f),{},{event_callback:c})),(null===(r=n._gaUserPrefs)||void 0===r||null===(e=r.ioo)||void 0===e?void 0:e.call(r))&&c()})));case 6:case"end":return r.stop()}}),r)})));return function(t,e,n,a){return r.apply(this,arguments)}}()}},1029:function(t,r,e){"use strict";e.r(r);var n=e(4),a=e.n(n),i=e(65),o=e(113),u=e(6),c=e.n(u),s=e(5),f=e.n(s),l=e(11),d=e.n(l),g=e(13),p=e(26),v=e(7);function b(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function m(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?b(Object(e),!0).forEach((function(r){c()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):b(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var h={resetInViewHook:f.a.mark((function t(){var r,e;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.a.commonActions.getRegistry();case 2:return r=t.sent,e=r.select(p.b).getValue("useInViewResetCount"),t.next=6,h.setValue("useInViewResetCount",e+1);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})),setIsOnline:function(t){return d()(Object(g.isBoolean)(t),"value must be boolean."),h.setValue("isOnline",t)},setOverlayNotificationToShow:f.a.mark((function t(r){var e;return f.a.wrap((function
/* translators: %s: number of days */
Object(d._n)("Last %s day","Last %s days",t,"google-site-kit"),t)};return{"last-7-days":{slug:"last-7-days",label:t(7),days:7},"last-14-days":{slug:"last-14-days",label:t(14),days:14},"last-28-days":{slug:"last-28-days",label:t(28),days:28},"last-90-days":{slug:"last-90-days",label:t(90),days:90}}}},65:function(t,r,e){"use strict";e.d(r,"a",(function(){return b})),e.d(r,"b",(function(){return m}));var n=e(6),a=e.n(n),i=e(30),o=e.n(i),u=e(142),c=e(11),s=e.n(c),f=e(88),l=e.n(f),d=e(8);function g(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?g(Object(e),!0).forEach((function(r){a()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):g(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function v(t,r){if(r&&Array.isArray(r)){var e=r.map((function(t){return"object"===o()(t)?Object(d.A)(t):t}));return"".concat(t,"::").concat(l()(JSON.stringify(e)))}return t}var b={receiveError:function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return s()(t,"error is required."),s()(r,"baseName is required."),s()(e&&Array.isArray(e),"args must be an array."),{type:"RECEIVE_ERROR",payload:{error:t,baseName:r,args:e}}},clearError:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return s()(t,"baseName is required."),s()(r&&Array.isArray(r),"args must be an array."),{type:"CLEAR_ERROR",payload:{baseName:t,args:r}}},clearErrors:function(t){return{type:"CLEAR_ERRORS",payload:{baseName:t}}}};function m(t){s()(t,"storeName must be defined.");var r={getErrorForSelector:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return s()(e,"selectorName is required."),r.getError(t,e,n)},getErrorForAction:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return s()(e,"actionName is required."),r.getError(t,e,n)},getError:function(t,r,e){var n=t.errors;return s()(r,"baseName is required."),n[v(r,e)]},getErrors:function(t){var r=new Set(Object.values(t.errors));return Array.from(r)},getMetaDataForError:function(t,r){var e=Object.keys(t.errors).find((function(e){return t.errors[e]===r}));return e?{baseName:e.substring(0,e.indexOf("::")),args:t.errorArgs[e]}:null},getSelectorDataForError:Object(u.b)((function(r){return function(e,n){var a=r(t).getMetaDataForError(n);if(a){var i=a.baseName,o=a.args;if(!!r(t)[i])return{storeName:t,name:i,args:o}}return null}})),hasErrors:function(t){return r.getErrors(t).length>0}};return{initialState:{errors:{},errorArgs:{}},actions:b,controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"RECEIVE_ERROR":var i=n.baseName,o=n.args,u=n.error,c=v(i,o);return p(p({},t),{},{errors:p(p({},t.errors||{}),{},a()({},c,u)),errorArgs:p(p({},t.errorArgs||{}),{},a()({},c,o))});case"CLEAR_ERROR":var s=n.baseName,f=n.args,l=p({},t),d=v(s,f);return l.errors=p({},t.errors||{}),l.errorArgs=p({},t.errorArgs||{}),delete l.errors[d],delete l.errorArgs[d],l;case"CLEAR_ERRORS":var g=n.baseName,b=p({},t);if(g)for(var m in b.errors=p({},t.errors||{}),b.errorArgs=p({},t.errorArgs||{}),b.errors)(m===g||m.startsWith("".concat(g,"::")))&&(delete b.errors[m],delete b.errorArgs[m]);else b.errors={},b.errorArgs={};return b;default:return t}},resolvers:{},selectors:r}}},7:function(t,r,e){"use strict";e.d(r,"a",(function(){return n})),e.d(r,"b",(function(){return a})),e.d(r,"d",(function(){return i})),e.d(r,"c",(function(){return o})),e.d(r,"y",(function(){return u})),e.d(r,"D",(function(){return c})),e.d(r,"F",(function(){return s})),e.d(r,"B",(function(){return f})),e.d(r,"C",(function(){return l})),e.d(r,"A",(function(){return d})),e.d(r,"z",(function(){return g})),e.d(r,"E",(function(){return p})),e.d(r,"e",(function(){return v})),e.d(r,"f",(function(){return b})),e.d(r,"
/* 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?E(i,b(b({},o),{},{unit:"second"})):"",a?E(a,b(b({},o),{},{unit:"minute"})):"",n?E(n,b(b({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var r=Object(p.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(p.__)("%ds","google-site-kit"),i);if(0===t)return r;var e=Object(p.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(p.__)("%dm","google-site-kit"),a),o=Object(p.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
Object(p.__)("%dh","google-site-kit"),n);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?r:"",a?e:"",n?o:"").trim()}}},w=function(t){return 1e6<=t?Math.round(t/1e5)/10:1e4<=t?Math.round(t/1e3):1e3<=t?Math.round(t/100)/10:t},k=function(t){var r={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=t?Object(p.sprintf)(// translators: %s: an abbreviated number in millions.
Object(p.__)("%sM","google-site-kit"),E(w(t),t%10==0?{}:r)):1e4<=t?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(p.__)("%sK","google-site-kit"),E(w(t))):1e3<=t?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(p.__)("%sK","google-site-kit"),E(w(t),t%10==0?{}:r)):E(t,{signDisplay:"never",maximumFractionDigits:1})};function j(t){var r={};return"%"===t?r={style:"percent",maximumFractionDigits:2}:"s"===t?r={style:"duration",unitDisplay:"narrow"}:t&&"string"==typeof t?r={style:"currency",currency:t}:Object(l.isPlainObject)(t)&&(r=b({},t)),r}function _(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(l.isFinite)(t)?t:Number(t),Object(l.isFinite)(t)||(console.warn("Invalid number",t,o()(t)),t=0);var e=j(r),n=e.style,a=void 0===n?"metric":n;return"metric"===a?k(t):"duration"===a?m(t,e):"durationISO"===a?h(t):E(t,e)}var S=g()(console.warn),E=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?N():e,i=f()(r,["locale"]);try{return new Intl.NumberFormat(n,i).format(t)}catch(r){S("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(t)," )"),r.message)}for(var u={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},c=["signDisplay","compactDisplay"],s={},l=0,d=Object.entries(i);l<d.length;l++){var g=a()(d[l],2),p=g[0],v=g[1];u[p]&&v===u[p]||(c.includes(p)||(s[p]=v))}try{return new Intl.NumberFormat(n,s).format(t)}catch(r){return new Intl.NumberFormat(n).format(t)}},A=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?N():e,a=r.style,i=void 0===a?"long":a,o=r.type,u=void 0===o?"conjunction":o;if(Intl.ListFormat){var c=new Intl.ListFormat(n,{style:i,type:u});return c.format(t)}
/* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return t.join(s)},N=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,e=Object(l.get)(r,["_googlesitekitLegacyData","locale"]);if(e){var n=e.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return r.navigator.language}}).call(this,e(24))},72:function(t,r,e){"use strict";e.d(r,"a",(function(){return o})),e.d(r,"b",(function(){return u}));var n=e(30),a=e.n(n),i=e(78),o=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(t,r)}};function u(t){var r,e="object"===a()(t)?t.toString():t;return null==e||null===(r=e.replace)||void 0===r?void 0:r.call(e,/\/+$/,"")}},76:function(t,r,e){"use strict";e.d(r,"b",(function(){return a})),e.d(r,"a",(function(){return i})),e.d(r,"c",(function(){return o})),e.d(r,"d",(function(){return u}));var n=e(105);function a(t){try{return new URL(t).pathname}catch(t){}return null}function i(t,r){try{return new URL(r,t).href}catch(t){}return("string"==typeof t?t:"")+("string"==typeof r?r:"")}function o(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function u(t,r){if(!Object(n.a)(t))return t;if(t.length<=r)return t;var e=new URL(t),a=t.replace(e.origin,"");if(a.length<r)return a;var i=a.length-Math.floor(r)+1;return"…"+a.substr(i)}},78:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a}));var n=e(141),a=e.n(n)()(t)}).call(this,e(24))},79:function(t,r,e){"use strict";(function(t){var n=e(0),a=e.n(n),i=e(12),o=e.n(i);function ChangeArrow(r){var e=r.direction,n=r.invertColor,a=r.width,i=r.height;return t.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(e),{"googlesitekit-change-arrow--inverted-color":n}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},r.a=ChangeArrow}).call(this,e(3))},8:function(t,r,e){"use strict";(function(t){e.d(r,"p",(function(){return v})),e.d(r,"d",(function(){return b})),e.d(r,"E",(function(){return m})),e.d(r,"h",(function(){return h}));var n=e(13),a=e(32);e.d(r,"B",(function(){return a.b})),e.d(r,"C",(function(){return a.c}));var i=e(72);e.d(r,"y",(function(){return i.a})),e.d(r,"D",(function(){return i.b}));var o=e(91);e.d(r,"A",(function(){return o.a}));e(92);var u=e(70);e.d(r,"i",(function(){return u.a})),e.d(r,"n",(function(){return u.b})),e.d(r,"t",(function(){return u.c})),e.d(r,"w",(function(){return u.d})),e.d(r,"x",(function(){return u.e}));var c=e(93);e.d(r,"u",(function(){return c.a}));var s=e(94);e.d(r,"f",(function(){return s.a})),e.d(r,"g",(function(){return s.b}));var f=e(61);e.d(r,"a",(function(){return f.a})),e.d(r,"b",(function(){return f.b})),e.d(r,"c",(function(){return f.e})),e.d(r,"j",(function(){return f.f})),e.d(r,"l",(function(){return f.g})),e.d(r,"o",(function(){return f.h})),e.d(r,"z",(function(){return f.k}));var l=e(95);e.d(r,"e",(function(){return l.a})),e.d(r,"k",(function(){return l.b}));var d=e(76);e.d(r,"m",(function(){return d.a})),e.d(r,"q",(function(){return d.b})),e.d(r,"v",(function(){return d.c}));var g=e(96);e.d(r,"s",(function(){return g.a}));var p=e(97);e.d(r,"r",(function(){return p.a})),t._gsktag=a.b;var v=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}};function b(t,r){var e=function(t){return"0"===t||0===t};if(e(t)&&e(r))return 0;if(e(t)||Number.isNaN(t))return null;var n=(r-t)/t;return Number.isNaN(n)||!Number.isFinite(n)?null:n}var m=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},h=function(t){if(!t)ret