PageSourceSearch

https://box4metal.com/assets/ItemFooter-B6NAgYXQ.js

js box4metal.com collected 2026-09-24 14:39:35 UTC 2,405 bytes, 2 lines download raw bytes

1import{u as b,bk as h,l as v,a7 as P}from"./index-cJrhAE3g.js";import{d as w,i as a,j as n,k as c,l as r,v as o,F as I,p as D,A as x}from"./vendor-vue-Bt0gNhgV.js";import"./vendor-moment-Bfy5ykKt.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"1037"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3d08e9ba-8225-480a-8e20-a95fd1f541fc",t._sentryDebugIdIdentifier="sentry-dbid-3d08e9ba-8225-480a-8e20-a95fd1f541fc")})()}catch{}const C={class:"bg-body"},E={class:"d-inline-flex align-items-baseline gap-2"},F={class:"fw-bold fs-4 lh-1"},k={class:"text-muted currency"},K={key:0,class:"mt-1 d-flex flex-column gap-1"},T={class:"fw-semibold"},S={class:"ms-1"},B=w({__name:"ItemFooter",props:{itemData:{default:void 0},listItem:{default:void 0}},setup(t){const e=t,{t:g}=b(),{data:u}=h(),f=v("prices.ew_offered_price"),i=a(()=>{switch(u?.value?.pricing.priceField){case"priceKg":return e.itemData?.priceKg??e.listItem?.priceKg;case"price":return e.itemData?.price??e.listItem?.price;case"unitPrice":return e.itemData?.unitPrice??e.listItem?.unitPrice;case"offeredPrice":return f.value?e.itemData?.offeredPrice??e.listItem?.offeredPrice:0;default:return console.error(g("Price does not exist")),null}}),y=a(()=>i.value===null||i.value===void 0||i.value===""?"-":i.value),_=a(()=>e.itemData?.otherCurrencies??e.listItem?.otherCurrencies??[]),p=a(()=>{const l=u?.value?.pricing.priceField??"price";if(l==="offeredPrice"&&f.value)return[];const m=(s,d)=>{switch(d){case"priceKg":return s.pricePerKg;case"unitPrice":return s.unitPrice;default:return s.pricePerDefaultMass}};return _.value.map(s=>({price:m(s,l),currency:s.displayCurrency}))});return(l,m)=>(n(),c("div",C,[r("div",E,[r("span",F,o(y.value),1),r("span",k,o(t.listItem?.displayCurrency??t.itemData?.displayCurrency),1)]),p.value.length?(n(),c("div",K,[(n(!0),c(I,null,D(p.value,(s,d)=>(n(),c("div",{key:`${s.currency}-${d}`,class:"text-muted currency text-nowrap lh-1"},[r("span",T,o(s.price),1),r("span",S,o(s.currency),1)]))),128))])):x("",!0)]))}}),L=P(B,[["__scopeId","data-v-2ce224cd"]]);export{L as default};
2//# sourceMappingURL=ItemFooter-B6NAgYXQ.js.map

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.