<template>
  <div v-loading.fullscreen.lock="fullscreenLoading" class="main-content abnormal m20">
    <DetailHead result="撤销撤销案件审核界面" />
    <div class="content-body">
      <el-form ref="form" :model="revokeTBizFraudInfo" label-width="220px" label-position="right" :rules="formRules">
        <div class="form">
          <div class="tab">
            <div class="tab-title">
              <label>撤销撤销登记主体信息</label>
            </div>
          </div>
          <div class="form-body">
            <el-row class="flex-row">
              <el-col :span="12">
                <el-form-item label="主体名称">
                  <span style="color: #8cc3fb;cursor: pointer;" class="span-content" @click="toEntDetail(entInfo.uniscid)">{{ entInfo.entname }}</span>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="统一社会信用代码/注册号">
                  <span class="span-content">{{ entInfo.uniscid || entInfo.regno }}</span>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row class="bt0 flex-row">
              <el-col :span="12">
                <el-form-item label="法定代表人">
                  <span class="span-content">{{ entInfo.lerep }}</span>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="联系方式">
                  <span class="span-content">{{ entInfo.phone }}</span>
                </el-form-item>
              </el-col>
            </el-row>
            <!--            <el-row class="bt0">-->
            <!--              <el-form-item label="登记机关">-->
            <!--                <span class="span-content">{{ entInfo.regorgCn }}</span>-->
            <!--              </el-form-item>-->
            <!--            </el-row>-->
            <el-row class="bt0 flex-row">
              <el-col :span="12">
                <el-form-item label="登记机关">
                  <span class="span-content">{{ entInfo.regorgCn }}</span>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="投诉原因">
                  <span class="span-content">{{ bizFraudInfo.complaintReason }}</span>
                </el-form-item>
              </el-col>
            </el-row>
            <!--            <el-row class="bt0">-->
            <!--              <el-form-item label="冒名登记事项">-->
            <!--                <span class="span-content">{{ fraudEntInfo.regItem }}</span>-->
            <!--              </el-form-item>-->
            <!--            </el-row>-->
          </div>
        </div>

        <div class="form">
          <div class="tab">
            <div class="tab-title">
              <label>撤销登记案件信息</label>
            </div>
          </div>
          <div class="form-body">
            <el-row class="flex-row">
              <el-col :span="12">
                <el-form-item label="做出决定日期">
                  <span class="span-content">{{ fraudEntInfo.judDate }}</span>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="公告日期">
                  <span class="span-content">{{ fraudEntInfo.noticeDate }}</span>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row class="bt0 flex-row">
              <el-col :span="12">
                <el-form-item label="做出决定机关">
                  <span class="span-content">{{ fraudEntInfo.judAuthCn }}</span>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="撤销决定文书号">
                  <span class="span-content">{{ fraudEntInfo.canceldocno }}</span>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row class="bt0">
              <el-form-item label="撤销决定原因">
                <span class="span-content">{{ fraudEntInfo.handleReaCn }}</span>
              </el-form-item>
            </el-row>
          </div>
        </div>

        <div class="form">
          <div class="tab">
            <div class="tab-title">
              <label>撤销撤销信息</label>
            </div>
          </div>
          <div class="form-body">
            <el-row class="bt0 flex-row">
              <el-col :span="12">
                <el-form-item label="申请撤销联系人" prop="revokeApplyName">
                  <span class="span-content">{{ revokeTBizFraudInfo.revokeApplyName }}</span>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="联系电话" prop="revokeApplyNo">
                  <span class="span-content">{{ revokeTBizFraudInfo.revokeApplyNo }}</span>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row class="bt0 flex-row">
              <el-col :span="24">
                <el-form-item label="备注">
                  <span class="span-content">{{ revokeTBizFraudInfo.remark }}</span>
                </el-form-item>
              </el-col>
            </el-row>

            <el-row class="bt0">
              <el-form-item label="上传撤销撤销决定书">
                <el-upload
                  :action="uploadPath"
                  :data="uploadBodyData(1)"
                  :on-remove="removeFile"
                  :on-success="uploadCallback"
                  :on-preview="previewFile"
                  :before-upload="beforeFileUpload"
                  :before-remove="beforeRemove"
                  accept=".doc,.docx,.xlsx,.xls,.pdf,.jpg,.zip,.rar,.7z,.png"
                  multiple
                  name="files"
                  :file-list="fileList"
                  style="max-width:800px;display: inline-block"
                  class="uploadFileList"
                  :disabled="readOnly"
                  :class="{disabled: readOnly}"
                >
                  <div v-if="!readOnly" style="display: inline-block;">
                    <el-button style="display: inline-block;" size="mini" type="primary">点击上传</el-button>
                    <div slot="tip" style="display: inline-block;" class="el-upload__tip">只能上传jpg/png/pdf/doc/docx/xls/xlsx/rar/zip/7z文件，且单个文件不能超过20M</div>
                  </div>
                </el-upload>
              </el-form-item>
            </el-row>
            <el-row class="bt0 flex-row">
              <el-col :span="24">
                <el-form-item label="撤销撤销核实情况" prop="revokeFraudContent">
                  <span class="span-content">{{ revokeTBizFraudInfo.revokeFraudContent }}</span>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row class="bt0">
              <el-col :span="24">
                <el-form-item label="撤销撤销决定文书号" prop="canceldocno">
                  <span v-if="readOnly" class="span-content">{{ revokeTBizFraudInfo.canceldocno }}</span>
                  <div v-else class="canceldocno-input">
                    <el-input
                      v-model="canceldocno.left"
                      type="text"
                    />
                    〔
                    <el-input
                      v-model="canceldocno.middle"
                      type="text"
                    />
                    〕
                    <el-input
                      v-model="canceldocno.right"
                      type="text"
                    />
                    号
                  </div>
                </el-form-item>
              </el-col>
            </el-row>
          </div>
        </div>

        <div v-if="this.bizFraudInfo.businessType == '2'" class="form">
          <div class="tab">
            <div class="tab-title"><label>变更信息</label></div>
          </div>
          <div class="form-body history">
            <div v-if="eAlterRecoder.length == 0" class="none">暂无变更信息</div>
            <el-table v-if="eAlterRecoder.length !== 0" :data="eAlterRecoder">
              <el-table-column label="序号" prop="index" min-width="30" />
              <el-table-column label="变更事项" prop="altitemCn" min-width="100" show-overflow-tooltip />
              <el-table-column label="变更前" prop="altbe" min-width="150" show-overflow-tooltip />
              <el-table-column label="变更后" prop="altaf" show-overflow-tooltip />
              <el-table-column label="变更日期" prop="altdate" show-overflow-tooltip />
            </el-table>
          </div>
        </div>
        <div class="form">
          <div class="tab">
            <div class="tab-title">
              <label>处理意见</label>
            </div>
          </div>
          <div class="form-body history">
            <div v-if="opinions.length == 0" class="none">暂无处理意见</div>
            <el-row v-for="item in opinions" :key="item.opinionid" class="bt0">
              <el-form-item :label="opiniontypeCN(item.opiniontype)">
                <span style="display: block;text-indent: 1em;">{{ item.opinioncontent }}</span>
                <el-col :span="8" :offset="16">
                  <label>{{ opiniontypeCN2(item.opiniontype) }}:</label>
                  <span>{{ item.handler }}</span>
                  <label
                    style="margin-left: 10px"
                  >日期:</label>
                  <span style="display: inline-block">{{ item.handledate | datetime }}</span>
                </el-col>
              </el-form-item>
            </el-row>
          </div>
        </div>

        <div class="form">
          <div class="tab">
            <div class="tab-title">
              <label>审核意见</label>
            </div>
          </div>
          <div class="form-body">
            <template>
              <el-row>
                <el-form-item label="审核意见" prop="opinion" class="bt0">
                  <el-col :span="24" class="mb10">
                    <el-input v-model="revokeTBizFraudInfo.opinion" type="textarea" placeholder="请输入审核意见" :autosize="{ minRows: 2, maxRows: 6 }" />
                  </el-col>
                  <el-col :span="12">
                    <label style="line-height:32px">常用语</label>
                    <el-select v-model="opinion" placeholder="请选择" clearable class="custom" style="width: 100%;">
                      <el-option
                        v-for="item in opinionOptions"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
                  </el-col>
                </el-form-item>
              </el-row>
              <el-row class="bt0 p0">
                <el-form-item v-if="!readOnly" label="操作" class="label-lineheight-inherit" prop="nextNodeID">
                  <span style="display: inline-block">
                    <el-radio
                      v-for="item in nextSequenceFlowList"
                      :key="item.id"
                      v-model="revokeTBizFraudInfo.nextNodeID"
                      :label="item.nextNode.id"
                    >{{ item.name }}</el-radio>
                  </span>
                </el-form-item>
              </el-row>
              <el-row>
                <el-form-item v-if="revokeTBizFraudInfo.nextNodeID === 'approvalCancelCx'" label="审批人" prop="reviewer" class="bt0">
                  <el-col :span="12">
                    <el-select
                      v-model="revokeTBizFraudInfo.reviewer"
                      placeholder="请选择审批人"
                      class="custom"
                      value-key="primaryKey"
                    >
                      <el-option
                        v-for="item in reviewer"
                        :key="'reviewer'+item.primaryKey"
                        :label="item.name"
                        :value="item"
                      />
                    </el-select>
                  </el-col>
                </el-form-item>
              </el-row>
            </template>

          </div>
        </div>
      </el-form>
      <div class="submit-box">
        <el-button v-if="!readOnly" type="primary" :loading="submitLoading" @click="submitForm">提交</el-button>
        <el-button @click="$router.back()">返回</el-button>
      </div>
    </div>
  </div>
