1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,944270,196699,235965,367784,823482,656582,39210,e=>{"use strict";var t=e.i(843476),r=e.i(456420);let i=(0,r.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,i],196699);var a=e.i(716327);let o=(0,r.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,o],235965);let n=(0,r.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",0,n],367784);var l=e.i(901279),s=e.i(282625);let p=(0,r.default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);e.s(["GraduationCap",0,p],823482);var d=e.i(576248),c=e.i(446513);let x=(0,r.default)("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]),h=(0,r.default)("heart-handshake",[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]]);e.s(["HeartHandshake",0,h],656582);var m=e.i(373481),u=e.i(271645),f=e.i(38479),g=e.i(776552),y=e.i(227581),b=e.i(511458),j=e.i(866796),k=e.i(313995),v=e.i(698741),w=e.i(16819),S=e.i(210557),C=e.i(667239),T=e.i(769120),z=e.i(618566),I=e.i(383642),B=e.i(813712);e.s(["default",0,function({showFullUserInfo:e=!0,minimal:r=!1}){let[W,R]=(0,u.useState)(null),{user:D,signOut:M,displayName:L}=(0,I.useAuth)(),$=!!W,E=(0,z.useRouter)(),A=(0,S.useTheme)(),{setThemeMode:H,themeMode:P}=A,O=(0,u.useRef)(null),_=()=>{R(null)},U=e=>{H(e)},N=async()=>{try{_(),await M()}catch(e){console.error("Error during logout:",e)}};if((0,u.useEffect)(()=>{let e=e=>{"Escape"===e.key&&$&&_()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[$]),!D)return null;let F=D.user_metadata?.custom_avatar_url||D.user_metadata?.avatar_url||D.user_metadata?.picture,G=L?.charAt(0).toUpperCase()||"U";return(0,t.jsxs)(g.Box,{children:[(0,t.jsxs)(g.Box,{ref:O,onClick:e=>{R(e.currentTarget)},sx:{display:"flex",alignItems:"center",cursor:"pointer",py:e?1:.5,px:e?1.5:1,borderRadius:2,gap:1.5*!!e,width:"100%","&:hover":{bgcolor:(0,C.alpha)(A.palette.primary.main,.04)}},tabIndex:0,role:"button","aria-haspopup":"menu","aria-expanded":$,"aria-controls":$?"user-menu":void 0,children:[(0,t.jsx)(f.Avatar,{src:F,sx:{width:e?40:36,height:e?40:36,fontSize:"0.875rem",fontWeight:600,cursor:"pointer",border:e?void 0:`2px solid ${(0,C.alpha)(A.palette.primary.main,.2)}`},children:G}),e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(g.Box,{sx:{flex:1,minWidth:0},children:[(0,t.jsx)(j.Typography,{variant:"subtitle2",component:"div",sx:{fontWeight:600,color:"text.primary",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:L}),(0,t.jsx)(j.Typography,{variant:"caption",component:"div",sx:{color:"text.secondary",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:D.email})]}),(0,t.jsx)(m.default,{component:a.ChevronDown,sx:{fontSize:"1.2rem",color:"text.secondary"}})]})]}
1),(0,t.jsxs)(y.Menu,{id:"user-menu",anchorEl:W,open:$,onClose:_,slotProps:{paper:{sx:{mt:1,width:240,borderRadius:1,boxShadow:"dark"===A.palette.mode?"0 8px 32px rgba(0, 0, 0, 0.4)":"0 8px 32px rgba(0, 0, 0, 0.12)",border:`1px solid ${(0,C.alpha)(A.palette.divider,.1)}`,overflow:"hidden"}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableAutoFocusItem:!0,keepMounted:!0,children:[(0,t.jsx)(g.Box,{sx:{px:2,py:1.25,borderBottom:`1px solid ${(0,C.alpha)(A.palette.divider,.08)}`},children:(0,t.jsxs)(g.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[(0,t.jsx)(f.Avatar,{src:F,sx:{width:36,height:36,fontSize:"0.875rem",fontWeight:600},children:G}),(0,t.jsxs)(g.Box,{sx:{overflow:"hidden",flex:1,minWidth:0},children:[(0,t.jsx)(j.Typography,{variant:"subtitle1",sx:{fontWeight:600,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontSize:"0.9375rem",letterSpacing:"-0.01em",lineHeight:1.4},children:L}),(0,t.jsx)(j.Typography,{variant:"caption",sx:{color:"text.secondary",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",fontSize:"0.8125rem"},children:D.email})]})]})}),(0,t.jsxs)(g.Box,{sx:{py:.5},children:[!r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(b.MenuItem,{onClick:()=>{_(),E.push("/upgrade")},sx:{mx:.5,borderRadius:1,py:.75,px:1.5,color:"primary.main","&:hover":{backgroundColor:(0,C.alpha)(A.palette.primary.main,.08)}},children:[(0,t.jsx)(v.ListItemIcon,{sx:{minWidth:36},children:(0,t.jsx)(m.default,{component:x,sx:{fontSize:"1.125rem",color:"primary.main"}})}),(0,t.jsx)(w.ListItemText,{primary:"Upgrade Plan",primaryTypographyProps:{fontSize:"0.875rem",fontWeight:600}})]}),(0,t.jsxs)(b.MenuItem,{onClick:()=>{_(),E.push("/profile")},sx:{mx:.5,borderRadius:1,py:.75,px:1.5,"&:hover":{backgroundColor:(0,C.alpha)(A.palette.primary.main,.04)}},children:[(0,t.jsx)(v.ListItemIcon,{sx:{minWidth:36},children:(0,t.jsx)(m.default,{component:l.User,sx:{fontSize:"1.125rem",color:"text.secondary"}})}),(0,t.jsx)(w.ListItemText,{primary:"Profile & Billing",primaryTypographyProps:{fontSize:"0.875rem",fontWeight:500}})]}),(0,t.jsxs)(b.MenuItem,{onClick:()=>{_(),E.push("/referrals")},sx:{mx:.5,borderRadius:1,py:.75,px:1.5,"&:hover":{backgroundColor:(0,C.alpha)(A.palette.primary.main,.04)}},children:[(0,t.jsx)(v.ListItemIcon,{sx:{minWidth:36},children:(0,t.jsx)(m.default,{component:s.Gift,sx:{fontSize:"1.125rem",color:"text.secondary"}})}),(0,t.jsx)(w.ListItemText,{primary:"Referral Program",primaryTypographyProps:{fontSize:"0.875rem",fontWeight:500}})]}),(0,t.jsxs)(b.MenuItem,{onClick:()=>{_(),window.open(B.PARTNER_PROGRAM_URL,"_blank","noopener,noreferrer")},sx:{mx:.5,borderRadius:1,py:.75,px:1.5,"&:hover":{backgroundColor:(0,C.alpha)(A.palette.primary.main,.04)}},children:[(0,t.jsx)(v.ListItemIcon,{sx:{minWidth:36},children:(0,t.jsx)(m.default,{component:h,sx:{fontSize:"1.125rem",color:"text.secondary"}})}),(0,t.jsx)(w.ListItemText,{primary:"Partner Program",primaryTypographyProps:{fontSize:"0.875rem",fontWeight:500}})]}),(0,t.jsxs)(b.MenuItem,{onClick:()=>{_(),E.push("/support")},sx:{mx:.5,borderRadius:1,py:.75,px:1.5,"&:hover":{backgroundColor:(0,C.alpha)(A.palette.primary.main,.04)}},children:[(0,t.jsx)(v.ListItemIcon,{sx:{minWidth:36},children:(0,t.jsx)(m.default,{component:d.HelpCircle,sx:{fontSize:"1.125rem",color:"text.secondary"}})}),(0,t.jsx)(w.ListItemText,{primary:"Support",primaryTypographyProps:{fontSize:"0.875rem",fontWeight:500}})]}),(0,t.jsx)(k.Divider,{sx:{my:.5,mx:1}})]}),(0,t.jsx)(g.Box,{sx:{px:2,pt:0,pb:.5},children:(0,t.jsxs)(g.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,t.jsx)(j.Typography,{variant:"body2",color:"text.secondary",sx:{fontWeight:500},children:"Theme"}),(0,t.jsxs)(g.Box,{sx:{display:"flex",alignItems:"center",p:.25,borderRadius:1,border:`1px solid ${A.palette.divider}`},children:[(0,t.jsx)(T.IconButton,{size:"small",onClick:()=>U("light"),sx:{p:.5,borderRadius:.75,color:"light"===P?"primary.main":"text.secondary",backgroundColor:"light"===P?(0,C.alph
1a)(A.palette.primary.main,.1):"transparent",border:`1px solid ${"light"===P?(0,C.alpha)(A.palette.primary.main,.4):"transparent"}`,"&:hover":{backgroundColor:"light"===P?(0,C.alpha)(A.palette.primary.main,.15):A.palette.action.hover}},children:(0,t.jsx)(m.default,{component:o,sx:{fontSize:"1rem"}})}),(0,t.jsx)(T.IconButton,{size:"small",onClick:()=>U("dark"),sx:{p:.5,borderRadius:.75,color:"dark"===P?"primary.main":"text.secondary",backgroundColor:"dark"===P?(0,C.alpha)(A.palette.primary.main,.1):"transparent",border:`1px solid ${"dark"===P?(0,C.alpha)(A.palette.primary.main,.4):"transparent"}`,"&:hover":{backgroundColor:"dark"===P?(0,C.alpha)(A.palette.primary.main,.15):A.palette.action.hover}},children:(0,t.jsx)(m.default,{component:i,sx:{fontSize:"1rem"}})}),(0,t.jsx)(T.IconButton,{size:"small",onClick:()=>U("system"),sx:{p:.5,borderRadius:.75,color:"system"===P?"primary.main":"text.secondary",backgroundColor:"system"===P?(0,C.alpha)(A.palette.primary.main,.1):"transparent",border:`1px solid ${"system"===P?(0,C.alpha)(A.palette.primary.main,.4):"transparent"}`,"&:hover":{backgroundColor:"system"===P?(0,C.alpha)(A.palette.primary.main,.15):A.palette.action.hover}},children:(0,t.jsx)(m.default,{component:c.Monitor,sx:{fontSize:"1rem"}})})]})]})}),(0,t.jsx)(k.Divider,{sx:{my:.5,mx:1}}),!r&&(0,t.jsxs)(b.MenuItem,{onClick:()=>{_(),E.push("/onboarding")},sx:{mx:.5,borderRadius:1,py:.75,px:1.5,"&:hover":{backgroundColor:(0,C.alpha)(A.palette.primary.main,.04)}},children:[(0,t.jsx)(v.ListItemIcon,{sx:{minWidth:36},children:(0,t.jsx)(m.default,{component:p,sx:{fontSize:"1.125rem",color:"text.secondary"}})}),(0,t.jsx)(w.ListItemText,{primary:"Onboarding",primaryTypographyProps:{fontSize:"0.875rem",fontWeight:500}})]}),(0,t.jsxs)(b.MenuItem,{onClick:N,sx:{mx:.5,borderRadius:1,py:.75,px:1.5,"&:hover":{backgroundColor:(0,C.alpha)(A.palette.error.main,.04)}},children:[(0,t.jsx)(v.ListItemIcon,{sx:{minWidth:36},children:(0,t.jsx)(m.default,{component:n,sx:{fontSize:"1.125rem",color:"error.main"}})}),(0,t.jsx)(w.ListItemText,{primary:"Sign Out",primaryTypographyProps:{fontSize:"0.875rem",fontWeight:500,color:"error.main"}})]})]})]})]})}],944270);var W=e.i(450352);e.s(["Toolbar",()=>W.default],39210)},575432,e=>{"use strict";var t=e.i(383642),r=e.i(271645);e.s(["useAdmin",0,function(){let{user:e}=(0,t.useAuth)(),i=(0,r.useMemo)(()=>e?.app_metadata?.role==="admin",[e]),a=(0,r.useMemo)(()=>i&&null!==e,[i,e]);return{isAdmin:i,hasAdminAccess:a,user:e}}])},235499,48589,e=>{"use strict";var t=e.i(843476),r=e.i(328623),i=e.i(373481),a=e.i(358444),o=e.i(776552),n=e.i(42669),l=e.i(866796),s=e.i(210557),p=e.i(667239);e.s(["default",0,function({collapsed:e}){let d=(0,s.useTheme)();return d.brand?.gradient||(d.palette.primary.main,d.palette.secondary.main),(0,t.jsx)(o.Box,{sx:{px:e?1.5:1,mb:1},children:(0,t.jsx)(n.Tooltip,{title:e?"Get TradingView AI Extension":"",placement:"right",arrow:!0,disableHoverListener:!e,children:(0,t.jsxs)(o.Box,{component:"a",href:a.URLS.chromeExtension,target:"_blank",rel:"noopener noreferrer",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:1.25*!e,textDecoration:"none",borderRadius:1,background:"transparent",border:`2px solid ${(0,p.alpha)(d.palette.primary.main,.7)}`,width:e?40:"100%",minHeight:40,mx:e?"auto":0,px:1.25*!e,py:+!e,overflow:"hidden",cursor:"pointer",boxShadow:"none",transition:"width 0.2s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s ease, gap 0.2s ease, filter 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease","&:hover":{background:(0,p.alpha)(d.palette.primary.main,.04),borderColor:(0,p.alpha)(d.palette.primary.main,.3),transform:e?"none":"translateY(-1px)"}},children:[(0,t.jsx)(i.default,{component:r.Sparkles,sx:{fontSize:"1.4rem",color:d.palette.primary.main,flexShrink:0}}),(0,t.jsxs)(o.Box,{sx:{flex:1,minWidth:0,maxWidth:e?0:"100%",maxHeight:200*!e,overflow:"hidden",whiteSpace:"nowrap",opacity:+!e,pointerEvents:e?"none":"auto",transition:"opacity 0.15s ease, max-width 0.2s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1)"},children:[(0,t.jsxs)(o.Box,{sx:{display:"flex",alignItems:"center",gap:.75},children:[(0,t.jsx)(l.Typography,{translate:"no",sx:{fontSize:"0.95rem",fontWeight:600,color:"text.primary",lineHeight:1.3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:"TradingView AI"}),(0,t.jsx)(o.Box,{sx:{fontSize:"0.6rem",fontWeight:700,color:d.palette.primary.main,bgcolor:(0,p.alpha)(d.palette.primary.main,.1),borderRadius:.5,px:.6,py:.1,letterSpacing:"0.5px",lineHeight:1.2,flexShrink:0},children:"NEW"})]}),(0,t.jsx)(l.Typography,{sx:{fontSize:"0.8rem",color:"text.secondary",lineHeight:1.3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:"AI assistant on your charts"})]}),(0,t.jsx)(o.Box,{sx:{color:"text.disabled",display:"flex",alignItems:"center",flexShrink:0,maxWidth:14*!e,opacity:.7*!e,overflow:"hidden",pointerEvents:e?"none":"auto",transition:"opacity 0.15s ease, max-width 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease","*:hover > &":{color:d.palette.primary.main,opacity:+!e,transform:e?"none":"translate(1px, -1px)"}},children:(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M7 17L17 7"}),(0,t.jsx)("path",{d:"M7 7h10v10"})]})})]})})})}],235499);var d=e.i(912598),c=e.i(271645),x=e.i(959026),h=e.i(202990),m=e.i(415199);function u({request:e}){let r=(0,d.useQueryClient)(),{licenses:i,refresh:a}=(0,h.useLicenses)(),o=()=>{a(),r.invalidateQueries({queryKey:m.ONBOARDING_CHECKLIST_QUERY_KEY})},{openConnect:n,dialogs:l}=(0,x.useConnectAccountChooser)({licenses:i,onMt5Connected:o,onPlatformConnected:o});return(0,c.useEffect)(()=>{n()},[e]),(0,t.jsx)(t.Fragment,{children:l})}var f=e.i(375775),g=e.i(689664),y=e.i(716327),b=e.i(456539),j=e.i(522016);function k({done:e,total:r}){let i=(0,s.useTheme)(),a=(0,c.useId)(),n=2*Math.PI*9.75,l=0===r?0:Math.min(e/r,1);return(0,t.jsxs)(o.Box,{component:"svg",role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":e,"aria-label":`${e} of ${r} setup steps done`,width:22,height:22,viewBox:"0 0 22 22",sx:{flexShrink:0,transform:"rotate(-90deg)"},children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:a,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:i.palette.primary.main}),(0,t.jsx)("stop",{offset:"100%",stopColor:i.palette.secondary.main})]})}),(0,t.jsx)("circle",{cx:11,cy:11,r:9.75,fill:"none",stroke:(0,p.alpha)(i.palette.text.disabled,.15),strokeWidth:2.5}),(0,t.jsx)("circle",{cx:11,cy:11,r:9.75,fill:"none",stroke:`url(#${a})`,strokeWidth:2.5,strokeLinecap:"round",strokeDasharray:n,strokeDashoffset:n*(1-l),style:{transition:"stroke-dashoffset 0.35s cubic-bezier(0.4, 0, 0.2, 1)"}})]})}function v({item:e,onMarkDone:r,onUnmarkDone:a}){let l=(0,s.useTheme)(),d="done"===e.status,c="manual"===e.status,x=!d&&!e.required,h=d?"Done":c?"Undo":e.required?"Finish this
1step to check it off":"Mark as done",m={width:18,height:18,borderRadius:"50%",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",p:0,minWidth:0,transition:"background-color 0.2s ease, border-color 0.2s ease"},u=d?{bgcolor:l.palette.primary.main,color:l.palette.primary.contrastText,border:`1.5px solid ${l.palette.primary.main}`}:c?{bgcolor:"transparent",color:l.palette.primary.main,border:`1.5px solid ${l.palette.primary.main}`}:{bgcolor:"transparent",color:"transparent",border:`1.5px dashed ${(0,p.alpha)(l.palette.primary.main,.5)}`},f=d||c?(0,t.jsx)(i.default,{component:g.Check,sx:{fontSize:"0.7rem"}}):null;return x?(0,t.jsx)(n.Tooltip,{title:h,placement:"top",arrow:!0,children:(0,t.jsx)(o.Box,{component:"button",type:"button","aria-label":`${h}: ${e.title}`,onClick:()=>c?a(e.id):r(e.id),sx:{...m,...u,cursor:"pointer","&:hover":{borderColor:l.palette.primary.main,bgcolor:(0,p.alpha)(l.palette.primary.main,.08)},"&:focus-visible":{outline:`2px solid ${l.palette.primary.main}`,outlineOffset:2}},children:f})}):(0,t.jsx)(n.Tooltip,{title:h,placement:"top",arrow:!0,children:(0,t.jsx)(o.Box,{sx:{...m,...u},children:f})})}function w({state:e,collapsed:r,onToggleCollapsed:a,onMarkDone:d,onUnmarkDone:x}){let h=(0,s.useTheme)(),[m,g]=(0,c.useState)(0);return(0,t.jsxs)(o.Box,{children:[(0,t.jsxs)(o.Box,{role:"button",tabIndex:0,"aria-expanded":!r,onClick:()=>a(!r),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a(!r))},sx:{display:"flex",alignItems:"center",gap:1,cursor:"pointer",borderRadius:1,"&:focus-visible":{outline:`2px solid ${h.palette.primary.main}`,outlineOffset:2}},children:[(0,t.jsx)(k,{done:e.doneCount,total:e.total}),(0,t.jsx)(l.Typography,{sx:{fontWeight:600,fontSize:"0.9rem",color:"text.primary",flex:1,minWidth:0},children:"Get started"}),(0,t.jsxs)(l.Typography,{sx:{fontSize:"0.75rem",color:"text.secondary",fontVariantNumeric:"tabular-nums",flexShrink:0},children:[e.doneCount," of ",e.total]}),(0,t.jsx)(i.default,{component:r?y.ChevronDown:b.ChevronUp,sx:{fontSize:"1.1rem",color:"text.secondary",flexShrink:0}})]}),!r&&(0,t.jsx)(o.Box,{sx:{mt:1.25,display:"flex",flexDirection:"column",gap:.25},children:e.items.map(e=>{let r="open"!==e.status,a=e.action?{component:"button",type:"button",onClick:()=>g(e=>e+1)}:e.external?{component:"a",href:e.href,target:"_blank",rel:"noopener noreferrer"}:{component:j.default,href:e.href??"#"};return(0,t.jsxs)(o.Box,{sx:{display:"flex",alignItems:"center",gap:1.25,borderRadius:1,px:.25,py:.5,"&:hover":{bgcolor:(0,p.alpha)(h.palette.primary.main,.06)}},children:[(0,t.jsx)(v,{item:e,onMarkDone:d,onUnmarkDone:x}),(0,t.jsx)(o.Box,{sx:{flex:1,minWidth:0},children:(0,t.jsx)(n.Tooltip,{title:e.description,placement:"right",arrow:!0,children:(0,t.jsxs)(l.Typography,{...a,sx:{display:"flex",alignItems:"center",gap:.5,fontSize:"0.82rem",fontWeight:500,lineHeight:1.35,textDecoration:"none",color:r?"text.disabled":"text.primary",...e.action?{border:"none",background:"none",p:0,width:"100%",textAlign:"left",cursor:"pointer"}:{},"&:hover":{color:r?"text.secondary":"primary.main"}},children:[e.shortTitle,e.external&&(0,t.jsx)(i.default,{component:f.ArrowUpRight,sx:{fontSize:"0.8rem",opacity:.6,flexShrink:0}})]})})})]},e.id)})}),m>0&&(0,t.jsx)(u,{request:m})]})}function S({done:e,total:r}){let i=(0,s.useTheme)(),a=0===r?0:e/r*100;return(0,t.jsx)(o.Box,{sx:{width:34,height:34,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",background:`conic-gradient(${i.palette.primary.main} ${a}%, ${(0,p.alpha)(i.palette.text.disabled,.2)} ${a}%)`},children:(0,t.jsx)(o.Box,{sx:{width:26,height:26,borderRadius:"50%",bgcolor:i.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,t.jsxs)(l.Typography,{sx:{fontSize:"0.65rem",fontWeight:700,color:"text.primary",fontVariantNumeric:"tabular-nums",lineHeight:1},children:[e,"/",r]})})})}e.s(["default",0,function({collapsed:e=!1}){let r=(0,s.useTheme)(),a=(0,m.useOnboardingChecklistVisible)(),{checklist:d,collapsed:x,retired:h,markDone:u,unmarkDone:f,setCollapsed:y,retire:b}=(0,m.useOnboardingChecklist)(),[j,k]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{d?.isRetired&&!h&&(k(!0),b())},[d?.isRetired,h,b]),(0,c.useEffect)(()=>
1{if(!j)return;let e=window.setTimeout(()=>k(!1),4e3);return()=>window.clearTimeout(e)},[j]),j&&!e)?(0,t.jsx)(o.Box,{sx:{mb:1},children:(0,t.jsxs)(o.Box,{sx:{borderRadius:1,border:`2px solid ${(0,p.alpha)(r.palette.primary.main,.7)}`,px:1.25,py:1.25,display:"flex",alignItems:"center",gap:1.25},children:[(0,t.jsx)(i.default,{component:g.Check,sx:{color:"primary.main",fontSize:"1.25rem"}}),(0,t.jsxs)(o.Box,{sx:{minWidth:0},children:[(0,t.jsx)(l.Typography,{sx:{fontWeight:600,fontSize:"0.9rem",color:"text.primary"},children:"You are all set"}),(0,t.jsx)(l.Typography,{sx:{fontSize:"0.75rem",color:"text.secondary"},children:"Setup is done."})]})]})}):a&&d?e?(0,t.jsx)(o.Box,{sx:{mb:1,display:"flex",justifyContent:"center"},children:(0,t.jsx)(n.Tooltip,{title:`Setup: ${d.doneCount} of ${d.total} done. Expand the sidebar to continue.`,placement:"right",arrow:!0,children:(0,t.jsx)(o.Box,{role:"img","aria-label":`Setup progress, ${d.doneCount} of ${d.total} steps done`,sx:{width:40,height:40,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",border:`2px solid ${(0,p.alpha)(r.palette.primary.main,.7)}`},children:(0,t.jsx)(S,{done:d.doneCount,total:d.total})})})}):(0,t.jsx)(o.Box,{sx:{mb:1},children:(0,t.jsx)(o.Box,{sx:{borderRadius:1,border:`2px solid ${(0,p.alpha)(r.palette.primary.main,.7)}`,px:1.25,py:1.25},children:(0,t.jsx)(w,{state:d,collapsed:x,onToggleCollapsed:y,onMarkDone:u,onUnmarkDone:f})})}):null}],48589)},680076,e=>{"use strict";var t=e.i(843476),r=e.i(755742);let i=(0,r.default)((0,t.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),a=(0,r.default)((0,t.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var o=e.i(667239),n=e.i(776552),l=e.i(297555),s=e.i(620387),p=e.i(313995),d=e.i(81771),c=e.i(860797),x=e.i(818433),h=e.i(698741),m=e.i(16819),u=e.i(42669),f=e.i(866796),g=e.i(210557),y=e.i(522016),b=e.i(618566),j=e.i(271645);function k({item:e,depth:r=0,isBottomItem:p=!1,isCollapsed:f,expanded:j,onToggle:v,onNavigate:w}){let S=(0,g.useTheme)(),C=(0,b.usePathname)(),T=S.palette.mode,z=e.icon,I=e.disabled,B=e.isActive?e.isActive(C):!!e.path&&C===e.path,W=!I&&(B||e.children&&e.children.some(e=>e.path&&(C===e.path||"/"!==e.path&&C.startsWith(e.path+"/")))),R=e.children&&e.children.length>0,D=!!e.path&&j[e.path],M=!!e.onClick,L=I?e.disabledTooltip||"Connect a trading account first":f?e.text:"";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.ListItem,{disablePadding:!0,sx:{mb:0},children:(0,t.jsx)(u.Tooltip,{title:L,placement:"right",disableHoverListener:!f&&!I,arrow:!0,children:(0,t.jsx)("span",{style:{display:"block",width:"100%"},children:(0,t.jsxs)(x.ListItemButton,{component:I||R||M?"div":e.external?"a":y.default,href:I||R||M?void 0:e.path,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,onClick:I?e=>e.preventDefault():R?v(e.path):M?()=>{e.onClick?.(),w()}:w,selected:B&&!I,sx:{borderRadius:.75,mx:1,my:0,py:.5,pl:f?2.4:1+1.5*r,pr:f?2.4:1,position:"relative",overflow:"hidden",justifyContent:"flex-start",minHeight:34,transition:"all 0.15s cubic-bezier(0.4, 0, 0.2, 1)",...I&&{opacity:.45,cursor:"not-allowed",pointerEvents:"auto","&:hover":{bgcolor:"transparent"}},"&.Mui-selected":{bgcolor:"dark"===T?(0,o.alpha)(S.palette.primary.main,.12):(0,o.alpha)(S.palette.primary.main,.08),"&:hover":{bgcolor:"dark"===T?(0,o.alpha)(S.palette.primary.main,.18):(0,o.alpha)(S.palette.primary.main,.12)}},"&:hover":{bgcolor:I?"transparent":"dark"===T?(0,o.alpha)(S.palette.common.white,.06):(0,o.alpha)(S.palette.common.black,.04)},color:I?"text.disabled":W?"primary.main":"text.primary"},children:[(0,t.jsx)(h.ListItemIcon,{sx:{color:I?"text.disabled":W?"primary.main":"text.secondary",minWidth:{xs:30,sm:f?"auto":30},margin:void 0,"& .MuiSvgIcon-root, & svg":{fontSize:"1.1rem",width:"1.1rem",height:"1.1rem"}},children:(0,t.jsx)(z,{})}),(0,t.jsxs)(n.Box,{sx:{display:"flex",alignItems:"center",gap:1,flex:1,minWidth:0,maxWidth:{xs:"100%",sm:f?0:"100%"},overflow:"hidden",whiteSpace:"nowrap",opacity:{xs:1,sm:+!f},pointerEvents:{xs:"auto",sm:f?"none":"auto"},transition:"opacity 0.15s ease, max-width 0.2s cubic-bezier(0.4, 0, 0.2, 1)"},children:[(0,t.jsx)(m.ListItemText,{primary:e.noTranslate?(0,t.jsx)("span",{translate:"no",children:e.text}):e.text,sx:{flex:"0 1 auto",minWidth:0,my:0,"& .MuiListItemText-primary":{color:W?"primary.main":"text.primary",fontWeight:W?500:400,fontSize:p?"0.825rem":"0.9rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}}),void 0!==e.badge&&(0,t.jsx)(u.Tooltip,{title:e.badgeTooltip??"",placement:"right",arrow:!0,children:(0,t.jsx)(n.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"error.main",color:"error.contrastText",borderRadius:"9px",fontSize:"0.7rem",height:18,minWidth:18,px:.5,lineHeight:"18px",fontWeight:500},children:e.badge})}),e.chip&&(0,t.jsx)(l.Chip,{label:e.chip,size:"small",color:"primary",variant:"outlined",sx:{height:20,fontSize:"0.65rem",fontWeight:600,backgroundColor:"dark"===T?(0,o.alpha)(S.palette.primary.main,.1):(0,o.alpha)(S.palette.primary.main,.05),borderColor:(0,o.alpha)(S.palette.primary.main,.3),"& .MuiChip-label":{px:1,py:0,lineHeight:"20px"}}}),R&&(D?(0,t.jsx)(i,{fontSize:"small"}):(0,t.jsx)(a,{fontSize:"small"}))]}),f&&void 0!==e.badge&&(0,t.jsx)(u.Tooltip,{title:e.badgeTooltip??"",placement:"right",arrow:!0,children:(0,t.jsx)(n.Box,{sx:{position:"absolute",top:4,right:4,display:{xs:"none",sm:"flex"},alignItems:"center",justifyContent:"center",bgcolor:"error.main",color:"error.contrastText",borderRadius:"8px",fontSize:"0.6rem",he
1ight:16,minWidth:16,px:.5,lineHeight:"16px",fontWeight:500},children:e.badge})})]})})})}),R&&!f&&(0,t.jsx)(s.Collapse,{in:D,timeout:"auto",unmountOnExit:!0,children:(0,t.jsx)(d.List,{component:"div",disablePadding:!0,children:e.children?.map((e,i)=>(0,t.jsx)(k,{item:e,depth:r+1,isBottomItem:p,isCollapsed:f,expanded:j,onToggle:v,onNavigate:w},e.path||i))})})]})}function v({text:e,isCollapsed:r,noTranslate:i}){return e?(0,t.jsx)(f.Typography,{variant:"caption",translate:i?"no":void 0,sx:{px:2,pt:.5,pb:.25,display:{xs:"block",sm:r?"none":"block"},color:"text.primary",fontWeight:700,fontSize:"0.7rem",textTransform:"uppercase",letterSpacing:"0.08em"},children:e}):null}e.s(["default",0,function({categories:e,isCollapsed:r=!1,onNavigate:i=()=>{}}){let a=(0,g.useTheme)(),n=(0,b.usePathname)(),[l,s]=(0,j.useState)(()=>{let t={};return e.forEach(e=>{e.items.forEach(e=>{if(e.children&&e.path){let r=n===e.path||e.children.some(e=>n===e.path||"/"!==e.path&&n.startsWith(e.path+"/"));t[e.path]=r}})}),t}),c=e=>t=>{t.preventDefault(),t.stopPropagation(),s(t=>({...t,[e]:!t[e]}))};return(0,t.jsx)(t.Fragment,{children:e.map((e,n)=>(0,t.jsxs)(j.default.Fragment,{children:[n>0&&r&&(0,t.jsx)(p.Divider,{sx:{my:1,mx:2.5,borderColor:(0,o.alpha)(a.palette.divider,.2)}}),(0,t.jsx)(d.List,{subheader:(0,t.jsx)(v,{text:e.title,isCollapsed:r,noTranslate:e.noTranslate}),children:e.items.map((e,a)=>(0,t.jsx)(k,{item:e,isCollapsed:r,expanded:l,onToggle:c,onNavigate:i},e.path||a))})]},e.title+n))})}],680076)},480065,e=>{"use strict";var t=e.i(843476),r=e.i(263676),i=e.i(282625),a=e.i(853138);let o=(0,e.i(456420).default)("gem",[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]]);var n=e.i(373481),l=e.i(499935),s=e.i(791339),p=e.i(176733),d=e.i(221472),c=e.i(903556),x=e.i(401369),h=e.i(776552),m=e.i(297555),u=e.i(769120),f=e.i(42669),g=e.i(866796),y=e.i(667239),b=e.i(210557),j=e.i(522016),k=e.i(271645),v=e.i(275163);let w="sidebar_card_dismissed",S="opacity 0.2s ease, max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1)";e.s(["default",0,function({collapsed:e=!1}){let C=(0,b.useTheme)(),{hasAccount:T}=(0,p.useHasTradingAccount)(),{handleBillingPortalClick:z}=(0,d.useBillingPortal)(),{hasRecurringSubscription:I,isPastDue:B,subscription:W,isTrialActivated:R,isRecurringExpired:D,isTrial:M}=(0,s.useSubscription)(),{activeDiscount:L}=(0,l.useDiscount)(),[$,E]=(0,k.useState)(!1);(0,k.useEffect)(()=>{E(function(){try{let e=localStorage.getItem(w);if(!e)return!1;let{dismissedAt:t}=JSON.parse(e);if(!t)return!1;return Date.now()-t<6048e5}catch{return!1}}())},[]);let A=(0,k.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),E(!0);try{localStorage.setItem(w,JSON.stringify({dismissedAt:Date.now()}))}catch{}},[]),H=(0,c.useCountdown)(L?.enabled?L.expiryDate:null);if(B)return(0,t.jsxs)(h.Box,{children:[(0,t.jsx)(f.Tooltip,{title:e?"Payment Failed â Update Payment":"",placement:"right",arrow:!0,disableHoverListener:!e,children:(0,t.jsx)(h.Box,{component:"a",href:"/api/portal",onClick:z,target:"_blank",rel:"noopener noreferrer",sx:{display:"flex",alignItems:"center",justifyContent:"center",textDecoration:"none",width:40,height:40,mx:"auto",maxHeight:40*!!e,opacity:+!!e,pointerEvents:e?"auto":"none",overflow:"hidden",borderRadius:1,background:C.palette.error.main,color:"#fff",boxShadow:e?`0 2px 8px ${(0,y.alpha)(C.palette.error.main,.4)}`:"none",transition:S,"&:hover":{filter:"brightness(1.1)"}},children:(0,t.jsx)(n.default,{component:a.AlertTriangle,sx:{fontSize:"1.4rem"}})})}),(0,t.jsx)(h.Box,{sx:{maxHeight:600*!e,opacity:+!e,pointerEvents:e?"none":"auto",overflow:"hidden",transition:S,mt:1},children:(0,t.jsxs)(h.Box,{sx:{borderRadius:1,background:C.palette.background.paper,border:"1px solid",borderColor:(0,y.alpha)(C.palette.error.main,.3),p:1.25,display:"flex",flexDirection:"column",gap:.75},children:[(0,t.jsxs)(h.Box,{sx:{display:"flex",flexDirection:"column",gap:.75},children:[(0,t.jsxs)(h.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,t.jsx)(n.default,{component:a.AlertTriangle,sx:{fontSize:"1.1rem",color:C.palette.error.main}}),(0,t.jsx)(g.Typography,{sx:{fontSize:"0.65rem",fontWeight:700,color:C.palette.error.main,textTransform:"uppercase",letterSpacing:"0.05em"},children:"Payment Failed"})]}),(0,t.jsx)(g.Typography,{sx:{fontSize:"1.0625rem",fontWeight:800,color:"text.primary",letterSpacing:"-0.02em",lineHeight:1},children:"Action Required"})]}),(0,t.jsx)(g.Typography,{sx:{fontSize:"0.75rem",color:"text.secondary",lineHeight:1.4},children:"Update your payment method to restore access."}),(0,t.jsx)(h.Box,{sx:{display:"flex",justifyContent:"flex-end",mt:.25},children:(0,t.jsx)(h.Box,{component:"a",href:"/api/portal",onClick:z,target:"_blank",rel:"noopener noreferrer",sx:{dis
1play:"inline-flex",alignItems:"center",justifyContent:"center",py:.5,px:1.5,borderRadius:1,border:`1px solid ${C.palette.error.main}`,color:C.palette.error.main,fontWeight:600,fontSize:"0.75rem",textDecoration:"none",transition:"all 0.2s","&:hover":{background:(0,y.alpha)(C.palette.error.main,.08)}},children:"Update Payment"})})]})})]});if(I&&!L.enabled||$)return null;let P=L.enabled,O=function(e){if(!e)return 0;let t=new Date(e),r=new Date;return Math.max(0,Math.ceil((t.getTime()-r.getTime())/864e5))}(W?.current_period_end),_=R&&0===O,U=P&&M&&R&&O>0?`${O} day${1!==O?"s":""} left`:null,N=P?{badge:L.offerReason||"Special Offer",headline:`${L.percentage}% Off ${L.planText||"Premium"}`,description:T?`Enjoy ${L.percentage}% off ${L.planText} and maximize your trading potential.`:"Claim your discount to unlock all powerful automation features.",buttonText:"Claim Offer",href:"/upgrade"}:D?{badge:"Subscription Ended",headline:"Action Required",description:"Your subscription has ended. Resubscribe to keep your automations running.",buttonText:"Resubscribe",href:"/upgrade"}:_?{badge:"Trial Expired",headline:"Action Required",description:"Your trial has ended. Subscribe now to keep your automations running.",buttonText:"Upgrade Now",href:"/upgrade"}:{badge:O>0?`${O} day${1!==O?"s":""} left`:"Free Trial",headline:"Elevate Your Trading",description:"Upgrade for unlimited automations, advanced AI, and cloud hosting.",buttonText:"View Plans",href:"/upgrade"},F=P?i.Gift:o,G=P?C.brand.gradient:`linear-gradient(135deg, ${C.palette.primary.main}, ${(0,y.alpha)(C.palette.primary.main,.78)})`;return(0,t.jsxs)(h.Box,{children:[(0,t.jsx)(f.Tooltip,{title:e?N.headline:"",placement:"right",arrow:!0,disableHoverListener:!e,children:(0,t.jsx)(h.Box,{component:j.default,href:N.href,sx:{display:"flex",alignItems:"center",justifyContent:"center",textDecoration:"none",width:40,height:40,mx:"auto",maxHeight:40*!!e,opacity:+!!e,pointerEvents:e?"auto":"none",overflow:"hidden",borderRadius:1,background:G,color:"#fff",boxShadow:e?`0 2px 8px ${(0,y.alpha)(C.palette.primary.main,.3)}`:"none",transition:S,"&:hover":{filter:"brightness(1.1)"}},children:(0,t.jsx)(n.default,{component:F,sx:{fontSize:"1.4rem"}})})}),(0,t.jsx)(h.Box,{sx:{position:"relative",maxHeight:600*!e,opacity:+!e,pointerEvents:e?"none":"auto",overflow:"hidden",transition:S,mt:1},children:(0,t.jsxs)(h.Box,{sx:{position:"relative",borderRadius:1,background:P?(0,y.alpha)(C.palette.primary.main,.04):C.palette.background.paper,border:"1px solid",borderColor:P?(0,y.alpha)(C.palette.primary.main,.2):(0,y.alpha)(C.palette.divider,.8),p:1.25,display:"flex",flexDirection:"column",gap:.75},children:[(0,t.jsxs)(h.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[(0,t.jsxs)(h.Box,{sx:{display:"flex",flexDirection:"column",gap:.75},children:[(0,t.jsxs)(h.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,t.jsx)(n.default,{component:P?i.Gift:o,sx:{fontSize:"1.1rem",color:P?C.palette.primary.main:"text.secondary"}}),(0,t.jsx)(g.Typography,{sx:{fontSize:"0.65rem",fontWeight:700,color:P?C.palette.primary.main:"text.secondary",textTransform:"uppercase",letterSpacing:"0.05em"},children:N.badge})]}),(0,t.jsx)(g.Typography,{sx:{fontSize:"1.0625rem",fontWeight:800,color:"text.primary",letterSpacing:"-0.02em",lineHeight:1},children:N.headline})]}),(0,t.jsx)(u.IconButton,{onClick:A,size:"small",sx:{mt:-.25,mr:-.25,p:.25,color:"text.disabled","&:hover":{color:"text.primary",background:(0,y.alpha)(C.palette.text.primary,.05)}},children:(0,t.jsx)(n.default,{component:r.X,sx:{fontSize:"0.875rem"}})})]}),(0,t.jsx)(g.Typography,{sx:{fontSize:"0.75rem",color:"text.secondary",lineHeight:1.4},children:N.description}),(0,t.jsxs)(h.Box,{sx:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",gap:1,mt:.25},children:[(0,t.jsxs)(h.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:.5,minWidth:0},children:[U&&(0,t.jsx)(m.Chip,{label:U,size:"small",sx:{height:20,maxWidth:"100%",fontSize:"0.65rem",fontWeight:700,bgcolor:(0,y.alpha)(C.palette.warning.main,.12),color:C.palette.warning.main,border:`1px solid ${(0,y.alpha)(C.palette.warning.main,.25)}`,"& .MuiChip-label":{px:.75}}}),H&&P&&(0,t.jsxs)(g.Typography,{sx:{fontSize:"0.7rem",fontWeight:600,color:C.palette.primary.main},children:["Ends in ",(0,x.formatCountdown)(H)]})]}),(0,t.jsx)(h.Box,{component:j.default,href:N.href,sx:{textDecoration:"none"},children:(0,t.jsx)(v.default,{size:"compact",gradient:void 0,sx:{py:.5,px:1.5,fontSize:"0.75rem",fontWeight:600,borderRadius:1,...P?{background:C.palette.primary.main,color:C.palette.primary.contrastText||"#fff",boxShadow:"none","&:hover":{background:C.palette.primary.dark,boxSh
1adow:"none"}}:{background:(0,y.alpha)(C.palette.text.primary,.05),color:"text.primary",boxShadow:"none","&:hover":{background:(0,y.alpha)(C.palette.text.primary,.1),boxShadow:"none"}}},children:N.buttonText})})]})]})})]})}],480065)},630253,e=>{"use strict";var t=e.i(869095);e.s(["Drawer",()=>t.default])},889928,e=>{"use strict";var t=e.i(843476),r=e.i(235499),i=e.i(48589),a=e.i(680076),o=e.i(480065),n=e.i(944270),l=e.i(415199),s=e.i(813712),p=e.i(856423),d=e.i(667239),c=e.i(776552),x=e.i(630253),h=e.i(39210),m=e.i(42669),u=e.i(866796),f=e.i(210557),g=e.i(522016),y=e.i(271645);let b=({collapsed:e})=>(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:e?"scaleX(-1)":"none",transition:"transform 0.2s ease"},children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,t.jsx)("line",{x1:"9",y1:"3",x2:"9",y2:"21"})]});e.s(["COLLAPSED_DRAWER_WIDTH",0,72,"DRAWER_WIDTH",0,268,"SidebarToggleIcon",0,b,"default",0,function({mobileOpen:e,handleDrawerToggle:j,categories:k,bottomCategories:v,footerComponent:w,logoLink:S=s.BRAND_LINK,onCollapsedChange:C,isCollapsed:T,onToggleCollapse:z}){let I=(0,f.useTheme)(),{palette:B}=I,W=B.mode,R=(0,l.useOnboardingChecklistVisible)(),[D,M]=(0,y.useState)(!1),L=void 0!==T?T:D,$=()=>{e&&j&&j()},E=e=>(0,t.jsxs)(c.Box,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,t.jsxs)(h.Toolbar,{sx:{display:"flex",alignItems:"center",justifyContent:e?"center":"space-between",pl:{xs:2,sm:2*!e},pr:{xs:2,sm:+!e},height:{xs:48,sm:56},minHeight:{sm:56}},children:[!e&&(0,t.jsx)(g.default,{href:S,passHref:!0,style:{textDecoration:"none",display:"flex",alignItems:"center",gap:1},children:(0,t.jsx)("img",{src:s.BRAND_ASSETS.brandSvgUrl,alt:s.BRAND_ASSETS.logoAlt,width:134,height:32,style:{height:"32px",width:"auto",objectFit:"contain"}})}),e&&(0,t.jsx)(g.default,{href:S,passHref:!0,style:{textDecoration:"none",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,t.jsx)("img",{src:s.BRAND_ASSETS.logoPath,alt:s.BRAND_ASSETS.logoAlt,width:32,height:32,style:{width:"32px",height:"32px",objectFit:"contain"}})}),z&&!e&&(0,t.jsx)(c.Box,{onClick:z,sx:{display:{xs:"none",sm:"flex"},alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:1.5,cursor:"pointer",color:"text.secondary",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{color:"primary.main",bgcolor:"dark"===W?(0,d.alpha)(I.palette.primary.main,.12):(0,d.alpha)(I.palette.primary.main,.08),transform:"scale(1.05)"},"&:active":{transform:"scale(0.95)"}},children:(0,t.jsx)(b,{})})]}),z&&e&&(0,t.jsx)(c.Box,{onClick:z,sx:{display:{xs:"none",sm:"flex"},alignItems:"center",justifyContent:"center",py:1.5,mx:"auto",width:40,height:40,borderRadius:2,cursor:"pointer",color:"text.secondary",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{color:"primary.main",bgcolor:"dark"===W?(0,d.alpha)(I.palette.primary.main,.12):(0,d.alpha)(I.palette.primary.main,.08),transform:"scale(1.05)"},"&:active":{transform:"scale(0.95)"}},children:(0,t.jsx)(b,{collapsed:!0})}),(0,t.jsx)(c.Box,{sx:{flex:1,overflowX:"hidden",overflowY:"auto",pb:2,px:.5*!e,scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"dark"===W?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.1)",borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:"dark"===W?"rgba(255,255,255,0.2)":"rgba(0,0,0,0.2)"}},children:(0,t.jsx)(a.default,{categories:k,isCollapsed:L,onNavigate:$})}),w&&!e&&(0,t.jsx)(c.Box,{children:w}),(0,t.jsxs)(c.Box,{sx:{mt:"auto",mb:1,px:e?1.5:1,pb:.5},children:[(0,t.jsx)(i.default,{collapsed:e}),(0,t.jsx)(o.default,{collapsed:e})]}),!R&&(0,t.jsx)(r.default,{collapsed:e}),(0,t.jsxs)(c.Box,{component:"a",href:"https://docs.tradesgnl.com",target:"_blank",rel:"noopener noreferrer",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:1.5*!e,py:1.5,px:e?1.5:2,textDecoration:"none",background:"dark"===W?`linear-gradient(135deg, ${(0,d.alpha)(I.palette.primary.main,.15)} 0%, ${(0,d.alpha)("#00D9C0",.12)} 100%)`:`linear-gradient(135deg, ${(0,d.alpha)(I.palette.primary.main,.08)} 0%, ${(0,d.alpha)("#00D9C0",.06)} 100%)`,borderTop:`1px solid ${(0,d.alpha)(I.palette.divider,.15)}`,transition:"gap 0.2s ease, padding 0.2s ease, background 0.2s ease",cursor:"pointer","&:hover":{background:"dark"===W?`linear-gradient(135deg, ${(0,d.alpha)(I.palette.primary.main,.22)} 0%, ${(0,d.alpha)("#00D9C0",.18)} 100%)`:`linear-gradient(135deg, ${(0,d.alpha)(I.palette.primary.main,.12)} 0%, ${(0,d.alpha)("#00D9C0",.1)} 100%)`}},children:[(0,t.jsx)(m.Tooltip,{title:e?"Documentation":"",placement:"right",disableHoverListener:!e,arrow:!0,children:(0,t.jsx)(c.Box,{sx:{display:"flex",alignItems:"center",color:"primary.main"},children:(0,t.jsx)(p.BookOpen,{size:22})})}),(0,t.jsxs)(c.Box,{sx:{flex:1,minWidth:0,maxWidth:e?0:"100%",maxHeight:200*!e,overflow:"hidden",
1whiteSpace:"nowrap",opacity:+!e,pointerEvents:e?"none":"auto",transition:"opacity 0.15s ease, max-width 0.2s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1)"},children:[(0,t.jsx)(u.Typography,{sx:{fontWeight:600,fontSize:"0.95rem",color:"text.primary",lineHeight:1.3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:"Documentation"}),(0,t.jsx)(u.Typography,{sx:{fontSize:"0.8rem",color:"text.secondary",lineHeight:1.3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:"Setup Guides & Tutorials"})]}),(0,t.jsx)(c.Box,{sx:{color:"text.secondary",display:"flex",alignItems:"center",flexShrink:0,maxWidth:14*!e,opacity:.6*!e,overflow:"hidden",pointerEvents:e?"none":"auto",transition:"opacity 0.15s ease, max-width 0.2s cubic-bezier(0.4, 0, 0.2, 1)",".MuiBox-root:hover > &":{opacity:+!e}},children:(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M7 17L17 7"}),(0,t.jsx)("path",{d:"M7 7h10v10"})]})})]}),(0,t.jsx)(c.Box,{sx:{display:{xs:"flex",sm:"none"},alignItems:"center",borderTop:`1px solid ${(0,d.alpha)(I.palette.divider,.08)}`},children:(0,t.jsx)(c.Box,{sx:{flex:1,minWidth:0},children:(0,t.jsx)(n.default,{})})})]}),A=L?72:268;return(0,t.jsxs)(c.Box,{component:"nav",sx:{width:{sm:A},flexShrink:{sm:0},transition:"width 0.2s cubic-bezier(0.4, 0, 0.2, 1)"},"aria-label":"mailbox folders",children:[(0,t.jsx)(x.Drawer,{variant:"temporary",anchor:"left",open:e,onClose:j,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:268,overflowY:"auto",backgroundColor:"dark"===W?"#181818":"#fcfcfc",scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"dark"===W?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.1)",borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:"dark"===W?"rgba(255,255,255,0.2)":"rgba(0,0,0,0.2)"}}},children:E(!1)}),(0,t.jsx)(x.Drawer,{variant:"permanent",sx:{display:{xs:"none",sm:"block"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:A,transition:"width 0.2s cubic-bezier(0.4, 0, 0.2, 1)",borderRight:"dark"===W?"1px solid rgba(255, 255, 255, 0.12)":"1px solid rgba(0, 0, 0, 0.12)",overflowX:"hidden",overflowY:"auto",backgroundColor:"dark"===W?"#181818":"#fcfcfc",scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"dark"===W?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.1)",borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:"dark"===W?"rgba(255,255,255,0.2)":"rgba(0,0,0,0.2)"}}},open:!0,children:E(L)})]})}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.