1import{d as D,a7 as q,i as _,c as n,o,k as t,B as p,m as l,F as H,A as Q,C as O,n as e,l as T,x as S,R as K,e as M,q as G,a5 as L,b as P,N as R,y as J,r as N,M as V,aa as W,ba as ne,am as ae,L as ce,a2 as ie,al as re,a6 as Z,f as le,s as ue,ag as de,g as fe,h as ee,H as pe,w as me,S as _e,a4 as ge,aw as ye}from"./CEQqgSCA.js";import{w as ve}from"./ClQhTPQn.js";import{F as he}from"./C5n2c8s_.js";import{u as te}from"./ALLULTje.js";import{i as be,u as ke}from"./BjTTjZph.js";import{e as xe,o as Ce}from"./C1FNuz48.js";const Ie={class:"cart-item fc-flex"},$e={class:"cart-item__qty fc-font-size-5 fc-bold fc-margin-0"},we={class:"cart-item__info fc-flex fc-column fc-justify-start fc-padding-bottom-2 fc-text-left"},Pe={class:"fc-inline-block fc-bold fc-padding-bottom-2 fc-font-size-5 fc-margin-0"},Se={key:0,class:"cart-item__include-title fc-text-black fc-margin-0 fc-padding-top-1 fc-padding-right-3"},Te={key:1,class:"cart-item__include-list fc-padding-0 fc-margin-0 fc-font-size-4"},ze={class:"fc-flex fc-column fc-align-end"},De={key:0,class:"fc-text fc-inline-block fc-text-right fc-uppercase fc-font-size-5 cart-item__price"},Me={key:0},Re={key:1,class:"fc-bold"},Ae={key:2,class:"fc-margin-left-2"},Fe=D({__name:"CartItemShopify",props:{item:{},enableRemove:{type:Boolean}},emits:["removeFromCart"],setup(d,{emit:g}){const s=d,u=g,{$filters:f}=q(),y=_(()=>s.item.price===0?!1:s.enableRemove),c=_(()=>(s.item?.includes||[]).filter(r=>!(r.productName?.includes("FREE")&&r.variants?.length>1))),m=_(()=>c.value.length>0),i=_(()=>{const r=s.item.price*s.item.quantity,a=s.item?.oldPrice?s.item.oldPrice*s.item.quantity:null,b=s.item?.couponDiscountAmount||0;return b>0?{price:Math.max(0,r-b),oldPrice:r}:{price:r,oldPrice:a}});return(r,a)=>(o(),n("div",Ie,[t("p",$e,p(d.item.quantity),1),t("div",we,[t("p",Pe,p(d.item.productName),1),m.value?(o(),n("p",Se," Includes: ")):l("",!0),m.value?(o(),n("ul",Te,[(o(!0),n(H,null,Q(c.value,b=>(o(),n("li",{key:b.productName,class:O(["cart-item__include-li fc-padding-0 fc-margin-y-1",b.productName?.includes("FREE")?"fc-text-red":"fc-text-black"])},p(e(ve)(b.productName,b.oldPrice,e(f).currency2)),3))),128))])):l("",!0)]),t("div",ze,[i.value.price>=0?(o(),n("p",De,[i.value.price===0?(o(),n("span",Me,"FREE")):(o(),n("span",Re,p(e(f).currency(i.value.price)),1)),i.value.oldPrice?(o(),n("s",Ae,p(e(f).currency(i.value.oldPrice)),1)):l("",!0)])):l("",!0),y.value?(o(),T(e(K),{key:1,"button-theme":"button-text",onClick:a[0]||(a[0]=b=>u("removeFromCart",d.item))},{default:S(()=>[...a[1]||(a[1]=[t("p",{class:"cart-item__remove-button fc-text-red fc-bold fc-underline fc-padding-left-1 fc-font-size-4 fc-margin-0"}," Remove ",-1)])]),_:1})):l("",!0)])]))}}),Ee=Object.assign(M(Fe,[["__scopeId","data-v-4823b247"]]),{__name:"CartItemShopify"}),je={class:"membership-info-modal__content fc-padding-x-6 fc-padding-y-12 fc-text-center"},Ne={class:"membership-info-modal__title fc-text-black fc-heading-4 fc-uppercase fc-margin-bottom-4 fc-bold"},Oe={class:"membership-info-modal__description fc-text-black fc-margin-bottom-8"},Be={class:"membership-info-modal__features"},Ue={class:"membership-info-modal__list fc-margin-top-0 fc-text-black fc-padding-0"},Ve=D({__name:"MembershipInfoModal",setup(d){const{closeModal:g}=G(),{membershipPrice:s}=te({billingPlanKey:"fc_monthly_39",defaultPrice:3900}),u=_(()=>`$${Math.round(s.value/100)}/month`),f=_(()=>({title:"FightCamp Membership",description:`An active FightCamp Membership at ${u.value} is required. Membership gives you full access to our complete library of efficient, full-body workouts, and unlimited accounts for your household.`,features:["1000+ on-demand boxing, kickboxing, strength, core & recovery workouts (more added weekly)","World-class instructors","Real-time progress tracking","Programs with day-by-day workout plans, and more"]}));return(y,c)=>(o(),T(he,{class:"membership-info-modal",onClose:e(g)},{default:S(()=>[t("div",je,[t("h2",Ne,p(e(f).title),1),t("p",Oe,p(e(f).description),1),t("div",Be,[c[0]||(c[0]=t("p",{class:"fc-bold fc-text-black fc-margin-bottom-2 fc-uppercase fc-font-size-4 fc-tracking-widest"}," Included in Membership: ",-1)),t("ul",Ue,[(o(!0),n(H,null,Q(e(f).features,(m,i)=>(o(),n("li",{key:i,class:"fc-margin-y-2 fc-font-size-4"},p(m),1))),128))])])])]),_:1},8,["onClose"]))}}),qe=Object.assign(M(Ve,[["__scopeId","data-v-c8b41cb8"]]),{__name:"MembershipInfoModal"}),Ke={class:"cart-sub-item fc-flex fc-justify-start fc-align-start fc-margin-y-4"},Le={class:"cart-sub-item__info fc-flex fc-column fc-justify-start fc-padding-bottom-2 fc-text-left"},Ye={class:"fc-inline-block fc-margin-0 fc-bold fc-padding-bottom-2 fc-font-size-5 fc-text-black"},We={class:"cart-sub-item__description fc-inline-block fc-text-black fc-margin-0"},He={key:0},Qe={key:1},Xe={key:2},Ge={key:3},Je={key:4},Ze={key:5},et={key:6}
1,tt={class:"fc-flex fc-column fc-align-end"},ot={key:0,class:"fc-text fc-inline-block fc-text-right fc-uppercase fc-font-size-5 cart-item__price fc-margin-bottom-2"},st={key:0,class:"fc-text-gray fc-font-size-4 fc-margin-left-1"},nt=D({__name:"CartSubItemShopify",props:{isDrawer:{type:Boolean}},emits:["removeFromCart"],setup(d,{emit:g}){const s=g,{$filters:u}=q(),{items:f,isEquipInCart:y,membershipInCart:c,productsInCartDetails:m}=L(),i=_(()=>be(c.value,m.value)),{isTrialActive:r}=ke(i),a=_(()=>i.value&&r.value),{isModalOpen:b}=G(),$=["gid://shopify/Product/7881444556889","gid://shopify/Product/8727723376876"],z={ANNUAL_PREPURCHASE:{PROD:"gid://shopify/ProductVariant/46689974124780",TEST:"gid://shopify/ProductVariant/42526225793113"}},v=_(()=>f.value.find(F=>$.includes(F.variantId))),I=_(()=>{const F=c.value?.variantId;return Object.values(z.ANNUAL_PREPURCHASE).includes(F)}),h=_(()=>v.value?"Membership (1 Year @ $32.50/mo)":c.value?.productName||"FightCamp Membership"),k=_(()=>({id:c.value?.variantId,variantId:c.value?.variantId,price:c.value?.price>0&&!I.value?null:3900,yearPrice:I.value?c.value.price:null,comparedAtYearPrice:I.value?c.value.oldPrice:null,pricingDescription:c.value?.pricingDescription||"Monthly access to world-class boxing workouts",product:{},productName:h.value,qty:1,subid:c.value?.metadata?.stripeSubId,type:c.value?.productType,billingPlanKey:c.value?.metadata?.billingPlanKey||"monthly"})),w=_(()=>c.value?.metadata?.billingPlanKey||"monthly"),{membershipPrice:A}=te({billingPlanKey:w,defaultPrice:k.value.price||3900}),Y=_(()=>!y.value);return(F,x)=>{const C=qe,B=J;return o(),n("div",Ke,[t("div",Le,[t("p",Ye,p(k.value.productName),1),t("p",We,[a.value?(o(),n("span",He,[...x[1]||(x[1]=[t("strong",null,"1st month free",-1),R(", then",-1)])])):l("",!0),e(A)&&!I.value&&!v.value&&!w.value.includes("yearly")?(o(),n("span",Qe,p(e(u).currency(e(A)))+"/mo ",1)):l("",!0),I.value&&!v.value?(o(),n("span",Xe,p(e(u).currency(k.value.yearPrice/12))+"/mo ",1)):l("",!0),w.value.includes("yearly")&&!I.value&&!v.value&&e(A)?(o(),n("span",Ge,p(e(u).currency(e(A)/12))+"/mo ",1)):l("",!0),v.value?(o(),n("span",Je,p(e(u).currency(3250))+"/mo ",1)):l("",!0),a.value?(o(),n("span",Ze," membership to track your progress. $0 due today. Local taxes may apply. ")):(o(),n("span",et,p(k.value.pricingDescription),1))])]),t("div",tt,[I.value?(o(),n("p",ot,[t("span",null,p(e(u).currency(k.value.yearPrice)),1),k.value.comparedAtYearPrice?(o(),n("s",st,p(e(u).currency(k.value.comparedAtYearPrice)),1)):l("",!0)])):l("",!0),Y.value?(o(),T(e(K),{key:1,"button-theme":"button-text",onClick:x[0]||(x[0]=E=>s("removeFromCart",k.value))},{default:S(()=>[...x[2]||(x[2]=[t("p",{class:"cart-item__remove-button fc-text-red fc-bold fc-underline fc-padding-left-1 fc-font-size-4 fc-margin-0"}," Remove ",-1)])]),_:1})):l("",!0)]),P(B,null,{default:S(()=>[e(b)("MembershipInfoModal")?(o(),T(C,{key:0})):l("",!0)]),_:1})])}}}),at=Object.assign(M(nt,[["__scopeId","data-v-8c1edc94"]]),{__name:"CartSubItemShopify"});let ct=0;function it(){const d=N(!1),g=N(null),s=`info-tooltip-${ct+=1}`,u=xe("(hover: none)"),f=()=>{u.value||(d.value=!0)},y=()=>{u.value||(d.value=!1)},c=i=>{d.value=!d.value,i?.stopPropagation()},m=i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),c(i))};return Ce(g,()=>{d.value=!1}),{isTooltipVisible:d,tooltipTarget:g,tooltipId:s,showTooltip:f,hideTooltip:y,handleTooltipKeydown:m,toggleTooltip:c}}const rt=["aria-label","aria-expanded","aria-describedby"],lt=["id"],ut=D({__name:"InfoTooltip",props:{label:{},text:{},align:{default:"center"}},setup(d){const{isTooltipVisible:g,tooltipTarget:s,tooltipId:u,showTooltip:f,hideTooltip:y,toggleTooltip:c,handleTooltipKeydown:m}=it();return(i,r)=>(o(),n("span",{ref_key:"tooltipTarget",ref:s,class:"info-tooltip",role:"button",tabindex:"0","aria-label":d.label,"aria-expanded":e(g),"aria-describedby":e(u),onClick:r[0]||(r[0]=(...a)=>e(c)&&e(c)(...a)),onMouseenter:r[1]||(r[1]=(...a)=>e(f)&&e(f)(...a)),onMouseleave:r[2]||(r[2]=(...a)=>e(y)&&e(y)(...a)),onFocus:r[3]||(r[3]=(...a)=>e(f)&&e(f)(...a)),onBlur:r[4]||(r[4]=(...a)=>
1e(y)&&e(y)(...a)),onKeydown:r[5]||(r[5]=(...a)=>e(m)&&e(m)(...a))},[r[6]||(r[6]=t("span",{class:"info-tooltip__icon","aria-hidden":"true"},"â",-1)),V(t("span",{id:e(u),role:"tooltip",class:O(["info-tooltip__bubble",[`info-tooltip__bubble--${d.align}`,{"info-tooltip__bubble--visible":e(g)}]])},p(d.text),11,lt),[[W,e(g)]])],40,rt))}}),oe=Object.assign(M(ut,[["__scopeId","data-v-c3324faa"]]),{__name:"InfoTooltip"}),dt={class:"cart-promo-section"},ft={key:0,class:"cart-promo-section__message fc-padding-y-1"},pt={key:1,class:"cart-promo-section__input-row fc-flex fc-justify-between fc-align-center"},mt={class:"cart-promo-section__input-block fc-flex fc-align-center"},_t=["disabled"],gt={class:"cart-promo-section__price fc-text-right"},yt={class:"fc-flex fc-align-center fc-justify-end"},vt={key:2,class:"fc-margin-0 fc-font-size-5 fc-text-left fc-text-red fc-margin-top-1"},ht=D({__name:"CartPromoSection",props:{email:{},actsAsDrawer:{type:Boolean},processingTotalCost:{type:Boolean},disableRemovingCoupon:{type:Boolean}},setup(d){const g=d,{inputcoupon:s,cartCoupon:u,cartCouponError:f,couponLine:y,isPennyDiscount:c,clickApplyCoupon:m,clearCoupon:i}=ne(),r=N(!0),a=_(()=>!!r.value&&(!u.value||u.value==="")),b=_(()=>!g.actsAsDrawer&&!a.value||u.value);function $(){r.value=!r.value}return(z,v)=>{const I=oe;return o(),n("div",dt,[a.value&&!d.actsAsDrawer?(o(),n("div",ft,[t("a",{class:"fc-bold fc-font-size-5 fc-text-red fc-underline fc-cursor-pointer",onClick:$}," Enter Promo Code ")])):l("",!0),b.value?(o(),n("div",pt,[t("div",mt,[v[3]||(v[3]=t("p",{class:"fc-bold fc-font-size-5 fc-margin-0"}," Code ",-1)),V(t("input",{"onUpdate:modelValue":v[0]||(v[0]=h=>ce(s)?s.value=h:null),disabled:!!e(u),class:O(["cart-promo-section__input fc-font-size-4",{"cart-promo-section__input--error":e(f)}])},null,10,_t),[[ae,e(s)]]),e(u)||d.processingTotalCost?l("",!0):(o(),n("button",{key:0,type:"button","aria-label":"apply coupon",class:"cart-promo-section__apply-button fc-font-size-5 fc-text-red fc-underline fc-cursor-pointer",onClick:v[1]||(v[1]=(...h)=>e(m)&&e(m)(...h))}," Apply ")),e(u)&&!d.disableRemovingCoupon?(o(),n("button",{key:1,type:"button",class:"fc-text-red fc-font-size-5 fc-cursor-pointer fc-margin-left-2",style:{background:"transparent",border:"none",padding:"0"},onClick:v[2]||(v[2]=(...h)=>e(i)&&e(i)(...h))}," â ")):l("",!0)]),t("div",gt,[t("div",yt,[R(p(e(y))+" ",1),e(c)?(o(),T(I,{key:0,label:"Why is my total $0.01 less?",text:"This code unlocks your free membership month - the $0.01 adjustment reflects that promo.",align:"right"})):l("",!0)])])])):l("",!0),e(f)?(o(),n("p",vt,p(e(f)),1)):l("",!0)])}}}),bt=Object.assign(M(ht,[["__scopeId","data-v-fbd699ef"]]),{__name:"CartPromoSection"}),kt={class:"upsell-row"},xt={class:"upsell-img-container fc-flex fc-align-center"},Ct=["alt","src"],It={class:"upsell-item fc-padding-left-4"},$t={class:"upsell-item-name bold"},wt={key:1,class:"upsell-error"},Pt={class:"upsell-button-container"},St={key:0,class:"fc-margin-right-2"},Tt=D({__name:"Upsell",props:{upsellItem:{},loading:{type:Boolean}},emits:["upsell-added"],setup(d,{emit:g}){const s=d,u=g,{addToCart:f}=L(),{$filters:y}=q(),c=N(""),m=N(!1),i=_(()=>s.upsellItem?.select??s.upsellItem?.selects??null),r=_(()=>({oldPrice:s.upsellItem?.product?.oldPrice??s.upsellItem?.oldPrice??null,price:s.upsellItem?.product?.price??s.upsellItem?.price??null})),a=_(()=>s.upsellItem?.item_id??s.upsellItem?.id??null),b=_(()=>s.upsellItem?.title??s.upsellItem?.productName??""),$=_(()=>{const h=s.upsellItem&&(s.upsellItem.imgUrl||s.upsellItem.img_url||s.upsellItem.product?.img_url||s.upsellItem.primaryImg?.src||"");return["cdn.shopify.com","a.storyblok.com"].some(w=>h.includes(w))?h:`https://cdn3.joinfightcamp.com${h?.replace(/.*\/v4/,"/v4")}`});async function z(){if(!i.value||c.value){const h=i.value?c.value:a.value;await f({variantId:h,quantity:1,product:s.upsellItem}),I(),u("upsell-added")}else m.value=!0}function v(){m.value=!1}function I(){m.value=!1,c.value=""}return(h,k)=>(o(),T(e(ie),{class:"upsell"},{default:S(()=>[t("div",kt,[t("div",xt,[$.value?(o(),n("img",{key:0,class:"upsell-img",alt:b.value,src:$.value},null,8,Ct)):l("",!0)]),t("div",It,[k[2]||(k[2]=t("p",{class:"upsell-title bold"}," Add Accessories ",-1)),t("p",$t,p(b.value),1),i.value?(o(),T(e(re),{key:0,modelValue:c.value,"onUpdate:modelValue":k[0]||(k[0]=w=>c.value=w),name:"size",label:"Select Size",class:"equipment-block-select-input",hint:i.value.hint,options:i.value.options,required:"",error:m.value,onInput:k[1]||(k[1]=w=>v())},null,8,["modelValue","hint","options","error"])):l("",!0),m.value&&i.value?(o(),n("p",wt," Please select a size ")):l("",!0)])]),t("div",Pt,[P(e(K),{class:"upsell-button",loading:d.loading,"button-theme":"button-secondary",onClick:z},{default:S(()=>[r.value.oldPrice?(o(),n("s",St,p(e(y).currency2(r.value.oldPrice)),1)):l("",!0),t("span",null,p(e(y).currency2(r.value.price))+" - Add to Cart",1)]),_:1},8,["loading"])])]),_:1}))}}),zt=Object.assign(M(Tt,[["__scopeId","data-v-b4f47597"]]),{__name:"Upsell"}),Dt=({testShopifyId:d,prodShopifyId:g,oldId:s,selectsData:u})=>{let c=Z().public.isProd===!0?g:d;return{id:c,item_id:c,oldId:s,select:u}},Mt={class:"cart-frame"},Rt={class:"cart-frame__item-container"},At={class:"fc-text-black fc-heading-1 fc-uppercase fc-text-center fc-padding-y-5"},Ft={class:"cart-frame__item-container-scroll"},Et={class:"fc-margin-y-4"},jt={class:"fc-flex fc-justify-between fc-align-center fc-margin-bottom-0"},Nt={class:"cart-frame__price fc-font-size-5 fc-text fc-text-right"},Ot={key:0,class:"fc-text-gray fc-font-size-4"},Bt={class:"cart-frame__row fc-flex fc-justify-between fc-align-center fc-padding-y-1"},Ut={class:"fc-bold fc-font-size-5 fc-margin-0"},Vt={key:0},qt={class:"cart-frame__tax-shipping-price fc-text-right"},Kt={class:"fc-font-size-5 fc-margin-0"},Lt={key:0,class:"fc-text-gray fc-font-size-4 fc-margin-left-1"},Yt={class:"cart-frame__row fc-flex fc-justify-between fc-align-center fc-margin-bottom-2"},Wt={class:"fc-bold fc-font-size-5 fc-margin-0"},Ht={key:0},Qt={class:"cart-frame__tax-shipping-price fc-text-right"},Xt={key:0,class:"fc-font-size-5 fc-margin-0"},Gt={key:1,class:"fc-font-size-5 fc-margin-0"},Jt={key:1,class:"cart-frame__spinner-container fc-flex fc-justify-center fc-align-center"},Zt={class:"fc-flex fc-justify-between fc-align-center cart-frame__total-row fc-padding-top-6"},eo={class:"cart-frame__price fc-bold fc-font-size-5 fc-text fc-text-right"},to={key:0,class:"fc-font-size-4 fc-text-gray"},oo={key:0,class:"fc-margin-top-4"},so=D({__name:"CartDisplayShopify",props:{isDrawer:{type:Boolean}},setup(d){const g=d,{$filters:s}=q(),{isCartEmpty:u,removeItemFromCart:f,productsInCartDetails:y,isMembershipInCart:c,processingTotalCost:m,summaryLines:i,shopifyCartId:r}=L(),{getProductById:a,fetchProducts:b}=le();ue(()=>{b()});const{form:$}
1=de(),{isUSOrder:z,displayDuties:v,displayCurrency:I}=fe(),h=_(()=>g.isDrawer),k=ee(),w=_(()=>k.path.includes("/shop/checkout")),A=_(()=>{const x="gid://shopify/Product/7765777645657",C="gid://shopify/Product/8587346411756",E=Z().public.isProd?C:x,j=a(E);return j?{...j,id:E,item_id:E,select:{name:"Size",hint:"Select a size",options:j.variants?.map(U=>({name:U.title,key:U.id}))||[]}}:Dt({testShopifyId:x,prodShopifyId:C,selectsData:{name:"Size",hint:"Select a size"}})}),Y=_(()=>{const x=i.value.shipping;return x==null?"--":x===0?"FREE":s.currency(x)}),F=_(()=>{const x=i.value.shipping;return x!==null&&x<4900});return(x,C)=>{const B=Ee,E=at,j=bt,U=oe,se=zt;return o(),n("div",Mt,[t("div",Rt,[V(t("h2",At," Cart Empty ",512),[[W,e(u)]]),V(t("div",Ft,[(o(!0),n(H,null,Q(e(y),X=>(o(),n("div",{key:X.variantId,class:"fc-margin-y-4"},[P(B,{item:X,"enable-remove":e(h)&&!e(w),onRemoveFromCart:e(f)},null,8,["item","enable-remove","onRemoveFromCart"])]))),128)),t("div",Et,[e(c)?(o(),T(E,{key:0,"is-drawer":e(h)&&!e(w),onRemoveFromCart:e(f)},null,8,["is-drawer","onRemoveFromCart"])):l("",!0)])],512),[[W,!e(u)]])]),t("div",{class:O(["cart-frame__pricing-container fc-text-black fc-padding-y-6",{"cart-frame__processing":e(m),"cart-frame__pricing-container--drawer":e(h)}])},[t("div",jt,[C[0]||(C[0]=t("p",{class:"fc-bold fc-font-size-5 fc-margin-0"}," Subtotal ",-1)),t("p",Nt,[R(p(e(s).currency(e(i).subtotal))+" ",1),e(i).fullPriceSubtotal?(o(),n("s",Ot,p(e(s).currency(e(i).fullPriceSubtotal)),1)):l("",!0)])]),e(r)?(o(),T(j,{key:0,email:e($).email,"acts-as-drawer":e(h)&&!e(w),"processing-total-cost":e(m)},null,8,["email","acts-as-drawer","processing-total-cost"])):l("",!0),t("div",Bt,[t("p",Ut,[e(r)?l("",!0):(o(),n("span",Vt,"Estimated")),C[1]||(C[1]=R(" Shipping ",-1))]),t("div",qt,[t("p",Kt,[t("span",null,p(e(Y)),1),e(F)&&e(z)?(o(),n("span",Lt,[...C[2]||(C[2]=[t("s",null,"$49.00",-1)])])):l("",!0)])])]),t("div",Yt,[t("p",Wt,[C[3]||(C[3]=R(" Estimated Taxes ",-1)),!e(h)&&e(v)?(o(),n("span",Ht," & Duties")):l("",!0),P(U,{label:"Estimated taxes info",text:"The final tax and total will be confirmed by email or text after you place your order."})]),t("div",Qt,[e(i).tax!=null?(o(),n("p",Xt,p(e(s).currency(e(i).tax)),1)):(o(),n("p",Gt," -- "))])]),e(m)?(o(),n("div",Jt,[...C[4]||(C[4]=[t("div",{class:"spinner"},null,-1)])])):l("",!0),t("div",Zt,[C[5]||(C[5]=t("p",{class:"fc-bold fc-font-size-5 fc-margin-0"}," Order Total: ",-1)),t("p",eo,[R(p(e(s).currency(e(i).total)),1),e(I)?(o(),n("span",to,p(e(I)),1)):l("",!0)])])],2),d.isDrawer?l("",!0):(o(),n("div",oo,[P(se,{"upsell-item":e(A),loading:e(m)},null,8,["upsell-item","loading"])]))])}}}),no=Object.assign(M(so,[["__scopeId","data-v-afe6c010"]]),{__name:"CartDisplayShopify"}),ao={class:"cart-drawer-wrapper"},co={class:"cart-drawer__container fc-flex fc-column fc-padding-5"},io={class:"cart-drawer__header fc-flex fc-justify-between fc-align-center fc-margin-bottom-8 fc-padding-y-4"},ro={class:"fc-flex fc-align-center"},lo={class:"fc-font-heading fc-uppercase fc-font-size-10 fc-margin-0"},uo={class:"cart-drawer__content fc-flex-1"},fo={key:0,class:"cart-drawer__footer fc-padding-top-5"},po=D({__name:"CartDrawer",setup(d){const{cartDrawerOpen:g,closeDrawer:s,cartqty:u,productsInCartDetails:f}=L(),{view_cart:y}=pe();me(g,r=>{r&&f.value.length>0&&y(f.value.map(a=>({item_id:a.productId,item_name:a.baseProductName||a.title,price:a.price,item_category:a.productType,item_variant:a.variantTitle,quantity:a.quantity})))});const c=ee(),m=_(()=>["shop-checkout","shop-checkout-confirmation"].includes(c.name)),i=()=>{s(),ye("/shop/checkout")};return(r,a)=>{const b=_e("font-awesome-icon"),$=J,z=no;return o(),n("div",ao,[t("aside",{class:O(["cart-drawer",{"cart-drawer--open":e(g)}])},[t("div",co,[t("header",io,[t("div",ro,[P(b,{icon:["fas","shopping-cart"],class:"fc-font-size-10 fc-margin-right-3"}),P($,null,{default:S(()=>[t("h2",lo," My Cart ("+p(e(u))+") ",1)]),_:1})]),P(e(ge),{icon:"times","button-theme":"outline",mode:"light","aria-label":"Close Cart",class:"cart-drawer__close",onClick:e(s)},null,8,["onClick"])]),t("div",uo,[P($,null,{default:S(()=>[P(z,{"is-drawer":""})]),_:1})]),P($,null,{default:S(()=>[e(m)?l("",!0):(o(),n("div",fo,[P(e(K),{"full-width":"",onClick:i},{default:S(()=>[...a[1]||(a[1]=[R(" Checkout ",-1)])]),_:1})]))]),_:1})])],2),e(g)?(o(),n("div",{key:0,class:"cart-drawer__overlay",onClick:a[0]||(a[0]=(...v)=>e(s)&&e(s)(...v))})):l("",!0)])}}}),mo=Object.assign(M(po,[["__scopeId","data-v-483fffc5"]]),{__name:"CartDrawer"}),ko=Object.freeze(Object.defineProperty({__proto__:null,default:mo},Symbol.toStringTag,{value:"Module"}));
1export{mo as C,no as _,ko as a};
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.