PageSourceSearch

https://www.22winthai3.co/_nuxt/notifications-DUbkH3jL-179145378.js

js 22winthai3.co collected 2026-10-10 00:07:29 UTC 4,790 bytes, 2 lines download raw bytes

1import{_ as W}from"./QuickNav-DLE2oUNj-179145378.js";import{_ as X}from"./Pagination-C-lZqA7J-179145378.js";import{u as Z,d as G,g as J}from"./entry-D-i1GN5l-179145378.js";import{V as K,X as O,a0 as Y,Z as tt,$ as et,a as st,n as ot,w as at,av as a,aw as n,a_ as s,aF as e,az as c,b1 as nt,aU as B,b2 as D,aA as T,ba as it,v as lt,aB as v,a$ as ct,b7 as h,t as rt,b8 as dt,r,e as q,W as ut}from"./vendor-nuxt-BaKLiJfw-179145378.js";import"./vendor-swiper-CRx3LAJw-179145378.js";const _t={class:""},mt={class:"xl:col-span-3"},pt={key:0,class:"text-lg font-bold uppercase"},ft={class:"max-w-[800px] grid grid-cols-3 relative mt-5"},vt=["aria-label","onClick"],ht={class:"flex flex-col md:flex-row justify-center md:justify-between text-xs items-center md:items-center notification-container"},bt={key:0,class:"hint-text-color"},xt={key:1,class:"hint-text-color notiifcation-hint-text-color"},yt={key:0,class:"mt-5 text-sm"},gt=["onClick"],wt={class:"flex flex-col md:flex-row justify-between"},kt={class:"font-semibold flex items-center"},$t={key:0,class:"w-2 h-2 rounded-full notification-bullet mr-2"},It={class:"pt-2 pl-5 md:pt-0 md:pl-0 text-xs"},Ct={key:1,class:"mt-10"},Nt={key:2,class:"mt-5 text-sm"},Pt={class:"text-center"},Mt={class:"text-lg font-bold mb-5 pt-5"},Rt={class:"max-w-[500px] pt-0 md:mb-5 mx-auto"},Vt=["src","alt"],Bt={key:1,class:"mt-5"},Dt=["innerHTML"],Tt={__name:"MerchantNotifications",setup(j){const N=ut(),{$api:_,$toast:u}=K(),{isMobile:P}=O(),b=Y(),x=tt(),H=et(),L=()=>{window.history.state.back?b.back():b.replace(H("/account"))},y=[],g=r(0),S=q(()=>({width:`${100/y.length}%`,left:`${g.value/y.length*100}%`})),f=r(!0),w=async()=>{f.value=!0;const t=await _("notice/notice-list",{page:l.value});if(f.value=!1,!t.status){u(t.status,t.msg);return}if(t?.is_v3)k.value=1,$.value=t.data.length,m.value[0]=t.data;else{const o=parseInt(t.data.currentPage);k.value=t.data.totalPage,$.value=t.data.item.length,m.value[o-1]=t.data.item}};st(()=>{w(),ot(()=>{"noti"in x.query&&R({noticeId:x.query.noti})})});const m=r([]),l=r(1);at(l,t=>{m.value[l.value-1]||w()});const k=r(0),$=r(0),M=q(()=>m.value[l.value-1]?m.value[l.value-1]:[]),z=Z(),A=async t=>{const p=await _("notice/update-unread",{noticeId:t});if(!p.status){u(p.status,p.msg);return}z.data.notification--,w()},I=r(!1),d=r(),R=async t=>{const o=await _("notice/notice-details",{noticeId:t.noticeId});if(!o.status){u(o.status,o.msg);return}d.value=o.data,I.value=!0,t.is_read==0&&A(t.noticeId),E(t)},E=async t=>{const o=await _("notice/crm",{noticeId:t.noticeId});if(!o.status){u(o.status,o.msg);return}},V=()=>{I.value=!1;let t={...x.query};delete t.noti,b.replace({query:t})};return(t,o)=>{const p=W,F=X,U=G,Q=J;return a(),n("div",_t,[s("div",mt,[e(P)?(a(),nt(p,{key:1,title:t.$t("notifications"),onBack:L},null,8,["title"])):(a(),n("div",pt,c(t.$t("notifications")),1)),s("div",ft,[(a(),n(B,null,D(y,(i,C)=>s("button",{type:"button","aria-label":t.$t(i),key:i,class:T(["p-3 text-sm truncate",{"text-primary":e(g)==C}]),onClick:jt=>g.value=C},c(t.$t(i)),11,vt)),64)),s("div",{class:"h-[3px] position-indicator transition-all duration-300 absolute bottom-0",style:it(e(S))},null,4)]),s("div",{class:T([{"px-4":e(P)},"mt-10"])},[s("div",ht,[e(N).public.MERCHANT=="jolibet"?(a(),n("div",bt,c(t.$t("notification_will_auto_delete_day",{number:"15"})),1)):(a(),n("div",xt,c(t.$t("notification_desc")),1))]),e(f)?(a(),n("div",Ct,[...o[1]||(o[1]=[s("div",{class:"skeleton w-full h-28 mb-5"},null,-1),s("div",{class:"skeleton w-full h-28 mb-5"},null,-1),s("div",{class:"skeleton w-full h-28"},null,-1)])])):(a(),n("div",yt,[(a(!0),n(B,null,D(e(M),i=>(a(),n("div",{onClick:C=>R(("toRaw"in t?t.toRaw:e(lt))(i)),key:i.noticeId,class:"rounded-md py-4 px-6 md:py-6 md:px-8 bg-info mb-5"},[s("div",wt,[s("div",kt,[i.is_read==0?(a(),n("div",$t)):v("",!0),ct("["+c(i.title)+"]",1)]),s("div",It,c(i.created),1)])],8,gt))),128))])),!e(f)&&!e(M).length?(a(),n("div",Nt,[s("div",Pt,c(t.$t("no_record")),1)])):v("",!0),h(F,{modelValue:e(l),"onUpdate:modelValue":o[0]||(o[0]=i=>rt(l)?l.value=i:null),totalPages:e(k),totalItems:e($)},null,8,["modelValue","totalPages","totalItems"])],2)]),h(Q,{show:e(I),onClose:V},{default:dt(()=>[s("button",{type:"button",class:"absolute top-4 right-4",onClick:V,"aria-label":"Close"},[h(U,{iconClass:"icon-close w-4 h-4"}
1)]),s("div",Mt,c(e(d)?.title),1),s("div",Rt,[e(d)?.path?(a(),n("img",{key:0,class:"max-h-[200px] mx-auto",src:e(d).path,alt:`${e(d)?.title} image`},null,8,Vt)):v("",!0),e(d)?.notice?(a(),n("div",Bt,[s("div",{innerHTML:e(d)?.notice},null,8,Dt)])):v("",!0)])]),_:1},8,["show"])])}}},qt={class:""},Et={__name:"notifications",setup(j){return(N,_)=>{const u=Tt;return a(),n("div",qt,[h(u)])}}};export{Et as default};
2//# sourceMappingURL=notifications-DUbkH3jL-179145378.js.map

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.