1import{r as y,j as e}from"./react-vendor-DJyVv-9k.js";import{B as l,R as o,P as w,C as v,j as b}from"./index-BIqNRxX9.js";import{o as j,a6 as N,O as M,h as C,w as x,m as U,G as P,D as S,H as k}from"./icons-BX4ctka3.js";import{P as D}from"./PodcastAudioPlayer-Biscoxv2.js";import{d as F}from"./supabaseStorage-DJ274zy1.js";import{b as T}from"./router-CKKuDg_f.js";import"./capacitor-DHBo0MhY.js";import"./radix-BgH8Shby.js";import"./supabase-D3lgsHDr.js";import"./charts-CPklpUXh.js";import"./react-query-Dh77tccY.js";import"./downloadFile-pBYh8drO.js";const I=({title:n,text:d,url:c,className:m="",shareText:h="Share"})=>{const[a,p]=y.useState(!1),g=async()=>{const u={title:n,text:d,url:c};try{if(navigator.share&&navigator.canShare&&navigator.canShare(u)){await navigator.share(u);return}}catch{}try{await navigator.clipboard.writeText(c),p(!0),o({title:"Link copied!",description:"The devotion link has been copied to your clipboard."}),setTimeout(()=>p(!1),2e3)}catch{o({title:"Share failed",description:"Unable to share this devotion. Please try again.",variant:"destructive"})}};return e.jsxs(l,{variant:"ghost",size:"sm",onClick:g,className:`transition-all duration-200 ${m}`,"aria-label":`Share ${n}`,children:[a?e.jsx(j,{className:"h-4 w-4 mr-2 text-green-500","aria-hidden":"true"}):e.jsx(N,{className:"h-4 w-4 mr-2","aria-hidden":"true"}),a?"Copied!":h]})},G=[{id:1,title:"The Morning Prayer",host:"Pastor Johnson",category:"Daily Inspiration",podcastImage:"https://images.unsplash.com/photo-1493397212122-2b85dda8106b?w=400&h=300&fit=crop",showImage:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=100&h=100&fit=crop&crop=face",description:"Start your day with spiritual guidance and prayer with Pastor Johnson every weekday morning.",episodes:[{id:1,title:"Walking in Faith During Uncertainty",description:"Pastor Johnson shares insights on maintaining faith during challenging times and trusting God's plan even when we can't see the way forward.",date:"June 2, 2025",duration:"28:45",audioUrl:"/audio/episode-1.mp3"},{id:2,title:"The Power of Morning Prayer",description:"Discover how starting your day with intentional prayer can transform your perspective and strengthen your relationship with God.",date:"May 30, 2025",duration:"32:12",audioUrl:"/audio/episode-2.mp3"},{id:3,title:"Finding Joy in Small Moments",description:"Learn to recognize and appreciate God's blessings in the everyday moments of life, even during difficult seasons.",date:"May 28, 2025",duration:"25:33",audioUrl:"/audio/episode-3.mp3"},{id:4,title:"Strength Through Scripture",description:"Explore how daily Bible reading can provide strength and guidance for life's challenges.",date:"May 26, 2025",duration:"30:15",audioUrl:"/audio/episode-4.mp3"},{id:5,title:"Community and Fellowship",description:"Understanding the importance of Christian community in our spiritual journey.",date:"May 24, 2025",duration:"27:30",audioUrl:"/audio/episode-5.mp3"},{id:6,title:"Grace in Daily Life",description:"How to recognize and live in God's grace throughout your everyday activities.",date:"May 22, 2025",duration:"29:45",audioUrl:"/audio/episode-6.mp3"},{id:7,title:"Prayer and Meditation",description:"Deepening your prayer life through contemplative practices and meditation.",date:"May 20, 2025",duration:"26:20",audioUrl:"/audio/episode-7.mp3"}]},{id:2,title:"Faith and Family",host:"Sarah Williams",category:"Family Life",podcastImage:"https://images.unsplash.com/photo-1517022812141-23620dba5c23?w=400&h=300&fit=crop",showImage:"https://images.unsplash.com/photo-1494790108755-2616b612b1c5?w=100&h=100&fit=crop&crop=face",description:"Practical advice for raising children with Christian values and building strong family foundations.",episodes:[{id:8,title:"Teaching Children to Pray",description:"Simple and effective ways to introduce children to prayer and help them develop their own relationship with God.",date:"June 1, 2025",duration:"24:30",audioUrl:"/audio/family-1.mp3"},{id:9,title:"Family Devotion Time",description:"Creating meaningful family worship experiences that engage everyone from toddlers to teenager
1s.",date:"May 29, 2025",duration:"28:15",audioUrl:"/audio/family-2.mp3"},{id:10,title:"Navigating Teen Faith Questions",description:"How to handle tough questions about faith from teenagers with wisdom and understanding.",date:"May 27, 2025",duration:"31:20",audioUrl:"/audio/family-3.mp3"},{id:11,title:"Marriage and Ministry",description:"Balancing marriage relationships with ministry calling and community service.",date:"May 25, 2025",duration:"26:45",audioUrl:"/audio/family-4.mp3"},{id:12,title:"Building Christian Traditions",description:"Creating lasting family traditions that center around faith and Christian values.",date:"May 23, 2025",duration:"25:10",audioUrl:"/audio/family-5.mp3"},{id:13,title:"Forgiveness in the Family",description:"Teaching and practicing forgiveness within family relationships.",date:"May 21, 2025",duration:"27:35",audioUrl:"/audio/family-6.mp3"}]},{id:3,title:"Youth Alive",host:"Pastor Mike",category:"Youth Ministry",podcastImage:"https://images.unsplash.com/photo-1466442929976-97f336a657be?w=400&h=300&fit=crop",showImage:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=100&h=100&fit=crop&crop=face",description:"Dynamic discussions about faith, life, and purpose designed specifically for young adults and teenagers.",episodes:[{id:14,title:"Finding Your Purpose",description:"Discovering God's plan for your life as a young person in today's world.",date:"May 31, 2025",duration:"22:45",audioUrl:"/audio/youth-1.mp3"},{id:15,title:"Social Media and Faith",description:"How to be a positive Christian influence on social media platforms.",date:"May 28, 2025",duration:"26:30",audioUrl:"/audio/youth-2.mp3"},{id:16,title:"Dating with Purpose",description:"Biblical principles for healthy relationships and dating as a young Christian.",date:"May 26, 2025",duration:"29:15",audioUrl:"/audio/youth-3.mp3"},{id:17,title:"College and Faith",description:"Maintaining and growing your faith during college years.",date:"May 24, 2025",duration:"24:50",audioUrl:"/audio/youth-4.mp3"},{id:18,title:"Peer Pressure and Standing Strong",description:"How to stay true to your values when facing peer pressure.",date:"May 22, 2025",duration:"27:20",audioUrl:"/audio/youth-5.mp3"},{id:19,title:"Career and Calling",description:"Aligning your career choices with your Christian calling and values.",date:"May 20, 2025",duration:"28:40",audioUrl:"/audio/youth-6.mp3"}]},{id:4,title:"Worship and Music",host:"David Chen",category:"Music & Worship",podcastImage:"https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=400&h=300&fit=crop",showImage:"https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=100&h=100&fit=crop&crop=face",description:"Exploring the power of worship music and its role in spiritual life and church community.",episodes:[{id:20,title:"The Heart of Worship",description:"Understanding what true worship means beyond just singing songs.",date:"May 30, 2025",duration:"25:15",audioUrl:"/audio/worship-1.mp3"},{id:21,title:"Leading Others in Worship",description:"Practical tips for worship leaders and musicians in church ministry.",date:"May 27, 2025",duration:"30:45",audioUrl:"/audio/worship-2.mp3"},{id:22,title:"Scripture in Song",description:"How biblical lyrics in worship music can deepen our understanding of God's Word.",date:"May 25, 2025",duration:"26:30",audioUrl:"/audio/worship-3.mp3"},{id:23,title:"Personal Worship Time",description:"Creating meaningful worship experiences in your personal devotion time.",date:"May 23, 2025",duration:"23:50",audioUrl:"/audio/worship-4.mp3"},{id:24,title:"Music Ministry Calling",description:"Discovering and developing your gifts in music ministry.",date:"May 21, 2025",duration:"28:25",audioUrl:"/audio/worship-5.mp3"},{id:25,title:"Worship Through Seasons",description:"How worship can comfort and strengthen us through different life seasons.",date:"May 19, 2025",duration:"27:10",audioUrl:"/audio/worship-6.mp3"}]},{id:5,title:"The Morning Praise",host:"Eileen Toussaint",category:"Daily Inspiration",podcastImage:"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=400&h=300&fit=crop",showImage:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=100&h=100&fit=crop&crop=face",description:"Begin each morning with uplifting praise and worship that sets your heart on the right path for the day ahead.",episodes:[{id:26,title:"Praise in the Morning Light",description:"Discover the power of starting your day with intentional praise and worship to God.",date:"June 3, 2025",duration:"25:30",audioUrl:"/audio/morning-praise-1.mp3"},{id:27,title:"Songs of Thanksgiving",description:"Learn how gratitude and thanksgiving can transform your perspective and strengthen your faith.",date:"June 1, 2025",duration:"28:20",audioUrl:"/audio/morning-praise-2.mp3"},{id:28,title:"Worship in Spirit and Truth",description:"Understanding what it means to worship God authentically from the heart.",date:"May 30, 2025",duration:"26:45",audioUrl:"/audio/morning-praise-3.mp3"}]},{id:6,title:"A Family Challenge",host:"Pam Bellot Baron",category:"Family Life",podcastImage:"https://images.unsplash.com/photo-1511895426328-dc8714191300?w=400&h=300&fit=crop",showImage:"https://images.unsplash.com/photo-1489424731084-a5d8b219a5bb?w=100&h=100&fit=crop&crop=face",description:"Practical challenges and inspiration for families to grow together in faith and strengthen their bonds through Christian values.",episodes:[{id:29,title:"The 30-Day Family Prayer Challenge",description:"Take on this transformative challenge to establish consistent family prayer time.",date:"June 2, 2025",duration:"24:15",audioUrl:"https://hxkepuufqgihuqzrtukx.supabase.co/storage/v1/object/public/podcast-audio/family-challenge-1.mp3"},{id:30,title:"Building Character in Children",description:"Practical ways to instill strong Christian character in your children through daily interactions.",date:"May 31, 2025",duration:"29:30",audioUrl:"https://hxkepuufqgihuqzrtukx.supabase.co/storage/v1/object/public/podcast-audio/family-challenge-2.mp3"},{id:31,title:"Marriage Strengthening Challenge",description:"A week-by-week guide to deepening your marriage relationship through faith-based principles.",date:"May 29, 2025",duration:"32:10",audioUrl:"/audio/family-challenge-3.mp3"}]},{id:7,title:"Gospel Drive",host:"Pastor Zan",category:"Daily Inspiration",podcastImage:"https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=400&h=300&fit=crop",showImage:"https://images.unsplash.com/photo-1560250097-0b93528c311a?w=100&h=100&fit=crop&crop=face",description:"Drive through life with the power of the Gospel as Pastor Zan shares inspiring messages for your spiritual journey.",episodes:[{id:32,title:"Driven by Grace",description:"How God's grace empowers us to overcome life's challenges and live victoriously.",date:"June 3, 2025",duration:"27:45",audioUrl:"/audio/gospel-drive-1.mp3"},{id:33,title:"The Road to Redemption",description:"Understanding the journey of salvation and how it transforms our daily lives.",date:"June 1, 2025",duration:"30:20",audioUrl:"/audio/gospel-drive-2.mp3"},{id:34,title:"Fuel for the Journey",description:"Discovering what sustains us spiritually as we navigate life's highways and byways.",date:"May 30, 2025",duration:"26:35",audioUrl:"/audio/gospel-drive-3.mp3"}]},{id:8,title:"The Moment of Deliverance",host:"Reverend Al Maxime",category:"Ministry & Prayer",podcastImage:"https://images.unsplash.com/photo-1507692049790-de58290a4334?w=400&h=300&fit=crop",showImage:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=100&h=100&fit=crop&crop=face",description:"Experience powerful moments of spiritual breakthrough and deliverance through prayer and faith with Reverend Al Maxime.",episodes:[{id:35,title:"Breaking Chains of Bondage",description:"Understanding how God delivers us from spiritual and emotional bondage through His power.",date:"June 2, 2025",duration:"33:15",audioUrl:"/audio/deliverance-1.mp3"},{id:36,title:"Prayer for Breakthrough",description:"Learning to pray effectively for personal and family breakthrough in difficult situations.",date:"May 31, 2025",duration:"28:50",audioUrl:"/audio/deliverance-2.mp3"},{id:37,title:"Walking in Freedom",description:"How to maintain and enjoy the freedom that God has given us through His deliverance.",date:"May 29, 2025",duration:"31:25",audioUrl:"/audio/deliverance-3.mp3"}]}],O=()=>{const n=T(),[d,c]=y.useState([]),[m,h]=y.useState(null),a=G.find(i=>i.id===6);if(!a)return e.jsx("div",{children:"Podcast not found"});const p=i=>{h(i),o({title:"Now Playing",description:`"${i.title}" is now playing.`})},g=i=>{m?.id===i.id&&h(null),o({title:"Paused",description:`"${i.title}" has been paused.`})},u=async i=>{try{const t=i.audioUrl.split("/"),r=t[t.length-1];if(i.audioUrl.includes("supabase.co/storage"))await F(r);else{const s=document.createElement("a");s.href=i.audioUrl,s.download=`${i.title.replace(/[^a-z0-9]/gi,"_").toLowerCase()}.mp3`,document.body.appendChild(s),s.click(),document.body.removeChild(s)}o({title:"Download Started",description:`Downloading "${i.title}"`})}catch(t){console.error("Download error:",t),o({title:"Download Failed",description:"Unable to download episode",variant:"destructive"})}},f=i=>{const t=a.episodes.find(r=>r.id===i);t&&(d.includes(i)?(c(r=>r.filter(s=>s!==i)),o({title:"Removed from Saved",description:`"${t.title}" has been removed from your saved episodes.`})):(c(r=>[...r,i]),o({title:"Episode Saved",description:`"${t.title}" has been saved to your collection.`})))};
1return e.jsxs(w,{title:"A Family Challenge",subtitle:"Practical challenges and inspiration for families to grow together in faith and strengthen their bonds through Christian values.",backgroundImage:a.podcastImage,children:[e.jsx("section",{className:"py-8 bg-white",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs(l,{variant:"ghost",onClick:()=>n("/on-air/podcasts"),className:"text-radio-secondary hover:text-red-700 mb-8",children:[e.jsx(M,{className:"h-4 w-4 mr-2"}),"Back to All Podcasts"]})})}),e.jsx("section",{className:"py-12 bg-gradient-to-r from-radio-primary to-blue-900",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-8",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("img",{src:a.showImage,alt:`${a.host} - Host of ${a.title}`,className:"w-32 h-32 rounded-full border-4 border-white shadow-lg object-cover"})}),e.jsxs("div",{className:"text-center lg:text-left text-white",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:a.title}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-6 text-lg mb-4",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(C,{className:"h-5 w-5 mr-2"}),e.jsxs("span",{children:["Hosted by ",a.host]})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(x,{className:"h-5 w-5 mr-2"}),e.jsxs("span",{children:[a.episodes.length," Episodes"]})]})]}),e.jsx("p",{className:"text-xl text-blue-100 max-w-3xl",children:a.description})]})]})})}),e.jsx("section",{className:"py-16 bg-gray-50",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-800 mb-4",children:"Latest Episodes"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Transform your family life with these faith-based challenges and practical wisdom."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.episodes.map(i=>e.jsx(v,{className:"bg-white border border-gray-200 shadow-lg hover:shadow-xl transition-all duration-300 group",children:e.jsx(b,{className:"p-6",children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-xl font-bold text-gray-800 mb-2 group-hover:text-radio-secondary transition-colors",children:i.title}),e.jsxs("div",{className:"flex flex-wrap gap-4 text-sm text-gray-500 mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(U,{className:"h-4 w-4 mr-1"}),e.jsx("span",{children:i.date})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(P,{className:"h-4 w-4 mr-1"}),e.jsx("span",{children:i.duration})]})]})]}),e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-radio-secondary to-red-700 rounded-xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:e.jsx(x,{className:"h-6 w-6 text-white"})})})]}),e.jsx("p",{className:"text-gray-600 text-sm leading-relaxed mb-4",children:i.description}),e.jsx("div",{className:"mb-4",children:e.jsx(D,{episode:i,onPlay:p,onPause:g})}),e.jsxs("div",{className:"flex flex-wrap gap-2 pt-4 border-t border-gray-100",children:[e.jsxs(l,{variant:"outline",size:"sm",onClick:()=>u(i),className:"border-gray-300 text-gray-700 hover:border-radio-secondary hover:text-radio-secondary",children:[e.jsx(S,{className:"h-4 w-4 mr-2"}),"Download"]}),e.jsxs(l,{variant:"outline",size:"sm",onClick:()=>f(i.id),className:`border-gray-300 hover:border-radio-secondary ${d.includes(i.id)?"text-radio-secondary border-radio-secondary bg-red-50":"text-gray-700 hover:text-radio-secondary"}`,children:[e.jsx(k,{className:`h-4 w-4 mr-2 ${d.includes(i.id)?"fill-current":""}`}),d.includes(i.id)?"Saved":"Save"]}),e.jsx(I,{title:i.title,text:`Listen to "${i.title}" from A Family Challenge podcast`,url:`${window.location.origin}/on-air/family-challenge#episode-${i.id}`,className:"p-2 h-9 w-9 border-gray-300 text-gray-700 hover:border-radio-secondary hover:text-radio-secondary",shareText:""})]})]})})},i.id))})]})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container mx-auto px-6 text-center",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-gray-800 mb
1-6",children:"Never Miss an Episode"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Subscribe to get notified when new Family Challenge episodes are released."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(l,{className:"bg-radio-secondary hover:bg-red-700 text-white px-8 py-3",onClick:()=>n("/on-air/podcasts"),children:"Explore More Podcasts"}),e.jsx(l,{variant:"outline",className:"border-radio-secondary text-radio-secondary hover:bg-radio-secondary hover:text-white px-8 py-3",onClick:()=>n("/community/testimonies"),children:"Share Your Story"})]})]})})})]})};export{O as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.