@enyxs/wikex-components 0.8.11 → 0.8.13
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 +162 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +162 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -645,6 +645,21 @@ var minimalUiBlocks = [
|
|
|
645
645
|
|
|
646
646
|
// src/minimal-ui/marketing-blocks.tsx
|
|
647
647
|
import { useState as useState2 } from "react";
|
|
648
|
+
|
|
649
|
+
// src/list-items.ts
|
|
650
|
+
function cmsListItems(content, fallback, field = "items") {
|
|
651
|
+
const raw = content[field];
|
|
652
|
+
if (typeof raw !== "string") return fallback;
|
|
653
|
+
try {
|
|
654
|
+
const parsed = JSON.parse(raw);
|
|
655
|
+
if (!Array.isArray(parsed)) return fallback;
|
|
656
|
+
return parsed.filter((item) => Boolean(item) && typeof item === "object").map((item) => Object.fromEntries(Object.entries(item).map(([key, value6]) => [key, typeof value6 === "string" ? value6 : ""])));
|
|
657
|
+
} catch {
|
|
658
|
+
return fallback;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
// src/minimal-ui/marketing-blocks.tsx
|
|
648
663
|
import Accordion from "@mui/material/Accordion";
|
|
649
664
|
import AccordionDetails from "@mui/material/AccordionDetails";
|
|
650
665
|
import AccordionSummary from "@mui/material/AccordionSummary";
|
|
@@ -768,6 +783,7 @@ function MetricsStrip({ content, editable, onChange }) {
|
|
|
768
783
|
);
|
|
769
784
|
}
|
|
770
785
|
function TestimonialGrid({ content, editable, onChange }) {
|
|
786
|
+
const listIndexes = cmsListItems(content, Array.from({ length: 3 }, () => ({}))).map((_, index) => index + 1);
|
|
771
787
|
return /* @__PURE__ */ jsx3(
|
|
772
788
|
Box3,
|
|
773
789
|
{
|
|
@@ -819,7 +835,7 @@ function TestimonialGrid({ content, editable, onChange }) {
|
|
|
819
835
|
mt: 3
|
|
820
836
|
}
|
|
821
837
|
},
|
|
822
|
-
children:
|
|
838
|
+
children: listIndexes.map((item) => /* @__PURE__ */ jsxs3(
|
|
823
839
|
Box3,
|
|
824
840
|
{
|
|
825
841
|
sx: {
|
|
@@ -887,6 +903,7 @@ function TestimonialGrid({ content, editable, onChange }) {
|
|
|
887
903
|
}
|
|
888
904
|
function FaqSection({ content, editable, onChange }) {
|
|
889
905
|
const [expanded, setExpanded] = useState2(1);
|
|
906
|
+
const listIndexes = cmsListItems(content, Array.from({ length: 3 }, () => ({}))).map((_, index) => index + 1);
|
|
890
907
|
return /* @__PURE__ */ jsx3(
|
|
891
908
|
Box3,
|
|
892
909
|
{
|
|
@@ -940,7 +957,7 @@ function FaqSection({ content, editable, onChange }) {
|
|
|
940
957
|
}
|
|
941
958
|
)
|
|
942
959
|
] }),
|
|
943
|
-
/* @__PURE__ */ jsx3(Box3, { children:
|
|
960
|
+
/* @__PURE__ */ jsx3(Box3, { children: listIndexes.map((item) => /* @__PURE__ */ jsxs3(
|
|
944
961
|
Accordion,
|
|
945
962
|
{
|
|
946
963
|
expanded: expanded === item,
|
|
@@ -2963,6 +2980,7 @@ var projectDefaults = {
|
|
|
2963
2980
|
project4Location: "B\xECnh D\u01B0\u01A1ng"
|
|
2964
2981
|
};
|
|
2965
2982
|
function FeaturedProjectsRenderer(props) {
|
|
2983
|
+
const listIndexes = cmsListItems(props.content, Array.from({ length: 4 }, () => ({}))).map((_, index) => index + 1);
|
|
2966
2984
|
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: palette.cream, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
2967
2985
|
/* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", alignItems: { xs: "flex-start", md: "flex-end" }, justifyContent: "space-between", flexDirection: { xs: "column", md: "row" }, gap: 3, mb: 6 }, children: [
|
|
2968
2986
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2, children: [
|
|
@@ -2971,7 +2989,7 @@ function FeaturedProjectsRenderer(props) {
|
|
|
2971
2989
|
] }),
|
|
2972
2990
|
/* @__PURE__ */ jsx5(Text, { props, field: "intro", fallback: projectDefaults.intro, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { maxWidth: 420, color: palette.muted, fontSize: 16, lineHeight: 1.8 }, children: node }) })
|
|
2973
2991
|
] }),
|
|
2974
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "repeat(12, 1fr)" }, gap: 2 }, children:
|
|
2992
|
+
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "repeat(12, 1fr)" }, gap: 2 }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Box5, { sx: { position: "relative", minHeight: { xs: 390, md: index < 3 ? 600 : 430 }, overflow: "hidden", bgcolor: "#59665C", color: "white", gridColumn: { xs: "1", md: index === 1 ? "span 7" : index === 2 ? "span 5" : "span 6" } }, children: [
|
|
2975
2993
|
/* @__PURE__ */ jsx5(Image, { props, field: `project${index}Image`, fallback: projectDefaults[`project${index}Image`], alt: "D\u1EF1 \xE1n n\u1ED5i b\u1EADt" }),
|
|
2976
2994
|
/* @__PURE__ */ jsx5(Box5, { sx: { position: "absolute", inset: 0, zIndex: 1, pointerEvents: "none", background: "linear-gradient(0deg, rgba(17,24,18,.88), transparent 64%)" } }),
|
|
2977
2995
|
/* @__PURE__ */ jsx5(Box5, { sx: { position: "absolute", zIndex: 2, pointerEvents: "none", top: 20, right: 20, display: "grid", width: 44, height: 44, placeItems: "center", border: "1px solid rgba(255,255,255,.38)", borderRadius: "50%", bgcolor: "rgba(0,0,0,.12)", fontSize: 20 }, children: "\u2197" }),
|
|
@@ -3009,13 +3027,14 @@ var processDefaults = {
|
|
|
3009
3027
|
step4Description: "Nghi\u1EC7m thu chi ti\u1EBFt, b\u1EA3o h\xE0nh v\xE0 ch\u0103m s\xF3c c\xF4ng tr\xECnh l\xE2u d\xE0i."
|
|
3010
3028
|
};
|
|
3011
3029
|
function EstateProcessRenderer(props) {
|
|
3030
|
+
const listIndexes = cmsListItems(props.content, Array.from({ length: 4 }, () => ({}))).map((_, index) => index + 1);
|
|
3012
3031
|
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, borderBlock: `1px solid ${palette.line}`, bgcolor: palette.pale, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { display: "grid", maxWidth: 1376, mx: "auto", gap: { xs: 5, md: 10 }, gridTemplateColumns: { xs: "1fr", md: ".75fr 1.25fr" } }, children: [
|
|
3013
3032
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2.5, sx: { alignItems: "flex-start" }, children: [
|
|
3014
3033
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: processDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: outlinedEyebrowSx, children: node }) }),
|
|
3015
3034
|
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: processDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: { ...headingSx, fontSize: { xs: 48, md: 78 } }, children: node }) }),
|
|
3016
3035
|
/* @__PURE__ */ jsx5(Text, { props, field: "body", fallback: processDefaults.body, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { maxWidth: 450, color: palette.muted, fontSize: 16, lineHeight: 1.85 }, children: node }) })
|
|
3017
3036
|
] }),
|
|
3018
|
-
/* @__PURE__ */ jsx5(Stack3, { component: "ol", sx: { m: 0, p: 0, listStyle: "none", borderTop: `1px solid ${palette.line}` }, children:
|
|
3037
|
+
/* @__PURE__ */ jsx5(Stack3, { component: "ol", sx: { m: 0, p: 0, listStyle: "none", borderTop: `1px solid ${palette.line}` }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Box5, { component: "li", sx: { display: "grid", py: 3, gap: { xs: 1, md: 2 }, borderBottom: `1px solid ${palette.line}`, gridTemplateColumns: { xs: "36px 1fr", md: "56px 1fr 1fr" } }, children: [
|
|
3019
3038
|
/* @__PURE__ */ jsxs5(Box5, { sx: { color: palette.gold, fontFamily: "monospace", fontSize: 12, pt: 0.5 }, children: [
|
|
3020
3039
|
"0",
|
|
3021
3040
|
index
|
|
@@ -3056,6 +3075,7 @@ var servicesDefaults = {
|
|
|
3056
3075
|
service4Url: "#"
|
|
3057
3076
|
};
|
|
3058
3077
|
function EstateServicesRenderer(props) {
|
|
3078
|
+
const listIndexes = cmsListItems(props.content, Array.from({ length: 4 }, () => ({}))).map((_, index) => index + 1);
|
|
3059
3079
|
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: palette.dark, color: "white" }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3060
3080
|
/* @__PURE__ */ jsxs5(Box5, { sx: { display: "grid", gap: 4, gridTemplateColumns: { xs: "1fr", md: "1.1fr .9fr" }, alignItems: "end", mb: 6 }, children: [
|
|
3061
3081
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2.5, children: [
|
|
@@ -3064,7 +3084,7 @@ function EstateServicesRenderer(props) {
|
|
|
3064
3084
|
] }),
|
|
3065
3085
|
/* @__PURE__ */ jsx5(Text, { props, field: "intro", fallback: servicesDefaults.intro, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { maxWidth: 480, justifySelf: { md: "end" }, color: "rgba(255,255,255,.58)", fontSize: 16, lineHeight: 1.85 }, children: node }) })
|
|
3066
3086
|
] }),
|
|
3067
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, borderTop: "1px solid rgba(255,255,255,.14)", borderLeft: "1px solid rgba(255,255,255,.14)" }, children:
|
|
3087
|
+
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, borderTop: "1px solid rgba(255,255,255,.14)", borderLeft: "1px solid rgba(255,255,255,.14)" }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Stack3, { sx: { minHeight: { xs: 300, md: 370 }, p: { xs: 2.5, md: 4 }, borderRight: "1px solid rgba(255,255,255,.14)", borderBottom: "1px solid rgba(255,255,255,.14)", transition: "background .25s ease", "&:hover": { bgcolor: "#C2A268", color: palette.ink }, "&:hover .service-description": { color: "rgba(23,32,25,.72)" } }, children: [
|
|
3068
3088
|
/* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", justifyContent: "space-between", color: "#D8BD8A", fontFamily: "monospace", fontSize: 11 }, children: [
|
|
3069
3089
|
"0",
|
|
3070
3090
|
index,
|
|
@@ -3110,12 +3130,13 @@ var articlesDefaults = {
|
|
|
3110
3130
|
article3Url: "#"
|
|
3111
3131
|
};
|
|
3112
3132
|
function EstateArticlesRenderer(props) {
|
|
3133
|
+
const listIndexes = cmsListItems(props.content, Array.from({ length: 3 }, () => ({}))).map((_, index) => index + 1);
|
|
3113
3134
|
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: "#DED7CA", color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3114
3135
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2.5, sx: { mb: 6 }, children: [
|
|
3115
3136
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: articlesDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: outlinedEyebrowSx, children: node }) }),
|
|
3116
3137
|
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: articlesDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: headingSx, children: node }) })
|
|
3117
3138
|
] }),
|
|
3118
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "repeat(3, 1fr)" }, gap: "1px", bgcolor: palette.line }, children:
|
|
3139
|
+
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "repeat(3, 1fr)" }, gap: "1px", bgcolor: palette.line }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Stack3, { sx: { minHeight: 390, p: { xs: 2.5, md: 4 }, bgcolor: palette.cream, transition: "background .2s ease", "&:hover": { bgcolor: palette.pale } }, children: [
|
|
3119
3140
|
/* @__PURE__ */ jsx5(Text, { props, field: `article${index}Meta`, fallback: articlesDefaults[`article${index}Meta`], children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { color: palette.gold, fontSize: 11, fontWeight: 800, letterSpacing: ".13em", textTransform: "uppercase" }, children: node }) }),
|
|
3120
3141
|
/* @__PURE__ */ jsx5(Text, { props, field: `article${index}Title`, fallback: articlesDefaults[`article${index}Title`], children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h3", sx: { mt: 5, fontFamily: displayFont, fontSize: { xs: 31, md: 36 }, fontWeight: 400, letterSpacing: "-.04em", lineHeight: 1.06 }, children: node }) }),
|
|
3121
3142
|
/* @__PURE__ */ jsx5(Text, { props, field: `article${index}Excerpt`, fallback: articlesDefaults[`article${index}Excerpt`], children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { mt: 2, color: palette.muted, fontSize: 14, lineHeight: 1.75 }, children: node }) }),
|
|
@@ -3147,12 +3168,13 @@ var galleryDefaults = {
|
|
|
3147
3168
|
caption4: "M\u1ED9t g\xF3c th\u01B0 gi\xE3n ri\xEAng t\u01B0"
|
|
3148
3169
|
};
|
|
3149
3170
|
function PropertyGalleryRenderer(props) {
|
|
3171
|
+
const listIndexes = cmsListItems(props.content, Array.from({ length: 4 }, () => ({}))).map((_, index) => index + 1);
|
|
3150
3172
|
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: palette.cream, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3151
3173
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2, sx: { mb: 6 }, children: [
|
|
3152
3174
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: galleryDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: eyebrowSx, children: node }) }),
|
|
3153
3175
|
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: galleryDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: headingSx, children: node }) })
|
|
3154
3176
|
] }),
|
|
3155
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", md: "repeat(3, 1fr)" }, gap: 2 }, children:
|
|
3177
|
+
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", md: "repeat(3, 1fr)" }, gap: 2 }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Box5, { children: [
|
|
3156
3178
|
/* @__PURE__ */ jsx5(Box5, { sx: { aspectRatio: "4 / 3" }, children: /* @__PURE__ */ jsx5(Image, { props, field: `image${index}`, fallback: galleryDefaults[`image${index}`], alt: "B\u1ED9 s\u01B0u t\u1EADp b\u1EA5t \u0111\u1ED9ng s\u1EA3n" }) }),
|
|
3157
3179
|
/* @__PURE__ */ jsx5(Text, { props, field: `caption${index}`, fallback: galleryDefaults[`caption${index}`], children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { pt: 1, color: palette.muted, fontSize: 12 }, children: node }) })
|
|
3158
3180
|
] }, index)) })
|
|
@@ -3183,12 +3205,13 @@ var amenitiesDefaults = {
|
|
|
3183
3205
|
amenity6Description: "S\u1EF1 an t\xE2m cho t\u1EEBng kho\u1EA3nh kh\u1EAFc t\u1EA1i nh\xE0."
|
|
3184
3206
|
};
|
|
3185
3207
|
function AmenitiesRenderer(props) {
|
|
3208
|
+
const listIndexes = cmsListItems(props.content, Array.from({ length: 6 }, () => ({}))).map((_, index) => index + 1);
|
|
3186
3209
|
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: palette.dark, color: "#F7F2E8" }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3187
3210
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2, sx: { mb: 6 }, children: [
|
|
3188
3211
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: amenitiesDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { ...eyebrowSx, color: "#D5B77E" }, children: node }) }),
|
|
3189
3212
|
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: amenitiesDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: { ...headingSx, color: "#F7F2E8" }, children: node }) })
|
|
3190
3213
|
] }),
|
|
3191
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", md: "repeat(3, 1fr)" }, borderTop: "1px solid rgba(255,255,255,.16)", borderLeft: "1px solid rgba(255,255,255,.16)" }, children:
|
|
3214
|
+
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", md: "repeat(3, 1fr)" }, borderTop: "1px solid rgba(255,255,255,.16)", borderLeft: "1px solid rgba(255,255,255,.16)" }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Stack3, { sx: { minHeight: 320, p: { xs: 2.5, md: 3.5 }, borderRight: "1px solid rgba(255,255,255,.16)", borderBottom: "1px solid rgba(255,255,255,.16)" }, children: [
|
|
3192
3215
|
/* @__PURE__ */ jsxs5(Stack3, { direction: "row", justifyContent: "space-between", children: [
|
|
3193
3216
|
/* @__PURE__ */ jsxs5(Box5, { sx: { color: "#C9AA72", fontFamily: "monospace", fontSize: 11 }, children: [
|
|
3194
3217
|
"0",
|
|
@@ -3225,12 +3248,13 @@ var testimonialsDefaults = {
|
|
|
3225
3248
|
role3: "C\u01B0 d\xE2n"
|
|
3226
3249
|
};
|
|
3227
3250
|
function TestimonialsRenderer(props) {
|
|
3251
|
+
const listIndexes = cmsListItems(props.content, Array.from({ length: 3 }, () => ({}))).map((_, index) => index + 1);
|
|
3228
3252
|
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: palette.pale, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3229
3253
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2, sx: { mb: 6 }, children: [
|
|
3230
3254
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: testimonialsDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: eyebrowSx, children: node }) }),
|
|
3231
3255
|
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: testimonialsDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: headingSx, children: node }) })
|
|
3232
3256
|
] }),
|
|
3233
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "repeat(3, 1fr)" }, gap: 2 }, children:
|
|
3257
|
+
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "repeat(3, 1fr)" }, gap: 2 }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Stack3, { sx: { minHeight: 340, p: 3, bgcolor: palette.cream, border: `1px solid ${palette.line}` }, children: [
|
|
3234
3258
|
/* @__PURE__ */ jsx5(Box5, { sx: { color: "#A17C43", fontFamily: displayFont, fontSize: 40, lineHeight: 0.6 }, children: "\u201C" }),
|
|
3235
3259
|
/* @__PURE__ */ jsx5(Text, { props, field: `quote${index}`, fallback: testimonialsDefaults[`quote${index}`], children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { mt: 3, fontFamily: displayFont, fontSize: 25, letterSpacing: "-.025em", lineHeight: 1.3 }, children: node }) }),
|
|
3236
3260
|
/* @__PURE__ */ jsxs5(Box5, { sx: { mt: "auto", pt: 3 }, children: [
|
|
@@ -3261,12 +3285,13 @@ var faqDefaults = {
|
|
|
3261
3285
|
answer4: "H\xE3y \u0111\u1EC3 l\u1EA1i th\xF4ng tin li\xEAn h\u1EC7 \u0111\u1EC3 \u0111\u1ED9i ng\u0169 t\u01B0 v\u1EA5n v\xE0 s\u1EAFp x\u1EBFp bu\u1ED5i trao \u0111\u1ED5i ph\xF9 h\u1EE3p."
|
|
3262
3286
|
};
|
|
3263
3287
|
function FAQRenderer(props) {
|
|
3288
|
+
const listIndexes = cmsListItems(props.content, Array.from({ length: 4 }, () => ({}))).map((_, index) => index + 1);
|
|
3264
3289
|
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: palette.cream, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { display: "grid", maxWidth: 1376, mx: "auto", gap: { xs: 4, md: 10 }, gridTemplateColumns: { xs: "1fr", md: ".72fr 1.28fr" } }, children: [
|
|
3265
3290
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2, children: [
|
|
3266
3291
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: faqDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: eyebrowSx, children: node }) }),
|
|
3267
3292
|
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: faqDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: { ...headingSx, fontSize: { xs: 38, md: 56 } }, children: node }) })
|
|
3268
3293
|
] }),
|
|
3269
|
-
/* @__PURE__ */ jsx5(Box5, { children:
|
|
3294
|
+
/* @__PURE__ */ jsx5(Box5, { children: listIndexes.map((index) => /* @__PURE__ */ jsx5(Box5, { sx: { py: 2.5, borderTop: `1px solid ${palette.line}`, ...index === listIndexes.length && { borderBottom: `1px solid ${palette.line}` } }, children: /* @__PURE__ */ jsxs5(Stack3, { direction: "row", spacing: 2, children: [
|
|
3270
3295
|
/* @__PURE__ */ jsxs5(Box5, { sx: { color: palette.gold, fontFamily: "monospace", fontSize: 11, pt: 0.5 }, children: [
|
|
3271
3296
|
"0",
|
|
3272
3297
|
index
|
|
@@ -3526,8 +3551,8 @@ function paragraphField2(key, label, group = "N\u1ED9i dung") {
|
|
|
3526
3551
|
function imageField2(key, label, group = "H\xECnh \u1EA3nh") {
|
|
3527
3552
|
return { key, label, type: "image", group };
|
|
3528
3553
|
}
|
|
3529
|
-
function estateDefinition(type, name, description, icon,
|
|
3530
|
-
return { kind: "cms-component", category: "estate", placement: "content", type, name, description, icon, fields:
|
|
3554
|
+
function estateDefinition(type, name, description, icon, fields3, defaults) {
|
|
3555
|
+
return { kind: "cms-component", category: "estate", placement: "content", type, name, description, icon, fields: fields3, defaults };
|
|
3531
3556
|
}
|
|
3532
3557
|
var archiveDefaults = {
|
|
3533
3558
|
eyebrow: "D\u1EF1 \xE1n ti\xEAu bi\u1EC3u",
|
|
@@ -3564,7 +3589,7 @@ var archiveDefaults = {
|
|
|
3564
3589
|
project3Year: "2025"
|
|
3565
3590
|
};
|
|
3566
3591
|
function archiveProjects(props) {
|
|
3567
|
-
|
|
3592
|
+
const legacy = [1, 2, 3].map((index) => ({
|
|
3568
3593
|
image: String(getValue(props, `project${index}Image`, archiveDefaults[`project${index}Image`])),
|
|
3569
3594
|
type: String(getValue(props, `project${index}Type`, archiveDefaults[`project${index}Type`])),
|
|
3570
3595
|
title: String(getValue(props, `project${index}Title`, archiveDefaults[`project${index}Title`])),
|
|
@@ -3574,6 +3599,7 @@ function archiveProjects(props) {
|
|
|
3574
3599
|
scope: String(getValue(props, `project${index}Scope`, archiveDefaults[`project${index}Scope`])),
|
|
3575
3600
|
year: String(getValue(props, `project${index}Year`, archiveDefaults[`project${index}Year`]))
|
|
3576
3601
|
}));
|
|
3602
|
+
return cmsListItems(props.content, legacy);
|
|
3577
3603
|
}
|
|
3578
3604
|
function EstateProjectsArchiveRenderer(props) {
|
|
3579
3605
|
const [query, setQuery] = useState4("");
|
|
@@ -3712,6 +3738,13 @@ var detailDefaults = {
|
|
|
3712
3738
|
ctaLabel: "Trao \u0111\u1ED5i c\xF9ng \u0111\u1ED9i ng\u0169"
|
|
3713
3739
|
};
|
|
3714
3740
|
function EstateProjectDetailRenderer(props) {
|
|
3741
|
+
const galleryIndexes = cmsListItems(props.content, Array.from({ length: 3 }, () => ({}))).map((_, index) => index + 1);
|
|
3742
|
+
const projectInformation = cmsListItems(props.content, [
|
|
3743
|
+
{ label: "\u0110\u1ECBa \u0111i\u1EC3m", value: String(props.content.location ?? detailDefaults.location) },
|
|
3744
|
+
{ label: "Ch\u1EE7 \u0111\u1EA7u t\u01B0", value: String(props.content.client ?? detailDefaults.client) },
|
|
3745
|
+
{ label: "Di\u1EC7n t\xEDch", value: String(props.content.area ?? detailDefaults.area) },
|
|
3746
|
+
{ label: "Quy m\xF4", value: String(props.content.floors ?? detailDefaults.floors) }
|
|
3747
|
+
], "information");
|
|
3715
3748
|
return /* @__PURE__ */ jsxs6(Box6, { sx: { bgcolor: palette2.cream, color: palette2.ink }, children: [
|
|
3716
3749
|
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
3717
3750
|
/* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { position: "relative", isolation: "isolate", minHeight: { xs: 650, md: 900 }, overflow: "hidden", bgcolor: palette2.dark, color: "#F8F5EF" }, children: [
|
|
@@ -3726,10 +3759,10 @@ function EstateProjectDetailRenderer(props) {
|
|
|
3726
3759
|
/* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { ...containerSx, display: "grid", py: { xs: 7, md: 12 }, gap: { xs: 5, md: 12 }, gridTemplateColumns: { xs: "1fr", md: ".68fr 1.32fr" } }, children: [
|
|
3727
3760
|
/* @__PURE__ */ jsxs6(Box6, { children: [
|
|
3728
3761
|
/* @__PURE__ */ jsx6(Box6, { sx: eyebrowSx2, children: "Th\xF4ng tin d\u1EF1 \xE1n" }),
|
|
3729
|
-
/* @__PURE__ */ jsx6(Box6, { sx: { mt: 3, borderTop: `1px solid ${palette2.line}` }, children:
|
|
3730
|
-
/* @__PURE__ */ jsx6(Box6, { sx: { color: palette2.muted, fontSize: 12 }, children: label }),
|
|
3731
|
-
/* @__PURE__ */ jsx6(
|
|
3732
|
-
] },
|
|
3762
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { mt: 3, borderTop: `1px solid ${palette2.line}` }, children: projectInformation.map((item, index) => /* @__PURE__ */ jsxs6(Box6, { sx: { display: "flex", justifyContent: "space-between", gap: 2, py: 1.2, borderBottom: `1px solid ${palette2.line}` }, children: [
|
|
3763
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { color: palette2.muted, fontSize: 12 }, children: item.label || "M\u1EE5c m\u1EDBi" }),
|
|
3764
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { fontSize: 12, fontWeight: 700, textAlign: "right" }, children: item.value })
|
|
3765
|
+
] }, `${item.label}-${index}`)) })
|
|
3733
3766
|
] }),
|
|
3734
3767
|
/* @__PURE__ */ jsxs6(Stack4, { spacing: 3, sx: { alignItems: "flex-start" }, children: [
|
|
3735
3768
|
/* @__PURE__ */ jsx6(Text2, { props, field: "storyEyebrow", fallback: detailDefaults.storyEyebrow, sx: eyebrowSx2 }),
|
|
@@ -3747,13 +3780,14 @@ function EstateProjectDetailRenderer(props) {
|
|
|
3747
3780
|
] }) }),
|
|
3748
3781
|
/* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { ...containerSx, py: { xs: 8, md: 13 } }, children: [
|
|
3749
3782
|
/* @__PURE__ */ jsx6(Text2, { props, field: "galleryHeading", fallback: detailDefaults.galleryHeading, component: "h2", sx: { maxWidth: 760, fontFamily: displayFont2, fontSize: { xs: 46, md: 76 }, fontWeight: 400, letterSpacing: "-.06em", lineHeight: 0.94 } }),
|
|
3750
|
-
/* @__PURE__ */ jsx6(Stack4, { spacing: { xs: 5, md: 10 }, sx: { mt: { xs: 5, md: 8 } }, children:
|
|
3783
|
+
/* @__PURE__ */ jsx6(Stack4, { spacing: { xs: 5, md: 10 }, sx: { mt: { xs: 5, md: 8 } }, children: galleryIndexes.map((index) => /* @__PURE__ */ jsxs6(Box6, { sx: { display: "grid", alignItems: "center", gap: { xs: 2, md: 8 }, gridTemplateColumns: { xs: "1fr", md: index % 2 ? "1.45fr .55fr" : ".55fr 1.45fr" } }, children: [
|
|
3751
3784
|
/* @__PURE__ */ jsx6(Box6, { sx: { order: { md: index % 2 ? 1 : 2 }, minHeight: { xs: 330, md: index === 2 ? 520 : 430 } }, children: /* @__PURE__ */ jsx6(Image2, { props, field: `gallery${index}Image`, fallback: detailDefaults[`gallery${index}Image`], alt: "H\xECnh \u1EA3nh d\u1EF1 \xE1n" }) }),
|
|
3752
3785
|
/* @__PURE__ */ jsxs6(Stack4, { sx: { order: { md: index % 2 ? 2 : 1 }, alignItems: "flex-start", borderTop: `1px solid ${palette2.line}`, pt: 2 }, spacing: 1.5, children: [
|
|
3753
3786
|
/* @__PURE__ */ jsxs6(Box6, { sx: { color: palette2.gold, fontFamily: "monospace", fontSize: 11 }, children: [
|
|
3754
3787
|
"0",
|
|
3755
3788
|
index,
|
|
3756
|
-
" /
|
|
3789
|
+
" / ",
|
|
3790
|
+
String(galleryIndexes.length).padStart(2, "0")
|
|
3757
3791
|
] }),
|
|
3758
3792
|
/* @__PURE__ */ jsx6(Text2, { props, field: `gallery${index}Caption`, fallback: detailDefaults[`gallery${index}Caption`], sx: { fontFamily: displayFont2, fontSize: { xs: 24, md: 30 }, letterSpacing: "-.035em", lineHeight: 1.18 } }),
|
|
3759
3793
|
/* @__PURE__ */ jsx6(Text2, { props, field: `gallery${index}Note`, fallback: detailDefaults[`gallery${index}Note`], sx: { color: palette2.muted, fontSize: 14, lineHeight: 1.72 } })
|
|
@@ -3794,6 +3828,84 @@ var estateProjectDetailBlock = {
|
|
|
3794
3828
|
};
|
|
3795
3829
|
var estateProjectPageBlocks = [estateProjectsArchiveBlock, estateProjectDetailBlock];
|
|
3796
3830
|
|
|
3831
|
+
// src/dynamic-list-blocks.tsx
|
|
3832
|
+
import Box7 from "@mui/material/Box";
|
|
3833
|
+
import Button7 from "@mui/material/Button";
|
|
3834
|
+
import Stack5 from "@mui/material/Stack";
|
|
3835
|
+
import { Fragment as Fragment4, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
3836
|
+
var allBlocks = [...estateBlocks, ...estateProjectPageBlocks, ...minimalMarketingBlocks];
|
|
3837
|
+
var stringValue = (content, key) => String(content[key] ?? "");
|
|
3838
|
+
function fields2(...items) {
|
|
3839
|
+
return items.map(([key, label, type]) => ({ key, label, type, required: key === "title" || key === "question" }));
|
|
3840
|
+
}
|
|
3841
|
+
function indexed(prefix, names) {
|
|
3842
|
+
return (content, items) => ({
|
|
3843
|
+
...content,
|
|
3844
|
+
...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] ?? ""])))
|
|
3845
|
+
});
|
|
3846
|
+
}
|
|
3847
|
+
function listConfig(type, count, fixedField, itemFields, prefix, names) {
|
|
3848
|
+
return {
|
|
3849
|
+
type,
|
|
3850
|
+
count,
|
|
3851
|
+
fixedField,
|
|
3852
|
+
fields: itemFields,
|
|
3853
|
+
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}`)]))),
|
|
3854
|
+
apply: indexed(prefix, names)
|
|
3855
|
+
};
|
|
3856
|
+
}
|
|
3857
|
+
var configs = [
|
|
3858
|
+
listConfig("faq", 4, /^(question|answer)\d+$/, fields2(["question", "C\xE2u h\u1ECFi", "text"], ["answer", "Tr\u1EA3 l\u1EDDi", "textarea"]), "", ["question", "answer"]),
|
|
3859
|
+
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"]),
|
|
3860
|
+
listConfig("amenities", 6, /^amenity\d+(Title|Description)$/, fields2(["title", "T\xEAn ti\u1EC7n \xEDch", "text"], ["description", "M\xF4 t\u1EA3", "textarea"]), "amenity", ["title", "description"]),
|
|
3861
|
+
listConfig("property-gallery", 4, /^(image|caption)\d+$/, fields2(["image", "H\xECnh \u1EA3nh", "image"], ["caption", "Ch\xFA th\xEDch", "text"]), "", ["image", "caption"]),
|
|
3862
|
+
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"]),
|
|
3863
|
+
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"]),
|
|
3864
|
+
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"]),
|
|
3865
|
+
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"]),
|
|
3866
|
+
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"]),
|
|
3867
|
+
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"]),
|
|
3868
|
+
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"]),
|
|
3869
|
+
listConfig("faq-section", 3, /^item\d+(Question|Answer)$/, fields2(["question", "C\xE2u h\u1ECFi", "text"], ["answer", "Tr\u1EA3 l\u1EDDi", "textarea"]), "item", ["question", "answer"])
|
|
3870
|
+
];
|
|
3871
|
+
function DynamicListRenderer({ base, config, ...props }) {
|
|
3872
|
+
const items = cmsListItems(props.content, config.legacy(props.content));
|
|
3873
|
+
const information = config.type === "estate-project-detail" ? cmsListItems(props.content, [
|
|
3874
|
+
{ label: "\u0110\u1ECBa \u0111i\u1EC3m", value: stringValue(props.content, "location") },
|
|
3875
|
+
{ label: "Ch\u1EE7 \u0111\u1EA7u t\u01B0", value: stringValue(props.content, "client") },
|
|
3876
|
+
{ label: "Di\u1EC7n t\xEDch", value: stringValue(props.content, "area") },
|
|
3877
|
+
{ label: "Quy m\xF4", value: stringValue(props.content, "floors") }
|
|
3878
|
+
]) : [];
|
|
3879
|
+
const BaseRenderer = base.Renderer;
|
|
3880
|
+
const content = {
|
|
3881
|
+
...config.apply({ ...props.content, ...information.length ? { location: information[0]?.value ?? "", client: information[1]?.value ?? "", area: information[2]?.value ?? "", floors: information[3]?.value ?? "" } : {} }, items),
|
|
3882
|
+
items: JSON.stringify(items),
|
|
3883
|
+
...config.type === "estate-project-detail" ? { information: JSON.stringify(information) } : {}
|
|
3884
|
+
};
|
|
3885
|
+
const add = (field, list, itemFields) => (event) => {
|
|
3886
|
+
event.preventDefault();
|
|
3887
|
+
event.stopPropagation();
|
|
3888
|
+
props.onChange?.(field, JSON.stringify([...list, Object.fromEntries(itemFields.map((itemField) => [itemField.key, itemField.key === "label" ? "M\u1EE5c m\u1EDBi" : ""]))]));
|
|
3889
|
+
};
|
|
3890
|
+
return /* @__PURE__ */ jsxs7(Fragment4, { children: [
|
|
3891
|
+
/* @__PURE__ */ jsx7(BaseRenderer, { ...props, content }),
|
|
3892
|
+
props.editable && /* @__PURE__ */ jsx7(Box7, { sx: { px: { xs: 2, md: 4 }, pb: 3, bgcolor: "#FAF8F3" }, children: /* @__PURE__ */ jsxs7(Stack5, { direction: "row", spacing: 1, children: [
|
|
3893
|
+
/* @__PURE__ */ jsx7(Button7, { size: "small", variant: "outlined", onClick: add("items", items, config.fields), children: "+ Th\xEAm item" }),
|
|
3894
|
+
config.type === "estate-project-detail" && /* @__PURE__ */ jsx7(Button7, { 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" })
|
|
3895
|
+
] }) })
|
|
3896
|
+
] });
|
|
3897
|
+
}
|
|
3898
|
+
function createBlock(config) {
|
|
3899
|
+
const base = allBlocks.find((block) => block.definition.type === config.type);
|
|
3900
|
+
if (!base) throw new Error(`Missing list component: ${config.type}`);
|
|
3901
|
+
const defaults = { ...base.definition.defaults, items: JSON.stringify(config.legacy(base.definition.defaults)) };
|
|
3902
|
+
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"]) }] : [];
|
|
3903
|
+
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") }]);
|
|
3904
|
+
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__ */ jsx7(DynamicListRenderer, { ...props, base, config }) };
|
|
3905
|
+
}
|
|
3906
|
+
var dynamicListBlocks = configs.map(createBlock);
|
|
3907
|
+
var dynamicListTypes = new Set(dynamicListBlocks.map((block) => block.definition.type));
|
|
3908
|
+
|
|
3797
3909
|
// src/wikex/assets/download-section/footer-appstore-icon.svg
|
|
3798
3910
|
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';
|
|
3799
3911
|
|
|
@@ -3823,7 +3935,7 @@ var downloadAssets = {
|
|
|
3823
3935
|
};
|
|
3824
3936
|
|
|
3825
3937
|
// src/wikex/download-section.tsx
|
|
3826
|
-
import { jsx as
|
|
3938
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3827
3939
|
var value5 = (content, key) => content[key];
|
|
3828
3940
|
var inlineEditableSx = {
|
|
3829
3941
|
color: "inherit",
|
|
@@ -3849,16 +3961,16 @@ function DownloadSection({
|
|
|
3849
3961
|
const source = String(value5(content, key) ?? "");
|
|
3850
3962
|
return source && !source.startsWith("/landing-assets/") ? source : fallback;
|
|
3851
3963
|
};
|
|
3852
|
-
return /* @__PURE__ */
|
|
3964
|
+
return /* @__PURE__ */ jsx8("div", { "data-wikex-download": true, children: /* @__PURE__ */ jsxs8(
|
|
3853
3965
|
"section",
|
|
3854
3966
|
{
|
|
3855
3967
|
className: "download section",
|
|
3856
3968
|
id: String(value5(content, "anchorId") ?? "download"),
|
|
3857
3969
|
children: [
|
|
3858
|
-
/* @__PURE__ */
|
|
3859
|
-
/* @__PURE__ */
|
|
3860
|
-
/* @__PURE__ */
|
|
3861
|
-
/* @__PURE__ */
|
|
3970
|
+
/* @__PURE__ */ jsx8("style", { children: compatibleStyles }),
|
|
3971
|
+
/* @__PURE__ */ jsxs8("div", { className: "container download-card", children: [
|
|
3972
|
+
/* @__PURE__ */ jsxs8("div", { className: "download-copy", children: [
|
|
3973
|
+
/* @__PURE__ */ jsx8("h2", { className: "download-mobile-title", children: /* @__PURE__ */ jsx8(
|
|
3862
3974
|
EditableText,
|
|
3863
3975
|
{
|
|
3864
3976
|
component: "span",
|
|
@@ -3869,9 +3981,9 @@ function DownloadSection({
|
|
|
3869
3981
|
sx: inlineEditableSx
|
|
3870
3982
|
}
|
|
3871
3983
|
) }),
|
|
3872
|
-
/* @__PURE__ */
|
|
3873
|
-
/* @__PURE__ */
|
|
3874
|
-
/* @__PURE__ */
|
|
3984
|
+
/* @__PURE__ */ jsxs8("div", { className: "download-offer-row", children: [
|
|
3985
|
+
/* @__PURE__ */ jsxs8("div", { className: "reward", children: [
|
|
3986
|
+
/* @__PURE__ */ jsx8("h2", { className: "download-desktop-title", children: /* @__PURE__ */ jsx8(
|
|
3875
3987
|
EditableText,
|
|
3876
3988
|
{
|
|
3877
3989
|
component: "span",
|
|
@@ -3882,8 +3994,8 @@ function DownloadSection({
|
|
|
3882
3994
|
sx: inlineEditableSx
|
|
3883
3995
|
}
|
|
3884
3996
|
) }),
|
|
3885
|
-
/* @__PURE__ */
|
|
3886
|
-
/* @__PURE__ */
|
|
3997
|
+
/* @__PURE__ */ jsxs8("div", { className: "reward-amount", children: [
|
|
3998
|
+
/* @__PURE__ */ jsx8(
|
|
3887
3999
|
EditableText,
|
|
3888
4000
|
{
|
|
3889
4001
|
component: "span",
|
|
@@ -3894,7 +4006,7 @@ function DownloadSection({
|
|
|
3894
4006
|
sx: inlineEditableSx
|
|
3895
4007
|
}
|
|
3896
4008
|
),
|
|
3897
|
-
/* @__PURE__ */
|
|
4009
|
+
/* @__PURE__ */ jsx8(
|
|
3898
4010
|
EditableText,
|
|
3899
4011
|
{
|
|
3900
4012
|
component: "span",
|
|
@@ -3906,8 +4018,8 @@ function DownloadSection({
|
|
|
3906
4018
|
}
|
|
3907
4019
|
)
|
|
3908
4020
|
] }),
|
|
3909
|
-
/* @__PURE__ */
|
|
3910
|
-
/* @__PURE__ */
|
|
4021
|
+
/* @__PURE__ */ jsx8("span", { className: "reward-divider", "aria-hidden": "true" }),
|
|
4022
|
+
/* @__PURE__ */ jsx8("p", { children: /* @__PURE__ */ jsx8(
|
|
3911
4023
|
EditableText,
|
|
3912
4024
|
{
|
|
3913
4025
|
component: "span",
|
|
@@ -3919,9 +4031,9 @@ function DownloadSection({
|
|
|
3919
4031
|
}
|
|
3920
4032
|
) })
|
|
3921
4033
|
] }),
|
|
3922
|
-
/* @__PURE__ */
|
|
3923
|
-
/* @__PURE__ */
|
|
3924
|
-
/* @__PURE__ */
|
|
4034
|
+
/* @__PURE__ */ jsxs8("div", { className: "download-qr-links", children: [
|
|
4035
|
+
/* @__PURE__ */ jsxs8("div", { className: "download-qr", children: [
|
|
4036
|
+
/* @__PURE__ */ jsx8(
|
|
3925
4037
|
EditableText,
|
|
3926
4038
|
{
|
|
3927
4039
|
component: "span",
|
|
@@ -3932,7 +4044,7 @@ function DownloadSection({
|
|
|
3932
4044
|
sx: inlineEditableSx
|
|
3933
4045
|
}
|
|
3934
4046
|
),
|
|
3935
|
-
/* @__PURE__ */
|
|
4047
|
+
/* @__PURE__ */ jsx8("span", { children: /* @__PURE__ */ jsx8(
|
|
3936
4048
|
"img",
|
|
3937
4049
|
{
|
|
3938
4050
|
src: image("qrImage", downloadAssets.downloadQr),
|
|
@@ -3940,16 +4052,16 @@ function DownloadSection({
|
|
|
3940
4052
|
}
|
|
3941
4053
|
) })
|
|
3942
4054
|
] }),
|
|
3943
|
-
/* @__PURE__ */
|
|
4055
|
+
/* @__PURE__ */ jsx8("div", { className: "download-links", children: badges.map(([platform, icon]) => /* @__PURE__ */ jsxs8(
|
|
3944
4056
|
"a",
|
|
3945
4057
|
{
|
|
3946
4058
|
className: `download-badge download-badge--${platform === "appStore" ? "apple" : platform === "googlePlay" ? "google" : "web"}`,
|
|
3947
4059
|
href: String(value5(content, `${platform}Link`) ?? "#"),
|
|
3948
4060
|
"aria-label": String(value5(content, `${platform}Alt`) ?? ""),
|
|
3949
4061
|
children: [
|
|
3950
|
-
/* @__PURE__ */
|
|
3951
|
-
/* @__PURE__ */
|
|
3952
|
-
/* @__PURE__ */
|
|
4062
|
+
/* @__PURE__ */ jsx8("img", { src: image(`${platform}Icon`, icon), alt: "" }),
|
|
4063
|
+
/* @__PURE__ */ jsxs8("span", { className: "download-badge-copy", children: [
|
|
4064
|
+
/* @__PURE__ */ jsx8("small", { children: /* @__PURE__ */ jsx8(
|
|
3953
4065
|
EditableText,
|
|
3954
4066
|
{
|
|
3955
4067
|
component: "span",
|
|
@@ -3960,7 +4072,7 @@ function DownloadSection({
|
|
|
3960
4072
|
sx: inlineEditableSx
|
|
3961
4073
|
}
|
|
3962
4074
|
) }),
|
|
3963
|
-
/* @__PURE__ */
|
|
4075
|
+
/* @__PURE__ */ jsx8("strong", { children: /* @__PURE__ */ jsx8(
|
|
3964
4076
|
EditableText,
|
|
3965
4077
|
{
|
|
3966
4078
|
component: "span",
|
|
@@ -3979,21 +4091,21 @@ function DownloadSection({
|
|
|
3979
4091
|
] })
|
|
3980
4092
|
] })
|
|
3981
4093
|
] }),
|
|
3982
|
-
/* @__PURE__ */
|
|
4094
|
+
/* @__PURE__ */ jsxs8(
|
|
3983
4095
|
"div",
|
|
3984
4096
|
{
|
|
3985
4097
|
className: "download-devices",
|
|
3986
4098
|
"aria-label": String(value5(content, "devicesAlt") ?? ""),
|
|
3987
4099
|
children: [
|
|
3988
|
-
/* @__PURE__ */
|
|
4100
|
+
/* @__PURE__ */ jsx8("div", { className: "download-laptop", children: /* @__PURE__ */ jsx8(
|
|
3989
4101
|
"img",
|
|
3990
4102
|
{
|
|
3991
4103
|
src: image("laptopImage", downloadAssets.laptopImage),
|
|
3992
4104
|
alt: ""
|
|
3993
4105
|
}
|
|
3994
4106
|
) }),
|
|
3995
|
-
/* @__PURE__ */
|
|
3996
|
-
editable && /* @__PURE__ */
|
|
4107
|
+
/* @__PURE__ */ jsx8("div", { className: "download-phone", children: /* @__PURE__ */ jsx8("img", { src: image("phoneImage", downloadAssets.phoneImage), alt: "" }) }),
|
|
4108
|
+
editable && /* @__PURE__ */ jsx8(
|
|
3997
4109
|
"button",
|
|
3998
4110
|
{
|
|
3999
4111
|
className: "download-replace",
|
|
@@ -4161,8 +4273,10 @@ var wikexComponents = [downloadSectionBlock];
|
|
|
4161
4273
|
var estateComponents = [...estateBlocks, ...estateProjectPageBlocks];
|
|
4162
4274
|
var wikexCmsBlocks = [
|
|
4163
4275
|
...wikexComponents,
|
|
4164
|
-
...estateComponents,
|
|
4165
|
-
|
|
4276
|
+
...[...estateComponents, ...minimalUiComponents].filter(
|
|
4277
|
+
(block) => !dynamicListTypes.has(block.definition.type)
|
|
4278
|
+
),
|
|
4279
|
+
...dynamicListBlocks
|
|
4166
4280
|
];
|
|
4167
4281
|
export {
|
|
4168
4282
|
estateBlocks,
|