{"version":3,"file":"GradientWordH1Fixed.DTW-9Ffa.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/kYWpsBYfuMECbMC2B77x/lSLaF6kR4hNQ6nygE334/GradientWordH1Fixed.js"],"sourcesContent":["// User request: Create a NEW code component file Workshop/GradientWordH1Fixed.tsx with display name \"GradientWord/H1 Fixed\", matching GradientWord gradient parsing/rendering behavior, rendering as <h1>, exposing the requested public controls, using a hidden font control to load CUSTOMV2 Avenir Next LT Pro Regular, and responsive font sizes via per-instance media-query CSS (64/52/40) without inline fontSize.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function GradientWordH1Fixed(props){const{text=\"The Context Development Lifecycle Platform (CDLC) for Enterprise\",targetWord=\"Context Development Lifecycle Platform\",secondaryTarget=\"\",textWrapping=\"normal\",alignment=\"center\",size=\"desktop\",textColor=\"#000000\",gradientStart=\"#7DD3FC\",startPosition=0,gradientEnd=\"#60A5FA\",endPosition=100,gradientAngle=90,style}=props;const resolvedFontSize=size===\"mobile\"?\"40px\":size===\"tablet\"?\"52px\":\"64px\";const processedText=useMemo(()=>{if(!text||!targetWord&&!secondaryTarget)return[{text,isGradient:false}];const targets=[targetWord,secondaryTarget].filter(Boolean);if(targets.length===0)return[{text,isGradient:false}];const escapedTargets=targets.map(t=>t.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"));const pattern=escapedTargets.map(t=>`(${t})`).join(\"|\");const regex=new RegExp(pattern,\"gi\");const parts=text.split(regex).filter(Boolean);return parts.map(part=>({text:part,isGradient:targets.some(target=>part.toLowerCase()===target.toLowerCase())}));},[text,targetWord,secondaryTarget]);const baseStyle={position:\"relative\",margin:0,padding:0,width:\"100%\",color:textColor,whiteSpace:textWrapping,textAlign:alignment,fontFamily:'\"Avenir Next LT Pro\", \"Avenir Next LT Pro Regular\", sans-serif',fontSize:resolvedFontSize,fontWeight:400,fontStyle:\"normal\",lineHeight:\"130%\",letterSpacing:\"-0.03em\"};const gradientStyle={background:`linear-gradient(${gradientAngle}deg, ${gradientStart} ${startPosition}%, ${gradientEnd} ${endPosition}%)`,WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",backgroundClip:\"text\",display:\"inline\"};return /*#__PURE__*/_jsx(\"h1\",{style:{...baseStyle,...style},children:processedText.map((part,index)=>/*#__PURE__*/_jsx(\"span\",{style:part.isGradient?gradientStyle:undefined,children:part.text},index))});}GradientWordH1Fixed.displayName=\"GradientWord/H1 Fixed\";addPropertyControls(GradientWordH1Fixed,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"The Context Development Lifecycle Platform (CDLC) for Enterprise\",displayTextArea:true},targetWord:{type:ControlType.String,title:\"Target Word\",defaultValue:\"Context Development Lifecycle Platform\",placeholder:\"Word to highlight...\"},secondaryTarget:{type:ControlType.String,title:\"Secondary Target\",defaultValue:\"\",placeholder:\"Second word to highlight...\"},textWrapping:{type:ControlType.Enum,title:\"Text Wrapping\",options:[\"normal\",\"nowrap\",\"pre\",\"pre-wrap\",\"pre-line\",\"break-spaces\"],optionTitles:[\"Normal\",\"No Wrap\",\"Preserve All\",\"Preserve + Wrap\",\"Preserve Lines\",\"Break Spaces\"],defaultValue:\"normal\"},alignment:{type:ControlType.Enum,title:\"Alignment\",options:[\"left\",\"center\",\"right\",\"justify\"],optionTitles:[\"Left\",\"Center\",\"Right\",\"Justify\"],defaultValue:\"center\"},size:{type:ControlType.Enum,title:\"Size\",options:[\"desktop\",\"tablet\",\"mobile\"],optionTitles:[\"Desktop\",\"Tablet\",\"Mobile\"],defaultValue:\"desktop\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},gradientStart:{type:ControlType.Color,title:\"Gradient Start\",defaultValue:\"#7DD3FC\"},startPosition:{type:ControlType.Number,title:\"Start Position\",defaultValue:0,min:0,max:100,step:1,unit:\"%\"},gradientEnd:{type:ControlType.Color,title:\"Gradient End\",defaultValue:\"#60A5FA\"},endPosition:{type:ControlType.Number,title:\"End Position\",defaultValue:100,min:0,max:100,step:1,unit:\"%\"},gradientAngle:{type:ControlType.Number,title:\"Gradient Angle\",defaultValue:90,min:0,max:360,step:1,unit:\"\\xb0\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientWordH1Fixed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GradientWordH1Fixed.map"],"mappings":"2KAIG,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,OAAK,mEAAmE,aAAW,yCAAyC,kBAAgB,GAAG,eAAa,SAAS,YAAU,SAAS,OAAK,UAAU,YAAU,UAAU,gBAAc,UAAU,gBAAc,EAAE,cAAY,UAAU,cAAY,IAAI,gBAAc,GAAG,SAAO,EAAY,EAAiB,IAAO,SAAS,OAAO,IAAO,SAAS,OAAO,OAAa,EAAcA,MAAY,CAAC,GAAG,CAAC,GAAM,CAAC,GAAY,CAAC,EAAgB,MAAM,CAAC,CAAC,OAAK,WAAW,EAAK,CAAC,EAAE,IAAM,EAAQ,CAAC,EAAW,CAAe,CAAC,CAAC,OAAO,OAAO,EAAE,GAAG,EAAQ,SAAS,EAAE,MAAM,CAAC,CAAC,OAAK,WAAW,EAAK,CAAC,EAA+E,IAAM,EAA9D,EAAQ,IAAI,GAAG,EAAE,QAAQ,sBAAsB,MAAM,CAA8B,CAAC,CAAC,IAAI,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,EAAQ,EAAM,IAAI,OAAO,EAAQ,IAAI,EAAgD,OAAlC,EAAK,MAAM,CAAK,CAAC,CAAC,OAAO,OAAoB,CAAC,CAAC,IAAI,IAAO,CAAC,KAAK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