import{a as i}from"./chunk-PJG5QZAI.js";import{c as h}from"./chunk-RH7PHCHG.js";import{a as l,b as s,ka as n,pa as p,r as a}from"./chunk-LPGDQDOD.js";var c=(()=>{class e{get help$(){return this._help$}constructor(t){this.translate=t,this.help=this.defaultHelp(),this.helpS=new a(1),this._help$=this.helpS.asObservable(),this.setHelp(this.defaultHelp())}clearHelp(){this.setHelp(this.defaultHelp())}defaultHelp(){return{globalUrl:`${this.translate.instant("HelpUrl")}${i.Root}`,exampleUrl:`${this.translate.instant("HelpUrl")}${i.Root}`,videoUrl:this.translate.instant("SeeVideoInstructionsUrl")}}setHelpUrl(t){this.setHelp(s(l({},this.help),{globalUrl:`${this.translate.instant("HelpUrl")}${t}`}))}setHelpExampleUrl(t){this.setHelp(s(l({},this.help),{exampleUrl:`${this.translate.instant("HelpUrl")}${t}`}))}setHelpAndExampleUrl(t,r){this.setHelp(s(l({},this.help),{globalUrl:`${this.translate.instant("HelpUrl")}${t}`,exampleUrl:`${this.translate.instant("HelpUrl")}${r}`}))}setHelpUrls(t){this.setHelp({globalUrl:`${this.translate.instant("HelpUrl")}${t.help}`,exampleUrl:`${this.translate.instant("HelpUrl")}${t.example}`,videoUrl:`${this.translate.instant("VideoHelpUrl")}${t.video}`})}setHelp(t){this.help=t,this.helpS.next(t)}static{this.\u0275fac=function(r){return new(r||e)(p(h))}}static{this.\u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{c as a};
