!(function () { function e(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e) t && (r = r.filter(function (t) { return Object.getOwnPropertyDescriptor(e, t).enumerable })), n.push.apply(n, r) } return n } function t(t) { for (var r = 1; r < arguments.length; r++) { var o = null != arguments[r] ? arguments[r] : {} r % 2 ? e(Object(o), !0).forEach(function (e) { n(t, e, o[e]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : e(Object(o)).forEach(function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(o, e)) }) } return t } function n(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = n), e ) } function r(e) { return ( (function (e) { if (Array.isArray(e)) return s(e) })(e) || (function (e) { if (('undefined' != typeof Symbol && null != e[Symbol.iterator]) || null != e['@@iterator']) return Array.from(e) })(e) || l(e) || (function () { throw new TypeError( 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' ) })() ) } function o(e, t) { var n = ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator'] if (!n) { if (Array.isArray(e) || (n = l(e)) || (t && e && 'number' == typeof e.length)) { n && (e = n) var r = 0, o = function () {} return { s: o, n: function () { return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] } }, e: function (e) { throw e }, f: o, } } throw new TypeError( 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' ) } var a, i = !0, c = !1 return { s: function () { n = n.call(e) }, n: function () { var e = n.next() return (i = e.done), e }, e: function (e) { ;(c = !0), (a = e) }, f: function () { try { i || null == n.return || n.return() } finally { if (c) throw a } }, } } function a(e, t, n, r, o, a, i) { try { var c = e[a](i), l = c.value } catch (s) { return void n(s) } c.done ? t(l) : Promise.resolve(l).then(r, o) } function i(e) { return function () { var t = this, n = arguments return new Promise(function (r, o) { var i = e.apply(t, n) function c(e) { a(i, r, o, c, l, 'next', e) } function l(e) { a(i, r, o, c, l, 'throw', e) } c(void 0) }) } } function c(e, t) { return ( (function (e) { if (Array.isArray(e)) return e })(e) || (function (e, t) { var n = null == e ? null : ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator'] if (null == n) return var r, o, a = [], i = !0, c = !1 try { for (n = n.call(e); !(i = (r = n.next()).done) && (a.push(r.value), !t || a.length !== t); i = !0); } catch (l) { ;(c = !0), (o = l) } finally { try { i || null == n.return || n.return() } finally { if (c) throw o } } return a })(e, t) || l(e, t) || (function () { throw new TypeError( 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' ) })() ) } function l(e, t) { if (e) { if ('string' == typeof e) return s(e, t) var n = Object.prototype.toString.call(e).slice(8, -1) return ( 'Object' === n && e.constructor && (n = e.constructor.name), 'Map' === n || 'Set' === n ? Array.from(e) : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? s(e, t) : void 0 ) } } function s(e, t) { ;(null == t || t > e.length) && (t = e.length) for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n] return r } var u = document.createElement('style') ;(u.innerHTML = '._accompany_x19jj_1{min-height:100vh;overflow:hidden}._accompany_x19jj_1 .van-sticky--fixed{box-shadow:.13333rem .13333rem .13333rem rgba(0,0,0,.03)}._accompany_x19jj_1 .van-dropdown-menu__bar{box-shadow:none;background-color:#f8f9fc;height:auto;padding:.4rem 0 .13333rem}._accompany_x19jj_1 .van-tab{color:gray}._accompany_x19jj_1 .van-tab--active span{color:#01c1b5}._accompany_x19jj_1 [class*=van-hairline]:after{display:none}._accompany_x19jj_1 ._playIcon_x19jj_23{font-size:1.73333rem;display:flex;align-items:center}._accompany_x19jj_1 ._playIcon_x19jj_23 .van-badge__wrapper{margin:auto}._accompany_x19jj_1 .van-notice-bar{height:100%}._extra_x19jj_34{display:flex!important;align-items:center}._extra_x19jj_34 img{width:2rem;height:auto}._song_x19jj_42 .van-cell{height:1.86667rem}._song_x19jj_42 .van-cell.playing{color:#ff3838;font-weight:500}._song_x19jj_42 .van-cell.playing .iconMusic img{animation:spin 2s linear infinite;animation-play-state:paused}._song_x19jj_42 .van-cell.playing.active .iconMusic img{animation-play-state:running}._vipTip_x19jj_56{text-align:center;padding:.32rem 0;font-size:.37333rem;color:gray;background-color:#f3f4f8}._vipTip_x19jj_56 ._strong_x19jj_63{color:#ff4f4f;font-weight:500}._search_x19jj_67{background-color:#f8f9fc;padding-right:.21333rem}._search_x19jj_67 .van-field__left-icon i{font-size:.48rem;color:#999}._search_x19jj_67 .van-search__content{background-color:#f3f4f8}._search_x19jj_67 .van-search__content .van-cell{background-color:#fff!important}._search_x19jj_67 .van-search__action{font-size:.4rem;color:#333}._search_x19jj_67 .van-search__content{padding-left:0}._search_x19jj_67 .van-search__label{display:flex;align-items:center;padding-right:.26667rem}._search_x19jj_67 .van-search__label .van-cell{padding:.26667rem .42667rem}._search_x19jj_67 .van-dropdown-menu__title{font-size:.32rem}._search_x19jj_67 .van-dropdown-menu{height:100%}._search_x19jj_67 .van-dropdown-menu__bar{height:100%;background-color:transparent;padding:0}._search_x19jj_67 .van-search{flex:1;background:#f8f9fc;margin:.4rem 0;border-radius:50%;overflow:hidden}._search_x19jj_67 .van-search .van-cell{display:flex;justify-content:center;align-items:center}._search_x19jj_67 .van-search .van-field__control{font-size:.42667rem}._search_x19jj_67 .van-cell__value{height:.64rem!important}._search_x19jj_67 .van-search__action{color:#333;background-color:#fff;border-radius:0 .53333rem .53333rem 0}._search_x19jj_67 .van-search__content{background-color:#fff!important;border-radius:.53333rem 0 0 .53333rem;overflow:hidden}._search_x19jj_67 .van-field__left-icon{margin-top:.02667rem;height:.56rem;margin-left:.21333rem}._search_x19jj_67 .van-field__left-icon{color:#2dc7aa}._search_x19jj_67 ._search_btn_x19jj_143{background:#01c1b5;font-size:.37333rem;color:#fff;padding:.10667rem .24rem;border-radius:.4rem}.van-tab{padding:0 .26667rem}.van-cell{justify-content:center;align-items:center}._item_x19jj_157{padding:.37333rem .48rem}._item_x19jj_157 ._title_x19jj_160{font-size:.42667rem}._iconSearch_x19jj_163{width:.53333rem;height:.53333rem}._iconSearch_x19jj_163 .van-icon__image{margin:auto;vertical-align:middle}._iconMusic_x19jj_49 .van-icon__image{width:.08rem;height:.08rem;margin:auto;vertical-align:middle}._icon-status_x19jj_177{position:relative;font-size:.96rem;display:flex}._icon-status_x19jj_177 .van-badge__wrapper{margin:auto}._audio-container_x19jj_185{position:fixed;bottom:0;left:0;width:100%;box-shadow:0 .13333rem .29333rem .05333rem #ccc;visibility:visible;opacity:1}._audio-container_x19jj_185._hidden_x19jj_194{opacity:0;visibility:hidden}._searchSelect_x19jj_198 .van-dropdown-menu__bar{height:auto}._tags_x19jj_201 .van-dropdown-item__content{display:flex;box-sizing:border-box;padding:.53333rem;padding-top:0;flex-wrap:wrap}._tags_x19jj_201 .van-dropdown-item__content>span{box-sizing:border-box;display:inline-block;width:30%;height:.96rem;line-height:.96rem;margin-top:.26667rem;border-radius:.05333rem;overflow:hidden;text-overflow:ellipsis;white-space:pre}._tags_x19jj_201 .van-dropdown-item__content>span:not(:nth-child(3n)){margin-right:5%}._icon_x19jj_49{display:flex;align-items:center;margin-left:.4rem}._icon_x19jj_49 img{width:1.06667rem;margin-top:-.05333rem}._notice_x19jj_232{padding-left:.10667rem!important}\n'), document.head.appendChild(u), System.register( [ './App-legacy.6e4d6664.js', './state-legacy.ddfe6ae8.js', './vip-legacy.01f866e7.js', './music-legacy.996cf9b7.js', ], function (e) { 'use strict' var n, a, l, s, u, d, p, f, _, h, m, v, g, j, b, x, y, w, A, O, S, I, k, C, P, R, V, B, L, M, U, T, z, N, Y, F, D, E, q, W, H, X, J, K, Q, G, $, Z, ee, te, ne, re, oe, ae, ie return { setters: [ function (e) { ;(n = e.d), (a = e.r), (l = e.bi), (s = e.bj), (u = e.W), (d = e.ab), (p = e.bk), (f = e.bl), (_ = e.a), (h = e.aa), (m = e.a6), (v = e.bm), (g = e.au), (j = e.O), (b = e.bn), (x = e.aw), (y = e.bo), (w = e.bp), (A = e.ad), (O = e.bq), (S = e.P), (I = e.af), (k = e.aI), (C = e.ag), (P = e.aA), (R = e.br), (V = e.ax), (B = e.U), (L = e.aD), (M = e.ar), (U = e.b), (T = e.ak), (z = e.bs), (N = e.l), (Y = e.s), (F = e.a4), (D = e.T), (E = e.q), (q = e.j), (W = e.H), (H = e.bt), (X = e.bu), (J = e.g), (K = e.I), (Q = e.b2), (G = e.b3), ($ = e.V), (Z = e.K), (ee = e.Y), (te = e.b4) }, function (e) { ;(ne = e.g), (re = e.s) }, function (e) { ;(oe = e.C), (ae = e.V) }, function (e) { ie = e.M }, ], execute: function () { var ce = c(h('dropdown-menu'), 2), le = ce[0], se = ce[1], ue = Symbol(le), de = n({ name: le, props: { overlay: m, zIndex: [Number, String], activeColor: String, closeOnClickOutside: m, closeOnClickOverlay: m, duration: { type: [Number, String], default: 0.2 }, direction: { type: String, default: 'down' }, }, setup: function (e, t) { var n = t.slots, r = a(), o = a(), i = a(0), c = l(ue), h = c.children, m = c.linkChildren, g = s(r), j = u(function () { return h.some(function (e) { return e.state.showWrapper }) }), b = u(function () { if (j.value && d(e.zIndex)) return { zIndex: +e.zIndex + 1 } }), x = function () { if (o.value) { var t = v(o) 'down' === e.direction ? (i.value = t.bottom) : (i.value = window.innerHeight - t.top) } }, y = function (t, n) { var r = t.state.showPopup, o = t.disabled, a = t.titleClass return _( 'div', { role: 'button', tabindex: o ? -1 : 0, class: se('item', { disabled: o }), onClick: function () { var e o || ((e = n), h.forEach(function (t, n) { n === e ? (x(), t.toggle()) : t.state.showPopup && t.toggle(!1, { immediate: !0 }) })) }, }, [ _( 'span', { class: [se('title', { down: r === ('down' === e.direction), active: r }), a], style: { color: r ? e.activeColor : '' }, }, [_('div', { class: 'van-ellipsis' }, [t.renderTitle()])] ), ] ) } return ( m({ props: e, offset: i }), p(r, function () { e.closeOnClickOutside && h.forEach(function (e) { e.toggle(!1) }) }), f( 'scroll', function () { j.value && x() }, { target: g } ), function () { return _('div', { ref: r, class: se() }, [ _('div', { ref: o, style: b.value, class: se('bar', { opened: j.value }) }, [h.map(y)]), null == n.default ? void 0 : n.default(), ]) } ) }, }), pe = c(h('dropdown-item'), 2), fe = pe[0], _e = pe[1], he = n({ name: fe, props: { title: String, disabled: Boolean, teleport: [String, Object], lazyRender: m, modelValue: g, titleClass: g, options: { type: Array, default: function () { return [] }, }, }, emits: ['open', 'opened', 'close', 'closed', 'change', 'update:modelValue'], setup: function (e, t) { var n = t.emit, r = t.slots, o = j({ showPopup: !1, transition: !0, showWrapper: !1 }), a = b(ue).parent if (a) { var i = function (e) { return function () { return n(e) } }, c = i('open'), l = i('close'), s = i('opened'), u = function () { ;(o.showWrapper = !1), n('closed') }, d = function (t) { e.teleport && t.stopPropagation() }, p = function (t) { var r = a.props.activeColor, i = t.value === e.modelValue return _( k, { clickable: !0, key: t.value, icon: t.icon, title: t.text, class: _e('option', { active: i }), style: { color: i ? r : '' }, onClick: function () { ;(o.showPopup = !1), t.value !== e.modelValue && (n('update:modelValue', t.value), n('change', t.value)) }, }, { default: function () { return [i && _(I, { class: _e('icon'), color: r, name: 'success' }, null)] }, } ) }, f = function () { var t = a.offset, n = a.props, i = n.zIndex, f = n.overlay, h = n.duration, m = n.direction, v = n.closeOnClickOverlay, g = w(i) return ( 'down' === m ? (g.top = t.value + 'px') : (g.bottom = t.value + 'px'), A( _('div', { style: g, class: _e([m]), onClick: d }, [ _( S, { show: o.showPopup, 'onUpdate:show': function (e) { return (o.showPopup = e) }, class: _e('content'), overlay: f, position: 'down' === m ? 'top' : 'bottom', duration: o.transition ? h : 0, lazyRender: e.lazyRender, overlayStyle: { position: 'absolute' }, closeOnClickOverlay: v, onOpen: c, onClose: l, onOpened: s, onClosed: u, }, { default: function () { return [e.options.map(p), null == r.default ? void 0 : r.default()] }, } ), ]), [[O, o.showWrapper]] ) ) } return ( x({ state: o, toggle: function () { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : !o.showPopup, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {} e !== o.showPopup && ((o.showPopup = e), (o.transition = !t.immediate), e && (o.showWrapper = !0)) }, renderTitle: function () { if (r.title) return r.title() if (e.title) return e.title var t = e.options.find(function (t) { return t.value === e.modelValue }) return t ? t.text : '' }, }), function () { return e.teleport ? _( y, { to: e.teleport }, { default: function () { return [f()] }, } ) : f() } ) } }, }), me = C(he), ve = C(de), ge = c(h('search'), 3), je = ge[0], be = ge[1], xe = ge[2], ye = n({ name: je, props: P({}, R, { label: String, clearable: m, actionText: String, background: String, showAction: Boolean, shape: { type: String, default: 'square' }, leftIcon: { type: String, default: 'search' }, }), emits: ['search', 'cancel', 'update:modelValue'], setup: function (e, t) { var n = t.emit, r = t.slots, o = t.attrs, i = a(), c = function () { r.action || (n('update:modelValue', ''), n('cancel')) }, l = function (t) { 13 === t.keyCode && (M(t), n('search', e.modelValue)) }, s = function () { if (r.label || e.label) return _('div', { class: be('label') }, [r.label ? r.label() : e.label]) }, u = function () { if (e.showAction) { var t = e.actionText || xe('cancel') return _('div', { class: be('action'), role: 'button', tabindex: 0, onClick: c }, [ r.action ? r.action() : t, ]) } }, d = Object.keys(R) return ( x({ focus: function () { var e return null == (e = i.value) ? void 0 : e.focus() }, blur: function () { var e return null == (e = i.value) ? void 0 : e.blur() }, }), function () { return _( 'div', { class: be({ 'show-action': e.showAction }), style: { background: e.background } }, [ null == r.left ? void 0 : r.left(), _('div', { class: be('content', e.shape) }, [ s(), ((t = P({}, o, V(e, d))), _( L, B({ ref: i, type: 'search', border: !1, onKeypress: l }, t, { 'onUpdate:modelValue': function (e) { return n('update:modelValue', e) }, }), V(r, ['left-icon', 'right-icon']) )), ]), u(), ] ) var t } ) }, }), we = C(ye), Ae = { accompany: '_accompany_x19jj_1', playIcon: '_playIcon_x19jj_23', extra: '_extra_x19jj_34', song: '_song_x19jj_42', vipTip: '_vipTip_x19jj_56', strong: '_strong_x19jj_63', search: '_search_x19jj_67', search_btn: '_search_btn_x19jj_143', item: '_item_x19jj_157', title: '_title_x19jj_160', iconSearch: '_iconSearch_x19jj_163', iconMusic: '_iconMusic_x19jj_49', 'icon-status': '_icon-status_x19jj_177', 'audio-container': '_audio-container_x19jj_185', hidden: '_hidden_x19jj_194', searchSelect: '_searchSelect_x19jj_198', tags: '_tags_x19jj_201', icon: '_icon_x19jj_49', notice: '_notice_x19jj_232', }, Oe = ee.parse(location.search) e( 'default', n({ name: 'music-list', data: function () { return { show: !0, isFirstLoad: !1, userinfo: null, isApp: U().isApp, tempLevelId: 0, chooseShow: !1, partNames: [], selectedPartName: '', selectedPartIndex: 0, activeRow: null, } }, mounted: function () { var e = this return i( regeneratorRuntime.mark(function t() { return regeneratorRuntime.wrap(function (t) { for (;;) switch ((t.prev = t.next)) { case 0: return (t.next = 2), e.initList() case 2: case 'end': return t.stop() } }, t) }) )() }, methods: { initList: function () { var e = this return i( regeneratorRuntime.mark(function t() { var n, r return regeneratorRuntime.wrap(function (t) { for (;;) switch ((t.prev = t.next)) { case 0: for (r in (T(['_trackEvent', '云练习', '切换页面', '列表页面']), (n = ne()))) Object.prototype.hasOwnProperty.call(n, r) && (re[r] = n[r]) return (re.parentId = e.$route.params.id || 1), (t.next = 6), e.FetchLevel() case 6: return (t.next = 8), e.FetchList() case 8: case 'end': return t.stop() } }, t) }) )() }, FetchLevel: function () { return i( regeneratorRuntime.mark(function e() { var t, n, a, i, c, l, s return regeneratorRuntime.wrap(function (e) { for (;;) switch ((e.prev = e.next)) { case 0: try { ;(t = sessionStorage.getItem('musicScoreList')), (n = t ? JSON.parse(t) : []), (a = []), (i = o(n)) try { for (i.s(); !(c = i.n()).done; ) (l = c.value).id == re.parentId && (a = l.sysMusicScoreCategoriesList || []) } catch (u) { i.e(u) } finally { i.f() } ;(re.levelOptions = r( a.map(function (e) { return { value: e.id, text: e.name, childs: e.sysMusicScoreCategoriesList } }) )), re.levelOptions.length && !re.levelId && ((re.levelId = re.levelOptions[0].value), (s = z.exports.find(re.levelOptions, { value: re.levelId })) && (s.childs ? (console.log(s, 'showInfo'), (re.typeOptions = [{ value: 0, text: '全部' }].concat( r( s.childs.map(function (e) { return { value: e.id, text: e.name } }) ) ))) : (re.typeOptions = null))) } catch (d) {} case 1: case 'end': return e.stop() } }, e) }) )() }, FetchCats: function () { var e = this return i( regeneratorRuntime.mark(function t() { var n return regeneratorRuntime.wrap( function (t) { for (;;) switch ((t.prev = t.next)) { case 0: return ( (t.prev = 0), (t.next = 3), N.get('/sysMusicScoreAccompaniment/querySubjectIds', { params: { categoriesId: e.$route.params.id || 1 }, }) ) case 3: ;(n = t.sent), (Y.subjectOptions = [{ value: 0, text: '全部声部' }].concat( r( n.data .filter(function (e) { return !!e }) .map(function (e) { return { value: e.id, text: e.name } }) ) )), (t.next = 9) break case 7: ;(t.prev = 7), (t.t0 = t.catch(0)) case 9: case 'end': return t.stop() } }, t, null, [[0, 7]] ) }) )() }, FetchList: function () { var e = this return i( regeneratorRuntime.mark(function n() { var o, a, i, c, l, s, u return regeneratorRuntime.wrap( function (n) { for (;;) switch ((n.prev = n.next)) { case 0: if (((re.error = !1), !re.loading)) { n.next = 3 break } return n.abrupt('return') case 3: if (((re.loading = !0), console.log(Y.subjectOptions), '/api-student' === F())) { n.next = 8 break } return (n.next = 8), e.FetchCats() case 8: return ( '/api-student' === F() && (Y.subjectOptions = r( Y.extSubjectIds .filter(function (e) { return !!e }) .map(function (e) { return { value: e.id, text: e.name } }) )), (o = Y.subjectOptions .map(function (e) { return e.value }) .filter(function (e) { return e > 0 })), console.log(o, Y.subjectId), o.includes(5) && o.push(6), o.includes(Y.subjectId) || (Y.subjectId = 0), console.log(Y.subjectOptions), (n.prev = 14), (re.subjectId = Y.subjectId), (a = re.params), (i = e.$route.params.id), (c = (0 === (re.levelId || re.typeId) ? void 0 : re.typeId || re.levelId) || i), (l = 0 === Y.subjectId ? void 0 : Y.subjectId), F(), (n.next = 23), N.get('/sysMusicScore/queryPage2', { params: t( t({}, a), {}, { clientType: 'SMART_PRACTICE', subjectId: l, categoriesId: c, search: re.search, } ), }) ) case 23: if (((s = n.sent), (u = s.data), !(re.list.length > 0 && 1 == u.pageNo))) { n.next = 27 break } return n.abrupt('return') case 27: ;(re.list = [].concat(r(re.list), r(u.rows))), a.page >= Math.ceil(u.total / a.rows) && (re.finished = !0), (re.params.page = u.nextPage), re.list.length <= 0 && (e.show = !1), (n.next = 36) break case 33: ;(n.prev = 33), (n.t0 = n.catch(14)), (re.error = !0) case 36: re.loading = !1 case 37: case 'end': return n.stop() } }, n, null, [[14, 33]] ) }) )() }, getPartNames: function (e) { return i( regeneratorRuntime.mark(function t() { var n, r, a, i, c, l return regeneratorRuntime.wrap( function (t) { for (;;) switch ((t.prev = t.next)) { case 0: return ( (n = []), D({ type: 'loading', overlay: !0 }), (t.prev = 2), (t.next = 5), E.get(e, { mode: 'cors' }) ) case 5: ;(r = t.sent), (a = new DOMParser().parseFromString(r, 'text/xml')), (i = o(a.getElementsByTagName('part-name'))) try { for (i.s(); !(c = i.n()).done; ) (l = c.value).textContent && n.push(l.textContent) } catch (s) { i.e(s) } finally { i.f() } D.clear(), (t.next = 16) break case 12: ;(t.prev = 12), (t.t0 = t.catch(2)), D.clear(), D('读取分谱信息失败,请重试') case 16: return t.abrupt('return', n) case 17: case 'end': return t.stop() } }, t, null, [[2, 12]] ) }) )() }, openDetail: function () { var e, n, r, o = this.activeRow, a = null === (e = o.rankIds) || void 0 === e ? void 0 : e.split(','), i = String( null === (n = Y.user) || void 0 === n || null === (r = n.student) || void 0 === r ? void 0 : r.memberRankSettingId ) if (o.rankIds && Y.user && !a.includes(i) && '/api-student' === F()) q.vipShow = !0 else if ('select' !== Oe.mode) { var c = '/detail/' + o.id + '?part-index=' + this.selectedPartIndex if (this.isApp) W({ api: 'openAccompanyWebView', content: { url: location.origin + '/accompany/#' + c, orientation: 0, isHideTitle: !0, statusBarTextColor: !1, isOpenLight: !0, }, }) else { var l = H('#' + c, t({}, this.$route.query)) location.replace(l) } } else this.isApp && W({ api: 'onAccompanySelectResult', content: { id: o.id, name: o.name, partIndex: this.selectedPartIndex }, }) }, toDetail: function (e) { var t = this return i( regeneratorRuntime.mark(function n() { var r return regeneratorRuntime.wrap(function (n) { for (;;) switch ((n.prev = n.next)) { case 0: return ( (t.activeRow = e), (t.selectedPartName = ''), (t.selectedPartIndex = 0), (n.next = 5), t.getPartNames(e.xmlUrl) ) case 5: ;(r = n.sent), (t.partNames = r), r.length > 1 ? (t.chooseShow = !0) : ((t.selectedPartName = r[0]), t.openDetail()) case 8: case 'end': return n.stop() } }, n) }) )() }, onSelectedPartName: function (e) { ;(this.selectedPartIndex = e), (this.chooseShow = !1), this.openDetail() }, onPayVideo: function (e, n) { e.stopPropagation(), W({ api: 'recordHomeworkVideo', content: t(t({}, n), {}, { partIndex: this.selectedPartIndex }) }) }, openRecordingWebview: function (e, t) { e.stopPropagation(), W({ api: 'recordHomeworkVideo', content: { id: t.id, partIndex: this.selectedPartIndex } }) }, onSearch: function () { ;(re.params.page = 1), (re.list = []), (this.show = !0), (re.finished = !1), this.FetchList() }, subjectChange: function (e) { ;(Y.subjectId = e), this.onSearch() }, onClickLeft: function () { this.$router.replace('/') }, }, render: function () { var e, t = this return _('div', { class: Ae.accompany }, [ _( S, { show: this.chooseShow, teleport: 'body', closeable: !0, style: { borderRadius: '8px' }, onClickOverlay: function () { return (t.chooseShow = !1) }, onClickCloseIcon: function () { return (t.chooseShow = !1) }, }, { default: function () { return [_(oe, { partNames: t.partNames, onSelectedPartName: t.onSelectedPartName }, null)] }, } ), _(X, null, { default: function () { return [ re.typeOptions || (re.levelOptions && re.levelOptions.length > 0) ? _( ve, { activeColor: '#01C1B5' }, { default: function () { return [ re.levelOptions && re.levelOptions.length > 0 ? _( me, { modelValue: re.levelId, options: re.levelOptions, onChange: function (e) { ;(re.levelId = e), (re.typeId = 0) var n = z.exports.find(re.levelOptions, { value: e }) n && (n.childs ? (re.typeOptions = [{ value: 0, text: '全部' }].concat( r( n.childs.map(function (e) { return { value: e.id, text: e.name } }) ) )) : (re.typeOptions = null)), t.onSearch() }, }, null ) : null, re.typeOptions ? _( me, { class: Ae.searchSelect, 'get-container': '#app', modelValue: re.typeId, options: re.typeOptions, onChange: function (e) { ;(re.typeId = e), t.onSearch() }, }, null ) : null, ] }, } ) : null, _( we, { class: [Ae.search], placeholder: '请输入搜索关键词', modelValue: re.search, background: '#F8F9FC', 'onUpdate:model-value': function (e) { return (re.search = e) }, showAction: !0, onSearch: t.onSearch, }, { 'left-icon': function () { return _( 'img', { class: Ae.iconSearch, src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAqCAMAAAD26OlUAAAAdVBMVEUAAAAAwrYAwbQAw7QBwrUBwbYBwbYAwrYBwbUCwrYBwrYAwrcBwrYBwbUBwbUBwrUCwrUAw7cAwbgAwrcAwbUAxLsBwbUAwrYAwrUAwLQBwbQBwbUBwrYCwrYCwrYAw7YAwLUAwbUAv7gAv7cBwrYAysoBwbV4Ka+yAAAAJnRSTlMAQhMG8fv3guaojTnr3s/ImmtQRi0P1Xp2KPO+uKCTYllWJB65BHQbZOYAAAEHSURBVDjL7ZLLEoIwDEUphSIg74fiW9H+/yeaOIUpDWXYuOOu4M5pmpvG2fQnuc0KiN0SX0qRBvUylslR4cvOBVLXqbRxoSL2nvooluqFFYc4j18PfjXbnwTt4uH3LrC2OwNmyPXaQR+MyFIw1p0jGIKO9Ib9TRyegPUkILoVTZcTEDvitJszeV/MaHgdeK0JNmB6hleDl5KrcWzG1EqwLgRMwX1MrVwNkkbMpm3jkzMC1hJ0150rPhWf3x2hFTjY9ud1wn05cnUv1qM3q5CoJGBdXeZqJb14jix8achGVnudaSM76UZiwHYFxzwqOFXzzM9teokYH5P3jkXG8r6dVerYx9m0Rl+8riWqpDNy7wAAAABJRU5ErkJggg==', }, null ) }, label: function () { return '/api-student' == F() && Y.subjectOptions && 1 === Y.subjectOptions.length ? null : _( ve, { activeColor: '#01C1B5', onClick: function (e) { e.preventDefault() }, }, { default: function () { return [ _( me, { class: Ae.searchSelect, 'get-container': '#app', modelValue: Y.subjectId, options: Y.subjectOptions, onChange: function (e) { ;(Y.subjectId = e), t.onSearch() }, }, null ), ] }, } ) }, action: function () { return _('span', { class: Ae.search_btn, onClick: t.onSearch }, [J('搜索')]) }, } ), ] }, }), _('div', { class: K(Ae.accompanyList, Ae.song) }, [ this.show ? _( Q, { loading: re.loading, finishedText: '加载完毕', error: re.error, offset: 100, finished: re.finished, immediateCheck: !1, onLoad: this.FetchList, }, { default: function () { return [ _( G, null, ((n = e = re.list.map(function (e) { return _( k, { size: 'large', onClick: function () { return t.toDetail(e) }, }, { icon: function () { return _('div', { class: Ae['icon-status'] }, [ _(I, { class: Ae.iconMusic, name: ie }, null), e.rankIds ? _('div', { class: Ae.icon }, [_('img', { src: ae }, null)]) : null, ]) }, title: function () { return _( $, { background: 'none', color: '#444', style: { paddingLeft: (e.rankIds ? '4PX' : '15PX') + '!important' }, text: e.name, key: 'notactive', }, null ) }, } ) })), 'function' == typeof n || ('[object Object]' === Object.prototype.toString.call(n) && !te(n)) ? e : { default: function () { return [e] }, }) ), ] var n }, error: function () { return _('span', { onClick: t.FetchList }, [J('加载失败,请点击重试')]) }, } ) : _(Z, { description: '暂无数据' }, null), ]), ]) }, }) ) }, } } ) })()