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