@enyxs/wikex-components 0.8.13 → 0.8.15
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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +917 -157
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +917 -157
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ import Button from "@mui/material/Button";
|
|
|
12
12
|
import Typography from "@mui/material/Typography";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
function EditableText({
|
|
15
|
+
className,
|
|
15
16
|
field,
|
|
16
17
|
value: value6,
|
|
17
18
|
editable,
|
|
@@ -23,6 +24,7 @@ function EditableText({
|
|
|
23
24
|
return /* @__PURE__ */ jsx(
|
|
24
25
|
Typography,
|
|
25
26
|
{
|
|
27
|
+
className,
|
|
26
28
|
component: component ?? "div",
|
|
27
29
|
variant,
|
|
28
30
|
contentEditable: editable,
|
|
@@ -50,42 +52,87 @@ function EditableImage({
|
|
|
50
52
|
alt,
|
|
51
53
|
editable,
|
|
52
54
|
onImageRequest,
|
|
53
|
-
sx
|
|
55
|
+
sx,
|
|
56
|
+
imageSx,
|
|
57
|
+
actionSx
|
|
54
58
|
}) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
59
|
+
const normalizedSrc = src.trim();
|
|
60
|
+
return /* @__PURE__ */ jsxs(
|
|
61
|
+
Box,
|
|
62
|
+
{
|
|
63
|
+
sx: {
|
|
64
|
+
position: "relative",
|
|
65
|
+
overflow: "hidden",
|
|
66
|
+
bgcolor: normalizedSrc ? "transparent" : "grey.200",
|
|
67
|
+
...sx
|
|
68
|
+
},
|
|
69
|
+
children: [
|
|
70
|
+
normalizedSrc ? /* @__PURE__ */ jsx(
|
|
71
|
+
Box,
|
|
72
|
+
{
|
|
73
|
+
component: "img",
|
|
74
|
+
src: normalizedSrc,
|
|
75
|
+
alt,
|
|
76
|
+
sx: { display: "block", width: 1, height: 1, objectFit: "cover", ...imageSx }
|
|
77
|
+
}
|
|
78
|
+
) : /* @__PURE__ */ jsx(
|
|
79
|
+
Box,
|
|
80
|
+
{
|
|
81
|
+
role: "img",
|
|
82
|
+
"aria-label": alt || "Ch\u01B0a c\xF3 \u1EA3nh",
|
|
83
|
+
sx: {
|
|
84
|
+
width: 1,
|
|
85
|
+
height: 1,
|
|
86
|
+
display: "grid",
|
|
87
|
+
placeItems: "center",
|
|
88
|
+
color: "text.disabled",
|
|
89
|
+
fontSize: 12
|
|
90
|
+
},
|
|
91
|
+
children: "Ch\u01B0a c\xF3 \u1EA3nh"
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
editable && /* @__PURE__ */ jsx(
|
|
95
|
+
Button,
|
|
96
|
+
{
|
|
97
|
+
className: "wikex-editable-image-action",
|
|
98
|
+
size: "small",
|
|
99
|
+
variant: "contained",
|
|
100
|
+
onPointerDown: (event) => event.stopPropagation(),
|
|
101
|
+
onMouseDown: (event) => event.stopPropagation(),
|
|
102
|
+
onClick: (event) => {
|
|
103
|
+
event.stopPropagation();
|
|
104
|
+
onImageRequest?.(field);
|
|
105
|
+
},
|
|
106
|
+
sx: {
|
|
107
|
+
position: "absolute",
|
|
108
|
+
zIndex: 10,
|
|
109
|
+
right: 12,
|
|
110
|
+
bottom: 12,
|
|
111
|
+
pointerEvents: "auto",
|
|
112
|
+
border: "1px solid rgba(255,255,255,.72)",
|
|
113
|
+
bgcolor: "rgba(255,255,255,.92)",
|
|
114
|
+
color: "grey.900",
|
|
115
|
+
boxShadow: "0 6px 18px rgba(15,23,42,.18)",
|
|
116
|
+
backdropFilter: "blur(8px)",
|
|
117
|
+
transition: "opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1), background-color 160ms ease, box-shadow 160ms ease",
|
|
118
|
+
"&:hover": {
|
|
119
|
+
bgcolor: "common.white",
|
|
120
|
+
boxShadow: "0 8px 24px rgba(15,23,42,.24)",
|
|
121
|
+
transform: "translateY(-1px)"
|
|
122
|
+
},
|
|
123
|
+
"&:active": {
|
|
124
|
+
boxShadow: "0 3px 10px rgba(15,23,42,.18)",
|
|
125
|
+
transform: "translateY(0) scale(.97)"
|
|
126
|
+
},
|
|
127
|
+
"@media (prefers-reduced-motion: reduce)": { transition: "none" },
|
|
128
|
+
...actionSx
|
|
129
|
+
},
|
|
130
|
+
children: "Thay \u1EA3nh"
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
);
|
|
89
136
|
}
|
|
90
137
|
|
|
91
138
|
// src/minimal-ui/blocks.tsx
|
|
@@ -2714,6 +2761,9 @@ var playfair_display_latin_default = "data:font/woff2;base64,d09GMgABAAAAAJY8ABI
|
|
|
2714
2761
|
// src/estate/assets/playfair-display-vietnamese.woff2
|
|
2715
2762
|
var playfair_display_vietnamese_default = "data:font/woff2;base64,d09GMgABAAAAACNgABIAAAAAU/wAACL1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoIlG59sHIJAP0hWQVKEcgZgP1NUQVSBDgCDBC9gEQgKtGisBwuCIAAwpHoBNgIkA4QoBCAFigYHinwbQU0lbJtWMzgPCJi6uhXB/39LoENkBW8KsF1TXNVxVFXOnLJ8TFLh6MQujasOwsKCyHXp3cwTECKFFMLbD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
2764
|
+
// src/estate/assets/wikex-estates-logo.svg
|
|
2765
|
+
var wikex_estates_logo_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 40" role="img" aria-label="Wikex Estates">%0A <text%0A x="2"%0A y="29"%0A fill="%23F3EFE6"%0A font-family="Arial, Helvetica, sans-serif"%0A font-size="24"%0A font-weight="800"%0A letter-spacing="3.6"%0A >WIKEX ESTATES</text>%0A</svg>%0A';
|
|
2766
|
+
|
|
2717
2767
|
// src/estate/blocks.tsx
|
|
2718
2768
|
import { Fragment as Fragment3, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2719
2769
|
var palette = {
|
|
@@ -2744,7 +2794,8 @@ function Text({
|
|
|
2744
2794
|
fallback,
|
|
2745
2795
|
children,
|
|
2746
2796
|
sx,
|
|
2747
|
-
component
|
|
2797
|
+
component,
|
|
2798
|
+
className
|
|
2748
2799
|
}) {
|
|
2749
2800
|
return children(
|
|
2750
2801
|
/* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
@@ -2752,6 +2803,7 @@ function Text({
|
|
|
2752
2803
|
/* @__PURE__ */ jsx5(
|
|
2753
2804
|
EditableText,
|
|
2754
2805
|
{
|
|
2806
|
+
className,
|
|
2755
2807
|
field,
|
|
2756
2808
|
value: value4(props.content, field, fallback),
|
|
2757
2809
|
editable: isEditable(props, field),
|
|
@@ -2784,6 +2836,56 @@ function Image({ props, field, fallback, alt }) {
|
|
|
2784
2836
|
}
|
|
2785
2837
|
);
|
|
2786
2838
|
}
|
|
2839
|
+
function EstateLogo({ props, fallback }) {
|
|
2840
|
+
return /* @__PURE__ */ jsx5(
|
|
2841
|
+
EditableImage,
|
|
2842
|
+
{
|
|
2843
|
+
field: "logo",
|
|
2844
|
+
src: String(value4(props.content, "logo", fallback)),
|
|
2845
|
+
alt: "Wikex Estates",
|
|
2846
|
+
editable: isEditable(props, "logo"),
|
|
2847
|
+
onImageRequest: props.onImageRequest,
|
|
2848
|
+
sx: {
|
|
2849
|
+
flexShrink: 0,
|
|
2850
|
+
width: { xs: 148, md: 176 },
|
|
2851
|
+
height: 36,
|
|
2852
|
+
bgcolor: "transparent",
|
|
2853
|
+
"& .wikex-editable-image-action": {
|
|
2854
|
+
opacity: 0,
|
|
2855
|
+
pointerEvents: "none",
|
|
2856
|
+
transform: "translateY(5px) scale(.96)"
|
|
2857
|
+
},
|
|
2858
|
+
"&:hover .wikex-editable-image-action, &:focus-within .wikex-editable-image-action": {
|
|
2859
|
+
opacity: 1,
|
|
2860
|
+
pointerEvents: "auto",
|
|
2861
|
+
transform: "translateY(0) scale(1)"
|
|
2862
|
+
},
|
|
2863
|
+
"@media (hover: none)": {
|
|
2864
|
+
"& .wikex-editable-image-action": {
|
|
2865
|
+
opacity: 1,
|
|
2866
|
+
pointerEvents: "auto",
|
|
2867
|
+
transform: "none"
|
|
2868
|
+
}
|
|
2869
|
+
},
|
|
2870
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
2871
|
+
"& .wikex-editable-image-action": { transform: "none" }
|
|
2872
|
+
}
|
|
2873
|
+
},
|
|
2874
|
+
imageSx: {
|
|
2875
|
+
objectFit: "contain",
|
|
2876
|
+
objectPosition: "left center"
|
|
2877
|
+
},
|
|
2878
|
+
actionSx: {
|
|
2879
|
+
right: 4,
|
|
2880
|
+
bottom: 4,
|
|
2881
|
+
minWidth: 0,
|
|
2882
|
+
px: 0.75,
|
|
2883
|
+
py: 0.25,
|
|
2884
|
+
fontSize: 10
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
);
|
|
2888
|
+
}
|
|
2787
2889
|
var eyebrowSx = {
|
|
2788
2890
|
color: palette.gold,
|
|
2789
2891
|
fontSize: 11,
|
|
@@ -2800,6 +2902,71 @@ var headingSx = {
|
|
|
2800
2902
|
lineHeight: 0.98
|
|
2801
2903
|
};
|
|
2802
2904
|
var sectionSx = { px: { xs: 2, md: 4 }, py: { xs: 8, md: 14 } };
|
|
2905
|
+
var estateResponsiveSx = {
|
|
2906
|
+
containerType: "inline-size",
|
|
2907
|
+
minWidth: 0,
|
|
2908
|
+
overflowX: "clip",
|
|
2909
|
+
"& .estate-container, & .estate-split, & .estate-card-grid, & .estate-card, & .estate-process-row": {
|
|
2910
|
+
minWidth: 0
|
|
2911
|
+
},
|
|
2912
|
+
"& .estate-display-xl, & .estate-display-lg, & .estate-display-md, & .estate-card-title": {
|
|
2913
|
+
overflowWrap: "anywhere"
|
|
2914
|
+
},
|
|
2915
|
+
"@container (max-width: 899px)": {
|
|
2916
|
+
"& .estate-split": { gridTemplateColumns: "minmax(0, 1fr)" },
|
|
2917
|
+
"& .estate-flex-split": {
|
|
2918
|
+
alignItems: "flex-start",
|
|
2919
|
+
flexDirection: "column"
|
|
2920
|
+
},
|
|
2921
|
+
"& .estate-card-grid-3, & .estate-card-grid-4": {
|
|
2922
|
+
gridTemplateColumns: "repeat(2, minmax(0, 1fr))"
|
|
2923
|
+
},
|
|
2924
|
+
"& .estate-featured-grid": { gridTemplateColumns: "minmax(0, 1fr)" },
|
|
2925
|
+
"& .estate-featured-card": {
|
|
2926
|
+
gridColumn: "auto",
|
|
2927
|
+
minHeight: 460
|
|
2928
|
+
},
|
|
2929
|
+
"& .estate-process-row": {
|
|
2930
|
+
gridTemplateColumns: "40px minmax(0, 1fr)"
|
|
2931
|
+
},
|
|
2932
|
+
"& .estate-process-copy": { gridColumn: 2 },
|
|
2933
|
+
"& .estate-media": { minHeight: 420 },
|
|
2934
|
+
"& .estate-hero-location": {
|
|
2935
|
+
right: 16,
|
|
2936
|
+
left: 16,
|
|
2937
|
+
width: "auto",
|
|
2938
|
+
maxWidth: "calc(100% - 32px)",
|
|
2939
|
+
textAlign: "center"
|
|
2940
|
+
}
|
|
2941
|
+
},
|
|
2942
|
+
"@container (max-width: 599px)": {
|
|
2943
|
+
"& .estate-container": { px: 2 },
|
|
2944
|
+
"& .estate-display-xl": { fontSize: 48, lineHeight: 0.92 },
|
|
2945
|
+
"& .estate-display-lg": { fontSize: 40, lineHeight: 0.98 },
|
|
2946
|
+
"& .estate-display-md": { fontSize: 36, lineHeight: 1 },
|
|
2947
|
+
"& .estate-card-title": { fontSize: 30, lineHeight: 1.04 },
|
|
2948
|
+
"& .estate-card-grid-2, & .estate-card-grid-3, & .estate-card-grid-4": {
|
|
2949
|
+
gridTemplateColumns: "minmax(0, 1fr)"
|
|
2950
|
+
},
|
|
2951
|
+
"& .estate-featured-card": { minHeight: 390 },
|
|
2952
|
+
"& .estate-media": { minHeight: 300 },
|
|
2953
|
+
"& .estate-actions": { width: "100%", flexDirection: "column" },
|
|
2954
|
+
"& .estate-actions > *": { width: "100%" },
|
|
2955
|
+
"& .estate-hero-content": { justifyContent: "center" },
|
|
2956
|
+
"& .estate-hero-content-row": { gap: 2.5 },
|
|
2957
|
+
"& .estate-hero-location": {
|
|
2958
|
+
px: 1.5,
|
|
2959
|
+
py: 1.25,
|
|
2960
|
+
borderWidth: "1px 1px 0",
|
|
2961
|
+
fontSize: 11,
|
|
2962
|
+
whiteSpace: "normal"
|
|
2963
|
+
},
|
|
2964
|
+
"& .estate-footer-links": { gridTemplateColumns: "minmax(0, 1fr)" },
|
|
2965
|
+
"& .estate-stat-card, & .estate-service-card, & .estate-article-card, & .estate-amenity-card, & .estate-testimonial-card": {
|
|
2966
|
+
minHeight: "auto"
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
};
|
|
2803
2970
|
var displayFont = "'Wikex Playfair', Georgia, serif";
|
|
2804
2971
|
var outlinedEyebrowSx = {
|
|
2805
2972
|
...eyebrowSx,
|
|
@@ -2859,11 +3026,11 @@ var introDefaults = {
|
|
|
2859
3026
|
};
|
|
2860
3027
|
function EstateIntroRenderer(props) {
|
|
2861
3028
|
const imageRight = value4(props.content, "imagePosition", introDefaults.imagePosition) === "right";
|
|
2862
|
-
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: 9 }, gridTemplateColumns: { xs: "1fr", md: "1.05fr .95fr" } }, children: [
|
|
2863
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { order: { md: imageRight ? 2 : 1 }, minHeight: { xs: 400, md: 620 } }, children: /* @__PURE__ */ jsx5(Image, { props, field: "image", fallback: introDefaults.image, alt: "Kh\xF4ng gian b\u1EA5t \u0111\u1ED9ng s\u1EA3n" }) }),
|
|
3029
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...estateResponsiveSx, ...sectionSx, bgcolor: palette.cream, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container estate-split", sx: { display: "grid", maxWidth: 1376, mx: "auto", gap: { xs: 4, md: 9 }, gridTemplateColumns: { xs: "1fr", md: "1.05fr .95fr" } }, children: [
|
|
3030
|
+
/* @__PURE__ */ jsx5(Box5, { className: "estate-media", sx: { order: { md: imageRight ? 2 : 1 }, minHeight: { xs: 400, md: 620 } }, children: /* @__PURE__ */ jsx5(Image, { props, field: "image", fallback: introDefaults.image, alt: "Kh\xF4ng gian b\u1EA5t \u0111\u1ED9ng s\u1EA3n" }) }),
|
|
2864
3031
|
/* @__PURE__ */ jsxs5(Stack3, { sx: { order: { md: imageRight ? 1 : 2 }, justifyContent: "center", alignItems: "flex-start" }, spacing: 3, children: [
|
|
2865
3032
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: introDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: eyebrowSx, children: node }) }),
|
|
2866
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: introDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: headingSx, children: node }) }),
|
|
3033
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: introDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-md", component: "h2", sx: headingSx, children: node }) }),
|
|
2867
3034
|
/* @__PURE__ */ jsx5(Text, { props, field: "body", fallback: introDefaults.body, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { color: palette.muted, fontSize: 17, lineHeight: 1.8 }, children: node }) }),
|
|
2868
3035
|
/* @__PURE__ */ jsx5(Button5, { endIcon: "\u2197", href: String(value4(props.content, "ctaUrl", introDefaults.ctaUrl)), sx: { color: "#795B2D", borderBottom: "1px solid", borderRadius: 0, px: 0, fontSize: 11, letterSpacing: ".13em", fontWeight: 700 }, children: /* @__PURE__ */ jsx5(Text, { props, field: "ctaLabel", fallback: introDefaults.ctaLabel, children: (node) => node }) })
|
|
2869
3036
|
] })
|
|
@@ -2893,16 +3060,16 @@ var heroDefaults = {
|
|
|
2893
3060
|
location: "Vi\u1EC7t Nam \xB7 T\u01B0 v\u1EA5n tr\xEAn to\xE0n qu\u1ED1c"
|
|
2894
3061
|
};
|
|
2895
3062
|
function EstateHeroRenderer(props) {
|
|
2896
|
-
return /* @__PURE__ */ jsxs5(Box5, { component: "section", sx: { position: "relative", isolation: "isolate", minHeight: { xs: 700, md: 900 }, overflow: "hidden", bgcolor: palette.dark, color: "white" }, children: [
|
|
3063
|
+
return /* @__PURE__ */ jsxs5(Box5, { component: "section", sx: { ...estateResponsiveSx, position: "relative", isolation: "isolate", minHeight: { xs: 700, md: 900 }, overflow: "hidden", bgcolor: palette.dark, color: "white" }, children: [
|
|
2897
3064
|
/* @__PURE__ */ jsx5(EstateFontFaces, {}),
|
|
2898
3065
|
/* @__PURE__ */ jsx5(Box5, { sx: { position: "absolute", inset: 0 }, children: /* @__PURE__ */ jsx5(Image, { props, field: "image", fallback: heroDefaults.image, alt: "Bi\u1EC7t th\u1EF1 nhi\u1EC7t \u0111\u1EDBi cao c\u1EA5p" }) }),
|
|
2899
3066
|
/* @__PURE__ */ jsx5(Box5, { sx: { position: "absolute", inset: 0, zIndex: 1, pointerEvents: "none", background: "linear-gradient(90deg, rgba(15,21,17,.94) 0%, rgba(15,21,17,.67) 43%, rgba(15,21,17,.08) 82%), linear-gradient(0deg, rgba(15,21,17,.55), transparent 52%)" } }),
|
|
2900
|
-
/* @__PURE__ */ jsxs5(Stack3, { sx: { position: "relative", zIndex: 2, minHeight: { xs: 700, md: 900 }, maxWidth: 1376, mx: "auto", px: { xs: 2, md: 4 }, pt: { xs: 16, md: 23 }, pb: { xs: 7, md: 12 }, justifyContent: "flex-end", alignItems: "flex-start" }, spacing: { xs: 3, md: 4 }, children: [
|
|
3067
|
+
/* @__PURE__ */ jsxs5(Stack3, { className: "estate-container estate-hero-content", sx: { position: "relative", zIndex: 2, minHeight: { xs: 700, md: 900 }, maxWidth: 1376, mx: "auto", px: { xs: 2, md: 4 }, pt: { xs: 16, md: 23 }, pb: { xs: 7, md: 12 }, justifyContent: "flex-end", alignItems: "flex-start" }, spacing: { xs: 3, md: 4 }, children: [
|
|
2901
3068
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: heroDefaults.eyebrow, sx: { ...outlinedEyebrowSx, color: "#DDC696", fontFamily: "'Wikex Inter', Arial, sans-serif" }, children: (node) => node }),
|
|
2902
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: heroDefaults.heading, component: "h1", sx: { maxWidth: 1060, m: 0, fontFamily: displayFont, fontSize: { xs: 58, sm: 74, md: 132 }, fontWeight: 400, letterSpacing: "-.07em", lineHeight: 0.86, textWrap: "balance" }, children: (node) => node }),
|
|
2903
|
-
/* @__PURE__ */ jsxs5(Box5, { sx: { display: "grid", width: "min(100%, 930px)", pt: 3, borderTop: "1px solid rgba(255,255,255,.26)", gap: 3, gridTemplateColumns: { xs: "1fr", md: "1fr auto" }, alignItems: "end" }, children: [
|
|
3069
|
+
/* @__PURE__ */ jsx5(Text, { className: "estate-display-xl", props, field: "heading", fallback: heroDefaults.heading, component: "h1", sx: { maxWidth: 1060, m: 0, fontFamily: displayFont, fontSize: { xs: 58, sm: 74, md: 132 }, fontWeight: 400, letterSpacing: "-.07em", lineHeight: 0.86, textWrap: "balance" }, children: (node) => node }),
|
|
3070
|
+
/* @__PURE__ */ jsxs5(Box5, { className: "estate-split estate-hero-content-row", sx: { display: "grid", width: "min(100%, 930px)", pt: 3, borderTop: "1px solid rgba(255,255,255,.26)", gap: 3, gridTemplateColumns: { xs: "1fr", md: "1fr auto" }, alignItems: "end" }, children: [
|
|
2904
3071
|
/* @__PURE__ */ jsx5(Text, { props, field: "body", fallback: heroDefaults.body, sx: { maxWidth: 590, color: "rgba(255,255,255,.74)", fontFamily: "'Wikex Inter', Arial, sans-serif", fontSize: { xs: 16, md: 18 }, lineHeight: 1.75 }, children: (node) => node }),
|
|
2905
|
-
/* @__PURE__ */ jsxs5(Stack3, { direction: { xs: "column", sm: "row" }, spacing: 1.25, children: [
|
|
3072
|
+
/* @__PURE__ */ jsxs5(Stack3, { className: "estate-actions", direction: { xs: "column", sm: "row" }, spacing: 1.25, children: [
|
|
2906
3073
|
/* @__PURE__ */ jsx5(Button5, { component: "a", href: String(value4(props.content, "primaryUrl", heroDefaults.primaryUrl)), sx: { minHeight: 50, bgcolor: "#C2A268", color: palette.ink, borderRadius: 99, px: 2.5, fontSize: 11, fontWeight: 800, letterSpacing: ".1em", "&:hover": { bgcolor: "#E1C997" } }, children: /* @__PURE__ */ jsx5(Text, { props, field: "primaryLabel", fallback: heroDefaults.primaryLabel, children: (node) => /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
2907
3074
|
node,
|
|
2908
3075
|
" \u2197"
|
|
@@ -2911,7 +3078,7 @@ function EstateHeroRenderer(props) {
|
|
|
2911
3078
|
] })
|
|
2912
3079
|
] })
|
|
2913
3080
|
] }),
|
|
2914
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "location", fallback: heroDefaults.location, sx: { position: "absolute", zIndex: 2, right: 0, bottom: 0, px: { xs: 2, md: 3 }, py: 1.5, border: "1px solid rgba(255,255,255,.2)", borderWidth: "1px 0 0 1px", bgcolor: "rgba(23,32,25,.78)", color: "rgba(255,255,255,.76)", fontFamily: "'Wikex Inter', Arial, sans-serif", fontSize: 12, backdropFilter: "blur(12px)" }, children: (node) => /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
3081
|
+
/* @__PURE__ */ jsx5(Text, { className: "estate-hero-location", props, field: "location", fallback: heroDefaults.location, sx: { position: "absolute", zIndex: 2, right: 0, bottom: 0, px: { xs: 2, md: 3 }, py: 1.5, border: "1px solid rgba(255,255,255,.2)", borderWidth: "1px 0 0 1px", bgcolor: "rgba(23,32,25,.78)", color: "rgba(255,255,255,.76)", fontFamily: "'Wikex Inter', Arial, sans-serif", fontSize: 12, backdropFilter: "blur(12px)" }, children: (node) => /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
2915
3082
|
"\u2316 \xA0",
|
|
2916
3083
|
node
|
|
2917
3084
|
] }) })
|
|
@@ -2943,9 +3110,9 @@ var statsDefaults = {
|
|
|
2943
3110
|
stat4Label: "T\u1EC9nh th\xE0nh tri\u1EC3n khai"
|
|
2944
3111
|
};
|
|
2945
3112
|
function EstateStatsRenderer(props) {
|
|
2946
|
-
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: palette.pale, color: palette.ink, borderBlock: `1px solid ${palette.line}` }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3113
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...estateResponsiveSx, ...sectionSx, bgcolor: palette.pale, color: palette.ink, borderBlock: `1px solid ${palette.line}` }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container", sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
2947
3114
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: statsDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { ...eyebrowSx, mb: 3 }, children: node }) }),
|
|
2948
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr 1fr", md: "repeat(4, 1fr)" }, borderTop: `1px solid ${palette.line}`, borderLeft: `1px solid ${palette.line}` }, children: [1, 2, 3, 4].map((index) => /* @__PURE__ */ jsxs5(Box5, { sx: { minHeight: { xs: 180, md: 220 }, p: { xs: 2, md: 3 }, borderRight: `1px solid ${palette.line}`, borderBottom: `1px solid ${palette.line}` }, children: [
|
|
3115
|
+
/* @__PURE__ */ jsx5(Box5, { className: "estate-card-grid-4", sx: { display: "grid", gridTemplateColumns: { xs: "1fr 1fr", md: "repeat(4, 1fr)" }, borderTop: `1px solid ${palette.line}`, borderLeft: `1px solid ${palette.line}` }, children: [1, 2, 3, 4].map((index) => /* @__PURE__ */ jsxs5(Box5, { className: "estate-stat-card", sx: { minHeight: { xs: 180, md: 220 }, p: { xs: 2, md: 3 }, borderRight: `1px solid ${palette.line}`, borderBottom: `1px solid ${palette.line}` }, children: [
|
|
2949
3116
|
/* @__PURE__ */ jsx5(Text, { props, field: `stat${index}Value`, fallback: statsDefaults[`stat${index}Value`], children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { fontFamily: displayFont, fontSize: { xs: 42, md: 68 }, letterSpacing: "-.055em", lineHeight: 1 }, children: node }) }),
|
|
2950
3117
|
/* @__PURE__ */ jsx5(Text, { props, field: `stat${index}Label`, fallback: statsDefaults[`stat${index}Label`], children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { mt: 2, color: palette.muted, fontSize: 11, fontWeight: 700, letterSpacing: ".11em", textTransform: "uppercase" }, children: node }) })
|
|
2951
3118
|
] }, index)) })
|
|
@@ -2981,15 +3148,15 @@ var projectDefaults = {
|
|
|
2981
3148
|
};
|
|
2982
3149
|
function FeaturedProjectsRenderer(props) {
|
|
2983
3150
|
const listIndexes = cmsListItems(props.content, Array.from({ length: 4 }, () => ({}))).map((_, index) => index + 1);
|
|
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: [
|
|
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: [
|
|
3151
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...estateResponsiveSx, ...sectionSx, bgcolor: palette.cream, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container", sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3152
|
+
/* @__PURE__ */ jsxs5(Box5, { className: "estate-flex-split", sx: { display: "flex", alignItems: { xs: "flex-start", md: "flex-end" }, justifyContent: "space-between", flexDirection: { xs: "column", md: "row" }, gap: 3, mb: 6 }, children: [
|
|
2986
3153
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2, children: [
|
|
2987
3154
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: projectDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: outlinedEyebrowSx, children: node }) }),
|
|
2988
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: projectDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: headingSx, children: node }) })
|
|
3155
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: projectDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-md", component: "h2", sx: headingSx, children: node }) })
|
|
2989
3156
|
] }),
|
|
2990
3157
|
/* @__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 }) })
|
|
2991
3158
|
] }),
|
|
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: [
|
|
3159
|
+
/* @__PURE__ */ jsx5(Box5, { className: "estate-featured-grid", sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "repeat(12, 1fr)" }, gap: 2 }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Box5, { className: "estate-featured-card", 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: [
|
|
2993
3160
|
/* @__PURE__ */ jsx5(Image, { props, field: `project${index}Image`, fallback: projectDefaults[`project${index}Image`], alt: "D\u1EF1 \xE1n n\u1ED5i b\u1EADt" }),
|
|
2994
3161
|
/* @__PURE__ */ jsx5(Box5, { sx: { position: "absolute", inset: 0, zIndex: 1, pointerEvents: "none", background: "linear-gradient(0deg, rgba(17,24,18,.88), transparent 64%)" } }),
|
|
2995
3162
|
/* @__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" }),
|
|
@@ -2998,7 +3165,7 @@ function FeaturedProjectsRenderer(props) {
|
|
|
2998
3165
|
/* @__PURE__ */ jsx5(Box5, { children: "\u2316" }),
|
|
2999
3166
|
/* @__PURE__ */ jsx5(Text, { props, field: `project${index}Location`, fallback: projectDefaults[`project${index}Location`], children: (node) => node })
|
|
3000
3167
|
] }),
|
|
3001
|
-
/* @__PURE__ */ jsx5(Text, { props, field: `project${index}Title`, fallback: projectDefaults[`project${index}Title`], children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h3", sx: { m: 0, fontFamily: displayFont, fontSize: { xs: 34, md: index < 3 ? 52 : 40 }, fontWeight: 400, letterSpacing: "-.05em", lineHeight: 0.98 }, children: node }) }),
|
|
3168
|
+
/* @__PURE__ */ jsx5(Text, { props, field: `project${index}Title`, fallback: projectDefaults[`project${index}Title`], children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-card-title", component: "h3", sx: { m: 0, fontFamily: displayFont, fontSize: { xs: 34, md: index < 3 ? 52 : 40 }, fontWeight: 400, letterSpacing: "-.05em", lineHeight: 0.98 }, children: node }) }),
|
|
3002
3169
|
/* @__PURE__ */ jsx5(Text, { props, field: `project${index}Type`, fallback: projectDefaults[`project${index}Type`], children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { border: "1px solid rgba(255,255,255,.3)", px: 1, py: 0.6, color: "rgba(255,255,255,.8)", fontSize: 10, fontWeight: 700, letterSpacing: ".08em", textTransform: "uppercase" }, children: node }) })
|
|
3003
3170
|
] })
|
|
3004
3171
|
] }, index)) })
|
|
@@ -3028,19 +3195,19 @@ var processDefaults = {
|
|
|
3028
3195
|
};
|
|
3029
3196
|
function EstateProcessRenderer(props) {
|
|
3030
3197
|
const listIndexes = cmsListItems(props.content, Array.from({ length: 4 }, () => ({}))).map((_, index) => index + 1);
|
|
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: [
|
|
3198
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...estateResponsiveSx, ...sectionSx, borderBlock: `1px solid ${palette.line}`, bgcolor: palette.pale, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container estate-split", sx: { display: "grid", maxWidth: 1376, mx: "auto", gap: { xs: 5, md: 10 }, gridTemplateColumns: { xs: "1fr", md: ".75fr 1.25fr" } }, children: [
|
|
3032
3199
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2.5, sx: { alignItems: "flex-start" }, children: [
|
|
3033
3200
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: processDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: outlinedEyebrowSx, children: node }) }),
|
|
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 }) }),
|
|
3201
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: processDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-lg", component: "h2", sx: { ...headingSx, fontSize: { xs: 48, md: 78 } }, children: node }) }),
|
|
3035
3202
|
/* @__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 }) })
|
|
3036
3203
|
] }),
|
|
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: [
|
|
3204
|
+
/* @__PURE__ */ jsx5(Stack3, { component: "ol", sx: { m: 0, p: 0, listStyle: "none", borderTop: `1px solid ${palette.line}` }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Box5, { className: "estate-process-row", 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: [
|
|
3038
3205
|
/* @__PURE__ */ jsxs5(Box5, { sx: { color: palette.gold, fontFamily: "monospace", fontSize: 12, pt: 0.5 }, children: [
|
|
3039
3206
|
"0",
|
|
3040
3207
|
index
|
|
3041
3208
|
] }),
|
|
3042
3209
|
/* @__PURE__ */ jsx5(Text, { props, field: `step${index}Title`, fallback: processDefaults[`step${index}Title`], children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h3", sx: { m: 0, fontFamily: displayFont, fontSize: { xs: 24, md: 27 }, fontWeight: 400, letterSpacing: "-.03em", lineHeight: 1.1 }, children: node }) }),
|
|
3043
|
-
/* @__PURE__ */ jsx5(Text, { props, field: `step${index}Description`, fallback: processDefaults[`step${index}Description`], children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { color: palette.muted, fontSize: 14, lineHeight: 1.7 }, children: node }) })
|
|
3210
|
+
/* @__PURE__ */ jsx5(Text, { className: "estate-process-copy", props, field: `step${index}Description`, fallback: processDefaults[`step${index}Description`], children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { color: palette.muted, fontSize: 14, lineHeight: 1.7 }, children: node }) })
|
|
3044
3211
|
] }, index)) })
|
|
3045
3212
|
] }) });
|
|
3046
3213
|
}
|
|
@@ -3076,15 +3243,15 @@ var servicesDefaults = {
|
|
|
3076
3243
|
};
|
|
3077
3244
|
function EstateServicesRenderer(props) {
|
|
3078
3245
|
const listIndexes = cmsListItems(props.content, Array.from({ length: 4 }, () => ({}))).map((_, index) => index + 1);
|
|
3079
|
-
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: palette.dark, color: "white" }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3080
|
-
/* @__PURE__ */ jsxs5(Box5, { sx: { display: "grid", gap: 4, gridTemplateColumns: { xs: "1fr", md: "1.1fr .9fr" }, alignItems: "end", mb: 6 }, children: [
|
|
3246
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...estateResponsiveSx, ...sectionSx, bgcolor: palette.dark, color: "white" }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container", sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3247
|
+
/* @__PURE__ */ jsxs5(Box5, { className: "estate-split", sx: { display: "grid", gap: 4, gridTemplateColumns: { xs: "1fr", md: "1.1fr .9fr" }, alignItems: "end", mb: 6 }, children: [
|
|
3081
3248
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2.5, children: [
|
|
3082
3249
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: servicesDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { ...outlinedEyebrowSx, color: "#DDC696" }, children: node }) }),
|
|
3083
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: servicesDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: { ...headingSx, color: "white", fontSize: { xs: 48, md: 86 } }, children: node }) })
|
|
3250
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: servicesDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-lg", component: "h2", sx: { ...headingSx, color: "white", fontSize: { xs: 48, md: 86 } }, children: node }) })
|
|
3084
3251
|
] }),
|
|
3085
3252
|
/* @__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 }) })
|
|
3086
3253
|
] }),
|
|
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: [
|
|
3254
|
+
/* @__PURE__ */ jsx5(Box5, { className: "estate-card-grid-2", 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, { className: "estate-service-card", 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: [
|
|
3088
3255
|
/* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", justifyContent: "space-between", color: "#D8BD8A", fontFamily: "monospace", fontSize: 11 }, children: [
|
|
3089
3256
|
"0",
|
|
3090
3257
|
index,
|
|
@@ -3131,12 +3298,12 @@ var articlesDefaults = {
|
|
|
3131
3298
|
};
|
|
3132
3299
|
function EstateArticlesRenderer(props) {
|
|
3133
3300
|
const listIndexes = cmsListItems(props.content, Array.from({ length: 3 }, () => ({}))).map((_, index) => index + 1);
|
|
3134
|
-
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: "#DED7CA", color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3301
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...estateResponsiveSx, ...sectionSx, bgcolor: "#DED7CA", color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container", sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3135
3302
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2.5, sx: { mb: 6 }, children: [
|
|
3136
3303
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: articlesDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: outlinedEyebrowSx, children: node }) }),
|
|
3137
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: articlesDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: headingSx, children: node }) })
|
|
3304
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: articlesDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-md", component: "h2", sx: headingSx, children: node }) })
|
|
3138
3305
|
] }),
|
|
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: [
|
|
3306
|
+
/* @__PURE__ */ jsx5(Box5, { className: "estate-card-grid-3", sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "repeat(3, 1fr)" }, gap: "1px", bgcolor: palette.line }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Stack3, { className: "estate-article-card", sx: { minHeight: 390, p: { xs: 2.5, md: 4 }, bgcolor: palette.cream, transition: "background .2s ease", "&:hover": { bgcolor: palette.pale } }, children: [
|
|
3140
3307
|
/* @__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 }) }),
|
|
3141
3308
|
/* @__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 }) }),
|
|
3142
3309
|
/* @__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 }) }),
|
|
@@ -3169,12 +3336,12 @@ var galleryDefaults = {
|
|
|
3169
3336
|
};
|
|
3170
3337
|
function PropertyGalleryRenderer(props) {
|
|
3171
3338
|
const listIndexes = cmsListItems(props.content, Array.from({ length: 4 }, () => ({}))).map((_, index) => index + 1);
|
|
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: [
|
|
3339
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...estateResponsiveSx, ...sectionSx, bgcolor: palette.cream, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container", sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3173
3340
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2, sx: { mb: 6 }, children: [
|
|
3174
3341
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: galleryDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: eyebrowSx, children: node }) }),
|
|
3175
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: galleryDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: headingSx, children: node }) })
|
|
3342
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: galleryDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-md", component: "h2", sx: headingSx, children: node }) })
|
|
3176
3343
|
] }),
|
|
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: [
|
|
3344
|
+
/* @__PURE__ */ jsx5(Box5, { className: "estate-card-grid-3", sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", md: "repeat(3, 1fr)" }, gap: 2 }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Box5, { children: [
|
|
3178
3345
|
/* @__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" }) }),
|
|
3179
3346
|
/* @__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 }) })
|
|
3180
3347
|
] }, index)) })
|
|
@@ -3206,12 +3373,12 @@ var amenitiesDefaults = {
|
|
|
3206
3373
|
};
|
|
3207
3374
|
function AmenitiesRenderer(props) {
|
|
3208
3375
|
const listIndexes = cmsListItems(props.content, Array.from({ length: 6 }, () => ({}))).map((_, index) => index + 1);
|
|
3209
|
-
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...sectionSx, bgcolor: palette.dark, color: "#F7F2E8" }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3376
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...estateResponsiveSx, ...sectionSx, bgcolor: palette.dark, color: "#F7F2E8" }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container", sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3210
3377
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2, sx: { mb: 6 }, children: [
|
|
3211
3378
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: amenitiesDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { ...eyebrowSx, color: "#D5B77E" }, children: node }) }),
|
|
3212
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: amenitiesDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: { ...headingSx, color: "#F7F2E8" }, children: node }) })
|
|
3379
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: amenitiesDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-md", component: "h2", sx: { ...headingSx, color: "#F7F2E8" }, children: node }) })
|
|
3213
3380
|
] }),
|
|
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: [
|
|
3381
|
+
/* @__PURE__ */ jsx5(Box5, { className: "estate-card-grid-3", 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, { className: "estate-amenity-card", 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: [
|
|
3215
3382
|
/* @__PURE__ */ jsxs5(Stack3, { direction: "row", justifyContent: "space-between", children: [
|
|
3216
3383
|
/* @__PURE__ */ jsxs5(Box5, { sx: { color: "#C9AA72", fontFamily: "monospace", fontSize: 11 }, children: [
|
|
3217
3384
|
"0",
|
|
@@ -3249,12 +3416,12 @@ var testimonialsDefaults = {
|
|
|
3249
3416
|
};
|
|
3250
3417
|
function TestimonialsRenderer(props) {
|
|
3251
3418
|
const listIndexes = cmsListItems(props.content, Array.from({ length: 3 }, () => ({}))).map((_, index) => index + 1);
|
|
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: [
|
|
3419
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...estateResponsiveSx, ...sectionSx, bgcolor: palette.pale, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container", sx: { maxWidth: 1376, mx: "auto" }, children: [
|
|
3253
3420
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2, sx: { mb: 6 }, children: [
|
|
3254
3421
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: testimonialsDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: eyebrowSx, children: node }) }),
|
|
3255
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: testimonialsDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: headingSx, children: node }) })
|
|
3422
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: testimonialsDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-md", component: "h2", sx: headingSx, children: node }) })
|
|
3256
3423
|
] }),
|
|
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: [
|
|
3424
|
+
/* @__PURE__ */ jsx5(Box5, { className: "estate-card-grid-3", sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "repeat(3, 1fr)" }, gap: 2 }, children: listIndexes.map((index) => /* @__PURE__ */ jsxs5(Stack3, { className: "estate-testimonial-card", sx: { minHeight: 340, p: 3, bgcolor: palette.cream, border: `1px solid ${palette.line}` }, children: [
|
|
3258
3425
|
/* @__PURE__ */ jsx5(Box5, { sx: { color: "#A17C43", fontFamily: displayFont, fontSize: 40, lineHeight: 0.6 }, children: "\u201C" }),
|
|
3259
3426
|
/* @__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 }) }),
|
|
3260
3427
|
/* @__PURE__ */ jsxs5(Box5, { sx: { mt: "auto", pt: 3 }, children: [
|
|
@@ -3286,10 +3453,10 @@ var faqDefaults = {
|
|
|
3286
3453
|
};
|
|
3287
3454
|
function FAQRenderer(props) {
|
|
3288
3455
|
const listIndexes = cmsListItems(props.content, Array.from({ length: 4 }, () => ({}))).map((_, index) => index + 1);
|
|
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: [
|
|
3456
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "section", sx: { ...estateResponsiveSx, ...sectionSx, bgcolor: palette.cream, color: palette.ink }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container estate-split", sx: { display: "grid", maxWidth: 1376, mx: "auto", gap: { xs: 4, md: 10 }, gridTemplateColumns: { xs: "1fr", md: ".72fr 1.28fr" } }, children: [
|
|
3290
3457
|
/* @__PURE__ */ jsxs5(Stack3, { spacing: 2, children: [
|
|
3291
3458
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: faqDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: eyebrowSx, children: node }) }),
|
|
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 }) })
|
|
3459
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: faqDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-md", component: "h2", sx: { ...headingSx, fontSize: { xs: 38, md: 56 } }, children: node }) })
|
|
3293
3460
|
] }),
|
|
3294
3461
|
/* @__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: [
|
|
3295
3462
|
/* @__PURE__ */ jsxs5(Box5, { sx: { color: palette.gold, fontFamily: "monospace", fontSize: 11, pt: 0.5 }, children: [
|
|
@@ -3321,14 +3488,14 @@ var contactDefaults = {
|
|
|
3321
3488
|
secondaryUrl: "tel:+842873002288"
|
|
3322
3489
|
};
|
|
3323
3490
|
function EstateContactRenderer(props) {
|
|
3324
|
-
return /* @__PURE__ */ jsxs5(Box5, { component: "section", sx: { position: "relative", overflow: "hidden", px: { xs: 2, md: 4 }, py: { xs: 9, md: 14 }, bgcolor: "#9A7945", color: palette.ink }, children: [
|
|
3491
|
+
return /* @__PURE__ */ jsxs5(Box5, { component: "section", sx: { ...estateResponsiveSx, position: "relative", overflow: "hidden", px: { xs: 2, md: 4 }, py: { xs: 9, md: 14 }, bgcolor: "#9A7945", color: palette.ink }, children: [
|
|
3325
3492
|
/* @__PURE__ */ jsx5(Box5, { sx: { position: "absolute", inset: "0 0 0 auto", width: "68%", opacity: 0.35, background: "repeating-radial-gradient(circle at 85% 50%, transparent 0 48px, rgba(23,32,27,.25) 49px 50px)" } }),
|
|
3326
|
-
/* @__PURE__ */ jsxs5(Box5, { sx: { position: "relative", maxWidth: 1376, mx: "auto" }, children: [
|
|
3493
|
+
/* @__PURE__ */ jsxs5(Box5, { className: "estate-container", sx: { position: "relative", maxWidth: 1376, mx: "auto" }, children: [
|
|
3327
3494
|
/* @__PURE__ */ jsx5(Text, { props, field: "eyebrow", fallback: contactDefaults.eyebrow, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { ...outlinedEyebrowSx, color: "rgba(23,32,25,.78)" }, children: node }) }),
|
|
3328
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: contactDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { component: "h2", sx: { maxWidth: 1160, mt: 3, fontFamily: displayFont, fontSize: { xs: 54, md: 112 }, fontWeight: 400, letterSpacing: "-.07em", lineHeight: 0.88, textWrap: "balance" }, children: node }) }),
|
|
3329
|
-
/* @__PURE__ */ jsxs5(Box5, { sx: { display: "grid", maxWidth: 980, mt: 4, pt: 3, borderTop: "1px solid rgba(23,32,25,.28)", gap: 3, gridTemplateColumns: { xs: "1fr", md: "1fr auto" }, alignItems: "end" }, children: [
|
|
3495
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "heading", fallback: contactDefaults.heading, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-xl", component: "h2", sx: { maxWidth: 1160, mt: 3, fontFamily: displayFont, fontSize: { xs: 54, md: 112 }, fontWeight: 400, letterSpacing: "-.07em", lineHeight: 0.88, textWrap: "balance" }, children: node }) }),
|
|
3496
|
+
/* @__PURE__ */ jsxs5(Box5, { className: "estate-split", sx: { display: "grid", maxWidth: 980, mt: 4, pt: 3, borderTop: "1px solid rgba(23,32,25,.28)", gap: 3, gridTemplateColumns: { xs: "1fr", md: "1fr auto" }, alignItems: "end" }, children: [
|
|
3330
3497
|
/* @__PURE__ */ jsx5(Text, { props, field: "body", fallback: contactDefaults.body, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { maxWidth: 600, color: "rgba(23,32,25,.76)", fontSize: 16, lineHeight: 1.75 }, children: node }) }),
|
|
3331
|
-
/* @__PURE__ */ jsxs5(Stack3, { direction: { xs: "column", sm: "row" }, spacing: 1.25, children: [
|
|
3498
|
+
/* @__PURE__ */ jsxs5(Stack3, { className: "estate-actions", direction: { xs: "column", sm: "row" }, spacing: 1.25, children: [
|
|
3332
3499
|
/* @__PURE__ */ jsx5(Button5, { component: "a", href: String(value4(props.content, "primaryUrl", contactDefaults.primaryUrl)), sx: { minHeight: 50, borderRadius: 99, px: 2.5, bgcolor: palette.ink, color: "white", fontSize: 11, fontWeight: 800, letterSpacing: ".1em", "&:hover": { bgcolor: palette.pale, color: palette.ink } }, children: /* @__PURE__ */ jsx5(Text, { props, field: "primaryLabel", fallback: contactDefaults.primaryLabel, children: (node) => /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
3333
3500
|
node,
|
|
3334
3501
|
" \u2197"
|
|
@@ -3352,7 +3519,7 @@ var estateContactBlock = {
|
|
|
3352
3519
|
Renderer: EstateContactRenderer
|
|
3353
3520
|
};
|
|
3354
3521
|
var headerDefaults = {
|
|
3355
|
-
|
|
3522
|
+
logo: wikex_estates_logo_default,
|
|
3356
3523
|
nav1Label: "V\u1EC1 Wikex Estates",
|
|
3357
3524
|
nav1Url: "#gioi-thieu",
|
|
3358
3525
|
nav2Label: "D\u1ECBch v\u1EE5",
|
|
@@ -3365,8 +3532,8 @@ var headerDefaults = {
|
|
|
3365
3532
|
ctaUrl: "#lien-he"
|
|
3366
3533
|
};
|
|
3367
3534
|
function EstateHeaderRenderer(props) {
|
|
3368
|
-
return /* @__PURE__ */ jsx5(Box5, { component: "header", sx: {
|
|
3369
|
-
/* @__PURE__ */ jsx5(
|
|
3535
|
+
return /* @__PURE__ */ jsx5(Box5, { component: "header", sx: { ...estateResponsiveSx, position: "relative", zIndex: 10, borderBottom: "1px solid rgba(255,255,255,.16)", bgcolor: palette.dark, color: "white", px: { xs: 2, md: 4 } }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-container", sx: { display: "flex", minHeight: { xs: 76, md: 96 }, maxWidth: 1376, mx: "auto", alignItems: "center", justifyContent: "space-between", gap: 2 }, children: [
|
|
3536
|
+
/* @__PURE__ */ jsx5(EstateLogo, { props, fallback: headerDefaults.logo }),
|
|
3370
3537
|
/* @__PURE__ */ jsxs5(Stack3, { component: "nav", direction: "row", spacing: { md: 3, lg: 4 }, sx: { alignItems: "center", "@container (max-width: 767px)": { display: "none" } }, children: [
|
|
3371
3538
|
[1, 2, 3, 4].map((index) => /* @__PURE__ */ jsx5(Button5, { component: "a", href: String(value4(props.content, `nav${index}Url`, headerDefaults[`nav${index}Url`])), sx: { minWidth: 0, p: 0, color: "inherit", fontSize: 12, fontWeight: 600, textTransform: "none", "&:hover": { bgcolor: "transparent", opacity: 0.6 } }, children: /* @__PURE__ */ jsx5(Text, { props, field: `nav${index}Label`, fallback: headerDefaults[`nav${index}Label`], children: (node) => node }) }, index)),
|
|
3372
3539
|
/* @__PURE__ */ jsx5(Button5, { component: "a", href: String(value4(props.content, "ctaUrl", headerDefaults.ctaUrl)), sx: { minHeight: 42, borderRadius: 99, px: 2, bgcolor: "#C2A268", color: palette.ink, fontSize: 11, fontWeight: 800, letterSpacing: ".08em" }, children: /* @__PURE__ */ jsx5(Text, { props, field: "ctaLabel", fallback: headerDefaults.ctaLabel, children: (node) => /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
@@ -3379,7 +3546,7 @@ function EstateHeaderRenderer(props) {
|
|
|
3379
3546
|
}
|
|
3380
3547
|
var estateHeaderBlock = {
|
|
3381
3548
|
definition: definition("estate-header", "Header Wikex Estates", "Thanh \u0111i\u1EC1u h\u01B0\u1EDBng t\u1ED1i, CTA v\xE0ng cho landing page b\u1EA5t \u0111\u1ED9ng s\u1EA3n.", "menu", fields(
|
|
3382
|
-
|
|
3549
|
+
imageField("logo", "Logo th\u01B0\u01A1ng hi\u1EC7u"),
|
|
3383
3550
|
...[1, 2, 3, 4].flatMap((index) => [textField(`nav${index}Label`, "Nh\xE3n menu", `\u0110i\u1EC1u h\u01B0\u1EDBng ${index}`), textField(`nav${index}Url`, "\u0110\u01B0\u1EDDng d\u1EABn", `\u0110i\u1EC1u h\u01B0\u1EDBng ${index}`)]),
|
|
3384
3551
|
textField("ctaLabel", "Nh\xE3n CTA", "Li\xEAn k\u1EBFt"),
|
|
3385
3552
|
textField("ctaUrl", "\u0110\u01B0\u1EDDng d\u1EABn CTA", "Li\xEAn k\u1EBFt")
|
|
@@ -3387,7 +3554,7 @@ var estateHeaderBlock = {
|
|
|
3387
3554
|
Renderer: EstateHeaderRenderer
|
|
3388
3555
|
};
|
|
3389
3556
|
var footerDefaults = {
|
|
3390
|
-
|
|
3557
|
+
logo: wikex_estates_logo_default,
|
|
3391
3558
|
statement: "Ki\u1EBFn t\u1EA1o n\u01A1i ch\u1ED1n mang d\u1EA5u \u1EA5n ri\xEAng v\xE0 gi\xE1 tr\u1ECB b\u1EC1n v\u1EEFng theo th\u1EDDi gian.",
|
|
3392
3559
|
email: "hello@wikex.vn",
|
|
3393
3560
|
nav1Label: "V\u1EC1 Wikex Estates",
|
|
@@ -3403,17 +3570,17 @@ var footerDefaults = {
|
|
|
3403
3570
|
copyright: "\xA9 2026 Wikex Estates. B\u1EA3o l\u01B0u m\u1ECDi quy\u1EC1n."
|
|
3404
3571
|
};
|
|
3405
3572
|
function EstateFooterRenderer(props) {
|
|
3406
|
-
return /* @__PURE__ */ jsxs5(Box5, { component: "footer", sx: { px: { xs: 2, md: 4 }, bgcolor: palette.dark, color: "#F3EFE6" }, children: [
|
|
3407
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { maxWidth: 1376, mx: "auto", py: { xs: 8, md: 12 } }, children: /* @__PURE__ */ jsxs5(Box5, { sx: { display: "grid", gap: { xs: 6, md: 8 }, gridTemplateColumns: { xs: "1fr", md: "1.3fr .7fr" } }, children: [
|
|
3573
|
+
return /* @__PURE__ */ jsxs5(Box5, { component: "footer", sx: { ...estateResponsiveSx, px: { xs: 2, md: 4 }, bgcolor: palette.dark, color: "#F3EFE6" }, children: [
|
|
3574
|
+
/* @__PURE__ */ jsx5(Box5, { className: "estate-container", sx: { maxWidth: 1376, mx: "auto", py: { xs: 8, md: 12 } }, children: /* @__PURE__ */ jsxs5(Box5, { className: "estate-split", sx: { display: "grid", gap: { xs: 6, md: 8 }, gridTemplateColumns: { xs: "1fr", md: "1.3fr .7fr" } }, children: [
|
|
3408
3575
|
/* @__PURE__ */ jsxs5(Stack3, { alignItems: "flex-start", spacing: 3, children: [
|
|
3409
|
-
/* @__PURE__ */ jsx5(
|
|
3410
|
-
/* @__PURE__ */ jsx5(Text, { props, field: "statement", fallback: footerDefaults.statement, children: (node) => /* @__PURE__ */ jsx5(Box5, { sx: { maxWidth: 680, fontFamily: displayFont, fontSize: { xs: 36, md: 52 }, letterSpacing: "-.04em", lineHeight: 1.08 }, children: node }) }),
|
|
3576
|
+
/* @__PURE__ */ jsx5(EstateLogo, { props, fallback: footerDefaults.logo }),
|
|
3577
|
+
/* @__PURE__ */ jsx5(Text, { props, field: "statement", fallback: footerDefaults.statement, children: (node) => /* @__PURE__ */ jsx5(Box5, { className: "estate-display-md", sx: { maxWidth: 680, fontFamily: displayFont, fontSize: { xs: 36, md: 52 }, letterSpacing: "-.04em", lineHeight: 1.08 }, children: node }) }),
|
|
3411
3578
|
/* @__PURE__ */ jsx5(Button5, { component: "a", href: `mailto:${String(value4(props.content, "email", footerDefaults.email))}`, sx: { p: 0, borderBottom: "1px solid rgba(185,149,88,.62)", borderRadius: 0, color: "#D7BD8A", fontSize: 13, textTransform: "none" }, children: /* @__PURE__ */ jsx5(Text, { props, field: "email", fallback: footerDefaults.email, children: (node) => /* @__PURE__ */ jsxs5(Fragment3, { children: [
|
|
3412
3579
|
node,
|
|
3413
3580
|
" \u2197"
|
|
3414
3581
|
] }) }) })
|
|
3415
3582
|
] }),
|
|
3416
|
-
/* @__PURE__ */ jsxs5(Box5, { sx: { display: "grid", gap: 4, gridTemplateColumns: "1fr 1fr" }, children: [
|
|
3583
|
+
/* @__PURE__ */ jsxs5(Box5, { className: "estate-footer-links", sx: { display: "grid", gap: 4, gridTemplateColumns: "1fr 1fr" }, children: [
|
|
3417
3584
|
/* @__PURE__ */ jsxs5(Stack3, { component: "nav", alignItems: "flex-start", spacing: 1.2, children: [
|
|
3418
3585
|
/* @__PURE__ */ jsx5(Box5, { sx: { mb: 1, color: "#D7BD8A", fontSize: 10, fontWeight: 800, letterSpacing: ".2em" }, children: "KH\xC1M PH\xC1" }),
|
|
3419
3586
|
[1, 2, 3, 4].map((index) => /* @__PURE__ */ jsx5(Button5, { component: "a", href: String(value4(props.content, `nav${index}Url`, footerDefaults[`nav${index}Url`])), sx: { minWidth: 0, p: 0, color: "rgba(255,255,255,.66)", fontSize: 13, textTransform: "none", "&:hover": { bgcolor: "transparent", color: "#D7BD8A" } }, children: /* @__PURE__ */ jsx5(Text, { props, field: `nav${index}Label`, fallback: footerDefaults[`nav${index}Label`], children: (node) => node }) }, index))
|
|
@@ -3425,12 +3592,12 @@ function EstateFooterRenderer(props) {
|
|
|
3425
3592
|
] })
|
|
3426
3593
|
] })
|
|
3427
3594
|
] }) }),
|
|
3428
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { display: "flex", maxWidth: 1376, mx: "auto", py: 2.25, borderTop: "1px solid rgba(255,255,255,.1)", color: "rgba(255,255,255,.45)", fontSize: 10, fontWeight: 700, letterSpacing: ".1em", textTransform: "uppercase" }, children: /* @__PURE__ */ jsx5(Text, { props, field: "copyright", fallback: footerDefaults.copyright, children: (node) => node }) })
|
|
3595
|
+
/* @__PURE__ */ jsx5(Box5, { className: "estate-container", sx: { display: "flex", maxWidth: 1376, mx: "auto", py: 2.25, borderTop: "1px solid rgba(255,255,255,.1)", color: "rgba(255,255,255,.45)", fontSize: 10, fontWeight: 700, letterSpacing: ".1em", textTransform: "uppercase" }, children: /* @__PURE__ */ jsx5(Text, { props, field: "copyright", fallback: footerDefaults.copyright, children: (node) => node }) })
|
|
3429
3596
|
] });
|
|
3430
3597
|
}
|
|
3431
3598
|
var estateFooterBlock = {
|
|
3432
3599
|
definition: definition("estate-footer", "Footer Wikex Estates", "Footer t\u1ED1i v\u1EDBi gi\u1EDBi thi\u1EC7u th\u01B0\u01A1ng hi\u1EC7u, li\xEAn h\u1EC7 v\xE0 \u0111i\u1EC1u h\u01B0\u1EDBng.", "footer", fields(
|
|
3433
|
-
|
|
3600
|
+
imageField("logo", "Logo th\u01B0\u01A1ng hi\u1EC7u"),
|
|
3434
3601
|
paragraphField("statement", "Th\xF4ng \u0111i\u1EC7p"),
|
|
3435
3602
|
textField("email", "Email"),
|
|
3436
3603
|
...[1, 2, 3, 4].flatMap((index) => [textField(`nav${index}Label`, "Nh\xE3n menu", `\u0110i\u1EC1u h\u01B0\u1EDBng ${index}`), textField(`nav${index}Url`, "\u0110\u01B0\u1EDDng d\u1EABn", `\u0110i\u1EC1u h\u01B0\u1EDBng ${index}`)]),
|
|
@@ -3461,7 +3628,6 @@ var estateBlocks = [
|
|
|
3461
3628
|
import { useMemo as useMemo2, useState as useState4 } from "react";
|
|
3462
3629
|
import Box6 from "@mui/material/Box";
|
|
3463
3630
|
import Button6 from "@mui/material/Button";
|
|
3464
|
-
import Chip2 from "@mui/material/Chip";
|
|
3465
3631
|
import GlobalStyles2 from "@mui/material/GlobalStyles";
|
|
3466
3632
|
import Stack4 from "@mui/material/Stack";
|
|
3467
3633
|
import TextField2 from "@mui/material/TextField";
|
|
@@ -3477,6 +3643,54 @@ var palette2 = {
|
|
|
3477
3643
|
};
|
|
3478
3644
|
var displayFont2 = "'Wikex Playfair', Georgia, serif";
|
|
3479
3645
|
var containerSx = { maxWidth: 1376, mx: "auto", px: { xs: 2, md: 4 } };
|
|
3646
|
+
var estateResponsiveSx2 = {
|
|
3647
|
+
containerType: "inline-size",
|
|
3648
|
+
minWidth: 0,
|
|
3649
|
+
overflowX: "clip",
|
|
3650
|
+
"& .estate-container, & .estate-split, & .estate-card-grid, & .estate-feature-card, & .estate-filter-layout, & .estate-list-row": {
|
|
3651
|
+
minWidth: 0
|
|
3652
|
+
},
|
|
3653
|
+
"& .estate-display-xl, & .estate-display-lg, & .estate-display-md, & .estate-card-title, & .estate-list-title": {
|
|
3654
|
+
overflowWrap: "anywhere"
|
|
3655
|
+
},
|
|
3656
|
+
"@container (max-width: 899px)": {
|
|
3657
|
+
"& .estate-split, & .estate-card-grid, & .estate-filter-layout": {
|
|
3658
|
+
gridTemplateColumns: "minmax(0, 1fr)"
|
|
3659
|
+
},
|
|
3660
|
+
"& .estate-feature-card": {
|
|
3661
|
+
gridColumn: "auto",
|
|
3662
|
+
gridTemplateColumns: "minmax(0, 1fr)"
|
|
3663
|
+
},
|
|
3664
|
+
"& .estate-card-image": { height: 360 },
|
|
3665
|
+
"& .estate-detail-hero, & .estate-detail-hero-content": { minHeight: 700 },
|
|
3666
|
+
"& .estate-gallery-image": { order: 1, minHeight: 400 },
|
|
3667
|
+
"& .estate-gallery-copy": { order: 2 },
|
|
3668
|
+
"& .estate-list-row": {
|
|
3669
|
+
gap: "12px",
|
|
3670
|
+
gridTemplateColumns: "30px 96px minmax(0, 1fr)"
|
|
3671
|
+
},
|
|
3672
|
+
"& .estate-desktop-meta": { display: "none" }
|
|
3673
|
+
},
|
|
3674
|
+
"@container (max-width: 599px)": {
|
|
3675
|
+
"& .estate-container": { px: 2 },
|
|
3676
|
+
"& .estate-display-xl": { fontSize: 46, lineHeight: 0.92 },
|
|
3677
|
+
"& .estate-display-lg": { fontSize: 40, lineHeight: 0.96 },
|
|
3678
|
+
"& .estate-display-md": { fontSize: 36, lineHeight: 1 },
|
|
3679
|
+
"& .estate-card-title": { fontSize: 34, lineHeight: 1 },
|
|
3680
|
+
"& .estate-card-image": { height: 280 },
|
|
3681
|
+
"& .estate-detail-hero, & .estate-detail-hero-content": { minHeight: 620 },
|
|
3682
|
+
"& .estate-detail-hero-content": { pt: 12, pb: 6 },
|
|
3683
|
+
"& .estate-gallery-image": { minHeight: 280 },
|
|
3684
|
+
"& .estate-filter-options > button": { flex: "1 1 calc(50% - 6px)", px: 1 },
|
|
3685
|
+
"& .estate-list-row": {
|
|
3686
|
+
gap: "8px",
|
|
3687
|
+
gridTemplateColumns: "24px 68px minmax(0, 1fr)"
|
|
3688
|
+
},
|
|
3689
|
+
"& .estate-list-title": { fontSize: 20, lineHeight: 1.05 },
|
|
3690
|
+
"& .estate-meta-grid": { gridTemplateColumns: "minmax(0, 1fr)" },
|
|
3691
|
+
"& .estate-action-button": { width: "100%" }
|
|
3692
|
+
}
|
|
3693
|
+
};
|
|
3480
3694
|
function EstateProjectFonts() {
|
|
3481
3695
|
return /* @__PURE__ */ jsx6(
|
|
3482
3696
|
GlobalStyles2,
|
|
@@ -3503,11 +3717,13 @@ function Text2({
|
|
|
3503
3717
|
field,
|
|
3504
3718
|
fallback,
|
|
3505
3719
|
sx,
|
|
3506
|
-
component
|
|
3720
|
+
component,
|
|
3721
|
+
className
|
|
3507
3722
|
}) {
|
|
3508
3723
|
return /* @__PURE__ */ jsx6(
|
|
3509
3724
|
EditableText,
|
|
3510
3725
|
{
|
|
3726
|
+
className,
|
|
3511
3727
|
component,
|
|
3512
3728
|
editable: isEditable2(props, field),
|
|
3513
3729
|
field,
|
|
@@ -3601,6 +3817,41 @@ function archiveProjects(props) {
|
|
|
3601
3817
|
}));
|
|
3602
3818
|
return cmsListItems(props.content, legacy);
|
|
3603
3819
|
}
|
|
3820
|
+
function AddProjectButton({ onAdd }) {
|
|
3821
|
+
if (!onAdd) return null;
|
|
3822
|
+
return /* @__PURE__ */ jsx6(
|
|
3823
|
+
Button6,
|
|
3824
|
+
{
|
|
3825
|
+
type: "button",
|
|
3826
|
+
size: "small",
|
|
3827
|
+
variant: "contained",
|
|
3828
|
+
onClick: (event) => {
|
|
3829
|
+
event.preventDefault();
|
|
3830
|
+
event.stopPropagation();
|
|
3831
|
+
onAdd();
|
|
3832
|
+
},
|
|
3833
|
+
sx: {
|
|
3834
|
+
minHeight: 38,
|
|
3835
|
+
px: 2,
|
|
3836
|
+
border: `1px solid ${palette2.dark}`,
|
|
3837
|
+
borderRadius: 0,
|
|
3838
|
+
bgcolor: palette2.dark,
|
|
3839
|
+
color: "#F8F5EF",
|
|
3840
|
+
boxShadow: "none",
|
|
3841
|
+
fontSize: 10,
|
|
3842
|
+
fontWeight: 800,
|
|
3843
|
+
letterSpacing: ".08em",
|
|
3844
|
+
textTransform: "uppercase",
|
|
3845
|
+
"&:hover": { borderColor: "#28372C", bgcolor: "#28372C", boxShadow: "none" },
|
|
3846
|
+
"&.Mui-focusVisible": {
|
|
3847
|
+
outline: `2px solid ${palette2.gold}`,
|
|
3848
|
+
outlineOffset: 2
|
|
3849
|
+
}
|
|
3850
|
+
},
|
|
3851
|
+
children: "+ Th\xEAm d\u1EF1 \xE1n"
|
|
3852
|
+
}
|
|
3853
|
+
);
|
|
3854
|
+
}
|
|
3604
3855
|
function EstateProjectsArchiveRenderer(props) {
|
|
3605
3856
|
const [query, setQuery] = useState4("");
|
|
3606
3857
|
const [filter, setFilter] = useState4("T\u1EA5t c\u1EA3");
|
|
@@ -3610,25 +3861,25 @@ function EstateProjectsArchiveRenderer(props) {
|
|
|
3610
3861
|
const search = query.trim().toLocaleLowerCase("vi");
|
|
3611
3862
|
return projects.filter((project) => (filter === "T\u1EA5t c\u1EA3" || project.type === filter) && (!search || [project.title, project.location, project.client, project.scope].join(" ").toLocaleLowerCase("vi").includes(search)));
|
|
3612
3863
|
}, [filter, projects, query]);
|
|
3613
|
-
return /* @__PURE__ */ jsxs6(Box6, { sx: { bgcolor: palette2.cream, color: palette2.ink }, children: [
|
|
3864
|
+
return /* @__PURE__ */ jsxs6(Box6, { sx: { ...estateResponsiveSx2, bgcolor: palette2.cream, color: palette2.ink }, children: [
|
|
3614
3865
|
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
3615
3866
|
/* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { position: "relative", overflow: "hidden", py: { xs: 12, md: 18 }, bgcolor: palette2.dark, color: "#F8F5EF" }, children: [
|
|
3616
3867
|
/* @__PURE__ */ jsx6(Box6, { sx: { position: "absolute", inset: 0, opacity: 0.14, backgroundImage: "linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px)", backgroundSize: "25% 100%, 100% 25%" } }),
|
|
3617
|
-
/* @__PURE__ */ jsxs6(Box6, { sx: { ...containerSx, position: "relative", display: "grid", gap: { xs: 4, md: 8 }, alignItems: "end", gridTemplateColumns: { xs: "1fr", md: "1.35fr .65fr" } }, children: [
|
|
3868
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-container estate-split", sx: { ...containerSx, position: "relative", display: "grid", gap: { xs: 4, md: 8 }, alignItems: "end", gridTemplateColumns: { xs: "1fr", md: "1.35fr .65fr" } }, children: [
|
|
3618
3869
|
/* @__PURE__ */ jsxs6(Box6, { children: [
|
|
3619
3870
|
/* @__PURE__ */ jsx6(Text2, { props, field: "eyebrow", fallback: archiveDefaults.eyebrow, sx: { ...eyebrowSx2, color: "#D8BD8A" } }),
|
|
3620
|
-
/* @__PURE__ */ jsx6(Text2, { props, field: "heading", fallback: archiveDefaults.heading, component: "h1", sx: { maxWidth: 940, mt: 3, fontFamily: displayFont2, fontSize: { xs: 56, md: 112 }, fontWeight: 400, letterSpacing: "-.065em", lineHeight: 0.9, textWrap: "balance" } })
|
|
3871
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-xl", props, field: "heading", fallback: archiveDefaults.heading, component: "h1", sx: { maxWidth: 940, mt: 3, fontFamily: displayFont2, fontSize: { xs: 56, md: 112 }, fontWeight: 400, letterSpacing: "-.065em", lineHeight: 0.9, textWrap: "balance" } })
|
|
3621
3872
|
] }),
|
|
3622
3873
|
/* @__PURE__ */ jsx6(Text2, { props, field: "intro", fallback: archiveDefaults.intro, sx: { m: 0, pt: 2, borderTop: "1px solid rgba(255,255,255,.22)", color: "rgba(255,255,255,.68)", fontFamily: "'Wikex Inter', Arial, sans-serif", fontSize: 16, lineHeight: 1.75 } })
|
|
3623
3874
|
] })
|
|
3624
3875
|
] }),
|
|
3625
|
-
/* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { ...containerSx, py: { xs: 6, md: 9 } }, children: [
|
|
3876
|
+
/* @__PURE__ */ jsxs6(Box6, { component: "section", className: "estate-container", sx: { ...containerSx, py: { xs: 6, md: 9 } }, children: [
|
|
3626
3877
|
/* @__PURE__ */ jsxs6(Box6, { sx: { display: "flex", justifyContent: "space-between", alignItems: { xs: "flex-start", md: "flex-end" }, flexDirection: { xs: "column", md: "row" }, gap: 2, mb: { xs: 3, md: 4 } }, children: [
|
|
3627
3878
|
/* @__PURE__ */ jsx6(Text2, { props, field: "catalogEyebrow", fallback: archiveDefaults.catalogEyebrow, sx: eyebrowSx2 }),
|
|
3628
3879
|
/* @__PURE__ */ jsx6(Text2, { props, field: "catalogIntro", fallback: archiveDefaults.catalogIntro, sx: { maxWidth: 470, color: palette2.muted, fontSize: 15, lineHeight: 1.7 } })
|
|
3629
3880
|
] }),
|
|
3630
|
-
/* @__PURE__ */ jsx6(Box6, { sx: { display: "grid", gap: 2, gridTemplateColumns: { xs: "1fr", md: "repeat(2, minmax(0, 1fr))" } }, children: projects.map((project, index) => /* @__PURE__ */ jsxs6(Box6, { sx: { display: "grid", overflow: "hidden", border: `1px solid ${palette2.line}`, bgcolor: palette2.pale, gridColumn: { md: index === 0 ? "1 / -1" : "auto" }, gridTemplateColumns: { xs: "1fr", md: index === 0 ? "1.1fr .9fr" : "1fr" } }, children: [
|
|
3631
|
-
/* @__PURE__ */ jsxs6(Box6, { sx: { position: "relative",
|
|
3881
|
+
/* @__PURE__ */ jsx6(Box6, { className: "estate-card-grid", sx: { display: "grid", gap: 2, gridTemplateColumns: { xs: "1fr", md: "repeat(2, minmax(0, 1fr))" } }, children: projects.map((project, index) => /* @__PURE__ */ jsxs6(Box6, { className: "estate-feature-card", sx: { display: "grid", overflow: "hidden", border: `1px solid ${palette2.line}`, bgcolor: palette2.pale, gridColumn: { md: index === 0 ? "1 / -1" : "auto" }, gridTemplateColumns: { xs: "1fr", md: index === 0 ? "1.1fr .9fr" : "1fr" } }, children: [
|
|
3882
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-card-image", sx: { position: "relative", height: { xs: 300, sm: 380, md: index === 0 ? 540 : 360 } }, children: [
|
|
3632
3883
|
/* @__PURE__ */ jsx6(Image2, { props, field: `project${index + 1}Image`, fallback: project.image, alt: project.title }),
|
|
3633
3884
|
/* @__PURE__ */ jsxs6(Box6, { sx: { position: "absolute", top: 18, left: 18, px: 1, py: 0.65, border: "1px solid rgba(255,255,255,.44)", bgcolor: "rgba(23,32,25,.45)", color: "white", fontFamily: "monospace", fontSize: 11 }, children: [
|
|
3634
3885
|
"0",
|
|
@@ -3638,9 +3889,9 @@ function EstateProjectsArchiveRenderer(props) {
|
|
|
3638
3889
|
] }),
|
|
3639
3890
|
/* @__PURE__ */ jsxs6(Stack4, { sx: { p: { xs: 2.5, md: index === 0 ? 5 : 3 }, alignItems: "flex-start" }, spacing: 2, children: [
|
|
3640
3891
|
/* @__PURE__ */ jsx6(Text2, { props, field: `project${index + 1}Type`, fallback: project.type, sx: { color: palette2.gold, fontSize: 10, fontWeight: 700, letterSpacing: ".15em", textTransform: "uppercase" } }),
|
|
3641
|
-
/* @__PURE__ */ jsx6(Text2, { props, field: `project${index + 1}Title`, fallback: project.title, component: "h2", sx: { fontFamily: displayFont2, fontSize: { xs: 36, md: index === 0 ? 68 : 44 }, fontWeight: 400, letterSpacing: "-.05em", lineHeight: 0.98 } }),
|
|
3892
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-card-title", props, field: `project${index + 1}Title`, fallback: project.title, component: "h2", sx: { fontFamily: displayFont2, fontSize: { xs: 36, md: index === 0 ? 68 : 44 }, fontWeight: 400, letterSpacing: "-.05em", lineHeight: 0.98 } }),
|
|
3642
3893
|
/* @__PURE__ */ jsx6(Text2, { props, field: `project${index + 1}Summary`, fallback: project.summary, sx: { color: palette2.muted, fontSize: 14, lineHeight: 1.72 } }),
|
|
3643
|
-
/* @__PURE__ */ jsxs6(Box6, { sx: { width: 1, pt: 1.5, borderTop: `1px solid ${palette2.line}`, display: "grid", gap: 1, gridTemplateColumns: "1fr 1fr" }, children: [
|
|
3894
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-meta-grid", sx: { width: 1, pt: 1.5, borderTop: `1px solid ${palette2.line}`, display: "grid", gap: 1, gridTemplateColumns: "1fr 1fr" }, children: [
|
|
3644
3895
|
/* @__PURE__ */ jsxs6(Stack4, { spacing: 0.4, children: [
|
|
3645
3896
|
/* @__PURE__ */ jsx6(Box6, { sx: { color: palette2.muted, fontSize: 9, fontWeight: 700, letterSpacing: ".1em", textTransform: "uppercase" }, children: "\u0110\u1ECBa \u0111i\u1EC3m" }),
|
|
3646
3897
|
/* @__PURE__ */ jsx6(Text2, { props, field: `project${index + 1}Location`, fallback: project.location, sx: { fontSize: 12, fontWeight: 700 } })
|
|
@@ -3652,49 +3903,284 @@ function EstateProjectsArchiveRenderer(props) {
|
|
|
3652
3903
|
] }),
|
|
3653
3904
|
/* @__PURE__ */ jsx6(Button6, { endIcon: "\u2197", sx: { mt: "auto", px: 0, color: "#795B2D", fontSize: 11, fontWeight: 800, letterSpacing: ".11em" }, children: "XEM H\u1ED2 S\u01A0" })
|
|
3654
3905
|
] })
|
|
3655
|
-
] }, project.title)) })
|
|
3906
|
+
] }, project.title)) }),
|
|
3907
|
+
props.editable && /* @__PURE__ */ jsx6(Box6, { sx: { display: "flex", justifyContent: "flex-end", mt: 2 }, children: /* @__PURE__ */ jsx6(AddProjectButton, { onAdd: props.onAddListItem }) })
|
|
3656
3908
|
] }),
|
|
3657
|
-
/* @__PURE__ */ jsx6(Box6, { component: "section", sx: { py: { xs: 8, md: 12 }, borderTop: `1px solid ${palette2.line}`, bgcolor: palette2.pale }, children: /* @__PURE__ */ jsxs6(Box6, { sx: containerSx, children: [
|
|
3658
|
-
/* @__PURE__ */ jsxs6(Box6, { sx: { display: "grid", gap: { xs: 3, md: 7 }, alignItems: "end", gridTemplateColumns: { xs: "1fr", md: "1.25fr .75fr" } }, children: [
|
|
3909
|
+
/* @__PURE__ */ jsx6(Box6, { component: "section", sx: { py: { xs: 8, md: 12 }, borderTop: `1px solid ${palette2.line}`, bgcolor: palette2.pale }, children: /* @__PURE__ */ jsxs6(Box6, { className: "estate-container", sx: containerSx, children: [
|
|
3910
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-split", sx: { display: "grid", gap: { xs: 3, md: 7 }, alignItems: "end", gridTemplateColumns: { xs: "1fr", md: "1.25fr .75fr" } }, children: [
|
|
3659
3911
|
/* @__PURE__ */ jsxs6(Box6, { children: [
|
|
3660
3912
|
/* @__PURE__ */ jsx6(Text2, { props, field: "explorerEyebrow", fallback: archiveDefaults.explorerEyebrow, sx: eyebrowSx2 }),
|
|
3661
|
-
/* @__PURE__ */ jsx6(Text2, { props, field: "explorerHeading", fallback: archiveDefaults.explorerHeading, component: "h2", sx: { maxWidth: 760, mt: 3, fontFamily: displayFont2, fontSize: { xs: 44, md: 78 }, fontWeight: 400, letterSpacing: "-.055em", lineHeight: 0.94 } })
|
|
3913
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-lg", props, field: "explorerHeading", fallback: archiveDefaults.explorerHeading, component: "h2", sx: { maxWidth: 760, mt: 3, fontFamily: displayFont2, fontSize: { xs: 44, md: 78 }, fontWeight: 400, letterSpacing: "-.055em", lineHeight: 0.94 } })
|
|
3662
3914
|
] }),
|
|
3663
3915
|
/* @__PURE__ */ jsx6(Text2, { props, field: "explorerIntro", fallback: archiveDefaults.explorerIntro, sx: { color: palette2.muted, fontSize: 15, lineHeight: 1.75 } })
|
|
3664
3916
|
] }),
|
|
3665
|
-
/* @__PURE__ */ jsxs6(
|
|
3666
|
-
|
|
3667
|
-
|
|
3917
|
+
/* @__PURE__ */ jsxs6(
|
|
3918
|
+
Box6,
|
|
3919
|
+
{
|
|
3920
|
+
className: "estate-filter-layout",
|
|
3921
|
+
sx: {
|
|
3922
|
+
display: "grid",
|
|
3923
|
+
mt: { xs: 4, md: 6 },
|
|
3924
|
+
gap: 1.5,
|
|
3925
|
+
gridTemplateColumns: { xs: "1fr", md: "minmax(260px, .6fr) 1.4fr" }
|
|
3926
|
+
},
|
|
3927
|
+
children: [
|
|
3928
|
+
/* @__PURE__ */ jsx6(
|
|
3929
|
+
TextField2,
|
|
3930
|
+
{
|
|
3931
|
+
size: "small",
|
|
3932
|
+
value: query,
|
|
3933
|
+
onChange: (event) => setQuery(event.target.value),
|
|
3934
|
+
placeholder: "T\xECm theo t\xEAn, \u0111\u1ECBa \u0111i\u1EC3m...",
|
|
3935
|
+
InputProps: {
|
|
3936
|
+
startAdornment: /* @__PURE__ */ jsx6(Box6, { sx: { mr: 1, color: palette2.gold, fontSize: 20, lineHeight: 1 }, children: "\u2315" }),
|
|
3937
|
+
sx: {
|
|
3938
|
+
height: 40,
|
|
3939
|
+
borderRadius: 0,
|
|
3940
|
+
bgcolor: palette2.cream,
|
|
3941
|
+
fontSize: 13,
|
|
3942
|
+
"& fieldset": { borderColor: palette2.line },
|
|
3943
|
+
"&:hover fieldset": { borderColor: palette2.gold }
|
|
3944
|
+
}
|
|
3945
|
+
}
|
|
3946
|
+
}
|
|
3947
|
+
),
|
|
3948
|
+
/* @__PURE__ */ jsx6(
|
|
3949
|
+
Stack4,
|
|
3950
|
+
{
|
|
3951
|
+
className: "estate-filter-options",
|
|
3952
|
+
direction: "row",
|
|
3953
|
+
spacing: 0.75,
|
|
3954
|
+
useFlexGap: true,
|
|
3955
|
+
sx: { flexWrap: "wrap", alignItems: "center" },
|
|
3956
|
+
children: filters.map((item) => {
|
|
3957
|
+
const active = filter === item;
|
|
3958
|
+
return /* @__PURE__ */ jsx6(
|
|
3959
|
+
Box6,
|
|
3960
|
+
{
|
|
3961
|
+
component: "button",
|
|
3962
|
+
type: "button",
|
|
3963
|
+
"aria-pressed": active,
|
|
3964
|
+
onClick: () => setFilter(item),
|
|
3965
|
+
sx: {
|
|
3966
|
+
appearance: "none",
|
|
3967
|
+
cursor: "pointer",
|
|
3968
|
+
minWidth: 0,
|
|
3969
|
+
minHeight: 40,
|
|
3970
|
+
px: 1.5,
|
|
3971
|
+
border: `1px solid ${active ? palette2.dark : palette2.line}`,
|
|
3972
|
+
borderRadius: 0,
|
|
3973
|
+
bgcolor: active ? palette2.dark : "transparent",
|
|
3974
|
+
color: active ? "#F8F5EF" : palette2.muted,
|
|
3975
|
+
fontFamily: "inherit",
|
|
3976
|
+
fontSize: 10,
|
|
3977
|
+
fontWeight: 700,
|
|
3978
|
+
letterSpacing: ".08em",
|
|
3979
|
+
lineHeight: 1.2,
|
|
3980
|
+
whiteSpace: "nowrap",
|
|
3981
|
+
textTransform: "uppercase",
|
|
3982
|
+
"&:hover": {
|
|
3983
|
+
borderColor: active ? palette2.dark : palette2.gold,
|
|
3984
|
+
bgcolor: active ? "#28372C" : "rgba(150, 115, 61, 0.08)"
|
|
3985
|
+
},
|
|
3986
|
+
"&.Mui-focusVisible": {
|
|
3987
|
+
outline: `2px solid ${palette2.gold}`,
|
|
3988
|
+
outlineOffset: 2
|
|
3989
|
+
}
|
|
3990
|
+
},
|
|
3991
|
+
children: item
|
|
3992
|
+
},
|
|
3993
|
+
item
|
|
3994
|
+
);
|
|
3995
|
+
})
|
|
3996
|
+
}
|
|
3997
|
+
)
|
|
3998
|
+
]
|
|
3999
|
+
}
|
|
4000
|
+
),
|
|
4001
|
+
/* @__PURE__ */ jsxs6(
|
|
4002
|
+
Box6,
|
|
4003
|
+
{
|
|
4004
|
+
sx: {
|
|
4005
|
+
display: "flex",
|
|
4006
|
+
alignItems: "center",
|
|
4007
|
+
justifyContent: "space-between",
|
|
4008
|
+
flexWrap: "wrap",
|
|
4009
|
+
gap: 1.5,
|
|
4010
|
+
mt: 3,
|
|
4011
|
+
pb: 1.25,
|
|
4012
|
+
borderBottom: `1px solid ${palette2.line}`
|
|
4013
|
+
},
|
|
4014
|
+
children: [
|
|
4015
|
+
/* @__PURE__ */ jsxs6(
|
|
4016
|
+
Box6,
|
|
4017
|
+
{
|
|
4018
|
+
sx: {
|
|
4019
|
+
color: palette2.muted,
|
|
4020
|
+
fontSize: 10,
|
|
4021
|
+
fontWeight: 700,
|
|
4022
|
+
letterSpacing: ".12em",
|
|
4023
|
+
textTransform: "uppercase"
|
|
4024
|
+
},
|
|
4025
|
+
children: [
|
|
4026
|
+
String(filtered.length).padStart(2, "0"),
|
|
4027
|
+
" c\xF4ng tr\xECnh \u0111\u01B0\u1EE3c t\xECm th\u1EA5y"
|
|
4028
|
+
]
|
|
4029
|
+
}
|
|
4030
|
+
),
|
|
4031
|
+
filter !== "T\u1EA5t c\u1EA3" && /* @__PURE__ */ jsxs6(
|
|
4032
|
+
Box6,
|
|
4033
|
+
{
|
|
4034
|
+
sx: {
|
|
4035
|
+
color: palette2.muted,
|
|
4036
|
+
fontSize: 10,
|
|
4037
|
+
fontWeight: 700,
|
|
4038
|
+
letterSpacing: ".1em",
|
|
4039
|
+
textTransform: "uppercase"
|
|
4040
|
+
},
|
|
4041
|
+
children: [
|
|
4042
|
+
"\u0110ang xem: ",
|
|
4043
|
+
filter
|
|
4044
|
+
]
|
|
4045
|
+
}
|
|
4046
|
+
)
|
|
4047
|
+
]
|
|
4048
|
+
}
|
|
4049
|
+
),
|
|
4050
|
+
/* @__PURE__ */ jsx6(Box6, { children: filtered.map((project, index) => /* @__PURE__ */ jsxs6(Box6, { className: "estate-list-row", sx: { display: "grid", alignItems: "center", py: 1.5, borderBottom: `1px solid ${palette2.line}`, gap: { xs: 1, md: 2 }, gridTemplateColumns: { xs: "30px 72px minmax(0, 1fr)", md: "40px 120px minmax(200px, 1.35fr) minmax(150px, .65fr) 24px" } }, children: [
|
|
4051
|
+
/* @__PURE__ */ jsxs6(Box6, { sx: { color: palette2.gold, fontFamily: "monospace", fontSize: 11 }, children: [
|
|
4052
|
+
"0",
|
|
4053
|
+
index + 1
|
|
4054
|
+
] }),
|
|
4055
|
+
project.image ? /* @__PURE__ */ jsx6(Box6, { component: "img", src: project.image, alt: "", sx: { width: 1, height: { xs: 58, md: 74 }, objectFit: "cover" } }) : /* @__PURE__ */ jsx6(Box6, { sx: { width: 1, height: { xs: 58, md: 74 }, bgcolor: "rgba(32, 40, 32, 0.08)" } }),
|
|
4056
|
+
/* @__PURE__ */ jsxs6(Box6, { sx: { minWidth: 0 }, children: [
|
|
4057
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { color: palette2.gold, fontSize: 10, fontWeight: 700, letterSpacing: ".1em", textTransform: "uppercase" }, children: project.type }),
|
|
4058
|
+
/* @__PURE__ */ jsx6(Box6, { className: "estate-list-title", sx: { mt: 0.5, fontFamily: displayFont2, fontSize: { xs: 22, md: 28 }, letterSpacing: "-.035em" }, children: project.title })
|
|
4059
|
+
] }),
|
|
4060
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-desktop-meta", sx: { display: { xs: "none", md: "block" }, color: palette2.muted, fontSize: 12 }, children: [
|
|
4061
|
+
project.location,
|
|
4062
|
+
/* @__PURE__ */ jsx6("br", {}),
|
|
4063
|
+
project.year
|
|
4064
|
+
] }),
|
|
4065
|
+
/* @__PURE__ */ jsx6(Box6, { className: "estate-desktop-meta", sx: { display: { xs: "none", md: "block" }, color: palette2.gold, fontSize: 20 }, children: "\u2197" })
|
|
4066
|
+
] }, project.title)) }),
|
|
4067
|
+
props.editable && /* @__PURE__ */ jsx6(Box6, { sx: { display: "flex", justifyContent: "flex-end", mt: 2 }, children: /* @__PURE__ */ jsx6(AddProjectButton, { onAdd: props.onAddListItem }) })
|
|
4068
|
+
] }) })
|
|
4069
|
+
] });
|
|
4070
|
+
}
|
|
4071
|
+
function EstateProjectsArchiveHeroRenderer(props) {
|
|
4072
|
+
return /* @__PURE__ */ jsxs6(Box6, { sx: { ...estateResponsiveSx2, bgcolor: palette2.dark, color: "#F8F5EF" }, children: [
|
|
4073
|
+
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
4074
|
+
/* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { position: "relative", overflow: "hidden", py: { xs: 12, md: 18 } }, children: [
|
|
4075
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { position: "absolute", inset: 0, opacity: 0.14, backgroundImage: "linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px)", backgroundSize: "25% 100%, 100% 25%" } }),
|
|
4076
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-container estate-split", sx: { ...containerSx, position: "relative", display: "grid", gap: { xs: 4, md: 8 }, alignItems: "end", gridTemplateColumns: { xs: "1fr", md: "1.35fr .65fr" } }, children: [
|
|
4077
|
+
/* @__PURE__ */ jsxs6(Box6, { children: [
|
|
4078
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "eyebrow", fallback: archiveDefaults.eyebrow, sx: { ...eyebrowSx2, color: "#D8BD8A" } }),
|
|
4079
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-xl", props, field: "heading", fallback: archiveDefaults.heading, component: "h1", sx: { maxWidth: 940, mt: 3, fontFamily: displayFont2, fontSize: { xs: 56, md: 112 }, fontWeight: 400, letterSpacing: "-.065em", lineHeight: 0.9, textWrap: "balance" } })
|
|
4080
|
+
] }),
|
|
4081
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "intro", fallback: archiveDefaults.intro, sx: { m: 0, pt: 2, borderTop: "1px solid rgba(255,255,255,.22)", color: "rgba(255,255,255,.68)", fontFamily: "'Wikex Inter', Arial, sans-serif", fontSize: 16, lineHeight: 1.75 } })
|
|
4082
|
+
] })
|
|
4083
|
+
] })
|
|
4084
|
+
] });
|
|
4085
|
+
}
|
|
4086
|
+
function EstateProjectCatalogRenderer(props) {
|
|
4087
|
+
const projects = archiveProjects(props);
|
|
4088
|
+
return /* @__PURE__ */ jsxs6(Box6, { sx: { ...estateResponsiveSx2, bgcolor: palette2.cream, color: palette2.ink }, children: [
|
|
4089
|
+
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
4090
|
+
/* @__PURE__ */ jsxs6(Box6, { component: "section", className: "estate-container", sx: { ...containerSx, py: { xs: 6, md: 9 } }, children: [
|
|
4091
|
+
/* @__PURE__ */ jsxs6(Box6, { sx: { display: "flex", justifyContent: "space-between", alignItems: { xs: "flex-start", md: "flex-end" }, flexDirection: { xs: "column", md: "row" }, gap: 2, mb: { xs: 3, md: 4 } }, children: [
|
|
4092
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "catalogEyebrow", fallback: archiveDefaults.catalogEyebrow, sx: eyebrowSx2 }),
|
|
4093
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "catalogIntro", fallback: archiveDefaults.catalogIntro, sx: { maxWidth: 470, color: palette2.muted, fontSize: 15, lineHeight: 1.7 } })
|
|
3668
4094
|
] }),
|
|
3669
|
-
/* @__PURE__ */
|
|
4095
|
+
/* @__PURE__ */ jsx6(Box6, { className: "estate-card-grid", sx: { display: "grid", gap: 2, gridTemplateColumns: { xs: "1fr", md: "repeat(2, minmax(0, 1fr))" } }, children: projects.map((project, index) => /* @__PURE__ */ jsxs6(Box6, { className: "estate-feature-card", sx: { display: "grid", overflow: "hidden", border: `1px solid ${palette2.line}`, bgcolor: palette2.pale, gridColumn: { md: index === 0 ? "1 / -1" : "auto" }, gridTemplateColumns: { xs: "1fr", md: index === 0 ? "1.1fr .9fr" : "1fr" } }, children: [
|
|
4096
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-card-image", sx: { position: "relative", height: { xs: 300, sm: 380, md: index === 0 ? 540 : 360 } }, children: [
|
|
4097
|
+
/* @__PURE__ */ jsx6(Image2, { props, field: `project${index + 1}Image`, fallback: project.image, alt: project.title }),
|
|
4098
|
+
/* @__PURE__ */ jsxs6(Box6, { sx: { position: "absolute", top: 18, left: 18, px: 1, py: 0.65, border: "1px solid rgba(255,255,255,.44)", bgcolor: "rgba(23,32,25,.45)", color: "white", fontFamily: "monospace", fontSize: 11 }, children: [
|
|
4099
|
+
"0",
|
|
4100
|
+
index + 1
|
|
4101
|
+
] }),
|
|
4102
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { position: "absolute", top: 18, right: 18, px: 1, py: 0.65, border: "1px solid rgba(255,255,255,.44)", bgcolor: "rgba(23,32,25,.45)", color: "white", fontFamily: "monospace", fontSize: 11 }, children: project.year })
|
|
4103
|
+
] }),
|
|
4104
|
+
/* @__PURE__ */ jsxs6(Stack4, { sx: { p: { xs: 2.5, md: index === 0 ? 5 : 3 }, alignItems: "flex-start" }, spacing: 2, children: [
|
|
4105
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: `project${index + 1}Type`, fallback: project.type, sx: { color: palette2.gold, fontSize: 10, fontWeight: 700, letterSpacing: ".15em", textTransform: "uppercase" } }),
|
|
4106
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-card-title", props, field: `project${index + 1}Title`, fallback: project.title, component: "h2", sx: { fontFamily: displayFont2, fontSize: { xs: 36, md: index === 0 ? 68 : 44 }, fontWeight: 400, letterSpacing: "-.05em", lineHeight: 0.98 } }),
|
|
4107
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: `project${index + 1}Summary`, fallback: project.summary, sx: { color: palette2.muted, fontSize: 14, lineHeight: 1.72 } }),
|
|
4108
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-meta-grid", sx: { width: 1, pt: 1.5, borderTop: `1px solid ${palette2.line}`, display: "grid", gap: 1, gridTemplateColumns: "1fr 1fr" }, children: [
|
|
4109
|
+
/* @__PURE__ */ jsxs6(Stack4, { spacing: 0.4, children: [
|
|
4110
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { color: palette2.muted, fontSize: 9, fontWeight: 700, letterSpacing: ".1em", textTransform: "uppercase" }, children: "\u0110\u1ECBa \u0111i\u1EC3m" }),
|
|
4111
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: `project${index + 1}Location`, fallback: project.location, sx: { fontSize: 12, fontWeight: 700 } })
|
|
4112
|
+
] }),
|
|
4113
|
+
/* @__PURE__ */ jsxs6(Stack4, { spacing: 0.4, children: [
|
|
4114
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { color: palette2.muted, fontSize: 9, fontWeight: 700, letterSpacing: ".1em", textTransform: "uppercase" }, children: "Ph\u1EA1m vi" }),
|
|
4115
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: `project${index + 1}Scope`, fallback: project.scope, sx: { fontSize: 12, fontWeight: 700 } })
|
|
4116
|
+
] })
|
|
4117
|
+
] }),
|
|
4118
|
+
/* @__PURE__ */ jsx6(Button6, { endIcon: "\u2197", sx: { mt: "auto", px: 0, color: "#795B2D", fontSize: 11, fontWeight: 800, letterSpacing: ".11em" }, children: "XEM H\u1ED2 S\u01A0" })
|
|
4119
|
+
] })
|
|
4120
|
+
] }, `${project.title}-${index}`)) }),
|
|
4121
|
+
props.editable && /* @__PURE__ */ jsx6(Box6, { sx: { display: "flex", justifyContent: "flex-end", mt: 2 }, children: /* @__PURE__ */ jsx6(AddProjectButton, { onAdd: props.onAddListItem }) })
|
|
4122
|
+
] })
|
|
4123
|
+
] });
|
|
4124
|
+
}
|
|
4125
|
+
function EstateProjectExplorerRenderer(props) {
|
|
4126
|
+
const [query, setQuery] = useState4("");
|
|
4127
|
+
const [filter, setFilter] = useState4("T\u1EA5t c\u1EA3");
|
|
4128
|
+
const projects = archiveProjects(props);
|
|
4129
|
+
const filters = ["T\u1EA5t c\u1EA3", ...Array.from(new Set(projects.map((project) => project.type)))];
|
|
4130
|
+
const filtered = useMemo2(() => {
|
|
4131
|
+
const search = query.trim().toLocaleLowerCase("vi");
|
|
4132
|
+
return projects.filter((project) => (filter === "T\u1EA5t c\u1EA3" || project.type === filter) && (!search || [project.title, project.location, project.client, project.scope].join(" ").toLocaleLowerCase("vi").includes(search)));
|
|
4133
|
+
}, [filter, projects, query]);
|
|
4134
|
+
return /* @__PURE__ */ jsxs6(Box6, { sx: { ...estateResponsiveSx2, py: { xs: 8, md: 12 }, borderTop: `1px solid ${palette2.line}`, bgcolor: palette2.pale, color: palette2.ink }, children: [
|
|
4135
|
+
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
4136
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-container", sx: containerSx, children: [
|
|
4137
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-split", sx: { display: "grid", gap: { xs: 3, md: 7 }, alignItems: "end", gridTemplateColumns: { xs: "1fr", md: "1.25fr .75fr" } }, children: [
|
|
3670
4138
|
/* @__PURE__ */ jsxs6(Box6, { children: [
|
|
4139
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "explorerEyebrow", fallback: archiveDefaults.explorerEyebrow, sx: eyebrowSx2 }),
|
|
4140
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-lg", props, field: "explorerHeading", fallback: archiveDefaults.explorerHeading, component: "h2", sx: { maxWidth: 760, mt: 3, fontFamily: displayFont2, fontSize: { xs: 44, md: 78 }, fontWeight: 400, letterSpacing: "-.055em", lineHeight: 0.94 } })
|
|
4141
|
+
] }),
|
|
4142
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "explorerIntro", fallback: archiveDefaults.explorerIntro, sx: { color: palette2.muted, fontSize: 15, lineHeight: 1.75 } })
|
|
4143
|
+
] }),
|
|
4144
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-filter-layout", sx: { display: "grid", mt: { xs: 4, md: 6 }, gap: 1.5, gridTemplateColumns: { xs: "1fr", md: "minmax(260px, .6fr) 1.4fr" } }, children: [
|
|
4145
|
+
/* @__PURE__ */ jsx6(TextField2, { size: "small", value: query, onChange: (event) => setQuery(event.target.value), placeholder: "T\xECm theo t\xEAn, \u0111\u1ECBa \u0111i\u1EC3m...", InputProps: { startAdornment: /* @__PURE__ */ jsx6(Box6, { sx: { mr: 1, color: palette2.gold, fontSize: 20, lineHeight: 1 }, children: "\u2315" }), sx: { height: 40, borderRadius: 0, bgcolor: palette2.cream, fontSize: 13, "& fieldset": { borderColor: palette2.line }, "&:hover fieldset": { borderColor: palette2.gold } } } }),
|
|
4146
|
+
/* @__PURE__ */ jsx6(Stack4, { className: "estate-filter-options", direction: "row", spacing: 0.75, useFlexGap: true, sx: { flexWrap: "wrap", alignItems: "center" }, children: filters.map((item) => {
|
|
4147
|
+
const active = filter === item;
|
|
4148
|
+
return /* @__PURE__ */ jsx6(Box6, { component: "button", type: "button", "aria-pressed": active, onClick: () => setFilter(item), sx: { appearance: "none", cursor: "pointer", minWidth: 0, minHeight: 40, px: 1.5, border: `1px solid ${active ? palette2.dark : palette2.line}`, borderRadius: 0, bgcolor: active ? palette2.dark : "transparent", color: active ? "#F8F5EF" : palette2.muted, fontFamily: "inherit", fontSize: 10, fontWeight: 700, letterSpacing: ".08em", lineHeight: 1.2, whiteSpace: "nowrap", textTransform: "uppercase", "&:hover": { borderColor: active ? palette2.dark : palette2.gold, bgcolor: active ? "#28372C" : "rgba(150, 115, 61, 0.08)" } }, children: item }, item);
|
|
4149
|
+
}) })
|
|
4150
|
+
] }),
|
|
4151
|
+
/* @__PURE__ */ jsxs6(Box6, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", flexWrap: "wrap", gap: 1.5, mt: 3, pb: 1.25, borderBottom: `1px solid ${palette2.line}` }, children: [
|
|
4152
|
+
/* @__PURE__ */ jsxs6(Box6, { sx: { color: palette2.muted, fontSize: 10, fontWeight: 700, letterSpacing: ".12em", textTransform: "uppercase" }, children: [
|
|
3671
4153
|
String(filtered.length).padStart(2, "0"),
|
|
3672
4154
|
" c\xF4ng tr\xECnh \u0111\u01B0\u1EE3c t\xECm th\u1EA5y"
|
|
3673
4155
|
] }),
|
|
3674
|
-
/* @__PURE__ */
|
|
4156
|
+
filter !== "T\u1EA5t c\u1EA3" && /* @__PURE__ */ jsxs6(Box6, { sx: { color: palette2.muted, fontSize: 10, fontWeight: 700, letterSpacing: ".1em", textTransform: "uppercase" }, children: [
|
|
4157
|
+
"\u0110ang xem: ",
|
|
4158
|
+
filter
|
|
4159
|
+
] })
|
|
3675
4160
|
] }),
|
|
3676
|
-
/* @__PURE__ */ jsx6(Box6, { children: filtered.map((project, index) => /* @__PURE__ */ jsxs6(Box6, { sx: { display: "grid", alignItems: "center", py: 1.5, borderBottom: `1px solid ${palette2.line}`, gap: { xs: 1, md: 2 }, gridTemplateColumns: { xs: "30px 72px minmax(0, 1fr)", md: "40px 120px minmax(200px, 1.35fr) minmax(150px, .65fr) 24px" } }, children: [
|
|
4161
|
+
/* @__PURE__ */ jsx6(Box6, { children: filtered.map((project, index) => /* @__PURE__ */ jsxs6(Box6, { className: "estate-list-row", sx: { display: "grid", alignItems: "center", py: 1.5, borderBottom: `1px solid ${palette2.line}`, gap: { xs: 1, md: 2 }, gridTemplateColumns: { xs: "30px 72px minmax(0, 1fr)", md: "40px 120px minmax(200px, 1.35fr) minmax(150px, .65fr) 24px" } }, children: [
|
|
3677
4162
|
/* @__PURE__ */ jsxs6(Box6, { sx: { color: palette2.gold, fontFamily: "monospace", fontSize: 11 }, children: [
|
|
3678
4163
|
"0",
|
|
3679
4164
|
index + 1
|
|
3680
4165
|
] }),
|
|
3681
|
-
/* @__PURE__ */ jsx6(Box6, { component: "img", src: project.image, alt: "", sx: { width: 1, height: { xs: 58, md: 74 }, objectFit: "cover" } }),
|
|
3682
|
-
/* @__PURE__ */ jsxs6(Box6, { children: [
|
|
4166
|
+
project.image ? /* @__PURE__ */ jsx6(Box6, { component: "img", src: project.image, alt: "", sx: { width: 1, height: { xs: 58, md: 74 }, objectFit: "cover" } }) : /* @__PURE__ */ jsx6(Box6, { sx: { width: 1, height: { xs: 58, md: 74 }, bgcolor: "rgba(32, 40, 32, 0.08)" } }),
|
|
4167
|
+
/* @__PURE__ */ jsxs6(Box6, { sx: { minWidth: 0 }, children: [
|
|
3683
4168
|
/* @__PURE__ */ jsx6(Box6, { sx: { color: palette2.gold, fontSize: 10, fontWeight: 700, letterSpacing: ".1em", textTransform: "uppercase" }, children: project.type }),
|
|
3684
|
-
/* @__PURE__ */ jsx6(Box6, { sx: { mt: 0.5, fontFamily: displayFont2, fontSize: { xs: 22, md: 28 }, letterSpacing: "-.035em" }, children: project.title })
|
|
4169
|
+
/* @__PURE__ */ jsx6(Box6, { className: "estate-list-title", sx: { mt: 0.5, fontFamily: displayFont2, fontSize: { xs: 22, md: 28 }, letterSpacing: "-.035em" }, children: project.title })
|
|
3685
4170
|
] }),
|
|
3686
|
-
/* @__PURE__ */ jsxs6(Box6, { sx: { display: { xs: "none", md: "block" }, color: palette2.muted, fontSize: 12 }, children: [
|
|
4171
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-desktop-meta", sx: { display: { xs: "none", md: "block" }, color: palette2.muted, fontSize: 12 }, children: [
|
|
3687
4172
|
project.location,
|
|
3688
4173
|
/* @__PURE__ */ jsx6("br", {}),
|
|
3689
4174
|
project.year
|
|
3690
4175
|
] }),
|
|
3691
|
-
/* @__PURE__ */ jsx6(Box6, { sx: { display: { xs: "none", md: "block" }, color: palette2.gold, fontSize: 20 }, children: "\u2197" })
|
|
3692
|
-
] }, project.title)) })
|
|
3693
|
-
|
|
4176
|
+
/* @__PURE__ */ jsx6(Box6, { className: "estate-desktop-meta", sx: { display: { xs: "none", md: "block" }, color: palette2.gold, fontSize: 20 }, children: "\u2197" })
|
|
4177
|
+
] }, `${project.title}-${index}`)) }),
|
|
4178
|
+
props.editable && /* @__PURE__ */ jsx6(Box6, { sx: { display: "flex", justifyContent: "flex-end", mt: 2 }, children: /* @__PURE__ */ jsx6(AddProjectButton, { onAdd: props.onAddListItem }) })
|
|
4179
|
+
] })
|
|
3694
4180
|
] });
|
|
3695
4181
|
}
|
|
3696
4182
|
var estateProjectsArchiveBlock = {
|
|
3697
|
-
definition: estateDefinition("estate-projects-archive", "Trang danh s\xE1ch d\u1EF1 \xE1n", "Trang archive d\u1EF1 \xE1n c\xF3 hero, cards chi ti\u1EBFt v\xE0 b\u1ED9 l\u1ECDc/t\xECm ki\u1EBFm.", "apartment", [
|
|
4183
|
+
definition: { ...estateDefinition("estate-projects-archive", "Trang danh s\xE1ch d\u1EF1 \xE1n", "Trang archive d\u1EF1 \xE1n c\xF3 hero, cards chi ti\u1EBFt v\xE0 b\u1ED9 l\u1ECDc/t\xECm ki\u1EBFm.", "apartment", [
|
|
3698
4184
|
textField2("eyebrow", "Nh\xE3n hero", "Hero"),
|
|
3699
4185
|
textField2("heading", "Ti\xEAu \u0111\u1EC1 hero", "Hero"),
|
|
3700
4186
|
paragraphField2("intro", "M\xF4 t\u1EA3 hero", "Hero"),
|
|
@@ -3704,9 +4190,22 @@ var estateProjectsArchiveBlock = {
|
|
|
3704
4190
|
textField2("explorerHeading", "Ti\xEAu \u0111\u1EC1 t\xECm ki\u1EBFm", "T\xECm ki\u1EBFm"),
|
|
3705
4191
|
paragraphField2("explorerIntro", "M\xF4 t\u1EA3 t\xECm ki\u1EBFm", "T\xECm ki\u1EBFm"),
|
|
3706
4192
|
...[1, 2, 3].flatMap((index) => [imageField2(`project${index}Image`, "H\xECnh \u1EA3nh", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Type`, "Lo\u1EA1i h\xECnh", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Title`, "T\xEAn d\u1EF1 \xE1n", `D\u1EF1 \xE1n ${index}`), paragraphField2(`project${index}Summary`, "M\xF4 t\u1EA3", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Location`, "\u0110\u1ECBa \u0111i\u1EC3m", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Client`, "Ch\u1EE7 \u0111\u1EA7u t\u01B0", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Scope`, "Ph\u1EA1m vi", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Year`, "N\u0103m", `D\u1EF1 \xE1n ${index}`)])
|
|
3707
|
-
], archiveDefaults),
|
|
4193
|
+
], archiveDefaults), hidden: true },
|
|
3708
4194
|
Renderer: EstateProjectsArchiveRenderer
|
|
3709
4195
|
};
|
|
4196
|
+
var archiveProjectFields = [1, 2, 3].flatMap((index) => [imageField2(`project${index}Image`, "H\xECnh \u1EA3nh", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Type`, "Lo\u1EA1i h\xECnh", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Title`, "T\xEAn d\u1EF1 \xE1n", `D\u1EF1 \xE1n ${index}`), paragraphField2(`project${index}Summary`, "M\xF4 t\u1EA3", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Location`, "\u0110\u1ECBa \u0111i\u1EC3m", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Client`, "Ch\u1EE7 \u0111\u1EA7u t\u01B0", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Scope`, "Ph\u1EA1m vi", `D\u1EF1 \xE1n ${index}`), textField2(`project${index}Year`, "N\u0103m", `D\u1EF1 \xE1n ${index}`)]);
|
|
4197
|
+
var estateProjectsArchiveHeroBlock = {
|
|
4198
|
+
definition: estateDefinition("estate-projects-archive-hero", "Hero danh s\xE1ch d\u1EF1 \xE1n", "Hero m\u1EDF \u0111\u1EA7u d\xE0nh cho trang danh s\xE1ch d\u1EF1 \xE1n.", "view_quilt", [textField2("eyebrow", "Nh\xE3n hero"), textField2("heading", "Ti\xEAu \u0111\u1EC1 hero"), paragraphField2("intro", "M\xF4 t\u1EA3 hero")], archiveDefaults),
|
|
4199
|
+
Renderer: EstateProjectsArchiveHeroRenderer
|
|
4200
|
+
};
|
|
4201
|
+
var estateProjectCatalogBlock = {
|
|
4202
|
+
definition: estateDefinition("estate-project-catalog", "Danh m\u1EE5c d\u1EF1 \xE1n n\u1ED5i b\u1EADt", "L\u01B0\u1EDBi d\u1EF1 \xE1n n\u1ED5i b\u1EADt v\u1EDBi \u1EA3nh, m\xF4 t\u1EA3 v\xE0 th\xF4ng tin ch\xEDnh.", "grid_view", [textField2("catalogEyebrow", "Nh\xE3n danh m\u1EE5c"), paragraphField2("catalogIntro", "M\xF4 t\u1EA3 danh m\u1EE5c"), ...archiveProjectFields], archiveDefaults),
|
|
4203
|
+
Renderer: EstateProjectCatalogRenderer
|
|
4204
|
+
};
|
|
4205
|
+
var estateProjectExplorerBlock = {
|
|
4206
|
+
definition: estateDefinition("estate-project-explorer", "B\u1ED9 l\u1ECDc & danh s\xE1ch d\u1EF1 \xE1n", "T\xECm ki\u1EBFm, l\u1ECDc lo\u1EA1i h\xECnh v\xE0 hi\u1EC3n th\u1ECB danh s\xE1ch d\u1EF1 \xE1n.", "manage_search", [textField2("explorerEyebrow", "Nh\xE3n t\xECm ki\u1EBFm"), textField2("explorerHeading", "Ti\xEAu \u0111\u1EC1 t\xECm ki\u1EBFm"), paragraphField2("explorerIntro", "M\xF4 t\u1EA3 t\xECm ki\u1EBFm"), ...archiveProjectFields], archiveDefaults),
|
|
4207
|
+
Renderer: EstateProjectExplorerRenderer
|
|
4208
|
+
};
|
|
3710
4209
|
var detailDefaults = {
|
|
3711
4210
|
eyebrow: "Bi\u1EC7t th\u1EF1 s\xE2n trong \xB7 2026",
|
|
3712
4211
|
title: "Th\u1EA3o \u0110i\u1EC1n Courtyard Residence",
|
|
@@ -3745,18 +4244,18 @@ function EstateProjectDetailRenderer(props) {
|
|
|
3745
4244
|
{ label: "Di\u1EC7n t\xEDch", value: String(props.content.area ?? detailDefaults.area) },
|
|
3746
4245
|
{ label: "Quy m\xF4", value: String(props.content.floors ?? detailDefaults.floors) }
|
|
3747
4246
|
], "information");
|
|
3748
|
-
return /* @__PURE__ */ jsxs6(Box6, { sx: { bgcolor: palette2.cream, color: palette2.ink }, children: [
|
|
4247
|
+
return /* @__PURE__ */ jsxs6(Box6, { sx: { ...estateResponsiveSx2, bgcolor: palette2.cream, color: palette2.ink }, children: [
|
|
3749
4248
|
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
3750
|
-
/* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { position: "relative", isolation: "isolate", minHeight: { xs: 650, md: 900 }, overflow: "hidden", bgcolor: palette2.dark, color: "#F8F5EF" }, children: [
|
|
4249
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-detail-hero", component: "section", sx: { position: "relative", isolation: "isolate", minHeight: { xs: 650, md: 900 }, overflow: "hidden", bgcolor: palette2.dark, color: "#F8F5EF" }, children: [
|
|
3751
4250
|
/* @__PURE__ */ jsx6(Box6, { sx: { position: "absolute", inset: 0, zIndex: -2 }, children: /* @__PURE__ */ jsx6(Image2, { props, field: "heroImage", fallback: detailDefaults.heroImage, alt: "\u1EA2nh d\u1EF1 \xE1n" }) }),
|
|
3752
4251
|
/* @__PURE__ */ jsx6(Box6, { sx: { position: "absolute", inset: 0, zIndex: -1, background: "linear-gradient(90deg, rgba(13,20,16,.9), rgba(13,20,16,.55) 52%, rgba(13,20,16,.18)), linear-gradient(0deg, rgba(13,20,16,.72), transparent 60%)" } }),
|
|
3753
|
-
/* @__PURE__ */ jsxs6(Stack4, { sx: { ...containerSx, minHeight: { xs: 650, md: 900 }, pt: { xs: 15, md: 21 }, pb: { xs: 6, md: 9 }, justifyContent: "flex-end", alignItems: "flex-start" }, spacing: 3, children: [
|
|
4252
|
+
/* @__PURE__ */ jsxs6(Stack4, { className: "estate-container estate-detail-hero-content", sx: { ...containerSx, minHeight: { xs: 650, md: 900 }, pt: { xs: 15, md: 21 }, pb: { xs: 6, md: 9 }, justifyContent: "flex-end", alignItems: "flex-start" }, spacing: 3, children: [
|
|
3754
4253
|
/* @__PURE__ */ jsx6(Text2, { props, field: "eyebrow", fallback: detailDefaults.eyebrow, sx: { ...eyebrowSx2, color: "#D8BD8A" } }),
|
|
3755
|
-
/* @__PURE__ */ jsx6(Text2, { props, field: "title", fallback: detailDefaults.title, component: "h1", sx: { maxWidth: 1100, fontFamily: displayFont2, fontSize: { xs: 58, md: 124 }, fontWeight: 400, letterSpacing: "-.07em", lineHeight: 0.86, textWrap: "balance" } }),
|
|
4254
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-xl", props, field: "title", fallback: detailDefaults.title, component: "h1", sx: { maxWidth: 1100, fontFamily: displayFont2, fontSize: { xs: 58, md: 124 }, fontWeight: 400, letterSpacing: "-.07em", lineHeight: 0.86, textWrap: "balance" } }),
|
|
3756
4255
|
/* @__PURE__ */ jsx6(Text2, { props, field: "summary", fallback: detailDefaults.summary, sx: { maxWidth: 650, pt: 3, borderTop: "1px solid rgba(255,255,255,.25)", color: "rgba(255,255,255,.74)", fontSize: { xs: 16, md: 18 }, lineHeight: 1.75 } })
|
|
3757
4256
|
] })
|
|
3758
4257
|
] }),
|
|
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: [
|
|
4258
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-container estate-split", component: "section", sx: { ...containerSx, display: "grid", py: { xs: 7, md: 12 }, gap: { xs: 5, md: 12 }, gridTemplateColumns: { xs: "1fr", md: ".68fr 1.32fr" } }, children: [
|
|
3760
4259
|
/* @__PURE__ */ jsxs6(Box6, { children: [
|
|
3761
4260
|
/* @__PURE__ */ jsx6(Box6, { sx: eyebrowSx2, children: "Th\xF4ng tin d\u1EF1 \xE1n" }),
|
|
3762
4261
|
/* @__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: [
|
|
@@ -3766,23 +4265,23 @@ function EstateProjectDetailRenderer(props) {
|
|
|
3766
4265
|
] }),
|
|
3767
4266
|
/* @__PURE__ */ jsxs6(Stack4, { spacing: 3, sx: { alignItems: "flex-start" }, children: [
|
|
3768
4267
|
/* @__PURE__ */ jsx6(Text2, { props, field: "storyEyebrow", fallback: detailDefaults.storyEyebrow, sx: eyebrowSx2 }),
|
|
3769
|
-
/* @__PURE__ */ jsx6(Text2, { props, field: "storyHeading", fallback: detailDefaults.storyHeading, component: "h2", sx: { maxWidth: 810, fontFamily: displayFont2, fontSize: { xs: 40, md: 64 }, fontWeight: 400, letterSpacing: "-.05em", lineHeight: 1.05 } }),
|
|
4268
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-md", props, field: "storyHeading", fallback: detailDefaults.storyHeading, component: "h2", sx: { maxWidth: 810, fontFamily: displayFont2, fontSize: { xs: 40, md: 64 }, fontWeight: 400, letterSpacing: "-.05em", lineHeight: 1.05 } }),
|
|
3770
4269
|
/* @__PURE__ */ jsx6(Text2, { props, field: "storyBody", fallback: detailDefaults.storyBody, sx: { maxWidth: 700, color: palette2.muted, fontSize: 17, lineHeight: 1.85 } })
|
|
3771
4270
|
] })
|
|
3772
4271
|
] }),
|
|
3773
|
-
/* @__PURE__ */ jsx6(Box6, { component: "section", sx: { bgcolor: palette2.dark, color: "#F8F5EF", py: { xs: 8, md: 12 } }, children: /* @__PURE__ */ jsxs6(Box6, { sx: { ...containerSx, display: "grid", alignItems: "center", gap: { xs: 4, md: 10 }, gridTemplateColumns: { xs: "1fr", md: ".95fr 1.05fr" } }, children: [
|
|
4272
|
+
/* @__PURE__ */ jsx6(Box6, { component: "section", sx: { bgcolor: palette2.dark, color: "#F8F5EF", py: { xs: 8, md: 12 } }, children: /* @__PURE__ */ jsxs6(Box6, { className: "estate-container estate-split", sx: { ...containerSx, display: "grid", alignItems: "center", gap: { xs: 4, md: 10 }, gridTemplateColumns: { xs: "1fr", md: ".95fr 1.05fr" } }, children: [
|
|
3774
4273
|
/* @__PURE__ */ jsxs6(Stack4, { spacing: 2.5, sx: { alignItems: "flex-start" }, children: [
|
|
3775
4274
|
/* @__PURE__ */ jsx6(Text2, { props, field: "conceptEyebrow", fallback: detailDefaults.conceptEyebrow, sx: { ...eyebrowSx2, color: "#D8BD8A" } }),
|
|
3776
|
-
/* @__PURE__ */ jsx6(Text2, { props, field: "conceptHeading", fallback: detailDefaults.conceptHeading, component: "h2", sx: { fontFamily: displayFont2, fontSize: { xs: 44, md: 72 }, fontWeight: 400, letterSpacing: "-.06em", lineHeight: 0.94 } }),
|
|
4275
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-lg", props, field: "conceptHeading", fallback: detailDefaults.conceptHeading, component: "h2", sx: { fontFamily: displayFont2, fontSize: { xs: 44, md: 72 }, fontWeight: 400, letterSpacing: "-.06em", lineHeight: 0.94 } }),
|
|
3777
4276
|
/* @__PURE__ */ jsx6(Text2, { props, field: "conceptBody", fallback: detailDefaults.conceptBody, sx: { color: "rgba(255,255,255,.62)", fontSize: 16, lineHeight: 1.8 } })
|
|
3778
4277
|
] }),
|
|
3779
|
-
/* @__PURE__ */ jsx6(Box6, { sx: { minHeight: { xs: 360, md: 560 } }, children: /* @__PURE__ */ jsx6(Image2, { props, field: "conceptImage", fallback: detailDefaults.conceptImage, alt: "\xDD ni\u1EC7m thi\u1EBFt k\u1EBF" }) })
|
|
4278
|
+
/* @__PURE__ */ jsx6(Box6, { className: "estate-gallery-image", sx: { minHeight: { xs: 360, md: 560 } }, children: /* @__PURE__ */ jsx6(Image2, { props, field: "conceptImage", fallback: detailDefaults.conceptImage, alt: "\xDD ni\u1EC7m thi\u1EBFt k\u1EBF" }) })
|
|
3780
4279
|
] }) }),
|
|
3781
|
-
/* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { ...containerSx, py: { xs: 8, md: 13 } }, children: [
|
|
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 } }),
|
|
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: [
|
|
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" }) }),
|
|
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: [
|
|
4280
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-container", component: "section", sx: { ...containerSx, py: { xs: 8, md: 13 } }, children: [
|
|
4281
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-lg", 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 } }),
|
|
4282
|
+
/* @__PURE__ */ jsx6(Stack4, { spacing: { xs: 5, md: 10 }, sx: { mt: { xs: 5, md: 8 } }, children: galleryIndexes.map((index) => /* @__PURE__ */ jsxs6(Box6, { className: "estate-split", sx: { display: "grid", alignItems: "center", gap: { xs: 2, md: 8 }, gridTemplateColumns: { xs: "1fr", md: index % 2 ? "1.45fr .55fr" : ".55fr 1.45fr" } }, children: [
|
|
4283
|
+
/* @__PURE__ */ jsx6(Box6, { className: "estate-gallery-image", 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" }) }),
|
|
4284
|
+
/* @__PURE__ */ jsxs6(Stack4, { className: "estate-gallery-copy", sx: { order: { md: index % 2 ? 2 : 1 }, alignItems: "flex-start", borderTop: `1px solid ${palette2.line}`, pt: 2 }, spacing: 1.5, children: [
|
|
3786
4285
|
/* @__PURE__ */ jsxs6(Box6, { sx: { color: palette2.gold, fontFamily: "monospace", fontSize: 11 }, children: [
|
|
3787
4286
|
"0",
|
|
3788
4287
|
index,
|
|
@@ -3794,15 +4293,102 @@ function EstateProjectDetailRenderer(props) {
|
|
|
3794
4293
|
] })
|
|
3795
4294
|
] }, index)) })
|
|
3796
4295
|
] }),
|
|
3797
|
-
/* @__PURE__ */ jsx6(Box6, { component: "section", sx: { position: "relative", overflow: "hidden", py: { xs: 9, md: 13 }, bgcolor: palette2.dark, color: "#F8F5EF" }, children: /* @__PURE__ */ jsxs6(Box6, { sx: { ...containerSx }, children: [
|
|
4296
|
+
/* @__PURE__ */ jsx6(Box6, { component: "section", sx: { position: "relative", overflow: "hidden", py: { xs: 9, md: 13 }, bgcolor: palette2.dark, color: "#F8F5EF" }, children: /* @__PURE__ */ jsxs6(Box6, { className: "estate-container", sx: { ...containerSx }, children: [
|
|
3798
4297
|
/* @__PURE__ */ jsx6(Text2, { props, field: "ctaEyebrow", fallback: detailDefaults.ctaEyebrow, sx: { ...eyebrowSx2, color: "#D8BD8A" } }),
|
|
3799
|
-
/* @__PURE__ */ jsx6(Text2, { props, field: "ctaHeading", fallback: detailDefaults.ctaHeading, component: "h2", sx: { maxWidth: 1050, mt: 3, fontFamily: displayFont2, fontSize: { xs: 48, md: 92 }, fontWeight: 400, letterSpacing: "-.07em", lineHeight: 0.89 } }),
|
|
3800
|
-
/* @__PURE__ */ jsx6(Button6, { variant: "contained", endIcon: "\u2197", sx: { mt: 4, minHeight: 48, borderRadius: 0, bgcolor: "#D8BD8A", color: palette2.ink, fontSize: 11, fontWeight: 800, letterSpacing: ".1em", "&:hover": { bgcolor: "#F3D89D" } }, children: /* @__PURE__ */ jsx6(Text2, { props, field: "ctaLabel", fallback: detailDefaults.ctaLabel }) })
|
|
4298
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-lg", props, field: "ctaHeading", fallback: detailDefaults.ctaHeading, component: "h2", sx: { maxWidth: 1050, mt: 3, fontFamily: displayFont2, fontSize: { xs: 48, md: 92 }, fontWeight: 400, letterSpacing: "-.07em", lineHeight: 0.89 } }),
|
|
4299
|
+
/* @__PURE__ */ jsx6(Button6, { className: "estate-action-button", variant: "contained", endIcon: "\u2197", sx: { mt: 4, minHeight: 48, borderRadius: 0, bgcolor: "#D8BD8A", color: palette2.ink, fontSize: 11, fontWeight: 800, letterSpacing: ".1em", "&:hover": { bgcolor: "#F3D89D" } }, children: /* @__PURE__ */ jsx6(Text2, { props, field: "ctaLabel", fallback: detailDefaults.ctaLabel }) })
|
|
3801
4300
|
] }) })
|
|
3802
4301
|
] });
|
|
3803
4302
|
}
|
|
4303
|
+
function EstateProjectDetailHeroRenderer(props) {
|
|
4304
|
+
return /* @__PURE__ */ jsxs6(Box6, { sx: { ...estateResponsiveSx2, bgcolor: palette2.dark, color: "#F8F5EF" }, children: [
|
|
4305
|
+
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
4306
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-detail-hero", component: "section", sx: { position: "relative", isolation: "isolate", minHeight: { xs: 650, md: 900 }, overflow: "hidden" }, children: [
|
|
4307
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { position: "absolute", inset: 0, zIndex: -2 }, children: /* @__PURE__ */ jsx6(Image2, { props, field: "heroImage", fallback: detailDefaults.heroImage, alt: "\u1EA2nh d\u1EF1 \xE1n" }) }),
|
|
4308
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { position: "absolute", inset: 0, zIndex: -1, background: "linear-gradient(90deg, rgba(13,20,16,.9), rgba(13,20,16,.55) 52%, rgba(13,20,16,.18)), linear-gradient(0deg, rgba(13,20,16,.72), transparent 60%)" } }),
|
|
4309
|
+
/* @__PURE__ */ jsxs6(Stack4, { className: "estate-container estate-detail-hero-content", sx: { ...containerSx, minHeight: { xs: 650, md: 900 }, pt: { xs: 15, md: 21 }, pb: { xs: 6, md: 9 }, justifyContent: "flex-end", alignItems: "flex-start" }, spacing: 3, children: [
|
|
4310
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "eyebrow", fallback: detailDefaults.eyebrow, sx: { ...eyebrowSx2, color: "#D8BD8A" } }),
|
|
4311
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-xl", props, field: "title", fallback: detailDefaults.title, component: "h1", sx: { maxWidth: 1100, fontFamily: displayFont2, fontSize: { xs: 58, md: 124 }, fontWeight: 400, letterSpacing: "-.07em", lineHeight: 0.86, textWrap: "balance" } }),
|
|
4312
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "summary", fallback: detailDefaults.summary, sx: { maxWidth: 650, pt: 3, borderTop: "1px solid rgba(255,255,255,.25)", color: "rgba(255,255,255,.74)", fontSize: { xs: 16, md: 18 }, lineHeight: 1.75 } })
|
|
4313
|
+
] })
|
|
4314
|
+
] })
|
|
4315
|
+
] });
|
|
4316
|
+
}
|
|
4317
|
+
function EstateProjectInformationRenderer(props) {
|
|
4318
|
+
const information = cmsListItems(props.content, [
|
|
4319
|
+
{ label: "\u0110\u1ECBa \u0111i\u1EC3m", value: detailDefaults.location },
|
|
4320
|
+
{ label: "Ch\u1EE7 \u0111\u1EA7u t\u01B0", value: detailDefaults.client },
|
|
4321
|
+
{ label: "Di\u1EC7n t\xEDch", value: detailDefaults.area },
|
|
4322
|
+
{ label: "Quy m\xF4", value: detailDefaults.floors }
|
|
4323
|
+
]);
|
|
4324
|
+
return /* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { ...estateResponsiveSx2, bgcolor: palette2.cream, color: palette2.ink }, children: [
|
|
4325
|
+
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
4326
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-container", sx: { ...containerSx, py: { xs: 7, md: 10 } }, children: [
|
|
4327
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "informationEyebrow", fallback: "Th\xF4ng tin d\u1EF1 \xE1n", sx: eyebrowSx2 }),
|
|
4328
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { maxWidth: 820, mt: 3, borderTop: `1px solid ${palette2.line}` }, children: information.map((item, index) => /* @__PURE__ */ jsxs6(Box6, { sx: { display: "flex", justifyContent: "space-between", gap: 2, py: 1.5, borderBottom: `1px solid ${palette2.line}` }, children: [
|
|
4329
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { color: palette2.muted, fontSize: 12 }, children: item.label || "M\u1EE5c m\u1EDBi" }),
|
|
4330
|
+
/* @__PURE__ */ jsx6(Box6, { sx: { fontSize: 12, fontWeight: 700, textAlign: "right" }, children: item.value })
|
|
4331
|
+
] }, `${item.label}-${index}`)) })
|
|
4332
|
+
] })
|
|
4333
|
+
] });
|
|
4334
|
+
}
|
|
4335
|
+
function EstateProjectStoryRenderer(props) {
|
|
4336
|
+
return /* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { ...estateResponsiveSx2, bgcolor: palette2.pale, color: palette2.ink }, children: [
|
|
4337
|
+
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
4338
|
+
/* @__PURE__ */ jsxs6(Stack4, { className: "estate-container", spacing: 3, sx: { ...containerSx, py: { xs: 8, md: 12 }, alignItems: "flex-start" }, children: [
|
|
4339
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "storyEyebrow", fallback: detailDefaults.storyEyebrow, sx: eyebrowSx2 }),
|
|
4340
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-md", props, field: "storyHeading", fallback: detailDefaults.storyHeading, component: "h2", sx: { maxWidth: 920, fontFamily: displayFont2, fontSize: { xs: 40, md: 64 }, fontWeight: 400, letterSpacing: "-.05em", lineHeight: 1.05 } }),
|
|
4341
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "storyBody", fallback: detailDefaults.storyBody, sx: { maxWidth: 720, color: palette2.muted, fontSize: 17, lineHeight: 1.85 } })
|
|
4342
|
+
] })
|
|
4343
|
+
] });
|
|
4344
|
+
}
|
|
4345
|
+
function EstateProjectConceptRenderer(props) {
|
|
4346
|
+
return /* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { ...estateResponsiveSx2, bgcolor: palette2.dark, color: "#F8F5EF", py: { xs: 8, md: 12 } }, children: [
|
|
4347
|
+
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
4348
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-container estate-split", sx: { ...containerSx, display: "grid", alignItems: "center", gap: { xs: 4, md: 10 }, gridTemplateColumns: { xs: "1fr", md: ".95fr 1.05fr" } }, children: [
|
|
4349
|
+
/* @__PURE__ */ jsxs6(Stack4, { spacing: 2.5, sx: { alignItems: "flex-start" }, children: [
|
|
4350
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "conceptEyebrow", fallback: detailDefaults.conceptEyebrow, sx: { ...eyebrowSx2, color: "#D8BD8A" } }),
|
|
4351
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-lg", props, field: "conceptHeading", fallback: detailDefaults.conceptHeading, component: "h2", sx: { fontFamily: displayFont2, fontSize: { xs: 44, md: 72 }, fontWeight: 400, letterSpacing: "-.06em", lineHeight: 0.94 } }),
|
|
4352
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "conceptBody", fallback: detailDefaults.conceptBody, sx: { color: "rgba(255,255,255,.62)", fontSize: 16, lineHeight: 1.8 } })
|
|
4353
|
+
] }),
|
|
4354
|
+
/* @__PURE__ */ jsx6(Box6, { className: "estate-gallery-image", sx: { minHeight: { xs: 360, md: 560 } }, children: /* @__PURE__ */ jsx6(Image2, { props, field: "conceptImage", fallback: detailDefaults.conceptImage, alt: "\xDD ni\u1EC7m thi\u1EBFt k\u1EBF" }) })
|
|
4355
|
+
] })
|
|
4356
|
+
] });
|
|
4357
|
+
}
|
|
4358
|
+
function EstateProjectGalleryRenderer(props) {
|
|
4359
|
+
const galleryIndexes = cmsListItems(props.content, Array.from({ length: 3 }, () => ({}))).map((_, index) => index + 1);
|
|
4360
|
+
return /* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { ...estateResponsiveSx2, bgcolor: palette2.cream, color: palette2.ink }, children: [
|
|
4361
|
+
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
4362
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-container", sx: { ...containerSx, py: { xs: 8, md: 13 } }, children: [
|
|
4363
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-lg", 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 } }),
|
|
4364
|
+
/* @__PURE__ */ jsx6(Stack4, { spacing: { xs: 5, md: 10 }, sx: { mt: { xs: 5, md: 8 } }, children: galleryIndexes.map((index) => /* @__PURE__ */ jsxs6(Box6, { className: "estate-split", sx: { display: "grid", alignItems: "center", gap: { xs: 2, md: 8 }, gridTemplateColumns: { xs: "1fr", md: index % 2 ? "1.45fr .55fr" : ".55fr 1.45fr" } }, children: [
|
|
4365
|
+
/* @__PURE__ */ jsx6(Box6, { className: "estate-gallery-image", 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" }) }),
|
|
4366
|
+
/* @__PURE__ */ jsxs6(Stack4, { className: "estate-gallery-copy", sx: { order: { md: index % 2 ? 2 : 1 }, alignItems: "flex-start", borderTop: `1px solid ${palette2.line}`, pt: 2 }, spacing: 1.5, children: [
|
|
4367
|
+
/* @__PURE__ */ jsxs6(Box6, { sx: { color: palette2.gold, fontFamily: "monospace", fontSize: 11 }, children: [
|
|
4368
|
+
"0",
|
|
4369
|
+
index,
|
|
4370
|
+
" / ",
|
|
4371
|
+
String(galleryIndexes.length).padStart(2, "0")
|
|
4372
|
+
] }),
|
|
4373
|
+
/* @__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 } }),
|
|
4374
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: `gallery${index}Note`, fallback: detailDefaults[`gallery${index}Note`], sx: { color: palette2.muted, fontSize: 14, lineHeight: 1.72 } })
|
|
4375
|
+
] })
|
|
4376
|
+
] }, index)) })
|
|
4377
|
+
] })
|
|
4378
|
+
] });
|
|
4379
|
+
}
|
|
4380
|
+
function EstateProjectCtaRenderer(props) {
|
|
4381
|
+
return /* @__PURE__ */ jsxs6(Box6, { component: "section", sx: { ...estateResponsiveSx2, position: "relative", overflow: "hidden", py: { xs: 9, md: 13 }, bgcolor: palette2.dark, color: "#F8F5EF" }, children: [
|
|
4382
|
+
/* @__PURE__ */ jsx6(EstateProjectFonts, {}),
|
|
4383
|
+
/* @__PURE__ */ jsxs6(Box6, { className: "estate-container", sx: { ...containerSx }, children: [
|
|
4384
|
+
/* @__PURE__ */ jsx6(Text2, { props, field: "ctaEyebrow", fallback: detailDefaults.ctaEyebrow, sx: { ...eyebrowSx2, color: "#D8BD8A" } }),
|
|
4385
|
+
/* @__PURE__ */ jsx6(Text2, { className: "estate-display-lg", props, field: "ctaHeading", fallback: detailDefaults.ctaHeading, component: "h2", sx: { maxWidth: 1050, mt: 3, fontFamily: displayFont2, fontSize: { xs: 48, md: 92 }, fontWeight: 400, letterSpacing: "-.07em", lineHeight: 0.89 } }),
|
|
4386
|
+
/* @__PURE__ */ jsx6(Button6, { className: "estate-action-button", variant: "contained", endIcon: "\u2197", sx: { mt: 4, minHeight: 48, borderRadius: 0, bgcolor: "#D8BD8A", color: palette2.ink, fontSize: 11, fontWeight: 800, letterSpacing: ".1em", "&:hover": { bgcolor: "#F3D89D" } }, children: /* @__PURE__ */ jsx6(Text2, { props, field: "ctaLabel", fallback: detailDefaults.ctaLabel }) })
|
|
4387
|
+
] })
|
|
4388
|
+
] });
|
|
4389
|
+
}
|
|
3804
4390
|
var estateProjectDetailBlock = {
|
|
3805
|
-
definition: estateDefinition("estate-project-detail", "Trang chi ti\u1EBFt d\u1EF1 \xE1n", "Case study d\u1EF1 \xE1n g\u1ED3m hero \u1EA3nh, th\xF4ng tin, \xFD ni\u1EC7m, photo story v\xE0 CTA.", "home_work", [
|
|
4391
|
+
definition: { ...estateDefinition("estate-project-detail", "Trang chi ti\u1EBFt d\u1EF1 \xE1n", "Case study d\u1EF1 \xE1n g\u1ED3m hero \u1EA3nh, th\xF4ng tin, \xFD ni\u1EC7m, photo story v\xE0 CTA.", "home_work", [
|
|
3806
4392
|
textField2("eyebrow", "Nh\xE3n hero", "Hero"),
|
|
3807
4393
|
textField2("title", "T\xEAn d\u1EF1 \xE1n", "Hero"),
|
|
3808
4394
|
paragraphField2("summary", "M\xF4 t\u1EA3 hero", "Hero"),
|
|
@@ -3823,10 +4409,46 @@ var estateProjectDetailBlock = {
|
|
|
3823
4409
|
textField2("ctaEyebrow", "Nh\xE3n CTA", "CTA"),
|
|
3824
4410
|
textField2("ctaHeading", "Ti\xEAu \u0111\u1EC1 CTA", "CTA"),
|
|
3825
4411
|
textField2("ctaLabel", "Nh\xE3n n\xFAt CTA", "CTA")
|
|
3826
|
-
], detailDefaults),
|
|
4412
|
+
], detailDefaults), hidden: true },
|
|
3827
4413
|
Renderer: EstateProjectDetailRenderer
|
|
3828
4414
|
};
|
|
3829
|
-
var
|
|
4415
|
+
var estateProjectDetailHeroBlock = {
|
|
4416
|
+
definition: estateDefinition("estate-project-detail-hero", "Hero chi ti\u1EBFt d\u1EF1 \xE1n", "Hero \u1EA3nh to\xE0n m\xE0n h\xECnh cho trang chi ti\u1EBFt d\u1EF1 \xE1n.", "panorama", [textField2("eyebrow", "Nh\xE3n hero"), textField2("title", "T\xEAn d\u1EF1 \xE1n"), paragraphField2("summary", "M\xF4 t\u1EA3 hero"), imageField2("heroImage", "\u1EA2nh hero")], detailDefaults),
|
|
4417
|
+
Renderer: EstateProjectDetailHeroRenderer
|
|
4418
|
+
};
|
|
4419
|
+
var estateProjectInformationBlock = {
|
|
4420
|
+
definition: estateDefinition("estate-project-detail-information", "Th\xF4ng tin d\u1EF1 \xE1n", "Danh s\xE1ch th\xF4ng tin c\u01A1 b\u1EA3n c\u1EE7a d\u1EF1 \xE1n.", "info", [textField2("informationEyebrow", "Nh\xE3n th\xF4ng tin"), ...[1, 2, 3, 4].flatMap((index) => [textField2(`item${index}Label`, "Nh\xE3n", `Th\xF4ng tin ${index}`), textField2(`item${index}Value`, "Gi\xE1 tr\u1ECB", `Th\xF4ng tin ${index}`)])], { ...detailDefaults, informationEyebrow: "Th\xF4ng tin d\u1EF1 \xE1n", item1Label: "\u0110\u1ECBa \u0111i\u1EC3m", item1Value: detailDefaults.location, item2Label: "Ch\u1EE7 \u0111\u1EA7u t\u01B0", item2Value: detailDefaults.client, item3Label: "Di\u1EC7n t\xEDch", item3Value: detailDefaults.area, item4Label: "Quy m\xF4", item4Value: detailDefaults.floors }),
|
|
4421
|
+
Renderer: EstateProjectInformationRenderer
|
|
4422
|
+
};
|
|
4423
|
+
var estateProjectStoryBlock = {
|
|
4424
|
+
definition: estateDefinition("estate-project-detail-story", "C\xE2u chuy\u1EC7n d\u1EF1 \xE1n", "N\u1ED9i dung k\u1EC3 c\xE2u chuy\u1EC7n v\xE0 \u0111\u1ECBnh h\u01B0\u1EDBng kh\xF4ng gian.", "auto_stories", [textField2("storyEyebrow", "Nh\xE3n c\xE2u chuy\u1EC7n"), textField2("storyHeading", "Ti\xEAu \u0111\u1EC1 c\xE2u chuy\u1EC7n"), paragraphField2("storyBody", "N\u1ED9i dung c\xE2u chuy\u1EC7n")], detailDefaults),
|
|
4425
|
+
Renderer: EstateProjectStoryRenderer
|
|
4426
|
+
};
|
|
4427
|
+
var estateProjectConceptBlock = {
|
|
4428
|
+
definition: estateDefinition("estate-project-detail-concept", "\xDD ni\u1EC7m thi\u1EBFt k\u1EBF", "Kh\u1ED1i n\u1ED9i dung v\xE0 h\xECnh \u1EA3nh tr\xECnh b\xE0y \xFD ni\u1EC7m thi\u1EBFt k\u1EBF.", "architecture", [textField2("conceptEyebrow", "Nh\xE3n \xFD ni\u1EC7m"), textField2("conceptHeading", "Ti\xEAu \u0111\u1EC1 \xFD ni\u1EC7m"), paragraphField2("conceptBody", "N\u1ED9i dung \xFD ni\u1EC7m"), imageField2("conceptImage", "H\xECnh \u1EA3nh \xFD ni\u1EC7m")], detailDefaults),
|
|
4429
|
+
Renderer: EstateProjectConceptRenderer
|
|
4430
|
+
};
|
|
4431
|
+
var estateProjectGalleryBlock = {
|
|
4432
|
+
definition: estateDefinition("estate-project-detail-gallery", "Photo story d\u1EF1 \xE1n", "B\u1ED9 \u1EA3nh d\u1EF1 \xE1n k\xE8m caption v\xE0 ghi ch\xFA.", "photo_library", [textField2("galleryHeading", "Ti\xEAu \u0111\u1EC1 photo story"), ...[1, 2, 3].flatMap((index) => [imageField2(`gallery${index}Image`, "H\xECnh \u1EA3nh", `Photo story ${index}`), textField2(`gallery${index}Caption`, "Caption", `Photo story ${index}`), paragraphField2(`gallery${index}Note`, "Ghi ch\xFA", `Photo story ${index}`)])], detailDefaults),
|
|
4433
|
+
Renderer: EstateProjectGalleryRenderer
|
|
4434
|
+
};
|
|
4435
|
+
var estateProjectCtaBlock = {
|
|
4436
|
+
definition: estateDefinition("estate-project-detail-cta", "CTA d\u1EF1 \xE1n", "L\u1EDDi k\xEAu g\u1ECDi h\xE0nh \u0111\u1ED9ng \u1EDF cu\u1ED1i trang d\u1EF1 \xE1n.", "campaign", [textField2("ctaEyebrow", "Nh\xE3n CTA"), textField2("ctaHeading", "Ti\xEAu \u0111\u1EC1 CTA"), textField2("ctaLabel", "Nh\xE3n n\xFAt CTA")], detailDefaults),
|
|
4437
|
+
Renderer: EstateProjectCtaRenderer
|
|
4438
|
+
};
|
|
4439
|
+
var estateProjectPageBlocks = [
|
|
4440
|
+
estateProjectsArchiveBlock,
|
|
4441
|
+
estateProjectDetailBlock,
|
|
4442
|
+
estateProjectsArchiveHeroBlock,
|
|
4443
|
+
estateProjectCatalogBlock,
|
|
4444
|
+
estateProjectExplorerBlock,
|
|
4445
|
+
estateProjectDetailHeroBlock,
|
|
4446
|
+
estateProjectInformationBlock,
|
|
4447
|
+
estateProjectStoryBlock,
|
|
4448
|
+
estateProjectConceptBlock,
|
|
4449
|
+
estateProjectGalleryBlock,
|
|
4450
|
+
estateProjectCtaBlock
|
|
4451
|
+
];
|
|
3830
4452
|
|
|
3831
4453
|
// src/dynamic-list-blocks.tsx
|
|
3832
4454
|
import Box7 from "@mui/material/Box";
|
|
@@ -3835,25 +4457,76 @@ import Stack5 from "@mui/material/Stack";
|
|
|
3835
4457
|
import { Fragment as Fragment4, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
3836
4458
|
var allBlocks = [...estateBlocks, ...estateProjectPageBlocks, ...minimalMarketingBlocks];
|
|
3837
4459
|
var stringValue = (content, key) => String(content[key] ?? "");
|
|
4460
|
+
var sampleImage = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Crect width='1200' height='800' fill='%23E8E3D8'/%3E%3Cpath d='M0 650 320 360l210 190 170-150 500 400H0Z' fill='%23B8B09F'/%3E%3Ccircle cx='880' cy='220' r='90' fill='%23D2A85F'/%3E%3C/svg%3E";
|
|
4461
|
+
var uniqueSampleFields = /* @__PURE__ */ new Set(["label", "name", "question", "title"]);
|
|
3838
4462
|
function fields2(...items) {
|
|
3839
4463
|
return items.map(([key, label, type]) => ({ key, label, type, required: key === "title" || key === "question" }));
|
|
3840
4464
|
}
|
|
3841
4465
|
function indexed(prefix, names) {
|
|
3842
4466
|
return (content, items) => ({
|
|
3843
4467
|
...content,
|
|
3844
|
-
...Object.fromEntries(items.
|
|
4468
|
+
...Object.fromEntries(items.flatMap((item, index) => names.map((name) => [indexedKey(prefix, index, name), item[name] ?? ""])))
|
|
3845
4469
|
});
|
|
3846
4470
|
}
|
|
4471
|
+
function indexedKey(prefix, index, name) {
|
|
4472
|
+
return prefix ? `${prefix}${index + 1}${name[0].toUpperCase()}${name.slice(1)}` : `${name}${index + 1}`;
|
|
4473
|
+
}
|
|
3847
4474
|
function listConfig(type, count, fixedField, itemFields, prefix, names) {
|
|
3848
4475
|
return {
|
|
3849
4476
|
type,
|
|
3850
4477
|
count,
|
|
3851
4478
|
fixedField,
|
|
3852
4479
|
fields: itemFields,
|
|
3853
|
-
|
|
4480
|
+
prefix,
|
|
4481
|
+
names,
|
|
4482
|
+
legacy: (content) => Array.from({ length: count }, (_, index) => Object.fromEntries(names.map((name) => [name, stringValue(content, indexedKey(prefix, index, name))]))),
|
|
3854
4483
|
apply: indexed(prefix, names)
|
|
3855
4484
|
};
|
|
3856
4485
|
}
|
|
4486
|
+
function fallbackSampleValue(field, index) {
|
|
4487
|
+
if (field.type === "image") return sampleImage;
|
|
4488
|
+
if (field.type === "link") return "#";
|
|
4489
|
+
if (field.type === "textarea" || field.type === "richText") {
|
|
4490
|
+
return `N\u1ED9i dung m\u1EABu cho ${field.label.toLocaleLowerCase("vi")}.`;
|
|
4491
|
+
}
|
|
4492
|
+
const values = {
|
|
4493
|
+
author: "Kh\xE1ch h\xE0ng m\u1EABu",
|
|
4494
|
+
client: "Kh\xE1ch h\xE0ng m\u1EABu",
|
|
4495
|
+
location: "\u0110\u1ECBa \u0111i\u1EC3m m\u1EABu",
|
|
4496
|
+
meta: "Th\xF4ng tin m\u1EABu",
|
|
4497
|
+
role: "Vai tr\xF2 m\u1EABu",
|
|
4498
|
+
scope: "Thi\u1EBFt k\u1EBF & thi c\xF4ng",
|
|
4499
|
+
type: "Lo\u1EA1i h\xECnh m\u1EABu",
|
|
4500
|
+
value: "Gi\xE1 tr\u1ECB m\u1EABu",
|
|
4501
|
+
year: "2026"
|
|
4502
|
+
};
|
|
4503
|
+
return values[field.key] ?? `${field.label} m\u1EABu ${index + 1}`;
|
|
4504
|
+
}
|
|
4505
|
+
function sampleItem(templates, itemFields, index) {
|
|
4506
|
+
const template = templates[index % Math.max(templates.length, 1)] ?? {};
|
|
4507
|
+
const repeatedTemplate = templates.length > 0 && index >= templates.length;
|
|
4508
|
+
return Object.fromEntries(
|
|
4509
|
+
itemFields.map((field) => {
|
|
4510
|
+
const templateValue = String(
|
|
4511
|
+
template[field.key] ?? templates.find((item) => item[field.key]?.trim())?.[field.key] ?? ""
|
|
4512
|
+
).trim();
|
|
4513
|
+
const value6 = templateValue || fallbackSampleValue(field, index);
|
|
4514
|
+
const uniqueValue = repeatedTemplate && uniqueSampleFields.has(field.key) ? `${value6} ${index + 1}` : value6;
|
|
4515
|
+
return [field.key, uniqueValue];
|
|
4516
|
+
})
|
|
4517
|
+
);
|
|
4518
|
+
}
|
|
4519
|
+
function restoreEmptyItems(items, templates, itemFields) {
|
|
4520
|
+
return items.map((item, index) => {
|
|
4521
|
+
const sample = sampleItem(templates, itemFields, index);
|
|
4522
|
+
return Object.fromEntries(
|
|
4523
|
+
itemFields.map((field) => {
|
|
4524
|
+
const currentValue = item[field.key]?.trim();
|
|
4525
|
+
return [field.key, currentValue || sample[field.key] || fallbackSampleValue(field, index)];
|
|
4526
|
+
})
|
|
4527
|
+
);
|
|
4528
|
+
});
|
|
4529
|
+
}
|
|
3857
4530
|
var configs = [
|
|
3858
4531
|
listConfig("faq", 4, /^(question|answer)\d+$/, fields2(["question", "C\xE2u h\u1ECFi", "text"], ["answer", "Tr\u1EA3 l\u1EDDi", "textarea"]), "", ["question", "answer"]),
|
|
3859
4532
|
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"]),
|
|
@@ -3865,34 +4538,117 @@ var configs = [
|
|
|
3865
4538
|
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
4539
|
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
4540
|
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"]),
|
|
4541
|
+
listConfig("estate-project-catalog", 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"]),
|
|
4542
|
+
listConfig("estate-project-explorer", 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"]),
|
|
4543
|
+
listConfig("estate-project-detail-information", 4, /^item\d+(Label|Value)$/, fields2(["label", "Nh\xE3n", "text"], ["value", "Gi\xE1 tr\u1ECB", "text"]), "item", ["label", "value"]),
|
|
4544
|
+
listConfig("estate-project-detail-gallery", 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
4545
|
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
4546
|
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
4547
|
];
|
|
3871
4548
|
function DynamicListRenderer({ base, config, ...props }) {
|
|
3872
|
-
const
|
|
3873
|
-
const
|
|
4549
|
+
const itemTemplates = config.legacy(base.definition.defaults);
|
|
4550
|
+
const items = restoreEmptyItems(
|
|
4551
|
+
cmsListItems(props.content, config.legacy(props.content)),
|
|
4552
|
+
itemTemplates,
|
|
4553
|
+
config.fields
|
|
4554
|
+
);
|
|
4555
|
+
const informationFields = fields2(["label", "Nh\xE3n", "text"], ["value", "Gi\xE1 tr\u1ECB", "text"]);
|
|
4556
|
+
const informationTemplates = [
|
|
3874
4557
|
{ label: "\u0110\u1ECBa \u0111i\u1EC3m", value: stringValue(props.content, "location") },
|
|
3875
4558
|
{ label: "Ch\u1EE7 \u0111\u1EA7u t\u01B0", value: stringValue(props.content, "client") },
|
|
3876
4559
|
{ label: "Di\u1EC7n t\xEDch", value: stringValue(props.content, "area") },
|
|
3877
4560
|
{ label: "Quy m\xF4", value: stringValue(props.content, "floors") }
|
|
3878
|
-
]
|
|
4561
|
+
];
|
|
4562
|
+
const information = config.type === "estate-project-detail" ? restoreEmptyItems(
|
|
4563
|
+
cmsListItems(props.content, informationTemplates, "information"),
|
|
4564
|
+
informationTemplates,
|
|
4565
|
+
informationFields
|
|
4566
|
+
) : [];
|
|
3879
4567
|
const BaseRenderer = base.Renderer;
|
|
3880
4568
|
const content = {
|
|
3881
4569
|
...config.apply({ ...props.content, ...information.length ? { location: information[0]?.value ?? "", client: information[1]?.value ?? "", area: information[2]?.value ?? "", floors: information[3]?.value ?? "" } : {} }, items),
|
|
3882
4570
|
items: JSON.stringify(items),
|
|
3883
4571
|
...config.type === "estate-project-detail" ? { information: JSON.stringify(information) } : {}
|
|
3884
4572
|
};
|
|
3885
|
-
const
|
|
4573
|
+
const append = (field, list, itemFields, templates) => {
|
|
4574
|
+
props.onChange?.(
|
|
4575
|
+
field,
|
|
4576
|
+
JSON.stringify([...list, sampleItem(templates, itemFields, list.length)])
|
|
4577
|
+
);
|
|
4578
|
+
};
|
|
4579
|
+
const handleClick = (field, list, itemFields, templates) => (event) => {
|
|
3886
4580
|
event.preventDefault();
|
|
3887
4581
|
event.stopPropagation();
|
|
3888
|
-
|
|
4582
|
+
append(field, list, itemFields, templates);
|
|
4583
|
+
};
|
|
4584
|
+
const hasInlineAddAction = [
|
|
4585
|
+
"estate-projects-archive",
|
|
4586
|
+
"estate-project-catalog",
|
|
4587
|
+
"estate-project-explorer"
|
|
4588
|
+
].includes(config.type);
|
|
4589
|
+
const handleImageRequest = (field) => {
|
|
4590
|
+
const imageField3 = config.fields.find((itemField) => itemField.type === "image");
|
|
4591
|
+
const itemIndex = imageField3 ? items.findIndex((_, index) => indexedKey(config.prefix, index, imageField3.key) === field) : -1;
|
|
4592
|
+
if (imageField3 && itemIndex >= 0) {
|
|
4593
|
+
props.onImageRequest?.("items", { index: itemIndex, key: imageField3.key });
|
|
4594
|
+
return;
|
|
4595
|
+
}
|
|
4596
|
+
props.onImageRequest?.(field);
|
|
3889
4597
|
};
|
|
3890
4598
|
return /* @__PURE__ */ jsxs7(Fragment4, { children: [
|
|
3891
|
-
/* @__PURE__ */ jsx7(
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
4599
|
+
/* @__PURE__ */ jsx7(
|
|
4600
|
+
BaseRenderer,
|
|
4601
|
+
{
|
|
4602
|
+
...props,
|
|
4603
|
+
content,
|
|
4604
|
+
onImageRequest: handleImageRequest,
|
|
4605
|
+
onAddListItem: props.editable && hasInlineAddAction ? () => append("items", items, config.fields, itemTemplates) : void 0
|
|
4606
|
+
}
|
|
4607
|
+
),
|
|
4608
|
+
props.editable && !hasInlineAddAction && /* @__PURE__ */ jsx7(
|
|
4609
|
+
Box7,
|
|
4610
|
+
{
|
|
4611
|
+
sx: {
|
|
4612
|
+
px: { xs: 2, md: 4 },
|
|
4613
|
+
py: 2,
|
|
4614
|
+
borderTop: "1px solid rgba(32, 40, 32, 0.12)",
|
|
4615
|
+
bgcolor: "#FAF8F3"
|
|
4616
|
+
},
|
|
4617
|
+
children: /* @__PURE__ */ jsxs7(Stack5, { direction: "row", spacing: 1, justifyContent: "flex-end", flexWrap: "wrap", useFlexGap: true, children: [
|
|
4618
|
+
/* @__PURE__ */ jsx7(
|
|
4619
|
+
Button7,
|
|
4620
|
+
{
|
|
4621
|
+
size: "small",
|
|
4622
|
+
variant: "contained",
|
|
4623
|
+
onClick: handleClick("items", items, config.fields, itemTemplates),
|
|
4624
|
+
sx: {
|
|
4625
|
+
borderRadius: 0,
|
|
4626
|
+
bgcolor: "#172019",
|
|
4627
|
+
color: "#F8F5EF",
|
|
4628
|
+
boxShadow: "none",
|
|
4629
|
+
"&:hover": { bgcolor: "#28372C", boxShadow: "none" }
|
|
4630
|
+
},
|
|
4631
|
+
children: "+ Th\xEAm m\u1EE5c"
|
|
4632
|
+
}
|
|
4633
|
+
),
|
|
4634
|
+
config.type === "estate-project-detail" && /* @__PURE__ */ jsx7(
|
|
4635
|
+
Button7,
|
|
4636
|
+
{
|
|
4637
|
+
size: "small",
|
|
4638
|
+
variant: "outlined",
|
|
4639
|
+
onClick: handleClick(
|
|
4640
|
+
"information",
|
|
4641
|
+
information,
|
|
4642
|
+
informationFields,
|
|
4643
|
+
informationTemplates
|
|
4644
|
+
),
|
|
4645
|
+
sx: { borderRadius: 0 },
|
|
4646
|
+
children: "+ Th\xEAm th\xF4ng tin"
|
|
4647
|
+
}
|
|
4648
|
+
)
|
|
4649
|
+
] })
|
|
4650
|
+
}
|
|
4651
|
+
)
|
|
3896
4652
|
] });
|
|
3897
4653
|
}
|
|
3898
4654
|
function createBlock(config) {
|
|
@@ -4271,13 +5027,17 @@ var minimalUiComponents = [
|
|
|
4271
5027
|
];
|
|
4272
5028
|
var wikexComponents = [downloadSectionBlock];
|
|
4273
5029
|
var estateComponents = [...estateBlocks, ...estateProjectPageBlocks];
|
|
4274
|
-
var
|
|
5030
|
+
var dynamicListBlockByType = new Map(
|
|
5031
|
+
dynamicListBlocks.map((block) => [block.definition.type, block])
|
|
5032
|
+
);
|
|
5033
|
+
var sourceCmsBlocks = [
|
|
4275
5034
|
...wikexComponents,
|
|
4276
|
-
...
|
|
4277
|
-
|
|
4278
|
-
),
|
|
4279
|
-
...dynamicListBlocks
|
|
5035
|
+
...estateComponents,
|
|
5036
|
+
...minimalUiComponents
|
|
4280
5037
|
];
|
|
5038
|
+
var wikexCmsBlocks = sourceCmsBlocks.map(
|
|
5039
|
+
(block) => dynamicListBlockByType.get(block.definition.type) ?? block
|
|
5040
|
+
);
|
|
4281
5041
|
export {
|
|
4282
5042
|
estateBlocks,
|
|
4283
5043
|
estateComponents,
|