import{b as l,a4 as o,j as s,h as a,i as c,Y as d,Q as p,Z as v,eu as S}from"./app-BgLa5dit.js";import{S as g}from"./KUnagq9Z.chunk.js";import{U as x}from"./DULWIWQR.chunk.js";import{C as h}from"./CCcwLDvu.chunk.js";const f="_mainContentContainer_tf80n_1",N="_mainContentContainerCustomer_tf80n_4",j="_crmStudioNav_tf80n_15",m={mainContentContainer:f,mainContentContainerCustomer:N,crmStudioNav:j};var _=(n=>(n.Users="users",n.Customers="customers",n.Organisations="organisations",n))(_||{});const O={application:c.CRM_STUDIO,action:a.CrmStudio.EXIT},r={user:{view:"users",svg:x,label:"Users",action:a.CrmStudio.HOME},customer:{view:"customers",svg:g,label:"Customers",action:a.CrmStudio.CUSTOMERS},organisation:{view:"organisations",svg:S,label:"Organisations",action:a.CrmStudio.ORGANISATIONS}};function L(n){const{hasPermissions:e}=l(),u=n.view==="customers",t=[];return e(o.CrmStudioUser)&&t.push(r.user),e(o.CrmStudioCustomer)&&t.push(r.customer),e(o.CrmStudioOrganisation)&&t.push(r.organisation),s.jsxs(s.Fragment,{children:[s.jsx(h,{closeAppLink:O,children:s.jsx("div",{className:"w-75 d-flex flex-row gap-3",children:t.map((i,C)=>s.jsx(d,{className:`btn rounded-pill px-3 ${n.view===i.view?"bg-light-purple text-dark":"text-white"}`,appLink:{application:c.CRM_STUDIO,action:i.action},children:s.jsxs("div",{className:"d-flex align-items-center gap-2",children:[s.jsx(p,{size:v.Large,svg:i.svg}),s.jsx("span",{children:i.label})]})},C))})}),s.jsx("div",{className:"d-flex flex-column align-items-center",children:s.jsx("div",{className:`${u?m.mainContentContainerCustomer:m.mainContentContainer} p-4`,children:n.children})})]})}export{L as C,_ as a,m as s};
//# sourceMappingURL=8iu0vnCW.chunk.js.map
