/* global window */
/* ============================================================
   INSIGHTS — post data (6 founding posts, EN)
   Each post includes full metadata, FAQ payload, sources stub,
   CTA copy, and lang-pair french slug for hreflang.

   IMPORTANT: Keep IP_POSTS in sync with INS_POSTS in pages.jsx
   (and the FR INS_POSTS in pages-fr.jsx). Both arrays describe
   the same 6 launch posts with overlapping but slightly different
   shapes. Production refactor: unify into a single source of truth.
   ============================================================ */

const IP_AUTHORS = {
  hugo: {
    name: 'Hugo Dupont',
    nameFr: 'Hugo Dupont',
    role: 'Founder, Empra Labs',
    roleFr: 'Fondateur, Empra Labs',
    location: 'Hong Kong',
    bio: 'Hugo is founder of Empra Labs and works with Market Fit Group on brand and growth. He grew up around the family business in Hong Kong and writes the Insights desk on sourcing strategy and the realities of small-batch contemporary production.',
    bioFr: "Hugo est fondateur d'Empra Labs et travaille avec Market Fit Group sur la marque et la croissance. Il a grandi autour de l'entreprise familiale à Hong Kong et anime le pôle Insights sur la stratégie de sourcing et les réalités de la production contemporaine en petites séries.",
    avatar: '',
    initials: 'HD',
    href: '/about',
  },
  team: {
    name: 'Market Fit Editorial',
    nameFr: 'Rédaction Market Fit',
    role: 'The sourcing desk',
    roleFr: 'Le pôle sourcing',
    location: 'Hong Kong · Shanghai · Ho Chi Minh',
    bio: 'Pieces co-written by the merchandisers, technicians and country managers across the network. Practical, opinionated, and grounded in fifty-two years of running fashion supply chains.',
    bioFr: "Articles co-rédigés par les merchandisers, techniciens et country managers du réseau. Pratique, tranché, et ancré dans cinquante-deux ans de pilotage de chaînes d'approvisionnement mode.",
    avatar: '',
    initials: 'MF',
    href: '/about',
  },
};

