import*as i18n from"../i18n/i18n.js";import{Issue,IssueCategory}from"./Issue.js";const UIStrings={handlingHeavyAdInterventions:"Handling Heavy Ad Interventions"},str_=i18n.i18n.registerUIStrings("sdk/HeavyAdIssue.js",UIStrings),i18nString=i18n.i18n.getLocalizedString.bind(void 0,str_);export class HeavyAdIssue extends Issue{constructor(s,e){const t=[Protocol.Audits.InspectorIssueCode.HeavyAdIssue,s.reason].join("::");super({code:Protocol.Audits.InspectorIssueCode.HeavyAdIssue,umaCode:t},e),this._issueDetails=s}heavyAds(){return[this._issueDetails]}primaryKey(){return`${Protocol.Audits.InspectorIssueCode.HeavyAdIssue}-${JSON.stringify(this._issueDetails)}`}getDescription(){return{file:"issues/descriptions/heavyAd.md",substitutions:void 0,links:[{link:"https://developers.google.com/web/updates/2020/05/heavy-ad-interventions",linkTitle:i18nString(UIStrings.handlingHeavyAdInterventions)}]}}getCategory(){return IssueCategory.HeavyAd}}