<commit_before>{{! Turn off rule that fails due to whitespace control bug.
    Can remove when this PR merged: https://github.com/rwjblue/ember-template-lint/pull/98 }}
<!-- template-lint block-indentation=false -->

<div class="section-header">
    {{t (concat "components.preprint-form-header.name." name)}}
</div>

<div class="preprint-section-status pull-right">
    {{#if (or
        (and uploadSaveState (eq name 'Upload'))
        (and basicsSaveState (eq name 'Basics'))
        (and authorsSaveState (eq name 'Authors'))
        (and disciplineSaveState (eq name 'Discipline')) )}}
        <span class="text-success text-smaller m-r-md"> {{t "components.preprint-form-header.changes_saved"}} </span>
    {{/if}}
    {{#if showValidationIndicator}}
        {{fa-icon (if (or valid (not isValidationActive)) 'check-circle' 'times-circle')}}
    {{/if}}
</div>

{{#if (and (not isOpen) (eq name 'Upload'))}}
    <div class="m-t-md preprint-header-preview">
        <p><em class="m-r-md"> {{t "components.preprint-form-header.file"}} </em> {{preprintFile}} </p>
        <p><em class="m-r-md"> {{t "components.preprint-form-header.title"}} </em> {{preprintTitle}} </p>
    </div>
{{/if}}

{{#if (not isOpen)}}
    <div class="m-t-md preprint-header-preview">
        {{#if isValidationActive}}
            {{#if (eq name 'Basics')}}
                <p><em class="m-r-md"> {{t "global.doi"}}: </em> {{if doi doi (t "global.none")}} </p>
                <p>
                    <em class="m-r-md"> {{t "global.tags"}}: </em>
                    {{#if tags}}
                        <ul class="comma-list">
                            {{#each tags as |tag|~}}
                                <li> {{~tag~}} </li>
                            {{~/each}}
                        </ul>
                    {{else}}
                        <span>{{t "global.none"}}</span>
                    {{/if}}
                </p>
                <em class="m-r-md"> {{t "global.abstract"}}: </em>
                <p class="abstract">{{if abstract abstract (t "global.none")}} </p>
            {{else if (eq name 'Discipline')}}
                {{#if subjects}}
                    {{#each subjects as |subject|}}
                        <span class="subject-preview">{{subject.text}} </span>
                    {{/each}}
                {{else}}
                    <span>{{t "global.none"}}</span>
                {{/if}}
            {{else if (eq name 'Authors')}}
                <ul class="author-preview comma-list">
                    {{#each authors as |contrib| ~}}
                        <li>
                            {{~#if contrib.unregisteredContributor~}}
                                {{~contrib.unregisteredContributor~}}
                            {{else}}
                                {{~contrib.users.fullName~}}
                            {{~/if~}}
                        </li>
                    {{~/each}}
                </ul>
            {{/if}}
        {{/if}}

        {{#if (eq name 'choose_project')}}
            {{#if selectedNode}}
                <p> {{selectedNode.title}} </p>
            {{/if}}
        {{/if}}

        {{#if (eq name 'choose_file')}}
            {{#if selectedFile}}
                <p> {{selectedFile.name}}</p>
            {{/if}}
        {{/if}}

        {{#if (eq name 'organize')}}
            {{#if (eq convertOrCopy 'convert')}}
                <p>
                    {{#if isTopLevelNode}}
                        {{t "global.convert_project"}}
                    {{else}}
                        {{t "global.convert_component"}}
                    {{/if}}
                </p>
            {{/if}}

            {{#if (eq convertOrCopy 'copy')}}
                <p>
                    {{t "global.copy_inside_project"}}
                </p>
            {{/if}}
        {{/if}}

        {{#if (eq name 'finalize_upload')}}
            {{#if nodeTitle}}
                 <p>{{t "components.preprint-form-header.title"}}: {{nodeTitle}} </p>
            {{/if}}
        {{/if}}


        {{#if (and (not-eq name 'Submit') (or (not showValidationIndicator) isValidationActive))}}
            <i class="text-smaller m-t-md">{{t "components.preprint-form-header.click_edit"}}</i>
        {{/if}}<commit_msg>Add new headers for edit mode.<commit_after>{{! Turn off rule that fails due to whitespace control bug.
    Can remove when this PR merged: https://github.com/rwjblue/ember-template-lint/pull/98 }}
<!-- template-lint block-indentation=false -->

<div class="section-header">
    {{t (concat "components.preprint-form-header.name." name)}}
</div>

<div class="preprint-section-status pull-right">
    {{#if (or
        (and uploadSaveState (eq name 'Upload'))
        (and basicsSaveState (eq name 'Basics'))
        (and authorsSaveState (eq name 'Authors'))
        (and disciplineSaveState (eq name 'Discipline')) )}}
        <span class="text-success text-smaller m-r-md"> {{t "components.preprint-form-header.changes_saved"}} </span>
    {{/if}}
    {{#if showValidationIndicator}}
        {{fa-icon (if (or valid (not isValidationActive)) 'check-circle' 'times-circle')}}
    {{/if}}
</div>

{{#if (and (not isOpen) (eq name 'Upload'))}}
    <div class="m-t-md preprint-header-preview">
        {{#if preprintNode}}
            <p><em class="m-r-md"> {{t "components.preprint-form-header.location"}} </em> {{get-ancestor-descriptor preprintNode}} <strong> {{preprintNode.title}}</strong></p>
        {{/if}}
        <p><em class="m-r-md"> {{t "components.preprint-form-header.file"}} </em> {{preprintFile}} </p>
        <p><em class="m-r-md"> {{t "components.preprint-form-header.title"}} </em> {{preprintTitle}} </p>
    </div>
{{/if}}

{{#if (not isOpen)}}
    <div class="m-t-md preprint-header-preview">
        {{#if isValidationActive}}
            {{#if (eq name 'Basics')}}
                <p><em class="m-r-md"> {{t "global.doi"}}: </em> {{if doi doi (t "global.none")}} </p>
                <p>
                    <em class="m-r-md"> {{t "global.tags"}}: </em>
                    {{#if tags}}
                        <ul class="comma-list">
                            {{#each tags as |tag|~}}
                                <li> {{~tag~}} </li>
                            {{~/each}}
                        </ul>
                    {{else}}
                        <span>{{t "global.none"}}</span>
                    {{/if}}
                </p>
                <em class="m-r-md"> {{t "global.abstract"}}: </em>
                <p class="abstract">{{if abstract abstract (t "global.none")}} </p>
            {{else if (eq name 'Discipline')}}
                {{#if subjects}}
                    {{#each subjects as |subject|}}
                        <span class="subject-preview">{{subject.text}} </span>
                    {{/each}}
                {{else}}
                    <span>{{t "global.none"}}</span>
                {{/if}}
            {{else if (eq name 'Authors')}}
                <ul class="author-preview comma-list">
                    {{#each authors as |contrib| ~}}
                        <li>
                            {{~#if contrib.unregisteredContributor~}}
                                {{~contrib.unregisteredContributor~}}
                            {{else}}
                                {{~contrib.users.fullName~}}
                            {{~/if~}}
                        </li>
                    {{~/each}}
                </ul>
            {{/if}}
        {{/if}}

        {{#if (eq name 'location_of_preprint')}}
            {{#if node}}
                <p> <span class='lock-span text-muted p-r-xs'><i class='fa fa-lock'></i></span> {{get-ancestor-descriptor node}} {{node.title}} </p>
            {{/if}}
        {{/if}}

        {{#if (eq name 'choose_project')}}
            {{#if selectedNode}}
                <p> {{selectedNode.title}} </p>
            {{/if}}
        {{/if}}

        {{#if (eq name 'choose_file')}}
            {{#if selectedFile}}
                <p> {{selectedFile.name}}</p>
            {{/if}}
        {{/if}}

        {{#if (eq name 'organize')}}
            {{#if (eq convertOrCopy 'convert')}}
                <p>
                    {{#if isTopLevelNode}}
                        {{t "global.convert_project"}}
                    {{else}}
                        {{t "global.convert_component"}}
                    {{/if}}
                </p>
            {{/if}}

            {{#if (eq convertOrCopy 'copy')}}
                <p>
                    {{t "global.copy_inside_project"}}
                </p>
            {{/if}}
        {{/if}}

        {{#if (eq name 'finalize_upload')}}
            {{#if nodeTitle}}
                 <p>{{t "components.preprint-form-header.title"}}: {{nodeTitle}} </p>
            {{/if}}
        {{/if}}

        {{#if (eq name 'title_of_preprint')}}
            {{#if nodeTitle}}
                 <p> {{nodeTitle}} </p>
            {{/if}}
        {{/if}}


        {{#if (and (isSectionEditable name) (or (not showValidationIndicator) isValidationActive))}}
            <i class="text-smaller m-t-md">{{t "components.preprint-form-header.click_edit"}}</i>
        {{/if}}
{'fraction_non_alphanumeric': 0.18928921301839555, 'fraction_numerical': 0.00043539784478066834, 'mean_word_length': 1.441668881211799, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6098720', 'n_tokens_mistral': 2803, 'n_tokens_neox': 2654, 'n_words': 597}