{"version":3,"file":"CategoryPageHeader.DKBzBwAW.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/bIqMkphyohHAFxiIGYOh/v7FcT3Dh6CMGyDHNo6l0/CategoryPageHeader.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect}from\"react\";const FONT=\"'Geist', 'Inter', sans-serif\";const CATEGORIES=[{value:\"ai-assistants\",label:\"AI Assistants\",airtableValue:\"AI Assistants\"},{value:\"writing-content\",label:\"Writing & Content\",airtableValue:\"Writing & Content\"},{value:\"seo\",label:\"SEO & Search Marketing\",airtableValue:\"SEO & Search Marketing\"},{value:\"image-generation\",label:\"Image Generation\",airtableValue:\"Image Generation\"},{value:\"video\",label:\"Video Creation\",airtableValue:\"Video Creation\"},{value:\"audio-voice\",label:\"Audio & Voice\",airtableValue:\"Audio & Voice\"},{value:\"podcast-recording\",label:\"Podcast & Recording\",airtableValue:\"Podcast & Recording\"},{value:\"coding\",label:\"Code & Development\",airtableValue:\"Code & Development\"},{value:\"design-branding\",label:\"Design & Branding\",airtableValue:\"Design & Branding\"},{value:\"presentations\",label:\"Presentations\",airtableValue:\"Presentations\"},{value:\"productivity\",label:\"Productivity & Meetings\",airtableValue:\"Productivity & Meetings\"},{value:\"automation\",label:\"Automation\",airtableValue:\"Automation\"}];function useIsMobile(){const[isMobile,setIsMobile]=useState(false);useEffect(()=>{function update(){setIsMobile(window.innerWidth<768);}update();window.addEventListener(\"resize\",update);return()=>window.removeEventListener(\"resize\",update);},[]);return isMobile;}/**\n * AISH Category Page Header\n * Used on /ai-tools/:category pages and /best-ai-tools-for-:category pages.\n * Handles H1, subtitle, breadcrumb, and meta title/description.\n * Place a native Framer CMS collection (filtered by category) below this component on the page.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function CategoryPageHeader(props){const{pageTitle=\"AI Tools\",subtitle=\"Explore and compare the best AI tools in this category.\",metaTitle=\"\",metaDescription=\"\",breadcrumbLabel=\"All AI Tools\",breadcrumbHref=\"/ai-tools\",showBadge=true,badgeText=\"Vendor-sourced data\"}=props;const isMobile=useIsMobile();// Update document meta\nuseEffect(()=>{if(metaTitle)document.title=metaTitle;const metaDesc=document.querySelector(\"meta[name='description']\");if(metaDesc&&metaDescription)metaDesc.setAttribute(\"content\",metaDescription);},[metaTitle,metaDescription]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",backgroundColor:\"#000\",padding:isMobile?\"40px 20px 32px\":\"56px 40px 40px\",display:\"flex\",justifyContent:\"center\",fontFamily:FONT},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth:1200},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:6,marginBottom:20},children:[/*#__PURE__*/_jsx(\"a\",{href:breadcrumbHref,style:{fontSize:13,color:\"rgba(255,255,255,0.4)\",textDecoration:\"none\",fontFamily:FONT,fontWeight:400},children:breadcrumbLabel}),/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"rgba(255,255,255,0.25)\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M9 18l6-6-6-6\"})}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,color:\"rgba(255,255,255,0.55)\",fontFamily:FONT},children:pageTitle})]}),/*#__PURE__*/_jsx(\"h1\",{style:{fontFamily:FONT,fontSize:isMobile?28:38,fontWeight:700,letterSpacing:\"-0.025em\",lineHeight:1.2,color:\"#fff\",margin:\"0 0 12px 0\"},children:pageTitle}),subtitle&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:isMobile?15:16,lineHeight:1.6,color:\"rgba(255,255,255,0.55)\",margin:\"0 0 20px 0\",maxWidth:620,fontFamily:FONT,fontWeight:400},children:subtitle}),showBadge&&badgeText&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:6,backgroundColor:\"rgba(108,71,255,0.12)\",border:\"1px solid rgba(108,71,255,0.25)\",borderRadius:6,padding:\"4px 10px\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"#6c47ff\",strokeWidth:\"2.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"})}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:12,fontWeight:500,color:\"#a78bfa\",fontFamily:FONT,letterSpacing:\"-0.01em\"},children:badgeText})]})]})});}addPropertyControls(CategoryPageHeader,{pageTitle:{type:ControlType.String,title:\"Page Title (H1)\",defaultValue:\"AI Tools\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"Explore and compare the best AI tools in this category.\"},metaTitle:{type:ControlType.String,title:\"Meta Title\",defaultValue:\"\",placeholder:\"e.g. Best AI SEO Tools 2026 | AI Starter Hub\"},metaDescription:{type:ControlType.String,title:\"Meta Description\",defaultValue:\"\",placeholder:\"e.g. Compare the top AI tools for SEO with verified pricing and features.\"},breadcrumbLabel:{type:ControlType.String,title:\"Breadcrumb Label\",defaultValue:\"All AI Tools\"},breadcrumbHref:{type:ControlType.String,title:\"Breadcrumb Link\",defaultValue:\"/ai-tools\"},showBadge:{type:ControlType.Boolean,title:\"Show Trust Badge\",defaultValue:true},badgeText:{type:ControlType.String,title:\"Badge Text\",defaultValue:\"Vendor-sourced data\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CategoryPageHeader\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\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