import{u as y}from"./useSaveForLater-Dhsf_zUA.js";import{F as h,aD as L,P as i,Q as n,_ as V,e as d,R as a,T as m,X as t,a1 as l,a2 as c,a0 as p,a5 as F,m as _}from"./vendor-DWvj1jit.js";import"./index-8PssKxKU.js";import{_ as k}from"./wishlist-products-skeleton.vue_vue_type_script_setup_true_lang-BHaG6h1o.js";import{_ as w}from"./list-details.vue_vue_type_script_setup_true_lang-BlvLX2-6.js";import"./product-skeleton-grid-D0l_b49G.js";import"./save-changes-modal.vue_vue_type_script_setup_true_lang-CBeUToan.js";import"./add-bulk-items-to-cart-results-modal.vue_vue_type_script_setup_true_lang-DJCr0keE.js";import"./back-button-in-header.vue_vue_type_script_setup_true_lang-BHPAw1U9.js";import"./add-or-update-wishlist-modal.vue_vue_type_script_setup_true_lang-BAqqOCfV.js";const $={class:"contents md:flex md:flex-wrap md:items-center md:justify-between md:gap-3"},x={class:"mt-5 w-full"},B={key:2},R=h({__name:"saved-for-later-details",setup(C){const{savedForLaterList:s,loading:f,getSavedForLater:u}=y(),o=_(()=>s.value?.id),v=_(()=>!s.value?.items?.length);return L(()=>{u()}),(e,E)=>{const r=i("VcTypography"),g=i("VcEmptyView");return d(f)?(a(),n(F,{key:0},[m("div",$,[t(r,{tag:"h1"},{default:l(()=>[c(p(e.$t("pages.cart.saved_for_later")),1)]),_:1})]),m("div",x,[t(d(k),{itemsCount:6})])],64)):o.value&&!v.value?(a(),V(w,{key:1,"list-id":o.value,"list-name":e.$t("pages.cart.saved_for_later"),"hide-settings":""},null,8,["list-id","list-name"])):(a(),n("div",B,[t(r,{tag:"h1"},{default:l(()=>[c(p(e.$t("pages.cart.saved_for_later")),1)]),_:1}),t(g,{text:e.$t("pages.cart.saved_for_later_not_found"),icon:"list-v2"},null,8,["text"])]))}}});export{R as default};
//# sourceMappingURL=saved-for-later-details-CT8rrQ-A.js.map
