{"version":3,"file":"shared-lib.CTJ79MZ_.mjs","names":["React.useRef","React.useMemo","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/ptIG0QLUdKUbLVs3GfT2/8eUpU5V0TlR09meg4mFJ/responsive_text_helper.js","https:/framerusercontent.com/modules/vbO6hkpGbIWjt9xjmn1a/yp8xBVPmczqmlkbAgmL7/siteMetadata.js","https:/framerusercontent.com/modules/ooY41lRjk8W1TYCoe9PA/7nWuUGoTR8CE1bzT1ru3/augiA20Il.js","https:/framerusercontent.com/modules/2i6lBfEEaJ2oUfG6CREO/7S7b73VjruBcFsWDBunz/Of4khbfeU.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";function buildClamp(minVp,maxVp,minFs,maxFs){if(maxVp===minVp)return`${minFs}rem`;const minFsPx=minFs*16;const maxFsPx=maxFs*16;const slope=(maxFsPx-minFsPx)/(maxVp-minVp);const intercept=minFsPx-slope*minVp;const slopeVw=(slope*100).toFixed(4);const sign=intercept>=0?\"+\":\"-\";return`clamp(${minFs}rem, ${slopeVw}vw ${sign} ${Math.abs(intercept/16).toFixed(4)}rem, ${maxFs}rem)`;}// helper: finds .framer-text\nfunction findTargetEl(overlayRef){if(!overlayRef.current)return null;const wrapper=overlayRef.current.parentElement;const sharedParent=wrapper?.parentElement;if(!sharedParent||!wrapper)return null;const siblings=Array.from(sharedParent.children);const wrapperIndex=siblings.indexOf(wrapper);for(let i=0;i<siblings.length;i++){if(i===wrapperIndex)continue;const found=siblings[i].querySelector(\".framer-text\");if(found)return found;}return null;}/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ResponsiveTextHelper({mode=\"auto\",minViewport=390,maxViewport=1200,minFontSize=2,maxFontSize=8,clampValue=\"clamp(2rem, 5vw + 1rem, 8rem)\",showCanvas=true}){const overlayRef=React.useRef(null);const observerRef=React.useRef(null);const rafIdRef=React.useRef(null);// Ref keeps latest clamp accessible in observer closure without re-subscribing\nconst finalClampRef=React.useRef(\"\");const isCanvas=RenderTarget.current()===RenderTarget.canvas;const finalClamp=React.useMemo(()=>mode===\"manual\"?clampValue:buildClamp(minViewport,maxViewport,minFontSize,maxFontSize),[mode,clampValue,minViewport,maxViewport,minFontSize,maxFontSize]);// Keep ref in sync on every render so observer closure always has latest value\nfinalClampRef.current=finalClamp;// Main effect: wire up the MutationObserver on the target element\n// Only re-runs when targetTag changes — clamp updates handled by separate effect\nReact.useEffect(()=>{if(isCanvas||!overlayRef.current)return;const el=findTargetEl(overlayRef);if(!el)return;const apply=()=>el.style.setProperty(\"--framer-font-size\",finalClampRef.current);apply();// Debounced observer: caps cost to one write per animation frame\n// Prevents hammering during Framer's per-frame style writes (scroll/hover animations)\nobserverRef.current?.disconnect();observerRef.current=new MutationObserver(()=>{if(el.style.getPropertyValue(\"--framer-font-size\")===finalClampRef.current)return;if(rafIdRef.current!==null)cancelAnimationFrame(rafIdRef.current);rafIdRef.current=requestAnimationFrame(()=>{apply();rafIdRef.current=null;});});observerRef.current.observe(el,{attributes:true,attributeFilter:[\"style\"]});return()=>{// Cancel any pending rAF before disconnecting\nif(rafIdRef.current!==null){cancelAnimationFrame(rafIdRef.current);rafIdRef.current=null;}observerRef.current?.disconnect();observerRef.current=null;el.style.removeProperty(\"--framer-font-size\");};},[isCanvas]);// Lightweight effect: push new clamp value immediately when controls change\n// Avoids full observer re-wire for simple value updates\nReact.useEffect(()=>{if(isCanvas)return;const el=findTargetEl(overlayRef);if(!el)return;el.style.setProperty(\"--framer-font-size\",finalClamp);},[finalClamp]);if(isCanvas){if(!showCanvas)return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"}});return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100px\",height:\"24px\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",background:\"rgba(99,102,241,0.08)\",border:\"1.5px dashed rgba(99,102,241,0.5)\",borderRadius:6,color:\"rgba(99,102,241,0.8)\",fontFamily:\"monospace\",pointerEvents:\"none\",userSelect:\"none\",padding:\"4px 8px\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"span\",{style:{fontSize:11},children:\"✦ Fluid Text\"})});}return /*#__PURE__*/_jsx(\"div\",{ref:overlayRef,style:{position:\"absolute\",inset:0,pointerEvents:\"none\",background:\"transparent\"}});}ResponsiveTextHelper.displayName=\"Responsive Text Helper\";addPropertyControls(ResponsiveTextHelper,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"auto\",\"manual\"],optionTitles:[\"Auto Calc\",\"Manual Clamp\"],defaultValue:\"auto\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\",description:\"*Auto* calculates clamp() from your inputs.\\n*Manual* lets you paste a clamp() string directly.\"},minFontSize:{type:ControlType.Number,title:\"Min Font\",defaultValue:2,min:.25,max:20,step:.125,unit:\"rem\",displayStepper:true,hidden:props=>props.mode===\"manual\",description:\"Font size at the minimum viewport width.\"},maxFontSize:{type:ControlType.Number,title:\"Max Font\",defaultValue:8,min:.5,max:30,step:.125,unit:\"rem\",displayStepper:true,hidden:props=>props.mode===\"manual\",description:\"Font size at the maximum viewport width.\"},minViewport:{type:ControlType.Number,title:\"Min Viewport\",defaultValue:390,min:200,max:1920,step:10,unit:\"px\",displayStepper:false,hidden:props=>props.mode===\"manual\",description:\"Viewport width where the minimum font size is applied.\"},maxViewport:{type:ControlType.Number,title:\"Max Viewport\",defaultValue:1200,min:400,max:3840,step:10,unit:\"px\",displayStepper:false,hidden:props=>props.mode===\"manual\",description:\"Viewport width where the maximum font size is applied.\"},clampValue:{type:ControlType.String,title:\"Clamp CSS\",defaultValue:\"clamp(2rem, 5vw + 1rem, 8rem)\",placeholder:\"clamp(2rem, 5vw + 1rem, 8rem)\",hidden:props=>props.mode!==\"manual\",description:\"Paste a clamp() value from any clamp generator tool.\"},showCanvas:{type:ControlType.Boolean,title:\"Canvas Preview\",defaultValue:true,enabledTitle:\"Visible\",disabledTitle:\"Hidden\",description:\"Show or hide the component placeholder on the canvas.\\n\\nMade with ❤️ by [Soyeb](https://framer.link/project)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ResponsiveTextHelper\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutWidth\":\"any\",\"framerDisableUnlink\":\"* @framerIntrinsicWidth 100\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./responsive_text_helper.map","// Generated by Framer (3ad0d99)\nexport default function metadata(params,activeLocale){return{description:\"Made with Framer\",robots:\"max-image-preview:large\",title:\"My Framer Site\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (50fb820)\nimport siteMetadata from\"https://framerusercontent.com/modules/vbO6hkpGbIWjt9xjmn1a/yp8xBVPmczqmlkbAgmL7/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1s5xw2k\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"9ons1m\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-7zxeH\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (50fb820)\nimport siteMetadata from\"https://framerusercontent.com/modules/vbO6hkpGbIWjt9xjmn1a/yp8xBVPmczqmlkbAgmL7/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"g2fgg5\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-o5tjE\",title:siteMetadata(params,activeLocale).title||\"Landing\",viewport:\"width=1200\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"0LAAwI,SAAS,EAAW,EAAM,EAAM,EAAM,EAAM,CAAC,GAAG,IAAQ,EAAM,MAAM,GAAG,EAAM,KAAK,IAAM,EAAQ,EAAM,GAAgC,GAAf,EAAM,GAAwB,IAAU,EAAM,GAAa,EAAU,EAAQ,EAAM,EAA2E,MAAM,SAAS,EAAM,QAA3E,EAAM,KAAK,QAAQ,EAAE,CAAqE,KAAzD,GAAW,EAAE,IAAI,IAAkD,GAAG,KAAK,IAAI,EAAU,GAAG,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAM,MAC7f,SAAS,EAAa,EAAW,CAAC,GAAG,CAAC,EAAW,QAAQ,OAAO,KAAK,IAAM,EAAQ,EAAW,QAAQ,cAAoB,EAAa,GAAS,cAAc,GAAG,CAAC,GAAc,CAAC,EAAQ,OAAO,KAAK,IAAM,EAAS,MAAM,KAAK,EAAa,SAAS,CAAO,EAAa,EAAS,QAAQ,EAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,EAAS,OAAO,IAAI,CAAC,GAAG,IAAI,EAAa,SAAS,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