const IP_POSTS = [
  {
    slug: 'oem-vs-odm-fashion-manufacturing',
    file: '/insights/oem-vs-odm-fashion-manufacturing',
    frenchFile: '/fr/insights/oem-vs-odm-fabrication-mode',
    frenchSlug: 'oem-vs-odm-fabrication-mode',
    title: "OEM vs ODM in fashion manufacturing: what's the difference?",
    metaDescription: "OEM and ODM are the main fashion manufacturing models. OEM means you provide the design. ODM means the factory contributes development. Here's how to choose.",
    category: 'Sourcing strategy',
    authorType: 'Organization',
    orgAuthorName: 'Market Fit',
    author: 'team',
    publishedDate: '2026-04-25',
    modifiedDate: '2026-04-25',
    readingTime: '10 minute read',
    wordCount: 2300,
    heroImage: '/assets/insights/oem-vs-odm-fashion-manufacturing/hero.jpg',
    heroImageAlt: "Designer's workspace with fabric swatches, tech pack, and pattern tools laid out on a light wood table",
    excerpt: "OEM and ODM are the main fashion manufacturing models. OEM means you provide the design. ODM means the factory contributes development. Here's how to choose.",
    ctaHeadline: 'Considering ODM or OEM for your next collection?',
    ctaSubcopy: "We work with contemporary brands across both models. Tell us what you're building.",
    ctaButton: 'Start a conversation',
    ctaLink: '/contact',
    ctaLinkFr: '/fr/contact',
    ctaHeadlineFr: "Vous envisagez l'ODM ou l'OEM pour votre prochaine collection ?",
    ctaSubcopyFr: 'Nous travaillons avec des marques contemporaines sur les deux modèles. Dites-nous ce que vous construisez et nous vous suggérerons un fit.',
    ctaButtonFr: 'Démarrer une conversation',
  },
  {
    slug: 'fashion-moq-minimum-order-quantity-guide',
    file: '/insights/fashion-moq-minimum-order-quantity-guide',
    frenchFile: '/fr/insights/guide-quantite-minimum-commande-mode',
    frenchSlug: 'guide-quantite-minimum-commande-mode',
    title: 'Fashion MOQ: a guide to minimum order quantity in 2026',
    metaDescription: 'Fashion MOQs typically run 1,000 to 2,500 pieces per style. Contemporary brands need 500 or lower. This guide covers MOQ benchmarks and how to negotiate.',
    category: 'Operational',
    authorType: 'Organization',
    orgAuthorName: 'Market Fit',
    author: 'team',
    publishedDate: '2026-04-25',
    modifiedDate: '2026-04-25',
    readingTime: '10 minute read',
    wordCount: 2100,
    heroImage: '/assets/insights/fashion-moq-minimum-order-quantity-guide/hero.jpg',
    heroImageAlt: 'Small-batch production line with industrial sewing machines and bolts of light grey wool fabric stacked beside them',
    excerpt: 'Fashion MOQs typically run 1,000 to 2,500 pieces per style. Contemporary brands need 500 or lower. This guide covers MOQ benchmarks and how to negotiate.',
    ctaHeadline: 'Looking for low MOQ clothing manufacturing?',
    ctaSubcopy: 'We work with contemporary brands at minimums from 500 pieces per style.',
    ctaButton: 'Talk to our team',
    ctaLink: '/contact',
    ctaLinkFr: '/fr/contact',
    ctaHeadlineFr: 'Vous cherchez le bon MOQ pour votre collection ?',
    ctaSubcopyFr: 'Dites-nous votre catégorie, vos volumes cibles et où vous en êtes dans le développement. Nous reviendrons avec une proposition réaliste.',
    ctaButtonFr: 'Démarrer une conversation',
  },
  {
    slug: 'china-plus-one-apparel-sourcing-2026',
    file: '/insights/china-plus-one-apparel-sourcing-2026',
    frenchFile: '/fr/insights/strategie-china-plus-one-2026',
    frenchSlug: 'strategie-china-plus-one-2026',
    title: 'China plus one in 2026: diversifying apparel sourcing',
    metaDescription: "China plus one is a fashion sourcing strategy that adds production capacity outside China. Here's what changed in 2026 with new tariffs and where to source.",
    category: 'Country guides',
    authorType: 'Organization',
    orgAuthorName: 'Market Fit',
    author: 'hugo',
    publishedDate: '2026-04-25',
    modifiedDate: '2026-04-25',
    readingTime: '12 minute read',
    wordCount: 2500,
    heroImage: '/assets/insights/china-plus-one-apparel-sourcing-2026/hero.jpg',
    heroImageAlt: 'Modern Asian garment factory exterior at golden hour with low-rise white industrial buildings and tropical green vegetation',
    excerpt: "China plus one is a fashion sourcing strategy that adds production capacity outside China. Here's what changed in 2026 with new tariffs and where to source.",
    ctaHeadline: 'Diversifying your apparel sourcing in 2026?',
    ctaSubcopy: "We operate across 7 sourcing countries with single-point accountability. Tell us what you're planning.",
    ctaButton: 'Talk to us',
    ctaLink: '/contact',
    ctaLinkFr: '/fr/contact',
    ctaHeadlineFr: 'Vous planifiez un sourcing multi-pays ?',
    ctaSubcopyFr: 'Huit pays, un bureau, une équipe responsable. Nous pouvons aider à façonner le mix pays adapté à votre gamme.',
    ctaButtonFr: 'Discutons de votre réseau',
  },
  {
    slug: 'smeta-audit-report-guide',
    file: '/insights/smeta-audit-report-guide',
    frenchFile: '/fr/insights/guide-rapport-audit-smeta',
    frenchSlug: 'guide-rapport-audit-smeta',
    title: 'How to read a SMETA audit report (and what to look for)',
    metaDescription: "SMETA is the world's most widely used social compliance audit, with 280,000+ conducted globally. This guide explains the four pillars and what to look for.",
    category: 'Compliance & sustainability',
    authorType: 'Organization',
    orgAuthorName: 'Market Fit',
    author: 'team',
    publishedDate: '2026-04-25',
    modifiedDate: '2026-04-25',
    readingTime: '11 minute read',
    wordCount: 2500,
    heroImage: '/assets/insights/smeta-audit-report-guide/hero.jpg',
    heroImageAlt: 'Factory aisle with clearly marked emergency exits, fire extinguisher, and posted safety notices visible along industrial sewing stations',
    excerpt: "SMETA is the world's most widely used social compliance audit, with 280,000+ conducted globally. This guide explains the four pillars and what to look for.",
    ctaHeadline: "Need to verify your suppliers' compliance?",
    ctaSubcopy: 'Audit reports are available to verified buyers on request.',
    ctaButton: 'Request audit access',
    ctaLink: '/contact',
    ctaLinkFr: '/fr/contact',
    ctaHeadlineFr: "Besoin d'un partenaire avec des usines auditées sur tout le réseau ?",
    ctaSubcopyFr: 'Audits SMETA quatre piliers chez nos partenaires de fabrication. Rapports disponibles sur demande une fois que nous travaillons ensemble.',
    ctaButtonFr: 'Voir notre posture conformité',
  },
  {
    slug: 'grs-certified-clothing-explained',
    file: '/insights/grs-certified-clothing-explained',
    frenchFile: '/fr/insights/vetements-certifies-grs-explication',
    frenchSlug: 'vetements-certifies-grs-explication',
    title: 'GRS certified clothing: what brands need to know',
    metaDescription: 'GRS (Global Recycled Standard) verifies recycled content and chain of custody in fashion. Products need 20% for B2B claims, 50% for consumer labelling.',
    category: 'Compliance & sustainability',
    authorType: 'Organization',
    orgAuthorName: 'Market Fit',
    author: 'team',
    publishedDate: '2026-04-25',
    modifiedDate: '2026-04-25',
    readingTime: '11 minute read',
    wordCount: 2200,
    heroImage: '/assets/insights/grs-certified-clothing-explained/hero.jpg',
    heroImageAlt: 'Macro detail of recycled polyester yarn in heathered soft grey-green showing fine texture and irregular weave',
    excerpt: 'GRS (Global Recycled Standard) verifies recycled content and chain of custody in fashion. Products need 20% for B2B claims, 50% for consumer labelling.',
    ctaHeadline: 'Building a GRS-certified collection?',
    ctaSubcopy: "We hold GRS 4.0 chain of custody across our network. Tell us what you're sourcing.",
    ctaButton: 'Start a conversation',
    ctaLink: '/contact',
    ctaLinkFr: '/fr/contact',
    ctaHeadlineFr: 'Vous construisez une gamme à contenu recyclé ?',
    ctaSubcopyFr: "GRS 4.0 sur tout l'entrepôt tissus et les filatures partenaires. Nous pouvons façonner un programme autour de revendications crédibles.",
    ctaButtonFr: 'Parlons stratégie tissus',
  },
  {
    slug: 'contemporary-fashion-sourcing-2026-guide',
    file: '/insights/contemporary-fashion-sourcing-2026-guide',
    frenchFile: '/fr/insights/guide-sourcing-mode-contemporaine-2026',
    frenchSlug: 'guide-sourcing-mode-contemporaine-2026',
    title: 'Contemporary fashion sourcing in 2026: the complete guide',
    metaDescription: 'Contemporary fashion sourcing in 2026 demands five integrated capabilities, certified compliance, and multi-country flexibility. The complete guide.',
    category: 'Sourcing strategy',
    authorType: 'Organization',
    orgAuthorName: 'Market Fit',
    author: 'hugo',
    publishedDate: '2026-04-25',
    modifiedDate: '2026-04-25',
    readingTime: '14 minute read',
    wordCount: 3150,
    heroImage: '/assets/insights/contemporary-fashion-sourcing-2026-guide/hero.jpg',
    heroImageAlt: 'Contemporary fashion sample room with fabric swatches, technical drawings, and a cream wool garment on a dress form lit by soft afternoon light',
    excerpt: 'Contemporary fashion sourcing in 2026 demands five integrated capabilities, certified compliance, and multi-country flexibility. The complete guide.',
    ctaHeadline: 'Working on a contemporary collection?',
    ctaSubcopy: "Tell us what you're building. We'll respond within 24 hours with a conversation about fit, capacity, and timeline.",
    ctaButton: 'Start a conversation',
    ctaLink: '/contact',
    ctaLinkFr: '/fr/contact',
    ctaHeadlineFr: 'Vous sourcez pour une collection contemporaine ?',
    ctaSubcopyFr: 'Cinq capacités, sept pays, un bureau. Nous travaillons avec des marques contemporaines en petites séries.',
    ctaButtonFr: 'Voir comment nous travaillons',
  },
];

