{"version":3,"file":"ExtraFeatures_Code.DukOUnFi.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/PDjYqPp8F61oxX80sFtZ/f6nNlBXrXAo7MCdGxS5m/ExtraFeatures_Code.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * ExtraFeatures_Code — SEO-safe replacement for the linked ExtraFeaturesSection component.\n * Renders a single DOM output (no breakpoint duplication) with responsive CSS via JS.\n * Uses ResizeObserver on its own container to work correctly in Framer's breakpoint previews.\n */const FEATURES=[{icon:\"✍️\",title:\"CoAuthor AI\",desc:\"Writer's block? No problem. Just type your topic, click, and watch the magic happen. Typeset's CoAuthor will outline and write your content for you so you're never stuck staring at a blank page.\"},{icon:\"🪄\",title:\"AI-Design\",desc:\"SamCart Magic Wand helps design, and refine in seconds — from smart titles to perfectly matched layouts, images, and colors.\"},{icon:\"👥\",title:\"Collab Mode: On\",desc:\"Seamless collaboration for teams who build better, together.\"},{icon:\"📐\",title:\"Templates for Every Need\",desc:\"Find the perfect template for every story, style, and goal — no design skills needed.\"},{icon:\"🖼️\",title:\"Endless Images at Your Fingertips\",desc:\"Get instant access to stock footage from Getty Images & Unsplash. Search by topic, color or let our AI pick for you.\"},{icon:\"🚀\",title:\"Instantly Live. Always On.\",desc:\"Launch pages, ebooks, and more with built-in hosting that just works.\"},{icon:\"🎨\",title:\"Customize Your Brand\",desc:\"Update fonts, colors, and templates across your theme in one click.\"},{icon:\"📁\",title:\"Organize Your Projects\",desc:\"Effortlessly manage and access your projects whenever you need.\"},{icon:\"🎯\",title:\"Color-Match Content\",desc:\"Search thousands of ready-to-use assets by color to fit your brand's exact vibe.\"},{icon:\"🔍\",title:\"Built-in Search\",desc:\"Built-in search to help you locate files, projects, and more — effortlessly.\"}];export default function ExtraFeaturesCode(props){const{sectionHeading=\"Everything You Need in One Place\",headingTag=\"h2\",featureCount=10,accentColor=\"#0086fa\",headlineColor=\"#001134\",bodyColor=\"#344051\",cardBg=\"#f7f7f8\",cardBorder=\"#e6e6f0\"}=props;const containerRef=useRef(null);const[cols,setCols]=useState(2);useEffect(()=>{const el=containerRef.current;if(!el)return;const update=()=>{const w=el.offsetWidth;if(w<500)setCols(1);else setCols(2);};update();// Use ResizeObserver to detect container width changes\n// This works correctly in Framer breakpoint previews\nif(typeof ResizeObserver!==\"undefined\"){const ro=new ResizeObserver(()=>update());ro.observe(el);return()=>ro.disconnect();}else{// Fallback for older browsers\nwindow.addEventListener(\"resize\",update);return()=>window.removeEventListener(\"resize\",update);}},[]);const visibleFeatures=FEATURES.slice(0,featureCount);const HeadingTag=headingTag;return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{width:\"100%\",boxSizing:\"border-box\",padding:cols===1?\"clamp(32px, 6vw, 48px) clamp(16px, 4vw, 24px)\":\"clamp(48px, 8vw, 80px) clamp(24px, 6vw, 80px)\",fontFamily:\"'Golos Text', sans-serif\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:cols===1?\"24px\":\"clamp(32px, 5vw, 48px)\"},children:[/*#__PURE__*/_jsx(\"link\",{href:\"https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;700;800&display=swap\",rel:\"stylesheet\"}),/*#__PURE__*/_jsx(HeadingTag,{style:{fontSize:cols===1?\"24px\":\"clamp(26px, 4vw, 42px)\",fontWeight:800,color:headlineColor,textAlign:\"center\",margin:0,letterSpacing:\"-0.03em\",lineHeight:1.2,maxWidth:\"700px\"},children:sectionHeading}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:cols===1?\"1fr\":\"repeat(2, 1fr)\",gap:cols===1?\"12px\":\"clamp(12px, 2vw, 20px)\",width:\"100%\",maxWidth:\"900px\"},children:visibleFeatures.map((feat,i)=>/*#__PURE__*/_jsxs(\"div\",{style:{background:cardBg,border:`1px solid ${cardBorder}`,borderRadius:cols===1?\"12px\":\"16px\",padding:cols===1?\"20px\":\"clamp(20px, 3vw, 32px)\",display:\"flex\",flexDirection:\"column\",gap:cols===1?\"6px\":\"clamp(8px, 1.2vw, 12px)\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:cols===1?\"24px\":\"clamp(28px, 3.5vw, 36px)\",lineHeight:1},children:feat.icon}),/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:cols===1?\"16px\":\"clamp(16px, 2vw, 20px)\",fontWeight:700,color:headlineColor,margin:0,letterSpacing:\"-0.02em\",lineHeight:1.3},children:feat.title}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:cols===1?\"13px\":\"clamp(13px, 1.4vw, 15px)\",fontWeight:400,color:bodyColor,margin:0,lineHeight:1.6},children:feat.desc})]},i))})]});}ExtraFeaturesCode.defaultProps={sectionHeading:\"Everything You Need in One Place\",headingTag:\"h2\",featureCount:10,accentColor:\"#0086fa\",headlineColor:\"#001134\",bodyColor:\"#344051\",cardBg:\"#f7f7f8\",cardBorder:\"#e6e6f0\"};addPropertyControls(ExtraFeaturesCode,{sectionHeading:{type:ControlType.String,title:\"Section Heading\",defaultValue:\"Everything You Need in One Place\"},headingTag:{type:ControlType.Enum,title:\"Heading Tag (SEO)\",options:[\"h2\",\"h3\",\"h4\",\"p\"],optionTitles:[\"H2\",\"H3\",\"H4\",\"Paragraph\"],defaultValue:\"h2\"},featureCount:{type:ControlType.Number,title:\"Features Shown\",min:1,max:10,step:1,defaultValue:10},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#0086fa\"},headlineColor:{type:ControlType.Color,title:\"Headline Color\",defaultValue:\"#001134\"},bodyColor:{type:ControlType.Color,title:\"Body Text Color\",defaultValue:\"#344051\"},cardBg:{type:ControlType.Color,title:\"Card Background\",defaultValue:\"#f7f7f8\"},cardBorder:{type:ControlType.Color,title:\"Card Border\",defaultValue:\"#e6e6f0\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\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