import{w as d,Y as g,L as t,bc as h,fa as f,az as m,bu as E,t as p,fi as P}from"./app-k0jcl5PQ.js";const i="shared.verifiedEmailError";class R extends d{constructor(e,s,r){super("VerifiedEmailRequiredError"),this.message=e,this.liteUrl=s,this.hasLite=r}get name(){return"VerifiedEmailRequiredError"}get dialogOptions(){const e=g.safeUrlConcat(this.liteUrl,"settings/account");return{title:t.getPhrase(i,"heading"),text:this.hasLite?`${this.message} ${t.getPhrase(i,"visitSettings",{href:e})}`:this.message,buttons:[{text:t.getPhrase(i,"close"),className:"btn btn-dark",success:!0}]}}}function q(){const a=h(),{hasProduct:e,isLoadingProducts:s}=f(),r=m(E.config());function c(o,l,u){var n;if(!o.responseJSON||((n=o.responseJSON)==null?void 0:n.type)!=="no-email"){a.error(l);return}p.throw(new R(u,r.data.liteUrl,e(P.Primary)))}return{handleGenerateReportError:c,loading:!r.hasCompleted||s}}export{q as u};
//# sourceMappingURL=2Rcc29RN.chunk.js.map