</template>

<script>
import DetailHead from '@/components/DetailHead'
import Editor from '@/components/editor.vue'
import { listFile, removeAttachementById } from '@/api/attachment'
import {
  getCxBusFraudInfo,
  processControlrevokeTFraud
} from '@/api/personate'
import { validBeforeUpload } from '@/api/fileUpload'
import { checkPhoneNumber } from '@/utils/rules'
import { getUsersWithPermission } from '@/api/user'
import { queryEAlterByEntNo } from '@/api/comprehensive'

export default {
  components: {
    Editor: Editor,
    DetailHead
  },
  data() {
    return {
      fullscreenLoading: false,
      onlyShow: '',
      judauthList: [],
      handlreaList: [],
      uploadPath: `${process.env.VUE_APP_BASE_API}/fraudReg/process/upload`,
      showEntbase: false,
      bizseq: '',
      workflowId: '',
      tasklistid: '',
      personateid: '',
      editDialog: false,
      dialogTitle: '新增',
      form: {
        uniscid: '',
        regno: '',
        searchCode: '',
        entname: '',
        opiniontype: '',
        opinion: '', // 意见
        nextNodeID: '',
        uniScId: ''
      },
      opinion: '',
      // 意见-经办人
      handleOpinion: {
        handler: '',
        handleDate: '',
        opinionContent: ''
      },
      // 意见-审核人
      reviewOpinion: {
        handler: '',
        handleDate: '',
        opinionContent: ''
      },
      // 意见-审批人
      approvalOpinion: {
        handler: '',
        handleDate: '',
        opinionContent: ''
      },
      formRules: {
        nextNodeID: [
          { required: true, message: '请选择下一步操作', trigger: 'blur' }
        ],
        fileList: [
          { required: true, validator: this.validateFile }
        ],
        revokeFraudContent: [
          { required: true, message: '请输入撤销撤销核实情况', trigger: 'blur' }
        ],
        revokeApplyNo: [
          { required: true, message: '请输入申请撤销联系人电话', trigger: 'blur' },
          { validator: (rule, value, callback) => {
            checkPhoneNumber(rule, value, callback)
          }, trigger: 'blur' }
        ],
        revokeApplyName: [
          { required: true, message: '请输入申请撤销联系人', trigger: 'blur' }
        ],
        reviewer: [
          { required: true, message: '请选择审批人' }
        ],
        endReason: [
          { required: true, message: '请输入结束原因', trigger: 'blur' }
        ],
        opinion: [
          { required: true, message: '请输入经办意见', trigger: 'blur' }
        ],
        canceldocno: [
          { required: true, validator: (rule, value, callback) => {
            if (!this.canceldocno.left || !this.canceldocno.middle || !this.canceldocno.right) {
              callback('请输入撤销撤销决定文书号')
            } else {
              callback()
            }
          } }
        ]
      },
      opinionOptions: [],
      eAlterRecoder: [],
      historyLog: [],
      exmainerOptions: [],
      fileList: [],
      fileList0: [],
      fileList2: [],
      fileList3: [],
      user: JSON.parse(sessionStorage.getItem('user')),
      reviewer: [],
      submitLoading: false,
      nextNodeID: 'approvalCancelCx',
      nextSequenceFlowList: [],
      entInfo: {},
      fraudCheckInfo: {},
      bizFraudInfo: {},
      fraudEntInfo: {},
      revokeTBizFraudInfo: {
        endApply: '1'
      },
      opinions: [],
      readOnly: false,
      editorDisable: false,
      loading: false,
      canceldocno: { // 处理文书号拼接
        left: '',
        middle: '',
        right: ''
      }
    }
  },
  computed: {
    certype() {
      return (value) => {
        const target = this.certypeList.find((item) => {
          return item.value === value
        })
        return target ? target.label : ''
      }
    },
    uploadBodyData() {
      return (attachType) => {
        return {
          attachType,
          id: this.bizseq
        }
      }
    },
    opiniontypeCN() {
      return (value) => {
        return {
          '1': '经办意见',
          '2': '审核人意见',
          '3': '审批人意见'
        }[value]
      }
    },
    opiniontypeCN2() {
      return (value) => {
        return {
          '1': '经办人',
          '2': '审核人',
          '3': '审批人'
        }[value]
      }
    }
  },
  watch: {
    // 监听通过单选框给表单nextNodeID赋值
    'nextNodeID': {
      handler(newVal, oldVal) {
        this.$set(this.revokeTBizFraudInfo, 'nextNodeID', newVal)
        this.$refs.form.validateField('nextNodeID')
      },
      deep: true
    },
    // 意见渲染
    opinion() {
      let name = ''
      this.opinionOptions.forEach(each => {
        if (this.opinion === each.value) {
          name = each.label
        }
      })
      if (this.$util.isNotEmpty(name)) {
        this.$set(this.revokeTBizFraudInfo, 'opinion', name)
        this.$refs.form.validateField('opinion')
      }
    }
  },
  mounted() {
    this.bizseq = this.$route.query.bizseq // 获取跳转携带的参数bizseq
    this.workflowId = this.$route.query.workflowId
    this.readOnly = this.$route.query.onlyShow === 'true'
    // 加载常用语
    this.opinionOptions = this.$util.getCommonWordsWithModule(this.user.primaryKey, '撤销撤销案件')

    const p1 = getCxBusFraudInfo({
      bizSeq: this.bizseq,
      workflowId: this.workflowId,
      readOnly: this.readOnly ? '1' : '0'
    }).then(res => {
      console.info(res)
      if (res.code === 0) {
        this.bizFraudInfo = res.data.bizFraudInfo || {}
        this.fraudPersonInfo = res.data.fraudPersonInfo || {}
        this.entInfo = res.data.entInfo || {}
        this.fraudEntInfo = res.data.fraudEntInfo || {}
        this.revokeTBizFraudInfo = {
          ...res.data.revokeTBizFraudInfo,
          endApply: res.data.revokeTBizFraudInfo.endApply,
          revokeApplyName: res.data.revokeTBizFraudInfo.revokeApplyName,
          revokeApplyNo: res.data.revokeTBizFraudInfo.revokeApplyNo,
          remark: res.data.revokeTBizFraudInfo.remark,
          revokeFraudContent: res.data.revokeTBizFraudInfo.revokeFraudContent
        }
        const canceldocno = this.revokeTBizFraudInfo.canceldocno || ''
        const matchResult = canceldocno.match(/(.*?)〔(.*)〕(.*)/)
        if (matchResult) {
          this.canceldocno.left = matchResult[1] || ''
          this.canceldocno.middle = matchResult[2] || ''
          this.canceldocno.right = matchResult[3] ? matchResult[3].slice(0, -1) : ''
        }
        this.opinions = res.data.opinions || {}
        this.nextSequenceFlowList = (res.data.nextSequenceFlowList || []).map((item) => {
          return {
            ...item,
            loading: false
          }
        })
        queryEAlterByEntNo(
          res.data.entInfo.pripid
        ).then(resa => {
          const data = resa.data
          const list = []
          let index = 0
          data.forEach(each => {
            each.index = ++index
            list.push(each)
          })
          this.eAlterRecoder = list
          return true
        })
      }
    })

    const p2 = listFile({
      attachType: '1',
      id: this.bizseq
    }).then(({ data }) => {
      this.fileList = data.map((item) => {
        return {
          ...item,
          id: item.attachmentid,
          name: item.filename,
          url: `${process.env.VUE_APP_BASE_API}/attachment/download?id=${item.id}`
        }
      })
    })

    const p9 = this.loadReviewer()
    this.fullscreenLoading = true
    Promise.all([p1, p2, p9]).finally(() => {
      this.fullscreenLoading = false
    })
  },
  methods: {
    validateFile(rule, value, callback) {
      const files = this.$refs.fileList.uploadFiles
      if (!files.length) {
        callback(new Error('请选择要上传的材料!'))
      }
      callback()
    },
    toEntDetail(uniscid) {
      this.$router.push({
        path: '/comprehensive/details',
        query: {
          pripid: this.entInfo.pripid
        }
      })
    },
    uploadCallback(res, file) {
      if (res.code === 0) {
        file.id = res.data[0].attachmentid
        file.name = res.data[0].filename
        file.url = `${process.env.VUE_APP_BASE_API}/attachment/download?id=${res.data[0].id}`
        this.$message.success('上传成功')
      }
    },
    removeFile(file) {
      if (file && file.status === 'success') {
        removeAttachementById(file.id).then(res => {
          if (res.code === 0) {
            this.$message.success('删除成功')
          } else {
            this.$message.error(res.msg)
          }
        })
      }
    },
    beforeFileUpload(file) {
      return validBeforeUpload(file, this)
    },
    beforeRemove(file, fileList) {
      if (file && file.status === 'success') {
        return this.$confirm(`确定移除 ${file.name} ？`)
      }
    },
    previewFile(file) {
      window.open(`${process.env.VUE_APP_BASE_API}/attachment/download?id=${file.id}`, '_blank')
    },
    // 点击文件列表中已上传文件进行下载
    handlePreview(file) {
      var a = document.createElement('a')
      var event = new MouseEvent('click')
      a.download = file.name
      a.href = file.url
      a.dispatchEvent(event)
    },
    // 加载审批人
    loadReviewer() {
      getUsersWithPermission('approvalCancelCx', this.user.orgId).then(res => {
        if (res.code === 0) {
          this.reviewer = res.data
        }
      })
    },
    submitForm() {
      this.$refs.form.validate((valid, rules) => {
        if (!valid) {
          this.$message.warning(rules[Object.keys(rules)[0]][0].message)
          return
        }
        this.revokeTBizFraudInfo.canceldocno = this.canceldocno.left + '〔' + this.canceldocno.middle + '〕' + this.canceldocno.right + '号'
        this.$confirm(`是否确认提交？`, '提示', {
          beforeClose: (action, instance, done) => {
            instance.confirmButtonLoading = true
            if (action === 'confirm') {
              processControlrevokeTFraud({
                fraudEntInfo: this.fraudEntInfo,
                revokeTBizFraudInfo: {
                  bizSeq: this.bizseq,
                  revokeApplyName: this.revokeTBizFraudInfo.revokeApplyName,
                  revokeApplyNo: this.revokeTBizFraudInfo.revokeApplyNo,
                  remark: this.revokeTBizFraudInfo.remark,
                  revokeFraudContent: this.revokeTBizFraudInfo.revokeFraudContent,
                  canceldocno: this.revokeTBizFraudInfo.canceldocno
                },
                nextNodeID: this.revokeTBizFraudInfo.nextNodeID,
                bizSeq: this.bizseq,
                workflowId: this.workflowId,
                complaintReason: '1',
                opinion: {
                  opiniontype: '2',
                  opinioncontent: this.revokeTBizFraudInfo.opinion
                },
                nextPerformerIds: this.revokeTBizFraudInfo.nextNodeID === 'startCxAccept' ? [] : [this.revokeTBizFraudInfo.reviewer.primaryKey],
                nextPerformerNames: this.revokeTBizFraudInfo.nextNodeID === 'startCxAccept' ? [] : [this.revokeTBizFraudInfo.reviewer.name]
              }).then((res) => {
                if (res.code === 0) {
                  this.$message.success('提交成功')
                  this.$router.push('/todo/list')
                } else {
                  throw res
                }
              }).finally(() => {
                instance.confirmButtonLoading = false
                done()
              })
            } else if (!instance.confirmButtonLoading) {
              done()
            }
          }
        })
      })
    }
  }
}
</script>

