@wix/form-public 0.477.0 → 0.478.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/dist/index.cjs +715 -842
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +980 -650
- package/dist/index.css.map +1 -1
- package/dist/index.js +715 -842
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -15723,7 +15723,7 @@ var init_plugin_names = __esm({
|
|
|
15723
15723
|
var RICOS_VERSION;
|
|
15724
15724
|
var init_version = __esm({
|
|
15725
15725
|
"../../node_modules/@wix/ricos/dist/es/ricos-schema/next-schema/version.js"() {
|
|
15726
|
-
RICOS_VERSION = "11.
|
|
15726
|
+
RICOS_VERSION = "11.18.0";
|
|
15727
15727
|
}
|
|
15728
15728
|
});
|
|
15729
15729
|
|
|
@@ -16291,55 +16291,6 @@ var require_classnames = __commonJS({
|
|
|
16291
16291
|
}
|
|
16292
16292
|
});
|
|
16293
16293
|
|
|
16294
|
-
// ../../node_modules/@wix/ricos/dist/es/_shared/deep-merge.js
|
|
16295
|
-
function deepMerge(target, ...sources) {
|
|
16296
|
-
for (const source of sources) {
|
|
16297
|
-
if (isMergeable(source)) {
|
|
16298
|
-
mergeInto(target, source);
|
|
16299
|
-
}
|
|
16300
|
-
}
|
|
16301
|
-
return target;
|
|
16302
|
-
}
|
|
16303
|
-
var UNSAFE_KEYS, isMergeable, mergeInto;
|
|
16304
|
-
var init_deep_merge = __esm({
|
|
16305
|
-
"../../node_modules/@wix/ricos/dist/es/_shared/deep-merge.js"() {
|
|
16306
|
-
UNSAFE_KEYS = ["__proto__", "constructor", "prototype"];
|
|
16307
|
-
isMergeable = (value) => {
|
|
16308
|
-
if (Array.isArray(value)) {
|
|
16309
|
-
return true;
|
|
16310
|
-
}
|
|
16311
|
-
if (typeof value !== "object" || value === null) {
|
|
16312
|
-
return false;
|
|
16313
|
-
}
|
|
16314
|
-
const proto = Object.getPrototypeOf(value);
|
|
16315
|
-
return proto === Object.prototype || proto === null;
|
|
16316
|
-
};
|
|
16317
|
-
mergeInto = (target, source) => {
|
|
16318
|
-
for (const key of Object.keys(source)) {
|
|
16319
|
-
if (UNSAFE_KEYS.includes(key)) {
|
|
16320
|
-
continue;
|
|
16321
|
-
}
|
|
16322
|
-
const sourceValue = source[key];
|
|
16323
|
-
if (sourceValue === void 0) {
|
|
16324
|
-
continue;
|
|
16325
|
-
}
|
|
16326
|
-
const targetValue = target[key];
|
|
16327
|
-
if (isMergeable(sourceValue)) {
|
|
16328
|
-
if (isMergeable(targetValue) && Array.isArray(targetValue) === Array.isArray(sourceValue)) {
|
|
16329
|
-
mergeInto(targetValue, sourceValue);
|
|
16330
|
-
} else {
|
|
16331
|
-
const fresh = Array.isArray(sourceValue) ? [] : {};
|
|
16332
|
-
mergeInto(fresh, sourceValue);
|
|
16333
|
-
target[key] = fresh;
|
|
16334
|
-
}
|
|
16335
|
-
} else {
|
|
16336
|
-
target[key] = sourceValue;
|
|
16337
|
-
}
|
|
16338
|
-
}
|
|
16339
|
-
};
|
|
16340
|
-
}
|
|
16341
|
-
});
|
|
16342
|
-
|
|
16343
16294
|
// ../../node_modules/fp-ts-esm/es6/function.js
|
|
16344
16295
|
function identity(a2) {
|
|
16345
16296
|
return a2;
|
|
@@ -18579,6 +18530,83 @@ var init_is_empty = __esm({
|
|
|
18579
18530
|
}
|
|
18580
18531
|
});
|
|
18581
18532
|
|
|
18533
|
+
// ../../node_modules/@wix/ricos/dist/es/theme-utils/color-utils.js
|
|
18534
|
+
var SHADES_RATIOS, HEX_COLOR_RE, parseHexToRgb, rgbToHexString, clampChannel, mixChannels, mixHexColors, hexToRgba, getOpacityFromHex2, getHexColorFromAlpha2;
|
|
18535
|
+
var init_color_utils2 = __esm({
|
|
18536
|
+
"../../node_modules/@wix/ricos/dist/es/theme-utils/color-utils.js"() {
|
|
18537
|
+
init_theme_color_token();
|
|
18538
|
+
SHADES_RATIOS = { shade1: 0.1, shade2: 0.3, shade3: 0.5 };
|
|
18539
|
+
HEX_COLOR_RE = /^#?([0-9a-fA-F]{6})$/;
|
|
18540
|
+
parseHexToRgb = (hex) => {
|
|
18541
|
+
const match4 = hex.match(HEX_COLOR_RE);
|
|
18542
|
+
if (!match4) {
|
|
18543
|
+
return { r: 0, g: 0, b: 0 };
|
|
18544
|
+
}
|
|
18545
|
+
const h2 = match4[1];
|
|
18546
|
+
return {
|
|
18547
|
+
r: parseInt(h2.substring(0, 2), 16),
|
|
18548
|
+
g: parseInt(h2.substring(2, 4), 16),
|
|
18549
|
+
b: parseInt(h2.substring(4, 6), 16)
|
|
18550
|
+
};
|
|
18551
|
+
};
|
|
18552
|
+
rgbToHexString = ({ r: r3, g, b }) => {
|
|
18553
|
+
const toHex = (v) => Math.round(v).toString(16).padStart(2, "0");
|
|
18554
|
+
return `#${toHex(r3)}${toHex(g)}${toHex(b)}`;
|
|
18555
|
+
};
|
|
18556
|
+
clampChannel = (v) => Math.round(Math.min(255, Math.max(0, v)));
|
|
18557
|
+
mixChannels = (dark, light, darkRatio) => ({
|
|
18558
|
+
r: clampChannel(darkRatio * dark.r + (1 - darkRatio) * light.r),
|
|
18559
|
+
g: clampChannel(darkRatio * dark.g + (1 - darkRatio) * light.g),
|
|
18560
|
+
b: clampChannel(darkRatio * dark.b + (1 - darkRatio) * light.b)
|
|
18561
|
+
});
|
|
18562
|
+
mixHexColors = (lightHex, darkHex, darkRatio) => rgbToHexString(mixChannels(parseHexToRgb(darkHex), parseHexToRgb(lightHex), darkRatio));
|
|
18563
|
+
hexToRgba = (alphaHex, opacity) => {
|
|
18564
|
+
if (!alphaHex) {
|
|
18565
|
+
return "";
|
|
18566
|
+
}
|
|
18567
|
+
if (isThemeColorToken(alphaHex)) {
|
|
18568
|
+
const effectiveOpacity = opacity ?? getThemeColorTokenOpacity(alphaHex);
|
|
18569
|
+
if (effectiveOpacity < 100) {
|
|
18570
|
+
const tupleVar = themeColorTokenToCssVar(alphaHex, "rgbTuple");
|
|
18571
|
+
return `rgba(${tupleVar}, ${effectiveOpacity / 100})`;
|
|
18572
|
+
}
|
|
18573
|
+
return themeColorTokenToCssVar(alphaHex);
|
|
18574
|
+
}
|
|
18575
|
+
const opacityPercentage = opacity ?? getOpacityFromHex2(alphaHex);
|
|
18576
|
+
let hexColor = getHexColorFromAlpha2(alphaHex)?.replace(/^#/, "") ?? "";
|
|
18577
|
+
if (hexColor.length === 3) {
|
|
18578
|
+
hexColor = hexColor.split("").map((char) => char + char).join("");
|
|
18579
|
+
}
|
|
18580
|
+
const bigint = parseInt(hexColor, 16);
|
|
18581
|
+
const r3 = bigint >> 16 & 255;
|
|
18582
|
+
const g = bigint >> 8 & 255;
|
|
18583
|
+
const b = bigint & 255;
|
|
18584
|
+
return `rgba(${r3}, ${g}, ${b}${opacityPercentage !== void 0 ? `, ${opacityPercentage / 100}` : ""})`;
|
|
18585
|
+
};
|
|
18586
|
+
getOpacityFromHex2 = (hexColorWithAlpha) => {
|
|
18587
|
+
if (isThemeColorToken(hexColorWithAlpha)) {
|
|
18588
|
+
return getThemeColorTokenOpacity(hexColorWithAlpha);
|
|
18589
|
+
}
|
|
18590
|
+
if (!hexColorWithAlpha || hexColorWithAlpha.length === 7) {
|
|
18591
|
+
return 100;
|
|
18592
|
+
}
|
|
18593
|
+
const hex = hexColorWithAlpha.replace("#", "");
|
|
18594
|
+
const alphaHex = hex.slice(6, 8);
|
|
18595
|
+
const alphaDecimal = parseInt(alphaHex, 16);
|
|
18596
|
+
return Math.round(alphaDecimal / 255 * 100);
|
|
18597
|
+
};
|
|
18598
|
+
getHexColorFromAlpha2 = (hexColorWithAlpha) => {
|
|
18599
|
+
if (isThemeColorToken(hexColorWithAlpha)) {
|
|
18600
|
+
return stripThemeColorTokenOpacity(hexColorWithAlpha);
|
|
18601
|
+
}
|
|
18602
|
+
if (!hexColorWithAlpha || hexColorWithAlpha.length === 7) {
|
|
18603
|
+
return hexColorWithAlpha;
|
|
18604
|
+
}
|
|
18605
|
+
return hexColorWithAlpha.slice(0, 7);
|
|
18606
|
+
};
|
|
18607
|
+
}
|
|
18608
|
+
});
|
|
18609
|
+
|
|
18582
18610
|
// ../../node_modules/@wix/ricos/dist/es/ricos-styles/theme-constants.js
|
|
18583
18611
|
var ACTION_COLOR_DEFAULT, TEXT_COLOR_DEFAULT, BG_COLOR_DEFAULT, FALLBACK_COLOR_DEFAULT, FALLBACK_COLOR_BRIGHT_DEFAULT, HEADING_FONT_SIZES, PARAGRAPH_FONT_SIZE;
|
|
18584
18612
|
var init_theme_constants = __esm({
|
|
@@ -18959,36 +18987,25 @@ function createThemeColorVars(colorPalette) {
|
|
|
18959
18987
|
}
|
|
18960
18988
|
return vars;
|
|
18961
18989
|
}
|
|
18962
|
-
|
|
18963
|
-
const LEGACY_SLOT_MAP = [
|
|
18964
|
-
["1", colors.bgColor],
|
|
18965
|
-
["2", colors.textColor],
|
|
18966
|
-
["3", colors.actionColor],
|
|
18967
|
-
["7", colors.textColorLow],
|
|
18968
|
-
["8", colors.disabledColor],
|
|
18969
|
-
["9", colors.fallbackColor]
|
|
18970
|
-
];
|
|
18971
|
-
const vars = {};
|
|
18972
|
-
for (const [slot, value] of LEGACY_SLOT_MAP) {
|
|
18973
|
-
if (!value || !canTransformToHex(value)) {
|
|
18974
|
-
continue;
|
|
18975
|
-
}
|
|
18976
|
-
const hex = toHexFormat(value);
|
|
18977
|
-
vars[`theme-color-${slot}`] = hex;
|
|
18978
|
-
vars[`theme-color-${slot}-tuple`] = toRgbTuple(hex);
|
|
18979
|
-
}
|
|
18980
|
-
return vars;
|
|
18981
|
-
}
|
|
18982
|
-
var RGB_VAR_COLOR_RE, RGBA_VAR_COLOR_RE, isNewRicosPalette, mapRicosPaletteToLegacyPalette, colorToCss, toTupleValue, createCssVars, extractColors;
|
|
18990
|
+
var RGB_VAR_COLOR_RE, RGBA_VAR_COLOR_RE, OPAQUE_HEX_COLOR_RE, ACCENT_TINT_RATIO, DERIVED_COLOR_TEXT_RATIOS, isNewRicosPalette, mapRicosPaletteToLegacyPalette, mapLegacyPaletteToRicosPalette, colorToCss, toTupleValue, toOpaqueHex, mixTextIntoBackground, completeColorPalette, getThemeColorPalette, createCssVars, extractColors;
|
|
18983
18991
|
var init_palette = __esm({
|
|
18984
18992
|
"../../node_modules/@wix/ricos/dist/es/ricos-styles/themeStrategy/generators/palette.js"() {
|
|
18985
18993
|
init_theme_color_token();
|
|
18994
|
+
init_color_utils2();
|
|
18986
18995
|
init_theme_constants();
|
|
18987
18996
|
init_palettes();
|
|
18988
18997
|
init_theme_utils();
|
|
18989
18998
|
init_identifiers();
|
|
18990
18999
|
RGB_VAR_COLOR_RE = /^rgb\(\s*(var\(--[^)]+\))\s*\)$/i;
|
|
18991
19000
|
RGBA_VAR_COLOR_RE = /^rgba\(\s*(var\(--[^)]+\))\s*,\s*[^)]+\)$/i;
|
|
19001
|
+
OPAQUE_HEX_COLOR_RE = /^#[0-9a-f]{6}$/i;
|
|
19002
|
+
ACCENT_TINT_RATIO = 0.2;
|
|
19003
|
+
DERIVED_COLOR_TEXT_RATIOS = {
|
|
19004
|
+
accent2: ACCENT_TINT_RATIO,
|
|
19005
|
+
accent3: SHADES_RATIOS.shade3,
|
|
19006
|
+
accent4: SHADES_RATIOS.shade2,
|
|
19007
|
+
...SHADES_RATIOS
|
|
19008
|
+
};
|
|
18992
19009
|
isNewRicosPalette = (palette) => !!palette && typeof palette === "object" && !Array.isArray(palette) && "format" in palette;
|
|
18993
19010
|
mapRicosPaletteToLegacyPalette = (palette) => {
|
|
18994
19011
|
const mapped = {
|
|
@@ -19001,6 +19018,15 @@ var init_palette = __esm({
|
|
|
19001
19018
|
};
|
|
19002
19019
|
return palette.format === "rgbTuple" ? { ...mapped, type: "rgb" } : mapped;
|
|
19003
19020
|
};
|
|
19021
|
+
mapLegacyPaletteToRicosPalette = (colors) => ({
|
|
19022
|
+
format: isRicosPaletteRgb(colors) ? "rgbTuple" : "color",
|
|
19023
|
+
bgColor: colors.bgColor,
|
|
19024
|
+
textColor: colors.textColor,
|
|
19025
|
+
accent1: colors.actionColor,
|
|
19026
|
+
shade1: colors.textColorLow,
|
|
19027
|
+
shade2: colors.disabledColor,
|
|
19028
|
+
shade3: colors.fallbackColor
|
|
19029
|
+
});
|
|
19004
19030
|
colorToCss = (color, format) => {
|
|
19005
19031
|
if (!color) {
|
|
19006
19032
|
return void 0;
|
|
@@ -19027,6 +19053,40 @@ var init_palette = __esm({
|
|
|
19027
19053
|
}
|
|
19028
19054
|
return void 0;
|
|
19029
19055
|
};
|
|
19056
|
+
toOpaqueHex = (color) => {
|
|
19057
|
+
const hex = canTransformToHex(color) ? toHexFormat(color) : void 0;
|
|
19058
|
+
return hex && OPAQUE_HEX_COLOR_RE.test(hex) ? hex : void 0;
|
|
19059
|
+
};
|
|
19060
|
+
mixTextIntoBackground = (textColor, bgColor, textRatio) => {
|
|
19061
|
+
const textHex = toOpaqueHex(textColor);
|
|
19062
|
+
const bgHex = toOpaqueHex(bgColor);
|
|
19063
|
+
return textHex && bgHex ? mixHexColors(bgHex, textHex, textRatio) : `color-mix(in srgb, ${textColor} ${Math.round(textRatio * 100)}%, ${bgColor})`;
|
|
19064
|
+
};
|
|
19065
|
+
completeColorPalette = (palette) => {
|
|
19066
|
+
const css = (color) => colorToCss(color, palette.format);
|
|
19067
|
+
const textColor = css(palette.textColor);
|
|
19068
|
+
const bgColor = css(palette.bgColor);
|
|
19069
|
+
const deriveColor = (field) => css(palette[field]) ?? (textColor ? mixTextIntoBackground(textColor, bgColor ?? "transparent", DERIVED_COLOR_TEXT_RATIOS[field]) : void 0);
|
|
19070
|
+
return {
|
|
19071
|
+
format: "color",
|
|
19072
|
+
bgColor,
|
|
19073
|
+
textColor,
|
|
19074
|
+
accent1: css(palette.accent1),
|
|
19075
|
+
accent2: deriveColor("accent2"),
|
|
19076
|
+
accent3: deriveColor("accent3"),
|
|
19077
|
+
accent4: deriveColor("accent4"),
|
|
19078
|
+
shade1: deriveColor("shade1"),
|
|
19079
|
+
shade2: deriveColor("shade2"),
|
|
19080
|
+
shade3: deriveColor("shade3"),
|
|
19081
|
+
settingsActionColor: css(palette.settingsActionColor)
|
|
19082
|
+
};
|
|
19083
|
+
};
|
|
19084
|
+
getThemeColorPalette = ({
|
|
19085
|
+
colorPalette,
|
|
19086
|
+
palette
|
|
19087
|
+
}) => completeColorPalette(
|
|
19088
|
+
colorPalette ?? mapLegacyPaletteToRicosPalette(createPalette(palette).colors ?? {})
|
|
19089
|
+
);
|
|
19030
19090
|
createCssVars = (colors, config) => {
|
|
19031
19091
|
const { contentBgColor = false, focusActionColor, settingsActionColor } = config || {};
|
|
19032
19092
|
const isPaletteRgb = isRicosPaletteRgb(colors);
|
|
@@ -19270,6 +19330,55 @@ var init_text_style_transformer = __esm({
|
|
|
19270
19330
|
}
|
|
19271
19331
|
});
|
|
19272
19332
|
|
|
19333
|
+
// ../../node_modules/@wix/ricos/dist/es/_shared/deep-merge.js
|
|
19334
|
+
function deepMerge(target, ...sources) {
|
|
19335
|
+
for (const source of sources) {
|
|
19336
|
+
if (isMergeable(source)) {
|
|
19337
|
+
mergeInto(target, source);
|
|
19338
|
+
}
|
|
19339
|
+
}
|
|
19340
|
+
return target;
|
|
19341
|
+
}
|
|
19342
|
+
var UNSAFE_KEYS, isMergeable, mergeInto;
|
|
19343
|
+
var init_deep_merge = __esm({
|
|
19344
|
+
"../../node_modules/@wix/ricos/dist/es/_shared/deep-merge.js"() {
|
|
19345
|
+
UNSAFE_KEYS = ["__proto__", "constructor", "prototype"];
|
|
19346
|
+
isMergeable = (value) => {
|
|
19347
|
+
if (Array.isArray(value)) {
|
|
19348
|
+
return true;
|
|
19349
|
+
}
|
|
19350
|
+
if (typeof value !== "object" || value === null) {
|
|
19351
|
+
return false;
|
|
19352
|
+
}
|
|
19353
|
+
const proto = Object.getPrototypeOf(value);
|
|
19354
|
+
return proto === Object.prototype || proto === null;
|
|
19355
|
+
};
|
|
19356
|
+
mergeInto = (target, source) => {
|
|
19357
|
+
for (const key of Object.keys(source)) {
|
|
19358
|
+
if (UNSAFE_KEYS.includes(key)) {
|
|
19359
|
+
continue;
|
|
19360
|
+
}
|
|
19361
|
+
const sourceValue = source[key];
|
|
19362
|
+
if (sourceValue === void 0) {
|
|
19363
|
+
continue;
|
|
19364
|
+
}
|
|
19365
|
+
const targetValue = target[key];
|
|
19366
|
+
if (isMergeable(sourceValue)) {
|
|
19367
|
+
if (isMergeable(targetValue) && Array.isArray(targetValue) === Array.isArray(sourceValue)) {
|
|
19368
|
+
mergeInto(targetValue, sourceValue);
|
|
19369
|
+
} else {
|
|
19370
|
+
const fresh = Array.isArray(sourceValue) ? [] : {};
|
|
19371
|
+
mergeInto(fresh, sourceValue);
|
|
19372
|
+
target[key] = fresh;
|
|
19373
|
+
}
|
|
19374
|
+
} else {
|
|
19375
|
+
target[key] = sourceValue;
|
|
19376
|
+
}
|
|
19377
|
+
}
|
|
19378
|
+
};
|
|
19379
|
+
}
|
|
19380
|
+
});
|
|
19381
|
+
|
|
19273
19382
|
// ../../node_modules/@wix/ricos/dist/es/ricos-styles/themeStrategy/generators/custom-styles.js
|
|
19274
19383
|
function fixLineHeight(obj) {
|
|
19275
19384
|
return {
|
|
@@ -19318,6 +19427,65 @@ var init_custom_styles2 = __esm({
|
|
|
19318
19427
|
}
|
|
19319
19428
|
});
|
|
19320
19429
|
|
|
19430
|
+
// ../../node_modules/@wix/ricos/dist/es/ricos-styles/font-mode.js
|
|
19431
|
+
var FONT_LONGHANDS, FONT_MODE_ELEMENTS, getTextualStyle, hasFontShorthand, getFontModeElements, omitFontLonghands, applyFontMode, buildFontModeAttributes;
|
|
19432
|
+
var init_font_mode = __esm({
|
|
19433
|
+
"../../node_modules/@wix/ricos/dist/es/ricos-styles/font-mode.js"() {
|
|
19434
|
+
init_text_style_transformer();
|
|
19435
|
+
init_custom_styles2();
|
|
19436
|
+
init_theme_utils();
|
|
19437
|
+
FONT_LONGHANDS = ["fontStyle", "fontWeight", "fontSize", "lineHeight"];
|
|
19438
|
+
FONT_MODE_ELEMENTS = [
|
|
19439
|
+
"h1",
|
|
19440
|
+
"h2",
|
|
19441
|
+
"h3",
|
|
19442
|
+
"h4",
|
|
19443
|
+
"h5",
|
|
19444
|
+
"h6",
|
|
19445
|
+
"p",
|
|
19446
|
+
"quote",
|
|
19447
|
+
"link",
|
|
19448
|
+
"hashtag"
|
|
19449
|
+
];
|
|
19450
|
+
getTextualStyle = (customStyles, element) => customStyles?.[element];
|
|
19451
|
+
hasFontShorthand = (style) => style?.font !== void 0;
|
|
19452
|
+
getFontModeElements = (customStyles) => FONT_MODE_ELEMENTS.filter((element) => hasFontShorthand(getTextualStyle(customStyles, element)));
|
|
19453
|
+
omitFontLonghands = (style) => Object.fromEntries(
|
|
19454
|
+
Object.entries(style).filter(([key]) => !FONT_LONGHANDS.includes(key))
|
|
19455
|
+
);
|
|
19456
|
+
applyFontMode = (theme) => {
|
|
19457
|
+
const fontModeElements = getFontModeElements(theme.customStyles);
|
|
19458
|
+
if (fontModeElements.length === 0) {
|
|
19459
|
+
return theme;
|
|
19460
|
+
}
|
|
19461
|
+
const customStyles = { ...theme.customStyles };
|
|
19462
|
+
fontModeElements.forEach((element) => {
|
|
19463
|
+
customStyles[element] = omitFontLonghands(customStyles[element] ?? {});
|
|
19464
|
+
});
|
|
19465
|
+
return { ...theme, customStyles };
|
|
19466
|
+
};
|
|
19467
|
+
buildFontModeAttributes = (theme, documentStyle) => {
|
|
19468
|
+
const fontModeElements = getFontModeElements(theme.customStyles);
|
|
19469
|
+
if (fontModeElements.length === 0) {
|
|
19470
|
+
return {};
|
|
19471
|
+
}
|
|
19472
|
+
const documentStyleCustomStyles = fixLineHeight(
|
|
19473
|
+
TextStyleTransformer.fromDocumentStyle(documentStyle).toTheme().customStyles ?? {}
|
|
19474
|
+
);
|
|
19475
|
+
const overrides = fontModeElements.flatMap((element) => {
|
|
19476
|
+
const elementDocumentStyle = getTextualStyle(documentStyleCustomStyles, element);
|
|
19477
|
+
return FONT_LONGHANDS.filter((longhand) => elementDocumentStyle?.[longhand] !== void 0).map(
|
|
19478
|
+
(longhand) => `${element}-${toDashedKey(longhand)}`
|
|
19479
|
+
);
|
|
19480
|
+
});
|
|
19481
|
+
const nativeTextFont = fontModeElements.includes("p") && theme.nativeStyle?.text?.fontFamily ? ["native-text-font"] : [];
|
|
19482
|
+
return {
|
|
19483
|
+
"data-ricos-font": [...fontModeElements, ...overrides, ...nativeTextFont].join(" ")
|
|
19484
|
+
};
|
|
19485
|
+
};
|
|
19486
|
+
}
|
|
19487
|
+
});
|
|
19488
|
+
|
|
19321
19489
|
// ../../node_modules/@wix/ricos/dist/es/ricos-styles/themeStrategy/generators/typography.js
|
|
19322
19490
|
function createTypography(typography) {
|
|
19323
19491
|
if (!typography) {
|
|
@@ -19358,8 +19526,9 @@ var init_build_theme_css_vars = __esm({
|
|
|
19358
19526
|
const { palette, colorPalette, paletteConfig, typography, customStyles, nativeStyle } = mergedTheme;
|
|
19359
19527
|
const paletteResult = colorPalette ? createColorPalette(colorPalette, paletteConfig) : createPalette(palette, paletteConfig);
|
|
19360
19528
|
const { paletteVarsObject } = paletteResult;
|
|
19529
|
+
const themeColorPalette = getThemeColorPalette(mergedTheme);
|
|
19361
19530
|
const typographyVarsObject = createTypography(typography);
|
|
19362
|
-
const paletteCustomStyles = colorPalette ? mapColorPaletteToCustomStyles(
|
|
19531
|
+
const paletteCustomStyles = colorPalette ? mapColorPaletteToCustomStyles(themeColorPalette) : {};
|
|
19363
19532
|
const mergedCustomStyles = deepMerge({}, paletteCustomStyles, customStyles);
|
|
19364
19533
|
const customsVarsObject = createCustomStyles({
|
|
19365
19534
|
customStyles: mergedCustomStyles,
|
|
@@ -19371,7 +19540,7 @@ var init_build_theme_css_vars = __esm({
|
|
|
19371
19540
|
"breakout-full-width-padding-start": theme?.breakout?.fullWidthPadding?.start ?? "0",
|
|
19372
19541
|
"breakout-full-width-padding-end": theme?.breakout?.fullWidthPadding?.end ?? "0"
|
|
19373
19542
|
};
|
|
19374
|
-
const themeColorVars =
|
|
19543
|
+
const themeColorVars = createThemeColorVars(themeColorPalette);
|
|
19375
19544
|
const varsObj = {
|
|
19376
19545
|
...paletteVarsObject,
|
|
19377
19546
|
...themeColorVars,
|
|
@@ -19441,6 +19610,7 @@ var resolveTheme, wixPreset, wixPriorityOverrides, liveSitePreset, nativePreset,
|
|
|
19441
19610
|
var init_resolve_theme = __esm({
|
|
19442
19611
|
"../../node_modules/@wix/ricos/dist/es/ricos-styles/resolve-theme.js"() {
|
|
19443
19612
|
init_deep_merge();
|
|
19613
|
+
init_font_mode();
|
|
19444
19614
|
init_theme_constants();
|
|
19445
19615
|
resolveTheme = ({
|
|
19446
19616
|
theme = {},
|
|
@@ -19451,12 +19621,8 @@ var init_resolve_theme = __esm({
|
|
|
19451
19621
|
const isWix = useWixStyles || environment === "businessManager" || environment === "wixel";
|
|
19452
19622
|
const envPreset = useNativeStyles ? nativePreset : isWix ? wixPreset : liveSitePreset;
|
|
19453
19623
|
const baseDefaults = isMobile2 ? THEME_DEFAULTS.mobile : THEME_DEFAULTS.desktop;
|
|
19454
|
-
return
|
|
19455
|
-
{},
|
|
19456
|
-
baseDefaults,
|
|
19457
|
-
envPreset,
|
|
19458
|
-
userTheme,
|
|
19459
|
-
isWix ? wixPriorityOverrides : {}
|
|
19624
|
+
return applyFontMode(
|
|
19625
|
+
deepMerge({}, baseDefaults, envPreset, userTheme, isWix ? wixPriorityOverrides : {})
|
|
19460
19626
|
);
|
|
19461
19627
|
};
|
|
19462
19628
|
wixPreset = {
|
|
@@ -19681,6 +19847,7 @@ var init_z_index_service = __esm({
|
|
|
19681
19847
|
var init_ricos_styles = __esm({
|
|
19682
19848
|
"../../node_modules/@wix/ricos/dist/es/ricos-styles/index.js"() {
|
|
19683
19849
|
init_build_theme_css_vars();
|
|
19850
|
+
init_font_mode();
|
|
19684
19851
|
init_z_index_service();
|
|
19685
19852
|
}
|
|
19686
19853
|
});
|
|
@@ -22012,6 +22179,22 @@ var init_ricos_types = __esm({
|
|
|
22012
22179
|
init_plugin_types();
|
|
22013
22180
|
}
|
|
22014
22181
|
});
|
|
22182
|
+
|
|
22183
|
+
// ../../node_modules/@wix/ricos/dist/es/_shared/is-ssr.js
|
|
22184
|
+
var isSSR2;
|
|
22185
|
+
var init_is_ssr = __esm({
|
|
22186
|
+
"../../node_modules/@wix/ricos/dist/es/_shared/is-ssr.js"() {
|
|
22187
|
+
isSSR2 = () => typeof window === "undefined";
|
|
22188
|
+
}
|
|
22189
|
+
});
|
|
22190
|
+
var useIsomorphicLayoutEffect;
|
|
22191
|
+
var init_use_isomorphic_layout_effect = __esm({
|
|
22192
|
+
"../../node_modules/@wix/ricos/dist/es/_shared/use-isomorphic-layout-effect.js"() {
|
|
22193
|
+
init_is_ssr();
|
|
22194
|
+
useIsomorphicLayoutEffect = isSSR2() ? () => {
|
|
22195
|
+
} : useLayoutEffect;
|
|
22196
|
+
}
|
|
22197
|
+
});
|
|
22015
22198
|
function createContext3(defaultValue) {
|
|
22016
22199
|
const context = createContext({
|
|
22017
22200
|
[CONTEXT_VALUE]: {
|
|
@@ -22030,13 +22213,12 @@ function createContext3(defaultValue) {
|
|
|
22030
22213
|
delete context.Consumer;
|
|
22031
22214
|
return context;
|
|
22032
22215
|
}
|
|
22033
|
-
var CONTEXT_VALUE, ORIGINAL_PROVIDER,
|
|
22216
|
+
var CONTEXT_VALUE, ORIGINAL_PROVIDER, runWithNormalPriority, createProvider;
|
|
22034
22217
|
var init_use_context_selector = __esm({
|
|
22035
22218
|
"../../node_modules/@wix/ricos/dist/es/_shared/use-context-selector.js"() {
|
|
22219
|
+
init_use_isomorphic_layout_effect();
|
|
22036
22220
|
CONTEXT_VALUE = /* @__PURE__ */ Symbol();
|
|
22037
22221
|
ORIGINAL_PROVIDER = /* @__PURE__ */ Symbol();
|
|
22038
|
-
isSSR2 = typeof window === "undefined";
|
|
22039
|
-
useIsomorphicLayoutEffect = isSSR2 ? useEffect : useLayoutEffect;
|
|
22040
22222
|
runWithNormalPriority = (thunk) => thunk();
|
|
22041
22223
|
createProvider = (ProviderOrig) => ({ value, children, onSelectorContextValue }) => {
|
|
22042
22224
|
const valueRef = useRef(value);
|
|
@@ -22339,58 +22521,6 @@ var init_resolve_css_color = __esm({
|
|
|
22339
22521
|
}
|
|
22340
22522
|
});
|
|
22341
22523
|
|
|
22342
|
-
// ../../node_modules/@wix/ricos/dist/es/theme-utils/color-utils.js
|
|
22343
|
-
var hexToRgba, getOpacityFromHex2, getHexColorFromAlpha2;
|
|
22344
|
-
var init_color_utils2 = __esm({
|
|
22345
|
-
"../../node_modules/@wix/ricos/dist/es/theme-utils/color-utils.js"() {
|
|
22346
|
-
init_theme_color_token();
|
|
22347
|
-
hexToRgba = (alphaHex, opacity) => {
|
|
22348
|
-
if (!alphaHex) {
|
|
22349
|
-
return "";
|
|
22350
|
-
}
|
|
22351
|
-
if (isThemeColorToken(alphaHex)) {
|
|
22352
|
-
const effectiveOpacity = opacity ?? getThemeColorTokenOpacity(alphaHex);
|
|
22353
|
-
if (effectiveOpacity < 100) {
|
|
22354
|
-
const tupleVar = themeColorTokenToCssVar(alphaHex, "rgbTuple");
|
|
22355
|
-
return `rgba(${tupleVar}, ${effectiveOpacity / 100})`;
|
|
22356
|
-
}
|
|
22357
|
-
return themeColorTokenToCssVar(alphaHex);
|
|
22358
|
-
}
|
|
22359
|
-
const opacityPercentage = opacity ?? getOpacityFromHex2(alphaHex);
|
|
22360
|
-
let hexColor = getHexColorFromAlpha2(alphaHex)?.replace(/^#/, "") ?? "";
|
|
22361
|
-
if (hexColor.length === 3) {
|
|
22362
|
-
hexColor = hexColor.split("").map((char) => char + char).join("");
|
|
22363
|
-
}
|
|
22364
|
-
const bigint = parseInt(hexColor, 16);
|
|
22365
|
-
const r3 = bigint >> 16 & 255;
|
|
22366
|
-
const g = bigint >> 8 & 255;
|
|
22367
|
-
const b = bigint & 255;
|
|
22368
|
-
return `rgba(${r3}, ${g}, ${b}${opacityPercentage !== void 0 ? `, ${opacityPercentage / 100}` : ""})`;
|
|
22369
|
-
};
|
|
22370
|
-
getOpacityFromHex2 = (hexColorWithAlpha) => {
|
|
22371
|
-
if (isThemeColorToken(hexColorWithAlpha)) {
|
|
22372
|
-
return getThemeColorTokenOpacity(hexColorWithAlpha);
|
|
22373
|
-
}
|
|
22374
|
-
if (!hexColorWithAlpha || hexColorWithAlpha.length === 7) {
|
|
22375
|
-
return 100;
|
|
22376
|
-
}
|
|
22377
|
-
const hex = hexColorWithAlpha.replace("#", "");
|
|
22378
|
-
const alphaHex = hex.slice(6, 8);
|
|
22379
|
-
const alphaDecimal = parseInt(alphaHex, 16);
|
|
22380
|
-
return Math.round(alphaDecimal / 255 * 100);
|
|
22381
|
-
};
|
|
22382
|
-
getHexColorFromAlpha2 = (hexColorWithAlpha) => {
|
|
22383
|
-
if (isThemeColorToken(hexColorWithAlpha)) {
|
|
22384
|
-
return stripThemeColorTokenOpacity(hexColorWithAlpha);
|
|
22385
|
-
}
|
|
22386
|
-
if (!hexColorWithAlpha || hexColorWithAlpha.length === 7) {
|
|
22387
|
-
return hexColorWithAlpha;
|
|
22388
|
-
}
|
|
22389
|
-
return hexColorWithAlpha.slice(0, 7);
|
|
22390
|
-
};
|
|
22391
|
-
}
|
|
22392
|
-
});
|
|
22393
|
-
|
|
22394
22524
|
// ../../node_modules/@wix/ricos/dist/es/_shared/schema-gradient-to-css.js
|
|
22395
22525
|
var resolveStopColor, formatStop, formatStops, schemaGradientToCss;
|
|
22396
22526
|
var init_schema_gradient_to_css = __esm({
|
|
@@ -22447,14 +22577,6 @@ var init_log_invariant = __esm({
|
|
|
22447
22577
|
}
|
|
22448
22578
|
});
|
|
22449
22579
|
|
|
22450
|
-
// ../../node_modules/@wix/ricos/dist/es/_shared/is-ssr.js
|
|
22451
|
-
var isSSR3;
|
|
22452
|
-
var init_is_ssr = __esm({
|
|
22453
|
-
"../../node_modules/@wix/ricos/dist/es/_shared/is-ssr.js"() {
|
|
22454
|
-
isSSR3 = () => typeof window === "undefined";
|
|
22455
|
-
}
|
|
22456
|
-
});
|
|
22457
|
-
|
|
22458
22580
|
// ../../node_modules/@wix/ricos/dist/es/_shared/request-service-provider/parse-instance.js
|
|
22459
22581
|
function base64UrlToBase64(str) {
|
|
22460
22582
|
return str.replace(/-/g, "+").replace(/_/g, "/");
|
|
@@ -22475,7 +22597,7 @@ function parseInstance(instance) {
|
|
|
22475
22597
|
}
|
|
22476
22598
|
try {
|
|
22477
22599
|
const data = splitInstance(instance);
|
|
22478
|
-
const bit64Data =
|
|
22600
|
+
const bit64Data = isSSR2() ? (
|
|
22479
22601
|
// Accessing 'Buffer' via 'global' prevents webpack polyfilling it for web environment
|
|
22480
22602
|
global.Buffer.from(data, "base64").toString("utf8")
|
|
22481
22603
|
) : atob(data);
|
|
@@ -22528,7 +22650,7 @@ var init_browser = __esm({
|
|
|
22528
22650
|
}
|
|
22529
22651
|
});
|
|
22530
22652
|
|
|
22531
|
-
// ../../node_modules/@wix/sdk
|
|
22653
|
+
// ../../node_modules/@wix/sdk-types/build/browser/index.mjs
|
|
22532
22654
|
function EventDefinition(type, isDomainEvent = false, transformations = (x) => x) {
|
|
22533
22655
|
return () => ({
|
|
22534
22656
|
__type: "event-definition",
|
|
@@ -22539,7 +22661,7 @@ function EventDefinition(type, isDomainEvent = false, transformations = (x) => x
|
|
|
22539
22661
|
}
|
|
22540
22662
|
var SERVICE_PLUGIN_ERROR_TYPE, SORT_DIRECTIONS;
|
|
22541
22663
|
var init_browser2 = __esm({
|
|
22542
|
-
"../../node_modules/@wix/sdk
|
|
22664
|
+
"../../node_modules/@wix/sdk-types/build/browser/index.mjs"() {
|
|
22543
22665
|
SERVICE_PLUGIN_ERROR_TYPE = "wix_spi_error";
|
|
22544
22666
|
SORT_DIRECTIONS = {
|
|
22545
22667
|
ASC: "ASC",
|
|
@@ -22725,13 +22847,77 @@ var init_biHeaderGenerator = __esm({
|
|
|
22725
22847
|
}
|
|
22726
22848
|
});
|
|
22727
22849
|
|
|
22728
|
-
// ../../node_modules/@wix/sdk
|
|
22850
|
+
// ../../node_modules/@wix/sdk-runtime/build/context-v2.js
|
|
22851
|
+
function contextualizeRESTModuleV2(restModule, elevated) {
|
|
22852
|
+
return ((...args) => {
|
|
22853
|
+
const context = resolveContext();
|
|
22854
|
+
if (!context) {
|
|
22855
|
+
return restModule.apply(void 0, args);
|
|
22856
|
+
}
|
|
22857
|
+
return context.initWixModules(restModule, elevated).apply(void 0, args);
|
|
22858
|
+
});
|
|
22859
|
+
}
|
|
22729
22860
|
var init_context_v2 = __esm({
|
|
22730
|
-
"../../node_modules/@wix/sdk
|
|
22861
|
+
"../../node_modules/@wix/sdk-runtime/build/context-v2.js"() {
|
|
22862
|
+
init_context();
|
|
22731
22863
|
}
|
|
22732
22864
|
});
|
|
22733
22865
|
|
|
22734
|
-
// ../../node_modules/@wix/sdk
|
|
22866
|
+
// ../../node_modules/@wix/sdk-runtime/build/context.js
|
|
22867
|
+
function resolveContext() {
|
|
22868
|
+
const oldContext = typeof $wixContext !== "undefined" && $wixContext.initWixModules ? $wixContext.initWixModules : typeof globalThis.__wix_context__ !== "undefined" && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
22869
|
+
if (oldContext) {
|
|
22870
|
+
return {
|
|
22871
|
+
// @ts-expect-error
|
|
22872
|
+
initWixModules(modules, elevated) {
|
|
22873
|
+
return runWithoutContext(() => oldContext(modules, elevated));
|
|
22874
|
+
},
|
|
22875
|
+
fetchWithAuth() {
|
|
22876
|
+
throw new Error("fetchWithAuth is not available in this context");
|
|
22877
|
+
},
|
|
22878
|
+
graphql() {
|
|
22879
|
+
throw new Error("graphql is not available in this context");
|
|
22880
|
+
}
|
|
22881
|
+
};
|
|
22882
|
+
}
|
|
22883
|
+
const contextualClient = typeof $wixContext !== "undefined" ? $wixContext.client : typeof wixContext.client !== "undefined" ? wixContext.client : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.client : void 0;
|
|
22884
|
+
const elevatedClient = typeof $wixContext !== "undefined" ? $wixContext.elevatedClient : typeof wixContext.elevatedClient !== "undefined" ? wixContext.elevatedClient : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.elevatedClient : void 0;
|
|
22885
|
+
if (!contextualClient && !elevatedClient) {
|
|
22886
|
+
return;
|
|
22887
|
+
}
|
|
22888
|
+
return {
|
|
22889
|
+
initWixModules(wixModules, elevated) {
|
|
22890
|
+
if (elevated) {
|
|
22891
|
+
if (!elevatedClient) {
|
|
22892
|
+
throw new Error("An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules");
|
|
22893
|
+
}
|
|
22894
|
+
return runWithoutContext(() => elevatedClient.use(wixModules));
|
|
22895
|
+
}
|
|
22896
|
+
if (!contextualClient) {
|
|
22897
|
+
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
22898
|
+
}
|
|
22899
|
+
return runWithoutContext(() => contextualClient.use(wixModules));
|
|
22900
|
+
},
|
|
22901
|
+
fetchWithAuth: (urlOrRequest, requestInit) => {
|
|
22902
|
+
if (!contextualClient) {
|
|
22903
|
+
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
22904
|
+
}
|
|
22905
|
+
return contextualClient.fetchWithAuth(urlOrRequest, requestInit);
|
|
22906
|
+
},
|
|
22907
|
+
getAuth() {
|
|
22908
|
+
if (!contextualClient) {
|
|
22909
|
+
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
22910
|
+
}
|
|
22911
|
+
return contextualClient.auth;
|
|
22912
|
+
},
|
|
22913
|
+
async graphql(query, variables, opts) {
|
|
22914
|
+
if (!contextualClient) {
|
|
22915
|
+
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
22916
|
+
}
|
|
22917
|
+
return contextualClient.graphql(query, variables, opts);
|
|
22918
|
+
}
|
|
22919
|
+
};
|
|
22920
|
+
}
|
|
22735
22921
|
function runWithoutContext(fn) {
|
|
22736
22922
|
const globalContext = globalThis.__wix_context__;
|
|
22737
22923
|
const moduleContext = {
|
|
@@ -22763,16 +22949,21 @@ function runWithoutContext(fn) {
|
|
|
22763
22949
|
}
|
|
22764
22950
|
}
|
|
22765
22951
|
var init_context = __esm({
|
|
22766
|
-
"../../node_modules/@wix/sdk
|
|
22952
|
+
"../../node_modules/@wix/sdk-runtime/build/context.js"() {
|
|
22767
22953
|
init_browser();
|
|
22768
22954
|
init_context_v2();
|
|
22769
22955
|
}
|
|
22770
22956
|
});
|
|
22771
22957
|
|
|
22772
|
-
// ../../node_modules/@wix/sdk
|
|
22773
|
-
var RESTResponseToSDKResponseRenameMap;
|
|
22958
|
+
// ../../node_modules/@wix/sdk-runtime/build/constants.js
|
|
22959
|
+
var SDKRequestToRESTRequestRenameMap, RESTResponseToSDKResponseRenameMap;
|
|
22774
22960
|
var init_constants2 = __esm({
|
|
22775
|
-
"../../node_modules/@wix/sdk
|
|
22961
|
+
"../../node_modules/@wix/sdk-runtime/build/constants.js"() {
|
|
22962
|
+
SDKRequestToRESTRequestRenameMap = {
|
|
22963
|
+
_id: "id",
|
|
22964
|
+
_createdDate: "createdDate",
|
|
22965
|
+
_updatedDate: "updatedDate"
|
|
22966
|
+
};
|
|
22776
22967
|
RESTResponseToSDKResponseRenameMap = {
|
|
22777
22968
|
id: "_id",
|
|
22778
22969
|
createdDate: "_createdDate",
|
|
@@ -22781,7 +22972,10 @@ var init_constants2 = __esm({
|
|
|
22781
22972
|
}
|
|
22782
22973
|
});
|
|
22783
22974
|
|
|
22784
|
-
// ../../node_modules/@wix/sdk
|
|
22975
|
+
// ../../node_modules/@wix/sdk-runtime/build/utils.js
|
|
22976
|
+
function removeUndefinedKeys(obj) {
|
|
22977
|
+
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
|
|
22978
|
+
}
|
|
22785
22979
|
function constantCase(input) {
|
|
22786
22980
|
return split(input).map((part) => part.toLocaleUpperCase()).join("_");
|
|
22787
22981
|
}
|
|
@@ -22804,7 +22998,7 @@ function split(value) {
|
|
|
22804
22998
|
}
|
|
22805
22999
|
var SPLIT_LOWER_UPPER_RE, SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE, DEFAULT_STRIP_REGEXP;
|
|
22806
23000
|
var init_utils4 = __esm({
|
|
22807
|
-
"../../node_modules/@wix/sdk
|
|
23001
|
+
"../../node_modules/@wix/sdk-runtime/build/utils.js"() {
|
|
22808
23002
|
SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
22809
23003
|
SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
22810
23004
|
SPLIT_REPLACE_VALUE = "$1\0$2";
|
|
@@ -22812,7 +23006,7 @@ var init_utils4 = __esm({
|
|
|
22812
23006
|
}
|
|
22813
23007
|
});
|
|
22814
23008
|
|
|
22815
|
-
// ../../node_modules/@wix/sdk
|
|
23009
|
+
// ../../node_modules/@wix/sdk-runtime/build/transform-error.js
|
|
22816
23010
|
function transformError(httpClientError, pathsToArguments = {
|
|
22817
23011
|
explicitPathsToArguments: {},
|
|
22818
23012
|
spreadPathsToArguments: {},
|
|
@@ -22854,7 +23048,7 @@ function transformError(httpClientError, pathsToArguments = {
|
|
|
22854
23048
|
}
|
|
22855
23049
|
var isValidationError, isApplicationError, isClientError, buildValidationError, wrapError, buildApplicationError, buildSystemError, violationsWithRenamedFields, withRenamedArgument, getArgumentIndex;
|
|
22856
23050
|
var init_transform_error = __esm({
|
|
22857
|
-
"../../node_modules/@wix/sdk
|
|
23051
|
+
"../../node_modules/@wix/sdk-runtime/build/transform-error.js"() {
|
|
22858
23052
|
init_utils4();
|
|
22859
23053
|
isValidationError = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
|
|
22860
23054
|
isApplicationError = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
|
|
@@ -23088,19 +23282,155 @@ var init_rest_modules = __esm({
|
|
|
23088
23282
|
}
|
|
23089
23283
|
});
|
|
23090
23284
|
|
|
23091
|
-
// ../../node_modules/@wix/sdk
|
|
23092
|
-
|
|
23285
|
+
// ../../node_modules/@wix/sdk-runtime/build/rest-modules.js
|
|
23286
|
+
function createRESTModule(descriptor, elevated = false) {
|
|
23287
|
+
return contextualizeRESTModuleV2(descriptor, elevated);
|
|
23288
|
+
}
|
|
23289
|
+
function toURLSearchParams(params, isComplexRequest) {
|
|
23290
|
+
const flatten = flattenParams(params);
|
|
23291
|
+
Object.entries(flatten).some(([key, value]) => key.includes(".") || Array.isArray(value) && value.some((v) => typeof v === "object"));
|
|
23292
|
+
{
|
|
23293
|
+
return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {
|
|
23294
|
+
const keyParams = Array.isArray(value) ? value : [value];
|
|
23295
|
+
keyParams.forEach((param) => {
|
|
23296
|
+
if (param === void 0 || param === null || Array.isArray(value) && typeof param === "object") {
|
|
23297
|
+
return;
|
|
23298
|
+
}
|
|
23299
|
+
urlSearchParams.append(key, param);
|
|
23300
|
+
});
|
|
23301
|
+
return urlSearchParams;
|
|
23302
|
+
}, new URLSearchParams());
|
|
23303
|
+
}
|
|
23304
|
+
}
|
|
23305
|
+
function resolveUrl(opts) {
|
|
23306
|
+
const domain = resolveDomain(opts.host);
|
|
23307
|
+
const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);
|
|
23308
|
+
const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});
|
|
23309
|
+
return resolvePathFromMappings(path, mappings);
|
|
23310
|
+
}
|
|
23311
|
+
function flattenParams(data, path = "") {
|
|
23312
|
+
const params = {};
|
|
23313
|
+
Object.entries(data).forEach(([key, value]) => {
|
|
23314
|
+
const isObject7 = value !== null && typeof value === "object" && !Array.isArray(value);
|
|
23315
|
+
const fieldPath = resolvePath(path, key);
|
|
23316
|
+
if (isObject7) {
|
|
23317
|
+
const serializedObject = flattenParams(value, fieldPath);
|
|
23318
|
+
Object.assign(params, serializedObject);
|
|
23319
|
+
} else {
|
|
23320
|
+
params[fieldPath] = value;
|
|
23321
|
+
}
|
|
23322
|
+
});
|
|
23323
|
+
return params;
|
|
23324
|
+
}
|
|
23325
|
+
function resolvePath(path, key) {
|
|
23326
|
+
return `${path}${path ? "." : ""}${key}`;
|
|
23327
|
+
}
|
|
23328
|
+
function resolveDomain(host) {
|
|
23329
|
+
const resolvedHost = fixHostExceptions(host);
|
|
23330
|
+
return resolvedHost.replace(REGEX_CAPTURE_DOMAINS, "._base_domain_").replace(REGEX_CAPTURE_API_DOMAINS, "._api_base_domain_").replace(REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN, "*.dev.wix-code.com");
|
|
23331
|
+
}
|
|
23332
|
+
function fixHostExceptions(host) {
|
|
23333
|
+
return HOST_ALIASES[host] ?? host;
|
|
23334
|
+
}
|
|
23335
|
+
function resolveMappingsByDomain(domain, domainToMappings) {
|
|
23336
|
+
const mappings = domainToMappings[domain];
|
|
23337
|
+
if (mappings) {
|
|
23338
|
+
return mappings;
|
|
23339
|
+
}
|
|
23340
|
+
const matchedMappings = resolveRootDomain(domain, domainToMappings) ?? resolveWildcardDomain(domain, domainToMappings);
|
|
23341
|
+
if (!matchedMappings) {
|
|
23342
|
+
if (isBaseDomain(domain)) {
|
|
23343
|
+
const wwwMappings = domainToMappings[wwwBaseDomain];
|
|
23344
|
+
if (wwwMappings) {
|
|
23345
|
+
return wwwMappings;
|
|
23346
|
+
}
|
|
23347
|
+
}
|
|
23348
|
+
const userMappings = domainToMappings[USER_DOMAIN];
|
|
23349
|
+
if (userMappings) {
|
|
23350
|
+
return userMappings;
|
|
23351
|
+
}
|
|
23352
|
+
}
|
|
23353
|
+
return matchedMappings ?? [];
|
|
23354
|
+
}
|
|
23355
|
+
function resolveRootDomain(domain, domainToMappings) {
|
|
23356
|
+
return Object.entries(domainToMappings).find(([entryDomain]) => {
|
|
23357
|
+
const [, ...rooDomainSegments] = domain.split(".");
|
|
23358
|
+
return rooDomainSegments.join(".") === entryDomain;
|
|
23359
|
+
})?.[1];
|
|
23360
|
+
}
|
|
23361
|
+
function resolveWildcardDomain(domain, domainToMappings) {
|
|
23362
|
+
const matchingEntries = Object.entries(domainToMappings).filter(([entryDomain]) => matchesWildcardDomain(domain, entryDomain));
|
|
23363
|
+
const [mostSpecificEntry] = matchingEntries.sort(([entryDomainA], [entryDomainB]) => entryDomainB.length - entryDomainA.length);
|
|
23364
|
+
if (!mostSpecificEntry) {
|
|
23365
|
+
return void 0;
|
|
23366
|
+
}
|
|
23367
|
+
const [, mappings] = mostSpecificEntry;
|
|
23368
|
+
return mappings;
|
|
23369
|
+
}
|
|
23370
|
+
function matchesWildcardDomain(domain, entryDomain) {
|
|
23371
|
+
if (!entryDomain.startsWith(WILDCARD_PREFIX)) {
|
|
23372
|
+
return false;
|
|
23373
|
+
}
|
|
23374
|
+
const suffix = entryDomain.slice(WILDCARD_PREFIX.length - 1);
|
|
23375
|
+
return domain.length > suffix.length && domain.endsWith(suffix);
|
|
23376
|
+
}
|
|
23377
|
+
function isBaseDomain(domain) {
|
|
23378
|
+
return !!domain.match(/\._base_domain_$/);
|
|
23379
|
+
}
|
|
23380
|
+
function injectDataIntoProtoPath(protoPath, data) {
|
|
23381
|
+
return protoPath.split("/").map((path) => maybeProtoPathToData(path, data)).join("/");
|
|
23382
|
+
}
|
|
23383
|
+
function maybeProtoPathToData(protoPath, data) {
|
|
23384
|
+
const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];
|
|
23385
|
+
const field = protoRegExpMatch[1];
|
|
23386
|
+
if (field) {
|
|
23387
|
+
const suffix = protoPath.replace(protoRegExpMatch[0], "");
|
|
23388
|
+
return findByPath(data, field, protoPath, suffix);
|
|
23389
|
+
}
|
|
23390
|
+
return protoPath;
|
|
23391
|
+
}
|
|
23392
|
+
function findByPath(obj, path, defaultValue, suffix) {
|
|
23393
|
+
let result2 = obj;
|
|
23394
|
+
for (const field of path.split(".")) {
|
|
23395
|
+
if (!result2) {
|
|
23396
|
+
return defaultValue;
|
|
23397
|
+
}
|
|
23398
|
+
result2 = result2[field];
|
|
23399
|
+
}
|
|
23400
|
+
return `${result2}${suffix}`;
|
|
23401
|
+
}
|
|
23402
|
+
function resolvePathFromMappings(protoPath, mappings) {
|
|
23403
|
+
const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));
|
|
23404
|
+
if (!mapping) {
|
|
23405
|
+
return protoPath;
|
|
23406
|
+
}
|
|
23407
|
+
return mapping.srcPath + protoPath.slice(mapping.destPath.length);
|
|
23408
|
+
}
|
|
23409
|
+
var DOMAINS, USER_DOMAIN, WILDCARD_PREFIX, REGEX_CAPTURE_DOMAINS, WIX_API_DOMAINS, HOST_ALIASES, DEV_WIX_CODE_DOMAIN, REGEX_CAPTURE_PROTO_FIELD, REGEX_CAPTURE_API_DOMAINS, REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN, wwwBaseDomain;
|
|
23093
23410
|
var init_rest_modules2 = __esm({
|
|
23094
|
-
"../../node_modules/@wix/sdk
|
|
23411
|
+
"../../node_modules/@wix/sdk-runtime/build/rest-modules.js"() {
|
|
23412
|
+
init_context_v2();
|
|
23095
23413
|
init_constants2();
|
|
23096
23414
|
DOMAINS = ["wix.com", "editorx.com"];
|
|
23097
|
-
|
|
23415
|
+
USER_DOMAIN = "_";
|
|
23416
|
+
WILDCARD_PREFIX = "*.";
|
|
23417
|
+
REGEX_CAPTURE_DOMAINS = new RegExp(`\\.(${DOMAINS.join("|")})$`);
|
|
23098
23418
|
WIX_API_DOMAINS = [
|
|
23099
23419
|
"42.wixprod.net",
|
|
23100
23420
|
"uw2-edt-1.wixprod.net",
|
|
23101
23421
|
"virginia-edt.wixprod.net"
|
|
23102
23422
|
];
|
|
23103
|
-
|
|
23423
|
+
HOST_ALIASES = {
|
|
23424
|
+
// payments.base44.com runs customised Business Manager, which needs to work exactly the same as normal BM on manage.wix.com
|
|
23425
|
+
"payments.base44.com": "manage.wix.com",
|
|
23426
|
+
// https://system-kb.wixanswers.com/kb/en/article/editorx-domains-matching-to-wixcom
|
|
23427
|
+
"create.editorx.com": "editor.editorx.com"
|
|
23428
|
+
};
|
|
23429
|
+
DEV_WIX_CODE_DOMAIN = "dev.wix-code.com";
|
|
23430
|
+
REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;
|
|
23431
|
+
REGEX_CAPTURE_API_DOMAINS = new RegExp(`\\.(${WIX_API_DOMAINS.join("|")})$`);
|
|
23432
|
+
REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN = new RegExp(`.*\\.${DEV_WIX_CODE_DOMAIN}$`);
|
|
23433
|
+
wwwBaseDomain = "www._base_domain_";
|
|
23104
23434
|
}
|
|
23105
23435
|
});
|
|
23106
23436
|
|
|
@@ -23346,7 +23676,7 @@ var init_modified_fields_manipulator = __esm({
|
|
|
23346
23676
|
}
|
|
23347
23677
|
});
|
|
23348
23678
|
|
|
23349
|
-
// ../../node_modules/@wix/sdk
|
|
23679
|
+
// ../../node_modules/@wix/sdk-runtime/build/nanoevents.js
|
|
23350
23680
|
function createNanoEvents() {
|
|
23351
23681
|
return {
|
|
23352
23682
|
emit(event, ...args) {
|
|
@@ -23365,7 +23695,7 @@ function createNanoEvents() {
|
|
|
23365
23695
|
};
|
|
23366
23696
|
}
|
|
23367
23697
|
var init_nanoevents = __esm({
|
|
23368
|
-
"../../node_modules/@wix/sdk
|
|
23698
|
+
"../../node_modules/@wix/sdk-runtime/build/nanoevents.js"() {
|
|
23369
23699
|
}
|
|
23370
23700
|
});
|
|
23371
23701
|
|
|
@@ -24885,6 +25215,9 @@ var init_transform = __esm({
|
|
|
24885
25215
|
|
|
24886
25216
|
// ../../node_modules/@wix/image-kit/dist/esm/engines/transforms.js
|
|
24887
25217
|
function getImageURI(transformsObj) {
|
|
25218
|
+
if (transformsObj.parts.some(({ width, height }) => !Number.isFinite(width) || width <= 0 || !Number.isFinite(height) || height <= 0)) {
|
|
25219
|
+
return transformsObj.src.id;
|
|
25220
|
+
}
|
|
24888
25221
|
const transformsObjStrArr = [];
|
|
24889
25222
|
transformsObj.parts.forEach((transformPart) => {
|
|
24890
25223
|
switch (transformPart.transformType) {
|
|
@@ -26680,27 +27013,27 @@ var gallery_media_default;
|
|
|
26680
27013
|
var init_gallery_media_scss = __esm({
|
|
26681
27014
|
"../../node_modules/@wix/ricos/dist/es/plugin-gallery/statics/styles/gallery-media-scss.js"() {
|
|
26682
27015
|
gallery_media_default = {
|
|
26683
|
-
"media": "
|
|
26684
|
-
"fit": "
|
|
26685
|
-
"failure": "
|
|
26686
|
-
"playButton": "
|
|
26687
|
-
"playIcon": "
|
|
26688
|
-
"navigationArrow": "
|
|
26689
|
-
"arrowStart": "
|
|
26690
|
-
"arrowEnd": "
|
|
26691
|
-
"arrowIcon": "
|
|
26692
|
-
"fill": "
|
|
26693
|
-
"intrinsic": "
|
|
26694
|
-
"cell": "
|
|
26695
|
-
"expandButton": "
|
|
26696
|
-
"expandIcon": "
|
|
26697
|
-
"expandChrome": "
|
|
26698
|
-
"expandIconGlyph": "
|
|
26699
|
-
"editorOverlay": "
|
|
26700
|
-
"horizontal": "
|
|
26701
|
-
"viewport": "
|
|
26702
|
-
"track": "
|
|
26703
|
-
"previous": "
|
|
27016
|
+
"media": "_4NX2G",
|
|
27017
|
+
"fit": "CBlJ3",
|
|
27018
|
+
"failure": "sS7TY",
|
|
27019
|
+
"playButton": "DHOeZ",
|
|
27020
|
+
"playIcon": "ejMyu",
|
|
27021
|
+
"navigationArrow": "_0n-kw",
|
|
27022
|
+
"arrowStart": "_33Y04",
|
|
27023
|
+
"arrowEnd": "QHpQu",
|
|
27024
|
+
"arrowIcon": "FJQKa",
|
|
27025
|
+
"fill": "MQA1p",
|
|
27026
|
+
"intrinsic": "oQFCM",
|
|
27027
|
+
"cell": "gljZt",
|
|
27028
|
+
"expandButton": "zwDOf",
|
|
27029
|
+
"expandIcon": "uDZHj",
|
|
27030
|
+
"expandChrome": "gVPr-",
|
|
27031
|
+
"expandIconGlyph": "XLeSY",
|
|
27032
|
+
"editorOverlay": "Yn6gb",
|
|
27033
|
+
"horizontal": "_9gLss",
|
|
27034
|
+
"viewport": "ZfSMs",
|
|
27035
|
+
"track": "GYhoV",
|
|
27036
|
+
"previous": "XpLKJ"
|
|
26704
27037
|
};
|
|
26705
27038
|
}
|
|
26706
27039
|
});
|
|
@@ -31564,9 +31897,9 @@ var init_data_hooks2 = __esm({
|
|
|
31564
31897
|
var styleDataHash, injectCss, fullscreen_default;
|
|
31565
31898
|
var init_fullscreen_scss = __esm({
|
|
31566
31899
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js"() {
|
|
31567
|
-
styleDataHash = "
|
|
31900
|
+
styleDataHash = "bab10e28";
|
|
31568
31901
|
injectCss = (() => {
|
|
31569
|
-
var css =
|
|
31902
|
+
var css = `.-j0q0 [data-hook^=gallery-media-]{display:block;inline-size:100%;overflow:hidden;position:relative}.-j0q0 [data-hook^=gallery-media-]>img,.-j0q0 [data-hook^=gallery-media-]>video{block-size:100%;display:block;inline-size:100%;object-position:center}.-j0q0 [data-hook^=gallery-media-]{align-items:center;display:flex;justify-content:center}.-j0q0 [data-hook^=gallery-media-]>img,.-j0q0 [data-hook^=gallery-media-]>video{block-size:auto;inline-size:auto;margin:auto;max-block-size:100%;max-inline-size:100%;object-fit:contain}.-j0q0 [data-hook=gallery-media-failure]{background:#e5e5e5;min-block-size:1px;min-inline-size:1px}.-j0q0 [data-hook=gallery-video-play]{appearance:none;background:transparent;border:0;cursor:pointer;inline-size:100%;inset:0;padding:0;position:absolute}.-j0q0 [data-hook=gallery-video-play]:focus-visible{outline:2px solid #3899ec;outline-offset:-2px}.-j0q0 [data-hook=gallery-video-play]>span{block-size:0;border-block:12px solid transparent;border-inline-start:18px solid #fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6));inline-size:0;inset-block-start:50%;inset-inline-start:50%;position:absolute;transform:translate(-40%,-50%)}._91MGY{align-items:center;appearance:none;background:transparent;block-size:39px;border:0;border-radius:0;color:#000;cursor:pointer;display:inline-flex;inline-size:23px;justify-content:center;overflow:hidden;padding:0;position:relative;transition:opacity .12s ease}._91MGY:disabled,[aria-disabled=true]._91MGY:not(:focus-visible){pointer-events:none;visibility:hidden}._91MGY:focus-visible{outline:2px solid #3899ec;outline-offset:2px}@media (prefers-reduced-motion:reduce){._91MGY{transition:none}}._91MGY{inset-block-start:50%;position:absolute;transform:translateY(-50%)}._91MGY svg{block-size:39px;display:block;inline-size:46px;inset-block-start:0;inset-inline-end:0;position:absolute;fill:currentColor;filter:drop-shadow(0 1px .15px #b2b2b2)}.nE-LM,.xpIsI{background:#fff;box-sizing:border-box;display:grid;grid-template-rows:minmax(0,1fr) auto;height:100dvh;inset:0;position:fixed;width:100vw;z-index:100001}.nE-LM{padding-block:70px 20px}@media only screen and (max-width:640px){.nE-LM{padding-block-start:40px}}.xpIsI{padding:0}.nTn--{background:transparent;border:hidden;border-radius:4px;box-sizing:border-box;color:#000;cursor:pointer;height:fit-content;padding:0;position:fixed;right:17px;top:10px;width:fit-content;z-index:1001}@media only screen and (max-width:640px){.nTn--{right:20px;top:5px}.nTn-->svg{height:30px;width:30px}}.nTn--:focus-visible{outline:5px auto Highlight!important;outline:5px auto -webkit-focus-ring-color!important}.CtirS{background:transparent;border:hidden;border-radius:4px;box-sizing:border-box;color:#000;cursor:pointer;height:fit-content;left:22px;padding:0;position:fixed;top:10px;width:fit-content;z-index:1001}.CtirS:focus-visible{outline:5px auto Highlight!important;outline:5px auto -webkit-focus-ring-color!important}.S6QUY{font-size:14px;line-height:20px;text-align:center;white-space:normal}.uHtve{box-sizing:border-box;display:flex;justify-content:center;min-height:60px;padding:16px 20px;width:100%}.WGCx7{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0;white-space:nowrap}._5VL5v{height:100%;min-height:0;min-width:0;position:relative;--ricos-internal-gallery-arrow-inset:20px}.i07sZ{height:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:inline mandatory;scrollbar-width:none}.i07sZ::-webkit-scrollbar{display:none}.tsuXW{display:flex;height:100%;list-style:none;margin:0;padding:0}.-j0q0{flex:0 0 100%;height:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;width:100%}.-j0q0 [data-hook^=gallery-media-]{background:transparent;height:100%}._91MGY{color:inherit;z-index:1}._91MGY[data-hook=gallery-navigation-previous]{inset-inline-start:var(--ricos-internal-gallery-arrow-inset,12px)}._91MGY[data-hook=gallery-navigation-previous] svg{inset-inline-end:auto;inset-inline-start:0}._91MGY[data-hook=gallery-navigation-next]{inset-inline-end:var(--ricos-internal-gallery-arrow-inset,12px)}`;
|
|
31570
31903
|
typeof process !== "undefined" && process.env && false;
|
|
31571
31904
|
if (typeof document === "undefined") {
|
|
31572
31905
|
return;
|
|
@@ -31587,18 +31920,18 @@ var init_fullscreen_scss = __esm({
|
|
|
31587
31920
|
});
|
|
31588
31921
|
injectCss();
|
|
31589
31922
|
fullscreen_default = {
|
|
31590
|
-
"slide": "
|
|
31591
|
-
"arrow": "
|
|
31592
|
-
"fullscreen_mode": "
|
|
31593
|
-
"expand_mode": "
|
|
31594
|
-
"close": "
|
|
31595
|
-
"expand_button": "
|
|
31596
|
-
"title": "
|
|
31597
|
-
"info_container": "
|
|
31598
|
-
"visuallyHidden": "
|
|
31599
|
-
"carousel": "
|
|
31600
|
-
"viewport": "
|
|
31601
|
-
"track": "
|
|
31923
|
+
"slide": "-j0q0",
|
|
31924
|
+
"arrow": "_91MGY",
|
|
31925
|
+
"fullscreen_mode": "xpIsI",
|
|
31926
|
+
"expand_mode": "nE-LM",
|
|
31927
|
+
"close": "nTn--",
|
|
31928
|
+
"expand_button": "CtirS",
|
|
31929
|
+
"title": "S6QUY",
|
|
31930
|
+
"info_container": "uHtve",
|
|
31931
|
+
"visuallyHidden": "WGCx7",
|
|
31932
|
+
"carousel": "_5VL5v",
|
|
31933
|
+
"viewport": "i07sZ",
|
|
31934
|
+
"track": "tsuXW"
|
|
31602
31935
|
};
|
|
31603
31936
|
}
|
|
31604
31937
|
});
|
|
@@ -32588,15 +32921,15 @@ var rich_content_viewer_default;
|
|
|
32588
32921
|
var init_rich_content_viewer_scss = __esm({
|
|
32589
32922
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/rich-content-viewer-scss.js"() {
|
|
32590
32923
|
rich_content_viewer_default = {
|
|
32591
|
-
"fontElementMap": "
|
|
32592
|
-
"wrapper": "
|
|
32593
|
-
"pluginContainerMobile": "
|
|
32594
|
-
"viewer": "
|
|
32595
|
-
"android": "-
|
|
32596
|
-
"rootedTraversedContent": "
|
|
32597
|
-
"atomic": "
|
|
32598
|
-
"toolbar": "
|
|
32599
|
-
"block": "
|
|
32924
|
+
"fontElementMap": "ulPVl",
|
|
32925
|
+
"wrapper": "pSH00",
|
|
32926
|
+
"pluginContainerMobile": "x3mNm",
|
|
32927
|
+
"viewer": "_05Prs",
|
|
32928
|
+
"android": "kn-P6",
|
|
32929
|
+
"rootedTraversedContent": "JAodO",
|
|
32930
|
+
"atomic": "O7nH9",
|
|
32931
|
+
"toolbar": "E3Cmw",
|
|
32932
|
+
"block": "uwlWQ"
|
|
32600
32933
|
};
|
|
32601
32934
|
}
|
|
32602
32935
|
});
|
|
@@ -32606,8 +32939,8 @@ var rtl_default;
|
|
|
32606
32939
|
var init_rtl_scss = __esm({
|
|
32607
32940
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/rtl-scss.js"() {
|
|
32608
32941
|
rtl_default = {
|
|
32609
|
-
"rtl": "
|
|
32610
|
-
"ltr": "
|
|
32942
|
+
"rtl": "YfGTB",
|
|
32943
|
+
"ltr": "AQbO6"
|
|
32611
32944
|
};
|
|
32612
32945
|
}
|
|
32613
32946
|
});
|
|
@@ -33004,13 +33337,13 @@ var indentation_default;
|
|
|
33004
33337
|
var init_indentation_scss = __esm({
|
|
33005
33338
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/indentation-scss.js"() {
|
|
33006
33339
|
indentation_default = {
|
|
33007
|
-
"indentZero": "
|
|
33008
|
-
"indentOne": "
|
|
33009
|
-
"indentTwo": "
|
|
33010
|
-
"indentThree": "
|
|
33011
|
-
"indentFour": "
|
|
33012
|
-
"indentFive": "
|
|
33013
|
-
"indentSix": "
|
|
33340
|
+
"indentZero": "jTpZe",
|
|
33341
|
+
"indentOne": "TU0VV",
|
|
33342
|
+
"indentTwo": "IhE8p",
|
|
33343
|
+
"indentThree": "TWMwI",
|
|
33344
|
+
"indentFour": "ShV-8",
|
|
33345
|
+
"indentFive": "_7KHWQ",
|
|
33346
|
+
"indentSix": "_8oQ4-"
|
|
33014
33347
|
};
|
|
33015
33348
|
}
|
|
33016
33349
|
});
|
|
@@ -33063,9 +33396,9 @@ var blockquote_default;
|
|
|
33063
33396
|
var init_blockquote_scss = __esm({
|
|
33064
33397
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js"() {
|
|
33065
33398
|
blockquote_default = {
|
|
33066
|
-
"fontElementMap": "
|
|
33067
|
-
"quoteContainer": "
|
|
33068
|
-
"quote": "
|
|
33399
|
+
"fontElementMap": "UvdoI",
|
|
33400
|
+
"quoteContainer": "qbhlX",
|
|
33401
|
+
"quote": "jdT93"
|
|
33069
33402
|
};
|
|
33070
33403
|
}
|
|
33071
33404
|
});
|
|
@@ -33118,22 +33451,22 @@ var alignment_default;
|
|
|
33118
33451
|
var init_alignment_scss = __esm({
|
|
33119
33452
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/alignment-scss.js"() {
|
|
33120
33453
|
alignment_default = {
|
|
33121
|
-
"alignLeft": "
|
|
33122
|
-
"textWrapNowrap": "
|
|
33123
|
-
"alignRight": "
|
|
33124
|
-
"alignCenter": "
|
|
33125
|
-
"sizeFullWidth": "
|
|
33126
|
-
"renderedInTable": "
|
|
33127
|
-
"sizeOriginal": "
|
|
33128
|
-
"sizeContent": "
|
|
33129
|
-
"sizeSmall": "
|
|
33130
|
-
"sizeSmallCenter": "
|
|
33131
|
-
"flex": "
|
|
33132
|
-
"LEFT": "
|
|
33133
|
-
"CENTER": "
|
|
33134
|
-
"RIGHT": "
|
|
33135
|
-
"AUTO": "
|
|
33136
|
-
"JUSTIFY": "
|
|
33454
|
+
"alignLeft": "_2dw86",
|
|
33455
|
+
"textWrapNowrap": "_5UAIE",
|
|
33456
|
+
"alignRight": "gV65o",
|
|
33457
|
+
"alignCenter": "mHzb3",
|
|
33458
|
+
"sizeFullWidth": "vV5j-",
|
|
33459
|
+
"renderedInTable": "LwwDq",
|
|
33460
|
+
"sizeOriginal": "C94pQ",
|
|
33461
|
+
"sizeContent": "FqXrk",
|
|
33462
|
+
"sizeSmall": "NJMxV",
|
|
33463
|
+
"sizeSmallCenter": "r9anZ",
|
|
33464
|
+
"flex": "TPof9",
|
|
33465
|
+
"LEFT": "JaJ8F",
|
|
33466
|
+
"CENTER": "_8V4z4",
|
|
33467
|
+
"RIGHT": "jfQGL",
|
|
33468
|
+
"AUTO": "Z7XZW",
|
|
33469
|
+
"JUSTIFY": "Hbw-T"
|
|
33137
33470
|
};
|
|
33138
33471
|
}
|
|
33139
33472
|
});
|
|
@@ -33143,9 +33476,9 @@ var codeblock_default;
|
|
|
33143
33476
|
var init_codeblock_scss = __esm({
|
|
33144
33477
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js"() {
|
|
33145
33478
|
codeblock_default = {
|
|
33146
|
-
"blockStyleSpacing": "
|
|
33147
|
-
"codeBlock": "
|
|
33148
|
-
"renderedInTable": "
|
|
33479
|
+
"blockStyleSpacing": "MY4qU",
|
|
33480
|
+
"codeBlock": "I5dtC MY4qU",
|
|
33481
|
+
"renderedInTable": "dP-Dy"
|
|
33149
33482
|
};
|
|
33150
33483
|
}
|
|
33151
33484
|
});
|
|
@@ -33196,15 +33529,15 @@ var heading_default;
|
|
|
33196
33529
|
var init_heading_scss = __esm({
|
|
33197
33530
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js"() {
|
|
33198
33531
|
heading_default = {
|
|
33199
|
-
"fontElementMap": "
|
|
33200
|
-
"elementSpacing": "
|
|
33201
|
-
"headerOne": "
|
|
33202
|
-
"headerTwo": "
|
|
33203
|
-
"headerThree": "
|
|
33204
|
-
"headerFour": "
|
|
33205
|
-
"headerFive": "
|
|
33206
|
-
"headerSix": "
|
|
33207
|
-
"child": "
|
|
33532
|
+
"fontElementMap": "-Rqzr",
|
|
33533
|
+
"elementSpacing": "kp0MF",
|
|
33534
|
+
"headerOne": "_8-cML kp0MF",
|
|
33535
|
+
"headerTwo": "zo9Zb kp0MF",
|
|
33536
|
+
"headerThree": "DOYqE kp0MF",
|
|
33537
|
+
"headerFour": "G8H9U kp0MF",
|
|
33538
|
+
"headerFive": "kQa3y kp0MF",
|
|
33539
|
+
"headerSix": "NbiON kp0MF",
|
|
33540
|
+
"child": "aJlPh"
|
|
33208
33541
|
};
|
|
33209
33542
|
}
|
|
33210
33543
|
});
|
|
@@ -33298,16 +33631,16 @@ var layout_default;
|
|
|
33298
33631
|
var init_layout_scss = __esm({
|
|
33299
33632
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js"() {
|
|
33300
33633
|
layout_default = {
|
|
33301
|
-
"sectionDividerClip": "
|
|
33302
|
-
"sectionDivider": "
|
|
33303
|
-
"sectionDividerTop": "
|
|
33304
|
-
"sectionDividerBottom": "
|
|
33305
|
-
"layoutWrapper": "
|
|
33306
|
-
"layout": "
|
|
33307
|
-
"designOnLayout": "
|
|
33308
|
-
"designOnCell": "
|
|
33309
|
-
"cell": "
|
|
33310
|
-
"mobile": "
|
|
33634
|
+
"sectionDividerClip": "Rg4Ww",
|
|
33635
|
+
"sectionDivider": "O38vk",
|
|
33636
|
+
"sectionDividerTop": "bJn2g",
|
|
33637
|
+
"sectionDividerBottom": "bKAYo",
|
|
33638
|
+
"layoutWrapper": "xj27c",
|
|
33639
|
+
"layout": "BuCW-",
|
|
33640
|
+
"designOnLayout": "RoH5A",
|
|
33641
|
+
"designOnCell": "rUD2s",
|
|
33642
|
+
"cell": "_6ODN3",
|
|
33643
|
+
"mobile": "MQa81"
|
|
33311
33644
|
};
|
|
33312
33645
|
}
|
|
33313
33646
|
});
|
|
@@ -33706,9 +34039,9 @@ var init_resolve_backward_compat_overlay = __esm({
|
|
|
33706
34039
|
var styleDataHash2, injectCss2, layout_background_loader_default;
|
|
33707
34040
|
var init_layout_background_loader_scss = __esm({
|
|
33708
34041
|
"../../node_modules/@wix/ricos/dist/es/ui-components/layout-background-loader/layout-background-loader-scss.js"() {
|
|
33709
|
-
styleDataHash2 = "
|
|
34042
|
+
styleDataHash2 = "6c8fe7aa";
|
|
33710
34043
|
injectCss2 = (() => {
|
|
33711
|
-
var css = `.
|
|
34044
|
+
var css = `.mRkvR{--shimmer-base-color:#f5f5f5;background-color:var(--shimmer-base-color);inset:0;pointer-events:none;position:absolute;z-index:1}.ZW4B6{inset:0;overflow:hidden;position:absolute}.ZW4B6:after{animation:UF7aO 1s linear infinite;background:linear-gradient(90deg,transparent,hsla(0,0%,100%,.3),transparent 50%);bottom:0;content:"";left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}@keyframes UF7aO{to{transform:translateX(100%)}}`;
|
|
33712
34045
|
typeof process !== "undefined" && process.env && false;
|
|
33713
34046
|
if (typeof document === "undefined") {
|
|
33714
34047
|
return;
|
|
@@ -33729,9 +34062,9 @@ var init_layout_background_loader_scss = __esm({
|
|
|
33729
34062
|
});
|
|
33730
34063
|
injectCss2();
|
|
33731
34064
|
layout_background_loader_default = {
|
|
33732
|
-
"overlay": "
|
|
33733
|
-
"shimmer": "
|
|
33734
|
-
"layout-shimmer": "
|
|
34065
|
+
"overlay": "mRkvR",
|
|
34066
|
+
"shimmer": "ZW4B6",
|
|
34067
|
+
"layout-shimmer": "UF7aO"
|
|
33735
34068
|
};
|
|
33736
34069
|
}
|
|
33737
34070
|
});
|
|
@@ -34068,12 +34401,12 @@ var lists_default;
|
|
|
34068
34401
|
var init_lists_scss = __esm({
|
|
34069
34402
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js"() {
|
|
34070
34403
|
lists_default = {
|
|
34071
|
-
"fontElementMap": "
|
|
34072
|
-
"orderedlist": "
|
|
34073
|
-
"bulletedlist": "
|
|
34074
|
-
"listItem": "
|
|
34075
|
-
"checkboxList": "
|
|
34076
|
-
"checkboxInput": "
|
|
34404
|
+
"fontElementMap": "wtqG9",
|
|
34405
|
+
"orderedlist": "Ngv3o",
|
|
34406
|
+
"bulletedlist": "_7CFss",
|
|
34407
|
+
"listItem": "i7-cY",
|
|
34408
|
+
"checkboxList": "_0GTBR",
|
|
34409
|
+
"checkboxInput": "EJpeX"
|
|
34077
34410
|
};
|
|
34078
34411
|
}
|
|
34079
34412
|
});
|
|
@@ -34304,10 +34637,10 @@ var paragraph_default;
|
|
|
34304
34637
|
var init_paragraph_scss = __esm({
|
|
34305
34638
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js"() {
|
|
34306
34639
|
paragraph_default = {
|
|
34307
|
-
"fontElementMap": "
|
|
34308
|
-
"elementSpacing": "
|
|
34309
|
-
"text": "
|
|
34310
|
-
"child": "
|
|
34640
|
+
"fontElementMap": "Bugx7",
|
|
34641
|
+
"elementSpacing": "u5FHg",
|
|
34642
|
+
"text": "LaD-3 u5FHg",
|
|
34643
|
+
"child": "tfLfg"
|
|
34311
34644
|
};
|
|
34312
34645
|
}
|
|
34313
34646
|
});
|
|
@@ -34484,9 +34817,9 @@ var init_struct_converters = __esm({
|
|
|
34484
34817
|
var styleDataHash3, injectCss3, general_default;
|
|
34485
34818
|
var init_general_scss = __esm({
|
|
34486
34819
|
"../../node_modules/@wix/ricos/dist/es/wix-rich-content-common/statics/styles/general-scss.js"() {
|
|
34487
|
-
styleDataHash3 = "
|
|
34820
|
+
styleDataHash3 = "c3ac66f6";
|
|
34488
34821
|
injectCss3 = (() => {
|
|
34489
|
-
var css = `.
|
|
34822
|
+
var css = `.PVcrw{margin-left:0;margin-right:auto;z-index:1}.PVcrw:not(.P-wmd){float:left;margin-right:40px}@supports not (contain:inline-size){@media only screen and (max-width:480px){.PVcrw:not(.P-wmd){float:none;margin-right:auto}}}@container (width < 480px){.PVcrw:not(.P-wmd){float:none;margin-right:auto}}._43eqe{margin-left:auto;margin-right:0;z-index:1}._43eqe:not(.P-wmd){float:right;margin-left:40px}@supports not (contain:inline-size){@media only screen and (max-width:480px){._43eqe:not(.P-wmd){float:none;margin-left:auto}}}@container (width < 480px){._43eqe:not(.P-wmd){float:none;margin-left:auto}}.h-5uj{clear:both;display:block}.h-5uj:not(.mEpzy){margin-left:auto;margin-right:auto;max-width:100%}.P-wmd,.mEpzy{width:100%}.fFuN- .P-wmd,.fFuN- .mEpzy{margin:0 -8px;width:auto}.ELk1M{width:fit-content}._2wfg6{margin-left:auto;margin-right:auto;max-width:100%}.Dgrxs{width:min(350px,100%)!important}.fFuN- .Dgrxs{width:50%}.ytnoN{margin-left:auto;margin-right:auto}.fFuN- .ytnoN{width:150px}.QQVsO{display:flex}`;
|
|
34490
34823
|
typeof process !== "undefined" && process.env && false;
|
|
34491
34824
|
if (typeof document === "undefined") {
|
|
34492
34825
|
return;
|
|
@@ -34507,17 +34840,17 @@ var init_general_scss = __esm({
|
|
|
34507
34840
|
});
|
|
34508
34841
|
injectCss3();
|
|
34509
34842
|
general_default = {
|
|
34510
|
-
"alignLeft": "
|
|
34511
|
-
"textWrapNowrap": "
|
|
34512
|
-
"alignRight": "
|
|
34513
|
-
"alignCenter": "
|
|
34514
|
-
"sizeFullWidth": "
|
|
34515
|
-
"renderedInTable": "
|
|
34516
|
-
"sizeOriginal": "
|
|
34517
|
-
"sizeContent": "
|
|
34518
|
-
"sizeSmall": "
|
|
34519
|
-
"sizeSmallCenter": "
|
|
34520
|
-
"flex": "
|
|
34843
|
+
"alignLeft": "PVcrw",
|
|
34844
|
+
"textWrapNowrap": "P-wmd",
|
|
34845
|
+
"alignRight": "_43eqe",
|
|
34846
|
+
"alignCenter": "h-5uj",
|
|
34847
|
+
"sizeFullWidth": "mEpzy",
|
|
34848
|
+
"renderedInTable": "fFuN-",
|
|
34849
|
+
"sizeOriginal": "ELk1M",
|
|
34850
|
+
"sizeContent": "_2wfg6",
|
|
34851
|
+
"sizeSmall": "Dgrxs",
|
|
34852
|
+
"sizeSmallCenter": "ytnoN",
|
|
34853
|
+
"flex": "QQVsO"
|
|
34521
34854
|
};
|
|
34522
34855
|
}
|
|
34523
34856
|
});
|
|
@@ -34526,9 +34859,9 @@ var init_general_scss = __esm({
|
|
|
34526
34859
|
var styleDataHash4, injectCss4, general_default2;
|
|
34527
34860
|
var init_general_scss2 = __esm({
|
|
34528
34861
|
"../../node_modules/@wix/ricos/dist/es/editor-common/statics/styles/general-scss.js"() {
|
|
34529
|
-
styleDataHash4 = "
|
|
34862
|
+
styleDataHash4 = "72e3b9c4";
|
|
34530
34863
|
injectCss4 = (() => {
|
|
34531
|
-
var css = `.
|
|
34864
|
+
var css = `.Vjk27,.okmpE,button{font-family:var(--ricos-font-family,unset)}.glob_fontElementMap{font-family:var(--ricos-font-family,unset)}.yF-oU{display:flex}.AcMMZ:hover{border-radius:var(--ricos-native-whitebox-border-radius,0);box-shadow:0 0 0 1.5px #116dff;cursor:default}.qlPiF{border-radius:var(--ricos-native-whitebox-border-radius,0);box-shadow:0 0 0 1.5px #116dff;cursor:default}._5YFhj .qlPiF{box-shadow:none!important}[data-hook^=figure-][data-cropping] .qlPiF{box-shadow:none!important}._5YFhj :is([data-resize-handle],[data-hook=image-corner-radius-handle],[data-hook=image-corner-radius-label]){display:none!important}._2mJFy{cursor:move;display:block;height:100%;left:0;position:absolute;top:0;width:100%}._2mJFy.TbUBZ{pointer-events:none}.LyNAX ::selection{background:transparent}._4fQyJ{display:none}.okmpE{position:relative}.YdCvY{max-width:100%}.IUfgp{color:#333;text-decoration:none}._--Q16{display:block}.HrKxP{position:relative}.wbIju{margin-left:-20px;margin-right:-20px;overflow-x:auto;overflow-y:hidden}.wbIju.u5kWc::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5)}.wbIju.gT7f-::-webkit-scrollbar-thumb{background-color:transparent}.OHtww{max-width:max-content!important;min-width:100%}.wbIju::-webkit-scrollbar{-webkit-appearance:none}.wbIju::-webkit-scrollbar-thumb{border:2px solid #fff;border-radius:8px}.wbIju::-webkit-scrollbar:horizontal{height:10px}`;
|
|
34532
34865
|
typeof process !== "undefined" && process.env && false;
|
|
34533
34866
|
if (typeof document === "undefined") {
|
|
34534
34867
|
return;
|
|
@@ -34549,24 +34882,24 @@ var init_general_scss2 = __esm({
|
|
|
34549
34882
|
});
|
|
34550
34883
|
injectCss4();
|
|
34551
34884
|
general_default2 = {
|
|
34552
|
-
"fontElementMap": "
|
|
34553
|
-
"pluginContainer": "
|
|
34554
|
-
"flex": "
|
|
34555
|
-
"isFocusable": "
|
|
34556
|
-
"hasFocus": "
|
|
34557
|
-
"dragImageView": "
|
|
34558
|
-
"overlay": "
|
|
34559
|
-
"noPointerEventsOnFocus": "
|
|
34560
|
-
"hideTextSelection": "
|
|
34561
|
-
"hidden": "
|
|
34562
|
-
"pluginContainerMobile": "
|
|
34563
|
-
"isImage": "
|
|
34564
|
-
"anchor": "
|
|
34565
|
-
"horizontalScrollbarWrapper": "
|
|
34566
|
-
"pluginWithHorizontalScrollbar": "
|
|
34567
|
-
"show": "
|
|
34568
|
-
"hide": "
|
|
34569
|
-
"horizontalScrollbar": "
|
|
34885
|
+
"fontElementMap": "Vjk27",
|
|
34886
|
+
"pluginContainer": "okmpE",
|
|
34887
|
+
"flex": "yF-oU",
|
|
34888
|
+
"isFocusable": "AcMMZ",
|
|
34889
|
+
"hasFocus": "qlPiF",
|
|
34890
|
+
"dragImageView": "_5YFhj",
|
|
34891
|
+
"overlay": "_2mJFy",
|
|
34892
|
+
"noPointerEventsOnFocus": "TbUBZ",
|
|
34893
|
+
"hideTextSelection": "LyNAX",
|
|
34894
|
+
"hidden": "_4fQyJ",
|
|
34895
|
+
"pluginContainerMobile": "YdCvY",
|
|
34896
|
+
"isImage": "IUfgp",
|
|
34897
|
+
"anchor": "_--Q16",
|
|
34898
|
+
"horizontalScrollbarWrapper": "HrKxP",
|
|
34899
|
+
"pluginWithHorizontalScrollbar": "wbIju",
|
|
34900
|
+
"show": "u5kWc",
|
|
34901
|
+
"hide": "gT7f-",
|
|
34902
|
+
"horizontalScrollbar": "OHtww"
|
|
34570
34903
|
};
|
|
34571
34904
|
}
|
|
34572
34905
|
});
|
|
@@ -34592,21 +34925,21 @@ var plugin_default;
|
|
|
34592
34925
|
var init_plugin_scss = __esm({
|
|
34593
34926
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js"() {
|
|
34594
34927
|
plugin_default = {
|
|
34595
|
-
"alignLeft": "
|
|
34596
|
-
"textWrapNowrap": "
|
|
34597
|
-
"alignRight": "
|
|
34598
|
-
"alignCenter": "
|
|
34599
|
-
"sizeFullWidth": "
|
|
34600
|
-
"renderedInTable": "
|
|
34601
|
-
"sizeOriginal": "
|
|
34602
|
-
"sizeContent": "
|
|
34603
|
-
"sizeSmall": "
|
|
34604
|
-
"sizeSmallCenter": "
|
|
34605
|
-
"flex": "
|
|
34606
|
-
"atomic": "
|
|
34607
|
-
"embed": "
|
|
34608
|
-
"horizontalScrollbar": "
|
|
34609
|
-
"pluginContainerMobile": "
|
|
34928
|
+
"alignLeft": "xFsZr",
|
|
34929
|
+
"textWrapNowrap": "GI-hE",
|
|
34930
|
+
"alignRight": "_3n02d",
|
|
34931
|
+
"alignCenter": "LnERq",
|
|
34932
|
+
"sizeFullWidth": "c8k4N",
|
|
34933
|
+
"renderedInTable": "_5WFYn",
|
|
34934
|
+
"sizeOriginal": "vr-1C",
|
|
34935
|
+
"sizeContent": "bJuv-",
|
|
34936
|
+
"sizeSmall": "v5May",
|
|
34937
|
+
"sizeSmallCenter": "c4Ouj",
|
|
34938
|
+
"flex": "yp55o",
|
|
34939
|
+
"atomic": "-soj1",
|
|
34940
|
+
"embed": "ly1dr",
|
|
34941
|
+
"horizontalScrollbar": "dM8xx",
|
|
34942
|
+
"pluginContainerMobile": "I9xke"
|
|
34610
34943
|
};
|
|
34611
34944
|
}
|
|
34612
34945
|
});
|
|
@@ -34709,8 +35042,8 @@ var link_viewer_wrapper_default;
|
|
|
34709
35042
|
var init_link_viewer_wrapper_scss = __esm({
|
|
34710
35043
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js"() {
|
|
34711
35044
|
link_viewer_wrapper_default = {
|
|
34712
|
-
"anchor": "
|
|
34713
|
-
"link": "
|
|
35045
|
+
"anchor": "VNPuh",
|
|
35046
|
+
"link": "_0Jys0"
|
|
34714
35047
|
};
|
|
34715
35048
|
}
|
|
34716
35049
|
});
|
|
@@ -35115,9 +35448,9 @@ var init_gap_spacer_nodes = __esm({
|
|
|
35115
35448
|
var styleDataHash5, injectCss5, gap_spacer_styles_default;
|
|
35116
35449
|
var init_gap_spacer_styles_scss = __esm({
|
|
35117
35450
|
"../../node_modules/@wix/ricos/dist/es/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js"() {
|
|
35118
|
-
styleDataHash5 = "
|
|
35451
|
+
styleDataHash5 = "332e652c";
|
|
35119
35452
|
injectCss5 = (() => {
|
|
35120
|
-
var css = `.
|
|
35453
|
+
var css = `.DgQur,.idv6s{cursor:pointer;height:14px;margin:0;padding:0;pointer-events:auto;position:relative;width:100%}.DgQur:not(.yEiVP):hover ._0nNqE,.idv6s:not(.yEiVP):hover ._0nNqE{opacity:1}.idv6s.yEiVP,.yEiVP.DgQur{cursor:auto;height:0;pointer-events:none}.DgQur{cursor:none;pointer-events:none}.UThvk ._0nNqE{opacity:1}._0nNqE{background-color:#116dff;height:2px;opacity:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;width:100%;z-index:1000000}._0nNqE:after,._0nNqE:before{background-color:#116dff;content:"";height:3px;left:0;opacity:.3;position:absolute;width:100%}._0nNqE:before{top:-3px}._0nNqE:after{bottom:-3px}.Hqbfi{background:var(--wds-tooltip-background-fill,var(--wsr-color-D10,#000624));border-radius:var(--wds-tooltip-border-radius,8px);box-shadow:var(--wds-shadow-surface-overlay-dark,var(--wsr-shadow30,0 6px 6px 0 rgba(22,45,61,.06),0 0 18px 0 rgba(22,45,61,.12)));color:var(--wds-tooltip-text-fill,var(--wsr-color-D80,#fff));font-family:var(--wds-font-family-default,var(--wsr-font-family,Madefor,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA","meiryo","\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif));font-size:var(--wds-font-size-body-tiny,var(--wsr-text-font-size-tiny,12px));font-weight:var(--wds-font-weight-regular,var(--wsr-font-weight-regular,400));letter-spacing:var(--wds-font-letter-spacing-0,unset);line-height:var(--wds-font-line-height-body-tiny,var(--wsr-text-line-height-tiny,15px));padding:var(--wds-tooltip-padding-vertical-small,8px) var(--wds-tooltip-padding-horizontal-small,12px) var(--wds-tooltip-padding-vertical-small,7px);position:absolute;word-wrap:break-word;border:none;max-width:180px;opacity:0;pointer-events:none;transform:translateX(-50%) translateY(-100%) scale(.8);transition:opacity .15s ease-out,transform .15s ease-out;word-break:break-word;z-index:1000000}.Jzn6S{display:none}@supports not (contain:inline-size){@media only screen and (max-width:480px){.Jzn6S{display:block}}}@container (width < 480px){.Jzn6S{display:block}}._1uHT-{margin-top:14px}`;
|
|
35121
35454
|
typeof process !== "undefined" && process.env && false;
|
|
35122
35455
|
if (typeof document === "undefined") {
|
|
35123
35456
|
return;
|
|
@@ -35138,14 +35471,14 @@ var init_gap_spacer_styles_scss = __esm({
|
|
|
35138
35471
|
});
|
|
35139
35472
|
injectCss5();
|
|
35140
35473
|
gap_spacer_styles_default = {
|
|
35141
|
-
"gapSpacerContainer": "
|
|
35142
|
-
"gapSpacerViewer": "
|
|
35143
|
-
"collapsed": "
|
|
35144
|
-
"gapSpacerLine": "
|
|
35145
|
-
"gapSpacerFocused": "
|
|
35146
|
-
"gapSpacerTooltip": "
|
|
35147
|
-
"betweenFloated": "
|
|
35148
|
-
"withTopMargin": "-
|
|
35474
|
+
"gapSpacerContainer": "idv6s",
|
|
35475
|
+
"gapSpacerViewer": "DgQur",
|
|
35476
|
+
"collapsed": "yEiVP",
|
|
35477
|
+
"gapSpacerLine": "_0nNqE",
|
|
35478
|
+
"gapSpacerFocused": "UThvk",
|
|
35479
|
+
"gapSpacerTooltip": "Hqbfi",
|
|
35480
|
+
"betweenFloated": "Jzn6S",
|
|
35481
|
+
"withTopMargin": "_1uHT-"
|
|
35149
35482
|
};
|
|
35150
35483
|
}
|
|
35151
35484
|
});
|
|
@@ -39260,6 +39593,7 @@ var init_content_viewer = __esm({
|
|
|
39260
39593
|
init_ricos_styles();
|
|
39261
39594
|
init_has_plugin();
|
|
39262
39595
|
init_use_id_compat();
|
|
39596
|
+
init_use_isomorphic_layout_effect();
|
|
39263
39597
|
init_wix_rich_content_common();
|
|
39264
39598
|
init_rich_content_viewer_scss();
|
|
39265
39599
|
init_rtl_scss();
|
|
@@ -39286,7 +39620,7 @@ var init_content_viewer = __esm({
|
|
|
39286
39620
|
const [minHeight, setMinHeight] = useState(void 0);
|
|
39287
39621
|
const viewerRef = useRef(null);
|
|
39288
39622
|
const contentRef = useRef(null);
|
|
39289
|
-
|
|
39623
|
+
useIsomorphicLayoutEffect(() => {
|
|
39290
39624
|
const isSafari = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent);
|
|
39291
39625
|
if (!isSafari || !contentRef.current) {
|
|
39292
39626
|
return;
|
|
@@ -39323,6 +39657,10 @@ var init_content_viewer = __esm({
|
|
|
39323
39657
|
() => buildThemeCssVars(contextualData.theme, documentStyle ?? {}),
|
|
39324
39658
|
[contextualData.theme, documentStyle]
|
|
39325
39659
|
);
|
|
39660
|
+
const fontModeAttributes = useMemo(
|
|
39661
|
+
() => buildFontModeAttributes(contextualData.theme, documentStyle ?? {}),
|
|
39662
|
+
[contextualData.theme, documentStyle]
|
|
39663
|
+
);
|
|
39326
39664
|
const dataId = { "data-id": "content-viewer" };
|
|
39327
39665
|
return /* @__PURE__ */ React171.createElement(GlobalContext.Provider, { key: "RicosViewer", value: { experiments, isMobile: isMobile2, t } }, /* @__PURE__ */ React171.createElement(
|
|
39328
39666
|
"div",
|
|
@@ -39336,7 +39674,8 @@ var init_content_viewer = __esm({
|
|
|
39336
39674
|
onMouseEnter: (e) => onHover && onHover(e),
|
|
39337
39675
|
onMouseOver,
|
|
39338
39676
|
ref: handleRef,
|
|
39339
|
-
...dataId
|
|
39677
|
+
...dataId,
|
|
39678
|
+
...fontModeAttributes
|
|
39340
39679
|
},
|
|
39341
39680
|
props2.devTools,
|
|
39342
39681
|
/* @__PURE__ */ React171.createElement(
|
|
@@ -42744,9 +43083,9 @@ var init_ContentViewer = __esm({
|
|
|
42744
43083
|
var styleDataHash6, injectCss6, viewer_inline_toolbar_default;
|
|
42745
43084
|
var init_viewer_inline_toolbar_scss = __esm({
|
|
42746
43085
|
"../../node_modules/@wix/ricos/dist/es/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js"() {
|
|
42747
|
-
styleDataHash6 = "
|
|
43086
|
+
styleDataHash6 = "a5b88005";
|
|
42748
43087
|
injectCss6 = (() => {
|
|
42749
|
-
var css = `.
|
|
43088
|
+
var css = `.SVOOD{background-color:#fff;border:1px solid #ededed;border-radius:6px;box-shadow:0 4px 8px 0 rgba(0,0,0,.07);display:flex;height:43px;overflow:hidden;position:absolute;transform:translate(-50%,-100%);transition:all .5s ease-out}.mcAae{align-items:center;background:#fff;border:none;cursor:pointer;display:flex;justify-content:center;width:43px}`;
|
|
42750
43089
|
typeof process !== "undefined" && process.env && false;
|
|
42751
43090
|
if (typeof document === "undefined") {
|
|
42752
43091
|
return;
|
|
@@ -42767,8 +43106,8 @@ var init_viewer_inline_toolbar_scss = __esm({
|
|
|
42767
43106
|
});
|
|
42768
43107
|
injectCss6();
|
|
42769
43108
|
viewer_inline_toolbar_default = {
|
|
42770
|
-
"toolbar": "
|
|
42771
|
-
"button": "
|
|
43109
|
+
"toolbar": "SVOOD",
|
|
43110
|
+
"button": "mcAae"
|
|
42772
43111
|
};
|
|
42773
43112
|
}
|
|
42774
43113
|
});
|
|
@@ -45873,23 +46212,6 @@ var init_esm2 = __esm({
|
|
|
45873
46212
|
}
|
|
45874
46213
|
});
|
|
45875
46214
|
|
|
45876
|
-
// ../../node_modules/@wix/sdk-runtime/build/constants.js
|
|
45877
|
-
var SDKRequestToRESTRequestRenameMap, RESTResponseToSDKResponseRenameMap2;
|
|
45878
|
-
var init_constants4 = __esm({
|
|
45879
|
-
"../../node_modules/@wix/sdk-runtime/build/constants.js"() {
|
|
45880
|
-
SDKRequestToRESTRequestRenameMap = {
|
|
45881
|
-
_id: "id",
|
|
45882
|
-
_createdDate: "createdDate",
|
|
45883
|
-
_updatedDate: "updatedDate"
|
|
45884
|
-
};
|
|
45885
|
-
RESTResponseToSDKResponseRenameMap2 = {
|
|
45886
|
-
id: "_id",
|
|
45887
|
-
createdDate: "_createdDate",
|
|
45888
|
-
updatedDate: "_updatedDate"
|
|
45889
|
-
};
|
|
45890
|
-
}
|
|
45891
|
-
});
|
|
45892
|
-
|
|
45893
46215
|
// ../../node_modules/@wix/sdk-runtime/build/field-rename.js
|
|
45894
46216
|
function renameFieldPathBySegment(fieldPath, renameMap) {
|
|
45895
46217
|
return fieldPath?.split(".").map((segment) => renameMap?.[segment] ?? segment).join(".");
|
|
@@ -45948,11 +46270,11 @@ function renameKeysFromSDKRequestToRESTRequest(payload, ignorePaths = []) {
|
|
|
45948
46270
|
return renameAllNestedKeys(payload, SDKRequestToRESTRequestRenameMap, ignorePaths);
|
|
45949
46271
|
}
|
|
45950
46272
|
function renameKeysFromRESTResponseToSDKResponse(payload, ignorePaths = []) {
|
|
45951
|
-
return renameAllNestedKeys(payload,
|
|
46273
|
+
return renameAllNestedKeys(payload, RESTResponseToSDKResponseRenameMap, ignorePaths);
|
|
45952
46274
|
}
|
|
45953
46275
|
var init_rename_all_nested_keys = __esm({
|
|
45954
46276
|
"../../node_modules/@wix/sdk-runtime/build/rename-all-nested-keys.js"() {
|
|
45955
|
-
|
|
46277
|
+
init_constants2();
|
|
45956
46278
|
init_field_rename();
|
|
45957
46279
|
}
|
|
45958
46280
|
});
|
|
@@ -45991,460 +46313,6 @@ var init_transform_paths = __esm({
|
|
|
45991
46313
|
}
|
|
45992
46314
|
});
|
|
45993
46315
|
|
|
45994
|
-
// ../../node_modules/@wix/sdk-runtime/build/utils.js
|
|
45995
|
-
function removeUndefinedKeys(obj) {
|
|
45996
|
-
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
|
|
45997
|
-
}
|
|
45998
|
-
function constantCase2(input) {
|
|
45999
|
-
return split2(input).map((part) => part.toLocaleUpperCase()).join("_");
|
|
46000
|
-
}
|
|
46001
|
-
function split2(value) {
|
|
46002
|
-
let result2 = value.trim();
|
|
46003
|
-
result2 = result2.replace(SPLIT_LOWER_UPPER_RE2, SPLIT_REPLACE_VALUE2).replace(SPLIT_UPPER_UPPER_RE2, SPLIT_REPLACE_VALUE2);
|
|
46004
|
-
result2 = result2.replace(DEFAULT_STRIP_REGEXP2, "\0");
|
|
46005
|
-
let start = 0;
|
|
46006
|
-
let end = result2.length;
|
|
46007
|
-
while (result2.charAt(start) === "\0") {
|
|
46008
|
-
start++;
|
|
46009
|
-
}
|
|
46010
|
-
if (start === end) {
|
|
46011
|
-
return [];
|
|
46012
|
-
}
|
|
46013
|
-
while (result2.charAt(end - 1) === "\0") {
|
|
46014
|
-
end--;
|
|
46015
|
-
}
|
|
46016
|
-
return result2.slice(start, end).split(/\0/g);
|
|
46017
|
-
}
|
|
46018
|
-
var SPLIT_LOWER_UPPER_RE2, SPLIT_UPPER_UPPER_RE2, SPLIT_REPLACE_VALUE2, DEFAULT_STRIP_REGEXP2;
|
|
46019
|
-
var init_utils8 = __esm({
|
|
46020
|
-
"../../node_modules/@wix/sdk-runtime/build/utils.js"() {
|
|
46021
|
-
SPLIT_LOWER_UPPER_RE2 = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
46022
|
-
SPLIT_UPPER_UPPER_RE2 = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
46023
|
-
SPLIT_REPLACE_VALUE2 = "$1\0$2";
|
|
46024
|
-
DEFAULT_STRIP_REGEXP2 = /[^\p{L}\d]+/giu;
|
|
46025
|
-
}
|
|
46026
|
-
});
|
|
46027
|
-
|
|
46028
|
-
// ../../node_modules/@wix/sdk-runtime/build/transform-error.js
|
|
46029
|
-
function transformError2(httpClientError, pathsToArguments = {
|
|
46030
|
-
explicitPathsToArguments: {},
|
|
46031
|
-
spreadPathsToArguments: {},
|
|
46032
|
-
singleArgumentUnchanged: false
|
|
46033
|
-
}, argumentNames = []) {
|
|
46034
|
-
if (typeof httpClientError !== "object" || httpClientError === null) {
|
|
46035
|
-
throw httpClientError;
|
|
46036
|
-
}
|
|
46037
|
-
if (isValidationError2(httpClientError)) {
|
|
46038
|
-
return buildValidationError2(httpClientError, pathsToArguments, argumentNames);
|
|
46039
|
-
}
|
|
46040
|
-
if (isApplicationError2(httpClientError)) {
|
|
46041
|
-
return buildApplicationError2(httpClientError);
|
|
46042
|
-
}
|
|
46043
|
-
if (isClientError2(httpClientError)) {
|
|
46044
|
-
const status = httpClientError.response?.status;
|
|
46045
|
-
const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
|
|
46046
|
-
const message = httpClientError.response?.data?.message ?? statusText;
|
|
46047
|
-
const details = {
|
|
46048
|
-
applicationError: {
|
|
46049
|
-
description: statusText,
|
|
46050
|
-
code: constantCase2(statusText),
|
|
46051
|
-
data: {}
|
|
46052
|
-
},
|
|
46053
|
-
requestId: httpClientError.requestId
|
|
46054
|
-
};
|
|
46055
|
-
return wrapError2(httpClientError, {
|
|
46056
|
-
message: JSON.stringify({
|
|
46057
|
-
message,
|
|
46058
|
-
details
|
|
46059
|
-
}, null, 2),
|
|
46060
|
-
extraProperties: {
|
|
46061
|
-
details,
|
|
46062
|
-
status
|
|
46063
|
-
}
|
|
46064
|
-
});
|
|
46065
|
-
}
|
|
46066
|
-
return buildSystemError2(httpClientError);
|
|
46067
|
-
}
|
|
46068
|
-
var isValidationError2, isApplicationError2, isClientError2, buildValidationError2, wrapError2, buildApplicationError2, buildSystemError2, violationsWithRenamedFields2, withRenamedArgument2, getArgumentIndex2;
|
|
46069
|
-
var init_transform_error2 = __esm({
|
|
46070
|
-
"../../node_modules/@wix/sdk-runtime/build/transform-error.js"() {
|
|
46071
|
-
init_utils8();
|
|
46072
|
-
isValidationError2 = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
|
|
46073
|
-
isApplicationError2 = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
|
|
46074
|
-
isClientError2 = (httpClientError) => (httpClientError.response?.status ?? -1) >= 400 && (httpClientError.response?.status ?? -1) < 500;
|
|
46075
|
-
buildValidationError2 = (httpClientError, pathsToArguments, argumentNames) => {
|
|
46076
|
-
const validationErrorResponse = httpClientError.response?.data;
|
|
46077
|
-
const requestId = httpClientError.requestId;
|
|
46078
|
-
const { fieldViolations } = validationErrorResponse.details.validationError;
|
|
46079
|
-
const transformedFieldViolations = violationsWithRenamedFields2(pathsToArguments, fieldViolations, argumentNames)?.sort((a2, b) => a2.field < b.field ? -1 : 1);
|
|
46080
|
-
const message = `INVALID_ARGUMENT: ${transformedFieldViolations?.map(({ field, description }) => `"${field}" ${description}`)?.join(", ")}`;
|
|
46081
|
-
const details = {
|
|
46082
|
-
validationError: { fieldViolations: transformedFieldViolations },
|
|
46083
|
-
requestId
|
|
46084
|
-
};
|
|
46085
|
-
return wrapError2(httpClientError, {
|
|
46086
|
-
message: JSON.stringify({ message, details }, null, 2),
|
|
46087
|
-
extraProperties: {
|
|
46088
|
-
details,
|
|
46089
|
-
status: httpClientError.response?.status,
|
|
46090
|
-
requestId
|
|
46091
|
-
}
|
|
46092
|
-
});
|
|
46093
|
-
};
|
|
46094
|
-
wrapError2 = (baseError, { message, extraProperties }) => {
|
|
46095
|
-
return Object.assign(baseError, {
|
|
46096
|
-
...extraProperties,
|
|
46097
|
-
message
|
|
46098
|
-
});
|
|
46099
|
-
};
|
|
46100
|
-
buildApplicationError2 = (httpClientError) => {
|
|
46101
|
-
const status = httpClientError.response?.status;
|
|
46102
|
-
const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
|
|
46103
|
-
const message = httpClientError.response?.data?.message ?? statusText;
|
|
46104
|
-
const description = httpClientError.response?.data?.details?.applicationError?.description ?? statusText;
|
|
46105
|
-
const code = httpClientError.response?.data?.details?.applicationError?.code ?? constantCase2(statusText);
|
|
46106
|
-
const data = httpClientError.response?.data?.details?.applicationError?.data ?? {};
|
|
46107
|
-
const combinedMessage = message === description ? message : `${message}: ${description}`;
|
|
46108
|
-
const details = {
|
|
46109
|
-
applicationError: {
|
|
46110
|
-
description,
|
|
46111
|
-
code,
|
|
46112
|
-
data
|
|
46113
|
-
},
|
|
46114
|
-
requestId: httpClientError.requestId
|
|
46115
|
-
};
|
|
46116
|
-
return wrapError2(httpClientError, {
|
|
46117
|
-
message: JSON.stringify({ message: combinedMessage, details }, null, 2),
|
|
46118
|
-
extraProperties: {
|
|
46119
|
-
details,
|
|
46120
|
-
status,
|
|
46121
|
-
requestId: httpClientError.requestId
|
|
46122
|
-
}
|
|
46123
|
-
});
|
|
46124
|
-
};
|
|
46125
|
-
buildSystemError2 = (httpClientError) => {
|
|
46126
|
-
const message = httpClientError.requestId ? `System error occurred, request-id: ${httpClientError.requestId}` : `System error occurred: ${JSON.stringify(httpClientError)}`;
|
|
46127
|
-
return wrapError2(httpClientError, {
|
|
46128
|
-
message,
|
|
46129
|
-
extraProperties: {
|
|
46130
|
-
requestId: httpClientError.requestId,
|
|
46131
|
-
status: httpClientError.response?.status,
|
|
46132
|
-
code: constantCase2(httpClientError.response?.statusText ?? "UNKNOWN"),
|
|
46133
|
-
...!httpClientError.response && {
|
|
46134
|
-
runtimeError: httpClientError
|
|
46135
|
-
}
|
|
46136
|
-
}
|
|
46137
|
-
});
|
|
46138
|
-
};
|
|
46139
|
-
violationsWithRenamedFields2 = ({ spreadPathsToArguments, explicitPathsToArguments, singleArgumentUnchanged }, fieldViolations, argumentNames) => {
|
|
46140
|
-
const allPathsToArguments = {
|
|
46141
|
-
...spreadPathsToArguments,
|
|
46142
|
-
...explicitPathsToArguments
|
|
46143
|
-
};
|
|
46144
|
-
const allPathsToArgumentsKeys = Object.keys(allPathsToArguments);
|
|
46145
|
-
return fieldViolations?.filter((fieldViolation) => {
|
|
46146
|
-
const containedInAMoreSpecificViolationField = fieldViolations.some((anotherViolation) => anotherViolation.field.length > fieldViolation.field.length && anotherViolation.field.startsWith(fieldViolation.field) && allPathsToArgumentsKeys.includes(anotherViolation.field));
|
|
46147
|
-
return !containedInAMoreSpecificViolationField;
|
|
46148
|
-
}).map((fieldViolation) => {
|
|
46149
|
-
const exactMatchArgumentExpression = explicitPathsToArguments[fieldViolation.field];
|
|
46150
|
-
if (exactMatchArgumentExpression) {
|
|
46151
|
-
return {
|
|
46152
|
-
...fieldViolation,
|
|
46153
|
-
field: withRenamedArgument2(exactMatchArgumentExpression, argumentNames)
|
|
46154
|
-
};
|
|
46155
|
-
}
|
|
46156
|
-
const longestPartialPathMatch = allPathsToArgumentsKeys?.sort((a2, b) => b.length - a2.length)?.find((path) => fieldViolation.field.startsWith(path));
|
|
46157
|
-
if (longestPartialPathMatch) {
|
|
46158
|
-
const partialMatchArgumentExpression = allPathsToArguments[longestPartialPathMatch];
|
|
46159
|
-
if (partialMatchArgumentExpression) {
|
|
46160
|
-
return {
|
|
46161
|
-
...fieldViolation,
|
|
46162
|
-
field: fieldViolation.field.replace(longestPartialPathMatch, withRenamedArgument2(partialMatchArgumentExpression, argumentNames))
|
|
46163
|
-
};
|
|
46164
|
-
}
|
|
46165
|
-
}
|
|
46166
|
-
if (singleArgumentUnchanged) {
|
|
46167
|
-
return {
|
|
46168
|
-
...fieldViolation,
|
|
46169
|
-
field: `${argumentNames[0]}.${fieldViolation.field}`
|
|
46170
|
-
};
|
|
46171
|
-
}
|
|
46172
|
-
return fieldViolation;
|
|
46173
|
-
});
|
|
46174
|
-
};
|
|
46175
|
-
withRenamedArgument2 = (fieldValue, argumentNames) => {
|
|
46176
|
-
const argIndex = getArgumentIndex2(fieldValue);
|
|
46177
|
-
if (argIndex !== null && typeof argIndex !== "undefined") {
|
|
46178
|
-
return fieldValue.replace(`$[${argIndex}]`, argumentNames[argIndex]);
|
|
46179
|
-
}
|
|
46180
|
-
return fieldValue;
|
|
46181
|
-
};
|
|
46182
|
-
getArgumentIndex2 = (s) => {
|
|
46183
|
-
const match4 = s.match(/\$\[(?<argIndex>\d+)\]/);
|
|
46184
|
-
return match4 && match4.groups && Number(match4.groups.argIndex);
|
|
46185
|
-
};
|
|
46186
|
-
}
|
|
46187
|
-
});
|
|
46188
|
-
|
|
46189
|
-
// ../../node_modules/@wix/sdk-runtime/build/context.js
|
|
46190
|
-
function resolveContext() {
|
|
46191
|
-
const oldContext = typeof $wixContext !== "undefined" && $wixContext.initWixModules ? $wixContext.initWixModules : typeof globalThis.__wix_context__ !== "undefined" && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
46192
|
-
if (oldContext) {
|
|
46193
|
-
return {
|
|
46194
|
-
// @ts-expect-error
|
|
46195
|
-
initWixModules(modules, elevated) {
|
|
46196
|
-
return runWithoutContext2(() => oldContext(modules, elevated));
|
|
46197
|
-
},
|
|
46198
|
-
fetchWithAuth() {
|
|
46199
|
-
throw new Error("fetchWithAuth is not available in this context");
|
|
46200
|
-
},
|
|
46201
|
-
graphql() {
|
|
46202
|
-
throw new Error("graphql is not available in this context");
|
|
46203
|
-
}
|
|
46204
|
-
};
|
|
46205
|
-
}
|
|
46206
|
-
const contextualClient = typeof $wixContext !== "undefined" ? $wixContext.client : typeof wixContext.client !== "undefined" ? wixContext.client : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.client : void 0;
|
|
46207
|
-
const elevatedClient = typeof $wixContext !== "undefined" ? $wixContext.elevatedClient : typeof wixContext.elevatedClient !== "undefined" ? wixContext.elevatedClient : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.elevatedClient : void 0;
|
|
46208
|
-
if (!contextualClient && !elevatedClient) {
|
|
46209
|
-
return;
|
|
46210
|
-
}
|
|
46211
|
-
return {
|
|
46212
|
-
initWixModules(wixModules, elevated) {
|
|
46213
|
-
if (elevated) {
|
|
46214
|
-
if (!elevatedClient) {
|
|
46215
|
-
throw new Error("An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules");
|
|
46216
|
-
}
|
|
46217
|
-
return runWithoutContext2(() => elevatedClient.use(wixModules));
|
|
46218
|
-
}
|
|
46219
|
-
if (!contextualClient) {
|
|
46220
|
-
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
46221
|
-
}
|
|
46222
|
-
return runWithoutContext2(() => contextualClient.use(wixModules));
|
|
46223
|
-
},
|
|
46224
|
-
fetchWithAuth: (urlOrRequest, requestInit) => {
|
|
46225
|
-
if (!contextualClient) {
|
|
46226
|
-
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
46227
|
-
}
|
|
46228
|
-
return contextualClient.fetchWithAuth(urlOrRequest, requestInit);
|
|
46229
|
-
},
|
|
46230
|
-
getAuth() {
|
|
46231
|
-
if (!contextualClient) {
|
|
46232
|
-
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
46233
|
-
}
|
|
46234
|
-
return contextualClient.auth;
|
|
46235
|
-
},
|
|
46236
|
-
async graphql(query, variables, opts) {
|
|
46237
|
-
if (!contextualClient) {
|
|
46238
|
-
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
46239
|
-
}
|
|
46240
|
-
return contextualClient.graphql(query, variables, opts);
|
|
46241
|
-
}
|
|
46242
|
-
};
|
|
46243
|
-
}
|
|
46244
|
-
function runWithoutContext2(fn) {
|
|
46245
|
-
const globalContext = globalThis.__wix_context__;
|
|
46246
|
-
const moduleContext = {
|
|
46247
|
-
client: wixContext.client,
|
|
46248
|
-
elevatedClient: wixContext.elevatedClient
|
|
46249
|
-
};
|
|
46250
|
-
let closureContext;
|
|
46251
|
-
globalThis.__wix_context__ = void 0;
|
|
46252
|
-
wixContext.client = void 0;
|
|
46253
|
-
wixContext.elevatedClient = void 0;
|
|
46254
|
-
if (typeof $wixContext !== "undefined") {
|
|
46255
|
-
closureContext = {
|
|
46256
|
-
client: $wixContext?.client,
|
|
46257
|
-
elevatedClient: $wixContext?.elevatedClient
|
|
46258
|
-
};
|
|
46259
|
-
delete $wixContext.client;
|
|
46260
|
-
delete $wixContext.elevatedClient;
|
|
46261
|
-
}
|
|
46262
|
-
try {
|
|
46263
|
-
return fn();
|
|
46264
|
-
} finally {
|
|
46265
|
-
globalThis.__wix_context__ = globalContext;
|
|
46266
|
-
wixContext.client = moduleContext.client;
|
|
46267
|
-
wixContext.elevatedClient = moduleContext.elevatedClient;
|
|
46268
|
-
if (typeof $wixContext !== "undefined") {
|
|
46269
|
-
$wixContext.client = closureContext.client;
|
|
46270
|
-
$wixContext.elevatedClient = closureContext.elevatedClient;
|
|
46271
|
-
}
|
|
46272
|
-
}
|
|
46273
|
-
}
|
|
46274
|
-
var init_context2 = __esm({
|
|
46275
|
-
"../../node_modules/@wix/sdk-runtime/build/context.js"() {
|
|
46276
|
-
init_browser();
|
|
46277
|
-
init_context_v22();
|
|
46278
|
-
}
|
|
46279
|
-
});
|
|
46280
|
-
|
|
46281
|
-
// ../../node_modules/@wix/sdk-runtime/build/context-v2.js
|
|
46282
|
-
function contextualizeRESTModuleV2(restModule, elevated) {
|
|
46283
|
-
return ((...args) => {
|
|
46284
|
-
const context = resolveContext();
|
|
46285
|
-
if (!context) {
|
|
46286
|
-
return restModule.apply(void 0, args);
|
|
46287
|
-
}
|
|
46288
|
-
return context.initWixModules(restModule, elevated).apply(void 0, args);
|
|
46289
|
-
});
|
|
46290
|
-
}
|
|
46291
|
-
var init_context_v22 = __esm({
|
|
46292
|
-
"../../node_modules/@wix/sdk-runtime/build/context-v2.js"() {
|
|
46293
|
-
init_context2();
|
|
46294
|
-
}
|
|
46295
|
-
});
|
|
46296
|
-
|
|
46297
|
-
// ../../node_modules/@wix/sdk-runtime/build/rest-modules.js
|
|
46298
|
-
function createRESTModule(descriptor, elevated = false) {
|
|
46299
|
-
return contextualizeRESTModuleV2(descriptor, elevated);
|
|
46300
|
-
}
|
|
46301
|
-
function toURLSearchParams(params, isComplexRequest) {
|
|
46302
|
-
const flatten = flattenParams(params);
|
|
46303
|
-
Object.entries(flatten).some(([key, value]) => key.includes(".") || Array.isArray(value) && value.some((v) => typeof v === "object"));
|
|
46304
|
-
{
|
|
46305
|
-
return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {
|
|
46306
|
-
const keyParams = Array.isArray(value) ? value : [value];
|
|
46307
|
-
keyParams.forEach((param) => {
|
|
46308
|
-
if (param === void 0 || param === null || Array.isArray(value) && typeof param === "object") {
|
|
46309
|
-
return;
|
|
46310
|
-
}
|
|
46311
|
-
urlSearchParams.append(key, param);
|
|
46312
|
-
});
|
|
46313
|
-
return urlSearchParams;
|
|
46314
|
-
}, new URLSearchParams());
|
|
46315
|
-
}
|
|
46316
|
-
}
|
|
46317
|
-
function resolveUrl(opts) {
|
|
46318
|
-
const domain = resolveDomain(opts.host);
|
|
46319
|
-
const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);
|
|
46320
|
-
const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});
|
|
46321
|
-
return resolvePathFromMappings(path, mappings);
|
|
46322
|
-
}
|
|
46323
|
-
function flattenParams(data, path = "") {
|
|
46324
|
-
const params = {};
|
|
46325
|
-
Object.entries(data).forEach(([key, value]) => {
|
|
46326
|
-
const isObject7 = value !== null && typeof value === "object" && !Array.isArray(value);
|
|
46327
|
-
const fieldPath = resolvePath(path, key);
|
|
46328
|
-
if (isObject7) {
|
|
46329
|
-
const serializedObject = flattenParams(value, fieldPath);
|
|
46330
|
-
Object.assign(params, serializedObject);
|
|
46331
|
-
} else {
|
|
46332
|
-
params[fieldPath] = value;
|
|
46333
|
-
}
|
|
46334
|
-
});
|
|
46335
|
-
return params;
|
|
46336
|
-
}
|
|
46337
|
-
function resolvePath(path, key) {
|
|
46338
|
-
return `${path}${path ? "." : ""}${key}`;
|
|
46339
|
-
}
|
|
46340
|
-
function resolveDomain(host) {
|
|
46341
|
-
const resolvedHost = fixHostExceptions(host);
|
|
46342
|
-
return resolvedHost.replace(REGEX_CAPTURE_DOMAINS2, "._base_domain_").replace(REGEX_CAPTURE_API_DOMAINS2, "._api_base_domain_").replace(REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN2, "*.dev.wix-code.com");
|
|
46343
|
-
}
|
|
46344
|
-
function fixHostExceptions(host) {
|
|
46345
|
-
return HOST_ALIASES[host] ?? host;
|
|
46346
|
-
}
|
|
46347
|
-
function resolveMappingsByDomain(domain, domainToMappings) {
|
|
46348
|
-
const mappings = domainToMappings[domain];
|
|
46349
|
-
if (mappings) {
|
|
46350
|
-
return mappings;
|
|
46351
|
-
}
|
|
46352
|
-
const matchedMappings = resolveRootDomain(domain, domainToMappings) ?? resolveWildcardDomain(domain, domainToMappings);
|
|
46353
|
-
if (!matchedMappings) {
|
|
46354
|
-
if (isBaseDomain(domain)) {
|
|
46355
|
-
const wwwMappings = domainToMappings[wwwBaseDomain];
|
|
46356
|
-
if (wwwMappings) {
|
|
46357
|
-
return wwwMappings;
|
|
46358
|
-
}
|
|
46359
|
-
}
|
|
46360
|
-
const userMappings = domainToMappings[USER_DOMAIN];
|
|
46361
|
-
if (userMappings) {
|
|
46362
|
-
return userMappings;
|
|
46363
|
-
}
|
|
46364
|
-
}
|
|
46365
|
-
return matchedMappings ?? [];
|
|
46366
|
-
}
|
|
46367
|
-
function resolveRootDomain(domain, domainToMappings) {
|
|
46368
|
-
return Object.entries(domainToMappings).find(([entryDomain]) => {
|
|
46369
|
-
const [, ...rooDomainSegments] = domain.split(".");
|
|
46370
|
-
return rooDomainSegments.join(".") === entryDomain;
|
|
46371
|
-
})?.[1];
|
|
46372
|
-
}
|
|
46373
|
-
function resolveWildcardDomain(domain, domainToMappings) {
|
|
46374
|
-
const matchingEntries = Object.entries(domainToMappings).filter(([entryDomain]) => matchesWildcardDomain(domain, entryDomain));
|
|
46375
|
-
const [mostSpecificEntry] = matchingEntries.sort(([entryDomainA], [entryDomainB]) => entryDomainB.length - entryDomainA.length);
|
|
46376
|
-
if (!mostSpecificEntry) {
|
|
46377
|
-
return void 0;
|
|
46378
|
-
}
|
|
46379
|
-
const [, mappings] = mostSpecificEntry;
|
|
46380
|
-
return mappings;
|
|
46381
|
-
}
|
|
46382
|
-
function matchesWildcardDomain(domain, entryDomain) {
|
|
46383
|
-
if (!entryDomain.startsWith(WILDCARD_PREFIX)) {
|
|
46384
|
-
return false;
|
|
46385
|
-
}
|
|
46386
|
-
const suffix = entryDomain.slice(WILDCARD_PREFIX.length - 1);
|
|
46387
|
-
return domain.length > suffix.length && domain.endsWith(suffix);
|
|
46388
|
-
}
|
|
46389
|
-
function isBaseDomain(domain) {
|
|
46390
|
-
return !!domain.match(/\._base_domain_$/);
|
|
46391
|
-
}
|
|
46392
|
-
function injectDataIntoProtoPath(protoPath, data) {
|
|
46393
|
-
return protoPath.split("/").map((path) => maybeProtoPathToData(path, data)).join("/");
|
|
46394
|
-
}
|
|
46395
|
-
function maybeProtoPathToData(protoPath, data) {
|
|
46396
|
-
const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];
|
|
46397
|
-
const field = protoRegExpMatch[1];
|
|
46398
|
-
if (field) {
|
|
46399
|
-
const suffix = protoPath.replace(protoRegExpMatch[0], "");
|
|
46400
|
-
return findByPath(data, field, protoPath, suffix);
|
|
46401
|
-
}
|
|
46402
|
-
return protoPath;
|
|
46403
|
-
}
|
|
46404
|
-
function findByPath(obj, path, defaultValue, suffix) {
|
|
46405
|
-
let result2 = obj;
|
|
46406
|
-
for (const field of path.split(".")) {
|
|
46407
|
-
if (!result2) {
|
|
46408
|
-
return defaultValue;
|
|
46409
|
-
}
|
|
46410
|
-
result2 = result2[field];
|
|
46411
|
-
}
|
|
46412
|
-
return `${result2}${suffix}`;
|
|
46413
|
-
}
|
|
46414
|
-
function resolvePathFromMappings(protoPath, mappings) {
|
|
46415
|
-
const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));
|
|
46416
|
-
if (!mapping) {
|
|
46417
|
-
return protoPath;
|
|
46418
|
-
}
|
|
46419
|
-
return mapping.srcPath + protoPath.slice(mapping.destPath.length);
|
|
46420
|
-
}
|
|
46421
|
-
var DOMAINS2, USER_DOMAIN, WILDCARD_PREFIX, REGEX_CAPTURE_DOMAINS2, WIX_API_DOMAINS2, HOST_ALIASES, DEV_WIX_CODE_DOMAIN2, REGEX_CAPTURE_PROTO_FIELD, REGEX_CAPTURE_API_DOMAINS2, REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN2, wwwBaseDomain;
|
|
46422
|
-
var init_rest_modules3 = __esm({
|
|
46423
|
-
"../../node_modules/@wix/sdk-runtime/build/rest-modules.js"() {
|
|
46424
|
-
init_context_v22();
|
|
46425
|
-
DOMAINS2 = ["wix.com", "editorx.com"];
|
|
46426
|
-
USER_DOMAIN = "_";
|
|
46427
|
-
WILDCARD_PREFIX = "*.";
|
|
46428
|
-
REGEX_CAPTURE_DOMAINS2 = new RegExp(`\\.(${DOMAINS2.join("|")})$`);
|
|
46429
|
-
WIX_API_DOMAINS2 = [
|
|
46430
|
-
"42.wixprod.net",
|
|
46431
|
-
"uw2-edt-1.wixprod.net",
|
|
46432
|
-
"virginia-edt.wixprod.net"
|
|
46433
|
-
];
|
|
46434
|
-
HOST_ALIASES = {
|
|
46435
|
-
// payments.base44.com runs customised Business Manager, which needs to work exactly the same as normal BM on manage.wix.com
|
|
46436
|
-
"payments.base44.com": "manage.wix.com",
|
|
46437
|
-
// https://system-kb.wixanswers.com/kb/en/article/editorx-domains-matching-to-wixcom
|
|
46438
|
-
"create.editorx.com": "editor.editorx.com"
|
|
46439
|
-
};
|
|
46440
|
-
DEV_WIX_CODE_DOMAIN2 = "dev.wix-code.com";
|
|
46441
|
-
REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;
|
|
46442
|
-
REGEX_CAPTURE_API_DOMAINS2 = new RegExp(`\\.(${WIX_API_DOMAINS2.join("|")})$`);
|
|
46443
|
-
REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN2 = new RegExp(`.*\\.${DEV_WIX_CODE_DOMAIN2}$`);
|
|
46444
|
-
wwwBaseDomain = "www._base_domain_";
|
|
46445
|
-
}
|
|
46446
|
-
});
|
|
46447
|
-
|
|
46448
46316
|
// ../../node_modules/@wix/sdk-runtime/build/transformations/float.js
|
|
46449
46317
|
function transformSDKFloatToRESTFloat(val) {
|
|
46450
46318
|
return isFinite(val) ? val : val.toString();
|
|
@@ -48572,7 +48440,7 @@ function toFieldLabelMediaSettings(view) {
|
|
|
48572
48440
|
}
|
|
48573
48441
|
|
|
48574
48442
|
// ../../node_modules/@wix/sdk-runtime/build/transformations/address.js
|
|
48575
|
-
|
|
48443
|
+
init_utils4();
|
|
48576
48444
|
function transformSDKAddressToRESTAddress(payload) {
|
|
48577
48445
|
return payload && removeUndefinedKeys({
|
|
48578
48446
|
city: payload.city,
|
|
@@ -61437,14 +61305,18 @@ __export(es_exports, {
|
|
|
61437
61305
|
SubdivisionType: () => SubdivisionType,
|
|
61438
61306
|
getPlace: () => getPlace4
|
|
61439
61307
|
});
|
|
61440
|
-
|
|
61308
|
+
init_transform_error();
|
|
61441
61309
|
init_rename_all_nested_keys();
|
|
61442
|
-
|
|
61310
|
+
init_rest_modules2();
|
|
61443
61311
|
init_float();
|
|
61444
61312
|
init_transform_paths();
|
|
61445
|
-
|
|
61313
|
+
init_rest_modules2();
|
|
61446
61314
|
init_transform_paths();
|
|
61447
|
-
|
|
61315
|
+
init_rest_modules2();
|
|
61316
|
+
var TRANSFORM_PATHS_0 = [
|
|
61317
|
+
{ path: "place.address.geocode.latitude" },
|
|
61318
|
+
{ path: "place.address.geocode.longitude" }
|
|
61319
|
+
];
|
|
61448
61320
|
function resolveComWixpressViAtlasServiceV2PlacesServiceV2Url(opts) {
|
|
61449
61321
|
const domainToMappings = {
|
|
61450
61322
|
"api._api_base_domain_": [
|
|
@@ -61582,10 +61454,7 @@ function getPlace(payload) {
|
|
|
61582
61454
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
61583
61455
|
{
|
|
61584
61456
|
transformFn: transformRESTFloatToSDKFloat,
|
|
61585
|
-
paths:
|
|
61586
|
-
{ path: "place.address.geocode.latitude" },
|
|
61587
|
-
{ path: "place.address.geocode.longitude" }
|
|
61588
|
-
]
|
|
61457
|
+
paths: TRANSFORM_PATHS_0
|
|
61589
61458
|
}
|
|
61590
61459
|
])
|
|
61591
61460
|
};
|
|
@@ -61593,6 +61462,7 @@ function getPlace(payload) {
|
|
|
61593
61462
|
}
|
|
61594
61463
|
return __getPlace;
|
|
61595
61464
|
}
|
|
61465
|
+
var TRANSFORM_PATHS_02 = [{ path: "place.address" }];
|
|
61596
61466
|
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType22) => {
|
|
61597
61467
|
SubdivisionType22["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
61598
61468
|
SubdivisionType22["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
@@ -61618,12 +61488,12 @@ async function getPlace2(searchId, options) {
|
|
|
61618
61488
|
transformPaths(result2.data, [
|
|
61619
61489
|
{
|
|
61620
61490
|
transformFn: transformRESTAddressToSDKAddress,
|
|
61621
|
-
paths:
|
|
61491
|
+
paths: TRANSFORM_PATHS_02
|
|
61622
61492
|
}
|
|
61623
61493
|
])
|
|
61624
61494
|
);
|
|
61625
61495
|
} catch (err) {
|
|
61626
|
-
const transformedError =
|
|
61496
|
+
const transformedError = transformError(
|
|
61627
61497
|
err,
|
|
61628
61498
|
{
|
|
61629
61499
|
spreadPathsToArguments: {},
|
|
@@ -61655,12 +61525,18 @@ __export(es_exports2, {
|
|
|
61655
61525
|
FilterType: () => FilterType,
|
|
61656
61526
|
predict: () => predict4
|
|
61657
61527
|
});
|
|
61658
|
-
|
|
61528
|
+
init_transform_error();
|
|
61659
61529
|
init_rename_all_nested_keys();
|
|
61660
61530
|
init_float();
|
|
61661
61531
|
init_transform_paths();
|
|
61662
|
-
|
|
61663
|
-
|
|
61532
|
+
init_rest_modules2();
|
|
61533
|
+
init_rest_modules2();
|
|
61534
|
+
var TRANSFORM_PATHS_03 = [
|
|
61535
|
+
{ path: "origin.latitude" },
|
|
61536
|
+
{ path: "origin.longitude" },
|
|
61537
|
+
{ path: "location.latitude" },
|
|
61538
|
+
{ path: "location.longitude" }
|
|
61539
|
+
];
|
|
61664
61540
|
function resolveComWixpressViAtlasServiceV2AutocompleteServiceV2Url(opts) {
|
|
61665
61541
|
const domainToMappings = {
|
|
61666
61542
|
"api._api_base_domain_": [
|
|
@@ -61784,12 +61660,7 @@ function predict(payload) {
|
|
|
61784
61660
|
const serializedData = transformPaths(payload, [
|
|
61785
61661
|
{
|
|
61786
61662
|
transformFn: transformSDKFloatToRESTFloat,
|
|
61787
|
-
paths:
|
|
61788
|
-
{ path: "origin.latitude" },
|
|
61789
|
-
{ path: "origin.longitude" },
|
|
61790
|
-
{ path: "location.latitude" },
|
|
61791
|
-
{ path: "location.longitude" }
|
|
61792
|
-
]
|
|
61663
|
+
paths: TRANSFORM_PATHS_03
|
|
61793
61664
|
}
|
|
61794
61665
|
]);
|
|
61795
61666
|
const metadata = {
|
|
@@ -61833,7 +61704,7 @@ async function predict2(input, options) {
|
|
|
61833
61704
|
sideEffects?.onSuccess?.(result2);
|
|
61834
61705
|
return renameKeysFromRESTResponseToSDKResponse(result2.data);
|
|
61835
61706
|
} catch (err) {
|
|
61836
|
-
const transformedError =
|
|
61707
|
+
const transformedError = transformError(
|
|
61837
61708
|
err,
|
|
61838
61709
|
{
|
|
61839
61710
|
spreadPathsToArguments: {},
|
|
@@ -61871,14 +61742,18 @@ __export(es_exports3, {
|
|
|
61871
61742
|
SubdivisionType: () => SubdivisionType2,
|
|
61872
61743
|
search: () => search4
|
|
61873
61744
|
});
|
|
61874
|
-
|
|
61745
|
+
init_transform_error();
|
|
61875
61746
|
init_rename_all_nested_keys();
|
|
61876
|
-
|
|
61747
|
+
init_rest_modules2();
|
|
61877
61748
|
init_float();
|
|
61878
61749
|
init_transform_paths();
|
|
61879
|
-
|
|
61750
|
+
init_rest_modules2();
|
|
61880
61751
|
init_transform_paths();
|
|
61881
|
-
|
|
61752
|
+
init_rest_modules2();
|
|
61753
|
+
var TRANSFORM_PATHS_04 = [
|
|
61754
|
+
{ path: "searchResults.address.geocode.latitude" },
|
|
61755
|
+
{ path: "searchResults.address.geocode.longitude" }
|
|
61756
|
+
];
|
|
61882
61757
|
function resolveComWixpressViAtlasServiceV2LocationServiceV2Url(opts) {
|
|
61883
61758
|
const domainToMappings = {
|
|
61884
61759
|
"api._api_base_domain_": [
|
|
@@ -62016,10 +61891,7 @@ function search(payload) {
|
|
|
62016
61891
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
62017
61892
|
{
|
|
62018
61893
|
transformFn: transformRESTFloatToSDKFloat,
|
|
62019
|
-
paths:
|
|
62020
|
-
{ path: "searchResults.address.geocode.latitude" },
|
|
62021
|
-
{ path: "searchResults.address.geocode.longitude" }
|
|
62022
|
-
]
|
|
61894
|
+
paths: TRANSFORM_PATHS_04
|
|
62023
61895
|
}
|
|
62024
61896
|
]),
|
|
62025
61897
|
fallback: [
|
|
@@ -62038,6 +61910,7 @@ function search(payload) {
|
|
|
62038
61910
|
}
|
|
62039
61911
|
return __search;
|
|
62040
61912
|
}
|
|
61913
|
+
var TRANSFORM_PATHS_022 = [{ path: "searchResults.address" }];
|
|
62041
61914
|
var SubdivisionType2 = /* @__PURE__ */ ((SubdivisionType22) => {
|
|
62042
61915
|
SubdivisionType22["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
62043
61916
|
SubdivisionType22["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
@@ -62077,12 +61950,12 @@ async function search2(options) {
|
|
|
62077
61950
|
transformPaths(result2.data, [
|
|
62078
61951
|
{
|
|
62079
61952
|
transformFn: transformRESTAddressToSDKAddress,
|
|
62080
|
-
paths:
|
|
61953
|
+
paths: TRANSFORM_PATHS_022
|
|
62081
61954
|
}
|
|
62082
61955
|
])
|
|
62083
61956
|
);
|
|
62084
61957
|
} catch (err) {
|
|
62085
|
-
const transformedError =
|
|
61958
|
+
const transformedError = transformError(
|
|
62086
61959
|
err,
|
|
62087
61960
|
{
|
|
62088
61961
|
spreadPathsToArguments: {},
|