import{o as A,b as d,a4 as o,aT as f,g as e,h as i,i as l,j as a,cD as k}from"./app-BgLa5dit.js";import{u as x}from"./BTbeLL99.chunk.js";import{M as h}from"./DwzYo0zp.chunk.js";import{M as j}from"./CyA7a1Az.chunk.js";import{M as c}from"./DJkz-8BP.chunk.js";import{M as N}from"./DkfLu2gt.chunk.js";import"./9Z7K2s6J.chunk.js";import"./Cu2-dDll.chunk.js";import"./Bs6fQ2wT.chunk.js";import"./BUT90D7O.chunk.js";import"./DyuQzTEw.chunk.js";import"./DDfKZ_ng.chunk.js";import"./lZO4aq5x.chunk.js";import"./C8_78Eqq.chunk.js";import"./CwUNbMbl.chunk.js";function D(){const s=A(h.getAllCatalogs()),{hasPermissions:r,isLoading:n}=d(),m=r(o.MarketingContactUploadAll),t=r(o.MarketingCatalogManagement),p=m&&t;if(x({title:"Catalog Management"}),f.useEffect(()=>{!t&&!n&&e.trigger({application:l.MARKETING_APP,action:i.Marketing.CONTACT_UPLOAD},{replace:!0})},[t,n]),!s.hasCompleted)return a.jsx(a.Fragment,{});const g=c.getColumns("index"),u=e.getCurrentAppLink(),C=c.getLeftNavItems(p,u.action);return a.jsx(j,{leftNavItems:C,children:a.jsxs("div",{className:"g-4",children:[a.jsxs("div",{className:"d-flex flex-row w-full justify-content-between mb-3",children:[a.jsx("h2",{className:"m-0",children:"Braze Catalogs"}),a.jsx(k,{variant:"dark",onClick:()=>{const M={application:l.MARKETING_APP,action:i.Marketing.CREATE_CATALOG};e.trigger(M)},children:"Create Catalog"})]}),a.jsx(N,{data:s.data,columns:g})]})})}export{D as AllCatalogsView};
//# sourceMappingURL=DYZzRgvI.chunk.js.map
