index-legacy.1ff640f1.js 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245
  1. !(function () {
  2. function e(e, t) {
  3. var n = Object.keys(e)
  4. if (Object.getOwnPropertySymbols) {
  5. var r = Object.getOwnPropertySymbols(e)
  6. t &&
  7. (r = r.filter(function (t) {
  8. return Object.getOwnPropertyDescriptor(e, t).enumerable
  9. })),
  10. n.push.apply(n, r)
  11. }
  12. return n
  13. }
  14. function t(t) {
  15. for (var r = 1; r < arguments.length; r++) {
  16. var o = null != arguments[r] ? arguments[r] : {}
  17. r % 2
  18. ? e(Object(o), !0).forEach(function (e) {
  19. n(t, e, o[e])
  20. })
  21. : Object.getOwnPropertyDescriptors
  22. ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o))
  23. : e(Object(o)).forEach(function (e) {
  24. Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(o, e))
  25. })
  26. }
  27. return t
  28. }
  29. function n(e, t, n) {
  30. return (
  31. t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = n), e
  32. )
  33. }
  34. function r(e) {
  35. return (
  36. (function (e) {
  37. if (Array.isArray(e)) return s(e)
  38. })(e) ||
  39. (function (e) {
  40. if (('undefined' != typeof Symbol && null != e[Symbol.iterator]) || null != e['@@iterator'])
  41. return Array.from(e)
  42. })(e) ||
  43. l(e) ||
  44. (function () {
  45. throw new TypeError(
  46. 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  47. )
  48. })()
  49. )
  50. }
  51. function o(e, t) {
  52. var n = ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator']
  53. if (!n) {
  54. if (Array.isArray(e) || (n = l(e)) || (t && e && 'number' == typeof e.length)) {
  55. n && (e = n)
  56. var r = 0,
  57. o = function () {}
  58. return {
  59. s: o,
  60. n: function () {
  61. return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] }
  62. },
  63. e: function (e) {
  64. throw e
  65. },
  66. f: o,
  67. }
  68. }
  69. throw new TypeError(
  70. 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  71. )
  72. }
  73. var a,
  74. i = !0,
  75. c = !1
  76. return {
  77. s: function () {
  78. n = n.call(e)
  79. },
  80. n: function () {
  81. var e = n.next()
  82. return (i = e.done), e
  83. },
  84. e: function (e) {
  85. ;(c = !0), (a = e)
  86. },
  87. f: function () {
  88. try {
  89. i || null == n.return || n.return()
  90. } finally {
  91. if (c) throw a
  92. }
  93. },
  94. }
  95. }
  96. function a(e, t, n, r, o, a, i) {
  97. try {
  98. var c = e[a](i),
  99. l = c.value
  100. } catch (s) {
  101. return void n(s)
  102. }
  103. c.done ? t(l) : Promise.resolve(l).then(r, o)
  104. }
  105. function i(e) {
  106. return function () {
  107. var t = this,
  108. n = arguments
  109. return new Promise(function (r, o) {
  110. var i = e.apply(t, n)
  111. function c(e) {
  112. a(i, r, o, c, l, 'next', e)
  113. }
  114. function l(e) {
  115. a(i, r, o, c, l, 'throw', e)
  116. }
  117. c(void 0)
  118. })
  119. }
  120. }
  121. function c(e, t) {
  122. return (
  123. (function (e) {
  124. if (Array.isArray(e)) return e
  125. })(e) ||
  126. (function (e, t) {
  127. var n = null == e ? null : ('undefined' != typeof Symbol && e[Symbol.iterator]) || e['@@iterator']
  128. if (null == n) return
  129. var r,
  130. o,
  131. a = [],
  132. i = !0,
  133. c = !1
  134. try {
  135. for (n = n.call(e); !(i = (r = n.next()).done) && (a.push(r.value), !t || a.length !== t); i = !0);
  136. } catch (l) {
  137. ;(c = !0), (o = l)
  138. } finally {
  139. try {
  140. i || null == n.return || n.return()
  141. } finally {
  142. if (c) throw o
  143. }
  144. }
  145. return a
  146. })(e, t) ||
  147. l(e, t) ||
  148. (function () {
  149. throw new TypeError(
  150. 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  151. )
  152. })()
  153. )
  154. }
  155. function l(e, t) {
  156. if (e) {
  157. if ('string' == typeof e) return s(e, t)
  158. var n = Object.prototype.toString.call(e).slice(8, -1)
  159. return (
  160. 'Object' === n && e.constructor && (n = e.constructor.name),
  161. 'Map' === n || 'Set' === n
  162. ? Array.from(e)
  163. : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
  164. ? s(e, t)
  165. : void 0
  166. )
  167. }
  168. }
  169. function s(e, t) {
  170. ;(null == t || t > e.length) && (t = e.length)
  171. for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
  172. return r
  173. }
  174. var u = document.createElement('style')
  175. ;(u.innerHTML =
  176. '._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'),
  177. document.head.appendChild(u),
  178. System.register(
  179. [
  180. './App-legacy.6e4d6664.js',
  181. './state-legacy.ddfe6ae8.js',
  182. './vip-legacy.01f866e7.js',
  183. './music-legacy.996cf9b7.js',
  184. ],
  185. function (e) {
  186. 'use strict'
  187. var n,
  188. a,
  189. l,
  190. s,
  191. u,
  192. d,
  193. p,
  194. f,
  195. _,
  196. h,
  197. m,
  198. v,
  199. g,
  200. j,
  201. b,
  202. x,
  203. y,
  204. w,
  205. A,
  206. O,
  207. S,
  208. I,
  209. k,
  210. C,
  211. P,
  212. R,
  213. V,
  214. B,
  215. L,
  216. M,
  217. U,
  218. T,
  219. z,
  220. N,
  221. Y,
  222. F,
  223. D,
  224. E,
  225. q,
  226. W,
  227. H,
  228. X,
  229. J,
  230. K,
  231. Q,
  232. G,
  233. $,
  234. Z,
  235. ee,
  236. te,
  237. ne,
  238. re,
  239. oe,
  240. ae,
  241. ie
  242. return {
  243. setters: [
  244. function (e) {
  245. ;(n = e.d),
  246. (a = e.r),
  247. (l = e.bi),
  248. (s = e.bj),
  249. (u = e.W),
  250. (d = e.ab),
  251. (p = e.bk),
  252. (f = e.bl),
  253. (_ = e.a),
  254. (h = e.aa),
  255. (m = e.a6),
  256. (v = e.bm),
  257. (g = e.au),
  258. (j = e.O),
  259. (b = e.bn),
  260. (x = e.aw),
  261. (y = e.bo),
  262. (w = e.bp),
  263. (A = e.ad),
  264. (O = e.bq),
  265. (S = e.P),
  266. (I = e.af),
  267. (k = e.aI),
  268. (C = e.ag),
  269. (P = e.aA),
  270. (R = e.br),
  271. (V = e.ax),
  272. (B = e.U),
  273. (L = e.aD),
  274. (M = e.ar),
  275. (U = e.b),
  276. (T = e.ak),
  277. (z = e.bs),
  278. (N = e.l),
  279. (Y = e.s),
  280. (F = e.a4),
  281. (D = e.T),
  282. (E = e.q),
  283. (q = e.j),
  284. (W = e.H),
  285. (H = e.bt),
  286. (X = e.bu),
  287. (J = e.g),
  288. (K = e.I),
  289. (Q = e.b2),
  290. (G = e.b3),
  291. ($ = e.V),
  292. (Z = e.K),
  293. (ee = e.Y),
  294. (te = e.b4)
  295. },
  296. function (e) {
  297. ;(ne = e.g), (re = e.s)
  298. },
  299. function (e) {
  300. ;(oe = e.C), (ae = e.V)
  301. },
  302. function (e) {
  303. ie = e.M
  304. },
  305. ],
  306. execute: function () {
  307. var ce = c(h('dropdown-menu'), 2),
  308. le = ce[0],
  309. se = ce[1],
  310. ue = Symbol(le),
  311. de = n({
  312. name: le,
  313. props: {
  314. overlay: m,
  315. zIndex: [Number, String],
  316. activeColor: String,
  317. closeOnClickOutside: m,
  318. closeOnClickOverlay: m,
  319. duration: { type: [Number, String], default: 0.2 },
  320. direction: { type: String, default: 'down' },
  321. },
  322. setup: function (e, t) {
  323. var n = t.slots,
  324. r = a(),
  325. o = a(),
  326. i = a(0),
  327. c = l(ue),
  328. h = c.children,
  329. m = c.linkChildren,
  330. g = s(r),
  331. j = u(function () {
  332. return h.some(function (e) {
  333. return e.state.showWrapper
  334. })
  335. }),
  336. b = u(function () {
  337. if (j.value && d(e.zIndex)) return { zIndex: +e.zIndex + 1 }
  338. }),
  339. x = function () {
  340. if (o.value) {
  341. var t = v(o)
  342. 'down' === e.direction ? (i.value = t.bottom) : (i.value = window.innerHeight - t.top)
  343. }
  344. },
  345. y = function (t, n) {
  346. var r = t.state.showPopup,
  347. o = t.disabled,
  348. a = t.titleClass
  349. return _(
  350. 'div',
  351. {
  352. role: 'button',
  353. tabindex: o ? -1 : 0,
  354. class: se('item', { disabled: o }),
  355. onClick: function () {
  356. var e
  357. o ||
  358. ((e = n),
  359. h.forEach(function (t, n) {
  360. n === e ? (x(), t.toggle()) : t.state.showPopup && t.toggle(!1, { immediate: !0 })
  361. }))
  362. },
  363. },
  364. [
  365. _(
  366. 'span',
  367. {
  368. class: [se('title', { down: r === ('down' === e.direction), active: r }), a],
  369. style: { color: r ? e.activeColor : '' },
  370. },
  371. [_('div', { class: 'van-ellipsis' }, [t.renderTitle()])]
  372. ),
  373. ]
  374. )
  375. }
  376. return (
  377. m({ props: e, offset: i }),
  378. p(r, function () {
  379. e.closeOnClickOutside &&
  380. h.forEach(function (e) {
  381. e.toggle(!1)
  382. })
  383. }),
  384. f(
  385. 'scroll',
  386. function () {
  387. j.value && x()
  388. },
  389. { target: g }
  390. ),
  391. function () {
  392. return _('div', { ref: r, class: se() }, [
  393. _('div', { ref: o, style: b.value, class: se('bar', { opened: j.value }) }, [h.map(y)]),
  394. null == n.default ? void 0 : n.default(),
  395. ])
  396. }
  397. )
  398. },
  399. }),
  400. pe = c(h('dropdown-item'), 2),
  401. fe = pe[0],
  402. _e = pe[1],
  403. he = n({
  404. name: fe,
  405. props: {
  406. title: String,
  407. disabled: Boolean,
  408. teleport: [String, Object],
  409. lazyRender: m,
  410. modelValue: g,
  411. titleClass: g,
  412. options: {
  413. type: Array,
  414. default: function () {
  415. return []
  416. },
  417. },
  418. },
  419. emits: ['open', 'opened', 'close', 'closed', 'change', 'update:modelValue'],
  420. setup: function (e, t) {
  421. var n = t.emit,
  422. r = t.slots,
  423. o = j({ showPopup: !1, transition: !0, showWrapper: !1 }),
  424. a = b(ue).parent
  425. if (a) {
  426. var i = function (e) {
  427. return function () {
  428. return n(e)
  429. }
  430. },
  431. c = i('open'),
  432. l = i('close'),
  433. s = i('opened'),
  434. u = function () {
  435. ;(o.showWrapper = !1), n('closed')
  436. },
  437. d = function (t) {
  438. e.teleport && t.stopPropagation()
  439. },
  440. p = function (t) {
  441. var r = a.props.activeColor,
  442. i = t.value === e.modelValue
  443. return _(
  444. k,
  445. {
  446. clickable: !0,
  447. key: t.value,
  448. icon: t.icon,
  449. title: t.text,
  450. class: _e('option', { active: i }),
  451. style: { color: i ? r : '' },
  452. onClick: function () {
  453. ;(o.showPopup = !1),
  454. t.value !== e.modelValue && (n('update:modelValue', t.value), n('change', t.value))
  455. },
  456. },
  457. {
  458. default: function () {
  459. return [i && _(I, { class: _e('icon'), color: r, name: 'success' }, null)]
  460. },
  461. }
  462. )
  463. },
  464. f = function () {
  465. var t = a.offset,
  466. n = a.props,
  467. i = n.zIndex,
  468. f = n.overlay,
  469. h = n.duration,
  470. m = n.direction,
  471. v = n.closeOnClickOverlay,
  472. g = w(i)
  473. return (
  474. 'down' === m ? (g.top = t.value + 'px') : (g.bottom = t.value + 'px'),
  475. A(
  476. _('div', { style: g, class: _e([m]), onClick: d }, [
  477. _(
  478. S,
  479. {
  480. show: o.showPopup,
  481. 'onUpdate:show': function (e) {
  482. return (o.showPopup = e)
  483. },
  484. class: _e('content'),
  485. overlay: f,
  486. position: 'down' === m ? 'top' : 'bottom',
  487. duration: o.transition ? h : 0,
  488. lazyRender: e.lazyRender,
  489. overlayStyle: { position: 'absolute' },
  490. closeOnClickOverlay: v,
  491. onOpen: c,
  492. onClose: l,
  493. onOpened: s,
  494. onClosed: u,
  495. },
  496. {
  497. default: function () {
  498. return [e.options.map(p), null == r.default ? void 0 : r.default()]
  499. },
  500. }
  501. ),
  502. ]),
  503. [[O, o.showWrapper]]
  504. )
  505. )
  506. }
  507. return (
  508. x({
  509. state: o,
  510. toggle: function () {
  511. var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : !o.showPopup,
  512. t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}
  513. e !== o.showPopup &&
  514. ((o.showPopup = e), (o.transition = !t.immediate), e && (o.showWrapper = !0))
  515. },
  516. renderTitle: function () {
  517. if (r.title) return r.title()
  518. if (e.title) return e.title
  519. var t = e.options.find(function (t) {
  520. return t.value === e.modelValue
  521. })
  522. return t ? t.text : ''
  523. },
  524. }),
  525. function () {
  526. return e.teleport
  527. ? _(
  528. y,
  529. { to: e.teleport },
  530. {
  531. default: function () {
  532. return [f()]
  533. },
  534. }
  535. )
  536. : f()
  537. }
  538. )
  539. }
  540. },
  541. }),
  542. me = C(he),
  543. ve = C(de),
  544. ge = c(h('search'), 3),
  545. je = ge[0],
  546. be = ge[1],
  547. xe = ge[2],
  548. ye = n({
  549. name: je,
  550. props: P({}, R, {
  551. label: String,
  552. clearable: m,
  553. actionText: String,
  554. background: String,
  555. showAction: Boolean,
  556. shape: { type: String, default: 'square' },
  557. leftIcon: { type: String, default: 'search' },
  558. }),
  559. emits: ['search', 'cancel', 'update:modelValue'],
  560. setup: function (e, t) {
  561. var n = t.emit,
  562. r = t.slots,
  563. o = t.attrs,
  564. i = a(),
  565. c = function () {
  566. r.action || (n('update:modelValue', ''), n('cancel'))
  567. },
  568. l = function (t) {
  569. 13 === t.keyCode && (M(t), n('search', e.modelValue))
  570. },
  571. s = function () {
  572. if (r.label || e.label) return _('div', { class: be('label') }, [r.label ? r.label() : e.label])
  573. },
  574. u = function () {
  575. if (e.showAction) {
  576. var t = e.actionText || xe('cancel')
  577. return _('div', { class: be('action'), role: 'button', tabindex: 0, onClick: c }, [
  578. r.action ? r.action() : t,
  579. ])
  580. }
  581. },
  582. d = Object.keys(R)
  583. return (
  584. x({
  585. focus: function () {
  586. var e
  587. return null == (e = i.value) ? void 0 : e.focus()
  588. },
  589. blur: function () {
  590. var e
  591. return null == (e = i.value) ? void 0 : e.blur()
  592. },
  593. }),
  594. function () {
  595. return _(
  596. 'div',
  597. { class: be({ 'show-action': e.showAction }), style: { background: e.background } },
  598. [
  599. null == r.left ? void 0 : r.left(),
  600. _('div', { class: be('content', e.shape) }, [
  601. s(),
  602. ((t = P({}, o, V(e, d))),
  603. _(
  604. L,
  605. B({ ref: i, type: 'search', border: !1, onKeypress: l }, t, {
  606. 'onUpdate:modelValue': function (e) {
  607. return n('update:modelValue', e)
  608. },
  609. }),
  610. V(r, ['left-icon', 'right-icon'])
  611. )),
  612. ]),
  613. u(),
  614. ]
  615. )
  616. var t
  617. }
  618. )
  619. },
  620. }),
  621. we = C(ye),
  622. Ae = {
  623. accompany: '_accompany_x19jj_1',
  624. playIcon: '_playIcon_x19jj_23',
  625. extra: '_extra_x19jj_34',
  626. song: '_song_x19jj_42',
  627. vipTip: '_vipTip_x19jj_56',
  628. strong: '_strong_x19jj_63',
  629. search: '_search_x19jj_67',
  630. search_btn: '_search_btn_x19jj_143',
  631. item: '_item_x19jj_157',
  632. title: '_title_x19jj_160',
  633. iconSearch: '_iconSearch_x19jj_163',
  634. iconMusic: '_iconMusic_x19jj_49',
  635. 'icon-status': '_icon-status_x19jj_177',
  636. 'audio-container': '_audio-container_x19jj_185',
  637. hidden: '_hidden_x19jj_194',
  638. searchSelect: '_searchSelect_x19jj_198',
  639. tags: '_tags_x19jj_201',
  640. icon: '_icon_x19jj_49',
  641. notice: '_notice_x19jj_232',
  642. },
  643. Oe = ee.parse(location.search)
  644. e(
  645. 'default',
  646. n({
  647. name: 'music-list',
  648. data: function () {
  649. return {
  650. show: !0,
  651. isFirstLoad: !1,
  652. userinfo: null,
  653. isApp: U().isApp,
  654. tempLevelId: 0,
  655. chooseShow: !1,
  656. partNames: [],
  657. selectedPartName: '',
  658. selectedPartIndex: 0,
  659. activeRow: null,
  660. }
  661. },
  662. mounted: function () {
  663. var e = this
  664. return i(
  665. regeneratorRuntime.mark(function t() {
  666. return regeneratorRuntime.wrap(function (t) {
  667. for (;;)
  668. switch ((t.prev = t.next)) {
  669. case 0:
  670. return (t.next = 2), e.initList()
  671. case 2:
  672. case 'end':
  673. return t.stop()
  674. }
  675. }, t)
  676. })
  677. )()
  678. },
  679. methods: {
  680. initList: function () {
  681. var e = this
  682. return i(
  683. regeneratorRuntime.mark(function t() {
  684. var n, r
  685. return regeneratorRuntime.wrap(function (t) {
  686. for (;;)
  687. switch ((t.prev = t.next)) {
  688. case 0:
  689. for (r in (T(['_trackEvent', '云练习', '切换页面', '列表页面']), (n = ne())))
  690. Object.prototype.hasOwnProperty.call(n, r) && (re[r] = n[r])
  691. return (re.parentId = e.$route.params.id || 1), (t.next = 6), e.FetchLevel()
  692. case 6:
  693. return (t.next = 8), e.FetchList()
  694. case 8:
  695. case 'end':
  696. return t.stop()
  697. }
  698. }, t)
  699. })
  700. )()
  701. },
  702. FetchLevel: function () {
  703. return i(
  704. regeneratorRuntime.mark(function e() {
  705. var t, n, a, i, c, l, s
  706. return regeneratorRuntime.wrap(function (e) {
  707. for (;;)
  708. switch ((e.prev = e.next)) {
  709. case 0:
  710. try {
  711. ;(t = sessionStorage.getItem('musicScoreList')),
  712. (n = t ? JSON.parse(t) : []),
  713. (a = []),
  714. (i = o(n))
  715. try {
  716. for (i.s(); !(c = i.n()).done; )
  717. (l = c.value).id == re.parentId && (a = l.sysMusicScoreCategoriesList || [])
  718. } catch (u) {
  719. i.e(u)
  720. } finally {
  721. i.f()
  722. }
  723. ;(re.levelOptions = r(
  724. a.map(function (e) {
  725. return { value: e.id, text: e.name, childs: e.sysMusicScoreCategoriesList }
  726. })
  727. )),
  728. re.levelOptions.length &&
  729. !re.levelId &&
  730. ((re.levelId = re.levelOptions[0].value),
  731. (s = z.exports.find(re.levelOptions, { value: re.levelId })) &&
  732. (s.childs
  733. ? (console.log(s, 'showInfo'),
  734. (re.typeOptions = [{ value: 0, text: '全部' }].concat(
  735. r(
  736. s.childs.map(function (e) {
  737. return { value: e.id, text: e.name }
  738. })
  739. )
  740. )))
  741. : (re.typeOptions = null)))
  742. } catch (d) {}
  743. case 1:
  744. case 'end':
  745. return e.stop()
  746. }
  747. }, e)
  748. })
  749. )()
  750. },
  751. FetchCats: function () {
  752. var e = this
  753. return i(
  754. regeneratorRuntime.mark(function t() {
  755. var n
  756. return regeneratorRuntime.wrap(
  757. function (t) {
  758. for (;;)
  759. switch ((t.prev = t.next)) {
  760. case 0:
  761. return (
  762. (t.prev = 0),
  763. (t.next = 3),
  764. N.get('/sysMusicScoreAccompaniment/querySubjectIds', {
  765. params: { categoriesId: e.$route.params.id || 1 },
  766. })
  767. )
  768. case 3:
  769. ;(n = t.sent),
  770. (Y.subjectOptions = [{ value: 0, text: '全部声部' }].concat(
  771. r(
  772. n.data
  773. .filter(function (e) {
  774. return !!e
  775. })
  776. .map(function (e) {
  777. return { value: e.id, text: e.name }
  778. })
  779. )
  780. )),
  781. (t.next = 9)
  782. break
  783. case 7:
  784. ;(t.prev = 7), (t.t0 = t.catch(0))
  785. case 9:
  786. case 'end':
  787. return t.stop()
  788. }
  789. },
  790. t,
  791. null,
  792. [[0, 7]]
  793. )
  794. })
  795. )()
  796. },
  797. FetchList: function () {
  798. var e = this
  799. return i(
  800. regeneratorRuntime.mark(function n() {
  801. var o, a, i, c, l, s, u
  802. return regeneratorRuntime.wrap(
  803. function (n) {
  804. for (;;)
  805. switch ((n.prev = n.next)) {
  806. case 0:
  807. if (((re.error = !1), !re.loading)) {
  808. n.next = 3
  809. break
  810. }
  811. return n.abrupt('return')
  812. case 3:
  813. if (((re.loading = !0), console.log(Y.subjectOptions), '/api-student' === F())) {
  814. n.next = 8
  815. break
  816. }
  817. return (n.next = 8), e.FetchCats()
  818. case 8:
  819. return (
  820. '/api-student' === F() &&
  821. (Y.subjectOptions = r(
  822. Y.extSubjectIds
  823. .filter(function (e) {
  824. return !!e
  825. })
  826. .map(function (e) {
  827. return { value: e.id, text: e.name }
  828. })
  829. )),
  830. (o = Y.subjectOptions
  831. .map(function (e) {
  832. return e.value
  833. })
  834. .filter(function (e) {
  835. return e > 0
  836. })),
  837. console.log(o, Y.subjectId),
  838. o.includes(5) && o.push(6),
  839. o.includes(Y.subjectId) || (Y.subjectId = 0),
  840. console.log(Y.subjectOptions),
  841. (n.prev = 14),
  842. (re.subjectId = Y.subjectId),
  843. (a = re.params),
  844. (i = e.$route.params.id),
  845. (c = (0 === (re.levelId || re.typeId) ? void 0 : re.typeId || re.levelId) || i),
  846. (l = 0 === Y.subjectId ? void 0 : Y.subjectId),
  847. F(),
  848. (n.next = 23),
  849. N.get('/sysMusicScore/queryPage2', {
  850. params: t(
  851. t({}, a),
  852. {},
  853. {
  854. clientType: 'SMART_PRACTICE',
  855. subjectId: l,
  856. categoriesId: c,
  857. search: re.search,
  858. }
  859. ),
  860. })
  861. )
  862. case 23:
  863. if (((s = n.sent), (u = s.data), !(re.list.length > 0 && 1 == u.pageNo))) {
  864. n.next = 27
  865. break
  866. }
  867. return n.abrupt('return')
  868. case 27:
  869. ;(re.list = [].concat(r(re.list), r(u.rows))),
  870. a.page >= Math.ceil(u.total / a.rows) && (re.finished = !0),
  871. (re.params.page = u.nextPage),
  872. re.list.length <= 0 && (e.show = !1),
  873. (n.next = 36)
  874. break
  875. case 33:
  876. ;(n.prev = 33), (n.t0 = n.catch(14)), (re.error = !0)
  877. case 36:
  878. re.loading = !1
  879. case 37:
  880. case 'end':
  881. return n.stop()
  882. }
  883. },
  884. n,
  885. null,
  886. [[14, 33]]
  887. )
  888. })
  889. )()
  890. },
  891. getPartNames: function (e) {
  892. return i(
  893. regeneratorRuntime.mark(function t() {
  894. var n, r, a, i, c, l
  895. return regeneratorRuntime.wrap(
  896. function (t) {
  897. for (;;)
  898. switch ((t.prev = t.next)) {
  899. case 0:
  900. return (
  901. (n = []),
  902. D({ type: 'loading', overlay: !0 }),
  903. (t.prev = 2),
  904. (t.next = 5),
  905. E.get(e, { mode: 'cors' })
  906. )
  907. case 5:
  908. ;(r = t.sent),
  909. (a = new DOMParser().parseFromString(r, 'text/xml')),
  910. (i = o(a.getElementsByTagName('part-name')))
  911. try {
  912. for (i.s(); !(c = i.n()).done; ) (l = c.value).textContent && n.push(l.textContent)
  913. } catch (s) {
  914. i.e(s)
  915. } finally {
  916. i.f()
  917. }
  918. D.clear(), (t.next = 16)
  919. break
  920. case 12:
  921. ;(t.prev = 12), (t.t0 = t.catch(2)), D.clear(), D('读取分谱信息失败,请重试')
  922. case 16:
  923. return t.abrupt('return', n)
  924. case 17:
  925. case 'end':
  926. return t.stop()
  927. }
  928. },
  929. t,
  930. null,
  931. [[2, 12]]
  932. )
  933. })
  934. )()
  935. },
  936. openDetail: function () {
  937. var e,
  938. n,
  939. r,
  940. o = this.activeRow,
  941. a = null === (e = o.rankIds) || void 0 === e ? void 0 : e.split(','),
  942. i = String(
  943. null === (n = Y.user) || void 0 === n || null === (r = n.student) || void 0 === r
  944. ? void 0
  945. : r.memberRankSettingId
  946. )
  947. if (o.rankIds && Y.user && !a.includes(i) && '/api-student' === F()) q.vipShow = !0
  948. else if ('select' !== Oe.mode) {
  949. var c = '/detail/' + o.id + '?part-index=' + this.selectedPartIndex
  950. if (this.isApp)
  951. W({
  952. api: 'openAccompanyWebView',
  953. content: {
  954. url: location.origin + '/accompany/#' + c,
  955. orientation: 0,
  956. isHideTitle: !0,
  957. statusBarTextColor: !1,
  958. isOpenLight: !0,
  959. },
  960. })
  961. else {
  962. var l = H('#' + c, t({}, this.$route.query))
  963. location.replace(l)
  964. }
  965. } else
  966. this.isApp &&
  967. W({
  968. api: 'onAccompanySelectResult',
  969. content: { id: o.id, name: o.name, partIndex: this.selectedPartIndex },
  970. })
  971. },
  972. toDetail: function (e) {
  973. var t = this
  974. return i(
  975. regeneratorRuntime.mark(function n() {
  976. var r
  977. return regeneratorRuntime.wrap(function (n) {
  978. for (;;)
  979. switch ((n.prev = n.next)) {
  980. case 0:
  981. return (
  982. (t.activeRow = e),
  983. (t.selectedPartName = ''),
  984. (t.selectedPartIndex = 0),
  985. (n.next = 5),
  986. t.getPartNames(e.xmlUrl)
  987. )
  988. case 5:
  989. ;(r = n.sent),
  990. (t.partNames = r),
  991. r.length > 1 ? (t.chooseShow = !0) : ((t.selectedPartName = r[0]), t.openDetail())
  992. case 8:
  993. case 'end':
  994. return n.stop()
  995. }
  996. }, n)
  997. })
  998. )()
  999. },
  1000. onSelectedPartName: function (e) {
  1001. ;(this.selectedPartIndex = e), (this.chooseShow = !1), this.openDetail()
  1002. },
  1003. onPayVideo: function (e, n) {
  1004. e.stopPropagation(),
  1005. W({ api: 'recordHomeworkVideo', content: t(t({}, n), {}, { partIndex: this.selectedPartIndex }) })
  1006. },
  1007. openRecordingWebview: function (e, t) {
  1008. e.stopPropagation(),
  1009. W({ api: 'recordHomeworkVideo', content: { id: t.id, partIndex: this.selectedPartIndex } })
  1010. },
  1011. onSearch: function () {
  1012. ;(re.params.page = 1), (re.list = []), (this.show = !0), (re.finished = !1), this.FetchList()
  1013. },
  1014. subjectChange: function (e) {
  1015. ;(Y.subjectId = e), this.onSearch()
  1016. },
  1017. onClickLeft: function () {
  1018. this.$router.replace('/')
  1019. },
  1020. },
  1021. render: function () {
  1022. var e,
  1023. t = this
  1024. return _('div', { class: Ae.accompany }, [
  1025. _(
  1026. S,
  1027. {
  1028. show: this.chooseShow,
  1029. teleport: 'body',
  1030. closeable: !0,
  1031. style: { borderRadius: '8px' },
  1032. onClickOverlay: function () {
  1033. return (t.chooseShow = !1)
  1034. },
  1035. onClickCloseIcon: function () {
  1036. return (t.chooseShow = !1)
  1037. },
  1038. },
  1039. {
  1040. default: function () {
  1041. return [_(oe, { partNames: t.partNames, onSelectedPartName: t.onSelectedPartName }, null)]
  1042. },
  1043. }
  1044. ),
  1045. _(X, null, {
  1046. default: function () {
  1047. return [
  1048. re.typeOptions || (re.levelOptions && re.levelOptions.length > 0)
  1049. ? _(
  1050. ve,
  1051. { activeColor: '#01C1B5' },
  1052. {
  1053. default: function () {
  1054. return [
  1055. re.levelOptions && re.levelOptions.length > 0
  1056. ? _(
  1057. me,
  1058. {
  1059. modelValue: re.levelId,
  1060. options: re.levelOptions,
  1061. onChange: function (e) {
  1062. ;(re.levelId = e), (re.typeId = 0)
  1063. var n = z.exports.find(re.levelOptions, { value: e })
  1064. n &&
  1065. (n.childs
  1066. ? (re.typeOptions = [{ value: 0, text: '全部' }].concat(
  1067. r(
  1068. n.childs.map(function (e) {
  1069. return { value: e.id, text: e.name }
  1070. })
  1071. )
  1072. ))
  1073. : (re.typeOptions = null)),
  1074. t.onSearch()
  1075. },
  1076. },
  1077. null
  1078. )
  1079. : null,
  1080. re.typeOptions
  1081. ? _(
  1082. me,
  1083. {
  1084. class: Ae.searchSelect,
  1085. 'get-container': '#app',
  1086. modelValue: re.typeId,
  1087. options: re.typeOptions,
  1088. onChange: function (e) {
  1089. ;(re.typeId = e), t.onSearch()
  1090. },
  1091. },
  1092. null
  1093. )
  1094. : null,
  1095. ]
  1096. },
  1097. }
  1098. )
  1099. : null,
  1100. _(
  1101. we,
  1102. {
  1103. class: [Ae.search],
  1104. placeholder: '请输入搜索关键词',
  1105. modelValue: re.search,
  1106. background: '#F8F9FC',
  1107. 'onUpdate:model-value': function (e) {
  1108. return (re.search = e)
  1109. },
  1110. showAction: !0,
  1111. onSearch: t.onSearch,
  1112. },
  1113. {
  1114. 'left-icon': function () {
  1115. return _(
  1116. 'img',
  1117. {
  1118. class: Ae.iconSearch,
  1119. src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAqCAMAAAD26OlUAAAAdVBMVEUAAAAAwrYAwbQAw7QBwrUBwbYBwbYAwrYBwbUCwrYBwrYAwrcBwrYBwbUBwbUBwrUCwrUAw7cAwbgAwrcAwbUAxLsBwbUAwrYAwrUAwLQBwbQBwbUBwrYCwrYCwrYAw7YAwLUAwbUAv7gAv7cBwrYAysoBwbV4Ka+yAAAAJnRSTlMAQhMG8fv3guaojTnr3s/ImmtQRi0P1Xp2KPO+uKCTYllWJB65BHQbZOYAAAEHSURBVDjL7ZLLEoIwDEUphSIg74fiW9H+/yeaOIUpDWXYuOOu4M5pmpvG2fQnuc0KiN0SX0qRBvUylslR4cvOBVLXqbRxoSL2nvooluqFFYc4j18PfjXbnwTt4uH3LrC2OwNmyPXaQR+MyFIw1p0jGIKO9Ib9TRyegPUkILoVTZcTEDvitJszeV/MaHgdeK0JNmB6hleDl5KrcWzG1EqwLgRMwX1MrVwNkkbMpm3jkzMC1hJ0150rPhWf3x2hFTjY9ud1wn05cnUv1qM3q5CoJGBdXeZqJb14jix8achGVnudaSM76UZiwHYFxzwqOFXzzM9teokYH5P3jkXG8r6dVerYx9m0Rl+8riWqpDNy7wAAAABJRU5ErkJggg==',
  1120. },
  1121. null
  1122. )
  1123. },
  1124. label: function () {
  1125. return '/api-student' == F() && Y.subjectOptions && 1 === Y.subjectOptions.length
  1126. ? null
  1127. : _(
  1128. ve,
  1129. {
  1130. activeColor: '#01C1B5',
  1131. onClick: function (e) {
  1132. e.preventDefault()
  1133. },
  1134. },
  1135. {
  1136. default: function () {
  1137. return [
  1138. _(
  1139. me,
  1140. {
  1141. class: Ae.searchSelect,
  1142. 'get-container': '#app',
  1143. modelValue: Y.subjectId,
  1144. options: Y.subjectOptions,
  1145. onChange: function (e) {
  1146. ;(Y.subjectId = e), t.onSearch()
  1147. },
  1148. },
  1149. null
  1150. ),
  1151. ]
  1152. },
  1153. }
  1154. )
  1155. },
  1156. action: function () {
  1157. return _('span', { class: Ae.search_btn, onClick: t.onSearch }, [J('搜索')])
  1158. },
  1159. }
  1160. ),
  1161. ]
  1162. },
  1163. }),
  1164. _('div', { class: K(Ae.accompanyList, Ae.song) }, [
  1165. this.show
  1166. ? _(
  1167. Q,
  1168. {
  1169. loading: re.loading,
  1170. finishedText: '加载完毕',
  1171. error: re.error,
  1172. offset: 100,
  1173. finished: re.finished,
  1174. immediateCheck: !1,
  1175. onLoad: this.FetchList,
  1176. },
  1177. {
  1178. default: function () {
  1179. return [
  1180. _(
  1181. G,
  1182. null,
  1183. ((n = e =
  1184. re.list.map(function (e) {
  1185. return _(
  1186. k,
  1187. {
  1188. size: 'large',
  1189. onClick: function () {
  1190. return t.toDetail(e)
  1191. },
  1192. },
  1193. {
  1194. icon: function () {
  1195. return _('div', { class: Ae['icon-status'] }, [
  1196. _(I, { class: Ae.iconMusic, name: ie }, null),
  1197. e.rankIds
  1198. ? _('div', { class: Ae.icon }, [_('img', { src: ae }, null)])
  1199. : null,
  1200. ])
  1201. },
  1202. title: function () {
  1203. return _(
  1204. $,
  1205. {
  1206. background: 'none',
  1207. color: '#444',
  1208. style: { paddingLeft: (e.rankIds ? '4PX' : '15PX') + '!important' },
  1209. text: e.name,
  1210. key: 'notactive',
  1211. },
  1212. null
  1213. )
  1214. },
  1215. }
  1216. )
  1217. })),
  1218. 'function' == typeof n ||
  1219. ('[object Object]' === Object.prototype.toString.call(n) && !te(n))
  1220. ? e
  1221. : {
  1222. default: function () {
  1223. return [e]
  1224. },
  1225. })
  1226. ),
  1227. ]
  1228. var n
  1229. },
  1230. error: function () {
  1231. return _('span', { onClick: t.FetchList }, [J('加载失败,请点击重试')])
  1232. },
  1233. }
  1234. )
  1235. : _(Z, { description: '暂无数据' }, null),
  1236. ]),
  1237. ])
  1238. },
  1239. })
  1240. )
  1241. },
  1242. }
  1243. }
  1244. )
  1245. })()