PageSourceSearch

https://pb.carnegie.se/assets/overview-page-DsFN_Gdr.js

js carnegie.se collected 2026-10-02 11:38:42 UTC 2,055 bytes, 3 lines download raw bytes

1import{O as f,P as h,n as t,r as l}from"./emotion-react-jsx-runtime.browser.esm-BmijSlgY.js";import{n as g}from"./auth-context-CPNEZv_G.js";import{t as b}from"./useTranslation-ChgT83sV.js";import{n as v}from"./components-DJbvmRgq.js";import{t as w}from"./clsx.m-BSs3aXVe.js";import{Rt as I}from"./src-DdcixTil.js";import{n as P}from"./use-mobile-CDkLghjS.js";import{t as T}from"./useProfile-DOZWXELd.js";import{t as A}from"./icon-with-chip-label-B49HW3PE.js";import{t as x}from"./useOfferings-CDHksVoh.js";import{t as C}from"./page-container-344KNmUP.js";import{n as O}from"./useSelectedTab-CsIrG1wW.js";import{t as S}from"./page-tabs-DYQKE7Zi.js";import{t as k}from"./page-title-CiuflDrR.js";import{t as N}from"./questions-and-answers-for-orders-D3WqRS84.js";import{n as j}from"./accounts-combined-performance-card-DbqIfEqK.js";var y=h(f(),1),H=()=>{const{profile:c}=T(),{t:e}=b(),{user:o}=g(),m=P(),{outstandingOfferings:u}=x(),{enabled:p}=I("showInsightsTab"),a=u.length,r=O("overview",o?.hasLimitedView?"accounts":""),[i,n]=(0,y.useState)(),d=r==="orders",s=[];return o?.hasLimitedView||s.push({value:"",label:e("Dashboard"),path:"/overview"}),s.push({value:"accounts",label:e("Konton"),path:"/overview/accounts"}),p&&s.push({value:"insights",label:e("Insikter"),path:"/overview/insights"}),s.push({value:"reports",label:e("Rapporter"),path:"/overview/reports"}),s.push({value:"offerings",label:a>0?t(A,{icon:t("span",{className:"inline-flex items-center pr-6",children:e("Erbjudanden")}),badgeCount:a,badgeClassName:"top-1/2 right-0 -translate-y-1/2"}):e("Erbjudanden"),path:"/overview/offerings"}),l(C,{className:"rounded-3xl",children:[l(k,{className:w("hidden","md:block"),children:[o.isProspect?`${e("Välkommen")} ${c?.firstName||""}`:e("Översikt"),d&&t(N,{})]}),!o.isProspect&&t(S,{tabs:s,selectedTab:r,trailingWidget:r?null:t(j,{selectedAccountIds:i,onSelectedAccountIdsChange:n}),sticky:!m}),t(v,{context:{selectedAccountIds:i,onSelectedAccountIdsChange:n}})]})};export{H as OverviewPage};
2
3//# sourceMappingURL=overview-page-DsFN_Gdr.js.map

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.