PageSourceSearch

https://www.selkirk.com/cdn/shopifycloud/checkout-web/assets/c1/01973ac7.BVhNP6nv.js

js selkirk.com collected 2026-10-01 10:29:26 UTC 5,887 bytes, 1 lines download raw bytes

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