1import{a as e}from'./index-CrWCx5FQ.js';import{_ as s}from'./AppHeader.vue_vue_type_script_setup_true_lang-BBSFNGRg.js';/* empty css */import{u as t,aN as a,P as o}from'./router-G8QecHxs.js';import{u as i}from'./use-image-vDNpur_E.js';import{u as n}from'./use-user-DNoP8E0n.js';import{s as r}from'./use-helper-0uaKdRkp.js';import{B as l}from'./index-b34ruLab.js';import{M as p}from'./index-BpSZE6y3.js';import{a as m}from'./index-CE4lOdAf.js';import{l as c,a as u,r as d,c as g,R as f,k as x,X as v,Y as w,u as h,a1 as _,F as y,Z as j,W as b,y as k,U as C}from'./vendor-vue-PrZjxzdu.js';import{D as M,b as P}from'./vant-D0wJLC7X.js';import'./vendor-utils-C8M3dJTb.js';import'./use-emitter-C_oNMCkI.js';import'./use-secure-DjH-S5Zr.js';import'./use-crypto-CkizMN_8.js';import'./use-game-BSxu_11L.js';import'./use-version-yhz4yb9Y.js';import'./use-language-JeHkxM7X.js';/* empty css */import'./GoBackButton.vue_vue_type_script_setup_true_lang-CpalaY3X.js';import'./icon-base-Bohy99jk.js';const Z={key:0,class:'mt-5 text-center text-[14px]'},N=['onClick'],U={class:'whitespace-nowrap'},B=['innerHTML'],D=['src'],L={class:'bottom-action-content flex h-[50px] w-full items-center justify-end gap-1 bg-[#d7e2e8] pr-1 text-[#fff]'},T=e(c({__name:'Message',setup(e){const c=t(),{getUserMsgList:T,readUserMessage:A,deleteUserMsg:H,readAllMsg:R,delAllMsg:S}=n(),{getSiteImage:$}=i(),z=u(),I=d({showDialog:!1,showPopup:!1,message:void 0});g((async()=>{await T()}));const F=async()=>{I.message=void 0},G=async()=>{var e,s;(null==(e=I.message)?void 0:e.id)&&(await H(null==(s=I.message)?void 0:s.id),I.message=void 0)},W=async()=>{try{await P({title:'\u5168\u90e8\u5220\u9664\uff1f',confirmButtonText:'\u786e\u5b9a',cancelButtonText:'\u53d6\u6d88'}),await S()}catch{}},X=()=>{const e=!c.showZnxNotify;c.$asyncPatch((s=>{s.showZnxNotify=e})),localStorage.setItem('showZnxNotify',String(e))};return(e,t)=>{const i=M,n=l,u=p,d=m;return C(),f('main',null,[x(s,{page:h(o).UserCenter},{default:w((()=>[v('span',null,_(h(c).inSites('f169')?'\u7ad9\u5185\u4fe1\u606f':h(a)(e.$route.meta,'\u7ad9\u5185\u4fe1')),1)])),_:1},8,['page']),v('div',{ref_key:'messagePageRef',ref:z,class:'user-message-page page-content has-header text-[12px]'},[0===h(c).user.msgList.list.length?(C(),f('div',Z,_(e.$t('app.no.data','\u6682\u65e0\u6570\u636e')),1)):(C(!0),f(y,{key:1},j(h(c).user.msgList.list,(e=>(C(),f('div',{key:e.id,class:b(['message-item flex flex-1 justify-between p-1',[e.isRead?'text-[var(--user-message-read)]':'text-[var(--user-message-unread)]']]),onClick:s=>(async e=>{I.showDialog=!0,I.message=e,e.isRead||await A(e.id)})(e)},[v('div',null,_(e.title),1),v('div',U,_(e.updateTime),1)],10,N)))),128)),x(i,{show:h(I).showDialog,'onUpdate:show':t[0]||(t[0]=e=>h(I).showDialog=e),'show-cancel-button':!0,'confirm-button-text':'\u786e\u5b9a','cancel-button-text':'\u5220\u9664','class-name':'message-popup',onConfirm:F,onCancel:G},{title:w((()=>{var e;return[k(_(null==(e=h(I).message)?void 0:e.title),1)]})),default:w((()=>{var e;return[v('div',{innerHTML:h(r)((null==(e=h(I).message)?void 0:e.content)??'')},null,8,B)]})),_:1},8,['show']),v('div',{class:b(['bottom-action fixed left-0 right-0 flex flex-col',[h(I).showPopup?'bottom-0':'!bottom-[-50px]']])},[v('div',{class:'bottom-action-button mr-2 flex h-[20px] justify-end',onClick:t[1]||(t[1]=e=>h(I).showPopup=!h(I).showPopup)},[v('img',{class:'toggle-icon',src:h(I).showPopup?h($)('message/expand_arrow_down_bg.png'):h($)('message/expand_arrow_bg.png'),alt:''},null,8,D)]),v('div',L,[v('div',{class:'one-click bg-[#3c88f7]',onClick:t[2]||(t[2]=(...e)=>h(R)&&h(R)(...e))}
1,[x(n,{class:'mr-0.5 size-[16px] text-white'}),v('div',null,_(e.$t('app.all.read','\u5168\u90e8\u5df2\u8bfb')),1)]),v('div',{class:'one-click bg-[red]',onClick:W},[x(u,{class:'mr-0.5 size-[20px] text-white'}),t[3]||(t[3]=v('div',null,'\u4e00\u952e\u5220\u9664',-1))]),v('div',{class:b(['one-click',h(c).showZnxNotify?'bg-[#ef7a30] text-white':'bg-white text-[#707070]']),onClick:X},[x(d,{class:b(['mr-0.5 size-[18px]',[h(c).showZnxNotify?'text-white':'text-[#ef7a30]']])},null,8,['class']),v('div',null,'\u5f39\u7a97\u901a\u77e5\uff1a'+_(h(c).showZnxNotify?'\u5f00':'\u5173'),1)],2)])],2)],512)])}}}),[['__scopeId','data-v-d08d2fcd']]);export{T 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.