{"version":3,"file":"shared.PCSCfaOT.mjs","names":["fonts","css","className"],"sources":["https:/framerusercontent.com/modules/5kUjoCrpPd4oFfWlYQys/91ySOX8nhW5TncFpN9Pd/RedirectButton.js","https:/framerusercontent.com/modules/nny1MQ342KWfVT77sU28/2CPn7Rced8kHCd1xa8Sm/JRwfWFcK2.js","https:/framerusercontent.com/modules/tcxW8uh3cIR3CFhQBsN9/AWTke2T88ATIQlk0We5p/gojvBHhwr.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function AutoRedirectButton(props){const{url,delay,buttonText,autoRedirect}=props;// Transform the URL (kept for future use)\nconst transformUrl=inputUrl=>{try{const urlObj=new URL(inputUrl);urlObj.pathname=urlObj.pathname.replace(\"/clients/\",\"/registry/\");return urlObj.toString();}catch{return inputUrl;}};useEffect(()=>{if(!autoRedirect)return;// ← respect the switch\nconst timer=setTimeout(()=>{const transformedUrl=transformUrl(url);window.location.href=transformedUrl;},delay);return()=>clearTimeout(timer);},[url,delay,autoRedirect]);return /*#__PURE__*/_jsx(\"button\",{style:buttonStyle,children:buttonText});}AutoRedirectButton.defaultProps={url:\"https://bumi-terra.com/clients/\",delay:5e3,buttonText:\"Redirect\",autoRedirect:true};addPropertyControls(AutoRedirectButton,{url:{type:ControlType.String,title:\"URL\",defaultValue:\"https://bumi-terra.com/clients/\",placeholder:\"https://bumi-terra.com/clients/\"},delay:{type:ControlType.Number,title:\"Delay (ms)\",defaultValue:5e3,min:0,step:100},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"Redirect Disabled\"},autoRedirect:{// new control\ntype:ControlType.Boolean,title:\"Auto Redirect\",defaultValue:true}});const buttonStyle={padding:\"10px 20px\",fontSize:\"16px\",backgroundColor:\"none\",color:\"#none\",border:\"none\",borderRadius:\"5px\",cursor:\"pointer\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AutoRedirectButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RedirectButton.map","import{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-pujG0 .framer-styles-preset-1t5rg01:not(.rich-text-wrapper), .framer-pujG0 .framer-styles-preset-1t5rg01.rich-text-wrapper a { --framer-link-current-text-color: #e7edd3; --framer-link-current-text-decoration: underline; --framer-link-hover-text-color: #e7edd3; --framer-link-hover-text-decoration: underline; --framer-link-text-color: #e7edd3; --framer-link-text-decoration: underline; }\"];export const className=\"framer-pujG0\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (259a342)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-hsr4N .framer-styles-preset-x20mbj:not(.rich-text-wrapper), .framer-hsr4N .framer-styles-preset-x20mbj.rich-text-wrapper a { --framer-link-current-text-color: var(--token-b2620a0a-ad40-4a71-b1ad-aeb19e577df8, #fafafa); --framer-link-current-text-decoration: none; --framer-link-hover-text-color: var(--token-4a76b9fd-530f-4930-ba0d-e7d1a12ba0ef, #999999); --framer-link-hover-text-decoration: underline; --framer-link-text-color: var(--token-b2620a0a-ad40-4a71-b1ad-aeb19e577df8, #fafafa); --framer-link-text-decoration: underline; }\"];export const className=\"framer-hsr4N\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":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