import{U as B,P as E,r as m,$ as T,E as N,V as k,m as p,Z as d,M as i,an as j,o as r,W as U,X as V,p as e,ad as S,Y as c,a3 as P,am as C,aE as $,ar as A}from"./common.modules-7ef9f935.js";import{a5 as G,G as z,aL as R,aM as q,x as Q,aN as F,A as H,aO as w,_ as O,a4 as X,y as L}from"./page-activity-ActivityDetail-6651511c.js";import{L as Y}from"./page-activity-DailySignIn-ca25ffbf.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};const Z={class:"sysMessage__container"},J={class:"sysMessage__container-msgWrapper__item-title"},K={class:"sysMessage__container-msgWrapper__item-time"},ee={class:"sysMessage__container-msgWrapper__item-content"},se=B({__name:"index",setup(h){const{t}=E(),{setLoading:l}=G(),_=m(),s=z(),f=T(),v=m(!1),o=m([]),D=R(),b=m({pageSize:25});function x(){f.back()}async function y(){const u=R();await q({state:1}).then(n=>{n&&u.setReadState(!0)}).catch(n=>{})}function W(u){P({title:t("warning"),message:t("warningTxt1")}).then(async()=>{if(await H(w({messageID:u.messageID,state:2}))){let I=o.value;o.value=I.filter(g=>g.messageID!==u.messageID)}})}const M=s.getUserInfo;return N(async()=>{l(!0),await y(),l(!1),_.value.resetRefresh(),M.unRead=0,s.setUserInfo({...M}),D.setReadState(!0)}),(u,n)=>{const I=k("NavBar"),g=k("svg-icon");return r(),p("div",Z,[d(I,{title:i(t)("notifications"),backgroundColor:"#f7f8ff","left-arrow":"",onClickLeft:x},null,8,["title"]),d(Y,{ref_key:"msgWrapperRef",ref:_,list:o.value,"onUpdate:list":n[0]||(n[0]=a=>o.value=a),"page-query":b.value,"onUpdate:pageQuery":n[1]||(n[1]=a=>b.value=a),api:i(F),distance:100,isAutoLoad:v.value},{content:j(()=>[(r(!0),p(U,null,V(o.value,a=>(r(),p("div",{class:"sysMessage__container-msgWrapper__item",key:a.messageID},[e("div",J,[S(' <component :is="item.state === 0 ? icons.messageIconRed : icons.messageIconIsRead" /> '),e("div",null,[d(g,{class:"svg",name:a.state===0?"messageIconRed":"notification"},null,8,["name"]),e("span",null,c(i(Q)(a.title,20)),1)]),d(g,{class:"svg",name:"messageGarbage",onClick:le=>W(a)},null,8,["onClick"]),S(` <component
							:is="icons.messageGarbage"
							@click="($event: Event) => { $event.stopPropagation(); onDeleteClick(item) }"
						/> `)]),e("div",K,c(a.addTime),1),e("div",ee,c(a.messages),1)]))),128))]),_:1},8,["list","page-query","api","isAutoLoad"])])}}});const ae=O(se,[["__scopeId","data-v-8084bf25"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/home/Messages/index.vue"]]),de=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"})),te={class:"messageDetail__container content"},ne={class:"messageDetail__container-wrapper"},oe={class:"messageDetail__container-title"},ie={class:"messageDetail__container-content"},re=B({__name:"index",setup(h){const{t}=E(),l=X(),_=T(),s=m({}),f=A(()=>L(()=>import("./messageIconNoDot-5bcbada6.js"),["assets/js/messageIconNoDot-5bcbada6.js","assets/js/common.modules-7ef9f935.js","assets/css/common-e210f711.css","assets/js/page-activity-ActivityDetail-6651511c.js","assets/js/native/index-1870b44d.js","assets/js/en-fc63d25a.js","assets/css/page-activity-ActivityDetail-b950a2ed.css"])),v=A(()=>L(()=>import("./messageGarbage-f327e5e2.js"),["assets/js/messageGarbage-f327e5e2.js","assets/js/common.modules-7ef9f935.js","assets/css/common-e210f711.css","assets/js/page-activity-ActivityDetail-6651511c.js","assets/js/native/index-1870b44d.js","assets/js/en-fc63d25a.js","assets/css/page-activity-ActivityDetail-b950a2ed.css"]));function o(){_.back()}function D(){P({title:t("warning"),message:t("warningTxt1")}).then(()=>{w({messageID:s.value.messageID,state:2}),_.back()})}return N(async()=>{s.value=l.getMessagesDetail,s.value.state!==1&&(await w({messageID:s.value.messageID,state:1}),l.setMessageDetail({...s.value,state:1}))}),(b,x)=>{const y=k("NavBar");return r(),p("div",te,[d(y,{"left-arrow":"",onClickLeft:o,title:i(t)("notificationDetails")},null,8,["title"]),e("div",ne,[e("div",oe,[e("div",null,[e("div",null,[(r(),C($(i(f)))),e("span",null,c(s.value.title),1)]),e("span",null,c(s.value.addTime),1)]),(r(),C($(i(v)),{onClick:D}))]),e("div",ie,c(s.value.messages),1)])])}}});const ce=O(re,[["__scopeId","data-v-e5380132"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/home/Messages/MessageDetail/index.vue"]]),ge=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"}));export{ge as a,de as i};
//# sourceMappingURL=page-home-Messages-70fab5a8.js.map
