@cntrl-site/components 1.0.112 → 1.0.114
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/ChroniclesComponent-DSeTsRpR.js +1 -0
- package/dist/{ChroniclesComponent-cZLqN307.mjs → ChroniclesComponent-DnjT4LDh.mjs} +3 -10
- package/dist/Components/FAQ/FAQ.d.ts +0 -1
- package/dist/{FAQ-BS-vO0l-.mjs → FAQ-CJHCMSBa.mjs} +77 -78
- package/dist/FAQ-DLh63Utr.js +166 -0
- package/dist/{components-DtO0Ti47.mjs → components-7yLwgeCc.mjs} +1 -1
- package/dist/{components-f82884Bk.js → components-D_Il3njP.js} +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +1 -1
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/sources.js +2 -6
- package/dist/sources.mjs +2 -6
- package/dist/types/SchemaV1.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ChroniclesComponent-FFenN7yL.js +0 -1
- package/dist/FAQ-Ct0YfqX1.js +0 -166
|
@@ -8,7 +8,7 @@ import { Grid as wt } from "./Grid-qbqchSLi.mjs";
|
|
|
8
8
|
import { Hive as Ht } from "./Hive-DyxYd5eg.mjs";
|
|
9
9
|
import { J as v, w as i, x as yt, y as mt, z as Wt } from "./utils-FxC9rcxw.mjs";
|
|
10
10
|
import { createListTextStylePanelTab as It, LIST_TEXT_STYLE_PREFIXES as E, applyListColumnCountChange as Pt, List as At, getListColumnTextSettingKey as l, COLUMN_TEXT_PREFIXES as kt, COLUMN_CONTENT_KEYS as B, normalizeListColumnVerticalAlign as zt, CUT_LABEL_TEXT_PREFIX as D, COLUMN_VALIGN_BASIC_OPTIONS as q } from "./List-Bh_-l9vD.mjs";
|
|
11
|
-
import { FAQ as Et } from "./FAQ-
|
|
11
|
+
import { FAQ as Et } from "./FAQ-CJHCMSBa.mjs";
|
|
12
12
|
import { STRIP_TEXT_STYLE_PREFIXES as H, createStripTextStylePanelTab as Bt, LightboxStrip as Dt, getStripTextStyleSettingKey as p } from "./LightboxStrip-YspzBP8N.mjs";
|
|
13
13
|
import { LightboxJournal as _t } from "./LightboxJournal-D59ex6wH.mjs";
|
|
14
14
|
import { ClickGallerie as jt } from "./ClickGallerie-Cjc_1Gxy.mjs";
|
|
@@ -5447,6 +5447,7 @@ const lt = {
|
|
|
5447
5447
|
},
|
|
5448
5448
|
settings: {
|
|
5449
5449
|
sizing: "auto",
|
|
5450
|
+
hideOpacityParameter: !0,
|
|
5450
5451
|
properties: {
|
|
5451
5452
|
wrapperWidth: {
|
|
5452
5453
|
type: "number",
|
|
@@ -5478,12 +5479,6 @@ const lt = {
|
|
|
5478
5479
|
title: "Style",
|
|
5479
5480
|
display: { type: "toggle-cycle", enum: ["solid", "dashed", "dotted"] }
|
|
5480
5481
|
},
|
|
5481
|
-
entryHoverEffect: {
|
|
5482
|
-
type: "string",
|
|
5483
|
-
scope: "common",
|
|
5484
|
-
title: "Effect",
|
|
5485
|
-
display: { type: "toggle-cycle", enum: ["none", "default"] }
|
|
5486
|
-
},
|
|
5487
5482
|
autoclose: {
|
|
5488
5483
|
type: "string",
|
|
5489
5484
|
scope: "common",
|
|
@@ -5652,7 +5647,6 @@ const lt = {
|
|
|
5652
5647
|
},
|
|
5653
5648
|
defaults: {
|
|
5654
5649
|
dividerStyle: "dotted",
|
|
5655
|
-
entryHoverEffect: "default",
|
|
5656
5650
|
autoclose: "off",
|
|
5657
5651
|
icon: "01M3QM74XGFBPMXNEQB1BXSD9E",
|
|
5658
5652
|
iconAnimation: "rotate 45",
|
|
@@ -5754,7 +5748,6 @@ const lt = {
|
|
|
5754
5748
|
"cellMinHeight",
|
|
5755
5749
|
"dividerWidth",
|
|
5756
5750
|
"dividerStyle",
|
|
5757
|
-
"entryHoverEffect",
|
|
5758
5751
|
"autoclose",
|
|
5759
5752
|
"icon",
|
|
5760
5753
|
"iconMaxWidth",
|
|
@@ -5770,7 +5763,7 @@ const lt = {
|
|
|
5770
5763
|
layout: [
|
|
5771
5764
|
"__componentName__",
|
|
5772
5765
|
{ type: "row", title: "", items: ["wrapperWidth", "cellMinHeight"] },
|
|
5773
|
-
{ type: "row", title: "", items: ["
|
|
5766
|
+
{ type: "row", title: "", items: ["autoclose"] },
|
|
5774
5767
|
{ type: "row", title: "Divider", items: ["dividerWidth", "dividerStyle"] },
|
|
5775
5768
|
{ type: "row", title: "Icon", items: ["icon", "iconMaxWidth"] },
|
|
5776
5769
|
{ type: "row", title: "", items: ["iconAnimation"] }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as h, Fragment as z, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as Ut, useEffect as K, useMemo as Q, useCallback as Y } from "react";
|
|
3
3
|
import Z from "classnames";
|
|
4
4
|
import { s as $ } from "./scalingValue-C9JH5L6O.mjs";
|
|
5
|
-
import { b as
|
|
6
|
-
import { u as
|
|
5
|
+
import { b as Xt } from "./buildColorVars-CLyWQm5K.mjs";
|
|
6
|
+
import { u as Et } from "./useScopedStyles-DhBG3557.mjs";
|
|
7
7
|
import { o as J, t as U } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
8
|
-
import { S as
|
|
9
|
-
import { R as
|
|
10
|
-
const X = 300, m = 4e-3,
|
|
8
|
+
import { S as Pt } from "./SvgImage-B5mR9y6q.mjs";
|
|
9
|
+
import { R as to } from "./RichTextRenderer-D52Xto59.mjs";
|
|
10
|
+
const X = 300, m = 4e-3, oo = {
|
|
11
11
|
questionColor: "question-color",
|
|
12
12
|
answerColor: "answer-color",
|
|
13
13
|
dividerColor: "divider-color",
|
|
@@ -16,8 +16,8 @@ const X = 300, m = 4e-3, eo = {
|
|
|
16
16
|
iconHoverColor: "icon-hover-color",
|
|
17
17
|
iconActiveColor: "icon-active-color",
|
|
18
18
|
dividerHoverColor: "divider-hover-color"
|
|
19
|
-
},
|
|
20
|
-
function
|
|
19
|
+
}, eo = ["hover", "focus", "filled", "success", "error"];
|
|
20
|
+
function no(t) {
|
|
21
21
|
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
22
22
|
}
|
|
23
23
|
function E(t, r, n, s) {
|
|
@@ -29,7 +29,7 @@ function P(t, r, n, s) {
|
|
|
29
29
|
[`--${n}-text-leading-gap`]: $((l - r) / 2, s)
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ao(t) {
|
|
33
33
|
return `
|
|
34
34
|
.${t}-wrapper {
|
|
35
35
|
box-sizing: border-box;
|
|
@@ -92,7 +92,7 @@ function ro(t) {
|
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: space-between;
|
|
95
|
-
gap: ${
|
|
95
|
+
gap: ${no(20)};
|
|
96
96
|
width: 100%;
|
|
97
97
|
min-width: 0;
|
|
98
98
|
min-height: var(--${t}-question-min-height, unset);
|
|
@@ -212,40 +212,39 @@ function tt(t, r, n, s, l, p, o, x) {
|
|
|
212
212
|
color: x ?? "#000000"
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
const { prefix: o } =
|
|
215
|
+
function go({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode: l, activeEvent: p }) {
|
|
216
|
+
const { prefix: o } = Et(), x = l ?? !1, {
|
|
217
217
|
wrapperWidth: g = 1,
|
|
218
218
|
cellMinHeight: _ = 0,
|
|
219
219
|
dividerWidth: ot = 694e-6,
|
|
220
220
|
dividerStyle: et = "solid",
|
|
221
|
-
entryHoverEffect: nt = "default",
|
|
222
221
|
autoclose: y = "off",
|
|
223
|
-
icon:
|
|
222
|
+
icon: nt,
|
|
224
223
|
iconMaxWidth: q = 833e-5,
|
|
225
224
|
iconPaddingRight: b = 0,
|
|
226
|
-
iconAnimation:
|
|
225
|
+
iconAnimation: at = "rotate 45",
|
|
227
226
|
questionColor: V = "#000000",
|
|
228
227
|
answerColor: B = "#000000",
|
|
229
|
-
dividerColor:
|
|
230
|
-
iconColor:
|
|
231
|
-
questionHoverColor:
|
|
232
|
-
iconHoverColor:
|
|
233
|
-
iconActiveColor:
|
|
234
|
-
dividerHoverColor:
|
|
235
|
-
questionFontFamily:
|
|
236
|
-
questionFontSettings:
|
|
228
|
+
dividerColor: rt = "#0000001F",
|
|
229
|
+
iconColor: it = "#000000",
|
|
230
|
+
questionHoverColor: st = "#666666",
|
|
231
|
+
iconHoverColor: lt = "#666666",
|
|
232
|
+
iconActiveColor: ct = "#000000",
|
|
233
|
+
dividerHoverColor: dt = "#000000",
|
|
234
|
+
questionFontFamily: ht,
|
|
235
|
+
questionFontSettings: mt,
|
|
237
236
|
questionFontSize: S,
|
|
238
237
|
questionLineHeight: C,
|
|
239
|
-
questionLetterSpacing:
|
|
240
|
-
questionWordSpacing:
|
|
241
|
-
questionTextAppearance:
|
|
242
|
-
answerFontFamily:
|
|
243
|
-
answerFontSettings:
|
|
238
|
+
questionLetterSpacing: pt,
|
|
239
|
+
questionWordSpacing: $t,
|
|
240
|
+
questionTextAppearance: gt,
|
|
241
|
+
answerFontFamily: ut,
|
|
242
|
+
answerFontSettings: vt,
|
|
244
243
|
answerFontSize: N,
|
|
245
244
|
answerLineHeight: T,
|
|
246
|
-
answerLetterSpacing:
|
|
247
|
-
answerWordSpacing:
|
|
248
|
-
answerTextAppearance:
|
|
245
|
+
answerLetterSpacing: ft,
|
|
246
|
+
answerWordSpacing: wt,
|
|
247
|
+
answerTextAppearance: xt,
|
|
249
248
|
questionPaddingLeft: L = 0,
|
|
250
249
|
questionPaddingTop: F = 0,
|
|
251
250
|
questionPaddingBottom: M = 0,
|
|
@@ -253,56 +252,56 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
253
252
|
answerPaddingRight: R = 0,
|
|
254
253
|
answerPaddingTop: k = 0,
|
|
255
254
|
answerPaddingBottom: H = 0
|
|
256
|
-
} = t,
|
|
255
|
+
} = t, yt = r ?? [], [u, I] = Ut(() => /* @__PURE__ */ new Set()), W = !n || s;
|
|
257
256
|
K(() => {
|
|
258
257
|
I(/* @__PURE__ */ new Set());
|
|
259
258
|
}, [y]), K(() => {
|
|
260
259
|
n && !l && !s && I(/* @__PURE__ */ new Set());
|
|
261
260
|
}, [n, l, s]);
|
|
262
|
-
const a = (i) => $(i, n ?? !1),
|
|
261
|
+
const a = (i) => $(i, n ?? !1), qt = Math.max(L, m), bt = Math.max(F, m), St = Math.max(M, m), Ct = Math.max(A, m), Nt = Math.max(R, m), Tt = Math.max(k, m), Lt = Math.max(H, m), Ft = Math.max(0, (g ?? 1) - b - q), Mt = Math.max(0, (g ?? 1) - R), At = Math.max(0, (g ?? 1) - A), Rt = Math.max(b, m), kt = Math.max(0, (g ?? 1) - L - q), Ht = Q(() => u.size === 0 ? 0 : Math.min(...u), [u]), It = Y((i) => u.has(i), [u]), Wt = W ? `${o}-entry-hover-default` : "", O = nt ?? "", zt = O !== "", _t = at.replace(/^rotate /, ""), j = `${o}-icon-anim-${_t}`, Vt = J(U(
|
|
263
262
|
tt(
|
|
263
|
+
ht,
|
|
264
264
|
mt,
|
|
265
|
-
pt,
|
|
266
265
|
S,
|
|
267
266
|
C,
|
|
267
|
+
pt,
|
|
268
268
|
$t,
|
|
269
269
|
gt,
|
|
270
|
-
ut,
|
|
271
270
|
V
|
|
272
271
|
),
|
|
273
272
|
n
|
|
274
|
-
)),
|
|
273
|
+
)), Bt = J(U(
|
|
275
274
|
tt(
|
|
275
|
+
ut,
|
|
276
276
|
vt,
|
|
277
|
-
ft,
|
|
278
277
|
N,
|
|
279
278
|
T,
|
|
279
|
+
ft,
|
|
280
280
|
wt,
|
|
281
281
|
xt,
|
|
282
|
-
yt,
|
|
283
282
|
B
|
|
284
283
|
),
|
|
285
284
|
n
|
|
286
|
-
)),
|
|
285
|
+
)), Ot = E(
|
|
287
286
|
S,
|
|
288
287
|
C,
|
|
289
288
|
`${o}-question`,
|
|
290
289
|
`${o}-text-tight-leading`
|
|
291
|
-
),
|
|
290
|
+
), jt = E(
|
|
292
291
|
N,
|
|
293
292
|
T,
|
|
294
293
|
`${o}-answer-text`,
|
|
295
294
|
`${o}-text-tight-leading`
|
|
296
|
-
),
|
|
295
|
+
), Dt = P(S, C, o, n), Gt = P(N, T, o, n), Kt = Xt(o, {
|
|
297
296
|
questionColor: V,
|
|
298
297
|
answerColor: B,
|
|
299
|
-
dividerColor:
|
|
300
|
-
iconColor:
|
|
301
|
-
questionHoverColor:
|
|
302
|
-
iconHoverColor:
|
|
303
|
-
iconActiveColor:
|
|
304
|
-
dividerHoverColor:
|
|
305
|
-
},
|
|
298
|
+
dividerColor: rt,
|
|
299
|
+
iconColor: it,
|
|
300
|
+
questionHoverColor: st,
|
|
301
|
+
iconHoverColor: lt,
|
|
302
|
+
iconActiveColor: ct,
|
|
303
|
+
dividerHoverColor: dt
|
|
304
|
+
}, oo, eo), Qt = p && p !== "default" ? `${o}-state-${p}` : "", Yt = Y((i) => {
|
|
306
305
|
W && I((c) => {
|
|
307
306
|
if (c.has(i)) {
|
|
308
307
|
const f = new Set(c);
|
|
@@ -313,31 +312,31 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
313
312
|
const d = new Set(c);
|
|
314
313
|
return d.add(i), d;
|
|
315
314
|
});
|
|
316
|
-
}, [W, y]),
|
|
315
|
+
}, [W, y]), Zt = Q(() => ao(o), [o]), Jt = {
|
|
317
316
|
[`--${o}-divider-width`]: $(ot, n ?? !1),
|
|
318
317
|
[`--${o}-divider-style`]: et,
|
|
319
318
|
[`--${o}-icon-max-width`]: $(q, n ?? !1),
|
|
320
319
|
..._ > 0 ? { [`--${o}-question-min-height`]: $(_, n ?? !1) } : {}
|
|
321
320
|
};
|
|
322
321
|
return /* @__PURE__ */ h(z, { children: [
|
|
323
|
-
/* @__PURE__ */ e("style", { dangerouslySetInnerHTML: { __html:
|
|
324
|
-
/* @__PURE__ */ e("div", { style:
|
|
322
|
+
/* @__PURE__ */ e("style", { dangerouslySetInnerHTML: { __html: Zt } }),
|
|
323
|
+
/* @__PURE__ */ e("div", { style: Kt, children: /* @__PURE__ */ e(
|
|
325
324
|
"div",
|
|
326
325
|
{
|
|
327
326
|
className: Z(
|
|
328
327
|
`${o}-wrapper`,
|
|
329
328
|
n && !s && `${o}-editor`,
|
|
330
|
-
|
|
331
|
-
|
|
329
|
+
Wt,
|
|
330
|
+
Qt
|
|
332
331
|
),
|
|
333
332
|
style: {
|
|
334
333
|
width: $(g, n ?? !1),
|
|
335
334
|
maxWidth: "100%",
|
|
336
|
-
...
|
|
335
|
+
...Jt
|
|
337
336
|
},
|
|
338
|
-
children:
|
|
337
|
+
children: yt.map((i, c) => {
|
|
339
338
|
var G;
|
|
340
|
-
const d =
|
|
339
|
+
const d = It(c), f = ((G = i.question) == null ? void 0 : G.trim()) ?? "", v = i.answer, D = ((v == null ? void 0 : v.length) ?? 0) > 0, w = x && c === Ht;
|
|
341
340
|
return /* @__PURE__ */ h(
|
|
342
341
|
"div",
|
|
343
342
|
{
|
|
@@ -360,7 +359,7 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
360
359
|
top: 0,
|
|
361
360
|
left: 0,
|
|
362
361
|
width: "100%",
|
|
363
|
-
height: a(
|
|
362
|
+
height: a(bt)
|
|
364
363
|
}
|
|
365
364
|
}
|
|
366
365
|
),
|
|
@@ -371,14 +370,14 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
371
370
|
"data-controls-axis": "x",
|
|
372
371
|
"data-controls-variant": "column-padding",
|
|
373
372
|
"data-controls-min": "0",
|
|
374
|
-
"data-controls-max-fraction": String(
|
|
373
|
+
"data-controls-max-fraction": String(Ft),
|
|
375
374
|
"data-controls-center-only-drag": "",
|
|
376
375
|
"data-controls-hit-placement": "center-x",
|
|
377
376
|
className: `${o}-control-anchor`,
|
|
378
377
|
style: {
|
|
379
378
|
top: 0,
|
|
380
379
|
left: 0,
|
|
381
|
-
width: a(
|
|
380
|
+
width: a(qt),
|
|
382
381
|
height: "100%"
|
|
383
382
|
}
|
|
384
383
|
}
|
|
@@ -391,14 +390,14 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
391
390
|
"data-controls-variant": "column-padding",
|
|
392
391
|
"data-controls-reverse": "",
|
|
393
392
|
"data-controls-min": "0",
|
|
394
|
-
"data-controls-max-fraction": String(
|
|
393
|
+
"data-controls-max-fraction": String(kt),
|
|
395
394
|
"data-controls-center-only-drag": "",
|
|
396
395
|
"data-controls-hit-placement": "center-x",
|
|
397
396
|
className: `${o}-control-anchor`,
|
|
398
397
|
style: {
|
|
399
398
|
top: 0,
|
|
400
399
|
right: 0,
|
|
401
|
-
width: a(
|
|
400
|
+
width: a(Rt),
|
|
402
401
|
height: "100%"
|
|
403
402
|
}
|
|
404
403
|
}
|
|
@@ -411,12 +410,12 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
411
410
|
className: `${o}-question-button`,
|
|
412
411
|
"aria-expanded": d,
|
|
413
412
|
style: {
|
|
414
|
-
...
|
|
415
|
-
...
|
|
413
|
+
...Vt,
|
|
414
|
+
...Dt,
|
|
416
415
|
paddingLeft: a(L),
|
|
417
416
|
paddingRight: a(b)
|
|
418
417
|
},
|
|
419
|
-
onClick: () =>
|
|
418
|
+
onClick: () => Yt(c),
|
|
420
419
|
children: [
|
|
421
420
|
F > 0 && /* @__PURE__ */ e(
|
|
422
421
|
"span",
|
|
@@ -427,9 +426,9 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
427
426
|
}
|
|
428
427
|
),
|
|
429
428
|
/* @__PURE__ */ h("span", { className: `${o}-question-row`, children: [
|
|
430
|
-
/* @__PURE__ */ e("span", { className:
|
|
431
|
-
D && (
|
|
432
|
-
|
|
429
|
+
/* @__PURE__ */ e("span", { className: Ot, children: f }),
|
|
430
|
+
D && (zt ? /* @__PURE__ */ e("span", { className: `${o}-icon ${o}-icon-custom ${j}`, "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
431
|
+
Pt,
|
|
433
432
|
{
|
|
434
433
|
url: O,
|
|
435
434
|
fill: `var(--${o}-icon-color)`,
|
|
@@ -463,7 +462,7 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
463
462
|
bottom: 0,
|
|
464
463
|
left: 0,
|
|
465
464
|
width: "100%",
|
|
466
|
-
height: a(
|
|
465
|
+
height: a(St)
|
|
467
466
|
}
|
|
468
467
|
}
|
|
469
468
|
)
|
|
@@ -484,7 +483,7 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
484
483
|
top: 0,
|
|
485
484
|
left: 0,
|
|
486
485
|
width: "100%",
|
|
487
|
-
height: a(
|
|
486
|
+
height: a(Tt)
|
|
488
487
|
}
|
|
489
488
|
}
|
|
490
489
|
),
|
|
@@ -495,14 +494,14 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
495
494
|
"data-controls-axis": "x",
|
|
496
495
|
"data-controls-variant": "column-padding",
|
|
497
496
|
"data-controls-min": "0",
|
|
498
|
-
"data-controls-max-fraction": String(
|
|
497
|
+
"data-controls-max-fraction": String(Mt),
|
|
499
498
|
"data-controls-center-only-drag": "",
|
|
500
499
|
"data-controls-hit-placement": "center-x",
|
|
501
500
|
className: `${o}-control-anchor`,
|
|
502
501
|
style: {
|
|
503
502
|
top: 0,
|
|
504
503
|
left: 0,
|
|
505
|
-
width: a(
|
|
504
|
+
width: a(Ct),
|
|
506
505
|
height: "100%"
|
|
507
506
|
}
|
|
508
507
|
}
|
|
@@ -515,14 +514,14 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
515
514
|
"data-controls-variant": "column-padding",
|
|
516
515
|
"data-controls-reverse": "",
|
|
517
516
|
"data-controls-min": "0",
|
|
518
|
-
"data-controls-max-fraction": String(
|
|
517
|
+
"data-controls-max-fraction": String(At),
|
|
519
518
|
"data-controls-center-only-drag": "",
|
|
520
519
|
"data-controls-hit-placement": "center-x",
|
|
521
520
|
className: `${o}-control-anchor`,
|
|
522
521
|
style: {
|
|
523
522
|
top: 0,
|
|
524
523
|
right: 0,
|
|
525
|
-
width: a(
|
|
524
|
+
width: a(Nt),
|
|
526
525
|
height: "100%"
|
|
527
526
|
}
|
|
528
527
|
}
|
|
@@ -540,12 +539,12 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
540
539
|
{
|
|
541
540
|
className: `${o}-answer`,
|
|
542
541
|
style: {
|
|
543
|
-
...
|
|
544
|
-
...
|
|
542
|
+
...Bt,
|
|
543
|
+
...Gt,
|
|
545
544
|
paddingLeft: a(A),
|
|
546
545
|
paddingRight: a(R)
|
|
547
546
|
},
|
|
548
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
547
|
+
children: /* @__PURE__ */ e("div", { className: jt, children: /* @__PURE__ */ e(to, { content: v }) })
|
|
549
548
|
}
|
|
550
549
|
),
|
|
551
550
|
H > 0 && /* @__PURE__ */ e(
|
|
@@ -569,7 +568,7 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
569
568
|
bottom: 0,
|
|
570
569
|
left: 0,
|
|
571
570
|
width: "100%",
|
|
572
|
-
height: a(
|
|
571
|
+
height: a(Lt)
|
|
573
572
|
}
|
|
574
573
|
}
|
|
575
574
|
)
|
|
@@ -584,5 +583,5 @@ function uo({ settings: t, content: r, isEditor: n, isPreviewMode: s, isEditMode
|
|
|
584
583
|
] });
|
|
585
584
|
}
|
|
586
585
|
export {
|
|
587
|
-
|
|
586
|
+
go as FAQ
|
|
588
587
|
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),m=require("react"),G=require("classnames"),p=require("./scalingValue-CSHYgTZl.js"),Gt=require("./buildColorVars-CE2D5cQV.js"),Kt=require("./useScopedStyles-Bf6yohVQ.js"),f=require("./textStylesToCss-CNN3zZTV.js"),Yt=require("./SvgImage-DFlmxAoL.js"),Zt=require("./RichTextRenderer-DEFXh5o6.js"),K=300,h=.004,Jt={questionColor:"question-color",answerColor:"answer-color",dividerColor:"divider-color",iconColor:"icon-color",questionHoverColor:"question-hover-color",iconHoverColor:"icon-hover-color",iconActiveColor:"icon-active-color",dividerHoverColor:"divider-hover-color"},Ut=["hover","focus","filled","success","error"];function Xt(t){return`calc(var(--cntrl-article-width, 100vw) * ${t/1440})`}function Y(t,r,n,s){return r!==void 0&&r<(t??.01)?`${n} ${s}`:n}function Z(t,r,n,s){const l=t??.01;return r===void 0||r>=l?{}:{[`--${n}-text-leading-gap`]:p.scalingValue((l-r)/2,s)}}function Et(t){return`
|
|
2
|
+
.${t}-wrapper {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
}
|
|
7
|
+
.${t}-item {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
position: relative;
|
|
11
|
+
border-bottom-width: var(--${t}-divider-width);
|
|
12
|
+
border-bottom-style: var(--${t}-divider-style);
|
|
13
|
+
border-bottom-color: var(--${t}-divider-color);
|
|
14
|
+
}
|
|
15
|
+
.${t}-item:first-child {
|
|
16
|
+
border-top-width: var(--${t}-divider-width);
|
|
17
|
+
border-top-style: var(--${t}-divider-style);
|
|
18
|
+
border-top-color: var(--${t}-divider-color);
|
|
19
|
+
}
|
|
20
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-item {
|
|
21
|
+
transition: border-color 250ms;
|
|
22
|
+
}
|
|
23
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-question-button {
|
|
24
|
+
transition: color 250ms;
|
|
25
|
+
}
|
|
26
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-item:not(.${t}-item-open):hover,
|
|
27
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-item:has(+ .${t}-item:not(.${t}-item-open):hover),
|
|
28
|
+
.${t}-wrapper.${t}-entry-hover-default.${t}-state-hover .${t}-item:not(.${t}-item-open) {
|
|
29
|
+
border-bottom-color: var(--${t}-divider-hover-color, var(--${t}-divider-color));
|
|
30
|
+
}
|
|
31
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-item:not(.${t}-item-open):hover:first-child,
|
|
32
|
+
.${t}-wrapper.${t}-entry-hover-default.${t}-state-hover .${t}-item:not(.${t}-item-open):first-child {
|
|
33
|
+
border-top-color: var(--${t}-divider-hover-color, var(--${t}-divider-color));
|
|
34
|
+
}
|
|
35
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-item:not(.${t}-item-open):hover .${t}-question-button,
|
|
36
|
+
.${t}-wrapper.${t}-entry-hover-default.${t}-state-hover .${t}-item:not(.${t}-item-open) .${t}-question-button {
|
|
37
|
+
color: var(--${t}-question-hover-color, var(--${t}-question-color));
|
|
38
|
+
}
|
|
39
|
+
.${t}-question-button {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
align-items: stretch;
|
|
43
|
+
width: 100%;
|
|
44
|
+
margin: 0;
|
|
45
|
+
border: none;
|
|
46
|
+
background: none;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
text-align: left;
|
|
49
|
+
color: var(--${t}-question-color);
|
|
50
|
+
font: inherit;
|
|
51
|
+
padding-left: 0;
|
|
52
|
+
outline: none;
|
|
53
|
+
-webkit-tap-highlight-color: transparent;
|
|
54
|
+
}
|
|
55
|
+
.${t}-question-button:focus,
|
|
56
|
+
.${t}-question-button:focus-visible {
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
59
|
+
.${t}-question-row {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: space-between;
|
|
63
|
+
gap: ${Xt(20)};
|
|
64
|
+
width: 100%;
|
|
65
|
+
min-width: 0;
|
|
66
|
+
min-height: var(--${t}-question-min-height, unset);
|
|
67
|
+
}
|
|
68
|
+
.${t}-editor .${t}-question-button {
|
|
69
|
+
cursor: default;
|
|
70
|
+
}
|
|
71
|
+
.${t}-question {
|
|
72
|
+
margin: 0;
|
|
73
|
+
flex: 1;
|
|
74
|
+
min-width: 0;
|
|
75
|
+
color: inherit;
|
|
76
|
+
white-space: pre-wrap;
|
|
77
|
+
overflow-wrap: anywhere;
|
|
78
|
+
word-break: break-word;
|
|
79
|
+
}
|
|
80
|
+
.${t}-text-tight-leading {
|
|
81
|
+
display: block;
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
padding-top: var(--${t}-text-leading-gap, 0);
|
|
84
|
+
padding-bottom: var(--${t}-text-leading-gap, 0);
|
|
85
|
+
}
|
|
86
|
+
.${t}-icon {
|
|
87
|
+
flex-shrink: 0;
|
|
88
|
+
width: var(--${t}-icon-max-width);
|
|
89
|
+
height: var(--${t}-icon-max-width);
|
|
90
|
+
position: relative;
|
|
91
|
+
transition: transform ${K}ms ease;
|
|
92
|
+
}
|
|
93
|
+
.${t}-icon-custom {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
}
|
|
98
|
+
.${t}-icon-image {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 50%;
|
|
101
|
+
left: 50%;
|
|
102
|
+
transform: translate(-50%, -50%);
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
transition: background-color 250ms;
|
|
106
|
+
}
|
|
107
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-item:not(.${t}-item-open):hover .${t}-icon-image,
|
|
108
|
+
.${t}-wrapper.${t}-entry-hover-default.${t}-state-hover .${t}-item:not(.${t}-item-open) .${t}-icon-image {
|
|
109
|
+
--fill: var(--${t}-icon-hover-color, var(--${t}-icon-color)) !important;
|
|
110
|
+
--hover-fill: var(--${t}-icon-hover-color, var(--${t}-icon-color)) !important;
|
|
111
|
+
}
|
|
112
|
+
.${t}-item-open .${t}-icon-image {
|
|
113
|
+
--fill: var(--${t}-icon-active-color, var(--${t}-icon-color)) !important;
|
|
114
|
+
--hover-fill: var(--${t}-icon-active-color, var(--${t}-icon-color)) !important;
|
|
115
|
+
}
|
|
116
|
+
.${t}-item-open .${t}-icon-anim-45 {
|
|
117
|
+
transform: rotate(45deg);
|
|
118
|
+
}
|
|
119
|
+
.${t}-item-open .${t}-icon-anim-90 {
|
|
120
|
+
transform: rotate(90deg);
|
|
121
|
+
}
|
|
122
|
+
.${t}-item-open .${t}-icon-anim-180 {
|
|
123
|
+
transform: rotate(180deg);
|
|
124
|
+
}
|
|
125
|
+
.${t}-panel {
|
|
126
|
+
display: grid;
|
|
127
|
+
grid-template-rows: 0fr;
|
|
128
|
+
transition: grid-template-rows ${K}ms ease;
|
|
129
|
+
}
|
|
130
|
+
.${t}-item-open .${t}-panel {
|
|
131
|
+
grid-template-rows: 1fr;
|
|
132
|
+
}
|
|
133
|
+
.${t}-panel-inner {
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
min-height: 0;
|
|
136
|
+
}
|
|
137
|
+
.${t}-answer {
|
|
138
|
+
color: var(--${t}-answer-color);
|
|
139
|
+
}
|
|
140
|
+
.${t}-answer-text {
|
|
141
|
+
margin: 0;
|
|
142
|
+
color: inherit;
|
|
143
|
+
white-space: pre-wrap;
|
|
144
|
+
overflow-wrap: anywhere;
|
|
145
|
+
word-break: break-word;
|
|
146
|
+
}
|
|
147
|
+
.${t}-answer-text a {
|
|
148
|
+
color: inherit;
|
|
149
|
+
text-decoration: underline;
|
|
150
|
+
text-underline-offset: 0.1em;
|
|
151
|
+
}
|
|
152
|
+
.${t}-padding-handle {
|
|
153
|
+
width: 100%;
|
|
154
|
+
flex-shrink: 0;
|
|
155
|
+
background: transparent;
|
|
156
|
+
}
|
|
157
|
+
.${t}-question-controls,
|
|
158
|
+
.${t}-answer-controls {
|
|
159
|
+
position: relative;
|
|
160
|
+
}
|
|
161
|
+
.${t}-control-anchor {
|
|
162
|
+
position: absolute;
|
|
163
|
+
pointer-events: none;
|
|
164
|
+
z-index: 2;
|
|
165
|
+
}
|
|
166
|
+
`}function J(t,r,n,s,l,g,e,y){return{fontSettings:{fontFamily:t,fontWeight:(r==null?void 0:r.fontWeight)??400,fontStyle:(r==null?void 0:r.fontStyle)??"normal"},fontSize:n??.01,lineHeight:s,letterSpacing:l??0,wordSpacing:g??0,textAppearance:e,color:y??"#000000"}}function Pt({settings:t,content:r,isEditor:n,isPreviewMode:s,isEditMode:l,activeEvent:g}){const{prefix:e}=Kt.useScopedStyles(),y=l??!1,{wrapperWidth:$=1,cellMinHeight:W=0,dividerWidth:U=694e-6,dividerStyle:X="solid",autoclose:q="off",icon:E,iconMaxWidth:b=.00833,iconPaddingRight:S=0,iconAnimation:P="rotate 45",questionColor:z="#000000",answerColor:_="#000000",dividerColor:tt="#0000001F",iconColor:et="#000000",questionHoverColor:ot="#666666",iconHoverColor:nt="#666666",iconActiveColor:at="#000000",dividerHoverColor:rt="#000000",questionFontFamily:it,questionFontSettings:st,questionFontSize:C,questionLineHeight:j,questionLetterSpacing:lt,questionWordSpacing:ct,questionTextAppearance:dt,answerFontFamily:ht,answerFontSettings:mt,answerFontSize:N,answerLineHeight:T,answerLetterSpacing:gt,answerWordSpacing:pt,answerTextAppearance:$t,questionPaddingLeft:L=0,questionPaddingTop:F=0,questionPaddingBottom:M=0,answerPaddingLeft:R=0,answerPaddingRight:A=0,answerPaddingTop:k=0,answerPaddingBottom:V=0}=t,ut=r??[],[u,H]=m.useState(()=>new Set),I=!n||s;m.useEffect(()=>{H(new Set)},[q]),m.useEffect(()=>{n&&!l&&!s&&H(new Set)},[n,l,s]);const a=i=>p.scalingValue(i,n??!1),vt=Math.max(L,h),xt=Math.max(F,h),wt=Math.max(M,h),ft=Math.max(R,h),yt=Math.max(A,h),qt=Math.max(k,h),bt=Math.max(V,h),St=Math.max(0,($??1)-S-b),Ct=Math.max(0,($??1)-A),jt=Math.max(0,($??1)-R),Nt=Math.max(S,h),Tt=Math.max(0,($??1)-L-b),Lt=m.useMemo(()=>u.size===0?0:Math.min(...u),[u]),Ft=m.useCallback(i=>u.has(i),[u]),Mt=I?`${e}-entry-hover-default`:"",B=E??"",Rt=B!=="",At=P.replace(/^rotate /,""),O=`${e}-icon-anim-${At}`,kt=f.omitTextColors(f.textStylesToCss(J(it,st,C,j,lt,ct,dt,z),n)),Vt=f.omitTextColors(f.textStylesToCss(J(ht,mt,N,T,gt,pt,$t,_),n)),Ht=Y(C,j,`${e}-question`,`${e}-text-tight-leading`),It=Y(N,T,`${e}-answer-text`,`${e}-text-tight-leading`),Wt=Z(C,j,e,n),zt=Z(N,T,e,n),_t=Gt.buildColorVars(e,{questionColor:z,answerColor:_,dividerColor:tt,iconColor:et,questionHoverColor:ot,iconHoverColor:nt,iconActiveColor:at,dividerHoverColor:rt},Jt,Ut),Bt=g&&g!=="default"?`${e}-state-${g}`:"",Ot=m.useCallback(i=>{I&&H(c=>{if(c.has(i)){const x=new Set(c);return x.delete(i),x}if(q==="on")return new Set([i]);const d=new Set(c);return d.add(i),d})},[I,q]),Dt=m.useMemo(()=>Et(e),[e]),Qt={[`--${e}-divider-width`]:p.scalingValue(U,n??!1),[`--${e}-divider-style`]:X,[`--${e}-icon-max-width`]:p.scalingValue(b,n??!1),...W>0?{[`--${e}-question-min-height`]:p.scalingValue(W,n??!1)}:{}};return o.jsxs(o.Fragment,{children:[o.jsx("style",{dangerouslySetInnerHTML:{__html:Dt}}),o.jsx("div",{style:_t,children:o.jsx("div",{className:G(`${e}-wrapper`,n&&!s&&`${e}-editor`,Mt,Bt),style:{width:p.scalingValue($,n??!1),maxWidth:"100%",...Qt},children:ut.map((i,c)=>{var Q;const d=Ft(c),x=((Q=i.question)==null?void 0:Q.trim())??"",v=i.answer,D=((v==null?void 0:v.length)??0)>0,w=y&&c===Lt;return o.jsxs("div",{className:G(`${e}-item`,d&&`${e}-item-open`),"data-faq-item":"",children:[o.jsxs("div",{className:`${e}-question-controls`,children:[w&&o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-controls":"questionPaddingTop","data-controls-axis":"y","data-controls-variant":"row-padding","data-controls-min":"0","data-controls-center-only-drag":"","data-controls-hit-placement":"left-y",className:`${e}-control-anchor`,style:{top:0,left:0,width:"100%",height:a(xt)}}),o.jsx("div",{"data-controls":"questionPaddingLeft","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-min":"0","data-controls-max-fraction":String(St),"data-controls-center-only-drag":"","data-controls-hit-placement":"center-x",className:`${e}-control-anchor`,style:{top:0,left:0,width:a(vt),height:"100%"}}),o.jsx("div",{"data-controls":"iconPaddingRight","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-reverse":"","data-controls-min":"0","data-controls-max-fraction":String(Tt),"data-controls-center-only-drag":"","data-controls-hit-placement":"center-x",className:`${e}-control-anchor`,style:{top:0,right:0,width:a(Nt),height:"100%"}})]}),o.jsxs("button",{type:"button",className:`${e}-question-button`,"aria-expanded":d,style:{...kt,...Wt,paddingLeft:a(L),paddingRight:a(S)},onClick:()=>Ot(c),children:[F>0&&o.jsx("span",{className:`${e}-padding-handle`,style:{height:a(F)},"aria-hidden":"true"}),o.jsxs("span",{className:`${e}-question-row`,children:[o.jsx("span",{className:Ht,children:x}),D&&(Rt?o.jsx("span",{className:`${e}-icon ${e}-icon-custom ${O}`,"aria-hidden":"true",children:o.jsx(Yt.SvgImage,{url:B,fill:`var(--${e}-icon-color)`,hoverFill:`var(--${e}-icon-hover-color, var(--${e}-icon-color))`,className:`${e}-icon-image`})}):o.jsx("span",{className:`${e}-icon ${e}-icon-default ${O}`,"aria-hidden":"true"}))]}),M>0&&o.jsx("span",{className:`${e}-padding-handle`,style:{height:a(M)},"aria-hidden":"true"})]}),w&&o.jsx("div",{"data-controls":"questionPaddingBottom","data-controls-axis":"y","data-controls-variant":"row-padding","data-controls-min":"0","data-controls-center-only-drag":"","data-controls-hit-placement":"left-y",className:`${e}-control-anchor`,style:{bottom:0,left:0,width:"100%",height:a(wt)}})]}),D&&v&&o.jsx("div",{className:`${e}-panel`,"aria-hidden":!d,children:o.jsx("div",{className:`${e}-panel-inner`,children:o.jsxs("div",{className:`${e}-answer-controls`,children:[w&&d&&o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-controls":"answerPaddingTop","data-controls-axis":"y","data-controls-variant":"row-padding","data-controls-min":"0","data-controls-center-only-drag":"","data-controls-hit-placement":"left-y",className:`${e}-control-anchor`,style:{top:0,left:0,width:"100%",height:a(qt)}}),o.jsx("div",{"data-controls":"answerPaddingLeft","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-min":"0","data-controls-max-fraction":String(Ct),"data-controls-center-only-drag":"","data-controls-hit-placement":"center-x",className:`${e}-control-anchor`,style:{top:0,left:0,width:a(ft),height:"100%"}}),o.jsx("div",{"data-controls":"answerPaddingRight","data-controls-axis":"x","data-controls-variant":"column-padding","data-controls-reverse":"","data-controls-min":"0","data-controls-max-fraction":String(jt),"data-controls-center-only-drag":"","data-controls-hit-placement":"center-x",className:`${e}-control-anchor`,style:{top:0,right:0,width:a(yt),height:"100%"}})]}),k>0&&o.jsx("div",{className:`${e}-padding-handle`,style:{height:a(k)}}),o.jsx("div",{className:`${e}-answer`,style:{...Vt,...zt,paddingLeft:a(R),paddingRight:a(A)},children:o.jsx("div",{className:It,children:o.jsx(Zt.RichTextRenderer,{content:v})})}),V>0&&o.jsx("div",{className:`${e}-padding-handle`,style:{height:a(V)}}),w&&d&&o.jsx("div",{"data-controls":"answerPaddingBottom","data-controls-axis":"y","data-controls-variant":"row-padding","data-controls-min":"0","data-controls-center-only-drag":"","data-controls-hit-placement":"left-y",className:`${e}-control-anchor`,style:{bottom:0,left:0,width:"100%",height:a(bt)}})]})})})]},c)})})})]})}exports.FAQ=Pt;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ControlSlider as e } from "./ControlSlider-DqKfaKMG.mjs";
|
|
2
2
|
import { ImageRevealSlider as t } from "./ImageRevealSlider-DifEXySR.mjs";
|
|
3
3
|
import { LightboxGallery as i } from "./Lightbox-BY99NS14.mjs";
|
|
4
|
-
import { C as o, F as r, O as p, M as n, a as l, T as s, b as a, G as c, H as y, L as g, c as m, d, e as u, S as b, W as h, f, g as v, h as C, i as x, B as S, P as k, j as I } from "./ChroniclesComponent-
|
|
4
|
+
import { C as o, F as r, O as p, M as n, a as l, T as s, b as a, G as c, H as y, L as g, c as m, d, e as u, S as b, W as h, f, g as v, h as C, i as x, B as S, P as k, j as I } from "./ChroniclesComponent-DnjT4LDh.mjs";
|
|
5
5
|
const j = {
|
|
6
6
|
element: e,
|
|
7
7
|
id: "control-slider",
|