import{j as jsxRuntimeExports,u as useSelector,ag as selectIsFullscreenEnabled,r as reactExports,q as mountPanel}from"./js-core.esm4.js";import{w as useStyles$1,s as selectSourceSelected,g as selectIsEditMode,i as selectUpdateJobErrors,k as actions$8,S as SHARED_TEXT,x as SelectSource,P as PanelControls$1,E as ENextButtonType,y as actions$7}from"./js-core.esm81.js";import{b3 as requireCreateSvgIcon,b4 as interopRequireDefaultExports,T as Typography,B as Button}from"./js-core.esm7.js";import"./js-core.esm67.js";import"./js-core.esm68.js";import"./js-core.esm9.js";import"./js-core.esm51.js";import"./js-core.esm64.js";import{u as useDispatch}from"./js-core.esm12.js";import"./js-core.esm53.js";import"./js-core.esm27.js";import"./js-core.esm14.js";import"./js-core.esm29.js";import"./js-core.esm8.js";import"./js-core.esm78.js";import"./js-core.esm73.js";import"./js-core.esm79.js";import"./js-core.esm32.js";import"./js-core.esm65.js";import"./js-core.esm16.js";import"./js-core.esm31.js";import"./js-core.esm33.js";import"./js-core.esm34.js";import"./js-core.esm69.js";import"./js-core.esm61.js";import"./js-core.esm70.js";import"./js-core.esm41.js";import"./js-core.esm71.js";import"./js-core.esm26.js";import"./js-core.esm60.js";import"./js-core.esm49.js";import"./js-core.esm72.js";import"./js-core.esm13.js";import"./js-core.esm52.js";import"./js-core.esm35.js";var Settings={},_interopRequireDefault=interopRequireDefaultExports,default_1=(Object.defineProperty(Settings,"__esModule",{value:!0}),Settings.default=void 0),_createSvgIcon=_interopRequireDefault(requireCreateSvgIcon()),_jsxRuntime=jsxRuntimeExports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings"),default_1=Settings.default=_default,SelectSourceStep=function(e){var s=e.sourceTypeIds,e=e.disabled,t=useDispatch(),r=useStyles$1().classes,o=useSelector(selectIsFullscreenEnabled),c=useSelector(selectSourceSelected),i=useSelector(selectIsEditMode),a=useSelector(selectUpdateJobErrors);reactExports.useEffect(function(){i&&t(actions$8.setUpdateJobErrors({add:!c,tabIndex:1}))},[i,c]);return jsxRuntimeExports.jsxs("div",{className:r.selectSourceContainer,children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",children:SHARED_TEXT.sourceSelectTitle()}),jsxRuntimeExports.jsx(Typography,{variant:"caption",children:SHARED_TEXT.sourceSelectSubTitle()}),jsxRuntimeExports.jsx("div",{className:r.selectContainer,children:jsxRuntimeExports.jsx(SelectSource,{sourceTypeIds:s,sourceSelected:c,onChangeSource:function(e){t(actions$7.setSourceSelected(e))},isAffiliate:!1,disabled:e})}),jsxRuntimeExports.jsx("div",{className:r.advancedSettings,children:jsxRuntimeExports.jsx(Button,{"data-test":"processing-center-ingestion-advanced-settings-button",onClick:function(){t(mountPanel({panelId:"PROCESSING_CENTER_ADVANCED_SETTINGS",microFrontend:{name:"PROCESSING_CENTER_ADVANCED_SETTINGS",config:{}},panelConfig:{header:{title:"Advanced Settings"},divider:!1,type:"APP_BAR_PANEL_TEMPLATE",marginTop:o?0:55,marginStart:o?0:80,size:"small",parentPanelId:"PROCESSING_CENTER_INGESTION",dimmed:0,dimmedStatus:"dimParent"}}))},variant:"outlined",startIcon:jsxRuntimeExports.jsx(default_1,{}),disabled:!c,children:SHARED_TEXT.advancedSettingsButton()})}),jsxRuntimeExports.jsx(PanelControls$1,{disableNext:!c||0<a.length,disableBack:!1,nextButtonType:i?ENextButtonType.UPDATE_SCHEDULED_JOB:ENextButtonType.NEXT})]})};export{SelectSourceStep as default};
