{"version":3,"file":"shared-lib.B2xVPlby.mjs","names":["useMemo","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/5ep9ZQPLRGFgRQkptANQ/AakeA9EbH9zPZ7oXpBUe/PersonalizedText.js","https:/framerusercontent.com/modules/w3s5DHDKQbySEhBdQHeD/n6hPrqvQpmoi5d81RADj/siteMetadata.js","https:/framerusercontent.com/modules/1Wq9v8SouvgalDx7GkzF/eO0AW4sSuJu5DUyd4pzz/augiA20Il.js","https:/framerusercontent.com/modules/tpeQ1EpEmJ33M3vIBW8I/MZTIK2zotQUi79sa9Y1i/M_arU7sU5.js"],"sourcesContent":["// Personalization text component that reads a URL parameter and displays it dynamically\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Personalization Text\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function PersonalizedText(props){const{paramName,fallbackText,prefix,suffix,textColor,font,sizingMode,hideIfNoParam,style}=props;const{paramValue,hasParam}=useMemo(()=>{if(typeof window!==\"undefined\"){const urlParams=new URLSearchParams(window.location.search);const value=urlParams.get(paramName);return{paramValue:value?decodeURIComponent(value):fallbackText,hasParam:value!==null};}return{paramValue:fallbackText,hasParam:false};},[paramName,fallbackText]);// Hide component if hideIfNoParam is true and no param was found\nif(hideIfNoParam&&!hasParam){return null;}const displayText=`${prefix}${paramValue}${suffix}`;const getWidthStyle=()=>{if(sizingMode===\"fill\"){return{width:\"100%\"};}else if(sizingMode===\"fit\"){return{width:\"max-content\"};}else{// fixed mode - use the style width from Framer\nreturn{};}};return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",color:textColor,...getWidthStyle(),...font},children:displayText});}addPropertyControls(PersonalizedText,{paramName:{type:ControlType.String,title:\"URL Parameter\",defaultValue:\"name\",placeholder:\"e.g., name, city, product\"},hideIfNoParam:{type:ControlType.Boolean,title:\"Hide if No Param\",defaultValue:false,enabledTitle:\"Hide\",disabledTitle:\"Show\"},fallbackText:{type:ControlType.String,title:\"Fallback Text\",defaultValue:\"Guest\",placeholder:\"Default text if param not found\"},prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"Hello, \",placeholder:\"Text before parameter\"},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"!\",placeholder:\"Text after parameter\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"32px\",variant:\"Semibold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"}},sizingMode:{type:ControlType.Enum,title:\"Width\",options:[\"fill\",\"fit\",\"fixed\"],optionTitles:[\"Fill\",\"Fit\",\"Fixed\"],defaultValue:\"fit\",displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PersonalizedText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PersonalizedText.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 (8e1ebfe)\nimport siteMetadata from\"https://framerusercontent.com/modules/w3s5DHDKQbySEhBdQHeD/n6hPrqvQpmoi5d81RADj/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-hMofT\",title:siteMetadata(params,activeLocale).title||\"Home\",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\"}}}","// Generated by Framer (8e1ebfe)\nimport siteMetadata from\"https://framerusercontent.com/modules/w3s5DHDKQbySEhBdQHeD/n6hPrqvQpmoi5d81RADj/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1rsroqd\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"y7k1vk\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"gnoxue\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-nG3Mt\",title:siteMetadata(params,activeLocale).title||\"Personalized Text\",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\"}}}"],"mappings":"mLAMG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,YAAU,eAAa,SAAO,SAAO,YAAU,OAAK,aAAW,gBAAc,SAAO,EAAW,CAAC,aAAW,YAAUA,MAAY,CAAC,GAAU,IAAS,OAAY,CAA6D,IAAM,EAAlD,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAuB,IAAI,EAAU,CAAC,MAAM,CAAC,WAAW,EAAM,mBAAmB,EAAM,CAAC,EAAa,SAAS,IAAQ,KAAK,CAAE,MAAM,CAAC,WAAW,EAAa,SAAS,GAAM,EAAG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