1function f(t,e){return[...e].sort((a,n)=>n.value-a.value).find(a=>t>=a.value)??null}const d=1e3;function P(t,e,r,a){const n=f(t,r),o=n?.bonus_percent??0,s=a.discount_percent,c=Math.round(t*(1+o/100)),u=e*(1-s/100),i=Math.round(t*u*100)/100,m=c*e,l=c>0?i/c:0;return{selectedDublons:t,activeMilestone:n,bonusPercent:o,totalReceived:c,paymentDiscount:s,effectivePricePerDublon:l,totalPrice:i,savings:Math.max(0,Math.round((m-i)*100)/100)}}function p(t,e="KÄ"){const r=Number.isInteger(t)?0:2;return`${new Intl.NumberFormat("cs-CZ",{minimumFractionDigits:r,maximumFractionDigits:r}).format(t)} ${e}`}function g(t,e="KÄ"){return`${new Intl.NumberFormat("cs-CZ",{minimumFractionDigits:2,maximumFractionDigits:2}).format(t)} ${e}`}function y(t,e,r){return[...e].sort((n,o)=>n.value-o.value).map(n=>({label:n.value.toLocaleString("cs-CZ"),price:Math.round(t*(1-r.discount_percent/100)/(1+n.bonus_percent/100)*d*100)/100,bonusPercent:n.bonus_percent}))}function h(t){switch(t){case"monthly":return"mÄsÃÄnÄ";case"quarterly":return"každé 3 mÄsÃce";case"yearly":return"roÄnÄ";default:return""}}function v(t){switch(t){case"monthly":return"/ mÄsÃc";case"quarterly":return"/ 3 mÄsÃce";case"yearly":return"/ rok";default:return""}}export{d as P,p as a,v as b,P as c,g as f,y as g,h as p};
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.