{"version":3,"file":"KEC_EventCard.DZ8ZxS2X.mjs","names":[],"sources":["https:/framerusercontent.com/modules/TqMTf9A3buaVRhN482wi/WC30H8krvcqDKDh16W0D/KEC_EventCard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,Link}from\"framer\";import{motion}from\"framer-motion\";const COLORS={bg:\"#0A0A0A\",bgAlt:\"#0F0F0F\",gold:\"#C9A84C\",goldBright:\"#F0C84A\",goldDeep:\"#9A7A2E\",goldWarm:\"#D4A84B\"};const goldGradient=\"linear-gradient(135deg, #F0C84A 0%, #C9A84C 45%, #9A7A2E 100%)\";// Accepts a CMS Date value (ISO string) OR plain text like \"AUG 15\".\nfunction formatMonthDay(raw){if(!raw)return{month:\"\",day:\"\"};const s=String(raw).trim();let d;const iso=/^(\\d{4})-(\\d{2})-(\\d{2})/.exec(s);if(iso){d=new Date(Number(iso[1]),Number(iso[2])-1,Number(iso[3]));}else{d=new Date(s);}if(!isNaN(d.getTime())){return{month:d.toLocaleDateString(\"en-US\",{month:\"short\"}).toUpperCase(),day:String(d.getDate()).padStart(2,\"0\")};}const parts=s.split(/\\s+/);return{month:(parts[0]||\"\").toUpperCase(),day:parts[1]||\"\"};}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function KEC_EventCard(props){const{image=\"\",date=\"\",title=\"\",type=\"\",location=\"\",description=\"\",badge=\"\",price=\"\",rsvpLabel=\"RSVP\",rsvpLink=\"/contact\",videoLabel=\"Watch Promo\",videoLink=\"\"}=props;const{month,day}=formatMonthDay(date);return /*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:true,amount:.2},transition:{duration:.7,ease:[.16,1,.3,1]},whileHover:{y:-4},style:{width:\"100%\",background:COLORS.bgAlt,border:\"1px solid rgba(201,168,76,0.2)\",borderRadius:4,overflow:\"hidden\",position:\"relative\",fontFamily:\"'Cormorant Garamond','Georgia',serif\",transition:\"border-color 0.3s, box-shadow 0.3s\"},children:[image?/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",overflow:\"hidden\",borderBottom:\"1px solid rgba(201,168,76,0.12)\"},children:/*#__PURE__*/_jsx(\"img\",{src:image,alt:title,style:{width:\"100%\",height:\"auto\",display:\"block\"}})}):null,badge?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,right:0,background:goldGradient,color:\"#000\",fontSize:9,fontWeight:700,letterSpacing:\"0.2em\",padding:\"5px 14px\",fontFamily:\"'Inter',sans-serif\"},children:badge}):null,/*#__PURE__*/_jsxs(\"div\",{style:{background:\"linear-gradient(135deg, #1a1208, #0d0b06)\",padding:\"24px 28px\",display:\"flex\",alignItems:\"center\",gap:20,borderBottom:\"1px solid rgba(201,168,76,0.12)\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\",flexShrink:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:11,letterSpacing:\"0.3em\",color:COLORS.gold,fontFamily:\"'Inter',sans-serif\"},children:month}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:40,fontWeight:700,color:COLORS.goldBright,lineHeight:1,fontFamily:\"'Inter',sans-serif\"},children:day})]}),/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0},children:[type?/*#__PURE__*/_jsx(\"div\",{style:{fontSize:10,letterSpacing:\"0.25em\",color:COLORS.gold,opacity:.65,textTransform:\"uppercase\",fontFamily:\"'Inter',sans-serif\",marginBottom:4},children:type}):null,/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,color:COLORS.goldWarm,opacity:.75,fontFamily:\"'Inter',sans-serif\"},children:location})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"24px 28px 28px\"},children:[/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:20,fontWeight:700,margin:\"0 0 12px\",background:goldGradient,WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\",lineHeight:1.2},children:title}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:14,lineHeight:1.7,color:COLORS.goldWarm,opacity:.72,margin:\"0 0 20px\",fontFamily:\"'Inter',sans-serif\"},children:description}),videoLink?/*#__PURE__*/_jsxs(\"a\",{href:videoLink,target:\"_blank\",rel:\"noopener noreferrer\",style:{display:\"inline-flex\",alignItems:\"center\",gap:7,marginBottom:18,color:COLORS.gold,fontSize:12,fontWeight:600,letterSpacing:\"0.1em\",textTransform:\"uppercase\",textDecoration:\"none\",fontFamily:\"'Inter',sans-serif\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:10},children:\"▶\"}),videoLabel]}):null,/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:12},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:16,fontWeight:600,color:COLORS.gold,fontFamily:\"'Inter',sans-serif\"},children:price}),/*#__PURE__*/_jsx(Link,{href:rsvpLink,children:/*#__PURE__*/_jsx(\"a\",{style:{padding:\"9px 20px\",background:\"transparent\",border:`1px solid ${COLORS.gold}`,color:COLORS.gold,fontSize:11,fontWeight:600,letterSpacing:\"0.12em\",textTransform:\"uppercase\",textDecoration:\"none\",borderRadius:2,fontFamily:\"'Inter',sans-serif\",whiteSpace:\"nowrap\"},children:rsvpLabel})})]})]})]});}KEC_EventCard.defaultProps={image:\"\",date:\"AUG 15\",title:\"Kingdom Alignment Summit\",type:\"\",location:\"Atlanta, GA \\xb7 Live + Virtual\",description:\"A full-day prophetic summit focused on personal and organizational alignment with Kingdom purpose.\",badge:\"FEATURED\",price:\"$97\",rsvpLabel:\"RSVP\",rsvpLink:\"/contact\",videoLabel:\"Watch Promo\",videoLink:\"\"};addPropertyControls(KEC_EventCard,{image:{type:ControlType.Image,title:\"Image\",description:\"Optional. Shows at the top of the card (16:9).\"},date:{type:ControlType.String,title:\"Date\",defaultValue:\"AUG 15\",description:\"CMS Date field, or plain text like “AUG 15”.\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Kingdom Alignment Summit\"},type:{type:ControlType.String,title:\"Type\",defaultValue:\"\"},location:{type:ControlType.String,title:\"Location\",defaultValue:\"Atlanta, GA \\xb7 Live + Virtual\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"\"},badge:{type:ControlType.String,title:\"Badge\",defaultValue:\"\",description:\"Corner ribbon, e.g. FEATURED. Hidden if empty.\"},price:{type:ControlType.String,title:\"Price\",defaultValue:\"$97\"},rsvpLabel:{type:ControlType.String,title:\"RSVP Label\",defaultValue:\"RSVP\"},rsvpLink:{type:ControlType.Link,title:\"RSVP Link\"},videoLabel:{type:ControlType.String,title:\"Video Label\",defaultValue:\"Watch Promo\"},videoLink:{type:ControlType.Link,title:\"Video Link\",description:\"Promo video (YouTube/Vimeo). Hidden if empty.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"KEC_EventCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./KEC_EventCard.map"],"mappings":"2NACA,SAAS,EAAe,EAAI,CAAC,GAAG,CAAC,EAAI,MAAM,CAAC,MAAM,GAAG,IAAI,EAAE,EAAE,IAAM,EAAE,OAAO,CAAG,CAAC,CAAC,KAAK,EAAM,EAAQ,EAAI,2BAA2B,KAAK,CAAC,EAA0F,GAAxF,AAAyE,EAAtE,EAAO,IAAI,KAAK,OAAO,EAAI,EAAE,EAAE,OAAO,EAAI,EAAE,EAAE,EAAE,OAAO,EAAI,EAAE,CAAC,EAAU,IAAI,KAAK,CAAC,EAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,QAAQ,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,YAAY,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