{"version":3,"file":"PromptShowcase.CKWpSgTo.mjs","names":["useRef","useState","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","ce","de","init_framer_DKgW_P28","ControlType","addPropertyControls","PromptShowcase","props","rootRef","scrollRef","w","setW","active","setActive","el","ro","e","entries","isCarousel","breakpoint","cardStyle","cardColor","carousel","renderCard","accentColor","numberColor","it","titleColor","descColor","i","step","sc","amount","dir","onScroll","cardW","arrow","items","minCardWidth","DEFAULT_ITEMS","init_PromptShowcase"],"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":"A,+LAGG,SAAwBa,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,EAAE,cAAY,UAAU,YAAU,UAAU,aAAW,UAAU,YAAU,UAAU,cAAY,UAAU,aAAW,IAAI,eAAa,KAAKC,EAAYC,EAAQf,EAAO,IAAI,EAAQgB,EAAUhB,EAAO,IAAI,EAAO,CAACiB,EAAEC,GAAMjB,EAAS,IAAI,EAAO,CAACkB,EAAOC,GAAWnB,EAAS,CAAC,EAAEO,MAAc,CAAC,IAAMa,EAAGN,EAAQ,QAAQ,GAAG,CAACM,GAAI,OAAO,eAAiB,IAAY,OAAO,IAAMC,EAAG,IAAI,eAAe,GAAS,CAAC,IAAI,IAAMC,KAAKC,EAAQN,EAAKK,EAAE,YAAY,KAAK,CAAE,CAAC,EAAiB,OAAfD,EAAG,QAAQD,CAAE,MAAYC,EAAG,WAAW,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMG,EAAWR,E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