aiware-js 1.0.0-master.721 → 1.0.0-master.722

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/index.esm.css +92 -92
  2. package/index.esm.css.gz +0 -0
  3. package/index.esm.min.css +92 -92
  4. package/index.esm.min.css.gz +0 -0
  5. package/js-core.esm.js +1 -1
  6. package/js-core.esm.js.gz +0 -0
  7. package/js-core.esm18.js +1 -1
  8. package/js-core.esm18.js.gz +0 -0
  9. package/js-core.esm20.js +2 -2
  10. package/js-core.esm20.js.gz +0 -0
  11. package/js-core.esm21.js +1 -1
  12. package/js-core.esm21.js.gz +0 -0
  13. package/js-core.esm23.js +1 -1
  14. package/js-core.esm23.js.gz +0 -0
  15. package/js-core.esm26.js +1 -1
  16. package/js-core.esm26.js.gz +0 -0
  17. package/js-core.esm27.js +1 -1
  18. package/js-core.esm27.js.gz +0 -0
  19. package/js-core.esm28.js +1 -1
  20. package/js-core.esm28.js.gz +0 -0
  21. package/js-core.esm30.js +1 -1
  22. package/js-core.esm30.js.gz +0 -0
  23. package/js-core.esm31.js +1 -1
  24. package/js-core.esm31.js.gz +0 -0
  25. package/js-core.esm33.js +1 -1
  26. package/js-core.esm33.js.gz +0 -0
  27. package/js-core.esm34.js +1 -1
  28. package/js-core.esm34.js.gz +0 -0
  29. package/js-core.esm35.js +1 -1
  30. package/js-core.esm35.js.gz +0 -0
  31. package/js-core.esm36.js +1 -1
  32. package/js-core.esm36.js.gz +0 -0
  33. package/js-core.esm37.js +1 -1
  34. package/js-core.esm37.js.gz +0 -0
  35. package/js-core.esm39.js +2 -2
  36. package/js-core.esm39.js.gz +0 -0
  37. package/js-core.esm43.js +1 -1
  38. package/js-core.esm43.js.gz +0 -0
  39. package/js-core.esm45.js +1 -1
  40. package/js-core.esm45.js.gz +0 -0
  41. package/js-core.esm46.js +1 -1
  42. package/js-core.esm46.js.gz +0 -0
  43. package/js-core.esm47.js +1 -1
  44. package/js-core.esm47.js.gz +0 -0
  45. package/js-core.esm49.js +1 -1
  46. package/js-core.esm49.js.gz +0 -0
  47. package/js-core.esm50.js +1 -1
  48. package/js-core.esm50.js.gz +0 -0
  49. package/js-core.esm51.js +1 -1
  50. package/js-core.esm51.js.gz +0 -0
  51. package/js-core.esm52.js +1 -1
  52. package/js-core.esm52.js.gz +0 -0
  53. package/js-core.esm54.js +1 -1
  54. package/js-core.esm54.js.gz +0 -0
  55. package/js-core.esm55.js +1 -1
  56. package/js-core.esm55.js.gz +0 -0
  57. package/js-core.esm57.js +1 -1
  58. package/js-core.esm57.js.gz +0 -0
  59. package/js-core.esm58.js +1 -1
  60. package/js-core.esm58.js.gz +0 -0
  61. package/js-core.esm59.js +1 -1
  62. package/js-core.esm59.js.gz +0 -0
  63. package/js-core.esm60.js +1 -1
  64. package/js-core.esm60.js.gz +0 -0
  65. package/js-core.esm61.js +1 -1
  66. package/js-core.esm61.js.gz +0 -0
  67. package/js-core.esm62.js +1 -1
  68. package/js-core.esm62.js.gz +0 -0
  69. package/js-core.esm63.js +1 -1
  70. package/js-core.esm63.js.gz +0 -0
  71. package/js-core.esm64.js +1 -1
  72. package/js-core.esm64.js.gz +0 -0
  73. package/js-core.esm66.js +1 -1
  74. package/js-core.esm66.js.gz +0 -0
  75. package/js-core.esm67.js +4 -4
  76. package/js-core.esm67.js.gz +0 -0
  77. package/js-core.esm69.js +2 -2
  78. package/js-core.esm69.js.gz +0 -0
  79. package/js-core.esm70.js +1 -1
  80. package/js-core.esm70.js.gz +0 -0
  81. package/js-core.esm71.js +1 -1
  82. package/js-core.esm71.js.gz +0 -0
  83. package/js-core.esm72.js +1 -1
  84. package/js-core.esm72.js.gz +0 -0
  85. package/js-core.esm73.js +1 -1
  86. package/js-core.esm73.js.gz +0 -0
  87. package/js-core.esm78.js +1 -1
  88. package/js-core.esm78.js.gz +0 -0
  89. package/js-core.esm79.js +1 -1
  90. package/js-core.esm79.js.gz +0 -0
  91. package/js-core.esm80.js +1 -1
  92. package/js-core.esm80.js.gz +0 -0
  93. package/js-core.esm81.js +1 -1
  94. package/js-core.esm81.js.gz +0 -0
  95. package/js-core.esm82.js +1 -1
  96. package/js-core.esm82.js.gz +0 -0
  97. package/js-core.esm84.js +1 -1
  98. package/js-core.esm84.js.gz +0 -0
  99. package/js-core.esm85.js +1 -1
  100. package/js-core.esm85.js.gz +0 -0
  101. package/js-core.esm86.js +1 -1
  102. package/js-core.esm86.js.gz +0 -0
  103. package/js-core.esm87.js +1 -1
  104. package/js-core.esm87.js.gz +0 -0
  105. package/js-core.esm89.js +1 -1
  106. package/js-core.esm89.js.gz +0 -0
  107. package/js-core.esm91.js +1 -1
  108. package/js-core.esm91.js.gz +0 -0
  109. package/js-core.umd.js +165 -165
  110. package/js-core.umd.js.gz +0 -0
  111. package/locales/en.json +1 -1
  112. package/locales/es.json +1 -1
  113. package/locales/fr.json +1 -1
  114. package/package.json +1 -1
