@rankingcoach/vanguard 1.14.11 → 1.14.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-BenchmarkGauge.js +1 -1
- package/dist/index-BenchmarkGaugeMarker.js +1 -1
- package/dist/index-DateInput.js +4 -4
- package/dist/index-DayCell.js +2 -2
- package/dist/index-InputRangeField.js +1 -1
- package/dist/index-Month.js +3 -3
- package/dist/index-StyledSVG2.js +1 -1
- package/dist/index-_virtual19.js +5 -2
- package/dist/index-_virtual20.js +2 -5
- package/dist/index-_virtual21.js +2 -2
- package/dist/index-_virtual22.js +2 -2
- package/dist/index-_virtual23.js +2 -3
- package/dist/index-_virtual24.js +2 -2
- package/dist/index-_virtual25.js +3 -2
- package/dist/index-_virtual63.js +2 -2
- package/dist/index-_virtual64.js +2 -2
- package/dist/index-_virtual66.js +2 -2
- package/dist/index-_virtual67.js +2 -4
- package/dist/index-_virtual68.js +4 -2
- package/dist/index-_virtual69.js +2 -4
- package/dist/index-_virtual70.js +4 -2
- package/dist/index-_virtual71.js +2 -4
- package/dist/index-_virtual72.js +1 -1
- package/dist/index-_virtual73.js +1 -1
- package/dist/index-_virtual74.js +4 -2
- package/dist/index-_virtual75.js +2 -2
- package/dist/index-_virtual76.js +2 -2
- package/dist/index-_virtual77.js +2 -4
- package/dist/index-_virtual78.js +1 -1
- package/dist/index-_virtual79.js +1 -1
- package/dist/index-_virtual80.js +1 -1
- package/dist/index-_virtual81.js +1 -1
- package/dist/index-_virtual82.js +1 -1
- package/dist/index-_virtual83.js +1 -1
- package/dist/index-_virtual84.js +1 -1
- package/dist/index-_virtual85.js +4 -2
- package/dist/index-accessibility.js +1 -1
- package/dist/index-applyInternationalSeparatorStyle.js +1 -1
- package/dist/index-cjs.js +1 -1
- package/dist/index-colorManipulator3.js +2 -2
- package/dist/index-constants.js +1 -1
- package/dist/index-constants2.js +2 -8
- package/dist/index-constants3.js +8 -2
- package/dist/index-createExtensionPattern.js +1 -1
- package/dist/index-createStyled2.js +6 -6
- package/dist/index-dist4.js +1 -1
- package/dist/index-dist5.js +1 -1
- package/dist/index-exenv.js +1 -1
- package/dist/index-extractCountryCallingCode.js +1 -1
- package/dist/index-extractPhoneContext.js +1 -1
- package/dist/index-http.store.js +1 -1
- package/dist/index-isViablePhoneNumber.js +1 -1
- package/dist/index-keycode.js +1 -1
- package/dist/index-lib2.js +1 -1
- package/dist/index-lib3.js +1 -1
- package/dist/index-lib4.js +1 -1
- package/dist/index-lib5.js +1 -1
- package/dist/index-media-items-validations.js +1 -1
- package/dist/index-mpd-parser.es.js +1 -1
- package/dist/index-parse2.js +1 -1
- package/dist/index-stripIddPrefix.js +1 -1
- package/dist/index-style-to-object.js +1 -1
- package/dist/index-use-benchmark-gauge-render-state.js +1 -1
- package/dist/index-useThemeWithoutDefault3.js +1 -1
- package/dist/index-utils2.js +67 -47
- package/dist/index-utils3.js +47 -67
- package/dist/types/core/FileSelect/validation-helpers/media-items-validations.d.ts +2 -2
- package/dist/vanguard-asset-analysis.json +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { useState as z } from "react";
|
|
|
4
4
|
import e from "./index-BenchmarkGauge.module.scss.js";
|
|
5
5
|
import { BenchmarkGaugeMarker as F } from "./index-BenchmarkGaugeMarker.js";
|
|
6
6
|
import { useBenchmarkGaugeRenderState as U } from "./index-use-benchmark-gauge-render-state.js";
|
|
7
|
-
import { resolveMarkerColor as W } from "./index-
|
|
7
|
+
import { resolveMarkerColor as W } from "./index-utils3.js";
|
|
8
8
|
import { Render as c } from "./index-Render.js";
|
|
9
9
|
import { Text as x, TextTypes as y } from "./index-Text.js";
|
|
10
10
|
const _ = (m) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as N, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { classNames as m } from "./index-classNames.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { valueToPercent as y, markerPosition as d } from "./index-
|
|
4
|
+
import { valueToPercent as y, markerPosition as d } from "./index-utils3.js";
|
|
5
5
|
import t from "./index-BenchmarkGaugeMarker.module.scss.js";
|
|
6
6
|
import { BenchmarkGaugePin as A } from "./index-BenchmarkGaugePin.js";
|
|
7
7
|
import { Render as M } from "./index-Render.js";
|
package/dist/index-DateInput.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { __exports as p } from "./index-
|
|
1
|
+
import { __exports as p } from "./index-_virtual71.js";
|
|
2
2
|
import k from "react";
|
|
3
3
|
import { __require as K } from "./index-prop-types.js";
|
|
4
4
|
import { __require as L } from "./index-classnames2.js";
|
|
5
|
-
import U from "./index-
|
|
6
|
-
import z from "./index-
|
|
7
|
-
import A from "./index-
|
|
5
|
+
import U from "./index-_virtual72.js";
|
|
6
|
+
import z from "./index-_virtual73.js";
|
|
7
|
+
import A from "./index-_virtual74.js";
|
|
8
8
|
import V from "./index-_virtual55.js";
|
|
9
9
|
var q;
|
|
10
10
|
function te() {
|
package/dist/index-DayCell.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { __exports as g } from "./index-
|
|
1
|
+
import { __exports as g } from "./index-_virtual67.js";
|
|
2
2
|
import ae from "react";
|
|
3
3
|
import { __require as oe } from "./index-prop-types.js";
|
|
4
4
|
import { __require as se } from "./index-classnames2.js";
|
|
5
5
|
import ue from "./index-_virtual62.js";
|
|
6
6
|
import ie from "./index-_virtual41.js";
|
|
7
|
-
import le from "./index-
|
|
7
|
+
import le from "./index-_virtual68.js";
|
|
8
8
|
import fe from "./index-_virtual51.js";
|
|
9
9
|
import de from "./index-_virtual55.js";
|
|
10
10
|
import ce from "./index-_virtual61.js";
|
package/dist/index-Month.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { __exports as y } from "./index-
|
|
1
|
+
import { __exports as y } from "./index-_virtual69.js";
|
|
2
2
|
import de from "react";
|
|
3
3
|
import { __require as me } from "./index-prop-types.js";
|
|
4
4
|
import { __require as he } from "./index-DayCell.js";
|
|
5
5
|
import ye from "./index-_virtual54.js";
|
|
6
6
|
import ve from "./index-_virtual37.js";
|
|
7
|
-
import Oe from "./index-
|
|
8
|
-
import _e from "./index-
|
|
7
|
+
import Oe from "./index-_virtual70.js";
|
|
8
|
+
import _e from "./index-_virtual68.js";
|
|
9
9
|
import De from "./index-_virtual51.js";
|
|
10
10
|
import ge from "./index-_virtual41.js";
|
|
11
11
|
import be from "./index-_virtual52.js";
|
package/dist/index-StyledSVG2.js
CHANGED
|
@@ -5,7 +5,7 @@ import { STATUS as t } from "./index-config.js";
|
|
|
5
5
|
import J from "./index-cache.js";
|
|
6
6
|
import { randomString as K, request as Q, canUseDOM as L, isSupportedEnvironment as W, omit as X } from "./index-helpers.js";
|
|
7
7
|
import { usePrevious as V } from "./index-hooks.js";
|
|
8
|
-
import { getNode as Z } from "./index-
|
|
8
|
+
import { getNode as Z } from "./index-utils2.js";
|
|
9
9
|
let u;
|
|
10
10
|
function _(s) {
|
|
11
11
|
const {
|
package/dist/index-_virtual19.js
CHANGED
package/dist/index-_virtual20.js
CHANGED
package/dist/index-_virtual21.js
CHANGED
package/dist/index-_virtual22.js
CHANGED
package/dist/index-_virtual23.js
CHANGED
package/dist/index-_virtual24.js
CHANGED
package/dist/index-_virtual25.js
CHANGED
package/dist/index-_virtual63.js
CHANGED
package/dist/index-_virtual64.js
CHANGED
package/dist/index-_virtual66.js
CHANGED
package/dist/index-_virtual67.js
CHANGED
package/dist/index-_virtual68.js
CHANGED
package/dist/index-_virtual69.js
CHANGED
package/dist/index-_virtual70.js
CHANGED
package/dist/index-_virtual71.js
CHANGED
package/dist/index-_virtual72.js
CHANGED
package/dist/index-_virtual73.js
CHANGED
package/dist/index-_virtual74.js
CHANGED
package/dist/index-_virtual75.js
CHANGED
package/dist/index-_virtual76.js
CHANGED
package/dist/index-_virtual77.js
CHANGED
package/dist/index-_virtual78.js
CHANGED
package/dist/index-_virtual79.js
CHANGED
package/dist/index-_virtual80.js
CHANGED
package/dist/index-_virtual81.js
CHANGED
package/dist/index-_virtual82.js
CHANGED
package/dist/index-_virtual83.js
CHANGED
package/dist/index-_virtual84.js
CHANGED
package/dist/index-_virtual85.js
CHANGED
package/dist/index-cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exports as a } from "./index-colorManipulator4.js";
|
|
2
2
|
import { __require as k } from "./index-interopRequireDefault.js";
|
|
3
|
-
import A from "./index-
|
|
4
|
-
import z from "./index-
|
|
3
|
+
import A from "./index-_virtual84.js";
|
|
4
|
+
import z from "./index-_virtual85.js";
|
|
5
5
|
var C;
|
|
6
6
|
function F() {
|
|
7
7
|
if (C) return a;
|
package/dist/index-constants.js
CHANGED
package/dist/index-constants2.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var s = {};
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
A as MAX_LENGTH_FOR_NSN,
|
|
5
|
-
v as MIN_LENGTH_FOR_NSN,
|
|
6
|
-
T as PLUS_CHARS,
|
|
7
|
-
_ as VALID_DIGITS,
|
|
8
|
-
N as VALID_PUNCTUATION,
|
|
9
|
-
S as WHITESPACE
|
|
3
|
+
s as __exports
|
|
10
4
|
};
|
package/dist/index-constants3.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v = 2, A = 17, E = 3, _ = "0-90-9٠-٩۰-۹", F = "-‐-―−ー-", u = "//", a = "..", S = " ", r = "()()[]\\[\\]", c = "~⁓∼~", N = "".concat(F).concat(u).concat(a).concat(S).concat(r).concat(c), T = "++";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
E as MAX_LENGTH_COUNTRY_CODE,
|
|
4
|
+
A as MAX_LENGTH_FOR_NSN,
|
|
5
|
+
v as MIN_LENGTH_FOR_NSN,
|
|
6
|
+
T as PLUS_CHARS,
|
|
7
|
+
_ as VALID_DIGITS,
|
|
8
|
+
N as VALID_PUNCTUATION,
|
|
9
|
+
S as WHITESPACE
|
|
4
10
|
};
|
|
@@ -2,12 +2,12 @@ import { __exports as y } from "./index-createStyled3.js";
|
|
|
2
2
|
import { __require as ne } from "./index-interopRequireDefault.js";
|
|
3
3
|
import { __require as ie } from "./index-extends2.js";
|
|
4
4
|
import { __require as se } from "./index-objectWithoutPropertiesLoose2.js";
|
|
5
|
-
import ue from "./index-
|
|
6
|
-
import ae from "./index-
|
|
7
|
-
import le from "./index-
|
|
8
|
-
import fe from "./index-
|
|
9
|
-
import de from "./index-
|
|
10
|
-
import ce from "./index-
|
|
5
|
+
import ue from "./index-_virtual78.js";
|
|
6
|
+
import ae from "./index-_virtual79.js";
|
|
7
|
+
import le from "./index-_virtual80.js";
|
|
8
|
+
import fe from "./index-_virtual81.js";
|
|
9
|
+
import de from "./index-_virtual82.js";
|
|
10
|
+
import ce from "./index-_virtual83.js";
|
|
11
11
|
var W;
|
|
12
12
|
function $e() {
|
|
13
13
|
if (W) return y;
|
package/dist/index-dist4.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as a } from "./index-
|
|
1
|
+
import { __exports as a } from "./index-_virtual20.js";
|
|
2
2
|
import { __require as c } from "./index-DateRange2.js";
|
|
3
3
|
import { __require as l } from "./index-Calendar.js";
|
|
4
4
|
import { __require as o } from "./index-DateRangePicker2.js";
|
package/dist/index-dist5.js
CHANGED
package/dist/index-exenv.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import s from "./index-stripIddPrefix.js";
|
|
2
2
|
import M from "./index-extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js";
|
|
3
3
|
import u from "./index-metadata.js";
|
|
4
|
-
import { MAX_LENGTH_COUNTRY_CODE as I } from "./index-
|
|
4
|
+
import { MAX_LENGTH_COUNTRY_CODE as I } from "./index-constants3.js";
|
|
5
5
|
function p(r, o, f, i) {
|
|
6
6
|
if (!r)
|
|
7
7
|
return {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VALID_DIGITS as n } from "./index-
|
|
1
|
+
import { VALID_DIGITS as n } from "./index-constants3.js";
|
|
2
2
|
var v = "+", I = "[\\-\\.\\(\\)]?", R = "([" + n + "]|" + I + ")", i = "^\\" + v + R + "*[" + n + "]" + R + "*$", N = new RegExp(i, "g"), r = n, C = "[" + r + "]+((\\-)*[" + r + "])*", L = "a-zA-Z", f = "[" + L + "]+((\\-)*[" + r + "])*", E = "^(" + C + "\\.)*" + f + "\\.?$", O = new RegExp(E, "g"), l = "tel:", a = ";phone-context=", u = ";isub=";
|
|
3
3
|
function D(_) {
|
|
4
4
|
var t = _.indexOf(a);
|
package/dist/index-http.store.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicWidgetData as D } from "./index-public-widgets-data.store.js";
|
|
2
|
-
import H from "./index-
|
|
2
|
+
import H from "./index-_virtual19.js";
|
|
3
3
|
import { BaseStore as T } from "./index-base.store.js";
|
|
4
4
|
import { parseParams as l } from "./index-parse-params.js";
|
|
5
5
|
import { stores as q } from "./index-stores.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MIN_LENGTH_FOR_NSN as e, VALID_DIGITS as _, PLUS_CHARS as t, VALID_PUNCTUATION as E } from "./index-
|
|
1
|
+
import { MIN_LENGTH_FOR_NSN as e, VALID_DIGITS as _, PLUS_CHARS as t, VALID_PUNCTUATION as E } from "./index-constants3.js";
|
|
2
2
|
import r from "./index-createExtensionPattern.js";
|
|
3
3
|
var n = "[" + _ + "]{" + e + "}", I = "[" + t + "]{0,1}(?:[" + E + "]*[" + _ + "]){3,}[" + E + _ + "]*", P = new RegExp("^[" + t + "]{0,1}(?:[" + E + "]*[" + _ + "]){1,2}$", "i"), R = I + // Phone number extensions
|
|
4
4
|
"(?:" + r() + ")?", T = new RegExp(
|
package/dist/index-keycode.js
CHANGED
package/dist/index-lib2.js
CHANGED
package/dist/index-lib3.js
CHANGED
package/dist/index-lib4.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as v } from "./index-
|
|
1
|
+
import { __module as v } from "./index-_virtual24.js";
|
|
2
2
|
import { __require as O } from "./index-window2.js";
|
|
3
3
|
import { __require as j } from "./index-extends2.js";
|
|
4
4
|
import { __require as S } from "./index-is-function.js";
|
package/dist/index-lib5.js
CHANGED
|
@@ -4,7 +4,7 @@ var i;
|
|
|
4
4
|
})(i || (i = {}));
|
|
5
5
|
var t;
|
|
6
6
|
(function(e) {
|
|
7
|
-
e.WRONG_FILE_FORMAT = "All uploaded photos <b>must be %imageFormats% file format</b>.", e.RESOLUTION_TOO_SMALL = "The image <b>must be at least %imageSize%</b> tall
|
|
7
|
+
e.WRONG_FILE_FORMAT = "All uploaded photos <b>must be %imageFormats% file format</b>.", e.RESOLUTION_TOO_SMALL = "The image <b>must be at least %imageSize%</b> tall and wide.", e.RESOLUTION_TOO_LARGE = "The image <b>must be less than %imageSize%</b> tall and wide.", e.ASPECT_RATIO_NOT_IN_LIMITS = "The image aspect ratio <b>must be within the range of %min_aspect_ratio% to %max_aspect_ratio%</b>.", e.DUPLICATE = "Some of the media items you've uploaded are duplicates. To avoid repetition, these duplicates will not be included.";
|
|
8
8
|
})(t || (t = {}));
|
|
9
9
|
var a;
|
|
10
10
|
(function(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import C from "./index-resolve-url.js";
|
|
2
2
|
import K from "./index-window.js";
|
|
3
3
|
import X from "./index-decode-b64-to-uint8-array.js";
|
|
4
|
-
import { l as q } from "./index-
|
|
4
|
+
import { l as q } from "./index-_virtual25.js";
|
|
5
5
|
var w = function(e) {
|
|
6
6
|
return !!e && typeof e == "object";
|
|
7
7
|
}, S = function o() {
|
package/dist/index-parse2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MIN_LENGTH_FOR_NSN as h, MAX_LENGTH_FOR_NSN as T, PLUS_CHARS as d, VALID_DIGITS as g } from "./index-
|
|
1
|
+
import { MIN_LENGTH_FOR_NSN as h, MAX_LENGTH_FOR_NSN as T, PLUS_CHARS as d, VALID_DIGITS as g } from "./index-constants3.js";
|
|
2
2
|
import m from "./index-ParseError.js";
|
|
3
3
|
import O, { getCountryCallingCode as P } from "./index-metadata.js";
|
|
4
4
|
import v, { isViablePhoneNumberStart as s } from "./index-isViablePhoneNumber.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo as n } from "react";
|
|
2
|
-
import { valueToPercent as F, resolveLabels as H, fillClipInset as p } from "./index-
|
|
2
|
+
import { valueToPercent as F, resolveLabels as H, fillClipInset as p } from "./index-utils3.js";
|
|
3
3
|
const j = (h) => {
|
|
4
4
|
const {
|
|
5
5
|
min: d,
|
package/dist/index-utils2.js
CHANGED
|
@@ -1,50 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import v from "./index-esm4.js";
|
|
2
|
+
function w(i) {
|
|
3
|
+
const {
|
|
4
|
+
baseURL: c,
|
|
5
|
+
content: a,
|
|
6
|
+
description: s,
|
|
7
|
+
handleError: f,
|
|
8
|
+
hash: d,
|
|
9
|
+
preProcessor: h,
|
|
10
|
+
title: u,
|
|
11
|
+
uniquifyIDs: n = !1
|
|
12
|
+
} = i;
|
|
13
|
+
try {
|
|
14
|
+
const o = b(a, h), l = v(o, {
|
|
15
|
+
nodeOnly: !0
|
|
16
|
+
});
|
|
17
|
+
if (!l || !(l instanceof SVGSVGElement))
|
|
18
|
+
throw new Error("Could not convert the src to a DOM Node");
|
|
19
|
+
const r = p(l, {
|
|
20
|
+
baseURL: c,
|
|
21
|
+
hash: d,
|
|
22
|
+
uniquifyIDs: n
|
|
23
|
+
});
|
|
24
|
+
if (s) {
|
|
25
|
+
const e = r.querySelector("desc");
|
|
26
|
+
e != null && e.parentNode && e.parentNode.removeChild(e);
|
|
27
|
+
const t = document.createElementNS("http://www.w3.org/2000/svg", "desc");
|
|
28
|
+
t.innerHTML = s, r.prepend(t);
|
|
29
|
+
}
|
|
30
|
+
if (typeof u < "u") {
|
|
31
|
+
const e = r.querySelector("title");
|
|
32
|
+
if (e != null && e.parentNode && e.parentNode.removeChild(e), u) {
|
|
33
|
+
const t = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
34
|
+
t.innerHTML = u, r.prepend(t);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return r;
|
|
38
|
+
} catch (o) {
|
|
39
|
+
return f(o);
|
|
19
40
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
}
|
|
42
|
+
function b(i, c) {
|
|
43
|
+
return c ? c(i) : i;
|
|
44
|
+
}
|
|
45
|
+
function p(i, c) {
|
|
46
|
+
const {
|
|
47
|
+
baseURL: a = "",
|
|
48
|
+
hash: s,
|
|
49
|
+
uniquifyIDs: f
|
|
50
|
+
} = c, d = ["id", "href", "xlink:href", "xlink:role", "xlink:arcrole"], h = ["href", "xlink:href"], u = (n, o) => h.includes(n) && (o ? !o.includes("#") : !1);
|
|
51
|
+
return f && [...i.children].forEach((n) => {
|
|
52
|
+
var o;
|
|
53
|
+
if ((o = n.attributes) != null && o.length) {
|
|
54
|
+
const l = Object.values(n.attributes).map((r) => {
|
|
55
|
+
const e = r, t = /url\((.*?)\)/.exec(r.value);
|
|
56
|
+
return t != null && t[1] && (e.value = r.value.replace(t[0], `url(${a}${t[1]}__${s})`)), e;
|
|
57
|
+
});
|
|
58
|
+
d.forEach((r) => {
|
|
59
|
+
const e = l.find((t) => t.name === r);
|
|
60
|
+
e && !u(r, e.value) && (e.value = `${e.value}__${s}`);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return n.children.length ? p(n, c) : n;
|
|
64
|
+
}), i;
|
|
65
|
+
}
|
|
43
66
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
v as resolveLabels,
|
|
48
|
-
h as resolveMarkerColor,
|
|
49
|
-
d as valueToPercent
|
|
67
|
+
w as getNode,
|
|
68
|
+
b as processSVG,
|
|
69
|
+
p as updateSVGAttributes
|
|
50
70
|
};
|
package/dist/index-utils3.js
CHANGED
|
@@ -1,70 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const r = p(l, {
|
|
20
|
-
baseURL: c,
|
|
21
|
-
hash: d,
|
|
22
|
-
uniquifyIDs: n
|
|
23
|
-
});
|
|
24
|
-
if (s) {
|
|
25
|
-
const e = r.querySelector("desc");
|
|
26
|
-
e != null && e.parentNode && e.parentNode.removeChild(e);
|
|
27
|
-
const t = document.createElementNS("http://www.w3.org/2000/svg", "desc");
|
|
28
|
-
t.innerHTML = s, r.prepend(t);
|
|
29
|
-
}
|
|
30
|
-
if (typeof u < "u") {
|
|
31
|
-
const e = r.querySelector("title");
|
|
32
|
-
if (e != null && e.parentNode && e.parentNode.removeChild(e), u) {
|
|
33
|
-
const t = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
34
|
-
t.innerHTML = u, r.prepend(t);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return r;
|
|
38
|
-
} catch (o) {
|
|
39
|
-
return f(o);
|
|
1
|
+
const d = (e, t, n) => n <= t ? 0 : Math.max(0, Math.min(100, (e - t) / (n - t) * 100)), l = (e) => `calc(var(--benchmark-gauge-marker-inset, 20px) + ${e / 100} * (100% - 2 * var(--benchmark-gauge-marker-inset, 20px)))`, g = (e) => e >= 100 ? "0px" : `calc(${1 - e / 100} * (100% - 2 * var(--benchmark-gauge-marker-inset, 20px)))`, m = (e) => new Intl.NumberFormat("en", {
|
|
2
|
+
notation: "compact",
|
|
3
|
+
maximumSignificantDigits: 3
|
|
4
|
+
}).format(e), o = ["var(--e500)", "var(--a2900)", "var(--s400)"], h = ({
|
|
5
|
+
markerColor: e,
|
|
6
|
+
rankIndex: t,
|
|
7
|
+
rankCount: n,
|
|
8
|
+
colorByRank: c,
|
|
9
|
+
rankColors: r
|
|
10
|
+
}) => {
|
|
11
|
+
const u = "var(--n400)";
|
|
12
|
+
if (e) return e;
|
|
13
|
+
if (c) {
|
|
14
|
+
const a = r != null && r.length ? r : o;
|
|
15
|
+
if (!a.length)
|
|
16
|
+
return u;
|
|
17
|
+
const i = Math.round(t / Math.max(n - 1, 1) * (a.length - 1));
|
|
18
|
+
return a[Math.max(0, Math.min(i, a.length - 1))] ?? u;
|
|
40
19
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}), i;
|
|
65
|
-
}
|
|
20
|
+
return u;
|
|
21
|
+
}, v = ({
|
|
22
|
+
showLabels: e,
|
|
23
|
+
startLabel: t,
|
|
24
|
+
endLabel: n,
|
|
25
|
+
min: c,
|
|
26
|
+
max: r,
|
|
27
|
+
compactLabels: u = !1
|
|
28
|
+
}) => {
|
|
29
|
+
if (e === !1)
|
|
30
|
+
return {
|
|
31
|
+
startLabel: void 0,
|
|
32
|
+
endLabel: void 0
|
|
33
|
+
};
|
|
34
|
+
const a = u ? m : String, i = (s, f) => {
|
|
35
|
+
if (s !== null)
|
|
36
|
+
return s !== void 0 ? s : e ? a(f) : void 0;
|
|
37
|
+
};
|
|
38
|
+
return {
|
|
39
|
+
startLabel: i(t, c),
|
|
40
|
+
endLabel: i(n, r)
|
|
41
|
+
};
|
|
42
|
+
};
|
|
66
43
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
44
|
+
o as DEFAULT_RANK_COLORS,
|
|
45
|
+
g as fillClipInset,
|
|
46
|
+
l as markerPosition,
|
|
47
|
+
v as resolveLabels,
|
|
48
|
+
h as resolveMarkerColor,
|
|
49
|
+
d as valueToPercent
|
|
70
50
|
};
|
|
@@ -24,8 +24,8 @@ export declare enum POST_VIDEO_VALIDATION_REQUIREMENTS {
|
|
|
24
24
|
}
|
|
25
25
|
export declare enum IMAGE_VALIDATION_ERRORS {
|
|
26
26
|
WRONG_FILE_FORMAT = "All uploaded photos <b>must be %imageFormats% file format</b>.",
|
|
27
|
-
RESOLUTION_TOO_SMALL = "The image <b>must be at least %imageSize%</b> tall
|
|
28
|
-
RESOLUTION_TOO_LARGE = "The image <b>must be less than %imageSize%</b> tall
|
|
27
|
+
RESOLUTION_TOO_SMALL = "The image <b>must be at least %imageSize%</b> tall and wide.",
|
|
28
|
+
RESOLUTION_TOO_LARGE = "The image <b>must be less than %imageSize%</b> tall and wide.",
|
|
29
29
|
ASPECT_RATIO_NOT_IN_LIMITS = "The image aspect ratio <b>must be within the range of %min_aspect_ratio% to %max_aspect_ratio%</b>.",
|
|
30
30
|
DUPLICATE = "Some of the media items you've uploaded are duplicates. To avoid repetition, these duplicates will not be included."
|
|
31
31
|
}
|