1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/index-I8twvcdc.js","static/js/element-plus-Dili4IpY.js","static/js/@vue-DUk3FjKi.js","static/js/@intlify-CXEHj0wc.js","static/js/@element-plus-qCw2jGK4.js","static/js/lodash-es-Dbzq5gb_.js","static/js/async-validator-CRx4dHSJ.js","static/js/@ctrl-r5W6hzzQ.js","static/js/@popperjs-DB1lLFnh.js","static/js/normalize-wheel-es-BQoi3Ox2.js","static/css/element-plus-DhN8SFP_.css","static/js/svgIcon-DyfUxL_w.js","static/js/index-BfKQpagI.js","static/js/vue-router-D4NYRPph.js","static/js/pinia-CrzrwD2A.js","static/js/js-cookie-Cz0CWeBA.js","static/js/axios-NIGUFBhG.js","static/js/renderer-pixi-BZdT2t-D.js","static/js/uuid-CtRu48qb.js","static/js/rxjs-BYzC9ufy.js","static/js/vue-i18n-Fhtom3Bx.js","static/js/vue-DbL3nRc-.js","static/js/pouchdb-find-CS0sgkcH.js","static/js/pouchdb-errors-Nr-dVszh.js","static/js/pouchdb-fetch-CVv6zVb8.js","static/js/pouchdb-abstract-mapreduce-DqzPn1tM.js","static/js/pouchdb-binary-utils-Cpnoy8M5.js","static/js/pouchdb-collate-BelqQoNM.js","static/js/pouchdb-utils-Bco8-zda.js","static/js/events-Be9xdRwo.js","static/js/spark-md5-CnnoW4q1.js","static/js/pouchdb-md5-TKLkGpLu.js","static/js/pouchdb-mapreduce-utils-BuWW8dPW.js","static/js/pouchdb-selector-core-CLpW_zHq.js","static/js/pouchdb-960pUlw4.js","static/js/vuvuzela-D4e09Uxl.js","static/js/dexie-2jmnBxhj.js","static/js/long-TZbvz1zH.js","static/js/protobufjs-CigtOYyM.js","static/js/@protobufjs-LQCbOUwE.js","static/js/mitt-DJ65BbbF.js","static/js/register-service-worker-TYP_X6yW.js","static/js/onyx-reditor-CMHA5PJY.js","static/js/opencc-js-CD_vXXFw.js","static/css/onyx-reditor-BBIXGpyw.css","static/css/index-Ctj0VeBb.css","static/css/svgIcon-CNhIzIEu.css","static/js/filters-CbWu_b4W.js","static/css/index-C2lkv8hm.css","static/js/index-BiaQJXNN.js","static/css/index-Beurih0t.css"])))=>i.map(i=>d[i]); 2import{e as U,v as G}from"./element-plus-Dili4IpY.js";import{_ as A}from"./search-BGwLZpbN.js";import{_ as M}from"./svgIcon-DyfUxL_w.js";import{_ as k}from"./renderer-pixi-BZdT2t-D.js";import{u as N,a as Y,aM as j,t as n,C as q,y as L,E,aQ as K,d as Q,an as X,aR as F,_ as J}from"./index-BfKQpagI.js";import{M as W}from"./index-CszvHhVi.js";import{u as Z}from"./vue-router-D4NYRPph.js";import{l as x,n as ee}from"./lodash-es-Dbzq5gb_.js";import{d as te,aB as w,j as m,X as ae,k as oe,E as ne,ac as re,c as I,a as D,U as ie,O as f,K as b,I as se,L as R,an as T,o as c}from"./@vue-DUk3FjKi.js";import"./@element-plus-qCw2jGK4.js";import"./async-validator-CRx4dHSJ.js";import"./@ctrl-r5W6hzzQ.js";import"./@popperjs-DB1lLFnh.js";import"./normalize-wheel-es-BQoi3Ox2.js";import"./uuid-CtRu48qb.js";import"./rxjs-BYzC9ufy.js";import"./pinia-CrzrwD2A.js";import"./js-cookie-Cz0CWeBA.js";import"./axios-NIGUFBhG.js";import"./vue-i18n-Fhtom3Bx.js";import"./@intlify-CXEHj0wc.js";import"./vue-DbL3nRc-.js";import"./pouchdb-find-CS0sgkcH.js";import"./pouchdb-errors-Nr-dVszh.js";import"./pouchdb-fetch-CVv6zVb8.js";import"./pouchdb-abstract-mapreduce-DqzPn1tM.js";import"./pouchdb-binary-utils-Cpnoy8M5.js";import"./pouchdb-collate-BelqQoNM.js";import"./pouchdb-utils-Bco8-zda.js";import"./events-Be9xdRwo.js";import"./spark-md5-CnnoW4q1.js";import"./pouchdb-md5-TKLkGpLu.js";import"./pouchdb-mapreduce-utils-BuWW8dPW.js";import"./pouchdb-selector-core-CLpW_zHq.js";import"./pouchdb-960pUlw4.js";import"./vuvuzela-D4e09Uxl.js";import"./dexie-2jmnBxhj.js";import"./long-TZbvz1zH.js";import"./protobufjs-CigtOYyM.js";import"./@protobufjs-LQCbOUwE.js";import"./mitt-DJ65BbbF.js";import"./register-service-worker-TYP_X6yW.js";import"./onyx-reditor-CMHA5PJY.js";import"./opencc-js-CD_vXXFw.js";import"./pagination-ButMW_R8.js";import"./index.vue_vue_type_style_index_0_scoped_49b0bbc6_lang-CV-h-7aY.js";import"./@vueuse-DssYKdcO.js";import"./qrcode-Bl-C4GaC.js";import"./dijkstrajs-C00ieaqj.js";const le=()=>k(()=>import("./index-I8twvcdc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48])),ce=()=>k(()=>import("./index-BiaQJXNN.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50])),pe=te({name:"RecentlyLibrary",components:{SvgIcon:M,Search:A,LibraryTableView:w(le),LibraryGridView:w(ce),MetadataTabs:W},setup(){const{push:t}=Z(),r=N(),v=Y(),s=j(),V=m(()=>r.currentServer?.lang==="zh");m(()=>r.currentServer);const B=m(()=>v.userInfo),e=ae({loading:!1,visibleSort:!1,scribbleVisible:!1,annotationsVisible:!1,sortType:"updatedAt",orderBy:"desc",mode:"grid",currentTab:"",selectionData:[],originData:[],tableData:[],searchVal:"",searchData:[],currentItem:{},paginationProps:{total:0,pageSize:24,page:1}}),g=m(()=>[{prop:"library_name",label:n("common.name"),align:"left"},{prop:"authors",label:n("common.author"),align:"left"},{prop:"idString",label:n("library.path"),align:"left"},{prop:"type",label:n("common.format"),align:"left"},{prop:"size",label:n("common.size"),align:"left"},{prop:"readProgress",label:n("common.progress")}]),h=m(()=>
2[{icon:"icon_mini_delete",type:q.DELETE,title:n("common.del")}]),y=m(()=>({isExpend:!1}));oe(()=>{L.on(E.LIBRARY_RESET,p),p()}),ne(()=>{L.off(E.LIBRARY_RESET,p)});const p=async()=>{try{e.loading=!0;const a=await s.getMetadata();e.originData=x(a.filter(o=>o.readingStatus!==K.UnRead)),e.originData=e.originData.splice(0,e.paginationProps.pageSize),e.selectionData=[],_(),e.loading=!1}catch(a){e.loading=!1,console.log(a)}},_=(a="")=>{a&&(e.orderBy=e.sortType===a&&e.orderBy==="desc"?"asc":"desc",e.visibleSort=!e.visibleSort,e.sortType=a),e.originData=ee(e.originData,[e.sortType],[e.orderBy]),l(e.originData)},l=a=>{let{page:o,pageSize:i}=e.paginationProps;e.selectionData=[];for(let u of a)u.check=!1;e.tableData=a.slice((o-1)*i,o*i),e.paginationProps.total=a.length},d=()=>{e.mode=e.mode==="table"?"grid":"table"},P=a=>{e.searchVal=a||"",e.paginationProps.page=1,e.searchVal?(e.searchData=e.originData.filter(o=>o.name&&~o.name.indexOf(a)||o.authors&&~o.authors.indexOf(a)||o.idString&&~o.idString.indexOf(a)||o.type&&~o.type.indexOf(a)),l(e.searchData)):(e.searchData=[],l(e.originData))},H=a=>{let{type:o,item:i}=a;e.currentItem=i,o==="scribble"?e.scribbleVisible=!0:o==="delete"&&C([i])},C=async a=>{try{await Q(n("alert.tips37"),"",{confirmButtonText:n("common.confirm"),cancelButtonText:n("common.cancel"),showClose:!1,center:!0}),e.loading=!0;const o=a.map(S=>S.idString),u=(await s.getMetadataByIdString(o)).map(S=>S.uniqueId);await s.removeMetadata(u),await s.removeMetadataCollection(u),await s.pushLibraryData(),await s.getLibraryChannel(),p(),X(n("elMsg.delSuccess")),e.loading=!1}catch(o){e.loading=!1,console.log(o)}},O=a=>{let{data:o,tab:i}=a;e.currentItem=o,e.currentTab=i||F.Annotation,e.annotationsVisible=!0},$=a=>{e.selectionData=[],e.selectionData=a},z=a=>{e.paginationProps.page=a,e.searchVal?l(e.searchData):l(e.originData)};return{t:n,push:t,...re(e),isInLand:V,userInfo:B,tableColumns:g,tableBtn:h,tableBtnProps:y,changeMode:d,searchHandle:P,batchRemove:C,tableHandle:H,openAnnotations:O,selectionChange:$,pageChange:z}}}),me={class:"list-container"},de={class:"recentlyLibrary-header"},be={class:"recentlyLibrary-header-left"},ge={class:"recentlyLibrary-header-right"},ue={class:"gb-table-container"};function fe(t,r,v,s,V,B){const e=M,g=U,h=A,y=T("LibraryTableView"),p=T("LibraryGridView"),_=T("MetadataTabs"),l=G;return c(),I("div",me,[D("div",de,[D("div",be,[t.selectionData.length?(c(),b(g,{key:0,class:"gb-icon-btn",onClick:r[0]||(r[0]=d=>t.batchRemove(t.selectionData))},{default:R(()=>[f(e,{name:"icon_mini_delete"})]),_:1})):se("",!0)]),D("div",ge,[f(h,{class:"search-wrap",onSearchHandle:t.searchHandle},null,8,["onSearchHandle"]),f(g,{class:"gb-icon-btn icon-item",onClick:t.changeMode},{default:R(()=>[t.mode==="table"?(c(),b(e,{key:0,name:"icon_grid_mode"})):(c(),b(e,{key:1,name:"icon_list_mode"}))]),_:1},8,["onClick"])])]),ie((c(),I("div",ue,[t.mode==="table"?(c(),b(y,{key:0,"table-data":t.tableData,"table-columns":t.tableColumns,"table-btn":t.tableBtn,"table-btn-props":t.tableBtnProps,onTableHandle:t.tableHandle,onOpenAnnotations:t.openAnnotations,onTableSelectionChange:t.selectionChange},null,8,["table-data","table-columns","table-btn","table-btn-props","onTableHandle","onOpenAnnotations","onTableSelectionChange"])):(c(),b(p,{key:1,"table-data":t.tableData,"handle-btn":t.tableBtn,onTableHandle:t.tableHandle,onOpenAnnotations:t.openAnnotations,onTableSelectionChange:t.selectionChange},null,8,["table-data","handle-btn","onTableHandle","onOpenAnnotations","onTableSelectionChange"]))])),[[l,t.loading]]),f(_,{"annotations-visible":t.annotationsVisible,"onUpdate:annotationsVisible":r[1]||(r[1]=d=>t.annotationsVisible=d),"current-tab":t.currentTab,"current-item":t.currentItem,onClose:r[2]||(r[2]=d=>t.annotationsVisible=!1)},null,8,["annotations-visible","current-tab","current-item"])])}const dt=J(pe,[["render",fe],["__scopeId","data-v-dec3b9ef"]]);export{dt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.