import{_,a as p}from"./StoreLayout.vue_vue_type_script_setup_true_lang-B7aW7sSo.js";import{d as u,k as f,W as n,c as a,o,a as r,b as s,u as c,m as g,h as d,F as m,r as h,t as l}from"./app-BidmlC59.js";import{_ as k}from"./Pagination.vue_vue_type_script_setup_true_lang-DQBGGaaV.js";import{u as v}from"./useRandomNum-BTw6623a.js";import"./coloris--ejmIHou.js";import"./portal.esm-DCp8ZhOj.js";/* empty css                             */import"./simplebar.min-hRaQJumN.js";/* empty css              */import"./useToastify-Bhe2cyz3.js";import"./SearchList.vue_vue_type_script_setup_true_lang-Mz6dy287.js";import"./useCopyToClipboard-CsEpRQpU.js";import"./useNl2br-N6ZYQSPJ.js";const b={class:"container-fluid"},y={class:"notification-list mb-4 mt-4"},w={class:"card"},N={class:"card-body p-0"},B={class:"row"},L={class:"card"},M={class:"card-body"},T={key:0,class:"w-100 d-block mb-2"},V={class:"badge bg-info"},C=["innerHTML"],F={class:"white-space-nowrap text-gray lts-05 fs-9"},H={key:0,class:"product-list-empty"},W={class:"lts-05"},U=u({layout:_,__name:"Notifications",props:{notifications:{}},setup(D){return f(()=>{$(document).on("click",".link-to-target",t=>{let i=$(t.target).attr("target"),e=$(t.target).attr("parameter");i=="ticket"&&n.get(route("seller.tickets.show",e)),i=="product"&&n.get(route("seller.products.edit",e)),i=="article"&&n.get(route("seller.articles.edit",e))})}),(t,i)=>(o(),a(m,null,[r(c(g),{title:t.$t("messages.title.notifications")},null,8,["title"]),s("div",b,[r(p,{title:t.$t("messages.word.notifications"),item:t.$t("messages.word.notifications")},null,8,["title","item"]),s("div",y,[s("div",w,[s("div",N,[s("div",B,[(o(!0),a(m,null,h(t.notifications.data,(e,E)=>(o(),a("div",{key:c(v)(1e5,999999),class:"col-12 mb-2"},[s("div",L,[s("div",M,[e.read_at==null?(o(),a("div",T,[s("span",V,l(t.$t("messages.sentence.not_read")),1)])):d("",!0),s("div",{class:"w-100 d-block text-dark lh-30",innerHTML:e.data.message},null,8,C),s("span",F,l(e.data.date),1)])])]))),128))]),t.notifications.data.length==0?(o(),a("div",H,[s("div",W,l(t.$t("messages.sentence.no_items_found")),1)])):d("",!0),r(k,{links:t.notifications.links},null,8,["links"])])])])])],64))}});export{U as default};
