1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405,5232],{87314:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(50578)}])},22864:function(e,n,t){"use strict";t.d(n,{H:function(){return a}});let a=e=>{var n,t,a;return(null===(t=e.type)||void 0===t?void 0:null===(n=t.accountGroup)||void 0===n?void 0:n.id)!=="deposits"&&(null===(a=e.type)||void 0===a?void 0:a.id)!=="ticheteVbLunch"}},66486:function(e,n,t){"use strict";t.d(n,{j:function(){return v}});var a=t(52322),r=t(36444),o=t(88393);let i=e=>{let{useQueryResult:n,NotFound:t=(0,a.jsx)(o.T,{}),Skeleton:i=(0,a.jsx)(a.Fragment,{}),TranslatedError:l=r.o,children:s}=e;return n.loading?i:n.error?(0,a.jsx)(l,{error:n.error}):!n.data||Object.keys(n.data).filter(e=>"__typename"!==e).some(e=>{var t;return!(null===(t=n.data)||void 0===t?void 0:t[e])})?t:s(n.data)};var l=t(53393),s=t(66319),d=t(78805),c=t(21508),u=t(12678),m=t(2784),h=t(40307);let x=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Qr,{width:"60%",fontSize:41}),(0,a.jsx)(h.Qr,{width:"60%",fontSize:41}),(0,a.jsx)(h.Qr,{fontSize:40,width:"50%"}),(0,a.jsx)(d.Z,{container:!0,spacing:2,alignItems:"flex-end",children:Array.from({length:4}).map((e,n)=>(0,a.jsxs)(m.Fragment,{children:[(0,a.jsx)(d.Z,{size:{xs:8},children:(0,a.jsx)(u.wn,{})}),(0,a.jsx)(d.Z,{size:{xs:4},children:(0,a.jsx)(c.Z,{variant:"rounded",width:"100%",height:41})})]},n))})]});var p=t(96587);let v=e=>{let{cardId:n,onCancel:t,onSuccess:r}=e,o=(0,p.rl)({variables:{id:n},errorPolicy:"ignore"});return(0,a.jsx)(s.y,{onCancel:t,children:(0,a.jsx)(i,{useQueryResult:o,Skeleton:(0,a.jsx)(x,{}),children:e=>{let{card:n}=e;return(0,a.jsx)(l.t,{onSuccess:r,card:n,onCancel:t})}})})}},87143:function(e,n,t){"use strict";t.d(n,{A2:function(){return d},Ld:function(){return h}});var a=t(52322),r=t(16896),o=t(52142),i=t(65232),l=t(32658);let s=Symbol("Card.Movements.accountNumber"),d=Symbol("Card.Movements.cardId"),c=Symbol("Card.Movements.filterBuilder"),u=(0,l.MT)({accountNumber:s,cardId:d}),m=new r.M().where("card.id","isNotNull"),h=()=>{let{t:e}=(0,o.q)();return(0,a.jsx)(i.I,{additionalFilters:m,filterBuilderKey:c,filterOptionKeys:u,movementsTableId:"CardMovements",rowHrefTemplate:"/cards/movements/{{id}}",pageTitle:e("section:section.header.header.cardsMovements")})}},66960:function(e,n,t){"use strict";t.d(n,{I:function(){return c}});var a=t(52322),r=t(36681),o=t(25290),i=t(85091);t(2784);var l=t(45277);let s=e=>(0,a.jsx)(l.Z,{sx:{position:"absolute",background:"rgba(255,255,255,0.6)",width:"100%",height:"100%"},children:(0,a.jsx)(l.Z,{sx:{position:"absolute",background:"white",top:"50%",left:"50%",transform:"translate(-50%,-50%)",borderRadius:"0.375rem",padding:".5rem",fontSize:"0.75rem",textAlign:"center",zIndex:"1000"},...e})});var d=t(52142);let c=e=>{let{cardStatusId:n,"data-testid":t}=e,{t:l}=(0,d.q)(),c="blocked"===n,u="blocked_temp"===n,m="inactive"===n,h="closed"===n;if(c||u||m||h)return(0,a.jsx)(s,{children:(0,a.jsxs)(r.Z,{direction:"row",alignItems:"center",justifyContent:"center",spacing:1,children:[h?(0,a.jsx)(i.LockIcon,{sx:{fontSize:16,color:"neutral.dark"}}):(0,a.jsx)(i.ImportantIcon,{sx:{fontSize:16,color:"warning.dark"}}),(0,a.jsxs)(o.Z,{"data-testid":"".concat(t,"-state"),fontSize:14,color:h?"text.primary":"warning.dark",sx:{whiteSpace:"nowrap"},children:[c&&l("card:card.detail.cardBlocked"),u&&l("card:card.detail.cardBlockedTemporarily"),m&&l("card:card.detail.cardInactive"),h&&l("card:card.detail.cardClosed")]})]})})}},16874:function(e,n,t){"use strict";t.d(n,{sE:function(){return l}});var a=t(2784),r=t(78913),o=t(99963);let i=(e,n)=>{if(!e||!e.length||!(null==n?void 0:n.width)&&!(null==n?void 0:n.height))return null;let t=[...e].sort((e,n)=>e.width-n.width);return t.find(e=>n.width&&e.width>=n.width||n.height&&e.height>=n.height)||(null==t?void 0:t[t.length-1])||null},l=e=>{let{formatCardNumber:n}=(0,o.z)(),t=(0,a.useRef)(null),{width:l,height:s}=(0,r.B)(t),{width:d,height:c,productData:u}=e,m=null==u?void 0:u.cmsAccount,h=i(null==m?void 0:m.image,{width:d?l:void 0,height:c?s:void 0});return{ref:t,cardHeight:h?h.height/h.width*500:void 0,formatCardNumber:n,backgroundImage:h}}},69335:function(e,n,t){"use strict";t.d(n,{W:function(){return I}});var a=t(52322),r=t(91542),o=t(59052),i=t(17582),l=t(13847),s=t(15103),d=t(36681),c=t(12678),u=t(56616),m=t(63528),h=t(55521),x=t(2784),p=t(63955),v=t(53699),b=t(56559),y=t(52142),f=t(29517),g=t(13337),j=t(55566),C=t(99125);let I=(0,j.n7)(e=>{let{open:n,onClose:t,isCorporate:I,"data-testid":A="generate-statements-dialog",defaultAccountNumber:S}=e,{t:w}=(0,y.q)(),[Z]=(0,v.vF)(),{setIsChecked:k}=(0,x.useContext)(C.p),P=(0,p.cI)({defaultValues:{accountId:null,accountNumber:S,dateRange:[null,null]}}),T=Object.keys(b.iy).map(e=>({id:e,text:e.toLowerCase()})),F=P.handleSubmit(e=>{var n;Z({variables:{input:{exportFormat:null==e?void 0:null===(n=e.documentFormat)||void 0===n?void 0:n.id,accountNumber:e.accountId,dateFrom:(0,u.b)(e.dateRange[0]).toISOString(),dateTo:(0,m.i)(e.dateRange[1]).toISOString(),timezoneOffsetInMinutes:-new Date().getTimezoneOffset()}},onCompleted:async()=>{k(!1),(0,c.CF)(w("common:movement.export.toast.exportStarted"),{variant:"info"}),t()},onError:async()=>{(0,c.CF)(w("common:movement.export.toast.exportError"),{variant:"error"})}})});return(0,a.jsx)(i.Z,{open:n,onClose:t,children:(0,a.jsxs)("form",{onSubmit:F,children:[(0,a.jsx)(j.fK,{onClose:t,children:w("common:movement.export.header.generateStatements")}),(0,a.jsx)(s.Z,{children:(0,a.jsxs)(d.Z,{gap:2,children:[(0,a.jsx)(f.Z,{validateAvailableBalance:!1,form:P,label:w("common:movement.export.label.selectAccount"),placeholder:w("common:movement.export.placeholder.selectAccount"),onAccountSelected:e=>{var n;P.setValue("accountId",null!==(n=null==e?void 0:e.id)&&void 0!==n?n:null)},autofillFirstAccountNumber:!1,required:!0}),(0,a.jsx)(r.lb,{form:P,name:"dateRange",label:w("common:movement.export.label.dateRange"),minDate:(0,h.W)(new Date,I?36:12),maxDate:new Date,"data-testid":"".concat(A,"-date-range"),validate:[e=>
1e?e[0]&&e[1]?void 0:w("common:common.error.invalidDateTime"):w("common:common.error.required")],showAsterisk:!0}),(0,a.jsx)(r.iZ,{form:P,name:"documentFormat",label:w("common:movement.export.label.documentFormat"),placeholder:w("common:movement.export.placeholder.documentFormat"),items:T,hashItem:e=>e.id,renderItem:e=>e.text,"data-testid":"".concat(A,"-document-format"),validate:e=>{if(!e)return w("common:common.error.required")},showAsterisk:!0})]})}),(0,a.jsx)(l.Z,{children:(0,a.jsx)(g.KN,{startButtons:(0,a.jsx)(g.xE,{onClick:t}),endButtons:(0,a.jsx)(d.Z,{direction:"row",gap:2,children:(0,a.jsx)(o.Z,{type:"submit","data-testid":"".concat(A,"-submit-button"),children:w("common:movement.export.button.getStatement")})})})})]})})})},17745:function(e,n,t){"use strict";t.d(n,{A:function(){return j}});var a=t(52322),r=t(91542),o=t(59052),i=t(17582),l=t(13847),s=t(15103),d=t(36681),c=t(12678),u=t(56616),m=t(55521),h=t(2784),x=t(63955),p=t(53699),v=t(52142),b=t(29517),y=t(13337),f=t(55566),g=t(99125);let j=(0,f.n7)(e=>{let{open:n,onClose:t,"data-testid":j="print-daily-statements-dialog",defaultAccountNumber:C}=e,{t:I}=(0,v.q)(),[A]=(0,p.Lo)(),{setIsChecked:S}=(0,h.useContext)(g.p),w=(0,x.cI)({defaultValues:{accountId:null,accountNumber:C,dateFrom:null}}),Z=w.handleSubmit(e=>{A({variables:{input:{accountNumber:e.accountId,dateFrom:(0,u.b)(e.dateFrom).toISOString(),timezoneOffsetInMinutes:-new Date().getTimezoneOffset()}},onCompleted:async()=>{S(!1),(0,c.CF)(I("common:movement.export.toast.exportStarted"),{variant:"info"}),t()},onError:async()=>{(0,c.CF)(I("common:movement.export.toast.exportError"),{variant:"error"})}})});return(0,a.jsx)(i.Z,{open:n,onClose:t,children:(0,a.jsxs)("form",{onSubmit:Z,children:[(0,a.jsx)(f.fK,{onClose:t,children:I("common:movement.export.header.dailyStatements")}),(0,a.jsx)(s.Z,{children:(0,a.jsxs)(d.Z,{gap:2,children:[(0,a.jsx)(b.Z,{validateAvailableBalance:!1,form:w,label:I("common:movement.export.label.selectAccount"),placeholder:I("common:movement.export.placeholder.selectAccount"),onAccountSelected:e=>{var n;w.setValue("accountId",null!==(n=null==e?void 0:e.id)&&void 0!==n?n:null)},autofillFirstAccountNumber:!1,required:!0}),(0,a.jsx)(r.IC,{form:w,name:"dateFrom",label:I("common:movement.export.label.dateFrom"),minDate:(0,m.W)(new Date,36),maxDate:new Date,validate:e=>{if(!e)return I("common:common.error.required")},"data-testid":"".concat(j,"-date-from")})]})}),(0,a.jsx)(l.Z,{children:(0,a.jsx)(y.KN,{startButtons:(0,a.jsx)(y.xE,{onClick:t}),endButtons:(0,a.jsx)(d.Z,{direction:"row",gap:2,children:(0,a.jsx)(o.Z,{type:"submit","data-testid":"".concat(j,"-submit-button"),children:I("common:movement.export.button.getStatement")})})})})]})})})},53699:function(e,n,t){"use strict";t.d(n,{Lo:function(){return u},vF:function(){return h}});var a=t(73235),r=t(89130),o=t(33379);function i(){let e=(0,a._)(["\n mutation exportDailyStatements($input: ExportDailyStatementsInput!) {\n exportDailyStatements(input: $input) {\n jobId\n }\n }\n"]);return i=function(){return e},e}function l(){let e=(0,a._)(["\n mutation exportMovements($input: ExportMovementsInput!) {\n exportMovements(input: $input) {\n jobId\n }\n }\n"]);return l=function(){return e},e}function s(){let e=(0,a._)(["\n query LegalCategory {\n clientSearch {\n nodes {\n legalCategory {\n id\n }\n }\n }\n }\n"]);return s=function(){return e},e}let d={},c=(0,r.Ps)(i());function u(e){let n={...d,...e};return o.D(c,n)}let m=(0,r.Ps)(l());function h(e){let n={...d,...e};return o.D(m,n)}(0,r.Ps)(s())},65232:function(e,n,t){"use strict";t.d(n,{I:function(){return y}});var a=t(52322),r=t(16896),o=t(25145),i=t(36681),l=t(12678),s=t(2784),d=t(57691),c=t(67371),u=t(52142),m=t(34565),h=t(17839),x=t(69335),p=t(17745),v=t(54606);let b=Symbol("Movements.filterBuilder"),y=e=>{let{filterBuilderKey:n=b,movementsTableId:t="Movements",filterOptionKeys:y,additionalFilters:f,pageTitle:g,rowHrefTemplate:j}=e,{t:C}=(0,u.q)(),[I,A]=(0,s.useState)(!1),[S,w]=(0,s.useState)(!1),{clientLegalCategory:Z}=(0,m.s)(),k="C"===Z,[P,T]=(0,c.H)(new r.M,{key:n}),F=(0,s.useMemo)(()=>f?P.clone().where(f):P.clone(),[f,P]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(i.Z,{gap:3,children:[(0,a.jsx)(h.m,{children:null!=g?g:C("section:section.sidebar.text.movementsOverview")}),(0,a.jsxs)(o.Z,{sx:{padding:2},children:[(0,a.jsx)(v._,{onChange:T,filterOptionKeys:y}),(0,a.jsx)(d.d,{filterBuilder:F,tableId:t,...j&&{rowHrefTemplate:j}})]}),(0,a.jsx)(x.W,{open:I,onClose:()=>A(!1),isCorporate:k}),(0,a.jsx)(p.A,{open:S,onClose:()=>w(!1)}),(0,a.jsx)(l.KN,{endButtons:[(0,a.jsxs)(l.j2,{label:C("common:common.button.moreActions"),variant:"outlined",color:"primary","data-testid":"more-actions",children:[(0,a.jsx)(l.ks,{"data-testid":"more-actions-generate-statements",onClick:()=>A(!0),children:C("common:movement.list.button.generateStatements")}),k&&(0,a.jsx)(l.ks,{"data-testid":"more-actions-print-daily-receipts",onClick:()=>w(!0),children:C("common:movement.list.button.printDailyReceipts")})]},"more-actions")]})]})})}},61515:function(e,n,t){"use strict";t.d(n,{E:function(){return o}});var a=t(80352),r=t(96413);let o=e=>{let{currencyId:n,accountStatusId:t,permissions:o}=e;if(!n||!t||"MDL"!==n||!["active"].includes(t))return!1;let{canCreate:i}=(0,a.u)({payment:r.F6.MPAY,permissions:o});return i}},8424:function(e,n,t){"use strict";t.d(n,{D:function(){return x}});var a=t(85091),r=t(69088),o=t(2784),i=t(95747),l=t(61515),s=t(56099),d=t(47909),c=t(96413),u=t(66525),m=t(34565),h=t(62009);let x=e=>
1{let{beneficiaryId:n,account:t,accountNumber:x,card:p}=e,{clientLegalCategory:v}=(0,m.s)(),{hasPermissions:b}=(0,h.TE)(),y=(0,o.useMemo)(()=>{var e,n,a,o,m,h,y,f,g,j,C,I,A,S,w,Z,k,P,T,F,M,_,N,R,O,E,B,q,D;let L=b("DomesticPaymentOrder:create")||b("IntrabankPaymentOrder:create"),U=b("OwnAccountPaymentOrder:create")||b("CorpOwnAccountPaymentOrder:create"),z=b("SwiftPaymentOrder:create")||b("IntrabankFCyPaymentOrder:create"),W="C"===v&&b("SalaryProjectPaymentOrder:create"),Y="C"===v&&b("MPayPaymentOrder:create"),H=b("UtilityPaymentOrder:create"),G=b("UtilityAutomaticPaymentOrder:create"),K=b("P2PPaymentOrder:create"),$=b("IpsB2BInstantPaymentOrder:create");if(!x)return{[c.F6.DOMESTIC]:!L,[c.F6.OWN_ACCOUNTS]:!U,[c.F6.SWIFT]:!z,[c.F6.SALARY_PROJECT]:!W,[c.F6.BULK]:!1,[c.F6.MPAY]:!Y,[c.F6.UTILITY_MANUAL]:!H,[c.F6.UTILITY_AUTOMATIC]:!G,[c.F6.P2P]:!K,[c.F6.MIA]:!$};if(!t)return{[c.F6.DOMESTIC]:!0,[c.F6.OWN_ACCOUNTS]:!0,[c.F6.SWIFT]:!0,[c.F6.SALARY_PROJECT]:!0,[c.F6.BULK]:!0,[c.F6.MPAY]:!0,[c.F6.UTILITY_MANUAL]:!0,[c.F6.UTILITY_AUTOMATIC]:!0,[c.F6.P2P]:!0,[c.F6.MIA]:!0};let J=!(0,i.D)({currencyId:null!==(A=null===(e=t.currency)||void 0===e?void 0:e.id)&&void 0!==A?A:null,accountStatusId:null!==(S=null===(n=t.status)||void 0===n?void 0:n.id)&&void 0!==S?S:null,permissions:null!==(w=t.permissions)&&void 0!==w?w:null})||!L,Q=!(0,s.F)({accountStatusId:null!==(Z=null===(a=t.status)||void 0===a?void 0:a.id)&&void 0!==Z?Z:null,permissions:null!==(k=t.permissions)&&void 0!==k?k:null,legalCategoryId:v})||!U,V=!(0,u.Z)({currencyId:null!==(P=null===(o=t.currency)||void 0===o?void 0:o.id)&&void 0!==P?P:null,accountStatusId:null!==(T=null===(m=t.status)||void 0===m?void 0:m.id)&&void 0!==T?T:null,permissions:null!==(F=t.permissions)&&void 0!==F?F:null})||!z,X=(0,r.Rw)(p)||!(0,d.I)({cardStatusId:null!==(M=null===(h=p.status)||void 0===h?void 0:h.id)&&void 0!==M?M:null,currency:null!==(_=null===(y=p.currency)||void 0===y?void 0:y.id)&&void 0!==_?_:null,productTypeId:null!==(N=null===(f=p.productType)||void 0===f?void 0:f.id)&&void 0!==N?N:null,permissions:p.permissions_v2,legalCategoryId:v});return{[c.F6.DOMESTIC]:J,[c.F6.OWN_ACCOUNTS]:Q,[c.F6.SWIFT]:V,[c.F6.SALARY_PROJECT]:!W,[c.F6.BULK]:J&&Q&&V,[c.F6.MPAY]:!(0,l.E)({currencyId:null!==(R=null===(g=t.currency)||void 0===g?void 0:g.id)&&void 0!==R?R:null,accountStatusId:null!==(O=null===(j=t.status)||void 0===j?void 0:j.id)&&void 0!==O?O:null,permissions:null!==(E=t.permissions)&&void 0!==E?E:null})||!Y,[c.F6.UTILITY_MANUAL]:!H,[c.F6.UTILITY_AUTOMATIC]:!G,[c.F6.P2P]:X,[c.F6.MIA]:!(0,i.D)({currencyId:null!==(B=null===(C=t.currency)||void 0===C?void 0:C.id)&&void 0!==B?B:null,accountStatusId:null!==(q=null===(I=t.status)||void 0===I?void 0:I.id)&&void 0!==q?q:null,permissions:null!==(D=t.permissions)&&void 0!==D?D:null})||!$}},[t,x,p,v,b]);return[{icon:a.PayIcon,payment:c.F6.DOMESTIC,disabled:y[c.F6.DOMESTIC]},{icon:a.DollarIcon,payment:c.F6.OWN_ACCOUNTS,disabled:!!n||y[c.F6.OWN_ACCOUNTS]},{icon:a.LanguageIcon,payment:c.F6.SWIFT,disabled:y[c.F6.SWIFT]},..."C"===v?[{icon:a.SupportAltIcon,payment:c.F6.SALARY_PROJECT,disabled:!!n||y[c.F6.SALARY_PROJECT]}]:[],{icon:a.PortfolioIcon,payment:c.F6.BULK,disabled:!!n||y[c.F6.BULK]},..."C"===v?[{icon:a.SuitcaseIcon,payment:c.F6.MPAY,disabled:!!n||y[c.F6.MPAY]}]:[],..."P"===v?[{icon:a.PayIcon,payment:c.F6.P2P,disabled:y[c.F6.P2P]}]:[]]}},50578:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return eV},default:function(){return eX}});var a,r,o=t(52322),i=t(45277),l=t(2784),s=t(59052),d=t(45982),c=t(81108),u=t(69213),m=t(85091),h=t(69088),x=t(39097),p=t.n(x),v=t(56559);let b=e=>{var n;let{button:t,buttonIcon:a,buttonVariant:r,description:i,header:x,linkTo:b,pictureBanner:y,textColor:f,hasShadow:g,"data-testid":j}=e,C=(0,l.useMemo)(()=>{switch(a){case v.hL.ArrowRightIcon:return(0,o.jsx)(m.ArrowRightIcon,{});case v.hL.PlusIcon:return(0,o.jsx)(m.PlusIcon,{});default:return(0,h.vE)(a)}},[a]),I=(0,l.useMemo)(()=>{switch(f){case v.tN.default:return"primary";case v.tN.black:return"black";case v.tN.white:return"white";default:return(0,h.vE)(f)}},[f]),A=[...y].sort((e,n)=>n.width-e.width);return(0,o.jsxs)(d.Z,{sx:{borderRadius:"1rem",background:"url(".concat(null===(n=A[0])||void 0===n?void 0:n.url,") no-repeat center right"),backgroundSize:"cover",height:"100%",minHeight:"11.75rem",position:"relative",boxShadow:g?7:"none"},children:[(0,o.jsx)(u.Z,{title:x,titleTypographyProps:{variant:"h2",color:I,mt:.75,mb:2},subheader:i}),(0,o.jsx)(c.Z,{sx:{pt:0},children:(0,o.jsx)(s.Z,{"data-testid":"".concat(j,"-banner-button"),LinkComponent:p(),href:null!=b?b:"",variant:r,endIcon:C,sx:r===v.NG.outlined?{backgroundColor:"white","&:hover":{backgroundColor:"white"}}:void 0,children:t})})]})};var y=t(73235),f=t(89130),g=t(40794);function j(){let e=(0,y._)(['\n query Banners($channels: [String!], $placements: [String!]) {\n banners(channels: $channels, placements: $placements) {\n id\n hasShadow\n linkTo\n buttonVariant\n buttonIcon\n textColor\n header\n description\n pictureBanner(sizes: ["image_1000", "max"]) {\n width\n size\n url\n }\n button\n channels {\n channelId\n }\n placements {\n placementId\n }\n }\n }\n']);return j=function(){return e},e}let C={},I=(0,f.Ps)(j());var A=t(11800),S=t(25358),w=t(78805),Z=t(43576),k=t(36681),P=t(25290),T=t(12678),F=t(17582),M=t(13847),_=t(15103),N=t(99963),R=t(52142),O=t(66025),E=t(18925),B=t(55566);let q=e=>
1{let{exchangeRates:n,onClose:t,open:a,"data-testid":r="allExchangeRatesDialog"}=e,{t:i}=(0,R.q)(),{formatMoney:s}=(0,N.z)(),d=(0,l.useMemo)(()=>[{field:"country",headerName:"",width:50,sortable:!1,cellClassName:"flags-cell",renderCell:function(e){let{row:n}=e;return(0,o.jsx)(T.WN,{country:(0,h.rO)(n.toCurrency),width:25})}},{field:"currency",flex:1,headerName:i("dashboard:dashboard.exchangeRates.label.currency"),valueGetter:(e,n)=>n.toCurrency},{align:"right",field:"unit",flex:1,headerAlign:"right",headerName:i("dashboard:dashboard.exchangeRates.label.amount"),valueGetter:(e,n)=>n.unit},{align:"right",field:"buy",flex:1,headerAlign:"right",headerName:i("dashboard:dashboard.exchangeRates.label.buy"),renderCell:e=>{let{row:n}=e;return s(n.buy)}},{align:"right",field:"sell",flex:1,headerAlign:"right",headerName:i("dashboard:dashboard.exchangeRates.label.sell"),renderCell:e=>{let{row:n}=e;return s(n.sell)}}],[i,s]);return(0,o.jsxs)(F.Z,{open:a,onClose:t,maxWidth:"lg",children:[(0,o.jsx)(B.fK,{"data-testid":"".concat(r,"-header"),onClose:t,children:i("dashboard:dashboard.exchangeRates.title")}),(0,o.jsx)(_.Z,{children:(0,o.jsx)(E.w,{client:!0,getRowHeight:()=>"auto",getRowId:e=>e.toCurrency,columns:d,pagination:!1,tableId:"exchangeRates",useDataSource:()=>({loading:!1,rowCount:n.length,rows:n})})}),(0,o.jsx)(M.Z,{children:(0,o.jsx)(T.KN,{startButtons:(0,o.jsx)(O.P,{onClick:t})})})]})};function D(){let e=(0,y._)(['\n query ExchangeRates {\n exchangeRates(fromCurrency: "MDL") {\n fromCurrency\n toCurrency\n unit\n sell\n buy\n }\n }\n']);return D=function(){return e},e}let L={},U=(0,f.Ps)(D());var z=t(36444);let W=e=>{let{title:n,children:t,gridProps:a}=e;return(0,o.jsxs)(d.Z,{sx:{borderRadius:"1rem",boxShadow:7,height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,o.jsx)(u.Z,{title:n,titleTypographyProps:{variant:"h4",fontWeight:"400"}}),(0,o.jsx)(c.Z,{sx:{flexGrow:1},component:w.Z,container:!0,spacing:2,padding:2,...a,children:t})]})},Y=()=>{var e;let{t:n}=(0,R.q)(),{data:t,error:a,loading:r}=function(e){let n={...L};return g.aM(U,n)}(),s=null!==(e=null==t?void 0:t.exchangeRates)&&void 0!==e?e:[],[d,c]=(0,l.useState)(!1);return(0,o.jsx)(W,{title:(0,o.jsxs)(k.Z,{direction:"row",justifyContent:"space-between",children:[(0,o.jsx)(P.Z,{"data-testid":"ExchangeRatesWidget-title",children:n("dashboard:dashboard.exchangeRates.title")}),(0,o.jsx)(P.Z,{"data-testid":"ExchangeRatesWidget-linkMore",sx:{fontWeight:600},children:(0,o.jsx)(Z.Z,{"data-testid":"ExchangeRatesWidget-linkMoreLink",onClick:()=>c(!0),children:n("dashboard:dashboard.exchangeRates.button.viewAll")})})]}),children:r?(0,o.jsx)(w.Z,{size:{xs:12},sx:{textAlign:"center"},children:(0,o.jsx)(A.Z,{})}):!a&&(null==t?void 0:t.exchangeRates)?(0,o.jsxs)(o.Fragment,{children:[d&&(0,o.jsx)(q,{exchangeRates:s,onClose:()=>c(!1),open:d}),s.slice(0,2).map((e,n)=>(0,o.jsx)(l.Fragment,{children:(0,o.jsxs)(o.Fragment,{children:[n>0&&(0,o.jsx)(w.Z,{size:{xs:12},children:(0,o.jsx)(S.Z,{})}),(0,o.jsx)(w.Z,{size:{xs:2},children:(0,o.jsx)(i.Z,{sx:{paddingLeft:1,paddingTop:"2px"},children:(0,o.jsx)(T.WN,{country:(0,h.rO)(e.toCurrency),width:25})})}),(0,o.jsx)(w.Z,{size:{xs:2},children:(0,o.jsx)(P.Z,{"data-testid":"".concat(e.toCurrency,"-toCurrency"),sx:{fontWeight:600},children:e.toCurrency})}),(0,o.jsx)(w.Z,{size:{xs:8},children:(0,o.jsxs)(P.Z,{"data-testid":"".concat(e.toCurrency,"-buySell"),sx:{fontWeight:600,textAlign:"right",paddingRight:1},children:[e.buy," /"," ",(0,o.jsx)(P.Z,{component:"span","data-testid":"".concat(e.toCurrency,"-sell"),sx:{color:"text.secondary",fontWeight:600},children:e.sell})]})})]})},e.toCurrency))]}):(0,o.jsx)(w.Z,{size:{xs:12},children:(0,o.jsx)(z.o,{error:a})})})};var H=t(25145),G=t(13959),K=t(12946),$=t(21508),J=t(40307);let Q=()=>(0,o.jsxs)(k.Z,{spacing:2,p:2,pt:4,children:[(0,o.jsx)(J.j,{items:2}),(0,o.jsx)(i.Z,{p:1,children:(0,o.jsx)($.Z,{variant:"rounded",height:273})})]}),V=e=>{let{text:n,title:t,"data-testid":a}=e;return(0,o.jsxs)(k.Z,{sx:{padding:5,textAlign:"center",flex:1,height:"100%"},direction:"column",alignItems:"center",justifyContent:"center",spacing:2,children:[(0,o.jsx)(m.InboxIcon,{sx:{fontSize:"4.0625rem"}}),(0,o.jsx)(P.Z,{"data-testid":"".concat(a,"-title"),variant:"h3",children:t}),(0,o.jsx)(P.Z,{"data-testid":"".concat(a,"-text"),fontWeight:"300",children:n})]})};function X(){let e=(0,y._)(['\n query MyAccountsAndCards {\n neo_accounts {\
1n id\n friendlyName\n availableBalance\n currency {\n id\n }\n name\n iban\n type {\n id\n description\n accountGroup {\n id\n text\n }\n }\n preferredOrder\n orderIndexExcludingPreferred\n status {\n id\n text\n }\n cmsAccount {\n image(sizes: ["max"]) {\n height\n url\n width\n }\n }\n permissions(\n entityTypes: [\n CorpOwnAccountPaymentOrder\n DomesticPaymentOrder\n IntrabankFCyPaymentOrder\n IntrabankPaymentOrder\n MPayPaymentOrder\n OwnAccountPaymentOrder\n SwiftPaymentOrder\n UtilityPaymentOrder\n UtilityAutomaticPaymentOrder\n ]\n ) {\n entityType\n accessTypes\n }\n }\n neo_cards {\n id\n form {\n id\n }\n isReissuable\n friendlyName\n maskedExpiryDate\n holderName\n maskedNumber\n currency {\n id\n text\n }\n account {\n id\n iban\n status {\n id\n text\n }\n permissions(\n entityTypes: [\n CorpOwnAccountPaymentOrder\n DomesticPaymentOrder\n IntrabankFCyPaymentOrder\n IntrabankPaymentOrder\n MPayPaymentOrder\n OwnAccountPaymentOrder\n SwiftPaymentOrder\n UtilityPaymentOrder\n UtilityAutomaticPaymentOrder\n ]\n ) {\n entityType\n accessTypes\n }\n }\n balances {\n availableBalance\n }\n permissions {\n instructionTypeCode\n accessTypes\n }\n permissions_v2 {\n entityType\n accessTypes\n }\n issuer {\n cmsCardIssuer {\n image {\n height\n url\n width\n }\n }\n }\n cmsCard {\n image {\n height\n url\n width\n }\n cmsCardIssuer {\n image {\n height\n url\n width\n }\n }\n }\n productType {\n id\n text\n }\n status {\n id\n }\n }\n }\n']);return X=function(){return e},e}let ee={},en=(0,f.Ps)(X());var et=t(5632),ea=t(98614),er=t(23467),eo=t(87842),ei=t.n(eo),el=t(54378),es=t(22864),ed=t(16874);function ec(){let e=(0,y._)(["\n text {\n font-size: 23px;\n font-family: ",";\n fill: white;\n }\n"]);return ec=function(){return e},e}let eu=el.Z.svg(ec(),ei().style.fontFamily),em=e=>{var n,t;let{"data-testid":a="accountCard",width:r=300,height:i,account:l}=e,{t:s}=(0,R.q)(),{formatNumber:d,formatIban:c}=(0,N.z)(),{backgroundImage:u,cardHeight:h,ref:x}=(0,ed.sE)({width:r,height:i,productData:{cmsAccount:l.cmsAccount}});return(0,o.jsxs)(eu,{width:r,height:i,ref:x,viewBox:"0 0 500 ".concat(null!=h?h:312.5),children:[(0,o.jsxs)("defs",{children:[(0,o.jsx)("rect",{id:"rect",x:"0",y:"0",width:"100%",height:"100%",rx:"15"}),(0,o.jsx)("clipPath",{id:"clip",children:(0,o.jsx)("use",{xlinkHref:"#rect"})}),(0,o.jsxs)("linearGradient",{id:"Gradient1",width:"100%",height:"100%",gradientTransform:"rotate(90)",children:[(0,o.jsx)("stop",{stopColor:"#005BEA",offset:"0%"}),(0,o.jsx)("stop",{stopColor:"#00C6FB",offset:"100%"})]})]}),u?(0,o.jsx)("image",{href:u.url,clipPath:"url(#clip)",width:"100%",height:"100%"}):(0,o.jsx)("rect",{id:"rect-bg",width:"100%",height:"100%",rx:"15",fill:"url(#Gradient1)"}),(0,o.jsx)("g",{children:(0,o.jsxs)("svg",{x:25,children:[(0,o.jsx)("text",{y:"17%",letterSpacing:"1.68",style:{fontWeight:"500"},"data-testid":"".concat(a,"-nameOrType"),children:l.friendlyName||l.name}),(0,o.jsxs)("text",{style:{fontSize:"40px",fontWeight:"500"},y:"64%",letterSpacing:"1.92","data-testid":"".concat(a,"-amount"),children:[d(null!==(t=l.availableBalance)&&void 0!==t?t:0),(0,o.jsx)("tspan",{dx:8,style:{fontSize:"28px",fontWeight:"500"},children:null==l?void 0:null===(n=l.currency)||void 0===n?void 0:n.id})]}),(0,o.jsx)("text",{y:"85%",letterSpacing:"1.68",style:{fontWeight:"500"},"data-testid":"".concat(a,"-cardNumber"),children:c(l.iban)}),(0,es.H)(l)&&(0,o.jsxs)("g",{onMouseUp:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(c(l.iban)),(0,T.CF)(s("common:common.text.copiedToClipboard"))},"data-testid":"".concat(a,"-copy"),children:[(0,o.jsx)(m.CardCopyIcon,{x:"415",y:"78%",style:{color:"white"}}),(0,o.jsx)("rect",{x:"415",y:"78%",width:"32",height:"32",opacity:"0",style:{cursor:"pointer"},children:(0,o.jsx)("title",{children:s("common:common.text.copy")})})]})]})})]})};var eh=t(21359);let ex={arrows:!0,dots:!1,infinite:!1,speed:500,slidesToShow:1,slidesToScroll:1,centerMode:!0,centerPadding:"10%",autoplay:!1,autoplaySpeed:5e3,prevArrow:(0,o.jsx)(e=>{let{onClick:n}=e;return n?(0,o.jsx)(eh.Z,{"data-testid":"prev-button",onClick:n,sx:{position:"absolute",top:"50%",left:12,transform:"translateY(-50%)",backgroundColor:"white","&:hover":{backgroundColor:"rgba(255,255,255,0.9)"},border:"1px solid",borderColor:"grey.200",zIndex:2},children:(0,o.jsx)(m.ArrowPrevIcon,{sx:{fontSize:"0.875rem",color:"text.primary"}})}):null},{}),nextArrow:(0,o.jsx)(e=>{let{onClick:n}=e;return n?(0,o.jsx)(eh.Z,{"data-testid":"next-button",onClick:n,sx:{position:"absolute",top:"50%",right:12,transform:"translateY(-50%)",backgroundColor:"white","&:hover":{backgroundColor:"rgba(255,255,255,0.9)"},border:"1px solid",borderColor:"grey.200",zIndex:2},children:(0,o.jsx)(m.ArrowNextIcon,{sx:{fontSize:"0.875rem",color:"text.primary"}})}):null},{})},ep=e=>{let{accounts:n,activeAccount:t,onActiveAccountChange:a}=e,r=(0,l.useRef)(null),s=(0,et.useRouter)(),d=(0,l.useRef)(!1),c=(0,l.useMemo)(()=>n.slice(0,3),[n]);if((0,l.useEffect)(()=>
1{if(-1===c.findIndex(e=>e.id===(null==t?void 0:t.id))){var e;a(null!==(e=c[0])&&void 0!==e?e:null)}},[t,c]),(0,l.useEffect)(()=>{var e;let n=c.findIndex(e=>e.id===(null==t?void 0:t.id));null===(e=r.current)||void 0===e||e.slickGoTo(Math.max(n,0),!0)},[t,c]),!(null==n?void 0:n.length))return null;let u=n.length-c.length;return(0,o.jsxs)(k.Z,{alignItems:"center",spacing:1,sx:{paddingBottom:2},children:[(0,o.jsx)(i.Z,{sx:{width:"100%"},children:(0,o.jsx)(er.Z,{...ex,ref:r,afterChange:e=>{a(n[e])},children:c.map(e=>(0,o.jsx)(Z.Z,{"data-testid":"account-link-".concat(e.id),underline:"none",component:i.Z,p:1.5,onMouseUp:()=>!d.current&&s.push("/accounts/".concat(e.id)),onMouseDown:()=>d.current=!1,onMouseMove:()=>d.current=!0,children:(0,o.jsx)(em,{account:e,width:"100%"})},e.id))})}),(0,o.jsx)(i.Z,{minHeight:"2rem",children:u>0&&(0,o.jsx)(ea.cC,{i18nKey:"dashboard:dashboard.text.moreAccounts",values:{count:u},components:[(0,o.jsx)(Z.Z,{"data-testid":"moreAccounts-link",component:p(),href:"/accounts"},"0")]})})]})};var ev=t(66960),eb=t(37370),ey=t.n(eb),ef=t(77762),eg=t(99086),ej=t(34565);function eC(){let e=(0,y._)(["\n text {\n font-size: 23px;\n font-family: ",";\n fill: white;\n }\n"]);return eC=function(){return e},e}let eI=el.Z.svg(eC(),ey().style.fontFamily),eA=e=>{var n;let{"data-testid":t="cardImage",width:a=300,height:r,amount:i,amountCurrency:l,cardData:s}=e,{formatNumber:d,formatCardNumber:c}=(0,N.z)(),{clientLegalCategory:u}=(0,ej.s)(),{backgroundImage:m,cardHeight:h,ref:x,issuerLogo:p,issuerLogoHeight:v}=(0,ef.Ld)({width:a,height:r,cardData:s});return(0,o.jsxs)(eI,{width:a,height:r,viewBox:"0 0 500 ".concat(null!=h?h:312.5),ref:x,children:[(0,o.jsxs)("defs",{children:[(0,o.jsx)("rect",{id:"rect",x:"0",y:"0",width:"100%",height:"100%",rx:"15"}),(0,o.jsx)("clipPath",{id:"clip",children:(0,o.jsx)("use",{xlinkHref:"#rect"})})]}),m?(0,o.jsx)("image",{href:m.url,clipPath:"url(#clip)",width:"100%",height:"100%"}):(0,o.jsx)("image",{href:"".concat(eg.GW,"/images/card-backup.png"),clipPath:"url(#clip)",width:"100%",height:"100%"}),(0,o.jsxs)("g",{children:[p&&(0,o.jsx)("g",{transform:"translate(".concat(-127," ").concat(-34-(null!=v?v:0),")"),children:(0,o.jsx)("image",{x:"100%",y:"100%",href:p.url,width:110,height:v})}),(0,o.jsxs)("svg",{x:25,children:[(0,o.jsxs)("text",{style:{fontSize:"40px",fontWeight:"500"},y:"64%",letterSpacing:"1.92","data-testid":"".concat(t,"-amount"),children:[null!==i?d(i):"-",(0,o.jsx)("tspan",{dx:8,style:{fontSize:"28px",fontWeight:"500"},children:l})]}),(0,o.jsx)("text",{y:"85%",letterSpacing:"1.68",style:{fontWeight:"500"},"data-testid":"".concat(t,"-cardNumber"),children:c(null!==(n=null==s?void 0:s.cardNumber)&&void 0!==n?n:"")}),"C"===u&&(0,o.jsx)("text",{y:"75%",letterSpacing:"1.68",style:{fontWeight:"500"},"data-testid":"".concat(t,"-cardHolderName"),children:null==s?void 0:s.holderName})]})]})]})},eS=e=>{var n;let{cards:t,activeCard:a,onActiveCardChange:r}=e,s=(0,l.useRef)(null),d=(0,et.useRouter)(),c=(0,l.useRef)(!1),u=(0,l.useMemo)(()=>{var e;return null!==(e=null==t?void 0:t.slice(0,3))&&void 0!==e?e:[]},[t]),m=(null!==(n=null==t?void 0:t.length)&&void 0!==n?n:0)-u.length;return((0,l.useEffect)(()=>{if(-1===u.findIndex(e=>e.id===(null==a?void 0:a.id))){var e;r(null!==(e=u[0])&&void 0!==e?e:null)}},[a,u]),(0,l.useEffect)(()=>{var e;let n=u.findIndex(e=>e.id===(null==a?void 0:a.id));null===(e=s.current)||void 0===e||e.slickGoTo(Math.max(n,0),!0)},[a,u]),u.length)?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(k.Z,{alignItems:"center",spacing:1,sx:{paddingBottom:2},children:[(0,o.jsx)(i.Z,{sx:{width:"100%"},children:(0,o.jsx)(er.Z,{...ex,ref:s,afterChange:e=>{var n;r(null!==(n=u[e])&&void 0!==n?n:null)},children:u.map(e=>{var n,t,a,r,l;return(0,o.jsx)(Z.Z,{"data-testid":"card-link-".concat(e.id),underline:"none",component:i.Z,p:1.5,onMouseUp:()=>!c.current&&d.push("/cards/".concat(e.id)),onMouseDown:()=>c.current=!1,onMouseMove:()=>c.current=!0,children:(0,o.jsxs)(i.Z,{sx:{position:"relative"},children:[(0,o.jsx)(ev.I,{cardStatusId:(null===(n=e.status)||void 0===n?void 0:n.id)||null}),(0,o.jsx)(eA,{cardData:{...e,expiryDate:e.maskedExpiryDate,cardNumber:e.maskedNumber},amount:null!==(r=null===(t=e.balances)||void 0===t?void 0:t.availableBalance)&&void 0!==r?r:null,amountCurrency:null!==(l=null==e?void 0:null===(a=e.currency)||void 0===a?void 0:a.id)&&void 0!==l?l:"",width:"100%"})]})},e.id)})})}),(0,o.jsx)(i.Z,{minHeight:"2rem",children:m>0&&(0,o.jsx)(ea.cC,{i18nKey:"dashboard:dashboard.text.moreCards",values:{count:m},components:[(0,o.jsx)(Z.Z,{"data-testid":"moreCards-link",component:p(),href:"/cards"},"0")]})})]})}):null};(a=r||(r={}))[a.MY_ACCOUNTS=0]="MY_ACCOUNTS",a[a.MY_CARDS=1]="MY_CARDS";let ew=e=>{var n,t,a,l;let{activeAccount:s,onActiveAccountChange:d,activeCard:c,onActiveCardChange:u,activeProductType:m,onProductTypeChange:h}=e,{t:x}=(0,R.q)(),{data:p,loading:v,previousData:b}=function(e){let n={...ee};return g.aM(en,n)}(),y=v?b:p,f=m===r.MY_ACCOUNTS?0:"-100%";
1return(0,o.jsxs)(H.Z,{sx:{borderRadius:"1rem",height:"100%",boxShadow:7},children:[v&&!b&&(0,o.jsx)(Q,{}),y&&(0,o.jsxs)(k.Z,{height:"100%",children:[(0,o.jsxs)(K.Z,{value:m,variant:"fullWidth",sx:{margin:"1rem"},onChange:(e,n)=>{h(n)},children:[(0,o.jsx)(G.Z,{value:r.MY_ACCOUNTS,label:x("dashboard:dashboard.tab.myAccounts.title"),"data-testid":"MY_ACCOUNTS"}),(0,o.jsx)(G.Z,{value:r.MY_CARDS,label:x("dashboard:dashboard.tab.myCards.title"),"data-testid":"MY_CARDS"})]}),(0,o.jsx)(i.Z,{sx:{overflow:"hidden"},children:(0,o.jsxs)(k.Z,{direction:"row",sx:{width:"200%",transition:"left 0.3s",position:"relative",left:f},children:[(0,o.jsx)(i.Z,{sx:{width:"50%"},children:(null!==(n=y.neo_accounts)&&void 0!==n?n:[]).length>0?(0,o.jsx)(ep,{accounts:null!==(t=y.neo_accounts)&&void 0!==t?t:[],activeAccount:s,onActiveAccountChange:d}):(0,o.jsx)(V,{"data-testid":"noAccounts",title:x("dashboard:dashboard.noAccounts.title"),text:x("dashboard:dashboard.noAccounts.text")})}),(0,o.jsx)(i.Z,{sx:{width:"50%"},children:(null!==(a=y.neo_cards)&&void 0!==a?a:[]).length>0?(0,o.jsx)(eS,{cards:null!==(l=null==y?void 0:y.neo_cards)&&void 0!==l?l:[],activeCard:c,onActiveCardChange:u}):(0,o.jsx)(V,{"data-testid":"noCards",title:x("dashboard:dashboard.noCards.title"),text:x("dashboard:dashboard.noCards.text")})})]})})]})]})};var eZ=t(42075);let ek=(0,l.forwardRef)(function(e,n){let{children:t,IconComponent:a,url:r,disabled:l=!1,halfHeightMax:s=!1,"data-testid":d,onClick:c,...u}=e,m=(0,et.useRouter)();return(0,o.jsx)(w.Z,{ref:n,size:{xs:12,sm:6,lg:4},maxHeight:s?"50%":"auto","data-testid":"quickAction-".concat(d).concat(l?"-disabled":""),...u,children:(0,o.jsxs)(k.Z,{alignItems:"flex-start",justifyContent:"center",gap:1.5,sx:{padding:"1rem",backgroundColor:"#f7f7f8",border:"1px solid #ebebef",borderRadius:"0.75rem",cursor:l?"not-allowed":"pointer",height:"100%"},onClick:()=>c?c():r&&!l?m.push(r):null,children:[(0,o.jsx)(i.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",color:"white",width:"2.5rem",height:"2.5rem",borderRadius:"50%",backgroundColor:l?"grey.200":"primary.main"},children:(0,o.jsx)(a,{color:l?"disabled":"inherit"})}),(0,o.jsx)(P.Z,{"data-testid":"quickAction-".concat(d,"-title").concat(l?"-disabled":""),color:l?"grey.500":"text",children:t})]})})});var eP=t(69335),eT=t(96413),eF=t(8424);let eM=e=>{var n,t,a,r,i,s,d;let{account:c}=e,{clientLegalCategory:u}=(0,ej.s)(),{t:h}=(0,R.q)(),x=(0,et.useRouter)(),[p,v]=(0,l.useState)(!1),b=(0,eF.D)({beneficiaryId:null,accountNumber:null!==(r=null==c?void 0:c.iban)&&void 0!==r?r:null,account:{currency:null!==(i=null==c?void 0:c.currency)&&void 0!==i?i:null,status:null!==(s=null==c?void 0:c.status)&&void 0!==s?s:null,permissions:null!==(d=null==c?void 0:c.permissions)&&void 0!==d?d:null}});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eP.W,{defaultAccountNumber:null==c?void 0:c.iban,open:p,onClose:()=>v(!1),isCorporate:"C"===u}),(0,o.jsxs)(W,{title:h("dashboard:dashboard.quickActions.title.common"),children:[(0,o.jsx)(ek,{"data-testid":"betweenAccounts",IconComponent:m.CycleIcon,url:"/payments/new/own-accounts-payment?accountNumber=".concat(null==c?void 0:c.iban),disabled:!c||(null===(n=b.find(e=>e.payment===eT.F6.OWN_ACCOUNTS))||void 0===n?void 0:n.disabled)===!0,children:h("dashboard:dashboard.quickActions.label.betweenAccounts")}),(0,o.jsx)(ek,{"data-testid":"makePayment",IconComponent:m.ReverseRightIcon,url:"/payments/new?accountNumber=".concat(null==c?void 0:c.iban),disabled:!c||b.filter(e=>e.payment!==eT.F6.SALARY_PROJECT).every(e=>!!e.disabled),children:h("dashboard:dashboard.quickActions.label.makePayment")}),"C"===u?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ek,{"data-testid":"salaryProject",IconComponent:m.FileAttachmentIcon,url:"/payments/new/salary-project",disabled:!c||(null===(t=b.find(e=>e.payment===eT.F6.SALARY_PROJECT))||void 0===t?void 0:t.disabled)===!0,children:h("dashboard:dashboard.quickActions.label.salaryProject")}),(0,o.jsx)(ek,{"data-testid":"statements",IconComponent:m.FileAttachmentIcon,disabled:!c,onClick:()=>{v(!0)},children:h("dashboard:dashboard.quickActions.label.statements")})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eZ.Z,{title:h("common:common.comingSoon.title"),children:(0,o.jsx)(ek,{"data-testid":"payBills",IconComponent:m.FileAttachmentIcon,url:"/payments/utilities",children:h("dashboard:dashboard.quickActions.label.payBills")})}),(0,o.jsx)(ek,{"data-testid":"mPay",IconComponent:m.FileAttachmentIcon,url:"/payments/new/mpay-payment",disabled:!c||!b.find(e=>e.payment===eT.F6.MPAY)||(null===(a=b.find(e=>e.payment===eT.F6.MPAY))||void 0===a?void 0:a.disabled)===!0,children:h("dashboard:dashboard.quickActions.label.mPay")})]}),(0,o.jsx)(ek,{"data-testid":"templates",IconComponent:m.ClipboardIcon,url:"/payments/templates",children:h("dashboard:dashboard.quickActions.label.templates")}
1),(0,o.jsx)(ek,{"data-testid":"movements",IconComponent:m.MovementsIcon,onClick:()=>{x.push("/accounts/movements",{search:"accountNumber=".concat(c.iban)})},disabled:!c,children:h("dashboard:dashboard.quickActions.label.movements")})]})]})};var e_=t(56675),eN=t(19126),eR=t(24219),eO=t(81555),eE=t(24501),eB=t(66486),eq=t(87143),eD=t(67371),eL=t(56099),eU=t(47909);let ez=e=>{var n,t,a,r,i,s,d,c,u,h,x,p,v,b,y;let{card:f}=e,{t:g}=(0,R.q)(),{clientLegalCategory:j}=(0,ej.s)(),[,C]=(0,eD.H)("",{key:eq.A2}),I=(0,et.useRouter)(),A=(0,e_.x)(),[S,w]=(0,l.useState)(null),{FreezeAction:Z,UnfreezeAction:k,SetLimitsAction:P}=(0,eE.ub)(f);return(0,o.jsxs)(o.Fragment,{children:[(()=>{if(!f)return null;switch(S){case eE.T$.FREEZE:return(0,o.jsx)(eR.l,{cardId:f.id,onCancel:()=>w(null),onSuccess:()=>{A.refetchQueries({include:[en]}),w(null)}});case eE.T$.UNFREEZE:return(0,o.jsx)(eO.R,{cardId:f.id,onCancel:()=>w(null),onSuccess:()=>{A.refetchQueries({include:[en]}),w(null)}});case eE.T$.SET_LIMITS:return(0,o.jsx)(eB.j,{cardId:f.id,onSuccess:()=>w(null),onCancel:()=>w(null)});default:return null}})(),(0,o.jsxs)(W,{title:g("dashboard:dashboard.quickActions.title.common"),children:["P"===j&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ek,{"data-testid":"betweenAccounts",IconComponent:m.CycleIcon,url:"/payments/new/own-accounts-payment?accountNumber=".concat(null==f?void 0:null===(n=f.account)||void 0===n?void 0:n.iban),disabled:!(0,eL.F)({accountStatusId:null!==(h=null==f?void 0:null===(a=f.account)||void 0===a?void 0:null===(t=a.status)||void 0===t?void 0:t.id)&&void 0!==h?h:null,permissions:null!==(x=null==f?void 0:null===(r=f.account)||void 0===r?void 0:r.permissions)&&void 0!==x?x:null,legalCategoryId:j}),children:g("dashboard:dashboard.quickActions.label.betweenAccounts")}),(0,o.jsx)(ek,{"data-testid":"p2p",url:"/payments/new/p2p-payment".concat((0,eN.stringify)({card:null==f?void 0:f.id},{addQueryPrefix:!0})),IconComponent:m.P2PIcon,disabled:!(0,eU.I)({cardStatusId:null!==(p=null==f?void 0:null===(i=f.status)||void 0===i?void 0:i.id)&&void 0!==p?p:null,currency:null!==(v=null==f?void 0:null===(s=f.currency)||void 0===s?void 0:s.id)&&void 0!==v?v:null,productTypeId:null!==(b=null==f?void 0:null===(d=f.productType)||void 0===d?void 0:d.id)&&void 0!==b?b:null,permissions:null!==(y=null==f?void 0:f.permissions_v2)&&void 0!==y?y:null,legalCategoryId:j}),children:g("dashboard:dashboard.quickActions.label.p2p")}),(0,o.jsx)(ek,{"data-testid":"payBills",IconComponent:m.BillIcon,url:"/payments/utilities",children:g("dashboard:dashboard.quickActions.label.payBills")})]}),Z.isAvailable&&(null==f?void 0:null===(c=f.status)||void 0===c?void 0:c.id)!=="blocked_temp"&&(0,o.jsx)(ek,{"data-testid":"temporaryBlock",IconComponent:m.CardLockIcon,onClick:()=>w(eE.T$.FREEZE),disabled:!Z.isEnabled,halfHeightMax:!0,children:g("dashboard:dashboard.quickActions.label.temporaryBlock")}),k.isAvailable&&(null==f?void 0:null===(u=f.status)||void 0===u?void 0:u.id)==="blocked_temp"&&(0,o.jsx)(ek,{"data-testid":"unBlock",IconComponent:m.CardLockIcon,disabled:!k.isEnabled,onClick:()=>w(eE.T$.UNFREEZE),halfHeightMax:!0,children:g("dashboard:dashboard.quickActions.label.unBlock")}),P.isAvailable&&"C"===j&&(0,o.jsx)(ek,{"data-testid":"limits",IconComponent:m.TogglesIcon,disabled:!P.isEnabled,onClick:()=>w(eE.T$.SET_LIMITS),halfHeightMax:!0,children:g("dashboard:dashboard.quickActions.label.limits")}),"P"===j&&(0,o.jsx)(ek,{"data-testid":"templates",IconComponent:m.ClipboardIcon,url:"/payments/templates",children:g("dashboard:dashboard.quickActions.label.templates")}),(0,o.jsx)(ek,{"data-testid":"movements",IconComponent:m.MovementsIcon,onClick:()=>{C(f.id),I.push("/cards/movements")},disabled:!f,halfHeightMax:!0,children:g("dashboard:dashboard.quickActions.label.movements")})]})]})};var eW=t(69695),eY=t(77863);let eH=()=>{let{t:e}=(0,R.q)(),n=(0,et.useRouter)(),[,t]=(0,eD.H)("ALL",{key:eW.n5}),{totalCount:a}=(0,eY.I)({tab:"MY_SIGN",mySign:!0,paymentsGroup:"manualPayments"}),{totalCount:r}=(0,eY.I)({tab:"MY_SIGN",mySign:!0,paymentsGroup:"salaryPayments"}),i=a+r,{totalCount:l}=(0,eY.I)({tab:"FOR_SIGN",mySign:!1,paymentsGroup:"manualPayments"}),{totalCount:s}=(0,eY.I)({tab:"FOR_SIGN",mySign:!1,paymentsGroup:"salaryPayments"}),d=l+s,{totalCount:c}=(0,eY.I)({tab:"REJECTED",paymentsGroup:"manualPayments"}),{totalCount:u}=(0,eY.I)({tab:"REJECTED",paymentsGroup:"salaryPayments"}),h=c+u;return(0,o.jsxs)(W,{title:e("dashboard:dashboard.quickActions.title.payments"),children:[(0,o.jsx)(ek,{"data-testid":"mySign",IconComponent:m.FileAcceptIcon,onClick:()=>{i>0&&(t("MY_SIGN"),n.push("/payments"))},children:"".concat(e("dashboard:dashboard.quickActions.label.mySign")," (").concat(i,")")}),(0,o.jsx)(ek,{"data-testid":"toSign",IconComponent:m.PencilIcon,onClick:()=>{d>0&&(t("FOR_SIGN"),n.push("/payments"))},children:"".concat(e("dashboard:dashboard.quickActions.label.toSign")," (").concat(d,")")}),(0,o.jsx)(ek,{"data-testid":"rejected",IconComponent:m.FileRejectIcon,onClick:()=>{h>0&&(t("REJECTED"),n.push("/payments"))},children:"".concat(e("dashboard:dashboard.quickActions.label.rejected")," (").concat(h,")")})]})},eG=()=>{var e;let{data:n}=function(e){let n={...C,...e};return g.aM(I,n)}({variables:{channels:"web",placements:"dashboard"}}),t=null!==(e=null==n?void 0:n.banners)&&void 0!==e?e:[],{clientLegalCategory:a}=(0,ej.s)(),[s,d]=(0,l.useState)(null),[c,u]=(0,l.useState)(null),[m,h]=(0,l.useState)(r.MY_ACCOUNTS
1);return(0,o.jsxs)(i.Z,{sx:e=>({display:"grid",gap:6,gridTemplateColumns:{xs:"100%",sm:"calc((100% - ".concat(e.spacing(6),") / 2) 1fr"),md:"calc((100% - ".concat(e.spacing(6),") / 2) 1fr"),lg:"calc((100% - 2 * ".concat(e.spacing(6),") / 3) 1fr 1fr")},gridTemplateRows:"auto",gridTemplateAreas:{xs:'\n "accountsAndCards"\n "quickActions"\n "leftBanner"\n "payments1"\n "bottomBanner1"\n "bottomBanner2"\n ',sm:'\n "accountsAndCards accountsAndCards ."\n "quickActions quickActions quickActions"\n "payments1 payments2 payments3"\n "leftBanner bottomBanner1 bottomBanner2"\n ',md:'\n "accountsAndCards quickActions"\n "leftBanner payments1"\n "bottomBanner1 bottomBanner2"\n ',lg:'\n "accountsAndCards quickActions quickActions"\n "leftBanner payments1 payments2"\n ". bottomBanner1 bottomBanner2"\n '},maxWidth:"xl"}),children:[(0,o.jsx)(i.Z,{sx:{gridArea:"accountsAndCards"},children:(0,o.jsx)(ew,{activeAccount:s,activeCard:c,activeProductType:m,onActiveAccountChange:e=>d(e),onActiveCardChange:e=>u(e),onProductTypeChange:e=>h(e)})}),(0,o.jsxs)(i.Z,{sx:{gridArea:"quickActions"},children:[m===r.MY_ACCOUNTS&&(0,o.jsx)(eM,{account:s}),m===r.MY_CARDS&&(0,o.jsx)(ez,{card:c})]}),"C"===a&&(0,o.jsx)(i.Z,{sx:{gridArea:"payments1",gridColumn:{sm:"span 3",md:"span 1",lg:"span 2"}},children:(0,o.jsx)(eH,{})}),(0,o.jsx)(i.Z,{sx:eK(a),children:(0,o.jsx)(Y,{})}),t.map((e,n)=>e?(0,o.jsx)(i.Z,{children:(0,o.jsx)(b,{...e,"data-testid":"dashboard-".concat(n)})},e.id):null)]})},eK=e=>({gridArea:{sx:"leftBanner",sm:"C"===e?"leftBanner":"payments1",md:"leftBanner"}});var e$=t(67958),eJ=t(54360);let eQ=()=>(0,o.jsx)(eG,{});eQ.getLayout=function(e){return(0,o.jsx)(e$.Ar,{tTitle:"section:section.header.header.overview",useBreadcrumbs:()=>{let{translate:{t:e}}=(0,eJ.J)();return{items:[{id:"overview",label:e("section:section.header.header.overview")}]}},children:e})};var eV=!0,eX=eQ},37370:function(e){e.exports={style:{fontFamily:"'__Noto_Sans_9806bf', '__Noto_Sans_Fallback_9806bf'",fontStyle:"normal"},className:"__className_9806bf"}},87842:function(e){e.exports={style:{fontFamily:"'__Noto_Sans_9806bf', '__Noto_Sans_Fallback_9806bf'",fontStyle:"normal"},className:"__className_9806bf"}},45982:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var a=t(2784),r=t(40489),o=t(40053),i=t(67727),l=t(34058),s=t(25145),d=t(88685),c=t(82449);function u(e){return(0,c.ZP)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var m=t(52322);let h=e=>{let{classes:n}=e;return(0,o.Z)({root:["root"]},u,n)},x=(0,i.ZP)(s.Z,{name:"MuiCard",slot:"Root"})({overflow:"hidden"});var p=a.forwardRef(function(e,n){let t=(0,l.i)({props:e,name:"MuiCard"}),{className:a,raised:o=!1,...i}=t,s={...t,raised:o},d=h(s);return(0,m.jsx)(x,{className:(0,r.Z)(d.root,a),elevation:o?8:void 0,ref:n,ownerState:s,...i})})},81108:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var a=t(2784),r=t(40489),o=t(40053),i=t(67727),l=t(34058),s=t(88685),d=t(82449);function c(e){return(0,d.ZP)("MuiCardContent",e)}(0,s.Z)("MuiCardContent",["root"]);var u=t(52322);let m=e=>{let{classes:n}=e;return(0,o.Z)({root:["root"]},c,n)},h=(0,i.ZP)("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}});var x=a.forwardRef(function(e,n){let t=(0,l.i)({props:e,name:"MuiCardContent"}),{className:a,component:o="div",...i}=t,s={...t,component:o},d=m(s);return(0,u.jsx)(h,{as:o,className:(0,r.Z)(d.root,a),ownerState:s,ref:n,...i})})},69213:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var a=t(2784),r=t(40053),o=t(90230),i=t(25290),l=t(67727),s=t(34058),d=t(88685),c=t(82449);function u(e){return(0,c.ZP)("MuiCardHeader",e)}let m=(0,d.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]);var h=t(8032),x=t(52322);let p=e=>{let{classes:n}=e;return(0,r.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},u,n)},v=(0,l.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,n)=>[{["& .".concat(m.title)]:n.title},{["& .".concat(m.subheader)]:n.subheader},n.root]})({display:"flex",alignItems:"center",padding:16}),b=(0,l.ZP)("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),y=(0,l.ZP)("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),f=(0,l.ZP)("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[".".concat(o.Z.root,":where(& .").concat(m.title,")")]:{dis
1play:"block"},[".".concat(o.Z.root,":where(& .").concat(m.subheader,")")]:{display:"block"}});var g=a.forwardRef(function(e,n){let t=(0,s.i)({props:e,name:"MuiCardHeader"}),{action:a,avatar:r,component:o="div",disableTypography:l=!1,subheader:d,subheaderTypographyProps:c,title:u,titleTypographyProps:m,slots:g={},slotProps:j={},...C}=t,I={...t,component:o,disableTypography:l},A=p(I),S={slots:g,slotProps:{title:m,subheader:c,...j}},w=u,[Z,k]=(0,h.Z)("title",{className:A.title,elementType:i.Z,externalForwardedProps:S,ownerState:I,additionalProps:{variant:r?"body2":"h5",component:"span"}});null==w||w.type===i.Z||l||(w=(0,x.jsx)(Z,{...k,children:w}));let P=d,[T,F]=(0,h.Z)("subheader",{className:A.subheader,elementType:i.Z,externalForwardedProps:S,ownerState:I,additionalProps:{variant:r?"body2":"body1",color:"textSecondary",component:"span"}});null==P||P.type===i.Z||l||(P=(0,x.jsx)(T,{...F,children:P}));let[M,_]=(0,h.Z)("root",{ref:n,className:A.root,elementType:v,externalForwardedProps:{...S,...C,component:o},ownerState:I}),[N,R]=(0,h.Z)("avatar",{className:A.avatar,elementType:b,externalForwardedProps:S,ownerState:I}),[O,E]=(0,h.Z)("content",{className:A.content,elementType:f,externalForwardedProps:S,ownerState:I}),[B,q]=(0,h.Z)("action",{className:A.action,elementType:y,externalForwardedProps:S,ownerState:I});return(0,x.jsxs)(M,{..._,children:[r&&(0,x.jsx)(N,{...R,children:r}),(0,x.jsxs)(O,{...E,children:[w,P]}),a&&(0,x.jsx)(B,{...q,children:a})]})})}},function(e){e.O(0,[8456,5268,6372,9126,3785,6023,7342,6272,2112,8393,1452,2226,6523,9886,7702,6957,6771,5814,5212,2267,7672,2900,4533,8488,3256,4106,2888,9774,179],function(){return e(e.s=87314)}),_N_E=e.O()}]);
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.