1export const __webpack_id__=8754;export const __webpack_ids__=[8754];export const __webpack_modules__={90106:(n,t,e)=>{e.r(t),e.d(t,{BankAccounts:()=>G,BankAccountsBare:()=>F,default:()=>H});var o={};e.r(o),e.d(o,{defaultState:()=>w,reducer:()=>b});var c,a=e(63412),i=e.n(a),r=e(74848),s=e(96540),u=e(98017),d=e(37489),l=e(57182),f=e(45932),v=e.n(f),y=e(46792),m=e(74294),p=e(1932);!function(n){n.SET_DATA="BANK_ACCOUNTS:DATA:SET"}(c||(c={}));const w={error:"",isLoading:!1,bankAccounts:[]},b=n=>(0,p.jM)(((t,e)=>{switch(e.type){case c.SET_DATA:case c.SET_DATA+n:Object.assign(t,Object.assign({},e.payload))}}),w),{withDynamicReducer:k,useDynamicReducerSelector:h,useDynamicReducerDispatch:_}=(0,m.X)("BankAccounts",o);var A=e(66229),C=e(23745),B=e(53806),x=function(n,t,e,o){return new(e||(e=Promise))((function(c,a){function i(n){try{s(o.next(n))}catch(n){a(n)}}function r(n){try{s(o.throw(n))}catch(n){a(n)}}function s(n){n.done?c(n.value):function(n){return n instanceof e?n:new e((function(t){t(n)}))}(n.value).then(i,r)}s((o=o.apply(n,t||[])).next())}))};var D=e(20214),g=e(15424),T=e(92519),N=e(27914),j=e(36351),R=e(98450);const S=n=>({type:c.SET_DATA,payload:n});var I=function(n,t,e,o){return new(e||(e=Promise))((function(c,a){function i(n){try{s(o.next(n))}catch(n){a(n)}}
1function r(n){try{s(o.throw(n))}catch(n){a(n)}}function s(n){n.done?c(n.value):function(n){return n instanceof e?n:new e((function(t){t(n)}))}(n.value).then(i,r)}s((o=o.apply(n,t||[])).next())}))};var L=e(53108),E=function(n,t,e,o){return new(e||(e=Promise))((function(c,a){function i(n){try{s(o.next(n))}catch(n){a(n)}}function r(n){try{s(o.throw(n))}catch(n){a(n)}}function s(n){n.done?c(n.value):function(n){return n instanceof e?n:new e((function(t){t(n)}))}(n.value).then(i,r)}s((o=o.apply(n,t||[])).next())}))};const P=()=>{const n=_(),t=(0,L.Z)(),e=(()=>{const n=(0,B.B)();return(0,s.useCallback)((()=>I(void 0,void 0,void 0,(function*(){const{data:t}=yield n({ID:36022,errorLevel:1,responses:[36023,36024],description:"Get Bank Accounts Request"});return t}))),[n])})();return(0,s.useCallback)((()=>E(void 0,void 0,void 0,(function*(){n(S({isLoading:!0,error:""}));try{const{bankAccounts:t}=yield e();n(S({bankAccounts:t}))}catch(e){const o=t(e);n(S({error:o}))}finally{n(S({isLoading:!1}))}}))),[n,e,t])},O="DeleteAccountButton__confirmPopup--2_1";var V=function(n,t,e,o){return new(e||(e=Promise))((function(c,a){function i(n){try{s(o.next(n))}catch(n){a(n)}}
1function r(n){try{s(o.throw(n))}catch(n){a(n)}}function s(n){n.done?c(n.value):function(n){return n instanceof e?n:new e((function(t){t(n)}))}(n.value).then(i,r)}s((o=o.apply(n,t||[])).next())}))};const X=({id:n})=>{const t=(0,A.wA)(),e=P(),o=(0,l.N)(),c=(0,T.n_)("delete-bank-account"),a=(()=>{const n=(0,B.B)();return(0,s.useCallback)((t=>x(void 0,void 0,void 0,(function*(){return yield n(Object.assign({ID:36019,description:"Manage Bank Accounts Request",responses:[36020,36021]},t))}))),[n])})(),i=(0,D.Z)(),u=(0,R.j7)(),d=(0,s.useCallback)((()=>V(void 0,void 0,void 0,(function*(){c();const o=()=>V(void 0,void 0,void 0,(function*(){var c,r;try{yield a({bankAccount:n,operation:"delete"}),yield e()}catch(n){if(304===(null===(r=null===(c=null==n?void 0:n.response)||void 0===c?void 0:c.data)||void 0===r?void 0:r.errorCode)){try{yield u({initiator:"bank-account",onSuccess:o,onCancel:C.lQ})}catch(n){}return}const e=i(n);t(S({error:e}))}}));yield o()}))),[t,e,i,a,n,u,c]),f=(0,s.useCallback)((()=>{t((0,j.TG)({buttons:[{id:"1",onClick:c,color:N.lm.success,view:N.Vw.secondary,text:o("confirmation.cancel")},{id:"2",color:N.lm.negative,onClick:d,text:o("confirmation.ok")}],id:"delete-bank-account",content:o("confirmation.warning"),className:`${O} cms-bank-accounts-confirm-popup`}))}),[d,o,t,c]);
1return(0,r.jsx)(g.$,{isNew:!0,type:"button",color:N.lm.negative,onClick:f,className:"cms-bank-accounts-delete",children:o("remove")})},M={accordionHeaderCell:"BankAccounts__accordionHeaderCell--3bl",accordionBodyContainer:"BankAccounts__accordionBodyContainer--2K0",accordionBodyCell:"BankAccounts__accordionBodyCell--1XX",tableBodyRowContainer:"BankAccounts__tableBodyRowContainer--22i",tableBodyRowColumn:"BankAccounts__tableBodyRowColumn--1bw"};var q=function(n,t,e,o){return new(e||(e=Promise))((function(c,a){function i(n){try{s(o.next(n))}catch(n){a(n)}}function r(n){try{s(o.throw(n))}catch(n){a(n)}}function s(n){n.done?c(n.value):function(n){return n instanceof e?n:new e((function(t){t(n)}))}(n.value).then(i,r)}s((o=o.apply(n,t||[])).next())}))};const F=()=>{const n=(0,l.N)(),t=P(),e=(()=>{const n=(0,l.N)(),t=(0,y.k)(),e=h(v()("bankAccounts"));return(0,s.useMemo)((()=>({accordionView:{rows:e.map((e=>{const{startDate:o,account:c}=e,a=o&&t.getDateTimeShort(t.parseImsDate(o))||"";return{id:c,rowCells:[{id:0,content:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"accordionBodyCellName",children:n("startDate")}),(0,r.jsx)("div",{className:"accordionBodyCellValue",children:a})]})},{id:1,content:(0,r.jsx)(X,{id:c})}],tableRowId:c,headerCells:[{id:0,content:c}]}}))},tableView:{headerCells:[{id:0,content:n("startDate")},{id:1,content:n("bankAccount")},{id:2,content:""}],rows:e.map((n=>{const{startDate:e,account:o}=n;return{id:o,tableRowId:o,rowCells:[{id:0,content:e&&t.getDateTimeShort(t.parseImsDate(e))||""},{id:1,content:o},{id:2,content:(0,r.jsx)(X,{id:o})}]}}))}})),[n,e,t])})(),{isLoading:o,error:c}=h(i()(["isLoading","error"]));return(0,s.useEffect)((()=>{(()=>{q(void 0,void 0,void 0,(function*(){return yield t()}))})()}),[t]),(0,r.jsx)(u.XI,{error:c,classNames:M,isLoading:o,tableData:e,className:"cms-bank-accounts",emptyTitle:n("table.empty")})},G=(0,d.m)({isForLoggedIn:!0})(k()(F)),H=G}}; 2//# sourceMappingURL=bank-accounts.f916d165b266352d4649.chunk.js.map
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.