-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
layout-938dc40203995ba9.js
2 lines (2 loc) · 201 KB
/
layout-938dc40203995ba9.js
1
2
"use strict";(("undefined"!=typeof self?self:this).webpackChunk_cb_app=("undefined"!=typeof self?self:this).webpackChunk_cb_app||[]).push([[14],{2191:(e,a,n)=>{n.r(a)},2178:(e,a,n)=>{n.r(a)},1494:(e,a,n)=>{n.d(a,{Z:()=>g});var l=n(0),t=n(108),i=n(526),s=n(10),r=n(48),o=n(60),d=n(72),c=n(159),u=n(2207),m=n(185),p=n(2);function g({title:e,centerContent:a,contentPreference:n="noPreference",hideFooter:s,maxWidth:r,bottomNavigation:d,tabNavigation:g,showBackButton:k=!1,hideSearch:h,hideBuySellButton:f,hideSendReceiveButton:b,hideFloatingTradeButton:x,hideChecklistBanner:S,contentPaddingOverride:F,showDarkModeToggle:v,alignContent:w,showStickyFooter:C=!1,stretch:T,whiteBackground:j,paddingBottomHeader:M,showP2PCreateButton:L=!1,showMultiPortfolioDisclaimer:I=!1,onHeaderMounted:_,children:K}){const[N,B]=(0,l.useState)(),[P,A]=(0,l.useState)(),[Z,D]=(0,l.useState)(),[R,V]=(0,l.useState)(),{setLayoutState:U,headerMounted:E}=(0,c.Vn)(),H=(0,o.Z)();(0,l.useEffect)((()=>{E&&_?.()}),[E]),(0,l.useEffect)((()=>{const e={contentPreference:n,hideFooter:s,maxWidth:r,hideSearch:h,hideBuySellButton:f,hideSendReceiveButton:b,hideFloatingTradeButton:x,hideChecklistBanner:S,showDarkModeToggle:v,alignContent:w,showStickyFooter:C,stretch:T,whiteBackground:j,paddingBottomHeader:M,showP2PCreateButton:L,showMultiPortfolioDisclaimer:I};return U(e),U(e)}),[r,F]),(0,l.useEffect)((()=>{B(document.getElementById(m.Ce)),A(document.getElementById(m.wN)),D(document.getElementById(m.aY)),V(document.getElementById(m.uf))}),[E]);const O=(0,l.useMemo)((()=>{const n=[];return N&&n.push(t.createPortal("string"==typeof e||void 0===e?(0,p.jsx)(u.Z,{title:e,showBackButton:k}):e,N)),a&&P&&n.push(t.createPortal(a,P)),d&&Z&&n.push(t.createPortal(d,Z)),g&&R&&n.push(t.createPortal(g,R)),n}),[d,Z,g,R,a,P,k,e,N]),z=(0,l.useMemo)((()=>H?K:(0,p.jsx)(y,{contentPaddingOverride:F,children:K})),[H,K,F]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(i.ql,{children:(0,p.jsx)("title",{children:"string"==typeof e&&e?`${e} · Coinbase`:"Coinbase"})}),O,z]})}const y=(0,s.ZP)(r.Z).withConfig({displayName:"LayoutConfiguration__Wrapper",componentId:"vaxe8t-0"})(["flex-grow:1;flex-direction:column;padding:",";"],(({contentPaddingOverride:e,theme:a})=>void 0!==e?`${(0,d.Z)(e)}px`:`${a.size.huge}`))},1249:(e,a,n)=>{n.d(a,{Z:()=>i});var l=n(0),t=n(15);const i=(0,l.createContext)({isDrawerOpen:!1,setDrawerOpen(){(0,t.cB)(new Error("TradeDrawerContext not provided"),{owner:"infra",context:"app"})}})},1470:(e,a,n)=>{n.d(a,{Z:()=>d});var l=n(0),t=n(10),i=n(15),s=n(2);function r({enabled:e,onClick:a,position:n="absolute"}){const{canRender:l,isVisible:t}=(0,i.dB)({canDisplay:!!e,transitionTime:350});return l?(0,s.jsx)(o,{isVisible:t,onClick:a,position:n,"data-element":"LayoutBackdrop","data-component":"Backdrop"}):null}const o=t.ZP.div.withConfig({displayName:"Backdrop__LayoutBackdrop",componentId:"sc-1xjhtm5-0"})(["position:",";z-index:",";top:0;right:0;bottom:0;left:0;background:",";transition:opacity ","ms;opacity:",";pointer-events:",";"],(e=>"absolute"===e.position?"absolute":"fixed"),(e=>e.theme.zIndex.backdrop),(e=>e.theme.color.maskDark),350,(e=>e.isVisible?1:0),(e=>e.isVisible?"auto":"none")),d=(0,l.memo)(r)},1247:(e,a,n)=>{n.d(a,{Z:()=>k});var l=n(0),t=n(11),i=n(9),s=n(781),r=n(35),o=n(4),d=n(7),c=n(282),u=n(218),m=n(362),p=n(776),g=n(2);const y=(0,t.vU)({upsellTitleSimple:{id:"AdvancedTradeUpsell.upsellTitleSimple",defaultMessage:"Looking for Coinbase Advanced?"},upsellTitleAdvanced:{id:"AdvancedTradeUpsell.upsellTitleAdvanced",defaultMessage:"Looking for Coinbase?"},upsellDescription:{id:"AdvancedTradeUpsell.upsellDescription",defaultMessage:"Switch between Coinbase and Coinbase Advanced by toggling the switch in the main navigation."},tradeOnAdvanced:{id:"AdvancedTradeUpsell.tradeOnAdvanced",defaultMessage:"Trade on Coinbase Advanced"},tradeOnSimple:{id:"AdvancedTradeUpsell.tradeOnSimple",defaultMessage:"Trade on Coinbase"}});const k=function(){const{formatMessage:e}=(0,i.Z)(),{toggleProfileDropdown:a,profileDropdownRef:n}=(0,c.Z)(),{forceOpenSpotlight:t}=(0,m.U)(),k=(0,u.Z)(),h=(0,p.v)(),f=(0,l.useCallback)((()=>{t(k?"ADVANCED_SWITCH_INTRO_ADVANCED_MODE":"ADVANCED_SWITCH_INTRO_SIMPLE_MODE",1),(0,d.Kz)("advanced-mode-switch-upsell",{componentType:d.re.banner,action:d.Us.click}),h?n?.current?.closeMenu():a()}),[t,h,k,n,a]);return(0,g.jsx)(o.Box,{testID:"advanced-mode-upsell",spacing:2,maxWidth:378,"data-element":"Box","data-component":"AdvancedModeUpsell",children:(0,g.jsx)(s.j,{title:e(k?y.upsellTitleAdvanced:y.upsellTitleSimple),variant:"informational",startIcon:"info",numberOfLines:5,primaryAction:(0,g.jsx)(r.Button,{testID:"advanced-mode-upsell-primary-action-button",flush:"start",transparent:!0,compact:!0,onPress:f,children:e(k?y.tradeOnSimple:y.tradeOnAdvanced)}),"data-element":"Banner",children:e(y.upsellDescription)})})}},936:(e,a,n)=>{n.d(a,{Z:()=>y});var l=n(11),t=n(9),i=n(10),s=n(4),r=n(16),o=n(14),d=n(282),c=n(2197),u=n(933),m=n(363),p=n(2);const g=(0,l.vU)({modeSwitcherTooltip:{id:"Layout.AdvancedTradeToggle.modeSwitcherTooltip",defaultMessage:"Switch between Coinbase and Coinbase Advanced here"},upsellToolTip:{id:"Layout.AdvancedTradeToggle.upsellToolTip",defaultMessage:"Switch to Coinbase Advanced to access crypto futures"}});function y(){const{formatMessage:e}=(0,t.Z)(),a=(0,m.Z)(),{shouldShowFuturesUpsellTooltip:n}=(0,d.Z)(),[{shouldShowTooltipToAdvancedUser:l,shouldShowTooltipToSimpleUser:i}]=(0,u.Z)();return a?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(s.HStack,{spacing:3,gap:2,testID:"trade-options-selector",children:[l||i?(0,p.jsxs)(s.Box,{children:[(0,p.jsx)(k,{children:(0,p.jsx)(o.TextLabel2,{as:"p",color:"primaryForeground",children:e(g.modeSwitcherTooltip)})}),(0,p.jsx)(c.Z,{variant:"simple"})]}):(0,p.jsx)(c.Z,{variant:"simple"}),n?(0,p.jsxs)(s.Box,{children:[(0,p.jsx)(k,{children:(0,p.jsx)(o.TextLabel2,{as:"p",color:"primaryForeground",children:e(g.upsellToolTip)})}),(0,p.jsx)(c.Z,{variant:"advanced"})]}):(0,p.jsx)(c.Z,{variant:"advanced"})]}),(0,p.jsx)(s.Divider,{})]}):null}const k=i.ZP.div.withConfig({displayName:"AdvancedTradeToggle__PersistentTooltip",componentId:"sc-18q90mb-0"})(["background-color:",";position:absolute;left:-","px;width:","px;border-radius:",";padding:",";&:after{content:'';position:absolute;top:50%;left:100%;margin-top:-7px;border-width:8px;border-style:solid;border-color:transparent transparent transparent ",";}"],r.palette.foreground,300,300,r.borderRadius.rounded,r.spacing[2],r.palette.foreground)},2298:(e,a,n)=>{n.r(a),n.d(a,{DropdownContentV2:()=>T,default:()=>_});const l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DropdownContentV2Fragment",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"UserProperties",kind:"LinkedField",name:"userProperties",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"avatarUrl",storageKey:null}],storageKey:null},action:"THROW",path:"viewer.userProperties"}],storageKey:null}],type:"Query",abstractKey:null,hash:"bdacb561acef014bc5d4d795b5a47d84"},t=l;var i=n(0),s=n(11),r=n(9),o=n(10),d=n(348),c=n(64),u=n(55),m=n(4),p=n(16),g=n(14),y=n(181),k=n(290),h=n(3),f=n(3990),b=n(3991),x=n(282),S=n(502),F=n(1247),v=n(936),w=n(2);const C=(0,s.vU)({manageProfile:{id:"Layout.DropdownContentV2.manageProfile",defaultMessage:"Manage profile"},darkMode:{id:"Layout.DropdownContentV2.darkMode",defaultMessage:"Dark mode"}});function T({queryRef:e,menuItems:a,showDarkModeToggle:n=!1}){const{formatMessage:l}=(0,r.Z)(),{toggleProfileDropdown:i}=(0,x.Z)(),s=(0,S.E)(),o=(0,h.Jc)(t,e),{viewer:d}=o,{avatarUrl:c,email:p,name:y}=d.userProperties;return(0,w.jsxs)(m.VStack,{width:"100%","data-element":"VStack","data-component":"DropdownContentV2",children:[(0,w.jsx)(M,{"data-element":"ManageProfileLink",children:(0,w.jsxs)(m.HStack,{width:"100%",gap:2,spacing:3,alignItems:"center","data-element":"HStack",children:[!!c&&(0,w.jsx)(f.Z,{size:48,src:c}),(0,w.jsxs)(m.VStack,{width:"100%",spacingEnd:3,overflow:"hidden","data-element":"VStack",children:[(0,w.jsx)(m.Box,{"data-element":"Box",children:(0,w.jsx)(g.TextHeadline,{overflow:"truncate",as:"p","data-element":"TextHeadline",children:y})}),(0,w.jsx)(m.Box,{spacingBottom:.5,"data-element":"Box",children:(0,w.jsx)(g.TextLabel2,{overflow:"truncate",as:"p","data-element":"TextLabel2",children:p})}),(0,w.jsx)(g.TextLabel1,{as:"p",color:"foregroundMuted","data-element":"TextLabel1",children:l(C.manageProfile)})]}),(0,w.jsx)(u.Icon,{name:"caretRight",color:"foregroundMuted",size:"s","data-element":"Icon"})]})}),(0,w.jsx)(m.Divider,{"data-element":"Divider"}),s?(0,w.jsx)(F.Z,{}):(0,w.jsx)(v.Z,{}),(0,w.jsx)(m.VStack,{spacing:3,gap:3,"data-element":"VStack",children:a.flatMap((e=>{const a=[(0,w.jsx)(j,{...e,onClick:a=>{e?.onClick(a),i()},id:e.key},e.key)];return"settings"===e.key&&n&&a.push((0,w.jsx)(L,{},"dark-mode")),a}))})]})}function j({to:e,href:a,title:n,onClick:l,onMouseEnter:t,openInNewTab:s,id:r}){const o=(0,i.useMemo)((()=>{switch(r){case"settings":return{navigationIconName:"settings"};case"taxes":return{navigationIconName:"taxes"};case"reports":return{iconName:"download"};case"support":return{navigationIconName:"support"};case"signout":return{iconName:"backArrow",iconSize:"s"};default:return{iconName:"caretRight"}}}),[r]);return(0,w.jsx)(I,{to:e,href:a,onClick:l,onMouseEnter:t,openInNewTab:s,isNegative:"signout"===r,"data-element":"StyledLink","data-component":"MenuItem",children:(0,w.jsxs)(m.HStack,{gap:2,alignItems:"center","data-element":"HStack",children:[(0,w.jsxs)(m.Box,{width:24,alignItems:"center",justifyContent:"center","data-element":"Box",children:["navigationIconName"in o&&(0,w.jsx)(c.NavigationIcon,{name:o.navigationIconName,size:o.iconSize||"m"}),"iconName"in o&&(0,w.jsx)(u.Icon,{name:o.iconName,size:o.iconSize||"m"})]}),(0,w.jsx)(g.TextHeadline,{as:"p","data-element":"TextHeadline",children:n})]})})}function M({children:e}){const a=(0,k.lS)("COINBASE_PUBLIC_ACCOUNTS_DOMAIN");return(0,w.jsx)(m.VStack,{width:"100%",testID:"manage-profile-link","data-element":"VStack","data-component":"ManageProfileLink",children:(0,w.jsx)(d.Z,{href:`${a}/profile`,openInNewTab:!0,"data-element":"Link",children:e})})}function L(){const{formatMessage:e}=(0,r.Z)();return(0,w.jsxs)(m.HStack,{gap:2,alignItems:"center","data-element":"HStack","data-component":"DarkModeMenuItem",children:[(0,w.jsx)(m.Box,{width:24,alignItems:"center",justifyContent:"center","data-element":"Box",children:(0,w.jsx)(c.NavigationIcon,{name:"moon",size:"m","data-element":"NavigationIcon"})}),(0,w.jsx)(g.TextHeadline,{as:"p","data-element":"TextHeadline",children:e(C.darkMode)}),(0,w.jsx)(m.Box,{flexGrow:1,justifyContent:"flex-end","data-element":"Box",children:(0,w.jsx)(b.p,{"data-element":"DarkModeSwitch"})})]})}const I=(0,o.ZP)(d.Z).withConfig({displayName:"DropdownContentV2__StyledLink",componentId:"ai57gz-0"})(["span,p{color:"," !important;}&:hover span,&:hover p{color:"," !important;}"],(e=>e.isNegative?p.palette.negative:e.theme.color.text),(e=>e.isNegative?(0,y.paletteValueToCssVar)("red40"):e.theme.color.iconFill)),_=T},834:(e,a,n)=>{n.d(a,{Z:()=>_,s:()=>j});const l={fragment:{argumentDefinitions:[t={defaultValue:null,kind:"LocalArgument",name:"assetUuid"},i={defaultValue:null,kind:"LocalArgument",name:"pageKey"}],kind:"Fragment",metadata:null,name:"FinPromFooterQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:s=[{kind:"Literal",name:"categories",value:["UI_COMPONENT_CATEGORY_FOOTER_DISCLAIMER"]},{fields:[{fields:[{kind:"Variable",name:"assetUuid",variableName:"assetUuid"},{kind:"Variable",name:"pageKey",variableName:"pageKey"}],kind:"ObjectValue",name:"footerDisclaimerFilter"}],kind:"ObjectValue",name:"filter"},{kind:"Literal",name:"surface",value:"UI_COMPONENT_SURFACE_FOOTER_DISCLAIMER"}],concreteType:"UIComponentsConnection",kind:"LinkedField",name:"uiComponentsBySurface",plural:!1,selections:[{alias:null,args:null,concreteType:"UIComponentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"UIComponent",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"component",plural:!1,selections:[r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"UIComponentTextField",kind:"LinkedField",name:"title",plural:!1,selections:o=[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"UIComponentTextField",kind:"LinkedField",name:"description",plural:!1,selections:o,storageKey:null}],type:"UIComponentFooterDisclaimer",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,t],kind:"Operation",name:"FinPromFooterQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:s,concreteType:"UIComponentsConnection",kind:"LinkedField",name:"uiComponentsBySurface",plural:!1,selections:[{alias:null,args:null,concreteType:"UIComponentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"UIComponent",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"component",plural:!1,selections:[r,d,{kind:"InlineFragment",selections:[c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Node",abstractKey:"__isNode"}],storageKey:null},c],storageKey:null}],storageKey:null}],storageKey:null},c],storageKey:null}]},params:{id:"e9f554b89cc182a4db7568880c2b23033e9615b28fc3d76a23652a490c666f42",metadata:{},name:"FinPromFooterQuery",operationKind:"query",text:null}};var t,i,s,r,o,d,c;l.hash="25425cd737f238239d7c15a2f2f34a4a";const u=l;var m=n(0),p=n(11),g=n(9),y=n(32),k=n(347),h=n(29),f=n(4),b=n(14),x=n(3),S=n(84),F=n(1582),v=n(277),w=n(44),C=n(23),T=n(2);const j=(0,p.vU)({approved:{id:"FinPromFooter.approved",defaultMessage:"This Financial Promotion has been approved by Archax Ltd on 7 February 2024"},topFinPromFooterText:{id:"FinPromFooter.topFinPromFooterText",defaultMessage:"This data was sourced in real-time from Coinbase and other third party market vendors. Real-time data may encounter temporary delays due to system performance or downtime."},assetRisks:{id:"FinPromFooter.assetRisks",defaultMessage:"Past performance is not a reliable indicator of future results. <link>Learn more about asset risks</link>"}});function M({hasBackground:e=!0,isAssetTradable:a=!0,pageKey:n}){const{formatMessage:l}=(0,g.Z)(),{featureFlags:t}=(0,C.Z)(),i=t?.includes("2023.september.finprom"),s=(0,F.Z)();return i&&s&&a?(0,T.jsxs)(f.VStack,{spacingHorizontal:3,spacingBottom:3,spacingTop:2,dangerouslySetBackground:e?"rgba(132, 170, 253, 0.03)":void 0,alignItems:"center",testID:"FinPromFooter",gap:1,"data-element":"VStack","data-component":"FinPromFooterContent",children:["home"===n?(0,T.jsx)(b.TextLegal,{as:"p",color:"foregroundMuted",children:l(j.assetRisks,{link:e=>[(0,T.jsx)(b.Link,{href:"https://www.coinbase.com/asset-risks",openInNewWindow:!0,children:(0,T.jsx)(T.Fragment,{children:e})})]})}):null,(0,T.jsx)(b.TextLegal,{as:"p",color:"foregroundMuted","data-element":"TextLegal",children:l(j.topFinPromFooterText)}),(0,T.jsx)(b.TextLegal,{as:"p",color:"foregroundMuted","data-element":"TextLegal",children:l(j.approved)})]}):null}function L({hasBackground:e=!0,pageKey:a,isAssetTradable:n=!0}){const{assetUuid:l}=(0,v.Z)(!1),{formatMessage:t}=(0,g.Z)(),{viewer:i}=(0,x.pp)(u,{pageKey:a??"unknown",assetUuid:l||null}),s=i?.uiComponentsBySurface?.edges?.[0]?.node?.component,r=(0,m.useMemo)((()=>"UIComponentFooterDisclaimer"===s?.__typename?{title:s?.title?.text??null,description:s?.description?.text??null}:null),[s]);return r?.title&&n?(0,T.jsxs)(f.VStack,{spacingHorizontal:3,spacingBottom:3,dangerouslySetBackground:e?"rgba(132, 170, 253, 0.03)":void 0,alignItems:"center",testID:"DynamicFinPromFooter","data-element":"VStack","data-component":"DynamicFinPromFooterContent",children:["home"===a?(0,T.jsx)(b.TextLegal,{as:"p",color:"foregroundMuted",spacingBottom:1,children:t(j.assetRisks,{link:e=>[(0,T.jsx)(b.Link,{href:"https://www.coinbase.com/asset-risks",openInNewWindow:!0,children:(0,T.jsx)(T.Fragment,{children:e})})]})}):null,r.description&&(0,T.jsx)(b.TextLegal,{spacingBottom:1,as:"p",color:"foregroundMuted",children:r.description}),(0,T.jsx)(b.TextLegal,{as:"p",color:"foregroundMuted","data-element":"TextLegal",children:r.title})]}):null}function I({source:e,...a}){const n=(0,h.y)("kill_dynamic_footer_disclaimer_web"),l=(0,w.Q)("oct_2023_web_dynamic_footer_disclaimer")&&!n,{pathname:t}=(0,y.TH)(),i=(0,k.fA)(t);return"asset"===i&&"asset-overview"!==e?null:(0,T.jsx)(S.Z,{owner:"home",name:"FinPromFooter",context:"layout_fin_prop_footer",fallback:null,"data-element":"Boundary","data-component":"FinPromFooter",children:l?(0,T.jsx)(L,{...a,pageKey:i??"unknown"}):(0,T.jsx)(M,{...a,pageKey:i??"unknown"})})}const _=(0,m.memo)(I)},855:(e,a,n)=>{n.d(a,{Z:()=>v});const l={fragment:{argumentDefinitions:t=[{defaultValue:null,kind:"LocalArgument",name:"input"}],kind:"Fragment",metadata:null,name:"LocaleSelectorMutation",selections:[{alias:null,args:i=[{kind:"Variable",name:"input",variableName:"input"}],concreteType:null,kind:"LinkedField",name:"updateLocale",plural:!1,selections:[s={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],type:"UpdateLocaleSuccess",abstractKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:t,kind:"Operation",name:"LocaleSelectorMutation",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"updateLocale",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isUpdateLocalePayload"},s],storageKey:null}]},params:{id:"ee7eae91ba9f7fd36bfba333f1cf027bf70db5b2a0f6a3f5533ee79c322a2352",metadata:{},name:"LocaleSelectorMutation",operationKind:"mutation",text:null}};var t,i,s;l.hash="2b54fc14d9ffd3003bbb48c66a572c82";const r=l,o=function(){var e={alias:null,args:null,kind:"ScalarField",name:"locale",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LocaleSelectorQuery",selections:[{args:null,kind:"FragmentSpread",name:"useSupportedLocalesFragment"},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProperties",kind:"LinkedField",name:"userProperties",plural:!1,selections:[e],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"LocaleSelectorQuery",selections:[{alias:null,args:[{kind:"Literal",name:"appType",value:"RETAIL"}],concreteType:"CoinbaseSupportedLocale",kind:"LinkedField",name:"supportedLocales",plural:!0,selections:[e,{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:'supportedLocales(appType:"RETAIL")'},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProperties",kind:"LinkedField",name:"userProperties",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"featureFlags",storageKey:null},a,e],storageKey:null},a],storageKey:null}]},params:{id:"7e994d256d647be881296722ee63255030124b6f065cbedd62681505e3a16dd4",metadata:{},name:"LocaleSelectorQuery",operationKind:"query",text:null}}}();o.hash="35e60d2044c258ec156a129fd3b548c7";const d=o;var c=n(0),u=n(10),m=n(83),p=n(7),g=n(3),y=n(84),k=n(2167),h=n(2168),f=n(124),b=n(2);function x(){const e=(0,g.pp)(d,{}),{viewer:a}=e,{userProperties:n}=a,{locale:l}=n,{showApiErrorToast:t}=(0,f.Z)(),i=(0,h.Z)({queryRef:e}),[s]=(0,g.Db)(r),o=(0,c.useCallback)((e=>{const{value:a}=e.target;(0,p.Kz)("locale_switch",{action:p.Us.click,componentType:p.re.dropdown,new_locale:a,old_locale:l}),s({variables:{input:{value:a}},onError:({alreadyReportedError:e})=>{t(e)},onCompleted:()=>window.location.reload()})}),[l,t,s]);return(0,b.jsx)(F,{"data-element":"SelectWrapper","data-component":"LocaleSelectorContent",children:(0,b.jsx)(k.Z,{name:"locale",onChange:o,value:l??"en",options:i.map((e=>({key:e.locale,value:e.locale,children:e.displayName}))),"data-element":"Select"})})}function S(){return(0,b.jsx)(y.Z,{owner:"infra",name:"LocaleSelector",fallback:null,context:"app","data-element":"Boundary","data-component":"LocaleSelector",children:(0,b.jsx)(x,{"data-element":"LocaleSelectorContent"})})}const F=u.ZP.div.withConfig({displayName:"LocaleSelector__SelectWrapper",componentId:"ot2xk3-0"})(["margin-right:15px;@media (","){margin-top:15px;}"],m.Z.phone_small),v=(0,c.memo)(S)},1527:(e,a,n)=>{n.d(a,{Z:()=>_});var l=n(0),t=n(11),i=n(9),s=n(10),r=n(778),o=n(48),d=n(83),c=n(60),u=n(3),m=n(139),p=n(157),g=n(883),y=n(23),k=n(569),h=n(159),f=n(834),b=n(855),x=n(2);const S=(0,t.vU)({actionshelp:{id:"Footer.e522707.actions.help",defaultMessage:"Need help?"},linkslegalPrivacy:{id:"Footer.e522707.links.legalPrivacy",defaultMessage:"Legal & Privacy"},linkscareers:{id:"Footer.e522707.links.careers",defaultMessage:"Careers"},linkshome:{id:"Footer.e522707.links.home",defaultMessage:"Home"},linksRiskDisclosure:{id:"Footer.e522707.links.riskDisclosure",defaultMessage:"Risk Disclosure"},linksDisclosures:{id:"Footer.e522707.links.disclosures",defaultMessage:"Disclosures"}});function F(){const e=(0,c.Z)(),{formatMessage:a}=(0,i.Z)(),{featureFlags:n,countryCode:l}=(0,y.Z)(),t=(0,g.Z)(),{activeNavSelection:s}=(0,h.Vn)(),o=(0,k.Z)(),d=n?.includes("2022.jun.rds_requirement_enabled");return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(T,{justify:"center",active:s,children:(0,x.jsxs)(j,{auto:!0,align:"center",justify:"space-between",column:e,children:[(0,x.jsxs)(v,{auto:!0,children:[(0,x.jsx)(I,{href:"/home",children:a(S.linkshome)}),(0,x.jsx)(I,{href:"/careers",children:a(S.linkscareers)}),(0,x.jsx)(I,{href:"/legal/user_agreement",children:a(S.linkslegalPrivacy)}),"US"===l&&(0,x.jsx)(I,{href:"/legal/licenses",children:a(S.linksDisclosures)}),t&&d&&(0,x.jsx)(I,{href:"/legal/crypto_risk_statement/canada",children:a(S.linksRiskDisclosure)}),!e&&(0,x.jsxs)(M,{children:["© ",(new Date).getFullYear()," Coinbase"]})]}),(0,x.jsxs)(C,{align:"center",column:e,children:[(0,x.jsx)(u.zq,{instrumentationId:"Footer",fallback:null,children:(0,x.jsx)(m.Z,{owner:"infra",context:"locale_selector",children:(0,x.jsx)(p.Z,{owner:"infra",boundaryName:"LocaleSelector",context:"locale_selector",children:(0,x.jsx)(b.Z,{})})})}),!o&&(0,x.jsx)(w,{href:"https://support.coinbase.com/",children:(0,x.jsx)(r.Z,{size:"small",children:a(S.actionshelp)})}),e&&(0,x.jsxs)(L,{children:["© ",(new Date).getFullYear()," Coinbase"]})]})]})}),(0,x.jsx)(f.Z,{source:"footer"})]})}const v=(0,s.ZP)(o.Z).withConfig({displayName:"Footer__Links",componentId:"sc-1esv9sa-0"})(["@media (","){padding:10px;align-self:stretch;justify-content:center;border-bottom:",";}"],d.Z.phone,(e=>e.theme.border.border)),w=s.ZP.a.withConfig({displayName:"Footer__NeedHelp",componentId:"sc-1esv9sa-1"})(["@media (","){margin-top:15px;}"],d.Z.phone),C=(0,s.ZP)(o.Z).withConfig({displayName:"Footer__Right",componentId:"sc-1esv9sa-2"})(["flex:0 0 auto;"]),T=(0,s.ZP)(o.Z).withConfig({displayName:"Footer__Wrapper",componentId:"sc-1esv9sa-3"})(["background:",";@media not all and (","){height:64px;max-height:64px;padding:0 ",";",";}"],(e=>e.theme.color.backgroundWash),d.Z.phone,(e=>e.theme.size.huge),(e=>"accounts"!==e.active&&`border-top: ${e.theme.border.border}`)),j=(0,s.ZP)(o.Z).withConfig({displayName:"Footer__Content",componentId:"sc-1esv9sa-4"})(["font-size:14px;color:",";@media not all and (","){width:100%;max-width:","px;}"],(e=>e.theme.color.slate),d.Z.phone,(e=>e.theme.layout.width)),M=s.ZP.div.withConfig({displayName:"Footer__CopyrightLeft",componentId:"sc-1esv9sa-5"})(["margin-left:15px;"]),L=s.ZP.div.withConfig({displayName:"Footer__CopyrightRight",componentId:"sc-1esv9sa-6"})(["margin-right:15px;@media (","){margin:15px 0;}"],d.Z.phone),I=s.ZP.a.withConfig({displayName:"Footer__Link",componentId:"sc-1esv9sa-7"})(["&:not(:first-child){margin-left:15px;}"]),_=(0,l.memo)(F)},2299:(e,a,n)=>{n.r(a),n.d(a,{default:()=>b});const l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"HeaderBarNotificationButtonFragment",selections:[{args:null,kind:"FragmentSpread",name:"useNotificationBadgeCountFragment"},{args:null,kind:"FragmentSpread",name:"NotificationsDropdownHubButtonFragment"}],type:"Query",abstractKey:null,hash:"3042818b7d61963543bbc7b4a89daa1a"},t=l;var i=n(0),s=n(9),r=n(212),o=n(4),d=n(7),c=n(3610),u=n(3),m=n(1564),p=n(223),g=n(1369),y=n(1245),k=n(3700),h=n(3997),f=n(2);function b({queryRef:e}){const{showDropdown:a}=(0,g.x)(),n=(0,u.Jc)(t,e),l=(0,y.Z)(n),i=(0,p.ku)(d.Us.click,"notifications"),s=(0,p.ku)(d.Us.hover,"notifications");return a?(0,f.jsx)(m.Z,{owner:"notifications",context:"header_bar_bell_dropdown",children:(0,f.jsx)(x,{queryRef:n,badgeCount:l,onClick:i,onHover:s})}):(0,f.jsx)(m.Z,{owner:"notifications",context:"header_bar_bell_navigation","data-element":"ErrorBoundary","data-component":"HeaderBarNotificationButton",children:(0,f.jsx)(h.R,{to:"/notifications",badgeCount:l,onClick:i,onHover:s,"data-element":"NotificationBellButton"})})}function x({badgeCount:e,queryRef:a,onClick:n,onHover:l}){const{locale:t}=(0,s.Z)(),d=(0,r.useSpectrum)(),m=(0,i.useMemo)((()=>(0,f.jsx)(h.R,{badgeCount:e,onClick:n,onHover:l})),[e,n,l]);return(0,f.jsx)(o.Box,{maxHeight:40,"data-element":"Box","data-component":"NotificationDropdownButton",children:(0,f.jsx)(c.kR,{locale:t,platform:"retail-web",spectrum:d,Placeholder:o.Box,"data-element":"NotificationsFrameworkProvider",children:(0,f.jsx)(u.zq,{instrumentationId:"notifications-dropdown-hub-button",fallback:m,"data-element":"InstrumentedSuspense",children:(0,f.jsx)(k.o,{queryRef:a,badgeCount:e,iconComponent:m,"data-element":"NotificationsDropdownHubButton"})})})})}},1329:(e,a,n)=>{n.d(a,{b:()=>l,m:()=>t});const l="header-anchor-primary",t="header-anchor-secondary"},1489:(e,a,n)=>{n.d(a,{b:()=>O.b,Z:()=>H});const l={argumentDefinitions:[{kind:"RootArgument",name:"assetSlug"},{kind:"RootArgument",name:"assetUuid"},{defaultValue:null,kind:"LocalArgument",name:"chainId"},{kind:"RootArgument",name:"skipAssetSlug"},{kind:"RootArgument",name:"skipAssetUuid"},{defaultValue:null,kind:"LocalArgument",name:"skipDappWalletExperiment"}],kind:"Fragment",metadata:null,name:"HeaderBarFragment",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{condition:"skipAssetSlug",kind:"Condition",passingValue:!1,selections:[{alias:null,args:[{kind:"Variable",name:"slug",variableName:"assetSlug"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetBySlug",plural:!1,selections:t=[{args:null,kind:"FragmentSpread",name:"useStakingV2RewardAndExperimentFragment"}],storageKey:null}]},{condition:"skipAssetUuid",kind:"Condition",passingValue:!1,selections:[{alias:null,args:[{kind:"Variable",name:"uuid",variableName:"assetUuid"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetByUuid",plural:!1,selections:t,storageKey:null}]}],storageKey:null},{args:[{kind:"Variable",name:"chainId",variableName:"chainId"},{kind:"Variable",name:"skip",variableName:"skipDappWalletExperiment"}],kind:"FragmentSpread",name:"useHasDappWalletAddressFragment"}],type:"Query",abstractKey:null};var t;l.hash="259fd3b3e8bb5633ce73912fbe2d79b6";const i=l;var s=n(0),r=n(896),o=n(3),d=n(139),c=n(923),u=n(1583),m=n(1433),p=n(218),g=n(10),y=n(48),k=n(72),h=n(386),f=n(185),b=n(159),x=n(897),S=n(2);function F({centerContent:e,rightContent:a,top:n=0,isFallback:l,sideBarWidth:t}){const{isLocked:i,scrollbarSize:r}=(0,h.Z)(),c=(0,s.useMemo)((()=>i?24+r:24),[i,r]),{setLayoutState:u,headerHeight:m}=(0,b.Vn)(),p=(0,s.useCallback)((e=>{!l&&e&&u({headerMounted:!0,headerHeight:n+f.j0})}),[l,u,n]),g={top:n,sideBarWidth:t,paddingRight:c};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(I,{paddingTop:m||f.j0}),(0,S.jsx)(d.Z,{owner:"infra",fallback:()=>(0,S.jsx)(w,{...g,children:(0,S.jsx)(v,{})}),context:"header_bar",children:(0,S.jsx)(o.zq,{instrumentationId:"HeaderBarDesktop",fallback:(0,S.jsx)(w,{...g}),children:(0,S.jsxs)(w,{...g,children:[(0,S.jsx)(v,{ref:p},"header-left-content"),(0,S.jsx)(j,{id:f.wN,children:e}),(0,S.jsx)(M,{children:a})]})})})]})}const v=(0,s.forwardRef)(((e,a)=>(0,S.jsx)(d.Z,{owner:"infra",context:"header_bar",children:(0,S.jsx)(T,{children:(0,S.jsx)(L,{ref:a,"data-testid":"pageTitle",id:f.Ce})})})));v.displayName="LeftContent";const w=(0,g.ZP)(x.U).withConfig({displayName:"HeaderBarDesktop__Header",componentId:"sc-14zi61m-0"})(["position:fixed;left:0;transition:top ","ms;top:","px;right:0;z-index:",";margin-left:","px;padding-left:24px;padding-right:","px;display:flex;justify-content:space-between;min-height:","px;max-height:","px;background-color:",";"],f.aV,(({top:e=0})=>(0,k.Z)(e)),(e=>e.theme.zIndex.high),(e=>(0,k.Z)(e.sideBarWidth)),(e=>(0,k.Z)(e.paddingRight)),f.j0,f.j0,(e=>e.theme.color.white)),C=(0,g.ZP)(y.Z).withConfig({displayName:"HeaderBarDesktop__BaseHeaderSection",componentId:"sc-14zi61m-1"})(["height:100%;"]),T=(0,g.ZP)(C).withConfig({displayName:"HeaderBarDesktop__Left",componentId:"sc-14zi61m-2"})(["font-size:20px;font-weight:",";align-items:center;flex-shrink:0;padding-right:",";"],(e=>e.theme.fontWeight.bold),(e=>e.theme.size.large)),j=(0,g.ZP)(C).withConfig({displayName:"HeaderBarDesktop__Center",componentId:"sc-14zi61m-3"})(["overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;&::-webkit-scrollbar{display:none;}"]),M=(0,g.ZP)(C).withConfig({displayName:"HeaderBarDesktop__Right",componentId:"sc-14zi61m-4"})(["flex-shrink:0;"]),L=g.ZP.h1.withConfig({displayName:"HeaderBarDesktop__Title",componentId:"sc-14zi61m-5"})(["font-size:20px;font-weight:500;"]),I=(0,g.ZP)(y.Z).withConfig({displayName:"HeaderBarDesktop__PaddingTop",componentId:"sc-14zi61m-6"})(["transition:height ","ms;height:","px;"],f.aV,(({paddingTop:e})=>(0,k.Z)(e)));var _=n(4);function K({centerContent:e,rightContent:a,top:n=0,paddingBottom:l=16}){const{isLocked:t,scrollbarSize:i}=(0,h.Z)(),r=(0,p.Z)(),c=(0,b.Or)({collapsed:r}),u=(0,s.useMemo)((()=>t?24+i:24),[t,i]),{setLayoutState:m,headerHeight:g}=(0,b.Vn)(),y=(0,s.useRef)(null),k=(0,s.useCallback)((e=>{m({headerHeight:n+(e||0)})}),[m,n]);(0,s.useEffect)((function(){if(!y.current)return;const e=new ResizeObserver((()=>{k(y.current?.offsetHeight)}));return e.observe(y.current),()=>e.disconnect()}),[k]);const x=(0,s.useCallback)((e=>{e&&m({headerMounted:!0})}),[m]),F={sideBarWidth:c,top:n,paddingRight:u,paddingBottom:l};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(B,{paddingTop:g||f.dH}),(0,S.jsx)(d.Z,{owner:"infra",fallback:()=>(0,S.jsx)(P,{...F,children:(0,S.jsx)(N,{})}),context:"header_bar",children:(0,S.jsx)(o.zq,{instrumentationId:"HeaderBarDesktopV2",fallback:(0,S.jsx)(P,{...F}),children:(0,S.jsxs)(P,{...F,ref:y,children:[(0,S.jsxs)(_.HStack,{alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,S.jsx)(N,{ref:x},"header-left-content"),(0,S.jsx)(D,{id:f.wN,children:e}),(0,S.jsx)(R,{children:a})]}),(0,S.jsx)(U,{id:f.uf})]})})})]})}const N=(0,s.forwardRef)(((e,a)=>(0,S.jsx)(d.Z,{owner:"infra",context:"header_bar",children:(0,S.jsx)(Z,{children:(0,S.jsx)(V,{ref:a,"data-testid":"pageTitle",id:f.Ce})})})));N.displayName="LeftContent";const B=(0,g.ZP)(y.Z).withConfig({displayName:"HeaderBarDesktopV2__PaddingTop",componentId:"tq0hj4-0"})(["transition:height ","ms;height:","px;"],f.aV,(({paddingTop:e})=>(0,k.Z)(e))),P=(0,g.ZP)(x.U).withConfig({displayName:"HeaderBarDesktopV2__Header",componentId:"tq0hj4-1"})(["position:fixed;left:","px;transition:top ","ms;top:","px;right:0;z-index:",";padding-left:24px;padding-right:","px;padding-bottom:","px;padding-top:16px;display:flex;flex-direction:column;justify-content:space-between;min-height:","px;background-color:",";"],(e=>(0,k.Z)(e.sideBarWidth)),f.aV,(({top:e=0})=>(0,k.Z)(e)),(e=>e.theme.zIndex.high),(e=>(0,k.Z)(e.paddingRight)),(({paddingBottom:e=16})=>(0,k.Z)(e)),f.j0,(e=>e.theme.color.white)),A=(0,g.ZP)(y.Z).withConfig({displayName:"HeaderBarDesktopV2__BaseHeaderSection",componentId:"tq0hj4-2"})(["height:100%;"]),Z=(0,g.ZP)(A).withConfig({displayName:"HeaderBarDesktopV2__Left",componentId:"tq0hj4-3"})(["font-size:20px;font-weight:",";align-items:center;flex-shrink:0;padding-right:",";"],(e=>e.theme.fontWeight.bold),(e=>e.theme.size.large)),D=(0,g.ZP)(A).withConfig({displayName:"HeaderBarDesktopV2__Center",componentId:"tq0hj4-4"})(["overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;&::-webkit-scrollbar{display:none;}"]),R=(0,g.ZP)(A).withConfig({displayName:"HeaderBarDesktopV2__Right",componentId:"tq0hj4-5"})(["flex-shrink:0;"]),V=g.ZP.h1.withConfig({displayName:"HeaderBarDesktopV2__Title",componentId:"tq0hj4-6"})(["font-size:20px;font-weight:500;"]),U=(0,g.ZP)(A).withConfig({displayName:"HeaderBarDesktopV2__Bottom",componentId:"tq0hj4-7"})(["width:100%;"]);function E({queryRef:e,...a}){const n=(0,o.Jc)(i,e),{viewer:l}=n,t=l.assetBySlug||l.assetByUuid||null,s=(0,p.Z)(),d=(0,c.Z)({collapsed:s}),g=(0,m.n)(n),y=(0,r.Z)(),k=g||y,h=(0,u.p)(k?null:t);return g||h||y?(0,S.jsx)(K,{...a}):(0,S.jsx)(F,{...a,sideBarWidth:d})}function H(e){const a=(0,c.Z)({collapsed:!1});return(0,S.jsx)(d.Z,{owner:"infra",fallback:()=>(0,S.jsx)(F,{...e,sideBarWidth:a,isFallback:!0}),context:"header_bar","data-element":"ErrorBoundary","data-component":"HeaderBarContainer",children:(0,S.jsx)(o.zq,{instrumentationId:"HeaderBarContainer",fallback:(0,S.jsx)(F,{...e,sideBarWidth:a,isFallback:!0}),"data-element":"InstrumentedSuspense",children:(0,S.jsx)(E,{...e,"data-element":"HeaderBarDesktopContent"})})})}var O=n(1329)},897:(e,a,n)=>{n.d(a,{G:()=>s,U:()=>i});var l=n(10),t=n(185);const i=l.ZP.nav.withConfig({displayName:"styles__BaseHeader",componentId:"sc-14kegwt-0"})(["display:flex;align-items:center;padding:16px;border-bottom:",";"],(e=>e.theme.border.border)),s=(0,l.ZP)(i).withConfig({displayName:"styles__HeaderMobile",componentId:"sc-14kegwt-1"})(["min-height:","px;max-height:","px;padding:0 ",";"],t.ys,t.ys,(e=>e.theme.size.huge))},1112:(e,a,n)=>{n.d(a,{Z:()=>i});var l=n(0),t=n(15);const i=(0,l.createContext)({sidebarCompression:"expanded",setLayoutState:()=>{(0,t.cB)(new Error("LayoutStateContext properties accessed outside of LayoutStateProvider"),{owner:"infra",context:"app"})}})},818:(e,a,n)=>{n.d(a,{Z:()=>s});var l=n(0),t=n(351),i=n(1112);function s(){return{...(0,l.useContext)(i.Z),...(0,l.useContext)(t.Lt)}}},923:(e,a,n)=>{n.d(a,{Z:()=>i});var l=n(185),t=n(818);function i({collapsed:e=!1}){const{sidebarCompression:a}=(0,t.Z)();return e||"collapsed"===a?l.$U:l.H6}},159:(e,a,n)=>{n.d(a,{ZP:()=>u,Vn:()=>m.Z,Or:()=>p.Z});var l=n(0),t=n(33),i=n(1112),s=n(83),r=n(770),o=n(60);var d=n(2);function c({children:e}){const[{userPreference:a,contentPreference:n,maxWidth:c,headerMounted:u,headerHeight:m,alignContent:p,hideFooter:g,hideSearch:y,hideBuySellButton:k,hideSendReceiveButton:h,hideFloatingTradeButton:f,hideChecklistBanner:b,hideReferralButton:x,showDarkModeToggle:S,showStickyFooter:F,stretch:v,whiteBackground:w,paddingBottomHeader:C,showP2PCreateButton:T,showMultiPortfolioDisclaimer:j,drawerWidth:M},L]=(0,l.useState)({userPreference:"noPreference",contentPreference:"noPreference",hideFooter:!0,hideSearch:!0,hideBuySellButton:!0,hideSendReceiveButton:!0,hideFloatingTradeButton:!0,hideChecklistBanner:!0,hideReferralButton:!1,showDarkModeToggle:!1,headerMounted:!1,headerHeight:0,alignContent:"center",showStickyFooter:!1,showP2PCreateButton:!1,showMultiPortfolioDisclaimer:!1,drawerWidth:0,setDrawerWidth:t.noop}),I=function(e,a){const n=(0,r.Z)();return(0,o.Z)()?"expanded":n.width>s.A.desktop_small?"noPreference"===e?"noPreference"===a?"expanded":a:e:"collapsed"}(a||"noPreference",n||"noPreference"),_=e=>{L((a=>({...a,drawerWidth:e})))},K=(0,l.useMemo)((()=>({sidebarCompression:I,maxWidth:c,headerMounted:u,headerHeight:m,alignContent:p,setLayoutState:e=>L((a=>({...a,...e}))),hideFooter:g,hideSearch:y,hideBuySellButton:k,hideSendReceiveButton:h,hideFloatingTradeButton:f,hideChecklistBanner:b,hideReferralButton:x,showDarkModeToggle:S,showStickyFooter:F,stretch:v,whiteBackground:w,paddingBottomHeader:C,showP2PCreateButton:T,showMultiPortfolioDisclaimer:j,drawerWidth:M,setDrawerWidth:_})),[I,c,u,m,p,g,y,k,h,f,b,x,S,F,v,w,C,T,j,M]);return(0,d.jsx)(i.Z.Provider,{value:K,"data-element":"unknown","data-component":"LayoutStateProvider",children:e})}const u=(0,l.memo)(c);var m=n(818),p=n(923)},1250:(e,a,n)=>{n.d(a,{e:()=>U,Z:()=>W});var l=n(0),t=n(11),i=n(9),s=n(32),r=n(10),o=n(48),d=n(2378),c=n(1373),u=n(154),m=n(1359),p=n(83),g=n(836),y=n(338),k=n(4),h=n(346),f=n(15),b=n(159);const x={fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EarnAmountBadgeQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{kind:"RequiredField",field:S={alias:null,args:null,concreteType:"EarnUserProgress",kind:"LinkedField",name:"earnUserProgress",plural:!1,selections:[{alias:null,args:null,concreteType:"EarnUserProgressEarnings",kind:"LinkedField",name:"earnings",plural:!1,selections:[{alias:null,args:null,concreteType:"EarnUserProgressCampaign",kind:"LinkedField",name:"activeCampaign",plural:!1,selections:[{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"remaining",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"eligibilityStatus",storageKey:null}],storageKey:null},action:"THROW",path:"viewer.earnUserProgress"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"EarnAmountBadgeQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[S,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"4056c9fb39ca3c8c131266213899f1c5a9c10d1bce6e33eafee0f4611f494d73",metadata:{},name:"EarnAmountBadgeQuery",operationKind:"query",text:null}};var S;x.hash="4898957c67fb49a1e9e206f5aaa12a9b";const F=x;var v=n(3),w=n(113),C=n(16),T=n(2);function j({text:e,compact:a}){return(0,T.jsx)(M,{compact:a,"data-element":"StyledPill","data-component":"PillLabel",children:e})}const M=r.ZP.div.withConfig({displayName:"PillLabel__StyledPill",componentId:"sc-9ynuht-0"})(["background:",";color:",";padding:","px;border-radius:4px;font-size:11px;font-weight:bold;margin-left:",";white-space:nowrap;@media (","){height:28px;font-size:10px;}"],"#ECF1FF",w.r.color.textAccent,(e=>e.compact?4:8),C.spacing[2],p.Z.phone_small),L=(0,l.memo)(j);function I({compact:e=!1}){const a=(0,v.pp)(F,{}),n=a.viewer.earnUserProgress.earnings,l=a.viewer.earnUserProgress.eligibilityStatus,t=Number(n.activeCampaign.remaining.value)>0,{formatNumber:s}=(0,i.Z)();return(0,T.jsx)(T.Fragment,{children:l&&t?(0,T.jsx)(k.Box,{spacingEnd:2,alignSelf:"flex-end",children:(0,T.jsx)(L,{text:s(Number(n.activeCampaign.remaining.value),{style:"currency",currency:n.activeCampaign.remaining.currency,notation:"compact"}),compact:e})}):null})}const _=(0,l.memo)(I);var K=n(779),N=n(348);const B={"/assets":["/accounts/:id/vault","/accounts/:id"],"/home":["/accounts/:id/vault","/accounts/:id"],"/trade":["/price/:name"]};function P({to:e,href:a,onClick:n,children:t,...i}){const r=function(e){return(0,l.useCallback)(((a,n)=>!!e&&(a?a.isExact:B[e]?(0,s.LX)(n.pathname,{path:B[e],exact:!1,strict:!1}):e===n.pathname)),[e])}(e);return e?(0,T.jsx)(Z,{onClick:n,to:e,href:a,isActive:r,...i,children:t}):(0,T.jsx)(A,{onClick:n,href:a,...i,children:t})}const A=(0,r.ZP)(N.Z).withConfig({displayName:"LinkContainer__StyledLink",componentId:"sc-1nz62vh-0"})(["align-items:center;display:flex;width:100%;height:100%;padding-left:",";color:inherit;&.active{color:",";}&:hover{background:",";border-radius:8px;}"],(({theme:e})=>e.size.medium),(({theme:e})=>e.color.textAccent),(({theme:e})=>e.color.backgroundHoverAlt)),Z=(0,r.ZP)(K.OL).withConfig({displayName:"LinkContainer__StyledNavLink",componentId:"sc-1nz62vh-1"})(["align-items:center;display:flex;width:100%;height:100%;padding-left:",";color:inherit;&.active{color:",";path{fill:",";}}&:hover{background:",";border-radius:8px;}"],(({theme:e})=>e.size.medium),(({theme:e})=>e.color.textAccent),(({theme:e})=>e.color.iconFill),(({theme:e})=>e.color.backgroundHoverAlt)),D=(0,t.vU)({new:{id:"NavigationRowItem.new",defaultMessage:"New"}});function R({title:e,iconName:a,to:n,href:t,onClick:r,className:o,onMouseEnter:d,badgeCount:c,showEarnBadge:p,referralCampaignInfo:x,isPromo:S,promoIcon:F,openInNewTab:v,showReferralBadge:w,isNew:C}){const{formatMessage:j}=(0,i.Z)(),[M,I]=(0,l.useState)(!1),K="collapsed"===(0,b.Vn)().sidebarCompression,N=(0,s.TH)().pathname===n,B=!N&&!!c,A=(0,l.useCallback)((()=>{I(!0)}),[]),Z=(0,l.useCallback)((()=>{I(!1)}),[]),R=(0,f.$T)(),V=(0,l.useMemo)((()=>S&&F?F:a?(0,T.jsx)(H,{children:(0,T.jsx)(g.DotCount,{pin:"top-end",max:9,count:K&&B?c:0,overlap:"circular",children:(0,T.jsx)(z,{children:(0,T.jsx)(y.NavigationIcon,{size:"s",name:a,active:N})})})}):null),[N,c,a,K,B,S,F]),U=(0,T.jsx)(m.Z,{visible:M||void 0,disableAnimations:M,position:"right",align:"center",wrapContent:!0,content:(0,T.jsx)(q,{hasIcon:!1,isVisible:!0,isCollapsed:K,children:e}),isDark:!0,children:V}),E=(0,l.useMemo)((()=>!K&&x&&w?(0,T.jsx)(k.Box,{spacingEnd:2,children:(0,T.jsx)(L,{text:R({compact:!0,isFiat:!0,amount:x.bonusAmount})})}):null),[R,K,x,w]),W=(0,T.jsx)(k.VStack,{alignItems:"center",justifyContent:"center",children:(0,T.jsx)(h.Vp,{colorScheme:"blue",intent:"promotional",children:j(D.new)})});return(0,T.jsx)(O,{className:o,onMouseEnter:d,"data-element":"NavigationListItem","data-component":"NavigationRowItem",children:(0,T.jsx)(P,{onClick:r,to:n,href:t,onFocus:A,onBlur:Z,openInNewTab:v,"data-element":"LinkContainer",children:(0,T.jsxs)(k.HStack,{justifyContent:"space-between",alignItems:"center",width:"100%","data-element":"HStack",children:[(0,T.jsxs)(k.Box,{"data-element":"Box",children:[K?U:V,(0,T.jsx)(q,{hasIcon:!!a||!(!S||!F),isVisible:!K,isCollapsed:K,isPromo:S,"data-element":"NavTitle",children:e})]}),!K&&B?(0,T.jsx)(k.Box,{spacingEnd:2,children:(0,T.jsx)(g.DotCount,{count:c})}):null,E,!K&&p?(0,T.jsx)(u.Z,{instrumentationId:"EarnAmountBadge",fallback:null,children:(0,T.jsx)(_,{})}):null,C?W:null]})})})}const V="Earn Rewards";function U({className:e}){return(0,T.jsxs)(O,{className:e,"data-element":"NavigationListItem","data-component":"LoadingNavigationRowItem",children:[(0,T.jsx)(H,{"data-element":"IconContainer",children:(0,T.jsx)(z,{"data-element":"IconBackground",children:(0,T.jsx)(E,{"data-element":"PlaceholderIcon"})})}),(0,T.jsx)(q,{hasIcon:!0,isVisible:!0,as:d.Z,text:V,"data-element":"NavTitle"})]})}const E=(0,r.ZP)(c.Z).withConfig({displayName:"NavigationRowItem__PlaceholderIcon",componentId:"sc-89ekat-0"})(["height:","px;width:","px;border-radius:50%;"],32,32),H=(0,r.ZP)(o.Z).withConfig({displayName:"NavigationRowItem__IconContainer",componentId:"sc-89ekat-1"})(["position:relative;align-self:center;"]),O=r.ZP.li.withConfig({displayName:"NavigationRowItem__NavigationListItem",componentId:"sc-89ekat-2"})(["display:flex;align-items:center;height:48px;color:",";path{fill:",";}"],(({theme:e})=>e.color.text),(({theme:e})=>e.color.text)),z=(0,r.ZP)(o.Z).withConfig({displayName:"NavigationRowItem__IconBackground",componentId:"sc-89ekat-3"})(["height:","px;width:","px;background:",";border-radius:50%;justify-content:center;align-items:center;@media (","){height:40px;width:40px;svg{height:12px;width:12px;}}"],32,32,(({theme:e})=>e.color.backgroundHoverAlt),p.Z.phone),q=r.ZP.span.withConfig({displayName:"NavigationRowItem__NavTitle",componentId:"sc-89ekat-4"})([""," display:",";align-items:center;font-size:",";font-weight:",";margin-left:",";color:",";opacity:",";"],(e=>e.isCollapsed&&"\n white-space: nowrap;\n "),(e=>e.isVisible?"flex":"none"),(e=>e.theme.fontSize.small),(e=>e.theme.fontWeight.demiBold),(e=>e.hasIcon?"16px":"0"),(e=>e.isPromo?e.theme.color.textAccent:e.theme.color.text),(e=>e.isVisible?1:0)),W=(0,l.memo)(R)},3954:(e,a,n)=>{n.d(a,{Z:()=>r});var l=n(4),t=n(185),i=n(159),s=n(2);function r({children:e,offset:a=0}){const{headerHeight:n,hideFooter:r}=(0,i.Vn)();return(0,s.jsx)(l.Box,{flexDirection:"column",height:`calc(100vh - ${n||t.dH}px - ${r?0:64}px - ${a}px)`,overflow:"hidden","data-element":"Box","data-component":"NonScrollablePageContainer",children:e})}},1482:(e,a,n)=>{n.d(a,{Z:()=>u});var l=n(0),t=n(32),i=n(755),s=n(54),r=n(67),o=n(7),d=n(223),c=n(2);function u({onPress:e,logoContainerClassname:a}){const n=(0,t.k6)(),u=(0,d.zS)(o.Us.click,"logo"),m=(0,d.zS)(o.Us.hover,"logo"),p=(0,l.useCallback)((()=>m),[m]),g=(0,l.useCallback)((()=>{u(),e?e():n.push("/home")}),[u,n,e]);return(0,c.jsx)(s.HStack,{"data-element":"HStack","data-component":"ConsumerLogo",children:(0,c.jsx)(r.Pressable,{onPress:g,as:"button",backgroundColor:"transparent",testID:"coinbase-logo","data-element":"Pressable",children:(0,c.jsx)("div",{onMouseEnter:p,className:a,children:(0,c.jsx)(i.LogoMark,{"data-element":"LogoMark"})})})})}},1556:(e,a,n)=>{n.d(a,{Y:()=>s});var l=n(10),t=n(72),i=n(185);const s=l.ZP.nav.withConfig({displayName:"SideBarV2__StyledNav",componentId:"sc-1t9xn3g-0"})(["position:fixed;transition:top ","ms;top:","px;bottom:0;left:0;display:flex;justify-content:left;flex-direction:column;z-index:",";width:","px;"],i.aV,(({top:e=0})=>(0,t.Z)(e)),(e=>e.theme.zIndex.extraHigh),(e=>(0,t.Z)(e.width)))},934:(e,a,n)=>{n.d(a,{Hs:()=>r,J7:()=>s,b9:()=>o});var l=n(0),t=n(7);const i={more_menu:"more_menu",more_menu_button:"more_menu_button",sidebar_upsell_promo_card:"sidebar_upsell_promo_card"};function s(){return(0,l.useCallback)((({action:e})=>{(0,t.Kz)(i.more_menu,{componentType:t.re.card,action:e})}),[])}function r({componentName:e}){return(0,l.useCallback)((({action:a})=>{e&&(0,t.Kz)(i.more_menu_button,{componentType:t.re.button,action:a,component_name:e})}),[e])}function o(){return(0,l.useCallback)((({action:e,upsellId:a,upsellTitle:n})=>{a&&(0,t.Kz)(i.sidebar_upsell_promo_card,{componentType:t.re.button,action:e,upsellId:a,upsellTitle:n})}),[])}},1243:(e,a,n)=>{n.d(a,{Z:()=>c});const l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useSidebarMoreMenuFilterFragment",selections:[{args:null,kind:"FragmentSpread",name:"useNavItemsMainFragment"}],type:"Query",abstractKey:null,hash:"d8c44e5582331ce9c9c232630b214577"},t=l;var i=n(0),s=n(3),r=n(1244);const o=["chartCandles"],d=["pay","taxes"];const c=function({height:e,queryRef:a}){const n=(0,s.Jc)(t,a),l=(0,r.GD)({queryRef:n}).slice(0,8),c=l.filter((e=>d.includes(e.iconName))).map((e=>e.iconName)),{mainItems:u,filteredMoreMenuItems:m}=(0,i.useMemo)((()=>{const a=Math.max(Math.ceil((e-74-90-32-132)/66),2),n=l.length;return{mainItems:l.slice(0,a),filteredMoreMenuItems:l.slice(a,n).filter((e=>!o.includes(e.iconName)))}}),[e,l]);return{mainItems:u,moreMenuItems:m,backfillMainNavIcons:c}}},2300:(e,a,n)=>{n.r(a),n.d(a,{default:()=>pe});const l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SideBarV3Fragment",selections:[{args:null,kind:"FragmentSpread",name:"useSidebarMoreMenuFilterFragment"}],type:"Query",abstractKey:null,hash:"d053259b96e99894a336a501a706c246"},t=l;var i=n(0),s=n(9),r=n(32),o=n(154),d=n(770),c=n(780),u=n(4),m=n(807),p=n(7),g=n(3),y=n(139),k=n(223),h=n(365),f=n(3672),b=n(502),x=n(3595),S=n(362),F=n(363),v=n(159),w=n(1482),C=n(348),T=n(54),j=n(2);const M=function({active:e,onPress:a,icon:n,title:l,to:t,href:i,openInNewTab:s,badge:r}){const{sidebarCompression:o}=(0,v.Vn)(),d="collapsed"===o,c=r&&!e&&!d;return(0,j.jsx)(C.Z,{to:t,openInNewTab:s,href:i,"data-element":"Link","data-component":"NavigationItem",children:(0,j.jsxs)(T.HStack,{"data-element":"HStack",children:[(0,j.jsx)(m.SidebarItem,{as:"a",active:e,onPress:a,icon:n,title:l,collapsed:d,tooltipContent:l,"data-element":"SidebarItem"}),c&&r]})})};var L=n(10),I=n(1250),_=n(1556);function K({topOffset:e=0,collapsed:a=!1}){const{sidebarCompression:n}=(0,v.Vn)(),l=(0,v.Or)({collapsed:a});return(0,j.jsx)(_.Y,{top:e,width:l,"data-element":"StyledNav","data-component":"SideBarFallback",children:(0,j.jsxs)(m.Sidebar,{collapsed:"collapsed"===n,logo:(0,j.jsx)(w.Z,{}),"data-element":"Sidebar",children:[(0,j.jsx)(N,{"data-element":"StyledLoadingNavigationRowItem"}),(0,j.jsx)(N,{"data-element":"StyledLoadingNavigationRowItem"}),(0,j.jsx)(N,{"data-element":"StyledLoadingNavigationRowItem"}),(0,j.jsx)(N,{"data-element":"StyledLoadingNavigationRowItem"}),(0,j.jsx)(N,{"data-element":"StyledLoadingNavigationRowItem"}),(0,j.jsx)(N,{"data-element":"StyledLoadingNavigationRowItem"})]})})}const N=(0,L.ZP)(I.e).withConfig({displayName:"SideBarFallback__StyledLoadingNavigationRowItem",componentId:"sc-9opfmz-0"})(["margin-bottom:0;"]),B=(0,i.memo)(K),P={fragment:{argumentDefinitions:[A={defaultValue:null,kind:"LocalArgument",name:"ineligibleCampaignNames"},Z={defaultValue:null,kind:"LocalArgument",name:"skip"},D={defaultValue:null,kind:"LocalArgument",name:"surfaceNames"}],kind:"Fragment",metadata:null,name:"UpsellPromoCardSurfaceQuery",selections:[{args:null,kind:"FragmentSpread",name:"useUpsellFrameworkSurfaceDataFragment"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[D,Z,A],kind:"Operation",name:"UpsellPromoCardSurfaceQuery",selections:[{condition:"skip",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"ineligibleCampaignNames",variableName:"ineligibleCampaignNames"},{kind:"Variable",name:"surfaceNames",variableName:"surfaceNames"}],concreteType:"UpsellSurface",kind:"LinkedField",name:"upsellList",plural:!0,selections:[R={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},V={alias:null,args:null,kind:"ScalarField",name:"isActive",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxSize",storageKey:null},U={alias:null,args:null,kind:"ScalarField",name:"coolOffSeconds",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"lastSeen",storageKey:null},{alias:null,args:null,concreteType:"Upsell",kind:"LinkedField",name:"upsells",plural:!0,selections:[V,{alias:null,args:null,kind:"ScalarField",name:"isDismissible",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"minVersion",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"maxVersion",storageKey:null},{alias:null,args:null,concreteType:"UpsellAllotment",kind:"LinkedField",name:"allotments",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"budget",storageKey:null},U],storageKey:null},H={alias:null,args:null,concreteType:"UpsellExperiment",kind:"LinkedField",name:"experiment",plural:!1,selections:[R,{alias:null,args:null,kind:"ScalarField",name:"variants",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"UpsellCampaign",kind:"LinkedField",name:"campaign",plural:!1,selections:[R,V,E,{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"renderId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"impressionCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isDismissed",storageKey:null},E,{alias:null,args:null,concreteType:"SDUI",kind:"LinkedField",name:"sdui",plural:!1,selections:[R,{alias:null,args:null,kind:"ScalarField",name:"layout",storageKey:null}],storageKey:null}],storageKey:null},H],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]}]},params:{id:"e9fb83e942bcd5e6ae0dddaa676fe2ce67bfc942484ea3b869b2859b2d80e2b4",metadata:{},name:"UpsellPromoCardSurfaceQuery",operationKind:"query",text:null}};var A,Z,D,R,V,U,E,H;P.hash="10b5b543ccab3683c7fc2978fa043797";const O=P;var z=n(816),q=n(84),W=n(3609),Q=n(3641),Y=n(11),G=n(61),$=n(38),J=n(14),X=n(867),ee=n(3585),ae=n(934);const ne=(0,Y.vU)({walletUpsellTitle:{id:"sidebarV3.UpsellPromoCard.walletUpsellTitle",defaultMessage:"Wallet"},walletUpsellDescription:{id:"sidebarV3.UpsellPromoCard.walletUpsellDescription",defaultMessage:"Explore self-custody"},coinbaseOneUpsellTitle:{id:"sidebarV3.UpsellPromoCard.coinbaseOneUpsellTitle",defaultMessage:"Coinbase One"},coinbaseOneUpsellDescription:{id:"sidebarV3.UpsellPromoCard.coinbaseOneUpsellDescription",defaultMessage:"Zero trading fees"},coinbaseOneUpsellDescriptionWithExperiment:{id:"sidebarV3.UpsellPromoCard.coinbaseOneUpsellDescriptionWithExperiment",defaultMessage:"{dailyTradesMade}+ free trades made daily"},referralUpsellTitle:{id:"sidebarV3.UpsellPromoCard.referralUpsellTitle",defaultMessage:"Get {referralBonus}"},referralUpsellDescription:{id:"sidebarV3.UpsellPromoCard.referralUpsellDescription",defaultMessage:"Invite friends"}});function le({upsell:e,isCollapsed:a,onClick:n}){const{formatMessage:l}=(0,s.Z)(),t=l(ne.coinbaseOneUpsellDescription),o=(0,i.useMemo)((()=>{switch(e.campaign.name){case"retail-wallet-upsell-campaign":return{title:l(ne.walletUpsellTitle),description:l(ne.walletUpsellDescription),pictogram:"walletLogoNavigation",openInNewTab:!0,href:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad"};case"retail-coinbase-one-upsell-campaign":return{title:l(ne.coinbaseOneUpsellTitle),description:t,pictogram:"coinbaseOneLogo",openInNewTab:!1,to:"/one?referrer=sidebar"};default:return void(0,X.vR)(e?.surface.name,e?.campaign.name)}}),[e?.campaign.name,e?.surface.name,l,t]),d=(0,ae.b9)(),{onPrimaryClick:c}=(0,ee.e)(e,p.re.card,!0);(0,i.useEffect)((()=>{o&&d({action:p.Us.render,upsellId:e.campaign.name,upsellTitle:o.title.toLowerCase()})}),[e]);const m=a?1:2,g=(0,r.k6)(),y=(0,i.useCallback)((()=>{if(c(),n(),!o)return;const{href:a,to:l,openInNewTab:t}=o;d({action:p.Us.click,upsellId:e.campaign.name,upsellTitle:o.title.toLowerCase()}),t&&a?window.open(a,"_blank","noopener,noreferrer"):l&&g.push(l)}),[g,n,c,d,e.campaign.name,o]);if(!o)return null;const{title:k,description:h,pictogram:f}=o;return(0,j.jsx)($.Pressable,{width:"100%",onPress:y,borderRadius:"roundedLarge",backgroundColor:"secondary",as:"button",accessibilityLabel:k,"data-element":"Pressable","data-component":"UpsellPromoCardContent",children:(0,j.jsxs)(u.HStack,{gap:1,alignItems:"center",spacing:m,"data-element":"HStack",children:[(0,j.jsx)(G.Pictogram,{name:f,dimension:"48x48",scaleMultiplier:.8,"data-element":"Pictogram"}),!a&&(0,j.jsxs)(u.VStack,{width:"100%",children:[(0,j.jsx)(J.TextHeadline,{as:"span",numberOfLines:2,children:k}),(0,j.jsx)(J.TextLegal,{as:"p",color:"foregroundMuted",numberOfLines:2,children:h})]})]})})}const te=(0,i.memo)(le),ie="retail-sidebar-promo-web";function se(e){const a=(0,z.J9)(ie),n=(0,g.pp)(O,a,{fetchPolicy:"network-only"}),l=(0,W.A)(n),t=(0,z.c5)(ie,l)?.[0],{endMark:i}=(0,h.Z)();return i("sidebar_v3","load_sidebar_upsell_promo_card"),t?(0,Q.N)(t)?(0,j.jsx)(Q.j,{upsell:t,visible:!0,isCollapsed:e.isCollapsed,onClick:e.onClick}):(0,j.jsx)(te,{upsell:t,...e,"data-element":"UpsellPromoCardContent","data-component":"UpsellPromoCardSurfaceContent"}):null}function re(e){const{startMark:a}=(0,h.Z)();return a("sidebar_v3","load_sidebar_upsell_promo_card"),(0,j.jsx)(q.Z,{name:"UpsellPromoCardSurface","data-testid":"Boundary",owner:"growth",context:"upsell_framework",disableSuspenseInstrumentation:!0,"data-element":"Boundary","data-component":"UpsellPromoCardSurface",children:(0,j.jsx)(se,{...e,"data-element":"UpsellPromoCardSurfaceContent"})})}const oe=(0,i.memo)(re);var de=n(1243),ce=n(900);function ue({topOffset:e=0,onMoreMenuClick:a,onMenuItemClick:n,queryRef:l,collapsed:t=!1}){return(0,j.jsx)(y.Z,{owner:"infra",fallback:()=>(0,j.jsx)(B,{topOffset:e,collapsed:t}),context:"sidebar","data-element":"ErrorBoundary","data-component":"SideBarV3",children:(0,j.jsx)(o.Z,{instrumentationId:"SideBarNavigation",fallback:(0,j.jsx)(B,{topOffset:e,collapsed:t}),"data-element":"SuspenseWithTransition",children:(0,j.jsx)(me,{onMoreMenuClick:a,onMenuItemClick:n,topOffset:e,queryRef:l,"data-element":"SideBarNavigation"})})})}function me({topOffset:e=0,onMoreMenuClick:a,onMenuItemClick:n,queryRef:l}){const o=(0,g.Jc)(t,l),{height:y}=(0,d.Z)(),{mainItems:C}=(0,de.Z)({height:y-e,queryRef:o}),{formatMessage:T}=(0,s.Z)(),{startMark:L,endMark:I}=(0,h.Z)();L("sidebar_v3","load_sidebar_v3");const{sidebarCompression:K}=(0,v.Vn)(),N=(0,r.TH)(),B=(0,v.Or)({collapsed:!1}),{currentActiveSpotlightName:P}=(0,S.U)(),A=(0,k.zS)(p.Us.click,"more"),Z=(0,i.useCallback)((e=>{e?.(),n()}),[n]),D=(0,i.useCallback)((()=>{a(),A()}),[a,A]);I("sidebar_v3","load_sidebar_v3");const R=(0,b.E)(),V=(0,F.Z)(),U=(0,i.useCallback)((e=>(0,j.jsxs)(u.VStack,{gap:2,width:e?void 0:"100%",position:e?"relative":void 0,left:"-6px",children:[(0,j.jsx)(oe,{isCollapsed:e,onClick:n},"sidebar-upsell-promo-card"),V&&R&&(0,j.jsx)(x.Z,{name:"ADVANCED_SWITCH_INTRO_SIMPLE_MODE",stepNumber:1,disableOverlay:!1,position:e?"right":"top",align:e?"start":"end",hideStepNumber:!0,dismissOnClick:!1,renderFocusRing:!0,focusRingRadius:e?"roundedLarge":"roundedFull",children:(0,j.jsx)(f.Z,{compact:e,hideTooltip:"ADVANCED_SWITCH_INTRO_SIMPLE_MODE"===P})})]})),[P,R,V,n]);(0,i.useEffect)((()=>{(0,c.ZP)("layout_sidebar",{type:"end"})}),[]);const E=(0,i.useMemo)((()=>["/cloud/products/advanced-trade-api"].includes(N.pathname)),[N.pathname]);return(0,j.jsx)(_.Y,{top:e,width:B,"data-element":"StyledNav","data-component":"SideBarNavigation",children:(0,j.jsxs)(m.Sidebar,{collapsed:"collapsed"===K,logo:(0,j.jsx)(w.Z,{}),renderEnd:U,"data-element":"Sidebar",children:[C.map((e=>(0,j.jsx)(M,{active:!!e.to&&null!==N.pathname.match(`^[a-zA-Z/]*${e.to}($|/)`),onPress:()=>Z(e.onClick),icon:e.iconName,title:e.title,to:e.to,href:e.href,openInNewTab:e.openInNewTab,badge:e.badge},`sidebar-more-menu-item--${e.title}`))),(0,j.jsx)(M,{active:E,onPress:D,icon:"moreVertical",title:T(ce.Z.more),"data-element":"NavigationItem"},"sidebar-more-menu-item--more")]})})}const pe=(0,i.memo)(ue)},900:(e,a,n)=>{n.d(a,{Z:()=>l});const l=(0,n(11).vU)({close:{id:"SideBarV3.close",defaultMessage:"Close"},more:{id:"SideBarV3.more",defaultMessage:"More"},moreMenu:{id:"SideBarV3.moreMenu",defaultMessage:"More for you"},Web3AndDapps:{id:"SideBarV3.Web3AndDapps",defaultMessage:"Web3 and dapps"},CBNFT:{id:"SideBarV3.CBNFT",defaultMessage:"NFT"},CoinbaseWallet:{id:"SideBarV3.CoinbaseWallet",defaultMessage:"Coinbase Wallet"},CoinbaseVerification:{id:"SideBarV3.CoinbaseVerification",defaultMessage:"Coinbase Verification"},DoMoreWithCrypto:{id:"SideBarV3.DoMoreWithCrypto",defaultMessage:"Do more with crypto"},Borrow:{id:"SideBarV3.Borrow",defaultMessage:"Borrow"},DirectDeposit:{id:"SideBarV3.DirectDeposit",defaultMessage:"Direct deposit"},taxes:{id:"SideBarV3.taxes",defaultMessage:"Taxes"},EarnMore:{id:"SideBarV3.EarnMore",defaultMessage:"Earn more"},CoinbaseCard:{id:"SideBarV3.CoinbaseCard",defaultMessage:"Card"},LearningRewards:{id:"SideBarV3.LearningRewards",defaultMessage:"Learning rewards"},InviteFriends:{id:"SideBarV3.InviteFriends",defaultMessage:"Invite friends"},PacksV2:{id:"SideBarV3.PacksV2",defaultMessage:"Crypto bundles"},AdvancedApi:{id:"SideBarV3.AdvancedApi",defaultMessage:"Advanced API"},ManageAccount:{id:"SideBarV3.ManageAccount",defaultMessage:"Manage account"},SecurityCheck:{id:"SideBarV3.SecurityCheck",defaultMessage:"Security check"},Taxes:{id:"SideBarV3.Taxes",defaultMessage:"Tax information"},GetSupport:{id:"SideBarV3.GetSupport",defaultMessage:"Get support"},TradeCrypto:{id:"SideBarV3.tradeCrypto",defaultMessage:"Trade crypto"},CBOne:{id:"SideBarV3.CBOne",defaultMessage:"Coinbase One"},AdvancedTrading:{id:"SideBarV3.AdvancedTrading",defaultMessage:"Advanced trade"},RecurringBuys:{id:"SideBarV3.RecurringBuys",defaultMessage:"Recurring buys"},scan:{id:"SideBarV3.scan",defaultMessage:"Scan"},convert:{id:"SideBarV3.convert",defaultMessage:"Convert"},addCash:{id:"SideBarV3.addCash",defaultMessage:"Add Cash"},cashOut:{id:"SideBarV3.cashOut",defaultMessage:"Cash Out"}})},1495:(e,a,n)=>{n.d(a,{Z:()=>u});var l=n(11),t=n(9),i=n(32),s=n(213),r=n(4),o=n(1251),d=n(2);const c=(0,l.vU)({goBack:{id:"navigation.goBack",defaultMessage:"Go Back"}});function u({title:e,showBackButton:a}){const n=(0,o.f)()>0,l=(0,i.k6)(),{formatMessage:u}=(0,t.Z)();return(0,d.jsxs)(r.HStack,{alignItems:"center","data-element":"HStack","data-component":"Title",children:[a&&n&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.IconButton,{accessibilityLabel:u(c.goBack),variant:"secondary",name:"backArrow",onPress:l.goBack}),(0,d.jsx)(r.Spacer,{horizontal:2})]}),e]})}},2207:(e,a,n)=>{n.d(a,{Z:()=>l.Z});var l=n(1495)},776:(e,a,n)=>{n.d(a,{v:()=>t});var l=n(44);function t(){return(0,l.Q)("dec_2023_web_identity_navigation_retail")}},185:(e,a,n)=>{n.d(a,{$U:()=>i,Ce:()=>u,H6:()=>t,aV:()=>c,aY:()=>p,dH:()=>o,j0:()=>s,uf:()=>g,wN:()=>m,ys:()=>r,yz:()=>d});var l=n(113);const t=240,i=87,s=68,r=50,o=73,d=l.r.color.backgroundWash,c=350,u="layout-title",m="layout-center-content",p="layout-bottom-navigation",g="layout-tab-navigation"},930:(e,a,n)=>{n.d(a,{S:()=>h,V:()=>k});var l=n(0),t=n(32),i=n(60),s=n(931),r=n(776),o=n(725),d=n(502),c=n(218),u=n(527),m=n(933),p=n(1237),g=n(362),y=n(2);const k=(0,l.createContext)(void 0);function h({children:e}){const a=(0,i.Z)(),n=(0,u.w)(),h=(0,r.v)(),f=(0,s.ai)(),{push:b}=(0,t.k6)(),{shouldExpandDropdownForUpsell:x,advancedModeUrlForUpsell:S,resetUrlForFuturesUpsell:F}=(0,o.V)(),{shouldShowFuturesUpsellTooltip:v,setShowFuturesUpsellTooltip:w}=(0,p.Z)(),[{shouldShowTooltipToAdvancedUser:C,shouldShowTooltipToSimpleUser:T},j]=(0,m.Z)(),[M,L]=(0,l.useState)(C),I=(0,d.E)(),{forceOpenSpotlight:_}=(0,g.U)(),K=(0,c.Z)(),[N,B]=(0,l.useState)();(0,l.useEffect)((()=>{x&&(I?_(K?"ADVANCED_SWITCH_INTRO_ADVANCED_MODE":"ADVANCED_SWITCH_INTRO_SIMPLE_MODE",1):(h?A():L(!0),w(!0)),B(S))}),[x]),(0,l.useEffect)((()=>{M||F()}),[M]);const P=(0,l.useCallback)((e=>{a?(n("advanced",{skipNavigation:!0}),b(e)):B(e)}),[a,n,b]),A=(0,l.useCallback)((()=>{v&&w(!1),L(!0),f.current?.openMenu()}),[f,w,v]),Z=(0,l.useCallback)((()=>{if(h)return A();M?(B(""),(C||T)&&j()):v&&w(!1),L((e=>!e))}),[h,M,A,C,T,j,v,w]),D=(0,l.useCallback)((()=>{L(!1),B(""),(C||T)&&j()}),[C,T,B,j]);(0,l.useEffect)((()=>{C&&(h?A():L(!0))}),[C]);const R=(0,l.useMemo)((()=>({profileDropdownExpanded:M,setProfileDropdownExpanded:L,toggleProfileDropdown:Z,advancedModeUrl:N,setAdvancedModeUrl:P,shouldShowFuturesUpsellTooltip:v,setShowFuturesUpsellTooltip:w,profileDropdownRef:f,onCloseProfileDropdown:D})),[N,M,Z,P,v,w,f,D]);return(0,y.jsx)(k.Provider,{value:R,"data-element":"unknown","data-component":"LayoutContextProvider",children:e})}},282:(e,a,n)=>{n.d(a,{Z:()=>i});var l=n(0),t=n(930);function i(){const e=(0,l.useContext)(t.V);if(!e)throw Error("LayoutContext has not been initialized!");return e}},223:(e,a,n)=>{n.d(a,{j_:()=>o,ku:()=>d,pp:()=>s,zS:()=>r});var l=n(7);const t="sidebar_button",i={action:l.Us.click,componentType:l.re.button,platform:"web"};function s(e,a="simple"){(0,l.Kz)(t,{...i,componentName:e,tradeSetting:a})}function r(e,a,n="simple"){return(0,l.ld)(t,{...i,action:e,componentName:a,tradeSetting:n})}function o(e,a){return(0,l.ld)("profile_button",{action:e,componentType:l.re.button,platform:"web",componentName:a})}function d(e,a){return(0,l.ld)("global_button",{action:e,componentType:l.re.button,platform:"web",componentName:a})}},1244:(e,a,n)=>{n.d(a,{ZP:()=>V,GD:()=>U});const l={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useNavItemsMainFragment",selections:[{args:null,kind:"FragmentSpread",name:"useHasYieldCenterNavItemFragment"},{args:null,kind:"FragmentSpread",name:"useFirstStakeIncentiveEligibleFragment"},{args:null,kind:"FragmentSpread",name:"useIsExplorePerpetualFuturesEnabledFragment"}],type:"Query",abstractKey:null,hash:"b6ce69754a655552227ab4978d41aff4"},t=l,i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useNavItemsFragment",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"NuxProperties",kind:"LinkedField",name:"nuxProperties",plural:!1,selections:[{alias:null,args:null,concreteType:"ReferralCampaignInfo",kind:"LinkedField",name:"referrerTerms",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"promoCodeLink",storageKey:null},{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"bonusAmount",plural:!1,selections:s=[{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"thresholdAmount",plural:!1,selections:s,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useNotificationBadgeCountFragment"},{args:null,kind:"FragmentSpread",name:"useHasYieldCenterNavItemFragment"},{args:null,kind:"FragmentSpread",name:"useFirstStakeIncentiveEligibleFragment"}],type:"Query",abstractKey:null};var s;i.hash="bd0f245a3c29e6f2b1911d01d1735e36";const r=i;var o=n(0),d=n(33),c=n(11),u=n(60),m=n(503),p=n(7),g=n(3),y=n(935),k=n(1592),h=n(533),f=n(1447),b=n(1245),x=n(2371),S=n(1246),F=n(1424),v=n(1593),w=n(1515),C=n(115),T=n(142),j=n(23),M=n(1594),L=n(832),I=n(527),_=n(363),K=n(1531),N=n(1368),B=n(899),P=n(569),A=n(1491),Z=n(223),D=n(2);const R=(0,c.vU)({trade:{id:"Layout.useNavItems.trade",defaultMessage:"Trade"},homefeed:{id:"Layout.useNavItems.homefeed",defaultMessage:"Home"},learningRewards:{id:"Layout.useNavItems.learningRewards",defaultMessage:"Learning rewards"},notifications:{id:"Layout.useNavItems.notifications",defaultMessage:"Notifications"},assets:{id:"Layout.useNavItems.assets",defaultMessage:"Assets"},myAssets:{id:"Layout.useNavItems.myAssets",defaultMessage:"My assets"},wallet:{id:"Layout.useNavItems.wallet",defaultMessage:"Get Wallet"},earn:{id:"Layout.useNavItems.earn",defaultMessage:"Earn"},futures:{id:"Layout.useNavItems.futures",defaultMessage:"Futures"},perpetualFutures:{id:"Layout.useNavItems.perpetualFutures",defaultMessage:"Perpetuals"},referrals:{id:"Layout.useNavItems.referrals",defaultMessage:"Invite friends"},gifting:{id:"Layout.useNavItems.gifting",defaultMessage:"Send a gift"},joinCoinbaseOne:{id:"Layout.useNavItems.joinCoinbaseOne",defaultMessage:"Join {productName}"},getSupport:{id:"Layout.useNavItems.getSupport",defaultMessage:"Support"},card:{id:"Layout.useNavItems.card",defaultMessage:"Card"},web3:{id:"Layout.useNavItems.web3",defaultMessage:"Web3"},p2p:{id:"Layout.useNavItems.p2p",defaultMessage:"P2P"},packsv2:{id:"Layout.useNavItems.packsv2",defaultMessage:"Crypto bundles"}});function V({queryRef:e}){const a=(0,g.Jc)(r,e),{viewer:n}=a,{formatMessage:l}=(0,y.YB)(),{showModal:t}=(0,C.Z)(),i=(0,F.Z)(),s=(0,w.t)(),c=(0,u.Z)(),v=(0,_.Z)(),{tradeSetting:j}=(0,T.Z)(),M=v?j:"simple",V=(0,L.y)(),{startLoadSupportTopicsPerfMark:U}=(0,A.zV)(),E=c,H=(0,x.W)(),O=(0,B.X)(),z=(0,b.Z)(a),q=n.nuxProperties.referrerTerms,W=(0,P.Z)(),{trackComponentClicked:Q}=(0,f.D)(),Y=(0,h.p)({queryRef:a,assetCode:"ETH"}),G=(0,S.Z)({queryRef:a}),$=(0,Z.zS)(p.Us.click,"home"),J=(0,Z.zS)(p.Us.click,"assets"),X=(0,Z.zS)(p.Us.click,"trade"),ee=(0,Z.zS)(p.Us.click,"rewards"),ae=(0,Z.zS)(p.Us.click,"notifications"),ne=(0,Z.zS)(p.Us.click,"referral"),le=(0,Z.zS)(p.Us.click,"gifting"),te=(0,Z.zS)(p.Us.click,"get_support"),ie=(0,Z.zS)(p.Us.click,"web3"),se=(0,Z.zS)(p.Us.click,"yield"),re=(0,o.useCallback)((()=>{Q("first_stake_incentive_badge"),se()}),[Q,se]),oe=(0,Z.zS)(p.Us.hover,"home"),de=(0,Z.zS)(p.Us.hover,"assets"),ce=(0,Z.zS)(p.Us.hover,"trade"),ue=(0,Z.zS)(p.Us.hover,"rewards"),me=(0,Z.zS)(p.Us.hover,"notifications"),pe=(0,Z.zS)(p.Us.hover,"referral"),ge=(0,Z.zS)(p.Us.hover,"web3"),ye=(0,Z.zS)(p.Us.hover,"gifting"),ke=(0,Z.zS)(p.Us.hover,"get_support"),he=(0,Z.zS)(p.Us.click,"packsv2"),fe=(0,Z.zS)(p.Us.hover,"packsv2"),be=(0,Z.zS)(p.Us.hover,"yield"),xe=(0,N.Z)(),Se=(0,I.w)(),Fe=(0,o.useCallback)((()=>{X(),"simple"===M?(0,p.$Y)("navigate_to_simple_trade_page"):Se(M,{skipNavigation:!0})}),[Se,X,M]),ve=(0,K.j)();return(0,o.useMemo)((()=>(0,d.compact)([E?null:{title:l(R.homefeed),iconName:"home",to:"/home",onClick:()=>$(),onMouseEnter:()=>oe()},E?null:{title:l(R.assets),iconName:"chartPie",to:"/assets",onClick:()=>J(),onMouseEnter:()=>de()},E?null:{title:l(R.trade),iconName:"simple"===M?"trading":"chartCandles",to:"simple"===M?"/trade":V(),onClick:()=>Fe(),onMouseEnter:()=>ce()},!E&&G?{title:l(R.earn),iconName:"interest",to:"/earn",onClick:()=>Y?re():se(),onMouseEnter:()=>be(),isFirstStakeIncentiveEligible:Y}:null,!ve&&i?{title:l(R.learningRewards),iconName:"earn",to:"/learning-rewards",onClick:()=>ee(),onMouseEnter:()=>ue(),showEarnBadge:!0}:null,ve||H?null:{title:l(R.web3),iconName:"planet",to:"/web3",onClick:(0,m.Z)(ie),onMouseEnter:()=>ge()},{title:l(R.notifications),iconName:"bell",to:"/notifications",onClick:()=>ae(),onMouseEnter:()=>me(),badgeCount:z},q&&s?{title:l(R.referrals),iconName:"addPeople",to:"/invite",onClick:()=>ne(),onMouseEnter:()=>pe(),referralCampaignInfo:q,showReferralBadge:!0}:null,xe?null:{title:l(R.gifting),iconName:"giftBox",onClick:()=>{le(),t((0,D.jsx)(k.r,{}))},onMouseEnter:()=>ye()},W?{title:l(R.getSupport),iconName:"support",to:"/get-support",onClick:()=>{U(),te()},onMouseEnter:()=>ke()}:null,O?{title:l(R.packsv2),iconName:"chartPie",to:"/packs",isNew:!0,onClick:()=>he(),onMouseEnter:()=>fe()}:null])),[E,l,M,V,G,Y,ve,i,H,ie,z,q,s,xe,W,O,$,oe,J,de,Fe,ce,re,se,be,ee,ue,ge,ae,me,ne,pe,le,t,ye,U,te,ke,he,fe])}const U=({queryRef:e})=>{const a=(0,g.Jc)(t,e),{formatMessage:n}=(0,y.YB)(),l=(0,F.Z)(),{isInUS:i}=(0,j.Z)(),s=(0,v.x)(),r=(0,M.Z)({queryRef:a}),c=(0,_.Z)(),{tradeSetting:u}=(0,T.Z)(),k=(0,L.y)(),b=c?u:"simple",{trackComponentClicked:w}=(0,f.D)(),C=(0,h.p)({queryRef:a,assetCode:"ETH"}),I=(0,S.Z)({queryRef:a}),N=(0,x.W)(),B=(0,Z.zS)(p.Us.click,"home"),P=(0,Z.zS)(p.Us.click,"assets"),A=(0,Z.zS)(p.Us.click,"trade"),D=(0,Z.zS)(p.Us.click,"yield"),V=(0,o.useCallback)((()=>{w("first_stake_incentive_badge"),D()}),[w,D]),U=(0,Z.zS)(p.Us.click,"card"),E=(0,Z.zS)(p.Us.click,"rewards"),H=(0,Z.zS)(p.Us.click,"web3"),O=(0,Z.zS)(p.Us.hover,"home"),z=(0,Z.zS)(p.Us.hover,"assets"),q=(0,Z.zS)(p.Us.hover,"trade"),W=(0,Z.zS)(p.Us.hover,"explore_futures"),Q=(0,Z.zS)(p.Us.click,"explore_futures"),Y=(0,Z.zS)(p.Us.hover,"explore_perpetual_futures"),G=(0,Z.zS)(p.Us.click,"explore_perpetual_futures"),$=(0,Z.zS)(p.Us.hover,"web3"),J=(0,Z.zS)(p.Us.hover,"yield"),X=(0,Z.zS)(p.Us.hover,"card"),ee=(0,Z.zS)(p.Us.hover,"rewards"),ae=(0,o.useCallback)((()=>{A(),(0,p.$Y)("navigate_to_simple_trade_page")}),[A]),ne=(0,K.j)();return(0,o.useMemo)((()=>(0,d.compact)([{title:n(R.homefeed),iconName:"home",to:"/home",onClick:B,onMouseEnter:O},{title:n(R.myAssets),iconName:"chartPie",to:"/assets",onClick:P,onMouseEnter:z},{title:n(R.trade),iconName:"simple"===b?"trading":"chartCandles",to:"simple"===b?"/trade":k(),onClick:ae,onMouseEnter:()=>q()},s?{title:n(R.futures),iconName:"chartBar",to:"/explore-futures",onClick:Q,onMouseEnter:W}:null,r?{title:n(R.perpetualFutures),iconName:"perpetualSwap",to:"/explore-perpetual-futures",onClick:G,onMouseEnter:Y}:null,I?{title:n(R.earn),iconName:"interest",to:"/earn",onClick:()=>C?V():D(),onMouseEnter:()=>J(),isFirstStakeIncentiveEligible:C}:null,!ne&&l?{title:n(R.learningRewards),iconName:"earn",to:"/learning-rewards",onClick:()=>E(),onMouseEnter:()=>ee()}:null,ne||N?null:{title:n(R.web3),iconName:"planet",to:"/web3",onClick:(0,m.Z)(H),onMouseEnter:$},i?{title:n(R.card),iconName:"paymentCard",to:"/card",onClick:()=>U(),onMouseEnter:()=>X()}:null])),[n,B,O,P,z,b,k,ae,s,Q,W,r,G,Y,I,C,ne,l,N,H,$,i,q,V,D,J,E,ee,U,X])}},3964:(e,a,n)=>{n.d(a,{Z:()=>i});var l=n(0),t=n(894);function i(){const{enableBackdrop:e,disableBackdrop:a}=(0,t.Z)();return(0,l.useCallback)((n=>(n?a&&a():e&&e(),!n)),[a,e])}},1595:(e,a,n)=>{n.d(a,{Z:()=>s});var l=n(1370),t=n(7),i=n(277);function s(e){const{assetSymbol:a,assetSlug:n,accountUuid:s}=(0,i.Z)();return{trackSend:(0,l.Z)(e?.fromDrawer?"send_drawer_tapped":"send_tapped",{category:"send",action:t.Us.click,context:"global_trade",asset_ticker:a,asset_slug:n,account_uuid:s}),trackReceive:(0,l.Z)(e?.fromDrawer?"receive_drawer_tapped":"receive_tapped",{category:"receive",action:t.Us.click,context:"global_trade",asset_ticker:a,asset_slug:n,account_uuid:s})}}},725:(e,a,n)=>{n.d(a,{V:()=>o});var l=n(0),t=n(32),i=n(60),s=n(360),r=n(358);function o(){const e=(0,s.Z)(),a=(0,t.k6)(),n=(0,i.Z)(),o=(0,l.useCallback)((()=>{const e=new URLSearchParams(location.search);e.delete("open-profile-menu"),a.push({search:e.toString()})}),[a]);if("futures-onboarding-skip-ingress"===e.get("open-profile-menu")){if(!n)return{shouldExpandDropdownForUpsell:!0,showFuturesUpsellTooltip:!0,advancedModeUrlForUpsell:`${r.U.FuturesOnboardingSkipIngress}`,resetUrlForFuturesUpsell:o};a.push(r.U.FuturesOnboardingSkipIngress)}return{shouldExpandDropdownForUpsell:!1,showFuturesUpsellTooltip:!1,advancedModeUrlForUpsell:"",resetUrlForFuturesUpsell:o}}},1582:(e,a,n)=>{n.d(a,{Z:()=>o});var l=n(32),t=n(2363),i=n(347),s=n(23);const r=["home","assets","trade","yield","balances","asset","advanced_trade","advanced_portfolio"];function o(){const{pathname:e}=(0,l.TH)(),{countryCode:a}=(0,s.Z)(),n=(0,i.fA)(e);return(0,t.N)(a)&&r.includes(n??"")}},1517:(e,a,n)=>{n.d(a,{E:()=>i});var l=n(0),t=n(1249);function i(){return(0,l.useContext)(t.Z)}},351:(e,a,n)=>{n.d(a,{Lt:()=>k,Sh:()=>Ws.Z,HV:()=>_,aV:()=>Mt.aV,ZP:()=>qs,gZ:()=>Qs.Z});var l=n(0),t=n(526),i=n(11),s=n(9),r=n(10),o=n(48),d=n(345),c=n(60),u=n(774),m=n(3),p=n(1563),g=n(139),y=n(890);const k=(0,l.createContext)({});var h=n(498),f=n(762),b=n(83),x=n(1341),S=n(1525),F=n(1565),v=n(2311),w=n(2);const C=(0,i.vU)({connectionTroubleHeader:{id:"LayoutErrorFallback.connectionTroubleHeader",defaultMessage:"We're having connection issues"},somethingsNotRightHeader:{id:"LayoutErrorFallback.somethingsNotRightHeader",defaultMessage:"Something's not right"},tryAgainLater:{id:"LayoutErrorFallback.tryAgainLater",defaultMessage:"We're looking into it right now. Please try again later. Your funds are safe."}});function T({error:e,errorMetadata:{userErrorCode:a}}){const{formatMessage:n}=(0,s.Z)(),l=(0,v.Z)(e)&&e.message,t=n(l?C.somethingsNotRightHeader:C.connectionTroubleHeader),i=l?e.message:n(C.tryAgainLater),r=(0,x.f)(e)&&e.statusCode>=500?F.Z:S.Z;return(0,w.jsx)(j,{column:!0,center:!0,"data-element":"FullHeightFlex","data-component":"LayoutErrorFallbackBody",children:(0,w.jsxs)(o.Z,{column:!0,center:!0,"data-element":"Flex",children:[(0,w.jsx)(I,{src:r,"data-element":"Image"}),!!a&&(0,w.jsx)(f.a,{userErrorCode:a}),(0,w.jsx)(M,{level:3,align:"center","data-element":"ErrorHeader",children:t}),(0,w.jsx)(L,{"data-element":"Subtext",children:i})]})})}const j=(0,r.ZP)(o.Z).withConfig({displayName:"LayoutErrorFallbackBody__FullHeightFlex",componentId:"sc-1cfdq5y-0"})(["height:100%;"]),M=(0,r.ZP)(h.h).withConfig({displayName:"LayoutErrorFallbackBody__ErrorHeader",componentId:"sc-1cfdq5y-1"})(["padding:24px 0 8px;"]),L=r.ZP.p.withConfig({displayName:"LayoutErrorFallbackBody__Subtext",componentId:"sc-1cfdq5y-2"})(["font-size:16px;line-height:24px;text-align:center;color:",";max-width:350px;@media (","){max-width:250px;}"],(e=>e.theme.color.textLight),b.Z.phone),I=r.ZP.img.withConfig({displayName:"LayoutErrorFallbackBody__Image",componentId:"sc-1cfdq5y-3"})(["width:240px;height:240px;"]),_=(0,l.memo)(T);var K=n(159);const N={fragment:{argumentDefinitions:[B={defaultValue:null,kind:"LocalArgument",name:"accountUuid"},P={defaultValue:null,kind:"LocalArgument",name:"assetSlug"},A={defaultValue:null,kind:"LocalArgument",name:"assetSymbol"},Z={defaultValue:null,kind:"LocalArgument",name:"assetUuid"},D={defaultValue:null,kind:"LocalArgument",name:"chainId"},R={defaultValue:null,kind:"LocalArgument",name:"productKey"},V={defaultValue:null,kind:"LocalArgument",name:"skipAccountUuid"},U={defaultValue:null,kind:"LocalArgument",name:"skipAssetSlug"},E={defaultValue:null,kind:"LocalArgument",name:"skipAssetSymbol"},H={defaultValue:null,kind:"LocalArgument",name:"skipAssetUuid"},O={defaultValue:null,kind:"LocalArgument",name:"skipDappWalletExperiment"},z={defaultValue:null,kind:"LocalArgument",name:"skipFuturesTrading"},q={defaultValue:null,kind:"LocalArgument",name:"skipNotificationDropdownHub"}],kind:"Fragment",metadata:null,name:"LayoutDesktopQuery",selections:[{args:null,kind:"FragmentSpread",name:"ChecklistBannerFragment"},{args:null,kind:"FragmentSpread",name:"SidebarFragment"},{args:null,kind:"FragmentSpread",name:"HeaderBarActionsFragment"},{args:null,kind:"FragmentSpread",name:"MoreMenuModalContentFragment"},{args:null,kind:"FragmentSpread",name:"DropdownMenuFragment"},{args:[W={kind:"Variable",name:"chainId",variableName:"chainId"},{kind:"Variable",name:"skipDappWalletExperiment",variableName:"skipDappWalletExperiment"}],kind:"FragmentSpread",name:"HeaderBarFragment"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[R,D,O,B,P,A,Z,V,U,E,H,q,z],kind:"Operation",name:"LayoutDesktopQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProperties",kind:"LinkedField",name:"userProperties",plural:!1,selections:[Q={alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"firstBuyStatus",storageKey:null},Y={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasMadeAPurchase",storageKey:null},{alias:null,args:null,concreteType:"Country",kind:"LinkedField",name:"country",plural:!1,selections:G=[{alias:null,args:null,kind:"ScalarField",name:"code",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PersonalDetails",kind:"LinkedField",name:"personalDetails",plural:!1,selections:[{alias:null,args:null,concreteType:"MailingAddress",kind:"LinkedField",name:"address",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"userType",storageKey:null},{alias:null,args:null,concreteType:"RegionFeatures",kind:"LinkedField",name:"regionFeatures",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isInUs",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"supportsCryptoToCryptoTransfers",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"supportsFiatTransfers",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"avatarUrl",storageKey:null},$={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"email",storageKey:null}],storageKey:null},Y,{alias:null,args:null,concreteType:"Earn",kind:"LinkedField",name:"earn",plural:!1,selections:[{alias:null,args:null,concreteType:"EarnEligibility",kind:"LinkedField",name:"eligibility",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isInEligibleGeo",storageKey:null}],storageKey:null}],storageKey:null},{alias:"eth2ViewerAsset",args:[{kind:"Literal",name:"slug",value:"ethereum-2"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetBySlug",plural:!1,selections:[X={alias:null,args:null,concreteType:"YieldPromotion",kind:"LinkedField",name:"yieldPromotion",plural:!1,selections:[{alias:null,args:null,concreteType:"YieldPromotionAssetCta",kind:"LinkedField",name:"assetCta",plural:!1,selections:[J={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Account",kind:"LinkedField",name:"accounts",plural:!0,selections:[{alias:null,args:null,concreteType:"AccountHistoryEntryConnection",kind:"LinkedField",name:"accountHistoryEntries",plural:!1,selections:[{alias:null,args:null,concreteType:"AccountHistoryEntryEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[ee={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},Y],storageKey:null},Y],storageKey:'assetBySlug(slug:"ethereum-2")'},{alias:"ethViewerAsset",args:[{kind:"Literal",name:"slug",value:"ethereum"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetBySlug",plural:!1,selections:[X,Y],storageKey:'assetBySlug(slug:"ethereum")'},{alias:null,args:null,kind:"ScalarField",name:"intxAccessLevel",storageKey:null},{alias:null,args:null,concreteType:"InAppNotificationBadgeCount",kind:"LinkedField",name:"unreadNotificationsCount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"unreadCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AppSwitcherApplications",kind:"LinkedField",name:"appSwitcherApplications",plural:!1,selections:[{alias:null,args:null,concreteType:"AppSwitcherSection",kind:"LinkedField",name:"sections",plural:!0,selections:[ae={alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,concreteType:"AppSwitcherApplication",kind:"LinkedField",name:"applications",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"applicationIdentifier",storageKey:null},{alias:null,args:null,concreteType:"AppSwitcherApplicationTile",kind:"LinkedField",name:"tile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},$,{alias:null,args:null,kind:"ScalarField",name:"destinationUri",storageKey:null},{alias:null,args:null,concreteType:"AppSwitcherTileTag",kind:"LinkedField",name:"tag",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"intent",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"colorScheme",storageKey:null}],storageKey:null}],storageKey:null},ee],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Card",kind:"LinkedField",name:"card",plural:!1,selections:[{alias:null,args:null,concreteType:"CardProductEnrollment",kind:"LinkedField",name:"productEnrollment",plural:!1,selections:[{alias:null,args:null,concreteType:"CardProductEnrollmentStatus",kind:"LinkedField",name:"productEnrollmentStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ddaEnrollmentStatus",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:"availablePaymentMethods",args:[{kind:"Literal",name:"walletApp",value:!1}],concreteType:"AvailablePaymentMethodV2",kind:"LinkedField",name:"availablePaymentMethodsV2",plural:!0,selections:le=[ne={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},Y],storageKey:"availablePaymentMethodsV2(walletApp:false)"},{alias:null,args:[{kind:"Literal",name:"action",value:"receives"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:[te={alias:null,args:null,kind:"ScalarField",name:"restrictionName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},ie={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,concreteType:"Link",kind:"LinkedField",name:"link",plural:!1,selections:re=[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},se={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},Y],storageKey:'policyRestrictions(action:"receives")'},{alias:null,args:null,concreteType:"Portfolio",kind:"LinkedField",name:"portfolios",plural:!0,selections:le,storageKey:null},{alias:"quickActionsSurface",args:[{kind:"Literal",name:"categories",value:["UI_COMPONENT_CATEGORY_QUICK_ACTIONS_TRANSFER_TRAY"]},{kind:"Literal",name:"surface",value:"UI_COMPONENT_SURFACE_QUICK_ACTIONS"}],concreteType:"UIComponentsConnection",kind:"LinkedField",name:"uiComponentsBySurface",plural:!1,selections:[{alias:null,args:null,concreteType:"UIComponentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"UIComponent",kind:"LinkedField",name:"node",plural:!1,selections:[ae,{alias:null,args:null,kind:"ScalarField",name:"contentId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"componentId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"surface",storageKey:null},ne,{alias:null,args:null,kind:"ScalarField",name:"language",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"publishedAt",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"component",plural:!1,selections:[ee,{kind:"InlineFragment",selections:[J,{alias:null,args:null,concreteType:"UIComponentCta",kind:"LinkedField",name:"primaryCta",plural:!1,selections:re,storageKey:null},{alias:null,args:null,concreteType:"UIComponent",kind:"LinkedField",name:"components",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"component",plural:!1,selections:[ee,{kind:"InlineFragment",selections:[J,{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null},ie,{alias:null,args:null,kind:"ScalarField",name:"informationUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pictogramId",storageKey:null}],type:"UIComponentElement",abstractKey:null},de={kind:"InlineFragment",selections:oe=[Y],type:"Node",abstractKey:"__isNode"}],storageKey:null},Y],storageKey:null}],type:"UIComponentContainer",abstractKey:null},de],storageKey:null},Y],storageKey:null}],storageKey:null}],storageKey:'uiComponentsBySurface(categories:["UI_COMPONENT_CATEGORY_QUICK_ACTIONS_TRANSFER_TRAY"],surface:"UI_COMPONENT_SURFACE_QUICK_ACTIONS")'},{alias:null,args:null,concreteType:"Account",kind:"LinkedField",name:"fiatAccounts",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"uuid",storageKey:null},ne,ce={alias:null,args:null,kind:"ScalarField",name:"allowWithdrawals",storageKey:null},ue={alias:null,args:null,kind:"ScalarField",name:"allowDeposits",storageKey:null},{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"availableBalance",plural:!1,selections:[me={alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"assetOrFiatCurrency",plural:!1,selections:[ee,{kind:"InlineFragment",selections:G,type:"TiersCurrency",abstractKey:null},de,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Asset",kind:"LinkedField",name:"asset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"platformName",storageKey:null},Y],storageKey:null}],type:"ViewerAsset",abstractKey:null}],storageKey:null},Y],storageKey:null},{alias:"sellPolicyRestrictions",args:[{kind:"Literal",name:"action",value:"sells"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:pe=[te,Y],storageKey:'policyRestrictions(action:"sells")'},{alias:"buyPolicyRestrictions",args:[{kind:"Literal",name:"action",value:"buys"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:pe,storageKey:'policyRestrictions(action:"buys")'},{alias:"tradePolicyRestrictions",args:[{kind:"Literal",name:"action",value:"trades"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:pe,storageKey:'policyRestrictions(action:"trades")'},{alias:"depositPolicyRestrictions",args:[{kind:"Literal",name:"action",value:"deposits"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:pe,storageKey:'policyRestrictions(action:"deposits")'},{alias:"withdrawPolicyRestrictions",args:[{kind:"Literal",name:"action",value:"withdrawals"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:pe,storageKey:'policyRestrictions(action:"withdrawals")'},{alias:null,args:null,concreteType:"Borrow",kind:"LinkedField",name:"borrow",plural:!1,selections:[{alias:null,args:null,concreteType:"LoanSummary",kind:"LinkedField",name:"summary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"eligibility",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"eligibleEntities",value:["COINBASE_ONE_GENERAL"]}],concreteType:"CoinbaseSubscriptionEligibileEntityStatus",kind:"LinkedField",name:"coinbaseSubscriptionEligibility",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"isEligible",storageKey:null}],storageKey:'coinbaseSubscriptionEligibility(eligibleEntities:["COINBASE_ONE_GENERAL"])'},{alias:null,args:[{kind:"Literal",name:"filter",value:{campaignId:"6287fcd69586bbabae53ab76",campaignType:"DIRECT_DEPOSIT"}}],concreteType:"UserIncentive",kind:"LinkedField",name:"userIncentives",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"userIncentiveStatus",storageKey:null},Y],storageKey:'userIncentives(filter:{"campaignId":"6287fcd69586bbabae53ab76","campaignType":"DIRECT_DEPOSIT"})'},{alias:null,args:[{kind:"Variable",name:"productKey",variableName:"productKey"}],concreteType:"CoinbaseSubscription",kind:"LinkedField",name:"coinbaseSubscription",plural:!1,selections:[ge={alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,concreteType:"CoinbaseSubscriptionPlan",kind:"LinkedField",name:"subscriptionPlan",plural:!1,selections:[{alias:null,args:null,concreteType:"CoinbaseSubscriptionPlanBenefit",kind:"LinkedField",name:"benefits",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"benefitType",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"benefitDetails",plural:!1,selections:[ee,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"cryptoBackPercentage",storageKey:null},Y],type:"AdvancedTradeBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"limit",plural:!1,selections:ye=[me,{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],storageKey:null}],type:"NoTradingFeeCoinbaseSubscriptionBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"apy",storageKey:null},{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"stakingCap",plural:!1,selections:ye,storageKey:null},Y],type:"USDCBoostedRewardBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:oe,type:"AtoProtectionBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:oe,type:"BoostedCardRewardsBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:oe,type:"BoostedStakingBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:oe,type:"CointrackerBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:oe,type:"CryptoBackCoinbaseSubscriptionBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:oe,type:"CryptoTaxCalculatorBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:oe,type:"MessariTrialBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:oe,type:"PriorityPhoneSupportBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:oe,type:"SweepstakesBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:oe,type:"TaxCenterBenefitDetails",abstractKey:null}],storageKey:null},Y],storageKey:null},Y],storageKey:null},Y],storageKey:null},{condition:"skipNotificationDropdownHub",kind:"Condition",passingValue:!1,selections:[{alias:null,args:ke=[{kind:"Literal",name:"first",value:10},{kind:"Literal",name:"notificationTypes",value:["PRICE_ALERT","NEWS","TRADING_INSIGHTS","ACCOUNT_ACTIVITY","PRODUCT_ANNOUNCEMENT","SECURITY_ALERT"]}],concreteType:"InAppNotificationsConnection",kind:"LinkedField",name:"inAppNotifications",plural:!1,selections:[{alias:null,args:null,concreteType:"InAppNotificationEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"InAppNotification",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"communicationId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notificationId",storageKey:null},Q,{alias:null,args:null,kind:"ScalarField",name:"readState",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notificationCategory",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"templateName",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payload",plural:!1,selections:[ee,{kind:"InlineFragment",selections:[se,J,{alias:null,args:null,kind:"ScalarField",name:"header",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"rightLabel",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"rightSubLabel",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageUrl",storageKey:null},{alias:null,args:null,concreteType:"StringMapData",kind:"LinkedField",name:"dataBackground",plural:!1,selections:[{alias:null,args:null,concreteType:"StringStringPair",kind:"LinkedField",name:"attributes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},me],storageKey:null}],storageKey:null}],type:"InAppStaticData",abstractKey:null}],storageKey:null},Y,ee],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:"connectionId",args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:'inAppNotifications(first:10,notificationTypes:["PRICE_ALERT","NEWS","TRADING_INSIGHTS","ACCOUNT_ACTIVITY","PRODUCT_ANNOUNCEMENT","SECURITY_ALERT"])'},{alias:null,args:ke,filters:["notificationTypes"],handle:"connection",key:"Query_viewer_inAppNotifications",kind:"LinkedHandle",name:"inAppNotifications"}]},{condition:"skipFuturesTrading",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"DerivativesOnboarding",kind:"LinkedField",name:"derivativesOnboarding",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"accountStatusV3",plural:!1,selections:[ee,{kind:"InlineFragment",selections:[ge],type:"DerivativesUserAccountStatusV3Success",abstractKey:null},{kind:"InlineFragment",selections:G,type:"GenericError",abstractKey:null}],storageKey:null}],storageKey:null}]},{condition:"skipAccountUuid",kind:"Condition",passingValue:!1,selections:[{alias:null,args:[{kind:"Variable",name:"uuid",variableName:"accountUuid"}],concreteType:"Account",kind:"LinkedField",name:"accountByUuidV2",plural:!1,selections:[ne,ue,ce,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"assetOrFiatCurrency",plural:!1,selections:[ee,{kind:"InlineFragment",selections:[he={alias:null,args:null,concreteType:"SupportedContextsV2",kind:"LinkedField",name:"supportedContextsV2",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isTradable",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isConvertible",storageKey:null}],storageKey:null}],type:"ViewerAsset",abstractKey:null},de],storageKey:null},Y],storageKey:null}]},{condition:"skipAssetSlug",kind:"Condition",passingValue:!1,selections:[{alias:"assetFromSlug",args:fe=[{kind:"Variable",name:"slug",variableName:"assetSlug"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetBySlug",plural:!1,selections:be=[he,{alias:null,args:null,concreteType:"Account",kind:"LinkedField",name:"accounts",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"primary",storageKey:null},ne,ue,ce,Y],storageKey:null},Y],storageKey:null},{alias:null,args:fe,concreteType:"ViewerAsset",kind:"LinkedField",name:"assetBySlug",plural:!1,selections:xe=[{alias:null,args:null,concreteType:"EarnProgram",kind:"LinkedField",name:"earnProgram",plural:!1,selections:le,storageKey:null},Y],storageKey:null}]},{condition:"skipAssetUuid",kind:"Condition",passingValue:!1,selections:[{alias:"assetFromUuid",args:Se=[{kind:"Variable",name:"uuid",variableName:"assetUuid"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetByUuid",plural:!1,selections:be,storageKey:null},{alias:null,args:Se,concreteType:"ViewerAsset",kind:"LinkedField",name:"assetByUuid",plural:!1,selections:xe,storageKey:null}]},{condition:"skipAssetSymbol",kind:"Condition",passingValue:!1,selections:[{alias:"assetFromSymbol",args:[{kind:"Variable",name:"symbol",variableName:"assetSymbol"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetBySymbol",plural:!1,selections:be,storageKey:null}]},{condition:"skipDappWalletExperiment",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"Defi",kind:"LinkedField",name:"defiV2",plural:!1,selections:[{alias:null,args:[W],concreteType:"DefiNetwork",kind:"LinkedField",name:"network",plural:!1,selections:[{alias:null,args:null,concreteType:"DefiAccountResult",kind:"LinkedField",name:"controlledAccountsV2",plural:!1,selections:[{alias:null,args:null,concreteType:"DefiAccount",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"address",storageKey:null},Y],storageKey:null}],storageKey:null},Y],storageKey:null}],storageKey:null}]}],storageKey:null},{condition:"skipFuturesTrading",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"RetailDerivatives",kind:"LinkedField",name:"retailDerivatives",plural:!1,selections:[{alias:null,args:null,concreteType:"FuturesSweepInformation",kind:"LinkedField",name:"futuresSweepInformation",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"pending",plural:!1,selections:[ee,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"dummy",storageKey:null}],type:"FuturesManualSweepInformationNoneScheduled",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"isMax",storageKey:null},{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"amount",plural:!1,selections:ye,storageKey:null}],type:"FuturesManualSweepInformationSweepScheduled",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]}]},params:{id:"84445d2cd252520f799bdc83aab8f81427bbd94ec70a68d2a4e8efb533ab6d88",metadata:{},name:"LayoutDesktopQuery",operationKind:"query",text:null}};var B,P,A,Z,D,R,V,U,E,H,O,z,q,W,Q,Y,G,$,J,X,ee,ae,ne,le,te,ie,se,re,oe,de,ce,ue,me,pe,ge,ye,ke,he,fe,be,xe,Se;N.hash="85db11cb54336ae240fde16282c4a1de";const Fe=N;var ve=n(770),we=n(72),Ce=n(780),Te=n(30),je=n(1474),Me=n(84),Le=n(808),Ie=n(1369),_e=n(1574),Ke=n(1209),Ne=n(2369),Be=n(277),Pe=n(2375),Ae=n(535),Ze=n(894),De=n(790),Re=n(2122),Ve=n(1410),Ue=n(218),Ee=n(1470);const He={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"DropdownMenuFragment",selections:[{args:null,kind:"FragmentSpread",name:"useProfileMenuItemsFragment"},{args:null,kind:"FragmentSpread",name:"DropdownContentV2Fragment"},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"UserProperties",kind:"LinkedField",name:"userProperties",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"userType",storageKey:null}],storageKey:null},action:"THROW",path:"viewer.userProperties"}],storageKey:null}],type:"Query",abstractKey:null,hash:"4f416759a77d8e866e7cfa1a53bb60a0"},Oe=He;var ze=n(15),qe=n(154),We=n(4),Qe=n(181),Ye=n(282),Ge=n(854),$e=n(386),Je=n(1435);const Xe=function(){var e=[{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}];return{argumentDefinitions:[{kind:"RootArgument",name:"productKey"}],kind:"Fragment",metadata:null,name:"useProfileMenuItemsFragment",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProperties",kind:"LinkedField",name:"userProperties",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"userType",storageKey:null},{alias:null,args:null,concreteType:"RegionFeatures",kind:"LinkedField",name:"regionFeatures",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isInUs",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"productKey",variableName:"productKey"}],concreteType:"CoinbaseSubscription",kind:"LinkedField",name:"coinbaseSubscription",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,concreteType:"CoinbaseSubscriptionPlan",kind:"LinkedField",name:"subscriptionPlan",plural:!1,selections:[{alias:null,args:null,concreteType:"CoinbaseSubscriptionPlanBenefit",kind:"LinkedField",name:"benefits",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"getSubscriptionPlanBenefitFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"benefitType",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"benefitDetails",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"cryptoBackPercentage",storageKey:null}],type:"AdvancedTradeBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"limit",plural:!1,selections:e,storageKey:null}],type:"NoTradingFeeCoinbaseSubscriptionBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"apy",storageKey:null},{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"stakingCap",plural:!1,selections:e,storageKey:null}],type:"USDCBoostedRewardBenefitDetails",abstractKey:null}],storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}}();Xe.hash="392efb96d653d4f1db24e99872474ef7";const ea=Xe;var aa=n(137),na=n(7),la=n(184),ta=n(115),ia=n(1579),sa=n(1472),ra=n(804),oa=n(377),da=n(1581),ca=n(223);const ua=(0,i.vU)({manageYourProfile:{id:"Layout.useProfileMenuItems.manageYourProfile",defaultMessage:"Manage your profile"},settings:{id:"Layout.useProfileMenuItems.settings",defaultMessage:"Settings"},signoutLink:{id:"Layout.useProfileMenuItems.signoutLink",defaultMessage:"Sign out"},getSupport:{id:"Layout.useProfileMenuItems.getSupport",defaultMessage:"Get Support"}});function ma(e){const a=(0,m.Jc)(ea,e),{viewer:n}=a,{userProperties:t}=n,{regionFeatures:i}=t,{isInUs:r}=i,{activeNavSelection:o}=(0,K.Vn)(),{formatMessage:d}=(0,s.Z)(),{showModal:c}=(0,ta.Z)(),u=(0,la.Z)("tax_center.enabled"),p=(0,la.Z)("tax_center.international"),g=u&&r||p,y=(0,aa.ZP)("COINBASE_PUBLIC_ACCOUNTS_DOMAIN"),k=n?.coinbaseSubscription,h=Boolean(k?.subscriptionPlan?.benefits?.some((e=>null!==e&&(0,sa.M)(e).benefitType===De.Sj.priorityPhoneSupport)))&&(0,ra.Y)(k?.status),f=(0,ca.j_)(na.Us.click,"manage_your_profile"),b=(0,ca.j_)(na.Us.click,"settings"),x=(0,ca.j_)(na.Us.click,"taxes_reports"),S=(0,ca.j_)(na.Us.click,"taxes"),F=(0,ca.j_)(na.Us.click,"reports"),v=(0,ca.j_)(na.Us.click,"get-support"),C=(0,ca.j_)(na.Us.click,"sign_out"),T=(0,ca.j_)(na.Us.hover,"manage_your_profile"),j=(0,ca.j_)(na.Us.hover,"settings"),M=(0,ca.j_)(na.Us.hover,"taxes_reports"),L=(0,ca.j_)(na.Us.hover,"taxes"),I=(0,ca.j_)(na.Us.hover,"reports"),_=(0,ca.j_)(na.Us.hover,"get-support"),N=(0,ca.j_)(na.Us.hover,"sign_out");return(0,l.useMemo)((()=>{const e={key:"manage-profile",title:d(ua.manageYourProfile),href:`${y}/profile`,openInNewTab:!0,omitForScreenType:"desktop",onClick:()=>{f()},onMouseEnter:()=>{T()}},a={key:"settings",title:d(ua.settings),active:"settings"===o,to:"/settings",onClick:()=>{b()},onMouseEnter:()=>{j()}},n={title:d(da.Z.reports),active:"tools"===o,to:"/reports",onClick:()=>{g?F():x()},onMouseEnter:()=>{g?I():M()}},l={key:"taxes",title:d(da.Z.taxes),href:`${y}/taxes`,openInNewTab:!0,onClick:()=>{S()},onMouseEnter:()=>{L()}},t={key:"support",title:d(ua.getSupport),onMouseEnter:()=>{_()}},i=h?{...t,onClick:()=>{v(),c((0,w.jsx)(ia.a,{showSupportLink:!0}))}}:{...t,href:void 0,to:"/get-support",onClick:()=>{v()}},s={key:"signout",title:d(ua.signoutLink),href:"/signout",onClick:()=>{C(),oa.default.signout()},onMouseEnter:()=>{N()}};return[e,a,...g?[l]:[],n,i,s]}),[d,y,o,g,h,f,T,b,j,F,x,I,M,S,L,c,C,N,v,_])}const pa=(0,l.lazy)((()=>Promise.all([n.e(14),n.e(2966)]).then(n.bind(n,2298)))),ga=(0,l.forwardRef)((function(e,a){const{queryRef:n}=e,t=(0,m.Jc)(Oe,n),i=ma(t),s=(0,l.useMemo)((()=>i.filter((e=>"desktop"!==e.omitForScreenType))),[i]),r=(0,Je.Z)(),{profileDropdownExpanded:o}=(0,Ye.Z)();return(0,w.jsxs)(w.Fragment,{children:[o&&(0,w.jsx)(Ge.Z,{}),(0,w.jsx)(xa,{auto:!0,column:!0,width:375,isDarkMode:r,ref:a,children:(0,w.jsx)(m.zq,{instrumentationId:"DropdownContentContainer",fallback:(0,w.jsx)(We.Box,{minHeight:550}),children:o&&(0,w.jsx)(pa,{queryRef:t,menuItems:s,showDarkModeToggle:e.showDarkModeToggle})})},"dropdown-content-container")]})}));function ya(e){const{isLocked:a,scrollbarSize:n}=(0,$e.Z)(),{profileDropdownExpanded:t,toggleProfileDropdown:i}=(0,Ye.Z)(),s=(0,l.useRef)(null),r=20+(a?n:0),o=(0,l.useCallback)((e=>{s?.current&&(s?.current?.contains(e.target)||i())}),[i]);return(0,w.jsx)(fa,{show:t,backgroundColor:ka,onClick:o,"data-element":"Overlay","data-component":"DropdownMenu",children:(0,w.jsx)(ba,{open:t||!1,right:r,onKeyDown:e=>{"Escape"===e.key&&i()},"data-element":"Wrapper",children:(0,w.jsx)(qe.Z,{instrumentationId:"DropdownMenu",fallback:(0,w.jsx)(xa,{children:(0,w.jsx)(Sa,{children:(0,w.jsx)(d.Z,{})})}),"data-element":"SuspenseWithTransition",children:(0,w.jsx)(ze.SV,{owner:"infra",fallback:()=>null,context:"app","data-element":"ErrorBoundary",children:(0,w.jsx)(ga,{...e,ref:s,"data-element":"DropdownContentContainer"})})})})})}const ka="rgb(10, 11, 13, .2)",ha=(0,Qe.paletteValueToCssVar)("gray10"),fa=r.ZP.div.withConfig({displayName:"DropdownMenu__Overlay",componentId:"sc-10qdpp4-0"})(["position:fixed;top:0;right:0;bottom:0;left:0;background-color:",";display:flex;pointer-events:",";opacity:",";transition:opacity 0.25s;overflow-y:scroll;z-index:",";::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],ka,(e=>e.show?"auto":"none"),(e=>e.show?"1":"0"),(e=>(0,we.Z)(e.zIndexOverride||e.theme.zIndex.backdrop))),ba=r.ZP.nav.withConfig({displayName:"DropdownMenu__Wrapper",componentId:"sc-10qdpp4-1"})(["position:absolute;min-width:300px;display:",";top:72px;right:","px;flex-direction:column;z-index:",";"],(e=>e.open?"flex":"none"),(e=>(0,we.Z)(e.right)),(e=>e.theme.zIndex.overlay)),xa=(0,r.ZP)(o.Z).withConfig({displayName:"DropdownMenu__Dropdown",componentId:"sc-10qdpp4-2"})(["width:","px;border-radius:",";border:1px solid ",";box-shadow:",";background-color:",";"],(e=>(0,we.Z)(e.width)||300),(e=>e.theme.border.borderRadius),(e=>e.theme.color.border),(e=>e.theme.boxShadow.default),(e=>e.isDarkMode?ha:e.theme.color.background)),Sa=(0,r.ZP)(o.Z).withConfig({displayName:"DropdownMenu__SpinnerContainer",componentId:"sc-10qdpp4-3"})(["width:100%;min-height:350px;align-items:center;justify-content:center;"]),Fa=(0,l.memo)(ya);var va=n(1527),wa=n(778),Ca=n(1363),Ta=n(14),ja=n(157),Ma=n(883),La=n(23),Ia=n(569),_a=n(834),Ka=n(855);const Na=(0,i.vU)({actionshelp:{id:"FooterV2.e522707.actions.help",defaultMessage:"Need help?"},linkslegalPrivacy:{id:"FooterV2.e522707.links.legalPrivacy",defaultMessage:"Legal & Privacy"},linkscareers:{id:"FooterV2.e522707.links.careers",defaultMessage:"Careers"},linkshome:{id:"FooterV2.e522707.links.home",defaultMessage:"Home"},linksRiskDisclosure:{id:"FooterV2.e522707.links.riskDisclosure",defaultMessage:"Risk Disclosure"},linksDisclosures:{id:"FooterV2.e522707.links.disclosures",defaultMessage:"Disclosures"}});function Ba(){const{formatMessage:e}=(0,s.Z)(),[a,n]=(0,l.useState)(!0),[t,i]=(0,l.useState)(0),{height:r}=(0,ve.Z)(),{featureFlags:o,countryCode:d}=(0,La.Z)(),c=(0,Ma.Z)(),u=(0,Ia.Z)(),p=o?.includes("2022.jun.rds_requirement_enabled"),y=(0,Ca.Z)((()=>{const e=window.pageYOffset,a=t>e||e<20||document.body.scrollHeight-e===r;n(a),i(e)}),5);return(0,l.useEffect)((()=>(window.addEventListener("scroll",y),()=>window.removeEventListener("scroll",y))),[t,a,y,r]),a?(0,w.jsxs)(We.VStack,{width:"100%",borderedTop:!0,justifyContent:"center",spacingHorizontal:3,"data-element":"VStack","data-component":"StickyFooter",children:[(0,w.jsxs)(We.HStack,{width:"100%",minHeight:64,maxWidth:1450,justifyContent:"space-between",alignItems:"center","data-element":"HStack",children:[(0,w.jsxs)(We.HStack,{alignItems:"center",gap:2,"data-element":"HStack",children:[(0,w.jsx)(Ta.Link,{variant:"label2",href:"/home","data-element":"Link",children:e(Na.linkshome)}),(0,w.jsx)(Ta.Link,{variant:"label2",href:"/careers","data-element":"Link",children:e(Na.linkscareers)}),(0,w.jsx)(Ta.Link,{variant:"label2",href:"/legal/user_agreement","data-element":"Link",children:e(Na.linkslegalPrivacy)}),"US"===d&&(0,w.jsx)(Ta.Link,{variant:"label2",href:"/legal/licenses",children:e(Na.linksDisclosures)}),c&&p&&(0,w.jsx)(Ta.Link,{variant:"label2",href:"/legal/crypto_risk_statement/canada",children:e(Na.linksRiskDisclosure)}),(0,w.jsxs)(Ta.TextLabel2,{color:"foregroundMuted",as:"p","data-element":"TextLabel2",children:["© ",(new Date).getFullYear()," Coinbase"]})]}),(0,w.jsxs)(We.HStack,{alignItems:"center",gap:2,spacingEnd:2,"data-element":"HStack",children:[(0,w.jsx)(m.zq,{instrumentationId:"StickyFooter",fallback:null,"data-element":"InstrumentedSuspense",children:(0,w.jsx)(g.Z,{owner:"infra",context:"locale_selector","data-element":"ErrorBoundary",children:(0,w.jsx)(ja.Z,{owner:"infra",boundaryName:"LocaleSelector",context:"locale_selector","data-element":"NetworkErrorBoundary",children:(0,w.jsx)(Ka.Z,{"data-element":"LocaleSelector"})})})}),!u&&(0,w.jsx)(Ta.Link,{href:"https://support.coinbase.com/",children:(0,w.jsx)(wa.Z,{size:"small",children:e(Na.actionshelp)})})]})]}),(0,w.jsx)(_a.Z,{source:"sticky-footer",hasBackground:!1,"data-element":"FinPromFooter"})]}):null}const Pa=(0,l.memo)(Ba);var Aa=n(1489);const Za={argumentDefinitions:[{defaultValue:["UI_COMPONENT_CATEGORY_QUICK_ACTIONS_TRANSFER_TRAY"],kind:"LocalArgument",name:"categories"}],kind:"Fragment",metadata:null,name:"HeaderBarActionsFragment",selections:[{args:null,kind:"FragmentSpread",name:"HeaderBarNotificationButtonFragment"},{args:null,kind:"FragmentSpread",name:"HeaderBarAppSwitcherFragment"},{args:null,kind:"FragmentSpread",name:"ProfileDropdownFragment"},{args:null,kind:"FragmentSpread",name:"DepositTriggerFragment"},{args:null,kind:"FragmentSpread",name:"AdvancedGlobalTransferButtonFragment"},{args:null,kind:"FragmentSpread",name:"useShowAdvancedPortfolioButtonsFragment"},{args:[{kind:"Variable",name:"categories",variableName:"categories"}],kind:"FragmentSpread",name:"DynamicQuickActionsFragment"},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"Account",kind:"LinkedField",name:"fiatAccounts",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"uuid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"allowDeposits",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"assetOrFiatCurrency",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"code",storageKey:null}],type:"TiersCurrency",abstractKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"DepositTriggerAccountFragment"}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"useAssetTradeEligibilityFromRouteFragment"}],type:"Query",abstractKey:null,hash:"d817ccc5ac419a765c48a540f0ee1b4f"},Da=Za;var Ra=n(32),Va=n(1360),Ua=n(182),Ea=n(82),Ha=n(54),Oa=n(2169),za=n(2170),qa=n(2171),Wa=n(2172),Qa=n(186),Ya=n(835),Ga=n(898),$a=n(2173),Ja=n(1588),Xa=n(105),en=n(2174),an=n(343),nn=n(2366),ln=n(116),tn=n(86),sn=n(518),rn=n(16),on=n(706);const dn=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"first"},{defaultValue:null,kind:"LocalArgument",name:"searchQuery"}],a=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Literal",name:"filter",value:"ALL"},{kind:"Variable",name:"first",variableName:"first"},{kind:"Variable",name:"query",variableName:"searchQuery"},{kind:"Literal",name:"sort",value:"RANK"}],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"AssetSearchResultsPaginatedQuery",selections:[{args:[{kind:"Variable",name:"cursor",variableName:"cursor"}],kind:"FragmentSpread",name:"AssetSearchResultsPaginatedFragment"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"AssetSearchResultsPaginatedQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:a,concreteType:"ViewerAssetConnection",kind:"LinkedField",name:"searchAssets",plural:!1,selections:[{alias:null,args:null,concreteType:"ViewerAssetEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ViewerAsset",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,concreteType:"Asset",kind:"LinkedField",name:"asset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imageUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displaySymbol",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"uuid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"platformName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RewardApy",kind:"LinkedField",name:"rewardApy",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"formattedValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:a,filters:["query","filter","sort"],handle:"connection",key:"Query_viewer_searchAssets",kind:"LinkedHandle",name:"searchAssets"},n],storageKey:null}]},params:{id:"121ba10921a0046e4523419ce1ba18b280ddfc779e9e947436804c9d9cfa8644",metadata:{},name:"AssetSearchResultsPaginatedQuery",operationKind:"query",text:null}}}();dn.hash="1d50d169ea9c4c5a106e3cf58920b19e";const cn=dn,un=function(){var e=["viewer","searchAssets"];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"cursor"},{kind:"RootArgument",name:"first"},{kind:"RootArgument",name:"searchQuery"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"first",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:[],operation:cn}},name:"AssetSearchResultsPaginatedFragment",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:"searchAssets",args:[{kind:"Literal",name:"filter",value:"ALL"},{kind:"Variable",name:"query",variableName:"searchQuery"},{kind:"Literal",name:"sort",value:"RANK"}],concreteType:"ViewerAssetConnection",kind:"LinkedField",name:"__Query_viewer_searchAssets_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"ViewerAssetEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ViewerAsset",kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"AssetSearchListCellFragment"},{alias:null,args:null,concreteType:"Asset",kind:"LinkedField",name:"asset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uuid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"platformName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null}}();un.hash="1d50d169ea9c4c5a106e3cf58920b19e";const mn=un,pn=function(){var e={defaultValue:null,kind:"LocalArgument",name:"first"},a={defaultValue:null,kind:"LocalArgument",name:"searchQuery"},n=[{kind:"Literal",name:"filter",value:"ALL"},{kind:"Variable",name:"first",variableName:"first"},{kind:"Variable",name:"query",variableName:"searchQuery"},{kind:"Literal",name:"sort",value:"RANK"}],l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[e,a],kind:"Fragment",metadata:null,name:"AssetSearchResultsQuery",selections:[{args:null,kind:"FragmentSpread",name:"AssetSearchResultsPaginatedFragment"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,e],kind:"Operation",name:"AssetSearchResultsQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:n,concreteType:"ViewerAssetConnection",kind:"LinkedField",name:"searchAssets",plural:!1,selections:[{alias:null,args:null,concreteType:"ViewerAssetEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ViewerAsset",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,concreteType:"Asset",kind:"LinkedField",name:"asset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imageUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displaySymbol",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},l,{alias:null,args:null,kind:"ScalarField",name:"uuid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"platformName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"RewardApy",kind:"LinkedField",name:"rewardApy",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"formattedValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],storageKey:null},l,{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:n,filters:["query","filter","sort"],handle:"connection",key:"Query_viewer_searchAssets",kind:"LinkedHandle",name:"searchAssets"},l],storageKey:null}]},params:{id:"773048a9ecd61850e387dad6a73c1de810fe3a3085d67230ee00584119587514",metadata:{},name:"AssetSearchResultsQuery",operationKind:"query",text:null}}}();pn.hash="7470f416aab3b90ba10a7df818c7914b";const gn=pn;var yn=n(2368),kn=n(2367),hn=n(777),fn=n(1460),bn=n(505);const xn="search",Sn={search:"search",search_result:"search_result"};const Fn={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AssetSearchListCellFragment",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"Asset",kind:"LinkedField",name:"asset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"imageUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displaySymbol",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},action:"THROW",path:"asset"},{alias:null,args:null,concreteType:"RewardApy",kind:"LinkedField",name:"rewardApy",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"formattedValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],storageKey:null}],type:"ViewerAsset",abstractKey:null,hash:"72fd5f411b27fee9e867ea617c5f5495"},vn=Fn;var wn=n(2365),Cn=n(162),Tn=n(341),jn=n(215);const Mn=(0,i.vU)({earnsApy:{id:"AssetSearchListCell.earnsApy",defaultMessage:"Earns {percent} {apy}"}});function Ln({scrollRef:e,isActive:a,viewerAssetRef:n,handleAssetHover:t,handleAssetClick:i}){const r=(0,c.Z)(),{formatMessage:o}=(0,s.Z)(),d=(0,l.useRef)(null),{rewardApy:u,asset:p}=(0,m.Jc)(vn,n);(0,wn.Z)({scrollRef:e,optionRef:d,isOptionActive:a});const g=(0,l.useMemo)((()=>p.displaySymbol===jn.Rr&&u?.formattedValue),[p.displaySymbol,u?.formattedValue]),y=(0,l.useMemo)((()=>{if(g)return(0,w.jsx)(Ta.TextBody,{as:"span",color:"positive",children:o(Mn.earnsApy,{percent:u?.formattedValue,apy:u?.label})})}),[g,o,u?.formattedValue,u?.label]);return(0,w.jsx)(In,{ref:d,role:"option",isActive:a,isMobile:r,"aria-selected":a,onMouseMove:t,onMouseDown:i,"data-element":"Wrapper","data-component":"AssetSearchListCell",children:(0,w.jsx)(Tn.ListCell,{title:p.name,detail:p.displaySymbol,description:y,media:(0,w.jsx)(Cn.CellMedia,{type:"asset",source:p.imageUrl,title:p.displaySymbol??void 0}),compact:!0,testID:`search-result-${p.name}`,innerSpacing:{spacingHorizontal:1,spacingVertical:1},outerSpacing:{spacingVertical:.5},"data-element":"ListCell"},p.displaySymbol)})}const In=r.ZP.li.withConfig({displayName:"AssetSearchListCell__Wrapper",componentId:"sc-8olkb7-0"})(["display:flex;cursor:pointer;border-bottom:none;background-color:",";border-radius:",";button{&:hover{background:transparent;}}"],(({isActive:e,isMobile:a})=>e?rn.palette.secondary:a?rn.palette.primaryForeground:rn.palette.transparent),(({isMobile:e})=>e?0:"8px")),_n=(0,l.memo)(Ln),Kn=(0,i.vU)({search:{id:"AssetSearch.search",defaultMessage:"Search for an asset"},noSearchResults:{id:"AssetSearch.noSearchResults",defaultMessage:'No results for "{query}"'}});function Nn({searchQuery:e}){const{formatMessage:a}=(0,s.Z)();return(0,w.jsx)(Ta.TextBody,{spacing:4,as:"p",color:"foregroundMuted",align:"center",testID:"no-search-results","data-element":"TextBody","data-component":"AssetSearchNoResultsFallback",children:a(Kn.noSearchResults,{query:e})})}const Bn=(0,l.memo)(Nn);var Pn=n(499);const An=490;function Zn({children:e,scrollRef:a}){return(0,w.jsx)(We.Box,{bordered:!0,width:Jn,background:"background",borderRadius:"roundedLarge",overflow:"auto",zIndex:Pn.Z.overlay,top:rn.spacing[7],testID:"search-results-container",position:"absolute",maxHeight:An,flexDirection:"column",spacing:1,elevation:2,dangerouslySetClassName:"h1g3hbi8",ref:a,"data-element":"Box","data-component":"AssetSearchResultsDesktopContainer",children:e})}const Dn=(0,l.memo)(Zn);n(2178);var Rn=n(35),Vn=n(359);const Un="m1kihqyy";function En({isSearching:e,setSearchOff:a}){const{formatMessage:n}=(0,s.Z)(),[t,i]=(0,l.useState)(""),r=(0,nn.Z)(t,250),o=(0,l.useCallback)((()=>{a(),i("")}),[a]);return(0,w.jsxs)(Vn.Modal,{visible:e,onRequestClose:o,"data-element":"Modal","data-component":"SearchMobile",children:[(0,w.jsxs)(We.HStack,{spacingVertical:1,spacingHorizontal:2,gap:1,dangerouslySetClassName:Un,"data-element":"HStack",children:[(0,w.jsx)(Rn.IconButton,{name:"backArrow",transparent:!0,onPress:o,"data-element":"IconButton"}),(0,w.jsx)(sn.SearchInput,{testID:"header-search-bar",compact:!0,value:t,width:"100%",height:40,autoCapitalize:"none",onChangeText:i,placeholder:n(Kn.search),autoFocus:!0,hideStartIcon:!0,"data-element":"SearchInput"},"header-search-bar")]}),(0,w.jsx)(We.Divider,{"data-element":"Divider"}),(0,w.jsx)($n,{searchQuery:r,handleSearchBlur:o,"data-element":"AssetSearchResults"})]})}const Hn=(0,l.memo)(En);function On({children:e,scrollRef:a}){return(0,w.jsx)(We.VStack,{ref:a,spacingTop:1,height:"100%",flexGrow:1,flexShrink:1,flexBasis:0,overflow:"auto",testID:"search-results-container",dangerouslySetClassName:Un,"data-element":"VStack","data-component":"AssetSearchResultsMobileContainer",children:e})}n(2191);const zn=(0,l.memo)(On);function qn(){const e=(0,c.Z)(),a=(0,l.useRef)(null),n=(0,l.useMemo)((()=>e?zn:Dn),[e]),t=(0,l.useMemo)((()=>e?15:9),[e]);return(0,w.jsx)(n,{scrollRef:a,"data-element":"AssetSearchResultsContainer","data-component":"AssetSearchResultsFallback",children:new Array(t).fill(null).map(((e,a)=>(0,w.jsx)(Cn.ListCellFallback,{title:!0,detail:!0,media:"asset",compact:!0},a)))})}const Wn=(0,l.memo)(qn),Qn=50;function Yn({searchQuery:e,handleSearchBlur:a}){const n=(0,c.Z)(),t=(0,Ra.k6)(),i=(0,l.useMemo)((()=>({searchQuery:e,first:Qn})),[e]),s=(0,m.pp)(gn,i),{data:{viewer:r},hasNext:o,loadNext:d,isLoadingNext:u}=(0,m.nu)(mn,s),p=(0,l.useMemo)((()=>(r.searchAssets?.edges||[]).map((e=>e.node))),[r.searchAssets?.edges]),g=(0,hn.Z)(p),y=(0,l.useCallback)((()=>{o&&!u&&d(Qn)}),[o,u,d]),k=(0,l.useCallback)(((e,a)=>{(0,na.Kz)(Sn.search,{component_name:xn,componentType:na.re.search_bar,action:na.Us.search,search_term:e,num_assets_returned:a})}),[]),h=(0,l.useCallback)(((e,a,n,l)=>{(0,na.Kz)(Sn.search_result,{action:na.Us.click,component_name:xn,componentType:na.re.card,search_term:e,asset:a,asset_rank:n,assetId:l})}),[]);(0,l.useEffect)((()=>k(e,g.length)),[e,g.length,k]);const f=(0,l.useCallback)(((n,l,i,s)=>{t.push((0,bn.pW)(n)),h(e,l??"error-loading-symbol",i,s),a()}),[t,h,e,a]),[b,x]=(0,l.useState)(0),S=p.length-1;(0,l.useEffect)((()=>{x(0)}),[e]);const F=(0,l.useCallback)((e=>()=>{x(e)}),[x]),v=(0,l.useCallback)((()=>{const e=g[b].asset;f(e.slug,e.platformName,b+1,e.uuid)}),[g,b,f]),C=(0,l.useCallback)((e=>{"ArrowUp"===e.key&&x((e=>0===e?0:e-1)),"ArrowDown"===e.key&&x((e=>e===S?S:e+1)),"Enter"===e.key&&v(),"Escape"===e.key&&a()}),[v,a,S]);(0,l.useEffect)((()=>(window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C))),[C,S]);const T=(0,l.useRef)(null);(0,l.useEffect)((()=>{b===S&&o&&u&&T.current?.scrollIntoView({block:"nearest",inline:"end"}),b!==S||o||j.current?.scrollTo({top:An})}),[b,S,o,u]);const j=(0,l.useRef)(null);!function({scrollRef:e,searchQuery:a}){(0,l.useEffect)((()=>{e.current?.scrollTo({top:0})}),[a])}({scrollRef:j,searchQuery:e});const M=(0,l.useMemo)((()=>n?zn:Dn),[n]),L=(0,l.useMemo)((()=>0===g.length?(0,w.jsx)(Bn,{searchQuery:e}):g.map(((e,a)=>(0,w.jsx)(_n,{scrollRef:j,viewerAssetRef:e,isActive:!n&&a===b,handleAssetHover:F(a),handleAssetClick:()=>f(e.asset.slug,e.asset.platformName,b+1,e.asset.uuid)})))),[b,f,F,n,g,e]);return(0,w.jsx)(M,{scrollRef:j,"data-element":"AssetSearchResultsContainer","data-component":"AssetSearchResultsContent",children:(0,w.jsx)(kn.Z,{isLoading:u,getMoreItems:y,spinner:(0,w.jsx)(fn.Z,{showSpinner:u,spinnerRef:T}),forceObserve:!0,"data-element":"InfiniteScroll",children:L})})}function Gn(e){return(0,w.jsx)(yn.Z,{owner:"search",fallback:(0,w.jsx)(Wn,{}),name:"SearchResults",context:"search","data-element":"Boundary","data-component":"AssetSearchResults",children:(0,w.jsx)(Yn,{...e,"data-element":"AssetSearchResultsContent"})})}const $n=(0,l.memo)(Gn),Jn=300;function Xn({isSearching:e,setSearchOff:a,searchPositionRef:n}){const{formatMessage:t}=(0,s.Z)(),[i,r]=(0,l.useState)(""),o=(0,nn.Z)(i,250),[d,c]=(0,l.useState)(!1),[u,m]=(0,l.useState)(null),[p,g]=(0,l.useState)(0),[y,k]=(0,l.useState)(0),{width:h,height:f}=(0,ve.Z)(),{isLocked:b}=(0,l.useContext)(on.Z),x=(0,Ua.Z)("desktop_large"),S=(0,l.useCallback)((e=>{r("/"===e?"":e)}),[]),F=(0,l.useCallback)((()=>{a(),r("")}),[a]);(0,l.useEffect)((()=>{m(n.current?.getBoundingClientRect()??null)}),[h,f,x,b]),(0,l.useEffect)((()=>{g(u?.top??0),k(u?.left??0)}),[u]),(0,l.useEffect)((()=>{e&&0!==p&&0!==y&&c(!0)}),[e,p,y]);const v=(0,ln.useSpectrumConditional)({light:rn.palette.backgroundOverlay,dark:(0,an.Ok)(["gray0",.5])});return(0,w.jsxs)(w.Fragment,{children:[d?(0,w.jsx)(Ge.Z,{}):null,(0,w.jsx)(el,{visible:d,onClick:F,style:{background:v}}),(0,w.jsx)(al,{visible:d,top:p,left:y,children:(0,w.jsxs)(We.VStack,{width:Jn,children:[(0,w.jsx)(sn.SearchInput,{testID:"header-search-bar",compact:!0,value:i,width:"100%",height:40,autoCapitalize:"none",onChangeText:S,placeholder:t(Kn.search),autoFocus:!0},"header-search-bar"),(0,w.jsx)($n,{searchQuery:o,handleSearchBlur:F})]})})]})}const el=r.ZP.div.withConfig({displayName:"SearchDesktop__Overlay",componentId:"sc-10lypcc-0"})(["position:fixed;z-index:",";top:0;left:0;right:0;bottom:0;transition:opacity ","ms;opacity:",";pointer-events:",";"],(e=>e.theme.zIndex.backdrop),tn.durations.moderate1,(e=>e.visible?1:0),(e=>e.visible?"auto":"none")),al=r.ZP.div.withConfig({displayName:"SearchDesktop__Wrapper",componentId:"sc-10lypcc-1"})(["position:fixed;opacity:",";transition:opacity ","ms;z-index:",";top:","px;left:","px;"],(e=>e.visible?1:0),tn.durations.moderate1,(e=>e.theme.zIndex.overlay),(e=>(0,we.Z)(e.top-1)),(e=>(0,we.Z)(e.left-1))),nl=(0,l.memo)(Xn);var ll=n(1366),tl=n(64),il=n(38);function sl({isSearching:e,setSearchOn:a,searchPositionRef:n}){const{formatMessage:t}=(0,s.Z)(),i=(0,c.Z)(),r=(0,l.useCallback)((e=>{(0,na.Kz)(Sn.search,{component_name:xn,componentType:na.re.search_bar,action:e})}),[]),o=(0,l.useCallback)((()=>{r(na.Us.view)}),[r]),d=(0,l.useCallback)((()=>{r(na.Us.click)}),[r]),u=(0,l.useCallback)((()=>{a(),d()}),[a,d]),m=(0,l.useMemo)((()=>i?(0,w.jsx)(We.Box,{width:40,height:40,alignItems:"center",justifyContent:"center",children:(0,w.jsx)(tl.NavigationIcon,{name:"magnifyingGlass",size:"s"})}):(0,w.jsxs)(We.HStack,{ref:n,testID:"header-search-button",height:40,width:Jn-2,alignContent:"center",alignItems:"center",dangerouslySetStyle:{border:"1px solid transparent"},children:[(0,w.jsx)(tl.Icon,{name:"search",size:"s",color:"foreground",spacingHorizontal:2}),(0,w.jsx)(Ta.TextBody,{color:"foregroundMuted",numberOfLines:1,as:"p",spacingStart:.5,children:t(Kn.search)})]})),[t,i,n]),p=(0,l.useMemo)((()=>({visibility:e?"hidden":"visible",transitionProperty:"visibility",transitionDuration:`${tn.durations.moderate1}ms`})),[e]);return(0,w.jsx)(ll.Z,{onVisibleOnce:o,"data-element":"VisibilityTrigger","data-component":"SearchButton",children:(0,w.jsx)(il.Pressable,{as:"button",backgroundColor:"secondary",borderWidth:"button",borderRadius:"roundedFull",onPress:u,accessibilityLabel:t(Kn.search),noScaleOnPress:!0,style:p,"data-element":"Pressable",children:m})})}const rl=(0,l.memo)(sl);var ol=n(1329);const dl={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"HeaderBarAppSwitcherFragment",selections:[{args:null,kind:"FragmentSpread",name:"AppSwitcherFragment"}],type:"Query",abstractKey:null,hash:"175cf743b393a3c7f1752374b93f077f"},cl=dl;var ul=n(2192);const ml=(0,l.memo)((({queryRef:e})=>{const a=(0,m.Jc)(cl,e);return(0,w.jsx)(We.Box,{maxHeight:40,children:(0,w.jsx)(ul.D,{queryRef:a})})}));ml.displayName="HeaderBarAppSwitcher";const pl=(0,l.lazy)((()=>Promise.all([n.e(0),n.e(14),n.e(33),n.e(821),n.e(3078)]).then(n.bind(n,2299))));function gl(e){return(0,w.jsx)(m.zq,{instrumentationId:"LazyHeaderBarNotificationButton",fallback:(0,w.jsx)(Rn.IconButton,{name:"bell",disabled:!0}),"data-element":"InstrumentedSuspense","data-component":"LazyHeaderBarNotificationButton",children:(0,w.jsx)(pl,{...e,"data-element":"LazyHeaderBarNotificationButtonContent"})})}const yl=(0,i.vU)({sendReceive:{id:"HeaderBar.sendReceive",defaultMessage:"Send & Receive"},buySell:{id:"HeaderBar.buySell",defaultMessage:"Buy & Sell"},buySellLabel:{id:"HeaderBar.buySellLabel",defaultMessage:"Buy & Sell modal"},deposit:{id:"HeaderBar.deposit",defaultMessage:"Deposit"},trade:{id:"HeaderBar.trade",defaultMessage:"Trade"},createAdd:{id:"HeaderBar.createAdd",defaultMessage:"Create an ad"},transfer:{id:"HeaderBar.transfer",defaultMessage:"Transfer"}}),kl={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProfileDropdownFragment",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"UserProperties",kind:"LinkedField",name:"userProperties",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"avatarUrl",storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null,hash:"40330aa4c4d545f13b1f7a4a2de3a8c7"},hl=kl;var fl=n(1325);function bl({queryRef:e,onMenuToggle:a}){const n=(0,m.Jc)(hl,e),t=n.viewer.userProperties?.avatarUrl,{profileDropdownExpanded:i,toggleProfileDropdown:s}=(0,Ye.Z)(),r=(0,l.useCallback)((()=>{s(),a?.()}),[a,s]);(0,na.bH)("profile_modal",{action:na.Us.view,componentType:na.re.modal,platform:"web",componentName:"profile"});const o=(0,l.useCallback)((e=>{e.key}),[i,r]),d={compact:!0,alt:"profile menu",accessibilityLabel:"profile menu",testID:"profile-dropdown",src:t||"",selected:i,onClick:r,onKeyDown:o};return(0,w.jsx)(fl.AvatarButton,{...d,"data-element":"AvatarButton","data-component":"ProfileDropdownContent"})}function xl({queryRef:e,onMenuToggle:a}){return(0,w.jsx)(m.zq,{instrumentationId:"ProfileDropdown",fallback:null,"data-element":"InstrumentedSuspense","data-component":"ProfileDropdown",children:(0,w.jsx)(bl,{queryRef:e,onMenuToggle:a,"data-element":"ProfileDropdownContent"})})}const Sl=(0,l.memo)((function({queryRef:e,isSearching:a,setSearchOn:n,searchPositionRef:t,isUsingIdNavBar:i=!1}){const r=(0,Xa.Z)(),o=(0,m.Jc)(Da,e),{viewer:d}=o,{formatMessage:c}=(0,s.Z)(),u=(0,La.Z)(),p=(0,Ra.k6)(),{hideSearch:y,hideBuySellButton:k,hideSendReceiveButton:h,showDarkModeToggle:f,showP2PCreateButton:b}=(0,K.Vn)(),x=(0,Ua.Z)("desktop_large"),S=(0,Ue.Z)(),{isTradeVariant:F,isTransferExperiment:v}=(0,$a.U)(),C=(0,l.useMemo)((()=>S),[S]),T=(0,l.useMemo)((()=>!y&&!S),[y,S]),j=(0,l.useMemo)((()=>f&&!S),[f,S]),M=(0,l.useCallback)((e=>{T&&t&&"/"===e.key&&n()}),[T,t,n]);(0,l.useEffect)((()=>(window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M))),[M]);const L=(0,Ga.Z)(o),{buy:I,sell:_,send:N,receive:B,addCash:P}=L,A=(0,l.useMemo)((()=>!k&&(I||_)&&u.canTrade&&(!T||x)&&!S),[k,I,_,u.canTrade,T,x,S]),Z=(0,l.useMemo)((()=>!h&&N&&B&&(!T||x)&&!S),[h,N,B,T,x,S]),D=(0,Ja.a)(),R=(0,l.useMemo)((()=>D&&!k&&P&&u.canTrade&&(!T||x)),[D,k,P,u.canTrade,T,x]),V=(0,Ne.Z)(),{pathname:U}=(0,Ra.TH)(),E=U.includes("/advanced-trade/perpetuals/"),H=(0,l.useMemo)((()=>S&&V&&!E),[V,S,E]),O=(0,l.useMemo)((()=>(0,Va.De)(d.fiatAccounts??[])),[d.fiatAccounts]),z=(0,l.useMemo)((()=>O.filter((e=>e.allowDeposits&&!["MULTISIG_VAULT","MULTISIG"].includes(e.type)))),[O]),q=(0,l.useMemo)((()=>z.find((e=>e.assetOrFiatCurrency?.code===r))??z[0]),[z,r]),W=(0,l.useMemo)((()=>A||Z||b?2:0),[A,b,Z]),Q=(0,ca.ku)(na.Us.click,"buy_sell_button"),Y=(0,ca.ku)(na.Us.click,"profile_button"),G=(0,ca.ku)(na.Us.hover,"buy_sell_button"),$=(0,ca.ku)(na.Us.hover,"send_receive_button"),J=(0,ca.ku)(na.Us.hover,"profile_button"),{startTradePerfMark:X}=(0,Qa.Z)(),ee=(0,l.useCallback)((()=>{Q(),X("load_modal","")}),[X,Q]),ae=(0,l.useCallback)((()=>{(0,na.$Y)("load_send_receive_redesign")}),[]);(0,l.useEffect)((()=>{(0,Ce.ZP)("layout_header_actionbar",{type:"end"})}),[]);const ne=(0,l.useCallback)((()=>{p.push("/p2p/ad")}),[p]),le=(0,l.useCallback)((()=>{$()}),[$]);return(0,w.jsxs)(Ha.HStack,{alignItems:"center",gap:1,spacingStart:3,children:[T&&(0,w.jsx)(We.Box,{spacingEnd:W,children:(0,w.jsx)(rl,{isSearching:a,setSearchOn:n,searchPositionRef:t})}),R&&q&&(0,w.jsx)(g.Z,{owner:"infra",context:"trade",children:(0,w.jsx)(za.Z,{queryRef:o,accountRef:q,hasMultipleDepositAccounts:z.length>1,allowRedirect:!1,entryPoint:"advancedGlobalAction",children:({onClick:e})=>(0,w.jsx)(Ea.Button,{variant:"primary",compact:!0,onPress:e,children:c(yl.deposit)})})}),A&&(0,w.jsx)(g.Z,{owner:"infra",context:"trade",children:(0,w.jsx)(Ya.Z,{onClick:ee,children:(0,w.jsx)(Ha.HStack,{width:F?132:"auto",children:(0,w.jsx)(Ea.Button,{"aria-label":c(F?yl.trade:yl.buySellLabel),block:F,compact:!0,"data-testid":"header-buy-sell-button",onMouseOver:()=>G(),variant:R&&q?"secondary":"primary",children:c(F?yl.trade:yl.buySell)})})})}),Z&&(v?(0,w.jsx)(qa.Z,{ctaFallbackLabel:c(yl.transfer),queryRef:o}):(0,w.jsx)(g.Z,{owner:"infra",context:"send_receive",children:(0,w.jsx)(Wa.Z,{isPrimary:!A,label:c(yl.sendReceive),onMouseOver:le,onClick:ae})})),b&&(0,w.jsx)(g.Z,{owner:"p2p-intl",context:"p2p-create-ad",children:(0,w.jsx)(Ea.Button,{compact:!0,onPress:ne,children:c(yl.createAdd)})}),(0,w.jsx)("div",{id:ol.b}),H&&(0,w.jsx)(en.d,{queryRef:o}),(0,w.jsx)("div",{id:ol.m}),j&&(0,w.jsx)(Oa.Z,{}),!C&&(0,w.jsx)(gl,{queryRef:o}),!i&&(0,w.jsx)(ml,{queryRef:o}),!i&&(0,w.jsx)("div",{onMouseOver:()=>{J()},children:(0,w.jsx)(g.Z,{owner:"infra",context:"profile_dropdon",children:(0,w.jsx)(xl,{queryRef:o,onMenuToggle:()=>{Y()}})})})]})})),Fl={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"SidebarFragment",selections:[{args:null,kind:"FragmentSpread",name:"SideBarV3Fragment"}],type:"Query",abstractKey:null,hash:"d305f0f8f2426a61ff9ff057dce12342"},vl=Fl;var wl=n(725),Cl=n(221),Tl=n(222),jl=n(524),Ml=n(1529),Ll=n(362);const Il=(0,l.lazy)((()=>Promise.all([n.e(0),n.e(1),n.e(14),n.e(2),n.e(8),n.e(9),n.e(10),n.e(3034),n.e(68),n.e(2921)]).then(n.bind(n,2300)))),_l=(0,l.lazy)((()=>Promise.all([n.e(0),n.e(14),n.e(2920)]).then(n.bind(n,3998))));function Kl({queryRef:e,...a}){const n=(0,m.Jc)(vl,e);return(0,Ue.Z)()?(0,w.jsx)(_l,{...a}):(0,w.jsx)(Il,{...a,queryRef:n,"data-element":"SideBarV3","data-component":"SidebarContent"})}function Nl(e){const{formatMessage:a}=(0,s.Z)(),[n]=(0,jl.Z)(),t=(0,Cl.Z)(),i=(0,Tl.Z)("seen_advanced_switch_spotlight_simple_mode_web"),r=(0,Tl.Z)("seen_advanced_switch_spotlight_advanced_mode_web"),{resetUrlForFuturesUpsell:o}=(0,wl.V)(),d=(0,l.useMemo)((()=>({ADVANCED_SWITCH_INTRO_SIMPLE_MODE:{steps:[{title:a(n?Ml.s.advancedTradeSwitchSimpleCoachmarkTitle:Ml.s.advancedTradeSwitchSimpleIntroCoachmarkTitle),description:a(n?Ml.s.advancedTradeSwitchCoachmarkDescription:Ml.s.advancedTradeSwitchSimpleIntroCoachmarkDescription),hidePrimaryActionButton:!1}],isEnabled:!i,priority:1,onDismiss:e=>{(0,na.Kz)("advanced-mode-switch-spotlight",{componentType:na.re.banner,action:na.Us.dismiss,dismissType:e,from:"simple"}),t("seen_advanced_switch_spotlight_simple_mode_web","true"),o()}},ADVANCED_SWITCH_INTRO_ADVANCED_MODE:{steps:[{title:a(Ml.s.advancedTradeSwitchAdvancedCoachmarkTitle),description:a(Ml.s.advancedTradeSwitchCoachmarkDescription),hidePrimaryActionButton:!1}],isEnabled:!r,priority:1,onDismiss:e=>{(0,na.Kz)("advanced-mode-switch-spotlight",{componentType:na.re.banner,action:na.Us.dismiss,dismissType:e,from:"advanced"}),t("seen_advanced_switch_spotlight_advanced_mode_web","true"),o()}}})),[a,o,n,r,i,t]),{addConfig:c}=(0,Ll.U)();return(0,l.useEffect)((()=>{c(d)}),[d]),(0,w.jsx)(m.zq,{instrumentationId:"Sidebar",fallback:null,"data-element":"InstrumentedSuspense","data-component":"Sidebar",children:(0,w.jsx)(Kl,{...e,"data-element":"SidebarContent"})})}const Bl=(0,l.memo)(Nl),Pl={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MoreMenuModalContentFragment",selections:[{args:null,kind:"FragmentSpread",name:"MoreMenuDrawerFragment"},{args:null,kind:"FragmentSpread",name:"useSidebarMoreMenuFilterFragment"}],type:"Query",abstractKey:null,hash:"17248731a3843c562bfb76b1f3b21cf7"},Al=Pl,Zl={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MoreMenuDrawerFragment",selections:[{args:null,kind:"FragmentSpread",name:"useMoreMenuDrawerItemsFragment"}],type:"Query",abstractKey:null,hash:"e0b8bcdd764b10008627a7e1a9063d0a"},Dl=Zl;var Rl=n(365),Vl=n(934);const Ul={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useMoreMenuDrawerItemsFragment",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"Borrow",kind:"LinkedField",name:"borrow",plural:!1,selections:[{alias:null,args:null,concreteType:"LoanSummary",kind:"LinkedField",name:"summary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"eligibility",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{kind:"InlineDataFragmentSpread",name:"isEligibleForSubscriptionFragment",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"eligibleEntities",value:["COINBASE_ONE_GENERAL"]}],concreteType:"CoinbaseSubscriptionEligibileEntityStatus",kind:"LinkedField",name:"coinbaseSubscriptionEligibility",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"isEligible",storageKey:null}],storageKey:'coinbaseSubscriptionEligibility(eligibleEntities:["COINBASE_ONE_GENERAL"])'}],storageKey:null}],args:null,argumentDefinitions:[]},{args:null,kind:"FragmentSpread",name:"useIsDirectDepositEligibleFragment"}],type:"Query",abstractKey:null,hash:"838160c184e1beb6f1a5e82e9e0ead0d"},El=Ul;var Hl=n(33),Ol=n(29),zl=n(513),ql=n(1530),Wl=n(142),Ql=n(856),Yl=n(363),Gl=n(1591),$l=n(1490),Jl=n(1456),Xl=n(1368),et=n(899),at=n(900);function nt(){return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(We.Divider,{}),(0,w.jsxs)(We.VStack,{spacingTop:2,spacingHorizontal:4,children:[(0,w.jsx)(We.Fallback,{maxWidth:pt-50,width:pt-50,height:35}),(0,w.jsxs)(We.VStack,{spacingTop:2,gap:2,flexWrap:"wrap",justifyContent:"space-between",spacingBottom:2,children:[(0,w.jsx)(We.Fallback,{width:"100%",height:25,shape:"rectangle"}),(0,w.jsx)(We.Fallback,{width:"100%",height:25,shape:"rectangle"}),(0,w.jsx)(We.Fallback,{width:"100%",height:25,shape:"rectangle"})]})]})]})}function lt({dismiss:e,height:a}){const{formatMessage:n}=(0,s.Z)();return(0,w.jsxs)(We.VStack,{height:a,background:!0,width:pt,"data-element":"VStack","data-component":"MoreMenuDrawerFallback",children:[(0,w.jsxs)(We.HStack,{alignItems:"center",width:"100%",maxHeight:gt,spacingStart:3,spacingEnd:2,spacingVertical:2,"data-element":"HStack",children:[(0,w.jsx)(Ta.TextTitle1,{as:"h1","data-element":"TextTitle1",children:mt}),(0,w.jsx)(We.Spacer,{"data-element":"Spacer"}),(0,w.jsx)(Rn.IconButton,{name:"close",accessibilityLabel:n(at.Z.close),variant:"secondary",transparent:!0,onPress:e,"data-element":"IconButton"})]}),(0,w.jsx)(nt,{"data-element":"MoreMenuSectionFalback"}),(0,w.jsx)(nt,{"data-element":"MoreMenuSectionFalback"}),(0,w.jsx)(nt,{"data-element":"MoreMenuSectionFalback"}),(0,w.jsx)(nt,{"data-element":"MoreMenuSectionFalback"}),(0,w.jsx)(nt,{"data-element":"MoreMenuSectionFalback"})]})}const tt=(0,l.memo)(lt);var it=n(348),st=n(346);const rt=(0,i.vU)({new:{id:"MoreMenuItem.new",defaultMessage:"New"}});function ot({title:e,to:a,href:n,onClick:t,onMouseEnter:i,openInNewTab:r,dismiss:o,analyticsName:d,isNew:c}){const{formatMessage:u}=(0,s.Z)(),m=(0,Vl.Hs)({componentName:d}),p=(0,l.useCallback)((()=>{t?.(),m({action:na.Us.click}),n&&window.open(n,r?"_blank":void 0,r?"noopener,noreferrer":void 0),o()}),[o,n,t,r,m]),g=(0,l.useCallback)((()=>{m({action:na.Us.view})}),[m]);(0,l.useEffect)((()=>{m({action:na.Us.render})}),[]);const[y,{toggleOff:k,toggleOn:h}]=(0,Te.useToggler)(!1),f=(0,l.useMemo)((()=>y?"primary":"foreground"),[y]),b=(0,l.useCallback)((()=>{h(),i?.()}),[i,h]),x=(0,l.useCallback)((()=>{k()}),[k]);return(0,w.jsx)(ll.Z,{onVisibleOnce:g,"data-element":"VisibilityTrigger","data-component":"MoreMenuItem",children:(0,w.jsx)(il.Pressable,{"data-testid":`more-menu-section-item-${e}`,backgroundColor:"primaryWash",borderRadius:"roundedFull",transparentWhileInactive:!y,width:"100%",onMouseUp:x,onMouseDown:b,onPress:p,as:it.Z,to:a,"data-element":"Pressable",children:(0,w.jsxs)(We.HStack,{spacing:1,"data-element":"HStack",children:[(0,w.jsx)(Ta.TextHeadline,{spacing:2,display:"block",color:f,as:"span","data-element":"TextHeadline",children:e}),c&&(0,w.jsx)(We.VStack,{alignItems:"center",justifyContent:"center",children:(0,w.jsx)(st.Vp,{colorScheme:"blue",intent:"promotional",children:u(rt.new)})})]})},`sidebar-more-menu-item--${e}`)})}const dt=(0,l.memo)(ot);function ct({title:e,items:a,dismiss:n,hasTopDivider:l=!0}){return 0===a.length?null:(0,w.jsxs)(w.Fragment,{children:[l&&(0,w.jsx)(We.Divider,{}),(0,w.jsxs)(We.VStack,{spacingTop:3,spacingBottom:2,spacingHorizontal:2,width:"100%",children:[(0,w.jsx)(Ta.TextCaption,{color:"foregroundMuted",overflow:"wrap",spacingHorizontal:2,spacingBottom:2,as:"p",children:e}),(0,w.jsx)(We.VStack,{spacing:0,gap:.5,children:a.map((e=>(0,w.jsx)(dt,{...e,dismiss:n},`more-menu-section-item-${e.title}`)))})]})]})}const ut=(0,l.memo)(ct),mt="Coinbase",pt=275,gt=74;function yt({pushedMenuItems:e,backfillMainNavIcons:a,dismiss:n,height:t,queryRef:i}){const r=function({pushedMenuItems:e,backfillMainNavIcons:a,queryRef:n}){const t=(0,m.Jc)(El,n),{viewer:i}=t,{formatMessage:r}=(0,s.Z)(),o=(0,ql.Z)(),{showModal:d}=(0,ta.Z)(),{isInSingapore:c,isInUS:u}=(0,La.Z)(),p=(0,Ql.D)(t),g=(0,Xl.Z)(),y=(0,$l.Z)({eligibility:i?.borrow?.summary?.eligibility??"NOT_ELIGIBLE"}),{isDDAEligible:k}=(0,Jl.f)(t),h=(0,Ol.y)("kill_sidebar_tax_entry_point"),f=(0,l.useCallback)((()=>{d((0,w.jsx)(zl._,{initialActiveTab:"buy",openRecurrence:!0,recurringPeriod:"weekly",entryPoint:"more-menu-section-item-recurring-purchases"}))}),[d]),b=(0,Yl.Z)(),x=(0,et.X)(),S=(0,Gl.m)(),{tradeSetting:F}=(0,Wl.Z)(),{toggleProfileDropdown:v}=(0,Ye.Z)(),C=(0,l.useCallback)((e=>e.filter((e=>!a.includes(e.iconName)))),[a]);return(0,l.useMemo)((()=>[{title:r(at.Z.moreMenu),items:e,hasTopDivider:e.length>0},{title:r(at.Z.TradeCrypto),items:C((0,Hl.compact)([b&&"advanced"!==F?{title:r(at.Z.AdvancedTrading),iconName:"chartCandles",openInNewTab:!1,analyticsName:"advanced_trade",onClick:v}:null,x?{title:r(at.Z.PacksV2),iconName:"trading",to:"/packs",analyticsName:"packsv2",isNew:!0}:null,{title:r(at.Z.RecurringBuys),iconName:"dashboard",onClick:f,analyticsName:"recurring_buy"},p?{title:r(at.Z.CBOne),iconName:"participate",to:"/one?referrer=more_menu",openInNewTab:!1,analyticsName:"cb1",onClick:()=>{(0,na.KQ)("navigate_to_cb1_signup_from_menu")}}:null]))},{title:r(at.Z.Web3AndDapps),items:C((0,Hl.compact)([c?null:{title:r(at.Z.CBNFT),iconName:"crystalBall",href:"https://nft.coinbase.com/",openInNewTab:!0,analyticsName:"nft"},o?{title:r(at.Z.CoinbaseVerification),iconName:"defi",to:"/onchain-verify",analyticsName:"cb_attestations"}:null]))},{title:r(at.Z.EarnMore),items:C((0,Hl.compact)([g?{title:r(at.Z.InviteFriends),iconName:"peopleGroup",to:"/invite",analyticsName:"invite"}:null]))},{title:r(at.Z.DoMoreWithCrypto),items:C((0,Hl.compact)([k?{title:r(at.Z.DirectDeposit),iconName:"directDeposit",to:"/settings/direct-deposit",analyticsName:"direct_deposit"}:null,y?null:{title:r(at.Z.Borrow),iconName:"cash",to:"/borrow",analyticsName:"borrow"},u&&!h?{title:r(at.Z.taxes),iconName:"taxes",href:"https://accounts.coinbase.com/taxes",openInNewTab:!0,analyticsName:"taxes"}:null]))},{title:"For Developers",items:C((0,Hl.compact)([{title:r(at.Z.AdvancedApi),iconName:"trading",analyticsName:"api",...S?{to:"/cloud/products/advanced-trade-api"}:{href:"https://www.coinbase.com/cloud/products/advanced-trade-api"}}]))}]),[r,e,C,b,F,v,x,f,p,c,o,g,k,y,u,h,S])}({pushedMenuItems:e,backfillMainNavIcons:a,queryRef:(0,m.Jc)(Dl,i)}),{formatMessage:o}=(0,s.Z)(),d=(0,Vl.J7)(),c=(0,l.useCallback)((()=>{d({action:na.Us.view})}),[d]),u=(0,l.useCallback)((()=>{d({action:na.Us.click})}),[d]);(0,l.useEffect)((()=>{d({action:na.Us.render})}),[]);const{endMark:p}=(0,Rl.Z)();return p("sidebar_v3","load_sidebar_more_menu"),(0,w.jsx)(ll.Z,{onVisibleOnce:c,"data-element":"VisibilityTrigger","data-component":"MoreMenuDrawerContent",children:(0,w.jsxs)(We.VStack,{background:!0,onClick:u,width:pt,height:t,overflow:"scroll","data-element":"VStack",children:[(0,w.jsxs)(We.HStack,{alignItems:"center",width:"100%",minHeight:gt,spacingStart:3,spacingEnd:2,"data-element":"HStack",children:[(0,w.jsx)(Ta.TextTitle1,{as:"h1","data-element":"TextTitle1",children:mt}),(0,w.jsx)(We.Spacer,{"data-element":"Spacer"}),(0,w.jsx)(Rn.IconButton,{name:"close",accessibilityLabel:o(at.Z.close),variant:"secondary",transparent:!0,onPress:n,"data-element":"IconButton"})]}),r.map((e=>(0,w.jsx)(ut,{...e,dismiss:n},`more-menu-section-${e.title}`)))]})})}function kt({pushedMenuItems:e,dismiss:a,height:n,queryRef:l,...t}){const{startMark:i}=(0,Rl.Z)();return i("sidebar_v3","load_sidebar_more_menu"),(0,w.jsx)(qe.Z,{instrumentationId:"MoreMenuDrawerContent",fallback:(0,w.jsx)(tt,{dismiss:a,height:n}),"data-element":"SuspenseWithTransition","data-component":"MoreMenuDrawer",children:(0,w.jsx)(g.Z,{owner:"feed",fallback:()=>(0,w.jsx)(tt,{dismiss:a,height:n}),context:"sidebar","data-element":"ErrorBoundary",children:(0,w.jsx)(yt,{height:n,pushedMenuItems:e,dismiss:a,queryRef:l,...t,"data-element":"MoreMenuDrawerContent"})})})}const ht=(0,l.memo)(kt);var ft=n(1243);function bt({height:e,isVisible:a,dismiss:n,queryRef:l}){const t=(0,m.Jc)(Al,l),{moreMenuItems:i,backfillMainNavIcons:s}=(0,ft.Z)({height:e,queryRef:t}),r=(0,Ue.Z)(),o=(0,K.Or)({collapsed:r});return(0,w.jsxs)(We.Box,{as:"div","data-element":"Box","data-component":"MoreMenuModalContent",children:[a?(0,w.jsx)(Ge.Z,{}):null,(0,w.jsx)(Ft,{onClick:n,leftOffset:o,height:e,isVisible:a,"data-element":"Backdrop"}),(0,w.jsx)(vt,{isVisible:a,leftOffset:o,height:e,"data-element":"DrawerWrapper",children:(0,w.jsx)(ht,{dismiss:n,pushedMenuItems:i,backfillMainNavIcons:s,height:e,queryRef:t,"data-element":"MoreMenuDrawer"})})]})}function xt(e){return(0,w.jsx)(Me.Z,{owner:"feed",name:"MoreMenuModal",fallback:null,errorFallback:St,context:"sidebar","data-element":"Boundary","data-component":"MoreMenuModal",children:(0,w.jsx)(bt,{...e,"data-element":"MoreMenuModalContent"})})}function St(){return null}const Ft=r.ZP.div.withConfig({displayName:"MoreMenuModal__Backdrop",componentId:"iawiib-0"})(["position:fixed;height:","px;z-index:",";top:0;right:0;bottom:0;left:","px;background:",";transition:opacity ","ms;opacity:",";pointer-events:",";"],(e=>(0,we.Z)(e.height)),(e=>e.theme.zIndex.backdrop),(e=>(0,we.Z)(e.leftOffset)),(e=>e.theme.color.maskDark),tn.durations.slow1,(e=>e.isVisible?1:0),(e=>e.isVisible?"auto":"none")),vt=r.ZP.div.withConfig({displayName:"MoreMenuModal__DrawerWrapper",componentId:"iawiib-1"})(["position:fixed;height:","px;z-index:",";top:0;bottom:0;left:","px;transition:opacity ","ms;opacity:",";pointer-events:",";"],(e=>(0,we.Z)(e.height)),(e=>e.theme.zIndex.overlay),(e=>(0,we.Z)(e.leftOffset)),tn.durations.slow1,(e=>e.isVisible?1:0),(e=>e.isVisible?"auto":"none")),wt=(0,l.memo)(xt);var Ct=n(776),Tt=n(52),jt=n(931),Mt=n(185),Lt=n(502),It=n(1247),_t=n(936),Kt=n(798),Nt=n(2199);function Bt(){const e=(0,Nt.z)();return window.location.hostname.includes("localhost")?Kt.TN.Local:e}const Pt=(0,i.vU)({darkMode:{id:"TopNavigationBar.dark",defaultMessage:"Dark"},lightMode:{id:"TopNavigationBar.lightMode",defaultMessage:"Light"}}),At={config:{dangerousLegacyCDS:!0}};function Zt(e){const{topOffset:a}=e,{formatMessage:n}=(0,s.Z)(),t=Bt(),i=(0,aa.ZP)("COINBASE_ID_NAVIGATION_BAR_PROJECT_ID")??"",{colorMode:r,setThemeType:o}=(0,Ae.Z)(),d=(0,l.useCallback)((function(){o("light"===r?"dark":"light")}),[r,o]),{setLayoutState:c}=(0,K.Vn)(),{profileDropdownRef:u,onCloseProfileDropdown:m}=(0,Ye.Z)(),p=(0,Lt.E)(),g=(0,l.useCallback)((e=>{e&&c({headerMounted:!0})}),[c]),y=(0,l.useMemo)((()=>(0,w.jsx)(We.HStack,{id:Mt.uf})),[]),k=(0,l.useMemo)((()=>(0,w.jsx)(We.HStack,{id:Mt.wN,children:e.centerContent})),[e.centerContent]);return(0,w.jsxs)(Tt.VStack,{"data-element":"VStack","data-component":"TopNavigationBarDesktopContent",children:[(0,w.jsx)(Vt,{topOffset:a,"data-element":"TopPadding"}),(0,w.jsx)(jt.vx,{dangerouslyDisableOverflowHidden:e.dangerouslyDisableOverflowHidden,target:t,action:"web-retail-NavigationBar",projectId:i,onThemeToggle:d,activeThemeLabel:n("dark"===r?Pt.darkMode:Pt.lightMode),themeToggleValue:"dark"===r?"dark":"light",appSwitcherOptions:At,start:(0,w.jsx)(Dt,{ref:g}),end:e.rightContent,bottom:y,profileMenuRef:u,profileMenuFlexibleArea:p?(0,w.jsx)(It.Z,{}):(0,w.jsx)(_t.Z,{}),onCloseProfileMenu:m,"data-element":"IDNavigationBar",children:k})]})}const Dt=(0,l.forwardRef)(((e,a)=>(0,w.jsx)(ze.SV,{owner:"infra",context:"top_navigation_bar",children:(0,w.jsx)(Ut,{ref:a,"data-testid":"pageTitle",id:Mt.Ce})})));function Rt(e){return(0,w.jsx)(ze.SV,{owner:"infra",fallback:void 0,context:"top_navigation_bar","data-element":"ErrorBoundary","data-component":"TopNavigationBarDesktop",children:(0,w.jsx)(m.zq,{instrumentationId:"TopNavigationBar",fallback:null,"data-element":"InstrumentedSuspense",children:(0,w.jsx)(Zt,{...e,"data-element":"TopNavigationBarDesktopContent"})})})}const Vt=r.ZP.div.withConfig({displayName:"TopNavigationBarDesktop__TopPadding",componentId:"sc-5kdop5-0"})(["display:flex;flex-direction:column;padding-top:","px;"],(e=>(0,we.Z)(e.topOffset))),Ut=r.ZP.h1.withConfig({displayName:"TopNavigationBarDesktop__Title",componentId:"sc-5kdop5-1"})(["font-size:20px;font-weight:500;"]);var Et=n(930);const Ht=["/staking","/lend","/home"];var Ot=n(901),zt=n(361);function qt(){return(0,l.useEffect)((()=>{(0,ze.cB)(new Error("A view suspended without proper Suspense boundary. Please look at the url to locate the missing boundary and add it."),{owner:"infra",context:"app"})}),[]),(0,w.jsx)(zt.Z,{"data-element":"Spinner","data-component":"Fallback"})}const Wt=function({children:e}){const a=(0,l.useCallback)((()=>{(0,ze.cB)(new Error("A view crashed without proper Error boundary. Please look at the url to locate the missing boundary and add it."),{owner:"infra",context:"app"})}),[]);return(0,w.jsx)(Ot.Z,{owner:"infra",boundaryName:"LayoutBoundary",context:"LayoutBoundary",fallback:(0,w.jsx)(qt,{}),onCatch:a,onNetworkCatch:a,"data-element":"PageBoundary","data-component":"LayoutBoundary",children:e})},Qt=(0,r.ZP)(o.Z).withConfig({displayName:"styles__ContentContainer",componentId:"tt5wm1-0"})(["position:relative;"]),Yt=(0,r.ZP)(o.Z).withConfig({displayName:"styles__Content",componentId:"tt5wm1-1"})(["flex:",";width:",";",";",";margin:0px;padding:"," 0;"],(e=>e.stretch?"1":"0 1 auto"),(e=>e.fullWidth?"100%":`${e.theme.layout.width}px`),(e=>e.fullWidth&&"overflow: hidden;"),(e=>e.fullHeight&&"\n height: 100%;\n max-height: 100%\n "),(e=>e.theme.size.huge)),Gt=(0,l.memo)((function(e){return(0,w.jsx)(Ke.d,{context:"layoutDesktop",skipLogging:!0,children:(0,w.jsx)(ai,{auto:!0,column:!0,children:(0,w.jsx)($t,{...e})})})})),$t=(0,l.memo)((function({headerBar:e={},children:a,hideFooter:n,hideChecklistBannerOverride:t,maxWidthOverride:i,xScrollable:s,topOffset:r=0,banners:o=null,alignContent:d="center",showStickyFooter:c=!1,stretch:u=!1,whiteBackground:p,paddingBottomHeader:g}){(0,Ce.ZP)("layout_sidebar",{type:"start"}),(0,Ce.ZP)("layout_header_actionbar",{type:"start"});const{accountUuid:y,assetSlug:k,assetSymbol:h,assetUuid:f}=(0,Be.Z)(),{backdrop:b,disableBackdrop:x}=(0,Ze.Z)(),S=function(){const{pathname:e}=(0,Ra.TH)();return(0,l.useMemo)((()=>Ht.includes(e)),[e])}(),{colorMode:F}=(0,Ae.Z)(),{chainId:v}=(0,Le.y)(),C=(0,Pe.P)(),{showDropdown:T}=(0,Ie.x)(),j=(0,Ue.Z)(),M=(0,Ne.Z)(),L=j&&M,I=(0,Ve.Z)(),_=(0,m.pp)(Fe,{productKey:De.sP,chainId:v,skipDappWalletExperiment:C,accountUuid:y||"",assetSlug:k||"",assetUuid:f||"",assetSymbol:h||"",skipAccountUuid:!y,skipAssetSlug:!k,skipAssetSymbol:!h,skipAssetUuid:!f,skipNotificationDropdownHub:!T,skipFuturesTrading:!I||!L}),{height:N,width:B}=(0,ve.Z)(),P=(0,K.Or)({collapsed:j}),[A,{toggle:Z,toggleOff:D}]=(0,Te.useToggler)(!1),R=(0,l.useCallback)((()=>{Z()}),[Z]),V=(0,l.useCallback)((()=>{D()}),[D]),U=(0,l.useCallback)((()=>{V()}),[V]),[E,{toggleOn:H,toggleOff:O}]=(0,Te.useToggler)(!1),z=(0,l.useRef)(null),q=(0,Ct.v)(),W=(0,l.useMemo)((()=>(0,w.jsx)(Me.Z,{owner:"infra",name:"HeaderBarActions",fallback:null,context:"header_bar",children:(0,w.jsx)(Sl,{queryRef:_,isSearching:E,setSearchOn:H,searchPositionRef:z,isUsingIdNavBar:q})})),[q,E,_,H]);return(0,w.jsx)(Et.S,{children:(0,w.jsxs)(Qt,{column:!0,auto:!0,children:[o,(0,w.jsx)(Bl,{onMoreMenuClick:R,onMenuItemClick:U,topOffset:r,queryRef:_}),(0,w.jsxs)(ei,{sideBarWidth:P,auto:!0,column:!0,children:[q?(0,w.jsx)(Rt,{dangerouslyDisableOverflowHidden:!0,rightContent:W,topOffset:r}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Aa.Z,{queryRef:_,top:r,rightContent:W,paddingBottom:g,...e}),(0,w.jsx)(Fa,{queryRef:_,showDarkModeToggle:!0})]}),(0,w.jsx)(_e.Z,{}),!t&&(0,w.jsx)(ni,{column:!0,hasWhiteBackground:p||S,colorMode:F,"data-testid":"checklist-wrapper",children:(0,w.jsx)(m.zq,{instrumentationId:"ChecklistBanner",fallback:null,children:(0,w.jsx)(je.Ap,{queryRef:_,showNextStep:!0})})}),(0,w.jsx)(ni,{column:!0,auto:!0,align:d,hasWhiteBackground:p||S,colorMode:F,children:(0,w.jsx)(Xt,{id:"main",tabIndex:-1,column:!0,xScrollable:s,maxWidthOverride:i,stretch:u,role:"main",children:(0,w.jsx)(Wt,{children:a})})}),!n&&(c?(0,w.jsx)(Jt,{maxWidth:B-P,children:(0,w.jsx)(Pa,{})}):(0,w.jsx)(va.Z,{}))]}),(0,w.jsx)(wt,{height:N,dismiss:V,isVisible:A,queryRef:_}),E&&(0,w.jsx)(nl,{isSearching:E,setSearchOff:O,searchPositionRef:z}),(0,w.jsx)(Ee.Z,{enabled:b,onClick:x}),(0,w.jsx)(Re.Z,{})]})})})),Jt=r.ZP.div.withConfig({displayName:"LayoutDesktop__BottomStickyContent",componentId:"bh368c-0"})(["display:flex;flex-direction:column;position:fixed;z-index:",";bottom:0;width:100%;max-width:",";background-color:",";"],(e=>e.theme.zIndex.elevated),(({maxWidth:e})=>`${(0,we.Z)(e)}px`),(e=>e.theme.color.background)),Xt=(0,r.ZP)(Yt).withConfig({displayName:"LayoutDesktop__StyledContent",componentId:"bh368c-1"})(["flex-grow:1;height:100%;width:100%;padding:0;max-width:","px;",""],(({theme:e,maxWidthOverride:a})=>(0,we.Z)(a)||e.layout.width),(({xScrollable:e})=>e&&"\n overflow-x: auto;\n ")),ei=(0,r.ZP)(o.Z).withConfig({displayName:"LayoutDesktop__MainContentFlex",componentId:"bh368c-2"})(["margin-left:","px;",";"],(e=>(0,we.Z)(e.sideBarWidth)),u.Z.minHeight),ai=(0,r.ZP)(o.Z).withConfig({displayName:"LayoutDesktop__AppWrapper",componentId:"bh368c-3"})(["",";"],u.Z.minHeight),ni=(0,r.ZP)(o.Z).withConfig({displayName:"LayoutDesktop__Wrapper",componentId:"bh368c-4"})(["position:relative;transition:top ","ms;top:","px;background:",";"],Mt.aV,(({top:e=0})=>(0,we.Z)(e)),(({hasWhiteBackground:e,theme:a,colorMode:n})=>e||"dark"===n?a.color.background:Mt.yz)),li=Gt,ti=function(){var e={defaultValue:null,kind:"LocalArgument",name:"accountUuid"},a={defaultValue:null,kind:"LocalArgument",name:"assetSlug"},n={defaultValue:null,kind:"LocalArgument",name:"assetSymbol"},l={defaultValue:null,kind:"LocalArgument",name:"assetUuid"},t={defaultValue:null,kind:"LocalArgument",name:"productKey"},i={defaultValue:null,kind:"LocalArgument",name:"skipAccountUuid"},s={defaultValue:null,kind:"LocalArgument",name:"skipAssetSlug"},r={defaultValue:null,kind:"LocalArgument",name:"skipAssetSymbol"},o={defaultValue:null,kind:"LocalArgument",name:"skipAssetUuid"},d={defaultValue:null,kind:"LocalArgument",name:"skipNotificationDropdownHub"},c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},u=[{kind:"Literal",name:"first",value:10},{kind:"Literal",name:"notificationTypes",value:["PRICE_ALERT","NEWS","TRADING_INSIGHTS","ACCOUNT_ACTIVITY","PRODUCT_ANNOUNCEMENT","SECURITY_ALERT"]}],m={alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},k=[y,{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],h=[c],f=[{kind:"Literal",name:"action",value:"buys"}],b={alias:null,args:null,kind:"ScalarField",name:"restrictionName",storageKey:null},x=[b,c],S=[{kind:"Literal",name:"action",value:"sends"}],F={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"allowWithdrawals",storageKey:null},w={kind:"InlineFragment",selections:h,type:"Node",abstractKey:"__isNode"},C={alias:null,args:null,kind:"ScalarField",name:"allowDeposits",storageKey:null},T={alias:null,args:null,concreteType:"SupportedContextsV2",kind:"LinkedField",name:"supportedContextsV2",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isTradable",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isConvertible",storageKey:null}],storageKey:null},j=[T,{alias:null,args:null,concreteType:"Account",kind:"LinkedField",name:"accounts",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"primary",storageKey:null},F,C,v,c],storageKey:null},c];return{fragment:{argumentDefinitions:[e,a,n,l,t,i,s,r,o,d],kind:"Fragment",metadata:null,name:"LayoutMobileQuery",selections:[{args:null,kind:"FragmentSpread",name:"HeaderBarMobileFragment"},{args:null,kind:"FragmentSpread",name:"TopNavigationBarMobileFragment"},{args:null,kind:"FragmentSpread",name:"ChecklistBannerFragment"},{args:null,kind:"FragmentSpread",name:"BottomFixedContentFragment"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[t,e,a,n,l,i,s,r,o,d],kind:"Operation",name:"LayoutMobileQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"InAppNotificationBadgeCount",kind:"LinkedField",name:"unreadNotificationsCount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"unreadCount",storageKey:null}],storageKey:null},c,{condition:"skipNotificationDropdownHub",kind:"Condition",passingValue:!1,selections:[{alias:null,args:u,concreteType:"InAppNotificationsConnection",kind:"LinkedField",name:"inAppNotifications",plural:!1,selections:[{alias:null,args:null,concreteType:"InAppNotificationEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"InAppNotification",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"communicationId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notificationId",storageKey:null},m,{alias:null,args:null,kind:"ScalarField",name:"readState",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notificationCategory",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"templateName",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"payload",plural:!1,selections:[p,{kind:"InlineFragment",selections:[g,{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"header",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"rightLabel",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"rightSubLabel",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"imageUrl",storageKey:null},{alias:null,args:null,concreteType:"StringMapData",kind:"LinkedField",name:"dataBackground",plural:!1,selections:[{alias:null,args:null,concreteType:"StringStringPair",kind:"LinkedField",name:"attributes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},y],storageKey:null}],storageKey:null}],type:"InAppStaticData",abstractKey:null}],storageKey:null},c,p],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:"connectionId",args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:'inAppNotifications(first:10,notificationTypes:["PRICE_ALERT","NEWS","TRADING_INSIGHTS","ACCOUNT_ACTIVITY","PRODUCT_ANNOUNCEMENT","SECURITY_ALERT"])'},{alias:null,args:u,filters:["notificationTypes"],handle:"connection",key:"Query_viewer_inAppNotifications",kind:"LinkedHandle",name:"inAppNotifications"}]},{alias:null,args:null,concreteType:"UserProperties",kind:"LinkedField",name:"userProperties",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"userType",storageKey:null},c,{alias:null,args:null,concreteType:"RegionFeatures",kind:"LinkedField",name:"regionFeatures",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isInUs",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"supportsCryptoToCryptoTransfers",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"supportsFiatTransfers",storageKey:null}],storageKey:null},m,{alias:null,args:null,kind:"ScalarField",name:"firstBuyStatus",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasMadeAPurchase",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AppSwitcherApplications",kind:"LinkedField",name:"appSwitcherApplications",plural:!1,selections:[{alias:null,args:null,concreteType:"AppSwitcherSection",kind:"LinkedField",name:"sections",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},{alias:null,args:null,concreteType:"AppSwitcherApplication",kind:"LinkedField",name:"applications",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"applicationIdentifier",storageKey:null},{alias:null,args:null,concreteType:"AppSwitcherApplicationTile",kind:"LinkedField",name:"tile",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"destinationUri",storageKey:null},{alias:null,args:null,concreteType:"AppSwitcherTileTag",kind:"LinkedField",name:"tag",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"intent",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"colorScheme",storageKey:null}],storageKey:null}],storageKey:null},p],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Card",kind:"LinkedField",name:"card",plural:!1,selections:[{alias:null,args:null,concreteType:"CardProductEnrollment",kind:"LinkedField",name:"productEnrollment",plural:!1,selections:[{alias:null,args:null,concreteType:"CardProductEnrollmentStatus",kind:"LinkedField",name:"productEnrollmentStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ddaEnrollmentStatus",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"productKey",variableName:"productKey"}],concreteType:"CoinbaseSubscription",kind:"LinkedField",name:"coinbaseSubscription",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,concreteType:"CoinbaseSubscriptionPlan",kind:"LinkedField",name:"subscriptionPlan",plural:!1,selections:[{alias:null,args:null,concreteType:"CoinbaseSubscriptionPlanBenefit",kind:"LinkedField",name:"benefits",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"benefitType",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"benefitDetails",plural:!1,selections:[p,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"cryptoBackPercentage",storageKey:null},c],type:"AdvancedTradeBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"limit",plural:!1,selections:k,storageKey:null}],type:"NoTradingFeeCoinbaseSubscriptionBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"apy",storageKey:null},{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"stakingCap",plural:!1,selections:k,storageKey:null},c],type:"USDCBoostedRewardBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:h,type:"AtoProtectionBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:h,type:"BoostedCardRewardsBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:h,type:"BoostedStakingBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:h,type:"CointrackerBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:h,type:"CryptoBackCoinbaseSubscriptionBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:h,type:"CryptoTaxCalculatorBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:h,type:"MessariTrialBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:h,type:"PriorityPhoneSupportBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:h,type:"SweepstakesBenefitDetails",abstractKey:null},{kind:"InlineFragment",selections:h,type:"TaxCenterBenefitDetails",abstractKey:null}],storageKey:null},c],storageKey:null},c],storageKey:null},c],storageKey:null},{alias:"buys",args:f,concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:x,storageKey:'policyRestrictions(action:"buys")'},{alias:"sells",args:f,concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:x,storageKey:'policyRestrictions(action:"buys")'},{alias:"sends",args:S,concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:x,storageKey:'policyRestrictions(action:"sends")'},{alias:"receives",args:[{kind:"Literal",name:"action",value:"receives"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:x,storageKey:'policyRestrictions(action:"receives")'},{alias:null,args:null,concreteType:"Earn",kind:"LinkedField",name:"earn",plural:!1,selections:[{alias:null,args:null,concreteType:"EarnEligibility",kind:"LinkedField",name:"eligibility",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isInEligibleGeo",storageKey:null}],storageKey:null}],storageKey:null},{alias:"sendRestrictions",args:S,concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:[b,{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,concreteType:"Link",kind:"LinkedField",name:"link",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},g],storageKey:null},c],storageKey:'policyRestrictions(action:"sends")'},{alias:null,args:null,concreteType:"Account",kind:"LinkedField",name:"fiatAccounts",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"uuid",storageKey:null},F,v,{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"availableBalance",plural:!1,selections:[y],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"assetOrFiatCurrency",plural:!1,selections:[p,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"code",storageKey:null}],type:"TiersCurrency",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Asset",kind:"LinkedField",name:"asset",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"platformName",storageKey:null},c],storageKey:null}],type:"ViewerAsset",abstractKey:null},w],storageKey:null},c,C],storageKey:null},{condition:"skipAccountUuid",kind:"Condition",passingValue:!1,selections:[{alias:null,args:[{kind:"Variable",name:"uuid",variableName:"accountUuid"}],concreteType:"Account",kind:"LinkedField",name:"accountByUuidV2",plural:!1,selections:[F,C,v,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"assetOrFiatCurrency",plural:!1,selections:[p,{kind:"InlineFragment",selections:[T],type:"ViewerAsset",abstractKey:null},w],storageKey:null},c],storageKey:null}]},{condition:"skipAssetSlug",kind:"Condition",passingValue:!1,selections:[{alias:"assetFromSlug",args:[{kind:"Variable",name:"slug",variableName:"assetSlug"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetBySlug",plural:!1,selections:j,storageKey:null}]},{condition:"skipAssetUuid",kind:"Condition",passingValue:!1,selections:[{alias:"assetFromUuid",args:[{kind:"Variable",name:"uuid",variableName:"assetUuid"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetByUuid",plural:!1,selections:j,storageKey:null}]},{condition:"skipAssetSymbol",kind:"Condition",passingValue:!1,selections:[{alias:"assetFromSymbol",args:[{kind:"Variable",name:"symbol",variableName:"assetSymbol"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetBySymbol",plural:!1,selections:j,storageKey:null}]},{alias:"sellPolicyRestrictions",args:[{kind:"Literal",name:"action",value:"sells"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:x,storageKey:'policyRestrictions(action:"sells")'},{alias:"buyPolicyRestrictions",args:f,concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:x,storageKey:'policyRestrictions(action:"buys")'},{alias:"tradePolicyRestrictions",args:[{kind:"Literal",name:"action",value:"trades"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:x,storageKey:'policyRestrictions(action:"trades")'},{alias:"depositPolicyRestrictions",args:[{kind:"Literal",name:"action",value:"deposits"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:x,storageKey:'policyRestrictions(action:"deposits")'},{alias:"withdrawPolicyRestrictions",args:[{kind:"Literal",name:"action",value:"withdrawals"}],concreteType:"PolicyRestriction",kind:"LinkedField",name:"policyRestrictions",plural:!0,selections:x,storageKey:'policyRestrictions(action:"withdrawals")'}],storageKey:null}]},params:{id:"04dd32093e866df2e546bac400a53c1e268495043cb7265574d97bf2f9028b49",metadata:{},name:"LayoutMobileQuery",operationKind:"query",text:null}}}();ti.hash="eeffb7e4f12029da7c4f1da0cda14321";const ii=ti,si={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"BottomFixedContentFragment",selections:[{args:null,kind:"FragmentSpread",name:"MobileBottomTabNavigationFragment"},{args:null,kind:"FragmentSpread",name:"TradeDrawerV2Fragment"}],type:"Query",abstractKey:null,hash:"3a789c50b6fb22864826f87db3f7a8bb"},ri=si;var oi=n(2200),di=n(1517),ci=n(2376);function ui({closeNav:e,bottomOffset:a}){const{setDrawerOpen:n}=(0,di.E)(),t=(0,l.useCallback)((()=>{n(!0),e()}),[e,n]);return(0,w.jsx)("div",{"data-testid":"floating-trade-button","data-component":"FloatingTradeButton",children:(0,w.jsx)(mi,{"aria-label":"Trade",onClick:t,bottomOffset:a,"data-element":"StyledButton",children:(0,w.jsx)(ci.r,{"data-element":"Trade"})})})}const mi=(0,r.ZP)(wa.Z).withConfig({displayName:"FloatingTradeButton__StyledButton",componentId:"sc-14ryzqh-0"})(["height:56px;width:56px;border-radius:50%;box-shadow:",";z-index:",";position:fixed;bottom:","px;right:16px;align-self:flex-end;border:1px solid ",";"],(e=>e.theme.boxShadow.deep),(e=>e.theme.zIndex.high),(e=>32+(e.bottomOffset??0)),(e=>e.theme.color.white)),pi=(0,l.memo)(ui),gi={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MobileBottomTabNavigationFragment",selections:[{args:null,kind:"FragmentSpread",name:"EarnBottomTabFragment"}],type:"Query",abstractKey:null,hash:"1696c468711315560a4be9a3bb14ca7f"},yi=gi;var ki=n(1534);function hi({iconName:e,active:a=!1,title:n,to:t,onPress:i}){const s=(0,Ra.k6)(),r=(0,l.useCallback)((()=>{s.push(t),i?.(t)}),[s,i,t]);return(0,w.jsx)(il.PressableOpacity,{onPress:r,noScaleOnPress:!0,"data-element":"PressableOpacity","data-component":"BottomTab",children:(0,w.jsxs)(We.VStack,{spacing:2,alignItems:"center","data-element":"VStack",children:[(0,w.jsx)(tl.NavigationIcon,{name:e,size:"s",active:a,"data-element":"NavigationIcon"}),(0,w.jsx)(Ta.TextLegal,{color:a?"primary":"foreground",spacingTop:.5,as:"p","data-element":"TextLegal",children:n})]})})}const fi=(0,l.memo)(hi),bi={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"EarnBottomTabFragment",selections:[{args:null,kind:"FragmentSpread",name:"useHasYieldCenterNavItemFragment"}],type:"Query",abstractKey:null,hash:"b2c2ae665f429384dd7e9062dcc80d53"},xi=bi;var Si=n(1246);function Fi({queryRef:e,active:a,title:n,iconName:l,to:t,onTabPressed:i}){const s=(0,m.Jc)(xi,e);return(0,Si.Z)({queryRef:s})?(0,w.jsx)(fi,{active:a,iconName:l,title:n,to:t,onPress:i,"data-element":"BottomTab","data-component":"EarnBottomTabContent"}):null}function vi(e){return(0,w.jsx)(ze.SV,{owner:"reward",boundaryName:"EarnBottomTab",context:"mobile_bottom_tab_navigation","data-element":"ErrorBoundary","data-component":"EarnBottomTab",children:(0,w.jsx)(Fi,{...e,"data-element":"EarnBottomTabContent"})})}const wi=(0,i.vU)({home:{id:"useBottomTabItems.home",defaultMessage:"Home"},assets:{id:"useBottomTabItems.assets",defaultMessage:"Assets"},trade:{id:"useBottomTabItems.trade",defaultMessage:"Trade"},earn:{id:"useBottomTabItems.earn",defaultMessage:"Earn"}});function Ci({queryRef:e}){const{formatMessage:a}=(0,s.Z)(),n=(0,Yl.Z)(),t=(0,m.Jc)(yi,e),{tradeSetting:i}=(0,Wl.Z)(),r=n?i:"simple",[o,d]=(0,l.useState)("/home"),c=(0,l.useMemo)((()=>[{id:"home",name:a(wi.home),icon:"home",to:"/home"},{id:"assets",name:a(wi.assets),icon:"chartPie",to:"/assets"},{id:"trade",name:a(wi.trade),icon:"simple"===r?"trading":"chartCandles",to:"simple"===r?"/trade":"/advanced-trade"}]),[a,r]),u=(0,Ra.TH)();(0,l.useEffect)((()=>{const e=u.pathname;d(e)}),[u]);const p=(0,l.useCallback)((e=>{if("/trade"===e)(0,na.$Y)("navigate_to_simple_trade_page")}),[]);return(0,w.jsxs)(We.VStack,{width:"100%","data-element":"VStack","data-component":"BottomTabNavigationContent",children:[(0,w.jsx)(We.Divider,{width:"100%","data-element":"Divider"}),(0,w.jsxs)(We.HStack,{spacingHorizontal:3,background:!0,width:"100%",justifyContent:"space-between","data-element":"HStack",children:[c.map((e=>(0,w.jsx)(fi,{active:o===e.to,iconName:e.icon,title:e.name,to:e.to,onPress:p},`tab-${e.id}`))),(0,w.jsx)(vi,{queryRef:t,active:"/earn"===o,iconName:"interest",title:a(wi.earn),to:"/earn",onTabPressed:p,"data-element":"EarnBottomTab"})]})]})}const Ti=(0,l.memo)((function(e){return(0,w.jsx)(ki.Z,{fallback:null,children:(0,w.jsx)(Ci,{...e})})}));function ji({queryRef:e,closeNav:a,bottomNavigation:n,bottomButtonRef:l}){const t=(0,m.Jc)(ri,e),{hideFloatingTradeButton:i}=(0,K.Vn)(),{isDrawerOpen:s,setDrawerOpen:r}=(0,di.E)();return(0,w.jsxs)(w.Fragment,{children:[i?null:(0,w.jsx)(pi,{bottomOffset:l?.current?.clientHeight??0,closeNav:a}),(0,w.jsxs)(Mi,{ref:l,children:[(0,w.jsx)(Li,{id:Mt.aY,children:n}),(0,w.jsx)(Ti,{queryRef:t})]},"bottom-nav-container"),(0,w.jsx)(oi.Z,{queryRef:t,visible:s,onClose:()=>r(!1)})]})}const Mi=r.ZP.div.withConfig({displayName:"BottomFixedContent__BottomNav",componentId:"sc-1tmade6-0"})(["display:flex;flex-direction:column;position:fixed;z-index:",";bottom:0;width:100%;background-color:",";"],(e=>e.theme.zIndex.elevated),(e=>e.theme.color.background)),Li=r.ZP.div.withConfig({displayName:"BottomFixedContent__SendReceiveBottomNavAnchor",componentId:"sc-1tmade6-1"})(["display:flex;"]),Ii={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"HeaderBarMobileFragment",selections:[{args:null,kind:"FragmentSpread",name:"HeaderBarNotificationButtonFragment"},{args:null,kind:"FragmentSpread",name:"HeaderBarAppSwitcherFragment"},{args:null,kind:"FragmentSpread",name:"MobileMenuFragment"}],type:"Query",abstractKey:null,hash:"4a8bc9ccfb412284cc2d86cfaa475ed1"},_i=Ii;var Ki=n(213),Ni=n(755),Bi=n(67),Pi=n(2202);function Ai({className:e}){const a=(0,Ra.k6)(),{sidebarCompression:n}=(0,K.Vn)(),t=(0,ca.zS)(na.Us.click,"logo"),i=(0,ca.zS)(na.Us.hover,"logo"),s=(0,l.useCallback)((()=>i()),[i]),r=(0,l.useCallback)((()=>{t(),a.push("/home")}),[t,a]),o=(0,c.Z)();return"collapsed"===n||o?(0,w.jsx)(Ha.HStack,{alignItems:"center",justifyContent:"center",spacingVertical:o?0:2,children:(0,w.jsx)(Bi.Pressable,{onPress:r,as:"button",backgroundColor:"transparent",children:(0,w.jsx)(Ni.LogoMark,{size:32})})}):(0,w.jsx)(Di,{className:e,onClick:r,onMouseEnter:s})}const Zi=(0,r.iv)(["&:hover{cursor:pointer;}"]),Di=(0,r.ZP)(Pi.T).withConfig({displayName:"ConsumerLogo__StyledLogo",componentId:"nlq0go-0"})(["path{fill:",";}width:96px;height:22px;margin-right:80px;",";"],(e=>e.theme.color.iconFill),Zi),Ri={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MobileMenuFragment",selections:[{args:null,kind:"FragmentSpread",name:"useProfileMenuItemsFragment"},{args:null,kind:"FragmentSpread",name:"HandleNavigateToEarnFragment"}],type:"Query",abstractKey:null,hash:"e60f7c2896f5a52631dc7492e7a30057"},Vi=Ri,Ui=function(){var e=[{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"currency",storageKey:null}],a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},n={alias:null,args:null,concreteType:"YieldPromotion",kind:"LinkedField",name:"yieldPromotion",plural:!1,selections:[{alias:null,args:null,concreteType:"YieldPromotionAssetCta",kind:"LinkedField",name:"assetCta",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MobileMenuQuery",selections:[{args:null,kind:"FragmentSpread",name:"useNavItemsFragment"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MobileMenuQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"NuxProperties",kind:"LinkedField",name:"nuxProperties",plural:!1,selections:[{alias:null,args:null,concreteType:"ReferralCampaignInfo",kind:"LinkedField",name:"referrerTerms",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"promoCodeLink",storageKey:null},{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"bonusAmount",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"Amount",kind:"LinkedField",name:"thresholdAmount",plural:!1,selections:e,storageKey:null}],storageKey:null}],storageKey:null},a,{alias:null,args:null,concreteType:"InAppNotificationBadgeCount",kind:"LinkedField",name:"unreadNotificationsCount",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"unreadCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Earn",kind:"LinkedField",name:"earn",plural:!1,selections:[{alias:null,args:null,concreteType:"EarnEligibility",kind:"LinkedField",name:"eligibility",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isInEligibleGeo",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"UserProperties",kind:"LinkedField",name:"userProperties",plural:!1,selections:[{alias:null,args:null,concreteType:"Country",kind:"LinkedField",name:"country",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"code",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PersonalDetails",kind:"LinkedField",name:"personalDetails",plural:!1,selections:[{alias:null,args:null,concreteType:"MailingAddress",kind:"LinkedField",name:"address",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null}],storageKey:null}],storageKey:null},a],storageKey:null},{alias:"eth2ViewerAsset",args:[{kind:"Literal",name:"slug",value:"ethereum-2"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetBySlug",plural:!1,selections:[n,{alias:null,args:null,concreteType:"Account",kind:"LinkedField",name:"accounts",plural:!0,selections:[{alias:null,args:null,concreteType:"AccountHistoryEntryConnection",kind:"LinkedField",name:"accountHistoryEntries",plural:!1,selections:[{alias:null,args:null,concreteType:"AccountHistoryEntryEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},a],storageKey:null},a],storageKey:'assetBySlug(slug:"ethereum-2")'},{alias:"ethViewerAsset",args:[{kind:"Literal",name:"slug",value:"ethereum"}],concreteType:"ViewerAsset",kind:"LinkedField",name:"assetBySlug",plural:!1,selections:[n,a],storageKey:'assetBySlug(slug:"ethereum")'}],storageKey:null}]},params:{id:"0d0d426e80d9508d1689d3395574a552ad61aeb9826eee63705d67c0288fac6c",metadata:{},name:"MobileMenuQuery",operationKind:"query",text:null}}}();Ui.hash="194e04c6e60f2625d08dc7fe8547df0d";const Ei=Ui;var Hi=n(503),Oi=n(2203),zi=n(1244),qi=n(1372);const Wi=(0,i.vU)({appearance:{id:"Appearance.AppearanceProfileRowItem.appearance",defaultMessage:"Appearance"}});function Qi({onClick:e}){const{formatMessage:a}=(0,s.Z)(),n=(0,Ua.Z)("phone");return(0,w.jsx)(Yi,{tabIndex:0,onClick:e,isPhone:n,"data-element":"StyledListItem","data-component":"AppearanceProfileRowItem",children:(0,w.jsx)($i,{"data-element":"Wrapper",children:(0,w.jsx)(Gi,{"data-element":"StyledBody",children:a(Wi.appearance)})})})}const Yi=r.ZP.li.withConfig({displayName:"AppearanceProfileRowItem__StyledListItem",componentId:"m2x6yv-0"})(["display:flex;align-items:center;padding:0 ",";cursor:pointer;height:46px;path{fill:",";}&:hover{background:",";}"],(e=>e.isPhone?e.theme.size.medium:e.theme.size.huge),(e=>e.theme.color.text),(e=>e.theme.color.iconBackground)),Gi=(0,r.ZP)(qi.u).withConfig({displayName:"AppearanceProfileRowItem__StyledBody",componentId:"m2x6yv-1"})(["font-weight:",";color:",";"],(e=>e.theme.fontWeight.bold),(e=>e.theme.color.text)),$i=r.ZP.div.withConfig({displayName:"AppearanceProfileRowItem__Wrapper",componentId:"m2x6yv-2"})(["box-sizing:content-box;align-items:center;display:flex;flex:1 1 auto;height:100%;border-bottom:",";&:hover{border-bottom:none;}"],(e=>e.theme.border.border)),Ji=(0,l.memo)(Qi);var Xi=n(65);const es=(0,i.vU)({title:{id:"Appearance.AppearanceModal.title",defaultMessage:"Appearance"},light:{id:"Appearance.AppearanceModal.light",defaultMessage:"Light"},lightDescription:{id:"Appearance.AppearanceModal.lightDescription",defaultMessage:"Always use light mode"},dark:{id:"Appearance.AppearanceModal.dark",defaultMessage:"Dark"},darkDescription:{id:"Appearance.AppearanceModal.darkDescription",defaultMessage:"Always use dark mode"},deviceSettings:{id:"Appearance.AppearanceModal.deviceSettings",defaultMessage:"Device Settings"},deviceSettingsDescription:{id:"Appearance.AppearanceModal.deviceSettingsDescription",defaultMessage:"Use your device's default mode"}});const as=function(){const{formatMessage:e}=(0,s.Z)(),{colorMode:a,setThemeType:n,systemPreference:t}=(0,Ae.Z)();(0,na.bH)("appearance_settings",{componentType:na.re.page,appearence_device_preference:t,appearence_user_preference:a,action:na.Us.view});const i=(0,na.ld)("appearence_settings_button",{componentType:na.re.button,appearence_device_preference:t,action:na.Us.click}),r=e=>a===e,o=(0,l.useCallback)((e=>{n(e),i({appearence_user_preference:e})}),[n,i]);return(0,w.jsxs)(Xi.u_,{width:"small","data-element":"Modal","data-component":"AppearanceModal",children:[(0,w.jsx)(Xi.xB,{title:e(es.title),"data-element":"ModalHeader"}),(0,w.jsxs)(Tt.VStack,{"data-element":"VStack",children:[(0,w.jsx)(Tn.ListCell,{title:e(es.deviceSettings),description:e(es.deviceSettingsDescription),selected:r("system"),onPress:()=>o("system"),"data-element":"ListCell"}),(0,w.jsx)(Tn.ListCell,{title:e(es.light),description:e(es.lightDescription),selected:r("light"),onPress:()=>o("light"),"data-element":"ListCell"}),(0,w.jsx)(Tn.ListCell,{title:e(es.dark),description:e(es.darkDescription),selected:r("dark"),onPress:()=>o("dark"),"data-element":"ListCell"})]})]})};var ns=n(897),ls=n(1250);const ts=(0,i.vU)({legalPrivacy:{id:"MobileMenuContent.legalPrivacy",defaultMessage:"Legal & Privacy"},linkscareers:{id:"MobileMenuContent.links.careers",defaultMessage:"Careers"},linksDisclosures:{id:"MobileMenuContent.links.disclosures",defaultMessage:"Disclosures"},closeButton:{id:"MobileMenuContent.buttons.closeMenu",defaultMessage:"Close"}});function is(){const{formatMessage:e}=(0,s.Z)(),{countryCode:a}=(0,La.Z)(),n=()=>(0,w.jsxs)(Ta.Link,{variant:"label2",color:"foregroundMuted",href:"/home","data-element":"Link","data-component":"coinbaseLink",children:["© ",(new Date).getFullYear()," ","Coinbase"]}),l=()=>(0,w.jsx)(Ta.Link,{underline:!0,variant:"label2",color:"foregroundMuted",href:"/careers","data-element":"Link","data-component":"careersLink",children:e(ts.linkscareers)}),t=()=>(0,w.jsx)(Ta.Link,{underline:!0,variant:"label2",href:"/legal/user_agreement",color:"foregroundMuted","data-element":"Link","data-component":"legalPrivacyLink",children:e(ts.legalPrivacy)}),i=()=>(0,w.jsx)(Ta.Link,{color:"foregroundMuted","data-element":"Link","data-component":"dot",children:"•"});return"US"!==a?(0,w.jsxs)(We.HStack,{spacingStart:1,gap:1,testID:"legalPrivacyLink",alignItems:"center",children:[n(),i(),l(),i(),t()]}):(0,w.jsxs)(We.VStack,{spacingStart:1,spacingTop:2,gap:1,testID:"legalPrivacyLink","data-element":"VStack","data-component":"LegalPrivacyRow",children:[n(),(0,w.jsxs)(We.HStack,{gap:1,"data-element":"HStack",children:[l(),i(),t(),i(),(0,w.jsx)(Ta.Link,{underline:!0,variant:"label2",href:"/legal/licenses",color:"foregroundMuted","data-element":"Link","data-component":"disclosuresLink",children:e(ts.linksDisclosures)})]})]})}function ss({onClose:e}){const a=(0,m.pp)(Ei,{}),n=(0,zi.ZP)({queryRef:a});return(0,w.jsxs)(w.Fragment,{children:[n.map((a=>(0,w.jsx)(us,{...a,onClick:(0,Hi.Z)(a.onClick,e)},`${a.to??a.href}`))),(0,w.jsx)(cs,{})]})}function rs({onClose:e}){return(0,w.jsx)(ze.SV,{owner:"infra",fallback:()=>null,context:"mobile_menu","data-element":"ErrorBoundary","data-component":"NavItems",children:(0,w.jsx)(ss,{onClose:e,"data-element":"NavItemsContent"})})}function os({queryRef:e,isOpen:a,onClose:n}){const t=(0,m.Jc)(Vi,e),{showModal:i}=(0,ta.Z)(),r=ma(t),o=(0,Ct.v)(),{formatMessage:d}=(0,s.Z)(),c=(0,l.useMemo)((()=>{if(o)return null;const e=r.filter((e=>"mobile"!==e.omitForScreenType)).map((e=>(0,w.jsx)(ms,{...e,onClick:(0,Hi.Z)(e.onClick,n),isSignout:"/signout"===e.href},`${e.to??e.href}`))),a=e.findIndex((e=>"settings"===e.key));return e.splice(a+1,0,(0,w.jsx)(Ji,{onClick:()=>i((0,w.jsx)(as,{}))})),e}),[o,r,n,i]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(gs,{alignContent:o?"start":"end",children:(0,w.jsx)(Ki.IconButton,{name:"close",onPress:n,transparent:!0,accessibilityLabel:d(ts.closeButton)})}),(0,w.jsxs)(ps,{onClick:n,children:[(0,w.jsx)(rs,{onClose:n}),c,(0,w.jsx)(is,{})]}),a&&(0,w.jsx)(Ge.Z,{}),(0,w.jsx)(Oi.Z,{queryRef:t})]})}function ds(e){return(0,w.jsx)(ze.SV,{owner:"infra",fallback:()=>null,context:"mobile_menu","data-element":"ErrorBoundary","data-component":"MobileMenu",children:(0,w.jsx)(ys,{isOpen:e.isOpen,column:!0,"data-element":"Container",children:(0,w.jsx)(m.zq,{instrumentationId:"MobileMenu",fallback:(0,w.jsx)(ks,{children:(0,w.jsx)(d.Z,{})}),"data-element":"InstrumentedSuspense",children:(0,w.jsx)(os,{...e,"data-element":"MobileMenuContent"})})})})}const cs=r.ZP.li.withConfig({displayName:"MobileMenu__Divider",componentId:"sc-12jj4ly-0"})(["width:100%;list-style:none;margin:"," 0px;border-bottom:",";"],(e=>e.theme.size.huge),(e=>e.theme.border.border)),us=(0,r.ZP)(ls.Z).withConfig({displayName:"MobileMenu__TopNavigationRowItem",componentId:"sc-12jj4ly-1"})(["margin-top:14px;margin-bottom:14px;"]),ms=(0,r.ZP)(ls.Z).withConfig({displayName:"MobileMenu__BottomNavigationItem",componentId:"sc-12jj4ly-2"})(["margin:"," 0;",";"],(e=>e.theme.size.small),(e=>e.isSignout&&`color: ${e.theme.color.negative}`)),ps=r.ZP.ul.withConfig({displayName:"MobileMenu__NavItemsContainer",componentId:"sc-12jj4ly-3"})(["display:flex;flex-direction:column;padding:0 ",";margin:0;"],(e=>e.theme.size.huge)),gs=(0,r.ZP)(ns.G).withConfig({displayName:"MobileMenu__StyledHeaderMobile",componentId:"sc-12jj4ly-4"})(["border:none;justify-content:",";margin-top:14px;"],(e=>"end"===e.alignContent?"flex-end":"flex-start")),ys=(0,r.ZP)(o.Z).withConfig({displayName:"MobileMenu__Container",componentId:"sc-12jj4ly-5"})(["position:fixed;z-index:",";overflow-y:auto;top:0;bottom:0;left:0;right:0;background:",";display:",";"],(e=>e.theme.zIndex.top),(e=>e.theme.color.background),(e=>e.isOpen?"flex":"none")),ks=(0,r.ZP)(o.Z).withConfig({displayName:"MobileMenu__SpinnerContainer",componentId:"sc-12jj4ly-6"})(["width:100%;height:100%;justify-content:center;align-items:center;"]);function hs({queryRef:e,content:a,top:n=0}){const t=(0,m.Jc)(_i,e),[i,s]=(0,l.useState)(!1),r=(0,ca.zS)(na.Us.click,"more"),{setLayoutState:d,hideSearch:c}=(0,K.Vn)(),[u,{toggleOn:p,toggleOff:y}]=(0,Te.useToggler)(!1);return(0,l.useEffect)((function(){d({headerHeight:n+Mt.ys})}),[]),(0,w.jsx)(g.Z,{fallback:xs,"data-element":"ErrorBoundary","data-component":"HeaderBarMobile",children:(0,w.jsxs)(qe.Z,{instrumentationId:"HeaderBarMobile",fallback:(0,w.jsx)(xs,{top:n}),"data-element":"SuspenseWithTransition",children:[(0,w.jsxs)(xs,{top:n,"data-element":"ClosedHeaderMobile",children:[(0,w.jsx)(bs,{"data-element":"StyledConsumerLogo"}),(0,w.jsx)(fs,{id:Mt.wN,"data-element":"Content",children:a}),(0,w.jsxs)(o.Z,{"data-element":"Flex",children:[(0,w.jsxs)(We.HStack,{gap:1,"data-element":"HStack",children:[!c&&(0,w.jsx)(rl,{isSearching:u,setSearchOn:p}),(0,w.jsx)(gl,{queryRef:t,"data-element":"LazyHeaderBarNotificationButton"}),(0,w.jsx)(ml,{queryRef:t,"data-element":"HeaderBarAppSwitcher"})]}),(0,w.jsx)(Ki.IconButton,{name:"hamburger",onPress:()=>{s(!0),r()},transparent:!0,"data-element":"IconButton"})]})]}),(0,w.jsx)(ds,{isOpen:i,onClose:()=>s(!1),queryRef:t,"data-element":"MobileMenu"}),!c&&u&&(0,w.jsx)(Hn,{isSearching:u,setSearchOff:y})]})})}const fs=(0,r.ZP)(o.Z).withConfig({displayName:"HeaderBarMobile__Content",componentId:"sc-1bfmt6-0"})(["overflow-x:auto;"]),bs=(0,r.ZP)(Ai).withConfig({displayName:"HeaderBarMobile__StyledConsumerLogo",componentId:"sc-1bfmt6-1"})(["flex-shrink:0;margin-right:10px;"]),xs=(0,r.ZP)(ns.G).withConfig({displayName:"HeaderBarMobile__ClosedHeaderMobile",componentId:"sc-1bfmt6-2"})(["position:fixed;left:0;transition:top ","ms;top:","px;right:0;z-index:",";background:",";justify-content:space-between;&:hover{cursor:pointer;}"],Mt.aV,(({top:e=0})=>(0,we.Z)(e)),(e=>e.theme.zIndex.elevated),(e=>e.theme.color.background)),Ss={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"TopNavigationBarMobileFragment",selections:[{args:null,kind:"FragmentSpread",name:"HeaderBarNotificationButtonFragment"},{args:null,kind:"FragmentSpread",name:"MobileMenuFragment"}],type:"Query",abstractKey:null,hash:"cf2ead82c008bd9d7ac33b7ba5411890"},Fs=Ss,vs={config:{dangerousLegacyCDS:!0}};function ws({queryRef:e,content:a,topOffset:n}){const{formatMessage:t}=(0,s.Z)(),i=(0,m.Jc)(Fs,e),r=Bt(),o=(0,aa.ZP)("COINBASE_ID_NAVIGATION_BAR_PROJECT_ID")??"",{hideSearch:d}=(0,K.Vn)(),[c,{toggleOn:u,toggleOff:p}]=(0,Te.useToggler)(!1),[g,y]=(0,l.useState)(!1),k=(0,ca.zS)(na.Us.click,"more"),{colorMode:h,setThemeType:f}=(0,Ae.Z)(),b=(0,l.useCallback)((function(){f("light"===h?"dark":"light")}),[h,f]),x=(0,l.useMemo)((()=>(0,w.jsx)(We.HStack,{id:Mt.uf})),[]),S=(0,l.useMemo)((()=>(0,w.jsxs)(We.HStack,{gap:1,children:[(0,w.jsx)(We.HStack,{spacingVertical:.5,spacingStart:.5,children:(0,w.jsx)(Rn.IconButton,{name:"hamburger",onPress:()=>{y(!0),k()},transparent:!0})}),(0,w.jsx)(js,{})]})),[k]),F=(0,l.useMemo)((()=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(We.HStack,{id:Mt.wN,children:a}),(0,w.jsx)(ds,{isOpen:g,onClose:()=>y(!1),queryRef:i}),!d&&c&&(0,w.jsx)(Hn,{isSearching:c,setSearchOff:p})]})),[a,g,c,i,p,d]),v=(0,l.useMemo)((()=>(0,w.jsxs)(We.HStack,{gap:1,children:[!d&&(0,w.jsx)(rl,{isSearching:c,setSearchOn:u}),(0,w.jsx)(gl,{queryRef:i})]})),[c,i,u,d]);return(0,w.jsxs)(Tt.VStack,{"data-element":"VStack","data-component":"TopNavigationBarMobileContent",children:[(0,w.jsx)(Ts,{topOffset:n,"data-element":"TopPadding"}),(0,w.jsx)(jt.vx,{target:r,action:"web-retail-NavigationBar",projectId:o,onThemeToggle:b,activeThemeLabel:t("dark"===h?Pt.darkMode:Pt.lightMode),themeToggleValue:"dark"===h?"dark":"light",appSwitcherOptions:vs,start:S,end:v,bottom:x,profileMenuFlexibleArea:(0,w.jsx)(_t.Z,{}),"data-element":"IDNavigationBar",children:F})]})}function Cs(e,a){return(0,w.jsx)(ze.SV,{owner:"infra",fallback:()=>a,context:"top_navigation_bar","data-element":"ErrorBoundary","data-component":"TopNavigationBarMobile",children:(0,w.jsx)(m.zq,{instrumentationId:"TopNavigationBar",fallback:a,"data-element":"InstrumentedSuspense",children:(0,w.jsx)(ws,{...e,"data-element":"TopNavigationBarMobileContent"})})})}const Ts=r.ZP.div.withConfig({displayName:"TopNavigationBarMobile__TopPadding",componentId:"ecru5u-0"})(["display:flex;flex-direction:column;padding-top:","px;"],(e=>(0,we.Z)(e.topOffset))),js=(0,r.ZP)(Ai).withConfig({displayName:"TopNavigationBarMobile__StyledConsumerLogo",componentId:"ecru5u-1"})(["flex-shrink:0;margin-right:10px;"]),Ms=(0,r.ZP)(o.Z).withConfig({displayName:"styles__AppWrapper",componentId:"sc-15go0f0-0"})(["",";width:100%;background-color:",";"],u.Z.minHeight,(e=>e.theme.color.background)),Ls=(0,r.ZP)(o.Z).withConfig({displayName:"styles__Wrapper",componentId:"sc-15go0f0-1"})(["background-color:",";"],(e=>e.theme.color.background)),Is=(0,r.ZP)(o.Z).withConfig({displayName:"styles__ContentContainer",componentId:"sc-15go0f0-2"})(["position:relative;z-index:",";"],(e=>e.theme.zIndex.normal)),_s=(0,r.ZP)(o.Z).withConfig({displayName:"styles__Content",componentId:"sc-15go0f0-3"})(["width:100vw;margin:0px;"]);var Ks=n(1249);const Ns=(0,l.memo)((function(e){return(0,w.jsx)(Ms,{auto:!0,column:!0,children:(0,w.jsx)(Bs,{...e})})})),Bs=(0,l.memo)((function({children:e,className:a,headerBar:n,hideFooter:t,hideChecklistBannerOverride:i,bottomNavigation:s,topOffset:r=0,banners:o=null}){const{accountUuid:d,assetSlug:c,assetSymbol:u,assetUuid:p}=(0,Be.Z)(),[g,y]=(0,l.useState)(!1),k=(0,l.useMemo)((()=>({isDrawerOpen:g,setDrawerOpen:y})),[g]),{backdrop:h,disableBackdrop:f}=(0,Ze.Z)(),b=(0,l.useCallback)((()=>{f&&f()}),[f]),x=(0,l.useRef)(null),[S,F]=(0,l.useState)(x?.current?.clientHeight??0),{showDropdown:v}=(0,Ie.x)(),C=(0,Ct.v)(),T=(0,m.pp)(ii,{productKey:De.sP,accountUuid:d||"",assetSlug:c||"",assetSymbol:u||"",assetUuid:p||"",skipAccountUuid:!d,skipAssetSlug:!c,skipAssetSymbol:!u,skipAssetUuid:!p,skipNotificationDropdownHub:!v});return(0,l.useEffect)((()=>{F(x?.current?.clientHeight??0)}),[x?.current?.clientHeight]),(0,w.jsx)(Et.S,{children:(0,w.jsxs)(Ks.Z.Provider,{value:k,children:[o,C?(0,w.jsx)(Cs,{queryRef:T,topOffset:r,...n}):(0,w.jsx)(hs,{queryRef:T,top:r,...n}),(0,w.jsx)(_e.Z,{}),(0,w.jsxs)(Zs,{column:!0,auto:!0,bottomContentHeight:S,children:[!C&&(0,w.jsx)(As,{paddingTop:r+Mt.ys}),!i&&(0,w.jsx)(m.zq,{instrumentationId:"ChecklistBanner",fallback:null,children:(0,w.jsx)(je.Ap,{queryRef:T,showNextStep:!0})}),(0,w.jsx)(Ps,{column:!0,auto:!0,align:"center",className:a,bottomContentHeight:S,children:(0,w.jsx)(_s,{column:!0,auto:!0,id:"main",tabIndex:-1,children:(0,w.jsx)(Wt,{children:e})})}),!t&&(0,w.jsx)(va.Z,{}),(0,w.jsx)(Ee.Z,{enabled:h,onClick:b})]}),(0,w.jsx)(ji,{queryRef:T,closeNav:b,bottomNavigation:s,bottomButtonRef:x})]})})})),Ps=(0,r.ZP)(Ls).withConfig({displayName:"LayoutMobile__MinHeightWrapper",componentId:"ifjqri-0"})(["",""],(({bottomContentHeight:e})=>u.Z.generate((a=>`min-height: calc(${a} - ${Mt.ys+e}px);`)))),As=(0,r.ZP)(o.Z).withConfig({displayName:"LayoutMobile__PaddingTop",componentId:"ifjqri-1"})(["transition:height ","ms;height:","px;"],Mt.aV,(({paddingTop:e})=>(0,we.Z)(e))),Zs=(0,r.ZP)(Is).withConfig({displayName:"LayoutMobile__StyledContentContainer",componentId:"ifjqri-2"})(["height:100%;margin-bottom:","px;"],(e=>(0,we.Z)(e.bottomContentHeight))),Ds=Ns,Rs=(0,i.vU)({skipToMainContent:{id:"Layout.skipToMainContent",defaultMessage:"Skip to main content"}}),Vs=(0,l.lazy)((()=>Promise.all([n.e(99),n.e(2753)]).then(n.bind(n,3987))));function Us(e){return(0,w.jsx)(m.zq,{instrumentationId:"LayoutBanners",fallback:null,"data-element":"InstrumentedSuspense","data-component":"LayoutBanners",children:(0,w.jsx)(y.Z,{owner:"infra",boundaryName:"LayoutBanners",context:"layout","data-element":"NetworkErrorBoundary",children:(0,w.jsx)(Vs,{...e,"data-element":"LayoutBannersLazy"})})})}function Es({headerBar:e,activeNavSelection:a,hideFooter:n,hiddenNavWrapper:i,xScrollable:r,children:o=null,bottomNavigation:u}){const{formatMessage:m}=(0,s.Z)(),y=(0,c.Z)(),[h,f]=(0,l.useState)(0),{hideFooter:b,maxWidth:x,showStickyFooter:S,hideChecklistBanner:F,alignContent:v,stretch:C,whiteBackground:T,paddingBottomHeader:j}=(0,K.Vn)(),M=(0,l.useMemo)((()=>(0,w.jsx)(w.Fragment,{children:null===o?(0,w.jsx)(p.Z,{delay:750,children:(0,w.jsx)(Os,{auto:!0,justify:"center",children:(0,w.jsx)(d.Z,{})})}):(0,w.jsx)(g.Z,{owner:"infra",fallback:_,context:"layout",children:o})})),[o]),L=(0,l.useMemo)((()=>({activeNavSelection:a})),[a]);return i?M:(0,w.jsx)(k.Provider,{value:L,"data-element":"unknown","data-component":"Layout",children:(0,w.jsxs)(Hs,{auto:!0,column:!0,"data-element":"Container",children:[(0,w.jsx)(t.ql,{"data-element":"Helmet",children:(0,w.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0","data-element":"meta"})}),(0,w.jsx)(zs,{href:"javascript:void(0)",onClick:function(e){e.preventDefault();const a=document.querySelector("#main");a&&a.focus()},"data-element":"SkipToContentLink",children:m(Rs.skipToMainContent)}),y?(0,w.jsx)(Ds,{hideFooter:b??n,hideChecklistBannerOverride:F,headerBar:e,bottomNavigation:u,topOffset:h,banners:(0,w.jsx)(Us,{onTopOffsetChange:f,topOffset:h}),children:M}):(0,w.jsx)(li,{hideFooter:b??n,headerBar:e,topOffset:h,maxWidthOverride:x,hideChecklistBannerOverride:F,xScrollable:r,banners:(0,w.jsx)(Us,{onTopOffsetChange:f,topOffset:h}),alignContent:v,showStickyFooter:S,stretch:C,whiteBackground:T,paddingBottomHeader:j,children:M})]})})}const Hs=(0,r.ZP)(o.Z).withConfig({displayName:"Layout__Container",componentId:"sc-140tb7h-0"})(["",";background-color:",";height:100%;"],u.Z.minHeight,(e=>e.theme.color.background)),Os=(0,r.ZP)(o.Z).withConfig({displayName:"Layout__SpinnerContainer",componentId:"sc-140tb7h-1"})(["padding:300px 0;"]),zs=r.ZP.a.withConfig({displayName:"Layout__SkipToContentLink",componentId:"sc-140tb7h-2"})(["position:absolute;left:-1000px;&:focus{left:0px;height:60px;line-height:60px;text-align:center;font-weight:normal;font-size:large;width:100%;background:",";padding:2px;border-width:2px;border-style:dashed;z-index:",";}"],(e=>e.theme.color.backgroundActive),(e=>e.theme.zIndex.overlay)),qs=(0,l.memo)(Es);var Ws=n(1494),Qs=n(1518)},1518:(e,a,n)=>{n.d(a,{Z:()=>l});const l=(0,n(11).vU)({trade:{id:"PageTitles.trade",defaultMessage:"Trade"},assets:{id:"PageTitles.assets",defaultMessage:"Assets"},myAssets:{id:"PageTitles.myAssets",defaultMessage:"My assets"},portfolio:{id:"PageTitles.portfolio",defaultMessage:"Portfolio"},learningRewards:{id:"PageTitles.learningRewards",defaultMessage:"Learning rewards"},pay:{id:"PageTitles.pay",defaultMessage:"Pay"},invite:{id:"PageTitles.invite",defaultMessage:"Invite Friends"},coinbaseCard:{id:"PageTitles.coinbaseCard",defaultMessage:"Coinbase Card"},lend:{id:"PageTitles.lend",defaultMessage:"Lend"},sharePortfolio:{id:"PageTitles.sharePortfolio",defaultMessage:"{firstName}'s Portfolio"},privatePortfolio:{id:"PageTitles.privatePortfolio",defaultMessage:"Private Portfolio"},homeFeed:{id:"PageTitles.homeFeed",defaultMessage:"Home"},support:{id:"PageTitles.support",defaultMessage:"Support"},web3:{id:"PageTitles.web3",defaultMessage:"Web3"}})}}]);
//# sourceMappingURL=layout-938dc40203995ba9.js.map