{"version":3,"file":"HeaderAuthComponent.DaPvaF3A.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText","useGetUserData","_Fragment","AuthButtons"],"sources":["https:/framerusercontent.com/modules/UiMiAnrcVrQqRcNTa1xn/sSdM3mQD2lA6VMGZeoup/RAY9KftJn.js","https:/framer.com/m/AuthButtons-p5Ki.js@sSdM3mQD2lA6VMGZeoup","https:/framerusercontent.com/modules/CjCYPrzS4maJWHUnHkO1/41TfDEkvE3M1k0XC2H9L/HeaderAuthComponent.js"],"sourcesContent":["// Generated by Framer (3406f4c)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,cx,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 serializationHash=\"framer-4xGLg\";const variantClassNames={vt_zMzXDk:\"framer-v-fc1hcz\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:60,delay:0,mass:1,stiffness:500,type:\"spring\"};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 Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props};};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,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"vt_zMzXDk\",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__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-fc1hcz\",className,classNames),\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"vt_zMzXDk\",ref:refBinding,style:{...style},children:[/*#__PURE__*/_jsx(Link,{href:\"https://wirestock.io/login\",motionChild:true,nodeId:\"BjwGmea1a\",openInNewTab:true,scopeId:\"RAY9KftJn\",children:/*#__PURE__*/_jsx(motion.a,{className:\"framer-1sqwgt8 framer-1f89dgg\",\"data-framer-name\":\"Button\",layoutDependency:layoutDependency,layoutId:\"BjwGmea1a\",style:{backgroundColor:\"rgb(243, 243, 243)\",borderBottomLeftRadius:8,borderBottomRightRadius:8,borderTopLeftRadius:8,borderTopRightRadius:8},children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7UG9wcGlucy1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Poppins\", \"Poppins Placeholder\", sans-serif',\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"24px\",\"--framer-text-alignment\":\"center\"},children:\"Sign in\"})}),className:\"framer-1qq6mtp\",\"data-framer-name\":\"Button\",fonts:[\"FS;Poppins-semibold\"],layoutDependency:layoutDependency,layoutId:\"WW5bBg3Vd\",style:{\"--framer-paragraph-spacing\":\"0px\"},verticalAlignment:\"center\",withExternalLayout:true})})}),/*#__PURE__*/_jsx(Link,{href:\"https://wirestock.io/signup\",motionChild:true,nodeId:\"VzbQdk_Z3\",openInNewTab:false,scopeId:\"RAY9KftJn\",children:/*#__PURE__*/_jsx(motion.a,{className:\"framer-yxbk16 framer-1f89dgg\",\"data-framer-name\":\"Button\",layoutDependency:layoutDependency,layoutId:\"VzbQdk_Z3\",style:{backgroundColor:\"rgb(0, 0, 0)\",borderBottomLeftRadius:8,borderBottomRightRadius:8,borderTopLeftRadius:8,borderTopRightRadius:8},children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7UG9wcGlucy1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Poppins\", \"Poppins Placeholder\", sans-serif',\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"24px\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Sign up\"})}),className:\"framer-148axtp\",\"data-framer-name\":\"Button\",fonts:[\"FS;Poppins-semibold\"],layoutDependency:layoutDependency,layoutId:\"v07uETtLo\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-paragraph-spacing\":\"0px\"},verticalAlignment:\"center\",withExternalLayout:true})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-4xGLg.framer-1f89dgg, .framer-4xGLg .framer-1f89dgg { display: block; }\",\".framer-4xGLg.framer-fc1hcz { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 12px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: min-content; }\",\".framer-4xGLg .framer-1sqwgt8 { align-content: center; align-items: center; cursor: pointer; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: visible; padding: 8px 16px 8px 16px; position: relative; text-decoration: none; width: min-content; }\",\".framer-4xGLg .framer-1qq6mtp, .framer-4xGLg .framer-148axtp { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-4xGLg .framer-yxbk16 { align-content: center; align-items: center; cursor: pointer; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; overflow: visible; padding: 8px 16px 8px 16px; position: relative; text-decoration: none; width: min-content; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 40\n * @framerIntrinsicWidth 191.5\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerRAY9KftJn=withCSS(Component,css,\"framer-4xGLg\");export default FramerRAY9KftJn;FramerRAY9KftJn.displayName=\"AuthButtons\";FramerRAY9KftJn.defaultProps={height:40,width:191.5};addFonts(FramerRAY9KftJn,[{explicitInter:true,fonts:[{family:\"Poppins\",source:\"fontshare\",style:\"normal\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/E6J4GS76KHNRRUWODFCFOX2JRKNRSFVY/3GYVT5S4AH7VMPASDDKOTIPV6P3WJXGI/24R4YOH3G2SFDSTCNHOVGYEX3DMRC3CE.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerRAY9KftJn\",\"slots\":[],\"annotations\":{\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"191.5\",\"framerContractVersion\":\"1\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicHeight\":\"40\",\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerAutoSizeImages\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RAY9KftJn.map","/*\n * AuthButtons\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/UiMiAnrcVrQqRcNTa1xn/sSdM3mQD2lA6VMGZeoup/RAY9KftJn.js\"\nexport { default } from \"https://framerusercontent.com/modules/UiMiAnrcVrQqRcNTa1xn/sSdM3mQD2lA6VMGZeoup/RAY9KftJn.js\"\n","\"use client\";import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import useGetUserData from\"https://framerusercontent.com/modules/KJ8IYwqTO4ByMEbrKZ2C/7uWOueFqPyZdAwRR0clI/useGetUserData.js\";import AuthButtons from\"https://framer.com/m/AuthButtons-p5Ki.js@sSdM3mQD2lA6VMGZeoup\";// Component Styles\nconst styles={container:{height:\"100%\",width:\"100%\",position:\"relative\",display:\"flex\",justifyContent:\"center\",alignItems:\"start\"},avatar:{width:48,height:48,borderRadius:\"100%\",backgroundColor:\"rgb(243, 243, 243)\",cursor:\"pointer\",overflow:\"hidden\"},avatarImg:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}};function HeaderAuthComponent({userDetails}){const{loading,error,userData}=useGetUserData();return /*#__PURE__*/_jsx(_Fragment,{children:!loading&&/*#__PURE__*/_jsx(\"div\",{style:styles.container,children:userData?/*#__PURE__*/_jsx(\"div\",{style:styles.avatar,children:/*#__PURE__*/_jsx(\"a\",{href:\"/login\",children:/*#__PURE__*/_jsx(\"img\",{src:userData?.details?.data?.avatar_url,style:styles.avatarImg})})}):/*#__PURE__*/_jsx(AuthButtons,{})})});}export default HeaderAuthComponent;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeaderAuthComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{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