{"version":3,"file":"OrangeStoreRedirectButton.DoiruHcF.mjs","names":[],"sources":["https:/framerusercontent.com/modules/6Qk2tbQG5Z7jmgBaiQtA/H6EuYvwtPhXS2YBwN7xl/OrangeStoreRedirectButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function OrangeStoreRedirectButton(props){const{buttonText=\"Try for Free\",size=\"small\",width=\"auto\",height=\"auto\"}=props;const handleClick=()=>{// First check if it's a mobile device at all\nconst isMobile=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);// Then check for iOS\nconst isIOS=isMobile&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;// Store URLs\nconst IOS_STORE_URL=\"https://apps.apple.com/us/app/audionotes-ai-voice-notes/id6736822144?utm_source=lp&utm_medium=web&utm_campaign=phonescreen\";const ANDROID_STORE_URL=\"https://play.google.com/store/apps/details?id=com.labs.audionotes\";const WEB_APP_URL=\"https://home.audionotes.app/\";// If iOS, go to App Store, otherwise go to web\nif(isIOS){window.location.href=IOS_STORE_URL;}else{window.location.href=WEB_APP_URL;}};// Define size variations\nconst sizeStyles={small:{padding:\"8px 16px 8px 14px\",fontSize:\"14px\",lineHeight:\"22px\"},large:{padding:\"14px 24px 12px 24px\",fontSize:\"15px\",lineHeight:\"22px\"}};// Container styles\nconst containerStyle={width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"};// Button styles\nconst buttonStyle={background:\"#FF3500\",borderRadius:\"100px\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",cursor:\"pointer\",width:width===\"fill\"?\"100%\":\"fit-content\",height:height===\"fill\"?\"100%\":\"fit-content\",...sizeStyles[size]};const textStyle={fontFamily:\"Inter\",fontWeight:600,letterSpacing:\"-0.4px\",color:\"white\",fontSize:sizeStyles[size].fontSize,lineHeight:sizeStyles[size].lineHeight,whiteSpace:\"nowrap\"};return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"div\",{style:buttonStyle,onClick:handleClick,children:/*#__PURE__*/_jsx(\"span\",{style:textStyle,children:buttonText})})});}// Add property controls\naddPropertyControls(OrangeStoreRedirectButton,{buttonText:{title:\"Button Text\",type:ControlType.Enum,options:[\"Try for Free\",\"Download App\",\"Sign In\",\"Get the App\"],defaultValue:\"Try for Free\"},size:{title:\"Size\",type:ControlType.Enum,options:[\"small\",\"large\"],defaultValue:\"small\"},width:{title:\"Width\",type:ControlType.Enum,options:[\"auto\",\"fill\"],defaultValue:\"auto\"},height:{title:\"Height\",type:ControlType.Enum,options:[\"auto\",\"fill\"],defaultValue:\"auto\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OrangeStoreRedirectButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OrangeStoreRedirectButton.map"],"mappings":"iLAMG,SAAwB,EAA0B,EAAM,CAAC,GAAK,CAAC,aAAW,eAAe,OAAK,QAAQ,QAAM,OAAO,SAAO,QAAQ,EAAY,MAAgB,CAClJ,4BAA4B,KAAK,EAAU,UAAU,EAC9C,mBAAmB,KAAK,EAAU,UAAU,EAAE,CAAC,EAAO,SAElE,EAAO,SAAS,KAAK,6HAAoB,EAAO,SAAS,KAAK,gCAClE,EAAW,CAAC,MAAM,CAAC,QAAQ,oBAAoB,SAAS,OAAO,WAAW,OAAO,CAAC,MAAM,CAAC,QAAQ,sBAAsB,SAAS,OAAO,WAAW,OAAO,CAAC,CAE2Q,OAAoB,EAAK,MAAM,CAAC,MADtb,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAA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