PageSourceSearch

https://armelbrittany.com/cdn/shopifycloud/checkout-web/assets/c1/01973ac7.Dm1rhJe6.js

js armelbrittany.com collected 2026-10-07 17:15:04 UTC 6,043 bytes, 1 lines download raw bytes

1import{h as e,u as r,k as a,T as t,g as n}from"./2c1ab0fe.DlNazk3M.js";import{a9 as o,bR as s,bS as i,aa as l,bT as u,v as c,bU as d,bx as p,bV as m,bW as _,bX as b,bY as y,bZ as v,b_ as f,b$ as g}from"./164ad2e3.CR6m0m--.js";import{c as h,aQ as E,bq as P,br as M,bs as S,bt as I,bu as A,bv as R,y as T,bw as V,a6 as C,bx as w,by as k,bz as B,bA as D,bB as F,bC as L,bD as x,bE as O,bF as Y,bG as j,bH as N,bI as U,U as z,b9 as G}from"./4b4bc88f.DJ4vpQqJ.js";import{h as H,a as q,u as X}from"./58314944.BUBjJ2GP.js";import{u as J}from"./c6c0cbda.mV_nvZKe.js";function Q({bannerId:a,errorType:t,children:n,...s}){const{observability:i}=h(),{tone:l,...u}=s;return e(()=>{i.log("error_log_banner_error_banner_rendered","[Displayed Error] Error banner was rendered",{bannerId:a})},[a,i]),r(o,{errorType:t,id:a,tone:l,...u,children:n})}function W(){const{checkout:e,i18n:r,shopPay:n}=h(),{value:o}=e.negotiator.current.fields.paymentMethods,{value:l}=e.negotiator.current.fields.managedByMarketsPro,u=T({managedByMarketsPro:l}),c=a(()=>E({checkout:e})),d=s(),{value:p}=e.negotiator.current.fields.deferredTotal,m=n.session.selectedPaymentMethod.value,_=n.session.paymentMethodOption.value,{hasViolations:b}=i(P),y=m&&M(m)?S(m.paymentAttributes.brand):void 0,v=I(),f=t(()=>{if("SHOPIFY_INSTALLMENTS"!==_?.name){if(v.value)return!0;if(!m)return!0;if(d.value&&!p?.amount.amount)return!0;if(M(m)){if(b)return!1;const e=o?.filter(e=>"direct"===e.type).flatMap(e=>e.paymentBrands);if(e&&e.length>0){const r=A(m.paymentAttributes);if(!r)return;return e.includes(r)}}return!R(m)||function(e,r,a){return!e&&r&&a?.some(e=>V(e,["ideal"]))}(c.value,u,o)}},[_?.name,v.value,m,d.value,p?.amount.amount,b,o,c.value,u]),g=t(()=>{if(m&&!1===f){if(M(m))return y?r.translate("payment.brand_not_available",{brand:y}):r.translate("payment.generic_incorrect_card_info");if(R(m))return c.value?r.translate("payment_errors.payment_method_unavailable_with_subscriptions"):r.translate("payment.shop_pay_ideal_unavailable_error")}},[f,m,y,r,c.value]);return{paymentMethods:o,isSelectedPaymentMethodSupported:f,notSupportedError:g,label:y}}function Z(){const{i18n:e,checkout:r,embed:a,shopPay:t}=h(),{delegatedPaymentInstrument:o,inventoryRecoverySignal:s}=r.negotiator.context,{lastJourneyProgression:l}=r.negotiator,{progressing:u}=c(),{walletUsedForSubmissionSignal:E,inMemoryApplePayParts:{asPaymentMethod:M},receiptErrorSignal:S}=C(),{paymentMethods:I}=r.negotiator.current.fields,{notSupportedError:A}=W(),{hasViolations:R,violations:T}=i(P),{hasViolations:V}=i(w),{hasViolations:Q}=i(k),{hasViolations:Z}=i(B),{hasViolations:$}=i(D),{violations:K}=i(F),ee=!(("success"===l.value.type||"error"===l.value.type)&&"completion"===l.value.negotiationStage)&&1===K.size&&"PAYMENTS_METHOD"===K.values().next().value.code,{hasViolations:re}=i(L),ae=d(),{hasError:te,error:ne}=p(x),{hasError:oe,error:se}=m(),{hasError:ie}=_(),{hasError:le}=b(),ue=y(ne?{type:"payment",code:ne}:void 0),ce=function(e){const{i18n:r}=h();if(e&&"SURVEY_EXITED"!==e.code)return r.translate("hsa_qualification_errors",{scope:e.code.toLowerCase()})}(se),de=r.negotiator.parts.generalPaymentError.value,pe=r.negotiator.parts.generalPaymentErrorCode.value,me=H(r.negotiator.parts.directPaymentErrors),_e=q(r.negotiator.parts.directPaymentErrors),be=n(!1),ye=v(),ve=X(de,pe),fe=ve&&!O(pe)&&!Y(pe)&&!j(pe)&&!N(pe),ge=e.translate("order_errors.inventory_reservation_failure"),he=J(f(U)).value,Ee=Boolean(z(I.value).length),Pe=G("billingAddress").value,Me=g().value,Se="APPLE_PAY"===E.value||Me,Ie="INCORRECT_CVC"===ne&&"CREDIT_CARD"===t?.session.selectedPaymentMethod.value?.paymentMethod,Ae=s.value,Re=null!=Ae&&Ae.receiptId===r.latestReceipt.value?.id,Te="failed"===l.value.type&&"completion"===l.value.negotiationStage,Ve=Boolean(fe||_e||ae||Te),Ce=Re&&!Ae.dismissed&&!Ve;if(u.value)return{message:void 0,tone:"auto"};let we,ke="critical";if(a&&r.configuration.isPaymentInstrumentsDelegationEnabled&&o.value&&he&&!Pe&&(we=e.translate("payment_errors.payment_method_billing_address")),fe&&(be.current=!0,ke="warning",we=ve),ae&&(be.current=!0,we=ae),(me||_e&&(be.current||ie))&&(we=e.translate("payment.generic_incorrect_card_info")),!(te&&ne&&ue)||be.current||"GOOGLE_PAY"===E.value||Se&&!M.value||S.value||ye||Ie||(we=ue),Te&&"failed"===l.value.type&&(we=l.value.fetchFailed?e.translate("order_errors.network_failure"):"decision_rule_block"===l.value.reason?e.translate("payment_errors.generic_error"):e.translate("order_errors.creation_failure")),le&&!be.current&&(we=e.translate("order_errors.creation_failure")),ie&&!Ve&&(Re?Ce:!be.current)&&(we=ge,Ce&&(ke="critical")),oe&&ce&&!be.current&&(we=ce),re&&(we=e.translate("store_credit_errors.generic_error")),V&&(we=e.translate("payment.expired_payment_method")),R){const r=[...T][0],a=r?.nonLocalizedMessage?.split(":")[1]?.toLowerCase().trim();we=a?e.translate("payment.brand_not_available",{brand:e.translate("payment_brand",{scope:a})}):e.translate("payment.generic_incorrect_card_info")}return Z&&(we=e.translate("payment.generic_incorrect_card_info")),$&&(we=e.translate("payment_errors.method_not_available")),Q&&(we=e.translate("payment_errors.generic_error")),ee&&(we=e.translate("payment_errors.available_methods_updated"),ke="info"),A&&(we=A,ke="critical"),Ee&&he&&(we=e.translate("address_management.invali
1d_billing_address_selected")),{message:we,tone:ke,inventoryRecoveryReceiptId:Ce&&we===ge?r.latestReceipt.value?.id:void 0}}function $({message:a,tone:t,inventoryRecoveryReceiptId:o}){const{observability:s}=h(),i=n(Boolean(o)).current;return e(()=>{o&&s.counter({name:"inventory_recovery_error_banner_displayed",value:1})},[o,s]),r(ee,{identifier:"PaymentErrorBanner",tone:t,suppressAutoFocus:i,children:a})}function K(){const e=Z();return e.message?r($,{...e}):null}function ee({children:e,identifier:a,tone:t,suppressAutoFocus:n=!1}){return"critical"===t||"warning"===t?r(Q,{errorType:l.PaymentError,bannerId:a,tone:t,autoFocus:!n,focusable:n,children:e}):r(u,{tone:t,children:e})}export{Q as E,ee as P,K as a,W as b,$ as c,Z as u};

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.