// Demo data + Bible book metadata for the church web app.

// 66 books with testament + chapter counts (for the chapter/verse pickers)
const BIBLE_BOOKS = [
  ['Genesis',50,'OT'],['Exodus',40,'OT'],['Leviticus',27,'OT'],['Numbers',36,'OT'],['Deuteronomy',34,'OT'],
  ['Joshua',24,'OT'],['Judges',21,'OT'],['Ruth',4,'OT'],['1 Samuel',31,'OT'],['2 Samuel',24,'OT'],
  ['1 Kings',22,'OT'],['2 Kings',25,'OT'],['1 Chronicles',29,'OT'],['2 Chronicles',36,'OT'],['Ezra',10,'OT'],
  ['Nehemiah',13,'OT'],['Esther',10,'OT'],['Job',42,'OT'],['Psalms',150,'OT'],['Proverbs',31,'OT'],
  ['Ecclesiastes',12,'OT'],['Song of Solomon',8,'OT'],['Isaiah',66,'OT'],['Jeremiah',52,'OT'],['Lamentations',5,'OT'],
  ['Ezekiel',48,'OT'],['Daniel',12,'OT'],['Hosea',14,'OT'],['Joel',3,'OT'],['Amos',9,'OT'],
  ['Obadiah',1,'OT'],['Jonah',4,'OT'],['Micah',7,'OT'],['Nahum',3,'OT'],['Habakkuk',3,'OT'],
  ['Zephaniah',3,'OT'],['Haggai',2,'OT'],['Zechariah',14,'OT'],['Malachi',4,'OT'],
  ['Matthew',28,'NT'],['Mark',16,'NT'],['Luke',24,'NT'],['John',21,'NT'],['Acts',28,'NT'],
  ['Romans',16,'NT'],['1 Corinthians',16,'NT'],['2 Corinthians',13,'NT'],['Galatians',6,'NT'],['Ephesians',6,'NT'],
  ['Philippians',4,'NT'],['Colossians',4,'NT'],['1 Thessalonians',5,'NT'],['2 Thessalonians',3,'NT'],['1 Timothy',6,'NT'],
  ['2 Timothy',4,'NT'],['Titus',3,'NT'],['Philemon',1,'NT'],['Hebrews',13,'NT'],['James',5,'NT'],
  ['1 Peter',5,'NT'],['2 Peter',3,'NT'],['1 John',5,'NT'],['2 John',1,'NT'],['3 John',1,'NT'],
  ['Jude',1,'NT'],['Revelation',22,'NT']
].map(b => ({ name:b[0], chapters:b[1], testament:b[2] }));

// Offline fallback so the Bible tab is never blank if the API is unreachable.
const GENESIS_1 = [
  "In the beginning God created the heaven and the earth.",
  "And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.",
  "And God said, Let there be light: and there was light.",
  "And God saw the light, that it was good: and God divided the light from the darkness.",
  "And God called the light Day, and the darkness he called Night. And the evening and the morning were the first day.",
  "And God said, Let there be a firmament in the midst of the waters, and let it divide the waters from the waters.",
  "And God made the firmament, and divided the waters which were under the firmament from the waters which were above the firmament: and it was so.",
  "And God called the firmament Heaven. And the evening and the morning were the second day.",
  "And God said, Let the waters under the heaven be gathered together unto one place, and let the dry land appear: and it was so.",
  "And God called the dry land Earth; and the gathering together of the waters called he Seas: and God saw that it was good.",
  "And God said, Let the earth bring forth grass, the herb yielding seed, and the fruit tree yielding fruit after his kind, whose seed is in itself, upon the earth: and it was so."
].map((t,i) => ({ verse:i+1, text:t }));

