var s,e=(s=class{constructor(){this.options=[],this.truthyWords=[],this.falsyWords=[],this.defaultTruthyWords=["true",!0,1,"1","yes","ja"],this.defaultFalsyWords=["false",!1,0,"0","no","nein"],this.getBooleanOptionToRender=()=>[this.defaultTruthyWords.length===this.truthyWords.length?"Ja":this.truthyWords[this.truthyWords.length-1],this.defaultFalsyWords.length===this.falsyWords.length?"Nein":this.falsyWords[this.falsyWords.length-1]],this.truthyWords=this.defaultTruthyWords,this.falsyWords=this.defaultFalsyWords}static getInstance(){return this.instance||(this.instance=new s),this.instance}setOptions(t){this.options=t}getOptionsForMatchColumn(){return this.options.length===0?[{label:"yes",value:`${s.trueValue}`},{label:"no",value:`${s.falseValue}`}]:this.options.map(t=>({...t,value:`${t.value}`}))}getOptionsForReviewEntries(){return this.options.length===0?[{label:"yes",value:s.trueValue},{label:"no",value:s.falseValue}]:this.options}setTruthyWords(t){this.truthyWords=[...this.truthyWords,t?.toLowerCase(),t],this.truthyWords=Array.from(new Set(this.truthyWords))}setFalsyWords(t){this.falsyWords=[...this.falsyWords,t?.toLowerCase(),t],this.falsyWords=Array.from(new Set(this.falsyWords))}getTruthyWords(){return this.truthyWords?.filter(t=>`${t}`.length>0)}getFalsyWords(){return this.falsyWords?.filter(t=>`${t}`.length>0)}},s.trueValue=!0,s.falseValue=!1,s);export{e as a};
