import{_}from"./MainLayout.vue_vue_type_script_setup_true_lang-BhXhRXha.js";import{d as p,k as u,$ as r,W as c,c as a,o,a as h,b as t,u as d,m as f,h as l,n as g,t as n,F as m,r as k,E as v}from"./app-BidmlC59.js";import{_ as y}from"./Pagination.vue_vue_type_script_setup_true_lang-DQBGGaaV.js";import{u as b}from"./useRandomNum-BTw6623a.js";import"./simplebar.min-hRaQJumN.js";/* empty css                             *//* empty css                          *//* empty css            */import"./useToastify-Bhe2cyz3.js";import"./AdminNavigation.vue_vue_type_script_setup_true_lang-Cv8qtxCX.js";import"./useHexToRgb-Crf73LpK.js";import"./useRandomStr-7r5tQ8Eq.js";const w={class:"card shadow-1 panel-content"},$={class:"card-body"},N={class:"row"},B={class:"col-lg-12 mb-3"},C={class:"panel-content--title mb-4 lts-05"},L={class:"notifications"},M={class:"row"},T={class:"col-12 mb-2"},V={key:0,class:"w-100 d-block mb-2"},E={class:"badge bg-info"},F=["innerHTML"],H={class:"body"},W={key:0,class:"cart-empty"},z={class:"empty-content-icon"},D=["src"],R={class:"empty-content-message text-center"},S={class:"mb-4 lts-05 fs-8"},x=p({layout:_,__name:"Notifications",props:{notifications:{}},setup(U){return u(()=>{r(document).on("click",".link-to-target",s=>{let i=r(s.target).attr("target"),e=r(s.target).attr("parameter");i=="ticket"&&c.get(route("user.tickets.show",e)),i=="product"&&c.visit(route("main.products.show",e)),i=="article"&&c.visit(route("main.articles.show",e))})}),(s,i)=>(o(),a(m,null,[h(d(f),{title:s.$t("messages.title.notifications")},null,8,["title"]),t("div",w,[t("div",$,[t("div",N,[t("div",B,[t("div",C,n(s.$t("messages.word.notifications")),1),t("div",L,[t("div",M,[t("div",T,[(o(!0),a(m,null,k(s.notifications.data,(e,j)=>(o(),a("div",{key:d(b)(1e5,999999),class:v({"notification-item":!0,unread:e.read_at==null})},[e.read_at==null?(o(),a("div",V,[t("span",E,n(s.$t("messages.sentence.not_read")),1)])):l("",!0),t("span",{class:"title",innerHTML:e.data.message},null,8,F),t("span",H,n(e.data.date),1)],2))),128))])])])]),s.notifications.data.length==0?(o(),a("div",W,[t("div",z,[t("img",{src:s.$page.props.appUrl+"/img/template/orders.svg"},null,8,D)]),t("div",R,[t("p",S,n(s.$t("messages.sentence.no_items_found")),1)])])):l("",!0),s.notifications.data.length!=0?(o(),g(y,{key:1,links:s.notifications.links},null,8,["links"])):l("",!0)])])])],64))}});export{x as default};
