;(function () {
  var _excluded = [
    'auditStatus',
    'lessonCoverUrl',
    'lessonPrice',
    'lessonDesc',
    'lessonSubject',
    'lessonName',
    'id'
  ]
  function _objectWithoutProperties(source, excluded) {
    if (source == null) return {}
    var target = _objectWithoutPropertiesLoose(source, excluded)
    var key, i
    if (Object.getOwnPropertySymbols) {
      var sourceSymbolKeys = Object.getOwnPropertySymbols(source)
      for (i = 0; i < sourceSymbolKeys.length; i++) {
        key = sourceSymbolKeys[i]
        if (excluded.indexOf(key) >= 0) continue
        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue
        target[key] = source[key]
      }
    }
    return target
  }
  function _objectWithoutPropertiesLoose(source, excluded) {
    if (source == null) return {}
    var target = {}
    var sourceKeys = Object.keys(source)
    var key, i
    for (i = 0; i < sourceKeys.length; i++) {
      key = sourceKeys[i]
      if (excluded.indexOf(key) >= 0) continue
      target[key] = source[key]
    }
    return target
  }
  function ownKeys(object, enumerableOnly) {
    var keys = Object.keys(object)
    if (Object.getOwnPropertySymbols) {
      var symbols = Object.getOwnPropertySymbols(object)
      enumerableOnly &&
        (symbols = symbols.filter(function (sym) {
          return Object.getOwnPropertyDescriptor(object, sym).enumerable
        })),
        keys.push.apply(keys, symbols)
    }
    return keys
  }
  function _objectSpread(target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = null != arguments[i] ? arguments[i] : {}
      i % 2
        ? ownKeys(Object(source), !0).forEach(function (key) {
            _defineProperty(target, key, source[key])
          })
        : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(
            target,
            Object.getOwnPropertyDescriptors(source)
          )
        : ownKeys(Object(source)).forEach(function (key) {
            Object.defineProperty(
              target,
              key,
              Object.getOwnPropertyDescriptor(source, key)
            )
          })
    }
    return target
  }
  function _defineProperty(obj, key, value) {
    if (key in obj) {
      Object.defineProperty(obj, key, {
        value: value,
        enumerable: true,
        configurable: true,
        writable: true
      })
    } else {
      obj[key] = value
    }
    return obj
  }
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
    try {
      var info = gen[key](arg)
      var value = info.value
    } catch (error) {
      reject(error)
      return
    }
    if (info.done) {
      resolve(value)
    } else {
      Promise.resolve(value).then(_next, _throw)
    }
  }
  function _asyncToGenerator(fn) {
    return function () {
      var self = this,
        args = arguments
      return new Promise(function (resolve, reject) {
        var gen = fn.apply(self, args)
        function _next(value) {
          asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value)
        }
        function _throw(err) {
          asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err)
        }
        _next(undefined)
      })
    }
  }
  var __vite_style__ = document.createElement('style')
  __vite_style__.innerHTML =
    '._video-create_k7pw7_1 ._gridName_k7pw7_1{font-size:.37333rem;font-weight:500;color:#b4b4b4;line-height:.53333rem;padding-left:.21333rem}._video-create_k7pw7_1 ._gridName_k7pw7_1._active_k7pw7_8{color:var(--van-primary)}._video-create_k7pw7_1 .van-grid{padding-left:.37333rem;padding-bottom:.32rem;background-color:#f6f8f9}._video-create_k7pw7_1 .van-grid .van-grid-item{padding-right:.37333rem}._video-create_k7pw7_1 .van-grid .van-grid-item:first-child{padding-right:.26667rem}._video-create_k7pw7_1 .van-grid .van-grid-item__content{padding-top:.18667rem;padding-bottom:.18667rem;border-radius:.26667rem;overflow:hidden}._video-create_k7pw7_1 .van-grid .van-badge__wrapper{display:flex;align-items:center}._video-create_k7pw7_1 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._classInfo_umod2_1 ._infoField_umod2_1{width:50vw;font-size:.42667rem}._classInfo_umod2_1 ._infoField_umod2_1 .van-tab{font-size:.42667rem}._classInfo_umod2_1 ._infoField_umod2_1 .van-tabs__nav--line{padding-left:0}._classInfo_umod2_1 ._infoField_umod2_1 .van-tab--active{color:#000}._classInfo_umod2_1 ._boxStyle_umod2_14{background:transparent!important;width:.48rem;height:.48rem;border:transparent!important}._classInfo_umod2_1 .van-radio{display:inline-block;align-items:inherit;overflow:inherit}._classInfo_umod2_1 .van-radio__icon{height:.48rem;line-height:.48rem;display:inline-block;vertical-align:sub}._classInfo_umod2_1 .van-radio__label{line-height:.48rem}._classInfo_umod2_1 ._imgContainer_umod2_34{width:4rem;height:2.26667rem;border-radius:.26667rem;overflow:hidden;margin:0 0 .32rem;position:relative}._classInfo_umod2_1 ._imgContainer_umod2_34 .van-radio{position:absolute;bottom:.26667rem;right:.53333rem;z-index:9}._classInfo_umod2_1 ._btnGroup_umod2_48{padding:0 .37333rem .4rem}._class-info-tip_umod2_52{font-size:.37333rem;color:#999;line-height:.72rem;padding:0 .32rem .32rem}._class-info-tip_umod2_52 span{color:#ff4e19}._photoTip_umod2_61{font-size:.37333rem;color:#999;line-height:.72rem;padding:.13333rem 0}._class-content_1nja4_1 ._upload_1nja4_1{width:4rem;height:2.26667rem;border-radius:.26667rem;overflow:hidden}._class-content_1nja4_1 ._disabled_1nja4_7{opacity:.6}._class-content_1nja4_1 ._titleSection_1nja4_10{display:flex;align-items:center;justify-content:space-between;padding:.32rem .37333rem}._class-content_1nja4_1 ._title_1nja4_10{color:#333;font-size:.42667rem;display:flex;align-items:center;font-weight:600}._class-content_1nja4_1 ._title_1nja4_10:before{content:" ";display:inline-block;width:.08rem;height:.42667rem;background:#01C1B5;border-radius:.08rem;margin-right:.21333rem}._class-content_1nja4_1 ._add-item_1nja4_32{margin:0 .37333rem .32rem;width:calc(100% - 0.74667rem);border-radius:.26667rem;font-weight:500;color:#333;font-size:.4rem;line-height:.53333rem;border:0}._class-content_1nja4_1 ._add-item_1nja4_32 .van-button__icon{color:var(--van-primary);font-weight:500;font-size:.53333rem}._createSubmit_j95ns_1 ._introduction_j95ns_1{color:#7a7a7a;line-height:.61333rem;padding-bottom:.21333rem}\n'
  document.head.appendChild(__vite_style__)
  System.register(
    [
      './vendor-legacy.09f20d09.js',
      './index-legacy.637f35564.js',
      './index-legacy.f25f109a3.js',
      './index-legacy.c1757005.js',
      './index-legacy.535e160e.js',
      './index-legacy.8feab2fc.js',
      './index-legacy.595c24c3.js',
      './toolsValidate-legacy.b90c63da.js',
      './index-legacy.637f35563.js',
      './index-legacy.f25f109a.js',
      './index-legacy.f25f109a5.js',
      './index-legacy.9696b334.js',
      './index-legacy.efae3dab.js',
      './index-legacy.34e07a99.js',
      './index-legacy.f9759ffc.js',
      './index-legacy.141c974d.js',
      './index-legacy.c75fe8a2.js',
      './index-legacy.f25f109a2.js',
      './index-legacy.637f3556.js',
      './index-legacy.f25f109a15.js',
      './index-legacy.f25f109a13.js',
      './index-legacy.f25f109a14.js',
      './index-legacy.637f35565.js',
      './checkbox_default-legacy.88950e5d.js',
      './index-legacy.f25f109a4.js',
      './icon_teacher-legacy.e765b7f7.js',
      './icon_timer2-legacy.b6c78faa.js',
      './icon-jiaozi-legacy.dd5ed0e2.js',
      './bars-legacy.9085ff9b.js'
    ],
    function (exports) {
      'use strict'
      var reactive,
        defineComponent,
        createVNode,
        Form,
        Field,
        createTextVNode,
        Row,
        Col,
        Sticky,
        Button,
        Dialog,
        Fragment,
        Icon,
        Toast,
        isVNode,
        Grid,
        GridItem,
        ColFieldGroup,
        ColField,
        ColPopup,
        ColUpload,
        request,
        state,
        postMessage,
        verifyNumberIntegerAndFloat,
        SubjectModel,
        ColUploadVideo,
        UserDetail,
        SectionDetail,
        CourseVideoItem
      return {
        setters: [
          function (module) {
            reactive = module.h
            defineComponent = module.d
            createVNode = module.a
            Form = module.aa
            Field = module.G
            createTextVNode = module.j
            Row = module.z
            Col = module.A
            Sticky = module.S
            Button = module.B
            Dialog = module.D
            Fragment = module.F
            Icon = module.K
            Toast = module.T
            isVNode = module.x
            Grid = module.W
            GridItem = module.X
          },
          function () {},
          function () {},
          function (module) {
            ColFieldGroup = module.C
            ColField = module.a
          },
          function (module) {
            ColPopup = module.C
          },
          function (module) {
            ColUpload = module.C
          },
          function (module) {
            request = module.r
            state = module.s
            postMessage = module.p
          },
          function (module) {
            verifyNumberIntegerAndFloat = module.v
          },
          function () {},
          function () {},
          function () {},
          function (module) {
            SubjectModel = module.S
          },
          function (module) {
            ColUploadVideo = module.C
          },
          function (module) {
            UserDetail = module.U
          },
          function (module) {
            SectionDetail = module.S
          },
          function (module) {
            CourseVideoItem = module.C
          },
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {},
          function () {}
        ],
        execute: function execute() {
          var gridName = '_gridName_k7pw7_1'
          var active = '_active_k7pw7_8'
          var styles$3 = {
            'video-create': '_video-create_k7pw7_1',
            gridName: gridName,
            active: active
          }
          var classInfo = '_classInfo_umod2_1'
          var infoField = '_infoField_umod2_1'
          var boxStyle = '_boxStyle_umod2_14'
          var imgContainer = '_imgContainer_umod2_34'
          var btnGroup = '_btnGroup_umod2_48'
          var photoTip = '_photoTip_umod2_61'
          var styles$2 = {
            classInfo: classInfo,
            infoField: infoField,
            boxStyle: boxStyle,
            imgContainer: imgContainer,
            btnGroup: btnGroup,
            'class-info-tip': '_class-info-tip_umod2_52',
            photoTip: photoTip
          }
          /*
      https://ks3-cn-beijing.ksyuncs.com/video-course/1657853010619green.png
      https://ks3-cn-beijing.ksyuncs.com/video-course/1657853051064gray.png
      https://ks3-cn-beijing.ksyuncs.com/video-course/1657853062314yellow.png
      https://ks3-cn-beijing.ksyuncs.com/video-course/1657853076136linear.png

      'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJdc.png',
          'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJdl.png',
          'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJdK.png',
          'https://daya.ks3-cn-beijing.ksyun.com/202204/T3unJeA.png',

      */ var createState = reactive({
            groupId: 0,
            active: 1,
            tabIndex: 1,
            loadingStatus: false,
            rate: 0, // 手续费
            subjectList: [], // 声部列表
            templateList: [
              'https://ks3-cn-beijing.ksyuncs.com/video-course/1657853010619green.png',
              'https://ks3-cn-beijing.ksyuncs.com/video-course/1657853051064gray.png',
              'https://ks3-cn-beijing.ksyuncs.com/video-course/1657853062314yellow.png',
              'https://ks3-cn-beijing.ksyuncs.com/video-course/1657853076136linear.png'
            ], // 模板列表
            lessonGroup: {
              id: null,
              lessonName: '',
              lessonSubject: null,
              lessonDesc: '',
              lessonPrice: null,
              lessonCoverUrl: '',
              lessonCoverTemplateUrl: ''
            },
            lessonList: [
              {
                videoTitle: '',
                videoContent: '',
                videoUrl: '',
                coverUrl: '',
                posterUrl: '' // 视频封面图
              }
            ]
          }) // videoUrl: 'https://daya.ks3-cn-beijing.ksyun.com/202204/T1kHuSh.mp4',
          // coverUrl: 'https://daya.ks3-cn-beijing.ksyun.com/202204/T1kK2ao.png'
          var ClassInfo = defineComponent({
            name: 'ClassInfo',
            data: function data() {
              return { subjectStatus: false }
            },
            computed: {
              choiceSubjectIds: function choiceSubjectIds() {
                // 选择的科目编号
                var ids = createState.lessonGroup.lessonSubject
                  ? Number(createState.lessonGroup.lessonSubject)
                  : null
                console.log(ids)
                return ids ? [ids] : []
              },
              subjectList: function subjectList() {
                // 学科列表
                return createState.subjectList || []
              },
              lessonSubjectName: function lessonSubjectName() {
                var _this = this // 选择的科目
                var tempStr = ''
                this.subjectList.forEach(function (item) {
                  if (_this.choiceSubjectIds.includes(item.id)) {
                    tempStr = item.name
                  }
                })
                return tempStr
              },
              calcRatePrice: function calcRatePrice() {
                // 计算手续费
                var rate = createState.rate || 0
                var price = createState.lessonGroup.lessonPrice || 0
                return (price - (rate / 100) * price).toFixed(2)
              }
            },
            mounted: function mounted() {
              return _asyncToGenerator(
                /*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
                  var res
                  return regeneratorRuntime.wrap(
                    function _callee$(_context) {
                      while (1) {
                        switch ((_context.prev = _context.next)) {
                          case 0:
                            _context.prev = 0
                            if (!(createState.subjectList.length <= 0)) {
                              _context.next = 6
                              break
                            }
                            _context.next = 4
                            return request.post(
                              '/api-teacher/teacher/querySubject'
                            )
                          case 4:
                            res = _context.sent
                            createState.subjectList = res.data || []
                          case 6:
                            _context.next = 10
                            break
                          case 8:
                            _context.prev = 8
                            _context.t0 = _context['catch'](0)
                          case 10:
                          case 'end':
                            return _context.stop()
                        }
                      }
                    },
                    _callee,
                    null,
                    [[0, 8]]
                  )
                })
              )()
            },
            methods: {
              onChoice: function onChoice(id) {
                createState.lessonGroup.lessonSubject = id
                this.subjectStatus = false
              },
              onFormatter: function onFormatter(val) {
                return verifyNumberIntegerAndFloat(val)
              },
              tabChange: function tabChange(name) {
                this.$refs.form.resetValidation('lessonCoverTemplateUrl')
                this.$refs.form.resetValidation('lessonCoverUrl')
                createState.tabIndex = name
              },
              selectImg: function selectImg(val) {
                createState.lessonGroup.lessonCoverUrl = ''
                createState.lessonGroup.lessonCoverTemplateUrl = val
              }
            },
            render: function render() {
              var _this2 = this
              return createState.loadingStatus
                ? createVNode('div', null, null)
                : createVNode(
                    Form,
                    {
                      class: styles$2.classInfo,
                      ref: 'form',
                      onSubmit: function onSubmit() {
                        return (createState.active = 2)
                      },
                      onFailed: function onFailed(e) {
                        return console.log(e)
                      },
                      scrollToError: true
                    },
                    {
                      default: function _default() {
                        return [
                          createVNode(ColFieldGroup, null, {
                            default: function _default() {
                              return [
                                createVNode(
                                  ColField,
                                  { title: '课程名称', required: true },
                                  {
                                    default: function _default() {
                                      return [
                                        createVNode(
                                          Field,
                                          {
                                            modelValue:
                                              createState.lessonGroup
                                                .lessonName,
                                            'onUpdate:modelValue':
                                              function onUpdateModelValue(
                                                $event
                                              ) {
                                                return (createState.lessonGroup.lessonName =
                                                  $event)
                                              },
                                            name: 'lessonName',
                                            maxlength: 50,
                                            placeholder: '请输入您的课程名称',
                                            rules: [
                                              {
                                                required: true,
                                                message: '请输入您的课程名称'
                                              }
                                            ]
                                          },
                                          null
                                        )
                                      ]
                                    }
                                  }
                                ),
                                createVNode(
                                  ColField,
                                  { title: '课程声部', required: true },
                                  {
                                    default: function _default() {
                                      return [
                                        createVNode(
                                          Field,
                                          {
                                            modelValue:
                                              _this2.lessonSubjectName,
                                            name: 'lessonSubjectName',
                                            readonly: true,
                                            isLink: true,
                                            onClick: function onClick() {
                                              _this2.subjectStatus = true
                                            },
                                            rules: [
                                              {
                                                required: true,
                                                message: '请选择课程声部'
                                              }
                                            ],
                                            placeholder: '请选择课程声部'
                                          },
                                          null
                                        )
                                      ]
                                    }
                                  }
                                )
                              ]
                            }
                          }),
                          createVNode(ColFieldGroup, null, {
                            default: function _default() {
                              return [
                                createVNode(
                                  ColField,
                                  {
                                    title: '课程介绍',
                                    required: true,
                                    border: false
                                  },
                                  {
                                    default: function _default() {
                                      return [
                                        createVNode(
                                          Field,
                                          {
                                            modelValue:
                                              createState.lessonGroup
                                                .lessonDesc,
                                            'onUpdate:modelValue':
                                              function onUpdateModelValue(
                                                $event
                                              ) {
                                                return (createState.lessonGroup.lessonDesc =
                                                  $event)
                                              },
                                            name: 'lessonDesc',
                                            placeholder: '请输入课程介绍',
                                            rows: '3',
                                            maxlength: 200,
                                            showWordLimit: true,
                                            autosize: true,
                                            rules: [
                                              {
                                                required: true,
                                                message: '请输入课程介绍'
                                              }
                                            ],
                                            type: 'textarea'
                                          },
                                          null
                                        )
                                      ]
                                    }
                                  }
                                )
                              ]
                            }
                          }),
                          createVNode(ColFieldGroup, null, {
                            default: function _default() {
                              return [
                                createVNode(
                                  ColField,
                                  { title: '课程组售价', required: true },
                                  {
                                    default: function _default() {
                                      return [
                                        createVNode(
                                          Field,
                                          {
                                            modelValue:
                                              createState.lessonGroup
                                                .lessonPrice,
                                            'onUpdate:modelValue':
                                              function onUpdateModelValue(
                                                $event
                                              ) {
                                                return (createState.lessonGroup.lessonPrice =
                                                  $event)
                                              },
                                            name: 'lessonPrice',
                                            placeholder: '请输入您的课程组售价',
                                            formatter: _this2.onFormatter,
                                            type: 'number',
                                            maxlength: 8,
                                            rules: [
                                              {
                                                required: true,
                                                message: '请输入您的课程组售价'
                                              }
                                            ]
                                          },
                                          {
                                            button: function button() {
                                              return createVNode('span', null, [
                                                createTextVNode('\u5143')
                                              ])
                                            }
                                          }
                                        )
                                      ]
                                    }
                                  }
                                )
                              ]
                            }
                          }),
                          createVNode(
                            'div',
                            { class: styles$2['class-info-tip'] },
                            [
                              createVNode('p', null, [
                                createTextVNode(
                                  '\u6263\u9664\u624B\u7EED\u8D39\u540E\u60A8\u7684\u8BFE\u7A0B\u9884\u8BA1\u6536\u5165\u4E3A\uFF1A'
                                )
                              ]),
                              createVNode('p', null, [
                                createTextVNode(
                                  '\u8BFE\u7A0B\u7EC4\u603B\u6536\u5165'
                                ),
                                createVNode('span', null, [
                                  _this2.calcRatePrice
                                ]),
                                createTextVNode('\u5143/\u4EBA')
                              ]),
                              createVNode('p', null, [
                                createTextVNode(
                                  '\u60A8\u7684\u8BFE\u7A0B\u6536\u5165\u5C06\u5728\u8BFE\u7A0B\u7ED3\u675F\u540E\u7ED3\u7B97\u5230\u60A8\u7684\u8D26\u6237\u4E2D'
                                )
                              ])
                            ]
                          ),
                          createVNode(ColFieldGroup, null, {
                            default: function _default() {
                              return [
                                createVNode(
                                  ColField,
                                  { required: true, border: false },
                                  {
                                    default: function _default() {
                                      return [
                                        createVNode(
                                          'p',
                                          { class: styles$2.photoTip },
                                          [
                                            createTextVNode(
                                              '\u6A21\u677F\u56FE\u7247\u5C06\u4F5C\u4E3A\u8BE5\u8BFE\u7A0B\u5C01\u9762\u4E3A\u5B66\u5458\u5C55\u793A'
                                            )
                                          ]
                                        ),
                                        createVNode(
                                          Field,
                                          {
                                            name: 'lessonCoverUrl',
                                            rules: [
                                              {
                                                required: true,
                                                message: '请上传自定义模板'
                                              }
                                            ]
                                          },
                                          {
                                            input: function input() {
                                              return createVNode(
                                                Row,
                                                {
                                                  justify: 'space-between',
                                                  style: { width: '100%' }
                                                },
                                                {
                                                  default: function _default() {
                                                    return [
                                                      createVNode(
                                                        Col,
                                                        {
                                                          span: 12,
                                                          class:
                                                            styles$2.imgContainer
                                                        },
                                                        {
                                                          default:
                                                            function _default() {
                                                              return [
                                                                createVNode(
                                                                  ColUpload,
                                                                  {
                                                                    cropper: true,
                                                                    bucket:
                                                                      'video-course',
                                                                    options: {
                                                                      fixedNumber:
                                                                        [
                                                                          1.77,
                                                                          1
                                                                        ],
                                                                      autoCropWidth: 750,
                                                                      autoCropHeight: 424
                                                                    },
                                                                    onUploadChange:
                                                                      function onUploadChange(
                                                                        val
                                                                      ) {
                                                                        if (
                                                                          val
                                                                        ) {
                                                                          createState.lessonGroup.lessonCoverTemplateUrl =
                                                                            ''
                                                                        }
                                                                      },
                                                                    modelValue:
                                                                      createState
                                                                        .lessonGroup
                                                                        .lessonCoverUrl,
                                                                    'onUpdate:modelValue':
                                                                      function onUpdateModelValue(
                                                                        $event
                                                                      ) {
                                                                        return (createState.lessonGroup.lessonCoverUrl =
                                                                          $event)
                                                                      },
                                                                    class:
                                                                      styles$2.imgContainer
                                                                  },
                                                                  null
                                                                )
                                                              ]
                                                            }
                                                        }
                                                      ),
                                                      createVNode(
                                                        Col,
                                                        { span: 24 },
                                                        {
                                                          default:
                                                            function _default() {
                                                              return [
                                                                createVNode(
                                                                  'p',
                                                                  {
                                                                    class:
                                                                      styles$2.photoTip,
                                                                    style: {
                                                                      color:
                                                                        '#ff4e19',
                                                                      padding:
                                                                        '0'
                                                                    }
                                                                  },
                                                                  [
                                                                    createTextVNode(
                                                                      '\u56FE\u7247\u5C3A\u5BF8\u4E3A750*424\u80FD\u8FBE\u5230\u6700\u4F73\u663E\u793A\u6548\u679C'
                                                                    )
                                                                  ]
                                                                )
                                                              ]
                                                            }
                                                        }
                                                      )
                                                    ]
                                                  }
                                                }
                                              )
                                            }
                                          }
                                        )
                                      ]
                                    },
                                    title: function title() {
                                      return (
                                        // <Tabs
                                        //   v-model:active={createState.tabIndex}
                                        //   class={styles.infoField}
                                        //   onChange={this.tabChange}
                                        //   shrink
                                        //   color="var(--van-primary)"
                                        //   lineWidth={20}
                                        // >
                                        //   <Tab title="图片模板" name={1}></Tab>
                                        //   <Tab title="自定义模板" name={2}></Tab>
                                        // </Tabs>
                                        createVNode('p', null, [
                                          createTextVNode(
                                            '\u8BF7\u4E0A\u4F20\u81EA\u5B9A\u4E49\u6A21\u677F'
                                          )
                                        ])
                                      )
                                    }
                                  }
                                )
                              ]
                            }
                          }),
                          createVNode(
                            Sticky,
                            { offsetBottom: 0, position: 'bottom' },
                            {
                              default: function _default() {
                                return [
                                  createVNode('div', { class: ['btnGroup'] }, [
                                    createVNode(
                                      Button,
                                      {
                                        block: true,
                                        round: true,
                                        type: 'primary',
                                        'native-type': 'submit'
                                      },
                                      {
                                        default: function _default() {
                                          return [
                                            createTextVNode(
                                              '\u4E0B\u4E00\u6B65'
                                            )
                                          ]
                                        }
                                      }
                                    )
                                  ])
                                ]
                              }
                            }
                          ),
                          createVNode(
                            ColPopup,
                            {
                              modelValue: _this2.subjectStatus,
                              'onUpdate:modelValue':
                                function onUpdateModelValue($event) {
                                  return (_this2.subjectStatus = $event)
                                },
                              destroy: true
                            },
                            {
                              default: function _default() {
                                return [
                                  createVNode(
                                    SubjectModel,
                                    {
                                      selectType: 'Radio',
                                      single: true,
                                      subjectList: createState.subjectList,
                                      choiceSubjectIds: _this2.choiceSubjectIds,
                                      onChoice: _this2.onChoice
                                    },
                                    null
                                  )
                                ]
                              }
                            }
                          )
                        ]
                      }
                    }
                  )
            }
          })
          var upload = '_upload_1nja4_1'
          var disabled = '_disabled_1nja4_7'
          var titleSection = '_titleSection_1nja4_10'
          var title = '_title_1nja4_10'
          var styles$1 = {
            'class-content': '_class-content_1nja4_1',
            upload: upload,
            disabled: disabled,
            titleSection: titleSection,
            title: title,
            'add-item': '_add-item_1nja4_32'
          }
          var ClassContent = defineComponent({
            name: 'ClassContent',
            data: function data() {
              return { url: '', checked: null }
            },
            methods: {
              onSubmit: function onSubmit(values) {
                createState.active = 3
              },
              addItem: function addItem() {
                createState.lessonList.push({
                  videoTitle: '',
                  videoContent: '',
                  videoUrl: '',
                  coverUrl: '',
                  posterUrl: '' // 视频封面图
                })
              },
              removeItem: function removeItem(index) {
                // 最少一节课
                if (createState.lessonList.length <= 1) return
                Dialog.confirm({
                  title: '操作',
                  message:
                    '\u786E\u5B9A\u5220\u9664\u8BE5\u6761\u6570\u636E\u5417\uFF1F',
                  confirmButtonColor: '#01C1B5'
                }).then(function () {
                  createState.lessonList.splice(index, 1)
                })
              }
            },
            render: function render() {
              var _this3 = this
              return createVNode(
                Form,
                {
                  class: styles$1['class-content'],
                  onSubmit: this.onSubmit,
                  scrollToError: true
                },
                {
                  default: function _default() {
                    return [
                      createState.lessonList.map(function (item, index) {
                        return createVNode(Fragment, null, [
                          createVNode('div', { class: styles$1.titleSection }, [
                            createVNode('span', { class: styles$1.title }, [
                              createTextVNode('\u7B2C'),
                              index + 1,
                              createTextVNode('\u8BFE')
                            ]),
                            createVNode(
                              Icon,
                              {
                                name: 'delete-o',
                                style: { fontWeight: 600 },
                                class:
                                  createState.lessonList.length <= 1
                                    ? styles$1.disabled
                                    : null,
                                onClick: function onClick() {
                                  return _this3.removeItem(index)
                                },
                                size: 20
                              },
                              null
                            )
                          ]),
                          createVNode(ColFieldGroup, null, {
                            default: function _default() {
                              return [
                                createVNode(
                                  ColField,
                                  { title: '课程标题', required: true },
                                  {
                                    default: function _default() {
                                      return [
                                        createVNode(
                                          Field,
                                          {
                                            modelValue: item.videoTitle,
                                            'onUpdate:modelValue':
                                              function onUpdateModelValue(
                                                $event
                                              ) {
                                                return (item.videoTitle =
                                                  $event)
                                              },
                                            maxlength: 50,
                                            rules: [
                                              {
                                                required: true,
                                                message: '请输入课程标题'
                                              }
                                            ],
                                            name: 'videoTitle',
                                            placeholder: '请输入您的课程标题'
                                          },
                                          null
                                        )
                                      ]
                                    }
                                  }
                                ),
                                createVNode(
                                  ColField,
                                  { title: '课程内容', required: true },
                                  {
                                    default: function _default() {
                                      return [
                                        createVNode(
                                          Field,
                                          {
                                            modelValue: item.videoContent,
                                            'onUpdate:modelValue':
                                              function onUpdateModelValue(
                                                $event
                                              ) {
                                                return (item.videoContent =
                                                  $event)
                                              },
                                            type: 'textarea',
                                            rows: '2',
                                            autosize: true,
                                            showWordLimit: true,
                                            maxlength: 200,
                                            rules: [
                                              {
                                                required: true,
                                                message: '请输入课程内容'
                                              }
                                            ],
                                            name: 'videoContent',
                                            placeholder: '请输入您的课程内容'
                                          },
                                          null
                                        )
                                      ]
                                    }
                                  }
                                ),
                                createVNode(
                                  ColField,
                                  {
                                    title: '课程视频及视频封面',
                                    required: true,
                                    border: false
                                  },
                                  {
                                    default: function _default() {
                                      return [
                                        createVNode(
                                          Row,
                                          {
                                            justify: 'space-between',
                                            style: {
                                              width: '100%',
                                              paddingTop: '12px'
                                            }
                                          },
                                          {
                                            default: function _default() {
                                              return [
                                                createVNode(
                                                  Col,
                                                  { span: 12 },
                                                  {
                                                    default:
                                                      function _default() {
                                                        return [
                                                          createVNode(
                                                            Field,
                                                            {
                                                              style: {
                                                                padding: 0
                                                              },
                                                              name: 'videoUrl',
                                                              rules: [
                                                                {
                                                                  required: true,
                                                                  message:
                                                                    '请上传课程视频'
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              input:
                                                                function input() {
                                                                  return createVNode(
                                                                    ColUploadVideo,
                                                                    {
                                                                      bucket:
                                                                        'video-course',
                                                                      modelValue:
                                                                        item.videoUrl,
                                                                      'onUpdate:modelValue':
                                                                        function onUpdateModelValue(
                                                                          $event
                                                                        ) {
                                                                          return (item.videoUrl =
                                                                            $event)
                                                                        },
                                                                      posterUrl:
                                                                        item.posterUrl,
                                                                      'onUpdate:posterUrl':
                                                                        function onUpdatePosterUrl(
                                                                          $event
                                                                        ) {
                                                                          return (item.posterUrl =
                                                                            $event)
                                                                        },
                                                                      class:
                                                                        styles$1.upload,
                                                                      tips: '点击上传视频'
                                                                    },
                                                                    null
                                                                  )
                                                                }
                                                            }
                                                          )
                                                        ]
                                                      }
                                                  }
                                                ),
                                                createVNode(
                                                  Col,
                                                  { span: 12 },
                                                  {
                                                    default:
                                                      function _default() {
                                                        return [
                                                          createVNode(
                                                            Field,
                                                            {
                                                              style: {
                                                                padding: 0
                                                              },
                                                              name: 'coverUrl',
                                                              rules: [
                                                                {
                                                                  required: true,
                                                                  message:
                                                                    '请上传课程封面'
                                                                }
                                                              ],
                                                              error: true
                                                            },
                                                            {
                                                              input:
                                                                function input() {
                                                                  return createVNode(
                                                                    ColUpload,
                                                                    {
                                                                      class:
                                                                        styles$1.upload,
                                                                      cropper: true,
                                                                      bucket:
                                                                        'video-course',
                                                                      options: {
                                                                        fixedNumber:
                                                                          [
                                                                            1.77,
                                                                            1
                                                                          ],
                                                                        autoCropWidth: 750,
                                                                        autoCropHeight: 424
                                                                      },
                                                                      modelValue:
                                                                        item.coverUrl,
                                                                      'onUpdate:modelValue':
                                                                        function onUpdateModelValue(
                                                                          $event
                                                                        ) {
                                                                          return (item.coverUrl =
                                                                            $event)
                                                                        },
                                                                      tips: '点击上传视频封面'
                                                                    },
                                                                    null
                                                                  )
                                                                }
                                                            }
                                                          )
                                                        ]
                                                      }
                                                  }
                                                )
                                              ]
                                            }
                                          }
                                        )
                                      ]
                                    }
                                  }
                                )
                              ]
                            }
                          })
                        ])
                      }),
                      createVNode(
                        Button,
                        {
                          class: styles$1['add-item'],
                          block: true,
                          icon: 'add-o',
                          onClick: _this3.addItem
                        },
                        {
                          default: function _default() {
                            return [createTextVNode('\u6DFB\u52A0\u8BFE\u7A0B')]
                          }
                        }
                      ),
                      createVNode(
                        Sticky,
                        { offsetBottom: 0, position: 'bottom', zIndex: 999999 },
                        {
                          default: function _default() {
                            return [
                              createVNode(
                                'div',
                                { class: ['btnGroup', 'btnMore'] },
                                [
                                  createVNode(
                                    Button,
                                    {
                                      block: true,
                                      round: true,
                                      type: 'primary',
                                      plain: true,
                                      onClick: function onClick() {
                                        createState.active = 1
                                      }
                                    },
                                    {
                                      default: function _default() {
                                        return [
                                          createTextVNode('\u4E0A\u4E00\u6B65')
                                        ]
                                      }
                                    }
                                  ),
                                  createVNode(
                                    Button,
                                    {
                                      block: true,
                                      round: true,
                                      type: 'primary',
                                      'native-type': 'submit'
                                    },
                                    {
                                      default: function _default() {
                                        return [createTextVNode('\u63D0\u4EA4')]
                                      }
                                    }
                                  )
                                ]
                              )
                            ]
                          }
                        }
                      )
                    ]
                  }
                }
              )
            }
          })
          var nameActive =
            'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAAAXNSR0IArs4c6QAACOhJREFUeNrtnFtTFEcUx/cpVXnKR0i+QKqSF5MoIHhBjBoBxYdUHkxSlVipinn1IWWlNErMg9GoiUnlIYm5VfmSRMAbchHBeAMWQa67y2UZWMC7sCPLbuecnntPz+zC9OKCQ9W/dpddZnp/9Dl9+vTpDgSewc8IIS9KJFEQTcofSwn5sDQnV40m5aCUlMNSMj4Jz2UUPsff0ffgM/hZ+jfwt3iNwHL+GSMzK8aST/dKc/GG0bm4DCIeJeO18Jp47WUBKRKPvxJNxj8fTcR7BQByF9wD74X3XHKgRsns61JKPg1fJJl1UHYl6b2hDTkPKkpmX4PGVkGjU88AFKsUtgXblHOgQuTeS+Ccj4ISOQDKImwTtg3bmBOwpLmZMmiQlGugOOAkbOszA0UIeUHtValch2WClsI2Y9sXt1eR+MtSKn5jqYCygYO243dYFFjjT5++Gp2Ljy5VWJrwO+B3yW7PSsTzo3Mz95c6LAPazH38TlmDBTeZWS6wTJoRDk0xw+XTs3g9TZh5onNcDj4rE5/meSCgocMSHg0XMnp6CjkwZnleYJlitaNeIvjUcwgsNe8ZgTo3lJ43WOZp1LzmnqJM8eL0FNk3ESIfjHaRHcNBsn24nWrbUBuolZQPom6RMlTkJimlukG2hm+Qd8LXqbaErlFtHviPatPAVbKp/yp5u7+FamNfM1VJ7xVSDr/fPdRO/rw3TIYTM4tjmjRF4zHrMJiYJpVTYbJjpAMUJBUqKCoKq42Uq8AQVqkZlhlY6Lod1gAfFmpDbxNVcc9l8hFcr1N+6CnLkVFqSM1nefrvVE5FDFhmYCostndpwKywrll6lyOsPjss1PruRvI+AA/PPvEwaspVaTOlXpN/aIYKrA4VVtABVq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RUI1q6iYe+0xx+FZq2u+09I9cig/YsgvIQkC5hV+LCNE3BAi3Up7DsA0Ix8M+zVdMefBdRVgLWq9qx4b/sym8yFXIalTUWzR9Tq8VY1+Ux8po1xBEtr61SP2BgDsDPDHgFrJaTYDmDmhVyZrQLmSN4QbznDwWm4EFgmCoEsLtXW/YkpqeWIp4Y8057zCBpTFGBnqNaG8MKyVUBWM0ombFi04NS8gKHB0oqBFx8p3pTDBtYwjrV2IBCeypCzQ9mEY1m78jGOtGYUWe1OO+DmrWrylrB0lVMGdACaoo2zC2GFEpyW0NdocLHKFVkjP0SgvFLVrp9t6LGI2u4kq6Hub0yhWFd71psKgRmwZ1p+yFqWg+MZWFLDOXoXmvsvglWO6KvQMnAcVYp8jKHBWlFzhg57m+U21Mlq2dzrvW1ZgUh1lplWfMJl5mS1trUXuaE2zrWRe5SF45JEYKoEpxw6rNJENfQMa0VNEb0EKZgFtGlbNmU1BXP6U4DpwV4x0siHNctQOYWBZ2D8ehK9YNpY7CW/QPK9Fpq2WgeMQaXis4OYrjtdVQIWy/JbhVTgaX6S2lcw5ufFZbWdV2H6cPFvPzRuH25Ck69wkyx7WaBRmuxBR+Ge3gbah/fOgLF0w30Vp4fcdAzj8XQ8j34xrWOH/0GfYS2BYS2/dZqWVZ+mH1EGkvZEyGJ4sIGh7YbDYVgsKdBAaQ82LJZHZ7jScRDamQwn8A20VdqjM4mHs2bx+B/q2FWJx/8SD5jKecA08Qhz4iH5uXlIPrENQ2Kjj7nZ6EPvCBay95zTrWQSmxUltsNKbLgW1xuuJbb0S2wamdiWdIFufDsmcePbscWx8W20H4utlYvUByw6zVsr82f8HR8TD1sr/w8G6m2Ad+vtrQAAAABJRU5ErkJggg=='
          var createSubmit = '_createSubmit_j95ns_1'
          var introduction = '_introduction_j95ns_1'
          var styles = {
            createSubmit: createSubmit,
            introduction: introduction
          }
          function _isSlot(s) {
            return (
              typeof s === 'function' ||
              (Object.prototype.toString.call(s) === '[object Object]' &&
                !isVNode(s))
            )
          }
          var CreateSubmit = defineComponent({
            name: 'CreateSubmit',
            computed: {
              userInfo: function userInfo() {
                var videoDetail = createState.lessonGroup
                var users = state.user.data || {}
                return {
                  username:
                    users.username || '\u6E38\u5BA2'.concat(users.id || ''),
                  headUrl: users.headUrl,
                  lessonName: videoDetail.lessonName,
                  buyNum: 0,
                  lessonDesc: videoDetail.lessonDesc,
                  lessonPrice: videoDetail.lessonPrice,
                  lessonCoverUrl:
                    videoDetail.lessonCoverTemplateUrl ||
                    videoDetail.lessonCoverUrl,
                  lessonNum: createState.lessonList.length,
                  auditVersion: 0
                }
              },
              lessonList: function lessonList() {
                return createState.lessonList || []
              }
            },
            methods: {
              onSubmit: function onSubmit() {
                var _this4 = this
                return _asyncToGenerator(
                  /*#__PURE__*/ regeneratorRuntime.mark(function _callee2() {
                    var videoDetail, params
                    return regeneratorRuntime.wrap(
                      function _callee2$(_context2) {
                        while (1) {
                          switch ((_context2.prev = _context2.next)) {
                            case 0:
                              _context2.prev = 0
                              videoDetail = createState.lessonGroup
                              params = {
                                lessonList: _this4.lessonList,
                                lessonGroup: _objectSpread(
                                  _objectSpread({}, videoDetail),
                                  {},
                                  {
                                    lessonCoverUrl:
                                      videoDetail.lessonCoverTemplateUrl ||
                                      videoDetail.lessonCoverUrl
                                  }
                                )
                              }
                              if (!createState.groupId) {
                                _context2.next = 9
                                break
                              }
                              _context2.next = 6
                              return request.post(
                                '/api-teacher/videoLessonGroup/update',
                                { data: params }
                              )
                            case 6:
                              Toast.success('修改成功')
                              _context2.next = 12
                              break
                            case 9:
                              _context2.next = 11
                              return request.post(
                                '/api-teacher/videoLessonGroup/add',
                                { data: params }
                              )
                            case 11:
                              Toast.success('创建成功')
                            case 12:
                              setTimeout(function () {
                                postMessage({ api: 'back' })
                              }, 1000)
                              _context2.next = 17
                              break
                            case 15:
                              _context2.prev = 15
                              _context2.t0 = _context2['catch'](0)
                            case 17:
                            case 'end':
                              return _context2.stop()
                          }
                        }
                      },
                      _callee2,
                      null,
                      [[0, 15]]
                    )
                  })
                )()
              }
            },
            render: function render() {
              var _this5 = this
              var _slot
              return createVNode('div', { class: [styles.createSubmit] }, [
                createVNode(UserDetail, { userInfo: this.userInfo }, null),
                createVNode(SectionDetail, null, {
                  default: function _default() {
                    return [
                      createVNode('p', { class: styles.introduction }, [
                        _this5.userInfo.lessonDesc
                      ])
                    ]
                  }
                }),
                createVNode(
                  SectionDetail,
                  { title: '课程列表', icon: 'courseList', class: 'mb12' },
                  _isSlot(
                    (_slot = this.lessonList.map(function (item) {
                      return createVNode(
                        CourseVideoItem,
                        {
                          class: 'mb12',
                          detail: {
                            title: item.videoTitle,
                            content: item.videoContent,
                            imgUrl: item.coverUrl
                          }
                        },
                        null
                      )
                    }))
                  )
                    ? _slot
                    : {
                        default: function _default() {
                          return [_slot]
                        }
                      }
                ),
                createVNode(
                  Sticky,
                  { offsetBottom: 0, position: 'bottom' },
                  {
                    default: function _default() {
                      return [
                        createVNode('div', { class: ['btnGroup', 'btnMore'] }, [
                          createVNode(
                            Button,
                            {
                              block: true,
                              round: true,
                              type: 'primary',
                              plain: true,
                              onClick: function onClick() {
                                createState.active = 2
                              }
                            },
                            {
                              default: function _default() {
                                return [
                                  createTextVNode('\u8FD4\u56DE\u7F16\u8F91')
                                ]
                              }
                            }
                          ),
                          createVNode(
                            Button,
                            {
                              block: true,
                              round: true,
                              type: 'primary',
                              onClick: _this5.onSubmit
                            },
                            {
                              default: function _default() {
                                return [
                                  createTextVNode('\u521B\u5EFA\u5B8C\u6210')
                                ]
                              }
                            }
                          )
                        ])
                      ]
                    }
                  }
                )
              ])
            }
          })
          var create = exports(
            'default',
            defineComponent({
              name: 'Create',
              created: function created() {
                var _this6 = this
                return _asyncToGenerator(
                  /*#__PURE__*/ regeneratorRuntime.mark(function _callee3() {
                    var query,
                      res,
                      result,
                      _result$lessonGroup,
                      auditStatus,
                      lessonCoverUrl,
                      lessonPrice,
                      lessonDesc,
                      lessonSubject,
                      lessonName,
                      id,
                      group,
                      statusUrl
                    return regeneratorRuntime.wrap(
                      function _callee3$(_context3) {
                        while (1) {
                          switch ((_context3.prev = _context3.next)) {
                            case 0:
                              query = _this6.$route.query
                              createState.groupId = Number(query.groupId) || 0 // 判断是否是编辑
                              if (createState.groupId) {
                                _context3.next = 4
                                break
                              }
                              return _context3.abrupt('return', false)
                            case 4:
                              _context3.prev = 4
                              document.title = '修改视频课'
                              createState.loadingStatus = true
                              _context3.next = 9
                              return request.get(
                                '/api-teacher/videoLessonGroup/selectVideoLesson',
                                { params: { groupId: createState.groupId } }
                              )
                            case 9:
                              res = _context3.sent
                              result = res.data
                              ;(_result$lessonGroup = result.lessonGroup),
                                (auditStatus = _result$lessonGroup.auditStatus),
                                (lessonCoverUrl =
                                  _result$lessonGroup.lessonCoverUrl),
                                (lessonPrice = _result$lessonGroup.lessonPrice),
                                (lessonDesc = _result$lessonGroup.lessonDesc),
                                (lessonSubject =
                                  _result$lessonGroup.lessonSubject),
                                (lessonName = _result$lessonGroup.lessonName),
                                (id = _result$lessonGroup.id),
                                (group = _objectWithoutProperties(
                                  _result$lessonGroup,
                                  _excluded
                                )) // 判断模板图片是否在模板列表中，如果不在则是用户自己上传的图片
                              statusUrl = createState.templateList.includes(
                                lessonCoverUrl
                              )
                                ? true
                                : false
                              createState.lessonGroup = {
                                id: id,
                                lessonName: lessonName,
                                lessonSubject: lessonSubject,
                                lessonDesc: lessonDesc,
                                lessonPrice: lessonPrice,
                                lessonCoverTemplateUrl: statusUrl
                                  ? lessonCoverUrl
                                  : '',
                                lessonCoverUrl: statusUrl ? '' : lessonCoverUrl
                              }
                              createState.lessonList = []
                              result.detailList &&
                                result.detailList.forEach(function (item) {
                                  createState.lessonList.push({
                                    videoTitle: item.videoTitle,
                                    videoContent: item.videoContent,
                                    videoUrl: item.videoUrl,
                                    coverUrl: item.coverUrl,
                                    posterUrl: item.posterUrl // 视频封面图
                                  })
                                })
                              createState.loadingStatus = false
                              _context3.next = 21
                              break
                            case 19:
                              _context3.prev = 19
                              _context3.t0 = _context3['catch'](4)
                            case 21:
                              if (
                                createState.lessonGroup.lessonCoverUrl &&
                                !createState.templateList.includes(
                                  createState.lessonGroup.lessonCoverUrl
                                )
                              ) {
                                createState.tabIndex = 2
                              } else {
                                createState.tabIndex = 1
                              }
                            case 22:
                            case 'end':
                              return _context3.stop()
                          }
                        }
                      },
                      _callee3,
                      null,
                      [[4, 19]]
                    )
                  })
                )()
              },
              mounted: function mounted() {
                return _asyncToGenerator(
                  /*#__PURE__*/ regeneratorRuntime.mark(function _callee4() {
                    var sysConfig
                    return regeneratorRuntime.wrap(
                      function _callee4$(_context4) {
                        while (1) {
                          switch ((_context4.prev = _context4.next)) {
                            case 0:
                              _context4.prev = 0
                              _context4.next = 3
                              return request.get(
                                '/api-teacher/sysConfig/queryByParamName',
                                {
                                  params: {
                                    paramName: 'video_lesson_service_fee'
                                  }
                                }
                              )
                            case 3:
                              sysConfig = _context4.sent
                              createState.rate = sysConfig.data.paramValue
                              _context4.next = 9
                              break
                            case 7:
                              _context4.prev = 7
                              _context4.t0 = _context4['catch'](0)
                            case 9:
                            case 'end':
                              return _context4.stop()
                          }
                        }
                      },
                      _callee4,
                      null,
                      [[0, 7]]
                    )
                  })
                )()
              },
              render: function render() {
                return createVNode('div', { class: styles$3['video-create'] }, [
                  createState.active <= 2
                    ? createVNode(
                        Sticky,
                        { position: 'top', offsetTop: 0, zIndex: 999999 },
                        {
                          default: function _default() {
                            return [
                              createVNode(
                                Grid,
                                {
                                  border: false,
                                  style: { paddingTop: '15px' },
                                  direction: 'horizontal',
                                  columnNum: '2'
                                },
                                {
                                  default: function _default() {
                                    return [
                                      createVNode(GridItem, null, {
                                        default: function _default() {
                                          return createVNode(Fragment, null, [
                                            createVNode(
                                              Icon,
                                              { name: nameActive, size: 38 },
                                              null
                                            ),
                                            createVNode(
                                              'span',
                                              {
                                                class: [
                                                  styles$3.gridName,
                                                  createState.active >= 1
                                                    ? styles$3.active
                                                    : null
                                                ]
                                              },
                                              [
                                                createTextVNode(
                                                  '\u8BFE\u7A0B\u4FE1\u606F'
                                                )
                                              ]
                                            )
                                          ])
                                        }
                                      }),
                                      createVNode(GridItem, null, {
                                        default: function _default() {
                                          return createVNode(Fragment, null, [
                                            createVNode(
                                              Icon,
                                              {
                                                name:
                                                  createState.active === 2
                                                    ? educationActive
                                                    : education,
                                                size: 38
                                              },
                                              null
                                            ),
                                            createVNode(
                                              'span',
                                              {
                                                class: [
                                                  styles$3.gridName,
                                                  createState.active === 2
                                                    ? styles$3.active
                                                    : null
                                                ]
                                              },
                                              [
                                                createTextVNode(
                                                  '\u8BFE\u7A0B\u5185\u5BB9'
                                                )
                                              ]
                                            )
                                          ])
                                        }
                                      })
                                    ]
                                  }
                                }
                              )
                            ]
                          }
                        }
                      )
                    : null,
                  createState.active === 1
                    ? createVNode(Fragment, null, [
                        createVNode(ClassInfo, null, null)
                      ])
                    : null,
                  createState.active === 2
                    ? createVNode(Fragment, null, [
                        createVNode(ClassContent, null, null)
                      ])
                    : null,
                  createState.active === 3
                    ? createVNode(Fragment, null, [
                        createVNode(CreateSubmit, null, null)
                      ])
                    : null
                ])
              }
            })
          )
        }
      }
    }
  )
})()
