PageSourceSearch

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

js lurelock.com collected 2026-10-06 04:08:48 UTC 6,001 bytes, 1 lines download raw bytes

1import{h as e,u as r,k as a,T as t,g as n}from"./2c1ab0fe.RaLGJvq2.js";import{a8 as o,bR as s,bS as i,a9 as l,bT as u,r as c,bU as d,bw as p,bV as _,bW as m,bX as b,bY as y,bZ as v,b_ as f,b$ as g}from"./164ad2e3.bPUx3Fg0.js";import{a as h,aJ as E,bm as P,bn as M,bo as S,bp as A,bq as I,br as R,t as T,bs as V,_ as w,bt as C,bu as k,bv as B,bw as D,bx as L,by as F,bz as O,bA as Y,bB as x,bC as j,bD as N,K as z,b3 as U,bE as q}from"./f67abd2c.BTHhdhoM.js";import{h as G,a as H,u as J}from"./58314944.DgleaEYK.js";function X({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 K(){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,_=n.session.selectedPaymentMethod.value,m=n.session.paymentMethodOption.value,{hasViolations:b}=i(P),y=_&&M(_)?S(_.paymentAttributes.brand):void 0,v=A(),f=t(()=>{if("SHOPIFY_INSTALLMENTS"!==m?.name){if(v.value)return!0;if(!_)return!0;if(d.value&&!p?.amount.amount)return!0;if(M(_)){if(b)return!1;const e=o?.filter(e=>"direct"===e.type).flatMap(e=>e.paymentBrands);if(e&&e.length>0){const r=I(_.paymentAttributes);if(!r)return;return e.includes(r)}}return!R(_)||function(e,r,a){return!e&&r&&a?.some(e=>V(e,["ideal"]))}(c.value,u,o)}},[m?.name,v.value,_,d.value,p?.amount.amount,b,o,c.value,u]),g=t(()=>{if(_&&!1===f){if(M(_))return y?r.translate("payment.brand_not_available",{brand:y}):r.translate("payment.generic_incorrect_card_info");if(R(_))return c.value?r.translate("payment_errors.payment_method_unavailable_with_subscriptions"):r.translate("payment.shop_pay_ideal_unavailable_error")}},[f,_,y,r,c.value]);return{paymentMethods:o,isSelectedPaymentMethodSupported:f,notSupportedError:g,label:y}}function W(){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}=w(),{paymentMethods:A}=r.negotiator.current.fields,{notSupportedError:I}=K(),{hasViolations:R,violations:T}=i(P),{hasViolations:V}=i(C),{hasViolations:X}=i(k),{hasViolations:W}=i(B),{hasViolations:Z}=i(D),{violations:$}=i(L),Q=!(("success"===l.value.type||"error"===l.value.type)&&"completion"===l.value.negotiationStage)&&1===$.size&&"PAYMENTS_METHOD"===$.values().next().value.code,{hasViolations:ee}=i(F),re=d(),{hasError:ae,error:te}=p(O),{hasError:ne,error:oe}=_(),{hasError:se}=m(),{hasError:ie}=b(),le=y(te?{type:"payment",code:te}:void 0),ue=function(e){const{i18n:r}=h();if(e&&"SURVEY_EXITED"!==e.code)return r.translate("hsa_qualification_errors",{scope:e.code.toLowerCase()})}(oe),ce=r.negotiator.parts.generalPaymentError.value,de=r.negotiator.parts.generalPaymentErrorCode.value,pe=G(r.negotiator.parts.directPaymentErrors),_e=H(r.negotiator.parts.directPaymentErrors),me=n(!1),be=v(),ye=J(ce,de),ve=ye&&!Y(de)&&!x(de)&&!j(de)&&!N(de),fe=e.translate("order_errors.inventory_reservation_failure"),{hasViolations:ge}=f(q),he=Boolean(z(A.value).length),Ee=U("billingAddress").value,Pe=g().value,Me="APPLE_PAY"===E.value||Pe,Se="INCORRECT_CVC"===te&&"CREDIT_CARD"===t?.session.selectedPaymentMethod.value?.paymentMethod,Ae=s.value,Ie=null!=Ae&&Ae.receiptId===r.latestReceipt.value?.id,Re="failed"===l.value.type&&"completion"===l.value.negotiationStage,Te=Boolean(ve||_e||re||Re),Ve=Ie&&!Ae.dismissed&&!Te;if(u.value)return{message:void 0,tone:"auto"};let we,Ce="critical";if(a&&r.configuration.isPaymentInstrumentsDelegationEnabled&&o.value&&ge&&!Ee&&(we=e.translate("payment_errors.payment_method_billing_address")),ve&&(me.current=!0,Ce="warning",we=ye),re&&(me.current=!0,we=re),(pe||_e&&(me.current||se))&&(we=e.translate("payment.generic_incorrect_card_info")),!(ae&&te&&le)||me.current||"GOOGLE_PAY"===E.value||Me&&!M.value||S.value||be||Se||(we=le),Re&&"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")),ie&&!me.current&&(we=e.translate("order_errors.creation_failure")),se&&!Te&&(Ie?Ve:!me.current)&&(we=fe,Ve&&(Ce="critical")),ne&&ue&&!me.current&&(we=ue),ee&&(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 W&&(we=e.translate("payment.generic_incorrect_card_info")),Z&&(we=e.translate("payment_errors.method_not_available")),X&&(we=e.translate("payment_errors.generic_error")),Q&&(we=e.translate("payment_errors.available_methods_updated"),Ce="info"),I&&(we=I,Ce="critical"),he&&ge&&(we=e.translate("address_management.invali
1d_billing_address_selected")),{message:we,tone:Ce,inventoryRecoveryReceiptId:Ve&&we===fe?r.latestReceipt.value?.id:void 0}}function Z({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(Q,{identifier:"PaymentErrorBanner",tone:t,suppressAutoFocus:i,children:a})}function $(){const e=W();return e.message?r(Z,{...e}):null}function Q({children:e,identifier:a,tone:t,suppressAutoFocus:n=!1}){return"critical"===t||"warning"===t?r(X,{errorType:l.PaymentError,bannerId:a,tone:t,autoFocus:!n,focusable:n,children:e}):r(u,{tone:t,children:e})}export{X as E,Q as P,$ as a,K as b,Z as c,W 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.