1import{l as t,t as e,d as r}from"./roi-helpers-4791ce8c.js";import"./jspdf.es.min-2e7b53d9.js";function l(l={},i=null){return{...t(i),DAYS_PER_YEAR:312,BENCHMARK_RATE:8,COST_PER_TRUCK:64.59,t:l,resultKey:"overfill",overfill:{trucks:"",collectionsFL:"",collectionsASL:"",charge:50,rate:"",result:null},init(){},money(t){try{return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(Math.round(Number(t)||0))}catch{return"$"+Math.round(Number(t)||0).toLocaleString()}},barWidth(t,e){const r=t||[],l=Math.max(...r.map(t=>t.value),1);return Math.max(4,e/l*100)+"%"},get showNudge(){const t=Number(this.overfill.rate);return""!==this.overfill.rate&&!isNaN(t)&&(t<5||t>10)},get overfillReady(){return["trucks","collectionsFL","collectionsASL","charge","rate"].every(t=>""!==String(this.overfill[t]).trim())},calcOverfill(){if(!this.overfillReady)return;const t=Number(this.overfill.trucks)||0,e=Number(this.overfill.collectionsFL)||0,r=Number(this.overfill.collectionsASL)||0,l=Number(this.overfill.charge)||0,i=(Number(this.overfill.rate)||0)/100,a=this.COST_PER_TRUCK,o=t*(e*i*l),s=t*a,n=Math.max(0,o-s),c=t*(r*i*l),h=t*a,u=Math.max(0,c-h),p=n+u;this.overfill.result={heroLabel:this.t.heroLabel,heroValue:p,delta:null,compareCaption:this.t.compareCaption,bars:[{label:this.t.collectionsFL,value:n,after:!0},{label:this.t.collectionsASL,value:u,after:!0}],disclaimer:(this.t.disclaimer||"").replace("{days}",this.DAYS_PER_YEAR).replace("{rate}",this.BENCHMARK_RATE)}},download(){const t=this.overfill.result;if(!t)return;e({category:"Overfill ROI Calculator",action:"Download PDF"});const l=this.overfill,i=[];""!==String(l.trucks).trim()&&i.push([this.t.inputTrucks,l.trucks]),i.push([this.t.inputCollectionsFL,l.collectionsFL]),i.push([this.t.inputCollectionsASL,l.collectionsASL]),i.push([this.t.inputCharge,"$"+l.charge]),i.push([this.t.inputRate,(Number(l.rate)||0)+"%"]),r({locale:"en-US",currency:"USD",accent:"#dc3b75",paper:"letter",kicker:"VISION AI",reportLabel:this.t.reportLabel,regionLabel:"United States",websiteLabel:"www.amcsgroup.com",cta:{title:[this.t.ctaTitle1,this.t.ctaTitle2],buttonLabel:this.t.ctaButton,body:this.t.ctaBody,url:this.t.ctaUrl},title:this.t.title,heroLabel:t.heroLabel,heroValue:t.heroValue,delta:t.delta,compareCaption:t.compareCaption,bars:t.bars,inputs:i,inputsCaption:this.t.inputsCaption,generatedLabel:this.t.generatedLabel,explanationCaption:this.t.howHelps,explanation:this.t.explanation,disclaimer:t.disclaimer,filename:"AMCS-Vision-AI-overfill-ROI-Report.pdf"})}}}export{l as default};
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.