import{u as y}from"./useSaveForLater-EiJ7pknZ.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-B67YzpGs.js";import{_ as k}from"./wishlist-products-skeleton.vue_vue_type_script_setup_true_lang-CYPpY5pd.js";import{_ as w}from"./list-details.vue_vue_type_script_setup_true_lang-Cf1hs1Jw.js";import"./product-skeleton-grid-BM1n3liH.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-rAZbYOT2.js";import"./back-button-in-header.vue_vue_type_script_setup_true_lang-PHVOUZGE.js";import"./add-or-update-wishlist-modal.vue_vue_type_script_setup_true_lang-C2NtduPs.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-C77sN-MO.js.map
