import{u as y}from"./useSaveForLater-CmgZCWeb.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-D8NNcBCx.js";import"./index-CiAiYnez.js";import{_ as k}from"./wishlist-products-skeleton.vue_vue_type_script_setup_true_lang-BSbcWfyc.js";import{_ as w}from"./list-details.vue_vue_type_script_setup_true_lang-BtKYLu7O.js";import"./product-skeleton-grid-TSbIQFsH.js";import"./save-changes-modal.vue_vue_type_script_setup_true_lang-CvT5fijJ.js";import"./add-bulk-items-to-cart-results-modal.vue_vue_type_script_setup_true_lang-BV_ANqtx.js";import"./back-button-in-header.vue_vue_type_script_setup_true_lang-DKzjqJJY.js";import"./add-or-update-wishlist-modal.vue_vue_type_script_setup_true_lang-CxgtiBpo.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-wqlN2PNR.js.map
