PageSourceSearch

https://send2boox.com/static/js/index-uQ_I7KVc.js

js send2boox.com collected 2026-09-28 07:02:23 UTC 7,197 bytes, 1 lines download raw bytes

1import{_ as E}from"./index-CzQClHGV.js";import{o as T,l as x,e as H,d as w}from"./element-plus-Dili4IpY.js";import{_ as S}from"./svgIcon-DyfUxL_w.js";import{t as u,C as y,w as U,d as V,an as B,_ as I}from"./index-BfKQpagI.js";import{Y as F,Z as A,_ as $,$ as j}from"./index-98yTC_HM.js";import{o as O}from"./@vueuse-DssYKdcO.js";import{d as X,b as Y,X as R,k as K,ac as P,c as l,o as s,a as i,O as c,I as f,K as b,L as g,Q as p,F as D,a6 as Q,P as Z,a7 as L}from"./@vue-DUk3FjKi.js";import"./@element-plus-qCw2jGK4.js";import"./lodash-es-Dbzq5gb_.js";import"./async-validator-CRx4dHSJ.js";import"./@ctrl-r5W6hzzQ.js";import"./@popperjs-DB1lLFnh.js";import"./normalize-wheel-es-BQoi3Ox2.js";import"./vue-router-D4NYRPph.js";import"./pinia-CrzrwD2A.js";import"./js-cookie-Cz0CWeBA.js";import"./axios-NIGUFBhG.js";import"./renderer-pixi-BZdT2t-D.js";import"./uuid-CtRu48qb.js";import"./rxjs-BYzC9ufy.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"./uuid-CLddtR2Y.js";import"./jszip-RGlDoWoc.js";import"./crypto-js-D55Fn0wG.js";import"./file-cBmSf7PO.js";import"./enginejs-D_YGjawM.js";import"./qrcode-Bl-C4GaC.js";import"./dijkstrajs-C00ieaqj.js";const q=X({name:"GroupNotice",components:{SvgIcon:S,ContextMenu:E},props:{currentGroup:{type:Object}},setup(t,{emit:a}){const N=Y();O(N,()=>e.visibleContextMenu=!1);const e=R({noticeList:[],visibleContextMenu:!1,contextMenuList:[],selectedNotice:null,clientX:0,clientY:0,isMultiSelect:!1,allCheck:!1,indeterminate:!1,selectionData:[]});K(()=>{_()});const _=async()=>{try{let o=await F({page:1,limit:1e4});for(const r of o.data.results)r.check=!1;e.noticeList=o.data.results}catch{}},G=(o,r)=>{e.contextMenuList=[{label:u("common.multiSelect"),value:y.MULTI_SELECT},{label:u("common.del"),value:y.DELETE}],e.clientX=o.clientX,e.clientY=o.clientY,e.selectedNotice=r||null,e.visibleContextMenu=!!e.contextMenuList.length},h=o=>{const{value:r}=o;switch(r){case y.MULTI_SELECT:e.isMultiSelect=!0;break;case y.DELETE:e.selectionData=[e.selectedNotice],v();break}e.visibleContextMenu=!1},d=()=>{if(e.allCheck)for(let o of e.noticeList)o.check=!0;else for(let o of e.noticeList)o.check=!1;k()},k=()=>{e.selectionData=e.noticeList.filter(o=>o.check),e.noticeList.length&&e.selectionData.length===e.noticeList.length?(e.allCheck=!0,e.indeterminate=!1):e.selectionData.length&&e.selectionData.length!==e.noticeList.length?(e.allCheck=!1,e.indeterminate=!0):(e.allCheck=!1,e.indeterminate=!1)},C=async o=>{await A({noticeId:o._id}),_()},M=async o=>{let r={users:[o.sender.uid],groupId:o.note_group._id};await $(r),_()},v=async()=>{if(!e.selectionData.length){U("请勾选需要操作的选项");return}try{await V("",u("alert.tips2"),{confirmButtonText:u("common.confirm"),cancelButtonText:u("common.cancel"),showClose:!1,center:!0});let o={noticeIds:e.selectionData.map(r=>r._id)};await j(o),m(),_(),B(u("elMsg.handleSuccess"))}catch{}},n=()=>{a("close","GroupNotice")},m=async()=>{e.isMultiSelect=!1,e.allCheck=!1,e.selectionData=[],d()};return{t:u,...P(e),contextMenuRef:N,closeGroupNotice:n,nodeContextmenu:G,contextMenuHandle:h,allCheckHandle:d,getSelectionData:k,rejectUserToGroupHandle:C,addUserToGroupHandle:M,delNoteGroupsNoticeHandle:v}}}),z={class:"groupNav-informGroup"},J={class:"groupNav-informGroup-header"},W={key:0},ee={key:1,class:"groupNav-informGroup-allSelect"},te={class:"font-format-normal medium-family"},oe=["onContextmenu"],ne={class:"groupNav-informGroup-item-top"},ie={class:"groupNav-informGroup-item-info"},se={class:"groupNav-informGroup-item-name"},ae=["title"],le={key:0,class:"font-format-medium medium-family success-color"},re={key:1,class:"font-format-medium medium-family error-color"},ce={class:"font-format-medium regular-family"},me={class:"font-format-small regular-family"},ue={key:0,class:"groupNav-informGroup-item-btn"},pe={key:0,class:"groupNav-batchOperation-btn"},de={class:"font-format-small medium-family"};function fe(t,a,N,e,_,G){const h=T,d=S,k=x,C=H,M=w,v=E;return s(),l("div",z,[i("div",J,[t.isMultiSelect?(s(),l("div",ee,[c(h,{modelValue:t.allCheck,"onUpdate:modelValue":a[0]||(a[0]=n=>t.allCheck=n),indeterminate:t.indeterminate,onChange:t.allCheckHandle},{default:g(()=>a[3]||(a[3]=[i("span",{class:"font-format-normal medium-family"},"全选",-1)])),_:1,__:[3]},8,["modelValue","indeterminate","onChange"]),i("p",te,"已选"+p(t.selectionData.length)+"项",1)])):(s(),l("div",W,a[2]||(a[2]=[i("div",null,null,-1),i("p",{class:"font-format-big multiple-family"},"通知",-1)]))),c(d,{name:"icon_close",onClick:t.closeGroupNotice},null,8,["onClick"])]),c(M,null,{default:g(()=>[(s(!0),l(D,null,Q(t.noticeList,n=>(s(),l("div",{key:n._id,class:"groupNav-informGroup-item",onContextmenu:Z(m=>t.nodeContextmenu(m,n),["prevent"])},[i("div",ne,[c(k,{class:"groupNav-informGroup-item-pic",src:n.sender.avatar},{error:g(()=>
1[c(d,{name:"icon_user_big"})]),_:2},1032,["src"]),i("div",ie,[i("div",se,[i("p",{class:"font-format-normal medium-family omitText",title:n.sender.nickname},p(n.sender.nickname),9,ae),n.isAgree!=="pending"?(s(),l(D,{key:0},[n.isAgree==="yes"?(s(),l("p",le," 已同意 ")):n.isAgree==="no"?(s(),l("p",re," 已拒绝 ")):f("",!0)],64)):f("",!0),t.isMultiSelect?(s(),b(h,{key:1,modelValue:n.check,"onUpdate:modelValue":m=>n.check=m,class:"groupNav-checkbox",onChange:t.getSelectionData},null,8,["modelValue","onUpdate:modelValue","onChange"])):f("",!0)]),i("p",ce,"申请入群 ["+p(n.note_group.name)+"]",1),i("p",me,p(n.description),1)])]),n.isAgree==="pending"?(s(),l("div",ue,[c(C,{type:"danger",round:"",onClick:m=>t.rejectUserToGroupHandle(n)},{default:g(()=>[L(p(t.t("common.reject")),1)]),_:2},1032,["onClick"]),c(C,{type:"primary",round:"",onClick:m=>t.addUserToGroupHandle(n)},{default:g(()=>[L(p(t.t("common.agree")),1)]),_:2},1032,["onClick"])])):f("",!0)],40,oe))),128))]),_:1}),t.isMultiSelect?(s(),l("div",pe,[i("div",{class:"groupNav-batchOperation-item",onClick:a[1]||(a[1]=(...n)=>t.delNoteGroupsNoticeHandle&&t.delNoteGroupsNoticeHandle(...n))},[c(d,{name:"icon_mini_delete"}),i("p",de,p(t.t("common.del")),1)])])):f("",!0),t.visibleContextMenu?(s(),b(v,{key:1,ref:"contextMenuRef","context-menu-list":t.contextMenuList,"client-x":t.clientX,"client-y":t.clientY,onContextMenuHandle:t.contextMenuHandle},null,8,["context-menu-list","client-x","client-y","onContextMenuHandle"])):f("",!0)])}const dt=I(q,[["render",fe]]);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.