PageSourceSearch

https://matethelabel.com/cdn/shopifycloud/checkout-web/assets/c1/74122478.BBoN0YxN.js

js matethelabel.com collected 2026-10-03 22:04:53 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.Cg8b5yuM.js";import{L as g,P as _,R as j,u as P,S as E}from"./73a9b0a0.gCS2W2-n.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 U,c as W,H as Y,bV as $,dg as G,s as X,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,cU as oe}from"./164ad2e3.B4L1MRYB.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.DHZl5FAg.js";import{a as fe,u as ye,b as be}from"./58314944.D85q6ENI.js";import{u as ve,S as ge,c as _e}from"./ca5e9c49.DIuWAPOX.js";import{B as je}from"./b9c0319a.CIGlacbX.js";import{C as Pe}from"./a535174a.DPVRr5eA.js";import{M as Ee}from"./ccdf3592.y_I-TghG.js";import{u as Se,P as we,R as Re,a as Te,V as ke,S as ze}from"./4ea44c06.Cj0Sc_bl.js";import{P as Ce}from"./e3e348f2.DAaElZ9-.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 Ue,b6 as We}from"./4c290a1e.DMQ9xOwP.js";import{i as Ye}from"./5fda1420.BLaDhoyL.js";import{u as $e}from"./9f047e05.DwjCPgK0.js";import{I as Ge}from"./55098bf1.SNyaSeYe.js";import{K as Xe}from"./dfc03c53.A5u7HkwU.js";import"./app.DGSHpWaV.js";import"./ac5a19ff.BchXgW63.js";import"./598fef4e.Blg5kMTg.js";import"./e77f7fe0.BZPIxVUE.js";import"./a422df8c.B9fLTQ4u.js";import"./efa0389a.ZcaEqvMP.js";import"./31cc568e.CVMsqQ1x.js";import"./cc6ff67d.D2x8Yxrg.js";import"./21cc90a2.Ccyorzx_.js";import"./08a3b809.DDk5v8y8.js";import"./bff2ff9b.Cy_si-5k.js";import"./87bfafec.4CtkSIvo.js";import"./e39bc11c.D2a9UHbt.js";import"./cf29e63b.BYllFEI4.js";import"./91319467.DpeMFOvW.js";import"./0e67bd3b.DUa61rto.js";import"./74835653.DeaMa2xw.js";import"./29034f35.DARWjbfB.js";import"./47b970b2.C6dKnXeF.js";import"./0727407f.DihGPUji.js";import"./064f6ac1.DPGuEQ9h.js";import"./53bbdad9.oGVvLPt2.js";import"./e0989459.DW399CzT.js";import"./0a7dffce.BcNpdEJk.js";import"./60a453ce.Cg9T1Gj2.js";import"./bb728e1c.CHt2JlPY.js";import"./dfca5da5.BJQx_CCE.js";import"./7a8217fd.C-KSXAi3.js";import"./e477f96c.DJuIaq7S.js";import"./7114e006.DxMyqTAB.js";import"./f692f62f.DHgy7Fzw.js";import"./b684bff6.FsqZYmPf.js";import"./6720fa5f.B84Z8I3K.js";import"./5fd968f2.BwKCnifP.js";import"./01973ac7.hFyCq2Rp.js";import"./ed9f2238.BDG257lM.js";import"./50130ded.BKFMVDJg.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(U,{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),[Ge,Xe]=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=Ye({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:Ur}=Me(),Wr=L(),Yr=a(()=>fe(wr)),$r="failed"===se?.status,Gr=$r&&"payment"===se?.failure.type?se.failure:void 0,Xr="AUTHENTICATION_ERROR"===Gr?.code,Zr=$r&&"inventory"===se?.failure?.type?se.failure:void 0,Jr=Qe,Qr=Boolean(Ge||$r&&"order"===se?.failure?.type),Kr=null!=Gr&&!Xr,ea=I(Gr),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"}),$e("payment");
1const la=Boolean(Gr),ca=se?.id,da=Boolean(Gr&&He.has(Gr.code));if(i(()=>{Wr||!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,Wr,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=Ue(),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&&!We(y),Sa=qr.value&&Mr&&"review"!==ue.id,wa=cr||fr.value;return t(()=>{"failed"===Ur.value.type&&Xe(!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),Xe(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:Wr,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(U,{accessibilityLabel:c.translate("localized_fields.additional_information.title"),children:e(W,{gap:"base",children:[e(Y,{id:`${$}-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(U,{accessibilityRole:"group",accessibilityLabelledBy:$,children:e(W,{gap:"base",children:[e(_,{headingId:$,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:Yr,children:e(R,{errorType:S.PaymentError,tone:"critical",children:c.translate("payment.generic_incorrect_card_info")})}),Xr?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||We(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(U,{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(G,{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(X,{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(W,{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(Xe,{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(Ge,{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.