!function(){function e(r){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(r)}function r(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function t(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach((function(r){n(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}function n(r,t,n){return(t=function(r){var t=function(r,t){if("object"!==e(r)||null===r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var o=n.call(r,t||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)}(r,"string");return"symbol"===e(t)?t:String(t)}(t))in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}System.register(["./framework-legacy.5183f0a6.js","./chart-legacy.faa359da.js","./index-legacy.d078c348.js","./knowledgeDetail-legacy.b8aeee9d.js"],(function(e,r){"use strict";var n,o,c,i,u,a,s;return{setters:[function(e){n=e.m},function(e){o=e.g},function(e){c=e.Q,i=e.G},function(e){u=e.u,a=e.a,s=e.b}],execute:function(){e("p",{data:function(){return{}},methods:t(t({},n("cacheRouter",["deleteCacheComponent"])),{},{knowledgePersonUrl:function(e){var r=e.identifier,t=e.sourceId,n=e.type;if(r&&t){var o={type:void 0===n?"person":n,identifier:r,sourceId:t};c.push({path:"/home/knowledgeDetail",query:o})}},provUrl:function(e){var r=e.sourceId,t=e.tableName,n=e.personalName,o=e.chiOrganizationName,i=e.chiEventName,u=e.geographicalName,a=e.productName;if(r){var s={zsk_personal_temp:n,zsk_org_temp:o,zsk_event_temp:i,zsk_geographical_temp:u,zsk_product_temp:a}[t]||"",f=c.resolve({path:"/read_book",query:{sourceId:r,searchNavValue:s}});window.open(f.href,"_blank")}},chart_proUrl:function(e){var r=e.sourceId,t=e.identifier;o({sourceId:r,identifier:t}).then((function(e){if(0===e.code){var n=c.resolve({path:"/read_book",query:{sourceId:r,identifier:t,pageNum:e.data.page_number}});window.open(n.href,"_blank")}}))},imgUrl:function(e,r,t,n,o,i){(o||"detail"===i)&&c.push({path:"/home/visual-search-result",query:{sourceId:r,refSourceId:e,tableName:t,searchVal:n}})},keywordUrl:function(e){var r={type:"search",list:i([{relation:"must",field:"-",keyword:e,match:"fuzzy"}]),checkType:"2,3,4,5,6",t:(new Date).getTime()};this.deleteCacheComponent("DashboardSearchResult").then((function(){c.push({path:"/home/searchResult",query:r})}))},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){a({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)}))}))}})})}}}))}();