<style lang="scss" scoped>
  .el-row.flex-row{
    display: flex;
    .el-col{
      display: flex;
      .el-form-item{
        width: 100%;
        display: flex;
        /deep/ .el-form-item__label{
          flex-shrink: 0;
        }
        /deep/ .el-form-item__content{
          width: 100%;
          min-height: 60px;
        }
      }
    }
  }
  .uploadFileList.disabled{
    /deep/ .el-upload{
      display: none;
    }
  }
  .el-form-item{
    position: relative;
    /deep/ .el-form-item__label{
      line-height: 40px;
      height: 100%;
      position: absolute;
    }
  }
  .main-content{
    font-size: $table-content-font-size;
    .back-btn{
      position:absolute;
      right:40pt;
    }
    .content-header,.content-body{
      background: white;
      padding:20PX 10PX;
      border:1PX solid #eee;
    }
    .content-header{
      height:60PX;
      .title{
        font-weight: 700;
        font-size: $font-size-sub-title;
      }
    }
    .content-body{
      padding:20pt;
      .tab{
        .tab-title{
          text-align: left;
          padding-left: 20px;
          label{
            color: #000;
            font-weight: bold;
            display:inline-block;
          }
        }
      }
      .form{
        margin-bottom: 20pt;
      }
    }
    .span-content{
      display: inline-block;
      text-indent: 1em;
    }
  }
