import{a as m}from"./chunk-Z7L37ADQ.js";import{s as u}from"./chunk-VGBLHTO7.js";import{c as f,f as I,s as p,t as h}from"./chunk-DBX6XJWC.js";import{a as l,b as g}from"./chunk-NUAVJ2U7.js";import{c,d as b}from"./chunk-PBM4LEG7.js";import{nd as D,qa as d,va as s}from"./chunk-PGS4AHIT.js";h();b();var y=class{static produceClassificationFilterLookupField(r){return{id:"classifications",label:"Classification",noneOption:!0,multiselect:!0,searchable:!0,hideFeatureId:"Documents.Filter.Classification",canClear:!0,component:u,apiRequest:e=>r.get(p.general.classificationLookupAuth(e)),valueMapper:e=>e?.type,labelMapper:e=>c.notEmpty(e?.typeDesc)?`${e?.type} - ${e?.typeDesc}`:`${e?.type}`}}static produceClassificationFormField(r,e,i){return{id:"classificationId",label:"Classification",options:[],searchable:!0,required:!0,feature:e,component:u,lazyLoad:!0,apiRequest:t=>i.get(p.general.classificationLookupAuth(t)),valueMapper:t=>t?.qid,labelMapper:t=>c.notEmpty(t?.typeDesc)?`${t?.type} - ${t?.typeDesc}`:`${t?.type}`,valueSetter:t=>t.value,modelToOptionMapper:(t,n)=>{let a=n;return{qid:t,type:a.classificationType,typeDesc:a.classification}},onSelected:(t,n,a,S,v,$)=>{r(n,S,$)}}}};g();D();I();var N=(()=>{class o{constructor(e,i){this.irisDialogService=e,this.translate=i}openDocumentStorageIris1000000482(e,i,t){let n=this.irisDialogService.open({irisId:"1000000482",contentTags:{S0:`${e.name} - ${e.description}`,S1:"LoadDocuments",S2:`${i.type} - ${i.name}`,S3:t.name||""},filterItems:[10,20,50],irisActions:[{anNo:10,onSelected:()=>{document.location=`${l.backofficeUrl}Settings?type=Classifications&id=Settings&selected=${i.id}`}},{anNo:20,onSelected:()=>{document.location=`${l.backofficeUrl}DocumentType/Edit?id=${t.id}`}},{anNo:50,onSelected:()=>{n.close()}},{anNo:51,caption:"ViewInstructions",description:"ViewInstructionsDescription",onSelected:()=>{window.open(this.translate.instant("HelpUrl"),"_blank")}}]});return n}static{this.\u0275fac=function(i){return new(i||o)(s(m),s(f))}}static{this.\u0275prov=d({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{y as a,N as b};
