{"version":3,"file":"QR_code.B6DHo3uh.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","Image1"],"sources":["https:/framerusercontent.com/modules/JzZrvi0S89JPLqW0xYPO/44igl2jeYwDDxFEGP3DZ/F5gUaBUxQ.js","https:/framerusercontent.com/modules/cwIRGFXaNKsxSnYU0sPH/ynxyzwBkJ24aF39GV8qu/QR_code.js"],"sourcesContent":["// Generated by Framer (7c2f7bf)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image as Image1,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"cDgcsCrgq\",\"lVUKmrmXo\"];const serializationHash=\"framer-xK8Rd\";const variantClassNames={cDgcsCrgq:\"framer-v-c931dz\",lVUKmrmXo:\"framer-v-1aijhmj\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const JVmXBU6uC=undefined;const MqFxfGEuE=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const radiusForCorner=(value,cornerIndex)=>{if(typeof value===\"number\"&&Number.isFinite(value))return Math.max(0,value)+\"px\";if(typeof value!==\"string\"||typeof cornerIndex!==\"number\")return undefined;const segments=value.split(\" \");return segments[cornerIndex]||segments[cornerIndex-2]||segments[0];};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={Big:\"cDgcsCrgq\",Small:\"lVUKmrmXo\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,radius,screenImage,width,...props})=>{return{...props,JVmXBU6uC:radius??props.JVmXBU6uC??\"32px 32px 32px 32px\",MqFxfGEuE:screenImage??props.MqFxfGEuE??{pixelHeight:1688,pixelWidth:780,src:\"https://framerusercontent.com/images/8xn8DXbIdPvUwm8vHUmFG9nPM.jpg?width=780&height=1688\",srcSet:\"https://framerusercontent.com/images/8xn8DXbIdPvUwm8vHUmFG9nPM.jpg?width=780&height=1688 780w\"},variant:humanReadableVariantMap[props.variant]??props.variant??\"cDgcsCrgq\"};};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,MqFxfGEuE,JVmXBU6uC,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"cDgcsCrgq\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Image1,{...restProps,...gestureHandlers,background:{alt:\"Mobile Image\",fit:\"fill\",loading:getLoadingLazyAtYPosition(componentViewport?.y||0),pixelHeight:1080,pixelWidth:546,positionX:\"center\",positionY:\"top\",sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/I9yRU9jEN2S2ol2M7kgT5c6zOrc.png?width=546&height=1080\",srcSet:\"https://framerusercontent.com/images/I9yRU9jEN2S2ol2M7kgT5c6zOrc.png?scale-down-to=1024&width=546&height=1080 517w,https://framerusercontent.com/images/I9yRU9jEN2S2ol2M7kgT5c6zOrc.png?width=546&height=1080 546w\"},className:cx(scopingClassNames,\"framer-c931dz\",className,classNames),\"data-framer-name\":\"Big\",layoutDependency:layoutDependency,layoutId:\"cDgcsCrgq\",ref:refBinding,style:{...style},...addPropertyOverrides({lVUKmrmXo:{\"data-framer-name\":\"Small\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(Image1,{background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+10),pixelHeight:1688,pixelWidth:780,sizes:`calc(${componentViewport?.width||\"100vw\"} - 28px)`,...toResponsiveImage(MqFxfGEuE),...{positionX:\"center\",positionY:\"top\"}},className:\"framer-ckie1y\",layoutDependency:layoutDependency,layoutId:\"NfkQbCiEd\",style:{borderBottomLeftRadius:radiusForCorner(JVmXBU6uC,3),borderBottomRightRadius:radiusForCorner(JVmXBU6uC,2),borderTopLeftRadius:radiusForCorner(JVmXBU6uC,0),borderTopRightRadius:radiusForCorner(JVmXBU6uC,1)},...addPropertyOverrides({lVUKmrmXo:{background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+8),pixelHeight:1688,pixelWidth:780,sizes:`calc(${componentViewport?.width||\"100vw\"} - 20px)`,...toResponsiveImage(MqFxfGEuE),...{positionX:\"center\",positionY:\"top\"}}}},baseVariant,gestureVariant)})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-xK8Rd.framer-snuuh4, .framer-xK8Rd .framer-snuuh4 { display: block; }\",\".framer-xK8Rd.framer-c931dz { gap: 0px; height: 514px; overflow: hidden; position: relative; width: 260px; will-change: var(--framer-will-change-filter-override, filter); }\",\".framer-xK8Rd .framer-ckie1y { bottom: 10px; flex: none; left: 14px; overflow: hidden; position: absolute; right: 14px; top: 10px; will-change: var(--framer-will-change-override, transform); }\",\".framer-xK8Rd.framer-v-1aijhmj .framer-ckie1y { bottom: 8px; left: 10px; right: 10px; top: 8px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 514\n * @framerIntrinsicWidth 260\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"lVUKmrmXo\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"MqFxfGEuE\":\"screenImage\",\"JVmXBU6uC\":\"radius\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerF5gUaBUxQ=withCSS(Component,css,\"framer-xK8Rd\");export default FramerF5gUaBUxQ;FramerF5gUaBUxQ.displayName=\"Helper/ Mobile UI\";FramerF5gUaBUxQ.defaultProps={height:514,width:260};addPropertyControls(FramerF5gUaBUxQ,{variant:{options:[\"cDgcsCrgq\",\"lVUKmrmXo\"],optionTitles:[\"Big\",\"Small\"],title:\"Variant\",type:ControlType.Enum},MqFxfGEuE:{__defaultAssetReference:\"data:framer/asset-reference,8xn8DXbIdPvUwm8vHUmFG9nPM.jpg?originalFilename=Log+in+Screen-2.jpg&preferredSize=auto\",title:\"Screen Image\",type:ControlType.ResponsiveImage},JVmXBU6uC:{defaultValue:\"32px 32px 32px 32px\",title:\"Radius\",type:ControlType.BorderRadius}});addFonts(FramerF5gUaBUxQ,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerF5gUaBUxQ\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"260\",\"framerIntrinsicHeight\":\"514\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerVariables\":\"{\\\"MqFxfGEuE\\\":\\\"screenImage\\\",\\\"JVmXBU6uC\\\":\\\"radius\\\"}\",\"framerAutoSizeImages\":\"true\",\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"lVUKmrmXo\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerContractVersion\":\"1\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./F5gUaBUxQ.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n * @framerDisableUnusedStyles\n */export default function SmartQRCode(props){const{iosLink,androidLink,color,logoImage,size}=props;// CLEANUP COLOR: Remove '#' for the API call\nconst cleanColor=color.replace(\"#\",\"\");// REDIRECT LOGIC:\n// Since a QR code is a static image, it cannot \"detect\" an OS.\n// To achieve this, you should use a \"Smart Link\" (like Linktree or a custom redirector).\n// For now, we will default to the iOS link as the primary encoded data.\nconst encodedURL=encodeURIComponent(iosLink||\"https://apple.com\");// We use a reliable QR API that allows custom colors\nconst qrUrl=`https://api.qrserver.com/v1/create-qr-code/?size=${size}x${size}&data=${encodedURL}&color=${cleanColor}`;return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(\"img\",{src:qrUrl,style:{width:size,height:size,display:\"block\"},alt:\"QR Code\"}),logoImage&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:24,height:24,backgroundColor:\"white\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",borderRadius:4,boxShadow:\"0 2px 4px rgba(0,0,0,0.1)\"},children:/*#__PURE__*/_jsx(\"img\",{src:logoImage,style:{width:16,height:16,objectFit:\"contain\"}})})]});}const containerStyle={display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"};addPropertyControls(SmartQRCode,{iosLink:{type:ControlType.String,title:\"Store Link\",placeholder:\"Paste your Smart Link here\"},color:{type:ControlType.Color,title:\"QR Color\",defaultValue:\"#000000\"},logoImage:{type:ControlType.Image,title:\"Logo\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:200,min:100,max:500}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SmartQRCode\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"200\",\"framerDisableUnusedStyles\":\"\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./QR_code.map"],"mappings":"0UAC6e,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,yCAAznB,IAAqK,IAAkE,IAA4B,EAAiC,EAAW,CAAC,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,EAAmP,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,QAAQ,EAAQ,GAAiB,EAAM,IAAc,CAAC,GAAG,OAAO,GAAQ,UAAU,OAAO,SAAS,CAAK,EAAE,OAAO,KAAK,IAAI,EAAE,CAAK,EAAE,KAAK,GAAG,OAAO,GAAQ,UAAU,OAAO,GAAc,SAAS,OAAiB,IAAM,EAAS,EAAM,MAAM,GAAG,EAAE,OAAO,EAAS,IAAc,EAAS,EAAY,IAAI,EAAS,EAAG,EAAQ,EAAkB,GAAW,OAAO,GAAQ,UAAU,GAAc,OAAO,EAAM,KAAM,SAAiB,EA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