1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1057],{21025:function(e,r,n){"use strict";var t,a=n(67294);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},o.apply(null,arguments)}r.Z=function(e){return a.createElement("svg",o({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=a.createElement("path",{d:"M10.82 2.262c-.372.48-.786 1.217-1.374 2.266L2.453 17.017c-.565 1.008-.96 1.716-1.168 2.262-.205.543-.174.792-.073.965.102.173.304.322.877.407.579.086 1.389.087 2.545.087h13.987c1.156 0 1.966-.001 2.545-.087.573-.085.775-.234.877-.407.101-.173.132-.422-.074-.965-.207-.546-.602-1.254-1.167-2.262L13.809 4.527c-.588-1.05-1.002-1.785-1.373-2.266-.37-.479-.606-.582-.809-.582-.203 0-.438.103-.808.582Zm-.792-.612c.43-.556.923-.97 1.6-.97.675 0 1.17.414 1.599.97.422.547.871 1.35 1.432 2.351l.022.039 6.993 12.488.022.038c.538.962.97 1.734 1.208 2.358.242.638.334 1.257.001 1.825-.333.569-.918.79-1.593.89-.66.099-1.545.099-2.647.099H4.59c-1.102 0-1.987 0-2.648-.098-.675-.1-1.26-.322-1.593-.89-.333-.57-.24-1.188.002-1.826.237-.624.67-1.396 1.208-2.358l.021-.038L8.574 4.04 8.595 4c.561-1.002 1.01-1.804 1.433-2.35Zm1.907 6.614a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0v-5a.5.5 0 0 1 .5-.5ZM11.5 17a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0v1Z"})))}},11766:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/payments/[component]",function(){return n(65047)}])},36625:function(e,r,n){"use strict";n.d(r,{Z:function(){return m},n:function(){return _}});var t=n(85893),a=n(11163),o=n(94184),c=n.n(o),s=n(27484),i=n.n(s),d=n(21025),l=n(89293),u=n(89946),p=n.n(u);function _(e){return e?e.split("_").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})).join(" "):"Unknown Error"}function m(e){var r=e.errorId,n=e.occurrences,o=e.lastOccurrence,s=e.validationType,u=e.severity,m=e.connectionId,v=(0,a.useRouter)(),C=v.query.component;return(0,t.jsx)("div",{className:p().container,children:(0,t.jsxs)("div",{className:p().errorCard,children:[(0,t.jsxs)("div",{className:p().errorCardHeader,children:[(0,t.jsxs)("div",{className:p().errorCardTitle,children:[(0,t.jsx)(d.Z,{className:c()(p().alertIcon,p()["alertIcon".concat(u.toLowerCase())])}),(0,t.jsx)("div",{className:p().errorCardText,children:_(s)})]}),(0,t.jsxs)("div",{className:p().actionButton,onClick:function(){var e=void 0!==m?"/settings/payments/".concat(C,"/error/").concat(r,"?connectionId=").concat(m):"/settings/payments/".concat(C,"/error/").concat(r);v.push(e)},children:[(0,t.jsx)("div",{className:p().actionButtonText,children:"See Details"}),(0,t.jsx)(l.Z,{className:p().chevronRightIcon})]})]}),(0,t.jsxs)("div",{className:p().errorCardDetails,children:[(0,t.jsxs)("div",{className:p().errorCardMeta,children:["Error ID: ",r]}),(0,t.jsx)("div",{className:p().separator}),(0,t.jsxs)("div",{className:p().errorCardMeta,children:["Occurrences: ",n]}),(0,t.jsx)("div",{className:p().separator}),(0,t.jsxs)("div",{className:p().errorCardMeta,children:["Last Occurrence:"," ",i()(o).format("MMM D, YYYY, h:mm A")]})]})]})})}},65047:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return y}});var t=n(34727),a=n(34051),o=n.n(a),c=n(85893),s=n(11163),i=n(67294),d=n(85138),l=n(60334),u=n(94522),p=n(64513),_=n(84134),m=n(47969),v=n(36625),C=n(5863),f=n.n(C);function h(e){var r;return Object.values(_.ff.Component).map((function(e){return e.toLowerCase()})).includes(null===(r=e)||void 0===r?void 0:r.toLowerCase())}function x(e){var r=e.toLowerCase();return Object.values(_.ff.Component).find((function(e){return e.toLowerCase()===r}))}function y(){var e,r=(0,s.useRouter)(),n=r.query,a=n.component,l=n.connectionId,_=void 0!==l?Number(l):void 0,C=(0,u.TL)(),y=(0,u.CG)((function(e){return e.payments.paymentIntegrationHealth.errors})),E=(0,u.CG)((function(r){var n;return void 0!==_?null!==(e=null===(n=r.payments.paymentIntegrationHealthByConnection[_])||void 0===n?void 0:n.errors)&&void 0!==e?e:[]:void 0})),j=void 0!==_?E:y,N=(0,u.CG)((function(e){return e.developer.id}
1)),g=(0,i.useState)("Loading..."),I=g[0],T=g[1],w=(0,i.useCallback)((0,t.Z)(o().mark((function e(){var n,t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!N||!h(a)){e.next=17;break}if(n=x(a),void 0===_){e.next=10;break}return e.next=7,C((0,p.xc)({developerId:N,connectionId:_,component:n})).unwrap();case 7:t=e.sent,e.next=13;break;case 10:return e.next=12,C((0,p.XT)({developerId:N,component:n})).unwrap();case 12:t=e.sent;case 13:0===t.length&&r.replace("/settings/payments"),T(void 0),e.next=18;break;case 17:r.replace("/settings/payments");case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),r.replace("/settings/payments");case 23:case"end":return e.stop()}}),e,null,[[0,20]])}))),[N,a,_,C,r]);return(0,i.useEffect)((function(){N&&w()}),[C,N,w]),(0,c.jsx)(d.PayoutsContainer,{loading:!!I,loadingText:I,children:(0,c.jsxs)("div",{className:f().paymentHeader,children:[(0,c.jsx)("div",{className:f().paymentHeaderTitle,children:"Payment Account"}),(0,c.jsxs)("div",{className:f().credentialsSection,children:[(0,c.jsxs)("div",{className:f().credentialsSectionHeader,children:[(0,c.jsx)("div",{className:f().credentialsSectionTitle,children:a}),(0,c.jsxs)("div",{className:f().backButton,children:[(0,c.jsx)(m.Z,{className:f().chevronLeftIcon}),(0,c.jsx)("div",{className:f().actionButtonText,onClick:function(){r.push("/settings/payments")},children:"Back to Connection Health"})]})]}),(0,c.jsx)("div",{className:f().errorCards,children:null===j||void 0===j?void 0:j.map((function(e){return(0,c.jsx)(v.Z,{validationType:e.latestError.type,errorId:e.latestError.id,occurrences:e.occurrences,lastOccurrence:e.latestError.dateCreated,severity:e.latestError.status,connectionId:_},e.latestError.id)}))})]})]})})}y.getLayout=(0,l.a)({navType:"settings"})},89946:function(e){e.exports={container:"ErrorCard_container__1FYg8",errorCard:"ErrorCard_errorCard__WmtI6",errorCardHeader:"ErrorCard_errorCardHeader__nbuHZ",errorCardTitle:"ErrorCard_errorCardTitle___RzWs",errorCardText:"ErrorCard_errorCardText__PVnCX",errorCardDetails:"ErrorCard_errorCardDetails__UOVUz",errorCardMeta:"ErrorCard_errorCardMeta__wUUUF",actionButton:"ErrorCard_actionButton__CTiye",actionButtonText:"ErrorCard_actionButtonText__ZhQV3",separator:"ErrorCard_separator__1SYpB",alertIcon:"ErrorCard_alertIcon__CqUtS",alertIcondegraded:"ErrorCard_alertIcondegraded__UmEIB",alertIconcritical:"ErrorCard_alertIconcritical__6SLF9",chevronRightIcon:"ErrorCard_chevronRightIcon__EZMQS"}},5863:function(e){e.exports={paymentHeader:"paymentComponent_paymentHeader__Ui1KB",paymentHeaderTitle:"paymentComponent_paymentHeaderTitle__q7Zkc",credentialsSection:"paymentComponent_credentialsSection__p0EMS",credentialsSectionHeader:"paymentComponent_credentialsSectionHeader__Z1mw6",credentialsSectionTitle:"paymentComponent_credentialsSectionTitle__WMinl",backButton:"paymentComponent_backButton__X0B7x",chevronLeftIcon:"paymentComponent_chevronLeftIcon__uBhEM",actionButton:"paymentComponent_actionButton__0gF9Q",actionButtonText:"paymentComponent_actionButtonText__B0HFJ",errorCards:"paymentComponent_errorCards__pbT_d"}}},function(e){e.O(0,[281,3714,6585,6750,842,1664,1330,5578,7225,7110,5225,908,3304,5138,9774,2888,179],(function(){return r=11766,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.