PageSourceSearch

https://dashboard.billie.io/4790.99357823b20908f5a43d.chunk.js

js billie.io collected 2026-09-25 02:32:47 UTC 10,980 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_frontends_paella_dashboard_ui=self.webpackChunk_frontends_paella_dashboard_ui||[]).push([[4790],{2186:(e,t,r)=>{r.d(t,{A:()=>P});var a=r(9824),n=r(7357),s=r(5926),d=r(4041),i=r(9067),o=r.n(i),c=r(8690),l=r(8867),m=r(6808),_=r(4542),u=r(3193),p=r(3868),y=r(9338),h=r(9111),A=r(5806),g=r(9469),x=r(7414),b=r(7699),j=r(9906),v=r(1085);const f=({deductibleAmount:e=null,fetchOrder:t,fetchInvoice:r,fetchInvoicePayments:a,isInvoiceLevel:n,onClose:s})=>{const i=(0,l.A)(),{uuid:o}=(0,c.g)(),[f,T]=(0,d.useState)(e),[N,P]=(0,d.useState)("idle"),E="success"===N||"error"===N;(0,d.useEffect)(()=>{e&&e!==f&&T(e)},[f,e]);const I=t=>E?null:(0,g.A)(t,["required","positiveNumber",{name:"max",param:e}]),C=(e,t)=>{switch(e){case"max":return(0,p.A)(i,{id:"order.error.complete_payment_max",params:{value:(0,u.I)(i,t,{format:"currency"})}});case"positiveNumber":return(0,p.A)(i,{id:"global.validation.errors.positive_number"});case"required":return(0,p.A)(i,{id:"global.validation.errors.required"});default:return(0,p.A)(i,{id:"global.validation.errors.default"})}},D=()=>"success"===N?"success":"error"===N?"error":"nba",O=(e,t)=>e&&t;return(0,v.jsxs)(h.Ah,{vertical:!0,gap:12,className:"trigger-payment",children:[(0,v.jsx)(h.D7,{variant:"text-h2",children:(0,p.A)(i,{id:"order.trigger_payment_modal.trigger_payment"})}),(0,v.jsx)(h.D7,{variant:"text-body",children:(0,p.A)(i,{id:"success"===N?"order.trigger_payment_modal.trigger_payment_success_body_message":"error"===N?"order.trigger_payment_modal.trigger_payment_failed_body_message":"order.trigger_payment_modal.body_main_message"+(n?"_for_invoice":""),params:{br:(0,v.jsx)("br",{}),amount:(0,v.jsx)("span",{className:"text--strong",children:(0,u.I)(i,f,{format:"currency"})})}})}),!E&&(0,v.jsx)(h.D7,{variant:"text-body",children:(0,p.A)(i,{id:"order.trigger_payment_modal.body_secondary_message"})}),(0,v.jsx)(m.l1,{initialValues:{amount:(0,x.dA)(e)},onSubmit:async e=>{if(E)return s();const d=(0,b.Oi)(e.amount);P("loading"),A.A.merchantPaymentFlow.amountProvided(d);try{return await _.FH.post(`/${n?"invoices":"order"}/${o}/confirm-payment`,{paid_amount:d}),P("success"),await(n?r(o):t(o)),a(o)}catch(i){return P("error")}},children:({setFieldValue:t,values:r,errors:a,touched:n})=>(0,v.jsxs)(m.lV,{noValidate:!0,children:[(0,v.jsx)(m.D0,{name:"amount",id:"amount",validate:I,children:({field:r})=>(0,v.jsx)(y.F,{...r,className:"trigger-payment__input-amount",htmlFor:"amount",label:(0,p.A)(i,{id:"order.trigger_payment_modal.enter_amount_label"}),validationState:O(!!n.amount,a.amount)?"error":"success",helperText:O(!!n.amount,a.amount)&&C(a.amount,e),inputAdornments:{startAdornment:(0,v.jsx)("span",{className:"trigger-payment__input-currency-icon"})},onChange:e=>(({target:e},t)=>{const{currency:r,updatedCursorPosition:a}=(0,b.FF)(e.value,e.selectionStart);t(e.name,r).then(()=>e.setSelectionRange(a,a)).catch(()=>{})})(e,t),onBlur:()=>(({setFieldValue:e,values:t})=>{t&&e("amount",(0,b.lT)(t.amount))})(t),onKeyPress:e=>(({key:e})=>(0,j.A)(e)?null:A.A.invalidCurrencyCharacterEntered("Report Payment",e))(e),disabled:"loading"===N||E,dataTest:"order-trigger_payment-input-amount"})}),(0,v.jsx)(h.OV,{appearance:"primary",iconState:D(),dataTest:`trigger-payment-button-${D()}`,type:"submit",style:{marginTop:24},children:(0,p.A)(i,{id:"success"===N?"order.trigger_payment_modal.in_repayment":"error"===N?"order.trigger_payment_modal.payment_unsucessful":"order.trigger_payment_modal.complete_payment"})}),E&&(0,v.jsx)(h.D7,{appearance:"light","data-test":"trigger-payment-sub-header",children:(0,p.A)(i,{id:"success"===N?"order.trigger_payment_modal.payment_confirmed":"error"===N?"order.trigger_payment_modal.payment_could_not_be_confirmed":""})})]})})]})};f.propTypes={onClose:o().func,fetchOrder:o().func,fetchInvoice:o().func,fetchInvoicePayments:o().func,deductibleAmount:o().number,isInvoiceLevel:o().bool};const T=f,N={fetchOrder:n.XD,fetchInvoice:s.gS,fetchInvoicePayments:s.f5},P=(0,a.Ng)(e=>({deductibleAmount:e.invoice.payments.summary?.deductible_amount}),N)(T)},5163:(e,t,r)=>{r.d(t,{A:()=>p});var a=r(9067),n=r.n(a),s=r(8867),d=r(3868),i=r(4853),o=r(9706),c=r(2015),l=r(3584),m=r(359),_=r(1085);function u({order:e,dataTest:t="address-info"}){const r=(0,s.A)(),a=e=>e?.country??e?.address_country;return(0,_.jsxs)("div",{"data-test":t,children:[(0,_.jsx)(i.A,{mainTitle:(0,d.A)(r,{id:"order.address_information_header"})}),(0,_.jsx)(c.A,{children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(o.A,{children:(0,_.jsx)(l.A,{dataTest:"order-address-section",label:(0,d.A)(r,{id:"order.invoice_recepient"}),value:(0,_.jsx)(m.A,{street:e.billing_address.street,house_number:e.billing_address.house_number,postal_code:e.billing_address.postal_code,city:e.b
1illing_address.city,country_code:a(e.billing_address),condensed:!0})})}),(0,_.jsx)(o.A,{children:(0,_.jsx)(l.A,{dataTest:"order.delivery_address",label:(0,d.A)(r,{id:"order.delivery_address"}),value:(0,_.jsx)(m.A,{street:e.delivery_address.street,house_number:e.delivery_address.house_number,postal_code:e.delivery_address.postal_code,city:e.delivery_address.city,country_code:a(e.delivery_address),condensed:!0})})})]})})]})}u.propTypes={order:n().object.isRequired,dataTest:n().string};const p=u},9337:(e,t,r)=>{r.d(t,{A:()=>p});var a=r(9067),n=r.n(a),s=r(8867),d=r(3657),i=r(3868),o=r(4853),c=r(9706),l=r(2015),m=r(3584),_=r(1085);function u({dataTest:e="customer-info",...t}){const r=(0,s.A)();return(0,_.jsxs)("div",{"data-test":e,children:[(0,_.jsx)(o.A,{mainTitle:(0,i.A)(r,{id:"order.customer_information_header"})}),(0,_.jsx)(l.A,{children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(c.A,{children:(0,_.jsx)(m.A,{dataTest:"order-customer_info-name",label:(0,i.A)(r,{id:"order.customer_info.name"}),value:t.order.debtor_uuid?(0,_.jsx)(d.k2,{to:`/debtor/${t.order.debtor_uuid}/detail/1`,children:t.order.debtor_company.name||"-"}):t.order.debtor_company.name||"-"})}),(0,_.jsx)(c.A,{children:(0,_.jsx)(m.A,{dataTest:"order-customer_info-merchant-customer-id",label:(0,i.A)(r,{id:"order.customer_info.merchant_id"}),value:t.order.debtor_external_data.merchant_customer_id||"-"})}),(0,_.jsx)(c.A,{children:(0,_.jsx)(m.A,{dataTest:"order-customer_info-merchant-iban",label:(0,i.A)(r,{id:"order.customer_info.viban"}),value:(0,_.jsx)("span",{className:"fs-mask",children:t.order.bank_account.iban||"-"})})})]})})]})}u.propTypes={order:n().object.isRequired,dataTest:n().string};const p=u},6039:(e,t,r)=>{r.d(t,{A:()=>b});var a=r(8867),n=r(9067),s=r.n(n),d=r(3868),i=r(4667),o=r(4853),c=r(2447),l=r(2015),m=r(9546),_=r(984),u=r(3193),p=r(3628),y=r(3841),h=r(1085);const A=({items:e})=>{const t=(0,a.A)(),r=e.filter(e=>"new"===e.state),n=e.filter(e=>"new"!==e.state),s=[...r,...n],i=r.findIndex(e=>e===r[r.length-1]);return(0,h.jsx)("ul",{className:"order__payments-list",children:s.map((e,r)=>(0,h.jsxs)("li",{className:(0,m.A)("order__payment",{"order__payment--pending":"new"===e.state,"order__payment--pending--last":r===i}),"data-test":`order-payment-item-${r}`,children:[(0,h.jsx)("span",{className:"order__payment-date","data-test":"order-payment-created_date",children:(0,_.xD)(t,e.created_at)}),(0,h.jsxs)("div",{"data-test":"order-payment-type",children:[(0,d.A)(t,{id:`order.payments.${e.type}`}),"complete"===e.state&&` ${e.debtor_name}`,(0,h.jsx)("span",{children:": "}),(0,h.jsx)("span",{"data-test":"order-payment-amount",children:(0,u.I)(t,e.amount,{format:"currency"})}),"new"===e.state&&(0,h.jsxs)("span",{"data-test":"order-payment-state-pending",children:[" ",(0,d.A)(t,{id:"order.payments.pending"})]}),"complete"===e.state&&"merchant_payment"!==e.type&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{className:"order__bullet",children:"\u2022"}),(0,h.jsx)(p.N,{className:"order__payment-link",href:`/payments/payment/${e.transaction_uuid}`,children:(0,h.jsx)(y.E,{children:(0,d.A)(t,{id:"payment_details"})})})]})]})]},`${e.created_at}-${r.toString()}`))})};A.propTypes={items:s().array};const g=A,x=({payments:e,hasError:t=!1,errorRequestCode:r,merchantName:n,fetchPayments:s,isLoading:m,dataTest:_="payment-history"})=>{const u=(0,a.A)();return(0,h.jsxs)("div",{"data-test":_,children:[(0,h.jsx)(o.A,{dataTest:"order-payments",mainTitle:(0,d.A)(u,{id:"order.payments.title"})}),(0,h.jsx)(l.A,{noVerticalPadding:!0,noContentMessage:(0,h.jsxs)(h.Fragment,{children:[(0,d.A)(u,{id:"order.payments.no_history"}),(0,h.jsx)("br",{}),(0,d.A)(u,{id:"order.payments.no_history_muted"})]}),children:e?.length?(0,h.jsx)(g,{items:e}):t?(0,h.jsx)(c.A,{errorRequestCode:r,section:"payment_history",refetch:s,merchantName:n,isOnDetailPage:!0}):m?(0,h.jsx)("div",{className:"order__payment-spinner",children:(0,h.jsx)(i.A,{})}):null})]})};x.propTypes={payments:s().array,fetchPayments:s().func,hasError:s().bool,errorRequestCode:s().string,merchantName:s().string,isLoading:s().bool,dataTest:s().string};const b=x},1767:(e,t,r)=>{r.d(t,{A:()=>y});var a=r(9067),n=r.n(a),s=r(8867),d=r(9546),i=r(984),o=r(3868),c=r(4853),l=r(9706),m=r(2015),_=r(3584),u=r(1085);const p=({details:e,dataTest:t="payment-method"})=>{const r=(0,s.A)(),a="direct_debit"===e?.type,n=e?.data.mandate_execution_date?(0,i.xD)(r,e?.data.mandate_execution_date):"-";return(0,u.jsxs)("div",{"data-test":t,children:[(0,u.jsx)(c.A,{mainTitle:(0,o.A)(r,{id:"payment_method.header"})}),(0,u.jsx)(m.A,{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.A,{children:(0,u.jsx)(_.A,{label:(0,u.jsx)("span",{"data-test":"payment_method_label_type",children:(0,o.A)(r,{id:"payment_method.type.label"})}),value:(0,u.jsx)("span",{"data-test":"payment_method_value_type",children:(0,o.A)(r,{id:`payment_method.type.value.${e?.type}`})})})}),(0,u.jsx)(l.A,{children:(0,u.jsx)(_.A,{label:(0,u.jsx)("span",{"data-test":"payment_method_label_"+(a?"date":"viban"),children:(0,o.A)(r,{id:"payment_method."+(a?"date":"viban")})}),value:(0,u.jsx)("span",{className:(0,d.A)({"fs-mask":!a}),"data-test":"payment_method_value_"+(a?"date":"viban"),children:a?n:e?.data.iban})})}),(0,u.jsx)(l.A,{children:(0,u.jsx)(_.A,{label:(0,u.jsx)("span",{"data-test":"payment_method_label_"+(a?"reference":"bank"),children:(0,o.A)(r,{id:"payment_method."+(a?"reference":"bank")})}),value:(0,u.jsx)("span",{"data-test":"payment_method_value_"+(a?"reference":"bank"),children:a?e?.data?.mandate_reference:e?.data?.bank_name})})})]})})]})};p.propTypes={details:n().object.isRequired,dataTest:n().string};const y=p},5738:(e,t,r)=>{r.d(t,{A:()=>a});const a=async(e,t=300)=>e?new Promise(r=>{setTimeout(()=>r(e()),t)}):Promise.resolve()},1798:(e,t,r)=>{r.d(t,{ew:()=>a,f3:()=>s,uh:()=>n});const a=Object.freeze({MARK_SHIPPED:"markShipped",CANCEL_ORDER:"cancelOrder",PAUSE_DUNNING:"pauseDunning"}),n=Object.freeze({LATE:"late",CREATED:"created",WAITING:"waiting",CANCELED:"canceled",COMPLETE:"complete",DECLINED:"declined",SHIPPED:"shipped",PAID_OUT:"paid_out",AUTHORIZATION_CANCELLED:"authorization_cancelled",PARTIALLY_SHIPPED:"partially_shipped"}),s={V_ONE:"order_v1",V_TWO:"order_v2"}}}]);

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.