1import{n as m,aE as l}from"./C9Z41gEb.js";const h=(e,t)=>e?.filter(i=>i).join(t),d=(e,t,i,a)=>{const r=b(e,i);if(r){if(e.weightArticle&&!e.weightPieceArticle&&i?.messagesPerAmountLabel)return l(i.messagesPerAmountLabel,[r]);if(t)return`${r} ${c(t,a)}`}},c=(e,t)=>t(g(e)),b=(e,t)=>{if(!(!e.price?.basePriceFactor||!e.price?.baseUnitLong&&!e.price?.baseUnitShort))return h([e.price.basePriceFactor,t.volumeLabelType==="Long"?e.price.baseUnitLong:e.price.baseUnitShort||e.price.baseUnitLong,e.drainedWeight&&t.drainedWeightBasePriceLabel?t.drainedWeightBasePriceLabel:void 0]," ")};function g(e){return typeof e=="number"&&!Number.isNaN(e)?e/100:void 0}const _=(e,t,i,a={})=>{const r=u(e?.regular);if(r&&!a.promotionConditionFulfilled||!r&&(t.pricesShowStrikethroughPrice===!1||!e?.crossed))return{formattedStrikeThroughValue:void 0,strikeThroughLabel:void 0};let o=e.crossed;o&&a.isWeightArticle&&(e.basePriceFactor==="100"?o=o/10:e.basePriceFactor==="500"&&(o=o/2));const s=a.isWeightArticle?e.standard?.perStandardizedQuantity:e.standard?.value,n=c(r&&!a.bundleSize&&s!=null?s:o,i);return{formattedStrikeThroughValue:n,strikeThroughLabel:l(t.pricesStrikedAlternativeLabel,[n])}},u=e=>!!(e?.promotionValue&&e.promotionType&&e.promotionType in m&&e.promotionQuantity),L=e=>e?.discountPercentage!==void 0&&e.discountPercentage!==0,T=Symbol("product-navigation-origin"),f="line-item";export{T as P,f as a,c as b,g as c,d,_ as e,u as f,L as p,h as s};
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.