<div class="space-page">
  <div class="space-head">
    <div class="content">
      <div class="title">
        {{
        tbookSer.profile.user?.name ||
        tbookSer.profile.user?.phone ||
        tbookSer.profile.user?.email ||
        tbookSer.profile.user?.usernmae ||
        "未认证用户"
        }}，欢迎使用“十四五”普通高等教育本科国家级规划教材申报系统
      </div>
      <div class="text">
        创建教材、使用教材网信息加快填写速度，下载附件材料、上传教材所需文件，将你创建的教材提交至流程上级评审
      </div>
    </div>
    <div class="btn">
      <button nz-button nzType="primary" style="background: #3e49b3; border: 1px #3e49b3"
        (click)="goUrl('/nav-author/manage/apply')">
        创建教材
      </button>
    </div>
  </div>
  <div class="space-content">
    <nz-tabset [(nzSelectedIndex)]="active">
      <nz-tab nzTitle="我的教材">
        <div class="tips">
          <span style="color: #3e49b3" nz-icon nzType="info-circle" nzTheme="fill"></span>{{ eduProcess?.get("name")
          }}遴选将于
          {{ eduProcess?.get('deadline') | date : "yyyy-MM-dd HH:mm" }}
          截止报送，请及时提交需要参与遴选的教材
          <!-- | <a href="/file/“十四五”规划教材申报系统-近期常见问题.pdf" download>
            常见问题指南
          </a> -->
        </div>
        @if (active == 0) {
        <!-- <app-page-textbook></app-page-textbook> -->
        <app-textbook path="/nav-author/manage/details" [filterObj]="myTextBook" [uid]="user?.id"></app-textbook>
        }
      </nz-tab>
      <nz-tab nzTitle="已提交评审教材">
        <div class="tips">
          <span style="color: #3e49b3" nz-icon nzType="info-circle"
            nzTheme="fill"></span>请在获得推荐资质后根据相关要求做好联系出版社上传教材等准备工作；并提醒、确认相应出版社到申报系统申请工作联系人账号
        </div>
        @if (active == 1) {
        <!-- <app-page-textbook [render]="true"></app-page-textbook> -->
        <app-textbook path="/nav-author/manage/details" [filterObj]="submitTextBook" [uid]="user?.id"></app-textbook>
        }
      </nz-tab>
    </nz-tabset>
  </div>
</div>