1import{a as C}from"./chunk-AZGDOMDT.js";import"./chunk-4PTAE4FL.js";import"./chunk-EI7S76MX.js";import{a as v}from"./chunk-GFCJRNG7.js";import"./chunk-YJGV56BU.js";import"./chunk-5LNWRJOG.js";import"./chunk-TZCA4BMQ.js";import"./chunk-UX52FRTR.js";import"./chunk-IWYKCUBW.js";import"./chunk-MZ3B3AQU.js";import"./chunk-GJ3HPRCZ.js";import"./chunk-L77O44AU.js";import"./chunk-XZDAMPUP.js";import"./chunk-UWULTQAP.js";import"./chunk-RB2YP5E2.js";import"./chunk-QIIVFJNA.js";import"./chunk-6D27RETG.js";import"./chunk-DJ7NG7WZ.js";import{c as _}from"./chunk-KI4XJKCH.js";import"./chunk-NERRRF6P.js";import"./chunk-SXBT3OYT.js";import"./chunk-SN3EPBFH.js";import"./chunk-EHPYMWXB.js";import{a as h}from"./chunk-NVPTMCVP.js";import{v as d}from"./chunk-7ZFPQAIH.js";import"./chunk-7NPDSOWV.js";import"./chunk-R5IULLQ2.js";import"./chunk-LEKN3M5J.js";import"./chunk-KFHTLBNQ.js";import"./chunk-YV5TISNX.js";import"./chunk-IDF3EASQ.js";import"./chunk-WJESYQVL.js";import{$c as l,Bc as u,Cc as y,Dc as g,Sb as s,Uc as f,Xa as o,Zb as m,_c as E,aa as c,ad as p}from"./chunk-K6IHZUMJ.js";var S=["applicationLegalEntityTable"],b=["exportDataCard"],Q=(()=>{class r{constructor(n,t){this.applicationLegalEntityService=n,this.notificationService=t,this.currentLegalEntity=o(new d),this.fieldNames=o(["splitCurrencyAmount"]),this.disableEditButtons=o(!1),this.applicationPermissions=o(h.LegalEntityUpdate)}ngOnInit(){this.currentLegalEntity.set(new d(this.applicationLegalEntityService.current$.value))}saveSettings(n){this.currentLegalEntity.set(n),this.applicationLegalEntityService.update(this.currentLegalEntity()).pipe(c(1)).subscribe({next:t=>this.applicationLegalEntityService.loadCurrent(),error:t=>this.notificationService.error(t.error.message)})}static{this.\u0275fac=function(t){return new(t||r)(s(v),s(_))}}static{this.\u0275cmp=m({type:r,selectors:[["yon-export-data-entities"]],viewQuery:function(t,e){if(t&1&&E(S,5)(b,5),t&2){let i;l(i=p())&&(e.applicationLegalEntityTable=i.first),l(i=p())&&(e.exportDataCard=i.first)}},decls:2,vars:5,consts:[["exportDataCard",""],["header","Export Data Settings","entityName","application-legal-entity",3,"entityChange","saveClicked","editClicked","fieldNames","entity","editPermission","tooltip","disableEditButton"]],template:function(t,e){t&1&&(y(0,"yon-entity-fields-card",1,0),f("entityChange",function(a){return e.currentLegalEntity.set(a)})("saveClicked",function(a){return e.saveSettings(a)})("editClicked",function(a){return e.disableEditButtons.set(a)}),g()),t&2&&u("fieldNames",e.fieldNames())("entity",e.currentLegalEntity())("editPermission",e.applicationPermissions())("tooltip","While enabled, columns with both amount and currency code will be split into two separate columns")("disableEditButton",e.disableEditButtons())},dependencies:[C],encapsulation:2})}}return r})();export{Q as SettingsExportDataComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.