import{_ as k,m as w,d as $,b as I,f as d,o as s,v as m,w as a,h as n,i as o,t as r,p as S,g as e,k as h,l as A,F as v,A as B,I as N,J as R}from"./app-81c86c8f.js";const V={head:{title:"Compare Products List"},data:()=>({currentPage:1,totalPages:1}),computed:{...w("compareList",["getComparedListProducts","getcomparedProductsList","getSpecificationKeysList"])},methods:{...$("auth",["showAddToCartDialog"]),...I("compareList",["ResetComparedList","fetchComparedListProducts","RemoveComparedListProduct"]),removeProduct(t){this.RemoveComparedListProduct(t),this.fetchComparedListProducts()}},created(){this.fetchComparedListProducts()}},f=t=>(N("data-v-9a24cd2f"),t=t(),R(),t),D={class:"ps-lg-7 ps-md-8 pt-4"},T={class:"fs-24 fw-700 opacity-80 mb-5 mt-3"},x={key:0},z={key:0},F=["src"],j={key:1},E=["onClick"],G=f(()=>o("i",{class:"las la-trash fs-20 ts-05 me-1"},null,-1)),J=[G],K={key:2},M=["onClick"],O=f(()=>o("i",{class:"las la-shopping-cart fs-20 ts-05 me-1"},null,-1)),U={class:"fw-700 fs-13"},q={key:3},H={key:4},Q={key:1,class:"text-center"};function W(t,X,Y,Z,tt,g){const _=d("v-col"),C=d("v-btn"),i=d("v-row"),L=d("v-table"),y=d("v-card"),b=d("v-container");return s(),m(b,{class:"pt-7 mb-4"},{default:a(()=>[Object.keys(t.getComparedListProducts).length>0?(s(),m(i,{key:0,align:"start"},{default:a(()=>[n(_,{lg:"12",cols:"12",class:"main-bar"},{default:a(()=>[o("div",D,[o("h1",T,r(t.$t("my_compared_list")),1),n(i,null,{default:a(()=>[n(_,{cols:"auto",class:"mr-auto"}),n(_,{cols:"auto"},{default:a(()=>[n(C,{elevation:"0",depressed:"",class:"mb-2 bg-primary",onClick:t.ResetComparedList},{default:a(()=>[S(r(t.$t("reset_list")),1)]),_:1},8,["onClick"])]),_:1})]),_:1}),n(y,{class:"mb-4"},{default:a(()=>[n(L,null,{default:a(()=>[o("tbody",null,[(s(!0),e(v,null,h(t.getComparedListProducts,(p,c)=>(s(),e("tr",{key:c},[o("th",null,[c!=="slug"&&c!=="id"?(s(),e("span",x,r(t.$t(c).toUpperCase()),1)):A("",!0)]),(s(!0),e(v,null,h(p,(l,u)=>(s(),e("td",{key:u},[c=="image"?(s(),e("span",z,[o("img",{src:l,class:B(["img-fit","size-130px"])},null,8,F)])):c=="id"?(s(),e("span",j,[o("button",{class:"text-reset py-1 lh-1 align-center d-flex",onClick:P=>g.removeProduct({id:l})},J,8,E)])):c=="slug"?(s(),e("span",K,[o("button",{class:"text-reset py-1 lh-1 align-center d-flex",onClick:P=>t.showAddToCartDialog({status:!0,slug:l})},[O,o("span",U,r(t.$t("buy_now")),1)],8,M)])):l!==null?(s(),e("span",q,r(p[u]),1)):(s(),e("span",H," --- "))]))),128))]))),128))])]),_:1})]),_:1})])]),_:1})]),_:1})):(s(),e("div",Q,[o("div",null,r(t.$t("compared_product_list_is_empty")),1)]))]),_:1})}const et=k(V,[["render",W],["__scopeId","data-v-9a24cd2f"]]);export{et as default};
