import{u as h}from"./useNumberFormat-Bu1g0G_b.js";import{_ as g}from"./MainLayout.vue_vue_type_script_setup_true_lang-BnRI7JXG.js";import{d as f,c as e,o,a as _,b as s,u as r,m as v,h as m,t as i,F as a,p,j as y,f as c,P as b,A as k}from"./app-DJb_CRLj.js";import"./simplebar.min-CZ5saGqI.js";import"./debounce-CDPmhVE8.js";/* empty css                             *//* empty css                          *//* empty css            */import"./useToastify-DqLaHt3f.js";import"./AdminNavigation.vue_vue_type_script_setup_true_lang-BfIfENbj.js";import"./useHexToRgb-Crf73LpK.js";import"./useRandomStr-7r5tQ8Eq.js";const w={class:"card shadow-1 panel-content"},$={class:"card-body"},z={class:"row"},N={class:"col-lg-12 full-product-horizontal-container mb-3"},V={class:"panel-content--title mb-4 lts-05"},B={class:"product-list"},C={class:"row"},F={key:0,class:"col-lg-6 col-12 mb-3"},j={class:"card product-horizontal"},q={class:"card-body"},L={class:"product-horizontal--content d-flex flex-row align-items-center"},P=["src","alt"],S={class:"product-horizontal--footer d-flex flex-row align-items-center justify-content-between"},x={class:"product-colors el-center"},A=["title"],D={class:"product-rating-average"},E={key:0,class:"product-price-now fs-9 lts-05"},T={key:1,class:"product-price-now lts-05"},U={key:2,class:"product-price-now fs-8 lts-05"},G={key:0,class:"cart-empty"},H={class:"empty-content-icon"},I=["src"],J={class:"empty-content-message text-center"},K={class:"mb-4 lts-05 fs-8"},is=f({layout:g,__name:"List",props:{product_hitsory:{}},setup(M){return(n,l)=>(o(),e(a,null,[_(r(v),{title:n.$t("messages.title.last_seens")},null,8,["title"]),s("div",w,[s("div",$,[s("div",z,[s("div",N,[s("div",V,i(n.$t("messages.sentence.last_seens")),1),s("div",B,[s("div",C,[(o(!0),e(a,null,p(n.product_hitsory,t=>(o(),e(a,{key:t.id},[t.status=="publish"?(o(),e("div",F,[s("div",j,[s("div",q,[s("div",L,[s("img",{src:t.get_images[0].link,alt:t.title},null,8,P),s("h3",null,[_(r(b),{href:n.route("main.products.show",t.slug)},{default:y(()=>[c(i(t.title),1)]),_:2},1032,["href"])])]),s("div",S,[s("div",null,[s("ul",x,[(o(!0),e(a,null,p(t.unique_color,(d,u)=>(o(),e("li",{key:u,style:k({"background-color":d.value.color}),"data-bs-toggle":"tooltip","data-bs-placement":"top",title:d.value.label},null,12,A))),128))])]),s("div",null,[s("span",D,[c(i(t.comments_info.rating=="0"?"-":t.comments_info.rating)+" ",1),l[0]||(l[0]=s("i",{class:"ri-star-fill"},null,-1))]),l[2]||(l[2]=s("span",{class:"divider"},"|",-1)),t.in_stock_status?t.inventory?(o(),e("span",T,[c(i(r(h)(t.best_price))+" ",1),l[1]||(l[1]=s("span",{class:"unit unit-sm"},null,-1))])):(o(),e("span",U,i(n.$t("messages.word.non_existent")),1)):(o(),e("span",E,i(n.$t("messages.sentence.inventory_inquiry")),1))])])])])])):m("",!0)],64))),128))])])]),n.product_hitsory.length==0?(o(),e("div",G,[s("div",H,[s("img",{src:n.$page.props.appUrl+"/img/template/orders.svg"},null,8,I)]),s("div",J,[s("p",K,i(n.$t("messages.sentence.no_items_found")),1)])])):m("",!0)])])])],64))}});export{is as default};
