PageSourceSearch

https://www.nocomprendopress.com/cdn/shopifycloud/checkout-web/assets/c1/74122478.D-zy85Df.js

js nocomprendopress.com collected 2026-10-02 13:51:42 UTC 11,249 bytes, 1 lines download raw bytes

1import{u as e,x as r,t as a,m as i,C as t,S as n,w as s,T as o,l,s as c}from"./2c1ab0fe.GMbxnz74.js";import{u as d,T as m,S as p,e as u,G as h,f,h as y,D as b,i as v}from"./f3fe2775.ChzXrCys.js";import{L as g,P as _,R as j,u as P,S as E}from"./73a9b0a0.CQfFMcRa.js";import{F as S,L as w,W as R,de as T,R as k,i as z,d as C,c9 as A,z as F,bM as L,bL as I,d1 as M,w as x,a6 as B,q as D,_ as N,r as O,Y as V,U as q,df as H,a3 as W,c as Y,H as $,bV as U,dg as X,s as G,m as Z,b as J,P as Q,p as K,$ as ee,I as re,o as ae,dh as ie,n as te,V as ne,X as se,cX as oe}from"./164ad2e3.BmqNdq2P.js";import{u as le,a as ce,V as de,e as me,f as pe,h as ue,i as he}from"./86720dbb.Ct5aj3SV.js";import{a as fe,u as ye,b as be}from"./58314944.ZUK41gg1.js";import{u as ve,S as ge,c as _e}from"./ca5e9c49.DpiukyMw.js";import{B as je}from"./b9c0319a.6uFzHo90.js";import{C as Pe}from"./a535174a.Yxr5rpZ6.js";import{M as Ee}from"./ccdf3592.CPmKJLin.js";import{u as Se,P as we,R as Re,a as Te,V as ke,S as ze}from"./4ea44c06.CMZnl2AU.js";import{P as Ce}from"./e3e348f2.DoE2sBpq.js";import{S as Ae,T as Fe,b1 as Le,aZ as Ie,aa as Me,cP as xe,ab as Be,W as De,cW as Ne,c3 as Oe,bZ as Ve,a1 as qe,cX as He,ak as We,b6 as Ye}from"./4c290a1e.2OXqqQwu.js";import{i as $e}from"./5fda1420.C7SyMXTh.js";import{u as Ue}from"./9f047e05.Bp-gLL-x.js";import{I as Xe}from"./55098bf1.8h6_nu_5.js";import{K as Ge}from"./dfc03c53.C0N-icla.js";import"./app.iZwEIta_.js";import"./ac5a19ff.DlwW5UC8.js";import"./598fef4e.DTBD4kzt.js";import"./e77f7fe0.Cq2mLjfT.js";import"./a422df8c.Dcy8n41E.js";import"./efa0389a.BaeWUwuC.js";import"./31cc568e.udVq2alB.js";import"./cc6ff67d.BpIrWxUy.js";import"./21cc90a2.BYvnDDaS.js";import"./08a3b809.C53JtSED.js";import"./bff2ff9b.dZiLBpKk.js";import"./87bfafec.Beljf8If.js";import"./e39bc11c.mSpfzD2E.js";import"./cf29e63b.B2McWB3h.js";import"./91319467.DppLddIz.js";import"./0e67bd3b.DOcRijTT.js";import"./74835653.BSuX4rG5.js";import"./29034f35.B7Z7JU9E.js";import"./47b970b2.B-hNfQZG.js";import"./0727407f.C7yJLDwL.js";import"./064f6ac1.DqrP83xw.js";import"./53bbdad9.Z4N3tZKQ.js";import"./e0989459.CCPu1541.js";import"./0a7dffce.BIRsKacx.js";import"./60a453ce.fEeMtJEq.js";import"./bb728e1c.D-ELh9cQ.js";import"./dfca5da5.Fvk36gmC.js";import"./7a8217fd.DRC5-yl-.js";import"./e477f96c.C25EBhFr.js";import"./7114e006.CeS-dcri.js";import"./f692f62f.DHgy7Fzw.js";import"./b684bff6.9cHCtOaB.js";import"./6720fa5f.DvQHpC_1.js";import"./5fd968f2.BZrBHkqx.js";import"./01973ac7.CfaArRQd.js";import"./ed9f2238.OL0ogUQT.js";import"./50130ded.DyTRXaGB.js";function Ze(){const{i18n:r,shop:{developmentShop:a},url:i}=Ae();return a?e(R,{errorType:S.PaymentError,tone:"warning",children:r.translate("payment_errors.development_store_with_order_limit",{development_store_order_testing_docs_link:e(w,{href:i.developmentStoreOrderTestingDocs(),children:r.translate("payment_errors.development_store_order_testing_docs_link")})})}):null}const Je=r=>e(W,{children:r});function Qe({hostedFieldsLoaded:o,children:l}){const{i18n:c,shop:f,source:y,checkout:b,observability:v}=Ae(),{giftCardsEnabled:P,discountCodesEnabled:E,acceptTipPayments:w}=f,{configuration:ne}=b,se=b.latestReceipt.value,oe=T(),pe=E&&oe.value,{nextPage:ue,previousPage:he}=k(),[be,_e]=r(!1),[Xe,Ge]=r(!1),[Qe,er]=r(!1),rr="simulated"===y.type,ar=Fe().buyerIdentity.value?.purchasingCompany,ir=Boolean(ar),tr="draftOrder"===y.type,nr=ir&&tr,sr=Le(),{cartLineChangeLoadingSignal:or}=Ie(),lr=or.value,[cr,dr]=r(!1),[mr,pr]=r(),{negotiate:ur,progress:hr,progressing:fr}=z(),yr=Me().isBlocked.value,br=xe(),vr=Be(),gr=Fe(),_r=gr.paymentMethods,jr=ir&&!b.isShippingRequired.value,Pr=Se(),Er=!br.value||vr.value,{billingAddressOption:Sr,directPaymentErrors:wr,generalPaymentError:Rr,generalPaymentErrorCode:Tr,paymentLines:{value:kr}}=De(),zr=$e({shop:f,checkout:b,paymentMethods:_r?.value}),Cr=kr.some(e=>"wallet"===e.method.type||"walletsPlatformPaymentMethod"===e.method.type),Ar=!(!Er&&b.isShippingRequired.value&&!Cr&&"shipping"===Sr.value)&&(Ne({lines:kr,paymentMethods:_r?.value,purchasingCompany:Boolean(ar),isBillingAddressForced:!zr})||!Er),Fr=De().localizationExtensions.value,{value:Lr}=Oe(),Ir=0!==Lr.length,Mr=Er&&Ir||!Er,xr=kr.some(e=>"direct"===e.method.type),{displayedPaymentMethods:Br}=le({experienceType:"list"}),Dr="knownBuyerShared"===ce(Br).mode,Nr=C().value,Or=A(),Vr="error"===F({isPayWithPayPalButton:!0}).value.status;d();const qr=gr.managedByMarketsPro,Hr=yr||rr&&"review"!==ue.id||Or.value&&Vr||lr,{lastJourneyProgression:Wr}=Me(),Yr=L(),$r=a(()=>fe(wr)),Ur="failed"===se?.status,Xr=Ur&&"payment"===se?.failure.type?se.failure:void 0,Gr="AUTHENTICATION_ERROR"===Xr?.code,Zr=Ur&&"inventory"===se?.failure?.type?se.failure:void 0,Jr=Qe,Qr=Boolean(Xe||Ur&&"order"===se?.failure?.type),Kr=null!=Xr&&!Gr,ea=I(Xr),ra=Rr.value&&!Ve(Tr.value),aa=ye(Rr.value,Tr.value),ia=c.translate("payment.title"),ta=c.translate("general.pay_now_button_label"),na=b.configuration.layout.isOnePage.value,sa=M(),oa="failed"===se?.status&&"payment"===se.failure.type&&"GENERIC_ERROR"===se.failure.code&&"walletsPlatformPaymentMethod"===kr[0]?.method.type&&kr[0]?.method.name===qe.AmazonPay;ve({stage:xr&&!o?ge.Usable:ge.Complete,id:"Payment"}),Ue("payment");
1const la=Boolean(Xr),ca=se?.id,da=Boolean(Xr&&He.has(Xr.code));if(i(()=>{Yr||!la||ir||(da?v.log("payment_form_skip_negotiate_captcha","[PaymentForm] Skipped negotiate for CAPTCHA_REQUIRED receipt — handled by useHandleReceipt",{receiptId:ca}):(async()=>{await ur({silenceViolations:["all"],fieldsToResolve:["paymentLines"]})})())},[la,Yr,ir,ur,v,da,ca]),mr)throw mr;const ma=x("Checkout::Dynamic::Render","PAYMENT1"),pa=x("Checkout::Dynamic::Render","PAYMENT2"),ua=x("Checkout::Dynamic::Render","PAYMENT3"),ha=x("Checkout::Dynamic::Render","PAYMENT4"),fa=x("purchase.checkout.payment-method-list.render-before"),ya=x("purchase.checkout.payment-method-list.render-after"),ba=ne.visibility.showReductions,va=We(),ga=B({base:!0,medium:!1}),_a=!va.value||ga;let ja=null;ne.visibility.showAside?_a&&(ja=e(te,{above:"small",children:e(ie,{headerLevel:1,monorailSection:"payment"})})):ja=e(ie,{headerLevel:1,monorailSection:"payment"});const Pa=ba&&!nr&&(P||E)?ja:null,Ea=!nr&&!sr.value&&w&&!Ye(y),Sa=qr.value&&Mr&&"review"!==ue.id,wa=cr||fr.value;return t(()=>{"failed"===Wr.value.type&&Ge(!0)}),e(n,{children:[e(D,{children:ia}),e(N,{onSubmit:async()=>{if(!Hr){dr(!0);try{await hr("payment-form-submit",e=>{const r="failed"===e.status,a="receipt"in e&&"failed"===e.receipt?.status&&"order"===e.receipt?.failure?.type,i="success"===e.status&&"receipt"in e&&"failed"===e.receipt.status;dr(!1),er("fetch_failed"===e.status),Ge(r||a),_e(i)})}catch(e){e instanceof Error&&pr(e)}finally{dr(!1)}}},disabled:cr||yr,implicitSubmit:ta,children:e(O,{children:[e(V,{children:[e(q,{customizations:ma,render:Je}),e(Ke,{genericPaymentError:Kr,shouldSuppressReceiptError:Yr,inventoryReservationFailure:Zr,isAmazonPaymentDeclineScenario:oa,networkFailure:Jr,orderFailure:Qr,paymentErrorMessage:ea,processingFailed:be}),e(Ze,{}),Pa,Ea?e(n,{children:[e(H,{sectionId:"tips",children:e(m,{renderInSection:!0,headingLevel:1})}),e(q,{customizations:pa,render:Je})]}):null,Fr.length>0&&e(n,{children:e(W,{accessibilityLabel:c.translate("localized_fields.additional_information.title"),children:e(Y,{gap:"base",children:[e($,{id:`${U}-localized-fields`,level:1,children:c.translate("localized_fields.additional_information.title")}),Fr.map((r,a)=>{const i=`${r.value.key}${a}`;return e(g,{localizationExtension:r,index:a},i)})]})})}),e(n,{}),e(W,{accessibilityRole:"group",accessibilityLabelledBy:U,children:e(Y,{gap:"base",children:[e(_,{headingId:U,autoFocus:!na}),e(s,{when:ne.visibility.showStoreCreditRedemption,children:e(p,{})}),ra?e(R,{errorType:S.PaymentError,tone:"critical",children:aa}):null,e(s,{when:$r,children:e(R,{errorType:S.PaymentError,tone:"critical",children:c.translate("payment.generic_incorrect_card_info")})}),Gr?e(R,{errorType:S.PaymentError,tone:"critical",children:c.translate("payment_errors.three_d_secure_failed")}):null,e(q,{customizations:fa}),e(s,{when:ne.visibility.showStoreCreditRedemption,children:e(u,{})}),l,e(q,{customizations:ya}),e(s,{when:Pr,children:e(Pe,{})})]})}),e(h,{}),e(q,w?{customizations:ua,render:Je}:{customizations:pa,render:Je}),!Ar||!(b.isShippingRequired.value||Ye(y)||jr)||sa.value||Dr&&xr?null:e(je,{}),e(q,w?{customizations:ha,render:Je}:{customizations:ua,render:Je}),e(j,{compact:!0}),!w&&e(q,{customizations:ha,render:Je}),!Nr||Dr&&xr?null:e(W,{children:e(de,{})}),e(s,{when:vr,children:e(Ce,{placement:"default",wrapInSection:!0})}),e(s,{when:ne.visibility.showPurchaseOrderNumberField,children:e(me,{})})]}),Sa&&e(Ee,{}),e(we,{}),pe&&e(X,{targetSelector:'input[name="reductions"]',icon:"discount",label:c.translate("order_summary.discount_discovery.add_code")}),e(s,{when:vr,children:e(Ce,{placement:"above-pay-button"})}),e(G,{children:[e(Z,{children:[e(Re,{children:e(Te,{disabled:!Mr||Hr,loading:wa,defaultLabel:ue.label,pixelId:"go_to_next_step"})}),ue.notice?e(n,{children:[e(J,{blockSize:"small-200"}),e(Q,{textAlign:"center",color:"subdued",type:"small",children:ue.notice})]}):null]}),he.route?e(K,{children:e(ee,{href:he.route,variant:"plain",inlineSize:"fill",textDecoration:"none",pixelId:"go_to_previous_step",children:e(Y,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(re,{type:"chevron-left",size:"small"}),e(ae,{children:he.label})]})})}):null]}),"review"===ue.id?null:e(n,{children:[e(ke,{}),e(ze,{})]})]})})]})}const Ke=({orderFailure:r,inventoryReservationFailure:a,isAmazonPaymentDeclineScenario:i,genericPaymentError:t,processingFailed:n,shouldSuppressReceiptError:s,paymentErrorMessage:o,networkFailure:l})=>{const{i18n:c}=Ae(),{lastJourneyProgression:d}=Me();return i?null:!t&&!n||s?l?e(R,{errorType:S.PaymentError,tone:"critical",children:c.translate("order_errors.network_failure")}):a?e(R,{errorType:S.PaymentError,tone:"critical",children:c.translate("order_errors.inventory_reservation_failure")}):r?"failed"===d.value.type&&"decision_rule_block"===d.value.reason?e(R,{errorType:S.PaymentError,tone:"critical",children:c.translate("payment_errors.generic_error")}):e(R,{errorType:S.PaymentError,tone:"critical",children:c.translate("order_errors.creation_failure")}):null:e(R,{errorType:S.PaymentError,tone:"critical",children:o})};function er(){const r=f({enableAutoSelect:!1}),{expandedSlot:a}=y(r);return e(Ge,{msiSlot:a,hideChoiceListChrome:!1,detailsPresentation:"boxed"})}function rr(){const{displayedPaymentMethods:r}=le({experienceType:"list"}),a=ce(r),i=o(()=>r.map(e=>"name"in e?e.name:e.type),[r]);return"knownBuyerShared"===a.mode?e(Xe,{impressionType:"payment",impressionFeatures:pe(i,a),children:e(er,{})}):e(ue,{renderVaultingAgreementInline:!1})}function ar(){const r=l(!1),a=P(),i=be(),{postPurchaseEnabled:t}=_e(),n=c(()=>{r.current=!0},[]);return e(oe,{target:"cart.paymentLines[0]",children:[e(ne,{section:"payment",children:e(se,{section:"payment",children:e(Qe,{hostedFieldsLoaded:r.current,children:e(b,{blurValidationEnabled:!0,onSetFieldErrors:i,onLoadSuccess:n,children:[e(ir,{}),e(rr,{}),e(s,{when:a,children:e(E,{})})]})})})}),t&&e(v,{})]})}function ir(){return he(),null}export{ir as PaymentMethodCustomizations,ar 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.