1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"20260916.130036"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var i in a)a.hasOwnProperty(i)&&(e[i]=a[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:novo-core-app":!0});var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5ce6a43d-43c7-454b-a7cc-0905f75b3d08",e._sentryDebugIdIdentifier="sentry-dbid-5ce6a43d-43c7-454b-a7cc-0905f75b3d08")}catch(e){}}(),(self.webpackChunkcore=self.webpackChunkcore||[]).push([[95330],{693(e,n,a){"use strict";a.d(n,{Io:()=>d,QM:()=>s,Ww:()=>r});var i=a(49100),t=a(71537);const s=(e,n,a)=>{let t;return a&&(t={"content-type":"multipart/form-data"}),{type:"API",[i.rY]:"WAIT_FOR_UPLOAD_FILE",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_UPLOAD_FILE",data:a||n,headers:t,responseType:"mutation"}}},r=(e,n)=>({type:"API",[i.rY]:"WAIT_FOR_DELETE_FILE",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_DELETE_FILE",data:{query:t.s.DeleteFile,variables:n},responseType:"mutation"}}),d=(e,n)=>({type:"API",[i.rY]:"WAIT_FOR_UPDATE_FILE",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_UPDATE_FILE",data:{query:t.s.UpdateFile,variables:n},responseType:"mutation"}})},22348(e,n,a){"use strict";a.d(n,{Ay:()=>o,mo:()=>r.InputWithIcon});var i=a(90024),t=a(75969),s=a.n(t),r=(a(1291),a(23463)),d=(a(28492),a(69500));const l=["pre","post","className","classNameWrap","error","WrappingComp","WrappingProps","value","onChange"],o=s().forwardRef(((e,n)=>{let{pre:a,post:t,className:r,classNameWrap:o,error:c,WrappingComp:m,WrappingProps:u,value:_,onChange:v}=e,N=(0,i.A)(e,l);const[p,E]=s().useState(_);s().useEffect((()=>{E(_)}),[_]);const g=(0,d.jsxs)("div",{className:`relative flex w-full flex-row items-center justify-center rounded border border-solid ${c?"border-inputs-error-border":"border-border-light hover:border-border-light rounded"} bg-fill-default ${o}`,children:[a,(0,d.jsx)("input",Object.assign({className:`w-full flex-1 rounded px-3 py-3 focus:outline-none ${r}`},N,{value:p,onChange:e=>{E(e.target.value),null==v||v(e)},ref:n})),t]});return(0,d.jsxs)("div",{className:"group relative flex w-full flex-col",children:[m?(0,d.jsx)(m,Object.assign({},u,{children:g})):g,c&&(0,d.jsx)("div",{className:"text-typography-error text-body-s-regular",children:c})]})}))},45335(e,n,a){"use strict";a.d(n,{A:()=>o,O:()=>r.RadioButton});var i=a(90024),t=a(75969),s=a.n(t),r=(a(14933),a(23463)),d=a(69500);const l=["checked","value"];r.RadioButton.ToggleList=({list:e,value:n,onChange:a})=>{const i=e=>{null==a||a(e)};return(0,d.jsx)(d.Fragment,{children:e.map(((a,t)=>(0,d.jsxs)(s().Fragment,{children:[(0,d.jsx)(r.RadioButton,{label:a.label,name:a.name,value:a.value,checked:n===a.value,index:t,onChange:i}),t!==e.length-1?(0,d.jsx)("div",{className:"border-border-light border-t border-solid"}):null]},a.value)))})},r.RadioButton.SelectionList=({list:e,values:n=[],onChange:a})=>{const t=e=>{const t=e.target,{checked:s,value:r}=t,d=(0,i.A)(t,l),o=[...n];s?o.push(r):o.splice(o.indexOf(r),1),null==a||a({values:o,changed:Object.assign({},d,{checked:s})})};return(0,d.jsx)(d.Fragment,{children:e.map(((a,i)=>(0,d.jsxs)(s().Fragment,{children:[(0,d.jsx)(r.RadioButton,{label:a.label,name:a.name,value:a.value,checked:n.find((e=>e===a.value)),index:i,onChange:t}),i!==e.length-1?(0,d.jsx)("div",{className:"border-border-light my-4 border-t border-solid"}):null]},a.value)))})};const o=r.RadioButton},37010(e,n,a){"use strict";a.d(n,{Cx:()=>T,G9:()=>m,I0:()=>u,Mx:()=>v,NI:()=>N,Vn:()=>o,Vq:()=>E,nM:()=>c,uf:()=>_,vE:()=>p,vO:()=>g});var i=a(49100),t=a(54701),s=a(71537),r=a(14933),d=a(53776),l=a(93389);const o=(e,n)=>({type:"API",payload:{APIInstance:e,nextSuccessAction:"MULTIPLE_QUERIES",data:{query:s.X.AllTransactions,variables:n},responseType:"multiple_queries"}}),c=async(e,n,a)=>{const i=Object.assign({data:{query:(0,t.y)(d.GetInvoicesToLinkWithTransaction),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const s=await e.request(i);return(0,l.y)(s).data},m=async(e,n,a)=>{const i=Object.assign({data:{query:(0,t.y)(d.GetInvoicesLinkedWithTransaction),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const s=await e.request(i);return(0,l.y)(s)}
1,u=(e,n)=>({type:"API",[i.rY]:"WAIT_FOR_GET_TXN",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_GET_TXN",data:{query:s.X.Transactions,variables:n},responseType:"query"}}),_=(e,n)=>({type:"API",[i.rY]:"WAIT_FOR_EXPORT_TXN_CSV",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_EXPORT_TXN_CSV",data:{query:s.s.ExportTransactionsToCSV,variables:n},responseType:"mutation",handleError:!1},analytics:Object.assign({},r.hr.COMMON.TRANSACTIONS_EXPORT,{duration:n.data.duration,end_date:n.data.end_date,search_term:n.data.search_term,start_date:n.data.start_date,type:n.data.type})}),v=(e,n)=>({type:"API",[i.rY]:"WAIT_FOR_PENDING_TXN_DETAILS",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_PENDING_TXN_DETAILS",data:{query:s.X.PendingTransactions,variables:n},responseType:"multiple_queries"}}),N=(e,n)=>({type:"API",[i.rY]:"WAIT_FOR_TXN_DETAILS",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_TXN_DETAILS",data:{query:s.X.TransactionDetails,variables:n},responseType:"multiple_queries"}}),p=(e,{txnId:n})=>({type:"API",[i.rY]:"WAIT_FOR_CARD_TXN_DETAILS",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_CARD_TXN_DETAILS",data:{query:s.X.CardTransactionDetails,variables:{id:n}},responseType:"query"}}),E=(e,n)=>({type:"API",[i.rY]:"WAIT_FOR_UPDATE_TXN_REQ",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_UPDATE_TXN_REQ",data:{query:s.s.UpdateTransaction,variables:n},responseType:"mutation"},analytics:Object.assign({},r.hr.COMMON.TRANSACTION_UPDATE,{transaction_id:n.transaction.id,notes:n.transaction.notes})}),g=(e,n)=>({type:"API",[i.rY]:"WAIT_FOR_GET_CHECK_IMAGES",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_GET_CHECK_IMAGES",data:{query:s.X.getCheckImages,variables:n},responseType:"query"}}),T=(e,n)=>({type:"API",[i.rY]:"WAIT_FOR_TW_TXN_DETAILS",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_TW_TXN_DETAILS",data:{query:s.X.TransferwiseTransactionDetails,variables:n},responseType:"query"}})},12844(e,n,a){"use strict";a.d(n,{f:()=>t});var i=a(71537);const t=e=>({type:"API",payload:{APIInstance:e,nextSuccessAction:"SET_TRANSACTION_CATEGORIES",data:{query:i.X.getTransactionCategories},responseType:"mutation"}})},33805(e,n,a){"use strict";a.d(n,{A:()=>g});var i=a(75969),t=a(89329),s=a(80824),r=a(72937),d=a(96534),l=a(35829),o=a(41836),c=a(1291),m=a(2742),u=a(69500);const _=()=>{const{handleSubmit:e,formState:n,watch:a,register:_}=(0,s.xW)(),{transaction:v,filePreviewID:N,editNote:p,setEditNote:E,onReceiptNoteFormSubmit:g}=(0,i.useContext)(t.Wc),T=a("notes");if(!v)return null;const k=v.receipts.find((e=>e.file_id===N)),{notes:I}=k;return(0,u.jsxs)("form",{className:"flex flex-col",onSubmit:e(g),children:[!p&&I&&(0,u.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,u.jsxs)("div",{className:"flex items-center justify-between",children:[(0,u.jsx)("label",{className:"text-typography-grey",children:m.W.what_is_this_receipt_invoice}),(0,u.jsxs)(d.ZQ,{className:"flex items-center gap-1",onClick:()=>E(!0),children:[(0,u.jsx)(c.Int,{name:"pencil",size:"xs",color:"current"}),m.W.CUSTOM_CATEGORIES_TABLE.EDIT]})]}),(0,u.jsx)("p",{children:I})]}),(!I||p)&&(0,u.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,u.jsx)(o.P,Object.assign({label:m.W.what_is_this_receipt_invoice,secondaryLabel:m.W.optional,labelAdditionalInfo:(0,r.catalogueText)("core-shared","ONLY_VISIBLE_TO_YOU"),inputAdditionalInfo:(0,u.jsxs)(u.Fragment,{children:[" ",T?T.length:0,"/ ",250]})},_("notes"),{rows:"2",className:"input",placeholder:m.W.optional,maxLength:"250",defaultValue:I})),(0,u.jsxs)("div",{className:"flex items-center justify-end gap-4",children:[I&&(0,u.jsx)(l.d,{type:"button",buttonVariant:"secondary",size:"small",onClick:()=>E(!1),children:m.W.CANCEL}),(0,u.jsx)(l.d,{type:"submit",size:"small",buttonVariant:"primary",disabled:n.isSubmitting||!n.isDirty,children:I?m.W.update:m.W.add})]})]})]})},v=()=>{const{receiptNoteFormMethods:e}=(0,i.useContext)(t.Wc);return(0,u.jsx)(s.Op,Object.assign({},e,{children:(0,u.jsx)(_,{})}))};var N=a(31120),p=a(23463);const E=()=>{const{transaction:e,filePreviewID:n}=(0,i.useContext)(t.Wc);if(!e||!n)return null;const a=e.receipts.find((e=>e.file_id===n)),s=(r=a.file_name,/^.*\.(jpg|jpeg|png)$/i.test(r));var r;return(0,u.jsx)("div",{className:"activity_receipt_preview",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsx)("div",{className:"col col-last",children:s?(0,u.jsx)("img",{src:a.s3_url}):(0,u.jsx)("div",{className:"upload_doc_card uploaded_files_preview",children:(0,u.jsx)("div",{className:"uploaded_files",children:(0,u.jsxs)("div",{className:"uploaded_files_list",children:[(0,u.jsxs)("div",{className:"card_files",children:[(0,u.jsx)("img",{src:a.thumbnail_s3_url,className:"file_thumbnail",alt:""}),(0,u.jsx)("p",{children:a.file_name})]}),(0,u.jsx)("div",{className:"card_action",children:(0,u.jsx)("a",{className:"download_action",title:m.W.click_to_download_file,href:a.s3_url,target:"_blank",rel:"noopener noreferrer",children:(0,u.jsx)("img",{src:"data:image/svg+xml;
1base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAyMCAyMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjAgMjA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7b3BhY2l0eTowLjk7fQoJLnN0MXtmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsOiMyNDI0MjQ7c3Ryb2tlOiNGRkZGRkY7c3Ryb2tlLXdpZHRoOjAuNTtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9Cgkuc3Qye2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6IzI0MjQyNDt9Cjwvc3R5bGU+CjxnIGlkPSJBY3Rpdml0eSIgY2xhc3M9InN0MCI+Cgk8ZyBpZD0iRXhwb3J0LUNTViIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEyMDYuMDAwMDAwLCAtMTAzLjAwMDAwMCkiPgoJCTxnIGlkPSJHcm91cC03IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMy4wMDAwMDAsIDExLjAwMDAwMCkiPgoJCQk8cGF0aCBpZD0iRmlsbC01IiBjbGFzcz0ic3QxIiBkPSJNMTIxMS44LDEwNi44Yy0wLjQsMC0wLjcsMC40LTAuNywxYzAsMS4xLTAuNywxLjktMS41LDEuOWgtMTMuNGMtMC44LDAtMS41LTAuOS0xLjUtMS45CgkJCQljMC0wLjUtMC4zLTEtMC43LTFjLTAuNCwwLTAuNywwLjQtMC43LDFjMCwyLjEsMS4zLDMuOSwzLDMuOWgxMy40YzEuNiwwLDMtMS43LDMtMy45QzEyMTIuNiwxMDcuMiwxMjEyLjIsMTA2LjgsMTIxMS44LDEwNi44Ii8+CgkJCTxwYXRoIGlkPSJGaWxsLTEiIGNsYXNzPSJzdDEiIGQ9Ik0xMjAyLjksMTAyLjljMC41LDAsMS0wLjMsMS0wLjdWOTNjMC0wLjQtMC40LTAuNy0xLTAuN3MtMSwwLjMtMSwwLjd2OS4yCgkJCQlDMTIwMS45LDEwMi41LDEyMDIuNCwxMDIuOSwxMjAyLjksMTAyLjkiLz4KCQkJPHBhdGggaWQ9IkZpbGwtMyIgY2xhc3M9InN0MiIgZD0iTTEyMDEuMywxMDUuMUwxMjAxLjMsMTA1LjFjMC40LDAuNCwxLDAuNiwxLjUsMC42YzAuNiwwLDEuMS0wLjIsMS41LTAuNmw0LjEtNAoJCQkJYzAuMy0wLjMsMC4zLTAuNywwLTFzLTAuNy0wLjMtMSwwbC00LjEsNGMtMC4xLDAuMS0wLjMsMC4yLTAuNSwwLjJzLTAuNC0wLjEtMC41LTAuMmwtNC00Yy0wLjMtMC4zLTAuNy0wLjMtMSwwCgkJCQljLTAuMywwLjMtMC4zLDAuNywwLDFMMTIwMS4zLDEwNS4xeiIvPgoJCTwvZz4KCTwvZz4KPC9nPgo8L3N2Zz4K",alt:""})})})]})})})})})})},g=()=>{const{setFilePreviewID:e}=(0,i.useContext)(t.Wc);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(N.Ay.Header,{children:(0,u.jsx)(p.Header3,{className:"text-typography-default",children:m.W.invoice_receipt})}),(0,u.jsxs)(N.Ay.Content,{className:"flex-col gap-8",children:[(0,u.jsx)(v,{}),(0,u.jsx)(E,{}),(0,u.jsx)("div",{children:(0,u.jsx)(l.d,{type:"button",buttonVariant:"secondary",onClick:()=>e(),children:m.W.BACK})})]})]})}},2870(e,n,a){"use strict";a.d(n,{A:()=>i});const i={createTxnLocationString:({location_string:e,cardTxn:n})=>{var a,i;if(null==n||!n.merchant_location)return e||"";const t=(null==(a=n.merchant_location)?void 0:a.city)||"",s=(null==(i=n.merchant_location)?void 0:i.state)||"";return e||(t&&s?`${t}, ${s}`:t||s||"")}}},70465(e,n,a){"use strict";a.d(n,{A:()=>Zn});var i=a(20951),t=a.n(i),s=a(15152),r=a.n(s),d=a(75969),l=a.n(d),o=a(80824),c=a(4578),m=a(60120),u=a(23463),_=a(37010),v=a(693),N=a(12844),p=a(49100),E=a(71537);var g=a(78667),T=a(73681),k=a.n(T),I=a(1291),y=a(11257),S=a(89389),A=a(2870),f=a(89329),x=a(28492),h=a(96534);var C=a(69500);const O=({isClose:e=!0,rudderStackData:n={closeButton:{}},alwaysShow:a=!1,onCalloutClose:i,children:t})=>{const[s,r]=(0,d.useState)();(0,d.useEffect)((()=>{a&&r(!0)}),[]);return(0,C.jsx)(C.Fragment,{children:s&&(0,C.jsxs)("div",{className:"bg-fill-neutral rounded-8 grid grid-cols-12 px-4 py-3",children:[(0,C.jsx)("div",{className:"col-span-11",children:t}),e&&(0,C.jsx)("div",{className:"grid items-center justify-center",children:(0,C.jsx)(h.dY,{rudderStackData:n.closeButton,onClick:()=>{i&&i(),r(!1)},children:(0,C.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDI0QzE4LjU2NDcgMjQgMjQgMTguNTUyOSAyNCAxMkMyNCA1LjQzNTI5IDE4LjU1MjkgMCAxMS45ODgyIDBDNS40MzUyOSAwIDAgNS40MzUyOSAwIDEyQzAgMTguNTUyOSA1LjQ0NzA2IDI0IDEyIDI0Wk03Ljg0NzA2IDE3LjEyOTRDNy4zMTc2NSAxNy4xMjk0IDYuODgyMzUgMTYuNjgyNCA2Ljg4MjM1IDE2LjE0MTJDNi44ODIzNSAxNS44ODI0IDYuOTg4MjQgMTUuNjQ3MSA3LjE2NDcxIDE1LjQ1ODhMMTAuNjExOCAxMi4wMTE4TDcuMTY0NzEgOC41NjQ3MUM2Ljk4ODI0IDguMzc2NDcgNi44ODIzNSA4LjE0MTE4IDYuODgyMzUgNy44ODIzNUM2Ljg4MjM1IDcuMzQxMTggNy4zMTc2NSA2LjkxNzY1IDcuODQ3MDYgNi45MTc2NUM4LjEyOTQxIDYuOTE3NjUgOC4zNTI5NCA3LjAxMTc2IDguNTI5NDEgNy4yTDExLjk4ODIgMTAuNjQ3MUwxNS40ODI0IDcuMTg4MjRDMTUuNjgyNCA2Ljk4ODI0IDE1Ljg5NDEgNi44OTQxMiAxNi4xNTI5IDYuODk0MTJDMTYuNjgyNCA2Ljg5NDEyIDE3LjExNzYgNy4zMjk0MSAxNy4xMTc2IDcuODU4ODJDMTcuMTE3NiA4LjEyOTQxIDE3LjAzNTMgOC4zNDExOCAxNi44MzUzIDguNTUyOTRMMTMuMzc2NSAxMi4wMTE4TDE2LjgyMzUgMTUuNDQ3MUMxNy4wMTE4IDE1LjY0NzEgMTcuMTA1OSAxNS44NzA2IDE3LjEwNTkgMTYuMTQxMkMxNy4xMDU5IDE2LjY4MjQgMTYuNjcwNiAxNy4xMjk0IDE2LjEyOTQgMTcuMTI5NEMxNS44NTg4IDE3LjEyOTQgMTUuNjIzNSAxNy4wMTE4IDE1LjQzNTMgMTYuODM1M0wxMS45ODgyIDEzLjM4ODJMOC41NjQ3MSAxNi44MzUzQzguMzc2NDcgMTcuMDIzNSA4LjEyOTQxIDE3LjEyOTQgNy44NDcwNiAxNy4xMjk0WiIgZmlsbD0iIzg2OEI5RCIvPgo8L3N2Zz4K"})})})]})})};var D=a(31120);const b=({data:e})=>(0,C.jsx)("div",{className:"vertical_timeline",children:e.map((({content:e},n)=>(0,C.jsx)("div",{className:"vertical_timeline_item",children:(0,C.jsx)("div",{className:"the_content",children:e})},n)))});b.propTypes={data:r().arrayOf(r().shape({content:r().element.isRequired})).isRequired};const R=b;
1var L=a(35829),F=a(2742),P=a(72937),j=a(16787);const M=()=>{const{cancelTransferRequest:e,setCancelTransactionConfirmation:n}=(0,d.useContext)(f.Wc);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(D.Ay.Header,{children:(0,C.jsx)(u.Header3,{className:"text-typography-default",children:F.W.are_you_sure_you_want})}),(0,C.jsxs)(D.Ay.Content,{className:"flex-col gap-8",children:[(0,C.jsx)("p",{className:"text-typography-grey",children:F.W.be_aware_that_you_can_not}),(0,C.jsxs)("div",{className:"flex w-full items-center gap-4",children:[(0,C.jsx)(L.d,{type:"button",buttonVariant:"secondary",onClick:()=>n(!1),children:F.W.no}),(0,C.jsx)(L.d,{type:"button",buttonVariant:"primary",onClick:n=>e(n),children:F.W.yes})]})]})]})},U=()=>{const{transaction:e,cancelTransactionConfirmation:n,setCancelTransactionConfirmation:a}=(0,d.useContext)(f.Wc),i=(0,j.eP)(),{more_info:t}=e;return n?(0,C.jsx)(M,{}):t&&t.able_to_cancel_transfer&&k()().isBefore(t.transfer_cancel_date)?(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)("label",{className:"text-body-regular text-typography-grey capitalize",children:F.W.cancel_transfer}),(0,C.jsx)(u.Card,{background:"secondary",bordered:!1,children:(0,C.jsxs)(u.CardContent,{className:"text-typography-grey flex-col gap-4",children:[(0,C.jsx)("p",{children:(0,P.catalogueText)("activity","you_can_cancel_this_transfer_before",{time:k()(t.transfer_cancel_date).format("h:mm A z MMM DD")})}),(0,C.jsx)(L.d,{type:"button",buttonVariant:"tertiary",onClick:()=>a(!0),children:F.W.cancel_transfer}),(0,C.jsxs)("p",{className:"text-body-s-regular",children:[F.W.ach_transfers_can_be_canceled_up," ",(0,C.jsx)("a",{href:null!=(s=null==i?void 0:i.federalHolidays)?s:j.mE,className:"link",target:"_blank",rel:"noopener noreferrer",children:F.W.see_here}),"."]}),(0,C.jsxs)("p",{className:"text-caption-regular",children:[F.W.if_you_need_to_reverse_your," "]})]})})]}):(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)("label",{className:"text-typography-grey",children:F.W.cancel_transfer}),(0,C.jsx)(u.Card,{background:"secondary",bordered:!1,children:(0,C.jsx)(u.CardContent,{className:"text-typography-grey flex-col gap-4",children:(0,C.jsx)("p",{children:F.W.this_transfer_can_no_longer})})})]});var s};var w=a(90602);const V=({reserve_meta:e,isPending:n,available_balance:a,id:i,description:t,medium:s,amount:r,cardTxn:l,txn_type:o,type:c,category:m,reference_number:_})=>{var v;const[N,p]=(0,d.useState)([]),[E,g]=(0,d.useState)((null==e||null==(v=e.selected_reserve)?void 0:v.id)||""),{openModal:T}=(0,u.useModal)();(0,d.useEffect)((()=>{var n,i;let t=(null==e||null==(n=e.debit_reserve_list)?void 0:n.map((e=>{const n=(0,C.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,C.jsx)("div",{children:null==e?void 0:e.name}),(0,C.jsx)("div",{className:"text-typography-grey",children:(0,x.ye)(e.available_balance)})]});return{value:e.id,label:n,balance:null==e?void 0:e.available_balance,name:null==e?void 0:e.name}})))||[];if(null==e||null==(i=e.selected_reserve)||!i.id||a>Math.sign(r)*r){t=[{value:"",label:(0,C.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,C.jsx)("div",{children:S.A.AVAILABLE_BALANCE}),(0,C.jsx)("div",{className:"text-typography-success",children:(0,x.ye)(a)})]}),balance:a,name:S.A.AVAILABLE_BALANCE},...t]}p(t)}),[]);return(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)(w.No,{name:"pay-from0reserve",label:F.W.pay_from_reserve,"data-test-id":"pay-from-reserve",options:N,onChange:d=>{var u;return g(null==d?void 0:d.value),(null!==(null==e?void 0:e.selected_reserve)||""!==(null==d?void 0:d.value))&&((null==e||null==(u=e.selected_reserve)?void 0:u.id)!==(null==d?void 0:d.value)&&void T({name:y.A.MODAL.TXN_PAY_FROM_RESERVE_CONFIRMATION,data:{reserveMeta:e,selectedReserveId:null==d?void 0:d.value,isPending:n,availableBalance:a,id:i,description:t,medium:s,amount:r,cardTxn:l,txn_type:o,type:c,category:m,reference_number:_}}))},filterOption:(e,n)=>{var a,i;const t=null==n||null==n.toLowerCase?void 0:n.toLowerCase();return!(!((null==e||null==(a=e.data)?void 0:a.name)||"").toLowerCase().includes(t)&&!((null==e||null==(i=e.data)?void 0:i.available_balance)||"").toString().includes(t))},value:N.find((e=>e.value===E))||null}),(0,C.jsx)("div",{className:"text-typography-grey text-caption-regular",children:S.A.PAY_FROM_RESERVE_ADDITIONAL_TEXT})]})};var B=a(33805),Y=a(57784);const G=({isActivityV2:e=!1})=>{var n,a;const{transaction:i,setLoadFeeTransaction:t,selectCategory:s,selectedCategory:r,showBackButton:l,setShowBackButton:o,onFileSelect:m,onCloudFileSelect:_,fileLoader:v,setFilePreviewID:N,deleteFileRequest:p,setTransactionId:E,uploadFileRequest:g}=(0,d.useContext)(f.Wc),{transactionCategories:T}=(0,c.useSelector)((e=>e)),{modalState:A}=(0,u.useModal)(),O=(0,d.useMemo)((()=>i&&i.receipts&&i.receipts.map((e=>
1({file_name:e.file_name,type:e.document_type,file_id:e.file_id,thumbnail_s3_url:e.thumbnail_s3_url})))),[i]),{id:b,more_info:R,description:L,amount:P,created_date:j,txn_type:M,type:U,cardTxn:w,reserve_meta:B,available_balance:G,category:H,medium:W}=i,K="DEBIT"===U?"expense":"income",{isPending:q}=A.data||{},{className:$,icon:z}=(0,x.O7)(q,i);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(D.Ay.Header,{children:[l&&(0,C.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",onClick:()=>{t(!1),o(!1),E(R.root.id)},children:[(0,C.jsx)("div",{className:"flex items-center",children:(0,C.jsx)(I.Int,{name:"chevron-left",size:"md",color:"default"})}),(0,C.jsx)("div",{children:F.W.BACK})]}),(0,C.jsx)(u.Header3,{className:"text-typography-default",children:l?S.A.TRANSACTION_REFERENCE:S.A.TRANSACTION_DETAILS})]}),(0,C.jsx)(D.Ay.Content,{children:(0,C.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,C.jsxs)("div",{className:"mt-3 flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"flex items-center gap-2",children:[(0,C.jsx)("img",{src:z,alt:"",className:"w-10"}),(0,C.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,C.jsx)("div",{className:"text-typography-default",children:L}),(0,C.jsx)("div",{className:"text-typography-grey text-body-s-regular flex items-center gap-2",children:S.A.BANK_FEE})]})]}),(0,C.jsx)("div",{className:`text-h3 ${$||"text-typography-default"}`,children:(0,x.ye)(P)})]}),(0,C.jsx)(u.Divider,{}),(0,C.jsxs)("div",{className:"text-body-s-regular flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.DATE_POSTED}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:k()(j).format("MMMM DD, YYYY")})]}),(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.reference_id_2}),(0,C.jsxs)("div",{className:"flex flex-col items-end gap-1 font-medium",children:[!l&&(0,C.jsx)("a",{onClick:()=>{t(!1),o(!0),E(R.root.id)},children:null==(n=R.root)?void 0:n.reference_number}),l&&(null==(a=R.root)?void 0:a.reference_number)]})]}),(0,C.jsx)(u.Divider,{})]}),G&&"DEBIT"===U&&(0,C.jsx)(V,{isPending:q,reserve_meta:B,available_balance:G,amount:P,id:b,description:L,medium:W,cardTxn:w,txn_type:M,type:U,category:H}),(()=>{if(q&&"CARD"===M)return null;const n=![y.A.CARD_TXN_STATUS.DECLINED,y.A.CARD_TXN_STATUS.CANCELED].includes(null==w?void 0:w.status);return e&&n?(0,C.jsx)(Y.H,{type:K.toUpperCase(),initialValue:r,handleChange:s}):!e&&(null==T?void 0:T.length)>0?(0,C.jsx)(h.VT,{label:F.W.category,classNamePrefix:"novo-select-transection-detail",onChange:s,value:r,type:K,isDropDownImgAtCategory:!0}):null})(),(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)("div",{className:"text-typography-default text-body-s-regular leading-5",children:F.W.invoice_receipt_2}),(0,C.jsx)(h.ef,{className:"",title:F.W.add_invoice_receipt,fileInputName:"receipt",onFileSelect:m,onCloudFileSelect:_,uploadedFiles:O,maxAllowedFiles:3,fileLoader:v,setFilePreviewID:N,removeFile:p,uploadFileRequest:g,allowDragDrop:!0}),(0,C.jsx)("div",{className:"text-typography-grey text-caption-regular font-light",children:S.A.FILE_UPLOAD_LIMIT})]})]})})]})};var H=a(14933),W=a(41836);const K=()=>{var e;const{handleSubmit:n,formState:a,watch:i,register:t,reset:s}=(0,o.xW)(),{transaction:r,editNote:l,setEditNote:c,onTxnNoteFormSubmit:m,isCreditCardTxn:_=!1}=(0,d.useContext)(f.Wc),{modalState:v}=(0,u.useModal)();if(!r)return null;const N=i("notes"),{notes:p}=r;if(!(v&&v.data||_))return!1;const E=_||!(null!=v&&null!=(e=v.data)&&e.isPending);return!(!E&&!p)&&(0,C.jsx)("form",{className:"",onSubmit:n(m),children:(0,C.jsxs)("div",{children:[!l&&p&&(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,C.jsx)("label",{className:"capitalize",children:F.W.note}),E&&(0,C.jsx)(u.Button,{type:"button",buttonVariant:"secondary",rudderStackData:H.hr.ACTIVITY.BUTTON.ACTIVITY_DETAILS_MODAL.EDIT_NOTE,onClick:()=>c(!0),size:"icon",children:(0,C.jsx)(I.Int,{name:"pencil",size:"xs",color:"current"})})]}),(0,C.jsx)("p",{className:"text-body-medium break-all",children:p})]}),(!p||l)&&(0,C.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,C.jsx)(W.P,Object.assign({},t("notes"),{secondaryLabel:F.W.optional,labelAdditionalInfo:(0,P.catalogueText)("core-shared","ONLY_VISIBLE_TO_YOU"),label:F.W.note,rows:"2",placeholder:F.W.enter_note,maxLength:"250",inputAdditionalInfo:(0,C.jsxs)(C.Fragment,{children:[" ",a.isDirty?(null==N?void 0:N.length)||0:(null==p?void 0:p.length)||0,"/ ",250]}),defaultValue:p})),(0,C.jsxs)("div",{className:"flex w-full items-center justify-end gap-3",children:[p&&(0,C.jsx)(L.d,{type:"button",buttonVariant:"secondary",size:"small",onClick:()=>{c(!1),s()},rudderStackData:H.hr.ACTIVITY.BUTTON.ACTIVITY_DETAILS_MODAL.CANCEL,children:F.W.CANCEL}),(0,C.jsx)(L.d,{type:"submit",buttonVariant:"primary",size:"small",disabled:a.isSubmitting||!a.isDirty,rudderStackData:Object.assign({},H.hr.ACTIVITY.BUTTON.ACTIVITY_DETAILS_MODAL.NOTE,{name:""+(p?"update":"add_note")}),children:p?F.W.update:F.W.add_note})]})]})]})})},q=()=>{const{txnNoteFormMethods:e}=(0,d.useContext)(f.Wc);return(0,C.jsx)(o.Op,Object.assign({},e,{children:(0,C.jsx)(K,{})}))};var $=a(23347),z=a(28110),Q=a(70420),X=a(20505),Z=a(36195),J=a(33764);const ee=({txn_type:e,expected_delivery_date:n})=>["EXPRESS_REMOTE_DEPOSIT_CHECK","REMOTE_DEPOSIT_CHECK"].includes(e)&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.estimated_availability}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:n?k()(n).format(J.CO):"-"})]}),ne=({txn_type:e,fee:n,root:a,mrdcTransactionViewHandler:i,showBackButton:t})=>(0,C.jsxs)(C.Fragment,{children:["EXPRESS_REMOTE_DEPOSIT_CHECK"===e&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"text-typography-grey capitalize",children:[(0,P.catalogueText)("activity","express_fee")," ",(0,C.jsx)("br",{}),!t&&(0,C.jsx)(u.Link,{onClick:i,"data-test-id":"link-view-fee-details",children:F.W.view_fee_details})]}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:(0,Z.currencyFormatter)((null==n?void 0:n.amount)||0)})]}),"EXPRESS_REMOTE_DEPOSIT_CHECK_FEE"===e&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"text-typography-grey capitalize",children:[(0,P.catalogueText)("activity","express_check_deposit")," ",(0,C.jsx)("br",{}),!t&&(0,C.jsx)(u.Link,{onClick:i,"data-test-id":"link-view-fee-details",children:F.W.view_deposit_details})]}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:(0,Z.currencyFormatter)((null==a?void 0:a.amount)||0)})]})]}),ae=({txn_type:e,fee:n,root:a,transactionReferenceHandler:i})=>(0,C.jsxs)(C.Fragment,{children:["DOMESTIC_WIRE"===e&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:(0,C.jsxs)("div",{className:"text-typography-grey capitalize",children:[(0,P.catalogueText)("activity","domestic_wire_fee"),(0,C.jsx)("br",{})," ",F.W.reference_id]})}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:(0,C.jsx)("a",{onClick:i,children:null==n?void 0:n.reference_number})})]}),"DOMESTIC_WIRE_FEE"===e&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.reference_id})}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:(0,C.jsx)("a",{onClick:i,children:null==a?void 0:a.reference_number})})]})]});var ie=a(55531),te=a(42242);const se=({handleLinkInvoice:e})=>(0,C.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,C.jsxs)(u.Link,{"data-test-id":"view-invoice-linked-to-txn",onClick:n=>{n.preventDefault(),(0,ie.sx)(te.y.TRANSACTION_DETAILS.LINK_INVOICE),e()},to:"",className:"!font-normal flex items-center gap-2 ",children:[(0,C.jsx)(I.Int,{name:"link",size:"md",color:"current"}),(0,C.jsx)("span",{children:F.W.link_an_invoice})]}),(0,C.jsx)("p",{className:"text-typography-grey text-body-s-regular",children:F.W.link_an_invoice_to_apply_a})]});var re=a(3534),de=a(21215);const le=({amt:e,fee:n,net:a,adjustmentAmount:i,adjustments:t,linked:s=[],isAutoReconciled:r})=>{var l;const o=(0,re.useNavigate)(),c=(0,d.useCallback)((e=>{o(`/${de.NOVO_PAGE_ROUTES.InvoiceDetails.replace(":id",e)}`)}
1),[o]),m={amounts:s.map((e=>({id:e.id,amount:e.amount,invoice:e.invoice,customer:e.customer}))),fees:s.map((e=>({id:e.id,fee:e.fee,invoice:e.invoice,customer:e.customer}))),adjustments:null==t?void 0:t.map((e=>({id:e.id,amount:e.amount,invoice:e.invoice,customer:e.customer})))},_=(0,d.useMemo)((()=>{var a;const t=[{question:(0,C.jsxs)("div",{className:"text-body-regular relative flex w-full justify-between font-normal",children:[F.W.amount,(0,C.jsx)("div",{className:"absolute right-0 font-medium",children:(0,Z.currencyFormatter)(e)})]}),answer:(0,C.jsx)("div",{className:"flex w-full flex-col gap-2",children:null==m||null==(a=m.amounts)?void 0:a.map((e=>{var n;return(0,C.jsxs)("div",{className:"flex w-full justify-between",children:[(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(u.Link,{"data-test-id":"view-invoice-linked-to-txn",to:"",onClick:()=>e.invoice.id&&c(e.invoice.id),children:(0,P.catalogueText)("activity","invoice_number",{number:e.invoice.invoiceNumber})}),(0,C.jsx)("div",{children:null!=(n=e.customer.name)?n:e.customer.clientName})]}),(0,C.jsx)("div",{className:"text-typography-grey",children:(0,Z.currencyFormatter)(e.amount)})]},e.invoice.invoiceNumber)}))}),className:"relative mb-2",iconClassName:"!w-3 absolute top-2 left-16",answerClassName:"!mt-2"}];var s,d;r&&(t.push({question:(0,C.jsxs)("div",{className:"text-body-regular flex w-full justify-between font-normal",children:[F.W.fees,(0,C.jsxs)("div",{className:"absolute right-0 font-medium",children:["-",(0,Z.currencyFormatter)(n)]})]}),answer:(0,C.jsx)("div",{className:"flex w-full flex-col gap-2",children:null==m||null==(s=m.fees)?void 0:s.map((e=>{var n;return(0,C.jsxs)("div",{className:"flex w-full justify-between",children:[(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(u.Link,{"data-test-id":"view-invoice-linked-to-txn",to:"",onClick:()=>e.invoice.id&&c(e.invoice.id),children:(0,P.catalogueText)("activity","invoice_number",{number:e.invoice.invoiceNumber})}),(0,C.jsx)("div",{children:null!=(n=e.customer.name)?n:e.customer.clientName})]}),(0,C.jsxs)("div",{className:"text-typography-grey",children:["-",(0,Z.currencyFormatter)(e.fee)]})]},e.invoice.invoiceNumber)}))}),className:"relative",iconClassName:"!w-3 absolute top-2 left-11",answerClassName:"!mt-2"}),t.push({question:(0,C.jsxs)("div",{className:"text-body-regular flex w-full justify-between font-normal",children:[(0,C.jsxs)("span",{className:"flex items-center gap-1",children:[(0,P.catalogueText)("activity","adjustments"),r&&(0,C.jsxs)(u.Tooltip,{placement:"bottom",children:[(0,C.jsx)(u.TooltipTrigger,{asChild:!0,children:(0,C.jsx)("div",{onMouseEnter:()=>{(0,ie.sx)(te.y.TRANSACTION_DETAILS.ADJUSTMENTS_TOOLTIP)},children:(0,C.jsx)(I.Int,{name:"info-circle",size:"xs",color:"info"})})}),(0,C.jsx)(u.TooltipContent,{children:(0,C.jsx)("div",{className:"text-body-s-regular w-64",children:F.W.adjustments_include_refunds_and_disputes})})]})]}),(0,C.jsx)("div",{className:"absolute right-0 font-medium",children:(0,Z.currencyFormatter)(i)})]}),answer:(0,C.jsx)("div",{className:"flex w-full flex-col gap-2",children:null==m||null==(d=m.adjustments)?void 0:d.map((e=>{var n;return(0,C.jsxs)("div",{className:"flex w-full justify-between",children:[(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(u.Link,{"data-test-id":"view-invoice-linked-to-txn",to:"",onClick:()=>e.invoice.id&&c(e.invoice.id),children:(0,P.catalogueText)("activity","invoice_number",{number:e.invoice.invoiceNumber})}),(0,C.jsx)("div",{children:null!=(n=e.customer.name)?n:e.customer.clientName})]}),(0,C.jsx)("div",{className:"text-typography-grey",children:(0,Z.currencyFormatter)(e.amount)})]},e.invoice.invoiceNumber)}))}),className:"relative",iconClassName:"!w-3 absolute top-2 left-[7.5rem]",answerClassName:"!mt-2"}));return t}),[e,null==m?void 0:m.amounts,null==m?void 0:m.fees,null==m?void 0:m.adjustments,r,c,n,i]);return(0,C.jsxs)(u.Card,{className:"bg-fill-light flex gap-2 border-none p-4",children:[(0,C.jsxs)("div",{className:"flex items-center gap-1",children:[r?(0,C.jsx)(I.Int,{name:"star-shine",size:"xs",color:"current"}):(0,C.jsx)(I.Int,{name:"link",size:"xs",color:"current"}),(0,C.jsx)("div",{className:"text-typography-grey text-body-s-regular",children:F.W.linked_invoices}),r&&(0,C.jsxs)(u.Tooltip,{placement:"bottom",children:[(0,C.jsx)(u.TooltipTrigger,{asChild:!0,children:(0,C.jsx)("div",{onMouseEnter:()=>{(0,ie.sx)(te.y.TRANSACTION_DETAILS.LINKED_TOOLTIP)},children:(0,C.jsx)(I.Int,{name:"info-circle",size:"xs",color:"info"})})}),(0,C.jsx)(u.TooltipContent,{children:(0,C.jsx)("div",{className:"text-body-s-regular w-64",children:F.W.these_invoices_have_been_linked_automatically})})]})]}
1),r?(0,C.jsx)(u.Accordion,{animationVariant:"secondary",className:"w-full",allowMultipleOpen:!0,defaultIndex:0,items:_},""):(0,C.jsx)("div",{className:"flex w-full flex-col gap-2",children:null==m||null==(l=m.amounts)?void 0:l.map((e=>{var n;return(0,C.jsxs)("div",{className:"flex w-full justify-between",children:[(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(u.Link,{"data-test-id":"view-invoice-linked-to-txn",to:"",onClick:()=>e.invoice.id&&c(e.invoice.id),children:(0,P.catalogueText)("activity","invoice_number",{number:e.invoice.invoiceNumber})}),(0,C.jsx)("div",{className:"text-body-regular text-typography-grey",children:null!=(n=e.customer.name)?n:e.customer.clientName})]}),(0,C.jsx)("div",{className:"text-body-medium",children:(0,Z.currencyFormatter)(e.amount)})]},e.invoice.invoiceNumber)}))}),r&&(0,C.jsxs)("div",{className:"text-body-regular flex w-full justify-between font-normal",children:[(0,C.jsx)("div",{children:F.W.net}),(0,C.jsx)("div",{className:"font-medium",children:(0,Z.currencyFormatter)(a)})]})]})};var oe=a(23154),ce=a(64774);const me=({banner:e,onClose:n})=>{const a=(0,re.useNavigate)();if(!e)return null;const{title:i,description:t,ctaText:s,type:r}=e||{};return(0,C.jsx)("div",{className:"flex",children:(0,C.jsxs)("div",{className:"relative flex w-full overflow-hidden rounded-xl bg-[linear-gradient(123.29deg,#FAF7F6_9.58%,#3D44E3_162.77%)]",children:[(0,C.jsxs)("div",{className:"flex flex-1 flex-col gap-2 p-3",children:[(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsx)("div",{className:"text-body-s-medium font-['Recoleta']",children:i}),(0,C.jsx)("div",{className:"text-text-caption-regular",children:t})]}),(0,C.jsx)(u.Button,{buttonVariant:"primary",className:"w-fit flex-none","data-test-id":`activity-details-banner-${r.toLowerCase()}-button`,size:"small",onClick:()=>{(0,ie.sx)(Object.assign({},ce.X["cc_revenue.credit_card_banner_cta_click"],{source_screen:"activity_details_banner",variant_id:r})),n(),a(de.NOVO_PAGE_ROUTES.CreditCard)},children:s})]}),(0,C.jsx)("div",{className:"absolute -bottom-6 right-4 w-1/3 md:-bottom-10",children:(0,C.jsx)(u.Image,{src:(0,Z.getImageUrl)("/images/cards/credit-card-with-name-inline.webp",true),name:"cc-with-inline-name",className:"block h-auto w-full"})})]})})},ue=()=>{const{transaction:e}=(0,d.useContext)(f.Wc),{status:n}=e||{},a="pending"===n,i="sent"===n;return(0,C.jsxs)("div",{className:"text-body-regular flex flex-col gap-3",children:[(0,C.jsx)("label",{className:"text-typography-default capitalize",children:F.W.transfer_status}),(0,C.jsxs)("ul",{className:"progress-indicator stacked",children:[(0,C.jsxs)("li",{className:"indicator-green flex items-center gap-3",children:[(0,C.jsx)("span",{className:`bubble ${i&&"connector-green"}`}),(0,C.jsxs)("div",{className:"flex flex-1 items-center justify-between",children:[(0,C.jsx)("div",{className:"capitalize "+(i?"text-typography-grey":"font-medium"),children:F.W.pending}),(0,C.jsx)("div",{className:"text-body-regular "+(a?"text-typography-default font-medium":"text-typography-grey"),children:k()(e.created_date).format("MMM DD, YYYY")})]})]}),(0,C.jsxs)("li",{className:"flex items-center gap-3 "+(i?"indicator-green":"indicator-current"),children:[(0,C.jsx)("span",{className:"bubble"}),(0,C.jsxs)("div",{className:"flex flex-1 items-center justify-between",children:[(0,C.jsx)("div",{className:"capitalize "+(i?"font-medium":"text-typography-grey"),children:F.W.check_sent}),i&&(0,C.jsx)("div",{className:"text-body-regular "+(i?"text-typography-default font-medium":"text-typography-grey"),children:k()(e.updated_date).format("MMM DD, YYYY")})]})]})]})]})},_e=({image:e,title:n})=>(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)("label",{className:"text-typography-grey",children:n}),(0,C.jsx)("img",{src:e,alt:`check-${n}`})]});_e.propTypes={image:r().string.isRequired,title:r().string.isRequired};const ve=()=>{const{transaction:e}=(0,d.useContext)(f.Wc);if(!e.check_images)return!1;const{front_image:n,back_image:a}=e.check_images;return(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[n&&(0,C.jsx)(_e,{title:"FRONT",image:n}),a&&(0,C.jsx)(_e,{title:"BACK",image:a})]})},Ne=()=>{const{transaction:e,changeCategoryRequest:n,selectedCategory:a}=(0,d.useContext)(f.Wc);return(0,C.jsxs)(D.Ay.Content,{className:"flex-col gap-8",children:[(0,C.jsx)("img",{className:"",src:a.icon_url,width:48,alt:"category-icon"}),(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)("p",{className:"text-typography-grey",children:F.W.change_the_category_of_transactions}),(0,C.jsxs)("p",{className:"text-typography-grey",children:[(0,C.jsx)("b",{children:e.description})," ",F.W.to," ",(0,C.jsx)("b",{children:a.label})]})]}),(0,C.jsxs)("div",{className:"flex items-center gap-4",children:[(0,C.jsxs)(u.Button,{type:"button",buttonVariant:"secondary",onClick:()=>
1n("ALL"),children:[" ",F.W.ALL_TRANSACTIONS]}),(0,C.jsxs)(u.Button,{type:"button",buttonVariant:"primary",onClick:()=>n(),children:[" ",F.W.ONLY_THIS_TRANSACTION]})]})]})},pe=({transactionId:e,type:n,credited_accounts_count:a})=>{const[i,t]=(0,d.useState)(!1),{privateAPIInstance:s}=(0,d.useContext)(f.cy),{data:r}=(0,m.useQuery)({queryKey:[X.B.TRANSACTION_RESERVE_LEDGER_DETAILS,e],queryFn:()=>(0,Q.u)(s,{transactionId:e},{baseURL:z.c.AMS_USER_BASE_URL}),select:e=>{const n=[],{availableBalanceDetails:a,ledgerDetails:i}=e||{};if(a){const{name:e,transactionAmount:i,transactionPercentage:t}=a;n.push({name:e,transactionAmount:i,transactionPercentage:t,id:"AVAILABLE_BALANCE"})}if(null!=i&&i.length){const e=i.map((e=>({name:e.reserveName,id:e.reserveId,transactionAmount:e.reserveTransactionAmount,transactionPercentage:e.reserveTransactionPercentage,status:e.status})));n.push(...e)}return n},enabled:!!s&&!!e&&a>0});return a<=0?null:(0,C.jsxs)("div",{className:"relative flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:"DEBIT"===n?S.A.PAID_FROM_RESERVE:S.A.PAID_TO_RESERVE}),(0,C.jsxs)("div",{className:"text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled flex cursor-pointer flex-row items-center justify-end gap-1",onClick:()=>{t(!i)},children:[(0,C.jsxs)("div",{className:"text-body-medium",children:[a," ",a>1?S.A.RESERVES:S.A.RESERVE]}),(0,C.jsx)(I.Int,{name:"split",size:"md",color:"current",className:"cursor-pointer"})]}),i&&(0,C.jsx)("div",{className:"border-border-light bg-fill-default text-body-s-regular absolute right-0 top-7 z-[100] flex w-[95%] flex-col rounded-b border border-solid",children:null==r?void 0:r.map((e=>{const n=(null==e?void 0:e.status)&&"deleted"===e.status;return(0,C.jsxs)("div",{className:"border-border-light flex items-center justify-between border-b border-solid p-3 last:border-none",children:[(0,C.jsxs)("div",{className:"text-body-s-regular flex items-center gap-2 font-medium",children:[(0,C.jsxs)("div",{className:"flex gap-1",children:[(0,C.jsx)("div",{className:""+(n?"text-typography-grey":"text-typography-default"),children:null==e?void 0:e.name}),n&&(0,C.jsx)("div",{className:"text-typography-grey dark:text-typography-grey",children:F.W.deleted})]}),(0,C.jsxs)("div",{className:"text-typography-grey dark:text-typography-grey font-normal",children:[" ",(0,x.ho)(null==e?void 0:e.transactionPercentage),"%"]})]}),(0,C.jsx)("div",{className:"font-medium "+(n?"text-typography-grey":"text-typography-default"),children:(0,x.ye)(null==e?void 0:e.transactionAmount)})]},null==e?void 0:e.id)}))})]})},Ee=()=>{var e,n,a,i,s,r,l,o;const{transaction:c,invoicesCountByTxnID:m,selectedCategory:_,selectCategory:v,categoryConfirmation:N,onFileSelect:p,onCloudFileSelect:E,fileLoader:T,setFilePreviewID:b,filePreviewID:L,deleteFileRequest:M,cancelTransactionConfirmation:w,cancelTransactionSuccess:W,openReportIssueModal:K,transactionDeliveryFeeVisibility:z,setLoadFeeTransaction:Q,setShowBackButton:X,showBackButton:ie,setTransactionId:te,setTransactionSubType:re,uploadFileRequest:de,linkedInvoice:ce}=(0,d.useContext)(f.Wc),{modalState:_e,openModal:Ee,closeModal:ge}=(0,u.useModal)(),{featureFlags:Te,isFetchingFeatureFlag:ke}=(0,j.h)(),Ie=null==Te?void 0:Te.transaction_categorization_v2,{TRANSACTION_DETAIL_PAGE:ye,LINK_AN_INVOICE:Se}=H.hr.ACTIVITY.TRANSACTION_DETAIL,Ae=(0,d.useMemo)((()=>c&&c.receipts&&c.receipts.map((e=>({file_name:e.file_name,type:e.document_type,file_id:e.file_id,thumbnail_s3_url:e.thumbnail_s3_url})))),[c]);if((0,d.useEffect)((()=>{(0,H.sx)(ye)}),[]),!c||!_e)return(0,C.jsx)(oe.w,{});const{isPending:fe}=_e.data||{},{id:xe,type:he,description:Ce,medium:Oe,amount:De,created_date:be,reference_number:Re,more_info:Le,location_string:Fe,tw_transactions_details:Pe,check_number:je,txn_type:Me,cardTxn:Ue,disputeConfig:we,credited_accounts_count:Ve,reserve_meta:Be,available_balance:Ye,category:Ge,allowReserveAllocation:He,status:We,user_action:Ke,imadOrOmad:qe,displayStatus:$e,paidFrom:ze,postedDate:Qe,wireNotes:Xe,meta:Ze,banner:Je}=c,{className:en,icon:nn}=(0,x.O7)(fe,c),{netAmount:an,payments:tn,amount:sn,fee:rn,adjustmentAmount:dn,adjustments:ln}=ce||{},on=m&&m>0,cn=A.A.createTxnLocationString({location_string:Fe,cardTxn:Ue}),mn=t()(Le,(e=>e.payee_note)),un=null==Le?void 0:Le.able_to_cancel_transfer,{root:_n,fee:vn,delivery:Nn}=Le||{},pn="DEBIT"===he?"expense":"income",En="DOMESTIC_WIRE"===Me,gn="DOMESTIC_WIRE_FEE"===Me,Tn=["DOMESTIC_WIRE_RETURN","DOMESTIC_WIRE_REVERSAL","DOMESTIC_WIRE_FEE_REVERSAL"].includes(Me),kn=["EXPRESS_REMOTE_DEPOSIT_CHECK","REMOTE_DEPOSIT_CHECK"].includes(Me);if(N&&_)return(0,C.jsx)(Ne,{});if((z||"ACH_PUSH_FEE"===Me)&&!["EXPRESS_REMOTE_DEPOSIT_CHECK_FEE","DOMESTIC_WIRE_FEE"].includes(Me))return(0,C.jsx)(G,{isActivityV2:Ie});if(w||W)return(0,C.jsx)(U,{});if(L)return(0,C.jsx)(B.A,{});const In="EXTERNAL WITHDRAWAL"===(Oe||"").trim().toUpperCase(),yn=()=>
1{Q(!!Le.root),X(!0),Le.fee?te(Le.fee.id):Le.root&&te(Le.root.id)};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(D.Ay.Header,{children:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[ie&&(0,C.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",onClick:["EXPRESS_REMOTE_DEPOSIT_CHECK","EXPRESS_REMOTE_DEPOSIT_CHECK_FEE"].includes(Me)?()=>{var e,n;(Q(!0),X(!1),"EXPRESS_REMOTE_DEPOSIT_CHECK"===Me)&&(te(Le.fee.id),re(null!=(e=Le.fee.txn_type)?e:null));"EXPRESS_REMOTE_DEPOSIT_CHECK_FEE"===Me&&(te(Le.root.id),re(null!=(n=Le.root.txn_type)?n:null))}:()=>{Q(!!Le.root),X(!1),Le.fee?te(Le.fee.id):Le.root&&te(Le.root.id)},children:[(0,C.jsx)("div",{className:"flex items-center",children:(0,C.jsx)(I.Int,{name:"chevron-left",size:"md",color:"default"})}),(0,C.jsx)("div",{children:F.W.BACK})]}),(0,C.jsx)(u.Header3,{className:"text-typography-default",children:ie?S.A.TRANSACTION_REFERENCE:S.A.TRANSACTION_DETAILS})]})}),(0,C.jsx)(D.Ay.Content,{className:"flex-col",children:(0,C.jsxs)("div",{className:"flex h-full flex-col gap-6",children:[(0,C.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,C.jsxs)("div",{className:"flex items-center gap-2",children:["pending"!==Ke&&(0,C.jsx)("img",{src:nn,alt:"",className:"w-10"}),"pending"===Ke&&(0,C.jsx)(I.Int,{name:"info-circle"}),(0,C.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,C.jsx)("div",{className:"text-body-medium text-typography-default break-all",children:Ce}),(0,C.jsxs)("div",{className:"text-typography-grey text-body-s-regular flex items-center gap-2",children:[Oe,(null==Ue?void 0:Ue.status)&&[y.A.CARD_TXN_STATUS.DECLINED,y.A.CARD_TXN_STATUS.CANCELED].includes(Ue.status)&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{className:"bg-border-light h-1 w-1 rounded-full"}),(0,C.jsx)("span",{className:"DECLINED"===Ue.status?"text-typography-error":"",children:(0,g.startCase)((0,g.toLower)(Ue.status||""))})]})]})]})]}),(0,C.jsx)(u.Header3,{className:` ${en||"text-typography-default"}`,children:(0,x.ye)(De)})]}),"INVOICE_DISPUTE"===Me&&(0,C.jsx)(u.AlertBanner,{description:(0,C.jsxs)("div",{className:"flex w-full flex-col items-start",children:[(0,C.jsx)("p",{className:"text-body-s-medium",children:J.GI[fe?"pending":"BANK_TRANSFER"===(null==Ze?void 0:Ze.invoice_transaction_payment_method)?"bank_transfer":"resolved"].title}),(0,C.jsx)("p",{className:"text-body-s-regular",children:J.GI[fe?"pending":"BANK_TRANSFER"===(null==Ze?void 0:Ze.invoice_transaction_payment_method)?"bank_transfer":"resolved"].description})]}),variant:"warning"}),!0===(null==we?void 0:we.allow_dispute)&&(0,C.jsx)("div",{className:"flex flex-col",children:(0,C.jsxs)("div",{className:"flex flex-row items-center justify-end gap-2 p-3",children:[(0,C.jsx)(u.Link,{onClick:K,"data-test-id":"button-"+(In?"report-unauthorized-debit":"dispute-transaction"),showUnderLine:!0,children:In?F.W.report_unauthorized_debit:F.W.dispute_this_transaction}),(0,C.jsxs)(u.Tooltip,{placement:"bottom",children:[(0,C.jsx)(u.TooltipTrigger,{asChild:!0,children:(0,C.jsx)(I.Int,{name:"info-circle",size:"xs",color:"info"})}),(0,C.jsx)(u.TooltipContent,{children:(0,C.jsxs)("div",{className:"flex max-w-80 flex-col gap-3",children:[(0,C.jsx)(u.Header4,{children:F.W.unauthorized_debit_ach}),(0,C.jsx)("p",{children:F.W.you_can_report_this_specific_ach}),(0,C.jsx)("p",{children:F.W.there_are_variations_in_types}),(0,C.jsx)("p",{children:F.W.we_recommend_all_disputes_be_taken})]})})]})]})}),!1===(null==we?void 0:we.allow_dispute)&&(null==we||null==(e=we.meta)?void 0:e.referenceNumber)&&(0,C.jsx)("div",{className:"bg-fill-neutral mt-7 flex py-5 pl-5",children:(0,C.jsxs)("div",{className:"flex items-center gap-3",children:[(0,C.jsx)("span",{className:"text-h3",children:"\ud83d\udcec"}),(0,C.jsxs)("span",{className:"text-body-regular",children:[F.W.unauthorized_debit_report_is_already_filed,(0,C.jsx)("b",{children:we.meta.referenceNumber})]})]})}),!1===(null==we?void 0:we.allow_dispute)&&null!==(null==we?void 0:we.status)&&"SUBMITTED"!==(null==we?void 0:we.status)&&(0,C.jsxs)("div",{className:"bg-fill-neutral mt-7 flex py-5 pl-5",children:["ACCEPTED"===(null==we?void 0:we.status)&&(0,C.jsxs)("div",{className:"flex items-center gap-3",children:[(0,C.jsx)("span",{className:"text-h3",children:"\u2714"}),(0,C.jsx)("span",{className:"text-body-regular",children:F.W.dispute_was_accepted_for_this_transaction})]}),"ACCEPTED_WITH_FC"===(null==we?void 0:we.status)&&(0,C.jsxs)("div",{className:"flex items-center gap-3",children:[(0,C.jsx)("span",{className:"text-h3",children:"\u2705"}),(0,C.jsx)("span",{className:"text-body-regular",children:F.W.credit_approved})]}),"REJECTED"===(null==we?void 0:we.status)&&(0,C.jsxs)("div",{className:"flex items-center gap-3",children:[(0,C.jsx)("span",{className:"text-h3",children:"\u274c"}),(0,C.jsx)("span",{className:"text-body-regular",children:F.W.dispute_was_rejected_for_this_transaction})]}),("PENDING"===(null==we?void 0:we.status)||"UPLOADED"===(null==we?void 0:we.status))&&(0,C.jsxs)("div",{className:"flex items-center gap-3",children:[(0,C.jsx)("span",{className:"text-h3",children:"\ud83d\udcec"}),(0,C.jsx)("span",{className:"text-body-regular",children:F.W.dispute_already_filed_for_this_transaction})]})]}),(0,C.jsx)(u.Divider,{className:"min-h-[1px]"}),Je&&(0,C.jsx)(me,{banner:Je,onClose:()=>ge()}),(0,C.jsxs)("div",{className:"text-body-regular flex flex-col gap-4",children:[(null==Ue?void 0:Ue.status)&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.card_txn_status}),(0,C.jsxs)("div",{className:"flex flex-col items-end gap-1 font-medium",children:[(0,C.jsx)("div",{className:""+("DECLINED"===Ue.status?"text-typography-error":""),children:(0,g.startCase)((0,g.toLower)("SETTLED"===Ue.status?"Posted":Ue.status)||"")}),(0,C.jsx)("div",{children:(null==Ue?void 0:Ue.decline_reason)||null})]})]}),"Check"===Oe&&We&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.card_txn_status}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium capitalize",children:We})]}),En&&!fe&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.IMADOMAD}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:qe||"NA"})]}),(En||"INVOICE_DISPUTE"===Me)&&$e&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.card_txn_status}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:(0,Z.capitalizeFLetter)($e)})]}),"returned"===$e&&(0,C.jsxs)("div",{className:"flex items-center gap-2",children:[(0,C.jsx)(I.Int,{name:"info-circle",size:"xs",color:"info"}),(0,C.jsx)("span",{className:"text-caption-regular text-typography-grey",children:F.W.returned_payments_may_take_some_time})]})]}),!Pe&&!En&&"INVOICE_DISPUTE"!==Me&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:fe||gn||Tn?F.W.transaction_date:F.W.card_txn_date_posted}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:k()(be).format("ll")})]}),En&&fe&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.transaction_date}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:k()(be).format("ll")})]}),En&&!fe&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.card_txn_date_posted}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:Qe?k()(Qe).format("ll"):"-"})]}),(En||gn)&&ze&&!Ve&&!fe&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.card_txn_paid_from}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:ze})]}),En&&(0,C.jsxs)("div",{className:"flex items-center justify-between gap-6",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.NoteSentWithWire}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 text-right font-medium",children:Xe||"-"})]}),Pe&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.card_txn_status}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:Pe.status})]}),cn&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.card_txn_location}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:cn})]}),(null==Ue||null==(n=Ue.card)?void 0:n.last_four)&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.debit_card_used}),(0,C.jsxs)("div",{className:"flex flex-col items-end gap-1 font-medium",children:["**** ",null==Ue||null==(a=Ue.card)?void 0:a.last_four]})]}),Le&&Le.last_four_debit_card_number&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.debit_card_used}),(0,C.jsxs)("div",{className:"flex flex-col items-end gap-1 font-medium",children:["****",Le.last_four_debit_card_number]})]}),(je||(null==Le?void 0:Le.check_number))&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.check_number}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:je||(null==Le?void 0:Le.check_number)})]}),Ve>=0&&(0,C.jsx)(pe,{transactionId:xe,reserve_meta:Be,type:he,credited_accounts_count:Ve,available_balance:Ye}),Pe&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"text-typography-grey capitalize",children:[" ",F.W.recipient_receives," "]}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:(Sn=Pe.target_currency,new Intl.NumberFormat("en-US",{style:"currency",currency:Sn})).format(Pe.payee_receives)})]}),(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"text-typography-grey capitalize",children:[" ",F.W.should_arrive," "]}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:k()(Pe.should_arrive).format(J.XB)})]}),(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"text-typography-grey capitalize",children:[" ",F.W.paid," "]}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:k()(Pe.paid_on).format(J.XB)})]}),(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.wise_fee}),(0,C.jsxs)("div",{className:"flex flex-col items-end gap-1 font-medium",children:["$",Pe.transferwise_fee]})]}),(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"text-typography-grey capitalize",children:[" ",F.W.exchange_rate]}),(0,C.jsxs)("div",{className:"flex flex-col items-end gap-1 font-medium",children:["x\xa0\xa0",Pe.exchange_rate," "]})]}),(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.wise_id}),(0,C.jsxs)("div",{className:"font-medium",children:[" ",Pe.transferwise_id]})]})]}),fe&&"Check"===Oe&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(u.Divider,{className:"min-h-[1px]"}),(0,C.jsx)(ue,{})]}),(!Pe&&"EXPRESS_ACH"===Me||"ACH_PUSH"===Me)&&(0,C.jsxs)(C.Fragment,{children:["EXPRESS_ACH"===Me&&(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"text-typography-grey capitalize",children:[(0,P.catalogueText)("activity","express_delivery_fee"),(0,C.jsx)("br",{}),"EXPRESS_ACH"===Me&&0!==vn.amount&&(0,C.jsxs)(C.Fragment,{children:[" ",(0,P.catalogueText)("activity","reference_id"),!ie&&vn&&""!==vn.reference_number&&(0,C.jsx)("a",{onClick:yn,children:vn.reference_number}),ie&&vn&&""!==vn.reference_number&&vn.reference_number,""===vn.reference_number&&"PENDING"]})]}),(0,C.jsxs)("div",{className:"flex flex-col items-end gap-1 font-medium",children:[0===(null==vn?void 0:vn.amount)?(0,x.ye)(0):(0,x.ye)(null==vn?void 0:vn.amount),!vn&&(0,x.ye)(0)]})]}),(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("div",{className:"text-typography-grey capitalize",children:F.W.estimated_arrival}),(0,C.jsx)("div",{className:"flex flex-col items-end gap-1 font-medium",children:k()(Nn).format(J.XB)})]})]}),(0,C.jsx)(ee,{txn_type:Me,expected_delivery_date:null!=(i=c.expected_delivery_date)?i:null==Le?void 0:Le.expected_availability_date}),["DOMESTIC_WIRE","DOMESTIC_WIRE_FEE"].includes(Me)&&(_n||vn)&&(0,C.jsx)(ae,{txn_type:Me,fee:vn,root:_n,transactionReferenceHandler:yn}
1),(0,C.jsx)(ne,{txn_type:Me,fee:vn,root:_n,mrdcTransactionViewHandler:()=>{var e,n;(Q(!0),X(!0),"EXPRESS_REMOTE_DEPOSIT_CHECK"===Me)&&(te(Le.fee.id),re(null!=(e=Le.fee.txn_type)?e:""));"EXPRESS_REMOTE_DEPOSIT_CHECK_FEE"===Me&&(te(Le.root.id),re(null!=(n=Le.root.txn_type)?n:""))},showBackButton:ie})]}),(0,C.jsx)(u.Divider,{className:"min-h-[1px]"}),He&&null!==Ye&&"DEBIT"===he&&(0,C.jsx)(V,{isPending:fe,reserve_meta:Be,available_balance:Ye,amount:De,id:xe,description:Ce,medium:Oe,cardTxn:Ue,txn_type:Me,type:he,category:Ge,reference_number:Re}),kn&&(0,C.jsx)(ve,{}),!fe&&!ke&&(Ie?[y.A.CARD_TXN_STATUS.DECLINED,y.A.CARD_TXN_STATUS.CANCELED].includes(null==Ue?void 0:Ue.status)?null:(0,C.jsx)(Y.H,{type:pn.toUpperCase(),initialValue:_,handleChange:v}):(0,C.jsx)(h.VT,{label:F.W.category,classNamePrefix:"novo-select-transection-detail",parentClassName:"flex-none",onChange:v,value:_,type:pn,isDropDownImgAtCategory:!0})),mn&&(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)("label",{className:"text-typography-grey capitalize",children:S.A.MESSAGE_FOR_RECIPIENT}),(0,C.jsx)("p",{children:mn})]}),fe&&["ACH_PUSH","ACH_PULL","EXPRESS_ACH"].includes(Me)&&(0,C.jsx)(U,{}),!fe&&["ACH_PUSH","EXPRESS_ACH"].includes(Me)&&un&&(0,C.jsx)(U,{}),"INVOICE_DISPUTE"!==Me&&(0,C.jsx)(q,{}),kn&&(0,C.jsx)(O,{isClose:!1,alwaysShow:!0,children:(0,C.jsxs)("div",{className:"flex-col",children:[(0,C.jsx)("p",{className:"text-body-regular pb-1",children:F.W.important_2}),(0,C.jsx)("p",{className:"text-body-s-regular",children:null==Le||null==(s=Le.keep_check_until_message)?void 0:s.split("<keepCheckUntilDate>").map(((e,n,a)=>(0,C.jsxs)(d.Fragment,{children:[e,n<a.length-1&&(0,C.jsx)("span",{className:"font-medium",children:k()(null==Le?void 0:Le.keep_check_until_date).format(J.XB)})]},`${e}-${n}`)))})]})}),["EXPRESS_REMOTE_DEPOSIT_CHECK_FEE","DOMESTIC_WIRE_FEE","INVOICE_DISPUTE"].includes(Me)&&fe?null:(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)("div",{className:"text-typography-default capitalize",children:F.W.invoice_receipt}),(0,C.jsx)(h.ef,{className:"",title:F.W.other_documents,fileInputName:"receipt",onFileSelect:p,onCloudFileSelect:E,uploadedFiles:Ae,maxAllowedFiles:3,allowedTypes:$.U.DOCUMENTS,fileLoader:T,setFilePreviewID:b,removeFile:M,uploadFileRequest:de,allowDragDrop:!En}),(0,C.jsx)("div",{className:"text-typography-grey text-caption-regular font-light",children:S.A.FILE_UPLOAD_LIMIT})]}),(null!=(r=null==tn||null==(l=tn.edges)?void 0:l.length)?r:0)>0&&(0,C.jsxs)(C.Fragment,{children:["INVOICE_DISPUTE"!==Me&&(0,C.jsx)(u.Divider,{className:"min-h-[1px]"}),(0,C.jsx)(le,{net:an,fee:rn,amt:sn,adjustmentAmount:dn,adjustments:null==ln?void 0:ln.edges,linked:null==tn?void 0:tn.edges,isAutoReconciled:!(null==Ze||!Ze.invoice_payout_id)})]}),!!on&&!(null!=Ze&&Ze.invoice_payout_id)&&(0,C.jsx)(se,{handleLinkInvoice:async()=>{(0,H.sx)(Se),Ee({name:y.A.MODAL.SHOW_INVOICES_LIST_ON_TRANSACTIONS_DETAILS,data:{transaction:c,previousModal:_e.name,previousModalData:_e.data}})}}),fe&&"Check"===Oe&&(0,C.jsxs)("div",{className:"text-body-s-regular flex flex-col gap-4",children:[(0,C.jsx)("p",{className:"text-typography-grey text-center",children:F.W.when_this_check_is_cashed}),(0,C.jsx)("p",{className:"text-typography-grey text-center",children:F.W.if_the_check_is_not_cashed})]}),Pe&&Pe.receipt_url&&(0,C.jsx)("a",{className:"btn btn-ternary btn-regular",href:Pe.receipt_url,download:Pe.transferwise_id,children:(0,C.jsxs)("div",{className:"flex items-center gap-2",children:[(0,C.jsx)(I.Int,{name:"download"}),(0,C.jsx)("div",{children:F.W.download_receipt})]})}),((null==Ue||null==(o=Ue.events)?void 0:o.length)||0)>0&&(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)("label",{className:"text-typography-grey capitalize",children:F.W.transaction_updates}),(0,C.jsx)(R,{data:(e=>e.map((e=>({content:(0,C.jsxs)("div",{className:"timeline-event",children:[(0,C.jsx)("span",{className:"timeline-event-title",children:(e.description||"").split("<XXX>").map((e=>e.trim())).reduce(((n,a)=>(0,C.jsxs)(C.Fragment,{children:[n," ",(0,C.jsx)("b",{children:(0,x.ye)(e.amount)})," ",a]})))}),(0,C.jsx)("span",{className:"timeline-event-date",children:k()(e.created_at).format(J.XB)})]})}))))(Ue.events)})]}),"CARD"!==Me?(0,C.jsx)("div",{className:"text-typography-grey text-caption-regular mt-auto self-center font-light",children:(0,P.catalogueText)("activity","transaction_id_label",{id:Re||"N.A."})}):(0,C.jsx)("div",{className:"text-typography-grey text-caption-regular mt-auto self-center font-light",children:(0,P.catalogueText)("activity","transaction_id_label",{id:Ue?Ue.internal_id||Ue.id:"N.A."})})]})})]});var Sn};var ge=a(27581),Te=a(33482);function ke({height:e,isOverlay:n}){return(0,C.jsx)("div",{className:n?"overlay-loader":"placeholder-loader",style:{height:e},"data-test-id":"sectional-loader",children:(0,C.jsx)(I.Int,{name:"novo-logo-filled",size:"2x",className:(n?"fill-default":"fill-dark")+" animate-pulse"})})}function Ie({info:e,className:n,isDivided:a=!0,labelKey:i="label",valueKey:t="text",valueSuffix:s="",labelSuffix:r=""}){return(e||[]).length&&(0,C.jsx)("div",{className:`flex flex-col ${a?"gap-2":"gap-4"} ${n}`,children:e.map(((n,d)=>{const l=(0,x.Lr)(d,null==e?void 0:e.length);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"text-body-s-regular flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"text-typography-grey capitalize",children:[n[i],r]}),(0,C.jsxs)("div",{className:"text-typography-default flex flex-col items-end gap-1",children:[n[t],s," "]})]},d),a&&!l&&(0,C.jsx)(u.Divider,{})]})}))})}
1Ie.propTypes={info:r().array,labelKey:r().string,valueKey:r().string};const ye=Ie;var Se=a(45335),Ae=a(22348);const fe=function({onBack:e,onCancel:n,headerText:a}){return(0,C.jsx)(D.Ay.Header,{children:(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",onClick:e,children:[(0,C.jsx)("div",{className:"flex items-center",children:(0,C.jsx)(I.Int,{name:"chevron-left",size:"md",color:"default"})}),(0,C.jsx)("div",{className:"text-typography-grey text-caption-regular",children:F.W.BACK})]}),(0,C.jsx)(u.Header3,{className:"text-typography-default",children:a})]}),(0,C.jsx)("button",{className:"text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled cursor-pointer self-end",onClick:e=>{e.preventDefault(),e.stopPropagation(),null==n||n()},children:F.W.CANCEL})]})})};function xe({children:e}){return(0,C.jsx)(u.Card,{background:"primary",children:(0,C.jsx)(u.CardContent,{className:"flex-col gap-4",children:e})})}function he({questionText:e,radioToggleProps:n}){return(0,C.jsxs)(xe,{children:[e&&(0,C.jsx)(u.Header6,{className:"",children:e}),(0,C.jsx)(Se.A.ToggleList,Object.assign({},n))]})}function Ce({questionText:e,description:n,label:a,textAreaProps:i}){return(0,C.jsxs)(xe,{children:[e&&(0,C.jsx)(u.Header6,{className:"",children:e}),n&&(0,C.jsx)("p",{className:"text-body-s-regular",children:n}),(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)("label",{className:"capitalize",children:a}),(0,C.jsx)(W.A,Object.assign({},i))]})]})}function Oe({questionText:e,description:n,label:a,cardEnabled:i=!0,inputProps:t={}}){const s="dollar"===t.icon?u.CurrencyIconInput:Ae.Ay,r=(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.jsx)(u.Header6,{className:"",children:e}),n&&(0,C.jsx)("p",{className:"text-body-s-regular",children:n}),(0,C.jsx)(s,{label:t.label,placeholder:t.placeholder,name:t.name,value:t.value,onValueChange:t.onChange,onBlur:t.onBlur,error:t.error,showError:t.true,type:t.type,max:t.max})]});return i?(0,C.jsx)(xe,{children:r}):r}var De=a(18721),be=a(93415);function Re({isActive:e,onNo:n,onYes:a}){return e&&(0,C.jsxs)(l().Fragment,{children:[(0,C.jsx)("style",{children:"\n a.model_close{\n display: none;\n }\n "}),(0,C.jsxs)("div",{className:"bg-fill-default absolute flex h-full w-full flex-col",children:[(0,C.jsx)(D.Ay.Header,{children:(0,C.jsx)(u.Header3,{className:"text-typography-default",children:F.W.cancel_ach_report})}),(0,C.jsxs)(D.Ay.Content,{className:"flex-col gap-8",children:[(0,C.jsx)("p",{className:"text-typography-grey",children:(0,C.jsx)(be.Trans,{i18nKey:"if_you_cancel_you_will_lose_progress",ns:"activity",components:{br:(0,C.jsx)("br",{})}})}),(0,C.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,C.jsx)(L.d,{type:"button",buttonVariant:"secondary",onClick:n,children:F.W.no}),(0,C.jsx)(L.d,{type:"button",buttonVariant:"primary",onClick:a,children:F.W.yes})]})]})]})]},"LAYOVER_CANCEL_CONFIRMATION")}Re.propTypes={};const Le=Re;function Fe({isActive:e,onNo:n,onYes:a}){return e&&(0,C.jsx)(l().Fragment,{children:(0,C.jsx)(u.Card,{background:"secondary",children:(0,C.jsxs)(u.CardContent,{className:"flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,C.jsxs)("svg",{width:"31",height:"30",viewBox:"0 0 31 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("path",{d:"M3.46234 5.2945C2.93911 7.35569 2.82735 13.0375 8.16645 20.2293C13.5055 27.421 18.9766 28.9582 21.101 29.0538C23.2255 29.1494 24.7965 28.062 25.8536 27.1964C25.9116 27.1476 25.9978 27.0721 26.0893 26.9753C26.7243 26.3077 27.0839 25.6966 24.8643 22.7069C22.4957 19.5163 21.0255 20.1906 20.3759 20.494C20.3759 20.494 19.416 21.0605 18.963 21.2584C18.6681 21.3869 18.3776 21.4565 17.9931 21.3997C17.265 21.2942 15.9063 21.5127 12.8291 17.5023C12.7076 17.3387 12.5941 17.1806 12.4825 17.0251C12.3656 16.8754 12.2472 16.7211 12.126 16.5553C9.17552 12.4489 9.77746 11.2137 9.88755 10.484C9.94439 10.0996 10.0951 9.84159 10.3035 9.59653C10.6236 9.22233 11.444 8.46525 11.444 8.46525C11.9224 7.93128 12.9932 6.71908 10.6246 3.52853C8.40687 0.541255 7.71567 0.708311 6.89296 1.12297C6.7738 1.18259 6.67687 1.24109 6.61306 1.28462C5.48114 2.04419 3.98309 3.23516 3.46234 5.2945Z",fill:"#424242"}),(0,C.jsx)("path",{d:"M24.186 23.0656C26.4981 26.1905 25.5388 27.4545 25.5388 27.4545C26.1332 27.315 28.3301 26.1148 25.3979 22.1678C22.4658 18.2208 20.6779 19.9692 20.3724 20.4979C20.3727 20.4957 21.8642 19.946 24.186 23.0656Z",fill:"#616161"}),(0,C.jsx)("path",{d:"M5.89282 10.5137C6.24357 11.9029 7.1759 14.8966 10.0801 18.8085C12.9843 22.7205 15.5801 24.4792 16.8084 25.217C17.2117 25.4598 17.7116 25.1386 17.6664 24.6685C17.5842 23.7912 17.7281 22.5192 18.8638 21.3762C18.9025 21.3378 18.9305 21.2978 18.961 21.2559C18.961 21.2559 18.4369 21.472 17.993 21.3997C17.2926 21.2851 15.6774 21.3134 12.4898 17.0196C9.30212 12.7259 9.79439 11.1876 9.88737 10.4841C9.94667 10.0382 10.3051 9.59906 10.3051 9.59906C10.2587 9.61427 10.2099 9.63133 10.1619 9.65734C8.73945 10.4115 7.47991 10.1833 6.66394 9.85081C6.22884 9.67393 5.77711 10.0574 5.89282 10.5137Z",fill:"#616161"}),(0,C.jsx)("path",{d:"M10.0863 4.07351C7.76451 0.953896 6.27667 1.50856 6.27667 1.50856C6.58215 0.979918 8.36671 -0.775604 11.2964 3.17322C14.226 7.12205 12.035 8.32754 11.4406 8.46697C11.4428 8.46729 12.4006 7.19866 10.0863 4.07351Z",fill:"#616161"}),(0,C.jsx)("path",{d:"M7.72512 1.00994C7.5975 1.1566 7.57075 1.32258 7.68454 1.47844C7.79097 1.62438 8.31999 1.85267 8.79096 2.14521C9.27393 2.44614 9.51895 2.78913 9.7846 2.82841C9.9509 2.85299 10.1381 2.8255 10.2496 2.69853C10.3558 2.5774 10.3693 2.39622 10.3213 2.24346C10.2733 2.0907 10.1736 1.95899 10.0655 1.83928C9.62819 1.34869 8.35792 0.282513 7.72512 1.00994Z",fill:"#757575"}),(0,C.jsx)("path",{d:"M4.44425 6.95352C4.31923 6.12729 4.56496 5.06235 4.960
174 4.25133C5.54333 3.05743 6.20837 2.87326 6.5085 2.93308C6.88142 3.00808 7.17323 3.31827 7.02844 3.81991C6.92104 4.18804 6.54911 4.47954 6.17422 4.80592C5.52306 5.37394 5.23151 6.21141 4.89059 6.97979C4.74727 7.3073 4.48705 7.23131 4.44425 6.95352Z",fill:"#616161"}),(0,C.jsx)("path",{d:"M25.2183 23.8515C25.7544 24.8378 25.9563 25.159 26.1464 25.2908C26.4369 25.4905 26.6505 25.3146 26.7052 25.1241C26.7463 24.9801 26.7292 24.8275 26.6978 24.6816C26.5747 24.0808 26.2799 23.3883 25.8473 22.9404C25.6387 22.7241 25.3644 22.6836 25.1603 22.9447C24.9499 23.2182 25.0726 23.5828 25.2183 23.8515Z",fill:"#757575"}),(0,C.jsx)("path",{d:"M22.5094 26.9934C23.0007 26.7306 23.4356 26.3711 23.9254 26.1037C24.0935 26.0116 24.306 25.9326 24.4676 26.0338C24.6194 26.1268 24.7195 26.4352 24.6318 26.7444C24.3374 27.7955 22.8725 28.1947 22.1477 28.231C21.2026 28.2789 20.0447 27.9907 20.1331 27.7058C20.2015 27.482 20.6643 27.5614 21.3168 27.4174C21.7297 27.3261 22.1355 27.1941 22.5094 26.9934Z",fill:"#616161"})]}),(0,C.jsx)(u.Header4,{className:"ml-4",children:F.W.contact_the_merchant_first})]}),(0,C.jsx)("p",{className:"text-body-s-regular",children:F.W.we_highly_recommend_contacting_the_merchant}),(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(L.d,{type:"button",buttonVariant:"primary",onClick:a,children:F.W.continue_to_report}),(0,C.jsx)(L.d,{type:"button",buttonVariant:"secondary",onClick:n,children:F.W.i_will_contact_the_merchant_first})]})]})})},"CONTACT_MERCHANT_FIRST")}Fe.propTypes={};const Pe=Fe,je=({refNumber:e,onDone:n})=>(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(D.Ay.Header,{children:(0,C.jsx)(u.Header3,{className:"text-typography-default",children:F.W.we_have_your_report_2})}),(0,C.jsxs)(D.Ay.Content,{className:"flex-col gap-8",children:[(0,C.jsx)("p",{className:"",children:F.W.thank_you_for_providing_additional_details_2}),(0,C.jsx)("div",{className:"dispute_timeline",children:(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)("div",{className:"mt-1",children:"\ud83d\udcc1\ufe0f"}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(u.Header6,{children:e}),(0,C.jsx)("p",{className:"text-typography-grey",children:F.W.you_can_use_this_reference_number})]})]})}),(0,C.jsx)(u.Card,{background:"secondary",children:(0,C.jsxs)(u.CardContent,{className:"flex-col",children:[(0,C.jsxs)("span",{className:"mb-1 font-bold",children:[F.W.note_2," "]}),(0,C.jsx)("p",{className:"text-typography-grey",children:F.W.it_generally_takes_up_to_5})]})}),(0,C.jsx)(L.d,{type:"button",buttonVariant:"primary",onClick:n,children:F.W.done})]})]}),Me="DisputeDetails",Ue="ReportDetails",we="TermsAndConditions",Ve="Success",Be="ID",Ye="Text",Ge="Number",He="File",We="Date";function Ke(){return k()(new Date).format("YYYY-MM-DD")}function qe(e=0){return e&&+e<=0?F.W.must_be_greater_than_0:e&&+e>=1e7?F.W.should_be_less_than_7_characters:null}function $e(e=""){return e.length>100?F.W.must_be_less_that_100_characters:null}function ze(e){if(e&&k()(e).isValid){const n=k()("01-01-1906"),a=k()(Ke()),i=k()(e);return i-n>=0&&i<=a}return!1}function Qe({onBack:e,QnAConfig:{questions:n,answers:a},id:i,amount:t,created_date:s,more_info:r,authState:{userInfo:o}={}}){const{closeModal:c}=(0,u.useModal)(),{UnAuthorizedDebitAction:m}=(0,j.rZ)(),[_,v]=(0,d.useState)(Me),[N,p]=(0,d.useState)(!1),[E,g]=(0,d.useState)(!1),[T,k]=(0,d.useState)(null),[I,y]=(0,d.useState)([]),[S,A]=(0,d.useState)(!1),[f,x]=(0,d.useState)({}),[h,O]=(0,d.useState)(0),b=function({disputeAnswers:e,merchantContactContinue:n,tncValues:a}){var i;const t={isVisible:!0,screen:Me,reqType:Be},s={isVisible:"COMPANY_RELATION__NO"===e.COMPANY_RELATION,screen:Ue,reqType:Be},r={isVisible:"COMPANY_RELATION__YES"===e.COMPANY_RELATION,screen:Ue,reqType:Be},d={isVisible:r.isVisible&&"CONTACT_COMPANY__YES"===e.CONTACT_COMPANY,screen:Ue,reqType:Ye},l={isVisible:r.isVisible&&("CONTACT_COMPANY__YES"===e.CONTACT_COMPANY||"CONTACT_COMPANY__NO"===e.CONTACT_COMPANY&&!0===n),screen:Ue,reqType:Be},o={isVisible:l.isVisible&&"SIGN_AUTH__YES"===e.SIGN_AUTH,screen:Ue,reqType:Be},c={isVisible:o.isVisible&&"FILE_REPORT__WHY__I_AUTH"===e.FILE_REPORT__WHY,screen:Ue,reqType:Be},m={isVisible:c.isVisible&&"AUTH_DEBIT__BUT__AMOUNT_DIFFER"===e.AUTH_DEBIT__BUT,screen:Ue,reqType:Ge},u={isVisible:c.isVisible&&"AUTH_DEBIT__BUT__DATE_DIFFER"===e.AUTH_DEBIT__BUT,screen:Ue,reqType:We},_={isVisible:c.isVisible&&"AUTH_DEBIT__BUT__PAYEE_DIFFER"===e.AUTH_DEBIT__BUT,screen:Ue,reqType:Ye},v={isVisible:o.isVisible&&"FILE_REPORT__WHY__OTHER"===e.FILE_REPORT__WHY,screen:Ue,reqType:Ye},N={isVisible:o.isVisible&&"FILE_REPORT__WHY__I_REVOKE"===e.FILE_REPORT__WHY,screen:Ue,reqType:We},p={isVisible:o.isVisible&&"FILE_REPORT__WHY__I_REVOKE"===e.FILE_REPORT__WHY,screen:Ue,reqType:Ye},E={isVisible:o.isVisible&&"FILE_REPORT__WHY__I_REVOKE"===e.FILE_REPORT__WHY,screen:Ue,reqType:He},g={isVisible:!0,isEnabled:!!e.COMPANY_RELATION},T="CONTACT_COMPANY__YES"===e.CONTACT_COMPANY&&e.CALL_NOT_RESOLVE&&!$e(e.CALL_NOT_RESOLVE)||"CONTACT_COMPANY__NO"===e.CONTACT_COMPANY;return{COMPANY_RELATION:t,AMOUNT_FAMILIAR:s,CONTACT_COMPANY:r,CALL_NOT_RESOLVE:d,SIGN_AUTH:l,FILE_REPORT__WHY:o,AUTH_DEBIT__BUT:c,AMOUNT_DIFFER:m,DATE_DIFFER:u,PAYEE_DIFFER:_,FILE_REPORT__OTHER_REASON:v,REVOKE_AUTH__WHEN:N,REVOKE_AUTH__HOW:p,REVOKE_AUTH__PROOF:E,S1_SUBMIT_BUTTON:g,S2_SUBMIT_BUTTON:{isVisible:!0,isEnabled:!!e.AMOUNT_FAMILIAR||"SIGN_AUTH__NO"===e.SIGN_AUTH||T&&e.REVOKE_AUTH__WHEN&&ze(e.REVOKE_AUTH__WHEN)&&e.REVOKE_AUTH__HOW&&!$e(e.REVOKE_AUTH__HOW)&&(null==(i=e.REVOKE_AUTH__PROOF)?void 0:i.length)>0||T&&e.FILE_REPORT__OTHER_REASON&&!$e(e.FILE_REPORT__OTHER_REASON)||T&&e.PAYEE_DIFFER&&!$e(e.PAYEE_DIFFER)||T&&e.DATE_DIFFER&&ze(e.DATE_DIFFER)||T&&e.AMOUNT_DIFFER&&!qe(e.AMOUNT_DIFFER)},S3_SUBMIT_BUTTON:{isVisible:!0,isEnabled:a.includes("TNC_1")&&a.includes("TNC_2")}}}({disputeAnswers:f,merchantContactContinue:S,tncValues:I}),R=e=>e&&!ze(e)?F.W.must_be_a_date_between_01:null;(0,d.useEffect)((()=>
1{if(0===h)return;const e={};Object.keys(f).forEach((n=>{e[n]=b[n].isVisible?f[n]:""})),x(Object.assign({},e))}),[h]);const M=({questionId:e,answerValue:n})=>{"CONTACT_COMPANY"===e&&"CONTACT_COMPANY__YES"===n&&A(!1),x(Object.assign({},f,{[e]:n})),O(h+1)},U=()=>null==e?void 0:e(),w=()=>v(Ue),V=({questionKey:e,answerKeys:i})=>({questionText:n[e],radioToggleProps:{value:f[e],onChange:n=>M({questionId:e,answerValue:n.target.value}),list:i.map((e=>({label:a[e],value:e})))}}),B={[Me]:{header:(0,C.jsx)(fe,{onBack:U,onCancel:()=>p(!0),headerText:F.W.report_unauthorized_debit})},[Ue]:{header:(0,C.jsx)(fe,{onBack:()=>{A(!1),v(Me)},onCancel:()=>p(!0),headerText:F.W.report_details})},[we]:{header:(0,C.jsx)(fe,{onBack:w,onCancel:()=>p(!0),headerText:F.W.report_details})},[Ve]:{header:null}},Y=Math.abs(t).toFixed(2),G=t>=0?`$${t}`:`-$${Y}`,{first_name:H,last_name:W,account_number:K}=o||{},q=(null==r?void 0:r.merchant_name)||"",$=[s?{label:F.W.DATE_POSTED,text:s}:null,t?{label:F.W.amount_debited,text:G}:null,q?{label:F.W.company_name_debiting_account,text:q}:null,{label:F.W.receivers_name,text:`${H} ${W}`},{label:F.W.receivers_account_number,text:K}].filter((e=>e));return(0,C.jsxs)("div",{className:"relative flex flex-col",children:[_===Me&&(0,C.jsxs)(l().Fragment,{children:[B[Me].header,(0,C.jsxs)(D.Ay.Content,{className:"flex-col gap-8",children:[(0,C.jsx)(ye,{className:"mt-5",info:$}),b.COMPANY_RELATION.isVisible&&(0,C.jsx)(he,Object.assign({},V({questionKey:"COMPANY_RELATION",answerKeys:["COMPANY_RELATION__YES","COMPANY_RELATION__NO"]}))),b.S1_SUBMIT_BUTTON.isVisible&&(0,C.jsx)(L.d,{type:"button",buttonVariant:"primary",disabled:!b.S1_SUBMIT_BUTTON.isEnabled,onClick:w,children:F.W.continue})]})]},"DISPUTE_DETAILS"),_===Ue&&(0,C.jsxs)(l().Fragment,{children:[B[Ue].header,(0,C.jsxs)(D.Ay.Content,{className:"flex-col gap-8",children:[b.AMOUNT_FAMILIAR.isVisible&&(0,C.jsx)(he,Object.assign({},V({questionKey:"AMOUNT_FAMILIAR",answerKeys:["AMOUNT_FAMILIAR__YES","AMOUNT_FAMILIAR__NO"]}))),b.CONTACT_COMPANY.isVisible&&(0,C.jsx)(he,Object.assign({},V({questionKey:"CONTACT_COMPANY",answerKeys:["CONTACT_COMPANY__YES","CONTACT_COMPANY__NO"]}))),b.CALL_NOT_RESOLVE.isVisible&&(0,C.jsx)(Ce,{questionText:n.CALL_NOT_RESOLVE,description:F.W.the_details_provided_here_will,label:F.W.enter_details_2,textAreaProps:{error:$e(f.CALL_NOT_RESOLVE),value:f.CALL_NOT_RESOLVE,placeholder:F.W.please_enter_details_here,onChange:e=>M({questionId:"CALL_NOT_RESOLVE",answerValue:e.target.value||""})}}),(0,C.jsx)(Pe,{isActive:"CONTACT_COMPANY__NO"===f.CONTACT_COMPANY&&!0!==S,onYes:()=>A(!0),onNo:U}),b.SIGN_AUTH.isVisible&&(0,C.jsx)(he,Object.assign({},V({questionKey:"SIGN_AUTH",answerKeys:["SIGN_AUTH__YES","SIGN_AUTH__NO"]}))),b.FILE_REPORT__WHY.isVisible&&(0,C.jsx)(he,Object.assign({},V({questionKey:"FILE_REPORT__WHY",answerKeys:["FILE_REPORT__WHY__I_AUTH","FILE_REPORT__WHY__I_REVOKE","FILE_REPORT__WHY__OTHER"]}))),b.AUTH_DEBIT__BUT.isVisible&&(0,C.jsx)(he,Object.assign({},V({questionKey:"AUTH_DEBIT__BUT",answerKeys:["AUTH_DEBIT__BUT__AMOUNT_DIFFER","AUTH_DEBIT__BUT__DATE_DIFFER","AUTH_DEBIT__BUT__PAYEE_DIFFER"]}))),b.AMOUNT_DIFFER.isVisible&&(0,C.jsx)(Oe,{questionText:n.AMOUNT_DIFFER,label:F.W.authorized_amount_2,inputProps:{error:qe(f.AMOUNT_DIFFER),pre:(0,C.jsx)("span",{className:"ml-2",children:"$"}),icon:"dollar",type:"number",placeholder:F.W.please_enter_authorized_amount,value:f.AMOUNT_DIFFER,onChange:e=>{var n;const a=null!=(n=null==e?void 0:e.floatValue)?n:0;if(a&&`${a}`.includes(".")){if((`${a}`.split(".")[1]||"").length>2)return}M({questionId:"AMOUNT_DIFFER",answerValue:a.toString()})}}}),b.DATE_DIFFER.isVisible&&(0,C.jsx)(Oe,{questionText:n.DATE_DIFFER,label:F.W.authorization_date,inputProps:{type:"date",placeholder:F.W.dd_mm_yyyy,error:R(f.DATE_DIFFER),value:f.DATE_DIFFER,max:Ke(),onChange:e=>M({questionId:"DATE_DIFFER",answerValue:e.target.value})}}),b.PAYEE_DIFFER.isVisible&&(0,C.jsx)(Oe,{questionText:n.PAYEE_DIFFER,label:F.W.name_of_recipient,inputProps:{error:$e(f.PAYEE_DIFFER),type:"text",placeholder:F.W.please_enter_name_of_recipient,value:f.PAYEE_DIFFER,onChange:e=>M({questionId:"PAYEE_DIFFER",answerValue:e.target.value})}}),b.FILE_REPORT__OTHER_REASON.isVisible&&(0,C.jsx)(Ce,{questionText:n.FILE_REPORT__OTHER_REASON,label:F.W.reason,textAreaProps:{error:$e(f.FILE_REPORT__OTHER_REASON),value:f.FILE_REPORT__OTHER_REASON,placeholder:F.W.please_enter_your_reason,onChange:e=>M({questionId:"FILE_REPORT__OTHER_REASON",answerValue:e.target.value||""})}}),b.REVOKE_AUTH__WHEN.isVisible&&b.REVOKE_AUTH__HOW.isVisible&&b.REVOKE_AUTH__PROOF.isVisible&&(0,C.jsxs)(xe,{children:[(0,C.jsx)(Oe,{cardEnabled:!1,questionText:n.REVOKE_AUTH__WHEN,label:F.W.date_of_revoke,inputProps:{type:"date",error:R(f.REVOKE_AUTH__WHEN),placeholder:F.W.dd_mm_yyyy,value:f.REVOKE_AUTH__WHEN,max:Ke(),onChange:e=>M({questionId:"REVOKE_AUTH__WHEN",answerValue:e.target.value})}}),(0,C.jsx)(Oe,{cardEnabled:!1,questionText:n.REVOKE_AUTH__HOW,label:F.W.method_of_revoke,inputProps:{error:$e(f.REVOKE_AUTH__HOW),type:"text",placeholder:F.W.email_phone_call_etc,value:f.REVOKE_AUTH__HOW,onChange:e=>M({questionId:"REVOKE_AUTH__HOW",answerValue:e.target.value})}}),(0,C.jsx)(u.Header6,{className:"mb-3.5",children:n.REVOKE_AUTH__PROOF}),(0,C.jsx)(De.A,{maxAllowedFiles:1,title:F.W.proof_of_authorization_revoke,fileInputName:"receipt",entity:"UNAUTHORIZED_DEBIT",documentType:"RECEIPT",filesList:f.REVOKE_AUTH__PROOF||[],onFileListChange:e=>M({questionId:"REVOKE_AUTH__PROOF",answerValue:e})})]}),b.S2_SUBMIT_BUTTON.isVisible&&(0,C.jsx)(L.d,{type:"button",buttonVariant:"primary",disabled:!b.S2_SUBMIT_BUTTON.isEnabled,onClick:()=>v(we),children:F.W.continue})]})]},"REPORT_DETAILS"),_===we&&(0,C.jsxs)(l().Fragment,{children:[B[we].header,(0,C.jsxs)(D.Ay.Content,{className:"flex-col gap-4",children:[(0,C.jsx)(Se.A.SelectionList,{values:I,onChange:({values:e})=>y(e),list:[{label:(0,C.jsxs)("div",{children:[F.W.i_state_that_i_have_examined,(0,C.jsxs)("ul",{className:"my-4 list-disc pl-2",children:[(0,C.jsx)("li",{children:F.W.i_acknowledge_that_unauthorized_corporate_customer})," "]})]}),value:"TNC_1"},{label:(0,C.jsx)("div",{children:F.W.i_further_state_that_the_debit}),value:"TNC_2"}]}),b.S2_SUBMIT_BUTTON.isVisible&&(0,C.jsx)(L.d,{type:"button",buttonVariant:"primary",className:"mt-4",disabled:E||!b.S3_SUBMIT_BUTTON.isEnabled,onClick:()=>{const e=[];Object.keys(f).forEach((n=>{if(f[n]){var i;const t=null==(i=b[n])?void 0:i.reqType;t===He&&f[n][0]&&f[n][0].file_name&&f[n][0].key?e.push({question:n,answer:[f[n][0].file_name,f[n][0].key]}):t===Be?e.push({question:n,answer:[a[f[n]]]}):e.push({question:n,answer:[f[n]]})}})),g(!0),(async()=>{const n=await m.submitReport({data:{type:"UNAUTHORIZED_DEBIT",description:F.W.unauthorized_debit,product:"ACH_PUSH",meta:{unauthorized_debit:{transaction_id:i,form_data:e}}}});return n?n.hasError?u.toast.error({message:n.message}):(k(n.data),void v(Ve)):u.toast.error({message:F.W.request_is_successfully_but_something_went})})().catch((e=>{console.error(e),u.toast.error((0,P.catalogueText)("activity","something_went_wrong_tr
1y_again_later"))})).finally((()=>g(!1)))},children:F.W.submit_report})]})]},"TERMS_CONDITIONS"),_===Ve&&(0,C.jsx)(l().Fragment,{children:T&&(0,C.jsx)(je,{refNumber:(null==T?void 0:T.service_request_code)||"NA",onDone:()=>{c()}})},"SUCCESS_REPORT"),(0,C.jsx)(Le,{isActive:N,onNo:()=>p(!1),onYes:()=>{p(!1),U()}})]})}function Xe({onBack:e,id:n,amount:a,created_date:i,more_info:t}){const{UnAuthorizedDebitAction:s}=(0,j.rZ)(),{authState:r}=(0,d.useContext)(f.cy),[o,c]=(0,d.useState)(!1),[m,u]=(0,d.useState)(null);return l().useEffect((()=>{c(!0),(async()=>{const e=await s.fetchConfig();if(!e)return!1;u(e)})().catch((e=>{console.error(e)})).finally((()=>{c(!1)}))}),[]),(0,C.jsxs)(C.Fragment,{children:[o?(0,C.jsx)(ke,{height:"60px"}):null,m?(0,C.jsx)(Qe,{onBack:e,QnAConfig:m,id:n,amount:a,created_date:i,more_info:t,authState:r}):null]})}Xe.propTypes={};const Ze=Xe;var Je=a(64388);const en={MERCHANT_CANCELED:"MerchantCancelledTxn",WRONG_ITEM_RECEIVED:"WrongDefectiveItem",MERCHANDISE_OR_SERVICE_NOT_RECEIVED:"GoodsNotReceived",CREDIT_NOT_PROCESSED:"CreditNotProcessed",TRANSACTION_AMOUNT_DIFFERS:"TransactionAmountDiffers",LATE_PRESENTMENT:"LatePresentment",TRANSACTION_NOT_RECOGNIZED:"DontRecognizeTxn",OTHER_REASONS:"OtherReasons"},nn={INCORRECT_AMOUNT:"AdditionalDisputeInfo",DUPLICATE_CHARGE:"AdditionalDisputeInfo",ITEM_DAMAGED_OR_RETURNED:"AdditionalDisputeInfo",CANCELED_SERVICE:"AdditionalDisputeInfo",MERCHANDISE_OR_SERVICE_NOT_RECEIVED:"AdditionalDisputeInfo",CARD_LOST_STOLEN:"AdditionalDisputeInfo",CARD_PRESENT:"AdditionalDisputeInfo"},an=[{get label(){return(0,P.catalogueText)("core-shared","incorrect_amount_charged")},description:"",value:"INCORRECT_AMOUNT",issue:"CHARGE_DISPUTE"},{get label(){return(0,P.catalogueText)("core-shared","duplicate_charge")},description:"",value:"DUPLICATE_CHARGE",issue:"CHARGE_DISPUTE"},{get label(){return(0,P.catalogueText)("core-shared","item_damaged_or_returned")},description:"",value:"ITEM_DAMAGED_OR_RETURNED",issue:"CHARGE_DISPUTE"},{get label(){return(0,P.catalogueText)("core-shared","canceled_service_or_items")},description:"",value:"CANCELED_SERVICE",issue:"CHARGE_DISPUTE"},{get label(){return(0,P.catalogueText)("core-shared","merchandise_not_received")},description:"",value:"MERCHANDISE_OR_SERVICE_NOT_RECEIVED",issue:"CHARGE_DISPUTE"},{get label(){return(0,P.catalogueText)("core-shared","card_lost_or_stolen")},description:"",value:"CARD_LOST_STOLEN",issue:"UNAUTHORIZED_TRANSACTION"},{get label(){return(0,P.catalogueText)("core-shared","i_have_my_card")},description:"",value:"CARD_PRESENT",issue:"UNAUTHORIZED_TRANSACTION"},{get label(){return(0,P.catalogueText)("core-shared","merchant_canceled_the_transaction")},get description(){return(0,P.catalogueText)("core-shared","merchant_canceled_a_recurring_or_digital")},value:"MERCHANT_CANCELED",issue:"OTHER"},{get label(){return(0,P.catalogueText)("core-shared","wrong_or_defective_item_received")},get description(){return(0,P.catalogueText)("core-shared","goods_or_services_received_were_defective")},value:"WRONG_ITEM_RECEIVED",issue:"OTHER"},{get label(){return(0,P.catalogueText)("core-shared","goods_or_services_weren_t_received")},get description(){return(0,P.catalogueText)("core-shared","goods_or_services_were_never_received")},value:"MERCHANDISE_OR_SERVICE_NOT_RECEIVED",issue:"OTHER"},{get label(){return(0,P.catalogueText)("core-shared","credit_not_processed")},get description(){return(0,P.catalogueText)("core-shared","the_merchant_is_supposed_to_return")},value:"CREDIT_NOT_PROCESSED",issue:"OTHER"},{get label(){return(0,P.catalogueText)("core-shared","transaction_amount_differs")},get description(){return(0,P.catalogueText)("core-shared","settled_transaction_amount_does_not_match")},value:"TRANSACTION_AMOUNT_DIFFERS",issue:"OTHER"},{get label(){return(0,P.catalogueText)("core-shared","late_presentment")},get description(){return(0,P.catalogueText)("core-shared","the_transaction_was_not_settled_within")},value:"LATE_PRESENTMENT",issue:"OTHER"},{get label(){return(0,P.catalogueText)("core-shared","don_t_recognize_the_transaction")},get description(){return(0,P.catalogueText)("core-shared","you_don_t_recognize_this_transaction")},value:"TRANSACTION_NOT_RECOGNIZED",issue:"OTHER"},{get label(){return(0,P.catalogueText)("core-shared","other_reasons")},get description(){return(0,P.catalogueText)("core-shared","not_elsewhere_classified")},value:"OTHER_REASONS",issue:"OTHER"}],tn=[{get label(){return(0,P.catalogueText)("core-shared","charge_dispute")},value:"CHARGE_DISPUTE"},{get label(){return(0,P.catalogueText)("core-shared","unauthorized_transaction")},value:"UNAUTHORIZED_TRANSACTION"}];const sn=function({onSubmitForm:e,FormComponents:n,hookForm:a}){return(0,C.jsxs)(C.Fragment,{children:[n.DisputeTxnHeader,(0,C.jsxs)(D.Ay.Content,{className:"h-full flex-col gap-6",children:[n.TxnInfoList,(0,C.jsx)(o.Op,Object.assign({},a,{children:(0,C.jsxs)("form",{onSubmit:a.handleSubmit((({internal_reason:n})=>{e({internal_reason:n})})),className:"flex flex-col gap-6",children:[n.DisputeReasons,(0,C.jsx)(u.Button,{type:"submit",buttonVariant:"primary","data-test-id":"dispute-reason-next",children:F.W.next})]})}))]})]})};const rn=function({loader:e,FormComponents:n,FileUploader:a,hookForm:i,uploadedFiles:t,onSubmitForm:s}){const{handleSubmit:r,formState:d}=i,{isSubmitting:l}=d;return(0,C.jsxs)(C.Fragment,{children:[n.DisputeDetailsHeader,(0,C.jsx)(D.Ay.Content,{className:"h-full flex-col gap-6",children:(0,C.jsx)(o.Op,Object.assign({},i,{children:(0,C.jsxs)("form",{className:"flex flex-col gap-6",onSubmit:r((e=>{s(e)})),children:[n.DescriptionInput,(0,C.jsx)("h5",{className:" ",children:F.W.please_provide_the_following_pieces_of}),a.PaymentSubscription,n.DetailsInput,(0,C.jsx)("p",{className:" ",children:F.W.please_provide_evidence_of_an_attempt}),a.AttemptToResolveMerchant,(0,C.jsx)("p",{className:" ",children:F.W.please_provide_the_evidence_of_cancelation}),a.EvidenceOfCancellation,(0,C.jsx)("p",{className:" ",children:F.W.please_provide_evidence_of_an_attempt_2}),a.AttemptToReturnItem,(0,C.jsx)(u.Button,{type:"submit",buttonVariant:"primary",disabled:e||l||!t.re
1ceiptFiles.length||!t.merchantProofFiles.length||!t.cancelationEvidenceFiles.length,"data-test-id":"merchant-cancelled-txn-next",children:F.W.next})]})}))})]})};const dn=function({loader:e,FormComponents:n,FileUploader:a,hookForm:i,uploadedFiles:t,onSubmitForm:s}){return(0,C.jsxs)(C.Fragment,{children:[n.DisputeDetailsHeader,(0,C.jsx)(D.Ay.Content,{className:"h-full flex-col gap-6",children:(0,C.jsx)(o.Op,Object.assign({},i,{children:(0,C.jsxs)("form",{className:"flex flex-col gap-6",onSubmit:i.handleSubmit((e=>{s(e)})),children:[n.DisputeInput,(0,C.jsx)("p",{className:" ",children:F.W.please_give_us_a_brief_description}),(0,C.jsx)("div",{className:"row",children:(0,C.jsx)("div",{className:"col",children:(0,C.jsx)("div",{className:"form-group",children:n.DescriptionInput})})}),(0,C.jsx)("h5",{className:"",children:F.W.please_provide_evidence_of_the_difference}),a.ShowOriginalOrder,a.ShowReceivedOrder,(0,C.jsx)(u.Button,{"data-test-id":"next",type:"submit",buttonVariant:"primary",disabled:e||i.formState.isSubmitting||!t.originalOrderFiles.length||!t.orderReceivedFiles.length,className:"w-full",children:F.W.next})]})}))})]})};const ln=function({loader:e,FormComponents:n,FileUploader:a,hookForm:i,uploadedFiles:t,onSubmitForm:s}){return(0,C.jsxs)(C.Fragment,{children:[n.DisputeDetailsHeader,(0,C.jsx)(D.Ay.Content,{className:"h-full flex-col gap-6",children:(0,C.jsx)(o.Op,Object.assign({},i,{children:(0,C.jsxs)("form",{className:"flex flex-col gap-6",onSubmit:i.handleSubmit((e=>{s(e)})),children:[n.DisputeInput,(0,C.jsx)("h5",{className:" ",children:F.W.please_provide_the_following_pieces_of}),a.OrderBookingConfirmation,(0,C.jsx)("p",{className:" ",children:F.W.please_provide_evidence_of_an_attempt}),a.AttemptToResolveMerchant,a.TrackingInformation,(0,C.jsx)(u.Button,{type:"submit",buttonVariant:"primary",disabled:e||i.formState.isSubmitting||!t.receiptFiles.length||!t.merchantProofFiles.length,"data-test-id":"goods-not-received-next",children:F.W.next})]})}))})]})};const on=function({loader:e,FormComponents:n,FileUploader:a,hookForm:i,uploadedFiles:t,onSubmitForm:s}){return(0,C.jsxs)(C.Fragment,{children:[n.DisputeDetailsHeader,(0,C.jsx)(D.Ay.Content,{className:"h-full flex-col gap-6",children:(0,C.jsx)(o.Op,Object.assign({},i,{children:(0,C.jsxs)("form",{className:"flex flex-col gap-6",onSubmit:i.handleSubmit((e=>{s(e)})),children:[n.DisputeInput,(0,C.jsx)("h5",{className:" ",children:F.W.please_provide_the_following_pieces_of}),a.PaymentOrderConfirmation,(0,C.jsx)("p",{className:" ",children:F.W.please_provide_evidence_of_an_attempt}),a.AttemptToResolveMerchant,(0,C.jsx)("p",{className:"",children:F.W.please_provide_the_adjusted_invoice_reflecting}),a.AdjustingInvoiceCredit,(0,C.jsx)(u.Button,{type:"submit",buttonVariant:"primary",disabled:e||i.formState.isSubmitting||!t.receiptFiles.length||!t.merchantProofFiles.length||!t.adjustingInvoiceFiles.length,"data-test-id":"credit-not-processed-next",children:F.W.next})]})}))})]})};const cn=function({loader:e,FormComponents:n,FileUploader:a,hookForm:i,uploadedFiles:t,onSubmitForm:s}){const r=i.watch("i_confirm");return(0,C.jsxs)(C.Fragment,{children:[n.DisputeDetailsHeader,(0,C.jsx)(D.Ay.Content,{className:"h-full flex-col gap-6",children:(0,C.jsx)(o.Op,Object.assign({},i,{children:(0,C.jsxs)("form",{className:"flex flex-col gap-6",onSubmit:i.handleSubmit((e=>{s(e)})),children:[n.AuthorizeAmountInput,n.SettledAmountInput,n.TxnNotRecognizedDisputeInput,(0,C.jsx)("h5",{className:" ",children:F.W.please_provide_the_following_pieces_of}),a.PaymentOrderConfirmation,(0,C.jsx)("p",{className:" ",children:F.W.please_provide_evidence_of_an_attempt}),a.AttemptToResolveMerchant,(0,C.jsx)(o.xI,{name:"i_confirm",control:i.control,defaultValue:!1,render:({field:e})=>(0,C.jsx)(u.Checkbox,Object.assign({type:"checkbox",id:"i_confirm",label:F.W.i_confirm_that_your_problem_is},e,{checked:e.value}))}),(0,C.jsx)(u.Button,{type:"submit",buttonVariant:"primary",disabled:e||i.formState.isSubmitting||!t.receiptFiles.length||!t.merchantProofFiles.length||!r,"data-test-id":"transaction-amount-differs-next",children:F.W.next})]})}))})]})};const mn=function({loader:e,FormComponents:n,FileUploader:a,hookForm:i,uploadedFiles:t,onSubmitForm:s}){return(0,C.jsxs)(C.Fragment,{children:[n.DisputeDetailsHeader,(0,C.jsx)(D.Ay.Content,{className:"h-full flex-col gap-6",children:(0,C.jsx)(o.Op,Object.assign({},i,{children:(0,C.jsxs)("form",{className:"flex flex-col gap-6",onSubmit:i.handleSubmit((e=>{s(e)})),children:[n.DisputeInput,n.DescriptionInput,(0,C.jsx)("p",{className:" ",children:F.W.please_provide_evidence_of_an_attempt}),a.AttemptToResolveMerchant,(0,C.jsx)(u.Button,{type:"submit",buttonVariant:"primary",disabled:e||i.formState.isSubmitting||!t.merchantProofFiles.length,"data-test-id":"other-reasons-next",children:F.W.next})]})}))})]})};const un=function({loader:e,userName:n,currentDate:a,hookForm:i,FormComponents:t,onSubmitForm:s,cardTxn:r,setIsCardInPossession:l,isCardInPossession:c}){var m,_;
1const[v,N]=(0,d.useState)("physical"===(null==r||null==(m=r.card)?void 0:m.type)),[p,E]=(0,d.useState)(!0),g=i.watch("i_confirm_1"),T=i.watch("i_confirm_2"),k=i.watch("i_confirm_3"),I=i.watch("i_confirm_4"),{control:y}=i;return(0,C.jsxs)(C.Fragment,{children:[v?t.ConfirmCardPossessionHeader:t.DisputeDetailsTxnHeader,(0,C.jsx)(D.Ay.Content,{className:"h-full flex-col gap-6",children:(0,C.jsx)(o.Op,Object.assign({},i,{children:(0,C.jsxs)("form",{className:"flex flex-col gap-6",onSubmit:i.handleSubmit((e=>{s(e)})),children:[v&&(0,C.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,C.jsx)("p",{children:(0,C.jsx)(be.Trans,{i18nKey:"do_you_currently_have_the_debit_card",ns:"activity",values:{lastFour:null==r||null==(_=r.card)?void 0:_.last_four},components:{b:(0,C.jsx)("span",{className:"font-bold"})}})}),(0,C.jsx)(u.RadioButton,{name:"card_in_possession",value:"true",label:F.W.yes,checked:!0===c,secondaryText:F.W.i_am_in_possession_of_the_card,onChange:()=>{l(!0),E(!1)}}),(0,C.jsx)(u.RadioButton,{name:"card_in_possession",value:"false",label:F.W.no,checked:!1===c,secondaryText:F.W.i_do_not_have_the_card,onChange:()=>{l(!1),E(!1)}}),(0,C.jsx)(u.Button,{"data-test-id":"card-possession-next-button w-full",disabled:p,onClick:()=>N(!1),children:F.W.next})]}),!v&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("p",{children:[F.W.this_is_only_to_be_used," "]}),(0,C.jsx)("p",{children:F.W.please_read_and_agree_to_the}),(0,C.jsx)(o.xI,{name:"i_confirm_1",control:y,render:({field:e})=>(0,C.jsx)(u.Checkbox,Object.assign({label:F.W.legal_certify_no_authorization,id:"i_confirm_1"},e))}),(0,C.jsx)(u.Divider,{}),(0,C.jsx)(o.xI,{name:"i_confirm_2",control:y,render:({field:e})=>(0,C.jsx)(u.Checkbox,Object.assign({label:F.W.legal_authorize_information_sharing,id:"i_confirm_2"},e))}),(0,C.jsx)(u.Divider,{}),(0,C.jsx)(o.xI,{name:"i_confirm_3",control:y,render:({field:e})=>(0,C.jsx)(u.Checkbox,Object.assign({label:F.W.i_certify_that_the_information_in,id:"i_confirm_3"},e))}),(0,C.jsx)(u.Divider,{}),(0,C.jsx)(o.xI,{name:"i_confirm_4",control:y,render:({field:e})=>(0,C.jsx)(u.Checkbox,Object.assign({label:F.W.legal_claim_statement(n,a),id:"i_confirm_4"},e))}),(0,C.jsx)(u.Button,{type:"submit",buttonVariant:"primary",disabled:e||i.formState.isSubmitting||!(g&&T&&k&&I),"data-test-id":"dont-recognize-txn-next",children:F.W.next})]})]})}))})]})};var _n=a(37451);const vn=a.p+"calender.0d8b9a297f64e774.svg";function Nn({loader:e,accountInfo:n,reason:a,FormComponents:i,FileUploader:t,hookForm:s,uploadedFiles:r,onSubmitForm:d}){const{register:l}=s,c=n.opening_date?k()(n.opening_date):k()().subtract(2,"year"),m=k()();return(0,C.jsxs)(C.Fragment,{children:[i.DisputeDetailsHeader,(0,C.jsx)(D.Ay.Content,{className:"h-full flex-col gap-6",children:(0,C.jsx)(o.Op,Object.assign({},s,{children:(0,C.jsxs)("form",{className:"flex flex-col gap-6",onSubmit:s.handleSubmit((e=>{d(e)})),children:[(0,C.jsx)("input",{name:"reason",hidden:!0}),i.DisputeInput,i.MerchantVendorInput,i.ChargeDetails,"CANCELED_SERVICE"===a&&(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)("label",{className:"",children:F.W.date_of_cancellation}),(0,C.jsx)(h.t7,Object.assign({initialVisibleMonth:void 0,rudderStackData:void 0,className:void 0},l("date_of_cancelation",{required:!0,maxLength:10}),{name:"date_of_cancelation",readOnly:!0,minDate:c,maxDate:m,placeholder:"MM-DD-YYYY",displayFormat:"MM-DD-YYYY",customInputIcon:(0,C.jsx)("img",{src:vn,alt:"calender"})}))]}),"MERCHANDISE_OR_SERVICE_NOT_RECEIVED"===a&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)("label",{className:"",children:F.W.estimated_date_of_delivery}),(0,C.jsx)(h.t7,Object.assign({initialVisibleMonth:void 0,rudderStackData:void 0,className:void 0},l("estimated_delivery_date",{required:!0,maxLength:10}),{name:"estimated_delivery_date",readOnly:!0,minDate:c,maxDate:m,placeholder:"MM-DD-YYYY",displayFormat:"MM-DD-YYYY",customInputIcon:(0,C.jsx)("img",{src:vn,alt:"calender"})}))]}),i.MerchandiseType]}),"CARD_LOST_STOLEN"===a&&(0,C.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,C.jsx)("label",{className:"",children:F.W.date_of_card_getting_lost_or}),(0,C.jsx)(h.t7,{name:"card_lost_date",readOnly:!0,minDate:c,maxDate:m,placeholder:"MM-DD-YYYY",displayFormat:"MM-DD-YYYY",customInputIcon:(0,C.jsx)("img",{src:vn,alt:"calender"}),initialVisibleMonth:void 0,rudderStackData:void 0,onChange:void 0,className:void 0})]}),"CARD_LOST_STOLEN"!==a&&(0,C.jsx)(C.Fragment,{children:t.OriginalReceipt}),(0,C.jsx)("p",{className:" ",children:F.W.in_order_to_file_a_dispute}),t.AttemptToResolveMerchant,(0,C.jsx)(u.Button,{type:"submit",buttonVariant:"primary",disabled:e||s.formState.isSubmitting||!r.merchantProofFiles.length,"data-test-id":"additional-dispute-info-next",children:F.W.next})]})}))})]})}Nn.propTypes={};const pn=Nn,En=({loader:e,onCancel:n,onConfirm:a})=>(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(D.Ay.Header,{children:(0,C.jsx)(u.Header3,{className:"text-typography-default",children:F.W.important})}),(0,C.jsxs)(D.Ay.Content,{className:"flex-col gap-6",children:[(0,C.jsxs)("div",{className:"flex flex-col items-center",children:[(0,C.jsx)(u.Header6,{className:"mb-1 font-bold",children:F.W.your_old_card_will_be_immediately}),(0,C.jsx)("p",{className:"text-typography-grey",children:F.W.for_security_your_old_novo_card})]}),(0,C.jsxs)("div",{className:"flex items-center gap-4",children:[(0,C.jsx)(u.Button,{type:"button",buttonVariant:"secondary",disabled:e,onClick:n,"data-test-id":"debit-card-deactivate-cancel",children:F.W.cancel}),(0,C.jsxs)(u.Button,{type:"button",buttonVariant:"primary",disabled:e,onClick:a,"data-test-id":"debit-card-deactivate-confirm",children:[e?(0,C.jsx)("div",{className:"loader loader_dark"}):null," ",(0,P.catalogueText)("activity","confirm")]})]})]})]});const gn=function({showReason:e,loader:n,onSubmitForm:a,FormComponents:i,hookForm:t}){return(0,C.jsxs)(C.Fragment,{children:[i.DisputeTxnHeader,(0,C.jsxs)(D.Ay.Content,{className:"h-full flex-col gap-6",children:[i.TxnInfoList,(0,C.jsx)(o.Op,Object.assign({},t,{children:(0,C.jsxs)("form",{onSubmit:t.handleSubmit((({reason:e})=>{a({reason:e})})),className:"flex flex-col gap-6",children:[i.DisputeIssue,e&&i.DisputeReasons,(0,C.jsx)(u.Button,{type:"submit",buttonVariant:"primary",disabled:n,"data-test-id":"issue-reason-next",children:F.W.next})]})}))]})]})};var Tn=a(10524);a(43421);const kn=e=>{var n;const{dCDeliveryOptions:a,onSubmit:i,cardTxn:t,onCancel:s,loader:r}=e,l=null==t||null==(n=t.card)?void 0:n.type,[o,c]=(0,d.useState)(null);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(u.Modal.Header,{children:(0,C.jsx)(u.Header4,{className:"text-typography-default",children:F.W.replace_your_card})}),(0,C.jsxs)(u.Modal.Content,{children:[(0,C.jsx)("p",{className:"text-typography-default text-body-regular pb-4",children:F.W.for_security_please_close_and_replace}),"physical"===l&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{className:"text-typography-default text-body-regular",children:F.W.choose_the_address_where_we_ll}),(0,C.jsx)("div",{children:(a||[]).map((e=>(0,C.jsx)("div",{className:"mt-4",children:(0,C.jsx)(u.RadioButton,{name:"addresses",value:e.id,checked:(null==o?void 0:o.id)===e.id,onChange:e=>(e=>{const n=e.target.value;c(a.find((e=>e.id===n))||null)})(e),label:`${(0,Z.capitalizeFLetter)(e.type)} Address`,secondaryText:(0,C.jsxs)(C.Fragment,{children:[e.addressLine1," ",e.addressLine2," ",(0,C.jsx)("br",{})," ",e.city,", ",e.state,", ",e.zipCode]})})},e.id)))})]}),"virtual"===l&&(0,C.jsx)("p",{children:F.W.after_you_submit_your_dispute_we}),(0,C.jsx)(u.Button,{"data-test-id":"replace-card-and-submit-dispute-btn",buttonVariant:"primary",className:"mt-6 w-full",disabled:r||"physical"===l&&!o,onClick:()=>{var e,n;("physical"===l&&null!=o&&o.id&&i({id:null==t||null==(e=t.card)?void 0:e.id,delivery_address_id:o.id,order_reason:"lost_card",print_business_name:null,business_name_to_print:null}),"virtual"===l)&&i({id:null==t||null==(n=t.card)?void 0:n.id})},children:F.W.replace_card_and_submit_dispute}
1),(0,C.jsx)(u.Button,{"data-test-id":"cancel-btn",buttonVariant:"secondary",className:"mt-4 w-full",onClick:()=>{s()},disabled:r,children:F.W.cancel})]})]})},In=e=>{const{onYes:n,onNo:a}=e;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(u.Modal.Header,{children:(0,C.jsx)(u.Header4,{children:F.W.do_you_want_to_discard_changes})}),(0,C.jsxs)(u.Modal.Content,{children:[(0,C.jsx)("p",{children:F.W.all_changes_will_be_lost}),(0,C.jsxs)("div",{className:"mt-8 flex gap-4",children:[(0,C.jsx)(u.Button,{buttonVariant:"primary",className:"w-full","data-test-id":"cancel-txn-dispute-replace-card-yes",onClick:n,children:F.W.yes}),(0,C.jsx)(u.Button,{buttonVariant:"secondary",className:"w-full","data-test-id":"cancel-txn-dispute-replace-card-no",onClick:a,children:F.W.no})]})]})]})};var yn=a(93162),Sn=a(35185),An=a(13442),fn=a(77230),xn=a(54011),hn=a(22949),Cn=a(56882);const On="AdditionalDisputeInfo",Dn="IssueAndReason",bn="DisputeReason",Rn="MerchantCancelledTxn",Ln="WrongDefectiveItem",Fn="GoodsNotReceived",Pn="CreditNotProcessed",jn="TransactionAmountDiffers",Mn="OtherReasons",Un="DontRecognizeTxn",wn="DisputeSuccessReport",Vn="DebitCardDeactivate",Bn="CancelCardReplacement",Yn="TxnDisputeReplaceCard";const Gn=function({id:e,description:n,amount:a,created_date:i,category:t,notes:s,location_string:r,txn_type:c,cardTxn:_,disputeConfig:v,authSession:N,accountInfo:g,disputesConfig:T,onBack:y}){var S,f,x,O,b;const R=(null==_?void 0:_.authorization_amount)||0,L=(null==_?void 0:_.settled_amount)||0,j=(0,xn.j)(),M=(0,re.useNavigate)(),U=(0,m.useQueryClient)(),{privateAPIInstance:w,cardsPrivateAPIInstance:V,authState:B}=null!=(S=(0,d.useContext)(hn.AuthContext))?S:{},[Y,G]=l().useState("CARD"===c?bn:Dn),[H,W]=l().useState(!1),[K,q]=l().useState([]),[$,z]=l().useState(0),[Q,X]=l().useState(0),[Z,J]=l().useState(),[ee,ne]=l().useState(!1),[ae,te]=l().useState(null),[se,le]=l().useState(),[oe,me]=l().useState({reason:"",issue:"CARD"===c?"OTHER":"",details:null,description:null,disputed_amount:Math.abs(a||0).toFixed(2)}),{openModal:ue,closeModal:_e}=(0,u.useModal)(),ve=(null==v?void 0:v.hidden_reasons)||[],Ne=Math.abs(a).toFixed(2),pe=function({txnAmount:e,disputeDetails:n,cardTxn:a}){const i=n=>(0,P.catalogueText)("activity","dispute_amount_min_max",{amountType:n,maxAmount:e}),t=e=>(0,P.catalogueText)("activity","dispute_amount_min",{amountType:e}),s=(0,de.getErrorMessage)("REQUIRED_FIELD"),r={issue:Tn.Yj().trim().required(s),reason:Tn.Yj().trim().required(s),authorized_amount:Tn.ai().min(.001,t("Authorized")).max(Number(e),i("Authorized")).required(s).typeError(s),disputed_amount:Tn.ai().min(.001,i("Disputed")).max(Number(e),i("Disputed")).required(s).typeError(s),txn_amount_differs_disputed_amount:Tn.ai().min(.001,t("Disputed")).max(Math.abs((null==a?void 0:a.settled_amount)||0),(d="Disputed",(0,P.catalogueText)("activity","dispute_amount_min_settled",{amountType:d}))).required(s).typeError(s),settled_amount:Tn.ai().min(.001,t("Settled")).max(Number(e),i("Settled")).required(s).typeError(s),description:Tn.Yj().trim().required(s),details:Tn.Yj().trim().required(s),merchant_name:Tn.Yj().trim().required(s),card_lost_date:Tn.p6().nullable().when("reason",{is:"CARD_LOST_STOLEN",then:e=>e.nullable().required(s)}),estimated_delivery_date:Tn.p6().nullable().when("reason",{is:"MERCHANDISE_OR_SERVICE_NOT_RECEIVED",then:e=>e.nullable().required(s)}),merchandise_type:Tn.Yj().trim().when("reason",{is:"MERCHANDISE_OR_SERVICE_NOT_RECEIVED",then:e=>e.trim().required(s)}),date_of_cancelation:Tn.p6().nullable().when("reason",{is:"CANCELED_SERVICE",then:e=>e.nullable().required(s)})};var d;const l=(0,o.mN)({mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,ge.aw)(Tn.Ik().shape({issue:r.issue,reason:r.reason})),defaultValues:{issue:n.issue,reason:n.reason,disputed_amount:n.disputed_amount}}),c=(0,o.mN)({mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,ge.aw)(Tn.Ik().shape({disputed_amount:r.disputed_amount,merchant_name:r.merchant_name,details:r.details,card_lost_date:r.card_lost_date,estimated_delivery_date:r.estimated_delivery_date,merchandise_type:r.merchandise_type,date_of_cancelation:r.date_of_cancelation,reason:r.reason})),defaultValues:{disputed_amount:n.disputed_amount,reason:n.reason}}),m=(0,o.mN)({mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,ge.aw)(Tn.Ik().shape({reason:r.reason})),defaultValues:{disputed_amount:n.disputed_amount}}),u=(0,o.mN)({mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,ge.aw)(Tn.Ik().shape({details:r.details,description:r.description}))}),_=(0,o.mN)({mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,ge.aw)(Tn.Ik().shape({disputed_amount:r.disputed_amount,description:r.description})),defaultValues:{disputed_amount:n.disputed_amount}}),v=(0,o.mN)({mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,ge.aw)(Tn.Ik().shape({disputed_amount:r.disputed_amount})),defaultValues:{disputed_amount:n.disputed_amount}}),N=(0,o.mN)({mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,ge.aw)(Tn.Ik().shape({disputed_amount:r.disputed_amount})),defaultValues:{disputed_amount:n.disputed_amount}}),p=(0,o.mN)({mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,ge.aw)(Tn.Ik().shape({disputed_amount:r.txn_amount_differs_disputed_amount,i_confirm:Tn.zM().oneOf([!0],s)})),defaultValues:{disputed_amount:n.disputed_amount}}),E=(0,o.mN)({mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,ge.aw)(Tn.Ik().shape({i_confirm_1:Tn.zM().oneOf([!0],s),i_confirm_2:Tn.zM().oneOf([!0],s),i_confirm_3:Tn.zM().oneOf([!0],s),i_confirm_4:Tn.zM().oneOf([!0],s),card_in_possession:Tn.zM().oneOf([!0],s)}))}),g=(0,o.mN)({mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,ge.aw)(Tn.Ik().shape({description:r.description,disputed_amount:r.disputed_amount})),defaultValues:{disputed_amount:n.disputed_amount}});return l.getValues("issue")!==(null==n?void 0:n.issue)&&l.setValue("issue",n.issue),l.getValues("reason")!==(null==n?void 0:n.reason)&&l.setValue("reason",n.reason),c.getValues("reason")!==(null==n?void 0:n.reason)&&c.setValue("reason",n.reason),{issueReasonForm:l,additionalDisputeFrom:c,disputeReasonForm:m,merchantCancelTxnForm:u,wrongDefectiveForm:_,goodsNotReceivedForm:v,creditNotProcessedForm:N,txnAmountDifferForm:p,dontRecognizeTxnForm:E,otherReasonsForm:g}}
1({txnAmount:Ne,disputeDetails:oe,cardTxn:_}),{FileUploader:Ee,uploadedFiles:Te}=function({fileList:e,setFileList:n}){return{FileUploader:{OriginalReceipt:(0,C.jsx)(De.A,{title:F.W.original_receipt_optional,fileInputName:"receipt",entity:"TRANSACTION_DISPUTE",documentType:"RECEIPT",filesList:e,onFileListChange:n}),PaymentSubscription:(0,C.jsx)(De.A,{title:F.W.payment_subscription_confirmation,fileInputName:"receipt",entity:"TRANSACTION_DISPUTE",documentType:"RECEIPT",filesList:e,onFileListChange:n}),AttemptToResolveMerchant:(0,C.jsx)(De.A,{title:F.W.attempt_to_resolve_issue_with_merchant,fileInputName:"merchant_proof",entity:"TRANSACTION_DISPUTE",documentType:"MERCHANT_PROOF",filesList:e,onFileListChange:n}),EvidenceOfCancellation:(0,C.jsx)(De.A,{title:F.W.evidence_of_cancelation,fileInputName:"cancelation_evidence",entity:"TRANSACTION_DISPUTE",documentType:"CANCELATION_EVIDENCE",filesList:e,onFileListChange:n}),AttemptToReturnItem:(0,C.jsx)(De.A,{title:F.W.attempt_to_return_the_item_optional,fileInputName:"attempt_to_return",entity:"TRANSACTION_DISPUTE",documentType:"ATTEMPT_TO_RETURN",filesList:e,onFileListChange:n}),ShowOriginalOrder:(0,C.jsx)(De.A,{title:F.W.shows_the_original_order,fileInputName:"original_order",entity:"TRANSACTION_DISPUTE",documentType:"ORIGINAL_ORDER",filesList:e,onFileListChange:n}),ShowReceivedOrder:(0,C.jsx)(De.A,{title:F.W.shows_the_order_that_you_have,fileInputName:"order_received",entity:"TRANSACTION_DISPUTE",documentType:"ORDER_RECEIVED",filesList:e,onFileListChange:n}),OrderBookingConfirmation:(0,C.jsx)(De.A,{title:F.W.order_confirmation_booking_confirmation,fileInputName:"receipt",entity:"TRANSACTION_DISPUTE",documentType:"RECEIPT",filesList:e,onFileListChange:n}),TrackingInformation:(0,C.jsx)(De.A,{title:F.W.tracking_information_if_provided_to_you,fileInputName:"tracking_information",entity:"TRANSACTION_DISPUTE",documentType:"TRACKING_INFORMATION",filesList:e,onFileListChange:n}),PaymentOrderConfirmation:(0,C.jsx)(De.A,{title:F.W.payment_order_confirmation,fileInputName:"receipt",entity:"TRANSACTION_DISPUTE",documentType:"RECEIPT",filesList:e,onFileListChange:n}),AdjustingInvoiceCredit:(0,C.jsx)(De.A,{title:F.W.adjusted_invoice_reflecting_the_credit,fileInputName:"adjusted_invoice",entity:"TRANSACTION_DISPUTE",documentType:"ADJUSTED_INVOICE",filesList:e,onFileListChange:n})},uploadedFiles:{receiptFiles:e.filter((e=>"RECEIPT"===e.document_type)),merchantProofFiles:e.filter((e=>"MERCHANT_PROOF"===e.document_type)),cancelationEvidenceFiles:e.filter((e=>"CANCELATION_EVIDENCE"===e.document_type)),originalOrderFiles:e.filter((e=>"ORIGINAL_ORDER"===e.document_type)),orderReceivedFiles:e.filter((e=>"ORDER_RECEIVED"===e.document_type)),trackingInfoFiles:e.filter((e=>"TRACKING_INFORMATION"===e.document_type)),adjustingInvoiceFiles:e.filter((e=>"ADJUSTED_INVOICE"===e.document_type))}}}({fileList:K,setFileList:q}),ke=null==_||null==(f=_.card)?void 0:f.id,Ie="CARD"===c?null==T||null==(x=T.card_transaction)?void 0:x.timelines:null==T||null==(O=T.transaction)?void 0:O.timelines,ye=an.find((e=>oe.reason===e.value&&oe.issue===e.issue)),Se=an.filter((e=>!ve.includes((null==e?void 0:e.value)||""))).filter((e=>e.issue===oe.issue)),Ae=A.A.createTxnLocationString({location_string:r,cardTxn:_}),fe=a>=0?`$${a}`:`-$${Ne}`,xe=[n?{label:F.W.merchant,text:n}:null,a?{label:F.W.amount,text:fe}:null,i?{label:F.W.date,text:i}:null,null!=t&&t.name?{label:F.W.category,text:t.name}:null,Ae?{label:(0,P.catalogueText)("activity","card_txn.location"),text:Ae}:null,s?{label:F.W.note,text:s}:null].filter((e=>e));(0,d.useEffect)((()=>{0!==Q&&G("CARD"===c?en[oe.reason]||bn:nn[oe.reason]||Dn)}),[Q]),(0,d.useEffect)((()=>{0!==$&&(Re(),G(wn))}),[$]);const{mutate:he,isPending:Ce}=(0,m.useMutation)({mutationFn:async e=>{const{id:n,reason:a,deliveryAddressId:i}=e;return await(0,An.HH)(w,{id:n,reason:a,deliveryAddressId:i})},onSuccess:(e,n)=>{le({id:e.id,type:e.type}),G(wn),"physical"===n.type.toLowerCase()&&ne(!0),"virtual"===n.type.toLowerCase()&&ne(!1),U.invalidateQueries({queryKey:[Cn.t.GET_DEBIT_CARDS]})},onError:(e,n)=>{"physical"===n.type.toLowerCase()&&(_e(),ue({name:de.CONSTANTS.MODAL.CARDS.CARD_REPLACEMENT_FAILED,data:{flow:"dispute",title:"Card Replacement Failed",message:null==e?void 0:e.message,successTimelineData:Ie}}))}}),Oe=async()=>{var n,a,i,t;(0,ie.sx)(Object.assign({},ce.Y["debit_card_revenue.submit_debit_dispute"],{dispute_amount:Number(oe.dis
1puted_amount)||0,dispute_transaction_id:null!=e?e:"",dispute_issue:null!=(n=oe.issue)?n:"",dispute_reason:null!=(a=oe.reason)?a:"",dispute_description:null!=(i=oe.description)?i:"",dispute_details:null!=(t=oe.details)?t:""}));return await j(((e,{card_transaction_id:n,internal_reason:a,dispute_amount:i,description:t,customer_note:s,submit_to_issuer:r,is_card_in_possession:d})=>({type:"API",[p.rY]:"WAIT_FOR_CREATE_DISPUTES",[p.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_CREATE_DISPUTES",data:{query:E.s.FileCardTransactionDispute,variables:{data:{card_transaction_id:n,internal_reason:a,dispute_amount:i,description:t,customer_note:s,submit_to_issuer:r,is_card_in_possession:d}}},responseType:"mutation"}}))(V,{card_transaction_id:e,dispute_amount:Number(oe.disputed_amount),internal_reason:oe.reason,description:oe.description||null,customer_note:oe.details||null,submit_to_issuer:!1,is_card_in_possession:ae}))},be=async({internal_dispute_id:e})=>{const n=new FormData;K.forEach((e=>{e.file instanceof File?n.append("files",e.file,e.file_name):n.append("cloud_files[]",JSON.stringify(e.file))})),n.append("internal_dispute_id",e);const a=await(async(e,n,a)=>{const i={method:"POST",body:n,redirect:"follow",headers:{Authorization:`Bearer ${e}`,"novo-uuid-token":a,platform:"web"}};return await fetch("/api/cms/card-transaction-dispute/evidences",i).then((e=>e.text())).then((e=>JSON.parse(e))).catch((e=>console.log({error:e})))})(null==B?void 0:B.token,n,null==B?void 0:B.device_uuid);return a},Re=async()=>{W(!0);const e=await Oe();if(null!=e&&e.hasError)return u.toast.error({title:e.title,message:e.message});if((null==e||!e.hasError)&&0!==(null==K?void 0:K.length)){var n;const a=await be({internal_dispute_id:null==(n=e.data)?void 0:n.internal_dispute_id});if(!a)return u.toast.error({title:null==a?void 0:a.title,message:null==a?void 0:a.message});if(null!=a&&a.error)return u.toast.error({title:a.error,message:a.message});if(null!=a&&a.hasError)return W(!1),u.toast.error({title:a.title,message:a.message});if(null==a||!a.hasError)return W(!1),u.toast.success({title:a.title,message:a.message})}return e},Le=e=>{me(Object.assign({},oe,e)),X(Q+1)},Fe=e=>{me(Object.assign({},oe,e)),z($+1)},Pe=()=>{null==y||y()},je=()=>{te(null),G("CARD"===c?bn:Dn)},Me=({cardId:e,cardType:n})=>{ue({name:yn.o.MODAL.CONFIRM_PASSWORD_PIN_FLOW,data:{screen:"create_Virtual_card_dispute_flow",eventName:"create_virtual_card",description:Sn.v_.ACTIVATE_CARD,onSuccessCallback:()=>{M(de.NOVO_PAGE_ROUTES.DebitCardSetPin,{state:{cardId:e,cardType:n,isChangePinFlow:!1,flowInitiatedFrom:fn.oR.DASHBOARD}})},onCancelCallback:()=>_e()}})},Ue={DisputeIssue:(0,C.jsx)(h.Uj,{name:"issue",label:F.W.select_issue,options:tn,onChange:({value:e})=>me(Object.assign({},oe,{issue:e})),ReactSelectComponents:void 0}),DisputeReasons:(0,C.jsx)(h.Uj,{name:"reason",label:F.W.select_reason,placeholder:F.W.select_reason_2,options:Se,onChange:({value:e})=>{(0,ie.sx)(Object.assign({},ce.Y["debit_card_revenue.select_dispute_reason"],{dispute_reason:e})),me(Object.assign({},oe,{reason:e}))},ReactSelectComponents:void 0}),DisputeInput:(0,C.jsx)(Je.t8,{isCurrency:!0,name:"disputed_amount",label:F.W.disputed_amount,showError:!0,placeholder:F.W.enter_disputed_amount}),TxnNotRecognizedDisputeInput:(0,C.jsx)(Je.t8,{isCurrency:!0,name:"disputed_amount",label:F.W.disputed_amount,showError:!0,value:R<L?Math.abs(L)-Math.abs(R):Math.abs(L),placeholder:F.W.enter_disputed_amount,onChange:e=>{return n=e.target.value,pe.txnAmountDifferForm.setValue("disputed_amount",Number(n)),void me(Object.assign({},oe,{disputed_amount:n}));var n}}),AuthorizeAmountInput:(0,C.jsx)(Je.t8,{isCurrency:!0,name:"authorized_amount",label:F.W.authorized_amount,showError:!1,placeholder:F.W.enter_authorized_amount,value:R,disabled:!0}),SettledAmountInput:(0,C.jsx)(Je.t8,{isCurrency:!0,name:"settled_amount",label:F.W.settled_amount,showError:!1,placeholder:F.W.enter_settled_amount,value:L,disabled:!0}),DescriptionInput:(0,C.jsx)(Je.t8,{name:"description",label:F.W.brief_description,showError:!0,type:"text",placeholder:F.W.enter_brief_description,isCurrency:void 0}),DetailsInput:(0,C.jsx)(Je.t8,{name:"details",label:F.W.details_about_payment_subscription,showError:!0,type:"text",placeholder:F.W.enter_details,isCurrency:void 0}),MerchantVendorInput:(0,C.jsx)(Je.t8,{name:"merchant_name",label:F.W.merchant_or_vendor,showError:!0,type:"text",placeholder:F.W.enter_merchant_or_vendor,isCurrency:void 0}),ChargeDetails:(0,C.jsx)(Je.t8,{name:"details",label:F.W.charge_details,type:"text",showError:!0,placeholder:F.W.enter_details_related_to_the_charge,isCurrency:void 0}),MerchandiseType:(0,C.jsx)(Je.t8,{name:"merchandise_type",label:F.W.merchandise_type,showError:!0,type:"text",placeholder:F.W.enter_details_about_merchandise,isCurrency:void 0}),TxnInfoList:(0,C.jsx)(u.InfoList,{className:"mt-5",info:xe}),DisputeDetailsHeader:(0,C.jsx)(D.Ay.Header,{children:(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",onClick:je,children:[(0,C.jsx)("div",{className:"flex items-center",children:(0,C.jsx)(I.Int,{name:"chevron-left",size:"md",color:"default"})}),(0,C.jsx)("div",{className:"text-typography-grey text-caption-regular",children:F.W.back})]}),(0,C.jsx)(u.Header3,{className:"text-typography-default",children:null==ye?void 0:ye.label})]}),(0,C.jsx)("button",{className:"text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled cursor-pointer self-end",onClick:Pe,children:F.W.cancel})]})}),ConfirmCardPossessionHeader:(0,C.jsx)(D.Ay.Header,{children:(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",onClick:je,children:[(0,C.jsx)("div",{className:"flex items-center",children:(0,C.jsx)(I.Int,{name:"chevron-left",size:"md",color:"default"})}),(0,C.jsx)("div",{className:"text-typography-grey text-caption-regular",children:F.W.back})]}),(0,C.jsx)(u.Header3,{className:"text-typography-default",children:F.W.confirm_card_possession})]}),(0,C.jsx)("button",{className:"text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled cursor-pointer self-end",onClick:Pe,children:F.W.cancel})]})}),DisputeTxnHeader:(0,C.jsx)(D.Ay.Header,{children:(0,C.jsx)("div",{className:"flex items-center justify-between",children:(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",onClick:Pe,children:[(0,C.jsx)("div",{className:"flex items-center",children:(0,C.jsx)(I.Int,{name:"chevron-left",size:"md",color:"default"})}),(0,C.jsx)("div",{className:"text-typography-grey text-caption-regular",children:F.W.back})]}),(0,C.jsx)(u.Header3,{className:"text-typography-default",children:"CARD"===c?F.W.dispute_transaction:F.W.report_an_issue})]})})}),DisputeDetailsTxnHeader:(0,C.jsx)(D.Ay.Header,{children:(0,C.jsx)("div",{className:"flex items-center justify-between",children:(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",onClick:Pe,children:[(0,C.jsx)("div",{className:"flex items-center",children:(0,C.jsx)(I.Int,{name:"chevron-left",size:"md",color:"default"})}),(0,C.jsx)("div",{className:"text-typography-grey text-caption-regular",children:F.W.back})]}),(0,C.jsx)(u.Header3,{className:"text-typography-default",children:"CARD"===c?F.W.dispute_details:F.W.report_an_issue})]})})})};return(0,C.jsxs)(C.Fragment,{children:[Y===Dn&&(0,C.jsx)(gn,{showReason:!!oe.issue,onSubmitForm:Le,loader:H,FormComponents:Ue,hookForm:pe.issueReasonForm}),Y===On&&(0,C.jsx)(pn,{accountInfo:g,reason:oe.reason||"",hookForm:pe.additionalDisputeFrom,loader:H,FormComponents:Ue,FileUploader:Ee,uploadedFiles:Te,onSubmitForm:async e=>(me(Object.assign({},oe,e)),"CARD_LOST_STOLEN"===oe.reason||"CARD_PRESENT"===oe.reason?G(Vn):(z($+1),!1))}),Y===bn&&(0,C.jsx)(sn,{onSubmitForm:Le,FormComponents:Ue,hookForm:pe.disputeReasonForm}),Y===Rn&&(0,C.jsx)(rn,{hookForm:pe.merchantCancelTxnForm,FormComponents:Ue,FileUploader:Ee,uploadedFiles:Te,loader:H,onSubmitForm:Fe}),Y===Ln&&(0,C.jsx)(dn,{hookForm:pe.wrongDefectiveForm,FormComponents:Ue,FileUploader:Ee,uploadedFiles:Te,loader:H,onSubmitForm:Fe}),Y===Fn&&(0,C.jsx)(ln,{hookForm:pe.goodsNotReceivedForm,FormComponents:Ue,FileUploader:Ee,uploadedFiles:Te,loader:H,onSubmitForm:Fe}),Y===Pn&&(0,C.jsx)(on,{hookForm:pe.creditNotProcessedForm,FormComponents:Ue,FileUploader:Ee,uploadedFiles:Te,loader:H,onSubmitForm:Fe}),Y===jn&&(0,C.jsx)(cn,{hookForm:pe.txnAmountDifferForm,FormComponents:Ue,FileUploader:Ee,uploadedFiles:Te,loader:H,onSubmitForm:Fe}),Y===Un&&(0,C.jsx)(un,{userName:`${N.first_name} ${N.last_name}`,currentDate:k()().format("MMM D, YYYY"),hookForm:pe.dontRecognizeTxnForm,FormComponents:Ue,loader:H,onSubmitForm:async()=>{var e;if(!V)return;if(!ke)return u.toast.error({title:F.W.vcardid_not_found,message:F.W.cannot_proceed});W(!0);const n=await(0,An.Yx)(V,{id:ke});if(W(!1),!n)return u.toast.error({title:F.W.unable_to_get_vcard_status,message:F.W.cannot_proceed});const a=null==n?void 0:n[0].status,i=null==_||null==(e=_.card)?void 0:e.type;if("CLOSED"===a.toUpperCase())return await Re(),G(wn),!1;if("virtual"===i)return G(Yn),!1;const t=await(0,An.Fg)(w);null!=t&&t.edges&&J(t.edges),G(Yn)},cardTxn:_,setIsCardInPossession:te,isCardInPossession:ae}),Y===Mn&&(0,C.jsx)(mn,{hookForm:pe.otherReasonsForm,FormComponents:Ue,FileUploader:Ee,uploadedFiles:Te,loader:H,onSubmitForm:Fe}),Y===Yn&&(0,C.jsx)(kn,{dCDeliveryOptions:null!=Z?Z:[],onSubmit:async({id:e,delivery_address_id:n,order_reason:a})=>{var i;await Re();const t=null==_||null==(i=_.card)?void 0:i.type;he({id:e,reason:null==a?void 0:a.toUpperCase(),deliveryAddressId:n,type:t})},cardTxn:_,onCancel:()=>{G(Bn)},loader:H||Ce}),Y===Vn&&(0,C.jsx)(En,{onCancel:()=>G(On),onConfirm:async()=>{await Re(),_e()},loader:H}),Y===wn&&(0,C.jsx)(_n.A,{timeline:Ie,onDone:()=>{var e;_e(),"virtual"===(null==se||null==(e=se.type)?void 0:e.toLowerCase())&&Me({cardId:se.id,cardType:se.type})},isCardReplaced:ee,showActivateCardCTA:"virtual"===(null==se||null==(b=se.type)?void 0:b.toLowerCase())}),Y===Bn&&(0,C.jsx)(In,{onYes:Pe,onNo:()=>{G(Yn)}})]})};var Hn=a(54701),Wn=a(32745);const Kn=z.c.ACH_SERVICE_BASE_URL,qn=(e,n)=>({type:"API",[p.rY]:"WAIT_FOR_UPDATE_TRANSFER_STATUS",[p.k1]:e=>e.payload,payload:{APIInstance:e,baseURL:Kn,nextSuccessAction:"WAIT_FOR_UPDATE_TRANSFER_STATUS",data:{query:(0,Hn.y)(Wn.UpdateTransferStatus),variables:n},responseType:"mutation"}}),$n="TXN_DETAILS",zn="DISPUTE_TXN_DETAILS",Qn="UNAUTHORIZED_ACH_TXN_DETAILS",Xn=({getTransactionRequest:e,onCategoryChange:n})=>{const[a,i]=(0,d.useState)(),[s,r]=(0,d.useState)(0),[l,g]=(0,d.useState)(!1),[T,k]=(0,d.useState)(""),[I,y]=(0,d.useState)(!1),[S,A]=(0,d.useState)(!1),{privateAPIInstance:x,authState:h}=(0,d.useContext)(f.cy),O=(0,Te.Ay)(),D=(0,c.useDispatch)(),{transactionCategories:b,accountInfo:R,common:L}=(0,c.useSelector)((e=>e)),{hideLoader:P}=(0,u.useLoader)(),{modalState:j,closeModal:M}=(0,u.useModal)(),{id:U,type:w,txn_type:V,isPending:B}=t()(j,(e=>e.data))||{}
1,[Y,G]=(0,d.useState)(!1),[H,W]=(0,d.useState)(),[K,q]=(0,d.useState)({}),[$,z]=(0,d.useState)($n),[Q,Z]=(0,d.useState)(),[J,ee]=(0,d.useState)(),[ne,ae]=(0,d.useState)(),[te,se]=(0,d.useState)(),[re,de]=(0,d.useState)(),le=(0,o.mN)({mode:"onSubmit",reValidateMode:"onChange",resolver:(0,ge.aw)(ge.JN)}),oe=(0,o.mN)({mode:"onSubmit",reValidateMode:"onChange",resolver:(0,ge.aw)(ge.Ig)}),{refetch:me}=(0,m.useQuery)({queryKey:[X.B.ACTIVITY_FETCH_INVOICES_FOR_TOTAL_COUNT],queryFn:async()=>{const e=await(0,_.nM)(x,{transactionId:te||U,limit:1,offset:0},{baseURL:O});return e&&e.invoices&&r(e.invoices.length||0),null},gcTime:0,enabled:!1}),{refetch:ue,data:_e}=(0,m.useQuery)({queryKey:[X.B.ACTIVITY_FETCH_INVOICE_LINKED_WITH_TRANSACTION],queryFn:async()=>await(0,_.G9)(x,"INVOICE_DISPUTE"===V&&B?{disputeTransactionId:te||U}:{transactionId:te||U},{baseURL:O}),gcTime:0,enabled:!1});(0,d.useEffect)((()=>{ue(),ve().finally((()=>P())),(()=>{if(!b||!b.length)D((0,N.f)(x))})(),me(),le.reset()}),[J,re]);const ve=async()=>{var e,n,a,t,s,r;let d;const l={id:te||U,duration:"",start_date:"",end_date:"",entity_id:te||U,txn_type:re||V};if("pending_transaction"===w){l.entity="TRANSFER";const e=await D((0,_.Mx)(x,l));if(!e)return P(),!1;const{pending_transactions:n,get_files:a}=e;if(!n||!n.length)return P(),!1;[d]=n,a&&a.length>0&&(d.receipts=a.filter((e=>e.entity_id===d.id)))}if("transaction"===w){l.entity="TRANSACTION",l.limit=1;const e=await D((0,_.NI)(x,l));if(!e)return!1;const{transactions:n,get_files:a}=e;if(!n||!n.length)return!1;[d]=n,a&&a.length>0&&(d.receipts=a.filter((e=>e.entity_id===d.id)));const i="EXTERNAL WITHDRAWAL"===(d.medium||"").trim().toUpperCase();let t="CARD"===d.txn_type?"CARD_TRANSACTION":"TRANSACTION";t=i?"UNAUTHORIZED_DEBIT":t;const s=await D(((e,{entity:n,entity_id:a})=>({type:"API",[p.rY]:"WAIT_FOR_GET_DISPUTE_CONFIG",[p.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_GET_DISPUTE_CONFIG",data:{query:E.X.GetDisputeConfig,variables:{entity:n,entity_id:a}},responseType:"query"}}))(x,{entity:t,entity_id:te||U}));d.disputeConfig=s}if(null!=(e=d)&&e.category&&k(Object.assign({},d.category,{value:d.category.id,label:d.category.name})),["EXPRESS_REMOTE_DEPOSIT_CHECK","REMOTE_DEPOSIT_CHECK"].includes(null==(n=d)?void 0:n.txn_type)){let e=U;if("transaction"===w){const{meta:{mrdc_id:n}={}}=d;e=n}const n=await D((0,_.vO)(x,{id:e}));n&&(d.check_images=n)}if("CARD"===(null==(a=d)?void 0:a.txn_type)){const e=await D((0,_.vE)(x,{txnId:U}));d.cardTxn=(null==e?void 0:e[0])||void 0}if("TRANSFERWISE"===(null==(t=d)?void 0:t.txn_type)){const e=await D((0,_.Cx)(x,{id:U}));e&&e.length&&(d=Object.assign({},d,{tw_transactions_details:e[0]}))}i(d),null!=(s=d)&&null!=(s=s.more_info)&&s.fee&&Z(!1),null!=(r=d)&&null!=(r=r.more_info)&&r.root&&Z(!0)},Ne=async(e,n)=>{if(Y)return!1;G(!0);const i={entity:"pending_transaction"===w?"TRANSFER":"TRANSACTION",transaction_doc:{document_type:"RECEIPT",entity_id:te||U}};"TRANSACTION"!==i.entity&&(i.transaction_doc=Object.assign({},i.transaction_doc,{transfer_type:a.txn_type}));const t={query:E.s.UploadFile,variables:{data:i}};let s;if(n)i.cloud_file=Object.assign({},n,{file:e}),t.variables.data=i;else{if(e.size>10485760)return u.toast.error({message:F.W.FILE_SIZE_ERROR,title:F.W.error}),void G(!1);s=new FormData,s.append("operations",JSON.stringify(t)),s.append("map",JSON.stringify({0:["variables.data.local_file.file"]})),s.append("0",e)}const r=await D((0,v.QM)(x,t,s));return G(!1),!!r&&(r.hasError?u.toast.error({message:r.message,errors:r.userErrors,title:r.title}):(ve(),void u.toast.success({message:r.message})))},pe=()=>{z($n),q({})},ke={transaction:a,invoicesCountByTxnID:s,editNote:l,selectedCategory:T,categoryConfirmation:I,fileLoader:Y,filePreviewID:H,txnNoteFormMethods:le,receiptNoteFormMethods:oe,cancelTransactionConfirmation:S,transactionDeliveryFeeVisibility:Q,loadFeeTransaction:J,showBackButton:ne,setEditNote:g,onTxnNoteFormSubmit:async e=>{const n={id:te||U,notes:e.notes},a=await D((0,_.Vq)(x,{transaction:n}));return!!a&&(g(!1),ve(),u.toast.success({message:a.message}))},selectCategory:(e,i)=>{k(e),n?n(i,a.id):y(!0)},changeCategoryRequest:async n=>{if(!a||!T)return!1;const t={id:te||U,category:{id:T.value,update_similar:n}},s=await D((0,_.Vq)(x,{transaction:t}));return!!s&&(y(!1),i(Object.assign({},a,{category:T})),e&&e(),u.toast.success({message:s.message}))},onFileSelect:async e=>{if(e.preventDefault(),!e.target.files||!e.target.files.length)return!1;const n=e.target.files[0];return Ne(n)},onCloudFileSelect:async(e,n)=>!(!e||!n)&&Ne(e,n),deleteFileRequest:async e=>{if(Y||!e)return!1;G(!0);const n={entity:"pending_transaction"===w?"TRANSFER":"TRANSACTION",transaction_doc:{file_id:e}},a=await D((0,v.Ww)(x,{data:n}));return G(!1),!!a&&(a.hasError?u.toast.error({message:a.message,errors:a.userErrors,title:a.title}):(W(),ve(),void u.toast.success({message:a.message})))},setFilePreviewID:W,onReceiptNoteFormSubmit:async e=>{if(!H)return!1;const n={file_id:H,notes:e.notes},a=await D((0,v.Io)(x,{data:n}));return!!a&&(g(!1),ve(),u.toast.success({message:a.message}))},setCancelTransactionConfirmation:A,cancelTransferRequest:async n=>{if(n.target.disabled=!0,!a)return!1;let i;const t={status:"REJECTED"};var s,r;
1return"ACH_PUSH"!==a.txn_type&&"EXPRESS_ACH"!==a.txn_type||!j.data.isPending||(t.transfer_id=a.id,i=await D(qn(x,{data:{transferId:t.transfer_id,status:t.status}}))),"ACH_PUSH"!==a.txn_type&&"EXPRESS_ACH"!==a.txn_type||j.data.isPending||(t.transfer_id=a.meta.transfer_id,i=await D(qn(x,{data:{transferId:t.transfer_id,status:t.status}}))),"ACH_PULL"===a.txn_type&&(t.pull_fund_id=a.id,i=await D((s=x,r={data:{id:t.pull_fund_id,status:t.status}},{type:"API",[p.rY]:"WAIT_FOR_UPDATE_PULL_FUND_STATUS",[p.k1]:e=>e.payload,payload:{APIInstance:s,baseURL:Kn,nextSuccessAction:"WAIT_FOR_UPDATE_PULL_FUND_STATUS",data:{query:(0,Hn.y)(Wn.UpdatePullFundRequestStatus),variables:r},responseType:"mutation"}}))),i?(null==e||e(),A(!1),M(),u.toast.success({message:i.message})):(n.target.disabled=!1,!1)},openReportIssueModal:async()=>{const{id:e,description:n,medium:i,amount:t,created_date:s,category:r,notes:d,location_string:l,txn_type:o,cardTxn:c,disputeConfig:m,more_info:u}=Object.assign({},a,j.data),_="EXTERNAL WITHDRAWAL"===(i||"").trim().toUpperCase();q({id:e,description:n,amount:t,created_date:s,category:r,notes:d,location_string:l,txn_type:o,cardTxn:c,disputeConfig:m,more_info:u}),(0,ie.sx)(Object.assign({},ce.Y["debit_card_revenue.click_dispute_debit"],{medium:i,transaction_id:e,is_external_withdrawal:_})),z(_?Qn:zn)},setTransactionDeliveryFeeVisibility:Z,setLoadFeeTransaction:ee,setShowBackButton:ae,setTransactionId:se,setTransactionSubType:de,uploadFileRequest:Ne,linkedInvoice:_e};return(0,C.jsxs)(C.Fragment,{children:[$===$n?(0,C.jsx)(f.ak,{value:ke,children:(0,C.jsx)(Ee,{})}):null,$===zn?(0,C.jsx)(Gn,Object.assign({},K,{authSession:null==h?void 0:h.userInfo,accountInfo:R,disputesConfig:null==L?void 0:L.disputes,onBack:pe})):null,$===Qn?(0,C.jsx)(Ze,Object.assign({},K,{onBack:pe})):null]})};Xn.propTypes={getTransactionRequest:r().func,onDisputeVCTransaction:r().func,onCategoryChange:r().func};const Zn=Xn},18721(e,n,a){"use strict";a.d(n,{A:()=>p});var i=a(75969),t=a(15152),s=a.n(t),r=a(4578),d=a(693),l=a(96534),o=a(71537),c=a(89329),m=a(55928),u=a(89389),_=a(72937),v=a(69500);function N({title:e,fileInputName:n,documentType:a,filesList:t,entity:s,onFileListChange:N,maxAllowedFiles:p,label:E,allowDragDrop:g=!0}){const T=(0,r.useDispatch)(),[k,I]=(0,i.useState)(!1),{privateAPIInstance:y}=(0,i.useContext)(c.cy),S=(e,n)=>{if(!e)return!1;m.A.success({message:e.message});const a=[...t||[],Object.assign({},e.data,{file_id:e.data.file_name,document_type:n})];return null==N||N(a),!0},A=async({docType:e,file:n,cloud:a})=>{if(k)return!1;I(!0);const i={query:o.s.UploadFile,variables:{data:{entity:s}}};let r;const l={};if(a?(i.variables.data=Object.assign({},i.variables.data,{cloud_file:Object.assign({},a,{file:n})}),"TRANSACTION_DISPUTE"===s&&(l.access_token=(null==a?void 0:a.access_token)||null,l.type=a.type,l.file=n)):(r=new FormData,r.append("operations",JSON.stringify(i)),r.append("map",JSON.stringify({0:["variables.data.local_file.file"]})),r.append("0",n)),"TRANSACTION_DISPUTE"!==s){const n=await T((0,d.QM)(y,i,r));return I(!1),!!n&&(n.hasError?m.A.error({message:n.message,errors:n.userErrors,title:n.title}):S(n,e))}return"TRANSACTION_DISPUTE"===s?(null==N||N([...t,a?l:n]),I(!1),S({message:(0,_.catalogueText)("core-shared","document_added_successfully"),data:{file_name:n.name,file:a?l:n}},e)):void 0},f=t.filter((e=>e.document_type===a));return(0,v.jsxs)("div",{className:"flex flex-col gap-0.5",children:[E&&(0,v.jsx)("label",{children:E}),(0,v.jsx)(l.ef,{title:e,fileInputName:n,onFileSelect:async e=>{if(e.preventDefault(),!e.target.files||!e.target.files.length)return!1;const n=e.target.files[0];if(n.size>262144e3)return m.A.error({message:(0,_.catalogueText)("core-shared","file_size_should_be_less_than")});const a=e.target.name.toUpperCase();return A({docType:a,file:n,cloud:null})},onCloudFileSelect:(e,n)=>(async({file:e,cloud:n,docType:a})=>!(!e||!n)&&A({docType:a,file:e,cloud:n}))({file:e,cloud:n,docType:a}),removeFile:async e=>{if(k||!e)return!1;I(!0);const n={file_name:e,entity:s};if("TRANSACTION_DISPUTE"!==s){const a=await T((0,d.Ww)(y,{data:n}));return I(!1),a?a.hasError?m.A.error({message:a.message,errors:a.userErrors,title:a.title}):(m.A.success({message:a.message}),((e,n)=>{if(I(!1),!e)return!1;m.A.success({message:e.message});const a=t.filter((e=>e.file_id!==n));return null==N||N(a),!0})(a,e)):!1}if("TRANSACTION_DISPUTE"===s){const n=t.filter((n=>n.file_id!==e));return null==N||N(n),I(!1),!0}},openFile:e=>{const n=t.find((n=>n.file_id===e));if("TRANSACTION_DISPUTE"!==s&&window.open(n.s3_url,"_blank","noopener noreferrer"),"TRANSACTION_DISPUTE"===s){const e=window.URL.createObjectURL(n.file);window.open(e,"_blank","noopener noreferrer"),URL.revokeObjectURL(e)}},uploadedFiles:f,maxAllowedFiles:p||5,fileLoader:k,allowDragDrop:g,uploadFileRequest:e=>((e,n)=>{if(e)return e.size>262144e3?m.A.error({message:(0,_.catalogueText)("core-shared","file_size_should_be_less_than")}):A({docType:null==n?void 0:n.toUpperCase(),file:e,cloud:null})})(e,n)}),(0,v.jsx)("div",{className:"text-typography-grey text-caption-regular font-light",children:u.A.FILE_UPLOAD_LIMIT})]})}N.propTypes={title:s().string.isRequired,entity:s().string.isRequired,fileInputName:s().string.isRequired,documentType:s().string.isRequired,filesList:s().array.isRequired,onFileListChange:s().func.isRequired,maxAllowedFiles:s().number,label:s().string,allowDragDrop:s().bool};const p=N},93189(e,n,a){"use strict";a.d(n,{A:()=>t});var i=a(75969);const t=(e,n)=>{const[a,t]=(0,i.useState)(!1),[s,r]=(0,i.useState)(!0);(0,i.useEffect)((()=>
1{if(null!=n&&n.current){const e=null==n?void 0:n.current;return e.addEventListener("scroll",d),()=>e.removeEventListener("scroll",d)}}),[a,s,null==n?void 0:n.current]),(0,i.useEffect)((()=>{a&&s&&e()}),[a,s]);const d=()=>{var e,i,r;const d=null==n||null==(e=n.current)?void 0:e.scrollTop,l=null==n||null==(i=n.current)?void 0:i.clientHeight,o=null==n||null==(r=n.current)?void 0:r.scrollHeight;!a&&s&&d+l>=o-1&&t(!0)};return[{isFetching:a,hasMoreData:s},{setIsFetching:t,setHasMoreData:r}]}},33482(e,n,a){"use strict";function i(){return"https://novo-invoicing-service-api.novo-aws-prod.com/api"}function t(){return"https://novo-invoicing-service-api.novo-aws-prod.com/api/upload/logo"}function s(){return"https://novo-invoicing-service-api.novo-aws-prod.com/api/upload/document"}function r(){return"https://novo-invoicing-service-api.novo-aws-prod.com/open"}a.d(n,{Ay:()=>i,NK:()=>r,aK:()=>s,sG:()=>t})},19582(e,n,a){"use strict";var i=a(72937);const t=JSON.parse('{"AccountInfoContainerLabels":{"AccountInfoSection":{"Title":"Settings","BankLetterButton":"Bank Letter","StatementsButton":"Statements","UsersButton":"Users"},"TransferLimitsSection":{"Title":"Transfer Limits"}},"PhoneNumberFormLabels":{"title":"Edit Mobile Phone","subTitle":"What\'s your new mobile phone number?","description":"A SMS will be sent to your mobile phone number to verify it\'s you. Message and data rates may apply.","fieldLabel":"Mobile Phone Number","actionButton":{"continue":"Continue","submit":"Submit"}},"PhoneOtpVerificationFormLabels":{"title":"Confirm Mobile Phone Change","fieldLabel":"Enter the code sent to","actionButton":"Continue","description":["You are updating your mobile phone number to","In order to confirm this mobile phone change, please confirm your new mobile phone number."]},"EmailFormLabels":{"title":"Edit Email","description":"An email will be sent to your new email address to verify it\'s you.","fieldLabel":"Mobile Phone Number","actionButton":"Send Code"},"EmailOtpVerificationFormLabels":{"title":"Confirm Email Change","fieldLabel":"Enter the code sent to","actionButton":"Continue","description":["You are updating your email to","In order to confirm this email change, please confirm your new email address."]},"EmailPhoneChangeSuccessLabels":{"title":"Information Updated!","subTitle":"Important Notice","description":"For security, you will be logged out of your Novo account in all devices. Please log in using your new email.","actionButton":"Done"},"ConfirmPhoneFormLabels":{"title":"Confirm Your Identity","fieldLabel":"Enter the code sent to","actionButton":"Continue","description":"In order to save these changes, we\'ll first need to confirm it\'s you making this change. This is to protect your account security."},"AddressFormLabels":{"title":"Edit","subTitle":"What\'s your new","actionButton":"Submit","file":{"title":"Proof of Address","uploadLimit":"Allowed file formats: PDF, JPG, PNG | Maximum file size 10MB"}},"BankLetterModalLabels":{"title":"Bank Letter","description":["The Bank Letter is a document provided by our partner bank to demonstrate the banking relationship and ownership of the account.","The bank letter will include the following information."],"actionButton":"Download","fields":{"accountOwner":"Account Holder","companyName":"Business Name","accountNumber":"Account Number","routingNumber":"Routing Number","businessAddress":"Business Address","accountOpeningDate":"Account Opening Date"}},"DBAFormLabels":{"title":"Update your DBA","subTitle":"What\'s your new \u201cDoing Business As\u201d?","description":"<p>\\n Depending on the state or county of registration, it may be\\n called: DBA, Trade Name, Fictitious Name, or Assumed Name\\n certificate or statement.\\n </p>\\n <p>\\n Examples of various DBA Certificate names by state:\\n <br />\\n NC - Assumed Business Name Certificate\\n <br />\\n CT - Certificate of Trade Name\\n <br />
1\\n CA - Fictitious Business Name Statement\\n <br />\\n OH - State of Ohio Certificate, Trade Name Registration\\n <br />\\n </p>\\n <p>\\n If you didn\u2019t receive a certificate and your DBA is listed\\n publicly on the website of your Secretary of State, a\\n screenshot of the listing is acceptable.\\n </p>\\n <p>\\n We are unable to accept IRS certificates for proof of\\n registration at this time.\\n </p>","actionButton":"Continue","fileUploadLimit":"Allowed file formats: PDF, JPG, PNG | Maximum file size 10MB"},"DBASuccessScreenLabels":{"title":"We have your request!","description":["We\'ll notify you as all the info has been verified or reach out to you if we need any details.","You can order a new debit card with your updated DBA once it\'s approved."]},"InReviewUpdateReqLabels":{"title":"in Review","description_first":"The edits are under review.","description_second":"New","actionButton":"Cancel Request"},"StartNewApplicationLabels":{"DIFFERENT_EIN":"Different EIN","DIFFERENT_EIN_ONE":"The EIN you entered is different than the one we have on file.","DIFFERENT_EIN_TWO":"For compliance reasons we can\'t add a new DBA to your account when there has been an EIN change. If you want to add a new DBA to your account while your EIN has changed we must ask you fill out a new account application.","DIFFERENT_EIN_THREE":"After your application is approved you will get a new Novo bank account where your new DBA and EIN will be updated.","DIFFERENT_EIN_FOUR":"You can choose to keep both Novo accounts or close one of them afterwards.","START_NEW_APPLICATION":"Start New Application","BACK":"Back"},"W9FormLabels":{"title":"W9 Form","note":"Please provide a W-9 to certify what EIN/TIN is attached to your business. To provide your W-9, please follow these three steps:","fileUploadLimit":"Allowed file formats: PDF, JPG, PNG | Maximum file size 10MB","secondaryButton":"Back","actionButton":"Submit"},"DiscardChangesLabel":{"title":"Discard Changes?","subTitle":"All your changes would be lost. Do you want to terminate this process?","actionButton":"Confirm","secondaryButton":"Cancel"},"BusinessOwnersLabel":{"BUSINESS_OWNERSHIP_INFO":"Business Ownership Info","MANAGE_OWNER":"Manage Owner","PRIMARY_OWNER":"Primary Owner","OWNERSHIP":"Ownership","OWNER":"Owner","IN_REVIEW":"In Review","OWNERSHIP_PERCENTAGE":"Ownership Percentage"},"BusinessInfoUpdateLabels":{"REMOVE_THIS_OWNER":"Remove this owner"},"EditWebsiteLabels":{"title":"Edit Website","actionButton":"Submit"},"COMMON":{"EDIT":"Edit","FULL_NAME":"Full Name","OWNERSHIP":"Ownership","DOB":"Date of Birth","CITIZENSHIP":"Citizenship","SSN":"SSN (Social Security Number)","SSN_SIMPLE":"SSN","EMAIL":"Email","PHONE":"Phone","PERSONAL_ADDRESS":"Personal Address","SUBMIT":"Submit","DBA":"DBA (Doing Business As)","EIN":"EIN (Employer Identification Number)","HOME_ADDRESS":"Home Address","LEGAL_NAME":"Legal Name","BUSINESS_INFO":"Business Info","PERSONAL_INFO":"Personal Info","MOBILE_NUMBER":"Mobile Number","LEGAL_BUSINESS_NAME":"Legal Business Name","BUSINESS_TYPE":"Business Type","PHONE_NUMBER":"Phone Number","BUSINESS_ADDRESS":"Business Address","MAILING_ADDRESS":"Mailing Address","BUSINESS_OWNERSHIP_INFO":"Business Ownership Info","OWNER_NAME":"Owner Name","DATE_OF_BIRTH":"Date of Birth","ADDRESS":"Address","FULL_LEGAL_NAME":"Full Legal Name","BUSINESS_NAME":"Business Name","EMAIL_ADDRESS":"Email Address","ERROR_MESSAGE":"Something Went Wrong!","MOBILE_PHONE":"Mobile Phone","DBA_CERTIFICATE":"DBA Certificate","BENEFICIAL_OWNERS":"Beneficial Owners","WEBSITE":"Website","PROOF_OF_ADDRESS":"Proof of Address","IN_REVIEW":"In Review","REQUEST_A_NEW_CODE_IN":"Didn\'t get a code? Request a new code in {countdown}.","ADDRESS_DOC_EXAMPLES":["Utility bill","Lease agreement"],"AS_A_TYPE_YOUR_SSN":"As a {businessType} your SSN can be used in place of an EIN to identify your business."},"REVIEW_ACCOUNT_INFORMATION":{"TITLE":"Review your current account information","EDIT_INFORMATION":"Edit Information","LOOKS_GOOD":"Looks Good"},"DDAClosureLabels":{"CLOSE_ACCOUNT_BUTTON":"Close account","CLOSE_ACCOUNT_DESCRIPTION":"Permanently close your Novo account and remove access to Novo.","NOT_PRIMARY_USER":{"TITLE":"You\'re not the primary user","DESCRIPTION":"Only the Primary User on this account is authorized to make this request. Please contact {primaryUserEmail} to proceed.","DISMISS":"Dismiss","PRIMARY_USER_FALLBACK":"the Primary User"},"PASSWORD_MODAL":{"HEADER":"Close your Novo account?","DESCRIPTION":"Closing your account is permanent.","SUBMIT":"Close account","CANCEL":"Cancel"},"BLOCKERS":{"TITLE":"Almost done","SUBTITLE":"We can\'t close your account until everything below is resolved.","GOT_IT":"Got it"},"REASONS":{"TITLE":"Before you go","SUBTITLE":"We\'re sorry to see you leave. Let us know what led to your decision, your feedback helps us improve. Select all that apply:","SUB_REASONS_LABEL":"Select all that apply:","TEXTAREA_LABEL":"What could we have done better?","TEXTAREA_OPTIONAL":"Optional","TEXTAREA_PLACEHOLDER":"Your feedback helps us improve...","TEXTAREA_MIN_ERROR":"Please enter at least 80 characters","SUBMIT":"Submit","CANCEL":"Cancel","OTHERS_LABEL":"Other"},"AUTHORIZATION":{"TITLE":"Final authorization","SUBTITLE":"By clicking Delete account, you understand you\'ll lose access to the Novo platform permanently and cannot be undone.","CONFIRM_LABEL":"Please confirm all of the following:","CHECKBOX_1":"I authorize Novo to permanently close this account and understand my access will be revoked.","CHECKBOX_2":"I confirm there are no pending, upcoming, or recurring payments scheduled.","CHECKBOX_3":"I have downloaded any business documents and statements I need before closing my account.","CLOSE_ACCOUNT":"Close account","BACK":"Back"},"SUCCESS":{"TITLE":"You\'re all set","LOGOUT_BUTTON":"Log out"}},"BUSINESS_INFO_UPDATE_CHANGE_OPTIONS":{"name_type_ein":{"label":"Business N
1ame, Business Type and EIN","description":"Update everything at once."},"name_type":{"label":"Business Name or Business Type","description":"Update your business name or type."},"name":{"label":"Business Name","description":"Update your business name only."},"name_ein":{"label":"Business Name and EIN","description":"Update your business name and the EIN."},"ein":{"label":"EIN (Employer Identification Number)","description":"Update your business EIN only."},"ubo":{"label":"Ownership Info","description":"Update your UBO (Ultimate Beneficial Owner)"}},"IDENTITY_VERIFICATION_OPTIONS":{"license":{"label":"U.S. Driver\u2019s License / State ID"},"passport":{"label":"Passport"}},"BUSINESS_TYPE_OPTIONS":{"sole_proprietorship":{"label":"Sole Proprietorship"},"partnership":{"label":"Partnership"},"corporation":{"label":"Corporation"},"llc":{"label":"LLC"},"single_member_llc":{"label":"Single Member LLC"}},"ADD_UPB_STEPS":{"personal_info":{"title":"Personal Info"},"contact_info":{"title":"Contact Info"},"id_verification":{"title":"ID Verification"}},"Title":"Personal Info","first_name":"First Name","last_name":"Last Name","middle_name":"Middle Name","phone":"Phone","email":"Email","address":"Address","full_name":"Full Name","validation":{"INVALID_PHONE_NUMBER":"Please enter valid phone number","INVALID_EMAIL":"Please enter a valid email","INVALID_WEBSITE":"Please enter a valid website","BUSINESS_NAME_MIN":"Business Name must be at least 2 characters","BUSINESS_NAME_MAX":"Business Name must be at most 250 characters","CONFIRM_OWNERSHIP":"You must confirm the ownership","FIRST_NAME_MIN":"First name must be at least 1 characters long.","FIRST_NAME_MAX":"First name must be at most 30 characters","LAST_NAME_MIN":"Last name must be at least 2 characters long.","LAST_NAME_MAX":"Last name must be at most 30 characters","UNIT_MAX":"Unit must be at most 20 characters"},"addressHeader":{"personal_address":{"title":"Home Address","question":"What\'s your new home address?","documentShouldCover":["Your legal name","Your address"]},"business_address":{"title":"Business Address","question":"What\'s your new physical business address?","documentShouldCover":["New address","Your legal name","Your business name"]},"mailing_address":{"title":"Mailing Address","question":"What\'s your new mailing address?","documentShouldCover":["New address","Your legal name","Your business name"]}},"not_editable":"Not Editable","new_ubo":"New UBO","current_info":"Current Info","update_info":"Update Info","please_prepare_the_following_documents":"Please prepare the following documents for the update request.","the_document_must_be_complete_dated":"The document must be complete, dated and signed. Kindly note we cannot accept IRS documents as a proof of a business document.","upload_document":"Upload Document","select_your_document_type":"Select your document type","upload_a_selfie_along_with_your":" Upload a selfie along with your driver\'s license or state ID.","upload_a_photo_of_the_owner":"Upload a photo of the owner\'s front license or state ID.","upload_a_selfie_along_with_your_2":"Upload a selfie along with your passport\'s main page.","upload_a_photo_of_the_passport":" Upload a photo of the passport\'s main page.","signature_and_photo_must_be_visible":"Signature and photo must be visible","information_should_be_clear_and":"Information should be clear and in focus","cannot_be_expired_or_a_military":"Cannot be expired, or a Military ID","example_of_photo_and_id_needed":"Example of photo and ID needed","front_of_driver_s_license_state":"Front of driver\u2019s license / State ID","main_page_of_passport":"Main page of passport","upload_photo":"Upload Photo","upload_a_photo_like_the_example":"Upload a photo like the example shown","deleted":"Deleted","previous":"Previous","update_owner":"Update Owner","add_owner":"Add Owner","next":"Next","are_you_sure_you_want":"Are you sure you want to cancel?","if_you_cancel_this_process_now":"If you cancel this process now, none of the information you have entered so far will be saved. You will need to start from the beginning next time.","stay_and_continue":"Stay and continue","cancel_anyway":"Cancel anyway","confirm_ownership_info":"Confirm ownership info","update_ownership_info":"Update ownership info","i_confirm_that_the_information_provided":"I confirm that the information provided on the beneficial\\n ownership of the business is accurate and factual, and I\\n would like to proceed with the request.","provide_your_ein_certificate":"Provide your EIN certificate","please_attache_your_ein_certificate_issued":"Please attache your EIN certificate issued by the IRS","to_provide_your_w_9_form":"To provide your W-9 form, please follow these three steps.","n1_download":"1. Download the","w_9_form":"W-9 Form","n2_open_the_w_9_form":"2. Open the W-9 form, fill and sign it digitally using free tool such as Adobe Fill & Sign, or print it out, and sign it manually.","you_can_access_the_tools_app":"You can access the tools/app by selecting the preferred platform..","open_adobe_tool_in_your_device":"Open Adobe tool in your device browser.","download_the_adobe_app_from_play":"Download the Adobe app from Play Store.","download_the_adobe_app_from_app":"Download the Adobe app from App Store.","proof_of_updated_ein":"Proof of updated EIN","your_business_ein_certificate_issued":"Your business EIN certificate issued by the IRS.","proof_of_identity":"Proof of Identity","provide_a_photo_of_you_next":"Provide a photo of you next to your driver\u2019s license or passport.","review_your_update_request":"Review your update request","confirm_and_verify_the_changes_you":"Confirm and verify the changes you have requested before final submission.","update_your_business_ein":"Update your Business EIN","please_provide_updated_business_ein":"Please provide updated Business EIN.","provide_updated_ein":"Provide updated EIN","ein_certificate_issued_by_irs":"EIN certificate issued by IRS","update_your_business_info":"Update your business info","select_a_section_to_make_changes":"Select a section to make changes.","once_you_select_an_option_you":"Once you select an option, you\'ll see a list of documents and information required to process your request.","close"
1:"Close","proof_of_updated_business_name":"Proof of updated business name","the_official_name_amendment_document":"The official name amendment document that shows the business name change or, the official business document that shows the correct business name if an incorrect one was updated on the account.","confirm_your_ownership_and_ubo_info":"Confirm your ownership and UBO info","please_confirm_the_information_regarding_your":"Please confirm the information regarding your business ownership.","update_your_business_name":"Update your Business Name","please_provide_your_new_legal_business":"Please provide your new legal business name","provide_your_new_legal_business_name":"Provide your new legal business name","new_legal_business_name":"New legal business name","business_name_amendment_document":"Business name amendment document","provide_your_secretary_of_state_document":"Provide your Secretary of State document","please_attach_a_business_document":"Please attach a business document that has your name as a member, manager, owner, or organizer of the business.","you_can_attach_any_of":"You can attach any of the following documents.","statement_of_organizer":"Statement of Organizer","initial_resolutions":"Initial Resolutions","articles_of_organization_incorporation":"Articles of Organization/Incorporation","operating_agreement":"Operating Agreement","minutes_of_meeting":"Minutes of Meeting","conversion_document":"Conversion Document","in_case_the_business_type":"(In case the business type is being changed from LLC to Corporation.)","partnership_agreement":"Partnership Agreement","in_case_the_business_type_2":"(In case the business type is being changed to Partnership.)","secretary_of_state_document":"Secretary of State document","proof_of_updated_business_name_2":"Proof of updated business name or type","secretary_of_state_documents_articles":"Secretary of State documents (Articles of Organization, Signed Operating Agreement, etc.)","provide_updated_legal_business_name":"Provide updated legal Business Name","select_updated_business_type":"Select updated Business Type","please_be_aware_that_while_we":"Please be aware that while we are able to support most business entity changes, if you are an LLC changing to a Corporation, your EIN number must remain the same. If the EIN number has changed, for these specific cases, you will need to apply for a new account.","please_write_to_us_via":"Please write to us via a support query with your circumstances, and we may be able to help you.","create_ticket":"Create Ticket","proof_of_updated_business_name_3":"Proof of updated business name and type","cancel_this_update":"Cancel this update?","no_changes_will_be_made":"No changes will be made on this page.","never_mind":"Never mind","we_are_reviewing_your_request":"We are reviewing your request","we_will_update_you_shortly":"We will update you shortly","requested_business_info":"Requested Business Info","we_re_looking_everything_over":"We\u2019re looking everything over","your_ownership_info_has_been_updated":"Your ownership info has been updated","you_should_hear_back_from_us":"You should hear back from us within 2 business days.","you_can_find_all_your_updates":"You can find all your updates by going to Account Info.","remove_this_owner":"Remove this owner?","this_owner_s_info_will":"This owner\u2019s info will be deleted, along with any of their data.","removing_this_owner_doesn_t_remove":"Removing this owner doesn\u2019t remove their access to this account if they are on the User List. To completely remove their access, make sure to delete them from the User List as well.","remove":"Remove","are_you_sure_you_want_2":"Are you sure you want to close this?","by_cancelling_this_process_now_any":"By cancelling this process now, any information you have entered or updated for UBO so far will not be saved.","you_will_still_be_able":"You will still be able to proceed with updating the Business Info.","continue_updating_ubo_information":"Continue updating UBO information","back_to_business_info_update":"Back to Business Info update","enter_email_address":"Enter email address","enter_address":"Enter Address","no_p_o_boxes":"No P.O.Boxes","unit":"Unit","enter_unit":"Enter Unit","enter_city":"Enter City","select_state":"Select State","zip_code":"Zip Code ","enter_zip_code":"Enter zip code","owner_details":"Owner details","upload_ubo_identity_document":"Upload UBO Identity Document","edit_this_owner_s_info":"Edit this owner\'s info","add_another_owner":"Add another owner","make_updates_to_their_personal_info":"Make updates to their personal info, contact info, and identification.","enter_their_personal_info_contact_info":"Enter their personal info, contact info, and identification.","progress":"Progress","percentage_owned":"Percentage Owned","enter_first_name":"Enter first name","enter_middle_name":"Enter middle name","enter_last_name":"Enter last name","select_citizenship":"Select citizenship","social_security_number":"Social Security Number","select_ubo_s_date_of_birth":"Select UBO\'s Date of Birth","confirm_ownership_and_ubo_info":"Confirm ownership and UBO info","review_your_update":"Review your update","make_sure_everything_looks_good_before":"Make sure everything looks good before submitting.","i_authorize_novo_to_update":"I authorize Novo to update the business ownership on my account and confirm I have obtained consent from all relevant business owners.","update_your_ownership_info":"Update your ownership info","adjust_the_percentage_of_ownership":"Adjust the percentage of ownership for each person.","required_field_please_enter_a_value":"Required field. Please enter a value.","there_s_no_space_for_more":"There\u2019s no space for more owners","add_another_owner_by_adjusting_your":"Add another owner by adjusting your percentages to free up at least 25%.","verify_your_identity":"Verify your identity","please_provide_your_government_id":"Please provide your government ID to verify your identity","upload_your_government_id":"Upload your government ID","edit_business_information":"Edit business Information","review_business_information":"Review business Information","change_password":"Change password","to_keep_your_novo_account_safe":"To keep your Novo account safe we must verify address changes.","please_provide_a_document_that_displays":"Please provide a document that displays these:","all_provided_docs_should_not":"All provided docs should not be older than 30 days.","some_common_examples":"Some common examples are:","unit_suite":"Unit / Suite","enter_unit_suite":"Enter Unit / Suite","zip":"Zip","enter_zip":"Enter Zip","all_done":"ALL DONE!","your_request_has_been_submitted":"Your request has been submitted","we_re_reviewing_your_business_info":"We\u2019re reviewing your business Info updates and will get back to you within 2 business days.","confirm_business_info":"Confirm Business Info","confirm_submit":"Confirm & Submit","requested_info":"Requested Info","cancel_this_request":"Cancel this Request","confirm_ein":"Confirm EIN","please_confirm_if_your_ssn":"Please confirm if your SSN is still relevant to identify your business or enter your new EIN
1in case you have one.","keep_using_my_ssn":"Keep using my SSN","i_have_new_ein":"I have new EIN","verify_your_ein":"Verify your EIN","update_ein_info":"Update EIN info","i_confirm_that_the_information_provided_2":"I confirm that the information provided on the EIN is accurate and factual, and I would like to proceed with the request.","update_your_ein":"Update your EIN","update":"Update","provide_updated_dba":"Provide updated DBA","didn_t_get_a_code":"Didn\'t get a code?","request_a_new_code":"Request a new code.","request_a_new_code_2":"Request a new code","we_re_reviewing_your_updates":"We\'re reviewing your updates","you_should_hear_back_from_us_2":"You should hear back from us soon.","update_request":"Update Request","please_revert_requested_information":"Please revert requested information","cancel_updates":"Cancel updates","something_went_wrong":"Something went wrong","no_changes_detected_if_you_need":"No changes detected. If you need to update ownership information, please try again.","error":"Error","file_size_should_be_less_than":"File size should be less than 10 MB","uploaded_file_size_is_higher":"Uploaded File size is higher","businessDocuments":{"subDescription":"Please provide a business document that has your name as a member, manager, owner, or organizer of the business. This can be any of the following documents.","subList":["Statement of Organizer","Initial Resolutions","Articles of Organization/Incorporation","Operating Agreement","Minutes of Meeting","Conversion Document - (In case the business type is being changed from LLC to Corporation.)"],"partnershipAgreementDashed":"Partnership Agreement - (In case the business type is being changed to Partnership)","partnershipAgreement":"Partnership Agreement (In case the business type is being changed to Partnership)"},"uboRequirements":{"description":"You\u2019ll need to confirm any business owners that own or control at least 25% of the company. Here\u2019s what you\u2019ll need to provide:","subList":["Personal info (name, citizenship, DOB, and SSN)","Contact info","Driver\u2019s license or Passport","Selfie photo of person next to ID"]},"authorization":{"name":"I, <who>{who}</who>, hereby authorize Novo to update my business name from <from>{from}</from> to <to>{to}</to> on the account ending in <acct>{acct}</acct> due to a business name change.","name_and_type":"I, <who>{who}</who> , hereby authorize Novo to update my business name or type from <from>{fromName} {fromType}</from> to <to>{toName} {toType}</to> on the account ending in <acct>{acct}</acct> due to a business name or type change.","ein":"I,<who>{who}</who>, member of<company>{company}</company>hereby authorize Novo to update my EIN from<from>{from}</from>to<to>{to}</to>on the account ending in<acct>{acct}</acct>due to receiving a new EIN.","name_ein":"I,<who>{who}</who>, hereby authorize Novo to update my business name from<from>{from}</from>to<to>{to}</to> and update my EIN from<einFrom>{einFrom}</einFrom>to<einTo>{einTo}</einTo>on the account ending in<acct>{acct}</acct>due to a business name change along with the EIN.","name_type_ein":"I, <who>{who}</who> , hereby authorize Novo to update my business name and type from <from>{fromName} {fromType}</from> to <to>{toName} {toType}</to> and update my EIN from <einFrom>{einFrom}</einFrom> to <einTo>{einTo}</einTo> on the account ending in <acct>{acct}</acct> due to a business name and type change along with the EIN."},"businessNameType":{"title":"{connector, select, or {Update your Business Name or Type} other {Update your Business Name and Type}}","description":"{connector, select, or {Please provide updated legal Business Name or Type.} other {Please provide updated legal Business Name and Type.}}"},"let_us_know_who_owns_25_or_more_of_the_business":"Let us know who owns 25% or more of the business.","i_confirm_no_other_owners_has_more_than_25_of_ownership":"I confirm no other owners has more than 25% of ownership in the business and information provided on the beneficial\\n ownership of the business is accurate and factual, and I\\n would like to proceed with the request. ","only_add_owners_with_25_or_more_ownership":"Only add owners with 25% or more ownership","ownership_should_be_more_than_25":"Ownership should be more than 25%","include_anyone_who_owns_25_or_more_of_the_business":"Include anyone who owns 25% or more of the business.","city":"City","state":"State","LanguagePreferenceLabels":{"title":"Language","description":"The language Novo uses across the web app, emails, and Ask Anything.","saveLabel":"Save changes"},"AssistantAccessLabels":{"saveSuccess":"Data access updated"},"SettingsTabsLabels":{"accountInfo":"Account info","preferences":"Preferences"}}');(0,i.registerCatalogue)("account-info",t,{es:()=>a.e(22911).then(a.t.bind(a,22911,19)).then((e=>e.default))})},30958(e,n,a){"use strict";a.d(n,{E:()=>i,x:()=>t});let i=function(e){return e.SUPPORT="SUPPORT",e.SEND_MONEY="SEND_MONEY",e.CREDIT_CARD="CREDIT_CARD",e.LENDING="LENDING",e}({}),t=function(e){return e.BLOCKERS="blockers",e.REASONS="reasons",e.AUTHORIZATION="authorization",e.SUCCESS="success",e}({})},85875(e,n,a){"use strict";a.d(n,{Ac:()=>y,Ah:()=>P,An:()=>x,Bc:()=>D,DW:()=>_,EU:()=>g,Io:()=>I,OG:()=>L,OK:()=>u,Oj:()=>O,W5:()=>v,YB:()=>E,YL:()=>S,Yd:()=>R,Yq:()=>m,aN:()=>A,bD:()=>p,bI:()=>N,cD:()=>k,co:()=>F,h5:()=>f,jU:()=>h,km:()=>C,lD:()=>d,rx:()=>c,uV:()=>l,xw:()=>T,yQ:()=>o,zv:()=>b});
1var i=a(21215),t=a(71067),s=a(30958),r=a(72937);a(19582);var d=function(e){return e.USERS_INFO="USERS_INFO",e.ACCOUNT_INFO="ACCOUNT_INFO",e.PERSONAL_INFO="PERSONAL_INFO",e.BUSINESS_INFO="BUSINESS_INFO",e.BUSINESS_DETAILS="BUSINESS_DETAILS",e.ME_INFO="ME_INFO",e.CONFIG_INFO="CONFIG_INFO",e.BUSINESS_INFO_UPDATE_FETCH_OWNERSHIP="BUSINESS_INFO_UPDATE_FETCH_OWNERSHIP",e.BUSINESS_INFO_UPDATE_FETCH_OWNERS="BUSINESS_INFO_UPDATE_FETCH_OWNERS",e.BUSINESS_INFO_UPDATE_SUBMIT="BUSINESS_INFO_UPDATE_SUBMIT",e.EIN_SSN_DETAILS="EIN_SSN_DETAILS",e.BUSINESS_UBO_UPDATE="BUSINESS_UBO_UPDATE",e.ACKNOWLEDGE_ACCOUNT_INFO="ACKNOWLEDGE_ACCOUNT_INFO",e}(d||{}),l=function(e){return e.PERSONAL_INFO="PERSONAL_INFO",e.BUSINESS_INFO="BUSINESS_INFO",e}(l||{}),o=function(e){return e.ACCOUNT_INFO="ACCOUNT_INFO",e.BANK_LETTER_MODAL="BANK_LETTER_MODAL",e.EMAIL="EMAIL",e.EMAIL_IDENTITY_VERIFICATION="EMAIL_IDENTITY_VERIFICATION",e.EMAIL_OTP_VERIFICATION="EMAIL_OTP_VERIFICATION",e.PHONE_NUMBER="PHONE_NUMBER",e.CONFIRM_PHONE_CHANGE="CONFIRM_PHONE_CHANGE",e.PHONE_OTP_VERIFICATION="PHONE_OTP_VERIFICATION",e.ADDRESS="ADDRESS",e.MAILING_ADDRESS="MAILING_ADDRESS",e.IN_REVIEW_UPDATE_REQUEST="IN_REVIEW_UPDATE_REQUEST",e.DBA="DBA",e.DBA_EIN="DBA_EIN",e.DBA_START_NEW_APPLICATION="DBA_START_NEW_APPLICATION",e.DBA_W9="DBA_W9",e.DBA_EIN_UPDATE="DBA_EIN_UPDATE",e.DBA_EIN_REVIEW="DBA_EIN_REVIEW",e.DISCARD_CHANGES="DISCARD_CHANGES",e.BUSINESS_NAME_TYPE_CHANGE="BUSINESS_NAME_TYPE_CHANGE",e.ADD_UBO="ADD_UBO",e.CONFIRM_UBO_EXIT="CONFIRM_UBO_EXIT",e.CONFIRM_EXIT_BUSINESS_INFO_UPDATE="CONFIRM_EXIT_BUSINESS_INFO_UPDATE",e.CONFIRM_CANCEL_BUSINESS_INFO_UPDATE="CONFIRM_CANCEL_BUSINESS_INFO_UPDATE",e.UBO_DETAILS="UBO_DETAILS",e.CONFIRM_UBO_DELETE="CONFIRM_UBO_DELETE",e.WEBSITE="WEBSITE",e.DDA_CLOSE_ACCOUNT_NOT_PRIMARY_USER="DDA_CLOSE_ACCOUNT_NOT_PRIMARY_USER",e}(o||{});const c={shouldCloseOnBackdrop:!1,shouldCloseOnEsc:!1};var m=function(e){return e.FROZEN="FROZEN",e}(m||{}),u=function(e){return e.ACCOUNT_STATUS="ACCOUNT_STATUS",e}(u||{}),_=function(e){return e.FULL_FREEZE="FULL_FREEZE",e}(_||{});const v=6048e5,N="/upload/personal-info-update-upload",p="/upload/business-info-update-upload",E=[{value:"name_type_ein",get label(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_type_ein.label")},get description(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_type_ein.description")}},{value:"name_type",get label(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_type.label")},get description(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_type.description")}},{value:"name",get label(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name.label")},get description(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name.description")}},{value:"name_ein",get label(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_ein.label")},get description(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_ein.description")}},{value:"ein",get label(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.ein.label")},get description(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.ein.description")}},{value:"ubo",get label(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.ubo.label")},get description(){return(0,r.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.ubo.description")}}],g=[{value:"LICENSE",get label(){return(0,r.catalogueText)("account-info","IDENTITY_VERIFICATION_OPTIONS.license.label")}},{value:"PASSPORT",get label(){return(0,r.catalogueText)("account-info","IDENTITY_VERIFICATION_OPTIONS.passport.label")}}],T=[{value:t.e8.sole_proprietorship,get label(){return(0,r.catalogueText)("account-info","BUSINESS_TYPE_OPTIONS.sole_proprietorship.label")}},{value:t.e8.partnership,get label(){return(0,r.catalogueText)("account-info","BUSINESS_TYPE_OPTIONS.partnership.label")}},{value:t.e8.corporation,get label(){return(0,r.catalogueText)("account-info","BUSINESS_TYPE_OPTIONS.corporation.label")}},{value:t.e8.llc,get label(){return(0,r.catalogueText)("account-info","BUSINESS_TYPE_OPTIONS.llc.label")}},{value:t.e8.single_member_llc,get label(){return(0,r.catalogueText)("account-info","BUSINESS_TYPE_OPTIONS.single_member_llc.label")}}],k={name:["NAME"],ein:["EIN"],name_ein:["NAME","EIN"],name_type:["NAME","TYPE"],name_type_ein:["NAME","TYPE","EIN"],type:["NAME","TYPE"],ubo:["UBO"]},I={sole_proprietorship:"SOLE_PROPRIETORSHIP",partnership:"PARTNERSHIP",corporation:"CORPORATION",llc:"LLC",single_member_llc:"LLC"},y=[{get title(){return(0,r.catalogueText)("account-info","ADD_UPB_STEPS.personal_info.title")}},{get title(){return(0,r.catalogueText)("account-info","ADD_UPB_STEPS.contact_info.title")}},{get title(){return(0,r.catalogueText)("account-info","ADD_UPB_STEPS.id_verification.title")}}
1],S={name:["select_change_type","update_name","verify_identity","confirm_ownership","update_ownership_info","ubo_detail","add_ubo","review_changes","success"],ein:["select_change_type","update_ein","verify_identity","review_changes","success"],name_type:["select_change_type","update_name_type","business_type_document","verify_identity","confirm_ownership","update_ownership_info","ubo_detail","add_ubo","review_changes","success"],name_ein:["select_change_type","update_name","update_ein","verify_identity","confirm_ownership","update_ownership_info","ubo_detail","add_ubo","review_changes","success"],name_type_ein:["select_change_type","update_name_type","business_type_document","update_ein","verify_identity","confirm_ownership","update_ownership_info","ubo_detail","add_ubo","review_changes","success"],ubo:["select_change_type","update_ownership_info","ubo_detail","add_ubo","review_changes","success"]},A={ein:"I, NAME, member of EXISTING_COMPANY_NAME authorize Novo to update my EIN from EXISTING_EIN to NEW_EIN on the account ending in EXISTING_ACCOUNT_NUMBER due to receiving a new EIN.",name:"I, NAME, hereby authorize Novo to update my business name from EXISTING_COMPANY_NAME to NEW_COMPANY_NAME on the account ending in EXISTING_ACCOUNT_NUMBER due to a business name change.",name_ein:"I, NAME, hereby authorize Novo to update my business name from EXISTING_COMPANY_NAME to NEW_COMPANY_NAME and update my EIN from EXISTING_EIN to NEW_EIN on the account ending in EXISTING_ACCOUNT_NUMBER due to a business name change along with the EIN.",name_type:"I, NAME, hereby authorize Novo to update my business name or type from EXISTING_COMPANY_NAME EXISTING_BUSINESS_TYPE to NEW_COMPANY_NAME NEW_BUSINESS_TYPE on the account ending in EXISTING_ACCOUNT_NUMBER due to a business name or type change.",name_type_ein:"I, NAME, hereby authorize Novo to update my business name and type from EXISTING_COMPANY_NAME EXISTING_BUSINESS_TYPE to NEW_COMPANY_NAME NEW_BUSINESS_TYPE and update my EIN from EXISTING_EIN to NEW_EIN on the account ending in EXISTING_ACCOUNT_NUMBER due to a business name and type change along with the EIN.",type:"I, NAME, hereby authorize Novo to update my business name and type from EXISTING_COMPANY_NAME EXISTING_BUSINESS_TYPE to NEW_COMPANY_NAME NEW_BUSINESS_TYPE on the account ending in EXISTING_ACCOUNT_NUMBER due to a business name and type change.",ubo:"I, NAME, hereby authorize Novo to update my business ownership on the account ending in EXISTING_ACCOUNT_NUMBER."},f={visible:{transition:{delayChildren:.2,staggerChildren:.05}}},x={hidden:{y:-10,opacity:0},visible:{y:0,opacity:1}},h={enterFromLeft:{x:"-100vw",opacity:0,transition:{duration:.7}},enterFromRight:{x:"100vw",opacity:0,transition:{duration:.7}},center:{x:0,opacity:1,transition:{duration:.7}},exitToLeft:{x:"100vw",opacity:0,transition:{duration:.7}},exitToRight:{x:"-100vw",opacity:0,transition:{duration:.7}}}
1,C={enterFromLeft:{x:"-200px",opacity:0,transition:{duration:.5}},enterFromRight:{x:"200px",opacity:0,transition:{duration:.5}},center:{x:0,opacity:1,transition:{duration:.5,delay:.1}},exitToLeft:{x:"200px",opacity:0,transition:{duration:.5}},exitToRight:{x:"-200px",opacity:0,transition:{duration:.5}}},O={get first_name(){return(0,r.catalogueText)("account-info","first_name")},get last_name(){return(0,r.catalogueText)("account-info","last_name")},get middle_name(){return(0,r.catalogueText)("account-info","middle_name")},citizenship:"Citizenship",ssn:"SSN",dob:"DOB",get phone(){return(0,r.catalogueText)("account-info","phone")},get email(){return(0,r.catalogueText)("account-info","email")},get address(){return(0,r.catalogueText)("account-info","address")},get full_name(){return(0,r.catalogueText)("account-info","full_name")}},D="DD MMM YYYY",b={[s.E.SUPPORT]:i.NOVO_PAGE_ROUTES.Support,[s.E.SEND_MONEY]:i.NOVO_PAGE_ROUTES.MakePayment,[s.E.CREDIT_CARD]:i.NOVO_PAGE_ROUTES.NovoCard,[s.E.LENDING]:i.NOVO_PAGE_ROUTES.Lending},R="OTHER",L=80,F=1e3,P=[{label:"English (US)",value:"en"},{label:"Espa\xf1ol",value:"es"}]},26443(e,n,a){"use strict";a.d(n,{Fb:()=>o.formateSSN,Gh:()=>A,Iy:()=>k,JX:()=>D,QG:()=>C,TR:()=>x,bL:()=>E,f8:()=>T,n$:()=>f,n4:()=>I,pL:()=>S,pY:()=>h,qt:()=>b,vd:()=>y,yi:()=>v,zx:()=>R});var i=a(90024),t=a(73681),s=a.n(t),r=a(85875),d=a(91317),l=a.n(d),o=a(36195),c=a(43051);const m=["data"],u=["data"],_=["entry","type","requestId","modalProps","newValue","otpSentTo","files"],v=e=>{if(e.data.errors)throw new Error(e.data.errors[0].message);if(!e.data.data)throw new Error("No data returned");if(!e.data.data.responseData)throw new Error("Developer doesn't define aliases (responseData) for Query/Mutation");return e.data.data.responseData},N=e=>{const{address:n,address_line_1:a,address_line_2:i,city:t,state:s,zip_code:r}=e;return`${[a||n,i,t,s].filter((e=>!!e)).join(", ")} - ${r||""}`},p=(e,n)=>{var a;const{data:t}=n,d=(0,i.A)(n,m),l=d.in_review?r.yQ.IN_REVIEW_UPDATE_REQUEST:"";switch(e){case"name":return Object.assign({title:c.Sq.LEGAL_NAME,formattedValue:n.data.name},d);case"email":return Object.assign({title:c.Sq.EMAIL,formattedValue:n.data.email,modalName:l||r.yQ.EMAIL},d);case"phone":return Object.assign({title:c.Sq.MOBILE_PHONE,formattedValue:I(n.data.phone),modalName:l||r.yQ.PHONE_NUMBER},d);case"address":return Object.assign({title:c.Sq.HOME_ADDRESS,formattedValue:N(t.address),modalName:l||r.yQ.ADDRESS,docTitle:c.Sq.PROOF_OF_ADDRESS},d);case"ssn":return Object.assign({title:c.Sq.SSN,formattedValue:null==(a=n.data.ssn)?void 0:a.masked},d);case"dob":return Object.assign({title:c.Sq.DOB,formattedValue:s()(n.data.dob).format("DD MMM YYYY")},d);default:return{}}},E=e=>{const n={};return Object.keys(e).forEach((a=>{const i=a;n[i]=p(i,e[i])})),n},g=(e,n)=>{const a=(0,i.A)(n,u),t=a.in_review?r.yQ.IN_REVIEW_UPDATE_REQUEST:"";switch(e){case"company_name":return Object.assign({title:c.Sq.LEGAL_BUSINESS_NAME,formattedValue:n.data.company_name},a,{is_editable:!0});case"dba":return Object.assign({title:"DBA",formattedValue:n.data.dba||"N.A",modalName:t||r.yQ.DBA,docTitle:c.Sq.DBA_CERTIFICATE},a);case"phone":return Object.assign({title:c.Sq.PHONE_NUMBER,formattedValue:I(n.data.phone),modalName:t||r.yQ.PHONE_NUMBER},a);case"address":return Object.assign({title:c.Sq.BUSINESS_ADDRESS,formattedValue:N(n.data.address),modalName:t||r.yQ.ADDRESS,docTitle:c.Sq.PROOF_OF_ADDRESS},a);case"mailing_address":return Object.assign({title:c.Sq.MAILING_ADDRESS,formattedValue:N(n.data.address),modalName:t||r.yQ.MAILING_ADDRESS,docTitle:c.Sq.PROOF_OF_ADDRESS},a);case"name":return Object.assign({title:c.Sq.BUSINESS_NAME,formattedValue:n.data.name||"N.A"},a);case"ein":return Object.assign({title:"EIN",formattedValue:n.data.ein||"N.A"},a);case"beneficial_owners":return Object.assign({title:c.Sq.BENEFICIAL_OWNERS,formattedValue:n.data.beneficial_owners||"N.A"},a);case"website":return Object.assign({title:c.Sq.WEBSITE,formattedValue:n.data.website||"-",modalName:t||r.yQ.WEBSITE},a);default:return{}}},T=e=>{const n={};return Object.keys(e).forEach((a=>{const i=a;n[i]=g(i,e[i])})),n},k=(e,n)=>{if(e===r.uV.PERSONAL_INFO&&n===r.yQ.ADDRESS)return c.cE.personal_address;if(e===r.uV.BUSINESS_INFO){if(n===r.yQ.ADDRESS)return c.cE.business_address;if(n===r.yQ.MAILING_ADDRESS)return c.cE.mailing_address}return{}},I=e=>e?e.slice(-10).replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):"",y=(e,n,a)=>
1{const i=[n.first_name,n.middle_name,n.last_name].filter(Boolean).join(" "),t=e.company_name,r=a.bank_account_number,d=a.routing_number;let l="-";a.opening_date&&(l=s()(a.opening_date).format("MMM D, YYYY"));const o=e.business_address;return{accountOwner:i,companyName:t,accountNumber:r,routingNumber:d,accountOpeningDate:l,businessAddress:N(o)}},S=e=>{const{entry:n}=e,a=(0,i.A)(e,_);return n===r.uV.PERSONAL_INFO?p("address",a):n===r.uV.BUSINESS_INFO?g("dba",a):{}},A=e=>{if(e)return r.xw.find((n=>n.value===e))},f=e=>e.slice(-4),x=(e,n,a,i,t=!1)=>{var d;const o=[];if(t)return n.forEach((e=>{o.push({action:"DELETE",type:"EXISTING",id:e.id})})),o;n.forEach((n=>{const a={action:"UPDATE",type:"EXISTING"};if(null!=n&&n.identity_document_id&&null!=n&&n.identity_document_type){var i,t,d,c;if(a.identity_document={file_name:null!=(i=n.identity_document_id.file_name)?i:"",type:n.identity_document_type},n.address)a.address={address_line_1:null!=(t=null!=(d=n.address.primary_line)?d:n.address.address_line_1)?t:"",city:n.address.city,state:n.address.state,zip_code:n.address.zip_code,unit:null!=(c=n.address.unit)?c:n.address.address_line_2};a.dob=s()(n.dob).format(r.Bc),a.email=n.email,a.first_name=n.first_name,a.last_name=n.last_name,a.middle_name=n.middle_name,a.phone=n.phone,a.ownership_percentage=n.ownership_percentage,a.citizenship=n.citizenship,a.ssn=n.ssn}else{var m,u;const i=e.find((e=>e.id===n.id));if((null==i||null==(m=i.ownership_percentage)?void 0:m.toString())===(null==(u=n.ownership_percentage)?void 0:u.toString()))return;a.ownership_percentage=n.ownership_percentage}l()(n.id)?(a.action="ADD",a.type="NEW"):(a.id=n.id,a.action="UPDATE",a.type="EXISTING"),o.push(a)})),a.forEach((e=>{if(!e.id)return;const n={action:"DELETE",type:"EXISTING",id:e.id};o.push(n)}));const c=e.find((e=>!0===e.is_applicant));if(c&&(null==i?void 0:i.toString())!==(null==(d=c.ownership_percentage)?void 0:d.toString())){const e={action:"UPDATE",type:"EXISTING",id:c.id,ownership_percentage:i};o.push(e)}return o},h=e=>e?e.replace(/(\d{2})(\d{7})/,"$1-$2"):"",C=e=>e?e.replace(/^(\w{2})\w{5}(\w{2})$/,"XX-XXXXX$2"):"";function O(e,n){const a={};for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const t=e[i],s=n[i];if("primary_line"===i){const i=e.address_line_1,t=n.primary_line;i!==t&&(a.address_line_1={old_value:String(null!=i?i:""),new_value:String(null!=t?t:"")})}else t!==s&&(a[i]={old_value:String(null!=t?t:""),new_value:String(null!=s?s:"")})}return a}function D(e,n){const a=[];return n.forEach((n=>{const i=[...e].find((e=>e.id===n.id));if(i){const e=function(e,n){const a={};for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const t=e[i],s=n[i];if("identity_document"===i||"identity_document_id"===i||"type"===i||"action"===i||"id"===i||"role"===i||"identity_document_type"===i)continue;t!==s&&("address"===i?a.address=O(e.address,n.address):a[i]={old_value:String(null!=t?t:""),new_value:String(null!=s?s:"")})}return a}(i,n);Object.keys(e).length>0&&a.push({id:n.id,changes:e,data:i})}})),a}const b=e=>{var n;return e?e.includes(" ")?e.split(" ").map((e=>{var n;return e.charAt(0).toUpperCase()+(null==e||null==(n=e.toLowerCase())?void 0:n.slice(1))})).join(" "):e.charAt(0).toUpperCase()+(null==e||null==(n=e.toLowerCase())?void 0:n.slice(1)):""};function R(e){const n=e.old_data,a=e.new_data;for(const i in n)("ownership_percentage"===i||null===n[i]&&a&&null===a[i])&&(delete n[i],a&&delete a[i]);return e}},43051(e,n,a){"use strict";a.d(n,{Co:()=>f,Cq:()=>r,Cu:()=>u,D4:()=>m,Dc:()=>v,FL:()=>d,GM:()=>k,H1:()=>y,HQ:()=>I,Hn:()=>h,Hq:()=>O,NS:()=>S,O1:()=>c,Sq:()=>A,WD:()=>t,YA:()=>E,_z:()=>_,c2:()=>o,cE:()=>s,dB:()=>N,eh:()=>l,kt:()=>g,uv:()=>x,yr:()=>p,yz:()=>C});var i=a(72937);a(19582);const t=(0,i.createLabels)("account-info"),{addressHeader:s,AccountInfoContainerLabels:r,PhoneNumberFormLabels:d,PhoneOtpVerificationFormLabels:l,EmailFormLabels:o,EmailOtpVerificationFormLabels:c,EmailPhoneChangeSuccessLabels:m,ConfirmPhoneFormLabels:u,AddressFormLabels:_,BankLetterModalLabels:v,DBAFormLabels:N,DBASuccessScreenLabels:p,InReviewUpdateReqLabels:E,StartNewApplicationLabels:g,W9FormLabels:T,DiscardChangesLabel:k,BusinessOwnersLabel:I,BusinessInfoUpdateLabels:y,EditWebsiteLabels:S,COMMON:A,REVIEW_ACCOUNT_INFORMATION:f,DDAClosureLabels:x,LanguagePreferenceLabels:h,AssistantAccessLabels:C,SettingsTabsLabels:O}=t},71067(e,n,a){"use strict";a.d(n,{N0:()=>s,OW:()=>t,e8:()=>i});var i=function(e){return e.sole_proprietorship="sole_proprietorship",e.llc="llc",e.partnership="partnership",e.corporation="corporation",e.single_member_llc="single_member_llc",e}(i||{}),t=function(e){return e.BUSINESS_INFO_UPDATE="BUSINESS_INFO_UPDATE",e.BUSINESS_OWNERS_UPDATE="BUSINESS_OWNERS_UPDATE",e}(t||{}),s=function(e){return e.REVIEW_ACCOUNT_INFO="REVIEW_ACCOUNT_INFO",e}(s||{})},70420(e,n,a){"use strict";a.d(n,{d:()=>d,u:()=>l});var i=a(16787),t=a(54701),s=a(76434),r=a(89830);const d=async(e,n,a)=>(0,i.In)({axiosInstance:e,config:Object.assign({data:{query:(0,t.y)(s.ChangeTransactionSource),variables:n}},a),requestAPIType:"Mutation"}),l=async(e,n,a)=>(0,i.In)({axiosInstance:e,config:Object.assign({data:{query:(0,t.y)(r.FetchTransactionLedgerDetails),variables:n}},a)})},69248(e,n,a){"use strict";a.d(n,{N:()=>r,f:()=>d});var i=a(49100),t=a(54701),s=a(71555);const r=e=>({type:"API",[i.rY]:"WAIT_FOR_GET_TRANSACTION_MEDIUM_FILTERS",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_GET_TRANSACTION_MEDIUM_FILTERS",data:{query:(0,t.y)(s.GetTransactionMediumFilters)},responseType:"query"}}),d=(e,n=void 0)=>({type:"API",[i.rY]:"WAIT_FOR_GET_TRANSACTION_CATEGORIES",[i.k1]:e=>e.payload,payload:{APIInstance:e,nextSuccessAction:"WAIT_FOR_GET_TRANSACTION_CATEGORIES",data:{query:(0,t.y)(s.GetTransactionCategories),variables:n},responseType:"query"}})},78438(e,n,a){"use strict";a.d(n,{A:()=>I});var i=a(75969),t=a.n(i),s=a(1291),r=a(30290),d=a(29435),l=a(23463),o=a(23291),c=a(14993),m=a.n(c),u=a(24074),_=a(72617),v=a(8448);const N=function(e,n){var a;const i=null==e||null==(a=e.current)?void 0:a.getBoundingClientRect();return((null==i?void 0:i.bottom)||0)+n>window.innerHeight?"top":"bottom"};var p=a(55531),E=a(45145),g=a(2742),T=a(69500);const k=({type:e,align:n="left",disabled:a=!1,children:c,onChange:k,className:I,initialValue:y,isSearchAllowed:S=!1,widthInPx:A=240,top:f,handleAddCategory:x,handleExcludeCategory:h,showOperations:C=!0,bottom:O,initatiaterRefs:D,openOnClick:b,showOnlyParentCategories:R,fetchSubCategories:L=!0},F)=>{const{refetch:P,transactionCategories:j,isFetching:M}=(0,d.a)(e,R,L),[U,w]=(0,i.useState)(""),[V,B]=(0,i.useState)(!1),Y=(0,o.Ub)({query:"(max-width: 639px)"});(0,i.useEffect)((()=>{V&&P()}),[P,V]);const G=(0,i.useMemo)((()=>j.reduce(((e,n)=>{const a=n.name.toLowerCase().includes(U.toLowerCase()),i=n.categories.filter((e=>e.name.toLowerCase().includes(U.toLowerCase())||a)).map((e=>({label:e.name,value:e.id,id:e.id,icon_url:e.icon_url,type:n.type,parent:{id:n.id,name:n.name}})));return(a||i.length>0)&&e.push({label:n.name,value:n.id,id:n.id,icon_url:n.icon_url,type:n.type,children:i}),e}),[])),[j,U]),H=(0,i.useCallback)((()=>{B(!V)}),[V]),W=(0,i.useRef)(null),K=N(W,415);(0,r.A)([W,...D||[]],(()=>{V&&B(!1),S&&w("")})),(0,i.useImperativeHandle)(F,(()=>({toggleFilterOptions:H,setSelectedValue:e=>$(e)})),[H]);const[q,$]=(0,i.useState)(y);(0,i.useEffect)((()=>{$(y)}),[y]);const z=(e,n,a)=>{var i;const r=e.value===(null==q?void 0:q.value);return(0,T.jsxs)(t().Fragment,{children:[(0!==n||a)&&(0,T.jsx)(l.Divider,{className:"my-1 flex-shrink-0"}),(0,T.jsxs)("div",{className:"text-typography-default text-body-regular flex h-11 w-full flex-shrink-0 items-center justify-between gap-1",onClick:n=>{n.stopPropagation(),(e=>{q&&e.value===q.value?B(!1):(k(e),B(!1),S&&w(""))})(e)},"data-test-id":`category-option-${e.label}`,role:"button",children:[(0,T.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[!a&&(0,T.jsx)("div",{className:"h-8 w-8 flex-shrink-0",children:(0,T.jsx)("img",{src:e.icon_url,alt:e.label,className:"w-full rounded-full"})}),(0,T.jsx)("div",{className:"truncate "+(r?"text-typography-interactive-resting font-medium":"text-typography-default"),"data-test-id":e.label,children:e.label})]}),q&&e.value===q.value&&(0,T.jsx)("div",{className:"justify-end",children:(0,T.jsx)(s.Int,{name:"check",size:"xs",color:"info"})})]},e.value),(0,T.jsx)("div",{className:"ml-[54px]",children:null==(i=e.children)?void 0:i.map(((e,n)=>z(e,n,!0)))})]},e.value)},Q=()=>(0,T.jsxs)("div",{className:"flex flex-col items-start",children:[(0,T.jsx)(l.Divider,{className:"my-1"}),(0,T.jsxs)("div",{className:"flex h-11 w-full cursor-pointer items-center gap-2 px-3",role:"button",onClick:e=>{(0,p.sx)(E.R.BUTTON.ADD_CATEGORY_START),null==x||x(),e.stopPropagation()},"data-test-id":"add-category-start-btn",children:[(0,T.jsx)("div",{className:"flex h-8 w-8 items-center justify-center",children:(0,T.jsx)(s.Int,{name:"plus",size:"xs",color:"info"})}),(0,T.jsx)("div",{className:"text-typography-interactive-resting text-body-regular",children:g.W.add_a_category})]}),(0,T.jsx)("div",{className:"px-3",children:(0,T.jsx)(l.Divider,{className:"my-1"})}),(0,T.jsxs)("div",{className:"text-typography-default flex h-11 w-full cursor-pointer items-center gap-2 px-3",role:"button",onClick:e=>{(0,p.sx)(E.R.BUTTON.EXCLUDE_CATEGORY),null==h||h(),B(!1),e.stopPropagation()},"data-test-id":"exclude-category-btn",children:[(0,T.jsx)("div",{className:"flex h-8 w-8 items-center justify-center",children:(0,T.jsx)(s.Int,{name:"minus-circle",size:"lg",color:"grey"})}),(0,T.jsx)("div",{className:"text-typography-default text-body-regular",children:g.W.exclude})]})]}),X=e=>{w(e.target.value)};return(0,T.jsxs)("div",{ref:W,"data-test-id":"transaction-category-dropdown",onClick:b?e=>
1{e.stopPropagation(),H()}:void 0,className:`relative flex w-fit flex-col gap-2 rounded-2xl px-3 py-1 pl-0 ${I}`,children:[null==c?void 0:c({toggleFilterOptions:H,disabled:a,selectedValue:q,showDetail:V}),(0,T.jsx)(_.N,{children:V&&(Y?(0,T.jsxs)(l.Portal,{elementID:"bottom-sheet-portal",children:[(0,T.jsx)(v.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-[9998] bg-black/40",onClick:e=>{e.stopPropagation(),B(!1),S&&w("")}}),(0,T.jsxs)(v.P.menu,{onClick:e=>{e.stopPropagation()},initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",bounce:0,duration:.4},role:"list",className:"bg-fill-default fixed inset-x-0 bottom-0 z-[9999] flex max-h-[85vh] flex-col rounded-t-2xl p-4 pt-3",children:[(0,T.jsx)("div",{className:"bg-fill-neutral mx-auto mb-3 h-1 w-10 rounded-full"}),S&&(0,T.jsx)(l.InputWithIcon,{name:"search-categories",type:"text",placeholder:g.W.search_categories_2,onChange:m()(X,200),onClick:e=>{e.stopPropagation()},leftEndIcon:(0,T.jsx)(s.Int,{name:"search",size:"xs",color:"default"})}),(0,T.jsx)("div",{className:"always-show-scrollbar mt-2 flex w-full flex-col overflow-y-auto px-1","data-test-id":"transaction-category-options-menu",children:(0,T.jsx)(l.Skeleton,{on:M,fallback:(0,T.jsx)(u.J,{}),children:G.length?G.map(((e,n)=>z(e,n))):(0,T.jsx)("div",{className:"text-typography-grey text-body-s-regular text-center",children:g.W.no_categories_found})})}),C&&Q()]})]}):(0,T.jsxs)(v.P.menu,{onClick:e=>{e.stopPropagation()},variants:{open:{opacity:1,y:0,transition:{type:"spring",bounce:0,duration:.7,delayChildren:.3,staggerChildren:.05}},closed:{y:-20,opacity:0,transition:{type:"spring",bounce:0,duration:.3}}},initial:"closed",animate:V?"open":"closed",exit:"closed",role:"list",className:`divide-border-light bg-fill-default shadow-one border-border-light absolute z-10 mt-4 flex flex-col divide-solid rounded-xl rounded-t border border-solid p-2 first:rounded-t-xl last:rounded-b-xl ${(e=>{switch(e){case"left":return"left-0";case"right":return"right-0";case"center":return"left-1/2 transform -translate-x-1/2"}})(n)}
1`,style:Object.assign({width:"string"==typeof A?A:`${A}px`},"bottom"===K&&{top:`${f}px`},"top"===K&&{bottom:`${O}px`},!C&&{top:`${f}px`}),children:[S&&(0,T.jsx)(l.InputWithIcon,{name:"search-categories",type:"text",placeholder:g.W.search_categories_2,onChange:m()(X,200),onClick:e=>{e.stopPropagation()},leftEndIcon:(0,T.jsx)(s.Int,{name:"search",size:"xs",color:"default"})}),(0,T.jsx)("div",{className:"mt-2 flex w-full flex-col px-3 "+(G.length>6?"always-show-scrollbar max-h-[366px] overflow-y-scroll":""),"data-test-id":"transaction-category-options-menu",children:(0,T.jsx)(l.Skeleton,{on:M,fallback:(0,T.jsx)(u.J,{}),children:G.length?G.map(((e,n)=>z(e,n))):(0,T.jsx)("div",{className:"text-typography-grey text-body-s-regular text-center",children:g.W.no_categories_found})})}),C&&Q()]}))})]})},I=(0,i.forwardRef)(k)},57784(e,n,a){"use strict";a.d(n,{H:()=>u});var i=a(90024),t=a(8448),s=a(78438),r=a(23463),d=a(1291),l=a(75969),o=a(2742),c=a(69500);const m=["type","handleChange","initialValue","label","showOnlyParentCategories","showClear","onClear","isSearchAllowed","fetchSubCategories"],u=e=>{let{type:n,handleChange:a,initialValue:u,label:_,showOnlyParentCategories:v=!1,showClear:N=!1,onClear:p,isSearchAllowed:E,fetchSubCategories:g}=e,T=(0,i.A)(e,m);const{icon_url:k="",name:I="",id:y=""}=u||{},S=(0,l.useMemo)((()=>({label:I,value:y,icon_url:k,id:y,type:n,parent:{id:u.parent_id||"",name:u.parent_name||""}})),[u]);return(0,c.jsx)(s.A,{onChange:e=>{var n,i;a({id:e.value,value:e.value,name:e.label,icon_url:e.icon_url,parent_id:null==(n=e.parent)?void 0:n.id,parent_name:null==(i=e.parent)?void 0:i.name},e)},type:n.toUpperCase(),widthInPx:"100%",top:65,isSearchAllowed:E,showOnlyParentCategories:v,fetchSubCategories:g,className:"w-full !p-0",showOperations:!1,initialValue:S,children:({toggleFilterOptions:e,showDetail:n,selectedValue:a})=>{var i,s;return(0,c.jsx)("div",{className:"relative flex w-full items-center justify-between gap-1",onClick:e,children:(0,c.jsx)(r.InputWithIcon,Object.assign({placeholder:o.W.select_category,className:"!h-11 cursor-pointer !p-1.5 !px-3",label:_||o.W.category,value:null!=a&&a.label?" ":void 0,leftEndIcon:null!=a&&a.icon_url?(0,c.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,c.jsx)("img",{src:null==a?void 0:a.icon_url,alt:"category-icon",className:"h-8 w-8 rounded-full"}),(0,c.jsxs)("div",{className:"text-body-regular truncate",children:[a.label,(null==(i=a.parent)?void 0:i.name)&&(0,c.jsxs)("span",{className:"text-typography-interactive-disabled text-body-s-regular",children:[" ","(",null==(s=a.parent)?void 0:s.name,")"]})]})]}):void 0,onChange:e=>{var n;N&&a&&""===(null==e||null==(n=e.target)?void 0:n.value)&&(null==p||p())},isClearRequired:N,rightEndIcon:(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(t.P.div,{variants:{open:{rotate:180},closed:{rotate:0}},animate:n?"open":"closed",transition:{duration:.3},children:(0,c.jsx)(d.Int,{name:"chevron-down",size:"xs",color:"default"})})}),readOnly:!0},T))})}})}},24074(e,n,a){"use strict";a.d(n,{J:()=>r});var i=a(23463),t=a(69500);const s=()=>(0,t.jsx)("div",{className:"px-3 flex items-center gap-2 w-full justify-between",role:"button",children:(0,t.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,t.jsx)("div",{className:"w-8",children:(0,t.jsx)(i.SkeletonIcon,{})}),(0,t.jsx)(i.SkeletonText,{className:"w-20 h-4"})]})}),r=()=>(0,t.jsxs)("div",{className:"flex flex-col mt-3 w-full gap-2",children:[(0,t.jsx)(s,{}),(0,t.jsx)(s,{}),(0,t.jsx)(s,{}),(0,t.jsx)(s,{}),(0,t.jsx)(s,{}),(0,t.jsx)(s,{})]})},37451(e,n,a){"use strict";a.d(n,{A:()=>d});var i=a(31120),t=a(23463),s=a(2742),r=a(69500);const d=({timeline:e,onDone:n,isCardReplaced:a,showActivateCardCTA:d=!1})=>{const{modalState:l}=(0,t.useModal)(),{successTimelineData:o}=(null==l?void 0:l.data)||{};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ay.Header,{children:(0,r.jsx)(t.Header3,{className:"text-typography-default",children:s.W.we_have_your_report})}),(0,r.jsxs)(i.Ay.Content,{className:"h-full flex-col gap-6",children:[a&&(0,r.jsx)("p",{children:s.W.we_have_received_your_dispute_your}),!a&&(0,r.jsx)("p",{className:"",children:s.W.thank_you_for_providing_additional_details}),(0,r.jsxs)("div",{className:"dispute_timeline",children:[(0,r.jsx)("small",{className:"text-typography-default mt-5",children:s.W.expected_timeline}),(e||o||[]).map(((e,n)=>(0,r.jsxs)("div",{className:"timeline_data",children:[(0,r.jsx)("div",{className:"timeline_icon",children:"\ud83d\uddd3"}),(0,r.jsxs)("div",{className:"timeline_list",children:[(0,r.jsx)("h6",{children:null==e?void 0:e.duration}),(0,r.jsx)("p",{children:null==e?void 0:e.description})]})]},(null==e?void 0:e.purpose)||n)))]}),(0,r.jsx)(t.Card,{background:"secondary",children:(0,r.jsxs)(t.CardContent,{className:"flex-col",children:[(0,r.jsx)("span",{className:"mb-1 font-bold",children:s.W.note_2}),(0,r.jsxs)("p",{className:"text-typography-grey",children:[s.W.please_be_aware_that_these_times," "]})]})}),(0,r.jsx)(t.Button,{type:"button",buttonVariant:"primary",onClick:n,"data-test-id":"dispute-success-report-done",children:d?s.W.activate_new_virtual_card:s.W.done})]})]})}},23154(e,n,a){"use strict";a.d(n,{v:()=>r,w:()=>d});var i=a(23463),t=a(2742),s=a(69500);const r=()=>(0,s.jsxs)("div",{className:"flex h-full flex-col gap-6",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.SkeletonCircle,{className:"h-8 w-8"}),(0,s.jsx)("div",{className:"flex flex-1 flex-col",children:(0,s.jsx)("div",{children:(0,s.jsx)(i.SkeletonText,{className:"h-5 w-20"})})})]}),(0,s.jsx)(i.SkeletonText,{containerClassName:"w-fit",className:"h-9 w-20"})]}),(0,s.jsx)(i.Divider,{}),new Array(5).fill(1).map(((e,n)=>(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{children:(0,s.jsx)(i.SkeletonText,{className:"h-6 w-[104px]"})}),(0,s.jsx)("div",{children:(0,s.jsx)(i.SkeletonText,{className:"h-6 w-[104px]"})})]},e+n))),(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsx)(i.SkeletonBox,{className:"h-12 w-full"}),(0,s.jsx)(i.SkeletonBox,{className:"h-[100px] w-full"}),(0,s.jsx)(i.SkeletonBox,{className:"h-[115px] w-full"})]})]}),d=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Modal.Header,{children:(0,s.jsx)(i.Header3,{children:t.W.transaction_details})}),(0,s.jsx)(i.Modal.Content,{children:(0,s.jsx)(r,{})})]})},29435(e,n,a){"use strict";a.d(n,{a:()=>c});var i=a(54011),t=a(75969),s=a(69248),r=a(22949),d=a(60120),l=a(20505),o=a(21215);const c=(e,n=!1,a=!1)=>{const c=(0,i.j)(),{privateAPIInstance:m}=(0,t.useContext)(r.AuthContext)||{},{data:u,refetch:_}=(0,d.useQuery)({queryKey:[`${l.B.FETCH_TRANSACTIONS_CATEGORIES}_${e}, ${n}`],queryFn:async()=>
1{if(m){return await c((0,s.f)(m,{type:e,fetchOnlyParent:n,fetchSubCategories:a}))}},staleTime:o.CONSTANTS.QUERY_STALE_TIME,enabled:!1});return{transactionCategories:u||[],isFetching:!u,refetch:_}}},45145(e,n,a){"use strict";a.d(n,{R:()=>t});const i={BUTTON_CLICKED:"button_clicked",SCREEN_VIEWED:"screen_viewed"},t=Object.assign({},i,{BUTTON:{SEE_MORE_EXPENSES:{event_type:i.BUTTON_CLICKED,event_name:"see_more_expenses",screen_name:"activity"},LINK_ACCOUNT:{event_type:i.BUTTON_CLICKED,event_name:"link_account",screen_name:"activity"},SEE_MORE_PNL:{event_type:i.BUTTON_CLICKED,event_name:"see_more_pnl",screen_name:"activity"},DONWNLOAD_CSV:{event_type:i.BUTTON_CLICKED,event_name:"download_csv",screen_name:"activity"},DOWNLOAD_EXPENSE_CATEGORY_PDF_REPORT:{event_type:i.BUTTON_CLICKED,event_name:"download_expense_category_pdf_report",screen_name:"activity"},DOWNLOAD_PROFIT_AND_LOSS_PDF_REPORT:{event_type:i.BUTTON_CLICKED,event_name:"download_profit_and_loss_pdf_report",screen_name:"activity"},SELECT_ACCOUNT:{event_type:i.BUTTON_CLICKED,event_name:"select_account",screen_name:"activity"},CATEGORY_DROPDOWN_SELECT:{event_type:i.BUTTON_CLICKED,event_name:"category_dropdown_select",screen_name:"activity"},CHANGE_CATEGORY_START:{event_type:i.BUTTON_CLICKED,event_name:"change_category_start",screen_name:"activity"},ADD_CATEGORY_START:{event_type:i.BUTTON_CLICKED,event_name:"add_category_start",screen_name:"activity"},EXCLUDE_CATEGORY:{event_type:i.BUTTON_CLICKED,event_name:"exclude",screen_name:"activity"},ADD_CATEGORY_FINISH:{event_type:i.BUTTON_CLICKED,event_name:"add_category_finish",screen_name:"activity_create_category"},CREATE_RULE_FINISH:{event_type:i.BUTTON_CLICKED,event_name:"create_rule_finish",screen_name:"activity_create_rule"},CHANGE_CATEGORY_FINISH:{event_type:i.BUTTON_CLICKED,event_name:"change_category_finish",screen_name:"activity_change_category"},CHANGE_CATEGORY_AND_CREATE_RULE_FINISH:{event_type:i.BUTTON_CLICKED,event_name:"change_category_and_create_rule_finish",screen_name:"activity_change_category"},CATEGORY_DETAIL:{event_type:i.BUTTON_CLICKED,event_name:"category_detail",screen_name:"activity_expense_categories"},PNL_DETAIL:{event_type:i.BUTTON_CLICKED,event_name:"pnl_detail",screen_name:"activity_pnl"},TIME_FILTER_SELECT:{event_type:i.BUTTON_CLICKED,event_name:"time_filter_select",screen_name:"activity"},PRESET_FILTER_SELECT:{event_type:i.BUTTON_CLICKED,event_name:"preset_filter_select",screen_name:"activity"},CUSTOM_FILTER_SELECT:{event_type:i.BUTTON_CLICKED,event_name:"custom_filter_select",screen_name:"activity"},CUSTOM_CATEGORIS_NAV:{event_type:i.BUTTON_CLICKED,event_name:"custom_categories_nav",screen_name:"activity"},RULES_NAV:{event_type:i.BUTTON_CLICKED,event_name:"rules_nav",screen_name:"activity"},EDIT_CATEGORY_START:{event_type:i.BUTTON_CLICKED,event_name:"edit_category_start",screen_name:"activity"},CREATE_CATEGORY_CLICK_NAV:{event_type:i.BUTTON_CLICKED,event_name:"create_category_click_nav",screen_name:"activity"},EDIT_CATEGORY_FINISH:{event_type:i.BUTTON_CLICKED,event_name:"edit_category_finish",screen_name:"activity"},DELETE_CATEGORY:{event_type:i.BUTTON_CLICKED,event_name:"delete_category",screen_name:"activity"},VIEW_TRANSACTION_DETAILS:{event_type:i.BUTTON_CLICKED,event_name:"view_transaction_details",screen_name:"activity"},VIEW_RULE_DETAILS:{event_type:i.BUTTON_CLICKED,event_name:"view_rule_details",screen_name:"activity"},CREATE_RULE_CLICK_NAV:{event_type:i.BUTTON_CLICKED,event_name:"create_rule_click_nav",screen_name:"activity"},DELETE_RULE:{event_type:i.BUTTON_CLICKED,event_name:"delete_rule",screen_name:"activity"},UPDATE_RULE:{event_type:i.BUTTON_CLICKED,event_name:"update_rule",screen_name:"activity"},BOOK_KEEPING_OPT_IN:{event_type:i.BUTTON_CLICKED,event_name:"bookkeeping_opt_in",screen_name:"bookkeeping_fte_intro_screen"}}})},33764(e,n,a){"use strict";a.d(n,{AA:()=>r,CO:()=>t,GI:()=>d,XB:()=>s});var i=a(2742);const t="h:mm A MMMM DD, YYYY",s="MMMM DD, YYYY",r={CHANGE_TIME_SLICE_FILTER:"CHANGE_TIME_SLICE_FILTER",CHANGE_TIME_SLICE_DATE_RANGE:"CHANGE_TIME_SLICE_DATE_RANGE",ACTIVITY_WIDGET_DROPDOWN_OPTIONS:[{get label(){return i.W.last_month},value:"FOUR_WEEK",key:"FOUR_WEEK"},{get label(){return i.W.last_3_months},value:"THREE_MONTHS",key:"THREE_MONTHS"},{get label(){return i.W.last_6_months},value:"SIX_MONTHS",key:"SIX_MONTHS"}
1],MODAL:{CONFIRM_TRANSACTION_CATEGORY_CHANGE:"CONFIRM_TRANSACTION_CATEGORY_CHANGE",CREATE_A_CUSTOM_CATEGORY:"CREATE_A_CUSTOM_CATEGORY",CREATE_A_CUSTOM_RULE:"CREATE_A_CUSTOM_RULE",RULE_DETAILS:"RULE_DETAILS",UPDATE_RULE:"UPDATE_RULE",EXPENSE_CATEGORIES:"EXPENSE_CATEGORIES",PROFIT_AND_LOSS:"PROFIT_AND_LOSS",INSIGHTS_TRANSACTIONS:"INSIGHTS_TRANSACTIONS",ACTIVITY_RULE_TRANSACTIONS:"ACTIVITY_RULE_TRANSACTIONS",NOVO_BOOKKEEPING_FTE_INTRODUCTION:"NOVO_BOOKKEEPING_FTE_INTRODUCTION",NOVO_BOOKKEEPING_FTE_LINK_ACCOUNT:"NOVO_BOOKKEEPING_FTE_LINK_ACCOUNT",NOVO_BOOKKEEPING_FTE_IMPORT_TRANSACTIONS:"NOVO_BOOKKEEPING_FTE_IMPORT_TRANSACTIONS"}},d={pending:{get title(){return i.W.what_is},get description(){return i.W.this_is_a_hold_because_you}},resolved:{get title(){return i.W.why_did_this_happen},get description(){return i.W.these_funds_have_been_pulled}},bank_transfer:{get title(){return i.W.why_was_money_deducted_from_my},get description(){return i.W.an_invoice_payment_was_disputed_contact}}}},93389(e,n,a){"use strict";a.d(n,{y:()=>i});const i=e=>{if(e.data.errors)throw new Error(e.data.errors[0].message);if(!e.data.data)throw new Error("No data returned");if(!e.data.data.responseData)throw new Error("Developer doesn't define aliases (responseData) for Query/Mutation");return e.data.data.responseData}},76044(e,n,a){"use strict";a.d(n,{BC:()=>v,CM:()=>N,Db:()=>m,WN:()=>p,mr:()=>c,q5:()=>_,v$:()=>u});var i=a(16787),t=a(28307),s=a(92727),r=a(54701),d=a(14004),l=a(36195);const o=(0,d.M9)(),c=async(e,n)=>(0,i.In)({axiosInstance:e,config:{data:{query:(0,r.y)(s.SendClientEmailVerificationCode),variables:n},baseURL:o},requestAPIType:"Mutation"}),m=async(e,n)=>(0,i.In)({axiosInstance:e,config:{data:{query:(0,r.y)(s.ValidateClientEmailCode),variables:n},baseURL:o},requestAPIType:"Mutation"}),u=async(e,n,a)=>{try{return await(0,i.In)({axiosInstance:e,config:Object.assign({data:{query:(0,r.y)(t.GetStripeConnectedAccounts),variables:n},baseURL:o},a),handleError:!1})}catch(s){return s&&"object"==typeof s&&"errors"in s&&Array.isArray(s.errors)&&s.errors.some((e=>"UNAUTHENTICATED"===e.code))&&N(),null}},_=async(e,n,a)=>{try{return await(0,i.In)({axiosInstance:e,config:Object.assign({data:{query:(0,r.y)(s.SaveClientAccount),variables:n},baseURL:o},a),requestAPIType:"Mutation",handleError:!1})}catch(t){return console.error("error",t),null}},v=async(e,n,a)=>{try{return await(0,i.In)({axiosInstance:e,config:Object.assign({data:{query:(0,r.y)(t.ValidateAccountBalance),variables:n},baseURL:o},a),handleError:!1})}catch(s){return s&&"object"==typeof s&&"errors"in s&&Array.isArray(s.errors)&&s.errors.some((e=>"UNAUTHENTICATED"===e.code))&&N(),null}};function N(){l.LocalStorage.removeItem("stripe-bank-transfer-access-token"),l.LocalStorage.removeItem("stripe-bank-transfer-email"),l.LocalStorage.removeItem("stripe-bank-transfer-external-client-id")}const p=async(e,n,a)=>{try{return(0,i.In)({axiosInstance:e,config:Object.assign({data:{query:(0,r.y)(s.RemoveStripeConnectedAccount),variables:n},baseURL:o},a),requestAPIType:"Mutation"})}catch(t){return t&&"object"==typeof t&&"errors"in t&&Array.isArray(t.errors)&&t.errors.some((e=>"UNAUTHENTICATED"===e.code))&&N(),null}}},12797(e,n,a){"use strict";a.d(n,{Kj:()=>T,RG:()=>E,Rb:()=>m,SA:()=>S,T1:()=>o,UJ:()=>c,VA:()=>v,Vt:()=>u,WF:()=>l,de:()=>g,iO:()=>p,tn:()=>y,uc:()=>_,xx:()=>I,yY:()=>N,yp:()=>k});var i=a(54701),t=a(66298),s=a(46564),r=a(93389),d=a(16787);const l=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.CreateItemFromInventory),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},o=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.UpdateItemFromInventory),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},c=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.InvoiceReminder),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},m=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.UpsertInvoiceBusinessInfo),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},u=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.UpdateInvoiceCustomer),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},_=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.CreateInvoiceCustomer),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},v=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(s.CancelRecurringSeries),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(t);return(0,r.y)(d)},N=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.DeleteDraftInvoice),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},p=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.CreateInvoice),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},E=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(s.EditRecurringSeries),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(t);return(0,r.y)(d)},g=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.UpdateInvoiceStatus),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},T=async(e,n,a)=>{const{operations:i,formData:t,cloud:s}=n;let r;if(r=s?Object.assign({data:i.variables.data},a):Object.assign({data:t||i,headers:{"content-type":"multipart/form-data"}},a),void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(r);return null==d?void 0:d.data},k=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.SendReceipt),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},I=async(e,n,a)=>{const s=Object.assign({data:{query:(0,i.y)(t.MarkInvoiceAsReferralViewed),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const d=await e.request(s);return(0,r.y)(d)},y=async(e,n,a)=>(0,d.In)({axiosInstance:e,config:Object.assign({data:{query:(0,i.y)(t.CreatePaymentOrder),variables:n}},a)}),S=async(e,n,a)=>(0,d.In)({axiosInstance:e,config:Object.assign({data:{query:(0,i.y)(t.ValidateInvoicePayment),variables:n}},a)})},25085(e,n,a){"use strict";a.d(n,{CR:()=>E,Em:()=>u,FT:()=>v,GY:()=>_,H:()=>l,Pv:()=>p,Ye:()=>m,dW:()=>o,fY:()=>N,xU:()=>c});var i=a(54701),t=a(16787),s=a(1263),r=a(56011);const d=(0,a(14004).Ay)(),l=async e=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.VerifyPersonalInformation)}}}),o=async e=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.VerifyBusinessInformation)}}}),c=async e=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.VerifyBusinessDetail
1s)}}}),m=async e=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.VerifyOwnershipDetails)}}}),u=async e=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.GetReviewTermsLinks)},baseURL:d}}),_=async e=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.GetPaymentOnboardingInfo)},baseURL:d}}),v=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Mutation",config:{data:{query:(0,i.y)(r.UpdateVendorOnboardingInfo),variables:n},baseURL:d}}),N=async e=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.GetPaymentOnboardingAdditionalInfo)},baseURL:d}}),p=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Mutation",config:{data:{query:(0,i.y)(r.UpdateVendorOnboardingAdditionalInfo),variables:n},baseURL:d}}),E=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Mutation",config:{data:{query:(0,i.y)(r.UpdateIfPaymentMethodSetupVisited),variables:n},baseURL:d}})},45861(e,n,a){"use strict";a.d(n,{Br:()=>_,GC:()=>o,Xq:()=>E,aC:()=>m,hy:()=>g,ln:()=>c,ls:()=>N,q9:()=>u,um:()=>p,z4:()=>v});var i=a(54701),t=a(16787),s=a(36431),r=a(14004),d=a(58595);const l=(0,r.Ay)(),o=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.GetPaymentsList),variables:n},baseURL:l}}),c=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.GetPaymentDetails),variables:n},baseURL:l}}),m=async e=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.GetPaymentsToolTips)},baseURL:l}}),u=async(e,n)=>{const a=null!=n&&n.startDate&&null!=n&&n.endDate?{filters:{startDate:n.startDate,endDate:n.endDate}}:{};return await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Mutation",config:{data:{query:(0,i.y)(d.DownloadPaymentsCsv),variables:{input:a}},baseURL:l}})},_=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Mutation",config:{data:{query:(0,i.y)(d.UpdateInvoicePayment),variables:n},baseURL:l}}),v=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Mutation",config:{data:{query:(0,i.y)(d.RecordInvoicePayment),variables:n},baseURL:l}}),N=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Mutation",config:{data:{query:(0,i.y)(d.DeleteInvoicePayment),variables:n},baseURL:l}}),p=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.GetPaymentLinkedTransactionInfo),variables:n},baseURL:l}}),E=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Mutation",config:{data:{query:(0,i.y)(d.UpdatePaymentOptions),variables:{input:n}},baseURL:l}}),g=async(e,n)=>await(0,t.In)({axiosInstance:e,handleError:!0,requestAPIType:"Query",config:{data:{query:(0,i.y)(s.GetPaymentDisputeList),variables:n},baseURL:l}})},66753(e,n,a){"use strict";a.d(n,{Do:()=>_,Es:()=>o,Et:()=>k,J4:()=>g,K3:()=>f,KC:()=>h,Mw:()=>p,PA:()=>m,Vr:()=>u,Wd:()=>N,Wv:()=>y,Wz:()=>v,XE:()=>C,X_:()=>x,YL:()=>S,Yu:()=>T,_4:()=>c,nX:()=>I,ng:()=>E,sW:()=>A});a(49100);var i=a(54701),t=a(16787),s=a(4410),r=a(84272),d=a(93389);const l=(0,a(14004).Ay)(),o=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(s.GetSavedItems),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const r=await e.request(t);return(0,d.y)(r)},c=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(s.FetchTransactionsByInvoiceId),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const r=await e.request(t);return(0,d.y)(r)},m=async(e,n)=>{const a=Object.assign({data:{query:(0,i.y)(s.InvoiceOnBoardingInfo)}},n);if(void 0===e)throw new Error("apiInstance is undefined");const t=await e.request(a);return(0,d.y)(t)},u=async(e,n)=>{const a=Object.assign({data:{query:(0,i.y)(s.InvoiceCustomizationInfo)}},n);if(void 0===e)throw new Error("apiInstance is undefined");const t=await e.request(a);return(0,d.y)(t)},_=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(s.GetInvoicesList),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const r=await e.request(t);return(0,d.y)(r)},v=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(r.GetRecurringList),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const s=await e.request(t);return(0,d.y)(s)},N=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(r.GetRecurringListById),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const s=await e.request(t);return(0,d.y)(s)},p=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(r.GetRecurringInvoiceHistory),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const s=await e.request(t);return(0,d.y)(s)},E=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(s.GetInvoiceSignedUrl),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const r=await e.request(t);return(0,d.y)(r)},g=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(s.GetDashboardInvoiceList),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const r=await e.request(t);return(0,d.y)(r)},T=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(s.GetInvoiceListById),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const r=await e.request(t);return(0,d.y)(r)},k=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(s.GetAttachments),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const r=await e.request(t);return(0,d.y)(r)},I=async(e,n)=>{const a=Object.assign({data:{query:(0,i.y)(s.CheckPaymentCapabilities)}},n);if(void 0===e)throw new Error("apiInstance is undefined");const t=await e.request(a);return(0,d.y)(t)},y=async(e,n,a)=>{const t=Object.assign({data:{query:(0,i.y)(s.GetNextInvoiceNumber),variables:n}},a);if(void 0===e)throw new Error("apiInstance is undefined");const r=await e.request(t);return(0,d.y)(r)},S=async(e,n,a)=>(0,t.In)({axiosInstance:e,config:Object.assign({data:{query:(0,i.y)(s.GetInvoiceDetailsByCode),variables:n}},a),handleError:!0}),A=async(e,n)=>{const a=Object.assign({data:{query:(0,i.y)(s.FetchCreateInvoicePaymentOptions)}},n);if(void 0===e)throw new Error("apiInstance is undefined");const t=await e.request(a);return(0,d.y)(t)},f=async(e,n,a)=>(0,t.In)({axiosInstance:e,config:Object.assign({data:{query:(0,i.y)(s.GetActivities),variables:n}},a)}),x=async e=>await(0,t.In)({axiosInstance:e,config:{data:{query:(0,i.y)(s.GetACLFeatures)},baseURL:l}}),h=async({apiInstance:e,variables:n,config:a={}})=>(0,t.In)({axiosInstance:e,config:Object.assign({},a,{data:{query:(0,i.y)(s.GetClientArchivePreviewInvoices),variables:n}})}),C=async e=>(0,t.In)({axiosInstance:e,config:{data:{query:(0,i.y)(s.GetBetaStatus)},baseURL:l}})},81176(e,n,a){"use strict";a.d(n,{q:()=>s});a(75969);var i=a(84386),t=a(69500);const s=({businessName:e})=>(0,t.jsxs)("div",{className:"bg-fill-default flex h-24 w-full flex-col items-center justify-center gap-1 px-10 py-6",children:[e&&(0,t.jsx)("div",{className:"text-caption-s-regular md:text-caption-regular",children:`${e} sends invoices with`}),(0,t.jsx)("img",{src:i,width:98,height:24,alt:"Novo"})]})},11379(e,n,a){"use strict";a.d(n,{p:()=>s});a(75969);var i=a(35397),t=a(69500);const s=({note:e,businessName:n})=>(0,t.jsxs)("div",{className:"text-body-s-regular flex flex-col items-center gap-1",children:[(0,t.jsx)("div",{children:i.k.PAYMENT_PAGE.quick_note_from(n)}),(0,t.jsx)("p",{className:"text-typography-grey text-wrap break-words break-all text-center",children:e})]})},54629(e,n,a){"use strict";a.d(n,{G:()=>d});var i=a(23463),t=a(36195),s=a(35397),r=a(69500);const d=({items:e,subTotal:n,total:a,discount:d,shipping:l,tax:o,isOverDue:c,totalAmountPaid:m})=>(0,r.jsxs)("div",{className:"flex w-full flex-1 flex-col gap-4",children:[e.map((e=>(e=>(0,r.jsxs)("div",{className:"grid w-full grid-cols-12 gap-2",children:[(0,r.jsxs)("div",{className:"col-span-8 flex flex-col items-start overflow-hidden",children:[(0,r.jsx)("div",{className:"text-body-s-regular text-typography-default",children:e.name}),(0,r.jsxs)("div",{className:"text-body-s-regular text-typography-default flex items-center gap-1",children:[(0,r.jsx)("span",{children:(0,t.currencyFormatter)(e.cost)}),(0,r.jsx)("span",{children:"x"}),(0,r.jsx)("span",{children:e.quantity})]}),e.description&&(0,r.jsx)("p",{className:"text-caption-regular text-typography-grey w-full break-words",children:e.description})]}),(0,r.jsx)("div",{className:"text-body-s-regular text-typography-default col-span-4 flex flex-col items-end justify-start",children:(0,t.currencyFormatter)(e.total)})]}))(e))),(0,r.jsx)(i.Divider,{orientation:"horizontal"}),(0,r.jsxs)("div",{className:"text-body-s-regular text-typography-default grid w-full grid-cols-12 gap-2",children:[(0,r.jsx)("div",{className:"col-span-8 flex flex-col items-start overflow-hidden",children:s.k.subtotal}),(0,r.jsx)("div",{className:"col-span-4 flex flex-col items-end justify-start",children:(0,t.currencyFormatter)(n)})]}),(null!=d?d:0)>0&&(0,r.jsxs)("div",{className:"text-body-s-regular text-typography-default grid w-full grid-cols-12 gap-2",children:[(0,r.jsx)("div",{className:"col-span-8 flex flex-col items-start overflow-hidden",children:s.k.discount}),(0,r.jsxs)("div",{className:"col-span-4 flex flex-col items-end justify-start",children:["- ",(0,t.currencyFormatter)(null!=d?d:0)]})]}),(null!=o?o:0)>0&&(0,r.jsxs)("div",{className:"text-body-s-regular text-typography-default grid w-full grid-cols-12 gap-2",children:[(0,r.jsx)("div",{className:"col-span-8 flex flex-col items-start overflow-hidden",children:s.k.tax}),(0,r.jsx)("div",{className:"col-span-4 flex flex-col items-end justify-start",children:(0,t.currencyFormatter)(null!=o?o:0)})]}),(null!=l?l:0)>0&&(0,r.jsxs)("div",{className:"text-body-s-regular text-typography-default grid w-full grid-cols-12 gap-2",children:[(0,r.jsx)("div",{className:"col-span-8 flex flex-col items-start overflow-hidden",children:s.k.shipping}),(0,r.jsx)("div",{className:"col-span-4 flex flex-col items-end justify-start",children:(0,t.currencyFormatter)(null!=l?l:0)})]}),(0,r.jsx)(i.Divider,{orientation:"horizontal"}),(0,r.jsxs)("div",{className:"text-body-s-medium grid w-full grid-cols-12 gap-2 "+(c?"text-typography-error":"text-typography-default"),children:[(0,r.jsx)("div",{className:"col-span-8 flex flex-col items-start overflow-hidden",children:s.k.total}),(0,r.jsx)("div",{className:"col-span-4 flex flex-col items-end justify-start",children:(0,t.currencyFormatter)(null!=a?a:0)})]}),m>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"text-body-s-regular text-typography-default grid w-full grid-cols-12 gap-2",children:[(0,r.jsx)("div",{className:"col-span-8 flex flex-col items-start overflow-hidden",children:s.k.total_paid}),(0,r.jsxs)("div",{className:"col-span-4 flex flex-col items-end justify-start",children:["- ",(0,t.currencyFormatter)(null!=m?m:0)]})]}),(0,r.jsxs)("div",{className:"text-body-s-medium text-typography-default grid w-full grid-cols-12 gap-2",children:[(0,r.jsx)("div",{className:"col-span-8 flex flex-col items-start overflow-hidden",children:s.k.remaining_balance}),(0,r.jsx)("div",{className:"col-span-4 flex flex-col items-end justify-start",children:(0,t.currencyFormatter)(a-m)})]})]})]})},75491(e,n,a){"use strict";a.d(n,{u:()=>o});var i=a(36195),t=a(23463),s=a(14004),r=a(35397),d=a(69500);const l=(e,n,a)=>{const i="OVERDUE"===e;switch(e){case"SCHEDULED":return(0,d.jsx)("div",{className:"text-typography-grey text-end",children:(0,d.jsx)("span",{children:r.k.PAYMENT_SCHEDULE.due_on((0,s.VI)(n))})});case"CANCELLED":return(0,d.jsx)("div",{className:"text-typography-grey text-end",children:(0,d.jsx)("span",{children:(0,s.VI)(n)})});case"PAID":return(0,d.jsx)("div",{className:"text-typography-success flex flex-col gap-1 font-medium",children:r.k.PAYMENT_SCHEDULE.paid_on(a?(0,s.VI)(a):"")});default:return i?(0,d.jsx)("div",{className:"text-typography-error flex flex-col font-medium",children:r.k.PAYMENT_SCHEDULE.overdue_since((0,s.VI)(n))}):null}},o=({paymentSchedules:e,isPreview:n=!1,amountInDollars:a=!1})=>{var o;const c=e=>{const n=null!=e?e:0,t=a?n:n/100;return(0,i.currencyFormatter)(t)};return(0,d.jsx)(t.Card,{className:"shadow-CardMedium w-full",children:(0,d.jsxs)(t.CardContent,{className:"w-full flex-col items-start gap-4",children:[(0,d.jsx)(t.Header6,{children:r.k.payment_schedule}),(0,d.jsx)("div",{className:"flex w-full flex-col gap-4",children:null==e||null==(o=e.splits)?void 0:o.map(((e,a)=>{var t,o;return(0,d.jsxs)("div",{className:"text-body-s-regular flex w-full flex-row items-start justify-between",children:[(0,d.jsxs)("div",{className:"flex flex-col items-start justify-start",children:[(0,d.jsx)("div",{className:"",children:null==e?void 0:e.label}),(0,d.jsx)("p",{className:"text-typography-grey",children:c(null==e?void 0:e.amount)})]}),(0,d.jsxs)("div",{className:"flex flex-col items-start justify-end",children:[(null==e?void 0:e.status)&&(null==e?void 0:e.dueDate)&&l(e.status,e.dueDate,null!=(o=null==e?void 0:e.paymentTimestamp)?o:""),!(null!=e&&e.status)&&(null==e?void 0:e.dueDate)&&n&&(0,d.jsx)("div",{className:"text-typography-grey text-end",children:(0,d.jsx)("span",{children:(0,s.VI)(e.dueDate)})}),"PAID"!==(null==e?void 0:e.status)&&void 0!==(null==e?void 0:e.paidAmount)&&e.paidAmount>0&&(0,d.jsx)("div",{className:"text-typography-grey text-body-s-regular w-full text-right",children:r.k.PAYMENT_SCHEDULE.paid_amount((0,i.currencyFormatter)(e.paidAmount/100))})]})]},`${null==e||null==(t=e.label)?void 0:t.replace(/\s+/g,"-")}-${null==e?void 0:e.amount}-${a}`)}))})]})})}},72197(e,n,a){"use strict";a.d(n,{Ay:()=>d,EB:()=>r,Ft:()=>s});var i=a(1291),t=a(69500);const s={CALENDAR:"bg-fill-neutral",SENT:"bg-fill-neutral",VIEWED:"bg-fill-neutral",BELL:"bg-fill-neutral",MONEY:"bg-fill-success-light",CARD:"bg-fill-success-light",CHECK:"bg-fill-success-light",ACH:"bg-fill-success-light",PAYPAL:"bg-fill-success-light",UNPAID:"bg-fill-critical-light",OVERDUE:"bg-fill-critical-light",CANCELLED:"bg-fill-neutral",SENT_AS_OVERDUE:"bg-fill-critical-light",CASH:"bg-fill-success-light",INTEGRATION:"bg-fill-success-light",PAYMENT_DELETED:"bg-fill-critical-light"},r={CALENDAR:(0,t.jsx)(i.Int,{name:"calendar",size:"xs",color:"default"}),SENT:(0,t.jsx)(i.Int,{name:"send",size:"xs",color:"default"}),VIEWED:(0,t.jsx)(i.Int,{name:"mail-open",size:"md"}),BELL:(0,t.jsx)(i.Int,{name:"bell",size:"xs",color:"default"}),MONEY:(0,t.jsx)(i.Int,{name:"bag",size:"md"}),CARD:(0,t.jsx)(i.In0,{className:"stroke-icon-success",width:16,height:16}),CHECK:(0,t.jsx)(i.M3g,{className:"stroke-icon-success",width:16,height:16}),ACH:(0,t.jsx)(i.Int,{name:"bank",size:"xs",color:"success"}),PAYPAL:(0,t.jsx)(i.xt_,{}),UNPAID:(0,t.jsx)(i.Int,{name:"dollar-off"}),OVERDUE:(0,t.jsx)(i.Int,{name:"clock",size:"xs",color:"error"}),CANCELLED:(0,t.jsx)(i.Int,{name:"block"}),SENT_AS_OVERDUE:(0,t.jsx)(i.Int,{name:"send",color:"error"}),CASH:(0,t.jsx)(i.z$x,{className:"stroke-icon-success"}),INTEGRATION:(0,t.jsx)(i.ibP,{className:"stroke-icon-success"}),PAYMENT_DELETED:(0,t.jsx)(i.W56,{className:"stroke-icon-error"})},d=({iconType:e,isLastItem:n,timelineContent:a})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:`rounded-full p-2 ${s[e]}`,children:r[e]}),(0,t.jsxs)("div",{children:[" ",a]})]}),(0,t.jsx)("div",{className:`${!n&&"relative my-1 mb-5 flex h-8 gap-4 pb-6"}`,children:(0,t.jsx)("div",{className:`${!n&&"before:border-border-light before:absolute before:left-[14px] before:z-0 before:h-full before:w-0.5 before:border-2"}`})})]})},40169(e,n,a){"use strict";a.d(n,{A:()=>t});a(75969);var i=a(69500);const t=e=>{var n;return null==e||null==(n=e.attachments)?void 0:n.map(((e,n)=>{var a;return(0,i.jsx)("span",{onClick:()=>{return n=e.downloadLink,window.open(n,"_blank","noopener noreferrer");var n},className:"text-body-regular text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-int
1eractive-pressed disabled:text-typography-interactive-disabled cursor-pointer no-underline hover:underline",children:e.fileName},`attachment-${null==(a=e.fileName)?void 0:a.replace(/\s+/g,"-")}-${n}`)}))}},93639(e,n,a){"use strict";a.d(n,{A:()=>d});var i=a(1291),t=a(23463),s=a(35397),r=a(69500);const d=()=>(0,r.jsxs)(t.Tooltip,{children:[(0,r.jsx)(t.TooltipTrigger,{asChild:!0,children:(0,r.jsx)(i.Int,{name:"refresh",color:"grey"})}),(0,r.jsx)(t.TooltipContent,{children:s.k.recurring_invoice})]})},44144(e,n,a){"use strict";a.d(n,{A:()=>o});var i=a(23463),t=a(84386),s=a(55531),r=a(42242),d=a(35397),l=a(69500);const o=({referralConfig:e,screenName:n})=>{const{getStartedUrl:a,refereeAmount:o,tncUrl:c,termsLink:m,groupType:u}=e||{},_=m||c,v=o,N="treatment"===u?d.k.up:"",{INVOICE_REFERRAL_TNC:p,INVOICE_REFERRAL_GET_STARTED:E}=r.y.INVOICES.INVOICE_RECIPIENT_PAGE;return(0,l.jsxs)("div",{className:"text-typography-default bg-fill-light flex w-full flex-col gap-4 rounded-lg p-8 text-center",children:[(0,l.jsx)("div",{className:"flex self-center",children:(0,l.jsx)("img",{src:t,alt:"",className:"w-20"})}),(0,l.jsx)(i.Header6,{children:d.k.give_smarter_banking_and_invoicing}),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,l.jsxs)("div",{className:"text-body-s-regular break-words",children:[(0,l.jsxs)("span",{className:"font-medium",children:[d.k.earn_amount(N,v)," "]}),(0,l.jsxs)("span",{children:[" ",d.k.when_you_sign_up_and_fund]})]}),(0,l.jsx)(i.Button,{buttonVariant:"primary","data-test-id":"get-started",className:"w-40 self-center",onClick:()=>{window.open(a,"_blank"),(0,s.sx)(n?Object.assign({},E,{screen_name:n}):E)},children:d.k.try_for_free}),(0,l.jsx)("div",{className:"text-center",children:_&&(0,l.jsx)(i.Link,{"data-test-id":"terms-and-conditions",to:_,target:"_blank",size:"medium",className:"text-body-s-regular text-center",onClick:()=>(0,s.sx)(n?Object.assign({},p,{screen_name:n}):p),children:d.k.terms_and_conditions_apply})})]})]})}},54997(e,n,a){"use strict";a.d(n,{A:()=>l});var i=a(75969),t=a(89329),s=a(23463),r=a(14004),d=a(69500);function l(){const{modalState:e,closeModal:n}=(0,s.useModal)(),a=null==e?void 0:e.data,{cancelRecurringSeries:l}=(0,i.useContext)(t.Ns)||a;return(0,d.jsxs)(s.Modal,{isOpen:e.name===r.lx.CANCEL_RECURRING_SERIES,closeIcon:!0,children:[(0,d.jsx)(s.Modal.Header,{children:(0,d.jsx)(s.Header4,{className:"text-typography-default",children:r.WD.CANCEL_RECURRING_SERIES})}),(0,d.jsxs)(s.Modal.Content,{className:"flex flex-col gap-8",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)("div",{children:r.WD.CONFIRM_CANCEL_RECURRING_SERIES}),(0,d.jsx)("div",{children:r.WD.CANCEL_RECURRING_SERIES_INFO})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(s.Button,{type:"button",buttonVariant:"secondary",onClick:n,"data-test-id":"keep-recurring-series",children:r.WD.KEEP_SERIES}),(0,d.jsx)(s.Button,{type:"button",buttonVariant:"primary",onClick:()=>{null==l||l()},"data-test-id":"cancel-recurring-series",children:r.WD.CANCEL_SERIES})]})]})]})}},87761(e,n,a){"use strict";a.d(n,{A:()=>_});var i=a(75969),t=a(55531),s=a(23463),r=a(21215),d=a(42242),l=a(91856),o=a(14004),c=a(76805),m=a(59080),u=a(69500);const _=()=>{var e;const{updateInvoiceStatus:n}=(0,l.A)(),{CANCEL_INVOICE:a,CANCEL_SCHEDULED_INVOICE_HEADER:_,CANCEL_RECURRING_SCHEDULED_INVOICE_DESCRIPTION:v,CANCEL_ONETIME_SCHEDULED_INVOICE_DESCRIPTION:N,DISMISS:p}=m.aH,{modalState:E,closeModal:g}=(0,s.useModal)();if((0,i.useEffect)((()=>{(0,t.sx)(d.y.INVOICES.EDIT_INVOICE.CANCEL_SCHEDULED)}),[]),null==E||!E.data)return null;const T=null!=(e=E.data)?e:{},{invoice:k}=T,{id:I,invoiceId:y,invoiceType:S,recurringId:A}=k;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.Modal.Header,{children:(0,u.jsx)(s.Header4,{className:"text-typography-default",children:_})}),(0,u.jsxs)(s.Modal.Content,{className:"flex-col gap-6",children:[(0,u.jsx)("div",{className:"text-typography-default",children:"RECURRING"===S||A?v:N}),(0,u.jsxs)("div",{className:"flex items-center justify-end gap-4",children:[(0,u.jsx)(s.Button,{type:"button",buttonVariant:"secondary",onClick:g,"data-test-id":"dismiss",children:p}),(0,u.jsx)(s.Button,{type:"button",buttonVariant:"destructive",onClick:async()=>{n({id:y||I,status:o.Sx.SCHEDULED_CANCELLED,navigateRoute:r.NOVO_PAGE_ROUTES.InvoicesList,queryToInvalidate:c.B.GET_INVOICES_LIST})}
1,"data-test-id":"cancel-invoice-button",children:a})]})]})]})}},56958(e,n,a){"use strict";a.d(n,{A:()=>_});var i=a(75969),t=a(55531),s=a(22949),r=a(11257),d=a(33482),l=a(23463),o=a(42242),c=a(12797),m=a(60120),u=a(69500);const _=()=>{var e;const[n,a]=(0,i.useState)([]),{privateAPIInstance:_}=(0,i.useContext)(s.AuthContext)||{},v=(0,d.Ay)(),{SEND_REMINDER:N,REMINDER_QUESTION:p,CANCEL:E,SELECT_ADDITIONAL_RECIPIENTS:g}=r.A;(0,i.useEffect)((()=>{(0,t.sx)(o.y.INVOICES.LISTING.SEND_REMINDER_POPUP)}),[]);const{modalState:T,closeModal:k}=(0,l.useModal)(),I=null!=(e=null==T?void 0:T.data)?e:{},{invoice:y,callback:S}=I,{customer:A,recipients:f,id:x}=y||{},{clientName:h,companyName:C,email:O}=A||{},{mutate:D}=(0,m.useMutation)({mutationFn:async e=>await(0,c.UJ)(_,{data:e},{baseURL:v}),onSuccess:async e=>{if(!e||e.hasError)return l.toast.error({message:null==e?void 0:e.message});null==S||S(),l.toast.success({message:null==e?void 0:e.message}),k()},onError:e=>{l.toast.error({message:null==e?void 0:e.message})}});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.Modal.Header,{children:(0,u.jsx)(l.Header4,{className:"text-typography-default",children:N})}),(0,u.jsxs)(l.Modal.Content,{className:"flex-col gap-6",children:[(0,u.jsx)("div",{className:"text-typography-default",children:p}),(0,u.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,u.jsx)(l.Header5,{children:C}),h&&(0,u.jsx)("div",{className:"text-typography-default text-body-regular",children:h}),(0,u.jsx)("div",{className:"text-typography-default text-body-regular",children:O})]}),(null==f?void 0:f.length)>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.Divider,{}),(0,u.jsx)("div",{className:"flex cursor-pointer justify-between",children:(0,u.jsx)("div",{className:"text-typography-default text-body-regular",children:g})}),(0,u.jsx)("div",{className:"flex flex-wrap gap-3",children:(f||[]).map((e=>
1(0,u.jsx)(l.Button,{buttonVariant:n.includes(e)?"tertiary":"secondary","data-test-id":"recipient-button",size:"small",onClick:()=>(e=>{let i=[];n.includes(e)?(i=n.filter((n=>n!==e)),a(i)):(i=[...n,e],a(i))})(e),children:(0,u.jsx)("span",{children:e})},e)))})]}),(0,u.jsxs)("div",{className:"flex w-full items-center gap-4",children:[(0,u.jsx)(l.Button,{type:"button",buttonVariant:"primary",onClick:async()=>{const e={invoiceId:x};n.length&&(e.recipientsList=n),D(e),(0,t.sx)(o.y.INVOICES.LISTING.SEND_REMINDER)},"data-test-id":"send-reminder-button",children:N}),(0,u.jsx)(l.Button,{type:"button",buttonVariant:"secondary",onClick:()=>{(0,t.sx)(o.y.INVOICES.LISTING.CANCEL_REMINDER),k()},"data-test-id":"cancel-reminder-button",children:E})]})]})]})}},57563(e,n,a){"use strict";a.d(n,{x:()=>D});var i=a(75969),t=a(73681),s=a.n(t),r=a(80824),d=a(16354),l=a(60120),o=a(23463),c=a(36195),m=a(21215),u=a(1291),_=a(22949),v=a(11257),N=a(76075),p=a(33482),E=a(66753),g=a(93189),T=a(28492),k=a(45861),I=a(59080),y=a(76805),S=a(89329),A=a(14004),f=a(42242),x=a(55531),h=a(31120),C=a(35397),O=a(69500);const D=()=>{var e,n;const{privateAPIInstance:a}=(0,i.useContext)(_.AuthContext)||{},t=(0,p.Ay)(),{modalState:D,openModal:b,closeModal:R}=(0,o.useModal)(),{invoice:L,editPayment:F,isPaymentsPage:P}=(null==D?void 0:D.data)||{},j=(0,i.useRef)(null),[M,U]=(0,i.useState)(""),[w,V]=(0,i.useState)([]),B=(0,i.useMemo)((()=>I.yv.includes(null==L?void 0:L.paymentGatewayName)),[null==L?void 0:L.paymentGatewayName]),Y=(0,i.useContext)(S.Ns),G=(null==Y?void 0:Y.fetchDetail)||(()=>{}),H=(0,i.useMemo)((()=>{if(null==L||!L.paymentMethod)return I.wz[0];return(B?I.vx:I.wz).find((e=>e.value===(null==L?void 0:L.paymentMethod)))}),[null==L?void 0:L.paymentMethod,B]),W=(0,r.mN)({mode:"onChange",reValidateMode:"onChange",resolver:(0,d.t)((0,N.gF)(null!=(e=null==L?void 0:L.maxAmount)?e:0)),defaultValues:{amount:null==L?void 0:L.amount,transaction:{value:"",label:(0,O.jsx)(O.Fragment,{})},date:F?s()(null==L?void 0:L.transactionTimestamp):s()(),paymentMethod:H}}),{control:K,handleSubmit:q,formState:$,reset:z,setValue:Q}=W,{errors:X}=$,Z=(0,l.useQueryClient)(),{APPLY_PAYMENT_SAVE:J,APPLY_PAYMENT_UNLINK_A_TXN:ee,APPLY_PAYMENT_LINK_A_TXN:ne,APPLY_PAYMENT_SELECT_TXN:ae,APPLY_PAYMENT_SELECT_DUE_DATE:ie,APPLY_PAYMENT_SELECT_PAYMENT_METHOD:te,APPLY_PAYMENT_ENTER_AMOUNT:se,DELETE_PAYMENT:re}=f.y.INVOICES.INVOICE_DETAIL.PAYMENTS,de=e=>({value:e.id,label:(0,O.jsxs)("div",{className:"flex min-w-0 flex-1 items-center justify-between",children:[(0,O.jsxs)("div",{className:"flex w-full max-w-[253px] flex-col gap-0.5",children:[(0,O.jsx)("div",{className:"overflow-hidden text-ellipsis",children:e.description}),(0,O.jsx)("div",{className:"text-typography-grey",children:s()(e.createdDate).format("MM/DD/YYYY")})]}),(0,O.jsx)("div",{className:"text-typography-success",children:(0,c.currencyFormatter)(e.amount)})]})}),{data:le,isFetching:oe}=(0,l.useQuery)({queryKey:[y.B.GET_PAYMENT_LINKED_TRANSACTION_INFO,null==L?void 0:L.paymentId],queryFn:async()=>{if(null==L||!L.paymentId)return null;const e=await(0,k.um)(a,{input:{id:L.paymentId}});return e.ddaTransaction?(Q("transaction",de(Object.assign({},e.ddaTransaction,{isSuggested:!1}))),e.ddaTransaction):null},enabled:!!a&&F&&!(null==L||!L.paymentId)&&!(null==L||!L.transactionId)}),ce=(0,r.FH)({control:K,name:"amount",defaultValue:null==L?void 0:L.amount}),me=(0,r.FH)({control:K,name:"transaction"}),ue=()=>{R(),P?Z.invalidateQueries({queryKey:[y.B.GET_PAYMENTS_LIST]}):(Z.invalidateQueries({queryKey:[y.B.GET_INVOICE_PAYMENTS,{invoiceId:null==L?void 0:L.invoiceId}]}),Z.invalidateQueries({queryKey:[y.B.GET_ACTIVITIES_BY_INVOICE_ID]}),Z.invalidateQueries({queryKey:[y.B.CHECK_TRANSACTIONS_AVAILABLE]}),G())},{data:_e,fetchNextPage:ve,hasNextPage:Ne,isFetchingNextPage:pe,isFetching:Ee}=(0,l.useInfiniteQuery)({queryKey:[y.B.LINK_PAYMENT_TO_TRANSACTIONS,M],queryFn:async({pageParam:e=0})=>{const n={limit:50,offset:e,invoiceId:null==L?void 0:L.invoiceId,searchTerm:M},i=await(0,E._4)(a,n,{baseURL:t});return!i||i.hasError?o.toast.error({message:(null==i?void 0:i.message)||C.k.something_went_wrong}):i},getNextPageParam:(e,n)=>{var a;return 50===(null==e||null==(a=e.data)||null==(a=a.transactions)?void 0:a.length)?50*(null==n?void 0:n.length):void 0},enabled:!!a&&null!==j.current,initialPageParam:0});(0,i.useEffect)((()=>
1{if(null!=me&&me.value){var e,n,a,i,t;let d=(null!=(e=null==_e?void 0:_e.pages.flatMap((e=>{var n;return null==e||null==(n=e.data)?void 0:n.transactions})))?e:[]).find((e=>e.id===me.value));!d&&F&&(d=le);const l=null==(n=d)?void 0:n.createdDate;Q("date",s()(l));const o=(null!=(a=null==(i=d)?void 0:i.amount)?a:0)>(null==L?void 0:L.amount)?null==L?void 0:L.amount:null==(t=d)?void 0:t.amount;if(Q("amount",o,{shouldValidate:!0}),!B){var r;const e=null!=(r=d)&&null!=(r=r.medium)&&null!=(r=r.toLowerCase())&&r.includes("check")?I.wz.find((e=>"CHECK"===e.value)):I.wz.find((e=>"BANK_TRANSFER"===e.value));Q("paymentMethod",e)}}}),[me,Q,w,null==_e?void 0:_e.pages,null==L?void 0:L.amount,F,le,B]),(0,i.useEffect)((()=>{const e=(null==_e?void 0:_e.pages.flatMap((e=>{var n;return null==e||null==(n=e.data)?void 0:n.transactions.map((e=>de(e)))})))||[];if(F&&le){const n=de(Object.assign({},le,{isSuggested:!1}));V((a=>[n,...e]))}else V((n=>[...e]))}),[_e,F,le]);const[{hasMoreData:ge},{setHasMoreData:Te}]=(0,g.A)((0,T.sg)(ve,500),j);(0,i.useEffect)((()=>{L&&z({amount:L.amount})}),[L,z]),(0,i.useEffect)((()=>{j.current&&(null==Te||Te(!!Ne))}),[Ne,j]);const ke=(0,T.sg)((e=>{U(e)}),1e3),Ie=()=>{R(),b({name:v.A.MODAL.INVOICE.APPLY_PAYMENT_TO_INVOICE,data:{invoice:L,editPayment:F}})},ye=(0,l.useIsMutating)({mutationKey:[y.A.RECORD_PAYMENT]})>0,{mutate:Se,isPending:Ae}=(0,l.useMutation)({mutationKey:[y.A.RECORD_PAYMENT],mutationFn:async e=>{const n=await(0,k.z4)(a,e);return n||o.toast.error({message:C.k.something_went_wrong})},onSuccess:()=>{ue()}}),{mutate:fe,isPending:xe}=(0,l.useMutation)({mutationKey:[y.A.UPDATE_PAYMENT],mutationFn:async e=>{const n=await(0,k.Br)(a,e);return n||o.toast.error({message:C.k.something_went_wrong})},onSuccess:()=>{ue()}});return(0,O.jsxs)(h.yB,{isOpen:D.name===v.A.MODAL.INVOICE.APPLY_PAYMENT_TO_INVOICE,closeIcon:!0,shouldCloseOnBackdrop:!0,shouldCloseOnEsc:!0,children:[(0,O.jsx)(o.Modal.Header,{children:(0,O.jsx)(o.Header3,{children:F?C.k.PAYMENTS.PAYMENT_DETAILS.EDIT_PAYMENT:`${A.WD.APPLY_A_PAYMENT}`})}),(0,O.jsx)(o.Modal.Content,{className:"flex flex-col",children:(0,O.jsx)(r.Op,Object.assign({},W,{children:(0,O.jsxs)("form",{onSubmit:q((e=>{var n;const a=(null==(n=e.transaction)||null==(n=n.value)?void 0:n.length)>0?e.transaction.value:null;var i,t;F?((0,x.sx)(Object.assign({},J,{attributes:{payment_id:null==L?void 0:L.paymentId,is_edit:!0}})),fe({input:{id:null==L?void 0:L.paymentId,amount:e.amount,date:null!=e&&e.date?e.date.format(A.gw):s()().format(A.gw),transactionId:a,paymentMethod:null==(i=e.paymentMethod)?void 0:i.value}})):((0,x.sx)(Object.assign({},J,{attributes:{payment_id:null==L?void 0:L.paymentId}})),Se({input:{invoiceId:L.invoiceId,amount:null==e?void 0:e.amount,date:null!=e&&e.date?e.date.format(A.gw):s()().format(A.gw),transactionId:a,paymentMethod:null==(t=e.paymentMethod)?void 0:t.value}}))})),className:"flex flex-col gap-6",children:[(0,O.jsxs)("div",{className:"bg-fill-light text-typography-default flex flex-col gap-2 rounded-lg border-none p-3",children:[(0,O.jsxs)("div",{className:"flex items-center gap-2",children:[(0,O.jsx)(u.Int,{name:"link",size:"xs",color:"default"}),(0,O.jsx)("p",{className:"text-body-medium",children:C.k.link_a_transaction_to_this_payment})]}),(0,O.jsx)("div",{className:"text-typography-grey text-body-s-regular",children:C.k.if_this_payment_was_sent}),(0,O.jsx)(r.xI,{control:K,name:"transaction",render:({field:{onChange:e,value:n,name:a}})=>(0,O.jsx)("div",{ref:j,children:(0,O.jsx)(o.Select,{"data-test-id":"select-transaction-to-link-to-invoice",placeholder:C.k.search_for_a_transaction,options:w,isLoading:Ee||pe,onInputChange:ke,isClearable:!0,isSearchable:!0,noOptionsMessage:()=>(0,m.getErrorMessage)("NO_TXNS_FOUND"),filterOption:()=>!0,value:n,onChange:n=>{e(n),n?(0,x.sx)(ne):(0,x.sx)(ee)},onFocus:()=>(0,x.sx)(Object.assign({},ae,{attributes:{payment_id:null==L?void 0:L.paymentId,transaction_id:null==n?void 0:n.value}}))})})})]}),(0,O.jsxs)("div",{className:"relative",children:[(0,O.jsx)(o.Divider,{}),(0,O.jsx)("div",{className:"text-typography-grey bg-fill-default absolute -bottom-3 left-1/2 -translate-x-2/4 px-2",children:"OR"})]}),(0,O.jsx)(r.xI,{control:K,name:"amount",defaultValue:null==L?void 0:L.amount,render:({field:{value:e,onCh
1ange:n,name:a}})=>{var i;return(0,O.jsx)(o.CurrencyIconInput,{label:C.k.PAYMENTS.PAYMENT_DETAILS.AMOUNT,name:a,error:(null==X||null==(i=X.amount)?void 0:i.message)||"",showError:!0,onValueChange:e=>{var a;null==n||n(null!=(a=null==e?void 0:e.floatValue)?a:0)},allowLeadingZeros:!0,amount:e,disabled:I.yv.includes(null==L?void 0:L.paymentGatewayName),value:e,"data-test-id":"input-enter--payment-amount",onFocus:()=>(0,x.sx)(se)})}}),(0,O.jsx)(r.xI,{control:K,name:"date",render:({field:{value:e,onChange:n,name:a}})=>(0,O.jsx)(o.DatePickerWithoutContext,{label:C.k.PAYMENTS.PAYMENT_DETAILS.DATE,date:null!=e?e:s()(),maxDate:s()(),minDate:s()().subtract(5,"year"),onChange:e=>{(0,x.sx)(ie),n(e)},disabled:!!me||B||oe,displayFormat:"MM/DD/YYYY",customInputIcon:(0,O.jsx)(u.Int,{name:"calendar",size:"sm",color:"grey"})})}),(0,O.jsx)(r.xI,{control:K,name:"paymentMethod",defaultValue:H,render:({field:{value:e,onChange:n,name:a}})=>(0,O.jsx)(o.Select,{"data-test-id":"payment-method",label:C.k.PAYMENTS.PAYMENT_DETAILS.PAYMENT_METHOD,value:null!=e?e:H,onChange:e=>{n(e),(0,x.sx)(te)},isDisabled:!!me||B||oe,options:B?I.vx:I.wz})}),(0,O.jsx)(o.Button,{buttonVariant:"primary",size:"medium","data-test-id":"save-payment",type:"submit",disabled:!(null==X||null==(n=X.amount)||!n.message)||!ce||xe||Ae||ye||oe,children:C.k.save}),F&&(0,O.jsx)(o.Button,{"data-test-id":"save-payment",buttonVariant:"secondary",size:"medium",disabled:I.yv.includes(null==L?void 0:L.paymentGatewayName)||oe,onClick:()=>{R(),(0,x.sx)(re),b({name:v.A.MODAL.INVOICE.DELETE_PAYMENT,data:{invoice:L,editPayment:F,uponDeleteComplete:ue,onDeleteClose:Ie}})},children:C.k.delete})]})}))})]})}},85931(e,n,a){"use strict";a.d(n,{o:()=>v});var i=a(75969),t=a(11257),s=a(23463),r=a(60120),d=a(76805),l=a(45861),o=a(22949),c=a(55531),m=a(42242),u=a(35397),_=a(69500);const v=()=>{const{modalState:e}=(0,s.useModal)(),{privateAPIInstance:n}=(0,i.useContext)(o.AuthContext)||{},{invoice:a,onDeleteClose:v,uponDeleteComplete:N}=(null==e?void 0:e.data)||{},{DELETE_PAYMENT_CANCEL:p,DELETE_PAYMENT_DELETE_PAYMENT:E}=m.y.INVOICES.INVOICE_DETAIL.PAYMENTS,{mutate:g,isPending:T}=(0,r.useMutation)({mutationKey:[d.A.DELETE_PAYMENT],mutationFn:async e=>{const a=await(0,l.ls)(n,e);return a||s.toast.error({message:u.k.something_went_wrong})},onSuccess:()=>{null==N||N()}});return(0,_.jsxs)(s.Modal,{isOpen:e.name===t.A.MODAL.INVOICE.DELETE_PAYMENT,children:[(0,_.jsx)(s.Modal.Header,{children:(0,_.jsx)(s.Header4,{className:"text-typography-default",children:u.k.delete_payment})}),(0,_.jsxs)(s.Modal.Content,{className:"flex-col gap-6",children:[(0,_.jsx)("div",{className:"text-typography-default",children:u.k.are_you_sure_you_want_3}),(0,_.jsxs)("div",{className:"flex w-full items-center gap-4",children:[(0,_.jsx)(s.Button,{type:"button",buttonVariant:"secondary",onClick:()=>{(0,c.sx)(p),null==v||v()},"data-test-id":"cancel-delete-payment",children:u.k.cancel}),(0,_.jsx)(s.Button,{type:"button",buttonVariant:"destructive",onClick:()=>{(0,c.sx)(Object.assign({},E,{attributes:{payment_id:null==a?void 0:a.paymentId}})),g({input:{id:null==a?void 0:a.paymentId}})},disabled:T,"data-test-id":"delete-payment",children:u.k.delete_payment_2})]})]})]})}},51844(e,n,a){"use strict";a.d(n,{x:()=>A});var i=a(75969),t=a(73681),s=a.n(t),r=a(80824),d=a(16354),l=a(60120),o=a(23463),c=a(22949),m=a(1291),u=a(11257),_=a(36195),v=a(2742),N=a(72937),p=a(69500);const E=({date:e,invoiceTotal:n,companyName:a,transactionDescription:i})=>(0,p.jsxs)("div",{className:"bg-fill-light flex flex-col gap-2 rounded-lg border-none px-4 py-2",children:[(0,p.jsxs)("div",{className:"flex gap-1",children:[(0,p.jsx)(m.Int,{name:"link",size:"xs",color:"default"}),(0,p.jsx)("p",{className:"text-typography-grey text-body-s-medium",children:v.W.linked})]}),(0,p.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,p.jsxs)("div",{className:"flex justify-between",children:[(0,p.jsx)("p",{className:"text-body-regular text-typography-default",children:i||(0,N.catalogueText)("activity","transfer_from",{company:a||v.W.unknown})}),(0,p.jsx)("p",{className:"text-body-medium text-typography-success",children:(0,_.currencyFormatter)(n)})]}),(0,p.jsx)("div",{className:"text-typography-grey text-body-s-regular",children:s()(e).format("MM/DD/YYYY")})]})]});var g=a(76075),T=a(76805),k=a(45861),I=a(59080),y=a(14004),S=a(35397);const A=()=>{var e,n;const{privateAPIInstance:a}=(0,i.useContext)(c.AuthContext)||{},{modalState:t,openModal:_,closeModal:v}=(0,o.useModal)(),{invoice:N,paymentMethod:A,transactionId:f,transactionCreatedDate:x,transactionAmount:h,transactionDescription:C}
1=(null==t?void 0:t.data)||{},O=(0,i.useMemo)((()=>{var e;return null!=A&&null!=(e=A.toLowerCase())&&e.includes("check")?I.wz.find((e=>"CHECK"===e.value)):I.wz.find((e=>"BANK_TRANSFER"===e.value))}),[A]),D=(0,r.mN)({mode:"onChange",reValidateMode:"onChange",resolver:(0,d.t)((0,g.gF)((null==N?void 0:N.invoiceTotal)-(null==N?void 0:N.totalAmountPaid)||0)),defaultValues:{amount:h>(null==N?void 0:N.payableAmount)?null==N?void 0:N.payableAmount:h}}),{control:b,handleSubmit:R,formState:L}=D,{errors:F}=L,P=(0,l.useIsMutating)({mutationKey:[T.A.RECORD_PAYMENT]})>0,{mutate:j,isPending:M}=(0,l.useMutation)({mutationKey:[T.A.RECORD_PAYMENT],mutationFn:async e=>{const n=await(0,k.z4)(a,e);return n||o.toast.error({message:S.k.something_went_wrong})},onSuccess:()=>{v(),_({name:"TXN_DETAILS",data:{id:f,isPending:!1,type:"transaction"}})}});return(0,p.jsxs)(o.RightModal,{isOpen:t.name===u.A.MODAL.INVOICE.LINK_PAYMENT_TO_TXN,closeIcon:!0,shouldCloseOnBackdrop:!0,shouldCloseOnEsc:!0,onModalClose:()=>{v()},children:[(0,p.jsx)(o.Modal.Header,{children:(0,p.jsx)(o.Header3,{children:y.WD.APPLY_A_PAYMENT})}),(0,p.jsx)(o.Modal.Content,{className:"flex flex-col gap-6",children:(0,p.jsx)(r.Op,Object.assign({},D,{children:(0,p.jsxs)("form",{onSubmit:R((e=>{const n={invoiceId:N.id,amount:null==e?void 0:e.amount,date:s()(x).format(y.gw),transactionId:f,paymentMethod:null==O?void 0:O.value};j({input:n})})),className:"flex flex-col gap-6",children:[(0,p.jsx)(E,{invoiceTotal:h,companyName:null==N||null==(e=N.customer)?void 0:e.companyName,date:x,transactionDescription:C}),(0,p.jsx)(r.xI,{control:b,name:"amount",defaultValue:h>(null==N?void 0:N.payableAmount)?null==N?void 0:N.payableAmount:h,render:({field:{value:e,onChange:n,name:a}})=>{var i;return(0,p.jsx)(o.CurrencyIconInput,{label:S.k.PAYMENTS.PAYMENT_DETAILS.AMOUNT,name:a,onValueChange:e=>{var a;null==n||n(null!=(a=null==e?void 0:e.floatValue)?a:0)},allowLeadingZeros:!0,value:e,defaultValue:h>(null==N?void 0:N.payableAmount)?null==N?void 0:N.payableAmount:h,amount:+e,"data-test-id":"input-enter--payment-amount",showError:!0,error:(null==F||null==(i=F.amount)?void 0:i.message)||""})}}),(0,p.jsx)(o.DatePickerWithoutContext,{label:S.k.PAYMENTS.PAYMENT_DETAILS.DATE,date:null!=(n=s()(x))?n:void 0,maxDate:s()(),minDate:s()().subtract(1,"year"),onChange:()=>null,disabled:!0,readOnly:!0,displayFormat:"MM/DD/YYYY",customInputIcon:(0,p.jsx)(m.Int,{name:"calendar",size:"sm",color:"grey"})}),(0,p.jsx)(o.Select,{"data-test-id":"payment-method",label:S.k.PAYMENTS.PAYMENT_DETAILS.PAYMENT_METHOD,value:O,isDisabled:!0}),(0,p.jsx)(o.Button,{buttonVariant:"primary",size:"medium","data-test-id":"save-payment",type:"submit",disabled:M||P,children:S.k.save})]})}))})]})}},77489(e,n,a){"use strict";a.d(n,{D:()=>O});var i=a(75969),t=a(3534),s=a(60120),r=a(73681),d=a.n(r),l=a(8448),o=a(23463),c=a(1291),m=a(22949),u=a(21215),_=a(55531),v=a(36195),N=a(11257),p=a(45861),E=a(76805),g=a(1701),T=a(14004),k=a(35397),I=a(69500);const y=({details:e})=>{const{privateAPIInstance:n}=(0,i.useContext)(m.AuthContext)||{},{completed:a,inTransit:t,processing:r}=e||{},{PAYMENT_DETAILS:l}=k.k.PAYMENTS,{data:c}=(0,s.useQuery)({queryKey:[E.B.GET_PAYMENTS_TOOLTIPS],queryFn:async()=>await(0,p.aC)(n),select:e=>{var n;return null==e||null==(n=e.data)?void 0:n.paymentToolTips},staleTime:u.CONSTANTS.QUERY_STALE_TIME,enabled:!!n});if(!c)return;const{processing:_,inTransit:v,completed:N}=c||{},y=(e,n)=>{var a;if(n.completedAt&&n.initiatedAt&&n.state===g.Mx.NOT_STARTED)return(0,T.Np)(n.initiatedAt,n.completedAt);let i="";e!==g.xC.PROCESSING&&e!==g.xC.IN_TRANSIT||n.state!==g.Mx.IN_PROGRESS&&n.state!==g.Mx.NOT_STARTED||(i="est ");return i+(null!=n&&n.completedAt||n.initiatedAt?d()(null!=(a=null==n?void 0:n.completedAt)?a:n.initiatedAt).format(T.Km):"")},S=[{label:r.state===g.Mx.COMPLETED?l.TOOLTIPS.PROCESSED:l.TOOLTIPS.PROCESSING,info:y(g.xC.PROCESSING,r),tooltip:_,status:null!=r&&r.state?r.state:g.Mx.NOT_STARTED},{label:l.TOOLTIPS.IN_TRANSIT,info:y(g.xC.IN_TRANSIT,t),tooltip:v,status:null!=t&&t.state?t.state:g.Mx.NOT_STARTED},{label:l.TOOLTIPS.COMPLETED,info:y(g.xC.COMPLETED,a),tooltip:N,status:null!=a&&a.state?a.state:g.Mx.NOT_STARTED}];return(0,I.jsx)(o.ProgressTracker,{steps:S})},S=()=>(0,I.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,I.jsx)(o.SkeletonText,{className:"w-[120px]"}),(0,I.jsx)(o.SkeletonText,{containerClassName:"w-[80px]"})]}),A=()=>(0,I.jsxs)("div",{className:"flex flex-col gap-6 p-6",children:[(0,I.jsxs)("div",{className:"flex gap-4",children:[(0,I.jsx)(o.SkeletonText,{}),(0,I.jsx)(o.SkeletonText,{}),(0,I.jsx)(o.SkeletonText,{})]}),(0,I.jsxs)(o.Card,{className:"flex flex-col gap-4 p-4",children:[(0,I.jsx)(S,{}),(0,I.jsx)(S,{}),(0,I.jsx)(o.Divider,{}),(0,I.jsx)(S,{})]}),(0,I.jsx)(S,{}),(0,I.jsx)(S,{}),(0,I.jsx)(S,{}),(0,I.jsx)(S,{}),(0,I.jsx)(S,{}),(0,I.jsx)(S,{}),(0,I.jsx)(S,{}),(0,I.jsx)(o.SkeletonBox,{className:"h-12 w-full rounded-full"})]});var f=a(5897),x=a(78667),h=a(42242);const C=({txn:e,onClick:n})=>{const{createdDate:a,description:i,amount:t,id:s}=e;return(0,I.jsxs)("div",{className:"bg-fill-light flex flex-col gap-2 rounded-lg border-none px-4 py-2",children:[(0,I.jsxs)("div",{className:"flex gap-1",children:[(0,I.jsx)(c.Int,{name:"link",size:"xs",color:"grey"}),(0,I.jsx)("p",{className:"text-typography-grey text-caption-regular font-medium",children:k.k.linked_transaction})]}),(0,I.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,I.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,I.jsx)(o.Link,{"data-test-id":"view-transaction-linked-to-payment",onClick:n,linkVariant:s?"primary":"disabled",className:"text-left !font-normal",children:i}),(0,I.jsx)("p",{className:"text-body-regular text-typography-success font-medium",children:(0,v.currencyFormatter)(t)})]}),(0,I.jsx)("div",{className:"text-typography-grey text-body-s-regular",children:(0,v.formatDate)(a,v.DateFormatType.MM_DD_YYYY_SLASH)})]})]})},O=()=>{var e;const[n,a]=(0,i.useState)([]),{privateAPIInstance:r}=(0,i.useContext)(m.AuthContext)||{},{isSendingReceipt:S,sendReceiptMutation:O}=(0,f.H)(),D=(0,t.useNavigate)(),{modalState:b,openModal:R,closeModal:L}=(0,o.useModal)(),{id:F}=(null==b?void 0:b.data)||{},{PAYMENT_DETAILS:P}=k.k.PAYMENTS,{data:j,isFetching:M}=(0,s.useQuery)({queryKey:[E.B.GET_PAYMENT_DETAILS,{id:F}],queryFn:async()=>await(0,p.ln)(r,{id:F}),enabled:!!F&&!!r}),{data:U}=(0,s.useQuery)({queryKey:[E.B.GET_PAYMENT_DISPUTE_LIST,{id:F}],queryFn:async()=>await(0,p.hy)(r,{filters:{invoiceTransactionId:F}}),enabled:!!F&&!!r}),{paymentTrackingDetails:w,status:V,amount:B,fee:Y,paymentMethod:G,customer:H,netAmount:W,createdAt:K,paymentMethodDetails:q,invoice:$,transactionId:z,paymentGatewayName:Q,transactionTimestamp:X}=j||{},{bankName:Z,bankAccountNumber:J,cardNumber:ee,cardType:ne,expiryDate:ae}=q||{},{email:ie,address:te,id:se,name:re}=H||{},{id:de,invoiceNumber:le,totalAmountPaid:oe,invoiceTotal:ce}=$||{},me=V===g.Hi.FAILED,ue=V===g.Hi.CANCELED,_e=V===g.Hi.DISPUTED,ve=V===g.Hi.COMPLETED,Ne=Q===g.F1.MANUA
1L||Q===g.F1.PAYPAL_THIRD_PARTY||Q===g.F1.STRIPE_THIRD_PARTY||Q===g.F1.SQUARE_THIRD_PARTY,{VIEW_TXN:pe,SEND_A_RECEIPT:Ee,EDIT_PAYMENT:ge}=h.y.PAYMENTS.PAYMENT_DETAILS,{VIEW_SUPPORT_TICKET:Te,MORE_DETAILS:ke}=h.y.DISPUTES,{data:Ie}=(0,s.useQuery)({queryKey:[E.B.GET_PAYMENT_LINKED_TRANSACTION_INFO],queryFn:async()=>(await(0,p.um)(r,{input:{id:F}})).ddaTransaction,enabled:!!r&&!!F&&!!z}),ye=async e=>{e.preventDefault(),(0,_.sx)(Object.assign({},pe,{attributes:{payment_id:F}})),z&&(L(),R({name:"TXN_DETAILS",data:{id:z,isPending:!1,type:"transaction"}}))};return(0,I.jsxs)(o.RightModal,{isOpen:b.name===N.A.MODAL.INVOICE.PAYMENT_DETAILS,closeIcon:!0,shouldCloseOnBackdrop:!0,shouldCloseOnEsc:!0,children:[(0,I.jsx)(o.Modal.Header,{children:(0,I.jsx)(o.Header3,{children:P.PAYMENT_DETAILS})}),(0,I.jsx)(o.Skeleton,{on:M,fallback:(0,I.jsx)(A,{}),children:(0,I.jsxs)(o.Modal.Content,{className:"flex flex-col gap-6",children:[null!=U&&null!=(Se=U.edges)&&Se.length?U.edges.map((e=>{var i;const t=n.includes(e.id),s=null!=(i=e.crmTicketId)?i:e.zendeskTicketId,r=()=>(0,I.jsx)("button",{onClick:()=>{return n=e.id,a((e=>e.includes(n)?e.filter((e=>e!==n)):[...e,n])),void(0,_.sx)(Object.assign({},ke,{attributes:{payment_id:F}}));var n},"data-test-id":`dispute-expand-${e.id}`,className:"itme-center text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed text-body-s-medium flex cursor-pointer flex-row flex-nowrap items-center gap-1",children:(0,I.jsxs)("div",{className:"text-typography-interactive-resting flex items-center gap-1",children:[(0,I.jsx)("div",{children:k.k.more_details}),(0,I.jsx)(l.P.div,{initial:!1,animate:{rotate:t?180:0},transition:{duration:.2},className:"text-indigo-600",children:(0,I.jsx)(c.Int,{name:"chevron-down",size:"xs",color:"info"})})]})});return(0,I.jsx)("div",{children:(0,I.jsx)(o.AlertBanner,{variant:(e=>{switch(e){case g.Yc.NEEDS_RESPONSE:case g.Yc.LOST:case g.Yc.UNDER_REVIEW:case g.Yc.WARNING_NEEDS_RESPONSE:case g.Yc.WARNING_UNDER_REVIEW:return"warning";case g.Yc.WON:return"brand";default:return"info"}})(e.status),title:e.alert.title,description:(e=>{var n;return(0,I.jsxs)("div",{className:"flex w-full flex-col items-start justify-start gap-2",children:[(0,I.jsxs)("div",{className:"flex flex-col",children:[(0,I.jsx)("div",{className:"text-body-s-medium",children:e.alert.title}),(0,I.jsx)("p",{className:"text-body-s-regular whitespace-pre-wrap",children:e.alert.message})]}),[g.Yc.NEEDS_RESPONSE,g.Yc.WARNING_NEEDS_RESPONSE,g.Yc.UNDER_REVIEW].includes(e.status)&&(e.alert.ctaType===g.mn.CONTACT_SUPPORT||e.alert.ctaType===g.mn.SUPPORT_TICKET&&s)&&(0,I.jsx)("button",{className:"text-body-s-medium text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed flex cursor-pointer","data-test-id":"invoice-payment-detail-dispute-support-ticket",onClick:n=>{n.preventDefault(),(0,_.sx)(Object.assign({},Te,{attributes:{payment_id:F}}));const a=e.alert.ctaType===g.mn.CONTACT_SUPPORT?u.NOVO_PAGE_ROUTES.SupportTicket:u.NOVO_PAGE_ROUTES.TicketDetail.replace(":id",s);D(a)},children:e.alert.ctaText}),r(),t&&(0,I.jsx)(o.Card,{background:"primary",className:"w-full",children:(0,I.jsx)(o.CardContent,{className:"w-full flex-col gap-2 p-4",children:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"flex items-center justify-between",children:[(0,I.jsx)("span",{className:"text-body-s-regular text-typography-grey text-left",children:k.k.disputed_amount}),(0,I.jsx)("span",{className:"text-body-s-medium text-typography-default text-right",children:(0,v.currencyFormatter)(e.amount)})]}),(0,I.jsxs)("div",{className:"flex items-center justify-between",children:[(0,I.jsx)("span",{className:"text-body-s-regular text-typography-grey text-left",children:k.k.reason}),(0,I.jsx)("span",{className:"text-body-s-medium text-typography-default text-right",children:(0,x.capitalize)(null==(n=e.reason)?void 0:n.replaceAll("_"," "))})]}),![g.Yc.LOST,g.Yc.WON,g.Yc.UNDER_REVIEW].includes(e.status)&&(0,I.jsxs)("div",{className:"flex items-center justify-between",children:[(0,I.jsx)("span",{className:"text-body-s-regular text-typography-grey text-left",children:k.k.response_due_date}),(0,I.jsx)("span",{className:"text-body-s-medium text-typography-default text-right",children:d()(e.responseDeadline).format(g.Yc.NEEDS_RESPONSE?T.X_:T.VY)})]})]})})})]})})(e),icon:(e=>e===g.Yc.WON?null:(0,I.jsx)(c.Int,{name:"warning-sign",size:"md"}))(e.status),className:"w-full"})},e.id)})):null,!me&&!ue&&w&&Q===g.F1.STRIPE&&(0,I.jsx)(y,{details:w}),me&&(0,I.jsx)(o.AlertBanner,{className:"p-4",variant:"warning",description:(0,I.jsxs)("div",{className:"text-body-s-regular flex flex-col font-normal",children:[(0,I.jsx)("div",{className:"font-medium",children:P.PAYMENT_FAILED}),(0,I.jsx)("div",{className:"",children:P.NOTIFY_CLIENT_ALERT})]}),icon:(0,I.jsx)(c.Int,{name:"warning-sign",size:"md"})}),ue&&(0,I.jsx)(o.AlertBanner,{variant:"info",className:"p-4",description:(0,I.jsxs)("div",{className:"text-body-s-regular",children:[P.CANCELLED_ALERT," Mar 7."]})}),ve&&Q===g.F1.STRIPE&&(0,I.jsx)(o.Link,{"data-test-id":"view-payment-transaction",onClick:ye,linkVariant:z?"primary":"disabled",children:P.VIEW_TRANSACTION}),(0,I.jsxs)(o.Card,{className:"bg-fill-neutral flex flex-col gap-2 border-none p-4",children:[(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.AMOUNT}),(0,I.jsx)("div",{children:B?(0,v.currencyFormatter)(B):"-"})]}),(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.FEE}),(0,I.jsx)("div",{children:Y?`-${(0,v.currencyFormatter)(Y)}`:"-"})]}),(0,I.jsx)("hr",{className:"border-border-light h-px border"}),(0,I.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,I.jsx)("div",{children:P.NET}),(0,I.jsx)("div",{children:W?(0,v.currencyFormatter)(W):"-"})]})]}),(0,I.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.DATE}),(0,I.jsx)("div",{className:"font-medium",children:K?d()(K).format("MMM D, YYYY"):"-"})]}),(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.CLIENT}),(0,I.jsx)(o.Link,{className:"cursor-pointer","data-test-id":"payment-to-client-details",onClick:()=>{se&&D(`${u.NOVO_PAGE_ROUTES.InvoiceClientProfile.replace(":id",se)}`)},to:"",children:null!=re?re:"-"})]}),(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.INVOICE}),(0,I.jsx)(o.Link,{className:"cursor-pointer","data-test-id":"payment-to-inv-details",onClick:e=>{e.preventDefault(),de&&D(`/${u.NOVO_PAGE_ROUTES.InvoiceDetails.replace(":id",de)}`)},to:"#",children:le?"INV-"+le:"-"})]}),(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:k.k.PAYMENTS.PAYMENT_DETAILS.PAYMENT_METHOD}),(0,I.jsx)("div",{className:"font-medium capitalize",children:null!=(e=(0,T.b_)(G))?e:"-"})]}),G===g.TG.BANK_TRANSFER&&(0,I.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.BANK}),(0,I.jsx)("div",{className:"font-medium",children:null!=Z?Z:"-"})]}),(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.ACCOUNT_NUMBER}),(0,I.jsx)("div",{className:"font-medium",children:null!=J?J:"-"})]})]}),G===g.TG.CARD&&(0,I.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.CARD_TYPE}),(0,I.jsx)("div",{className:"font-medium capitalize",children:null!=ne?ne:"-"})]}),(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.CARD_NUMBER}),(0,I.jsx)("div",{className:"font-medium",children:ee?`x-${ee}`:"-"})]}),(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:k.k.exp}),(0,I.jsx)("div",{className:"font-medium",children:null!=ae?ae:"-"})]})]}),(G===g.TG.CARD||G===g.TG.BANK_TRANSFER)&&(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.BILLING_ADDRESS}),(0,I.jsx)("div",{className:"text-right font-medium",children:null!=te?te:"-"})]}),(0,I.jsxs)("div",{className:"flex justify-between",children:[(0,I.jsx)("div",{children:P.EMAIL}),(0,I.jsx)("div",{className:"font-medium",children:ie})]})]}),null!==z&&Ne&&Ie&&(0,I.jsx)(C,{txn:Ie,onClick:ye}),(0,I.jsxs)("div",{className:"flex justify-between gap-4",children:[!me&&!_e&&(0,I.jsx)(o.Button,{buttonVariant:"secondary","data-test-id":"send-receipt",className:"w-full",onClick:()=>{(0,_.sx)(Object.assign({},Ee,{attributes:{payment_id:F}})),de&&F&&O({invoiceId:de,transactionId:F})},disabled:S||!F,children:P.SEND_RECEIPT}),Ne&&F&&(0,I.jsx)(o.Button,{buttonVariant:"secondary","data-test-id":"edit-receipt",className:"w-full",onClick:()=>{(0,_.sx)(ge),L(),R({name:N.A.MODAL.INVOICE.APPLY_PAYMENT_TO_INVOICE,data:{invoice:{amount:B,maxAmount:ce&&oe&&B?(ce-oe+B).toFixed(2):(ce||0).toFixed(2),invoiceId:de,paymentId:F,paymentMethod:G,transactionId:z,paymentGatewayName:Q,transactionTimestamp:null!=X?X:K},editPayment:!0,isPaymentsPage:!0}})},children:P.EDIT_PAYMENT})]})]})})]});var Se}},58293(e,n,a){"use strict";a.d(n,{A:()=>B});var i=a(75969),t=a.n(i),s=a(28492),r=a(48262),d=a(55531),l=a(89329),o=a(1701),c=a(42242),m=a(69500);const u={paypal:c.y.FINANCIAL_CONNECTIONS.PAYPAL,venmo:c.y.FINANCIAL_CONNECTIONS.VENMO},_="buttons,funding-eligibility",v="card,paylater",N={tagline:!1,borderRadius:12,height:55},p=Object.assign({},N,{color:"gold"}),E=Object.assign({},N,{color:"blue"}),g=({option:e})=>{const{mutateAsyncCreatePaymentOrder:n,validateInvoicePaymentRequest:a}=(0,i.useContext)(l.nf)||{},{details:{clientId:t}={},enableFunding:s="paypal,venmo"}=e,c={clientId:t,components:_,currency:"USD",enableFunding:s,disableFunding:v},N={clientId:t,components:_,currency:"USD",enableFunding:"venmo",disableFunding:v},g=(0,i.useCallback)((e=>{const n=u[e];n&&(0,d.sx)(n)}),[]),T="venmo"===s;return(0,m.jsx)("div",{className:"flex flex-col gap-2",children:(0,m.jsx)(r.ag,{options:T?N:c,children:(0,m.jsx)(r.JV,{createOrder:async()=>{const e=await n({paymentGatewayName:o.F1.PAYPAL_ONLINE_PAYMENT}),{data:a}=e||{},{orderId:i}=a||{};return i},onApprove:async()=>{await a({paymentGatewayName:o.F1.PAYPAL_ONLINE_PAYMENT})},style:T?E:p,fundingSource:T?r.if.VENMO:void 0,onClick:e=>g(e.fundingSource)})})})};var T=a(23463),k=a(28110),I=a(77542),y=a(59080),S=a(35397);const A=({option:e,postSuccessCallback:n})=>
1{const{mutateAsyncCreatePaymentOrder:a,validateInvoicePaymentRequest:t}=(0,i.useContext)(l.nf)||{},[s,r]=(0,i.useState)(!0),[d,c]=(0,i.useState)(!0),u=(0,i.useRef)(null),{openModal:_,closeModal:v}=(0,T.useModal)();(0,i.useEffect)((()=>{(async()=>{try{await(async()=>new Promise(((e,n)=>{if(document.getElementById("squareSDK"))e();else{const a=document.createElement("script");a.setAttribute("id","squareSDK"),a.onload=()=>e(),a.onerror=()=>n(new Error("Failed to load Square SDK")),a.src="production"===k.c.NODE_ENV?k.c.SQUARE_PAYMENT_SDK:k.c.DEV_SQUARE_PAYMENT_SDK,document.getElementsByTagName("head")[0].appendChild(a)}})))(),await p()}catch(e){(0,I.oI)(`Square.js failed to load properly: ${e.message}`,"THIRD_PARTY_SCRIPT_FAILURE",{script:"square.js"}),console.error(e.message)}})()}),[]);const N=async e=>{const n=document.getElementById("payment-status-container");"SUCCESS"===e?(null==n||n.classList.remove("is-failure"),null==n||n.classList.add("is-success")):(null==n||n.classList.remove("is-success"),null==n||n.classList.add("is-failure")),n&&(n.style.visibility="visible")},p=async()=>{if(!window.Square)throw new Error("Square.js failed to load properly");let i,s;try{const{details:{clientId:n="",squareLocationId:a=""}={}}=e;i=window.Square.payments(n,a)}catch(c){const e=document.getElementById("payment-status-container");return void(e&&(e.className="missing-credentials",e.style.visibility="visible"))}const d=null==u?void 0:u.current;try{s=await E(i)}catch(m){return(0,I.oI)("Initializing Card failed Square","THIRD_PARTY_SDK_FAILURE",{provider:"square",operation:"card-init"}),void console.error("Initializing Card failed",m)}const l=async(e,i)=>{e.preventDefault();try{var s;r(!0),_({name:y.aH.MODAL.PAYMENT_IN_PROGRESS});const e=await a({paymentGatewayName:o.F1.SQUARE_CARD_PAYMENT});if(!e.hasError&&null!=e&&null!=(s=e.data)&&s.invoiceTransactionId){var d;const a=await(async e=>{const n=await e.tokenize();if("OK"===n.status)return n.token;let a=`Tokenization failed with status: ${n.status}`;throw n.errors&&(a+=` and errors: ${JSON.stringify(n.errors)}`),new Error(a)})(i),s=await t({paymentGatewayName:o.F1.SQUARE_CARD_PAYMENT,invoiceTransactionId:null==e||null==(d=e.data)?void 0:d.invoiceTransactionId,squareSourceId:a});null!=s&&s.hasError||(r(!1),n(),v()),N("SUCCESS")}else N("FAILURE"),v()}catch(m){var l;r(!1),N("FAILURE"),v(),(0,I.oI)(`Square payment failed: ${null!=(l=null==m?void 0:m.message)?l:"Unknown error"}`,"THIRD_PARTY_SDK_FAILURE",{provider:"square",operation:"payment-submission"}),console.error("Square payment failed:",m)}finally{r(!1),v()}};null==d||d.addEventListener("click",(async e=>{await l(e,s)}))},E=async e=>{const n=document.getElementById("card-container"),a=await e.card();return n&&!n.querySelectorAll(".sq-card-wrapper").length&&(await a.attach("#card-container"),r(!1),c(!1)),a};return(0,m.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[d&&(0,m.jsx)(T.SectionalLoader,{isOverlay:!1}),(0,m.jsxs)("form",{id:"payment-form",children:[(0,m.jsx)("div",{id:"card-container"}),(0,m.jsx)(T.Button,{id:"card-button",buttonVariant:"primary","data-test-id":"pay-with-card",type:"button",disabled:s,ref:u,children:S.k.pay_with_card})]}),(0,m.jsx)("div",{id:"payment-status-container"})]})};var f=a(10644);const x=a.p+"paypal.86ba807ca28e2ed4.svg";var h=a(49821),C=a(1291),O=a(14004),D=a(8448),b=a(72617),R=a(36195),L=a(3534);const F={get ACH(){return S.k.bank_transfer_ach},get CHECK_DEPOSIT(){return S.k.check},get CREDIT_DEBIT_CARD(){return S.k.debit_or_credit_card}},P=({option:e,showPaymentCard:n,activePaymentType:a,postSuccessCallback:i,code:t})=>{if("CREDIT_DEBIT_CARD"!==a||!n)return null;switch(null==e?void 0:e.paymentName){case"SQUARE_CARD_PAYMENT":return(0,m.jsx)(A,{option:e,postSuccessCallback:i});case"PAYPAL_CARD_PAYMENT":return(0,m.jsx)(g,{option:e});case"STRIPE_CARD_PAYMENT":return(0,m.jsx)(f.A,{option:e,isFromPremiumPayment:!1,postSuccessCallback:i,code:null!=t?t:""});case"PAYPAL_ONLINE_PAYMENT":return(0,m.jsx)(g,{option:e},e.paymentName);default:return null}},j=({activePaymentOption:e,resetActivePaymentType:n})=>{if(!e.paymentValues.length)return null;return(0,m.jsx)("div",{className:"flex flex-1 flex-col gap-2",children:e.paymentValues.map(((n,a)=>{return"PAYPAL_ONLINE_PAYMENT"===(null==(i=n)?void 0:i.paymentName)?(0,m.jsx)(g,{option:i,paymentCategoryType:e.paymentCategoryType},i.paymentName):null;var i}))})},M=({paymentValues:e})=>{let n={};if(1===e.length){var a;const i=null==e||null==(a=e[0])||null==(a=a.paymentMethods)||null==(a=a[0])||null==(a=a.value)?void 0:a.toLowerCase();n=Object.assign({},null==e?void 0:e[0],{enableFunding:i})}else{const a=e.flatMap((e=>e.paymentMethods||[])),i=a.map((e=>{var n;return null==(n=e.value)?void 0:n.toLowerCase()}
1)).filter(Boolean).join(",");n=Object.assign({},null==e?void 0:e[0],{paymentMethods:a,enableFunding:i})}return(0,m.jsx)(g,{option:n},n.paymentName)},U=({activePaymentOption:e,showPaymentCard:n,activePaymentType:a,resetActivePaymentType:i})=>{var t,s,r;const{code:d}=(0,L.useParams)();if(!e)return null;switch(e.paymentCategoryType){case"ONLINE_PAYMENTS":return(0,m.jsx)(j,{activePaymentOption:e,resetActivePaymentType:i});case"STRIPE_PAYMENTS":return(0,m.jsx)(f.A,{option:null==e||null==(t=e.paymentValues)?void 0:t[0],isFromPremiumPayment:!1,postSuccessCallback:i,code:null!=d?d:""});case"CREDIT_DEBIT_CARD":return(0,m.jsx)(P,{option:null==e||null==(s=e.paymentValues)?void 0:s[0],showPaymentCard:n,activePaymentType:a,postSuccessCallback:i,code:null!=d?d:""});case"DIGITAL_PAYMENTS":return(0,m.jsx)(P,{option:null==e||null==(r=e.paymentValues)?void 0:r[0],postSuccessCallback:i,code:null!=d?d:""});case"PAYPAL_PAYMENTS":return(0,m.jsx)(M,{paymentValues:null==e?void 0:e.paymentValues});case"CHECK_DEPOSIT":return(0,m.jsx)(V,{achOption:e,showPaymentCard:n,activePaymentType:a});case"ACH":return(0,m.jsx)(w,{achOption:e,showPaymentCard:n,activePaymentType:a});default:return null}},w=({achOption:e,showPaymentCard:n,activePaymentType:a})=>{if(!e)return null;const{name:i,paymentValues:t}=e;if(null==t||!t.length)return null;if(a!==e.paymentCategoryType||!n)return null;const{details:{bankAccountNumber:s,routingNumber:r,type:d}={}}=t[0];return(0,m.jsxs)("div",{className:"mt-4 flex flex-1 flex-col gap-4",children:[(0,m.jsx)("div",{className:"text-body-regular flex items-center gap-1",children:S.k.to_pay_with_ach_transfer_funds}),(0,m.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row",children:[s&&(0,m.jsx)("div",{className:"flex items-center gap-2",children:(0,m.jsxs)("div",{className:"flex flex-col items-start justify-start",children:[(0,m.jsx)("div",{className:"text-typography-grey text-caption-regular",children:S.k.PAYMENTS.PAYMENT_DETAILS.ACCOUNT_NUMBER}),(0,m.jsxs)("div",{className:"text-body-regular flex items-center gap-2",children:[(0,m.jsx)("span",{children:s})," ",(0,m.jsx)(T.CopyToClipboard,{valueToCopy:s,name:"Account Number",element:(0,m.jsx)("div",{className:"flex cursor-pointer items-center justify-start",children:(0,m.jsx)(C.Int,{name:"copy",size:"md",color:"info"})})})]})]})}),r&&(0,m.jsx)("div",{className:"flex items-center gap-2",children:(0,m.jsxs)("div",{className:"flex flex-col items-start justify-start",children:[(0,m.jsx)("div",{className:"text-typography-grey text-caption-regular",children:S.k.routing_number}),(0,m.jsxs)("div",{className:"text-body-regular flex items-center gap-2",children:[(0,m.jsx)("span",{children:r})," ",(0,m.jsx)(T.CopyToClipboard,{valueToCopy:r,name:"Routing Number",element:(0,m.jsx)("div",{className:"flex cursor-pointer items-center justify-start",children:(0,m.jsx)(C.Int,{name:"copy",size:"md",color:"info"})})})]})]})}),d&&(0,m.jsx)("div",{className:"flex items-center gap-2",children:(0,m.jsxs)("div",{className:"flex flex-col",children:[(0,m.jsx)("div",{className:"text-typography-grey text-caption-regular",children:S.k.account_type}),(0,m.jsx)("div",{className:"text-body-regular capitalize",children:(0,R.capitalizeFirstLetter)(d)})]})})]})]})},V=({achOption:e,showPaymentCard:n,activePaymentType:a})=>{if(!e)return null;if(a!==e.paymentCategoryType||!n)return null;const{paymentValues:i}=e;if(null==i||!i.length)return null;const{details:{address:t,addressLine2:r,city:d,mailCheckTo:l,state:o,writeCheckTo:c,zipCode:u}={}}=i[0];return(0,m.jsxs)("div",{className:"mt-4 flex flex-col gap-4 md:flex-row",children:[c&&(0,m.jsxs)("div",{className:"text-body-regular flex w-full flex-col text-start",children:[(0,m.jsx)("p",{className:"text-typography-grey text-wrap",children:S.k.payable}),(0,m.jsx)("div",{children:c})]}),l&&(0,m.jsxs)("div",{className:"text-body-regular flex w-full flex-col text-start",children:[(0,m.jsx)("p",{className:"text-typography-grey text-wrap",children:S.k.mail}),(0,m.jsx)("div",{children:l}),(0,m.jsx)("div",{className:"flex flex-wrap",children:(0,s.Aw)(t,r,d,o,u)})]})]})},B=({acceptedPaymentOptions:e,className:n,previewPage:a,sender:s,payableAmount:r})=>{var l;const[o,u]=(0,i.useState)(!1),[_,v]=(0,i.useState)(""),[N,p]=(0,i.useState)(""),[E,g]=(0,i.useState)([]),{modalState:k}=(0,T.useModal)(),I=null==s||null==(l=s.business)?void 0:l.businessName;(0,i.useEffect)((()=>{const n=e.filter((e=>{var n;if("CREDIT_DEBIT_CARD"!==e.paymentCategoryType||"com.novo.stripe"!==(null==e||null==(n=e.paymentValues[0])?void 0:n.hid)
1)return null==e?void 0:e.hasConnectionError;var a;if(!(null==(a=e.paymentValues[0])||null==(a=a.details)?void 0:a.stripePublishableKey)||null!=e&&e.hasConnectionError)return!0;return!1})),a=null==n?void 0:n.map((e=>{var n;return null==e||null==(n=e.paymentValues[0])?void 0:n.hid}));g(a||[])}),[e,_]),(0,i.useEffect)((()=>{_&&u(!0)}),[_]),(0,i.useEffect)((()=>{if(null!=E&&E.length&&!a){if(1===E.length){const e="com.novo.stripe"===E[0]||"com.novo.square"===E[0]?"card":"PayPal";return p(`We are experiencing issues with ${e} payments. To pay this invoice by ${e}, please contact ${I}.`)}return p(`We are experiencing issues with card and PayPal payments. To pay this invoice by card or PayPal, please contact ${I}.`)}}),[E,a,I]);const A=(0,i.useMemo)((()=>null==e?void 0:e.filter((e=>!e.hasConnectionError))),[e]),f=()=>{v("")};if(!e)return null;const R=e=>{if(!a)switch(e){case"CHECK_DEPOSITS":(0,d.sx)(c.y.FINANCIAL_CONNECTIONS.CHECK);break;case"ACH":(0,d.sx)(c.y.FINANCIAL_CONNECTIONS.BANK_TRANSFER_ACH)}};return(0,m.jsx)(T.Card,{className:"shadow-CardMedium w-full",children:(0,m.jsxs)(T.CardContent,{className:"w-full flex-col gap-4",children:[(0,m.jsx)(T.Header6,{children:O.WD.PaymentMethod}),A.map((e=>{var n,i,d,l,c,N,p;const{paymentCategoryType:E,paymentValues:g=[]}=e;if(!g.find((e=>{var n;return null==e||null==(n=e.connectionInformation)?void 0:n.isConnected})))return null;var T;if("CREDIT_DEBIT_CARD"===e.paymentCategoryType&&"com.novo.stripe"===(null==e||null==(n=e.paymentValues[0])?void 0:n.hid)&&!a&&(null==(T=e.paymentValues[0])||null==(T=T.details)||!T.stripePublishableKey))return null;const I=null!=(i=null==(d=e.paymentValues)||null==(d=d[0])||null==(d=d.paymentLimits)?void 0:d.min)?i:0,A=!a&&I>(null!=r?r:0);return(0,m.jsxs)(t().Fragment,{children:[(0,m.jsx)("div",{className:"PAYPAL_PAYMENTS"!==e.paymentCategoryType||A?"flex flex-col border border-solid rounded-lg w-full border-border-light ":"",children:(0,m.jsxs)("div",{className:"cursor-pointer "+("PAYPAL_PAYMENTS"!==e.paymentCategoryType||A?"border-border-light flex w-full flex-col border-solid p-4":""),"data-test-id":`${e.paymentCategoryType}`,onClick:n=>((e,n)=>{var a,i;R(n.paymentCategoryType);const t=e.target,s=e.currentTarget;s!==t&&(null==(a=t.parentElement)?void 0:a.parentElement)!==s&&(null==(i=t.parentElement)||null==(i=i.parentElement)?void 0:i.parentElement)!==s||(u((e=>!e)),v(null==n?void 0:n.paymentCategoryType))})(n,e),children:[("PAYPAL_PAYMENTS"!==e.paymentCategoryType||A)&&(0,m.jsxs)("div",{className:"flex flex-row items-start justify-between",children:[(0,m.jsx)("div",{className:"text-typography-default text-body-medium w-full gap-4",children:null!=(l=F[e.paymentCategoryType])?l:e.name}),(0,m.jsx)(D.P.div,{initial:{rotate:0},animate:{rotate:_===(null==e?void 0:e.paymentCategoryType)&&o?180:0},transition:{duration:.3},children:(0,m.jsx)(C.Int,{name:"chevron-down",size:"md"})})]}),_===e.paymentCategoryType||"PAYPAL_PAYMENTS"===e.paymentCategoryType&&!A?(0,m.jsx)(b.N,{children:!a&&(0,m.jsx)(D.P.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:_===e.paymentCategoryType&&o?"auto":"PAYPAL_PAYMENTS"!==e.paymentCategoryType||A?0:"auto",display:k.name===y.aH.MODAL.PAYMENT_IN_PROGRESS?"none":"block"},exit:{opacity:0,height:0},transition:{duration:.3,ease:"easeInOut"},layout:!0,className:"w-full overflow-hidden",children:A?(0,m.jsx)(D.P.div,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.3},className:"text-body-regular",children:S.k.you_can_only_use_this_payment(null==(c=e.paymentValues)||null==(c=c[0])||null==(c=c.paymentLimits)?void 0:c.min,null!=(N=null==s||null==(p=s.business)?void 0:p.businessName)?N:"")},"min-payment-limit-error"):(0,m.jsx)(U,{activePaymentOption:e,activePaymentType:_,showPaymentCard:o,resetActivePaymentType:f})})}):null]})}),a&&"PAYPAL_PAYMENTS"===e.paymentCategoryType&&(0,m.jsx)("div",{className:"flex flex-col md:flex-row md:gap-4",children:e.paymentValues.map(((e,n)=>(0,m.jsx)("div",{className:"mb-4 flex h-20 w-full items-center justify-center rounded-lg border border-solid",children:"Venmo"===e.displayName?(0,m.jsx)("img",{src:h,className:"h-10 w-28",alt:""}):(0,m.jsx)("img",{src:x,className:"h-10 w-28",alt:""})},n)))})]},E)}
1)),N&&!a&&(0,m.jsxs)("div",{className:"border-border-warning-dark flex gap-4 rounded border border-solid p-4",children:[(0,m.jsx)("div",{className:"flex items-center",children:(0,m.jsx)(C.Int,{name:"warning-sign",size:"md",color:"warning"})}),(0,m.jsxs)("div",{className:"text-body-regular",children:[" ",N]})]})]})})}},97466(e,n,a){"use strict";a.d(n,{v:()=>j});var i=a(75969),t=a(8448),s=a(72617),r=a(1291),d=a(23463),l=a(10644),o=a(50654),c=a(71806),m=a(60120),u=a(76805),_=a(76044),v=a(76075),N=a(62727),p=a(3534),E=a(36195),g=a(89329),T=a(1701),k=a(77542),I=a(98946),y=a(86479),S=a(55531),A=a(42242),f=a(59080),x=a(73681),h=a.n(x),C=a(14004),O=a(35397),D=a(69500);const b=({email:e,setEmail:n,emailError:a,setEmailError:i,isPending:t,sendCode:s})=>{const{ENTER_EMAIL:r,SEND_CODE:l}=A.y.FINANCIAL_CONNECTIONS;return(0,D.jsxs)("div",{className:"flex flex-col items-start gap-4",children:[(0,D.jsx)("p",{className:"text-body-s-regular",children:O.k.to_connect_a_bank_account}),(0,D.jsx)(d.EmailInput,{label:O.k.PAYMENTS.APPLICATION.OWNERS_INFO.EMAIL,placeholder:"[email protected]",value:e,showError:!0,error:a,onFocus:()=>{(0,S.sx)(r)},onChange:e=>n(e.target.value),onKeyDown:n=>{"Enter"===n.key&&!t&&(null==e?void 0:e.length)>0&&v.ml.test(e)&&(null==e?void 0:e.length)<=40&&(s(),(0,S.sx)(l))}}),(0,D.jsx)(d.Button,{"data-test-id":"stripe-bank-transfer-button",buttonVariant:"primary",disabled:!e||t,className:"w-full md:w-fit",onClick:()=>{e?!v.ml.test(e)||(null==e?void 0:e.length)>40?i("Invalid email"):(i(""),s(),(0,S.sx)(l)):i("Email is required")},children:O.k.send_a_code})]})},R=({email:e,setOtp:n,otpError:a,isCodeVerificationPending:t,verifyOtp:s,opt:l,setOtpError:o,setScreen:c,sendCode:m})=>{const[u,_]=(0,i.useState)(!0),{SEND_ANOTHER_CODE:v,VERIFY_CODE:N,ENTER_CODE:p,CHANGE_EMAIL:E}=A.y.FINANCIAL_CONNECTIONS;return(0,D.jsxs)("div",{className:"flex flex-col items-start gap-4",children:[(0,D.jsxs)("div",{className:"flex flex-col items-start gap-2",children:[(0,D.jsx)("p",{className:"text-body-s-regular",children:O.k.a_verification_code_was_sent}),(0,D.jsxs)("div",{className:"flex flex-col flex-wrap items-start gap-2 md:flex-row md:items-center md:justify-start md:gap-4",children:[(0,D.jsx)(d.Tag,{category:"neutral",children:e}),(0,D.jsx)("button",{onClick:()=>{(0,S.sx)(E),c("trigger-email")},className:"text-body-s-medium text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed","data-test-id":"stripe-bank-transfer-verify-code-link",children:O.k.change_email})]})]}),(0,D.jsx)(d.OTPInput,{name:"opt",label:O.k.code,placeholder:"000000",value:l,showError:!0,error:a,digits:6,onComplete:()=>{6===(null==l?void 0:l.length)&&s()},onOtpChange:e=>{n(e),(0,S.sx)(p)}}),(0,D.jsxs)("div",{className:"flex w-full flex-col items-center justify-start gap-2 md:flex-row",children:[(0,D.jsx)(d.Button,{"data-test-id":"stripe-bank-transfer-verify-code-button",buttonVariant:"primary",disabled:!l||t||6!==(null==l?void 0:l.length),className:"w-full md:w-fit",onClick:()=>{l?(o(""),s(),(0,S.sx)(N)):o("Code is required")},children:O.k.verify_code}),(0,D.jsxs)(d.Button,{buttonVariant:"tertiary",disabled:!u,onClick:()=>{_(!1),setTimeout((()=>{_(!0)}),3e4),m(),(0,S.sx)(v)},className:"w-full md:w-fit","data-test-id":"stripe-bank-transfer-send-another-code",children:[(0,D.jsx)(r.Int,{name:"refresh"}),O.k.send_another_code]})]})]})},L=({setScreen:e,connectedAccounts:n,email:a,selectedAccount:t,setSelectedAccount:s,postSuccessCallback:l,fetchConnectedAccounts:o,payableAmount:c,sender:m})=>{var u;const v=(0,I.useStripe)(),[y,x]=(0,i.useState)(!1),{mutateAsyncCreatePaymentOrder:b,validateInvoicePaymentRequest:R}=(0,i.useContext)(g.nf)||{},{code:L}=(0,p.useParams)(),{openModal:F,closeModal:P}=(0,d.useModal)(),{REMOVE_SELECTED_BANK:j,LOGOUT:M,SELECT_BANK:U,ADD_BANK_ACCOUNT:w,PAY_BUTTON:V}=A.y.FINANCIAL_CONNECTIONS;return(0,D.jsxs)("div",{className:"flex w-full flex-col items-start gap-4",children:[(0,D.jsxs)("div",{className:"flex flex-col items-start gap-2 md:flex-row md:flex-wrap md:items-center md:justify-start md:gap-4",children:[(0,D.jsx)("p",{className:"text-body-s-regular",children:O.k.logged_in}),(0,D.jsx)(d.Tag,{category:"neutral",children:a}),(0,D.jsx)(d.Link,{onClick:()=>{(0,_.CM)(),e("trigger-email"),(0,S.sx)(M)},size:"small","data-test-id":"stripe-bank-transfer-logout-link",children:O.k.log_out})]}),(0,D.jsxs)("div",{className:"flex w-full flex-col",children:[(0,D.jsx)("label",{children:O.k.bank_account}),(0,D.jsxs)("div",{className:"flex w-full flex-1 flex-col items-center gap-2",children:[n.map((e=>(0,D.jsxs)("div",{className:"flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded-md border-solid px-3 py-4 "+(t.financialConnectionAccountId===e.financialConnectionAccountId?"border-border-interactive-resting border-2":"border-border-light border"),onClick:()=>{s(e),(0,S.sx)(U)},children:[(0,D.jsxs)("div",{className:"text-body-medium flex flex-row items-center gap-2",children:[(0,D.jsx)("p",{className:"",children:e.bankName}),(0,D.jsxs)("p",{className:"text-typography-grey",children:["- ",e.last4]})]}),(0,D.jsx)(d.PopoverV1,{placement:"bottom-end",mode:"CLICK",isArrow:!1,trigger:(0,D.jsx)("div",{className:"ml-2 flex items-center",children:(0,D.jsx)(r.Int,{name:"more-vert",size:"xs",color:"default"})}),contentClassName:"bg-fill-default border-border-light shadow-CardSmall mt-1 rounded-xl border border-solid",content:(0,D.jsx)("div",{className:"text-typography-error text-body-medium flex flex-col gap-2 px-4 py-3",onClick:n=>{n.stopPropagation(),(async e=>{(0,S.sx)(j);const n=await(0,N.getPublicInstance)();if(n){var a;const s=await(0,_.WN)(n,{input:{accountId:e.externalAccountId}},{headers:{Authorization:`Bearer ${E.LocalStorage.getItem("stripe-bank-transfer-access-token")}`}});var i,t;200===(null==s||null==(a=s.operationInfo)?void 0:a.statusCode)&&(d.toast.success({message:null!=(i=null==s?void 0:s.operationInfo.message)?i:O.k.account_removed_successfully}),o(null!=(t=E.LocalStorage.getItem("stripe-bank-transfer-access-token"))?t:""))}})(e)},children:(0,D.jsx)("p",{children:O.k.remove})})})]},e.externalAccountId))),(0,D.jsxs)(d.Button,{buttonVariant:"tertiary","data-test-id":"stripe-bank-transfer-add-account-button",onClick:()=>{e("stripe-sdk"),(0,S.sx)(w)},className:"w-full",children:[(0,D.jsx)(r.Int,{name:"plus",size:"xs",color:"current"}),O.k.add_a_bank_account]})]})]}),(0,D.jsxs)("p",{className:"text-caption-s-regular text-typography-grey text-center",children:[O.k.by_continuing_you_authorize(null!=(u=null==m?void 0:m.business.businessName)?u:"",null!=c?c:0,h()().format(C.VY))," ",(0,D.jsx)("a",{className:"text-caption-regular text-typography-grey underline",target:"_blank",href:"https://stripe.com/in/legal/end-customer-ach-payments-authorization",rel:"noopener noreferrer",children:O.k.these_terms})]}),(0,D.jsx)(d.Button,{buttonVariant:"primary",onClick:async()=>{(0,S.sx)(V);const n=E.LocalStorage.getItem("stripe-bank-transfer-external-client-id");if(!v||null==t||!t.financialConnectionAccountId||!n)return;x(!0);const a={code:null!=L?L:"",paymentGatewayName:T.F1.STRIPE,externalClientId:n,paymentMethod:T.TG.BANK_TRANSFER,isSavedPaymentMethod:!0},i=await b(a);if(i){const{clientSecret:n,invoiceTransactionId:a}=(null==i?void 0:i.data)||{},c={financialConnectionAccountId:t.financialConnectionAccountId,invoiceTransactionId:a},m=await(0,N.getPublicInstance)();if(m){const i=await(0,_.BC)(m,c,{headers:{Authorization:`Bearer ${E.LocalStorage.getItem("stripe-bank-transfer-access-token")}`}});if(i||(d.toast.error({message:O.k.session_expired_please_log_in_again}),(0,_.CM)(),e("trigger-email")),null!=i&&i.isValid){F({name:f.aH.MODAL.PAYMENT_IN_PROGRESS});const e=await v.confirmUsBankAccountPayment(n,{payment_method:t.externalAccountId});if(null!=e&&e.error){var s,r;(0,k.oI)(`Stripe confirmUsBankAccountPayment failed: ${null==e||null==(s=e.error)?void 0:s.message}`,"THIRD_PARTY_SDK_FAILURE",{provider:"stripe",operation:"confirm-ach"}),x(!1),P(),d.toast.error({message:(null==(r=e.error)?void 0:r.message)||O.k.we_re_having_trouble_with})}else{var o;const n=null==e||null==(o=e.paymentIntent)?void 0:o.status;"succeeded"===n||"processing"===n?(await R({paymentGatewayName:T.F1.STRIPE,invoiceTransactionId:a}),l(),P()):(P(),d.toast.error({message:O.k.we_re_having_trouble_with}))}}else!1===(null==i?void 0:i.isValid)&&(P(),d.toast.error({message:O.k.insufficient_balance}))}P(),x(!1)}},className:"w-full","data-test-id":"stripe-bank-transfer-connected-account-pay-button",disabled:y||!(null!=t&&t.financialConnectionAccountId),children:O.k.pay})]})},F=({whiteLabelStripePublishableKey:e,postSuccessCallback:n,payableAmount:a,sender:t})=>{var s,r;const[o,c]=(0,i.useState)(null!=(s=E.LocalStorage.getItem("stripe-bank-transfer-email"))?s:""),[v,g]=(0,i.useState)(""),[k,f]=(0,i.useState)({}),{code:x}=(0,p.useParams)(),[h,C]=(0,i.useState)(),[F,P]=(0,i.useState)(""),[j,M]=(0,i.useState)(""),[U,w]=(0,i.useState)([]),V=(0,i.useRef)(!1),{LOGOUT:B}=A.y.FINANCIAL_CONNECTIONS,Y=async e=>{const n=await(0,N.getPublicInstance)();if(n){const a=await(0,_.v$)(n,{code:null!=x?x:""},{headers:{Authorization:`Bearer ${e}`}});return null===a?(C("trigger-email"),E.LocalStorage.removeItem("stripe-bank-transfer-access-token"),E.LocalStorage.removeItem("stripe-bank-transfer-email"),E.LocalStorage.removeItem("stripe-bank-transfer-external-client-id")):0===(null==a?void 0:a.edges.length)?(C("stripe-sdk"),w([])):(null==a?void 0:a.edges.length)>0&&(C("connected-accounts"),w(a.edges),f(a.edges[0])),a}},{mutate:G,isPending:H}=(0,m.useMutation)({mutationKey:[u.A.SEND_STRIPE_BANK_TRANSFER_CODE],mutationFn:async()=>{const e=await(0,N.getPublicInstance)();if(e&&x){var n;
1const a=await(0,_.mr)(e,{input:{email:o,code:x}});return 200===(null==a||null==(n=a.operationInfo)?void 0:n.statusCode)&&C("verify-code"),a}},onSuccess:e=>{var n,a,i;200===(null==e||null==(n=e.operationInfo)?void 0:n.statusCode)?d.toast.success({message:null!=(a=null==e?void 0:e.operationInfo.message)?a:O.k.email_sent_successfully}):d.toast.error({message:null!=(i=null==e?void 0:e.operationInfo.message)?i:O.k.something_went_wrong_2})}}),{mutate:W,isPending:K}=(0,m.useMutation)({mutationKey:[u.A.VALIDATE_STRIPE_BANK_TRANSFER_CODE],mutationFn:async()=>{const e=await(0,N.getPublicInstance)();if(e&&x){var n;const a=await(0,_.Db)(e,{input:{email:o,code:x,otp:F}});return 200===(null==a||null==(n=a.operationInfo)?void 0:n.statusCode)?(E.LocalStorage.setItem("stripe-bank-transfer-access-token",a.accessToken),E.LocalStorage.setItem("stripe-bank-transfer-external-client-id",a.externalClientId),E.LocalStorage.setItem("stripe-bank-transfer-email",a.email),Y(a.accessToken),a):null}},onSuccess:e=>{var n,a,i;200===(null==e||null==(n=e.operationInfo)?void 0:n.statusCode)?d.toast.success({message:null!=(a=null==e?void 0:e.operationInfo.message)?a:O.k.code_verified_successfully}):d.toast.error({message:null!=(i=null==e?void 0:e.operationInfo.message)?i:O.k.invalid_code})}});(0,i.useEffect)((()=>{const e=E.LocalStorage.getItem("stripe-bank-transfer-access-token");e&&!V.current?(Y(e),V.current=!0):e||C("trigger-email")}),[]);const q=(0,i.useMemo)((()=>(0,y.c)(e)),[e]);return(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[void 0===h&&(0,D.jsx)(d.Skeleton,{on:!0,count:1,fallback:(0,D.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,D.jsx)(d.SkeletonText,{className:"w-1/4"}),(0,D.jsx)(d.SkeletonBox,{count:1,className:"h-14 w-full"}),(0,D.jsx)(d.SkeletonButton,{count:1,className:"w-full"}),(0,D.jsx)(d.SkeletonText,{className:"w-full"})]})}),"trigger-email"===h&&(0,D.jsx)(b,{email:o,setEmail:c,emailError:v,setEmailError:g,isPending:H,sendCode:G}),"verify-code"===h&&(0,D.jsx)(R,{email:o,setOtp:P,otpError:j,setOtpError:M,isCodeVerificationPending:K,verifyOtp:W,opt:F,setScreen:C,sendCode:G}),"connected-accounts"===h&&(0,D.jsx)(I.Elements,{stripe:q,children:(0,D.jsx)(L,{setScreen:C,connectedAccounts:U,email:o,selectedAccount:k,setSelectedAccount:f,whiteLabelStripePublishableKey:e,screen:h,postSuccessCallback:n,fetchConnectedAccounts:Y,payableAmount:a,sender:t})}),"stripe-sdk"===h&&(0,D.jsxs)("div",{className:"flex flex-col items-start gap-4",children:[(0,D.jsxs)("div",{className:"flex flex-col items-start gap-2 md:flex-row md:flex-wrap md:items-center md:justify-start md:gap-4",children:[(0,D.jsx)("p",{className:"text-body-s-regular",children:O.k.logged_in}),(0,D.jsx)(d.Tag,{category:"neutral",children:null!=o?o:E.LocalStorage.getItem("stripe-bank-transfer-email")}),(0,D.jsx)(d.Link,{onClick:()=>{(0,S.sx)(B),(0,_.CM)(),C("trigger-email")},size:"small","data-test-id":"stripe-bank-transfer-logout-link",children:O.k.log_out})]}),U.length>0&&(0,D.jsx)(d.ClickableEle,{"data-test-id":"stripe-bank-transfer-back-button",onClick:()=>{C("connected-accounts")},className:"text-typography-interactive-resting text-body-medium",children:O.k.cancel}),(0,D.jsx)(l.A,{isFromPremiumPayment:!0,postSuccessCallback:n,option:{hid:"",paymentName:"stripe",details:{stripePublishableKey:e}},paymentMethod:T.TG.BANK_TRANSFER,externalClientId:null!=(r=E.LocalStorage.getItem("stripe-bank-transfer-external-client-id"))?r:"",code:null!=x?x:"",email:o})]})]})},P=["CARD","BANK_TRANSFER","CHECK"],j=({premiumSelectedPaymentMethods:e,whiteLabelStripePublishableKey:n,sender:a,isPreview:m=!1,className:u="",payableAmount:_,businessName:v})=>{var N,E,g,T,k,I,y;const[f,x]=(0,i.useState)(),{code:h}=(0,p.useParams)(),{CARD:C,STRIPE_BANK_TRANSFER:b,CHECK:R}=A.y.FINANCIAL_CONNECTIONS,L=(0,i.useMemo)((()=>e.filter((e=>{var n;return e.isEnabled&&!((null==e||null==(n=e.paymentLimits)?void 0:n.max)<(null!=_?_:0))})).sort(((e,n)=>P.indexOf(e.method)-P.indexOf(n.method)))),[e,_]),j=()=>m?(0,D.jsx)(d.Button,{"data-test-id":"preview-pay-dummy-button",buttonVariant:"primary",className:"pointer-events-none mt-6 w-full",children:O.k.pay}):null,M=(0,i.useMemo)((()=>L.find((e=>e.method===f))),[L,f]);return(0,D.jsx)(d.Card,{className:`shadow-CardMedium w-full ${u}`,children:(0,D.jsxs)(d.CardContent,{className:"w-full flex-col gap-4",children:[(0,D.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[L.map(((e,n)=>{const a=f===e.method;return(0,D.jsxs)(t.P.button,{initial:!1,animate:{borderColor:a?"var(--color-border-interactive-resting)":"var(--color-border-light)",borderWidth:a?"2px":"1px",color:a?"var(--color-typography-interactive-resting)":"var(--color-typography-default)",font:"var(--fonts-font-size-body-s)"},"data-test-id":`${e.method}`,className:"rounded-12 col-span-1 flex w-full flex-1 flex-col items-start justify-center gap-1 border-solid p-3 "+(a?"border-border-interactive-resting border-2":"border-border-light border"),onClick:()=>{m||(e=>{switch(e){case o.TG.CARD:(0,S.sx)(C);break;case o.TG.BANK_TRANSFER:(0,S.sx)(b);break;case o.TG.CHECK:(0,S.sx)(R)}})(e.method),x(e.method)},children:[e.method===o.TG.CARD&&(0,D.jsx)(r.Int,{name:"credit-card",size:"xs",color:"current"}),e.method===o.TG.BANK_TRANSFER&&(0,D.jsx)(r.Int,{name:"bank",size:"xs",color:"current"}),e.method===o.TG.CHECK&&(0,D.jsx)(r.Int,{name:"checkbook",size:"xs",color:a?"info":"default"}),(0,D.jsxs)(t.P.p,{className:"text-start "+(a?"text-typography-interactive-resting text-body-s-medium":"text-body-s-regular text-typography-default"),children:[e.method===o.TG.CARD&&O.k.card,e.method===o.TG.BANK_TRANSFER&&O.k.bank_transfer,e.method===o.TG.CHECK&&O.k.check]})]},e.method)})),0===L.length&&(0,D.jsx)("div",{className:"text-body-s-regular text-typography-default col-span-3",children:O.k.please_reach_out_to_for_payment(null!=v?v:O.k.sender)})]}),0!==L.length&&(0,D.jsx)(t.P.div,{layout:!0,className:"w-full",children:(0,D.jsx)(s.N,{children:_&&null!=M&&null!=(N=M.paymentLimits)&&N.min&&_<(null==M||null==(E=M.paymentLimits)?void 0:E.min)?(0,D.jsx)(t.P.div,{initial:{y:10,opacity:0}
1,animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.3},className:"text-body-regular",children:O.k.you_can_only_use_this_payment(null==M||null==(g=M.paymentLimits)?void 0:g.min,null!=v?v:"")},"min-payment-limit-error"):(0,D.jsxs)(D.Fragment,{children:[f===o.TG.CARD&&(0,D.jsx)(t.P.div,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.3},children:m?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(d.Image,{name:"card-panel",src:c.Ly,className:"h-auto max-w-full"}),j()]}):(0,D.jsx)(l.A,{option:{hid:"",paymentName:"stripe",details:{stripePublishableKey:n}},isFromPremiumPayment:!0,postSuccessCallback:()=>{x(null)},code:null!=h?h:""})},o.TG.CARD),f===o.TG.BANK_TRANSFER&&(0,D.jsx)(t.P.div,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.3},children:m?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(d.Image,{name:"bank-transfer-panel",src:c.af,className:"h-auto max-w-full"}),j()]}):(0,D.jsx)(F,{whiteLabelStripePublishableKey:n,postSuccessCallback:()=>{x(null)},sender:a,payableAmount:_})},o.TG.BANK_TRANSFER),f===o.TG.CHECK&&(0,D.jsxs)(t.P.div,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.3},className:"flex flex-col gap-6 md:flex-row",children:[(0,D.jsxs)("div",{className:"text-body-regular flex w-full flex-col text-start",children:[(0,D.jsx)("p",{className:"text-typography-grey text-wrap",children:O.k.payable}),(0,D.jsx)("div",{children:null==a||null==(T=a.business)?void 0:T.businessName})]}),(0,D.jsxs)("div",{className:"text-body-regular flex w-full flex-col text-start",children:[(0,D.jsx)("p",{className:"text-typography-grey text-wrap",children:O.k.mail}),(0,D.jsx)("div",{children:null==(k=Object.values(null!=(I=null==a||null==(y=a.business)?void 0:y.businessAddress)?I:{}).filter(Boolean))?void 0:k.join(", ")})]})]},o.TG.CHECK)]})})})]})})}},10644(e,n,a){"use strict";a.d(n,{A:()=>h});var i=a(98946),t=a(86479),s=a(75969),r=a(28110),d=a(3534),l=a(77542),o=a(89329),c=a(21215),m=a(1701),u=a(23463),_=a(50654),v=a(60120),N=a(76044),p=a(62727),E=a(55531),g=a(36195),T=a(42242),k=a(59080),I=a(73681),y=a.n(I),S=a(14004),A=a(35397),f=a(69500);const x=({stripeDetail:e,invoiceTransactionId:n,stripeClientSecret:a,isFromPremiumPayment:t=!1,postSuccessCallback:I,email:x})=>{var h,C,O;const{invoice:D,validateInvoicePaymentPending:b,validateInvoicePaymentRequest:R}=(0,s.useContext)(o.nf)||{},{hid:L,paymentName:F}=e,P=(0,i.useStripe)(),[j,M]=(0,s.useState)(!0),[U,w]=(0,s.useState)(null),[V,B]=(0,s.useState)(!1),Y=(0,i.useElements)(),{code:G}=(0,d.useParams)(),{openModal:H,closeModal:W}=(0,u.useModal)(),{invoiceNumber:K,invoiceTotal:q}=D||{},{SELECT_BANK_ACCOUNT_TYPE:$,PAY_BUTTON:z,ENTER_DETAILS:Q,DETAILS_ADDED:X}=T.y.FINANCIAL_CONNECTIONS,{mutateAsync:Z,isPending:J}=(0,v.useMutation)({mutationFn:async e=>{const n=await(0,p.getPublicInstance)();if(!n)return null;return await(0,N.q5)(n,{input:e},{headers:{Authorization:`Bearer ${g.LocalStorage.getItem("stripe-bank-transfer-access-token")}`}})},onError:e=>{(0,l.oI)(`Stripe save client account failed: ${null==e?void 0:e.message}`,"THIRD_PARTY_SDK_FAILURE",{provider:"stripe",operation:"save-client-account"})}});return(0,f.jsx)("form",{onSubmit:async e=>{var i,s;if(t&&(0,E.sx)(z),e.preventDefault(),e.stopPropagation(),M(!0),!P||!Y||!a||b)return void M(!1);H({name:k.aH.MODAL.PAYMENT_IN_PROGRESS});const d={redirect:"if_required",confirmParams:{return_url:`${r.c.APP_URL}${c.NOVO_PAGE_ROUTES.InvoicePaymentStatus}?id=${null==D?void 0:D.id}&payment_source=${F}&hid=${L}&code=${G}&invoice_number=${K}&invoice_total=${q}`},elements:Y};t&&d.confirmParams&&x&&(d.confirmParams.payment_method_data={billing_details:{email:x}});const o=await P.confirmPayment(d);var v,N;if(null!=o&&o.error)return(0,l.oI)(`Stripe payment failed: ${null==o||null==(v=o.error)?void 0:v.message}`,"THIRD_PARTY_SDK_FAILURE",{provider:"stripe",operation:"confirm-payment"}),W(),u.toast.error({message:(null==(N=o.error)?void 0:N.message)||A.k.sorry_could_not_initiate_the_payment}),void M(!1);const p=null==o||null==(i=o.paymentIntent)?void 0:i.status;if("succeeded"===p||"processing"===p||"requires_action"===p&&"verify_with_microdeposits"===(null==o||null==(s=o.paymentIntent)||null==(s=s.next_action)?void 0:s.type)){const e=await R({paymentGatewayName:t?m.F1.STRIPE:m.F1.STRIPE_CARD_PAYMENT,invoiceTransactionId:n});var g;if(t&&x&&(null==e||!e.hasError))await Z({paymentIntentId:null==o||null==(g=o.paymentIntent)?void 0:g.id,accountType:null!=U?U:_.aL.CONSUMER});return I(),W(),void M(!1)}W(),x?u.toast.error({message:A.k.we_re_having_trouble_with}):u.toast.error({message:A.k.sorry_could_not_initiate_the_payment}),W(),M(!1)},className:"flex w-full flex-1 flex-col gap-2 pt-6",children:(0,f.jsxs)("div",{className:"section_card section_payment_option flex flex-col",children:[(0,f.jsxs)("div",{className:"flex w-full flex-col gap-4 pb-6",children:[(0,f.jsx)(i.PaymentElement,{className:"w-full",onCh
1ange:async e=>{e.empty||V||((0,E.sx)(Q),B(!0)),e.complete&&(0,E.sx)(X),e.complete&&M(!1)},options:{fields:{billingDetails:{email:x?"never":"auto"}},terms:{usBankAccount:"never"}}}),t&&x&&(0,f.jsxs)("div",{className:"flex flex-col",children:[(0,f.jsx)("label",{className:"",children:A.k.bank_account_type}),(0,f.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,f.jsx)(u.RadioButton,{label:A.k.business,name:"accountType",value:_.aL.BUSINESS,onChange:()=>{(0,E.sx)($),w(_.aL.BUSINESS)},isHoverRequired:!1,isPaddingRequired:!1,checked:U===_.aL.BUSINESS}),(0,f.jsx)(u.RadioButton,{label:A.k.consumer,name:"accountType",value:_.aL.CONSUMER,onChange:()=>{(0,E.sx)($),w(_.aL.CONSUMER)},checked:U===_.aL.CONSUMER,isHoverRequired:!1,isPaddingRequired:!1})]})]})]}),t&&x&&(0,f.jsxs)("p",{className:"text-caption-regular text-typography-grey pb-2 text-center",children:[A.k.by_continuing_you_authorize(null!=(h=null==D||null==(C=D.sender)||null==(C=C.business)?void 0:C.businessName)?h:"",null!=(O=null==D?void 0:D.payableAmount)?O:null==D?void 0:D.invoiceTotal,y()().format(S.VY))," ",(0,f.jsx)("a",{className:"text-caption-regular text-typography-grey underline",target:"_blank",href:"https://stripe.com/in/legal/end-customer-ach-payments-authorization",rel:"noopener noreferrer",children:A.k.these_terms})]}),(0,f.jsx)(u.Button,{buttonVariant:"primary",type:"submit",disabled:!P||b||j||t&&x&&!U,"data-test-id":"pay-button",children:A.k.pay})]})})},h=({option:e,isFromPremiumPayment:n,postSuccessCallback:a,paymentMethod:r,externalClientId:d,code:l,email:c})=>{const{details:{stripePublishableKey:u=""}={}}=e||{},_=u,{mutateAsyncCreatePaymentOrder:v}=(0,s.useContext)(o.nf)||{}
1,[N,p]=(0,s.useState)(""),[E,g]=(0,s.useState)(""),T=(0,s.useRef)(!1);(0,s.useEffect)((()=>{const e=async()=>{const e=await(async()=>{const e={code:null!=l?l:"",paymentGatewayName:n?m.F1.STRIPE:m.F1.STRIPE_CARD_PAYMENT};r===m.TG.BANK_TRANSFER&&d&&(e.externalClientId=d,e.paymentMethod=r);const a=await v(e),{data:i}=a||{};return i})();if(e){const{clientSecret:n,invoiceTransactionId:a}=e;p(n),g(a)}};T.current||(T.current=!0,e())}),[]);const k={clientSecret:N},I=(0,s.useMemo)((()=>(0,t.c)(_)),[_]);return e&&N&&_?(0,f.jsx)(i.Elements,{stripe:I,options:k,children:(0,f.jsx)(x,{stripeDetail:e,stripeClientSecret:N,invoiceTransactionId:E,isFromPremiumPayment:n,postSuccessCallback:a,email:c})}):null}},10502(e,n,a){"use strict";a.d(n,{A:()=>I});var i=a(75969),t=a(37010),s=a(31120),r=a(89329),d=a(28492),l=a(45335),o=a(93189),c=a(14933),m=a(33482),u=a(23463),_=a(60120),v=a(76805),N=a(69500);const p=()=>(0,N.jsxs)("div",{className:"border-border-light hover:bg-fill-neutral dark:hover:bg-fill-neutral flex cursor-pointer justify-between gap-5 border-b border-solid py-4 last-of-type:border-b-0 md:items-center",children:[(0,N.jsxs)("div",{className:"text-body-medium flex w-4/12 gap-4 md:flex md:items-center",children:[(0,N.jsx)(u.SkeletonCircle,{className:"!h-5 !w-5"}),(0,N.jsx)(u.SkeletonText,{className:"w-[40px] pl-4"}),(0,N.jsx)(u.SkeletonText,{className:"w-[100px] pl-4"})]}),(0,N.jsx)("div",{className:"text-body-regular hidden w-2/12 flex-col md:flex md:items-start",children:(0,N.jsx)(u.SkeletonText,{className:"w-[60px]"})})]});var E=a(1291),g=a(11257),T=a(51844),k=a(35397);const I=({rootPageActivity:e=!1})=>{var n;const{modalState:a,openModal:I,closeModal:y}=(0,u.useModal)(),[S,A]=(0,i.useState)(!0),[f,x]=(0,i.useState)([]),[h,C]=(0,i.useState)(0),[O,D]=(0,i.useState)(""),b=(0,i.useRef)(null),{showLoader:R,hideLoader:L}=(0,u.useLoader)(),F=null==a||null==(n=a.data)?void 0:n.transaction,P=null==F?void 0:F.id,{privateAPIInstance:j}=(0,i.useContext)(r.cy)||{},M=(0,m.Ay)(),U=!1,{LINK_TXN_TO_INVOICE_POPUP:w,SELECT_INVOICE:V}=c.hr.ACTIVITY.LINK_TXN_TO_INVOICE_MODAL,{isLoading:B,refetch:Y}=(0,_.useQuery)({queryKey:[v.B.FETCH_INVOICES_BY_TRANSACTION_ID,U],queryFn:async()=>{var e;B&&R();const n=await(0,t.nM)(j,{transactionId:P,limit:50,offset:h},{baseURL:M});L(),null==K||K(!1);const a=n.invoices,i=null!=(e=null==a?void 0:a.length)?e:0;if(0===i||i<50)null==q||q(!1);else{C(h+i),null==q||q(!0)}return x((e=>[...e,...a])),null},gcTime:0,enabled:!1});(0,i.useEffect)((()=>{(0,c.sx)(w),G()}),[]);const G=async()=>{await Y()},[{isFetching:H,hasMoreData:W},{setIsFetching:K,setHasMoreData:q}]=(0,o.A)((0,d.sg)(Y,500),b),$=f.filter((e=>e.isSuggested)),z=f.filter((e=>!e.isSuggested)),Q=e=>e.map(((n,a)=>{var i;return(0,N.jsxs)("div",{children:[(0,N.jsx)(l.O,{name:"invoices",checked:(null==O?void 0:O.id)===n.id,value:n.id,onChange:e=>(e=>{(0,c.sx)(V),A(!1),D(f.find((n=>n.id===e.target.value)))})(e),labelClassName:"w-full",flexClassName:"items-center",label:(0,N.jsxs)("div",{className:"flex items-center justify-between",children:[(0,N.jsxs)("div",{children:[(0,N.jsx)("div",{children:null==n||null==(i=n.customer)?void 0:i.companyName}),(0,N.jsxs)("div",{className:"text-typography-grey",children:["INV-",null==n?void 0:n.invoiceNumber]})]}),(0,N.jsx)("div",{className:"font-medium",children:(0,d.ye)(null==n?void 0:n.invoiceTotal)})]})}),e[a+1]&&(0,N.jsx)(u.Divider,{})]},n.id)}));return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(s.Ay.Header,{children:(0,N.jsx)(u.Header4,{className:"text-typography-default",children:k.k.link_an_invoice})}),(0,N.jsxs)(s.Ay.Content,{className:"",children:[(0,N.jsx)("p",{className:"text-typography-default text-body-regular",children:k.k.select_an_invoice_to_link}),(0,N.jsxs)("div",{className:"border-border-light mt-5 h-[300px] overflow-y-auto rounded-lg border",ref:b,children:[$.length>0&&Q($),z.length>0&&(0,N.jsx)(N.Fragment,{children:Q(z)}),H&&(0,N.jsx)("div",{className:"text-typography-success border-border-light flex items-center justify-center border-t border-solid p-2",children:k.k.fetching}),e&&(0,N.jsx)(u.Skeleton,{on:B,count:5,fallback:(0,N.jsx)(p,{})})]}),(0,N.jsxs)(u.Button,{type:"button",buttonVariant:"primary",size:"medium",className:"mt-5 w-fit",disabled:S,onClick:()=>{y(),I({name:g.A.MODAL.INVOICE.LINK_PAYMENT_TO_TXN,data:{invoice:O,paymentMethod:null==F?void 0:F.medium,transactionId:P,transactionCreatedDate:null==F?void 0:F.created_date,transactionAmount:null==F?void 0:F.amount,transactionDescription:null==F?void 0:F.description}})},"data-test-id":"add-payment-details",children:[k.k.add_payment_details,(0,N.jsx)(E.Int,{name:"arrow-right",size:"xs",color:"current",className:"ml-1.5"})]})]}),a.name===g.A.MODAL.INVOICE.LINK_PAYMENT_TO_TXN&&(0,N.jsx)(T.x,{})]})}},25004(e,n,a){"use strict";a.r(n),a.d(n,{default:()=>be});var i=a(75969),t=a(3534),s=a(11257),r=a(89329),d=a(23463),l=a(35397),o=a(69500);const c=()=>{const{cancelInvoice:e,closeModal:n,btnLoader:a}=(0,i.useContext)(r.Ns);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Modal.Header,{children:(0,o.jsx)(d.Header4,{className:"text-typography-default",children:l.k.cancel_invoice})}),(0,o.jsxs)(d.Modal.Content,{className:"flex-col justify-end gap-6 self-end",children:[(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)("p",{children:l.k.are_you_sure_you_want}),(0,o.jsx)("p",{children:l.k.you_cannot_undo_this_action})]}),(0,o.jsxs)("div",{className:"flex items-center justify-end gap-4",children:[(0,o.jsx)(d.Button,{type:"button",buttonVariant:"secondary",onClick:n,"data-test-id":"keep-invoice",children:l.k.keep_invoice}),(0,o.jsx)(d.Button,{type:"button",buttonVariant:"primary",disabled:a,onClick:e,"data-test-id":"
1cancel-invoice",children:l.k.cancel_invoice})]})]})]})};var m=a(14004),u=a(36195),_=a(55531),v=a(42242),N=a(21215),p=a(59080),E=a(1291);const g=()=>(0,o.jsxs)(d.SectionHeader,{hasBack:!0,children:[(0,o.jsx)(d.SkeletonBox,{className:"!h-10 !w-[150px] rounded-lg"}),(0,o.jsx)(d.SectionHeader.Operations,{children:(0,o.jsx)(d.SectionHeader.Operations.Operation,{children:(0,o.jsxs)("div",{className:"flex items-center gap-3 md:gap-4",children:[(0,o.jsx)(d.SkeletonButton,{className:"!w-[150px]"}),(0,o.jsx)(d.SkeletonButton,{className:"!w-[150px]"})]})})})]}),T=()=>(0,o.jsxs)("div",{className:"border-border-light flex flex-col gap-4 overflow-hidden rounded-xl border border-solid p-6",children:[(0,o.jsx)(d.SkeletonText,{className:"!h-4 w-[100px]"}),(0,o.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,o.jsxs)("div",{className:"flex justify-between",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"}),(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"})]}),(0,o.jsx)(d.SkeletonParagraph,{})]}),(0,o.jsx)("div",{className:"hidden justify-end md:flex",children:(0,o.jsx)(d.SkeletonText,{className:"w-[100px]"})})]}),(0,o.jsxs)("div",{className:"flex justify-between",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"}),(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"})]}),(0,o.jsx)(d.SkeletonParagraph,{})]}),(0,o.jsx)("div",{className:"hidden justify-end md:flex",children:(0,o.jsx)(d.SkeletonText,{className:"w-[100px]"})})]}),(0,o.jsx)(d.Divider,{className:"my-4"}),(0,o.jsx)("div",{className:"flex flex-col justify-end md:flex-row",children:(0,o.jsxs)("div",{className:"flex flex-grow-0 basis-full flex-col gap-4 md:basis-1/3",children:[(0,o.jsxs)("div",{className:"flex flex-row justify-between gap-2",children:[(0,o.jsx)(d.SkeletonText,{}),(0,o.jsx)(d.SkeletonText,{})]}),(0,o.jsxs)("div",{className:"flex flex-row justify-between gap-2",children:[(0,o.jsx)(d.SkeletonText,{}),(0,o.jsx)(d.SkeletonText,{})]}),(0,o.jsxs)("div",{className:"flex flex-row justify-between gap-2",children:[(0,o.jsx)(d.SkeletonText,{}),(0,o.jsx)(d.SkeletonText,{})]})]})})]})]});function k(){return(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,o.jsxs)("div",{className:"bg-fill-neutral flex items-center gap-4 roun
1ded-xl px-4 py-3",children:[(0,o.jsx)(d.SkeletonCircle,{className:"h-10 w-10"}),(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[200px]"}),(0,o.jsx)(d.SkeletonText,{className:"w-1/2"})]})]}),(0,o.jsxs)("div",{className:"border-border-light flex h-fit w-[360px] flex-col gap-6 rounded-xl border border-solid p-6",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-1/2"}),(0,o.jsx)(d.SkeletonText,{className:"w-1/2"})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[100px]"}),(0,o.jsx)(d.SkeletonParagraph,{})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(d.SkeletonImage,{className:"!h-6 !w-6"}),(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"})]}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(d.SkeletonImage,{className:"!h-6 !w-6"}),(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"})]}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(d.SkeletonImage,{className:"!h-6 !w-6"}),(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"})]}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(d.SkeletonImage,{className:"!h-6 !w-6"}),(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"})]})]})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[100px]"}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"}),(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"})]})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[100px]"}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"}),(0,o.jsx)(d.SkeletonText,{className:"w-[150px]"})]})]})]})]})}const I=({invoice:e})=>{const{invoicePDF:n,duplicateInvoice:a,openCancelScheduledInvoiceModal:s,openCancelInvoiceModal:c,invoiceAttachments:m,isFetchingInvoiceDetails:u}=(0,i.useContext)(r.Ns),{status:T,paymentLink:k,invoiceNumber:I,totalAmountPaid:y=0}=e||{},S=(0,t.useNavigate)(),{seriesId:A}=(0,t.useParams)(),{openModal:f}=(0,d.useModal)();return(0,o.jsx)(d.Skeleton,{on:u,fallback:(0,o.jsx)(g,{}),children:(0,o.jsxs)(d.SectionHeader,{hasBack:!0,onBack:()=>S(N.NOVO_PAGE_ROUTES.InvoicesList),children:[(0,o.jsx)(d.SectionHeader.Header,{title:`Invoice #${I}`}),(0,o.jsxs)(d.SectionHeader.Operations,{children:[(0,o.jsx)(d.SectionHeader.Operations.Operation,{children:(0,o.jsx)(d.PopoverV1,{mode:"CLICK",contentClassName:"bg-fill-default",isArrow:!1,placement:"bottom-end",trigger:(0,o.jsxs)(d.Button,{type:"button",buttonVariant:"secondary","data-test-id":"invoice-more-details",children:[l.k.more_actions,(0,o.jsx)("div",{className:"flex items-center gap-2","data-test-id":"more-actions",children:(0,o.jsx)(E.Int,{name:"chevron-down",size:"xs",color:"current"})})]}),content:(0,o.jsxs)("div",{className:"border-border-light text-typography-info flex w-fit cursor-pointer flex-col rounded-xl border border-solid p-4 font-medium shadow-xl",children:[(0,o.jsxs)("div",{className:"flex cursor-pointer items-center gap-2.5 py-3",onClick:a,children:[(0,o.jsx)(E.Int,{name:"copy",size:"xs",color:"current"}),l.k.duplicate]}),k&&(0,o.jsx)(d.CopyToClipboard,{name:"Link",valueToCopy:k,element:(0,o.jsxs)("div",{className:"custom-active-shape flex items-center gap-2.5 py-3",children:[(0,o.jsx)(E.Int,{name:"link",size:"xs",color:"current"}),l.k.copy_link]})}),(0,o.jsxs)("div",{className:"custom-active-shape flex items-center gap-2.5 py-3",onClick:n,children:[(0,o.jsx)(E.Int,{name:"download",size:"xs"}),l.k.download_pdf]}),"SCHEDULED"===T&&(0,o.jsxs)("div",{className:"flex cursor-pointer items-center gap-2.5 py-3",onClick:s,children:[(0,o.jsx)(E.Int,{name:"block",size:"xs",color:"current"}),l.k.cancel_invoice]}),!A&&("SENT"===T||"OVERDUE"===T&&0===y)&&(0,o.jsxs)("div",{className:"flex cursor-pointer items-center gap-2.5 py-3",onClick:c,children:[(0,o.jsx)(E.Int,{name:"block",size:"xs",color:"current"}),l.k.cancel_invoice]}),(0,o.jsx)("div",{className:"text-body-s-regular text-typography-grey max-w-[183px]",children:l.k.looking_for_the_mark_as_paid})]})})}),(0,o.jsx)(d.SectionHeader.Operations.Operation,{children:(0,o.jsx)(d.Button,{type:"button",buttonVariant:"secondary",onClick:()=>
1{f({name:p.aH.MODAL.INVOICE_PREVIEW_MODAL,data:{invoice:e,attachments:m}})},className:"w-40","data-test-id":"preview-invoice",children:(0,o.jsx)("div",{children:l.k.preview})})}),(0,o.jsx)(d.SectionHeader.Operations.Operation,{children:"SCHEDULED"===T&&(0,o.jsx)(d.Button,{type:"button",buttonVariant:"secondary",onClick:()=>{(0,_.sx)(v.y.INVOICES.INVOICE_DETAIL.EDIT_INVOICE),S(N.NOVO_PAGE_ROUTES.CreateInvoice,{state:{isScheduledInvoice:!0,invoice:e,recurringDetails:null==e?void 0:e.recurringSeries,attachments:m}})},className:"w-40","data-test-id":"edit-invoice",children:(0,o.jsx)("div",{children:l.k.edit_invoice})})})]})]})})};var y=a(73681),S=a.n(y),A=a(91317),f=a.n(A),x=a(72197);const h=({title:e,description:n})=>(0,o.jsx)("div",{className:"flex gap-1",children:(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:e}),(0,o.jsx)("div",{className:"text-typography-grey text-caption-regular",children:n})]})}),C=({item:e})=>(0,o.jsxs)("div",{className:"flex justify-between",children:[(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:e.name}),(0,o.jsx)("div",{className:"text-body-regular text-typography-grey",children:`${e.quantity} x ${(0,u.currencyFormatter)(e.cost)}`})]}),(0,o.jsx)("div",{className:"text-typography-grey max-w-[90%] break-all text-body-s-regular",children:e.description})]}),(0,o.jsx)("div",{className:"text-body-regular text-typography-grey",children:(0,u.currencyFormatter)(e.total)})]}),O=()=>(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(d.Skeleton,{on:!0,count:4,fallback:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("div",{className:"relative z-10",children:(0,o.jsx)(d.SkeletonCircle,{className:"h-8 w-8"})}),(0,o.jsx)("div",{className:"flex w-full flex-col gap-4",children:(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"h-4 w-2/3"}),(0,o.jsx)("div",{className:"flex w-1/2 items-baseline gap-2",children:(0,o.jsx)(d.SkeletonText,{className:"w-1/2"})})]})})]}),(0,o.jsx)("div",{className:"relative my-1 flex h-8 gap-4 pb-6",children:(0,o.jsx)("div",{className:"before:border-border-light before:absolute before:left-[14px] before:z-0 before:h-full before:w-0.5 before:border-2"})})]})}),(0,o.jsxs)("div",{className:"relative my-1 flex h-8 gap-4 pb-6",children:[(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:"relative z-10",children:(0,o.jsx)(d.SkeletonCircle,{className:"h-8 w-8"})})}),(0,o.jsx)("div",{className:"flex w-full flex-col gap-4",children:(0,o.jsxs)("div",{className:"flex flex-col items-baseline gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"h-4 w-2/3"}),(0,o.jsx)("div",{className:"flex w-1/2 gap-2",children:(0,o.jsx)(d.SkeletonText,{className:"w-1/2"})})]})})]})]}),D=({label:e,value:n,type:a,percentageValue:i,showNegativeSign:t})=>(0,o.jsxs)("div",{className:"flex flex-row justify-between gap-2",children:[(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:`${e} ${"PERCENTAGE"===a&&i?` (${i}%)`:""}`}),(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:t?`- ${(0,u.currencyFormatter)(n)}`:`${(0,u.currencyFormatter)(n)}`})]}),b=({additionalBillValues:e,detailPage:n})=>{const{invoiceTotal:a,invoiceSubTotal:i,shippingValue:t,discountValue:s,discountTotal:r,taxTotal:d,discountType:c,taxType:m,taxValue:_}=e,v=d>0,N=t>0,p=r>0;return(0,o.jsx)("div",{className:"flex flex-col justify-end md:flex-row",children:(0,o.jsxs)("div",{className:`flex flex-grow-0 basis-full flex-col gap-4 ${n?"md:basis-1/3":"md:basis-1/2"} `,children:[(0,o.jsxs)("div",{className:"flex flex-row justify-between gap-2",children:[(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:l.k.subtotal}),(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:(0,u.currencyFormatter)(i||0)})]}),N&&(0,o.jsxs)("div",{className:"flex flex-row justify-between gap-2",children:[(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:l.k.shipping}),(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:`${(0,u.currencyFormatter)(t)}`})]}),p&&(0,o.jsx)(D,{label:l.k.discount,value:r,type:c,percentageValue:s,showNegativeSign:!0}),v&&(0,o.jsx)(D,{label:l.k.tax,value:d,type:m,percentageValue:_,showNegativeSign:!1}),a>=0&&(0,o.jsxs)(o.Fragment,{children:[" ",(0,o.jsxs)("div",{className:"mt-2 flex flex-row justify-between gap-2 md:items-center",children:[(0,o.jsx)("div",{className:"text-body-medium text-typography-default",children:l.k.total}),(0,o.jsx)("div",{className:"text-body-medium text-typography-default",children:(0,u.currencyFormatter)(a)})]})]})]})})},R=({label:e,children:n,className:a="text-body-regular text-typography-default"})=>(0,o.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,o.jsx)("div",{className:"text-typography-default text-caption-regular",children:e}),(0,o.jsx)("div",{className:a,children:n})]});var L=a(60120),F=a(22949),P=a(45861),j=a(76805),M=a(1701);const U=()=>(0,o.jsx)(d.SkeletonParagraph,{className:"mb-7 w-2/5"});var w=a(57563),V=a(85931),B=a(31120),Y=a(70465),G=a(77489),H=a(5897),W=a(10502),K=a(51844),q=function(e){return e.VIEW_PAYMENT="View payment",e.TRACK_PAYMENT="Track payment",e}(q||{});const $=({payment:e})=>{const{openModal:n}=(0,d.useModal)(),{TXN_DETAILS_MODAL:a}=v.y.TRANSACTION_DETAILS,i=()=>{(0,_.sx)(a),n({name:s.A.MODAL.TXN_DETAILS,data:{id:e.transactionId,type:"transaction",isPending:!1}})};return p.xv.includes(e.paymentGatewayName)&&e.transactionId?(0,o.jsxs)(d.Tag,{category:"info",className:"text-caption-s-medium text-typography-interactive-resting flex w-fit items-center gap-1 px-2 py-1",role:"button",onClick:i,children:[(0,o.jsx)(E.Int,{name:"link",size:"xs",color:"current"}),(0,o.jsx)("span",{className:"",children:l.k.LINKED})]}
1):e.paymentGatewayName!==M.F1.MANUAL?(0,o.jsx)(d.Tag,{category:(0,p.hD)(e.status),className:"w-fit px-2 py-1",children:(0,m.Jf)(e.status)}):null},z=({payment:e})=>(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(()=>{if(p.yv.includes(e.paymentGatewayName))return(0,o.jsx)(E.ibP,{className:"stroke-icon-default"});switch(e.paymentMethod){case M.TG.CARD:return(0,o.jsx)(E.In0,{className:"stroke-icon-default"});case M.TG.BANK_TRANSFER:return(0,o.jsx)(E.Int,{name:"bank",size:"xs",color:"default"});case M.TG.CASH:return(0,o.jsx)(E.z$x,{className:"stroke-icon-default"});case M.TG.CHECK:return(0,o.jsx)(E.M3g,{className:"stroke-icon-default"});case M.TG.OTHER:return(0,o.jsx)(E.qG5,{className:"stroke-icon-default"});default:return null}})(),(0,o.jsx)("div",{className:"capitalize",children:e.paymentDescription})," "]}),Q=({status:e,invoiceId:n,invoiceTotal:a,invoiceStatus:t,totalAmountPaid:r,payableAmount:c})=>{const{privateAPIInstance:N}=(0,i.useContext)(F.AuthContext)||{},{modalState:g,openModal:T,closeModal:k}=(0,d.useModal)(),{sendReceiptMutation:I}=(0,H.H)(),{data:y,isFetching:A}=(0,L.useQuery)({queryKey:[j.B.GET_INVOICE_PAYMENTS,{invoiceId:n}],queryFn:async()=>await(0,P.GC)(N,{invoiceId:n,offset:0,limit:50}),select:e=>e.edges,enabled:!!n&&!!N});if(!n)return null;const{TRACK_PAYMENT:f,VIEW_PAYMENT:x,SEND_PAYMENT_RECEIPT_FROM_INV:h,APPLY_PAYMENT:C}=v.y.INVOICES.INVOICE_DETAIL.PAYMENTS,{EDIT_PAYMENT:O}=v.y.PAYMENTS.PAYMENT_DETAILS,D=e=>e===M.Hi.FAILED||e===M.Hi.DISPUTED||e===M.Hi.COMPLETED?q.VIEW_PAYMENT:q.TRACK_PAYMENT;return(0,o.jsxs)("div",{className:"border-border-light flex h-fit w-[360px] min-w-[360px] flex-col gap-6 rounded-xl border border-solid p-6",children:[(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)("div",{className:"text-typography-default text-h4",children:l.k.OVERVIEW.CARDS.PAYMENTS.heading}),(0,o.jsx)(d.Tag,{category:"info",className:"text-caption-s-medium text-typography-interactive-resting w-fit px-2 py-1 font-medium",children:l.k.new})]}),(0,o.jsxs)(d.Skeleton,{on:A,fallback:(0,o.jsx)(U,{}),children:[0===(null==y?void 0:y.length)?(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,o.jsx)("div",{className:"text-typography-grey text-body-regular text-center",children:l.k.nothing_to_see_here_yet}),p.qS.includes(t)&&(0,o.jsxs)(d.Tooltip,{placement:"bottom",children:[(0,o.jsx)(d.TooltipTrigger,{asChild:!0,children:(0,o.jsxs)(d.Button,{"data-test-id":"apply-payment",buttonVariant:"secondary",className:"w-full",onClick:()=>{(0,_.sx)(Object.assign({},C,{attributes:{invoice_id:n}})),T({name:s.A.MODAL.INVOICE.APPLY_PAYMENT_TO_INVOICE,data:{invoice:{amount:c.toFixed(2),maxAmount:"PARTIALLY_PAID"===t?(a-r).toFixed(2):a,invoiceId:n},editPayment:!1}})},children:[(0,o.jsx)(E.Int,{name:"dollar-sign-circle",size:"md",color:"current"}),m.WD.MARK_AS_PAID]})}),(0,o.jsx)(d.TooltipContent,{children:(0,o.jsxs)("div",{className:"flex max-w-80 flex-col gap-4",children:[(0,o.jsx)("div",{className:"text-body-s-medium",children:l.k.PAYMENTS.MANUAL_RECONCILIATION.NEW_INFO_TITLE}),(0,o.jsx)("div",{className:"text-body-s-regular",children:l.k.PAYMENTS.MANUAL_RECONCILIATION.NEW_INFO_DESCRIPTION})]})})]},"apply-invoice-payment")]}):(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[null==y?void 0:y.map(((e,i)=>{var t,c;return(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,o.jsx)($,{payment:e}),(0,o.jsxs)("div",{className:"flex justify-between",children:[(0,o.jsx)(z,{payment:e}),(0,o.jsx)("div",{children:(0,u.currencyFormatter)(e.amount)})]}),(0,o.jsx)("div",{className:"text-typography-grey",children:S()(null!=(t=e.transactionTimestamp)?t:e.createdAt).format(m.VY)}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(d.Link,{"data-test-id":"send-payment-receipt",onClick:()=>{(0,_.sx)(Object.assign({},h,{attributes:{invoice_id:n}})),n&&I({invoiceId:n,transactionId:e.id})},to:"",size:"medium",className:"!font-medium",linkVariant:"primary",children:l.k.PAYMENTS.PAYMENT_DETAILS.SEND_RECEIPT}),(0,o.jsx)("div",{className:"border-border-light h-3.5 w-px border"}),p.xv.includes(e.paymentGatewayName)?(0,o.jsx)(d.Link,{"data-test-id":"edit-payment",onClick:()=>{var i;(0,_.sx)(O),T({name:s.A.MODAL.INVOICE.APPLY_PAYMENT_TO_INVOICE,data:{invoice:{amount:e.amount,maxAmount:(a-r+e.amount).toFixed(2),invoiceId:n,paymentId:e.id,paymentMethod:e.paymentMethod,transactionId:e.transactionId,paymentGatewayName:e.paymentGatewayName,transactionTimestamp:null!=(i=e.transactionTimestamp)?i:e.createdAt},editPayment:!0}})},to:"",size:"medium",className:"!font-medium",children:l.k.PAYMENTS.PAYMENT_DETAILS.EDIT_PAYMENT}):(0,o.jsx)(d.Link,{"data-test-id":"track-view-payment",onClick:()=>{((e,n)=>{const a=D(e)===q.VIEW_PAYMENT?x:f;(0,_.sx)(Object.assign({},a,{attributes:{payment_id:n}}))})(e.status,e.id),T({name:s.A.MODAL.INVOICE.PAYMENT_DETAILS,data:{id:e.id}})},to:"",size:"medium",className:"!font-medium",children:(c=D(e.status),c===q.VIEW_PAYMENT?l.k.PAYMENTS_PANEL.view_payment:l.k.PAYMENTS_PANEL.track_payment)})]})]},i)})),p.qS.includes(t)&&(0,o.jsxs)(d.Tooltip,{placement:"bottom-start",children:[(0,o.jsx)(d.TooltipTrigger,{asChild:!0,children:(0,o.jsxs)(d.Button,{size:"small","data-test-id":"apply-payment",buttonVariant:"secondary",className:"w-full",onClick:()=>{(0,_.sx)(Object.assign({},C,{attributes:{invoice_id:n}})),T({name:s.A.MODAL.INVOICE.APPLY_PAYMENT_TO_INVOICE,data:{invoice:{amount:c.toFixed(2),maxAmount:(a-r).toFixed(2),invoiceId:n},editPayment:!1}})},children:[(0,o.jsx)(E.Int,{name:"dollar-sign-circle",size:"md",color:"current"}),m.WD.MARK_AS_PAID]})}),(0,o.jsx)(d.TooltipContent,{children:(0,o.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,o.jsx)("div",{className:"text-body-s-medium",children:l.k.PAYMENTS.MANUAL_RECONCILIATION.NEW_INFO_TITLE}),(0,o.jsx)("div",{className:"text-body-s-regular",children:l.k.PAYMENTS.MANUAL_RECONCILIATION.NEW_INFO_DESCRIPTION})]})})]})]}),g.name===s.A.MODAL.INVOICE.APPLY_PAYMENT_TO_INVOICE&&(0,o.jsx)(w.x,{}),g.name===s.A.MODAL.SHOW_INVOICES_LIST_ON_TRANSACTIONS_DETAILS&&(0,o.jsx)(B.yB,{isOpen:g.name===s.A.MODAL.SHOW_INVOICES_LIST_ON_TRANSACTIONS_DETAILS,closeIcon:!0,onModalClose:()=>{var e;const n=null==(e=g.data)?void 0:e.previousModal;var a;n?T({name:n,data:null==(a=g.data)?void 0:a.previousModalData}):k()},children:(0,o.jsx)(W.A,{})}),g.name===s.A.MODAL.TXN_DETAILS&&(0,o.jsx)(B.yB,{isOpen:g.name===s.A.MODAL.TXN_DETAILS,closeIcon:!0,shouldCloseOnBackdrop:!0,shouldCloseOnEsc:!0,children:(0,o.jsx)(Y.A,{})}),(0,o.jsx)(V.o,{}),(0,o.jsx)(G.D,{}),g.name===s.A.MODAL.INVOICE.LINK_PAYMENT_TO_TXN&&(0,o.jsx)(K.x,{})]})]})},X=({method:e})=>{switch(e){case M.TG.CHECK:return(0,o.jsx)(E.Int,{name:"checkbook",size:"md",color:"default"});case M.TG.CARD:return(0,o.jsx)(E.Int,{name:"credit-card",size:"md",color:"current"});case M.TG.BANK_TRANSFER:return(0,o.jsx)(E.Int,{name:"bank",size:"md",color:"current"});default:return null}},Z=()=>{var e,n,a;const{invoice:s,invoiceAttachments:c,activitiesData:_,isActivitiesFetching:v,openReminderModal:p,isFetchingInvoiceDetails:g}=(0,i.useContext)(r.Ns),I=(0,t.useLocation)(),{note:y,status:A,invoiceTotal:D,items:L,reminders:F,invoiceSentDate:P,selectedPaymentMethods:j,premiumSelectedPaymentGateways:M,invoiceSubTotal:U,shippingValue:w,discountValue:V,discountTotal:B,taxTotal:Y,discountType:G,taxType:H,taxValue:W,scheduledDate:K,dueDate:q,recurringId:$,paymentSchedules:z,totalAmountPaid:Z,payableAmount:J}=s||{},ee=(0,i.useMemo)((()=>{var e,n;return null!=(e=null==M||null==(n=M[0])?void 0:n.paymentMethods)?e:[]}),[M]),ne={invoiceTotal:D,invoiceSubTotal:U,shippingValue:w,discountValue:V,discountTotal:B,taxTotal:Y,discountType:G,taxType:H,taxValue:W},ae=null==_||null==(e=_.data)?void 0:e.activities,ie=K?"scheduledDate":"immediately",te="CANCELLED"===A,se=(e,n)=>{const a="OVERDUE"===e;switch(e){case"SCHEDULED":return(0,o.jsx)("div",{className:"text-typography-grey",children:(0,o.jsx)("span",{children:l.k.PAYMENT_SCHEDULE.due_on((0,m.VI)(n))})});case"PAID":return(0,o.jsx)("div",{className:"text-typography-success flex flex-col gap-1 font-medium",children:l.k.paid});default:return a?(0,o.jsx)("div",{className:"text-typography-error flex flex-col font-medium",children:l.k.PAYMENT_SCHEDULE.overdue_since((0,m.VI)(n))}):null}};return(0,o.jsxs)("div",{className:"flex flex-col justify-between gap-6 md:flex-row",children:[(0,o.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[(0,o.jsxs)("div",{className:"border-border-light flex flex-col gap-4 roun
1ded-xl border border-solid p-6",children:[(0,o.jsx)(d.Skeleton,{on:v,fallback:(0,o.jsx)(d.SkeletonText,{className:"!h-4 w-[150px]"}),children:(0,o.jsxs)("div",{className:"flex justify-between",children:[(0,o.jsx)("div",{className:"text-h4",children:l.k.recent_activity}),!g&&s&&(0,m.O5)(A)&&(0,o.jsx)(d.Link,{"data-test-id":"send-reminder",className:"text-body-medium",onClick:p,children:l.k.send_a_reminder})]})}),(0,o.jsx)("div",{children:(0,o.jsx)(d.Skeleton,{on:v,fallback:(0,o.jsx)(O,{}),children:(0,o.jsx)("div",{children:ae&&null!=ae&&ae.length?ae.map(((e,n)=>{const a=n===ae.length-1;return(0,o.jsx)(x.Ay,{timelineContent:(0,o.jsx)(h,Object.assign({},e)),isLastItem:a,iconType:null==e?void 0:e.iconType},n)})):(0,o.jsx)("div",{className:"text-typography-default text-center",children:l.k.no_activity_yet})})})})]}),(0,o.jsx)(d.Skeleton,{on:g,fallback:(0,o.jsx)(T,{}),count:1,children:(0,o.jsxs)("div",{className:"border-border-light flex flex-col gap-4 rounded-xl border border-solid p-6",children:[(0,o.jsx)("div",{className:"text-h4",children:l.k.line_items}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[null==L?void 0:L.map((e=>(0,o.jsx)(C,{item:e},`invoice-ine-item-${e.id}`))),(0,o.jsx)(d.Divider,{className:"my-4"}),(0,o.jsx)(b,{additionalBillValues:ne,detailPage:!0})]})]})})]}),(0,o.jsx)(d.Skeleton,{on:g,fallback:(0,o.jsx)(k,{}),children:(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[$&&(0,o.jsxs)("div",{className:"bg-fill-neutral flex gap-4 rounded-xl px-4 py-3",children:[(0,o.jsx)("div",{className:"flex items-center",children:(0,o.jsx)(E.Int,{name:"refresh",size:"md",color:"current"})}),(0,o.jsxs)("div",{className:"text-body-s-regular flex flex-col",children:[(0,o.jsx)("div",{className:"text-typography-default",children:m.WD.THIS_IS_PART_OF_RECURRING_SERIES}),!(null!=(n=I.state)&&n.fromRecurringSeriesDetail)&&(0,o.jsx)(d.Link,{to:`/${N.NOVO_PAGE_ROUTES.RecurringSeriesDetail.replace(":seriesId",$)}`,state:{backUrl:I.pathname},className:"!text-left","data-test-id":"view-recurring-series",children:m.WD.VIEW_RECURRING_SERIES})]})]}),s&&D>0&&!te&&(0,o.jsx)(Q,{status:A,invoiceId:s.id,invoiceTotal:D,invoiceStatus:A,totalAmountPaid:Z,payableAmount:J}),!f()(z)&&(0,o.jsxs)("div",{className:"border-border-light flex h-fit w-[360px] min-w-[360px] flex-col gap-6 rounded-xl border border-solid p-6",children:[(0,o.jsx)("div",{className:"text-typography-default text-h4",children:l.k.payment_schedule}),(0,o.jsx)("div",{className:"flex flex-col gap-4",children:null==z||null==(a=z.splits)?void 0:a.map(((e,n)=>{var a,i;return(0,o.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,o.jsxs)("div",{className:"break-all",children:[" ",null==e?void 0:e.label]}),(0,o.jsx)("div",{className:"text-typography-grey",children:(0,u.currencyFormatter)(null!=e&&e.amount?e.amount/100:0)})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[te?(0,o.jsx)("div",{className:"text-typography-grey w-max",children:l.k.canceled}):(null==e?void 0:e.status)&&(null==e?void 0:e.dueDate)&&(0,o.jsx)("div",{className:"w-max",children:se(e.status,e.dueDate)}),"PAID"!==(null==e?void 0:e.status)&&void 0!==(null==e?void 0:e.paidAmount)&&e.paidAmount>0&&(0,o.jsxs)("div",{className:"text-typography-grey text-end",children:[l.k.paid," ",(0,u.currencyFormatter)(e.paidAmount/100)]})]})]},null!=(a=null==(i=e.dueDate)?void 0:i.toString())?a:n)}))})]}),(0,o.jsxs)("div",{className:"border-border-light flex h-fit w-[360px] min-w-[360px] flex-col gap-6 rounded-xl border border-solid p-6",children:[(0,o.jsxs)("div",{className:"text-typography-default flex gap-8",children:[(0,o.jsx)(R,{label:l.k.invoice_date,children:`${S()("scheduledDate"===ie&&K?K:P).format(m.VY)}`}),(0,o.jsx)(R,{label:l.k.due_date,children:(0,m.VI)(q)})]}),y&&(0,o.jsx)(R,{label:l.k.note,children:y}),(0,o.jsx)(R,{label:l.k.enabled_payment_methods,children:(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[null==j?void 0:j.map((e=>(0,o.jsx)("div",{className:"flex flex-col gap-2",children:"PAYPAL_PAYMENTS"===(null==e?void 0:e.paymentCategoryType)?e.paymentValues.map((n=>(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("img",{src:(null==n?void 0:n.iconUrl)||e.categoryIcon,className:"h-6 w-6",alt:(null==n?void 0:n.displayName)||e.name,width:24,height:24}),(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:(null==n?void 0:n.displayName)||(null==n?void 0:n.name)})]},null==n?void 0:n.paymentId))):(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("img",{src:null==e?void 0:e.categoryIcon,className:"h-6 w-6",alt:null==e?void 0:e.name,width:24,height:24}),(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:null==e?void 0:e.name})]},null==e?void 0:e.paymentCategoryType)},e.name))),ee.map((e=>e.isEnabled&&(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)(X,{method:e.method}),e.label]},e.method)))]})}),c&&(null==c?void 0:c.length)>0&&(0,o.jsx)(R,{label:l.k.attachments,children:(0,o.jsx)("div",{className:"flex flex-col gap-2",children:c.map((e=>(0,o.jsx)("button",{"data-test-id":"attachment-link",onClick:()=>(0,m.eH)(e.downloadLink),className:"text-body-regular text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled text-left",children:e.fileName},e.id)))})}),F&&(null==F?void 0:F.length)>0&&(0,o.jsx)(R,{label:l.k.payment_reminders,children:(0,o.jsx)("div",{className:"flex flex-col gap-2",children:F.map(((e,n)=>(0,o.jsx)("div",{className:"text-body-regular",children:(0,m.Fc)(e)},`${n}-reminder-${e}`)))})})]})]})})]})},J=()=>{const{invoice:e,isFetchingInvoiceDetails:n}=(0,i.useContext)(r.Ns),a=(0,t.useNavigate)(),{status:s,dueDate:c,invoiceTotal:_,customer:v,totalAmountPaid:N}=e||{},p="OVERDUE"===s,E=(0,i.useMemo)((()=>{const e=_-N;return e>0?e:0}),[_,N]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(I,{invoice:e}),(0,o.jsx)("div",{className:"flex flex-col md:flex-row gap-6 md:gap-14",children:(0,o.jsxs)(d.Skeleton,{on:n,count:3,fallback:(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[100px]"}),(0,o.jsx)(d.SkeletonBox,{className:"!h-4 !w-[150px] rounded-lg"})]}),children:[(0,o.jsxs)("div",{className:"flex flex-col items-start",children:[(0,o.jsx)("div",{className:"text-body-s-regular mb-2",children:l.k.status}),(0,o.jsx)("div",{className:"text-h3",children:((e,n,a)=>{switch(e){case"SENT":if(!a)return(0,o.jsx)("div",{className:"text-typography-grey",children:(0,o.jsx)("span",{children:(0,m.U)(e,n,!0)})});break;case"PAID":return(0,o.jsx)("div",{className:"text-typography-success flex flex-col items-end gap-1",children:l.k.paid});case"CANCELLED":return(0,o.jsx)("div",{className:"text-typography-grey flex flex-col items-end gap-1",children:l.k.canceled});case"SCHEDULED":return(0,o.jsx)("div",{className:"text-typography-grey flex flex-col items-end",children:l.k.scheduled});case m.Sx.PAYMENT_IN_PROCESS:return(0,o.jsx)("div",{className:"text-typography-grey flex flex-col items-end gap-1",children:(0,m.U)(e)});case m.Sx.PARTIALLY_PAID:return(0,o.jsx)("div",{className:"text-typography-grey flex flex-col items-end",children:(0,m.U)(e)});default:return a?(0,o.jsx)("div",{className:"text-typography-error flex flex-col items-end",children:(0,m.U)("OVERDUE",n,!0)}):null}})(s,c,p)})]}),(0,o.jsxs)("div",{className:"flex flex-col items-start",children:[(0,o.jsx)("div",{className:"text-body-s-regular mb-2",children:l.k.PAYMENTS.PAYMENT_DETAILS.AMOUNT}),(0,o.jsx)("div",{className:"text-typography-default text-h3",children:(0,u.currencyFormatter)(_)}
1),["PARTIALLY_PAID","OVERDUE"].includes(s)&&E>0&&(0,o.jsx)("div",{className:"text-typography-grey text-caption-regular",children:l.k.amount_remaining((0,u.currencyFormatter)(E))})]}),(0,o.jsxs)("div",{className:"flex flex-col items-start",children:[(0,o.jsx)("div",{className:"text-body-s-regular mb-2",children:l.k.PAYMENTS.PAYMENT_DETAILS.CLIENT}),(0,o.jsx)(d.Link,{"data-test-id":"client-link",className:"text-left",size:"xxl",onClick:()=>a(`/invoice/client-profile/${null==v?void 0:v.id}`),children:null==v?void 0:v.companyName})]})]})}),(0,o.jsx)(Z,{})]})};var ee=a(54997),ne=a(56958),ae=a(93639),ie=a(66753),te=a(33482);const se=({item:e})=>{const n=(0,t.useNavigate)(),a=(0,t.useLocation)(),{closeModal:i}=(0,d.useModal)();return(0,o.jsxs)("div",{className:"hover:bg-fill-light grid cursor-pointer grid-cols-4 justify-items-start gap-0.5 py-2 px-3 md:gap-6","data-test-id":`invoice-list-item-${e.id}`,onClick:()=>(async e=>(i(),n(`/${N.NOVO_PAGE_ROUTES.InvoiceDetails.replace(":id",null==e?void 0:e.id)}`,{state:{isFromInvoiceList:!0,backUrl:a.pathname}})))(e),children:[(0,o.jsxs)("div",{className:"text-body-regular flex gap-2 font-medium",children:[(0,o.jsxs)("div",{children:["#",e.invoiceNumber]}),(0,o.jsx)(ae.A,{})]}),(0,o.jsx)("div",{className:"text-body-regular",children:(0,m.VI)(e.invoiceSentDate)}),(0,o.jsx)("div",{className:"text-body-medium",children:(0,u.currencyFormatter)(e.invoiceTotal)}),(0,o.jsx)("div",{className:`${p.s7[null==e?void 0:e.status]} rounded px-2 py-0.5 text-caption-regular`,children:(0,m.U)(null==e?void 0:e.status)})]})};function re(){var e;const{privateAPIInstance:n}=(0,i.useContext)(F.AuthContext)||{},{modalState:a}=(0,d.useModal)(),t=(0,te.Ay)(),s=(0,i.useRef)(null),{recurringId:r}=(null==a?void 0:a.data)||{},{data:c,fetchNextPage:u,hasNextPage:_,isFetchingNextPage:v,isFetching:N}=(0,L.useInfiniteQuery)({queryKey:[j.B.RECURRING_ALL_INVOICES],queryFn:async({pageParam:e=0})=>{const a={limit:50,offset:e,recurringId:r};return await(0,ie.Mw)(n,a,{baseURL:t})},getNextPageParam:(e,n)=>50===e.data.invoices.length?50*n.length:void 0,enabled:!!n,initialPageParam:0}),p=(null==c?void 0:c.pages.flatMap((e=>e.data.invoices)))||[],E={options:{root:null==s?void 0:s.current,rootMargin:"0px",threshold:1},callback:u,searching:!1,isLoading:N,hasNextPage:!!_},{elementRef:g}=(0,d.useInfiniteScroller)(E);return(0,o.jsxs)(d.Modal,{isOpen:a.name===m.lx.RECURRING_HISTORY,position:"right",closeIcon:!0,children:[(0,o.jsx)(d.Modal.Header,{children:(0,o.jsx)(d.Header4,{className:"text-typography-default",children:l.k.OVERVIEW.CARDS.INVOICES.heading})}),(0,o.jsx)("div",{className:"flex min-h-0 flex-grow flex-col overflow-y-auto",ref:s,children:(0,o.jsxs)(d.Modal.Content,{className:"flex flex-col gap-4 !p-0",children:[(0,o.jsxs)("div",{className:"text-typography-default bg-fill-light sticky top-0 grid grid-cols-4 justify-items-start gap-0.5 py-2 px-3 text-caption-regular font-light md:gap-6",children:[(0,o.jsx)("div",{children:l.k.invoice_no}),(0,o.jsx)("div",{children:l.k.invoice_date}),(0,o.jsx)("div",{children:l.k.PAYMENTS.PAYMENT_DETAILS.AMOUNT}),(0,o.jsx)("div",{children:l.k.status})]}),(!N||v)&&(null==(e=p||[])?void 0:e.map(((e,n)=>(0,o.jsx)(se,{item:e},e.id)))),(0,o.jsx)(d.Skeleton,{on:N,count:10,fallback:(0,o.jsxs)("div",{className:"grid grid-cols-4 justify-items-start gap-0.5 py-2 px-3 md:gap-6",children:[(0,o.jsx)(d.SkeletonText,{className:"w-full"}),(0,o.jsx)(d.SkeletonText,{className:"w-full"}),(0,o.jsx)(d.SkeletonText,{className:"w-full"}),(0,o.jsx)(d.SkeletonText,{className:"w-full"})]})}),_&&(0,o.jsx)("div",{ref:g})," "]})})]})}const de=()=>{const e=(0,t.useNavigate)(),{seriesId:n}=(0,t.useParams)(),a=(0,t.useLocation)(),{recurringDetails:s,onCancelSeries:c,seriesAttachments:m,isFetchingRecurringDetails:u}=(0,i.useContext)(r.Ns),{status:N}=s||{},E="ACTIVE"===N||"SCHEDULED"===N;return(0,o.jsx)(d.Skeleton,{on:u,fallback:(0,o.jsx)(g,{}),children:(0,o.jsxs)(d.SectionHeader,{hasBack:!0,onBack:()=>{var n;e((null==a||null==(n=a.state)?void 0:n.backUrl)||-1)},children:[(0,o.jsx)(d.SectionHeader.Header,{title:`Recurring Series #${null==s?void 0:s.seriesId}`}),(0,o.jsxs)(d.SectionHeader.Operations,{children:[(0,o.jsx)(d.SectionHeader.Operations.Operation,{children:"EXPIRED"!==N&&"CANCELLED"!==N&&(0,o.jsx)(d.Button,{type:"button",buttonVariant:"secondary",size:"medium","data-test-id":"
1cancel-series-button",onClick:c,children:l.k.cancel_series})}),E&&(0,o.jsx)(d.SectionHeader.Operations.Operation,{children:(0,o.jsx)(d.Button,{buttonVariant:"primary",size:"medium",onClick:async()=>{(0,_.sx)(v.y.RECURRING_SERIES.RECURRING_SERIES_DETAIL_PAGE.EDIT_RECURRING_SERIES),e(`/invoice/recurring-series/${n}/edit`,{state:{isEdit:!0,seriesDetails:s,attachments:m}})},className:"h-11","data-test-id":"edit-recurring-series-button",children:p.aH.EDIT_SERIES})})]})]})})};var le=a(55639);const oe=({item:e})=>{const n=(0,t.useNavigate)(),a=(0,t.useLocation)();return(0,o.jsxs)("div",{className:"hover:bg-fill-light grid cursor-pointer grid-cols-4 justify-items-start gap-0.5 p-4 md:gap-10","data-test-id":`invoice-list-item-${e.id}`,onClick:()=>(async e=>n(`/${N.NOVO_PAGE_ROUTES.InvoiceDetails.replace(":id",null==e?void 0:e.id)}`,{state:{backUrl:a.pathname,fromRecurringSeriesDetail:!0}}))(e),children:[(0,o.jsxs)("div",{className:"text-body-medium flex",children:["#",e.invoiceNumber]}),(0,o.jsx)("div",{className:"text-body-regular",children:(0,m.VI)(e.invoiceSentDate)}),(0,o.jsx)("div",{className:"text-body-medium",children:(0,u.currencyFormatter)(e.invoiceTotal)}),(0,o.jsx)("div",{className:`${p.s7[e.status]} text-caption-regular h-max rounded px-2 py-0.5`,children:(0,m.U)(e.status)})]})},ce=()=>{var e;const{recurringHistory:n,recurringDetails:a,seriesAttachments:t,isRecurringInvoicesDataFetching:s,isFetchingRecurringDetails:c}=(0,i.useContext)(r.Ns),{openModal:u}=(0,d.useModal)(),{note:_,status:v,invoiceTotal:N,items:p,reminders:g,invoiceSentDate:I,selectedPaymentMethods:y,premiumSelectedPaymentGateways:S,invoiceSubTotal:A,shippingValue:f,discountValue:x,discountTotal:h,taxTotal:O,discountType:D,taxType:L,taxValue:F,scheduledDate:P,id:j,recurringEnds:M,frequency:U,repeatType:w,nextRecurringDate:V}=a||{},B=null==S||null==(e=S[0])?void 0:e.paymentMethods,Y={invoiceTotal:N,invoiceSubTotal:A,shippingValue:f,discountValue:x,discountTotal:h,taxTotal:O,discountType:D,taxType:L,taxValue:F};return(0,o.jsxs)("div",{className:"flex flex-col justify-between gap-6 md:flex-row",children:[(0,o.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[(0,o.jsxs)("div",{className:"border-border-light flex flex-col gap-4 roun
1ded-xl border border-solid p-6",children:[(0,o.jsx)(d.Skeleton,{on:c,fallback:(0,o.jsx)(d.SkeletonText,{className:"!h-4 w-[150px]"}),children:(0,o.jsx)("div",{className:"text-h4",children:l.k.CLIENT_DETAILS.RECENT_INVOICES.TITLE})}),(0,o.jsxs)("div",{children:[null!=n&&n.length?(0,o.jsxs)("div",{className:"text-typography-default bg-fill-light text-caption-regular grid grid-cols-4 justify-items-start gap-0.5 px-4 py-2 font-light md:gap-10",children:[(0,o.jsx)("div",{children:l.k.invoice_no}),(0,o.jsx)("div",{children:l.k.invoice_date}),(0,o.jsx)("div",{children:l.k.PAYMENTS.PAYMENT_DETAILS.AMOUNT}),(0,o.jsx)("div",{children:l.k.status})]}):null,(0,o.jsx)(d.Skeleton,{on:s||c,count:4,fallback:(0,o.jsx)(le.A,{}),children:null!=n&&n.length?n.map(((e,n)=>(0,o.jsx)(oe,{item:e},`invoice-card-${e.id}`))):(0,o.jsxs)("div",{className:"flex flex-col items-center gap-4 p-4",children:[(0,o.jsx)("div",{children:(0,o.jsx)(E.Int,{name:"inbox",size:"md",color:"default"})}),(0,o.jsx)("div",{children:l.k.no_invoices_have_been_sent_yet})]})}),(null==n?void 0:n.length)>=5&&(0,o.jsx)(d.Link,{to:"",className:"flex items-center justify-center py-4",onClick:()=>{u({name:m.lx.RECURRING_HISTORY,data:{recurringId:j}})},"data-test-id":"view-all-invoices",showUnderLine:!0,children:l.k.view_all})]})]}),(0,o.jsx)(d.Skeleton,{on:c,fallback:(0,o.jsx)(T,{}),count:1,children:(0,o.jsxs)("div",{className:"border-border-light flex flex-col gap-4 roun
1ded-xl border border-solid p-6",children:[(0,o.jsx)("div",{className:"text-h4",children:l.k.line_items}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[null==p?void 0:p.map(((e,n)=>(0,o.jsx)(C,{item:e},`${e.id}-${n}`))),(0,o.jsx)(d.Divider,{className:"my-4"}),(0,o.jsx)(b,{additionalBillValues:Y,detailPage:!0})]})]})})]}),(0,o.jsx)(d.Skeleton,{on:c,fallback:(0,o.jsx)(k,{}),children:(0,o.jsxs)("div",{className:"border-border-light flex h-fit w-[360px] min-w-[360px] flex-col gap-6 rounded-xl border border-solid p-6",children:[(0,o.jsxs)("div",{className:"text-typography-default flex",children:[(0,o.jsx)(R,{label:"SCHEDULED"===v?l.k.starts:l.k.started,children:(0,m.VI)(P||I)}),(0,o.jsx)(R,{label:l.k.ends,children:M})]}),(0,o.jsxs)("div",{className:"text-typography-default flex",children:[(0,o.jsx)(R,{label:l.k.frequency,children:`Every ${U>1?U:""} ${m.NV[w]}${U>1?"s":""}`}),(0,o.jsx)(R,{label:l.k.next_invoice,children:V?(0,m.VI)(V):"-"})]}),_&&(0,o.jsx)(R,{label:l.k.note,children:_}),(0,o.jsx)(R,{label:l.k.enabled_payment_methods,children:(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[null==y?void 0:y.map((e=>{var n;return(0,o.jsx)("div",{className:"flex flex-col gap-2",children:"PAYPAL_PAYMENTS"===(null==e?void 0:e.paymentCategoryType)?e.paymentValues.map((n=>(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("img",{src:(null==n?void 0:n.iconUrl)||e.categoryIcon,className:"h-6 w-6",alt:(null==n?void 0:n.displayName)||e.name,width:24,height:24}),(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:(null==n?void 0:n.displayName)||(null==n?void 0:n.name)})]},null==n?void 0:n.paymentId))):(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("img",{src:null==e?void 0:e.categoryIcon,className:"h-6 w-6",alt:null==e?void 0:e.name,width:24,height:24}),(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:null==e?void 0:e.name})]},null==(n=e.paymentValues[0])?void 0:n.paymentId)},e.name)})),null==B?void 0:B.map((e=>e.isEnabled&&(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)(X,{method:e.method}),e.label]},e.method)))]})}),t&&(null==t?void 0:t.length)>0&&(0,o.jsx)(R,{label:l.k.attachments,children:(0,o.jsx)("div",{className:"flex flex-col gap-2",children:t.map((e=>(0,o.jsx)("button",{"data-test-id":"attachment-link",onClick:()=>(0,m.eH)(e.downloadLink),className:"text-body-regular text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled break-all text-left",children:e.fileName},e.id)))})}),g&&(null==g?void 0:g.length)>0&&(0,o.jsx)(R,{label:l.k.payment_reminders,children:(0,o.jsx)("div",{className:"flex flex-col gap-2",children:g.map(((e,n)=>(0,o.jsx)("div",{className:"text-body-regular",children:(0,m.Fc)(e)},`reminder-${e}-${n}`)))})})]})})]})},me=()=>{const{recurringDetails:e,isFetchingRecurringDetails:n}=(0,i.useContext)(r.Ns),a=(0,t.useNavigate)(),{invoiceTotal:s,status:c,frequency:_,repeatType:v,customer:N}=e||{};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(de,{}),(0,o.jsx)("div",{className:"flex gap-14",children:(0,o.jsxs)(d.Skeleton,{on:n,count:3,fallback:(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(d.SkeletonText,{className:"w-[100px]"}),(0,o.jsx)(d.SkeletonBox,{className:"!h-4 !w-[150px] rounded-lg"})]}),children:[(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)("div",{className:"text-body-s-regular",children:l.k.status}),(0,o.jsx)("div",{className:"text-h3",children:(e=>"ACTIVE"===e?(0,o.jsx)("div",{className:"text-typography-success flex flex-col items-end gap-1",children:l.k.active}):(0,o.jsx)("div",{className:"text-typography-grey flex flex-col items-end",children:m.Rz[e]}))(c)})]}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)("div",{className:"text-body-s-regular",children:l.k.PAYMENTS.PAYMENT_DETAILS.AMOUNT}),(0,o.jsx)("div",{className:"text-typography-default text-h3",children:(0,u.currencyFormatter)(s)})]}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)("div",{className:"text-body-s-regular",children:l.k.PAYMENTS.PAYMENT_DETAILS.CLIENT}
1),(0,o.jsx)(d.Link,{"data-test-id":"client-link",onClick:()=>a(`/invoice/client-profile/${null==N?void 0:N.id}`),size:"xxl",children:null==N?void 0:N.companyName})]})]})}),(0,o.jsx)("div",{className:"bg-fill-neutral text-typography-default rounded-xl p-6 text-h5",children:(0,o.jsx)(d.Skeleton,{on:n,count:3,fallback:(0,o.jsx)(d.SkeletonText,{className:"w-full"}),children:(0,m.Ph)(c,_,v)})}),(0,o.jsx)(ce,{})]})};var ue=a(87761),_e=a(12797),ve=a(16621),Ne=a(83532),pe=a(91856);const Ee=(e="",n,a=0)=>{var t;const s=(0,te.Ay)(),{privateAPIInstance:r}=null!=(t=(0,i.useContext)(F.AuthContext))?t:{},[d,l]=(0,i.useState)(null),{data:o,refetch:c,isFetching:m}=(0,L.useQuery)({queryKey:[j.B.GET_RECURRING_INVOICE_HISTORY,e,n,a],queryFn:()=>(0,ie.Mw)(r,{recurringId:e,limit:n,offset:a},{baseURL:s}),gcTime:0,enabled:!!r&&!!e});return(0,i.useEffect)((()=>{var e,n;f()(o)||null!=o&&null!=(e=o.data)&&e.hasError||l(null==o||null==(n=o.data)?void 0:n.invoices)}),[o]),{recurringInvoices:d,fetchRecurringInvoiceHistory:c,isRecurringInvoicesDataFetching:m}};var ge=a(66793),Te=a(31591),ke=a(40169),Ie=a(58293),ye=a(72617),Se=a(8448),Ae=a(44144),fe=a(11379),xe=a(54629),he=a(97466),Ce=a(81176),Oe=a(75491);const De=()=>{var e;const{modalState:n,closeModal:a}=(0,d.useModal)(),{invoice:t,attachments:s}=(null==n?void 0:n.data)||{},{note:r,invoiceNumber:c,dueDate:_,sender:v,invoiceTotal:N,items:g,selectedPaymentMethods:T,invoiceSubTotal:k,shippingValue:I,discountTotal:y,taxTotal:A,status:f,referralPage:x,paymentSchedules:h,premiumSelectedPaymentGateways:C,showPaymentSchedule:O}=t||{},{paymentMethods:D}=(null==C?void 0:C[0])||[],{business:b}=v||{},{businessName:R="",customLogoUrl:L}=b||{},[F,P]=(0,i.useState)(!1);return(0,o.jsxs)(d.FullScreenModal,{isOpen:n.name===p.aH.MODAL.INVOICE_PREVIEW_MODAL,shouldCloseOnBackdrop:!1,shouldCloseOnEsc:!1,children:[(0,o.jsxs)(d.Modal.Header,{className:"!p-0",children:[(0,o.jsx)(Ce.q,{businessName:R}),(0,o.jsx)("button",{className:"absolute right-6 z-10 py-6",onClick:a,"data-test-id":"button-close-modal","aria-label":l.k.close_modal,children:(0,o.jsx)(E.Int,{name:"x",size:"xl"})})]}),(0,o.jsx)(d.Modal.Content,{className:"!p-0",children:(0,o.jsxs)("div",{className:"bg-fill-neutral flex w-full flex-col gap-4",children:[(0,o.jsxs)("div",{className:"flex flex-grow flex-col gap-6 self-center py-6",children:[(0,o.jsxs)("div",{className:"flex max-w-[500px] flex-col items-center gap-6 break-all",children:[L&&(0,o.jsx)("div",{className:"flex h-20 w-20 self-center",children:(0,o.jsx)("img",{src:L,className:"max-h-full max-w-full object-contain",alt:"logo"})}),(0,o.jsx)("div",{className:"text-h4",children:R}),(0,o.jsx)(d.Button,{"data-test-id":"download-invoice-dummy",buttonVariant:"secondary",className:"cursor-not-allowed",children:l.k.download_invoice}),r&&(0,o.jsx)(fe.p,{note:`"${r}"`,businessName:R||""})]}),(0,o.jsx)(d.Card,{className:"shadow-CardMedium w-full max-w-[500px] md:min-w-[500px]",background:"primary",children:(0,o.jsxs)(d.CardContent,{className:"min-h-0 w-full flex-grow flex-col items-center gap-4",isSectionMainCard:!0,children:[(0,o.jsx)("div",{className:"text-body-regular text-typography-default",children:l.k.PAYMENT_PAGE.invoice_number(c)}),(0,o.jsxs)("div",{className:"flex flex-col gap-2 text-center",children:[(0,o.jsx)("div",{className:"text-h1",children:(0,u.currencyFormatter)(N)}),(0,o.jsx)("div",{className:"text-body-regular text-typography-grey",children:l.k.PAYMENT_SCHEDULE.due_on(S()(_).format(m.VY))})]}),(0,o.jsx)(ye.N,{children:F&&(0,o.jsx)(Se.P.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3,ease:"easeInOut"},className:"w-full overflow-hidden",children:(0,o.jsx)(xe.G,{items:g,subTotal:k,total:N,isOverDue:"OVERDUE"===f,discount:y,tax:A,shipping:I,totalAmountPaid:-1})})}),(0,o.jsxs)(d.ClickableEle,{element:"div","data-test-id":"invoice-detail-show-hide-toggle",className:"text-body-s-medium text-typography-interactive-resting flex flex-row items-center gap-1",onClick:()=>{P(!F)},children:[(0,o.jsx)("div",{children:F?l.k.hide_details:l.k.show_details}),(0,o.jsx)(Se.P.div,{initial:{rotate:0},animate:{rotate:F?180:0}
1,transition:{duration:.3},children:(0,o.jsx)(E.Int,{name:"chevron-down",size:"md",color:"info"})})]})]})}),h&&(null==h||null==(e=h.splits)?void 0:e.length)>0&&(0,o.jsx)(Oe.u,{paymentSchedules:{splits:h.splits}}),(null==T?void 0:T.length)>0&&(0,o.jsx)("div",{className:"pointer-events-none",children:(0,o.jsx)(Ie.A,{acceptedPaymentOptions:T,className:"flex-1",previewPage:!0,sender:v})}),(null==D?void 0:D.length)>0&&(0,o.jsx)(he.v,{premiumSelectedPaymentMethods:D,whiteLabelStripePublishableKey:"",sender:v,isPreview:!0,className:"max-w-[500px]",businessName:R,payableAmount:N}),(null==s?void 0:s.length)>0&&(0,o.jsx)(d.Card,{className:"shadow-CardMedium w-full max-w-[500px] md:min-w-[500px]",children:(0,o.jsxs)(d.CardContent,{className:"w-full flex-col items-start gap-4",children:[(0,o.jsx)(d.Header6,{children:l.k.attachments}),(0,o.jsx)("div",{className:"flex flex-col gap-2",children:(0,o.jsx)(ke.A,{attachments:s})})]})})]}),x&&(0,o.jsx)("div",{className:"w-full",children:(0,o.jsx)(Ae.A,{referralConfig:x,screenName:"review_invoice_page"})})]})})]})},be=()=>{const{openModal:e,modalState:n,closeModal:a}=(0,d.useModal)(),[l,u]=(0,i.useState)(null),[E,g]=(0,i.useState)(null),[T,k]=(0,i.useState)(null),{privateAPIInstance:I}=(0,i.useContext)(r.cy)||{},[y,S]=(0,i.useState)([]),[A,f]=(0,i.useState)([]),x=(0,te.Ay)(),{updateInvoiceStatus:h,isUpdateInvoicePending:C}=(0,pe.A)(),{id:O,seriesId:D}=(0,t.useParams)(),b=(0,t.useNavigate)(),{getInvoicePDFUrl:R}=(0,Ne.A)(O||null),{fetchRecurringInvoiceDetails:F,isFetchingRecurringDetails:P}=(0,Te.A)(D||null),{fetchInvoiceDetails:M,isFetchingInvoiceDetails:U}=(0,ge.A)(O||null),{fetchInvoiceAttachments:w}=(0,ve.A)(null!=O?O:"",m.VC.INVOICE_ATTACHMENT),{fetchInvoiceAttachments:V}=(0,ve.A)((null==l?void 0:l.recurringId)||D,m.VC.RECURRING_ATTACHMENT),{fetchRecurringInvoiceHistory:B,isRecurringInvoicesDataFetching:Y}=Ee(D,5,0),{mutate:G}=(0,L.useMutation)({mutationFn:async()=>await(0,_e.VA)(I,{data:{recurringId:D}},{baseURL:x}),onSuccess:async e=>{if(!e||e.hasError)return d.toast.error({message:null==e?void 0:e.message});d.toast.success({message:null==e?void 0:e.message}),a(),D||z(),Q()},onError:e=>{d.toast.error({message:null==e?void 0:e.message})}}),{INVOICE_DETAIL_PAGE:H}=v.y.INVOICES.INVOICE_DETAIL,W=async()=>{const e=await w();return null==e?void 0:e.data},{refetch:K,data:q,isFetching:$}=(0,L.useQuery)({queryKey:[j.B.GET_ACTIVITIES_BY_INVOICE_ID],queryFn:()=>(0,ie.K3)(I,{invoiceId:O},{baseURL:x}),gcTime:0,enabled:!1}),z=async()=>{const[e,n,a]=await Promise.all([M(),W(),K()]);if(e){var i;if(null==e||null==(i=e.data)||!i.id)return u(null),void b(N.NOVO_PAGE_ROUTES.InvoicesList);u(null==e?void 0:e.data)}n&&S(n)},Q=async()=>{var e;const[n,a,i]=await Promise.all([F(),V(),B()]);null!=n&&n.data&&g(n.data),null!=a&&a.data&&f(a.data);const t=null==i||null==(e=i.data)?void 0:e.data;t&&k(null==t?void 0:t.invoices)};(0,i.useEffect)((()=>{(0,_.sx)(H)}),[]),(0,i.useEffect)((()=>{O&&z()}),[O]),(0,i.useEffect)((()=>{D&&Q()}),[D]);const X=(n,a={})=>{e({name:n,data:Object.assign({},a)})},{mutate:Z,isPending:ae}=(0,L.useMutation)({mutationFn:async({invoiceId:e,transactionId:n})=>await(0,_e.yp)(I,{data:{invoiceId:e,transactionId:null!=n?n:""}},{baseURL:x}),onSuccess:async e=>{if(!e||e.hasError)return d.toast.error({message:null==e?void 0:e.message});d.toast.success({message:null==e?void 0:e.message})},onError:e=>{d.toast.error({message:null==e?void 0:e.message})}}),se={invoice:l,cancelInvoice:()=>(async(e,n=!1)=>
1{if(!O)return!1;h({id:O,status:e,successCallback:z,queryToInvalidate:n?j.B.GET_MAPPED_TRANSACTIONS:void 0})})("CANCELLED"),openCancelInvoiceModal:()=>{X(s.A.MODAL.CANCEL_INVOICE)},closeModal:a,openReminderModal:()=>{X(s.A.MODAL.SEND_REMINDER_INVOICE,{invoice:l,callback:K})},openCancelScheduledInvoiceModal:()=>{X(s.A.MODAL.CANCEL_SCHEDULED_INVOICE,{invoice:l})},invoicePDF:async()=>{R()},duplicateInvoice:()=>{b(N.NOVO_PAGE_ROUTES.CreateInvoice,{state:{isDuplicate:!0,invoice:l,recurringDetails:null==l?void 0:l.recurringSeries,attachments:y}})},recurringDetails:E,recurringHistory:T,onCancelSeries:()=>e({name:m.lx.CANCEL_RECURRING_SERIES}),cancelRecurringSeries:G,invoiceAttachments:y,seriesAttachments:A,sendReceiptMutation:Z,isSendingReceipt:ae,btnLoader:C,activitiesData:q,isActivitiesFetching:$,isFetchingInvoiceDetails:U,isFetchingRecurringDetails:P,isRecurringInvoicesDataFetching:Y,fetchDetail:z},de=D?me:J;return D||null!=l&&l.id||U?(0,o.jsxs)(r.$U,{value:se,children:[(0,o.jsx)(de,{}),(0,o.jsx)(d.Modal,{isOpen:n.name===s.A.MODAL.CANCEL_INVOICE,closeIcon:!0,children:(0,o.jsx)(c,{})}),(0,o.jsx)(d.Modal,{isOpen:n.name===s.A.MODAL.SEND_REMINDER_INVOICE,closeIcon:!0,children:(0,o.jsx)(ne.A,{})}),(0,o.jsx)(d.Modal,{isOpen:n.name===s.A.MODAL.CANCEL_SCHEDULED_INVOICE,closeIcon:!0,children:(0,o.jsx)(ue.A,{})}),n.name===m.lx.RECURRING_HISTORY&&(0,o.jsx)(re,{}),n.name===m.lx.CANCEL_RECURRING_SERIES&&(0,o.jsx)(ee.A,{}),n.name===p.aH.MODAL.INVOICE_PREVIEW_MODAL&&(0,o.jsx)(De,{})]}):(0,o.jsx)(d.Loader,{})}},66793(e,n,a){"use strict";a.d(n,{A:()=>m});var i=a(22949),t=a(60120),s=a(75969),r=a(91317),d=a.n(r),l=a(33482),o=a(76805),c=a(66753);const m=e=>{var n;const a=(0,l.Ay)(),{privateAPIInstance:r}=null!=(n=(0,s.useContext)(i.AuthContext))?n:{},{refetch:m,isFetching:u}=(0,t.useQuery)({queryKey:[o.B.GET_INVOICE_BY_ID],queryFn:async()=>{if(r&&e){const i=await(0,c.Yu)(r,{id:e},{baseURL:a});if(!(d()(i)||null!=i&&i.hasError)){var n;return null==(n=i.data)||null==(n=n.invoices)?void 0:n[0]}}},gcTime:0,enabled:!1});return{isFetchingInvoiceDetails:u,fetchInvoiceDetails:m}}},16621(e,n,a){"use strict";a.d(n,{A:()=>o});var i=a(75969),t=a(60120),s=a(22949),r=a(66753),d=a(33482),l=a(76805);function o(e,n){const{privateAPIInstance:a}=(0,i.useContext)(s.AuthContext)||{},o=(0,d.Ay)(),{refetch:c}=(0,t.useQuery)({queryKey:[l.B.FETCH_INVOICE_ATTACHMENTS,e,n],queryFn:async()=>{if(a&&e){var i,t;const s=await(0,r.Et)(a,{entityId:e,type:n},{baseURL:o});return null!=(i=null==s||null==(t=s.data)?void 0:t.documents)?i:[]}},gcTime:0,enabled:!1});return{fetchInvoiceAttachments:c}}},83532(e,n,a){"use strict";a.d(n,{A:()=>u});var i=a(60120),t=a(66753),s=a(76805),r=a(23463),d=a(62727),l=a(14004),o=a(59080),c=a(33482),m=a(35397);const u=e=>{const{showLoader:n,hideLoader:a}=(0,r.useLoader)(),{isFetching:u,refetch:_}=(0,i.useQuery)({queryKey:[s.B.GET_INVOICE_SIGNED_URL],queryFn:async()=>{var i;const s=await(0,d.getPublicInstance)();if(null===s)return r.toast.error({message:l.WD.CouldNotGetAPInstance});n();const u=await(0,t.ng)(s,{invoiceId:e},{baseURL:(0,c.NK)()});if(a(),!u||u.hasError)return r.toast.error({message:(null==u?void 0:u.message)||m.k.something_went_wrong});r.toast.success({message:o.aH.INVOICE_PDF_SUCCESS_MESSAGE}),window.open(null==u||null==(i=u.data)?void 0:i.url,"_self","noopener,noreferrer")},gcTime:0,enabled:!1});return{getInvoicePDFUrl:_,isFetchingSignedUrl:u}}},31591(e,n,a){"use strict";a.d(n,{A:()=>m});var i=a(22949),t=a(60120),s=a(75969),r=a(91317),d=a.n(r),l=a(33482),o=a(76805),c=a(66753);const m=e=>{var n;const a=(0,l.Ay)(),{privateAPIInstance:r}=null!=(n=(0,s.useContext)(i.AuthContext))?n:{},{refetch:m,isFetching:u}=(0,t.useQuery)({queryKey:[o.B.GET_RECURRING_INVOICE_BY_ID],queryFn:async()=>{if(r&&e){const i=await(0,c.Wd)(r,{id:e},{baseURL:a});if(!(d()(i)||null!=i&&i.hasError)){var n;return null==(n=i.data)||null==(n=n.recurringSeriesList)?void 0:n[0]}}},gcTime:0,enabled:!1});return{isFetchingRecurringDetails:u,fetchRecurringInvoiceDetails:m}}},5897(e,n,a){"use strict";a.d(n,{H:()=>o});var i=a(75969),t=a(60120),s=a(22949),r=a(23463),d=a(33482),l=a(12797);const o=()=>{const e=(0,d.Ay)(),{privateAPIInstance:n}=(0,i.useContext)(s.AuthContext)||{},{mutate:a,isPending:o}=(0,t.useMutation)({mutationFn:async({invoiceId:a,transactionId:i})=>await(0,l.yp)(n,{data:{invoiceId:a,transactionId:null!=i?i:""}},{baseURL:e}),onSuccess:async e=>{if(!e||e.hasError)return r.toast.error({message:null==e?void 0:e.message});r.toast.success({message:null==e?void 0:e.message})},onError:e=>{r.toast.error({message:null==e?void 0:e.message})}});return{sendReceiptMutation:a,isSendingReceipt:o}}},91856(e,n,a){"use strict";a.d(n,{A:()=>m});var i=a(75969),t=a(60120),s=a(22949),r=a(23463),d=a(12797),l=a(76805),o=a(33482),c=a(3534);const m=()=>{const e=(0,o.Ay)(),{privateAPIInstance:n}=(0,i.useContext)(s.AuthContext)||{},a=(0,t.useQueryClient)(),{closeModal:m}=(0,r.useModal)(),u=(0,c.useNavigate)(),{mutate:_,isPending:v}=(0,t.useMutation)({mutationKey:[l.B.UPDATE_INVOICE_STATUS],mutationFn:async a=>{const{id:i,status:t}=a;return(0,d.de)(n,{data:{id:i,status:t}},{baseURL:e})},onSuccess:async(e,n)=>{const{navigateRoute:i,queryToInvalidate:t,successCallback:s}=n;if(!e||e.hasError)return r.toast.error({message:null==e?void 0:e.message});m(),i&&u(i),t&&a.invalidateQueries({queryKey:[t]}),null==s||s(),r.toast.success({message:e.message})},onError:e=>{r.toast.error({message:null==e?void 0:e.message})}});return{updateInvoiceStatus:_,isUpdateInvoicePending:v}}},67562(e,n,a){"use strict";a.d(n,{i:()=>l});var i=a(75969),t=a(60120),s=a(22949),r=a(25085),d=a(76805);const l=()=>{const{privateAPIInstance:e}=(0,i.useContext)(s.AuthContext)||{},n=(0,t.useQueryClient)(),{mutate:a,isPending:l}
1=(0,t.useMutation)({mutationKey:["UpdateVendorOnboardingStatus"],mutationFn:async({status:n,description:a=null})=>await(0,r.FT)(e,{input:{applicationStatus:n,businessDescription:a}}),onSuccess:()=>{n.invalidateQueries({queryKey:[d.B.GET_VENDER_ONBOARDING_INFO]})}});return{UpdateVendorOnboardingStatus:a,isUpdateVendorOnboardingStatusPending:l}}},42242(e,n,a){"use strict";a.d(n,{y:()=>t});const i={BUTTON_CLICKED:"button_clicked",SCREEN_VIEWED:"screen_viewed"},t=Object.assign({},i,{INVOICES:{DASHBOARD:{INVOICE_DASHBOARD_POPUP:{event_type:i.SCREEN_VIEWED,event_name:"invoice_tutorial_dashboard_popup",screen_name:"invoice_tutorial_dashboard_popup"}},SETTINGS:{BUSINESS_INFO:{event_name:i.BUTTON_CLICKED,name:"Business info",action:"navigate to Business info"},INVOICE_CUSTOMIZATION:{event_name:i.BUTTON_CLICKED,name:"Invoice Display ",action:"navigate to Invoice Display "},MANAGE_CUSTOMER:{event_name:i.BUTTON_CLICKED,name:"Manage customer",action:"navigate to manage customer section"},MANAGE_PAYMENTS:{event_name:i.BUTTON_CLICKED,name:"Manage payments ",action:"navigate to Manage payments"},ITEM_LIBRARY:{ITEM_LIBRARY_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"item_library_page",screen_name:"item_library_page"},ADD_NEW_LIBRARY_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"add_new_library_item",screen_name:"item_library_page"},ADD_NEW_SUGGESTED_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"add_new_suggested_item",screen_name:"item_library_page"},EDIT_LIBRARY_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"edit_library_item",screen_name:"item_library_page"},SEARCH_LIBRARY_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"search_library_item",screen_name:"item_library_page"},ITEM_LIBRARY_ADD_MODAL:{ITEM_LIBRARY_INPUT_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"item_library_input_page",screen_name:"item_library_input_page"},ADD_LIBRARY_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"add_library_item",screen_name:"item_library_input_page"},ENTER_ITEM_NAME:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_name",screen_name:"item_library_input_page"},ENTER_ITEM_PRICE:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_price",screen_name:"item_library_input_page"},ENTER_ITEM_DESCRIPTION:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_description",screen_name:"item_library_input_page"}},ITEM_LIBRARY_EDIT_MODAL:{ITEM_LIBRARY_EDIT_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"item_library_edit_page",screen_name:"item_library_edit_page"},SAVE_LIBRARY_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"save_library_item",screen_name:"item_library_edit_page"},DELETE_LIBRARY_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"delete_library_item",screen_name:"item_library_edit_page"},ENTER_ITEM_NAME:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_name",screen_name:"item_library_edit_page"},ENTER_ITEM_PRICE:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_price",screen_name:"item_library_edit_page"},ENTER_ITEM_DESCRIPTION:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_description",screen_name:"item_library_edit_page"}}}},LISTING:{INVOICE_LIST_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"invoice_list_page",screen_name:"invoice_list_page"},CREATE_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"create_invoice",screen_name:"invoice_list_page"},RECURRING_SERIES_TAB:{event_type:i.BUTTON_CLICKED,event_name:"recurring_series_tab",screen_name:"invoice_list_page"},VIEW_SETTINGS:{event_type:i.BUTTON_CLICKED,event_name:"view_settings",screen_name:"invoice_list_page"},FILTER_INVOICE_STATUS:{event_type:i.BUTTON_CLICKED,event_name:"filter_invoice_status",screen_name:"invoice_list_page"},FILTER_INVOICE_DATE:{event_type:i.BUTTON_CLICKED,event_name:"filter_invoice_date",screen_name:"invoice_list_page"},VIEW_INVOICE_DETAILS:{event_type:i.BUTTON_CLICKED,event_name:"view_invoice_details",screen_name:"invoice_list_page"},SEARCH_INVOICE_LIST:{event_type:i.BUTTON_CLICKED,event_name:"search_invoice_list",screen_name:"invoice_list_page"},VIEW_INVOICE_SHORTCUTS_LIST:{event_type:i.BUTTON_CLICKED,event_name:"view_invoice_shortcuts_list",screen_name:"invoice_list_page"},COPY_INVOICE_LINK:{event_type:i.BUTTON_CLICKED,event_name:"copy_invoice_link",screen_name:"invoice_list_page"},DUPLICATE_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"duplicate_invoice",screen_name:"invoice_list_page"},CREATE_REMINDER:{event_type:i.BUTTON_CLICKED,event_name:"create_reminder",screen_name:"invoice_list_page"},DOWNLOAD_PDF:{event_type:i.BUTTON_CLICKED,event_name:" download_pdf",screen_name:"invoice_list_page"},VIEW_DELETE_DRAFT_POPUP:{event_type:i.BUTTON_CLICKED,event_name:"view_delete_draft_popup",screen_name:"invoice_list_page"},SEND_REMINDER_POPUP:{event_type:i.SCREEN_VIEWED,event_name:"send_reminder_popup",screen_name:"send_reminder_popup"},SEND_REMINDER:{event_type:i.BUTTON_CLICKED,event_name:"send_reminder",screen_name:"send_reminder_popup"},CANCEL_REMINDER:{event_type:i.BUTTON_CLICKED,event_name:"cancel_reminder",screen_name:"send_reminder_popup"},DELETE_DRAFT_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"delete_draft_invoice",screen_name:"delete_draft_popup"},CANCEL_DELETE_DRAFT_POPUP:{event_type:i.BUTTON_CLICKED,event_name:"cancel_delete_draft_popup",screen_name:"delete_draft_popup"}},INVOICE_RECIPIENT_PAGE:{INVOICE_REFERRAL_TNC:{event_type:i.BUTTON_CLICKED,event_name:"invoice_referral_tnc",screen_name:"invoice_recipient_page"},INVOICE_REFERRAL_GET_STARTED:{event_type:i.BUTTON_CLICKED,event_name:"invoice_referral_get_started",screen_name:"invoice_recipient_page"}},RECURRING:{RECURRING_SERIES_LIST_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"recurring_series_list_page",screen_name:"recurring_series_list_page"},INVOICE_LIST_TAB:{event_type:i.BUTTON_CLICKED,event_name:"invoice_list_tab",screen_name:"recurring_series_list_page"},FILTER_SERIES_STATUS:{event_type:i.BUTTON_CLICKED,event_name:"filter_series_status",screen_name:"recurring_series_list_page"},FILTER_SERIES_DATE:{event_type:i.BUTTON_CLICKED,event_name:"filter_series_date",screen_name:"recurring_series_list_page"},SEARCH_RECURRING_SERIES:{event_type:i.BUTTON_CLICKED,event_name:"search_recurring_series",screen_name:"recurring_series_list_page"},VIEW_RECURRING_SERIES_DETAILS:{event_type:i.BUTTON_CLICKED,event_name:"view_recurring_series_details",screen_name:"recurring_series_list_page"}},CREATE_INVOICE:{CREATE_INVOICE_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"create_invoice_page",screen_name:"create_invoice_page"},CLOSE_EDIT_INVOICE_MODAL:{event_type:i.BUTTON_CLICKED,event_name:"close_edit_invoice_modal",screen_name:"edit_invoice_page"},CLOSE_CREATE_INVOICE_MODAL:{event_type:i.BUTTON_CLICKED,event_name:"close_create_invoice_modal",screen_name:"create_invoice_page"},EDIT_INVOICE_NUMBER:{event_type:i.BUTTON_CLICKED,event_name:"edit_invoice_number",screen_name:"create_invoice_page"},INVOICE_LIST:{event_type:i.BUTTON_CLICKED,event_name:"invoice_list",screen_name:"create_invoice_page"},SAVE_DRAFT_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"save_draft_invoice",screen_name:"create_invoice_page"},DISCARD_DRAFT_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"discard_draft_invoice",screen_name:"create_invoice_page"},BACK:{event_type:i.BUTTON_CLICKED,event_name:"back",screen_name:"create_invoice_page"},CUSTOMER_SELECTION_DROPDOWN:{event_type:i.BUTTON_CLICKED,event_name:"customer_selection_dropdown",screen_name:"create_invoice_page"},ENTER_ITEM_NAME:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_name",screen_name:"create_invoice_page"},ENTER_ITEM_PRICE:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_price",screen_name:"create_invoice_page"},ENTER_ITEM_QUANTITY:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_quantity",screen_name:"create_invoice_page"},ADD_NEW_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"add_new_item",screen_name:"create_invoice_page"},ADD_NEW_SUGGESTED_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"add_new_suggested_item",screen_name:"create_invoice_page"},ENTER_ITEM_DESCRIPTION:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_description",screen_name:"create_invoice_page"},DELETE_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"delete_item",screen_name:"create_invoice_page"},INVOICE_NUMBER_TOOLTIP:{event_type:i.BUTTON_CLICKED,event_name:"invoice_number_tooltip",screen_name:"create_invoice_page"},ADD_NEW_CUSTOMER:{event_type:i.BUTTON_CLICKED,event_name:"add_new_customer",screen_name:"create_invoice_page"},ADD_ADDITIONAL_RECIPIENT:{event_type:i.BUTTON_CLICKED,event_name:"add_additional_recipient",screen_name:"create_invoice_page"},SELECT_CUSTOMER:{event_type:i.BUTTON_CLICKED,event_name:"select_customer",screen_name:"create_invoice_page"},PICK_LIBRARY_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"pick_library_item",screen_name:"create_invoice_page"},ADD_SHIPPING:{event_type:i.BUTTON_CLICKED,event_name:"add_shipping",screen_name:"create_invoice_page"},ADD_DISCOUNT:{event_type:i.BUTTON_CLICKED,event_name:"add_discount",screen_name:"create_invoice_page"},ADD_TAX:{event_type:i.BUTTON_CLICKED,event_name:"add_tax",screen_name:"create_invoice_page"},ENTER_NOTE:{event_type:i.BUTTON_CLICKED,event_name:"enter_note",screen_name:"create_invoice_page"},TOGGLE_ONE_TIME:{event_type:i.BUTTON_CLICKED,event_name:"toggle_one_time",screen_name:"create_invoice_page"},TOGGLE_RECURRING:{event_type:i.BUTTON_CLICKED,event_name:"toggle_recurring",screen_name:"create_invoice_page"},REMOVE_SHIPPING:{event_type:i.BUTTON_CLICKED,event_name:"remove_shipping",screen_name:"create_invoice_page"},REMOVE_DISCOUNT:{event_type:i.BUTTON_CLICKED,event_name:"remove_discount",screen_name:"create_invoice_page"},REMOVE_TAX:{event_type:i.BUTTON_CLICKED,event_name:"remove_tax",screen_name:"create_invoice_page"},SELECT_FREQUENCY_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"select_frequency_type",screen_name:"create_invoice_page"},SELECT_END_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"select_end_type",screen_name:"create_invoice_page"},ENTER_FREQUENCY_VALUE:{event_type:i.BUTTON_CLICKED,event_name:"enter_frequency_value",screen_name:"create_invoice_page"},ENTER_DUE_DATE:{event_type:i.BUTTON_CLICKED,event_name:"enter_due_date",screen_name:"create_invoice_page"},SELECT_DUE_DATE:{event_type:i.BUTTON_CLICKED,event_name:"select_due_date",screen_name:"create_invoice_page"},SEND_A_COPY:{event_type:i.BUTTON_CLICKED,event_name:"send_me_a_copy",screen_name:"create_invoice_page"},ADD_OTHER_RECIPIENT:{event_type:i.BUTTON_CLICKED,event_name:"add_other_recipient",screen_name:"create_invoice_page"},TOGGLE_ACH_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_ach_payments",screen_name:"create_invoice_page"},TOGGLE_CARD_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_card_payments",screen_name:"create_invoice_page"},TOGGLE_PAYPAL_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_paypal_payments",screen_name:"create_invoice_page"},TOGGLE_CHECK_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_check_payments",screen_name:"create_invoice_page"},TOGGLE_SAVE_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_save_payments",screen_name:"create_invoice_page"},REVIEW_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"review_invoice",screen_name:"create_invoice_page"},CONNECT_CARD_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"connect_card_payments",screen_name:"create_invoice_page"},CONNECT_PAYPAL_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"connect_paypal_payments",screen_name:"create_invoice_page"},SELECT_SCHEDULE_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"select_schedule_type",screen_name:"create_invoice_page"},DISCARD_CHANGES:{event_type:i.BUTTON_CLICKED,event_name:"discard_changes",screen_name:"create_invoice_page"},ADD_ATTACHMENT:{event_type:i.BUTTON_CLICKED,event_name:"add_attachment",screen_name:"create_invoice_page"},REMOVE_ATTACHMENT:{event_type:i.BUTTON_CLICKED,event_name:"remove_attachment",screen_name:"create_invoice_page"}},REVIEW_INVOICE:{REVIEW_INVOICE_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"review_invoice_page",screen_name:"review_invoice_page"},CLOSE_REVIEW_INVOICE_MODAL:{event_type:i.BUTTON_CLICKED,event_name:"close_review_invoice_modal",screen_name:"review_invoice_page"},SEND_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"send_invoice",screen_name:"review_invoice_page"},SAVE_DRAFT_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"save_draft_invoice",screen_name:"review_invoice_page"},SCHEDULE_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"schedule_invoice",screen_name:"review_invoice_page"},BACK:{event_type:i.BUTTON_CLICKED,event_name:"back",screen_name:"review_invoice_page"}},EDIT_INVOICE:{EDIT_INVOICE_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"edit_invoice_page",screen_name:"edit_invoice_page"},CLOSE_EDIT_INVOICE_MODAL:{event_type:i.BUTTON_CLICKED,event_name:"close_edit_invoice_modal",screen_name:"edit_invoice_page"},CLOSE_CREATE_INVOICE_MODAL:{event_type:i.BUTTON_CLICKED,event_name:"close_create_invoice_modal",screen_name:"create_invoice_page"},EDIT_INVOICE_NUMBER:{event_type:i.BUTTON_CLICKED,event_name:"edit_invoice_number",screen_name:"edit_invoice_page"},CUSTOMER_SELECTION_DROPDOWN:{event_type:i.BUTTON_CLICKED,event_name:"customer_selection_dropdown",screen_name:"edit_invoice_page"},ENTER_ITEM_NAME:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_name",screen_name:"edit_invoice_page"},ENTER_ITEM_PRICE:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_price",screen_name:"edit_invoice_page"},ENTER_ITEM_QUANTITY:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_quantity",screen_name:"edit_invoice_page"},ADD_NEW_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"add_new_item",screen_name:"edit_invoice_page"},ADD_NEW_SUGGESTED_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"add_new_suggested_item",screen_name:"edit_invoice_page"},ENTER_ITEM_DESCRIPTION:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_description",screen_name:"edit_invoice_page"},DELETE_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"delete_item",screen_name:"edit_invoice_page"},INVOICE_NUMBER_TOOLTIP:{event_type:i.BUTTON_CLICKED,event_name:"invoice_number_tooltip",screen_name:"edit_invoice_page"},ADD_NEW_CUSTOMER:{event_type:i.BUTTON_CLICKED,event_name:"add_new_customer",screen_name:"edit_invoice_page"},ADD_ADDITIONAL_RECIPIENT:{event_type:i.BUTTON_CLICKED,event_name:"add_additional_recipient",screen_name:"edit_invoice_page"},SELECT_CUSTOMER:{event_type:i.BUTTON_CLICKED,event_name:"select_customer",screen_name:"edit_invoice_page"},PICK_LIBRARY_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"pick_library_item",screen_name:"edit_invoice_page"},ADD_SHIPPING:{event_type:i.BUTTON_CLICKED,event_name:"add_shipping",screen_name:"edit_invoice_page"},ADD_DISCOUNT:{event_type:i.BUTTON_CLICKED,event_name:"add_discount",screen_name:"edit_invoice_page"},ADD_TAX:{event_type:i.BUTTON_CLICKED,event_name:"add_tax",screen_name:"edit_invoice_page"},ENTER_NOTE:{event_type:i.BUTTON_CLICKED,event_name:"enter_note",screen_name:"edit_invoice_page"},TOGGLE_ONE_TIME:{event_type:i.BUTTON_CLICKED,event_name:"toggle_one_time",screen_name:"edit_invoice_page"},TOGGLE_RECURRING:{event_type:i.BUTTON_CLICKED,event_name:"toggle_recurring",screen_name:"edit_invoice_page"},REMOVE_SHIPPING:{event_type:i.BUTTON_CLICKED,event_name:"remove_shipping",screen_name:"edit_invoice_page"},REMOVE_DISCOUNT:{event_type:i.BUTTON_CLICKED,event_name:"remove_discount",screen_name:"edit_invoice_page"},REMOVE_TAX:{event_type:i.BUTTON_CLICKED,event_name:"remove_tax",screen_name:"edit_invoice_page"},SELECT_FREQUENCY_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"select_frequency_type",screen_name:"edit_invoice_page"},SELECT_END_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"select_end_type",screen_name:"edit_invoice_page"},ENTER_FREQUENCY_VALUE:{event_type:i.BUTTON_CLICKED,event_name:"enter_frequency_value",screen_name:"edit_invoice_page"},ENTER_DUE_DATE:{event_type:i.BUTTON_CLICKED,event_name:"enter_due_date",screen_name:"edit_invoice_page"},SELECT_DUE_DATE:{event_type:i.BUTTON_CLICKED,event_name:"select_due_date",screen_name:"edit_invoice_page"},SEND_A_COPY:{event_type:i.BUTTON_CLICKED,event_name:"send_me_a_copy",screen_name:"edit_invoice_page"},ADD_OTHER_RECIPIENT:{event_type:i.BUTTON_CLICKED,event_name:"add_other_recipient",screen_name:"edit_invoice_page"},TOGGLE_ACH_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_ach_payments",screen_name:"edit_invoice_page"},TOGGLE_CARD_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_c
1ard_payments",screen_name:"edit_invoice_page"},TOGGLE_PAYPAL_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_paypal_payments",screen_name:"edit_invoice_page"},TOGGLE_CHECK_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_check_payments",screen_name:"edit_invoice_page"},TOGGLE_SAVE_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_save_payments",screen_name:"edit_invoice_page"},CONNECT_CARD_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"connect_card_payments",screen_name:"edit_invoice_page"},CONNECT_PAYPAL_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"connect_paypal_payments",screen_name:"edit_invoice_page"},SELECT_SCHEDULE_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"select_schedule_type",screen_name:"edit_invoice_page"},SAVE_CHANGES:{event_type:i.BUTTON_CLICKED,event_name:"save_changes",screen_name:"edit_invoice_page"},SEND:{event_type:i.BUTTON_CLICKED,event_name:"send_invoice",screen_name:"edit_invoice_page"},CANCEL_SCHEDULED:{event_type:i.BUTTON_CLICKED,event_name:"cancel_scheduled",screen_name:"edit_invoice_page"},DISCARD_CHANGES:{event_type:i.BUTTON_CLICKED,event_name:"discard_changes",screen_name:"edit_invoice_page"},ADD_ATTACHMENT:{event_type:i.BUTTON_CLICKED,event_name:"add_attachment",screen_name:"edit_invoice_page"},REMOVE_ATTACHMENT:{event_type:i.BUTTON_CLICKED,event_name:"remove_attachment",screen_name:"edit_invoice_page"}},INVOICE_DETAIL:{INVOICE_DETAIL_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"invoice_detail_page",screen_name:"invoice_detail_page"},EDIT_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"edit_invoice",screen_name:"invoice_detail_page",destination:"edit_invoice_page"},MARK_INVOICE_AS_PAID:{event_type:i.BUTTON_CLICKED,event_name:"mark_invoice_as_paid",screen_name:"invoice_detail_page"},VIEW_TRANSACTION:{event_type:i.BUTTON_CLICKED,event_name:"view_transaction",screen_name:"invoice_detail_page"},MARK_INVOICE_AS_UNPAID:{event_type:i.BUTTON_CLICKED,event_name:"mark_invoice_as_unpaid",screen_name:"invoice_detail_page"},LINK_A_TRANSACTION:{event_type:i.BUTTON_CLICKED,event_name:"link_a_transaction",screen_name:"invoice_detail_page"},PAYMENTS:{SEND_PAYMENT_RECEIPT_FROM_INV:{event_type:i.BUTTON_CLICKED,event_name:"invoice_details_send_a_receipt",screen_name:"invoice_detail_page"},VIEW_PAYMENT:{event_type:i.BUTTON_CLICKED,event_name:"invoice_details_view_payment",screen_name:"invoice_detail_page"},TRACK_PAYMENT:{event_type:i.BUTTON_CLICKED,event_name:"invoice_details_track_payment",screen_name:"invoice_detail_page"},APPLY_PAYMENT:{event_type:i.BUTTON_CLICKED,event_name:"apply_payment",screen_name:"invoice_detail_page"},APPLY_PAYMENT_SAVE:{event_type:i.BUTTON_CLICKED,event_name:"apply_payment_save",screen_name:"apply_payment"},APPLY_PAYMENT_ENTER_AMOUNT:{event_type:i.BUTTON_CLICKED,event_name:"apply_payment_enter_amount",screen_name:"apply_payment"},APPLY_PAYMENT_SELECT_DUE_DATE:{event_type:i.BUTTON_CLICKED,event_name:"apply_payment_select_due_date",screen_name:"apply_payment"},APPLY_PAYMENT_SELECT_PAYMENT_METHOD:{event_type:i.BUTTON_CLICKED,event_name:"apply_payment_select_payment_method",screen_name:"apply_payment"},APPLY_PAYMENT_UNLINK_A_TXN:{event_type:i.BUTTON_CLICKED,event_name:"apply_payment_unlink_a_txn",screen_name:"apply_payment"},APPLY_PAYMENT_LINK_A_TXN:{event_type:i.BUTTON_CLICKED,event_name:"apply_payment_link_a_txn",screen_name:"apply_payment"},APPLY_PAYMENT_SELECT_TXN:{event_type:i.BUTTON_CLICKED,event_name:"apply_payment_select_txn",screen_name:"apply_payment"},DELETE_PAYMENT:{event_type:i.BUTTON_CLICKED,event_name:"delete_payment",screen_name:"apply_payment"},DELETE_PAYMENT_CANCEL:{event_type:i.BUTTON_CLICKED,event_name:"delete_payment_cancel",screen_name:"apply_payment"},DELETE_PAYMENT_DELETE_PAYMENT:{event_type:i.BUTTON_CLICKED,event_name:"delete_payment_delete_payment",screen_name:"apply_payment"},DELETE_PAYMENT_POPUP:{event_type:i.BUTTON_CLICKED,event_name:"delete_payment_popup",screen_name:"apply_payment"},TRANSACTION_LINK_AN_INVOICE_POPUP:{event_type:i.BUTTON_CLICKED,event_name:"transaction_link_an_invoice_popup",screen_name:"apply_payment"}}},LINK_A_TRANSACTION_MODAL:{MARK_AS_PAID_POPUP:{event_type:i.SCREEN_VIEWED,event_name:"mark_as_paid_popup",screen_name:"mark_as_paid_popup"},LINK_A_TRANSACTION_POPUP:{event_type:i.SCREEN_VIEWED,event_name:"link_a_transaction_popup",screen_name:"link_a_transaction_popup"},SELECT_TRANSACTION:{event_type:i.BUTTON_CLICKED,event_name:"select_transaction",screen_name:"link_a_transaction_popup"},LINK_TXN_TO_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"link_txn_to_invoice",screen_name:"link_a_transaction_popup"},SEARCH_TRANSACTIONS:{event_type:i.BUTTON_CLICKED,event_name:"search_transactions",screen_name:"link_a_transaction_popup"},CLOSE_POPUP:{event_type:i.BUTTON_CLICKED,event_name:"close_popup",screen_name:"link_a_transaction_popup"}}},RECURRING_SERIES:{RECURRING_SERIES_DETAIL_PAGE:{EDIT_RECURRING_SERIES:{event_type:i.BUTTON_CLICKED,event_name:"edit_series",screen_name:"invoice_recurring_series_details",destination:"edit_series_page"}},EDIT_SERIES:{EDIT_SERIES_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"edit_series_page",screen_name:"edit_series_page"},CLOSE_EDIT_SERIES_MODAL:{event_type:i.BUTTON_CLICKED,event_name:"close_edit_series_modal",screen_name:"edit_series_page"},ENTER_ITEM_NAME:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_name",screen_name:"edit_series_page"},ENTER_ITEM_PRICE:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_price",screen_name:"edit_series_page"},ENTER_ITEM_QUANTITY:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_quantity",screen_name:"edit_series_page"},ADD_NEW_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"add_new_item",screen_name:"edit_series_page"},ADD_NEW_SUGGESTED_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"add_new_suggested_item",screen_name:"edit_series_page"},ENTER_ITEM_DESCRIPTION:{event_type:i.BUTTON_CLICKED,event_name:"enter_item_description",screen_name:"edit_series_page"},DELETE_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"delete_item",screen_name:"edit_series_page"},ADD_SHIPPING:{event_type:i.BUTTON_CLICKED,event_name:"add_shipping",screen_name:"edit_series_page"},ADD_DISCOUNT:{event_type:i.BUTTON_CLICKED,event_name:"add_discount",screen_name:"edit_series_page"},ADD_TAX:{event_type:i.BUTTON_CLICKED,event_name:"add_tax",screen_name:"edit_series_page"},ENTER_NOTE:{event_type:i.BUTTON_CLICKED,event_name:"enter_note",screen_name:"edit_series_page"},TOGGLE_ONE_TIME:{event_type:i.BUTTON_CLICKED,event_name:"toggle_one_time",screen_name:"edit_series_page"},TOGGLE_RECURRING:{event_type:i.BUTTON_CLICKED,event_name:"toggle_recurring",screen_name:"edit_series_page"},REMOVE_SHIPPING:{event_type:i.BUTTON_CLICKED,event_name:"remove_shipping",screen_name:"edit_series_page"},REMOVE_DISCOUNT:{event_type:i.BUTTON_CLICKED,event_name:"remove_discount",screen_name:"edit_series_page"},REMOVE_TAX:{event_type:i.BUTTON_CLICKED,event_name:"remove_tax",screen_name:"edit_series_page"},SELECT_FREQUENCY_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"select_frequency_type",screen_name:"edit_series_page"},SELECT_END_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"select_end_type",screen_name:"edit_series_page"},PICK_LIBRARY_ITEM:{event_type:i.BUTTON_CLICKED,event_name:"pick_library_item",screen_name:"edit_series_page"},ENTER_FREQUENCY_VALUE:{event_type:i.BUTTON_CLICKED,event_name:"enter_frequency_value",screen_name:"edit_series_page"},ENTER_DUE_DATE:{event_type:i.BUTTON_CLICKED,event_name:"enter_due_date",screen_name:"edit_series_page"},SELECT_DUE_DATE:{event_type:i.BUTTON_CLICKED,event_name:"select_due_date",screen_name:"edit_series_page"},TOGGLE_ACH_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_ach_payments",screen_name:"edit_series_page"},TOGGLE_CARD_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_card_payments",screen_name:"edit_series_page"},TOGGLE_PAYPAL_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_paypal_payments",screen_name:"edit_series_page"},TOGGLE_CHECK_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"toggle_check_payments",screen_name:"edit_series_page"},CONNECT_CARD_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"connect_card_payments",screen_name:"edit_series_page"},CONNECT_PAYPAL_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"connect_paypal_payments",screen_name:"edit_series_page"},SELECT_SCHEDULE_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"select_schedule_type",screen_name:"edit_series_page"},UPDATE_SERIES:{event_type:i.BUTTON_CLICKED,event_name:"update_series",screen_name:"edit_series_page"},CANCEL_SERIES:{event_type:i.BUTTON_CLICKED,event_name:"cancel_series",screen_name:"edit_series_page"},ADD_ATTACHMENT:{event_type:i.BUTTON_CLICKED,event_name:"add_attachment",screen_name:"edit_series_page"},REMOVE_ATTACHMENT:{event_type:i.BUTTON_CLICKED,event_name:"remove_attachment",screen_name:"edit_series_page"}}},OVERVIEW:{OVERVIEW_DASHBOARD:{event_type:i.SCREEN_VIEWED,event_name:"invoice_overview_page",screen_name:"invoice_overview_page"},CREATE_AN_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"overview_create_an_invoice",screen_name:"invoice_overview_page"},FINISH_PAYMENT_SETUP:{event_type:i.BUTTON_CLICKED,event_name:"overview_finish_payment_setup",screen_name:"invoice_overview_page"},SETUP_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"overview_setup_payments",screen_name:"invoice_overview_page"},ALERT_SETUP_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"overview_alert_setup_payments",screen_name:"invoice_overview_page"}},PAYMENT_SETTINGS:{PAYMENT_METHODS:{event_type:i.SCREEN_VIEWED,event_name:"payment_methods_settings",screen_name:"payment_methods_settings"},STRIPE_DEBIT_CREDIT_CARD:{event_type:i.BUTTON_CLICKED,event_name:"stripe_debit_credit_card",screen_name:"payment_methods_settings"},STRIPE_BANK_TRANSFER:{event_type:i.BUTTON_CLICKED,event_name:"stripe_bank_transfer",screen_name:"payment_methods_settings"},CHECKS:{event_type:i.BUTTON_CLICKED,event_name:"checks",screen_name:"payment_methods_settings"},PAYPAL:{event_type:i.BUTTON_CLICKED,event_name:"paypal",screen_name:"payment_methods_settings"},PAYPAL_PAYPAL:{event_type:i.BUTTON_CLICKED,event_name:"paypal_paypal",screen_name:"payment_methods_settings"},PAYPAL_VENMO:{event_type:i.BUTTON_CLICKED,event_name:"paypal_venmo",screen_name:"payment_methods_settings"},BANK_TRANSFER:{event_type:i.BUTTON_CLICKED,event_name:"bank_transfer",screen_name:"payment_methods_settings"},APPLY_TO_ALL_INVOICES:{event_type:i.BUTTON_CLICKED,event_name:"apply_to_all_invoices",screen_name:"payment_methods_settings"}},PAYMENT_METHODS_SETUP:{PAYMENT_METHODS_SETUP:{event_type:i.SCREEN_VIEWED,event_name:"payment_methods_setup",screen_name:"payment_methods_setup"},STRIPE_DEBIT_CREDIT_CARD:{event_type:i.BUTTON_CLICKED,event_name:"stripe_debit_credit_card",screen_name:"payment_methods_setup"},STRIPE_BANK_TRANSFER:{event_type:i.BUTTON_CLICKED,event_name:"stripe_bank_transfer",screen_name:"payment_methods_setup"},CHECKS:{event_type:i.BUTTON_CLICKED,event_name:"checks",screen_name:"payment_methods_setup"}},PAYMENTS:{PAYMENTS_LIST:{LIST_VIEW:{event_type:i.SCREEN_VIEWED,event_name:"payments_list_page",screen_name:"payments_list_page"},ITEM_CLICKED:{event_type:i.BUTTON_CLICKED,event_name:"payment_item_click",
1screen_name:"payments_list_page"}},PAYMENT_DETAILS:{SEND_A_RECEIPT:{event_type:i.BUTTON_CLICKED,event_name:"payment_details_send_a_receipt",screen_name:"payment_details"},VIEW_TXN:{event_type:i.BUTTON_CLICKED,event_name:"payment_details_view_txn",screen_name:"payment_details"},EDIT_PAYMENT:{event_type:i.BUTTON_CLICKED,event_name:"edit_payment",screen_name:"payment_details"}}},CLIENTS:{CLIENT_EDIT_SCREEN_VIEWED:{event_type:i.SCREEN_VIEWED,event_name:"invoice_add_edit_customer",screen_name:"invoice_add_edit_customer"},CLIENT_DETAILS_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"client_details_page",screen_name:"client_details_page"},EDIT_CLIENT:{event_type:i.BUTTON_CLICKED,event_name:"edit_client",screen_name:"client_details_page"},SEND_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"send_invoice",screen_name:"client_details_page"},INVOICE_SELECTED:{event_type:i.BUTTON_CLICKED,event_name:"invoice_selected",screen_name:"client_details_page"},VIEW_ALL_INVOICES_SELECTED:{event_type:i.BUTTON_CLICKED,event_name:"view_all_invoices_selected",screen_name:"client_details_page"},PAYMENT_SELECTED:{event_type:i.BUTTON_CLICKED,event_name:"payment_selected",screen_name:"client_details_page"},VIEW_ALL_PAYMENTS_SELECTED:{event_type:i.BUTTON_CLICKED,event_name:"view_all_payments_selected",screen_name:"client_details_page"},RESTORE_CLIENT:{event_type:i.BUTTON_CLICKED,event_name:"restore_client",screen_name:"client_details_page"},DELETE_CLIENT:{event_type:i.BUTTON_CLICKED,event_name:"delete_client",screen_name:"invoice_add_edit_customer"},DELETE_CANCEL:{event_type:i.BUTTON_CLICKED,event_name:"delete_client_cancel",screen_name:"invoice_add_edit_customer"},DELETE_DELETE:{event_type:i.BUTTON_CLICKED,event_name:"delete_client_delete",screen_name:"invoice_add_edit_customer"},ARCHIVE_CLIENT:{event_type:i.BUTTON_CLICKED,event_name:"archive_client",screen_name:"invoice_add_edit_customer"},ARCHIVE_CANCEL:{event_type:i.BUTTON_CLICKED,event_name:"archive_client_cancel",screen_name:"invoice_add_edit_customer"},ARCHIVE_ARCHIVE:{event_type:i.BUTTON_CLICKED,event_name:"archive_client_archive",screen_name:"invoice_add_edit_customer"},ARCHIVE_VIEW_ALL_INVOICES:{event_type:i.BUTTON_CLICKED,event_name:"archive_client_view_all_invoices",screen_name:"archive_client_popup"}},SPLIT_PAYMENTS:{ADD_PAYMENT_SCHEDULE:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_add_payment_schedule",screen_name:"create_invoice_page"},DELETE_PAYMENT_SCHEDULE:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_delete_payment_schedule",screen_name:"payment_schedule_page"},ADD_SCHEDULE:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_add_schedule",screen_name:"payment_schedule_page"},SPLIT_BY_PERCENTAGE:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_by_percentage",screen_name:"payment_schedule_page"},SPLIT_BY_AMOUNT:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_by_amount",screen_name:"payment_schedule_page"},ENTER_AMOUNT:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_enter_amount",screen_name:"payment_schedule_page"},ENTER_PERCENTAGE:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_enter_percentage",screen_name:"payment_schedule_page"},ENTER_NAME:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_enter_name",screen_name:"payment_schedule_page"},SELECT_DUE_DATE:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_select_due_date",screen_name:"payment_schedule_page"},DELETE_SCHEDULE:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_delete_schedule",screen_name:"payment_schedule_page"},SAVE_SCHEDULE:{event_type:i.BUTTON_CLICKED,event_name:"split_payment_schedule_save",screen_name:"payment_schedule_page"}},FINANCIAL_CONNECTIONS:{REVIEW_AND_PAY_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"review_and_pay_page",screen_name:"review_and_pay_page"},DOWNLOAD_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_download_invoice",screen_name:"review_and_pay_page"},SHOW_DETAILS:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_show_details",screen_name:"review_and_pay_page"},HIDE_DETAILS:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_hide_details",screen_name:"review_and_pay_page"},CARD:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_card",screen_name:"review_and_pay_page"},STRIPE_BANK_TRANSFER:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_stripe_bank_transfer",screen_name:"review_and_pay_page"},CHECK:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_check",screen_name:"review_and_pay_page"},PAY_BUTTON:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_pay_button",screen_name:"review_and_pay_page"},GET_STARTED:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_get_started",screen_name:"review_and_pay_page"},BANK_TRANSFER_ACH:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_bank_transfer_ach",screen_name:"review_and_pay_page"},PAYPAL:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_paypal",screen_name:"review_and_pay_page"},VENMO:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_venmo",screen_name:"review_and_pay_page"},ENTER_EMAIL:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_enter_email",screen_name:"review_and_pay_page"},CHANGE_EMAIL:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_change_email",screen_name:"review_and_pay_page"},SEND_CODE:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_send_code",screen_name:"review_and_pay_page"},ENTER_CODE:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_enter_code",screen_name:"review_and_pay_page"},SEND_ANOTHER_CODE:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_send_another_code",screen_name:"review_and_pay_page"},VERIFY_CODE:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_verify_code",screen_name:"review_and_pay_page"},ENTER_DETAILS:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_bank_transfer_enter_details",screen_name:"review_and_pay_page"},DETAILS_ADDED:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_bank_transfer_details_added",screen_name:"review_and_pay_page"},SELECT_BANK:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_select_bank",screen_name:"review_and_pay_page"},REMOVE_SELECTED_BANK:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_remove_selected_bank",
1screen_name:"review_and_pay_page"},ADD_BANK_ACCOUNT:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_add_bank_account",screen_name:"review_and_pay_page"},SELECT_BANK_ACCOUNT_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"financial_connection_select_bank_account_type",screen_name:"review_and_pay_page"},LOGOUT:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_logout",screen_name:"review_and_pay_page"},TNC:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_tnc",screen_name:"review_and_pay_page"},PRIVACY_POLICY:{event_type:i.BUTTON_CLICKED,event_name:"review_and_pay_privacy_policy",screen_name:"review_and_pay_page"}},STRIPE_ONBOARDING:{SETUP_PAYMENTS_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"setup_payments_page",screen_name:"setup_payments_page"},PAYMENTS_ONBOARDING_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"payments_onboarding_page",screen_name:"payments_onboarding_page"},SETUP_NOVO_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"setup_novo_payments",screen_name:"payments_onboarding_page"},REVIEW_TERMS_AND_CONDITIONS:{event_type:i.BUTTON_CLICKED,event_name:"review_terms_and_conditions",screen_name:"payments_onboarding_page"},VERIFY_ACCOUNT_INFO_YES:{event_type:i.BUTTON_CLICKED,event_name:"verify_account_info_yes",screen_name:"setup_payments_page"},VERIFY_ACCOUNT_INFO_UPDATE:{event_type:i.BUTTON_CLICKED,event_name:"verify_account_info_update",screen_name:"setup_payments_page"},VERIFY_ACCOUNT_INFO_TOOLTIP:{event_type:i.BUTTON_CLICKED,event_name:"verify_account_info_tooltip",screen_name:"setup_payments_page"},UPDATE_POPUP_GO_TO_ACCOUNT_INFO:{event_type:i.BUTTON_CLICKED,event_name:"update_popup_go_to_account_info",screen_name:"setup_payments_page"},UPDATE_POPUP_CANCEL:{event_type:i.BUTTON_CLICKED,event_name:"update_popup_cancel",screen_name:"setup_payments_page"},MADE_A_MISTAKE_UPDATE_ACCOUNT_INFO:{event_type:i.BUTTON_CLICKED,event_name:"made_a_mistake_update_account_info",screen_name:"setup_payments_page"},VERIFY_BUSINESS_INFO_YES:{event_type:i.BUTTON_CLICKED,event_name:"verify_business_info_yes",screen_name:"setup_payments_page"},VERIFY_BUSINESS_INFO_UPDATE:{event_type:i.BUTTON_CLICKED,event_name:"verify_business_info_update",screen_name:"setup_payments_page"},MADE_A_MISTAKE_BUSINESS_INFO:{event_type:i.BUTTON_CLICKED,event_name:"made_a_mistake_business_info",screen_name:"setup_payments_page"},ENTER_BUSINESS_DESC:{event_type:i.BUTTON_CLICKED,event_name:"enter_business_desc",screen_name:"setup_payments_page"},BUSINESS_DESC_NEXT:{event_type:i.BUTTON_CLICKED,event_name:"business_desc_next",screen_name:"setup_payments_page"},REVIEW_TERMS_CHECKBOX_ACKNOWLEDGE:{event_type:i.BUTTON_CLICKED,event_name:"review_terms_checkbox_acknowledge",screen_name:"setup_payments_page"},REVIEW_TERMS_CHECKBOX_CERTIFY:{event_type:i.BUTTON_CLICKED,event_name:"review_terms_checkbox_certify",screen_name:"setup_payments_page"},REVIEW_TERMS_SUBMIT:{event_type:i.BUTTON_CLICKED,event_name:"review_terms_submit",screen_name:"setup_payments_page"},ADDITIONAL_INFO_ID_TYPE:{event_type:i.BUTTON_CLICKED,event_name:"additional_info_id_type",screen_name:"payments_onboarding_page"},ADDITIONAL_INFO_ID_FRONT_UPLOAD:{event_type:i.BUTTON_CLICKED,event_name:"additional_info_id_front_upload",screen_name:"payments_onboarding_page"},ADDITIONAL_INFO_ID_BACK_UPLOAD:{event_type:i.BUTTON_CLICKED,event_name:"additional_info_id_back_upload",screen_name:"payments_onboarding_page"},ADDITIONAL_INFO_ENTER_BUSINESS_DESC:{event_type:i.BUTTON_CLICKED,event_name:"additional_info_enter_business_desc",screen_name:"payments_onboarding_page"},ADDITIONAL_INFO_UPDATE_INFO:{event_type:i.BUTTON_CLICKED,event_name:"additional_info_update_info",screen_name:"payments_onboarding_page"},ADDITIONAL_INFO_UPDATED_ACK:{event_type:i.BUTTON_CLICKED,event_name:"additional_info_updated_ack",screen_name:"payments_onboarding_page"},ADDITIONAL_INFO_SUBMIT:{event_type:i.BUTTON_CLICKED,event_name:"additional_info_submit",screen_name:"payments_onboarding_page"},SET_PAYMENT_OPTIONS_CLICKED:{event_type:i.BUTTON_CLICKED,event_name:"set_payment_options",screen_name:"payments_onboarding_page"},FINISH_PAYMENT_SETUP:{event_type:i.BUTTON_CLICKED,event_name:"finish_payment_setup",screen_name:"payments_onboarding_page"},PAYMENT_SELECTION_PAGE:{event_type:i.SCREEN_VIEWED,event_name:"payment_selection_page",screen_name:"payment_selection_page"},SAVE_PAYMENT_METHODS:{event_type:i.BUTTON_CLICKED,event_name:"save_payment_methods",screen_name:"payment_selection_page"},VERIFY_ACCOUNT_INFO:{event_type:i.SCREEN_VIEWED,event_name:"verify_account_info",screen_name:"payments_onboarding_page"},UPDATE_POPUP:{event_type:i.SCREEN_VIEWED,event_name:"update_popup",screen_name:"payments_onboarding_page"},VERIFY_BUSINESS_INFO:{event_type:i.SCREEN_VIEWED,event_name:"verify_business_info",screen_name:"payments_onboarding_page"},DESCRIBE_BUSINESS:{event_type:i.SCREEN_VIEWED,event_name:"describe_business",screen_name:"payments_onboarding_page"},REVIEW_TERMS:{event_type:i.SCREEN_VIEWED,event_name:"review_terms",screen_name:"payments_onboarding_page"},ADDITIONAL_INFO:{event_type:i.SCREEN_VIEWED,event_name:"additional_info",screen_name:"payments_onboarding_page"},SET_PAYMENT_OPTIONS_VIEWED:{event_type:i.SCREEN_VIEWED,event_name:"set_payment_options",screen_name:"payments_onboarding_page"},CONFIRM_DOWNGRADE_ACKNOWLEDGMENT:{event_type:i.BUTTON_CLICKED,event_name:"downgrade_ack_update_payment_methods",screen_name:"invoice_overview_page"},DOWNGRADE_NOT_ACKNOWLEDGED:{event_type:i.SCREEN_VIEWED,event_name:"downgrade_ack_not_now",
1screen_name:"invoice_overview_page"},ALERT_DENIED_ACKNOWLEDGEMENT:{event_type:i.BUTTON_CLICKED,event_name:"alert_action_ack_denied_payment_setup",screen_name:"invoice_overview_page"},ALERT_SET_PAYMENT_OPTIONS:{event_type:i.BUTTON_CLICKED,event_name:"alert_action_set_payment_options",screen_name:"invoice_overview_page"},ALERT_NEED_ADDITIONAL_INFO:{event_type:i.BUTTON_CLICKED,event_name:"alert_action_need_additional_info",screen_name:"invoice_overview_page"},ALERT_GET_STARTED:{event_type:i.BUTTON_CLICKED,event_name:"setup_payment_banner_action_get_started",screen_name:"invoice_overview_page"},ALERT_GET_STARTED_FROM_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"setup_payment_banner_action_get_started",screen_name:"payment_methods_settings"},ALERT_FINISH_SETUP:{event_type:i.BUTTON_CLICKED,event_name:"setup_payment_banner_action_finish_setup",screen_name:"invoice_overview_page"},ALERT_FINISH_SETUP_FROM_PAYMENTS:{event_type:i.BUTTON_CLICKED,event_name:"setup_payment_banner_action_finish_setup",screen_name:"payment_methods_settings"},OPT_BACK_IN:{event_type:i.BUTTON_CLICKED,event_name:"setup_payment_banner_action_opt_back_in",screen_name:"payment_methods_settings"}},STRIPE_OPT_OUT:{OPT_OUT:{event_type:i.BUTTON_CLICKED,event_name:"stripe_opt_out",screen_name:"payment_methods_settings"},CANCEL_OPT_OUT:{event_type:i.BUTTON_CLICKED,event_name:"cancel_stripe_opt_out",screen_name:"payment_methods_settings"},CONFIRM_OPT_OUT:{event_type:i.BUTTON_CLICKED,event_name:"confirm_stripe_opt_out",screen_name:"payment_methods_settings"},UPDATE_PAYMENT_METHODS:{event_type:i.BUTTON_CLICKED,event_name:"stripe_opt_out_update_payment_methods",screen_name:"payment_methods_settings"}},DISPUTES:{VIEW_SUPPORT_TICKET:{event_type:i.BUTTON_CLICKED,event_name:"payments_details_support_ticket",screen_name:"payments_details"},MORE_DETAILS:{event_type:i.BUTTON_CLICKED,event_name:"payments_details_more_details",screen_name:"payments_details"},RESOLVE_DISPUTE:{event_type:i.BUTTON_CLICKED,event_name:"payment_details_resolve_dispute",screen_name:"payments_details"}},TRANSACTION_DETAILS:{TXN_DETAILS_MODAL:{event_type:i.SCREEN_VIEWED,event_name:"transaction_detail",screen_name:"transaction_detail"},LINK_INVOICE:{event_type:i.BUTTON_CLICKED,event_name:"transaction_details_link_an_invoice",screen_name:"transaction_detail"},LINKED_TOOLTIP:{event_type:i.SCREEN_VIEWED,event_name:"transaction_details_linked_invoices_tooltip",screen_name:"transaction_detail"},ADJUSTMENTS_TOOLTIP:{event_type:i.SCREEN_VIEWED,event_name:"transaction_details_adjustments_tooltip",screen_name:"transaction_detail"}}})},55639(e,n,a){"use strict";a.d(n,{A:()=>r,x:()=>s});var i=a(23463),t=a(69500);const s=({isRecurring:e=!1})=>(0,t.jsxs)("div",{className:"grid grid-cols-3 justify-items-start gap-0.5 p-4 md:gap-10",children:[(0,t.jsx)(i.SkeletonText,{className:"w-1/3"}),(0,t.jsx)(i.SkeletonText,{className:"w-1/3"}),(0,t.jsx)(i.SkeletonText,{className:"w-1/3"})]}),r=({isRecurring:e=!1})=>(0,t.jsxs)("div",{className:"grid grid-cols-4 justify-items-start gap-0.5 p-4 md:gap-10",children:[(0,t.jsx)(i.SkeletonText,{className:"w-1/4"}),(0,t.jsx)(i.SkeletonText,{className:"w-1/4"}),(0,t.jsx)(i.SkeletonText,{className:"w-1/4"}),(0,t.jsx)(i.SkeletonText,{className:"w-1/4"})]})},50654(e,n,a){"use strict";a.d(n,{Ih:()=>t,TG:()=>i,aL:()=>s});let i=function(e){return e.BANK_TRANSFER="BANK_TRANSFER",e.CARD="CARD",e.APPLE_PAY="APPLE_PAY",e.GOOGLE_PAY="GOOGLE_PAY",e.PAYPAL="PAYPAL",e.CASH="CASH",e.CHECK="CHECK",e.OTHER="OTHER",e.STRIPE_INTEGRATION="STRIPE_INTEGRATION",e.PAYPAL_INTEGRATION="PAYPAL_INTEGRATION",e.SQUARE_INTEGRATION="SQUARE_INTEGRATION",e}({}),t=function(e){return e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE",e.DELETED="DELETED",e}({}),s=function(e){return e.BUSINESS="BUSINESS",e.CONSUMER="CONSUMER",e}({})},59080(e,n,a){"use strict";a.d(n,{qS:()=>X,hk:()=>W,KM:()=>H,aH:()=>w,kG:()=>$,qU:()=>G,wz:()=>q,vx:()=>K,xv:()=>Q,yv:()=>z,XS:()=>B,s7:()=>V,hD:()=>Y});var i=a(72937),t=(a(18496),a(75969)),s=a(73681),r=a.n(s),d=a(23463),l=a(36195),o=a(35397),c=a(11257),m=a(55531),u=a(42242),_=a(69500);const v=({onConfirm:e,underReview:n,isLoading:a,type:i})=>{const{APPLICATION:t}=o.k.PAYMENTS,{openModal:s}=(0,d.useModal)(),r=i&&"businessOwnership"===i,{VERIFY_BUSINESS_INFO_UPDATE:l,VERIFY_ACCOUNT_INFO_UPDATE:v,VERIFY_BUSINESS_INFO_YES:N,VERIFY_ACCOUNT_INFO_YES:p}=u.y.STRIPE_ONBOARDING;return(0,_.jsxs)("div",{className:"",children:[(0,_.jsx)("span",{className:"text-typography-default text-body-medium w-full",children:r?t.CONFIRM_DETAILS.BUSINESS_HEADING:t.CONFIRM_DETAILS.HEADING}),(0,_.jsxs)("div",{className:"mt-4 flex w-full gap-x-4",children:[(0,_.jsxs)(d.Tooltip,{children:[(0,_.jsx)(d.TooltipTrigger,{asChild:!0,children:(0,_.jsx)(d.Button,{"data-test-id":"
1confirm-personal-information",className:"w-full md:w-[216px] md:max-w-[216px]",onClick:()=>{r?(0,m.sx)(N):(0,m.sx)(p),e()},disabled:n||a,children:t.CONFIRM_DETAILS.YES})}),(0,_.jsx)(d.TooltipContent,{children:n&&(0,_.jsx)("div",{className:"text-body-s-regular max-w-80",children:t.DISABLED_CTA_TOOLTIP.CONTINUE})})]}),(0,_.jsx)(d.Button,{"data-test-id":"open-update-personal-information",buttonVariant:"secondary",className:"w-full md:max-w-[216px]",onClick:()=>{r?(0,m.sx)(l):(0,m.sx)(v),s({name:c.A.MODAL.UPDATE_ACCOUNT_DETAILS})},children:t.CONFIRM_DETAILS.UPDATE})]})]})},N=({type:e})=>{const{openModal:n}=(0,d.useModal)(),{APPLICATION:a}=o.k.PAYMENTS,{MADE_A_MISTAKE_UPDATE_ACCOUNT_INFO:i,MADE_A_MISTAKE_BUSINESS_INFO:t}=u.y.STRIPE_ONBOARDING;return(0,_.jsxs)("div",{className:"bg-fill-success-light text-typography-default text-body-regular flex flex-col rounded-lg p-4 font-normal leading-6",children:[(0,_.jsx)("span",{children:"accountInfo"===e?a.VERIFICATION.VERIFIED_ACCOUNT_INFO:a.VERIFICATION.VERIFIED_OWNERSHIP_INFO}),(0,_.jsxs)("span",{children:[a.VERIFICATION.MADE_A_MISTAKE," ",(0,_.jsx)("span",{role:"button",onClick:()=>{"accountInfo"===e?(0,m.sx)(i):(0,m.sx)(t),n({name:c.A.MODAL.UPDATE_ACCOUNT_DETAILS})},className:"text-button-variant-outlined cursor-pointer underline underline-offset-2",children:a.VERIFICATION.UPDATE_INFO})," ",a.VERIFICATION.BEFORE_SUBMISSION]})]})},p=()=>(0,_.jsx)(d.SkeletonText,{className:"mt-1 h-4 w-32"}),E=()=>(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(d.SkeletonText,{className:"mb-2 mt-1 h-4 w-32"}),(0,_.jsx)(d.SkeletonText,{className:"h-4 w-24"})]}),g=()=>{const{APPLICATION:e}=o.k.PAYMENTS;return(0,_.jsx)("div",{className:"w-full",children:(0,_.jsxs)("div",{className:"my-4 flex w-full flex-col gap-3 break-all pb-8 md:grid md:grid-cols-3 lg:gap-6",children:[(0,_.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,_.jsx)("h2",{className:"text-typography-default text-h4 leading-7",children:e.ACCOUNT_INFO.HEADINGS.PERSONAL_INFORMATION}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.COMMON.FULL_LEGAL_NAME}),(0,_.jsx)(p,{})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.COMMON.DATE_OF_BIRTH}),(0,_.jsx)(p,{})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.ACCOUNT_INFO.SSN}),(0,_.jsx)(p,{})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.ACCOUNT_INFO.HOME_ADDRESS}),(0,_.jsx)(E,{})]})]}),(0,_.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,_.jsx)("h2",{className:"text-typography-default text-h4 leading-7",children:e.ACCOUNT_INFO.HEADINGS.BUSINESS_INFORMATION}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.ACCOUNT_INFO.BUSINESS_NAME}),(0,_.jsx)(p,{})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.ACCOUNT_INFO.DBA}),(0,_.jsx)(p,{})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.ACCOUNT_INFO.BUSINESS_ADDRESS}),(0,_.jsx)(E,{})]})]}),(0,_.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular mt-11 font-normal leading-6 text-typography-grey",children:e.ACCOUNT_INFO.EIN}),(0,_.jsx)("span",{className:"text-typography-default text-body-regular font-normal leading-6",children:(0,_.jsx)(p,{})})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.ACCOUNT_INFO.BUSINESS_TYPE}),(0,_.jsx)(p,{})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.ACCOUNT_INFO.WEBSITE}),(0,_.jsx)(p,{})]})]})]})})};var T=a(67562),k=a(1701),I=a(3534),y=a(21215),S=a(93415);const A=({type:e})=>{const{modalState:n,closeModal:a}=(0,d.useModal)(),i=(0,I.useNavigate)(),{UPDATE_POPUP_GO_TO_ACCOUNT_INFO:t,UPDATE_POPUP_CANCEL:s}=u.y.STRIPE_ONBOARDING;return(0,_.jsxs)(d.Modal,{isOpen:n.name===c.A.MODAL.UPDATE_ACCOUNT_DETAILS,closeIcon:!0,children:[(0,_.jsx)(d.Modal.Header,{children:(0,_.jsx)(d.Header4,{className:"text-typography-default",children:o.k.how_to_update_your_info})}),(0,_.jsxs)(d.Modal.Content,{className:"flex-col justify-end gap-6 self-end",children:[(0,_.jsx)("div",{className:"text-typography-grey",children:(0,_.jsx)(S.Trans,{i18nKey:"how_to_update_info_body",ns:"invoices",values:{accountInfo:o.k.account_info,type:e},components:{b:(0,_.jsx)("span",{className:"font-medium"})}})}),(0,_.jsxs)("div",{className:"flex items-center gap-6",children:[(0,_.jsx)(d.Button,{type:"button",buttonVariant:"primary",onClick:()=>{(0,m.sx)(t),i(y.NOVO_PAGE_ROUTES.AccountInfo)},"data-test-id":"redirect-to-account-info",className:"w-1/2",children:o.k.go_to_account_info}),(0,_.jsx)(d.Button,{type:"button",buttonVariant:"secondary",onClick:()=>{(0,m.sx)(s),a()}
1,"data-test-id":"cancel-account-info-update",className:"w-1/2",children:o.k.cancel})]})]})]})};var f=a(26443),x=a(1291);const h=(0,t.memo)((({value:e})=>e?(0,_.jsx)("span",{className:"text-typography-default text-body-regular break-all font-normal leading-6",children:e}):"-")),C=(0,t.memo)((({value:e})=>(0,_.jsx)("span",{className:"text-body-regular text-typography-grey font-normal leading-6",children:e}))),O=(0,t.memo)((()=>{const{APPLICATION:e}=o.k.PAYMENTS;return(0,_.jsx)(d.Tag,{className:"rounded-full px-2 py-1",category:"warning",children:e.ACCOUNT_INFO.LABELS.IN_REVIEW})})),D=(0,t.memo)((({title:e,value:n,showInReview:a})=>(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsxs)("div",{className:"flex items-center gap-1",children:[(0,_.jsx)(C,{value:e}),a&&(0,_.jsx)(O,{})]}),(0,_.jsx)(h,{value:n})]}))),b=(0,t.memo)((({heading:e="",rows:n})=>(0,_.jsxs)("div",{className:"flex flex-col gap-y-4",children:[e&&(0,_.jsx)(d.Header4,{className:"text-typography-default",children:e}),n.map(((e,n)=>(0,_.jsx)(D,Object.assign({},e),"info"+n)))]}))),R=({title:e,ein:n,maskedEin:a,showInReview:i})=>{const[s,r]=(0,t.useState)(!1);return(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsxs)("div",{className:"flex items-center gap-1",children:[(0,_.jsxs)("div",{className:"flex items-center gap-2",children:[(0,_.jsx)(C,{value:e}),(0,_.jsx)("span",{className:"cursor-pointer","data-test-id":"ein-toggle",role:"button",onClick:()=>r(!s),"aria-label":s?o.k.hide_ein:o.k.show_ein,tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||r(!s)},children:s?(0,_.jsx)(x.Int,{name:"view",size:"xs",className:"cursor-pointer",color:"current"}):(0,_.jsx)(x.Int,{name:"hide",size:"xs",className:"cursor-pointer",color:"current"})})]}),i&&(0,_.jsx)(O,{})]}),(0,_.jsx)(h,{value:s?(0,l.formatToEin)(n):a})]})},L=()=>{const{APPLICATION:e}=o.k.PAYMENTS;return(0,_.jsxs)("div",{className:"border-border-light flex flex-col gap-y-4 rounded-lg border border-solid p-4",children:[(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.COMMON.FULL_LEGAL_NAME}),(0,_.jsx)(d.SkeletonText,{className:"mt-1 h-4 w-32"})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.COMMON.DATE_OF_BIRTH}),(0,_.jsx)(d.SkeletonText,{className:"mt-1 h-4 w-12"})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.OWNERS_INFO.EMAIL}),(0,_.jsx)(d.SkeletonText,{className:"mt-1 h-4 w-40"})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-body-regular font-normal leading-6 text-typography-grey",children:e.OWNERS_INFO.OWNERSHIP_PERCENTAGE}),(0,_.jsx)(d.SkeletonText,{className:"mt-1 h-4 w-10"})]})]})},F=()=>(0,_.jsxs)("div",{className:"my-4 grid w-full grid-cols-3 gap-3 pb-8 md:gap-6 xl:gap-8",children:[(0,_.jsx)(L,{}),(0,_.jsx)(L,{}),(0,_.jsx)(L,{}),(0,_.jsx)(d.SkeletonButton,{className:"mb-7 w-60"})]});var P=a(97519);const j=()=>(0,_.jsx)(d.SkeletonParagraph,{className:"mb-7 w-2/5"});var M=a(80824),U=a(76075);const w={UserLoggedINCookie:"novo_app_user_logged_in",DeviceUUIDCookie:"novo_app_device_uuid",CounterCookie:"novo_app_counter",ACH:"ACH",MAILED_CHECKS:"MAILED_CHECKS",INTERNATIONAL:"INTERNATIONAL",INTERNATIONAL_PAYMENT:"INTERNATIONAL_PAYMENT",EXPRESS_ACH:"EXPRESS_ACH",MAKE_PAYMENT_SCREEN:{CHOOSE_PAYEE:"choose_payee",ENTER_AMOUNT:"enter_amount",CHOOSE_SPEED:"choose_speed",CHOOSE_PAYMENT_METHOD:"choose_payment_method",REVIEW_PAYMENT:"review_payment",SHOW_AD:"show_ad",PAYMENT_DONE:"payment_done"},LIMIT:{TRANSACTION:50,STATEMENTS:24,RECENT_TRANSACTION:5,RECENT_INVOICES:4,PENDING_TRANSACTIONS:4,CLIENT_DETAIL_RECENT_INVOICES:4,CLIENT_DETAIL_RECENT_PAYMENTS:4,OVERDUE_RECENT_ACTIVITIES:10,PAYMENTS:50},TIME:{ONBOARDING_POLLING_INTERVAL:5e3},PAYEE_PAYMENT_METHOD_TYPE:{ACCOUNT:"ACCOUNT",ADDRESS:"ADDRESS"},MODAL:{CARD_PAYMENT_REFERRAL:"CARD_PAYMENT_REFERRAL",INVOICE_PREVIEW_MODA
1L:"INVOICE_PREVIEW_MODAL",REFER_A_FRIEND:"REFER_A_FRIEND",INVOICE_FEATURES_TUTORIAL:"INVOICE_FEATURES_TUTORIAL",TXN_DETAILS:"TXN_DETAILS",TXN_DETAILS_ACH:"TXN_DETAILS_ACH",INTEGRATION_CONNECTED:"INTEGRATION_CONNECTED",SHOPIFY_DETAILS:"SHOPIFY_DETAILS",SHOPIFY_DISCONNECT:"SHOPIFY_DISCONNECT",CONNECT_TO_SHOPIFY:"CONNECT_TO_SHOPIFY",DELETE_DRAFT_INVOICE:"DELETE_DRAFT_INVOICE",SHOW_INVOICES_LIST_ON_TRANSACTIONS_DETAILS:"SHOW_INVOICES_LIST_ON_TRANSACTIONS_DETAILS",INVOICE_BACK:"INVOICE_BACK",ADD_UPDATE_REMINDERS:"ADD_UPDATE_REMINDERS",SCHEDULED_INVOICE_BACK:"SCHEDULED_INVOICE_BACK",PROCESSING_FEE_DETAILS:"PROCESSING_FEE_DETAILS",CREATE_INVOICE_MODAL:"CREATE_INVOICE_MODAL",CUSTOMIZE_INVOICE_MODAL:"CUSTOMIZE_INVOICE_MODAL",EDIT_SERIES_MODAL:"EDIT_SERIES_MODAL",QB_DETAILS:"QB_DETAILS",QB_DISCONNECT:"QB_DISCONNECT",QB_SYNC_TXNS:"QB_SYNC_TXNS",QB_CONNECTED:"QB_CONNECTED",XERO_DETAILS:"XERO_DETAILS",XERO_DISCONNECT:"XERO_DISCONNECT",XERO_SYNC_TXNS:"XERO_SYNC_TXNS",XERO_CONNECTED:"XERO_CONNECTED",STRIPE_DETAILS:"STRIPE_DETAILS",STRIPE_DISCONNECT:"STRIPE_DISCONNECT",ZAPIER_DETAILS:"ZAPIER_DETAILS",ZAPIER_DISCONNECT:"ZAPIER_DISCONNECT",SLACK_DETAILS:"SLACK_DETAILS",SLACK_DISCONNECT:"SLACK_DISCONNECT",SLACK_CONNECTED:"SLACK_CONNECTED",CHANGE_NOTICE_REVIEW:"CHANGE_NOTICE_REVIEW",CHANGE_NOTICE_REVIEW_V2:"CHANGE_NOTICE_REVIEW_V2",HOW_TO_ADD_FUND:"HOW_TO_ADD_FUND",ADD_FUNDS_TO_RESERVE:"ADD_FUNDS_TO_RESERVE",RELEASE_FUNDS_FROM_RESERVE:"RELEASE_FUNDS_FROM_RESERVE",DELETE_RESERVE:"DELETE_RESERVE",CANCEL_INVOICE:"CANCEL_INVOICE",ACTIVITY_FILTER:"ACTIVITY_FILTER",TOP_SOURCES_DESTINATIONS_TXNS:"TOP_SOURCES_DESTINATIONS_TXNS",ADD_GOOGLE_PAY:"ADD_GOOGLE_PAY",ADD_APPLE_PAY:"ADD_APPLE_PAY",REMOVE_MOBILE_WALLET:"REMOVE_MOBILE_WALLET",SQUARE_CONNECTED:"SQUARE_CONNECTED",SQUARE_DETAILS:"SQUARE_DETAILS",SQUARE_DISCONNECT:"SQUARE_DISCONNECT",SHOPIFY_CONNECTED:"SHOPIFY_CONNECTED",ADD_USER_WANT_DEBIT_CARD:"ADD_USER_WANT_DEBIT_CARD",CONFIRM_USER_DELETE:"CONFIRM_USER_DELETE",USER_DETAILS:"USER_DETAILS",USER_REMOVE_REQUEST:"USER_REMOVE_REQUEST",INVOICE_NUMBER_INFO:"INVOICE_NUMBER_INFO",HOW_TO_PAY_VIA_ACH:"HOW_TO_PAY_VIA_ACH",CANCEL_DEBIT_CARD_TIMELINE_CONFIRMATION:"CANCEL_DEBIT_CARD_TIMELINE_CONFIRMATION",PLATFORM_PICKER:"PLATFORM_PICKER",WISE_ACCOUNT_EXIST:"WISE_ACCOUNT_EXIST",WISE_ACCOUNT_READY:"WISE_ACCOUNT_READY",WISE_DETAILS:"WISE_DETAILS",WISE_DISCONNECT:"WISE_DISCONNECT",WISE_TRANSECTION_DETAILS:"WISE_TRANSECTION_DETAILS",WISE_CONNECTED:"WISE_CONNECTED",CONNECT_TO_WISE:"CONNECT_TO_WISE",UPDATE_RESERVE:"UPDATE_RESERVE",TXN_REPORT_ISSUE:"TXN_REPORT_ISSUE",TXN_REPORT_ADDITIONAL_DATA:"TXN_REPORT_ADDITIONAL_DATA",HOW_TO_REORDER:"HOW_TO_REORDER",LOGIN_MAX_ATTEMPT:"LOGIN_MAX_ATTEMPT",CLOSE_CONFIRMATION:"CLOSE_CONFIRMATION",TRUST_PILOT_REVIEW:"TRUST_PILOT_REVIEW",ADD_PAYEE_REVIEW:"ADD_PAYEE_REVIEW",ADD_PAYEE_CONFIRM_ACCOUNT_NUMBER_RESULTS:"ADD_PAYEE_CONFIRM_ACCOUNT_NUMBER_RESULTS",ADD_VCARD_TO_WALLETS:"ADD_VCARD_TO_WALLETS",NOVO_APPS_TUTORIAL:"NOVO_APPS_TUTORIAL",NOVO_APP_CONNECTED:"NOVO_APP_CONNECTED",NOVO_APP_CONNECTION_ERROR:"NOVO_APP_CONNECTION_ERROR",NOVO_APP_DIS_CONNECT:"NOVO_APP_DIS_CONNECT",DISPUTE_TXN_DETAILS:"DISPUTE_TXN_DETAILS",UNDERSTAND_YOUR_BALANCE:"UNDERSTAND_YOUR_BALANCE",TOTAL_ACCOUNT_BALANCE:"TOTAL_ACCOUNT_BALANCE",NEGATIVE_AVAILABLE_BALANCE:"NEGATIVE_AVAILABLE_BALANCE",SETUP_PAYOUTS:"SETUP_PAYOUTS",DEBIT_CARD_HOLD:"DEBIT_CARD_HOLD",SELECT_PAYMENT_SOURCE:"SELECT_PAYMENT_SOURCE",SEND_REMINDER_INVOICE:"SEND_REMINDER_INVOICE",CANCEL_SCHEDULED_INVOICE:"CANCEL_SCHEDULED_INVOICE",CUSTOMER_DETAILS:"CUSTOMER_DETAILS",ITEM_DETAILS:"ITEM_DETAILS",UPDATE_CUSTOMER_DETAILS:"UPDATE_CUSTOMER_DETAILS",DELETE_CUSTOMER:"DELETE_CUSTOMER",REFERRAL_SPLASH_SCREEN:"REFERRAL_SPLASH_SCREEN",NOVO_INVOICE_TUTORIAL_N_ONBOARD:"NOVO_INVOICE_TUTORIAL_N_ONBOARD",MANAGE_BUSINESS_INFO:"MANAGE_BUSINESS_INFO",LIMIT_INFORMATION:"LIMIT_INFORMATION",LIMIT_EXCEED:"LIMIT_EXCEED",REQUEST_LIMIT_CHANGE:"REQUEST_LIMIT_CHANGE",VIEW_LIMIT_CHANGE_REQUEST:"VIEW_LIMIT_CHANGE_REQUEST",CANCEL_LIMIT_CHANGE_REQUEST:"CANCEL_LIMIT_CHANGE_REQUEST",REQUEST_LIMIT_CHANGE_ACCOUNT_INFO:"REQUEST_LIMIT_CHANGE_ACCOUNT_INFO",VIEW_LIMIT_CHANGE_REQUEST_ACCOUNT_INFO:"VIEW_LIMIT_CHANGE_REQUEST_ACCOUNT_INFO",CANCEL_LIMIT_CHANGE_REQUEST_ACCOUNT_INFO:"CANCEL_LIMIT_CHANGE_REQUEST_ACCOUNT_INFO",RECONNECT_PAYMENT:"RECONNECT_PAYMENT",DOWNGRADE_ACKNOWLEDGMENT:"DOWNGRADE_ACKNOWLEDGMENT",PAYMENTS_OPT_OUT:"PAYMENTS_OPT_OUT",PAYMENTS_OPT_OUT_CONFIRMATION:"PAYMENTS_OPT_OUT_CONFIRMATION",INSTANT_PAYOUT:{STRIPE_STARTER:"STRIPE_STARTER",ENSURE_INSTANT_PAYOUT:"ENSURE_PAYOUT",OPT_IN_INSTANT_PAYOUT:"OPT_IN_INSTANT_PAYOUT",SETUP_STRIPE_PAYOUT:"SETUP_STRIPE_PAYOUT",INSTANT_PAYOUT_ENABLED:"INSTANT_PAYOUT_ENABLED"},INSTANT_DEPOSIT_USING_V_CARD_CONF:"INSTANT_DEPOSIT_USING_V_CARD_CONF",PAYMENT_SENT:"PAYMENT_SENT",SUCCESS_SCREEN:"SUCCESS_SCREEN",EXPRESS_ACH_INFO:"EXPRESS_ACH_INFO",LINE_OF_CREDIT_ESTIMATED_AMOUNT:"LINE_OF_CREDIT_ESTIMATED_AMOUNT",NOVO_PAYEE_INVITE_SUCCESS:"NOVO_PAYEE_INVITE_SUCCESS",RESERVE:{PERCENTAGE_ALLOCATION:"PERCENTAGE_ALLOCATION",TRANSFER_FUNDS:"TRANSFER_FUNDS",PROFIT_FIRST:"PROFIT_FIRST",ABOUT_PROFIT_FIRST:"ABOUT_PROFIT_FIRST",CONFIRM_RESERVE:"CONFIRM_RESERVE"},ZENDESK:{CREATE_TICKET:"CREATE_TICKET"},TXN_PAY_FROM_RESERVE_CONFIRMATION:"TXN_PAY_FROM_RESERVE_CONFIRMATION",NOT_ENOUGH_FUNDS:"NOT_ENOUGH_FUNDS",TAX:{FEATURE_DETAIl_EXIT:"FEATURE_DETAIl_EXIT",OPT_OUT_TAX_WAIT_LIST:"OPT_OUT_TAX_WAIT_LIST"}
1,NOVO_INVOICE_TUTORIAL_N_ONBOARD_EXIT:"NOVO_INVOICE_TUTORIAL_N_ONBOARD_EXIT",ACCOUNTING:{ADD_RULE:"ADD_RULE",EDIT_RULE:"EDIT_RULE",DELETE_RULE_CONFIRMATION:"DELETE_RULE_CONFIRMATION",MANAGE_TAGS:"MANAGE_TAGS",SHOULD_CREATE_NEW_RULE:"SHOULD_CREATE_NEW_RULE",SHOULD_CHANGE_RULE:"SHOULD_CHANGE_RULE",DELETE_TRANSACTION:"DELETE_TRANSACTION",SHOULD_CHANGE_TXN_TYPE:"SHOULD_CHANGE_TXN_TYPE",SELECT_TRANSACTION_TYPE_TO_CATEGORIZE:"SELECT_TRANSACTION_TYPE_TO_CATEGORIZE",SELECT_BULK_CATEGORY:"SELECT_BULK_CATEGORY",CAN_NOT_CONFIRM_ALL:"CAN_NOT_CONFIRM_ALL"},VIEW_LOAN_APPLICATION_RESULT:"VIEW_LOAN_APPLICATION_RESULT",PAYEE_DETAIL_ON_REVIEW_PAYMENT:"PAYEE_DETAIL_ON_REVIEW_PAYMENT",SEND_MONEY_FROM:"SEND_MONEY_FROM",NOVO_PERKS_VIEW:"NOVO_PERKS_VIEW",WELCOME_BANNER:"WELCOME_BANNER",FTE_ACTIVITY:"FTE_ACTIVITY",FTE_ACTIVITY_WRAPPER:"FTE_ACTIVITY_WRAPPER",FAQ_AND_INFO_MODAL:"FAQ_AND_INFO_MODAL",ADD_PAYEE_INFO_MODAL:"ADD_PAYEE_INFO_MODAL",VENMO_REMINDER:"VENMO_REMINDER",APPS:{QUICK_BOOK:{SELECT_WIDGET:"SELECT_WIDGET",ADD_ACCOUNT_DETAIL_IN_QB:"ADD_ACCOUNT_DETAIL_IN_QB",QUICK_BOOK_RESERVE_MANAGE:"QUICK_BOOK_RESERVE_MANAGE",CATEGORIES:"CATEGORIES",DASHBOARD_WIDGET_DETAILS:"DASHBOARD_WIDGET_DETAILS",QB_INFO:"QB_INFO"}},PAYPAL_MICRO_DEPOSIT:"PAYPAL_MICRO_DEPOSIT",SHOW_EXTERNAL_ACCOUNT_DETAILS:"SHOW_EXTERNAL_ACCOUNT_DETAILS",SELECT_PAYEE_METHOD:"SELECT_PAYEE_METHOD",ADD_PAYEE_BY_USER:"ADD_PAYEE_BY_USER",ADD_PAYEE_EMAIL_TO_INVITE:"ADD_PAYEE_EMAIL_TO_INVITE",ADD_PAYEE_PAYMENT_METHODS:"ADD_PAYEE_PAYMENT_METHODS",ADD_PAYEE_EMAIL_TO_INVITE_SUCCESS:"ADD_PAYEE_EMAIL_TO_INVITE_SUCCESS",ADD_PAYEE_PLAID_SUCCESS:"ADD_PAYEE_PLAID_SUCCESS",ADD_PAYEE_EDIT_PAYMENT_METHOD:"ADD_PAYEE_EDIT_PAYMENT_METHOD",ADD_PAYEE_PAYMENT_METHOD_REQUEST:"ADD_PAYEE_PAYMENT_METHOD_REQUEST",ADD_INTERNATIONAL_PAYEE:"ADD_INTERNATIONAL_PAYEE",DELETE_PAYEE:"DELETE_PAYEE",DELETE_PAYEEE_INVITE_REQUEST:"DELETE_PAYEEE_INVITE_REQUEST",SEND_REMINDER_TO_PAYEE:"SEND_REMINDER_TO_PAYEE",DELETE_PAYMENT_METHOD_PAYEE:"DELETE_PAYMENT_METHOD_PAYEE",PAYEE_PAYMENT_HISTORY:"PAYEE_PAYMENT_HISTORY",PAYEE_NOVO_TO_NOVO_INVITE:"PAYEE_NOVO_TO_NOVO_INVITE",UNABLE_TO_EDIT_PAYEE_DETAILS:"UNABLE_TO_EDIT_PAYEE_DETAILS",CHANGE_EMAIL_AND_SEND_NEW_PAYEE_REQUEST:"CHANGE_EMAIL_AND_SEND_NEW_PAYEE_REQUEST",FISERVE_CARD_USE_ALERT_MODAL:"FISERVE_CARD_USE_ALERT_MODAL",CUSTOMER_SUPPORT_MODAL:"CUSTOMER_SUPPORT_MODAL",ADD_PAYMENT_NOTES:"ADD_PAYMENT_NOTES",CARDS:{DISPUTE_SUCCESS_REPORT:"DISPUTE_SUCCESS_REPORT"},CONFIRM_RECONNECT:"CONFIRM_RECONNECT",WELCOME_INTRO:"WELCOME_INTRO",DOWNLOAD_APP:"DOWNLOAD_APP",PAYMENT_IN_PROGRESS:"PAYMENT_IN_PROGRESS"},DEFAULT_CITIZENSHIP:"US",MOBILE_WALLET_VENDORS:{GOOGLE:"GOOGLE",APPLE:"APPLE"},WISE:{DEFAULT_TARGET_CURRENCY:"EUR",DEFAULT_SOURCE_AMOUNT:20,MINIMUM_QUOTE_AMOUNT:20,MAXIMUM_QUOTE_AMOUNT:5e4,AMOUNT_TYPES:{SOURCE:"SOURCE",TARGET:"TARGET"},DEFAULT_SOURCE_CURRENCY:"USD",DEFAULT_SOURCE_CURRENCY_LOGO:"https://novo-static-assets.s3.amazonaws.com/images/country_flag/US.PNG"},PLAID_OAUTH_DATA:"PLAID_OAUTH_DATA",URL:{TRUSTPILOT:"https://www.trustpilot.com/evaluate/novo.co"},ADD_PAYEE:{MAIN_FORM:"ADD_PAYEE_MAIN_FORM",CONFIRM_ACC_NUM:"ADD_PAYEE_CONFIRM_ACC_NUM_FORM"},CARD_TXN_STATUS:{DECLINED:"DECLINED",CANCELED:"CANCELED",PENDING:"PENDING"},HOLD_INFO:{DEBIT_CARD:"DEBIT_CARD_HOLD"},APPS:{NOVO_ACTION:"NOVO_ACTION",FOOTER:"FOOTER",get COLLECTIONS(){return(0,i.catalogueText)("invoices","APPS.COLLECTIONS")},get VIEW_ALL(){return(0,i.catalogueText)("invoices","APPS.VIEW_ALL")},get BACK(){return(0,i.catalogueText)("invoices","APPS.BACK")},get CONTINUE(){return(0,i.catalogueText)("invoices","APPS.CONTINUE")},get DISCONNECT(){return(0,i.catalogueText)("invoices","APPS.DISCONNECT")},get DISCONNECTED(){return(0,i.catalogueText)("invoices","APPS.DISCONNECTED")},get GO_TO_APPS(){return(0,i.catalogueText)("invoices","APPS.GO_TO_APPS")},get GO_TO_INVOICE(){return(0,i.catalogueText)("invoices","APPS.GO_TO_INVOICE")},BOTH:"BOTH",PRE_CONNECTION:"PRE_CONNECTION",POST_CONNECTION:"POST_CONNECTION",get NO_APPS(){return(0,i.catalogueText)("invoices","APPS.NO_APPS")},get DID_NT_FIND_REQUEST(){return(0,i.catalogueText)("invoices","APPS.DID_NT_FIND_REQUEST")},get REQUEST_HERE(){return(0,i.catalogueText)("invoices","APPS.REQUEST_HERE")},get REMOVE_FROM_MY_APP(){return(0,i.catalogueText)("invoices","APPS.REMOVE_FROM_MY_APP")},get ADD_TO_MY_APP(){return(0,i.catalogueText)("invoices","APPS.ADD_TO_MY_APP")},REMOVE:"REMOVE",ADD:"ADD",HTML:"HTML",TEXT:"TEXT",BUTTON:"BUTTON",FAQ_AND_INFO:"FAQ_AND_INFO",SECONDARY_BUTTON:"SECONDARY_BUTTON",HYPERLINK:"HYPERLINK",EXTERNAL_TOOL:"EXTERNAL_TOOL",FAQ:"FAQ",ACCOUNT_INFO:"ACCOUNT_INFORMATION",NOVO_INTEGRATION:"NOVO_INTEGRATION",get CONNECTION_DETAIL(){return(0,i.catalogueText)("invoices","APPS.CONNECTION_DETAIL")},get CONNECTED(){return(0,i.catalogueText)("invoices","APPS.CONNECTED")},get CONNECTION_FAILED(){return(0,i.catalogueText)("invoices","APPS.CONNECTION_FAILED")},ACTIVE:"active",INACTIVE:"inactive",DISABLE:"disable",ERROR:"error",VERTICAL:"vertical",get LAST_REFRESHED_ON(){return(0,i.catalogueText)("invoices","APPS.LAST_REFRESHED_ON")},get MY_APPS(){return(0,i.catalogueText)("invoices","APPS.MY_APPS")},get DISCOVER(){return(0,i.catalogueText)("invoices","APPS.DISCOVER")},ACCOUNT_INFORMATION:"ACCOUNT_INFORMATION",CONNECT_SOURCES:{INVOICE:"INVOICE",NOVO_APP_STORE:"NOVO_APP_STORE",NOVO_APPS_STORE_V2:"NOVO_APPS_STORE_V2",LENDING_INTEGRATION_SETTINGS:"LENDING_INTEGRATION_SETTINGS",LENDING_INTEGRATION_ONBOARD:"LENDING_INTEGRATION_ONBOARD"}
1,HIDS:{STRIPE:"com.novo.stripe",QUICKBOOKS:"com.novo.quickbooks",XERO:"com.novo.xero",SLACK:"com.novo.slack",ZAPIER:"com.novo.zapier",WISE:"com.novo.wise",GUSTO:"com.novo.gusto",PAYPAL:"com.novo.paypal",SQUARE:"com.novo.square",AMAZON:"com.novo.amazon",VENMO:"com.novo.venmo"},WIDGET_TYPES:{ACCOUNTING_DATA:"accounting_data",SALES_DATA:"sales_data",PAYROLL_DATA:"payroll_data",GUSTO:"com.novo.gusto"},ADD_NOVO_DETAILS_IN_GUSTO:"ADD_NOVO_DETAILS_IN_GUSTO",REGISTER_FOR_GUSTO_ACCOUNT:"REGISTER_FOR_GUSTO_ACCOUNT",NAMES:{PAYPAL:"PAYPAL",STRIPE:"STRIPE",AMAZON:"AMAZON",VENMO:"VENMO"}},TUTORIAL:{APPS:{get V_HV_UPDATE(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.V_HV_UPDATE")},get LETS_SHOW(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.LETS_SHOW")},get YOUR_NEW_HUB(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.YOUR_NEW_HUB")},get MEET_NOVO_APPS(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.MEET_NOVO_APPS")},get NOVO_MUCH_MORE(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.NOVO_MUCH_MORE")},get ACCESS_APP(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.ACCESS_APP")},get YOUR_APP_CONTROL(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.YOUR_APP_CONTROL")},get YOUR_APP_FEATURE(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.YOUR_APP_FEATURE")},get VIEW_N_MANAGE(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.VIEW_N_MANAGE")},get FIND_YOUR_APP(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.FIND_YOUR_APP")},get CONNECT_YOUR_PLATFORM(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.CONNECT_YOUR_PLATFORM")},get RE_CONNECT_INTEGRATION(){return(0,i.catalogueText)("invoices","TUTORIAL.APPS.RE_CONNECT_INTEGRATION")}}},get RESERVES(){return(0,i.catalogueText)("invoices","RESERVES")},get RESERVE_HOLDING(){return(0,i.catalogueText)("invoices","RESERVE_HOLDING")},get AVAILABLE_BALANCE(){return(0,i.catalogueText)("invoices","AVAILABLE_BALANCE")},PENDING:"Pending",get OVERALL_BALANCE(){return(0,i.catalogueText)("invoices","OVERALL_BALANCE")},get TOTAL_BALANCE(){return(0,i.catalogueText)("invoices","TOTAL_BALANCE")},get TOTAL_BALANCE_INFO(){return(0,i.catalogueText)("invoices","TOTAL_BALANCE_INFO")},TOTAL_BALANCE_NONE:{get INFO(){return(0,i.catalogueText)("invoices","TOTAL_BALANCE_NONE.INFO")},ACTIONS:[{KEY:"TRANSFER",get DESC(){return(0,i.catalogueText)("invoices","TOTAL_BALANCE_NONE.ACTIONS.0.DESC")},get ACTION_BUTTON_TITLE(){return(0,i.catalogueText)("invoices","TOTAL_BALANCE_NONE.ACTIONS.0.ACTION_BUTTON_TITLE")}},{KEY:"APPS",get DESC(){return(0,i.catalogueText)("invoices","TOTAL_BALANCE_NONE.ACTIONS.1.DESC")},get ACTION_BUTTON_TITLE(){return(0,i.catalogueText)("invoices","TOTAL_BALANCE_NONE.ACTIONS.1.ACTION_BUTTON_TITLE")}}],get PRIMARY_ACTION_BUTTON(){return(0,i.catalogueText)("invoices","TOTAL_BALANCE_NONE.PRIMARY_ACTION_BUTTON")},get SECONDARY_ACTION_BUTTON(){return(0,i.catalogueText)("invoices","TOTAL_BALANCE_NONE.SECONDARY_ACTION_BUTTON")}},get NEGATIVE_BALANCE_INFO(){return(0,i.catalogueText)("invoices","NEGATIVE_BALANCE_INFO")},PENDING_TRANSACTIONS_INFO:{get NONE(){return(0,i.catalogueText)("invoices","PENDING_TRANSACTIONS_INFO.NONE")},get REMAINING(){return(0,i.catalogueText)("invoices","PENDING_TRANSACTIONS_INFO.REMAINING")}},get PENDING_TRANSACTIONS(){return(0,i.catalogueText)("invoices","PENDING_TRANSACTIONS")},TOTAL_BALANCE_MODAL:{get INFO(){return(0,i.catalogueList)("invoices","TOTAL_BALANCE_MODAL.INFO")},get ACTION_BUTTON_TITLE(){return(0,i.catalogueText)("invoices","TOTAL_BALANCE_MODAL.ACTION_BUTTON_TITLE")}},get UPDATED(){return(0,i.catalogueText)("invoices","UPDATED")},NEGATIVE_AVAILABLE_BALANCE_MODAL:{API_REQ:{limit:3,orderBy:"ASC"},get HEADING(){return(0,i.catalogueText)("invoices","NEGATIVE_AVAILABLE_BALANCE_MODAL.HEADING")},get INFO(){return(0,i.catalogueList)("invoices","NEGATIVE_AVAILABLE_BALANCE_MODAL.INFO")},get DATA_AVAILABLE_DESC(){return(0,i.catalogueText)("invoices","NEGATIVE_AVAILABLE_BALANCE_MODAL.DATA_AVAILABLE_DESC")},get PREVIOUS_AVAILABLE_BALANCE(){return(0,i.catalogueText)("invoices","NEGATIVE_AVAILABLE_BALANCE_MODAL.PREVIOUS_AVAILABLE_BALANCE")},get RESULTING_AVAILABLE_BALANCE(){return(0,i.catalogueText)("invoices","NEGATIVE_AVAILABLE_BALANCE_MODAL.RESULTING_AVAILABLE_BALANCE")},get VIEW_DETAILS(){return(0,i.catalogueText)("invoices","NEGATIVE_AVAILABLE_BALANCE_MODAL.VIEW_DETAILS")},get ACTION_BUTTON_TITLE(){return(0,i.catalogueText)("invoices","NEGATIVE_AVAILABLE_BALANCE_MODAL.ACTION_BUTTON_TITLE")}}
1,SETUP_PAYOUTS_MODAL:{get HEADER_TITLE(){return(0,i.catalogueText)("invoices","SETUP_PAYOUTS_MODAL.HEADER_TITLE")},get INFO(){return(0,i.catalogueList)("invoices","SETUP_PAYOUTS_MODAL.INFO")}},get MONEY_IN(){return(0,i.catalogueText)("invoices","MONEY_IN")},get MONEY_OUT(){return(0,i.catalogueText)("invoices","MONEY_OUT")},get HOLD(){return(0,i.catalogueText)("invoices","HOLD")},DEBIT_CARD_HOLDS_MODAL:{get HEADING(){return(0,i.catalogueText)("invoices","DEBIT_CARD_HOLDS_MODAL.HEADING")},get INFO(){return(0,i.catalogueList)("invoices","DEBIT_CARD_HOLDS_MODAL.INFO")},get ACTION_BUTTON_TITLE(){return(0,i.catalogueText)("invoices","DEBIT_CARD_HOLDS_MODAL.ACTION_BUTTON_TITLE")}},RECENT_ACTIVITY_V2:{get ACTION_BUTTON_TITLE(){return(0,i.catalogueText)("invoices","RECENT_ACTIVITY_V2.ACTION_BUTTON_TITLE")},get INCOMING(){return(0,i.catalogueText)("invoices","RECENT_ACTIVITY_V2.INCOMING")},get OUTGOING(){return(0,i.catalogueText)("invoices","RECENT_ACTIVITY_V2.OUTGOING")}},get NO_DATA_RECENT_ACTIVITY(){return(0,i.catalogueText)("invoices","NO_DATA_RECENT_ACTIVITY")},BALANCE_INFO:{get UYB(){return(0,i.catalogueText)("invoices","BALANCE_INFO.UYB")},get AVBALANCE_INFO_1(){return(0,i.catalogueText)("invoices","BALANCE_INFO.AVBALANCE_INFO_1")},get AVBALANCE_INFO_2(){return(0,i.catalogueText)("invoices","BALANCE_INFO.AVBALANCE_INFO_2")},get RESERVE_BAL_INFO_1(){return(0,i.catalogueText)("invoices","BALANCE_INFO.RESERVE_BAL_INFO_1")},get RESERVE_BAL_INFO_2(){return(0,i.catalogueText)("invoices","BALANCE_INFO.RESERVE_BAL_INFO_2")},get PENDING_BAL_INFO(){return(0,i.catalogueText)("invoices","BALANCE_INFO.PENDING_BAL_INFO")},get OVERALL_BAL_INFO(){return(0,i.catalogueText)("invoices","BALANCE_INFO.OVERALL_BAL_INFO")},get RESERVE_HOLDING_INFO(){return(0,i.catalogueText)("invoices","BALANCE_INFO.RESERVE_HOLDING_INFO")}},AVAILABLE_BALANCE_INFO:{get DESC(){return(0,i.catalogueList)("invoices","AVAILABLE_BALANCE_INFO.DESC")},get ACTION_BUTTON_TITLE(){return(0,i.catalogueText)("invoices","AVAILABLE_BALANCE_INFO.ACTION_BUTTON_TITLE")}},get MANAGE_RESERVES(){return(0,i.catalogueText)("invoices","MANAGE_RESERVES")},get TOTAL_RESERVES(){return(0,i.catalogueText)("invoices","TOTAL_RESERVES")},get ADD_RESERVE(){return(0,i.catalogueText)("invoices","ADD_RESERVE")},get ADD_FUNDS(){return(0,i.catalogueText)("invoices","ADD_FUNDS")},get ALLOCATED_FUND(){return(0,i.catalogueText)("invoices","ALLOCATED_FUND")},get SELECT_PAYMENT_SOURCE(){return(0,i.catalogueText)("invoices","SELECT_PAYMENT_SOURCE")},get TRANSFER_AMOUNT(){return(0,i.catalogueText)("invoices","TRANSFER_AMOUNT")},get SELECT_BALANCES_USED(){return(0,i.catalogueText)("invoices","SELECT_BALANCES_USED")},get TRANSFER_MONEY_FROM_RESERVES(){return(0,i.catalogueText)("invoices","TRANSFER_MONEY_FROM_RESERVES")},get PROCEED(){return(0,i.catalogueText)("invoices","PROCEED")},get SEND_REMINDER(){return(0,i.catalogueText)("invoices","SEND_REMINDER")},get REMINDER_QUESTION(){return(0,i.catalogueText)("invoices","REMINDER_QUESTION")},get DELETE_DRAFT_MODAL_HEADER(){return(0,i.catalogueText)("invoices","DELETE_DRAFT_MODAL_HEADER")},get CANCEL_SCHEDULED_INVOICE_HEADER(){return(0,i.catalogueText)("invoices","CANCEL_SCHEDULED_INVOICE_HEADER")},get CANCEL_ONETIME_SCHEDULED_INVOICE_DESCRIPTION(){return(0,i.catalogueText)("invoices","CANCEL_ONETIME_SCHEDULED_INVOICE_DESCRIPTION")},get CANCEL_RECURRING_SCHEDULED_INVOICE_DESCRIPTION(){return(0,i.catalogueText)("invoices","CANCEL_RECURRING_SCHEDULED_INVOICE_DESCRIPTION")},get SAVE_CHANGES(){return(0,i.catalogueText)("invoices","SAVE_CHANGES")},get DELETE_DRAFT_DESCRIPTION(){return(0,i.catalogueText)("invoices","DELETE_DRAFT_DESCRIPTION")},get INVOICE_BACK_MODAL_HEADER(){return(0,i.catalogueText)("invoices","INVOICE_BACK_MODAL_HEADER")},get MAKE_CHANGES_TO_DRAFT(){return(0,i.catalogueText)("invoices","MAKE_CHANGES_TO_DRAFT")},get DISCARD_CHANGES_MODAL_HEADER(){return(0,i.catalogueText)("invoices","DISCARD_CHANGES_MODAL_HEADER")},get INVOICE_BACK_MODAL_DESCRIPTION(){return(0,i.catalogueText)("invoices","INVOICE_BACK_MODAL_DESCRIPTION")},get SCHEDULE_BACK_MODAL_DESCRIPTION(){return(0,i.catalogueText)("invoices","SCHEDULE_BACK_MODAL_DESCRIPTION")},get SCHEDULE_DISCARD_DESCRIPTION(){return(0,i.catalogueText)("invoices","SCHEDULE_DISCARD_DESCRIPTION")},get SAVE_DRAFT_POPOVER_DESCRIPTION(){return(0,i.catalogueText)("invoices","SAVE_DRAFT_POPOVER_DESCRIPTION")},get SELECT_ADDITIONAL_RECIPIENTS(){return(0,i.catalogueText)("invoices","SELECT_ADDITIONAL_RECIPIENTS")}
1,get CANCEL(){return(0,i.catalogueText)("invoices","CANCEL")},get CANCEL_INVOICE(){return(0,i.catalogueText)("invoices","CANCEL_INVOICE")},get ADDITIONAL_RECIPIENTS(){return(0,i.catalogueText)("invoices","ADDITIONAL_RECIPIENTS")},get INVOICE_PDF_SUCCESS_MESSAGE(){return(0,i.catalogueText)("invoices","INVOICE_PDF_SUCCESS_MESSAGE")},PDF:"PDF",get DOWNLOAD_PDF(){return(0,i.catalogueText)("invoices","DOWNLOAD_PDF")},get PAY_INVOICE(){return(0,i.catalogueText)("invoices","PAY_INVOICE")},LINK:"Link",get REMIND(){return(0,i.catalogueText)("invoices","REMIND")},get INVOICE(){return(0,i.catalogueText)("invoices","INVOICE")},get INVOICE_NUMBER(){return(0,i.catalogueText)("invoices","INVOICE_NUMBER")},get CUSTOMER_DETAILS(){return(0,i.catalogueText)("invoices","CUSTOMER_DETAILS")},get FIRST_NAME(){return(0,i.catalogueText)("invoices","FIRST_NAME")},get LAST_NAME(){return(0,i.catalogueText)("invoices","LAST_NAME")},get CONTACT_FIRST_NAME(){return(0,i.catalogueText)("invoices","CONTACT_FIRST_NAME")},get CONTACT_LAST_NAME(){return(0,i.catalogueText)("invoices","CONTACT_LAST_NAME")},get CUSTOMER_EMAIL(){return(0,i.catalogueText)("invoices","CUSTOMER_EMAIL")},get CUSTOMER_NAME(){return(0,i.catalogueText)("invoices","CUSTOMER_NAME")},get COMPANY_NAME(){return(0,i.catalogueText)("invoices","COMPANY_NAME")},get CUSTOMER_CONTACT(){return(0,i.catalogueText)("invoices","CUSTOMER_CONTACT")},get OPTIONAL(){return(0,i.catalogueText)("invoices","OPTIONAL")},get INVOICE_DETAILS(){return(0,i.catalogueText)("invoices","INVOICE_DETAILS")},get SERIES_DETAILS(){return(0,i.catalogueText)("invoices","SERIES_DETAILS")},get PAYMENT_TERMS(){return(0,i.catalogueText)("invoices","PAYMENT_TERMS")},get DESCRIPTION(){return(0,i.catalogueText)("invoices","DESCRIPTION")},get SEND_ME_A_COPY(){return(0,i.catalogueText)("invoices","SEND_ME_A_COPY")},get INVOICE_COPY_EMAIL(){return(0,i.catalogueText)("invoices","INVOICE_COPY_EMAIL")},get ADD_OTHER_RECIPIENTS(){return(0,i.catalogueText)("invoices","ADD_OTHER_RECIPIENTS")},get RECIPIENT_EMAILS(){return(0,i.catalogueText)("invoices","RECIPIENT_EMAILS")},get ADD_UP_TO_4_RECIPIENT_EMAILS(){return(0,i.catalogueText)("invoices","ADD_UP_TO_4_RECIPIENT_EMAILS")},get LINE_ITEMS(){return(0,i.catalogueText)("invoices","LINE_ITEMS")},get ITEM(){return(0,i.catalogueText)("invoices","ITEM")},get ITEM_NAME(){return(0,i.catalogueText)("invoices","ITEM_NAME")},get PRICE(){return(0,i.catalogueText)("invoices","PRICE")},get AMOUNT(){return(0,i.catalogueText)("invoices","AMOUNT")},get QUANTITY(){return(0,i.catalogueText)("invoices","QUANTITY")},get TOTAL(){return(0,i.catalogueText)("invoices","TOTAL")},get INVOICE_TOTAL(){return(0,i.catalogueText)("invoices","INVOICE_TOTAL")},get ACCEPTED_PAYMENT_OPTIONS(){return(0,i.catalogueText)("invoices","ACCEPTED_PAYMENT_OPTIONS")},get BANK_TRANSFER_ACH(){return(0,i.catalogueText)("invoices","BANK_TRANSFER_ACH")},get ACCOUNT_NUMBER(){return(0,i.catalogueText)("invoices","ACCOUNT_NUMBER")},get ACCOUNT(){return(0,i.catalogueText)("invoices","ACCOUNT")},get ROUTING(){return(0,i.catalogueText)("invoices","ROUTING")},get ROUTING_NUMBER(){return(0,i.catalogueText)("invoices","ROUTING_NUMBER")},get ACCOUNT_TYPE(){return(0,i.catalogueText)("invoices","ACCOUNT_TYPE")},get CREATE_INVOICE(){return(0,i.catalogueText)("invoices","CREATE_INVOICE")},get NEW_INVOICE(){return(0,i.catalogueText)("invoices","NEW_INVOICE")},get EDIT_INVOICE(){return(0,i.catalogueText)("invoices","EDIT_INVOICE")},get SEND_INVOICE(){return(0,i.catalogueText)("invoices","SEND_INVOICE")},get INVOICE_LIST(){return(0,i.catalogueText)("invoices","INVOICE_LIST")},get SAVE_DRAFT(){return(0,i.catalogueText)("invoices","SAVE_DRAFT")},get REVIEW(){return(0,i.catalogueText)("invoices","REVIEW")},get PREVIEW(){return(0,i.catalogueText)("invoices","PREVIEW")},get SAVE_AS_DRAFT(){return(0,i.catalogueText)("invoices","SAVE_AS_DRAFT")},get SAVE_CHANGES_BUTTON(){return(0,i.catalogueText)("invoices","SAVE_CHANGES_BUTTON")},get OTHER_RECIPIENTS(){return(0,i.catalogueText)("invoices","OTHER_RECIPIENTS")},get DUE_DATE(){return(0,i.catalogueText)("invoices","DUE_DATE")},get BACK(){return(0,i.catalogueText)("invoices","BACK")},get CUSTOMER(){return(0,i.catalogueText)("invoices","CUSTOMER")},get NAME(){return(0,i.catalogueText)("invoices","NAME")},get EMAIL(){return(0,i.catalogueText)("invoices","EMAIL")},get PHONE_NUMBER(){return(0,i.catalogueText)("invoices","PHONE_NUMBER")},get BILLING_ADDRESS(){return(0,i.catalogueText)("invoices","BILLING_ADDRESS")}
1,CITY:"City",STATE:"State",get ZIP(){return(0,i.catalogueText)("invoices","ZIP")},get ZIP_CODE(){return(0,i.catalogueText)("invoices","ZIP_CODE")},get SETTINGS(){return(0,i.catalogueText)("invoices","SETTINGS")},get BUSINESS_INFO(){return(0,i.catalogueText)("invoices","BUSINESS_INFO")},get BUSINESS_INFORMATION(){return(0,i.catalogueText)("invoices","BUSINESS_INFORMATION")},get BUSINESS_INFORMATION_CAPS(){return(0,i.catalogueText)("invoices","BUSINESS_INFORMATION_CAPS")},get INVOICE_CUSTOMIZATION(){return(0,i.catalogueText)("invoices","INVOICE_CUSTOMIZATION")},get INVOICE_CUSTOMIZATION_CAPS(){return(0,i.catalogueText)("invoices","INVOICE_CUSTOMIZATION_CAPS")},get MANAGE_CUSTOMERS(){return(0,i.catalogueText)("invoices","MANAGE_CUSTOMERS")},get PAYMENT_METHODS(){return(0,i.catalogueText)("invoices","PAYMENT_METHODS")},get INVOICE_STYLE(){return(0,i.catalogueText)("invoices","INVOICE_STYLE")},get ITEM_LIBRARY(){return(0,i.catalogueText)("invoices","ITEM_LIBRARY")},get MANAGE_PAYMENTS(){return(0,i.catalogueText)("invoices","MANAGE_PAYMENTS")},get ADD_NEW_CUSTOMER(){return(0,i.catalogueText)("invoices","ADD_NEW_CUSTOMER")},LIST_ACTIONS:{EDIT:"EDIT",DELETE:"DELETE",INFO:"INFO",QUESTION:"QUESTION",ROLE:"ROLE",CANCEL_REMOVE_REQUEST:"CANCEL_REMOVE_REQUEST",STATUS:"STATUS"},get CONTACT(){return(0,i.catalogueText)("invoices","CONTACT")},get DELETE_INVOICE_CUSTOMER_CONFIRM_MSG(){return(0,i.catalogueText)("invoices","DELETE_INVOICE_CUSTOMER_CONFIRM_MSG")},get ARE_U_SURE_DELETE(){return(0,i.catalogueText)("invoices","ARE_U_SURE_DELETE")},get DELETE(){return(0,i.catalogueText)("invoices","DELETE")},get DISCARD(){return(0,i.catalogueText)("invoices","DISCARD")},get DISMISS(){return(0,i.catalogueText)("invoices","DISMISS")},get SEND(){return(0,i.catalogueText)("invoices","SEND")},get SCHEDULE(){return(0,i.catalogueText)("invoices","SCHEDULE")},get START_GETTING_PAID(){return(0,i.catalogueText)("invoices","START_GETTING_PAID")},get GET_STARTED(){return(0,i.catalogueText)("invoices","GET_STARTED")},get BILLING_INFORMATION(){return(0,i.catalogueText)("invoices","BILLING_INFORMATION")},get FOR_CHECK_PAYMENTS(){return(0,i.catalogueText)("invoices","FOR_CHECK_PAYMENTS")},get STREET_ADDRESS(){return(0,i.catalogueText)("invoices","STREET_ADDRESS")},get ADDRESS_LINE_1(){return(0,i.catalogueText)("invoices","ADDRESS_LINE_1")},get ADDRESS_LINE_2(){return(0,i.catalogueText)("invoices","ADDRESS_LINE_2")},get CONTACT_INFORMATION(){return(0,i.catalogueText)("invoices","CONTACT_INFORMATION")},CUSTOMIZATION:{get PERSONALIZATION_DESCRIPTION(){return(0,i.catalogueText)("invoices","CUSTOMIZATION.PERSONALIZATION_DESCRIPTION")},get BUSINESS_NAME(){return(0,i.catalogueText)("invoices","CUSTOMIZATION.BUSINESS_NAME")},get CONTACT_INFO_DESCRIPTION(){return(0,i.catalogueText)("invoices","CUSTOMIZATION.CONTACT_INFO_DESCRIPTION")},get BUSINESS_INFO_DESCRIPTION(){return(0,i.catalogueText)("invoices","CUSTOMIZATION.BUSINESS_INFO_DESCRIPTION")},get EMAIL_DESCRIPTION(){return(0,i.catalogueText)("invoices","CUSTOMIZATION.EMAIL_DESCRIPTION")},get REQUIRED(){return(0,i.catalogueText)("invoices","CUSTOMIZATION.REQUIRED")}},DBA:"DBA",get BUSINESS_NAME(){return(0,i.catalogueText)("invoices","BUSINESS_NAME")},get SAVE_AND_CONTINUE(){return(0,i.catalogueText)("invoices","SAVE_AND_CONTINUE")},get CONTINUE(){return(0,i.catalogueText)("invoices","CONTINUE")},get DELETE_CUSTOMER(){return(0,i.catalogueText)("invoices","DELETE_CUSTOMER")},get FINISH(){return(0,i.catalogueText)("invoices","FINISH")},get SAVE(){return(0,i.catalogueText)("invoices","SAVE")},get SKIP(){return(0,i.catalogueText)("invoices","SKIP")},get SAVE_PAYMENT_OPTIONS(){return(0,i.catalogueText)("invoices","SAVE_PAYMENT_OPTIONS")},get SAVE_PAYMENT_OPTIONS_NOTE(){return(0,i.catalogueText)("invoices","SAVE_PAYMENT_OPTIONS_NOTE")}
1,get INVOICE_PAYMENT_FOOTER_TEXT(){return(0,i.catalogueText)("invoices","INVOICE_PAYMENT_FOOTER_TEXT")},get INVOICE_PAYMENT_FOOTER_BUTTON(){return(0,i.catalogueText)("invoices","INVOICE_PAYMENT_FOOTER_BUTTON")},get NOTE(){return(0,i.catalogueText)("invoices","NOTE")},get NOTE_PLACEHOLDER(){return(0,i.catalogueText)("invoices","NOTE_PLACEHOLDER")},get FILE_UPLOAD_DESCRIPTION(){return(0,i.catalogueText)("invoices","FILE_UPLOAD_DESCRIPTION")},get OTHER_DETAILS(){return(0,i.catalogueText)("invoices","OTHER_DETAILS")},get ADDITIONAL_OPTIONS(){return(0,i.catalogueText)("invoices","ADDITIONAL_OPTIONS")},get MORE_OPTIONS(){return(0,i.catalogueText)("invoices","MORE_OPTIONS")},MODAL_POSITIONS:{TUTORIAL:"tutorial"},NOVO_DOMAIN:"www.novo.co",NUMBER_PLACEHOLDER:"100.00",ZERO_AMOUNT_PLACEHOLDER:"0",get CURRENCY_PLACEHOLDER_LIMIT_CHANGE(){return(0,i.catalogueText)("invoices","CURRENCY_PLACEHOLDER_LIMIT_CHANGE")},AMOUNT_PLACEHOLDER:"0.00",PAYLATER_INFO_LINK:"https://developer.paypal.com/docs/commerce-platforms/admin-panel/",get EDIT_SERIES(){return(0,i.catalogueText)("invoices","EDIT_SERIES")},REFER_A_FRIEND:{get TITLE(){return(0,i.catalogueText)("invoices","REFER_A_FRIEND.TITLE")},get SUBTITLE(){return(0,i.catalogueText)("invoices","REFER_A_FRIEND.SUBTITLE")},get SEE_TERMS(){return(0,i.catalogueText)("invoices","REFER_A_FRIEND.SEE_TERMS")},get INSTRUCTIONS_TO_SHARE(){return(0,i.catalogueText)("invoices","REFER_A_FRIEND.INSTRUCTIONS_TO_SHARE")},get EMAIL_INPUT(){return(0,i.catalogueText)("invoices","REFER_A_FRIEND.EMAIL_INPUT")},get INVITE_REQUEST_SENT(){return(0,i.catalogueText)("invoices","REFER_A_FRIEND.INVITE_REQUEST_SENT")}},Environments:{dev:"dev",development:"development",production:"production",local:"local"},SegmentTracker:{AccountView:{Cooldown:5e3}},ScreenSize:{MOBILE:"MOBILE",TABLET:"TABLET",DESKTOP:"DESKTOP"},EA_LENDING_STATUS:{PENDING:"PENDING",AUTHORIZED:"AUTHORIZED",ERROR:"ERROR",ACTIVE:"ACTIVE",INACTIVE:"INACTIVE",BLOCKED:"BLOCKED",DELETED:"DELETED",DUPLICATE:"DUPLICATE"},PAYEE_TYPE:{INDIVIDUAL:"INDIVIDUAL",BUSINESS:"BUSINESS"},ADD_PAYEE_TYPE:{SEND_INVITE:"SEND_INVITE",ADD_MANUALLY:"ADD_MANUALLY"},PAYEE_ACCOUNT_TYPE:{CHECKING:"Checking",SAVINGS:"Savings"}
1,MANUAL_PAYMENT_STATUS:{PENDING:"PENDING",REJECTED:"REJECTED",ACCEPTED:"ACCEPTED",NOT_APPLICABLE:"NOT_APPLICABLE"},CARDS:{WONT_USE_FISERVE_CARD:"WONT_USE_FISERVE_CARD"},LENDING_INVITE_TYPES:{DDA_AGE_BELOW_6_MONTHS:"DDA_AGE_BELOW_6_MONTHS",DDA_AGE_ABOVE_6_MONTHS:"DDA_AGE_ABOVE_6_MONTHS"},InvitationFlowTypes:{DEFAULT:"DEFAULT",NET_NEW_DDA:"NET_NEW_DDA"},ADDITIONAL_USER_ROLE_TYPE:{OWNER:"Owner"},ADDITIONAL_USER_STATUS_MAPPPING:{PENDING:"Pending",get SUBMITTED(){return(0,i.catalogueText)("invoices","ADDITIONAL_USER_STATUS_MAPPPING.SUBMITTED")},get INCOMPLETE(){return(0,i.catalogueText)("invoices","ADDITIONAL_USER_STATUS_MAPPPING.INCOMPLETE")},get READY_TO_ADD(){return(0,i.catalogueText)("invoices","ADDITIONAL_USER_STATUS_MAPPPING.READY_TO_ADD")}},LendingIntegrationsConnectStatus:{NOT_INTEGRATED:"NOT_INTEGRATED",INTEGRATED:"INTEGRATED",FUNDING_CONNECTED:"FUNDING_CONNECTED"}},V={PAID:"text-typography-success bg-fill-success-light",CANCELLED:"text-typography-grey bg-fill-neutral",OVERDUE:"text-typography-error bg-fill-critical-light",SENT:"bg-fill-neutral",UNPAID:"bg-fill-neutral",PAYMENT_IN_PROCESS:"bg-fill-neutral",DRAFT:"bg-fill-neutral",DRAFT_DISCARDED:"bg-fill-neutral",SCHEDULED_CANCELLED:"bg-fill-neutral",SCHEDULED:"text-typography-info bg-blue-100",PARTIALLY_PAID:"bg-fill-neutral text-typography-grey"},B={PAID:"text-typography-success",CANCELLED:"text-typography-grey "},Y=e=>{switch(e){case k.Hi.INITIATED:case k.Hi.PROCESSING:case k.Hi.IN_TRANSIT:case k.Hi.CANCELED:case k.Hi.DELETED:case k.Hi.PENDING:case k.Hi.DECLINED:return"neutral";case k.Hi.DISPUTED:case k.Hi.REFUNDED:return"warning";case k.Hi.COMPLETED:return"success";case k.Hi.FAILED:return"critical";default:return"neutral"}},G=50,H=4,W={components:{verify_account_info:({sectionId:e,data:n,isCompleted:a,updateCompleteState:i,isLoading:s,underReview:c})=>{var m,u;const[p,E]=(0,t.useState)(a),{APPLICATION:I}=o.k.PAYMENTS,{UpdateVendorOnboardingStatus:y,isUpdateVendorOnboardingStatusPending:S}=(0,T.i)(),x=(0,t.useMemo)((()=>{var e,a,i,t;return[{title:I.COMMON.FULL_LEGAL_NAME,value:null==n?void 0:n.name,showInReview:null==n||null==(e=n.showInReviewLabel)?void 0:e.legalFullName},{title:I.COMMON.DATE_OF_BIRTH,value:r()(null==n?void 0:n.dob).format(l.DATE_FORMAT),showInReview:null==n||null==(a=n.showInReviewLabel)?void 0:a.dob},{title:I.ACCOUNT_INFO.SSN,value:null==n?void 0:n.ssn,showInReview:null==n||null==(i=n.showInReviewLabel)?void 0:i.ssn},{title:I.ACCOUNT_INFO.HOME_ADDRESS,value:null==n?void 0:n.address,showInReview:null==n||null==(t=n.showInReviewLabel)?void 0:t.homeAddress}]}),[n]),h=(0,t.useMemo)((()=>{var e,a,i;return[{title:I.ACCOUNT_INFO.BUSINESS_NAME,value:null==n?void 0:n.businessName,showInReview:null==n||null==(e=n.showInReviewLabel)?void 0:e.businessName},{title:I.ACCOUNT_INFO.DBA,value:null==n?void 0:n.dba,showInReview:null==n||null==(a=n.showInReviewLabel)?void 0:a.dba},{title:I.ACCOUNT_INFO.BUSINESS_ADDRESS,value:null==n?void 0:n.businessAddress,showInReview:null==n||null==(i=n.showInReviewLabel)?void 0:i.businessAddress}]}),[n]),C=(0,t.useMemo)((()=>{var e,a,i,t;return[{title:I.ACCOUNT_INFO.BUSINESS_TYPE,value:null!=(e=null==(a=(0,f.Gh)(null==n?void 0:n.businessType))?void 0:a.label)?e:"-"},{title:I.ACCOUNT_INFO.WEBSITE,value:null!=(i=null==n?void 0:n.website)?i:"-",showInReview:null==n||null==(t=n.showInReviewLabel)?void 0:t.website}]}),[n]);return(0,_.jsx)(d.Skeleton,{on:s,fallback:(0,_.jsx)(g,{}),children:(0,_.jsxs)("div",{className:"w-full",children:[(0,_.jsxs)("div",{className:"my-4 flex w-full grid-cols-3 flex-col gap-3 break-all pb-8 lg:grid lg:gap-6",children:[(0,_.jsx)(b,{heading:I.ACCOUNT_INFO.HEADINGS.PERSONAL_INFORMATION,rows:x}),(0,_.jsx)(b,{heading:I.ACCOUNT_INFO.HEADINGS.BUSINESS_INFORMATION,rows:h}),(0,_.jsxs)("div",{className:"flex flex-col gap-y-4 lg:mt-11",children:[(0,_.jsx)(R,{title:I.ACCOUNT_INFO.EIN,ein:null==n?void 0:n.ein,maskedEin:null==n?void 0:n.maskedEin,showInReview:null!=(m=null==n||null==(u=n.showInReviewLabel)?void 0:u.ein)&&m}),(0,_.jsx)(b,{rows:C})]})]}),(0,_.jsx)("div",{className:"w-full",children:p?(0,_.jsx)(N,{type:"accountInfo"}):(0,_.jsx)(v,{onConfirm:()=>{y({status:k.JG.ACCOUNT_INFO_VERIFIED})},underReview:c,isLoading:S})}),(0,_.jsx)(A,{type:"info"})]})})},verify_owners_info:({sectionId:e,data:n,isCompleted:a,updateCompleteState:i,isLoading:s,underReview:c})=>{var m;const[u,p]=(0,t.useState)(a),{UpdateVendorOnboardingStatus:E,isUpdateVendorOnboardingStatusPending:g}=(0,T.i)(),I=null!=(m=null==n?void 0:n.length)?m:0,{APPLICATION:y}=o.k.PAYMENTS;return(0,_.jsx)(d.Skeleton,{on:s,fallback:(0,_.jsx)(F,{}),children:(0,_.jsxs)("div",{className:"w-full",children:[(0,_.jsx)("div",{className:`my-4 grid w-full grid-cols-1 gap-3 pb-8 sm:grid-cols-2 md:grid-cols-3 md:gap-6 xl:gap-8 ${I>3&&"md:grid-cols-4"}`,children:null==n?void 0:n.map(((e,n)=>{var a;return(0,_.jsxs)("div",{className:"border-border-light flex flex-col gap-y-4 break-all rounded-lg border border-solid p-4",children:[(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-typography-grey text-body-regular",children:y.COMMON.FULL_LEGAL_NAME}),(0,_.jsx)("span",{className:"text-body-regular",children:e.name})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-typography-grey text-body-regular",children:y.COMMON.DATE_OF_BIRTH}),(0,_.jsx)("span",{className:"text-body-regular",children:null!=(a=r()(e.dob).format(l.DATE_FORMAT))?a:""})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-typography-grey text-body-regular",children:y.OWNERS_INFO.EMAIL}),(0,_.jsx)("span",{className:"text-body-regular",children:e.email})]}),(0,_.jsxs)("div",{className:"flex flex-col",children:[(0,_.jsx)("span",{className:"text-typography-grey text-body-regular",children:y.OWNERS_INFO.OWNERSHIP_PERCENTAGE}),(0,_.jsxs)("span",{className:"text-body-regular",children:[e.ownershipPercentage,"%"]})]})]},n+e.name)}))}),(0,_.jsx)("div",{className:"w-full",children:u?(0,_.jsx)(N,{type:"businessOwnership"}):(0,_.jsx)(v,{onConfirm:()=>{E({status:k.JG.BUSINESS_OWNERSHIP_VERIFIED})},underReview:c,isLoading:g,type:"businessOwnership"})}),(0,_.jsx)(A,{type:"ownership"})]})})},review_terms:({updateTermsAccepted:e,data:n,isLoading:a})=>{const[i,s]=(0,t.useState)(!1),[r,l]=(0,t.useState)(!1),{APPLICATION:c}=o.k.PAYMENTS,{REVIEW_TERMS_CHECKBOX_ACKNOWLEDGE:v,REVIEW_TERMS_CHECKBOX_CERTIFY:N}=u.y.STRIPE_ONBOARDING;(0,t.useEffect)((()=>{e(i&&r)}),[i,r]);const p=e=>{var a;let i=e;null==n||null==(a=n.cta)||a.forEach((e=>{var n;
1null!=(n=i)&&n.includes(e.key)&&(i=i.replace(e.key,`<a\n id="${e.key}"\n href="${e.link}"\n target="_blank"\n className="text-body-regular whitespace-normal cursor-pointer !text-typography-interactive-resting !hover:text-typography-interactive-hover"\n >\n ${e.text}\n </a>`))}));const t=P.A.sanitize(i.replace(/\s+</g,"<")||"",{ADD_ATTR:["target"]});return(0,_.jsx)("span",{dangerouslySetInnerHTML:{__html:t.trim()}})};return(0,_.jsx)(d.Skeleton,{on:a,fallback:(0,_.jsx)(j,{}),count:1,children:(0,_.jsxs)("div",{className:"mt-4",children:[(0,_.jsx)("div",{className:"mb-2",children:c.REVIEW_TERMS.DISCLAIMER}),null==n?void 0:n.terms.map(((e,n)=>{const a=0===n?"acknowledged":"certified";return(0,_.jsx)("div",{className:"mb-2",children:(0,_.jsx)(d.Checkbox,{onClick:()=>(e=>{switch(e){case"acknowledged":(0,m.sx)(v),s(!i);break;case"certified":(0,m.sx)(N),l(!r)}})(a),checkboxStyle:"w-6 h-6",label:(0,_.jsx)("div",{className:"text-body-regular text-typography-default",children:0===n?p(e):e}),checked:0===n?i:1===n&&r,name:a})},n+e.substring(0,5))}))]})})},add_business_description:({data:e,setActiveStep:n})=>{var a,i,t;const s=(0,M.mN)({mode:"onChange",reValidateMode:"onChange",resolver:(0,U.z5)(U.cH),defaultValues:{businessDescription:e.businessDescription}}),{control:r,handleSubmit:l,watch:c,formState:v}=s,{errors:N}=v,{UpdateVendorOnboardingStatus:p,isUpdateVendorOnboardingStatusPending:E}=(0,T.i)(),{BUSINESS_DESCRIPTION:g}=o.k.PAYMENTS.APPLICATION,{BUSINESS_DESC_NEXT:I,ENTER_BUSINESS_DESC:y}=u.y.STRIPE_ONBOARDING,S=null!=(a=null!=(i=c("businessDescription").trim())?i:e.businessDescription.trim())?a:"";return(0,_.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,_.jsx)("div",{className:"text-typography-grey max-w-xl",children:g.DESCRIPTION}),(0,_.jsx)(M.Op,Object.assign({},s,{children:(0,_.jsxs)("form",{onSubmit:l((async()=>{(0,m.sx)(I),await p({status:k.JG.BUSINESS_DESCRIPTION_SUBMITTED,description:S})})),children:[(0,_.jsx)(M.xI,{name:"businessDescription",control:r,render:({field:{value:e,onChange:n}})=>{var a,i,t;return(0,_.jsx)("div",{children:(0,_.jsx)(d.Textarea,{label:g.TITLE,name:"businessDescription",onChange:n,value:e,maxLength:1e3,showError:!0,rows:4,placeholder:g.PLACEHOLDER,error:null==N||null==(a=N.businessDescription)?void 0:a.message,inputAdditionalInfo:(0,_.jsx)(_.Fragment,{children:g.LENGTH_INFO.replace("length",`${null!=(i=null==e||null==(t=e.trim())?void 0:t.length)?i:0}`)}),onFocus:()=>{(0,m.sx)(y)}})})}}),(0,_.jsx)(d.Button,{"data-test-id":"submit-business-description",className:"mt-4 w-56",disabled:!(null==N||null==(t=N.businessDescription)||!t.message)||S.length<50||E,type:"submit",children:g.CTA})]})}))]})}}},K=[{value:k.TG.STRIPE_INTEGRATION,get label(){return o.k.stripe_integration}},{value:k.TG.PAYPAL_INTEGRATION,get label(){return o.k.paypal_integration}},{value:k.TG.SQUARE_INTEGRATION,get label(){return o.k.square_integration}}],q=[{value:k.TG.CASH,get label(){return o.k.cash}},{get label(){return o.k.bank_transfer},value:k.TG.BANK_TRANSFER},{value:k.TG.CARD,get label(){return o.k.card}},{value:k.TG.CHECK,get label(){return o.k.check}},{value:k.TG.OTHER,get label(){return o.k.other}}],$=[{value:k.ds.ALL_TIME,get label(){return o.k.all_time}},{value:k.ds.SEVEN_DAYS,get label(){return o.k.n7_days}},{value:k.ds.THIRTY_DAYS,get label(){return o.k.n30_days}},{value:k.ds.SIX_MONTHS,get label(){return o.k.n6_months}},{value:k.ds.ONE_YEAR,get label(){return o.k.n1_year}},{value:k.ds.MONTH_TO_DATE,get label(){return o.k.month_to_date}},{value:k.ds.QUARTER_TO_DATE,get label(){return o.k.quarter_to_date}},{value:k.ds.YEAR_TO_DATE,get label(){return o.k.year_to_date}},{value:k.ds.CUSTOM,get label(){return o.k.custom}}],z=[k.F1.STRIPE_THIRD_PARTY,k.F1.PAYPAL_THIRD_PARTY,k.F1.SQUARE_THIRD_PARTY],Q=[k.F1.MANUA
1L,...z],X=["SENT","OVERDUE","PARTIALLY_PAID"]},76075(e,n,a){"use strict";a.d(n,{Fc:()=>u,NW:()=>c,SG:()=>_,TE:()=>m,cH:()=>N,gF:()=>p,ml:()=>d,tj:()=>v,wu:()=>o,z5:()=>r});var i=a(10524),t=a(21215),s=a(35397);const r=a(16354).t,d=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,l=/^(.*)@(.*)\.web$/,o=/^[a-zA-Z0-9!@#$&*,"'. ]*$/,c=i.Ik().shape({phone:i.Yj().trim().notRequired().nullable().test("min-10-digits",(()=>t.errorMessages.INVALID_PHONE_NUMBER),(function(e){return!(e&&e.length<10)})),email:i.Yj().trim().nullable().required((()=>t.errorMessages.REQUIRED_FIELD)).matches(new RegExp(d),(()=>t.errorMessages.INVALID_EMAIL_ADDRESS)),address:i.Yj().nullable().trim().required((()=>t.errorMessages.REQUIRED_FIELD)).max(40,(()=>t.errorMessages.ADDRESS_LENGTH_LESS_THAN_40)),addressLine2:i.Yj().nullable().trim().notRequired().max(40,(()=>t.errorMessages.ADDRESS_LENGTH_LESS_THAN_80)),city:i.Yj().required((()=>t.errorMessages.REQUIRED_FIELD)).nullable(),state:i.Yj().required((()=>t.errorMessages.REQUIRED_FIELD)).nullable(),zipCode:i.Yj().required((()=>t.errorMessages.REQUIRED_FIELD)).length(5,(()=>t.errorMessages.INVALID_ZIP_CODE)).nullable()}),m=i.Ik().shape({companyName:i.Yj().trim().required((()=>t.errorMessages.REQUIRED_FIELD)).max(50),clientName:i.Yj().nullable().trim().max(50).notRequired(),addressLine1:i.Yj().nullable().trim().max(80,(()=>t.errorMessages.ADDRESS_LENGTH_LESS_THAN_80)).notRequired(),addressLine2:i.Yj().nullable().trim().max(80,(()=>t.errorMessages.ADDRESS_LENGTH_LESS_THAN_80)).notRequired(),phone:i.Yj().trim().notRequired().nullable().test((function(e){const{phone:n}=this.parent;return!(n&&(null!=e?e:"").length<10)||(this.createError({message:t.errorMessages.INVALID_PHONE_NUMBER,path:"phone"}),!1)})),email:i.Yj().trim().required((()=>t.errorMessages.REQUIRED_FIELD)).matches(new RegExp(d),(()=>t.errorMessages.INVALID_EMAIL)).test("invalid-domain",(()=>t.errorMessages.INVALID_EMAIL_DOMAIN),(e=>e&&!l.test(e))),city:i.Yj().nullable().trim(),state:i.Yj().nullable().trim(),zip:i.Yj().nullable().trim().notRequired()}),u=i.Ik().shape({items:i.YO().of(i.Ik().shape({name:i.Yj().trim().required((()=>t.errorMessages.REQUIRED_FIELD)).max(50),cost:i.Yj().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD)).test("not-nan",(()=>t.errorMessages.REQUIRED_FIELD),(e=>"NaN"!==e)),quantity:i.Yj().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))})),dueBy:i.Yj().required((()=>t.errorMessages.REQUIRED_FIELD)).nullable(),onSpecificDate:i.Ik().nullable().when("dueBy",{is:"onSpecificDate",then:e=>e.nullable().typeError((()=>t.errorMessages.DATE_VALIDATION_MESSAGE)).required((()=>t.errorMessages.DATE_VALIDATION_MESSAGE))}),scheduledStatus:i.Yj().required((()=>t.errorMessages.REQUIRED_FIELD)).nullable(),scheduledDate:i.Ik().nullable().when("scheduledStatus",{is:"scheduledDate",then:e=>e.nullable().typeError((()=>t.errorMessages.DATE_VALIDATION_MESSAGE)).required((()=>t.errorMessages.DATE_VALIDATION_MESSAGE))}),repeatType:i.Yj().when("invoiceType",{is:"RECURRING",then:e=>e.nullable().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),frequency:i.Yj().when("invoiceType",{is:"RECURRING",then:e=>e.nullable().typeError((()=>s.k.VALIDATION.required)).required((()=>s.k.VALIDATION.required))}),endType:i.Yj().when("invoiceType",{is:"RECURRING",then:e=>e.nullable().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),endDate:i.Ik().nullable().when("endType",{is:"ONDATE",then:e=>e.nullable().typeError((()=>t.errorMessages.DATE_VALIDATION_MESSAGE)).required((()=>t.errorMessages.DATE_VALIDATION_MESSAGE))}),endValue:i.Yj().nullable().when("endType",{is:e=>["AFTER"].includes(e),then:e=>e.nullable().test("min-2",(()=>s.k.VALIDATION.min_occurrences),(e=>!(e&&parseInt(e)<2))).typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),hasPremiumPaymentOptions:i.zM().default(!1),selectedPaymentOptions:i.YO().when("hasPremiumPaymentOptions",{is:!1,then:e=>e.when(["ACH","CREDIT_DEBIT_CARD","PAYPAL_PAYMENTS","CHECK_DEPOSIT"],{is:(e,n,a,i)=>!(e||n||a||i),then:e=>e.required((()=>t.errorMessages.REQUIRED_FIELD))}),otherwise:e=>e}),selectedPaymentOptionsPremium:i.Ik().when("hasPremiumPaymentOptions",{is:!0,then:e=>e.test("has-premium-option",(()=>s.k.VALIDATION.payment_option_required),(function(e){return e&&Object.values(e).some((e=>!0===e))})),otherwise:e=>e}),note:i.Yj().trim().max(250).nullable(),invoiceNumber:i.Yj().trim().required((()=>t.errorMessages.REQUIRED_FIELD)).min(4,(()=>t.errorMessages.INVOICE_NUMBER_INVALID_LENGTH)),customerId:i.Yj().trim().required((()=>t.errorMessages.REQUIRED_FIELD))}),_=e=>i.Ik().shape({items:i.YO().of(i.Ik().shape({name:i.Yj().trim().required((()=>t.errorMessages.REQUIRED_FIELD)).max(50),cost:i.Yj().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD)),quantity:i.Yj().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))})),dueBy:i.Yj().required((()=>t.errorMessages.REQUIRED_FIELD)).nullable(),repeatType:i.Yj().when("invoiceType",{is:"RECURRING",then:e=>e.nullable().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),frequency:i.Yj().when("invoiceType",{is:"RECURRING",then:e=>e.nullable().typeError((()=>s.k.VALIDATION.required)).required((()=>s.k.VALIDATION.required))}),endType:i.Yj().when("invoiceType",{is:"RECURRING",then:e=>e.nullable().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),endDate:i.Ik().nullable().when("endType",{is:"ONDATE",then:e=>e.nullable().typeError((()=>t.errorMessages.DATE_VALIDATION_MESSAGE)).required((()=>t.errorMessages.DATE_VALIDATION_MESSAGE))}),endValue:i.Yj().nullable().when("endType",{is:e=>"AFTER"===e,then:n=>n.nullable().test("edit-end-value-min-2",(()=>s.k.VALIDATION.min_occurrences),(n=>!(0===e&&n&&parseInt(n)<2))).test("edit-end-value-greater-than-generated",(()=>s.k.VALIDATION.must_exceed_sent(e)),(n=>!(e>0&&n&&parseInt(n)<=e))).typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),hasPremiumPaymentOptions:i.zM().default(!1),selectedPaymentOptions:i.YO().when("hasPremiumPaymentOptions",{is:!1,then:e=>e.when(["ACH","CREDIT_DEBIT_CARD","PAYPAL_PAYMENTS","CHECK_DEPOSIT"],{is:(e,n,a,i)=>!(e||n||a||i),then:e=>e.required((()=>t.errorMessages.REQUIRED_FIELD))}),otherwise:e=>e}),selectedPaymentOptionsPremium:i.Ik().when("hasPremiumPaymentOptions",{is:!0,then:e=>e.test("has-premium-option",(()=>s.k.VALIDATION.payment_option_required),(function(e){return e&&Object.values(e).some((e=>!0===e))})),otherwise:e=>e}),note:i.Yj().trim().max(250).nullable()}),v=i.Ik().shape({itemName:i.Yj().trim().required((()=>t.errorMessages.REQUIRED_FIELD)).max(50),itemDefaultCost:i.ai().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),N=i.Ik().shape({businessDescription:i.Yj().trim().required((()=>t.errorMessages.REQUIRED_FIELD))}),p=e=>i.Ik().shape({amount:i.ai().typeError((()=>s.k.VALIDATION.amount_must_exceed_zero)).required((()=>t.errorMessages.REQUIRED_FIELD)).max(e,(()=>t.errorMessages.MAX_PAYMENT))})},76805(e,n,a){"use strict";a.d(n,{A:()=>t,B:()=>i});const i={CHECK_INVOICES_LENGTH:"CHECK_INVOICES_LENGTH",CHECK_TRANSACTIONS_AVAILABLE:"CHECK_TRANSACTIONS_AVAILABLE",GET_IN_APP_MARKETING_TYPE:"GET_IN_APP_MARKETING_TYPE",GET_IN_APP_MARKETING_CONFIG:"GET_IN_APP_MARKETING_CONFIG",GET_INVOICE_CUSTOMERS:"GET_INVOICE_CUSTOMERS",GET_RECENT_INVOICE_CUSTOMERS:"GET_RECENT_INVOICE_CUSTOMERS",GET_INVOICE_CUSTOMIZATION_INFO:"GET_INVOICE_CUSTOMIZATION_INFO",GET_INVOICE_ONBOARDING_INFO:"GET_INVOICE_ONBOARDING_INFO",GET_NEXT_INVOICE_NUMBER:"GET_NEXT_INVOICE_NUMBER",GET_RECURRING_INVOICE_HISTORY:"GET_RECURRING_INVOICE_HISTORY",GET_SAVED_ITEMS:"GET_SAVED_ITEMS",FETCH_INVOICE_ATTACHMENTS:"FETCH_INVOICE_ATTACHMENTS",FETCH_INVOICES_BY_TRANSACTION_ID:"FETCH_INVOICES_BY_TRANSACTION_ID",INVOICE_SEARCH_ITEMS:"INVOICE_SEARCH_ITEMS",GET_INVOICE_SIGNED_URL:"GET_INVOICE_SIGNED_URL",GET_INVOICES_LIST:"GET_INVOICES_LIST",UPDATE_INVOICE_STATUS:"UPDATE_INVOICE_STATUS",GET_MAPPED_TRANSACTIONS:"GET_MAPPED_TRANSACTIONS",GET_CREATE_PAYMENT_OPTIONS:"GET_CREATE_PAYMENT_OPTIONS",GET_RECURRING_LIST:"GET_RECURRING_LIST",CHECK_RECURRING_INVOICES_LENGTH:"CHECK_RECURRING_INVOICES_LENGTH",CHECK_PAYMENT_CAPABILITIES:"CHECK_PAYMENT_CAPABILITIES",GET_ONBOARDING_PAYMENT_OPTIONS:"GET_ONBOARDING_PAYMENT_OPTIONS",GET_INVOICE_BY_ID:"GET_INVOICE_BY_ID",GET_RECURRING_INVOICE_BY_ID:"GET_RECURRING_INVOICE_BY_ID",GET_INVOICE_DETAILS_BY_CODE:"GET_INVOICE_DETAILS_BY_CODE",DASHBOARD_INVOICE_LIST:"DASHBOARD_INVOICE_LIST",GET_INVOICE_CUSTOMER_BY_ID:"GET_INVOICE_CUSTOMER_BY_ID",GET_INVOICES_BY_CUSTOMER_ID:"GET_INVOICES_BY_CUSTOMER_ID",CUSTOMER_ALL_INVOICES:"CUSTOMER_ALL_INVOICES",GET_ACTIVITIES_BY_INVOICE_ID:"GET_ACTIVITIES_BY_INVOICE_ID",RECURRING_ALL_INVOICES:"RECURRING_ALL_INVOICES",GET_INVOICE_REFERRAL_CONFIG:"GET_INVOICE_REFERRAL_CONFIG",GET_INVOICE_ACL_CONFIG:"GET_INVOICE_ACL_CONFIG",GET_INSIGHT_WIDGETS:"GET_INSIGHT_WIDGETS",GET_INVOICE_STATUS_WIDGET:"GET_INVOICE_STATUS_WIDGET",GET_INVOICES_COUNT:"GET_INVOICES_COUNT",GET_OVERVIEW_ALERTS:"GET_OVERVIEW_ALERTS",GET_OVERDUE_CUSTOMERS:"GET_OVERDUE_CUSTOMERS",INVOICE_GET_CUSTOMERS_PAYMENTS:"INVOICE_GET_CUSTOMERS_PAYMENTS",INVOICE_GET_CUSTOMERS_ALL_PAYMENTS:"INVOICE_GET_CUSTOMERS_ALL_PAYMENTS",INVOICE_OVERVIEW_GET_ACTIVITIES:"INVOICE_OVERVIEW_GET_ACTIVITIES",GET_12_MONTH_PAYMENT_GRAPH_DATA:"GET_12_MONTH_PAYMENT_GRAPH_DATA",GET_ACCOUNT_INFO:"GET_ACCOUNT_INFO",GET_BUSINESS_INFO:"GET_BUSINESS_INFO",GET_BUSINESS_DETAILS:"GET_BUSINESS_DETAILS",GET_OWNERS_DETAILS:"GET_OWNERS_DETAILS",GET_REVIEW_TERMS:"GET_REVIEW_TERMS",INVOICE_CLIENT_ARCHIVE_PREVIEW_INVOICE_LIST:"INVOICE_CLIENT_ARCHIVE_PREVIEW_INVOICE_LIST",GET_VENDER_ONBOARDING_INFO:"GET_VENDER_ONBOARDING_INFO",UPDATE_VENDOR_ONBOARDING_ADDITIONAL_INFO:"UPDATE_VENDOR_ONBOARDING_ADDITIONAL_INFO",GET_PAYMENT_ONBOARDING_ADDITIONAL_INFO_DETAILS:"GET_PAYMENT_ONBOARDING_ADDITIONAL_INFO_DETAILS",GET_TERMS_OF_SERVICE:"GET_TERMS_OF_SERVICE",GET_INVOICE_PAYMENTS:"GET_INVOICE_PAYMENTS",GET_PAYMENTS_LIST:"GET_PAYMENTS_LIST",LINK_PAYMENT_TO_TRANSACTIONS:"LINK_PAYMENT_TO_TRANSACTIONS",GET_PAYMENT_DETAILS:"GET_PAYMENT_DETAILS",GET_PAYMENTS_TOOLTIPS:"GET_PAYMENTS_TOOLTIPS",DOWNLOAD_PAYMENTS_CSV:"DOWNLOAD_PAYMENTS_CSV",GET_PAYMENT_LINKED_TRANSACTION_INFO:"GET_PAYMENT_LINKED_TRANSACTION_INFO",GET_BETA_STATUS:"GET_BETA_STATUS",CHECK_PAYMENT_METHOD_SETUP_VISITED:"CHECK_PAYMENT_METHOD_SETUP_VISITED",GET_PAYMENT_DISPUTE_LIST:"GET_PAYMENT_DISPUTE_LIST",GET_STRIPE_CONNECTED_ACCOUNTS:"GET_STRIPE_CONNECTED_ACCOUNTS",GET_ONBOARDING_FEE_DESCRIPTION:"GET_ONBOARDING_FEE_DESCRIPTION"},t={UPDATE_PAYMENT:"UPDATE_PAYMENT",RECORD_PAYMENT:"RECORD_PAYMENT",DELETE_PAYMENT:"DELETE_PAYMENT",UPDATE_VENDOR_ONBOARDING_POST_APPROVAL:"UPDATE_VENDOR_ONBOARDING_POST_APPROVAL",CONFIRM_DOWNGRADE_ACKNOWLEDGMENT:"CONFIRM_DOWNGRADE_ACKNOWLEDGMENT",CONFIRM_PAYMENTS_OPT_OUT:"CONFIRM_PAYMENTS_OPT_OUT",ACKNOWLEDGEMENT:"ACKNOWLEDGEMENT",UPDATE_PAYMENT_OPTIONS:"UPDATE_PAYMENT_OPTIONS",SEND_STRIPE_BANK_TRANSFER_CODE:"SEND_STRIPE_BANK_TRANSFER_CODE",VALIDATE_STRIPE_BANK_TRANSFER_CODE:"VALIDATE_STRIPE_BANK_TRANSFER_CODE"}},32745(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateTransferStatus"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateTransferStatusInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"updateTransferStatus"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePullFundRequestStatus"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePullFundRequestStatusInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"updatePullFundRequestStatus"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:416}};n.loc.source={body:"mutation UpdateTransferStatus($data: UpdateTransferStatusInputType!) {\n responseData: updateTransferStatus(data: $data) {\n message\n title\n hasError\n statusCode\n data\n errors\n }\n}\n\nmutation UpdatePullFundRequestStatus($data: UpdatePullFundRequestStatusInput!) {\n responseData: updatePullFundRequestStatus(data: $data) {\n message\n title\n hasError\n statusCode\n data\n errors\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.UpdateTransferStatus=s(n,"UpdateTransferStatus"),e.exports.UpdatePullFundRequestStatus=s(n,"UpdatePullFundRequestStatus")},76434(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeTransactionSource"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"args"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeTransactionSourceInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"changeTransactionSource"},arguments:[{kind:"Argument",name:{kind:"Name",value:"args"},value:{kind:"Variable",name:{kind:"Name",value:"args"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:165}};n.loc.source={body:"mutation ChangeTransactionSource($args: ChangeTransactionSourceInput!) {\n responseData: changeTransactionSource(args: $args) {\n message\n title\n data\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.ChangeTransactionSource=function(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}(n,"ChangeTransactionSource")},71555(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionMediumFilters"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AllConfigs"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transaction_medium_filters"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTransactionMediumFilters"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"all_configs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionMediumFilters"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTransactionCategories"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"CategoryTypeEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fetchOnlyParent"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fetchSubCategories"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"categories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"fetchOnlyParent"},value:{kind:"Variable",name:{kind:"Name",value:"fetchOnlyParent"}}},{kind:"Argument",name:{kind:"Name",value:"fetchSubCategories"},value:{kind:"Variable",name:{kind:"Name",value:"fetchSubCategories"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FinancialInsightStartDate"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"all_configs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transaction_v2"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"financial_insight_start_date"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTransactionAndCategorizationDays"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"all_configs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transaction_v2"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"opt_in_days"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pull_transaction_days"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:909}};n.loc.source={body:"fragment TransactionMediumFilters on AllConfigs {\
1n transaction_medium_filters {\n key\n value\n type\n }\n}\n\nquery GetTransactionMediumFilters {\n responseData: all_configs {\n ...TransactionMediumFilters\n }\n}\n\nquery GetTransactionCategories(\n $type: CategoryTypeEnum\n $fetchOnlyParent: Boolean\n $fetchSubCategories: Boolean\n) {\n responseData: categories(\n type: $type\n fetchOnlyParent: $fetchOnlyParent\n fetchSubCategories: $fetchSubCategories\n ) {\n id\n name\n icon_url\n type\n categories {\n id\n name\n icon_url\n parent {\n id\n name\n }\n }\n }\n}\n\nquery FinancialInsightStartDate {\n responseData: all_configs {\n transaction_v2 {\n financial_insight_start_date\n }\n }\n}\n\nquery GetTransactionAndCategorizationDays {\n responseData: all_configs {\n transaction_v2 {\n opt_in_days\n pull_transaction_days\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.TransactionMediumFilters=s(n,"TransactionMediumFilters"),e.exports.GetTransactionMediumFilters=s(n,"GetTransactionMediumFilters"),e.exports.GetTransactionCategories=s(n,"GetTransactionCategories"),e.exports.FinancialInsightStartDate=s(n,"FinancialInsightStartDate"),e.exports.GetTransactionAndCategorizationDays=s(n,"GetTransactionAndCategorizationDays")},89830(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchTransactionLedgerDetails"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"fetchTransactionLedgerDetails"},arguments:[{kind:"Argument",name:{kind:"Name",value:"args"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"transactionId"},value:{kind:"Variable",name:{kind:"Name",value:"transactionId"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ledgerDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reserveId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reserveName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reserveTransactionAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reserveTransactionPercentage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"availableBalanceDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transactionAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transactionPercentage"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:431}};n.loc.source={body:"query FetchTransactionLedgerDetails($transactionId: String!) {\n responseData: fetchTransactionLedgerDetails(\n args: { transactionId: $transactionId }\n ) {\n ledgerDetails {\n createdAt\n reserveId\n type\n status\n reserveName\n reserveTransactionAmount\n reserveTransactionPercentage\n }\n availableBalanceDetails {\n name\n transactionAmount\n transactionPercentage\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.FetchTransactionLedgerDetails=function(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}(n,"FetchTransactionLedgerDetails")},53776(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PendingTransactionList"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PendingTransactions"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created_date"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"amount"},name:{kind:"Name",value:"raw_amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"medium"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"txn_type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"more_info"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updated_date"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"check_number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"internal_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reserve_meta"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"available_balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"components"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hold_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"is_visible"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TransactionList"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Transactions"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created_date"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"amount"},name:{kind:"Name",value:"raw_amount"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"display_amount"},name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"medium"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"txn_type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"icon_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"internal_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"credited_accounts_count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reserve_meta"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"available_balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user_action"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"external_account_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"components"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hold_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"is_visible"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"banner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ctaText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AllTransactions"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RecordLimit"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"duration"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"start_date"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"end_date"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"search_term"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"TransactionTypeEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"category_ids"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transaction_medium_filters"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"TransactionMediumFilterEnum"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"card_id"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseTransactions"},name:{kind:"Name",value:"transactions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"duration"},value:{kind:"Variable",name:{kind:"Name",value:"duration"}}},{kind:"Argument",name:{kind:"Name",value:"start_date"},value:{kind:"Variable",name:{kind:"Name",value:"start_date"}}},{kind:"Argument",name:{kind:"Name",value:"end_date"},value:{kind:"Variable",name:{kind:"Name",value:"end_date"}}},{kind:"Argument",name:{kind:"Name",value:"search_term"},value:{kind:"Variable",name:{kind:"Name",value:"search_term"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"category_ids"},value:{kind:"Variable",name:{kind:"Name",value:"category_ids"}}},{kind:"Argument",name:{kind:"Name",value:"transaction_medium_filters"},value:{kind:"Variable",name:{kind:"Name",value:"transaction_medium_filters"}}},{kind:"Argument",name:{kind:"Name",value:"card_id"},value:{kind:"Variable",name:{kind:"Name",value:"card_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionList"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"responsePendingTransactions"},name:{kind:"Name",value:"pending_transactions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"duration"},value:{kind:"Variable",name:{kind:"Name",value:"duration"}}},{kind:"Argument",name:{kind:"Name",value:"start_date"},value:{kind:"Variable",name:{kind:"Name",value:"start_date"}}},{kind:"Argument",name:{kind:"Name",value:"end_date"},value:{kind:"Variable",name:{kind:"Name",value:"end_date"}}},{kind:"Argument",name:{kind:"Name",value:"search_term"},value:{kind:"Variable",name:{kind:"Name",value:"search_term"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"transaction_medium_filters"},value:{kind:"Variable",name:{kind:"Name",value:"transaction_medium_filters"}}},{kind:"Argument",name:{kind:"Name",value:"card_id"},value:{kind:"Variable",name:{kind:"Name",value:"card_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PendingTransactionList"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Transactions"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RecordLimit"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"duration"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"start_date"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"end_date"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"search_term"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"TransactionTypeEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"category_ids"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transaction_medium_filters"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"TransactionMediumFilterEnum"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"card_id"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"transactions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"duration"},value:{kind:"Variable",name:{kind:"Name",value:"duration"}}},{kind:"Argument",name:{kind:"Name",value:"start_date"},value:{kind:"Variable",name:{kind:"Name",value:"start_date"}}},{kind:"Argument",name:{kind:"Name",value:"end_date"},value:{kind:"Variable",name:{kind:"Name",value:"end_date"}}},{kind:"Argument",name:{kind:"Name",value:"search_term"},value:{kind:"Variable",name:{kind:"Name",value:"search_term"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"category_ids"},value:{kind:"Variable",name:{kind:"Name",value:"category_ids"}}},{kind:"Argument",name:{kind:"Name",value:"transaction_medium_filters"},value:{kind:"Variable",name:{kind:"Name",value:"transaction_medium_filters"}}},{kind:"Argument",name:{kind:"Name",value:"card_id"},value:{kind:"Variable",name:{kind:"Name",value:"card_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionList"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PendingTransactions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"duration"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"start_date"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"end_date"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"search_term"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"TransactionTypeEnum"}},directives:[]}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transaction_medium_filters"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"TransactionMediumFilterEnum"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"card_id"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"pending_transactions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"duration"},value:{kind:"Variable",name:{kind:"Name",value:"duration"}}},{kind:"Argument",name:{kind:"Name",value:"start_date"},value:{kind:"Variable",name:{kind:"Name",value:"start_date"}}},{kind:"Argument",name:{kind:"Name",value:"end_date"},value:{kind:"Variable",name:{kind:"Name",value:"end_date"}}},{kind:"Argument",name:{kind:"Name",value:"search_term"},value:{kind:"Variable",name:{kind:"Name",value:"search_term"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"transaction_medium_filters"},value:{kind:"Variable",name:{kind:"Name",value:"transaction_medium_filters"}}},{kind:"Argument",name:{kind:"Name",value:"card_id"},value:{kind:"Variable",name:{kind:"Name",value:"card_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PendingTransactionList"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInsightTransactions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"category_id"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"source"}},type:{kind:"NamedType",name:{kind:"Name",value:"SourceEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RecordLimit"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"short_description"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"start_date"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DateString"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"end_date"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DateString"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TransactionTypeEnum"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"is_for_un_categorized"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"get_insights_transactions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"category_id"},value:{kind:"Variable",name:{kind:"Name",value:"category_id"}}},{kind:"Argument",name:{kind:"Name",value:"source"},value:{kind:"Variable",name:{kind:"Name",value:"source"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"short_description"},value:{kind:"Variable",name:{kind:"Name",value:"short_description"}}},{kind:"Argument",name:{kind:"Name",value:"start_date"},value:{kind:"Variable",name:{kind:"Name",value:"start_date"}}},{kind:"Argument",name:{kind:"Name",value:"end_date"},value:{kind:"Variable",name:{kind:"Name",value:"end_date"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"is_for_un_categorized"},value:{kind:"Variable",name:{kind:"Name",value:"is_for_un_categorized"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionList"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTransactionbyAccountId"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RecordLimit"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"startDate"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"endDate"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"duration"}},type:{kind:"NamedType",name:{kind:"Name",value:"StringS"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"TransactionTypeEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"categoryIds"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getTransactionbyAccountId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}},{kind:"Argument",name:{kind:"Name",value:"startDate"},value:{kind:"Variable",name:{kind:"Name",value:"startDate"}}},{kind:"Argument",name:{kind:"Name",value:"endDate"},value:{kind:"Variable",name:{kind:"Name",value:"endDate"}}},{kind:"Argument",name:{kind:"Name",value:"duration"},value:{kind:"Variable",name:{kind:"Name",value:"duration"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"categoryIds"},value:{kind:"Variable",name:{kind:"Name",value:"categoryIds"}}},{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bank_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"account_number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"account_name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"transactions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionList"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInvoicesToLinkWithTransaction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoicesToLinkWithTransaction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionId"},value:{kind:"Variable",name:{kind:"Name",value:"transactionId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceSentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSuggested"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"totalAmountPaid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payableAmount"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInvoicesLinkedWithTransaction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"disputeTransactionId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getPaymentSummary"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"transactionId"},value:{kind:"Variable",name:{kind:"Name",value:"transactionId"}}},{kind:"ObjectField",name:{kind:"Name",value:"disputeTransactionId"},value:{kind:"Variable",name:{kind:"Name",value:"disputeTransactionId"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fee"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"netAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adjustmentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adjustments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"netAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fee"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"payments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fee"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"netAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientName"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:5717}};n.loc.source={body:"# Fragment for pending transaction list\nfragment PendingTransactionList on PendingTransactions {\n id\n created_date\n description\n amount: raw_amount\n medium\n type\n txn_type\n status\n notes\n more_info\n updated_date\n check_number\n internal_id\n reserve_meta\n available_balance\n\n components {\n hold_info {\n is_visible\n type\n }\n }\n}\n\n# Fragment for transaction list\nfragment TransactionList on Transactions {\n id\n created_date\n description\n amount: raw_amount\n display_amount: amount\n type\n medium\n status\n meta\n txn_type\n category {\n icon_url\n id\n name\n parent_id\n parent_name\n }\n internal_id\n credited_accounts_count\n reserve_meta\n available_balance\n user_action\n external_account_id\n components {\n hold_info {\n is_visible\n type\n }\n }\n banner {\n title\n description\n ctaText\n type\n }\n}\n\nquery AllTransactions(\n $limit: RecordLimit!\n $offset: Int\n $duration: StringS\n $start_date: StringS\n $end_date: StringS\n $search_term: StringS\n $type: TransactionTypeEnum\n $category_ids: [UUID]\n $transaction_medium_filters: [TransactionMediumFilterEnum]\n $card_id: UUID\n) {\n responseTransactions: transactions(\n limit: $limit\n offset: $offset\n duration: $duration\n start_date: $start_date\n end_date: $end_date\n search_term: $search_term\n type: $type\n category_ids: $category_ids\n transaction_medium_filters: $transaction_medium_filters\n card_id: $card_id\n ) {\n ...TransactionList\n }\n responsePendingTransactions: pending_transactions(\n duration: $duration\n start_date: $start_date\n end_date: $end_date\n search_term: $search_term\n type: $type\n transaction_medium_filters: $transaction_medium_filters\n card_id: $card_id\n ) {\n ...PendingTransactionList\n }\n}\n\nquery Transactions(\n $limit: RecordLimit!\n $offset: Int\n $duration: StringS\n $start_date: StringS\n $end_date: StringS\n $search_term: StringS\n $type: TransactionTypeEnum\n $category_ids: [UUID]\n $transaction_medium_filters: [TransactionMediumFilterEnum]\n $card_id: UUID\n) {\n responseData: transactions(\n limit: $limit\n offset: $offset\n duration: $duration\n start_date: $start_date\n end_date: $end_date\n search_term: $search_term\n type: $type\n category_ids: $category_ids\n transaction_medium_filters: $transaction_medium_filters\n card_id: $card_id\n ) {\n ...TransactionList\n }\n}\n# Query to fetch all pending transactions\nquery PendingTransactions(\n $duration: StringS\n $start_date: StringS\n $end_date: StringS\n $search_term: StringS\n $type: TransactionTypeEnum\n $transaction_medium_filters: [TransactionMediumFilterEnum]\n $card_id: UUID\n) {\n # Fetching response data for pending transactions\n responseData: pending_transactions(\n duration: $duration\n start_date: $start_date\n end_date: $end_date\n search_term: $search_term\n type: $type\n transaction_medium_filters: $transaction_medium_filters\n card_id: $card_id\n ) {\n # Including the PendingTransactionList fragment\n ...PendingTransactionList\n }\n}\n\nquery GetInsightTransactions(\n $category_id: UUID\n $source: SourceEnum\n $limit: RecordLimit!\n $offset: Int\n $short_description: StringS\n $start_date: DateString!\n $end_date: DateString!\n $type: TransactionTypeEnum!\n $is_for_un_categorized: Boolean\n) {\n responseData: get_insights_transactions(\n category_id: $category_id\n source: $source\n limit: $limit\n offset: $offset\n short_description: $short_description\n start_date: $start_date\n end_date: $end_date\n type: $type\n is_for_un_categorized: $is_for_un_categorized\n ) {\n ...TransactionList\n }\n}\n\nquery GetTransactionbyAccountId(\n $id: UUID\n $limit: RecordLimit!\n $offset: Int\n $searchTerm: StringS\n $startDate: StringS\n $endDate: StringS\n $duration: StringS\n $type: TransactionTypeEnum\n $categoryIds: [UUID]\n $accountId: UUID\n) {\n responseData: getTransactionbyAccountId(\n id: $id\n limit: $limit\n offset: $offset\n searchTerm: $searchTerm\n startDate: $
1startDate\n endDate: $endDate\n duration: $duration\n type: $type\n categoryIds: $categoryIds\n accountId: $accountId\n ) {\n account {\n bank_name\n account_number\n account_name\n }\n\n transactions {\n ...TransactionList\n }\n }\n}\n\nquery GetInvoicesToLinkWithTransaction(\n $transactionId: String!\n $offset: Int\n $limit: Int\n) {\n responseData: getInvoicesToLinkWithTransaction(\n transactionId: $transactionId\n offset: $offset\n limit: $limit\n ) {\n data {\n invoices {\n id\n status\n dueDate\n invoiceTotal\n invoiceNumber\n invoiceSentDate\n createdAt\n isSuggested\n customer {\n companyName\n }\n totalAmountPaid\n payableAmount\n }\n }\n message\n title\n success\n hasError\n statusCode\n userErrors\n }\n}\n\nquery GetInvoicesLinkedWithTransaction(\n $transactionId: String\n $disputeTransactionId: String\n) {\n responseData: getPaymentSummary(\n input: {\n transactionId: $transactionId\n disputeTransactionId: $disputeTransactionId\n }\n ) {\n amount\n fee\n netAmount\n adjustmentAmount\n adjustments {\n edges {\n id\n amount\n netAmount\n fee\n invoice {\n id\n invoiceNumber\n }\n customer {\n id\n clientName\n name\n }\n }\n }\n payments {\n edges {\n id\n amount\n fee\n netAmount\n invoice {\n id\n invoiceNumber\n }\n customer {\n id\n name\n clientName\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.PendingTransactionList=s(n,"PendingTransactionList"),e.exports.TransactionList=s(n,"TransactionList"),e.exports.AllTransactions=s(n,"AllTransactions"),e.exports.Transactions=s(n,"Transactions"),e.exports.PendingTransactions=s(n,"PendingTransactions"),e.exports.GetInsightTransactions=s(n,"GetInsightTransactions"),e.exports.GetTransactionbyAccountId=s(n,"GetTransactionbyAccountId"),e.exports.GetInvoicesToLinkWithTransaction=s(n,"GetInvoicesToLinkWithTransaction"),e.exports.GetInvoicesLinkedWithTransaction=s(n,"GetInvoicesLinkedWithTransaction")},96191(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"InvoiceBrandingFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"InvoiceSettings"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoiceBranding"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customLogoUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customLogo"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"InvoiceList"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"InvoiceResponseDto"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceSentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scheduledDate"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"InvoiceItems"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"InvoiceItemsResponseDto"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RecurringSeriesFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RecurringSeriesResponseDto"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"repeatType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"frequency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endType"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"InvoiceCustomer"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"InvoiceCustomerResponseDto"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customerStatus"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"InvoiceSenderDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SenderType"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"businessAddress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addressLine1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"customColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customLogoUrl"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"InvoiceSelectedPaymentMethods"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PaymentOptionsResponseDto"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCategoryType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categoryIcon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentValues"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"connectionInformation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isConnected"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"account"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"iconUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentName"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"InvoicePremiumSelectedPaymentGateways"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PaymentGatewayWithMethodsDto"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"gatewayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gatewayId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethods"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"method"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"writeCheckTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mailCheckTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentLimits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"min"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"max"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReferralDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ReferralPageResponseDto"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rewardAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"refereeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"getStartedUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tncUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"termsLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"groupType"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentSchedule"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PaymentScheduleResponseDto"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"splitType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"splits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"splitOrder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"splitPercentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentTimestamp"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paidAmount"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1989}};n.loc.source={body:"fragment InvoiceBrandingFragment on InvoiceSettings {\n invoiceBranding {\n customColor\n customLogoUrl\n customLogo\n }\n}\n\nfragment InvoiceList on InvoiceResponseDto {\n id\n status\n dueDate\n invoiceTotal\n invoiceNumber\n invoiceSentDate\n scheduledDate\n}\n\nfragment InvoiceItems on InvoiceItemsResponseDto {\n id\n name\n cost\n quantity\n total\n description\n}\n\nfragment RecurringSeriesFields on RecurringSeriesResponseDto {\n endValue\n repeatType\n frequency\n endType\n}\n\nfragment InvoiceCustomer on InvoiceCustomerResponseDto {\n id\n companyName\n email\n phone\n addressLine1\n addressLine2\n clientName\n city\n state\n zip\n customerStatus\n}\n\nfragment InvoiceSenderDetails on SenderType {\n business {\n businessName\n email\n phone\n id\n\n businessAddress {\n addressLine1\n addressLine2\n city\n state\n zipCode\n }\n customColor\n customLogoUrl\n }\n}\n\nfragment InvoiceSelectedPaymentMethods on PaymentOptionsResponseDto {\n name\n paymentCategoryType\n description\n categoryIcon\n paymentValues {\n id\n hid\n name\n displayName\n connectionInformation {\n isConnected\n account {\n displayName\n email\n }\n }\n iconUrl\n type\n paymentId\n paymentName\n }\n}\n\nfragment InvoicePremiumSelectedPaymentGateways on PaymentGatewayWithMethodsDto {\n gatewayName\n gatewayId\n paymentMethods {\n label\n title\n description\n isEnabled\n method\n checkDetails {\n writeCheckTo\n mailCheckTo\n address\n addressLine2\n city\n state\n zipCode\n }\n paymentLimits {\n min\n max\n }\n }\n}\n\nfragment ReferralDetails on ReferralPageResponseDto {\n rewardAmount\n refereeAmount\n depositAmount\n getStartedUrl\n tncUrl\n termsLink\n groupType\n}\n\nfragment PaymentSchedule on PaymentScheduleResponseDto {\n splitType\n splits {\
1n label\n splitOrder\n amount\n splitPercentage\n dueDate\n status\n paymentTimestamp\n paidAmount\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.InvoiceBrandingFragment=s(n,"InvoiceBrandingFragment"),e.exports.InvoiceList=s(n,"InvoiceList"),e.exports.InvoiceItems=s(n,"InvoiceItems"),e.exports.RecurringSeriesFields=s(n,"RecurringSeriesFields"),e.exports.InvoiceCustomer=s(n,"InvoiceCustomer"),e.exports.InvoiceSenderDetails=s(n,"InvoiceSenderDetails"),e.exports.InvoiceSelectedPaymentMethods=s(n,"InvoiceSelectedPaymentMethods"),e.exports.InvoicePremiumSelectedPaymentGateways=s(n,"InvoicePremiumSelectedPaymentGateways"),e.exports.ReferralDetails=s(n,"ReferralDetails"),e.exports.PaymentSchedule=s(n,"PaymentSchedule")},92727(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SendClientEmailVerificationCode"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SendClientEmailVerificationOtpRequestDto"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"sendClientEmailVerificationOtp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ValidateClientEmailCode"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ValidateClientEmailVerificationOtpRequestDto"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"validateClientEmailVerificationOtp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"accessToken"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalClientId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SaveClientAccount"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateClientAccountRequestDTO"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"createClientAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveStripeConnectedAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RemoveClientAccountRequestDTO"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"removeClientAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:929}};n.loc.source={body:"mutation SendClientEmailVerificationCode(\n $input: SendClientEmailVerificationOtpRequestDto!\n) {\n responseData: sendClientEmailVerificationOtp(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n }\n}\n\nmutation ValidateClientEmailCode(\n $input: ValidateClientEmailVerificationOtpRequestDto!\n) {\n responseData: validateClientEmailVerificationOtp(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n accessToken\n externalClientId\n email\n }\n}\n\nmutation SaveClientAccount($input: CreateClientAccountRequestDTO!) {\n responseData: createClientAccount(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n }\n}\n\nmutation RemoveStripeConnectedAccount($input: RemoveClientAccountRequestDTO!) {\n responseData: removeClientAccount(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.SendClientEmailVerificationCode=s(n,"SendClientEmailVerificationCode"),e.exports.ValidateClientEmailCode=s(n,"ValidateClientEmailCode"),e.exports.SaveClientAccount=s(n,"SaveClientAccount"),e.exports.RemoveStripeConnectedAccount=s(n,"RemoveStripeConnectedAccount")},66298(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateInvoice"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateInvoiceData"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"createInvoice"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateInvoiceStatus"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateInvoiceStatusRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"updateInvoiceStatus"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InvoiceReminder"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SendReminderMailRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"sendReminderMail"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteDraftInvoice"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DiscardDraftInvoiceRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"discardDraftInvoice"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteAttachment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteDocumentRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"deleteDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateInvoiceCustomer"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateInvoiceCustomerData"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"createInvoiceCustomer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastInvoicedDate"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateItemFromInventory"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateProductData"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"createProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateInvoiceCustomer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateInvoiceCustomerData"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"updateInvoiceCustomer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateItemFromInventory"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateProductData"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"updateProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpsertInvoiceBusinessInfo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpsertInvoiceSettingsData"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"upsertInvoiceSettings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SendReceipt"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SendReceiptRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"sendReceipt"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"MarkInvoiceAsReferralViewed"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MarkInvoiceAsReferralViewedRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"markInvoiceAsReferralViewed"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePaymentOrder"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreatePaymentOrderDTO"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"createPaymentOrder"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"orderId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceTransactionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkoutLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientSecret"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ValidateInvoicePayment"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ValidatePaymentDTO"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"validatePayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:2793}};n.loc.source={body:"mutation CreateInvoice($data: CreateInvoiceData!) {\n responseData: createInvoice(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n\nmutation UpdateInvoiceStatus($data: UpdateInvoiceStatusRequest!) {\n responseData: updateInvoiceStatus(data: $data) {\n message\n success\n hasError\n statusCode\n userErrors\n title\n }\n}\n\nmutation InvoiceReminder($data: SendReminderMailRequest!) {\n responseData: sendReminderMail(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n\nmutation DeleteDraftInvoice($data: DiscardDraftInvoiceRequest!) {\n responseData: discardDraftInvoice(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n\nmutation DeleteAttachment($data: DeleteDocumentRequest!) {\n responseData: deleteDocument(data: $data) {\n message\n success\n hasError\n statusCode\n userErrors\n title\n }\n}\n\nmutation CreateInvoiceCustomer($data: CreateInvoiceCustomerData!) {\n responseData: createInvoiceCustomer(data: $data) {\n hasError\n title\n message\n success\n hasError\n statusCode\n userErrors\n data {\n id\n email\n companyName\n email\n phone\n addressLine1\n addressLine2\n city\n state\n zip\n status\n createdAt\n clientName\n lastInvoicedDate\n }\n }\n}\n\nmutation CreateItemFromInventory($data: CreateProductData!) {\n responseData: createProduct(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n\nmutation UpdateInvoiceCustomer($data: UpdateInvoiceCustomerData!) {\n responseData: updateInvoiceCustomer(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n\nmutation UpdateItemFromInventory($data: UpdateProductData!) {\n responseData: updateProduct(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n\nmutation UpsertInvoiceBusinessInfo($data: UpsertInvoiceSettingsData!) {\n responseData: upsertInvoiceSettings(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n\nmutation SendReceipt($data: SendReceiptRequest!) {\n responseData: sendReceipt(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n\nmutation MarkInvoiceAsReferralViewed(\n $data: MarkInvoiceAsReferralViewedRequest!\n) {\n responseData: markInvoiceAsReferralViewed(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n\nmutation CreatePaymentOrder($data: CreatePaymentOrderDTO!) {\n responseData: createPaymentOrder(data: $data) {\n hasError\n title\n message\n userErrors\n data {\n orderId\n invoiceTransactionId\n checkoutLink\n clientSecret\n }\n }\n}\n\nmutation ValidateInvoicePayment($data: ValidatePaymentDTO!) {\n responseData: validatePayment(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}
1))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.CreateInvoice=s(n,"CreateInvoice"),e.exports.UpdateInvoiceStatus=s(n,"UpdateInvoiceStatus"),e.exports.InvoiceReminder=s(n,"InvoiceReminder"),e.exports.DeleteDraftInvoice=s(n,"DeleteDraftInvoice"),e.exports.DeleteAttachment=s(n,"DeleteAttachment"),e.exports.CreateInvoiceCustomer=s(n,"CreateInvoiceCustomer"),e.exports.CreateItemFromInventory=s(n,"CreateItemFromInventory"),e.exports.UpdateInvoiceCustomer=s(n,"UpdateInvoiceCustomer"),e.exports.UpdateItemFromInventory=s(n,"UpdateItemFromInventory"),e.exports.UpsertInvoiceBusinessInfo=s(n,"UpsertInvoiceBusinessInfo"),e.exports.SendReceipt=s(n,"SendReceipt"),e.exports.MarkInvoiceAsReferralViewed=s(n,"MarkInvoiceAsReferralViewed"),e.exports.CreatePaymentOrder=s(n,"CreatePaymentOrder"),e.exports.ValidateInvoicePayment=s(n,"ValidateInvoicePayment")},56011(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateVendorOnboardingInfo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpsertVendorOnboardingInfoRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"upsertVendorOnboardingInfo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateVendorOnboardingAdditionalInfo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateVendorOnboardingAdditionalInfoRequest"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"updateInvoiceVendorOnboardingAdditionalInfo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateIfPaymentMethodSetupVisited"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateVendorOnboardingPostApprovalRequestDto"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"updateVendorOnboardingPostApproval"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:731}};n.loc.source={body:"mutation UpdateVendorOnboardingInfo(\n $input: UpsertVendorOnboardingInfoRequest!\n) {\n responseData: upsertVendorOnboardingInfo(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n }\n}\n\nmutation UpdateVendorOnboardingAdditionalInfo(\n $input: [UpdateVendorOnboardingAdditionalInfoRequest!]!\n) {\n responseData: updateInvoiceVendorOnboardingAdditionalInfo(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n }\n}\n\nmutation UpdateIfPaymentMethodSetupVisited(\n $input: UpdateVendorOnboardingPostApprovalRequestDto!\n) {\n responseData: updateVendorOnboardingPostApproval(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.UpdateVendorOnboardingInfo=s(n,"UpdateVendorOnboardingInfo"),e.exports.UpdateVendorOnboardingAdditionalInfo=s(n,"UpdateVendorOnboardingAdditionalInfo"),e.exports.UpdateIfPaymentMethodSetupVisited=s(n,"UpdateIfPaymentMethodSetupVisited")},58595(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DownloadPaymentsCsv"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DownloadPaymentReportRequestDto"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"downloadPaymentReport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"signedURL"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateInvoicePayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePaymentRequestDto"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"updatePayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RecordInvoicePayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RecordPaymentRequestDto"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"recordPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteInvoicePayment"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeletePaymentRequestDto"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"deletePayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePaymentOptions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SelectedPaymentOptionsRequestDto"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"updateInvoiceSettingsPaymentOptions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1006}};n.loc.source={body:"mutation DownloadPaymentsCsv($input: DownloadPaymentReportRequestDto!) {\n responseData: downloadPaymentReport(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n signedURL\n }\n}\n\nmutation UpdateInvoicePayment($input: UpdatePaymentRequestDto!) {\n responseData: updatePayment(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n }\n}\n\nmutation RecordInvoicePayment($input: RecordPaymentRequestDto!) {\n responseData: recordPayment(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n }\n}\n\nmutation DeleteInvoicePayment($input: DeletePaymentRequestDto!) {\n responseData: deletePayment(input: $input) {\n operationInfo {\n message\n statusCode\n title\n }\n }\n}\n\nmutation UpdatePaymentOptions($input: [SelectedPaymentOptionsRequestDto!]!) {\n responseData: updateInvoiceSettingsPaymentOptions(input: $input) {\n operationInfo {\n message\n title\n statusCode\n }\n }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.DownloadPaymentsCsv=s(n,"DownloadPaymentsCsv"),e.exports.UpdateInvoicePayment=s(n,"UpdateInvoicePayment"),e.exports.RecordInvoicePayment=s(n,"RecordInvoicePayment"),e.exports.DeleteInvoicePayment=s(n,"DeleteInvoicePayment"),e.exports.UpdatePaymentOptions=s(n,"UpdatePaymentOptions")},46564(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CancelRecurringSeries"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CancelRecurringSeriesRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"cancelRecurringSeries"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"EditRecurringSeries"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateRecurringSeriesData"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"updateRecurringSeries"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:383}};n.loc.source={body:"mutation CancelRecurringSeries($data: CancelRecurringSeriesRequest!) {\n responseData: cancelRecurringSeries(data: $data) {\n message\n success\n hasError\n statusCode\n userErrors\n title\n }\n}\n\nmutation EditRecurringSeries($data: UpdateRecurringSeriesData!) {\n responseData: updateRecurringSeries(data: $data) {\n hasError\n title\n message\n userErrors\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.CancelRecurringSeries=s(n,"CancelRecurringSeries"),e.exports.EditRecurringSeries=s(n,"EditRecurringSeries")},28307(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetStripeConnectedAccounts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"code"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getClientConnectedAccounts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"code"},value:{kind:"Variable",name:{kind:"Name",value:"code"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"externalAccountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"financialConnectionAccountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountType"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ValidateAccountBalance"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"financialConnectionAccountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"invoiceTransactionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"validateClientAccountBalance"},arguments:[{kind:"Argument",name:{kind:"Name",value:"financialConnectionAccountId"},value:{kind:"Variable",name:{kind:"Name",value:"financialConnectionAccountId"}}},{kind:"Argument",name:{kind:"Name",value:"invoiceTransactionId"},value:{kind:"Variable",name:{kind:"Name",value:"invoiceTransactionId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isValid"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:528}};n.loc.source={body:"query GetStripeConnectedAccounts($code: String!) {\n responseData: getClientConnectedAccounts(code: $code) {\n edges {\n externalAccountId\n financialConnectionAccountId\n bankName\n last4\n accountType\n }\n }\n}\n\nquery ValidateAccountBalance(\n $financialConnectionAccountId: String!\n $invoiceTransactionId: String!\n) {\n responseData: validateClientAccountBalance(\n financialConnectionAccountId: $financialConnectionAccountId\n invoiceTransactionId: $invoiceTransactionId\n ) {\n isValid\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.GetStripeConnectedAccounts=s(n,"GetStripeConnectedAccounts"),e.exports.ValidateAccountBalance=s(n,"ValidateAccountBalance")},4410(e,n,a){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInvoicesList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"startDate"}},type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"endDate"}},type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchString"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}},type:{kind:"NamedType",name:{kind:"Name",value:"SortOrder"}},directives:[]}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"InvoiceListOrderByColumnEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"status"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InvoiceStatusEnum"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"customerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoicesList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"startDate"},value:{kind:"Variable",name:{kind:"Name",value:"startDate"}}},{kind:"Argument",name:{kind:"Name",value:"endDate"},value:{kind:"Variable",name:{kind:"Name",value:"endDate"}}},{kind:"Argument",name:{kind:"Name",value:"searchString"},value:{kind:"Variable",name:{kind:"Name",value:"searchString"}}},{kind:"Argument",name:{kind:"Name",value:"sortOrder"},value:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}}},{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"Variable",name:{kind:"Name",value:"sortBy"}}},{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"Variable",name:{kind:"Name",value:"status"}}},{kind:"Argument",name:{kind:"Name",value:"customerId"},value:{kind:"Variable",name:{kind:"Name",value:"customerId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceList"},directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recurringId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recipients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetDashboardInvoiceList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"startDate"}},type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"endDate"}},type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}},directives:[]}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchString"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}},type:{kind:"NamedType",name:{kind:"Name",value:"SortOrder"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"InvoiceListOrderByColumnEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"status"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InvoiceStatusEnum"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoicesList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"startDate"},value:{kind:"Variable",name:{kind:"Name",value:"startDate"}}},{kind:"Argument",name:{kind:"Name",value:"endDate"},value:{kind:"Variable",name:{kind:"Name",value:"endDate"}}},{kind:"Argument",name:{kind:"Name",value:"searchString"},value:{kind:"Variable",name:{kind:"Name",value:"searchString"}}},{kind:"Argument",name:{kind:"Name",value:"sortOrder"},value:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}}},{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"Variable",name:{kind:"Name",value:"sortBy"}}},{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"Variable",name:{kind:"Name",value:"status"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceList"},directives:[]},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInvoiceListById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoicesList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendMeACopy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"note"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recurringId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueDays"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recipients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reminders"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shippingValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"note"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paidDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceSubTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentStatusMessage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentStatusIcon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paidPaymentDetails"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalAmountPaid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payableAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentSchedules"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentSchedule"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceItems"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"recurringSeries"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RecurringSeriesFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"selectedPaymentMethods"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceSelectedPaymentMethods"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceCustomer"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"sender"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceSenderDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"referralPage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReferralDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"showPremiumPaymentMethods"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"premiumSelectedPaymentGateways"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoicePremiumSelectedPaymentGateways"},directives:[]}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceList"},directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetACOpe
1ningDate"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"account"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account_opening_date"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInAppMarketingConfig"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"all_configs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"max_billable_item"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inAppInvoiceMarketingFeatureStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceApiVersion"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAttachments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"entityId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"DocumentTypeEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"status"}},type:{kind:"NamedType",name:{kind:"Name",value:"DocumentStatusEnum"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"entityId"},value:{kind:"Variable",name:{kind:"Name",value:"entityId"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"Variable",name:{kind:"Name",value:"status"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"documents"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"downloadLink"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSavedItems"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"NamedType",name:{kind:"Name",value:"ProductSortOrderEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getProducts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}
1},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"products"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"itemName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"itemDefaultCost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CheckPaymentCapabilities"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentHid"}},type:{kind:"NamedType",name:{kind:"Name",value:"PaymentMethodHidsEnum"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"checkPaymentCapabilities"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentHid"},value:{kind:"Variable",name:{kind:"Name",value:"paymentHid"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentMethods"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hid"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetNextInvoiceNumber"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getNextInvoiceNumber"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchTransactionsByInvoiceId"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"invoiceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getTransactionsByAmountFirst"},arguments:[{kind:"Argument",name:{kind:"Name",value:"invoiceId"},value:{kind:"Variable",name:{kind:"Name",value:"invoiceId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSuggested"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"medium"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInvoiceDetailsByCode"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"code"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceByCode"},arguments:[{kind:"Argument",name:{kind:"Name",value:"code"},value:{kind:"Variable",name:{kind:"Name",value:"code"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sendMeACopy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"note"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scheduledDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueDays"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recurringId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recipients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shippingValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceSentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paidPaymentDetails"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paidDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceSubTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reminders"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isArchived"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"downloadLink"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"selectedPaymentMethods"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCategoryType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categoryIcon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasConnectionError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentValues"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentLimits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"min"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"max"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"connectionInformation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isConnected"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"account"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"iconUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethods"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"details"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"routingNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"merchantId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stripePublishableKey"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stripeClientSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"squareLocationId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"writeCheckTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mailCheckTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"paymentSchedules"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentSchedule"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceItems"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"sender"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceSenderDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"referralPage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReferralDetails"},directives:[]},{kind:"Field",name:{kind:"Name",value:"referralViewed"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"totalAmountPaid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"whiteLabelStripePublishableKey"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"showPremiumPaymentMethods"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"premiumSelectedPaymentMethods"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"method"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"writeCheckTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mailCheckTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentLimits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"min"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"max"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"payableAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"invoiceAccount"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInvoiceCustomers"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}},type:{kind:"NamedType",name:{kind:"Name",value:"SortOrder"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"InvoiceCustomerSortByEnum"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceCustomers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"sortOrder"},value:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}}},{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"Variable",name:{kind:"Name",value:"sortBy"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoiceCustomers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastInvoicedDate"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInvoiceCustomersOnCreateInvoice"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}},type:{kind:"NamedType",name:{kind:"Name",value:"SortOrder"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"InvoiceCustomerSortByEnum"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceCustomers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}
1},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"sortOrder"},value:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}}},{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"Variable",name:{kind:"Name",value:"sortBy"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoiceCustomers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customerStatus"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInvoiceCustomerById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}},type:{kind:"NamedType",name:{kind:"Name",value:"SortOrder"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"InvoiceCustomerSortByEnum"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceCustomers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"sortOrder"},value:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}}},{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"Variable",name:{kind:"Name",value:"sortBy"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoiceCustomers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastInvoicedDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customerStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDeleteAllowed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasActiveInvoices"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"InvoiceOnBoardingInfo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceSettings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultReminders"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"businessInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"businessName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dba"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sourceName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"referralPage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReferralDetails"},directives:[]}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceBrandingFragment"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"InvoiceCustomizationInfo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceSettings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceBrandingFragment"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"InvoiceOnboardingPaymentData"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceSettingsPaymentOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"connectionInformation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isConnected"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isInvoiceEnabled"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"iconUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoicingPaymentDescription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchCreateInvoicePaymentOptions"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getCreateInvoicePaymentOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCategoryType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categoryIcon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorDescription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasConnectionError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subDescription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayOrder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bannerDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"iconUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentValues"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"connectionInformation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isInvoiceEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isConnected"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"iconUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDefaultSelected"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethods"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentLimits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"max"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"min"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"premiumPaymentGateways"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"gatewayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gatewayId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethods"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"method"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"writeCheckTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mailCheckTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field"
1,name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentLimits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"min"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"max"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetBetaStatus"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceConfigs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"showBeta"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInvoiceSignedUrl"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"invoiceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceSignedUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"invoiceId"},value:{kind:"Variable",name:{kind:"Name",value:"invoiceId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetActivities"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"invoiceId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"customerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recurringSeriesId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getActivities"},arguments:[{kind:"Argument",name:{kind:"Name",value:"invoiceId"},value:{kind:"Variable",name:{kind:"Name",value:"invoiceId"}}},{kind:"Argument",name:{kind:"Name",value:"customerId"},value:{kind:"Variable",name:{kind:"Name",value:"customerId"}}},{kind:"Argument",name:{kind:"Name",value:"recurringSeriesId"},value:{kind:"Variable",name:{kind:"Name",value:"recurringSeriesId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"activities"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iconType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cta"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transactionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transactionReferenceNumber"},arguments:[],directives:[]}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetACLFeatures"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getAclFeatures"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"permissions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"split"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"create"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"conditions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"split"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"subscription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"marketing"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setupPaymentBanner"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"continueSetupPaymentBanner"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"showApplicationOptInBanner"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"estimate"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"permissions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"create"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"menu"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dashboard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"permissions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recentActivitiesWidget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"insightsWidget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"estimateWidget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentsWidget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceStatusWidget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceOverdueWidget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"showDowngradeAcknowledgmentBanner"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"client"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"permissions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clientAvgTimeToPayWidget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientInvoiceSentWidget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientPaymentWidget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientTotalPaymentLast30DaysWidget"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientTotalPaymentWidget"},arguments:[],directives:[]}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetClientArchivePreviewInvoices"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"customerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"status"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InvoiceStatusEnum"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoicesList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"customerId"},value:{kind:"Variable",name:{kind:"Name",value:"customerId"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"Variable",name:{kind:"Name",value:"status"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recurringId"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:14361}};i.loc.source={body:'#import "../fragments/index.graphql"\n\nquery GetInvoicesList(\n $id: String\n $offset: Int\n $limit: Int\n $startDate: DateTime\n $endDate: DateTime\n $searchString: String\n $sortOrder: SortOrder\n $sortBy: InvoiceListOrderByColumnEnum\n $status: [InvoiceStatusEnum!]\n $customerId: String\n) {\n responseData: getInvoicesList(\n id: $id\n offset: $offset\n limit: $limit\n startDate: $startDate\n endDate: $endDate\n searchString: $searchString\n sortOrder: $sortOrder\n sortBy: $sortBy\n status: $status\n customerId: $customerId\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n invoices {\n ...InvoiceList\n paymentLink\n recurringId\n recipients\n customer {\n id\n companyName\n email\n }\n }\n }\n }\n}\n\nquery GetDashboardInvoiceList(\n $id: String\n $offset: Int\n $limit: Int\n $startDate: DateTime\n $endDate: DateTime\n $searchString: String\n $sortOrder: SortOrder\n $sortBy: InvoiceListOrderByColumnEnum\n $status: [InvoiceStatusEnum!]\n) {\n responseData: getInvoicesList(\n id: $id\n offset: $offset\n limit: $limit\n startDate: $startDate\n endDate: $endDate\n searchString: $searchString\n sortOrder: $sortOrder\n sortBy: $sortBy\n status: $status\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n invoices {\n ...InvoiceList\n customer {\n companyName\n }\n }\n }\n }\n}\n\nquery GetInvoiceListById($id: String) {\n responseData: getInvoicesList(id: $id) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n invoices {\n sendMeACopy\n paymentLink\n note\n recurringId\n dueDays\n recipients\n reminders\n discountType\n discountValue\n taxType\n taxValue\n shippingValue\n updatedAt\n note\n paidDate\n taxTotal\n discountTotal\n invoiceSubTotal\n paymentStatusMessage\n paymentStatusIcon\n createdAt\n paidPaymentDetails\n totalAmountPaid\n payableAmount\n paymentSchedules {\n ...PaymentSchedule\n }\n items {\n ...InvoiceItems\n }\n recurringSeries {\n ...RecurringSeriesFields\n }\n selectedPaymentMethods {\n ...InvoiceSelectedPaymentMethods\n }\n customer {\n ...InvoiceCustomer\n }\n sender {\n ...InvoiceSenderDetails\n }\n referralPage {\n ...ReferralDetails\n }\n showPremiumPaymentMethods\n premiumSelectedPaymentGateways {\n ...InvoicePremiumSelectedPaymentGateways\n }\n ...InvoiceList\n }\n }\n }\n}
1\n\nquery GetACOpeningDate {\n responseData: account {\n account_opening_date\n }\n}\n\nquery GetInAppMarketingConfig {\n responseData: all_configs {\n invoice {\n max_billable_item\n inAppInvoiceMarketingFeatureStatus\n invoiceApiVersion\n }\n }\n}\n\nquery GetAttachments(\n $entityId: String!\n $type: DocumentTypeEnum\n $status: DocumentStatusEnum\n) {\n responseData: getDocuments(\n entityId: $entityId\n type: $type\n status: $status\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n documents {\n id\n type\n fileName\n downloadLink\n }\n }\n }\n}\n\nquery GetSavedItems(\n $limit: Int\n $offset: Int\n $sort: ProductSortOrderEnum\n $searchTerm: String\n) {\n responseData: getProducts(\n limit: $limit\n offset: $offset\n sort: $sort\n searchTerm: $searchTerm\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n products {\n id\n itemName\n itemDefaultCost\n description\n }\n }\n }\n}\n\nquery CheckPaymentCapabilities($paymentHid: PaymentMethodHidsEnum) {\n responseData: checkPaymentCapabilities(paymentHid: $paymentHid) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n paymentMethods {\n status\n description\n hid\n }\n }\n }\n}\n\nquery GetNextInvoiceNumber($id: String) {\n responseData: getNextInvoiceNumber(id: $id) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n invoiceNumber\n }\n }\n}\n\nquery FetchTransactionsByInvoiceId(\n $invoiceId: String!\n $offset: Int\n $limit: Int\n $searchTerm: String\n) {\n responseData: getTransactionsByAmountFirst(\n invoiceId: $invoiceId\n offset: $offset\n limit: $limit\n searchTerm: $searchTerm\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n transactions {\n id\n amount\n description\n isSuggested\n createdDate\n medium\n }\n }\n }\n}\n\nquery GetInvoiceDetailsByCode($code: String!) {\n responseData: getInvoiceByCode(code: $code) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n id\n sendMeACopy\n status\n paymentLink\n note\n dueDate\n scheduledDate\n dueDays\n recurringId\n recipients\n invoiceTotal\n invoiceNumber\n discountType\n discountTotal\n discountValue\n taxType\n taxTotal\n taxValue\n shippingValue\n invoiceSentDate\n paidPaymentDetails\n paidDate\n invoiceSubTotal\n reminders\n createdAt\n updatedAt\n isArchived\n attachments {\n id\n type\n fileName\n downloadLink\n }\n selectedPaymentMethods {\n name\n paymentCategoryType\n description\n categoryIcon\n hasConnectionError\n paymentValues {\n id\n hid\n name\n displayName\n paymentLimits {\n min\n max\n }\n connectionInformation {\n isConnected\n account {\n displayName\n email\n }\n }\n iconUrl\n type\n paymentId\n paymentName\n paymentMethods {\n value\n }\n details {\n bankAccountNumber\n routingNumber\n clientId\n merchantId\n stripePublishableKey\n stripeClientSecret\n squareLocationId\n type\n writeCheckTo\n mailCheckTo\n city\n state\n address\n addressLine2\n zipCode\n }\n }\n }\n paymentSchedules {\n ...PaymentSchedule\n }\n items {\n ...InvoiceItems\n }\n sender {\n ...InvoiceSenderDetails\n }\n referralPage {\n ...ReferralDetails\n referralViewed\n }\n totalAmountPaid\n whiteLabelStripePublishableKey\n showPremiumPaymentMethods\n premiumSelectedPaymentMethods {\n label\n title\n description\n isEnabled\n method\n checkDetails {\n writeCheckTo\n mailCheckTo\n address\n addressLine2\n city\n state\n zipCode\n }\n paymentLimits {\n min\n max\n }\n }\n payableAmount\n customer {\n companyName\n }\n invoiceAccount {\n id\n status\n }\n }\n }\n}\n\nquery GetInvoiceCustomers(\n $searchTerm: String\n $limit: Int\n $offset: Int\n $id: String\n $sortOrder: SortOrder\n $sortBy: InvoiceCustomerSortByEnum\n) {\n responseData: getInvoiceCustomers(\n searchTerm: $searchTerm\n limit: $limit\n offset: $offset\n id: $id\n sortOrder: $sortOrder\n sortBy: $sortBy\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n invoiceCustomers {\n id\n email\n companyName\n email\n clientName\n lastInvoicedDate\
1n }\n }\n }\n}\n\nquery GetInvoiceCustomersOnCreateInvoice(\n $searchTerm: String\n $limit: Int\n $offset: Int\n $id: String\n $sortOrder: SortOrder\n $sortBy: InvoiceCustomerSortByEnum\n) {\n responseData: getInvoiceCustomers(\n searchTerm: $searchTerm\n limit: $limit\n offset: $offset\n id: $id\n sortOrder: $sortOrder\n sortBy: $sortBy\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n invoiceCustomers {\n id\n phone\n companyName\n email\n clientName\n addressLine1\n addressLine2\n city\n state\n zip\n customerStatus\n }\n }\n }\n}\n\nquery GetInvoiceCustomerById(\n $searchTerm: String\n $limit: Int\n $offset: Int\n $id: String\n $sortOrder: SortOrder\n $sortBy: InvoiceCustomerSortByEnum\n) {\n responseData: getInvoiceCustomers(\n searchTerm: $searchTerm\n limit: $limit\n offset: $offset\n id: $id\n sortOrder: $sortOrder\n sortBy: $sortBy\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n invoiceCustomers {\n id\n email\n companyName\n email\n phone\n addressLine1\n addressLine2\n city\n state\n zip\n status\n createdAt\n clientName\n lastInvoicedDate\n customerStatus\n isDeleteAllowed\n hasActiveInvoices\n }\n }\n }\n}\n\nquery InvoiceOnBoardingInfo {\n responseData: getInvoiceSettings {\n message\n title\n success\n hasError\n statusCode\n userErrors\n\n data {\n id\n defaultReminders\n businessInfo {\n businessId\n businessName\n dba\n email\n phone\n address\n addressLine2\n city\n state\n zipCode\n sourceName\n }\n referralPage {\n ...ReferralDetails\n }\n ...InvoiceBrandingFragment\n }\n }\n}\n\nquery InvoiceCustomizationInfo {\n responseData: getInvoiceSettings {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n ...InvoiceBrandingFragment\n }\n }\n}\n\nquery InvoiceOnboardingPaymentData {\n responseData: getInvoiceSettingsPaymentOptions {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n paymentOptions {\n id\n hid\n name\n connectionInformation {\n isConnected\n isInvoiceEnabled\n }\n iconUrl\n invoicingPaymentDescription\n type\n }\n }\n }\n}\n\nquery FetchCreateInvoicePaymentOptions {\n responseData: getCreateInvoicePaymentOptions {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n paymentOptions {\n name\n paymentCategoryType\n description\n categoryIcon\n errorDescription\n hasConnectionError\n subDescription\n displayOrder\n bannerDetails {\n iconUrl\n title\n description\n }\n paymentValues {\n id\n hid\n name\n displayName\n connectionInformation {\n isInvoiceEnabled\n isConnected\n }\n iconUrl\n\n type\n isDefaultSelected\n paymentId\n paymentName\n paymentMethods {\n value\n }\n paymentLimits {\n max\n min\n }\n }\n }\n premiumPaymentGateways {\n gatewayName\n gatewayId\n paymentMethods {\n label\n title\n description\n isEnabled\n method\n checkDetails {\n writeCheckTo\n mailCheckTo\n address\n addressLine2\n city\n state\n zipCode\n }\n paymentLimits {\n min\n max\n }\n }\n }\n }\n }\n}
1\n\nquery GetBetaStatus {\n responseData: getInvoiceConfigs {\n hasError\n message\n title\n success\n statusCode\n userErrors\n data {\n showBeta\n }\n }\n}\n\nquery GetInvoiceSignedUrl($invoiceId: String!) {\n responseData: getInvoiceSignedUrl(invoiceId: $invoiceId) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n url\n }\n }\n}\n\nquery GetActivities(\n $invoiceId: String\n $customerId: String\n $recurringSeriesId: String\n) {\n responseData: getActivities(\n invoiceId: $invoiceId\n customerId: $customerId\n recurringSeriesId: $recurringSeriesId\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n activities {\n title\n description\n iconType\n cta {\n type\n transactionId\n transactionReferenceNumber\n }\n }\n }\n }\n}\n\nquery GetACLFeatures {\n responseData: getAclFeatures {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n invoice {\n permissions {\n split\n create\n }\n conditions {\n split {\n limit\n }\n }\n }\n subscription\n marketing {\n setupPaymentBanner\n continueSetupPaymentBanner\n showApplicationOptInBanner\n }\n estimate {\n permissions {\n create\n }\n }\n menu\n dashboard {\n permissions {\n recentActivitiesWidget\n insightsWidget\n estimateWidget\n paymentsWidget\n invoiceStatusWidget\n invoiceOverdueWidget\n showDowngradeAcknowledgmentBanner\n }\n }\n client {\n permissions {\n clientAvgTimeToPayWidget\n clientInvoiceSentWidget\n clientPaymentWidget\n clientTotalPaymentLast30DaysWidget\n clientTotalPaymentWidget\n }\n }\n }\n }\n}\n\nquery GetClientArchivePreviewInvoices(\n $limit: Int\n $customerId: String\n $offset: Int\n $status: [InvoiceStatusEnum!]\n) {\n responseData: getInvoicesList(\n limit: $limit\n customerId: $customerId\n offset: $offset\n status: $status\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n invoices {\n id\n status\n invoiceTotal\n invoiceNumber\n recurringId\n }\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function s(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){s(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){s(e,n)})),e.definitions&&e.definitions.forEach((function(e){s(e,n)}))}i.definitions=i.definitions.concat(a(96191).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!t[n]&&(t[n]=!0,!0)})));var r={};function d(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function l(e,n){var a={kind:e.kind,definitions:[d(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var i=r[n]||new Set,t=new Set,s=new Set;for(i.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){t.has(e)||(t.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return t.forEach((function(n){var i=d(e,n);i&&a.definitions.push(i)})),a}i.definitions.forEach((function(e){if(e.name){var n=new Set;s(e,n),r[e.name.value]=n}})),e.exports=i,e.exports.GetInvoicesList=l(i,"GetInvoicesList"),e.exports.GetDashboardInvoiceList=l(i,"GetDashboardInvoiceList"),e.exports.GetInvoiceListById=l(i,"GetInvoiceListById"),e.exports.GetACOpeningDate=l(i,"GetACOpeningDate"),e.exports.GetInAppMarketingConfig=l(i,"GetInAppMarketingConfig"),e.exports.GetAttachments=l(i,"GetAttachments"),e.exports.GetSavedItems=l(i,"GetSavedItems"),e.exports.CheckPaymentCapabilities=l(i,"CheckPaymentCapabilities"),e.exports.GetNextInvoiceNumber=l(i,"GetNextInvoiceNumber"),e.exports.FetchTransactionsByInvoiceId=l(i,"FetchTransactionsByInvoiceId"),e.exports.GetInvoiceDetailsByCode=l(i,"GetInvoiceDetailsByCode"),e.exports.GetInvoiceCustomers=l(i,"GetInvoiceCustomers"),e.exports.GetInvoiceCustomersOnCreateInvoice=l(i,"GetInvoiceCustomersOnCreateInvoice"),e.exports.GetInvoiceCustomerById=l(i,"GetInvoiceCustomerById"),e.exports.InvoiceOnBoardingInfo=l(i,"InvoiceOnBoardingInfo"),e.exports.InvoiceCustomizationInfo=l(i,"InvoiceCustomizationInfo"),e.exports.InvoiceOnboardingPaymentData=l(i,"InvoiceOnboardingPaymentData"),e.exports.FetchCreateInvoicePaymentOptions=l(i,"FetchCreateInvoicePaymentOptions"),e.exports.GetBetaStatus=l(i,"GetBetaStatus"),e.exports.GetInvoiceSignedUrl=l(i,"GetInvoiceSignedUrl"),e.exports.GetActivities=l(i,"GetActivities"),e.exports.GetACLFeatures=l(i,"GetACLFeatures"),e.exports.GetClientArchivePreviewInvoices=l(i,"GetClientArchivePreviewInvoices")},1263(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VerifyPersonalInformation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"personal_information"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"ssn"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dob"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VerifyBusinessInformation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"business_information"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"company_name"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dba"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"website"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VerifyBusinessDetail
1s"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"business_details"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"business_type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maskedEin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ein"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VerifyOwnershipDetails"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"business_details"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"owners"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetReviewTermsLinks"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceConfigs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reviewTerms"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"terms"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cta"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetNovoPaymentsTermsOfService"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceConfigs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"novoPaymentsTermsOfService"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPaymentOnboardingInfo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceVendorOnboardingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"applicationStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stepsInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inReview"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCompleted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"showInReviewLabel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dba"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"businessName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"businessAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ein"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"website"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dob"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ssn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"legalFullName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"homeAddress"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"businessOwnership"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inReview"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCompleted"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"businessDescription"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inReview"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCompleted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"businessDescription"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"termsReviews"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inReview"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCompleted"},arguments:[],directives:[]}]}}]}}
1,{kind:"Field",name:{kind:"Name",value:"inReviewData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submittedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"estimatedReviewTime"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CheckIfPaymentMethodSetupVisited"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceVendorOnboardingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentMethodSetupVisited"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPaymentOnboardingAdditionalInfo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceVendorOnboardingAdditionalInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"genericError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ctaText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"redirectTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"groupName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inputType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requirements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"validations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minTextLength"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxTextLength"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileValidations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowedDocumentLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"allowedDocumentType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"front"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"back"},arguments:[],directives:[]}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPaymentOnboardingAdditionalInfo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"response"},name:{kind:"Name",value:"getInvoiceVendorOnboardingAdditionalInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"operationInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"requirements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ctaText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iconType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inputType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorCode"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:2996}};n.loc.source={body:"query VerifyPersonalInformation {\n responseData: personal_information {\n name {\n data\n }\n address {\n data\n }\n ssn {\n data\n }\n dob {\n data\n }\n }\n}\n\nquery VerifyBusinessInformation {\n responseData: business_information {\n company_name {\n data\n }\n dba {\n data\n }\n address {\n data\n }\n website {\n data\n }\n }\n}
1\n\nquery VerifyBusinessDetails {\n responseData: business_details {\n business_type\n maskedEin\n ein\n }\n}\n\nquery VerifyOwnershipDetails {\n responseData: business_details {\n owners\n }\n}\n\nquery GetReviewTermsLinks {\n responseData: getInvoiceConfigs {\n hasError\n message\n title\n success\n statusCode\n userErrors\n data {\n reviewTerms {\n terms\n cta {\n key\n text\n link\n }\n }\n }\n }\n}\n\nquery GetNovoPaymentsTermsOfService {\n responseData: getInvoiceConfigs {\n hasError\n message\n title\n success\n statusCode\n userErrors\n data {\n novoPaymentsTermsOfService\n }\n }\n}\n\nquery GetPaymentOnboardingInfo {\n responseData: getInvoiceVendorOnboardingInfo {\n operationInfo {\n message\n title\n statusCode\n }\n applicationStatus\n stepsInfo {\n accountInfo {\n inReview\n isCompleted\n showInReviewLabel {\n dba\n businessName\n businessAddress\n ein\n website\n dob\n ssn\n legalFullName\n homeAddress\n }\n }\n businessOwnership {\n inReview\n isCompleted\n }\n businessDescription {\n inReview\n isCompleted\n data {\n businessDescription\n }\n }\n termsReviews {\n inReview\n isCompleted\n }\n }\n inReviewData {\n submittedAt\n estimatedReviewTime\n }\n }\n}\n\nquery CheckIfPaymentMethodSetupVisited {\n responseData: getInvoiceVendorOnboardingInfo {\n operationInfo {\n message\n title\n statusCode\n }\n paymentMethodSetupVisited\n }\n}\n\nquery GetPaymentOnboardingAdditionalInfo {\n responseData: getInvoiceVendorOnboardingAdditionalInfo {\n operationInfo {\n message\n title\n statusCode\n }\n edges {\n title\n message\n genericError\n ctaText\n redirectTo\n groupName\n inputType\n requirements {\n label\n value\n errors {\n id\n message\n }\n }\n validations {\n minTextLength\n maxTextLength\n fileValidations {\n allowedDocumentLabel\n allowedDocumentType\n front\n back\n }\n }\n }\n }\n}\n\nquery GetPaymentOnboardingAdditionalInfo {\n response: getInvoiceVendorOnboardingAdditionalInfo {\n operationInfo {\n message\n statusCode\n title\n }\n requirements {\n type\n title\n message\n ctaText\n iconType\n inputType\n errorCode\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.VerifyPersonalInformation=s(n,"VerifyPersonalInformation"),e.exports.VerifyBusinessInformation=s(n,"VerifyBusinessInformation"),e.exports.VerifyBusinessDetails=s(n,"VerifyBusinessDetails"),e.exports.VerifyOwnershipDetails=s(n,"VerifyOwnershipDetails"),e.exports.GetReviewTermsLinks=s(n,"GetReviewTermsLinks"),e.exports.GetNovoPaymentsTermsOfService=s(n,"GetNovoPaymentsTermsOfService"),e.exports.GetPaymentOnboardingInfo=s(n,"GetPaymentOnboardingInfo"),e.exports.CheckIfPaymentMethodSetupVisited=s(n,"CheckIfPaymentMethodSetupVisited"),e.exports.GetPaymentOnboardingAdditionalInfo=s(n,"GetPaymentOnboardingAdditionalInfo"),e.exports.GetPaymentOnboardingAdditionalInfo=s(n,"GetPaymentOnboardingAdditionalInfo")},36431(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPayments"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"InvoiceTransactionsOrderByColumnEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}},type:{kind:"NamedType",name:{kind:"Name",value:"SortOrder"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"customerId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getPayments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"Variable",name:{kind:"Name",value:"sortBy"}}},{kind:"Argument",name:{kind:"Name",value:"sortOrder"},value:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"customerId"},value:{kind:"Variable",name:{kind:"Name",value:"customerId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"payments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceTransactionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transactionTimestamp"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPaymentsList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"invoiceId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"startDate"}},type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"endDate"}},type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getPaymentsList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}
1},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"startDate"},value:{kind:"Variable",name:{kind:"Name",value:"startDate"}}},{kind:"ObjectField",name:{kind:"Name",value:"endDate"},value:{kind:"Variable",name:{kind:"Name",value:"endDate"}}},{kind:"ObjectField",name:{kind:"Name",value:"invoiceId"},value:{kind:"Variable",name:{kind:"Name",value:"invoiceId"}}},{kind:"ObjectField",name:{kind:"Name",value:"clientId"},value:{kind:"Variable",name:{kind:"Name",value:"clientId"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fee"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"netAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transactionTimestamp"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transactionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isAutoReconciled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentDescription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethodDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expiryDate"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentGatewayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isAutoReconciled"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalRecords"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"offset"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"limit"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPaymentDetails"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getPaymentDetails"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fee"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"netAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transactionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isAutoReconciled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentDescription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethodDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expiryDate"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalAmountPaid"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clientName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentTrackingDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"processing"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"initiatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"completedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"inTransit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"initiatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"completedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"completed"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"initiatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"completedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"paymentGatewayName"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPaymentsToolTips"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getInvoiceConfigs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentToolTips"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"processing"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inTransit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"completed"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPaymentLinkedTransactionInfo"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetPaymentDetailsInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getPaymentDetails"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ddaTransaction"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"medium"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPaymentDisputeList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PaymentDisputesFilters"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getPaymentDisputes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceTransactionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reason"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"responseDeadline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"alert"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ctaText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ctaType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"iconType"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"zendeskTicketId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"crmTicketId"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:3197}};n.loc.source={body:"query GetPayments(\n $sortBy: InvoiceTransactionsOrderByColumnEnum\n $sortOrder: SortOrder\n $limit: Int\n $offset: Int\n $customerId: String!\n) {\n responseData: getPayments(\n sortBy: $sortBy\n sortOrder: $sortOrder\n limit: $limit\n offset: $offset\n customerId: $customerId\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n payments {\n invoiceNumber\n invoiceId\n invoiceTransactionId\n amount\n transactionTimestamp\n }\n }\n }\n}\n\nquery GetPaymentsList(\n $limit: Int!\n $offset: Int!\n $invoiceId: String\n $startDate: DateTime\n $endDate: DateTime\n $clientId: String\n) {\n responseData: getPaymentsList(\n limit: $limit\n offset: $offset\n filters: {\n startDate: $startDate\n endDate: $endDate\n invoiceId: $invoiceId\n clientId: $clientId\n }
1\n ) {\n edges {\n id\n amount\n fee\n netAmount\n createdAt\n transactionTimestamp\n transactionId\n paymentMethod\n isAutoReconciled\n paymentDescription\n paymentMethodDetails {\n bankName\n bankAccountNumber\n cardType\n cardNumber\n expiryDate\n }\n status\n invoice {\n id\n invoiceNumber\n }\n customer {\n id\n name\n clientName\n }\n paymentGatewayName\n isAutoReconciled\n }\n pageInfo {\n totalRecords\n offset\n limit\n }\n }\n}\n\nquery GetPaymentDetails($id: String!) {\n responseData: getPaymentDetails(input: { id: $id }) {\n id\n amount\n fee\n netAmount\n createdAt\n transactionId\n paymentMethod\n isAutoReconciled\n paymentDescription\n paymentMethodDetails {\n bankName\n bankAccountNumber\n cardType\n cardNumber\n expiryDate\n }\n status\n invoice {\n id\n invoiceNumber\n invoiceTotal\n totalAmountPaid\n }\n customer {\n id\n name\n clientName\n email\n address\n }\n paymentTrackingDetails {\n processing {\n initiatedAt\n completedAt\n state\n }\n inTransit {\n initiatedAt\n completedAt\n state\n }\n completed {\n initiatedAt\n completedAt\n state\n }\n }\n paymentGatewayName\n }\n}\n\nquery GetPaymentsToolTips {\n responseData: getInvoiceConfigs {\n hasError\n message\n title\n success\n statusCode\n userErrors\n data {\n paymentToolTips {\n processing\n inTransit\n completed\n }\n }\n }\n}\n\nquery GetPaymentLinkedTransactionInfo($input: GetPaymentDetailsInput!) {\n responseData: getPaymentDetails(input: $input) {\n id\n ddaTransaction {\n id\n createdDate\n description\n amount\n medium\n }\n }\n}\n\nquery GetPaymentDisputeList($filters: PaymentDisputesFilters!) {\n responseData: getPaymentDisputes(filters: $filters) {\n edges {\n id\n invoiceTransactionId\n amount\n reason\n status\n responseDeadline\n alert {\n type\n message\n ctaText\n ctaType\n title\n iconType\n }\n zendeskTicketId\n crmTicketId\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function s(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=i[n]||new Set,r=new Set,d=new Set;for(s.forEach((function(e){d.add(e)}));d.size>0;){var l=d;d=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.GetPayments=s(n,"GetPayments"),e.exports.GetPaymentsList=s(n,"GetPaymentsList"),e.exports.GetPaymentDetails=s(n,"GetPaymentDetails"),e.exports.GetPaymentsToolTips=s(n,"GetPaymentsToolTips"),e.exports.GetPaymentLinkedTransactionInfo=s(n,"GetPaymentLinkedTransactionInfo"),e.exports.GetPaymentDisputeList=s(n,"GetPaymentDisputeList")},84272(e,n,a){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRecurringList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchString"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"startDate"}},type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"endDate"}},type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"status"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RecurringSeriesStatusEnum"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}},type:{kind:"NamedType",name:{kind:"Name",value:"SortOrder"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"RecurringSeriesOrderByColumnEnum"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getRecurringSeriesList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"searchString"},value:{kind:"Variable",name:{kind:"Name",value:"searchString"}}},{kind:"Argument",name:{kind:"Name",value:"startDate"},value:{kind:"Variable",name:{kind:"Name",value:"startDate"}}},{kind:"Argument",name:{kind:"Name",value:"endDate"},value:{kind:"Variable",name:{kind:"Name",value:"endDate"}}},{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"Variable",name:{kind:"Name",value:"status"}}},{kind:"Argument",name:{kind:"Name",value:"sortOrder"},value:{kind:"Variable",name:{kind:"Name",value:"sortOrder"}}},{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"Variable",name:{kind:"Name",value:"sortBy"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recurringSeriesList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seriesId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextRecurringDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"repeatType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"frequency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recurringEnds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"invoiceTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scheduledDate"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRecurringListById"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getRecurringSeriesList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recurringSeriesList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"note"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seriesId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextRecurringDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueDays"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"repeatType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"frequency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recurringEnds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recipients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reminders"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shippingValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceSubTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scheduledDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceSentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"generatedCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceItems"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"sender"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceSenderDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"selectedPaymentMethods"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceSelectedPaymentMethods"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoiceCustomer"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"premiumSelectedPaymentGateways"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InvoicePremiumSelectedPaymentGateways"},directives:[]}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRecurringInvoiceHistory"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recurringId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"order"}},type:{kind:"NamedType",name:{kind:"Name",value:"SortOrder"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"getRecurringSeriesInvoices"},arguments:[{kind:"Argument",name:{kind:"Name",value:"recurringId"},value:{kind:"Variable",name:{kind:"Name",value:"recurringId"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"sortOrder"},value:{kind:"Variable",name:{kind:"Name",value:"order"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invoices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceSentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scheduledDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"invoiceTotal"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"statusCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:2575}};i.loc.source={body:"#import '../fragments/index.graphql'\nquery GetRecurringList(\n $id: String\n $offset: Int\n $limit: Int\n $searchString: String\n $startDate: DateTime\n $endDate: DateTime\n $status: [RecurringSeriesStatusEnum!]\n $sortOrder: SortOrder\n $sortBy: RecurringSeriesOrderByColumnEnum\n) {\n responseData: getRecurringSeriesList(\n id: $id\n offset: $offset\n limit: $limit\n searchString: $searchString\n startDate: $startDate\n endDate: $endDate\n status: $status\n sortOrder: $sortOrder\n sortBy: $sortBy\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n recurringSeriesList {\n id\n seriesId\n status\n nextRecurringDate\n repeatType\n frequency\n recurringEnds\n customer {\n email\n companyName\n }\n invoiceTotal\n scheduledDate\n }\n }\n }\n}\n\nquery GetRecurringListById($id: String) {\n responseData: getRecurringSeriesList(id: $id) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n recurringSeriesList {\n id\n note\n status\n seriesId\n nextRecurringDate\n endType\n dueDays\n repeatType\n frequency\n endValue\n recurringEnds\n recipients\n reminders\n discountType\n discountValue\n discountTotal\n taxType\n taxValue\n taxTotal\n shippingValue\n invoiceTotal\n invoiceSubTotal\n invoiceNumber\n invoiceId\n scheduledDate\n invoiceSentDate\n generatedCount\n items {\n ...InvoiceItems\n }\n sender {\n ...InvoiceSenderDetails\n }\n selectedPaymentMethods {\n ...InvoiceSelectedPaymentMethods\n }\n customer {\n ...InvoiceCustomer\n }\n premiumSelectedPaymentGateways {\n ...InvoicePremiumSelectedPaymentGateways\n }\n }\n }\n }\n}\n\nquery GetRecurringInvoiceHistory(\n $recurringId: String!\n $limit: Int\n $offset: Int\n $order: SortOrder\n) {\n responseData: getRecurringSeriesInvoices(\n recurringId: $recurringId\n limit: $limit\n offset: $offset\n sortOrder: $order\n ) {\n message\n title\n success\n hasError\n statusCode\n userErrors\n data {\n invoices {\n id\n status\n invoiceNumber\n invoiceSentDate\n scheduledDate\n invoiceTotal\n }\n }\n message\n title\n success\n hasError\n statusCode\n userErrors\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function s(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){s(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){s(e,n)})),e.definitions&&e.definitions.forEach((function(e){s(e,n)}))}i.definitions=i.definitions.concat(a(96191).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!t[n]&&(t[n]=!0,!0)})));var r={};function d(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}function l(e,n){var a={kind:e.kind,definitions:[d(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var i=r[n]||new Set,t=new Set,s=new Set;for(i.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){t.has(e)||(t.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return t.forEach((function(n){var i=d(e,n);i&&a.definitions.push(i)})),a}i.definitions.forEach((function(e){if(e.name){var n=new Set;s(e,n),r[e.name.value]=n}})),e.exports=i,e.exports.GetRecurringList=l(i,"GetRecurringList"),e.exports.GetRecurringListById=l(i,"GetRecurringListById"),e.exports.GetRecurringInvoiceHistory=l(i,"GetRecurringInvoiceHistory")},49821(e,n,a){"use strict";e.exports=a.p+"venmo.c6fb5959a1e87de1.svg"}}]); 2//# sourceMappingURL=Invoice Details.51bd55c87415bce4.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.