System.register(["./framework-legacy.5183f0a6.js","./index-legacy.d078c348.js","./chart-legacy.faa359da.js","./knowledgeDetail-legacy.b8aeee9d.js"],(function(e,r){"use strict";var t,n,o,a,i,u,c,s;return{setters:[function(e){t=e.r},function(e){n=e.u,o=e.G,a=e.k},function(e){i=e.g},function(e){u=e.u,c=e.a,s=e.b}],execute:function(){e("u",(function(){var e=n();function r(r){var t=r.identifier,n=r.sourceId;t&&n&&e.push({path:"/home/knowledgeDetail",query:r})}var d=t(!1);return{goKnowledgeDetail:r,knowledgePersonUrl:function(e){r({type:"person",identifier:e.identifier,sourceId:e.sourceId})},provUrl:function(r){var t=r.sourceId,n=r.tableName,o=r.personalName,a=r.chiOrganizationName,i=r.chiEventName,u=r.geographicalName,c=r.productName;if(t){var s={zsk_personal_temp:o,zsk_org_temp:a,zsk_event_temp:i,zsk_geographical_temp:u,zsk_product_temp:c}[n],d=e.resolve({path:"/read_book",query:{sourceId:t,searchNavValue:s}});window.open(d.href,"_blank")}},chart_provUrl:function(r){var t=r.sourceId,n=r.identifier;i({sourceId:t,identifier:n}).then((function(r){if(0===r.code){var o=e.resolve({path:"/read_book",query:{sourceId:t,identifier:n,pageNum:r.data.page_number}});window.open(o.href,"_blank")}}))},imgUrl:function(r,t,n,o,a,i){(a||"detail"===i)&&e.push({path:"/home/visual-search-result",query:{sourceId:t,refSourceId:r,tableName:n,searchVal:o}})},keywordUrl:function(r){var t={type:"search",list:o([{relation:"must",field:"-",keyword:r,match:"fuzzy"}]),checkType:"2,3,4,5,6",t:(new Date).getTime()};a.dispatch("cacheRouter/deleteCacheComponent","DashboardSearchResult").then((function(){e.push({path:"/home/searchResult",query:t})}))},isCollect:function(e){var r=e.usercId,t=e.sourceId;return new Promise((function(e){u({basicType:"图书",readHistoryType:"收藏",usercId:r,sourceId:t}).then((function(r){e(r)}))}))},collectOn:function(e){var r=e.usercId,t=e.sourceId,n=e.title;return new Promise((function(e){c({usercId:r,sourceId:t,title:n}).then((function(r){e(r)}))}))},collectOff:function(e){var r=e.usercId,t=e.sourceId;return new Promise((function(e){s({usercId:r,sourceId:t}).then((function(r){e(r)}))}))},goLiteratureDetail:function(r){var t=r.sourceId;if(t){var n={sourceId:t};e.push({path:"/home/literature-detail",query:n})}},chart_proUrl:function(r){var t=r.sourceId,n=r.identifier,o=r.volume;d.value=!0,i({sourceId:t,identifier:n}).then((function(r){if(0===r.code){var a=e.resolve({path:"/read_book",query:{sourceId:t,identifier:n,volume:o,pageNum:r.data.page_number}});window.open(a.href,"_blank")}})).finally((function(){d.value=!1}))},chartGoLoading:d}}))}}}));
