@cntrl-site/components 1.0.106 → 1.0.107-alpha.2
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/ArchivePopup-CjWbiDk6.mjs +711 -0
- package/dist/ArchivePopup-CwhC3gmz.js +180 -0
- package/dist/ArchivePopupComponent-BWG23JpA.js +1 -0
- package/dist/{PretextComponent-OygSO3fr.mjs → ArchivePopupComponent-HsEAy1CM.mjs} +869 -429
- package/dist/Components/ArchivePopup/ArchivePopup.d.ts +158 -0
- package/dist/Components/ArchivePopup/ArchivePopupComponent.d.ts +298 -0
- package/dist/components-DR32MT02.js +1 -0
- package/dist/{components-BRmbflgg.mjs → components-UlM4o-To.mjs} +12 -11
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +6 -5
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/sources.js +1046 -22
- package/dist/sources.mjs +1070 -45
- package/package.json +1 -1
- package/dist/PretextComponent-Dnbenstn.js +0 -1
- package/dist/components-nvbH4l0S.js +0 -1
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { CommonComponentProps } from '../props';
|
|
2
|
+
import { TextStyles } from '../utils/textStylesToCss';
|
|
3
|
+
type ArchivePopupMedia = {
|
|
4
|
+
assetId: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
type?: 'image' | 'video';
|
|
7
|
+
objectFit?: 'cover' | 'contain';
|
|
8
|
+
};
|
|
9
|
+
/** Columns count the group column too, so the least is the group and its title. */
|
|
10
|
+
export declare const ARCHIVE_POPUP_MIN_COLUMNS = 2;
|
|
11
|
+
export declare const ARCHIVE_POPUP_MAX_COLUMNS = 5;
|
|
12
|
+
/** The fields of the columns after the title, in order; `columns` decides how many of them a row shows. */
|
|
13
|
+
export declare const ARCHIVE_POPUP_EXTRA_TITLE_KEYS: readonly ["title2", "title3", "title4"];
|
|
14
|
+
/** Every column but the last has a width of its own, like Programme's; the last takes what is left of the row. */
|
|
15
|
+
export declare const ARCHIVE_POPUP_COLUMN_WIDTH_KEYS: readonly ["column1Width", "column2Width", "column3Width", "column4Width"];
|
|
16
|
+
type ArchivePopupColumnWidthKey = typeof ARCHIVE_POPUP_COLUMN_WIDTH_KEYS[number];
|
|
17
|
+
/**
|
|
18
|
+
* Where B's panel sits on the screen, as `left`/`top` of the screen and of the panel alike, so 0% is flush with
|
|
19
|
+
* one edge and 100% with the other. Named like Mercury's title position; center comes first because the editor
|
|
20
|
+
* puts the first value into a popup saved before there was a position, and those were centred.
|
|
21
|
+
*/
|
|
22
|
+
declare const PANEL_POSITION_OFFSETS: {
|
|
23
|
+
readonly center: {
|
|
24
|
+
readonly x: "50%";
|
|
25
|
+
readonly y: "50%";
|
|
26
|
+
};
|
|
27
|
+
readonly 'left-top': {
|
|
28
|
+
readonly x: "0%";
|
|
29
|
+
readonly y: "0%";
|
|
30
|
+
};
|
|
31
|
+
readonly 'top-center': {
|
|
32
|
+
readonly x: "50%";
|
|
33
|
+
readonly y: "0%";
|
|
34
|
+
};
|
|
35
|
+
readonly 'top-right': {
|
|
36
|
+
readonly x: "100%";
|
|
37
|
+
readonly y: "0%";
|
|
38
|
+
};
|
|
39
|
+
readonly 'left-center': {
|
|
40
|
+
readonly x: "0%";
|
|
41
|
+
readonly y: "50%";
|
|
42
|
+
};
|
|
43
|
+
readonly 'right-center': {
|
|
44
|
+
readonly x: "100%";
|
|
45
|
+
readonly y: "50%";
|
|
46
|
+
};
|
|
47
|
+
readonly 'left-bottom': {
|
|
48
|
+
readonly x: "0%";
|
|
49
|
+
readonly y: "100%";
|
|
50
|
+
};
|
|
51
|
+
readonly 'bottom-center': {
|
|
52
|
+
readonly x: "50%";
|
|
53
|
+
readonly y: "100%";
|
|
54
|
+
};
|
|
55
|
+
readonly 'right-bottom': {
|
|
56
|
+
readonly x: "100%";
|
|
57
|
+
readonly y: "100%";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export type ArchivePopupPanelPosition = keyof typeof PANEL_POSITION_OFFSETS;
|
|
61
|
+
export declare const ARCHIVE_POPUP_PANEL_POSITIONS: ArchivePopupPanelPosition[];
|
|
62
|
+
/** Each column of a row has a text style of its own, the group column's being `column1`. */
|
|
63
|
+
export declare const ARCHIVE_POPUP_COLUMN_STYLE_PREFIXES: readonly ["column1", "column2", "column3", "column4", "column5"];
|
|
64
|
+
type ArchivePopupColumnStylePrefix = typeof ARCHIVE_POPUP_COLUMN_STYLE_PREFIXES[number];
|
|
65
|
+
type ArchivePopupTitle = any[] | string;
|
|
66
|
+
export type ArchivePopupContentItem = {
|
|
67
|
+
group?: string;
|
|
68
|
+
/** Rich text, so parts of a title can be linked; a plain string is still shown as is. */
|
|
69
|
+
title?: ArchivePopupTitle;
|
|
70
|
+
title2?: ArchivePopupTitle;
|
|
71
|
+
title3?: ArchivePopupTitle;
|
|
72
|
+
title4?: ArchivePopupTitle;
|
|
73
|
+
/** The row's hover images, shown in turn while it is hovered; a row saved before there could be several holds just one. */
|
|
74
|
+
image?: ArchivePopupMedia | ArchivePopupMedia[];
|
|
75
|
+
};
|
|
76
|
+
type FontSettings = {
|
|
77
|
+
fontWeight: number;
|
|
78
|
+
fontStyle: string;
|
|
79
|
+
};
|
|
80
|
+
type Padding = {
|
|
81
|
+
top: number;
|
|
82
|
+
right: number;
|
|
83
|
+
bottom: number;
|
|
84
|
+
left: number;
|
|
85
|
+
};
|
|
86
|
+
/** A text style as settings hold it, each field under the name of what it styles, e.g. `triggerFontSize`. */
|
|
87
|
+
type TextStyleFields = {
|
|
88
|
+
FontFamily?: string;
|
|
89
|
+
FontSettings?: FontSettings;
|
|
90
|
+
FontSize?: number;
|
|
91
|
+
LineHeight?: number;
|
|
92
|
+
LetterSpacing?: number;
|
|
93
|
+
WordSpacing?: number;
|
|
94
|
+
TextAlign?: TextStyles['textAlign'];
|
|
95
|
+
TextAppearance?: TextStyles['textAppearance'];
|
|
96
|
+
};
|
|
97
|
+
type PrefixedTextStyle<Prefix extends string> = {
|
|
98
|
+
[Key in keyof TextStyleFields as `${Prefix}${Key}`]?: TextStyleFields[Key];
|
|
99
|
+
};
|
|
100
|
+
type ArchivePopupSettings = PrefixedTextStyle<'trigger'> & PrefixedTextStyle<ArchivePopupColumnStylePrefix> & PrefixedTextStyle<'list'> & {
|
|
101
|
+
/** `a` is always open, in place on the page; `b` opens from a label. */
|
|
102
|
+
type?: 'a' | 'b';
|
|
103
|
+
triggerLabel?: string;
|
|
104
|
+
closeLabel?: string;
|
|
105
|
+
/** Every column of a row, the group column included. */
|
|
106
|
+
columns?: number;
|
|
107
|
+
columnGap?: number;
|
|
108
|
+
column1Width?: number;
|
|
109
|
+
column2Width?: number;
|
|
110
|
+
column3Width?: number;
|
|
111
|
+
column4Width?: number;
|
|
112
|
+
/** How long each of a hovered row's images shows before the next, in ms. */
|
|
113
|
+
hoverInterval?: number;
|
|
114
|
+
/** B only: A's panel stays where it is placed on the page. */
|
|
115
|
+
panelPosition?: string;
|
|
116
|
+
panelWidth?: number;
|
|
117
|
+
panelPadding?: Padding;
|
|
118
|
+
panelRadius?: number;
|
|
119
|
+
groupGap?: number;
|
|
120
|
+
triggerColor?: string;
|
|
121
|
+
triggerHoverColor?: string;
|
|
122
|
+
closeColor?: string;
|
|
123
|
+
closeHoverColor?: string;
|
|
124
|
+
panelColor?: string;
|
|
125
|
+
textColor?: string;
|
|
126
|
+
textHoverColor?: string;
|
|
127
|
+
overlayColor?: string;
|
|
128
|
+
};
|
|
129
|
+
type ArchivePopupProps = {
|
|
130
|
+
settings: ArchivePopupSettings;
|
|
131
|
+
content?: ArchivePopupContentItem[];
|
|
132
|
+
isEditor?: boolean;
|
|
133
|
+
isEditMode?: boolean;
|
|
134
|
+
isPreviewMode?: boolean;
|
|
135
|
+
activeEvent?: string;
|
|
136
|
+
portalId?: string;
|
|
137
|
+
} & CommonComponentProps;
|
|
138
|
+
export type ArchivePopupRow = {
|
|
139
|
+
item: ArchivePopupContentItem;
|
|
140
|
+
index: number;
|
|
141
|
+
};
|
|
142
|
+
export type ArchivePopupGroup = {
|
|
143
|
+
label: string;
|
|
144
|
+
rows: ArchivePopupRow[];
|
|
145
|
+
};
|
|
146
|
+
type ColumnLayoutSettings = Pick<ArchivePopupSettings, 'columns' | 'columnGap' | 'panelWidth' | 'panelPadding'> & Partial<Record<ArchivePopupColumnWidthKey, number>>;
|
|
147
|
+
export declare function getArchivePopupEqualColumnWidths(settings: ColumnLayoutSettings): Partial<Record<ArchivePopupColumnWidthKey, number>>;
|
|
148
|
+
/**
|
|
149
|
+
* Every column's width, the last taking what the others leave. A column with no width of its own gets an equal share,
|
|
150
|
+
* and widths that no longer fit, after the panel narrows or a column is added, shrink together until they do.
|
|
151
|
+
*/
|
|
152
|
+
export declare function resolveArchivePopupColumnWidths(settings: ColumnLayoutSettings): number[];
|
|
153
|
+
/** Like Programme, a new column count starts the columns over at equal widths. */
|
|
154
|
+
export declare function applyArchivePopupColumnCountChange(nextSettings: Record<string, any>, prevSettings: Record<string, any>): Record<string, any>;
|
|
155
|
+
export declare function groupArchiveRows(items: ArchivePopupContentItem[]): ArchivePopupGroup[];
|
|
156
|
+
export declare function getArchivePopupRowMedia(item: ArchivePopupContentItem | undefined): ArchivePopupMedia[];
|
|
157
|
+
export declare function ArchivePopup({ settings, content, isEditor, isEditMode, isPreviewMode, activeEvent, portalId, currentState, unavailableStates, }: ArchivePopupProps): import("react/jsx-runtime").JSX.Element;
|
|
158
|
+
export {};
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { LayoutTab, SchemaDisplayRule, SchemaProperty } from '../../types/SchemaV1';
|
|
2
|
+
import { applyArchivePopupColumnCountChange, ArchivePopup } from './ArchivePopup';
|
|
3
|
+
export declare const ArchivePopupComponent: {
|
|
4
|
+
element: typeof ArchivePopup;
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
category: string;
|
|
8
|
+
normalizeLayoutSettingsUpdate: typeof applyArchivePopupColumnCountChange;
|
|
9
|
+
preview: {
|
|
10
|
+
type: "image";
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
version: number;
|
|
14
|
+
schema: {
|
|
15
|
+
type: "object";
|
|
16
|
+
version: 1;
|
|
17
|
+
content: {
|
|
18
|
+
type: "array";
|
|
19
|
+
settings: {
|
|
20
|
+
addItemWithoutImage: true;
|
|
21
|
+
allowsVideo: true;
|
|
22
|
+
};
|
|
23
|
+
display: {
|
|
24
|
+
type: string;
|
|
25
|
+
rules: SchemaDisplayRule[];
|
|
26
|
+
};
|
|
27
|
+
items: {
|
|
28
|
+
type: "object";
|
|
29
|
+
properties: {
|
|
30
|
+
image: {
|
|
31
|
+
type: "object";
|
|
32
|
+
label: string;
|
|
33
|
+
display: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
properties: {
|
|
37
|
+
assetId: {
|
|
38
|
+
type: "string";
|
|
39
|
+
};
|
|
40
|
+
name: {
|
|
41
|
+
type: "string";
|
|
42
|
+
};
|
|
43
|
+
type: {
|
|
44
|
+
type: "string";
|
|
45
|
+
enum: string[];
|
|
46
|
+
};
|
|
47
|
+
objectFit: {
|
|
48
|
+
type: "string";
|
|
49
|
+
enum: string[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
group: {
|
|
54
|
+
type: "string";
|
|
55
|
+
label: string;
|
|
56
|
+
placeholder: string;
|
|
57
|
+
display: {
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
title: {
|
|
62
|
+
label: string;
|
|
63
|
+
placeholder: string;
|
|
64
|
+
display: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
default: {
|
|
71
|
+
group: string;
|
|
72
|
+
title: {
|
|
73
|
+
type: string;
|
|
74
|
+
children: {
|
|
75
|
+
text: string;
|
|
76
|
+
}[];
|
|
77
|
+
}[];
|
|
78
|
+
image: {
|
|
79
|
+
assetId: string;
|
|
80
|
+
name: string;
|
|
81
|
+
objectFit: "cover";
|
|
82
|
+
}[];
|
|
83
|
+
}[];
|
|
84
|
+
};
|
|
85
|
+
settings: {
|
|
86
|
+
sizing: string;
|
|
87
|
+
properties: {
|
|
88
|
+
hoverInterval: {
|
|
89
|
+
type: "number";
|
|
90
|
+
scope: "common";
|
|
91
|
+
title: string;
|
|
92
|
+
display: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
min: number;
|
|
96
|
+
step: number;
|
|
97
|
+
max: number;
|
|
98
|
+
};
|
|
99
|
+
panelPosition: {
|
|
100
|
+
type: "string";
|
|
101
|
+
scope: "layout";
|
|
102
|
+
title: string;
|
|
103
|
+
display: {
|
|
104
|
+
type: string;
|
|
105
|
+
enum: ("center" | "top-center" | "top-right" | "bottom-center" | "left-top" | "left-center" | "right-center" | "left-bottom" | "right-bottom")[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
panelWidth: SchemaProperty;
|
|
109
|
+
panelPadding: {
|
|
110
|
+
type: "object";
|
|
111
|
+
scope: "layout";
|
|
112
|
+
title: string;
|
|
113
|
+
display: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
panelRadius: SchemaProperty;
|
|
118
|
+
groupGap: SchemaProperty;
|
|
119
|
+
triggerColor: SchemaProperty;
|
|
120
|
+
triggerHoverColor: SchemaProperty;
|
|
121
|
+
closeColor: SchemaProperty;
|
|
122
|
+
closeHoverColor: SchemaProperty;
|
|
123
|
+
textColor: SchemaProperty;
|
|
124
|
+
textHoverColor: SchemaProperty;
|
|
125
|
+
panelColor: SchemaProperty;
|
|
126
|
+
overlayColor: SchemaProperty;
|
|
127
|
+
type: {
|
|
128
|
+
type: "string";
|
|
129
|
+
scope: "layout";
|
|
130
|
+
title: string;
|
|
131
|
+
display: {
|
|
132
|
+
type: string;
|
|
133
|
+
};
|
|
134
|
+
enum: string[];
|
|
135
|
+
};
|
|
136
|
+
triggerLabel: {
|
|
137
|
+
type: "string";
|
|
138
|
+
scope: "common";
|
|
139
|
+
title: string;
|
|
140
|
+
display: {
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
closeLabel: {
|
|
145
|
+
type: "string";
|
|
146
|
+
scope: "common";
|
|
147
|
+
title: string;
|
|
148
|
+
display: {
|
|
149
|
+
type: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
columns: {
|
|
153
|
+
type: "number";
|
|
154
|
+
scope: "layout";
|
|
155
|
+
title: string;
|
|
156
|
+
display: {
|
|
157
|
+
type: string;
|
|
158
|
+
};
|
|
159
|
+
min: number;
|
|
160
|
+
max: number;
|
|
161
|
+
};
|
|
162
|
+
columnGap: SchemaProperty;
|
|
163
|
+
};
|
|
164
|
+
defaults: {
|
|
165
|
+
triggerLabel: string;
|
|
166
|
+
closeLabel: string;
|
|
167
|
+
hoverInterval: number;
|
|
168
|
+
triggerColor: string;
|
|
169
|
+
triggerHoverColor: string;
|
|
170
|
+
closeColor: string;
|
|
171
|
+
closeHoverColor: string;
|
|
172
|
+
panelColor: string;
|
|
173
|
+
textColor: string;
|
|
174
|
+
textHoverColor: string;
|
|
175
|
+
overlayColor: string;
|
|
176
|
+
triggerFontFamily: string;
|
|
177
|
+
triggerFontSettings: {
|
|
178
|
+
fontWeight: number;
|
|
179
|
+
fontStyle: string;
|
|
180
|
+
};
|
|
181
|
+
triggerLetterSpacing: number;
|
|
182
|
+
triggerWordSpacing: number;
|
|
183
|
+
triggerTextAppearance: {
|
|
184
|
+
textTransform: string;
|
|
185
|
+
textDecoration: string;
|
|
186
|
+
fontVariant: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
layoutDefaults: {
|
|
190
|
+
m: {
|
|
191
|
+
type: string;
|
|
192
|
+
panelPosition: string;
|
|
193
|
+
columns: number;
|
|
194
|
+
columnGap: number;
|
|
195
|
+
panelWidth: number;
|
|
196
|
+
panelPadding: {
|
|
197
|
+
top: number;
|
|
198
|
+
right: number;
|
|
199
|
+
bottom: number;
|
|
200
|
+
left: number;
|
|
201
|
+
};
|
|
202
|
+
panelRadius: number;
|
|
203
|
+
groupGap: number;
|
|
204
|
+
triggerFontSize: number;
|
|
205
|
+
triggerLineHeight: number;
|
|
206
|
+
} & Partial<Record<"column1Width" | "column2Width" | "column3Width" | "column4Width", number>>;
|
|
207
|
+
t: {
|
|
208
|
+
type: string;
|
|
209
|
+
panelPosition: string;
|
|
210
|
+
columns: number;
|
|
211
|
+
columnGap: number;
|
|
212
|
+
panelWidth: number;
|
|
213
|
+
panelPadding: {
|
|
214
|
+
top: number;
|
|
215
|
+
right: number;
|
|
216
|
+
bottom: number;
|
|
217
|
+
left: number;
|
|
218
|
+
};
|
|
219
|
+
panelRadius: number;
|
|
220
|
+
groupGap: number;
|
|
221
|
+
triggerFontSize: number;
|
|
222
|
+
triggerLineHeight: number;
|
|
223
|
+
} & Partial<Record<"column1Width" | "column2Width" | "column3Width" | "column4Width", number>>;
|
|
224
|
+
d: {
|
|
225
|
+
type: string;
|
|
226
|
+
panelPosition: string;
|
|
227
|
+
columns: number;
|
|
228
|
+
columnGap: number;
|
|
229
|
+
panelWidth: number;
|
|
230
|
+
panelPadding: {
|
|
231
|
+
top: number;
|
|
232
|
+
right: number;
|
|
233
|
+
bottom: number;
|
|
234
|
+
left: number;
|
|
235
|
+
};
|
|
236
|
+
panelRadius: number;
|
|
237
|
+
groupGap: number;
|
|
238
|
+
triggerFontSize: number;
|
|
239
|
+
triggerLineHeight: number;
|
|
240
|
+
} & Partial<Record<"column1Width" | "column2Width" | "column3Width" | "column4Width", number>>;
|
|
241
|
+
};
|
|
242
|
+
displayRules: (SchemaDisplayRule | {
|
|
243
|
+
if: {
|
|
244
|
+
name: string;
|
|
245
|
+
value: string;
|
|
246
|
+
};
|
|
247
|
+
then: {
|
|
248
|
+
name: string;
|
|
249
|
+
value: boolean;
|
|
250
|
+
};
|
|
251
|
+
})[];
|
|
252
|
+
};
|
|
253
|
+
panels: ({
|
|
254
|
+
id: string;
|
|
255
|
+
icon: string;
|
|
256
|
+
title: string;
|
|
257
|
+
tooltip: string;
|
|
258
|
+
layout: (string | {
|
|
259
|
+
type: "row";
|
|
260
|
+
title: string;
|
|
261
|
+
items: string[];
|
|
262
|
+
})[];
|
|
263
|
+
} | {
|
|
264
|
+
id: string;
|
|
265
|
+
icon: string;
|
|
266
|
+
title: string;
|
|
267
|
+
tooltip: string;
|
|
268
|
+
layout: (string | LayoutTab)[];
|
|
269
|
+
})[];
|
|
270
|
+
paletteBookmark: {
|
|
271
|
+
items: ("textColor" | "textHoverColor" | "overlayColor" | "triggerColor" | "triggerHoverColor" | "closeColor" | "closeHoverColor" | "panelColor")[];
|
|
272
|
+
panelIds: string[];
|
|
273
|
+
stateItems: {
|
|
274
|
+
default: string[];
|
|
275
|
+
hover: string[];
|
|
276
|
+
open: string[];
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
states: string[];
|
|
280
|
+
statePanels: string[];
|
|
281
|
+
};
|
|
282
|
+
assetsPaths: {
|
|
283
|
+
content: {
|
|
284
|
+
path: string;
|
|
285
|
+
placeholderEnabled: boolean;
|
|
286
|
+
}[];
|
|
287
|
+
parameters: never[];
|
|
288
|
+
};
|
|
289
|
+
fontSettingsPaths: {
|
|
290
|
+
content: never[];
|
|
291
|
+
parameters: {
|
|
292
|
+
path: string;
|
|
293
|
+
}[];
|
|
294
|
+
};
|
|
295
|
+
fontRelations: {
|
|
296
|
+
[k: string]: string;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./ControlSlider-Kkec-i14.js"),p=require("./ImageRevealSlider-BuukTGAK.js"),n=require("./Lightbox-DaunVrkp.js"),e=require("./ArchivePopupComponent-BWG23JpA.js"),t={element:r.ControlSlider,id:"control-slider",name:"Slider",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/Slider.mp4"},defaultSize:{d:{width:400,height:400},t:{width:400,height:400},m:{width:300,height:300}},assetsPaths:{content:[{path:"image.assetId",placeholderEnabled:!0}],parameters:[{path:"settings.controls.arrowsImgUrl"}]},fontSettingsPaths:{content:[],parameters:[{path:"styles.imageCaption.fontSettings"}]},schema:{type:"object",properties:{settings:{type:"object",display:{type:"settings-block"},properties:{triggers:{title:"triggers",icon:"target",tooltip:"Triggers",type:"object",properties:{triggersList:{type:"object",display:{type:"toggle-ratio-group"},properties:{click:{type:"boolean"},drag:{type:"boolean"}}},autoPlay:{type:["string","null"],label:"Auto",display:{type:"step-selector"},enum:[null,"1s","2s","3s","4s","5s"]}}},direction:{icon:"horizontal-resize",tooltip:"Direction",type:"string",display:{type:"ratio-group"},enum:["horiz","vert"]},transition:{title:"transit",icon:"transition",tooltip:"Transition",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide","fade in"]},backgroundColor:{type:["string","null"],title:"BG Color",display:{visible:!1,type:"settings-color-picker",format:"single"}},duration:{type:"string",label:"icon:hourglass",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]}}},controls:{title:"controls",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:50,max:600,display:{type:"range-control"}},color:{title:"color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}},show:{title:"Show",type:"string",display:{type:"ratio-group"},enum:["always","on hover"]}}},pagination:{title:"nav",icon:"pagination",tooltip:"Navigation",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},position:{display:{type:"socket",direction:"horizontal"},type:"string",enum:["outside-1","outside-2","inside-1","inside-2"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"scale",min:10,max:400,display:{type:"range-control"}},colors:{display:{type:"settings-color-picker",format:"multiple"},title:"color",type:"array",items:{type:"string"}},hover:{title:"hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},imageCaption:{title:"Caption",icon:"text-icon",tooltip:"Caption",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},alignment:{type:"string",display:{type:"align-grid"},enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},linkColor:{title:"Link",type:"string",display:{type:"settings-color-picker",format:"single"}},linkHoverColor:{title:"Link Hov",type:"string",display:{type:"settings-color-picker",format:"single"}}}}},default:{triggers:{triggersList:{click:!1,drag:!0},autoPlay:null},controls:{isActive:!0,arrowsImgUrl:null,offset:{x:0,y:0},scale:100,color:"#000000",hover:"#cccccc",show:"always"},transition:{type:"slide",duration:"500ms",backgroundColor:null},pagination:{isActive:!0,scale:50,position:"inside-1",offset:{x:0,y:0},colors:["#cccccc","#cccccc","#000000"],hover:"#cccccc"},direction:"horiz",imageCaption:{offset:{x:0,y:0},isActive:!0,alignment:"middle-center",linkColor:"#cccccc",linkHoverColor:"#cccccc"}},displayRules:[{if:{name:"direction",value:"vert"},then:{name:"properties.pagination.properties.position.display.direction",value:"vertical"}},{if:{name:"transition.type",value:"fade in"},then:{name:"properties.transition.properties.backgroundColor.display.visible",value:!0}}]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"},properties:{assetId:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["assetId","name"]},imageCaption:{placeholder:"Add Caption...",label:"Description",display:{type:"rich-text"}}},required:["image"]},default:[{image:{objectFit:"cover",assetId:"01M3QM74XES6E7GVC0H3KJ2RH6",name:"Slider-1.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"cover",assetId:"01M3QM74XEAZ8H1DTC5V1S554K",name:"Slider-2.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"cover",assetId:"01M3QM74XEDRP49HNTEPNZYQTP",name:"Slider-3.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]}]},styles:{type:"object",properties:{imageCaption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right","justify"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase","capitalize"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"auto"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.02,lineHeight:.02},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}}},required:["settings","content","styles"]}},i={element:p.ImageRevealSlider,id:"control-image-reveal",name:"Click Gallery",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/Click_Gallery.mp4"},defaultSize:{d:{width:"100%",height:"100%"},t:{width:"100%",height:"100%"},m:{width:"100%",height:"100%"}},assetsPaths:{content:[{path:"image.assetId",placeholderEnabled:!0}],parameters:[{path:"settings.cursor.defaultCursor"},{path:"settings.cursor.hoverCursor"}]},fontSettingsPaths:{content:[],parameters:[]},schema:{type:"object",properties:{settings:{type:"object",display:{type:"settings-block"},properties:{imageSize:{title:"IMG SIZE",icon:"size",tooltip:"IMG SIZE",type:"object",properties:{sizeType:{type:"string",display:{type:"ratio-group"},enum:["as Is","custom","random"]},imageWidth:{type:"number",label:"W",display:{type:"numeric-input",visible:!1}},randomRangeImageWidth:{type:"object",display:{type:"random-range-controls",visible:!1},properties:{min:{type:"number"},max:{type:"number"}}}}},cursor:{title:"cursor",icon:"cursor",tooltip:"cursor",type:"object",properties:{cursorType:{type:"string",display:{type:"ratio-group"},enum:["system","custom"]},target:{type:"string",title:"Target",display:{type:"ratio-group"},enum:["area","image"]},defaultCursor:{type:["string","null"],title:"Default",display:{type:"settings-image-input",visible:!1}},defaultCursorScale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control",visible:!1}},hoverCursor:{type:["string","null"],title:"Hover",display:{type:"settings-image-input",visible:!1}},hoverCursorScale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control",visible:!1}}}},position:{title:"position",icon:"transition",tooltip:"Position",type:"object",properties:{revealPosition:{type:"string",display:{type:"ratio-group"},enum:["random","same","on Click"]},visible:{type:"string",title:"Visible",display:{type:"ratio-group"},enum:["all","last One"]}}}},default:{imageSize:{sizeType:"custom",imageWidth:500,randomRangeImageWidth:{min:100,max:1e3}},cursor:{cursorType:"system",target:"area",defaultCursor:null,defaultCursorScale:2,hoverCursor:null,hoverCursorScale:2},position:{revealPosition:"random",visible:"all"}},displayRules:[{if:{name:"imageSize.sizeType",value:"custom"},then:{name:"properties.imageSize.properties.imageWidth.display.visible",value:!0}},{if:{name:"imageSize.sizeType",value:"random"},then:{name:"properties.imageSize.properties.randomRangeImageWidth.display.visible",value:!0}},{if:[{name:"cursor.target",value:"image"},{name:"cursor.cursorType",value:"custom"}],then:{name:"properties.cursor.properties.defaultCursor.display.visible",value:!0}},{if:[{name:"cursor.target",value:"image"},{name:"cursor.cursorType",value:"custom"},{name:"cursor.defaultCursor",value:null,isNotEqual:!0}],then:{name:"properties.cursor.properties.defaultCursorScale.display.visible",value:!0}},{if:{name:"cursor.cursorType",value:"custom"},then:{name:"properties.cursor.properties.hoverCursor.display.visible",value:!0}},{if:[{name:"cursor.cursorType",value:"custom"},{name:"cursor.hoverCursor",value:null,isNotEqual:!0}],then:{name:"properties.cursor.properties.hoverCursorScale.display.visible",value:!0}}]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{isObjectFitEditable:!1,type:"media-input"},properties:{assetId:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["assetId","name"]},link:{type:"object",label:"URL",display:{type:"link-input"}}},required:["image"]},default:[{image:{objectFit:"cover",assetId:"01M3QM74XGWBJY3AQQ71GC2Z6Q",name:"Slider-1.png"},link:{type:"url",value:"",target:"blank"}},{image:{objectFit:"cover",assetId:"01M3QM74XGMXS1Z5ZY2RFGS3T4",name:"Slider-2.png"},link:{type:"url",value:"",target:"blank"}},{image:{objectFit:"cover",assetId:"01M3QM74XGWG6VCHNEXKVKAJGT",name:"Slider-3.png"},link:{type:"url",value:"",target:"blank"}},{image:{objectFit:"cover",assetId:"01M3QM74XGCVMTPNHFHMR98RPZ",name:"Slider-4.png"},link:{type:"url",value:"",target:"blank"}}]}}}},o={element:n.LightboxGallery,id:"lightbox",name:"Lightbox",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/Lightbox.png"},defaultSize:{d:{width:440,height:550},t:{width:235,height:293},m:{width:265,height:331}},fontSettingsPaths:{content:[],parameters:[{path:"styles.imageCaption.fontSettings"}]},assetsPaths:{content:[{path:"image.assetId",placeholderEnabled:!0}],parameters:[{path:"settings.thumbnailBlock.cover.assetId",placeholderEnabled:!0},{path:"settings.controls.arrowsImgUrl"},{path:"settings.area.closeIconUrl"}]},schema:{type:"object",properties:{settings:{type:"object",properties:{thumbnailBlock:{display:{type:"settings-block",triggerEvent:"close"},type:"object",properties:{cover:{title:"COVER",icon:"cover",tooltip:"Cover Image",type:"object",properties:{assetId:{type:"string",display:{type:"cover-image-input"}}}}}},lightboxBlock:{display:{type:"settings-block",triggerEvent:"open"},type:"object",properties:{appear:{title:"APPEAR",icon:"transition",tooltip:"Appearance",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide in","fade in","mix"]},duration:{type:"string",label:"T",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]},direction:{type:"string",title:"From",display:{type:"direction-control"},enum:["top","left","right","bottom"]}}},triggers:{title:"TRIGGERS",icon:"target",tooltip:"Triggers",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["click","drag"]},switch:{type:"string",display:{type:"ratio-group"},enum:["image","50/50"]},repeat:{type:"string",title:"Repeat",display:{visible:!1,type:"ratio-group"},enum:["close","loop"]}}},slider:{title:"SLIDER",icon:"horizontal-resize",tooltip:"Slider",type:"object",properties:{type:{type:"string",display:{type:"ratio-group"},enum:["slide","fade","scale"]},direction:{type:"string",display:{type:"ratio-group"},enum:["horiz","vert"]},duration:{type:"string",label:"T",display:{type:"step-selector"},enum:["100ms","250ms","500ms","1000ms","1500ms","2000ms"]}}},thumbnail:{title:"THUMB",icon:"thumbnail",tooltip:"Thumbnail",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},position:{display:{type:"align-grid"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},fit:{type:"string",display:{type:"ratio-group"},enum:["cover","fit"]},align:{type:"string",title:"Align",display:{type:"align-group",direction:"horizontal"},enum:["start","center","end"]},triggers:{type:"string",title:"Triggers",display:{type:"ratio-group",direction:"horizontal"},enum:["clk","hov"]},grid:{type:"object",title:"Grid",display:{type:"group"},properties:{size:{type:"number",label:"Box",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},gap:{type:"number",label:"Gap",scalingEnabled:!0,min:0,display:{type:"numeric-input"}}}},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},opacity:{type:"number",title:"Opacity",label:"icon:opacity",min:0,max:100,step:1,display:{type:"numeric-input"}},activeState:{type:"object",title:"ACTIVE",display:{type:"group"},properties:{scale:{type:"number",title:"Scale",min:1,max:5,step:.1,display:{type:"range-control"}},opacity:{type:"number",title:"Opacity",label:"icon:opacity",min:0,max:100,step:1,display:{type:"numeric-input"}}}}}},layout:{title:"LAYOUT",icon:"layout",tooltip:"Layout",type:"object",properties:{position:{display:{type:"align-grid"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},padding:{type:"object",title:"Padding",display:{type:"padding-controls"},properties:{top:{min:0,step:1,type:"number"},left:{min:0,step:1,type:"number"},right:{min:0,step:1,type:"number"},bottom:{min:0,step:1,type:"number"}}}}},controls:{title:"CONTROLS",icon:"controls",tooltip:"Controls",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},arrowsImgUrl:{type:["string","null"],display:{type:"settings-image-input"}},offset:{title:"Offset",type:"object",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},scale:{type:"number",title:"Scale",min:.5,max:5,step:.1,display:{type:"range-control"}},color:{title:"Color",type:"string",display:{type:"settings-color-picker",format:"single"}},hover:{title:"Hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},area:{title:"AREA",icon:"area",tooltip:"Area",type:"object",properties:{color:{type:"string",display:{type:"settings-color-picker",format:"single"}},blur:{type:"number",label:"icon:blur",display:{type:"numeric-input"}},closeIconUrl:{type:["string","null"],title:"Close Icon",display:{type:"settings-image-input"}},closeIconAlign:{display:{type:"align-grid",direction:"horizontal"},type:"string",enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},closeIconScale:{type:"number",title:"Scale",min:.5,max:5,step:.1,display:{type:"range-control"}},closeIconOffset:{type:"object",title:"Offset",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},closeIconColor:{title:"Color",type:"string",display:{type:"settings-color-picker",format:"single"}},closeIconHover:{title:"Hover",type:"string",display:{type:"settings-color-picker",format:"single"}}}},caption:{title:"DESC",icon:"text-icon",tooltip:"Description",type:"object",properties:{isActive:{type:"boolean",display:{type:"setting-toggle"}},alignment:{type:"string",display:{type:"align-grid"},enum:["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]},offset:{title:"Offset",type:"object",display:{type:"group"},properties:{x:{type:"number",label:"X",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}},y:{type:"number",label:"Y",scalingEnabled:!0,display:{type:"numeric-input",visible:!0}}}},linkColor:{title:"Link",type:"string",display:{type:"settings-color-picker",format:"single"}},linkHoverColor:{title:"Link Hov",type:"string",display:{type:"settings-color-picker",format:"single"}}}}}}},default:{d:{thumbnailBlock:{cover:{assetId:"01M3QM74XEQ5ZGJ9WAMKV0EY1V"}},lightboxBlock:{appear:{type:"slide in",duration:"1000ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"vert",duration:"1000ms"},thumbnail:{isActive:!0,position:"middle-left",fit:"fit",align:"start",triggers:"hov",grid:{size:.05,gap:.01},offset:{x:.01,y:0},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:0,bottom:.06,left:0}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},linkColor:"#cccccc",linkHoverColor:"#cccccc"}}},m:{thumbnailBlock:{cover:{assetId:"01M3QM74XEQ5ZGJ9WAMKV0EY1V"}},lightboxBlock:{appear:{type:"fade in",duration:"500ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"horiz",duration:"1000ms"},thumbnail:{isActive:!0,position:"bottom-center",fit:"fit",align:"start",triggers:"hov",grid:{size:.1,gap:.05},offset:{x:.01,y:-.05},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:.05,bottom:.06,left:.05}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},hover:"#cccccc"}}},t:{thumbnailBlock:{cover:{assetId:"01M3QM74XEQ5ZGJ9WAMKV0EY1V"}},lightboxBlock:{appear:{type:"fade in",duration:"500ms",direction:"bottom"},triggers:{type:"click",switch:"image",repeat:"loop"},slider:{type:"slide",direction:"vert",duration:"1000ms"},thumbnail:{isActive:!0,position:"middle-left",fit:"fit",align:"start",triggers:"hov",grid:{size:.05,gap:.01},offset:{x:.03,y:0},opacity:50,activeState:{scale:1,opacity:100}},layout:{position:"middle-center",offset:{x:0,y:0},padding:{top:.06,right:.1,bottom:.06,left:.1}},controls:{isActive:!1,arrowsImgUrl:null,offset:{x:0,y:0},scale:1,color:"#000000",hover:"#cccccc"},area:{color:"rgba(28,31,34,0.9)",blur:0,closeIconUrl:null,closeIconColor:"#000000",closeIconHover:"#cccccc",closeIconAlign:"top-right",closeIconOffset:{x:0,y:0},closeIconScale:1},caption:{isActive:!0,alignment:"middle-center",offset:{x:0,y:0},hover:"#cccccc"}}}},displayRules:[{if:{name:"lightboxBlock.appear.type",value:"slide in"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!0}},{if:{name:"lightboxBlock.slider.direction",value:"vert"},then:{name:"properties.lightboxBlock.properties.thumbnail.properties.align.display.direction",value:"vertical"}},{if:{name:"lightboxBlock.appear.type",value:"mix"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!0}},{if:{name:"lightboxBlock.appear.type",value:"fade in"},then:{name:"properties.lightboxBlock.properties.appear.properties.direction.display.visible",value:!1}},{if:[{name:"lightboxBlock.triggers.type",value:"click"},{name:"lightboxBlock.triggers.switch",value:"image"}],then:{name:"properties.lightboxBlock.properties.triggers.properties.repeat.display.visible",value:!0}}]},content:{type:"array",settings:{addItemFromFileExplorer:!0},items:{type:"object",properties:{image:{type:"object",label:"Image",display:{type:"media-input"},properties:{assetId:{type:"string"},name:{type:"string"},objectFit:{type:"string",enum:["cover","contain"]}},required:["assetId","name"]},imageCaption:{label:"Description",placeholder:"Add Caption...",display:{type:"rich-text"}}},required:["image"]},default:[{image:{objectFit:"contain",assetId:"01M3QM74XD4J8X0B8TTSQ8CV3P",name:"Slider-1.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"contain",assetId:"01M3QM74XD0N6VQJ5J8J9YB32N",name:"Slider-2.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]},{image:{objectFit:"contain",assetId:"01M3QM74XE4WSEPVF1QQSKMD76",name:"Slider-3.png"},imageCaption:[{type:"paragraph",children:[{text:""}]}]}]},styles:{type:"object",properties:{imageCaption:{dataName:"caption",type:"object",properties:{fontSettings:{type:"object",display:{type:"font-settings"},properties:{fontFamily:{type:"string"},fontWeight:{type:"number"},fontStyle:{type:"string"}}},widthSettings:{display:{type:"text-width-control"},type:"object",properties:{width:{type:"number"},sizing:{type:"string",enum:["auto","manual"]}}},fontSizeLineHeight:{type:"object",display:{type:"font-size-line-height"},properties:{fontSize:{type:"number"},lineHeight:{type:"number"}}},letterSpacing:{display:{type:"letter-spacing-input"},type:"number"},wordSpacing:{display:{type:"word-spacing-input"},type:"number"},textAlign:{display:{type:"text-align-control"},type:"string",enum:["left","center","right","justify"]},textAppearance:{display:{type:"text-appearance"},properties:{textTransform:{type:"string",enum:["none","uppercase","lowercase","capitalize"]},textDecoration:{type:"string",enum:["none","underline"]},fontVariant:{type:"string",enum:["normal","small-caps"]}}},color:{display:{type:"style-panel-color-picker"},type:"string"}}}},default:{imageCaption:{widthSettings:{width:.13,sizing:"auto"},fontSettings:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal"},fontSizeLineHeight:{fontSize:.02,lineHeight:.02},letterSpacing:0,wordSpacing:0,textAlign:"left",textAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},color:"#000000"}}}},required:["settings","content","styles"]}},l=[t,i,e.ClickGallerieComponent,o,e.FormComponent,e.OnelinerFormComponent,e.MarqueeComponent,e.MarqueeTextComponent,e.TestimonialGridComponent,e.TestimonialSingleComponent,e.GridComponent,e.HiveComponent,e.ListComponent,e.FAQComponent,e.LightboxStripComponent,e.LightboxJournalComponent,e.ScaleComponent,e.WaterfallComponent,e.SimpleButtonComponent,e.Slider20Component,e.MercuryComponent,e.HelixComponent,e.BurgerComponent,e.PretextComponent,e.ArchivePopupComponent];exports.ControlImageRevealSliderComponent=i;exports.ControlSliderComponent=t;exports.LightboxComponent=o;exports.components=l;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ControlSlider as e } from "./ControlSlider-LcZmviGX.mjs";
|
|
2
2
|
import { ImageRevealSlider as t } from "./ImageRevealSlider-Df9sygk9.mjs";
|
|
3
3
|
import { LightboxGallery as i } from "./Lightbox-C_fXsfdz.mjs";
|
|
4
|
-
import { C as o, F as r, O as p, M as n, a as l, T as s, b as a, G as c, H as y, L as g, c as m, d, e as u, S as b, W as
|
|
5
|
-
const
|
|
4
|
+
import { C as o, F as r, O as p, M as n, a as l, T as s, b as a, G as c, H as y, L as g, c as m, d, e as u, S as b, W as h, f, g as v, h as C, i as x, B as S, P as k, A as I } from "./ArchivePopupComponent-HsEAy1CM.mjs";
|
|
5
|
+
const j = {
|
|
6
6
|
element: e,
|
|
7
7
|
id: "control-slider",
|
|
8
8
|
name: "Slider",
|
|
@@ -615,7 +615,7 @@ const I = {
|
|
|
615
615
|
},
|
|
616
616
|
required: ["settings", "content", "styles"]
|
|
617
617
|
}
|
|
618
|
-
},
|
|
618
|
+
}, A = {
|
|
619
619
|
element: t,
|
|
620
620
|
id: "control-image-reveal",
|
|
621
621
|
name: "Click Gallery",
|
|
@@ -2019,9 +2019,9 @@ const I = {
|
|
|
2019
2019
|
},
|
|
2020
2020
|
required: ["settings", "content", "styles"]
|
|
2021
2021
|
}
|
|
2022
|
-
},
|
|
2023
|
-
I,
|
|
2022
|
+
}, F = [
|
|
2024
2023
|
j,
|
|
2024
|
+
A,
|
|
2025
2025
|
o,
|
|
2026
2026
|
E,
|
|
2027
2027
|
r,
|
|
@@ -2037,17 +2037,18 @@ const I = {
|
|
|
2037
2037
|
d,
|
|
2038
2038
|
u,
|
|
2039
2039
|
b,
|
|
2040
|
-
f,
|
|
2041
2040
|
h,
|
|
2041
|
+
f,
|
|
2042
2042
|
v,
|
|
2043
|
-
x,
|
|
2044
2043
|
C,
|
|
2044
|
+
x,
|
|
2045
2045
|
S,
|
|
2046
|
-
k
|
|
2046
|
+
k,
|
|
2047
|
+
I
|
|
2047
2048
|
];
|
|
2048
2049
|
export {
|
|
2049
|
-
|
|
2050
|
+
j as C,
|
|
2050
2051
|
E as L,
|
|
2051
|
-
|
|
2052
|
-
|
|
2052
|
+
A as a,
|
|
2053
|
+
F as c
|
|
2053
2054
|
};
|
package/dist/elements.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var h=Object.create;var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var d=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of c(r))!f.call(e,i)&&i!==n&&a(e,i,{get:()=>r[i],enumerable:!(o=u(r,i))||o.enumerable});return e};var t=(e,r,n)=>(n=e!=null?h(g(e)):{},d(r||!e||!e.__esModule?a(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m={"basic-burger":()=>import(/* webpackFetchPriority: "high" */ "./Burger-C6jI6C1c.js").then(e=>e.Burger),"click-gallerie":()=>import(/* webpackFetchPriority: "high" */ "./ClickGallerie-CYQMgrIr.js").then(e=>e.ClickGallerie),"control-slider":()=>import(/* webpackFetchPriority: "high" */ "./ControlSlider-Kkec-i14.js").then(e=>e.ControlSlider),faq:()=>import(/* webpackFetchPriority: "high" */ "./FAQ-BxhMo7T8.js").then(e=>e.FAQ),form:()=>import(/* webpackFetchPriority: "high" */ "./Form-Dn-6A1He.js").then(e=>e.Form),grid:()=>import(/* webpackFetchPriority: "high" */ "./Grid-CFHTP3mb.js").then(e=>e.Grid),helix:()=>import(/* webpackFetchPriority: "high" */ "./Helix-BpLo9FD3.js").then(e=>e.Helix),hive:()=>import(/* webpackFetchPriority: "high" */ "./Hive-D1j6wZpV.js").then(e=>e.Hive),"control-image-reveal":()=>import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-BuukTGAK.js").then(e=>e.ImageRevealSlider),lightbox:()=>import(/* webpackFetchPriority: "high" */ "./Lightbox-DaunVrkp.js").then(e=>e.LightboxGallery),"lightbox-journal":()=>import(/* webpackFetchPriority: "high" */ "./LightboxJournal-DAEZOPDi.js").then(e=>e.LightboxJournal),"lightbox-strip":()=>import(/* webpackFetchPriority: "high" */ "./LightboxStrip-BDjI1jyH.js").then(e=>e.LightboxStrip),list:()=>import(/* webpackFetchPriority: "high" */ "./List-DVvpQ24J.js").then(e=>e.List),marquee:()=>import(/* webpackFetchPriority: "high" */ "./Marquee-DfIP-tIN.js").then(e=>e.Marquee),"marquee-text":()=>import(/* webpackFetchPriority: "high" */ "./MarqueeText-DsUiV6Zv.js").then(e=>e.MarqueeText),mercury:()=>import(/* webpackFetchPriority: "high" */ "./Mercury-B-s2Kvuq.js").then(e=>e.Mercury),"oneliner-form":()=>import(/* webpackFetchPriority: "high" */ "./OnelinerForm-C2Y_XMCY.js").then(e=>e.OnelinerForm),pretext:()=>import(/* webpackFetchPriority: "high" */ "./Pretext-DvQ3xsni.js").then(e=>e.Pretext),scale:()=>import(/* webpackFetchPriority: "high" */ "./Scale-Bg3bGICG.js").then(e=>e.Scale),"simple-button":()=>import(/* webpackFetchPriority: "high" */ "./SimpleButton-nGEcO2gB.js").then(e=>e.SimpleButton),"slider-2-0":()=>import(/* webpackFetchPriority: "high" */ "./Slider20-fMVeRfgx.js").then(e=>e.Slider20),testimonials:()=>import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-CiCagfBU.js").then(e=>e.TestimonialGrid),"testimonial-single":()=>import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-BWXynGjv.js").then(e=>e.TestimonialSingle),waterfall:()=>import(/* webpackFetchPriority: "high" */ "./Waterfall-DII4-WV5.js").then(e=>e.Waterfall)},b=Object.keys(m),y=3,E=2e3,
|
|
1
|
+
"use strict";var h=Object.create;var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var d=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of c(r))!f.call(e,i)&&i!==n&&a(e,i,{get:()=>r[i],enumerable:!(o=u(r,i))||o.enumerable});return e};var t=(e,r,n)=>(n=e!=null?h(g(e)):{},d(r||!e||!e.__esModule?a(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m={"archive-popup":()=>import(/* webpackFetchPriority: "high" */ "./ArchivePopup-CwhC3gmz.js").then(e=>e.ArchivePopup),"basic-burger":()=>import(/* webpackFetchPriority: "high" */ "./Burger-C6jI6C1c.js").then(e=>e.Burger),"click-gallerie":()=>import(/* webpackFetchPriority: "high" */ "./ClickGallerie-CYQMgrIr.js").then(e=>e.ClickGallerie),"control-slider":()=>import(/* webpackFetchPriority: "high" */ "./ControlSlider-Kkec-i14.js").then(e=>e.ControlSlider),faq:()=>import(/* webpackFetchPriority: "high" */ "./FAQ-BxhMo7T8.js").then(e=>e.FAQ),form:()=>import(/* webpackFetchPriority: "high" */ "./Form-Dn-6A1He.js").then(e=>e.Form),grid:()=>import(/* webpackFetchPriority: "high" */ "./Grid-CFHTP3mb.js").then(e=>e.Grid),helix:()=>import(/* webpackFetchPriority: "high" */ "./Helix-BpLo9FD3.js").then(e=>e.Helix),hive:()=>import(/* webpackFetchPriority: "high" */ "./Hive-D1j6wZpV.js").then(e=>e.Hive),"control-image-reveal":()=>import(/* webpackFetchPriority: "high" */ "./ImageRevealSlider-BuukTGAK.js").then(e=>e.ImageRevealSlider),lightbox:()=>import(/* webpackFetchPriority: "high" */ "./Lightbox-DaunVrkp.js").then(e=>e.LightboxGallery),"lightbox-journal":()=>import(/* webpackFetchPriority: "high" */ "./LightboxJournal-DAEZOPDi.js").then(e=>e.LightboxJournal),"lightbox-strip":()=>import(/* webpackFetchPriority: "high" */ "./LightboxStrip-BDjI1jyH.js").then(e=>e.LightboxStrip),list:()=>import(/* webpackFetchPriority: "high" */ "./List-DVvpQ24J.js").then(e=>e.List),marquee:()=>import(/* webpackFetchPriority: "high" */ "./Marquee-DfIP-tIN.js").then(e=>e.Marquee),"marquee-text":()=>import(/* webpackFetchPriority: "high" */ "./MarqueeText-DsUiV6Zv.js").then(e=>e.MarqueeText),mercury:()=>import(/* webpackFetchPriority: "high" */ "./Mercury-B-s2Kvuq.js").then(e=>e.Mercury),"oneliner-form":()=>import(/* webpackFetchPriority: "high" */ "./OnelinerForm-C2Y_XMCY.js").then(e=>e.OnelinerForm),pretext:()=>import(/* webpackFetchPriority: "high" */ "./Pretext-DvQ3xsni.js").then(e=>e.Pretext),scale:()=>import(/* webpackFetchPriority: "high" */ "./Scale-Bg3bGICG.js").then(e=>e.Scale),"simple-button":()=>import(/* webpackFetchPriority: "high" */ "./SimpleButton-nGEcO2gB.js").then(e=>e.SimpleButton),"slider-2-0":()=>import(/* webpackFetchPriority: "high" */ "./Slider20-fMVeRfgx.js").then(e=>e.Slider20),testimonials:()=>import(/* webpackFetchPriority: "high" */ "./TestimonialGrid-CiCagfBU.js").then(e=>e.TestimonialGrid),"testimonial-single":()=>import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-BWXynGjv.js").then(e=>e.TestimonialSingle),waterfall:()=>import(/* webpackFetchPriority: "high" */ "./Waterfall-DII4-WV5.js").then(e=>e.Waterfall)},b=Object.keys(m),y=3,E=2e3,p=new Map,l=new Map;function s(e){return Object.prototype.hasOwnProperty.call(m,e)}function x(e){return p.get(e)}function S(e){var r;return(((r=l.get(e))==null?void 0:r.failures)??0)>0}const C=e=>!e.loading&&e.failures>0&&e.failures<y&&Date.now()>=e.retryAt;function M(e){if(!s(e))return Promise.resolve(void 0);const r=l.get(e);if(r&&!C(r))return r.request;const n={loading:!0,failures:(r==null?void 0:r.failures)??0,retryAt:0,request:m[e]().then(o=>(p.set(e,o),n.failures=0,o),o=>{throw n.failures+=1,n.retryAt=Date.now()+E*2**(n.failures-1),o}).finally(()=>{n.loading=!1})};return l.set(e,n),n.request}exports.componentElementIds=b;exports.getComponentElement=x;exports.hasComponentElement=s;exports.hasComponentElementFailed=S;exports.loadComponentElement=M;
|
package/dist/elements.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const i = {
|
|
2
|
+
"archive-popup": () => import(/* webpackFetchPriority: "high" */ "./ArchivePopup-CjWbiDk6.mjs").then((e) => e.ArchivePopup),
|
|
2
3
|
"basic-burger": () => import(/* webpackFetchPriority: "high" */ "./Burger-EMSn7TPB.mjs").then((e) => e.Burger),
|
|
3
4
|
"click-gallerie": () => import(/* webpackFetchPriority: "high" */ "./ClickGallerie-o2U6oyOF.mjs").then((e) => e.ClickGallerie),
|
|
4
5
|
"control-slider": () => import(/* webpackFetchPriority: "high" */ "./ControlSlider-LcZmviGX.mjs").then((e) => e.ControlSlider),
|
|
@@ -24,7 +25,7 @@ const i = {
|
|
|
24
25
|
"testimonial-single": () => import(/* webpackFetchPriority: "high" */ "./TestimonialSingle-BVm3Amrl.mjs").then((e) => e.TestimonialSingle),
|
|
25
26
|
waterfall: () => import(/* webpackFetchPriority: "high" */ "./Waterfall-3kKioKh2.mjs").then((e) => e.Waterfall)
|
|
26
27
|
}, h = Object.keys(i), a = 3, m = 2e3, l = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
27
|
-
function
|
|
28
|
+
function p(e) {
|
|
28
29
|
return Object.prototype.hasOwnProperty.call(i, e);
|
|
29
30
|
}
|
|
30
31
|
function u(e) {
|
|
@@ -34,11 +35,11 @@ function c(e) {
|
|
|
34
35
|
var t;
|
|
35
36
|
return (((t = o.get(e)) == null ? void 0 : t.failures) ?? 0) > 0;
|
|
36
37
|
}
|
|
37
|
-
const
|
|
38
|
+
const s = (e) => !e.loading && e.failures > 0 && e.failures < a && Date.now() >= e.retryAt;
|
|
38
39
|
function f(e) {
|
|
39
|
-
if (!
|
|
40
|
+
if (!p(e)) return Promise.resolve(void 0);
|
|
40
41
|
const t = o.get(e);
|
|
41
|
-
if (t && !
|
|
42
|
+
if (t && !s(t)) return t.request;
|
|
42
43
|
const r = {
|
|
43
44
|
loading: !0,
|
|
44
45
|
failures: (t == null ? void 0 : t.failures) ?? 0,
|
|
@@ -57,7 +58,7 @@ function f(e) {
|
|
|
57
58
|
export {
|
|
58
59
|
h as componentElementIds,
|
|
59
60
|
u as getComponentElement,
|
|
60
|
-
|
|
61
|
+
p as hasComponentElement,
|
|
61
62
|
c as hasComponentElementFailed,
|
|
62
63
|
f as loadComponentElement
|
|
63
64
|
};
|
package/dist/elements.node.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components-DR32MT02.js"),n=new Map(t.components.map(e=>[e.id,e.element])),o=[...n.keys()];function m(e){return n.has(e)}function l(e){return n.get(e)}function s(e){return!1}function r(e){return Promise.resolve(n.get(e))}exports.componentElementIds=o;exports.getComponentElement=l;exports.hasComponentElement=m;exports.hasComponentElementFailed=s;exports.loadComponentElement=r;
|
package/dist/elements.node.mjs
CHANGED