.canceldocno-input{
  /deep/ .el-input{
    width: 150px;
  }
  /deep/ .el-input__inner{
    border-radius: 0px;
    border-top-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 1px;
  }
}
.autoaddresslock{
  /deep/ .el-form-item .el-form-item__label {
    position: inherit;
}
}
</style>
<style lang="scss">
  .main-content.abnormal{
    .el-form-item{
      margin-bottom:0;
      background: $color-form-label;
      .el-form-item__label{
        padding-left: 20px;
        border-top: 1px solid $color-border;
        border-left: 1px solid $color-border;
        font-size: $table-content-font-size;
      }
      .el-form-item__content{
        font-size: 16px;
        background: white;
        padding: 10px;
        border-top: 1px solid $color-border;
        border-right: 1px solid $color-border;
        border-left: 1px solid $color-border;
        font-size: $table-content-font-size;
        // min-height: 60px;
      }
    }
    .el-form-item:last-child{
      border-bottom: 1px solid $color-border;
    }
    .form-body.history{
      padding:15px;
      border:1px solid $color-border;
    }

    .el-form-item.is-error .custom .el-input__inner{
      border-color:$color-border;
    }
    .el-table-column--selection .cell {
      padding-right: 0px;
    }
    .no {
      padding-left: 0px;
    }
    .el-table_9_column_61.is-left.is-leaf{
      .cell{
        padding-left: 0px;
        padding-right: 0px;
      }
    }
    .el-pagination{
      text-align: right;
    }
    .dialog-box{
      text-align: right;
    }
    .el-textarea.is-disabled .el-textarea__inner{
      color: #1c1e23;
    }
    .el-input.is-disabled .el-input__inner

    .el-input__inner{
      margin-bottom: 5px;
      width: 50%;
    }
  }
</style>
