import{C as L,v as B,r as g,N,y as T,D as w,E as p,M as d,J as i,as as P,I as r,G as U,H as V,F as e,al as C,K as l,Y as E,ar as b,aR as M,aB as R,n as $}from"./common.modules-7b90237f.js";import{a3 as W,G as z,aS as A,aT as q,B as F,aU as H,A as Q,aV as S,_ as j,a2 as J}from"./page-activity-ActivityDetail-27bd7cf0.js";import{L as K}from"./page-activity-DailySignIn-63fcaba2.js";const Y={class:"sysMessage__container"},X={class:"sysMessage__container-msgWrapper__item-title"},Z={class:"sysMessage__container-msgWrapper__item-time"},ee={class:"sysMessage__container-msgWrapper__item-content"},se=L({__name:"index",setup(G){const{t:n}=B(),{setLoading:c}=W(),_=g(),s=z(),v=N(),f=g(!1),o=g([]),D=A(),y=g({pageSize:25});function h(){v.back()}async function I(){const u=A();await q({state:1}).then(t=>{t&&u.setReadState(!0)}).catch(t=>{})}function O(u){E({title:n("warning"),message:n("warningTxt1")}).then(async()=>{if(await Q(S({messageID:u.messageID,state:2}))){let k=o.value;o.value=k.filter(m=>m.messageID!==u.messageID)}})}const x=s.getUserInfo;return T(async()=>{c(!0),await I(),c(!1),_.value.resetRefresh(),x.unRead=0,s.setUserInfo({...x}),D.setReadState(!0)}),(u,t)=>{const k=w("NavBar"),m=w("svg-icon");return r(),p("div",Y,[d(k,{title:i(n)("notifications"),backgroundColor:"#f7f8ff","left-arrow":"",onClickLeft:h},null,8,["title"]),d(K,{ref_key:"msgWrapperRef",ref:_,list:o.value,"onUpdate:list":t[0]||(t[0]=a=>o.value=a),"page-query":y.value,"onUpdate:pageQuery":t[1]||(t[1]=a=>y.value=a),api:i(H),distance:100,isAutoLoad:f.value},{content:P(()=>[(r(!0),p(U,null,V(o.value,a=>(r(),p("div",{class:"sysMessage__container-msgWrapper__item",key:a.messageID},[e("div",X,[C(' <component :is="item.state === 0 ? icons.messageIconRed : icons.messageIconIsRead" /> '),e("div",null,[d(m,{class:"svg",name:a.state===0?"messageIconRed":"notification"},null,8,["name"]),e("span",null,l(i(F)(a.title,20)),1)]),d(m,{class:"svg",name:"messageGarbage",onClick:ce=>O(a)},null,8,["onClick"]),C(` <component
							:is="icons.messageGarbage"
							@click="($event: Event) => { $event.stopPropagation(); onDeleteClick(item) }"
						/> `)]),e("div",Z,l(a.addTime),1),e("div",ee,l(a.messages),1)]))),128))]),_:1},8,["list","page-query","api","isAutoLoad"])])}}});const ae=j(se,[["__scopeId","data-v-8084bf25"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/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=L({__name:"index",setup(G){const{t:n}=B(),c=J(),_=N(),s=g({}),v=R(()=>$(()=>import("./messageIconNoDot-5b83216d.js"),["assets/js/messageIconNoDot-5b83216d.js","assets/js/common.modules-7b90237f.js","assets/css/common-e210f711.css","assets/js/page-activity-ActivityDetail-27bd7cf0.js","assets/js/page-turntable-assets-d6267459.js","assets/js/native/index-ecf1462d.js","assets/js/en-91d2fc72.js","assets/css/page-activity-ActivityDetail-a597c4a3.css"])),f=R(()=>$(()=>import("./messageGarbage-43e9a115.js"),["assets/js/messageGarbage-43e9a115.js","assets/js/common.modules-7b90237f.js","assets/css/common-e210f711.css","assets/js/page-activity-ActivityDetail-27bd7cf0.js","assets/js/page-turntable-assets-d6267459.js","assets/js/native/index-ecf1462d.js","assets/js/en-91d2fc72.js","assets/css/page-activity-ActivityDetail-a597c4a3.css"]));function o(){_.back()}function D(){E({title:n("warning"),message:n("warningTxt1")}).then(()=>{S({messageID:s.value.messageID,state:2}),_.back()})}return T(async()=>{s.value=c.getMessagesDetail,s.value.state!==1&&(await S({messageID:s.value.messageID,state:1}),c.setMessageDetail({...s.value,state:1}))}),(y,h)=>{const I=w("NavBar");return r(),p("div",te,[d(I,{"left-arrow":"",onClickLeft:o,title:i(n)("notificationDetails")},null,8,["title"]),e("div",ne,[e("div",oe,[e("div",null,[e("div",null,[(r(),b(M(i(v)))),e("span",null,l(s.value.title),1)]),e("span",null,l(s.value.addTime),1)]),(r(),b(M(i(f)),{onClick:D}))]),e("div",ie,l(s.value.messages),1)])])}}});const le=j(re,[["__scopeId","data-v-e5380132"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/home/Messages/MessageDetail/index.vue"]]),me=Object.freeze(Object.defineProperty({__proto__:null,default:le},Symbol.toStringTag,{value:"Module"}));export{me as a,de as i};
