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

14 lines
32 KiB
JavaScript
Raw Normal View History

2023-12-07 09:44:11 +01:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[12],{1:function(r,t){r.exports=googlesitekit.i18n},102:function(r,t,e){"use strict";(function(r){e(50),e(52)}).call(this,e(26))},1028:function(r,t,e){"use strict";e.r(t);var n=e(4),a=e.n(n),o=e(58),i=e(96),c=e(6),u=e.n(c),s=e(5),f=e.n(s),l=e(10),d=e.n(l),p=e(15),v=e(28);function g(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function b(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?g(Object(e),!0).forEach((function(t){u()(r,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):g(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}var h={resetInViewHook:f.a.mark((function r(){var t,e;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.a.commonActions.getRegistry();case 2:return t=r.sent,e=t.select(v.b).getValue("useInViewResetCount"),r.next=6,h.setValue("useInViewResetCount",e+1);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})),setValues:function(r){return d()(Object(p.isPlainObject)(r),"values must be an object."),{payload:{values:r},type:"SET_VALUES"}},setValue:function(r,t){return d()(r,"key is required."),{payload:{key:r,value:t},type:"SET_VALUE"}}},y={initialState:{useInViewResetCount:0},actions:h,controls:{},reducer:function(r,t){var e=t.type,n=t.payload;switch(e){case"SET_VALUES":var a=n.values;return b(b({},r),a);case"SET_VALUE":var o=n.key,i=n.value;return b(b({},r),{},u()({},o,i));default:return r}},resolvers:{},selectors:{getValue:function(r,t){return r[t]},getInViewResetHook:function(r){return r.useInViewResetCount}}},m=a.a.combineStores(a.a.commonStore,y,Object(i.a)(v.b),Object(o.b)(v.b));m.initialState,m.actions,m.controls,m.reducer,m.resolvers,m.selectors;a.a.registerStore(v.b,m)},103:function(r,t,e){"use strict";(function(r){e.d(t,"b",(function(){return o})),e.d(t,"a",(function(){return i}));var n=e(206),a=e(86),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var o=e.invertColor,i=void 0!==o&&o;return Object(n.a)(r.createElement(a.a,{direction:t>0?"up":"down",invertColor:i}))},i=function(r,t){return r>0&&t>0?r/t-1:r>0?1:t>0?-1:0}}).call(this,e(2))},104:function(r,t,e){"use strict";(function(r){e.d(t,"a",(function(){return l}));var n=e(6),a=e.n(n),o=e(15),i=e(105),c=e(106);function u(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function s(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?u(Object(e),!0).forEach((function(t){a()(r,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}var f={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,a=s(s({},f),t);a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,""));var u=Object(i.a)(a,e),l=Object(c.a)(a,e,u,n),d={},p=function(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];var n=JSON.stringify(t);d[n]||(d[n]=Object(o.once)(l)),d[n].apply(d,t)};return{enableTracking:function(){a.trackingEnabled=!0},disableTracking:function(){a.trackingEnabled=!1},initializeSnippet:u,isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:l,trackEventOnce:p}}}).call(this,e(26))},105:function(r,t,e){"use strict";(function(r){e.d(t,"a",(funct
/* translators: %s: number of days */
Object(d._n)("Last %s day","Last %s days",r,"google-site-kit"),r)};return{"last-7-days":{slug:"last-7-days",label:r(7),days:7},"last-14-days":{slug:"last-14-days",label:r(14),days:14},"last-28-days":{slug:"last-28-days",label:r(28),days:28},"last-90-days":{slug:"last-90-days",label:r(90),days:90}}}},64:function(r,t,e){"use strict";e.d(t,"b",(function(){return a})),e.d(t,"a",(function(){return o})),e.d(t,"c",(function(){return i})),e.d(t,"d",(function(){return c}));var n=e(110);function a(r){try{return new URL(r).pathname}catch(r){}return null}function o(r,t){try{return new URL(t,r).href}catch(r){}return("string"==typeof r?r:"")+("string"==typeof t?t:"")}function i(r){return"string"!=typeof r?r:r.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function c(r,t){if(!Object(n.a)(r))return r;if(r.length<=t)return r;var e=new URL(r),a=r.replace(e.origin,"");if(a.length<t)return a;var o=a.length-Math.floor(t)+1;return"…"+a.substr(o)}},73:function(r,t,e){"use strict";(function(r){e.d(t,"a",(function(){return E})),e.d(t,"d",(function(){return k})),e.d(t,"e",(function(){return _})),e.d(t,"c",(function(){return D})),e.d(t,"b",(function(){return x}));var n=e(17),a=e.n(n),o=e(34),i=e.n(o),c=e(6),u=e.n(c),s=e(25),f=e.n(s),l=e(15),d=e(76),p=e.n(d),v=e(1);function g(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function b(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?g(Object(e),!0).forEach((function(t){u()(r,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):g(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}var h=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=O(r,t),n=e.formatUnit,a=e.formatDecimal;try{return n()}catch(r){return a()}},y=function(r){var t=m(r),e=t.hours,n=t.minutes,a=t.seconds;return a=("0"+a).slice(-2),n=("0"+n).slice(-2),"00"===(e=("0"+e).slice(-2))?"".concat(n,":").concat(a):"".concat(e,":").concat(n,":").concat(a)},m=function(r){return r=parseInt(r,10),Number.isNaN(r)&&(r=0),{hours:Math.floor(r/60/60),minutes:Math.floor(r/60%60),seconds:Math.floor(r%60)}},O=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=m(r),n=e.hours,a=e.minutes,o=e.seconds;return{hours:n,minutes:a,seconds:o,formatUnit:function(){var e=t.unitDisplay,i=b(b({unitDisplay:void 0===e?"short":e},f()(t,["unitDisplay"])),{},{style:"unit"});return 0===r?_(o,b(b({},i),{},{unit:"second"})):Object(v.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(v._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?_(o,b(b({},i),{},{unit:"second"})):"",a?_(a,b(b({},i),{},{unit:"minute"})):"",n?_(n,b(b({},i),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(v.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(v.__)("%ds","google-site-kit"),o);if(0===r)return t;var e=Object(v.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(v.__)("%dm","google-site-kit"),a),i=Object(v.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
Object(v.__)("%dh","google-site-kit"),n);return Object(v.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(v._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",a?e:"",n?i:"").trim()}}},w=function(r){return 1e6<=r?Math.round(r/1e5)/10:1e4<=r?Math.round(r/1e3):1e3<=r?Math.round(r/100)/10:r},j=function(r){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=r?Object(v.sprintf)(// translators: %s: an abbreviated number in millions.
Object(v.__)("%sM","google-site-kit"),_(w(r),r%10==0?{}:t)):1e4<=r?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(v.__)("%sK","google-site-kit"),_(w(r))):1e3<=r?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(v.__)("%sK","google-site-kit"),_(w(r),r%10==0?{}:t)):_(r,{signDisplay:"never",maximumFractionDigits:1})};function E(r){var t={};return"%"===r?t={style:"percent",maximumFractionDigits:2}:"s"===r?t={style:"duration",unitDisplay:"narrow"}:r&&"string"==typeof r?t={style:"currency",currency:r}:Object(l.isPlainObject)(r)&&(t=b({},r)),t}function k(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=Object(l.isFinite)(r)?r:Number(r),Object(l.isFinite)(r)||(console.warn("Invalid number",r,i()(r)),r=0);var e=E(t),n=e.style,a=void 0===n?"metric":n;return"metric"===a?j(r):"duration"===a?h(r,e):"durationISO"===a?y(r):_(r,e)}var S=p()(console.warn),_=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.locale,n=void 0===e?x():e,o=f()(t,["locale"]);try{return new Intl.NumberFormat(n,o).format(r)}catch(t){S("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(o)," ).format( ").concat(i()(r)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},l=0,d=Object.entries(o);l<d.length;l++){var p=a()(d[l],2),v=p[0],g=p[1];c[v]&&g===c[v]||(u.includes(v)||(s[v]=g))}try{return new Intl.NumberFormat(n,s).format(r)}catch(t){return new Intl.NumberFormat(n).format(r)}},D=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.locale,n=void 0===e?x():e,a=t.style,o=void 0===a?"long":a,i=t.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:o,type:c});return u.format(r)}
/* translators: used between list items, there is a space after the comma. */var s=Object(v.__)(", ","google-site-kit");return r.join(s)},x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,e=Object(l.get)(t,["_googlesitekitLegacyData","locale"]);if(e){var n=e.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,e(26))},75:function(r,t,e){"use strict";e.d(t,"a",(function(){return i})),e.d(t,"b",(function(){return c}));var n=e(34),a=e.n(n),o=e(85),i=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:o.a.sanitize(r,t)}};function c(r){var t,e="object"===a()(r)?r.toString():r;return null==e||null===(t=e.replace)||void 0===t?void 0:t.call(e,/\/+$/,"")}},8:function(r,t,e){"use strict";e.d(t,"A",(function(){return a.b})),e.d(t,"B",(function(){return a.c})),e.d(t,"x",(function(){return o.a})),e.d(t,"C",(function(){return o.b})),e.d(t,"z",(function(){return f})),e.d(t,"h",(function(){return l.a})),e.d(t,"v",(function(){return l.d})),e.d(t,"w",(function(){return l.e})),e.d(t,"s",(function(){return l.c})),e.d(t,"m",(function(){return l.b})),e.d(t,"t",(function(){return g})),e.d(t,"f",(function(){return b})),e.d(t,"b",(function(){return h.b})),e.d(t,"a",(function(){return h.a})),e.d(t,"c",(function(){return h.e})),e.d(t,"k",(function(){return h.g})),e.d(t,"n",(function(){return h.h})),e.d(t,"i",(function(){return h.f})),e.d(t,"y",(function(){return h.k})),e.d(t,"j",(function(){return y.b})),e.d(t,"e",(function(){return y.a})),e.d(t,"p",(function(){return m.b})),e.d(t,"l",(function(){return m.a})),e.d(t,"u",(function(){return m.c})),e.d(t,"r",(function(){return O})),e.d(t,"q",(function(){return w})),e.d(t,"o",(function(){return j})),e.d(t,"d",(function(){return E})),e.d(t,"D",(function(){return k})),e.d(t,"g",(function(){return S}));var n=e(15),a=e(33),o=e(75),i=e(34),c=e.n(i),u=e(98),s=e.n(u),f=function(r){return s()(JSON.stringify(function r(t){var e={};return Object.keys(t).sort().forEach((function(n){var a=t[n];a&&"object"===c()(a)&&!Array.isArray(a)&&(a=r(a)),e[n]=a})),e}(r)))};e(102);var l=e(73);function d(r){return r.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function p(r){return"<p>".concat(r.replace(/\n{2,}/g,"</p><p>"),"</p>")}function v(r){return r.replace(/\n/gi,"<br>")}function g(r){for(var t=r,e=0,n=[d,p,v];e<n.length;e++){t=(0,n[e])(t)}return t}var b=function(r){return r=parseFloat(r),isNaN(r)||0===r?[0,0,0,0]:[Math.floor(r/60/60),Math.floor(r/60%60),Math.floor(r%60),Math.floor(1e3*r)-1e3*Math.floor(r)]},h=e(63),y=e(103),m=e(64);function O(r){var t=parseFloat(r)||0;return!!Number.isInteger(t)&&t>0}function w(r){if("number"==typeof r)return!0;var t=(r||"").toString();return!!t&&!isNaN(t)}var j=function(r){switch(r){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 E(r,t){var e=function(r){return"0"===r||0===r};if(e(r)&&e(t))return 0;if(e(r)||Number.isNaN(r))return null;var n=(t-r)/r;return Number.isNaN(n)||!Number.isFinite(n)?null:n}var k=function(r){try{return JSON.parse(r)&&!!r}catch(r){return!1}},S=function(r){if(!r)return"";var t=r.replace(/&#(\d+);/g,(function(r,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(n.unescape)(t)}},85:function(r,t,e){"use strict";(function(r){e.d(t,"a",(function(){return a}));var n=e(136),a=e.n(n)()(r)}).call(this,e(26))},86:function(r,t,e){"use strict";(function(r){var n=e(0),a=e.n(n),o=e(12),i=e.n(o);function ChangeArrow(t){var e=t.direction,n=t.invertColor,a=t.width,o=t.height;return r.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(e),{"googlesitekit-change-arrow--inverted-color":n}),width:a,height:o,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.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.