@wix/form-public 0.520.0 → 0.522.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 +1442 -1230
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +83 -140
- package/dist/index.css.map +1 -1
- package/dist/index.js +1443 -1231
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import ReactDOM from 'react-dom';
|
|
|
7
7
|
import camelCase2 from 'lodash.camelcase';
|
|
8
8
|
import mapKeys from 'lodash.mapkeys';
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
|
-
import { CheckboxField, CheckboxButton, TextField, Input, ListBoxItem, Dialog, OverlayTriggerStateContext, ModalOverlay, Modal, SearchField, Group, RadioGroup as RadioGroup$1, Button, useSlottedContext, PopoverContext, Popover, CollectionRendererContext, DefaultCollectionRenderer, ListBox, Autocomplete, RadioField, RadioButton, CheckboxGroup as CheckboxGroup$1, I18nProvider, DatePicker as DatePicker$1, Select, VisuallyHidden, NumberField, TimeField, SelectValue, CalendarCell, Calendar as Calendar$1, CalendarMonthPicker, CalendarYearPicker, CalendarGrid, DatePickerStateContext, DateInput as DateInput$1, DateSegment, TimeFieldStateContext,
|
|
10
|
+
import { CheckboxField, CheckboxButton, TextField, Input, ListBoxItem, Dialog, OverlayTriggerStateContext, ModalOverlay, Modal, SearchField, Group, RadioGroup as RadioGroup$1, Button, DropZone as DropZone$1, FileTrigger, useSlottedContext, PopoverContext, Popover, CollectionRendererContext, DefaultCollectionRenderer, ListBox, Autocomplete, RadioField, RadioButton, CheckboxGroup as CheckboxGroup$1, I18nProvider, DatePicker as DatePicker$1, Select, VisuallyHidden, NumberField, TimeField, SelectValue, CalendarCell, Calendar as Calendar$1, CalendarMonthPicker, CalendarYearPicker, CalendarGrid, DatePickerStateContext, DateInput as DateInput$1, DateSegment, TimeFieldStateContext, Text as Text$1, ProgressBar, ComboBox, DialogTrigger, TextArea as TextArea$1, ComboBoxStateContext } from 'react-aria-components';
|
|
11
11
|
|
|
12
12
|
var __create = Object.create;
|
|
13
13
|
var __defProp = Object.defineProperty;
|
|
@@ -15553,7 +15553,7 @@ var init_viewer_context = __esm({
|
|
|
15553
15553
|
});
|
|
15554
15554
|
|
|
15555
15555
|
// ../../node_modules/@wix/ricos/dist/es/ricos-schema/next-schema/generated/ricos_document.js
|
|
15556
|
-
var Animation_Type, PluginContainerData_Alignment, PluginContainerData_Width_Type, LayoutData_BannerPosition, RicosDocumentNodeType, Node_Type;
|
|
15556
|
+
var Animation_Type, PluginContainerData_Alignment, PluginContainerData_Width_Type, FontSizeData_fontType, LayoutData_BannerPosition, RicosDocumentNodeType, Node_Type;
|
|
15557
15557
|
var init_ricos_document = __esm({
|
|
15558
15558
|
"../../node_modules/@wix/ricos/dist/es/ricos-schema/next-schema/generated/ricos_document.js"() {
|
|
15559
15559
|
Animation_Type = {
|
|
@@ -15571,6 +15571,10 @@ var init_ricos_document = __esm({
|
|
|
15571
15571
|
ORIGINAL: "ORIGINAL",
|
|
15572
15572
|
FULL_WIDTH: "FULL_WIDTH"
|
|
15573
15573
|
};
|
|
15574
|
+
FontSizeData_fontType = {
|
|
15575
|
+
PX: "PX",
|
|
15576
|
+
EM: "EM"
|
|
15577
|
+
};
|
|
15574
15578
|
LayoutData_BannerPosition = {
|
|
15575
15579
|
TOP: "TOP",
|
|
15576
15580
|
BOTTOM: "BOTTOM",
|
|
@@ -15723,7 +15727,7 @@ var init_plugin_names = __esm({
|
|
|
15723
15727
|
var RICOS_VERSION;
|
|
15724
15728
|
var init_version = __esm({
|
|
15725
15729
|
"../../node_modules/@wix/ricos/dist/es/ricos-schema/next-schema/version.js"() {
|
|
15726
|
-
RICOS_VERSION = "11.20.
|
|
15730
|
+
RICOS_VERSION = "11.20.5";
|
|
15727
15731
|
}
|
|
15728
15732
|
});
|
|
15729
15733
|
|
|
@@ -16647,7 +16651,7 @@ var init_ReadonlyArray = __esm({
|
|
|
16647
16651
|
});
|
|
16648
16652
|
|
|
16649
16653
|
// ../../node_modules/fp-ts-esm/es6/Array.js
|
|
16650
|
-
var append3,
|
|
16654
|
+
var append3, of3, zero, map, filterMapWithIndex, filterMap, compact, reduceWithIndex3, traverse, traverseWithIndex, getSemigroup2, getMonoid2;
|
|
16651
16655
|
var init_Array = __esm({
|
|
16652
16656
|
"../../node_modules/fp-ts-esm/es6/Array.js"() {
|
|
16653
16657
|
init_Apply();
|
|
@@ -16662,21 +16666,9 @@ var init_Array = __esm({
|
|
|
16662
16666
|
init_Witherable();
|
|
16663
16667
|
init_Zero();
|
|
16664
16668
|
append3 = append;
|
|
16665
|
-
chainWithIndex = (f) => (as4) => {
|
|
16666
|
-
const out = [];
|
|
16667
|
-
for (let i = 0; i < as4.length; i++) {
|
|
16668
|
-
const bs2 = f(i, as4[i]);
|
|
16669
|
-
for (let j3 = 0; j3 < bs2.length; j3++) {
|
|
16670
|
-
out.push(bs2[j3]);
|
|
16671
|
-
}
|
|
16672
|
-
}
|
|
16673
|
-
return out;
|
|
16674
|
-
};
|
|
16675
16669
|
of3 = of;
|
|
16676
16670
|
zero = () => [];
|
|
16677
16671
|
map = (f) => (fa2) => fa2.map((a2) => f(a2));
|
|
16678
|
-
ap = (fa2) => flatMap((f) => pipe(fa2, map(f)));
|
|
16679
|
-
flatMap = /* @__PURE__ */ dual(2, (ma2, f) => pipe(ma2, chainWithIndex((i, a2) => f(a2, i))));
|
|
16680
16672
|
filterMapWithIndex = (f) => (fa2) => {
|
|
16681
16673
|
const out = [];
|
|
16682
16674
|
for (let i = 0; i < fa2.length; i++) {
|
|
@@ -16962,6 +16954,25 @@ var init_common_enums = __esm({
|
|
|
16962
16954
|
})(Gradient_Type2 || {});
|
|
16963
16955
|
}
|
|
16964
16956
|
});
|
|
16957
|
+
|
|
16958
|
+
// ../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/decoration_fontsize.enums.js
|
|
16959
|
+
var FontSizeData_fontType2;
|
|
16960
|
+
var init_decoration_fontsize_enums = __esm({
|
|
16961
|
+
"../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/decoration_fontsize.enums.js"() {
|
|
16962
|
+
FontSizeData_fontType2 = /* @__PURE__ */ ((FontSizeData_fontType22) => {
|
|
16963
|
+
FontSizeData_fontType22["PX"] = "PX";
|
|
16964
|
+
FontSizeData_fontType22["EM"] = "EM";
|
|
16965
|
+
FontSizeData_fontType22["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
16966
|
+
return FontSizeData_fontType22;
|
|
16967
|
+
})(FontSizeData_fontType2 || {});
|
|
16968
|
+
}
|
|
16969
|
+
});
|
|
16970
|
+
var init_decoration_fontsize = __esm({
|
|
16971
|
+
"../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/decoration_fontsize.js"() {
|
|
16972
|
+
init_decoration_fontsize_enums();
|
|
16973
|
+
({ unit: FontSizeData_fontType2.PX });
|
|
16974
|
+
}
|
|
16975
|
+
});
|
|
16965
16976
|
var init_common = __esm({
|
|
16966
16977
|
"../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/common.js"() {
|
|
16967
16978
|
init_common_enums();
|
|
@@ -17007,25 +17018,6 @@ var init_decoration_fontfamily = __esm({
|
|
|
17007
17018
|
}
|
|
17008
17019
|
});
|
|
17009
17020
|
|
|
17010
|
-
// ../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/decoration_fontsize.enums.js
|
|
17011
|
-
var FontSizeData_fontType2;
|
|
17012
|
-
var init_decoration_fontsize_enums = __esm({
|
|
17013
|
-
"../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/decoration_fontsize.enums.js"() {
|
|
17014
|
-
FontSizeData_fontType2 = /* @__PURE__ */ ((FontSizeData_fontType22) => {
|
|
17015
|
-
FontSizeData_fontType22["PX"] = "PX";
|
|
17016
|
-
FontSizeData_fontType22["EM"] = "EM";
|
|
17017
|
-
FontSizeData_fontType22["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
17018
|
-
return FontSizeData_fontType22;
|
|
17019
|
-
})(FontSizeData_fontType2 || {});
|
|
17020
|
-
}
|
|
17021
|
-
});
|
|
17022
|
-
var init_decoration_fontsize = __esm({
|
|
17023
|
-
"../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/decoration_fontsize.js"() {
|
|
17024
|
-
init_decoration_fontsize_enums();
|
|
17025
|
-
({ unit: FontSizeData_fontType2.PX });
|
|
17026
|
-
}
|
|
17027
|
-
});
|
|
17028
|
-
|
|
17029
17021
|
// ../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/decoration_link.js
|
|
17030
17022
|
var init_decoration_link = __esm({
|
|
17031
17023
|
"../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/decoration_link.js"() {
|
|
@@ -17285,7 +17277,7 @@ var init_node_paragraph = __esm({
|
|
|
17285
17277
|
});
|
|
17286
17278
|
|
|
17287
17279
|
// ../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/plugin_app_embed.enums.js
|
|
17288
|
-
var AppEmbedData_AppType2,
|
|
17280
|
+
var AppEmbedData_AppType2, AppEmbedData_ImageStyles_Position2, AppEmbedData_ImageStyles_AspectRatio2, AppEmbedData_ImageStyles_Resizing2, AppEmbedData_RibbonStyles_Placement2, AppEmbedData_CardStyles_Type2, AppEmbedData_CardStyles_Alignment2, AppEmbedData_CardStyles_Layout;
|
|
17289
17281
|
var init_plugin_app_embed_enums = __esm({
|
|
17290
17282
|
"../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/plugin_app_embed.enums.js"() {
|
|
17291
17283
|
AppEmbedData_AppType2 = /* @__PURE__ */ ((AppEmbedData_AppType22) => {
|
|
@@ -17295,44 +17287,44 @@ var init_plugin_app_embed_enums = __esm({
|
|
|
17295
17287
|
AppEmbedData_AppType22["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
17296
17288
|
return AppEmbedData_AppType22;
|
|
17297
17289
|
})(AppEmbedData_AppType2 || {});
|
|
17298
|
-
|
|
17299
|
-
|
|
17300
|
-
|
|
17301
|
-
|
|
17302
|
-
|
|
17303
|
-
return
|
|
17304
|
-
})(
|
|
17305
|
-
|
|
17306
|
-
|
|
17307
|
-
|
|
17308
|
-
|
|
17309
|
-
return
|
|
17310
|
-
})(
|
|
17311
|
-
|
|
17312
|
-
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
return
|
|
17316
|
-
})(
|
|
17317
|
-
|
|
17318
|
-
|
|
17319
|
-
|
|
17320
|
-
|
|
17321
|
-
return
|
|
17322
|
-
})(
|
|
17323
|
-
|
|
17324
|
-
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
return
|
|
17328
|
-
})(
|
|
17329
|
-
|
|
17330
|
-
|
|
17331
|
-
|
|
17332
|
-
|
|
17333
|
-
|
|
17334
|
-
return
|
|
17335
|
-
})(
|
|
17290
|
+
AppEmbedData_ImageStyles_Position2 = /* @__PURE__ */ ((AppEmbedData_ImageStyles_Position22) => {
|
|
17291
|
+
AppEmbedData_ImageStyles_Position22["START"] = "START";
|
|
17292
|
+
AppEmbedData_ImageStyles_Position22["END"] = "END";
|
|
17293
|
+
AppEmbedData_ImageStyles_Position22["TOP"] = "TOP";
|
|
17294
|
+
AppEmbedData_ImageStyles_Position22["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
17295
|
+
return AppEmbedData_ImageStyles_Position22;
|
|
17296
|
+
})(AppEmbedData_ImageStyles_Position2 || {});
|
|
17297
|
+
AppEmbedData_ImageStyles_AspectRatio2 = /* @__PURE__ */ ((AppEmbedData_ImageStyles_AspectRatio22) => {
|
|
17298
|
+
AppEmbedData_ImageStyles_AspectRatio22["SQUARE"] = "SQUARE";
|
|
17299
|
+
AppEmbedData_ImageStyles_AspectRatio22["RECTANGLE"] = "RECTANGLE";
|
|
17300
|
+
AppEmbedData_ImageStyles_AspectRatio22["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
17301
|
+
return AppEmbedData_ImageStyles_AspectRatio22;
|
|
17302
|
+
})(AppEmbedData_ImageStyles_AspectRatio2 || {});
|
|
17303
|
+
AppEmbedData_ImageStyles_Resizing2 = /* @__PURE__ */ ((AppEmbedData_ImageStyles_Resizing22) => {
|
|
17304
|
+
AppEmbedData_ImageStyles_Resizing22["FILL"] = "FILL";
|
|
17305
|
+
AppEmbedData_ImageStyles_Resizing22["FIT"] = "FIT";
|
|
17306
|
+
AppEmbedData_ImageStyles_Resizing22["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
17307
|
+
return AppEmbedData_ImageStyles_Resizing22;
|
|
17308
|
+
})(AppEmbedData_ImageStyles_Resizing2 || {});
|
|
17309
|
+
AppEmbedData_RibbonStyles_Placement2 = /* @__PURE__ */ ((AppEmbedData_RibbonStyles_Placement22) => {
|
|
17310
|
+
AppEmbedData_RibbonStyles_Placement22["IMAGE"] = "IMAGE";
|
|
17311
|
+
AppEmbedData_RibbonStyles_Placement22["PRODUCT_INFO"] = "PRODUCT_INFO";
|
|
17312
|
+
AppEmbedData_RibbonStyles_Placement22["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
17313
|
+
return AppEmbedData_RibbonStyles_Placement22;
|
|
17314
|
+
})(AppEmbedData_RibbonStyles_Placement2 || {});
|
|
17315
|
+
AppEmbedData_CardStyles_Type2 = /* @__PURE__ */ ((AppEmbedData_CardStyles_Type22) => {
|
|
17316
|
+
AppEmbedData_CardStyles_Type22["CONTAINED"] = "CONTAINED";
|
|
17317
|
+
AppEmbedData_CardStyles_Type22["FRAMELESS"] = "FRAMELESS";
|
|
17318
|
+
AppEmbedData_CardStyles_Type22["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
17319
|
+
return AppEmbedData_CardStyles_Type22;
|
|
17320
|
+
})(AppEmbedData_CardStyles_Type2 || {});
|
|
17321
|
+
AppEmbedData_CardStyles_Alignment2 = /* @__PURE__ */ ((AppEmbedData_CardStyles_Alignment22) => {
|
|
17322
|
+
AppEmbedData_CardStyles_Alignment22["START"] = "START";
|
|
17323
|
+
AppEmbedData_CardStyles_Alignment22["CENTER"] = "CENTER";
|
|
17324
|
+
AppEmbedData_CardStyles_Alignment22["END"] = "END";
|
|
17325
|
+
AppEmbedData_CardStyles_Alignment22["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
17326
|
+
return AppEmbedData_CardStyles_Alignment22;
|
|
17327
|
+
})(AppEmbedData_CardStyles_Alignment2 || {});
|
|
17336
17328
|
AppEmbedData_CardStyles_Layout = /* @__PURE__ */ ((AppEmbedData_CardStyles_Layout2) => {
|
|
17337
17329
|
AppEmbedData_CardStyles_Layout2["STACKED"] = "STACKED";
|
|
17338
17330
|
AppEmbedData_CardStyles_Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
|
|
@@ -17346,16 +17338,16 @@ var init_plugin_app_embed = __esm({
|
|
|
17346
17338
|
init_plugin_app_embed_enums();
|
|
17347
17339
|
({ type: AppEmbedData_AppType2.PRODUCT });
|
|
17348
17340
|
({
|
|
17349
|
-
imagePosition:
|
|
17350
|
-
aspectRatio:
|
|
17351
|
-
resizing:
|
|
17341
|
+
imagePosition: AppEmbedData_ImageStyles_Position2.START,
|
|
17342
|
+
aspectRatio: AppEmbedData_ImageStyles_AspectRatio2.SQUARE,
|
|
17343
|
+
resizing: AppEmbedData_ImageStyles_Resizing2.FILL
|
|
17352
17344
|
});
|
|
17353
17345
|
({
|
|
17354
|
-
ribbonPlacement:
|
|
17346
|
+
ribbonPlacement: AppEmbedData_RibbonStyles_Placement2.IMAGE
|
|
17355
17347
|
});
|
|
17356
17348
|
({
|
|
17357
|
-
type:
|
|
17358
|
-
alignment:
|
|
17349
|
+
type: AppEmbedData_CardStyles_Type2.CONTAINED,
|
|
17350
|
+
alignment: AppEmbedData_CardStyles_Alignment2.START,
|
|
17359
17351
|
titlePriceLayout: AppEmbedData_CardStyles_Layout.STACKED
|
|
17360
17352
|
});
|
|
17361
17353
|
}
|
|
@@ -19833,259 +19825,6 @@ var init_consts2 = __esm({
|
|
|
19833
19825
|
}
|
|
19834
19826
|
});
|
|
19835
19827
|
|
|
19836
|
-
// ../../node_modules/fp-ts-esm/es6/boolean.js
|
|
19837
|
-
var Eq3, SemigroupAll, SemigroupAny, MonoidAll, MonoidAny;
|
|
19838
|
-
var init_boolean = __esm({
|
|
19839
|
-
"../../node_modules/fp-ts-esm/es6/boolean.js"() {
|
|
19840
|
-
Eq3 = {
|
|
19841
|
-
equals: (first2, second) => first2 === second
|
|
19842
|
-
};
|
|
19843
|
-
SemigroupAll = {
|
|
19844
|
-
concat: (first2, second) => first2 && second
|
|
19845
|
-
};
|
|
19846
|
-
SemigroupAny = {
|
|
19847
|
-
concat: (first2, second) => first2 || second
|
|
19848
|
-
};
|
|
19849
|
-
MonoidAll = {
|
|
19850
|
-
concat: SemigroupAll.concat,
|
|
19851
|
-
empty: true
|
|
19852
|
-
};
|
|
19853
|
-
MonoidAny = {
|
|
19854
|
-
concat: SemigroupAny.concat,
|
|
19855
|
-
empty: false
|
|
19856
|
-
};
|
|
19857
|
-
({
|
|
19858
|
-
equals: Eq3.equals,
|
|
19859
|
-
compare: (first2, second) => first2 < second ? -1 : first2 > second ? 1 : 0
|
|
19860
|
-
});
|
|
19861
|
-
}
|
|
19862
|
-
});
|
|
19863
|
-
|
|
19864
|
-
// ../../node_modules/fp-ts-esm/es6/Endomorphism.js
|
|
19865
|
-
var init_Endomorphism = __esm({
|
|
19866
|
-
"../../node_modules/fp-ts-esm/es6/Endomorphism.js"() {
|
|
19867
|
-
init_function();
|
|
19868
|
-
}
|
|
19869
|
-
});
|
|
19870
|
-
|
|
19871
|
-
// ../../node_modules/fp-ts-esm/es6/Monoid.js
|
|
19872
|
-
var struct2, concatAll4, fold2, monoidAll, monoidAny;
|
|
19873
|
-
var init_Monoid = __esm({
|
|
19874
|
-
"../../node_modules/fp-ts-esm/es6/Monoid.js"() {
|
|
19875
|
-
init_Endomorphism();
|
|
19876
|
-
init_function();
|
|
19877
|
-
init_internal();
|
|
19878
|
-
init_Semigroup();
|
|
19879
|
-
struct2 = (monoids) => {
|
|
19880
|
-
const empty4 = {};
|
|
19881
|
-
for (const k3 in monoids) {
|
|
19882
|
-
if (has.call(monoids, k3)) {
|
|
19883
|
-
empty4[k3] = monoids[k3].empty;
|
|
19884
|
-
}
|
|
19885
|
-
}
|
|
19886
|
-
return {
|
|
19887
|
-
concat: struct(monoids).concat,
|
|
19888
|
-
empty: empty4
|
|
19889
|
-
};
|
|
19890
|
-
};
|
|
19891
|
-
concatAll4 = (M2) => concatAll2(M2)(M2.empty);
|
|
19892
|
-
({
|
|
19893
|
-
concat: semigroupVoid.concat,
|
|
19894
|
-
empty: void 0
|
|
19895
|
-
});
|
|
19896
|
-
fold2 = concatAll4;
|
|
19897
|
-
monoidAll = {
|
|
19898
|
-
concat: semigroupAll.concat,
|
|
19899
|
-
empty: true
|
|
19900
|
-
};
|
|
19901
|
-
monoidAny = {
|
|
19902
|
-
concat: semigroupAny.concat,
|
|
19903
|
-
empty: false
|
|
19904
|
-
};
|
|
19905
|
-
({
|
|
19906
|
-
concat: semigroupString.concat,
|
|
19907
|
-
empty: ""
|
|
19908
|
-
});
|
|
19909
|
-
({
|
|
19910
|
-
concat: semigroupSum.concat,
|
|
19911
|
-
empty: 0
|
|
19912
|
-
});
|
|
19913
|
-
({
|
|
19914
|
-
concat: semigroupProduct.concat,
|
|
19915
|
-
empty: 1
|
|
19916
|
-
});
|
|
19917
|
-
}
|
|
19918
|
-
});
|
|
19919
|
-
|
|
19920
|
-
// ../../node_modules/fp-ts-esm/es6/Predicate.js
|
|
19921
|
-
var not;
|
|
19922
|
-
var init_Predicate = __esm({
|
|
19923
|
-
"../../node_modules/fp-ts-esm/es6/Predicate.js"() {
|
|
19924
|
-
init_function();
|
|
19925
|
-
not = (predicate) => (a2) => !predicate(a2);
|
|
19926
|
-
}
|
|
19927
|
-
});
|
|
19928
|
-
|
|
19929
|
-
// ../../node_modules/fp-ts-esm/es6/Option.js
|
|
19930
|
-
function fromPredicate3(predicate) {
|
|
19931
|
-
return (a2) => predicate(a2) ? some3(a2) : none2;
|
|
19932
|
-
}
|
|
19933
|
-
var none2, some3, getLeft, getRight, _map3, _ap2, _reduce2, _foldMap2, _reduceRight2, _traverse2, _alt, _filter2, _filterMap2, _extend, _partition2, _partitionMap2, URI2, getMonoid7, map4, Functor2, of4, ap4, flatMap3, reduce5, foldMap5, reduceRight5, orElse, alt, zero2, extend, compact3, defaultSeparated, separate2, Compactable, filter2, filterMap3, partition2, partitionMap2, traverse3, sequence2, Traversable, _wither, _wilt, throwError, isNone2, matchW2, match2, fold3, getOrElseW, getOrElse, fromNullable, chain, option, getFirstMonoid;
|
|
19934
|
-
var init_Option = __esm({
|
|
19935
|
-
"../../node_modules/fp-ts-esm/es6/Option.js"() {
|
|
19936
|
-
init_Applicative();
|
|
19937
|
-
init_Apply();
|
|
19938
|
-
init_Chain();
|
|
19939
|
-
init_FromEither();
|
|
19940
|
-
init_function();
|
|
19941
|
-
init_Functor();
|
|
19942
|
-
init_internal();
|
|
19943
|
-
init_Predicate();
|
|
19944
|
-
init_Semigroup();
|
|
19945
|
-
init_Separated();
|
|
19946
|
-
init_Witherable();
|
|
19947
|
-
init_Zero();
|
|
19948
|
-
none2 = none;
|
|
19949
|
-
some3 = some;
|
|
19950
|
-
getLeft = (ma2) => ma2._tag === "Right" ? none2 : some3(ma2.left);
|
|
19951
|
-
getRight = (ma2) => ma2._tag === "Left" ? none2 : some3(ma2.right);
|
|
19952
|
-
_map3 = (fa2, f) => pipe(fa2, map4(f));
|
|
19953
|
-
_ap2 = (fab, fa2) => pipe(fab, ap4(fa2));
|
|
19954
|
-
_reduce2 = (fa2, b, f) => pipe(fa2, reduce5(b, f));
|
|
19955
|
-
_foldMap2 = (M2) => {
|
|
19956
|
-
const foldMapM = foldMap5(M2);
|
|
19957
|
-
return (fa2, f) => pipe(fa2, foldMapM(f));
|
|
19958
|
-
};
|
|
19959
|
-
_reduceRight2 = (fa2, b, f) => pipe(fa2, reduceRight5(b, f));
|
|
19960
|
-
_traverse2 = (F3) => {
|
|
19961
|
-
const traverseF = traverse3(F3);
|
|
19962
|
-
return (ta2, f) => pipe(ta2, traverseF(f));
|
|
19963
|
-
};
|
|
19964
|
-
_alt = (fa2, that) => pipe(fa2, alt(that));
|
|
19965
|
-
_filter2 = (fa2, predicate) => pipe(fa2, filter2(predicate));
|
|
19966
|
-
_filterMap2 = (fa2, f) => pipe(fa2, filterMap3(f));
|
|
19967
|
-
_extend = (wa, f) => pipe(wa, extend(f));
|
|
19968
|
-
_partition2 = (fa2, predicate) => pipe(fa2, partition2(predicate));
|
|
19969
|
-
_partitionMap2 = (fa2, f) => pipe(fa2, partitionMap2(f));
|
|
19970
|
-
URI2 = "Option";
|
|
19971
|
-
getMonoid7 = (S3) => ({
|
|
19972
|
-
concat: (x, y) => isNone2(x) ? y : isNone2(y) ? x : some3(S3.concat(x.value, y.value)),
|
|
19973
|
-
empty: none2
|
|
19974
|
-
});
|
|
19975
|
-
map4 = (f) => (fa2) => isNone2(fa2) ? none2 : some3(f(fa2.value));
|
|
19976
|
-
Functor2 = {
|
|
19977
|
-
URI: URI2,
|
|
19978
|
-
map: _map3
|
|
19979
|
-
};
|
|
19980
|
-
dual(2, as(Functor2));
|
|
19981
|
-
of4 = some3;
|
|
19982
|
-
ap4 = (fa2) => (fab) => isNone2(fab) ? none2 : isNone2(fa2) ? none2 : some3(fab.value(fa2.value));
|
|
19983
|
-
flatMap3 = /* @__PURE__ */ dual(2, (ma2, f) => isNone2(ma2) ? none2 : f(ma2.value));
|
|
19984
|
-
reduce5 = (b, f) => (fa2) => isNone2(fa2) ? b : f(b, fa2.value);
|
|
19985
|
-
foldMap5 = (M2) => (f) => (fa2) => isNone2(fa2) ? M2.empty : f(fa2.value);
|
|
19986
|
-
reduceRight5 = (b, f) => (fa2) => isNone2(fa2) ? b : f(fa2.value, b);
|
|
19987
|
-
orElse = dual(2, (self2, that) => isNone2(self2) ? that() : self2);
|
|
19988
|
-
alt = orElse;
|
|
19989
|
-
zero2 = () => none2;
|
|
19990
|
-
extend = (f) => (wa) => isNone2(wa) ? none2 : some3(f(wa));
|
|
19991
|
-
compact3 = /* @__PURE__ */ flatMap3(identity);
|
|
19992
|
-
defaultSeparated = /* @__PURE__ */ separated(none2, none2);
|
|
19993
|
-
separate2 = (ma2) => isNone2(ma2) ? defaultSeparated : separated(getLeft(ma2.value), getRight(ma2.value));
|
|
19994
|
-
Compactable = {
|
|
19995
|
-
URI: URI2,
|
|
19996
|
-
compact: compact3,
|
|
19997
|
-
separate: separate2
|
|
19998
|
-
};
|
|
19999
|
-
filter2 = (predicate) => (fa2) => isNone2(fa2) ? none2 : predicate(fa2.value) ? fa2 : none2;
|
|
20000
|
-
filterMap3 = (f) => (fa2) => isNone2(fa2) ? none2 : f(fa2.value);
|
|
20001
|
-
partition2 = (predicate) => (fa2) => separated(_filter2(fa2, not(predicate)), _filter2(fa2, predicate));
|
|
20002
|
-
partitionMap2 = (f) => flow(map4(f), separate2);
|
|
20003
|
-
traverse3 = (F3) => (f) => (ta2) => isNone2(ta2) ? F3.of(none2) : F3.map(f(ta2.value), some3);
|
|
20004
|
-
sequence2 = (F3) => (ta2) => isNone2(ta2) ? F3.of(none2) : F3.map(ta2.value, some3);
|
|
20005
|
-
Traversable = {
|
|
20006
|
-
URI: URI2,
|
|
20007
|
-
map: _map3,
|
|
20008
|
-
reduce: _reduce2,
|
|
20009
|
-
foldMap: _foldMap2,
|
|
20010
|
-
reduceRight: _reduceRight2,
|
|
20011
|
-
traverse: _traverse2,
|
|
20012
|
-
sequence: sequence2
|
|
20013
|
-
};
|
|
20014
|
-
_wither = /* @__PURE__ */ witherDefault(Traversable, Compactable);
|
|
20015
|
-
_wilt = /* @__PURE__ */ wiltDefault(Traversable, Compactable);
|
|
20016
|
-
throwError = () => none2;
|
|
20017
|
-
isNone2 = (fa2) => fa2._tag === "None";
|
|
20018
|
-
matchW2 = (onNone, onSome) => (ma2) => isNone2(ma2) ? onNone() : onSome(ma2.value);
|
|
20019
|
-
match2 = matchW2;
|
|
20020
|
-
fold3 = match2;
|
|
20021
|
-
getOrElseW = (onNone) => (ma2) => isNone2(ma2) ? onNone() : ma2.value;
|
|
20022
|
-
getOrElse = getOrElseW;
|
|
20023
|
-
fromNullable = (a2) => a2 == null ? none2 : some3(a2);
|
|
20024
|
-
chain = flatMap3;
|
|
20025
|
-
option = {
|
|
20026
|
-
URI: URI2,
|
|
20027
|
-
map: _map3,
|
|
20028
|
-
of: of4,
|
|
20029
|
-
ap: _ap2,
|
|
20030
|
-
chain: flatMap3,
|
|
20031
|
-
reduce: _reduce2,
|
|
20032
|
-
foldMap: _foldMap2,
|
|
20033
|
-
reduceRight: _reduceRight2,
|
|
20034
|
-
traverse: _traverse2,
|
|
20035
|
-
sequence: sequence2,
|
|
20036
|
-
zero: zero2,
|
|
20037
|
-
alt: _alt,
|
|
20038
|
-
extend: _extend,
|
|
20039
|
-
compact: compact3,
|
|
20040
|
-
separate: separate2,
|
|
20041
|
-
filter: _filter2,
|
|
20042
|
-
filterMap: _filterMap2,
|
|
20043
|
-
partition: _partition2,
|
|
20044
|
-
partitionMap: _partitionMap2,
|
|
20045
|
-
wither: _wither,
|
|
20046
|
-
wilt: _wilt,
|
|
20047
|
-
throwError
|
|
20048
|
-
};
|
|
20049
|
-
getFirstMonoid = () => getMonoid7(first());
|
|
20050
|
-
}
|
|
20051
|
-
});
|
|
20052
|
-
|
|
20053
|
-
// ../../node_modules/@wix/ricos/dist/es/ricos-content/fp-utils.js
|
|
20054
|
-
var firstRight2, concatApply;
|
|
20055
|
-
var init_fp_utils = __esm({
|
|
20056
|
-
"../../node_modules/@wix/ricos/dist/es/ricos-content/fp-utils.js"() {
|
|
20057
|
-
init_Array();
|
|
20058
|
-
init_boolean();
|
|
20059
|
-
init_Either();
|
|
20060
|
-
init_function();
|
|
20061
|
-
init_Monoid();
|
|
20062
|
-
init_Option();
|
|
20063
|
-
init_Semigroup();
|
|
20064
|
-
firstRight2 = (candidate, defaultT, resolvers) => {
|
|
20065
|
-
const firstRightSemi = getSemigroup3(first());
|
|
20066
|
-
const concatFirstRightSemi = concatAll2(firstRightSemi)(left2(defaultT));
|
|
20067
|
-
return pipe(
|
|
20068
|
-
concatFirstRightSemi(
|
|
20069
|
-
pipe(
|
|
20070
|
-
resolvers,
|
|
20071
|
-
map(
|
|
20072
|
-
(r3) => pipe(
|
|
20073
|
-
candidate,
|
|
20074
|
-
fromPredicate2(r3[0], () => defaultT),
|
|
20075
|
-
map3(r3[1])
|
|
20076
|
-
)
|
|
20077
|
-
)
|
|
20078
|
-
)
|
|
20079
|
-
),
|
|
20080
|
-
fold(identity, identity)
|
|
20081
|
-
);
|
|
20082
|
-
};
|
|
20083
|
-
concatApply = (m) => (fns) => (data) => pipe(fns, ap(of3(data)), concatAll4(m));
|
|
20084
|
-
concatApply(MonoidAll);
|
|
20085
|
-
concatApply(MonoidAny);
|
|
20086
|
-
}
|
|
20087
|
-
});
|
|
20088
|
-
|
|
20089
19828
|
// ../../node_modules/@wix/ricos/dist/es/ricos-content/get-text-direction.js
|
|
20090
19829
|
var RTL, LTR, isRtlRegex, isLtrRegex, emojiRegex, getTextDirection;
|
|
20091
19830
|
var init_get_text_direction = __esm({
|
|
@@ -20560,7 +20299,7 @@ var init_linkify_it = __esm({
|
|
|
20560
20299
|
}
|
|
20561
20300
|
return this.__compiled__[schema.toLowerCase()].validate(text, pos, this);
|
|
20562
20301
|
};
|
|
20563
|
-
LinkifyIt.prototype.match = function
|
|
20302
|
+
LinkifyIt.prototype.match = function match2(text) {
|
|
20564
20303
|
const result2 = [];
|
|
20565
20304
|
let shift = 0;
|
|
20566
20305
|
if (this.__index__ >= 0 && this.__text_cache__ === text) {
|
|
@@ -20656,7 +20395,7 @@ function unfoldTree(b, f) {
|
|
|
20656
20395
|
function unfoldForest(bs2, f) {
|
|
20657
20396
|
return bs2.map((b) => unfoldTree(b, f));
|
|
20658
20397
|
}
|
|
20659
|
-
var
|
|
20398
|
+
var _map3, _ap2, _reduce2, _foldMap2, _reduceRight2, _extend, _traverse2, flatMap3, extend, map4, reduce5, foldMap5, reduceRight5, extract2, traverse3, sequence2, of4, URI2, tree;
|
|
20660
20399
|
var init_Tree = __esm({
|
|
20661
20400
|
"../../node_modules/fp-ts-esm/es6/Tree.js"() {
|
|
20662
20401
|
init_Apply();
|
|
@@ -20666,54 +20405,54 @@ var init_Tree = __esm({
|
|
|
20666
20405
|
init_function();
|
|
20667
20406
|
init_Functor();
|
|
20668
20407
|
init_internal();
|
|
20669
|
-
|
|
20670
|
-
|
|
20671
|
-
|
|
20672
|
-
|
|
20673
|
-
const foldMapM =
|
|
20408
|
+
_map3 = (fa2, f) => pipe(fa2, map4(f));
|
|
20409
|
+
_ap2 = (fab, fa2) => flatMap3(fab, (f) => pipe(fa2, map4(f)));
|
|
20410
|
+
_reduce2 = (fa2, b, f) => pipe(fa2, reduce5(b, f));
|
|
20411
|
+
_foldMap2 = (M2) => {
|
|
20412
|
+
const foldMapM = foldMap5(M2);
|
|
20674
20413
|
return (fa2, f) => pipe(fa2, foldMapM(f));
|
|
20675
20414
|
};
|
|
20676
|
-
|
|
20677
|
-
|
|
20678
|
-
|
|
20679
|
-
const traverseF =
|
|
20415
|
+
_reduceRight2 = (fa2, b, f) => pipe(fa2, reduceRight5(b, f));
|
|
20416
|
+
_extend = (wa, f) => pipe(wa, extend(f));
|
|
20417
|
+
_traverse2 = (F3) => {
|
|
20418
|
+
const traverseF = traverse3(F3);
|
|
20680
20419
|
return (ta2, f) => pipe(ta2, traverseF(f));
|
|
20681
20420
|
};
|
|
20682
|
-
|
|
20421
|
+
flatMap3 = /* @__PURE__ */ dual(2, (ma2, f) => {
|
|
20683
20422
|
const { value, forest } = f(ma2.value);
|
|
20684
20423
|
const concat = getMonoid2().concat;
|
|
20685
20424
|
return {
|
|
20686
20425
|
value,
|
|
20687
|
-
forest: concat(forest, ma2.forest.map(
|
|
20426
|
+
forest: concat(forest, ma2.forest.map(flatMap3(f)))
|
|
20688
20427
|
};
|
|
20689
20428
|
});
|
|
20690
|
-
|
|
20429
|
+
extend = (f) => (wa) => ({
|
|
20691
20430
|
value: f(wa),
|
|
20692
|
-
forest: wa.forest.map(
|
|
20431
|
+
forest: wa.forest.map(extend(f))
|
|
20693
20432
|
});
|
|
20694
|
-
|
|
20433
|
+
map4 = (f) => (fa2) => ({
|
|
20695
20434
|
value: f(fa2.value),
|
|
20696
|
-
forest: fa2.forest.map(
|
|
20435
|
+
forest: fa2.forest.map(map4(f))
|
|
20697
20436
|
});
|
|
20698
|
-
|
|
20437
|
+
reduce5 = (b, f) => (fa2) => {
|
|
20699
20438
|
let r3 = f(b, fa2.value);
|
|
20700
20439
|
const len = fa2.forest.length;
|
|
20701
20440
|
for (let i = 0; i < len; i++) {
|
|
20702
|
-
r3 = pipe(fa2.forest[i],
|
|
20441
|
+
r3 = pipe(fa2.forest[i], reduce5(r3, f));
|
|
20703
20442
|
}
|
|
20704
20443
|
return r3;
|
|
20705
20444
|
};
|
|
20706
|
-
|
|
20707
|
-
|
|
20445
|
+
foldMap5 = (M2) => (f) => reduce5(M2.empty, (acc, a2) => M2.concat(acc, f(a2)));
|
|
20446
|
+
reduceRight5 = (b, f) => (fa2) => {
|
|
20708
20447
|
let r3 = b;
|
|
20709
20448
|
const len = fa2.forest.length;
|
|
20710
20449
|
for (let i = len - 1; i >= 0; i--) {
|
|
20711
|
-
r3 = pipe(fa2.forest[i],
|
|
20450
|
+
r3 = pipe(fa2.forest[i], reduceRight5(r3, f));
|
|
20712
20451
|
}
|
|
20713
20452
|
return f(fa2.value, r3);
|
|
20714
20453
|
};
|
|
20715
20454
|
extract2 = (wa) => wa.value;
|
|
20716
|
-
|
|
20455
|
+
traverse3 = (F3) => {
|
|
20717
20456
|
const traverseF = traverse(F3);
|
|
20718
20457
|
const out = (f) => (ta2) => F3.ap(F3.map(f(ta2.value), (value) => (forest) => ({
|
|
20719
20458
|
value,
|
|
@@ -20721,22 +20460,22 @@ var init_Tree = __esm({
|
|
|
20721
20460
|
})), pipe(ta2.forest, traverseF(out(f))));
|
|
20722
20461
|
return out;
|
|
20723
20462
|
};
|
|
20724
|
-
|
|
20725
|
-
|
|
20726
|
-
|
|
20463
|
+
sequence2 = (F3) => traverse3(F3)(identity);
|
|
20464
|
+
of4 = (a2) => make(a2);
|
|
20465
|
+
URI2 = "Tree";
|
|
20727
20466
|
tree = {
|
|
20728
|
-
URI:
|
|
20729
|
-
map:
|
|
20730
|
-
of:
|
|
20731
|
-
ap:
|
|
20732
|
-
chain:
|
|
20733
|
-
reduce:
|
|
20734
|
-
foldMap:
|
|
20735
|
-
reduceRight:
|
|
20736
|
-
traverse:
|
|
20737
|
-
sequence:
|
|
20467
|
+
URI: URI2,
|
|
20468
|
+
map: _map3,
|
|
20469
|
+
of: of4,
|
|
20470
|
+
ap: _ap2,
|
|
20471
|
+
chain: flatMap3,
|
|
20472
|
+
reduce: _reduce2,
|
|
20473
|
+
foldMap: _foldMap2,
|
|
20474
|
+
reduceRight: _reduceRight2,
|
|
20475
|
+
traverse: _traverse2,
|
|
20476
|
+
sequence: sequence2,
|
|
20738
20477
|
extract: extract2,
|
|
20739
|
-
extend:
|
|
20478
|
+
extend: _extend
|
|
20740
20479
|
};
|
|
20741
20480
|
}
|
|
20742
20481
|
});
|
|
@@ -20744,31 +20483,220 @@ var init_Tree = __esm({
|
|
|
20744
20483
|
// ../../node_modules/fp-ts-esm/es6/Const.js
|
|
20745
20484
|
function getApply(S3) {
|
|
20746
20485
|
return {
|
|
20747
|
-
URI:
|
|
20486
|
+
URI: URI3,
|
|
20748
20487
|
_E: void 0,
|
|
20749
|
-
map:
|
|
20488
|
+
map: _map4,
|
|
20750
20489
|
ap: (fab, fa2) => make2(S3.concat(fab, fa2))
|
|
20751
20490
|
};
|
|
20752
20491
|
}
|
|
20753
20492
|
function getApplicative(M2) {
|
|
20754
20493
|
const A = getApply(M2);
|
|
20755
20494
|
return {
|
|
20756
|
-
URI:
|
|
20495
|
+
URI: URI3,
|
|
20757
20496
|
_E: void 0,
|
|
20758
20497
|
map: A.map,
|
|
20759
20498
|
ap: A.ap,
|
|
20760
20499
|
of: () => make2(M2.empty)
|
|
20761
20500
|
};
|
|
20762
20501
|
}
|
|
20763
|
-
var make2,
|
|
20502
|
+
var make2, _map4, map5, URI3;
|
|
20764
20503
|
var init_Const = __esm({
|
|
20765
20504
|
"../../node_modules/fp-ts-esm/es6/Const.js"() {
|
|
20766
20505
|
init_function();
|
|
20767
20506
|
init_Functor();
|
|
20768
20507
|
make2 = unsafeCoerce;
|
|
20508
|
+
_map4 = (fa2, f) => pipe(fa2, map5(f));
|
|
20509
|
+
map5 = () => unsafeCoerce;
|
|
20510
|
+
URI3 = "Const";
|
|
20511
|
+
}
|
|
20512
|
+
});
|
|
20513
|
+
|
|
20514
|
+
// ../../node_modules/fp-ts-esm/es6/Endomorphism.js
|
|
20515
|
+
var init_Endomorphism = __esm({
|
|
20516
|
+
"../../node_modules/fp-ts-esm/es6/Endomorphism.js"() {
|
|
20517
|
+
init_function();
|
|
20518
|
+
}
|
|
20519
|
+
});
|
|
20520
|
+
|
|
20521
|
+
// ../../node_modules/fp-ts-esm/es6/Monoid.js
|
|
20522
|
+
var struct2, concatAll4, fold2, monoidAll, monoidAny;
|
|
20523
|
+
var init_Monoid = __esm({
|
|
20524
|
+
"../../node_modules/fp-ts-esm/es6/Monoid.js"() {
|
|
20525
|
+
init_Endomorphism();
|
|
20526
|
+
init_function();
|
|
20527
|
+
init_internal();
|
|
20528
|
+
init_Semigroup();
|
|
20529
|
+
struct2 = (monoids) => {
|
|
20530
|
+
const empty4 = {};
|
|
20531
|
+
for (const k3 in monoids) {
|
|
20532
|
+
if (has.call(monoids, k3)) {
|
|
20533
|
+
empty4[k3] = monoids[k3].empty;
|
|
20534
|
+
}
|
|
20535
|
+
}
|
|
20536
|
+
return {
|
|
20537
|
+
concat: struct(monoids).concat,
|
|
20538
|
+
empty: empty4
|
|
20539
|
+
};
|
|
20540
|
+
};
|
|
20541
|
+
concatAll4 = (M2) => concatAll2(M2)(M2.empty);
|
|
20542
|
+
({
|
|
20543
|
+
concat: semigroupVoid.concat,
|
|
20544
|
+
empty: void 0
|
|
20545
|
+
});
|
|
20546
|
+
fold2 = concatAll4;
|
|
20547
|
+
monoidAll = {
|
|
20548
|
+
concat: semigroupAll.concat,
|
|
20549
|
+
empty: true
|
|
20550
|
+
};
|
|
20551
|
+
monoidAny = {
|
|
20552
|
+
concat: semigroupAny.concat,
|
|
20553
|
+
empty: false
|
|
20554
|
+
};
|
|
20555
|
+
({
|
|
20556
|
+
concat: semigroupString.concat,
|
|
20557
|
+
empty: ""
|
|
20558
|
+
});
|
|
20559
|
+
({
|
|
20560
|
+
concat: semigroupSum.concat,
|
|
20561
|
+
empty: 0
|
|
20562
|
+
});
|
|
20563
|
+
({
|
|
20564
|
+
concat: semigroupProduct.concat,
|
|
20565
|
+
empty: 1
|
|
20566
|
+
});
|
|
20567
|
+
}
|
|
20568
|
+
});
|
|
20569
|
+
|
|
20570
|
+
// ../../node_modules/fp-ts-esm/es6/Predicate.js
|
|
20571
|
+
var not;
|
|
20572
|
+
var init_Predicate = __esm({
|
|
20573
|
+
"../../node_modules/fp-ts-esm/es6/Predicate.js"() {
|
|
20574
|
+
init_function();
|
|
20575
|
+
not = (predicate) => (a2) => !predicate(a2);
|
|
20576
|
+
}
|
|
20577
|
+
});
|
|
20578
|
+
|
|
20579
|
+
// ../../node_modules/fp-ts-esm/es6/Option.js
|
|
20580
|
+
function fromPredicate3(predicate) {
|
|
20581
|
+
return (a2) => predicate(a2) ? some3(a2) : none2;
|
|
20582
|
+
}
|
|
20583
|
+
var none2, some3, getLeft, getRight, _map5, _ap3, _reduce3, _foldMap3, _reduceRight3, _traverse3, _alt, _filter2, _filterMap2, _extend2, _partition2, _partitionMap2, URI4, getMonoid7, map6, Functor2, of5, ap4, flatMap4, reduce6, foldMap6, reduceRight6, orElse, alt, zero2, extend2, compact3, defaultSeparated, separate2, Compactable, filter2, filterMap3, partition2, partitionMap2, traverse4, sequence3, Traversable, _wither, _wilt, throwError, isNone2, matchW2, match3, fold3, getOrElseW, getOrElse, fromNullable, chain, option, getFirstMonoid;
|
|
20584
|
+
var init_Option = __esm({
|
|
20585
|
+
"../../node_modules/fp-ts-esm/es6/Option.js"() {
|
|
20586
|
+
init_Applicative();
|
|
20587
|
+
init_Apply();
|
|
20588
|
+
init_Chain();
|
|
20589
|
+
init_FromEither();
|
|
20590
|
+
init_function();
|
|
20591
|
+
init_Functor();
|
|
20592
|
+
init_internal();
|
|
20593
|
+
init_Predicate();
|
|
20594
|
+
init_Semigroup();
|
|
20595
|
+
init_Separated();
|
|
20596
|
+
init_Witherable();
|
|
20597
|
+
init_Zero();
|
|
20598
|
+
none2 = none;
|
|
20599
|
+
some3 = some;
|
|
20600
|
+
getLeft = (ma2) => ma2._tag === "Right" ? none2 : some3(ma2.left);
|
|
20601
|
+
getRight = (ma2) => ma2._tag === "Left" ? none2 : some3(ma2.right);
|
|
20769
20602
|
_map5 = (fa2, f) => pipe(fa2, map6(f));
|
|
20770
|
-
|
|
20771
|
-
|
|
20603
|
+
_ap3 = (fab, fa2) => pipe(fab, ap4(fa2));
|
|
20604
|
+
_reduce3 = (fa2, b, f) => pipe(fa2, reduce6(b, f));
|
|
20605
|
+
_foldMap3 = (M2) => {
|
|
20606
|
+
const foldMapM = foldMap6(M2);
|
|
20607
|
+
return (fa2, f) => pipe(fa2, foldMapM(f));
|
|
20608
|
+
};
|
|
20609
|
+
_reduceRight3 = (fa2, b, f) => pipe(fa2, reduceRight6(b, f));
|
|
20610
|
+
_traverse3 = (F3) => {
|
|
20611
|
+
const traverseF = traverse4(F3);
|
|
20612
|
+
return (ta2, f) => pipe(ta2, traverseF(f));
|
|
20613
|
+
};
|
|
20614
|
+
_alt = (fa2, that) => pipe(fa2, alt(that));
|
|
20615
|
+
_filter2 = (fa2, predicate) => pipe(fa2, filter2(predicate));
|
|
20616
|
+
_filterMap2 = (fa2, f) => pipe(fa2, filterMap3(f));
|
|
20617
|
+
_extend2 = (wa, f) => pipe(wa, extend2(f));
|
|
20618
|
+
_partition2 = (fa2, predicate) => pipe(fa2, partition2(predicate));
|
|
20619
|
+
_partitionMap2 = (fa2, f) => pipe(fa2, partitionMap2(f));
|
|
20620
|
+
URI4 = "Option";
|
|
20621
|
+
getMonoid7 = (S3) => ({
|
|
20622
|
+
concat: (x, y) => isNone2(x) ? y : isNone2(y) ? x : some3(S3.concat(x.value, y.value)),
|
|
20623
|
+
empty: none2
|
|
20624
|
+
});
|
|
20625
|
+
map6 = (f) => (fa2) => isNone2(fa2) ? none2 : some3(f(fa2.value));
|
|
20626
|
+
Functor2 = {
|
|
20627
|
+
URI: URI4,
|
|
20628
|
+
map: _map5
|
|
20629
|
+
};
|
|
20630
|
+
dual(2, as(Functor2));
|
|
20631
|
+
of5 = some3;
|
|
20632
|
+
ap4 = (fa2) => (fab) => isNone2(fab) ? none2 : isNone2(fa2) ? none2 : some3(fab.value(fa2.value));
|
|
20633
|
+
flatMap4 = /* @__PURE__ */ dual(2, (ma2, f) => isNone2(ma2) ? none2 : f(ma2.value));
|
|
20634
|
+
reduce6 = (b, f) => (fa2) => isNone2(fa2) ? b : f(b, fa2.value);
|
|
20635
|
+
foldMap6 = (M2) => (f) => (fa2) => isNone2(fa2) ? M2.empty : f(fa2.value);
|
|
20636
|
+
reduceRight6 = (b, f) => (fa2) => isNone2(fa2) ? b : f(fa2.value, b);
|
|
20637
|
+
orElse = dual(2, (self2, that) => isNone2(self2) ? that() : self2);
|
|
20638
|
+
alt = orElse;
|
|
20639
|
+
zero2 = () => none2;
|
|
20640
|
+
extend2 = (f) => (wa) => isNone2(wa) ? none2 : some3(f(wa));
|
|
20641
|
+
compact3 = /* @__PURE__ */ flatMap4(identity);
|
|
20642
|
+
defaultSeparated = /* @__PURE__ */ separated(none2, none2);
|
|
20643
|
+
separate2 = (ma2) => isNone2(ma2) ? defaultSeparated : separated(getLeft(ma2.value), getRight(ma2.value));
|
|
20644
|
+
Compactable = {
|
|
20645
|
+
URI: URI4,
|
|
20646
|
+
compact: compact3,
|
|
20647
|
+
separate: separate2
|
|
20648
|
+
};
|
|
20649
|
+
filter2 = (predicate) => (fa2) => isNone2(fa2) ? none2 : predicate(fa2.value) ? fa2 : none2;
|
|
20650
|
+
filterMap3 = (f) => (fa2) => isNone2(fa2) ? none2 : f(fa2.value);
|
|
20651
|
+
partition2 = (predicate) => (fa2) => separated(_filter2(fa2, not(predicate)), _filter2(fa2, predicate));
|
|
20652
|
+
partitionMap2 = (f) => flow(map6(f), separate2);
|
|
20653
|
+
traverse4 = (F3) => (f) => (ta2) => isNone2(ta2) ? F3.of(none2) : F3.map(f(ta2.value), some3);
|
|
20654
|
+
sequence3 = (F3) => (ta2) => isNone2(ta2) ? F3.of(none2) : F3.map(ta2.value, some3);
|
|
20655
|
+
Traversable = {
|
|
20656
|
+
URI: URI4,
|
|
20657
|
+
map: _map5,
|
|
20658
|
+
reduce: _reduce3,
|
|
20659
|
+
foldMap: _foldMap3,
|
|
20660
|
+
reduceRight: _reduceRight3,
|
|
20661
|
+
traverse: _traverse3,
|
|
20662
|
+
sequence: sequence3
|
|
20663
|
+
};
|
|
20664
|
+
_wither = /* @__PURE__ */ witherDefault(Traversable, Compactable);
|
|
20665
|
+
_wilt = /* @__PURE__ */ wiltDefault(Traversable, Compactable);
|
|
20666
|
+
throwError = () => none2;
|
|
20667
|
+
isNone2 = (fa2) => fa2._tag === "None";
|
|
20668
|
+
matchW2 = (onNone, onSome) => (ma2) => isNone2(ma2) ? onNone() : onSome(ma2.value);
|
|
20669
|
+
match3 = matchW2;
|
|
20670
|
+
fold3 = match3;
|
|
20671
|
+
getOrElseW = (onNone) => (ma2) => isNone2(ma2) ? onNone() : ma2.value;
|
|
20672
|
+
getOrElse = getOrElseW;
|
|
20673
|
+
fromNullable = (a2) => a2 == null ? none2 : some3(a2);
|
|
20674
|
+
chain = flatMap4;
|
|
20675
|
+
option = {
|
|
20676
|
+
URI: URI4,
|
|
20677
|
+
map: _map5,
|
|
20678
|
+
of: of5,
|
|
20679
|
+
ap: _ap3,
|
|
20680
|
+
chain: flatMap4,
|
|
20681
|
+
reduce: _reduce3,
|
|
20682
|
+
foldMap: _foldMap3,
|
|
20683
|
+
reduceRight: _reduceRight3,
|
|
20684
|
+
traverse: _traverse3,
|
|
20685
|
+
sequence: sequence3,
|
|
20686
|
+
zero: zero2,
|
|
20687
|
+
alt: _alt,
|
|
20688
|
+
extend: _extend2,
|
|
20689
|
+
compact: compact3,
|
|
20690
|
+
separate: separate2,
|
|
20691
|
+
filter: _filter2,
|
|
20692
|
+
filterMap: _filterMap2,
|
|
20693
|
+
partition: _partition2,
|
|
20694
|
+
partitionMap: _partitionMap2,
|
|
20695
|
+
wither: _wither,
|
|
20696
|
+
wilt: _wilt,
|
|
20697
|
+
throwError
|
|
20698
|
+
};
|
|
20699
|
+
getFirstMonoid = () => getMonoid7(first());
|
|
20772
20700
|
}
|
|
20773
20701
|
});
|
|
20774
20702
|
|
|
@@ -20876,7 +20804,7 @@ var init_internal2 = __esm({
|
|
|
20876
20804
|
// @ts-expect-error
|
|
20877
20805
|
(a2) => F3.map(f(a2), (a3) => prismSet(a3)(sa2)(s))
|
|
20878
20806
|
)));
|
|
20879
|
-
prismModifyOption = (f) => (sa2) => (s) => pipe2(sa2.getOption(s),
|
|
20807
|
+
prismModifyOption = (f) => (sa2) => (s) => pipe2(sa2.getOption(s), map6((o) => {
|
|
20880
20808
|
const n = f(o);
|
|
20881
20809
|
return n === o ? s : sa2.reverseGet(n);
|
|
20882
20810
|
}));
|
|
@@ -20892,7 +20820,7 @@ var init_internal2 = __esm({
|
|
|
20892
20820
|
set: set4
|
|
20893
20821
|
});
|
|
20894
20822
|
optionalAsTraversal = (sa2) => traversal((F3) => (f) => (s) => pipe2(sa2.getOption(s), fold3(() => F3.of(s), (a2) => F3.map(f(a2), (a3) => sa2.set(a3)(s)))));
|
|
20895
|
-
optionalModifyOption = (f) => (optional3) => (s) => pipe2(optional3.getOption(s),
|
|
20823
|
+
optionalModifyOption = (f) => (optional3) => (s) => pipe2(optional3.getOption(s), map6((a2) => {
|
|
20896
20824
|
const n = f(a2);
|
|
20897
20825
|
return n === a2 ? s : optional3.set(n)(s);
|
|
20898
20826
|
}));
|
|
@@ -22373,77 +22301,7 @@ function objectToKeyValue(input) {
|
|
|
22373
22301
|
}
|
|
22374
22302
|
var WixBIHeaderName;
|
|
22375
22303
|
|
|
22376
|
-
// ../../node_modules/@wix/sdk-runtime/build/context
|
|
22377
|
-
function contextualizeRESTModuleV2(restModule, elevated) {
|
|
22378
|
-
return ((...args) => {
|
|
22379
|
-
const context = resolveContext();
|
|
22380
|
-
if (!context) {
|
|
22381
|
-
return restModule.apply(void 0, args);
|
|
22382
|
-
}
|
|
22383
|
-
return context.initWixModules(restModule, elevated).apply(void 0, args);
|
|
22384
|
-
});
|
|
22385
|
-
}
|
|
22386
|
-
var init_context_v2 = __esm({
|
|
22387
|
-
"../../node_modules/@wix/sdk-runtime/build/context-v2.js"() {
|
|
22388
|
-
init_context();
|
|
22389
|
-
}
|
|
22390
|
-
});
|
|
22391
|
-
|
|
22392
|
-
// ../../node_modules/@wix/sdk-runtime/build/context.js
|
|
22393
|
-
function resolveContext() {
|
|
22394
|
-
const oldContext = typeof $wixContext !== "undefined" && $wixContext.initWixModules ? $wixContext.initWixModules : typeof globalThis.__wix_context__ !== "undefined" && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
22395
|
-
if (oldContext) {
|
|
22396
|
-
return {
|
|
22397
|
-
// @ts-expect-error
|
|
22398
|
-
initWixModules(modules, elevated) {
|
|
22399
|
-
return runWithoutContext(() => oldContext(modules, elevated));
|
|
22400
|
-
},
|
|
22401
|
-
fetchWithAuth() {
|
|
22402
|
-
throw new Error("fetchWithAuth is not available in this context");
|
|
22403
|
-
},
|
|
22404
|
-
graphql() {
|
|
22405
|
-
throw new Error("graphql is not available in this context");
|
|
22406
|
-
}
|
|
22407
|
-
};
|
|
22408
|
-
}
|
|
22409
|
-
const contextualClient = typeof $wixContext !== "undefined" ? $wixContext.client : typeof wixContext.client !== "undefined" ? wixContext.client : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.client : void 0;
|
|
22410
|
-
const elevatedClient = typeof $wixContext !== "undefined" ? $wixContext.elevatedClient : typeof wixContext.elevatedClient !== "undefined" ? wixContext.elevatedClient : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.elevatedClient : void 0;
|
|
22411
|
-
if (!contextualClient && !elevatedClient) {
|
|
22412
|
-
return;
|
|
22413
|
-
}
|
|
22414
|
-
return {
|
|
22415
|
-
initWixModules(wixModules, elevated) {
|
|
22416
|
-
if (elevated) {
|
|
22417
|
-
if (!elevatedClient) {
|
|
22418
|
-
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");
|
|
22419
|
-
}
|
|
22420
|
-
return runWithoutContext(() => elevatedClient.use(wixModules));
|
|
22421
|
-
}
|
|
22422
|
-
if (!contextualClient) {
|
|
22423
|
-
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
22424
|
-
}
|
|
22425
|
-
return runWithoutContext(() => contextualClient.use(wixModules));
|
|
22426
|
-
},
|
|
22427
|
-
fetchWithAuth: (urlOrRequest, requestInit) => {
|
|
22428
|
-
if (!contextualClient) {
|
|
22429
|
-
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
22430
|
-
}
|
|
22431
|
-
return contextualClient.fetchWithAuth(urlOrRequest, requestInit);
|
|
22432
|
-
},
|
|
22433
|
-
getAuth() {
|
|
22434
|
-
if (!contextualClient) {
|
|
22435
|
-
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
22436
|
-
}
|
|
22437
|
-
return contextualClient.auth;
|
|
22438
|
-
},
|
|
22439
|
-
async graphql(query, variables, opts) {
|
|
22440
|
-
if (!contextualClient) {
|
|
22441
|
-
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
22442
|
-
}
|
|
22443
|
-
return contextualClient.graphql(query, variables, opts);
|
|
22444
|
-
}
|
|
22445
|
-
};
|
|
22446
|
-
}
|
|
22304
|
+
// ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/context.js
|
|
22447
22305
|
function runWithoutContext(fn) {
|
|
22448
22306
|
const globalContext = globalThis.__wix_context__;
|
|
22449
22307
|
const moduleContext = {
|
|
@@ -22474,34 +22332,8 @@ function runWithoutContext(fn) {
|
|
|
22474
22332
|
}
|
|
22475
22333
|
}
|
|
22476
22334
|
}
|
|
22477
|
-
var init_context = __esm({
|
|
22478
|
-
"../../node_modules/@wix/sdk-runtime/build/context.js"() {
|
|
22479
|
-
init_browser();
|
|
22480
|
-
init_context_v2();
|
|
22481
|
-
}
|
|
22482
|
-
});
|
|
22483
22335
|
|
|
22484
|
-
// ../../node_modules/@wix/sdk-runtime/build/
|
|
22485
|
-
var SDKRequestToRESTRequestRenameMap, RESTResponseToSDKResponseRenameMap;
|
|
22486
|
-
var init_constants2 = __esm({
|
|
22487
|
-
"../../node_modules/@wix/sdk-runtime/build/constants.js"() {
|
|
22488
|
-
SDKRequestToRESTRequestRenameMap = {
|
|
22489
|
-
_id: "id",
|
|
22490
|
-
_createdDate: "createdDate",
|
|
22491
|
-
_updatedDate: "updatedDate"
|
|
22492
|
-
};
|
|
22493
|
-
RESTResponseToSDKResponseRenameMap = {
|
|
22494
|
-
id: "_id",
|
|
22495
|
-
createdDate: "_createdDate",
|
|
22496
|
-
updatedDate: "_updatedDate"
|
|
22497
|
-
};
|
|
22498
|
-
}
|
|
22499
|
-
});
|
|
22500
|
-
|
|
22501
|
-
// ../../node_modules/@wix/sdk-runtime/build/utils.js
|
|
22502
|
-
function removeUndefinedKeys(obj) {
|
|
22503
|
-
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
|
|
22504
|
-
}
|
|
22336
|
+
// ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/utils.js
|
|
22505
22337
|
function constantCase(input) {
|
|
22506
22338
|
return split(input).map((part) => part.toLocaleUpperCase()).join("_");
|
|
22507
22339
|
}
|
|
@@ -22523,16 +22355,8 @@ function split(value) {
|
|
|
22523
22355
|
return result2.slice(start, end).split(/\0/g);
|
|
22524
22356
|
}
|
|
22525
22357
|
var SPLIT_LOWER_UPPER_RE, SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE, DEFAULT_STRIP_REGEXP;
|
|
22526
|
-
var init_utils4 = __esm({
|
|
22527
|
-
"../../node_modules/@wix/sdk-runtime/build/utils.js"() {
|
|
22528
|
-
SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
22529
|
-
SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
22530
|
-
SPLIT_REPLACE_VALUE = "$1\0$2";
|
|
22531
|
-
DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
|
|
22532
|
-
}
|
|
22533
|
-
});
|
|
22534
22358
|
|
|
22535
|
-
// ../../node_modules/@wix/sdk-runtime/build/transform-error.js
|
|
22359
|
+
// ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/transform-error.js
|
|
22536
22360
|
function transformError(httpClientError, pathsToArguments = {
|
|
22537
22361
|
explicitPathsToArguments: {},
|
|
22538
22362
|
spreadPathsToArguments: {},
|
|
@@ -22572,126 +22396,7 @@ function transformError(httpClientError, pathsToArguments = {
|
|
|
22572
22396
|
}
|
|
22573
22397
|
return buildSystemError(httpClientError);
|
|
22574
22398
|
}
|
|
22575
|
-
var isValidationError, isApplicationError, isClientError, buildValidationError, wrapError, buildApplicationError, buildSystemError
|
|
22576
|
-
var init_transform_error = __esm({
|
|
22577
|
-
"../../node_modules/@wix/sdk-runtime/build/transform-error.js"() {
|
|
22578
|
-
init_utils4();
|
|
22579
|
-
isValidationError = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
|
|
22580
|
-
isApplicationError = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
|
|
22581
|
-
isClientError = (httpClientError) => (httpClientError.response?.status ?? -1) >= 400 && (httpClientError.response?.status ?? -1) < 500;
|
|
22582
|
-
buildValidationError = (httpClientError, pathsToArguments, argumentNames) => {
|
|
22583
|
-
const validationErrorResponse = httpClientError.response?.data;
|
|
22584
|
-
const requestId = httpClientError.requestId;
|
|
22585
|
-
const { fieldViolations } = validationErrorResponse.details.validationError;
|
|
22586
|
-
const transformedFieldViolations = violationsWithRenamedFields(pathsToArguments, fieldViolations, argumentNames)?.sort((a2, b) => a2.field < b.field ? -1 : 1);
|
|
22587
|
-
const message = `INVALID_ARGUMENT: ${transformedFieldViolations?.map(({ field, description }) => `"${field}" ${description}`)?.join(", ")}`;
|
|
22588
|
-
const details = {
|
|
22589
|
-
validationError: { fieldViolations: transformedFieldViolations },
|
|
22590
|
-
requestId
|
|
22591
|
-
};
|
|
22592
|
-
return wrapError(httpClientError, {
|
|
22593
|
-
message: JSON.stringify({ message, details }, null, 2),
|
|
22594
|
-
extraProperties: {
|
|
22595
|
-
details,
|
|
22596
|
-
status: httpClientError.response?.status,
|
|
22597
|
-
requestId
|
|
22598
|
-
}
|
|
22599
|
-
});
|
|
22600
|
-
};
|
|
22601
|
-
wrapError = (baseError, { message, extraProperties }) => {
|
|
22602
|
-
return Object.assign(baseError, {
|
|
22603
|
-
...extraProperties,
|
|
22604
|
-
message
|
|
22605
|
-
});
|
|
22606
|
-
};
|
|
22607
|
-
buildApplicationError = (httpClientError) => {
|
|
22608
|
-
const status = httpClientError.response?.status;
|
|
22609
|
-
const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
|
|
22610
|
-
const message = httpClientError.response?.data?.message ?? statusText;
|
|
22611
|
-
const description = httpClientError.response?.data?.details?.applicationError?.description ?? statusText;
|
|
22612
|
-
const code = httpClientError.response?.data?.details?.applicationError?.code ?? constantCase(statusText);
|
|
22613
|
-
const data = httpClientError.response?.data?.details?.applicationError?.data ?? {};
|
|
22614
|
-
const combinedMessage = message === description ? message : `${message}: ${description}`;
|
|
22615
|
-
const details = {
|
|
22616
|
-
applicationError: {
|
|
22617
|
-
description,
|
|
22618
|
-
code,
|
|
22619
|
-
data
|
|
22620
|
-
},
|
|
22621
|
-
requestId: httpClientError.requestId
|
|
22622
|
-
};
|
|
22623
|
-
return wrapError(httpClientError, {
|
|
22624
|
-
message: JSON.stringify({ message: combinedMessage, details }, null, 2),
|
|
22625
|
-
extraProperties: {
|
|
22626
|
-
details,
|
|
22627
|
-
status,
|
|
22628
|
-
requestId: httpClientError.requestId
|
|
22629
|
-
}
|
|
22630
|
-
});
|
|
22631
|
-
};
|
|
22632
|
-
buildSystemError = (httpClientError) => {
|
|
22633
|
-
const message = httpClientError.requestId ? `System error occurred, request-id: ${httpClientError.requestId}` : `System error occurred: ${JSON.stringify(httpClientError)}`;
|
|
22634
|
-
return wrapError(httpClientError, {
|
|
22635
|
-
message,
|
|
22636
|
-
extraProperties: {
|
|
22637
|
-
requestId: httpClientError.requestId,
|
|
22638
|
-
status: httpClientError.response?.status,
|
|
22639
|
-
code: constantCase(httpClientError.response?.statusText ?? "UNKNOWN"),
|
|
22640
|
-
...!httpClientError.response && {
|
|
22641
|
-
runtimeError: httpClientError
|
|
22642
|
-
}
|
|
22643
|
-
}
|
|
22644
|
-
});
|
|
22645
|
-
};
|
|
22646
|
-
violationsWithRenamedFields = ({ spreadPathsToArguments, explicitPathsToArguments, singleArgumentUnchanged }, fieldViolations, argumentNames) => {
|
|
22647
|
-
const allPathsToArguments = {
|
|
22648
|
-
...spreadPathsToArguments,
|
|
22649
|
-
...explicitPathsToArguments
|
|
22650
|
-
};
|
|
22651
|
-
const allPathsToArgumentsKeys = Object.keys(allPathsToArguments);
|
|
22652
|
-
return fieldViolations?.filter((fieldViolation) => {
|
|
22653
|
-
const containedInAMoreSpecificViolationField = fieldViolations.some((anotherViolation) => anotherViolation.field.length > fieldViolation.field.length && anotherViolation.field.startsWith(fieldViolation.field) && allPathsToArgumentsKeys.includes(anotherViolation.field));
|
|
22654
|
-
return !containedInAMoreSpecificViolationField;
|
|
22655
|
-
}).map((fieldViolation) => {
|
|
22656
|
-
const exactMatchArgumentExpression = explicitPathsToArguments[fieldViolation.field];
|
|
22657
|
-
if (exactMatchArgumentExpression) {
|
|
22658
|
-
return {
|
|
22659
|
-
...fieldViolation,
|
|
22660
|
-
field: withRenamedArgument(exactMatchArgumentExpression, argumentNames)
|
|
22661
|
-
};
|
|
22662
|
-
}
|
|
22663
|
-
const longestPartialPathMatch = allPathsToArgumentsKeys?.sort((a2, b) => b.length - a2.length)?.find((path) => fieldViolation.field.startsWith(path));
|
|
22664
|
-
if (longestPartialPathMatch) {
|
|
22665
|
-
const partialMatchArgumentExpression = allPathsToArguments[longestPartialPathMatch];
|
|
22666
|
-
if (partialMatchArgumentExpression) {
|
|
22667
|
-
return {
|
|
22668
|
-
...fieldViolation,
|
|
22669
|
-
field: fieldViolation.field.replace(longestPartialPathMatch, withRenamedArgument(partialMatchArgumentExpression, argumentNames))
|
|
22670
|
-
};
|
|
22671
|
-
}
|
|
22672
|
-
}
|
|
22673
|
-
if (singleArgumentUnchanged) {
|
|
22674
|
-
return {
|
|
22675
|
-
...fieldViolation,
|
|
22676
|
-
field: `${argumentNames[0]}.${fieldViolation.field}`
|
|
22677
|
-
};
|
|
22678
|
-
}
|
|
22679
|
-
return fieldViolation;
|
|
22680
|
-
});
|
|
22681
|
-
};
|
|
22682
|
-
withRenamedArgument = (fieldValue, argumentNames) => {
|
|
22683
|
-
const argIndex = getArgumentIndex(fieldValue);
|
|
22684
|
-
if (argIndex !== null && typeof argIndex !== "undefined") {
|
|
22685
|
-
return fieldValue.replace(`$[${argIndex}]`, argumentNames[argIndex]);
|
|
22686
|
-
}
|
|
22687
|
-
return fieldValue;
|
|
22688
|
-
};
|
|
22689
|
-
getArgumentIndex = (s) => {
|
|
22690
|
-
const match4 = s.match(/\$\[(?<argIndex>\d+)\]/);
|
|
22691
|
-
return match4 && match4.groups && Number(match4.groups.argIndex);
|
|
22692
|
-
};
|
|
22693
|
-
}
|
|
22694
|
-
});
|
|
22399
|
+
var isValidationError, isApplicationError, isClientError, buildValidationError, wrapError, buildApplicationError, buildSystemError;
|
|
22695
22400
|
|
|
22696
22401
|
// ../../node_modules/@wix/sdk/build/rest-modules.js
|
|
22697
22402
|
function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, errorHandler, wixAPIFetch, getActiveToken, getAuthHeaders, options, hostName, useCDN, validateRequestSchema) {
|
|
@@ -22770,158 +22475,6 @@ function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, errorHandler,
|
|
|
22770
22475
|
}
|
|
22771
22476
|
var errorBuilder2;
|
|
22772
22477
|
|
|
22773
|
-
// ../../node_modules/@wix/sdk-runtime/build/rest-modules.js
|
|
22774
|
-
function createRESTModule(descriptor, elevated = false) {
|
|
22775
|
-
return contextualizeRESTModuleV2(descriptor, elevated);
|
|
22776
|
-
}
|
|
22777
|
-
function toURLSearchParams(params, isComplexRequest) {
|
|
22778
|
-
const flatten = flattenParams(params);
|
|
22779
|
-
Object.entries(flatten).some(([key, value]) => key.includes(".") || Array.isArray(value) && value.some((v) => typeof v === "object"));
|
|
22780
|
-
{
|
|
22781
|
-
return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {
|
|
22782
|
-
const keyParams = Array.isArray(value) ? value : [value];
|
|
22783
|
-
keyParams.forEach((param) => {
|
|
22784
|
-
if (param === void 0 || param === null || Array.isArray(value) && typeof param === "object") {
|
|
22785
|
-
return;
|
|
22786
|
-
}
|
|
22787
|
-
urlSearchParams.append(key, param);
|
|
22788
|
-
});
|
|
22789
|
-
return urlSearchParams;
|
|
22790
|
-
}, new URLSearchParams());
|
|
22791
|
-
}
|
|
22792
|
-
}
|
|
22793
|
-
function resolveUrl(opts) {
|
|
22794
|
-
const domain = resolveDomain(opts.host);
|
|
22795
|
-
const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);
|
|
22796
|
-
const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});
|
|
22797
|
-
return resolvePathFromMappings(path, mappings);
|
|
22798
|
-
}
|
|
22799
|
-
function flattenParams(data, path = "") {
|
|
22800
|
-
const params = {};
|
|
22801
|
-
Object.entries(data).forEach(([key, value]) => {
|
|
22802
|
-
const isObject7 = value !== null && typeof value === "object" && !Array.isArray(value);
|
|
22803
|
-
const fieldPath = resolvePath(path, key);
|
|
22804
|
-
if (isObject7) {
|
|
22805
|
-
const serializedObject = flattenParams(value, fieldPath);
|
|
22806
|
-
Object.assign(params, serializedObject);
|
|
22807
|
-
} else {
|
|
22808
|
-
params[fieldPath] = value;
|
|
22809
|
-
}
|
|
22810
|
-
});
|
|
22811
|
-
return params;
|
|
22812
|
-
}
|
|
22813
|
-
function resolvePath(path, key) {
|
|
22814
|
-
return `${path}${path ? "." : ""}${key}`;
|
|
22815
|
-
}
|
|
22816
|
-
function resolveDomain(host) {
|
|
22817
|
-
const resolvedHost = fixHostExceptions(host);
|
|
22818
|
-
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");
|
|
22819
|
-
}
|
|
22820
|
-
function fixHostExceptions(host) {
|
|
22821
|
-
return HOST_ALIASES[host] ?? host;
|
|
22822
|
-
}
|
|
22823
|
-
function resolveMappingsByDomain(domain, domainToMappings) {
|
|
22824
|
-
const mappings = domainToMappings[domain];
|
|
22825
|
-
if (mappings) {
|
|
22826
|
-
return mappings;
|
|
22827
|
-
}
|
|
22828
|
-
const matchedMappings = resolveRootDomain(domain, domainToMappings) ?? resolveWildcardDomain(domain, domainToMappings);
|
|
22829
|
-
if (!matchedMappings) {
|
|
22830
|
-
if (isBaseDomain(domain)) {
|
|
22831
|
-
const wwwMappings = domainToMappings[wwwBaseDomain];
|
|
22832
|
-
if (wwwMappings) {
|
|
22833
|
-
return wwwMappings;
|
|
22834
|
-
}
|
|
22835
|
-
}
|
|
22836
|
-
const userMappings = domainToMappings[USER_DOMAIN];
|
|
22837
|
-
if (userMappings) {
|
|
22838
|
-
return userMappings;
|
|
22839
|
-
}
|
|
22840
|
-
}
|
|
22841
|
-
return matchedMappings ?? [];
|
|
22842
|
-
}
|
|
22843
|
-
function resolveRootDomain(domain, domainToMappings) {
|
|
22844
|
-
return Object.entries(domainToMappings).find(([entryDomain]) => {
|
|
22845
|
-
const [, ...rooDomainSegments] = domain.split(".");
|
|
22846
|
-
return rooDomainSegments.join(".") === entryDomain;
|
|
22847
|
-
})?.[1];
|
|
22848
|
-
}
|
|
22849
|
-
function resolveWildcardDomain(domain, domainToMappings) {
|
|
22850
|
-
const matchingEntries = Object.entries(domainToMappings).filter(([entryDomain]) => matchesWildcardDomain(domain, entryDomain));
|
|
22851
|
-
const [mostSpecificEntry] = matchingEntries.sort(([entryDomainA], [entryDomainB]) => entryDomainB.length - entryDomainA.length);
|
|
22852
|
-
if (!mostSpecificEntry) {
|
|
22853
|
-
return void 0;
|
|
22854
|
-
}
|
|
22855
|
-
const [, mappings] = mostSpecificEntry;
|
|
22856
|
-
return mappings;
|
|
22857
|
-
}
|
|
22858
|
-
function matchesWildcardDomain(domain, entryDomain) {
|
|
22859
|
-
if (!entryDomain.startsWith(WILDCARD_PREFIX)) {
|
|
22860
|
-
return false;
|
|
22861
|
-
}
|
|
22862
|
-
const suffix = entryDomain.slice(WILDCARD_PREFIX.length - 1);
|
|
22863
|
-
return domain.length > suffix.length && domain.endsWith(suffix);
|
|
22864
|
-
}
|
|
22865
|
-
function isBaseDomain(domain) {
|
|
22866
|
-
return !!domain.match(/\._base_domain_$/);
|
|
22867
|
-
}
|
|
22868
|
-
function injectDataIntoProtoPath(protoPath, data) {
|
|
22869
|
-
return protoPath.split("/").map((path) => maybeProtoPathToData(path, data)).join("/");
|
|
22870
|
-
}
|
|
22871
|
-
function maybeProtoPathToData(protoPath, data) {
|
|
22872
|
-
const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];
|
|
22873
|
-
const field = protoRegExpMatch[1];
|
|
22874
|
-
if (field) {
|
|
22875
|
-
const suffix = protoPath.replace(protoRegExpMatch[0], "");
|
|
22876
|
-
return findByPath(data, field, protoPath, suffix);
|
|
22877
|
-
}
|
|
22878
|
-
return protoPath;
|
|
22879
|
-
}
|
|
22880
|
-
function findByPath(obj, path, defaultValue, suffix) {
|
|
22881
|
-
let result2 = obj;
|
|
22882
|
-
for (const field of path.split(".")) {
|
|
22883
|
-
if (!result2) {
|
|
22884
|
-
return defaultValue;
|
|
22885
|
-
}
|
|
22886
|
-
result2 = result2[field];
|
|
22887
|
-
}
|
|
22888
|
-
return `${result2}${suffix}`;
|
|
22889
|
-
}
|
|
22890
|
-
function resolvePathFromMappings(protoPath, mappings) {
|
|
22891
|
-
const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));
|
|
22892
|
-
if (!mapping) {
|
|
22893
|
-
return protoPath;
|
|
22894
|
-
}
|
|
22895
|
-
return mapping.srcPath + protoPath.slice(mapping.destPath.length);
|
|
22896
|
-
}
|
|
22897
|
-
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;
|
|
22898
|
-
var init_rest_modules2 = __esm({
|
|
22899
|
-
"../../node_modules/@wix/sdk-runtime/build/rest-modules.js"() {
|
|
22900
|
-
init_context_v2();
|
|
22901
|
-
init_constants2();
|
|
22902
|
-
DOMAINS = ["wix.com", "editorx.com"];
|
|
22903
|
-
USER_DOMAIN = "_";
|
|
22904
|
-
WILDCARD_PREFIX = "*.";
|
|
22905
|
-
REGEX_CAPTURE_DOMAINS = new RegExp(`\\.(${DOMAINS.join("|")})$`);
|
|
22906
|
-
WIX_API_DOMAINS = [
|
|
22907
|
-
"42.wixprod.net",
|
|
22908
|
-
"uw2-edt-1.wixprod.net",
|
|
22909
|
-
"virginia-edt.wixprod.net"
|
|
22910
|
-
];
|
|
22911
|
-
HOST_ALIASES = {
|
|
22912
|
-
// payments.base44.com runs customised Business Manager, which needs to work exactly the same as normal BM on manage.wix.com
|
|
22913
|
-
"payments.base44.com": "manage.wix.com",
|
|
22914
|
-
// https://system-kb.wixanswers.com/kb/en/article/editorx-domains-matching-to-wixcom
|
|
22915
|
-
"create.editorx.com": "editor.editorx.com"
|
|
22916
|
-
};
|
|
22917
|
-
DEV_WIX_CODE_DOMAIN = "dev.wix-code.com";
|
|
22918
|
-
REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;
|
|
22919
|
-
REGEX_CAPTURE_API_DOMAINS = new RegExp(`\\.(${WIX_API_DOMAINS.join("|")})$`);
|
|
22920
|
-
REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN = new RegExp(`.*\\.${DEV_WIX_CODE_DOMAIN}$`);
|
|
22921
|
-
wwwBaseDomain = "www._base_domain_";
|
|
22922
|
-
}
|
|
22923
|
-
});
|
|
22924
|
-
|
|
22925
22478
|
// ../../node_modules/@wix/sdk/build/modified-fields-manipulator.js
|
|
22926
22479
|
function attemptTransformationWithModifiedFields(envelope, transformFromRESTFn) {
|
|
22927
22480
|
const modifiedFields = envelope?.modifiedFields;
|
|
@@ -22977,7 +22530,7 @@ function attemptFlatten(transformedModifiedFields, modifiedFieldsManipulator) {
|
|
|
22977
22530
|
}
|
|
22978
22531
|
var ModifiedFieldsManipulator;
|
|
22979
22532
|
|
|
22980
|
-
// ../../node_modules/@wix/sdk-runtime/build/nanoevents.js
|
|
22533
|
+
// ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/nanoevents.js
|
|
22981
22534
|
function createNanoEvents() {
|
|
22982
22535
|
return {
|
|
22983
22536
|
emit(event, ...args) {
|
|
@@ -23631,28 +23184,18 @@ function isImageTypeSupported(uri) {
|
|
|
23631
23184
|
function isValidRequest(fittingType, src, target) {
|
|
23632
23185
|
return target && src && !isUrlEmptyOrNone(src.id) && Object.values(fittingTypes).includes(fittingType);
|
|
23633
23186
|
}
|
|
23634
|
-
function
|
|
23635
|
-
const isAvifWebpFormat = isWEBP(uri) || isAVIF(uri);
|
|
23636
|
-
if (!isAvifWebpFormat || !hasAnimation) {
|
|
23637
|
-
return true;
|
|
23638
|
-
}
|
|
23639
|
-
return allowAnimatedTransform;
|
|
23640
|
-
}
|
|
23641
|
-
function canTransformGIF(uri, allowAnimatedTransform, allowFullGIFTransformation) {
|
|
23187
|
+
function canTransformGIF(uri, allowFullGIFTransformation, isPlaceholderFlow) {
|
|
23642
23188
|
if (!isGIF(uri)) {
|
|
23643
23189
|
return false;
|
|
23644
23190
|
}
|
|
23645
|
-
return !!(
|
|
23191
|
+
return !!(allowFullGIFTransformation || isPlaceholderFlow);
|
|
23646
23192
|
}
|
|
23647
|
-
function isImageTransformApplicable(uri,
|
|
23193
|
+
function isImageTransformApplicable(uri, allowFullGIFTransformation, isPlaceholderFlow) {
|
|
23648
23194
|
if (isExternalUrl(uri)) {
|
|
23649
23195
|
return false;
|
|
23650
23196
|
}
|
|
23651
|
-
if (!canTransformAnimatedWebpOrAvif(uri, hasAnimation, allowAnimatedTransform)) {
|
|
23652
|
-
return false;
|
|
23653
|
-
}
|
|
23654
23197
|
const isSupportedImageType = isImageTypeSupported(uri);
|
|
23655
|
-
const isTransformableGif = canTransformGIF(uri,
|
|
23198
|
+
const isTransformableGif = canTransformGIF(uri, allowFullGIFTransformation, isPlaceholderFlow);
|
|
23656
23199
|
return isSupportedImageType || isTransformableGif;
|
|
23657
23200
|
}
|
|
23658
23201
|
function isJPG(uri) {
|
|
@@ -24258,7 +23801,7 @@ function getTransform(fittingType, src, target, options) {
|
|
|
24258
23801
|
const devicePixelRatio2 = _isSEOBot ? 1 : getDevicePixelRatio(target);
|
|
24259
23802
|
const fileExtension = getFileExtension(src.id);
|
|
24260
23803
|
const preferredExtension = fileExtension;
|
|
24261
|
-
const canTransformImage = isImageTransformApplicable(src.id, options?.
|
|
23804
|
+
const canTransformImage = isImageTransformApplicable(src.id, options?.allowFullGIFTransformation, options?.isPlaceholderFlow);
|
|
24262
23805
|
const transformsObj = {
|
|
24263
23806
|
fileName,
|
|
24264
23807
|
fileExtension,
|
|
@@ -24439,15 +23982,8 @@ var init_transforms = __esm({
|
|
|
24439
23982
|
|
|
24440
23983
|
// ../../node_modules/@wix/image-kit/dist/esm/api/uri.js
|
|
24441
23984
|
function getURI(fittingType, src, target, options = {}, transformObj) {
|
|
24442
|
-
if (isImageTransformApplicable(src.id, options?.
|
|
24443
|
-
|
|
24444
|
-
const { alignment, ...transformTarget } = target;
|
|
24445
|
-
src.focalPoint = { x: void 0, y: void 0 };
|
|
24446
|
-
delete src?.crop;
|
|
24447
|
-
transformObj = getTransform(fittingType, src, transformTarget, options);
|
|
24448
|
-
} else {
|
|
24449
|
-
transformObj = transformObj || getTransform(fittingType, src, target, options);
|
|
24450
|
-
}
|
|
23985
|
+
if (isImageTransformApplicable(src.id, options?.allowFullGIFTransformation, options?.isPlaceholderFlow)) {
|
|
23986
|
+
transformObj = transformObj || getTransform(fittingType, src, target, options);
|
|
24451
23987
|
return getImageURI(transformObj);
|
|
24452
23988
|
}
|
|
24453
23989
|
return src.id;
|
|
@@ -25944,34 +25480,202 @@ var gallery_media_default;
|
|
|
25944
25480
|
var init_gallery_media_scss = __esm({
|
|
25945
25481
|
"../../node_modules/@wix/ricos/dist/es/plugin-gallery/statics/styles/gallery-media-scss.js"() {
|
|
25946
25482
|
gallery_media_default = {
|
|
25947
|
-
"media": "
|
|
25948
|
-
"fit": "
|
|
25949
|
-
"failure": "
|
|
25950
|
-
"playButton": "
|
|
25951
|
-
"playIcon": "
|
|
25952
|
-
"navigationArrow": "
|
|
25953
|
-
"arrowStart": "
|
|
25954
|
-
"arrowEnd": "
|
|
25955
|
-
"arrowIcon": "
|
|
25956
|
-
"fill": "
|
|
25957
|
-
"intrinsic": "
|
|
25958
|
-
"cell": "
|
|
25959
|
-
"expandButton": "
|
|
25960
|
-
"expandIcon": "
|
|
25961
|
-
"expandChrome": "
|
|
25962
|
-
"expandIconGlyph": "
|
|
25963
|
-
"editorOverlay": "
|
|
25964
|
-
"horizontal": "
|
|
25965
|
-
"viewport": "
|
|
25966
|
-
"track": "
|
|
25967
|
-
"previous": "
|
|
25968
|
-
};
|
|
25969
|
-
}
|
|
25970
|
-
});
|
|
25971
|
-
var import_classnames,
|
|
25483
|
+
"media": "iizEA",
|
|
25484
|
+
"fit": "_3zeqy",
|
|
25485
|
+
"failure": "YjyUY",
|
|
25486
|
+
"playButton": "eite2",
|
|
25487
|
+
"playIcon": "okpUz",
|
|
25488
|
+
"navigationArrow": "Vvdkm",
|
|
25489
|
+
"arrowStart": "C0w3T",
|
|
25490
|
+
"arrowEnd": "OyB8O",
|
|
25491
|
+
"arrowIcon": "J0i1x",
|
|
25492
|
+
"fill": "b2o-E",
|
|
25493
|
+
"intrinsic": "Wvbdk",
|
|
25494
|
+
"cell": "PXWWe",
|
|
25495
|
+
"expandButton": "AuHrT",
|
|
25496
|
+
"expandIcon": "MGV-x",
|
|
25497
|
+
"expandChrome": "VMu-h",
|
|
25498
|
+
"expandIconGlyph": "_7dFXn",
|
|
25499
|
+
"editorOverlay": "ynMWI",
|
|
25500
|
+
"horizontal": "nDKdf",
|
|
25501
|
+
"viewport": "_4JEMd",
|
|
25502
|
+
"track": "ySUzr",
|
|
25503
|
+
"previous": "sCtZw"
|
|
25504
|
+
};
|
|
25505
|
+
}
|
|
25506
|
+
});
|
|
25507
|
+
var import_classnames, DEFAULT_TARGET_WIDTHS, GalleryMedia, GalleryImage;
|
|
25508
|
+
var init_gallery_media = __esm({
|
|
25509
|
+
"../../node_modules/@wix/ricos/dist/es/plugin-gallery/media/gallery-media.js"() {
|
|
25510
|
+
import_classnames = __toESM(require_classnames(), 1);
|
|
25511
|
+
init_gallery_media_scss();
|
|
25512
|
+
DEFAULT_TARGET_WIDTHS = [320, 640, 960, 1280, 1920];
|
|
25513
|
+
GalleryMedia = ({
|
|
25514
|
+
item,
|
|
25515
|
+
presentation,
|
|
25516
|
+
sizes,
|
|
25517
|
+
eager,
|
|
25518
|
+
runtime,
|
|
25519
|
+
targetWidths = DEFAULT_TARGET_WIDTHS
|
|
25520
|
+
}) => {
|
|
25521
|
+
const [failed, setFailed] = useState(false);
|
|
25522
|
+
const [videoStarted, setVideoStarted] = useState(false);
|
|
25523
|
+
useEffect(() => {
|
|
25524
|
+
setFailed(false);
|
|
25525
|
+
setVideoStarted(false);
|
|
25526
|
+
}, [item.id, item.source.url]);
|
|
25527
|
+
const style = { aspectRatio: `${item.width} / ${item.height}` };
|
|
25528
|
+
const interactionDeterrents = item.disableDownload ? {
|
|
25529
|
+
onContextMenu: (event) => event.preventDefault()
|
|
25530
|
+
} : {};
|
|
25531
|
+
if (failed) {
|
|
25532
|
+
return /* @__PURE__ */ React173.createElement(
|
|
25533
|
+
"span",
|
|
25534
|
+
{
|
|
25535
|
+
className: (0, import_classnames.default)(gallery_media_default.media, gallery_media_default.failure),
|
|
25536
|
+
style,
|
|
25537
|
+
"data-hook": "gallery-media-failure",
|
|
25538
|
+
"aria-hidden": "true"
|
|
25539
|
+
}
|
|
25540
|
+
);
|
|
25541
|
+
}
|
|
25542
|
+
if (item.type === "video") {
|
|
25543
|
+
if (videoStarted) {
|
|
25544
|
+
return /* @__PURE__ */ React173.createElement(
|
|
25545
|
+
"span",
|
|
25546
|
+
{
|
|
25547
|
+
className: (0, import_classnames.default)(gallery_media_default.media, gallery_media_default[presentation]),
|
|
25548
|
+
style,
|
|
25549
|
+
"data-hook": "gallery-media-video",
|
|
25550
|
+
...interactionDeterrents
|
|
25551
|
+
},
|
|
25552
|
+
/* @__PURE__ */ React173.createElement(
|
|
25553
|
+
"video",
|
|
25554
|
+
{
|
|
25555
|
+
src: item.source.url,
|
|
25556
|
+
controls: true,
|
|
25557
|
+
controlsList: item.disableDownload ? "nodownload" : void 0,
|
|
25558
|
+
playsInline: true,
|
|
25559
|
+
autoPlay: true,
|
|
25560
|
+
loop: false,
|
|
25561
|
+
muted: false,
|
|
25562
|
+
preload: eager ? "metadata" : "none",
|
|
25563
|
+
onError: () => setFailed(true)
|
|
25564
|
+
}
|
|
25565
|
+
)
|
|
25566
|
+
);
|
|
25567
|
+
}
|
|
25568
|
+
return /* @__PURE__ */ React173.createElement(
|
|
25569
|
+
"span",
|
|
25570
|
+
{
|
|
25571
|
+
className: (0, import_classnames.default)(gallery_media_default.media, gallery_media_default[presentation]),
|
|
25572
|
+
style,
|
|
25573
|
+
"data-hook": "gallery-media-video-poster",
|
|
25574
|
+
...interactionDeterrents
|
|
25575
|
+
},
|
|
25576
|
+
item.poster ? /* @__PURE__ */ React173.createElement(
|
|
25577
|
+
GalleryImage,
|
|
25578
|
+
{
|
|
25579
|
+
itemId: item.id,
|
|
25580
|
+
source: item.poster,
|
|
25581
|
+
alt: "",
|
|
25582
|
+
presentation,
|
|
25583
|
+
sizes,
|
|
25584
|
+
eager,
|
|
25585
|
+
disableDownload: item.disableDownload,
|
|
25586
|
+
runtime,
|
|
25587
|
+
targetWidths,
|
|
25588
|
+
onError: () => setFailed(true)
|
|
25589
|
+
}
|
|
25590
|
+
) : null,
|
|
25591
|
+
/* @__PURE__ */ React173.createElement(
|
|
25592
|
+
"button",
|
|
25593
|
+
{
|
|
25594
|
+
type: "button",
|
|
25595
|
+
className: gallery_media_default.playButton,
|
|
25596
|
+
"aria-label": item.title ? `${runtime.playVideoLabel}: ${item.title}` : runtime.playVideoLabel,
|
|
25597
|
+
onClick: () => setVideoStarted(true),
|
|
25598
|
+
"data-hook": "gallery-video-play"
|
|
25599
|
+
},
|
|
25600
|
+
/* @__PURE__ */ React173.createElement("span", { className: gallery_media_default.playIcon, "aria-hidden": "true" })
|
|
25601
|
+
)
|
|
25602
|
+
);
|
|
25603
|
+
}
|
|
25604
|
+
return /* @__PURE__ */ React173.createElement(
|
|
25605
|
+
"span",
|
|
25606
|
+
{
|
|
25607
|
+
className: (0, import_classnames.default)(gallery_media_default.media, gallery_media_default[presentation]),
|
|
25608
|
+
style,
|
|
25609
|
+
"data-hook": "gallery-media-image",
|
|
25610
|
+
...interactionDeterrents
|
|
25611
|
+
},
|
|
25612
|
+
/* @__PURE__ */ React173.createElement(
|
|
25613
|
+
GalleryImage,
|
|
25614
|
+
{
|
|
25615
|
+
itemId: item.id,
|
|
25616
|
+
source: item.source,
|
|
25617
|
+
alt: item.alt,
|
|
25618
|
+
presentation,
|
|
25619
|
+
sizes,
|
|
25620
|
+
eager,
|
|
25621
|
+
disableDownload: item.disableDownload,
|
|
25622
|
+
runtime,
|
|
25623
|
+
targetWidths,
|
|
25624
|
+
onError: () => setFailed(true)
|
|
25625
|
+
}
|
|
25626
|
+
)
|
|
25627
|
+
);
|
|
25628
|
+
};
|
|
25629
|
+
GalleryImage = ({
|
|
25630
|
+
itemId,
|
|
25631
|
+
source,
|
|
25632
|
+
alt: alt2,
|
|
25633
|
+
presentation,
|
|
25634
|
+
sizes,
|
|
25635
|
+
eager,
|
|
25636
|
+
disableDownload,
|
|
25637
|
+
runtime,
|
|
25638
|
+
targetWidths,
|
|
25639
|
+
targetRatio,
|
|
25640
|
+
onError
|
|
25641
|
+
}) => {
|
|
25642
|
+
const responsiveSource = runtime.createMediaUrl({
|
|
25643
|
+
source,
|
|
25644
|
+
transformMode: presentation === "fill" ? "fill" : "fit",
|
|
25645
|
+
targetWidths,
|
|
25646
|
+
targetRatio
|
|
25647
|
+
});
|
|
25648
|
+
const imageProps = runtime.imageProps?.(itemId);
|
|
25649
|
+
const imageRef = useRef(null);
|
|
25650
|
+
useEffect(() => {
|
|
25651
|
+
const image = imageRef.current;
|
|
25652
|
+
if (image?.complete && image.naturalWidth === 0) {
|
|
25653
|
+
onError();
|
|
25654
|
+
}
|
|
25655
|
+
}, [onError, responsiveSource.src]);
|
|
25656
|
+
return /* @__PURE__ */ React173.createElement(
|
|
25657
|
+
"img",
|
|
25658
|
+
{
|
|
25659
|
+
ref: imageRef,
|
|
25660
|
+
...imageProps,
|
|
25661
|
+
src: responsiveSource.src,
|
|
25662
|
+
srcSet: responsiveSource.srcSet,
|
|
25663
|
+
sizes: responsiveSource.srcSet ? sizes : void 0,
|
|
25664
|
+
alt: alt2,
|
|
25665
|
+
width: source.width,
|
|
25666
|
+
height: source.height,
|
|
25667
|
+
loading: eager ? "eager" : "lazy",
|
|
25668
|
+
draggable: disableDownload ? false : void 0,
|
|
25669
|
+
onError
|
|
25670
|
+
}
|
|
25671
|
+
);
|
|
25672
|
+
};
|
|
25673
|
+
}
|
|
25674
|
+
});
|
|
25675
|
+
var import_classnames2, NavigationArrow;
|
|
25972
25676
|
var init_navigation_arrow = __esm({
|
|
25973
25677
|
"../../node_modules/@wix/ricos/dist/es/plugin-gallery/media/navigation-arrow.js"() {
|
|
25974
|
-
|
|
25678
|
+
import_classnames2 = __toESM(require_classnames(), 1);
|
|
25975
25679
|
init_gallery_media_scss();
|
|
25976
25680
|
NavigationArrow = ({
|
|
25977
25681
|
direction,
|
|
@@ -25986,7 +25690,7 @@ var init_navigation_arrow = __esm({
|
|
|
25986
25690
|
"button",
|
|
25987
25691
|
{
|
|
25988
25692
|
type: "button",
|
|
25989
|
-
className: (0,
|
|
25693
|
+
className: (0, import_classnames2.default)(gallery_media_default.navigationArrow, className),
|
|
25990
25694
|
"aria-label": label,
|
|
25991
25695
|
"aria-disabled": disabled || void 0,
|
|
25992
25696
|
disabled: disabled && !focusableWhenDisabled,
|
|
@@ -25998,7 +25702,7 @@ var init_navigation_arrow = __esm({
|
|
|
25998
25702
|
/* @__PURE__ */ React173.createElement(
|
|
25999
25703
|
"svg",
|
|
26000
25704
|
{
|
|
26001
|
-
className: (0,
|
|
25705
|
+
className: (0, import_classnames2.default)(gallery_media_default.arrowIcon, "slideshow-arrow", {
|
|
26002
25706
|
[gallery_media_default.previous]: direction === "previous"
|
|
26003
25707
|
}),
|
|
26004
25708
|
width: "46",
|
|
@@ -26013,10 +25717,10 @@ var init_navigation_arrow = __esm({
|
|
|
26013
25717
|
);
|
|
26014
25718
|
}
|
|
26015
25719
|
});
|
|
26016
|
-
var
|
|
25720
|
+
var import_classnames3, GalleryNavigationArrows;
|
|
26017
25721
|
var init_gallery_navigation_arrows = __esm({
|
|
26018
25722
|
"../../node_modules/@wix/ricos/dist/es/plugin-gallery/media/gallery-navigation-arrows.js"() {
|
|
26019
|
-
|
|
25723
|
+
import_classnames3 = __toESM(require_classnames(), 1);
|
|
26020
25724
|
init_gallery_media_scss();
|
|
26021
25725
|
init_navigation_arrow();
|
|
26022
25726
|
GalleryNavigationArrows = ({
|
|
@@ -26037,7 +25741,7 @@ var init_gallery_navigation_arrows = __esm({
|
|
|
26037
25741
|
label: previousLabel,
|
|
26038
25742
|
disabled: previousDisabled,
|
|
26039
25743
|
onActivate: onPrevious,
|
|
26040
|
-
className: (0,
|
|
25744
|
+
className: (0, import_classnames3.default)(gallery_media_default.arrowStart, previousClassName),
|
|
26041
25745
|
focusableWhenDisabled: focusedArrow === "previous",
|
|
26042
25746
|
onFocus: () => onFocusedArrowChange("previous"),
|
|
26043
25747
|
onBlur: () => onFocusedArrowChange(void 0)
|
|
@@ -26049,7 +25753,7 @@ var init_gallery_navigation_arrows = __esm({
|
|
|
26049
25753
|
label: nextLabel,
|
|
26050
25754
|
disabled: nextDisabled,
|
|
26051
25755
|
onActivate: onNext,
|
|
26052
|
-
className: (0,
|
|
25756
|
+
className: (0, import_classnames3.default)(gallery_media_default.arrowEnd, nextClassName),
|
|
26053
25757
|
focusableWhenDisabled: focusedArrow === "next",
|
|
26054
25758
|
onFocus: () => onFocusedArrowChange("next"),
|
|
26055
25759
|
onBlur: () => onFocusedArrowChange(void 0)
|
|
@@ -26282,174 +25986,6 @@ var init_use_horizontal_navigation = __esm({
|
|
|
26282
25986
|
};
|
|
26283
25987
|
}
|
|
26284
25988
|
});
|
|
26285
|
-
var import_classnames3, DEFAULT_TARGET_WIDTHS, GalleryMedia, GalleryImage;
|
|
26286
|
-
var init_gallery_media = __esm({
|
|
26287
|
-
"../../node_modules/@wix/ricos/dist/es/plugin-gallery/media/gallery-media.js"() {
|
|
26288
|
-
import_classnames3 = __toESM(require_classnames(), 1);
|
|
26289
|
-
init_gallery_media_scss();
|
|
26290
|
-
DEFAULT_TARGET_WIDTHS = [320, 640, 960, 1280, 1920];
|
|
26291
|
-
GalleryMedia = ({
|
|
26292
|
-
item,
|
|
26293
|
-
presentation,
|
|
26294
|
-
sizes,
|
|
26295
|
-
eager,
|
|
26296
|
-
runtime,
|
|
26297
|
-
targetWidths = DEFAULT_TARGET_WIDTHS
|
|
26298
|
-
}) => {
|
|
26299
|
-
const [failed, setFailed] = useState(false);
|
|
26300
|
-
const [videoStarted, setVideoStarted] = useState(false);
|
|
26301
|
-
useEffect(() => {
|
|
26302
|
-
setFailed(false);
|
|
26303
|
-
setVideoStarted(false);
|
|
26304
|
-
}, [item.id, item.source.url]);
|
|
26305
|
-
const style = { aspectRatio: `${item.width} / ${item.height}` };
|
|
26306
|
-
const interactionDeterrents = item.disableDownload ? {
|
|
26307
|
-
onContextMenu: (event) => event.preventDefault()
|
|
26308
|
-
} : {};
|
|
26309
|
-
if (failed) {
|
|
26310
|
-
return /* @__PURE__ */ React173.createElement(
|
|
26311
|
-
"span",
|
|
26312
|
-
{
|
|
26313
|
-
className: (0, import_classnames3.default)(gallery_media_default.media, gallery_media_default.failure),
|
|
26314
|
-
style,
|
|
26315
|
-
"data-hook": "gallery-media-failure",
|
|
26316
|
-
"aria-hidden": "true"
|
|
26317
|
-
}
|
|
26318
|
-
);
|
|
26319
|
-
}
|
|
26320
|
-
if (item.type === "video") {
|
|
26321
|
-
if (videoStarted) {
|
|
26322
|
-
return /* @__PURE__ */ React173.createElement(
|
|
26323
|
-
"span",
|
|
26324
|
-
{
|
|
26325
|
-
className: (0, import_classnames3.default)(gallery_media_default.media, gallery_media_default[presentation]),
|
|
26326
|
-
style,
|
|
26327
|
-
"data-hook": "gallery-media-video",
|
|
26328
|
-
...interactionDeterrents
|
|
26329
|
-
},
|
|
26330
|
-
/* @__PURE__ */ React173.createElement(
|
|
26331
|
-
"video",
|
|
26332
|
-
{
|
|
26333
|
-
src: item.source.url,
|
|
26334
|
-
controls: true,
|
|
26335
|
-
controlsList: item.disableDownload ? "nodownload" : void 0,
|
|
26336
|
-
playsInline: true,
|
|
26337
|
-
autoPlay: true,
|
|
26338
|
-
loop: false,
|
|
26339
|
-
muted: false,
|
|
26340
|
-
preload: eager ? "metadata" : "none",
|
|
26341
|
-
onError: () => setFailed(true)
|
|
26342
|
-
}
|
|
26343
|
-
)
|
|
26344
|
-
);
|
|
26345
|
-
}
|
|
26346
|
-
return /* @__PURE__ */ React173.createElement(
|
|
26347
|
-
"span",
|
|
26348
|
-
{
|
|
26349
|
-
className: (0, import_classnames3.default)(gallery_media_default.media, gallery_media_default[presentation]),
|
|
26350
|
-
style,
|
|
26351
|
-
"data-hook": "gallery-media-video-poster",
|
|
26352
|
-
...interactionDeterrents
|
|
26353
|
-
},
|
|
26354
|
-
item.poster ? /* @__PURE__ */ React173.createElement(
|
|
26355
|
-
GalleryImage,
|
|
26356
|
-
{
|
|
26357
|
-
itemId: item.id,
|
|
26358
|
-
source: item.poster,
|
|
26359
|
-
alt: "",
|
|
26360
|
-
presentation,
|
|
26361
|
-
sizes,
|
|
26362
|
-
eager,
|
|
26363
|
-
disableDownload: item.disableDownload,
|
|
26364
|
-
runtime,
|
|
26365
|
-
targetWidths,
|
|
26366
|
-
onError: () => setFailed(true)
|
|
26367
|
-
}
|
|
26368
|
-
) : null,
|
|
26369
|
-
/* @__PURE__ */ React173.createElement(
|
|
26370
|
-
"button",
|
|
26371
|
-
{
|
|
26372
|
-
type: "button",
|
|
26373
|
-
className: gallery_media_default.playButton,
|
|
26374
|
-
"aria-label": item.title ? `${runtime.playVideoLabel}: ${item.title}` : runtime.playVideoLabel,
|
|
26375
|
-
onClick: () => setVideoStarted(true),
|
|
26376
|
-
"data-hook": "gallery-video-play"
|
|
26377
|
-
},
|
|
26378
|
-
/* @__PURE__ */ React173.createElement("span", { className: gallery_media_default.playIcon, "aria-hidden": "true" })
|
|
26379
|
-
)
|
|
26380
|
-
);
|
|
26381
|
-
}
|
|
26382
|
-
return /* @__PURE__ */ React173.createElement(
|
|
26383
|
-
"span",
|
|
26384
|
-
{
|
|
26385
|
-
className: (0, import_classnames3.default)(gallery_media_default.media, gallery_media_default[presentation]),
|
|
26386
|
-
style,
|
|
26387
|
-
"data-hook": "gallery-media-image",
|
|
26388
|
-
...interactionDeterrents
|
|
26389
|
-
},
|
|
26390
|
-
/* @__PURE__ */ React173.createElement(
|
|
26391
|
-
GalleryImage,
|
|
26392
|
-
{
|
|
26393
|
-
itemId: item.id,
|
|
26394
|
-
source: item.source,
|
|
26395
|
-
alt: item.alt,
|
|
26396
|
-
presentation,
|
|
26397
|
-
sizes,
|
|
26398
|
-
eager,
|
|
26399
|
-
disableDownload: item.disableDownload,
|
|
26400
|
-
runtime,
|
|
26401
|
-
targetWidths,
|
|
26402
|
-
onError: () => setFailed(true)
|
|
26403
|
-
}
|
|
26404
|
-
)
|
|
26405
|
-
);
|
|
26406
|
-
};
|
|
26407
|
-
GalleryImage = ({
|
|
26408
|
-
itemId,
|
|
26409
|
-
source,
|
|
26410
|
-
alt: alt2,
|
|
26411
|
-
presentation,
|
|
26412
|
-
sizes,
|
|
26413
|
-
eager,
|
|
26414
|
-
disableDownload,
|
|
26415
|
-
runtime,
|
|
26416
|
-
targetWidths,
|
|
26417
|
-
targetRatio,
|
|
26418
|
-
onError
|
|
26419
|
-
}) => {
|
|
26420
|
-
const responsiveSource = runtime.createMediaUrl({
|
|
26421
|
-
source,
|
|
26422
|
-
transformMode: presentation === "fill" ? "fill" : "fit",
|
|
26423
|
-
targetWidths,
|
|
26424
|
-
targetRatio
|
|
26425
|
-
});
|
|
26426
|
-
const imageProps = runtime.imageProps?.(itemId);
|
|
26427
|
-
const imageRef = useRef(null);
|
|
26428
|
-
useEffect(() => {
|
|
26429
|
-
const image = imageRef.current;
|
|
26430
|
-
if (image?.complete && image.naturalWidth === 0) {
|
|
26431
|
-
onError();
|
|
26432
|
-
}
|
|
26433
|
-
}, [onError, responsiveSource.src]);
|
|
26434
|
-
return /* @__PURE__ */ React173.createElement(
|
|
26435
|
-
"img",
|
|
26436
|
-
{
|
|
26437
|
-
ref: imageRef,
|
|
26438
|
-
...imageProps,
|
|
26439
|
-
src: responsiveSource.src,
|
|
26440
|
-
srcSet: responsiveSource.srcSet,
|
|
26441
|
-
sizes: responsiveSource.srcSet ? sizes : void 0,
|
|
26442
|
-
alt: alt2,
|
|
26443
|
-
width: source.width,
|
|
26444
|
-
height: source.height,
|
|
26445
|
-
loading: eager ? "eager" : "lazy",
|
|
26446
|
-
draggable: disableDownload ? false : void 0,
|
|
26447
|
-
onError
|
|
26448
|
-
}
|
|
26449
|
-
);
|
|
26450
|
-
};
|
|
26451
|
-
}
|
|
26452
|
-
});
|
|
26453
25989
|
|
|
26454
25990
|
// ../../node_modules/@wix/ricos/dist/es/_shared/debounce.js
|
|
26455
25991
|
function debounce(fn, wait = 0, options) {
|
|
@@ -26676,9 +26212,9 @@ var init_data_hooks = __esm({
|
|
|
26676
26212
|
var styleDataHash, injectCss, fullscreen_default;
|
|
26677
26213
|
var init_fullscreen_scss = __esm({
|
|
26678
26214
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js"() {
|
|
26679
|
-
styleDataHash = "
|
|
26215
|
+
styleDataHash = "ea494fa0";
|
|
26680
26216
|
injectCss = (() => {
|
|
26681
|
-
var css = `.
|
|
26217
|
+
var css = `.BV4mz [data-hook^=gallery-media-]{display:block;inline-size:100%;overflow:hidden;position:relative}.BV4mz [data-hook^=gallery-media-]>img,.BV4mz [data-hook^=gallery-media-]>video{block-size:100%;display:block;inline-size:100%;object-position:center}.BV4mz [data-hook^=gallery-media-]{align-items:center;display:flex;justify-content:center}.BV4mz [data-hook^=gallery-media-]>img,.BV4mz [data-hook^=gallery-media-]>video{block-size:auto;inline-size:auto;margin:auto;max-block-size:100%;max-inline-size:100%;object-fit:contain}.BV4mz [data-hook=gallery-media-failure]{background:#e5e5e5;min-block-size:1px;min-inline-size:1px}.BV4mz [data-hook=gallery-video-play]{appearance:none;background:transparent;border:0;cursor:pointer;inline-size:100%;inset:0;padding:0;position:absolute}.BV4mz [data-hook=gallery-video-play]:focus-visible{outline:2px solid #3899ec;outline-offset:-2px}.BV4mz [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%)}.SYMJl{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}.SYMJl:disabled,[aria-disabled=true].SYMJl:not(:focus-visible){pointer-events:none;visibility:hidden}.SYMJl:focus-visible{outline:2px solid #3899ec;outline-offset:2px}@media (prefers-reduced-motion:reduce){.SYMJl{transition:none}}.SYMJl{inset-block-start:50%;position:absolute;transform:translateY(-50%)}.SYMJl 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)}.WAOR5,._7T-kx{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}._7T-kx{padding-block:70px 20px}@media only screen and (max-width:640px){._7T-kx{padding-block-start:40px}}.WAOR5{padding:0}.UpN2b{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){.UpN2b{right:20px;top:5px}.UpN2b>svg{height:30px;width:30px}}.UpN2b:focus-visible{outline:5px auto Highlight!important;outline:5px auto -webkit-focus-ring-color!important}.Z4F2C{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}.Z4F2C:focus-visible{outline:5px auto Highlight!important;outline:5px auto -webkit-focus-ring-color!important}.bZbsI{font-size:14px;line-height:20px;text-align:center;white-space:normal}.qmZdg{box-sizing:border-box;display:flex;justify-content:center;min-height:60px;padding:16px 20px;width:100%}.PmPcR{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0;white-space:nowrap}.CX4TG{height:100%;min-height:0;min-width:0;position:relative;--ricos-internal-gallery-arrow-inset:20px}.IpWDp{height:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:inline mandatory;scrollbar-width:none}.IpWDp::-webkit-scrollbar{display:none}.qDx45{display:flex;height:100%;list-style:none;margin:0;padding:0}.BV4mz{flex:0 0 100%;height:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;width:100%}.BV4mz [data-hook^=gallery-media-]{background:transparent;height:100%}.SYMJl{color:inherit;z-index:1}.SYMJl[data-hook=gallery-navigation-previous]{inset-inline-start:var(--ricos-internal-gallery-arrow-inset,12px)}.SYMJl[data-hook=gallery-navigation-previous] svg{inset-inline-end:auto;inset-inline-start:0}.SYMJl[data-hook=gallery-navigation-next]{inset-inline-end:var(--ricos-internal-gallery-arrow-inset,12px)}`;
|
|
26682
26218
|
typeof process !== "undefined" && process.env && false;
|
|
26683
26219
|
if (typeof document === "undefined") {
|
|
26684
26220
|
return;
|
|
@@ -26699,18 +26235,18 @@ var init_fullscreen_scss = __esm({
|
|
|
26699
26235
|
});
|
|
26700
26236
|
injectCss();
|
|
26701
26237
|
fullscreen_default = {
|
|
26702
|
-
"slide": "
|
|
26703
|
-
"arrow": "
|
|
26704
|
-
"fullscreen_mode": "
|
|
26705
|
-
"expand_mode": "
|
|
26706
|
-
"close": "
|
|
26707
|
-
"expand_button": "
|
|
26708
|
-
"title": "
|
|
26709
|
-
"info_container": "
|
|
26710
|
-
"visuallyHidden": "
|
|
26711
|
-
"carousel": "
|
|
26712
|
-
"viewport": "
|
|
26713
|
-
"track": "
|
|
26238
|
+
"slide": "BV4mz",
|
|
26239
|
+
"arrow": "SYMJl",
|
|
26240
|
+
"fullscreen_mode": "WAOR5",
|
|
26241
|
+
"expand_mode": "_7T-kx",
|
|
26242
|
+
"close": "UpN2b",
|
|
26243
|
+
"expand_button": "Z4F2C",
|
|
26244
|
+
"title": "bZbsI",
|
|
26245
|
+
"info_container": "qmZdg",
|
|
26246
|
+
"visuallyHidden": "PmPcR",
|
|
26247
|
+
"carousel": "CX4TG",
|
|
26248
|
+
"viewport": "IpWDp",
|
|
26249
|
+
"track": "qDx45"
|
|
26714
26250
|
};
|
|
26715
26251
|
}
|
|
26716
26252
|
});
|
|
@@ -33933,9 +33469,9 @@ var require_messages_zh = __commonJS({
|
|
|
33933
33469
|
var styleDataHash6, injectCss6, viewer_inline_toolbar_default;
|
|
33934
33470
|
var init_viewer_inline_toolbar_scss = __esm({
|
|
33935
33471
|
"../../node_modules/@wix/ricos/dist/es/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js"() {
|
|
33936
|
-
styleDataHash6 = "
|
|
33472
|
+
styleDataHash6 = "3fb4eb45";
|
|
33937
33473
|
injectCss6 = (() => {
|
|
33938
|
-
var css = `.
|
|
33474
|
+
var css = `._8Wttd{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}.DvpTS{align-items:center;background:#fff;border:none;cursor:pointer;display:flex;justify-content:center;width:43px}`;
|
|
33939
33475
|
typeof process !== "undefined" && process.env && false;
|
|
33940
33476
|
if (typeof document === "undefined") {
|
|
33941
33477
|
return;
|
|
@@ -33956,8 +33492,8 @@ var init_viewer_inline_toolbar_scss = __esm({
|
|
|
33956
33492
|
});
|
|
33957
33493
|
injectCss6();
|
|
33958
33494
|
viewer_inline_toolbar_default = {
|
|
33959
|
-
"toolbar": "
|
|
33960
|
-
"button": "
|
|
33495
|
+
"toolbar": "_8Wttd",
|
|
33496
|
+
"button": "DvpTS"
|
|
33961
33497
|
};
|
|
33962
33498
|
}
|
|
33963
33499
|
});
|
|
@@ -34915,12 +34451,12 @@ var require_src2 = __commonJS({
|
|
|
34915
34451
|
return typeof value === "number";
|
|
34916
34452
|
}
|
|
34917
34453
|
exports.isNumber = isNumber2;
|
|
34918
|
-
function
|
|
34454
|
+
function isObject8(value) {
|
|
34919
34455
|
return typeof value === "object";
|
|
34920
34456
|
}
|
|
34921
|
-
exports.isObject =
|
|
34457
|
+
exports.isObject = isObject8;
|
|
34922
34458
|
function isPlainObject2(value) {
|
|
34923
|
-
return
|
|
34459
|
+
return isObject8(value) && Object.prototype.toString.call(value) === "[object Object]";
|
|
34924
34460
|
}
|
|
34925
34461
|
exports.isPlainObject = isPlainObject2;
|
|
34926
34462
|
function isRegExp2(value) {
|
|
@@ -36037,11 +35573,11 @@ var require_baseGetTag = __commonJS({
|
|
|
36037
35573
|
// ../../node_modules/lodash/isObject.js
|
|
36038
35574
|
var require_isObject = __commonJS({
|
|
36039
35575
|
"../../node_modules/lodash/isObject.js"(exports, module) {
|
|
36040
|
-
function
|
|
35576
|
+
function isObject8(value) {
|
|
36041
35577
|
var type = typeof value;
|
|
36042
35578
|
return value != null && (type == "object" || type == "function");
|
|
36043
35579
|
}
|
|
36044
|
-
module.exports =
|
|
35580
|
+
module.exports = isObject8;
|
|
36045
35581
|
}
|
|
36046
35582
|
});
|
|
36047
35583
|
|
|
@@ -36049,13 +35585,13 @@ var require_isObject = __commonJS({
|
|
|
36049
35585
|
var require_isFunction = __commonJS({
|
|
36050
35586
|
"../../node_modules/lodash/isFunction.js"(exports, module) {
|
|
36051
35587
|
var baseGetTag = require_baseGetTag();
|
|
36052
|
-
var
|
|
35588
|
+
var isObject8 = require_isObject();
|
|
36053
35589
|
var asyncTag = "[object AsyncFunction]";
|
|
36054
35590
|
var funcTag = "[object Function]";
|
|
36055
35591
|
var genTag = "[object GeneratorFunction]";
|
|
36056
35592
|
var proxyTag = "[object Proxy]";
|
|
36057
35593
|
function isFunction2(value) {
|
|
36058
|
-
if (!
|
|
35594
|
+
if (!isObject8(value)) {
|
|
36059
35595
|
return false;
|
|
36060
35596
|
}
|
|
36061
35597
|
var tag = baseGetTag(value);
|
|
@@ -36116,7 +35652,7 @@ var require_baseIsNative = __commonJS({
|
|
|
36116
35652
|
"../../node_modules/lodash/_baseIsNative.js"(exports, module) {
|
|
36117
35653
|
var isFunction2 = require_isFunction();
|
|
36118
35654
|
var isMasked = require_isMasked();
|
|
36119
|
-
var
|
|
35655
|
+
var isObject8 = require_isObject();
|
|
36120
35656
|
var toSource = require_toSource();
|
|
36121
35657
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
36122
35658
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
@@ -36128,7 +35664,7 @@ var require_baseIsNative = __commonJS({
|
|
|
36128
35664
|
"^" + funcToString.call(hasOwnProperty3).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
36129
35665
|
);
|
|
36130
35666
|
function baseIsNative(value) {
|
|
36131
|
-
if (!
|
|
35667
|
+
if (!isObject8(value) || isMasked(value)) {
|
|
36132
35668
|
return false;
|
|
36133
35669
|
}
|
|
36134
35670
|
var pattern = isFunction2(value) ? reIsNative : reIsHostCtor;
|
|
@@ -36874,13 +36410,13 @@ var require_nativeKeysIn = __commonJS({
|
|
|
36874
36410
|
// ../../node_modules/lodash/_baseKeysIn.js
|
|
36875
36411
|
var require_baseKeysIn = __commonJS({
|
|
36876
36412
|
"../../node_modules/lodash/_baseKeysIn.js"(exports, module) {
|
|
36877
|
-
var
|
|
36413
|
+
var isObject8 = require_isObject();
|
|
36878
36414
|
var isPrototype = require_isPrototype();
|
|
36879
36415
|
var nativeKeysIn = require_nativeKeysIn();
|
|
36880
36416
|
var objectProto = Object.prototype;
|
|
36881
36417
|
var hasOwnProperty3 = objectProto.hasOwnProperty;
|
|
36882
36418
|
function baseKeysIn(object) {
|
|
36883
|
-
if (!
|
|
36419
|
+
if (!isObject8(object)) {
|
|
36884
36420
|
return nativeKeysIn(object);
|
|
36885
36421
|
}
|
|
36886
36422
|
var isProto = isPrototype(object), result2 = [];
|
|
@@ -37352,13 +36888,13 @@ var require_initCloneByTag = __commonJS({
|
|
|
37352
36888
|
// ../../node_modules/lodash/_baseCreate.js
|
|
37353
36889
|
var require_baseCreate = __commonJS({
|
|
37354
36890
|
"../../node_modules/lodash/_baseCreate.js"(exports, module) {
|
|
37355
|
-
var
|
|
36891
|
+
var isObject8 = require_isObject();
|
|
37356
36892
|
var objectCreate = Object.create;
|
|
37357
36893
|
var baseCreate = /* @__PURE__ */ (function() {
|
|
37358
36894
|
function object() {
|
|
37359
36895
|
}
|
|
37360
36896
|
return function(proto) {
|
|
37361
|
-
if (!
|
|
36897
|
+
if (!isObject8(proto)) {
|
|
37362
36898
|
return {};
|
|
37363
36899
|
}
|
|
37364
36900
|
if (objectCreate) {
|
|
@@ -37458,7 +36994,7 @@ var require_baseClone = __commonJS({
|
|
|
37458
36994
|
var isArray2 = require_isArray();
|
|
37459
36995
|
var isBuffer = require_isBuffer();
|
|
37460
36996
|
var isMap = require_isMap();
|
|
37461
|
-
var
|
|
36997
|
+
var isObject8 = require_isObject();
|
|
37462
36998
|
var isSet = require_isSet();
|
|
37463
36999
|
var keys3 = require_keys();
|
|
37464
37000
|
var keysIn = require_keysIn();
|
|
@@ -37502,7 +37038,7 @@ var require_baseClone = __commonJS({
|
|
|
37502
37038
|
if (result2 !== void 0) {
|
|
37503
37039
|
return result2;
|
|
37504
37040
|
}
|
|
37505
|
-
if (!
|
|
37041
|
+
if (!isObject8(value)) {
|
|
37506
37042
|
return value;
|
|
37507
37043
|
}
|
|
37508
37044
|
var isArr = isArray2(value);
|
|
@@ -37571,6 +37107,218 @@ var require_cloneDeep = __commonJS({
|
|
|
37571
37107
|
}
|
|
37572
37108
|
});
|
|
37573
37109
|
|
|
37110
|
+
// ../../node_modules/@wix/sdk-runtime/build/constants.js
|
|
37111
|
+
var SDKRequestToRESTRequestRenameMap, RESTResponseToSDKResponseRenameMap2;
|
|
37112
|
+
var init_constants4 = __esm({
|
|
37113
|
+
"../../node_modules/@wix/sdk-runtime/build/constants.js"() {
|
|
37114
|
+
SDKRequestToRESTRequestRenameMap = {
|
|
37115
|
+
_id: "id",
|
|
37116
|
+
_createdDate: "createdDate",
|
|
37117
|
+
_updatedDate: "updatedDate"
|
|
37118
|
+
};
|
|
37119
|
+
RESTResponseToSDKResponseRenameMap2 = {
|
|
37120
|
+
id: "_id",
|
|
37121
|
+
createdDate: "_createdDate",
|
|
37122
|
+
updatedDate: "_updatedDate"
|
|
37123
|
+
};
|
|
37124
|
+
}
|
|
37125
|
+
});
|
|
37126
|
+
|
|
37127
|
+
// ../../node_modules/@wix/sdk-runtime/build/utils.js
|
|
37128
|
+
function removeUndefinedKeys(obj) {
|
|
37129
|
+
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== void 0));
|
|
37130
|
+
}
|
|
37131
|
+
function constantCase2(input) {
|
|
37132
|
+
return split2(input).map((part) => part.toLocaleUpperCase()).join("_");
|
|
37133
|
+
}
|
|
37134
|
+
function split2(value) {
|
|
37135
|
+
let result2 = value.trim();
|
|
37136
|
+
result2 = result2.replace(SPLIT_LOWER_UPPER_RE2, SPLIT_REPLACE_VALUE2).replace(SPLIT_UPPER_UPPER_RE2, SPLIT_REPLACE_VALUE2);
|
|
37137
|
+
result2 = result2.replace(DEFAULT_STRIP_REGEXP2, "\0");
|
|
37138
|
+
let start = 0;
|
|
37139
|
+
let end = result2.length;
|
|
37140
|
+
while (result2.charAt(start) === "\0") {
|
|
37141
|
+
start++;
|
|
37142
|
+
}
|
|
37143
|
+
if (start === end) {
|
|
37144
|
+
return [];
|
|
37145
|
+
}
|
|
37146
|
+
while (result2.charAt(end - 1) === "\0") {
|
|
37147
|
+
end--;
|
|
37148
|
+
}
|
|
37149
|
+
return result2.slice(start, end).split(/\0/g);
|
|
37150
|
+
}
|
|
37151
|
+
var SPLIT_LOWER_UPPER_RE2, SPLIT_UPPER_UPPER_RE2, SPLIT_REPLACE_VALUE2, DEFAULT_STRIP_REGEXP2;
|
|
37152
|
+
var init_utils6 = __esm({
|
|
37153
|
+
"../../node_modules/@wix/sdk-runtime/build/utils.js"() {
|
|
37154
|
+
SPLIT_LOWER_UPPER_RE2 = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
37155
|
+
SPLIT_UPPER_UPPER_RE2 = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
37156
|
+
SPLIT_REPLACE_VALUE2 = "$1\0$2";
|
|
37157
|
+
DEFAULT_STRIP_REGEXP2 = /[^\p{L}\d]+/giu;
|
|
37158
|
+
}
|
|
37159
|
+
});
|
|
37160
|
+
|
|
37161
|
+
// ../../node_modules/@wix/sdk-runtime/build/transform-error.js
|
|
37162
|
+
function transformError2(httpClientError, pathsToArguments = {
|
|
37163
|
+
explicitPathsToArguments: {},
|
|
37164
|
+
spreadPathsToArguments: {},
|
|
37165
|
+
singleArgumentUnchanged: false
|
|
37166
|
+
}, argumentNames = []) {
|
|
37167
|
+
if (typeof httpClientError !== "object" || httpClientError === null) {
|
|
37168
|
+
throw httpClientError;
|
|
37169
|
+
}
|
|
37170
|
+
if (isValidationError2(httpClientError)) {
|
|
37171
|
+
return buildValidationError2(httpClientError, pathsToArguments, argumentNames);
|
|
37172
|
+
}
|
|
37173
|
+
if (isApplicationError2(httpClientError)) {
|
|
37174
|
+
return buildApplicationError2(httpClientError);
|
|
37175
|
+
}
|
|
37176
|
+
if (isClientError2(httpClientError)) {
|
|
37177
|
+
const status = httpClientError.response?.status;
|
|
37178
|
+
const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
|
|
37179
|
+
const message = httpClientError.response?.data?.message ?? statusText;
|
|
37180
|
+
const details = {
|
|
37181
|
+
applicationError: {
|
|
37182
|
+
description: statusText,
|
|
37183
|
+
code: constantCase2(statusText),
|
|
37184
|
+
data: {}
|
|
37185
|
+
},
|
|
37186
|
+
requestId: httpClientError.requestId
|
|
37187
|
+
};
|
|
37188
|
+
return wrapError2(httpClientError, {
|
|
37189
|
+
message: JSON.stringify({
|
|
37190
|
+
message,
|
|
37191
|
+
details
|
|
37192
|
+
}, null, 2),
|
|
37193
|
+
extraProperties: {
|
|
37194
|
+
details,
|
|
37195
|
+
status
|
|
37196
|
+
}
|
|
37197
|
+
});
|
|
37198
|
+
}
|
|
37199
|
+
return buildSystemError2(httpClientError);
|
|
37200
|
+
}
|
|
37201
|
+
var isValidationError2, isApplicationError2, isClientError2, buildValidationError2, wrapError2, buildApplicationError2, buildSystemError2, violationsWithRenamedFields2, withRenamedArgument2, getArgumentIndex2;
|
|
37202
|
+
var init_transform_error2 = __esm({
|
|
37203
|
+
"../../node_modules/@wix/sdk-runtime/build/transform-error.js"() {
|
|
37204
|
+
init_utils6();
|
|
37205
|
+
isValidationError2 = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
|
|
37206
|
+
isApplicationError2 = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
|
|
37207
|
+
isClientError2 = (httpClientError) => (httpClientError.response?.status ?? -1) >= 400 && (httpClientError.response?.status ?? -1) < 500;
|
|
37208
|
+
buildValidationError2 = (httpClientError, pathsToArguments, argumentNames) => {
|
|
37209
|
+
const validationErrorResponse = httpClientError.response?.data;
|
|
37210
|
+
const requestId = httpClientError.requestId;
|
|
37211
|
+
const { fieldViolations } = validationErrorResponse.details.validationError;
|
|
37212
|
+
const transformedFieldViolations = violationsWithRenamedFields2(pathsToArguments, fieldViolations, argumentNames)?.sort((a2, b) => a2.field < b.field ? -1 : 1);
|
|
37213
|
+
const message = `INVALID_ARGUMENT: ${transformedFieldViolations?.map(({ field, description }) => `"${field}" ${description}`)?.join(", ")}`;
|
|
37214
|
+
const details = {
|
|
37215
|
+
validationError: { fieldViolations: transformedFieldViolations },
|
|
37216
|
+
requestId
|
|
37217
|
+
};
|
|
37218
|
+
return wrapError2(httpClientError, {
|
|
37219
|
+
message: JSON.stringify({ message, details }, null, 2),
|
|
37220
|
+
extraProperties: {
|
|
37221
|
+
details,
|
|
37222
|
+
status: httpClientError.response?.status,
|
|
37223
|
+
requestId
|
|
37224
|
+
}
|
|
37225
|
+
});
|
|
37226
|
+
};
|
|
37227
|
+
wrapError2 = (baseError, { message, extraProperties }) => {
|
|
37228
|
+
return Object.assign(baseError, {
|
|
37229
|
+
...extraProperties,
|
|
37230
|
+
message
|
|
37231
|
+
});
|
|
37232
|
+
};
|
|
37233
|
+
buildApplicationError2 = (httpClientError) => {
|
|
37234
|
+
const status = httpClientError.response?.status;
|
|
37235
|
+
const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
|
|
37236
|
+
const message = httpClientError.response?.data?.message ?? statusText;
|
|
37237
|
+
const description = httpClientError.response?.data?.details?.applicationError?.description ?? statusText;
|
|
37238
|
+
const code = httpClientError.response?.data?.details?.applicationError?.code ?? constantCase2(statusText);
|
|
37239
|
+
const data = httpClientError.response?.data?.details?.applicationError?.data ?? {};
|
|
37240
|
+
const combinedMessage = message === description ? message : `${message}: ${description}`;
|
|
37241
|
+
const details = {
|
|
37242
|
+
applicationError: {
|
|
37243
|
+
description,
|
|
37244
|
+
code,
|
|
37245
|
+
data
|
|
37246
|
+
},
|
|
37247
|
+
requestId: httpClientError.requestId
|
|
37248
|
+
};
|
|
37249
|
+
return wrapError2(httpClientError, {
|
|
37250
|
+
message: JSON.stringify({ message: combinedMessage, details }, null, 2),
|
|
37251
|
+
extraProperties: {
|
|
37252
|
+
details,
|
|
37253
|
+
status,
|
|
37254
|
+
requestId: httpClientError.requestId
|
|
37255
|
+
}
|
|
37256
|
+
});
|
|
37257
|
+
};
|
|
37258
|
+
buildSystemError2 = (httpClientError) => {
|
|
37259
|
+
const message = httpClientError.requestId ? `System error occurred, request-id: ${httpClientError.requestId}` : `System error occurred: ${JSON.stringify(httpClientError)}`;
|
|
37260
|
+
return wrapError2(httpClientError, {
|
|
37261
|
+
message,
|
|
37262
|
+
extraProperties: {
|
|
37263
|
+
requestId: httpClientError.requestId,
|
|
37264
|
+
status: httpClientError.response?.status,
|
|
37265
|
+
code: constantCase2(httpClientError.response?.statusText ?? "UNKNOWN"),
|
|
37266
|
+
...!httpClientError.response && {
|
|
37267
|
+
runtimeError: httpClientError
|
|
37268
|
+
}
|
|
37269
|
+
}
|
|
37270
|
+
});
|
|
37271
|
+
};
|
|
37272
|
+
violationsWithRenamedFields2 = ({ spreadPathsToArguments, explicitPathsToArguments, singleArgumentUnchanged }, fieldViolations, argumentNames) => {
|
|
37273
|
+
const allPathsToArguments = {
|
|
37274
|
+
...spreadPathsToArguments,
|
|
37275
|
+
...explicitPathsToArguments
|
|
37276
|
+
};
|
|
37277
|
+
const allPathsToArgumentsKeys = Object.keys(allPathsToArguments);
|
|
37278
|
+
return fieldViolations?.filter((fieldViolation) => {
|
|
37279
|
+
const containedInAMoreSpecificViolationField = fieldViolations.some((anotherViolation) => anotherViolation.field.length > fieldViolation.field.length && anotherViolation.field.startsWith(fieldViolation.field) && allPathsToArgumentsKeys.includes(anotherViolation.field));
|
|
37280
|
+
return !containedInAMoreSpecificViolationField;
|
|
37281
|
+
}).map((fieldViolation) => {
|
|
37282
|
+
const exactMatchArgumentExpression = explicitPathsToArguments[fieldViolation.field];
|
|
37283
|
+
if (exactMatchArgumentExpression) {
|
|
37284
|
+
return {
|
|
37285
|
+
...fieldViolation,
|
|
37286
|
+
field: withRenamedArgument2(exactMatchArgumentExpression, argumentNames)
|
|
37287
|
+
};
|
|
37288
|
+
}
|
|
37289
|
+
const longestPartialPathMatch = allPathsToArgumentsKeys?.sort((a2, b) => b.length - a2.length)?.find((path) => fieldViolation.field.startsWith(path));
|
|
37290
|
+
if (longestPartialPathMatch) {
|
|
37291
|
+
const partialMatchArgumentExpression = allPathsToArguments[longestPartialPathMatch];
|
|
37292
|
+
if (partialMatchArgumentExpression) {
|
|
37293
|
+
return {
|
|
37294
|
+
...fieldViolation,
|
|
37295
|
+
field: fieldViolation.field.replace(longestPartialPathMatch, withRenamedArgument2(partialMatchArgumentExpression, argumentNames))
|
|
37296
|
+
};
|
|
37297
|
+
}
|
|
37298
|
+
}
|
|
37299
|
+
if (singleArgumentUnchanged) {
|
|
37300
|
+
return {
|
|
37301
|
+
...fieldViolation,
|
|
37302
|
+
field: `${argumentNames[0]}.${fieldViolation.field}`
|
|
37303
|
+
};
|
|
37304
|
+
}
|
|
37305
|
+
return fieldViolation;
|
|
37306
|
+
});
|
|
37307
|
+
};
|
|
37308
|
+
withRenamedArgument2 = (fieldValue, argumentNames) => {
|
|
37309
|
+
const argIndex = getArgumentIndex2(fieldValue);
|
|
37310
|
+
if (argIndex !== null && typeof argIndex !== "undefined") {
|
|
37311
|
+
return fieldValue.replace(`$[${argIndex}]`, argumentNames[argIndex]);
|
|
37312
|
+
}
|
|
37313
|
+
return fieldValue;
|
|
37314
|
+
};
|
|
37315
|
+
getArgumentIndex2 = (s) => {
|
|
37316
|
+
const match4 = s.match(/\$\[(?<argIndex>\d+)\]/);
|
|
37317
|
+
return match4 && match4.groups && Number(match4.groups.argIndex);
|
|
37318
|
+
};
|
|
37319
|
+
}
|
|
37320
|
+
});
|
|
37321
|
+
|
|
37574
37322
|
// ../../node_modules/@wix/sdk-runtime/build/field-rename.js
|
|
37575
37323
|
function renameFieldPathBySegment(fieldPath, renameMap) {
|
|
37576
37324
|
return fieldPath?.split(".").map((segment) => renameMap?.[segment] ?? segment).join(".");
|
|
@@ -37629,15 +37377,274 @@ function renameKeysFromSDKRequestToRESTRequest(payload, ignorePaths = []) {
|
|
|
37629
37377
|
return renameAllNestedKeys(payload, SDKRequestToRESTRequestRenameMap, ignorePaths);
|
|
37630
37378
|
}
|
|
37631
37379
|
function renameKeysFromRESTResponseToSDKResponse(payload, ignorePaths = []) {
|
|
37632
|
-
return renameAllNestedKeys(payload,
|
|
37380
|
+
return renameAllNestedKeys(payload, RESTResponseToSDKResponseRenameMap2, ignorePaths);
|
|
37633
37381
|
}
|
|
37634
37382
|
var init_rename_all_nested_keys = __esm({
|
|
37635
37383
|
"../../node_modules/@wix/sdk-runtime/build/rename-all-nested-keys.js"() {
|
|
37636
|
-
|
|
37384
|
+
init_constants4();
|
|
37637
37385
|
init_field_rename();
|
|
37638
37386
|
}
|
|
37639
37387
|
});
|
|
37640
37388
|
|
|
37389
|
+
// ../../node_modules/@wix/sdk-runtime/build/context.js
|
|
37390
|
+
function resolveContext() {
|
|
37391
|
+
const oldContext = typeof $wixContext !== "undefined" && $wixContext.initWixModules ? $wixContext.initWixModules : typeof globalThis.__wix_context__ !== "undefined" && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
37392
|
+
if (oldContext) {
|
|
37393
|
+
return {
|
|
37394
|
+
// @ts-expect-error
|
|
37395
|
+
initWixModules(modules, elevated) {
|
|
37396
|
+
return runWithoutContext2(() => oldContext(modules, elevated));
|
|
37397
|
+
},
|
|
37398
|
+
fetchWithAuth() {
|
|
37399
|
+
throw new Error("fetchWithAuth is not available in this context");
|
|
37400
|
+
},
|
|
37401
|
+
graphql() {
|
|
37402
|
+
throw new Error("graphql is not available in this context");
|
|
37403
|
+
}
|
|
37404
|
+
};
|
|
37405
|
+
}
|
|
37406
|
+
const contextualClient = typeof $wixContext !== "undefined" ? $wixContext.client : typeof wixContext.client !== "undefined" ? wixContext.client : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.client : void 0;
|
|
37407
|
+
const elevatedClient = typeof $wixContext !== "undefined" ? $wixContext.elevatedClient : typeof wixContext.elevatedClient !== "undefined" ? wixContext.elevatedClient : typeof globalThis.__wix_context__ !== "undefined" ? globalThis.__wix_context__.elevatedClient : void 0;
|
|
37408
|
+
if (!contextualClient && !elevatedClient) {
|
|
37409
|
+
return;
|
|
37410
|
+
}
|
|
37411
|
+
return {
|
|
37412
|
+
initWixModules(wixModules, elevated) {
|
|
37413
|
+
if (elevated) {
|
|
37414
|
+
if (!elevatedClient) {
|
|
37415
|
+
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");
|
|
37416
|
+
}
|
|
37417
|
+
return runWithoutContext2(() => elevatedClient.use(wixModules));
|
|
37418
|
+
}
|
|
37419
|
+
if (!contextualClient) {
|
|
37420
|
+
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
37421
|
+
}
|
|
37422
|
+
return runWithoutContext2(() => contextualClient.use(wixModules));
|
|
37423
|
+
},
|
|
37424
|
+
fetchWithAuth: (urlOrRequest, requestInit) => {
|
|
37425
|
+
if (!contextualClient) {
|
|
37426
|
+
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
37427
|
+
}
|
|
37428
|
+
return contextualClient.fetchWithAuth(urlOrRequest, requestInit);
|
|
37429
|
+
},
|
|
37430
|
+
getAuth() {
|
|
37431
|
+
if (!contextualClient) {
|
|
37432
|
+
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
37433
|
+
}
|
|
37434
|
+
return contextualClient.auth;
|
|
37435
|
+
},
|
|
37436
|
+
async graphql(query, variables, opts) {
|
|
37437
|
+
if (!contextualClient) {
|
|
37438
|
+
throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");
|
|
37439
|
+
}
|
|
37440
|
+
return contextualClient.graphql(query, variables, opts);
|
|
37441
|
+
}
|
|
37442
|
+
};
|
|
37443
|
+
}
|
|
37444
|
+
function runWithoutContext2(fn) {
|
|
37445
|
+
const globalContext = globalThis.__wix_context__;
|
|
37446
|
+
const moduleContext = {
|
|
37447
|
+
client: wixContext.client,
|
|
37448
|
+
elevatedClient: wixContext.elevatedClient
|
|
37449
|
+
};
|
|
37450
|
+
let closureContext;
|
|
37451
|
+
globalThis.__wix_context__ = void 0;
|
|
37452
|
+
wixContext.client = void 0;
|
|
37453
|
+
wixContext.elevatedClient = void 0;
|
|
37454
|
+
if (typeof $wixContext !== "undefined") {
|
|
37455
|
+
closureContext = {
|
|
37456
|
+
client: $wixContext?.client,
|
|
37457
|
+
elevatedClient: $wixContext?.elevatedClient
|
|
37458
|
+
};
|
|
37459
|
+
delete $wixContext.client;
|
|
37460
|
+
delete $wixContext.elevatedClient;
|
|
37461
|
+
}
|
|
37462
|
+
try {
|
|
37463
|
+
return fn();
|
|
37464
|
+
} finally {
|
|
37465
|
+
globalThis.__wix_context__ = globalContext;
|
|
37466
|
+
wixContext.client = moduleContext.client;
|
|
37467
|
+
wixContext.elevatedClient = moduleContext.elevatedClient;
|
|
37468
|
+
if (typeof $wixContext !== "undefined") {
|
|
37469
|
+
$wixContext.client = closureContext.client;
|
|
37470
|
+
$wixContext.elevatedClient = closureContext.elevatedClient;
|
|
37471
|
+
}
|
|
37472
|
+
}
|
|
37473
|
+
}
|
|
37474
|
+
var init_context2 = __esm({
|
|
37475
|
+
"../../node_modules/@wix/sdk-runtime/build/context.js"() {
|
|
37476
|
+
init_browser();
|
|
37477
|
+
init_context_v22();
|
|
37478
|
+
}
|
|
37479
|
+
});
|
|
37480
|
+
|
|
37481
|
+
// ../../node_modules/@wix/sdk-runtime/build/context-v2.js
|
|
37482
|
+
function contextualizeRESTModuleV2(restModule, elevated) {
|
|
37483
|
+
return ((...args) => {
|
|
37484
|
+
const context = resolveContext();
|
|
37485
|
+
if (!context) {
|
|
37486
|
+
return restModule.apply(void 0, args);
|
|
37487
|
+
}
|
|
37488
|
+
return context.initWixModules(restModule, elevated).apply(void 0, args);
|
|
37489
|
+
});
|
|
37490
|
+
}
|
|
37491
|
+
var init_context_v22 = __esm({
|
|
37492
|
+
"../../node_modules/@wix/sdk-runtime/build/context-v2.js"() {
|
|
37493
|
+
init_context2();
|
|
37494
|
+
}
|
|
37495
|
+
});
|
|
37496
|
+
|
|
37497
|
+
// ../../node_modules/@wix/sdk-runtime/build/rest-modules.js
|
|
37498
|
+
function createRESTModule(descriptor, elevated = false) {
|
|
37499
|
+
return contextualizeRESTModuleV2(descriptor, elevated);
|
|
37500
|
+
}
|
|
37501
|
+
function toURLSearchParams(params, isComplexRequest) {
|
|
37502
|
+
const flatten = flattenParams(params);
|
|
37503
|
+
Object.entries(flatten).some(([key, value]) => key.includes(".") || Array.isArray(value) && value.some((v) => typeof v === "object"));
|
|
37504
|
+
{
|
|
37505
|
+
return Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {
|
|
37506
|
+
const keyParams = Array.isArray(value) ? value : [value];
|
|
37507
|
+
keyParams.forEach((param) => {
|
|
37508
|
+
if (param === void 0 || param === null || Array.isArray(value) && typeof param === "object") {
|
|
37509
|
+
return;
|
|
37510
|
+
}
|
|
37511
|
+
urlSearchParams.append(key, param);
|
|
37512
|
+
});
|
|
37513
|
+
return urlSearchParams;
|
|
37514
|
+
}, new URLSearchParams());
|
|
37515
|
+
}
|
|
37516
|
+
}
|
|
37517
|
+
function resolveUrl(opts) {
|
|
37518
|
+
const domain = resolveDomain(opts.host);
|
|
37519
|
+
const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);
|
|
37520
|
+
const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});
|
|
37521
|
+
return resolvePathFromMappings(path, mappings);
|
|
37522
|
+
}
|
|
37523
|
+
function flattenParams(data, path = "") {
|
|
37524
|
+
const params = {};
|
|
37525
|
+
Object.entries(data).forEach(([key, value]) => {
|
|
37526
|
+
const isObject8 = value !== null && typeof value === "object" && !Array.isArray(value);
|
|
37527
|
+
const fieldPath = resolvePath(path, key);
|
|
37528
|
+
if (isObject8) {
|
|
37529
|
+
const serializedObject = flattenParams(value, fieldPath);
|
|
37530
|
+
Object.assign(params, serializedObject);
|
|
37531
|
+
} else {
|
|
37532
|
+
params[fieldPath] = value;
|
|
37533
|
+
}
|
|
37534
|
+
});
|
|
37535
|
+
return params;
|
|
37536
|
+
}
|
|
37537
|
+
function resolvePath(path, key) {
|
|
37538
|
+
return `${path}${path ? "." : ""}${key}`;
|
|
37539
|
+
}
|
|
37540
|
+
function resolveDomain(host) {
|
|
37541
|
+
const resolvedHost = fixHostExceptions(host);
|
|
37542
|
+
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");
|
|
37543
|
+
}
|
|
37544
|
+
function fixHostExceptions(host) {
|
|
37545
|
+
return HOST_ALIASES[host] ?? host;
|
|
37546
|
+
}
|
|
37547
|
+
function resolveMappingsByDomain(domain, domainToMappings) {
|
|
37548
|
+
const mappings = domainToMappings[domain];
|
|
37549
|
+
if (mappings) {
|
|
37550
|
+
return mappings;
|
|
37551
|
+
}
|
|
37552
|
+
const matchedMappings = resolveRootDomain(domain, domainToMappings) ?? resolveWildcardDomain(domain, domainToMappings);
|
|
37553
|
+
if (!matchedMappings) {
|
|
37554
|
+
if (isBaseDomain(domain)) {
|
|
37555
|
+
const wwwMappings = domainToMappings[wwwBaseDomain];
|
|
37556
|
+
if (wwwMappings) {
|
|
37557
|
+
return wwwMappings;
|
|
37558
|
+
}
|
|
37559
|
+
}
|
|
37560
|
+
const userMappings = domainToMappings[USER_DOMAIN];
|
|
37561
|
+
if (userMappings) {
|
|
37562
|
+
return userMappings;
|
|
37563
|
+
}
|
|
37564
|
+
}
|
|
37565
|
+
return matchedMappings ?? [];
|
|
37566
|
+
}
|
|
37567
|
+
function resolveRootDomain(domain, domainToMappings) {
|
|
37568
|
+
return Object.entries(domainToMappings).find(([entryDomain]) => {
|
|
37569
|
+
const [, ...rooDomainSegments] = domain.split(".");
|
|
37570
|
+
return rooDomainSegments.join(".") === entryDomain;
|
|
37571
|
+
})?.[1];
|
|
37572
|
+
}
|
|
37573
|
+
function resolveWildcardDomain(domain, domainToMappings) {
|
|
37574
|
+
const matchingEntries = Object.entries(domainToMappings).filter(([entryDomain]) => matchesWildcardDomain(domain, entryDomain));
|
|
37575
|
+
const [mostSpecificEntry] = matchingEntries.sort(([entryDomainA], [entryDomainB]) => entryDomainB.length - entryDomainA.length);
|
|
37576
|
+
if (!mostSpecificEntry) {
|
|
37577
|
+
return void 0;
|
|
37578
|
+
}
|
|
37579
|
+
const [, mappings] = mostSpecificEntry;
|
|
37580
|
+
return mappings;
|
|
37581
|
+
}
|
|
37582
|
+
function matchesWildcardDomain(domain, entryDomain) {
|
|
37583
|
+
if (!entryDomain.startsWith(WILDCARD_PREFIX)) {
|
|
37584
|
+
return false;
|
|
37585
|
+
}
|
|
37586
|
+
const suffix = entryDomain.slice(WILDCARD_PREFIX.length - 1);
|
|
37587
|
+
return domain.length > suffix.length && domain.endsWith(suffix);
|
|
37588
|
+
}
|
|
37589
|
+
function isBaseDomain(domain) {
|
|
37590
|
+
return !!domain.match(/\._base_domain_$/);
|
|
37591
|
+
}
|
|
37592
|
+
function injectDataIntoProtoPath(protoPath, data) {
|
|
37593
|
+
return protoPath.split("/").map((path) => maybeProtoPathToData(path, data)).join("/");
|
|
37594
|
+
}
|
|
37595
|
+
function maybeProtoPathToData(protoPath, data) {
|
|
37596
|
+
const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];
|
|
37597
|
+
const field = protoRegExpMatch[1];
|
|
37598
|
+
if (field) {
|
|
37599
|
+
const suffix = protoPath.replace(protoRegExpMatch[0], "");
|
|
37600
|
+
return findByPath(data, field, protoPath, suffix);
|
|
37601
|
+
}
|
|
37602
|
+
return protoPath;
|
|
37603
|
+
}
|
|
37604
|
+
function findByPath(obj, path, defaultValue, suffix) {
|
|
37605
|
+
let result2 = obj;
|
|
37606
|
+
for (const field of path.split(".")) {
|
|
37607
|
+
if (!result2) {
|
|
37608
|
+
return defaultValue;
|
|
37609
|
+
}
|
|
37610
|
+
result2 = result2[field];
|
|
37611
|
+
}
|
|
37612
|
+
return `${result2}${suffix}`;
|
|
37613
|
+
}
|
|
37614
|
+
function resolvePathFromMappings(protoPath, mappings) {
|
|
37615
|
+
const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));
|
|
37616
|
+
if (!mapping) {
|
|
37617
|
+
return protoPath;
|
|
37618
|
+
}
|
|
37619
|
+
return mapping.srcPath + protoPath.slice(mapping.destPath.length);
|
|
37620
|
+
}
|
|
37621
|
+
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;
|
|
37622
|
+
var init_rest_modules3 = __esm({
|
|
37623
|
+
"../../node_modules/@wix/sdk-runtime/build/rest-modules.js"() {
|
|
37624
|
+
init_context_v22();
|
|
37625
|
+
DOMAINS2 = ["wix.com", "editorx.com"];
|
|
37626
|
+
USER_DOMAIN = "_";
|
|
37627
|
+
WILDCARD_PREFIX = "*.";
|
|
37628
|
+
REGEX_CAPTURE_DOMAINS2 = new RegExp(`\\.(${DOMAINS2.join("|")})$`);
|
|
37629
|
+
WIX_API_DOMAINS2 = [
|
|
37630
|
+
"42.wixprod.net",
|
|
37631
|
+
"uw2-edt-1.wixprod.net",
|
|
37632
|
+
"virginia-edt.wixprod.net"
|
|
37633
|
+
];
|
|
37634
|
+
HOST_ALIASES = {
|
|
37635
|
+
// payments.base44.com runs customised Business Manager, which needs to work exactly the same as normal BM on manage.wix.com
|
|
37636
|
+
"payments.base44.com": "manage.wix.com",
|
|
37637
|
+
// https://system-kb.wixanswers.com/kb/en/article/editorx-domains-matching-to-wixcom
|
|
37638
|
+
"create.editorx.com": "editor.editorx.com"
|
|
37639
|
+
};
|
|
37640
|
+
DEV_WIX_CODE_DOMAIN2 = "dev.wix-code.com";
|
|
37641
|
+
REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;
|
|
37642
|
+
REGEX_CAPTURE_API_DOMAINS2 = new RegExp(`\\.(${WIX_API_DOMAINS2.join("|")})$`);
|
|
37643
|
+
REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN2 = new RegExp(`.*\\.${DEV_WIX_CODE_DOMAIN2}$`);
|
|
37644
|
+
wwwBaseDomain = "www._base_domain_";
|
|
37645
|
+
}
|
|
37646
|
+
});
|
|
37647
|
+
|
|
37641
37648
|
// ../../node_modules/@wix/sdk-runtime/build/transformations/float.js
|
|
37642
37649
|
function transformSDKFloatToRESTFloat(val) {
|
|
37643
37650
|
return isFinite(val) ? val : val.toString();
|
|
@@ -37660,36 +37667,121 @@ var init_float = __esm({
|
|
|
37660
37667
|
});
|
|
37661
37668
|
|
|
37662
37669
|
// ../../node_modules/@wix/sdk-runtime/build/transformations/transform-paths.js
|
|
37663
|
-
function
|
|
37664
|
-
|
|
37665
|
-
|
|
37666
|
-
|
|
37667
|
-
|
|
37670
|
+
function createPathTree() {
|
|
37671
|
+
return {
|
|
37672
|
+
leaves: void 0,
|
|
37673
|
+
fields: void 0,
|
|
37674
|
+
mapFields: void 0,
|
|
37675
|
+
anyField: void 0
|
|
37676
|
+
};
|
|
37677
|
+
}
|
|
37678
|
+
function getOrCreateChild(children, key) {
|
|
37679
|
+
let child = children.get(key);
|
|
37680
|
+
if (!child) {
|
|
37681
|
+
child = createPathTree();
|
|
37682
|
+
children.set(key, child);
|
|
37683
|
+
}
|
|
37684
|
+
return child;
|
|
37685
|
+
}
|
|
37686
|
+
function getChild(tree2, segment) {
|
|
37687
|
+
if (segment === "*") {
|
|
37688
|
+
tree2.anyField ?? (tree2.anyField = createPathTree());
|
|
37689
|
+
return tree2.anyField;
|
|
37690
|
+
}
|
|
37691
|
+
if (segment.endsWith("{}")) {
|
|
37692
|
+
tree2.mapFields ?? (tree2.mapFields = /* @__PURE__ */ new Map());
|
|
37693
|
+
return getOrCreateChild(tree2.mapFields, segment.slice(0, -2));
|
|
37694
|
+
}
|
|
37695
|
+
tree2.fields ?? (tree2.fields = /* @__PURE__ */ new Map());
|
|
37696
|
+
return getOrCreateChild(tree2.fields, segment);
|
|
37697
|
+
}
|
|
37698
|
+
function buildPathTree(paths) {
|
|
37699
|
+
const root = createPathTree();
|
|
37700
|
+
for (const transformPath of paths) {
|
|
37701
|
+
const tree2 = transformPath.path.split(".").reduce(getChild, root);
|
|
37702
|
+
tree2.leaves ?? (tree2.leaves = []);
|
|
37703
|
+
tree2.leaves.push(transformPath);
|
|
37704
|
+
}
|
|
37705
|
+
return root;
|
|
37706
|
+
}
|
|
37707
|
+
function getPathTree(paths) {
|
|
37708
|
+
let tree2 = pathTrees.get(paths);
|
|
37709
|
+
if (!tree2) {
|
|
37710
|
+
tree2 = buildPathTree(paths);
|
|
37711
|
+
pathTrees.set(paths, tree2);
|
|
37712
|
+
}
|
|
37713
|
+
return tree2;
|
|
37714
|
+
}
|
|
37715
|
+
function isObject7(value) {
|
|
37716
|
+
return typeof value === "object" && value !== null;
|
|
37717
|
+
}
|
|
37718
|
+
function transformLeaf(value, { isRepeated, isMap }, transformFn) {
|
|
37719
|
+
if (isRepeated) {
|
|
37720
|
+
return Array.isArray(value) ? value.map(transformFn) : value;
|
|
37668
37721
|
}
|
|
37669
|
-
|
|
37670
|
-
|
|
37671
|
-
const cleanPath = first2.slice(0, -2);
|
|
37672
|
-
obj[cleanPath] = Object.fromEntries(Object.entries(obj[cleanPath]).map(([key, value]) => [
|
|
37722
|
+
if (isMap) {
|
|
37723
|
+
return isObject7(value) ? Object.fromEntries(Object.entries(value).map(([key, entry]) => [
|
|
37673
37724
|
key,
|
|
37674
|
-
|
|
37675
|
-
]));
|
|
37676
|
-
}
|
|
37677
|
-
|
|
37678
|
-
|
|
37679
|
-
|
|
37680
|
-
|
|
37681
|
-
|
|
37682
|
-
|
|
37683
|
-
|
|
37684
|
-
|
|
37725
|
+
transformFn(entry)
|
|
37726
|
+
])) : value;
|
|
37727
|
+
}
|
|
37728
|
+
return transformFn(value);
|
|
37729
|
+
}
|
|
37730
|
+
function transformNested(value, tree2, transformFn) {
|
|
37731
|
+
if (isObject7(value)) {
|
|
37732
|
+
transformObject(value, tree2, transformFn);
|
|
37733
|
+
}
|
|
37734
|
+
}
|
|
37735
|
+
function transformFields(obj, fields, transformFn) {
|
|
37736
|
+
for (const [key, field] of fields) {
|
|
37737
|
+
if (!(key in obj)) {
|
|
37738
|
+
continue;
|
|
37739
|
+
}
|
|
37740
|
+
if (field.leaves) {
|
|
37741
|
+
for (const leaf of field.leaves) {
|
|
37742
|
+
obj[key] = transformLeaf(obj[key], leaf, transformFn);
|
|
37743
|
+
}
|
|
37744
|
+
}
|
|
37745
|
+
const value = obj[key];
|
|
37746
|
+
if (Array.isArray(value)) {
|
|
37747
|
+
value.forEach((item) => transformNested(item, field, transformFn));
|
|
37748
|
+
} else {
|
|
37749
|
+
transformNested(value, field, transformFn);
|
|
37750
|
+
}
|
|
37751
|
+
}
|
|
37752
|
+
}
|
|
37753
|
+
function transformMapFields(obj, mapFields, transformFn) {
|
|
37754
|
+
for (const [key, valueTree] of mapFields) {
|
|
37755
|
+
const map7 = obj[key];
|
|
37756
|
+
if (isObject7(map7)) {
|
|
37757
|
+
Object.values(map7).forEach((value) => transformNested(value, valueTree, transformFn));
|
|
37758
|
+
}
|
|
37759
|
+
}
|
|
37760
|
+
}
|
|
37761
|
+
function transformObject(obj, { fields, mapFields, anyField }, transformFn) {
|
|
37762
|
+
if (fields) {
|
|
37763
|
+
transformFields(obj, fields, transformFn);
|
|
37764
|
+
}
|
|
37765
|
+
if (mapFields) {
|
|
37766
|
+
transformMapFields(obj, mapFields, transformFn);
|
|
37767
|
+
}
|
|
37768
|
+
if (anyField) {
|
|
37769
|
+
Object.values(obj).forEach((value) => transformNested(value, anyField, transformFn));
|
|
37685
37770
|
}
|
|
37686
|
-
return obj;
|
|
37687
37771
|
}
|
|
37688
37772
|
function transformPaths(obj, transformations) {
|
|
37689
|
-
|
|
37773
|
+
if (!isObject7(obj)) {
|
|
37774
|
+
return obj;
|
|
37775
|
+
}
|
|
37776
|
+
for (const { paths, transformFn } of transformations) {
|
|
37777
|
+
transformObject(obj, getPathTree(paths), transformFn);
|
|
37778
|
+
}
|
|
37779
|
+
return obj;
|
|
37690
37780
|
}
|
|
37781
|
+
var pathTrees;
|
|
37691
37782
|
var init_transform_paths = __esm({
|
|
37692
37783
|
"../../node_modules/@wix/sdk-runtime/build/transformations/transform-paths.js"() {
|
|
37784
|
+
pathTrees = /* @__PURE__ */ new WeakMap();
|
|
37693
37785
|
}
|
|
37694
37786
|
});
|
|
37695
37787
|
|
|
@@ -37798,7 +37890,7 @@ var require_isSymbol = __commonJS({
|
|
|
37798
37890
|
var require_toNumber = __commonJS({
|
|
37799
37891
|
"../../node_modules/lodash/toNumber.js"(exports, module) {
|
|
37800
37892
|
var baseTrim = require_baseTrim();
|
|
37801
|
-
var
|
|
37893
|
+
var isObject8 = require_isObject();
|
|
37802
37894
|
var isSymbol = require_isSymbol();
|
|
37803
37895
|
var NAN = 0 / 0;
|
|
37804
37896
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
@@ -37812,9 +37904,9 @@ var require_toNumber = __commonJS({
|
|
|
37812
37904
|
if (isSymbol(value)) {
|
|
37813
37905
|
return NAN;
|
|
37814
37906
|
}
|
|
37815
|
-
if (
|
|
37907
|
+
if (isObject8(value)) {
|
|
37816
37908
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
37817
|
-
value =
|
|
37909
|
+
value = isObject8(other) ? other + "" : other;
|
|
37818
37910
|
}
|
|
37819
37911
|
if (typeof value != "string") {
|
|
37820
37912
|
return value === 0 ? value : +value;
|
|
@@ -37830,7 +37922,7 @@ var require_toNumber = __commonJS({
|
|
|
37830
37922
|
// ../../node_modules/lodash/debounce.js
|
|
37831
37923
|
var require_debounce2 = __commonJS({
|
|
37832
37924
|
"../../node_modules/lodash/debounce.js"(exports, module) {
|
|
37833
|
-
var
|
|
37925
|
+
var isObject8 = require_isObject();
|
|
37834
37926
|
var now = require_now();
|
|
37835
37927
|
var toNumber = require_toNumber();
|
|
37836
37928
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
@@ -37842,7 +37934,7 @@ var require_debounce2 = __commonJS({
|
|
|
37842
37934
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
37843
37935
|
}
|
|
37844
37936
|
wait = toNumber(wait) || 0;
|
|
37845
|
-
if (
|
|
37937
|
+
if (isObject8(options)) {
|
|
37846
37938
|
leading = !!options.leading;
|
|
37847
37939
|
maxing = "maxWait" in options;
|
|
37848
37940
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -38472,6 +38564,7 @@ var normalizeGalleryItems = ({
|
|
|
38472
38564
|
type: "image",
|
|
38473
38565
|
id: `gallery-item:${nodeId}:${index2}`,
|
|
38474
38566
|
sourceIndex: index2,
|
|
38567
|
+
seed: getSeed(item.image.media, index2),
|
|
38475
38568
|
title,
|
|
38476
38569
|
alt: alt2,
|
|
38477
38570
|
width: dimensions.width,
|
|
@@ -38493,6 +38586,7 @@ var normalizeGalleryItems = ({
|
|
|
38493
38586
|
type: "video",
|
|
38494
38587
|
id: `gallery-item:${nodeId}:${index2}`,
|
|
38495
38588
|
sourceIndex: index2,
|
|
38589
|
+
seed: getSeed(item.video.media, index2),
|
|
38496
38590
|
title,
|
|
38497
38591
|
alt: alt2,
|
|
38498
38592
|
width: dimensions.width,
|
|
@@ -38518,6 +38612,10 @@ var normalizeSource = (media, type) => {
|
|
|
38518
38612
|
...isPositiveFinite2(media.height) ? { height: media.height } : {}
|
|
38519
38613
|
};
|
|
38520
38614
|
};
|
|
38615
|
+
var getSeed = (media, index2) => Array.from(`${media.src?.url || media.src?.id || ""}_${index2}`).reduce(
|
|
38616
|
+
(sum, character) => sum + character.charCodeAt(0),
|
|
38617
|
+
0
|
|
38618
|
+
);
|
|
38521
38619
|
var normalizeDimensions = (media) => ({
|
|
38522
38620
|
width: isPositiveFinite2(media.width) ? media.width : FALLBACK_DIMENSION,
|
|
38523
38621
|
height: isPositiveFinite2(media.height) ? media.height : FALLBACK_DIMENSION
|
|
@@ -38553,6 +38651,20 @@ var normalizeRel = (rel) => {
|
|
|
38553
38651
|
return values.join(" ");
|
|
38554
38652
|
};
|
|
38555
38653
|
|
|
38654
|
+
// ../../node_modules/@wix/ricos/dist/es/_shared/build-responsive-css.js
|
|
38655
|
+
var VIEWPORT_ROOT = "[data-ricos-responsive=viewport]";
|
|
38656
|
+
var buildResponsiveCss = (query, rules) => {
|
|
38657
|
+
const scoped = (scope) => rules.map(({ selector, declarations }) => `${scope(selector)} {${declarations}}`).join("\n");
|
|
38658
|
+
return `
|
|
38659
|
+
@container ${query} {
|
|
38660
|
+
${scoped((selector) => `${selector}:where(:not(${VIEWPORT_ROOT} *))`)}
|
|
38661
|
+
}
|
|
38662
|
+
@media ${query} {
|
|
38663
|
+
${scoped((selector) => `:where(${VIEWPORT_ROOT}) ${selector}`)}
|
|
38664
|
+
}
|
|
38665
|
+
`;
|
|
38666
|
+
};
|
|
38667
|
+
|
|
38556
38668
|
// ../../node_modules/@wix/ricos/dist/es/_shared/line-spacing-utils.js
|
|
38557
38669
|
var MIN_LINE_HEIGHT = 0.8;
|
|
38558
38670
|
var normalizeLineHeight = (lineHeight) => {
|
|
@@ -39848,21 +39960,21 @@ init_wix_rich_content_common();
|
|
|
39848
39960
|
|
|
39849
39961
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/rich-content-viewer-scss.js
|
|
39850
39962
|
var rich_content_viewer_default = {
|
|
39851
|
-
"fontElementMap": "
|
|
39852
|
-
"wrapper": "
|
|
39853
|
-
"pluginContainerMobile": "
|
|
39854
|
-
"viewer": "
|
|
39855
|
-
"android": "
|
|
39856
|
-
"rootedTraversedContent": "
|
|
39857
|
-
"atomic": "
|
|
39858
|
-
"toolbar": "
|
|
39859
|
-
"block": "
|
|
39963
|
+
"fontElementMap": "EpgrZ",
|
|
39964
|
+
"wrapper": "yONbw",
|
|
39965
|
+
"pluginContainerMobile": "_1qwlX",
|
|
39966
|
+
"viewer": "GH4wW",
|
|
39967
|
+
"android": "rR3oR",
|
|
39968
|
+
"rootedTraversedContent": "_9mfdz",
|
|
39969
|
+
"atomic": "bDmul",
|
|
39970
|
+
"toolbar": "YhpZ9",
|
|
39971
|
+
"block": "KnySL"
|
|
39860
39972
|
};
|
|
39861
39973
|
|
|
39862
39974
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/rtl-scss.js
|
|
39863
39975
|
var rtl_default = {
|
|
39864
|
-
"rtl": "
|
|
39865
|
-
"ltr": "
|
|
39976
|
+
"rtl": "EJpHg",
|
|
39977
|
+
"ltr": "APc9Z"
|
|
39866
39978
|
};
|
|
39867
39979
|
|
|
39868
39980
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/components/anchor.js
|
|
@@ -39917,9 +40029,13 @@ var viewer_default = BoldDecorator;
|
|
|
39917
40029
|
|
|
39918
40030
|
// ../../node_modules/@wix/ricos/dist/es/ricos-common-plugins/font-size/viewer.js
|
|
39919
40031
|
init_v1();
|
|
40032
|
+
|
|
40033
|
+
// ../../node_modules/@wix/ricos/dist/es/_shared/format-font-size.js
|
|
40034
|
+
var formatFontSize = ({ value, unit }, config) => config?.overrideInlineFontSize && value ? config.overrideInlineFontSize(value.toString(), unit) : `${value}${(unit ?? "PX").toLowerCase()}`;
|
|
40035
|
+
|
|
40036
|
+
// ../../node_modules/@wix/ricos/dist/es/ricos-common-plugins/font-size/viewer.js
|
|
39920
40037
|
var decorator4 = (element, fontSizeDecoration, config) => {
|
|
39921
|
-
const
|
|
39922
|
-
const fontSize = config?.overrideInlineFontSize && value ? config.overrideInlineFontSize(value?.toString() ?? "", unit) : `${value}${unit ? unit.toLowerCase() : "px"}`;
|
|
40038
|
+
const fontSize = formatFontSize(fontSizeDecoration.fontSizeData || {}, config);
|
|
39923
40039
|
return /* @__PURE__ */ React173.createElement(
|
|
39924
40040
|
"span",
|
|
39925
40041
|
{
|
|
@@ -40158,13 +40274,13 @@ init_ricos_context2();
|
|
|
40158
40274
|
|
|
40159
40275
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/indentation-scss.js
|
|
40160
40276
|
var indentation_default = {
|
|
40161
|
-
"indentZero": "
|
|
40162
|
-
"indentOne": "
|
|
40163
|
-
"indentTwo": "
|
|
40164
|
-
"indentThree": "
|
|
40165
|
-
"indentFour": "
|
|
40166
|
-
"indentFive": "
|
|
40167
|
-
"indentSix": "
|
|
40277
|
+
"indentZero": "l2HIx",
|
|
40278
|
+
"indentOne": "CG84K",
|
|
40279
|
+
"indentTwo": "_7wtfO",
|
|
40280
|
+
"indentThree": "rXsF0",
|
|
40281
|
+
"indentFour": "vCEDx",
|
|
40282
|
+
"indentFive": "_664FN",
|
|
40283
|
+
"indentSix": "_4BRNs"
|
|
40168
40284
|
};
|
|
40169
40285
|
var Anchorable = ({ nodeId, children }) => {
|
|
40170
40286
|
return React173.cloneElement(React173.Children.only(children), {
|
|
@@ -40197,8 +40313,8 @@ var alignmentToFlex = {
|
|
|
40197
40313
|
|
|
40198
40314
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js
|
|
40199
40315
|
var blockquote_default = {
|
|
40200
|
-
"quoteContainer": "
|
|
40201
|
-
"quote": "
|
|
40316
|
+
"quoteContainer": "_8cKzM",
|
|
40317
|
+
"quote": "JaSGB"
|
|
40202
40318
|
};
|
|
40203
40319
|
|
|
40204
40320
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote.js
|
|
@@ -40240,34 +40356,34 @@ init_v1();
|
|
|
40240
40356
|
|
|
40241
40357
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/alignment-scss.js
|
|
40242
40358
|
var alignment_default = {
|
|
40243
|
-
"alignLeft": "
|
|
40244
|
-
"textWrapNowrap": "
|
|
40245
|
-
"alignRight": "
|
|
40246
|
-
"alignCenter": "
|
|
40247
|
-
"sizeFullWidth": "
|
|
40248
|
-
"renderedInTable": "
|
|
40249
|
-
"sizeOriginal": "
|
|
40250
|
-
"sizeContent": "
|
|
40251
|
-
"sizeSmall": "
|
|
40252
|
-
"sizeSmallCenter": "
|
|
40253
|
-
"flex": "
|
|
40254
|
-
"LEFT": "
|
|
40255
|
-
"CENTER": "
|
|
40256
|
-
"RIGHT": "
|
|
40257
|
-
"AUTO": "
|
|
40258
|
-
"JUSTIFY": "
|
|
40359
|
+
"alignLeft": "_9FGo3",
|
|
40360
|
+
"textWrapNowrap": "Z5EMa",
|
|
40361
|
+
"alignRight": "aNf42",
|
|
40362
|
+
"alignCenter": "SPrjH",
|
|
40363
|
+
"sizeFullWidth": "QrwB7",
|
|
40364
|
+
"renderedInTable": "TFwzN",
|
|
40365
|
+
"sizeOriginal": "_53ubd",
|
|
40366
|
+
"sizeContent": "_1sQzR",
|
|
40367
|
+
"sizeSmall": "EWRBd",
|
|
40368
|
+
"sizeSmallCenter": "SPCuV",
|
|
40369
|
+
"flex": "EZIL1",
|
|
40370
|
+
"LEFT": "_5mwy4",
|
|
40371
|
+
"CENTER": "ICLVs",
|
|
40372
|
+
"RIGHT": "bP9Bu",
|
|
40373
|
+
"AUTO": "z6Hxc",
|
|
40374
|
+
"JUSTIFY": "y2aXj"
|
|
40259
40375
|
};
|
|
40260
40376
|
|
|
40261
40377
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js
|
|
40262
40378
|
var codeblock_default = {
|
|
40263
|
-
"codeBlock": "
|
|
40379
|
+
"codeBlock": "e36Yd mZzF2"};
|
|
40264
40380
|
|
|
40265
40381
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock.js
|
|
40266
40382
|
var CodeBlock = ({ node, nodeIndex, RicosNodesRenderer: RicosNodesRenderer2 }) => {
|
|
40267
|
-
const { seoMode } = useContext(RicosViewerContext);
|
|
40383
|
+
const { seoMode, plugins } = useContext(RicosViewerContext);
|
|
40268
40384
|
const { textAlignment: parentAlignment } = useContext(RicosAlignmentContext);
|
|
40269
40385
|
const { parentNode } = useContext(RicosNodeContext);
|
|
40270
|
-
const { textAlignment, lineHeight } = node.codeBlockData?.textStyle || {};
|
|
40386
|
+
const { textAlignment, lineHeight, fontSize } = node.codeBlockData?.textStyle || {};
|
|
40271
40387
|
const codeBlockClassName = (0, import_classnames7.default)(
|
|
40272
40388
|
codeblock_default.codeBlock,
|
|
40273
40389
|
alignment_default[textAlignment || parentAlignment || TextStyle_TextAlignment2.AUTO],
|
|
@@ -40275,7 +40391,14 @@ var CodeBlock = ({ node, nodeIndex, RicosNodesRenderer: RicosNodesRenderer2 }) =
|
|
|
40275
40391
|
);
|
|
40276
40392
|
const nodeStyle = {
|
|
40277
40393
|
...node.style,
|
|
40278
|
-
...lineHeight && { lineHeight: normalizeLineHeight(lineHeight) }
|
|
40394
|
+
...lineHeight && { lineHeight: normalizeLineHeight(lineHeight) },
|
|
40395
|
+
// Text renders at its own sizes, so only an empty block takes its own
|
|
40396
|
+
...!node.nodes?.length && fontSize?.value && {
|
|
40397
|
+
fontSize: formatFontSize(
|
|
40398
|
+
fontSize,
|
|
40399
|
+
plugins?.find((plugin) => plugin.type === "fontSize")
|
|
40400
|
+
)
|
|
40401
|
+
}
|
|
40279
40402
|
};
|
|
40280
40403
|
return /* @__PURE__ */ React173.createElement(Anchorable, { nodeId: node.id }, /* @__PURE__ */ React173.createElement("pre", { className: codeBlockClassName, style: nodeStyle, dir: "auto" }, /* @__PURE__ */ React173.createElement(
|
|
40281
40404
|
"span",
|
|
@@ -40284,7 +40407,7 @@ var CodeBlock = ({ node, nodeIndex, RicosNodesRenderer: RicosNodesRenderer2 }) =
|
|
|
40284
40407
|
textAlignment === TextStyle_TextAlignment2.JUSTIFY && alignment_default[textAlignment]
|
|
40285
40408
|
)
|
|
40286
40409
|
},
|
|
40287
|
-
/* @__PURE__ */ React173.createElement(RicosNodeContextProvider, { parentNode: node, parentIndex: nodeIndex }, /* @__PURE__ */ React173.createElement(RicosNodesRenderer2, { nodes: node.nodes
|
|
40410
|
+
node.nodes?.length ? /* @__PURE__ */ React173.createElement(RicosNodeContextProvider, { parentNode: node, parentIndex: nodeIndex }, /* @__PURE__ */ React173.createElement(RicosNodesRenderer2, { nodes: node.nodes })) : /* @__PURE__ */ React173.createElement("br", { role: "presentation" })
|
|
40288
40411
|
)));
|
|
40289
40412
|
};
|
|
40290
40413
|
var CodeBlockRenderer = ({ node, ...props2 }) => {
|
|
@@ -40299,15 +40422,15 @@ init_v1();
|
|
|
40299
40422
|
|
|
40300
40423
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js
|
|
40301
40424
|
var heading_default = {
|
|
40302
|
-
"fontElementMap": "
|
|
40303
|
-
"elementSpacing": "
|
|
40304
|
-
"headerOne": "
|
|
40305
|
-
"headerTwo": "
|
|
40306
|
-
"headerThree": "
|
|
40307
|
-
"headerFour": "
|
|
40308
|
-
"headerFive": "
|
|
40309
|
-
"headerSix": "
|
|
40310
|
-
"child": "
|
|
40425
|
+
"fontElementMap": "CDadn",
|
|
40426
|
+
"elementSpacing": "QTRu3",
|
|
40427
|
+
"headerOne": "j-6WO QTRu3",
|
|
40428
|
+
"headerTwo": "-d3em QTRu3",
|
|
40429
|
+
"headerThree": "lwu2i QTRu3",
|
|
40430
|
+
"headerFour": "sofPP QTRu3",
|
|
40431
|
+
"headerFive": "qR99E QTRu3",
|
|
40432
|
+
"headerSix": "f0yg8 QTRu3",
|
|
40433
|
+
"child": "OQrn5"
|
|
40311
40434
|
};
|
|
40312
40435
|
|
|
40313
40436
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading.js
|
|
@@ -40329,13 +40452,13 @@ var levelToTag = {
|
|
|
40329
40452
|
};
|
|
40330
40453
|
var FALLBACK_LEVEL = 1;
|
|
40331
40454
|
var Heading = ({ node, nodeIndex, RicosNodesRenderer: RicosNodesRenderer2 }) => {
|
|
40332
|
-
const { seoMode } = useContext(RicosViewerContext);
|
|
40455
|
+
const { seoMode, plugins } = useContext(RicosViewerContext);
|
|
40333
40456
|
const { textAlignment: parentAlignment } = useContext(RicosAlignmentContext);
|
|
40334
40457
|
const { parentNode } = useContext(RicosNodeContext);
|
|
40335
40458
|
const directionHandled = useContext(RicosDirectionHandledContext);
|
|
40336
40459
|
const { level = 0, textStyle, indentation = 0, renderedLevel } = node.headingData || {};
|
|
40337
40460
|
const tagLevel = renderedLevel && renderedLevel >= 1 && renderedLevel <= 6 ? renderedLevel : level;
|
|
40338
|
-
const { textAlignment, lineHeight } = textStyle || {};
|
|
40461
|
+
const { textAlignment, lineHeight, fontSize } = textStyle || {};
|
|
40339
40462
|
const headingClassName = (0, import_classnames8.default)(
|
|
40340
40463
|
heading_default[levelToClassName[level] ?? levelToClassName[FALLBACK_LEVEL]],
|
|
40341
40464
|
alignment_default[textAlignment || parentAlignment || TextStyle_TextAlignment2.AUTO],
|
|
@@ -40348,8 +40471,12 @@ var Heading = ({ node, nodeIndex, RicosNodesRenderer: RicosNodesRenderer2 }) =>
|
|
|
40348
40471
|
);
|
|
40349
40472
|
const Tag3 = levelToTag[tagLevel] ?? levelToTag[FALLBACK_LEVEL];
|
|
40350
40473
|
const nodeStyle = node.style ? { ...node.style } : {};
|
|
40351
|
-
lineHeight && (nodeStyle.lineHeight = normalizeLineHeight(lineHeight));
|
|
40352
40474
|
const isEmpty5 = !node.nodes?.length;
|
|
40475
|
+
lineHeight && (nodeStyle.lineHeight = normalizeLineHeight(lineHeight));
|
|
40476
|
+
isEmpty5 && fontSize?.value && (nodeStyle.fontSize = formatFontSize(
|
|
40477
|
+
fontSize,
|
|
40478
|
+
plugins?.find((plugin) => plugin.type === "fontSize")
|
|
40479
|
+
));
|
|
40353
40480
|
const doesEndWithSoftLine = !isEmpty5 && node.nodes?.[node.nodes.length - 1]?.textData?.text?.slice(-1) === "\n";
|
|
40354
40481
|
const Content = isEmpty5 ? /* @__PURE__ */ React173.createElement("br", { role: "presentation" }) : /* @__PURE__ */ React173.createElement(RicosNodeContextProvider, { parentNode: node, parentIndex: nodeIndex }, /* @__PURE__ */ React173.createElement(RicosNodesRenderer2, { key: `children-${node.id}`, nodes: node.nodes ?? [] }));
|
|
40355
40482
|
return /* @__PURE__ */ React173.createElement(Anchorable, { nodeId: node.id }, /* @__PURE__ */ React173.createElement(
|
|
@@ -40384,16 +40511,16 @@ init_ricos_context2();
|
|
|
40384
40511
|
|
|
40385
40512
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js
|
|
40386
40513
|
var layout_default = {
|
|
40387
|
-
"sectionDividerClip": "
|
|
40388
|
-
"sectionDivider": "
|
|
40389
|
-
"sectionDividerTop": "
|
|
40390
|
-
"sectionDividerBottom": "
|
|
40391
|
-
"layoutWrapper": "
|
|
40392
|
-
"layout": "
|
|
40393
|
-
"designOnLayout": "
|
|
40394
|
-
"designOnCell": "
|
|
40395
|
-
"cell": "
|
|
40396
|
-
"mobile": "
|
|
40514
|
+
"sectionDividerClip": "Ctmnf",
|
|
40515
|
+
"sectionDivider": "GQej4",
|
|
40516
|
+
"sectionDividerTop": "A4R-C",
|
|
40517
|
+
"sectionDividerBottom": "MSu7P",
|
|
40518
|
+
"layoutWrapper": "M9IqF",
|
|
40519
|
+
"layout": "f-cAa",
|
|
40520
|
+
"designOnLayout": "_7x8la",
|
|
40521
|
+
"designOnCell": "xmz5-",
|
|
40522
|
+
"cell": "FUDyb",
|
|
40523
|
+
"mobile": "AzqtI"
|
|
40397
40524
|
};
|
|
40398
40525
|
|
|
40399
40526
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/layout/cell.js
|
|
@@ -40731,20 +40858,6 @@ var getDividerLayers = (divider) => {
|
|
|
40731
40858
|
init_ricos_context2();
|
|
40732
40859
|
init_viewer_context();
|
|
40733
40860
|
|
|
40734
|
-
// ../../node_modules/@wix/ricos/dist/es/_shared/build-responsive-css.js
|
|
40735
|
-
var VIEWPORT_ROOT = "[data-ricos-responsive=viewport]";
|
|
40736
|
-
var buildResponsiveCss = (query, rules) => {
|
|
40737
|
-
const scoped = (scope) => rules.map(({ selector, declarations }) => `${scope(selector)} {${declarations}}`).join("\n");
|
|
40738
|
-
return `
|
|
40739
|
-
@container ${query} {
|
|
40740
|
-
${scoped((selector) => `${selector}:where(:not(${VIEWPORT_ROOT} *))`)}
|
|
40741
|
-
}
|
|
40742
|
-
@media ${query} {
|
|
40743
|
-
${scoped((selector) => `:where(${VIEWPORT_ROOT}) ${selector}`)}
|
|
40744
|
-
}
|
|
40745
|
-
`;
|
|
40746
|
-
};
|
|
40747
|
-
|
|
40748
40861
|
// ../../node_modules/@wix/ricos/dist/es/_shared/is-edge-banner.js
|
|
40749
40862
|
init_next_schema();
|
|
40750
40863
|
var isEdgeBanner = (banner) => !!banner && banner.position !== LayoutData_BannerPosition.PAYWALL;
|
|
@@ -40761,9 +40874,9 @@ function resolveBackwardCompatOverlay(color, imageOpacity, opacityMax) {
|
|
|
40761
40874
|
init_resolve_css_color();
|
|
40762
40875
|
|
|
40763
40876
|
// ../../node_modules/@wix/ricos/dist/es/ui-components/layout-background-loader/layout-background-loader-scss.js
|
|
40764
|
-
var styleDataHash2 = "
|
|
40877
|
+
var styleDataHash2 = "6e3f55a7";
|
|
40765
40878
|
var injectCss2 = (() => {
|
|
40766
|
-
var css = `.
|
|
40879
|
+
var css = `.w3T5e{--shimmer-base-color:#f5f5f5;background-color:var(--shimmer-base-color);inset:0;pointer-events:none;position:absolute;z-index:1}.yLX3t{inset:0;overflow:hidden;position:absolute}.yLX3t:after{animation:Z4EbH 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 Z4EbH{to{transform:translateX(100%)}}`;
|
|
40767
40880
|
typeof process !== "undefined" && process.env && false;
|
|
40768
40881
|
if (typeof document === "undefined") {
|
|
40769
40882
|
return;
|
|
@@ -40784,8 +40897,8 @@ var injectCss2 = (() => {
|
|
|
40784
40897
|
});
|
|
40785
40898
|
injectCss2();
|
|
40786
40899
|
var layout_background_loader_default = {
|
|
40787
|
-
"overlay": "
|
|
40788
|
-
"shimmer": "
|
|
40900
|
+
"overlay": "w3T5e",
|
|
40901
|
+
"shimmer": "yLX3t"};
|
|
40789
40902
|
|
|
40790
40903
|
// ../../node_modules/@wix/ricos/dist/es/ui-components/layout-background-loader/layout-background-loader.js
|
|
40791
40904
|
var DEFAULT_BACKGROUND_COLOR = "#f5f5f5";
|
|
@@ -41096,11 +41209,11 @@ init_v1();
|
|
|
41096
41209
|
|
|
41097
41210
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js
|
|
41098
41211
|
var lists_default = {
|
|
41099
|
-
"orderedlist": "
|
|
41100
|
-
"bulletedlist": "
|
|
41101
|
-
"listItem": "
|
|
41102
|
-
"checkboxList": "
|
|
41103
|
-
"checkboxInput": "
|
|
41212
|
+
"orderedlist": "_7AJpk",
|
|
41213
|
+
"bulletedlist": "hYiwr",
|
|
41214
|
+
"listItem": "VfvfH",
|
|
41215
|
+
"checkboxList": "oaXQ0",
|
|
41216
|
+
"checkboxInput": "zZn12"
|
|
41104
41217
|
};
|
|
41105
41218
|
|
|
41106
41219
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/bulleted-list.js
|
|
@@ -41156,6 +41269,10 @@ init_ricos_context2();
|
|
|
41156
41269
|
init_v1();
|
|
41157
41270
|
init_ricos_types();
|
|
41158
41271
|
|
|
41272
|
+
// ../../node_modules/@wix/ricos/dist/es/_shared/get-px-font-size.js
|
|
41273
|
+
init_next_schema();
|
|
41274
|
+
var getPxFontSize = (fontSize) => fontSize?.value && (fontSize.unit ?? FontSizeData_fontType.PX) === FontSizeData_fontType.PX ? Number(fontSize.value) : void 0;
|
|
41275
|
+
|
|
41159
41276
|
// ../../node_modules/@wix/ricos/dist/es/_shared/list-checkbox/get-block-default-font-size.js
|
|
41160
41277
|
init_theme_constants();
|
|
41161
41278
|
var getBlockDefaultFontSize = (headingLevel) => parseFloat(
|
|
@@ -41199,7 +41316,7 @@ var ListItem = ({ node, nodeIndex, RicosNodesRenderer: RicosNodesRenderer2 }) =>
|
|
|
41199
41316
|
const { visibleIndentation } = useContext(VisibleIndentationContext);
|
|
41200
41317
|
const firstChild = node.nodes[0];
|
|
41201
41318
|
const dataProperty = `${firstChild?.type?.toLowerCase()}Data`;
|
|
41202
|
-
const { textAlignment } = firstChild?.[dataProperty]?.textStyle || {};
|
|
41319
|
+
const { textAlignment, fontSize: blockFontSize } = firstChild?.[dataProperty]?.textStyle || {};
|
|
41203
41320
|
const { textAlignment: parentAlignment } = useContext(RicosAlignmentContext);
|
|
41204
41321
|
const finalAlignment = textAlignment && textAlignment !== TextStyle_TextAlignment2.AUTO ? textAlignment : parentAlignment;
|
|
41205
41322
|
const listStylePosition = textAlignment && textAlignment === TextStyle_TextAlignment2.CENTER;
|
|
@@ -41214,9 +41331,12 @@ var ListItem = ({ node, nodeIndex, RicosNodesRenderer: RicosNodesRenderer2 }) =>
|
|
|
41214
41331
|
lists_default.listItem,
|
|
41215
41332
|
isPaywallSeo(seoMode) && getPaywallSeoClass(seoMode?.paywall || {}, nodeIndex + parentIndex)
|
|
41216
41333
|
);
|
|
41217
|
-
const
|
|
41218
|
-
|
|
41219
|
-
|
|
41334
|
+
const [firstText] = firstChild?.nodes ?? [];
|
|
41335
|
+
const childFontSize = getPxFontSize(
|
|
41336
|
+
firstText ? firstText.textData?.decorations?.find(
|
|
41337
|
+
(decoration) => decoration.type === Decoration_Type2.FONT_SIZE
|
|
41338
|
+
)?.fontSizeData : blockFontSize
|
|
41339
|
+
);
|
|
41220
41340
|
const shouldFitChildFont = !!childFontSize && childFontSize < getBlockDefaultFontSize(headingLevel || void 0);
|
|
41221
41341
|
const animationDomAttrs = hasPlugin(ANIMATION_TYPE, plugins) ? getAnimationDomAttrs(node) : {};
|
|
41222
41342
|
return /* @__PURE__ */ React173.createElement(
|
|
@@ -41288,8 +41408,8 @@ init_v1();
|
|
|
41288
41408
|
|
|
41289
41409
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js
|
|
41290
41410
|
var paragraph_default = {
|
|
41291
|
-
"text": "
|
|
41292
|
-
"child": "
|
|
41411
|
+
"text": "FC-4G VkchC",
|
|
41412
|
+
"child": "C-9s7"
|
|
41293
41413
|
};
|
|
41294
41414
|
|
|
41295
41415
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph.js
|
|
@@ -41299,12 +41419,12 @@ var Paragraph = ({
|
|
|
41299
41419
|
RicosNodesRenderer: RicosNodesRenderer2,
|
|
41300
41420
|
shouldParagraphApplyTextStyle
|
|
41301
41421
|
}) => {
|
|
41302
|
-
const { seoMode } = useContext(RicosViewerContext);
|
|
41422
|
+
const { seoMode, plugins } = useContext(RicosViewerContext);
|
|
41303
41423
|
const { textAlignment: parentAlignment } = useContext(RicosAlignmentContext);
|
|
41304
41424
|
const { parentNode } = useContext(RicosNodeContext);
|
|
41305
41425
|
const directionHandled = useContext(RicosDirectionHandledContext);
|
|
41306
41426
|
const { indentation = 0 } = node.paragraphData || {};
|
|
41307
|
-
const { textAlignment, lineHeight } = node.paragraphData?.textStyle || {};
|
|
41427
|
+
const { textAlignment, lineHeight, fontSize } = node.paragraphData?.textStyle || {};
|
|
41308
41428
|
const finalParagraphAlignment = textAlignment === TextStyle_TextAlignment2.AUTO || !textAlignment ? parentAlignment : textAlignment;
|
|
41309
41429
|
const paragraphClassName = (0, import_classnames14.default)(
|
|
41310
41430
|
shouldParagraphApplyTextStyle && paragraph_default.text,
|
|
@@ -41321,7 +41441,14 @@ var Paragraph = ({
|
|
|
41321
41441
|
const Tag3 = isEmpty5 || !shouldParagraphApplyTextStyle ? "div" : "p";
|
|
41322
41442
|
const nodeStyle = {
|
|
41323
41443
|
...node.style,
|
|
41324
|
-
...lineHeight && { lineHeight: normalizeLineHeight(lineHeight) }
|
|
41444
|
+
...lineHeight && { lineHeight: normalizeLineHeight(lineHeight) },
|
|
41445
|
+
// Text renders at its own sizes, so only an empty block takes its own
|
|
41446
|
+
...isEmpty5 && fontSize?.value && {
|
|
41447
|
+
fontSize: formatFontSize(
|
|
41448
|
+
fontSize,
|
|
41449
|
+
plugins?.find((plugin) => plugin.type === "fontSize")
|
|
41450
|
+
)
|
|
41451
|
+
}
|
|
41325
41452
|
};
|
|
41326
41453
|
const Content = isEmpty5 ? /* @__PURE__ */ React173.createElement("br", { role: "presentation" }) : /* @__PURE__ */ React173.createElement(RicosNodeContextProvider, { parentNode: node, parentIndex: nodeIndex }, /* @__PURE__ */ React173.createElement(RicosNodesRenderer2, { key: `children-${node.id}`, nodes: node.nodes ?? [] }));
|
|
41327
41454
|
return /* @__PURE__ */ React173.createElement(Anchorable, { nodeId: node.id }, /* @__PURE__ */ React173.createElement(
|
|
@@ -41376,6 +41503,35 @@ var renderers = {
|
|
|
41376
41503
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/get-plugin-renderers.js
|
|
41377
41504
|
init_v1();
|
|
41378
41505
|
|
|
41506
|
+
// ../../node_modules/@wix/ricos/dist/es/ricos-content/fp-utils.js
|
|
41507
|
+
init_Array();
|
|
41508
|
+
|
|
41509
|
+
// ../../node_modules/@wix/ricos/dist/es/ricos-content/fp-utils.js
|
|
41510
|
+
init_Either();
|
|
41511
|
+
init_function();
|
|
41512
|
+
init_Monoid();
|
|
41513
|
+
init_Option();
|
|
41514
|
+
init_Semigroup();
|
|
41515
|
+
var firstRight2 = (candidate, defaultT, resolvers) => {
|
|
41516
|
+
const firstRightSemi = getSemigroup3(first());
|
|
41517
|
+
const concatFirstRightSemi = concatAll2(firstRightSemi)(left2(defaultT));
|
|
41518
|
+
return pipe(
|
|
41519
|
+
concatFirstRightSemi(
|
|
41520
|
+
pipe(
|
|
41521
|
+
resolvers,
|
|
41522
|
+
map(
|
|
41523
|
+
(r3) => pipe(
|
|
41524
|
+
candidate,
|
|
41525
|
+
fromPredicate2(r3[0], () => defaultT),
|
|
41526
|
+
map3(r3[1])
|
|
41527
|
+
)
|
|
41528
|
+
)
|
|
41529
|
+
)
|
|
41530
|
+
),
|
|
41531
|
+
fold(identity, identity)
|
|
41532
|
+
);
|
|
41533
|
+
};
|
|
41534
|
+
|
|
41379
41535
|
// ../../node_modules/@wix/ricos/dist/es/ricos-content/converters/draft/toDraft/convert-struct-to-json.js
|
|
41380
41536
|
init_Array();
|
|
41381
41537
|
init_function();
|
|
@@ -41383,7 +41539,6 @@ init_Monoid();
|
|
|
41383
41539
|
init_Record();
|
|
41384
41540
|
init_Semigroup();
|
|
41385
41541
|
init_Tuple();
|
|
41386
|
-
init_fp_utils();
|
|
41387
41542
|
|
|
41388
41543
|
// ../../node_modules/@wix/ricos/dist/es/ricos-content/converters/draft/struct-refined-types.js
|
|
41389
41544
|
init_v1();
|
|
@@ -41421,9 +41576,9 @@ init_v1();
|
|
|
41421
41576
|
__toESM(require_classnames(), 1);
|
|
41422
41577
|
|
|
41423
41578
|
// ../../node_modules/@wix/ricos/dist/es/wix-rich-content-common/statics/styles/general-scss.js
|
|
41424
|
-
var styleDataHash3 = "
|
|
41579
|
+
var styleDataHash3 = "9804e71d";
|
|
41425
41580
|
var injectCss3 = (() => {
|
|
41426
|
-
var css = `.
|
|
41581
|
+
var css = `.ONLrB{margin-left:0;margin-right:auto;z-index:1}.ONLrB:not(.BvCRw){float:left;margin-right:40px}@supports not (contain:inline-size){@media only screen and (max-width:480px){.ONLrB:not(.BvCRw){float:none;margin-right:auto}}}@container (width < 480px){.ONLrB:not(.BvCRw):where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){float:none;margin-right:auto}}@media (width < 480px){.ONLrB:not(.BvCRw):where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) .ONLrB:not(.BvCRw){float:none;margin-right:auto}}._5pfmQ{margin-left:auto;margin-right:0;z-index:1}._5pfmQ:not(.BvCRw){float:right;margin-left:40px}@supports not (contain:inline-size){@media only screen and (max-width:480px){._5pfmQ:not(.BvCRw){float:none;margin-left:auto}}}@container (width < 480px){._5pfmQ:not(.BvCRw):where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){float:none;margin-left:auto}}@media (width < 480px){._5pfmQ:not(.BvCRw):where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) ._5pfmQ:not(.BvCRw){float:none;margin-left:auto}}.pQvEI{clear:both;display:block}.pQvEI:not(.Ha4A4){margin-left:auto;margin-right:auto;max-width:100%}.BvCRw,.Ha4A4{width:100%}.BMUqP .BvCRw,.BMUqP .Ha4A4{margin:0 -8px;width:auto}.LOR-Z{width:fit-content}.LS-Dd{margin-left:auto;margin-right:auto;max-width:100%}.uJp4f{width:min(350px,100%)!important}.BMUqP .uJp4f{width:50%}.F9COf{margin-left:auto;margin-right:auto}.BMUqP .F9COf{width:150px}.xKUKw{display:flex}`;
|
|
41427
41582
|
typeof process !== "undefined" && process.env && false;
|
|
41428
41583
|
if (typeof document === "undefined") {
|
|
41429
41584
|
return;
|
|
@@ -41445,9 +41600,9 @@ var injectCss3 = (() => {
|
|
|
41445
41600
|
injectCss3();
|
|
41446
41601
|
|
|
41447
41602
|
// ../../node_modules/@wix/ricos/dist/es/editor-common/statics/styles/general-scss.js
|
|
41448
|
-
var styleDataHash4 = "
|
|
41603
|
+
var styleDataHash4 = "afcc38d8";
|
|
41449
41604
|
var injectCss4 = (() => {
|
|
41450
|
-
var css = `.
|
|
41605
|
+
var css = `.ajbVf,.jY8Ia,button{font-family:var(--ricos-font-family,unset)}.glob_fontElementMap{font-family:var(--ricos-font-family,unset)}.TBUth{display:flex}.A2Wyt:hover{border-radius:var(--ricos-native-whitebox-border-radius,0);box-shadow:0 0 0 1.5px #116dff;cursor:default}.FENCw{border-radius:var(--ricos-native-whitebox-border-radius,0);box-shadow:0 0 0 1.5px #116dff;cursor:default}.JkzRx .FENCw{box-shadow:none!important}[data-hook^=figure-][data-cropping] .FENCw{box-shadow:none!important}.JkzRx :is([data-resize-handle],[data-hook=image-corner-radius-handle],[data-hook=image-corner-radius-label]){display:none!important}.hSkdU{cursor:move;display:block;height:100%;left:0;position:absolute;top:0;width:100%}.hSkdU.jfonJ{pointer-events:none}.O9bMG ::selection{background:transparent}.F9yMx{display:none}.jY8Ia{position:relative}.VDQg6{max-width:100%}._6rjck{color:#333;text-decoration:none}.ksBqU{display:block}.x7qqW{position:relative}.nQ9S4{margin-left:-20px;margin-right:-20px;overflow-x:auto;overflow-y:hidden}.nQ9S4.tLBQD::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5)}.nQ9S4.HO6Ux::-webkit-scrollbar-thumb{background-color:transparent}.r8neN{max-width:max-content!important;min-width:100%}.nQ9S4::-webkit-scrollbar{-webkit-appearance:none}.nQ9S4::-webkit-scrollbar-thumb{border:2px solid #fff;border-radius:8px}.nQ9S4::-webkit-scrollbar:horizontal{height:10px}`;
|
|
41451
41606
|
typeof process !== "undefined" && process.env && false;
|
|
41452
41607
|
if (typeof document === "undefined") {
|
|
41453
41608
|
return;
|
|
@@ -41477,21 +41632,21 @@ var getContainerData = (node) => {
|
|
|
41477
41632
|
|
|
41478
41633
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js
|
|
41479
41634
|
var plugin_default = {
|
|
41480
|
-
"alignLeft": "
|
|
41481
|
-
"textWrapNowrap": "
|
|
41482
|
-
"alignRight": "
|
|
41483
|
-
"alignCenter": "
|
|
41484
|
-
"sizeFullWidth": "
|
|
41485
|
-
"renderedInTable": "
|
|
41486
|
-
"sizeOriginal": "
|
|
41487
|
-
"sizeContent": "
|
|
41488
|
-
"sizeSmall": "
|
|
41489
|
-
"sizeSmallCenter": "
|
|
41490
|
-
"flex": "
|
|
41491
|
-
"atomic": "
|
|
41492
|
-
"embed": "
|
|
41493
|
-
"horizontalScrollbar": "
|
|
41494
|
-
"pluginContainerMobile": "
|
|
41635
|
+
"alignLeft": "OkSYX",
|
|
41636
|
+
"textWrapNowrap": "BAaIL",
|
|
41637
|
+
"alignRight": "EtvtD",
|
|
41638
|
+
"alignCenter": "sPB6L",
|
|
41639
|
+
"sizeFullWidth": "_2QFDh",
|
|
41640
|
+
"renderedInTable": "wy84Y",
|
|
41641
|
+
"sizeOriginal": "l9igK",
|
|
41642
|
+
"sizeContent": "f2SBf",
|
|
41643
|
+
"sizeSmall": "_165Xx",
|
|
41644
|
+
"sizeSmallCenter": "ZS-rM",
|
|
41645
|
+
"flex": "eF33-",
|
|
41646
|
+
"atomic": "FuJrB",
|
|
41647
|
+
"embed": "_0qHTY",
|
|
41648
|
+
"horizontalScrollbar": "bPpW-",
|
|
41649
|
+
"pluginContainerMobile": "M-Uze"
|
|
41495
41650
|
};
|
|
41496
41651
|
|
|
41497
41652
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/get-class-names.js
|
|
@@ -41589,8 +41744,8 @@ init_wix_rich_content_common();
|
|
|
41589
41744
|
|
|
41590
41745
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js
|
|
41591
41746
|
var link_viewer_wrapper_default = {
|
|
41592
|
-
"anchor": "
|
|
41593
|
-
"link": "
|
|
41747
|
+
"anchor": "q9xF5",
|
|
41748
|
+
"link": "FoMBc"
|
|
41594
41749
|
};
|
|
41595
41750
|
|
|
41596
41751
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper.js
|
|
@@ -41942,9 +42097,9 @@ init_v1();
|
|
|
41942
42097
|
var import_classnames19 = __toESM(require_classnames(), 1);
|
|
41943
42098
|
|
|
41944
42099
|
// ../../node_modules/@wix/ricos/dist/es/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js
|
|
41945
|
-
var styleDataHash5 = "
|
|
42100
|
+
var styleDataHash5 = "ab33b243";
|
|
41946
42101
|
var injectCss5 = (() => {
|
|
41947
|
-
var css = `.
|
|
42102
|
+
var css = `.YX9Tc,.gf-ne{cursor:pointer;height:14px;margin:0;padding:0;pointer-events:auto;position:relative;width:100%}.YX9Tc:not(.jpC8W):hover .H-M6-,.gf-ne:not(.jpC8W):hover .H-M6-{opacity:1}.YX9Tc.jpC8W,.jpC8W.gf-ne{cursor:auto;height:0;pointer-events:none}.gf-ne{cursor:none;pointer-events:none}.pFjDE .H-M6-{opacity:1}.H-M6-{background-color:#116dff;height:2px;opacity:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;width:100%;z-index:1000000}.H-M6-:after,.H-M6-:before{background-color:#116dff;content:"";height:3px;left:0;opacity:.3;position:absolute;width:100%}.H-M6-:before{top:-3px}.H-M6-:after{bottom:-3px}._3Ze55{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}._9VcPI{display:none}@supports not (contain:inline-size){@media only screen and (max-width:480px){._9VcPI{display:block}}}@container (width < 480px){._9VcPI:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){display:block}}@media (width < 480px){._9VcPI:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) ._9VcPI{display:block}}.PBvfR{margin-top:14px}`;
|
|
41948
42103
|
typeof process !== "undefined" && process.env && false;
|
|
41949
42104
|
if (typeof document === "undefined") {
|
|
41950
42105
|
return;
|
|
@@ -41965,9 +42120,9 @@ var injectCss5 = (() => {
|
|
|
41965
42120
|
});
|
|
41966
42121
|
injectCss5();
|
|
41967
42122
|
var gap_spacer_styles_default = {
|
|
41968
|
-
"gapSpacerViewer": "
|
|
41969
|
-
"collapsed": "
|
|
41970
|
-
"betweenFloated": "
|
|
42123
|
+
"gapSpacerViewer": "gf-ne",
|
|
42124
|
+
"collapsed": "jpC8W",
|
|
42125
|
+
"betweenFloated": "_9VcPI"};
|
|
41971
42126
|
|
|
41972
42127
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/components/gap-spacer.js
|
|
41973
42128
|
var GapSpacer = ({
|
|
@@ -42772,7 +42927,7 @@ var RicosViewerNext = class extends Component {
|
|
|
42772
42927
|
console.error({ error, errorInfo });
|
|
42773
42928
|
}
|
|
42774
42929
|
componentDidMount() {
|
|
42775
|
-
addDevToolsClickListener(
|
|
42930
|
+
this.removeDevToolsClickListener = addDevToolsClickListener(
|
|
42776
42931
|
this.viewerRef.current,
|
|
42777
42932
|
() => this.setState({ debugInvokedWithMouse: true })
|
|
42778
42933
|
);
|
|
@@ -42780,6 +42935,9 @@ var RicosViewerNext = class extends Component {
|
|
|
42780
42935
|
this.props.onLoad?.();
|
|
42781
42936
|
}
|
|
42782
42937
|
}
|
|
42938
|
+
componentWillUnmount() {
|
|
42939
|
+
this.removeDevToolsClickListener?.();
|
|
42940
|
+
}
|
|
42783
42941
|
render() {
|
|
42784
42942
|
const { seoSettings, mediaSettings, content, debugMode, isPrint } = this.props;
|
|
42785
42943
|
const { TextSelectionToolbar: TextSelectionToolbar2 } = this.state;
|
|
@@ -43121,6 +43279,7 @@ var ForcedState = /* @__PURE__ */ (function(ForcedState2) {
|
|
|
43121
43279
|
ForcedState2["INPUT_FIELDS_FOCUS"] = "INPUT_FIELDS_FOCUS";
|
|
43122
43280
|
ForcedState2["INPUT_FIELDS_ERROR"] = "INPUT_FIELDS_ERROR";
|
|
43123
43281
|
ForcedState2["SUCCESS_MESSAGE"] = "SUCCESS_MESSAGE";
|
|
43282
|
+
ForcedState2["FORM_CLOSED"] = "FORM_CLOSED";
|
|
43124
43283
|
ForcedState2["HIDDEN_FIELDS"] = "HIDDEN_FIELDS";
|
|
43125
43284
|
return ForcedState2;
|
|
43126
43285
|
})({});
|
|
@@ -56972,15 +57131,15 @@ __export(es_exports, {
|
|
|
56972
57131
|
SubdivisionType: () => SubdivisionType,
|
|
56973
57132
|
getPlace: () => getPlace4
|
|
56974
57133
|
});
|
|
56975
|
-
|
|
57134
|
+
init_transform_error2();
|
|
56976
57135
|
init_rename_all_nested_keys();
|
|
56977
|
-
|
|
57136
|
+
init_rest_modules3();
|
|
56978
57137
|
init_float();
|
|
56979
57138
|
init_transform_paths();
|
|
56980
|
-
|
|
57139
|
+
init_rest_modules3();
|
|
56981
57140
|
|
|
56982
57141
|
// ../../node_modules/@wix/sdk-runtime/build/transformations/address.js
|
|
56983
|
-
|
|
57142
|
+
init_utils6();
|
|
56984
57143
|
function transformSDKAddressToRESTAddress(payload) {
|
|
56985
57144
|
return payload && removeUndefinedKeys({
|
|
56986
57145
|
city: payload.city,
|
|
@@ -57024,7 +57183,7 @@ function transformRESTAddressToSDKAddress(payload) {
|
|
|
57024
57183
|
|
|
57025
57184
|
// ../../node_modules/@wix/auto_sdk_atlas_places/build/es/index.mjs
|
|
57026
57185
|
init_transform_paths();
|
|
57027
|
-
|
|
57186
|
+
init_rest_modules3();
|
|
57028
57187
|
var TRANSFORM_PATHS_0 = [
|
|
57029
57188
|
{ path: "place.address.geocode.latitude" },
|
|
57030
57189
|
{ path: "place.address.geocode.longitude" }
|
|
@@ -57205,7 +57364,7 @@ async function getPlace2(searchId, options) {
|
|
|
57205
57364
|
])
|
|
57206
57365
|
);
|
|
57207
57366
|
} catch (err) {
|
|
57208
|
-
const transformedError =
|
|
57367
|
+
const transformedError = transformError2(
|
|
57209
57368
|
err,
|
|
57210
57369
|
{
|
|
57211
57370
|
spreadPathsToArguments: {},
|
|
@@ -57237,12 +57396,12 @@ __export(es_exports2, {
|
|
|
57237
57396
|
FilterType: () => FilterType,
|
|
57238
57397
|
predict: () => predict4
|
|
57239
57398
|
});
|
|
57240
|
-
|
|
57399
|
+
init_transform_error2();
|
|
57241
57400
|
init_rename_all_nested_keys();
|
|
57242
57401
|
init_float();
|
|
57243
57402
|
init_transform_paths();
|
|
57244
|
-
|
|
57245
|
-
|
|
57403
|
+
init_rest_modules3();
|
|
57404
|
+
init_rest_modules3();
|
|
57246
57405
|
var TRANSFORM_PATHS_03 = [
|
|
57247
57406
|
{ path: "origin.latitude" },
|
|
57248
57407
|
{ path: "origin.longitude" },
|
|
@@ -57416,7 +57575,7 @@ async function predict2(input, options) {
|
|
|
57416
57575
|
sideEffects?.onSuccess?.(result2);
|
|
57417
57576
|
return renameKeysFromRESTResponseToSDKResponse(result2.data);
|
|
57418
57577
|
} catch (err) {
|
|
57419
|
-
const transformedError =
|
|
57578
|
+
const transformedError = transformError2(
|
|
57420
57579
|
err,
|
|
57421
57580
|
{
|
|
57422
57581
|
spreadPathsToArguments: {},
|
|
@@ -57454,14 +57613,14 @@ __export(es_exports3, {
|
|
|
57454
57613
|
SubdivisionType: () => SubdivisionType2,
|
|
57455
57614
|
search: () => search4
|
|
57456
57615
|
});
|
|
57457
|
-
|
|
57616
|
+
init_transform_error2();
|
|
57458
57617
|
init_rename_all_nested_keys();
|
|
57459
|
-
|
|
57618
|
+
init_rest_modules3();
|
|
57460
57619
|
init_float();
|
|
57461
57620
|
init_transform_paths();
|
|
57462
|
-
|
|
57621
|
+
init_rest_modules3();
|
|
57463
57622
|
init_transform_paths();
|
|
57464
|
-
|
|
57623
|
+
init_rest_modules3();
|
|
57465
57624
|
var TRANSFORM_PATHS_04 = [
|
|
57466
57625
|
{ path: "searchResults.address.geocode.latitude" },
|
|
57467
57626
|
{ path: "searchResults.address.geocode.longitude" }
|
|
@@ -57667,7 +57826,7 @@ async function search2(options) {
|
|
|
57667
57826
|
])
|
|
57668
57827
|
);
|
|
57669
57828
|
} catch (err) {
|
|
57670
|
-
const transformedError =
|
|
57829
|
+
const transformedError = transformError2(
|
|
57671
57830
|
err,
|
|
57672
57831
|
{
|
|
57673
57832
|
spreadPathsToArguments: {},
|
|
@@ -61106,6 +61265,18 @@ var SignaturePad = class _SignaturePad extends SignatureEventTarget {
|
|
|
61106
61265
|
}
|
|
61107
61266
|
};
|
|
61108
61267
|
var useId2 = typeof React173.useId === "function" ? React173.useId : () => useRef(generateUUID()).current;
|
|
61268
|
+
var hasUploadTab = ({ properties }) => properties.uploadEnabled === true;
|
|
61269
|
+
var isForceableSignature = (field, mode) => field.fieldType === FIELD_TYPES.SIGNATURE && !field.properties.hidden && !field.properties.disabled && !field.properties.readOnly && (mode !== "upload" || hasUploadTab(field));
|
|
61270
|
+
var byLayoutPosition2 = (first2, second) => first2.layout.row - second.layout.row || first2.layout.column - second.layout.column;
|
|
61271
|
+
var useForcedSignatureMode = (fieldId) => {
|
|
61272
|
+
const forcedMode = useElementProps().signatureContainer?.signatureMode;
|
|
61273
|
+
const formView = useContext(FormViewContext);
|
|
61274
|
+
const firstSignatureId = useMemo(() => formView && !formView.parentId && forcedMode ? formView.fields.filter((field) => isForceableSignature(field, forcedMode)).sort(byLayoutPosition2)[0]?.id : void 0, [
|
|
61275
|
+
formView,
|
|
61276
|
+
forcedMode
|
|
61277
|
+
]);
|
|
61278
|
+
return firstSignatureId === fieldId ? forcedMode : void 0;
|
|
61279
|
+
};
|
|
61109
61280
|
|
|
61110
61281
|
// ../form-fields/dist/esm/ui/signature-field/signature-types.js
|
|
61111
61282
|
var SignatureFormat = /* @__PURE__ */ (function(SignatureFormat2) {
|
|
@@ -61636,8 +61807,14 @@ var Signature = ({ children }) => {
|
|
|
61636
61807
|
renderDescription: () => /* @__PURE__ */ React173.createElement(React173.Fragment, null, errorElement, descriptionElement)
|
|
61637
61808
|
});
|
|
61638
61809
|
};
|
|
61639
|
-
var
|
|
61640
|
-
|
|
61810
|
+
var VIEW_BY_FORCED_MODE = {
|
|
61811
|
+
[SignatureMode.DRAW]: SignatureView.DRAW,
|
|
61812
|
+
[SignatureMode.TYPE]: SignatureView.TYPE,
|
|
61813
|
+
[SignatureMode.UPLOAD]: SignatureView.UPLOAD
|
|
61814
|
+
};
|
|
61815
|
+
var Input14 = ({ children, className }) => {
|
|
61816
|
+
const { id: id6, value, onChange, target, readOnly } = useFieldPropsV2();
|
|
61817
|
+
const forcedMode = useForcedSignatureMode(id6);
|
|
61641
61818
|
const { signatureMode, setSignatureMode, handleClear, clearable, signatureView, signatureValueForView, handleChange, handleBeforeChange } = useSignatureField({
|
|
61642
61819
|
target,
|
|
61643
61820
|
value,
|
|
@@ -61646,16 +61823,19 @@ var Input14 = ({ children }) => {
|
|
|
61646
61823
|
const headerElement = findChildOfType(children, Input14.Header);
|
|
61647
61824
|
const valueElement = findChildOfType(children, Input14.Value);
|
|
61648
61825
|
const internalProps = {
|
|
61649
|
-
signatureMode,
|
|
61826
|
+
signatureMode: forcedMode ?? signatureMode,
|
|
61650
61827
|
setSignatureMode,
|
|
61651
61828
|
handleClear,
|
|
61652
61829
|
clearable,
|
|
61653
|
-
signatureView,
|
|
61654
|
-
signatureValueForView,
|
|
61830
|
+
signatureView: forcedMode ? VIEW_BY_FORCED_MODE[forcedMode] : signatureView,
|
|
61831
|
+
signatureValueForView: forcedMode ? void 0 : signatureValueForView,
|
|
61655
61832
|
handleChange,
|
|
61656
61833
|
handleBeforeChange
|
|
61657
61834
|
};
|
|
61658
|
-
return /* @__PURE__ */ React173.createElement(
|
|
61835
|
+
return /* @__PURE__ */ React173.createElement("div", {
|
|
61836
|
+
className,
|
|
61837
|
+
"data-hook": "signature-container"
|
|
61838
|
+
}, !readOnly && applyInternalProps(headerElement, internalProps), applyInternalProps(valueElement, internalProps));
|
|
61659
61839
|
};
|
|
61660
61840
|
var Header = ({ children, className, ...internal }) => {
|
|
61661
61841
|
const { signatureMode, setSignatureMode, clearable, handleClear } = internal;
|
|
@@ -61958,51 +62138,67 @@ var TypeValue = ({ className, placeholder, ...internal }) => {
|
|
|
61958
62138
|
className
|
|
61959
62139
|
});
|
|
61960
62140
|
};
|
|
61961
|
-
var
|
|
61962
|
-
display: "none"
|
|
61963
|
-
};
|
|
61964
|
-
var Upload = ({ children, className, imageAlt, ...internal }) => {
|
|
62141
|
+
var Upload = ({ children, className, ...internal }) => {
|
|
61965
62142
|
const { value, onChange, disabled, readOnly, onBlur, onFocus } = internal;
|
|
61966
|
-
const {
|
|
61967
|
-
const surfaceProps = useSurfaceProps();
|
|
62143
|
+
const { labelId, ariaDescribedBy } = useFieldAttributes();
|
|
61968
62144
|
const buttonElement = findChildOfType(children, Upload.Button);
|
|
61969
|
-
const
|
|
61970
|
-
const
|
|
61971
|
-
const
|
|
61972
|
-
if (!
|
|
62145
|
+
const previewElement = findChildOfType(children, Upload.Preview);
|
|
62146
|
+
const handleFiles = useCallback((files) => {
|
|
62147
|
+
const file = files[0];
|
|
62148
|
+
if (!file) {
|
|
61973
62149
|
onChange(null);
|
|
61974
62150
|
return;
|
|
61975
62151
|
}
|
|
61976
|
-
const file = files[0];
|
|
61977
62152
|
const fileReader = new FileReader();
|
|
61978
|
-
fileReader.onload =
|
|
61979
|
-
onChange(dataUrlToWixFile(
|
|
62153
|
+
fileReader.onload = () => {
|
|
62154
|
+
onChange(dataUrlToWixFile(fileReader.result, file.name));
|
|
61980
62155
|
};
|
|
61981
62156
|
fileReader.readAsDataURL(file);
|
|
61982
62157
|
}, [
|
|
61983
62158
|
onChange
|
|
61984
62159
|
]);
|
|
61985
62160
|
const hasUploadedImage = value && isExternalImage(value);
|
|
61986
|
-
|
|
62161
|
+
if (hasUploadedImage) {
|
|
62162
|
+
return applyInternalProps(previewElement, {
|
|
62163
|
+
value
|
|
62164
|
+
}) ?? null;
|
|
62165
|
+
}
|
|
62166
|
+
return /* @__PURE__ */ React173.createElement(DropZone$1, {
|
|
61987
62167
|
className,
|
|
61988
|
-
|
|
61989
|
-
|
|
61990
|
-
|
|
61991
|
-
|
|
61992
|
-
|
|
61993
|
-
|
|
61994
|
-
|
|
61995
|
-
|
|
61996
|
-
|
|
61997
|
-
|
|
61998
|
-
|
|
61999
|
-
|
|
62000
|
-
|
|
62168
|
+
isDisabled: disabled || readOnly,
|
|
62169
|
+
"aria-labelledby": labelId,
|
|
62170
|
+
"aria-describedby": ariaDescribedBy,
|
|
62171
|
+
"data-hook": "signature-upload-drop-zone",
|
|
62172
|
+
onDrop: async (event) => {
|
|
62173
|
+
for (const item of event.items) {
|
|
62174
|
+
if (item.kind === "file" && item.type.startsWith("image/")) {
|
|
62175
|
+
const file = await item.getFile();
|
|
62176
|
+
if (file) {
|
|
62177
|
+
handleFiles([
|
|
62178
|
+
file
|
|
62179
|
+
]);
|
|
62180
|
+
return;
|
|
62181
|
+
}
|
|
62182
|
+
}
|
|
62183
|
+
}
|
|
62184
|
+
}
|
|
62185
|
+
}, applyInternalProps(buttonElement, {
|
|
62186
|
+
onSelectFiles: handleFiles,
|
|
62001
62187
|
disabled,
|
|
62002
62188
|
readOnly,
|
|
62003
62189
|
onBlur,
|
|
62004
62190
|
onFocus
|
|
62005
|
-
})
|
|
62191
|
+
}));
|
|
62192
|
+
};
|
|
62193
|
+
var UploadPreview = ({ className, imageAlt, ...internal }) => {
|
|
62194
|
+
const { value } = internal;
|
|
62195
|
+
const { inputId } = useFieldAttributes();
|
|
62196
|
+
const surfaceProps = useSurfaceProps();
|
|
62197
|
+
return /* @__PURE__ */ React173.createElement("div", {
|
|
62198
|
+
className,
|
|
62199
|
+
"data-has-value": true,
|
|
62200
|
+
...surfaceProps
|
|
62201
|
+
}, value.url ? /* @__PURE__ */ React173.createElement("img", {
|
|
62006
62202
|
id: inputId,
|
|
62007
62203
|
src: value.url,
|
|
62008
62204
|
alt: value.displayName || imageAlt,
|
|
@@ -62010,30 +62206,44 @@ var Upload = ({ children, className, imageAlt, ...internal }) => {
|
|
|
62010
62206
|
}) : /* @__PURE__ */ React173.createElement("span", {
|
|
62011
62207
|
id: inputId,
|
|
62012
62208
|
"data-hook": "signature-image"
|
|
62013
|
-
}, value.displayName || imageAlt))
|
|
62209
|
+
}, value.displayName || imageAlt));
|
|
62014
62210
|
};
|
|
62015
|
-
var UploadButton = ({ children, className, ...internal }) => {
|
|
62016
|
-
const {
|
|
62211
|
+
var UploadButton = ({ children, className, onHoverStart, onHoverEnd, ...internal }) => {
|
|
62212
|
+
const { onSelectFiles, disabled, readOnly, onBlur, onFocus } = internal;
|
|
62017
62213
|
const { inputId, ariaDescribedBy, labelId } = useFieldAttributes();
|
|
62018
62214
|
const textId = useId2();
|
|
62019
|
-
const
|
|
62020
|
-
|
|
62021
|
-
|
|
62022
|
-
|
|
62023
|
-
|
|
62024
|
-
|
|
62215
|
+
const hasTextElement = Boolean(findChildOfType(children, UploadButton.Text));
|
|
62216
|
+
const content = hasTextElement ? Children.map(children, (child) => /* @__PURE__ */ isValidElement(child) && child.type === UploadButton.Text ? applyInternalProps(child, {
|
|
62217
|
+
textId
|
|
62218
|
+
}) : child) : /* @__PURE__ */ React173.createElement("span", {
|
|
62219
|
+
id: textId
|
|
62220
|
+
}, children);
|
|
62221
|
+
return /* @__PURE__ */ React173.createElement(FileTrigger, {
|
|
62222
|
+
acceptedFileTypes: [
|
|
62223
|
+
"image/*"
|
|
62224
|
+
],
|
|
62225
|
+
onSelect: (fileList) => {
|
|
62226
|
+
onSelectFiles(fileList ? Array.from(fileList) : []);
|
|
62227
|
+
}
|
|
62228
|
+
}, /* @__PURE__ */ React173.createElement(Button, {
|
|
62025
62229
|
id: inputId,
|
|
62026
|
-
onPress: handlePress,
|
|
62027
62230
|
onBlur,
|
|
62028
62231
|
onFocus,
|
|
62029
62232
|
isDisabled: disabled || readOnly,
|
|
62030
62233
|
"aria-labelledby": `${labelId} ${textId}`,
|
|
62031
62234
|
"aria-describedby": ariaDescribedBy,
|
|
62032
62235
|
"data-hook": "signature-upload",
|
|
62236
|
+
className,
|
|
62237
|
+
onHoverStart,
|
|
62238
|
+
onHoverEnd
|
|
62239
|
+
}, content));
|
|
62240
|
+
};
|
|
62241
|
+
var UploadButtonText = ({ children, className, ...internal }) => {
|
|
62242
|
+
const { textId } = internal;
|
|
62243
|
+
return /* @__PURE__ */ React173.createElement("span", {
|
|
62244
|
+
id: textId,
|
|
62033
62245
|
className
|
|
62034
|
-
},
|
|
62035
|
-
id: textId
|
|
62036
|
-
}, children));
|
|
62246
|
+
}, children);
|
|
62037
62247
|
};
|
|
62038
62248
|
Signature.Label = Label;
|
|
62039
62249
|
Signature.Input = Input14;
|
|
@@ -62050,7 +62260,9 @@ Value2.Canvas = Canvas;
|
|
|
62050
62260
|
Value2.Type = Type4;
|
|
62051
62261
|
Value2.Upload = Upload;
|
|
62052
62262
|
Type4.Value = TypeValue;
|
|
62263
|
+
Upload.Preview = UploadPreview;
|
|
62053
62264
|
Upload.Button = UploadButton;
|
|
62265
|
+
UploadButton.Text = UploadButtonText;
|
|
62054
62266
|
function ProgressCircle(props2) {
|
|
62055
62267
|
const strokeWidth = 4;
|
|
62056
62268
|
const radius = `calc(50% - ${strokeWidth / 2}px)`;
|