import{V as N,Q as T,r as d,a0 as B,F as O,W as k,m as p,$ as m,N as i,ao as E,o as r,X as V,Y as G,p as e,ad as C,Z as c,a4 as P,an as M,aC as $,as as R,t as L}from"./common.modules-adc6b33e.js";import{a4 as U,G as z,aL as A,aM as Q,x as q,aN as F,A as H,aO as w,_ as W,a3 as X}from"./page-activity-ActivityDetail-b9249b49.js";import{L as Y}from"./page-activity-DailySignIn-37493f03.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};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=N({__name:"index",setup(h){const{t}=T(),{setLoading:l}=U(),_=d(),s=z(),v=B(),f=d(!1),o=d([]),D=A(),b=d({pageSize:25});function x(){v.back()}async function y(){const u=A();await Q({state:1}).then(n=>{n&&u.setReadState(!0)}).catch(n=>{})}function j(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 S=s.getUserInfo;return O(async()=>{l(!0),await y(),l(!1),_.value.resetRefresh(),S.unRead=0,s.setUserInfo({...S}),D.setReadState(!0)}),(u,n)=>{const I=k("NavBar"),g=k("svg-icon");return r(),p("div",Z,[m(I,{title:i(t)("notifications"),backgroundColor:"#f7f8ff","left-arrow":"",onClickLeft:x},null,8,["title"]),m(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:f.value},{content:E(()=>[(r(!0),p(V,null,G(o.value,a=>(r(),p("div",{class:"sysMessage__container-msgWrapper__item",key:a.messageID},[e("div",J,[C(' <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=>j(a)},null,8,["onClick"]),C(` <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=W(se,[["__scopeId","data-v-8084bf25"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/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=N({__name:"index",setup(h){const{t}=T(),l=X(),_=B(),s=d({}),v=R(()=>L(()=>import("./messageIconNoDot-a2dca61c.js"),["assets/js/messageIconNoDot-a2dca61c.js","assets/js/common.modules-adc6b33e.js","assets/css/common-e210f711.css","assets/js/page-activity-ActivityDetail-b9249b49.js","assets/js/native/index-0b5e3b14.js","assets/js/en-8e350547.js","assets/css/page-activity-ActivityDetail-b950a2ed.css"])),f=R(()=>L(()=>import("./messageGarbage-b52f11b0.js"),["assets/js/messageGarbage-b52f11b0.js","assets/js/common.modules-adc6b33e.js","assets/css/common-e210f711.css","assets/js/page-activity-ActivityDetail-b9249b49.js","assets/js/native/index-0b5e3b14.js","assets/js/en-8e350547.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 O(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,[m(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(),M($(i(v)))),e("span",null,c(s.value.title),1)]),e("span",null,c(s.value.addTime),1)]),(r(),M($(i(f)),{onClick:D}))]),e("div",ie,c(s.value.messages),1)])])}}});const ce=W(re,[["__scopeId","data-v-e5380132"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/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-4ec126d2.js.map
