hooks-legacy.b4b15558.js 3.0 KB

1
  1. !function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){r(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t,r,n,a,o,c){try{var s=e[o](c),i=s.value}catch(u){return void r(u)}s.done?t(i):Promise.resolve(i).then(n,a)}System.register(["./ResizeObserver.es-legacy.9ef5ac8c.js"],(function(e){"use strict";var r,a;return{setters:[function(e){r=e.y,a=e.n}],execute:function(){e("S",{SEARCH:"music-songbook-subject",ALBUM:"music-album-subject",MUSIC:"music-subject",LIVE:"live-subject",VIDEO:"video-subject",ELEGANT:"elegant-subject",MUSIC_FREE:"music-list-free"}),e("a",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get";if(!e)return"";if("get"===r){var n=localStorage.getItem(e);return n=n?JSON.parse(n):{name:"",id:""}}return localStorage.setItem(e,t),""}));var o=!1,c=(e("b",function(){var e,a=(e=regeneratorRuntime.mark((function e(n,a){var c,s,i,u=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=u.length>2&&void 0!==u[2]?u[2]:"POST",e.prev=1,!o){e.next=4;break}return e.abrupt("return",a);case 4:if(o=!0,"POST"!==c){e.next=11;break}return e.next=8,r.post(n,{requestType:a.requestType||"json",data:t({},a.params)});case 8:e.t0=e.sent,e.next=14;break;case 11:return e.next=13,r.get(n,{requestType:a.requestType||"json",params:t({},a.params)});case 13:e.t0=e.sent;case 14:s=e.t0,a.loading=!1,i=s.data||{},a.list=a.list.concat(i.rows||[]),a.finished=i.pageNo>=i.totalPage,a.params.page=i.pageNo+1,a.dataShow=a.list.length>0,e.next=27;break;case 23:e.prev=23,e.t1=e.catch(1),a.dataShow=!1,a.finished=!0;case 27:return o=!1,e.abrupt("return",a);case 29:case"end":return e.stop()}}),e,null,[[1,23]])})),function(){var t=this,r=arguments;return new Promise((function(a,o){var c=e.apply(t,r);function s(e){n(c,a,o,s,i,"next",e)}function i(e){n(c,a,o,s,i,"throw",e)}s(void 0)}))});return function(e,t){return a.apply(this,arguments)}}()),{"专辑":"klx_album","视频课":"klx_videoClass","直播课":"klx_liveClass","达人风采":"klx_talentElegant","热门资讯":"klx_hotInformation","小酷AI功能埋点":"klx_xiaokuAI","我的乐谱":"klx_myMusic","评测记录":"klx_myEvaluation","订单":"klx_myOrder","交易记录":"klx_myTrade","优惠券":"klx_myCoupon","帮助中心":"klx_helpCenter","商品列表":"klx_goods","商品详情":"klx_goodDetail","购买支付":"klx_payment","取消支付":"klx_cancelPayment"});e("u",(function(e){a({api:"setEventTracking",content:{type:c[e]}})}))}}}))}();