1import{a as en,b as lr}from"./chunk-4QXHJCW6.js";import{d as Jo,e as ar}from"./chunk-NXA6PNFZ.js";import{a as Wo,b as qo,c as Qo,g as Yo,h as Zo}from"./chunk-2J3GGY3H.js";import{c as Ue,d as je,e as Be,g as Ve,h as Xt,j as Ut,k as He,m as Ke,n as We,p as qe,q as jt,r as ct,s as mt}from"./chunk-2FVFLRNI.js";import{b as mi,c as rr,d as Vo,h as Ho,i as Ko}from"./chunk-DCPLIV5H.js";import{a as Uo,b as or}from"./chunk-JENCRXNK.js";import{a as tn,b as _r}from"./chunk-IPA5S43G.js";import{d as Xo}from"./chunk-BARMIXNG.js";import{a as ee,b as ci,c as kt}from"./chunk-U65SP7DT.js";import{a as Xe,b as si}from"./chunk-ZQJROLR7.js";import{a as zo,b as ko,d as ir}from"./chunk-ZYEUXCY3.js";import"./chunk-32LLNSKK.js";import"./chunk-ME333VOA.js";import{c as jo,d as Bo,g as nr}from"./chunk-GZZGHV7I.js";import"./chunk-AQTQ27IL.js";import"./chunk-7KHQJN2J.js";import"./chunk-RYBKA5ZX.js";import{d as wo,e as tr}from"./chunk-WP6HR2VC.js";import{A as bt,B as Lt,C as xt,F as ho,H as we,N as pt,k as $e,l as Eo,m as Dt,n as pi,s as yt,z as vt}from"./chunk-CXHUGI53.js";import"./chunk-LNY7IVJU.js";import{a as $o,d as er}from"./chunk-WTHSBF3U.js";import"./chunk-CVRUGREP.js";import{a as Go,b as Jn}from"./chunk-LEC52FC6.js";import"./chunk-OH4IZRPY.js";import"./chunk-FTOVNDB2.js";import"./chunk-5EDQ26KT.js";import"./chunk-AIP3SJQT.js";import"./chunk-SGGPLEBC.js";import{a as Oo,b as qn}from"./chunk-AMGOVDX5.js";import{j as Mo,m as Qn}from"./chunk-WHLJTMLF.js";import{F as Po,H as Nt,I as _i,J as Ft,K as To,a as j,b as Ge,c as co,e as Rt,f as mo,fa as Co,h as ht,ja as Kn,sa as go}from"./chunk-GQSINUCQ.js";import{a as No,b as Te,c as wt,d as ze,e as Fo,f as Do,g as yo,h as vo,i as Ce,j as ke,k as Lo,l as xo,m as st}from"./chunk-M7CVNZI2.js";import"./chunk-PARDQ3CU.js";import"./chunk-IUSH46XF.js";import"./chunk-M3IGH7ZI.js";import"./chunk-UYGHA7V4.js";import"./chunk-LLRRL6HD.js";import"./chunk-QVRKTPJQ.js";import"./chunk-U325GP3K.js";import"./chunk-7UODI6M6.js";import{a as zt,c as bo}from"./chunk-WYINA6CR.js";import{h as uo,p as Hn}from"./chunk-GGLWZJFZ.js";import{D as Ro,J as Zn}from"./chunk-OSSHHDUN.js";import{m as So,p as Wn}from"./chunk-BOI45ARQ.js";import"./chunk-DHTLRMX3.js";import"./chunk-DGUE55CO.js";import"./chunk-JFPPMMAG.js";import"./chunk-PSRQHKGP.js";import{c as Yn,g as Gt,n as J,p as $t,s as Io}from"./chunk-DEVCCNNO.js";import"./chunk-27LEEMVH.js";import{a as fo,f as Y,k as me,m as de,p as fe,w as ue,x as Pe,y as H}from"./chunk-SLTAQ7HK.js";import"./chunk-MCX7RYIU.js";import{i as ao,l as lo,o as _o}from"./chunk-5HY7BCDR.js";import{a as Q,b as po,d as so,e as _t}from"./chunk-IXTBKNUN.js";import"./chunk-P6OI7H74.js";import"./chunk-NGUBRNGZ.js";import{a as Ao,c as Z,e as X,f as B}from"./chunk-IWKPNJ2D.js";import"./chunk-M4OAIOX6.js";import"./chunk-N3APZBSU.js";import{g as oo,i as no,j as ro,m as li}from"./chunk-TU3DG2QG.js";import"./chunk-OYQWHS5G.js";import{k as ne,l as xe,m as Ne}from"./chunk-R75YLG7M.js";import"./chunk-BVZHJMOI.js";import{$b as m,Aa as Ot,Bd as T,Ca as zi,Cc as Hi,D as ei,Db as S,Dc as Ki,E as vi,Ea as d,Eb as Mt,Ec as oi,F as bi,Fb as Ee,Fc as nt,Gb as Et,Hb as Bi,Hc as rt,Ib as Vi,Ja as h,Jb as F,Jc as b,K as Li,Ka as N,Kc as ce,Lc as V,N as xi,Nc as ve,Oc as be,Od as Zi,Pa as ie,Pc as Le,Q as De,Ra as ye,Rd as Ji,Sa as ki,Sb as Ie,Sd as eo,Tc as Wi,U as Gi,Uc as at,Va as Me,Vb as f,Wc as ni,Xb as u,Y as St,Ya as Bn,Yb as ae,Yc as U,Zb as le,Zc as q,_b as _e,_c as ri,ab as Xi,ac as r,ba as K,bb as Ui,bc as a,bd as qi,be as to,cc as P,db as oe,g as Jt,gc as E,gd as Re,hc as I,ic as ot,jc as y,kd as lt,lb as ji,ld as he,mb as At,mc as pe,md as Qi,n as Fi,na as te,nc as se,oc as p,od as Yi,pa as $i,pe as io,qa as w,qb as l,qc as z,qd as ai,rc as k,re as Vn,sa as wi,sc as W,tc as M,ua as G,v as Di,vc as c,w as yi,wc as $,wd as It,xb as ii,xc as v,ya as ti,za as re}from"./chunk-DY6JDQCA.js";import{a as Ct,b as gt,e as R,h as jn,j as Ni}from"./chunk-TWZW5B45.js";var on,Bt,di=R(()=>{T();Vn();G();on=jn(Yn());Zn();Wn();T();Bt=(()=>{class e{constructor(){this.httpClient=d(io),this.companyStore=d(Ro)}static{this.canImportKpiUrl="/api/customkpi/CanImportKpi"}uploadKpiFile(t){let i=new FormData;return i.set("file",t),this.httpClient.post("/api/forecasting/v2/customkpi/import/values",i)}exportKpiTemplate(){return this.companyStore.cashFlowCurrentCompanyId$.pipe(St(1),te(t=>this.httpClient.get(`/api/forecasting/v2/companies/${t}/custom-kpi/import/template`,{responseType:"arraybuffer"})),w(t=>(0,on.saveAs)(new Blob([t],So),$localize`:@@page_import_excel.kpi_import.import_template_name:Agicap_Template_Import_KPI.xlsx`,{autoBom:!1})))}getCanImportKpi(){return this.httpClient.get(e.canImportKpiUrl)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})()});var nn,rn=R(()=>{st();T();B();Ce();T();B();st();Ce();nn=(()=>{class e{constructor(){this.data=d(Te);let t=this.data;this.fileName=t.fileName}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-categories-import-confirmation-modal"]],decls:21,vars:4,consts:()=>{let t;t=$localize`:@@categories_import.new_modal_confirmation.titleâ0271be573783e2900359f12685ce61e393f1ececâ7705185912118660052:Category import`;let i;i=$localize`:@@categories_import.new_modal_confirmation.content_1âf22c461a3cf2d8d3e7e798e91a45eb06d14b93d1â3683972093635681960: Importing categories will replace the existing categories. ${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#14\uFFFD\uFFFD/#14\uFFFD]"}:LINE_BREAK: This will result in: ${"\uFFFD#7\uFFFD"}:START_UNORDERED_LIST:${"[\uFFFD#8\uFFFD|\uFFFD#10\uFFFD|\uFFFD#12\uFFFD]"}:START_LIST_ITEM:The deletion of the ${"[\uFFFD#9\uFFFD|\uFFFD#11\uFFFD|\uFFFD#13\uFFFD|\uFFFD#15\uFFFD]"}:START_TAG_STRONG:forecast${"[\uFFFD/#9\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#15\uFFFD]"}:CLOSE_TAG_STRONG:${"[\uFFFD/#8\uFFFD|\uFFFD/#10\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_LIST_ITEM:${"[\uFFFD#8\uFFFD|\uFFFD#10\uFFFD|\uFFFD#12\uFFFD]"}:START_LIST_ITEM:The ${"[\uFFFD#9\uFFFD|\uFFFD#11\uFFFD|\uFFFD#13\uFFFD|\uFFFD#15\uFFFD]"}:START_TAG_STRONG:categorization${"[\uFFFD/#9\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#15\uFFFD]"}:CLOSE_TAG_STRONG: of all impacted transactions${"[\uFFFD/#8\uFFFD|\uFFFD/#10\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_LIST_ITEM:${"[\uFFFD#8\uFFFD|\uFFFD#10\uFFFD|\uFFFD#12\uFFFD]"}:START_LIST_ITEM:The deletion of the ${"[\uFFFD#9\uFFFD|\uFFFD#11\uFFFD|\uFFFD#13\uFFFD|\uFFFD#15\uFFFD]"}:START_TAG_STRONG:categorization rules ${"[\uFFFD/#9\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#15\uFFFD]"}:CLOSE_TAG_STRONG:${"[\uFFFD/#8\uFFFD|\uFFFD/#10\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_LIST_ITEM:${"\uFFFD/#7\uFFFD"}:CLOSE_UNORDERED_LIST:${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#14\uFFFD\uFFFD/#14\uFFFD]"}:LINE_BREAK: Are you sure you want to import the categories from the ${"[\uFFFD#9\uFFFD|\uFFFD#11\uFFFD|\uFFFD#13\uFFFD|\uFFFD#15\uFFFD]"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#9\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#15\uFFFD]"}:CLOSE_TAG_STRONG: file? `,i=W(i);let o;o=$localize`:@@categories_import.new_modal_confirmation.buttons.cancelâda44efc7b658c318651866454d258bbbe57ff21câ4598124915768290146: Cancel `;let _;return _=$localize`:@@categories_import.new_modal_confirmation.buttons.validateâa493d325b32b9706ab2c5f28cea6cfdb422463deâ1826205021116580807: Import `,[t,i,o,_,[3,"overlayClass"],["flipper-dialog-title",""],["flipper-dialog-content",""],["flipper-dialog-actions",""],["mat-stroked-button","","data-test","cancel categories import",3,"mat-dialog-close"],["mat-raised-button","","color","primary","data-test","validate categories import",3,"mat-dialog-close"]]},template:function(i,o){i&1&&(r(0,"flipper-dialog",4),E(1,5),p(2,0),I(),E(3,6),r(4,"div"),pe(5,1),P(6,"br"),r(7,"ul")(8,"li"),P(9,"strong"),a(),r(10,"li"),P(11,"strong"),a(),r(12,"li"),P(13,"strong"),a()(),P(14,"br")(15,"strong"),se(),a(),I(),E(16,7),r(17,"button",8),p(18,2),a(),r(19,"button",9),p(20,3),a(),I(),a()),i&2&&(m("overlayClass","categories-import-dialog-conf"),l(15),z(o.fileName),k(5),l(2),m("mat-dialog-close",!1),l(2),m("mat-dialog-close",!0))},dependencies:[X,Z,Lo,ke,ze],styles:[".categories-import-dialog-conf .flipper-dialog.loading{pointer-events:none;opacity:.7}"],changeDetection:0})}}return e})()});function dr(e){return"dataTransfer"in e}function ln(e){let n=Array.isArray(e)?e:e.split(",").map(t=>t.trim());return t=>(t.value??[]).every(_=>{let s=_.name.split(".").slice(-1)[0];return s!==void 0&&n.includes(`.${s}`)}
1)?null:{incorrectMimeType:!0}}var sr,cr,mr,an,ge,dt=R(()=>{T();T();_o();Ge();_t();H();Ne();sr=[[["","flipper-file-drop-zone-title",""]],[["","flipper-file-drop-zone-subtitle",""]],[["","flipper-file-drop-zone-hint",""]]],cr=["[flipper-file-drop-zone-title]","[flipper-file-drop-zone-subtitle]","[flipper-file-drop-zone-hint]"],mr=50;an=(()=>{class e{constructor(){this._destroyRef=d(ie),this._dragLeaveTimeout=null,this.filesDraggedOver=Me(!1),this.droppedFiles=lt(),this.dragOver=lt(),this.dragLeave=lt(),this._destroyRef.onDestroy(()=>this._clearTimeout())}_onDragOver(t){t.preventDefault(),t.stopPropagation(),this._clearTimeout(),this.dragOver.emit(),this.filesDraggedOver.set(!0)}_onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.dragLeave.emit(),this._clearTimeout(),this._dragLeaveTimeout=setTimeout(()=>{this.filesDraggedOver.set(!1)},mr)}_onDrop(t){t.preventDefault(),t.stopPropagation(),this._clearTimeout(),this.filesDraggedOver.set(!1);let i=dr(t)?t.dataTransfer?.files:null;i&&this.droppedFiles.emit(i)}_clearTimeout(){this._dragLeaveTimeout!==null&&(clearTimeout(this._dragLeaveTimeout),this._dragLeaveTimeout=null)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=Ee({type:e,selectors:[["","flipperFileDnd",""]],hostAttrs:[1,"flipper-file-dnd"],hostBindings:function(i,o){i&1&&M("dragover",function(s){return o._onDragOver(s)})("dragleave",function(s){return o._onDragLeave(s)})("drop",function(s){return o._onDrop(s)})},outputs:{droppedFiles:"droppedFiles",dragOver:"dragOver",dragLeave:"dragLeave"}})}}return e})(),ge=(()=>{class e{constructor(){this._idGenerator=d(ao),this._fileDnd=d(an,{self:!0}),this._headingId=this._idGenerator.getId("flipper-file-drop-zone-heading"),this._hintId=this._idGenerator.getId("flipper-file-drop-zone-hint"),this.value=ai([]),this.multiple=he(!1,{transform:It}),this.size=he("default"),this.accept=he("",{transform:t=>Array.isArray(t)?t.join(","):t}),this.cancelled=lt(),this._onTouched=()=>{},this._onChange=()=>{},po(this._fileDnd.droppedFiles).pipe(Q()).subscribe(t=>{this._onFilesDropped(t)})}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}writeValue(t){this.value.set(t??[])}onInputSelectionChange(t){let i=t.target,o=i.files;this._onFilesDropped(o),i.value=""}onInputCancelled(){this.cancelled.emit(),this._onTouched()}_onFilesDropped(t){if(!t)return;let i=this.multiple()?[...this.value(),...Array.from(t)]:Array.from(t);this.writeValue(i),this._onChange(i),this._onTouched()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["flipper-file-drop-zone"]],hostAttrs:[1,"flipper-file-drop-zone"],hostVars:4,hostBindings:function(i,o){i&2&&rt("flipper-file-drop-zone--small",o.size()==="small")("flipper-file-drop-zone--files-over",o._fileDnd.filesDraggedOver())},inputs:{value:[1,"value"],multiple:[1,"multiple"],size:[1,"size"],accept:[1,"accept"]},outputs:{value:"valueChange",cancelled:"cancelled"},features:[at([{provide:fo,useExisting:ti(()=>e),multi:!0}]),Bi([{directive:an,outputs:["dragOver","dragOver","dragLeave","dragLeave","droppedFiles","droppedFiles"]}])],ngContentSelectors:cr,decls:11,vars:6,consts:[[1,"flipper-file-drop-zone-container"],["type","file",1,"flipper-drop-zone-input","cdk-visually-hidden",3,"change","cancel","accept","multiple"],[1,"flipper-file-drop-zone-icon-container"],["svgIcon","file-arrow-up"],[1,"flipper-file-drop-zone-heading",3,"id"],["flipperText","h500",1,"flipper-file-drop-zone-title"],["flipperText","body",1,"flipper-file-drop-zone-subtitle"],["flipperText","small",1,"flipper-file-drop-zone-hint",3,"id"]],template:function(i,o){i&1&&($(sr),r(0,"label",0)(1,"input",1),M("change",function(s){return o.onInputSelectionChange(s)})("cancel",function(){return o.onInputCancelled()}),a(),r(2,"div",2),P(3,"mat-icon",3),a(),r(4,"div",4)(5,"div",5),v(6),a(),r(7,"div",6),v(8,1),a()(),r(9,"div",7),v(10,2),a()()),i&2&&(l(),m("accept",o.accept())("multiple",o.multiple()),Ie("aria-labelledby",o._headingId)("aria-describedby",o._hintId),l(3),m("id",o._headingId),l(5),m("id",o._hintId))},dependencies:[ne,j],styles:[`.flipper-file-drop-zone{--flipper-file-drop-zone-min-width: 360px;--flipper-file-drop-zone-min-height: 208px;--flipper-file-drop-zone-icon-size: 56px;--flipper-file-drop-zone-icon-inner-size: var(--flipper-icon-size-xl);--flipper-file-drop-zone-small-min-height: 112px;--flipper-file-drop-zone-background-dashed-primary: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='12' ry='12' stroke='%230061e0' stroke-width='2' stroke-dasharray='3%2c7' stroke-dashoffset='2' stroke-linecap='square'/%3e%3c/svg%3e");--flipper-file-drop-zone-background-dashed-default: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='12' ry='12' stroke='%234c5863' stroke-width='2' stroke-dasharray='3%2c7' stroke-dashoffset='2' stroke-linecap='square'/%3e%3c/svg%3e");display:block}.flipper-file-drop-zone:focus-within .flipper-file-drop-zone-container{outline:none;box-shadow:var(--flipper-focus-outline)}.flipper-file-drop-zone.flipper-file-drop-zone--files-over .flipper-file-drop-zone-container,.flipper-file-drop-zone:hover.flipper-file-drop-zone--files-over .flipper-file-drop-zone-container{--flipper-file-drop-zone-background: var(--flipper-file-drop-zone-background-dashed-primary);background-color:var(--flipper-primary-50)}.flipper-file-drop-zone.flipper-file-drop-zone--files-over .flipper-file-drop-zone-container>.flipper-file-drop-zone-icon-container,.flipper-file-drop-zone:hover.flipper-file-drop-zone--files-over .flipper-file-drop-zone-container>.flipper-file-drop-zone-icon-container{background-color:var(--flipper-primary-100)}.flipper-file-drop-zone.flipper-file-drop-zone--files-over .flipper-file-drop-zone-container>.flipper-file-drop-zone-icon-container>.mat-icon,.flipper-file-drop-zone:hover.flipper-file-drop-zone--files-over .flipper-file-drop-zone-container>.flipper-file-drop-zone-icon-container>.mat-icon{color:var(--flipper-primary-900)}.flipper-file-drop-zone.flipper-file-drop-zone--files-over .flipper-file-drop-zone-subtitle,.flipper-file-drop-zone.flipper-file-drop-zone--files-over .flipper-file-drop-zone-hint{color:var(--flipper-grey-800)}.flipper-file-drop-zone .flipper-file-drop-zone-container{--flipper-file-drop-zone-background: var(--flipper-file-drop-zone-background-dashed-default);box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:var(--flipper-file-drop-zone-min-width);min-height:var(--flipper-file-drop-zone-min-height);height:100%;padding:var(--flipper-spacing-24) var(--flipper-spacing-24) var(--flipper-spacing-32);gap:var(--flipper-spacing-16);border-radius:var(--flipper-radius-lg);background-image:var(--flipper-file-drop-zone-background);background-color:var(--flipper-white)}.flipper-file-drop-zone .flipper-file-drop-zone-container:hover,.flipper-file-drop-zone .flipper-file-drop-zone-container:active{--flipper-file-drop-zone-background: var(--flipper-file-drop-zone-background-dashed-default);cursor:pointer}.flipper-file-drop-zone .flipper-file-drop-zone-container:hover>.flipper-file-drop-zone-icon-container,.flipper-file-drop-zone .flipper-file-drop-zone-container:active>.flipper-file-drop-zone-icon-container{background-color:var(--flipper-grey-200)}.flipper-file-drop-zone .flipper-file-drop-zone-container:hover .flipper-file-drop-zone-subtitle,.flipper-file-drop-zone .flipper-file-drop-zone-container:hover .flipper-file-drop-zone-hint,.flipper-file-drop-zone .flipper-file-drop-zone-container:active .flipper-file-drop-zone-subtitle,.flipper-file-drop-zone .flipper-file-drop-zone-container:active .flipper-file-drop-zone-hint{color:var(--flipper-grey-800)}.flipper-file-drop-zone .flipper-file-drop-zone-container:hover{background-color:var(--flipper-grey-50)}.flipper-file-drop-zone .flipper-file-drop-zone-container:active{background-color:var(--flipper-grey-100)}.flipper-file-drop-zone .flipper-file-drop-zone-icon-container{display:flex;justify-content:center;align-items:center;width:var(--flipper-file-drop-zone-icon-size);height:var(--flipper-file-drop-zone-icon-size);border-radius:var(--flipper-radius-full);background-color:var(--flipper-grey-100)}.flipper-file-drop-zone .flipper-file-drop-zone-icon-container>.mat-icon{height:var(--flipper-file-drop-zone-icon-inner-size);width:var(--flipper-file-drop-zone-icon-inner-size)}.flipper-file-drop-zone .flipper-file-drop-zone-heading{display:flex;flex-direction:column;align-items:center;gap:var(--flipper-spacing-4)}.flipper-file-drop-zone .flipper-file-drop-zone-subtitle,.flipper-file-drop-zone .flipper-file-drop-zone-hint{color:var(--flipper-grey-700)}.flipper-file-drop-zone.flipper-file-drop-zone--small .flipper-file-drop-zone-container{display:grid;grid-template-columns:auto 1fr;gap:var(--flipper-spacing-4) var(--flipper-spacing-16);min-height:var(--flipper-file-drop-zone-small-min-height);padding:var(--flipper-spacing-24);place-items:center start}.flipper-file-drop-zone.flipper-file-drop-zone--small .flipper-file-drop-zone-icon-container{grid-row:span 2}.flipper-file-drop-zone.flipper-file-drop-zone--small .flipper-file-drop-zone-heading{align-items:flex-start;gap:0} 2`],encapsulation:2,changeDetection:0})}}return e})()});var fr,ur,Se,ft=R(()=>{qn();T();
2fr=["*",[["","file-upload-dropzone",""]]],ur=["*","[file-upload-dropzone]"],Se=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-import-container"]],ngContentSelectors:ur,decls:5,vars:0,consts:[["type","vertical"],[1,"dropzone-container"]],template:function(i,o){i&1&&($(fr),r(0,"section"),v(1),a(),P(2,"flipper-divider",0),r(3,"section",1),v(4,1),a())},dependencies:[Oo],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:minMax(450px,auto) auto 1fr;gap:2rem;min-height:230px}"],changeDetection:0})}}return e})()});function gr(e,n){e&1&&P(0,"mat-icon",1),e&2&&m("svgIcon",n)}var Pr,Tr,Cr,Sr,Or,Vt,ui,_n,Ar,pn,sn=R(()=>{T();T();Ne();er();Pr=["content"],Tr=[[["","flipper-attachment-action",""],["","flipperAttachmentAction",""]],"*",[["","flipper-attachment-remove",""],["","flipperAttachmentRemove",""]]],Cr=["[flipper-attachment-action], [flipperAttachmentAction]","*","[flipper-attachment-remove], [flipperAttachmentRemove]"];Sr=["*"],Or=["flipper-attachment-remove",""],Vt=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=Ee({type:e,selectors:[["flipper-attachment-name"],["","flipper-attachment-name",""],["","flipperAttachmentName",""]],hostAttrs:[1,"flipper-attachment-name"]})}}return e})(),ui=(()=>{class e{constructor(){this._titleRef=Yi(Vt,{read:oe,descendants:!0}),this._contentRef=Qi.required("content",{read:oe}),this._computedIcon=Re(()=>this._computeIcon()),this.small=he(!1,{transform:It}),this.icon=he(null)}_computeIcon(){if(this.small())return!1;let t=this.icon();if(t!==null)return t;let{nativeElement:i}=this._titleRef()??this._contentRef(),o=i.textContent?.split(/\s+/)??[],_="";for(let s of o){if(typeof s!="string")continue;let g=s.toLowerCase().trim().match(/\.([a-z]+)$/);if(g){_=g[1].toLowerCase();break}}return this._getIconFromExtension(_)}_getIconFromExtension(t){switch(t){case"csv":return"file-icon-csv";case"doc":case"docx":return"file-icon-doc";case"jpg":case"jpeg":case"png":case"webp":return"file-icon-img";case"pdf":return"file-icon-pdf";case"xls":case"xlsx":return"file-icon-xls";default:return"file-icon-default"}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["flipper-attachment",3,"value",""]],contentQueries:function(i,o,_){i&1&&Hi(_,o._titleRef,Vt,5,oe),i&2&&oi()},viewQuery:function(i,o){i&1&&Ki(o._contentRef,Pr,5,oe),i&2&&oi()},hostAttrs:[1,"flipper-attachment"],hostVars:2,hostBindings:function(i,o){i&2&&rt("flipper-attachment--small",o.small())},inputs:{small:[1,"small"],icon:[1,"icon"]},exportAs:["flipperAttachment"],ngContentSelectors:Cr,decls:6,vars:1,consts:[["content",""],["small","","tall","",1,"flipper-attachment-icon",3,"svgIcon"],[1,"flipper-attachment-content"]],template:function(i,o){if(i&1&&($(Tr),v(0),f(1,gr,1,1,"mat-icon",1),r(2,"div",2,0),v(4,1),a(),v(5,2)),i&2){let _;l(),u((_=o._computedIcon())?1:-1,_)}},dependencies:[ne],styles:[`.flipper-attachment{--flipper-attachment-foreground: var(--flipper-grey-900);--flipper-attachment-foreground-secondary: var(--flipper-grey-700);--flipper-attachment-background: var(--flipper-white);--flipper-attachment-border-radius: var(--flipper-radius-md);--flipper-attachment-border-width: var(--flipper-border-width-thin);--flipper-attachment-border-color: var(--flipper-grey-300);--flipper-attachment-focus-indicator-color: var(--flipper-primary-200);--flipper-attachment-focus-indicator-width: var(--flipper-border-width-medium);--flipper-attachment-focus-indicator-offset: 2px;box-sizing:border-box;position:relative;display:inline-flex;align-items:center;padding:var(--flipper-spacing-8) var(--flipper-spacing-12);border-radius:var(--flipper-attachment-border-radius);box-shadow:inset 0 0 0 var(--flipper-attachment-border-width) var(--flipper-attachment-border-color);background:var(--flipper-attachment-background);transition:background-color .15s ease-in-out,box-shadow .15s ease-in-out,border-color .15s ease-in-out}.flipper-attachment-content{margin-top:0;margin-bottom:0;font-style:normal;font-family:var(--flipper-typography-small-font-family);font-size:var(--flipper-typography-small-font-size);
2font-weight:var(--flipper-typography-small-font-weight);line-height:var(--flipper-typography-small-line-height);letter-spacing:var(--flipper-typography-small-letter-spacing);color:var(--flipper-grey-900);display:flex;flex-direction:column;align-items:flex-start;text-align:left;flex:1 1 0;min-width:0;color:var(--flipper-attachment-foreground);font-weight:var(--flipper-font-weight-semibold)}.flipper-attachment-remove{flex:0 0 auto}.flipper-attachment-description{margin-top:0;margin-bottom:0;font-style:normal;font-family:var(--flipper-typography-small-font-family);font-size:var(--flipper-typography-small-font-size);font-weight:var(--flipper-typography-small-font-weight);line-height:var(--flipper-typography-small-line-height);letter-spacing:var(--flipper-typography-small-letter-spacing);color:var(--flipper-grey-900);color:var(--flipper-attachment-foreground-secondary)}.flipper-attachment-name,.flipper-attachment-description{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;width:100%}.flipper-attachment-remove.flipper-icon-button{z-index:1;margin-left:var(--flipper-spacing-12)} 3`,`.flipper-attachment:not(.flipper-attachment-option) .flipper-attachment-icon{flex:0 0 auto;margin-right:var(--flipper-spacing-8)}.flipper-attachment:not(.flipper-attachment-option):not(.flipper-attachment--small) .flipper-attachment-content{margin-top:0;margin-bottom:0;font-style:normal;font-family:var(--flipper-typography-body-font-family);font-size:var(--flipper-typography-body-font-size);font-weight:var(--flipper-typography-body-font-weight);line-height:var(--flipper-typography-body-line-height);letter-spacing:var(--flipper-typography-body-letter-spacing);color:var(--flipper-grey-900);line-height:var(--flipper-font-line-height-sm);font-weight:var(--flipper-font-weight-medium)}.flipper-attachment:not(.flipper-attachment-option) .flipper-attachment-action{cursor:pointer;border-radius:var(--flipper-attachment-border-radius);position:absolute;inset:0;padding:0;margin:0;appearance:none;border:none;background:none}.flipper-attachment:not(.flipper-attachment-option) .flipper-attachment-action.flipper-attachment-action--disabled{cursor:not-allowed}.flipper-attachment:not(.flipper-attachment-option) .flipper-attachment-action:focus-visible{outline:var(--flipper-attachment-focus-indicator-width) solid var(--flipper-attachment-focus-indicator-color);outline-offset:var(--flipper-attachment-focus-indicator-offset);z-index:1}.flipper-attachment:not(.flipper-attachment-option):has(.flipper-attachment-action:not(.flipper-attachment-action--disabled):hover){--flipper-attachment-background: var(--flipper-grey-50)} 4`],encapsulation:2,changeDetection:0})}}return e})(),_n=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=Ee({type:e,selectors:[["flipper-attachment-description"],["","flipper-attachment-description",""],["","flipperAttachmentDescription",""]],hostAttrs:[1,"flipper-attachment-description"]})}}return e})(),Ar=new zi("FlipperAttachmentOptionComponent"),pn=(()=>{class e extends $o{constructor(){super(...arguments),this._attachment=d(ui,{optional:!0}),this._attachmentOption=d(Ar,{optional:!0}),this.variant=Me("primary").asReadonly(),this.icon=Me("trash").asReadonly(),this.small=Re(()=>this._attachmentOption?!0:this._attachment?.small()??!1)}static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=Ui(e)))(o||e)}})()}static{this.\u0275cmp=S({type:e,selectors:[["button","flipper-attachment-remove",""],["button","flipperAttachmentRemove",""]],hostAttrs:[1,"flipper-attachment-remove"],exportAs:["flipperAttachmentRemove"],features:[Vi],attrs:Or,ngContentSelectors:Sr,decls:3,vars:3,consts:[[1,"flipper-icon-button-icon",3,"svgIcon"],[1,"cdk-visually-hidden"]],template:function(i,o){i&1&&($(),P(0,"mat-icon",0),r(1,"div",1),v(2),a()),i&2&&(rt("flipper-animate-spin",o.loading()),m("svgIcon",o.loading()?"spinner":o.icon()))},dependencies:[ne],encapsulation:2,changeDetection:0})}}return e})()});var cn,mn=R(()=>{T();cn=(()=>{class e{transform(t,...i){let o=t.split(".");if(o.length>1)switch(o.pop()){case"pdf":return"file-icon-pdf";
4case"jpeg":case"jpg":case"png":return"file-icon-default";case"xls":case"xlsx":case"csv":return"file-icon-xls";case"doc":case"docx":return"file-icon-doc";default:return"file-icon-default"}return"file-icon-default"}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275pipe=Et({name:"fileIcon",type:e,pure:!0})}}return e})()});var dn,fn=R(()=>{T();dn=(()=>{class e{transform(t,...i){return t<1024?`${t}o`:t<1024*1024?`${(t/1024).toFixed(0)}Ko`:t<1024*1024*1024?`${(t/1024/1024).toFixed(1)}Mo`:`${(t/1024/1024/1024).toFixed(1)}Go`}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275pipe=Et({name:"fileSize",type:e,pure:!0})}}return e})()});var Oe,ut=R(()=>{sn();bo();T();B();Ne();mn();fn();T();B();Oe=(()=>{class e{constructor(){this.clearFile=new ye,this.validate=new ye}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-file-to-import"]],inputs:{file:"file",loading:"loading",dataAnalytic:"dataAnalytic"},outputs:{clearFile:"clearFile",validate:"validate"},decls:10,vars:10,consts:()=>{let t;return t=$localize`:@@page_import_excel.import_fichier_excel.buttonâ0c01d313a1bf21db4a37522342d881c8d3c64601â4495586954287015278: Import 5`,[t,[3,"icon"],["flipperAttachmentRemove","","aria-label","Remove document",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click","flipperLoadingSpinner"]]},template:function(i,o){i&1&&(r(0,"flipper-attachment",1),U(1,"fileIcon"),r(2,"flipper-attachment-name"),b(3),a(),r(4,"flipper-attachment-description"),b(5),U(6,"fileSize"),a(),r(7,"button",2),M("click",function(){return o.clearFile.emit()}),a()(),r(8,"button",3),M("click",function(){return o.validate.emit()}),p(9,0),a()),i&2&&(m("icon",q(1,6,o.file.name)),l(3),ce(o.file.name),l(2),ce(q(6,8,o.file.size)),l(2),m("disabled",o.loading),l(),m("flipperLoadingSpinner",o.loading),Ie("data-analytic",o.dataAnalytic))},dependencies:[X,Z,xe,zt,ui,Vt,_n,pn,dn,cn],styles:["[_nghost-%COMP%]{flex:1;display:flex;align-items:center;justify-content:center;align-self:start;gap:1rem}"],changeDetection:0})}}return e})()});function Ir(e,n){if(e&1&&(r(0,"flipper-file-drop-zone",15)(1,"span",16),p(2,4),a(),r(3,"div",17)(4,"span"),p(5,5),a(),r(6,"a",18),M("click",function(i){return i.stopPropagation()}),p(7,6),a()(),r(8,"span",19),p(9,7),a()()),e&2){let t=c();m("formControl",t.fileInputControl)("accept",t.acceptedFileFormats),l(6),m("href",t.templateLink,At)}}function Rr(e,n){if(e&1){let t=y();r(0,"app-file-to-import",21),M("clearFile",function(){h(t);let o=c(2);return N(o.clearFile())})("validate",function(){h(t);let o=c(2);return N(o.importCategoriesWithLoader())}),a()}if(e&2){let t=n.$implicit,i=c(2);m("file",t)("loading",i.isLoading)}}function hr(e,n){if(e&1&&le(0,Rr,1,2,"app-file-to-import",20,ae),e&2){let t=c();_e(t.fileInputControl.value)}}var Er,un,Pn=R(()=>{$t();T();_t();H();B();Ce();xt();li();G();rn();dt();G();ft();ut();pt();Ko();rr();Ge();T();xt();H();Er=["*"];un=(()=>{class e{constructor(){this.destroyRef=d(ie),this.localeConfig=d(yt),this.toasterService=d(J),this.categorieService=d(Vo),this.matDialog=d(wt),this.router=d(no),this.selectedMode=mi.ToutesLesCategories,this.ImportCategoriesMode=mi,this.isLoading=!1,this.dialogRef=null,this.fileInputControl=new me([]),this.acceptedFileFormats=[".xls",".xlsx",".csv"]}get templateLink(){return this.localeConfig.urlsImport.arborescence}importCategoriesWithLoader(){let t=this.fileInputControl.value?.length>0?this.fileInputControl.value[0]:null;t&&(this.isLoading=!0,this.dialogRef!==null&&this.dialogRef.close(),this.dialogRef=this.matDialog.open(nn,{data:{fileName:t.name}}),this.dialogRef.afterClosed().pipe(St(1),Q(this.destroyRef),De(i=>i===!0),te(()=>this.categorieService.uploadCategories(t,this.selectedMode).pipe(Q(this.destroyRef),w(i=>{this.clearFile(),this.manageResult(i)}))),K(()=>this.isLoading=!1)).subscribe())}manageResult(t){let i=this.router.createUrlTree($e.categories.baseLink).toString();this.toasterService.success({title:$localize`:@@categories_import.toaster_redirection.title_1:Category import complete`,message:$localize`:@@categories_import.toaster_redirection.message:Category import has been successfully completed.`,config:{link:{description:$localize`:@@categories_import.toaster_redirection.description:Go to the Categories page.`,route:i}}})}clearFile(){this.fileInputControl.reset([])}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-categories-import"]],ngContentSelectors:Er,decls:16,vars:5,consts:()=>{let t;t=$localize`:@@page_import_excel.categories.select_category.labelâ38569f257e5cfcd6da9d00407d7f006d686c484câ4348736189841571614:Type of category`;let i;i=$localize`:@@page_import_excel.categories_import.cashing_optionâfcfd035ba54c46efb9558ef60fa66ad2d2c1601bâ4909645504395840581:Cash inflow`;let o;o=$localize`:@@page_import_excel.categories_import.disbursements_optionâ9525c93eabc240495c5a2feddd201ed2e951d985â5984808115045273087: Cash outflow `;let _;_=$localize`:@@page_import_excel.categories_import.cashing_disbur
5sements_optionâ9ce94a656f58d1aa1f5d9e7686e4a526b8dabacfâ7305312491338510676: Cash inflow and cash outflow `;let s;s=$localize`:@@page_import_excel.file_drop_zone.titleâ9fbe8a9c4b787e9cc6760fd43aae0e430838e698â718249813093322951:Select file`;let g;g=$localize`:@@page_import_excel.file_drop_zone.subtitleâ2091526050917bfc90387636c1f24e8f4f08c04fâ5549141512302760683:or drop it here`;let C;C=$localize`:@@page_import_excel.categories.download_linkâcd00d7a49f2ef91fb0fa608f3aea82878f867b28â8671794833785544870:Download template`;let O;return O=$localize`:@@page_import_excel.categories.supported_formatâ28242f3eff62ac2f13b0e8eda81cf0163edfa902â4227676848120339441: Supported formats: xlsx, xls or csv `,[t,i,o,_,s,g,C,O,[1,"flex","gap-16"],["flipperText","h500",1,"leading-md"],[1,"categories-types",3,"ngModelChange","ngModel"],[1,"option-wrapper"],[1,"mr-32",3,"value"],[3,"value"],["file-upload-dropzone",""],[3,"formControl","accept"],["flipper-file-drop-zone-title",""],["flipper-file-drop-zone-subtitle",""],["target","_blank",3,"click","href"],["flipper-file-drop-zone-hint",""],["dataAnalytic","forecast-validate-import-button",3,"file","loading"],["dataAnalytic","forecast-validate-import-button",3,"clearFile","validate","file","loading"]]},template:function(i,o){i&1&&($(),r(0,"app-import-container"),v(1),r(2,"div",8)(3,"label",9),p(4,0),a(),r(5,"mat-radio-group",10),Le("ngModelChange",function(s){return be(o.selectedMode,s)||(o.selectedMode=s),s}),r(6,"div",11)(7,"mat-radio-button",12),p(8,1),a(),r(9,"mat-radio-button",12),p(10,2),a(),r(11,"mat-radio-button",13),p(12,3),a()()()(),r(13,"section",14),f(14,Ir,10,3,"flipper-file-drop-zone",15)(15,hr,2,0),a()()),i&2&&(l(5),ve("ngModel",o.selectedMode),l(2),m("value",o.ImportCategoriesMode.Encaissements),l(2),m("value",o.ImportCategoriesMode.Decaissements),l(2),m("value",o.ImportCategoriesMode.ToutesLesCategories),l(3),u(o.fileInputControl.value.length===0?14:15))},dependencies:[Lt,vt,bt,ue,Y,de,X,Pe,fe,Se,Oe,ge,j],styles:["[flipper-file-drop-zone-subtitle][_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.option-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}"]})}}return e})()});var Pi,Tn=R(()=>{T();B();Ce();ir();_o();st();T();Pi=(()=>{class e{constructor(){this.data=d(Te)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-modal-import-failure-component"]],decls:10,vars:4,consts:()=>{let t;return t=$localize`:@@objectives_import.modal_import_fail.confirm_buttonâ3f911874aed36ee415f04d452fda9f37e2c88996â8765440956355361541: Ok `,[t,["flipper-dialog-title",""],["flipper-dialog-content",""],["type","warn","data-test","import-failure-message"],["flipper-banner-title","",3,"innerHTML"],["flipper-dialog-actions",""],["mat-raised-button","","color","warn","mat-dialog-close","","cdkFocusInitial","","data-test","import-failure-close"]]},template:function(i,o){i&1&&(r(0,"flipper-dialog"),E(1,1),b(2),I(),E(3,2),r(4,"flipper-banner",3),P(5,"span",4),U(6,"sanitizeHtml"),a(),I(),E(7,5),r(8,"button",6),p(9,0),a(),I(),a()),i&2&&(l(2),ce(o.data.title),l(3),m("innerHTML",q(6,2,o.data.message),ji))},dependencies:[ke,zo,ko,Z,ze,lo],encapsulation:2,changeDetection:0})}}return e})()});function Fr(e,n){if(e&1){let t=y();r(0,"flipper-file-drop-zone",10)(1,"span",11),p(2,2),a(),r(3,"div",12)(4,"span"),p(5,3),a(),r(6,"a",13),M("click",function(o){return h(t),c().exporterModel(),N(o.preventDefault())}),p(7,4),a()(),r(8,"span",14),p(9,5),a()()}if(e&2){let t=c();m("formControl",t.fileInputControl)("accept",t.acceptedFileFormats)}}function Dr(e,n){if(e&1){let t=y();r(0,"app-file-to-import",16),M("clearFile",function(){h(t);let o=c(2);return N(o.clearFile())})("validate",function(){h(t);let o=c(2);return N(o.importForecast())}),a()}if(e&2){let t=n.$implicit,i=c(2);m("file",t)("loading",i.isLoading)}}function yr(e,n){if(e&1&&le(0,Dr,1,2,"app-file-to-import",15,ae),e&2){let t=c();_e(t.fileInputControl.value)}}var Nr,Kt,Cn,gn=R(()=>{$t();T();H();B();pi();G();G();ft();ut();Tn();si();st();pt();dt();T();pi();H();Nr=["*"];Kt=(function(e){return e[e.Success=0]="Success",e[e.PartialSuccess=1]="PartialSuccess",e[e.Failure=2]="Failure",e})(Kt||{}),Cn=(()=>{class e{constructor(){this.objectifService=d(ho),this.toasterService=d(J),this.cashFlowPageRoutingService=d(we),this.flipperDialogAskService=d(Xe),this.flipperDialogService=d(xo),this.checkboxResetForecasts=!1,this.fileInputControl=new me([]),this.acceptedFileFormats=[".xls",".xlsx"]}
5importForecast(){this.isLoading=!0,this.toasterService.success({title:$localize`:@@objectives_import.staring_import.toaster_message:Forecast import started.`}),this.objectifService.uploadForecastFile(this.fileInputControl.value[0],this.checkboxResetForecasts).pipe(K(()=>this.isLoading=!1),w(()=>this.clearFile())).subscribe(t=>this.processResponse(t.Result))}exporterModel(){this.objectifService.exportModeleObjectifs().subscribe({error:()=>{this.toasterService.warn({title:$localize`:@@objectives_import.template_export.toaster_message_error:The template cannot be exported.`})}})}processResponse(t){switch(t.Status){case Kt.Success:this.showSuccess(t.CreatedObjectives);break;case Kt.PartialSuccess:this.showPartialSuccess(t);break;case Kt.Failure:t.Errors.length?this.showFailedDialogWithErrors(t.Errors):this.showNoForecastFailedDialog();break;default:console.error(`result status '${t.Status}' not implemented`)}}showSuccess(t){this.flipperDialogAskService.confirm({title:$localize`:@@objectives_import.modal_import_success.title:Import successful`,message:$localize`:@@objectives_import.modal_import_success.content:<p>Forecast import is completed: <strong>${t} forecast values have been imported</strong>.</p><p>Do you want to go to the Cash Flow Plan?</p>`,type:"success",accept:$localize`:@@objectives_import.modal_import_success.confirm_button:See my forecast`,cancel:$localize`:@@objectives_import.modal_import_success.cancel_button:Stay on the import`}).subscribe(i=>{i&&this.cashFlowPageRoutingService.goToCashflowForecast()})}showPartialSuccess(t){let i="";for(let o of t.Errors)i+=`<li> ${o} </li>`;this.flipperDialogAskService.confirm({title:$localize`:@@objectives_import.modal_import_partially_success.title:Import partially successful `,message:$localize`:@@objectives_import.modal_import_partially_success.content:<span>Forecast import is completed: <strong>${t.CreatedObjectives} forecast values out of ${t.ProcessedObjectives}</strong> have been successfully imported.</span><p>Some errors have occurred:</p><ul>${i}</ul><p>Do you want to go to the Cash Flow Plan?</p>`,accept:$localize`:@@objectives_import.modal_import_partially_success.confirm_button:See my forecast`,cancel:$localize`:@@objectives_import.modal_import_partially_success.cancel_button:Stay on the import`,type:"information"}).subscribe(o=>{o&&this.cashFlowPageRoutingService.goToCashflowForecast()})}showFailedDialogWithErrors(t){let i="",o=1;if(t.length>1)for(let _ of t)i+=`<p> ${o}. ${_} </p>`,o=o+1;t.length===1&&(i+=`<p> ${t[0]} </p>`),this.flipperDialogService.open(Pi,"regular",{data:{title:$localize`:@@objectives_import.modal_import_fail.title:Import failed`,message:`<div>${i}</div>`}})}showNoForecastFailedDialog(){this.flipperDialogService.open(Pi,"regular",{data:{title:$localize`:@@objectives_import.modal_import_fail.title:Import failed`,message:$localize`:@@objectives_import.modal_import_fail.no_previsions.content:One of the tabs in the file does not contain a forecast value. Please check your file or remove that tab and start over.`}})}clearFile(){this.fileInputControl.reset([])}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-forecast-import"]],ngContentSelectors:Nr,decls:10,vars:2,consts:()=>{let t;t=$localize`:@@page_import_excel.objectifs_import.reset_forecast_checkbox_titleâbc4e346200c3f9a258ad64c2d82cb8c6ed00074eâ2282392013336466925: Reset all future forecasts for imported categories `;let i;i=$localize`:@@page_import_excel.objectifs_import.reset_forecast_checkbox_descriptionâ65f29349e951f3c10784b5e98037b4eb454e0dc9â7266871086694700273: If you do not wish to reset the forecast for certain categories, please remove them from the file to be imported `;let o;o=$localize`:@@page_import_excel.file_drop_zone.titleâ9fbe8a9c4b787e9cc6760fd43aae0e430838e698â718249813093322951:Select file`;let _;_=$localize`:@@page_import_excel.file_drop_zone.subtitleâ2091526050917bfc90387636c1f24e8f4f08c04fâ5549141512302760683:or drop it here`;let s;s=$localize`:@@page_import_excel.forecast.download_linkâcd00d7a49f2ef91fb0fa608f3aea82878f867b28â8671794833785544870:Download template`;let g;return g=$localize`:@@page_import_excel.forcast.supported_formatâa734695f76595e0a05b700bd4f64770faf1b7a83â7736343045463825419: Formats pris en charge : xlsx ou xls`,[t,i,o,_,s,g,["data-analytic","import-reset-forecast-upon-import-checkbox",1,"reset-future-forecast",3,"ngModelChange","ngModel"],["title",""],["description",""],["file-upload-dropzone",""],[3,"formControl","accept"],["flipper-file-drop-zone-title",""],["flipper-file-drop-zone-subtitle",""],[3,"click"],["flipper-file-drop-zone-hint",""],["dataAnalytic","forecast-validate-import-button",3,"file","loading"],["dataAnalytic","forecast-validate-import-button",3,"clearFile","validate","file","loading"]]},template:function(i,o){i&1&&($(),r(0,"app-import-container"),v(1),r(2,"mat-checkbox",6),Le("ngModelChange",function(s){return be(o.checkboxResetForecasts,s)||(o.checkboxResetForecasts=s),s}),r(3,"p",7),p(4,0),a(),r(5,"p",8),p(6,1),a()(),r(7,"section",9),f(8,Fr,10,2,"flipper-file-drop-zone",10)(9,yr,2,0),a()()),i&2&&(l(2),ve("ngModel",o.checkboxResetForecasts),l(6),u(o.fileInputControl.value.length===0?8:9))},dependencies:[Dt,Eo,ue,Y,de,X,Pe,fe,Se,Oe,ge],styles:["[flipper-file-drop-zone-subtitle][_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}mat-checkbox[_ngcontent-%COMP%]{max-width:450px}"]})}}return e})()});function br(e,n){if(e&1){let t=y();r(0,"flipper-file-drop-zone",5)(1,"span",6),p(2,0),a(),r(3,"div",7)(4,"span"),p(5,1),a(),r(6,"a",8),M("click",function(o){return h(t),c().exporterModel(),N(o.stopPropagation())}),p(7,2),a()(),r(8,"span",9),p(9,3),a()()}if(e&2){let t=c();m("formControl",t.fileInputControl)("accept",t.acceptedFileFormats)}}function Lr(e,n){if(e&1){let t=y();r(0,"app-file-to-import",11),M("clearFile",function(){h(t);let o=c(2);return N(o.clearFile())})("validate",function(){h(t);let o=c(2);return N(o.importKpisNewVersion())}),a()}if(e&2){let t=n.$implicit,i=c(2);m("file",t)("loading",i.isLoading)}}function xr(e,n){if(e&1&&le(0,Lr,1,2,"app-file-to-import",10,ae),e&2){let t=c();_e(t.fileInputControl.value)}}var vr,Sn,On=R(()=>{$t();T();B();di();G();G();pi();H();si();ft();ut();pt();dt();T();H();vr=["*"];Sn=(()=>{class e{constructor(){this.kpiImportService=d(Bt),this.toasterService=d(J),this.flipperDialogService=d(Xe),this.cashFlowPageRoutingService=d(we),this.isLoading=!1,this.fileInputControl=new me([]),this.acceptedFileFormats=[".xls",".xlsx"],this.startUploadToaster=null}startLoader(){this.startUploadToaster?(this.startUploadToaster.toastRef.componentInstance.title=$localize`:@@kpis_import.staring_import.toaster_message:The import of Manual KPIs has started.`,J.changeToastType(this.startUploadToaster,"loader")):this.startUploadToaster=this.toasterService.loader({title:$localize`:@@kpis_import.staring_import.toaster_message:The import of Manual KPIs has started.`})}importKpisNewVersion(){this.isLoading=!0,this.startLoader(),this.kpiImportService.uploadKpiFile(this.fileInputControl.value[0]).pipe(K(()=>this.isLoading=!1),Gi(t=>(this.startUploadToaster.toastRef.componentInstance.title=$localize`:@@http_service.generic_toaster.title:An error occurred`,t.error.message&&(this.startUploadToaster.toastRef.componentInstance.message=`${t.error.message}`),J.changeToastType(this.startUploadToaster,"warn"),yi(()=>t.message)))).subscribe(()=>{this.toasterService.clear(this.startUploadToaster.toastId),this.startUploadToaster=null,this.clearFile(),this.showSuccess()})}exporterModel(){this.kpiImportService.exportKpiTemplate().subscribe({error:()=>{this.toasterService.warn({title:$localize`:@@objectives_import.template_export.toaster_message_error:The template cannot be exported.`})}})}showSuccess(){this.flipperDialogService.confirm({title:$localize`:@@kpis_import.modal_import_success.title:Import successful`,message:$localize`:@@kpis_import.modal_import_success.content:<p>Import of manual KPIs is complete: <strong>key performance indicators have been modified</strong>.</p><p>Do you want to navigate to the Cash Flow Plan?</p>`,cancel:$localize`:@@kpis_import.modal_import_success.cancel_button:Stay on the import`,accept:$localize`:@@kpis_import.modal_import_success.confirm_button:See my forecast`,type:"information"}).subscribe(t=>{t&&this.cashFlowPageRoutingService.goToCashflowForecast()})}clearFile(){this.fileInputControl.reset([])}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-kpis-import"]],ngContentSelectors:vr,decls:5,vars:1,consts:()=>{let t;t=$localize`:@@page_import_excel.file_drop_zone.titleâa0f95d3369ce9e94d00193d2c4d0d9093469e4aaâ456222209776491102: Select file`;let i;i=$localize`:@@page_import_excel.file_drop_zone.subtitleâ2091526050917bfc90387636c1f24e8f4f08c04fâ5549141512302760683:or drop it here`;let o;o=$localize`:@@page_import_excel.kpi.download_linkâ0b23111c0aa83a6823c09a0ef2ff3c5c593c57bcâ5911364130144139616: Download template `;let _;return _=$localize`:@@page_import_excel.kpi.supported_formatâbe32d774e214f774c373b5de4500c11d42ca63f3â6207047196503989359: Supported formats: xlsx or xls `,[t,i,o,_,["file-upload-dropzone",""],[3,"formControl","accept"],["flipper-file-drop-zone-title",""],["flipper-file-drop-zone-subtitle",""],["data-analytic","Click -
5KPI - download KPI template (entity)",3,"click"],["flipper-file-drop-zone-hint",""],["dataAnalytic","Click - KPI - import manual KPI (entity)",3,"file","loading"],["dataAnalytic","Click - KPI - import manual KPI (entity)",3,"clearFile","validate","file","loading"]]},template:function(i,o){i&1&&($(),r(0,"app-import-container"),v(1),r(2,"section",4),f(3,br,10,2,"flipper-file-drop-zone",5)(4,xr,2,0),a()()),i&2&&(l(3),u(o.fileInputControl.value.length===0?3:4))},dependencies:[X,Dt,Pe,Y,fe,Se,Oe,ge],styles:["[flipper-file-drop-zone-subtitle][_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}"]})}}return e})()});function $r(e,n){if(e&1&&(r(0,"a",20),M("click",function(i){return i.stopPropagation()}),p(1,7),a()),e&2){let t=c(2);m("href",t.templateLink,At)}}function wr(e,n){if(e&1&&(r(0,"flipper-file-drop-zone",15)(1,"span",16),p(2,4),a(),r(3,"div",17)(4,"span"),p(5,5),a(),f(6,$r,2,1,"a",18),a(),r(7,"span",19),p(8,6),a()()),e&2){let t=c();m("formControl",t.fileInputControl)("accept",t.acceptedFileFormats),l(6),u(t.importingCashinflowOrCashoutflow?6:-1)}}function zr(e,n){if(e&1){let t=y();r(0,"app-file-to-import",22),M("clearFile",function(){h(t);let o=c(2);return N(o.clearFile())})("validate",function(){h(t);let o=c(2);return N(o.uploadFile())}),a()}if(e&2){let t=n.$implicit,i=c(2);m("file",t)("loading",i.isLoading)}}function kr(e,n){if(e&1&&le(0,zr,1,2,"app-file-to-import",21,ae),e&2){let t=c();_e(t.fileInputControl.value)}}var Gr,An,Mn=R(()=>{si();dt();$t();T();_t();H();xt();li();pt();G();Xo();ci();ut();ft();Ge();T();xt();H();Gr=["*"];An=(()=>{class e{constructor(){this.destroyRef=d(ie),this.route=d(oo),this.localeConfig=d(yt),this.flipperDialogService=d(Xe),this.cashFlowPageRoutingService=d(we),this.toasterService=d(J),this.importService=d(kt),this.acceptedFileFormats=[".xls",".xlsx"],this.selectedImportType=ee.AllCashflows,this.TransactionImportType=ee,this.isLoading=!1,this.fileInputControl=new me([],ln(this.acceptedFileFormats))}get templateLink(){return this.localeConfig.urlsImport.transactions}get importingCashinflowOrCashoutflow(){return this.selectedImportType!==ee.AllCashflows}ngOnInit(){this.route.params.pipe(Q(this.destroyRef)).subscribe(t=>{t.estEncaissement!=="null"&&(t.estEncaissement==="true"?this.selectedImportType=ee.OnlyCashInflows:t.estEncaissement==="false"&&(this.selectedImportType=ee.OnlyCashOutflows))}),this.fileInputControl.statusChanges.pipe(Q(this.destroyRef),De(()=>this.fileInputControl.getError("incorrectMimeType"))).subscribe(()=>{this.clearFile(),this.toasterService.info({title:$localize`:@@page_import_excel.transactions.unsupported_file_type_toast:Unsupported file format`})})}uploadFile(){let t=this.fileInputControl.value?.length>0?this.fileInputControl.value[0]:null;t&&(t.size>15728640?this.toasterService.warn({title:$localize`:@@upload_excel.error_file.too_big:Your selected file is too large (>15Mo).`}):!t.name||t.name.length===0?this.toasterService.warn({title:$localize`:@@upload_excel.error_file.no_name:The file has no title.`}):(this.isLoading=!0,this.importService.uploadTransactionFile(t,this.selectedImportType).pipe(K(()=>this.isLoading=!1)).subscribe(o=>{this.clearFile(),this.manageResultImportRapide(o)})))}manageResultImportRapide(t){this.flipperDialogService.confirm({title:$localize`:@@upload_excel.modal_simple_import_success.title:Finalising the import`,message:$localize`:@@upload_excel.modal_simple_import_success.content:The file has been successfully imported`,cancel:$localize`:@@upload_excel.modal_simple_import_success.cancel_button:See imported transactions`,accept:$localize`:@@upload_excel.modal_simple_import_success.confirm_button:See my cash flow plan`,type:"information"}).subscribe(i=>{i?this.cashFlowPageRoutingService.goToCashflowForecast():this.cashFlowPageRoutingService.goToDetailImport(t.Result)})}clearFile(){this.fileInputControl.reset([])}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-transactions-import"]],ngContentSelectors:Gr,decls:16,vars:5,consts:()=>{let t;t=$localize`:@@import_excel_module.send_file.titleâ868c232678c0f64eacd319219c8a80c63341081bâ763056958843380748:Transaction type`;let i;i=$localize`:@@page_import_excel.box_summary_est_encaissement.cashing_text_twoâfcfd035ba54c46efb9558ef60fa66ad2d2c1601bâ4909645504395840581:Cash inflow`;let o;o=$localize`:@@page_import_excel.box_summary_est_encaissement.disbursements_text_twoâ9525c93eabc240495c5a2feddd201ed2e951d985â5984808115045273087: Cash outflow `;let _;_=$localize`:@@page_import_excel.box_summary_est_encaissement.disbursements_chasing_textâ220db02242a32200be3846adca3f6e5371590a3fâ782625807792474628: Cash inflow & Cash outflow `;let s;s=$localize`:@@page_import_excel.file_drop_zone.titleâ9fbe8a9c4b787e9cc6760fd43aae0e430838e698â718249813093322951:Select file`;let g;g=$localize`:@@page_import_excel.file_drop_zone.subtitleâ2091526050917bfc90387636c1f24e8f4f08c04fâ5549141512302760683:or drop it here`;let C;C=$localize`:@@page_import_excel.transactions.supported_formatâbe32d774e214f774c373b5de4500c11d42ca63f3â6207047196503989359: Supported formats: xlsx or xls `;let O;return O=$localize`:@@page_import_excel.transactions.download_linkâcd00d7a49f2ef91fb0fa608f3aea82878f867b28â8671794833785544870:Download template`,[t,i,o,_,s,g,C,O,[1,"flex","gap-16"],["flipperText","h500",1,"leading-md"],[1,"categories-types",3,"ngModelChange","ngModel"],[1,"option-wrapper"],[1,"mr-32",3,"value"],[3,"value"],["file-upload-dropzone",""],[3,"formControl","accept"],["flipper-file-drop-zone-title",""],["flipper-file-drop-zone-subtitle",""],["target","_blank",3,"href"],["flipper-file-drop-zone-hint",""],["target","_blank",3,"click","href"],[3,"file","loading"],[3,"clearFile","validate","file","loading"]]},template:function(i,o){i&1&&($(),r(0,"app-import-container"),v(1),r(2,"div",8)(3,"label",9),p(4,0),a(),r(5,"mat-radio-group",10),Le("ngModelChange",function(s){return be(o.selectedImportType,s)||(o.selectedImportType=s),s}),r(6,"div",11)(7,"mat-radio-button",12),p(8,1),a(),r(9,"mat-radio-button",12),p(10,2),a(),r(11,"mat-radio-button",13),p(12,3),a()()()(),r(13,"section",14),f(14,wr,9,3,"flipper-file-drop-zone",15)(15,kr,2,0),a()()),i&2&&(l(5),ve("ngModel",o.selectedImportType),l(2),m("value",o.TransactionImportType.OnlyCashInflows),l(2),m("value",o.TransactionImportType.OnlyCashOutflows),l(2),m("value",o.TransactionImportType.AllCashflows),l(3),u(o.fileInputControl.value.length===0?14:15))},dependencies:[Se,Lt,vt,bt,ue,Y,de,Pe,fe,Oe,ge,j],styles:["[flipper-file-drop-zone-subtitle][_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.option-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}"]})}}return e})()});var Ti,En=R(()=>{Ti=(function(e){return e[e.Classic=0]="Classic",e[e.Custom=1]="Custom",e})(Ti||{})});function Xr(e,n,t,i){let o=window&&!!window.document&&window.document.documentElement,_=o&&n?window:t;if(e&&(_=e&&o&&typeof e=="string"?Ur(e,t.nativeElement,i):e,!_))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return _}function Ur(e,n,t){return(t?window.document:n).querySelector(e)}function Ci(e){return e&&!e.firstChange}function jr(){return typeof window<"u"}function Hr(e,n,t){return!!(e&&n||!t&&n)}function Kr({windowElement:e,axis:n}){return Wr({axis:n,isWindow:qr(e)},e)}function Wr(e,n){let t=e.isWindow||n&&!n.nativeElement?n:n.nativeElement;return gt(Ct({},e),{container:t})}function qr(e){return["Window","global"].some(t=>Object.prototype.toString.call(e).includes(t))}function Ai(e,n){return e?n.document.documentElement:null}function In(e,n){let t=Zr(n);return n.isWindow?Qr(t,e,n):Yr(t,e,n)}function Qr(e,n,t){let{axis:i,container:o,isWindow:_}=t,{offsetHeightKey:s,clientHeightKey:g}=Rn(i),C=e+Nn(Ai(_,o),i,_),O=hn(n.nativeElement,_,s,g),A=Jr(n.nativeElement,i,_)+O;return{height:e,scrolled:C,totalToScroll:A,isWindow:_}}function Yr(e,n,t){let{axis:i,container:o}=t,_=o[i.scrollTopKey()],s=o[i.scrollHeightKey()];return{height:e,scrolled:_,totalToScroll:s,isWindow:!1}}function Rn(e){return{offsetHeightKey:e.offsetHeightKey(),clientHeightKey:e.clientHeightKey()}}function Zr({container:e,isWindow:n,axis:t}){let{offsetHeightKey:i,clientHeightKey:o}=Rn(t);return hn(e,n,i,o)}function hn(e,n,t,i){if(isNaN(e[t])){let o=Ai(n,e);return o?o[i]:0}else return e[t]}function Jr(e,n,t){let i=n.topKey();if(e.getBoundingClientRect)return e.getBoundingClientRect()[i]+Nn(e,n,t)}function Nn(e,n,t){let i=n.pageYOffsetKey(),o=n.scrollTopKey(),_=n.offsetTopKey();return isNaN(window.pageYOffset)?Ai(t,e)[o]:e.ownerDocument?e.ownerDocument.defaultView[i]:e[_]}function ea(e,n={down:0,up:0},t){let i,o;if(e.totalToScroll<=0)return!1;let _=e.isWindow?e.scrolled:e.height+e.scrolled;if(t)i=(e.totalToScroll-_)/e.totalToScroll,o=(n?.down?n.down:0)/10;else{let g=e.scrolled+(e.totalToScroll-_);i=e.scrolled/g,o=(n?.up?n.up:0)/10}return i<=o}function ta(e,n){return e<n.scrolled}function ia(e,n,t){let i=ta(e,n);return{fire:ea(n,t,i),scrollDown:i}}function oa(e){let{scrollContainer:n,scrollWindow:t,element:i,fromRoot:o}=e,_=Kr({axis:new gi(!e.horizontal),windowElement:Xr(n,t,i,o)}),s=new Si({totalToScroll:In(i,_).totalToScroll}),g={container:_.container,throttle:e.throttle},C={up:e.upDistance,down:e.downDistance};return na(g).pipe(bi(()=>Di(In(i,_))),ei(O=>ra(s.lastScrollPosition,O,C)),w(({stats:O})=>s.updateScroll(O.scrolled,O.totalToScroll)),De(({fire:O,scrollDown:A,stats:{totalToScroll:Ae}})=>Hr(e.alwaysCallback,O,s.isTriggeredScroll(Ae,A))),w(({scrollDown:O,stats:{totalToScroll:A}})=>{s.updateTriggeredFlag(A,O)}),ei(aa))}function na(e){let n=Li(e.container,"scroll");return e.throttle&&(n=n.pipe(wi(e.throttle,void 0,{leading:!0,trailing:!0}))),n}function ra(e,n,t){let{scrollDown:i,fire:o}=ia(e,n,t);return{scrollDown:i,fire:o,stats:n}}function aa(e){let{scrollDown:n,stats:{scrolled:t}}=e;return{type:n?Oi.DOWN:Oi.UP,payload:{currentScrollPosition:t}}}function la(e){return e.observed}var Br,Vr,gi,Si,Oi,Wt,qt,Pt=R(()=>{T();T();G();Bn();Br={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},Vr={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"},gi=class{constructor(n=!0){this.vertical=n,this.propsMap=n?Br:Vr}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}};Si=class{constructor(n){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},Object.assign(this,n)}updateScrollPosition(n){return this.lastScrollPosition=n}updateTotalToScroll(n){this.lastTotalToScroll!==n&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=n)}updateScroll(n,t){this.updateScrollPosition(n),this.updateTotalToScroll(t)}updateTriggeredFlag(n,t){t?this.triggered.down=n:this.triggered.up=n}isTriggeredScroll(n,t){return t?this.triggered.down===n:this.triggered.up===n}};Oi={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};Wt=(()=>{class e{constructor(t,i){this.element=t,this.zone=i,this.scrolled=new ye,this.scrolledUp=new ye,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:t,infiniteScrollDisabled:i,infiniteScrollDistance:o}){let _=Ci(t),s=Ci(i),g=Ci(o),C=!s&&!this.infiniteScrollDisabled||s&&!i.currentValue||g;(_||s||g)&&(this.destroyScroller(),C&&this.setup())}ngOnDestroy(){this.destroyScroller()}setup(){jr()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=oa({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollC
5ontainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(t=>this.handleOnScroll(t))})}handleOnScroll({type:t,payload:i}){let o=t===Oi.DOWN?this.scrolled:this.scrolledUp;la(o)&&this.zone.run(()=>o.emit(i))}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)(ii(oe),ii(ki))}}static{this.\u0275dir=Ee({type:e,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[Xi]})}}return e})();qt=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Mt({type:e})}static{this.\u0275inj=Ot({})}}return e})()});var Qe,Mi=R(()=>{Qe=class{constructor(n){if(this.take=n,this.skip=0,n<=0)throw Error("Take cannot be lesser or equal than zero.")}get currentPage(){return{skip:this.skip,take:this.take}}nextPage(){this.skip+=this.take}reset(){this.skip=0}}});var _a,Qt,Dn=R(()=>{G();Mi();_a=50,Qt=class{constructor(n){this.summary=n,this.errorsChanged=new Jt,this.nextErrorsRequested=new Jt,this._errors=[],this.isLoading=!1,this.pagination=new Qe(_a)}get isErrorsFullyLoaded(){return this._errors.length===this.summary.Total}get errors(){return this._errors}loadNextErrors(){this.isLoading||this.isErrorsFullyLoaded||(this.isLoading=!0,this.nextErrorsRequested.next(this.pagination.currentPage),this.pagination.nextPage())}addErrors(n){this._errors.push(...n),this.isLoading=!1,this.errorsChanged.next()}destroy(){this.errorsChanged.complete(),this.nextErrorsRequested.complete()}}});var Yt,Ei=R(()=>{T();Io();T();Yt=(()=>{class e{constructor(){this.http=d(Gt),this.BASE_API_URL="/api/CustomImport"}getErrorReportSummary(t){return this.http.get(`${this.BASE_API_URL}/GetCustomImportErrorReportSummary`,{importId:t})}getErrors(t,i,o){return this.http.get(`${this.BASE_API_URL}/GetCustomImportErrors`,{importId:t,skip:i,take:o})}getCustomImportToDeleteSummaryData(t){return this.http.get(`${this.BASE_API_URL}/GetCustomImportToDeleteSummaryData`,{importId:t})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})()});function pa(e,n){e&1&&(r(0,"mat-header-cell")(1,"span"),p(2,2),a()())}function sa(e,n){if(e&1&&(r(0,"mat-cell"),b(1),a()),e&2){let t=n.$implicit;l(),V(" ",t.Name," ")}}function ca(e,n){e&1&&(r(0,"mat-header-cell")(1,"span"),p(2,3),a()())}function ma(e,n){if(e&1&&(r(0,"mat-cell"),b(1),a()),e&2){let t=n.$implicit;l(),V(" ",t.Date," ")}}
5function da(e,n){e&1&&(r(0,"mat-header-cell")(1,"span"),p(2,4),a()())}function fa(e,n){if(e&1&&(r(0,"mat-cell"),b(1),a()),e&2){let t=n.$implicit;l(),V(" ",t.Amount," ")}}function ua(e,n){e&1&&P(0,"mat-header-cell")}function Pa(e,n){if(e&1&&(r(0,"mat-cell")(1,"span",20),b(2),a()()),e&2){let t=n.$implicit,i=c(3);l(2),V(" ",i.translateErrorCode(t.ErrorCode)," ")}}function Ta(e,n){e&1&&P(0,"mat-header-row")}function Ca(e,n){e&1&&P(0,"mat-row")}function ga(e,n){if(e&1){let t=y();r(0,"div",8)(1,"div",9),M("scrolled",function(){h(t);let o=c(2);return N(o.nextErrors())}),r(2,"div",10)(3,"mat-table",11),E(4,12),F(5,pa,3,0,"mat-header-cell",13)(6,sa,2,1,"mat-cell",14),I(),E(7,15),F(8,ca,3,0,"mat-header-cell",13)(9,ma,2,1,"mat-cell",14),I(),E(10,16),F(11,da,3,0,"mat-header-cell",13)(12,fa,2,1,"mat-cell",14),I(),E(13,17),F(14,ua,1,0,"mat-header-cell",13)(15,Pa,3,1,"mat-cell",14),I(),F(16,Ta,1,0,"mat-header-row",18)(17,Ca,1,0,"mat-row",19),a()()()()}if(e&2){let t=c(2);l(),m("alwaysCallback",!0)("fromRoot",!0)("immediateCheck",!0)("infiniteScrollContainer","#errors-scroll-wrapper")("infiniteScrollDisabled",t.isFullyLoaded)("infiniteScrollThrottle",100)("scrollWindow",!1),l(2),m("dataSource",t.dataSource),l(13),m("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",!0),l(),m("matRowDefColumns",t.displayedColumns)}}function Sa(e,n){if(e&1&&(r(0,"flipper-dialog",5),E(1,6),p(2,0),I(),E(3,7),r(4,"p"),p(5,1),a(),f(6,ga,18,11,"div",8),I(),a()),e&2){let t=c();l(2),z(t.totalErrors),k(2),l(3),z(t.totalErrors)(t.filename)(t.totalErrors),k(5),l(),u(t.dataSource.data.length?6:-1)}}var vn,bn=R(()=>{st();T();Ce();mt();_i();Pt();G();Dn();Ei();_r();T();mt();Pt();vn=(()=>{class e{constructor(){this.customImportDataService=d(Yt),this.importResultErrorCodeService=d(tn),this.data=d(Te),this.displayedColumns=["name","date","amount","error"],this.dataSource=new ct}get filename(){return this.customImportModel.summary.Filename}get totalErrors(){return this.customImportModel.summary.Total}get isLoaded(){return this.customImportModel?.summary!==void 0}get isFullyLoaded(){return this.customImportModel?.isErrorsFullyLoaded}ngOnInit(){this.customImportDataService.getErrorReportSummary(this.data.importId).subscribe(t=>this.init(t))}ngOnDestroy(){this.customImportModel?.destroy()}nextErrors(){this.isFullyLoaded||this.customImportModel.loadNextErrors()}translateErrorCode(t){return this.importResultErrorCodeService.getError(t.toString())??$localize`:@@modal_import_error_result.error.code.default:An error occurred during transaction import.`}init(t){this.customImportModel=new Qt(t),this.customImportModel.errorsChanged.subscribe(()=>{this.dataSource=new ct(this.customImportModel.errors)}),this.customImportModel.nextErrorsRequested.pipe(te(i=>this.customImportDataService.getErrors(this.data.importId,i.skip,i.take))).subscribe(i=>this.customImportModel.addErrors(i)),this.nextErrors()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-modal-import-errors-list"]],decls:1,vars:1,consts:()=>{let t;t=$localize`:â2b576486a29cb28a38816d53836755f94372eb27â1245122268483091417:{VAR_PLURAL, plural, =1 {Opération non importée} other {Opérations non importées}}`,t=W(t,{VAR_PLURAL:"\uFFFD0\uFFFD"});let i;i=$localize`:@@modal_import_errors_list.titleâ422cc59b219f6c03c0473176952c29404a9913c3â6341505328525914831: ${t}:ICU: `;let o;o=$localize`:â3909fb68d04812960eea473af72d5b78057b8cd9â6295287610078397737:{VAR_PLURAL, plural, =1 {{START_TAG_STRONG}1 opération{CLOSE_TAG_STRONG} 6 du fichier 7 {START_TAG_STRONG}{INTERPOLATION}{CLOSE_TAG_STRONG} 8 présente des erreurs et n'a pas pu être importée. 9 } other {{START_TAG_STRONG}{INTERPOLATION_1} opérations{CLOSE_TAG_STRONG} 10 du fichier 11 {START_TAG_STRONG}{INTERPOLATION}{CLOSE_TAG_STRONG} 12 présentent des erreurs et n'ont pas pu être importées. 13 }}`,o=W(o,{CLOSE_TAG_STRONG:"</strong>",INTERPOLATION:"\uFFFD1\uFFFD",INTERPOLATION_1:"\uFFFD2\uFFFD",START_TAG_STRONG:"<strong>",VAR_PLURAL:"\uFFFD0\uFFFD"});let _;_=$localize`:@@modal_import_errors_list.info.error_message_descâfd7c3cf88079d68deb9c2164b3e355f2c0288de5â489651278415643276: ${o}:ICU: `;let s;s=$localize`:@@import_excel.import_errors_list.table_header_nameâ20371277706eedf7fd8a3f51633ca5d801cd4fc2â8778616811237742446: Name `;let g;g=$localize`:@@import_excel.import_errors_list.table_header_categoryâ0f6865e675bcf6574467ddf8f71191579323c81bâ1216445956577529579: Date `;let C;return C=$localize`:@@import_excel.import_errors_list.table_header_dateâbb60d279d1b544ae80de6c89297fd454f93844e8â5514856318489056549: Amount `,[i,_,s,g,C,["size","large"],["title",""],["content",""],["id","errors-scroll-wrapper"],["infiniteScroll","",3,"scrolled","alwaysCallback","fromRoot","
13immediateCheck","infiniteScrollContainer","infiniteScrollDisabled","infiniteScrollThrottle","scrollWindow"],[1,"table-container"],[3,"dataSource"],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","date"],["matColumnDef","amount"],["matColumnDef","error"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],[4,"matRowDef","matRowDefColumns"],[1,"text-warn-700"]]},template:function(i,o){i&1&&f(0,Sa,7,5,"flipper-dialog",5),i&2&&u(o.isLoaded?0:-1)},dependencies:[jt,Ue,Be,He,Ve,je,Ke,Xt,Ut,We,qe,qt,Wt,ke,Nt],styles:["[_nghost-%COMP%] .mat-column-amount{text-align:right!important;max-width:100px}[_nghost-%COMP%] .mat-column-error{max-width:150px}[_nghost-%COMP%] .mat-column-date{max-width:100px}[_nghost-%COMP%] #errors-scroll-wrapper{overflow-y:scroll;height:55vh}[_nghost-%COMP%] #errors-scroll-wrapper .mat-column-error{max-width:250px}"]})}}return e})()});var Ln,xn=R(()=>{T();Io();T();Ln=(()=>{class e{constructor(){this.http=d(Gt),this.BASE_API_URL="/api/CustomImport"}delete(t){return this.http.delete(`${this.BASE_API_URL}/DeleteCustomImport`,{importId:t})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})()});function Aa(e,n){e&1&&(r(0,"span"),p(1,6),a())}function Ma(e,n){e&1&&(r(0,"span"),p(1,7),a())}function Ea(e,n){e&1&&(r(0,"span"),p(1,8),a())}function Ia(e,n){e&1&&(r(0,"span"),p(1,9),a())}function Ra(e,n){e&1&&(pe(0,5,1),P(1,"span"),se())}function ha(e,n){e&1&&(r(0,"mat-header-cell")(1,"span"),p(2,10),a()())}function Na(e,n){if(e&1&&(r(0,"mat-cell")(1,"div",30),b(2),a(),r(3,"div",31)(4,"span",32),b(5),a()()()),e&2){let t=n.$implicit;l(2),ce(t.Name),l(3),ce(t.BankAccount)}}function Fa(e,n){e&1&&(r(0,"mat-header-cell")(1,"span"),p(2,11),a()())}function Da(e,n){if(e&1&&(r(0,"mat-cell"),b(1),a()),e&2){let t=n.$implicit;l(),V(" ",t.Category," ")}}function ya(e,n){e&1&&(r(0,"mat-header-cell")(1,"span"),p(2,12),a()())}function va(e,n){if(e&1&&(r(0,"mat-cell"),b(1),U(2,"agcDate"),a()),e&2){let t=n.$implicit;l(),V(" ",ri(2,1,t.Date,"fullDateWithShortMonth")," ")}}function ba(e,n){e&1&&(r(0,"mat-header-cell")(1,"span"),p(2,13),a()())}function La(e,n){if(e&1&&(r(0,"mat-cell",33),P(1,"app-transaction-amount",34),a()),e&2){let t=n.$implicit;l(),m("amount",t.Amount)("isIgnored",t.IsIgnored)("isCashInFlow",t.IsCashInflow)}}function xa(e,n){e&1&&P(0,"mat-header-row")}function Ga(e,n){e&1&&P(0,"mat-row")}function $a(e,n){if(e&1&&(r(0,"div",19)(1,"mat-table",20),E(2,21),F(3,ha,3,0,"mat-header-cell",22)(4,Na,6,2,"mat-cell",23),I(),E(5,24),F(6,Fa,3,0,"mat-header-cell",22)(7,Da,2,1,"mat-cell",23),I(),E(8,25),F(9,ya,3,0,"mat-header-cell",22)(10,va,3,4,"mat-cell",23),I(),E(11,26),F(12,ba,3,0,"mat-header-cell",22)(13,La,2,3,"mat-cell",27),I(),F(14,xa,1,0,"mat-header-row",28)(15,Ga,1,0,"mat-row",29),a()()),e&2){let t=c(2);l(),m("dataSource",t.dataSource),l(13),m("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",!0),l(),m("matRowDefColumns",t.displayedColumns)}}function wa(e,n){if(e&1&&(r(0,"mat-dialog-content")(1,"p")(2,"span"),pe(3,1),P(4,"strong"),se(),a(),P(5,"br"),f(6,Aa,2,0,"span"),a(),r(7,"div",18)(8,"p"),pe(9,2),P(10,"strong"),se(),a(),r(11,"p")(12,"span"),p(13,3),a(),r(14,"strong"),f(15,Ma,2,0,"span")(16,Ea,2,0,"span")(17,Ia,2,0,"span"),a()(),r(18,"p"),pe(19,4),P(20,"strong"),U(21,"agcDate"),se(),a()(),r(22,"p"),pe(23,5),f(24,Ra,2,0,"span"),P(25,"strong"),se(),a(),f(26,$a,16,4,"div",19),a()),e&2){let t,i=c();l(4),z(i.import==null?null:i.import.Filename),k(3),l(2),u(i.dataSource.data.length>0?6:-1),l(4),z(i.import.TransactionsCount),k(9),l(5),u((t=i.import.ImportType)===i.TransactionImportType.AllCashflows?15:t===i.TransactionImportType.OnlyCashInflows?16:t===i.TransactionImportType.OnlyCashOutflows?17:-1),l(6),z(ri(21,7,i.import.Date,"fullDate")),k(19),l(3),u(i.dataSource.data.length>0?24:-1),l(2),u(i.dataSource.data.length>0?26:-1)}}function za(e,n){if(e&1){let t=y();r(0,"mat-dialog-actions")(1,"button",35),p(2,14),a(),r(3,"button",36),M("click",function(){h(t);let o=c();return N(o.delete())}),p(4,15),a()()}if(e&2){let t=c();l(3),m("flipperLoadingSpinner",t.isLoading)}}var Gn,$n=R(()=>{bo();T();B();Ce();mt();ci();G();xn();Ei();To();go();ar();Ge();T();Ce();mt();B();mo();Gn=(()=>{class e{constructor(){this.customImportQueriesService=d(Yt),this.customImportCommandsService=d(Ln),this.data=d(Te),this.dialogRef=d(No),this.displayedColumns=["name","category","date","cash-amount"],this.dataSource=new ct,this.isLoading=!1}get TransactionImportType(){return ee}ngOnInit(){this.dataSubscription=this.customImportQueriesService.getCustomImportToDeleteSummaryData(this.data.importId).subscribe(t=>{this.import=t,this.dataSource.data=t.Transactions})}ngOnDestroy(){this.dataSubscription.unsubscribe()}delete(){this.isLoading=!0,this.customImportCommandsService.delete(this.import.ImportId).pipe(K(()=>this.isLoading=!1)).subscribe(()=>this.dialogRef.close(!0))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-modal-delete-custom-import-component"]],decls:5,vars:2,consts:()=>{let t;t=$localize`:@@modal-delete-custom-import.title.delete-importâedf3419b4330a96340c896a3192d86277f9ef419â7925809932605168015: Delete the import `;let i;
13i=$localize`:@@modal-delete-custom-import.message.line1â7269e6781db399d39b934b192258c62b3c71a13fâ2401795597794426876:L'import ${"\uFFFD#4\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_STRONG: ne sera plus disponible dans Agicap.`;let o;o=$localize`:@@modal-delete-custom-import.message.line3âe0aa172f4ef2c670ee00cc53bbc0f02eef39ea9aâ2143408467949608450: Number of transactions: ${"\uFFFD#10\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_STRONG:`;let _;_=$localize`:@@modal-delete-custom-import.message.line4â0aa002297d6f544b20a16e94770545fcbf5a8324â7577310384833887135:Import type: `;let s;s=$localize`:@@modal-delete-custom-import.message.line5â3e0cddbdda3881778126bb50a0c1f6f3e8041253â328103666075963830: Import date: ${"\uFFFD#20\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_STRONG:`;let g;g=$localize`:@@modal-delete-custom-import.message.line6âe7f4f07a82c4b178c0fdc481dc363712a928777dâ7333402357043935907:${"\uFFFD*24:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SPAN:Here is an excerpt of the transactions that will be deleted. ${"\uFFFD/#1:1\uFFFD"}:CLOSE_TAG_SPAN:${"\uFFFD/*24:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD#25\uFFFD"}:START_TAG_STRONG:This action cannot be undone.${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_STRONG:`;let C;C=$localize`:@@modal-delete-custom-import.message.line2âfec2c24fdda23df1512676d84358cca197f60731â6030106249655019851:All related transactions will be deleted.`;let O;O=$localize`:@@recents_imports.tab_line.cash_inflow_and_outflow_import_typeâ8cf26d1b5b29979a7bf8a76fce2d7fcc95af4bbfâ1400956269191933912:Cash inflow & Cash outflow`;let A;A=$localize`:@@recents_imports.tab_line.cash_inflow_import_typeâfcfd035ba54c46efb9558ef60fa66ad2d2c1601bâ4909645504395840581:Cash inflow`;let Ae;Ae=$localize`:@@recents_imports.tab_line.cash_outflow_import_typeâ1be07a39c5ecf1b6e7501c76d4f361fc929f0114â3151386910553576903:Cash outflow`;let Ye;Ye=$localize`:@@modal-delete-custom-import.transactions-list.title.table_header_nameâ20371277706eedf7fd8a3f51633ca5d801cd4fc2â8778616811237742446: Name `;let Ze;Ze=$localize`:@@modal-delete-custom-import.transactions-list.table_header_categoryâa5af6340df79c70f88c0c08d5c23568a9eed0bfaâ5186038954367142316: Category `;let Je;Je=$localize`:@@modal-delete-custom-import.transactions-list.table_header_dateâ0f6865e675bcf6574467ddf8f71191579323c81bâ1216445956577529579: Date `;let et;et=$localize`:@@modal-delete-custom-import.transactions-list.table_header_amountâbb534992a0d2e09602511a5dcbe813741652efb4â690902571489128501: Amount (incl. tax) `;let tt;tt=$localize`:@@modal-delete-custom-import.actions.cancelâd7b35c384aecd25a516200d6921836374613dfe7â2159130950882492111:Cancel`;let it;return it=$localize`:@@modal-delete-custom-import.actions.deleteâffffe2f2e793844cd907354c36336b5396403d9bâ12976998209141682: Delete the import `,[t,i,o,_,s,g,C,O,A,Ae,Ye,Ze,Je,et,tt,it,[1,"modal-delete-container"],["flipperText","h700","mat-dialog-title","",1,"text-grey-900"],[1,"summary"],[1,"table-container"],[3,"dataSource"],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","category"],["matColumnDef","date"],["matColumnDef","cash-amount"],["class","amount-cell",4,"matCellDef"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],[4,"matRowDef","matRowDefColumns"],["flipperOverflowTooltip",""],[1,"labels"],[1,"label"],[1,"amount-cell"],[1,"amount-cell",3,"amount","isIgnored","isCashInFlow"],["mat-dialog-close","","mat-stroked-button",""],["color","warn","mat-raised-button","",3,"click","flipperLoadingSpinner"]]},template:function(i,o){i&1&&(r(0,"div",16)(1,"h1",17),p(2,0),a(),f(3,wa,27,10,"mat-dialog-content"),f(4,za,5,1,"mat-dialog-actions"),a()),i&2&&(l(3),u(o.import?3:-1),l(),u(o.import?4:-1))},dependencies:[vo,ze,Fo,yo,Do,ht,jt,Ue,Be,He,Ve,je,Ke,Xt,Ut,We,qe,X,Z,Jo,zt,Ft,j,Rt],styles:[".mat-column-name.cdk-column-name[_ngcontent-%COMP%]{flex-basis:50%;flex-direction:column;align-items:flex-start}div.modal-delete-container[_ngcontent-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:table}.button-row[_ngcontent-%COMP%]{display:table-cell;width:490px}.button-row[_ngcontent-%COMP%] .mat-button-base[_ngcontent-%COMP%]{margin:8px 8px 8px 0}[_nghost-%COMP%] mat-dialog-actions[_ngcontent-%COMP%]{width:100%;margin:1rem 0 0!important;padding:0!important}.amount-cell[_ngcontent-%COMP%]{text-align:right}"]})}}return e})()});var ka,Ii,wn=R(()=>{T();Jn();G();Xo();Mi();T();ka={imports:[],pageSize:0,isLoading:!1,isFullyLoaded:!1},Ii=(()=>{class e extends Go{constructor(){super(ka),this.importService=d(kt),this.mergeImports=this.updater((t,i)=>gt(Ct({},t),{imports:[...t.imports,...i]})),this.imports$=this.select(t=>t.imports),this.isLoading$=this.select(t=>t.isLoading),this.isFullyLoaded$=this.select(t=>t.isFullyLoaded),this.setPageSize=this.effect(t=>t.pipe(w(i=>{this.pagination=new Qe(i),this.patchState({pageSize:i})}))),this.loadImports=this.effect(t=>t.pipe(w(()=>this.patchState({isLoading:!0})),te(()=>
13(this.pagination.reset(),this.importService.getAllImportsExcel(this.pagination.currentPage).pipe(w(i=>{this.patchState({isLoading:!1,isFullyLoaded:i.length===0,imports:i})})))))),this.loadNextPage=this.effect(t=>t.pipe(te(()=>this.get().isFullyLoaded?Fi:(this.get().isLoading||(this.patchState({isLoading:!0}),this.pagination.nextPage()),this.importService.getAllImportsExcel(this.pagination.currentPage).pipe(w(i=>{this.patchState({isLoading:!1}),i.length===0?this.patchState({isFullyLoaded:!0}):this.mergeImports(i)}))))))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=re({token:e,factory:e.\u0275fac})}}return e})()});var Tt,Ri=R(()=>{Tt=e=>{let t=e.CreationDate+36e5;return!e.IsFinished&&t<new Date().getTime()}});function Ua(e,n){e&1&&(r(0,"div",2),P(1,"mat-icon",4),r(2,"span"),p(3,0),a()())}function ja(e,n){e&1&&(r(0,"div",3),P(1,"mat-icon",5),r(2,"span"),p(3,1),a()())}var Ba,zn,kn=R(()=>{T();_t();G();G();Ri();Ne();T();Ne();Ba=600*1e3,zn=(()=>{class e{constructor(){this.destroyRef=d(ie),this.isImportUnusuallyLong=!1}ngOnInit(){this.import.IsFinished||(xi(Ba).pipe(Q(this.destroyRef),$i(()=>this.import.IsFinished==!1)).subscribe(()=>{this.isImportUnusuallyLong=Tt(this.import)}),this.isImportUnusuallyLong=Tt(this.import))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-import-status-label"]],inputs:{import:"import"},decls:2,vars:2,consts:()=>{let t;t=$localize`:@@expected_page.custom_import.import_in_progressâ92fdc7f8bb857e868f7babaa4a6ab866b5fa7c22â5908128370284899614:Importing...`;let i;return i=$localize`:@@expected_page.custom_import.import_unusually_longâ6a690d6d195a27a119ff8a43901925c2629c54a6â7414782232900655452:The import is abnormally long. You can delete it.`,[t,i,[1,"import-in-progress","import-subtext"],[1,"import-unsually-long","import-subtext"],["svgIcon","spinner","color","primary",1,"waiting","flipper-animate-spin"],["svgIcon","alert-triangle"]]},template:function(i,o){i&1&&(f(0,Ua,4,0,"div",2),f(1,ja,4,0,"div",3)),i&2&&(u(!o.import.IsFinished&&!o.isImportUnusuallyLong?0:-1),l(),u(o.isImportUnusuallyLong?1:-1))},dependencies:[xe,ne],styles:[".waiting[_ngcontent-%COMP%]{width:32px;height:32px}.import-in-progress[_ngcontent-%COMP%]{color:var(--flipper-primary-700)}.import-unsually-long[_ngcontent-%COMP%]{color:var(--flipper-grey-700)}.import-subtext[_ngcontent-%COMP%]{font-size:.815rem;display:flex;align-items:center;gap:.5rem}.import-in-progress-label[_ngcontent-%COMP%]{color:var(--flipper-grey-700)}"]})}}return e})()});function Ka(e,n){e&1&&(r(0,"flipper-header-cell"),p(1,1),a())}function Wa(e,n){if(e&1&&(r(0,"flipper-tag",33),p(1,3),a()),e&2){let t=c(2).$implicit,i=c(3);m("matTooltip",Wi(i.notImportedTooltip(t))),l(),z(i.notImported(t))(i.notImported(t)),k(1)}}function qa(e,n){if(e&1){let t=y();r(0,"flipper-tag",36),M("click",function(){h(t);let o=c(2).$implicit,_=c(3);return N(_.openErrorsModal(o.Id))}),p(1,4),a()}if(e&2){let t=c(2).$implicit;l(),z(t.NumberOfErrors)(t.NumberOfErrors),k(1)}}function Qa(e,n){if(e&1&&(r(0,"flipper-tag",35),p(1,5),a()),e&2){let t=c(2).$implicit;l(),z(t.NumberOfRemovedTransactions)(t.NumberOfRemovedTransactions),k(1)}}function Ya(e,n){if(e&1&&(r(0,"div",30)(1,"button",32),p(2,2),a(),f(3,Wa,2,4,"flipper-tag",33),f(4,qa,2,2,"flipper-tag",34),f(5,Qa,2,2,"flipper-tag",35),a()),e&2){let t=c().$implicit,i=c(3);l(),m("disabled",i.isLinkToTransactionsDisabled(t))("queryParams",ni(8,Ha,t.Id))("routerLink",i.getTransactionsListUrl(t.IsExpected)),l(),z(t.NumberOfImportedTransactions)(t.NumberOfImportedTransactions),k(2),l(),u(i.notImported(t)?3:-1),l(),u(t.NumberOfErrors?4:-1),l(),u(t.NumberOfRemovedTransactions?5:-1)}}function Za(e,n){if(e&1&&(r(0,"flipper-text-cell")(1,"span",28),b(2),a(),E(3,29),f(4,Ya,6,10,"div",30),P(5,"app-import-status-label",31),I(),a()),e&2){let t=n.$implicit,i=c(3);l(),m("ngClass",ni(4,Va,!t.isFinished)),l(),V(" ",t.Filename," "),l(2),u(t.ImportType===i.ImportType.Custom&&t.IsFinished?4:-1),l(),m("import",t)}}function Ja(e,n){e&1&&(r(0,"flipper-header-cell"),p(1,6),a())}function el(e,n){e&1&&(r(0,"span"),p(1,7),a())}function tl(e,n){e&1&&(r(0,"span"),p(1,8),a())}function il(e,n){e&1&&(r(0,"span"),p(1,9),a())}function ol(e,n){e&1&&(r(0,"span"),p(1,10),a())}function nl(e,n){e&1&&(r(0,"span"),p(1,11),a())}function rl(e,n){if(e&1&&(b(0," / "),f(1,ol,2,0,"span"),f(2,nl,2,0,"span")),e&2){let t=c().$implicit,i=c(3);l(),u(i.isImportPayee(t)?1:-1),l(),u(i.isImportEngagee(t)?2:-1)}}function al(e,n){if(e&1&&(r(0,"flipper-text-cell"),E(1,37),f(2,el,2,0,"span")(3,tl,2,0,"span")(4,il,2,0,"span"),I(),f(5,rl,3,2),a()),e&2){let t,i=n.$implicit,o=c(3);l(2),u((t=i.Type)===o.TransactionImportType.AllCashflows?2:t===o.TransactionImportType.OnlyCashInflows?3:t===o.TransactionImportType.OnlyCashOutflows?4:-1),l(3),u(o.isImportPayee(i)||o.isImportEngagee(i)?5:-1)}}function ll(e,n){e&1&&(r(0,"flipper-header-cell"),p(1,12),a())}function _l(e,n){if(e&1&&(r(0,"flipper-text-cell",38),b(1),U(2,"agcD
13ate"),a()),e&2){let t=n.$implicit;l(),V(" ",q(2,1,t.CreationDate)," ")}}function pl(e,n){e&1&&P(0,"flipper-header-cell")}function sl(e,n){if(e&1&&(r(0,"button",39),P(1,"mat-icon",40),a()),e&2){let t=c().$implicit,i=c(3);m("routerLink",i.links.import.details(t.Id))}}function cl(e,n){if(e&1){let t=y();r(0,"button",42),M("click",function(){h(t);let o=c(2).$implicit,_=c(3);return N(_.deleteImportModal(o.Id))}),P(1,"mat-icon",43),a()}}function ml(e,n){if(e&1&&f(0,cl,2,0,"button",41),e&2){let t=c().$implicit,i=c(3);u(i.canBeDeleted(t)?0:-1)}}function dl(e,n){if(e&1&&(r(0,"flipper-actions-cell"),f(1,sl,2,1,"button",39)(2,ml,1,1),a()),e&2){let t=n.$implicit,i=c(3);l(),u(i.canBeDeleted(t)&&t.ImportType===i.ImportType.Classic?1:2)}}function fl(e,n){e&1&&P(0,"mat-header-row")}function ul(e,n){if(e&1&&P(0,"mat-row"),e&2){let t=n.$implicit;Ie("data-test","Imported file "+t.Filename)}}function Pl(e,n){e&1&&P(0,"app-loading-data")}function Tl(e,n){if(e&1){let t=y();r(0,"div",13)(1,"div",14)(2,"h3",15),p(3,0),a(),r(4,"div",16)(5,"div",17),U(6,"async"),M("scrolled",function(){h(t);let o=c(2);return N(o.nextImports())}),r(7,"mat-table",18),E(8,19),F(9,Ka,2,0,"flipper-header-cell",20)(10,Za,6,6,"flipper-text-cell",21),I(),E(11,22),F(12,Ja,2,0,"flipper-header-cell",20)(13,al,6,2,"flipper-text-cell",21),I(),E(14,23),F(15,ll,2,0,"flipper-header-cell",20)(16,_l,3,3,"flipper-text-cell",24),I(),E(17,25),F(18,pl,1,0,"flipper-header-cell",20)(19,dl,3,1,"flipper-actions-cell",21),I(),F(20,fl,1,0,"mat-header-row",26)(21,ul,1,1,"mat-row",27),a(),f(22,Pl,1,0,"app-loading-data"),U(23,"async"),a()()()()}if(e&2){let t=c(),i=c();l(5),m("alwaysCallback",!0)("fromRoot",!0)("immediateCheck",!0)("infiniteScrollContainer",i.scrollableParent)("infiniteScrollDisabled",q(6,11,i.recentsImportsStore.isFullyLoaded$))("infiniteScrollThrottle",i.throttle)("scrollWindow",!1),l(2),m("dataSource",t),l(13),m("matHeaderRowDef",i.displayedColumns),l(),m("matRowDefColumns",i.displayedColumns),l(),u(q(23,13,i.recentsImportsStore.isLoading$)?22:-1)}}function Cl(e,n){e&1&&f(0,Tl,24,15,"div",13),e&2&&u(n.length>0?0:-1)}var Va,Ha,Xn,Un=R(()=>{Hn();T();Ce();G();En();bn();ci();$n();wn();nr();Ri();to();Pt();Zo();To();B();_i();li();tr();Ne();kn();go();pt();Ge();T();Pt();Zo();mt();B();Ne();_i();mo();Va=e=>({"import-in-progress-label":e}),Ha=e=>({importId:e});Xn=(()=>{class e{constructor(){this.dialog=d(wt),this.expectedCustomImportService=d(jo),this.paidCustomImportService=d(Bo),this.cdkScrollable=d(uo),this.elementRef=d(oe),this.recentsImportsStore=d(Ii),this.pageSize=30,this.throttle=500,this.displayedColumns=["name","type","date","actions"]}get links(){return $e}get TransactionImportType(){return ee}get ImportType(){return Ti}getTransactionsListUrl(t){return t?$e.expectedTransactionsList.list:$e.paidTransactionsList.list}isImportPayee(t){return!t.IsExpected}isImportEngagee(t){return t.IsExpected}isLinkToTransactionsDisabled(t){return!t.NumberOfImportedTransactions}ngOnInit(){this.imports$=this.recentsImportsStore.imports$,this.recentsImportsStore.setPageSize(this.pageSize),vi([this.expectedCustomImportService.importInProgress$,this.paidCustomImportService.importInProgress$]).subscribe(()=>{this.recentsImportsStore.loadImports()})}openErrorsModal(t){this.dialog.open(vn,{data:{importId:t}})}deleteImportModal(t){this.deleteSummaryDialogRef=this.dialog.open(Gn,{panelClass:"default-theme",minWidth:"59rem",data:{importId:t}}),this.deleteSummaryDialogRef.afterClosed().subscribe(i=>Ni(this,null,function*(){i&&this.recentsImportsStore.loadImports()}))}nextImports(){this.recentsImportsStore.loadNextPage()}notImported(t){return t.AlreadyImported+t.AlreadyReconciled}notImportedTooltip(t){let i="";t.AlreadyImported===1?i=`${t.AlreadyImported} ${$localize`:@@recents_imports.tab_line.not_imported.tooltip_already_imported:already existing transaction`}`:t.AlreadyImported>1&&(i=`${t.AlreadyImported} ${$localize`:@@recents_imports.tab_line.not_imported.tooltip_already_imported_plural:already exist`}`);let o="";return t.AlreadyReconciled===1?o=`${t.AlreadyReconciled} ${$localize`:@@recents_imports.tab_line.not_imported.tooltip_already_reconciled:transaction already reconciled outside of Agicap`}`:t.AlreadyReconciled>1&&(o=`${t.AlreadyReconciled}
13 ${$localize`:@@recents_imports.tab_line.not_imported.tooltip_already_reconciled_plural:transactions already reconciled outside of Agicap`}`),[i,o].filter(_=>_!=="").join(", ")}canBeDeleted(t){return t.IsFinished||Tt(t)}get scrollableParent(){return this.cdkScrollable.getAncestorScrollContainers(this.elementRef)[0].getElementRef()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-recent-imports"]],features:[at([Ii])],decls:2,vars:3,consts:()=>{let t;t=$localize`:@@imports_history.titleâd3c34887beffd48eea18621277481ad0b3746b3aâ2897052851898305808:Import history`;let i;i=$localize`:@@recents_imports.tab_header.nameâf70ced668c673ece00ec0953ce8f946491d23a66â2963638949084270364: File name `;let o;o=$localize`:â26b5b9e7fd61f3f0f1d83d5b5174e801de20a606â962081606039860118:{VAR_PLURAL, plural, =0 {{INTERPOLATION} importée} =1 {{INTERPOLATION} importée} other {{INTERPOLATION} importées}}`,o=W(o,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let _;_=$localize`:@@recents_imports.tab_line.imported_transactions_countâe0de9eaa4d12c5541c6c6a51d2d1fb0cd5158693â8797228045463824169: ${o}:ICU: `;let s;s=$localize`:âab5d4e218ca829ade594ce2a201b912d9708e775â1354872425768809143:{VAR_PLURAL, plural, =1 {{INTERPOLATION} non importée} other {{INTERPOLATION} non importées}}`,s=W(s,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let g;g=$localize`:@@recents_imports.tab_line.not_imported.labelâ5120aef7bd993350a7626022fbdd658cc90056d6â6374857447113063991: ${s}:ICU: `;let C;C=$localize`:â24ccfb7ee75046f4e58cdfc1d37d1febc654485fâ8607570306322099762:{VAR_PLURAL, plural, =1 {{INTERPOLATION} en erreur} other {{INTERPOLATION} en erreur}}`,C=W(C,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let O;O=$localize`:@@recents_imports.tab_line.error_count.labelâ17d8b32420938b535cd01c491318f87c2bdbb472â8694838388651708027: ${C}:ICU: `;let A;A=$localize`:âa65b8ef7aa83e29e73e7eaf059f9945ebced2e97â4151488754709528088:{VAR_PLURAL, plural, =1 {{INTERPOLATION} retirée} other {{INTERPOLATION} retirées}}`,A=W(A,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let Ae;Ae=$localize`:@@recents_imports.tab_line.count_of_removedâd0926533f3002582b82e4a12d01c9ddea0fd5b6fâ1902219007666993289: ${A}:ICU: `;let Ye;Ye=$localize`:@@recents_imports.tab_header.transaction_typeâ1c915b51f7e25f74273badcbeccb46e6e7cf54d6â8465748991279606201: Transaction type `;let Ze;Ze=$localize`:@@recents_imports.tab_line.cash_inflow_and_outflow_import_typeâ8cf26d1b5b29979a7bf8a76fce2d7fcc95af4bbfâ1400956269191933912:Cash inflow & Cash outflow`;let Je;Je=$localize`:@@recents_imports.tab_line.cash_inflow_import_typeâfcfd035ba54c46efb9558ef60fa66ad2d2c1601bâ4909645504395840581:Cash inflow`;let et;et=$localize`:@@recents_imports.tab_line.cash_outflow_import_typeâ1be07a39c5ecf1b6e7501c76d4f361fc929f0114â3151386910553576903:Cash outflow`;let tt;tt=$localize`:@@recents_imports.tab_line.paid_transactions_importâ327b6ae8ae3838181b0812d7ea6f88a2289ec719â1428510706225836628:Paid transactions`;let it;it=$localize`:@@recents_imports.tab_line.expected_transactions_importâe0d546f03ad11d791b6853c26ec3529329bc0213â7433016929655729509:Expected transactions`;let L;L=$localize`:@@recents_imports.tab_header.dateâ2f933b826a570836cab04f683970a2d22068458câ3973931101896534797:Date`;let hi;hi=$localize`:@@recents_imports.tab_line.go_to_details_import_linkâ369a387122253d8b207867b0a5b6170c9cfa5b90â7701843298497185440:See import details`;let Zt;return Zt=$localize`:@@recents_imports.actions.delete_importâ51b0f30984fc4cba0bd6804752e9ba812af86519â8512201477365603637:Delete the import`,[t,i,_,g,O,Ae,Ye,Ze,Je,et,tt,it,L,["id","imports-recents-container"],["id","imports-recents"],["flipperText","h700"],[1,"scroll-wrapper"],["infiniteScroll","",3,"scrolled","alwaysCallback","fromRoot","immediateCheck","infiniteScrollContainer","infiniteScrollDisabled","infiniteScrollThrottle","scrollWindow"],[3,"dataSource"],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","type"],["matColumnDef","date"],["priority","weak",4,"matCellDef"],["matColumnDef","actions"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["flipperOverflowTooltip","",3,"ngClass"],["subtitle",""],[1,"details"],[3,"import"],["mat-raised-button","","color","primary","data-test","Imported transactions count","small","",3,"disabled","queryParams","routerLink"],["color","caution","matTooltipPosition","above",3,"matTooltip"],["color","warn",1,"curs
13or-pointer"],["color","accent"],["color","warn",1,"cursor-pointer",3,"click"],[1,"type"],["priority","weak"],["color","accent","mat-icon-button","","matTooltip",hi,3,"routerLink"],["svgIcon","eye"],["color","accent","mat-icon-button","","matTooltip",Zt],["color","accent","mat-icon-button","","matTooltip",Zt,3,"click"],["svgIcon","trash"]]},template:function(i,o){if(i&1&&(f(0,Cl,1,1),U(1,"async")),i&2){let _;u((_=q(1,1,o.imports$))?0:-1,_)}},dependencies:[qt,Wt,Yo,Wo,Qo,qo,Ue,Be,He,Ve,je,Ke,We,qe,Zi,X,Z,Ao,ro,wo,zn,ht,xe,ne,co,Ft,Nt,Po,j,eo,Rt],styles:["[_nghost-%COMP%]{display:block;width:100%;padding:0 0 2.5rem}[_nghost-%COMP%] .mat-column-name[_ngcontent-%COMP%]{flex-basis:45%}[_nghost-%COMP%] .mat-column-type[_ngcontent-%COMP%]{flex-basis:25%}[_nghost-%COMP%] .mat-column-date[_ngcontent-%COMP%]{max-width:120px}#imports-recents[_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{display:flex;gap:8px}#imports-recents[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--flipper-primary-400);text-decoration:underline}#imports-recents[_ngcontent-%COMP%] .scroll-wrapper[_ngcontent-%COMP%]{min-height:38rem}"],changeDetection:0})}}return e})()});function gl(e,n){if(e&1&&(r(0,"flipper-option",15)(1,"span"),p(2,4),a()()),e&2){let t=c(2);m("value",t.ModeImport.Categories)}}function Sl(e,n){if(e&1&&(r(0,"flipper-option",17)(1,"span"),p(2,5),a()()),e&2){let t=c(2);m("value",t.ModeImport.Kpis)}}function Ol(e,n){if(e&1){let t=y();r(0,"div",10)(1,"span",11),p(2,1),a(),r(3,"mat-form-field",12)(4,"flipper-select",13),M("ngModelChange",function(o){h(t);let _=c();return N(_.modeChange(o[0]))}),r(5,"flipper-option",14)(6,"span"),p(7,2),a()(),f(8,gl,3,1,"flipper-option",15),r(9,"flipper-option",16)(10,"span"),p(11,3),a()(),f(12,Sl,3,1,"flipper-option",17),a()()()}if(e&2){let t=c();l(4),m("ngModel",t.selectedMode()),l(),m("value",t.ModeImport.Operations),l(3),u(t.canImportCategories()?8:-1),l(),m("value",t.ModeImport.Objectifs),l(3),u(t.canImportKpi()?12:-1)}}function Al(e,n){e&1&&ot(0)}function Ml(e,n){if(e&1&&(r(0,"app-transactions-import",18),F(1,Al,1,0,"ng-container",19),a(),P(2,"app-recent-imports",20)),e&2){c();let t=nt(3);l(),m("ngTemplateOutlet",t)}}function El(e,n){e&1&&ot(0)}function Il(e,n){if(e&1&&(r(0,"app-categories-import",21),F(1,El,1,0,"ng-container",19),a()),e&2){c(2);let t=nt(3);l(),m("ngTemplateOutlet",t)}}function Rl(e,n){if(e&1&&f(0,Il,2,1,"app-categories-import",21),e&2){let t=c();u(t.canImportCategories()?0:-1)}}function hl(e,n){e&1&&ot(0)}function Nl(e,n){if(e&1&&(r(0,"app-forecast-import",8),F(1,hl,1,0,"ng-container",19),a()),e&2){c();let t=nt(3);l(),m("ngTemplateOutlet",t)}}function Fl(e,n){e&1&&ot(0)}function Dl(e,n){if(e&1&&(r(0,"app-kpis-import",9),F(1,Fl,1,0,"ng-container",19),a()),e&2){c();let t=nt(3);l(),m("ngTemplateOutlet",t)}}var Fe,mm,yl=R(()=>{to();T();_t();H();Qn();Kn();or();di();Pn();gn();On();lr();Mn();Un();Ko();Ge();T();H();Fe=(function(e){return e[e.Operations=0]="Operations",e[e.Categories=1]="Categories",e[e.Objectifs=2]="Objectifs",e[e.Kpis=3]="Kpis",e})(Fe||{}),mm=(()=>{class e{get ModeImport(){return Fe}modeChange(t){t!=null&&this.mode.set(t)}constructor(){this.kpiImportService=d(Bt),this.mode=Me(Fe.Operations),this.canImportKpi=so(this.kpiImportService.getCanImportKpi(),{initialValue:!1}),this.categoriesTransitionService=d(Ho),this.rights=this.categoriesTransitionService.newCategoriesRights,this.canImportCategories=Re(()=>this.rights()?.canImportCategoryTree===!0),this.availableModes=Re(()=>{let t=[Fe.Operations];return this.canImportCategories()&&t.push(Fe.Categories),t.push(Fe.Objectifs),this.canImportKpi()&&t.push(Fe.Kpis),t}),this.selectedMode=Re(()=>{let t=this.mode();return this.availableModes().includes(t)?[t]:[]}),this.categoriesTransitionService.updateCategoriesRights()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["app-excel"]],decls:8,vars:1,consts:()=>{let t;t=$localize`:@@page_import_excel.main.import_titleâeee8f9d632620237966e9ddd05b6fea625a63d59â2675873093630846730:Data import`;let i;i=$localize`:@@page_import_excel.main.import_type_select.labelâb445cef13ed0a26df66cf3eb39a8af6f7230c4c8â7939418129526205441:Import type`;let o;o=$localize`:@@page_import_excel.main.import_type_transactionâadd4cd82e3e38a3110fe67b3c7df56e9602644eeâ2611475427610660053:Transactions`;let _;_=$localize`:@@page_import_excel.main.import_type_objectiveâ44af83efc4b6564ab0dff9ebc36ce95d7d2a1ae8â4914260452093848412:Forecast`;let s;s=$localize`:@@page_import_excel.main.import_type_categoryâ04201f9d27abd7d6f58a4328ab98063ce1072006â1902100407096396858:Categories`;let g;return g=$localize`:@@page_import_excel.main.import_type_kpisâ06c958f85e00916968636ea2cc60ebde40acd751â8322237746465607572:Manual KPIs`,[["importTypeSelect",""],i,o,_,s,g,["pageTitle",t],[1,"import-excel-content"],["data-test","forecast-import"],["data-test","kpis-import"],[1,"type"],["flipperText","h500",1,"leading-md"],["appearance","outline"],["dropdownHeightAuto","","data-test","import-type-select",3,"ngModelChange","ngModel"],["data-test","import-type-option-transactions",3,"value"],["data-test","import-type-option-categories",3,"value"],["data-test","import-type-option-forecast",3,"value"],["data-test","import-type-option-kpis",3,"value"],["data-test","transactions-import"],[4,"ngTemplateOutlet"],["data-test","recent-imports"],["data-test","categories-import"]]},template:function(i,o){if(i&1&&(P(0,"flipper-page-title",6),r(1,"div",7),F(2,Ol,13,5,"ng-template",null,0,qi),f(4,Ml,3,1)(5,Rl,1,1)(6,Nl,2,1,"app-forecast-import",8)(7,Dl,2,1,"app-kpis-import",9),a()),i&2){let _;l(4),u((_=o.mode())===o.ModeImport.Operations?4:_===o.ModeImport.Categories?5:_===o.ModeImport.Objectifs?6:_===o.ModeImport.Kpis?7:-1)}},dependencies:[Mo,Uo,Co,ue,Y,de,un,Cn,Sn,en,Ji,An,Xn,j],styles:[".type[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.type[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:250px}.import-excel-content[_ngcontent-%COMP%]{overflow:auto;padding:4px 2rem 0}"]})}}return e})()});yl();
13export{mm as ImportComponent,Fe as ModeImport};
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.