1import{a as Ar,b as Pr,i as Br}from"./chunk-5I2B4CW7.js";import"./chunk-GPM5FBHP.js";import"./chunk-VZ5G2PSB.js";import{a as ve,b as Je}from"./chunk-5GI52N7F.js";import"./chunk-4N7KVHX6.js";import{e as kr}from"./chunk-EINRBYVI.js";import"./chunk-PVRYJJ45.js";import"./chunk-BMSYIEBB.js";import{a as Rr,b as Fr}from"./chunk-DBZ5GYNN.js";import{a as Nr,b as Dr,c as wr}from"./chunk-MQPRHIT5.js";import{a as $i,b as Zi,c as Cr}from"./chunk-HA2FALH4.js";import"./chunk-TB6SOEQ6.js";import{a as We,b as Ir}from"./chunk-7PTTX73C.js";import{a as we}from"./chunk-CG4WYAHB.js";import{a as Sr,b as hr,c as yr,d as Tr}from"./chunk-GJOPGJTC.js";import{n as Rt,p as br,r as Or}from"./chunk-AH7JD5XQ.js";import"./chunk-KBRJXPHX.js";import{f as Pi}from"./chunk-ORN4WQFS.js";import"./chunk-NMLKT6IY.js";import{a as wi}from"./chunk-25LAZVWZ.js";import"./chunk-VNLDWJSA.js";import"./chunk-QOKP7NBH.js";import"./chunk-7KD3UQHO.js";import"./chunk-H4QG57TJ.js";import"./chunk-KQDLMJZK.js";import"./chunk-3H6NZA6Q.js";import"./chunk-KZMW7UME.js";import"./chunk-5FGXMDP7.js";import"./chunk-X3GWJDFX.js";import"./chunk-HSVNW533.js";import"./chunk-7GZG4GDV.js";import"./chunk-EEXULECG.js";import"./chunk-7QPZBM2T.js";import"./chunk-JOSBU4MI.js";import"./chunk-5NOXJXJB.js";import{g as De,x as Er}from"./chunk-3XGEEXFV.js";import"./chunk-4ULI4AF7.js";import{a as xr}from"./chunk-NGGNOJQP.js";import"./chunk-KZ5EOAEI.js";import"./chunk-S3H2QQCI.js";import"./chunk-X5ORTLLR.js";import{$a as c,$c as bi,$d as ne,$m as At,Aa as r,Ab as I,Ac as Ti,Aj as at,Al as bt,An as ur,Ao as Lr,B as oi,Bj as Tt,Dm as ct,Eb as di,En as Qe,Fb as mi,Fh as Li,Fl as L,Fm as Oe,Ga as S,Gb as fi,Hb as ui,Hh as Ui,Hl as oe,Hn as _r,Ih as Ct,Jc as He,Jd as Y,Jh as $e,Ji as w,Jn as Ae,Ka as R,Kd as U,La as si,Lb as G,Ln as Re,Mb as _i,Na as pi,Nb as A,Ni as Vi,Nj as er,Oa as $,Ob as vi,Oj as tr,Pa as f,Pj as ir,Qi as ht,Qj as rr,Qm as dr,R as pe,Rd as Ce,Ri as nt,S as Q,Sb as gi,Sd as Ai,Sj as nr,Ta as ke,Td as rt,Tn as Fe,U as ie,Ua as h,Ub as s,Ui as yt,Vb as p,Vd as Ve,Vi as Gi,Vj as or,Vk as Te,Wb as O,Wc as xi,We as Fi,Wn as Ne,Xe as Ni,Xn as lt,Yc as Ei,Yd as z,Ye as ft,Yg as _t,Z as je,Zb as Ci,Zc as Ii,Ze as Di,Zi as Yi,Zk as Ye,_ as ai,_a as o,_b as B,_i as zi,aa as de,ab as a,ah as vt,bb as d,bg as ut,bl as Le,ch as Bi,cj as qi,dj as Ki,e as te,ea as X,fa as W,fb as x,fi as ce,fl as Et,gb as E,gd as Oi,gj as Qi,gl as ar,hb as mt,hc as re,hi as Mi,ib as me,ic as ue,ij as Xi,jc as N,jh as gt,jj as Wi,jl as cr,ka as ci,kb as J,kc as Si,kh as ki,kl as T,lc as hi,ll as xe,m as P,mb as _,mh as he,mk as xt,ml as It,mo as vr,n as ni,nh as D,nl as Ee,oa as dt,oi as ji,ol as ze,p as j,pe as Ri,pi as St,q as ge,qc as yi,rc as k,ri as Hi,rm as be,se as Se,sm as Ot,tb as F,ti as Ge,tj as Ji,tm as sr,u as Ut,ul as Ie,um as pr,va as b,vb as fe,vj as C,vl as lr,vm as qe,wa as Be,wj as ot,xa as li,xm as Ke,xn as mr,yb as u,yi as ye,yo as Xe,z as K,zb as g,zj as kn,zn as fr,zo as gr}from"./chunk-5FIO62PX.js";import"./chunk-CCWZEKOQ.js";import"./chunk-UXQYALUZ.js";import{a as V,b as se,f as it,h as ri}from"./chunk-CJZK3ASG.js";var on=it((xs,nn)=>{"use strict";nn.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)});var pn=it((Es,sn)=>{"use strict";var ln="%[a-f0-9]{2}",an=new RegExp("("+ln+")|([^%]+?)","gi"),cn=new RegExp("("+ln+")+","gi");function ei(e,n){try{return[decodeURIComponent(e.join(""))]}catch(l){}if(e.length===1)return e;n=n||1;var t=e.slice(0,n),i=e.slice(n);return Array.prototype.concat.call([],ei(t),ei(i))}function xa(e){try{return decodeURIComponent(e)}catch(i){for(var n=e.match(an)||[],t=1;t<n.length;t++)e=ei(n,t).join(""),n=e.match(an)||[];return e}}function Ea(e){for(var n={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},t=cn.exec(e);t;){try{n[t[0]]=decodeURIComponent(t[0])}catch(y){var i=xa(t[0]);i!==t[0]&&(n[t[0]]=i)}t=cn.exec(e)}n["%C2"]="\uFFFD";for(var l=Object.keys(n),m=0;m<l.length;m++){var v=l[m];e=e.replace(new RegExp(v,"g"),n[v])}return e}sn.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(n){return Ea(e)}}});var mn=it((Is,dn)=>{"use strict";dn.exports=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];let t=e.indexOf(n);return t===-1?[e]:[e.slice(0,t),e.slice(t+n.length)]}});var un=it((bs,fn)=>{"use strict";fn.exports=function(e,n){for(var t={},i=Object.keys(e),l=Array.isArray(n),m=0;m<i.length;m++){var v=i[m],y=e[v];(l?n.indexOf(v)!==-1:n(v,y,e))&&(t[v]=y)}return t}});var Tn=it(q=>{"use strict";var Ia=on(),ba=pn(),vn=mn(),Oa=un(),Aa=e=>e==null;function Ra(e){switch(e.arrayFormat){case"index":return n=>(t,i)=>{let l=t.length;return i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?t:i===null?[...t,[M(n,e),"[",l,"]"].join("")]:[...t,[M(n,e),"[",M(l,e),"]=",M(i,e)].join("")]};case"bracket":return n=>(t,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?t:i===null?[...t,[M(n,e),"[]"].join("")]:[...t,[M(n,e),"[]=",M(i,e)].join("")];case"comma":case"separator":return n=>(t,i)=>i==null||i.length===0?t:t.length===0?[[M(n,e),"=",M(i,e)].join("")]:[[t,M(i,e)].join(e.arrayFormatSeparator)];default:return n=>(t,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?t:i===null?[...t,M(n,e)]:[...t,[M(n,e),"=",M(i,e)].join("")]}}function Fa(e){let n;switch(e.arrayFormat){case"index":return(t,i,l)=>{if(n=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!n){l[t]=i;return}l[t]===void 0&&(l[t]={}),l[t][n[1]]=i};case"bracket":return(t,i,l)=>{if(n=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!n){l[t]=i;return}if(l[t]===void 0){l[t]=[i];return}l[t]=[].concat(l[t],i)};case"comma":case"separator":return(t,i,l)=>{let m=typeof i=="string"&&i.includes(e.arrayFormatSeparator),v=typeof i=="string"&&!m&&Ue(i,e).includes(e.arrayFormatSeparator);i=v?Ue(i,e):i;let y=m||v?i.split(e.arrayFormatSeparator).map(ee=>Ue(ee,e)):i===null?i:Ue(i,e);l[t]=y};default:return(t,i,l)=>{if(l[t]===void 0){l[t]=i;return}l[t]=[].concat(l[t],i)}}}function gn(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function M(e,n){return n.encode?n.strict?Ia(e):encodeURIComponent(e):e}function Ue(e,n){return n.decode?ba(e):e}function Cn(e){return Array.isArray(e)?e.sort():typeof e=="object"?Cn(Object.keys(e)).sort((n,t)=>Number(n)-Number(t)).map(n=>e[n]):e}function Sn(e){let n=e.indexOf("#");return n!==-1&&(e=e.slice(0,n)),e}function Na(e){let n="",t=e.indexOf("#");return t!==-1&&(n=e.slice(t)),n}function hn(e){e=Sn(e);let n=e.indexOf("?");return n===-1?"":e.slice(n+1)}function _n(e,n){return n.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):n.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}
1function yn(e,n){n=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},n),gn(n.arrayFormatSeparator);let t=Fa(n),i=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return i;for(let l of e.split("&")){if(l==="")continue;let[m,v]=vn(n.decode?l.replace(/\+/g," "):l,"=");v=v===void 0?null:["comma","separator"].includes(n.arrayFormat)?v:Ue(v,n),t(Ue(m,n),v,i)}for(let l of Object.keys(i)){let m=i[l];if(typeof m=="object"&&m!==null)for(let v of Object.keys(m))m[v]=_n(m[v],n);else i[l]=_n(m,n)}return n.sort===!1?i:(n.sort===!0?Object.keys(i).sort():Object.keys(i).sort(n.sort)).reduce((l,m)=>{let v=i[m];return v&&typeof v=="object"&&!Array.isArray(v)?l[m]=Cn(v):l[m]=v,l},Object.create(null))}q.extract=hn;q.parse=yn;q.stringify=(e,n)=>{if(!e)return"";n=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},n),gn(n.arrayFormatSeparator);let t=v=>n.skipNull&&Aa(e[v])||n.skipEmptyString&&e[v]==="",i=Ra(n),l={};for(let v of Object.keys(e))t(v)||(l[v]=e[v]);let m=Object.keys(l);return n.sort!==!1&&m.sort(n.sort),m.map(v=>{let y=e[v];return y===void 0?"":y===null?M(v,n):Array.isArray(y)?y.reduce(i(v),[]).join("&"):M(v,n)+"="+M(y,n)}).filter(v=>v.length>0).join("&")};q.parseUrl=(e,n)=>{n=Object.assign({decode:!0},n);let[t,i]=vn(e,"#");return Object.assign({url:t.split("?")[0]||"",query:yn(hn(e),n)},n&&n.parseFragmentIdentifier&&i?{fragmentIdentifier:Ue(i,n)}:{})};q.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);let t=Sn(e.url).split("?")[0]||"",i=q.extract(e.url),l=q.parse(i,{sort:!1}),m=Object.assign(l,e.query),v=q.stringify(m,n);v&&(v=`?${v}`);let y=Na(e.url);return e.fragmentIdentifier&&(y=`#${M(e.fragmentIdentifier,n)}`),`${t}${v}${y}`};q.pick=(e,n,t)=>{t=Object.assign({parseFragmentIdentifier:!0},t);let{url:i,query:l,fragmentIdentifier:m}=q.parseUrl(e,t);return q.stringifyUrl({url:i,query:Oa(l,n),fragmentIdentifier:m},t)};q.exclude=(e,n,t)=>{let i=Array.isArray(n)?l=>!n.includes(l):(l,m)=>!n(l,m);return q.pick(e,i,t)}});var ae=(()=>{class e{constructor(t,i){this.http=t,this.dict=i}getOrders(t,i=!0){let l=Ve({spinner:i?rt.HARD:rt.NONE}),v=`/orders?${Mi(t||[])}`;return this.http.get(v,l).pipe(K(y=>y.status===500?P({messageList:[{message:"orion.current-orders.CURRENT_ORDERS_ERROR",severity:ut.ERROR}],data:{openedOrderCount:0,partiallyExecOrderCount:0,execOrderCount:0,totalSell:0,totalBuy:0,orderList:[],exchangeRate:{}}}):ni(y)))}createStatusList(t=!0){let i=[{value:"",label:T.STATUS_ALL},{value:C.ANNULE,label:T.STATUS_CANCELLED},{value:C.ATTENTE,label:T.STATUS_WAITING},{value:C.DECLINE,label:T.STATUS_DECLINED},{value:C.ERREUR,label:T.STATUS_ERROR},{value:C.EXECUTE,label:T.STATUS_EXECUTE},{value:C.EXPIRE,label:T.STATUS_EXPIRED},{value:C.INTERVE,label:T.STATUS_IN_INTERVENTION}],l=[{value:C.POSTDATE,label:T.STATUS_POSTDATED},{value:C.TRAITER,label:T.STATUS_IN_PROCESSING}],m=[];return t?(m=m.concat(i),m=m.concat([{value:C.OUVERT_PARTIEL,label:T.STATUS_OPEN_OR_PARTIAL}]),m=m.concat(l)):(m=m.concat(i),m=m.concat([{value:C.OUVERT,label:T.STATUS_OPEN},{value:C.PARTIEL,label:T.STATUS_PARTIAL}]),m=m.concat(l)),m}createStatus(){return[{id:C.ANNULE,primaryLabel:this.dict.entry(T.STATUS_CANCELLED),children:[]},{id:C.ATTENTE,primaryLabel:this.dict.entry(T.STATUS_WAITING),children:[]},{id:C.DECLINE,primaryLabel:this.dict.entry(T.STATUS_DECLINED),children:[]},{id:C.ERREUR,primaryLabel:this.dict.entry(T.STATUS_ERROR),children:[]},{id:C.EXECUTE,primaryLabel:this.dict.entry(T.STATUS_EXECUTE),children:[]},{id:C.EXPIRE,primaryLabel:this.dict.entry(T.STATUS_EXPIRED),children:[]},{id:C.INTERVE,primaryLabel:this.dict.entry(T.STATUS_IN_INTERVENTION),children:[]},{id:C.OUVERT_PARTIEL,primaryLabel:this.dict.entry(T.STATUS_OPEN_OR_PARTIAL),children:[]},{id:C.POSTDATE,primaryLabel:this.dict.entry(T.STATUS_POSTDATED),children:[]},{id:C.TRAITER,primaryLabel:this.dict.entry(T.STATUS_IN_PROCESSING),children:[]}]}getStatusIds(t){return[...t.map(i=>i.id)]}getLabelsDropdownOrders(){return{all:this.dict.entry(T.STATUS_ALL),multi:this.dict.entry(T.STATUS_SELECTED),default:this.dict.entry(T.STATUS_NO_SELECTED)}}getLabelAllStatus(){return this.dict.entry(T.STATUS_ALL)}createStatusCounter(t){let i={canceled:0,declined:0,error:0,executed:0,expired:0,intervention:0,open:0,partial:0,postdated:0,processing:0,waiting:0},l=[];for(let m of t)switch(m.statusComb){case C.OUVERT:i.open++;break;case C.PARTIEL:i.partial++;break;case C.TRAITER:i.processing++;break;case C.POSTDATE:i.postdated++;break;case C.INTERVE:i.intervention++;break;case C.EXPIRE:i.expired++;break;case C.EXECUTE:i.executed++;break;case C.ERREUR:i.error++;break;case C.DECLINE:i.declined++;break;case C.ATTENTE:i.waiting++;break;case C.ANNULE:i.canceled++;break}return l.push({label:C.ATTENTE,value:i.waiting,tooltipName:T.STATUS_WAITING}),l.push({label:C.OUVERT,value:i.open,tooltipName:T.STATUS_OPEN}),l.push({label:C.PARTIEL,value:i.partial,tooltipName:T.STATUS_PARTIAL}),l.push({label:C.EXECUTE,value:i.executed,tooltipName:T.STATUS_EXECUTE}),l.push({label:C.DECLINE,value:i.declined+i.error,tooltipName:T.STATUS_DECLINED}),l.push({label:C.TRAITER,value:i.processing,tooltipName:T.STATUS_IN_PROCESSING}),l.push({label:C.EXPIRE,value:i.expired,tooltipName:T.STATUS_EXPIRED}
1),l.push({label:C.POSTDATE,value:i.postdated,tooltipName:T.STATUS_POSTDATED}),l.push({label:C.INTERVE,value:i.intervention,tooltipName:T.STATUS_IN_INTERVENTION}),l.push({label:C.ANNULE,value:i.canceled,tooltipName:T.STATUS_CANCELLED}),l}showTradeGrossAmt(t){return this.isValidOrder(t)?!this.isFreeSharesUnits(t)&&!this.isNewIssueFixedIncome(t):!1}isValidOrder(t){return!!t?.finInstrument}isFreeSharesUnits(t){return t.qtyType===Ar.FREE_SHARES_UNITS}isNewIssueFixedIncome(t){let{finInstrumentTypeCd:i,debtInstrument:l}=t.finInstrument;return i===Le.FIXED_INCOME&&l?.productFamilyCd===Le.NEW_ISSUE}static{this.\u0275fac=function(i){return new(i||e)(de(He),de(vt))}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac})}}return e})();function Mn(e,n){e&1&&d(0,"div",17)}var Mr=(()=>{class e{constructor(t){this.currentOrdersService=t,this.OPERATION_TYPES_INCREASING_TOTAL_GROSS_AMOUNT=[oe.SELL,oe.SELL_PARTIAL,oe.BUY_CLOSING,oe.SELL_OPENING,oe.SELL_FULL,oe.STOP_LOSS,oe.SELL_SHORT],this.OPERATION_TYPES_DECREASING_TOTAL_GROSS_AMOUNT=[oe.BUY,oe.BUY_OPENING,oe.SELL_CLOSING,oe.BUY_STOP]}sumTotalGrossAmount(){return this.filteredOrderList.reduce((t,i)=>{let l=i.orderByCurrency?.[this.currencySelected]?.grossAmount??0;if(l&&this.currentOrdersService.showTradeGrossAmt(i)){if(this.OPERATION_TYPES_DECREASING_TOTAL_GROSS_AMOUNT.includes(i.operation))return t-l;if(this.OPERATION_TYPES_INCREASING_TOTAL_GROSS_AMOUNT.includes(i.operation))return t+l}return t},0)}static{this.\u0275fac=function(i){return new(i||e)(S(ae))}}static{this.\u0275cmp=R({type:e,selectors:[["app-current-orders-total"]],inputs:{lengthSelection:"lengthSelection",account:"account",currencySelected:"currencySelected",filteredOrderList:"filteredOrderList"},standalone:!1,features:[G([ae])],decls:25,vars:21,consts:[[1,"or-table-body"],[1,"or-table-row","or-table-footer"],[1,"or-table-cell","mc-fw-medium","or-grow-currentOrderOperation"],[1,"mc-d-flex","align-items-center"],[1,"d-inline-flex","pl-1",3,"textTooltip"],[1,"or-table-cell","or-position-2","or-grow-currentDescription","or-mobile-hide"],["class","or-table-cell or-position-1 or-grow-currentOrderAccount or-mobile-hide",4,"ngIf"],[1,"or-table-cell","or-position-5","or-numeric","or-mobile-hide"],[1,"or-table-cell","or-position-6","or-numeric","or-mobile-hide"],[1,"or-table-cell","or-collapsible","or-numeric","or-position-8","or-mobile-hide"],[1,"or-table-cell","or-collapsible","or-position-7","or-mobile-hide"],[1,"or-table-cell","or-position-10","or-numeric","or-h4"],["digits","1.2-2",3,"value"],[1,"or-table-cell","or-position-9","or-mobile-hide","or-grow-currentOrderIcon"],[1,"or-table-cell","or-position-4","or-grow-currentOrderStatus","mc-align-self-center","or-mobile-hide"],[1,"or-table-cell","or-position-11","mc-align-self-center","or-grow-currentOrderIcon","or-mobile-hide"],[1,"or-table-cell","or-position-12","or-desktop-hide","or-flex-full","or-mobile-hide"],[1,"or-table-cell","or-position-1","or-grow-currentOrderAccount","or-mobile-hide"]],template:function(i,l){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),u(4),s(5,"dict"),c(6,"app-tooltip",4),s(7,"dict"),u(8),a()()(),d(9,"div",5),f(10,Mn,1,0,"div",6),d(11,"div",7),s(12,"dict"),d(13,"div",8),s(14,"dict"),d(15,"div",9),s(16,"dict"),d(17,"div",10),s(18,"dict"),c(19,"div",11),d(20,"app-value-styler",12),a(),d(21,"div",13)(22,"div",14)(23,"div",15)(24,"div",16),a()()),i&2&&(r(4),I(" ",p(5,9,"orion.current-orders.TOTAL")," "),r(2),o("textTooltip",p(7,11,"orion.app."+l.currencySelected)),r(2),I(" ",l.currencySelected," "),r(2),o("ngIf",l.lengthSelection>1&&l.account==null),r(),h("data-header",p(12,13,"orion.current-orders.QUANTITY_SHORT")),r(2),h("data-header",p(14,15,"orion.current-orders.PRICE")),r(2),h("data-header",p(16,17,"orion.current-orders.OBTAINED_AVERAGE_PRICE")),r(2),h("data-header",p(18,19,"orion.current-orders.CREATED_DATE")),r(3),o("value",l.sumTotalGrossAmount()))},dependencies:[N,Te,bt,D],styles:[".or-table-cell.or-grow-currentDescription[_ngcontent-%COMP%]{flex-grow:2.5!important}.or-table-cell.or-grow-currentOrderAccount[_ngcontent-%COMP%]{flex-grow:1.5!important}.or-table-cell.or-grow-currentOrderStatus[_ngcontent-%COMP%]{flex-grow:1.25!important}.or-table-cell.or-grow-currentOrderOperation[_ngcontent-%COMP%]{flex-grow:1!important}.or-table-cell.or-grow-currentOrderIcon[_ngcontent-%COMP%]{flex-grow:.5!important}.or-table-cell.or-grow-rejectReason[_ngcontent-%COMP%]{flex-grow:12!important}.or-symbol-width[_ngcontent-%COMP%]{width:150px}.mc-w-35[_ngcontent-%COMP%]{width:35%}.mc-w-60[_ngcontent-%COMP%]{width:60%}.mc-w-95[_ngcontent-%COMP%]{width:95%}"],changeDetection:0})}}return e})();function jr(e){return{product:e.finInstrument.finInstrumentTypeCd,market:e.finInstrument.marketSymbol.symbolCntryCd,symbol:e.finInstrument.marketSymbol.symbolCd,description:e.finInstrument.displayDesc}}var Ze=(()=>{class e{transform(t,i=""){let l=[];for(let m of t)(i===""||i.indexOf(m.statusComb)!==-1)&&l.push(m);return l}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275pipe=pi({name:"statusFilter",type:e,pure:!0,standalone:!1})}}return e})();var Z=(function(e){return e.ICON_OPENED="ico-opened",e.ICON_PARTIALLY_FILLED="ico-partially-filled",e.ICON_PENDING="ico-pending",e.ICON_POST_DATED="ico-post-dated",e.ICON_INTERVENTION="ico-intervention",e.ICON_PROCESSING="ico-processing",e.ICON_EXPIRED="ico-expired",e.ICON_FILLED="ico-filled",e.ICON_DECLINED="ico-declined",e.ICON_ERROR="ico-error",e.ICON_CANCEL="ico-cancel",e})(Z||{});function Hr(e){let n=e.orderList.filter(t=>t.statusComb===C.ANNULE).filter(t=>at(Ne(t.updDt),ot.TODAY)||at(Ne(t.updDt),ot.SINCE_YESTERDAY));return e.orderList=e.orderList.filter(t=>n.includes(t)||t.statusComb!==C.ANNULE),e}function Vr(e){let n=e.orderList.filter(t=>t.statusComb===C.EXPIRE).filter(t=>at(Ne(t.ordExpDt),ot.TODAY)||at(Ne(t.ordExpDt),ot.SINCE_YESTERDAY));return e.orderList=e.orderList.filter(t=>n.includes(t)||t.statusComb!==C.EXPIRE),e}function $r(e){let n="";switch(e){case C.OUVERT:n=Z.ICON_OPENED;break;case C.PARTIEL:n=Z.ICON_PARTIALLY_FILLED;break;case C.TRAITER:n=Z.ICON_PROCESSING;break;case C.POSTDATE:n=Z.ICON_POST_DATED;break;case C.INTERVE:n=Z.ICON_INTERVENTION;break;
1case C.EXPIRE:n=Z.ICON_EXPIRED;break;case C.EXECUTE:n=Z.ICON_FILLED;break;case C.ERREUR:n=Z.ICON_ERROR;break;case C.DECLINE:n=Z.ICON_DECLINED;break;case C.ATTENTE:n=Z.ICON_PENDING;break;case C.ANNULE:n=Z.ICON_CANCEL;break}return n}function $n(e,n){if(e&1){let t=me();c(0,"div",6)(1,"a",7),J("keydown.enter",function(){let l=X(t).$implicit,m=_(2);return W(m.action(l))})("click",function(){let l=X(t).$implicit,m=_(2);return W(m.action(l))}),u(2),s(3,"dict"),a()()}if(e&2){let t=n.$implicit;r(),h("data-test",t.dataTestId),r(),g(p(3,2,t.dictKey))}}function Gn(e,n){if(e&1&&(x(0),c(1,"button",2),s(2,"dict"),d(3,"app-icon",3),s(4,"dict"),a(),c(5,"mat-menu",null,0)(7,"div",4),f(8,$n,4,4,"div",5),a()(),E()),e&2){let t=F(6),i=_();r(),o("matMenuTriggerFor",t),h("aria-label",p(2,6,"orion.current-orders.MORE_ACTION"))("data-test","more-action"),r(2),o("sprite",!1)("altLabel",p(4,8,"orion.current-orders.MORE_ACTION")),r(5),o("ngForOf",i.links)}}var Yr=(()=>{class e extends z{constructor(t,i,l,m){super(),this.router=t,this.dialog=i,this.store=l,this.userProfile=m}ngOnInit(){this.appendOrderActionLinks()}ngOnChanges(t){t&&t.selectedOrder.currentValue&&this.appendOrderActionLinks()}action(t){t.action()}hasAccessToCancelOrder(t){return{STOCK:this.userProfile.hasAccessToCancelStockEtfOrder,OPTION:this.userProfile.hasAccessToCancelOptionOrder,MUTUAL_FUND:this.userProfile.hasAccessToCancelMutualFundsOrder,GIC:this.userProfile.hasAccessToCancelGicOrder}[t.finInstrument.finInstrumentTypeCd]&&t.orderActions.ableToCancel}hasAccessToConsultOrder(t){return{STOCK:this.userProfile.hasAccessToConsultStockEtfOrder,OPTION:this.userProfile.hasAccessToConsultOptionOrder,MUTUAL_FUND:this.userProfile.hasAccessToConsultMutualFundsOrder,FIXED_INCOME:this.userProfile.hasAccessToConsultFixedIncomeOrder,GIC:this.userProfile.hasAccessToConsultGicOrder}[t.finInstrument.finInstrumentTypeCd]&&t.orderActions.ableToConsult}hasAccessToModifyOrder(t){return{STOCK:this.userProfile.hasAccessToModifyStockEtfOrder,OPTION:this.userProfile.hasAccessToModifyOptionOrder}[t.finInstrument.finInstrumentTypeCd]&&t.orderActions.ableToModify}hasAccessToDuplicate(t){return{STOCK:this.userProfile.hasAccessToDuplicateStockEtfOrder,OPTION:this.userProfile.hasAccessToDuplicateOptionOrder}[t.finInstrument.finInstrumentTypeCd]&&t.orderActions.ableToRecycle}hasAccessToProcessOrder(t){return{FIXED_INCOME:this.userProfile.hasAccessToProcessFixedIncomeOrder}[t.finInstrument.finInstrumentTypeCd]&&t.orderActions.ableToProcess}showOrderDetails(){this.openOrderDetailsModal(Rt.VIEW)}cancelOrder(){this.openOrderDetailsModal(Rt.CANCEL)}processOrder(){this.openOrderDetailsModal(Rt.PROCESS)}modifyOrder(){this.navigateToTrade("modify")}duplicateOrder(){this.navigateToTrade("duplicate")}navigateToTrade(t){this.currentOrdersDialogRef&&this.currentOrdersDialogRef.close(),this.router.navigate([{outlets:{trades:[`trade-${t}`,this.selectedOrder.ordId,this.selectedOrder.finInstrument.finInstrumentTypeCd]}}]).then(()=>this.store.dispatch(vr()))}openOrderDetailsModal(t){let l={data:{ordId:this.selectedOrder.ordId,product:this.selectedOrder.finInstrument.finInstrumentTypeCd,acctNo:this.selectedOrder.account.acctNo,status:this.selectedOrder.statusComb,mode:t},disableClose:!0,maxWidth:"100vw"};this.dialog.open(br,l)}appendOrderActionLinks(){this.links=[],this.hasAccessToModifyOrder(this.selectedOrder)&&this.links.push({dictKey:"orion.current-orders.MODIFY",dataTestId:"modify-order",action:()=>this.modifyOrder()}),this.hasAccessToCancelOrder(this.selectedOrder)&&this.links.push({dictKey:"orion.current-orders.CANCEL",dataTestId:"cancel-order",action:()=>this.cancelOrder()}),this.hasAccessToConsultOrder(this.selectedOrder)&&this.links.push({dictKey:"orion.current-orders.DETAILS",dataTestId:"consult-order",action:()=>this.showOrderDetails()}),this.hasAccessToDuplicate(this.selectedOrder)&&this.links.push({dictKey:"orion.current-orders.DUPLICATE",dataTestId:"duplicate-order",action:()=>this.duplicateOrder()}),this.hasAccessToProcessOrder(this.selectedOrder)&&this.links.push({dictKey:"orion.current-orders.PROCESS",dataTestId:"process-order",action:()=>this.processOrder()})}static{this.\u0275fac=function(i){return new(i||e)(S(Ei),S(ft),S(Y),S(ne))}}static{this.\u0275cmp=R({type:e,selectors:[["app-order-actions"]],inputs:{selectedOrder:"selectedOrder",currentOrdersDialogRef:"currentOrdersDialogRef"},standalone:!1,features:[$,dt],decls:1,vars:1,consts:[["menu","matMenu"],[4,"ngIf"],["type","button",1,"or-link",3,"matMenuTriggerFor"],["name","ico-actions","size","big",3,"sprite","altLabel"],["id","order-actions-popover","role","menu"],["class","order-action",4,"ngFor","ngForOf"],[1,"order-action"],["mat-menu-item","","role","menuitem","href","javascript:void(0)",3,"keydown.enter","click"]],template:function(i,l){i&1&&f(0,Gn,9,10,"ng-container",1),i&2&&o("ngIf",l.links.length)},dependencies:[ue,N,he,hr,Sr,yr,D],styles:['@charset "UTF-8";.mat-mdc-menu-item[_ngcontent-%COMP%]{border-bottom:solid 1px #d2d2d2;text-align:center}'],changeDetection:0})}}return e})();function Qn(e,n){if(e&1&&(d(0,"img",33),s(1,"flagPath"),s(2,"flagALT"),s(3,"dict")),e&2){let t=_(2);o("src",p(1,2,t.order.finInstrument.marketSymbol.symbolCntryCd),Be),h("alt",p(3,6,p(2,4,t.order.finInstrument.marketSymbol.symbolCntryCd)))}}function Xn(e,n){if(e&1&&(c(0,"div"),u(1),a()),e&2){let t=_(3);r(),g(t.order.portfolioName)}}function Wn(e,n){if(e&1&&(c(0,"div",34)(1,"div"),d(2,"div",35),c(3,"div",36),u(4),f(5,Xn,2,1,"div",37),s(6,"async"),a()()()),e&2){let t=_(2);r(2),o("innerHtml",t.order.acctTypeDesc,b),r(2),I(" ",t.order.account.acctNo," "),r(),o("ngIf",p(6,3,t.compactTheme$)===t.CompactThemeV
1alue.DEFAULT_VIEW)}}function Jn(e,n){e&1&&(x(0),u(1,"-"),E())}function Zn(e,n){e&1&&(x(0),d(1,"br"),u(2),s(3,"dict"),E()),e&2&&(r(2),g(p(3,1,"orion.current-orders.UNITS")))}function eo(e,n){if(e&1&&(x(0),d(1,"app-qty-formatter",38),f(2,Zn,4,3,"ng-container",37),E()),e&2){let t=_(3);r(),o("value",t.order.totalQuantity)("product",t.order.finInstrument.finInstrumentTypeCd),r(),o("ngIf",t.order.qtyType==="SHARES_UNITS")}}function to(e,n){e&1&&(u(0),s(1,"dict")),e&2&&g(p(1,1,"orion.app.ALL"))}function io(e,n){if(e&1&&f(0,eo,3,3,"ng-container",15)(1,to,2,3,"ng-template",null,1,B),e&2){let t=F(2),i=_(2);o("ngIf",i.order.totalQuantity!==0)("ngIfElse",t)}}function ro(e,n){e&1&&(x(0),c(1,"div"),u(2),s(3,"dict"),a(),E()),e&2&&(r(2),g(p(3,1,"orion.current-orders.AT_MARKET")))}function no(e,n){e&1&&(c(0,"div",41),u(1),s(2,"dict"),a()),e&2&&(r(),I(" ",p(2,1,"orion.current-orders.LIMIT")," "))}function oo(e,n){if(e&1&&(x(0),c(1,"div"),d(2,"div",39),s(3,"priceFormatter"),f(4,no,3,3,"div",40),a(),E()),e&2){let t=_(2);r(2),o("innerHtml",O(3,2,t.order.specificPrice,t.order.finInstrument.marketSymbol),b),r(2),o("ngIf",t.order.finInstrument.finInstrumentTypeCd!=="FIXED_INCOME")}}function ao(e,n){if(e&1&&(c(0,"div",41),u(1),s(2,"dict"),d(3,"span",42),s(4,"priceFormatter"),a()),e&2){let t=_(3);r(),I(" ",p(2,2,"orion.current-orders.STOP_PRICE"),": "),r(2),o("innerHtml",O(4,4,t.order.stopLimitPrice,t.order.finInstrument.marketSymbol),b)}}function co(e,n){if(e&1&&(x(0),c(1,"div"),d(2,"div",39),s(3,"priceFormatter"),f(4,ao,5,7,"div",40),a(),E()),e&2){let t=_(2);r(2),o("innerHtml",O(3,2,t.order.specificPrice,t.order.finInstrument.marketSymbol),b),r(2),o("ngIf",t.order.stopLimitPrice>0)}}function lo(e,n){if(e&1&&(d(0,"div",39),s(1,"valueStyler")),e&2){let t=_(2);o("innerHtml",O(1,1,t.order.avgExecPrice,"1.3-4"),b)}}function so(e,n){if(e&1&&(c(0,"div"),d(1,"span",39),s(2,"valueStyler"),a()),e&2){let t=_(3);r(),o("innerHtml",O(2,1,t.getGrossAmountByCurrency(t.order),"1.2-2"),b)}}function po(e,n){if(e&1&&(c(0,"div",43),s(1,"dict"),f(2,so,3,4,"div",37),a()),e&2){let t=_(2);h("data-header",p(1,2,"orion.current-orders.GROSS_AMOUNT")),r(2),o("ngIf",t.isOrderByCurrencyDefined(t.order)&&t.currentOrdersService.showTradeGrossAmt(t.order))}}function mo(e,n){if(e&1&&(c(0,"div",44),d(1,"app-status",45),a()),e&2){let t=_(2);r(),o("status",t.order.statusComb)}}function fo(e,n){if(e&1&&(c(0,"div",50),d(1,"span",42),s(2,"valueStyler"),u(3," / "),d(4,"span",42),s(5,"valueStyler"),a()),e&2){let t=_(3);r(),o("innerHtml",O(2,2,t.order.execQty,"1.0-0"),b),r(3),o("innerHtml",O(5,5,t.order.totalQuantity,"1.0-0"),b)}}function uo(e,n){if(e&1&&(c(0,"div",41),d(1,"app-status",51),a()),e&2){let t=_(3);r(),o("status",t.order.statusComb)}}function _o(e,n){if(e&1&&(c(0,"div",41),d(1,"app-status",52),a()),e&2){let t=_(3);r(),o("status",t.order.statusComb)("colorText",!0)}}function vo(e,n){if(e&1&&(c(0,"div",41),d(1,"span",39),s(2,"dateFormatter"),a()),e&2){let t=_(3);r(),o("innerHtml",p(2,1,t.order.ordExpDt),b)}}function go(e,n){if(e&1&&(c(0,"div",46)(1,"div",47)(2,"div",48),d(3,"app-status",45),a(),c(4,"div"),f(5,fo,6,8,"div",49)(6,uo,2,1,"div",40)(7,_o,2,2,"div",40)(8,vo,3,3,"div",40),a()()()),e&2){let t=_(2);r(3),o("status",t.order.statusComb),r(2),o("ngIf",t.order.execQty>0),r(),o("ngIf",t.order.execQty>0),r(),o("ngIf",t.order.execQty<=0),r(),o("ngIf",t.isOrderExpDateFormatted())}}function Co(e,n){if(e&1&&(c(0,"div",4)(1,"div",5),s(2,"dict"),c(3,"div"),u(4),s(5,"dict"),a()(),c(6,"div",6)(7,"div",7)(8,"div",8),f(9,Qn,4,8,"img",9),c(10,"div",10),u(11),a()(),c(12,"div",11),u(13),a()()(),f(14,Wn,7,5,"div",12),c(15,"div",13),s(16,"dict"),c(17,"div",14),f(18,Jn,2,0,"ng-container",15)(19,io,3,2,"ng-template",null,0,B),a()(),c(21,"div",16),s(22,"dict"),c(23,"div"),f(24,ro,4,3,"ng-container",17)(25,oo,5,5,"ng-container",17)(26,co,5,5,"ng-container",17),a()(),c(27,"div",18),s(28,"dict"),f(29,lo,2,4,"div",19),a(),c(30,"div",20),s(31,"dict"),c(32,"div",21),d(33,"div",22),s(34,"dateFormatter"),d(35,"div",23),s(36,"dateFormatter"),a()(),f(37,po,3,4,"div",24),c(38,"div",25),f(39,mo,2,1,"div",26),a(),c(40,"div",27),s(41,"dict"),s(42,"dict"),f(43,go,9,5,"div",28),a(),c(44,"div",29)(45,"div"),d(46,"app-order-actions",30),a()(),c(47,"div",31),d(48,"app-orion-message",32),a()()),e&2){let t=n.ngIf,i=
1F(20),l=_();fe("or-table-row-no-bottom-border",l.rejectReason),r(),h("data-header",p(2,29,"orion.current-orders.OPERATION")),r(3),g(p(5,31,"orion.current-orders."+l.order.operation)),r(2),o("ngClass",t===1?"or-flex-full":null),r(3),o("ngIf",l.order.finInstrument.finInstrumentTypeCd!=l.ProductType.MUTUAL_FUND&&l.order.finInstrument.marketSymbol.symbolCntryCd&&l.order.finInstrument.marketSymbol.symbolCntryCd.trim().length>0),r(2),g(l.order.finInstrument.marketSymbol.symbolCd),r(2),g(l.order.finInstrument.displayDesc),r(),o("ngIf",t>1&&l.account==null),r(),h("data-header",p(16,33,"orion.current-orders.QUANTITY_SHORT")),r(3),o("ngIf",l.order.qtyType==="FREE_SHARES_UNITS")("ngIfElse",i),r(3),o("ngSwitch",l.order.priceType),h("data-header",p(22,35,"orion.current-orders.PRICE")),r(3),o("ngSwitchCase","MARKET"),r(),o("ngSwitchCase","SPECIFIC"),r(),o("ngSwitchCase","STOP"),r(),h("data-header",p(28,37,"orion.current-orders.OBTAINED_AVERAGE_PRICE")),r(2),o("ngIf",l.order.avgExecPrice>0),r(),h("data-header",p(31,39,"orion.current-orders.CREATED_DATE")),r(3),o("innerHtml",p(34,41,l.order.ordEntryDt),b),r(2),o("innerHtml",O(36,43,l.order.ordEntryDt,"shortTime"),b),r(2),o("ngIf",l.activeGrossAmount),r(2),o("ngIf",(l.order==null?null:l.order.statusComb)&&l.order.statusComb!==""),r(),h("data-header",p(41,46,"orion.current-orders.STATUS")+" / "+p(42,48,"orion.current-orders.EXPIRED_DAY")),r(3),o("ngIf",(l.order==null?null:l.order.statusComb)&&l.order.statusComb!==""),r(3),o("selectedOrder",l.order)("currentOrdersDialogRef",l.dialogRef),r(2),o("message",l.rejectReason)}}function So(e,n){if(e&1&&(c(0,"div",53),d(1,"div",54),c(2,"div",55),d(3,"app-orion-message",56),a()()),e&2){let t=_();r(3),o("message",t.rejectReason)}}var Kr=(()=>{class e{constructor(t,i,l,m,v){this.imageService=t,this.userProfileService=i,this.userInfo=l,this.currentOrdersService=m,this.store=v,this.ProductType=Le,this.CompactThemeValue=$i}ngOnInit(){this.lengthSelection$=Ot(this.store).pipe(j(t=>ce(t).length)),this.compactTheme$=this.store.pipe(U(Pi)),this.activeGrossAmount=this.userProfileService.hasAccessGrossAmountSection&&this.userProfileService.isCDBNUser&&this.userInfo.isRep}ngOnChanges(t){t.order&&this.order.rejectDescription&&(this.rejectReason={message:this.order.rejectDescription,severity:ut.ERROR})}isOrderExpDateFormatted(){return(this.order.statusComb===C.PARTIEL||this.order.statusComb===C.OUVERT||this.order.statusComb===C.ATTENTE)&&(this.order.finInstrument.finInstrumentTypeCd===Le.OPTION||this.order.finInstrument.finInstrumentTypeCd===Le.STOCK)}isOrderByCurrencyDefined(t){return t?.orderByCurrency?.[this.currencySelected]?.grossAmount!==null&&t?.orderByCurrency?.[this.currencySelected]?.grossAmount!==void 0}getGrossAmountByCurrency(t){return t?.orderByCurrency?.[this.currencySelected]?.grossAmount}static{this.\u0275fac=function(i){return new(i||e)(S(gt),S(ne),S(_t),S(ae),S(Y))}}static{this.\u0275cmp=R({type:e,selectors:[["app-current-orders-item"]],inputs:{account:"account",order:"order",dialogRef:"dialogRef",currencySelected:"currencySelected"},standalone:!1,features:[G([ae,Je,Tt,Ze,Ke,L]),dt],decls:3,vars:4,consts:[["qty",""],["qtyAll",""],["appCollapsible","","class","or-table-row or-table-align-top",3,"or-table-row-no-bottom-border",4,"ngIf"],["class","or-table-row or-mobile-hide",4,"ngIf"],["appCollapsible","",1,"or-table-row","or-table-align-top"],[1,"or-table-cell","or-position-3","or-grow-currentOrderOperation"],[1,"or-table-cell","or-position-2","or-grow-currentDescription",3,"ngClass"],[1,"d-flex","flex-column"],[1,"d-flex","align-items-center"],["height","14px","class","pr-1",3,"src",4,"ngIf"],[1,"text-content-compact-theme","or-bold"],[1,"label-small-compact-theme","or-color-grey-dark-blue","or-medium","or-uppercase"],["class","or-table-cell or-position-1 or-grow-currentOrderAccount",4,"ngIf"],[1,"or-table-cell","or-position-5","or-numeric"],[1,"or-numeric"],[4,"ngIf","ngIfElse"],[1,"or-table-cell","or-position-6","or-numeric",3,"ngSwitch"],[4,"ngSwitchCase"],[1,"or-table-cell","or-collapsible","or-numeric","or-position-8"],[3,"innerHtml",4,"ngIf"],[1,"or-table-cell","or-collapsible","or-position-7"],[1,"pl-1"],[1,"text-nowrap","label-small-compact-theme",3,"innerHtml"],[1,"label-small-compact-theme","or-color-grey-dark-blue","or-medium",3,"innerHtml"],["class","or-table-cell or-position-10 or-numeric",4,"ngIf"],[1,"or-table-cell","or-right","or-align-self-center","or-collapsible","or-position-9","or-mobile-hide","or-grow-currentOrderIcon"],["class","pr-1",4,"ngIf"],[1,"or-table-cell","or-position-4","or-grow-currentOrderStatus","or-align-self-center"],["class","d-flex",4,"ngIf"],[1,"or-table-cell","or-position-11","or-align-self-center","or-grow-currentOrderIcon"],[3,"selectedOrder","currentOrdersDialogRef"],[1,"or-table-cell","or-position-12","or-desktop-hide","or-flex-full"],[3,"message"],["height","14px",1,"pr-1",3,"src"],[1,"or-table-cell","or-position-1","or-grow-currentOrderAccount"],[1,"label-small-compact-theme",3,"innerHtml"],[1,"label-small-compact-theme","or-color-grey-dark-blue","or-medium"],[4,"ngIf"],[3,"value","product"],[3,"innerHtml"],["class","or-label_small",4,"ngIf"],[1,"or-label_small"],[1,"or-label_small",3,"innerHtml"],[1,"or-table-cell","or-position-10","or-numeric"],[1,"pr-1"],["sizeIcon","normal","display","icon",3,"status"],[1,"d-flex"],[1,"pt-1"],[1,"or-desktop-hide"],["class","or-label_small or-nowrap",4,"ngIf"],[1,"or-label_small","or-nowrap"],["display","text",3,"status"],["display","text",3,"status","colorText"],[1,"or-table-row","or-mobile-hide"],[1,"or-table-cell","or-grow-currentOrderOperation"],[1,"or-table-cell","or-grow-rejectReason"],[1,"w-100",3,"message"]],template:function(i,l){i&1&&(f(0,Co,49,50,"div",2),s(1,"async"),f(2,So,4,1,"div",3)),i&2&&(o("ngIf",p(1,2,l.lengthSelection$)),r(2),o("ngIf",l.rejectReason))},dependencies:[re,N,Si,hi,Ye,Oe,fr,xe,Yr,k,It,D,mr,Ee,ze,At],styles:["[_nghost-%COMP%]{display:block}",".or-table-cell.or-grow-currentDescription[_ngcontent-%COMP%]{flex-grow:2.5!important}.or-table-cell.or-grow-currentOrderAccount[_ngcontent-%COMP%]{flex-grow:1.5!important}.or-table-cell.or-grow-currentOrderStatus[_ngcontent-%COMP%]{flex-grow:1.25!important}.or-table-cell.or-grow-currentOrderOperation[_ngcontent-%COMP%]{flex-grow:1!important}.or-table-cell.or-grow-currentOrderIcon[_ngcontent-%COMP%]{flex-grow:.5!important}.or-table-cell.or-grow-rejectReason[_ngcontent-%COMP%]{flex-grow:12!important}.or-symbol-width[_ngcontent-%COMP%]{width:150px}.mc-w-35[_ngcontent-%COMP%]{width:35%}.mc-w-60[_ngcontent-%COMP%]{width:60%}.mc-w-95[_ngcontent-%COMP%]{width:95%}"],changeDetection:0})}}return e})();var xo=(e,n,t,i,l)=>[e,!0,n,null,t,i,l],Eo=e=>[e],en=()=>[1,2,3,4,5],Zt=()=>[1,2],tn=()=>[1,2,3,4],Io=()=>[1,2,3];function bo(e,n){if(e&1&&(x(0),d(1,"app-widget-bar",10)(2,"app-refresh",11),c(3,"div",12),d(4,"app-compact-view-toggle",13),a(),E()),e&2){let t=_(2);r(),o("mobile",t.mobile),r(),o("pageId",t.RefreshedPage.ACTIVITY_ORDERS)("quote",!1),r(2),o("mobile",t.mobile)}}function Oo(e,n){if(e&1&&(c(0,"div",7)(1,"div",8)(2,"h1",8),u(3),s(4,"dict"),a(),f(5,bo,5,4,"ng-container",9),a()()),e&2){let t=_();r(),o("ngClass",t.mobile?"mc-d-flex flex-column mc-pb-xsmall":"d-inline-flex align-items-center mc-py-normal mc-w-100"),r(),o("ngClass",t.mobile?"or-font-24 mc-my-0 mc-pb-xsmall":"h1-title-compact-theme mc-m-0"),r(),g(p(4,4,"orion.menu.ORDER")),r(2),o("ngIf",!t.modal)}}function Ao(e,n){if(e&1&&d(0,"app-orion-message",18),e&2){let t=_().ngIf;o("messages",t.messageList)}}
1function Ro(e,n){if(e&1&&d(0,"app-dropdown",43),e&2){let t=_(4);o("selectionHolder",t.grossAmountSelection)}}function Fo(e,n){if(e&1&&(c(0,"div",41),f(1,Ro,1,1,"app-dropdown",42),a()),e&2){let t=_(3);r(),o("ngIf",t.activeGrossAmount)}}function No(e,n){if(e&1&&(d(0,"app-dropdown",44),s(1,"dict")),e&2){let t=_(3);ke("aria-label",p(1,2,"orion.current-orders.PRODUCTS")),o("selectionHolder",t.productSelection)}}function Do(e,n){if(e&1&&(d(0,"app-dropdown",45),s(1,"dict")),e&2){let t=_(3);ke("aria-label",p(1,2,"orion.current-orders.MARKETS")),o("selectionHolder",t.marketSelection)}}function wo(e,n){if(e&1&&d(0,"app-dropdown",48),e&2){let t=_(4);o("selectionHolder",t.grossAmountSelection)}}function Po(e,n){if(e&1&&(c(0,"div",46),f(1,wo,1,1,"app-dropdown",47),a()),e&2){let t=_(3);r(),o("ngIf",t.activeGrossAmount)}}function Bo(e,n){if(e&1&&(c(0,"div",54)(1,"app-tooltip",55),s(2,"dict"),d(3,"app-status",56),a()()),e&2){let t=_().$implicit,i=_(5);r(),o("textTooltip",p(2,5,t.tooltipName)),r(2),o("display","counter")("status",t.label)("counter",t.value)("counterStyle",i.CounterStyle.StatusCounter)}}function ko(e,n){if(e&1&&(x(0),f(1,Bo,4,7,"div",53),E()),e&2){let t=n.$implicit;r(),o("ngIf",t.value>0)}}function Lo(e,n){if(e&1&&(x(0),c(1,"div",50),u(2),s(3,"dict"),a(),c(4,"div",51),f(5,ko,2,1,"ng-container",52),a(),E()),e&2){let t=_().ngIf;r(2),I("",p(3,2,"orion.current-orders.ORDERS")," "),r(3),o("ngForOf",t)}}function Uo(e,n){if(e&1&&(c(0,"div",49),f(1,Lo,6,4,"ng-container",9),a()),e&2){let t=n.ngIf;r(),o("ngIf",t&&t.length)}}function Mo(e,n){if(e&1&&d(0,"app-refresh",11),e&2){let t=_(3);o("pageId",t.RefreshedPage.ACTIVITY_ORDERS)("quote",!1)}}function jo(e,n){if(e&1&&(c(0,"div")(1,"div",57),u(2),s(3,"dict"),a(),c(4,"div",58),d(5,"span",59),s(6,"valueStyler"),a()()),e&2){let t=_(2).ngIf;r(2),g(p(3,2,"orion.current-orders.TOTAL_BUY")),r(3),o("innerHtml",O(6,4,t.data.totalBuy,"1.2-2"),b)}}function Ho(e,n){if(e&1&&(c(0,"div")(1,"div",57),u(2),s(3,"dict"),a(),c(4,"div",58),d(5,"span",59),s(6,"valueStyler"),a()()),e&2){let t=_(2).ngIf;r(2),g(p(3,2,"orion.current-orders.TOTAL_SELL")),r(3),o("innerHtml",O(6,4,t.data.totalSell,"1.2-2"),b)}}function Vo(e,n){if(e&1&&(c(0,"a",75),u(1),s(2,"dict"),a()),e&2){let t=_(4);o("appSortService",t.sort),r(),I(" ",p(2,2,"orion.current-orders.ACCOUNT")," ")}}function $o(e,n){if(e&1&&(c(0,"a",76)(1,"div",77),u(2),s(3,"dict"),a(),c(4,"app-info-tooltip",78),s(5,"dict"),u(6),s(7,"dict"),a()()),e&2){let t=_(4);o("appSortService",t.sort)("key","orderByCurrency."+vi(11,Eo,t.grossAmountSelection.selected)+".grossAmount"),r(2),I(" ",p(3,5,"orion.current-orders.GROSS_AMOUNT")," "),r(2),o("ariaLabel",p(5,7,"orion.app.TOOLTIPS")),r(2),I(" ",p(7,9,"orion.current-orders.GROSS_AMOUNT_INFO")," ")}}function Go(e,n){if(e&1&&(c(0,"div"),d(1,"app-current-orders-item",79),a()),e&2){let t=n.$implicit,i=_(4);r(),o("order",t)("account",i.account)("dialogRef",i.dialogRef)("currencySelected",i.grossAmountSelection.selected)}}function Yo(e,n){if(e&1&&d(0,"app-rate-link",82),e&2){let t=_(4).ngIf,i=_();o("hasRateHyperLink",!1)("exchangeRate",i.fillExchangeRate(t.data))}}function zo(e,n){if(e&1&&(c(0,"div"),d(1,"app-current-orders-total",80),s(2,"async"),s(3,"orderBy"),f(4,Yo,1,2,"app-rate-link",81),a()),e&2){let t,i=_(2).ngIf,l=_().ngIf,m=_();r(),o("currencySelected",m.grossAmountSelection.selected)("lengthSelection",p(2,5,m.lengthSelection$))("account",m.account)("filteredOrderList",O(3,7,i,m.sortedBy())),r(3),o("ngIf",l.data==null||l.data.exchangeRate==null||(t=l.data.exchangeRate[m.getExchangeRateKey()])==null?null:t.value)}}function qo(e,n){e&1&&(x(0),d(1,"app-bnc-disclaimer",83),s(2,"dict"),s(3,"dict"),E()),e&2&&(r(),o("message",p(2,2,"orion.current-orders.WARNING_CANCELED_ORDERS_NOTIFICATIONS"))("title",p(3,4,"orion.current-orders.WARNING_CANCELED_ORDERS_NOTIFICATIONS_TITLE")))}function Ko(e,n){if(e&1&&(x(0),c(1,"div",60)(2,"div",61)(3,"div",62),s(4,"async"),c(5,"a",63),u(6),s(7,"dict"),a(),c(8,"a",64),u(9),s(10,"dict"),a(),f(11,Vo,3,4,"a",65),s(12,"async"),c(13,"a",66),u(14),s(15,"dict"),a(),c(16,"a",67),u(17),s(18,"dict"),a(),c(19,"a",68),u(20),s(21,"dict"),a(),c(22,"a",69)(23,"span",70),u(24),s(25,"dict"),a()(),f(26,$o,8,13,"a",71),d(27,"div",72),c(28,"a",73)(29,"div"),u(30),s(31,"dict"),d(32,"br"),u(33),s(34,"dict"),a()(),d(35,"div",72),a(),f(36,Go,2,4,"div",74),s(37,"orderBy"),f(38,zo,5,10,"div",9),a(),f(39,qo,4,6,"ng-container",9),a(),E()),e&2){let t=_().ngIf,i=_(2);r(3),o("offsetTop",p(4,22,i.searchBarRepService.searchBarHeight$)),r(2),o("appSortService",i.sort),r(),g(p(7,24,"orion.current-orders.OPERATION")),r(2),o("appSortService",i.sort),r(),g(p(10,26,"orion.current-orders.DESCRIPTION")),r(2),o("ngIf",p(12,28,i.lengthSelection$)>1&&!i.account),r(2),o("appSortService",i.sort),r(),g(p(15,30,"orion.current-orders.QUANTITY_SHORT")),r(2),o("appSortService",i.sort),r(),g(p(18,32,"orion.current-orders.PRICE")),r(2),o("appSortService",i.sort),r(),g(p(21,34,"orion.current-orders.OBTAINED_AVERAGE_PRICE")),r(2),o("appSortService",i.sort),r(2),g(p(25,36,"orion.current-orders.CREATED_DATE")),r(2),o("ngIf",i.activeGrossAmount),r(2),o("appSortService",i.sort),r(2),I(" ",p(31,38,"orion.current-orders.STATUS")," / "),r(3),I(" ",p(34,40,"orion.current-orders.EXPIRED_DAY")," "),r(3),o("ngForOf",O(37,42,t,i.sortedBy()))("ngForTrackBy",i.trackByOrder),r(2),o("ngIf",i.activeGrossAmount),r(),o("ngIf",i.userProfile.hasAccessToTrading)}}function Qo(e,n){if(e&1){let t=me();x(0),c(1,"div",19)(2,"div",20)(3,"app-filter-container",21),f(4,Fo,2,1,"div",22),c(5,"div",23)(6,"div",24)(7,"div",25)(8,"div",26),u(9),s(10,"dict"),a(),c(11,"app-bnc-list-group-selector",27),s(12,"dict"),J("selectionChange",function(l){X(t);let m=_(2);return W(m.statusSelectionChange(l))}),a()(),c(13,"div",25)(14,"div",28),u(15),s(16,"dict"),a(),f(17,No,2,4,"app-dropdown",29),a(),c(18,"div",25)(19,"div",30),u(20),s(21,"dict"),a(),f(22,Do,2,4,"app-dropdown",31),a(),c(23,"div",32)(24,"div",33),u(25),s(26,"dict"),a(),c(27,"input",34),fi("ngModelChange",function(l){X(t);let m=_(2);return mi(m.symbolFilter,l)||(m.symbolFilter=l),W(l)}),a()(),f(28,Po,2,1,"div",35),a()()()(),c(29,"div",36)(30,"div",37),f(31,Uo,2,1,"div",38)(32,Mo,1,2,"app-refresh",39)(33,jo,7,7,"div",9)(34,Ho,7,7,"div",9),a()()(),f(35,Ko,40,45,"ng-container",6),s(36,"async"),d(37,"app-investcube-info",40),E()}if(e&2){let t=_().ngIf,i=_(),l=F(9);r(),fe("flex-column-reverse",!i.mobile),r(),fe("pt-3",i.modal),r(),o("hideBorder",!i.mobile)("hideCollapsibleToggle",!i.mobile)("open",i.symbolFilter||!i.mobile)("filters",i.filters)("hideFilterStatus",!0),r(),o("ngIf",i.mobile),r(5),I("",p(10,30,"orion.current-orders.STATUS")," "),r(2),o("getPlaceholder",i.getPlaceholder.bind(i))("options",i.options)("listGroupItems",i.status)("selection",i.selection)("labels",i.labels),ke("aria-label",p(12,32,"orion.current-orders.STATUS")),r(4),I("",p(16,34,"orion.current-orders.PRODUCTS")," "),r(2),o("ngIf",i.productSelection),r(3),I("",p(21,36,"orion.current-orders.MARKETS")," "),r(2),o("ngIf",i.marketSelection),r(3),I("",p(26,38,"orion.current-orders.SYMBOL")," "),r(2),di("ngModel",i.symbolFilter),r(),o("ngIf",!i.mobile),r(3),o("ngIf",t.data.statusCounterList),r(),o("ngIf",i.modal),r(),o("ngIf",i.userProfile.displayTotalBuy),r(),o("ngIf",i.userProfile.displayTotalSell),r(),o("ngIf",!p(36,40,i.loading$))("ngIfElse",l)}}function Xo(e,n){if(e&1&&(x(0),f(1,Ao,1,1,"app-orion-message",14),
1c(2,"div",15)(3,"div",16),d(4,"app-investcube-logo",17),a(),f(5,Qo,38,42,"ng-container",9),s(6,"statusFilter"),s(7,"advancedFilters"),a(),E()),e&2){let t=n.ngIf,i=_();r(),o("ngIf",t.messageList),r(),o("ngClass",i.modal?void 0:"or-content"),r(3),o("ngIf",Ci(7,6,gi(14,xo,O(6,3,t.data.orderList,i.statusSelection.selected),i.orderItemTransformer,i.productSelection.selected,i.marketSelection.selected,i.symbolFilter)))}}function Wo(e,n){e&1&&mt(0)}function Jo(e,n){e&1&&mt(0)}function Zo(e,n){if(e&1&&(c(0,"div",84),f(1,Wo,1,0,"ng-container",85),c(2,"div",86),f(3,Jo,1,0,"ng-container",85),a()()),e&2){let t=_(),i=F(9),l=F(11);o("ngClass",t.modal?void 0:"or-content"),r(),o("ngTemplateOutlet",l),r(2),o("ngTemplateOutlet",i)}}function ea(e,n){e&1&&mt(0)}function ta(e,n){if(e&1&&(c(0,"div",84),f(1,ea,1,0,"ng-container",85),a()),e&2){let t=_(),i=F(9);o("ngClass",t.modal?void 0:"or-content"),r(),o("ngTemplateOutlet",i)}}function ia(e,n){e&1&&(c(0,"div",98),d(1,"app-skeleton",99),a())}function ra(e,n){e&1&&(c(0,"div",91)(1,"div",92),d(2,"app-skeleton",93),a(),c(3,"div",94),d(4,"app-skeleton",93),a(),c(5,"div",94),d(6,"app-skeleton",93),a(),c(7,"div",95),d(8,"app-skeleton",93),a(),c(9,"div",96),d(10,"app-skeleton",93),a(),f(11,ia,2,0,"div",97),a()),e&2&&(r(11),o("ngForOf",A(1,Zt)))}function na(e,n){e&1&&(c(0,"div",89),f(1,ra,12,2,"div",90),a()),e&2&&(r(),o("ngForOf",A(1,en)))}function oa(e,n){if(e&1&&(c(0,"div",103),d(1,"app-skeleton",104),a()),e&2){let t=n.$implicit;o("ngClass",t===1?"mc-mr-xsmall":"")}}function aa(e,n){if(e&1&&(c(0,"div",101),f(1,oa,2,1,"div",102),a()),e&2){let t=n.$implicit;o("ngClass",t===3?"mc-mt-medium":""),r(),o("ngForOf",A(2,Zt))}}function ca(e,n){if(e&1&&(c(0,"div",101)(1,"div",105),d(2,"app-skeleton",104),a(),d(3,"div",106),a()),e&2){let t=n.$implicit;o("ngClass",t===1?"mc-mt-medium":"mc-mb-xsmall")}}function la(e,n){e&1&&(c(0,"div",49),f(1,aa,2,3,"div",100)(2,ca,4,1,"div",100),a()),e&2&&(r(),o("ngForOf",A(2,tn)),r(),o("ngForOf",A(3,Zt)))}function sa(e,n){if(e&1&&(c(0,"div",87),f(1,na,2,2,"div",88)(2,la,3,4,"div",38),a()),e&2){let t=_();fe("pt-3",t.modal),r(),o("ngIf",!t.mobile),r(),o("ngIf",t.mobile)}}function pa(e,n){e&1&&(c(0,"div",111),d(1,"app-skeleton",93),a())}
1function da(e,n){e&1&&(c(0,"div",112),d(1,"app-skeleton",104),a())}function ma(e,n){e&1&&(c(0,"div")(1,"div",107)(2,"div",91),f(3,pa,2,0,"div",108),a()(),c(4,"div",109)(5,"div",91),f(6,da,2,0,"div",110),a()()()),e&2&&(r(3),o("ngForOf",A(2,en)),r(3),o("ngForOf",A(3,tn)))}function fa(e,n){e&1&&(c(0,"div",115),d(1,"app-skeleton",104),a())}function ua(e,n){e&1&&(c(0,"div")(1,"div",113),d(2,"app-skeleton"),a(),f(3,fa,2,0,"div",114),a()),e&2&&(r(3),o("ngForOf",A(1,Io)))}function _a(e,n){if(e&1&&f(0,ma,7,4,"div",9)(1,ua,4,2,"div",9),e&2){let t=_();o("ngIf",!t.mobile),r(),o("ngIf",t.mobile)}}var va=3e3,Yt={data:{openedOrderCount:0,partiallyExecOrderCount:0,execOrderCount:0,totalSell:0,totalBuy:0,orderList:[],exchangeRate:{}}},Ft=(()=>{class e extends z{constructor(t,i,l,m,v,y,ee,tt,kt,Lt){super(),this.sort=t,this.currentOrdersService=i,this.imageService=l,this.advancedFiltersService=m,this.userProfile=v,this.userInfo=y,this.searchBarRepService=ee,this.breakpointObserver=tt,this.refreshService=kt,this.store$=Lt,this.modal=!1,this.statusList=this.currentOrdersService.createStatusList(!1),this.mobile=!1,this.RefreshedPage=w,this.orderItemTransformer=jr,this.CounterStyle=ki,this.options={showAllOption:!0,allowGroupSelection:!0,singleSelect:!1,showReset:!1},this.waitForOrderCreation=!0,this.loadingSubject=new te(!1),this.loading$=this.loadingSubject.asObservable()}ngOnInit(){this.placeHolder=()=>this.currentOrdersService.getLabelAllStatus(),this.sort.setOrderBy("ordEntryDt"),this.sort.setAscending(!1),this.initListGroupSelectorStatus(),this.initObservables(),this.account&&(this.accountSelection$=P([this.account.acctNo])),this.productSelection=this.advancedFiltersService.createProductList(),this.marketSelection=this.advancedFiltersService.createMarketList(),sr(this.store$).subscribe(t=>{let i=t.length>0&&t.every(l=>l?.acctCurrCd===t[0]?.acctCurrCd)?t[0]?.acctCurrCd:ve.CAD;this.grossAmountSelection=this.advancedFiltersService.createCurrencyList(i)}),this.lengthSelection$=Ot(this.store$).pipe(j(t=>ce(t).length)),this.breakpointObserver.observe([Ce.MOBILE]).pipe(Q(this.destroyed$)).subscribe(t=>{this.mobile=t.matches}),this.activeGrossAmount=this.userProfile.hasAccessGrossAmountSection&&this.userProfile.isCDBNUser&&this.userInfo.isRep}initListGroupSelectorStatus(){this.statusSelection={selected:"",list:this.currentOrdersService.createStatusList()},this.status=this.currentOrdersService.createStatus(),this.selection=this.currentOrdersService.getStatusIds(this.status),this.labels=this.currentOrdersService.getLabelsDropdownOrders()}get filters(){return[this.statusSelection,this.productSelection,this.marketSelection,this.symbolFilter]}sortedBy(){return this.symbolFilter!=null&&this.sort.orderBy()===""?"finInstrument.marketSymbol.symbolCd":this.sort.orderBy()}trackByOrder(t,i){return i.ordId}getStatusDictKey(t){return Ji.find(t.statusComb,this.statusList).label}getExchangeRateKey(){return this.grossAmountSelection.selected===ve.USD?"USD/CAD":"CAD/USD"}fillExchangeRate(t){let i=t.exchangeRate?t.exchangeRate[this.getExchangeRateKey()]:null;return i?!i.srcCurrencyCd||!i.tgtCurrencyCd?se(V({},i),{srcCurrencyCd:this.grossAmountSelection.selected===ve.USD?ve.USD:ve.CAD,tgtCurrencyCd:this.grossAmountSelection.selected===ve.USD?ve.CAD:ve.USD}):i:null}statusSelectionChange(t){let i=Object.assign([],t),l=t.find(v=>v===C.OUVERT_PARTIEL),m=t.findIndex(v=>v===C.OUVERT_PARTIEL);if(l){let v=t[m].split("|");t.splice(m,1),t=t.concat(v)}this.statusSelection.selected=t,this.selection=i}getPlaceholder(t,i,l,m){if(t)return l.all;if(i.size===1){let v=Array.from(i.keys())[0],y=nr(m,v);if(y)return y.primaryLabel}return i.size>1?Array.from(i.keys()).length+" "+l.multi:l.default}initObservables(){this.refreshService.initTime(w.ACTIVITY_ORDERS),this.currentOrdersResponse$=ge([this.store$.pipe(U(be,w.ACTIVITY_ORDERS)),this.store$.pipe(U(Ge)),this.store$.pipe(U(ye))]).pipe(oi(()=>this.account&&this.waitForOrderCreation?(this.waitForOrderCreation=!1,Ut(va)):Ut(0)),ie(()=>this.loadingSubject.next(!0)),pe(([,t,i])=>{let l;return this.account?l=[this.account.acctNo]:l=ce(i),!l.length||!t.length?P(Yt):this.fetchOrders(l,t).pipe(j(m=>{let v=this.currentOrdersService.createStatusCounter(m.data.orderList);return{data:se(V({},m.data),{statusCounterList:v}),messageList:m.messageList}}))}),ie(()=>this.loadingSubject.next(!1)),K(()=>P(Yt)))}fetchOrders(t,i){return this.currentOrdersService.getOrders(t,!1).pipe(j(l=>{let m=Hr(l.data),v=Vr(m);for(let y of v.orderList){let ee=St(i,y.account.acctNo);y.portfolioName=ee.portfolioName,y.acctTypeDesc=ee.accountList.find(tt=>tt.acctNo===y.account.acctNo).acctTypeDesc,y.statusDesc=this.getStatusDictKey(y),y.iconId=$r(y.statusComb)}return{data:v,messageList:l.messageList}}),Q(this.destroyed$),K(()=>P(Yt)))}static{this.\u0275fac=function(i){return new(i||e)(S(L),S(ae),S(gt),S(Je),S(ne),S(_t),S(we),S(Se),S(Ie),S(Y))}}static{this.\u0275cmp=R({type:e,selectors:[["app-current-orders"]
1],inputs:{account:"account",symbolFilter:"symbolFilter",dialogRef:"dialogRef",modal:"modal"},standalone:!1,features:[G([ae,Je,Tt,Ze,Ke,L]),$],decls:12,vars:5,consts:[["fetchingOrders",""],["fetchingTable",""],["tableSkeleton",""],["headerSkeleton",""],["id","content","tabindex","-1"],["class","or-heading",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"or-heading"],[3,"ngClass"],[4,"ngIf"],[1,"mc-pb-0","pl-lg-4",3,"mobile"],[1,"mc-d-flex",3,"pageId","quote"],[1,"mc-ml-auto"],[3,"mobile"],["styleClass","mc-w-100 mc-d-flex","class","mc-pb-normal",3,"messages",4,"ngIf"],[1,"rounded","mc-pb-xsmall",3,"ngClass"],[1,"mc-w-100","mc-d-flex"],["styleClass","mc-d-flex"],["styleClass","mc-w-100 mc-d-flex",1,"mc-pb-normal",3,"messages"],[1,"row"],[1,"col-12"],[3,"hideBorder","hideCollapsibleToggle","open","filters","hideFilterStatus"],["ngProjectAs","filter-header","class","mc-ml-auto mc-mt-auto",5,["filter-header"],4,"ngIf"],[1,"py-2-compact-theme","mc-w-100"],[1,"mc-d-flex","flex-column","flex-lg-row","justify-content-start","align-items-start","align-items-lg-center","flex-wrap"],[1,"mc-pb-xsmall","mc-mr-small"],["id","status-filter-label",1,"or-label_small","end"],["aria-labelledby","status-filter-label",3,"selectionChange","getPlaceholder","options","listGroupItems","selection","labels","aria-label"],["id","product-filter-label",1,"or-label_small"],["styleClass","or-wide","id","product-filter","aria-labelledby","product-filter-label",3,"aria-label","selectionHolder",4,"ngIf"],["id","market-filter-label",1,"or-label_small"],["id","market-filter","aria-labelledby","market-filter-label",3,"aria-label","selectionHolder",4,"ngIf"],[1,"mc-pb-xsmall","or-symbol-width"],["id","symbol-filter-label",1,"or-label_small"],["matInput","","type","text","aria-labelledby","symbol-filter-label",1,"or-symbol-width",3,"ngModelChange","ngModel"],["class","mc-pb-xsmall mc-ml-auto mc-mt-auto",4,"ngIf"],[1,"col-12","mc-pl-0"],[1,"mc-d-flex","flex-row","py-2-compact-theme"],["class","mc-w-100",4,"ngIf"],["class","mc-d-flex",3,"pageId","quote",4,"ngIf"],["styleClass","mc-d-flex mc-pt-xsmall"],["ngProjectAs","filter-header",5,["filter-header"],1,"mc-ml-auto","mc-mt-auto"],["id","gross-amount-filter-mobile",3,"selectionHolder",4,"ngIf"],["id","gross-amount-filter-mobile",3,"selectionHolder"],["styleClass","or-wide","id","product-filter","aria-labelledby","product-filter-label",3,"aria-label","selectionHolder"],["id","market-filter","aria-labelledby","market-filter-label",3,"aria-label","selectionHolder"],[1,"mc-pb-xsmall","mc-ml-auto","mc-mt-auto"],["id","gross-amount-filter",3,"selectionHolder",4,"ngIf"],["id","gross-amount-filter",3,"selectionHolder"],[1,"mc-w-100"],[1,"mc-ml-xsmall","or-font-12","or-medium","or-black"],[1,"mc-d-flex","flex-wrap"],[4,"ngFor","ngForOf"],["class","mc-ml-xsmall mc-pt-xxsmall",4,"ngIf"],[1,"mc-ml-xsmall","mc-pt-xxsmall"],[3,"textTooltip"],[3,"display","status","counter","counterStyle"],[1,"or-label_small"],[1,"or-number"],[3,"innerHtml"],[1,"or-table"],[1,"mc-mb-xsmall","or-table-body"],["appSticky","",1,"or-table-row","or-table-header",3,"offsetTop"],["href","javascript:void(0)","key","operation",1,"or-table-cell","or-grow-currentOrderOperation",3,"appSortService"],["href","javascript:void(0)","key","finInstrument.marketSymbol.symbolCd",1,"or-table-cell","or-grow-currentDescription",3,"appSortService"],["href","javascript:void(0)","class","or-table-cell or-grow-currentOrderAccount","key","acctTypeDesc",3,"appSortService",4,"ngIf"],["href","javascript:void(0)","key","totalQuantity",1,"or-table-cell","or-numeric",3,"appSortService"],["href","javascript:void(0)","key","specificPrice",1,"or-table-cell","or-numeric",3,"appSortService"],["href","javascript:void(0)","key","avgExecPrice",1,"or-table-cell","or-numeric",3,"appSortService"],["href","javascript:void(0)","key","ordEntryDt",1,"or-table-cell",3,"appSortService"],[1,"mc-pl-xxsmall"],["href","javascript:void(0)","class","or-table-cell or-numeric mc-d-flex",3,"appSortService","key",4,"ngIf"],[1,"or-table-cell","or-grow-currentOrderIcon"],["href","javascript:void(0)","key","statusDesc",1,"or-table-cell","or-grow-currentOrderStatus",3,"appSortService"],[4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:void(0)","key","acctTypeDesc",1,"or-table-cell","or-grow-currentOrderAccount",3,"appSortService"],["href","javascript:void(0)",1,"or-table-cell","or-numeric","mc-d-flex",3,"appSortService","key"],[1,"mc-mr-xxsmall"],[3,"ariaLabel"],[3,"order","account","dialogRef","currencySelected"],[3,"currencySelected","lengthSelection","account","filteredOrderList"],["class","or-group-collapsible",3,"hasRateHyperLink","exchangeRate",4,"ngIf"],[1,"or-group-collapsible",3,"hasRateHyperLink","exchangeRate"],[3,"message","title"],[1,"rounded","mc-pb-xlarge",3,"ngClass"],[4,"ngTemplateOutlet"],[1,"mc-mt-xxlarge"],[1,"row","col-12"],["class","mc-w-95",4,"ngIf"],[1,"mc-w-95"],["class","mc-d-flex",4,"ngFor","ngForOf"],[1,"mc-d-flex"],[1,"mc-mr-medium",2,"flex","1"],["size","medium"],[1,"mc-mr-medium",2,"flex","2"],[1,"mc-mr-medium",2,"flex","0.5"],[1,"mc-mr-medium",2,"flex","0.8"],["class","mc-mr-medium mc-flex-1",4,"ngFor","ngForOf"],[1,"mc-mr-medium","mc-flex-1"],["size","medium","className","mc-br-large"],["class","mc-d-flex mc-w-100",3,"ngClass",4,"ngFor","ngForOf"],[1,"mc-d-flex","mc-w-100",3,"ngClass"],["class","mc-flex-1 mc-w-50",3,"ngClass",4,"ngFor","ngForOf"],[1,"mc-flex-1","mc-w-50",3,"ngClass"],["size","large"],[1,"mc-mr-xsmall","mc-flex-1","mc-w-50"],[1,"mc-flex-1","mc-d-flex"],[1,"mc-mr-xsmall","mc-w-35"],["class","mc-w-25 mc-mr-small",4,"ngFor","ngForOf"],[1,"mc-mr-xsmall","mc-w-60","mc-mt-xxlarge"],["class","mc-w-25 mc-mr-normal",4,"ngFor","ngForOf"],[1,"mc-w-25","mc-mr-small"],[1,"mc-w-25","mc-mr-normal"],[1,"mc-mr-xsmall","mc-w-50"],["class","mc-mr-xsmall mc-mt-medium mc-w-50",4,"ngFor","ngForOf"],[1,"mc-mr-xsmall","mc-mt-medium","mc-w-50"]],template:function(i,l){if(i&1&&(c(0,"div",4),f(1,Oo,6,6,"div",5)(2,Xo,8,20,"ng-container",6),s(3,"async"),f(4,Zo,4,3,"ng-template",null,0,B)(6,ta,2,2,"ng-template",null,1,B)(8,sa,3,4,"ng-template",null,2,B)(10,_a,2,2,"ng-template",null,3,B),a()),i&2){let m=F(5);r(),o("ngIf",!l.modal),r(),o("ngIf",p(3,3,l.currentOrdersResponse$))("ngIfElse",m)}},dependencies:[re,ue,N,yi,ht,yt,Et,Ae,Qe,Ye,xt,ur,dr,Fe,bt,qe,pr,or,xe,Xe,Yi,Zi,er,We,Ui,Mr,Kr,k,It,Re,D,Ke,Ze],styles:[".or-table-cell.or-grow-currentDescription[_ngcontent-%COMP%]{flex-grow:2.5!important}.or-table-cell.or-grow-currentOrderAccount[_ngcontent-%COMP%]{flex-grow:1.5!important}.or-table-cell.or-grow-currentOrderStatus[_ngcontent-%COMP%]{flex-grow:1.25!important}.or-table-cell.or-grow-currentOrderOperation[_ngcontent-%COMP%]{flex-grow:1!important}.or-table-cell.or-grow-currentOrderIcon[_ngcontent-%COMP%]{flex-grow:.5!important}.or-table-cell.or-grow-rejectReason[_ngcontent-%COMP%]{flex-grow:12!important}.or-symbol-width[_ngcontent-%COMP%]{width:150px}.mc-w-35[_ngcontent-%COMP%]{width:35%}.mc-w-60[_ngcontent-%COMP%]{width:60%}.mc-w-95[_ngcontent-%COMP%]{width:95%}"],changeDetection:0})}}return e})();var ga="/market-event",Nt=(()=>{class e{constructor(t){this.http=t}getMarketEvents(t){return t.length?this.http.get(ga,Ve({params:{acctNo:t},spinner:rt.NONE})).pipe(j(({data:i})=>i)):P([])}static{this.\u0275fac=function(i){return new(i||e)(de(He))}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac})}}return e})();function Sa(e,n){if(e&1&&(c(0,"div",23)(1,"div",24),s(2,"dict"),d(3,"div",25),s(4,"dateFormatter"),d(5,"div",26),s(6,"dateFormatter"),a(),c(7,"div",27),s(8,"dict"),d(9,"div",25),s(10,"dateFormatter"),d(11,"div",26),s(12,"dateFormatter"),a(),d(13,"div",28),s(14,"dict"),d(15,"div",29),s(16,"dict"),c(17,"div",30),s(18,"dict"),c(19,"div",31)(20,"span"),u(21),s(22,"dict"),a(),d(23,"span",32),a(),c(24,"div",31)(25,"span"),u(26),s(27,"dict"),a(),d(28,"app-value-styler",33),a(),c(29,"div",31)(30,"span"),u(31),s(32,"dict"),a(),d(33,"span",32),s(34,"dateFormatter"),a()(),c(35,"div",34),s(36,"dict"),d(37,"app-value-styler",33),a(),d(38,"div",35),s(39,"dict"),c(40,"div",36),s(41,"dict"),d(42,"app-value-styler",33),a(),d(43,"div",37),s(44,"dict"),c(45,"div",38),s(46,"dict"),d(47,"app-status",39),a()()),e&2){let t=n.$implicit,i=_(3);r(),h("data-header",p(2,28,"orion.activity.market.events.CREATION_DATE")),r(2),o("innerHtml",p(4,30,t.creationDate),b),r(2),o("innerHtml",O(6,32,t.creationDate,"mediumTime"),b),r(2),h("data-header",p(8,35,"orion.activity.market.events.EFFECTIVE_DATE")),r(2),o("innerHtml",p(10,37,t.effectiveDate),b),r(2),o("innerHtml",O(12,39,t.effectiveDate,"mediumTime"),b),r(2),o("innerHtml",i.getInstruction(t.instruction),b),h("data-header",p(14,42,"orion.activity.market.events.INSTRUCTION")),r(2),o("innerHtml",t.account,b),h("data-header",p(16,44,"orion.activity.market.events.ACCOUNT")),r(2),h("data-header",p(18,46,"orion.activity.market.events.DETAILS")),r(4),g(p(22,48,"orion.activity.market.events.detail.SYMBOL")),r(2),o("innerHtml",t.targetSymbol,b),r(3),g(p(27,50,"orion.activity.market.events.detail.QUANTITY")),r(2),o("value",t.quantity),r(3),g(p(32,52,"orion.activity.market.events.detail.EXPIRY")),r(2),o("innerHtml",O(34,54,t.expiryDate,"medium"),b),r(2),h("data-header",p(36,57,"orion.activity.market.events.TENDER_QUANTITY")),r(2),o("value",t.tenderQty),r(),o("innerHtml",t.description,b),h("data-header",p(39,59,"orion.activity.market.events.DESCRIPTION")),r(2),h("data-header",p(41,61,"orion.activity.market.events.ADDITIONAL_QUANTITY")),r(2),o("value",t.additionalQty),r(),o("innerHtml",t.refNo,b),h("data-header",p(44,63,"orion.activity.market.events.REFERENCE_NUMBER")),r(2),h("data-header",p(4
16,65,"orion.activity.market.events.STATUS")),r(2),o("status",t.status)("colorText",!0)}}function ha(e,n){if(e&1&&(x(0),f(1,Sa,48,67,"div",22),s(2,"orderBy"),E()),e&2){let t=_().ngIf,i=_();r(),o("ngForOf",O(2,1,t,i.sort.orderBy()))}}function ya(e,n){if(e&1&&(x(0),f(1,ha,3,4,"ng-container",21),s(2,"async"),E()),e&2){let t=_(),i=F(46);r(),o("ngIf",!p(2,2,t.loading$))("ngIfElse",i)}}function Ta(e,n){e&1&&d(0,"app-spinner")}var rn=(()=>{class e extends z{constructor(t,i,l,m,v,y){super(),this.sort=t,this.searchBarRepService=i,this.refreshService=l,this.activityMarketEvents=m,this.store$=v,this.dict=y,this.mobile=!1,this.RefreshedPage=w,this.loadingSubject=new te(!1),this.loading$=this.loadingSubject.asObservable()}ngOnInit(){this.refreshService.initTime(w.ACTIVITY_MARKET_EVENTS),this.setDefaultSort(),this.getMarketEventsForSelectedAccounts(),this.store$.select(wi).pipe(Q(this.destroyed$)).subscribe(t=>this.mobile=t)}setDefaultSort(){this.sort.orderBy()===""&&(this.sort.setOrderBy("creationDt"),this.sort.setAscending(!1))}getMarketEventsForSelectedAccounts(){this.marketEvents$=ge([this.store$.pipe(U(be,w.ACTIVITY_MARKET_EVENTS)),this.store$.pipe(U(ye))]).pipe(ie(()=>this.loadingSubject.next(!0)),pe(([,t])=>this.activityMarketEvents.getMarketEvents(ce(t))),ie(()=>this.loadingSubject.next(!1)))}getInstruction(t){switch(t){case"OFFER":return this.dict.entry("orion.activity.market.events.instruction.OFFER");case"SUBSCR":return this.dict.entry("orion.activity.market.events.instruction.SUBSCR");default:return t}}static{this.\u0275fac=function(i){return new(i||e)(S(L),S(we),S(Ie),S(Nt),S(Y),S(vt))}}static{this.\u0275cmp=R({type:e,selectors:[["app-events"]],standalone:!1,features:[G([Nt,L]),$],decls:47,vars:54,consts:[["fetchingMarketEvents",""],["id","content","tabindex","-1"],[1,"or-heading"],[3,"ngClass"],[1,"pb-1","pb-lg-0","pl-lg-4",3,"mobile"],[1,"d-flex",3,"pageId","quote"],[1,"or-content","rounded","pb-3"],[1,"or-table"],[1,"or-table-body"],["appSticky","",1,"or-table-row","or-table-header",3,"offsetTop"],["href","javascript:void(0)","key","creationDt",1,"or-table-cell","or-grow-creation-dt",3,"appSortService"],["href","javascript:void(0)","key","effDt",1,"or-table-cell","or-grow-eff-dt",3,"appSortService"],["href","javascript:void(0)","key","instruction",1,"or-table-cell","or-grow-instruction",3,"appSortService"],["href","javascript:void(0)","key","account",1,"or-table-cell","or-grow-account",3,"appSortService"],["href","javascript:void(0)","key","details",1,"or-table-cell","or-grow-details",3,"appSortService"],["href","javascript:void(0)","key","tenderQty",1,"or-table-cell","or-grow-tender-qty",3,"appSortService"],["href","javascript:void(0)","key","description",1,"or-table-cell","or-grow-description",3,"appSortService"],["href","javascript:void(0)","key","additionalQty",1,"or-table-cell","or-grow-additional-qty",3,"appSortService"],["href","javascript:void(0)","key","refNo",1,"or-table-cell","or-grow-ref-no",3,"appSortService"],["href","javascript:void(0)","key","status",1,"or-table-cell","or-grow-status",3,"appSortService"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["appCollapsible","","class","or-table-row or-table-align-top",4,"ngFor","ngForOf"],["appCollapsible","",1,"or-table-row","or-table-align-top"],[1,"d-flex","flex-column","or-table-cell","or-grow-creation-dt","or-position-5","or-collapsible"],[1,"or-stretch",3,"innerHtml"],[1,"or-label_small",3,"innerHtml"],[1,"d-flex","flex-column","or-table-cell","or-grow-eff-dt","or-position-6","or-collapsible"],[1,"or-table-cell","or-grow-instruction","or-position-7","or-collapsible",3,"innerHtml"],[1,"or-table-cell","or-grow-account","or-position-1",3,"innerHtml"],[1,"d-flex","flex-column","or-table-cell","or-grow-details","or-position-8","or-collapsible"],[1,"or-stretch"],[3,"innerHtml"],["digits","1.2-2",3,"value"],[1,"or-table-cell","or-grow-tender-qty","or-position-3"],[1,"or-table-cell","or-grow-description","or-position-2",3,"innerHtml"],[1,"or-table-cell","or-grow-additional-qty","or-position-9","or-collapsible"],[1,"or-table-cell","or-grow-ref-no","or-position-10","or-collapsible",3,"innerHtml"],[1,"or-table-cell","or-grow-status","or-position-4"],["display","both",3,"status","colorText"]],template:function(i,l){i&1&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"h1",3),u(4),s(5,"dict"),a(),d(6,"app-widget-bar",4)(7,"app-refresh",5),a()(),c(8,"div",6)(9,"div",7)(10,"div",8)(11,"div",9),s(12,"async"),c(13,"a",10),u(14),s(15,"dict"),a(),c(16,"a",11),u(17),s(18,"dict"),a(),c(19,"a",12),u(20),s(21,"dict"),a(),c(22,"a",13),u(23),s(24,"dict"),a(),c(25,"a",14),u(26),s(27,"dict"),a(),c(28,"a",15),u(29),s(30,"dict"),a(),c(31,"a",16),u(32),s(33,"dict"),a(),c(34,"a",17),u(35),s(36,"dict"),a(),c(37,"a",18),u(38),s(39,"dict"),a(),c(40,"a",19),u(41),s(42,"dict"),a()(),f(43,ya,3,4,"ng-container",20),s(44,"async"),a()()()(),f(45,Ta,1,0,"ng-template",null,0,B)),i&2&&(r(2),o("ngClass",l.mobile?"d-flex flex-column pb-1":"d-inline-flex align-items-center py-3"),r(),o("ngClass",l.mobile?"or-font-24 my-0 pb-1":"or-font-36 m-0"),r(),g(p(5,28,"orion.menu.MARKET_EVENTS")),r(2),o("mobile",l.mobile),r(),o("pageId",l.RefreshedPage.ACTIVITY_MARKET_EVENTS)("quote",!1),r(4),o("offsetTop",p(12,30,l.searchBarRepService.searchBarHeight$)),r(2),o("appSortService",l.sort),r(),g(p(15,32,"orion.activity.market.events.CREATION_DATE")),r(2),o("appSortService",l.sort),r(),g(p(18,34,"orion.activity.market.events.EFFECTIVE_DATE")),r(2),o("appSortService",l.sort),r(),g(p(21,36,"orion.activity.market.events.INSTRUCTION")),r(2),o("appSortService",l.sort),r(),g(p(24,38,"orion.activity.market.events.ACCOUNT")),r(2),o("appSortService",l.sort),r(),g(p(27,40,"orion.activity.market.events.DETAILS")),r(2),o("appSortService",l.sort),r(),g(p(30,42,"orion.activity.market.events.TENDER_QUANTITY")),r(2),o("appSortService",l.sort),r(),g(p(33,44,"orion.activity.market.events.DESCRIPTION")),r(2),o("appSortService",l.sort),r(),g(p(36,46,"orion.activity.market.events.ADDITIONAL_QUANTITY")),r(2),o("appSortService",l.sort),r(),g(p(39,48,"orion.activity.market.events.REFERENCE_NUMBER")),r(2),o("appSortService",l.sort),r(),g(p(42,50,"orion.activity.market.events.STATUS")),r(2),o("ngIf",p(44,52,l.marketEvents$)))},dependencies:[re,ue,N,Ae,Qe,Vi,Oe,Te,Fe,xe,Xe,k,Re,D,Ee],styles:['@charset "UTF-8";.or-table-cell.or-grow-creation-dt[_ngcontent-%COMP%], .or-table-cell.or-grow-eff-dt[_ng
1content-%COMP%]{flex-grow:.8!important}.or-table-cell.or-grow-instruction[_ngcontent-%COMP%]{flex-grow:.7!important}.or-table-cell.or-grow-account[_ngcontent-%COMP%]{flex-grow:.8!important}.or-table-cell.or-grow-details[_ngcontent-%COMP%]{flex-grow:1.5!important}.or-table-cell.or-grow-tender-qty[_ngcontent-%COMP%]{flex-grow:.5!important}.or-table-cell.or-grow-description[_ngcontent-%COMP%]{flex-grow:.8!important}.or-table-cell.or-grow-additional-qty[_ngcontent-%COMP%]{flex-grow:.5!important}.or-table-cell.or-grow-ref-no[_ngcontent-%COMP%]{flex-grow:.6!important}.or-table-cell.or-grow-status[_ngcontent-%COMP%]{flex-grow:1!important}'],changeDetection:0})}}return e})();var pt=(function(e){return e.CLIENT_NUMBER="CLIENT_NUMBER",e.NEW_CLIENT="NEW_CLIENT",e})(pt||{});var ti=ri(Tn());var Dt=(()=>{class e{constructor(t,i,l,m){this.fb=t,this.orionConfig=i,this.httpClient=l,this.authService=m,this.DOMAIN="bnc.ca",this.WITH_CREDENTIALS=!0,this.OBSERVE="response",this.RESPONSE_TYPE="text",this.IS_PCIS=!0,this.PROCESS_DELIVERY_SEARCH="processDeliverySearch.do",this.fundfactUrlSubject=new te(null),this.reset()}reset(){this.form=this.configForm()}getFundFactDeliveryTypes(){return[{value:"CLIENT_NUMBER",label:"orion.fund-fact-delivery.CLIENT_NUMBER"},{value:"NEW_CLIENT",label:"orion.fund-fact-delivery.NEW_CLIENT"}]}get fundfactUrl$(){return this.fundfactUrlSubject.asObservable()}fetchFundFactUrl(){let t=this.getFundFactUrl();t&&(this.fundfactUrlSubject.next(""),this.httpClient.get(t,Ve({api:Ai.ASSETS,withCredentials:this.WITH_CREDENTIALS,responseType:this.RESPONSE_TYPE,observe:this.OBSERVE})).subscribe(i=>{i.url.includes(this.PROCESS_DELIVERY_SEARCH)?this.fundfactUrlSubject.next(t):this.authService.logout()},i=>{this.authService.logout()}))}getFundFactUrl(){let t,i=`${this.orionConfig.fundFactUrl}/${this.PROCESS_DELIVERY_SEARCH}?`,l={source_site:this.orionConfig.siteCode,lang:this.orionConfig.lang,domain:this.DOMAIN,isPCIS:this.IS_PCIS};if(this.form.controls.clientType.status===lt.VALID&&this.form.value.clientType===pt.CLIENT_NUMBER&&this.form.controls.accountNo.status===lt.VALID){let m=se(V({},l),{clt_id:this.form.value.accountNo,new_clt_ind:0});t=`${i}${ti.default.stringify(m)}`}else if(this.form.controls.clientType.status===lt.VALID&&this.form.value.clientType===pt.NEW_CLIENT&&this.form.controls.newAccountNo.status===lt.VALID){let m=se(V({},l),{clt_id:this.form.value.newAccountNo,new_clt_ind:1});t=`${i}${ti.default.stringify(m)}`}return t}configForm(){return this.fb.group({clientType:[pt.CLIENT_NUMBER,nt.required],accountNo:[null,nt.required],newAccountNo:[null,[nt.required,nt.minLength(6)]]})}static{this.\u0275fac=function(i){return new(i||e)(de(Xi),de(Oi),de(He),de(Ri))}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac})}}return e})();function wa(e,n){e&1&&(c(0,"div",12),d(1,"app-single-account-selection",13),s(2,"dict"),a()),e&2&&(r(),ke("aria-label",p(2,6,"orion.app.ACCOUNT")),o("canMultiSelect",!1)("showFlags",!1)("showAccountRoots",!0)("showAccounts",!1)("canSelectAccountRoot",!0))}function Pa(e,n){if(e&1&&(c(0,"div",14),d(1,"input",15,0),s(3,"dict"),a()),e&2){let t=_();r(),fe("or-error-input",t.form.get("newAccountNo").dirty&&!t.form.get("newAccountNo").valid),o("placeholder",ui(p(3,4,"orion.fund-fact-delivery.ENTE
1R_ACCOUNT_NUMBER")))}}function Ba(e,n){if(e&1&&(d(0,"iframe",17),s(1,"safeUrl")),e&2){let t=_().ngIf;o("src",p(1,1,t),li)}}function ka(e,n){if(e&1&&(x(0),f(1,Ba,2,3,"iframe",16),E()),e&2){let t=n.ngIf;r(),o("ngIf",t)}}var xn=(()=>{class e extends z{constructor(t){super(),this.fundfactDeliverityService=t,this.tradesGroupKey=Br,this.accountRootFilter=Hi,this.maxLength=6}ngOnInit(){this.clientTypeList={selected:"",list:this.fundfactDeliverityService.getFundFactDeliveryTypes()},this.fundfactDeliverityService.reset(),this.form=this.fundfactDeliverityService.form,this.form.valueChanges.subscribe(()=>{this.fundfactDeliverityService.fetchFundFactUrl()})}static{this.\u0275fac=function(i){return new(i||e)(S(Dt))}}static{this.\u0275cmp=R({type:e,selectors:[["app-fund-facts-delivery"]],standalone:!1,features:[G([Pr,Dt]),$],decls:16,vars:13,consts:[["input",""],[3,"formGroup"],["id","content","tabindex","-1",1,"pt-1"],[1,"d-lg-flex","flex-lg-column","pb-lg-1","align-items-lg-start","d-inline-flex","align-items-center","py-3"],[1,"or-font-36","m-lg-0","my-0","pb-1"],[1,"or-content","rounded"],[1,"d-lg-flex","flex-wrap","align-items-top","pt-2","pb-2"],[1,"col-sm-4","pr-2","pb-2"],["styleClass","or-wide","aria-labelledby","client-type-label","formControlName","clientType","id","clientTypeInput",3,"selectionHolder","aria-label"],["class","col-lg-3 col-12 p-0",4,"ngIf"],["class","flex col-lg-3 col-12 p-0",4,"ngIf"],[4,"ngIf"],[1,"col-lg-3","col-12","p-0"],["styleClass","w-100","id","acctNo","formControlName","accountNo",3,"aria-label","canMultiSelect","showFlags","showAccountRoots","showAccounts","canSelectAccountRoot"],[1,"flex","col-lg-3","col-12","p-0"],["type","text","matInput","","cdkFocusInitial","","id","new-account-no-input","formControlName","newAccountNo","maxlength","6",1,"w-100",3,"placeholder"],["id","iframeFundFact","width","100%","height","800","class","border border-0",3,"src",4,"ngIf"],["id","iframeFundFact","width","100%","height","800",1,"border","border-0",3,"src"]],template:function(i,l){i&1&&(c(0,"form",1)(1,"div",2)(2,"div")(3,"div",3)(4,"h1",4),u(5),s(6,"dict"),a()()(),c(7,"div",5)(8,"div",6)(9,"div",7),d(10,"app-dropdown",8),s(11,"dict"),a(),f(12,wa,3,8,"div",9)(13,Pa,4,6,"div",10),a(),f(14,ka,2,1,"ng-container",11),s(15,"async"),a()()()),i&2&&(o("formGroup",l.form),r(5),g(p(6,7,"orion.menu.FUND_FACT_DELIVERY")),r(5),o("selectionHolder",l.clientTypeList),ke("aria-label",p(11,9,"orion.fund-fact-delivery.CLIENT_SELECTION")),r(2),o("ngIf",l.clientTypeList.selected==="CLIENT_NUMBER"),r(),o("ngIf",l.clientTypeList.selected==="NEW_CLIENT"),r(),o("ngIf",p(15,11,l.fundfactDeliverityService.fundfactUrl$)))},dependencies:[N,zi,ht,yt,Gi,Qi,Ki,qi,Et,xt,Rr,k,D,_r],encapsulation:2,changeDetection:0})}}return e})();var wt=(e,n,t)=>{let i=[];return e&&i.push(e.acctNo),n&&i.push(n.acctNo),i.length>0?i:t},In=(e,n)=>{let t=/\d{3}-\d{5}-\d{7}/,i=/\w{7}/;if(t.test(e)&&i.test(n))return"TO_A_BROKERAGE_ACCOUNT";if(i.test(e)&&t.test(n))return"TO_A_BANK_ACCOUNT"},Pt=(e,n)=>{let t=En(e.fromAcctNo,n),i=En(e.toAcctNo,n);return{fromAcctTypeDesc:t?t.acctTypeDesc:"",fromPortfolioName:t?t.portfolioName:"",toAcctTypeDesc:i?i.acctTypeDesc:"",toPortfolioName:i?
1i.portfolioName:""}},En=(e,n)=>{let t=ji(n,e),i=St(n,e);if(t&&i)return{acctTypeDesc:t.acctTypeDesc,portfolioName:i.portfolioName}};function La(e,n){if(e&1&&(x(0),c(1,"div",4),u(2," @ "),d(3,"app-value-styler",5),a(),c(4,"div",0)(5,"div",1),d(6,"app-value-styler",2),a(),c(7,"div"),u(8),a()(),E()),e&2){let t=_();r(3),o("value",t.fundTransfer.exchangeRateValue),r(3),o("value",t.fundTransfer.toAcctAmt),r(2),g(t.fundTransfer.toAcctCurrCd)}}var bn=(()=>{class e{constructor(){}ngOnInit(){this.monetaryConversion=this.fundTransfer.fromAcctCurrCd!==this.fundTransfer.toAcctCurrCd}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=R({type:e,selectors:[["app-current-instruction-amount"]],inputs:{fundTransfer:"fundTransfer"},standalone:!1,decls:7,vars:3,consts:[[1,"d-flex","justify-content-lg-end"],[1,"pr-1"],["digits","1.2-2",3,"value"],[4,"ngIf"],[1,"d-flex","justify-content-lg-end","or-label_small","pt-1"],["digits","1.5-5",3,"value"]],template:function(i,l){i&1&&(c(0,"div")(1,"div",0)(2,"div",1),d(3,"app-value-styler",2),a(),c(4,"div"),u(5),a()(),f(6,La,9,3,"ng-container",3),a()),i&2&&(r(3),o("value",l.fundTransfer.fromAcctAmt),r(2),g(l.fundTransfer.fromAcctCurrCd),r(),o("ngIf",l.monetaryConversion))},dependencies:[N,Te],encapsulation:2,changeDetection:0})}}return e})();var An=()=>[1,2,3],Ma=()=>[1,2,3,4,5],Bt=()=>[1,2],ja=()=>[1,2,3,4];function Ha(e,n){if(e&1&&(c(0,"div"),d(1,"app-status",21),a()),e&2){let t=_(3);r(),o("counter",t.totalNew)}}function Va(e,n){if(e&1&&(c(0,"div"),d(1,"app-status",22),a()),e&2){let t=_(3);r(),o("counter",t.totalPostdated)}}function $a(e,n){if(e&1&&(c(0,"div"),d(1,"app-status",23),a()),e&2){let t=_(3);r(),o("counter",t.totalProcessing)}}function Ga(e,n){if(e&1&&(c(0,"div"),d(1,"app-status",24),a()),e&2){let t=_(3);r(),o("counter",t.totalExecuted)}}function Ya(e,n){if(e&1&&(c(0,"div"),d(1,"app-status",25),a()),e&2){let t=_(3);r(),o("counter",t.totalError)}}function za(e,n){if(e&1&&(c(0,"div"),d(1,"app-status",26),a()),e&2){let t=_(3);r(),o("counter",t.totalCancelled)}}function qa(e,n){if(e&1&&(c(0,"div"),d(1,"app-status",27),a()),e&2){let t=_(3);r(),o("counter",t.totalRejected)}}function Ka(e,n){if(e&1&&(d(0,"img",53),s(1,"flagPath"),s(2,"flagALT"),s(3,"dict")),e&2){let t=_(2).$implicit;o("src",p(1,2,t.fromAcctCurrCd),Be),h("alt",p(3,6,p(2,4,t.fromAcctCurrCd)))}}function Qa(e,n){if(e&1&&(x(0),f(1,Ka,4,8,"img",51),c(2,"span",52),u(3),a(),E()),e&2){let t=_().$implicit;r(),o("ngIf",t.fromAcctCurrCd&&t.fromAcctCurrCd.trim().length>0),r(2),g(t.fromAcctTypeDesc)}}function Xa(e,n){e&1&&(c(0,"span",52),u(1),s(2,"dict"),a()),e&2&&(r(),g(p(2,1,"orion.fund-transfers.BANK")))}function Wa(e,n){if(e&1&&(c(0,"span"),u(1),a()),e&2){let t=_().$implicit;r(),g(t.fromPortfolioName)}}function Ja(e,n){if(e&1&&(d(0,"img",53),s(1,"flagPath"),s(2,"flagALT"),s(3,"dict")),e&2){let t=_(2).$implicit;o("src",p(1,2,t.toAcctCurrCd),Be),h("alt",p(3,6,p(2,4,t.toAcctCurrCd)))}}function Za(e,n){if(e&1&&(x(0),f(1,Ja,4,8,"img",51),c(2,"span",52),u(3),a(),E()),e&2){let t=_().$implicit;r(),o("ngIf",t.toAcctCurrCd&&t.toAcctCurrCd.trim().length>0),r(2),g(t.toAcctTypeDesc)}}function ec(e,n){e&1&&(c(0,"span",52),u(1),s(2,"dict"),a()),e&2&&(r(),g(p(2,1,"orion.fund-transfers.BANK")))}function tc(e,n){if(e&1&&(c(0,"span"),u(1),a()),e&2){let t=_().$implicit;r(),g(t.toPortfolioName)}}function ic(e,n){if(e&1&&(c(0,"div")(1,"div",28)(2,"div",29),s(3,"dict"),u(4),a(),c(5,"div",30)(6,"div",31)(7,"div",32)(8,"div",33),f(9,Qa,4,2,"ng-container",2)(10,Xa,3,3,"ng-template",null,1,B),a(),c(12,"div")(13,"div",34),f(14,Wa,2,1,"span",7),a(),c(15,"div",34),u(16),a()()(),c(17,"div",35),d(18,"app-icon",36),a()()(),c(19,"div",37),d(20,"app-icon",36),a(),c(21,"div",38)(22,"div",31)(23,"div",32)(24,"div",33),f(25,Za,4,2,"ng-container",2)(26,ec,3,3,"ng-template",null,1,B),a(),c(28,"div")(29,"div",34),f(30,tc,2,1,"span",7),a(),c(31,"div",34),u(32),a()()()()(),c(33,"div",39),s(34,"dict"),d(35,"app-current-instruction-amount",40),a(),c(36,"div",41),s(37,"dict"),c(38,"div",42),d(39,"div",43),s(40,"dateFormatter"),d(41,"div",44),s(42,"dateFormatter"),a()(),c(43,"div",45),s(44,"dict"),c(45,"div",42),d(46,"div",43),s(47,"dateFormatter"),d(48,"div",44),s(49,"dateFormatter"),a()(),d(50,"div",46),s(51,"dict"),c(52,"div",47),s(53,"dict"),c(54,"div",42)(55,"div",48),d(56,"app-status",49)(57,"app-status",50),a()()()()()),e&2){let t=n.$implicit,i=F(11);r(2),h("data-header",p(3,24,"orion.fund-transfers.OPERATION")),r(2),I(" ",t.instrDesc," "),r(5),o("ngIf",t.fromAcctTypeDesc!=="")("ngIfElse",i),r(5),o("ngIf",t.fromPortfolioName),r(2),g(t.fromAcctNo),r(9),o("ngIf",t.toAcctTypeDesc!=="")("ngIfElse",i),r(5),o("ngIf",t.toPortfolioName),r(2),g(t.toAcctNo),r(),h("data-header",p(34,26,"orion.fund-transfers.AMOUNT")),r(2),o("fundTransfer",t),r(),h("data-header",p(37,28,"orion.fund-transfers.CREATION_DATE")),r(3),o("innerHtml",p(40,30,t.creationDt),b),r(2),o("innerHtml",O(42,32,t.creationDt,"mediumTime"),b),r(2),h("data-header",p(44,35,"orion.fund-transfers.EFFECTIVE_DATE")),r(3),o("innerHtml",p(47,37,t.effDt),b),r(2),o("innerHtml",O(49,39,t.effDt,"mediumTime"),b),r(2),o("innerHtml",t.instrId,b),h("data-header",p(51,42,"orion.fund-transfers.REFERENCE_NUMBER")),r(2),h("data-header",p(53,44,"orion.fund-transfers.STATUS")),r(4),o("status",t.status),r(),o("status",t.status)("colorText",!0)}}function rc(e,n){if(e&1&&(x(0),c(1,"div",5)(2,"div",6),f(3,Ha,2,1,"div",7)(4,Va,2,1,"div",7)(5,$a,2,1,"div",7)(6,Ga,2,1,"div",7)(7,Ya,2,1,"div",7)(8,za,2,1,"div",7)(9,qa,2,1,"div",7),a()(),c(10,"div",8)(11,"div",9)(12,"div",10),s(13,"async"),c(14,"a",11),u(15),s(16,"dict"),a(),c(17,"a",12),u(18),s(19,"dict"),a(),d(20,"div",13),c(21,"a",14),u(22),s(23,"dict"),a(),c(24,"a",15),u(25),s(26,"dict"),a(),c(27,"a",16),u(28),s(29,"dict"),a(),c(30,"a",17),u(31),s(32,"dict"),a(),c(33,"a",18),u(34),s(35,"dict"),a(),c(36,"a",19),u(37),s(38,"dict"),a()(),f(39,ic,58,46,"div",20),s(40,"orderBy"),a()(),E()),e&2){let t=_().ngIf,i=_();r(3),o("ngIf",i.totalNew>0),r(),o("ngIf",i.totalPostdated>0),r(),o("ngIf",i.totalProcessing>0),r(),o("ngIf",i.totalExecuted>0),r(),o("ngIf",i.totalError>0),r(),o("ngIf",i.totalCancelled>0),r(),o("ngIf",i.totalRejected>0),r(3),o("offsetTop",p(13,25,i.searchBarRepService.searchBarHeight$)),r(2),o("appSortService",i.sort),r(),g(p(16,27,"orion.fund-transfers.OPERATION")),r(2),o("appSortService",i.sort),r(),g(p(19,29,"orion.fund-transfers.FROM_ACCOUNT")),r(3),o("appSortService",i.sort),r(),g(p(23,31,"orion.fund-transfers.TO_ACCOUNT")),r(2),o("appSortService",i.sort),r(),g(p(26,33,"orion.fund-transfers.AMOUNT")),r(2),o("appSortService",i.sort),r(),g(p(29,35,"orion.fund-transfers.CREATION_DATE")),r(2),o("appSortService",i.sort),r(),g(p(32,37,"orion.fund-transfers.EFFECTIVE_DATE")),r(2),o("appSortService",i.sort),r(),g(p(35,39,"orion.fund-transfers.REFERENCE_NUMBER")),r(2),o("appSortService",i.sort),r(),g(p(38,41,"orion.fund-transfers.STATUS")),r(2),o("ngForOf",O(40,43,t.cashTransferList,i.sort.orderBy()))}}function nc(e,n){if(e&1&&(x(0),c(1,"div",3),d(2,"app-investcube-logo",4),a(),f(3,rc,41,46,"ng-container",2),s(4,"async"),E()),e&2){let t=_(),i=F(3);r(3),o("ngIf",!p(4,2,t.loading$))("ngIfElse",i)}}function oc(e,n){e&1&&(c(0,"div",62),d(1,"app-skeleton",63),a())}function ac(e,n){e&1&&(c(0,"div",72),d(1,"app-skeleton",68),a())}function cc(e,n){e&1&&(c(0,"div",73),d(1,"app-skeleton",68),a())}function lc(e,n){e&1&&(c(0,"div",59)(1,"div",64),d(2,"app-skeleton",65),a(),f(3,ac,2,0,"div",66),c(4,"div",67),d(5,"app-skeleton",68),a(),f(6,cc,2,0,"div",69),c(7,"div",70),d(8,"app-skeleton",68),a(),c(9,"div",71),d(10,"app-skeleton",68),a()()),e&2&&(r(3),o("ngForOf",A(2,Bt)),r(3),o("ngForOf",A(3,Bt)))}function sc(e,n){e&1&&(c(0,"div",56)(1,"div",57)(2,"div",58)(3,"div",59),f(4,oc,2,0,"div",60),a()()(),f(5,lc,11,4,"div",61),a()),e&2&&(r(4),o("ngForOf",A(2,An)),r(),o("ngForOf",A(3,Ma)))}function pc(e,n){e&1&&(c(0,"div",62),d(1,"app-skeleton",63),a())}function dc(e,n){if(e&1&&(c(0,"div",78),d(1,"app-skeleton",79),a()),e&2){let t=n.$implicit;o("ngClass",t==1?"mc-mr-xsmall":"")}}function mc(e,n){if(e&1&&(c(0,"div",76),f(1,dc,2,1,"div",77),a()),e&2){let t=n.$implicit;o("ngClass",t==3?"mc-mt-medium":""),r(),o("ngForOf",A(2,Bt))}}
1function fc(e,n){if(e&1&&(c(0,"div",76)(1,"div",80),d(2,"app-skeleton",79),a(),d(3,"div",81),a()),e&2){let t=n.$implicit;o("ngClass",t==1?"mc-mt-medium":"mc-mb-xsmall")}}function uc(e,n){e&1&&(c(0,"div",56)(1,"div",57)(2,"div",74)(3,"div",59),f(4,pc,2,0,"div",60),a()()(),c(5,"div"),f(6,mc,2,3,"div",75)(7,fc,4,1,"div",75),a()()),e&2&&(r(4),o("ngForOf",A(3,An)),r(2),o("ngForOf",A(4,ja)),r(),o("ngForOf",A(5,Bt)))}function _c(e,n){if(e&1&&(c(0,"div",54),f(1,sc,6,4,"div",55)(2,uc,8,6,"div",55),a()),e&2){let t=_();r(),o("ngIf",!t.mobile),r(),o("ngIf",t.mobile)}}var ii={startDate:void 0,endDate:void 0,completedCount:0,inProcessCount:0,cashTransferList:[]},Rn=(()=>{class e extends z{constructor(t,i,l,m,v,y,ee){super(),this.sort=t,this.userProfile=i,this.fundTransfersApiService=l,this.searchBarRepService=m,this.breakpointObserver=v,this.refreshService=y,this.store$=ee,this.mobile=!1,this.RefreshedPage=w,this.loadingSubject=new te(!1),this.loading$=this.loadingSubject.asObservable()}ngOnInit(){this.sort.orderBy()===""&&(this.sort.setOrderBy("creationDt"),this.sort.setAscending(!1)),this.initObservables(),this.breakpointObserver.observe([Ce.MOBILE]).pipe(Q(this.destroyed$)).subscribe(i=>{this.mobile=i.matches})}initObservables(){this.refreshService.initTime(w.ACTIVITY_FUNDS_TRANSFERS_CURRENT),this.fundTransfers$=ge([this.store$.pipe(U(be,w.ACTIVITY_FUNDS_TRANSFERS_CURRENT)),this.store$.pipe(U(Ge)),this.store$.pipe(U(ye))]).pipe(ie(()=>this.loadingSubject.next(!0)),pe(([,t,i])=>{let l=ce(i),m=wt(this.accountFrom,this.accountTo,l);return!m.length||!t.length?P(ii):this.fundTransfersApiService.getFundTransfers(m).pipe(j(v=>this.applyDescriptions(v,t)),j(v=>this.calculateTotals(v)),Q(this.destroyed$),K(()=>P(ii)))}),ie(()=>this.loadingSubject.next(!1)),K(()=>P(ii)))}applyDescriptions(t,i){return t.cashTransferList=t.cashTransferList.map(l=>V(V({},l),Pt(l,i))),t}calculateTotals(t){return this.totalNew=0,this.totalPostdated=0,this.totalProcessing=0,this.totalExecuted=0,this.totalError=0,this.totalCancelled=0,this.totalRejected=0,t.cashTransferList.forEach(i=>{switch(i.status){case"POSTDATED":this.totalPostdated++;break;case"EXECUTED":this.totalExecuted++;break;case"ERROR":this.totalError++;break;case"CANCELLED":this.totalCancelled++;break;case"REJECTED":this.totalRejected++;break;case"NEW":this.totalNew++;break;case"PROCESSING":this.totalProcessing++;break}}),t}static{this.\u0275fac=function(i){return new(i||e)(S(L),S(ne),S(De),S(we),S(Se),S(Ie),S(Y))}}static{this.\u0275cmp=R({type:e,selectors:[["app-current-instructions"]],inputs:{accountFrom:"accountFrom",accountTo:"accountTo"},standalone:!1,features:[G([De,L]),$],decls:4,vars:4,consts:[["fetchingCurrentFundsTransfers",""],["bankAccount",""],[4,"ngIf","ngIfElse"],[1,"w-100","d-inline-flex","pt-3"],["styleClass","d-flex"],[1,"or-box"],[1,"or-box-child","or-box-end"],[4,"ngIf"],[1,"or-table"],[1,"or-table-body"],["appSticky","",1,"or-table-row","or-table-header",3,"offsetTop"],["href","javascript:void(0)","key","instrDesc",1,"or-table-cell",3,"appSortService"],["href","javascript:void(0)","key","fromAcctTypeDesc",1,"or-table-cell","or-grow-account",3,"appSortService"],[1,"or-table-cell","or-grow-arrow-icon"],["href","javascript:void(0)","key","toAcctTypeDesc",1,"or-table-cell","or-grow-account",3,"appSortService"],["href","javascript:void(0)","key","fromAcctAmt",1,"or-table-cell","or-numeric",3,"appSortService"],["href","javascript:void(0)","key","creationDt",1,"or-table-cell","or-grow-creation-dt",3,"appSortService"],["href","javascript:void(0)","key","effDt",1,"or-table-cell","or-grow-eff-dt",3,"appSortService"],["href","javascript:void(0)","key","instrId",1,"or-table-cell","or-grow-ref-id",3,"appSortService"],["href","javascript:void(0)","key","status",1,"or-table-cell","or-grow-status",3,"appSortService"],[4,"ngFor","ngForOf"],["status","NEW","display","counter",3,"counter"],["status","POSTDATED","display","counter",3,"counter"],["status","PROCESSING","display","counter",3,"counter"],["status","EXECUTED","display","counter",3,"counter"],["status","ERROR","display","counter",3,"counter"],["status","CANCELLED","display","counter",3,"counter"],["status","REJECTED","display","counter",3,"counter"],["appCollapsible","",1,"or-table-row","or-table-align-top"],[1,"or-table-cell","or-position-8","or-collapsible"],[1,"or-table-cell","or-position-1","or-grow-account"],[1,"or-box","or-no-padding","or-box-nowrap","or-box-align-items-top"],[1,"or-box-child","or-no-gap","or-no-padding"],[1,"or-box-child","or-box-no-wrap","or-xsmall-gap","or-stretch","pt-0"],[1,"or-label_small"],[1,"or-box-child","or-box-end","or-desktop-hide"],["name","ico_arrow_full-right","size","big"],[1,"or-table-cell","or-collapsible","or-grow-arrow-icon","or-mobile-hide"],[1,"or-table-cell","or-position-2","or-grow-account"],[1,"or-table-cell","or-numeric","or-wrap","or-position-4"],[3,"fundTransfer"],[1,"or-table-cell","or-collapsible","or-grow-creation-dt","or-position-5"],[1,"or-box","or-no-padding"],[1,"or-box-child","or-no-padding","or-stretch",3,"innerHtml"],[1,"or-box-child","or-no-padding","or-label_small",3,"innerHtml"],[1,"or-table-cell","or-collapsible","or-grow-eff-dt","or-position-6"],[1,"or-table-cell","or-collapsible","or-grow-ref-id","or-position-7",3,"innerHtml"],[1,"or-table-cell","or-grow-status","or-position-3"],[1,"or-box-child","or-small-gap","or-no-padding"],["display","icon",3,"status"],["display","text",3,"status","colorText"],["class","adapted-size-img",3,"src",4,"ngIf"],[1,"or-nowrap"],[1,"adapted-size-img",3,"src"],[1,"or-content","rounded","mc-p-0"],["class","mc-w-100",4,"ngIf"],[1,"mc-w-100"],[1,"mc-d-flex","mc-justify-content-end"],[1,"mc-ml-small",2,"width","19%"],[1,"mc-d-flex"],["class","mc-flex-1 mc-ml-normal",4,"ngFor","ngForOf"],["class","mc-d-flex",4,"ngFor","ngForOf"],[1,"mc-flex-1","mc-ml-normal"],["size","medium",1,"mc-br-xxlarge","mc-w-25"],[1,"mc-mr-small","mc-flex-1","mc-mb-xxsmall"],["size","medium",1,"mc-br-medium"],["class","mc-mr-small mc-ml-small mc-mb-xxsmall","style","flex:2;",4,"ngFor","ngForOf"],[1,"mc-mr-small","mc-ml-small","mc-mb-xxsmall",2,"flex","0.5"],["size","medium",1,"mc-br-small","mc-my-xxsmall","mc-br-medium"],["class","mc-mr-small mc-ml-small mc-mb-xxsmall ","style","flex:0.75;",4,"ngFor","ngForOf"],[1,"mc-mr-small","mc-ml-small","mc-flex-1","mc-mb-xxsmall"],[1,"mc-ml-small","mc-flex-1","mc-mb-xxsmall"],[1,"mc-mr-small","mc-ml-small","mc-mb-xxsmall",2,"flex","2"],[1,"mc-mr-small","mc-ml-small","mc-mb-xxsmall",2,"flex","0.75"],[1,"mc-ml-small",2,"width","60%"],["class","mc-d-flex mc-w-100",3,"ngClass",4,"ngFor","ngForOf"],[1,"mc-d-flex","mc-w-100",3,"ngClass"],["class","mc-flex-1 mc-w-50",3,"ngClass",4,"ngFor","ngForOf"],[1,"mc-flex-1","mc-w-50",3,"ngClass"],["size","large"],[1,"mc-mr-xsmall","mc-flex-1","mc-w-50"],[1,"mc-flex-1","mc-d-flex"]],template:function(i,l){if(i&1&&(f(0,nc,5,4,"ng-container",2),s(1,"async"),f(2,_c,3,2,"ng-template",null,0,B)),i&2){let m=F(3);o("ngIf",p(1,2,l.fundTransfers$))("ngIfElse",m)}},dependencies:[re,ue,N,Ae,Oe,he,Fe,qe,xe,We,bn,k,Re,D,Ee,ze,At],styles:['@charset "UTF-8";.or-table-cell.or-grow-arrow-icon[_ngcontent-%COMP%]{flex-grow:.25!important}.or-table-cell.or-grow-ref-id[_ngcontent-%COMP%]{flex-grow:.6!important}.or-table-cell.or-grow-creation-dt[_ngcontent-%COMP%], .or-table-cell.or-grow-eff-dt[_ng
1content-%COMP%]{flex-grow:.8!important}.or-table-cell.or-grow-status[_ngcontent-%COMP%]{flex-grow:.9!important}.or-table-cell.or-grow-account[_ngcontent-%COMP%]{flex-grow:1.4!important}@media screen and (min-width:1290px){.or-table-cell.or-grow-status[_ngcontent-%COMP%]{flex-grow:1!important}.or-table-cell.or-grow-account[_ngcontent-%COMP%]{flex-grow:1.2!important}}.icon-waiting[_ngcontent-%COMP%]:before{color:#f5b81a}.icon-orders-error[_ngcontent-%COMP%]:before{color:#ec1d24}.icon-orders-expired[_ngcontent-%COMP%]:before{content:"\\e935";color:#7d7d7d}.icon-orders-cancelled[_ngcontent-%COMP%]:before{color:#ec1d24}.icon-orders-filled[_ngcontent-%COMP%]:before{color:#327d2a}.icon-orders-postdated[_ngcontent-%COMP%]:before{color:#428bca}.icon-orders-open[_ngcontent-%COMP%]:before{color:#00314e}.icon-orders-partial[_ngcontent-%COMP%]:before{color:#327d2a}.icon-warning[_ngcontent-%COMP%]:before{color:#ec1d24}.icon-orders-agent[_ngcontent-%COMP%]:before{color:#ec771d}.icon-processing[_ngcontent-%COMP%]:before{content:"\\e942";color:#428bca}.icon-more[_ngcontent-%COMP%]{display:block;margin-top:auto;margin-bottom:auto}'],changeDetection:0})}}return e})();function vc(e,n){if(e&1){let t=me();c(0,"app-tabset",7),J("tabChanged",function(l){X(t);let m=_();return W(m.onSelectedLink(l))}),d(1,"app-tab",8),s(2,"dict"),d(3,"app-tab",8),s(4,"dict"),a()}if(e&2){let t=_();r(),o("routerLink",t.FUNDS_TRANSFERS_CURRENT_ROUTE)("label",p(2,4,"orion.fund-transfers.CURRENT_INSTRUCTIONS")),r(2),o("routerLink",t.RECURRING_FUND_TRANSFER_ROUTE)("label",p(4,6,"orion.fund-transfers.RECURRING_FUND_TRANSFER"))}}var Fn=(()=>{class e extends z{constructor(t,i,l){super(),this.userProfile=t,this.breakpointObserver=i,this.store=l,this.FUNDS_TRANSFERS_CURRENT_ROUTE="current-instructions",this.RECURRING_FUND_TRANSFER_ROUTE="recurring-fund-transfers",this.pageIdSubject=new te(w.ACTIVITY_FUNDS_TRANSFERS_CURRENT),this.pageId$=this.pageIdSubject.asObservable(),this.mobile=!1,this.RefreshedPage=w,this.breakpointObserver.observe([Ce.MOBILE]).pipe(Q(this.destroyed$)).subscribe(m=>{this.mobile=m.matches})}onSelectedLink(t){let i=t===this.RECURRING_FUND_TRANSFER_ROUTE?w.ACTIVITY_FUNDS_TRANSFERS_RECURRING:w.ACTIVITY_FUNDS_TRANSFERS_CURRENT;this.pageIdSubject.next(i)}static{this.\u0275fac=function(i){return new(i||e)(S(ne),S(Se),S(Y))}}static{this.\u0275cmp=R({type:e,selectors:[["app-fund-transfers"]],standalone:!1,features:[$],decls:12,vars:11,consts:[["id","content","tabindex","-1"],[1,"or-heading"],[3,"ngClass"],[1,"pb-1","pb-lg-0","pl-lg-4",3,"mobile"],[1,"d-flex",3,"pageId","quote"],[1,"or-content","rounded","pb-3"],[3,"tabChanged",4,"ngIf"],[3,"tabChanged"],[3,"routerLink","label"]],template:function(i,l){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",2),u(4),s(5,"dict"),a(),d(6,"app-widget-bar",3)(7,"app-refresh",4),s(8,"async"),a()(),c(9,"div",5),f(10,vc,5,8,"app-tabset",6),d(11,"router-outlet"),a()()),i&2&&(r(2),o("ngClass",l.mobile?"d-flex flex-column pb-1":"d-inline-flex align-items-center py-3"),r(),o("ngClass",l.mobile?"or-font-24 my-0 pb-1":"or-font-36 m-0"),r(),g(p(5,7,"orion.menu.FUND_TRANSFERS")),r(2),o("mobile",l.mobile),r(),o("pageId",p(8,9,l.pageId$))("quote",!1),r(3),o("ngIf",l.userProfile.hasAccessToConsultRecurringTransfer))},dependencies:[xi,Ii,re,N,Qe,Xe,Dr,Nr,k,D],encapsulation:2,changeDetection:0})}}return e})();var Pe=ri(kn());var Me=(function(e){return e[e.CANCEL=0]="CANCEL",e[e.MODIFY=1]="MODIFY",e})(Me||{});var Cc=()=>({"min-height":0,padding:0});function Sc(e,n){if(e&1&&(c(0,"div"),d(1,"app-orion-message",8),a()),e&2){let t=n.ngIf;r(),o("messages",t)}}var Nn=(()=>{class e{constructor(t,i,l,m){this.dialogRef=t,this.fundTransfer=i,this.fundTransfersApiService=l,this.cashTransferApiService=m}cancelTransfer(){let t=this.initDateSelection();this.cancelError$=t.pipe(pe(i=>this.fundTransfersApiService.cancelRecurringFundTransfer(se(V({},this.fundTransfer),{startDt:i}))),K(i=>P(i.error)),j(i=>{if(i&&i.messageList)return i.messageList;this.dialogRef.close(!0)}))}initDateSelection(){return this.cashTransferApiService.getDateSelection({srcAcctNo:this.fundTransfer.srcAcctNo,tgtAcctNo:this.fundTransfer.tgtAcctNo,cashTransferType:this.fundTransfer.cashTransferType}).pipe(j(t=>t.data.firstValidDate))}static{this.\u0275fac=function(i){return new(i||e)(S(Fi),S(Ni),S(De),S(xr))}}static{this.\u0275cmp=R({type:e,selectors:[["app-recurring-fund-transfer-cancel"]],standalone:!1,decls:16,vars:19,consts:[["defaultWidth","500px",3,"boxShadow","contentStyle","title"],["dialogBody",""],[4,"ngIf"],[1,"d-flex","py-2"],["dialogFooter",""],[1,"d-flex","justify-content-between"],["mat-button","","cdkFocusInitial","",1,"or-ghost",3,"mat-dialog-close"],["mat-button","",3,"click"],[3,"messages"]],template:function(i,l){i&1&&(c(0,"app-modal",0),s(1,"dict"),c(2,"div",1),f(3,Sc,2,1,"div",2),s(4,"async"),c(5,"div",3),u(6),s(7,"dict"),a()(),c(8,"div",4)(9,"div",5)(10,"button",6),u(11),s(12,"dict"),a(),c(13,"button",7),J("click",function(){return l.cancelTransfer()}),u(14),s(15,"dict"),a()()()()),i&2&&(o("boxShadow",!1)("contentStyle",A(18,Cc))("title",p(1,8,"orion.fund-transfers.RECURRING_FUND_TRANSFER")),r(3),o("ngIf",p(4,10,l.cancelError$)),r(3),I(" ",p(7,12,"orion.transfers.CANCEL_RECURRING")," "),r(4),o("mat-dialog-close",!1),r(),I(" ",p(12,14,"orion.app.CANCEL")," "),r(3),I(" ",p(15,16,"orion.app.OK")," "))},dependencies:[N,Ye,Bi,Di,Ct,k,D],encapsulation:2,changeDetection:0})}}return e})();function hc(e,n){if(e&1){let t=me();c(0,"div",4)(1,"div")(2,"a",5),J("click",function(){X(t);let l=_(),m=F(1);return W(l.cancel(l.fundTransfer,m))}),u(3),s(4,"dict"),a()(),c(5,"div")(6,"a",5),J("click",function(){X(t);let l=_(),m=F(1);return W(l.modify(l.fundTransfer,m))}),u(7),s(8,"dict"),a()()()}e&2&&(r(3),g(p(4,2,"orion.app.CANCEL")),r(4),g(p(8,4,"orion.app.MODIFY")))}var Dn=(()=>{class e{constructor(){this.action=new ci}cancel(t,i){this.action.emit({action:Me.CANCEL,fundTransfer:t}),i.hide()}modify(t,i){this.action.emit({action:Me.MODIFY,fundTransfer:t}),i.hide()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=R({type:e,selectors:[["app-recurring-fund-transfer-actions"]],inputs:{fundTransfer:"fundTransfer"},outputs:{action:"action"},standalone:!1,decls:5,vars:2,consts:[["popover","bncPopover"],["actionsPop
1over",""],["type","button","bncPopoverPosition","bottom",1,"or-link",3,"bncPopover"],["id","ico-actions","size","big",3,"sprite"],["id","recurring-fund-transfer-actions-popover"],["href","javascript:void(0)",3,"click"]],template:function(i,l){if(i&1&&(c(0,"button",2,0),d(2,"app-icon",3),a(),f(3,hc,9,6,"ng-template",null,1,B)),i&2){let m=F(4);o("bncPopover",m),r(2),o("sprite",!1)}},dependencies:[Li,he,D],encapsulation:2,changeDetection:0})}}return e})();var Tc=()=>[1,2,3,4,5],xc=()=>[1,2,3,4],wn=()=>[1,2];function Ec(e,n){if(e&1&&(x(0),c(1,"div",20),u(2),s(3,"dict"),a(),c(4,"div",20),u(5),a(),E()),e&2){let t=_().$implicit;r(2),I("",p(3,2,"orion.transfers.SECOND_LEVY"),": "),r(3),g(t.secondLevy)}}function Ic(e,n){e&1&&(x(0),c(1,"div",20),u(2),s(3,"dict"),a(),E()),e&2&&(r(2),g(p(3,1,"orion.transfers.LAST_BUSINESS_DAY")))}function bc(e,n){e&1&&(c(0,"div",20),u(1),s(2,"dict"),a()),e&2&&(r(),g(p(2,1,"orion.transfers.EXPIRED")))}function Oc(e,n){if(e&1){let t=me();c(0,"div")(1,"div",16)(2,"div",17),s(3,"dict"),c(4,"div")(5,"div",18)(6,"div",19)(7,"div"),u(8),s(9,"dict"),a()()(),c(10,"div",20),u(11),a()()(),c(12,"div",21),d(13,"app-icon",22),a(),c(14,"div",17),s(15,"dict"),c(16,"div")(17,"div",18)(18,"div",19),d(19,"img",23),c(20,"div"),u(21),a()()(),c(22,"div",20),u(23),a(),c(24,"div",20),u(25),a()()(),c(26,"div",24),s(27,"dict"),d(28,"app-value-styler",25),a(),c(29,"div",26),s(30,"dict"),c(31,"div")(32,"div"),u(33),s(34,"dict"),a(),c(35,"div",18)(36,"div",27),f(37,Ec,6,4,"ng-container",28)(38,Ic,4,3,"ng-container",28),a()()()(),c(39,"div",29),s(40,"dict"),u(41),s(42,"dateFormatter"),a(),c(43,"div",29),s(44,"dict"),c(45,"div")(46,"div"),u(47),s(48,"dateFormatter"),a(),f(49,bc,3,3,"div",30),a()(),c(50,"div",31)(51,"app-recurring-fund-transfer-actions",32),J("action",function(l){X(t);let m=_(3);return W(m.handleAction(l))}),a()()()()}if(e&2){let t=n.$implicit;r(2),h("data-header",p(3,22,"orion.fund-transfers.FROM_ACCOUNT")),r(6),g(p(9,24,"orion.fund-transfers.BANK")),r(3),g(t.srcAcctNo),r(3),h("data-header",p(15,26,"orion.fund-transfers.TO_ACCOUNT")),r(5),o("src",t.flag,Be),r(2),g(t.toAcctTypeDesc),r(2),g(t.toPortfolioName),r(2),g(t.tgtAcctNo),r(),h("data-header",p(27,28,"orion.fund-transfers.AMOUNT")),r(2),o("value",t.amount),r(),h("data-header",p(30,30,"orion.transfers.FREQUENCY")),r(4),g(p(34,32,"orion.transfers."+t.frequencyType)),r(4),o("ngIf",t.secondLevy),r(),o("ngIf",t.lastBusinessDay),r(),h("data-header",p(40,34,"orion.transfers.START_DATE")),r(2),I(" ",p(42,36,t.startDt)," "),r(2),fe("or-color-red",t.expired),h("data-header",p(44,38,"orion.transfers.END_DATE")),r(4),g(p(48,40,t.endDt)),r(2),o("ngIf",t.expired),r(2),o("fundTransfer",t)}}function Ac(e,n){if(e&1&&(x(0),c(1,"div",4)(2,"div",5)(3,"div",6),s(4,"async"),c(5,"div",7),u(6),s(7,"dict"),a(),d(8,"div",8),c(9,"div",9),u(10),s(11,"dict"),a(),c(12,"div",10),u(13),s(14,"dict"),a(),c(15,"div",11),u(16),s(17,"dict"),a(),c(18,"div",12),u(19),s(20,"dict"),a(),c(21,"div",13),u(22),s(23,"dict"),a(),d(24,"div",14),a(),f(25,Oc,52,42,"div",15),s(26,"orderBy"),a()(),E()),e&2){let t=_().ngIf,i=_();r(3),o("offsetTop",p(4,14,i.searchBarRepService.searchBarHeight$)),r(2),o("appSortService",i.sort),r(),I(" ",p(7,16,"orion.fund-transfers.FROM_ACCOUNT")," "),r(3),o("appSortService",i.sort),r(),I(" ",p(11,18,"orion.fund-transfers.TO_ACCOUNT")," "),r(2),o("appSortService",i.sort),r(),I(" ",p(14,20,"orion.fund-transfers.AMOUNT")," "),r(2),o("appSortService",i.sort),r(),I(" ",p(17,22,"orion.transfers.FREQUENCY")," "),r(2),o("appSortService",i.sort),r(),I(" ",p(20,24,"orion.transfers.START_DATE")," "),r(2),o("appSortService",i.sort),r(),I(" ",p(23,26,"orion.transfers.END_DATE")," "),r(3),o("ngForOf",O(26,28,t,i.sort.orderBy()))}}function Rc(e,n){if(e&1&&(x(0),c(1,"div",2),d(2,"app-investcube-logo",3),a(),f(3,Ac,27,31,"ng-container",1),s(4,"async"),E()),e&2){let t=_(),i=F(3);r(3),o("ngIf",!p(4,2,t.loading$))("ngIfElse",i)}}function Fc(e,n){e&1&&(c(0,"div",37)(1,"div",38),d(2,"app-skeleton",39),a(),c(3,"div",40),d(4,"app-skeleton",39),a(),c(5,"div",41),d(6,"app-skeleton",42),a(),c(7,"div",40),d(8,"app-skeleton",39),a(),c(9,"div",40),d(10,"app-skeleton",39),a(),c(11,"div",43),d(12,"app-skeleton",39),a()())}function Nc(e,n){e&1&&(c(0,"div",35),f(1,Fc,13,0,"div",36),a()),e&2&&(r(),o("ngForOf",A(1,Tc)))}function Dc(e,n){if(e&1&&(c(0,"div",47),d(1,"app-skeleton",48),a()),e&2){let t=n.$implicit;o("ngClass",t==1?"mc-mr-xsmall":"")}}function wc(e,n){if(e&1&&(c(0,"div",45),f(1,Dc,2,1,"div",46),a()),e&2){let t=n.$implicit;o("ngClass",t==3?"mc-mt-medium":""),r(),o("ngForOf",A(2,wn))}}function Pc(e,n){if(e&1&&(c(0,"div",45)(1,"div",49),d(2,"app-skeleton",48),a(),d(3,"div",50),a()),e&2){let t=n.$implicit;o("ngClass",t==1?"mc-mt-medium":"mc-mb-xsmall")}}function Bc(e,n){e&1&&(c(0,"div",35),f(1,wc,2,3,"div",44)(2,Pc,4,1,"div",44),a()),e&2&&(r(),o("ngForOf",A(2,xc)),r(),o("ngForOf",A(3,wn)))}function kc(e,n){if(e&1&&(c(0,"div",33),f(1,Nc,2,2,"div",34)(2,Bc,3,4,"div",34),a()),e&2){let t=_();r(),o("ngIf",!t.mobile),r(),o("ngIf",t.mobile)}}var Pn=(()=>{class e extends z{constructor(t,i,l,m,v,y,ee,tt,kt,Lt){super(),this.store$=t,this.flagPath=i,this.sort=l,this.userProfile=m,this.searchBarRepService=v,this.fundTransfersApiService=y,this.dialog=ee,this.lazyLoadService=tt,this.breakpointObserver=kt,this.refreshService=Lt,this.mobile=!1,this.RefreshedPage=w,this.loadingSubject=ne
1w te(!1),this.loading$=this.loadingSubject.asObservable()}ngOnInit(){this.initObservables(),this.breakpointObserver.observe([Ce.MOBILE]).pipe(Q(this.destroyed$)).subscribe(t=>{this.mobile=t.matches})}handleAction(t){switch(t.action){case Me.CANCEL:this.cancel(t.fundTransfer);break;case Me.MODIFY:this.modify(t.fundTransfer);break}}initObservables(){this.refreshService.initTime(w.ACTIVITY_FUNDS_TRANSFERS_RECURRING),this.recurringFundTransfers$=ge([this.store$.pipe(U(be,w.ACTIVITY_FUNDS_TRANSFERS_RECURRING)),this.store$.pipe(U(Ge)),this.store$.pipe(U(ye))]).pipe(ie(()=>this.loadingSubject.next(!0)),pe(([,t,i])=>{let l=ce(i),m=wt(this.accountFrom,this.accountTo,l);return!m.length||!t.length?P([]):this.fundTransfersApiService.getRecurringFundTransfers(m).pipe(j(v=>this.transformFundTransfer(v,t)),Q(this.destroyed$),K(()=>P([])))}),ie(()=>this.loadingSubject.next(!1)),K(()=>P([])))}cancel(t){this.dialog.open(Nn,{data:t,maxWidth:"100vw"}).afterClosed().subscribe(i=>{i&&this.refreshService.doRefresh(w.ACTIVITY_FUNDS_TRANSFERS_RECURRING)})}modify(t){this.lazyLoadService.lazyLoad(Lr.TRANSFERS,kr).then(i=>i.openTransfers(t))}transformFundTransfer(t,i){return t.map(l=>{let m=In(l.srcAcctNo,l.tgtAcctNo),v=(0,Pe.isAfter)((0,Pe.startOfToday)(),Ne(l.startDt)),y=(0,Pe.isBefore)(Ne(l.endDt),(0,Pe.endOfToday)()),ee=this.flagPath.transform(l.toAcctCurrCd);return se(V(V({},l),Pt({fromAcctNo:l.srcAcctNo,toAcctNo:l.tgtAcctNo},i)),{cashTransferType:m,flag:ee,started:v,expired:y})})}static{this.\u0275fac=function(i){return new(i||e)(S(Y),S(ze),S(L),S(ne),S(we),S(De),S(ft),S(ar),S(Se),S(Ie))}}static{this.\u0275cmp=R({type:e,selectors:[["app-recurring-funds-transfers"]],inputs:{accountFrom:"accountFrom",accountTo:"accountTo"},standalone:!1,features:[G([L]),$],decls:4,vars:4,consts:[["fetchingRecurringFundsTransfers",""],[4,"ngIf","ngIfElse"],[1,"w-100","d-inline-flex","pt-3"],["styleClass","d-flex"],[1,"or-table","pt-3"],[1,"or-table-body"],["appSticky","",1,"or-table-row","or-table-header",3,"offsetTop"],["key","srcAcctNo",1,"or-table-cell",3,"appSortService"],[1,"or-table-cell","or-grow-recurring-arrow-icon"],["key","tgtAcctNo",1,"or-table-cell",3,"appSortService"],["key","amount",1,"or-table-cell","or-grow-recurring-amount","or-numeric",3,"appSortService"],["key","frequencyType",1,"or-table-cell","or-grow-recurring-frequency",3,"appSortService"],["key","startDt",1,"or-table-cell",3,"appSortService"],["key","endDt",1,"or-table-cell",3,"appSortService"],[1,"or-table-cell","or-grow-recurring-actions"],[4,"ngFor","ngForOf"],["appCollapsible","",1,"or-table-row","or-table-align-top"],[1,"or-table-cell"],[1,"or-box","or-no-padding"],[1,"or-box-child","or-xsmall-gap"],[1,"or-label_small"],[1,"or-table-cell","or-grow-recurring-arrow-icon","or-mobile-hide"],["name","ico_arrow_full-right","size","big"],[3,"src"],[1,"or-table-cell","or-grow-recurring-amount","or-numeric"],["digits","1.2-2",3,"value"],[1,"or-table-cell","or-grow-recurring-frequency"],[1,"or-box-child","or-small-gap"],[4,"ngIf"],[1,"or-table-cell","or-collapsible"],["class","or-label_small",4,"ngIf"],[1,"or-table-cell","or-grow-recurring-actions","or-collapsible"],[3,"action","fundTransfer"],[1,"or-content","rounded","mc-p-large","mc-pl-0","mc-pr-0"],["class","mc-w-100",4,"ngIf"],[1,"mc-w-100"],["class","mc-d-flex",4,"ngFor","ngForOf"],[1,"mc-d-flex"],[1,"mc-mr-small","mc-flex-1","mc-mb-xxsmall"],["size","medium",1,"mc-br-medium"],[1,"mc-mr-small","mc-ml-small","mc-flex-1","mc-mb-xxsmall"],[1,"mc-mr-small","mc-ml-small","mc-mb-xxsmall",2,"flex","0.5"],["size","medium",1,"mc-br-small","mc-my-xxsmall","mc-br-medium"],[1,"mc-ml-small","mc-flex-1","mc-mb-xxsmall"],["class","mc-d-flex mc-w-100",3,"ngClass",4,"ngFor","ngForOf"],[1,"mc-d-flex","mc-w-100",3,"ngClass"],["class","mc-flex-1 mc-w-50",3,"ngClass",4,"ngFor","ngForOf"],[1,"mc-flex-1","mc-w-50",3,"ngClass"],["size","large"],[1,"mc-mr-xsmall","mc-flex-1","mc-w-50"],[1,"mc-flex-1","mc-d-flex"]],template:function(i,l){if(i&1&&(f(0,Rc,5,4,"ng-container",1),s(1,"async"),f(2,kc,3,2,"ng-template",null,0,B)),i&2){let m=F(3);o("ngIf",p(1,2,l.recurringFundTransfers$))("ngIfElse",m)}},dependencies:[re,ue,N,Ae,Oe,he,Te,Fe,qe,We,Dn,k,Re,D,Ee],styles:[".or-table-cell.or-grow-recurring-arrow-icon[_ngcontent-%COMP%]{flex-grow:.2!important}
1.or-table-cell.or-grow-recurring-amount[_ngcontent-%COMP%]{flex-grow:.5!important}.or-table-cell.or-grow-recurring-frequency[_ngcontent-%COMP%]{flex-grow:1.2!important}.or-table-cell.or-grow-recurring-actions[_ngcontent-%COMP%]{flex-grow:.25!important}"],changeDetection:0})}}return e})();var Bn=[{path:"",redirectTo:"orders",pathMatch:"full"},{path:"orders",component:Ft,data:{dict:["orders","current-orders","trades","advanced-filters","activity","fixed-income"],title:["orion.menu.ORDER"]},resolve:{dict:$e,title:ct}},{path:"fund-transfers",component:Fn,data:{dict:["activity","fund-transfers"],title:["orion.menu.FUND_TRANSFERS"]},resolve:{dict:$e,title:ct},children:[{path:"",redirectTo:"current-instructions",pathMatch:"full"},{path:"current-instructions",component:Rn},{path:"recurring-fund-transfers",component:Pn,data:{dict:["transfers"]},resolve:{dict:$e}}]},{path:"fund-facts-delivery",component:xn,data:{dict:["fund-fact-delivery"],title:["orion.menu.FUND_FACT_DELIVERY"]},resolve:{dict:$e,title:ct}},{path:"events",component:rn,data:{dict:["fund-transfers","activity","activity-market-events"],title:["orion.menu.MARKET_EVENTS"]},resolve:{dict:$e,title:ct}}];var Qd=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=si({type:e})}static{this.\u0275inj=ai({providers:[lr],imports:[bi.forChild(Bn),Ti,ir,gr,Wi,Or,Er,wr,Cr,tr,Tr,Fr,Ir,rr]})}}return e})();_i(cr,function(){return[N,Ct,Ft]},function(){return[k]});export{Qd as ActivityModule};
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.