1import{_ as H}from"./ebaZTzNf.js";import{_ as Q}from"./Ce8m-lLt.js";import{_ as W}from"./PlcMfStr.js";import{_ as X}from"./Dk2QflIj.js";import{b as Y,y as tt,a as et,D as at,f as st,C as ot,g as nt,u as lt,$ as ct,aB as rt,c as h,a1 as it,I as ut,m as t,j as o,k as e,t as n,F as y,n as x,x as c,l as i,v as u,w as S,_ as dt,ao as mt,q as a,s as j}from"./B30BqIw0.js";import{_ as pt}from"./DWe0eW3u.js";import{u as bt}from"./B1mk3P22.js";import{u as _t}from"./R7rYESJU.js";import{u as ht}from"./DzkKVbW_.js";import{u as yt}from"./QEOfgnAY.js";import{u as xt}from"./mRkiIKob.js";import"./D5uXLkT1.js";import"./Dy94r6Ln.js";import"./D6VhNHKZ.js";import"./BjKcje8d.js";import"./DtVTSuJb.js";import"./C4qVvRU7.js";import"./CyrWB5XQ.js";import"./BqzGI13Z.js";import"./BMZSuWDh.js";import"./1V3UmDFY.js";import"./DgKymIvq.js";import"./a6QgvTK3.js";import"./DbEhd-4a.js";import"./DcfyVq36.js";import"./CTbwcthU.js";import"./DB5XoyW6.js";import"./DjR8SXae.js";import"./1eHxk8l2.js";import"./D0GTzCB6.js";import"./rJYau-14.js";const ft={key:0,class:"mx-4 md:mx-2 md:my-12 my-8"},kt={class:"text-2xl md:text-3xl tracking-wide font-normal text-uppababy-warmblack"},vt={class:"my-10 md:grid md:grid-cols-3 md:gap-6 cart-block"},gt={class:"pl-0 md:col-span-2"},wt={role:"list",class:"pl-0"},Ct={key:0,class:"py-8 mx-6"},$t={class:"must-have-title text-center"},Tt={class:"must-product-div-wrap"},Vt={class:"md:col-span-1 p-6 bg-uppababy-white rounded-lg b-1 border-uppababy-bordergrey1"},Pt={class:"p-0 text-xl font-semibold text-uppababy-warmblack capitalize"},St={class:"flex pt-8 font-normal justify-between text-xl tracking-wider text-uppababy-warmblack"},jt={key:0},At={role:"list",class:"p-0 m-0"},Dt={class:"capitalize"},Et={class:"text-sm"},Bt={class:"text-sm"},It={class:"flex py-8 font-normal justify-between text-xl tracking-wider text-uppababy-warmblack b-b border-uppababy-warmblack"},Lt={key:1,class:"font-semibold"},Nt={class:"py-8 font-normal tracking-wider text-base text-uppababy-warmblack b-b border-uppababy-warmblack"},zt={key:1,class:"flex pt-8 font-normal justify-between text-xl tracking-wider text-uppababy-warmblack"},Ft={key:0},Kt={key:2,class:"text-[16px] font-normal text-uppababy-warmblack"},Rt={class:"flex py-8 font-normal capitalize justify-between text-xl tracking-wider text-uppababy-warmblack"},qt={key:1,class:"pb-8 justify-between text-secondary-900 font-medium"},Gt={key:1},Jt={class:"m-10 mt-30 text-center text-2xl font-medium text-secondary-900"},Ve=Y({name:"CartPage",__name:"cart",async setup(Mt){let d,f;const A=tt();bt();const{sessionContext:k}=et(),{isCartAndAccountBlocked:D}=_t();at();const{beginCheckoutEvent:E,viewCartEvent:B}=ht(),I=st(),{t:Ot}=ot(),{formatLink:p}=nt(I),{apiClient:L}=lt(),{appliedPromotionCodes:v,removeItem:Ut,cartItems:m,subtotal:g,totalPrice:Zt,shippingTotal:b,cart:N}=ct(),{isUKTaxCombined:z,calculatedSubtotalTax:w,getProductTax:F,getShippingTax:K}=yt(),{hasOnlyDummyAddresses:_}=rt(),R=h(()=>K(N.value)),{crosssellList:C,productDetails:q,shouldRenderCrossSell:G}=xt(m),J=h(()=>m.value.length>0),M=h(()=>v.value.length>0),{data:$,error:Ht}=([d,f]=it(async()=>mt(async()=>{const T=k?.value?.salesChannel?.translated?.customFields?.custom_cart_summary_layout_id;return(await L.invoke("readCms post /cms/{id}",{pathParams:{id:T},body:{}})).data},"$8wEE0K9J3V")),d=await d,f(),d);return ut(()=>{D.value&&A.push(p("/")),B()}),(s,T)=>{const V=H,r=Q,O=W,U=X,P=dt;return t(J)?(a(),o("div",ft,[e("h1",kt,n(s.$t("cart.header")),1),e("div",vt,[e("div",gt,[e("ul",wt,[(a(!0),o(y,null,x(t(m),l=>(a(),o("li",{key:l.id,class:"block py-6",tabindex:"0"},[i(V,{"cart-item":l},null,8,["cart-item"])]))),128))]),t(m).length>0&&t(C).length>0?(a(),o("div",Ct,[e("h3",$t,n(s.$t("custom.cart-slideout-shopping-must-heading")),1),e("div",Tt,[(a(!0),o(y,null,x(t(C),(l,Z)=>(a(),o("div",{key:l.id,class:"must-product-div flex flex-col","aria-labelledby":"must-have-products"},[t(G)(l)?(a(),u(pt,{key:Z,product:l,"product-detail":t(q).get(l.id??""),class:"cart-mus-have-additions flex"},null,8,["product","product-detail"])):c("",!0)]))),128))])])):c("",!0)]),e("aside",Vt,[e("h2",Pt,n(s.$t("cart.orderSummary")),1),e("div",St,[e("p",null,n(s.$t("cart.subtotal")),1),i(r,{value:t(g),taxValue:t(w),class:"font-medium","data-testid":"cart-subtotal"},null,8,["value","taxValue"])]),t(M)?(a(),o("div",jt,[e("ul",At,[(a(!0),o(y,null,x(t(v),l=>(a(),o("li",{key:l.id,class:"flex pt-8 font-normal justify-between text-xl tracking-wider text-uppababy-warmblack"},[e("div",null,[e("p",Dt,n(s.$t("cart.discounttitle")),1),e("span",Et,n(s.$t("cart.coupontitle")),1),e("span",Bt,n(l.referencedId),1)]),e("div",null,[i(r,{value:l.price?.totalPrice,taxValue:t(F)(l),class:"font-medium",displayZeroPrice:!0,"data-testid":"cart-promoprice"},null,8,["value","taxValue"])])]))),128))])])):c("",!0),e("div",It,[e("p",null,n(s.$t("cart.shippingEstimate")),1),t(b)?(a(),u(r,{key:0,value:t(b),taxValue:t(R),class:"text-secondary-900 font-medium","data-testid":"cart-subtotal"},null,8,["value","taxValue"])):c("",!0),t(b)==0?(a(),o("p",Lt,n(s.$t("custom.cart-free-shipping-msg")),1)):c("",!0)]),e("div",Nt,[t($)?(a(),u(O,{key:0,content:t($)},null,8,["content"])):c("",!0),t(z)?c("",!0):(a(),o("div",zt,[s.calculatedTax>0&&!t(_)?(a(),o("p",Ft,n(s.$t("cart.taxEstimate")),1)):c("",!0),s.calculatedTax>0&&!t(_)?(a(),u(r,{key:1,value:s.calculatedTax,class:"text-secondary-900 font-medium","data-testid":"cart-subtotal"},null,8,["value"])):(a(),o("p",Kt,n(s.$t("checkout.taxEstimateLabel")),1))]))]),e("div",Rt,[e("p",null,n(s.$t("cart.orderTotal")),1),t(_)?(a(),u(r,{key:0,value:t(g),taxValue:t(w),class:"font-semibold","data-testid":"cart-subtotal"},null,8,["value","taxValue"])):(a(),u(r,{key:1,value:s.adjustedTotalPrice,class:"font-semibold","data-testid":"cart-subtotal"},null,8,["value"]))]),t(k)?.salesChannel?.translated?.customFields?.show_promo_code_checkout?(a(),o("div",qt,[i(U)])):c("",!0),i(P,{class:"checkout-btn flex items-center justify-center p-5 text-lg tracking-wider font-medium text-white bg-uppababy-blue hover:bg-dark","data-testid":"cart-checkout-link",to:t(p)("/checkout"),onClick:t(E)},{default:S(()=>[j(n(s.$t("cart.checkout")),1)]),_:1},8,["to","onClick"])])])])):(a(),o("div",Gt,[e("h1",Jt,n(s.$t("cart.emptyCartLabel")),1),i(P,{class:"checkout-btn block w-fit text-center my-0 mx-auto py-4 px-6 text-lg tracking-wider font-medium text-white bg-uppababy-warmblack hover:underline mb-80","data-testid":"contine-shopping-link",to:t(p)("/shop/")},{default:S(()=>[j(n(s.$t("custom.cart-slideout-continue")),1)]),_:1},8,["to"])]))}}});
1export{Ve as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.