PageSourceSearch

https://glamourousgrace.com/cdn/shopifycloud/checkout-web/assets/c1/01973ac7.CzRJWXtH.js

js glamourousgrace.com collected 2026-10-09 22:37:20 UTC 5,995 bytes, 1 lines download raw bytes

1import{h as e,u as r,k as a,T as t,g as n}from"./2c1ab0fe.qpvfywqb.js";import{a9 as o,c4 as s,c5 as i,c6 as l,aa as u,c7 as c,v as d,c8 as p,bE as _,c9 as m,ca as v,cb as y,cc as b,cd as f,ce as g,cf as h}from"./164ad2e3.DcJn775M.js";import{e as E,aW as P,bA as M,bB as S,bC as I,bD as A,bE as R,bF as T,B as C,bG as B,aa as k,bH as w,bI as L,bJ as D,bK as F,bL as O,bM as N,bN as Y,bO as j,bP as x,bQ as G,bR as H,bS as z,_ as J,bf as U}from"./4b4bc88f.DkycdxSK.js";import{h as V,a as q,u as K}from"./58314944.CL_6FNuP.js";function Q({bannerId:a,errorType:t,children:n,...s}){const{observability:i}=E(),{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}=E(),{value:o}=e.negotiator.current.fields.paymentMethods,{value:u}=e.negotiator.current.fields.managedByMarketsPro,c=C({managedByMarketsPro:u}),d=a(()=>P({checkout:e})),p=s(),{value:_}=e.negotiator.current.fields.deferredTotal,m=n.session.selectedPaymentMethod.value,v=n.session.paymentMethodOption.value,y=i(l(M)).value,b=m&&S(m)?I(m.paymentAttributes.brand):void 0,f=A(),g=t(()=>{if("SHOPIFY_INSTALLMENTS"!==v?.name){if(f.value)return!0;if(!m)return!0;if(p.value&&!_?.amount.amount)return!0;if(S(m)){if(y)return!1;const e=o?.filter(e=>"direct"===e.type).flatMap(e=>e.paymentBrands);if(e&&e.length>0){const r=R(m.paymentAttributes);if(!r)return;return e.includes(r)}}return!T(m)||function(e,r,a){return!e&&r&&a?.some(e=>B(e,["ideal"]))}(d.value,c,o)}},[v?.name,f.value,m,p.value,_?.amount.amount,y,o,d.value,c]),h=t(()=>{if(m&&!1===g){if(S(m))return b?r.translate("payment.brand_not_available",{brand:b}):r.translate("payment.generic_incorrect_card_info");if(T(m))return d.value?r.translate("payment_errors.payment_method_unavailable_with_subscriptions"):r.translate("payment.shop_pay_ideal_unavailable_error")}},[g,m,b,r,d.value]);return{paymentMethods:o,isSelectedPaymentMethodSupported:g,notSupportedError:h,label:b}}function X(){const{i18n:e,checkout:r,embed:a,shopPay:t}=E(),{delegatedPaymentInstrument:o,inventoryRecoverySignal:s}=r.negotiator.context,{lastJourneyProgression:u}=r.negotiator,{progressing:c}=d(),{walletUsedForSubmissionSignal:P,inMemoryApplePayParts:{asPaymentMethod:S},receiptErrorSignal:I}=k(),{paymentMethods:A}=r.negotiator.current.fields,{notSupportedError:R}=W(),{violations:T}=l(M),C=i(l(w)).value,B=i(l(L)).value,Q=i(l(D)).value,X=i(l(F)).value,{violations:Z}=l(O),$=i({violations:T}).value,ee=Z.value,re=!(("success"===u.value.type||"error"===u.value.type)&&"completion"===u.value.negotiationStage)&&1===ee.size&&"PAYMENTS_METHOD"===ee.values().next().value.code,ae=i(l(N)).value,te=p(),{hasError:ne,error:oe}=_(Y),{hasError:se,error:ie}=m(),{hasError:le}=v(),{hasError:ue}=y(),ce=b(oe?{type:"payment",code:oe}:void 0),de=function(e){const{i18n:r}=E();if(e&&"SURVEY_EXITED"!==e.code)return r.translate("hsa_qualification_errors",{scope:e.code.toLowerCase()})}(ie),pe=r.negotiator.parts.generalPaymentError.value,_e=r.negotiator.parts.generalPaymentErrorCode.value,me=V(r.negotiator.parts.directPaymentErrors),ve=q(r.negotiator.parts.directPaymentErrors),ye=n(!1),be=f(),fe=K(pe,_e),ge=fe&&!j(_e)&&!x(_e)&&!G(_e)&&!H(_e),he=e.translate("order_errors.inventory_reservation_failure"),Ee=i(g(z)).value,Pe=Boolean(J(A.value).length),Me=U("billingAddress").value,Se=h().value,Ie="APPLE_PAY"===P.value||Se,Ae="INCORRECT_CVC"===oe&&"CREDIT_CARD"===t?.session.selectedPaymentMethod.value?.paymentMethod,Re=s.value,Te=null!=Re&&Re.receiptId===r.latestReceipt.value?.id,Ce="failed"===u.value.type&&"completion"===u.value.negotiationStage,Be=Boolean(ge||ve||te||Ce),ke=Te&&!Re.dismissed&&!Be;if(c.value)return{message:void 0,tone:"auto"};let we,Le="critical";if(a&&r.configuration.isPaymentInstrumentsDelegationEnabled&&o.value&&Ee&&!Me&&(we=e.translate("payment_errors.payment_method_billing_address")),ge&&(ye.current=!0,Le="warning",we=fe),te&&(ye.current=!0,we=te),(me||ve&&(ye.current||le))&&(we=e.translate("payment.generic_incorrect_card_info")),!(ne&&oe&&ce)||ye.current||"GOOGLE_PAY"===P.value||Ie&&!S.value||I.value||be||Ae||(we=ce),Ce&&"failed"===u.value.type&&(we=u.value.fetchFailed?e.translate("order_errors.network_failure"):"decision_rule_block"===u.value.reason?e.translate("payment_errors.generic_error"):e.translate("order_errors.creation_failure")),ue&&!ye.current&&(we=e.translate("order_errors.creation_failure")),le&&!Be&&(Te?ke:!ye.current)&&(we=he,ke&&(Le="critical")),se&&de&&!ye.current&&(we=de),ae&&(we=e.translate("store_credit_errors.generic_error")),C&&
1(we=e.translate("payment.expired_payment_method")),$){const r=[...T.value][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 Q&&(we=e.translate("payment.generic_incorrect_card_info")),X&&(we=e.translate("payment_errors.method_not_available")),B&&(we=e.translate("payment_errors.generic_error")),re&&(we=e.translate("payment_errors.available_methods_updated"),Le="info"),R&&(we=R,Le="critical"),Pe&&Ee&&(we=e.translate("address_management.invalid_billing_address_selected")),{message:we,tone:Le,inventoryRecoveryReceiptId:ke&&we===he?r.latestReceipt.value?.id:void 0}}function Z({message:a,tone:t,inventoryRecoveryReceiptId:o}){const{observability:s}=E(),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 $(){const e=X();return e.message?r(Z,{...e}):null}function ee({children:e,identifier:a,tone:t,suppressAutoFocus:n=!1}){return"critical"===t||"warning"===t?r(Q,{errorType:u.PaymentError,bannerId:a,tone:t,autoFocus:!n,focusable:n,children:e}):r(c,{tone:t,children:e})}export{Q as E,ee as P,$ as a,W as b,Z as c,X 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.