1import{H as e,I as t,P as n}from"./vue.runtime.esm-bundler.LAYVRemp.js";import{s as r}from"./dist.CNbNR8Mb.js";e();var i=Object.assign(t(e=>()=>{let t=e.label;if(!t)return n(`div`,null,null);let r={background:`${t.bgColor}`,color:t.color?`${t.color}`:void 0},i=`product-flag`+(t.iconPath?` p-0 `:``),a;if(t.iconPath){let e={maskImage:`url('${t.iconPath}')`,"-webkit-mask-image":`url('${t.iconPath}')`,background:t.color};a=[n(`div`,null,[n(`div`,{class:`img`,title:t.label,style:e,"aria-hidden":`true`},null),n(`span`,{class:`sr-only`},[t.srLabel??t.label])])]}else a=[n(`span`,{"aria-hidden":!!t.srLabel,key:`label-text`},[t.label])],t.srLabel&&a.push(n(`span`,{class:`sr-only`,key:`label-sr`},[t.srLabel]));return n(`li`,{style:r,class:i},[a])},{props:{label:{type:Object,required:!1,default:void 0}}}),{__name:`CatalogProductFlagsBadgeVue`}),a=`#000000`,o=`#FFFFFF`,s=o,c=`#E84C1C`,l=`#D9AF5A`,u=a,d=`#FEB649`,f=a,p=`#7FCE20`,m=a,h=`#ac0404`,g=o,_=e=>{if(!e.badge)return[];let t=e.badge,n=[];return(t.sales_hit||t.best_in_category)&&n.push({label:e.t(`productBadges.hit`),bgColor:d,color:f}),t.novelty&&n.push({label:e.t(`productBadges.novelty`),bgColor:p,color:m}),t.exclusive_deal&&n.push({label:e.t(`productBadges.exclusive_deal`),bgColor:l,color:u}),e.textLabels&&e.textLabels?.length>0&&n.push(...e.textLabels),t.in_action&&n.push({label:e.t(`productBadges.in_action`),bgColor:s,color:c,iconPath:r(e.cdnUrl,`/static/img/vs_icons/giftbox.svg`)}),e.limit?n.slice(0,Math.min(n.length,e.limit)):n};export{i,h as n,g as r,_ as t};
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.