{"version":3,"file":"PromptShowcase.BJGuYuKH.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/xJ8LtplnhuWZxiiazKb1/nzxsKUZ67VkZjvRzbxQ3/PromptShowcase.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useRef,useState}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function PromptShowcase(props){const{items=[],accentColor=\"#FF462E\",cardColor=\"#F5F4F3\",titleColor=\"#161616\",descColor=\"#63615E\",numberColor=\"#FFFFFF\",breakpoint=860,minCardWidth=300}=props;const rootRef=useRef(null);const scrollRef=useRef(null);const[w,setW]=useState(1200);const[active,setActive]=useState(0);useEffect(()=>{const el=rootRef.current;if(!el||typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(entries=>{for(const e of entries)setW(e.contentRect.width);});ro.observe(el);return()=>ro.disconnect();},[]);const isCarousel=w>0&&w<breakpoint;const cardStyle=carousel=>({background:cardColor,borderRadius:16,padding:28,display:\"flex\",flexDirection:\"column\",gap:16,boxSizing:\"border-box\",...carousel?{flex:\"0 0 86%\",scrollSnapAlign:\"center\"}:{}});const renderCard=(it,i)=>/*#__PURE__*/_jsxs(\"div\",{style:cardStyle(isCarousel),children:[/*#__PURE__*/_jsx(\"div\",{style:{width:46,height:46,borderRadius:\"50%\",background:accentColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:/*#__PURE__*/_jsx(\"span\",{style:{color:numberColor,fontSize:18,fontWeight:600},children:it.number})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:10},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:18,lineHeight:\"26px\",fontWeight:600,letterSpacing:\"-0.1px\",color:titleColor},children:it.title}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:16,lineHeight:\"24px\",fontWeight:500,letterSpacing:\"-0.1px\",color:descColor},children:it.desc})]})]},i);const step=dir=>{const sc=scrollRef.current;if(!sc)return;const amount=sc.clientWidth*.86+16;sc.scrollBy({left:dir*amount,behavior:\"smooth\"});};const onScroll=()=>{const sc=scrollRef.current;if(!sc)return;const cardW=sc.clientWidth*.86+16;setActive(Math.max(0,Math.round(sc.scrollLeft/cardW)));};const arrow={width:46,height:46,borderRadius:\"50%\",border:\"1px solid rgba(9,9,9,0.14)\",background:\"#FFFFFF\",color:titleColor,fontSize:22,lineHeight:\"20px\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:0};return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,style:{...props.style,width:\"100%\",fontFamily:'\"Inter\", \"Inter Display\", -apple-system, sans-serif'},children:[/*#__PURE__*/_jsx(\"style\",{children:`.ps-scroll::-webkit-scrollbar{display:none}`}),isCarousel?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:22},children:[/*#__PURE__*/_jsx(\"div\",{ref:scrollRef,onScroll:onScroll,className:\"ps-scroll\",style:{display:\"flex\",alignItems:\"stretch\",gap:16,overflowX:\"auto\",scrollSnapType:\"x mandatory\",WebkitOverflowScrolling:\"touch\",scrollbarWidth:\"none\",msOverflowStyle:\"none\",paddingBottom:2},children:items.map(renderCard)}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:16},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:8,flexWrap:\"wrap\"},children:items.map((_,i)=>/*#__PURE__*/_jsx(\"span\",{style:{width:i===active?22:8,height:8,borderRadius:8,background:i===active?accentColor:\"rgba(9,9,9,0.18)\",transition:\"all .25s ease\"}},i))}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:10,flexShrink:0},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>step(-1),\"aria-label\":\"Previous prompt\",style:arrow,children:\"‹\"}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>step(1),\"aria-label\":\"Next prompt\",style:arrow,children:\"›\"})]})]})]}):/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:`repeat(auto-fill, minmax(${minCardWidth}px, 1fr))`,gap:20},children:items.map(renderCard)})]});}const DEFAULT_ITEMS=[{number:\"01\",title:\"Market Research\",desc:\"Discover how competitors position themselves, identify market gaps, and uncover opportunities with strong viral potential.\"},{number:\"02\",title:\"Product Specification\",desc:\"Transform an idea into a complete product blueprint including branding, features, positioning, and user experience.\"},{number:\"03\",title:\"Screenshot Generation\",desc:\"Generate realistic product mockups and visual assets using Higgsfield.\"},{number:\"04\",title:\"Landing Page Creation\",desc:\"Build a landing page designed to validate demand and capture leads.\"},{number:\"05\",title:\"Conversion Tracking\",desc:\"Configure Meta Pixel tracking and verify conversion events.\"},{number:\"06\",title:\"Ad Creation\",desc:\"Generate image and video advertisements automatically.\"},{number:\"07\",title:\"Deployment\",desc:\"Deploy your landing page to a live URL using Vercel.\"},{number:\"08\",title:\"Campaign Setup\",desc:\"Create and organize Meta advertising campaigns.\"},{number:\"09\",title:\"Optimization & Scaling\",desc:\"Identify winning creatives and generate new variations automatically.\"}];PromptShowcase.defaultProps={items:DEFAULT_ITEMS};addPropertyControls(PromptShowcase,{items:{type:ControlType.Array,title:\"Prompts\",control:{type:ControlType.Object,controls:{number:{type:ControlType.String,title:\"Number\",defaultValue:\"01\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"\"},desc:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"\"}}},defaultValue:DEFAULT_ITEMS},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#FF462E\"},cardColor:{type:ControlType.Color,title:\"Card\",defaultValue:\"#F5F4F3\"},titleColor:{type:ControlType.Color,title:\"Title\",defaultValue:\"#161616\"},descColor:{type:ControlType.Color,title:\"Desc\",defaultValue:\"#63615E\"},numberColor:{type:ControlType.Color,title:\"Number\",defaultValue:\"#FFFFFF\"},breakpoint:{type:ControlType.Number,title:\"Slider <\",defaultValue:860,min:400,max:1200,step:10},minCardWidth:{type:ControlType.Number,title:\"Min Card\",defaultValue:300,min:200,max:500,step:10}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PromptShowcase\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PromptShowcase.map"],"mappings":"+LAGG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,EAAE,cAAY,UAAU,YAAU,UAAU,aAAW,UAAU,YAAU,UAAU,cAAY,UAAU,aAAW,IAAI,eAAa,KAAK,EAAY,EAAQA,EAAO,IAAI,EAAQ,EAAUA,EAAO,IAAI,EAAO,CAAC,EAAE,GAAMC,EAAS,IAAI,EAAO,CAAC,EAAO,GAAWA,EAAS,CAAC,EAAE,MAAc,CAAC,IAAM,EAAG,EAAQ,QAAQ,GAAG,CAAC,GAAI,OAAO,eAAiB,IAAY,OAAO,IAAM,EAAG,IAAI,eAAe,GAAS,CAAC,IAAI,IAAM,KAAK,EAAQ,EAAK,EAAE,YAAY,KAAK,CAAE,CAAC,EAAiB,OAAf,EAAG,QAAQ,CAAE,MAAY,EAAG,WAAW,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAW,EAAE,GAAG,EAAE,EAAiB,EAAU,IAAW,CAAC,WAAW,EAAU,aAAa,GAAG,QAAQ,GAAG,QAAQ,OAAO,cAAc,SAAS,IAAI,GAAG,UAAU,aAAa,GAAG,EAAS,CAAC,KAAK,UAAU,gBAAgB,QAAQ,EAAE,CAAC,CAAC,GAAS,GAAY,EAAG,IAAiB,EAAM,MAAM,CAAC,MAAM,EAAU,CAAU,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,MAA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