{"ast":null,"code":"import _objectSpread from\"/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";import React,{useState}from'react';import{Grid,Paper,Typography,Box,Card,CardContent,Button,Chip,IconButton,Switch,FormControlLabel,Dialog,DialogTitle,DialogContent,DialogActions,TextField,FormControl,InputLabel,Select,MenuItem,List,ListItem,ListItemText,Alert,Tabs,Tab,Avatar,LinearProgress}from'@mui/material';import{Chat,Storage,Security,CheckCircle,Error,Warning,Add,Edit,Delete,Sync,Api,Storage as Database,Monitor}from'@mui/icons-material';import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";const integrations=[{id:1,name:'Microsoft Teams',type:'Communication',status:'connected',description:'Send notifications and updates to Teams channels',icon:/*#__PURE__*/_jsx(Chat,{}),color:'#1976d2',lastSync:'2024-01-15 10:30',health:'healthy',features:['Notifications','Incident Updates','Status Changes']},{id:2,name:'ServiceNow',type:'CMDB',status:'connected',description:'Synchronize configuration items and incidents',icon:/*#__PURE__*/_jsx(Database,{}),color:'#4caf50',lastSync:'2024-01-15 10:25',health:'healthy',features:['CMDB Sync','Incident Sync','Asset Management']},{id:3,name:'Nagios',type:'Monitoring',status:'connected',description:'Automatically create incidents from monitoring alerts',icon:/*#__PURE__*/_jsx(Monitor,{}),color:'#ff9800',lastSync:'2024-01-15 10:20',health:'warning',features:['Auto Incident Creation','Alert Correlation','Status Monitoring']},{id:4,name:'Slack',type:'Communication',status:'disconnected',description:'Team communication and incident notifications',icon:/*#__PURE__*/_jsx(Chat,{}),color:'#e91e63',lastSync:'2024-01-14 16:45',health:'error',features:['Notifications','Team Chat','Incident Updates']},{id:5,name:'Active Directory',type:'Identity',status:'connected',description:'User authentication and role synchronization',icon:/*#__PURE__*/_jsx(Security,{}),color:'#9c27b0',lastSync:'2024-01-15 10:15',health:'healthy',features:['User Sync','Authentication','Role Management']},{id:6,name:'Jira',type:'Project Management',status:'connected',description:'Create and sync issues with project management',icon:/*#__PURE__*/_jsx(Api,{}),color:'#00bcd4',lastSync:'2024-01-15 10:10',health:'healthy',features:['Issue Creation','Status Sync','Project Tracking']}];const integrationTemplates=[{name:'Email Integration',description:'Configure SMTP settings for email notifications',category:'Communication',setupSteps:['Configure SMTP server settings','Set up authentication credentials','Test email delivery','Configure notification templates']},{name:'Webhook Integration',description:'Set up webhooks for real-time data exchange',category:'API',setupSteps:['Define webhook endpoints','Configure authentication','Set up data mapping','Test webhook delivery']},{name:'Database Integration',description:'Connect to external databases for data synchronization',category:'Data',setupSteps:['Configure database connection','Set up data mapping','Configure sync schedule','Test data synchronization']}];const integrationTypes=[{value:'Communication',label:'Communication',icon:/*#__PURE__*/_jsx(Chat,{})},{value:'Monitoring',label:'Monitoring',icon:/*#__PURE__*/_jsx(Monitor,{})},{value:'CMDB',label:'CMDB',icon:/*#__PURE__*/_jsx(Database,{})},{value:'Identity',label:'Identity',icon:/*#__PURE__*/_jsx(Security,{})},{value:'API',label:'API',icon:/*#__PURE__*/_jsx(Api,{})},{value:'Data',label:'Data',icon:/*#__PURE__*/_jsx(Storage,{})}];const IntegrationManager=()=>{const[integrationsList,setIntegrationsList]=useState(integrations);const[selectedIntegration,setSelectedIntegration]=useState(null);const[integrationDialogOpen,setIntegrationDialogOpen]=useState(false);const[tabValue,setTabValue]=useState(0);const[newIntegration,setNewIntegration]=useState({name:'',type:'',description:'',endpoint:'',apiKey:'',status:'disconnected'});const handleToggleIntegration=integrationId=>{setIntegrationsList(prev=>prev.map(integration=>integration.id===integrationId?_objectSpread(_objectSpread({},integration),{},{status:integration.status==='connected'?'disconnected':'connected',lastSync:new Date().toLocaleString()}):integration));};const handleEditIntegration=integration=>{setSelectedIntegration(integration);setNewIntegration(integration);setIntegrationDialogOpen(true);};const handleCreateIntegration=()=>{setSelectedIntegration(null);setNewIntegration({name:'',type:'',description:'',endpoint:'',apiKey:'',status:'disconnected'});setIntegrationDialogOpen(true);};const handleSaveIntegration=()=>{if(selectedIntegration){setIntegrationsList(prev=>prev.map(integration=>integration.id===selectedIntegration.id?_objectSpread(_objectSpread(_objectSpread({},integration),newIntegration),{},{id:selectedIntegration.id}):integration));}else{const newId=Math.max(...integrationsList.map(i=>i.id))+1;setIntegrationsList(prev=>[...prev,_objectSpread(_objectSpread({},newIntegration),{},{id:newId,icon:/*#__PURE__*/_jsx(Api,{}),color:'#1976d2',lastSync:new Date().toLocaleString(),health:'healthy',features:['Basic Integration']})]);}setIntegrationDialogOpen(false);};const handleDeleteIntegration=integrationId=>{if(window.confirm('Are you sure you want to delete this integration?')){setIntegrationsList(prev=>prev.filter(i=>i.id!==integrationId));}};const handleSyncIntegration=integrationId=>{setIntegrationsList(prev=>prev.map(integration=>integration.id===integrationId?_objectSpread(_objectSpread({},integration),{},{lastSync:new Date().toLocaleString()}):integration));};const getHealthIcon=health=>{const icons={healthy:/*#__PURE__*/_jsx(CheckCircle,{color:\"success\"}),warning:/*#__PURE__*/_jsx(Warning,{color:\"warning\"}),error:/*#__PURE__*/_jsx(Error,{color:\"error\"})};return icons[health]||/*#__PURE__*/_jsx(Error,{});};const getStatusColor=status=>{return status==='connected'?'success':'error';};const connectedCount=integrationsList.filter(i=>i.status==='connected').length;const totalCount=integrationsList.length;return/*#__PURE__*/_jsxs(Box,{children:[/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',justifyContent:'space-between',alignItems:'center',mb:3},children:[/*#__PURE__*/_jsx(Typography,{variant:\"h4\",gutterBottom:true,children:\"Integration Manager\"}),/*#__PURE__*/_jsx(Button,{variant:\"contained\",startIcon:/*#__PURE__*/_jsx(Add,{}),onClick:handleCreateIntegration,children:\"Add Integration\"})]}),/*#__PURE__*/_jsx(Paper,{sx:{p:2,mb:3},children:/*#__PURE__*/_jsxs(Tabs,{value:tabValue,onChange:(e,newValue)=>setTabValue(newValue),children:[/*#__PURE__*/_jsx(Tab,{label:\"Active Integrations\"}),/*#__PURE__*/_jsx(Tab,{label:\"Integration Templates\"}),/*#__PURE__*/_jsx(Tab,{label:\"API Documentation\"})]})}),tabValue===0&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(Grid,{container:true,spacing:3,sx:{mb:3},children:[/*#__PURE__*/_jsx(Grid,{item:true,xs:12,sm:6,md:3,children:/*#__PURE__*/_jsx(Card,{children:/*#__PURE__*/_jsxs(CardContent,{children:[/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',alignItems:'center',mb:2},children:[/*#__PURE__*/_jsx(Avatar,{sx:{bgcolor:'success.main',mr:2},children:/*#__PURE__*/_jsx(CheckCircle,{})}),/*#__PURE__*/_jsxs(Box,{children:[/*#__PURE__*/_jsx(Typography,{variant:\"h4\",children:connectedCount}),/*#__PURE__*/_jsx(Typography,{variant:\"body2\",color:\"text.secondary\",children:\"Connected\"})]})]}),/*#__PURE__*/_jsx(LinearProgress,{variant:\"determinate\",value:connectedCount/totalCount*100,color:\"success\",sx:{height:8,borderRadius:4}})]})})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,sm:6,md:3,children:/*#__PURE__*/_jsx(Card,{children:/*#__PURE__*/_jsx(CardContent,{children:/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',alignItems:'center',mb:2},children:[/*#__PURE__*/_jsx(Avatar,{sx:{bgcolor:'error.main',mr:2},children:/*#__PURE__*/_jsx(Error,{})}),/*#__PURE__*/_jsxs(Box,{children:[/*#__PURE__*/_jsx(Typography,{variant:\"h4\",children:totalCount-connectedCount}),/*#__PURE__*/_jsx(Typography,{variant:\"body2\",color:\"text.secondary\",children:\"Disconnected\"})]})]})})})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,sm:6,md:3,children:/*#__PURE__*/_jsx(Card,{children:/*#__PURE__*/_jsx(CardContent,{children:/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',alignItems:'center',mb:2},children:[/*#__PURE__*/_jsx(Avatar,{sx:{bgcolor:'warning.main',mr:2},children:/*#__PURE__*/_jsx(Warning,{})}),/*#__PURE__*/_jsxs(Box,{children:[/*#__PURE__*/_jsx(Typography,{variant:\"h4\",children:\"2\"}),/*#__PURE__*/_jsx(Typography,{variant:\"body2\",color:\"text.secondary\",children:\"Warnings\"})]})]})})})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,sm:6,md:3,children:/*#__PURE__*/_jsx(Card,{children:/*#__PURE__*/_jsx(CardContent,{children:/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',alignItems:'center',mb:2},children:[/*#__PURE__*/_jsx(Avatar,{sx:{bgcolor:'info.main',mr:2},children:/*#__PURE__*/_jsx(Sync,{})}),/*#__PURE__*/_jsxs(Box,{children:[/*#__PURE__*/_jsx(Typography,{variant:\"h4\",children:\"15\"}),/*#__PURE__*/_jsx(Typography,{variant:\"body2\",color:\"text.secondary\",children:\"Syncs Today\"})]})]})})})})]}),/*#__PURE__*/_jsx(Grid,{container:true,spacing:3,children:integrationsList.map(integration=>/*#__PURE__*/_jsx(Grid,{item:true,xs:12,md:6,lg:4,children:/*#__PURE__*/_jsx(Card,{children:/*#__PURE__*/_jsxs(CardContent,{children:[/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',justifyContent:'space-between',alignItems:'center',mb:2},children:[/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',alignItems:'center'},children:[/*#__PURE__*/_jsx(Avatar,{sx:{bgcolor:integration.color,mr:2},children:integration.icon}),/*#__PURE__*/_jsxs(Box,{children:[/*#__PURE__*/_jsx(Typography,{variant:\"h6\",children:integration.name}),/*#__PURE__*/_jsx(Typography,{variant:\"body2\",color:\"text.secondary\",children:integration.type})]})]}),/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',gap:1},children:[/*#__PURE__*/_jsx(IconButton,{size:\"small\",onClick:()=>handleEditIntegration(integration),children:/*#__PURE__*/_jsx(Edit,{})}),/*#__PURE__*/_jsx(IconButton,{size:\"small\",onClick:()=>handleDeleteIntegration(integration.id),children:/*#__PURE__*/_jsx(Delete,{})})]})]}),/*#__PURE__*/_jsx(Typography,{variant:\"body2\",color:\"text.secondary\",sx:{mb:2},children:integration.description}),/*#__PURE__*/_jsx(Box,{sx:{display:'flex',gap:1,flexWrap:'wrap',mb:2},children:integration.features.map((feature,index)=>/*#__PURE__*/_jsx(Chip,{label:feature,size:\"small\",variant:\"outlined\"},index))}),/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',justifyContent:'space-between',alignItems:'center',mb:2},children:[/*#__PURE__*/_jsx(Chip,{label:integration.status,size:\"small\",color:getStatusColor(integration.status)}),/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',alignItems:'center',gap:1},children:[getHealthIcon(integration.health),/*#__PURE__*/_jsx(Typography,{variant:\"body2\",color:\"text.secondary\",children:integration.health})]})]}),/*#__PURE__*/_jsxs(Typography,{variant:\"body2\",color:\"text.secondary\",sx:{mb:2},children:[\"Last Sync: \",integration.lastSync]}),/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',gap:1},children:[/*#__PURE__*/_jsx(FormControlLabel,{control:/*#__PURE__*/_jsx(Switch,{checked:integration.status==='connected',onChange:()=>handleToggleIntegration(integration.id),color:\"primary\"}),label:\"Enabled\"}),/*#__PURE__*/_jsx(Button,{size:\"small\",startIcon:/*#__PURE__*/_jsx(Sync,{}),onClick:()=>handleSyncIntegration(integration.id),disabled:integration.status==='disconnected',children:\"Sync\"})]})]})})},integration.id))})]}),tabValue===1&&/*#__PURE__*/_jsx(Grid,{container:true,spacing:3,children:integrationTemplates.map((template,index)=>/*#__PURE__*/_jsx(Grid,{item:true,xs:12,md:6,children:/*#__PURE__*/_jsx(Card,{children:/*#__PURE__*/_jsxs(CardContent,{children:[/*#__PURE__*/_jsx(Typography,{variant:\"h6\",gutterBottom:true,children:template.name}),/*#__PURE__*/_jsx(Typography,{variant:\"body2\",color:\"text.secondary\",sx:{mb:2},children:template.description}),/*#__PURE__*/_jsx(Chip,{label:template.category,size:\"small\",sx:{mb:2}}),/*#__PURE__*/_jsx(Typography,{variant:\"subtitle2\",gutterBottom:true,children:\"Setup Steps:\"}),/*#__PURE__*/_jsx(List,{dense:true,children:template.setupSteps.map((step,stepIndex)=>/*#__PURE__*/_jsx(ListItem,{children:/*#__PURE__*/_jsx(ListItemText,{primary:\"\".concat(stepIndex+1,\". \").concat(step)})},stepIndex))}),/*#__PURE__*/_jsx(Button,{variant:\"outlined\",fullWidth:true,sx:{mt:2},onClick:()=>{setNewIntegration(prev=>_objectSpread(_objectSpread({},prev),{},{name:template.name}));setIntegrationDialogOpen(true);},children:\"Use Template\"})]})})},index))}),tabValue===2&&/*#__PURE__*/_jsxs(Paper,{sx:{p:3},children:[/*#__PURE__*/_jsx(Typography,{variant:\"h6\",gutterBottom:true,children:\"API Documentation\"}),/*#__PURE__*/_jsxs(Alert,{severity:\"info\",sx:{mb:3},children:[/*#__PURE__*/_jsx(Typography,{variant:\"subtitle2\",children:\"Integration API\"}),/*#__PURE__*/_jsx(Typography,{variant:\"body2\",children:\"Use our REST API to integrate with external systems. All endpoints require authentication.\"})]}),/*#__PURE__*/_jsx(Typography,{variant:\"subtitle1\",gutterBottom:true,children:\"Base URL: https://api.etb-enterprise.com/v1\"}),/*#__PURE__*/_jsx(Typography,{variant:\"subtitle1\",gutterBottom:true,sx:{mt:3},children:\"Authentication\"}),/*#__PURE__*/_jsx(Typography,{variant:\"body2\",sx:{mb:2},children:\"Include your API key in the Authorization header:\"}),/*#__PURE__*/_jsx(Paper,{sx:{p:2,bgcolor:'grey.100',mb:3},children:/*#__PURE__*/_jsx(Typography,{variant:\"body2\",component:\"pre\",children:\"Authorization: Bearer YOUR_API_KEY\"})}),/*#__PURE__*/_jsx(Typography,{variant:\"subtitle1\",gutterBottom:true,children:\"Common Endpoints\"}),/*#__PURE__*/_jsxs(List,{children:[/*#__PURE__*/_jsx(ListItem,{children:/*#__PURE__*/_jsx(ListItemText,{primary:\"POST /incidents\",secondary:\"Create a new incident\"})}),/*#__PURE__*/_jsx(ListItem,{children:/*#__PURE__*/_jsx(ListItemText,{primary:\"GET /incidents\",secondary:\"Retrieve incidents with filtering\"})}),/*#__PURE__*/_jsx(ListItem,{children:/*#__PURE__*/_jsx(ListItemText,{primary:\"PUT /incidents/{id}\",secondary:\"Update an existing incident\"})}),/*#__PURE__*/_jsx(ListItem,{children:/*#__PURE__*/_jsx(ListItemText,{primary:\"GET /users\",secondary:\"Retrieve user information\"})})]})]}),/*#__PURE__*/_jsxs(Dialog,{open:integrationDialogOpen,onClose:()=>setIntegrationDialogOpen(false),maxWidth:\"md\",fullWidth:true,children:[/*#__PURE__*/_jsx(DialogTitle,{children:selectedIntegration?'Edit Integration':'Create New Integration'}),/*#__PURE__*/_jsx(DialogContent,{children:/*#__PURE__*/_jsxs(Grid,{container:true,spacing:2,sx:{mt:1},children:[/*#__PURE__*/_jsx(Grid,{item:true,xs:12,md:6,children:/*#__PURE__*/_jsx(TextField,{fullWidth:true,label:\"Integration Name\",value:newIntegration.name,onChange:e=>setNewIntegration(prev=>_objectSpread(_objectSpread({},prev),{},{name:e.target.value})),required:true})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,md:6,children:/*#__PURE__*/_jsxs(FormControl,{fullWidth:true,required:true,children:[/*#__PURE__*/_jsx(InputLabel,{children:\"Type\"}),/*#__PURE__*/_jsx(Select,{value:newIntegration.type,label:\"Type\",onChange:e=>setNewIntegration(prev=>_objectSpread(_objectSpread({},prev),{},{type:e.target.value})),children:integrationTypes.map(type=>/*#__PURE__*/_jsx(MenuItem,{value:type.value,children:/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',alignItems:'center'},children:[type.icon,/*#__PURE__*/_jsx(Typography,{sx:{ml:1},children:type.label})]})},type.value))})]})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsx(TextField,{fullWidth:true,label:\"Description\",value:newIntegration.description,onChange:e=>setNewIntegration(prev=>_objectSpread(_objectSpread({},prev),{},{description:e.target.value})),multiline:true,rows:2})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,md:6,children:/*#__PURE__*/_jsx(TextField,{fullWidth:true,label:\"Endpoint URL\",value:newIntegration.endpoint,onChange:e=>setNewIntegration(prev=>_objectSpread(_objectSpread({},prev),{},{endpoint:e.target.value})),placeholder:\"https://api.example.com\"})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,md:6,children:/*#__PURE__*/_jsx(TextField,{fullWidth:true,label:\"API Key\",type:\"password\",value:newIntegration.apiKey,onChange:e=>setNewIntegration(prev=>_objectSpread(_objectSpread({},prev),{},{apiKey:e.target.value})),placeholder:\"Enter API key or token\"})})]})}),/*#__PURE__*/_jsxs(DialogActions,{children:[/*#__PURE__*/_jsx(Button,{onClick:()=>setIntegrationDialogOpen(false),children:\"Cancel\"}),/*#__PURE__*/_jsx(Button,{variant:\"contained\",onClick:handleSaveIntegration,children:selectedIntegration?'Update':'Create'})]})]})]});};export default IntegrationManager;","map":{"version":3,"names":["React","useState","Grid","Paper","Typography","Box","Card","CardContent","Button","Chip","IconButton","Switch","FormControlLabel","Dialog","DialogTitle","DialogContent","DialogActions","TextField","FormControl","InputLabel","Select","MenuItem","List","ListItem","ListItemText","Alert","Tabs","Tab","Avatar","LinearProgress","Chat","Storage","Security","CheckCircle","Error","Warning","Add","Edit","Delete","Sync","Api","Database","Monitor","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","integrations","id","name","type","status","description","icon","color","lastSync","health","features","integrationTemplates","category","setupSteps","integrationTypes","value","label","IntegrationManager","integrationsList","setIntegrationsList","selectedIntegration","setSelectedIntegration","integrationDialogOpen","setIntegrationDialogOpen","tabValue","setTabValue","newIntegration","setNewIntegration","endpoint","apiKey","handleToggleIntegration","integrationId","prev","map","integration","_objectSpread","Date","toLocaleString","handleEditIntegration","handleCreateIntegration","handleSaveIntegration","newId","Math","max","i","handleDeleteIntegration","window","confirm","filter","handleSyncIntegration","getHealthIcon","icons","healthy","warning","error","getStatusColor","connectedCount","length","totalCount","children","sx","display","justifyContent","alignItems","mb","variant","gutterBottom","startIcon","onClick","p","onChange","e","newValue","container","spacing","item","xs","sm","md","bgcolor","mr","height","borderRadius","lg","gap","size","flexWrap","feature","index","control","checked","disabled","template","dense","step","stepIndex","primary","concat","fullWidth","mt","severity","component","secondary","open","onClose","maxWidth","target","required","ml","multiline","rows","placeholder"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/src/pages/Admin/IntegrationManager.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport {\n Grid,\n Paper,\n Typography,\n Box,\n Card,\n CardContent,\n Button,\n Chip,\n IconButton,\n Switch,\n FormControlLabel,\n Dialog,\n DialogTitle,\n DialogContent,\n DialogActions,\n TextField,\n FormControl,\n InputLabel,\n Select,\n MenuItem,\n List,\n ListItem,\n ListItemText,\n Alert,\n Tabs,\n Tab,\n Avatar,\n LinearProgress,\n} from '@mui/material';\nimport {\n Chat,\n Storage,\n Security,\n CheckCircle,\n Error,\n Warning,\n Add,\n Edit,\n Delete,\n Sync,\n Api,\n Storage as Database,\n Monitor,\n} from '@mui/icons-material';\n\nconst integrations = [\n {\n id: 1,\n name: 'Microsoft Teams',\n type: 'Communication',\n status: 'connected',\n description: 'Send notifications and updates to Teams channels',\n icon: ,\n color: '#1976d2',\n lastSync: '2024-01-15 10:30',\n health: 'healthy',\n features: ['Notifications', 'Incident Updates', 'Status Changes']\n },\n {\n id: 2,\n name: 'ServiceNow',\n type: 'CMDB',\n status: 'connected',\n description: 'Synchronize configuration items and incidents',\n icon: ,\n color: '#4caf50',\n lastSync: '2024-01-15 10:25',\n health: 'healthy',\n features: ['CMDB Sync', 'Incident Sync', 'Asset Management']\n },\n {\n id: 3,\n name: 'Nagios',\n type: 'Monitoring',\n status: 'connected',\n description: 'Automatically create incidents from monitoring alerts',\n icon: ,\n color: '#ff9800',\n lastSync: '2024-01-15 10:20',\n health: 'warning',\n features: ['Auto Incident Creation', 'Alert Correlation', 'Status Monitoring']\n },\n {\n id: 4,\n name: 'Slack',\n type: 'Communication',\n status: 'disconnected',\n description: 'Team communication and incident notifications',\n icon: ,\n color: '#e91e63',\n lastSync: '2024-01-14 16:45',\n health: 'error',\n features: ['Notifications', 'Team Chat', 'Incident Updates']\n },\n {\n id: 5,\n name: 'Active Directory',\n type: 'Identity',\n status: 'connected',\n description: 'User authentication and role synchronization',\n icon: ,\n color: '#9c27b0',\n lastSync: '2024-01-15 10:15',\n health: 'healthy',\n features: ['User Sync', 'Authentication', 'Role Management']\n },\n {\n id: 6,\n name: 'Jira',\n type: 'Project Management',\n status: 'connected',\n description: 'Create and sync issues with project management',\n icon: ,\n color: '#00bcd4',\n lastSync: '2024-01-15 10:10',\n health: 'healthy',\n features: ['Issue Creation', 'Status Sync', 'Project Tracking']\n }\n];\n\nconst integrationTemplates = [\n {\n name: 'Email Integration',\n description: 'Configure SMTP settings for email notifications',\n category: 'Communication',\n setupSteps: [\n 'Configure SMTP server settings',\n 'Set up authentication credentials',\n 'Test email delivery',\n 'Configure notification templates'\n ]\n },\n {\n name: 'Webhook Integration',\n description: 'Set up webhooks for real-time data exchange',\n category: 'API',\n setupSteps: [\n 'Define webhook endpoints',\n 'Configure authentication',\n 'Set up data mapping',\n 'Test webhook delivery'\n ]\n },\n {\n name: 'Database Integration',\n description: 'Connect to external databases for data synchronization',\n category: 'Data',\n setupSteps: [\n 'Configure database connection',\n 'Set up data mapping',\n 'Configure sync schedule',\n 'Test data synchronization'\n ]\n }\n];\n\nconst integrationTypes = [\n { value: 'Communication', label: 'Communication', icon: },\n { value: 'Monitoring', label: 'Monitoring', icon: },\n { value: 'CMDB', label: 'CMDB', icon: },\n { value: 'Identity', label: 'Identity', icon: },\n { value: 'API', label: 'API', icon: },\n { value: 'Data', label: 'Data', icon: },\n];\n\nconst IntegrationManager: React.FC = () => {\n const [integrationsList, setIntegrationsList] = useState(integrations);\n const [selectedIntegration, setSelectedIntegration] = useState(null);\n const [integrationDialogOpen, setIntegrationDialogOpen] = useState(false);\n const [tabValue, setTabValue] = useState(0);\n const [newIntegration, setNewIntegration] = useState({\n name: '',\n type: '',\n description: '',\n endpoint: '',\n apiKey: '',\n status: 'disconnected'\n });\n\n const handleToggleIntegration = (integrationId: any) => {\n setIntegrationsList(prev => prev.map(integration => \n integration.id === integrationId \n ? { \n ...integration, \n status: integration.status === 'connected' ? 'disconnected' : 'connected',\n lastSync: new Date().toLocaleString()\n }\n : integration\n ));\n };\n\n const handleEditIntegration = (integration: any) => {\n setSelectedIntegration(integration);\n setNewIntegration(integration);\n setIntegrationDialogOpen(true);\n };\n\n const handleCreateIntegration = () => {\n setSelectedIntegration(null);\n setNewIntegration({\n name: '',\n type: '',\n description: '',\n endpoint: '',\n apiKey: '',\n status: 'disconnected'\n });\n setIntegrationDialogOpen(true);\n };\n\n const handleSaveIntegration = () => {\n if (selectedIntegration) {\n setIntegrationsList(prev => prev.map(integration => \n integration.id === selectedIntegration.id ? { \n ...integration,\n ...newIntegration, \n id: selectedIntegration.id \n } : integration\n ));\n } else {\n const newId = Math.max(...integrationsList.map(i => i.id)) + 1;\n setIntegrationsList(prev => [...prev, { \n ...newIntegration, \n id: newId,\n icon: ,\n color: '#1976d2',\n lastSync: new Date().toLocaleString(),\n health: 'healthy',\n features: ['Basic Integration']\n }]);\n }\n setIntegrationDialogOpen(false);\n };\n\n const handleDeleteIntegration = (integrationId: any) => {\n if (window.confirm('Are you sure you want to delete this integration?')) {\n setIntegrationsList(prev => prev.filter(i => i.id !== integrationId));\n }\n };\n\n const handleSyncIntegration = (integrationId: any) => {\n setIntegrationsList(prev => prev.map(integration => \n integration.id === integrationId \n ? { ...integration, lastSync: new Date().toLocaleString() }\n : integration\n ));\n };\n\n\n const getHealthIcon = (health: string) => {\n const icons: { [key: string]: JSX.Element } = {\n healthy: ,\n warning: ,\n error: \n };\n return icons[health] || ;\n };\n\n const getStatusColor = (status: string) => {\n return status === 'connected' ? 'success' : 'error';\n };\n\n const connectedCount = integrationsList.filter(i => i.status === 'connected').length;\n const totalCount = integrationsList.length;\n\n return (\n \n \n \n Integration Manager\n \n }\n onClick={handleCreateIntegration}\n >\n Add Integration\n \n \n\n \n setTabValue(newValue)}>\n \n \n \n \n \n\n {tabValue === 0 && (\n <>\n {/* Integration Status Overview */}\n \n \n \n \n \n \n \n \n \n {connectedCount}\n \n Connected\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {totalCount - connectedCount}\n \n Disconnected\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n 2\n \n Warnings\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n 15\n \n Syncs Today\n \n \n \n \n \n \n \n\n {/* Integrations List */}\n \n {integrationsList.map((integration: any) => (\n \n \n \n \n \n \n {integration.icon}\n \n \n {integration.name}\n \n {integration.type}\n \n \n \n \n handleEditIntegration(integration)}>\n \n \n handleDeleteIntegration(integration.id)}>\n \n \n \n \n \n \n {integration.description}\n \n \n \n {integration.features.map((feature: string, index: number) => (\n \n ))}\n \n \n \n \n \n {getHealthIcon(integration.health)}\n \n {integration.health}\n \n \n \n \n \n Last Sync: {integration.lastSync}\n \n \n \n handleToggleIntegration(integration.id)}\n color=\"primary\"\n />\n }\n label=\"Enabled\"\n />\n }\n onClick={() => handleSyncIntegration(integration.id)}\n disabled={integration.status === 'disconnected'}\n >\n Sync\n \n \n \n \n \n ))}\n \n \n )}\n\n {tabValue === 1 && (\n \n {integrationTemplates.map((template, index) => (\n \n \n \n \n {template.name}\n \n \n {template.description}\n \n \n \n Setup Steps:\n \n \n {template.setupSteps.map((step, stepIndex) => (\n \n \n \n ))}\n \n {\n setNewIntegration(prev => ({ ...prev, name: template.name }));\n setIntegrationDialogOpen(true);\n }}\n >\n Use Template\n \n \n \n \n ))}\n \n )}\n\n {tabValue === 2 && (\n \n \n API Documentation\n \n \n Integration API\n \n Use our REST API to integrate with external systems. All endpoints require authentication.\n \n \n \n \n Base URL: https://api.etb-enterprise.com/v1\n \n \n \n Authentication\n \n \n Include your API key in the Authorization header:\n \n \n \n {`Authorization: Bearer YOUR_API_KEY`}\n \n \n \n \n Common Endpoints\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n\n {/* Integration Dialog */}\n setIntegrationDialogOpen(false)} maxWidth=\"md\" fullWidth>\n \n {selectedIntegration ? 'Edit Integration' : 'Create New Integration'}\n \n \n \n \n setNewIntegration(prev => ({ ...prev, name: e.target.value }))}\n required\n />\n \n \n \n Type\n setNewIntegration(prev => ({ ...prev, type: e.target.value }))}\n >\n {integrationTypes.map((type: any) => (\n \n \n {type.icon}\n {type.label}\n \n \n ))}\n \n \n \n \n setNewIntegration(prev => ({ ...prev, description: e.target.value }))}\n multiline\n rows={2}\n />\n \n \n setNewIntegration(prev => ({ ...prev, endpoint: e.target.value }))}\n placeholder=\"https://api.example.com\"\n />\n \n \n setNewIntegration(prev => ({ ...prev, apiKey: e.target.value }))}\n placeholder=\"Enter API key or token\"\n />\n \n \n \n \n \n \n \n \n \n );\n}\n\nexport default IntegrationManager;\n"],"mappings":"uHAAA,MAAO,CAAAA,KAAK,EAAIC,QAAQ,KAAQ,OAAO,CACvC,OACEC,IAAI,CACJC,KAAK,CACLC,UAAU,CACVC,GAAG,CACHC,IAAI,CACJC,WAAW,CACXC,MAAM,CACNC,IAAI,CACJC,UAAU,CACVC,MAAM,CACNC,gBAAgB,CAChBC,MAAM,CACNC,WAAW,CACXC,aAAa,CACbC,aAAa,CACbC,SAAS,CACTC,WAAW,CACXC,UAAU,CACVC,MAAM,CACNC,QAAQ,CACRC,IAAI,CACJC,QAAQ,CACRC,YAAY,CACZC,KAAK,CACLC,IAAI,CACJC,GAAG,CACHC,MAAM,CACNC,cAAc,KACT,eAAe,CACtB,OACEC,IAAI,CACJC,OAAO,CACPC,QAAQ,CACRC,WAAW,CACXC,KAAK,CACLC,OAAO,CACPC,GAAG,CACHC,IAAI,CACJC,MAAM,CACNC,IAAI,CACJC,GAAG,CACHT,OAAO,GAAI,CAAAU,QAAQ,CACnBC,OAAO,KACF,qBAAqB,CAAC,OAAAC,GAAA,IAAAC,IAAA,CAAAC,IAAA,IAAAC,KAAA,CAAAC,QAAA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