1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3592],{4596(e,t,r){r.r(t),r.d(t,{default:()=>p});var a=r(6540),s=r(6019),c=r(5518),n=r(3709),l=r(1982);const i="hawk-display-percentage-container",o="hawk-display-percentage-percentage-off";(0,c.y)("display-percentage");const p=({deal:e,percentageOffThreshold:t})=>a.createElement(n.ZC,null,r=>{const{articleUrl:c,genericSharedComponents:{AffiliateLink:n},translate:p}=r,d=(0,l.A)({price:e.offer.price,wasPrice:e.offer.was_price,threshold:t,translate:p});return d?a.createElement(n,{deal:e,clickType:(0,s.F)({link:e.offer.link,articleUrl:c,productType:e.product_type})},a.createElement("div",{className:i},a.createElement("span",{className:o},d))):null})},1982(e,t,r){r.d(t,{A:()=>s});var a=r(6787);const s=({price:e,wasPrice:t,threshold:r,translate:s})=>{const c=(0,a.b)({price:e,wasPrice:t});if(c&&Number(c)>=r)return s("voucherTopSaving",[c]).toUpperCase()}},6787(e,t,r){r.d(t,{b:()=>a});const a=({price:e,wasPrice:t})=>{if(t){return(Number.parseFloat((t-Number.parseFloat(e)).toFixed(2))/t*100).toFixed(0)}}},5518(e,t,r){r.d(t,{y:()=>n});var a=r(4625),s=r(3616),c=r(5557);const n=e=>{if(!c.b&&!(0,a.x)()&&!document.getElementById(`hawkStyles-${e}`)){const t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.id=`hawkStyles-${e}`,t.href=`${(0,s.q)()}/css/browser/master-3fc2145b/${e}.min.css`,document.head.appendChild(t)}}}}]); 2//# sourceMappingURL=display-percentage.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.