import{u as y}from"./useSaveForLater-C5rBLxnB.js";import{F as h,m as i,aN as L,P as n,Q as d,_ as V,e as m,R as a,T as l,X as t,a1 as c,a2 as p,a0 as _,a6 as F}from"./vendor-DYYUXsKb.js";import"./index-BjgfEvRF.js";import{_ as k}from"./wishlist-products-skeleton.vue_vue_type_script_setup_true_lang-BIVCd2pZ.js";import{_ as w}from"./list-details.vue_vue_type_script_setup_true_lang-BhcmOwkG.js";import"./product-skeleton-grid-BBkO1c6u.js";import"./save-changes-modal.vue_vue_type_script_setup_true_lang-CR_xhKlS.js";import"./add-bulk-items-to-cart-results-modal.vue_vue_type_script_setup_true_lang-CxbhQcFk.js";import"./back-button-in-header.vue_vue_type_script_setup_true_lang-BOKTy3aX.js";import"./add-or-update-wishlist-modal.vue_vue_type_script_setup_true_lang-Dh3kN8jS.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=i(()=>s.value?.id),v=i(()=>!s.value?.items?.length);return L(()=>{u()}),(e,E)=>{const r=n("VcTypography"),g=n("VcEmptyView");return m(f)?(a(),d(F,{key:0},[l("div",$,[t(r,{tag:"h1"},{default:c(()=>[p(_(e.$t("pages.cart.saved_for_later")),1)]),_:1})]),l("div",x,[t(m(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(),d("div",B,[t(r,{tag:"h1"},{default: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-MKkf3M6r.js.map
