PageSourceSearch

https://beygood.org/_nuxt/zcdETqWN.js

js beygood.org collected 2026-10-02 16:41:27 UTC 3,871 bytes, 1 lines download raw bytes

1import{_ as q}from"./DrS0x0Dg.js";import{_ as B}from"./DTZQmdxB.js";import{d as T,D,E as S,G as I,c as l,e as t,g as c,h as O,H as P,r as $,o as n,k as e,I as v,F as m,f as E,w as M,a as N,b,C as i,_ as Q}from"./C0-53nAJ.js";import{f as G,a as h}from"./BK7BXEbc.js";const L={class:"cart-page"},V={class:"cart-inner"},Y={key:0,class:"cart-empty"},A={class:"cart-table"},F={class:"col-product product-info"},H=["disabled","onClick"],R={class:"product-image"},U={class:"product-meta"},j={class:"product-name"},z={key:0,class:"product-variant"},J={class:"data-cols"},K={class:"col-price"},W={class:"col-qty"},X={class:"qty-control"},Z=["disabled","onClick"],tt={class:"qty-box"},st=["disabled","onClick"],ot={class:"col-total"},et={class:"cart-footer"},at={class:"continue-shopping"},nt={class:"cart-summary"},lt={class:"subtotal-row"},it={class:"subtotal-amount"},rt=T({__name:"cart",setup(dt){const r=D(),{isUpdating:d,remove:y,updateQty:g,checkout:f}=S();function k(a){y(a.merchandise.id,a.merchandise.product.title)}function p(a,s){g(a.merchandise.id,s,a.merchandise.product.title)}return I({title:"Your Cart | BeyGOOD Shop",robots:"noindex"}),(a,s)=>{const u=q,C=B,w=P,x=$("intersection-observer");return n(),l("main",L,[t("div",V,[s[13]||(s[13]=t("h1",{class:"cart-title"}," Your Cart ",-1)),c(w,null,{default:O(()=>[e(r).isEmpty?(n(),l("div",Y,[s[2]||(s[2]=t("p",null,"Your cart is empty.",-1)),c(u,{text:"Browse Shop",onClick:s[0]||(s[0]=o=>("navigateTo"in a?a.navigateTo:e(v))("/shop"))})])):(n(),l(m,{key:1},[t("div",A,[s[9]||(s[9]=t("div",{class:"table-header"},[t("span",{class:"col-product"},"Product"),t("span",{class:"col-price"},"Price"),t("span",{class:"col-qty"},"Qty"),t("span",{class:"col-total"},"Total")],-1)),(n(!0),l(m,null,E(e(r)?.cart?.lines||[],o=>M((n(),l("div",{key:o.id,class:"cart-row"},[t("div",F,[t("button",{class:"remove-btn",disabled:e(d),"aria-label":"Remove item",onClick:_=>k(o)},s[3]||(s[3]=[t("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M1 1L9 9M9 1L1 9",stroke:"currentColor","stroke-width":"1.5"})],-1)]),8,H),t("div",R,[o.merchandise.product.featuredImage?(n(),N(C,{key:0,image:{src:o.merchandise.product.featuredImage.url,alt:o.merchandise.product.featuredImage.altText||o.merchandise.product.title},mode:"cover",class:"cart-image"},null,8,["image"])):b("",!0)]),t("div",U,[s[4]||(s[4]=t("span",{class:"phone-product-label"},"Product",-1)),t("p",j,i(o.merchandise.product.title),1),o.merchandise.title!=="Default Title"?(n(),l("p",z,i(o.merchandise.title),1)):b("",!0)])]),t("div",J,[t("div",K,[s[5]||(s[5]=t("span",{class:"cell-label"},"Price",-1)),t("span",null,i(e(G)(o.cost.totalAmount,o.quantity)),1)]),t("div",W,[s[6]||(s[6]=t("span",{class:"cell-label"},"Qty",-1)),t("div",X,[t("button",{class:"qty-btn",disabled:e(d),onClick:_=>p(o,o.quantity-1)}," – ",8,Z),t("div",tt,i(o.quantity),1),t("button",{class:"qty-btn",disabled:e(d),onClick:_=>p(o,o.quantity+1)}," + ",8,st)])]),t("div",ot,[s[7]||(s[7]=t("span",{class:"cell-label"},"Total",-1)),t("span",null,i(e(h)(o.cost.totalAmount)),1)])]),s[8]||(s[8]=t("hr",{class:"row-divider"},null,-1))])),[[x,void 0,void 0,{once:!0,stagger:!0}]])),128))]),t("div",et,[t("div",at,[s[10]||(s[10]=t("div",{class:"continue-title"}," Not done shopping? ",-1)),s[11]||(s[11]=t("div",{class:"continue-text"}," Head back to the shop to find more BeyGOOD products. Every purchase supports the foundation. ",-1)),c(u,{text:"Browse",onClick:s[1]||(s[1]=o=>("navigateTo"in a?a.navigateTo:e(v))("/shop"))})]),t("div",nt,[t("div",lt,[s[12]||(s[12]=t("span",{class:"subtotal-label"},"Subtotal",-1)),t("span",it,i(e(r).subtotal?e(h)(e(r).subtotal):""),1)]),c(u,{text:"Checkout",disabled:e(d),onClick:e(f)},null,8,["disabled","onClick"])])])],64))]),_:1})])])}}}),vt=Q(rt,[["__scopeId","data-v-021d6eb0"]]);export{vt 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.