/* global React, Placeholder, PWOOD_IMAGES */ const { useState: useStateSC } = React; /* ============================================================ Models / Products ============================================================ */ function Models({ t, lang }) { return (
{t.models.eyebrow}

{t.models.title.split(",")[0]},
{t.models.title.split(",").slice(1).join(",")}

{t.models.lead}

{t.models.items.map((m, i) => { const imgKey = "model-" + m.name.toLowerCase(); const imgSrc = PWOOD_IMAGES[imgKey] || ("https://www.p-wood.com/i/w800-h600/uploads/projects/" + m.img + ".jpg"); return (
{m.name}
{m.tag} 0{i+1}

{m.name}

{m.price}
{m.sqm} {m.rooms} {m.floors}
); })}
); } /* ============================================================ Process timeline ============================================================ */ function Process({ t }) { return (
{t.process.eyebrow}

{t.process.title}

{t.process.lead}

{t.process.steps.map((s) => (
— {s.num}

{s.title}

{s.desc}

{s.time}
))}
); } /* ============================================================ Materials ============================================================ */ function Materials({ t, lang }) { return (
{t.materials.eyebrow}

{t.materials.title}

{t.materials.lead}

{lang
{t.materials.items.map((it) => (
{it.num}

{it.title}

{it.desc}

{it.icon}
))}
); } /* ============================================================ Testimonials ============================================================ */ function Testimonials({ t }) { return (
{t.testimonials.eyebrow}

{t.testimonials.title}

{t.testimonials.items.map((it, i) => (
"
{it.quote}
{it.name}
{it.loc}
))}
); } /* ============================================================ FAQ ============================================================ */ function FAQ({ t }) { const [open, setOpen] = useStateSC(0); return (
{t.faq.eyebrow}

{t.faq.title}

{t.faq.items.map((it, i) => (
{it.a}
))}
); } /* ============================================================ Blog teaser ============================================================ */ function BlogTeaser({ t, lang }) { return (
{t.blog.eyebrow}

{t.blog.title}

{t.blog.lead}

{t.blog.viewAll} →
{t.blog.items.map((p, i) => (
{p.title}
— {p.tag}

{p.title}

{p.date} · {p.meta}
))}
); } /* ============================================================ Lead form / Contact ============================================================ */ function LeadForm({ t }) { const [submitted, setSubmitted] = useStateSC(false); function onSubmit(e) { e.preventDefault(); setSubmitted(true); } return (
{t.lead.eyebrow}

{t.lead.title.split(" ").slice(0,-1).join(" ")}{" "} {t.lead.title.split(" ").slice(-1)}

{t.lead.lead}

📞 +30 6932 320666 📞 +30 23940 22244 ✉️ info@p-wood.com 📍 4χλμ Λαγκαδά–Θεσσαλονίκης
{submitted ? (

{t.lead.successTitle}

{t.lead.successBody}

) : (
{t.lead.legal}
)}
); } Object.assign(window, { Models, Process, Materials, Testimonials, FAQ, BlogTeaser, LeadForm });