@devgateway/dvz-ui-react 1.7.14 → 1.7.16
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/cjs/embeddable/chart/Bar.js +1 -1
- package/dist/cjs/embeddable/chart/index.js +1 -1
- package/dist/cjs/embeddable/filtered-posts/FilteredPostsContent.js +1 -1
- package/dist/cjs/embeddable/posts-filter/index.js +1 -1
- package/dist/cjs/embeddable/tabbedposts/index.js +1 -1
- package/dist/cjs/embeddable/vertical-featuredtabs/index.js +2 -2
- package/dist/esm/embeddable/chart/Bar.js +199 -191
- package/dist/esm/embeddable/chart/index.js +465 -453
- package/dist/esm/embeddable/filtered-posts/FilteredPostsContent.js +16 -16
- package/dist/esm/embeddable/posts-filter/index.js +1 -1
- package/dist/esm/embeddable/tabbedposts/index.js +109 -165
- package/dist/esm/embeddable/vertical-featuredtabs/index.js +193 -243
- package/package.json +1 -1
|
@@ -1,123 +1,73 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { Container as
|
|
4
|
-
import { PostProvider as
|
|
5
|
-
import { connect as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
posts:
|
|
9
|
-
activeItem:
|
|
10
|
-
setActive:
|
|
11
|
-
colors:
|
|
1
|
+
import { jsx as e, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import H, { useState as b, useEffect as I, useRef as T, useLayoutEffect as V } from "react";
|
|
3
|
+
import { Container as P, Accordion as N, Icon as j } from "semantic-ui-react";
|
|
4
|
+
import { PostProvider as F, PostConsumer as K, MediaProvider as U, MediaConsumer as X, PostIcon as B, PostContent as L } from "@devgateway/wp-react-lib";
|
|
5
|
+
import { connect as J } from "react-redux";
|
|
6
|
+
import _ from "../connected-templates/PostIntro.js";
|
|
7
|
+
const Y = ({
|
|
8
|
+
posts: r,
|
|
9
|
+
activeItem: s,
|
|
10
|
+
setActive: m,
|
|
11
|
+
colors: h
|
|
12
12
|
}) => {
|
|
13
|
-
const [
|
|
14
|
-
|
|
15
|
-
), [
|
|
16
|
-
document.querySelectorAll(
|
|
17
|
-
|
|
13
|
+
const [l, u] = b(
|
|
14
|
+
r.findIndex((o) => o.slug === s)
|
|
15
|
+
), [a, w] = b(null), c = (o, t, d) => {
|
|
16
|
+
document.querySelectorAll(o).forEach((i) => {
|
|
17
|
+
i.querySelector(t) && i.classList.add(d);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
if (
|
|
22
|
-
const
|
|
20
|
+
I(() => {
|
|
21
|
+
if (a) {
|
|
22
|
+
const o = a.getBoundingClientRect().top + window.scrollY;
|
|
23
23
|
window.scrollTo({
|
|
24
|
-
top:
|
|
24
|
+
top: o,
|
|
25
25
|
behavior: "smooth"
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
c(
|
|
29
29
|
".ui.fluid.container.viz.featured.tabs",
|
|
30
30
|
".accordion",
|
|
31
31
|
"has-accordion"
|
|
32
|
-
),
|
|
32
|
+
), c(
|
|
33
33
|
".ui.fluid.container.viz.featured.tabs",
|
|
34
34
|
"blockquote",
|
|
35
35
|
"has-blockquote"
|
|
36
|
-
),
|
|
36
|
+
), c(
|
|
37
37
|
".ui.fluid.container.viz.featured.tabs",
|
|
38
38
|
".accordion .accordion-post-ft-title",
|
|
39
39
|
"has-accordion-title"
|
|
40
|
-
),
|
|
40
|
+
), c(
|
|
41
41
|
".ui.fluid.container.viz.featured.tabs",
|
|
42
42
|
".accordion .accordion-post-vft-content",
|
|
43
43
|
"has-accordion-content"
|
|
44
|
-
),
|
|
44
|
+
), c(
|
|
45
45
|
".ui.fluid.container.viz.featured.tabs",
|
|
46
46
|
".vt-accordion-post-intro figure",
|
|
47
47
|
"has-vt-accordion-figure"
|
|
48
|
-
),
|
|
48
|
+
), c(
|
|
49
49
|
".ui.fluid.container.viz.featured.tabs",
|
|
50
50
|
".content.active.accordion-post-content .wp-block-columns",
|
|
51
51
|
"has-wp-block-columns"
|
|
52
52
|
);
|
|
53
|
-
}, [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const t = e.querySelectorAll(
|
|
59
|
-
".accordion .legends.container.has-standard-12-font-size.bottom, .legends.container.items-section:not(.legends.container.top .items-section)"
|
|
60
|
-
);
|
|
61
|
-
if (t.length !== 0)
|
|
62
|
-
for (const u of t) {
|
|
63
|
-
if (u.closest(".legends.container.top"))
|
|
64
|
-
continue;
|
|
65
|
-
const P = u.closest(
|
|
66
|
-
".ui.fluid.container.content"
|
|
67
|
-
), v = P ? P.querySelector(".data-source") : null;
|
|
68
|
-
if (!v || u.offsetParent === null || v.offsetParent === null || u.offsetHeight === 0 || v.offsetHeight === 0)
|
|
69
|
-
continue;
|
|
70
|
-
const A = v.getBoundingClientRect(), y = u.getBoundingClientRect();
|
|
71
|
-
if (y.top === 0 || y.bottom === 0 || A.top === 0 || Math.abs(y.top) > 1e4 || Math.abs(A.top) > 1e4)
|
|
72
|
-
continue;
|
|
73
|
-
const B = window.getComputedStyle(v), T = window.getComputedStyle(u), _ = parseFloat(B.marginTop) || 0, $ = parseFloat(T.marginBottom) || 0, E = y.bottom + $, R = A.top - _;
|
|
74
|
-
if (E > R) {
|
|
75
|
-
const a = E - R;
|
|
76
|
-
v.style.marginTop = `${a + 20}px`;
|
|
77
|
-
}
|
|
78
|
-
const x = (h = u.closest(
|
|
79
|
-
".wp-block-column.is-layout-flow.wp-block-column-is-layout-flow"
|
|
80
|
-
)) == null ? void 0 : h.nextElementSibling;
|
|
81
|
-
if (x) {
|
|
82
|
-
const a = x.getBoundingClientRect(), b = window.getComputedStyle(x), N = Number.parseFloat(b.marginTop) || 0, k = a.top - N;
|
|
83
|
-
if (E > k) {
|
|
84
|
-
const z = E - k;
|
|
85
|
-
x.style.marginTop = `${z + 20}px`;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
const I = u.closest(".chart.container");
|
|
89
|
-
if (I) {
|
|
90
|
-
const a = I.getBoundingClientRect(), b = window.getComputedStyle(I), N = Number.parseFloat(b.marginBottom) || 0, k = a.bottom + N, z = Number.parseFloat(T.marginTop) || 0, D = y.top - z;
|
|
91
|
-
if (D < k) {
|
|
92
|
-
const W = k - D, V = Math.min(W + 20, 200);
|
|
93
|
-
u.style.marginTop = `${V}px`;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}, 150);
|
|
98
|
-
};
|
|
99
|
-
return m !== -1 && (n = setTimeout(() => {
|
|
100
|
-
document.querySelectorAll(".accordion").forEach((t) => s(t));
|
|
101
|
-
}, 0)), () => {
|
|
102
|
-
clearTimeout(n), o.forEach((e) => e.disconnect());
|
|
103
|
-
};
|
|
104
|
-
}, [m]);
|
|
105
|
-
const C = (n, o) => {
|
|
106
|
-
const { index: s } = o, e = m === s ? -1 : s;
|
|
107
|
-
f(e), p(i[s].slug), e !== -1 && w(n.currentTarget);
|
|
53
|
+
}, [a]), I(() => {
|
|
54
|
+
}, [l]);
|
|
55
|
+
const v = (o, t) => {
|
|
56
|
+
const { index: d } = t, n = l === d ? -1 : d;
|
|
57
|
+
u(n), m(r[d].slug), n !== -1 && w(o.currentTarget);
|
|
108
58
|
};
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
-
var
|
|
111
|
-
const
|
|
112
|
-
return /* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
|
|
59
|
+
return /* @__PURE__ */ e(N, { fluid: !0, styled: !0, children: r.map((o, t) => {
|
|
60
|
+
var n;
|
|
61
|
+
const d = (n = o.meta_fields) != null && n.icon ? o.meta_fields.icon[0] : null;
|
|
62
|
+
return /* @__PURE__ */ g(H.Fragment, { children: [
|
|
63
|
+
/* @__PURE__ */ e(
|
|
64
|
+
N.Title,
|
|
115
65
|
{
|
|
116
|
-
active:
|
|
117
|
-
index:
|
|
118
|
-
onClick: (
|
|
119
|
-
style: { backgroundColor:
|
|
120
|
-
children: /* @__PURE__ */
|
|
66
|
+
active: l === t,
|
|
67
|
+
index: t,
|
|
68
|
+
onClick: (i) => v(i, { index: t }),
|
|
69
|
+
style: { backgroundColor: h[`color_${t}`] },
|
|
70
|
+
children: /* @__PURE__ */ g(
|
|
121
71
|
"div",
|
|
122
72
|
{
|
|
123
73
|
style: {
|
|
@@ -127,247 +77,247 @@ const te = ({
|
|
|
127
77
|
width: "100%"
|
|
128
78
|
},
|
|
129
79
|
children: [
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
|
|
132
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center" }, children: [
|
|
81
|
+
d && /* @__PURE__ */ e(U, { id: d, children: /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(B, { className: "icon" }) }) }),
|
|
82
|
+
/* @__PURE__ */ e(_, { post: o, className: "vt-accordion-post-intro" })
|
|
133
83
|
] }),
|
|
134
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ e(j, { name: "chevron down" })
|
|
135
85
|
]
|
|
136
86
|
}
|
|
137
87
|
)
|
|
138
88
|
}
|
|
139
89
|
),
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
|
|
90
|
+
/* @__PURE__ */ e(
|
|
91
|
+
N.Content,
|
|
142
92
|
{
|
|
143
93
|
className: "accordion-post-content accordion-post-vft-content",
|
|
144
|
-
active:
|
|
145
|
-
children: /* @__PURE__ */
|
|
94
|
+
active: l === t,
|
|
95
|
+
children: /* @__PURE__ */ e(L, { post: o })
|
|
146
96
|
}
|
|
147
97
|
)
|
|
148
|
-
] },
|
|
98
|
+
] }, o.id);
|
|
149
99
|
}) });
|
|
150
|
-
},
|
|
151
|
-
post:
|
|
152
|
-
count:
|
|
153
|
-
backgroundColor:
|
|
154
|
-
active:
|
|
155
|
-
dimensions:
|
|
156
|
-
height:
|
|
157
|
-
coverWidth:
|
|
100
|
+
}, G = ({
|
|
101
|
+
post: r,
|
|
102
|
+
count: s,
|
|
103
|
+
backgroundColor: m,
|
|
104
|
+
active: h,
|
|
105
|
+
dimensions: l,
|
|
106
|
+
height: u,
|
|
107
|
+
coverWidth: a,
|
|
158
108
|
index: w,
|
|
159
|
-
editing:
|
|
160
|
-
clickToExpandLabel:
|
|
109
|
+
editing: c,
|
|
110
|
+
clickToExpandLabel: v
|
|
161
111
|
}) => {
|
|
162
|
-
const
|
|
163
|
-
return /* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
112
|
+
const o = r._embedded ? r._embedded["wp:featuredmedia"] : null, [t, d] = b(!1), n = c ? s - w : 1;
|
|
113
|
+
return /* @__PURE__ */ g("div", { className: "content-area", children: [
|
|
114
|
+
/* @__PURE__ */ g(
|
|
165
115
|
"div",
|
|
166
116
|
{
|
|
167
117
|
className: "cover",
|
|
168
118
|
style: {
|
|
169
|
-
width: `${
|
|
170
|
-
backgroundColor:
|
|
171
|
-
backgroundImage: `url(${
|
|
119
|
+
width: `${a}px`,
|
|
120
|
+
backgroundColor: m,
|
|
121
|
+
backgroundImage: `url(${o ? o[0].source_url : ""})`
|
|
172
122
|
},
|
|
173
|
-
onMouseEnter: () =>
|
|
174
|
-
onMouseLeave: () =>
|
|
123
|
+
onMouseEnter: () => d(!0),
|
|
124
|
+
onMouseLeave: () => d(!1),
|
|
175
125
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ e(
|
|
177
127
|
"div",
|
|
178
128
|
{
|
|
179
129
|
className: "rotator",
|
|
180
130
|
style: {
|
|
181
|
-
width: `${
|
|
182
|
-
transform: `translate(${
|
|
131
|
+
width: `${u}px`,
|
|
132
|
+
transform: `translate(${a / 2}px, 0px) rotate(90deg)`
|
|
183
133
|
},
|
|
184
|
-
children: /* @__PURE__ */
|
|
134
|
+
children: /* @__PURE__ */ e(_, { post: r })
|
|
185
135
|
}
|
|
186
136
|
),
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ g("div", { className: "overlay-label-container", children: [
|
|
138
|
+
/* @__PURE__ */ e(
|
|
189
139
|
"div",
|
|
190
140
|
{
|
|
191
|
-
className: `overlay-label ${
|
|
192
|
-
children:
|
|
141
|
+
className: `overlay-label ${t && !h ? "visible" : ""}`,
|
|
142
|
+
children: v || "CLICK TO EXPAND"
|
|
193
143
|
}
|
|
194
144
|
),
|
|
195
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ e("div", { className: "arrow-svg" })
|
|
196
146
|
] })
|
|
197
147
|
]
|
|
198
148
|
}
|
|
199
149
|
),
|
|
200
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ e(
|
|
201
151
|
"div",
|
|
202
152
|
{
|
|
203
|
-
className: `collapsable-content ${
|
|
153
|
+
className: `collapsable-content ${h ? "expanded" : "collapsed"}`,
|
|
204
154
|
style: {
|
|
205
155
|
backgroundColor: "#f9f9f9",
|
|
206
|
-
width: `${
|
|
207
|
-
marginLeft: `${
|
|
156
|
+
width: `${l.width - a * s}px`,
|
|
157
|
+
marginLeft: `${a * n}px`
|
|
208
158
|
},
|
|
209
|
-
children: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ e(L, { post: r })
|
|
210
160
|
}
|
|
211
161
|
)
|
|
212
162
|
] });
|
|
213
|
-
},
|
|
214
|
-
editing:
|
|
215
|
-
posts:
|
|
216
|
-
height:
|
|
217
|
-
colors:
|
|
218
|
-
coverWidth:
|
|
219
|
-
clickToExpandLabel:
|
|
163
|
+
}, Q = ({
|
|
164
|
+
editing: r,
|
|
165
|
+
posts: s,
|
|
166
|
+
height: m,
|
|
167
|
+
colors: h,
|
|
168
|
+
coverWidth: l,
|
|
169
|
+
clickToExpandLabel: u
|
|
220
170
|
}) => {
|
|
221
|
-
const [
|
|
222
|
-
|
|
171
|
+
const [a, w] = b(null), c = T(null), [v, o] = b({ width: 0, height: 0 }), t = T(null), d = (n) => {
|
|
172
|
+
a !== n && w(n);
|
|
223
173
|
};
|
|
224
|
-
return
|
|
225
|
-
|
|
226
|
-
}, [
|
|
227
|
-
var
|
|
228
|
-
(
|
|
229
|
-
width:
|
|
230
|
-
height:
|
|
231
|
-
}),
|
|
232
|
-
}, [
|
|
233
|
-
|
|
174
|
+
return I(() => {
|
|
175
|
+
s.length > 0 && a === null && r && w(s[0].slug);
|
|
176
|
+
}, [s, a, r]), V(() => {
|
|
177
|
+
var n, i, p, y;
|
|
178
|
+
(n = c.current) != null && n.parentElement && o({
|
|
179
|
+
width: r ? ((p = (i = c.current.parentElement) == null ? void 0 : i.parentElement) == null ? void 0 : p.offsetWidth) ?? 0 : ((y = c.current.parentElement) == null ? void 0 : y.offsetWidth) ?? 0,
|
|
180
|
+
height: c.current.offsetHeight
|
|
181
|
+
}), t.current && (t.current.style.overflow = r ? "visible" : "hidden");
|
|
182
|
+
}, [r]), /* @__PURE__ */ e(
|
|
183
|
+
P,
|
|
234
184
|
{
|
|
235
185
|
fluid: !0,
|
|
236
186
|
className: "vertical featured tabs",
|
|
237
|
-
ref:
|
|
238
|
-
children:
|
|
239
|
-
const
|
|
240
|
-
return /* @__PURE__ */
|
|
187
|
+
ref: t,
|
|
188
|
+
children: s == null ? void 0 : s.map((n, i) => {
|
|
189
|
+
const p = a ? n.slug === a : i === 0;
|
|
190
|
+
return /* @__PURE__ */ g(
|
|
241
191
|
"div",
|
|
242
192
|
{
|
|
243
|
-
ref:
|
|
244
|
-
onClick: () =>
|
|
245
|
-
className:
|
|
193
|
+
ref: c,
|
|
194
|
+
onClick: () => d(n.slug),
|
|
195
|
+
className: p ? "item expanded" : "item collapsed",
|
|
246
196
|
style: {
|
|
247
|
-
minHeight: `${
|
|
248
|
-
minWidth: `${
|
|
197
|
+
minHeight: `${m}px`,
|
|
198
|
+
minWidth: `${l}px`
|
|
249
199
|
},
|
|
250
200
|
children: [
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
|
|
201
|
+
/* @__PURE__ */ e("a", { id: n.slug }),
|
|
202
|
+
/* @__PURE__ */ e(
|
|
203
|
+
G,
|
|
254
204
|
{
|
|
255
|
-
editing:
|
|
256
|
-
coverWidth:
|
|
257
|
-
height:
|
|
258
|
-
backgroundColor:
|
|
259
|
-
count:
|
|
260
|
-
dimensions:
|
|
261
|
-
active:
|
|
262
|
-
post:
|
|
263
|
-
index:
|
|
264
|
-
clickToExpandLabel:
|
|
205
|
+
editing: r,
|
|
206
|
+
coverWidth: l,
|
|
207
|
+
height: m,
|
|
208
|
+
backgroundColor: h[`color_${i}`],
|
|
209
|
+
count: s.length,
|
|
210
|
+
dimensions: v,
|
|
211
|
+
active: p,
|
|
212
|
+
post: n,
|
|
213
|
+
index: i,
|
|
214
|
+
clickToExpandLabel: u
|
|
265
215
|
}
|
|
266
216
|
)
|
|
267
217
|
]
|
|
268
218
|
},
|
|
269
|
-
|
|
219
|
+
n.slug
|
|
270
220
|
);
|
|
271
221
|
})
|
|
272
222
|
}
|
|
273
223
|
);
|
|
274
|
-
},
|
|
275
|
-
var
|
|
224
|
+
}, Z = (r) => {
|
|
225
|
+
var k, A;
|
|
276
226
|
let {
|
|
277
|
-
"data-height":
|
|
278
|
-
"data-type":
|
|
279
|
-
"data-taxonomy":
|
|
280
|
-
"data-categories":
|
|
281
|
-
"data-count":
|
|
282
|
-
"data-colors":
|
|
227
|
+
"data-height": s,
|
|
228
|
+
"data-type": m,
|
|
229
|
+
"data-taxonomy": h,
|
|
230
|
+
"data-categories": l,
|
|
231
|
+
"data-count": u,
|
|
232
|
+
"data-colors": a,
|
|
283
233
|
"data-cover-width": w = 50,
|
|
284
|
-
"data-read-more-label":
|
|
285
|
-
"data-click-to-expand-label":
|
|
286
|
-
"data-preview-mode":
|
|
287
|
-
editing:
|
|
288
|
-
parent:
|
|
289
|
-
unique:
|
|
290
|
-
pageModuleProps:
|
|
291
|
-
} =
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
(((
|
|
295
|
-
),
|
|
296
|
-
var
|
|
297
|
-
return ((
|
|
298
|
-
}, [
|
|
234
|
+
"data-read-more-label": c = "READ More",
|
|
235
|
+
"data-click-to-expand-label": v = "CLICK TO EXPAND",
|
|
236
|
+
"data-preview-mode": o = "Desktop",
|
|
237
|
+
editing: t,
|
|
238
|
+
parent: d,
|
|
239
|
+
unique: n,
|
|
240
|
+
pageModuleProps: i
|
|
241
|
+
} = r;
|
|
242
|
+
i != null && i.previewMode && (i != null && i.editing) && (o = i.previewMode, t = i.editing);
|
|
243
|
+
const p = r.intl.locale, y = l || "[]", [z, O] = b(
|
|
244
|
+
(((k = window == null ? void 0 : window.visualViewport) == null ? void 0 : k.width) || window.innerWidth) <= 1365
|
|
245
|
+
), $ = () => {
|
|
246
|
+
var f, C, M;
|
|
247
|
+
return ((f = window.screen.orientation) == null ? void 0 : f.type) || ((((C = window == null ? void 0 : window.visualViewport) == null ? void 0 : C.width) || window.innerWidth) > (((M = window == null ? void 0 : window.visualViewport) == null ? void 0 : M.height) || window.innerHeight) ? "landscape-primary" : "portrait-primary");
|
|
248
|
+
}, [R, S] = b($()), x = () => {
|
|
299
249
|
setTimeout(() => {
|
|
300
|
-
var
|
|
301
|
-
|
|
302
|
-
(((
|
|
250
|
+
var f;
|
|
251
|
+
S($()), O(
|
|
252
|
+
(((f = window == null ? void 0 : window.visualViewport) == null ? void 0 : f.width) || window.innerWidth) <= 1365
|
|
303
253
|
);
|
|
304
254
|
}, 100);
|
|
305
255
|
};
|
|
306
|
-
|
|
256
|
+
I(() => (window.screen.orientation && window.screen.orientation.addEventListener(
|
|
307
257
|
"change",
|
|
308
|
-
|
|
309
|
-
), window.addEventListener("resize",
|
|
310
|
-
window.removeEventListener("resize",
|
|
258
|
+
x
|
|
259
|
+
), window.addEventListener("resize", x), () => {
|
|
260
|
+
window.removeEventListener("resize", x), window.screen.orientation && window.screen.orientation.removeEventListener(
|
|
311
261
|
"change",
|
|
312
|
-
|
|
262
|
+
x
|
|
313
263
|
);
|
|
314
264
|
}), []);
|
|
315
|
-
const
|
|
316
|
-
if (!
|
|
265
|
+
const D = (f) => t ? f : decodeURIComponent(f), E = (f) => {
|
|
266
|
+
if (!f) return null;
|
|
317
267
|
try {
|
|
318
|
-
return JSON.parse(
|
|
319
|
-
} catch (
|
|
320
|
-
console.error(`error parsing value:${
|
|
321
|
-
error:${
|
|
268
|
+
return JSON.parse(D(f));
|
|
269
|
+
} catch (C) {
|
|
270
|
+
console.error(`error parsing value:${f}
|
|
271
|
+
error:${C}`);
|
|
322
272
|
}
|
|
323
273
|
return null;
|
|
324
|
-
},
|
|
325
|
-
return /* @__PURE__ */
|
|
326
|
-
|
|
274
|
+
}, W = o !== "Desktop" && t, q = z && !t;
|
|
275
|
+
return /* @__PURE__ */ e(
|
|
276
|
+
P,
|
|
327
277
|
{
|
|
328
278
|
style: { maxWidth: "100%" },
|
|
329
|
-
className: `viz featured tabs ${
|
|
279
|
+
className: `viz featured tabs ${t ? "editing" : ""}`,
|
|
330
280
|
fluid: !0,
|
|
331
|
-
children: /* @__PURE__ */
|
|
332
|
-
|
|
281
|
+
children: /* @__PURE__ */ e(
|
|
282
|
+
F,
|
|
333
283
|
{
|
|
334
|
-
type:
|
|
335
|
-
locale:
|
|
336
|
-
taxonomy:
|
|
337
|
-
categories:
|
|
338
|
-
store: `vertical_tabs${
|
|
284
|
+
type: m,
|
|
285
|
+
locale: p,
|
|
286
|
+
taxonomy: h,
|
|
287
|
+
categories: E(y),
|
|
288
|
+
store: `vertical_tabs${d}_${n}`,
|
|
339
289
|
page: 1,
|
|
340
|
-
perPage:
|
|
341
|
-
children: /* @__PURE__ */
|
|
342
|
-
|
|
290
|
+
perPage: u,
|
|
291
|
+
children: /* @__PURE__ */ e(K, { children: q || W ? /* @__PURE__ */ e(
|
|
292
|
+
Y,
|
|
343
293
|
{
|
|
344
|
-
posts:
|
|
345
|
-
activeItem: (
|
|
346
|
-
colors:
|
|
294
|
+
posts: u,
|
|
295
|
+
activeItem: (A = u == null ? void 0 : u[0]) == null ? void 0 : A.slug,
|
|
296
|
+
colors: E(a),
|
|
347
297
|
setActive: () => {
|
|
348
298
|
}
|
|
349
299
|
}
|
|
350
|
-
) : /* @__PURE__ */
|
|
351
|
-
|
|
300
|
+
) : /* @__PURE__ */ e(
|
|
301
|
+
Q,
|
|
352
302
|
{
|
|
353
|
-
editing:
|
|
303
|
+
editing: t,
|
|
354
304
|
coverWidth: w,
|
|
355
|
-
moreLabel:
|
|
356
|
-
clickToExpandLabel:
|
|
357
|
-
colors:
|
|
358
|
-
height:
|
|
359
|
-
posts:
|
|
305
|
+
moreLabel: c,
|
|
306
|
+
clickToExpandLabel: v,
|
|
307
|
+
colors: E(a),
|
|
308
|
+
height: s,
|
|
309
|
+
posts: u
|
|
360
310
|
}
|
|
361
311
|
) })
|
|
362
312
|
}
|
|
363
313
|
)
|
|
364
314
|
},
|
|
365
|
-
|
|
315
|
+
R + Math.random()
|
|
366
316
|
);
|
|
367
|
-
},
|
|
368
|
-
const
|
|
369
|
-
return
|
|
370
|
-
},
|
|
317
|
+
}, ee = (r, s) => {
|
|
318
|
+
const m = r.getIn(["data", "pageModuleProps"]), h = {};
|
|
319
|
+
return m && (h.pageModuleProps = m), h;
|
|
320
|
+
}, te = {}, se = J(ee, te)(Z);
|
|
371
321
|
export {
|
|
372
|
-
|
|
322
|
+
se as default
|
|
373
323
|
};
|