@devgateway/dvz-ui-react 1.9.0 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/embeddable/big-number-trend/BigNumberTrendContainer.js +1 -1
- package/dist/cjs/embeddable/chart/Line.js +1 -1
- package/dist/cjs/embeddable/data-paragraph/index.js +1 -1
- package/dist/cjs/embeddable/download/dom-to-image.js +32 -1
- package/dist/cjs/embeddable/filter/index.js +1 -1
- package/dist/cjs/embeddable/grouped-bars/GroupedBars.js +1 -1
- package/dist/cjs/embeddable/map/index.js +2 -2
- package/dist/cjs/embeddable/newsletter/index.js +1 -1
- package/dist/cjs/embeddable/pagemodules/FloatingNavigator.js +1 -1
- package/dist/cjs/embeddable/pagemodules/index.js +1 -1
- package/dist/cjs/embeddable/sankeychart/index.js +1 -1
- package/dist/cjs/embeddable/showcase/index.js +1 -1
- package/dist/cjs/embeddable/tabbedposts/index.js +1 -1
- package/dist/cjs/embeddable/utils/parseUtils.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/tracker/InternalTrafficToggle.js +1 -1
- package/dist/cjs/tracker/InternalTrafficWatermark.js +1 -1
- package/dist/cjs/tracker/index.js +1 -1
- package/dist/cjs/tracker/internalTrafficUtils.js +1 -1
- package/dist/cjs/tracker/useInternalTrafficBypass.js +1 -1
- package/dist/esm/embeddable/big-number-trend/BigNumberTrendContainer.js +79 -79
- package/dist/esm/embeddable/chart/Line.js +209 -207
- package/dist/esm/embeddable/data-paragraph/index.js +119 -119
- package/dist/esm/embeddable/download/dom-to-image.js +32 -0
- package/dist/esm/embeddable/filter/index.js +113 -113
- package/dist/esm/embeddable/grouped-bars/GroupedBars.js +320 -316
- package/dist/esm/embeddable/map/index.js +32 -32
- package/dist/esm/embeddable/newsletter/index.js +19 -19
- package/dist/esm/embeddable/pagemodules/FloatingNavigator.js +14 -15
- package/dist/esm/embeddable/pagemodules/index.js +44 -45
- package/dist/esm/embeddable/sankeychart/index.js +145 -145
- package/dist/esm/embeddable/showcase/index.js +27 -27
- package/dist/esm/embeddable/tabbedposts/index.js +40 -39
- package/dist/esm/embeddable/utils/parseUtils.js +11 -3
- package/dist/esm/index.js +74 -73
- package/dist/esm/tracker/InternalTrafficToggle.js +30 -20
- package/dist/esm/tracker/InternalTrafficWatermark.js +42 -52
- package/dist/esm/tracker/index.js +9 -8
- package/dist/esm/tracker/internalTrafficUtils.js +18 -13
- package/dist/esm/tracker/useInternalTrafficBypass.js +13 -31
- package/dist/types/embeddable/chart/Line.d.ts +2 -0
- package/dist/types/tracker/InternalTrafficToggle.d.ts +1 -4
- package/dist/types/tracker/InternalTrafficWatermark.d.ts +0 -10
- package/dist/types/tracker/internalTrafficUtils.d.ts +1 -14
- package/dist/types/tracker/useInternalTrafficBypass.d.ts +4 -10
- package/package.json +1 -1
|
@@ -21,12 +21,12 @@ const Ja = [
|
|
|
21
21
|
const {
|
|
22
22
|
unique: c,
|
|
23
23
|
editing: s,
|
|
24
|
-
"data-filters":
|
|
24
|
+
"data-filters": E = "{}",
|
|
25
25
|
"data-app": i = "csv",
|
|
26
|
-
"data-csv":
|
|
26
|
+
"data-csv": k = "",
|
|
27
27
|
"data-dimension1": M = "",
|
|
28
28
|
"data-dimension2": P = "",
|
|
29
|
-
"data-measures": u =
|
|
29
|
+
"data-measures": u = "[]",
|
|
30
30
|
"data-height": O = 600,
|
|
31
31
|
width: V = 960,
|
|
32
32
|
"data-data-source-text": W = "",
|
|
@@ -39,15 +39,15 @@ const Ja = [
|
|
|
39
39
|
"data-map-file": J,
|
|
40
40
|
"data-mapping-field": K = "zone",
|
|
41
41
|
"data-map-label-field": q = "admin",
|
|
42
|
-
"data-has-multiple-measures":
|
|
42
|
+
"data-has-multiple-measures": C = "false",
|
|
43
43
|
topoJSONField: Y = "collection",
|
|
44
44
|
"data-map-center": $ = "NGA",
|
|
45
45
|
//country
|
|
46
|
-
"data-map-label-show-value":
|
|
47
|
-
"data-show-tooltip":
|
|
46
|
+
"data-map-label-show-value": y = "false",
|
|
47
|
+
"data-show-tooltip": F = "true",
|
|
48
48
|
"data-measure-selector-label": Q = "",
|
|
49
49
|
"data-value-format": X = "",
|
|
50
|
-
"data-show-overall-value":
|
|
50
|
+
"data-show-overall-value": v = "false",
|
|
51
51
|
"data-auto-generate-breaks": L = "false",
|
|
52
52
|
"data-number-of-breaks": _ = 5,
|
|
53
53
|
"data-scheme": aa = "reds",
|
|
@@ -74,10 +74,10 @@ const Ja = [
|
|
|
74
74
|
{label}: %({value},2)`,
|
|
75
75
|
"data-show-no-data-tooltip": I = "false",
|
|
76
76
|
"data-map-container-bg-color": ha = "#fff",
|
|
77
|
-
"data-map-position":
|
|
78
|
-
"data-main-layer-id":
|
|
79
|
-
"data-enabled-layers":
|
|
80
|
-
"data-point-label-color":
|
|
77
|
+
"data-map-position": Ca = "{}",
|
|
78
|
+
"data-main-layer-id": ya = "",
|
|
79
|
+
"data-enabled-layers": Fa,
|
|
80
|
+
"data-point-label-color": va = "#fff",
|
|
81
81
|
"data-point-label-format": La = "{locationName} %({value},2)",
|
|
82
82
|
"data-show-no-data-legend-item": N = !1,
|
|
83
83
|
"data-highlighted-loc-label-format": wa = "{locationName} - Score: #({value},2)",
|
|
@@ -91,9 +91,9 @@ const Ja = [
|
|
|
91
91
|
"data-no-data-text": za = "No Data",
|
|
92
92
|
"data-labels-exclusion-list": Ta = "",
|
|
93
93
|
"data-custom-measure-labels": xa = "{}",
|
|
94
|
-
"data-show-shading-layer-labels":
|
|
94
|
+
"data-show-shading-layer-labels": Ua = "ifUnitHasData",
|
|
95
95
|
"data-dvz-proxy-dataset-id": f,
|
|
96
|
-
"data-recently-toggled-layer-id":
|
|
96
|
+
"data-recently-toggled-layer-id": Aa = null,
|
|
97
97
|
intl: Xa,
|
|
98
98
|
settings: _a
|
|
99
99
|
} = n, Ba = (a) => s ? a : decodeURIComponent(a), o = (a) => {
|
|
@@ -107,22 +107,22 @@ const Ja = [
|
|
|
107
107
|
}, Ra = (a) => {
|
|
108
108
|
let t = o(a) || [];
|
|
109
109
|
return t = t.map((e) => (e.min && (e.min = parseFloat(e.min)), e.max && (e.max = parseFloat(e.max)), e.color = decodeURIComponent(e.color), e)), t;
|
|
110
|
-
},
|
|
110
|
+
}, Ea = (a) => {
|
|
111
111
|
const t = o(a) || [];
|
|
112
112
|
let e = {};
|
|
113
113
|
return t && t.forEach ? t.forEach((m) => {
|
|
114
114
|
m.value != null && m.value.filter((R) => R != null && R.toString().trim() != "").length > 0 && (e[m.param] = m.value);
|
|
115
115
|
}) : e = t, e;
|
|
116
|
-
},
|
|
116
|
+
}, ka = {
|
|
117
117
|
style: p === "compacted" ? "decimal" : p,
|
|
118
118
|
notation: p === "compacted" ? "compact" : "standard",
|
|
119
119
|
currency: da,
|
|
120
120
|
minimumFractionDigits: parseInt(D),
|
|
121
121
|
maximumFractionDigits: parseInt(D)
|
|
122
122
|
};
|
|
123
|
-
let g = o(
|
|
123
|
+
let g = o(Fa) || [];
|
|
124
124
|
g = g.map((a) => (a.bgColor = decodeURIComponent(a.bgColor), a.fontColor = decodeURIComponent(a.fontColor), a));
|
|
125
|
-
const x = Ja.find((a) => a.value === $),
|
|
125
|
+
const x = Ja.find((a) => a.value === $), U = C == !0 || C == "true";
|
|
126
126
|
let l = [M, P].filter((a) => a != "none" && a != null).join("/");
|
|
127
127
|
const d = {
|
|
128
128
|
unique: c,
|
|
@@ -143,11 +143,11 @@ const Ja = [
|
|
|
143
143
|
mapLabelField: q,
|
|
144
144
|
zoomEnabled: b == !0 || b == "true",
|
|
145
145
|
showLegendLabels: h == !0 || h == "true",
|
|
146
|
-
multipleMeasures:
|
|
146
|
+
multipleMeasures: U,
|
|
147
147
|
app: i,
|
|
148
|
-
mapLabelShowValue:
|
|
149
|
-
showTooltip:
|
|
150
|
-
showOverallValue:
|
|
148
|
+
mapLabelShowValue: y == !0 || y == "true",
|
|
149
|
+
showTooltip: F == !0 || F == "true",
|
|
150
|
+
showOverallValue: v == !0 || v == "true",
|
|
151
151
|
measureSelectorLabel: Q,
|
|
152
152
|
valueFormat: X,
|
|
153
153
|
autoGenerateBreaks: L == !0 || L == "true",
|
|
@@ -163,7 +163,7 @@ const Ja = [
|
|
|
163
163
|
legendFontSize: na,
|
|
164
164
|
legendFontWeight: sa,
|
|
165
165
|
customTooltips: o(ia) || [],
|
|
166
|
-
format:
|
|
166
|
+
format: ka,
|
|
167
167
|
tooltipFontSize: ma,
|
|
168
168
|
showAdminUnitLabel: ca,
|
|
169
169
|
mapNoDataColor: decodeURIComponent(ua),
|
|
@@ -174,10 +174,10 @@ const Ja = [
|
|
|
174
174
|
showNoDataTooltip: I == !0 || I == "true",
|
|
175
175
|
fields: l.split("/"),
|
|
176
176
|
mapContainerBgColor: decodeURIComponent(ha),
|
|
177
|
-
mapPosition: o(
|
|
178
|
-
mainLayerId:
|
|
177
|
+
mapPosition: o(Ca),
|
|
178
|
+
mainLayerId: ya,
|
|
179
179
|
enabledLayers: g,
|
|
180
|
-
pointLabelColor: decodeURIComponent(
|
|
180
|
+
pointLabelColor: decodeURIComponent(va),
|
|
181
181
|
pointLabelFormat: La,
|
|
182
182
|
showNoDataLegendItem: N == !0 || N == "true",
|
|
183
183
|
highlightedLocLabelFormat: wa,
|
|
@@ -188,21 +188,21 @@ const Ja = [
|
|
|
188
188
|
zoomOnFilterField: Na,
|
|
189
189
|
noDataText: za,
|
|
190
190
|
labelsExclusionList: Ta.split(",").map((a) => a.trim()),
|
|
191
|
-
showShadingLayerLabels:
|
|
191
|
+
showShadingLayerLabels: Ua,
|
|
192
192
|
dvzProxyDatasetId: f,
|
|
193
|
-
recentlyToggledLayerId:
|
|
193
|
+
recentlyToggledLayerId: Aa
|
|
194
194
|
};
|
|
195
195
|
if (d.recentlyToggledLayerId) {
|
|
196
196
|
const a = d.enabledLayers.find((t) => String(t.id) === String(d.recentlyToggledLayerId));
|
|
197
197
|
a && (a != null && a.apiField) && (l = (B = a.apiField) == null ? void 0 : B.toLowerCase());
|
|
198
198
|
}
|
|
199
|
-
const Ma = o(xa) || {}, Pa = i === "csv" ? Ha : Za, Oa = s ? (o(u) || []).join(",") : u,
|
|
200
|
-
return f && (
|
|
199
|
+
const Ma = o(xa) || {}, Pa = i === "csv" ? Ha : Za, Oa = s ? (o(u) || []).join(",") : u, A = Ea(E);
|
|
200
|
+
return f && (A.dvzProxyDatasetId = f), /* @__PURE__ */ r(
|
|
201
201
|
Wa,
|
|
202
202
|
{
|
|
203
|
-
params:
|
|
203
|
+
params: A,
|
|
204
204
|
app: i,
|
|
205
|
-
csv: decodeURIComponent(
|
|
205
|
+
csv: decodeURIComponent(k),
|
|
206
206
|
group: S,
|
|
207
207
|
editing: s,
|
|
208
208
|
store: [i, c, ...l.split("/")],
|
|
@@ -211,7 +211,7 @@ const Ja = [
|
|
|
211
211
|
Pa,
|
|
212
212
|
{
|
|
213
213
|
measures: Oa,
|
|
214
|
-
multipleMeasures:
|
|
214
|
+
multipleMeasures: U,
|
|
215
215
|
mapType: z,
|
|
216
216
|
aggregationFormula: Da,
|
|
217
217
|
customMeasureLabels: Ma,
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Input as
|
|
3
|
+
import { Input as p, Button as v, Message as c } from "semantic-ui-react";
|
|
4
4
|
import { connect as x } from "react-redux";
|
|
5
5
|
import { setEmail as S, newsletterSubscription as C } from "../reducers/embeddable.js";
|
|
6
6
|
const I = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/, P = (e) => {
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
e.onSubmit({ email:
|
|
7
|
+
const i = () => {
|
|
8
|
+
const s = e["data-list"], n = e["data-tag"], { email: f } = e;
|
|
9
|
+
e.onSubmit({ email: f, list: s, tag: n });
|
|
10
10
|
}, {
|
|
11
11
|
status: l,
|
|
12
12
|
editing: o,
|
|
13
|
-
list: k,
|
|
14
|
-
placeholder: d = "enter your email address",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
label:
|
|
18
|
-
tag: y,
|
|
13
|
+
"data-list": k,
|
|
14
|
+
"data-placeholder": d = "enter your email address",
|
|
15
|
+
"data-success-message": u = "Thanks",
|
|
16
|
+
"data-failure-message": g = "Something didn't go well",
|
|
17
|
+
"data-label": h = "Send",
|
|
18
|
+
"data-tag": y,
|
|
19
19
|
email: r,
|
|
20
|
-
onChange:
|
|
20
|
+
onChange: w
|
|
21
21
|
} = e;
|
|
22
|
-
let
|
|
23
|
-
(l === "OK" || o) && (
|
|
24
|
-
const
|
|
22
|
+
let a = "";
|
|
23
|
+
(l === "OK" || o) && (a = /* @__PURE__ */ t(c, { success: !0, children: /* @__PURE__ */ t("p", { children: u }) })), (l === "ERROR" || o) && (a = /* @__PURE__ */ t(c, { negative: !0, children: /* @__PURE__ */ t("p", { children: g }) }));
|
|
24
|
+
const b = I.test(r);
|
|
25
25
|
return /* @__PURE__ */ m("div", { className: "viz newsLetter", children: [
|
|
26
26
|
/* @__PURE__ */ m("div", { className: "viz newsLetter form", children: [
|
|
27
27
|
/* @__PURE__ */ t(
|
|
28
|
-
|
|
28
|
+
p,
|
|
29
29
|
{
|
|
30
30
|
icon: "envelope",
|
|
31
31
|
name: "email",
|
|
32
32
|
value: r,
|
|
33
|
-
onChange: (s,
|
|
33
|
+
onChange: (s, n) => w(n.value),
|
|
34
34
|
iconPosition: "left",
|
|
35
35
|
placeholder: d
|
|
36
36
|
}
|
|
37
37
|
),
|
|
38
|
-
/* @__PURE__ */ t(v, { disabled: !
|
|
38
|
+
/* @__PURE__ */ t(v, { disabled: !b, primary: !0, onClick: (s) => i(), children: h })
|
|
39
39
|
] }),
|
|
40
|
-
|
|
40
|
+
a
|
|
41
41
|
] });
|
|
42
|
-
}, R = (e,
|
|
42
|
+
}, R = (e, i) => ({
|
|
43
43
|
status: e.getIn(["embeddable", "newsletter", "status"]),
|
|
44
44
|
email: e.getIn(["embeddable", "newsletter", "email"])
|
|
45
45
|
}), j = {
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Menu as
|
|
4
|
-
|
|
3
|
+
import { Menu as c, Image as a, Label as m } from "semantic-ui-react";
|
|
4
|
+
import { decode as d } from "html-entities";
|
|
5
|
+
function f(t) {
|
|
5
6
|
const r = () => 10, o = t ? document.getElementById(t) : null;
|
|
6
7
|
if (o) {
|
|
7
|
-
const
|
|
8
|
+
const i = o.getBoundingClientRect().top + window.pageYOffset;
|
|
8
9
|
window.scroll({
|
|
9
|
-
top:
|
|
10
|
+
top: i - r(),
|
|
10
11
|
behavior: "smooth"
|
|
11
12
|
});
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
-
return t ? t.toString()
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */ n(i.Item, { header: !0, children: c }),
|
|
22
|
-
o.map((e) => /* @__PURE__ */ l(i.Item, { active: e.active, onClick: () => d(e.id), children: [
|
|
15
|
+
const s = function(t) {
|
|
16
|
+
return t ? d(t.toString()) : "";
|
|
17
|
+
}, b = (t) => {
|
|
18
|
+
const { contextRef: r, sections: o = [], navTitle: i, toTopLabel: p } = t;
|
|
19
|
+
return /* @__PURE__ */ n("div", { className: "left navigator", children: /* @__PURE__ */ l(c, { vertical: !0, children: [
|
|
20
|
+
/* @__PURE__ */ n(c.Item, { header: !0, children: i }),
|
|
21
|
+
o.map((e) => /* @__PURE__ */ l(c.Item, { active: e.active, onClick: () => f(e.id), children: [
|
|
23
22
|
e.iconComponent ? e.iconComponent : /* @__PURE__ */ n(a, { src: e.icon }),
|
|
24
|
-
/* @__PURE__ */ n(m, { basic: !0, children:
|
|
23
|
+
/* @__PURE__ */ n(m, { basic: !0, children: s(e.label) })
|
|
25
24
|
] }, e.label))
|
|
26
25
|
] }) });
|
|
27
26
|
};
|
|
28
27
|
export {
|
|
29
|
-
|
|
28
|
+
b as default
|
|
30
29
|
};
|
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Menu as g, Image as x, Container as b } from "semantic-ui-react";
|
|
3
3
|
import { InView as M } from "react-intersection-observer";
|
|
4
|
-
import T, { useEffect as N, useState as
|
|
4
|
+
import T, { useEffect as N, useState as I, useCallback as S } from "react";
|
|
5
5
|
import { PageProvider as w, PageConsumer as k, MediaProvider as _, MediaConsumer as p, PostContent as y } from "@devgateway/wp-react-lib";
|
|
6
6
|
import { injectIntl as H } from "react-intl";
|
|
7
7
|
import { connect as L } from "react-redux";
|
|
8
8
|
import { setPageModuleProps as $ } from "../reducers/data.js";
|
|
9
9
|
import j from "./FloatingNavigator.js";
|
|
10
|
+
import { decode as E } from "html-entities";
|
|
10
11
|
const P = function(e) {
|
|
11
|
-
return e ? e.toString()
|
|
12
|
-
|
|
13
|
-
}) : "";
|
|
14
|
-
}, E = ({ title: e, subtitle: n, icon: r, media: o }) => /* @__PURE__ */ f(g, { className: "header title", text: !0, children: [
|
|
12
|
+
return e ? E(e.toString()) : "";
|
|
13
|
+
}, O = ({ title: e, subtitle: o, icon: r, media: n }) => /* @__PURE__ */ f(g, { className: "header title", text: !0, children: [
|
|
15
14
|
/* @__PURE__ */ t(g.Item, { children: /* @__PURE__ */ t(
|
|
16
15
|
x,
|
|
17
16
|
{
|
|
18
|
-
src:
|
|
19
|
-
alt:
|
|
17
|
+
src: n && n.guid ? n.guid.rendered : r,
|
|
18
|
+
alt: n && n.alt_text ? n.alt_text : ""
|
|
20
19
|
}
|
|
21
20
|
) }),
|
|
22
21
|
/* @__PURE__ */ t(g.Header, { children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ f("h2", { className: "page-module-title", children: [
|
|
23
22
|
e,
|
|
24
|
-
/* @__PURE__ */ t("span", { style: { display: "block" }, className: "page-module-subtitle", children:
|
|
23
|
+
/* @__PURE__ */ t("span", { style: { display: "block" }, className: "page-module-subtitle", children: o })
|
|
25
24
|
] }) }) })
|
|
26
|
-
] }),
|
|
27
|
-
var
|
|
28
|
-
return /* @__PURE__ */ t("img", { src: (
|
|
29
|
-
},
|
|
25
|
+
] }), R = (e) => {
|
|
26
|
+
var o;
|
|
27
|
+
return /* @__PURE__ */ t("img", { src: (o = e.media) != null && o.guid ? e.media.guid.rendered : null, alt: "" });
|
|
28
|
+
}, q = ({ page: e, locale: o }) => {
|
|
30
29
|
var r;
|
|
31
30
|
return /* @__PURE__ */ f(b, { fluid: !0, className: `section ${e.slug}`, id: e.id, children: [
|
|
32
31
|
/* @__PURE__ */ t("div", { id: `${e.slug}` }),
|
|
33
|
-
/* @__PURE__ */ t(_, { id: (r = e.meta_fields) != null && r.icon ? e.meta_fields.icon[0] : null, children: /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
32
|
+
/* @__PURE__ */ t(_, { id: (r = e.meta_fields) != null && r.icon ? e.meta_fields.icon[0] : null, children: /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(O, { title: P(e.title.rendered), subtitle: P(e.meta_fields.subtitle) }) }) }),
|
|
34
33
|
e && /* @__PURE__ */ t(y, { as: b, fluid: !0, post: e })
|
|
35
34
|
] });
|
|
36
|
-
},
|
|
37
|
-
const [
|
|
35
|
+
}, D = ({ pages: e, locale: o, editing: r, navTitle: n, toTopLabel: l }) => {
|
|
36
|
+
const [c, d] = I([]), s = S((i, {
|
|
38
37
|
direction: a = "down",
|
|
39
38
|
onScreen: h
|
|
40
39
|
}) => {
|
|
@@ -42,87 +41,87 @@ const P = function(e) {
|
|
|
42
41
|
}, []), m = e ? e.sort((i, a) => i.menu_order - a.menu_order) : [], v = m.map((i) => {
|
|
43
42
|
var a;
|
|
44
43
|
return {
|
|
45
|
-
active:
|
|
44
|
+
active: c.includes(i.id),
|
|
46
45
|
id: i.id,
|
|
47
|
-
label: i.meta_fields.label ? i.meta_fields.label : i.title.rendered,
|
|
48
|
-
iconComponent: /* @__PURE__ */ t(_, { id: (a = i.meta_fields) != null && a.icon ? i.meta_fields.icon[0] : null, children: /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
46
|
+
label: P(i.meta_fields.label ? i.meta_fields.label : i.title.rendered),
|
|
47
|
+
iconComponent: /* @__PURE__ */ t(_, { id: (a = i.meta_fields) != null && a.icon ? i.meta_fields.icon[0] : null, children: /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(R, {}) }) })
|
|
49
48
|
};
|
|
50
49
|
});
|
|
51
50
|
return /* @__PURE__ */ f(T.Fragment, { children: [
|
|
52
|
-
!r && /* @__PURE__ */ t(j, { navTitle:
|
|
51
|
+
!r && /* @__PURE__ */ t(j, { navTitle: n, toTopLabel: l, sections: v }),
|
|
53
52
|
/* @__PURE__ */ t("div", { className: "pages", children: m.map((i) => /* @__PURE__ */ t(
|
|
54
53
|
M,
|
|
55
54
|
{
|
|
56
55
|
as: "div",
|
|
57
|
-
onChange: (a, h) =>
|
|
56
|
+
onChange: (a, h) => s(i.id, {
|
|
58
57
|
onScreen: a,
|
|
59
58
|
direction: h.boundingClientRect.top < 0 ? "up" : "down"
|
|
60
59
|
}),
|
|
61
60
|
children: /* @__PURE__ */ t(
|
|
62
|
-
|
|
61
|
+
q,
|
|
63
62
|
{
|
|
64
|
-
locale:
|
|
63
|
+
locale: o,
|
|
65
64
|
page: i,
|
|
66
|
-
onVisibilityUpdate:
|
|
65
|
+
onVisibilityUpdate: s
|
|
67
66
|
}
|
|
68
67
|
)
|
|
69
68
|
},
|
|
70
69
|
i.id
|
|
71
70
|
)) })
|
|
72
71
|
] });
|
|
73
|
-
},
|
|
72
|
+
}, V = (e) => {
|
|
74
73
|
const {
|
|
75
|
-
navTitle:
|
|
74
|
+
navTitle: o,
|
|
76
75
|
toTopLabel: r,
|
|
77
|
-
editing:
|
|
76
|
+
editing: n,
|
|
78
77
|
parent: l,
|
|
79
|
-
unique:
|
|
78
|
+
unique: c,
|
|
80
79
|
locale: d,
|
|
81
|
-
onLoadPageModule:
|
|
80
|
+
onLoadPageModule: s
|
|
82
81
|
} = e;
|
|
83
82
|
return N(() => {
|
|
84
|
-
|
|
83
|
+
s({ data: e });
|
|
85
84
|
}, [e]), /* @__PURE__ */ t(b, { className: "viz dashboard green", fluid: !0, children: e.parent && /* @__PURE__ */ t(
|
|
86
85
|
w,
|
|
87
86
|
{
|
|
88
87
|
locale: d,
|
|
89
88
|
parent: e.parent,
|
|
90
|
-
store: `modules_${l}_${
|
|
89
|
+
store: `modules_${l}_${c}`,
|
|
91
90
|
perPage: 100,
|
|
92
91
|
children: /* @__PURE__ */ t(k, { children: /* @__PURE__ */ t(
|
|
93
|
-
|
|
92
|
+
D,
|
|
94
93
|
{
|
|
95
94
|
toTopLabel: r,
|
|
96
|
-
navTitle:
|
|
97
|
-
editing:
|
|
95
|
+
navTitle: o,
|
|
96
|
+
editing: n === "true",
|
|
98
97
|
locale: d
|
|
99
98
|
}
|
|
100
99
|
) })
|
|
101
100
|
}
|
|
102
101
|
) });
|
|
103
|
-
},
|
|
102
|
+
}, z = (e, o) => {
|
|
104
103
|
let {
|
|
105
104
|
"data-nav-label": r = "Sections",
|
|
106
|
-
"data-to-top-label":
|
|
105
|
+
"data-to-top-label": n = "TO THE TOP",
|
|
107
106
|
"data-preview-mode": l = "Desktop",
|
|
108
|
-
editing:
|
|
107
|
+
editing: c,
|
|
109
108
|
parent: d,
|
|
110
|
-
unique:
|
|
109
|
+
unique: s,
|
|
111
110
|
intl: { locale: m }
|
|
112
|
-
} =
|
|
111
|
+
} = o;
|
|
113
112
|
return l === "undefined" && (l = "Desktop"), {
|
|
114
113
|
navTitle: r,
|
|
115
|
-
toTopLabel:
|
|
114
|
+
toTopLabel: n,
|
|
116
115
|
previewMode: l,
|
|
117
|
-
editing:
|
|
116
|
+
editing: c,
|
|
118
117
|
parent: d,
|
|
119
|
-
unique:
|
|
118
|
+
unique: s,
|
|
120
119
|
locale: m
|
|
121
120
|
};
|
|
122
|
-
},
|
|
121
|
+
}, A = {
|
|
123
122
|
onLoadPageModule: $
|
|
124
|
-
},
|
|
123
|
+
}, Z = L(z, A)(H(V));
|
|
125
124
|
export {
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
O as SectionHeader,
|
|
126
|
+
Z as default
|
|
128
127
|
};
|