hooks-legacy.f81762aa.js 3.1 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 i=e[o](c),s=i.value}catch(u){return void r(u)}i.done?t(s):Promise.resolve(s).then(n,a)}System.register(["./ResizeObserver.es-legacy.8d60aee1.js"],(function(e){"use strict";var r,a;return{setters:[function(e){r=e.n,a=e.y}],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:""}}if("remove"!==r)return localStorage.setItem(e,t),"";localStorage.removeItem(e)}));var o=!1,c=(e("b",function(){var e,r=(e=regeneratorRuntime.mark((function e(r,n){var c,i,s,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",n);case 4:if(o=!0,"POST"!==c){e.next=11;break}return e.next=8,a.post(r,{requestType:n.requestType||"json",data:t({},n.params)});case 8:e.t0=e.sent,e.next=14;break;case 11:return e.next=13,a.get(r,{requestType:n.requestType||"json",params:t({},n.params)});case 13:e.t0=e.sent;case 14:i=e.t0,n.loading=!1,s=i.data||{},n.list=n.list.concat(s.rows||[]),n.finished=s.pageNo>=s.totalPage,n.params.page=s.pageNo+1,n.dataShow=n.list.length>0,e.next=27;break;case 23:e.prev=23,e.t1=e.catch(1),n.dataShow=!1,n.finished=!0;case 27:return o=!1,e.abrupt("return",n);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 i(e){n(c,a,o,i,s,"next",e)}function s(e){n(c,a,o,i,s,"throw",e)}i(void 0)}))});return function(e,t){return r.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){r({api:"setEventTracking",content:{type:c[e]}})}))}}}))}();