import{j as r}from"./vendor-mui-69397583.js";import{bB as m,h as p,du as c,dv as d,dw as u,dx as g,dy as h,dz as b,dA as x,dB as C,dC as N,dD as f}from"./index-c62ac197.js";import{A as v}from"./AdaptableCard-df7695d6.js";import{b as F}from"./index-e3cc723f.js";import{c as k}from"./index-e4c6057f.js";import{f as A}from"./vendor-react-ece1c85f.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-pdf-b2a5d8b1.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";function I(s){return m({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 13.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"},child:[]},{tag:"path",attr:{d:"M19.071 3.429h.001c3.905 3.905 3.905 10.237 0 14.142l-5.403 5.403a2.36 2.36 0 0 1-3.336 0l-5.375-5.375-.028-.028c-3.905-3.905-3.905-10.237 0-14.142 3.904-3.905 10.236-3.905 14.141 0ZM5.99 4.489v.001a8.5 8.5 0 0 0 0 12.02l.023.024.002.002 5.378 5.378a.859.859 0 0 0 1.214 0l5.403-5.404a8.5 8.5 0 0 0-.043-11.977A8.5 8.5 0 0 0 5.99 4.489Z"},child:[]}]})(s)}const O=()=>{const s=A(),t=p(e=>{var a;return((a=e.auth.session)==null?void 0:a.permission)||[]}),l=e=>{const a=t.find(o=>o.menuName===e);return(a==null?void 0:a.isView)||!1},n=[{label:"AI Vision",icon:k,url:"/app/pages/ai-vision",menuName:"AI Vision"},{label:"Bar Codes",icon:c,url:"/app/pages/barcodes",menuName:"Bar Code Generator"},{label:"Event Calendar",icon:d,url:"/app/pages/Calendar",menuName:"Calendar"},{label:"Chat",icon:u,url:"/app/pages/Chat",menuName:"Chat"},{label:"Cloud Storage",icon:g,url:"/app/pages/documentmanagement",menuName:"Cloud Storage"},{label:"Data Grid",icon:h,url:"/app/pages/grid",menuName:"Grid"},{label:"Live Tracking",icon:I,url:"/app/pages/live-tracking",menuName:"Live 360"},{label:"Interactive Map",icon:b,url:"/app/pages/map",menuName:"Map Interactive"},{label:"Grid View Map",icon:x,url:"/app/pages/gridmap",menuName:"Map Grid"},{label:"Geo fence",icon:F,url:"/app/pages/geo-fence",menuName:"Map Geo Fence"},{label:"OCR",icon:C,url:"/app/pages/ocr",menuName:"OCR"},{label:"Time Log",icon:N,url:"/app/pages/TimeLog",menuName:"Time Log"},{label:"Video Check In",icon:f,url:"/app/pages/Check-In",menuName:"Video Check In"}].map(e=>l(e.menuName)?e:{label:"",icon:null,url:""});return console.log("gridItems",n),r.jsxs(v,{className:"p-4 sm:p-6 md:p-8 bg-transparent",bodyClass:"p-0",children:[r.jsx("h2",{className:"text-2xl font-semibold mb-6 sm:mb-8 text-gray-800",children:"Available Components"}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-5 gap-5",children:n.map((e,a)=>{const o=e.icon,i=!!e.url;return r.jsxs("div",{className:`group rounded-2xl bg-white border border-gray-200 shadow-sm transition duration-200
                                ${i?"cursor-pointer hover:shadow-lg hover:border-custom-600":"opacity-50 cursor-default"}
                                flex flex-col items-center justify-center p-4 h-[36vh] dark:bg-[#292f3c] dark:text-white
                            `,onClick:()=>i&&s(e.url),children:[o&&r.jsx("div",{className:"flex items-center justify-center w-48 h-48 mb-4",children:r.jsx(o,{className:"text-custom-600 text-5xl group-hover:scale-110 transition-transform"})}),e.label&&r.jsx("p",{className:"text-center text-[18px] font-medium leading-tight mt-1",children:e.label})]},a)})})]})};export{O as default};
