@enyxs/wikex-components 0.8.11 → 0.8.12
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/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +124 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +124 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
|
|
3
|
-
type CmsFieldType = "text" | "textarea" | "richText" | "image" | "link" | "number" | "select";
|
|
3
|
+
type CmsFieldType = "text" | "textarea" | "richText" | "image" | "link" | "number" | "select" | "list";
|
|
4
|
+
type CmsListItemField = {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
type: "text" | "textarea" | "richText" | "link" | "image";
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
};
|
|
4
11
|
type CmsFieldDefinition = {
|
|
5
12
|
key: string;
|
|
6
13
|
label: string;
|
|
@@ -14,6 +21,7 @@ type CmsFieldDefinition = {
|
|
|
14
21
|
label: string;
|
|
15
22
|
}>;
|
|
16
23
|
hidden?: boolean;
|
|
24
|
+
itemFields?: CmsListItemField[];
|
|
17
25
|
};
|
|
18
26
|
type CmsComponentCategory = "minimal-ui" | "wikex" | "estate";
|
|
19
27
|
type CmsComponentPlacement = "header" | "content" | "footer";
|
|
@@ -55,4 +63,4 @@ declare const wikexComponents: CmsBlock[];
|
|
|
55
63
|
declare const estateComponents: CmsBlock[];
|
|
56
64
|
declare const wikexCmsBlocks: CmsBlock[];
|
|
57
65
|
|
|
58
|
-
export { type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsFieldDefinition, type CmsFieldType, type CmsRendererProps, estateBlocks, estateComponents, estateProjectPageBlocks, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, siteChromeBlocks, wikexCmsBlocks, wikexComponents };
|
|
66
|
+
export { type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsFieldDefinition, type CmsFieldType, type CmsListItemField, type CmsRendererProps, estateBlocks, estateComponents, estateProjectPageBlocks, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, siteChromeBlocks, wikexCmsBlocks, wikexComponents };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
|
|
3
|
-
type CmsFieldType = "text" | "textarea" | "richText" | "image" | "link" | "number" | "select";
|
|
3
|
+
type CmsFieldType = "text" | "textarea" | "richText" | "image" | "link" | "number" | "select" | "list";
|
|
4
|
+
type CmsListItemField = {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
type: "text" | "textarea" | "richText" | "link" | "image";
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
};
|
|
4
11
|
type CmsFieldDefinition = {
|
|
5
12
|
key: string;
|
|
6
13
|
label: string;
|
|
@@ -14,6 +21,7 @@ type CmsFieldDefinition = {
|
|
|
14
21
|
label: string;
|
|
15
22
|
}>;
|
|
16
23
|
hidden?: boolean;
|
|
24
|
+
itemFields?: CmsListItemField[];
|
|
17
25
|
};
|
|
18
26
|
type CmsComponentCategory = "minimal-ui" | "wikex" | "estate";
|
|
19
27
|
type CmsComponentPlacement = "header" | "content" | "footer";
|
|
@@ -55,4 +63,4 @@ declare const wikexComponents: CmsBlock[];
|
|
|
55
63
|
declare const estateComponents: CmsBlock[];
|
|
56
64
|
declare const wikexCmsBlocks: CmsBlock[];
|
|
57
65
|
|
|
58
|
-
export { type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsFieldDefinition, type CmsFieldType, type CmsRendererProps, estateBlocks, estateComponents, estateProjectPageBlocks, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, siteChromeBlocks, wikexCmsBlocks, wikexComponents };
|
|
66
|
+
export { type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsFieldDefinition, type CmsFieldType, type CmsListItemField, type CmsRendererProps, estateBlocks, estateComponents, estateProjectPageBlocks, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, siteChromeBlocks, wikexCmsBlocks, wikexComponents };
|
package/dist/index.js
CHANGED
|
@@ -3570,8 +3570,8 @@ function paragraphField2(key, label, group = "N\u1ED9i dung") {
|
|
|
3570
3570
|
function imageField2(key, label, group = "H\xECnh \u1EA3nh") {
|
|
3571
3571
|
return { key, label, type: "image", group };
|
|
3572
3572
|
}
|
|
3573
|
-
function estateDefinition(type, name, description, icon,
|
|
3574
|
-
return { kind: "cms-component", category: "estate", placement: "content", type, name, description, icon, fields:
|
|
3573
|
+
function estateDefinition(type, name, description, icon, fields3, defaults) {
|
|
3574
|
+
return { kind: "cms-component", category: "estate", placement: "content", type, name, description, icon, fields: fields3, defaults };
|
|
3575
3575
|
}
|
|
3576
3576
|
var archiveDefaults = {
|
|
3577
3577
|
eyebrow: "D\u1EF1 \xE1n ti\xEAu bi\u1EC3u",
|
|
@@ -3838,6 +3838,97 @@ var estateProjectDetailBlock = {
|
|
|
3838
3838
|
};
|
|
3839
3839
|
var estateProjectPageBlocks = [estateProjectsArchiveBlock, estateProjectDetailBlock];
|
|
3840
3840
|
|
|
3841
|
+
// src/dynamic-list-blocks.tsx
|
|
3842
|
+
var import_Box7 = __toESM(require("@mui/material/Box"));
|
|
3843
|
+
var import_Button7 = __toESM(require("@mui/material/Button"));
|
|
3844
|
+
var import_Stack5 = __toESM(require("@mui/material/Stack"));
|
|
3845
|
+
var import_Typography4 = __toESM(require("@mui/material/Typography"));
|
|
3846
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
3847
|
+
var allBlocks = [...estateBlocks, ...estateProjectPageBlocks, ...minimalMarketingBlocks];
|
|
3848
|
+
var stringValue = (content, key) => String(content[key] ?? "");
|
|
3849
|
+
function parseItems(value6, fallback) {
|
|
3850
|
+
if (typeof value6 !== "string") return fallback;
|
|
3851
|
+
try {
|
|
3852
|
+
const items = JSON.parse(value6);
|
|
3853
|
+
if (!Array.isArray(items)) return fallback;
|
|
3854
|
+
return items.filter((item) => Boolean(item) && typeof item === "object").map((item) => Object.fromEntries(Object.entries(item).map(([key, itemValue]) => [key, typeof itemValue === "string" ? itemValue : ""])));
|
|
3855
|
+
} catch {
|
|
3856
|
+
return fallback;
|
|
3857
|
+
}
|
|
3858
|
+
}
|
|
3859
|
+
function fields2(...items) {
|
|
3860
|
+
return items.map(([key, label, type]) => ({ key, label, type, required: key === "title" || key === "question" }));
|
|
3861
|
+
}
|
|
3862
|
+
function indexed(prefix, names) {
|
|
3863
|
+
return (content, items) => ({
|
|
3864
|
+
...content,
|
|
3865
|
+
...Object.fromEntries(items.slice(0, 12).flatMap((item, index) => names.map((name) => [prefix ? `${prefix}${index + 1}${name[0].toUpperCase()}${name.slice(1)}` : `${name}${index + 1}`, item[name] ?? ""])))
|
|
3866
|
+
});
|
|
3867
|
+
}
|
|
3868
|
+
function listConfig(type, count, fixedField, itemFields, prefix, names) {
|
|
3869
|
+
return {
|
|
3870
|
+
type,
|
|
3871
|
+
count,
|
|
3872
|
+
fixedField,
|
|
3873
|
+
fields: itemFields,
|
|
3874
|
+
legacy: (content) => Array.from({ length: count }, (_, index) => Object.fromEntries(names.map((name) => [name, stringValue(content, prefix ? `${prefix}${index + 1}${name[0].toUpperCase()}${name.slice(1)}` : `${name}${index + 1}`)]))),
|
|
3875
|
+
apply: indexed(prefix, names)
|
|
3876
|
+
};
|
|
3877
|
+
}
|
|
3878
|
+
var configs = [
|
|
3879
|
+
listConfig("faq", 4, /^(question|answer)\d+$/, fields2(["question", "C\xE2u h\u1ECFi", "text"], ["answer", "Tr\u1EA3 l\u1EDDi", "textarea"]), "", ["question", "answer"]),
|
|
3880
|
+
listConfig("testimonials", 3, /^(quote|author|role)\d+$/, fields2(["quote", "C\u1EA3m nh\u1EADn", "textarea"], ["author", "Kh\xE1ch h\xE0ng", "text"], ["role", "Ch\u1EE9c danh", "text"]), "", ["quote", "author", "role"]),
|
|
3881
|
+
listConfig("amenities", 6, /^amenity\d+(Title|Description)$/, fields2(["title", "T\xEAn ti\u1EC7n \xEDch", "text"], ["description", "M\xF4 t\u1EA3", "textarea"]), "amenity", ["title", "description"]),
|
|
3882
|
+
listConfig("property-gallery", 4, /^(image|caption)\d+$/, fields2(["image", "H\xECnh \u1EA3nh", "image"], ["caption", "Ch\xFA th\xEDch", "text"]), "", ["image", "caption"]),
|
|
3883
|
+
listConfig("estate-articles", 3, /^article\d+(Meta|Title|Excerpt|Label|Url)$/, fields2(["meta", "Nh\xE3n", "text"], ["title", "Ti\xEAu \u0111\u1EC1", "text"], ["excerpt", "T\xF3m t\u1EAFt", "textarea"], ["label", "Nh\xE3n li\xEAn k\u1EBFt", "text"], ["url", "\u0110\u01B0\u1EDDng d\u1EABn", "link"]), "article", ["meta", "title", "excerpt", "label", "url"]),
|
|
3884
|
+
listConfig("estate-process", 4, /^step\d+(Title|Description)$/, fields2(["title", "T\xEAn b\u01B0\u1EDBc", "text"], ["description", "M\xF4 t\u1EA3", "textarea"]), "step", ["title", "description"]),
|
|
3885
|
+
listConfig("estate-services", 4, /^service\d+(Title|Description|Label|Url)$/, fields2(["title", "T\xEAn d\u1ECBch v\u1EE5", "text"], ["description", "M\xF4 t\u1EA3", "textarea"], ["label", "Nh\xE3n li\xEAn k\u1EBFt", "text"], ["url", "\u0110\u01B0\u1EDDng d\u1EABn", "link"]), "service", ["title", "description", "label", "url"]),
|
|
3886
|
+
listConfig("featured-projects", 4, /^project\d+(Image|Type|Title|Location)$/, fields2(["image", "H\xECnh \u1EA3nh", "image"], ["type", "Lo\u1EA1i d\u1EF1 \xE1n", "text"], ["title", "T\xEAn d\u1EF1 \xE1n", "text"], ["location", "\u0110\u1ECBa \u0111i\u1EC3m", "text"]), "project", ["image", "type", "title", "location"]),
|
|
3887
|
+
listConfig("estate-projects-archive", 3, /^project\d+(Image|Type|Title|Summary|Location|Client|Scope|Year)$/, fields2(["image", "H\xECnh \u1EA3nh", "image"], ["type", "Lo\u1EA1i d\u1EF1 \xE1n", "text"], ["title", "T\xEAn d\u1EF1 \xE1n", "text"], ["summary", "M\xF4 t\u1EA3", "textarea"], ["location", "\u0110\u1ECBa \u0111i\u1EC3m", "text"], ["client", "Ch\u1EE7 \u0111\u1EA7u t\u01B0", "text"], ["scope", "Ph\u1EA1m vi", "text"], ["year", "N\u0103m", "text"]), "project", ["image", "type", "title", "summary", "location", "client", "scope", "year"]),
|
|
3888
|
+
listConfig("estate-project-detail", 3, /^gallery\d+(Image|Caption|Note)$/, fields2(["image", "H\xECnh \u1EA3nh", "image"], ["caption", "Caption", "text"], ["note", "Ghi ch\xFA", "textarea"]), "gallery", ["image", "caption", "note"]),
|
|
3889
|
+
listConfig("testimonial-grid", 3, /^item\d+(Quote|Name|Role)$/, fields2(["quote", "C\u1EA3m nh\u1EADn", "textarea"], ["name", "Kh\xE1ch h\xE0ng", "text"], ["role", "Ch\u1EE9c danh", "text"]), "item", ["quote", "name", "role"]),
|
|
3890
|
+
listConfig("faq-section", 3, /^item\d+(Question|Answer)$/, fields2(["question", "C\xE2u h\u1ECFi", "text"], ["answer", "Tr\u1EA3 l\u1EDDi", "textarea"]), "item", ["question", "answer"])
|
|
3891
|
+
];
|
|
3892
|
+
function DynamicListRenderer({ base, config, ...props }) {
|
|
3893
|
+
const items = parseItems(props.content.items, config.legacy(props.content));
|
|
3894
|
+
const information = config.type === "estate-project-detail" ? parseItems(props.content.information, [
|
|
3895
|
+
{ label: "\u0110\u1ECBa \u0111i\u1EC3m", value: stringValue(props.content, "location") },
|
|
3896
|
+
{ label: "Ch\u1EE7 \u0111\u1EA7u t\u01B0", value: stringValue(props.content, "client") },
|
|
3897
|
+
{ label: "Di\u1EC7n t\xEDch", value: stringValue(props.content, "area") },
|
|
3898
|
+
{ label: "Quy m\xF4", value: stringValue(props.content, "floors") }
|
|
3899
|
+
]) : [];
|
|
3900
|
+
const BaseRenderer = base.Renderer;
|
|
3901
|
+
const content = config.apply({ ...props.content, ...information.length ? { location: information[0]?.value ?? "", client: information[1]?.value ?? "", area: information[2]?.value ?? "", floors: information[3]?.value ?? "" } : {} }, items);
|
|
3902
|
+
const add = (field, list, itemFields) => (event) => {
|
|
3903
|
+
event.preventDefault();
|
|
3904
|
+
event.stopPropagation();
|
|
3905
|
+
props.onChange?.(field, JSON.stringify([...list, Object.fromEntries(itemFields.map((itemField) => [itemField.key, itemField.key === "label" ? "M\u1EE5c m\u1EDBi" : ""]))]));
|
|
3906
|
+
};
|
|
3907
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
3908
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BaseRenderer, { ...props, content }),
|
|
3909
|
+
items.length > config.count && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Box7.default, { sx: { px: { xs: 2, md: 4 }, py: 4, bgcolor: "#FAF8F3" }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Stack5.default, { sx: { maxWidth: 1376, mx: "auto" }, spacing: 1.5, children: items.slice(config.count).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_Box7.default, { sx: { p: 2.5, border: "1px solid rgba(32,40,32,.16)" }, children: [
|
|
3910
|
+
item.image && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Box7.default, { component: "img", src: item.image, alt: item.title || "H\xECnh \u1EA3nh", sx: { display: "block", width: 1, maxHeight: 300, objectFit: "cover", mb: 2 } }),
|
|
3911
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Typography4.default, { sx: { fontWeight: 700 }, children: item.question || item.title || "M\u1EE5c m\u1EDBi" }),
|
|
3912
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Typography4.default, { sx: { mt: 0.75, color: "#687067" }, children: item.answer || item.description || item.quote || item.excerpt || "" })
|
|
3913
|
+
] }, `${item.title}-${index}`)) }) }),
|
|
3914
|
+
" ",
|
|
3915
|
+
props.editable && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Box7.default, { sx: { px: { xs: 2, md: 4 }, pb: 3, bgcolor: "#FAF8F3" }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_Stack5.default, { direction: "row", spacing: 1, children: [
|
|
3916
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Button7.default, { size: "small", variant: "outlined", onClick: add("items", items, config.fields), children: "+ Th\xEAm item" }),
|
|
3917
|
+
config.type === "estate-project-detail" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Button7.default, { size: "small", variant: "outlined", onClick: add("information", information, fields2(["label", "Nh\xE3n", "text"], ["value", "Gi\xE1 tr\u1ECB", "text"])), children: "+ Th\xEAm th\xF4ng tin" })
|
|
3918
|
+
] }) })
|
|
3919
|
+
] });
|
|
3920
|
+
}
|
|
3921
|
+
function createBlock(config) {
|
|
3922
|
+
const base = allBlocks.find((block) => block.definition.type === config.type);
|
|
3923
|
+
if (!base) throw new Error(`Missing list component: ${config.type}`);
|
|
3924
|
+
const defaults = { ...base.definition.defaults, items: JSON.stringify(config.legacy(base.definition.defaults)) };
|
|
3925
|
+
const detailInformation = config.type === "estate-project-detail" ? [{ key: "information", label: "Th\xF4ng tin d\u1EF1 \xE1n", type: "list", group: "Th\xF4ng tin", itemFields: fields2(["label", "Nh\xE3n", "text"], ["value", "Gi\xE1 tr\u1ECB", "text"]) }] : [];
|
|
3926
|
+
if (config.type === "estate-project-detail") defaults.information = JSON.stringify([{ label: "\u0110\u1ECBa \u0111i\u1EC3m", value: stringValue(defaults, "location") }, { label: "Ch\u1EE7 \u0111\u1EA7u t\u01B0", value: stringValue(defaults, "client") }, { label: "Di\u1EC7n t\xEDch", value: stringValue(defaults, "area") }, { label: "Quy m\xF4", value: stringValue(defaults, "floors") }]);
|
|
3927
|
+
return { definition: { ...base.definition, fields: [...base.definition.fields.filter((field) => !config.fixedField.test(field.key)), ...detailInformation, { key: "items", label: "Danh s\xE1ch", type: "list", group: "Danh s\xE1ch", itemFields: config.fields }], defaults }, Renderer: (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DynamicListRenderer, { ...props, base, config }) };
|
|
3928
|
+
}
|
|
3929
|
+
var dynamicListBlocks = configs.map(createBlock);
|
|
3930
|
+
var dynamicListTypes = new Set(dynamicListBlocks.map((block) => block.definition.type));
|
|
3931
|
+
|
|
3841
3932
|
// src/wikex/assets/download-section/footer-appstore-icon.svg
|
|
3842
3933
|
var footer_appstore_icon_default = 'data:image/svg+xml,<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Icon">%0A<path id="&%2360;Path&%2362;" d="M18.7045 12.7631C18.7166 11.8432 18.9669 10.9413 19.4321 10.1412C19.8972 9.34108 20.5621 8.66885 21.3648 8.18702C20.8548 7.47597 20.1821 6.89081 19.4 6.478C18.6178 6.0652 17.7479 5.83613 16.8592 5.80898C14.9635 5.61471 13.1258 6.91644 12.1598 6.91644C11.1751 6.91644 9.68776 5.82827 8.08616 5.86044C7.05021 5.89311 6.04059 6.18722 5.15568 6.7141C4.27077 7.24099 3.54075 7.98268 3.03674 8.86691C0.853518 12.5573 2.48201 17.9809 4.57338 20.964C5.61975 22.4247 6.84264 24.0564 8.44279 23.9985C10.0086 23.9351 10.5934 23.0237 12.4835 23.0237C14.3561 23.0237 14.9048 23.9985 16.5374 23.9617C18.2176 23.9351 19.2762 22.4945 20.2859 21.02C21.0377 19.9792 21.6162 18.8288 22 17.6116C21.0238 17.2085 20.1908 16.5338 19.6048 15.6716C19.0187 14.8094 18.7056 13.7979 18.7045 12.7631Z" fill="%23F9FAFB"/>%0A<path id="&%2360;Path&%2362;_2" d="M15.621 3.84713C16.5372 2.77343 16.9885 1.39335 16.8792 0C15.4796 0.143519 14.1867 0.796596 13.2582 1.82911C12.8043 2.33351 12.4566 2.92033 12.235 3.55601C12.0135 4.19168 11.9224 4.86375 11.9671 5.5338C12.6672 5.54084 13.3597 5.3927 13.9927 5.10054C14.6256 4.80838 15.1824 4.37982 15.621 3.84713Z" fill="%23F9FAFB"/>%0A</g>%0A</svg>%0A';
|
|
3843
3934
|
|
|
@@ -3867,7 +3958,7 @@ var downloadAssets = {
|
|
|
3867
3958
|
};
|
|
3868
3959
|
|
|
3869
3960
|
// src/wikex/download-section.tsx
|
|
3870
|
-
var
|
|
3961
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
3871
3962
|
var value5 = (content, key) => content[key];
|
|
3872
3963
|
var inlineEditableSx = {
|
|
3873
3964
|
color: "inherit",
|
|
@@ -3893,16 +3984,16 @@ function DownloadSection({
|
|
|
3893
3984
|
const source = String(value5(content, key) ?? "");
|
|
3894
3985
|
return source && !source.startsWith("/landing-assets/") ? source : fallback;
|
|
3895
3986
|
};
|
|
3896
|
-
return /* @__PURE__ */ (0,
|
|
3987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { "data-wikex-download": true, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
3897
3988
|
"section",
|
|
3898
3989
|
{
|
|
3899
3990
|
className: "download section",
|
|
3900
3991
|
id: String(value5(content, "anchorId") ?? "download"),
|
|
3901
3992
|
children: [
|
|
3902
|
-
/* @__PURE__ */ (0,
|
|
3903
|
-
/* @__PURE__ */ (0,
|
|
3904
|
-
/* @__PURE__ */ (0,
|
|
3905
|
-
/* @__PURE__ */ (0,
|
|
3993
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("style", { children: compatibleStyles }),
|
|
3994
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "container download-card", children: [
|
|
3995
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "download-copy", children: [
|
|
3996
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { className: "download-mobile-title", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3906
3997
|
EditableText,
|
|
3907
3998
|
{
|
|
3908
3999
|
component: "span",
|
|
@@ -3913,9 +4004,9 @@ function DownloadSection({
|
|
|
3913
4004
|
sx: inlineEditableSx
|
|
3914
4005
|
}
|
|
3915
4006
|
) }),
|
|
3916
|
-
/* @__PURE__ */ (0,
|
|
3917
|
-
/* @__PURE__ */ (0,
|
|
3918
|
-
/* @__PURE__ */ (0,
|
|
4007
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "download-offer-row", children: [
|
|
4008
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "reward", children: [
|
|
4009
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { className: "download-desktop-title", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3919
4010
|
EditableText,
|
|
3920
4011
|
{
|
|
3921
4012
|
component: "span",
|
|
@@ -3926,8 +4017,8 @@ function DownloadSection({
|
|
|
3926
4017
|
sx: inlineEditableSx
|
|
3927
4018
|
}
|
|
3928
4019
|
) }),
|
|
3929
|
-
/* @__PURE__ */ (0,
|
|
3930
|
-
/* @__PURE__ */ (0,
|
|
4020
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "reward-amount", children: [
|
|
4021
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3931
4022
|
EditableText,
|
|
3932
4023
|
{
|
|
3933
4024
|
component: "span",
|
|
@@ -3938,7 +4029,7 @@ function DownloadSection({
|
|
|
3938
4029
|
sx: inlineEditableSx
|
|
3939
4030
|
}
|
|
3940
4031
|
),
|
|
3941
|
-
/* @__PURE__ */ (0,
|
|
4032
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3942
4033
|
EditableText,
|
|
3943
4034
|
{
|
|
3944
4035
|
component: "span",
|
|
@@ -3950,8 +4041,8 @@ function DownloadSection({
|
|
|
3950
4041
|
}
|
|
3951
4042
|
)
|
|
3952
4043
|
] }),
|
|
3953
|
-
/* @__PURE__ */ (0,
|
|
3954
|
-
/* @__PURE__ */ (0,
|
|
4044
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "reward-divider", "aria-hidden": "true" }),
|
|
4045
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3955
4046
|
EditableText,
|
|
3956
4047
|
{
|
|
3957
4048
|
component: "span",
|
|
@@ -3963,9 +4054,9 @@ function DownloadSection({
|
|
|
3963
4054
|
}
|
|
3964
4055
|
) })
|
|
3965
4056
|
] }),
|
|
3966
|
-
/* @__PURE__ */ (0,
|
|
3967
|
-
/* @__PURE__ */ (0,
|
|
3968
|
-
/* @__PURE__ */ (0,
|
|
4057
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "download-qr-links", children: [
|
|
4058
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "download-qr", children: [
|
|
4059
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3969
4060
|
EditableText,
|
|
3970
4061
|
{
|
|
3971
4062
|
component: "span",
|
|
@@ -3976,7 +4067,7 @@ function DownloadSection({
|
|
|
3976
4067
|
sx: inlineEditableSx
|
|
3977
4068
|
}
|
|
3978
4069
|
),
|
|
3979
|
-
/* @__PURE__ */ (0,
|
|
4070
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3980
4071
|
"img",
|
|
3981
4072
|
{
|
|
3982
4073
|
src: image("qrImage", downloadAssets.downloadQr),
|
|
@@ -3984,16 +4075,16 @@ function DownloadSection({
|
|
|
3984
4075
|
}
|
|
3985
4076
|
) })
|
|
3986
4077
|
] }),
|
|
3987
|
-
/* @__PURE__ */ (0,
|
|
4078
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "download-links", children: badges.map(([platform, icon]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
3988
4079
|
"a",
|
|
3989
4080
|
{
|
|
3990
4081
|
className: `download-badge download-badge--${platform === "appStore" ? "apple" : platform === "googlePlay" ? "google" : "web"}`,
|
|
3991
4082
|
href: String(value5(content, `${platform}Link`) ?? "#"),
|
|
3992
4083
|
"aria-label": String(value5(content, `${platform}Alt`) ?? ""),
|
|
3993
4084
|
children: [
|
|
3994
|
-
/* @__PURE__ */ (0,
|
|
3995
|
-
/* @__PURE__ */ (0,
|
|
3996
|
-
/* @__PURE__ */ (0,
|
|
4085
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("img", { src: image(`${platform}Icon`, icon), alt: "" }),
|
|
4086
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "download-badge-copy", children: [
|
|
4087
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3997
4088
|
EditableText,
|
|
3998
4089
|
{
|
|
3999
4090
|
component: "span",
|
|
@@ -4004,7 +4095,7 @@ function DownloadSection({
|
|
|
4004
4095
|
sx: inlineEditableSx
|
|
4005
4096
|
}
|
|
4006
4097
|
) }),
|
|
4007
|
-
/* @__PURE__ */ (0,
|
|
4098
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("strong", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4008
4099
|
EditableText,
|
|
4009
4100
|
{
|
|
4010
4101
|
component: "span",
|
|
@@ -4023,21 +4114,21 @@ function DownloadSection({
|
|
|
4023
4114
|
] })
|
|
4024
4115
|
] })
|
|
4025
4116
|
] }),
|
|
4026
|
-
/* @__PURE__ */ (0,
|
|
4117
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
4027
4118
|
"div",
|
|
4028
4119
|
{
|
|
4029
4120
|
className: "download-devices",
|
|
4030
4121
|
"aria-label": String(value5(content, "devicesAlt") ?? ""),
|
|
4031
4122
|
children: [
|
|
4032
|
-
/* @__PURE__ */ (0,
|
|
4123
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "download-laptop", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4033
4124
|
"img",
|
|
4034
4125
|
{
|
|
4035
4126
|
src: image("laptopImage", downloadAssets.laptopImage),
|
|
4036
4127
|
alt: ""
|
|
4037
4128
|
}
|
|
4038
4129
|
) }),
|
|
4039
|
-
/* @__PURE__ */ (0,
|
|
4040
|
-
editable && /* @__PURE__ */ (0,
|
|
4130
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "download-phone", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("img", { src: image("phoneImage", downloadAssets.phoneImage), alt: "" }) }),
|
|
4131
|
+
editable && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4041
4132
|
"button",
|
|
4042
4133
|
{
|
|
4043
4134
|
className: "download-replace",
|
|
@@ -4205,8 +4296,10 @@ var wikexComponents = [downloadSectionBlock];
|
|
|
4205
4296
|
var estateComponents = [...estateBlocks, ...estateProjectPageBlocks];
|
|
4206
4297
|
var wikexCmsBlocks = [
|
|
4207
4298
|
...wikexComponents,
|
|
4208
|
-
...estateComponents,
|
|
4209
|
-
|
|
4299
|
+
...[...estateComponents, ...minimalUiComponents].filter(
|
|
4300
|
+
(block) => !dynamicListTypes.has(block.definition.type)
|
|
4301
|
+
),
|
|
4302
|
+
...dynamicListBlocks
|
|
4210
4303
|
];
|
|
4211
4304
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4212
4305
|
0 && (module.exports = {
|