PageSourceSearch

https://www.lulli-sur-la-toile.com/assets/FlashMessages-BVsYShWI.js

js lulli-sur-la-toile.com collected 2026-10-01 11:51:41 UTC 3,674 bytes, 1 lines download raw bytes

1import{w as n,A as g,m as y}from"./index-frHe-QTJ.js";import"./index-B7188j3S.js";import"./Icon-BPvprOR1.js";import{A as h}from"./InlineAlert-BNs3TQ7p.js";import{S as p}from"./SuccessAlert-DErlytFp.js";import{E as f}from"./ErrorAlert-bjL4iD78.js";import"./Body-DwUSvLEP.js";import{B as u}from"./BodyParagraph-BkL2QNz6.js";import{S as M}from"./Stack-Ba9RgzpV.js";const c=({children:e})=>n.jsx(h,{appearance:"info",children:e}),o=y({pendingFraud:{id:"modules.Payline.FlashMessage.PaylinePaymentSuccessOrPending.pendingFraud",defaultMessage:"Your payment has been received. We are awaiting its final approval to process your order."},pending:{id:"modules.Payline.FlashMessage.PaylinePaymentSuccessOrPending.pendingOrFraud",defaultMessage:"Your payment has been received. We are awaiting a confirmation from the bank and will process your order. Your transaction has the reference {transactionId}."},outageOrBug:{id:"modules.Payline.FlashMessage.PaylinePaymentSuccessOrPending.outageOrBug",defaultMessage:"An unexpected technical error occurred. Please check your emails, try again in a few minutes and contact our support if the problem persists with your order number and the following transaction reference: {transactionId}."},success:{id:"modules.Payline.FlashMessage.PaylinePaymentSuccessOrPending.success",defaultMessage:"We received your payment. Your transaction has the reference {transactionId}."},unknownCode:{id:"modules.Payline.FlashMessage.PaylinePaymentSuccessOrPending.unknownCode",defaultMessage:"N/A"}}),C=e=>e==="04003",F=e=>["XXXXX","02306","02533"].includes(e),x=({data:e})=>{const s=g(),a=e.status==="pending",t=e.resultCode;let r=a?o.pending:o.success;C(t)?r=o.pendingFraud:F(t)&&(r=o.outageOrBug);const P=a?c:p;return n.jsx(P,{children:n.jsx(u,{children:s.formatMessage(r,{resultCode:t??s.formatMessage(o.unknownCode),message:e.message,transactionId:e.transactionId})})})},i=y({mismatch:{id:"modules.Payline.FlashMessage.PaylinePaymentError.mismatch",defaultMessage:"The transaction amount did not match the order total. The payment was successful but your order is on hold. If you think there is a problem, please contact us."},cancelledByUser:{id:"modules.Payline.FlashMessage.PaylinePaymentError.cancelledByUser",defaultMessage:"You cancelled the payment. If you need help, please contact us."},resignation:{id:"modules.Payline.FlashMessage.PaylinePaymentError.resignation",defaultMessage:"Your transaction or your payment session expired. Please try again."},default:{id:"modules.Payline.FlashMessage.PaylinePaymentError.default",defaultMessage:"The payment was not successful. If you think it is a technical problem, please contact us. (Code: {resultCode})"},unknownCode:{id:"modules.Payline.FlashMessage.PaylinePaymentError.unknownCode",defaultMessage:"N/A"}}),w=e=>e==="00000",j=e=>["02304","02324","02534"].includes(e),O=e=>["02008","02319"].includes(e),k=({data:e})=>{const s=g(),a=e.resultCode;let t=i.default;return w(a)?t=i.mismatch:j(a)?t=i.resignation:O(a)&&(t=i.cancelledByUser),n.jsx(f,{children:n.jsx(u,{children:s.formatMessage(t,{resultCode:e.resultCode??s.formatMessage(i.unknownCode),message:e.message})})})},l=e=>({children:s})=>n.jsx(e,{children:n.jsx(u,{children:s})}),d={default:l(c),info:l(c),error:l(f),success:l(p),paylineSuccessOrPending:x,paylineError:k},m=(e="default")=>d[e]||d.default,I=({flashMessage:e})=>
1{if(typeof e=="string"){const s=m();return n.jsx(s,{children:e})}if(typeof e=="object"){const{message:s,type:a,data:t={}}=e,r=m(a);return n.jsx(r,{data:t,children:s})}return null},T=({flashMessages:e=[]})=>e!=null&&e.length?n.jsx(M,{children:e.map((s,a)=>n.jsx(I,{flashMessage:s},a))}):null;export{T as F,c as I};

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.