| Server IP : 146.59.209.152 / Your IP : 216.73.216.152 Web Server : Apache System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : monpetu ( 144298) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/monpetu/www/ipprint/wp-content/plugins/woocommerce-payments/dist/chunks/ |
Upload File : |
"use strict";(globalThis.webpackChunkwoocommerce_payments=globalThis.webpackChunkwoocommerce_payments||[]).push([[551],{5408(e,t,a){a.r(t),a.d(t,{DepositDetails:()=>A,DepositOverview:()=>k,default:()=>N});var s=a(1609),o=a(7723),r=a(8846),c=a(8358),n=a(4164),i=a(6427),l=a(6687),m=a(691),u=a(4848);const d=({textToCopy:e,label:t})=>{const[a,r]=(0,s.useState)(!1);return(0,u.jsx)("button",{type:"button",className:(0,n.A)("woopayments-copy-button",{"state--copied":a}),"aria-label":t,title:(0,o.__)("Copy to clipboard","woocommerce-payments"),onClick:()=>{navigator.clipboard.writeText(e),r(!0)},onAnimationEnd:()=>r(!1),children:(0,u.jsx)("i",{})})};var p=a(7583),y=a(9199),_=a(2335),w=a(5837),h=a(5798),x=a(4937),f=a(1104),b=a(7564);const v=({deposit:e})=>{let t=f.wf;return"withdrawal"===e.type&&(t={...t,paid:t.deducted}),(0,u.jsx)(r.OrderStatus,{order:{status:e.status},orderStatusMap:t})},j=({label:e,value:t,valueClass:a,detail:s})=>(0,u.jsx)("li",{className:"woocommerce-summary__item-container",children:(0,u.jsxs)("div",{className:"woocommerce-summary__item",children:[(0,u.jsx)("div",{className:"woocommerce-summary__item-label",children:e}),(0,u.jsx)("div",{className:"woocommerce-summary__item-data",children:(0,u.jsx)("div",{className:(0,n.A)("woocommerce-summary__item-value",a),children:t})}),s&&(0,u.jsx)("div",{className:"wcpay-summary__item-detail",children:s})]})}),g=({deposit:e})=>{let t=(0,o.__)("Payout date","woocommerce-payments");return e.automatic||(t=(0,o.__)("Instant payout date","woocommerce-payments")),"withdrawal"===e.type&&(t=(0,o.__)("Withdrawal date","woocommerce-payments")),(0,u.jsx)(j,{label:`${t}: `+(0,b._)(e.date),value:(0,u.jsx)(v,{deposit:e})},"depositDate")},k=({deposit:e})=>{if(!e)return(0,u.jsx)(h.A,{icon:!0,status:"error",isDismissible:!1,children:(0,o.__)("The deposit you are looking for cannot be found.","woocommerce-payments")});const t="withdrawal"===e.type;return(0,u.jsxs)("div",{className:"wcpay-deposit-overview",children:[e.automatic?(0,u.jsx)(i.Card,{className:"wcpay-deposit-automatic",children:(0,u.jsxs)("ul",{children:[(0,u.jsx)(g,{deposit:e}),(0,u.jsx)("li",{className:"wcpay-deposit-amount",children:(0,x.$9)(e.amount,e.currency)})]})}):(0,u.jsx)(r.SummaryList,{label:t?(0,o.__)("Withdrawal overview","woocommerce-payments"):(0,o.__)("Payout overview","woocommerce-payments"),children:()=>[(0,u.jsx)(g,{deposit:e},"dateItem"),(0,u.jsx)(j,{label:t?(0,o.__)("Withdrawal amount","woocommerce-payments"):(0,o.__)("Payout amount","woocommerce-payments"),value:(0,x.$9)(e.amount+e.fee,e.currency)},"depositAmount"),(0,u.jsx)(j,{label:(0,o.sprintf)((0,o.__)("%s service fee","woocommerce-payments"),`${e.fee_percentage}%`),value:(0,x.vv)(e.fee,e.currency),valueClass:e.fee>0&&"wcpay-deposit-fee"},"depositFees"),(0,u.jsx)(j,{label:t?(0,o.__)("Net withdrawal amount","woocommerce-payments"):(0,o.__)("Net payout amount","woocommerce-payments"),value:(0,x.$9)(e.amount,e.currency),valueClass:"wcpay-deposit-net"},"netDepositAmount")]}),"failed"===e.status&&(0,u.jsxs)(w.A,{status:"error",isDismissible:!1,children:[(0,u.jsx)("strong",{children:(0,o.__)("Failure reason: ","woocommerce-payments")}),f.Zf[e.failure_code]||e.failure_message||(0,o.__)("Unknown","woocommerce-payments")]},"payout-failure-notice"),(0,u.jsxs)(i.Card,{children:[(0,u.jsx)(i.CardHeader,{children:(0,u.jsx)(i.__experimentalText,{size:16,weight:600,children:t?(0,o.__)("Withdrawal details","woocommerce-payments"):(0,o.__)("Payout details","woocommerce-payments")})}),(0,u.jsx)(i.CardBody,{children:(0,u.jsxs)("div",{className:"woopayments-payout-details-header",children:[(0,u.jsxs)("div",{className:"woopayments-payout-details-header__item",children:[(0,u.jsx)("h2",{children:(0,o.__)("Bank account","woocommerce-payments")}),(0,u.jsx)("div",{className:"woopayments-payout-details-header__value",children:e.bankAccount})]}),(0,u.jsxs)("div",{className:"woopayments-payout-details-header__item",children:[(0,u.jsx)("h2",{children:(0,o.__)("Bank reference ID","woocommerce-payments")}),(0,u.jsx)("div",{className:"woopayments-payout-details-header__value",children:e.bank_reference_key?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("span",{className:"woopayments-payout-details-header__bank-reference-id",children:e.bank_reference_key}),(0,u.jsx)(d,{textToCopy:e.bank_reference_key,label:(0,o.__)("Copy bank reference ID to clipboard","woocommerce-payments")})]}):(0,u.jsx)("div",{className:"woopayments-payout-details-header__value",children:(0,o.__)("Not available","woocommerce-payments")})})]})]})})]})]})},A=({query:{id:e}})=>{const{deposit:t,isLoading:a}=(0,l.qX)(e),s=!a&&t&&!t.automatic;return(0,u.jsxs)(p.A,{children:[(0,u.jsx)(_.Y,{currentPage:"deposits",isDetailsView:!0}),(0,u.jsx)(y.A,{children:a?(0,u.jsx)(r.SummaryListPlaceholder,{numberOfItems:2}):(0,u.jsx)(k,{deposit:t})}),t&&(0,u.jsx)(y.A,{children:s?(0,u.jsxs)(i.Card,{children:[(0,u.jsx)(i.CardHeader,{children:(0,u.jsx)(i.__experimentalText,{size:16,weight:600,as:"h2",children:(0,o.__)("Payout transactions","woocommerce-payments")})}),(0,u.jsx)(i.CardBody,{className:"wcpay-deposit-overview--instant__transactions-list-message",children:(0,c.A)({mixedString:(0,o.__)("We're unable to show transaction history on instant payouts. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:(0,u.jsx)(i.ExternalLink,{href:"https://woocommerce.com/document/woopayments/payouts/instant-payouts/#transactions"})}})})]}):(0,u.jsx)(m.A,{depositId:e})})]})},N=A},1073(e,t,a){a.r(t),a.d(t,{default:()=>z});var s=a(1609),o=a(6427),r=a(3832),c=a(7583),n=a(8358),i=a(7723),l=a(2335),m=a(5837),u=a(8449),d=a(6687),p=a(9481),y=a(2461),_=a(8846),w=a(6476),h=a(7143),x=a(8468),f=a(1104),b=a(4937),v=a(5725),j=a(6519),g=a(7074);const k=Object.entries(f.wf).filter(([e])=>"deducted"!==e).map(([e,t])=>"paid"===e?{label:(0,i.__)("Completed","woocommerce-payments"),value:"paid"}:{label:t,value:e}),A=[{label:(0,i.__)("Payout currency","woocommerce-payments"),param:"store_currency_is",staticParams:["paged","per_page","orderby","order","filter","date_before","date_after","date_between","status_is","status_is_not","match"],showFilters:()=>!1,filters:[{label:(0,i.__)("All","woocommerce-payments"),value:"---"}],defaultValue:"---"},{label:(0,i.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","orderby","order","store_currency_is"],showFilters:()=>!0,filters:[{label:(0,i.__)("All payouts","woocommerce-payments"),value:"all"},{label:(0,i.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}],N=(0,g.P)("wcVersion"),S=parseFloat(N),C={title:S<7.8?(0,i.__)("Payouts match {{select /}} filters","woocommerce-payments"):(0,i.__)("Payouts match <select /> filters","woocommerce-payments"),filters:{date:{labels:{add:(0,i.__)("Date","woocommerce-payments"),remove:(0,i.__)("Remove payout date filter","woocommerce-payments"),rule:(0,i.__)("Select a payout date filter match","woocommerce-payments"),title:S<7.8?(0,i.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,i.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),filter:(0,i.__)("Select a payout date","woocommerce-payments")},rules:[{value:"before",label:(0,i.__)("Before","woocommerce-payments")},{value:"after",label:(0,i.__)("After","woocommerce-payments")},{value:"between",label:(0,i.__)("Between","woocommerce-payments")}],input:{component:"Date"}},status:{labels:{add:(0,i.__)("Status","woocommerce-payments"),remove:(0,i.__)("Remove payout status filter","woocommerce-payments"),rule:(0,i.__)("Select a payout status filter match","woocommerce-payments"),title:S<7.8?(0,i.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,i.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),filter:(0,i.__)("Select a payout status","woocommerce-payments")},rules:[{value:"is",label:(0,i._x)("Is","payout status","woocommerce-payments")},{value:"is_not",label:(0,i._x)("Is not","payout status","woocommerce-payments")}],input:{component:"SelectControl",options:k}}}};var D=a(4848);const L=e=>{return(0,D.jsx)("div",{className:"woocommerce-filters-deposits",children:(0,D.jsx)(_.ReportFilters,{filters:(t=A,t.forEach(t=>{if("store_currency_is"===t.param){const a=e.storeCurrencies||[];t.filters=[t.filters[0],...a.map(e=>({label:(0,b.Or)(e),value:e}))],t.filters.length>2&&(t.showFilters=()=>!0)}}),t),advancedFilters:C,showDatePicker:!1,path:"/payments/payouts",query:(0,w.getQuery)()})});var t};var P=a(2819),I=a(6892),R=a(612),E=a(9378),Q=a(7666),T=a(7564),B=a(2421);const q=()=>{const{deposits:e,isLoading:t}=(0,d.z)((0,w.getQuery)()),{depositsSummary:a,isLoading:s}=(0,d.lQ)((0,w.getQuery)()),{requestReportExport:o,isExportInProgress:r}=(0,Q.u)(),{createNotice:n}=(0,h.useDispatch)("core/notices"),l=[{key:"details",label:"",required:!0,cellClassName:"info-button "+(!(0,w.getQuery)().orderby||"date"===(0,w.getQuery)().orderby?"is-sorted":""),isLeftAligned:!0},{key:"date",label:(0,i.__)("Date","woocommerce-payments"),screenReaderLabel:(0,i.__)("Date","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"type",label:(0,i.__)("Type","woocommerce-payments"),screenReaderLabel:(0,i.__)("Type","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"amount",label:(0,i.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,i.__)("Amount","woocommerce-payments"),isNumeric:!0,required:!0,isSortable:!0},{key:"status",label:(0,i.__)("Status","woocommerce-payments"),screenReaderLabel:(0,i.__)("Status","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"bankAccount",label:(0,i.__)("Bank account","woocommerce-payments"),screenReaderLabel:(0,i.__)("Bank account","woocommerce-payments"),isLeftAligned:!0},{key:"bankReferenceId",label:(0,i.__)("Bank reference ID","woocommerce-payments"),screenReaderLabel:(0,i.__)("Bank reference ID","woocommerce-payments")}],{columnsToDisplay:m,onColumnsChange:u}=(0,B.L)("wc_payments_payouts_hidden_columns",l),p=a.count||0,g=e.map(e=>{const t=t=>(0,D.jsx)(j.A,{href:(0,v.g)(e.id,"payouts"),onClick:()=>(0,y.yM)("wcpay_deposits_row_click"),children:t}),a=(0,D.jsx)(v.A,{id:e.id,parentSegment:"payouts"}),s=(0,D.jsx)(_.Link,{href:(0,v.g)(e.id,"payouts"),onClick:()=>(0,y.yM)("wcpay_deposits_row_click"),children:(0,T._)(e.date)}),o={details:{value:e.id,display:a},date:{value:e.date,display:s},type:{value:f.x[e.type],display:t(f.x[e.type])},amount:{value:(0,b.o5)(e.amount,e.currency),display:t((0,b.$9)(e.amount,e.currency))},status:{value:f.wf[e.status],display:t((0,D.jsx)(E.A,{deposit:e}))},bankAccount:{value:e.bankAccount,display:t(e.bankAccount)},bankReferenceId:{value:e.bank_reference_key,display:t(e.bank_reference_key??"N/A")}};return m.map(({key:e})=>o[e]||{display:null})}),k="string"==typeof(0,w.getQuery)().store_currency_is,A=(a.store_currencies||[]).length<2;let N;void 0!==a.count&&void 0!==a.total&&!1===s&&(N=[{label:(0,i._n)("payout","payouts",a.count,"woocommerce-payments"),value:`${(0,R.CK)(a.count)}`}],(A||k)&&N.push({label:(0,i.__)("total","woocommerce-payments"),value:`${(0,b.$9)(a.total,a.currency)}`}));const S=a.store_currencies||(k?[(0,w.getQuery)().store_currency_is]:[]),C=!!g.length,{path:q}=(0,w.getQuery)();return(0,D.jsxs)(c.A,{children:[(0,D.jsx)(L,{storeCurrencies:S}),(0,D.jsx)(_.TableCard,{className:"wcpay-deposits-list woocommerce-report-table",title:(0,i.__)("Payout history","woocommerce-payments"),isLoading:t,rowsPerPage:(0,x.parseInt)((0,w.getQuery)().per_page??"")||25,totalRows:p,headers:m,rows:g,summary:N,query:(0,w.getQuery)(),onQueryChange:w.onQueryChange,onColumnsChange:u,actions:[C&&(0,D.jsx)(P.A,{isDisabled:t||r,isBusy:r,onClick:async()=>{(0,y.yM)("wcpay_csv_export_click",{row_type:"payouts",source:q,exported_row_count:a.count});const e=wcpaySettings.currentUserEmail,t=wcSettings.locale.userLocale,{date_before:s,date_after:r,date_between:c,match:l,status_is:m,status_is_not:u,store_currency_is:d}=(0,w.getQuery)(),_=(0,I.getPayoutsCSVRequestURL)({userEmail:e,locale:t,dateBefore:s,dateAfter:r,dateBetween:c,match:l,statusIs:m,statusIsNot:u,storeCurrencyIs:d}),h=!!(s||r||c||m||u||d),x=(0,i.sprintf)((0,i.__)("You are about to export %d deposits. If you'd like to reduce the size of your export, you can use one or more filters. Would you like to continue?","woocommerce-payments"),p);(h||p<1e3||window.confirm(x))&&(o({exportRequestURL:_,exportFileAvailabilityEndpoint:I.payoutsDownloadEndpoint,userEmail:e}),n("success",(0,i.sprintf)((0,i.__)("We’re processing your export. 🎉 The file will download automatically and be emailed to %s.","woocommerce-payments"),e)))}},"download")]})]})};var F=a(2760),O=a(810),W=a(9199),$=a(252);const M=()=>{const{overviews:{account:e}}=(0,d.GC)(),t=e?.default_external_accounts?.some(e=>"errored"===e.status)??!1;return{account:e,hasErroredExternalAccount:t}},Y=()=>{const{account:e,hasErroredExternalAccount:t}=M(),{isNextDepositNoticeDismissed:a,handleDismissNextDepositNotice:o}=(()=>{const[e,t]=(0,s.useState)(wcpaySettings.isNextDepositNoticeDismissed);return{isNextDepositNoticeDismissed:e,handleDismissNextDepositNotice:()=>{t(!0),wcpaySettings.isNextDepositNoticeDismissed=!0,(0,O.saveOption)("wcpay_next_deposit_notice_dismissed",!0)}}})(),r="deposits_unrestricted"===wcpaySettings.accountStatus.deposits?.restrictions,c=wcpaySettings.accountStatus.deposits?.completed_waiting_period,n=(0,F.St)(e?.deposits_schedule.interval);return r&&c&&e&&!a&&n&&!t?(0,D.jsx)(m.A,{status:"info",isDismissible:!0,onRemove:o,children:(0,D.jsx)(u.A,{depositsSchedule:e.deposits_schedule})}):null},U=()=>{const{hasErroredExternalAccount:e}=M(),t=wcpaySettings.accountStatus.accountLink?(0,r.addQueryArgs)(wcpaySettings.accountStatus.accountLink,{from:"WCPAY_PAYOUTS",source:"wcpay-payout-failure-notice"}):"";return e&&""!==t?(0,D.jsx)(m.A,{status:"warning",icon:!0,className:"deposit-failure-notice",isDismissible:!1,children:(0,n.A)({mixedString:(0,i.__)("Payouts are currently paused because a recent payout failed. Please {{updateLink/}}.","woocommerce-payments"),components:{updateLink:(0,D.jsx)(o.ExternalLink,{onClick:()=>(0,y.yM)("wcpay_account_details_link_clicked",{from:"WCPAY_PAYOUTS",source:"wcpay-payout-failure-notice"}),href:t,children:(0,i.__)("update your bank account details","woocommerce-payments")})}})}):null},z=()=>((0,p.t0)(),(0,D.jsxs)(c.A,{children:[(0,D.jsx)(l.Y,{currentPage:"deposits"}),(0,D.jsx)(Y,{}),(0,D.jsx)(U,{}),(0,D.jsx)(q,{}),(0,D.jsx)(W.A,{children:(0,D.jsx)($.A,{})})]}))}}]);