{selectedSegments.length!==nonFilteredSegmentsOrInverse.length&&<li><FaRegCheckCirclesize={12}style={{marginRight:3}}/>{t('{{selectedSegments}} of {{nonFilteredSegments}} segments selected',{selectedSegments:selectedSegments.length,nonFilteredSegments:nonFilteredSegmentsOrInverse.length})}</li>}
<li>
{selectedSegments.length>1?t('Export mode for {{segments}} segments',{segments:selectedSegments.length}):t('Export mode')}<ExportModeButtonselectedSegments={selectedSegments}/>
<FaRegCheckCirclesize={12}style={{marginRight:3}}/>{t('{{selectedSegments}} of {{nonFilteredSegments}} segments selected',{selectedSegments:selectedSegments.length,nonFilteredSegments:nonFilteredSegmentsOrInverse.length})}
</td>
<td/>
</tr>
)}
<tr>
<td>
{selectedSegments.length>1?t('Export mode for {{segments}} segments',{segments:selectedSegments.length}):t('Export mode')}
{t('Preserve original metadata when merging? (slow)')}<Buttonheight={20}onClick={togglePreserveMetadataOnMerge}>{preserveMetadataOnMerge?t('Yes'):t('No')}</Button>
{needSmartCut&&<WarningSignIconverticalAlign="middle"color="warning"marginLeft=".3em"title={i18n.t('Experimental functionality has been activated!')}/>}
</li>
{!needSmartCut&&(
<li>
{t('Cut mode:')}<KeyframeCutButton/>
<HelpIcononClick={onKeyframeCutHelpPress}/>{!keyframeCut&&<spanstyle={warningStyle}>{t('Note: Keyframe cut is recommended for most common files')}</span>}
</li>
)}
</>
)}
{isMov&&(
<>
<li>
{t('Enable MOV Faststart?')}<MovFastStartButton/>
<HelpIcononClick={onMovFastStartHelpPress}/>{isIpod&&!movFastStart&&<spanstyle={warningStyle}>{t('For the ipod format, it is recommended to activate this option')}</span>}
</li>
<li>
{t('Preserve all MP4/MOV metadata?')}<PreserveMovDataButton/>
<HelpIcononClick={onPreserveMovDataHelpPress}/>{isIpod&&preserveMovData&&<spanstyle={warningStyle}>{t('For the ipod format, it is recommended to deactivate this option')}</span>}
{!['make_zero','auto'].includes(avoidNegativeTs)&&<divstyle={warningStyle}>{t('It\'s generally recommended to set this to one of: {{values}}',{values:'"auto", "make_zero"'})}</div>}
</li>
)}
</ul>
<tableclassName={styles.options}>
<tbody>
{willMerge&&(
<>
<tr>
<td>
{t('Create chapters from merged segments? (slow)')}
{needSmartCut&&<WarningSignIconverticalAlign="middle"color="warning"marginLeft=".3em"title={i18n.t('Experimental functionality has been activated!')}/>}
<HelpIcononClick={onSmartCutHelpPress}/>
</td>
</tr>
{!needSmartCut&&(
<tr>
<td>
{t('Cut mode:')}
{!keyframeCut&&<divstyle={warningStyle}>{t('Note: Keyframe cut is recommended for most common files')}</div>}
<HelpIcononClick={onMovFastStartHelpPress}/>{isIpod&&!movFastStart&&<spanstyle={warningStyle}>{t('For the ipod format, it is recommended to activate this option')}</span>}
</td>
</tr>
<tr>
<td>
{t('Preserve all MP4/MOV metadata?')}
{isIpod&&preserveMovData&&<divstyle={warningStyle}>{t('For the ipod format, it is recommended to deactivate this option')}</div>}
{!['make_zero','auto'].includes(avoidNegativeTs)&&<divstyle={warningStyle}>{t('It\'s generally recommended to set this to one of: {{values}}',{values:'"auto", "make_zero"'})}</div>}
{error!=null&&<Alertintent="danger"appearance="card"><Headingcolor="danger">{i18n.t('There is an error in the file name template:')}</Heading><Text>{error}</Text></Alert>}
{isMissingExtension&&<Alertintent="warning"appearance="card">{i18n.t('The file name template is missing {{ext}} and will result in a file without the suggested extension. This may result in an unplayable output file.',{ext:extVar})}</Alert>}