@cntrl-site/components 1.0.106-alpha.0 → 1.0.107-alpha.1
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-DMpGP8r2.js +176 -0
- package/dist/ArchivePopup-X4EtTAyA.mjs +694 -0
- package/dist/ArchivePopupComponent-BTniPIfi.js +1 -0
- package/dist/{PretextComponent-j-OsRZTx.mjs → ArchivePopupComponent-GgAT2Avz.mjs} +954 -479
- package/dist/ClickGallerie-CYQMgrIr.js +36 -0
- package/dist/ClickGallerie-o2U6oyOF.mjs +272 -0
- package/dist/Components/ArchivePopup/ArchivePopup.d.ts +154 -0
- package/dist/Components/ArchivePopup/ArchivePopupComponent.d.ts +288 -0
- package/dist/Components/ClickGallerie/ClickGallerie.d.ts +2 -1
- package/dist/Components/Helix/Helix.d.ts +4 -1
- package/dist/Components/Hive/Hive.d.ts +4 -1
- package/dist/Components/ImageRevealSlider/ImageRevealSlider.d.ts +2 -1
- package/dist/Components/List/List.d.ts +6 -2
- package/dist/Components/Marquee/Marquee.d.ts +6 -2
- package/dist/Components/MarqueeText/MarqueeText.d.ts +2 -1
- package/dist/Components/Mercury/Mercury.d.ts +4 -1
- package/dist/Components/Waterfall/WaterfallLightbox.d.ts +4 -1
- package/dist/Components/utils/EmbedMediaFrame.d.ts +27 -0
- package/dist/Components/utils/LinkWrapper.d.ts +16 -0
- package/dist/Components/utils/embedMedia.d.ts +40 -0
- package/dist/Components/utils/index.d.ts +6 -0
- package/dist/{ControlSlider-SiOt22l_.js → ControlSlider-Kkec-i14.js} +1 -1
- package/dist/{ControlSlider-pZv7H6BU.mjs → ControlSlider-LcZmviGX.mjs} +1 -1
- package/dist/EmbedMediaFrame-DsOTKE4i.js +1 -0
- package/dist/EmbedMediaFrame-DwHeOAy5.mjs +164 -0
- package/dist/{FAQ-C7823fyi.js → FAQ-BxhMo7T8.js} +1 -1
- package/dist/{FAQ-CZ39u4m8.mjs → FAQ-CdwSft5p.mjs} +1 -1
- package/dist/Grid-CFHTP3mb.js +378 -0
- package/dist/Grid-e-gLfsji.mjs +1590 -0
- package/dist/Helix-BpLo9FD3.js +43 -0
- package/dist/Helix-CidI3ucE.mjs +324 -0
- package/dist/{Hive-D6-R6TwM.mjs → Hive-BsmFHk2i.mjs} +505 -475
- package/dist/Hive-D1j6wZpV.js +321 -0
- package/dist/ImageRevealSlider-BuukTGAK.js +1 -0
- package/dist/{ImageRevealSlider-BdFGyVEP.mjs → ImageRevealSlider-Df9sygk9.mjs} +63 -70
- package/dist/{Lightbox-eP9qAZzL.mjs → Lightbox-C_fXsfdz.mjs} +1 -1
- package/dist/{Lightbox-CIss_nOG.js → Lightbox-DaunVrkp.js} +1 -1
- package/dist/LinkWrapper-Ca84iPtg.js +1 -0
- package/dist/LinkWrapper-DZs9hlOn.mjs +13 -0
- package/dist/{List-DW7fyJbf.mjs → List-Bh_-l9vD.mjs} +532 -520
- package/dist/List-DVvpQ24J.js +377 -0
- package/dist/Marquee-DByooiWP.mjs +578 -0
- package/dist/Marquee-DfIP-tIN.js +133 -0
- package/dist/{MarqueeText-Rzt2fJYt.mjs → MarqueeText-D6FNCe6P.mjs} +115 -114
- package/dist/MarqueeText-DsUiV6Zv.js +132 -0
- package/dist/Mercury-B-s2Kvuq.js +267 -0
- package/dist/Mercury-CCW0Es-s.mjs +1700 -0
- package/dist/{RichTextRenderer-B6WtTYlR.mjs → RichTextRenderer-BptwNpbJ.mjs} +10 -9
- package/dist/RichTextRenderer-K90Dd7pt.js +1 -0
- package/dist/{Slider20-Dm8BeCli.mjs → Slider20-CCzixTiN.mjs} +1 -1
- package/dist/{Slider20-C9o2REDl.js → Slider20-fMVeRfgx.js} +1 -1
- package/dist/{TestimonialGrid-CPu4qQ6B.mjs → TestimonialGrid-CbsVxSn9.mjs} +1 -1
- package/dist/{TestimonialGrid-D4ieiz9e.js → TestimonialGrid-CiCagfBU.js} +1 -1
- package/dist/{TestimonialSingle-DLdnAVF7.mjs → TestimonialSingle-BVm3Amrl.mjs} +1 -1
- package/dist/{TestimonialSingle-CVu15ZtV.js → TestimonialSingle-BWXynGjv.js} +1 -1
- package/dist/Waterfall-3kKioKh2.mjs +1432 -0
- package/dist/Waterfall-DII4-WV5.js +288 -0
- package/dist/{components-D2LyuDm-.mjs → components-DKuQ8PUa.mjs} +19 -18
- package/dist/components-SEwSqFrQ.js +1 -0
- package/dist/content/postFieldBindings.d.ts +29 -0
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +22 -21
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +52 -15
- package/dist/sources.js +1331 -233
- package/dist/sources.mjs +1355 -256
- package/dist/types/SchemaV1.d.ts +53 -1
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +30 -20
- package/package.json +1 -1
- package/dist/ClickGallerie-D7g093HX.js +0 -36
- package/dist/ClickGallerie-QSOQjSdv.mjs +0 -271
- package/dist/Grid-BBpdl60K.js +0 -374
- package/dist/Grid-DS53S_gA.mjs +0 -1576
- package/dist/Helix-BPn9V1sg.mjs +0 -315
- package/dist/Helix-DcgsCc4D.js +0 -43
- package/dist/Hive-n8Fz-j3o.js +0 -321
- package/dist/ImageRevealSlider-BBWtFjUF.js +0 -1
- package/dist/List-C32WImI3.js +0 -377
- package/dist/Marquee-DOIRRCu4.js +0 -133
- package/dist/Marquee-O_PDwlIb.mjs +0 -564
- package/dist/MarqueeText-DkaO2lQ5.js +0 -132
- package/dist/Mercury-C9D10TTT.mjs +0 -1702
- package/dist/Mercury-DynO-NxY.js +0 -267
- package/dist/PretextComponent-BnsS2zJ6.js +0 -1
- package/dist/RichTextRenderer-CIy6yI8U.js +0 -1
- package/dist/Waterfall-DC2WQ3GT.js +0 -287
- package/dist/Waterfall-Yud2VR62.mjs +0 -1404
- package/dist/components-B9Vdjf0w.js +0 -1
package/dist/Grid-DS53S_gA.mjs
DELETED
|
@@ -1,1576 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, Fragment as V, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { S as ei, a as ti } from "./react-splide.esm-DQqds4PL.mjs";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { s as m } from "./scalingValue-C9JH5L6O.mjs";
|
|
5
|
-
import { b as ii } from "./buildColorVars-CLyWQm5K.mjs";
|
|
6
|
-
import { u as ni } from "./useScopedStyles-DhBG3557.mjs";
|
|
7
|
-
import { u as Bt } from "./useLazyVideos-CxXyEjRQ.mjs";
|
|
8
|
-
import { useMemo as Rt, useState as k, useRef as $, useEffect as B, useCallback as ce, useLayoutEffect as Dt } from "react";
|
|
9
|
-
import { createPortal as ri } from "react-dom";
|
|
10
|
-
import { o as bt, t as St } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
11
|
-
import { S as oi } from "./SvgImage-B5mR9y6q.mjs";
|
|
12
|
-
import { L as Gt } from "./LazyVideo-CdAWymKO.mjs";
|
|
13
|
-
function li(e) {
|
|
14
|
-
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
15
|
-
}
|
|
16
|
-
function Ht(e) {
|
|
17
|
-
return ((e == null ? void 0 : e.trim().length) ?? 0) > 0;
|
|
18
|
-
}
|
|
19
|
-
function Ct(e, t, i, s) {
|
|
20
|
-
return t !== void 0 && t < (e ?? 0.01) ? `${i} ${s}` : i;
|
|
21
|
-
}
|
|
22
|
-
function It(e, t, i, s) {
|
|
23
|
-
const l = e ?? 0.01;
|
|
24
|
-
return t === void 0 || t >= l ? {} : {
|
|
25
|
-
[`--${i}-title-leading-gap`]: m((l - t) / 2, s)
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
function si(e) {
|
|
29
|
-
return `
|
|
30
|
-
.${e}-wrapper {
|
|
31
|
-
display: grid;
|
|
32
|
-
align-items: start;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
min-height: ${li(48)};
|
|
35
|
-
}
|
|
36
|
-
.${e}-item {
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
align-items: center;
|
|
41
|
-
}
|
|
42
|
-
.${e}-item-inner {
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
align-items: center;
|
|
46
|
-
outline: 1px solid #FF5C02;
|
|
47
|
-
}
|
|
48
|
-
.${e}-item-inner-hidden {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
align-items: center;
|
|
52
|
-
}
|
|
53
|
-
.${e}-item-image-wrapper {
|
|
54
|
-
display: flex;
|
|
55
|
-
justify-content: center;
|
|
56
|
-
align-items: center;
|
|
57
|
-
align-self: center;
|
|
58
|
-
}
|
|
59
|
-
.${e}-item-image-wrapper-fit-slider {
|
|
60
|
-
display: grid;
|
|
61
|
-
overflow: hidden;
|
|
62
|
-
position: relative;
|
|
63
|
-
}
|
|
64
|
-
.${e}-item-image-wrapper-fit-slider > .${e}-item-image-wrapper-sizer {
|
|
65
|
-
grid-area: 1 / 1;
|
|
66
|
-
width: 100%;
|
|
67
|
-
display: grid;
|
|
68
|
-
visibility: hidden;
|
|
69
|
-
pointer-events: none;
|
|
70
|
-
}
|
|
71
|
-
.${e}-item-image-wrapper-fit-slider > .${e}-item-image-wrapper-sizer img {
|
|
72
|
-
grid-area: 1 / 1;
|
|
73
|
-
width: auto;
|
|
74
|
-
height: auto;
|
|
75
|
-
max-width: 100%;
|
|
76
|
-
object-fit: contain;
|
|
77
|
-
}
|
|
78
|
-
.${e}-item-image-wrapper-fit-slider > .${e}-item-image-wrapper-sizer video {
|
|
79
|
-
grid-area: 1 / 1;
|
|
80
|
-
width: auto;
|
|
81
|
-
height: auto;
|
|
82
|
-
max-width: 100%;
|
|
83
|
-
object-fit: contain;
|
|
84
|
-
}
|
|
85
|
-
.${e}-item-image-wrapper-fit-slider > .${e}-item-slider {
|
|
86
|
-
position: absolute;
|
|
87
|
-
inset: 0;
|
|
88
|
-
width: 100%;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
}
|
|
91
|
-
.${e}-item-slider .splide__track {
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
}
|
|
94
|
-
.${e}-item-image-link {
|
|
95
|
-
width: 100%;
|
|
96
|
-
display: flex;
|
|
97
|
-
flex-direction: column;
|
|
98
|
-
align-items: center;
|
|
99
|
-
}
|
|
100
|
-
.${e}-item-text-link {
|
|
101
|
-
display: flex;
|
|
102
|
-
flex-direction: column;
|
|
103
|
-
align-items: center;
|
|
104
|
-
width: 100%;
|
|
105
|
-
color: inherit;
|
|
106
|
-
text-decoration: none;
|
|
107
|
-
}
|
|
108
|
-
.${e}-item-image {
|
|
109
|
-
width: 100%;
|
|
110
|
-
height: 100%;
|
|
111
|
-
display: block;
|
|
112
|
-
max-width: 100%;
|
|
113
|
-
}
|
|
114
|
-
.${e}-item-video {
|
|
115
|
-
width: 100%;
|
|
116
|
-
height: 100%;
|
|
117
|
-
display: block;
|
|
118
|
-
max-width: 100%;
|
|
119
|
-
}
|
|
120
|
-
.${e}-item-slider,
|
|
121
|
-
.${e}-item-slider .splide__track,
|
|
122
|
-
.${e}-item-slider .splide__list,
|
|
123
|
-
.${e}-item-slider .splide__slide {
|
|
124
|
-
width: 100%;
|
|
125
|
-
height: 100%;
|
|
126
|
-
}
|
|
127
|
-
.${e}-item-slider .splide__slide {
|
|
128
|
-
display: flex;
|
|
129
|
-
justify-content: center;
|
|
130
|
-
align-items: center;
|
|
131
|
-
}
|
|
132
|
-
.${e}-item-title {
|
|
133
|
-
white-space: normal;
|
|
134
|
-
overflow-wrap: anywhere;
|
|
135
|
-
word-break: break-word;
|
|
136
|
-
text-align: center;
|
|
137
|
-
margin-bottom: 0px;
|
|
138
|
-
margin-top: 0px;
|
|
139
|
-
color: var(--${e}-title-color);
|
|
140
|
-
}
|
|
141
|
-
.${e}-item-subtitle {
|
|
142
|
-
white-space: normal;
|
|
143
|
-
overflow-wrap: anywhere;
|
|
144
|
-
word-break: break-word;
|
|
145
|
-
text-align: center;
|
|
146
|
-
margin-bottom: 0px;
|
|
147
|
-
margin-top: 0px;
|
|
148
|
-
color: var(--${e}-subtitle-color);
|
|
149
|
-
}
|
|
150
|
-
.${e}-text-tight-leading {
|
|
151
|
-
display: block;
|
|
152
|
-
flex-shrink: 0;
|
|
153
|
-
padding-top: var(--${e}-title-leading-gap, 0);
|
|
154
|
-
padding-bottom: var(--${e}-title-leading-gap, 0);
|
|
155
|
-
}
|
|
156
|
-
.${e}-show-text-hover .${e}-item-title,
|
|
157
|
-
.${e}-show-text-hover .${e}-item-subtitle {
|
|
158
|
-
opacity: 0;
|
|
159
|
-
transition: opacity 250ms;
|
|
160
|
-
}
|
|
161
|
-
.${e}-show-text-hover .${e}-item-inner:hover .${e}-item-title,
|
|
162
|
-
.${e}-show-text-hover .${e}-item-inner:hover .${e}-item-subtitle,
|
|
163
|
-
.${e}-show-text-hover .${e}-item-inner-hidden:hover .${e}-item-title,
|
|
164
|
-
.${e}-show-text-hover .${e}-item-inner-hidden:hover .${e}-item-subtitle {
|
|
165
|
-
opacity: 1;
|
|
166
|
-
}
|
|
167
|
-
.${e}-type-a .${e}-item-inner,
|
|
168
|
-
.${e}-type-a .${e}-item-inner-hidden,
|
|
169
|
-
.${e}-type-d .${e}-item-inner,
|
|
170
|
-
.${e}-type-d .${e}-item-inner-hidden {
|
|
171
|
-
align-items: flex-start;
|
|
172
|
-
}
|
|
173
|
-
.${e}-type-b .${e}-item-inner,
|
|
174
|
-
.${e}-type-b .${e}-item-inner-hidden,
|
|
175
|
-
.${e}-type-e .${e}-item-inner,
|
|
176
|
-
.${e}-type-e .${e}-item-inner-hidden {
|
|
177
|
-
align-items: center;
|
|
178
|
-
}
|
|
179
|
-
.${e}-type-c .${e}-item-inner,
|
|
180
|
-
.${e}-type-c .${e}-item-inner-hidden,
|
|
181
|
-
.${e}-type-f .${e}-item-inner,
|
|
182
|
-
.${e}-type-f .${e}-item-inner-hidden {
|
|
183
|
-
align-items: flex-end;
|
|
184
|
-
}
|
|
185
|
-
.${e}-type-a .${e}-item-image-link,
|
|
186
|
-
.${e}-type-b .${e}-item-image-link,
|
|
187
|
-
.${e}-type-c .${e}-item-image-link,
|
|
188
|
-
.${e}-type-d .${e}-item-image-link,
|
|
189
|
-
.${e}-type-e .${e}-item-image-link,
|
|
190
|
-
.${e}-type-f .${e}-item-image-link {
|
|
191
|
-
align-items: center;
|
|
192
|
-
}
|
|
193
|
-
.${e}-type-a .${e}-item-title,
|
|
194
|
-
.${e}-type-a .${e}-item-subtitle,
|
|
195
|
-
.${e}-type-d .${e}-item-title,
|
|
196
|
-
.${e}-type-d .${e}-item-subtitle {
|
|
197
|
-
text-align: left;
|
|
198
|
-
}
|
|
199
|
-
.${e}-type-b .${e}-item-title,
|
|
200
|
-
.${e}-type-b .${e}-item-subtitle,
|
|
201
|
-
.${e}-type-e .${e}-item-title,
|
|
202
|
-
.${e}-type-e .${e}-item-subtitle {
|
|
203
|
-
text-align: center;
|
|
204
|
-
}
|
|
205
|
-
.${e}-type-c .${e}-item-title,
|
|
206
|
-
.${e}-type-c .${e}-item-subtitle,
|
|
207
|
-
.${e}-type-f .${e}-item-title,
|
|
208
|
-
.${e}-type-f .${e}-item-subtitle {
|
|
209
|
-
text-align: right;
|
|
210
|
-
}
|
|
211
|
-
.${e}-item-text-block {
|
|
212
|
-
display: flex;
|
|
213
|
-
flex-direction: column;
|
|
214
|
-
align-items: flex-start;
|
|
215
|
-
width: 100%;
|
|
216
|
-
flex-shrink: 0;
|
|
217
|
-
}
|
|
218
|
-
.${e}-type-d .${e}-item-text-block {
|
|
219
|
-
align-items: flex-start;
|
|
220
|
-
}
|
|
221
|
-
.${e}-type-e .${e}-item-text-block {
|
|
222
|
-
align-items: center;
|
|
223
|
-
}
|
|
224
|
-
.${e}-type-f .${e}-item-text-block {
|
|
225
|
-
align-items: flex-end;
|
|
226
|
-
}
|
|
227
|
-
.${e}-type-a .${e}-item-text-link,
|
|
228
|
-
.${e}-type-d .${e}-item-text-link {
|
|
229
|
-
align-items: flex-start;
|
|
230
|
-
}
|
|
231
|
-
.${e}-type-b .${e}-item-text-link,
|
|
232
|
-
.${e}-type-e .${e}-item-text-link {
|
|
233
|
-
align-items: center;
|
|
234
|
-
}
|
|
235
|
-
.${e}-type-c .${e}-item-text-link,
|
|
236
|
-
.${e}-type-f .${e}-item-text-link {
|
|
237
|
-
align-items: flex-end;
|
|
238
|
-
}
|
|
239
|
-
.${e}-image-align-top .${e}-item-image-wrapper:not(.${e}-item-image-wrapper-fit-slider) {
|
|
240
|
-
align-items: flex-start;
|
|
241
|
-
}
|
|
242
|
-
.${e}-image-align-center .${e}-item-image-wrapper:not(.${e}-item-image-wrapper-fit-slider) {
|
|
243
|
-
align-items: center;
|
|
244
|
-
}
|
|
245
|
-
.${e}-image-align-bottom .${e}-item-image-wrapper:not(.${e}-item-image-wrapper-fit-slider) {
|
|
246
|
-
align-items: flex-end;
|
|
247
|
-
}
|
|
248
|
-
.${e}-image-align-top .${e}-item-slider .splide__slide {
|
|
249
|
-
align-items: flex-start;
|
|
250
|
-
}
|
|
251
|
-
.${e}-image-align-center .${e}-item-slider .splide__slide {
|
|
252
|
-
align-items: center;
|
|
253
|
-
}
|
|
254
|
-
.${e}-image-align-bottom .${e}-item-slider .splide__slide {
|
|
255
|
-
align-items: flex-end;
|
|
256
|
-
}
|
|
257
|
-
.${e}-align-entries .${e}-item {
|
|
258
|
-
display: contents;
|
|
259
|
-
}
|
|
260
|
-
.${e}-align-entries .${e}-item-inner,
|
|
261
|
-
.${e}-align-entries .${e}-item-inner-hidden {
|
|
262
|
-
display: grid;
|
|
263
|
-
grid-template-rows: subgrid;
|
|
264
|
-
grid-row: span 3;
|
|
265
|
-
justify-self: center;
|
|
266
|
-
margin-bottom: var(--${e}-align-entries-row-gap, 0);
|
|
267
|
-
}
|
|
268
|
-
.${e}-align-entries .${e}-item-inner-last-row {
|
|
269
|
-
margin-bottom: 0;
|
|
270
|
-
}
|
|
271
|
-
.${e}-align-entries .${e}-item-text-link {
|
|
272
|
-
display: contents;
|
|
273
|
-
}
|
|
274
|
-
.${e}-align-entries .${e}-item-title-row,
|
|
275
|
-
.${e}-align-entries .${e}-item-subtitle-row {
|
|
276
|
-
display: flex;
|
|
277
|
-
flex-direction: column;
|
|
278
|
-
align-items: flex-start;
|
|
279
|
-
width: 100%;
|
|
280
|
-
min-height: 100%;
|
|
281
|
-
}
|
|
282
|
-
.${e}-type-a.${e}-align-entries .${e}-item-title-row,
|
|
283
|
-
.${e}-type-a.${e}-align-entries .${e}-item-subtitle-row,
|
|
284
|
-
.${e}-type-d.${e}-align-entries .${e}-item-title-row,
|
|
285
|
-
.${e}-type-d.${e}-align-entries .${e}-item-subtitle-row {
|
|
286
|
-
align-items: flex-start;
|
|
287
|
-
}
|
|
288
|
-
.${e}-type-b.${e}-align-entries .${e}-item-title-row,
|
|
289
|
-
.${e}-type-b.${e}-align-entries .${e}-item-subtitle-row,
|
|
290
|
-
.${e}-type-e.${e}-align-entries .${e}-item-title-row,
|
|
291
|
-
.${e}-type-e.${e}-align-entries .${e}-item-subtitle-row {
|
|
292
|
-
align-items: center;
|
|
293
|
-
}
|
|
294
|
-
.${e}-type-c.${e}-align-entries .${e}-item-title-row,
|
|
295
|
-
.${e}-type-c.${e}-align-entries .${e}-item-subtitle-row,
|
|
296
|
-
.${e}-type-f.${e}-align-entries .${e}-item-title-row,
|
|
297
|
-
.${e}-type-f.${e}-align-entries .${e}-item-subtitle-row {
|
|
298
|
-
align-items: flex-end;
|
|
299
|
-
}
|
|
300
|
-
.${e}-align-entries .${e}-item-image-link {
|
|
301
|
-
width: 100%;
|
|
302
|
-
height: 100%;
|
|
303
|
-
min-height: 100%;
|
|
304
|
-
display: flex;
|
|
305
|
-
flex-direction: column;
|
|
306
|
-
align-items: center;
|
|
307
|
-
justify-content: flex-start;
|
|
308
|
-
}
|
|
309
|
-
.${e}-align-entries .${e}-item-image-link > .${e}-item-image-wrapper {
|
|
310
|
-
flex-shrink: 0;
|
|
311
|
-
height: auto;
|
|
312
|
-
align-self: auto;
|
|
313
|
-
}
|
|
314
|
-
.${e}-image-align-top.${e}-align-entries .${e}-item-image-link > .${e}-item-image-wrapper {
|
|
315
|
-
margin-top: 0;
|
|
316
|
-
margin-bottom: auto;
|
|
317
|
-
}
|
|
318
|
-
.${e}-image-align-center.${e}-align-entries .${e}-item-image-link > .${e}-item-image-wrapper {
|
|
319
|
-
margin-top: auto;
|
|
320
|
-
margin-bottom: auto;
|
|
321
|
-
}
|
|
322
|
-
.${e}-image-align-bottom.${e}-align-entries .${e}-item-image-link > .${e}-item-image-wrapper {
|
|
323
|
-
margin-top: auto;
|
|
324
|
-
margin-bottom: 0;
|
|
325
|
-
}
|
|
326
|
-
.${e}-image-align-top.${e}-align-entries .${e}-item-image-wrapper:not(.${e}-item-image-wrapper-fit-slider) {
|
|
327
|
-
align-items: flex-start;
|
|
328
|
-
}
|
|
329
|
-
.${e}-image-align-center.${e}-align-entries .${e}-item-image-wrapper:not(.${e}-item-image-wrapper-fit-slider) {
|
|
330
|
-
align-items: center;
|
|
331
|
-
}
|
|
332
|
-
.${e}-image-align-bottom.${e}-align-entries .${e}-item-image-wrapper:not(.${e}-item-image-wrapper-fit-slider) {
|
|
333
|
-
align-items: flex-end;
|
|
334
|
-
}
|
|
335
|
-
.${e}-image-align-top.${e}-align-entries .${e}-item-slider .splide__slide {
|
|
336
|
-
align-items: flex-start;
|
|
337
|
-
}
|
|
338
|
-
.${e}-image-align-center.${e}-align-entries .${e}-item-slider .splide__slide {
|
|
339
|
-
align-items: center;
|
|
340
|
-
}
|
|
341
|
-
.${e}-image-align-bottom.${e}-align-entries .${e}-item-slider .splide__slide {
|
|
342
|
-
align-items: flex-end;
|
|
343
|
-
}
|
|
344
|
-
.${e}-image-align-top.${e}-align-entries .${e}-item-image-link {
|
|
345
|
-
justify-content: flex-start;
|
|
346
|
-
}
|
|
347
|
-
.${e}-image-align-center.${e}-align-entries .${e}-item-image-link {
|
|
348
|
-
justify-content: center;
|
|
349
|
-
}
|
|
350
|
-
.${e}-image-align-bottom.${e}-align-entries .${e}-item-image-link {
|
|
351
|
-
justify-content: flex-end;
|
|
352
|
-
}
|
|
353
|
-
.${e}-lightbox-counter {
|
|
354
|
-
margin: 0;
|
|
355
|
-
color: var(--${e}-lightbox-counter-color);
|
|
356
|
-
}
|
|
357
|
-
.${e}-lightbox {
|
|
358
|
-
position: fixed;
|
|
359
|
-
inset: 0;
|
|
360
|
-
z-index: 9997;
|
|
361
|
-
overscroll-behavior: none;
|
|
362
|
-
overflow: hidden;
|
|
363
|
-
}
|
|
364
|
-
.${e}-lightbox-editor {
|
|
365
|
-
inset: auto;
|
|
366
|
-
top: var(--cntrl-article-top, 0);
|
|
367
|
-
left: var(--cntrl-article-left, 0);
|
|
368
|
-
width: var(--cntrl-article-width, 100vw) !important;
|
|
369
|
-
height: var(--cntrl-viewport-height, 100vh) !important;
|
|
370
|
-
}
|
|
371
|
-
.${e}-control {
|
|
372
|
-
position: relative;
|
|
373
|
-
z-index: 2;
|
|
374
|
-
width: 100%;
|
|
375
|
-
}
|
|
376
|
-
.${e}-close-icon {
|
|
377
|
-
position: relative;
|
|
378
|
-
flex-shrink: 0;
|
|
379
|
-
pointer-events: auto;
|
|
380
|
-
z-index: 2;
|
|
381
|
-
display: flex;
|
|
382
|
-
align-items: center;
|
|
383
|
-
justify-content: center;
|
|
384
|
-
border: none;
|
|
385
|
-
background-color: transparent;
|
|
386
|
-
padding: 0;
|
|
387
|
-
}
|
|
388
|
-
.${e}-close-icon-inner {
|
|
389
|
-
all: unset;
|
|
390
|
-
position: relative;
|
|
391
|
-
cursor: pointer;
|
|
392
|
-
width: 100%;
|
|
393
|
-
height: 100%;
|
|
394
|
-
pointer-events: auto;
|
|
395
|
-
}
|
|
396
|
-
.${e}-close-icon-img {
|
|
397
|
-
position: absolute;
|
|
398
|
-
top: 50%;
|
|
399
|
-
left: 50%;
|
|
400
|
-
transform: translate(-50%, -50%);
|
|
401
|
-
}
|
|
402
|
-
`;
|
|
403
|
-
}
|
|
404
|
-
function ai() {
|
|
405
|
-
return Math.random() < 0.5 ? "ltr" : "ttb";
|
|
406
|
-
}
|
|
407
|
-
function ci(e) {
|
|
408
|
-
const t = e.Components.Autoplay;
|
|
409
|
-
t && (t.pause(!1), t.play());
|
|
410
|
-
}
|
|
411
|
-
function di(e) {
|
|
412
|
-
const t = ai();
|
|
413
|
-
e.options.direction !== t && (e.options = { ...e.options, direction: t }), requestAnimationFrame(() => {
|
|
414
|
-
requestAnimationFrame(() => {
|
|
415
|
-
ci(e);
|
|
416
|
-
});
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
const E = 500, ui = 750, me = "cubic-bezier(0.22, 1, 0.36, 1)", hi = 72, gi = 50;
|
|
420
|
-
function mi(e) {
|
|
421
|
-
if (!Array.isArray(e) || e.length === 0) return !1;
|
|
422
|
-
const t = e[0];
|
|
423
|
-
return t !== null && typeof t == "object" && "media" in t && Array.isArray(t.media);
|
|
424
|
-
}
|
|
425
|
-
function pi(e) {
|
|
426
|
-
const [t, i] = e.media;
|
|
427
|
-
return i != null && i.assetId ? i : t != null && t.assetId ? t : null;
|
|
428
|
-
}
|
|
429
|
-
function fi(e) {
|
|
430
|
-
const [t] = e.media;
|
|
431
|
-
return t != null && t.assetId ? t : null;
|
|
432
|
-
}
|
|
433
|
-
function Xt(e) {
|
|
434
|
-
return !Array.isArray(e) || e.length === 0 ? [] : mi(e) ? e.flatMap((t) => {
|
|
435
|
-
const i = pi(t);
|
|
436
|
-
if (!i) return [];
|
|
437
|
-
const s = fi(t);
|
|
438
|
-
return [{
|
|
439
|
-
displayMedia: i,
|
|
440
|
-
lightboxMedia: s != null && s.assetId ? s : null
|
|
441
|
-
}];
|
|
442
|
-
}) : e.filter((t) => t == null ? void 0 : t.assetId).map((t) => ({
|
|
443
|
-
displayMedia: t,
|
|
444
|
-
lightboxMedia: t
|
|
445
|
-
}));
|
|
446
|
-
}
|
|
447
|
-
function Ie(e) {
|
|
448
|
-
return e.type === "video";
|
|
449
|
-
}
|
|
450
|
-
function $i(e) {
|
|
451
|
-
const t = /* @__PURE__ */ new Set(), i = [];
|
|
452
|
-
for (const s of e) {
|
|
453
|
-
const l = Xt(s.gallery);
|
|
454
|
-
for (const T of l) {
|
|
455
|
-
const v = T.lightboxMedia;
|
|
456
|
-
v != null && v.assetId && !t.has(v.assetId) && (t.add(v.assetId), i.push(v));
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
return i;
|
|
460
|
-
}
|
|
461
|
-
function yi({ mediaList: e }) {
|
|
462
|
-
const [t, i] = k(null);
|
|
463
|
-
return Bt(t, { preload: "metadata" }), e.length === 0 ? null : /* @__PURE__ */ n(
|
|
464
|
-
"div",
|
|
465
|
-
{
|
|
466
|
-
ref: i,
|
|
467
|
-
"aria-hidden": !0,
|
|
468
|
-
style: {
|
|
469
|
-
position: "absolute",
|
|
470
|
-
width: 0,
|
|
471
|
-
height: 0,
|
|
472
|
-
overflow: "hidden",
|
|
473
|
-
opacity: 0,
|
|
474
|
-
pointerEvents: "none"
|
|
475
|
-
},
|
|
476
|
-
children: e.map((s) => Ie(s) ? /* @__PURE__ */ n(
|
|
477
|
-
"video",
|
|
478
|
-
{
|
|
479
|
-
src: s.assetId,
|
|
480
|
-
preload: "none",
|
|
481
|
-
muted: !0,
|
|
482
|
-
playsInline: !0
|
|
483
|
-
},
|
|
484
|
-
s.assetId
|
|
485
|
-
) : /* @__PURE__ */ n(
|
|
486
|
-
"img",
|
|
487
|
-
{
|
|
488
|
-
src: s.assetId,
|
|
489
|
-
alt: ""
|
|
490
|
-
},
|
|
491
|
-
s.assetId
|
|
492
|
-
))
|
|
493
|
-
}
|
|
494
|
-
);
|
|
495
|
-
}
|
|
496
|
-
function wi(e) {
|
|
497
|
-
e.pause(), e.removeAttribute("src"), e.load();
|
|
498
|
-
}
|
|
499
|
-
const xi = ".splide__slide video";
|
|
500
|
-
function vi(e) {
|
|
501
|
-
var l;
|
|
502
|
-
if (e.closest(".splide--fade, .splide__slide.is-active:not(.splide__slide--clone), .splide__slide.is-next")) return !0;
|
|
503
|
-
const t = e.closest(".splide__slide");
|
|
504
|
-
if (!t || t.classList.contains("splide__slide--clone")) return !1;
|
|
505
|
-
const i = t.dataset.slideIndex, s = (l = t.parentElement) == null ? void 0 : l.querySelector(".splide__slide.is-next");
|
|
506
|
-
return i !== void 0 && (s == null ? void 0 : s.dataset.slideIndex) === i;
|
|
507
|
-
}
|
|
508
|
-
function jt({
|
|
509
|
-
media: e,
|
|
510
|
-
className: t,
|
|
511
|
-
style: i,
|
|
512
|
-
isSplideSlide: s = !1,
|
|
513
|
-
onMediaClick: l
|
|
514
|
-
}) {
|
|
515
|
-
if (Ie(e)) {
|
|
516
|
-
const T = {
|
|
517
|
-
src: e.assetId,
|
|
518
|
-
className: t,
|
|
519
|
-
style: {
|
|
520
|
-
...i,
|
|
521
|
-
cursor: l ? "pointer" : "default"
|
|
522
|
-
},
|
|
523
|
-
muted: !0,
|
|
524
|
-
loop: !0,
|
|
525
|
-
playsInline: !0,
|
|
526
|
-
onClick: l
|
|
527
|
-
};
|
|
528
|
-
return s ? /* @__PURE__ */ n("video", { ...T, preload: "none" }) : /* @__PURE__ */ n(Gt, { ...T, autoPlay: !0 });
|
|
529
|
-
}
|
|
530
|
-
return /* @__PURE__ */ n(
|
|
531
|
-
"img",
|
|
532
|
-
{
|
|
533
|
-
src: e.assetId,
|
|
534
|
-
alt: e.name,
|
|
535
|
-
className: t,
|
|
536
|
-
style: {
|
|
537
|
-
...i,
|
|
538
|
-
cursor: l ? "pointer" : "default"
|
|
539
|
-
},
|
|
540
|
-
onClick: l
|
|
541
|
-
}
|
|
542
|
-
);
|
|
543
|
-
}
|
|
544
|
-
function bi({
|
|
545
|
-
className: e,
|
|
546
|
-
style: t,
|
|
547
|
-
children: i
|
|
548
|
-
}) {
|
|
549
|
-
const [s, l] = k(null);
|
|
550
|
-
return Bt(s, { autoPlay: !0, selector: xi, shouldPlay: vi }), /* @__PURE__ */ n("div", { ref: l, className: e, style: t, children: i });
|
|
551
|
-
}
|
|
552
|
-
function Vt(e) {
|
|
553
|
-
const t = e.getBoundingClientRect();
|
|
554
|
-
return { width: t.width, height: t.height, left: t.left, top: t.top };
|
|
555
|
-
}
|
|
556
|
-
function Si(e, t) {
|
|
557
|
-
if (!t || !t.width || !t.height || !e.width || !e.height) return e;
|
|
558
|
-
const i = t.width / t.height, s = e.width / e.height;
|
|
559
|
-
if (i > s) {
|
|
560
|
-
const T = e.width / i;
|
|
561
|
-
return { width: e.width, height: T, left: e.left, top: e.top + (e.height - T) / 2 };
|
|
562
|
-
}
|
|
563
|
-
const l = e.height * i;
|
|
564
|
-
return { width: l, height: e.height, left: e.left + (e.width - l) / 2, top: e.top };
|
|
565
|
-
}
|
|
566
|
-
function Ci({
|
|
567
|
-
src: e,
|
|
568
|
-
phase: t,
|
|
569
|
-
mediaRef: i,
|
|
570
|
-
mediaStyle: s,
|
|
571
|
-
onLoadedMetadata: l,
|
|
572
|
-
onClick: T,
|
|
573
|
-
onMouseMove: v
|
|
574
|
-
}) {
|
|
575
|
-
return B(() => {
|
|
576
|
-
const z = i.current;
|
|
577
|
-
if (z)
|
|
578
|
-
return () => {
|
|
579
|
-
wi(z);
|
|
580
|
-
};
|
|
581
|
-
}, [e, i]), /* @__PURE__ */ n(
|
|
582
|
-
"video",
|
|
583
|
-
{
|
|
584
|
-
ref: i,
|
|
585
|
-
src: e,
|
|
586
|
-
controls: t === "open",
|
|
587
|
-
playsInline: !0,
|
|
588
|
-
preload: "auto",
|
|
589
|
-
onLoadedMetadata: l,
|
|
590
|
-
onClick: T,
|
|
591
|
-
onMouseMove: v,
|
|
592
|
-
style: s
|
|
593
|
-
}
|
|
594
|
-
);
|
|
595
|
-
}
|
|
596
|
-
const Ii = "https://cdn.cntrl.site/component-assets/defaultCloseIcon.svg", ki = 4e-3;
|
|
597
|
-
function Ti({
|
|
598
|
-
prefix: e,
|
|
599
|
-
closeIcon: t = Ii,
|
|
600
|
-
closeIconMaxWidth: i = 0.0125,
|
|
601
|
-
closeIconColor: s = "#FFFFFF",
|
|
602
|
-
closeIconHoverColor: l = "#999999",
|
|
603
|
-
iconMarginRight: T = 0.01,
|
|
604
|
-
contentMarginTop: v = 0.01,
|
|
605
|
-
isEditor: z,
|
|
606
|
-
isPreviewMode: pe,
|
|
607
|
-
isEditMode: o,
|
|
608
|
-
visible: R,
|
|
609
|
-
onClose: P
|
|
610
|
-
}) {
|
|
611
|
-
if (!t) return null;
|
|
612
|
-
const ee = m(i, z), fe = m(T, z), ke = m(v, z), M = m(Math.max(v, ki), z);
|
|
613
|
-
return /* @__PURE__ */ p(
|
|
614
|
-
"div",
|
|
615
|
-
{
|
|
616
|
-
style: {
|
|
617
|
-
position: "absolute",
|
|
618
|
-
top: 0,
|
|
619
|
-
left: 0,
|
|
620
|
-
right: 0,
|
|
621
|
-
zIndex: 1e4,
|
|
622
|
-
display: "flex",
|
|
623
|
-
flexDirection: "column",
|
|
624
|
-
alignItems: "flex-end",
|
|
625
|
-
pointerEvents: "none",
|
|
626
|
-
opacity: R ? 1 : 0,
|
|
627
|
-
transition: "opacity 500ms cubic-bezier(0.22, 1, 0.36, 1)"
|
|
628
|
-
},
|
|
629
|
-
children: [
|
|
630
|
-
/* @__PURE__ */ n(
|
|
631
|
-
"div",
|
|
632
|
-
{
|
|
633
|
-
style: {
|
|
634
|
-
position: "relative",
|
|
635
|
-
width: "100%",
|
|
636
|
-
height: ke,
|
|
637
|
-
flexShrink: 0
|
|
638
|
-
},
|
|
639
|
-
children: o && /* @__PURE__ */ n(
|
|
640
|
-
"div",
|
|
641
|
-
{
|
|
642
|
-
"data-controls": "contentMarginTop",
|
|
643
|
-
"data-controls-axis": "y",
|
|
644
|
-
"data-controls-min": "0",
|
|
645
|
-
className: `${e}-control`,
|
|
646
|
-
style: {
|
|
647
|
-
position: "absolute",
|
|
648
|
-
top: 0,
|
|
649
|
-
left: 0,
|
|
650
|
-
width: "100%",
|
|
651
|
-
height: M,
|
|
652
|
-
pointerEvents: R ? "auto" : "none"
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
)
|
|
656
|
-
}
|
|
657
|
-
),
|
|
658
|
-
/* @__PURE__ */ p(
|
|
659
|
-
"div",
|
|
660
|
-
{
|
|
661
|
-
className: `${e}-close-icon`,
|
|
662
|
-
style: {
|
|
663
|
-
width: ee,
|
|
664
|
-
height: ee,
|
|
665
|
-
marginRight: fe,
|
|
666
|
-
pointerEvents: R ? "auto" : "none"
|
|
667
|
-
},
|
|
668
|
-
onClick: (L) => L.stopPropagation(),
|
|
669
|
-
children: [
|
|
670
|
-
/* @__PURE__ */ n(
|
|
671
|
-
"button",
|
|
672
|
-
{
|
|
673
|
-
type: "button",
|
|
674
|
-
className: `${e}-close-icon-inner`,
|
|
675
|
-
"aria-label": "Close",
|
|
676
|
-
onClick: (L) => {
|
|
677
|
-
L.stopPropagation(), P();
|
|
678
|
-
},
|
|
679
|
-
children: /* @__PURE__ */ n(
|
|
680
|
-
oi,
|
|
681
|
-
{
|
|
682
|
-
url: t,
|
|
683
|
-
fill: s,
|
|
684
|
-
hoverFill: z && !pe ? s : l,
|
|
685
|
-
className: `${e}-close-icon-img`
|
|
686
|
-
}
|
|
687
|
-
)
|
|
688
|
-
}
|
|
689
|
-
),
|
|
690
|
-
o && /* @__PURE__ */ n(
|
|
691
|
-
"div",
|
|
692
|
-
{
|
|
693
|
-
"data-controls": "iconMarginRight",
|
|
694
|
-
"data-controls-axis": "x",
|
|
695
|
-
"data-controls-reverse": "",
|
|
696
|
-
className: `${e}-control`,
|
|
697
|
-
style: {
|
|
698
|
-
position: "absolute",
|
|
699
|
-
top: 0,
|
|
700
|
-
left: "100%",
|
|
701
|
-
width: fe,
|
|
702
|
-
height: "100%",
|
|
703
|
-
pointerEvents: R ? "auto" : "none"
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
)
|
|
707
|
-
]
|
|
708
|
-
}
|
|
709
|
-
)
|
|
710
|
-
]
|
|
711
|
-
}
|
|
712
|
-
);
|
|
713
|
-
}
|
|
714
|
-
function Li({
|
|
715
|
-
prefix: e,
|
|
716
|
-
items: t,
|
|
717
|
-
index: i,
|
|
718
|
-
imageDisplay: s,
|
|
719
|
-
isEditor: l,
|
|
720
|
-
isPreviewMode: T,
|
|
721
|
-
isEditMode: v,
|
|
722
|
-
onClose: z,
|
|
723
|
-
onPrev: pe,
|
|
724
|
-
onNext: o,
|
|
725
|
-
counterClassName: R,
|
|
726
|
-
counterStyle: P,
|
|
727
|
-
closeIcon: ee,
|
|
728
|
-
closeIconMaxWidth: fe,
|
|
729
|
-
closeIconColor: ke,
|
|
730
|
-
closeIconHoverColor: M,
|
|
731
|
-
iconMarginRight: L,
|
|
732
|
-
contentMarginTop: Ee
|
|
733
|
-
}) {
|
|
734
|
-
const Ae = s === "cover", Fe = $(null), $e = $(null), ye = $(null), A = $(null), U = $(0), F = $(0), O = $("none"), K = $(!1), G = $(!1), Ue = $(null), N = $(0), X = $(null), W = $(!1), de = $(null), Z = $(null), Oe = $(null), Ke = $(() => {
|
|
735
|
-
}), [d, We] = k(null), [c, ut] = k(null), [b, Te] = k("opening"), [te, q] = k(0), [ue, Y] = k(0), [Re, he] = k(null), [Le, we] = k(!1), [_e, xe] = k(!1), [ht, Ze] = k(!1), [gt, Je] = k(null), Qe = $(i), Pe = $(void 0), g = t[i], De = g ? Ie(g) : !1, He = ue !== 0 || Le, et = Re !== null, mt = ce((r) => {
|
|
736
|
-
const a = r.currentTarget, y = a instanceof HTMLVideoElement ? { width: a.videoWidth, height: a.videoHeight } : { width: a.naturalWidth, height: a.naturalHeight };
|
|
737
|
-
!y.width || !y.height || Je(y);
|
|
738
|
-
}, []);
|
|
739
|
-
B(() => {
|
|
740
|
-
Ue.current = c;
|
|
741
|
-
}, [c]), B(() => {
|
|
742
|
-
const r = Fe.current;
|
|
743
|
-
if (!r) return;
|
|
744
|
-
const a = () => ut(Vt(r));
|
|
745
|
-
a();
|
|
746
|
-
const y = new ResizeObserver(a);
|
|
747
|
-
return y.observe(r), () => y.disconnect();
|
|
748
|
-
}, []);
|
|
749
|
-
const x = ce(() => {
|
|
750
|
-
de.current !== null && (window.clearTimeout(de.current), de.current = null);
|
|
751
|
-
}, []), ge = ce(() => {
|
|
752
|
-
const r = Z.current;
|
|
753
|
-
Z.current = null, x(), X.current = null, W.current = !1, he(null), we(!1), Y(0), N.current = 0, xe(!1), K.current = !1, F.current = 0, O.current = "none", r === 1 ? o() : r === -1 && pe();
|
|
754
|
-
}, [x, o, pe]), je = ce(() => {
|
|
755
|
-
x(), Z.current = null, X.current = null, W.current = !1, he(null), we(!1), Y(0), N.current = 0;
|
|
756
|
-
}, [x]), tt = ce(() => {
|
|
757
|
-
x(), de.current = window.setTimeout(() => {
|
|
758
|
-
Z.current !== null && ge();
|
|
759
|
-
}, E + 32);
|
|
760
|
-
}, [x, ge]), ie = ce((r, a) => {
|
|
761
|
-
var D;
|
|
762
|
-
const y = ((D = Ue.current) == null ? void 0 : D.width) ?? 0;
|
|
763
|
-
if (x(), X.current = r, he(r), W.current = !0, we(!0), a) {
|
|
764
|
-
Z.current = r;
|
|
765
|
-
const se = -r * y;
|
|
766
|
-
N.current = se, Y(se), tt();
|
|
767
|
-
return;
|
|
768
|
-
}
|
|
769
|
-
N.current = 0, Y(0), de.current = window.setTimeout(() => {
|
|
770
|
-
de.current = null, je();
|
|
771
|
-
}, E + 32);
|
|
772
|
-
}, [x, je, tt]), ne = ce((r) => {
|
|
773
|
-
if (!(t.length <= 1)) {
|
|
774
|
-
if (W.current) {
|
|
775
|
-
if (Z.current === r) {
|
|
776
|
-
Oe.current = r, ge();
|
|
777
|
-
return;
|
|
778
|
-
}
|
|
779
|
-
je();
|
|
780
|
-
}
|
|
781
|
-
x(), X.current = r, he(r), W.current = !1, we(!1), N.current = 0, Y(0), requestAnimationFrame(() => {
|
|
782
|
-
requestAnimationFrame(() => {
|
|
783
|
-
ie(r, !0);
|
|
784
|
-
});
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
}, [t.length, ie, ge, je, x]);
|
|
788
|
-
Ke.current = ne;
|
|
789
|
-
const Ne = ce((r) => {
|
|
790
|
-
r.propertyName !== "transform" || !W.current || Z.current !== null && ge();
|
|
791
|
-
}, [ge]), ve = ce(() => {
|
|
792
|
-
const r = $e.current;
|
|
793
|
-
if (!r) return;
|
|
794
|
-
const a = Vt(r);
|
|
795
|
-
!a.width || !a.height || We(a);
|
|
796
|
-
}, []);
|
|
797
|
-
B(() => {
|
|
798
|
-
ve();
|
|
799
|
-
const r = $e.current;
|
|
800
|
-
if (!r) return;
|
|
801
|
-
const a = new ResizeObserver(() => ve());
|
|
802
|
-
return a.observe(r), () => a.disconnect();
|
|
803
|
-
}, [ve]), B(() => {
|
|
804
|
-
b === "opening" && d && Te("open");
|
|
805
|
-
}, [b, d]), B(() => {
|
|
806
|
-
if (b !== "closing") return;
|
|
807
|
-
const r = setTimeout(() => z(), E);
|
|
808
|
-
return () => clearTimeout(r);
|
|
809
|
-
}, [b, z]), B(() => () => {
|
|
810
|
-
x();
|
|
811
|
-
}, [x]), Dt(() => {
|
|
812
|
-
Qe.current === i && Pe.current === (g == null ? void 0 : g.assetId) || (x(), Z.current = null, he(null), q(0), Y(0), we(!1), Ze(!1), xe(!1), Je(null), U.current = 0, F.current = 0, O.current = "none", K.current = !1, W.current = !1, N.current = 0, X.current = null, A.current = null, G.current = !1, Qe.current = i, Pe.current = g == null ? void 0 : g.assetId);
|
|
813
|
-
}, [i, g == null ? void 0 : g.assetId, x]), Dt(() => {
|
|
814
|
-
const r = Oe.current;
|
|
815
|
-
r !== null && (Oe.current = null, requestAnimationFrame(() => {
|
|
816
|
-
Ke.current(r);
|
|
817
|
-
}));
|
|
818
|
-
}, [i, g == null ? void 0 : g.assetId]), B(() => {
|
|
819
|
-
if (b !== "open") return;
|
|
820
|
-
let r = null;
|
|
821
|
-
const a = () => {
|
|
822
|
-
r && (document.removeEventListener("click", r, !0), r = null);
|
|
823
|
-
}, y = () => {
|
|
824
|
-
a(), r = (w) => {
|
|
825
|
-
w.stopPropagation(), w.preventDefault(), a();
|
|
826
|
-
}, document.addEventListener("click", r, !0);
|
|
827
|
-
}, D = (w) => {
|
|
828
|
-
const f = w < 0 ? 1 : -1;
|
|
829
|
-
if (Math.abs(w) > gi && t.length > 1) {
|
|
830
|
-
ie(f, !0);
|
|
831
|
-
return;
|
|
832
|
-
}
|
|
833
|
-
ie(f, !1);
|
|
834
|
-
}, se = (w) => {
|
|
835
|
-
if (w.touches.length !== 1 || W.current) return;
|
|
836
|
-
const f = w.touches[0];
|
|
837
|
-
G.current = !0, A.current = { x: f.clientX, y: f.clientY }, O.current = "none", F.current = 0, K.current = !1;
|
|
838
|
-
}, ae = (w) => {
|
|
839
|
-
if (!A.current || w.touches.length !== 1 || W.current) return;
|
|
840
|
-
const f = w.touches[0], S = f.clientX - A.current.x, _ = f.clientY - A.current.y;
|
|
841
|
-
if (O.current === "none") {
|
|
842
|
-
if (Math.abs(S) < 10 && Math.abs(_) < 10) return;
|
|
843
|
-
if (Math.abs(S) > Math.abs(_)) {
|
|
844
|
-
if (t.length <= 1) return;
|
|
845
|
-
O.current = "horizontal";
|
|
846
|
-
} else if (_ > 0)
|
|
847
|
-
O.current = "vertical";
|
|
848
|
-
else
|
|
849
|
-
return;
|
|
850
|
-
}
|
|
851
|
-
if (O.current === "horizontal") {
|
|
852
|
-
K.current = !0, xe(!0), F.current = S;
|
|
853
|
-
const H = S < 0 ? 1 : -1;
|
|
854
|
-
X.current !== H && (X.current = H, he(H)), N.current = S, Y(S), w.preventDefault();
|
|
855
|
-
return;
|
|
856
|
-
}
|
|
857
|
-
O.current === "vertical" && (K.current = !0, xe(!0), U.current = _, q(_), w.preventDefault());
|
|
858
|
-
}, Me = () => {
|
|
859
|
-
if (!A.current) return;
|
|
860
|
-
const w = O.current, f = K.current;
|
|
861
|
-
if (f && w === "horizontal")
|
|
862
|
-
D(F.current), y();
|
|
863
|
-
else if (f && w === "vertical")
|
|
864
|
-
if (U.current > hi) {
|
|
865
|
-
const _ = window.innerHeight;
|
|
866
|
-
U.current = _, Ze(!0), q(_), Te("closing");
|
|
867
|
-
} else
|
|
868
|
-
U.current = 0, q(0), y();
|
|
869
|
-
else w === "horizontal" && Math.abs(F.current) > 0 && (D(F.current), y());
|
|
870
|
-
A.current = null, O.current = "none", F.current = 0, K.current = !1, xe(!1);
|
|
871
|
-
};
|
|
872
|
-
return document.addEventListener("touchstart", se, { passive: !0 }), document.addEventListener("touchmove", ae, { passive: !1 }), document.addEventListener("touchend", Me), document.addEventListener("touchcancel", Me), () => {
|
|
873
|
-
document.removeEventListener("touchstart", se), document.removeEventListener("touchmove", ae), document.removeEventListener("touchend", Me), document.removeEventListener("touchcancel", Me), a();
|
|
874
|
-
};
|
|
875
|
-
}, [b, t.length, ie]), B(() => {
|
|
876
|
-
const r = (a) => {
|
|
877
|
-
a.key === "Escape" && (a.preventDefault(), a.stopPropagation(), b !== "closing" && Te("closing"));
|
|
878
|
-
};
|
|
879
|
-
return window.addEventListener("keydown", r, !0), () => window.removeEventListener("keydown", r, !0);
|
|
880
|
-
}, [b]);
|
|
881
|
-
const it = () => {
|
|
882
|
-
b !== "closing" && Te("closing");
|
|
883
|
-
}, J = b === "open", pt = b === "closing", kt = te > 0 ? Math.max(0, 1 - te / 500) : 1, ft = te > 0 ? Math.max(0.35, 1 - te / 500) : 1, u = d ? Ae ? d : Si(d, gt) : null, re = (r) => {
|
|
884
|
-
if (r.stopPropagation(), G.current) {
|
|
885
|
-
G.current = !1;
|
|
886
|
-
return;
|
|
887
|
-
}
|
|
888
|
-
if (t.length <= 1) return;
|
|
889
|
-
const a = u ?? r.currentTarget.getBoundingClientRect(), y = r.clientY - a.top, D = Math.min(52, a.height * 0.2);
|
|
890
|
-
if (!(y > a.height - D)) {
|
|
891
|
-
if (r.clientX - a.left < a.width / 2) {
|
|
892
|
-
ne(-1);
|
|
893
|
-
return;
|
|
894
|
-
}
|
|
895
|
-
ne(1);
|
|
896
|
-
}
|
|
897
|
-
}, $t = (r) => {
|
|
898
|
-
if (t.length <= 1) return;
|
|
899
|
-
const a = u ?? r.currentTarget.getBoundingClientRect(), y = r.clientX - a.left, D = r.clientY - a.top, se = Math.min(52, a.height * 0.2);
|
|
900
|
-
if (D > a.height - se) {
|
|
901
|
-
r.currentTarget.style.cursor = "default";
|
|
902
|
-
return;
|
|
903
|
-
}
|
|
904
|
-
r.currentTarget.style.cursor = y < a.width / 2 ? "w-resize" : "e-resize";
|
|
905
|
-
}, be = {
|
|
906
|
-
position: "fixed",
|
|
907
|
-
top: c == null ? void 0 : c.top,
|
|
908
|
-
left: c == null ? void 0 : c.left,
|
|
909
|
-
width: c == null ? void 0 : c.width,
|
|
910
|
-
height: c == null ? void 0 : c.height,
|
|
911
|
-
zIndex: 9998
|
|
912
|
-
}, ze = Ae ? "cover" : "contain", yt = ue !== 0 || te > 0 ? `translate(${ue}px, ${te}px)` : void 0, nt = _e && !Le ? "none" : Le ? `transform ${E}ms ${me}` : ht ? `transform ${E}ms ${me}, opacity ${E}ms ${me}` : b === "opening" || pt ? `opacity ${E}ms ${me}` : "none", rt = {
|
|
913
|
-
...be,
|
|
914
|
-
transform: yt,
|
|
915
|
-
opacity: te > 0 ? ft : b === "opening" || pt ? 0 : 1,
|
|
916
|
-
transition: nt,
|
|
917
|
-
pointerEvents: "none"
|
|
918
|
-
}, Ve = {
|
|
919
|
-
position: "absolute",
|
|
920
|
-
top: ((u == null ? void 0 : u.top) ?? 0) - ((c == null ? void 0 : c.top) ?? 0),
|
|
921
|
-
left: ((u == null ? void 0 : u.left) ?? 0) - ((c == null ? void 0 : c.left) ?? 0),
|
|
922
|
-
width: u == null ? void 0 : u.width,
|
|
923
|
-
height: u == null ? void 0 : u.height,
|
|
924
|
-
objectFit: ze,
|
|
925
|
-
pointerEvents: De && J && !He ? "auto" : "none",
|
|
926
|
-
touchAction: De && J ? "none" : void 0
|
|
927
|
-
}, Tt = (c == null ? void 0 : c.width) ?? 0, Be = et ? (i + Re + t.length) % t.length : null, oe = Be !== null ? t[Be] : null, le = {
|
|
928
|
-
...be,
|
|
929
|
-
transform: et ? `translateX(${Re * Tt + ue}px)` : void 0,
|
|
930
|
-
opacity: 1,
|
|
931
|
-
transition: Le ? `transform ${E}ms ${me}` : "none",
|
|
932
|
-
pointerEvents: "none"
|
|
933
|
-
}, Se = {
|
|
934
|
-
position: "absolute",
|
|
935
|
-
top: ((d == null ? void 0 : d.top) ?? 0) - ((c == null ? void 0 : c.top) ?? 0),
|
|
936
|
-
left: ((d == null ? void 0 : d.left) ?? 0) - ((c == null ? void 0 : c.left) ?? 0),
|
|
937
|
-
width: d == null ? void 0 : d.width,
|
|
938
|
-
height: d == null ? void 0 : d.height,
|
|
939
|
-
objectFit: ze,
|
|
940
|
-
pointerEvents: "none"
|
|
941
|
-
}, Ge = u ? {
|
|
942
|
-
position: "fixed",
|
|
943
|
-
top: u.top,
|
|
944
|
-
height: u.height,
|
|
945
|
-
width: u.width / 2,
|
|
946
|
-
zIndex: 9999
|
|
947
|
-
} : null;
|
|
948
|
-
return /* @__PURE__ */ p(
|
|
949
|
-
"div",
|
|
950
|
-
{
|
|
951
|
-
ref: Fe,
|
|
952
|
-
className: [
|
|
953
|
-
`${e}-lightbox`,
|
|
954
|
-
l ? `${e}-lightbox-editor` : ""
|
|
955
|
-
].filter(Boolean).join(" "),
|
|
956
|
-
style: {
|
|
957
|
-
touchAction: b === "open" ? "none" : void 0
|
|
958
|
-
},
|
|
959
|
-
onClick: it,
|
|
960
|
-
children: [
|
|
961
|
-
/* @__PURE__ */ n(
|
|
962
|
-
"div",
|
|
963
|
-
{
|
|
964
|
-
style: {
|
|
965
|
-
position: "absolute",
|
|
966
|
-
inset: 0,
|
|
967
|
-
background: "rgba(28,31,34,0.9)",
|
|
968
|
-
opacity: J ? kt : 0,
|
|
969
|
-
transition: _e ? "none" : `opacity ${E}ms ${me}`,
|
|
970
|
-
pointerEvents: "none"
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
),
|
|
974
|
-
/* @__PURE__ */ n(
|
|
975
|
-
"div",
|
|
976
|
-
{
|
|
977
|
-
style: {
|
|
978
|
-
position: "relative",
|
|
979
|
-
width: "100%",
|
|
980
|
-
height: "100%",
|
|
981
|
-
display: "flex",
|
|
982
|
-
flexDirection: "column",
|
|
983
|
-
alignItems: "center",
|
|
984
|
-
justifyContent: "center"
|
|
985
|
-
},
|
|
986
|
-
children: Ae ? /* @__PURE__ */ p(V, { children: [
|
|
987
|
-
/* @__PURE__ */ n("div", { ref: $e, style: { position: "absolute", inset: 0 } }),
|
|
988
|
-
/* @__PURE__ */ n(
|
|
989
|
-
"div",
|
|
990
|
-
{
|
|
991
|
-
style: {
|
|
992
|
-
position: "absolute",
|
|
993
|
-
bottom: 0,
|
|
994
|
-
left: 0,
|
|
995
|
-
right: 0,
|
|
996
|
-
display: "flex",
|
|
997
|
-
flexDirection: "row",
|
|
998
|
-
justifyContent: "center",
|
|
999
|
-
alignItems: "center",
|
|
1000
|
-
height: "10%",
|
|
1001
|
-
opacity: J ? 1 : 0,
|
|
1002
|
-
transition: `opacity ${E}ms ${me}`,
|
|
1003
|
-
pointerEvents: "none",
|
|
1004
|
-
zIndex: 9999
|
|
1005
|
-
},
|
|
1006
|
-
children: t.length > 1 && /* @__PURE__ */ p("p", { className: R, style: P, children: [
|
|
1007
|
-
i + 1,
|
|
1008
|
-
" / ",
|
|
1009
|
-
t.length
|
|
1010
|
-
] })
|
|
1011
|
-
}
|
|
1012
|
-
)
|
|
1013
|
-
] }) : /* @__PURE__ */ p(V, { children: [
|
|
1014
|
-
/* @__PURE__ */ n("div", { style: { height: "10%" } }),
|
|
1015
|
-
/* @__PURE__ */ n(
|
|
1016
|
-
"div",
|
|
1017
|
-
{
|
|
1018
|
-
style: {
|
|
1019
|
-
width: "70%",
|
|
1020
|
-
height: "80%",
|
|
1021
|
-
display: "flex",
|
|
1022
|
-
justifyContent: "center",
|
|
1023
|
-
alignItems: "center"
|
|
1024
|
-
},
|
|
1025
|
-
children: /* @__PURE__ */ n("div", { ref: $e, style: { width: "100%", height: "100%" } })
|
|
1026
|
-
}
|
|
1027
|
-
),
|
|
1028
|
-
/* @__PURE__ */ n(
|
|
1029
|
-
"div",
|
|
1030
|
-
{
|
|
1031
|
-
style: {
|
|
1032
|
-
display: "flex",
|
|
1033
|
-
flexDirection: "row",
|
|
1034
|
-
justifyContent: "center",
|
|
1035
|
-
alignItems: "center",
|
|
1036
|
-
height: "10%",
|
|
1037
|
-
opacity: J ? 1 : 0,
|
|
1038
|
-
transition: `opacity ${E}ms ${me}`
|
|
1039
|
-
},
|
|
1040
|
-
children: t.length > 1 && /* @__PURE__ */ p("p", { className: R, style: P, children: [
|
|
1041
|
-
i + 1,
|
|
1042
|
-
" / ",
|
|
1043
|
-
t.length
|
|
1044
|
-
] })
|
|
1045
|
-
}
|
|
1046
|
-
)
|
|
1047
|
-
] })
|
|
1048
|
-
}
|
|
1049
|
-
),
|
|
1050
|
-
d && c && oe && /* @__PURE__ */ n("div", { style: le, onTransitionEnd: Ne, children: Ie(oe) ? /* @__PURE__ */ n(
|
|
1051
|
-
"video",
|
|
1052
|
-
{
|
|
1053
|
-
src: oe.assetId,
|
|
1054
|
-
muted: !0,
|
|
1055
|
-
playsInline: !0,
|
|
1056
|
-
preload: "auto",
|
|
1057
|
-
style: Se
|
|
1058
|
-
},
|
|
1059
|
-
`neighbor-${Be}-${oe.assetId}`
|
|
1060
|
-
) : /* @__PURE__ */ n(
|
|
1061
|
-
"img",
|
|
1062
|
-
{
|
|
1063
|
-
src: oe.assetId,
|
|
1064
|
-
alt: oe.name,
|
|
1065
|
-
style: Se
|
|
1066
|
-
},
|
|
1067
|
-
`neighbor-${Be}-${oe.assetId}`
|
|
1068
|
-
) }),
|
|
1069
|
-
d && c && g && /* @__PURE__ */ n("div", { style: rt, onTransitionEnd: Ne, children: De ? /* @__PURE__ */ n(
|
|
1070
|
-
Ci,
|
|
1071
|
-
{
|
|
1072
|
-
src: g.assetId,
|
|
1073
|
-
phase: b,
|
|
1074
|
-
mediaRef: ye,
|
|
1075
|
-
mediaStyle: Ve,
|
|
1076
|
-
onLoadedMetadata: mt,
|
|
1077
|
-
onClick: re,
|
|
1078
|
-
onMouseMove: $t
|
|
1079
|
-
},
|
|
1080
|
-
`${i}-${g.assetId}`
|
|
1081
|
-
) : /* @__PURE__ */ n(
|
|
1082
|
-
"img",
|
|
1083
|
-
{
|
|
1084
|
-
ref: ye,
|
|
1085
|
-
src: g.assetId,
|
|
1086
|
-
alt: g.name,
|
|
1087
|
-
onLoad: mt,
|
|
1088
|
-
style: Ve
|
|
1089
|
-
},
|
|
1090
|
-
`${i}-${g.assetId}`
|
|
1091
|
-
) }),
|
|
1092
|
-
J && Ge && t.length > 1 && !De && /* @__PURE__ */ p(V, { children: [
|
|
1093
|
-
/* @__PURE__ */ n(
|
|
1094
|
-
"div",
|
|
1095
|
-
{
|
|
1096
|
-
style: {
|
|
1097
|
-
...Ge,
|
|
1098
|
-
left: u.left,
|
|
1099
|
-
cursor: "w-resize",
|
|
1100
|
-
pointerEvents: _e ? "none" : "auto"
|
|
1101
|
-
},
|
|
1102
|
-
onClick: (r) => {
|
|
1103
|
-
if (G.current) {
|
|
1104
|
-
G.current = !1;
|
|
1105
|
-
return;
|
|
1106
|
-
}
|
|
1107
|
-
r.stopPropagation(), ne(-1);
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
),
|
|
1111
|
-
/* @__PURE__ */ n(
|
|
1112
|
-
"div",
|
|
1113
|
-
{
|
|
1114
|
-
style: {
|
|
1115
|
-
...Ge,
|
|
1116
|
-
left: u.left + u.width / 2,
|
|
1117
|
-
cursor: "e-resize",
|
|
1118
|
-
pointerEvents: _e ? "none" : "auto"
|
|
1119
|
-
},
|
|
1120
|
-
onClick: (r) => {
|
|
1121
|
-
if (G.current) {
|
|
1122
|
-
G.current = !1;
|
|
1123
|
-
return;
|
|
1124
|
-
}
|
|
1125
|
-
r.stopPropagation(), ne(1);
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
)
|
|
1129
|
-
] }),
|
|
1130
|
-
/* @__PURE__ */ n(
|
|
1131
|
-
Ti,
|
|
1132
|
-
{
|
|
1133
|
-
prefix: e,
|
|
1134
|
-
closeIcon: ee,
|
|
1135
|
-
closeIconMaxWidth: fe,
|
|
1136
|
-
closeIconColor: ke,
|
|
1137
|
-
closeIconHoverColor: M,
|
|
1138
|
-
iconMarginRight: L,
|
|
1139
|
-
contentMarginTop: Ee,
|
|
1140
|
-
isEditor: l,
|
|
1141
|
-
isPreviewMode: T,
|
|
1142
|
-
isEditMode: v,
|
|
1143
|
-
visible: J,
|
|
1144
|
-
onClose: it
|
|
1145
|
-
}
|
|
1146
|
-
)
|
|
1147
|
-
]
|
|
1148
|
-
}
|
|
1149
|
-
);
|
|
1150
|
-
}
|
|
1151
|
-
function _i(e) {
|
|
1152
|
-
return typeof e == "string" ? e === "cover" ? "cover" : "fit" : (e == null ? void 0 : e.display) === "cover" ? "cover" : "fit";
|
|
1153
|
-
}
|
|
1154
|
-
function Xi({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode: l, metadata: T, activeEvent: v, layoutId: z, portalId: pe }) {
|
|
1155
|
-
const { prefix: o } = ni(), {
|
|
1156
|
-
type: R = "a",
|
|
1157
|
-
gridLayout: P,
|
|
1158
|
-
textBoxWidth: ee = 100,
|
|
1159
|
-
verticalGap: fe,
|
|
1160
|
-
entriesCount: ke,
|
|
1161
|
-
lightbox: M,
|
|
1162
|
-
imageDisplay: L,
|
|
1163
|
-
imageCorners: Ee,
|
|
1164
|
-
lightboxImageDisplay: Ae,
|
|
1165
|
-
slider: Fe,
|
|
1166
|
-
sliderTiming: $e,
|
|
1167
|
-
direction: ye,
|
|
1168
|
-
transition: A,
|
|
1169
|
-
titleMarginTop: U,
|
|
1170
|
-
subtitleMarginTop: F,
|
|
1171
|
-
titleColor: O,
|
|
1172
|
-
subtitleColor: K,
|
|
1173
|
-
lightboxCounterColor: G,
|
|
1174
|
-
titleFontFamily: Ue,
|
|
1175
|
-
titleFontSettings: N,
|
|
1176
|
-
titleFontSize: X,
|
|
1177
|
-
titleLineHeight: W,
|
|
1178
|
-
titleLetterSpacing: de,
|
|
1179
|
-
titleWordSpacing: Z,
|
|
1180
|
-
titleTextAppearance: Oe,
|
|
1181
|
-
subtitleFontFamily: Ke,
|
|
1182
|
-
subtitleFontSettings: d,
|
|
1183
|
-
subtitleFontSize: We,
|
|
1184
|
-
subtitleLineHeight: c,
|
|
1185
|
-
subtitleLetterSpacing: ut,
|
|
1186
|
-
subtitleWordSpacing: b,
|
|
1187
|
-
subtitleTextAppearance: Te,
|
|
1188
|
-
lightboxCounterFontFamily: te,
|
|
1189
|
-
lightboxCounterFontSettings: q,
|
|
1190
|
-
lightboxCounterFontSize: ue,
|
|
1191
|
-
lightboxCounterLineHeight: Y,
|
|
1192
|
-
lightboxCounterLetterSpacing: Re,
|
|
1193
|
-
lightboxCounterWordSpacing: he,
|
|
1194
|
-
lightboxCounterTextAppearance: Le,
|
|
1195
|
-
closeIcon: we,
|
|
1196
|
-
closeIconMaxWidth: _e,
|
|
1197
|
-
closeIconColor: xe,
|
|
1198
|
-
closeIconHoverColor: ht,
|
|
1199
|
-
iconMarginRight: Ze,
|
|
1200
|
-
contentMarginTop: gt,
|
|
1201
|
-
showText: Je = "always",
|
|
1202
|
-
alignEntries: Qe = "off",
|
|
1203
|
-
align: Pe = "top"
|
|
1204
|
-
} = e, g = {
|
|
1205
|
-
fontSettings: {
|
|
1206
|
-
fontFamily: Ue,
|
|
1207
|
-
fontWeight: (N == null ? void 0 : N.fontWeight) ?? 400,
|
|
1208
|
-
fontStyle: (N == null ? void 0 : N.fontStyle) ?? "normal"
|
|
1209
|
-
},
|
|
1210
|
-
fontSize: X ?? 0.01,
|
|
1211
|
-
lineHeight: W,
|
|
1212
|
-
letterSpacing: de ?? 0,
|
|
1213
|
-
wordSpacing: Z ?? 0,
|
|
1214
|
-
textAppearance: Oe,
|
|
1215
|
-
color: O
|
|
1216
|
-
}, He = {
|
|
1217
|
-
...bt(St(g, i))
|
|
1218
|
-
}, et = {
|
|
1219
|
-
fontSettings: {
|
|
1220
|
-
fontFamily: Ke,
|
|
1221
|
-
fontWeight: (d == null ? void 0 : d.fontWeight) ?? 400,
|
|
1222
|
-
fontStyle: (d == null ? void 0 : d.fontStyle) ?? "normal"
|
|
1223
|
-
},
|
|
1224
|
-
fontSize: We ?? 0.01,
|
|
1225
|
-
lineHeight: c,
|
|
1226
|
-
letterSpacing: ut ?? 0,
|
|
1227
|
-
wordSpacing: b ?? 0,
|
|
1228
|
-
textAppearance: Te,
|
|
1229
|
-
color: K
|
|
1230
|
-
}, x = {
|
|
1231
|
-
...bt(St(et, i))
|
|
1232
|
-
}, ge = {
|
|
1233
|
-
fontSettings: {
|
|
1234
|
-
fontFamily: te,
|
|
1235
|
-
fontWeight: (q == null ? void 0 : q.fontWeight) ?? 400,
|
|
1236
|
-
fontStyle: (q == null ? void 0 : q.fontStyle) ?? "normal"
|
|
1237
|
-
},
|
|
1238
|
-
fontSize: ue ?? 0.01,
|
|
1239
|
-
lineHeight: Y,
|
|
1240
|
-
letterSpacing: Re ?? 0,
|
|
1241
|
-
wordSpacing: he ?? 0,
|
|
1242
|
-
textAppearance: Le,
|
|
1243
|
-
color: G
|
|
1244
|
-
}, tt = {
|
|
1245
|
-
...bt(St(ge, i)),
|
|
1246
|
-
...It(ue, Y, o, i)
|
|
1247
|
-
}, ie = Ct(
|
|
1248
|
-
X,
|
|
1249
|
-
W,
|
|
1250
|
-
`${o}-item-title`,
|
|
1251
|
-
`${o}-text-tight-leading`
|
|
1252
|
-
), ne = Ct(
|
|
1253
|
-
We,
|
|
1254
|
-
c,
|
|
1255
|
-
`${o}-item-subtitle`,
|
|
1256
|
-
`${o}-text-tight-leading`
|
|
1257
|
-
), Ne = It(X, W, o, i), ve = It(We, c, o, i), it = Ct(
|
|
1258
|
-
ue,
|
|
1259
|
-
Y,
|
|
1260
|
-
`${o}-lightbox-counter`,
|
|
1261
|
-
`${o}-text-tight-leading`
|
|
1262
|
-
), J = ii(o, {
|
|
1263
|
-
titleColor: O,
|
|
1264
|
-
subtitleColor: K,
|
|
1265
|
-
lightboxCounterColor: G
|
|
1266
|
-
}, Ni, zi), ft = `${v && v !== "default" ? `${o}-state-${v}` : ""}${Je === "on hover" && (!i || s) ? ` ${o}-show-text-hover` : ""}`.trim(), u = ke === 0 ? 1 / 0 : ke, re = (t ?? []).slice(0, u), $t = Rt(
|
|
1267
|
-
() => M === "on" ? $i(re) : [],
|
|
1268
|
-
[re, M]
|
|
1269
|
-
), be = P.entryWidth ?? 0.2, ze = (L == null ? void 0 : L.display) === "cover", yt = (L == null ? void 0 : L.ratioValue) ?? "1:1", nt = (L == null ? void 0 : L.reversed) ?? !1, [rt, Ve] = yt.split(":").map(Number), oe = `${nt ? Ve : rt} / ${nt ? rt : Ve}`, le = P.columnsCount, Se = m(be ?? 0, i), Ge = Se, r = !ze && Fe !== "off", a = re.length % le || le, y = a < le && re.length > 0, D = re.length - a, se = y ? Math.floor((le - a) / 2) + 1 : 1, ae = Ee ? m(Ee, i) : void 0, Me = {
|
|
1270
|
-
width: Ge,
|
|
1271
|
-
...ze ? { aspectRatio: oe, height: "auto", overflow: "hidden" } : { height: "auto" },
|
|
1272
|
-
...ae ? { borderRadius: ae, overflow: "hidden" } : {}
|
|
1273
|
-
}, w = `${o}-item-image-wrapper${r ? ` ${o}-item-image-wrapper-fit-slider` : ""}`.trim(), f = R === "d" || R === "e" || R === "f", S = Qe === "on", _ = `calc(${m(be ?? 0, i)} * (${ee} / 100))`, H = m(be * ee / 100, i), Lt = ze ? {
|
|
1274
|
-
objectFit: "cover",
|
|
1275
|
-
pointerEvents: "auto",
|
|
1276
|
-
width: "100%",
|
|
1277
|
-
height: "100%",
|
|
1278
|
-
maxWidth: "100%",
|
|
1279
|
-
...ae ? { borderRadius: ae } : {}
|
|
1280
|
-
} : {
|
|
1281
|
-
objectFit: "contain",
|
|
1282
|
-
pointerEvents: "auto",
|
|
1283
|
-
width: "auto",
|
|
1284
|
-
height: "auto",
|
|
1285
|
-
maxWidth: "100%",
|
|
1286
|
-
...ae ? { borderRadius: ae } : {}
|
|
1287
|
-
}, [qt, Yt] = k(0), ot = $(null), Et = A === "fade" || ye === "horizontal" ? "ltr" : ye === "vertical" ? "ttb" : "ltr";
|
|
1288
|
-
B(() => {
|
|
1289
|
-
const h = ot.current;
|
|
1290
|
-
if (!h) return;
|
|
1291
|
-
const I = new ResizeObserver((j) => {
|
|
1292
|
-
Yt(Math.round(j[0].contentRect.width));
|
|
1293
|
-
});
|
|
1294
|
-
return I.observe(h), () => I.disconnect();
|
|
1295
|
-
}, []);
|
|
1296
|
-
const Ut = (() => {
|
|
1297
|
-
const h = { ...J }, I = ot.current ? getComputedStyle(ot.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
1298
|
-
return I && (h["--cntrl-article-width"] = I), h;
|
|
1299
|
-
})(), [wt, xt] = k(!1), [lt, Kt] = k([]), [Zt, vt] = k(0), _t = M === "on" && (!i || s), Nt = (h, I) => {
|
|
1300
|
-
i && !s || M !== "off" && (Kt(h), vt(I), xt(!0));
|
|
1301
|
-
};
|
|
1302
|
-
B(() => {
|
|
1303
|
-
if (!wt || M !== "on" || typeof document > "u") return;
|
|
1304
|
-
const h = document.body.style.overflow;
|
|
1305
|
-
return document.body.style.overflow = "hidden", () => {
|
|
1306
|
-
document.body.style.overflow = h;
|
|
1307
|
-
};
|
|
1308
|
-
}, [wt, M]), B(() => {
|
|
1309
|
-
!i || s || xt(!1);
|
|
1310
|
-
}, [i, s]);
|
|
1311
|
-
const Jt = Rt(() => si(o), [o]);
|
|
1312
|
-
return /* @__PURE__ */ p(V, { children: [
|
|
1313
|
-
/* @__PURE__ */ n("style", { dangerouslySetInnerHTML: { __html: Jt } }),
|
|
1314
|
-
M === "on" && /* @__PURE__ */ n(yi, { mediaList: $t }),
|
|
1315
|
-
/* @__PURE__ */ n("div", { style: J, children: /* @__PURE__ */ n(
|
|
1316
|
-
"div",
|
|
1317
|
-
{
|
|
1318
|
-
ref: ot,
|
|
1319
|
-
className: `${o}-wrapper ${o}-type-${R}${S ? ` ${o}-align-entries` : ""} ${o}-image-align-${Pe} ${ft}`.trim(),
|
|
1320
|
-
style: {
|
|
1321
|
-
gridTemplateColumns: `repeat(${le}, ${Se})`,
|
|
1322
|
-
rowGap: S ? 0 : m(fe ?? 0, i),
|
|
1323
|
-
columnGap: m(P.horizontalGap ?? 0, i),
|
|
1324
|
-
width: m(P.wrapperWidth ?? 0, i),
|
|
1325
|
-
...S ? { [`--${o}-align-entries-row-gap`]: m(fe ?? 0, i) } : {}
|
|
1326
|
-
},
|
|
1327
|
-
children: re.map((h, I) => {
|
|
1328
|
-
var Wt;
|
|
1329
|
-
const j = Ht(h.title), Q = Ht(h.subtitle), Ce = (((Wt = h.link) == null ? void 0 : Wt.length) ?? 0) > 0 && M === "off" ? h.link : void 0, Qt = Math.floor(I / le) === Math.ceil(re.length / le) - 1, st = y && I >= D ? `${se + (I - D)}` : void 0, zt = f ? /* @__PURE__ */ p("div", { className: `${o}-item-text-block`, children: [
|
|
1330
|
-
j && /* @__PURE__ */ n("p", { className: ie, style: { width: _, ...He, ...Ne }, children: h.title }),
|
|
1331
|
-
j && /* @__PURE__ */ n(
|
|
1332
|
-
"div",
|
|
1333
|
-
{
|
|
1334
|
-
"data-controls": l ? "titleMarginTop" : void 0,
|
|
1335
|
-
className: l ? `${o}-control` : void 0,
|
|
1336
|
-
style: {
|
|
1337
|
-
height: m(U ?? 0, i),
|
|
1338
|
-
width: H
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
),
|
|
1342
|
-
Q && /* @__PURE__ */ n("p", { className: ne, style: { width: _, ...x, ...ve }, children: h.subtitle }),
|
|
1343
|
-
Q && /* @__PURE__ */ n(
|
|
1344
|
-
"div",
|
|
1345
|
-
{
|
|
1346
|
-
"data-controls": l ? "subtitleMarginTop" : void 0,
|
|
1347
|
-
className: l ? `${o}-control` : void 0,
|
|
1348
|
-
style: {
|
|
1349
|
-
height: m(F ?? 0, i),
|
|
1350
|
-
width: H
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
)
|
|
1354
|
-
] }) : null, Mt = S ? /* @__PURE__ */ p("div", { className: `${o}-item-title-row`, children: [
|
|
1355
|
-
!f && /* @__PURE__ */ n(
|
|
1356
|
-
"div",
|
|
1357
|
-
{
|
|
1358
|
-
"data-controls": l && j ? "titleMarginTop" : void 0,
|
|
1359
|
-
className: l && j ? `${o}-control` : void 0,
|
|
1360
|
-
style: {
|
|
1361
|
-
height: j ? m(U ?? 0, i) : 0,
|
|
1362
|
-
width: H
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
),
|
|
1366
|
-
j && /* @__PURE__ */ n("p", { className: ie, style: { width: _, ...He, ...Ne }, children: h.title }),
|
|
1367
|
-
f && j && /* @__PURE__ */ n(
|
|
1368
|
-
"div",
|
|
1369
|
-
{
|
|
1370
|
-
"data-controls": l ? "titleMarginTop" : void 0,
|
|
1371
|
-
className: l ? `${o}-control` : void 0,
|
|
1372
|
-
style: {
|
|
1373
|
-
height: m(U ?? 0, i),
|
|
1374
|
-
width: H
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
)
|
|
1378
|
-
] }) : null, At = S ? /* @__PURE__ */ p("div", { className: `${o}-item-subtitle-row`, children: [
|
|
1379
|
-
!f && /* @__PURE__ */ n(
|
|
1380
|
-
"div",
|
|
1381
|
-
{
|
|
1382
|
-
"data-controls": l && Q ? "subtitleMarginTop" : void 0,
|
|
1383
|
-
className: l && Q ? `${o}-control` : void 0,
|
|
1384
|
-
style: {
|
|
1385
|
-
height: Q ? m(F ?? 0, i) : 0,
|
|
1386
|
-
width: H
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
),
|
|
1390
|
-
Q && /* @__PURE__ */ n("p", { className: ne, style: { width: _, ...x, ...ve }, children: h.subtitle }),
|
|
1391
|
-
f && Q && /* @__PURE__ */ n(
|
|
1392
|
-
"div",
|
|
1393
|
-
{
|
|
1394
|
-
"data-controls": l ? "subtitleMarginTop" : void 0,
|
|
1395
|
-
className: l ? `${o}-control` : void 0,
|
|
1396
|
-
style: {
|
|
1397
|
-
height: m(F ?? 0, i),
|
|
1398
|
-
width: H
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
)
|
|
1402
|
-
] }) : null, Ft = Ce ? /* @__PURE__ */ p("a", { href: Ce, target: "_blank", className: `${o}-item-text-link`, children: [
|
|
1403
|
-
Mt,
|
|
1404
|
-
At
|
|
1405
|
-
] }) : /* @__PURE__ */ p(V, { children: [
|
|
1406
|
-
Mt,
|
|
1407
|
-
At
|
|
1408
|
-
] }), Xe = Xt(h.gallery), at = Xe.filter((C) => C.lightboxMedia).map((C) => C.lightboxMedia), ct = /* @__PURE__ */ n(bi, { className: w, style: Me, children: Xe.length === 0 ? null : Fe === "off" ? (() => {
|
|
1409
|
-
const { displayMedia: C, lightboxMedia: qe } = Xe[0], Ye = qe ? at.findIndex((dt) => dt.assetId === qe.assetId) : -1;
|
|
1410
|
-
return /* @__PURE__ */ n(
|
|
1411
|
-
jt,
|
|
1412
|
-
{
|
|
1413
|
-
media: C,
|
|
1414
|
-
className: `${o}-item-${Ie(C) ? "video" : "image"}`.trim(),
|
|
1415
|
-
style: Lt,
|
|
1416
|
-
onMediaClick: _t && Ye >= 0 ? () => Nt(at, Ye) : void 0
|
|
1417
|
-
}
|
|
1418
|
-
);
|
|
1419
|
-
})() : /* @__PURE__ */ p(V, { children: [
|
|
1420
|
-
r && /* @__PURE__ */ n("div", { className: `${o}-item-image-wrapper-sizer`, "aria-hidden": "true", children: Xe.map(({ displayMedia: C }) => Ie(C) ? /* @__PURE__ */ n(Gt, { src: C.assetId, nearPreload: "metadata", muted: !0, playsInline: !0 }, `sizer-${C.assetId}`) : /* @__PURE__ */ n("img", { src: C.assetId, alt: "" }, `sizer-${C.assetId}`)) }),
|
|
1421
|
-
/* @__PURE__ */ n(
|
|
1422
|
-
ei,
|
|
1423
|
-
{
|
|
1424
|
-
className: `${o}-item-slider`,
|
|
1425
|
-
options: {
|
|
1426
|
-
arrows: !1,
|
|
1427
|
-
pagination: !1,
|
|
1428
|
-
drag: !1,
|
|
1429
|
-
perPage: 1,
|
|
1430
|
-
autoplay: !0,
|
|
1431
|
-
interval: $e * 1e3,
|
|
1432
|
-
width: "100%",
|
|
1433
|
-
height: "100%",
|
|
1434
|
-
speed: ui,
|
|
1435
|
-
type: A === "fade" ? "fade" : "loop",
|
|
1436
|
-
rewind: A === "fade",
|
|
1437
|
-
pauseOnHover: !1,
|
|
1438
|
-
pauseOnFocus: !1,
|
|
1439
|
-
direction: Et
|
|
1440
|
-
},
|
|
1441
|
-
onMoved: (C) => {
|
|
1442
|
-
ye !== "random" || A === "fade" || di(C);
|
|
1443
|
-
},
|
|
1444
|
-
children: Xe.map(({ displayMedia: C, lightboxMedia: qe }, Ye) => {
|
|
1445
|
-
const dt = qe ? at.findIndex((Pt) => Pt.assetId === qe.assetId) : -1;
|
|
1446
|
-
return /* @__PURE__ */ n(ti, { "data-slide-index": Ye, children: /* @__PURE__ */ n(
|
|
1447
|
-
jt,
|
|
1448
|
-
{
|
|
1449
|
-
media: C,
|
|
1450
|
-
className: `${o}-item-${Ie(C) ? "video" : "image"}`.trim(),
|
|
1451
|
-
style: Lt,
|
|
1452
|
-
isSplideSlide: !0,
|
|
1453
|
-
onMediaClick: _t && dt >= 0 ? () => Nt(at, dt) : void 0
|
|
1454
|
-
}
|
|
1455
|
-
) }, Ye);
|
|
1456
|
-
})
|
|
1457
|
-
},
|
|
1458
|
-
`${A}-${be}-${ye}-${$e}-${qt}-${z}`
|
|
1459
|
-
)
|
|
1460
|
-
] }) }), Ot = f ? null : /* @__PURE__ */ p(V, { children: [
|
|
1461
|
-
/* @__PURE__ */ n(
|
|
1462
|
-
"div",
|
|
1463
|
-
{
|
|
1464
|
-
"data-controls": l && j ? "titleMarginTop" : void 0,
|
|
1465
|
-
className: l && j ? `${o}-control` : void 0,
|
|
1466
|
-
style: {
|
|
1467
|
-
height: j ? m(U ?? 0, i) : 0,
|
|
1468
|
-
width: H
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
),
|
|
1472
|
-
/* @__PURE__ */ n(
|
|
1473
|
-
"p",
|
|
1474
|
-
{
|
|
1475
|
-
className: ie,
|
|
1476
|
-
style: { width: _, ...He, ...Ne },
|
|
1477
|
-
children: h.title
|
|
1478
|
-
}
|
|
1479
|
-
),
|
|
1480
|
-
/* @__PURE__ */ n(
|
|
1481
|
-
"div",
|
|
1482
|
-
{
|
|
1483
|
-
"data-controls": l && Q ? "subtitleMarginTop" : void 0,
|
|
1484
|
-
className: l && Q ? `${o}-control` : void 0,
|
|
1485
|
-
style: {
|
|
1486
|
-
height: Q ? m(F ?? 0, i) : 0,
|
|
1487
|
-
width: H
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
),
|
|
1491
|
-
/* @__PURE__ */ n(
|
|
1492
|
-
"p",
|
|
1493
|
-
{
|
|
1494
|
-
className: ne,
|
|
1495
|
-
style: { width: _, ...x, ...ve },
|
|
1496
|
-
children: h.subtitle
|
|
1497
|
-
}
|
|
1498
|
-
)
|
|
1499
|
-
] });
|
|
1500
|
-
return /* @__PURE__ */ n(
|
|
1501
|
-
"div",
|
|
1502
|
-
{
|
|
1503
|
-
className: `${o}-item`.trim(),
|
|
1504
|
-
style: st && !S ? { gridColumn: st } : void 0,
|
|
1505
|
-
children: /* @__PURE__ */ n(
|
|
1506
|
-
"div",
|
|
1507
|
-
{
|
|
1508
|
-
className: `${l ? `${o}-item-inner` : `${o}-item-inner-hidden`}${S && Qt ? ` ${o}-item-inner-last-row` : ""}`.trim(),
|
|
1509
|
-
style: {
|
|
1510
|
-
width: (ee ?? 0) > 100 ? `calc(${Se} * (${ee} / 100))` : Se,
|
|
1511
|
-
...st && S ? { gridColumn: st } : {}
|
|
1512
|
-
},
|
|
1513
|
-
children: S ? /* @__PURE__ */ n(V, { children: f ? /* @__PURE__ */ p(V, { children: [
|
|
1514
|
-
Ft,
|
|
1515
|
-
/* @__PURE__ */ n("a", { href: Ce, target: "_blank", className: `${o}-item-image-link`, children: ct })
|
|
1516
|
-
] }) : /* @__PURE__ */ p(V, { children: [
|
|
1517
|
-
/* @__PURE__ */ n("a", { href: Ce, target: "_blank", className: `${o}-item-image-link`, children: ct }),
|
|
1518
|
-
Ft
|
|
1519
|
-
] }) }) : Ce ? /* @__PURE__ */ p(V, { children: [
|
|
1520
|
-
/* @__PURE__ */ p("a", { href: Ce, target: "_blank", className: `${o}-item-image-link`, children: [
|
|
1521
|
-
zt,
|
|
1522
|
-
ct
|
|
1523
|
-
] }),
|
|
1524
|
-
!f && /* @__PURE__ */ n("a", { href: Ce, target: "_blank", className: `${o}-item-text-link`, children: Ot })
|
|
1525
|
-
] }) : /* @__PURE__ */ p(V, { children: [
|
|
1526
|
-
zt,
|
|
1527
|
-
ct,
|
|
1528
|
-
Ot
|
|
1529
|
-
] })
|
|
1530
|
-
}
|
|
1531
|
-
)
|
|
1532
|
-
},
|
|
1533
|
-
I
|
|
1534
|
-
);
|
|
1535
|
-
})
|
|
1536
|
-
}
|
|
1537
|
-
) }),
|
|
1538
|
-
(!i || s) && wt && typeof document < "u" && M === "on" && (() => {
|
|
1539
|
-
const h = (pe ? document.getElementById(pe) : null) ?? document.body;
|
|
1540
|
-
return ri(
|
|
1541
|
-
/* @__PURE__ */ n("div", { style: Ut, "data-selection": "none", children: /* @__PURE__ */ n(
|
|
1542
|
-
Li,
|
|
1543
|
-
{
|
|
1544
|
-
prefix: o,
|
|
1545
|
-
items: lt,
|
|
1546
|
-
index: Zt,
|
|
1547
|
-
imageDisplay: _i(Ae),
|
|
1548
|
-
isEditor: i,
|
|
1549
|
-
isPreviewMode: s,
|
|
1550
|
-
isEditMode: l,
|
|
1551
|
-
closeIcon: we,
|
|
1552
|
-
closeIconMaxWidth: _e,
|
|
1553
|
-
closeIconColor: xe,
|
|
1554
|
-
closeIconHoverColor: ht,
|
|
1555
|
-
iconMarginRight: Ze,
|
|
1556
|
-
contentMarginTop: gt,
|
|
1557
|
-
onClose: () => xt(!1),
|
|
1558
|
-
onPrev: () => vt((I) => (I - 1 + lt.length) % lt.length),
|
|
1559
|
-
onNext: () => vt((I) => (I + 1) % lt.length),
|
|
1560
|
-
counterClassName: it,
|
|
1561
|
-
counterStyle: tt
|
|
1562
|
-
}
|
|
1563
|
-
) }),
|
|
1564
|
-
h
|
|
1565
|
-
);
|
|
1566
|
-
})()
|
|
1567
|
-
] });
|
|
1568
|
-
}
|
|
1569
|
-
const Ni = {
|
|
1570
|
-
titleColor: "title-color",
|
|
1571
|
-
subtitleColor: "subtitle-color",
|
|
1572
|
-
lightboxCounterColor: "lightbox-counter-color"
|
|
1573
|
-
}, zi = ["hover", "focus", "filled", "success", "error"];
|
|
1574
|
-
export {
|
|
1575
|
-
Xi as Grid
|
|
1576
|
-
};
|