import{p}from"./pick.103d2550.js";import{C as h}from"./index.00882871.js";import{l as y,c as g}from"./model.fc87b5a1.js";import{aa as m,a6 as K,a7 as N,aK as f,aL as k,J as C,I as L,G as v,t as O,ac as T,ad as b,ae as w,af as z,ag as P}from"./index.8c202964.js";import{s as S,h as _}from"./chart.860d5b23.js";import{l as x,s as F,c as I,k as q}from"./dashboard_expert_config.5a6aece9.js";function R({advancedRetrievalParams:e}){return m({sourceType:100,categoryType:"",advancedRetrievalParams:e}).then(t=>t.data)}function U({advancedRetrievalParams:e}){return m({sourceType:200,categoryType:"",advancedRetrievalParams:e}).then(t=>t.data)}function B({syncListOrImage:e}){return Number(e)===1?"LiteratureTableList":"LiteratureCardList"}function E({syncListOrImage:e}){return Number(e)===2?"baseImgList":"chartList"}let V=[{rid:"1",classificationName:"\u77E5\u8BC6\u7C7B\u578B",categoryName:"\u77E5\u8BC6\u7C7B\u578B",checked:!1,children:[{rid:"1-1",isknowledgeSecondNav:!0,classificationName:"\u4EBA\u7269",value:"person",dataKey:"personalList",sortKey:"personalNameIndex",tableKey:"zsk_personal_temp",contentNum:0,service:T,checked:!1,searchKeyOptions:[{id:"1",name:"\u4EBA\u7269\u901A\u7528\u540D\u79F0",searchKey:"personalName"},{id:"2",name:"\u77E5\u8BC6\u51FA\u5904",searchKey:"sourceName"},{id:"3",name:"\u4EBA\u7269\u4F20\u7565",searchKey:"biography"}]},{rid:"1-2",isknowledgeSecondNav:!0,classificationName:"\u5730\u540D",value:"geographical",dataKey:"geographicalList",sortKey:"geographicalNameIndex",tableKey:"zsk_geographical_temp",contentNum:0,service:b,checked:!1,searchKeyOptions:[{id:"10",name:"\u5730\u540D\u4E13\u540D",searchKey:"geographicalName"},{id:"11",name:"\u77E5\u8BC6\u51FA\u5904",searchKey:"sourceName"},{id:"12",name:"\u53C2\u8003\u65B9\u4F4D",searchKey:"azimuth"}]},{rid:"1-3",isknowledgeSecondNav:!0,classificationName:"\u4E8B\u4EF6",value:"event",dataKey:"eventList",sortKey:"chiEventNameIndex",tableKey:"zsk_event_temp",contentNum:0,service:w,checked:!1,searchKeyOptions:[{id:"7",name:"\u4E8B\u4EF6\u4E2D\u6587\u5168\u79F0",searchKey:"chiEventName"},{id:"8",name:"\u77E5\u8BC6\u51FA\u5904",searchKey:"sourceName"},{id:"9",name:"\u4E8B\u4EF6\u63CF\u8FF0",searchKey:"description"}]},{rid:"1-4",isknowledgeSecondNav:!0,classificationName:"\u673A\u6784",value:"organization",dataKey:"orgList",sortKey:"chiOrganizationNameIndex",tableKey:"zsk_org_temp",contentNum:0,service:z,checked:!1,searchKeyOptions:[{id:"4",name:"\u673A\u6784\u4E2D\u6587\u5168\u79F0",searchKey:"chiOrganizationName"},{id:"5",name:"\u77E5\u8BC6\u51FA\u5904",searchKey:"sourceName"},{id:"6",name:"\u673A\u6784\u63CF\u8FF0",searchKey:"description"}]},{rid:"1-5",isknowledgeSecondNav:!0,classificationName:"\u7269\u4EA7",value:"product",dataKey:"productList",sortKey:"productNameIndex",tableKey:"zsk_product_temp",contentNum:0,service:P,checked:!1,searchKeyOptions:[{id:"13",name:"\u7269\u4EA7\u540D\u79F0",searchKey:"productName"},{id:"14",name:"\u77E5\u8BC6\u51FA\u5904",searchKey:"sourceName"},{id:"15",name:"\u7269\u4EA7\u63CF\u8FF0",searchKey:"description"}]}]},{rid:"2",classificationName:"\u5EFA\u8BBE\u5355\u4F4D",categoryName:"\u5EFA\u8BBE\u5355\u4F4D",checked:!1,children:[]}];const d=(e,a)=>({relation:"must",field:a,keyword:e,match:"fuzzy"});function A({inputParams:e,page:a,rows:t,tagList:o}){console.log({inputParams:e,page:a,rows:t,tagList:o});const[n]=e,{keyword:i}=n,s=o.map(r=>d(r.classificationCode,r.columnName)).concat([d(i,"contentTxt")]).filter(r=>L(r.keyword));return console.log("advancedRetrievalParams",s),{page:a,rows:t,advancedRetrievalParams:v(s)}}function D(){return V}const G=[{id:"2",name:"\u6587\u732E",component:B,searchKeyOptions:y,searchFieldList:x,countKey:"bookPropertiesCount",dataCount:0,getSideTree:R,request:K},{id:"3",name:"\u7BC7\u7AE0",component:"ChapterCardList",searchKeyOptions:g,searchFieldList:F,countKey:"bookCount",dataCount:0,getSideTree:U,request:N},{id:"4",name:"\u56FE\u8868",component:E,searchKeyOptions:h,searchFieldList:I,countKey:"chartCount",dataCount:0,getSideTree:S,request:_},{id:"5",name:"\u5168\u6587",component:"FullText",searchKey:"title",countKey:"FullTextCount",getSideTree:e=>f(e).then(a=>a.data),dataCount:0,request:k,formatParams:A},{id:"6",name:"\u77E5\u8BC6",component:"ResultKnowledge",searchKey:"title",searchFieldList:q,countKey:"knowledgeCount",dataCount:0,request:C,getSideTree:D,formatParams:({page:e,rows:a,inputParams:t,advanceParams:o,advancedRetrievalParams:n,searchType:i,tagList:s})=>{const r=i==="search">0?t[0].keyword:n[0].keyword;return{page:e,rows:a,keyword:r,constructionUnits:(u=>{const c=O(u).find(l=>l.columnName==="constructionUnits");return c?c.classificationCode:""})(s)}}}];function Y(){return G.map(e=>p(e,["id","name","searchKey","dataCount","countKey"]))}export{V as a,G as c,Y as g,D as k};
