PageSourceSearch

https://merchant.modempay.com/_next/static/chunks/pages/settings/payouts-cd772056cb5026af.js

js modempay.com collected 2026-10-06 21:33:25 UTC 17,538 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[559],{6515:(e,_,a)=>{"use strict";a.d(_,{A:()=>l});var t=a(37876),n=a(14232),i=a(89142),o=a.n(i),r=a(48230),c=a.n(r),s=a(86176);let l=e=>{let{tabs:_,activeIndex:a,business:i,dynamic:r}=e,{activeAccount:l}=(0,n.useContext)(s.A);return(0,t.jsx)("div",{className:o().tab_container,children:_.map((e,_)=>l&&l.test_mode&&e.hideOnTestMode||!(!e.permissions.length||i.permissions.some(_=>e.permissions.includes(_)))?null:(0,t.jsx)(c(),{href:function(e,_){return _?Object.entries(_).reduce((e,_)=>{let[a,t]=_;return e.replace(RegExp("{".concat(a,"}"),"g"),t)},e):e}(e.link,r),passHref:!0,className:"modem-tab ".concat(o().tab," ").concat(a==_?o().active:void 0),prefetch:!0,children:(0,t.jsx)("p",{style:e.color?{color:e.color,fontWeight:500}:{},children:e.title})},e.title))})}},9808:(e,_,a)=>{"use strict";a.d(_,{A:()=>c});var t=a(37876),n=a(14232),i=a(43646),o=a.n(i),r=a(72710);let c=e=>{let{items:_}=e,{theme:a}=(0,r.D)(),[i,c]=(0,n.useState)(!1),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=e=>{s.current&&!s.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,t.jsxs)("div",{className:"ellipsis",ref:s,children:[(0,t.jsx)("i",{className:"fas fa-ellipsis ".concat(o().action_button),onClick:e=>{e.stopPropagation(),c(!i)}}),i&&(0,t.jsx)("ul",{className:"ellipsis-menu ".concat(a,"-ellipsis-menu"),children:_.map((e,_)=>!e.hide&&(0,t.jsx)("li",{onClick:async _=>{_.stopPropagation(),e.action&&await e.action(),c(!1)},style:{color:e.color},children:e.title},_))})]})}},13758:(e,_,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/payouts",function(){return a(25240)}])},25240:(e,_,a)=>{"use strict";a.r(_),a.d(_,{__N_SSP:()=>x,default:()=>N});var t=a(37876),n=a(14232),i=a(53525),o=a(43646),r=a.n(o),c=a(9295),s=a(11457),l=a(6515),g=a(32588),d=a(91040),u=a(88202),p=a(9808),m=a(37734),b=a.n(m),P=a(2491),v=a.n(P),h=a(72710);let f=e=>{let{closeModal:_,userData:a,account:i,setSettlementAccounts:o,settlementAccounts:r}=e,{theme:l}
1=(0,h.D)(),[p,m]=(0,n.useState)("gmd"),[P,f]=(0,n.useState)("gm"),[y,x]=(0,n.useState)(""),[N,k]=(0,n.useState)(""),[j,w]=(0,n.useState)(!1),[T,A]=(0,n.useState)(!1),S=async e=>{if(e.preventDefault(),y.trim().length&&N.trim().length){A(!0);try{let{data:e}=await d.A.post("".concat(u.H$,"/api/businesses/settlements"),{data:{country:P,currency:p,gateway:y,account_number:N,business_id:a.business_id,account_id:null==i?void 0:i.id,default:j}},{headers:{Authorization:"Bearer ".concat(a.token)}});o(e),_()}catch(e){(0,c.f1)(e)}A(!1)}else v().fire("Error","Please fill in all required fields","error")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"backdrop",onClick:()=>_()}),(0,t.jsx)("div",{className:b().container,style:{width:"40%"},id:l,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:b().heading,children:[(0,t.jsxs)("div",{className:b().heading_text,children:[(0,t.jsx)("h1",{children:"Add Settlement Account"}),(0,t.jsx)("p",{})]}),(0,t.jsx)("i",{className:"fas fa-close",onClick:()=>_(),role:"button"})]}),(0,t.jsx)("div",{className:b().body,children:(0,t.jsxs)("form",{autoComplete:"off",onSubmit:S,children:[(0,t.jsxs)("div",{className:b().form_group,children:[(0,t.jsx)("label",{htmlFor:"bank",children:"Bank"}),(0,t.jsxs)("select",{value:y,onChange:e=>x(e.target.value),required:!0,id:"bank",name:"bank",children:[(0,t.jsx)("option",{value:"",disabled:!0,children:"Select Wallet or Bank"}),g.e4.map(e=>e.canSettle?(0,t.jsx)("option",{value:e.key,children:e.name},e.key):null)]})]}),(0,t.jsxs)("div",{className:b().form_group,children:[(0,t.jsx)("label",{htmlFor:"account_number",children:"Account Number*"}),(0,t.jsx)("input",{type:"tel",name:"account_number",id:"account_number",required:!0,placeholder:"7012345",value:N,onChange:e=>k(e.target.value),minLength:9,maxLength:9,pattern:"[23456789][0-9]{8}",inputMode:"numeric",autoComplete:"tel"})]}),(0,t.jsx)("div",{className:b().form_group,children:(0,t.jsxs)("label",{htmlFor:"default",children:["Make Default Account \xa0",(0,t.jsx)("input",{type:"checkbox",name:"default",id:"default",checked:j,className:"checkbox",onChange:e=>w(e.target.checked)})]})}),(0,t.jsx)("br",{}),T&&(0,t.jsx)(s.A,{}),(0,t.jsx)("div",{className:b().button_rack,children:(0,t.jsx)("button",{className:b().action,type:"submit",disabled:T,children:"Save"})})]})})]})})]})};var y=a(86176),x=!0;let N=e=>{let{user:_,business:a,accounts:o}=e,{activeAccount:m}=(0,n.useContext)(y.A),{theme:b}=(0,h.D)(),[P,v]=(0,n.useState)(!0),[x,N]=(0,n.useState)(!1),[k,j]=(0,n.useState)([]),w=(0,n.useCallback)(async()=>{if(m&&m.id)try{v(!0);let{data:e}=await d.A.get("".concat(u.H$,"/api/businesses/settlements?business_id=").concat(_.business_id,"&account_id=").concat(m.id),{headers:{Authorization:"Bearer ".concat(_.token)}});j(e),v(!1)}catch(e){(0,c.f1)(e),v(!1)}},[_,m]),T=async e=>{(0,c.Uh)("Delete Payout Account","Are you sure you want to delete this payout account?","question").then(async a=>{if(a.isConfirmed)try{let a=k.filter(_=>_.id!==e);await d.A.delete("".concat(u.H$,"/api/businesses/settlements/").concat(e),{headers:{Authorization:"Bearer ".concat(_.token)}}),j(a),(0,c.P0)("Deleted!")}catch(e){(0,c.f1)(e)}})},A=async e=>{try{v(!0);let{data:a}=await d.A.patch("".concat(u.H$,"/api/businesses/settlements/").concat(e),{data:{business_id:_.business_id,account_id:m.id,default:!0}},{headers:{Authorization:"Bearer ".concat(_.token)}});j(a),v(!1)}catch(e){(0,c.f1)(e),v(!1)}};return(0,n.useEffect)(()=>{w()},[w]),(0,t.jsxs)(i.A,{business:a,userData:_,accounts:o,title:"Settlements",breadCrumbs:[{title:"Settings",link:"/settings",active:!1},{title:"Settlements",link:"/settings/payouts",active:!0}],children:[x&&(0,t.jsx)(f,{account:m,setSettlementAccounts:j,settlementAccounts:k,userData:_,closeModal:()=>N(!1)}),(0,t.jsxs)("div",{className:r().container,children:[(0,t.jsx)(l.A,{tabs:g.zI,activeIndex:3,business:a}),P?(0,t.jsx)(s.A,{}):(0,t.jsxs)("div",{className:r().main,children:[(0,t.jsxs)("div",{className:r().heading,style:{padding:0},children:[(0,t.jsx)("h2",{children:"Settlement Accounts"}),(0,c._m)("MANAGE_SETTLEMENT_ACCOUNTS",a.permissions)&&(0,t.jsxs)("button",{className:"action_button",onClick:()=>N(!0),children:[(0,t.jsx)("i",{className:"fas fa-add"}),(0,t.jsx)("span",{children:"Add Settlement Account"})]})]}),(0,t.jsxs)("table",{className:r().table,style:{margin:0,padding:0},children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:"Currency"}),(0,t.jsx)("th",{children:"Gateway"}),(0,t.jsx)("th",{children:"Account Number"}),(0,t.jsx)("th",{style:{minWidth:"20px",width:"20px"}})]})}),(0,t.jsx)("tbody",{children:P?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:4,children:(0,t.jsx)(s.A,{})})}):k.length?k.map(e=>(0,t.jsxs)("tr",{style:e.default?{backgroundColor:"dark"==b?"rgba(76, 175, 80, 0.2)":"rgba(107, 230, 111, 0.8)"}:{},children:[(0,t.jsx)("td",{children:e.currency.toUpperCase()}),(0,t.jsx)("td",{children:(0,c.Zr)(e.gateway)}),(0,t.jsxs)("td",{children:[(0,t.jsx)("img",{src:"".concat(u.H$,"/images/").concat(e.gateway,".png"),alt:e.gateway,
1className:r().payment_image})," ",e.last4]}),(0,t.jsx)("td",{children:(0,c._m)("MANAGE_SETTLEMENT_ACCOUNTS",a.permissions)&&(0,t.jsx)(p.A,{items:e.default?[{title:"Delete Settlement Account",action:T.bind(void 0,e.id),color:"red"}]:[{title:"Make Default Account",action:A.bind(void 0,e.id)},{title:"Delete Settlement Account",action:T.bind(void 0,e.id),color:"red"}]},e.id)})]},e.id)):(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:4,style:{textAlign:"center"},children:"No record"})})})]})]})]})]})}},43646:e=>{e.exports={flex:"Page_flex__sPa1V",detail:"Page_detail__XUuvH",description:"Page_description__F5wod",preference_form:"Page_preference_form__hl3G_",filterGroup:"Page_filterGroup__CA9Fa",heading:"Page_heading__p8iqW",search_box:"Page_search_box__5g1ze",export:"Page_export__t7I7T",action_button:"Page_action_button__vWDeZ",div_container:"Page_div_container__8gPad",first:"Page_first__Zj1IW",last:"Page_last__VkJcr",reload:"Page_reload__yZWyu",table_other:"Page_table_other__c3lrA",table:"Page_table__mLSBI",table_empty_row:"Page_table_empty_row__ppq74",skeleton_row:"Page_skeleton_row__nNSlQ",row_selected:"Page_row_selected___yCzp",actions:"Page_actions__ey4p0",cell_strong:"Page_cell_strong__3a20Z",cell_muted:"Page_cell_muted__pS1WG",cell_numeric:"Page_cell_numeric__eQsGW",cell_empty:"Page_cell_empty__IaugL",tfoot:"Page_tfoot__nKctw",tfoot_selection:"Page_tfoot_selection__vaLfx",tfoot_actions:"Page_tfoot_actions__DYyC8",disabled:"Page_disabled__bivjA",table_empty_action:"Page_table_empty_action__E6GsI",skeleton:"Page_skeleton__Y2Hzs",table_shimmer:"Page_table_shimmer__U8RnY",skeleton_check:"Page_skeleton_check__plc3k",skeleton_sm:"Page_skeleton_sm__Pn9DP",skeleton_md:"Page_skeleton_md__LeCIU",skeleton_lg:"Page_skeleton_lg__Jdc1p",table_empty:"Page_table_empty__YKLZP",table_empty_title:"Page_table_empty_title__OcUDj",table_empty_text:"Page_table_empty_text__ju7Kn",table_flush:"Page_table_flush__mjYDf",cell_amount:"Page_cell_amount__26AzR",event_name:"Page_event_name__fczxv",row_link:"Page_row_link__HN4BC",row_offline:"Page_row_offline__z8wLk",method_cell:"Page_method_cell__CukjA",source_online:"Page_source_online__wpdSE",source_offline:"Page_source_offline__KKPcV",transaction_reference:"Page_transaction_reference__lK3oP",paid:"Page_paid__3yPmQ","not-paid":"Page_not-paid__1EYKa",overdue:"Page_overdue__t8sF9",amount_container:"Page_amount_container__l6ZLv",amount:"Page_amount__goAaK",currency:"Page_currency__Og3uq",payment_image:"Page_payment_image__2eOTH",product_table:"Page_product_table__edyG7",product_image:"Page_product_image__8RX_A",product_name:"Page_product_name__lObi1",product_status:"Page_product_status__3UGOb","status-active":"Page_status-active__yhhWo","status-out-of-stock":"Page_status-out-of-stock__1n98Y","status-inactive":"Page_status-inactive__9Yk6e",customizeArea:"Page_customizeArea__ItZuS",product_details:"Page_product_details__tKjR9",customizeSection:"Page_customizeSection__dWcr_",product_image_container:"Page_product_image_container__6bYwg",imageGallery:"Page_imageGallery__QSa_7",mainImage:"Page_mainImage__n8IrA",editProductImgBtn:"Page_editProductImgBtn__8ZIkl",productImage:"Page_productImage__RRJUC",thumbnailContainer:"Page_thumbnailContainer__9xAOy",thumbnail:"Page_thumbnail__AoTcx",activeThumbnail:"Page_activeThumbnail___3ScV",product_info:"Page_product_info__bDncF",product_info_details:"Page_product_info_details__PiUb8",productName:"Page_productName__xIV2o",productDescription:"Page_productDescription__U84O8",priceContainer:"Page_priceContainer__Gdq3Q",price:"Page_price__GRz_G",storefrontConfig:"Page_storefrontConfig__a11aU",telegram_connections:"Page_telegram_connections__LJp0S",add_connection_button:"Page_add_connection_button__yP0I_",no_connections:"Page_no_connections__Hcde1",telegram_connection_item:"Page_telegram_connection_item__Z_vX5",telegram_connection_item__dark:"Page_telegram_connection_item__dark__i2JkF",telegram_connection_info:"Page_telegram_connection_info__YpkrL",telegram_username:"Page_telegram_username__Pbm_c",telegram_chat_id:"Page_telegram_chat_id__z3tR7",remove_connection_button:"Page_remove_connection_button__064hh",configSection:"Page_configSection__Cj240",configSectionInputGroup:"Page_configSectionInputGroup__Mnt_M",socialMediaInputs:"Page_socialMediaInputs__vJA_3",socialMediaInput:"Page_socialMediaInput__pSdAX",socialMediaUrlInput:"Page_socialMediaUrlInput__cpW4l",storefrontPreview:"Page_storefrontPreview__bE7Lh",container:"Page_container__4TqKj",key_group:"Page_key_group__H__hF",generate_button:"Page_generate_button__sOpi2",balances:"Page_balances__XxVRJ",balance:"Page_balance__8n2mZ",note:"Page_note__5Mvzp",balance_bold:"Page_balance_bold__v4wOQ",balance_layout_container:"Page_balance_layout_container__PRRcb",balance_layout:"Page_balance_layout__e6f9K",balance_header:"Page_balance_header__YhTw_",overview_grid:"Page_overview_grid__yzOB6",overview_card:"Page_overview_card__H2VfG",overview_card_head:"Page_overview_card_head__LQcs_",overview_title:"Page_overview_title__iSSWV",overview_label:"Page_overview_label__TQdep",overview_info:"Page_overview_info__UOaUM",overview_amount:"Page_overview_amount__lHq5K",overview_rows:"Page_overview_rows__I6_j_",overview_row:"Page_overview_row__jbT5L",overview_value:"Page_overview_value__5NEVe",overview_total:"Page_overview_total__7rdUw",overview_action:"Page_overview_action__1z4P6",upcoming_list:"Page_upcoming_list__VqsxF",upcoming_item:"Page_upcoming_item__ij44i",upcoming_text:"Page_upcoming_text__E26Kh",upcoming_date:"Page_upcoming_date__4EHfB",upcoming_note:"Page_upcoming_note__DI8DB",upcoming_empty:"Page_upcoming_empty__Tzd3X",pref_page:"Page_pref_page__R_eFp",pref_title:"Page_pref_title__U59i8",pref_readonly:"Page_pref_readonly__mmgnl",pref_section:"Page_pref_section__ZPVKE",pref_heading:"Page_pref_heading__v0bQW",pref_desc:"Page_pref_desc__sCgb9",pref_list:"Page_pref_list__IZvqD",pref_row:"Page_pref_row__ZW8rX",pref_label:"Page_pref_label__VJNco",pref_value:"Page_pref_value__YPn9s",pref_mono:"Page_pref_mono__pSDKz",pref_copy:"Page_pref_copy__8xVdz",pref_copied:"Page_pref_copied__oZrAF",option_grid:"Page_option_grid__JTFwp",option_card:"Page_option_card__wIV_u",option_card_active:"Page_option_card_active__V_RZj",option_card_disabled:"Page_option_card_disabled__mUNMT",option_text:"Page_option_text__6cuuQ",option_title:"Page_option_title__gDIJP",option_desc:"Page_option_desc__NgS4g",option_saving:"Page_option_saving__nNxN4",table_shimmer_spin:"Page_table_shimmer_spin__NKopJ",main:"Page_main__MOW5Q",payment_methods:"Page_payment_methods__Lfy5Z",payment_method:"Page_payment_method__FS0HE",grid:"Page_grid__YvlVv",div:"Page_div__Y9jve",copy:"Page_copy__M5XEl",grid_container:"Page_grid_container__HbSiJ",after_purchase_container:"Page_after_purchase_container__cPkSU",after_purchase_section:"Page_after_purchase_section__dx601",after_purchase_header:"Page_after_purchase_header__cayUK",tooltip:"Page_tooltip__ErYF1",edit_button:"Page_edit_button__Gy7Ja",after_purchase_content:"Page_after_purchase_content__67_my",edit_container:"Page_edit_container__Fv23H",input_field:"Page_input_field__Aba_Y",edit_actions:"Page_edit_actions__B8vR0",cancel_button:"Page_cancel_button__0z_a9",save_button:"Page_save_button__MAT6Z",tip:"Page_tip__yUQIe",thresholdSettings:"Page_thresholdSettings__djS9L",formTitle:"Page_formTitle__a9Wab",formGrid:"Page_formGrid__kZ_tm",settingGroup:"Page_settingGroup__PozkZ",buttonGroup:"Page_buttonGroup__IKMnX",button:"Page_button__H_NzJ",buttonPrimary:"Page_buttonPrimary__n6aYW",buttonSecondary:"Page_buttonSecondary__n1G_v",error:"Page_error__ALqOW",success:"Page_success__wotz_",ke
1ys:"Page_keys__DztvY",key_table:"Page_key_table__Qddnd",key_row_revoked:"Page_key_row_revoked__WWyAt",new_key_panel:"Page_new_key_panel__dQYxG",key_actions:"Page_key_actions__ShY8o",revoke_button:"Page_revoke_button__fyTVH",pagination:"Page_pagination__swtem"}},89142:e=>{e.exports={tab_container:"TabNavigation_tab_container__OExVz",tab:"TabNavigation_tab__0GgXr",active:"TabNavigation_active__X8EdW",heading:"TabNavigation_heading__51O2h",table_other:"TabNavigation_table_other__JoYB1",table:"TabNavigation_table__KQnbP",container:"TabNavigation_container__LtB8f",balance_layout_container:"TabNavigation_balance_layout_container__KYNi2",grid:"TabNavigation_grid__xAv4Y",first:"TabNavigation_first__JKH_a",last:"TabNavigation_last__M1ycp",balance_layout:"TabNavigation_balance_layout__Y_is2",balances:"TabNavigation_balances__7_Gi8",keys:"TabNavigation_keys__DEI_l",product_details:"TabNavigation_product_details__BUgA7",product_image_container:"TabNavigation_product_image_container__1wuH4",mainImage:"TabNavigation_mainImage__oK2fv",productName:"TabNavigation_productName__yu7Bk",search_box:"TabNavigation_search_box__h7_XE",actions:"TabNavigation_actions__7DZMS",product_table:"TabNavigation_product_table__1q16_",product_image:"TabNavigation_product_image__Wz85R",product_info:"TabNavigation_product_info__Smx0L",grid_container:"TabNavigation_grid_container__e8vay",after_purchase_container:"TabNavigation_after_purchase_container__uWm8O",after_purchase_header:"TabNavigation_after_purchase_header__NPFMl",after_purchase_content:"TabNavigation_after_purchase_content__kQjTm",edit_actions:"TabNavigation_edit_actions__Ih_lM",cancel_button:"TabNavigation_cancel_button__aEGhX",save_button:"TabNavigation_save_button__sB4WW",key_group:"TabNavigation_key_group__XOwK9",export:"TabNavigation_export__2Ve2V",reload:"TabNavigation_reload__7_zHq",tfoot_actions:"TabNavigation_tfoot_actions__C9XZ5",action_button:"TabNavigation_action_button__NH5wx",product_name:"TabNavigation_product_name__fRO8j",thumbnail:"TabNavigation_thumbnail__5Fjtd",thumbnailContainer:"TabNavigation_thumbnailContainer__ABLsU",productDescription:"TabNavigation_productDescription__OWKgu",price:"TabNavigation_price__BJrWC",product_info_details:"TabNavigation_product_info_details__Z85h_",balance:"TabNavigation_balance__rPy6x",balance_header:"TabNavigation_balance_header__jdhWC",generate_button:"TabNavigation_generate_button__L6rYX",input_field:"TabNavigation_input_field__u_yHU",edit_button:"TabNavigation_edit_button__KtBqx",payment_image:"TabNavigation_payment_image__udm0x",after_purchase_section:"TabNavigation_after_purchase_section__Qh6Sv",productImage:"TabNavigation_productImage__i_cfU"}}},e=>{e.O(0,[8230,7838,3525,8129,636,6593,8792],()=>e(e.s=13758)),_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.