"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkUAOQMJLMjs = require('./chunk-UAOQMJLM.js');var _chunkPNBOL6KRjs = require('./chunk-PNBOL6KR.js');require('react');var _buttons = require('@baseapp-frontend/design-system/components/native/buttons');var _icons = require('@baseapp-frontend/design-system/components/native/icons');var _typographies = require('@baseapp-frontend/design-system/components/native/typographies');var _views = require('@baseapp-frontend/design-system/components/native/views');var _native = require('@baseapp-frontend/design-system/providers/native');var _exporouter = require('expo-router');var _reactnative = require('react-native');var _reactrelay = require('react-relay');var _jsxruntime = require('react/jsx-runtime');var I=function(u){var a,d,l,f=u.profile,v=_native.useTheme.call(void 0, ),e=_chunkUAOQMJLMjs.a.call(void 0, v),o=_reactrelay.useFragment.call(void 0, _chunkPNBOL6KRjs.a,f),p=_exporouter.useRouter.call(void 0, );return _jsxruntime.jsxs.call(void 0, _views.PageViewWithHeader,{style:e.container,children:[_jsxruntime.jsxs.call(void 0, _views.View,{style:e.headerContainer,children:[_jsxruntime.jsx.call(void 0, _reactnative.Image,{source:{uri:o==null||(a=o.bannerImage)===null||a===void 0?void 0:a.url},style:e.bannerImage}),_jsxruntime.jsx.call(void 0, _reactnative.Image,{source:{uri:o==null||(d=o.image)===null||d===void 0?void 0:d.url},style:e.profileImage})]}),_jsxruntime.jsxs.call(void 0, _views.View,{style:e.infoContainer,children:[_jsxruntime.jsxs.call(void 0, _views.View,{style:e.nameContainer,children:[_jsxruntime.jsx.call(void 0, _typographies.Text,{variant:"h6",color:"high",children:_optionalChain([o, 'optionalAccess', _ => _.name])}),_jsxruntime.jsxs.call(void 0, _typographies.Text,{variant:"body2",color:"low",children:["@",o==null||(l=o.urlPath)===null||l===void 0||(l=l.path)===null||l===void 0?void 0:l.replace("/","")]})]}),_jsxruntime.jsxs.call(void 0, _views.View,{style:e.statsContainer,children:[_jsxruntime.jsxs.call(void 0, _views.View,{style:e.statContainer,children:[_jsxruntime.jsx.call(void 0, _typographies.Text,{variant:"h6",color:"high",children:_optionalChain([o, 'optionalAccess', _2 => _2.followersCount])}),_jsxruntime.jsx.call(void 0, _typographies.Text,{variant:"body2",color:"low",children:"Followers"})]}),_jsxruntime.jsxs.call(void 0, _views.View,{style:[e.statContainer,e.leftBorder],children:[_jsxruntime.jsx.call(void 0, _typographies.Text,{variant:"h6",color:"high",children:_optionalChain([o, 'optionalAccess', _3 => _3.followingCount])}),_jsxruntime.jsx.call(void 0, _typographies.Text,{variant:"body2",color:"low",children:"Following"})]})]}),_jsxruntime.jsx.call(void 0, _typographies.Text,{style:e.biography,variant:"caption",color:"low",children:_optionalChain([o, 'optionalAccess', _4 => _4.biography])}),_jsxruntime.jsxs.call(void 0, _views.View,{style:e.buttonContainer,children:[_jsxruntime.jsx.call(void 0, _buttons.Button,{size:"medium",mode:"soft",color:"inherit",icon:_icons.EditIcon,style:e.button,contentStyle:e.buttonContent,onPress:function(){p.push("/profile-settings")},children:"Edit Profile"}),_jsxruntime.jsx.call(void 0, _buttons.Button,{size:"medium",mode:"soft",color:"inherit",icon:_icons.ShareIcon,style:e.button,contentStyle:e.buttonContent,children:"Share profile"})]})]})]})},q= exports.a =I;exports.a = q;
//# sourceMappingURL=chunk-HKPTH2XI.js.map