{"version":3,"file":"DetectAndServe.DaEnL8Dn.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Image","RichText","useState"],"sources":["https:/framerusercontent.com/modules/Re38VyAcoJk5MmO9LVDc/6TqhjgXLfz9J9p4u8zfp/EZgr9XKiZ.js","https:/framerusercontent.com/modules/VFCnshpFpU1SxbePc4yw/wxeU4EvXdHuMyz76OPEF/DetectAndServe.js"],"sourcesContent":["// Generated by Framer (b58c572)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image,Link,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={rRO2sVkD9:{hover:true},YD7MReaRU:{hover:true}};const cycleOrder=[\"rRO2sVkD9\",\"YD7MReaRU\"];const serializationHash=\"framer-bqRWR\";const variantClassNames={rRO2sVkD9:\"framer-v-ybsn3a\",YD7MReaRU:\"framer-v-184wc6z\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const ZoAeYm22m=undefined;const Klfj3nRQw=undefined;const EIjG4IcdS=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const isSet=value=>{if(Array.isArray(value))return value.length>0;return value!==undefined&&value!==null&&value!==\"\";};const toResponsiveImage=value=>{if(typeof value===\"object\"&&value!==null&&typeof value.src===\"string\"){return value;}return typeof value===\"string\"?{src:value}:undefined;};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={\"Download Page\":\"YD7MReaRU\",Dark:\"rRO2sVkD9\"};const Variants=motion.create(React.Fragment);const getProps=({height,icon,id,link,store,width,...props})=>{return{...props,EIjG4IcdS:store??props.EIjG4IcdS??\"App Store\",Klfj3nRQw:icon??props.Klfj3nRQw,variant:humanReadableVariantMap[props.variant]??props.variant??\"rRO2sVkD9\",ZoAeYm22m:link??props.ZoAeYm22m};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,Klfj3nRQw,EIjG4IcdS,ZoAeYm22m,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"rRO2sVkD9\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const visible=isSet(Klfj3nRQw);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:ZoAeYm22m,motionChild:true,nodeId:\"rRO2sVkD9\",openInNewTab:true,scopeId:\"EZgr9XKiZ\",children:/*#__PURE__*/_jsxs(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-ybsn3a\",className,classNames)} framer-16i5bgy`,\"data-framer-name\":\"Dark\",layoutDependency:layoutDependency,layoutId:\"rRO2sVkD9\",ref:refBinding,style:{backgroundColor:\"rgba(255, 255, 255, 0.23)\",borderBottomLeftRadius:43,borderBottomRightRadius:43,borderTopLeftRadius:43,borderTopRightRadius:43,opacity:1,...style},variants:{\"rRO2sVkD9-hover\":{backgroundColor:\"rgba(255, 255, 255, 0.16)\"},\"YD7MReaRU-hover\":{opacity:.8},YD7MReaRU:{backgroundColor:\"rgb(255, 255, 255)\"}},...addPropertyOverrides({\"rRO2sVkD9-hover\":{\"data-framer-name\":undefined},\"YD7MReaRU-hover\":{\"data-framer-name\":undefined},YD7MReaRU:{\"data-framer-name\":\"Download Page\"}},baseVariant,gestureVariant),children:[visible!==false&&/*#__PURE__*/_jsx(Image,{background:{alt:\"\",fit:\"fit\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+(11+((componentViewport?.height||41)-22-17)/2)),pixelHeight:150,pixelWidth:116,sizes:\"12px\",...toResponsiveImage(Klfj3nRQw),...{positionX:\"center\",positionY:\"center\"}},className:\"framer-wyenq8\",layoutDependency:layoutDependency,layoutId:\"lFRkPkz89\",style:{filter:\"invert(0)\",WebkitFilter:\"invert(0)\"},variants:{YD7MReaRU:{filter:\"invert(1)\",WebkitFilter:\"invert(1)\"}}}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0F2ZW5pciBOZXh0IExUIFBybyBEZW1p\",\"--framer-font-family\":'\"Avenir Next LT Pro Demi\", \"Avenir Next LT Pro Demi Placeholder\", sans-serif',\"--framer-letter-spacing\":\"-0.02em\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"App Store\"})}),className:\"framer-18eqz1u\",fonts:[\"CUSTOM;Avenir Next LT Pro Demi\"],layoutDependency:layoutDependency,layoutId:\"XFl6NAJay\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:EIjG4IcdS,verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({YD7MReaRU:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0F2ZW5pciBOZXh0IExUIFBybyBEZW1p\",\"--framer-font-family\":'\"Avenir Next LT Pro Demi\", \"Avenir Next LT Pro Demi Placeholder\", sans-serif',\"--framer-letter-spacing\":\"-0.02em\",\"--framer-text-alignment\":\"center\"},children:\"App Store\"})})}},baseVariant,gestureVariant)})]})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-bqRWR.framer-16i5bgy, .framer-bqRWR .framer-16i5bgy { display: block; }\",\".framer-bqRWR.framer-ybsn3a { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; overflow: hidden; padding: 11px 20px 11px 20px; position: relative; text-decoration: none; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-bqRWR .framer-wyenq8 { flex: none; height: 17px; overflow: hidden; position: relative; width: 12px; will-change: var(--framer-will-change-filter-override, filter); }\",\".framer-bqRWR .framer-18eqz1u { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 41\n * @framerIntrinsicWidth 111.5\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"YD7MReaRU\":{\"layout\":[\"auto\",\"auto\"]},\"Pii0emoGt\":{\"layout\":[\"auto\",\"auto\"]},\"rGvPHOMMC\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"Klfj3nRQw\":\"icon\",\"EIjG4IcdS\":\"store\",\"ZoAeYm22m\":\"link\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerEZgr9XKiZ=withCSS(Component,css,\"framer-bqRWR\");export default FramerEZgr9XKiZ;FramerEZgr9XKiZ.displayName=\"Overlay Button\";FramerEZgr9XKiZ.defaultProps={height:41,width:111.5};addPropertyControls(FramerEZgr9XKiZ,{variant:{options:[\"rRO2sVkD9\",\"YD7MReaRU\"],optionTitles:[\"Dark\",\"Download Page\"],title:\"Variant\",type:ControlType.Enum},Klfj3nRQw:{title:\"Icon\",type:ControlType.ResponsiveImage},EIjG4IcdS:{defaultValue:\"App Store\",displayTextArea:false,title:\"Store\",type:ControlType.String},onEIjG4IcdSChange:{changes:\"EIjG4IcdS\",type:ControlType.ChangeHandler},ZoAeYm22m:{title:\"Link\",type:ControlType.Link}});addFonts(FramerEZgr9XKiZ,[{explicitInter:true,fonts:[{cssFamilyName:\"Avenir Next LT Pro Demi\",source:\"custom\",style:\"normal\",uiFamilyName:\"Avenir Next LT Pro\",url:\"https://framerusercontent.com/assets/dyDPqDj2hWJ8lfkZQoMsmKu8s68.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerEZgr9XKiZ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerVariables\":\"{\\\"Klfj3nRQw\\\":\\\"icon\\\",\\\"EIjG4IcdS\\\":\\\"store\\\",\\\"ZoAeYm22m\\\":\\\"link\\\"}\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicHeight\":\"41\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"111.5\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"YD7MReaRU\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"Pii0emoGt\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"rGvPHOMMC\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EZgr9XKiZ.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export const withDynamicLink=Component=>{return props=>{const[link,setLink]=useState(\"https://play.google.com/store/apps/details?id=com.flipcash.app.android\");useEffect(()=>{const userAgent=navigator.userAgent||navigator.vendor||window.opera;if(/android/i.test(userAgent)){setLink(\"https://play.google.com/store/apps/details?id=com.flipcash.app.android\");}else if(/iPad|iPhone|iPod/.test(userAgent)&&!window.MSStream){setLink(\"https://apps.apple.com/az/app/flipcash/id6758636374\");}},[]);const handleClick=e=>{e.preventDefault();window.location.href=link;};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};};\nexport const __FramerMetadata__ = {\"exports\":{\"withDynamicLink\":{\"type\":\"reactHoc\",\"name\":\"withDynamicLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DetectAndServe.map"],"mappings":"+aACqkB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,iDAAprB,IAAyK,IAAkE,IAA4B,CAAgC,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,mBAAmB,CAA4Q,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,EAAM,GAAW,MAAM,QAAQ,EAAM,CAAQ,EAAM,OAAO,EAAS,G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