// Into the Wild: shared content (editions, testimonials, next edition, form config)

// Web app URL of the Google Apps Script that stores the "get notified" form
// in a Google Sheet. See google-apps-script/README.md. Leave empty to show
// an email fallback instead of the form.
const NOTIFY_ENDPOINT = "https://script.google.com/macros/s/AKfycbygshuKmGtps8zOf40ScVH1y5ySF8X8jNzYp-eIfDaf5mXy4FBJxyF0reqxj-uQLR1C/exec";

const NEXT_EDITION = {
  n: "05",
  roman: "V",
  name: "Into the Wild V",
  when: "June 2027",
  place: "Fragas do Eume Natural Park",
  region: "Galicia",
  format: "Survival challenge"
};

const EDITIONS = [
{
  n: "01",
  roman: "I",
  year: "2023",
  name: "Into the Wild I",
  sub: "The pioneers",
  dates: "8 · 15 July 2023",
  place: "Camino de Santiago",
  card: {
    meta: ["4 days · 115 km", "16 adventurers · 4 teams"],
    body: "Our first edition. A classic introduction on the last stretch of the French Way. We learned that waymarks are a gift and that priests can be your best ally to sleep under a roof.",
    tags: ["Yellow arrows", "French Way", "First cohort"]
  },
  lead: <>July 2023. Sixteen strangers, four teams and one rule: walk the last stretch of the Camino to Santiago with <em>almost nothing.</em></>,
  story: [
  "Into the Wild started as a personal development training course in Santiago de Compostela, from 8 to 15 July 2023. It was not a traditional Erasmus+ course: the classroom was the Camino.",
  "After a first day to meet the group, form the teams and get ready, each team of four walked the last stretch of the French Way to Santiago. No phones, minimal luggage and almost no budget. Food and a place to sleep had to be found on the way.",
  "The last day was for reflection, with exercises to make sense of what had happened on the road. We learned that waymarks are a gift and that priests can be your best ally to sleep under a roof."],

  stats: [
  { val: "16", unit: "people", label: "First cohort" },
  { val: "4", unit: "teams", label: "Four people each" },
  { val: "115", unit: "km", label: "Last stretch of the French Way" },
  { val: "4", unit: "days", label: "On the Camino" }],

  how: [
  { k: "Day 1", v: "Meet the group, form the teams, prepare body and mind." },
  { k: "Days 2 to 5", v: "On the Camino with no phones, minimal luggage and almost no budget." },
  { k: "Day 6", v: "Reflection, Youthpass and goodbyes in Santiago." }],

  colors: { a: '#E8B84C', b: '#C44A1B', c: '#2D4A2B' }
},
{
  n: "02",
  roman: "II",
  year: "2024",
  name: "Into the Wild II",
  sub: "Five teams, five Caminos",
  dates: "2024",
  place: "Five routes to Santiago",
  card: {
    meta: ["4 days · 5 routes", "20 adventurers · 5 teams"],
    body: "Twenty strangers from across Europe, split into five teams, each one on a different Camino to Santiago. No phones, very little money and a small backpack. We learned that blisters build faster friendships than any icebreaker.",
    tags: ["Five routes", "No phones", "Camino Primitivo"]
  },
  lead: <>Twenty people from across Europe who had never met. Five teams. <em>Five different Caminos</em> to Santiago.</>,
  story: [
  "For the second edition we multiplied the routes. Each team of four took a different Camino and had four days to reach Santiago.",
  "Same rules as the first time: no phones, very little money and a small backpack. Everything else (food, a roof, directions) had to come from the road and the people on it.",
  "One of the teams walked the Camino Primitivo. Their story is told in \"Into the wild 2 · Team Camino Primitivo positivo\", an episode of Paisanos, the Xeración podcast."],

  stats: [
  { val: "20", unit: "people", label: "From across Europe" },
  { val: "5", unit: "teams", label: "Four people each" },
  { val: "5", unit: "routes", label: "One Camino per team" },
  { val: "4", unit: "days", label: "To reach Santiago" }],

  how: [
  { k: "Teams", v: "Five teams of four people who had never met." },
  { k: "Routes", v: "A different Camino to Santiago for each team." },
  { k: "Rules", v: "Four days, no phones, very little money and a small backpack." }],

  colors: { a: '#7FA9B8', b: '#E8B84C', c: '#C44A1B' }
},
{
  n: "03",
  roman: "III",
  year: "2025",
  name: "Into the Wild III",
  sub: "The last Camino",
  dates: "2025",
  place: "Five routes to Santiago",
  card: {
    meta: ["4 days · 5 routes", "20 adventurers · 5 teams"],
    body: "Our third and last edition on the yellow arrows. Same rules, new faces: five teams of strangers, five Caminos, almost nothing in the backpack. It left us asking for something wilder.",
    tags: ["Yellow arrows", "Almost no budget", "The turn"]
  },
  lead: <>Third edition, same recipe: twenty strangers, five teams, five Caminos and <em>four days.</em></>,
  story: [
  "The format of edition II worked, so we kept it: five teams of four, each one on a different route to Santiago, with no phones, very little money and a small backpack.",
  "New faces, new routes, the same yellow arrows. And the same lesson: people are kinder than we expect, and we are more resilient than we think.",
  "It was our last edition on the Camino. It left us asking for something wilder, and that question took us to the forest of Fragas do Eume in 2026."],

  stats: [
  { val: "20", unit: "people", label: "From across Europe" },
  { val: "5", unit: "teams", label: "Four people each" },
  { val: "5", unit: "routes", label: "One Camino per team" },
  { val: "4", unit: "days", label: "To reach Santiago" }],

  how: [
  { k: "Teams", v: "Five teams of four people who had never met." },
  { k: "Routes", v: "A different Camino to Santiago for each team." },
  { k: "Rules", v: "Four days, no phones, very little money and a small backpack." }],

  colors: { a: '#1E3320', b: '#EFE7D6', c: '#7FA9B8' }
},
{
  n: "04",
  roman: "IV",
  year: "2026",
  name: "Into the Wild IV",
  sub: "One forest, six days",
  dates: "17 · 24 July 2026",
  place: "Fragas do Eume, Galicia",
  card: {
    meta: ["6 days · ~45 km", "20 adventurers · 5 countries"],
    body: "The turn. No waymarks this time: teambuilding, experiential adventure and reflection in one of the last Atlantic rainforests in Europe.",
    tags: ["Fragas do Eume", "Bivouac", "Three phases"]
  },
  lead: <>July 2026. We traded the waymarked paths for the deep <em>Atlantic forest</em> of Fragas do Eume.</>,
  story: [
  "Into the Wild IV was six days in Fragas do Eume, one of the last Atlantic rainforests in continental Europe, from 17 to 24 July 2026. Twenty young people from five countries: Spain, Italy, Portugal, France and Greece.",
  "Three phases: three days of teambuilding, two days of experiential adventure and one day of reflection. Nobody graduates. Everyone leaves changed."],

  stats: [
  { val: "6", unit: "days", label: "In the Fragas do Eume forest" },
  { val: "~45", unit: "km", label: "On foot" },
  { val: "20", unit: "people", label: "Ages 18 to 30" },
  { val: "5", unit: "countries", label: "One coalition" }],

  how: [
  { k: "Phase I", v: "Teambuilding (days 1 to 3)." },
  { k: "Phase II", v: "Experiential adventure (days 4 and 5)." },
  { k: "Phase III", v: "Reflection (day 6)." }],

  infopack: "https://canva.link/intothewildIV",
  hasProgramme: true,
  colors: { a: '#2D4A2B', b: '#E8B84C', c: '#1E3320' }
}];


