@revolugo/elements 4.13.6-beta.8 → 4.13.6-beta.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/revolugo.10.js +26 -1
- package/dist/revolugo.11.js +26 -1
- package/dist/revolugo.12.js +26 -1
- package/dist/revolugo.13.js +26 -1
- package/dist/revolugo.14.js +26 -1
- package/dist/revolugo.15.js +26 -1
- package/dist/revolugo.16.js +26 -1
- package/dist/revolugo.17.js +26 -1
- package/dist/revolugo.18.js +26 -1
- package/dist/revolugo.19.js +26 -1
- package/dist/revolugo.20.js +26 -1
- package/dist/revolugo.21.js +26 -1
- package/dist/revolugo.22.js +26 -1
- package/dist/revolugo.23.js +26 -1
- package/dist/revolugo.24.js +26 -1
- package/dist/revolugo.27.js +26 -1
- package/dist/revolugo.30.js +26 -1
- package/dist/revolugo.4.js +26 -1
- package/package.json +1 -1
package/dist/revolugo.10.js
CHANGED
@@ -117590,7 +117590,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
117590
117590
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
117591
117591
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
117592
117592
|
|
117593
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
117593
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
117594
117594
|
|
117595
117595
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
117596
117596
|
var map = __webpack_require__("2ff6");
|
@@ -122302,11 +122302,36 @@ const findUniqueKeys = objects => {
|
|
122302
122302
|
};
|
122303
122303
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
122304
122304
|
|
122305
|
+
|
122305
122306
|
const weightedMean = (values, weights) => {
|
122306
122307
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
122307
122308
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
122308
122309
|
return sum / sumWeights;
|
122309
122310
|
};
|
122311
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
122312
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
122313
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
122314
|
+
}
|
122315
|
+
const result = Number(percentage) / 100 * Number(amount);
|
122316
|
+
switch (roundingType) {
|
122317
|
+
case 'ceil':
|
122318
|
+
{
|
122319
|
+
return Math.ceil(result);
|
122320
|
+
}
|
122321
|
+
case 'floor':
|
122322
|
+
{
|
122323
|
+
return Math.floor(result);
|
122324
|
+
}
|
122325
|
+
case 'round':
|
122326
|
+
{
|
122327
|
+
return Math.round(result);
|
122328
|
+
}
|
122329
|
+
default:
|
122330
|
+
{
|
122331
|
+
return result;
|
122332
|
+
}
|
122333
|
+
}
|
122334
|
+
};
|
122310
122335
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
122311
122336
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
122312
122337
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.11.js
CHANGED
@@ -119894,7 +119894,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
119894
119894
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
119895
119895
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
119896
119896
|
|
119897
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
119897
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
119898
119898
|
|
119899
119899
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
119900
119900
|
var map = __webpack_require__("2ff6");
|
@@ -124606,11 +124606,36 @@ const findUniqueKeys = objects => {
|
|
124606
124606
|
};
|
124607
124607
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
124608
124608
|
|
124609
|
+
|
124609
124610
|
const weightedMean = (values, weights) => {
|
124610
124611
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
124611
124612
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
124612
124613
|
return sum / sumWeights;
|
124613
124614
|
};
|
124615
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
124616
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
124617
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
124618
|
+
}
|
124619
|
+
const result = Number(percentage) / 100 * Number(amount);
|
124620
|
+
switch (roundingType) {
|
124621
|
+
case 'ceil':
|
124622
|
+
{
|
124623
|
+
return Math.ceil(result);
|
124624
|
+
}
|
124625
|
+
case 'floor':
|
124626
|
+
{
|
124627
|
+
return Math.floor(result);
|
124628
|
+
}
|
124629
|
+
case 'round':
|
124630
|
+
{
|
124631
|
+
return Math.round(result);
|
124632
|
+
}
|
124633
|
+
default:
|
124634
|
+
{
|
124635
|
+
return result;
|
124636
|
+
}
|
124637
|
+
}
|
124638
|
+
};
|
124614
124639
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
124615
124640
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
124616
124641
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.12.js
CHANGED
@@ -101283,7 +101283,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
101283
101283
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
101284
101284
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
101285
101285
|
|
101286
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
101286
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
101287
101287
|
|
101288
101288
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
101289
101289
|
var map = __webpack_require__("2ff6");
|
@@ -105995,11 +105995,36 @@ const findUniqueKeys = objects => {
|
|
105995
105995
|
};
|
105996
105996
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
105997
105997
|
|
105998
|
+
|
105998
105999
|
const weightedMean = (values, weights) => {
|
105999
106000
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
106000
106001
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
106001
106002
|
return sum / sumWeights;
|
106002
106003
|
};
|
106004
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
106005
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
106006
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
106007
|
+
}
|
106008
|
+
const result = Number(percentage) / 100 * Number(amount);
|
106009
|
+
switch (roundingType) {
|
106010
|
+
case 'ceil':
|
106011
|
+
{
|
106012
|
+
return Math.ceil(result);
|
106013
|
+
}
|
106014
|
+
case 'floor':
|
106015
|
+
{
|
106016
|
+
return Math.floor(result);
|
106017
|
+
}
|
106018
|
+
case 'round':
|
106019
|
+
{
|
106020
|
+
return Math.round(result);
|
106021
|
+
}
|
106022
|
+
default:
|
106023
|
+
{
|
106024
|
+
return result;
|
106025
|
+
}
|
106026
|
+
}
|
106027
|
+
};
|
106003
106028
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
106004
106029
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
106005
106030
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.13.js
CHANGED
@@ -101145,7 +101145,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
101145
101145
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
101146
101146
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
101147
101147
|
|
101148
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
101148
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
101149
101149
|
|
101150
101150
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
101151
101151
|
var map = __webpack_require__("2ff6");
|
@@ -105857,11 +105857,36 @@ const findUniqueKeys = objects => {
|
|
105857
105857
|
};
|
105858
105858
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
105859
105859
|
|
105860
|
+
|
105860
105861
|
const weightedMean = (values, weights) => {
|
105861
105862
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
105862
105863
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
105863
105864
|
return sum / sumWeights;
|
105864
105865
|
};
|
105866
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
105867
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
105868
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
105869
|
+
}
|
105870
|
+
const result = Number(percentage) / 100 * Number(amount);
|
105871
|
+
switch (roundingType) {
|
105872
|
+
case 'ceil':
|
105873
|
+
{
|
105874
|
+
return Math.ceil(result);
|
105875
|
+
}
|
105876
|
+
case 'floor':
|
105877
|
+
{
|
105878
|
+
return Math.floor(result);
|
105879
|
+
}
|
105880
|
+
case 'round':
|
105881
|
+
{
|
105882
|
+
return Math.round(result);
|
105883
|
+
}
|
105884
|
+
default:
|
105885
|
+
{
|
105886
|
+
return result;
|
105887
|
+
}
|
105888
|
+
}
|
105889
|
+
};
|
105865
105890
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
105866
105891
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
105867
105892
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.14.js
CHANGED
@@ -97873,7 +97873,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
97873
97873
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
97874
97874
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
97875
97875
|
|
97876
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
97876
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
97877
97877
|
|
97878
97878
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
97879
97879
|
var map = __webpack_require__("2ff6");
|
@@ -102585,11 +102585,36 @@ const findUniqueKeys = objects => {
|
|
102585
102585
|
};
|
102586
102586
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
102587
102587
|
|
102588
|
+
|
102588
102589
|
const weightedMean = (values, weights) => {
|
102589
102590
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
102590
102591
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
102591
102592
|
return sum / sumWeights;
|
102592
102593
|
};
|
102594
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
102595
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
102596
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
102597
|
+
}
|
102598
|
+
const result = Number(percentage) / 100 * Number(amount);
|
102599
|
+
switch (roundingType) {
|
102600
|
+
case 'ceil':
|
102601
|
+
{
|
102602
|
+
return Math.ceil(result);
|
102603
|
+
}
|
102604
|
+
case 'floor':
|
102605
|
+
{
|
102606
|
+
return Math.floor(result);
|
102607
|
+
}
|
102608
|
+
case 'round':
|
102609
|
+
{
|
102610
|
+
return Math.round(result);
|
102611
|
+
}
|
102612
|
+
default:
|
102613
|
+
{
|
102614
|
+
return result;
|
102615
|
+
}
|
102616
|
+
}
|
102617
|
+
};
|
102593
102618
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
102594
102619
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
102595
102620
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.15.js
CHANGED
@@ -89986,7 +89986,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
89986
89986
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
89987
89987
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
89988
89988
|
|
89989
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
89989
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
89990
89990
|
|
89991
89991
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
89992
89992
|
var map = __webpack_require__("2ff6");
|
@@ -94698,11 +94698,36 @@ const findUniqueKeys = objects => {
|
|
94698
94698
|
};
|
94699
94699
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
94700
94700
|
|
94701
|
+
|
94701
94702
|
const weightedMean = (values, weights) => {
|
94702
94703
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
94703
94704
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
94704
94705
|
return sum / sumWeights;
|
94705
94706
|
};
|
94707
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
94708
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
94709
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
94710
|
+
}
|
94711
|
+
const result = Number(percentage) / 100 * Number(amount);
|
94712
|
+
switch (roundingType) {
|
94713
|
+
case 'ceil':
|
94714
|
+
{
|
94715
|
+
return Math.ceil(result);
|
94716
|
+
}
|
94717
|
+
case 'floor':
|
94718
|
+
{
|
94719
|
+
return Math.floor(result);
|
94720
|
+
}
|
94721
|
+
case 'round':
|
94722
|
+
{
|
94723
|
+
return Math.round(result);
|
94724
|
+
}
|
94725
|
+
default:
|
94726
|
+
{
|
94727
|
+
return result;
|
94728
|
+
}
|
94729
|
+
}
|
94730
|
+
};
|
94706
94731
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
94707
94732
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
94708
94733
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.16.js
CHANGED
@@ -103682,7 +103682,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
103682
103682
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
103683
103683
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
103684
103684
|
|
103685
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
103685
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
103686
103686
|
|
103687
103687
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
103688
103688
|
var map = __webpack_require__("2ff6");
|
@@ -108394,11 +108394,36 @@ const findUniqueKeys = objects => {
|
|
108394
108394
|
};
|
108395
108395
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
108396
108396
|
|
108397
|
+
|
108397
108398
|
const weightedMean = (values, weights) => {
|
108398
108399
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
108399
108400
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
108400
108401
|
return sum / sumWeights;
|
108401
108402
|
};
|
108403
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
108404
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
108405
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
108406
|
+
}
|
108407
|
+
const result = Number(percentage) / 100 * Number(amount);
|
108408
|
+
switch (roundingType) {
|
108409
|
+
case 'ceil':
|
108410
|
+
{
|
108411
|
+
return Math.ceil(result);
|
108412
|
+
}
|
108413
|
+
case 'floor':
|
108414
|
+
{
|
108415
|
+
return Math.floor(result);
|
108416
|
+
}
|
108417
|
+
case 'round':
|
108418
|
+
{
|
108419
|
+
return Math.round(result);
|
108420
|
+
}
|
108421
|
+
default:
|
108422
|
+
{
|
108423
|
+
return result;
|
108424
|
+
}
|
108425
|
+
}
|
108426
|
+
};
|
108402
108427
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
108403
108428
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
108404
108429
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.17.js
CHANGED
@@ -77614,7 +77614,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
77614
77614
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
77615
77615
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
77616
77616
|
|
77617
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
77617
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
77618
77618
|
|
77619
77619
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
77620
77620
|
var map = __webpack_require__("2ff6");
|
@@ -82326,11 +82326,36 @@ const findUniqueKeys = objects => {
|
|
82326
82326
|
};
|
82327
82327
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
82328
82328
|
|
82329
|
+
|
82329
82330
|
const weightedMean = (values, weights) => {
|
82330
82331
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
82331
82332
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
82332
82333
|
return sum / sumWeights;
|
82333
82334
|
};
|
82335
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
82336
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
82337
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
82338
|
+
}
|
82339
|
+
const result = Number(percentage) / 100 * Number(amount);
|
82340
|
+
switch (roundingType) {
|
82341
|
+
case 'ceil':
|
82342
|
+
{
|
82343
|
+
return Math.ceil(result);
|
82344
|
+
}
|
82345
|
+
case 'floor':
|
82346
|
+
{
|
82347
|
+
return Math.floor(result);
|
82348
|
+
}
|
82349
|
+
case 'round':
|
82350
|
+
{
|
82351
|
+
return Math.round(result);
|
82352
|
+
}
|
82353
|
+
default:
|
82354
|
+
{
|
82355
|
+
return result;
|
82356
|
+
}
|
82357
|
+
}
|
82358
|
+
};
|
82334
82359
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
82335
82360
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
82336
82361
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.18.js
CHANGED
@@ -53163,7 +53163,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
53163
53163
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
53164
53164
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
53165
53165
|
|
53166
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
53166
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
53167
53167
|
|
53168
53168
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
53169
53169
|
var map = __webpack_require__("2ff6");
|
@@ -57875,11 +57875,36 @@ const findUniqueKeys = objects => {
|
|
57875
57875
|
};
|
57876
57876
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
57877
57877
|
|
57878
|
+
|
57878
57879
|
const weightedMean = (values, weights) => {
|
57879
57880
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
57880
57881
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
57881
57882
|
return sum / sumWeights;
|
57882
57883
|
};
|
57884
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
57885
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
57886
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
57887
|
+
}
|
57888
|
+
const result = Number(percentage) / 100 * Number(amount);
|
57889
|
+
switch (roundingType) {
|
57890
|
+
case 'ceil':
|
57891
|
+
{
|
57892
|
+
return Math.ceil(result);
|
57893
|
+
}
|
57894
|
+
case 'floor':
|
57895
|
+
{
|
57896
|
+
return Math.floor(result);
|
57897
|
+
}
|
57898
|
+
case 'round':
|
57899
|
+
{
|
57900
|
+
return Math.round(result);
|
57901
|
+
}
|
57902
|
+
default:
|
57903
|
+
{
|
57904
|
+
return result;
|
57905
|
+
}
|
57906
|
+
}
|
57907
|
+
};
|
57883
57908
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
57884
57909
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
57885
57910
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.19.js
CHANGED
@@ -50189,7 +50189,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
50189
50189
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
50190
50190
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
50191
50191
|
|
50192
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
50192
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
50193
50193
|
|
50194
50194
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
50195
50195
|
var map = __webpack_require__("2ff6");
|
@@ -54901,11 +54901,36 @@ const findUniqueKeys = objects => {
|
|
54901
54901
|
};
|
54902
54902
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
54903
54903
|
|
54904
|
+
|
54904
54905
|
const weightedMean = (values, weights) => {
|
54905
54906
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
54906
54907
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
54907
54908
|
return sum / sumWeights;
|
54908
54909
|
};
|
54910
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
54911
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
54912
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
54913
|
+
}
|
54914
|
+
const result = Number(percentage) / 100 * Number(amount);
|
54915
|
+
switch (roundingType) {
|
54916
|
+
case 'ceil':
|
54917
|
+
{
|
54918
|
+
return Math.ceil(result);
|
54919
|
+
}
|
54920
|
+
case 'floor':
|
54921
|
+
{
|
54922
|
+
return Math.floor(result);
|
54923
|
+
}
|
54924
|
+
case 'round':
|
54925
|
+
{
|
54926
|
+
return Math.round(result);
|
54927
|
+
}
|
54928
|
+
default:
|
54929
|
+
{
|
54930
|
+
return result;
|
54931
|
+
}
|
54932
|
+
}
|
54933
|
+
};
|
54909
54934
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
54910
54935
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
54911
54936
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.20.js
CHANGED
@@ -45754,7 +45754,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
45754
45754
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
45755
45755
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
45756
45756
|
|
45757
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
45757
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
45758
45758
|
|
45759
45759
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
45760
45760
|
var map = __webpack_require__("2ff6");
|
@@ -50466,11 +50466,36 @@ const findUniqueKeys = objects => {
|
|
50466
50466
|
};
|
50467
50467
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
50468
50468
|
|
50469
|
+
|
50469
50470
|
const weightedMean = (values, weights) => {
|
50470
50471
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
50471
50472
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
50472
50473
|
return sum / sumWeights;
|
50473
50474
|
};
|
50475
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
50476
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
50477
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
50478
|
+
}
|
50479
|
+
const result = Number(percentage) / 100 * Number(amount);
|
50480
|
+
switch (roundingType) {
|
50481
|
+
case 'ceil':
|
50482
|
+
{
|
50483
|
+
return Math.ceil(result);
|
50484
|
+
}
|
50485
|
+
case 'floor':
|
50486
|
+
{
|
50487
|
+
return Math.floor(result);
|
50488
|
+
}
|
50489
|
+
case 'round':
|
50490
|
+
{
|
50491
|
+
return Math.round(result);
|
50492
|
+
}
|
50493
|
+
default:
|
50494
|
+
{
|
50495
|
+
return result;
|
50496
|
+
}
|
50497
|
+
}
|
50498
|
+
};
|
50474
50499
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
50475
50500
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
50476
50501
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.21.js
CHANGED
@@ -39142,7 +39142,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
39142
39142
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
39143
39143
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
39144
39144
|
|
39145
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
39145
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
39146
39146
|
|
39147
39147
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
39148
39148
|
var map = __webpack_require__("2ff6");
|
@@ -43854,11 +43854,36 @@ const findUniqueKeys = objects => {
|
|
43854
43854
|
};
|
43855
43855
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
43856
43856
|
|
43857
|
+
|
43857
43858
|
const weightedMean = (values, weights) => {
|
43858
43859
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
43859
43860
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
43860
43861
|
return sum / sumWeights;
|
43861
43862
|
};
|
43863
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
43864
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
43865
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
43866
|
+
}
|
43867
|
+
const result = Number(percentage) / 100 * Number(amount);
|
43868
|
+
switch (roundingType) {
|
43869
|
+
case 'ceil':
|
43870
|
+
{
|
43871
|
+
return Math.ceil(result);
|
43872
|
+
}
|
43873
|
+
case 'floor':
|
43874
|
+
{
|
43875
|
+
return Math.floor(result);
|
43876
|
+
}
|
43877
|
+
case 'round':
|
43878
|
+
{
|
43879
|
+
return Math.round(result);
|
43880
|
+
}
|
43881
|
+
default:
|
43882
|
+
{
|
43883
|
+
return result;
|
43884
|
+
}
|
43885
|
+
}
|
43886
|
+
};
|
43862
43887
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
43863
43888
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
43864
43889
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.22.js
CHANGED
@@ -39548,7 +39548,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
39548
39548
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
39549
39549
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
39550
39550
|
|
39551
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
39551
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
39552
39552
|
|
39553
39553
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
39554
39554
|
var map = __webpack_require__("2ff6");
|
@@ -44260,11 +44260,36 @@ const findUniqueKeys = objects => {
|
|
44260
44260
|
};
|
44261
44261
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
44262
44262
|
|
44263
|
+
|
44263
44264
|
const weightedMean = (values, weights) => {
|
44264
44265
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
44265
44266
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
44266
44267
|
return sum / sumWeights;
|
44267
44268
|
};
|
44269
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
44270
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
44271
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
44272
|
+
}
|
44273
|
+
const result = Number(percentage) / 100 * Number(amount);
|
44274
|
+
switch (roundingType) {
|
44275
|
+
case 'ceil':
|
44276
|
+
{
|
44277
|
+
return Math.ceil(result);
|
44278
|
+
}
|
44279
|
+
case 'floor':
|
44280
|
+
{
|
44281
|
+
return Math.floor(result);
|
44282
|
+
}
|
44283
|
+
case 'round':
|
44284
|
+
{
|
44285
|
+
return Math.round(result);
|
44286
|
+
}
|
44287
|
+
default:
|
44288
|
+
{
|
44289
|
+
return result;
|
44290
|
+
}
|
44291
|
+
}
|
44292
|
+
};
|
44268
44293
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
44269
44294
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
44270
44295
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.23.js
CHANGED
@@ -48132,7 +48132,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
48132
48132
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
48133
48133
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
48134
48134
|
|
48135
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
48135
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
48136
48136
|
|
48137
48137
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
48138
48138
|
var map = __webpack_require__("2ff6");
|
@@ -52844,11 +52844,36 @@ const findUniqueKeys = objects => {
|
|
52844
52844
|
};
|
52845
52845
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
52846
52846
|
|
52847
|
+
|
52847
52848
|
const weightedMean = (values, weights) => {
|
52848
52849
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
52849
52850
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
52850
52851
|
return sum / sumWeights;
|
52851
52852
|
};
|
52853
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
52854
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
52855
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
52856
|
+
}
|
52857
|
+
const result = Number(percentage) / 100 * Number(amount);
|
52858
|
+
switch (roundingType) {
|
52859
|
+
case 'ceil':
|
52860
|
+
{
|
52861
|
+
return Math.ceil(result);
|
52862
|
+
}
|
52863
|
+
case 'floor':
|
52864
|
+
{
|
52865
|
+
return Math.floor(result);
|
52866
|
+
}
|
52867
|
+
case 'round':
|
52868
|
+
{
|
52869
|
+
return Math.round(result);
|
52870
|
+
}
|
52871
|
+
default:
|
52872
|
+
{
|
52873
|
+
return result;
|
52874
|
+
}
|
52875
|
+
}
|
52876
|
+
};
|
52852
52877
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
52853
52878
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
52854
52879
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.24.js
CHANGED
@@ -41747,7 +41747,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
41747
41747
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
41748
41748
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
41749
41749
|
|
41750
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
41750
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
41751
41751
|
|
41752
41752
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
41753
41753
|
var map = __webpack_require__("2ff6");
|
@@ -46459,11 +46459,36 @@ const findUniqueKeys = objects => {
|
|
46459
46459
|
};
|
46460
46460
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
46461
46461
|
|
46462
|
+
|
46462
46463
|
const weightedMean = (values, weights) => {
|
46463
46464
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
46464
46465
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
46465
46466
|
return sum / sumWeights;
|
46466
46467
|
};
|
46468
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
46469
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
46470
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
46471
|
+
}
|
46472
|
+
const result = Number(percentage) / 100 * Number(amount);
|
46473
|
+
switch (roundingType) {
|
46474
|
+
case 'ceil':
|
46475
|
+
{
|
46476
|
+
return Math.ceil(result);
|
46477
|
+
}
|
46478
|
+
case 'floor':
|
46479
|
+
{
|
46480
|
+
return Math.floor(result);
|
46481
|
+
}
|
46482
|
+
case 'round':
|
46483
|
+
{
|
46484
|
+
return Math.round(result);
|
46485
|
+
}
|
46486
|
+
default:
|
46487
|
+
{
|
46488
|
+
return result;
|
46489
|
+
}
|
46490
|
+
}
|
46491
|
+
};
|
46467
46492
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
46468
46493
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
46469
46494
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.27.js
CHANGED
@@ -35400,7 +35400,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
35400
35400
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
35401
35401
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
35402
35402
|
|
35403
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
35403
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
35404
35404
|
|
35405
35405
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
35406
35406
|
var map = __webpack_require__("2ff6");
|
@@ -40112,11 +40112,36 @@ const findUniqueKeys = objects => {
|
|
40112
40112
|
};
|
40113
40113
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
40114
40114
|
|
40115
|
+
|
40115
40116
|
const weightedMean = (values, weights) => {
|
40116
40117
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
40117
40118
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
40118
40119
|
return sum / sumWeights;
|
40119
40120
|
};
|
40121
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
40122
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
40123
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
40124
|
+
}
|
40125
|
+
const result = Number(percentage) / 100 * Number(amount);
|
40126
|
+
switch (roundingType) {
|
40127
|
+
case 'ceil':
|
40128
|
+
{
|
40129
|
+
return Math.ceil(result);
|
40130
|
+
}
|
40131
|
+
case 'floor':
|
40132
|
+
{
|
40133
|
+
return Math.floor(result);
|
40134
|
+
}
|
40135
|
+
case 'round':
|
40136
|
+
{
|
40137
|
+
return Math.round(result);
|
40138
|
+
}
|
40139
|
+
default:
|
40140
|
+
{
|
40141
|
+
return result;
|
40142
|
+
}
|
40143
|
+
}
|
40144
|
+
};
|
40120
40145
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
40121
40146
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
40122
40147
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.30.js
CHANGED
@@ -31111,7 +31111,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
31111
31111
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
31112
31112
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
31113
31113
|
|
31114
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
31114
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
31115
31115
|
|
31116
31116
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
31117
31117
|
var map = __webpack_require__("2ff6");
|
@@ -35823,11 +35823,36 @@ const findUniqueKeys = objects => {
|
|
35823
35823
|
};
|
35824
35824
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
35825
35825
|
|
35826
|
+
|
35826
35827
|
const weightedMean = (values, weights) => {
|
35827
35828
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
35828
35829
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
35829
35830
|
return sum / sumWeights;
|
35830
35831
|
};
|
35832
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
35833
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
35834
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
35835
|
+
}
|
35836
|
+
const result = Number(percentage) / 100 * Number(amount);
|
35837
|
+
switch (roundingType) {
|
35838
|
+
case 'ceil':
|
35839
|
+
{
|
35840
|
+
return Math.ceil(result);
|
35841
|
+
}
|
35842
|
+
case 'floor':
|
35843
|
+
{
|
35844
|
+
return Math.floor(result);
|
35845
|
+
}
|
35846
|
+
case 'round':
|
35847
|
+
{
|
35848
|
+
return Math.round(result);
|
35849
|
+
}
|
35850
|
+
default:
|
35851
|
+
{
|
35852
|
+
return result;
|
35853
|
+
}
|
35854
|
+
}
|
35855
|
+
};
|
35831
35856
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
35832
35857
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
35833
35858
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|
package/dist/revolugo.4.js
CHANGED
@@ -29259,7 +29259,7 @@ __webpack_require__.d(__webpack_exports__, "r", function() { return /* reexport
|
|
29259
29259
|
__webpack_require__.d(__webpack_exports__, "q", function() { return /* reexport */ sanitizeDateRange; });
|
29260
29260
|
__webpack_require__.d(__webpack_exports__, "n", function() { return /* reexport */ isValidCssSize; });
|
29261
29261
|
|
29262
|
-
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, randomInt, delay, promiseTimeout, validators
|
29262
|
+
// UNUSED EXPORTS: COUNTRY_ISO2_CODE, ISO_COUNTRIES, STRIPE_SUPPORTED_CURRENCIES_ENUM, SUPPORTED_CURRENCIES, ZERO_DECIMAL_SUPPORTED_CURRENCIES, BOOKING_API_URLS, POLLER, STOCK_STATUS, LANG_CODES, LOCALES, LOCALES_TO_LANG_CODES, LANG_CODES_TO_LOCALES, DATE_STRING_FORMAT, isZeroDecimal, ceilNormalizedAmount, isValidDate, getDateRange, checkDatesMatchRange, findUniqueKeys, weightedMean, amountFromPercentage, randomInt, delay, promiseTimeout, validators
|
29263
29263
|
|
29264
29264
|
// EXTERNAL MODULE: /opt/atlassian/pipelines/agent/build/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
|
29265
29265
|
var map = __webpack_require__("2ff6");
|
@@ -33971,11 +33971,36 @@ const findUniqueKeys = objects => {
|
|
33971
33971
|
};
|
33972
33972
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/math.js
|
33973
33973
|
|
33974
|
+
|
33974
33975
|
const weightedMean = (values, weights) => {
|
33975
33976
|
const sum = values.reduce((acc, val, i) => acc + val * weights[i], 0);
|
33976
33977
|
const sumWeights = weights.reduce((acc, val) => acc + val, 0);
|
33977
33978
|
return sum / sumWeights;
|
33978
33979
|
};
|
33980
|
+
const amountFromPercentage = (percentage, amount, roundingType = 'none') => {
|
33981
|
+
if (Number.isNaN(Number(percentage)) || Number.isNaN(Number(amount))) {
|
33982
|
+
throw new TypeError(`${percentage} || ${amount} is NaN`);
|
33983
|
+
}
|
33984
|
+
const result = Number(percentage) / 100 * Number(amount);
|
33985
|
+
switch (roundingType) {
|
33986
|
+
case 'ceil':
|
33987
|
+
{
|
33988
|
+
return Math.ceil(result);
|
33989
|
+
}
|
33990
|
+
case 'floor':
|
33991
|
+
{
|
33992
|
+
return Math.floor(result);
|
33993
|
+
}
|
33994
|
+
case 'round':
|
33995
|
+
{
|
33996
|
+
return Math.round(result);
|
33997
|
+
}
|
33998
|
+
default:
|
33999
|
+
{
|
34000
|
+
return result;
|
34001
|
+
}
|
34002
|
+
}
|
34003
|
+
};
|
33979
34004
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/numbers.js
|
33980
34005
|
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
|
33981
34006
|
// CONCATENATED MODULE: /opt/atlassian/pipelines/agent/build/libs/common/dist/utils/promise-tools.js
|