import{U as T,P as B,r as d,$ as N,E as j,V as k,m as p,Z as m,M as i,am as O,o as r,W as U,X as V,p as e,ac as S,Y as c,a3 as P,al as C,aA as $,aq as R}from"./common.modules-219f1756.js";import{a5 as G,G as q,aK as A,aL as z,x as Q,aM as F,A as H,aN as w,_ as E,a4 as K,y as L}from"./page-activity-ActivityDetail-346b11b6.js";import{L as X}from"./page-activity-DailySignIn-96ec389f.js";window.getBuildInfo=function(){return{buildTime:"3/15/2025, 9:01:28 PM",branch:" commitId:c8ca98fce6fc864cab311715d288030620d0dc9f"}};const Y={class:"sysMessage__container"},Z={class:"sysMessage__container-msgWrapper__item-title"},J={class:"sysMessage__container-msgWrapper__item-time"},ee={class:"sysMessage__container-msgWrapper__item-content"},se=T({__name:"index",setup(x){const{t}=B(),{setLoading:l}=G(),_=d(),s=q(),v=N(),f=d(!1),o=d([]),D=A(),y=d({pageSize:25});function h(){v.back()}async function I(){const u=A();await z({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 b=o.value;o.value=b.filter(g=>g.messageID!==u.messageID)}})}const M=s.getUserInfo;return j(async()=>{l(!0),await I(),l(!1),_.value.resetRefresh(),M.unRead=0,s.setUserInfo({...M}),D.setReadState(!0)}),(u,n)=>{const b=k("NavBar"),g=k("svg-icon");return r(),p("div",Y,[m(b,{title:i(t)("notifications"),backgroundColor:"#f7f8ff","left-arrow":"",onClickLeft:h},null,8,["title"]),m(X,{ref_key:"msgWrapperRef",ref:_,list:o.value,"onUpdate:list":n[0]||(n[0]=a=>o.value=a),"page-query":y.value,"onUpdate:pageQuery":n[1]||(n[1]=a=>y.value=a),api:i(F),distance:100,isAutoLoad:f.value},{content:O(()=>[(r(!0),p(U,null,V(o.value,a=>(r(),p("div",{class:"sysMessage__container-msgWrapper__item",key:a.messageID},[e("div",Z,[S(' <component :is="item.state === 0 ? icons.messageIconRed : icons.messageIconIsRead" /> '),e("div",null,[m(g,{class:"svg",name:a.state===0?"messageIconRed":"notification"},null,8,["name"]),e("span",null,c(i(Q)(a.title,20)),1)]),m(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",J,c(a.addTime),1),e("div",ee,c(a.messages),1)]))),128))]),_:1},8,["list","page-query","api","isAutoLoad"])])}}});const ae=E(se,[["__scopeId","data-v-8084bf25"],["__file","/usr/local/jenkins-prod/workspace/ar077-india-jalwa/src/views/home/Messages/index.vue"]]),me=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=T({__name:"index",setup(x){const{t}=B(),l=K(),_=N(),s=d({}),v=R(()=>L(()=>import("./messageIconNoDot-996fba1d.js"),["assets/js/messageIconNoDot-996fba1d.js","assets/js/common.modules-219f1756.js","assets/css/common-8abe0886.css","assets/js/page-activity-ActivityDetail-346b11b6.js","assets/js/native/index-a8a2a0fc.js","assets/js/en-43c55ab8.js","assets/css/page-activity-ActivityDetail-b950a2ed.css"])),f=R(()=>L(()=>import("./messageGarbage-81c34c07.js"),["assets/js/messageGarbage-81c34c07.js","assets/js/common.modules-219f1756.js","assets/css/common-8abe0886.css","assets/js/page-activity-ActivityDetail-346b11b6.js","assets/js/native/index-a8a2a0fc.js","assets/js/en-43c55ab8.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 j(async()=>{s.value=l.getMessagesDetail,s.value.state!==1&&(await w({messageID:s.value.messageID,state:1}),l.setMessageDetail({...s.value,state:1}))}),(y,h)=>{const I=k("NavBar");return r(),p("div",te,[m(I,{"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(v)))),e("span",null,c(s.value.title),1)]),e("span",null,c(s.value.addTime),1)]),(r(),C($(i(f)),{onClick:D}))]),e("div",ie,c(s.value.messages),1)])])}}});const ce=E(re,[["__scopeId","data-v-e5380132"],["__file","/usr/local/jenkins-prod/workspace/ar077-india-jalwa/src/views/home/Messages/MessageDetail/index.vue"]]),ge=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"}));export{ge as a,me as i};
//# sourceMappingURL=page-home-Messages-e2962f9e.js.map
