{"version":3,"file":"StackedCards.BTAPDIsr.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/zXkbHUvdGcIRZLvPeZeN/iyMq9TzcHktRJVsQGptK/StackedCards.js"],"sourcesContent":["// Component that displays dynamically stacked cards with customizable content\n// Each card shows a numbered badge, title, objective, activities list, outcome, and image\n// Cards stack vertically with consistent spacing and are fully responsive\n// Clicking a card smoothly expands it like an accordion, pushing others down\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,startTransition}from\"react\";/**\n * Stacked Cards Component\n *\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 600\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function StackedCards(props){const{cards,cardSpacing,backgroundColor,textColor,badgeColor,badgeTextColor,checkmarkImage,checkmarkColor,titleFont,objectiveFont,activityFont,outcomeFont,borderRadius,cardPadding,imageBorderRadius}=props;const[activeIndex,setActiveIndex]=useState(0);const handleCardClick=index=>{startTransition(()=>{// Optional: allow toggling the active card closed if clicked again\nsetActiveIndex(index===activeIndex?-1:index);});};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"max-content\",display:\"flex\",flexDirection:\"column\",gap:`${cardSpacing}px`,position:\"relative\"},children:cards.map((card,index)=>{const isActive=index===activeIndex;// Determine which sections have content\nconst hasHeader=!!(card.number||card.title);const hasTextContent=!!(card.objective||card.activities&&card.activities.length>0||card.outcome);const hasImage=!!(card.image&&card.image.src);const hasBodyContent=hasTextContent||hasImage;return /*#__PURE__*/_jsxs(\"div\",{onClick:()=>handleCardClick(index),style:{backgroundColor,borderRadius:`${borderRadius}px`,padding:`${cardPadding}px`,display:\"flex\",flexDirection:\"column\",boxShadow:isActive?\"0 8px 24px rgba(0, 0, 0, 0.15)\":\"0 2px 8px rgba(0, 0, 0, 0.08)\",cursor:\"pointer\",transition:\"all 0.3s ease\",transform:isActive?\"scale(1.01)\":\"scale(1)\",opacity:isActive?1:.85},children:[hasHeader&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"12px\"},children:[card.number&&/*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:badgeColor,color:badgeTextColor,width:\"32px\",height:\"32px\",borderRadius:\"6px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontWeight:700,fontSize:\"16px\",flexShrink:0},children:card.number}),card.title&&/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,color:textColor,...titleFont},children:card.title})]}),hasBodyContent&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateRows:isActive?\"1fr\":\"0fr\",transition:\"grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1)\"},children:/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"row\",flexWrap:\"wrap\",gap:\"32px\",// Only add top padding if the header exists to separate them\npaddingTop:hasHeader?\"24px\":\"0px\"},children:[hasTextContent&&/*#__PURE__*/_jsxs(\"div\",{style:{flex:\"1 1 300px\",display:\"flex\",flexDirection:\"column\",gap:\"16px\"},children:[card.objective&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:textColor,...objectiveFont},children:card.objective}),card.activities&&card.activities.length>0&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:card.activities.map((activity,actIndex)=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:\"12px\"},children:[checkmarkImage?/*#__PURE__*/_jsx(\"img\",{src:checkmarkImage,alt:\"Checkmark\",style:{width:\"18px\",height:\"18px\",flexShrink:0,marginTop:\"2px\",objectFit:\"contain\"}}):/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 16 16\",fill:\"none\",style:{flexShrink:0,marginTop:\"2px\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M13.5 4.5L6 12L2.5 8.5\",stroke:checkmarkColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,...activityFont},children:activity})]},actIndex))}),card.outcome&&/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,color:textColor,...outcomeFont},children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Outcome:\"}),\" \",card.outcome]})]}),hasImage&&card.image&&/*#__PURE__*/_jsx(\"div\",{style:{flex:\"1 1 250px\",minHeight:\"250px\",display:\"flex\",borderRadius:`${imageBorderRadius}px`,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"img\",{src:card.image.src,alt:card.image.alt||\"Card image\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})})]})})})]},index);})});}addPropertyControls(StackedCards,{cards:{type:ControlType.Array,title:\"Cards\",control:{type:ControlType.Object,controls:{number:{type:ControlType.String,title:\"Number\",defaultValue:\"1\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"PRE-DESIGN CONSULTATION\"},objective:{type:ControlType.String,title:\"Objective\",defaultValue:\"We conduct an exhaustive analysis of your business objectives...\",displayTextArea:true},activities:{type:ControlType.Array,title:\"Activities\",control:{type:ControlType.String,defaultValue:\"Activity item\"},defaultValue:[\"Define clear, measurable objectives.\",\"Analyze physical space.\"]},outcome:{type:ControlType.String,title:\"Outcome\",defaultValue:\"A comprehensive strategic brief.\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"}}},defaultValue:[{number:\"1\",title:\"PRE-DESIGN CONSULTATION\",objective:\"We conduct an exhaustive analysis of your business objectives, available spatial parameters, target demographic, and competitive landscape to build a highly tailored and profitable concept for your entertainment venue.\",activities:[\"Define clear, measurable objectives aligned perfectly with your long-term brand vision and ROI goals.\",\"Analyze the physical space and foot traffic data to maximize operational flow, atmosphere, and user experience.\",\"Conduct demographic research to understand your audience, creating a deeply engaging, tailored attraction concept.\",\"Identify potential revenue streams through strategic placement of F&B, merchandise, and premium attractions.\"],outcome:\"A comprehensive strategic brief outlining the creative direction, target audience profile, preliminary budget requirements, and a high-level roadmap for the entire project lifecycle.\",image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Consultation\"}},{number:\"2\",title:\"CONCEPTUAL DESIGN\",objective:\"Transforming strategic insights into tangible ideas through immersive preliminary visualizations, thematic storytelling, and optimized spatial planning.\",activities:[\"Create comprehensive mood boards, color palettes, and overarching thematic narratives.\",\"Develop initial 2D spatial layouts focusing on guest journey, capacity optimization, and safety.\",\"Select the optimal mix of core attractions, interactive elements, and visual centerpieces.\",\"Present concept sketches and reference imagery to align stakeholders on the visual direction.\"],outcome:\"A finalized concept design package including approved floor plans, thematic guidelines, and initial attraction selections ready for detailed 3D development.\",image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Conceptual Design\"}}]},cardSpacing:{type:ControlType.Number,title:\"Card Spacing\",defaultValue:16},staggerOffset:{type:ControlType.Number,title:\"Stagger Offset\",defaultValue:12},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#f9f8f6\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#2c2c2c\"},badgeColor:{type:ControlType.Color,title:\"Badge Color\",defaultValue:\"#3273a8\"},badgeTextColor:{type:ControlType.Color,title:\"Badge Text Color\",defaultValue:\"#ffffff\"},checkmarkImage:{type:ControlType.Image,title:\"Custom Check Icon\"},checkmarkColor:{type:ControlType.Color,title:\"Fallback SVG Color\",defaultValue:\"#3273a8\"},titleFont:{type:ControlType.Font,title:\"Title Font\",defaultValue:{fontSize:\"20px\",variant:\"Bold\",lineHeight:\"1.2em\",letterSpacing:\"0em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},objectiveFont:{type:ControlType.Font,title:\"Objective Font\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",lineHeight:\"1.5em\",letterSpacing:\"-0.01em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},activityFont:{type:ControlType.Font,title:\"Activity Font\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",lineHeight:\"1.5em\",letterSpacing:\"-0.01em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},outcomeFont:{type:ControlType.Font,title:\"Outcome Font\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",lineHeight:\"1.5em\",letterSpacing:\"-0.01em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},borderRadius:{type:ControlType.Number,title:\"Card Border Radius\",defaultValue:12},imageBorderRadius:{type:ControlType.Number,title:\"Image Border Radius\",defaultValue:12},cardPadding:{type:ControlType.Number,title:\"Card Padding\",defaultValue:32}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StackedCards\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"600\",\"framerIntrinsicWidth\":\"800\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StackedCards.map"],"mappings":"mLAYG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,QAAM,cAAY,kBAAgB,YAAU,aAAW,iBAAe,iBAAe,iBAAe,YAAU,gBAAc,eAAa,cAAY,eAAa,cAAY,qBAAmB,EAAW,CAAC,EAAY,GAAgBA,EAAS,EAAE,CAAO,EAAgB,GAAO,CAAC,MAAoB,CAC5V,EAAe,IAAQ,EAAY,GAAG,EAAM,EAAG,EAAG,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,cAAc,QAAQ,OAAO,cAAc,SAAS,IAAI,GAAG,EAAY,IAAI,SAAS,WAAW,CAAC,SAAS,EAAM,KAAK,EAAK,IAAQ,CAAC,IAAM,EAAS,I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