PageSourceSearch

https://omwboards.com/cdn/shopifycloud/checkout-web/assets/c1/page-Payment.CethTe0h.js

js omwboards.com collected 2026-09-29 00:17:50 UTC 11,819 bytes, 1 lines download raw bytes

1import{u as e,k as C,f as bt,h as vt,o as Ct,S as f,i as m,T as _t,A as Et,q as Rt}from"./esnext-vendor.DDpcaSqU.js";import{u as Ft,T as Mt,S as kt,b as At,G as wt,c as Tt,d as Bt,D as Dt,e as It}from"./useAddressMutationsWithNegotiation.BIr_RXis.js";import{L as zt,P as Lt,R as xt,u as Ht,S as Nt}from"./RememberMeSection.BYeMmxbw.js";import{C as c,L as Ot,W as d,d3 as Wt,N as Ut,e as Vt,d4 as qt,cj as Gt,x as $t,c0 as Yt,b$ as Kt,d2 as Qt,s as S,a3 as jt,X as Jt,o as Xt,R as Zt,U as l,d5 as ea,a0 as M,k as x,n as ta,bS as H,d6 as aa,p as ra,j as na,b as sa,P as ia,m as oa,Y as la,I as ca,l as da,d7 as ce,H as ua,O as ma,Q as pa,cT as ha}from"./hydrate.BcfGVx0L.js";import{u as ye,a as Pe,V as ya,e as Pa,f as ga,h as fa,i as Sa}from"./components-PaymentMethodProgressionHost.6RPZ-76L.js";import{a as ba,u as va,b as Ca}from"./hooks-useGeneralPaymentErrorMessage.DLzmknw2.js";import{u as _a}from"./components-RedirectionNotice.module.CrRh0Cus.js";import{B as Ea}from"./BillingAddressSelector.CcWBqd3Y.js";import{C as Ra}from"./Captcha.FpS8EQr6.js";import{M as Fa}from"./hooks-useShopPayNewSignupLoginExperiment.DrmS3FLj.js";import{u as Ma,P as ka,R as Aa,a as wa,V as Ta,S as Ba}from"./PaymentButtons.DF7tbJ-4.js";import{P as de}from"./hooks-useWalletsTimeout.ByRalZ9t.js";import{T as Da}from"./stopwatch.B56VZk5r.js";import{T as O,a5 as ue,b3 as Ia,a$ as za,af as N,cQ as La,ah as xa,W as me,cR as Ha,bU as Na,cg as Oa,a7 as Wa,ag as Ua,cS as Va,an as qa,bb as pe}from"./utilities-previous.Cnwy8G2v.js";import{i as Ga}from"./graphql-PaymentSessionMutation.C-nDEOnn.js";import{u as $a,S as he}from"./CalloutHeader.DC7jgv42.js";import{I as Ya}from"./shop-pay-installments-monorail.B1-OWrOB.js";import{K as Ka}from"./KnownBuyerPaymentMethodSelector.CaKdbpOs.js";import"./app.DdDscdWN.js";import"./amazon-pay-useAmazonPayPaymentLine.X7jqQiq6.js";import"./PaymentIcon.-ypvsmSq.js";import"./PaymentLine.HSjRrKhm.js";import"./localization-index.C3Jg94aR.js";import"./Theme-ThemeOverride.CSLUDabY.js";import"./crypto-constants.Ca3tBkwm.js";import"./Choice.D9vYH2mX.js";import"./Checkbox.CdJzVizb.js";import"./hooks-useUpdateCheckoutAddress.C4NXzSJo.js";import"./hooks-useShopPayExternalAppContext.R6pnDxYu.js";import"./helpers-derivations.K4r9DEFp.js";import"./redemption-promotions.8MPSgIef.js";import"./payment-usePaymentExemptionReason.emSKnIpm.js";import"./shop-pay-normalizeBuyerDetails.CDJVtFmS.js";import"./helpers-isSwitchAccountBootRequest.C3tmXnb7.js";import"./hooks-useShopPayProgressIntercepts.DJVsS6aH.js";import"./cvv-cvvBridge.CLYVr7ZJ.js";import"./helpers-installmentsNotSupportedForAddress.BnHLRwvm.js";import"./Popover.ZkMcWGfE.js";import"./ChangeCompanyLocationLink.DXURX0D_.js";import"./BillingAddressForm.B1Xpg2b3.js";import"./FormLayout.UkTBTXMZ.js";import"./PhoneField.rAEISard.js";import"./hooks-useSuppressShopPayModalOnLoad.Cvo-K0z2.js";import"./utilities-stable-ref.dCtJn23l.js";import"./shared-permissions.B59tuyWB.js";import"./Section.J2ZFesxe.js";import"./ShopPayCaptcha.D1P4QA8k.js";import"./PaymentErrorBanner.CtzH3JZS.js";import"./PayButton-helpers.DGMbMyz3.js";import"./Monorail-monorailMetric-wallets.D__Peh7l.js";import"./hooks-usePaypalRowEffects.BYZmcPeY.js";function Qa(){const{i18n:a,shop:{developmentShop:n},url:r}=O();return n?e(d,{errorType:c.PaymentError,tone:"warning",children:a.translate("payment_errors.development_store_with_order_limit",{development_store_order_testing_docs_link:e(Ot,{href:r.developmentStoreOrderTestingDocs(),children:a.translate("payment_errors.development_store_order_testing_docs_link")})})}):null}const y=a=>e(M,{children:a});function ja({hostedFieldsLoaded:a,children:n}){const{i18n:r,shop:s,source:u,checkout:o,observability:_}=O(),{giftCardsEnabled:k,discountCodesEnabled:p,acceptTipPayments:h}=s,{configuration:b}=o,i=o.latestReceipt.value,ge=Wt(),fe=p&&ge.value,{nextPage:P,previousPage:A}=Ut(),[Se,be]=C(!1),[ve,W]=C(!1),[Ce,_e]=C(!1),Ee=u.type==="simulated",U=ue().buyerIdentity.value?.purchasingCompany,E=!!U,Re=u.type==="draftOrder",V=E&&Re,Fe=Ia(),{cartLineChangeLoadingSignal:Me}=za(),ke=Me.value,[q,w]=C(!1),[G,Ae]=C(),{negotiate:$,progress:we,progressing:Te}=Vt(),Y=N().isBlocked.value,Be=La(),T=xa(),K=ue(),Q=K.paymentMethods,De=E&&!o.isShippingRequired.value,Ie=Ma(),R=!Be.value||T.value,{billingAddressOption:ze,directPaymentErrors:Le,generalPaymentError:j,generalPaymentErrorCode:J,paymentLines:{value:v}}=me(),xe=Ga({shop:s,checkout:o,paymentMethods:Q?.value}),He=v.some(t=>t.method.type==="wallet"||t.method.type==="walletsPlatformPaymentMethod"),Ne=!R&&o.isShippingRequired.value&&!He&&ze.value==="shipping"?!1:Ha({lines:v,paymentMethods:Q?.value,purchasingCompany:!!U,isBillingAddressForced:!xe})||!R,X=me().localizationExtensions.value,{value:Oe}=Na(),We=Oe.length!==0,Z=R&&We||!R,B=v.some(t=>t.method.type==="direct"),{displayedPaymentMethods:Ue}=ye({experienceType:"list"}
1),ee=Pe(Ue).mode==="knownBuyerShared",Ve=qt().value,qe=Gt(),Ge=$t({isPayWithPayPalButton:!0}).value.status==="error";Ft();const $e=K.managedByMarketsPro,te=Y||Ee&&P.id!=="review"||qe.value&&Ge||ke,{lastJourneyProgression:Ye}=N(),Ke=async()=>{if(!te){w(!0);try{await we("payment-form-submit",t=>{const F=t.status==="failed",L="receipt"in t&&t.receipt?.status==="failed"&&t.receipt?.failure?.type==="order",St=t.status==="success"&&"receipt"in t&&t.receipt.status==="failed";w(!1),_e(t.status==="fetch_failed"),W(F||L),be(St)})}catch(t){t instanceof Error&&Ae(t)}finally{w(!1)}}},D=Yt(),Qe=bt(()=>ba(Le)),I=i?.status==="failed",g=I&&i?.failure.type==="payment"?i.failure:void 0,ae=g?.code==="AUTHENTICATION_ERROR",je=I&&i?.failure?.type==="inventory"?i.failure:void 0,Je=Ce,Xe=!!(ve||I&&i?.failure?.type==="order"),Ze=g!=null&&!ae,et=Kt(g),tt=j.value&&!Oa(J.value),at=va(j.value,J.value),rt=r.translate("payment.title"),nt=r.translate("general.pay_now_button_label"),st=o.configuration.layout.isOnePage.value,it=Qt(),ot=i?.status==="failed"&&i.failure.type==="payment"&&i.failure.code==="GENERIC_ERROR"&&v[0]?.method.type==="walletsPlatformPaymentMethod"&&v[0]?.method.name===Wa.AmazonPay;$a({stage:B&&!a?he.Usable:he.Complete,id:"Payment"}),Ua("payment");const re=!!g,ne=i?.id,se=!!(g&&Va.has(g.code));if(vt(()=>{if(!(D||!re||E)){if(se){_.log("payment_form_skip_negotiate_captcha","[PaymentForm] Skipped negotiate for CAPTCHA_REQUIRED receipt — handled by useHandleReceipt",{receiptId:ne});return}(async()=>await $({silenceViolations:["all"],fieldsToResolve:["paymentLines"]}))()}},[re,D,E,$,_,se,ne]),G)throw G;const lt=S("Checkout::Dynamic::Render","PAYMENT1"),ie=S("Checkout::Dynamic::Render","PAYMENT2"),oe=S("Checkout::Dynamic::Render","PAYMENT3"),le=S("Checkout::Dynamic::Render","PAYMENT4"),ct=S("purchase.checkout.payment-method-list.render-before"),dt=S("purchase.checkout.payment-method-list.render-after"),ut=b.visibility.showReductions,mt=qa(),pt=jt({base:!0,medium:!1}),ht=!mt.value||pt;let z=null;b.visibility.showAside?ht&&(z=e(ua,{above:"small",children:e(ce,{headerLevel:1,monorailSection:"payment"})})):z=e(ce,{headerLevel:1,monorailSection:"payment"});const yt=ut&&!V&&(k||p)?z:null,Pt=V||Fe.value?!1:h&&!pe(u),gt=$e.value&&Z&&P.id!=="review",ft=q||Te.value;return Ct(()=>{Ye.value.type==="failed"&&W(!0)}),e(f,{children:[e(Da,{children:rt}),e(Jt,{onSubmit:Ke,disabled:q||Y,implicitSubmit:nt,children:e(Xt,{children:[e(Zt,{children:[e(l,{customizations:lt,render:y}),e(Ja,{genericPaymentError:Ze,shouldSuppressReceiptError:D,inventoryReservationFailure:je,isAmazonPaymentDeclineScenario:ot,networkFailure:Je,orderFailure:Xe,paymentErrorMessage:et,processingFailed:Se}),e(Qa,{}),yt,Pt?e(f,{children:[e(ea,{sectionId:"tips",children:e(Mt,{renderInSection:!0,headingLevel:1})}),e(l,{customizations:ie,render:y})]}):null,X.length>0&&e(f,{children:e(M,{accessibilityLabel:r.translate("localized_fields.additional_information.title"),children:e(x,{gap:"base",children:[e(ta,{id:`${H}-localized-fields`,level:1,children:r.translate("localized_fields.additional_information.title")}),X.map((t,F)=>{const L=`${t.value.key}${F}`;return e(zt,{localizationExtension:t,index:F},L)})]})})}),e(f,{}),e(M,{accessibilityRole:"group",accessibilityLabelledBy:H,children:e(x,{gap:"base",children:[e(Lt,{headingId:H,autoFocus:!st}),e(m,{when:b.visibility.showStoreCreditRedemption,children:e(kt,{})}),tt?e(d,{errorType:c.PaymentError,tone:"critical",children:at}):null,e(m,{when:Qe,children:e(d,{errorType:c.PaymentError,tone:"critical",children:r.translate("payment.generic_incorrect_card_info")})}),ae?e(d,{errorType:c.PaymentError,tone:"critical",children:r.translate("payment_errors.three_d_secure_failed")}):null,e(l,{customizations:ct}),e(m,{when:b.visibility.showStoreCreditRedemption,children:e(At,{})}),n,e(l,{customizations:dt}),e(m,{when:Ie,children:e(Ra,{})})]})}),e(wt,{}),h?e(l,{customizations:oe,render:y}):e(l,{customizations:ie,render:y}),Ne&&(o.isShippingRequired.value||pe(u)||De)&&!it.value&&!(ee&&B)?e(Ea,{}):null,h?e(l,{customizations:le,render:y}):e(l,{customizations:oe,render:y}),e(xt,{compact:!0}),!h&&e(l,{customizations:le,render:y}),Ve&&!(ee&&B)?e(M,{children:e(ya,{})}):null,e(m,{when:T,children:e(de,{placement:"default",wrapInSection:!0}
1)}),e(m,{when:b.visibility.showPurchaseOrderNumberField,children:e(Pa,{})})]}),gt&&e(Fa,{}),e(ka,{}),fe&&e(aa,{targetSelector:'input[name="reductions"]',icon:"discount",label:r.translate("order_summary.discount_discovery.add_code")}),e(m,{when:T,children:e(de,{placement:"above-pay-button"})}),e(ra,{children:[e(na,{children:[e(Aa,{children:e(wa,{disabled:!Z||te,loading:ft,defaultLabel:P.label,pixelId:"go_to_next_step"})}),P.notice?e(f,{children:[e(sa,{blockSize:"small-200"}),e(ia,{textAlign:"center",color:"subdued",type:"small",children:P.notice})]}):null]}),A.route?e(oa,{children:e(la,{href:A.route,variant:"plain",inlineSize:"fill",textDecoration:"none",pixelId:"go_to_previous_step",children:e(x,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(ca,{type:"chevron-left",size:"small"}),e(da,{children:A.label})]})})}):null]}),P.id==="review"?null:e(f,{children:[e(Ta,{}),e(Ba,{})]})]})})]})}const Ja=({orderFailure:a,inventoryReservationFailure:n,isAmazonPaymentDeclineScenario:r,genericPaymentError:s,processingFailed:u,shouldSuppressReceiptError:o,paymentErrorMessage:_,networkFailure:k})=>{const{i18n:p}=O(),{lastJourneyProgression:h}=N();return r?null:(s||u)&&!o?e(d,{errorType:c.PaymentError,tone:"critical",children:_}):k?e(d,{errorType:c.PaymentError,tone:"critical",children:p.translate("order_errors.network_failure")}):n?e(d,{errorType:c.PaymentError,tone:"critical",children:p.translate("order_errors.inventory_reservation_failure")}):a?h.value.type==="failed"&&h.value.reason==="decision_rule_block"?e(d,{errorType:c.PaymentError,tone:"critical",children:p.translate("payment_errors.generic_error")}):e(d,{errorType:c.PaymentError,tone:"critical",children:p.translate("order_errors.creation_failure")}):null};function Xa(){const a=Tt({enableAutoSelect:!1}),{expandedSlot:n}=Bt(a);return e(Ka,{msiSlot:n,hideChoiceListChrome:!1,detailsPresentation:"boxed"})}function Za(){const{displayedPaymentMethods:a}=ye({experienceType:"list"}),n=Pe(a),r=_t(()=>a.map(s=>"name"in s?s.name:s.type),[a]);return n.mode==="knownBuyerShared"?e(Ya,{impressionType:"payment",impressionFeatures:ga(r,n),children:e(Xa,{})}):e(fa,{renderVaultingAgreementInline:!1})}function en(){const a=Et(!1),n=Ht(),r=Ca(),{postPurchaseEnabled:s}=_a(),u=Rt(()=>{a.current=!0},[]);return e(ha,{target:"cart.paymentLines[0]",children:[e(ma,{section:"payment",children:e(pa,{section:"payment",children:e(ja,{hostedFieldsLoaded:a.current,children:e(Dt,{blurValidationEnabled:!0,onSetFieldErrors:r,onLoadSuccess:u,children:[e(er,{}),e(Za,{}),e(m,{when:n,children:e(Nt,{})})]})})})}),s&&e(It,{})]})}function er(){return Sa(),null}export{er as PaymentMethodCustomizations,en as default};

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.