const TESTIMONIALS = [
{
  q: "I learned that asking for help doesn't make you weak. I teamed up with 3 strangers from different cultures to achieve one same goal, and learned how cool it is to have the opportunity to do projects like this.",
  who: "Maria, 26", country: "Spain", edition: "02", flag: "#AA151B", rot: "-1.5deg"
},
{
  q: "I don't need a phone to live fully. Europe and its people are wonderful.",
  who: "Léo, 24", country: "France", edition: "02", flag: "#0055A4", rot: "1.2deg"
},
{
  q: "You don't need much to be happy. Disconnect, have less stimulation from outside: it's a very valuable way to reconnect to your true self.",
  who: "Clara, 27", country: "Italy", edition: "01", flag: "#009246", rot: "-0.6deg"
},
{
  q: "To be more compassionate and collaborative. To enjoy the journey more than the goal. How important the connection with people is to our mental well-being. How empathy can be magical.",
  who: "Afonso, 28", country: "Portugal", edition: "01", flag: "#006600", rot: "0.8deg"
},
{
  q: "I learnt I am much more resilient than I thought. I learnt to never give up. I learnt that most people are actually kind in their essence, even if they don't always act like it.",
  who: "Dimitra, 25", country: "Greece", edition: "03", flag: "#0D5EAF", rot: "-1.1deg"
},
{
  q: "Most of our fears are a product of our limiting beliefs. We can almost always prove them wrong. Life is more interesting and intense without a smart phone in your pocket.",
  who: "Marta, 29", country: "Spain", edition: "02", flag: "#AA151B", rot: "1.5deg"
}];


const editionUrl = (n) => `/editions/${n}/`;
const romanOf = (n) => (EDITIONS.find((e) => e.n === n) || {}).roman || n;

Object.assign(window, { NOTIFY_ENDPOINT, NEXT_EDITION, EDITIONS, TESTIMONIALS, editionUrl, romanOf });
