@wix/bex-utils 2.131.0 → 2.133.0
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/@wix/bex-bundled-mini-essentials/dist/cjs/bex-bundled-mini-essentials.js +1305 -276
- package/@wix/bex-bundled-mini-essentials/dist/cjs/bex-bundled-mini-essentials.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/http-client/testkit/client.js +218 -116
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/http-client/testkit/client.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/testkit/index.d.ts +7 -8
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/testkit/index.js +1255 -263
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/testkit/index.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/esm/bex-bundled-mini-essentials.mjs +1298 -325
- package/@wix/bex-bundled-mini-essentials/dist/esm/bex-bundled-mini-essentials.mjs.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/esm/common-errors_hi-P2YUYYLM.mjs +34 -0
- package/@wix/bex-bundled-mini-essentials/dist/esm/common-errors_hi-P2YUYYLM.mjs.map +1 -0
- package/@wix/bex-bundled-mini-essentials/dist/esm/{exports/testkit/common-errors_ja-73RRUZ7T.mjs → common-errors_ja-MS5PSRSC.mjs} +2 -2
- package/@wix/bex-bundled-mini-essentials/dist/esm/{common-errors_ja-OOUHZN3G.mjs.map → common-errors_ja-MS5PSRSC.mjs.map} +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/esm/{common-errors_uk-TGSY773Q.mjs → common-errors_uk-G7XUMV2H.mjs} +2 -2
- package/@wix/bex-bundled-mini-essentials/dist/esm/{common-errors_uk-TGSY773Q.mjs.map → common-errors_uk-G7XUMV2H.mjs.map} +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/http-client/testkit/client.mjs +37 -8
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/http-client/testkit/client.mjs.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/testkit/common-errors_hi-EY6JYIPV.mjs +34 -0
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/testkit/common-errors_hi-EY6JYIPV.mjs.map +1 -0
- package/@wix/bex-bundled-mini-essentials/dist/esm/{common-errors_ja-OOUHZN3G.mjs → exports/testkit/common-errors_ja-J6VU7MQY.mjs} +2 -2
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/testkit/{common-errors_ja-73RRUZ7T.mjs.map → common-errors_ja-J6VU7MQY.mjs.map} +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/testkit/{common-errors_uk-5VEGIENP.mjs → common-errors_uk-T2LUNSSB.mjs} +2 -2
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/testkit/{common-errors_uk-5VEGIENP.mjs.map → common-errors_uk-T2LUNSSB.mjs.map} +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/testkit/index.d.mts +7 -8
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/testkit/index.mjs +1161 -230
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/testkit/index.mjs.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/tsconfig.tsbuildinfo +1 -1
- package/@wix/bex-bundled-mini-essentials/package.json +12 -3
- package/package.json +3 -3
- package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +0 -359
- package/@wix/bex-bundled-mini-essentials/dist/esm/common-errors_hi-UKK4LODD.mjs +0 -34
- package/@wix/bex-bundled-mini-essentials/dist/esm/common-errors_hi-UKK4LODD.mjs.map +0 -1
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/testkit/common-errors_hi-X2D2EJ6Z.mjs +0 -34
- package/@wix/bex-bundled-mini-essentials/dist/esm/exports/testkit/common-errors_hi-X2D2EJ6Z.mjs.map +0 -1
|
@@ -5532,6 +5532,19 @@ var require_lodash = __commonJS({
|
|
|
5532
5532
|
}
|
|
5533
5533
|
});
|
|
5534
5534
|
|
|
5535
|
+
// ../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/ambassador-sdk.js
|
|
5536
|
+
var require_ambassador_sdk = __commonJS({
|
|
5537
|
+
"../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/ambassador-sdk.js"(exports2) {
|
|
5538
|
+
"use strict";
|
|
5539
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5540
|
+
exports2.asAmbassadorModules = exports2.asAmbassadorModule = void 0;
|
|
5541
|
+
var asAmbassadorModule = (module3) => module3;
|
|
5542
|
+
exports2.asAmbassadorModule = asAmbassadorModule;
|
|
5543
|
+
var asAmbassadorModules = (modules) => modules;
|
|
5544
|
+
exports2.asAmbassadorModules = asAmbassadorModules;
|
|
5545
|
+
}
|
|
5546
|
+
});
|
|
5547
|
+
|
|
5535
5548
|
// ../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/constants.js
|
|
5536
5549
|
var require_constants = __commonJS({
|
|
5537
5550
|
"../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/constants.js"(exports2) {
|
|
@@ -5881,6 +5894,16 @@ var init_linguist = __esm({
|
|
|
5881
5894
|
}
|
|
5882
5895
|
});
|
|
5883
5896
|
|
|
5897
|
+
// ../../node_modules/@wix/headers/dist/esm/headers/currency.js
|
|
5898
|
+
function currencyHeader(currency) {
|
|
5899
|
+
return { "x-wix-currency": currency };
|
|
5900
|
+
}
|
|
5901
|
+
var init_currency = __esm({
|
|
5902
|
+
"../../node_modules/@wix/headers/dist/esm/headers/currency.js"() {
|
|
5903
|
+
"use strict";
|
|
5904
|
+
}
|
|
5905
|
+
});
|
|
5906
|
+
|
|
5884
5907
|
// ../../node_modules/@wix/headers/dist/esm/errors.js
|
|
5885
5908
|
var WixHeadersValidationError;
|
|
5886
5909
|
var init_errors = __esm({
|
|
@@ -5929,7 +5952,8 @@ function createHeaders(opts = {}) {
|
|
|
5929
5952
|
linguistHeader({
|
|
5930
5953
|
signedInstance: opts.signedInstance,
|
|
5931
5954
|
...opts.multilingualOptions
|
|
5932
|
-
})
|
|
5955
|
+
}),
|
|
5956
|
+
currencyHeader(opts.currency)
|
|
5933
5957
|
];
|
|
5934
5958
|
if (opts.csrf) {
|
|
5935
5959
|
headers.push(csrf());
|
|
@@ -5953,6 +5977,7 @@ var init_esm = __esm({
|
|
|
5953
5977
|
init_artifact_id();
|
|
5954
5978
|
init_common_config();
|
|
5955
5979
|
init_linguist();
|
|
5980
|
+
init_currency();
|
|
5956
5981
|
init_assert();
|
|
5957
5982
|
}
|
|
5958
5983
|
});
|
|
@@ -5962,25 +5987,24 @@ var require_env_util = __commonJS({
|
|
|
5962
5987
|
"../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/env-util.js"(exports2) {
|
|
5963
5988
|
"use strict";
|
|
5964
5989
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5965
|
-
exports2.
|
|
5990
|
+
exports2.isBrowser = isBrowser;
|
|
5991
|
+
exports2.isWebWorker = isWebWorker;
|
|
5992
|
+
exports2.isNode = isNode2;
|
|
5993
|
+
exports2.isProduction = isProduction;
|
|
5966
5994
|
function isBrowser() {
|
|
5967
5995
|
return typeof window !== "undefined";
|
|
5968
5996
|
}
|
|
5969
|
-
exports2.isBrowser = isBrowser;
|
|
5970
5997
|
function isWebWorker() {
|
|
5971
5998
|
var _a;
|
|
5972
5999
|
return typeof self === "object" && ((_a = self === null || self === void 0 ? void 0 : self.constructor) === null || _a === void 0 ? void 0 : _a.name) === "DedicatedWorkerGlobalScope";
|
|
5973
6000
|
}
|
|
5974
|
-
exports2.isWebWorker = isWebWorker;
|
|
5975
6001
|
function isNode2() {
|
|
5976
6002
|
var _a;
|
|
5977
6003
|
return typeof process !== "undefined" && ((_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) != null;
|
|
5978
6004
|
}
|
|
5979
|
-
exports2.isNode = isNode2;
|
|
5980
6005
|
function isProduction() {
|
|
5981
6006
|
return process.env.NODE_ENV === "production";
|
|
5982
6007
|
}
|
|
5983
|
-
exports2.isProduction = isProduction;
|
|
5984
6008
|
}
|
|
5985
6009
|
});
|
|
5986
6010
|
|
|
@@ -5989,7 +6013,18 @@ var require_utils = __commonJS({
|
|
|
5989
6013
|
"../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/utils.js"(exports2) {
|
|
5990
6014
|
"use strict";
|
|
5991
6015
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5992
|
-
exports2.
|
|
6016
|
+
exports2.isAbsoluteUrl = isAbsoluteUrl;
|
|
6017
|
+
exports2.silent = silent;
|
|
6018
|
+
exports2.extractProp = extractProp;
|
|
6019
|
+
exports2.resolveHost = resolveHost2;
|
|
6020
|
+
exports2.resolveProtocol = resolveProtocol;
|
|
6021
|
+
exports2.extractProtocol = extractProtocol;
|
|
6022
|
+
exports2.extractHost = extractHost;
|
|
6023
|
+
exports2.changeHost = changeHost;
|
|
6024
|
+
exports2.getGlobalConfig = getGlobalConfig;
|
|
6025
|
+
exports2.isHttpMockServerEnabled = isHttpMockServerEnabled;
|
|
6026
|
+
exports2.shouldAllowUnmocked = shouldAllowUnmocked;
|
|
6027
|
+
exports2.toSearchQueryParams = toSearchQueryParams;
|
|
5993
6028
|
var constants_1 = require_constants();
|
|
5994
6029
|
var env_util_1 = require_env_util();
|
|
5995
6030
|
function isAbsoluteUrl(url) {
|
|
@@ -5998,18 +6033,15 @@ var require_utils = __commonJS({
|
|
|
5998
6033
|
}
|
|
5999
6034
|
return /(^https?:)|(^\/\/)/.test(url);
|
|
6000
6035
|
}
|
|
6001
|
-
exports2.isAbsoluteUrl = isAbsoluteUrl;
|
|
6002
6036
|
async function silent(fn) {
|
|
6003
6037
|
try {
|
|
6004
6038
|
await fn();
|
|
6005
6039
|
} catch (_a) {
|
|
6006
6040
|
}
|
|
6007
6041
|
}
|
|
6008
|
-
exports2.silent = silent;
|
|
6009
6042
|
function extractProp(data, path) {
|
|
6010
6043
|
return path.split(".").filter((prop) => prop).reduce((result, prop) => result[prop], data);
|
|
6011
6044
|
}
|
|
6012
|
-
exports2.extractProp = extractProp;
|
|
6013
6045
|
function resolveHost2(opts) {
|
|
6014
6046
|
if (opts.baseURL) {
|
|
6015
6047
|
return extractHost(opts.baseURL);
|
|
@@ -6021,7 +6053,6 @@ var require_utils = __commonJS({
|
|
|
6021
6053
|
return "";
|
|
6022
6054
|
}
|
|
6023
6055
|
}
|
|
6024
|
-
exports2.resolveHost = resolveHost2;
|
|
6025
6056
|
function resolveProtocol(opts) {
|
|
6026
6057
|
if (opts.baseURL) {
|
|
6027
6058
|
return extractProtocol(opts.baseURL);
|
|
@@ -6033,7 +6064,6 @@ var require_utils = __commonJS({
|
|
|
6033
6064
|
return "";
|
|
6034
6065
|
}
|
|
6035
6066
|
}
|
|
6036
|
-
exports2.resolveProtocol = resolveProtocol;
|
|
6037
6067
|
function extractProtocol(url) {
|
|
6038
6068
|
try {
|
|
6039
6069
|
const asUrl = new URL(url);
|
|
@@ -6043,7 +6073,6 @@ var require_utils = __commonJS({
|
|
|
6043
6073
|
return hostAndProtocol.protocol;
|
|
6044
6074
|
}
|
|
6045
6075
|
}
|
|
6046
|
-
exports2.extractProtocol = extractProtocol;
|
|
6047
6076
|
function extractHost(url) {
|
|
6048
6077
|
let asUrl;
|
|
6049
6078
|
try {
|
|
@@ -6058,7 +6087,6 @@ var require_utils = __commonJS({
|
|
|
6058
6087
|
return hostAndProtocol.host;
|
|
6059
6088
|
}
|
|
6060
6089
|
}
|
|
6061
|
-
exports2.extractHost = extractHost;
|
|
6062
6090
|
function extractHostAndProtocolUsingRegExp(url) {
|
|
6063
6091
|
const regExp = new RegExp("^(.*:)//([A-Za-z0-9-.]+)(:[0-9]+)?(.*)$");
|
|
6064
6092
|
try {
|
|
@@ -6080,7 +6108,6 @@ var require_utils = __commonJS({
|
|
|
6080
6108
|
}
|
|
6081
6109
|
return url.toString();
|
|
6082
6110
|
}
|
|
6083
|
-
exports2.changeHost = changeHost;
|
|
6084
6111
|
function getGlobalConfig() {
|
|
6085
6112
|
const defaultConfig = { httpMockServer: { enabled: false } };
|
|
6086
6113
|
let globalConfig;
|
|
@@ -6098,21 +6125,17 @@ var require_utils = __commonJS({
|
|
|
6098
6125
|
}
|
|
6099
6126
|
return globalConfig || defaultConfig;
|
|
6100
6127
|
}
|
|
6101
|
-
exports2.getGlobalConfig = getGlobalConfig;
|
|
6102
6128
|
function isHttpMockServerEnabled() {
|
|
6103
6129
|
const globalConfig = getGlobalConfig();
|
|
6104
6130
|
return globalConfig.httpMockServer.enabled;
|
|
6105
6131
|
}
|
|
6106
|
-
exports2.isHttpMockServerEnabled = isHttpMockServerEnabled;
|
|
6107
6132
|
function shouldAllowUnmocked() {
|
|
6108
6133
|
const globalConfig = getGlobalConfig();
|
|
6109
6134
|
return globalConfig.httpMockServer.allowUnmocked;
|
|
6110
6135
|
}
|
|
6111
|
-
exports2.shouldAllowUnmocked = shouldAllowUnmocked;
|
|
6112
6136
|
function toSearchQueryParams(params) {
|
|
6113
6137
|
return Object.entries(params).map(([key, value]) => `${key}=${encodeURIComponent(value)}`).flat().join("&");
|
|
6114
6138
|
}
|
|
6115
|
-
exports2.toSearchQueryParams = toSearchQueryParams;
|
|
6116
6139
|
}
|
|
6117
6140
|
});
|
|
6118
6141
|
|
|
@@ -6134,7 +6157,9 @@ var require_headers = __commonJS({
|
|
|
6134
6157
|
"../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/headers.js"(exports2) {
|
|
6135
6158
|
"use strict";
|
|
6136
6159
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6137
|
-
exports2.
|
|
6160
|
+
exports2.composeHeaders = void 0;
|
|
6161
|
+
exports2.requestIdOrEmptyString = requestIdOrEmptyString;
|
|
6162
|
+
exports2.isWixDomain = isWixDomain;
|
|
6138
6163
|
var tslib_1 = require("tslib");
|
|
6139
6164
|
var headers_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
6140
6165
|
var utils_1 = require_utils();
|
|
@@ -6143,7 +6168,6 @@ var require_headers = __commonJS({
|
|
|
6143
6168
|
var _a;
|
|
6144
6169
|
return ((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a["x-wix-request-id"]) || "";
|
|
6145
6170
|
}
|
|
6146
|
-
exports2.requestIdOrEmptyString = requestIdOrEmptyString;
|
|
6147
6171
|
var composeHeaders = ({ url, disableWixHeaders, includeWixHeaders, wixHeadersOpts }) => {
|
|
6148
6172
|
const shouldAssignWixHeaders = includeWixHeaders || !disableWixHeaders && isWixDomain(url);
|
|
6149
6173
|
return shouldAssignWixHeaders ? (0, headers_1.createHeaders)(wixHeadersOpts) : {};
|
|
@@ -6158,7 +6182,6 @@ var require_headers = __commonJS({
|
|
|
6158
6182
|
const isWhitelisted = whitelist_json_1.default.find((wixHost) => host.endsWith(`.${wixHost}`));
|
|
6159
6183
|
return !!isWhitelisted;
|
|
6160
6184
|
}
|
|
6161
|
-
exports2.isWixDomain = isWixDomain;
|
|
6162
6185
|
}
|
|
6163
6186
|
});
|
|
6164
6187
|
|
|
@@ -6167,7 +6190,8 @@ var require_error = __commonJS({
|
|
|
6167
6190
|
"../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/error.js"(exports2) {
|
|
6168
6191
|
"use strict";
|
|
6169
6192
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6170
|
-
exports2.
|
|
6193
|
+
exports2.HttpError = exports2.axiosErrorFields = void 0;
|
|
6194
|
+
exports2.createHttpError = createHttpError2;
|
|
6171
6195
|
var headers_1 = require_headers();
|
|
6172
6196
|
exports2.axiosErrorFields = [
|
|
6173
6197
|
"code",
|
|
@@ -6198,13 +6222,12 @@ var require_error = __commonJS({
|
|
|
6198
6222
|
function createHttpError2(...args) {
|
|
6199
6223
|
return new HttpError2(...args);
|
|
6200
6224
|
}
|
|
6201
|
-
exports2.createHttpError = createHttpError2;
|
|
6202
6225
|
}
|
|
6203
6226
|
});
|
|
6204
6227
|
|
|
6205
|
-
// ../../node_modules
|
|
6228
|
+
// ../../node_modules/axios/lib/helpers/bind.js
|
|
6206
6229
|
var require_bind = __commonJS({
|
|
6207
|
-
"../../node_modules
|
|
6230
|
+
"../../node_modules/axios/lib/helpers/bind.js"(exports2, module2) {
|
|
6208
6231
|
"use strict";
|
|
6209
6232
|
module2.exports = function bind(fn, thisArg) {
|
|
6210
6233
|
return function wrap() {
|
|
@@ -6218,9 +6241,9 @@ var require_bind = __commonJS({
|
|
|
6218
6241
|
}
|
|
6219
6242
|
});
|
|
6220
6243
|
|
|
6221
|
-
// ../../node_modules
|
|
6244
|
+
// ../../node_modules/axios/lib/utils.js
|
|
6222
6245
|
var require_utils2 = __commonJS({
|
|
6223
|
-
"../../node_modules
|
|
6246
|
+
"../../node_modules/axios/lib/utils.js"(exports2, module2) {
|
|
6224
6247
|
"use strict";
|
|
6225
6248
|
var bind = require_bind();
|
|
6226
6249
|
var toString = Object.prototype.toString;
|
|
@@ -6371,9 +6394,9 @@ var require_utils2 = __commonJS({
|
|
|
6371
6394
|
}
|
|
6372
6395
|
});
|
|
6373
6396
|
|
|
6374
|
-
// ../../node_modules
|
|
6397
|
+
// ../../node_modules/axios/lib/core/enhanceError.js
|
|
6375
6398
|
var require_enhanceError = __commonJS({
|
|
6376
|
-
"../../node_modules
|
|
6399
|
+
"../../node_modules/axios/lib/core/enhanceError.js"(exports2, module2) {
|
|
6377
6400
|
"use strict";
|
|
6378
6401
|
module2.exports = function enhanceError(error, config, code, request, response) {
|
|
6379
6402
|
error.config = config;
|
|
@@ -6406,9 +6429,9 @@ var require_enhanceError = __commonJS({
|
|
|
6406
6429
|
}
|
|
6407
6430
|
});
|
|
6408
6431
|
|
|
6409
|
-
// ../../node_modules
|
|
6432
|
+
// ../../node_modules/axios/lib/core/createError.js
|
|
6410
6433
|
var require_createError = __commonJS({
|
|
6411
|
-
"../../node_modules
|
|
6434
|
+
"../../node_modules/axios/lib/core/createError.js"(exports2, module2) {
|
|
6412
6435
|
"use strict";
|
|
6413
6436
|
var enhanceError = require_enhanceError();
|
|
6414
6437
|
module2.exports = function createError(message, config, code, request, response) {
|
|
@@ -6418,9 +6441,9 @@ var require_createError = __commonJS({
|
|
|
6418
6441
|
}
|
|
6419
6442
|
});
|
|
6420
6443
|
|
|
6421
|
-
// ../../node_modules
|
|
6444
|
+
// ../../node_modules/axios/lib/core/settle.js
|
|
6422
6445
|
var require_settle = __commonJS({
|
|
6423
|
-
"../../node_modules
|
|
6446
|
+
"../../node_modules/axios/lib/core/settle.js"(exports2, module2) {
|
|
6424
6447
|
"use strict";
|
|
6425
6448
|
var createError = require_createError();
|
|
6426
6449
|
module2.exports = function settle(resolve, reject, response) {
|
|
@@ -6440,9 +6463,9 @@ var require_settle = __commonJS({
|
|
|
6440
6463
|
}
|
|
6441
6464
|
});
|
|
6442
6465
|
|
|
6443
|
-
// ../../node_modules
|
|
6466
|
+
// ../../node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
6444
6467
|
var require_isAbsoluteURL = __commonJS({
|
|
6445
|
-
"../../node_modules
|
|
6468
|
+
"../../node_modules/axios/lib/helpers/isAbsoluteURL.js"(exports2, module2) {
|
|
6446
6469
|
"use strict";
|
|
6447
6470
|
module2.exports = function isAbsoluteURL(url) {
|
|
6448
6471
|
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
@@ -6450,9 +6473,9 @@ var require_isAbsoluteURL = __commonJS({
|
|
|
6450
6473
|
}
|
|
6451
6474
|
});
|
|
6452
6475
|
|
|
6453
|
-
// ../../node_modules
|
|
6476
|
+
// ../../node_modules/axios/lib/helpers/combineURLs.js
|
|
6454
6477
|
var require_combineURLs = __commonJS({
|
|
6455
|
-
"../../node_modules
|
|
6478
|
+
"../../node_modules/axios/lib/helpers/combineURLs.js"(exports2, module2) {
|
|
6456
6479
|
"use strict";
|
|
6457
6480
|
module2.exports = function combineURLs2(baseURL, relativeURL) {
|
|
6458
6481
|
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
@@ -6460,9 +6483,9 @@ var require_combineURLs = __commonJS({
|
|
|
6460
6483
|
}
|
|
6461
6484
|
});
|
|
6462
6485
|
|
|
6463
|
-
// ../../node_modules
|
|
6486
|
+
// ../../node_modules/axios/lib/core/buildFullPath.js
|
|
6464
6487
|
var require_buildFullPath = __commonJS({
|
|
6465
|
-
"../../node_modules
|
|
6488
|
+
"../../node_modules/axios/lib/core/buildFullPath.js"(exports2, module2) {
|
|
6466
6489
|
"use strict";
|
|
6467
6490
|
var isAbsoluteURL = require_isAbsoluteURL();
|
|
6468
6491
|
var combineURLs2 = require_combineURLs();
|
|
@@ -6475,9 +6498,9 @@ var require_buildFullPath = __commonJS({
|
|
|
6475
6498
|
}
|
|
6476
6499
|
});
|
|
6477
6500
|
|
|
6478
|
-
// ../../node_modules
|
|
6501
|
+
// ../../node_modules/axios/lib/helpers/buildURL.js
|
|
6479
6502
|
var require_buildURL = __commonJS({
|
|
6480
|
-
"../../node_modules
|
|
6503
|
+
"../../node_modules/axios/lib/helpers/buildURL.js"(exports2, module2) {
|
|
6481
6504
|
"use strict";
|
|
6482
6505
|
var utils = require_utils2();
|
|
6483
6506
|
function encode(val) {
|
|
@@ -7326,12 +7349,25 @@ var require_follow_redirects = __commonJS({
|
|
|
7326
7349
|
var Writable = require("stream").Writable;
|
|
7327
7350
|
var assert2 = require("assert");
|
|
7328
7351
|
var debug = require_debug();
|
|
7352
|
+
(function detectUnsupportedEnvironment() {
|
|
7353
|
+
var looksLikeNode = typeof process !== "undefined";
|
|
7354
|
+
var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
7355
|
+
var looksLikeV8 = isFunction2(Error.captureStackTrace);
|
|
7356
|
+
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
|
7357
|
+
console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
7358
|
+
}
|
|
7359
|
+
})();
|
|
7329
7360
|
var useNativeURL = false;
|
|
7330
7361
|
try {
|
|
7331
|
-
assert2(new URL2());
|
|
7362
|
+
assert2(new URL2(""));
|
|
7332
7363
|
} catch (error) {
|
|
7333
7364
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
7334
7365
|
}
|
|
7366
|
+
var sensitiveHeaders = [
|
|
7367
|
+
"Authorization",
|
|
7368
|
+
"Proxy-Authorization",
|
|
7369
|
+
"Cookie"
|
|
7370
|
+
];
|
|
7335
7371
|
var preservedUrlFields = [
|
|
7336
7372
|
"auth",
|
|
7337
7373
|
"host",
|
|
@@ -7396,6 +7432,7 @@ var require_follow_redirects = __commonJS({
|
|
|
7396
7432
|
self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
7397
7433
|
}
|
|
7398
7434
|
};
|
|
7435
|
+
this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
|
|
7399
7436
|
this._performRequest();
|
|
7400
7437
|
}
|
|
7401
7438
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
@@ -7533,6 +7570,9 @@ var require_follow_redirects = __commonJS({
|
|
|
7533
7570
|
if (!options.headers) {
|
|
7534
7571
|
options.headers = {};
|
|
7535
7572
|
}
|
|
7573
|
+
if (!isArray3(options.sensitiveHeaders)) {
|
|
7574
|
+
options.sensitiveHeaders = [];
|
|
7575
|
+
}
|
|
7536
7576
|
if (options.host) {
|
|
7537
7577
|
if (!options.hostname) {
|
|
7538
7578
|
options.hostname = options.host;
|
|
@@ -7638,7 +7678,7 @@ var require_follow_redirects = __commonJS({
|
|
|
7638
7678
|
this._isRedirect = true;
|
|
7639
7679
|
spreadUrlObject(redirectUrl, this._options);
|
|
7640
7680
|
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
7641
|
-
removeMatchingHeaders(
|
|
7681
|
+
removeMatchingHeaders(this._headerFilter, this._options.headers);
|
|
7642
7682
|
}
|
|
7643
7683
|
if (isFunction2(beforeRedirect)) {
|
|
7644
7684
|
var responseDetails = {
|
|
@@ -7755,7 +7795,9 @@ var require_follow_redirects = __commonJS({
|
|
|
7755
7795
|
}
|
|
7756
7796
|
function createErrorType(code, message, baseClass) {
|
|
7757
7797
|
function CustomError(properties) {
|
|
7758
|
-
Error.captureStackTrace
|
|
7798
|
+
if (isFunction2(Error.captureStackTrace)) {
|
|
7799
|
+
Error.captureStackTrace(this, this.constructor);
|
|
7800
|
+
}
|
|
7759
7801
|
Object.assign(this, properties || {});
|
|
7760
7802
|
this.code = code;
|
|
7761
7803
|
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
@@ -7785,6 +7827,9 @@ var require_follow_redirects = __commonJS({
|
|
|
7785
7827
|
var dot = subdomain.length - domain.length - 1;
|
|
7786
7828
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
7787
7829
|
}
|
|
7830
|
+
function isArray3(value) {
|
|
7831
|
+
return value instanceof Array;
|
|
7832
|
+
}
|
|
7788
7833
|
function isString(value) {
|
|
7789
7834
|
return typeof value === "string" || value instanceof String;
|
|
7790
7835
|
}
|
|
@@ -7797,14 +7842,17 @@ var require_follow_redirects = __commonJS({
|
|
|
7797
7842
|
function isURL(value) {
|
|
7798
7843
|
return URL2 && value instanceof URL2;
|
|
7799
7844
|
}
|
|
7845
|
+
function escapeRegex(regex) {
|
|
7846
|
+
return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
|
|
7847
|
+
}
|
|
7800
7848
|
module2.exports = wrap({ http, https });
|
|
7801
7849
|
module2.exports.wrap = wrap;
|
|
7802
7850
|
}
|
|
7803
7851
|
});
|
|
7804
7852
|
|
|
7805
|
-
// ../../node_modules
|
|
7853
|
+
// ../../node_modules/axios/package.json
|
|
7806
7854
|
var require_package = __commonJS({
|
|
7807
|
-
"../../node_modules
|
|
7855
|
+
"../../node_modules/axios/package.json"(exports2, module2) {
|
|
7808
7856
|
module2.exports = {
|
|
7809
7857
|
name: "axios",
|
|
7810
7858
|
version: "0.21.4",
|
|
@@ -7892,9 +7940,9 @@ var require_package = __commonJS({
|
|
|
7892
7940
|
}
|
|
7893
7941
|
});
|
|
7894
7942
|
|
|
7895
|
-
// ../../node_modules
|
|
7943
|
+
// ../../node_modules/axios/lib/adapters/http.js
|
|
7896
7944
|
var require_http = __commonJS({
|
|
7897
|
-
"../../node_modules
|
|
7945
|
+
"../../node_modules/axios/lib/adapters/http.js"(exports2, module2) {
|
|
7898
7946
|
"use strict";
|
|
7899
7947
|
var utils = require_utils2();
|
|
7900
7948
|
var settle = require_settle();
|
|
@@ -8508,9 +8556,9 @@ var require_dist2 = __commonJS({
|
|
|
8508
8556
|
}
|
|
8509
8557
|
});
|
|
8510
8558
|
|
|
8511
|
-
// ../../node_modules
|
|
8559
|
+
// ../../node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
8512
8560
|
var require_parse_proxy_response = __commonJS({
|
|
8513
|
-
"../../node_modules
|
|
8561
|
+
"../../node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports2) {
|
|
8514
8562
|
"use strict";
|
|
8515
8563
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
8516
8564
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -8604,9 +8652,9 @@ var require_parse_proxy_response = __commonJS({
|
|
|
8604
8652
|
}
|
|
8605
8653
|
});
|
|
8606
8654
|
|
|
8607
|
-
// ../../node_modules
|
|
8655
|
+
// ../../node_modules/https-proxy-agent/dist/index.js
|
|
8608
8656
|
var require_dist3 = __commonJS({
|
|
8609
|
-
"../../node_modules
|
|
8657
|
+
"../../node_modules/https-proxy-agent/dist/index.js"(exports2) {
|
|
8610
8658
|
"use strict";
|
|
8611
8659
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
8612
8660
|
if (k2 === void 0) k2 = k;
|
|
@@ -8754,9 +8802,9 @@ var require_dist3 = __commonJS({
|
|
|
8754
8802
|
}
|
|
8755
8803
|
});
|
|
8756
8804
|
|
|
8757
|
-
// ../../node_modules
|
|
8805
|
+
// ../../node_modules/axios/lib/core/InterceptorManager.js
|
|
8758
8806
|
var require_InterceptorManager = __commonJS({
|
|
8759
|
-
"../../node_modules
|
|
8807
|
+
"../../node_modules/axios/lib/core/InterceptorManager.js"(exports2, module2) {
|
|
8760
8808
|
"use strict";
|
|
8761
8809
|
var utils = require_utils2();
|
|
8762
8810
|
function InterceptorManager() {
|
|
@@ -8787,9 +8835,9 @@ var require_InterceptorManager = __commonJS({
|
|
|
8787
8835
|
}
|
|
8788
8836
|
});
|
|
8789
8837
|
|
|
8790
|
-
// ../../node_modules
|
|
8838
|
+
// ../../node_modules/axios/lib/helpers/normalizeHeaderName.js
|
|
8791
8839
|
var require_normalizeHeaderName = __commonJS({
|
|
8792
|
-
"../../node_modules
|
|
8840
|
+
"../../node_modules/axios/lib/helpers/normalizeHeaderName.js"(exports2, module2) {
|
|
8793
8841
|
"use strict";
|
|
8794
8842
|
var utils = require_utils2();
|
|
8795
8843
|
module2.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
@@ -8803,9 +8851,9 @@ var require_normalizeHeaderName = __commonJS({
|
|
|
8803
8851
|
}
|
|
8804
8852
|
});
|
|
8805
8853
|
|
|
8806
|
-
// ../../node_modules
|
|
8854
|
+
// ../../node_modules/axios/lib/helpers/cookies.js
|
|
8807
8855
|
var require_cookies = __commonJS({
|
|
8808
|
-
"../../node_modules
|
|
8856
|
+
"../../node_modules/axios/lib/helpers/cookies.js"(exports2, module2) {
|
|
8809
8857
|
"use strict";
|
|
8810
8858
|
var utils = require_utils2();
|
|
8811
8859
|
module2.exports = utils.isStandardBrowserEnv() ? (
|
|
@@ -8855,9 +8903,9 @@ var require_cookies = __commonJS({
|
|
|
8855
8903
|
}
|
|
8856
8904
|
});
|
|
8857
8905
|
|
|
8858
|
-
// ../../node_modules
|
|
8906
|
+
// ../../node_modules/axios/lib/helpers/parseHeaders.js
|
|
8859
8907
|
var require_parseHeaders = __commonJS({
|
|
8860
|
-
"../../node_modules
|
|
8908
|
+
"../../node_modules/axios/lib/helpers/parseHeaders.js"(exports2, module2) {
|
|
8861
8909
|
"use strict";
|
|
8862
8910
|
var utils = require_utils2();
|
|
8863
8911
|
var ignoreDuplicateOf = [
|
|
@@ -8907,9 +8955,9 @@ var require_parseHeaders = __commonJS({
|
|
|
8907
8955
|
}
|
|
8908
8956
|
});
|
|
8909
8957
|
|
|
8910
|
-
// ../../node_modules
|
|
8958
|
+
// ../../node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
8911
8959
|
var require_isURLSameOrigin = __commonJS({
|
|
8912
|
-
"../../node_modules
|
|
8960
|
+
"../../node_modules/axios/lib/helpers/isURLSameOrigin.js"(exports2, module2) {
|
|
8913
8961
|
"use strict";
|
|
8914
8962
|
var utils = require_utils2();
|
|
8915
8963
|
module2.exports = utils.isStandardBrowserEnv() ? (
|
|
@@ -8954,9 +9002,9 @@ var require_isURLSameOrigin = __commonJS({
|
|
|
8954
9002
|
}
|
|
8955
9003
|
});
|
|
8956
9004
|
|
|
8957
|
-
// ../../node_modules
|
|
9005
|
+
// ../../node_modules/axios/lib/adapters/xhr.js
|
|
8958
9006
|
var require_xhr = __commonJS({
|
|
8959
|
-
"../../node_modules
|
|
9007
|
+
"../../node_modules/axios/lib/adapters/xhr.js"(exports2, module2) {
|
|
8960
9008
|
"use strict";
|
|
8961
9009
|
var utils = require_utils2();
|
|
8962
9010
|
var settle = require_settle();
|
|
@@ -9083,9 +9131,9 @@ var require_xhr = __commonJS({
|
|
|
9083
9131
|
}
|
|
9084
9132
|
});
|
|
9085
9133
|
|
|
9086
|
-
// ../../node_modules
|
|
9134
|
+
// ../../node_modules/axios/lib/defaults.js
|
|
9087
9135
|
var require_defaults = __commonJS({
|
|
9088
|
-
"../../node_modules
|
|
9136
|
+
"../../node_modules/axios/lib/defaults.js"(exports2, module2) {
|
|
9089
9137
|
"use strict";
|
|
9090
9138
|
var utils = require_utils2();
|
|
9091
9139
|
var normalizeHeaderName = require_normalizeHeaderName();
|
|
@@ -9193,9 +9241,9 @@ var require_defaults = __commonJS({
|
|
|
9193
9241
|
}
|
|
9194
9242
|
});
|
|
9195
9243
|
|
|
9196
|
-
// ../../node_modules
|
|
9244
|
+
// ../../node_modules/axios/lib/core/transformData.js
|
|
9197
9245
|
var require_transformData = __commonJS({
|
|
9198
|
-
"../../node_modules
|
|
9246
|
+
"../../node_modules/axios/lib/core/transformData.js"(exports2, module2) {
|
|
9199
9247
|
"use strict";
|
|
9200
9248
|
var utils = require_utils2();
|
|
9201
9249
|
var defaults2 = require_defaults();
|
|
@@ -9209,9 +9257,9 @@ var require_transformData = __commonJS({
|
|
|
9209
9257
|
}
|
|
9210
9258
|
});
|
|
9211
9259
|
|
|
9212
|
-
// ../../node_modules
|
|
9260
|
+
// ../../node_modules/axios/lib/cancel/isCancel.js
|
|
9213
9261
|
var require_isCancel = __commonJS({
|
|
9214
|
-
"../../node_modules
|
|
9262
|
+
"../../node_modules/axios/lib/cancel/isCancel.js"(exports2, module2) {
|
|
9215
9263
|
"use strict";
|
|
9216
9264
|
module2.exports = function isCancel(value) {
|
|
9217
9265
|
return !!(value && value.__CANCEL__);
|
|
@@ -9219,9 +9267,9 @@ var require_isCancel = __commonJS({
|
|
|
9219
9267
|
}
|
|
9220
9268
|
});
|
|
9221
9269
|
|
|
9222
|
-
// ../../node_modules
|
|
9270
|
+
// ../../node_modules/axios/lib/core/dispatchRequest.js
|
|
9223
9271
|
var require_dispatchRequest = __commonJS({
|
|
9224
|
-
"../../node_modules
|
|
9272
|
+
"../../node_modules/axios/lib/core/dispatchRequest.js"(exports2, module2) {
|
|
9225
9273
|
"use strict";
|
|
9226
9274
|
var utils = require_utils2();
|
|
9227
9275
|
var transformData = require_transformData();
|
|
@@ -9280,9 +9328,9 @@ var require_dispatchRequest = __commonJS({
|
|
|
9280
9328
|
}
|
|
9281
9329
|
});
|
|
9282
9330
|
|
|
9283
|
-
// ../../node_modules
|
|
9331
|
+
// ../../node_modules/axios/lib/core/mergeConfig.js
|
|
9284
9332
|
var require_mergeConfig = __commonJS({
|
|
9285
|
-
"../../node_modules
|
|
9333
|
+
"../../node_modules/axios/lib/core/mergeConfig.js"(exports2, module2) {
|
|
9286
9334
|
"use strict";
|
|
9287
9335
|
var utils = require_utils2();
|
|
9288
9336
|
module2.exports = function mergeConfig(config1, config2) {
|
|
@@ -9363,9 +9411,9 @@ var require_mergeConfig = __commonJS({
|
|
|
9363
9411
|
}
|
|
9364
9412
|
});
|
|
9365
9413
|
|
|
9366
|
-
// ../../node_modules
|
|
9414
|
+
// ../../node_modules/axios/lib/helpers/validator.js
|
|
9367
9415
|
var require_validator = __commonJS({
|
|
9368
|
-
"../../node_modules
|
|
9416
|
+
"../../node_modules/axios/lib/helpers/validator.js"(exports2, module2) {
|
|
9369
9417
|
"use strict";
|
|
9370
9418
|
var pkg = require_package();
|
|
9371
9419
|
var validators = {};
|
|
@@ -9439,9 +9487,9 @@ var require_validator = __commonJS({
|
|
|
9439
9487
|
}
|
|
9440
9488
|
});
|
|
9441
9489
|
|
|
9442
|
-
// ../../node_modules
|
|
9490
|
+
// ../../node_modules/axios/lib/core/Axios.js
|
|
9443
9491
|
var require_Axios = __commonJS({
|
|
9444
|
-
"../../node_modules
|
|
9492
|
+
"../../node_modules/axios/lib/core/Axios.js"(exports2, module2) {
|
|
9445
9493
|
"use strict";
|
|
9446
9494
|
var utils = require_utils2();
|
|
9447
9495
|
var buildURL = require_buildURL();
|
|
@@ -9551,9 +9599,9 @@ var require_Axios = __commonJS({
|
|
|
9551
9599
|
}
|
|
9552
9600
|
});
|
|
9553
9601
|
|
|
9554
|
-
// ../../node_modules
|
|
9602
|
+
// ../../node_modules/axios/lib/cancel/Cancel.js
|
|
9555
9603
|
var require_Cancel = __commonJS({
|
|
9556
|
-
"../../node_modules
|
|
9604
|
+
"../../node_modules/axios/lib/cancel/Cancel.js"(exports2, module2) {
|
|
9557
9605
|
"use strict";
|
|
9558
9606
|
function Cancel(message) {
|
|
9559
9607
|
this.message = message;
|
|
@@ -9566,9 +9614,9 @@ var require_Cancel = __commonJS({
|
|
|
9566
9614
|
}
|
|
9567
9615
|
});
|
|
9568
9616
|
|
|
9569
|
-
// ../../node_modules
|
|
9617
|
+
// ../../node_modules/axios/lib/cancel/CancelToken.js
|
|
9570
9618
|
var require_CancelToken = __commonJS({
|
|
9571
|
-
"../../node_modules
|
|
9619
|
+
"../../node_modules/axios/lib/cancel/CancelToken.js"(exports2, module2) {
|
|
9572
9620
|
"use strict";
|
|
9573
9621
|
var Cancel = require_Cancel();
|
|
9574
9622
|
function CancelToken(executor) {
|
|
@@ -9607,9 +9655,9 @@ var require_CancelToken = __commonJS({
|
|
|
9607
9655
|
}
|
|
9608
9656
|
});
|
|
9609
9657
|
|
|
9610
|
-
// ../../node_modules
|
|
9658
|
+
// ../../node_modules/axios/lib/helpers/spread.js
|
|
9611
9659
|
var require_spread = __commonJS({
|
|
9612
|
-
"../../node_modules
|
|
9660
|
+
"../../node_modules/axios/lib/helpers/spread.js"(exports2, module2) {
|
|
9613
9661
|
"use strict";
|
|
9614
9662
|
module2.exports = function spread(callback) {
|
|
9615
9663
|
return function wrap(arr2) {
|
|
@@ -9619,9 +9667,9 @@ var require_spread = __commonJS({
|
|
|
9619
9667
|
}
|
|
9620
9668
|
});
|
|
9621
9669
|
|
|
9622
|
-
// ../../node_modules
|
|
9670
|
+
// ../../node_modules/axios/lib/helpers/isAxiosError.js
|
|
9623
9671
|
var require_isAxiosError = __commonJS({
|
|
9624
|
-
"../../node_modules
|
|
9672
|
+
"../../node_modules/axios/lib/helpers/isAxiosError.js"(exports2, module2) {
|
|
9625
9673
|
"use strict";
|
|
9626
9674
|
module2.exports = function isAxiosError2(payload) {
|
|
9627
9675
|
return typeof payload === "object" && payload.isAxiosError === true;
|
|
@@ -9629,9 +9677,9 @@ var require_isAxiosError = __commonJS({
|
|
|
9629
9677
|
}
|
|
9630
9678
|
});
|
|
9631
9679
|
|
|
9632
|
-
// ../../node_modules
|
|
9680
|
+
// ../../node_modules/axios/lib/axios.js
|
|
9633
9681
|
var require_axios = __commonJS({
|
|
9634
|
-
"../../node_modules
|
|
9682
|
+
"../../node_modules/axios/lib/axios.js"(exports2, module2) {
|
|
9635
9683
|
"use strict";
|
|
9636
9684
|
var utils = require_utils2();
|
|
9637
9685
|
var bind = require_bind();
|
|
@@ -9663,9 +9711,9 @@ var require_axios = __commonJS({
|
|
|
9663
9711
|
}
|
|
9664
9712
|
});
|
|
9665
9713
|
|
|
9666
|
-
// ../../node_modules
|
|
9714
|
+
// ../../node_modules/axios/index.js
|
|
9667
9715
|
var require_axios2 = __commonJS({
|
|
9668
|
-
"../../node_modules
|
|
9716
|
+
"../../node_modules/axios/index.js"(exports2, module2) {
|
|
9669
9717
|
"use strict";
|
|
9670
9718
|
module2.exports = require_axios();
|
|
9671
9719
|
}
|
|
@@ -9780,7 +9828,8 @@ var require_http_client = __commonJS({
|
|
|
9780
9828
|
"../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/http-client.js"(exports2) {
|
|
9781
9829
|
"use strict";
|
|
9782
9830
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9783
|
-
exports2.
|
|
9831
|
+
exports2.HttpClient = void 0;
|
|
9832
|
+
exports2.createHttpClient = createHttpClient;
|
|
9784
9833
|
var tslib_1 = require("tslib");
|
|
9785
9834
|
var axios_1 = tslib_1.__importDefault(require_axios2());
|
|
9786
9835
|
var xhr_1 = tslib_1.__importDefault(require_xhr());
|
|
@@ -9791,6 +9840,9 @@ var require_http_client = __commonJS({
|
|
|
9791
9840
|
var options_1 = require_options();
|
|
9792
9841
|
var utils_1 = require_utils();
|
|
9793
9842
|
var HttpClient = class {
|
|
9843
|
+
static isHttpError(payload) {
|
|
9844
|
+
return !!(payload === null || payload === void 0 ? void 0 : payload.isWixHttpError);
|
|
9845
|
+
}
|
|
9794
9846
|
constructor(opts = {}) {
|
|
9795
9847
|
this.opts = opts;
|
|
9796
9848
|
this.opts = defaultClientOptions(this.opts);
|
|
@@ -9799,9 +9851,6 @@ var require_http_client = __commonJS({
|
|
|
9799
9851
|
sanitizerPocEnabled: checkSanitizerPocEnabled()
|
|
9800
9852
|
};
|
|
9801
9853
|
}
|
|
9802
|
-
static isHttpError(payload) {
|
|
9803
|
-
return !!(payload === null || payload === void 0 ? void 0 : payload.isWixHttpError);
|
|
9804
|
-
}
|
|
9805
9854
|
setErrorHandler(errorHandler) {
|
|
9806
9855
|
this.opts.errorHandler = errorHandler;
|
|
9807
9856
|
}
|
|
@@ -9876,6 +9925,7 @@ var require_http_client = __commonJS({
|
|
|
9876
9925
|
return axios_1.default.isCancel;
|
|
9877
9926
|
}
|
|
9878
9927
|
getHeaders(requestOptions, signedInstance, urlObject) {
|
|
9928
|
+
var _a, _b;
|
|
9879
9929
|
if (typeof this.opts.createHeaders === "function") {
|
|
9880
9930
|
return this.getCustomHeaders(requestOptions, signedInstance, urlObject);
|
|
9881
9931
|
}
|
|
@@ -9883,7 +9933,8 @@ var require_http_client = __commonJS({
|
|
|
9883
9933
|
signedInstance,
|
|
9884
9934
|
artifactId: this.opts.artifactId,
|
|
9885
9935
|
csrf: false,
|
|
9886
|
-
multilingualOptions: this.opts.multilingualOptions
|
|
9936
|
+
multilingualOptions: this.opts.multilingualOptions,
|
|
9937
|
+
currency: (_b = (_a = this.opts).getCurrency) === null || _b === void 0 ? void 0 : _b.call(_a)
|
|
9887
9938
|
};
|
|
9888
9939
|
return (0, options_1.buildAllHeaders)(requestOptions, wixHeadersOpts, (0, utils_1.getGlobalConfig)(), urlObject);
|
|
9889
9940
|
}
|
|
@@ -10005,7 +10056,6 @@ var require_http_client = __commonJS({
|
|
|
10005
10056
|
function createHttpClient(...args) {
|
|
10006
10057
|
return new HttpClient(...args);
|
|
10007
10058
|
}
|
|
10008
|
-
exports2.createHttpClient = createHttpClient;
|
|
10009
10059
|
}
|
|
10010
10060
|
});
|
|
10011
10061
|
|
|
@@ -10014,7 +10064,8 @@ var require_http_client_node = __commonJS({
|
|
|
10014
10064
|
"../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/http-client-node.js"(exports2) {
|
|
10015
10065
|
"use strict";
|
|
10016
10066
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10017
|
-
exports2.HttpClient =
|
|
10067
|
+
exports2.HttpClient = void 0;
|
|
10068
|
+
exports2.createHttpClient = createHttpClientNode;
|
|
10018
10069
|
var tslib_1 = require("tslib");
|
|
10019
10070
|
var http_1 = tslib_1.__importDefault(require_http());
|
|
10020
10071
|
var http_proxy_agent_1 = require_dist2();
|
|
@@ -10034,7 +10085,7 @@ var require_http_client_node = __commonJS({
|
|
|
10034
10085
|
* will retry in 1 second.
|
|
10035
10086
|
*/
|
|
10036
10087
|
reportProxyMetric(injectedMeasured, proxyOptions, triesCount = 1) {
|
|
10037
|
-
const gaugeName = !(proxyOptions === null || proxyOptions === void 0 ? void 0 : proxyOptions.httpsAgent) ? "NoProxy" : "Proxy";
|
|
10088
|
+
const gaugeName = !(proxyOptions === null || proxyOptions === void 0 ? void 0 : proxyOptions.httpsAgent) && !(proxyOptions === null || proxyOptions === void 0 ? void 0 : proxyOptions.httpAgent) ? "NoProxy" : "Proxy";
|
|
10038
10089
|
const gauge = initHttpClientInfoGauge(gaugeName, injectedMeasured);
|
|
10039
10090
|
if (gauge) {
|
|
10040
10091
|
gauge(1);
|
|
@@ -10049,18 +10100,36 @@ var require_http_client_node = __commonJS({
|
|
|
10049
10100
|
function createHttpClientNode(...args) {
|
|
10050
10101
|
return new HttpClientNode(...args);
|
|
10051
10102
|
}
|
|
10052
|
-
exports2.createHttpClient = createHttpClientNode;
|
|
10053
10103
|
function resolveProxyOptions(disableSquidProxy) {
|
|
10104
|
+
if (disableSquidProxy) {
|
|
10105
|
+
return {};
|
|
10106
|
+
}
|
|
10054
10107
|
const proxyUrlAsString = process.env.WIX_HTTP_CLIENT_PROXY_URL;
|
|
10055
|
-
if (
|
|
10108
|
+
if (proxyUrlAsString === null || proxyUrlAsString === void 0 ? void 0 : proxyUrlAsString.length) {
|
|
10109
|
+
const fullProxyUrl = resolveProxyUrl(proxyUrlAsString);
|
|
10110
|
+
return {
|
|
10111
|
+
// please see axios issue - https://github.com/axios/axios/issues/925#issuecomment-359982190
|
|
10112
|
+
httpsAgent: new https_proxy_agent_1.HttpsProxyAgent(fullProxyUrl),
|
|
10113
|
+
httpAgent: new http_proxy_agent_1.HttpProxyAgent(fullProxyUrl)
|
|
10114
|
+
};
|
|
10115
|
+
}
|
|
10116
|
+
return resolveStandardProxyOptions();
|
|
10117
|
+
}
|
|
10118
|
+
function resolveStandardProxyOptions() {
|
|
10119
|
+
var _a, _b, _c;
|
|
10120
|
+
const httpProxy = (_a = process.env.HTTP_PROXY) !== null && _a !== void 0 ? _a : process.env.http_proxy;
|
|
10121
|
+
const httpsProxy = (_c = (_b = process.env.HTTPS_PROXY) !== null && _b !== void 0 ? _b : process.env.https_proxy) !== null && _c !== void 0 ? _c : httpProxy;
|
|
10122
|
+
if (!httpsProxy && !httpProxy) {
|
|
10056
10123
|
return {};
|
|
10057
10124
|
}
|
|
10058
|
-
const
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
10125
|
+
const options = { proxy: false };
|
|
10126
|
+
if (httpsProxy) {
|
|
10127
|
+
options.httpsAgent = new https_proxy_agent_1.HttpsProxyAgent(httpsProxy);
|
|
10128
|
+
}
|
|
10129
|
+
if (httpProxy) {
|
|
10130
|
+
options.httpAgent = new http_proxy_agent_1.HttpProxyAgent(httpProxy);
|
|
10131
|
+
}
|
|
10132
|
+
return options;
|
|
10064
10133
|
}
|
|
10065
10134
|
function resolveProxyUrl(proxyUrl) {
|
|
10066
10135
|
if (proxyUrl.startsWith("http")) {
|
|
@@ -10099,8 +10168,15 @@ var require_index_node = __commonJS({
|
|
|
10099
10168
|
"../../node_modules/@wix/http-client-testkit/node_modules/@wix/http-client/dist/src/index-node.js"(exports2) {
|
|
10100
10169
|
"use strict";
|
|
10101
10170
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10102
|
-
exports2.HttpClient = exports2.createHttpClient = exports2.HttpError = exports2.createHttpError = exports2.ORIGINAL_URL_HEADER = exports2.ORIGINAL_PROTOCOL_HEADER = exports2.ORIGINAL_HOST_HEADER = void 0;
|
|
10171
|
+
exports2.HttpClient = exports2.createHttpClient = exports2.HttpError = exports2.createHttpError = exports2.ORIGINAL_URL_HEADER = exports2.ORIGINAL_PROTOCOL_HEADER = exports2.ORIGINAL_HOST_HEADER = exports2.asAmbassadorModules = exports2.asAmbassadorModule = void 0;
|
|
10103
10172
|
var tslib_1 = require("tslib");
|
|
10173
|
+
var ambassador_sdk_1 = require_ambassador_sdk();
|
|
10174
|
+
Object.defineProperty(exports2, "asAmbassadorModule", { enumerable: true, get: function() {
|
|
10175
|
+
return ambassador_sdk_1.asAmbassadorModule;
|
|
10176
|
+
} });
|
|
10177
|
+
Object.defineProperty(exports2, "asAmbassadorModules", { enumerable: true, get: function() {
|
|
10178
|
+
return ambassador_sdk_1.asAmbassadorModules;
|
|
10179
|
+
} });
|
|
10104
10180
|
var constants_1 = require_constants();
|
|
10105
10181
|
Object.defineProperty(exports2, "ORIGINAL_HOST_HEADER", { enumerable: true, get: function() {
|
|
10106
10182
|
return constants_1.ORIGINAL_HOST_HEADER;
|
|
@@ -11432,6 +11508,7 @@ var require_browser2 = __commonJS({
|
|
|
11432
11508
|
"use strict";
|
|
11433
11509
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11434
11510
|
exports2.readCookie = exports2.sendBeacon = exports2.getWindowSize = exports2.getDesktopSize = exports2.now = void 0;
|
|
11511
|
+
var utils_1 = require_utils3();
|
|
11435
11512
|
function now2() {
|
|
11436
11513
|
return typeof performance !== "undefined" && performance && performance.now ? performance.now() : -1;
|
|
11437
11514
|
}
|
|
@@ -11468,7 +11545,7 @@ var require_browser2 = __commonJS({
|
|
|
11468
11545
|
}
|
|
11469
11546
|
exports2.sendBeacon = sendBeacon2;
|
|
11470
11547
|
function readCookie2(cookieName) {
|
|
11471
|
-
if (typeof document === "undefined") {
|
|
11548
|
+
if ((0, utils_1.isDataProtocol)() || typeof document === "undefined") {
|
|
11472
11549
|
return null;
|
|
11473
11550
|
}
|
|
11474
11551
|
if (window.__ENABLE_COOKIE_READ_OPTIMIZATION__ && window.__BI_cookie_cache && window.__BI_cookie_cache[cookieName] !== void 0) {
|
|
@@ -11504,8 +11581,8 @@ var require_constants2 = __commonJS({
|
|
|
11504
11581
|
"../../node_modules/@wix/web-bi-logger/dist/src/constants.js"(exports2) {
|
|
11505
11582
|
"use strict";
|
|
11506
11583
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11507
|
-
exports2.DefaultCommonConfig = exports2.BrandToHostMap = exports2.HeadlessHost = exports2.DefaultBrand = exports2.EventContextMap = exports2.BackofficeDomains = exports2.LoggerVersion = void 0;
|
|
11508
|
-
exports2.LoggerVersion = "2.0.
|
|
11584
|
+
exports2.DefaultCommonConfig = exports2.BrandToDomainMap = exports2.BrandToHostMap = exports2.HeadlessHost = exports2.DefaultScreenResolution = exports2.DefaultBrand = exports2.EventContextMap = exports2.BackofficeDomains = exports2.LoggerVersion = void 0;
|
|
11585
|
+
exports2.LoggerVersion = "2.0.987|C";
|
|
11509
11586
|
exports2.BackofficeDomains = [".wix.com", ".editorx.com"];
|
|
11510
11587
|
var EventContextMap;
|
|
11511
11588
|
(function(EventContextMap2) {
|
|
@@ -11516,16 +11593,22 @@ var require_constants2 = __commonJS({
|
|
|
11516
11593
|
EventContextMap2["siteMemberId"] = "_siteMemberId";
|
|
11517
11594
|
EventContextMap2["brandId"] = "_brandId";
|
|
11518
11595
|
EventContextMap2["siteBranchId"] = "_siteBranchId";
|
|
11596
|
+
EventContextMap2["screenResolution"] = "_sr";
|
|
11519
11597
|
EventContextMap2["ms"] = "_ms";
|
|
11520
11598
|
EventContextMap2["lv"] = "_lv";
|
|
11521
11599
|
EventContextMap2["isHeadless"] = "_isHeadless";
|
|
11522
11600
|
EventContextMap2["hostingPlatform"] = "_hostingPlatform";
|
|
11523
11601
|
})(EventContextMap = exports2.EventContextMap || (exports2.EventContextMap = {}));
|
|
11524
11602
|
exports2.DefaultBrand = "wix";
|
|
11603
|
+
exports2.DefaultScreenResolution = "0x0";
|
|
11525
11604
|
exports2.HeadlessHost = "VIEWER_HEADLESS";
|
|
11526
11605
|
exports2.BrandToHostMap = {
|
|
11527
11606
|
wix: "wix",
|
|
11528
|
-
editorx: "editorx"
|
|
11607
|
+
editorx: "editorx",
|
|
11608
|
+
base44: "base44"
|
|
11609
|
+
};
|
|
11610
|
+
exports2.BrandToDomainMap = {
|
|
11611
|
+
base44: /\.base44\.com$/
|
|
11529
11612
|
};
|
|
11530
11613
|
exports2.DefaultCommonConfig = {
|
|
11531
11614
|
brand: exports2.DefaultBrand
|
|
@@ -11538,7 +11621,7 @@ var require_env = __commonJS({
|
|
|
11538
11621
|
"../../node_modules/@wix/web-bi-logger/dist/src/lib/env.js"(exports2) {
|
|
11539
11622
|
"use strict";
|
|
11540
11623
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11541
|
-
exports2.getGlobal = exports2.getWindowIfTop = exports2.isBackoffice = exports2.isWebWorker = exports2.getHost = exports2.setHost = void 0;
|
|
11624
|
+
exports2.getGlobal = exports2.getWindowIfTop = exports2.isBackoffice = exports2.isWebWorker = exports2.getBrandByDomain = exports2.getHost = exports2.setHost = void 0;
|
|
11542
11625
|
var constants_1 = require_constants2();
|
|
11543
11626
|
var host;
|
|
11544
11627
|
var hostByDomain;
|
|
@@ -11559,7 +11642,7 @@ var require_env = __commonJS({
|
|
|
11559
11642
|
if (!window2.location || !window2.location.hostname) {
|
|
11560
11643
|
return null;
|
|
11561
11644
|
}
|
|
11562
|
-
var _a = window2.location.hostname.match(/\.(wix|editorx)\.com$/) || [], domain = _a[1];
|
|
11645
|
+
var _a = window2.location.hostname.match(/\.(wix|editorx|base44)\.com$/) || [], domain = _a[1];
|
|
11563
11646
|
return domain || null;
|
|
11564
11647
|
}, null);
|
|
11565
11648
|
}
|
|
@@ -11567,6 +11650,17 @@ var require_env = __commonJS({
|
|
|
11567
11650
|
return "frog.".concat(hostByDomainOrBrand, ".com");
|
|
11568
11651
|
}
|
|
11569
11652
|
exports2.getHost = getHost;
|
|
11653
|
+
function getBrandByDomain() {
|
|
11654
|
+
return getGlobal2(function(global2) {
|
|
11655
|
+
if (!global2.location || !global2.location.hostname) {
|
|
11656
|
+
return null;
|
|
11657
|
+
}
|
|
11658
|
+
return Object.keys(constants_1.BrandToDomainMap).find(function(brand) {
|
|
11659
|
+
return constants_1.BrandToDomainMap[brand].test(global2.location.hostname);
|
|
11660
|
+
}) || null;
|
|
11661
|
+
}, null);
|
|
11662
|
+
}
|
|
11663
|
+
exports2.getBrandByDomain = getBrandByDomain;
|
|
11570
11664
|
function isWebWorker() {
|
|
11571
11665
|
return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope;
|
|
11572
11666
|
}
|
|
@@ -11609,7 +11703,7 @@ var require_utils3 = __commonJS({
|
|
|
11609
11703
|
"../../node_modules/@wix/web-bi-logger/dist/src/lib/utils.js"(exports2) {
|
|
11610
11704
|
"use strict";
|
|
11611
11705
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11612
|
-
exports2.guid = exports2.buildBiUrl = exports2.getCookies = void 0;
|
|
11706
|
+
exports2.guid = exports2.isDataProtocol = exports2.buildBiUrl = exports2.getCookies = void 0;
|
|
11613
11707
|
var browser_1 = require_browser2();
|
|
11614
11708
|
var env_1 = require_env();
|
|
11615
11709
|
var cacheKillerCounter = 0;
|
|
@@ -11640,9 +11734,17 @@ var require_utils3 = __commonJS({
|
|
|
11640
11734
|
var pairs = context.useBatch ? [] : Object.keys(params).map(function(key) {
|
|
11641
11735
|
return "".concat(encodeURIComponent(key), "=").concat(encodeURIComponent(params[key]));
|
|
11642
11736
|
}, []);
|
|
11643
|
-
|
|
11737
|
+
var url = ["//".concat(host, "/").concat(endpoint)].concat(pairs.length ? pairs.join("&") : []).join("?");
|
|
11738
|
+
if (url.startsWith("//") && isDataProtocol()) {
|
|
11739
|
+
url = "https:" + url;
|
|
11740
|
+
}
|
|
11741
|
+
return url;
|
|
11644
11742
|
}
|
|
11645
11743
|
exports2.buildBiUrl = buildBiUrl;
|
|
11744
|
+
function isDataProtocol() {
|
|
11745
|
+
return typeof window !== "undefined" && (window === null || window === void 0 ? void 0 : window.location.protocol) === "data:";
|
|
11746
|
+
}
|
|
11747
|
+
exports2.isDataProtocol = isDataProtocol;
|
|
11646
11748
|
function guid() {
|
|
11647
11749
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
|
|
11648
11750
|
var r = Math.random() * 16 | 0;
|
|
@@ -11941,19 +12043,22 @@ var require_common_config = __commonJS({
|
|
|
11941
12043
|
return g.Wix && g.Wix.Utils && g.Wix.Utils.commonConfig || g.commonConfig;
|
|
11942
12044
|
});
|
|
11943
12045
|
};
|
|
11944
|
-
var getCommonConfigValue = function(key, commonConfig2) {
|
|
12046
|
+
var getCommonConfigValue = function(key, commonConfig2, defaultValue) {
|
|
11945
12047
|
if (commonConfig2 === void 0) {
|
|
11946
12048
|
commonConfig2 = resolveCommonConfig();
|
|
11947
12049
|
}
|
|
12050
|
+
if (defaultValue === void 0) {
|
|
12051
|
+
defaultValue = constants_1.DefaultCommonConfig[key];
|
|
12052
|
+
}
|
|
11948
12053
|
commonConfig2 = commonConfig2 && typeof commonConfig2.getAll === "function" ? commonConfig2.getAll() : commonConfig2;
|
|
11949
12054
|
if (!commonConfig2 || typeof commonConfig2[key] === "undefined") {
|
|
11950
|
-
return
|
|
12055
|
+
return defaultValue;
|
|
11951
12056
|
}
|
|
11952
12057
|
return commonConfig2[key];
|
|
11953
12058
|
};
|
|
11954
12059
|
exports2.getCommonConfigValue = getCommonConfigValue;
|
|
11955
12060
|
var getBrand = function(commonConfigGetter) {
|
|
11956
|
-
return (0, exports2.getCommonConfigValue)("brand", commonConfigGetter());
|
|
12061
|
+
return (0, exports2.getCommonConfigValue)("brand", commonConfigGetter(), (0, env_1.getBrandByDomain)() || constants_1.DefaultBrand);
|
|
11957
12062
|
};
|
|
11958
12063
|
exports2.getBrand = getBrand;
|
|
11959
12064
|
var getBranchId = function(commonConfigGetter) {
|
|
@@ -11976,6 +12081,7 @@ var require_event_defaults = __commonJS({
|
|
|
11976
12081
|
var constants_1 = require_constants2();
|
|
11977
12082
|
var browser_1 = require_browser2();
|
|
11978
12083
|
var common_config_1 = require_common_config();
|
|
12084
|
+
var env_1 = require_env();
|
|
11979
12085
|
var utils_1 = require_utils3();
|
|
11980
12086
|
var transformDefaults = function(context) {
|
|
11981
12087
|
return Object.keys(context).reduce(function(res, key) {
|
|
@@ -12005,6 +12111,9 @@ var require_event_defaults = __commonJS({
|
|
|
12005
12111
|
siteBranchId: function() {
|
|
12006
12112
|
return (0, common_config_1.getBranchId)(commonConfigGetter);
|
|
12007
12113
|
},
|
|
12114
|
+
screenResolution: function() {
|
|
12115
|
+
return resolveScreenResolution();
|
|
12116
|
+
},
|
|
12008
12117
|
ms: function() {
|
|
12009
12118
|
return Math.round((0, browser_1.now)());
|
|
12010
12119
|
},
|
|
@@ -12021,6 +12130,11 @@ var require_event_defaults = __commonJS({
|
|
|
12021
12130
|
var resolveIsHeadless = function(commonConfigGetter) {
|
|
12022
12131
|
return (0, common_config_1.getWixHost)(commonConfigGetter) === constants_1.HeadlessHost || void 0;
|
|
12023
12132
|
};
|
|
12133
|
+
var resolveScreenResolution = function() {
|
|
12134
|
+
return (0, env_1.getWindowIfTop)(function(window2) {
|
|
12135
|
+
return (0, browser_1.getDesktopSize)(window2);
|
|
12136
|
+
}) || constants_1.DefaultScreenResolution;
|
|
12137
|
+
};
|
|
12024
12138
|
}
|
|
12025
12139
|
});
|
|
12026
12140
|
|
|
@@ -12208,123 +12322,996 @@ var require_logger = __commonJS({
|
|
|
12208
12322
|
}
|
|
12209
12323
|
});
|
|
12210
12324
|
|
|
12211
|
-
// ../../node_modules/@wix/web-bi-logger/dist/src/lib/
|
|
12212
|
-
var
|
|
12213
|
-
"../../node_modules/@wix/web-bi-logger/dist/src/lib/
|
|
12214
|
-
"use strict";
|
|
12215
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12216
|
-
exports2.listen = void 0;
|
|
12217
|
-
var env_1 = require_env();
|
|
12218
|
-
function hook(obj, fnName, cbHook) {
|
|
12219
|
-
if (!obj || !obj[fnName]) {
|
|
12220
|
-
return;
|
|
12221
|
-
}
|
|
12222
|
-
var original = obj[fnName];
|
|
12223
|
-
obj[fnName] = function() {
|
|
12224
|
-
cbHook.apply(null, arguments);
|
|
12225
|
-
return original.apply(obj, arguments);
|
|
12226
|
-
};
|
|
12227
|
-
}
|
|
12228
|
-
function onLoad(cb) {
|
|
12229
|
-
setTimeout(function() {
|
|
12230
|
-
return (0, env_1.getWindowIfTop)(function(window2) {
|
|
12231
|
-
return cb(window2.location.href);
|
|
12232
|
-
});
|
|
12233
|
-
});
|
|
12234
|
-
}
|
|
12235
|
-
function onPushState(cb) {
|
|
12236
|
-
(0, env_1.getWindowIfTop)(function(_a) {
|
|
12237
|
-
var history = _a.history;
|
|
12238
|
-
return ["pushState", "replaceState"].forEach(function(fnName) {
|
|
12239
|
-
hook(history, fnName, function(_, __, url) {
|
|
12240
|
-
return cb(url);
|
|
12241
|
-
});
|
|
12242
|
-
});
|
|
12243
|
-
});
|
|
12244
|
-
}
|
|
12245
|
-
function onPopState(cb) {
|
|
12246
|
-
(0, env_1.getWindowIfTop)(function(window2) {
|
|
12247
|
-
return window2.addEventListener("popstate", function() {
|
|
12248
|
-
return cb(window2.location.href);
|
|
12249
|
-
});
|
|
12250
|
-
});
|
|
12251
|
-
}
|
|
12252
|
-
function listen(cb) {
|
|
12253
|
-
(0, env_1.getWindowIfTop)(function(window2) {
|
|
12254
|
-
var fromUrl = window2.document.referrer;
|
|
12255
|
-
[onLoad, onPushState, onPopState].forEach(function(event) {
|
|
12256
|
-
return event(function(toUrl) {
|
|
12257
|
-
cb(fromUrl, toUrl);
|
|
12258
|
-
fromUrl = toUrl;
|
|
12259
|
-
});
|
|
12260
|
-
});
|
|
12261
|
-
});
|
|
12262
|
-
}
|
|
12263
|
-
exports2.listen = listen;
|
|
12264
|
-
}
|
|
12265
|
-
});
|
|
12266
|
-
|
|
12267
|
-
// ../../node_modules/@wix/web-bi-logger/dist/src/lib/tracker.js
|
|
12268
|
-
var require_tracker = __commonJS({
|
|
12269
|
-
"../../node_modules/@wix/web-bi-logger/dist/src/lib/tracker.js"(exports2) {
|
|
12325
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/browser.js
|
|
12326
|
+
var require_browser3 = __commonJS({
|
|
12327
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/browser.js"(exports2) {
|
|
12270
12328
|
"use strict";
|
|
12271
12329
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12272
|
-
exports2.
|
|
12273
|
-
var utils_1 =
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
var browser_1 = require_browser2();
|
|
12277
|
-
var IS_TRACKING = "__isTrackingPageViews__";
|
|
12278
|
-
var ENDPOINT = "p";
|
|
12279
|
-
var SOURCE = 19;
|
|
12280
|
-
var EVID = 3;
|
|
12281
|
-
function shouldTrack(force) {
|
|
12282
|
-
return force || !(0, env_1.isWebWorker)() && (0, env_1.isBackoffice)() && (0, env_1.getWindowIfTop)(function(window2) {
|
|
12283
|
-
return !window2[IS_TRACKING];
|
|
12284
|
-
});
|
|
12330
|
+
exports2.readCookie = exports2.sendBeacon = exports2.getWindowSize = exports2.getDesktopSize = exports2.now = void 0;
|
|
12331
|
+
var utils_1 = require_utils4();
|
|
12332
|
+
function now2() {
|
|
12333
|
+
return typeof performance !== "undefined" && performance && performance.now ? performance.now() : -1;
|
|
12285
12334
|
}
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
12289
|
-
|
|
12335
|
+
exports2.now = now2;
|
|
12336
|
+
function getDesktopSize(window2) {
|
|
12337
|
+
var width = window2.screen && window2.screen.width || 0;
|
|
12338
|
+
var height = window2.screen && window2.screen.height || 0;
|
|
12339
|
+
return "".concat(width, "x").concat(height);
|
|
12290
12340
|
}
|
|
12291
|
-
|
|
12292
|
-
|
|
12341
|
+
exports2.getDesktopSize = getDesktopSize;
|
|
12342
|
+
function getWindowSize(window2) {
|
|
12343
|
+
var width = 0;
|
|
12344
|
+
var height = 0;
|
|
12345
|
+
if (window2.innerWidth) {
|
|
12346
|
+
width = window2.innerWidth;
|
|
12347
|
+
height = window2.innerHeight;
|
|
12348
|
+
} else if (window2.document) {
|
|
12349
|
+
if (window2.document.documentElement && window2.document.documentElement.clientWidth) {
|
|
12350
|
+
width = window2.document.documentElement.clientWidth;
|
|
12351
|
+
height = window2.document.documentElement.clientHeight;
|
|
12352
|
+
} else if (window2.document.body && window2.document.body.clientWidth) {
|
|
12353
|
+
width = window2.document.body.clientWidth;
|
|
12354
|
+
height = window2.document.body.clientHeight;
|
|
12355
|
+
}
|
|
12356
|
+
}
|
|
12357
|
+
return "".concat(width, "x").concat(height);
|
|
12293
12358
|
}
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
sr: (0, browser_1.getDesktopSize)(window2),
|
|
12301
|
-
wr: (0, browser_1.getWindowSize)(window2)
|
|
12302
|
-
};
|
|
12303
|
-
}), sr = _a.sr, wr = _a.wr;
|
|
12304
|
-
logger.log({ from: fromUrl, to: toUrl, fis: firstInSession, sr, wr });
|
|
12305
|
-
firstInSession = 0;
|
|
12306
|
-
});
|
|
12359
|
+
exports2.getWindowSize = getWindowSize;
|
|
12360
|
+
function sendBeacon2(url, data) {
|
|
12361
|
+
if (typeof navigator === "undefined" || !navigator || !navigator.sendBeacon) {
|
|
12362
|
+
return false;
|
|
12363
|
+
}
|
|
12364
|
+
return navigator.sendBeacon(url, data);
|
|
12307
12365
|
}
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
|
|
12366
|
+
exports2.sendBeacon = sendBeacon2;
|
|
12367
|
+
function readCookie2(cookieName) {
|
|
12368
|
+
if ((0, utils_1.isDataProtocol)() || typeof document === "undefined") {
|
|
12369
|
+
return null;
|
|
12311
12370
|
}
|
|
12312
|
-
if (
|
|
12313
|
-
|
|
12314
|
-
|
|
12371
|
+
if (window.__ENABLE_COOKIE_READ_OPTIMIZATION__ && window.__BI_cookie_cache && window.__BI_cookie_cache[cookieName] !== void 0) {
|
|
12372
|
+
return window.__BI_cookie_cache[cookieName];
|
|
12373
|
+
}
|
|
12374
|
+
var cookies = document.cookie.split(";");
|
|
12375
|
+
for (var _i = 0, cookies_1 = cookies; _i < cookies_1.length; _i++) {
|
|
12376
|
+
var cookie = cookies_1[_i];
|
|
12377
|
+
var pair = cookie.split("=");
|
|
12378
|
+
var name_1 = pair[0];
|
|
12379
|
+
var value = pair[1];
|
|
12380
|
+
while (name_1[0] === " ") {
|
|
12381
|
+
name_1 = name_1.substr(1);
|
|
12382
|
+
}
|
|
12383
|
+
if (name_1 === cookieName) {
|
|
12384
|
+
if (window.__ENABLE_COOKIE_READ_OPTIMIZATION__) {
|
|
12385
|
+
if (!window.__BI_cookie_cache) {
|
|
12386
|
+
window.__BI_cookie_cache = {};
|
|
12387
|
+
}
|
|
12388
|
+
window.__BI_cookie_cache[cookieName] = value;
|
|
12389
|
+
}
|
|
12390
|
+
return value;
|
|
12391
|
+
}
|
|
12315
12392
|
}
|
|
12393
|
+
return "";
|
|
12316
12394
|
}
|
|
12317
|
-
exports2.
|
|
12395
|
+
exports2.readCookie = readCookie2;
|
|
12318
12396
|
}
|
|
12319
12397
|
});
|
|
12320
12398
|
|
|
12321
|
-
// ../../node_modules/@wix/web-bi-logger/dist/src/
|
|
12322
|
-
var
|
|
12323
|
-
"../../node_modules/@wix/web-bi-logger/dist/src/
|
|
12399
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/constants.js
|
|
12400
|
+
var require_constants3 = __commonJS({
|
|
12401
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/constants.js"(exports2) {
|
|
12324
12402
|
"use strict";
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12403
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12404
|
+
exports2.DefaultCommonConfig = exports2.BrandToHostMap = exports2.HeadlessHost = exports2.DefaultBrand = exports2.EventContextMap = exports2.BackofficeDomains = exports2.LoggerVersion = void 0;
|
|
12405
|
+
exports2.LoggerVersion = "2.0.985|C";
|
|
12406
|
+
exports2.BackofficeDomains = [".wix.com", ".editorx.com"];
|
|
12407
|
+
var EventContextMap;
|
|
12408
|
+
(function(EventContextMap2) {
|
|
12409
|
+
EventContextMap2["msid"] = "_msid";
|
|
12410
|
+
EventContextMap2["clientId"] = "_client_id";
|
|
12411
|
+
EventContextMap2["uuid"] = "_uuid";
|
|
12412
|
+
EventContextMap2["visitorId"] = "_visitorId";
|
|
12413
|
+
EventContextMap2["siteMemberId"] = "_siteMemberId";
|
|
12414
|
+
EventContextMap2["brandId"] = "_brandId";
|
|
12415
|
+
EventContextMap2["siteBranchId"] = "_siteBranchId";
|
|
12416
|
+
EventContextMap2["ms"] = "_ms";
|
|
12417
|
+
EventContextMap2["lv"] = "_lv";
|
|
12418
|
+
EventContextMap2["isHeadless"] = "_isHeadless";
|
|
12419
|
+
EventContextMap2["hostingPlatform"] = "_hostingPlatform";
|
|
12420
|
+
})(EventContextMap = exports2.EventContextMap || (exports2.EventContextMap = {}));
|
|
12421
|
+
exports2.DefaultBrand = "wix";
|
|
12422
|
+
exports2.HeadlessHost = "VIEWER_HEADLESS";
|
|
12423
|
+
exports2.BrandToHostMap = {
|
|
12424
|
+
wix: "wix",
|
|
12425
|
+
editorx: "editorx"
|
|
12426
|
+
};
|
|
12427
|
+
exports2.DefaultCommonConfig = {
|
|
12428
|
+
brand: exports2.DefaultBrand
|
|
12429
|
+
};
|
|
12430
|
+
}
|
|
12431
|
+
});
|
|
12432
|
+
|
|
12433
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/env.js
|
|
12434
|
+
var require_env2 = __commonJS({
|
|
12435
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/env.js"(exports2) {
|
|
12436
|
+
"use strict";
|
|
12437
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12438
|
+
exports2.getGlobal = exports2.getWindowIfTop = exports2.isBackoffice = exports2.isWebWorker = exports2.getHost = exports2.setHost = void 0;
|
|
12439
|
+
var constants_1 = require_constants3();
|
|
12440
|
+
var host;
|
|
12441
|
+
var hostByDomain;
|
|
12442
|
+
function setHost(_host) {
|
|
12443
|
+
host = _host;
|
|
12444
|
+
}
|
|
12445
|
+
exports2.setHost = setHost;
|
|
12446
|
+
function getHost(brand) {
|
|
12447
|
+
if (brand === void 0) {
|
|
12448
|
+
brand = constants_1.DefaultBrand;
|
|
12449
|
+
}
|
|
12450
|
+
if (host) {
|
|
12451
|
+
return host;
|
|
12452
|
+
}
|
|
12453
|
+
var hostByDomainOrBrand = "";
|
|
12454
|
+
if (typeof hostByDomain === "undefined") {
|
|
12455
|
+
hostByDomain = getGlobal2(function(window2) {
|
|
12456
|
+
if (!window2.location || !window2.location.hostname) {
|
|
12457
|
+
return null;
|
|
12458
|
+
}
|
|
12459
|
+
var _a = window2.location.hostname.match(/\.(wix|editorx)\.com$/) || [], domain = _a[1];
|
|
12460
|
+
return domain || null;
|
|
12461
|
+
}, null);
|
|
12462
|
+
}
|
|
12463
|
+
hostByDomainOrBrand = hostByDomain || constants_1.BrandToHostMap[brand] || constants_1.BrandToHostMap[constants_1.DefaultBrand];
|
|
12464
|
+
return "frog.".concat(hostByDomainOrBrand, ".com");
|
|
12465
|
+
}
|
|
12466
|
+
exports2.getHost = getHost;
|
|
12467
|
+
function isWebWorker() {
|
|
12468
|
+
return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope;
|
|
12469
|
+
}
|
|
12470
|
+
exports2.isWebWorker = isWebWorker;
|
|
12471
|
+
function isBackoffice() {
|
|
12472
|
+
return getWindowIfTop(function(_a) {
|
|
12473
|
+
var document2 = _a.document;
|
|
12474
|
+
return constants_1.BackofficeDomains.some(function(domain) {
|
|
12475
|
+
return document2.location.host.indexOf(domain) !== -1;
|
|
12476
|
+
});
|
|
12477
|
+
});
|
|
12478
|
+
}
|
|
12479
|
+
exports2.isBackoffice = isBackoffice;
|
|
12480
|
+
function getWindowIfTop(cb) {
|
|
12481
|
+
if (typeof window !== "undefined" && window) {
|
|
12482
|
+
try {
|
|
12483
|
+
return window.top === window.self ? cb ? cb(window) : window : null;
|
|
12484
|
+
} catch (e) {
|
|
12485
|
+
return null;
|
|
12486
|
+
}
|
|
12487
|
+
}
|
|
12488
|
+
return null;
|
|
12489
|
+
}
|
|
12490
|
+
exports2.getWindowIfTop = getWindowIfTop;
|
|
12491
|
+
function getGlobal2(cb, defaultValue) {
|
|
12492
|
+
if (defaultValue === void 0) {
|
|
12493
|
+
defaultValue = null;
|
|
12494
|
+
}
|
|
12495
|
+
if (typeof self !== "undefined" && self) {
|
|
12496
|
+
return cb(self) || defaultValue;
|
|
12497
|
+
}
|
|
12498
|
+
return defaultValue;
|
|
12499
|
+
}
|
|
12500
|
+
exports2.getGlobal = getGlobal2;
|
|
12501
|
+
}
|
|
12502
|
+
});
|
|
12503
|
+
|
|
12504
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/utils.js
|
|
12505
|
+
var require_utils4 = __commonJS({
|
|
12506
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/utils.js"(exports2) {
|
|
12507
|
+
"use strict";
|
|
12508
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12509
|
+
exports2.guid = exports2.isDataProtocol = exports2.buildBiUrl = exports2.getCookies = void 0;
|
|
12510
|
+
var browser_1 = require_browser3();
|
|
12511
|
+
var env_1 = require_env2();
|
|
12512
|
+
var cacheKillerCounter = 0;
|
|
12513
|
+
function getCookies(params) {
|
|
12514
|
+
return Object.keys(params).reduce(function(res, param) {
|
|
12515
|
+
var _a = typeof params[param] === "string" ? { name: params[param] } : params[param], name = _a.name, _b = _a.transform, transform = _b === void 0 ? function(x) {
|
|
12516
|
+
return x;
|
|
12517
|
+
} : _b;
|
|
12518
|
+
var value = transform((0, browser_1.readCookie)(name));
|
|
12519
|
+
if (value) {
|
|
12520
|
+
res[param] = value;
|
|
12521
|
+
}
|
|
12522
|
+
return res;
|
|
12523
|
+
}, {});
|
|
12524
|
+
}
|
|
12525
|
+
exports2.getCookies = getCookies;
|
|
12526
|
+
function buildBiUrl(_a, params, context) {
|
|
12527
|
+
var _b = _a.host, host = _b === void 0 ? "" : _b, _c = _a.endpoint, endpoint = _c === void 0 ? "" : _c;
|
|
12528
|
+
if (context === void 0) {
|
|
12529
|
+
context = {};
|
|
12530
|
+
}
|
|
12531
|
+
host = typeof host === "function" ? host() : host;
|
|
12532
|
+
host = host || (0, env_1.getHost)();
|
|
12533
|
+
endpoint = context.endpoint || endpoint;
|
|
12534
|
+
if (!context.useBatch) {
|
|
12535
|
+
params._ = "" + (/* @__PURE__ */ new Date()).getTime() + cacheKillerCounter++;
|
|
12536
|
+
}
|
|
12537
|
+
var pairs = context.useBatch ? [] : Object.keys(params).map(function(key) {
|
|
12538
|
+
return "".concat(encodeURIComponent(key), "=").concat(encodeURIComponent(params[key]));
|
|
12539
|
+
}, []);
|
|
12540
|
+
var url = ["//".concat(host, "/").concat(endpoint)].concat(pairs.length ? pairs.join("&") : []).join("?");
|
|
12541
|
+
if (url.startsWith("//") && isDataProtocol()) {
|
|
12542
|
+
url = "https:" + url;
|
|
12543
|
+
}
|
|
12544
|
+
return url;
|
|
12545
|
+
}
|
|
12546
|
+
exports2.buildBiUrl = buildBiUrl;
|
|
12547
|
+
function isDataProtocol() {
|
|
12548
|
+
return typeof window !== "undefined" && (window === null || window === void 0 ? void 0 : window.location.protocol) === "data:";
|
|
12549
|
+
}
|
|
12550
|
+
exports2.isDataProtocol = isDataProtocol;
|
|
12551
|
+
function guid() {
|
|
12552
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
|
|
12553
|
+
var r = Math.random() * 16 | 0;
|
|
12554
|
+
var v = c === "x" ? r : r & 3 | 8;
|
|
12555
|
+
return v.toString(16);
|
|
12556
|
+
});
|
|
12557
|
+
}
|
|
12558
|
+
exports2.guid = guid;
|
|
12559
|
+
}
|
|
12560
|
+
});
|
|
12561
|
+
|
|
12562
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/navigator.js
|
|
12563
|
+
var require_navigator = __commonJS({
|
|
12564
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/navigator.js"(exports2) {
|
|
12565
|
+
"use strict";
|
|
12566
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12567
|
+
exports2.listen = void 0;
|
|
12568
|
+
var env_1 = require_env2();
|
|
12569
|
+
function hook(obj, fnName, cbHook) {
|
|
12570
|
+
if (!obj || !obj[fnName]) {
|
|
12571
|
+
return;
|
|
12572
|
+
}
|
|
12573
|
+
var original = obj[fnName];
|
|
12574
|
+
obj[fnName] = function() {
|
|
12575
|
+
cbHook.apply(null, arguments);
|
|
12576
|
+
return original.apply(obj, arguments);
|
|
12577
|
+
};
|
|
12578
|
+
}
|
|
12579
|
+
function onLoad(cb) {
|
|
12580
|
+
setTimeout(function() {
|
|
12581
|
+
return (0, env_1.getWindowIfTop)(function(window2) {
|
|
12582
|
+
return cb(window2.location.href);
|
|
12583
|
+
});
|
|
12584
|
+
});
|
|
12585
|
+
}
|
|
12586
|
+
function onPushState(cb) {
|
|
12587
|
+
(0, env_1.getWindowIfTop)(function(_a) {
|
|
12588
|
+
var history = _a.history;
|
|
12589
|
+
return ["pushState", "replaceState"].forEach(function(fnName) {
|
|
12590
|
+
hook(history, fnName, function(_, __, url) {
|
|
12591
|
+
return cb(url);
|
|
12592
|
+
});
|
|
12593
|
+
});
|
|
12594
|
+
});
|
|
12595
|
+
}
|
|
12596
|
+
function onPopState(cb) {
|
|
12597
|
+
(0, env_1.getWindowIfTop)(function(window2) {
|
|
12598
|
+
return window2.addEventListener("popstate", function() {
|
|
12599
|
+
return cb(window2.location.href);
|
|
12600
|
+
});
|
|
12601
|
+
});
|
|
12602
|
+
}
|
|
12603
|
+
function listen(cb) {
|
|
12604
|
+
(0, env_1.getWindowIfTop)(function(window2) {
|
|
12605
|
+
var fromUrl = window2.document.referrer;
|
|
12606
|
+
[onLoad, onPushState, onPopState].forEach(function(event) {
|
|
12607
|
+
return event(function(toUrl) {
|
|
12608
|
+
cb(fromUrl, toUrl);
|
|
12609
|
+
fromUrl = toUrl;
|
|
12610
|
+
});
|
|
12611
|
+
});
|
|
12612
|
+
});
|
|
12613
|
+
}
|
|
12614
|
+
exports2.listen = listen;
|
|
12615
|
+
}
|
|
12616
|
+
});
|
|
12617
|
+
|
|
12618
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/tracker.js
|
|
12619
|
+
var require_tracker = __commonJS({
|
|
12620
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/tracker.js"(exports2) {
|
|
12621
|
+
"use strict";
|
|
12622
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12623
|
+
exports2.track = void 0;
|
|
12624
|
+
var utils_1 = require_utils4();
|
|
12625
|
+
var navigator_1 = require_navigator();
|
|
12626
|
+
var env_1 = require_env2();
|
|
12627
|
+
var browser_1 = require_browser3();
|
|
12628
|
+
var IS_TRACKING = "__isTrackingPageViews__";
|
|
12629
|
+
var ENDPOINT = "p";
|
|
12630
|
+
var SOURCE = 19;
|
|
12631
|
+
var EVID = 3;
|
|
12632
|
+
function shouldTrack(force) {
|
|
12633
|
+
return force || !(0, env_1.isWebWorker)() && (0, env_1.isBackoffice)() && (0, env_1.getWindowIfTop)(function(window2) {
|
|
12634
|
+
return !window2[IS_TRACKING];
|
|
12635
|
+
});
|
|
12636
|
+
}
|
|
12637
|
+
function setIsTracking() {
|
|
12638
|
+
return (0, env_1.getWindowIfTop)(function(window2) {
|
|
12639
|
+
return window2[IS_TRACKING] = true;
|
|
12640
|
+
});
|
|
12641
|
+
}
|
|
12642
|
+
function getLogger(loggerFactory) {
|
|
12643
|
+
return loggerFactory({ endpoint: ENDPOINT }).updateDefaults({ src: SOURCE, evid: EVID, vsi: (0, utils_1.guid)() }).logger();
|
|
12644
|
+
}
|
|
12645
|
+
function trackBrowsingSession(loggerFactory) {
|
|
12646
|
+
var logger = getLogger(loggerFactory);
|
|
12647
|
+
var firstInSession = 1;
|
|
12648
|
+
(0, navigator_1.listen)(function(fromUrl, toUrl) {
|
|
12649
|
+
var _a = (0, env_1.getWindowIfTop)(function(window2) {
|
|
12650
|
+
return {
|
|
12651
|
+
sr: (0, browser_1.getDesktopSize)(window2),
|
|
12652
|
+
wr: (0, browser_1.getWindowSize)(window2)
|
|
12653
|
+
};
|
|
12654
|
+
}), sr = _a.sr, wr = _a.wr;
|
|
12655
|
+
logger.log({ from: fromUrl, to: toUrl, fis: firstInSession, sr, wr });
|
|
12656
|
+
firstInSession = 0;
|
|
12657
|
+
});
|
|
12658
|
+
}
|
|
12659
|
+
function track(loggerFactory, options) {
|
|
12660
|
+
if (options === void 0) {
|
|
12661
|
+
options = { force: false };
|
|
12662
|
+
}
|
|
12663
|
+
if (shouldTrack(options.force)) {
|
|
12664
|
+
setIsTracking();
|
|
12665
|
+
trackBrowsingSession(loggerFactory);
|
|
12666
|
+
}
|
|
12667
|
+
}
|
|
12668
|
+
exports2.track = track;
|
|
12669
|
+
}
|
|
12670
|
+
});
|
|
12671
|
+
|
|
12672
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/errors.js
|
|
12673
|
+
var require_errors2 = __commonJS({
|
|
12674
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/errors.js"(exports2) {
|
|
12675
|
+
"use strict";
|
|
12676
|
+
var __extends = exports2 && exports2.__extends || /* @__PURE__ */ function() {
|
|
12677
|
+
var extendStatics = function(d, b) {
|
|
12678
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
12679
|
+
d2.__proto__ = b2;
|
|
12680
|
+
} || function(d2, b2) {
|
|
12681
|
+
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
12682
|
+
};
|
|
12683
|
+
return extendStatics(d, b);
|
|
12684
|
+
};
|
|
12685
|
+
return function(d, b) {
|
|
12686
|
+
if (typeof b !== "function" && b !== null)
|
|
12687
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12688
|
+
extendStatics(d, b);
|
|
12689
|
+
function __() {
|
|
12690
|
+
this.constructor = d;
|
|
12691
|
+
}
|
|
12692
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12693
|
+
};
|
|
12694
|
+
}();
|
|
12695
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12696
|
+
exports2.APINotSupportedError = exports2.AssertionError = void 0;
|
|
12697
|
+
var AssertionError = (
|
|
12698
|
+
/** @class */
|
|
12699
|
+
function(_super) {
|
|
12700
|
+
__extends(AssertionError2, _super);
|
|
12701
|
+
function AssertionError2(message) {
|
|
12702
|
+
var _this = _super.call(this, message) || this;
|
|
12703
|
+
_this.name = _this.constructor.name;
|
|
12704
|
+
return _this;
|
|
12705
|
+
}
|
|
12706
|
+
return AssertionError2;
|
|
12707
|
+
}(Error)
|
|
12708
|
+
);
|
|
12709
|
+
exports2.AssertionError = AssertionError;
|
|
12710
|
+
var APINotSupportedError = (
|
|
12711
|
+
/** @class */
|
|
12712
|
+
function(_super) {
|
|
12713
|
+
__extends(APINotSupportedError2, _super);
|
|
12714
|
+
function APINotSupportedError2(message) {
|
|
12715
|
+
var _this = _super.call(this, message) || this;
|
|
12716
|
+
_this.name = _this.constructor.name;
|
|
12717
|
+
return _this;
|
|
12718
|
+
}
|
|
12719
|
+
return APINotSupportedError2;
|
|
12720
|
+
}(Error)
|
|
12721
|
+
);
|
|
12722
|
+
exports2.APINotSupportedError = APINotSupportedError;
|
|
12723
|
+
}
|
|
12724
|
+
});
|
|
12725
|
+
|
|
12726
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/assert.js
|
|
12727
|
+
var require_assert3 = __commonJS({
|
|
12728
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/assert.js"(exports2) {
|
|
12729
|
+
"use strict";
|
|
12730
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12731
|
+
exports2.ok = exports2.object = exports2.defined = void 0;
|
|
12732
|
+
var errors_1 = require_errors2();
|
|
12733
|
+
var defined = function(target, message) {
|
|
12734
|
+
if (target === void 0) {
|
|
12735
|
+
throw new errors_1.AssertionError(message);
|
|
12736
|
+
}
|
|
12737
|
+
};
|
|
12738
|
+
exports2.defined = defined;
|
|
12739
|
+
var object = function(target, message) {
|
|
12740
|
+
if (target !== void 0 && (typeof target !== "object" || Array.isArray(target) || target === null)) {
|
|
12741
|
+
throw new errors_1.AssertionError(message);
|
|
12742
|
+
}
|
|
12743
|
+
};
|
|
12744
|
+
exports2.object = object;
|
|
12745
|
+
var ok = function(target, message) {
|
|
12746
|
+
if (!target) {
|
|
12747
|
+
throw new errors_1.AssertionError(message);
|
|
12748
|
+
}
|
|
12749
|
+
};
|
|
12750
|
+
exports2.ok = ok;
|
|
12751
|
+
}
|
|
12752
|
+
});
|
|
12753
|
+
|
|
12754
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/types.js
|
|
12755
|
+
var require_types3 = __commonJS({
|
|
12756
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/types.js"(exports2) {
|
|
12757
|
+
"use strict";
|
|
12758
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12759
|
+
exports2.Errors = exports2.EventCategories = exports2.PublishMethods = void 0;
|
|
12760
|
+
var PublishMethods;
|
|
12761
|
+
(function(PublishMethods2) {
|
|
12762
|
+
PublishMethods2["Auto"] = "auto";
|
|
12763
|
+
PublishMethods2["PostMessage"] = "postMessage";
|
|
12764
|
+
PublishMethods2["Fetch"] = "fetch";
|
|
12765
|
+
})(PublishMethods = exports2.PublishMethods || (exports2.PublishMethods = {}));
|
|
12766
|
+
var EventCategories;
|
|
12767
|
+
(function(EventCategories2) {
|
|
12768
|
+
EventCategories2["Essential"] = "essential";
|
|
12769
|
+
EventCategories2["Functional"] = "functional";
|
|
12770
|
+
EventCategories2["Analytics"] = "analytics";
|
|
12771
|
+
})(EventCategories = exports2.EventCategories || (exports2.EventCategories = {}));
|
|
12772
|
+
var Errors;
|
|
12773
|
+
(function(Errors2) {
|
|
12774
|
+
Errors2[Errors2["Unsupported"] = 0] = "Unsupported";
|
|
12775
|
+
})(Errors = exports2.Errors || (exports2.Errors = {}));
|
|
12776
|
+
}
|
|
12777
|
+
});
|
|
12778
|
+
|
|
12779
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/transport.js
|
|
12780
|
+
var require_transport2 = __commonJS({
|
|
12781
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/transport.js"(exports2) {
|
|
12782
|
+
"use strict";
|
|
12783
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12784
|
+
exports2.postMessageTransport = exports2.xhrTransport = exports2.fetchTransport = exports2.pixelTransport = exports2.beaconTransport = void 0;
|
|
12785
|
+
var browser_1 = require_browser3();
|
|
12786
|
+
var errors_1 = require_errors2();
|
|
12787
|
+
function beaconTransport(url, params, sendInBody) {
|
|
12788
|
+
if (sendInBody === void 0) {
|
|
12789
|
+
sendInBody = false;
|
|
12790
|
+
}
|
|
12791
|
+
return new Promise(function(resolve, reject) {
|
|
12792
|
+
return (0, browser_1.sendBeacon)(url, sendInBody ? JSON.stringify(params) : void 0) ? resolve() : reject(new Error("Transport Error: Cannot send bi using beacon"));
|
|
12793
|
+
});
|
|
12794
|
+
}
|
|
12795
|
+
exports2.beaconTransport = beaconTransport;
|
|
12796
|
+
function pixelTransport(url, image) {
|
|
12797
|
+
return new Promise(function(resolve, reject) {
|
|
12798
|
+
var biImage = image || new window.Image(0, 0);
|
|
12799
|
+
biImage.onload = function() {
|
|
12800
|
+
return resolve();
|
|
12801
|
+
};
|
|
12802
|
+
biImage.onerror = function() {
|
|
12803
|
+
return reject(new Error("Transport Error: Cannot send bi using pixel"));
|
|
12804
|
+
};
|
|
12805
|
+
biImage.src = url;
|
|
12806
|
+
});
|
|
12807
|
+
}
|
|
12808
|
+
exports2.pixelTransport = pixelTransport;
|
|
12809
|
+
function fetchTransport(url, params, method, fetchFunction) {
|
|
12810
|
+
if (method === void 0) {
|
|
12811
|
+
method = "GET";
|
|
12812
|
+
}
|
|
12813
|
+
if (typeof fetchFunction === "undefined") {
|
|
12814
|
+
if (typeof fetch === "undefined") {
|
|
12815
|
+
return Promise.reject(new errors_1.APINotSupportedError("fetch"));
|
|
12816
|
+
}
|
|
12817
|
+
fetchFunction = fetch;
|
|
12818
|
+
}
|
|
12819
|
+
var options = {
|
|
12820
|
+
method,
|
|
12821
|
+
credentials: "include"
|
|
12822
|
+
};
|
|
12823
|
+
if (method === "POST") {
|
|
12824
|
+
options.body = JSON.stringify(params);
|
|
12825
|
+
} else {
|
|
12826
|
+
options.keepalive = true;
|
|
12827
|
+
}
|
|
12828
|
+
return fetchFunction(url, options).then(function(response) {
|
|
12829
|
+
if (!response.ok) {
|
|
12830
|
+
throw Error("Transport Error: Cannot send bi using fetch. Status: ".concat(response.status));
|
|
12831
|
+
}
|
|
12832
|
+
});
|
|
12833
|
+
}
|
|
12834
|
+
exports2.fetchTransport = fetchTransport;
|
|
12835
|
+
function xhrTransport(url, params, method) {
|
|
12836
|
+
if (method === void 0) {
|
|
12837
|
+
method = "GET";
|
|
12838
|
+
}
|
|
12839
|
+
return new Promise(function(resolve, reject) {
|
|
12840
|
+
var xhr = new XMLHttpRequest();
|
|
12841
|
+
xhr.open(method, "".concat(location.protocol).concat(url));
|
|
12842
|
+
xhr.onload = resolve;
|
|
12843
|
+
xhr.onerror = function() {
|
|
12844
|
+
reject(new Error("Transport Error: Cannot send bi using xhr."));
|
|
12845
|
+
};
|
|
12846
|
+
xhr.withCredentials = true;
|
|
12847
|
+
if (method === "POST") {
|
|
12848
|
+
xhr.send(JSON.stringify(params));
|
|
12849
|
+
} else {
|
|
12850
|
+
xhr.send();
|
|
12851
|
+
}
|
|
12852
|
+
});
|
|
12853
|
+
}
|
|
12854
|
+
exports2.xhrTransport = xhrTransport;
|
|
12855
|
+
function postMessageTransport(message, postMessage) {
|
|
12856
|
+
if (postMessage === void 0) {
|
|
12857
|
+
postMessage = self.postMessage;
|
|
12858
|
+
}
|
|
12859
|
+
var messageArgs = [message];
|
|
12860
|
+
if (typeof WorkerGlobalScope === "undefined") {
|
|
12861
|
+
messageArgs.push("*");
|
|
12862
|
+
}
|
|
12863
|
+
return postMessage.apply(self, messageArgs);
|
|
12864
|
+
}
|
|
12865
|
+
exports2.postMessageTransport = postMessageTransport;
|
|
12866
|
+
}
|
|
12867
|
+
});
|
|
12868
|
+
|
|
12869
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/publishers.js
|
|
12870
|
+
var require_publishers2 = __commonJS({
|
|
12871
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/publishers.js"(exports2) {
|
|
12872
|
+
"use strict";
|
|
12873
|
+
var __assign = exports2 && exports2.__assign || function() {
|
|
12874
|
+
__assign = Object.assign || function(t) {
|
|
12875
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12876
|
+
s = arguments[i];
|
|
12877
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12878
|
+
t[p] = s[p];
|
|
12879
|
+
}
|
|
12880
|
+
return t;
|
|
12881
|
+
};
|
|
12882
|
+
return __assign.apply(this, arguments);
|
|
12883
|
+
};
|
|
12884
|
+
var __rest = exports2 && exports2.__rest || function(s, e) {
|
|
12885
|
+
var t = {};
|
|
12886
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
12887
|
+
t[p] = s[p];
|
|
12888
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
12889
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12890
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
12891
|
+
t[p[i]] = s[p[i]];
|
|
12892
|
+
}
|
|
12893
|
+
return t;
|
|
12894
|
+
};
|
|
12895
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12896
|
+
exports2.getTransformers = exports2.getPublisher = exports2.postMessagePublisher = exports2.xhrPublisher = exports2.fetchPublisher = exports2.beaconPublisher = exports2.imagePublisher = exports2.resolvePublisher = void 0;
|
|
12897
|
+
var utils_1 = require_utils4();
|
|
12898
|
+
var env_1 = require_env2();
|
|
12899
|
+
var errors_1 = require_errors2();
|
|
12900
|
+
var types_1 = require_types3();
|
|
12901
|
+
var transport_1 = require_transport2();
|
|
12902
|
+
var getHttpMethod = function(context) {
|
|
12903
|
+
return context.useBatch ? "POST" : "GET";
|
|
12904
|
+
};
|
|
12905
|
+
var resolvePublisher = function(options, publishFunctions) {
|
|
12906
|
+
var publisherFactory;
|
|
12907
|
+
var publishFunction;
|
|
12908
|
+
if (options.publishMethod === types_1.PublishMethods.PostMessage) {
|
|
12909
|
+
publisherFactory = postMessagePublisher;
|
|
12910
|
+
publishFunction = publishFunctions && publishFunctions[types_1.PublishMethods.PostMessage];
|
|
12911
|
+
} else if (options.publishMethod === types_1.PublishMethods.Fetch) {
|
|
12912
|
+
publisherFactory = fetchPublisher;
|
|
12913
|
+
publishFunction = publishFunctions && publishFunctions[types_1.PublishMethods.Fetch];
|
|
12914
|
+
} else if ((0, env_1.isWebWorker)()) {
|
|
12915
|
+
publisherFactory = fetchPublisher;
|
|
12916
|
+
} else {
|
|
12917
|
+
publisherFactory = beaconPublisher;
|
|
12918
|
+
}
|
|
12919
|
+
return publisherFactory(options, publishFunction);
|
|
12920
|
+
};
|
|
12921
|
+
exports2.resolvePublisher = resolvePublisher;
|
|
12922
|
+
function imagePublisher(options) {
|
|
12923
|
+
if (options === void 0) {
|
|
12924
|
+
options = {};
|
|
12925
|
+
}
|
|
12926
|
+
return function image(params, context) {
|
|
12927
|
+
if (context === void 0) {
|
|
12928
|
+
context = {};
|
|
12929
|
+
}
|
|
12930
|
+
if (context.useBatch) {
|
|
12931
|
+
throw new errors_1.APINotSupportedError("Can't use image publisher to send batched events.");
|
|
12932
|
+
}
|
|
12933
|
+
var url = (0, utils_1.buildBiUrl)(options, params, context);
|
|
12934
|
+
return (0, transport_1.pixelTransport)(url, context.image);
|
|
12935
|
+
};
|
|
12936
|
+
}
|
|
12937
|
+
exports2.imagePublisher = imagePublisher;
|
|
12938
|
+
function beaconPublisher(options) {
|
|
12939
|
+
if (options === void 0) {
|
|
12940
|
+
options = {};
|
|
12941
|
+
}
|
|
12942
|
+
return function beacon(params, context) {
|
|
12943
|
+
if (context === void 0) {
|
|
12944
|
+
context = {};
|
|
12945
|
+
}
|
|
12946
|
+
var url = (0, utils_1.buildBiUrl)(options, params, context);
|
|
12947
|
+
return (0, transport_1.beaconTransport)(url, params, !!context.useBatch).catch(function() {
|
|
12948
|
+
var method = getHttpMethod(context);
|
|
12949
|
+
return context.useBatch ? (0, transport_1.fetchTransport)(url, params, method).catch(function(error) {
|
|
12950
|
+
return error instanceof errors_1.APINotSupportedError ? (0, transport_1.xhrTransport)(url, params, method) : Promise.reject(error);
|
|
12951
|
+
}) : (0, transport_1.pixelTransport)(url, context.image);
|
|
12952
|
+
});
|
|
12953
|
+
};
|
|
12954
|
+
}
|
|
12955
|
+
exports2.beaconPublisher = beaconPublisher;
|
|
12956
|
+
function fetchPublisher(options, fetchFunction) {
|
|
12957
|
+
if (options === void 0) {
|
|
12958
|
+
options = {};
|
|
12959
|
+
}
|
|
12960
|
+
return function fetch2(params, context) {
|
|
12961
|
+
if (context === void 0) {
|
|
12962
|
+
context = {};
|
|
12963
|
+
}
|
|
12964
|
+
var url = (0, utils_1.buildBiUrl)(options, params, context);
|
|
12965
|
+
var method = getHttpMethod(context);
|
|
12966
|
+
return (0, transport_1.fetchTransport)(url, params, method, fetchFunction).catch(function(error) {
|
|
12967
|
+
return error instanceof errors_1.APINotSupportedError ? (0, transport_1.xhrTransport)(url, params, method) : Promise.reject(error);
|
|
12968
|
+
});
|
|
12969
|
+
};
|
|
12970
|
+
}
|
|
12971
|
+
exports2.fetchPublisher = fetchPublisher;
|
|
12972
|
+
function xhrPublisher(options) {
|
|
12973
|
+
if (options === void 0) {
|
|
12974
|
+
options = {};
|
|
12975
|
+
}
|
|
12976
|
+
return function xhr(params, context) {
|
|
12977
|
+
if (context === void 0) {
|
|
12978
|
+
context = {};
|
|
12979
|
+
}
|
|
12980
|
+
var url = (0, utils_1.buildBiUrl)(options, params, context);
|
|
12981
|
+
var method = getHttpMethod(context);
|
|
12982
|
+
return (0, transport_1.xhrTransport)(url, params, method);
|
|
12983
|
+
};
|
|
12984
|
+
}
|
|
12985
|
+
exports2.xhrPublisher = xhrPublisher;
|
|
12986
|
+
function postMessagePublisher(options, publishFunction) {
|
|
12987
|
+
if (options === void 0) {
|
|
12988
|
+
options = {};
|
|
12989
|
+
}
|
|
12990
|
+
return function postMessage(params) {
|
|
12991
|
+
return (0, transport_1.postMessageTransport)(params, publishFunction);
|
|
12992
|
+
};
|
|
12993
|
+
}
|
|
12994
|
+
exports2.postMessagePublisher = postMessagePublisher;
|
|
12995
|
+
function getPublisher(options, publishFunctions) {
|
|
12996
|
+
return (0, exports2.resolvePublisher)(options, publishFunctions);
|
|
12997
|
+
}
|
|
12998
|
+
exports2.getPublisher = getPublisher;
|
|
12999
|
+
var getTransformers = function(factoryOptions, transformer) {
|
|
13000
|
+
var _eventTransformer, _payloadTransformer;
|
|
13001
|
+
if (transformer) {
|
|
13002
|
+
if (typeof transformer !== "function" && transformer.postMessage && factoryOptions.publishMethod === types_1.PublishMethods.PostMessage) {
|
|
13003
|
+
_payloadTransformer = transformer.postMessage;
|
|
13004
|
+
} else if (typeof transformer === "function") {
|
|
13005
|
+
_eventTransformer = transformer;
|
|
13006
|
+
}
|
|
13007
|
+
}
|
|
13008
|
+
var eventTransformer = _eventTransformer;
|
|
13009
|
+
var payloadTransformer = function(params, publisherContext) {
|
|
13010
|
+
if (publisherContext.useBatch) {
|
|
13011
|
+
var getEndpoint_1 = function(context) {
|
|
13012
|
+
return (context === null || context === void 0 ? void 0 : context.endpoint) || publisherContext.endpoint || factoryOptions.endpoint;
|
|
13013
|
+
};
|
|
13014
|
+
params.e = params.e.map(function(e) {
|
|
13015
|
+
var context = e.context, event = __rest(e, ["context"]);
|
|
13016
|
+
var res = __assign(__assign({}, event), { f: __assign(__assign({}, event.f), { _rp: getEndpoint_1(context) }) });
|
|
13017
|
+
return res;
|
|
13018
|
+
});
|
|
13019
|
+
}
|
|
13020
|
+
return _payloadTransformer ? _payloadTransformer(params) : params;
|
|
13021
|
+
};
|
|
13022
|
+
return { eventTransformer, payloadTransformer };
|
|
13023
|
+
};
|
|
13024
|
+
exports2.getTransformers = getTransformers;
|
|
13025
|
+
}
|
|
13026
|
+
});
|
|
13027
|
+
|
|
13028
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/common-config.js
|
|
13029
|
+
var require_common_config2 = __commonJS({
|
|
13030
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/common-config.js"(exports2) {
|
|
13031
|
+
"use strict";
|
|
13032
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13033
|
+
exports2.getWixHost = exports2.getBranchId = exports2.getBrand = exports2.getCommonConfigValue = void 0;
|
|
13034
|
+
var env_1 = require_env2();
|
|
13035
|
+
var constants_1 = require_constants3();
|
|
13036
|
+
var resolveCommonConfig = function() {
|
|
13037
|
+
return (0, env_1.getGlobal)(function(g) {
|
|
13038
|
+
return g.Wix && g.Wix.Utils && g.Wix.Utils.commonConfig || g.commonConfig;
|
|
13039
|
+
});
|
|
13040
|
+
};
|
|
13041
|
+
var getCommonConfigValue = function(key, commonConfig2) {
|
|
13042
|
+
if (commonConfig2 === void 0) {
|
|
13043
|
+
commonConfig2 = resolveCommonConfig();
|
|
13044
|
+
}
|
|
13045
|
+
commonConfig2 = commonConfig2 && typeof commonConfig2.getAll === "function" ? commonConfig2.getAll() : commonConfig2;
|
|
13046
|
+
if (!commonConfig2 || typeof commonConfig2[key] === "undefined") {
|
|
13047
|
+
return constants_1.DefaultCommonConfig[key];
|
|
13048
|
+
}
|
|
13049
|
+
return commonConfig2[key];
|
|
13050
|
+
};
|
|
13051
|
+
exports2.getCommonConfigValue = getCommonConfigValue;
|
|
13052
|
+
var getBrand = function(commonConfigGetter) {
|
|
13053
|
+
return (0, exports2.getCommonConfigValue)("brand", commonConfigGetter());
|
|
13054
|
+
};
|
|
13055
|
+
exports2.getBrand = getBrand;
|
|
13056
|
+
var getBranchId = function(commonConfigGetter) {
|
|
13057
|
+
return (0, exports2.getCommonConfigValue)("branchId", commonConfigGetter());
|
|
13058
|
+
};
|
|
13059
|
+
exports2.getBranchId = getBranchId;
|
|
13060
|
+
var getWixHost = function(commonConfigGetter) {
|
|
13061
|
+
return (0, exports2.getCommonConfigValue)("host", commonConfigGetter());
|
|
13062
|
+
};
|
|
13063
|
+
exports2.getWixHost = getWixHost;
|
|
13064
|
+
}
|
|
13065
|
+
});
|
|
13066
|
+
|
|
13067
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/event-defaults.js
|
|
13068
|
+
var require_event_defaults2 = __commonJS({
|
|
13069
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/lib/event-defaults.js"(exports2) {
|
|
13070
|
+
"use strict";
|
|
13071
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13072
|
+
exports2.getCommonDefaults = exports2.getUserDefaults = exports2.transformDefaults = void 0;
|
|
13073
|
+
var constants_1 = require_constants3();
|
|
13074
|
+
var browser_1 = require_browser3();
|
|
13075
|
+
var common_config_1 = require_common_config2();
|
|
13076
|
+
var utils_1 = require_utils4();
|
|
13077
|
+
var transformDefaults = function(context) {
|
|
13078
|
+
return Object.keys(context).reduce(function(res, key) {
|
|
13079
|
+
var mappedKey = constants_1.EventContextMap[key] || key;
|
|
13080
|
+
res[mappedKey] = context[key];
|
|
13081
|
+
return res;
|
|
13082
|
+
}, {});
|
|
13083
|
+
};
|
|
13084
|
+
exports2.transformDefaults = transformDefaults;
|
|
13085
|
+
var getUserDefaults = function() {
|
|
13086
|
+
return (0, utils_1.getCookies)({
|
|
13087
|
+
clientId: "_wixCIDX",
|
|
13088
|
+
uuid: {
|
|
13089
|
+
name: "_wixUIDX",
|
|
13090
|
+
transform: function(value) {
|
|
13091
|
+
return typeof value === "string" && value.split("|")[1];
|
|
13092
|
+
}
|
|
13093
|
+
}
|
|
13094
|
+
});
|
|
13095
|
+
};
|
|
13096
|
+
exports2.getUserDefaults = getUserDefaults;
|
|
13097
|
+
var getCommonDefaults = function(commonConfigGetter, consentPolicyGetter) {
|
|
13098
|
+
return (0, exports2.transformDefaults)({
|
|
13099
|
+
brandId: function() {
|
|
13100
|
+
return (0, common_config_1.getBrand)(commonConfigGetter);
|
|
13101
|
+
},
|
|
13102
|
+
siteBranchId: function() {
|
|
13103
|
+
return (0, common_config_1.getBranchId)(commonConfigGetter);
|
|
13104
|
+
},
|
|
13105
|
+
ms: function() {
|
|
13106
|
+
return Math.round((0, browser_1.now)());
|
|
13107
|
+
},
|
|
13108
|
+
isHeadless: function() {
|
|
13109
|
+
return resolveIsHeadless(commonConfigGetter);
|
|
13110
|
+
},
|
|
13111
|
+
hostingPlatform: function() {
|
|
13112
|
+
return (0, common_config_1.getWixHost)(commonConfigGetter);
|
|
13113
|
+
},
|
|
13114
|
+
lv: constants_1.LoggerVersion
|
|
13115
|
+
});
|
|
13116
|
+
};
|
|
13117
|
+
exports2.getCommonDefaults = getCommonDefaults;
|
|
13118
|
+
var resolveIsHeadless = function(commonConfigGetter) {
|
|
13119
|
+
return (0, common_config_1.getWixHost)(commonConfigGetter) === constants_1.HeadlessHost || void 0;
|
|
13120
|
+
};
|
|
13121
|
+
}
|
|
13122
|
+
});
|
|
13123
|
+
|
|
13124
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/logger.js
|
|
13125
|
+
var require_logger2 = __commonJS({
|
|
13126
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/logger.js"(exports2) {
|
|
13127
|
+
"use strict";
|
|
13128
|
+
var __assign = exports2 && exports2.__assign || function() {
|
|
13129
|
+
__assign = Object.assign || function(t) {
|
|
13130
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
13131
|
+
s = arguments[i];
|
|
13132
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
13133
|
+
t[p] = s[p];
|
|
13134
|
+
}
|
|
13135
|
+
return t;
|
|
13136
|
+
};
|
|
13137
|
+
return __assign.apply(this, arguments);
|
|
13138
|
+
};
|
|
13139
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
13140
|
+
if (k2 === void 0) k2 = k;
|
|
13141
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13142
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13143
|
+
desc = { enumerable: true, get: function() {
|
|
13144
|
+
return m[k];
|
|
13145
|
+
} };
|
|
13146
|
+
}
|
|
13147
|
+
Object.defineProperty(o, k2, desc);
|
|
13148
|
+
} : function(o, m, k, k2) {
|
|
13149
|
+
if (k2 === void 0) k2 = k;
|
|
13150
|
+
o[k2] = m[k];
|
|
13151
|
+
});
|
|
13152
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
13153
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
13154
|
+
} : function(o, v) {
|
|
13155
|
+
o["default"] = v;
|
|
13156
|
+
});
|
|
13157
|
+
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
13158
|
+
if (mod && mod.__esModule) return mod;
|
|
13159
|
+
var result = {};
|
|
13160
|
+
if (mod != null) {
|
|
13161
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
13162
|
+
}
|
|
13163
|
+
__setModuleDefault(result, mod);
|
|
13164
|
+
return result;
|
|
13165
|
+
};
|
|
13166
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13167
|
+
exports2.BiLoggerClientFactory = exports2.createBatchQueue = exports2.manager = exports2.factory = exports2.Factory = exports2.setHost = exports2.EventCategories = exports2.PublishMethods = void 0;
|
|
13168
|
+
var wix_bi_logger_client_1 = require_dist4();
|
|
13169
|
+
var consent_policy_client_accessor_1 = (init_src(), __toCommonJS(src_exports));
|
|
13170
|
+
var assert2 = __importStar(require_assert3());
|
|
13171
|
+
var publishers_1 = require_publishers2();
|
|
13172
|
+
var common_config_1 = require_common_config2();
|
|
13173
|
+
var env_1 = require_env2();
|
|
13174
|
+
var types_1 = require_types3();
|
|
13175
|
+
var event_defaults_1 = require_event_defaults2();
|
|
13176
|
+
var types_2 = require_types3();
|
|
13177
|
+
Object.defineProperty(exports2, "PublishMethods", { enumerable: true, get: function() {
|
|
13178
|
+
return types_2.PublishMethods;
|
|
13179
|
+
} });
|
|
13180
|
+
Object.defineProperty(exports2, "EventCategories", { enumerable: true, get: function() {
|
|
13181
|
+
return types_2.EventCategories;
|
|
13182
|
+
} });
|
|
13183
|
+
var env_2 = require_env2();
|
|
13184
|
+
Object.defineProperty(exports2, "setHost", { enumerable: true, get: function() {
|
|
13185
|
+
return env_2.setHost;
|
|
13186
|
+
} });
|
|
13187
|
+
var Factory = (
|
|
13188
|
+
/** @class */
|
|
13189
|
+
function() {
|
|
13190
|
+
function Factory2(options) {
|
|
13191
|
+
if (options === void 0) {
|
|
13192
|
+
options = {};
|
|
13193
|
+
}
|
|
13194
|
+
this.options = options;
|
|
13195
|
+
this.commonConfigGetter = function() {
|
|
13196
|
+
return void 0;
|
|
13197
|
+
};
|
|
13198
|
+
this.initialized = false;
|
|
13199
|
+
assert2.ok(!options.publishMethod || Object.keys(types_1.PublishMethods).map(function(key) {
|
|
13200
|
+
return types_1.PublishMethods[key];
|
|
13201
|
+
}).indexOf(options.publishMethod) !== -1, 'Unsupported publish method "'.concat(options.publishMethod, '"'));
|
|
13202
|
+
Factory2.consentPolicyAccessor = Factory2.consentPolicyAccessor || new consent_policy_client_accessor_1.ConsentPolicyAccessor();
|
|
13203
|
+
this.loggerClientFactory = (0, wix_bi_logger_client_1.factory)();
|
|
13204
|
+
}
|
|
13205
|
+
Factory2.prototype.initFactory = function() {
|
|
13206
|
+
var _this = this;
|
|
13207
|
+
if (this.initialized) {
|
|
13208
|
+
return this.loggerClientFactory;
|
|
13209
|
+
}
|
|
13210
|
+
this.initialized = true;
|
|
13211
|
+
this.updateDefaults((0, event_defaults_1.getCommonDefaults)(this.commonConfigGetter, Factory2.consentPolicyAccessor));
|
|
13212
|
+
this.withUserContext((0, event_defaults_1.getUserDefaults)());
|
|
13213
|
+
var options = __assign(__assign({}, this.options), { host: this.options.host || function() {
|
|
13214
|
+
return (0, env_1.getHost)((0, common_config_1.getBrand)(_this.commonConfigGetter));
|
|
13215
|
+
} });
|
|
13216
|
+
var publisher = (0, publishers_1.getPublisher)(options, this.publishFunctions);
|
|
13217
|
+
var _a = (0, publishers_1.getTransformers)(options, this.transformer), eventTransformer = _a.eventTransformer, payloadTransformer = _a.payloadTransformer;
|
|
13218
|
+
var baseFactory = this.loggerClientFactory.addPublisher(publisher).withConsentPolicyGetter(function() {
|
|
13219
|
+
return Factory2.consentPolicyAccessor.getCurrentConsentPolicy();
|
|
13220
|
+
});
|
|
13221
|
+
if (eventTransformer) {
|
|
13222
|
+
baseFactory.withEventTransformer(eventTransformer);
|
|
13223
|
+
}
|
|
13224
|
+
if (payloadTransformer) {
|
|
13225
|
+
baseFactory.withPayloadTransformer(payloadTransformer);
|
|
13226
|
+
}
|
|
13227
|
+
return baseFactory;
|
|
13228
|
+
};
|
|
13229
|
+
Factory2.prototype.withTransformer = function(transformer) {
|
|
13230
|
+
assert2.defined(transformer, "Transformer must be provided");
|
|
13231
|
+
assert2.ok(typeof transformer === "function" || transformer && typeof transformer[types_1.PublishMethods.PostMessage] === "function", "Valid transformer must be provided");
|
|
13232
|
+
this.transformer = transformer;
|
|
13233
|
+
return this;
|
|
13234
|
+
};
|
|
13235
|
+
Factory2.prototype.withPublishFunction = function(publishFunctions) {
|
|
13236
|
+
assert2.defined(publishFunctions, "Publish functions object must be provided");
|
|
13237
|
+
assert2.ok(this.options.publishMethod && this.options.publishMethod !== types_1.PublishMethods.Auto, "Publish function can be used only when using a custom publish method");
|
|
13238
|
+
assert2.ok(publishFunctions && typeof publishFunctions[this.options.publishMethod] === "function", "Valid publish function must be provided");
|
|
13239
|
+
this.publishFunctions = publishFunctions;
|
|
13240
|
+
return this;
|
|
13241
|
+
};
|
|
13242
|
+
Factory2.prototype.withUserContext = function(context) {
|
|
13243
|
+
assert2.defined(context, "User context object must be provided");
|
|
13244
|
+
this.updateDefaults((0, event_defaults_1.transformDefaults)(context));
|
|
13245
|
+
return this;
|
|
13246
|
+
};
|
|
13247
|
+
Factory2.prototype.withUoUContext = function(context) {
|
|
13248
|
+
assert2.defined(context, "UoU context object must be provided");
|
|
13249
|
+
this.updateDefaults((0, event_defaults_1.transformDefaults)(context));
|
|
13250
|
+
return this;
|
|
13251
|
+
};
|
|
13252
|
+
Factory2.prototype.withNonEssentialContext = function(context) {
|
|
13253
|
+
assert2.defined(context, "Non-essential context object must be provided");
|
|
13254
|
+
this.loggerClientFactory.updateNonEssentialDefaults((0, event_defaults_1.transformDefaults)(context));
|
|
13255
|
+
return this;
|
|
13256
|
+
};
|
|
13257
|
+
Factory2.prototype.withCommonConfigGetter = function(commonConfigGetter) {
|
|
13258
|
+
assert2.defined(commonConfigGetter, "Common config getter must be provided");
|
|
13259
|
+
assert2.ok(typeof commonConfigGetter === "function", "Common config getter must be a function");
|
|
13260
|
+
this.commonConfigGetter = commonConfigGetter;
|
|
13261
|
+
return this;
|
|
13262
|
+
};
|
|
13263
|
+
Factory2.prototype.updateDefaults = function(params) {
|
|
13264
|
+
this.loggerClientFactory.updateDefaults(params);
|
|
13265
|
+
return this;
|
|
13266
|
+
};
|
|
13267
|
+
Factory2.prototype.setMuted = function(isMuted) {
|
|
13268
|
+
this.loggerClientFactory.setMuted(isMuted);
|
|
13269
|
+
return this;
|
|
13270
|
+
};
|
|
13271
|
+
Factory2.prototype.setEvents = function(events) {
|
|
13272
|
+
this.loggerClientFactory.setEvents(events);
|
|
13273
|
+
return this;
|
|
13274
|
+
};
|
|
13275
|
+
Factory2.prototype.setGlobalBatchQueue = function(batchQueue) {
|
|
13276
|
+
this.loggerClientFactory.setGlobalBatchQueue(batchQueue);
|
|
13277
|
+
return this;
|
|
13278
|
+
};
|
|
13279
|
+
Factory2.prototype.onError = function(handler) {
|
|
13280
|
+
this.loggerClientFactory.setPublisherFailHandler(handler);
|
|
13281
|
+
return this;
|
|
13282
|
+
};
|
|
13283
|
+
Factory2.prototype.logger = function(options) {
|
|
13284
|
+
if (options === void 0) {
|
|
13285
|
+
options = {};
|
|
13286
|
+
}
|
|
13287
|
+
var _a = this.options, endpoint = _a.endpoint, useBatch = _a.useBatch;
|
|
13288
|
+
var logger = this.initFactory().logger(__assign({ endpoint, useBatch }, options));
|
|
13289
|
+
return logger;
|
|
13290
|
+
};
|
|
13291
|
+
return Factory2;
|
|
13292
|
+
}()
|
|
13293
|
+
);
|
|
13294
|
+
exports2.Factory = Factory;
|
|
13295
|
+
var factory2 = function(options) {
|
|
13296
|
+
if (options === void 0) {
|
|
13297
|
+
options = {};
|
|
13298
|
+
}
|
|
13299
|
+
return new Factory(options);
|
|
13300
|
+
};
|
|
13301
|
+
exports2.factory = factory2;
|
|
13302
|
+
exports2.manager = wix_bi_logger_client_1.manager;
|
|
13303
|
+
exports2.createBatchQueue = wix_bi_logger_client_1.createBatchQueue;
|
|
13304
|
+
exports2.BiLoggerClientFactory = wix_bi_logger_client_1.BiLoggerFactory;
|
|
13305
|
+
}
|
|
13306
|
+
});
|
|
13307
|
+
|
|
13308
|
+
// ../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/tracking-logger.js
|
|
13309
|
+
var require_tracking_logger = __commonJS({
|
|
13310
|
+
"../../node_modules/@wix/fe-essentials/node_modules/@wix/web-bi-logger/dist/src/tracking-logger.js"(exports2) {
|
|
13311
|
+
"use strict";
|
|
13312
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
13313
|
+
if (k2 === void 0) k2 = k;
|
|
13314
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12328
13315
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12329
13316
|
desc = { enumerable: true, get: function() {
|
|
12330
13317
|
return m[k];
|
|
@@ -12353,7 +13340,7 @@ var require_tracking_logger = __commonJS({
|
|
|
12353
13340
|
exports2.BiLoggerClientFactory = exports2.EventCategories = exports2.createBatchQueue = exports2.manager = exports2.setHost = exports2.factory = void 0;
|
|
12354
13341
|
var wix_bi_logger_client_1 = require_dist4();
|
|
12355
13342
|
var tracker = __importStar(require_tracker());
|
|
12356
|
-
var logger = __importStar(
|
|
13343
|
+
var logger = __importStar(require_logger2());
|
|
12357
13344
|
var factory2 = function(options) {
|
|
12358
13345
|
if (options === void 0) {
|
|
12359
13346
|
options = {};
|
|
@@ -12847,31 +13834,31 @@ var require_common_errors_he = __commonJS({
|
|
|
12847
13834
|
var require_common_errors_hi = __commonJS({
|
|
12848
13835
|
"../../node_modules/@wix/error-handler/dist/esm/assets/locale/common-errors/common-errors_hi.json"(exports2, module2) {
|
|
12849
13836
|
module2.exports = {
|
|
12850
|
-
"errorHandler.common-error.permission-denied.site": "
|
|
12851
|
-
"errorHandler.uncommon-error.NotImplemented": "
|
|
12852
|
-
"errorHandler.common-error.conflict": "
|
|
12853
|
-
"errorHandler.common-error.permission-denied.app": "
|
|
12854
|
-
"errorHandler.common-error.permission-denied.workspace": "
|
|
12855
|
-
"errorHandler.common-error.CheckStatus.cta": "
|
|
12856
|
-
"errorHandler.common-error.refresh.cta": "
|
|
12857
|
-
"errorHandler.common-error.noConnection": "
|
|
12858
|
-
"errorHandler.common-error.resource-exhausted": "
|
|
12859
|
-
"errorHandler.common-error.unauthenticated.cta": "
|
|
12860
|
-
"errorHandler.common-error.goBack.cta": "
|
|
12861
|
-
"errorHandler.common-error.not-found": "
|
|
12862
|
-
"errorHandler.common-error.captchaRequired.verify.cta": "
|
|
12863
|
-
"errorHandler.common-error.tryAgain.cta": "
|
|
12864
|
-
"errorHandler.requestID.tooltip.cta": "
|
|
12865
|
-
"errorHandler.common-error.permission-denied": "
|
|
12866
|
-
"errorHandler.requestID.tooltip.description": "
|
|
12867
|
-
"errorHandler.common-error.technicalIssue-unmappedError": "
|
|
12868
|
-
"errorHandler.common-error.unauthenticated": "
|
|
12869
|
-
"errorHandler.common-error.networkError": "
|
|
12870
|
-
"errorHandler.common-error.technicalIssue": "
|
|
12871
|
-
"errorHandler.common-error.captchaRequired": "
|
|
12872
|
-
"errorHandler.common-error.technicalIssue.generic": "
|
|
12873
|
-
"errorHandler.common-error.validationBasic": "
|
|
12874
|
-
"errorHandler.requestID.tooltip.cta.copied-success": "
|
|
13837
|
+
"errorHandler.common-error.permission-denied.site": "\u0906\u092A\u0915\u0947 \u092A\u093E\u0938 \u0910\u0938\u093E \u0915\u0930\u0928\u0947 \u0915\u0940 \u0905\u0928\u0941\u092E\u0924\u093F \u0928\u0939\u0940\u0902 \u0939\u0948\u0964 \u0938\u093E\u0907\u091F \u0915\u0947 \u092E\u093E\u0932\u093F\u0915 \u0938\u0947 \u090F\u0915\u094D\u0938\u0947\u0938 \u0915\u093E \u0905\u0928\u0941\u0930\u094B\u0927 \u0915\u0930\u0947\u0902\u0964",
|
|
13838
|
+
"errorHandler.uncommon-error.NotImplemented": "\u092F\u0939 \u090F\u0915\u094D\u0936\u0928 \u0905\u092D\u0940 \u0909\u092A\u0932\u092C\u094D\u0927 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",
|
|
13839
|
+
"errorHandler.common-error.conflict": "\u092F\u0939 \u092A\u0943\u0937\u094D\u0920 \u0915\u0939\u0940\u0902 \u0914\u0930 \u0905\u092A\u0921\u0947\u091F \u0939\u094B \u091C\u093E\u0928\u0947 \u0915\u0947 \u0915\u093E\u0930\u0923 \u0906\u092A \u092C\u0926\u0932\u093E\u0935\u094B\u0902 \u0915\u094B \u0938\u0947\u0935 \u0928\u0939\u0940\u0902 \u0915\u0930 \u0938\u0915\u0924\u0947\u0964 \u0905\u092A\u0928\u0947 \u092A\u0930\u093F\u0935\u0930\u094D\u0924\u0928\u094B\u0902 \u0915\u094B \u0928\u094B\u091F \u0915\u0930\u0947\u0902, \u092B\u093F\u0930 \u0930\u093F\u092B\u094D\u0930\u0947\u0936 \u0915\u0930\u0947\u0902 \u0914\u0930 \u092B\u093F\u0930 \u0938\u0947 \u0938\u0902\u092A\u093E\u0926\u093F\u0924 \u0915\u0930\u0928\u0947 \u0915\u093E \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964",
|
|
13840
|
+
"errorHandler.common-error.permission-denied.app": "\u0906\u092A\u0915\u0947 \u092A\u093E\u0938 \u092F\u0939 \u0915\u093E\u0930\u094D\u092F\u0935\u093E\u0908 \u0915\u094B \u0915\u0930\u0928\u0947 \u0915\u0940 \u0905\u0928\u0941\u092E\u0924\u093F \u0928\u0939\u0940\u0902 \u0939\u0948\u0964 \u0910\u092A \u092E\u093E\u0932\u093F\u0915 \u0938\u0947 \u090F\u0915\u094D\u0938\u0947\u0938 \u0915\u093E \u0905\u0928\u0941\u0930\u094B\u0927 \u0915\u0930\u0947\u0902\u0964",
|
|
13841
|
+
"errorHandler.common-error.permission-denied.workspace": "\u0906\u092A\u0915\u0947 \u092A\u093E\u0938 \u092F\u0939 \u0915\u093E\u0930\u094D\u092F\u0935\u093E\u0908 \u0915\u094B \u0915\u0930\u0928\u0947 \u0915\u0940 \u0905\u0928\u0941\u092E\u0924\u093F \u0928\u0939\u0940\u0902 \u0939\u0948\u0964 \u0935\u0930\u094D\u0915\u0938\u094D\u092A\u0947\u0938 \u092E\u093E\u0932\u093F\u0915 \u0938\u0947 \u090F\u0915\u094D\u0938\u0947\u0938 \u0915\u093E \u0905\u0928\u0941\u0930\u094B\u0927 \u0915\u0930\u0947\u0902\u0964",
|
|
13842
|
+
"errorHandler.common-error.CheckStatus.cta": "\u0938\u094D\u0925\u093F\u0924\u093F \u092A\u0943\u0937\u094D\u0920 \u091C\u093E\u0902\u091A\u0947\u0902",
|
|
13843
|
+
"errorHandler.common-error.refresh.cta": "\u0930\u0940\u095E\u094D\u0930\u0947\u0936 \u0915\u0930\u0947\u0902",
|
|
13844
|
+
"errorHandler.common-error.noConnection": "\u0910\u0938\u093E \u0932\u0917\u0924\u093E \u0939\u0948 \u0915\u093F \u0906\u092A \u0911\u092B\u093C\u0932\u093E\u0907\u0928 \u0939\u0948\u0902\u0964 \u0906\u092A\u0915\u0947 \u0915\u0928\u0947\u0915\u094D\u0936\u0928 \u0915\u0940 \u091C\u093E\u0902\u091A \u0915\u0930 \u092B\u093F\u0930 \u0938\u0947 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902\u0964",
|
|
13845
|
+
"errorHandler.common-error.resource-exhausted": "\u092C\u0939\u0941\u0924 \u091C\u093C\u094D\u092F\u093E\u0926\u093E \u090F\u0915\u094D\u0936\u0928 \u092C\u0939\u0941\u0924 \u0924\u0947\u091C\u093C\u0940 \u0938\u0947 \u0915\u093F\u090F \u0917\u090F\u0964 \u090F\u0915 \u092E\u093F\u0928\u091F \u0930\u0941\u0915\u0947\u0902 \u0914\u0930 \u092B\u093F\u0930 \u0938\u0947 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902\u0964",
|
|
13846
|
+
"errorHandler.common-error.unauthenticated.cta": "\u0932\u0949\u0917 \u0907\u0928 \u0915\u0930\u0947\u0902",
|
|
13847
|
+
"errorHandler.common-error.goBack.cta": "\u0935\u093E\u092A\u0938 \u091C\u093E\u090F\u0902",
|
|
13848
|
+
"errorHandler.common-error.not-found": "\u0910\u0938\u093E \u0932\u0917\u0924\u093E \u0939\u0948 \u0915\u093F \u092F\u0939 \u0905\u092C \u092E\u094C\u091C\u0942\u0926 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",
|
|
13849
|
+
"errorHandler.common-error.captchaRequired.verify.cta": "\u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902",
|
|
13850
|
+
"errorHandler.common-error.tryAgain.cta": "\u092B\u093F\u0930 \u0938\u0947 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902",
|
|
13851
|
+
"errorHandler.requestID.tooltip.cta": "\u0906\u0908\u0921\u0940 \u0915\u0949\u092A\u0940 \u0915\u0930\u0947\u0902",
|
|
13852
|
+
"errorHandler.common-error.permission-denied": "\u0906\u092A\u0915\u0947 \u092A\u093E\u0938 \u0906\u0935\u0936\u094D\u092F\u0915 \u0905\u0928\u0941\u092E\u0924\u093F\u092F\u093E\u0901 \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u092E\u093E\u0932\u093F\u0915 \u0938\u0947 \u092A\u0939\u0941\u0901\u091A \u0915\u093E \u0905\u0928\u0941\u0930\u094B\u0927 \u0915\u0930\u0947\u0902\u0964",
|
|
13853
|
+
"errorHandler.requestID.tooltip.description": "\u092F\u0926\u093F \u0906\u092A \u0907\u0938 \u0924\u094D\u0930\u0941\u091F\u093F \u0915\u0940 \u0930\u093F\u092A\u094B\u0930\u094D\u091F \u0917\u094D\u0930\u093E\u0939\u0915 \u0938\u0947\u0935\u093E \u0915\u094B \u0915\u0930\u0924\u0947 \u0939\u0948\u0902, \u0924\u094B \u0907\u0938 \u0905\u0928\u0941\u0930\u094B\u0927 \u0906\u0908\u0921\u0940 \u0915\u094B \u0938\u093E\u091D\u093E \u0915\u0930\u0947\u0902 \u0924\u093E\u0915\u093F \u0935\u0947 \u091C\u093E\u0902\u091A \u0915\u0930 \u0938\u0915\u0947\u0902\u0964",
|
|
13854
|
+
"errorHandler.common-error.technicalIssue-unmappedError": "\u0939\u092E\u093E\u0930\u0947 \u092F\u0939\u093E\u0901 \u0915\u094B\u0908 \u0924\u0915\u0928\u0940\u0915\u0940 \u0916\u0930\u093E\u092C\u0940 \u0925\u0940\u0964 \u092B\u093F\u0930 \u0938\u0947 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902 \u092F\u093E \u0930\u0940\u092B\u093C\u094D\u0930\u0947\u0936 \u0915\u0930\u0947\u0902\u0964",
|
|
13855
|
+
"errorHandler.common-error.unauthenticated": "\u0906\u092A \u0932\u0949\u0917 \u0906\u0909\u091F \u0939\u094B \u0917\u090F \u0939\u0948\u0902\u0964 \u0932\u0949\u0917 \u0907\u0928 \u0915\u0930\u0915\u0947 \u091C\u093E\u0930\u0940 \u0930\u0916\u0947\u0902\u0964",
|
|
13856
|
+
"errorHandler.common-error.networkError": "\u0906\u092A\u0915\u0947 \u0928\u0947\u091F\u0935\u0930\u094D\u0915 \u0938\u0947 \u0915\u0928\u0947\u0915\u094D\u091F \u0939\u094B\u0928\u0947 \u092E\u0947\u0902 \u0938\u092E\u0938\u094D\u092F\u093E \u0925\u0940\u0964 \u0906\u092A\u0915\u0947 \u0915\u0928\u0947\u0915\u094D\u0936\u0928 \u0915\u0940 \u091C\u093E\u0902\u091A \u0915\u0930 \u092B\u093F\u0930 \u0938\u0947 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902\u0964",
|
|
13857
|
+
"errorHandler.common-error.technicalIssue": "\u0939\u092E\u093E\u0930\u0947 \u092F\u0939\u093E\u0901 \u0915\u094B\u0908 \u0924\u0915\u0928\u0940\u0915\u0940 \u0916\u0930\u093E\u092C\u0940 \u0925\u0940\u0964 \u092B\u093F\u0930 \u0938\u0947 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902 \u092F\u093E \u0930\u0940\u092B\u093C\u094D\u0930\u0947\u0936 \u0915\u0930\u0947\u0902\u0964",
|
|
13858
|
+
"errorHandler.common-error.captchaRequired": "\u091C\u093E\u0930\u0940 \u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0915\u0943\u092A\u092F\u093E \u0938\u0924\u094D\u092F\u093E\u092A\u093F\u0924 \u0915\u0930\u0947\u0902 \u0915\u093F \u0906\u092A \u090F\u0915 \u0907\u0902\u0938\u093E\u0928 \u0939\u0948\u0902\u0964",
|
|
13859
|
+
"errorHandler.common-error.technicalIssue.generic": "\u0939\u092E\u093E\u0930\u0947 \u092F\u0939\u093E\u0901 \u0915\u094B\u0908 \u0924\u0915\u0928\u0940\u0915\u0940 \u0916\u0930\u093E\u092C\u0940 \u0925\u0940\u0964 \u092B\u093F\u0930 \u0938\u0947 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902 \u092F\u093E \u0930\u0940\u092B\u093C\u094D\u0930\u0947\u0936 \u0915\u0930\u0947\u0902\u0964",
|
|
13860
|
+
"errorHandler.common-error.validationBasic": "\u0915\u0941\u091B \u092B\u093C\u0940\u0932\u094D\u0921 \u092E\u0947\u0902 \u0905\u092E\u093E\u0928\u094D\u092F \u092F\u093E \u0917\u093E\u092F\u092C \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u0939\u0948\u0964",
|
|
13861
|
+
"errorHandler.requestID.tooltip.cta.copied-success": "\u0915\u0949\u092A\u0940 \u0915\u0930 \u0932\u093F\u092F\u093E!"
|
|
12875
13862
|
};
|
|
12876
13863
|
}
|
|
12877
13864
|
});
|
|
@@ -13035,7 +14022,7 @@ var require_common_errors_ja = __commonJS({
|
|
|
13035
14022
|
"errorHandler.common-error.technicalIssue": "\u5F0A\u793E\u5074\u3067\u6280\u8853\u7684\u306A\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u304A\u624B\u6570\u3067\u3059\u304C\u3001\u518D\u5EA6\u304A\u8A66\u3057\u306B\u306A\u308B\u304B\u30DA\u30FC\u30B8\u3092\u518D\u8AAD\u307F\u8FBC\u307F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
13036
14023
|
"errorHandler.common-error.captchaRequired": "\u7D9A\u884C\u3059\u308B\u306B\u306F\u3001\u3042\u306A\u305F\u304C\u4EBA\u9593\u3067\u3042\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
13037
14024
|
"errorHandler.common-error.technicalIssue.generic": "\u5F0A\u793E\u5074\u3067\u6280\u8853\u7684\u306A\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u304A\u624B\u6570\u3067\u3059\u304C\u3001\u518D\u5EA6\u304A\u8A66\u3057\u306B\u306A\u308B\u304B\u30DA\u30FC\u30B8\u3092\u518D\u8AAD\u307F\u8FBC\u307F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
13038
|
-
"errorHandler.common-error.validationBasic": "\
|
|
14025
|
+
"errorHandler.common-error.validationBasic": "\u9805\u76EE\u304C\u7121\u52B9\u307E\u305F\u306F\u60C5\u5831\u304C\u4E0D\u8DB3\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
13039
14026
|
"errorHandler.requestID.tooltip.cta.copied-success": "\u30B3\u30D4\u30FC\u6E08\u307F"
|
|
13040
14027
|
};
|
|
13041
14028
|
}
|
|
@@ -13589,7 +14576,7 @@ var require_common_errors_uk = __commonJS({
|
|
|
13589
14576
|
"errorHandler.common-error.tryAgain.cta": "\u0421\u043F\u0440\u043E\u0431\u0443\u0432\u0430\u0442\u0438 \u0437\u043D\u043E\u0432\u0443",
|
|
13590
14577
|
"errorHandler.requestID.tooltip.cta": "\u041A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438 \u0456\u0434\u0435\u043D\u0442\u0438\u0444\u0456\u043A\u0430\u0442\u043E\u0440",
|
|
13591
14578
|
"errorHandler.common-error.permission-denied": "\u0423 \u0432\u0430\u0441 \u043D\u0435\u043C\u0430\u0454 \u043F\u043E\u0442\u0440\u0456\u0431\u043D\u0438\u0445 \u0434\u043E\u0437\u0432\u043E\u043B\u0456\u0432. \u041F\u043E\u043F\u0440\u043E\u0441\u0456\u0442\u044C \u0432\u043B\u0430\u0441\u043D\u0438\u043A\u0430 \u043D\u0430\u0434\u0430\u0442\u0438 \u0432\u0430\u043C \u0434\u043E\u0441\u0442\u0443\u043F.",
|
|
13592
|
-
"errorHandler.requestID.tooltip.description": "
|
|
14579
|
+
"errorHandler.requestID.tooltip.description": "\u042F\u043A\u0449\u043E \u0432\u0438 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u044F\u0454\u0442\u0435 \u043F\u0440\u043E \u0446\u044E \u043F\u043E\u043C\u0438\u043B\u043A\u0443 \u0421\u043B\u0443\u0436\u0431\u0456 \u043F\u0456\u0434\u0442\u0440\u0438\u043C\u043A\u0438, \u043D\u0430\u0434\u0430\u0439\u0442\u0435 \u0457\u043C \u0446\u0435\u0439 \u0456\u0434\u0435\u043D\u0442\u0438\u0444\u0456\u043A\u0430\u0442\u043E\u0440 \u0437\u0430\u043F\u0438\u0442\u0443, \u0449\u043E\u0431 \u0432\u043E\u043D\u0438 \u043C\u043E\u0433\u043B\u0438 \u0434\u043E\u0441\u043B\u0456\u0434\u0438\u0442\u0438 \u043F\u043E\u043C\u0438\u043B\u043A\u0443.",
|
|
13593
14580
|
"errorHandler.common-error.technicalIssue-unmappedError": "\u0423 \u043D\u0430\u0441 \u0432\u0438\u043D\u0438\u043A\u043B\u0430 \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0430 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0430. \u0421\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u043D\u043E\u0432\u0443 \u0430\u0431\u043E \u043E\u043D\u043E\u0432\u0456\u0442\u044C.",
|
|
13594
14581
|
"errorHandler.common-error.unauthenticated": "\u0412\u0438 \u0432\u0438\u0439\u0448\u043B\u0438 \u0437 \u0430\u043A\u0430\u0443\u043D\u0442\u0430. \u0423\u0432\u0456\u0439\u0434\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438.",
|
|
13595
14582
|
"errorHandler.common-error.networkError": "\u0412\u0438\u043D\u0438\u043A\u043B\u0430 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0430 \u0437 \u043F\u0456\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044F\u043C \u0434\u043E \u0432\u0430\u0448\u043E\u0457 \u043C\u0435\u0440\u0435\u0436\u0456. \u041F\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u043F\u0456\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044F \u0434\u043E \u0456\u043D\u0442\u0435\u0440\u043D\u0435\u0442\u0443 \u0442\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0456\u0442\u044C \u0441\u043F\u0440\u043E\u0431\u0443.",
|
|
@@ -14677,7 +15664,8 @@ var ReadOnlyExperiments = (
|
|
|
14677
15664
|
return this.experiments[key];
|
|
14678
15665
|
};
|
|
14679
15666
|
ReadOnlyExperiments2.prototype.enabled = function(key) {
|
|
14680
|
-
|
|
15667
|
+
var value = this.experiments[key];
|
|
15668
|
+
return value === "true" || value === true || value === "B";
|
|
14681
15669
|
};
|
|
14682
15670
|
ReadOnlyExperiments2.prototype.pending = function() {
|
|
14683
15671
|
return false;
|
|
@@ -17263,7 +18251,7 @@ function reportErrorResolutionBi(errorHandler, params) {
|
|
|
17263
18251
|
}));
|
|
17264
18252
|
}
|
|
17265
18253
|
|
|
17266
|
-
// ../../node_modules/@wix/error-handler/node_modules/uuid/dist/esm
|
|
18254
|
+
// ../../node_modules/@wix/error-handler/node_modules/uuid/dist/esm/stringify.js
|
|
17267
18255
|
var byteToHex = [];
|
|
17268
18256
|
for (let i = 0; i < 256; ++i) {
|
|
17269
18257
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
@@ -17272,35 +18260,39 @@ function unsafeStringify(arr2, offset = 0) {
|
|
|
17272
18260
|
return (byteToHex[arr2[offset + 0]] + byteToHex[arr2[offset + 1]] + byteToHex[arr2[offset + 2]] + byteToHex[arr2[offset + 3]] + "-" + byteToHex[arr2[offset + 4]] + byteToHex[arr2[offset + 5]] + "-" + byteToHex[arr2[offset + 6]] + byteToHex[arr2[offset + 7]] + "-" + byteToHex[arr2[offset + 8]] + byteToHex[arr2[offset + 9]] + "-" + byteToHex[arr2[offset + 10]] + byteToHex[arr2[offset + 11]] + byteToHex[arr2[offset + 12]] + byteToHex[arr2[offset + 13]] + byteToHex[arr2[offset + 14]] + byteToHex[arr2[offset + 15]]).toLowerCase();
|
|
17273
18261
|
}
|
|
17274
18262
|
|
|
17275
|
-
// ../../node_modules/@wix/error-handler/node_modules/uuid/dist/esm
|
|
17276
|
-
var
|
|
18263
|
+
// ../../node_modules/@wix/error-handler/node_modules/uuid/dist/esm/rng.js
|
|
18264
|
+
var import_crypto = require("crypto");
|
|
17277
18265
|
var rnds8Pool = new Uint8Array(256);
|
|
17278
18266
|
var poolPtr = rnds8Pool.length;
|
|
17279
18267
|
function rng() {
|
|
17280
18268
|
if (poolPtr > rnds8Pool.length - 16) {
|
|
17281
|
-
|
|
18269
|
+
(0, import_crypto.randomFillSync)(rnds8Pool);
|
|
17282
18270
|
poolPtr = 0;
|
|
17283
18271
|
}
|
|
17284
18272
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
17285
18273
|
}
|
|
17286
18274
|
|
|
17287
|
-
// ../../node_modules/@wix/error-handler/node_modules/uuid/dist/esm
|
|
17288
|
-
var
|
|
17289
|
-
var native_default = {
|
|
17290
|
-
randomUUID: import_node_crypto2.default.randomUUID
|
|
17291
|
-
};
|
|
18275
|
+
// ../../node_modules/@wix/error-handler/node_modules/uuid/dist/esm/native.js
|
|
18276
|
+
var import_crypto2 = require("crypto");
|
|
18277
|
+
var native_default = { randomUUID: import_crypto2.randomUUID };
|
|
17292
18278
|
|
|
17293
|
-
// ../../node_modules/@wix/error-handler/node_modules/uuid/dist/esm
|
|
18279
|
+
// ../../node_modules/@wix/error-handler/node_modules/uuid/dist/esm/v4.js
|
|
17294
18280
|
function v4(options, buf, offset) {
|
|
17295
18281
|
if (native_default.randomUUID && !buf && !options) {
|
|
17296
18282
|
return native_default.randomUUID();
|
|
17297
18283
|
}
|
|
17298
18284
|
options = options || {};
|
|
17299
|
-
const rnds = options.random
|
|
18285
|
+
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
18286
|
+
if (rnds.length < 16) {
|
|
18287
|
+
throw new Error("Random bytes length must be >= 16");
|
|
18288
|
+
}
|
|
17300
18289
|
rnds[6] = rnds[6] & 15 | 64;
|
|
17301
18290
|
rnds[8] = rnds[8] & 63 | 128;
|
|
17302
18291
|
if (buf) {
|
|
17303
18292
|
offset = offset || 0;
|
|
18293
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
18294
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
18295
|
+
}
|
|
17304
18296
|
for (let i = 0; i < 16; ++i) {
|
|
17305
18297
|
buf[offset + i] = rnds[i];
|
|
17306
18298
|
}
|