const DEMO_HYMNS = [
  { title:'Amazing Grace',                       url:'https://www.youtube.com/watch?v=CDdvReNKKuk' },
  { title:'How Great Thou Art',                  url:'https://www.youtube.com/watch?v=hQT5cmm65Ig' },
  { title:'It Is Well with My Soul',             url:'https://www.youtube.com/watch?v=ehSwpc3iIIs' },
  { title:'Blessed Assurance',                   url:'https://www.youtube.com/watch?v=Vc0fHFmeidg' },
  { title:'Great Is Thy Faithfulness',           url:'https://www.youtube.com/watch?v=2dexWAILwjc' },
  { title:'To God Be the Glory',                 url:'' },
  { title:'Just As I Am',                        url:'' },
  { title:'I Need Thee Every Hour',              url:'' },
  { title:'Victory in Jesus',                    url:'' },
  { title:'When We All Get to Heaven',           url:'' },
  { title:'Because He Lives',                    url:'' },
  { title:'Trust and Obey',                      url:'' },
  { title:'The Old Rugged Cross',                url:'' },
  { title:'What a Friend We Have in Jesus',      url:'' },
  { title:'Rock of Ages',                        url:'' },
  { title:'Come Thou Fount of Every Blessing',   url:'' },
  { title:'Be Thou My Vision',                   url:'' },
  { title:'Holy, Holy, Holy',                    url:'' },
  { title:'Guide Me, O Thou Great Jehovah',      url:'' },
  { title:'O Worship the King',                  url:'' },
  { title:'Nothing but the Blood',               url:'' },
  { title:'In the Garden',                       url:'' },
  { title:'Stand Up, Stand Up for Jesus',        url:'' }
];

const DEMO_PRAYER = [
  [
    { title:'THANKSGIVING', ordered:true, items:[
      "God\u2019s faithfulness, provision & preaching",
      "Provision, protection and good health",
      "Men\u2019s fellowship last Wednesday",
      "Safe travel of Gelvn",
      "Evangelistic Sunday (3 visitors and 1 profession of faith)",
      "House of Datul Family",
      "Blessing of Japs and good health for the family",
      "Jeyelle\u2019s visa \u2013 Myrine\u2019s daughter",
      "Arlene \u2013 sub as a teacher"
    ]},
    { title:'MISSIONARIES AND PASTORS', ordered:true, lead:"We will be adding 2 or 3 more missionaries this year. Pray that each of us will be involved in mission support this year.", items:[
      "Pastor Gembell","Pastor Jun \u2013 Buying a property","Pastor Monching","Pastor Leville",
      "Pastor Nars","Pastor Wall","Pastor Albert","Pastor Mario A.","Pastor Gerry","Pastor Johnny",
      "Pastor Rolly","Robert \u2013 Guinea Bissau","Bro Angelo \u2013 CBBMI Switzerland \u2013 looking for a house"
    ]},
    { title:'MEMBERS AND REGULAR ATTENDEES', ordered:true, items:[
      "Pastor Arnoco and family","Lyndon & Mabz","Magracia family","Leana \u2013 Sunday off","Rachelle",
      "Dane and Erna + Sew","Deng and Kate","Donna","Genido Family","Analy and Ate Elody",
      "Datul Family / Matt","Irish","Myrine","Clinton","Grace","Nico",
      "Moriel Family \u2013 Rey\u2019s off every Sunday","Yap Family","Anna \u2013 Orient","Salapare Family"
    ]},
    { title:'VISITORS', ordered:true, items:[
      "Rowena and Erlyn \u2013 Leana","Richard \u2013 Robert","Albert \u2013 Deng","Rachel \u2013 Jean, Mira",
      "Ederlyn, Rose \u2013 Alona","Alona \u2013 Anna 2x","Joy, Mary and their spouses \u2013 Arlene to follow up",
      "Tan Family","Christopher \u2013 Arlene","Virginia \u2013 Arlene","Alithea \u2013 Alona","Rose",
      "Liezel \u2013 Analy\u2019s sister","Denton","Sheila \u2013 Jasmen","Mary Ann \u2013 Myrine"
    ]}
  ]
];

const DEMO_SLIDES = [
  { kind:'title', kicker:'WELCOME TO', title:'Shalom Bible\nBaptist Mission', sub:'Sunday Worship Service' },
  { kind:'verse', ref:'Psalm 100:4', body:'Enter into his gates with thanksgiving, and into his courts with praise: be thankful unto him, and bless his name.' },
  { kind:'section', title:'The Salvation', sub:'Today\u2019s Message \u2014 Romans 10:9-13' },
  { kind:'points', title:'Three Truths', items:['God loves you and has a plan','Sin separates us from God','Christ paid the price in full'] },
  { kind:'verse', ref:'John 3:16', body:'For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.' },
  { kind:'title', kicker:'', title:'Let us pray', sub:'\u2014' }
];

window.BIBLE_BOOKS = BIBLE_BOOKS;
window.GENESIS_1 = GENESIS_1;
window.DEMO_HYMNS = DEMO_HYMNS;
window.DEMO_PRAYER = DEMO_PRAYER;
window.DEMO_SLIDES = DEMO_SLIDES;
