@wix/form-public 0.476.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 CHANGED
@@ -15733,7 +15733,7 @@ var init_plugin_names = __esm({
15733
15733
  var RICOS_VERSION;
15734
15734
  var init_version = __esm({
15735
15735
  "../../node_modules/@wix/ricos/dist/es/ricos-schema/next-schema/version.js"() {
15736
- RICOS_VERSION = "11.17.0";
15736
+ RICOS_VERSION = "11.18.0";
15737
15737
  }
15738
15738
  });
15739
15739
 
@@ -16301,55 +16301,6 @@ var require_classnames = __commonJS({
16301
16301
  }
16302
16302
  });
16303
16303
 
16304
- // ../../node_modules/@wix/ricos/dist/es/_shared/deep-merge.js
16305
- function deepMerge(target, ...sources) {
16306
- for (const source of sources) {
16307
- if (isMergeable(source)) {
16308
- mergeInto(target, source);
16309
- }
16310
- }
16311
- return target;
16312
- }
16313
- var UNSAFE_KEYS, isMergeable, mergeInto;
16314
- var init_deep_merge = __esm({
16315
- "../../node_modules/@wix/ricos/dist/es/_shared/deep-merge.js"() {
16316
- UNSAFE_KEYS = ["__proto__", "constructor", "prototype"];
16317
- isMergeable = (value) => {
16318
- if (Array.isArray(value)) {
16319
- return true;
16320
- }
16321
- if (typeof value !== "object" || value === null) {
16322
- return false;
16323
- }
16324
- const proto = Object.getPrototypeOf(value);
16325
- return proto === Object.prototype || proto === null;
16326
- };
16327
- mergeInto = (target, source) => {
16328
- for (const key of Object.keys(source)) {
16329
- if (UNSAFE_KEYS.includes(key)) {
16330
- continue;
16331
- }
16332
- const sourceValue = source[key];
16333
- if (sourceValue === void 0) {
16334
- continue;
16335
- }
16336
- const targetValue = target[key];
16337
- if (isMergeable(sourceValue)) {
16338
- if (isMergeable(targetValue) && Array.isArray(targetValue) === Array.isArray(sourceValue)) {
16339
- mergeInto(targetValue, sourceValue);
16340
- } else {
16341
- const fresh = Array.isArray(sourceValue) ? [] : {};
16342
- mergeInto(fresh, sourceValue);
16343
- target[key] = fresh;
16344
- }
16345
- } else {
16346
- target[key] = sourceValue;
16347
- }
16348
- }
16349
- };
16350
- }
16351
- });
16352
-
16353
16304
  // ../../node_modules/fp-ts-esm/es6/function.js
16354
16305
  function identity(a2) {
16355
16306
  return a2;
@@ -18589,6 +18540,83 @@ var init_is_empty = __esm({
18589
18540
  }
18590
18541
  });
18591
18542
 
18543
+ // ../../node_modules/@wix/ricos/dist/es/theme-utils/color-utils.js
18544
+ var SHADES_RATIOS, HEX_COLOR_RE, parseHexToRgb, rgbToHexString, clampChannel, mixChannels, mixHexColors, hexToRgba, getOpacityFromHex2, getHexColorFromAlpha2;
18545
+ var init_color_utils2 = __esm({
18546
+ "../../node_modules/@wix/ricos/dist/es/theme-utils/color-utils.js"() {
18547
+ init_theme_color_token();
18548
+ SHADES_RATIOS = { shade1: 0.1, shade2: 0.3, shade3: 0.5 };
18549
+ HEX_COLOR_RE = /^#?([0-9a-fA-F]{6})$/;
18550
+ parseHexToRgb = (hex) => {
18551
+ const match4 = hex.match(HEX_COLOR_RE);
18552
+ if (!match4) {
18553
+ return { r: 0, g: 0, b: 0 };
18554
+ }
18555
+ const h2 = match4[1];
18556
+ return {
18557
+ r: parseInt(h2.substring(0, 2), 16),
18558
+ g: parseInt(h2.substring(2, 4), 16),
18559
+ b: parseInt(h2.substring(4, 6), 16)
18560
+ };
18561
+ };
18562
+ rgbToHexString = ({ r: r3, g, b }) => {
18563
+ const toHex = (v) => Math.round(v).toString(16).padStart(2, "0");
18564
+ return `#${toHex(r3)}${toHex(g)}${toHex(b)}`;
18565
+ };
18566
+ clampChannel = (v) => Math.round(Math.min(255, Math.max(0, v)));
18567
+ mixChannels = (dark, light, darkRatio) => ({
18568
+ r: clampChannel(darkRatio * dark.r + (1 - darkRatio) * light.r),
18569
+ g: clampChannel(darkRatio * dark.g + (1 - darkRatio) * light.g),
18570
+ b: clampChannel(darkRatio * dark.b + (1 - darkRatio) * light.b)
18571
+ });
18572
+ mixHexColors = (lightHex, darkHex, darkRatio) => rgbToHexString(mixChannels(parseHexToRgb(darkHex), parseHexToRgb(lightHex), darkRatio));
18573
+ hexToRgba = (alphaHex, opacity) => {
18574
+ if (!alphaHex) {
18575
+ return "";
18576
+ }
18577
+ if (isThemeColorToken(alphaHex)) {
18578
+ const effectiveOpacity = opacity ?? getThemeColorTokenOpacity(alphaHex);
18579
+ if (effectiveOpacity < 100) {
18580
+ const tupleVar = themeColorTokenToCssVar(alphaHex, "rgbTuple");
18581
+ return `rgba(${tupleVar}, ${effectiveOpacity / 100})`;
18582
+ }
18583
+ return themeColorTokenToCssVar(alphaHex);
18584
+ }
18585
+ const opacityPercentage = opacity ?? getOpacityFromHex2(alphaHex);
18586
+ let hexColor = getHexColorFromAlpha2(alphaHex)?.replace(/^#/, "") ?? "";
18587
+ if (hexColor.length === 3) {
18588
+ hexColor = hexColor.split("").map((char) => char + char).join("");
18589
+ }
18590
+ const bigint = parseInt(hexColor, 16);
18591
+ const r3 = bigint >> 16 & 255;
18592
+ const g = bigint >> 8 & 255;
18593
+ const b = bigint & 255;
18594
+ return `rgba(${r3}, ${g}, ${b}${opacityPercentage !== void 0 ? `, ${opacityPercentage / 100}` : ""})`;
18595
+ };
18596
+ getOpacityFromHex2 = (hexColorWithAlpha) => {
18597
+ if (isThemeColorToken(hexColorWithAlpha)) {
18598
+ return getThemeColorTokenOpacity(hexColorWithAlpha);
18599
+ }
18600
+ if (!hexColorWithAlpha || hexColorWithAlpha.length === 7) {
18601
+ return 100;
18602
+ }
18603
+ const hex = hexColorWithAlpha.replace("#", "");
18604
+ const alphaHex = hex.slice(6, 8);
18605
+ const alphaDecimal = parseInt(alphaHex, 16);
18606
+ return Math.round(alphaDecimal / 255 * 100);
18607
+ };
18608
+ getHexColorFromAlpha2 = (hexColorWithAlpha) => {
18609
+ if (isThemeColorToken(hexColorWithAlpha)) {
18610
+ return stripThemeColorTokenOpacity(hexColorWithAlpha);
18611
+ }
18612
+ if (!hexColorWithAlpha || hexColorWithAlpha.length === 7) {
18613
+ return hexColorWithAlpha;
18614
+ }
18615
+ return hexColorWithAlpha.slice(0, 7);
18616
+ };
18617
+ }
18618
+ });
18619
+
18592
18620
  // ../../node_modules/@wix/ricos/dist/es/ricos-styles/theme-constants.js
18593
18621
  var ACTION_COLOR_DEFAULT, TEXT_COLOR_DEFAULT, BG_COLOR_DEFAULT, FALLBACK_COLOR_DEFAULT, FALLBACK_COLOR_BRIGHT_DEFAULT, HEADING_FONT_SIZES, PARAGRAPH_FONT_SIZE;
18594
18622
  var init_theme_constants = __esm({
@@ -18969,36 +18997,25 @@ function createThemeColorVars(colorPalette) {
18969
18997
  }
18970
18998
  return vars;
18971
18999
  }
18972
- function createThemeColorVarsFromLegacyPalette(colors) {
18973
- const LEGACY_SLOT_MAP = [
18974
- ["1", colors.bgColor],
18975
- ["2", colors.textColor],
18976
- ["3", colors.actionColor],
18977
- ["7", colors.textColorLow],
18978
- ["8", colors.disabledColor],
18979
- ["9", colors.fallbackColor]
18980
- ];
18981
- const vars = {};
18982
- for (const [slot, value] of LEGACY_SLOT_MAP) {
18983
- if (!value || !canTransformToHex(value)) {
18984
- continue;
18985
- }
18986
- const hex = toHexFormat(value);
18987
- vars[`theme-color-${slot}`] = hex;
18988
- vars[`theme-color-${slot}-tuple`] = toRgbTuple(hex);
18989
- }
18990
- return vars;
18991
- }
18992
- var RGB_VAR_COLOR_RE, RGBA_VAR_COLOR_RE, isNewRicosPalette, mapRicosPaletteToLegacyPalette, colorToCss, toTupleValue, createCssVars, extractColors;
19000
+ 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;
18993
19001
  var init_palette = __esm({
18994
19002
  "../../node_modules/@wix/ricos/dist/es/ricos-styles/themeStrategy/generators/palette.js"() {
18995
19003
  init_theme_color_token();
19004
+ init_color_utils2();
18996
19005
  init_theme_constants();
18997
19006
  init_palettes();
18998
19007
  init_theme_utils();
18999
19008
  init_identifiers();
19000
19009
  RGB_VAR_COLOR_RE = /^rgb\(\s*(var\(--[^)]+\))\s*\)$/i;
19001
19010
  RGBA_VAR_COLOR_RE = /^rgba\(\s*(var\(--[^)]+\))\s*,\s*[^)]+\)$/i;
19011
+ OPAQUE_HEX_COLOR_RE = /^#[0-9a-f]{6}$/i;
19012
+ ACCENT_TINT_RATIO = 0.2;
19013
+ DERIVED_COLOR_TEXT_RATIOS = {
19014
+ accent2: ACCENT_TINT_RATIO,
19015
+ accent3: SHADES_RATIOS.shade3,
19016
+ accent4: SHADES_RATIOS.shade2,
19017
+ ...SHADES_RATIOS
19018
+ };
19002
19019
  isNewRicosPalette = (palette) => !!palette && typeof palette === "object" && !Array.isArray(palette) && "format" in palette;
19003
19020
  mapRicosPaletteToLegacyPalette = (palette) => {
19004
19021
  const mapped = {
@@ -19011,6 +19028,15 @@ var init_palette = __esm({
19011
19028
  };
19012
19029
  return palette.format === "rgbTuple" ? { ...mapped, type: "rgb" } : mapped;
19013
19030
  };
19031
+ mapLegacyPaletteToRicosPalette = (colors) => ({
19032
+ format: isRicosPaletteRgb(colors) ? "rgbTuple" : "color",
19033
+ bgColor: colors.bgColor,
19034
+ textColor: colors.textColor,
19035
+ accent1: colors.actionColor,
19036
+ shade1: colors.textColorLow,
19037
+ shade2: colors.disabledColor,
19038
+ shade3: colors.fallbackColor
19039
+ });
19014
19040
  colorToCss = (color, format) => {
19015
19041
  if (!color) {
19016
19042
  return void 0;
@@ -19037,6 +19063,40 @@ var init_palette = __esm({
19037
19063
  }
19038
19064
  return void 0;
19039
19065
  };
19066
+ toOpaqueHex = (color) => {
19067
+ const hex = canTransformToHex(color) ? toHexFormat(color) : void 0;
19068
+ return hex && OPAQUE_HEX_COLOR_RE.test(hex) ? hex : void 0;
19069
+ };
19070
+ mixTextIntoBackground = (textColor, bgColor, textRatio) => {
19071
+ const textHex = toOpaqueHex(textColor);
19072
+ const bgHex = toOpaqueHex(bgColor);
19073
+ return textHex && bgHex ? mixHexColors(bgHex, textHex, textRatio) : `color-mix(in srgb, ${textColor} ${Math.round(textRatio * 100)}%, ${bgColor})`;
19074
+ };
19075
+ completeColorPalette = (palette) => {
19076
+ const css = (color) => colorToCss(color, palette.format);
19077
+ const textColor = css(palette.textColor);
19078
+ const bgColor = css(palette.bgColor);
19079
+ const deriveColor = (field) => css(palette[field]) ?? (textColor ? mixTextIntoBackground(textColor, bgColor ?? "transparent", DERIVED_COLOR_TEXT_RATIOS[field]) : void 0);
19080
+ return {
19081
+ format: "color",
19082
+ bgColor,
19083
+ textColor,
19084
+ accent1: css(palette.accent1),
19085
+ accent2: deriveColor("accent2"),
19086
+ accent3: deriveColor("accent3"),
19087
+ accent4: deriveColor("accent4"),
19088
+ shade1: deriveColor("shade1"),
19089
+ shade2: deriveColor("shade2"),
19090
+ shade3: deriveColor("shade3"),
19091
+ settingsActionColor: css(palette.settingsActionColor)
19092
+ };
19093
+ };
19094
+ getThemeColorPalette = ({
19095
+ colorPalette,
19096
+ palette
19097
+ }) => completeColorPalette(
19098
+ colorPalette ?? mapLegacyPaletteToRicosPalette(createPalette(palette).colors ?? {})
19099
+ );
19040
19100
  createCssVars = (colors, config) => {
19041
19101
  const { contentBgColor = false, focusActionColor, settingsActionColor } = config || {};
19042
19102
  const isPaletteRgb = isRicosPaletteRgb(colors);
@@ -19280,6 +19340,55 @@ var init_text_style_transformer = __esm({
19280
19340
  }
19281
19341
  });
19282
19342
 
19343
+ // ../../node_modules/@wix/ricos/dist/es/_shared/deep-merge.js
19344
+ function deepMerge(target, ...sources) {
19345
+ for (const source of sources) {
19346
+ if (isMergeable(source)) {
19347
+ mergeInto(target, source);
19348
+ }
19349
+ }
19350
+ return target;
19351
+ }
19352
+ var UNSAFE_KEYS, isMergeable, mergeInto;
19353
+ var init_deep_merge = __esm({
19354
+ "../../node_modules/@wix/ricos/dist/es/_shared/deep-merge.js"() {
19355
+ UNSAFE_KEYS = ["__proto__", "constructor", "prototype"];
19356
+ isMergeable = (value) => {
19357
+ if (Array.isArray(value)) {
19358
+ return true;
19359
+ }
19360
+ if (typeof value !== "object" || value === null) {
19361
+ return false;
19362
+ }
19363
+ const proto = Object.getPrototypeOf(value);
19364
+ return proto === Object.prototype || proto === null;
19365
+ };
19366
+ mergeInto = (target, source) => {
19367
+ for (const key of Object.keys(source)) {
19368
+ if (UNSAFE_KEYS.includes(key)) {
19369
+ continue;
19370
+ }
19371
+ const sourceValue = source[key];
19372
+ if (sourceValue === void 0) {
19373
+ continue;
19374
+ }
19375
+ const targetValue = target[key];
19376
+ if (isMergeable(sourceValue)) {
19377
+ if (isMergeable(targetValue) && Array.isArray(targetValue) === Array.isArray(sourceValue)) {
19378
+ mergeInto(targetValue, sourceValue);
19379
+ } else {
19380
+ const fresh = Array.isArray(sourceValue) ? [] : {};
19381
+ mergeInto(fresh, sourceValue);
19382
+ target[key] = fresh;
19383
+ }
19384
+ } else {
19385
+ target[key] = sourceValue;
19386
+ }
19387
+ }
19388
+ };
19389
+ }
19390
+ });
19391
+
19283
19392
  // ../../node_modules/@wix/ricos/dist/es/ricos-styles/themeStrategy/generators/custom-styles.js
19284
19393
  function fixLineHeight(obj) {
19285
19394
  return {
@@ -19328,6 +19437,65 @@ var init_custom_styles2 = __esm({
19328
19437
  }
19329
19438
  });
19330
19439
 
19440
+ // ../../node_modules/@wix/ricos/dist/es/ricos-styles/font-mode.js
19441
+ var FONT_LONGHANDS, FONT_MODE_ELEMENTS, getTextualStyle, hasFontShorthand, getFontModeElements, omitFontLonghands, applyFontMode, buildFontModeAttributes;
19442
+ var init_font_mode = __esm({
19443
+ "../../node_modules/@wix/ricos/dist/es/ricos-styles/font-mode.js"() {
19444
+ init_text_style_transformer();
19445
+ init_custom_styles2();
19446
+ init_theme_utils();
19447
+ FONT_LONGHANDS = ["fontStyle", "fontWeight", "fontSize", "lineHeight"];
19448
+ FONT_MODE_ELEMENTS = [
19449
+ "h1",
19450
+ "h2",
19451
+ "h3",
19452
+ "h4",
19453
+ "h5",
19454
+ "h6",
19455
+ "p",
19456
+ "quote",
19457
+ "link",
19458
+ "hashtag"
19459
+ ];
19460
+ getTextualStyle = (customStyles, element) => customStyles?.[element];
19461
+ hasFontShorthand = (style) => style?.font !== void 0;
19462
+ getFontModeElements = (customStyles) => FONT_MODE_ELEMENTS.filter((element) => hasFontShorthand(getTextualStyle(customStyles, element)));
19463
+ omitFontLonghands = (style) => Object.fromEntries(
19464
+ Object.entries(style).filter(([key]) => !FONT_LONGHANDS.includes(key))
19465
+ );
19466
+ applyFontMode = (theme) => {
19467
+ const fontModeElements = getFontModeElements(theme.customStyles);
19468
+ if (fontModeElements.length === 0) {
19469
+ return theme;
19470
+ }
19471
+ const customStyles = { ...theme.customStyles };
19472
+ fontModeElements.forEach((element) => {
19473
+ customStyles[element] = omitFontLonghands(customStyles[element] ?? {});
19474
+ });
19475
+ return { ...theme, customStyles };
19476
+ };
19477
+ buildFontModeAttributes = (theme, documentStyle) => {
19478
+ const fontModeElements = getFontModeElements(theme.customStyles);
19479
+ if (fontModeElements.length === 0) {
19480
+ return {};
19481
+ }
19482
+ const documentStyleCustomStyles = fixLineHeight(
19483
+ TextStyleTransformer.fromDocumentStyle(documentStyle).toTheme().customStyles ?? {}
19484
+ );
19485
+ const overrides = fontModeElements.flatMap((element) => {
19486
+ const elementDocumentStyle = getTextualStyle(documentStyleCustomStyles, element);
19487
+ return FONT_LONGHANDS.filter((longhand) => elementDocumentStyle?.[longhand] !== void 0).map(
19488
+ (longhand) => `${element}-${toDashedKey(longhand)}`
19489
+ );
19490
+ });
19491
+ const nativeTextFont = fontModeElements.includes("p") && theme.nativeStyle?.text?.fontFamily ? ["native-text-font"] : [];
19492
+ return {
19493
+ "data-ricos-font": [...fontModeElements, ...overrides, ...nativeTextFont].join(" ")
19494
+ };
19495
+ };
19496
+ }
19497
+ });
19498
+
19331
19499
  // ../../node_modules/@wix/ricos/dist/es/ricos-styles/themeStrategy/generators/typography.js
19332
19500
  function createTypography(typography) {
19333
19501
  if (!typography) {
@@ -19368,8 +19536,9 @@ var init_build_theme_css_vars = __esm({
19368
19536
  const { palette, colorPalette, paletteConfig, typography, customStyles, nativeStyle } = mergedTheme;
19369
19537
  const paletteResult = colorPalette ? createColorPalette(colorPalette, paletteConfig) : createPalette(palette, paletteConfig);
19370
19538
  const { paletteVarsObject } = paletteResult;
19539
+ const themeColorPalette = getThemeColorPalette(mergedTheme);
19371
19540
  const typographyVarsObject = createTypography(typography);
19372
- const paletteCustomStyles = colorPalette ? mapColorPaletteToCustomStyles(colorPalette) : {};
19541
+ const paletteCustomStyles = colorPalette ? mapColorPaletteToCustomStyles(themeColorPalette) : {};
19373
19542
  const mergedCustomStyles = deepMerge({}, paletteCustomStyles, customStyles);
19374
19543
  const customsVarsObject = createCustomStyles({
19375
19544
  customStyles: mergedCustomStyles,
@@ -19381,7 +19550,7 @@ var init_build_theme_css_vars = __esm({
19381
19550
  "breakout-full-width-padding-start": theme?.breakout?.fullWidthPadding?.start ?? "0",
19382
19551
  "breakout-full-width-padding-end": theme?.breakout?.fullWidthPadding?.end ?? "0"
19383
19552
  };
19384
- const themeColorVars = colorPalette ? createThemeColorVars(colorPalette) : paletteResult.colors ? createThemeColorVarsFromLegacyPalette(paletteResult.colors) : {};
19553
+ const themeColorVars = createThemeColorVars(themeColorPalette);
19385
19554
  const varsObj = {
19386
19555
  ...paletteVarsObject,
19387
19556
  ...themeColorVars,
@@ -19451,6 +19620,7 @@ var resolveTheme, wixPreset, wixPriorityOverrides, liveSitePreset, nativePreset,
19451
19620
  var init_resolve_theme = __esm({
19452
19621
  "../../node_modules/@wix/ricos/dist/es/ricos-styles/resolve-theme.js"() {
19453
19622
  init_deep_merge();
19623
+ init_font_mode();
19454
19624
  init_theme_constants();
19455
19625
  resolveTheme = ({
19456
19626
  theme = {},
@@ -19461,12 +19631,8 @@ var init_resolve_theme = __esm({
19461
19631
  const isWix = useWixStyles || environment === "businessManager" || environment === "wixel";
19462
19632
  const envPreset = useNativeStyles ? nativePreset : isWix ? wixPreset : liveSitePreset;
19463
19633
  const baseDefaults = isMobile2 ? THEME_DEFAULTS.mobile : THEME_DEFAULTS.desktop;
19464
- return deepMerge(
19465
- {},
19466
- baseDefaults,
19467
- envPreset,
19468
- userTheme,
19469
- isWix ? wixPriorityOverrides : {}
19634
+ return applyFontMode(
19635
+ deepMerge({}, baseDefaults, envPreset, userTheme, isWix ? wixPriorityOverrides : {})
19470
19636
  );
19471
19637
  };
19472
19638
  wixPreset = {
@@ -19691,6 +19857,7 @@ var init_z_index_service = __esm({
19691
19857
  var init_ricos_styles = __esm({
19692
19858
  "../../node_modules/@wix/ricos/dist/es/ricos-styles/index.js"() {
19693
19859
  init_build_theme_css_vars();
19860
+ init_font_mode();
19694
19861
  init_z_index_service();
19695
19862
  }
19696
19863
  });
@@ -22022,6 +22189,22 @@ var init_ricos_types = __esm({
22022
22189
  init_plugin_types();
22023
22190
  }
22024
22191
  });
22192
+
22193
+ // ../../node_modules/@wix/ricos/dist/es/_shared/is-ssr.js
22194
+ var isSSR2;
22195
+ var init_is_ssr = __esm({
22196
+ "../../node_modules/@wix/ricos/dist/es/_shared/is-ssr.js"() {
22197
+ isSSR2 = () => typeof window === "undefined";
22198
+ }
22199
+ });
22200
+ var useIsomorphicLayoutEffect;
22201
+ var init_use_isomorphic_layout_effect = __esm({
22202
+ "../../node_modules/@wix/ricos/dist/es/_shared/use-isomorphic-layout-effect.js"() {
22203
+ init_is_ssr();
22204
+ useIsomorphicLayoutEffect = isSSR2() ? () => {
22205
+ } : React171.useLayoutEffect;
22206
+ }
22207
+ });
22025
22208
  function createContext3(defaultValue) {
22026
22209
  const context = React171.createContext({
22027
22210
  [CONTEXT_VALUE]: {
@@ -22040,13 +22223,12 @@ function createContext3(defaultValue) {
22040
22223
  delete context.Consumer;
22041
22224
  return context;
22042
22225
  }
22043
- var CONTEXT_VALUE, ORIGINAL_PROVIDER, isSSR2, useIsomorphicLayoutEffect, runWithNormalPriority, createProvider;
22226
+ var CONTEXT_VALUE, ORIGINAL_PROVIDER, runWithNormalPriority, createProvider;
22044
22227
  var init_use_context_selector = __esm({
22045
22228
  "../../node_modules/@wix/ricos/dist/es/_shared/use-context-selector.js"() {
22229
+ init_use_isomorphic_layout_effect();
22046
22230
  CONTEXT_VALUE = /* @__PURE__ */ Symbol();
22047
22231
  ORIGINAL_PROVIDER = /* @__PURE__ */ Symbol();
22048
- isSSR2 = typeof window === "undefined";
22049
- useIsomorphicLayoutEffect = isSSR2 ? React171.useEffect : React171.useLayoutEffect;
22050
22232
  runWithNormalPriority = (thunk) => thunk();
22051
22233
  createProvider = (ProviderOrig) => ({ value, children, onSelectorContextValue }) => {
22052
22234
  const valueRef = React171.useRef(value);
@@ -22349,58 +22531,6 @@ var init_resolve_css_color = __esm({
22349
22531
  }
22350
22532
  });
22351
22533
 
22352
- // ../../node_modules/@wix/ricos/dist/es/theme-utils/color-utils.js
22353
- var hexToRgba, getOpacityFromHex2, getHexColorFromAlpha2;
22354
- var init_color_utils2 = __esm({
22355
- "../../node_modules/@wix/ricos/dist/es/theme-utils/color-utils.js"() {
22356
- init_theme_color_token();
22357
- hexToRgba = (alphaHex, opacity) => {
22358
- if (!alphaHex) {
22359
- return "";
22360
- }
22361
- if (isThemeColorToken(alphaHex)) {
22362
- const effectiveOpacity = opacity ?? getThemeColorTokenOpacity(alphaHex);
22363
- if (effectiveOpacity < 100) {
22364
- const tupleVar = themeColorTokenToCssVar(alphaHex, "rgbTuple");
22365
- return `rgba(${tupleVar}, ${effectiveOpacity / 100})`;
22366
- }
22367
- return themeColorTokenToCssVar(alphaHex);
22368
- }
22369
- const opacityPercentage = opacity ?? getOpacityFromHex2(alphaHex);
22370
- let hexColor = getHexColorFromAlpha2(alphaHex)?.replace(/^#/, "") ?? "";
22371
- if (hexColor.length === 3) {
22372
- hexColor = hexColor.split("").map((char) => char + char).join("");
22373
- }
22374
- const bigint = parseInt(hexColor, 16);
22375
- const r3 = bigint >> 16 & 255;
22376
- const g = bigint >> 8 & 255;
22377
- const b = bigint & 255;
22378
- return `rgba(${r3}, ${g}, ${b}${opacityPercentage !== void 0 ? `, ${opacityPercentage / 100}` : ""})`;
22379
- };
22380
- getOpacityFromHex2 = (hexColorWithAlpha) => {
22381
- if (isThemeColorToken(hexColorWithAlpha)) {
22382
- return getThemeColorTokenOpacity(hexColorWithAlpha);
22383
- }
22384
- if (!hexColorWithAlpha || hexColorWithAlpha.length === 7) {
22385
- return 100;
22386
- }
22387
- const hex = hexColorWithAlpha.replace("#", "");
22388
- const alphaHex = hex.slice(6, 8);
22389
- const alphaDecimal = parseInt(alphaHex, 16);
22390
- return Math.round(alphaDecimal / 255 * 100);
22391
- };
22392
- getHexColorFromAlpha2 = (hexColorWithAlpha) => {
22393
- if (isThemeColorToken(hexColorWithAlpha)) {
22394
- return stripThemeColorTokenOpacity(hexColorWithAlpha);
22395
- }
22396
- if (!hexColorWithAlpha || hexColorWithAlpha.length === 7) {
22397
- return hexColorWithAlpha;
22398
- }
22399
- return hexColorWithAlpha.slice(0, 7);
22400
- };
22401
- }
22402
- });
22403
-
22404
22534
  // ../../node_modules/@wix/ricos/dist/es/_shared/schema-gradient-to-css.js
22405
22535
  var resolveStopColor, formatStop, formatStops, schemaGradientToCss;
22406
22536
  var init_schema_gradient_to_css = __esm({
@@ -22457,14 +22587,6 @@ var init_log_invariant = __esm({
22457
22587
  }
22458
22588
  });
22459
22589
 
22460
- // ../../node_modules/@wix/ricos/dist/es/_shared/is-ssr.js
22461
- var isSSR3;
22462
- var init_is_ssr = __esm({
22463
- "../../node_modules/@wix/ricos/dist/es/_shared/is-ssr.js"() {
22464
- isSSR3 = () => typeof window === "undefined";
22465
- }
22466
- });
22467
-
22468
22590
  // ../../node_modules/@wix/ricos/dist/es/_shared/request-service-provider/parse-instance.js
22469
22591
  function base64UrlToBase64(str) {
22470
22592
  return str.replace(/-/g, "+").replace(/_/g, "/");
@@ -22485,7 +22607,7 @@ function parseInstance(instance) {
22485
22607
  }
22486
22608
  try {
22487
22609
  const data = splitInstance(instance);
22488
- const bit64Data = isSSR3() ? (
22610
+ const bit64Data = isSSR2() ? (
22489
22611
  // Accessing 'Buffer' via 'global' prevents webpack polyfilling it for web environment
22490
22612
  global.Buffer.from(data, "base64").toString("utf8")
22491
22613
  ) : atob(data);
@@ -22538,7 +22660,7 @@ var init_browser = __esm({
22538
22660
  }
22539
22661
  });
22540
22662
 
22541
- // ../../node_modules/@wix/sdk/node_modules/@wix/sdk-types/build/browser/index.mjs
22663
+ // ../../node_modules/@wix/sdk-types/build/browser/index.mjs
22542
22664
  function EventDefinition(type, isDomainEvent = false, transformations = (x) => x) {
22543
22665
  return () => ({
22544
22666
  __type: "event-definition",
@@ -22549,7 +22671,7 @@ function EventDefinition(type, isDomainEvent = false, transformations = (x) => x
22549
22671
  }
22550
22672
  var SERVICE_PLUGIN_ERROR_TYPE, SORT_DIRECTIONS;
22551
22673
  var init_browser2 = __esm({
22552
- "../../node_modules/@wix/sdk/node_modules/@wix/sdk-types/build/browser/index.mjs"() {
22674
+ "../../node_modules/@wix/sdk-types/build/browser/index.mjs"() {
22553
22675
  SERVICE_PLUGIN_ERROR_TYPE = "wix_spi_error";
22554
22676
  SORT_DIRECTIONS = {
22555
22677
  ASC: "ASC",
@@ -22735,13 +22857,77 @@ var init_biHeaderGenerator = __esm({
22735
22857
  }
22736
22858
  });
22737
22859
 
22738
- // ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/context-v2.js
22860
+ // ../../node_modules/@wix/sdk-runtime/build/context-v2.js
22861
+ function contextualizeRESTModuleV2(restModule, elevated) {
22862
+ return ((...args) => {
22863
+ const context = resolveContext();
22864
+ if (!context) {
22865
+ return restModule.apply(void 0, args);
22866
+ }
22867
+ return context.initWixModules(restModule, elevated).apply(void 0, args);
22868
+ });
22869
+ }
22739
22870
  var init_context_v2 = __esm({
22740
- "../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/context-v2.js"() {
22871
+ "../../node_modules/@wix/sdk-runtime/build/context-v2.js"() {
22872
+ init_context();
22741
22873
  }
22742
22874
  });
22743
22875
 
22744
- // ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/context.js
22876
+ // ../../node_modules/@wix/sdk-runtime/build/context.js
22877
+ function resolveContext() {
22878
+ const oldContext = typeof $wixContext !== "undefined" && $wixContext.initWixModules ? $wixContext.initWixModules : typeof globalThis.__wix_context__ !== "undefined" && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
22879
+ if (oldContext) {
22880
+ return {
22881
+ // @ts-expect-error
22882
+ initWixModules(modules, elevated) {
22883
+ return runWithoutContext(() => oldContext(modules, elevated));
22884
+ },
22885
+ fetchWithAuth() {
22886
+ throw new Error("fetchWithAuth is not available in this context");
22887
+ },
22888
+ graphql() {
22889
+ throw new Error("graphql is not available in this context");
22890
+ }
22891
+ };
22892
+ }
22893
+ const contextualClient = typeof $wixContext !== "undefined" ? $wixContext.client : typeof wixContext.client !== "undefined" ? wixContext.client : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.client : void 0;
22894
+ const elevatedClient = typeof $wixContext !== "undefined" ? $wixContext.elevatedClient : typeof wixContext.elevatedClient !== "undefined" ? wixContext.elevatedClient : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.elevatedClient : void 0;
22895
+ if (!contextualClient && !elevatedClient) {
22896
+ return;
22897
+ }
22898
+ return {
22899
+ initWixModules(wixModules, elevated) {
22900
+ if (elevated) {
22901
+ if (!elevatedClient) {
22902
+ 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");
22903
+ }
22904
+ return runWithoutContext(() => elevatedClient.use(wixModules));
22905
+ }
22906
+ if (!contextualClient) {
22907
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22908
+ }
22909
+ return runWithoutContext(() => contextualClient.use(wixModules));
22910
+ },
22911
+ fetchWithAuth: (urlOrRequest, requestInit) => {
22912
+ if (!contextualClient) {
22913
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22914
+ }
22915
+ return contextualClient.fetchWithAuth(urlOrRequest, requestInit);
22916
+ },
22917
+ getAuth() {
22918
+ if (!contextualClient) {
22919
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22920
+ }
22921
+ return contextualClient.auth;
22922
+ },
22923
+ async graphql(query, variables, opts) {
22924
+ if (!contextualClient) {
22925
+ throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
22926
+ }
22927
+ return contextualClient.graphql(query, variables, opts);
22928
+ }
22929
+ };
22930
+ }
22745
22931
  function runWithoutContext(fn) {
22746
22932
  const globalContext = globalThis.__wix_context__;
22747
22933
  const moduleContext = {
@@ -22773,16 +22959,21 @@ function runWithoutContext(fn) {
22773
22959
  }
22774
22960
  }
22775
22961
  var init_context = __esm({
22776
- "../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/context.js"() {
22962
+ "../../node_modules/@wix/sdk-runtime/build/context.js"() {
22777
22963
  init_browser();
22778
22964
  init_context_v2();
22779
22965
  }
22780
22966
  });
22781
22967
 
22782
- // ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/constants.js
22783
- var RESTResponseToSDKResponseRenameMap;
22968
+ // ../../node_modules/@wix/sdk-runtime/build/constants.js
22969
+ var SDKRequestToRESTRequestRenameMap, RESTResponseToSDKResponseRenameMap;
22784
22970
  var init_constants2 = __esm({
22785
- "../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/constants.js"() {
22971
+ "../../node_modules/@wix/sdk-runtime/build/constants.js"() {
22972
+ SDKRequestToRESTRequestRenameMap = {
22973
+ _id: "id",
22974
+ _createdDate: "createdDate",
22975
+ _updatedDate: "updatedDate"
22976
+ };
22786
22977
  RESTResponseToSDKResponseRenameMap = {
22787
22978
  id: "_id",
22788
22979
  createdDate: "_createdDate",
@@ -22791,7 +22982,10 @@ var init_constants2 = __esm({
22791
22982
  }
22792
22983
  });
22793
22984
 
22794
- // ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/utils.js
22985
+ // ../../node_modules/@wix/sdk-runtime/build/utils.js
22986
+ function removeUndefinedKeys(obj) {
22987
+ return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
22988
+ }
22795
22989
  function constantCase(input) {
22796
22990
  return split(input).map((part) => part.toLocaleUpperCase()).join("_");
22797
22991
  }
@@ -22814,7 +23008,7 @@ function split(value) {
22814
23008
  }
22815
23009
  var SPLIT_LOWER_UPPER_RE, SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE, DEFAULT_STRIP_REGEXP;
22816
23010
  var init_utils4 = __esm({
22817
- "../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/utils.js"() {
23011
+ "../../node_modules/@wix/sdk-runtime/build/utils.js"() {
22818
23012
  SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
22819
23013
  SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
22820
23014
  SPLIT_REPLACE_VALUE = "$1\0$2";
@@ -22822,7 +23016,7 @@ var init_utils4 = __esm({
22822
23016
  }
22823
23017
  });
22824
23018
 
22825
- // ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/transform-error.js
23019
+ // ../../node_modules/@wix/sdk-runtime/build/transform-error.js
22826
23020
  function transformError(httpClientError, pathsToArguments = {
22827
23021
  explicitPathsToArguments: {},
22828
23022
  spreadPathsToArguments: {},
@@ -22864,7 +23058,7 @@ function transformError(httpClientError, pathsToArguments = {
22864
23058
  }
22865
23059
  var isValidationError, isApplicationError, isClientError, buildValidationError, wrapError, buildApplicationError, buildSystemError, violationsWithRenamedFields, withRenamedArgument, getArgumentIndex;
22866
23060
  var init_transform_error = __esm({
22867
- "../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/transform-error.js"() {
23061
+ "../../node_modules/@wix/sdk-runtime/build/transform-error.js"() {
22868
23062
  init_utils4();
22869
23063
  isValidationError = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
22870
23064
  isApplicationError = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
@@ -23098,19 +23292,155 @@ var init_rest_modules = __esm({
23098
23292
  }
23099
23293
  });
23100
23294
 
23101
- // ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/rest-modules.js
23102
- var DOMAINS, WIX_API_DOMAINS;
23295
+ // ../../node_modules/@wix/sdk-runtime/build/rest-modules.js
23296
+ function createRESTModule(descriptor, elevated = false) {
23297
+ return contextualizeRESTModuleV2(descriptor, elevated);
23298
+ }
23299
+ function toURLSearchParams(params, isComplexRequest) {
23300
+ const flatten = flattenParams(params);
23301
+ Object.entries(flatten).some(([key, value]) => key.includes(".") || Array.isArray(value) && value.some((v) => typeof v === "object"));
23302
+ {
23303
+ return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {
23304
+ const keyParams = Array.isArray(value) ? value : [value];
23305
+ keyParams.forEach((param) => {
23306
+ if (param === void 0 || param === null || Array.isArray(value) && typeof param === "object") {
23307
+ return;
23308
+ }
23309
+ urlSearchParams.append(key, param);
23310
+ });
23311
+ return urlSearchParams;
23312
+ }, new URLSearchParams());
23313
+ }
23314
+ }
23315
+ function resolveUrl(opts) {
23316
+ const domain = resolveDomain(opts.host);
23317
+ const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);
23318
+ const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});
23319
+ return resolvePathFromMappings(path, mappings);
23320
+ }
23321
+ function flattenParams(data, path = "") {
23322
+ const params = {};
23323
+ Object.entries(data).forEach(([key, value]) => {
23324
+ const isObject7 = value !== null && typeof value === "object" && !Array.isArray(value);
23325
+ const fieldPath = resolvePath(path, key);
23326
+ if (isObject7) {
23327
+ const serializedObject = flattenParams(value, fieldPath);
23328
+ Object.assign(params, serializedObject);
23329
+ } else {
23330
+ params[fieldPath] = value;
23331
+ }
23332
+ });
23333
+ return params;
23334
+ }
23335
+ function resolvePath(path, key) {
23336
+ return `${path}${path ? "." : ""}${key}`;
23337
+ }
23338
+ function resolveDomain(host) {
23339
+ const resolvedHost = fixHostExceptions(host);
23340
+ 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");
23341
+ }
23342
+ function fixHostExceptions(host) {
23343
+ return HOST_ALIASES[host] ?? host;
23344
+ }
23345
+ function resolveMappingsByDomain(domain, domainToMappings) {
23346
+ const mappings = domainToMappings[domain];
23347
+ if (mappings) {
23348
+ return mappings;
23349
+ }
23350
+ const matchedMappings = resolveRootDomain(domain, domainToMappings) ?? resolveWildcardDomain(domain, domainToMappings);
23351
+ if (!matchedMappings) {
23352
+ if (isBaseDomain(domain)) {
23353
+ const wwwMappings = domainToMappings[wwwBaseDomain];
23354
+ if (wwwMappings) {
23355
+ return wwwMappings;
23356
+ }
23357
+ }
23358
+ const userMappings = domainToMappings[USER_DOMAIN];
23359
+ if (userMappings) {
23360
+ return userMappings;
23361
+ }
23362
+ }
23363
+ return matchedMappings ?? [];
23364
+ }
23365
+ function resolveRootDomain(domain, domainToMappings) {
23366
+ return Object.entries(domainToMappings).find(([entryDomain]) => {
23367
+ const [, ...rooDomainSegments] = domain.split(".");
23368
+ return rooDomainSegments.join(".") === entryDomain;
23369
+ })?.[1];
23370
+ }
23371
+ function resolveWildcardDomain(domain, domainToMappings) {
23372
+ const matchingEntries = Object.entries(domainToMappings).filter(([entryDomain]) => matchesWildcardDomain(domain, entryDomain));
23373
+ const [mostSpecificEntry] = matchingEntries.sort(([entryDomainA], [entryDomainB]) => entryDomainB.length - entryDomainA.length);
23374
+ if (!mostSpecificEntry) {
23375
+ return void 0;
23376
+ }
23377
+ const [, mappings] = mostSpecificEntry;
23378
+ return mappings;
23379
+ }
23380
+ function matchesWildcardDomain(domain, entryDomain) {
23381
+ if (!entryDomain.startsWith(WILDCARD_PREFIX)) {
23382
+ return false;
23383
+ }
23384
+ const suffix = entryDomain.slice(WILDCARD_PREFIX.length - 1);
23385
+ return domain.length > suffix.length && domain.endsWith(suffix);
23386
+ }
23387
+ function isBaseDomain(domain) {
23388
+ return !!domain.match(/\._base_domain_$/);
23389
+ }
23390
+ function injectDataIntoProtoPath(protoPath, data) {
23391
+ return protoPath.split("/").map((path) => maybeProtoPathToData(path, data)).join("/");
23392
+ }
23393
+ function maybeProtoPathToData(protoPath, data) {
23394
+ const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];
23395
+ const field = protoRegExpMatch[1];
23396
+ if (field) {
23397
+ const suffix = protoPath.replace(protoRegExpMatch[0], "");
23398
+ return findByPath(data, field, protoPath, suffix);
23399
+ }
23400
+ return protoPath;
23401
+ }
23402
+ function findByPath(obj, path, defaultValue, suffix) {
23403
+ let result2 = obj;
23404
+ for (const field of path.split(".")) {
23405
+ if (!result2) {
23406
+ return defaultValue;
23407
+ }
23408
+ result2 = result2[field];
23409
+ }
23410
+ return `${result2}${suffix}`;
23411
+ }
23412
+ function resolvePathFromMappings(protoPath, mappings) {
23413
+ const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));
23414
+ if (!mapping) {
23415
+ return protoPath;
23416
+ }
23417
+ return mapping.srcPath + protoPath.slice(mapping.destPath.length);
23418
+ }
23419
+ 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;
23103
23420
  var init_rest_modules2 = __esm({
23104
- "../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/rest-modules.js"() {
23421
+ "../../node_modules/@wix/sdk-runtime/build/rest-modules.js"() {
23422
+ init_context_v2();
23105
23423
  init_constants2();
23106
23424
  DOMAINS = ["wix.com", "editorx.com"];
23107
- new RegExp(`\\.(${DOMAINS.join("|")})$`);
23425
+ USER_DOMAIN = "_";
23426
+ WILDCARD_PREFIX = "*.";
23427
+ REGEX_CAPTURE_DOMAINS = new RegExp(`\\.(${DOMAINS.join("|")})$`);
23108
23428
  WIX_API_DOMAINS = [
23109
23429
  "42.wixprod.net",
23110
23430
  "uw2-edt-1.wixprod.net",
23111
23431
  "virginia-edt.wixprod.net"
23112
23432
  ];
23113
- new RegExp(`\\.(${WIX_API_DOMAINS.join("|")})$`);
23433
+ HOST_ALIASES = {
23434
+ // payments.base44.com runs customised Business Manager, which needs to work exactly the same as normal BM on manage.wix.com
23435
+ "payments.base44.com": "manage.wix.com",
23436
+ // https://system-kb.wixanswers.com/kb/en/article/editorx-domains-matching-to-wixcom
23437
+ "create.editorx.com": "editor.editorx.com"
23438
+ };
23439
+ DEV_WIX_CODE_DOMAIN = "dev.wix-code.com";
23440
+ REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;
23441
+ REGEX_CAPTURE_API_DOMAINS = new RegExp(`\\.(${WIX_API_DOMAINS.join("|")})$`);
23442
+ REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN = new RegExp(`.*\\.${DEV_WIX_CODE_DOMAIN}$`);
23443
+ wwwBaseDomain = "www._base_domain_";
23114
23444
  }
23115
23445
  });
23116
23446
 
@@ -23356,7 +23686,7 @@ var init_modified_fields_manipulator = __esm({
23356
23686
  }
23357
23687
  });
23358
23688
 
23359
- // ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/nanoevents.js
23689
+ // ../../node_modules/@wix/sdk-runtime/build/nanoevents.js
23360
23690
  function createNanoEvents() {
23361
23691
  return {
23362
23692
  emit(event, ...args) {
@@ -23375,7 +23705,7 @@ function createNanoEvents() {
23375
23705
  };
23376
23706
  }
23377
23707
  var init_nanoevents = __esm({
23378
- "../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/nanoevents.js"() {
23708
+ "../../node_modules/@wix/sdk-runtime/build/nanoevents.js"() {
23379
23709
  }
23380
23710
  });
23381
23711
 
@@ -24895,6 +25225,9 @@ var init_transform = __esm({
24895
25225
 
24896
25226
  // ../../node_modules/@wix/image-kit/dist/esm/engines/transforms.js
24897
25227
  function getImageURI(transformsObj) {
25228
+ if (transformsObj.parts.some(({ width, height }) => !Number.isFinite(width) || width <= 0 || !Number.isFinite(height) || height <= 0)) {
25229
+ return transformsObj.src.id;
25230
+ }
24898
25231
  const transformsObjStrArr = [];
24899
25232
  transformsObj.parts.forEach((transformPart) => {
24900
25233
  switch (transformPart.transformType) {
@@ -26690,27 +27023,27 @@ var gallery_media_default;
26690
27023
  var init_gallery_media_scss = __esm({
26691
27024
  "../../node_modules/@wix/ricos/dist/es/plugin-gallery/statics/styles/gallery-media-scss.js"() {
26692
27025
  gallery_media_default = {
26693
- "media": "_2risZ",
26694
- "fit": "gZxji",
26695
- "failure": "WCbRH",
26696
- "playButton": "_8Dbzf",
26697
- "playIcon": "eE2h9",
26698
- "navigationArrow": "hwiVP",
26699
- "arrowStart": "_9qbS2",
26700
- "arrowEnd": "wopLc",
26701
- "arrowIcon": "F2Ij5",
26702
- "fill": "_4EMfn",
26703
- "intrinsic": "Kxvh7",
26704
- "cell": "Gz0p6",
26705
- "expandButton": "UoGXH",
26706
- "expandIcon": "B9BSW",
26707
- "expandChrome": "BQYtM",
26708
- "expandIconGlyph": "X7FF1",
26709
- "editorOverlay": "_909pe",
26710
- "horizontal": "zzZVh",
26711
- "viewport": "ICCrq",
26712
- "track": "rvjtf",
26713
- "previous": "_4aYQn"
27026
+ "media": "_4NX2G",
27027
+ "fit": "CBlJ3",
27028
+ "failure": "sS7TY",
27029
+ "playButton": "DHOeZ",
27030
+ "playIcon": "ejMyu",
27031
+ "navigationArrow": "_0n-kw",
27032
+ "arrowStart": "_33Y04",
27033
+ "arrowEnd": "QHpQu",
27034
+ "arrowIcon": "FJQKa",
27035
+ "fill": "MQA1p",
27036
+ "intrinsic": "oQFCM",
27037
+ "cell": "gljZt",
27038
+ "expandButton": "zwDOf",
27039
+ "expandIcon": "uDZHj",
27040
+ "expandChrome": "gVPr-",
27041
+ "expandIconGlyph": "XLeSY",
27042
+ "editorOverlay": "Yn6gb",
27043
+ "horizontal": "_9gLss",
27044
+ "viewport": "ZfSMs",
27045
+ "track": "GYhoV",
27046
+ "previous": "XpLKJ"
26714
27047
  };
26715
27048
  }
26716
27049
  });
@@ -31574,9 +31907,9 @@ var init_data_hooks2 = __esm({
31574
31907
  var styleDataHash, injectCss, fullscreen_default;
31575
31908
  var init_fullscreen_scss = __esm({
31576
31909
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js"() {
31577
- styleDataHash = "f2081f85";
31910
+ styleDataHash = "bab10e28";
31578
31911
  injectCss = (() => {
31579
- var css = `.u5AaM [data-hook^=gallery-media-]{display:block;inline-size:100%;overflow:hidden;position:relative}.u5AaM [data-hook^=gallery-media-]>img,.u5AaM [data-hook^=gallery-media-]>video{block-size:100%;display:block;inline-size:100%;object-position:center}.u5AaM [data-hook^=gallery-media-]{align-items:center;display:flex;justify-content:center}.u5AaM [data-hook^=gallery-media-]>img,.u5AaM [data-hook^=gallery-media-]>video{block-size:auto;inline-size:auto;margin:auto;max-block-size:100%;max-inline-size:100%;object-fit:contain}.u5AaM [data-hook=gallery-media-failure]{background:#e5e5e5;min-block-size:1px;min-inline-size:1px}.u5AaM [data-hook=gallery-video-play]{appearance:none;background:transparent;border:0;cursor:pointer;inline-size:100%;inset:0;padding:0;position:absolute}.u5AaM [data-hook=gallery-video-play]:focus-visible{outline:2px solid #3899ec;outline-offset:-2px}.u5AaM [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%)}.m2oC0{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}.m2oC0:disabled,[aria-disabled=true].m2oC0:not(:focus-visible){pointer-events:none;visibility:hidden}.m2oC0:focus-visible{outline:2px solid #3899ec;outline-offset:2px}@media (prefers-reduced-motion:reduce){.m2oC0{transition:none}}.m2oC0{inset-block-start:50%;position:absolute;transform:translateY(-50%)}.m2oC0 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)}.E-FTs,.EoLLi{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}.E-FTs{padding-block:70px 20px}@media only screen and (max-width:640px){.E-FTs{padding-block-start:40px}}.EoLLi,.bvTbv{padding:0}.bvTbv{background:transparent;border:hidden;border-radius:4px;box-sizing:border-box;color:#000;cursor:pointer;height:fit-content;position:fixed;right:17px;top:10px;width:fit-content;z-index:1001}@media only screen and (max-width:640px){.bvTbv{right:20px;top:5px}.bvTbv>svg{height:30px;width:30px}}.bvTbv:focus-visible{outline:5px auto Highlight!important;outline:5px auto -webkit-focus-ring-color!important}.H8uGD{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}.H8uGD:focus-visible{outline:5px auto Highlight!important;outline:5px auto -webkit-focus-ring-color!important}.vgV39{font-size:14px;line-height:20px;text-align:center;white-space:normal}.Gkhwn{box-sizing:border-box;display:flex;justify-content:center;min-height:60px;padding:16px 20px;width:100%}.ojjM5{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0;white-space:nowrap}.zamHv{min-height:0;position:relative;--ricos-internal-gallery-arrow-inset:20px}.cerS0,.zamHv{height:100%;min-width:0}.cerS0{overflow-x:auto;overflow-y:hidden;scroll-snap-type:inline mandatory;scrollbar-width:none}.cerS0::-webkit-scrollbar{display:none}.YMuZ1{display:flex;height:100%;list-style:none;margin:0;padding:0}.u5AaM{flex:0 0 100%;height:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;width:100%}.u5AaM [data-hook^=gallery-media-]{background:transparent;height:100%}.m2oC0{color:inherit;z-index:1}.m2oC0[data-hook=gallery-navigation-previous]{inset-inline-start:var(--ricos-internal-gallery-arrow-inset,12px)}.m2oC0[data-hook=gallery-navigation-previous] svg{inset-inline-end:auto;inset-inline-start:0}.m2oC0[data-hook=gallery-navigation-next]{inset-inline-end:var(--ricos-internal-gallery-arrow-inset,12px)}`;
31912
+ 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)}`;
31580
31913
  typeof process !== "undefined" && process.env && false;
31581
31914
  if (typeof document === "undefined") {
31582
31915
  return;
@@ -31597,18 +31930,18 @@ var init_fullscreen_scss = __esm({
31597
31930
  });
31598
31931
  injectCss();
31599
31932
  fullscreen_default = {
31600
- "slide": "u5AaM",
31601
- "arrow": "m2oC0",
31602
- "fullscreen_mode": "EoLLi",
31603
- "expand_mode": "E-FTs",
31604
- "close": "bvTbv",
31605
- "expand_button": "H8uGD",
31606
- "title": "vgV39",
31607
- "info_container": "Gkhwn",
31608
- "visuallyHidden": "ojjM5",
31609
- "carousel": "zamHv",
31610
- "viewport": "cerS0",
31611
- "track": "YMuZ1"
31933
+ "slide": "-j0q0",
31934
+ "arrow": "_91MGY",
31935
+ "fullscreen_mode": "xpIsI",
31936
+ "expand_mode": "nE-LM",
31937
+ "close": "nTn--",
31938
+ "expand_button": "CtirS",
31939
+ "title": "S6QUY",
31940
+ "info_container": "uHtve",
31941
+ "visuallyHidden": "WGCx7",
31942
+ "carousel": "_5VL5v",
31943
+ "viewport": "i07sZ",
31944
+ "track": "tsuXW"
31612
31945
  };
31613
31946
  }
31614
31947
  });
@@ -32598,15 +32931,15 @@ var rich_content_viewer_default;
32598
32931
  var init_rich_content_viewer_scss = __esm({
32599
32932
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/rich-content-viewer-scss.js"() {
32600
32933
  rich_content_viewer_default = {
32601
- "fontElementMap": "xme-s",
32602
- "wrapper": "E-YRH",
32603
- "pluginContainerMobile": "T2-iH",
32604
- "viewer": "_3Z24N",
32605
- "android": "-M08t",
32606
- "rootedTraversedContent": "igHK-",
32607
- "atomic": "EvBip",
32608
- "toolbar": "u-gsy",
32609
- "block": "SxsUP"
32934
+ "fontElementMap": "ulPVl",
32935
+ "wrapper": "pSH00",
32936
+ "pluginContainerMobile": "x3mNm",
32937
+ "viewer": "_05Prs",
32938
+ "android": "kn-P6",
32939
+ "rootedTraversedContent": "JAodO",
32940
+ "atomic": "O7nH9",
32941
+ "toolbar": "E3Cmw",
32942
+ "block": "uwlWQ"
32610
32943
  };
32611
32944
  }
32612
32945
  });
@@ -32616,8 +32949,8 @@ var rtl_default;
32616
32949
  var init_rtl_scss = __esm({
32617
32950
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/rtl-scss.js"() {
32618
32951
  rtl_default = {
32619
- "rtl": "SN6in",
32620
- "ltr": "n56sP"
32952
+ "rtl": "YfGTB",
32953
+ "ltr": "AQbO6"
32621
32954
  };
32622
32955
  }
32623
32956
  });
@@ -33014,13 +33347,13 @@ var indentation_default;
33014
33347
  var init_indentation_scss = __esm({
33015
33348
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/indentation-scss.js"() {
33016
33349
  indentation_default = {
33017
- "indentZero": "ZGsUX",
33018
- "indentOne": "NYYrW",
33019
- "indentTwo": "_9w9WD",
33020
- "indentThree": "F7eVh",
33021
- "indentFour": "Wkjom",
33022
- "indentFive": "vxNM2",
33023
- "indentSix": "i1kCY"
33350
+ "indentZero": "jTpZe",
33351
+ "indentOne": "TU0VV",
33352
+ "indentTwo": "IhE8p",
33353
+ "indentThree": "TWMwI",
33354
+ "indentFour": "ShV-8",
33355
+ "indentFive": "_7KHWQ",
33356
+ "indentSix": "_8oQ4-"
33024
33357
  };
33025
33358
  }
33026
33359
  });
@@ -33073,9 +33406,9 @@ var blockquote_default;
33073
33406
  var init_blockquote_scss = __esm({
33074
33407
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js"() {
33075
33408
  blockquote_default = {
33076
- "fontElementMap": "Bso-P",
33077
- "quoteContainer": "_3sRhn",
33078
- "quote": "fbjjF"
33409
+ "fontElementMap": "UvdoI",
33410
+ "quoteContainer": "qbhlX",
33411
+ "quote": "jdT93"
33079
33412
  };
33080
33413
  }
33081
33414
  });
@@ -33128,22 +33461,22 @@ var alignment_default;
33128
33461
  var init_alignment_scss = __esm({
33129
33462
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/alignment-scss.js"() {
33130
33463
  alignment_default = {
33131
- "alignLeft": "gbNOb",
33132
- "textWrapNowrap": "iDZ-S",
33133
- "alignRight": "KdnxY",
33134
- "alignCenter": "xVPUu",
33135
- "sizeFullWidth": "_7JVV-",
33136
- "renderedInTable": "mw8Fs",
33137
- "sizeOriginal": "-uuu9",
33138
- "sizeContent": "dzDyf",
33139
- "sizeSmall": "AVwfB",
33140
- "sizeSmallCenter": "OA6sg",
33141
- "flex": "-bUqy",
33142
- "LEFT": "VpDPg",
33143
- "CENTER": "C-3hj",
33144
- "RIGHT": "eZQJz",
33145
- "AUTO": "ZTsq6",
33146
- "JUSTIFY": "kx0IQ"
33464
+ "alignLeft": "_2dw86",
33465
+ "textWrapNowrap": "_5UAIE",
33466
+ "alignRight": "gV65o",
33467
+ "alignCenter": "mHzb3",
33468
+ "sizeFullWidth": "vV5j-",
33469
+ "renderedInTable": "LwwDq",
33470
+ "sizeOriginal": "C94pQ",
33471
+ "sizeContent": "FqXrk",
33472
+ "sizeSmall": "NJMxV",
33473
+ "sizeSmallCenter": "r9anZ",
33474
+ "flex": "TPof9",
33475
+ "LEFT": "JaJ8F",
33476
+ "CENTER": "_8V4z4",
33477
+ "RIGHT": "jfQGL",
33478
+ "AUTO": "Z7XZW",
33479
+ "JUSTIFY": "Hbw-T"
33147
33480
  };
33148
33481
  }
33149
33482
  });
@@ -33153,9 +33486,9 @@ var codeblock_default;
33153
33486
  var init_codeblock_scss = __esm({
33154
33487
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js"() {
33155
33488
  codeblock_default = {
33156
- "blockStyleSpacing": "BScHu",
33157
- "codeBlock": "py509 BScHu",
33158
- "renderedInTable": "KotW9"
33489
+ "blockStyleSpacing": "MY4qU",
33490
+ "codeBlock": "I5dtC MY4qU",
33491
+ "renderedInTable": "dP-Dy"
33159
33492
  };
33160
33493
  }
33161
33494
  });
@@ -33206,15 +33539,15 @@ var heading_default;
33206
33539
  var init_heading_scss = __esm({
33207
33540
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js"() {
33208
33541
  heading_default = {
33209
- "fontElementMap": "rP166",
33210
- "elementSpacing": "iszCN",
33211
- "headerOne": "X5RJx iszCN",
33212
- "headerTwo": "_6cr4I iszCN",
33213
- "headerThree": "VqC3s iszCN",
33214
- "headerFour": "KiBDx iszCN",
33215
- "headerFive": "AHJ9U iszCN",
33216
- "headerSix": "_6R0tu iszCN",
33217
- "child": "CUi6K"
33542
+ "fontElementMap": "-Rqzr",
33543
+ "elementSpacing": "kp0MF",
33544
+ "headerOne": "_8-cML kp0MF",
33545
+ "headerTwo": "zo9Zb kp0MF",
33546
+ "headerThree": "DOYqE kp0MF",
33547
+ "headerFour": "G8H9U kp0MF",
33548
+ "headerFive": "kQa3y kp0MF",
33549
+ "headerSix": "NbiON kp0MF",
33550
+ "child": "aJlPh"
33218
33551
  };
33219
33552
  }
33220
33553
  });
@@ -33308,16 +33641,16 @@ var layout_default;
33308
33641
  var init_layout_scss = __esm({
33309
33642
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js"() {
33310
33643
  layout_default = {
33311
- "sectionDividerClip": "MxWZO",
33312
- "sectionDivider": "QDLbx",
33313
- "sectionDividerTop": "UqUDY",
33314
- "sectionDividerBottom": "T648k",
33315
- "layoutWrapper": "MxKWw",
33316
- "layout": "wUI4G",
33317
- "designOnLayout": "wKbON",
33318
- "designOnCell": "-U9mK",
33319
- "cell": "ChbUJ",
33320
- "mobile": "vWdkJ"
33644
+ "sectionDividerClip": "Rg4Ww",
33645
+ "sectionDivider": "O38vk",
33646
+ "sectionDividerTop": "bJn2g",
33647
+ "sectionDividerBottom": "bKAYo",
33648
+ "layoutWrapper": "xj27c",
33649
+ "layout": "BuCW-",
33650
+ "designOnLayout": "RoH5A",
33651
+ "designOnCell": "rUD2s",
33652
+ "cell": "_6ODN3",
33653
+ "mobile": "MQa81"
33321
33654
  };
33322
33655
  }
33323
33656
  });
@@ -33716,9 +34049,9 @@ var init_resolve_backward_compat_overlay = __esm({
33716
34049
  var styleDataHash2, injectCss2, layout_background_loader_default;
33717
34050
  var init_layout_background_loader_scss = __esm({
33718
34051
  "../../node_modules/@wix/ricos/dist/es/ui-components/layout-background-loader/layout-background-loader-scss.js"() {
33719
- styleDataHash2 = "c4af5ff7";
34052
+ styleDataHash2 = "6c8fe7aa";
33720
34053
  injectCss2 = (() => {
33721
- var css = `.rAHnd{--shimmer-base-color:#f5f5f5;background-color:var(--shimmer-base-color);pointer-events:none;z-index:1}.aday-,.rAHnd{inset:0;position:absolute}.aday-{overflow:hidden}.aday-:after{animation:CpPwy 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 CpPwy{to{transform:translateX(100%)}}`;
34054
+ 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%)}}`;
33722
34055
  typeof process !== "undefined" && process.env && false;
33723
34056
  if (typeof document === "undefined") {
33724
34057
  return;
@@ -33739,9 +34072,9 @@ var init_layout_background_loader_scss = __esm({
33739
34072
  });
33740
34073
  injectCss2();
33741
34074
  layout_background_loader_default = {
33742
- "overlay": "rAHnd",
33743
- "shimmer": "aday-",
33744
- "layout-shimmer": "CpPwy"
34075
+ "overlay": "mRkvR",
34076
+ "shimmer": "ZW4B6",
34077
+ "layout-shimmer": "UF7aO"
33745
34078
  };
33746
34079
  }
33747
34080
  });
@@ -34078,12 +34411,12 @@ var lists_default;
34078
34411
  var init_lists_scss = __esm({
34079
34412
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js"() {
34080
34413
  lists_default = {
34081
- "fontElementMap": "OJowU",
34082
- "orderedlist": "trODW",
34083
- "bulletedlist": "xstN4",
34084
- "listItem": "z0zWY",
34085
- "checkboxList": "sGcRq",
34086
- "checkboxInput": "E11Ea"
34414
+ "fontElementMap": "wtqG9",
34415
+ "orderedlist": "Ngv3o",
34416
+ "bulletedlist": "_7CFss",
34417
+ "listItem": "i7-cY",
34418
+ "checkboxList": "_0GTBR",
34419
+ "checkboxInput": "EJpeX"
34087
34420
  };
34088
34421
  }
34089
34422
  });
@@ -34314,10 +34647,10 @@ var paragraph_default;
34314
34647
  var init_paragraph_scss = __esm({
34315
34648
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js"() {
34316
34649
  paragraph_default = {
34317
- "fontElementMap": "kx5fn",
34318
- "elementSpacing": "VpZrG",
34319
- "text": "_-2yKF VpZrG",
34320
- "child": "_52JYQ"
34650
+ "fontElementMap": "Bugx7",
34651
+ "elementSpacing": "u5FHg",
34652
+ "text": "LaD-3 u5FHg",
34653
+ "child": "tfLfg"
34321
34654
  };
34322
34655
  }
34323
34656
  });
@@ -34494,9 +34827,9 @@ var init_struct_converters = __esm({
34494
34827
  var styleDataHash3, injectCss3, general_default;
34495
34828
  var init_general_scss = __esm({
34496
34829
  "../../node_modules/@wix/ricos/dist/es/wix-rich-content-common/statics/styles/general-scss.js"() {
34497
- styleDataHash3 = "df53d26d";
34830
+ styleDataHash3 = "c3ac66f6";
34498
34831
  injectCss3 = (() => {
34499
- var css = `._5lMHI{margin-left:0;margin-right:auto;z-index:1}._5lMHI:not(.NqU-e){float:left;margin-right:40px}@supports not (contain:inline-size){@media only screen and (max-width:480px){._5lMHI:not(.NqU-e){float:none;margin-right:auto}}}@container (width < 480px){._5lMHI:not(.NqU-e){float:none;margin-right:auto}}.z0A0v{margin-left:auto;margin-right:0;z-index:1}.z0A0v:not(.NqU-e){float:right;margin-left:40px}@supports not (contain:inline-size){@media only screen and (max-width:480px){.z0A0v:not(.NqU-e){float:none;margin-left:auto}}}@container (width < 480px){.z0A0v:not(.NqU-e){float:none;margin-left:auto}}.lohDw{clear:both;display:block}.lohDw:not(.-r0i7){margin-left:auto;margin-right:auto;max-width:100%}.-r0i7,.NqU-e{width:100%}.v1OqB .-r0i7,.v1OqB .NqU-e{margin:0 -8px;width:auto}.l9-2K{width:fit-content}.eMC6h{margin-left:auto;margin-right:auto;max-width:100%}.YvYbq{width:min(350px,100%)!important}.v1OqB .YvYbq{width:50%}.CsDOx{margin-left:auto;margin-right:auto}.v1OqB .CsDOx{width:150px}.sPoHE{display:flex}`;
34832
+ 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}`;
34500
34833
  typeof process !== "undefined" && process.env && false;
34501
34834
  if (typeof document === "undefined") {
34502
34835
  return;
@@ -34517,17 +34850,17 @@ var init_general_scss = __esm({
34517
34850
  });
34518
34851
  injectCss3();
34519
34852
  general_default = {
34520
- "alignLeft": "_5lMHI",
34521
- "textWrapNowrap": "NqU-e",
34522
- "alignRight": "z0A0v",
34523
- "alignCenter": "lohDw",
34524
- "sizeFullWidth": "-r0i7",
34525
- "renderedInTable": "v1OqB",
34526
- "sizeOriginal": "l9-2K",
34527
- "sizeContent": "eMC6h",
34528
- "sizeSmall": "YvYbq",
34529
- "sizeSmallCenter": "CsDOx",
34530
- "flex": "sPoHE"
34853
+ "alignLeft": "PVcrw",
34854
+ "textWrapNowrap": "P-wmd",
34855
+ "alignRight": "_43eqe",
34856
+ "alignCenter": "h-5uj",
34857
+ "sizeFullWidth": "mEpzy",
34858
+ "renderedInTable": "fFuN-",
34859
+ "sizeOriginal": "ELk1M",
34860
+ "sizeContent": "_2wfg6",
34861
+ "sizeSmall": "Dgrxs",
34862
+ "sizeSmallCenter": "ytnoN",
34863
+ "flex": "QQVsO"
34531
34864
  };
34532
34865
  }
34533
34866
  });
@@ -34536,9 +34869,9 @@ var init_general_scss = __esm({
34536
34869
  var styleDataHash4, injectCss4, general_default2;
34537
34870
  var init_general_scss2 = __esm({
34538
34871
  "../../node_modules/@wix/ricos/dist/es/editor-common/statics/styles/general-scss.js"() {
34539
- styleDataHash4 = "7d57fbe6";
34872
+ styleDataHash4 = "72e3b9c4";
34540
34873
  injectCss4 = (() => {
34541
- var css = `.M2-VY,._4qWf5,.glob_fontElementMap,button{font-family:var(--ricos-font-family,unset)}.sJ6-N{display:flex}.EO5eB,.H4Xpv:hover{border-radius:var(--ricos-native-whitebox-border-radius,0);box-shadow:0 0 0 1.5px #116dff;cursor:default}.GBDp3 .EO5eB,[data-hook^=figure-][data-cropping] .EO5eB{box-shadow:none!important}.GBDp3 :is([data-resize-handle],[data-hook=image-corner-radius-handle],[data-hook=image-corner-radius-label]){display:none!important}.LOb5y{cursor:move;display:block;height:100%;left:0;position:absolute;top:0;width:100%}.LOb5y.j-Zw-{pointer-events:none}.a-hWE ::selection{background:transparent}.Jvo3N{display:none}.M2-VY{position:relative}.DRmOR{max-width:100%}.rUOHO{color:#333;text-decoration:none}.QrbdN{display:block}.QBfa8{position:relative}._9h7NA{margin-left:-20px;margin-right:-20px;overflow-x:auto;overflow-y:hidden}._9h7NA._8Sy-6::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5)}._9h7NA.HXMbP::-webkit-scrollbar-thumb{background-color:transparent}.ebrTN{max-width:max-content!important;min-width:100%}._9h7NA::-webkit-scrollbar{-webkit-appearance:none}._9h7NA::-webkit-scrollbar-thumb{border:2px solid #fff;border-radius:8px}._9h7NA::-webkit-scrollbar:horizontal{height:10px}`;
34874
+ 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}`;
34542
34875
  typeof process !== "undefined" && process.env && false;
34543
34876
  if (typeof document === "undefined") {
34544
34877
  return;
@@ -34559,24 +34892,24 @@ var init_general_scss2 = __esm({
34559
34892
  });
34560
34893
  injectCss4();
34561
34894
  general_default2 = {
34562
- "fontElementMap": "_4qWf5",
34563
- "pluginContainer": "M2-VY",
34564
- "flex": "sJ6-N",
34565
- "isFocusable": "H4Xpv",
34566
- "hasFocus": "EO5eB",
34567
- "dragImageView": "GBDp3",
34568
- "overlay": "LOb5y",
34569
- "noPointerEventsOnFocus": "j-Zw-",
34570
- "hideTextSelection": "a-hWE",
34571
- "hidden": "Jvo3N",
34572
- "pluginContainerMobile": "DRmOR",
34573
- "isImage": "rUOHO",
34574
- "anchor": "QrbdN",
34575
- "horizontalScrollbarWrapper": "QBfa8",
34576
- "pluginWithHorizontalScrollbar": "_9h7NA",
34577
- "show": "_8Sy-6",
34578
- "hide": "HXMbP",
34579
- "horizontalScrollbar": "ebrTN"
34895
+ "fontElementMap": "Vjk27",
34896
+ "pluginContainer": "okmpE",
34897
+ "flex": "yF-oU",
34898
+ "isFocusable": "AcMMZ",
34899
+ "hasFocus": "qlPiF",
34900
+ "dragImageView": "_5YFhj",
34901
+ "overlay": "_2mJFy",
34902
+ "noPointerEventsOnFocus": "TbUBZ",
34903
+ "hideTextSelection": "LyNAX",
34904
+ "hidden": "_4fQyJ",
34905
+ "pluginContainerMobile": "YdCvY",
34906
+ "isImage": "IUfgp",
34907
+ "anchor": "_--Q16",
34908
+ "horizontalScrollbarWrapper": "HrKxP",
34909
+ "pluginWithHorizontalScrollbar": "wbIju",
34910
+ "show": "u5kWc",
34911
+ "hide": "gT7f-",
34912
+ "horizontalScrollbar": "OHtww"
34580
34913
  };
34581
34914
  }
34582
34915
  });
@@ -34602,21 +34935,21 @@ var plugin_default;
34602
34935
  var init_plugin_scss = __esm({
34603
34936
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js"() {
34604
34937
  plugin_default = {
34605
- "alignLeft": "_6wJrO",
34606
- "textWrapNowrap": "fesyI",
34607
- "alignRight": "RFwBL",
34608
- "alignCenter": "aveUm",
34609
- "sizeFullWidth": "nZOoR",
34610
- "renderedInTable": "YRoiU",
34611
- "sizeOriginal": "_9jCs4",
34612
- "sizeContent": "e9Hzd",
34613
- "sizeSmall": "_8mN95",
34614
- "sizeSmallCenter": "mpUIs",
34615
- "flex": "S080b",
34616
- "atomic": "GsKfp",
34617
- "embed": "W0gZF",
34618
- "horizontalScrollbar": "bIl3b",
34619
- "pluginContainerMobile": "QU2H-"
34938
+ "alignLeft": "xFsZr",
34939
+ "textWrapNowrap": "GI-hE",
34940
+ "alignRight": "_3n02d",
34941
+ "alignCenter": "LnERq",
34942
+ "sizeFullWidth": "c8k4N",
34943
+ "renderedInTable": "_5WFYn",
34944
+ "sizeOriginal": "vr-1C",
34945
+ "sizeContent": "bJuv-",
34946
+ "sizeSmall": "v5May",
34947
+ "sizeSmallCenter": "c4Ouj",
34948
+ "flex": "yp55o",
34949
+ "atomic": "-soj1",
34950
+ "embed": "ly1dr",
34951
+ "horizontalScrollbar": "dM8xx",
34952
+ "pluginContainerMobile": "I9xke"
34620
34953
  };
34621
34954
  }
34622
34955
  });
@@ -34719,8 +35052,8 @@ var link_viewer_wrapper_default;
34719
35052
  var init_link_viewer_wrapper_scss = __esm({
34720
35053
  "../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js"() {
34721
35054
  link_viewer_wrapper_default = {
34722
- "anchor": "PAZ0y",
34723
- "link": "fYoKq"
35055
+ "anchor": "VNPuh",
35056
+ "link": "_0Jys0"
34724
35057
  };
34725
35058
  }
34726
35059
  });
@@ -35125,9 +35458,9 @@ var init_gap_spacer_nodes = __esm({
35125
35458
  var styleDataHash5, injectCss5, gap_spacer_styles_default;
35126
35459
  var init_gap_spacer_styles_scss = __esm({
35127
35460
  "../../node_modules/@wix/ricos/dist/es/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js"() {
35128
- styleDataHash5 = "623ceb92";
35461
+ styleDataHash5 = "332e652c";
35129
35462
  injectCss5 = (() => {
35130
- var css = `.UsX8r,.hs4pC{cursor:pointer;height:14px;margin:0;padding:0;pointer-events:auto;position:relative;width:100%}.UsX8r:not(._4kfRn):hover .F7D7w,.hs4pC:not(._4kfRn):hover .F7D7w{opacity:1}._4kfRn.UsX8r,.hs4pC._4kfRn{cursor:auto;height:0;pointer-events:none}.UsX8r{cursor:none;pointer-events:none}.-TEx9 .F7D7w{opacity:1}.F7D7w{height:2px;opacity:0;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:1000000}.F7D7w,.F7D7w:after,.F7D7w:before{background-color:#116dff;position:absolute;width:100%}.F7D7w:after,.F7D7w:before{content:"";height:3px;left:0;opacity:.3}.F7D7w:before{top:-3px}.F7D7w:after{bottom:-3px}._5Ng44{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}.yKNs0{display:none}@supports not (contain:inline-size){@media only screen and (max-width:480px){.yKNs0{display:block}}}@container (width < 480px){.yKNs0{display:block}}.-zved{margin-top:14px}`;
35463
+ 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}`;
35131
35464
  typeof process !== "undefined" && process.env && false;
35132
35465
  if (typeof document === "undefined") {
35133
35466
  return;
@@ -35148,14 +35481,14 @@ var init_gap_spacer_styles_scss = __esm({
35148
35481
  });
35149
35482
  injectCss5();
35150
35483
  gap_spacer_styles_default = {
35151
- "gapSpacerContainer": "hs4pC",
35152
- "gapSpacerViewer": "UsX8r",
35153
- "collapsed": "_4kfRn",
35154
- "gapSpacerLine": "F7D7w",
35155
- "gapSpacerFocused": "-TEx9",
35156
- "gapSpacerTooltip": "_5Ng44",
35157
- "betweenFloated": "yKNs0",
35158
- "withTopMargin": "-zved"
35484
+ "gapSpacerContainer": "idv6s",
35485
+ "gapSpacerViewer": "DgQur",
35486
+ "collapsed": "yEiVP",
35487
+ "gapSpacerLine": "_0nNqE",
35488
+ "gapSpacerFocused": "UThvk",
35489
+ "gapSpacerTooltip": "Hqbfi",
35490
+ "betweenFloated": "Jzn6S",
35491
+ "withTopMargin": "_1uHT-"
35159
35492
  };
35160
35493
  }
35161
35494
  });
@@ -39270,6 +39603,7 @@ var init_content_viewer = __esm({
39270
39603
  init_ricos_styles();
39271
39604
  init_has_plugin();
39272
39605
  init_use_id_compat();
39606
+ init_use_isomorphic_layout_effect();
39273
39607
  init_wix_rich_content_common();
39274
39608
  init_rich_content_viewer_scss();
39275
39609
  init_rtl_scss();
@@ -39296,7 +39630,7 @@ var init_content_viewer = __esm({
39296
39630
  const [minHeight, setMinHeight] = React171.useState(void 0);
39297
39631
  const viewerRef = React171.useRef(null);
39298
39632
  const contentRef = React171.useRef(null);
39299
- React171.useLayoutEffect(() => {
39633
+ useIsomorphicLayoutEffect(() => {
39300
39634
  const isSafari = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent);
39301
39635
  if (!isSafari || !contentRef.current) {
39302
39636
  return;
@@ -39333,6 +39667,10 @@ var init_content_viewer = __esm({
39333
39667
  () => buildThemeCssVars(contextualData.theme, documentStyle ?? {}),
39334
39668
  [contextualData.theme, documentStyle]
39335
39669
  );
39670
+ const fontModeAttributes = React171.useMemo(
39671
+ () => buildFontModeAttributes(contextualData.theme, documentStyle ?? {}),
39672
+ [contextualData.theme, documentStyle]
39673
+ );
39336
39674
  const dataId = { "data-id": "content-viewer" };
39337
39675
  return /* @__PURE__ */ React171__default.default.createElement(GlobalContext.Provider, { key: "RicosViewer", value: { experiments, isMobile: isMobile2, t } }, /* @__PURE__ */ React171__default.default.createElement(
39338
39676
  "div",
@@ -39346,7 +39684,8 @@ var init_content_viewer = __esm({
39346
39684
  onMouseEnter: (e) => onHover && onHover(e),
39347
39685
  onMouseOver,
39348
39686
  ref: handleRef,
39349
- ...dataId
39687
+ ...dataId,
39688
+ ...fontModeAttributes
39350
39689
  },
39351
39690
  props2.devTools,
39352
39691
  /* @__PURE__ */ React171__default.default.createElement(
@@ -42754,9 +43093,9 @@ var init_ContentViewer = __esm({
42754
43093
  var styleDataHash6, injectCss6, viewer_inline_toolbar_default;
42755
43094
  var init_viewer_inline_toolbar_scss = __esm({
42756
43095
  "../../node_modules/@wix/ricos/dist/es/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js"() {
42757
- styleDataHash6 = "0a87e5fa";
43096
+ styleDataHash6 = "a5b88005";
42758
43097
  injectCss6 = (() => {
42759
- var css = `.ku4hG{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}.vOTD0{align-items:center;background:#fff;border:none;cursor:pointer;display:flex;justify-content:center;width:43px}`;
43098
+ 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}`;
42760
43099
  typeof process !== "undefined" && process.env && false;
42761
43100
  if (typeof document === "undefined") {
42762
43101
  return;
@@ -42777,8 +43116,8 @@ var init_viewer_inline_toolbar_scss = __esm({
42777
43116
  });
42778
43117
  injectCss6();
42779
43118
  viewer_inline_toolbar_default = {
42780
- "toolbar": "ku4hG",
42781
- "button": "vOTD0"
43119
+ "toolbar": "SVOOD",
43120
+ "button": "mcAae"
42782
43121
  };
42783
43122
  }
42784
43123
  });
@@ -45883,23 +46222,6 @@ var init_esm2 = __esm({
45883
46222
  }
45884
46223
  });
45885
46224
 
45886
- // ../../node_modules/@wix/sdk-runtime/build/constants.js
45887
- var SDKRequestToRESTRequestRenameMap, RESTResponseToSDKResponseRenameMap2;
45888
- var init_constants4 = __esm({
45889
- "../../node_modules/@wix/sdk-runtime/build/constants.js"() {
45890
- SDKRequestToRESTRequestRenameMap = {
45891
- _id: "id",
45892
- _createdDate: "createdDate",
45893
- _updatedDate: "updatedDate"
45894
- };
45895
- RESTResponseToSDKResponseRenameMap2 = {
45896
- id: "_id",
45897
- createdDate: "_createdDate",
45898
- updatedDate: "_updatedDate"
45899
- };
45900
- }
45901
- });
45902
-
45903
46225
  // ../../node_modules/@wix/sdk-runtime/build/field-rename.js
45904
46226
  function renameFieldPathBySegment(fieldPath, renameMap) {
45905
46227
  return fieldPath?.split(".").map((segment) => renameMap?.[segment] ?? segment).join(".");
@@ -45958,11 +46280,11 @@ function renameKeysFromSDKRequestToRESTRequest(payload, ignorePaths = []) {
45958
46280
  return renameAllNestedKeys(payload, SDKRequestToRESTRequestRenameMap, ignorePaths);
45959
46281
  }
45960
46282
  function renameKeysFromRESTResponseToSDKResponse(payload, ignorePaths = []) {
45961
- return renameAllNestedKeys(payload, RESTResponseToSDKResponseRenameMap2, ignorePaths);
46283
+ return renameAllNestedKeys(payload, RESTResponseToSDKResponseRenameMap, ignorePaths);
45962
46284
  }
45963
46285
  var init_rename_all_nested_keys = __esm({
45964
46286
  "../../node_modules/@wix/sdk-runtime/build/rename-all-nested-keys.js"() {
45965
- init_constants4();
46287
+ init_constants2();
45966
46288
  init_field_rename();
45967
46289
  }
45968
46290
  });
@@ -46001,460 +46323,6 @@ var init_transform_paths = __esm({
46001
46323
  }
46002
46324
  });
46003
46325
 
46004
- // ../../node_modules/@wix/sdk-runtime/build/utils.js
46005
- function removeUndefinedKeys(obj) {
46006
- return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
46007
- }
46008
- function constantCase2(input) {
46009
- return split2(input).map((part) => part.toLocaleUpperCase()).join("_");
46010
- }
46011
- function split2(value) {
46012
- let result2 = value.trim();
46013
- result2 = result2.replace(SPLIT_LOWER_UPPER_RE2, SPLIT_REPLACE_VALUE2).replace(SPLIT_UPPER_UPPER_RE2, SPLIT_REPLACE_VALUE2);
46014
- result2 = result2.replace(DEFAULT_STRIP_REGEXP2, "\0");
46015
- let start = 0;
46016
- let end = result2.length;
46017
- while (result2.charAt(start) === "\0") {
46018
- start++;
46019
- }
46020
- if (start === end) {
46021
- return [];
46022
- }
46023
- while (result2.charAt(end - 1) === "\0") {
46024
- end--;
46025
- }
46026
- return result2.slice(start, end).split(/\0/g);
46027
- }
46028
- var SPLIT_LOWER_UPPER_RE2, SPLIT_UPPER_UPPER_RE2, SPLIT_REPLACE_VALUE2, DEFAULT_STRIP_REGEXP2;
46029
- var init_utils8 = __esm({
46030
- "../../node_modules/@wix/sdk-runtime/build/utils.js"() {
46031
- SPLIT_LOWER_UPPER_RE2 = /([\p{Ll}\d])(\p{Lu})/gu;
46032
- SPLIT_UPPER_UPPER_RE2 = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
46033
- SPLIT_REPLACE_VALUE2 = "$1\0$2";
46034
- DEFAULT_STRIP_REGEXP2 = /[^\p{L}\d]+/giu;
46035
- }
46036
- });
46037
-
46038
- // ../../node_modules/@wix/sdk-runtime/build/transform-error.js
46039
- function transformError2(httpClientError, pathsToArguments = {
46040
- explicitPathsToArguments: {},
46041
- spreadPathsToArguments: {},
46042
- singleArgumentUnchanged: false
46043
- }, argumentNames = []) {
46044
- if (typeof httpClientError !== "object" || httpClientError === null) {
46045
- throw httpClientError;
46046
- }
46047
- if (isValidationError2(httpClientError)) {
46048
- return buildValidationError2(httpClientError, pathsToArguments, argumentNames);
46049
- }
46050
- if (isApplicationError2(httpClientError)) {
46051
- return buildApplicationError2(httpClientError);
46052
- }
46053
- if (isClientError2(httpClientError)) {
46054
- const status = httpClientError.response?.status;
46055
- const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
46056
- const message = httpClientError.response?.data?.message ?? statusText;
46057
- const details = {
46058
- applicationError: {
46059
- description: statusText,
46060
- code: constantCase2(statusText),
46061
- data: {}
46062
- },
46063
- requestId: httpClientError.requestId
46064
- };
46065
- return wrapError2(httpClientError, {
46066
- message: JSON.stringify({
46067
- message,
46068
- details
46069
- }, null, 2),
46070
- extraProperties: {
46071
- details,
46072
- status
46073
- }
46074
- });
46075
- }
46076
- return buildSystemError2(httpClientError);
46077
- }
46078
- var isValidationError2, isApplicationError2, isClientError2, buildValidationError2, wrapError2, buildApplicationError2, buildSystemError2, violationsWithRenamedFields2, withRenamedArgument2, getArgumentIndex2;
46079
- var init_transform_error2 = __esm({
46080
- "../../node_modules/@wix/sdk-runtime/build/transform-error.js"() {
46081
- init_utils8();
46082
- isValidationError2 = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
46083
- isApplicationError2 = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
46084
- isClientError2 = (httpClientError) => (httpClientError.response?.status ?? -1) >= 400 && (httpClientError.response?.status ?? -1) < 500;
46085
- buildValidationError2 = (httpClientError, pathsToArguments, argumentNames) => {
46086
- const validationErrorResponse = httpClientError.response?.data;
46087
- const requestId = httpClientError.requestId;
46088
- const { fieldViolations } = validationErrorResponse.details.validationError;
46089
- const transformedFieldViolations = violationsWithRenamedFields2(pathsToArguments, fieldViolations, argumentNames)?.sort((a2, b) => a2.field < b.field ? -1 : 1);
46090
- const message = `INVALID_ARGUMENT: ${transformedFieldViolations?.map(({ field, description }) => `"${field}" ${description}`)?.join(", ")}`;
46091
- const details = {
46092
- validationError: { fieldViolations: transformedFieldViolations },
46093
- requestId
46094
- };
46095
- return wrapError2(httpClientError, {
46096
- message: JSON.stringify({ message, details }, null, 2),
46097
- extraProperties: {
46098
- details,
46099
- status: httpClientError.response?.status,
46100
- requestId
46101
- }
46102
- });
46103
- };
46104
- wrapError2 = (baseError, { message, extraProperties }) => {
46105
- return Object.assign(baseError, {
46106
- ...extraProperties,
46107
- message
46108
- });
46109
- };
46110
- buildApplicationError2 = (httpClientError) => {
46111
- const status = httpClientError.response?.status;
46112
- const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
46113
- const message = httpClientError.response?.data?.message ?? statusText;
46114
- const description = httpClientError.response?.data?.details?.applicationError?.description ?? statusText;
46115
- const code = httpClientError.response?.data?.details?.applicationError?.code ?? constantCase2(statusText);
46116
- const data = httpClientError.response?.data?.details?.applicationError?.data ?? {};
46117
- const combinedMessage = message === description ? message : `${message}: ${description}`;
46118
- const details = {
46119
- applicationError: {
46120
- description,
46121
- code,
46122
- data
46123
- },
46124
- requestId: httpClientError.requestId
46125
- };
46126
- return wrapError2(httpClientError, {
46127
- message: JSON.stringify({ message: combinedMessage, details }, null, 2),
46128
- extraProperties: {
46129
- details,
46130
- status,
46131
- requestId: httpClientError.requestId
46132
- }
46133
- });
46134
- };
46135
- buildSystemError2 = (httpClientError) => {
46136
- const message = httpClientError.requestId ? `System error occurred, request-id: ${httpClientError.requestId}` : `System error occurred: ${JSON.stringify(httpClientError)}`;
46137
- return wrapError2(httpClientError, {
46138
- message,
46139
- extraProperties: {
46140
- requestId: httpClientError.requestId,
46141
- status: httpClientError.response?.status,
46142
- code: constantCase2(httpClientError.response?.statusText ?? "UNKNOWN"),
46143
- ...!httpClientError.response && {
46144
- runtimeError: httpClientError
46145
- }
46146
- }
46147
- });
46148
- };
46149
- violationsWithRenamedFields2 = ({ spreadPathsToArguments, explicitPathsToArguments, singleArgumentUnchanged }, fieldViolations, argumentNames) => {
46150
- const allPathsToArguments = {
46151
- ...spreadPathsToArguments,
46152
- ...explicitPathsToArguments
46153
- };
46154
- const allPathsToArgumentsKeys = Object.keys(allPathsToArguments);
46155
- return fieldViolations?.filter((fieldViolation) => {
46156
- const containedInAMoreSpecificViolationField = fieldViolations.some((anotherViolation) => anotherViolation.field.length > fieldViolation.field.length && anotherViolation.field.startsWith(fieldViolation.field) && allPathsToArgumentsKeys.includes(anotherViolation.field));
46157
- return !containedInAMoreSpecificViolationField;
46158
- }).map((fieldViolation) => {
46159
- const exactMatchArgumentExpression = explicitPathsToArguments[fieldViolation.field];
46160
- if (exactMatchArgumentExpression) {
46161
- return {
46162
- ...fieldViolation,
46163
- field: withRenamedArgument2(exactMatchArgumentExpression, argumentNames)
46164
- };
46165
- }
46166
- const longestPartialPathMatch = allPathsToArgumentsKeys?.sort((a2, b) => b.length - a2.length)?.find((path) => fieldViolation.field.startsWith(path));
46167
- if (longestPartialPathMatch) {
46168
- const partialMatchArgumentExpression = allPathsToArguments[longestPartialPathMatch];
46169
- if (partialMatchArgumentExpression) {
46170
- return {
46171
- ...fieldViolation,
46172
- field: fieldViolation.field.replace(longestPartialPathMatch, withRenamedArgument2(partialMatchArgumentExpression, argumentNames))
46173
- };
46174
- }
46175
- }
46176
- if (singleArgumentUnchanged) {
46177
- return {
46178
- ...fieldViolation,
46179
- field: `${argumentNames[0]}.${fieldViolation.field}`
46180
- };
46181
- }
46182
- return fieldViolation;
46183
- });
46184
- };
46185
- withRenamedArgument2 = (fieldValue, argumentNames) => {
46186
- const argIndex = getArgumentIndex2(fieldValue);
46187
- if (argIndex !== null && typeof argIndex !== "undefined") {
46188
- return fieldValue.replace(`$[${argIndex}]`, argumentNames[argIndex]);
46189
- }
46190
- return fieldValue;
46191
- };
46192
- getArgumentIndex2 = (s) => {
46193
- const match4 = s.match(/\$\[(?<argIndex>\d+)\]/);
46194
- return match4 && match4.groups && Number(match4.groups.argIndex);
46195
- };
46196
- }
46197
- });
46198
-
46199
- // ../../node_modules/@wix/sdk-runtime/build/context.js
46200
- function resolveContext() {
46201
- const oldContext = typeof $wixContext !== "undefined" && $wixContext.initWixModules ? $wixContext.initWixModules : typeof globalThis.__wix_context__ !== "undefined" && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
46202
- if (oldContext) {
46203
- return {
46204
- // @ts-expect-error
46205
- initWixModules(modules, elevated) {
46206
- return runWithoutContext2(() => oldContext(modules, elevated));
46207
- },
46208
- fetchWithAuth() {
46209
- throw new Error("fetchWithAuth is not available in this context");
46210
- },
46211
- graphql() {
46212
- throw new Error("graphql is not available in this context");
46213
- }
46214
- };
46215
- }
46216
- const contextualClient = typeof $wixContext !== "undefined" ? $wixContext.client : typeof wixContext.client !== "undefined" ? wixContext.client : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.client : void 0;
46217
- const elevatedClient = typeof $wixContext !== "undefined" ? $wixContext.elevatedClient : typeof wixContext.elevatedClient !== "undefined" ? wixContext.elevatedClient : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.elevatedClient : void 0;
46218
- if (!contextualClient && !elevatedClient) {
46219
- return;
46220
- }
46221
- return {
46222
- initWixModules(wixModules, elevated) {
46223
- if (elevated) {
46224
- if (!elevatedClient) {
46225
- 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");
46226
- }
46227
- return runWithoutContext2(() => elevatedClient.use(wixModules));
46228
- }
46229
- if (!contextualClient) {
46230
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
46231
- }
46232
- return runWithoutContext2(() => contextualClient.use(wixModules));
46233
- },
46234
- fetchWithAuth: (urlOrRequest, requestInit) => {
46235
- if (!contextualClient) {
46236
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
46237
- }
46238
- return contextualClient.fetchWithAuth(urlOrRequest, requestInit);
46239
- },
46240
- getAuth() {
46241
- if (!contextualClient) {
46242
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
46243
- }
46244
- return contextualClient.auth;
46245
- },
46246
- async graphql(query, variables, opts) {
46247
- if (!contextualClient) {
46248
- throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
46249
- }
46250
- return contextualClient.graphql(query, variables, opts);
46251
- }
46252
- };
46253
- }
46254
- function runWithoutContext2(fn) {
46255
- const globalContext = globalThis.__wix_context__;
46256
- const moduleContext = {
46257
- client: wixContext.client,
46258
- elevatedClient: wixContext.elevatedClient
46259
- };
46260
- let closureContext;
46261
- globalThis.__wix_context__ = void 0;
46262
- wixContext.client = void 0;
46263
- wixContext.elevatedClient = void 0;
46264
- if (typeof $wixContext !== "undefined") {
46265
- closureContext = {
46266
- client: $wixContext?.client,
46267
- elevatedClient: $wixContext?.elevatedClient
46268
- };
46269
- delete $wixContext.client;
46270
- delete $wixContext.elevatedClient;
46271
- }
46272
- try {
46273
- return fn();
46274
- } finally {
46275
- globalThis.__wix_context__ = globalContext;
46276
- wixContext.client = moduleContext.client;
46277
- wixContext.elevatedClient = moduleContext.elevatedClient;
46278
- if (typeof $wixContext !== "undefined") {
46279
- $wixContext.client = closureContext.client;
46280
- $wixContext.elevatedClient = closureContext.elevatedClient;
46281
- }
46282
- }
46283
- }
46284
- var init_context2 = __esm({
46285
- "../../node_modules/@wix/sdk-runtime/build/context.js"() {
46286
- init_browser();
46287
- init_context_v22();
46288
- }
46289
- });
46290
-
46291
- // ../../node_modules/@wix/sdk-runtime/build/context-v2.js
46292
- function contextualizeRESTModuleV2(restModule, elevated) {
46293
- return ((...args) => {
46294
- const context = resolveContext();
46295
- if (!context) {
46296
- return restModule.apply(void 0, args);
46297
- }
46298
- return context.initWixModules(restModule, elevated).apply(void 0, args);
46299
- });
46300
- }
46301
- var init_context_v22 = __esm({
46302
- "../../node_modules/@wix/sdk-runtime/build/context-v2.js"() {
46303
- init_context2();
46304
- }
46305
- });
46306
-
46307
- // ../../node_modules/@wix/sdk-runtime/build/rest-modules.js
46308
- function createRESTModule(descriptor, elevated = false) {
46309
- return contextualizeRESTModuleV2(descriptor, elevated);
46310
- }
46311
- function toURLSearchParams(params, isComplexRequest) {
46312
- const flatten = flattenParams(params);
46313
- Object.entries(flatten).some(([key, value]) => key.includes(".") || Array.isArray(value) && value.some((v) => typeof v === "object"));
46314
- {
46315
- return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {
46316
- const keyParams = Array.isArray(value) ? value : [value];
46317
- keyParams.forEach((param) => {
46318
- if (param === void 0 || param === null || Array.isArray(value) && typeof param === "object") {
46319
- return;
46320
- }
46321
- urlSearchParams.append(key, param);
46322
- });
46323
- return urlSearchParams;
46324
- }, new URLSearchParams());
46325
- }
46326
- }
46327
- function resolveUrl(opts) {
46328
- const domain = resolveDomain(opts.host);
46329
- const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);
46330
- const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});
46331
- return resolvePathFromMappings(path, mappings);
46332
- }
46333
- function flattenParams(data, path = "") {
46334
- const params = {};
46335
- Object.entries(data).forEach(([key, value]) => {
46336
- const isObject7 = value !== null && typeof value === "object" && !Array.isArray(value);
46337
- const fieldPath = resolvePath(path, key);
46338
- if (isObject7) {
46339
- const serializedObject = flattenParams(value, fieldPath);
46340
- Object.assign(params, serializedObject);
46341
- } else {
46342
- params[fieldPath] = value;
46343
- }
46344
- });
46345
- return params;
46346
- }
46347
- function resolvePath(path, key) {
46348
- return `${path}${path ? "." : ""}${key}`;
46349
- }
46350
- function resolveDomain(host) {
46351
- const resolvedHost = fixHostExceptions(host);
46352
- 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");
46353
- }
46354
- function fixHostExceptions(host) {
46355
- return HOST_ALIASES[host] ?? host;
46356
- }
46357
- function resolveMappingsByDomain(domain, domainToMappings) {
46358
- const mappings = domainToMappings[domain];
46359
- if (mappings) {
46360
- return mappings;
46361
- }
46362
- const matchedMappings = resolveRootDomain(domain, domainToMappings) ?? resolveWildcardDomain(domain, domainToMappings);
46363
- if (!matchedMappings) {
46364
- if (isBaseDomain(domain)) {
46365
- const wwwMappings = domainToMappings[wwwBaseDomain];
46366
- if (wwwMappings) {
46367
- return wwwMappings;
46368
- }
46369
- }
46370
- const userMappings = domainToMappings[USER_DOMAIN];
46371
- if (userMappings) {
46372
- return userMappings;
46373
- }
46374
- }
46375
- return matchedMappings ?? [];
46376
- }
46377
- function resolveRootDomain(domain, domainToMappings) {
46378
- return Object.entries(domainToMappings).find(([entryDomain]) => {
46379
- const [, ...rooDomainSegments] = domain.split(".");
46380
- return rooDomainSegments.join(".") === entryDomain;
46381
- })?.[1];
46382
- }
46383
- function resolveWildcardDomain(domain, domainToMappings) {
46384
- const matchingEntries = Object.entries(domainToMappings).filter(([entryDomain]) => matchesWildcardDomain(domain, entryDomain));
46385
- const [mostSpecificEntry] = matchingEntries.sort(([entryDomainA], [entryDomainB]) => entryDomainB.length - entryDomainA.length);
46386
- if (!mostSpecificEntry) {
46387
- return void 0;
46388
- }
46389
- const [, mappings] = mostSpecificEntry;
46390
- return mappings;
46391
- }
46392
- function matchesWildcardDomain(domain, entryDomain) {
46393
- if (!entryDomain.startsWith(WILDCARD_PREFIX)) {
46394
- return false;
46395
- }
46396
- const suffix = entryDomain.slice(WILDCARD_PREFIX.length - 1);
46397
- return domain.length > suffix.length && domain.endsWith(suffix);
46398
- }
46399
- function isBaseDomain(domain) {
46400
- return !!domain.match(/\._base_domain_$/);
46401
- }
46402
- function injectDataIntoProtoPath(protoPath, data) {
46403
- return protoPath.split("/").map((path) => maybeProtoPathToData(path, data)).join("/");
46404
- }
46405
- function maybeProtoPathToData(protoPath, data) {
46406
- const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];
46407
- const field = protoRegExpMatch[1];
46408
- if (field) {
46409
- const suffix = protoPath.replace(protoRegExpMatch[0], "");
46410
- return findByPath(data, field, protoPath, suffix);
46411
- }
46412
- return protoPath;
46413
- }
46414
- function findByPath(obj, path, defaultValue, suffix) {
46415
- let result2 = obj;
46416
- for (const field of path.split(".")) {
46417
- if (!result2) {
46418
- return defaultValue;
46419
- }
46420
- result2 = result2[field];
46421
- }
46422
- return `${result2}${suffix}`;
46423
- }
46424
- function resolvePathFromMappings(protoPath, mappings) {
46425
- const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));
46426
- if (!mapping) {
46427
- return protoPath;
46428
- }
46429
- return mapping.srcPath + protoPath.slice(mapping.destPath.length);
46430
- }
46431
- 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;
46432
- var init_rest_modules3 = __esm({
46433
- "../../node_modules/@wix/sdk-runtime/build/rest-modules.js"() {
46434
- init_context_v22();
46435
- DOMAINS2 = ["wix.com", "editorx.com"];
46436
- USER_DOMAIN = "_";
46437
- WILDCARD_PREFIX = "*.";
46438
- REGEX_CAPTURE_DOMAINS2 = new RegExp(`\\.(${DOMAINS2.join("|")})$`);
46439
- WIX_API_DOMAINS2 = [
46440
- "42.wixprod.net",
46441
- "uw2-edt-1.wixprod.net",
46442
- "virginia-edt.wixprod.net"
46443
- ];
46444
- HOST_ALIASES = {
46445
- // payments.base44.com runs customised Business Manager, which needs to work exactly the same as normal BM on manage.wix.com
46446
- "payments.base44.com": "manage.wix.com",
46447
- // https://system-kb.wixanswers.com/kb/en/article/editorx-domains-matching-to-wixcom
46448
- "create.editorx.com": "editor.editorx.com"
46449
- };
46450
- DEV_WIX_CODE_DOMAIN2 = "dev.wix-code.com";
46451
- REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;
46452
- REGEX_CAPTURE_API_DOMAINS2 = new RegExp(`\\.(${WIX_API_DOMAINS2.join("|")})$`);
46453
- REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN2 = new RegExp(`.*\\.${DEV_WIX_CODE_DOMAIN2}$`);
46454
- wwwBaseDomain = "www._base_domain_";
46455
- }
46456
- });
46457
-
46458
46326
  // ../../node_modules/@wix/sdk-runtime/build/transformations/float.js
46459
46327
  function transformSDKFloatToRESTFloat(val) {
46460
46328
  return isFinite(val) ? val : val.toString();
@@ -48582,7 +48450,7 @@ function toFieldLabelMediaSettings(view) {
48582
48450
  }
48583
48451
 
48584
48452
  // ../../node_modules/@wix/sdk-runtime/build/transformations/address.js
48585
- init_utils8();
48453
+ init_utils4();
48586
48454
  function transformSDKAddressToRESTAddress(payload) {
48587
48455
  return payload && removeUndefinedKeys({
48588
48456
  city: payload.city,
@@ -59648,10 +59516,13 @@ var Period = ({ className, ...internal }) => {
59648
59516
  const { hidePlaceholder } = useFieldPropsV2();
59649
59517
  const { segment } = internal;
59650
59518
  const { t } = useTranslation2();
59519
+ const timeFieldState = React171.useContext(reactAriaComponents.TimeFieldStateContext);
59651
59520
  const placeholder = hidePlaceholder ? void 0 : t("field.date.placeholder.period");
59521
+ const toggleAmPm = () => timeFieldState?.increment("dayPeriod");
59652
59522
  return /* @__PURE__ */ React171__default.default.createElement(reactAriaComponents.DateSegment, {
59653
59523
  segment,
59654
59524
  className,
59525
+ onClick: toggleAmPm,
59655
59526
  ...placeholder && {
59656
59527
  placeholder
59657
59528
  }
@@ -61444,14 +61315,18 @@ __export(es_exports, {
61444
61315
  SubdivisionType: () => SubdivisionType,
61445
61316
  getPlace: () => getPlace4
61446
61317
  });
61447
- init_transform_error2();
61318
+ init_transform_error();
61448
61319
  init_rename_all_nested_keys();
61449
- init_rest_modules3();
61320
+ init_rest_modules2();
61450
61321
  init_float();
61451
61322
  init_transform_paths();
61452
- init_rest_modules3();
61323
+ init_rest_modules2();
61453
61324
  init_transform_paths();
61454
- init_rest_modules3();
61325
+ init_rest_modules2();
61326
+ var TRANSFORM_PATHS_0 = [
61327
+ { path: "place.address.geocode.latitude" },
61328
+ { path: "place.address.geocode.longitude" }
61329
+ ];
61455
61330
  function resolveComWixpressViAtlasServiceV2PlacesServiceV2Url(opts) {
61456
61331
  const domainToMappings = {
61457
61332
  "api._api_base_domain_": [
@@ -61589,10 +61464,7 @@ function getPlace(payload) {
61589
61464
  transformResponse: (payload2) => transformPaths(payload2, [
61590
61465
  {
61591
61466
  transformFn: transformRESTFloatToSDKFloat,
61592
- paths: [
61593
- { path: "place.address.geocode.latitude" },
61594
- { path: "place.address.geocode.longitude" }
61595
- ]
61467
+ paths: TRANSFORM_PATHS_0
61596
61468
  }
61597
61469
  ])
61598
61470
  };
@@ -61600,6 +61472,7 @@ function getPlace(payload) {
61600
61472
  }
61601
61473
  return __getPlace;
61602
61474
  }
61475
+ var TRANSFORM_PATHS_02 = [{ path: "place.address" }];
61603
61476
  var SubdivisionType = /* @__PURE__ */ ((SubdivisionType22) => {
61604
61477
  SubdivisionType22["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
61605
61478
  SubdivisionType22["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
@@ -61625,12 +61498,12 @@ async function getPlace2(searchId, options) {
61625
61498
  transformPaths(result2.data, [
61626
61499
  {
61627
61500
  transformFn: transformRESTAddressToSDKAddress,
61628
- paths: [{ path: "place.address" }]
61501
+ paths: TRANSFORM_PATHS_02
61629
61502
  }
61630
61503
  ])
61631
61504
  );
61632
61505
  } catch (err) {
61633
- const transformedError = transformError2(
61506
+ const transformedError = transformError(
61634
61507
  err,
61635
61508
  {
61636
61509
  spreadPathsToArguments: {},
@@ -61662,12 +61535,18 @@ __export(es_exports2, {
61662
61535
  FilterType: () => FilterType,
61663
61536
  predict: () => predict4
61664
61537
  });
61665
- init_transform_error2();
61538
+ init_transform_error();
61666
61539
  init_rename_all_nested_keys();
61667
61540
  init_float();
61668
61541
  init_transform_paths();
61669
- init_rest_modules3();
61670
- init_rest_modules3();
61542
+ init_rest_modules2();
61543
+ init_rest_modules2();
61544
+ var TRANSFORM_PATHS_03 = [
61545
+ { path: "origin.latitude" },
61546
+ { path: "origin.longitude" },
61547
+ { path: "location.latitude" },
61548
+ { path: "location.longitude" }
61549
+ ];
61671
61550
  function resolveComWixpressViAtlasServiceV2AutocompleteServiceV2Url(opts) {
61672
61551
  const domainToMappings = {
61673
61552
  "api._api_base_domain_": [
@@ -61791,12 +61670,7 @@ function predict(payload) {
61791
61670
  const serializedData = transformPaths(payload, [
61792
61671
  {
61793
61672
  transformFn: transformSDKFloatToRESTFloat,
61794
- paths: [
61795
- { path: "origin.latitude" },
61796
- { path: "origin.longitude" },
61797
- { path: "location.latitude" },
61798
- { path: "location.longitude" }
61799
- ]
61673
+ paths: TRANSFORM_PATHS_03
61800
61674
  }
61801
61675
  ]);
61802
61676
  const metadata = {
@@ -61840,7 +61714,7 @@ async function predict2(input, options) {
61840
61714
  sideEffects?.onSuccess?.(result2);
61841
61715
  return renameKeysFromRESTResponseToSDKResponse(result2.data);
61842
61716
  } catch (err) {
61843
- const transformedError = transformError2(
61717
+ const transformedError = transformError(
61844
61718
  err,
61845
61719
  {
61846
61720
  spreadPathsToArguments: {},
@@ -61878,14 +61752,18 @@ __export(es_exports3, {
61878
61752
  SubdivisionType: () => SubdivisionType2,
61879
61753
  search: () => search4
61880
61754
  });
61881
- init_transform_error2();
61755
+ init_transform_error();
61882
61756
  init_rename_all_nested_keys();
61883
- init_rest_modules3();
61757
+ init_rest_modules2();
61884
61758
  init_float();
61885
61759
  init_transform_paths();
61886
- init_rest_modules3();
61760
+ init_rest_modules2();
61887
61761
  init_transform_paths();
61888
- init_rest_modules3();
61762
+ init_rest_modules2();
61763
+ var TRANSFORM_PATHS_04 = [
61764
+ { path: "searchResults.address.geocode.latitude" },
61765
+ { path: "searchResults.address.geocode.longitude" }
61766
+ ];
61889
61767
  function resolveComWixpressViAtlasServiceV2LocationServiceV2Url(opts) {
61890
61768
  const domainToMappings = {
61891
61769
  "api._api_base_domain_": [
@@ -62023,10 +61901,7 @@ function search(payload) {
62023
61901
  transformResponse: (payload2) => transformPaths(payload2, [
62024
61902
  {
62025
61903
  transformFn: transformRESTFloatToSDKFloat,
62026
- paths: [
62027
- { path: "searchResults.address.geocode.latitude" },
62028
- { path: "searchResults.address.geocode.longitude" }
62029
- ]
61904
+ paths: TRANSFORM_PATHS_04
62030
61905
  }
62031
61906
  ]),
62032
61907
  fallback: [
@@ -62045,6 +61920,7 @@ function search(payload) {
62045
61920
  }
62046
61921
  return __search;
62047
61922
  }
61923
+ var TRANSFORM_PATHS_022 = [{ path: "searchResults.address" }];
62048
61924
  var SubdivisionType2 = /* @__PURE__ */ ((SubdivisionType22) => {
62049
61925
  SubdivisionType22["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
62050
61926
  SubdivisionType22["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
@@ -62084,12 +61960,12 @@ async function search2(options) {
62084
61960
  transformPaths(result2.data, [
62085
61961
  {
62086
61962
  transformFn: transformRESTAddressToSDKAddress,
62087
- paths: [{ path: "searchResults.address" }]
61963
+ paths: TRANSFORM_PATHS_022
62088
61964
  }
62089
61965
  ])
62090
61966
  );
62091
61967
  } catch (err) {
62092
- const transformedError = transformError2(
61968
+ const transformedError = transformError(
62093
61969
  err,
62094
61970
  {
62095
61971
  spreadPathsToArguments: {},
@@ -66888,7 +66764,7 @@ TextInput.Input;
66888
66764
  TextInput.Description;
66889
66765
  TextInput.Error;
66890
66766
  var TimeInput2 = ({ children }) => {
66891
- const { id: id6, value, onChange, disabled, required, onBlur, onFocus, use24HourFormat, FieldLayout, hasError } = useFieldPropsV2();
66767
+ const { id: id6, value, onChange, disabled, readOnly, required, onBlur, onFocus, use24HourFormat, FieldLayout, hasError } = useFieldPropsV2();
66892
66768
  const { inputId, ariaDescribedBy, labelId } = useFieldAttributes2();
66893
66769
  const handleChange = React171.useCallback((timeValue2) => {
66894
66770
  const stringValue = timeValueToString2(timeValue2);
@@ -66911,6 +66787,7 @@ var TimeInput2 = ({ children }) => {
66911
66787
  value: timeValue,
66912
66788
  onChange: handleChange,
66913
66789
  isDisabled: disabled,
66790
+ isReadOnly: readOnly,
66914
66791
  isInvalid: hasError,
66915
66792
  isRequired: required,
66916
66793
  onBlur,
@@ -66986,10 +66863,13 @@ var Period2 = ({ className, ...internal }) => {
66986
66863
  const { hidePlaceholder } = useFieldPropsV2();
66987
66864
  const { segment } = internal;
66988
66865
  const { t } = useTranslation2();
66866
+ const timeFieldState = React171.useContext(reactAriaComponents.TimeFieldStateContext);
66989
66867
  const placeholder = hidePlaceholder ? void 0 : t("field.date.placeholder.period");
66868
+ const toggleAmPm = () => timeFieldState?.increment("dayPeriod");
66990
66869
  return /* @__PURE__ */ React171__default.default.createElement(reactAriaComponents.DateSegment, {
66991
66870
  segment,
66992
66871
  className,
66872
+ onClick: toggleAmPm,
66993
66873
  ...placeholder && {
66994
66874
  placeholder
66995
66875
  }