package/js-core.esm54.js CHANGED
@@ -1,4 +1,4 @@
1
- import{i as createSvgIcon,k as interopRequireDefault,j as jsxRuntime,m as makeStyles,a0 as createSlice,cm as combineReducers,cn as createSelector,a6 as rootApiSelector,a8 as graphEndpointSelector,a7 as sessionTokenSelector,cp as AIWareThemeProvider,a3 as DynamicModuleLoader,eU as getLibraryModule,A as AIWareIntlProvider,bO as AIWareCacheProvider,o as useSelector,r as react,n as useDispatch,F as FormattedMessage,T as Typography,aq as Tooltip,K as IconButton,cr as Close,B as Box,w as Alert,U as Button,aO as CircularProgress,ae as Portal,fl as img$y,cv as default_1$2,v as lodash,fe as Badge,bX as Icon,dJ as EngineCategoryIcons,b9 as Snackbar,ba as default_1$3,fM as ConfirmationModal,al as all,g5 as selectors$1,g6 as LibraryDropdown,c3 as FormHelperText$2,g7 as Remove,g8 as Save,cP as Add,cH as Delete,cF as Edit,at as Skeleton,cA as mountPanel,E as classNames,au as takeLatest$1,C as FormControl,ax as select,a4 as preferredLanguageSelector,bj as AIWareFormatMessage,aw as put,cb as showMessage,cc as MessageSeverity,az as call,dq as sdkEventManager,dr as SdkEvents,ds as SdkError,D as TextField,M as Select,Q as MenuItem,g9 as Input,dP as Chip,cN as baseGraphQLApiWithError}from"./js-core.esm.js";import{selectors}from"./js-core.esm37.js";import"./js-core.esm27.js";import"./js-core.esm38.js";import"./js-core.esm20.js";import"./js-core.esm33.js";import"./js-core.esm30.js";import"./js-core.esm35.js";import"./js-core.esm32.js";import"./js-core.esm39.js";import"./js-core.esm43.js";import"./js-core.esm9.js";import"./js-core.esm44.js";import"./js-core.esm23.js";import"./js-core.esm5.js";import"./js-core.esm40.js";import"./js-core.esm10.js";import"./js-core.esm11.js";import"./js-core.esm41.js";import"./js-core.esm42.js";var ProcessAIView,CheckCircle={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(CheckCircle,"__esModule",{value:!0}),CheckCircle.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),default_1$1=CheckCircle.default=_default$1,Info={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Info,"__esModule",{value:!0}),Info.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),default_1=Info.default=_default;const SHARED_TEXT={processAiHeaderTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.eA9TAY",defaultMessage:"AI PROCESSING",description:"Title of AI categories list"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),processAiHeaderDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.p3BcDi",defaultMessage:"Select from a list of AI capabilities to apply available AI processing to your selected files.",description:"Detailed text below the process AI header title"}),processAiEngineUnavailable:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.PwcA3J",defaultMessage:"This engine does not specify a default single job template.",description:"Detailed text if an engine is not available to use"}),processAiFailedStatus:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.UBu61T",defaultMessage:"An error happened while fetching the engine capabilities.",description:"Error message for process ai failures"}),processAiNoEngineCapability:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.IC5L+j",defaultMessage:"No available engine found for this file.",description:"Warning message when no engine found"}),processAiRetryBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.8U+Kek",defaultMessage:"Retry",description:"Retry button text"}),cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.6PdOcy",defaultMessage:"Cancel",description:"Cancel"}),processAiAddEngines:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.e5+f7H",defaultMessage:"Save Changes",description:"Add engines button text"}),engineSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.3Phobj",defaultMessage:"Engine Settings",description:"The label for the engine settings component"}),saveSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.UOkssC",defaultMessage:"Save Settings",description:"The label for the engine settings savings"}),engineSelected:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.Ki+AeV",defaultMessage:"Selected & Configured",description:"The label for the selected engine"}),removeEngine:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.eZW4Lt",defaultMessage:"Remove Engine",description:"The button to deselected a selected engine"}),editConfigurations:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.GSlIPA",defaultMessage:"Edit Configurations",description:"The button to edit the engine configurations"}),useThisEngine:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai-use-engine",defaultMessage:"Use this Engine",description:"The label for the use engine button when no engine has not been selected yet"})},useStyles$5=makeStyles()(e=>({aiProcessingWrapper:{padding:"8px 20px 20px 20px",display:"flex",flexDirection:"column",height:"100%",position:"absolute",top:"0",bottom:"0"},processAiHeader:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",marginBottom:10},loaderIcon:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:20}})),SLICE_NAME="dataCenterProcessAI",namespace$3=(!function(e){e.aiCapabilities="aiCapabilities",e.engineSelection="engineSelection",e.engineConfiguration="engineConfiguration"}(ProcessAIView=ProcessAIView||{}),"capabilitiesState"),initialState$3={status:"idle",capabilities:[],engines:{}},capabilitiesSlice=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$3,reducers:{capabilitiesFetchStart(e,t){e.status="pending"},capabilitiesFetchSucceed(e){e.status="idle"},capabilitiesFetchFailed(e){e.status="failure"},setCapabilities:(e,t)=>{e.capabilities=t.payload},setEngines:(e,t)=>{e.engines=t.payload}}}),actions$4=capabilitiesSlice.actions;var capabilities_state=capabilitiesSlice.reducer;const namespace$2="processAiConfig",initialState$2={status:"idle",selectedEngines:{}},configurationSlice=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$2,reducers:{setConfigurations(e,t){var{capabilityId:t,selectedEngines:s}=t.payload;e.selectedEngines[t]=s},updateSingleJobStatus(e,t){const{engineId:s,status:n}=t.payload;for(const a in e.selectedEngines){var i=e.selectedEngines[a].findIndex(e=>e.id===s);if(-1!==i){e.selectedEngines[a][i].status=n;break}}}}}),actions$3=configurationSlice.actions;var configuration_state=configurationSlice.reducer;const namespace$1="uiState",initialState$1={status:"idle",currentView:ProcessAIView.aiCapabilities,isFullScreen:!1},uiSlice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState$1,reducers:{setCurrentView:(e,t)=>{e.currentView=t.payload},setStatus:(e,t)=>{e.status=t.payload},setIsFullScreen:(e,t)=>{e.isFullScreen=t.payload}}}),actions$2=uiSlice.actions;var ui_state=uiSlice.reducer;const namespace="job",initialState={status:"idle"},jobSlice=createSlice({name:SLICE_NAME+"/"+namespace,initialState:initialState,reducers:{launchJobStart(e,t){e.status="pending"},launchJobSucceed(e){e.status="success"},launchJobFailed(e){e.status="failure"}}}),actions$1=jobSlice.actions;var EngineFieldType,job_state=jobSlice.reducer;const actions={[namespace$1]:actions$2,[namespace$3]:actions$4,[namespace$2]:actions$3,[namespace]:actions$1},rootReducer=combineReducers({[namespace$1]:ui_state,[namespace$3]:capabilities_state,[namespace$2]:configuration_state,[namespace]:job_state}),selectCapabilitiesStatus=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.status},selectCapabilities=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.capabilities},selectEnginesByCapabilityId=t=>e=>{return null==(e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.engines)?void 0:e[t]},selectAllEngines=e=>{e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.engines;return e&&0<Object.values(e).length?Object.values(e).reduce((e,t)=>lodash.exports.concat(e,t)):[]},selectSelectedEnginesByCapabilityId=t=>e=>{return null==(e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines)?void 0:e[t]},selectSelectedEngines=e=>{e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines;return Object.values(e).reduce((e,t)=>e.concat(t),[])},selectSelectedEnginesObj=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines},selectJobStatus=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace])?void 0:e.status},selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,s)=>({apiRoot:e,graphQLEndpoint:t,token:s})),useStyles$4=makeStyles()(e=>({processingContainer:{marginTop:25,flex:1,overflowY:"scroll"},instructions:{marginBottom:"30px"},name:{fontSize:"14px",fontWeight:400,lineHeight:"19.1px"},description:{fontSize:"14px",fontWeight:400,maxWidth:"276px",lineHeight:"16.37px",overflow:"hidden",textOverflow:"ellipsis"},iconBackground:{display:"flex",justifyContent:"center",alignItems:"center",height:"40px",borderRadius:"25px",width:"40px",minHeight:"40px",minWidth:"40px",background:"#F2F5F9",marginRight:"15px"},processingRow:{padding:"20px 0",display:"flex",flexDirection:"row",height:"auto",borderBottom:"0.5px solid #D5DFE9",cursor:"pointer"},processingColumn:{display:"flex",flexDirection:"column",maxHeight:"auto"},engineIcons:{verticalAlign:"middle"},badge:{backgroundColor:"#D43060",left:e.spacing(1),top:e.spacing(1)},badgeContent:{fontSize:"11px",fontWeight:600,lineHeight:0}})),selectIsFullScreen=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$1])?void 0:e.isFullScreen},AICategories=({categories:e,closeSnackbar:a,enableNonSingleEngineJobEngines:o,aobSelectedEngines:r,marginStart:l,marginTop:c,parentPanel:d})=>{const s=useStyles$4()["classes"],u=useDispatch(),n=useSelector(selectSelectedEnginesObj),p=useSelector(selectors.uiState.selectIsFullScreen),g=useSelector(selectors.uiState.selectIsMdpFullScreen),x=useSelector(selectIsFullScreen);return jsxRuntime.exports.jsx("div",Object.assign({className:s.processingContainer},{children:e.map(i=>{var e,t=i.name.replace(/[^a-zA-Z]/g,"");return jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"engine-category-row",className:s.processingRow,onClick:()=>{{var t=i,t=(a(),{name:"DATA_CENTER_ENGINE_SELECTION",config:{name:"DATA CENTER ENGINE SELECTION",capability:t,enableNonSingleEngineJobEngines:o,aobSelectedEngines:r}}),s=x||p||g;let e=1001;switch(d){case"DATA_CENTER_MDP_IFRAME_PANEL":e=s?1008:1002;break;case"PROCESSING_CENTER_DAG_BUILDER":e=s?1011:1002;break;default:e=s?1007:1002}var n={type:"APP_BAR_PANEL_TEMPLATE",marginTop:(s?0:55)+(c||0),marginStart:(s?380:460)+(l||0),size:"small",zIndex:e,siblingPanelId:"DATA_CENTER_PROCESS_AI",parentPanelId:"DATA_CENTER_PROCESS_AI",dimmed:0,dimmedStatus:"dimParent"};u(mountPanel({panelId:"DATA_CENTER_ENGINE_SELECTION",microFrontend:t,panelConfig:n}))}}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:s.iconBackground},{children:jsxRuntime.exports.jsx(Badge,Object.assign({"data-testid":"engine-category-badge-"+t,badgeContent:null!=(e=n[i.id])&&e.length?jsxRuntime.exports.jsx(Typography,Object.assign({variant:"overline",className:s.badgeContent,"data-testid":"engine-category-badge-quantity"},{children:n[i.id].length})):0,color:"secondary",classes:{badge:s.badge},anchorOrigin:{vertical:"bottom",horizontal:"right"}},{children:jsxRuntime.exports.jsx(Icon,{"data-test":"engine-category-icon-"+t,className:s.engineIcons,component:EngineCategoryIcons[t],color:"secondary",fontSize:"small"})}))})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.processingColumn},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"engine-category-name-"+i.name,variant:"h6",color:"textPrimary",className:s.name},{children:i.name})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"engine-category-description-"+i.name,variant:"body2",color:"textSecondary",className:s.description},{children:i.description}))]}))]}),t)})}))},useStyles$3=makeStyles()(e=>({jobLaunchSnackbarContainer:{backgroundColor:e.palette.common.white,padding:"6px 16px",borderRadius:"4px",width:"440px",boxShadow:"rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px"},jobLaunchSnackbarTitle:{display:"flex",justifyContent:"space-between",padding:"10px 4px"},jobLaunchItemList:{maxHeight:"80vh",overflowY:"scroll",width:"102%"},jobLaunchItem:{transition:"all 0.5s ease-in-out",display:"flex",flexDirection:"row",padding:"6px 0px 5px 16px",borderRadius:"4px",marginBottom:"10px",marginTop:"5px"},jobLaunchItemMessage:{display:"flex",flexDirection:"column",width:"80%"},jobLaunchItemFeedback:{display:"flex",justifyContent:"center",alignItems:"center",width:"20%"},jobLaunchItemLoading:{color:"rgb(13, 60, 97)",backgroundColor:"rgb(232, 244, 253)"},jobLaunchItemSuccess:{backgroundColor:"rgb(237, 247, 237)",color:"rgb(30, 70, 32)"},jobLaunchItemFail:{backgroundColor:"rgb(253, 236, 234)",color:"rgb(97, 26, 21)"}})),JobLaunchItem=({name:e,status:t,onRetry:s,limitAnimation:n=!1})=>{const[i,a]=react.exports.useState(!0);react.exports.useEffect(()=>{setTimeout(()=>{a(!1)},500*Math.random()+700)});var o=useStyles$3()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(o.jobLaunchItem,{[o.jobLaunchItemLoading]:"pending"===t||i,[o.jobLaunchItemSuccess]:"success"===t,[o.jobLaunchItemFail]:"failure"===t})},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:o.jobLaunchItemMessage},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({style:{width:"90%"},variant:"h4",noWrap:!0},{children:e})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:"pending"===t||i?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.dSA4RS",defaultMessage:"Launching AI Processing...",description:"Job Launch item description loading job"}):"success"===t?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.b+iNpN",defaultMessage:"This processing job started successfully.",description:"Job Launch item description success"}):"failure"===t?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.50UABM",defaultMessage:"Unable to start processing job.",description:"Job Launch item description failed"}):void 0}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.jobLaunchItemFeedback},{children:"pending"===t||i?jsxRuntime.exports.jsx(CircularProgress,{size:20,disableShrink:n}):"success"===t?jsxRuntime.exports.jsx(default_1$1,{style:{color:"#4caf50"}}):"failure"===t?jsxRuntime.exports.jsx(Button,Object.assign({color:"inherit",onClick:s},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.BnINsu",defaultMessage:"RETRY",description:"Button label to retry the failed job"})})):void 0}))]}))},JobLaunchSnackbar=({open:e,onClose:s,jobLaunchItems:t,onRetry:n,hidePanel:i})=>{var a=(e,t)=>{"clickaway"!==t&&s()},o=useStyles$3()["classes"];const r=10<t.length;var l=()=>{for(const e of t)if("failure"===e.status||"pending"===e.status)return null;return 2500};return jsxRuntime.exports.jsx(Snackbar,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:e,autoHideDuration:l(),onClose:a,TransitionProps:{onExited:l()&&i}},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:"aiware-el "+o.jobLaunchSnackbarContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:o.jobLaunchSnackbarTitle},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.HJnKOv",defaultMessage:"AI Processing",description:"AI Processing snackbar title"})})),jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"close",color:"inherit",size:"small",onClick:a},{children:jsxRuntime.exports.jsx(default_1$3,{fontSize:"inherit"})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.jobLaunchItemList},{children:t.map((e,t)=>jsxRuntime.exports.jsx(JobLaunchItem,{name:e.name,status:e.status,onRetry:()=>n(e),limitAnimation:r},t))}))]}))}))},useStyles$2=makeStyles()(e=>({root:{display:"flex",justifyContent:"end",marginTop:"25px"},cancelButton:{marginRight:e.spacing(2),textTransform:"none",color:e.palette.text.primary},actionButton:{textTransform:"none"}})),ActionsFooter=({title:e,actionButton:t,cancelButton:s,confirmationOnCancel:n=!1,children:i=null})=>{const[a,o]=react.exports.useState(!1);var r=useStyles$2()["classes"];const l=e=>{o(!1),e&&e()};return jsxRuntime.exports.jsxs("div",Object.assign({className:r.root,"data-test":"data-center-action-footer"},{children:[e,i,jsxRuntime.exports.jsx(ConfirmationModal,{showConfirmationModal:a,closeConfirmationModal:l,onClosePanel:()=>l(s.action)}),jsxRuntime.exports.jsx(Button,Object.assign({onClick:()=>{n&&!t.disabled?o(!0):s.action()},disabled:s.disabled,"data-test":s.dataTest,className:r.cancelButton},{children:s.label})),jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",color:"primary",onClick:t.action,disabled:t.disabled,"data-test":t.dataTest,className:r.actionButton},{children:t.label}))]}))},ProcessAIManager=t=>{var e,s=useStyles$5()["classes"];const{apiRoot:n,graphQLEndpoint:i,token:a}=useSelector(selectApiConfigs),o=useSelector(selectJobStatus),[r,l]=react.exports.useState(!1);var c=useSelector(selectCapabilitiesStatus);const d=useSelector(selectSelectedEngines),u=useSelector(selectAllEngines),{onSaveEngineSelection:p,enableNonSingleEngineJobEngines:g,aobSelectedEngines:x}=t;var m=useSelector(selectCapabilities);const j=useDispatch(),b=()=>{j(actions.capabilitiesState.capabilitiesFetchStart(t.tdoId))};if(react.exports.useEffect(()=>{j(actions.uiState.setIsFullScreen(Boolean(t.isFullScreen)))},[]),react.exports.useEffect(()=>{["pending","success","failure"].includes(o)&&l(!0)},[o]),react.exports.useEffect(()=>{n&&i&&a&&b()},[n,i,a,j,t.tdoId]),!(n&&i&&a&&t.panelRendered))return null;var h={label:null!=(h=t.submitButtonLabel)?h:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.J0sEvH",defaultMessage:"Process with AI",description:"action button label"}),action:()=>{var e;p?(e=d.map(t=>{var e=u.find(e=>e.id===t.id);return Object.assign(Object.assign({},e),t)}),p(e),null!=t&&t.hidePanel()):j(actions.job.launchJobStart({tdoId:t.tdoId,selectedEngines:d}))},disabled:!d.length,dataTest:"data-center-process-ai-action-btn"},f={label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.uT5L4h",defaultMessage:"Cancel",description:"cancel button label"}),action:()=>null==t?void 0:t.hidePanel(),disabled:!1,dataTest:"data-center-process-ai-cancel-btn"};return jsxRuntime.exports.jsxs("div",Object.assign({className:s.aiProcessingWrapper},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:s.processAiHeader},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",color:"secondary","data-test":"data-center-process-ai-panel-header-title"},{children:null!=(e=t.panelTitle)?e:SHARED_TEXT.processAiHeaderTitle()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:null==t?void 0:t.hidePanel,"aria-labelledby":"data-center-process-ai-close-panel","data-test":"data-center-process-ai-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Close,{})}))}))]})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-process-ai-supported-files-title"},{children:null!=(e=t.panelDescription)?e:SHARED_TEXT.processAiHeaderDescription()})),"failure"===c&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("br",{}),jsxRuntime.exports.jsx(Box,Object.assign({mt:4},{children:jsxRuntime.exports.jsxs(Alert,Object.assign({variant:"outlined",severity:"error"},{children:[jsxRuntime.exports.jsx("span",Object.assign({"data-test":"data-center-process-ai-failed-text"},{children:SHARED_TEXT.processAiFailedStatus()})),jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"data-center-process-ai-failed-retry-button",onClick:b},{children:SHARED_TEXT.processAiRetryBtn()}))})]}))}))]}),"idle"===c&&!(null!=m&&m.length)&&jsxRuntime.exports.jsx(Box,Object.assign({mt:4},{children:jsxRuntime.exports.jsx(Alert,Object.assign({variant:"outlined",severity:"info"},{children:SHARED_TEXT.processAiNoEngineCapability()}))})),"pending"===c&&jsxRuntime.exports.jsx("div",Object.assign({className:s.loaderIcon},{children:jsxRuntime.exports.jsx(CircularProgress,{})})),"idle"===c&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(AICategories,{categories:m,closeSnackbar:()=>l(!1),enableNonSingleEngineJobEngines:!!g,aobSelectedEngines:x,marginStart:null==t?void 0:t.marginStart,marginTop:null==t?void 0:t.marginTop,parentPanel:null==t?void 0:t.parentPanelId}),jsxRuntime.exports.jsx(ActionsFooter,{confirmationOnCancel:!0,actionButton:h,cancelButton:f})]}),jsxRuntime.exports.jsx(Portal,{children:jsxRuntime.exports.jsx(JobLaunchSnackbar,{open:r,onClose:()=>l(!1),jobLaunchItems:d,onRetry:e=>{j(actions.job.launchJobStart({tdoId:t.tdoId,selectedEngines:[e]}))},hidePanel:null==t?void 0:t.hidePanel})})]}))};function __awaiter(e,o,r,l){return new(r=r||Promise)(function(s,t){function n(e){try{a(l.next(e))}catch(e){t(e)}}function i(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(n,i)}a((l=l.apply(e,o||[])).next())})}function fetchEngineCapabilities(s,n,i){return __awaiter(this,void 0,void 0,function*(){var e="fetchEngineCapabilities",t="engineCategories";return(yield baseGraphQLApiWithError(Object.assign({query:`
1
+ import{i as createSvgIcon,k as interopRequireDefault,j as jsxRuntime,m as makeStyles,a0 as createSlice,cm as combineReducers,cn as createSelector,a6 as rootApiSelector,a8 as graphEndpointSelector,a7 as sessionTokenSelector,cp as AIWareThemeProvider,a3 as DynamicModuleLoader,eV as getLibraryModule,A as AIWareIntlProvider,bO as AIWareCacheProvider,o as useSelector,r as react,n as useDispatch,F as FormattedMessage,T as Typography,aq as Tooltip,K as IconButton,cr as Close,B as Box,w as Alert,U as Button,aO as CircularProgress,ae as Portal,fl as img$y,cv as default_1$2,v as lodash,dM as Badge,bX as Icon,dJ as EngineCategoryIcons,b9 as Snackbar,ba as default_1$3,fM as ConfirmationModal,al as all,g5 as selectors$1,g6 as LibraryDropdown,c3 as FormHelperText$2,g7 as Remove,g8 as Save,cP as Add,cH as Delete,cF as Edit,at as Skeleton,cA as mountPanel,E as classNames,au as takeLatest$1,C as FormControl,ax as select,a4 as preferredLanguageSelector,bj as AIWareFormatMessage,aw as put,cb as showMessage,cc as MessageSeverity,az as call,dq as sdkEventManager,dr as SdkEvents,ds as SdkError,D as TextField,M as Select,Q as MenuItem,g9 as Input,dL as Chip,cN as baseGraphQLApiWithError}from"./js-core.esm.js";import{selectors}from"./js-core.esm37.js";import"./js-core.esm27.js";import"./js-core.esm38.js";import"./js-core.esm20.js";import"./js-core.esm33.js";import"./js-core.esm30.js";import"./js-core.esm35.js";import"./js-core.esm10.js";import"./js-core.esm32.js";import"./js-core.esm39.js";import"./js-core.esm43.js";import"./js-core.esm9.js";import"./js-core.esm44.js";import"./js-core.esm23.js";import"./js-core.esm5.js";import"./js-core.esm40.js";import"./js-core.esm11.js";import"./js-core.esm41.js";import"./js-core.esm42.js";var ProcessAIView,CheckCircle={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(CheckCircle,"__esModule",{value:!0}),CheckCircle.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),default_1$1=CheckCircle.default=_default$1,Info={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Info,"__esModule",{value:!0}),Info.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),default_1=Info.default=_default;const SHARED_TEXT={processAiHeaderTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.eA9TAY",defaultMessage:"AI PROCESSING",description:"Title of AI categories list"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),processAiHeaderDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.p3BcDi",defaultMessage:"Select from a list of AI capabilities to apply available AI processing to your selected files.",description:"Detailed text below the process AI header title"}),processAiEngineUnavailable:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.PwcA3J",defaultMessage:"This engine does not specify a default single job template.",description:"Detailed text if an engine is not available to use"}),processAiFailedStatus:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.UBu61T",defaultMessage:"An error happened while fetching the engine capabilities.",description:"Error message for process ai failures"}),processAiNoEngineCapability:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.IC5L+j",defaultMessage:"No available engine found for this file.",description:"Warning message when no engine found"}),processAiRetryBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.8U+Kek",defaultMessage:"Retry",description:"Retry button text"}),cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.6PdOcy",defaultMessage:"Cancel",description:"Cancel"}),processAiAddEngines:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.e5+f7H",defaultMessage:"Save Changes",description:"Add engines button text"}),engineSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.3Phobj",defaultMessage:"Engine Settings",description:"The label for the engine settings component"}),saveSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.UOkssC",defaultMessage:"Save Settings",description:"The label for the engine settings savings"}),engineSelected:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.Ki+AeV",defaultMessage:"Selected & Configured",description:"The label for the selected engine"}),removeEngine:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.eZW4Lt",defaultMessage:"Remove Engine",description:"The button to deselected a selected engine"}),editConfigurations:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.GSlIPA",defaultMessage:"Edit Configurations",description:"The button to edit the engine configurations"}),useThisEngine:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai-use-engine",defaultMessage:"Use this Engine",description:"The label for the use engine button when no engine has not been selected yet"})},useStyles$5=makeStyles()(e=>({aiProcessingWrapper:{padding:"8px 20px 20px 20px",display:"flex",flexDirection:"column",height:"100%",position:"absolute",top:"0",bottom:"0"},processAiHeader:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",marginBottom:10},loaderIcon:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:20}})),SLICE_NAME="dataCenterProcessAI",namespace$3=(!function(e){e.aiCapabilities="aiCapabilities",e.engineSelection="engineSelection",e.engineConfiguration="engineConfiguration"}(ProcessAIView=ProcessAIView||{}),"capabilitiesState"),initialState$3={status:"idle",capabilities:[],engines:{}},capabilitiesSlice=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$3,reducers:{capabilitiesFetchStart(e,t){e.status="pending"},capabilitiesFetchSucceed(e){e.status="idle"},capabilitiesFetchFailed(e){e.status="failure"},setCapabilities:(e,t)=>{e.capabilities=t.payload},setEngines:(e,t)=>{e.engines=t.payload}}}),actions$4=capabilitiesSlice.actions;var capabilities_state=capabilitiesSlice.reducer;const namespace$2="processAiConfig",initialState$2={status:"idle",selectedEngines:{}},configurationSlice=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$2,reducers:{setConfigurations(e,t){var{capabilityId:t,selectedEngines:s}=t.payload;e.selectedEngines[t]=s},updateSingleJobStatus(e,t){const{engineId:s,status:n}=t.payload;for(const a in e.selectedEngines){var i=e.selectedEngines[a].findIndex(e=>e.id===s);if(-1!==i){e.selectedEngines[a][i].status=n;break}}}}}),actions$3=configurationSlice.actions;var configuration_state=configurationSlice.reducer;const namespace$1="uiState",initialState$1={status:"idle",currentView:ProcessAIView.aiCapabilities,isFullScreen:!1},uiSlice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState$1,reducers:{setCurrentView:(e,t)=>{e.currentView=t.payload},setStatus:(e,t)=>{e.status=t.payload},setIsFullScreen:(e,t)=>{e.isFullScreen=t.payload}}}),actions$2=uiSlice.actions;var ui_state=uiSlice.reducer;const namespace="job",initialState={status:"idle"},jobSlice=createSlice({name:SLICE_NAME+"/"+namespace,initialState:initialState,reducers:{launchJobStart(e,t){e.status="pending"},launchJobSucceed(e){e.status="success"},launchJobFailed(e){e.status="failure"}}}),actions$1=jobSlice.actions;var EngineFieldType,job_state=jobSlice.reducer;const actions={[namespace$1]:actions$2,[namespace$3]:actions$4,[namespace$2]:actions$3,[namespace]:actions$1},rootReducer=combineReducers({[namespace$1]:ui_state,[namespace$3]:capabilities_state,[namespace$2]:configuration_state,[namespace]:job_state}),selectCapabilitiesStatus=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.status},selectCapabilities=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.capabilities},selectEnginesByCapabilityId=t=>e=>{return null==(e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.engines)?void 0:e[t]},selectAllEngines=e=>{e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.engines;return e&&0<Object.values(e).length?Object.values(e).reduce((e,t)=>lodash.exports.concat(e,t)):[]},selectSelectedEnginesByCapabilityId=t=>e=>{return null==(e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines)?void 0:e[t]},selectSelectedEngines=e=>{e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines;return Object.values(e).reduce((e,t)=>e.concat(t),[])},selectSelectedEnginesObj=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines},selectJobStatus=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace])?void 0:e.status},selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,s)=>({apiRoot:e,graphQLEndpoint:t,token:s})),useStyles$4=makeStyles()(e=>({processingContainer:{marginTop:25,flex:1,overflowY:"scroll"},instructions:{marginBottom:"30px"},name:{fontSize:"14px",fontWeight:400,lineHeight:"19.1px"},description:{fontSize:"14px",fontWeight:400,maxWidth:"276px",lineHeight:"16.37px",overflow:"hidden",textOverflow:"ellipsis"},iconBackground:{display:"flex",justifyContent:"center",alignItems:"center",height:"40px",borderRadius:"25px",width:"40px",minHeight:"40px",minWidth:"40px",background:"#F2F5F9",marginRight:"15px"},processingRow:{padding:"20px 0",display:"flex",flexDirection:"row",height:"auto",borderBottom:"0.5px solid #D5DFE9",cursor:"pointer"},processingColumn:{display:"flex",flexDirection:"column",maxHeight:"auto"},engineIcons:{verticalAlign:"middle"},badge:{backgroundColor:"#D43060",left:e.spacing(1),top:e.spacing(1)},badgeContent:{fontSize:"11px",fontWeight:600,lineHeight:0}})),selectIsFullScreen=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$1])?void 0:e.isFullScreen},AICategories=({categories:e,closeSnackbar:a,enableNonSingleEngineJobEngines:o,aobSelectedEngines:r,marginStart:l,marginTop:c,parentPanel:d})=>{const s=useStyles$4()["classes"],u=useDispatch(),n=useSelector(selectSelectedEnginesObj),p=useSelector(selectors.uiState.selectIsFullScreen),g=useSelector(selectors.uiState.selectIsMdpFullScreen),x=useSelector(selectIsFullScreen);return jsxRuntime.exports.jsx("div",Object.assign({className:s.processingContainer},{children:e.map(i=>{var e,t=i.name.replace(/[^a-zA-Z]/g,"");return jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"engine-category-row",className:s.processingRow,onClick:()=>{{var t=i,t=(a(),{name:"DATA_CENTER_ENGINE_SELECTION",config:{name:"DATA CENTER ENGINE SELECTION",capability:t,enableNonSingleEngineJobEngines:o,aobSelectedEngines:r}}),s=x||p||g;let e=1001;switch(d){case"DATA_CENTER_MDP_IFRAME_PANEL":e=s?1008:1002;break;case"PROCESSING_CENTER_DAG_BUILDER":e=s?1011:1002;break;default:e=s?1007:1002}var n={type:"APP_BAR_PANEL_TEMPLATE",marginTop:(s?0:55)+(c||0),marginStart:(s?380:460)+(l||0),size:"small",zIndex:e,siblingPanelId:"DATA_CENTER_PROCESS_AI",parentPanelId:"DATA_CENTER_PROCESS_AI",dimmed:0,dimmedStatus:"dimParent"};u(mountPanel({panelId:"DATA_CENTER_ENGINE_SELECTION",microFrontend:t,panelConfig:n}))}}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:s.iconBackground},{children:jsxRuntime.exports.jsx(Badge,Object.assign({"data-testid":"engine-category-badge-"+t,badgeContent:null!=(e=n[i.id])&&e.length?jsxRuntime.exports.jsx(Typography,Object.assign({variant:"overline",className:s.badgeContent,"data-testid":"engine-category-badge-quantity"},{children:n[i.id].length})):0,color:"secondary",classes:{badge:s.badge},anchorOrigin:{vertical:"bottom",horizontal:"right"}},{children:jsxRuntime.exports.jsx(Icon,{"data-test":"engine-category-icon-"+t,className:s.engineIcons,component:EngineCategoryIcons[t],color:"secondary",fontSize:"small"})}))})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.processingColumn},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"engine-category-name-"+i.name,variant:"h6",color:"textPrimary",className:s.name},{children:i.name})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"engine-category-description-"+i.name,variant:"body2",color:"textSecondary",className:s.description},{children:i.description}))]}))]}),t)})}))},useStyles$3=makeStyles()(e=>({jobLaunchSnackbarContainer:{backgroundColor:e.palette.common.white,padding:"6px 16px",borderRadius:"4px",width:"440px",boxShadow:"rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px"},jobLaunchSnackbarTitle:{display:"flex",justifyContent:"space-between",padding:"10px 4px"},jobLaunchItemList:{maxHeight:"80vh",overflowY:"scroll",width:"102%"},jobLaunchItem:{transition:"all 0.5s ease-in-out",display:"flex",flexDirection:"row",padding:"6px 0px 5px 16px",borderRadius:"4px",marginBottom:"10px",marginTop:"5px"},jobLaunchItemMessage:{display:"flex",flexDirection:"column",width:"80%"},jobLaunchItemFeedback:{display:"flex",justifyContent:"center",alignItems:"center",width:"20%"},jobLaunchItemLoading:{color:"rgb(13, 60, 97)",backgroundColor:"rgb(232, 244, 253)"},jobLaunchItemSuccess:{backgroundColor:"rgb(237, 247, 237)",color:"rgb(30, 70, 32)"},jobLaunchItemFail:{backgroundColor:"rgb(253, 236, 234)",color:"rgb(97, 26, 21)"}})),JobLaunchItem=({name:e,status:t,onRetry:s,limitAnimation:n=!1})=>{const[i,a]=react.exports.useState(!0);react.exports.useEffect(()=>{setTimeout(()=>{a(!1)},500*Math.random()+700)});var o=useStyles$3()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(o.jobLaunchItem,{[o.jobLaunchItemLoading]:"pending"===t||i,[o.jobLaunchItemSuccess]:"success"===t,[o.jobLaunchItemFail]:"failure"===t})},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:o.jobLaunchItemMessage},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({style:{width:"90%"},variant:"h4",noWrap:!0},{children:e})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:"pending"===t||i?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.dSA4RS",defaultMessage:"Launching AI Processing...",description:"Job Launch item description loading job"}):"success"===t?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.b+iNpN",defaultMessage:"This processing job started successfully.",description:"Job Launch item description success"}):"failure"===t?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.50UABM",defaultMessage:"Unable to start processing job.",description:"Job Launch item description failed"}):void 0}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.jobLaunchItemFeedback},{children:"pending"===t||i?jsxRuntime.exports.jsx(CircularProgress,{size:20,disableShrink:n}):"success"===t?jsxRuntime.exports.jsx(default_1$1,{style:{color:"#4caf50"}}):"failure"===t?jsxRuntime.exports.jsx(Button,Object.assign({color:"inherit",onClick:s},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.BnINsu",defaultMessage:"RETRY",description:"Button label to retry the failed job"})})):void 0}))]}))},JobLaunchSnackbar=({open:e,onClose:s,jobLaunchItems:t,onRetry:n,hidePanel:i})=>{var a=(e,t)=>{"clickaway"!==t&&s()},o=useStyles$3()["classes"];const r=10<t.length;var l=()=>{for(const e of t)if("failure"===e.status||"pending"===e.status)return null;return 2500};return jsxRuntime.exports.jsx(Snackbar,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:e,autoHideDuration:l(),onClose:a,TransitionProps:{onExited:l()&&i}},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:"aiware-el "+o.jobLaunchSnackbarContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:o.jobLaunchSnackbarTitle},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.HJnKOv",defaultMessage:"AI Processing",description:"AI Processing snackbar title"})})),jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"close",color:"inherit",size:"small",onClick:a},{children:jsxRuntime.exports.jsx(default_1$3,{fontSize:"inherit"})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.jobLaunchItemList},{children:t.map((e,t)=>jsxRuntime.exports.jsx(JobLaunchItem,{name:e.name,status:e.status,onRetry:()=>n(e),limitAnimation:r},t))}))]}))}))},useStyles$2=makeStyles()(e=>({root:{display:"flex",justifyContent:"end",marginTop:"25px"},cancelButton:{marginRight:e.spacing(2),textTransform:"none",color:e.palette.text.primary},actionButton:{textTransform:"none"}})),ActionsFooter=({title:e,actionButton:t,cancelButton:s,confirmationOnCancel:n=!1,children:i=null})=>{const[a,o]=react.exports.useState(!1);var r=useStyles$2()["classes"];const l=e=>{o(!1),e&&e()};return jsxRuntime.exports.jsxs("div",Object.assign({className:r.root,"data-test":"data-center-action-footer"},{children:[e,i,jsxRuntime.exports.jsx(ConfirmationModal,{showConfirmationModal:a,closeConfirmationModal:l,onClosePanel:()=>l(s.action)}),jsxRuntime.exports.jsx(Button,Object.assign({onClick:()=>{n&&!t.disabled?o(!0):s.action()},disabled:s.disabled,"data-test":s.dataTest,className:r.cancelButton},{children:s.label})),jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",color:"primary",onClick:t.action,disabled:t.disabled,"data-test":t.dataTest,className:r.actionButton},{children:t.label}))]}))},ProcessAIManager=t=>{var e,s=useStyles$5()["classes"];const{apiRoot:n,graphQLEndpoint:i,token:a}=useSelector(selectApiConfigs),o=useSelector(selectJobStatus),[r,l]=react.exports.useState(!1);var c=useSelector(selectCapabilitiesStatus);const d=useSelector(selectSelectedEngines),u=useSelector(selectAllEngines),{onSaveEngineSelection:p,enableNonSingleEngineJobEngines:g,aobSelectedEngines:x}=t;var m=useSelector(selectCapabilities);const j=useDispatch(),b=()=>{j(actions.capabilitiesState.capabilitiesFetchStart(t.tdoId))};if(react.exports.useEffect(()=>{j(actions.uiState.setIsFullScreen(Boolean(t.isFullScreen)))},[]),react.exports.useEffect(()=>{["pending","success","failure"].includes(o)&&l(!0)},[o]),react.exports.useEffect(()=>{n&&i&&a&&b()},[n,i,a,j,t.tdoId]),!(n&&i&&a&&t.panelRendered))return null;var h={label:null!=(h=t.submitButtonLabel)?h:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.J0sEvH",defaultMessage:"Process with AI",description:"action button label"}),action:()=>{var e;p?(e=d.map(t=>{var e=u.find(e=>e.id===t.id);return Object.assign(Object.assign({},e),t)}),p(e),null!=t&&t.hidePanel()):j(actions.job.launchJobStart({tdoId:t.tdoId,selectedEngines:d}))},disabled:!d.length,dataTest:"data-center-process-ai-action-btn"},f={label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.uT5L4h",defaultMessage:"Cancel",description:"cancel button label"}),action:()=>null==t?void 0:t.hidePanel(),disabled:!1,dataTest:"data-center-process-ai-cancel-btn"};return jsxRuntime.exports.jsxs("div",Object.assign({className:s.aiProcessingWrapper},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:s.processAiHeader},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",color:"secondary","data-test":"data-center-process-ai-panel-header-title"},{children:null!=(e=t.panelTitle)?e:SHARED_TEXT.processAiHeaderTitle()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:null==t?void 0:t.hidePanel,"aria-labelledby":"data-center-process-ai-close-panel","data-test":"data-center-process-ai-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Close,{})}))}))]})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-process-ai-supported-files-title"},{children:null!=(e=t.panelDescription)?e:SHARED_TEXT.processAiHeaderDescription()})),"failure"===c&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("br",{}),jsxRuntime.exports.jsx(Box,Object.assign({mt:4},{children:jsxRuntime.exports.jsxs(Alert,Object.assign({variant:"outlined",severity:"error"},{children:[jsxRuntime.exports.jsx("span",Object.assign({"data-test":"data-center-process-ai-failed-text"},{children:SHARED_TEXT.processAiFailedStatus()})),jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"data-center-process-ai-failed-retry-button",onClick:b},{children:SHARED_TEXT.processAiRetryBtn()}))})]}))}))]}),"idle"===c&&!(null!=m&&m.length)&&jsxRuntime.exports.jsx(Box,Object.assign({mt:4},{children:jsxRuntime.exports.jsx(Alert,Object.assign({variant:"outlined",severity:"info"},{children:SHARED_TEXT.processAiNoEngineCapability()}))})),"pending"===c&&jsxRuntime.exports.jsx("div",Object.assign({className:s.loaderIcon},{children:jsxRuntime.exports.jsx(CircularProgress,{})})),"idle"===c&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(AICategories,{categories:m,closeSnackbar:()=>l(!1),enableNonSingleEngineJobEngines:!!g,aobSelectedEngines:x,marginStart:null==t?void 0:t.marginStart,marginTop:null==t?void 0:t.marginTop,parentPanel:null==t?void 0:t.parentPanelId}),jsxRuntime.exports.jsx(ActionsFooter,{confirmationOnCancel:!0,actionButton:h,cancelButton:f})]}),jsxRuntime.exports.jsx(Portal,{children:jsxRuntime.exports.jsx(JobLaunchSnackbar,{open:r,onClose:()=>l(!1),jobLaunchItems:d,onRetry:e=>{j(actions.job.launchJobStart({tdoId:t.tdoId,selectedEngines:[e]}))},hidePanel:null==t?void 0:t.hidePanel})})]}))};function __awaiter(e,o,r,l){return new(r=r||Promise)(function(s,t){function n(e){try{a(l.next(e))}catch(e){t(e)}}function i(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(n,i)}a((l=l.apply(e,o||[])).next())})}function fetchEngineCapabilities(s,n,i){return __awaiter(this,void 0,void 0,function*(){var e="fetchEngineCapabilities",t="engineCategories";return(yield baseGraphQLApiWithError(Object.assign({query:`
2
2
  query ${e}($limit: Int${n?", $format: String!":""}) {
3
3
  ${t}(limit: $limit) {
4
4
  count
Binary file
package/js-core.esm55.js CHANGED
@@ -1,4 +1,4 @@
1
- import{a0 as createSlice,v as lodash,cm as combineReducers,cn as createSelector,a6 as rootApiSelector,a8 as graphEndpointSelector,a7 as sessionTokenSelector,co as fork,m as makeStyles,n as useDispatch,r as react,cL as validate,j as jsxRuntime,cp as AIWareThemeProvider,a3 as DynamicModuleLoader,A as AIWareIntlProvider,bO as AIWareCacheProvider,au as takeLatest$1,cA as mountPanel,o as useSelector,E as classNames,T as Typography,K as IconButton,cD as MoreVert,aq as Tooltip,c9 as Hide,cE as Menu,Q as MenuItem,ai as ListItemIcon,cF as Edit,V as Divider,cH as Delete,cz as hidePanel,G as Grid,c as Paper,F as FormattedMessage,g9 as Input,D as TextField,ba as default_1,ax as select,a4 as preferredLanguageSelector,aw as put,az as call,cb as showMessage,cc as MessageSeverity,cy as delay,al as all,bj as AIWareFormatMessage,aS as TableContainer,aT as Table,aY as TableBody,M as Select,cN as baseGraphQLApiWithError,aU as TableHead,aV as TableRow,aW as TableCell,aX as TableSortLabel,at as Skeleton,cK as img$1A,U as Button,cP as Add,cU as Filter,aQ as Dialog,b6 as DialogTitle,b7 as DialogContent,cB as DialogContentText,b8 as DialogActions,cJ as useBackupImg}from"./js-core.esm.js";import{s as statusPill}from"./js-core.esm20.js";import{E as EntityTags}from"./js-core.esm21.js";import{C as Container}from"./js-core.esm6.js";import{A as Autocomplete}from"./js-core.esm23.js";import{P as Pagination}from"./js-core.esm25.js";import"./js-core.esm33.js";import"./js-core.esm30.js";import"./js-core.esm35.js";import"./js-core.esm32.js";import"./js-core.esm14.js";import"./js-core.esm17.js";import"./js-core.esm12.js";import"./js-core.esm16.js";const SLICE_NAME="appCenterBrowse";var AppType,AppConfigType,ModuleRepo,ModuleStatus;!function(e){e.Apps="apps",e.QueryOptions="queryOptions",e.TotalAppsInQuery="totalAppsInQuery"}(AppType=AppType||{}),function(e){e.String="String",e.Boolean="Boolean",e.Date="Date",e.Integer="Integer",e.JSON="JSON",e.Float="Float"}(AppConfigType=AppConfigType||{}),function(e){e.NPM="npm",e.Github="github"}(ModuleRepo=ModuleRepo||{}),function(e){e.ACTIVE="active",e.DELETED="deleted"}(ModuleStatus=ModuleStatus||{});const initialAppDetails={appId:null},namespace$3="uiState",initialState$2={status:"idle",appDetails:initialAppDetails},slice$2=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$2,reducers:{initApps(e){e.status="pending"},fetchingApps(e){e.status="pending"},fetchingDone(e){e.status="idle"},fetchingFailed(e){e.status="failure"},toggleAppDetails(e,{payload:t}){t?e.appDetails.appId=t:delete e.appDetails.appId}}}),actions$3=slice$2.actions;var uiState=slice$2.reducer;const namespace$2="apps",initialState$1={apps:{},queryOptions:{limit:10,page:1,orderBy:[]},totalAppsInQuery:0},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{appsFetchSucceeded(e,t){var s=null==(s=null==(s=t.payload)?void 0:s.results)?void 0:s.records,s=lodash.exports.keyBy(s,"id");e[AppType.Apps]=s,t.payload.totalResults&&(e[AppType.TotalAppsInQuery]=null==(e=null==(s=t.payload)?void 0:s.totalResults)?void 0:e.count)},mutateApplicationWorkflow(e,t){t=t.payload;e[AppType.Apps][t.id].status="updating"},mutateApplicationWorkflowSuccess(e,t){var{id:t,status:s,validStateActions:a}=t.payload;e[AppType.Apps][t].status=s,e[AppType.Apps][t].validStateActions=a},refreshAppStateSuccess(e,t){var s=t.payload["id"];e[AppType.Apps][s]=t.payload},deleteApp(e,t){t=t.payload.id;e[AppType.Apps][t].status="deleting"},deleteAppSuccess(e,t){t=t.payload.id;e[AppType.Apps][t].status="deleted"},deleteAppFailed(e,t){var s=t.payload["id"];e[AppType.Apps][s]=t.payload},setQueryOptions(e,t){e.queryOptions=t.payload}}}),actions$2=slice$1.actions;var appsState=slice$1.reducer;const namespace$1="filterState",initialState={filter:{name:"",entityTags:[],status:"",created:{startDate:"",endDate:"",isSearch:!1},lastUpdated:{startDate:"",endDate:"",isSearch:!1}}},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{setFilters(e,{payload:t}){e.filter=t.filter}}}),actions$1=slice.actions;var filterState=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$3]:uiState,[namespace$2]:appsState,[namespace$1]:filterState});function __awaiter(e,r,o,l){return new(o=o||Promise)(function(s,t){function a(e){try{n(l.next(e))}catch(e){t(e)}}function i(e){try{n(l.throw(e))}catch(e){t(e)}}function n(e){var t;e.done?s(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,i)}n((l=l.apply(e,r||[])).next())})}const applicationFieldsFragment=`fragment applicationFields on Application {
1
+ import{a0 as createSlice,v as lodash,cm as combineReducers,cn as createSelector,a6 as rootApiSelector,a8 as graphEndpointSelector,a7 as sessionTokenSelector,co as fork,m as makeStyles,n as useDispatch,r as react,cL as validate,j as jsxRuntime,cp as AIWareThemeProvider,a3 as DynamicModuleLoader,A as AIWareIntlProvider,bO as AIWareCacheProvider,au as takeLatest$1,cA as mountPanel,o as useSelector,E as classNames,T as Typography,K as IconButton,cD as MoreVert,aq as Tooltip,c9 as Hide,cE as Menu,Q as MenuItem,ai as ListItemIcon,cF as Edit,V as Divider,cH as Delete,cz as hidePanel,G as Grid,c as Paper,F as FormattedMessage,g9 as Input,D as TextField,ba as default_1,ax as select,a4 as preferredLanguageSelector,aw as put,az as call,cb as showMessage,cc as MessageSeverity,cy as delay,al as all,bj as AIWareFormatMessage,aS as TableContainer,aT as Table,aY as TableBody,M as Select,cN as baseGraphQLApiWithError,aU as TableHead,aV as TableRow,aW as TableCell,aX as TableSortLabel,at as Skeleton,cK as img$1A,U as Button,cP as Add,cU as Filter,aQ as Dialog,b6 as DialogTitle,b7 as DialogContent,cB as DialogContentText,b8 as DialogActions,cJ as useBackupImg}from"./js-core.esm.js";import{s as statusPill}from"./js-core.esm20.js";import{E as EntityTags}from"./js-core.esm21.js";import{C as Container}from"./js-core.esm6.js";import{A as Autocomplete}from"./js-core.esm23.js";import{P as Pagination}from"./js-core.esm25.js";import"./js-core.esm33.js";import"./js-core.esm30.js";import"./js-core.esm35.js";import"./js-core.esm10.js";import"./js-core.esm32.js";import"./js-core.esm14.js";import"./js-core.esm17.js";import"./js-core.esm12.js";import"./js-core.esm16.js";const SLICE_NAME="appCenterBrowse";var AppType,AppConfigType,ModuleRepo,ModuleStatus;!function(e){e.Apps="apps",e.QueryOptions="queryOptions",e.TotalAppsInQuery="totalAppsInQuery"}(AppType=AppType||{}),function(e){e.String="String",e.Boolean="Boolean",e.Date="Date",e.Integer="Integer",e.JSON="JSON",e.Float="Float"}(AppConfigType=AppConfigType||{}),function(e){e.NPM="npm",e.Github="github"}(ModuleRepo=ModuleRepo||{}),function(e){e.ACTIVE="active",e.DELETED="deleted"}(ModuleStatus=ModuleStatus||{});const initialAppDetails={appId:null},namespace$3="uiState",initialState$2={status:"idle",appDetails:initialAppDetails},slice$2=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$2,reducers:{initApps(e){e.status="pending"},fetchingApps(e){e.status="pending"},fetchingDone(e){e.status="idle"},fetchingFailed(e){e.status="failure"},toggleAppDetails(e,{payload:t}){t?e.appDetails.appId=t:delete e.appDetails.appId}}}),actions$3=slice$2.actions;var uiState=slice$2.reducer;const namespace$2="apps",initialState$1={apps:{},queryOptions:{limit:10,page:1,orderBy:[]},totalAppsInQuery:0},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{appsFetchSucceeded(e,t){var s=null==(s=null==(s=t.payload)?void 0:s.results)?void 0:s.records,s=lodash.exports.keyBy(s,"id");e[AppType.Apps]=s,t.payload.totalResults&&(e[AppType.TotalAppsInQuery]=null==(e=null==(s=t.payload)?void 0:s.totalResults)?void 0:e.count)},mutateApplicationWorkflow(e,t){t=t.payload;e[AppType.Apps][t.id].status="updating"},mutateApplicationWorkflowSuccess(e,t){var{id:t,status:s,validStateActions:a}=t.payload;e[AppType.Apps][t].status=s,e[AppType.Apps][t].validStateActions=a},refreshAppStateSuccess(e,t){var s=t.payload["id"];e[AppType.Apps][s]=t.payload},deleteApp(e,t){t=t.payload.id;e[AppType.Apps][t].status="deleting"},deleteAppSuccess(e,t){t=t.payload.id;e[AppType.Apps][t].status="deleted"},deleteAppFailed(e,t){var s=t.payload["id"];e[AppType.Apps][s]=t.payload},setQueryOptions(e,t){e.queryOptions=t.payload}}}),actions$2=slice$1.actions;var appsState=slice$1.reducer;const namespace$1="filterState",initialState={filter:{name:"",entityTags:[],status:"",created:{startDate:"",endDate:"",isSearch:!1},lastUpdated:{startDate:"",endDate:"",isSearch:!1}}},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{setFilters(e,{payload:t}){e.filter=t.filter}}}),actions$1=slice.actions;var filterState=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$3]:uiState,[namespace$2]:appsState,[namespace$1]:filterState});function __awaiter(e,r,o,l){return new(o=o||Promise)(function(s,t){function a(e){try{n(l.next(e))}catch(e){t(e)}}function i(e){try{n(l.throw(e))}catch(e){t(e)}}function n(e){var t;e.done?s(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,i)}n((l=l.apply(e,r||[])).next())})}const applicationFieldsFragment=`fragment applicationFields on Application {
2
2
  id
3
3
  name
4
4
  description
Binary file
package/js-core.esm57.js CHANGED
@@ -1,4 +1,4 @@
1
- import{a0 as createSlice,cm as combineReducers,cn as createSelector,a6 as rootApiSelector,a8 as graphEndpointSelector,a7 as sessionTokenSelector,m as makeStyles,o as useSelector,r as react,j as jsxRuntime,C as FormControl,c3 as FormHelperText$2,aF as FormControlLabel,aG as Checkbox,n as useDispatch,bX as Icon,cG as Upload,bO as AIWareCacheProvider,cp as AIWareThemeProvider,a3 as DynamicModuleLoader,A as AIWareIntlProvider,al as all,F as FormattedMessage,D as TextField,dK as selectApiConfigs$1,I as InputLabel,M as Select,Q as MenuItem,v as lodash,eS as selectIsOLPEnabled,cC as userSelector,cz as hidePanel,B as Box,aO as CircularProgress,fk as img$w,T as Typography,U as Button,V as Divider,be as Tabs,bf as Tab,f1 as Popover,au as takeLatest$1,aq as Tooltip,K as IconButton,g4 as AddUser,cD as MoreVert,cr as Close,c9 as Hide,cE as Menu,cH as Delete,fd as Download,L as LoadingButton,fo as CheckCircle,cb as showMessage,cc as MessageSeverity,ax as select,aw as put,a4 as preferredLanguageSelector,gc as Modal,bj as AIWareFormatMessage,cN as baseGraphQLApiWithError}from"./js-core.esm.js";import{f as find_1}from"./js-core.esm14.js";import{actions as actions$3}from"./js-core.esm37.js";import{g as getProcessingCenterContentTemplatesModule,s as selectContentTemplatesToSave,C as ContentTemplates}from"./js-core.esm58.js";import{d as default_1,S as Stepper,a as Step,b as StepLabel}from"./js-core.esm33.js";import{C as ContentCopy}from"./js-core.esm42.js";import{B as Box$1}from"./js-core.esm31.js";import"./js-core.esm17.js";import"./js-core.esm27.js";import"./js-core.esm38.js";import"./js-core.esm20.js";import"./js-core.esm30.js";import"./js-core.esm35.js";import"./js-core.esm32.js";import"./js-core.esm39.js";import"./js-core.esm43.js";import"./js-core.esm9.js";import"./js-core.esm44.js";import"./js-core.esm23.js";import"./js-core.esm5.js";import"./js-core.esm40.js";import"./js-core.esm10.js";import"./js-core.esm11.js";import"./js-core.esm41.js";import"./js-core.esm59.js";import"./js-core.esm28.js";import"./js-core.esm34.js";import"./js-core.esm29.js";import"./js-core.esm24.js";var match,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,ESourcePermission,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$q=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$l=function(e){try{return!!e()}catch(e){return!0}},fails$k=fails$l,descriptors=!fails$l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$j=fails$l,functionBindNative=!fails$l(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$i=Function.prototype.call,functionCall=NATIVE_BIND$3?call$i.bind(call$i):function(){return call$i.apply(call$i,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$8=FunctionPrototype$2.bind,call$h=FunctionPrototype$2.call,uncurryThis$m=NATIVE_BIND$2&&bind$8.bind(call$h,call$h),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$m(e)}:function(e){return e&&function(){return call$h.apply(e,arguments)}},uncurryThis$l=functionUncurryThis,toString$8=uncurryThis$l({}.toString),stringSlice$5=uncurryThis$l("".slice),classofRaw$1=function(e){return stringSlice$5(toString$8(e),8,-1)},uncurryThis$k=functionUncurryThis,fails$i=fails$l,classof$7=classofRaw$1,$Object$4=Object,split$3=functionUncurryThis("".split),indexedObject=fails$i(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$7(e)?split$3(e,""):$Object$4(e)}:$Object$4,$TypeError$b=TypeError,requireObjectCoercible$4=function(e){if(null==e)throw $TypeError$b("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$3=requireObjectCoercible$4,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$3(e))},isCallable$m=function(e){return"function"==typeof e},isCallable$l=isCallable$m,isObject$a=function(e){return"object"==typeof e?null!==e:isCallable$l(e)},global$p=global$q,isCallable$k=isCallable$m,aFunction=function(e){return isCallable$k(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$p[e]):global$p[e]&&global$p[e][t]},uncurryThis$j=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$o=global$q,userAgent$3=engineUserAgent,process$3=global$o.process,Deno$1=global$o.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$h=fails$l,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$h(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$j=isCallable$m,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$j(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$i=isCallable$m,tryToString$3=tryToString$4,$TypeError$a=TypeError,aCallable$7=function(e){if(isCallable$i(e))return e;throw $TypeError$a(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$3=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$g=functionCall,isCallable$h=isCallable$m,isObject$9=isObject$a,$TypeError$9=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$h(r=e.toString)&&!isObject$9(o=call$g(r,e)))return o;if(isCallable$h(r=e.valueOf)&&!isObject$9(o=call$g(r,e)))return o;if("string"!==t&&isCallable$h(r=e.toString)&&!isObject$9(o=call$g(r,e)))return o;throw $TypeError$9("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$n=global$q,defineProperty$7=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$7(global$n,t,{value:r,configurable:!0,writable:!0})}catch(e){global$n[t]=r}return r},global$m=global$q,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$q[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$2=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$4),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$2(e))},uncurryThis$i=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$h=functionUncurryThis,id=0,postfix=Math.random(),toString$7=uncurryThis$h(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$7(++id+postfix,36)},global$l=global$q,shared$3=shared$4.exports,hasOwn$d=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$2=global$l.Symbol,symbolFor=Symbol$2&&Symbol$2.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$i=function(e){var t;return hasOwn$d(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL&&hasOwn$d(Symbol$2,e)?WellKnownSymbolsStore[e]=Symbol$2[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$f=functionCall,isObject$8=isObject$a,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$h=wellKnownSymbol$i,$TypeError$8=TypeError,TO_PRIMITIVE=wellKnownSymbol$i("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$8(e)||isSymbol$1(e))return e;var r=getMethod$2(e,TO_PRIMITIVE);if(r){if(r=call$f(r,e,t=void 0===t?"default":t),!isObject$8(r)||isSymbol$1(r))return r;throw $TypeError$8("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$k=global$q,isObject$7=isObject$a,document$3=global$q.document,EXISTS$1=isObject$7(document$3)&&isObject$7(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$d=descriptors,fails$g=fails$l,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$l(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$c=descriptors,call$e=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$c=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$c?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$c(e,t))return createPropertyDescriptor$4(!call$e(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$b=descriptors,fails$f=fails$l,v8PrototypeDefineBug=descriptors&&fails$l(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$6=isObject$a,$String$2=String,$TypeError$7=TypeError,anObject$e=function(e){if(isObject$6(e))return e;throw $TypeError$7($String$2(e)+" is not an object")},DESCRIPTORS$a=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey$1=toPropertyKey$3,$TypeError$6=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$9=(objectDefineProperty.f=DESCRIPTORS$a?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$d(e),t=toPropertyKey$1(t),anObject$d(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$d(e),t=toPropertyKey$1(t),anObject$d(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$6("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$5=DESCRIPTORS$9?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$8=descriptors,hasOwn$b=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$8&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$b(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$8||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$g=functionUncurryThis,isCallable$g=isCallable$m,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$g(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$j=global$q,isCallable$f=isCallable$m,inspectSource$3=inspectSource$4,WeakMap$1=global$q.WeakMap,nativeWeakMap=isCallable$f(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys$1=shared$2("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$i=global$q,uncurryThis$f=functionUncurryThis,isObject$5=isObject$a,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$a=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$i.TypeError,WeakMap=global$i.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$5(e)&&(e=get(e)).type===t)return e;throw TypeError$4("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$f(store.get),wmhas=uncurryThis$f(store.has),wmset=uncurryThis$f(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$a(e,STATE))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$a(e,STATE)?e[STATE]:{}},function(e){return hasOwn$a(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$e=fails$l,isCallable$e=isCallable$m,hasOwn$9=hasOwnProperty_1,DESCRIPTORS$7=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$5=internalState,enforceInternalState$1=InternalStateModule$5.enforce,getInternalState$3=InternalStateModule$5.get,defineProperty$6=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$7&&!fails$e(function(){return 8!==defineProperty$6(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$9(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$7?defineProperty$6(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$9(r,"arity")&&e.length!==r.arity&&defineProperty$6(e,"length",{value:r.arity});try{r&&hasOwn$9(r,"constructor")&&r.constructor?DESCRIPTORS$7&&defineProperty$6(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState$1(e);return hasOwn$9(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$d=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$e(this)&&getInternalState$3(this).source||inspectSource$2(this)},"toString"),isCallable$m),definePropertyModule$4=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$a=function(e,t,r,o){var n=(o=o||{}).enumerable,s=void 0!==o.name?o.name:t;if(isCallable$d(r)&&makeBuiltIn$1(r,s,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$3:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$3=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$2=toIntegerOrInfinity$3,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$2(e);return e<0?max$1(e+t,0):min$1(e,t)},toIntegerOrInfinity$1=toIntegerOrInfinity$3,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity$1(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$4=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$3=lengthOfArrayLike$4,createMethod$2=function(i){return function(e,t,r){var o,n=toIndexedObject$3(e),s=lengthOfArrayLike$3(n),a=toAbsoluteIndex$1(r,s);if(i&&t!=t){for(;a<s;)if((o=n[a++])!=o)return!0}else for(;a<s;a++)if((i||a in n)&&n[a]===t)return i||a||0;return!i&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$e=functionUncurryThis,hasOwn$8=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$3=uncurryThis$e([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,s=[];for(r in o)!hasOwn$8(hiddenKeys$2,r)&&hasOwn$8(o,r)&&push$3(s,r);for(;t.length>n;)!hasOwn$8(o,r=t[n++])||~indexOf$1(s,r)||push$3(s,r);return s},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$8),uncurryThis$d=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$c=anObject$e,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$c(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$7=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$3.f,s=getOwnPropertyDescriptorModule.f,a=0;a<o.length;a++){var i=o[a];hasOwn$7(e,i)||r&&hasOwn$7(r,i)||n(e,i,s(t,i))}},fails$d=fails$l,isCallable$c=isCallable$m,replacement=/#|\.prototype\./,isForced$3=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$c(t)?fails$d(t):!!t)},normalize=isForced$3.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$3.data={},NATIVE=isForced$3.NATIVE="N",POLYFILL=isForced$3.POLYFILL="P",isForced_1=isForced$3,global$h=global$q,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$9=defineBuiltIn$a,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$2=isForced_1,_export=function(e,t){var r,o,n,s=e.target,a=e.global,i=e.stat,l=a?global$h:i?global$h[s]||defineGlobalProperty(s,{}):(global$h[s]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor$2(l,r))&&n.value:l[r],!isForced$2(a?r:s+(i?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$3(o,"sham",!0),defineBuiltIn$9(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$6=descriptors,uncurryThis$c=functionUncurryThis,call$d=functionCall,fails$c=fails$l,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$5=Object.defineProperty,concat=uncurryThis$c([].concat),objectAssign=!$assign||fails$c(function(){var e,t,r,o;return!(!DESCRIPTORS$6||1===$assign({b:1},$assign(defineProperty$5({},"a",{enumerable:!0,get:function(){defineProperty$5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},o="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$2(e),o=arguments.length,n=1,s=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;n<o;)for(var i,l=IndexedObject(arguments[n++]),c=s?concat(objectKeys$1(l),s(l)):objectKeys$1(l),u=c.length,d=0;d<u;)i=c[d++],DESCRIPTORS$6&&!call$d(a,l,i)||(r[i]=l[i]);return r}:$assign,$$c=_export,assign$1=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1});const SLICE_NAME="processingCenter",namespace$2=(!function(e){e.Editor="editor",e.Viewer="viewer",e.Owner="owner"}(ESourcePermission=ESourcePermission||{}),"uiState"),initialState$1={status:"idle"},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{init(e){e.status="pending"},initDone(e){e.status="idle"},initFailed(e){e.status="failure"}}}),actions$2=slice$1.actions;var uiState=slice$1.reducer;const namespace$1="sourceConfiguration",initialState={status:"idle",updateStatus:"pending",createStatus:"pending",newAvatar:null,source:void 0,deleteSourceStatus:null,canBeDeletedStatus:"pending",canBeDeleted:null,sourceTypesConfig:{},selectListData:{},retryJobStatus:"pending"},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{retryJobStart(e,t){e.retryJobStatus="pending"},retryJobSuccess(e){e.retryJobStatus="success"},retryJobFailed(e){e.retryJobStatus="failure"},fetchSourceStart(e,t){e.status="pending"},fetchSourceSuccess(e,t){e.status="success",e.source=t.payload},fetchSourceFailed(e){e.status="failure"},deleteSourceStart(e,t){e.deleteSourceStatus="pending"},deleteSourceSuccess(e){e.deleteSourceStatus="success"},deleteSourceFailed(e){e.deleteSourceStatus="failure"},deleteSourceReset(e){e.deleteSourceStatus=null},checkCanBeDeletedStart(e,t){e.canBeDeletedStatus="pending"},checkCanBeDeletedSuccess(e,t){e.canBeDeletedStatus="idle",e.canBeDeleted=t.payload},checkCanBeDeletedFailed(e,t){e.canBeDeletedStatus="failure",e.canBeDeleted=!1},updateSourceStart(e,t){e.updateStatus="pending"},updateSourceSuccess(e,t){e.updateStatus="success",e.source=t.payload},updateSourceFailed(e){e.updateStatus="failure"},createSourceStart(e,t){e.createStatus="pending"},createSourceSuccess(e,t){e.createStatus="success",e.source=t.payload},createSourceFailed(e){e.createStatus="failure"},setNewAvatar(e,t){e.newAvatar=t.payload},getSourceTypes(e,t){console.log("getting source types")},setSourceTypes(e,t){var t=t.payload;const s={};null!=(t=null==t?void 0:t.records)&&t.forEach(e=>{var t;const r=(null==(t=null==(t=null==e?void 0:e.sourceSchema)?void 0:t.definition)?void 0:t.properties)||{},o=(null==(t=null==(t=null==e?void 0:e.sourceSchema)?void 0:t.definition)?void 0:t.required)||[],n={};Object.keys(r).forEach(e=>{var t=r[e];0<=o.indexOf(e)?t.isRequired=!0:t.isRequired=!1,n[e]=Object.assign(Object.assign({},t),{id:e,title:t.title,type:getFieldType(t),allowMultiple:"array"===t.type,isValid:!0}),n[e].query=getQuery(t)}),null!=(t=Object.keys(n))&&t.forEach(t=>{var e;n[t].hasOwnProperty("peerEnumKey")&&(e=find_1(n,e=>e.id===n[t].peerEnumKey))&&0<Object.keys(e).length&&(n[t].parentId=e.id,n[t].type="childSelect",n[t].options=[],n[t].parentValue=e.value)}),s[null==e?void 0:e.id]={id:e.id,name:e.name,organizationId:e.organizationId,fields:n}}),e.sourceTypesConfig=s},setSelectListData(e,t){e.selectListData[t.payload.key]=t.payload.data||{}}}}),actions$1=slice.actions;var configuration_slice=slice.reducer;function getFieldType(e){return e?"string"===e.type&&e.query||"array"===e.type?"select":e.type:""}function getQuery(e){var t;return e?e.query||(null!=(t=e.items)&&t.query?e.items.query:null):""}const namespace=SLICE_NAME,actions={[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$2]:uiState,[namespace$1]:configuration_slice}),selectUIStateStatus=e=>e[namespace].uiState.status;var wellKnownSymbol$g=wellKnownSymbol$i,TO_STRING_TAG$3=wellKnownSymbol$i("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$b=isCallable$m,classofRaw=classofRaw$1,wellKnownSymbol$f=wellKnownSymbol$i,TO_STRING_TAG$2=wellKnownSymbol$i("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$b(e.callee)?"Arguments":t},classof$5=classof$6,$String$1=String,toString$6=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$b=functionUncurryThis,requireObjectCoercible$1=requireObjectCoercible$4,toString$5=toString$6,whitespaces$1=whitespaces$2,replace$5=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$1=function(t){return function(e){e=toString$5(requireObjectCoercible$1(e));return 1&t&&(e=replace$5(e,ltrim,"")),e=2&t?replace$5(e,rtrim,""):e}},stringTrim={start:createMethod$1(1),end:createMethod$1(2),trim:createMethod$1(3)},global$g=global$q,fails$b=fails$l,uncurryThis$a=functionUncurryThis,toString$4=toString$6,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$g.parseInt,Symbol$1=global$g.Symbol,ITERATOR$8=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$5=uncurryThis$a(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$8&&!fails$b(function(){$parseInt$1(Object(ITERATOR$8))}),numberParseInt=FORCED?function(e,t){e=trim(toString$4(e));return $parseInt$1(e,t>>>0||(exec$5(hex,e)?16:10))}:$parseInt$1,$$b=_export,$parseInt=numberParseInt;_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});const selectFetchSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.status},selectUpdateSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.updateStatus},selectCreateSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.createStatus},selectDeleteSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.deleteSourceStatus},selectCheckCanBeDeletedStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.canBeDeletedStatus},selectCanBeDeleted=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.canBeDeleted},selectSource=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.source},selectSourceTypesConfig=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.sourceTypesConfig},selectSourceContentTemplates=e=>{return null==(e=null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.source)?void 0:e.contentTemplates},selectSourceTypes=e=>{const t=selectSourceTypesConfig(e);let r={};return Object.keys(t).forEach(e=>{e=parseInt(e,10),e={[t[e].id]:{id:t[e].id,name:t[e].name}};r=Object.assign(Object.assign({},r),e)}),r},selectNewAvatar=e=>e[namespace].sourceConfiguration.newAvatar,selectDynamicSelectListData=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.selectListData},selectRetryJobStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.retryJobStatus},selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,r)=>({apiRoot:e,graphQLEndpoint:t,token:r}));function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function __awaiter(e,a,i,l){return new(i=i||Promise)(function(r,t){function o(e){try{s(l.next(e))}catch(e){t(e)}}function n(e){try{s(l.throw(e))}catch(e){t(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(o,n)}s((l=l.apply(e,a||[])).next())})}const sourceFields=`
1
+ import{a0 as createSlice,cm as combineReducers,cn as createSelector,a6 as rootApiSelector,a8 as graphEndpointSelector,a7 as sessionTokenSelector,m as makeStyles,o as useSelector,r as react,j as jsxRuntime,C as FormControl,c3 as FormHelperText$2,aF as FormControlLabel,aG as Checkbox,n as useDispatch,bX as Icon,cG as Upload,bO as AIWareCacheProvider,cp as AIWareThemeProvider,a3 as DynamicModuleLoader,A as AIWareIntlProvider,al as all,F as FormattedMessage,D as TextField,dK as selectApiConfigs$1,I as InputLabel,M as Select,Q as MenuItem,v as lodash,eT as selectIsOLPEnabled,cC as userSelector,cz as hidePanel,B as Box,aO as CircularProgress,fk as img$w,T as Typography,U as Button,V as Divider,be as Tabs,bf as Tab,f2 as Popover,au as takeLatest$1,aq as Tooltip,K as IconButton,g4 as AddUser,cD as MoreVert,cr as Close,c9 as Hide,cE as Menu,cH as Delete,fe as Download,L as LoadingButton,fo as CheckCircle,cb as showMessage,cc as MessageSeverity,ax as select,aw as put,a4 as preferredLanguageSelector,gc as Modal,bj as AIWareFormatMessage,cN as baseGraphQLApiWithError}from"./js-core.esm.js";import{f as find_1}from"./js-core.esm14.js";import{actions as actions$3}from"./js-core.esm37.js";import{g as getProcessingCenterContentTemplatesModule,s as selectContentTemplatesToSave,C as ContentTemplates}from"./js-core.esm58.js";import{d as default_1,S as Stepper,a as Step,b as StepLabel}from"./js-core.esm33.js";import{C as ContentCopy}from"./js-core.esm42.js";import{B as Box$1}from"./js-core.esm31.js";import"./js-core.esm17.js";import"./js-core.esm27.js";import"./js-core.esm38.js";import"./js-core.esm20.js";import"./js-core.esm30.js";import"./js-core.esm35.js";import"./js-core.esm10.js";import"./js-core.esm32.js";import"./js-core.esm39.js";import"./js-core.esm43.js";import"./js-core.esm9.js";import"./js-core.esm44.js";import"./js-core.esm23.js";import"./js-core.esm5.js";import"./js-core.esm40.js";import"./js-core.esm11.js";import"./js-core.esm41.js";import"./js-core.esm59.js";import"./js-core.esm28.js";import"./js-core.esm34.js";import"./js-core.esm29.js";import"./js-core.esm24.js";var match,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,ESourcePermission,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$q=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$l=function(e){try{return!!e()}catch(e){return!0}},fails$k=fails$l,descriptors=!fails$l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$j=fails$l,functionBindNative=!fails$l(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$i=Function.prototype.call,functionCall=NATIVE_BIND$3?call$i.bind(call$i):function(){return call$i.apply(call$i,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$8=FunctionPrototype$2.bind,call$h=FunctionPrototype$2.call,uncurryThis$m=NATIVE_BIND$2&&bind$8.bind(call$h,call$h),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$m(e)}:function(e){return e&&function(){return call$h.apply(e,arguments)}},uncurryThis$l=functionUncurryThis,toString$8=uncurryThis$l({}.toString),stringSlice$5=uncurryThis$l("".slice),classofRaw$1=function(e){return stringSlice$5(toString$8(e),8,-1)},uncurryThis$k=functionUncurryThis,fails$i=fails$l,classof$7=classofRaw$1,$Object$4=Object,split$3=functionUncurryThis("".split),indexedObject=fails$i(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$7(e)?split$3(e,""):$Object$4(e)}:$Object$4,$TypeError$b=TypeError,requireObjectCoercible$4=function(e){if(null==e)throw $TypeError$b("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$3=requireObjectCoercible$4,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$3(e))},isCallable$m=function(e){return"function"==typeof e},isCallable$l=isCallable$m,isObject$a=function(e){return"object"==typeof e?null!==e:isCallable$l(e)},global$p=global$q,isCallable$k=isCallable$m,aFunction=function(e){return isCallable$k(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$p[e]):global$p[e]&&global$p[e][t]},uncurryThis$j=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$o=global$q,userAgent$3=engineUserAgent,process$3=global$o.process,Deno$1=global$o.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$h=fails$l,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$h(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$j=isCallable$m,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$j(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$i=isCallable$m,tryToString$3=tryToString$4,$TypeError$a=TypeError,aCallable$7=function(e){if(isCallable$i(e))return e;throw $TypeError$a(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$3=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$g=functionCall,isCallable$h=isCallable$m,isObject$9=isObject$a,$TypeError$9=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$h(r=e.toString)&&!isObject$9(o=call$g(r,e)))return o;if(isCallable$h(r=e.valueOf)&&!isObject$9(o=call$g(r,e)))return o;if("string"!==t&&isCallable$h(r=e.toString)&&!isObject$9(o=call$g(r,e)))return o;throw $TypeError$9("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$n=global$q,defineProperty$7=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$7(global$n,t,{value:r,configurable:!0,writable:!0})}catch(e){global$n[t]=r}return r},global$m=global$q,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$q[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$2=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$4),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$2(e))},uncurryThis$i=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$h=functionUncurryThis,id=0,postfix=Math.random(),toString$7=uncurryThis$h(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$7(++id+postfix,36)},global$l=global$q,shared$3=shared$4.exports,hasOwn$d=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$2=global$l.Symbol,symbolFor=Symbol$2&&Symbol$2.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$i=function(e){var t;return hasOwn$d(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL&&hasOwn$d(Symbol$2,e)?WellKnownSymbolsStore[e]=Symbol$2[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$f=functionCall,isObject$8=isObject$a,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$h=wellKnownSymbol$i,$TypeError$8=TypeError,TO_PRIMITIVE=wellKnownSymbol$i("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$8(e)||isSymbol$1(e))return e;var r=getMethod$2(e,TO_PRIMITIVE);if(r){if(r=call$f(r,e,t=void 0===t?"default":t),!isObject$8(r)||isSymbol$1(r))return r;throw $TypeError$8("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$k=global$q,isObject$7=isObject$a,document$3=global$q.document,EXISTS$1=isObject$7(document$3)&&isObject$7(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$d=descriptors,fails$g=fails$l,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$l(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$c=descriptors,call$e=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$c=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$c?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$c(e,t))return createPropertyDescriptor$4(!call$e(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$b=descriptors,fails$f=fails$l,v8PrototypeDefineBug=descriptors&&fails$l(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$6=isObject$a,$String$2=String,$TypeError$7=TypeError,anObject$e=function(e){if(isObject$6(e))return e;throw $TypeError$7($String$2(e)+" is not an object")},DESCRIPTORS$a=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey$1=toPropertyKey$3,$TypeError$6=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$9=(objectDefineProperty.f=DESCRIPTORS$a?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$d(e),t=toPropertyKey$1(t),anObject$d(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$d(e),t=toPropertyKey$1(t),anObject$d(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$6("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$5=DESCRIPTORS$9?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$8=descriptors,hasOwn$b=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$8&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$b(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$8||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$g=functionUncurryThis,isCallable$g=isCallable$m,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$g(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$j=global$q,isCallable$f=isCallable$m,inspectSource$3=inspectSource$4,WeakMap$1=global$q.WeakMap,nativeWeakMap=isCallable$f(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys$1=shared$2("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$i=global$q,uncurryThis$f=functionUncurryThis,isObject$5=isObject$a,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$a=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$i.TypeError,WeakMap=global$i.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$5(e)&&(e=get(e)).type===t)return e;throw TypeError$4("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$f(store.get),wmhas=uncurryThis$f(store.has),wmset=uncurryThis$f(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$a(e,STATE))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$a(e,STATE)?e[STATE]:{}},function(e){return hasOwn$a(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$e=fails$l,isCallable$e=isCallable$m,hasOwn$9=hasOwnProperty_1,DESCRIPTORS$7=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$5=internalState,enforceInternalState$1=InternalStateModule$5.enforce,getInternalState$3=InternalStateModule$5.get,defineProperty$6=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$7&&!fails$e(function(){return 8!==defineProperty$6(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$9(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$7?defineProperty$6(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$9(r,"arity")&&e.length!==r.arity&&defineProperty$6(e,"length",{value:r.arity});try{r&&hasOwn$9(r,"constructor")&&r.constructor?DESCRIPTORS$7&&defineProperty$6(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState$1(e);return hasOwn$9(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$d=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$e(this)&&getInternalState$3(this).source||inspectSource$2(this)},"toString"),isCallable$m),definePropertyModule$4=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$a=function(e,t,r,o){var n=(o=o||{}).enumerable,s=void 0!==o.name?o.name:t;if(isCallable$d(r)&&makeBuiltIn$1(r,s,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$3:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$3=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$2=toIntegerOrInfinity$3,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$2(e);return e<0?max$1(e+t,0):min$1(e,t)},toIntegerOrInfinity$1=toIntegerOrInfinity$3,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity$1(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$4=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$3=lengthOfArrayLike$4,createMethod$2=function(i){return function(e,t,r){var o,n=toIndexedObject$3(e),s=lengthOfArrayLike$3(n),a=toAbsoluteIndex$1(r,s);if(i&&t!=t){for(;a<s;)if((o=n[a++])!=o)return!0}else for(;a<s;a++)if((i||a in n)&&n[a]===t)return i||a||0;return!i&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$e=functionUncurryThis,hasOwn$8=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$3=uncurryThis$e([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,s=[];for(r in o)!hasOwn$8(hiddenKeys$2,r)&&hasOwn$8(o,r)&&push$3(s,r);for(;t.length>n;)!hasOwn$8(o,r=t[n++])||~indexOf$1(s,r)||push$3(s,r);return s},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$8),uncurryThis$d=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$c=anObject$e,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$c(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$7=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$3.f,s=getOwnPropertyDescriptorModule.f,a=0;a<o.length;a++){var i=o[a];hasOwn$7(e,i)||r&&hasOwn$7(r,i)||n(e,i,s(t,i))}},fails$d=fails$l,isCallable$c=isCallable$m,replacement=/#|\.prototype\./,isForced$3=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$c(t)?fails$d(t):!!t)},normalize=isForced$3.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$3.data={},NATIVE=isForced$3.NATIVE="N",POLYFILL=isForced$3.POLYFILL="P",isForced_1=isForced$3,global$h=global$q,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$9=defineBuiltIn$a,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$2=isForced_1,_export=function(e,t){var r,o,n,s=e.target,a=e.global,i=e.stat,l=a?global$h:i?global$h[s]||defineGlobalProperty(s,{}):(global$h[s]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor$2(l,r))&&n.value:l[r],!isForced$2(a?r:s+(i?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$3(o,"sham",!0),defineBuiltIn$9(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$6=descriptors,uncurryThis$c=functionUncurryThis,call$d=functionCall,fails$c=fails$l,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$5=Object.defineProperty,concat=uncurryThis$c([].concat),objectAssign=!$assign||fails$c(function(){var e,t,r,o;return!(!DESCRIPTORS$6||1===$assign({b:1},$assign(defineProperty$5({},"a",{enumerable:!0,get:function(){defineProperty$5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},o="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$2(e),o=arguments.length,n=1,s=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;n<o;)for(var i,l=IndexedObject(arguments[n++]),c=s?concat(objectKeys$1(l),s(l)):objectKeys$1(l),u=c.length,d=0;d<u;)i=c[d++],DESCRIPTORS$6&&!call$d(a,l,i)||(r[i]=l[i]);return r}:$assign,$$c=_export,assign$1=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1});const SLICE_NAME="processingCenter",namespace$2=(!function(e){e.Editor="editor",e.Viewer="viewer",e.Owner="owner"}(ESourcePermission=ESourcePermission||{}),"uiState"),initialState$1={status:"idle"},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{init(e){e.status="pending"},initDone(e){e.status="idle"},initFailed(e){e.status="failure"}}}),actions$2=slice$1.actions;var uiState=slice$1.reducer;const namespace$1="sourceConfiguration",initialState={status:"idle",updateStatus:"pending",createStatus:"pending",newAvatar:null,source:void 0,deleteSourceStatus:null,canBeDeletedStatus:"pending",canBeDeleted:null,sourceTypesConfig:{},selectListData:{},retryJobStatus:"pending"},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{retryJobStart(e,t){e.retryJobStatus="pending"},retryJobSuccess(e){e.retryJobStatus="success"},retryJobFailed(e){e.retryJobStatus="failure"},fetchSourceStart(e,t){e.status="pending"},fetchSourceSuccess(e,t){e.status="success",e.source=t.payload},fetchSourceFailed(e){e.status="failure"},deleteSourceStart(e,t){e.deleteSourceStatus="pending"},deleteSourceSuccess(e){e.deleteSourceStatus="success"},deleteSourceFailed(e){e.deleteSourceStatus="failure"},deleteSourceReset(e){e.deleteSourceStatus=null},checkCanBeDeletedStart(e,t){e.canBeDeletedStatus="pending"},checkCanBeDeletedSuccess(e,t){e.canBeDeletedStatus="idle",e.canBeDeleted=t.payload},checkCanBeDeletedFailed(e,t){e.canBeDeletedStatus="failure",e.canBeDeleted=!1},updateSourceStart(e,t){e.updateStatus="pending"},updateSourceSuccess(e,t){e.updateStatus="success",e.source=t.payload},updateSourceFailed(e){e.updateStatus="failure"},createSourceStart(e,t){e.createStatus="pending"},createSourceSuccess(e,t){e.createStatus="success",e.source=t.payload},createSourceFailed(e){e.createStatus="failure"},setNewAvatar(e,t){e.newAvatar=t.payload},getSourceTypes(e,t){console.log("getting source types")},setSourceTypes(e,t){var t=t.payload;const s={};null!=(t=null==t?void 0:t.records)&&t.forEach(e=>{var t;const r=(null==(t=null==(t=null==e?void 0:e.sourceSchema)?void 0:t.definition)?void 0:t.properties)||{},o=(null==(t=null==(t=null==e?void 0:e.sourceSchema)?void 0:t.definition)?void 0:t.required)||[],n={};Object.keys(r).forEach(e=>{var t=r[e];0<=o.indexOf(e)?t.isRequired=!0:t.isRequired=!1,n[e]=Object.assign(Object.assign({},t),{id:e,title:t.title,type:getFieldType(t),allowMultiple:"array"===t.type,isValid:!0}),n[e].query=getQuery(t)}),null!=(t=Object.keys(n))&&t.forEach(t=>{var e;n[t].hasOwnProperty("peerEnumKey")&&(e=find_1(n,e=>e.id===n[t].peerEnumKey))&&0<Object.keys(e).length&&(n[t].parentId=e.id,n[t].type="childSelect",n[t].options=[],n[t].parentValue=e.value)}),s[null==e?void 0:e.id]={id:e.id,name:e.name,organizationId:e.organizationId,fields:n}}),e.sourceTypesConfig=s},setSelectListData(e,t){e.selectListData[t.payload.key]=t.payload.data||{}}}}),actions$1=slice.actions;var configuration_slice=slice.reducer;function getFieldType(e){return e?"string"===e.type&&e.query||"array"===e.type?"select":e.type:""}function getQuery(e){var t;return e?e.query||(null!=(t=e.items)&&t.query?e.items.query:null):""}const namespace=SLICE_NAME,actions={[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$2]:uiState,[namespace$1]:configuration_slice}),selectUIStateStatus=e=>e[namespace].uiState.status;var wellKnownSymbol$g=wellKnownSymbol$i,TO_STRING_TAG$3=wellKnownSymbol$i("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$b=isCallable$m,classofRaw=classofRaw$1,wellKnownSymbol$f=wellKnownSymbol$i,TO_STRING_TAG$2=wellKnownSymbol$i("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$b(e.callee)?"Arguments":t},classof$5=classof$6,$String$1=String,toString$6=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$b=functionUncurryThis,requireObjectCoercible$1=requireObjectCoercible$4,toString$5=toString$6,whitespaces$1=whitespaces$2,replace$5=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$1=function(t){return function(e){e=toString$5(requireObjectCoercible$1(e));return 1&t&&(e=replace$5(e,ltrim,"")),e=2&t?replace$5(e,rtrim,""):e}},stringTrim={start:createMethod$1(1),end:createMethod$1(2),trim:createMethod$1(3)},global$g=global$q,fails$b=fails$l,uncurryThis$a=functionUncurryThis,toString$4=toString$6,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$g.parseInt,Symbol$1=global$g.Symbol,ITERATOR$8=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$5=uncurryThis$a(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$8&&!fails$b(function(){$parseInt$1(Object(ITERATOR$8))}),numberParseInt=FORCED?function(e,t){e=trim(toString$4(e));return $parseInt$1(e,t>>>0||(exec$5(hex,e)?16:10))}:$parseInt$1,$$b=_export,$parseInt=numberParseInt;_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});const selectFetchSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.status},selectUpdateSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.updateStatus},selectCreateSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.createStatus},selectDeleteSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.deleteSourceStatus},selectCheckCanBeDeletedStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.canBeDeletedStatus},selectCanBeDeleted=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.canBeDeleted},selectSource=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.source},selectSourceTypesConfig=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.sourceTypesConfig},selectSourceContentTemplates=e=>{return null==(e=null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.source)?void 0:e.contentTemplates},selectSourceTypes=e=>{const t=selectSourceTypesConfig(e);let r={};return Object.keys(t).forEach(e=>{e=parseInt(e,10),e={[t[e].id]:{id:t[e].id,name:t[e].name}};r=Object.assign(Object.assign({},r),e)}),r},selectNewAvatar=e=>e[namespace].sourceConfiguration.newAvatar,selectDynamicSelectListData=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.selectListData},selectRetryJobStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.retryJobStatus},selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,r)=>({apiRoot:e,graphQLEndpoint:t,token:r}));function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function __awaiter(e,a,i,l){return new(i=i||Promise)(function(r,t){function o(e){try{s(l.next(e))}catch(e){t(e)}}function n(e){try{s(l.throw(e))}catch(e){t(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(o,n)}s((l=l.apply(e,a||[])).next())})}const sourceFields=`
2
2
  id
3
3
  sourceType { id }
4
4
  name
Binary file