@cntrl-site/components 1.0.106-alpha.0 → 1.0.107-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ClickGallerie-CYQMgrIr.js +36 -0
- package/dist/ClickGallerie-o2U6oyOF.mjs +272 -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/PretextComponent-Dnbenstn.js +1 -0
- package/dist/{PretextComponent-j-OsRZTx.mjs → PretextComponent-OygSO3fr.mjs} +312 -269
- 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-BRmbflgg.mjs} +15 -15
- package/dist/components-nvbH4l0S.js +1 -0
- package/dist/content/postFieldBindings.d.ts +29 -0
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +16 -16
- 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 +312 -212
- package/dist/sources.mjs +312 -212
- 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
|
@@ -0,0 +1,1700 @@
|
|
|
1
|
+
import { jsxs as w, Fragment as xt, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as Te, useRef as R, useState as _, useCallback as yt, useEffect as q, useLayoutEffect as se } from "react";
|
|
3
|
+
import { createPortal as Je } from "react-dom";
|
|
4
|
+
import { s as st } from "./scalingValue-C9JH5L6O.mjs";
|
|
5
|
+
import { b as Qe } from "./buildColorVars-CLyWQm5K.mjs";
|
|
6
|
+
import { u as Pe } from "./useScopedStyles-DhBG3557.mjs";
|
|
7
|
+
import { i as ae, E as Ae, g as tn, a as en } from "./EmbedMediaFrame-DwHeOAy5.mjs";
|
|
8
|
+
import { o as ne, t as oe } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
9
|
+
import { S as nn } from "./SvgImage-B5mR9y6q.mjs";
|
|
10
|
+
import { L as on } from "./LazyVideo-CdAWymKO.mjs";
|
|
11
|
+
const Tt = 300 / 1440, rn = 8 / 1440, ct = 4e-3;
|
|
12
|
+
function ln(t) {
|
|
13
|
+
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
14
|
+
}
|
|
15
|
+
function ie(t, e, n, r) {
|
|
16
|
+
return e !== void 0 && e < (t ?? 0.01) ? `${n} ${r}` : n;
|
|
17
|
+
}
|
|
18
|
+
function re(t, e, n, r, l = "title-leading-gap") {
|
|
19
|
+
const c = t ?? 0.01;
|
|
20
|
+
return e === void 0 || e >= c ? {} : {
|
|
21
|
+
[`--${n}-${l}`]: st((c - e) / 2, r)
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function an(t) {
|
|
25
|
+
return `
|
|
26
|
+
.${t}-wrapper {
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
position: relative;
|
|
31
|
+
width: 100%;
|
|
32
|
+
min-height: ${ln(48)};
|
|
33
|
+
}
|
|
34
|
+
.${t}-single-title-layer {
|
|
35
|
+
position: absolute;
|
|
36
|
+
inset: 0;
|
|
37
|
+
z-index: 2;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
justify-content: flex-start;
|
|
42
|
+
}
|
|
43
|
+
.${t}-single-title {
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
.${t}-item {
|
|
47
|
+
position: relative;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
.${t}-item-a {
|
|
53
|
+
flex-direction: row;
|
|
54
|
+
}
|
|
55
|
+
.${t}-item-b {
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
}
|
|
58
|
+
.${t}-item-c {
|
|
59
|
+
flex-direction: row-reverse;
|
|
60
|
+
}
|
|
61
|
+
.${t}-title {
|
|
62
|
+
align-self: flex-start;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
min-width: 0;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
position: sticky;
|
|
68
|
+
z-index: 2;
|
|
69
|
+
overflow: visible;
|
|
70
|
+
color: var(--${t}-title-color);
|
|
71
|
+
}
|
|
72
|
+
.${t}-title-text,
|
|
73
|
+
.${t}-description-text {
|
|
74
|
+
display: block;
|
|
75
|
+
width: 100%;
|
|
76
|
+
white-space: pre-wrap;
|
|
77
|
+
overflow-wrap: anywhere;
|
|
78
|
+
word-break: break-word;
|
|
79
|
+
}
|
|
80
|
+
.${t}-description-text {
|
|
81
|
+
color: var(--${t}-description-color);
|
|
82
|
+
}
|
|
83
|
+
.${t}-title-texts {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
width: 100%;
|
|
87
|
+
min-width: 0;
|
|
88
|
+
}
|
|
89
|
+
.${t}-title-texts-gap {
|
|
90
|
+
position: relative;
|
|
91
|
+
width: 100%;
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
}
|
|
94
|
+
.${t}-title-text-inner {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
outline: 1px solid #FF5C02;
|
|
100
|
+
}
|
|
101
|
+
.${t}-title-text-inner-hidden {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
flex-shrink: 0;
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
}
|
|
107
|
+
.${t}-title-text-stack {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
flex-shrink: 0;
|
|
111
|
+
min-width: 0;
|
|
112
|
+
position: relative;
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
}
|
|
115
|
+
.${t}-item-a .${t}-title-v-top .${t}-title-text-stack,
|
|
116
|
+
.${t}-item-b .${t}-title-v-top .${t}-title-text-stack,
|
|
117
|
+
.${t}-item-c .${t}-title-v-top .${t}-title-text-stack,
|
|
118
|
+
.${t}-single-title-layer .${t}-title-v-top .${t}-title-text-stack {
|
|
119
|
+
padding-top: var(--${t}-title-top-padding, 0);
|
|
120
|
+
}
|
|
121
|
+
.${t}-item-a .${t}-title-v-bottom .${t}-title-text-stack,
|
|
122
|
+
.${t}-item-b .${t}-title-v-bottom .${t}-title-text-stack,
|
|
123
|
+
.${t}-item-c .${t}-title-v-bottom .${t}-title-text-stack,
|
|
124
|
+
.${t}-single-title-layer .${t}-title-v-bottom .${t}-title-text-stack {
|
|
125
|
+
padding-bottom: var(--${t}-title-bottom-padding, 0);
|
|
126
|
+
}
|
|
127
|
+
.${t}-title-v-center {
|
|
128
|
+
top: calc(var(--cntrl-article-top, 0px) + var(--cntrl-viewport-height, 100vh) / 2 - (var(--${t}-title-height, 0px) / 2));
|
|
129
|
+
align-items: center;
|
|
130
|
+
}
|
|
131
|
+
.${t}-title-v-top {
|
|
132
|
+
top: var(--cntrl-article-top, 0px);
|
|
133
|
+
bottom: auto;
|
|
134
|
+
align-self: flex-start;
|
|
135
|
+
}
|
|
136
|
+
.${t}-title-v-bottom {
|
|
137
|
+
top: calc(var(--cntrl-article-top, 0px) + var(--cntrl-viewport-height, 100vh) - var(--${t}-title-height, 0px));
|
|
138
|
+
align-items: center;
|
|
139
|
+
}
|
|
140
|
+
.${t}-title-h-left {
|
|
141
|
+
justify-content: flex-start;
|
|
142
|
+
}
|
|
143
|
+
.${t}-item-a .${t}-title-h-left,
|
|
144
|
+
.${t}-item-b .${t}-title-h-left,
|
|
145
|
+
.${t}-item-c .${t}-title-h-left,
|
|
146
|
+
.${t}-single-title-layer .${t}-title-h-left {
|
|
147
|
+
padding-left: var(--${t}-title-left-padding, 0);
|
|
148
|
+
}
|
|
149
|
+
.${t}-title-h-center {
|
|
150
|
+
justify-content: center;
|
|
151
|
+
}
|
|
152
|
+
.${t}-title-h-right {
|
|
153
|
+
justify-content: flex-end;
|
|
154
|
+
}
|
|
155
|
+
.${t}-item-a .${t}-title-h-right,
|
|
156
|
+
.${t}-item-b .${t}-title-h-right,
|
|
157
|
+
.${t}-item-c .${t}-title-h-right,
|
|
158
|
+
.${t}-single-title-layer .${t}-title-h-right {
|
|
159
|
+
padding-right: var(--${t}-title-right-padding, 0);
|
|
160
|
+
}
|
|
161
|
+
.${t}-item-a .${t}-title,
|
|
162
|
+
.${t}-item-c .${t}-title {
|
|
163
|
+
flex: 1;
|
|
164
|
+
width: auto;
|
|
165
|
+
min-width: 0;
|
|
166
|
+
overflow: visible;
|
|
167
|
+
}
|
|
168
|
+
.${t}-item-b .${t}-title,
|
|
169
|
+
.${t}-single-title-layer .${t}-title {
|
|
170
|
+
width: 100%;
|
|
171
|
+
pointer-events: none;
|
|
172
|
+
}
|
|
173
|
+
.${t}-gallery {
|
|
174
|
+
display: flex;
|
|
175
|
+
flex-direction: column;
|
|
176
|
+
align-items: center;
|
|
177
|
+
flex-shrink: 0;
|
|
178
|
+
box-sizing: border-box;
|
|
179
|
+
}
|
|
180
|
+
.${t}-item-b .${t}-gallery {
|
|
181
|
+
display: grid;
|
|
182
|
+
width: 100%;
|
|
183
|
+
}
|
|
184
|
+
.${t}-item-b .${t}-gallery-media {
|
|
185
|
+
grid-area: 1 / 1;
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
align-items: center;
|
|
189
|
+
width: 100%;
|
|
190
|
+
min-width: 0;
|
|
191
|
+
}
|
|
192
|
+
.${t}-item-b .${t}-title-layer {
|
|
193
|
+
grid-area: 1 / 1;
|
|
194
|
+
align-self: stretch;
|
|
195
|
+
width: 100%;
|
|
196
|
+
min-width: 0;
|
|
197
|
+
z-index: 2;
|
|
198
|
+
overflow: visible;
|
|
199
|
+
pointer-events: none;
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-direction: column;
|
|
202
|
+
justify-content: flex-start;
|
|
203
|
+
}
|
|
204
|
+
.${t}-gallery-item {
|
|
205
|
+
position: relative;
|
|
206
|
+
display: flex;
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
align-items: center;
|
|
209
|
+
width: 100%;
|
|
210
|
+
}
|
|
211
|
+
.${t}-gallery-image,
|
|
212
|
+
.${t}-gallery-video {
|
|
213
|
+
display: block;
|
|
214
|
+
max-width: 100%;
|
|
215
|
+
height: auto;
|
|
216
|
+
}
|
|
217
|
+
.${t}-gallery-controls {
|
|
218
|
+
position: relative;
|
|
219
|
+
display: flex;
|
|
220
|
+
flex-shrink: 0;
|
|
221
|
+
box-sizing: border-box;
|
|
222
|
+
z-index: 1;
|
|
223
|
+
}
|
|
224
|
+
.${t}-gallery-edge-spacer {
|
|
225
|
+
flex-shrink: 0;
|
|
226
|
+
}
|
|
227
|
+
.${t}-control-anchor {
|
|
228
|
+
position: absolute;
|
|
229
|
+
pointer-events: none;
|
|
230
|
+
z-index: 2;
|
|
231
|
+
}
|
|
232
|
+
.${t}-padding-handle {
|
|
233
|
+
width: 100%;
|
|
234
|
+
flex-shrink: 0;
|
|
235
|
+
background: transparent;
|
|
236
|
+
}
|
|
237
|
+
.${t}-text-tight-leading {
|
|
238
|
+
flex-shrink: 0;
|
|
239
|
+
padding-top: var(--${t}-title-leading-gap, 0);
|
|
240
|
+
padding-bottom: var(--${t}-title-leading-gap, 0);
|
|
241
|
+
}
|
|
242
|
+
.${t}-description-tight-leading {
|
|
243
|
+
flex-shrink: 0;
|
|
244
|
+
padding-top: var(--${t}-description-leading-gap, 0);
|
|
245
|
+
padding-bottom: var(--${t}-description-leading-gap, 0);
|
|
246
|
+
}
|
|
247
|
+
.${t}-lightbox-counter {
|
|
248
|
+
margin: 0;
|
|
249
|
+
color: var(--${t}-lightbox-counter-color);
|
|
250
|
+
}
|
|
251
|
+
.${t}-lightbox {
|
|
252
|
+
position: fixed;
|
|
253
|
+
inset: 0;
|
|
254
|
+
z-index: 9997;
|
|
255
|
+
overscroll-behavior: none;
|
|
256
|
+
overflow: hidden;
|
|
257
|
+
}
|
|
258
|
+
.${t}-lightbox-editor {
|
|
259
|
+
inset: auto;
|
|
260
|
+
top: var(--cntrl-article-top, 0);
|
|
261
|
+
left: var(--cntrl-article-left, 0);
|
|
262
|
+
width: var(--cntrl-article-width, 100vw) !important;
|
|
263
|
+
height: var(--cntrl-viewport-height, 100vh) !important;
|
|
264
|
+
}
|
|
265
|
+
.${t}-close-icon {
|
|
266
|
+
position: relative;
|
|
267
|
+
flex-shrink: 0;
|
|
268
|
+
pointer-events: auto;
|
|
269
|
+
z-index: 2;
|
|
270
|
+
display: flex;
|
|
271
|
+
align-items: center;
|
|
272
|
+
justify-content: center;
|
|
273
|
+
border: none;
|
|
274
|
+
background-color: transparent;
|
|
275
|
+
padding: 0;
|
|
276
|
+
}
|
|
277
|
+
.${t}-close-icon-inner {
|
|
278
|
+
all: unset;
|
|
279
|
+
position: relative;
|
|
280
|
+
cursor: pointer;
|
|
281
|
+
width: 100%;
|
|
282
|
+
height: 100%;
|
|
283
|
+
pointer-events: auto;
|
|
284
|
+
}
|
|
285
|
+
.${t}-close-icon-img {
|
|
286
|
+
position: absolute;
|
|
287
|
+
top: 50%;
|
|
288
|
+
left: 50%;
|
|
289
|
+
transform: translate(-50%, -50%);
|
|
290
|
+
}
|
|
291
|
+
`;
|
|
292
|
+
}
|
|
293
|
+
const De = {
|
|
294
|
+
"left-top": { horizontal: "left", vertical: "top" },
|
|
295
|
+
"top-center": { horizontal: "center", vertical: "top" },
|
|
296
|
+
"top-right": { horizontal: "right", vertical: "top" },
|
|
297
|
+
"left-center": { horizontal: "left", vertical: "center" },
|
|
298
|
+
center: { horizontal: "center", vertical: "center" },
|
|
299
|
+
"right-center": { horizontal: "right", vertical: "center" },
|
|
300
|
+
"left-bottom": { horizontal: "left", vertical: "bottom" },
|
|
301
|
+
"bottom-center": { horizontal: "center", vertical: "bottom" },
|
|
302
|
+
"right-bottom": { horizontal: "right", vertical: "bottom" }
|
|
303
|
+
};
|
|
304
|
+
function cn(t) {
|
|
305
|
+
return t in De;
|
|
306
|
+
}
|
|
307
|
+
function sn(t) {
|
|
308
|
+
if (t && cn(t))
|
|
309
|
+
return t;
|
|
310
|
+
switch (t) {
|
|
311
|
+
case "center-top":
|
|
312
|
+
return "top-center";
|
|
313
|
+
case "right-top":
|
|
314
|
+
return "top-right";
|
|
315
|
+
case "top-left":
|
|
316
|
+
return "left-top";
|
|
317
|
+
case "center-bottom":
|
|
318
|
+
return "bottom-center";
|
|
319
|
+
case "bottom-left":
|
|
320
|
+
return "left-bottom";
|
|
321
|
+
case "bottom-right":
|
|
322
|
+
return "right-bottom";
|
|
323
|
+
case "center-center":
|
|
324
|
+
return "center";
|
|
325
|
+
case "left":
|
|
326
|
+
return "left-center";
|
|
327
|
+
case "right":
|
|
328
|
+
return "right-center";
|
|
329
|
+
case "top":
|
|
330
|
+
return "left-top";
|
|
331
|
+
default:
|
|
332
|
+
return "center";
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
function de(t) {
|
|
336
|
+
return De[t];
|
|
337
|
+
}
|
|
338
|
+
const dn = "rgba(28,31,34,0.9)", at = 500, vt = "cubic-bezier(0.22, 1, 0.36, 1)", hn = 72, pn = 50, un = {
|
|
339
|
+
titleColor: "title-color",
|
|
340
|
+
descriptionColor: "description-color",
|
|
341
|
+
lightboxCounterColor: "lightbox-counter-color"
|
|
342
|
+
}, fn = [];
|
|
343
|
+
function gn(t) {
|
|
344
|
+
if (!Array.isArray(t) || t.length === 0) return !1;
|
|
345
|
+
const e = t[0];
|
|
346
|
+
return e !== null && typeof e == "object" && "media" in e && Array.isArray(e.media);
|
|
347
|
+
}
|
|
348
|
+
function mn(t) {
|
|
349
|
+
const [e, n] = t.media;
|
|
350
|
+
return n != null && n.assetId ? n : e != null && e.assetId ? e : null;
|
|
351
|
+
}
|
|
352
|
+
function vn(t) {
|
|
353
|
+
const [e] = t.media;
|
|
354
|
+
return e != null && e.assetId ? e : null;
|
|
355
|
+
}
|
|
356
|
+
function yn(t) {
|
|
357
|
+
if (!Array.isArray(t) || t.length === 0) return [];
|
|
358
|
+
if (gn(t)) {
|
|
359
|
+
const e = [];
|
|
360
|
+
for (const n of t) {
|
|
361
|
+
const r = mn(n);
|
|
362
|
+
if (!r) continue;
|
|
363
|
+
const l = vn(n);
|
|
364
|
+
e.push({
|
|
365
|
+
displayMedia: r,
|
|
366
|
+
lightboxMedia: l != null && l.assetId ? l : null
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
return e;
|
|
370
|
+
}
|
|
371
|
+
return t.filter((e) => e == null ? void 0 : e.assetId).map((e) => ({
|
|
372
|
+
displayMedia: e,
|
|
373
|
+
lightboxMedia: e
|
|
374
|
+
}));
|
|
375
|
+
}
|
|
376
|
+
function ce(t) {
|
|
377
|
+
return t.type === "video";
|
|
378
|
+
}
|
|
379
|
+
function xn(t) {
|
|
380
|
+
t.pause(), t.removeAttribute("src"), t.load();
|
|
381
|
+
}
|
|
382
|
+
function jt(t) {
|
|
383
|
+
const e = t.getBoundingClientRect();
|
|
384
|
+
return { width: e.width, height: e.height, left: e.left, top: e.top };
|
|
385
|
+
}
|
|
386
|
+
function $n(t) {
|
|
387
|
+
return t instanceof HTMLVideoElement ? { width: t.videoWidth, height: t.videoHeight } : { width: t.naturalWidth, height: t.naturalHeight };
|
|
388
|
+
}
|
|
389
|
+
const bn = 1140 / 1440;
|
|
390
|
+
function wn(t) {
|
|
391
|
+
return typeof t == "string" ? {
|
|
392
|
+
display: t.toLowerCase() === "cover" ? "cover" : "fit",
|
|
393
|
+
ratioValue: "2:3",
|
|
394
|
+
reversed: !1
|
|
395
|
+
} : {
|
|
396
|
+
display: (typeof (t == null ? void 0 : t.display) == "string" ? t.display.toLowerCase() : "") === "cover" ? "cover" : "fit",
|
|
397
|
+
ratioValue: (t == null ? void 0 : t.ratioValue) ?? "2:3",
|
|
398
|
+
reversed: (t == null ? void 0 : t.reversed) ?? !1
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
function Sn(t) {
|
|
402
|
+
const e = t.ratioValue ?? "1:1", n = t.reversed ?? !1, [r, l] = e.split(":").map(Number);
|
|
403
|
+
return `${n ? l : r} / ${n ? r : l}`;
|
|
404
|
+
}
|
|
405
|
+
function Cn(t) {
|
|
406
|
+
return typeof t == "string" ? t === "cover" ? "cover" : "fit" : (t == null ? void 0 : t.display) === "cover" ? "cover" : "fit";
|
|
407
|
+
}
|
|
408
|
+
function Tn({
|
|
409
|
+
src: t,
|
|
410
|
+
mediaRef: e,
|
|
411
|
+
mediaStyle: n,
|
|
412
|
+
onLoadedMetadata: r,
|
|
413
|
+
onTransitionEnd: l
|
|
414
|
+
}) {
|
|
415
|
+
return q(() => {
|
|
416
|
+
const c = e.current;
|
|
417
|
+
if (c)
|
|
418
|
+
return () => {
|
|
419
|
+
xn(c);
|
|
420
|
+
};
|
|
421
|
+
}, [t, e]), /* @__PURE__ */ i(
|
|
422
|
+
"video",
|
|
423
|
+
{
|
|
424
|
+
ref: e,
|
|
425
|
+
src: t,
|
|
426
|
+
muted: !0,
|
|
427
|
+
autoPlay: !0,
|
|
428
|
+
loop: !0,
|
|
429
|
+
playsInline: !0,
|
|
430
|
+
preload: "auto",
|
|
431
|
+
onLoadedMetadata: r,
|
|
432
|
+
onTransitionEnd: l,
|
|
433
|
+
style: n
|
|
434
|
+
}
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
const In = "https://cdn.cntrl.site/component-assets/defaultCloseIcon.svg", Ln = 4e-3;
|
|
438
|
+
function Nn({
|
|
439
|
+
prefix: t,
|
|
440
|
+
closeIcon: e = In,
|
|
441
|
+
closeIconMaxWidth: n = 0.0125,
|
|
442
|
+
closeIconColor: r = "#FFFFFF",
|
|
443
|
+
closeIconHoverColor: l = "#999999",
|
|
444
|
+
iconMarginRight: c = 0.01,
|
|
445
|
+
contentMarginTop: o = 0.01,
|
|
446
|
+
isEditor: u,
|
|
447
|
+
isPreviewMode: a,
|
|
448
|
+
isEditMode: h,
|
|
449
|
+
visible: s,
|
|
450
|
+
onClose: g
|
|
451
|
+
}) {
|
|
452
|
+
if (!e) return null;
|
|
453
|
+
const O = st(n, u), N = st(c, u), Z = st(o, u), I = st(Math.max(o, Ln), u);
|
|
454
|
+
return /* @__PURE__ */ w(
|
|
455
|
+
"div",
|
|
456
|
+
{
|
|
457
|
+
style: {
|
|
458
|
+
position: "absolute",
|
|
459
|
+
top: 0,
|
|
460
|
+
left: 0,
|
|
461
|
+
right: 0,
|
|
462
|
+
zIndex: 1e4,
|
|
463
|
+
display: "flex",
|
|
464
|
+
flexDirection: "column",
|
|
465
|
+
alignItems: "flex-end",
|
|
466
|
+
pointerEvents: "none",
|
|
467
|
+
opacity: s ? 1 : 0,
|
|
468
|
+
transition: "opacity 500ms cubic-bezier(0.22, 1, 0.36, 1)"
|
|
469
|
+
},
|
|
470
|
+
children: [
|
|
471
|
+
/* @__PURE__ */ i(
|
|
472
|
+
"div",
|
|
473
|
+
{
|
|
474
|
+
style: {
|
|
475
|
+
position: "relative",
|
|
476
|
+
width: "100%",
|
|
477
|
+
height: Z,
|
|
478
|
+
flexShrink: 0
|
|
479
|
+
},
|
|
480
|
+
children: h && /* @__PURE__ */ i(
|
|
481
|
+
"div",
|
|
482
|
+
{
|
|
483
|
+
"data-controls": "contentMarginTop",
|
|
484
|
+
"data-controls-axis": "y",
|
|
485
|
+
"data-controls-min": "0",
|
|
486
|
+
className: `${t}-control`,
|
|
487
|
+
style: {
|
|
488
|
+
position: "absolute",
|
|
489
|
+
top: 0,
|
|
490
|
+
left: 0,
|
|
491
|
+
width: "100%",
|
|
492
|
+
height: I,
|
|
493
|
+
pointerEvents: s ? "auto" : "none"
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
)
|
|
497
|
+
}
|
|
498
|
+
),
|
|
499
|
+
/* @__PURE__ */ w(
|
|
500
|
+
"div",
|
|
501
|
+
{
|
|
502
|
+
className: `${t}-close-icon`,
|
|
503
|
+
style: {
|
|
504
|
+
width: O,
|
|
505
|
+
height: O,
|
|
506
|
+
marginRight: N,
|
|
507
|
+
pointerEvents: s ? "auto" : "none"
|
|
508
|
+
},
|
|
509
|
+
onClick: (k) => k.stopPropagation(),
|
|
510
|
+
children: [
|
|
511
|
+
/* @__PURE__ */ i(
|
|
512
|
+
"button",
|
|
513
|
+
{
|
|
514
|
+
type: "button",
|
|
515
|
+
className: `${t}-close-icon-inner`,
|
|
516
|
+
"aria-label": "Close",
|
|
517
|
+
onClick: (k) => {
|
|
518
|
+
k.stopPropagation(), g();
|
|
519
|
+
},
|
|
520
|
+
children: /* @__PURE__ */ i(
|
|
521
|
+
nn,
|
|
522
|
+
{
|
|
523
|
+
url: e,
|
|
524
|
+
fill: r,
|
|
525
|
+
hoverFill: u && !a ? r : l,
|
|
526
|
+
className: `${t}-close-icon-img`
|
|
527
|
+
}
|
|
528
|
+
)
|
|
529
|
+
}
|
|
530
|
+
),
|
|
531
|
+
h && /* @__PURE__ */ i(
|
|
532
|
+
"div",
|
|
533
|
+
{
|
|
534
|
+
"data-controls": "iconMarginRight",
|
|
535
|
+
"data-controls-axis": "x",
|
|
536
|
+
"data-controls-reverse": "",
|
|
537
|
+
className: `${t}-control`,
|
|
538
|
+
style: {
|
|
539
|
+
position: "absolute",
|
|
540
|
+
top: 0,
|
|
541
|
+
left: "100%",
|
|
542
|
+
width: N,
|
|
543
|
+
height: "100%",
|
|
544
|
+
pointerEvents: s ? "auto" : "none"
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
)
|
|
548
|
+
]
|
|
549
|
+
}
|
|
550
|
+
)
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
);
|
|
554
|
+
}
|
|
555
|
+
function kn({
|
|
556
|
+
prefix: t,
|
|
557
|
+
items: e,
|
|
558
|
+
index: n,
|
|
559
|
+
imageDisplay: r,
|
|
560
|
+
isEditor: l,
|
|
561
|
+
isPreviewMode: c,
|
|
562
|
+
isEditMode: o,
|
|
563
|
+
onClose: u,
|
|
564
|
+
onPrev: a,
|
|
565
|
+
onNext: h,
|
|
566
|
+
counterClassName: s,
|
|
567
|
+
counterStyle: g,
|
|
568
|
+
backgroundColor: O,
|
|
569
|
+
closeIcon: N,
|
|
570
|
+
closeIconMaxWidth: Z,
|
|
571
|
+
closeIconColor: I,
|
|
572
|
+
closeIconHoverColor: k,
|
|
573
|
+
iconMarginRight: V,
|
|
574
|
+
contentMarginTop: et
|
|
575
|
+
}) {
|
|
576
|
+
const dt = r === "cover", M = R(null), j = R(null), S = R(null), b = R(0), f = R(0), m = R("none"), G = R(!1), K = R(!1), U = R(!1), J = R(null), [d, B] = _(null), [$, z] = _("opening"), [nt, $t] = _(0), [Dt, ot] = _(0), [C, it] = _(!1), [rt, Q] = _(!1), [v, Kt] = _(!1), Rt = R(n), x = e[n], Ut = x ? ce(x) : !1, Mt = x ? ae(x) : !1, It = Dt !== 0 || C, P = yt((p) => {
|
|
577
|
+
U.current = p, it(p);
|
|
578
|
+
}, []), E = yt(() => {
|
|
579
|
+
J.current !== null && (window.clearTimeout(J.current), J.current = null);
|
|
580
|
+
}, []), Lt = yt(() => {
|
|
581
|
+
E(), J.current = window.setTimeout(() => {
|
|
582
|
+
E(), P(!1);
|
|
583
|
+
}, at + 32);
|
|
584
|
+
}, [E, P]), ut = yt(() => {
|
|
585
|
+
const p = M.current, A = j.current;
|
|
586
|
+
if (!p) return;
|
|
587
|
+
const W = p.getBoundingClientRect(), X = W.width, Y = W.height;
|
|
588
|
+
if (!X || !Y) return;
|
|
589
|
+
if (r === "cover") {
|
|
590
|
+
B({ width: X, height: Y, left: W.left, top: W.top });
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
let D = x && ae(x) ? tn(x) : null;
|
|
594
|
+
if (D === null) {
|
|
595
|
+
if (!A) {
|
|
596
|
+
B(jt(p));
|
|
597
|
+
return;
|
|
598
|
+
}
|
|
599
|
+
const { width: T, height: y } = $n(A);
|
|
600
|
+
if (!T || !y) {
|
|
601
|
+
B(jt(p));
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
D = T / y;
|
|
605
|
+
}
|
|
606
|
+
const pt = X / Y;
|
|
607
|
+
if (D > pt) {
|
|
608
|
+
const T = X / D;
|
|
609
|
+
B({ width: X, height: T, left: W.left, top: W.top + (Y - T) / 2 });
|
|
610
|
+
} else {
|
|
611
|
+
const T = Y * D;
|
|
612
|
+
B({ width: T, height: Y, left: W.left + (X - T) / 2, top: W.top });
|
|
613
|
+
}
|
|
614
|
+
}, [r, x]);
|
|
615
|
+
q(() => {
|
|
616
|
+
ut();
|
|
617
|
+
const p = M.current;
|
|
618
|
+
if (!p) return;
|
|
619
|
+
const A = new ResizeObserver(() => ut());
|
|
620
|
+
return A.observe(p), () => A.disconnect();
|
|
621
|
+
}, [ut, n]), q(() => {
|
|
622
|
+
$ === "opening" && d && z("open");
|
|
623
|
+
}, [$, d]), q(() => {
|
|
624
|
+
if ($ !== "closing") return;
|
|
625
|
+
const p = setTimeout(() => u(), at);
|
|
626
|
+
return () => clearTimeout(p);
|
|
627
|
+
}, [$, u]), q(() => () => {
|
|
628
|
+
E();
|
|
629
|
+
}, [E]), se(() => {
|
|
630
|
+
if (Rt.current === n) return;
|
|
631
|
+
E(), $t(0), ot(0), P(!1), Kt(!1), Q(!1), b.current = 0, f.current = 0, m.current = "none", G.current = !1, S.current = null, K.current = !1;
|
|
632
|
+
const p = M.current;
|
|
633
|
+
p && B(jt(p)), Rt.current = n;
|
|
634
|
+
}, [n, P, E]), q(() => {
|
|
635
|
+
if ($ !== "open") return;
|
|
636
|
+
let p = null;
|
|
637
|
+
const A = () => {
|
|
638
|
+
p && (document.removeEventListener("click", p, !0), p = null);
|
|
639
|
+
}, W = () => {
|
|
640
|
+
A(), p = (y) => {
|
|
641
|
+
y.stopPropagation(), y.preventDefault(), A();
|
|
642
|
+
}, document.addEventListener("click", p, !0);
|
|
643
|
+
}, X = (y) => {
|
|
644
|
+
E(), U.current = !1, it(!1), ot(0), Q(!1), G.current = !1, f.current = 0, m.current = "none";
|
|
645
|
+
const F = M.current;
|
|
646
|
+
F && B(jt(F)), y < 0 ? h() : a();
|
|
647
|
+
}, Y = (y) => {
|
|
648
|
+
if (Math.abs(y) > pn && e.length > 1) {
|
|
649
|
+
X(y);
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
P(!0), ot(0), Lt();
|
|
653
|
+
}, D = (y) => {
|
|
654
|
+
if (y.touches.length !== 1 || U.current) return;
|
|
655
|
+
const F = y.touches[0];
|
|
656
|
+
K.current = !0, S.current = { x: F.clientX, y: F.clientY }, m.current = "none", f.current = 0, G.current = !1;
|
|
657
|
+
}, pt = (y) => {
|
|
658
|
+
if (!S.current || y.touches.length !== 1 || U.current) return;
|
|
659
|
+
const F = y.touches[0], mt = F.clientX - S.current.x, tt = F.clientY - S.current.y;
|
|
660
|
+
if (m.current === "none") {
|
|
661
|
+
if (Math.abs(mt) < 10 && Math.abs(tt) < 10) return;
|
|
662
|
+
if (Math.abs(mt) > Math.abs(tt)) {
|
|
663
|
+
if (e.length <= 1) return;
|
|
664
|
+
m.current = "horizontal";
|
|
665
|
+
} else if (tt > 0)
|
|
666
|
+
m.current = "vertical";
|
|
667
|
+
else
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
670
|
+
if (m.current === "horizontal") {
|
|
671
|
+
G.current = !0, Q(!0), f.current = mt, ot(mt), y.preventDefault();
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
m.current === "vertical" && (G.current = !0, Q(!0), b.current = tt, $t(tt), y.preventDefault());
|
|
675
|
+
}, T = () => {
|
|
676
|
+
if (!S.current) return;
|
|
677
|
+
const y = m.current, F = G.current;
|
|
678
|
+
if (F && y === "horizontal")
|
|
679
|
+
Y(f.current), W();
|
|
680
|
+
else if (F && y === "vertical")
|
|
681
|
+
if (b.current > hn) {
|
|
682
|
+
const tt = window.innerHeight;
|
|
683
|
+
b.current = tt, Kt(!0), $t(tt), z("closing");
|
|
684
|
+
} else
|
|
685
|
+
b.current = 0, $t(0), W();
|
|
686
|
+
else y === "horizontal" && Math.abs(f.current) > 0 && (Y(f.current), W());
|
|
687
|
+
S.current = null, m.current = "none", f.current = 0, G.current = !1, Q(!1);
|
|
688
|
+
};
|
|
689
|
+
return document.addEventListener("touchstart", D, { passive: !0 }), document.addEventListener("touchmove", pt, { passive: !1 }), document.addEventListener("touchend", T), document.addEventListener("touchcancel", T), () => {
|
|
690
|
+
document.removeEventListener("touchstart", D), document.removeEventListener("touchmove", pt), document.removeEventListener("touchend", T), document.removeEventListener("touchcancel", T), A();
|
|
691
|
+
};
|
|
692
|
+
}, [$, e.length, h, a, P, Lt, E]), q(() => {
|
|
693
|
+
const p = (A) => {
|
|
694
|
+
A.key === "Escape" && (A.preventDefault(), A.stopPropagation(), $ !== "closing" && z("closing"));
|
|
695
|
+
};
|
|
696
|
+
return window.addEventListener("keydown", p, !0), () => window.removeEventListener("keydown", p, !0);
|
|
697
|
+
}, [$]);
|
|
698
|
+
const Et = () => {
|
|
699
|
+
$ !== "closing" && z("closing");
|
|
700
|
+
}, ft = $ === "open", Wt = $ === "closing", Ot = nt > 0 ? Math.max(0, 1 - nt / 500) : 1, Ft = nt > 0 ? Math.max(0.35, 1 - nt / 500) : 1, bt = yt((p) => {
|
|
701
|
+
p.propertyName !== "transform" || !U.current || (E(), P(!1));
|
|
702
|
+
}, [E, P]), Xt = It ? `translateX(${Dt}px)` : nt > 0 ? `translateY(${nt}px)` : void 0, Nt = {
|
|
703
|
+
position: "fixed",
|
|
704
|
+
top: d == null ? void 0 : d.top,
|
|
705
|
+
left: d == null ? void 0 : d.left,
|
|
706
|
+
width: d == null ? void 0 : d.width,
|
|
707
|
+
height: d == null ? void 0 : d.height,
|
|
708
|
+
objectFit: r === "cover" ? "cover" : "contain",
|
|
709
|
+
transform: Xt,
|
|
710
|
+
opacity: nt > 0 ? Ft : $ === "opening" || Wt ? 0 : 1,
|
|
711
|
+
transition: rt && !C ? "none" : C ? `transform ${at}ms ${vt}` : v ? `transform ${at}ms ${vt}, opacity ${at}ms ${vt}` : $ === "opening" || Wt ? `opacity ${at}ms ${vt}` : "none",
|
|
712
|
+
pointerEvents: "none",
|
|
713
|
+
zIndex: 9998
|
|
714
|
+
}, gt = Mt && x && en(x).controls && d ? Math.min(52, d.height * 0.2) : 0, ht = d ? {
|
|
715
|
+
position: "fixed",
|
|
716
|
+
top: d.top,
|
|
717
|
+
height: d.height - gt,
|
|
718
|
+
width: d.width / 2,
|
|
719
|
+
zIndex: 9999
|
|
720
|
+
} : null;
|
|
721
|
+
return /* @__PURE__ */ w(
|
|
722
|
+
"div",
|
|
723
|
+
{
|
|
724
|
+
className: [
|
|
725
|
+
`${t}-lightbox`,
|
|
726
|
+
l ? `${t}-lightbox-editor` : ""
|
|
727
|
+
].filter(Boolean).join(" "),
|
|
728
|
+
style: {
|
|
729
|
+
touchAction: $ === "open" ? "none" : void 0
|
|
730
|
+
},
|
|
731
|
+
onClick: Et,
|
|
732
|
+
children: [
|
|
733
|
+
/* @__PURE__ */ i(
|
|
734
|
+
"div",
|
|
735
|
+
{
|
|
736
|
+
style: {
|
|
737
|
+
position: "absolute",
|
|
738
|
+
inset: 0,
|
|
739
|
+
background: O,
|
|
740
|
+
opacity: ft ? Ot : 0,
|
|
741
|
+
transition: rt ? "none" : `opacity ${at}ms ${vt}`,
|
|
742
|
+
pointerEvents: "none"
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
),
|
|
746
|
+
/* @__PURE__ */ i(
|
|
747
|
+
"div",
|
|
748
|
+
{
|
|
749
|
+
style: {
|
|
750
|
+
position: "relative",
|
|
751
|
+
width: "100%",
|
|
752
|
+
height: "100%",
|
|
753
|
+
display: "flex",
|
|
754
|
+
flexDirection: "column",
|
|
755
|
+
alignItems: "center",
|
|
756
|
+
justifyContent: "center"
|
|
757
|
+
},
|
|
758
|
+
children: dt ? /* @__PURE__ */ w(xt, { children: [
|
|
759
|
+
/* @__PURE__ */ i("div", { ref: M, style: { position: "absolute", inset: 0 } }),
|
|
760
|
+
/* @__PURE__ */ i(
|
|
761
|
+
"div",
|
|
762
|
+
{
|
|
763
|
+
style: {
|
|
764
|
+
position: "absolute",
|
|
765
|
+
bottom: 0,
|
|
766
|
+
left: 0,
|
|
767
|
+
right: 0,
|
|
768
|
+
display: "flex",
|
|
769
|
+
flexDirection: "row",
|
|
770
|
+
justifyContent: "center",
|
|
771
|
+
alignItems: "center",
|
|
772
|
+
height: "10%",
|
|
773
|
+
opacity: ft ? 1 : 0,
|
|
774
|
+
transition: `opacity ${at}ms ${vt}`,
|
|
775
|
+
pointerEvents: "none",
|
|
776
|
+
zIndex: 9999
|
|
777
|
+
},
|
|
778
|
+
children: e.length > 1 && /* @__PURE__ */ w("p", { className: s, style: g, children: [
|
|
779
|
+
n + 1,
|
|
780
|
+
" / ",
|
|
781
|
+
e.length
|
|
782
|
+
] })
|
|
783
|
+
}
|
|
784
|
+
)
|
|
785
|
+
] }) : /* @__PURE__ */ w(xt, { children: [
|
|
786
|
+
/* @__PURE__ */ i("div", { style: { height: "10%" } }),
|
|
787
|
+
/* @__PURE__ */ i(
|
|
788
|
+
"div",
|
|
789
|
+
{
|
|
790
|
+
style: {
|
|
791
|
+
width: "70%",
|
|
792
|
+
height: "80%",
|
|
793
|
+
display: "flex",
|
|
794
|
+
justifyContent: "center",
|
|
795
|
+
alignItems: "center"
|
|
796
|
+
},
|
|
797
|
+
children: /* @__PURE__ */ i("div", { ref: M, style: { width: "100%", height: "100%" } })
|
|
798
|
+
}
|
|
799
|
+
),
|
|
800
|
+
/* @__PURE__ */ i(
|
|
801
|
+
"div",
|
|
802
|
+
{
|
|
803
|
+
style: {
|
|
804
|
+
display: "flex",
|
|
805
|
+
flexDirection: "row",
|
|
806
|
+
justifyContent: "center",
|
|
807
|
+
alignItems: "center",
|
|
808
|
+
height: "10%",
|
|
809
|
+
opacity: ft ? 1 : 0,
|
|
810
|
+
transition: `opacity ${at}ms ${vt}`
|
|
811
|
+
},
|
|
812
|
+
children: e.length > 1 && /* @__PURE__ */ w("p", { className: s, style: g, children: [
|
|
813
|
+
n + 1,
|
|
814
|
+
" / ",
|
|
815
|
+
e.length
|
|
816
|
+
] })
|
|
817
|
+
}
|
|
818
|
+
)
|
|
819
|
+
] })
|
|
820
|
+
}
|
|
821
|
+
),
|
|
822
|
+
d && x && (Mt ? /* @__PURE__ */ i(
|
|
823
|
+
Ae,
|
|
824
|
+
{
|
|
825
|
+
media: x,
|
|
826
|
+
fit: r === "cover" ? "cover" : "contain",
|
|
827
|
+
lazy: !1,
|
|
828
|
+
startsAtOnce: !0,
|
|
829
|
+
style: Nt,
|
|
830
|
+
onTransitionEnd: bt
|
|
831
|
+
},
|
|
832
|
+
`${n}-${x.assetId}`
|
|
833
|
+
) : Ut ? /* @__PURE__ */ i(
|
|
834
|
+
Tn,
|
|
835
|
+
{
|
|
836
|
+
src: x.assetId,
|
|
837
|
+
mediaRef: j,
|
|
838
|
+
mediaStyle: Nt,
|
|
839
|
+
onLoadedMetadata: ut,
|
|
840
|
+
onTransitionEnd: bt
|
|
841
|
+
},
|
|
842
|
+
`${n}-${x.assetId}`
|
|
843
|
+
) : /* @__PURE__ */ i(
|
|
844
|
+
"img",
|
|
845
|
+
{
|
|
846
|
+
ref: j,
|
|
847
|
+
src: x.assetId,
|
|
848
|
+
alt: x.name,
|
|
849
|
+
onLoad: ut,
|
|
850
|
+
onTransitionEnd: bt,
|
|
851
|
+
style: Nt
|
|
852
|
+
},
|
|
853
|
+
`${n}-${x.assetId}`
|
|
854
|
+
)),
|
|
855
|
+
ft && ht && e.length > 1 && /* @__PURE__ */ w(xt, { children: [
|
|
856
|
+
/* @__PURE__ */ i(
|
|
857
|
+
"div",
|
|
858
|
+
{
|
|
859
|
+
style: {
|
|
860
|
+
...ht,
|
|
861
|
+
left: d.left,
|
|
862
|
+
cursor: "w-resize",
|
|
863
|
+
pointerEvents: It ? "none" : "auto"
|
|
864
|
+
},
|
|
865
|
+
onClick: (p) => {
|
|
866
|
+
if (K.current) {
|
|
867
|
+
K.current = !1;
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
870
|
+
p.stopPropagation(), a();
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
),
|
|
874
|
+
/* @__PURE__ */ i(
|
|
875
|
+
"div",
|
|
876
|
+
{
|
|
877
|
+
style: {
|
|
878
|
+
...ht,
|
|
879
|
+
left: d.left + d.width / 2,
|
|
880
|
+
cursor: "e-resize",
|
|
881
|
+
pointerEvents: It ? "none" : "auto"
|
|
882
|
+
},
|
|
883
|
+
onClick: (p) => {
|
|
884
|
+
if (K.current) {
|
|
885
|
+
K.current = !1;
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
p.stopPropagation(), h();
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
)
|
|
892
|
+
] }),
|
|
893
|
+
/* @__PURE__ */ i(
|
|
894
|
+
Nn,
|
|
895
|
+
{
|
|
896
|
+
prefix: t,
|
|
897
|
+
closeIcon: N,
|
|
898
|
+
closeIconMaxWidth: Z,
|
|
899
|
+
closeIconColor: I,
|
|
900
|
+
closeIconHoverColor: k,
|
|
901
|
+
iconMarginRight: V,
|
|
902
|
+
contentMarginTop: et,
|
|
903
|
+
isEditor: l,
|
|
904
|
+
isPreviewMode: c,
|
|
905
|
+
isEditMode: o,
|
|
906
|
+
visible: ft,
|
|
907
|
+
onClose: Et
|
|
908
|
+
}
|
|
909
|
+
)
|
|
910
|
+
]
|
|
911
|
+
}
|
|
912
|
+
);
|
|
913
|
+
}
|
|
914
|
+
function Ie({
|
|
915
|
+
P: t,
|
|
916
|
+
media: e,
|
|
917
|
+
imgWidth: n,
|
|
918
|
+
cornerRadius: r,
|
|
919
|
+
fillGalleryWidth: l,
|
|
920
|
+
imageDisplay: c,
|
|
921
|
+
isEditor: o,
|
|
922
|
+
galleryPaddingBetween: u = 0,
|
|
923
|
+
showPaddingAfter: a = !1,
|
|
924
|
+
showControls: h = !1,
|
|
925
|
+
hasLightbox: s,
|
|
926
|
+
onMediaClick: g
|
|
927
|
+
}) {
|
|
928
|
+
const O = `${t}-gallery-${ce(e) ? "video" : "image"}`, N = c.display === "cover", Z = Sn(c), I = (m) => st(m, o ?? !1), k = n ?? Tt, V = l ? { width: "100%", maxWidth: "100%" } : { width: I(k), maxWidth: "100%" }, et = r ? { borderRadius: I(r) } : {}, dt = {
|
|
929
|
+
...V,
|
|
930
|
+
...N ? { aspectRatio: Z, height: "auto", overflow: "hidden" } : {},
|
|
931
|
+
...et
|
|
932
|
+
}, M = {
|
|
933
|
+
...N ? {
|
|
934
|
+
display: "block",
|
|
935
|
+
width: "100%",
|
|
936
|
+
height: "100%",
|
|
937
|
+
objectFit: "cover",
|
|
938
|
+
maxWidth: "100%"
|
|
939
|
+
} : {
|
|
940
|
+
display: "block",
|
|
941
|
+
maxWidth: "100%",
|
|
942
|
+
height: "auto",
|
|
943
|
+
width: l ? "100%" : I(k)
|
|
944
|
+
},
|
|
945
|
+
...g ? { cursor: "pointer", pointerEvents: "auto" } : {},
|
|
946
|
+
...N ? {} : et
|
|
947
|
+
}, S = {
|
|
948
|
+
className: O,
|
|
949
|
+
style: M,
|
|
950
|
+
onClick: g ? (m) => {
|
|
951
|
+
m.stopPropagation(), g();
|
|
952
|
+
} : void 0
|
|
953
|
+
}, b = Math.max(u, ct), f = ae(e) ? /* @__PURE__ */ i(
|
|
954
|
+
Ae,
|
|
955
|
+
{
|
|
956
|
+
...S,
|
|
957
|
+
media: e,
|
|
958
|
+
fit: N ? "cover" : "contain",
|
|
959
|
+
silentLoop: s
|
|
960
|
+
}
|
|
961
|
+
) : ce(e) ? /* @__PURE__ */ i(
|
|
962
|
+
on,
|
|
963
|
+
{
|
|
964
|
+
...S,
|
|
965
|
+
src: e.assetId,
|
|
966
|
+
muted: !0,
|
|
967
|
+
autoPlay: !0,
|
|
968
|
+
loop: !0,
|
|
969
|
+
playsInline: !0
|
|
970
|
+
}
|
|
971
|
+
) : /* @__PURE__ */ i(
|
|
972
|
+
"img",
|
|
973
|
+
{
|
|
974
|
+
...S,
|
|
975
|
+
src: e.assetId,
|
|
976
|
+
alt: e.name ?? ""
|
|
977
|
+
}
|
|
978
|
+
);
|
|
979
|
+
return /* @__PURE__ */ w("div", { className: `${t}-gallery-item`, children: [
|
|
980
|
+
N ? /* @__PURE__ */ i("div", { style: dt, children: f }) : f,
|
|
981
|
+
a && u > 0 && /* @__PURE__ */ i(
|
|
982
|
+
"div",
|
|
983
|
+
{
|
|
984
|
+
className: `${t}-padding-handle`,
|
|
985
|
+
style: { height: I(u) },
|
|
986
|
+
"aria-hidden": "true"
|
|
987
|
+
}
|
|
988
|
+
),
|
|
989
|
+
h && a && /* @__PURE__ */ i(
|
|
990
|
+
"div",
|
|
991
|
+
{
|
|
992
|
+
"data-controls": "galleryPaddingBetween",
|
|
993
|
+
"data-controls-axis": "y",
|
|
994
|
+
"data-controls-variant": "row-padding",
|
|
995
|
+
"data-controls-min": "0",
|
|
996
|
+
className: `${t}-control-anchor`,
|
|
997
|
+
style: {
|
|
998
|
+
bottom: 0,
|
|
999
|
+
left: 0,
|
|
1000
|
+
width: "100%",
|
|
1001
|
+
height: I(b)
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
)
|
|
1005
|
+
] });
|
|
1006
|
+
}
|
|
1007
|
+
function zn({
|
|
1008
|
+
P: t,
|
|
1009
|
+
layoutType: e,
|
|
1010
|
+
galleryWidthStyle: n,
|
|
1011
|
+
galleryPaddingRight: r,
|
|
1012
|
+
galleryPaddingLeft: l,
|
|
1013
|
+
galleryPaddingRightWidth: c,
|
|
1014
|
+
galleryPaddingLeftWidth: o,
|
|
1015
|
+
galleryPaddingMaxFraction: u,
|
|
1016
|
+
showControls: a,
|
|
1017
|
+
scaled: h,
|
|
1018
|
+
children: s
|
|
1019
|
+
}) {
|
|
1020
|
+
const g = e === "a" ? r : e === "c" ? l : 0, O = g > 0 || a;
|
|
1021
|
+
return /* @__PURE__ */ w("div", { className: `${t}-gallery-controls`, children: [
|
|
1022
|
+
e === "c" && O && /* @__PURE__ */ i(
|
|
1023
|
+
"div",
|
|
1024
|
+
{
|
|
1025
|
+
className: `${t}-gallery-edge-spacer`,
|
|
1026
|
+
style: { width: h(g) },
|
|
1027
|
+
"aria-hidden": "true"
|
|
1028
|
+
}
|
|
1029
|
+
),
|
|
1030
|
+
a && e === "c" && /* @__PURE__ */ i(
|
|
1031
|
+
"div",
|
|
1032
|
+
{
|
|
1033
|
+
"data-controls": "galleryPaddingLeft",
|
|
1034
|
+
"data-controls-axis": "x",
|
|
1035
|
+
"data-controls-variant": "column-padding",
|
|
1036
|
+
"data-controls-min": "0",
|
|
1037
|
+
"data-controls-max-fraction": String(u),
|
|
1038
|
+
className: `${t}-control-anchor`,
|
|
1039
|
+
style: {
|
|
1040
|
+
top: 0,
|
|
1041
|
+
left: 0,
|
|
1042
|
+
width: h(o),
|
|
1043
|
+
height: "100%"
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
),
|
|
1047
|
+
/* @__PURE__ */ i("div", { className: `${t}-gallery`, style: n, children: s }),
|
|
1048
|
+
e === "a" && O && /* @__PURE__ */ i(
|
|
1049
|
+
"div",
|
|
1050
|
+
{
|
|
1051
|
+
className: `${t}-gallery-edge-spacer`,
|
|
1052
|
+
style: { width: h(g) },
|
|
1053
|
+
"aria-hidden": "true"
|
|
1054
|
+
}
|
|
1055
|
+
),
|
|
1056
|
+
a && e === "a" && /* @__PURE__ */ i(
|
|
1057
|
+
"div",
|
|
1058
|
+
{
|
|
1059
|
+
"data-controls": "galleryPaddingRight",
|
|
1060
|
+
"data-controls-axis": "x",
|
|
1061
|
+
"data-controls-variant": "column-padding",
|
|
1062
|
+
"data-controls-reverse": "",
|
|
1063
|
+
"data-controls-min": "0",
|
|
1064
|
+
"data-controls-max-fraction": String(u),
|
|
1065
|
+
className: `${t}-control-anchor`,
|
|
1066
|
+
style: {
|
|
1067
|
+
top: 0,
|
|
1068
|
+
right: 0,
|
|
1069
|
+
width: h(c),
|
|
1070
|
+
height: "100%"
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
)
|
|
1074
|
+
] });
|
|
1075
|
+
}
|
|
1076
|
+
function An(t) {
|
|
1077
|
+
switch (t) {
|
|
1078
|
+
case "fade":
|
|
1079
|
+
case "retype":
|
|
1080
|
+
case "scroll":
|
|
1081
|
+
return t;
|
|
1082
|
+
case "default":
|
|
1083
|
+
return "scroll";
|
|
1084
|
+
default:
|
|
1085
|
+
return "scroll";
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
function Gt({
|
|
1089
|
+
P: t,
|
|
1090
|
+
controlKey: e,
|
|
1091
|
+
scaled: n,
|
|
1092
|
+
height: r,
|
|
1093
|
+
paired: l,
|
|
1094
|
+
side: c
|
|
1095
|
+
}) {
|
|
1096
|
+
return /* @__PURE__ */ i(
|
|
1097
|
+
"div",
|
|
1098
|
+
{
|
|
1099
|
+
"data-controls": e,
|
|
1100
|
+
...l ? { "data-controls-paired": "" } : {},
|
|
1101
|
+
"data-controls-axis": "y",
|
|
1102
|
+
"data-controls-variant": "row-padding",
|
|
1103
|
+
"data-controls-min": "0",
|
|
1104
|
+
className: `${t}-control-anchor`,
|
|
1105
|
+
style: {
|
|
1106
|
+
...c === "top" ? { top: 0 } : { bottom: 0 },
|
|
1107
|
+
left: 0,
|
|
1108
|
+
width: "100%",
|
|
1109
|
+
height: n(r)
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
);
|
|
1113
|
+
}
|
|
1114
|
+
function Le({
|
|
1115
|
+
P: t,
|
|
1116
|
+
controlKey: e,
|
|
1117
|
+
scaled: n,
|
|
1118
|
+
width: r,
|
|
1119
|
+
maxFraction: l,
|
|
1120
|
+
side: c,
|
|
1121
|
+
paired: o,
|
|
1122
|
+
anchorStyle: u
|
|
1123
|
+
}) {
|
|
1124
|
+
return /* @__PURE__ */ i(
|
|
1125
|
+
"div",
|
|
1126
|
+
{
|
|
1127
|
+
"data-controls": e,
|
|
1128
|
+
...o ? { "data-controls-paired": "" } : {},
|
|
1129
|
+
"data-controls-axis": "x",
|
|
1130
|
+
"data-controls-variant": "column-padding",
|
|
1131
|
+
...c === "right" ? { "data-controls-reverse": "" } : {},
|
|
1132
|
+
"data-controls-min": "0",
|
|
1133
|
+
"data-controls-max-fraction": String(l),
|
|
1134
|
+
className: `${t}-control-anchor`,
|
|
1135
|
+
style: {
|
|
1136
|
+
top: 0,
|
|
1137
|
+
...c === "left" ? { left: 0 } : { right: 0 },
|
|
1138
|
+
width: n(r),
|
|
1139
|
+
height: "100%",
|
|
1140
|
+
...u
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
);
|
|
1144
|
+
}
|
|
1145
|
+
function le({
|
|
1146
|
+
P: t,
|
|
1147
|
+
title: e,
|
|
1148
|
+
description: n,
|
|
1149
|
+
position: r,
|
|
1150
|
+
titleRef: l,
|
|
1151
|
+
titleClassName: c,
|
|
1152
|
+
titleContainerStyle: o,
|
|
1153
|
+
titleTextBoxStyle: u,
|
|
1154
|
+
titleStyle: a,
|
|
1155
|
+
descriptionClassName: h,
|
|
1156
|
+
descriptionStyle: s,
|
|
1157
|
+
descriptionPadding: g,
|
|
1158
|
+
showTextBoxOutline: O = !1,
|
|
1159
|
+
showDescriptionPaddingControl: N = !1,
|
|
1160
|
+
descriptionPaddingPaired: Z = !1,
|
|
1161
|
+
topPaddingControl: I,
|
|
1162
|
+
bottomPaddingControl: k
|
|
1163
|
+
}) {
|
|
1164
|
+
const V = R(null), [et, dt] = _(0), M = e ?? "", j = n ?? "", S = j.length > 0, { horizontal: b, vertical: f } = de(r), m = f === "center" || f === "bottom", G = f === "bottom";
|
|
1165
|
+
se(() => {
|
|
1166
|
+
if (!m) return;
|
|
1167
|
+
const d = V.current;
|
|
1168
|
+
if (!d || typeof ResizeObserver > "u") return;
|
|
1169
|
+
const B = () => dt(d.offsetHeight);
|
|
1170
|
+
B();
|
|
1171
|
+
const $ = new ResizeObserver(B);
|
|
1172
|
+
return $.observe(d), () => $.disconnect();
|
|
1173
|
+
}, [M, j, m]);
|
|
1174
|
+
const K = /* @__PURE__ */ i("span", { className: `${t}-title-text`, style: a, children: M }), U = S ? /* @__PURE__ */ i("span", { className: h, style: s, children: j }) : null, J = S ? /* @__PURE__ */ i(
|
|
1175
|
+
"div",
|
|
1176
|
+
{
|
|
1177
|
+
className: `${t}-title-texts-gap`,
|
|
1178
|
+
style: { height: g },
|
|
1179
|
+
children: N && /* @__PURE__ */ i(
|
|
1180
|
+
"div",
|
|
1181
|
+
{
|
|
1182
|
+
"data-controls": "titleDescriptionPadding",
|
|
1183
|
+
...Z ? { "data-controls-paired": "" } : {},
|
|
1184
|
+
"data-controls-axis": "y",
|
|
1185
|
+
"data-controls-variant": "row-padding",
|
|
1186
|
+
"data-controls-min": "0",
|
|
1187
|
+
className: `${t}-control-anchor`,
|
|
1188
|
+
style: {
|
|
1189
|
+
top: 0,
|
|
1190
|
+
left: 0,
|
|
1191
|
+
width: "100%",
|
|
1192
|
+
height: "100%"
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
)
|
|
1196
|
+
}
|
|
1197
|
+
) : null;
|
|
1198
|
+
return /* @__PURE__ */ i(
|
|
1199
|
+
"div",
|
|
1200
|
+
{
|
|
1201
|
+
ref: (d) => {
|
|
1202
|
+
V.current = d, l(d);
|
|
1203
|
+
},
|
|
1204
|
+
className: [
|
|
1205
|
+
c,
|
|
1206
|
+
`${t}-title-h-${b}`,
|
|
1207
|
+
`${t}-title-v-${f}`
|
|
1208
|
+
].join(" "),
|
|
1209
|
+
style: {
|
|
1210
|
+
...m ? { [`--${t}-title-height`]: `${et}px` } : {},
|
|
1211
|
+
...o
|
|
1212
|
+
},
|
|
1213
|
+
children: /* @__PURE__ */ w(
|
|
1214
|
+
"div",
|
|
1215
|
+
{
|
|
1216
|
+
className: `${t}-title-text-stack`,
|
|
1217
|
+
style: u,
|
|
1218
|
+
children: [
|
|
1219
|
+
I,
|
|
1220
|
+
/* @__PURE__ */ i(
|
|
1221
|
+
"div",
|
|
1222
|
+
{
|
|
1223
|
+
className: O ? `${t}-title-text-inner` : `${t}-title-text-inner-hidden`,
|
|
1224
|
+
style: { width: "100%" },
|
|
1225
|
+
children: /* @__PURE__ */ i("div", { className: `${t}-title-texts`, children: G ? /* @__PURE__ */ w(xt, { children: [
|
|
1226
|
+
U,
|
|
1227
|
+
J,
|
|
1228
|
+
K
|
|
1229
|
+
] }) : /* @__PURE__ */ w(xt, { children: [
|
|
1230
|
+
K,
|
|
1231
|
+
J,
|
|
1232
|
+
U
|
|
1233
|
+
] }) })
|
|
1234
|
+
}
|
|
1235
|
+
),
|
|
1236
|
+
k
|
|
1237
|
+
]
|
|
1238
|
+
}
|
|
1239
|
+
)
|
|
1240
|
+
}
|
|
1241
|
+
);
|
|
1242
|
+
}
|
|
1243
|
+
const Ne = 45;
|
|
1244
|
+
function ke(t, e, n) {
|
|
1245
|
+
let r = t;
|
|
1246
|
+
for (; r; ) {
|
|
1247
|
+
const l = getComputedStyle(r).getPropertyValue(e).trim();
|
|
1248
|
+
if (l) {
|
|
1249
|
+
const c = parseFloat(l);
|
|
1250
|
+
if (!Number.isNaN(c)) return c;
|
|
1251
|
+
}
|
|
1252
|
+
r = r.parentElement;
|
|
1253
|
+
}
|
|
1254
|
+
return n;
|
|
1255
|
+
}
|
|
1256
|
+
function Dn(t) {
|
|
1257
|
+
const e = ke(t, "--cntrl-viewport-height", window.innerHeight), n = ke(t, "--cntrl-article-top", 0);
|
|
1258
|
+
return { top: n, height: e, centerY: n + e / 2 };
|
|
1259
|
+
}
|
|
1260
|
+
function Rn(t, e, n) {
|
|
1261
|
+
const { vertical: r } = de(e), { top: l, height: c, centerY: o } = Dn(n);
|
|
1262
|
+
if (r === "top") {
|
|
1263
|
+
const a = n && parseFloat(getComputedStyle(n).top) || l;
|
|
1264
|
+
return Math.abs(t.top - a);
|
|
1265
|
+
}
|
|
1266
|
+
if (r === "bottom")
|
|
1267
|
+
return Math.abs(t.bottom - (l + c));
|
|
1268
|
+
const u = t.top + t.height / 2;
|
|
1269
|
+
return Math.abs(u - o);
|
|
1270
|
+
}
|
|
1271
|
+
function Mn(t, e, n) {
|
|
1272
|
+
const r = Array.from({ length: e }, (o, u) => {
|
|
1273
|
+
const a = t.current[u];
|
|
1274
|
+
if (!a) return 0;
|
|
1275
|
+
const h = a.getBoundingClientRect(), s = Rn(h, n, a);
|
|
1276
|
+
return Math.exp(-(s * s) / (2 * Ne * Ne));
|
|
1277
|
+
});
|
|
1278
|
+
let l = 0, c = -1;
|
|
1279
|
+
return r.forEach((o, u) => {
|
|
1280
|
+
o > c && (c = o, l = u);
|
|
1281
|
+
}), { opacities: r, dominantIndex: l };
|
|
1282
|
+
}
|
|
1283
|
+
function En(t, e, n) {
|
|
1284
|
+
const r = R([]), [{ opacities: l, dominantIndex: c }, o] = _(() => ({
|
|
1285
|
+
opacities: Array.from({ length: t }, (a, h) => h === 0 ? 1 : 0),
|
|
1286
|
+
dominantIndex: 0
|
|
1287
|
+
}));
|
|
1288
|
+
return se(() => {
|
|
1289
|
+
if (!e || t === 0) {
|
|
1290
|
+
o({
|
|
1291
|
+
opacities: Array.from({ length: t }, () => 1),
|
|
1292
|
+
dominantIndex: 0
|
|
1293
|
+
});
|
|
1294
|
+
return;
|
|
1295
|
+
}
|
|
1296
|
+
let a = 0;
|
|
1297
|
+
const h = () => {
|
|
1298
|
+
o(Mn(r, t, n));
|
|
1299
|
+
}, s = () => {
|
|
1300
|
+
a || (a = window.requestAnimationFrame(() => {
|
|
1301
|
+
a = 0, h();
|
|
1302
|
+
}));
|
|
1303
|
+
};
|
|
1304
|
+
return h(), window.addEventListener("scroll", s, { passive: !0 }), window.addEventListener("resize", s, { passive: !0 }), () => {
|
|
1305
|
+
a && window.cancelAnimationFrame(a), window.removeEventListener("scroll", s), window.removeEventListener("resize", s);
|
|
1306
|
+
};
|
|
1307
|
+
}, [e, t, n]), { setTitleRef: (a) => (h) => {
|
|
1308
|
+
r.current[a] = h;
|
|
1309
|
+
}, opacities: l, dominantIndex: c };
|
|
1310
|
+
}
|
|
1311
|
+
function ze(t, e) {
|
|
1312
|
+
const [n, r] = _(t), l = R(t);
|
|
1313
|
+
return q(() => {
|
|
1314
|
+
if (!e) {
|
|
1315
|
+
l.current = t, r(t);
|
|
1316
|
+
return;
|
|
1317
|
+
}
|
|
1318
|
+
const c = Array.from(l.current), o = Array.from(t), u = Math.max(c.length, o.length);
|
|
1319
|
+
if (u === 0 || l.current === t) return;
|
|
1320
|
+
let a = 0;
|
|
1321
|
+
const h = window.setInterval(() => {
|
|
1322
|
+
a += 1;
|
|
1323
|
+
const s = [
|
|
1324
|
+
...o.slice(0, a),
|
|
1325
|
+
...c.slice(a)
|
|
1326
|
+
].join("");
|
|
1327
|
+
l.current = s, r(s), a >= u && window.clearInterval(h);
|
|
1328
|
+
}, 70);
|
|
1329
|
+
return () => window.clearInterval(h);
|
|
1330
|
+
}, [e, t]), n;
|
|
1331
|
+
}
|
|
1332
|
+
function Yn({
|
|
1333
|
+
settings: t,
|
|
1334
|
+
content: e,
|
|
1335
|
+
isEditor: n,
|
|
1336
|
+
isPreviewMode: r,
|
|
1337
|
+
isEditMode: l,
|
|
1338
|
+
portalId: c
|
|
1339
|
+
}) {
|
|
1340
|
+
var be, we;
|
|
1341
|
+
const { prefix: o } = Pe(), u = Te(() => an(o), [o]), a = e ?? [], h = (t == null ? void 0 : t.wrapperWidth) ?? 1, s = (t == null ? void 0 : t.type) ?? "a", g = (t == null ? void 0 : t.imgWidth) ?? Tt, O = (t == null ? void 0 : t.titleWidth) ?? bn, N = wn(t == null ? void 0 : t.imageDisplay), Z = (t == null ? void 0 : t.cornerRadius) ?? rn, I = sn(t == null ? void 0 : t.position), { horizontal: k, vertical: V } = de(I), et = (t == null ? void 0 : t.titleTopPadding) ?? 0, dt = (t == null ? void 0 : t.titleBottomPadding) ?? 0, M = (t == null ? void 0 : t.titleLeftPadding) ?? 0, j = (t == null ? void 0 : t.titleRightPadding) ?? 0, S = (t == null ? void 0 : t.titleDescriptionPadding) ?? 0, b = An(t == null ? void 0 : t.transition), f = (t == null ? void 0 : t.lightbox) ?? "on", m = s === "b", G = b === "fade" || b === "retype", { setTitleRef: K, dominantIndex: U } = En(a.length, G, I), J = ((be = a[U]) == null ? void 0 : be.title) ?? "", d = ((we = a[U]) == null ? void 0 : we.description) ?? "", B = ze(J, b === "retype"), $ = ze(d, b === "retype"), z = b === "fade" || b === "retype", nt = b === "retype" ? B : J, $t = b === "retype" ? $ : d, Dt = m ? void 0 : { width: st(g, n ?? !1) }, ot = f === "on" && (!n || r || l), C = l ?? !1, it = (t == null ? void 0 : t.galleryPaddingRight) ?? 0, rt = (t == null ? void 0 : t.galleryPaddingLeft) ?? 0, Q = (t == null ? void 0 : t.galleryPaddingBetween) ?? 0, v = (L) => st(L, n ?? !1), Rt = {
|
|
1342
|
+
width: v(O)
|
|
1343
|
+
}, x = s === "a" ? it : rt, Ut = m ? { width: "100%" } : {
|
|
1344
|
+
width: `calc(100% - ${v(g)} - ${v(x)})`,
|
|
1345
|
+
...s === "c" ? { marginLeft: "auto" } : {}
|
|
1346
|
+
}, Mt = Math.max(it, ct), It = Math.max(rt, ct), P = Math.max(Q, ct), E = Math.max(et, ct), Lt = Math.max(dt, ct), ut = Math.max(M, ct), Et = Math.max(j, ct), ft = Math.max(S, ct), Wt = Math.max(0, (h ?? 1) - (g ?? Tt)), Ot = s === "a" ? Math.max(0, (h ?? 1) - (g ?? Tt) - it) : s === "c" ? Math.max(0, (h ?? 1) - (g ?? Tt) - rt) : s === "b" ? h ?? 1 : 1, Ft = C && V === "top", bt = C && V === "bottom", Xt = C && k === "left", Nt = C && k === "right", gt = a.length > 1, ht = m ? void 0 : v((s === "c" ? rt : it) + (g ?? Tt)), p = s === "c" && ht ? { left: ht } : void 0, A = s === "a" && ht ? { right: ht } : void 0, W = m ? { left: 0, width: "100%" } : s === "a" ? { right: v(it), width: v(g) } : { left: v(rt), width: v(g) }, {
|
|
1347
|
+
titleColor: X,
|
|
1348
|
+
titleFontFamily: Y,
|
|
1349
|
+
titleFontSettings: D,
|
|
1350
|
+
titleFontSize: pt,
|
|
1351
|
+
titleLineHeight: T,
|
|
1352
|
+
titleLetterSpacing: y,
|
|
1353
|
+
titleWordSpacing: F,
|
|
1354
|
+
titleAlign: mt,
|
|
1355
|
+
titleTextAppearance: tt,
|
|
1356
|
+
descriptionColor: he,
|
|
1357
|
+
descriptionFontFamily: Re,
|
|
1358
|
+
descriptionFontSettings: wt,
|
|
1359
|
+
descriptionFontSize: Yt,
|
|
1360
|
+
descriptionLineHeight: qt,
|
|
1361
|
+
descriptionLetterSpacing: Me,
|
|
1362
|
+
descriptionWordSpacing: Ee,
|
|
1363
|
+
descriptionAlign: We,
|
|
1364
|
+
descriptionTextAppearance: Oe,
|
|
1365
|
+
lightboxCounterColor: pe,
|
|
1366
|
+
lightboxCounterFontFamily: Fe,
|
|
1367
|
+
lightboxCounterFontSettings: St,
|
|
1368
|
+
lightboxCounterFontSize: Zt,
|
|
1369
|
+
lightboxCounterLineHeight: Jt,
|
|
1370
|
+
lightboxCounterLetterSpacing: He,
|
|
1371
|
+
lightboxCounterWordSpacing: _e,
|
|
1372
|
+
lightboxCounterTextAppearance: Be
|
|
1373
|
+
} = t ?? {}, Ve = {
|
|
1374
|
+
fontSettings: {
|
|
1375
|
+
fontFamily: Y,
|
|
1376
|
+
fontWeight: (D == null ? void 0 : D.fontWeight) ?? 400,
|
|
1377
|
+
fontStyle: (D == null ? void 0 : D.fontStyle) ?? "normal"
|
|
1378
|
+
},
|
|
1379
|
+
fontSize: pt ?? 0.01,
|
|
1380
|
+
lineHeight: T,
|
|
1381
|
+
letterSpacing: y ?? 0,
|
|
1382
|
+
wordSpacing: F ?? 0,
|
|
1383
|
+
textAlign: mt ?? "left",
|
|
1384
|
+
textAppearance: tt,
|
|
1385
|
+
color: X ?? "#000000"
|
|
1386
|
+
}, ue = ne(oe(Ve, n)), fe = Rt, ge = {
|
|
1387
|
+
...re(pt, T, o, n),
|
|
1388
|
+
...re(Yt, qt, o, n, "description-leading-gap")
|
|
1389
|
+
}, me = ie(
|
|
1390
|
+
pt,
|
|
1391
|
+
T,
|
|
1392
|
+
`${o}-title`,
|
|
1393
|
+
`${o}-text-tight-leading`
|
|
1394
|
+
), je = {
|
|
1395
|
+
fontSettings: {
|
|
1396
|
+
fontFamily: Re,
|
|
1397
|
+
fontWeight: (wt == null ? void 0 : wt.fontWeight) ?? 400,
|
|
1398
|
+
fontStyle: (wt == null ? void 0 : wt.fontStyle) ?? "normal"
|
|
1399
|
+
},
|
|
1400
|
+
fontSize: Yt ?? 0.01,
|
|
1401
|
+
lineHeight: qt,
|
|
1402
|
+
letterSpacing: Me ?? 0,
|
|
1403
|
+
wordSpacing: Ee ?? 0,
|
|
1404
|
+
textAlign: We ?? "left",
|
|
1405
|
+
textAppearance: Oe,
|
|
1406
|
+
color: he ?? "#000000"
|
|
1407
|
+
}, ve = ne(oe(je, n)), ye = ie(
|
|
1408
|
+
Yt,
|
|
1409
|
+
qt,
|
|
1410
|
+
`${o}-description-text`,
|
|
1411
|
+
`${o}-description-tight-leading`
|
|
1412
|
+
), xe = v(C ? ft : S), Ge = {
|
|
1413
|
+
fontSettings: {
|
|
1414
|
+
fontFamily: Fe,
|
|
1415
|
+
fontWeight: (St == null ? void 0 : St.fontWeight) ?? 400,
|
|
1416
|
+
fontStyle: (St == null ? void 0 : St.fontStyle) ?? "normal"
|
|
1417
|
+
},
|
|
1418
|
+
fontSize: Zt ?? 0.01,
|
|
1419
|
+
lineHeight: Jt,
|
|
1420
|
+
letterSpacing: He ?? 0,
|
|
1421
|
+
wordSpacing: _e ?? 0,
|
|
1422
|
+
textAppearance: Be,
|
|
1423
|
+
color: pe ?? "#DEDDDD"
|
|
1424
|
+
}, Ke = {
|
|
1425
|
+
...ne(oe(Ge, n)),
|
|
1426
|
+
...re(Zt, Jt, o, n)
|
|
1427
|
+
}, Ue = ie(
|
|
1428
|
+
Zt,
|
|
1429
|
+
Jt,
|
|
1430
|
+
`${o}-lightbox-counter`,
|
|
1431
|
+
`${o}-text-tight-leading`
|
|
1432
|
+
), Qt = Qe(o, {
|
|
1433
|
+
titleColor: X ?? "#000000",
|
|
1434
|
+
descriptionColor: he ?? "#000000",
|
|
1435
|
+
lightboxCounterColor: pe ?? "#DEDDDD"
|
|
1436
|
+
}, un, fn), Pt = R(null), [Ht, _t] = _(!1), [Bt, Xe] = _([]), [Ye, te] = _(0), $e = yt((L, H) => {
|
|
1437
|
+
ot && (Xe(L), te(H), _t(!0));
|
|
1438
|
+
}, [ot]), qe = yt(() => {
|
|
1439
|
+
_t(!1);
|
|
1440
|
+
}, []), Ze = Te(() => {
|
|
1441
|
+
const L = { ...Qt }, H = Pt.current ? getComputedStyle(Pt.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
1442
|
+
return H && (L["--cntrl-article-width"] = H), L;
|
|
1443
|
+
}, [Qt, Ht]);
|
|
1444
|
+
return q(() => {
|
|
1445
|
+
if (!Ht || f !== "on" || typeof document > "u") return;
|
|
1446
|
+
const L = document.body.style.overflow;
|
|
1447
|
+
return document.body.style.overflow = "hidden", () => {
|
|
1448
|
+
document.body.style.overflow = L;
|
|
1449
|
+
};
|
|
1450
|
+
}, [Ht, f]), q(() => {
|
|
1451
|
+
!n || l || r || _t(!1);
|
|
1452
|
+
}, [n, l, r]), q(() => {
|
|
1453
|
+
f === "off" && _t(!1);
|
|
1454
|
+
}, [f]), /* @__PURE__ */ w(xt, { children: [
|
|
1455
|
+
/* @__PURE__ */ i("style", { dangerouslySetInnerHTML: { __html: u } }),
|
|
1456
|
+
/* @__PURE__ */ i("div", { style: Qt, children: /* @__PURE__ */ w(
|
|
1457
|
+
"div",
|
|
1458
|
+
{
|
|
1459
|
+
ref: Pt,
|
|
1460
|
+
className: `${o}-wrapper`,
|
|
1461
|
+
style: {
|
|
1462
|
+
width: st(h, n ?? !1),
|
|
1463
|
+
[`--${o}-title-top-padding`]: V === "top" ? v(et) : void 0,
|
|
1464
|
+
[`--${o}-title-bottom-padding`]: V === "bottom" ? v(dt) : void 0,
|
|
1465
|
+
[`--${o}-title-left-padding`]: k === "left" ? v(M) : void 0,
|
|
1466
|
+
[`--${o}-title-right-padding`]: k === "right" ? v(j) : void 0
|
|
1467
|
+
},
|
|
1468
|
+
children: [
|
|
1469
|
+
z && /* @__PURE__ */ i("div", { className: `${o}-single-title-layer`, children: /* @__PURE__ */ i(
|
|
1470
|
+
le,
|
|
1471
|
+
{
|
|
1472
|
+
P: o,
|
|
1473
|
+
title: nt,
|
|
1474
|
+
description: $t,
|
|
1475
|
+
position: I,
|
|
1476
|
+
titleRef: () => {
|
|
1477
|
+
},
|
|
1478
|
+
titleClassName: `${me} ${o}-single-title`,
|
|
1479
|
+
titleContainerStyle: {
|
|
1480
|
+
...ge,
|
|
1481
|
+
...Ut
|
|
1482
|
+
},
|
|
1483
|
+
titleTextBoxStyle: fe,
|
|
1484
|
+
titleStyle: ue,
|
|
1485
|
+
descriptionClassName: ye,
|
|
1486
|
+
descriptionStyle: ve,
|
|
1487
|
+
descriptionPadding: xe,
|
|
1488
|
+
showTextBoxOutline: C,
|
|
1489
|
+
showDescriptionPaddingControl: C,
|
|
1490
|
+
topPaddingControl: Ft ? Gt({
|
|
1491
|
+
P: o,
|
|
1492
|
+
controlKey: "titleTopPadding",
|
|
1493
|
+
scaled: v,
|
|
1494
|
+
height: E,
|
|
1495
|
+
paired: !1,
|
|
1496
|
+
side: "top"
|
|
1497
|
+
}) : void 0,
|
|
1498
|
+
bottomPaddingControl: bt ? Gt({
|
|
1499
|
+
P: o,
|
|
1500
|
+
controlKey: "titleBottomPadding",
|
|
1501
|
+
scaled: v,
|
|
1502
|
+
height: Lt,
|
|
1503
|
+
paired: !1,
|
|
1504
|
+
side: "bottom"
|
|
1505
|
+
}) : void 0
|
|
1506
|
+
}
|
|
1507
|
+
) }),
|
|
1508
|
+
a.map((L, H) => {
|
|
1509
|
+
const Ct = yn(L.gallery), Se = H < a.length - 1, Vt = Ct.filter((lt) => lt.lightboxMedia).map((lt) => lt.lightboxMedia), Ce = {
|
|
1510
|
+
P: o,
|
|
1511
|
+
position: I,
|
|
1512
|
+
titleRef: K(H),
|
|
1513
|
+
titleClassName: me,
|
|
1514
|
+
titleContainerStyle: ge,
|
|
1515
|
+
titleTextBoxStyle: z ? { maxWidth: "100%" } : fe,
|
|
1516
|
+
titleStyle: ue,
|
|
1517
|
+
descriptionClassName: ye,
|
|
1518
|
+
descriptionStyle: ve,
|
|
1519
|
+
descriptionPadding: xe,
|
|
1520
|
+
showTextBoxOutline: C && !z,
|
|
1521
|
+
showDescriptionPaddingControl: C && !z,
|
|
1522
|
+
descriptionPaddingPaired: gt,
|
|
1523
|
+
topPaddingControl: Ft && !z ? Gt({
|
|
1524
|
+
P: o,
|
|
1525
|
+
controlKey: "titleTopPadding",
|
|
1526
|
+
scaled: v,
|
|
1527
|
+
height: E,
|
|
1528
|
+
paired: gt,
|
|
1529
|
+
side: "top"
|
|
1530
|
+
}) : void 0,
|
|
1531
|
+
bottomPaddingControl: bt && !z ? Gt({
|
|
1532
|
+
P: o,
|
|
1533
|
+
controlKey: "titleBottomPadding",
|
|
1534
|
+
scaled: v,
|
|
1535
|
+
height: Lt,
|
|
1536
|
+
paired: gt,
|
|
1537
|
+
side: "bottom"
|
|
1538
|
+
}) : void 0
|
|
1539
|
+
};
|
|
1540
|
+
return /* @__PURE__ */ w(
|
|
1541
|
+
"div",
|
|
1542
|
+
{
|
|
1543
|
+
"data-item-index": H,
|
|
1544
|
+
className: `${o}-item ${o}-item-${s}`,
|
|
1545
|
+
style: {
|
|
1546
|
+
paddingBottom: Se ? v(Q) : void 0
|
|
1547
|
+
},
|
|
1548
|
+
children: [
|
|
1549
|
+
Xt && Le({
|
|
1550
|
+
P: o,
|
|
1551
|
+
controlKey: "titleLeftPadding",
|
|
1552
|
+
scaled: v,
|
|
1553
|
+
width: ut,
|
|
1554
|
+
maxFraction: Ot,
|
|
1555
|
+
side: "left",
|
|
1556
|
+
paired: gt,
|
|
1557
|
+
anchorStyle: p
|
|
1558
|
+
}),
|
|
1559
|
+
Nt && Le({
|
|
1560
|
+
P: o,
|
|
1561
|
+
controlKey: "titleRightPadding",
|
|
1562
|
+
scaled: v,
|
|
1563
|
+
width: Et,
|
|
1564
|
+
maxFraction: Ot,
|
|
1565
|
+
side: "right",
|
|
1566
|
+
paired: gt,
|
|
1567
|
+
anchorStyle: A
|
|
1568
|
+
}),
|
|
1569
|
+
C && Se && /* @__PURE__ */ i(
|
|
1570
|
+
"div",
|
|
1571
|
+
{
|
|
1572
|
+
"data-controls": "galleryPaddingBetween",
|
|
1573
|
+
"data-controls-axis": "y",
|
|
1574
|
+
"data-controls-variant": "row-padding",
|
|
1575
|
+
"data-controls-min": "0",
|
|
1576
|
+
className: `${o}-control-anchor`,
|
|
1577
|
+
style: {
|
|
1578
|
+
bottom: 0,
|
|
1579
|
+
height: v(P),
|
|
1580
|
+
...W
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
),
|
|
1584
|
+
m ? /* @__PURE__ */ w("div", { className: `${o}-gallery`, children: [
|
|
1585
|
+
/* @__PURE__ */ i("div", { className: `${o}-gallery-media`, children: Ct.map(({ displayMedia: lt, lightboxMedia: kt }, zt) => {
|
|
1586
|
+
const At = kt ? Vt.findIndex((ee) => ee.assetId === kt.assetId) : -1;
|
|
1587
|
+
return /* @__PURE__ */ i(
|
|
1588
|
+
Ie,
|
|
1589
|
+
{
|
|
1590
|
+
P: o,
|
|
1591
|
+
media: lt,
|
|
1592
|
+
imgWidth: g || void 0,
|
|
1593
|
+
cornerRadius: Z || void 0,
|
|
1594
|
+
imageDisplay: N,
|
|
1595
|
+
isEditor: n,
|
|
1596
|
+
galleryPaddingBetween: Q,
|
|
1597
|
+
showPaddingAfter: zt < Ct.length - 1,
|
|
1598
|
+
showControls: C,
|
|
1599
|
+
hasLightbox: f === "on",
|
|
1600
|
+
onMediaClick: ot && At >= 0 ? () => $e(Vt, At) : void 0
|
|
1601
|
+
},
|
|
1602
|
+
`${lt.assetId}-${zt}`
|
|
1603
|
+
);
|
|
1604
|
+
}) }),
|
|
1605
|
+
/* @__PURE__ */ i("div", { className: `${o}-title-layer`, children: /* @__PURE__ */ i(
|
|
1606
|
+
le,
|
|
1607
|
+
{
|
|
1608
|
+
...Ce,
|
|
1609
|
+
title: z ? "" : L.title,
|
|
1610
|
+
description: z ? "" : L.description
|
|
1611
|
+
}
|
|
1612
|
+
) })
|
|
1613
|
+
] }) : /* @__PURE__ */ w(xt, { children: [
|
|
1614
|
+
/* @__PURE__ */ i(
|
|
1615
|
+
le,
|
|
1616
|
+
{
|
|
1617
|
+
...Ce,
|
|
1618
|
+
title: z ? "" : L.title,
|
|
1619
|
+
description: z ? "" : L.description
|
|
1620
|
+
}
|
|
1621
|
+
),
|
|
1622
|
+
Ct.length > 0 && /* @__PURE__ */ i(
|
|
1623
|
+
zn,
|
|
1624
|
+
{
|
|
1625
|
+
P: o,
|
|
1626
|
+
layoutType: s,
|
|
1627
|
+
galleryWidthStyle: Dt,
|
|
1628
|
+
galleryPaddingRight: it,
|
|
1629
|
+
galleryPaddingLeft: rt,
|
|
1630
|
+
galleryPaddingRightWidth: Mt,
|
|
1631
|
+
galleryPaddingLeftWidth: It,
|
|
1632
|
+
galleryPaddingMaxFraction: Wt,
|
|
1633
|
+
showControls: C,
|
|
1634
|
+
scaled: v,
|
|
1635
|
+
children: Ct.map(({ displayMedia: lt, lightboxMedia: kt }, zt) => {
|
|
1636
|
+
const At = kt ? Vt.findIndex((ee) => ee.assetId === kt.assetId) : -1;
|
|
1637
|
+
return /* @__PURE__ */ i(
|
|
1638
|
+
Ie,
|
|
1639
|
+
{
|
|
1640
|
+
P: o,
|
|
1641
|
+
media: lt,
|
|
1642
|
+
cornerRadius: Z || void 0,
|
|
1643
|
+
fillGalleryWidth: !0,
|
|
1644
|
+
imageDisplay: N,
|
|
1645
|
+
isEditor: n,
|
|
1646
|
+
galleryPaddingBetween: Q,
|
|
1647
|
+
showPaddingAfter: zt < Ct.length - 1,
|
|
1648
|
+
showControls: C,
|
|
1649
|
+
hasLightbox: f === "on",
|
|
1650
|
+
onMediaClick: ot && At >= 0 ? () => $e(Vt, At) : void 0
|
|
1651
|
+
},
|
|
1652
|
+
`${lt.assetId}-${zt}`
|
|
1653
|
+
);
|
|
1654
|
+
})
|
|
1655
|
+
}
|
|
1656
|
+
)
|
|
1657
|
+
] })
|
|
1658
|
+
]
|
|
1659
|
+
},
|
|
1660
|
+
H
|
|
1661
|
+
);
|
|
1662
|
+
})
|
|
1663
|
+
]
|
|
1664
|
+
}
|
|
1665
|
+
) }),
|
|
1666
|
+
Ht && f === "on" && typeof document < "u" && t && (() => {
|
|
1667
|
+
const L = (c ? document.getElementById(c) : null) ?? document.body;
|
|
1668
|
+
return Je(
|
|
1669
|
+
/* @__PURE__ */ i("div", { style: Ze, "data-selection": "none", children: /* @__PURE__ */ i(
|
|
1670
|
+
kn,
|
|
1671
|
+
{
|
|
1672
|
+
prefix: o,
|
|
1673
|
+
items: Bt,
|
|
1674
|
+
index: Ye,
|
|
1675
|
+
imageDisplay: Cn(t.lightboxImageDisplay),
|
|
1676
|
+
isEditor: n,
|
|
1677
|
+
isPreviewMode: r,
|
|
1678
|
+
isEditMode: l,
|
|
1679
|
+
closeIcon: t.closeIcon,
|
|
1680
|
+
closeIconMaxWidth: t.closeIconMaxWidth,
|
|
1681
|
+
closeIconColor: t.closeIconColor,
|
|
1682
|
+
closeIconHoverColor: t.closeIconHoverColor,
|
|
1683
|
+
iconMarginRight: t.iconMarginRight,
|
|
1684
|
+
contentMarginTop: t.contentMarginTop,
|
|
1685
|
+
onClose: qe,
|
|
1686
|
+
onPrev: () => te((H) => (H - 1 + Bt.length) % Bt.length),
|
|
1687
|
+
onNext: () => te((H) => (H + 1) % Bt.length),
|
|
1688
|
+
counterClassName: Ue,
|
|
1689
|
+
counterStyle: Ke,
|
|
1690
|
+
backgroundColor: t.backgroundColor ?? dn
|
|
1691
|
+
}
|
|
1692
|
+
) }),
|
|
1693
|
+
L
|
|
1694
|
+
);
|
|
1695
|
+
})()
|
|
1696
|
+
] });
|
|
1697
|
+
}
|
|
1698
|
+
export {
|
|
1699
|
+
Yn as Mercury
|
|
1700
|
+
};
|