// Default placeholder FAQ — used until real content is written.
// Same 5 Qs across posts so the visible accordion always matches the JSON-LD.
const IP_PLACEHOLDER_FAQ = [
  {
    q: 'When will the full article be published?',
    a: 'We publish to the Insights desk monthly. The full version of this piece is in editing — subscribe to the newsletter below and you will get it the morning it goes live.',
  },
  {
    q: 'Can I read a draft early?',
    a: 'For brands we already work with, yes — drop us a note and the editorial desk will share the working draft. For everyone else, the published version is the version.',
  },
  {
    q: 'Where does Market Fit publish from?',
    a: 'The Insights desk is run from our Hong Kong office, with contributions from country managers and senior merchandisers across the network — Hong Kong, China, Vietnam, Bangladesh, Pakistan, India, and Turkey.',
  },
  {
    q: 'Who writes for the Insights desk?',
    a: 'People who actually run the supply chain — founders, country managers, merchandisers, and technicians. Pieces are co-edited so the writing is plain and useful, not promotional.',
  },
  {
    q: 'How do I suggest a topic?',
    a: 'Email the editorial desk via the contact page. We genuinely read every suggestion and the most-asked questions become the next month\'s posts.',
  },
];

// French translations of IP_PLACEHOLDER_FAQ. Editorial register: vous form,
// direct and confident, no semicolons, no em-dashes. Used by FR post pages
// for both the rendered FAQ accordion and the FAQPage JSON-LD schema.
const IP_PLACEHOLDER_FAQ_FR = [
  {
    q: 'Quand l\'article complet sera-t-il publié ?',
    a: 'Nous publions sur le pôle Insights chaque mois. La version complète de cet article est en relecture. Inscrivez-vous à la newsletter en bas de page et vous la recevrez le matin de sa publication.',
  },
  {
    q: 'Puis-je lire un brouillon en avance ?',
    a: 'Pour les marques avec lesquelles nous travaillons déjà, oui. Envoyez-nous un mot et la rédaction partagera la version de travail. Pour tout le monde, la version publiée est la version.',
  },
  {
    q: 'D\'où Market Fit publie-t-il ?',
    a: 'Le pôle Insights est animé depuis notre bureau de Hong Kong, avec des contributions des country managers et des merchandisers seniors du réseau : Hong Kong, Chine, Vietnam, Bangladesh, Pakistan, Inde et Turquie.',
  },
  {
    q: 'Qui écrit pour le pôle Insights ?',
    a: 'Les personnes qui font tourner la chaîne d\'approvisionnement : fondateurs, country managers, merchandisers et techniciens. Les articles sont co-édités pour rester clairs et utiles, jamais promotionnels.',
  },
  {
    q: 'Comment suggérer un sujet ?',
    a: 'Écrivez à la rédaction via la page contact. Nous lisons chaque suggestion et les questions les plus posées deviennent les articles du mois suivant.',
  },
];

Object.assign(window, { IP_AUTHORS, IP_POSTS, IP_PLACEHOLDER_FAQ, IP_PLACEHOLDER_FAQ_FR });
