PageSourceSearch

https://unefemmewines.com/cdn/shopifycloud/checkout-web/assets/c1/74122478.CcOBfLDU.js

js unefemmewines.com collected 2026-10-01 14:34:50 UTC 11,248 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"./2c1ab0fe.DYQSH7bT.js";import{u as Mt,T as Ft,S as At,e as kt,G as wt,f as Tt,h as Bt,D as Dt,i as It}from"./f3fe2775.SlC-pEkv.js";import{L as zt,P as Lt,R as Ht,u as xt,S as Ot}from"./73a9b0a0.CobHmndN.js";import{A as c,L as Nt,W as d,dc as Ut,K as Vt,h as Wt,d as qt,c5 as Gt,s as Kt,bI as $t,bH as Yt,c$ as Jt,M as Qt,p as S,a1 as jt,R as Xt,U as l,dd as Zt,_ as F,c as H,H as ea,bU as x,de as ta,b as aa,P as ra,V as na,I as ia,n as sa,df as ce,m as oa,N as la,O as ca,cR as da}from"./164ad2e3.BcELPLd1.js";import{u as ye,a as Pe,V as ua,e as ma,f as pa,h as ha,i as ya}from"./86720dbb.DuHz2hK5.js";import{a as Pa,u as ga,b as fa}from"./58314944.BHyxOsdf.js";import{u as Sa,S as de,c as ba}from"./ca5e9c49.CRSUYPwQ.js";import{B as va}from"./b9c0319a.BOA-tgMf.js";import{C as Ca}from"./a535174a.BPvHEO74.js";import{M as _a}from"./0b8657b8.IcKXrEvA.js";import{b as Ea,d as Ra,c as Ma,P as Fa,a as Aa}from"./a25deb9a.CAfvS0fR.js";import{u as ka,P as wa,R as Ta,a as Ba,V as Da,S as Ia}from"./4ea44c06.N5QgRtJ_.js";import{P as ue}from"./e3e348f2.FEGbJPeA.js";import{a as za,T as La}from"./65f3d4da.CPQqj7Ry.js";import{O as N,P as me,aX as Ha,aT as xa,a7 as O,cD as Oa,a8 as Na,Q as pe,cK as Ua,b_ as Va,bU as Wa,_ as qa,cL as Ga,ae as Ka,b0 as he}from"./4c290a1e.CvCmFIo_.js";import{I as $a}from"./55098bf1.CUHQxMJB.js";import{K as Ya}from"./dfc03c53.Cfz4c1-7.js";import"./app.Bvc4uxd4.js";import"./ac5a19ff.B7MskK0_.js";import"./598fef4e.CNrSJxwe.js";import"./e77f7fe0.C05OWWqx.js";import"./a422df8c.CcpK1iW2.js";import"./efa0389a.BYXr6FgY.js";import"./31cc568e.C3-mS8Wp.js";import"./8599b02a.CeEg7uRS.js";import"./cc6ff67d.BF2NsnIm.js";import"./0a7dffce.BF-zuF6E.js";import"./08a3b809.Bq-zVo5U.js";import"./e477f96c.D3jKwuzH.js";import"./87bfafec.AzsVYqml.js";import"./e39bc11c.DnPwITUP.js";import"./bff2ff9b.Dejs-bBN.js";import"./cf29e63b.CpsbSy7t.js";import"./bb728e1c.D4AahLMP.js";import"./0e67bd3b.BTHw0Yme.js";import"./74835653.CCeFHMk_.js";import"./3ca8ef7e.CTrhvMhs.js";import"./47b970b2.DH4wP8_H.js";import"./29034f35.C0bk1Hps.js";import"./064f6ac1.D2j0Zkq2.js";import"./53bbdad9.C7Msysac.js";import"./e0989459.D1AftLKc.js";import"./60a453ce.BJZuodLH.js";import"./dfca5da5.BMZJqAAB.js";import"./7a8217fd.C3eL-rUQ.js";import"./7114e006.D0I_yO7g.js";import"./f692f62f.BQRo2nQx.js";import"./b684bff6.CXxRln-r.js";import"./6720fa5f.CBKt-zoe.js";import"./ccdf3592.DEIwKw5E.js";import"./5fd968f2.YnDAFSZP.js";import"./01973ac7.DlFbhkwy.js";import"./f78726c8.CLlB5yjH.js";import"./ed9f2238.CAW-Gk0L.js";import"./50130ded.BPqcgfsJ.js";function Ja(){const{i18n:a,shop:{developmentShop:n},url:r}=N();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(Nt,{href:r.developmentStoreOrderTestingDocs(),children:a.translate("payment_errors.development_store_order_testing_docs_link")})})}):null}const y=a=>e(F,{children:a});function Qa({hostedFieldsLoaded:a,children:n}){const{i18n:r,shop:i,source:u,checkout:o,observability:_}=N(),{giftCardsEnabled:A,discountCodesEnabled:p,acceptTipPayments:h}=i,{configuration:b}=o,s=o.latestReceipt.value,ge=Ut(),fe=p&&ge.value,{nextPage:P,previousPage:k}=Vt(),[Se,be]=C(!1),[ve,U]=C(!1),[Ce,_e]=C(!1),Ee=u.type==="simulated",V=me().buyerIdentity.value?.purchasingCompany,E=!!V,Re=u.type==="draftOrder",W=E&&Re,Me=Ha(),{cartLineChangeLoadingSignal:Fe}=xa(),Ae=Fe.value,[q,w]=C(!1),[G,ke]=C(),{negotiate:K,progress:we,progressing:Te}=Wt(),$=O().isBlocked.value,Be=Oa(),T=Na(),Y=me(),J=Y.paymentMethods,De=E&&!o.isShippingRequired.value,Ie=ka(),R=!Be.value||T.value,{billingAddressOption:ze,directPaymentErrors:Le,generalPaymentError:Q,generalPaymentErrorCode:j,paymentLines:{value:v}}=pe(),He=za({shop:i,checkout:o,paymentMethods:J?.value}),xe=v.some(t=>t.method.type==="wallet"||t.method.type==="walletsPlatformPaymentMethod"),Oe=!R&&o.isShippingRequired.value&&!xe&&ze.value==="shipping"?!1:Ua({lines:v,paymentMethods:J?.value,purchasingCompany:!!V,isBillingAddressForced:!He})||!R,X=pe().localizationExtensions.value,{value:Ne}=Va(),Ue=Ne.length!==0,Z=R&&Ue||!R,B=v.some(t=>t.method.type==="direct"),{displayedPaymentMethods:Ve}=ye({experienceType:"list"}
1),ee=Pe(Ve).mode==="knownBuyerShared",We=qt().value,qe=Gt(),Ge=Kt({isPayWithPayPalButton:!0}).value.status==="error";Mt();const Ke=Y.managedByMarketsPro,te=$||Ee&&P.id!=="review"||qe.value&&Ge||Ae,{lastJourneyProgression:$e}=O(),Ye=async()=>{if(!te){w(!0);try{await we("payment-form-submit",t=>{const M=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"),U(M||L),be(St)})}catch(t){t instanceof Error&&ke(t)}finally{w(!1)}}},D=$t(),Je=bt(()=>Pa(Le)),I=s?.status==="failed",g=I&&s?.failure.type==="payment"?s.failure:void 0,ae=g?.code==="AUTHENTICATION_ERROR",Qe=I&&s?.failure?.type==="inventory"?s.failure:void 0,je=Ce,Xe=!!(ve||I&&s?.failure?.type==="order"),Ze=g!=null&&!ae,et=Yt(g),tt=Q.value&&!Wa(j.value),at=ga(Q.value,j.value),rt=r.translate("payment.title"),nt=r.translate("general.pay_now_button_label"),it=o.configuration.layout.isOnePage.value,st=Jt(),ot=s?.status==="failed"&&s.failure.type==="payment"&&s.failure.code==="GENERIC_ERROR"&&v[0]?.method.type==="walletsPlatformPaymentMethod"&&v[0]?.method.name===qa.AmazonPay;Sa({stage:B&&!a?de.Usable:de.Complete,id:"Payment"}),Qt("payment");const re=!!g,ne=s?.id,ie=!!(g&&Ga.has(g.code));if(vt(()=>{if(!(D||!re||E)){if(ie){_.log("payment_form_skip_negotiate_captcha","[PaymentForm] Skipped negotiate for CAPTCHA_REQUIRED receipt — handled by useHandleReceipt",{receiptId:ne});return}(async()=>await K({silenceViolations:["all"],fieldsToResolve:["paymentLines"]}))()}},[re,D,E,K,_,ie,ne]),G)throw G;const lt=S("Checkout::Dynamic::Render","PAYMENT1"),se=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=Ka(),pt=jt({base:!0,medium:!1}),ht=!mt.value||pt;let z=null;b.visibility.showAside?ht&&(z=e(oa,{above:"small",children:e(ce,{headerLevel:1,monorailSection:"payment"})})):z=e(ce,{headerLevel:1,monorailSection:"payment"});const yt=ut&&!W&&(A||p)?z:null,Pt=W||Me.value?!1:h&&!he(u),gt=Ke.value&&Z&&P.id!=="review",ft=q||Te.value;return Ct(()=>{$e.value.type==="failed"&&U(!0)}),e(f,{children:[e(La,{children:rt}),e(Xt,{onSubmit:Ye,disabled:q||$,implicitSubmit:nt,children:e(Ea,{children:[e(Ra,{children:[e(l,{customizations:lt,render:y}),e(ja,{genericPaymentError:Ze,shouldSuppressReceiptError:D,inventoryReservationFailure:Qe,isAmazonPaymentDeclineScenario:ot,networkFailure:je,orderFailure:Xe,paymentErrorMessage:et,processingFailed:Se}),e(Ja,{}),yt,Pt?e(f,{children:[e(Zt,{sectionId:"tips",children:e(Ft,{renderInSection:!0,headingLevel:1})}),e(l,{customizations:se,render:y})]}):null,X.length>0&&e(f,{children:e(F,{accessibilityLabel:r.translate("localized_fields.additional_information.title"),children:e(H,{gap:"base",children:[e(ea,{id:`${x}-localized-fields`,level:1,children:r.translate("localized_fields.additional_information.title")}),X.map((t,M)=>{const L=`${t.value.key}${M}`;return e(zt,{localizationExtension:t,index:M},L)})]})})}),e(f,{}),e(F,{accessibilityRole:"group",accessibilityLabelledBy:x,children:e(H,{gap:"base",children:[e(Lt,{headingId:x,autoFocus:!it}),e(m,{when:b.visibility.showStoreCreditRedemption,children:e(At,{})}),tt?e(d,{errorType:c.PaymentError,tone:"critical",children:at}):null,e(m,{when:Je,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(kt,{})}),n,e(l,{customizations:dt}),e(m,{when:Ie,children:e(Ca,{})})]})}),e(wt,{}),h?e(l,{customizations:oe,render:y}):e(l,{customizations:se,render:y}),Oe&&(o.isShippingRequired.value||he(u)||De)&&!st.value&&!(ee&&B)?e(va,{}):null,h?e(l,{customizations:le,render:y}):e(l,{customizations:oe,render:y}),e(Ht,{compact:!0}),!h&&e(l,{customizations:le,render:y}),We&&!(ee&&B)?e(F,{children:e(ua,{})}):null,e(m,{when:T,children:e(ue,{placement:"default",wrapInSection:!0}
1)}),e(m,{when:b.visibility.showPurchaseOrderNumberField,children:e(ma,{})})]}),gt&&e(_a,{}),e(wa,{}),fe&&e(ta,{targetSelector:'input[name="reductions"]',icon:"discount",label:r.translate("order_summary.discount_discovery.add_code")}),e(m,{when:T,children:e(ue,{placement:"above-pay-button"})}),e(Ma,{children:[e(Fa,{children:[e(Ta,{children:e(Ba,{disabled:!Z||te,loading:ft,defaultLabel:P.label,pixelId:"go_to_next_step"})}),P.notice?e(f,{children:[e(aa,{blockSize:"small-200"}),e(ra,{textAlign:"center",color:"subdued",type:"small",children:P.notice})]}):null]}),k.route?e(Aa,{children:e(na,{href:k.route,variant:"plain",inlineSize:"fill",textDecoration:"none",pixelId:"go_to_previous_step",children:e(H,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(ia,{type:"chevron-left",size:"small"}),e(sa,{children:k.label})]})})}):null]}),P.id==="review"?null:e(f,{children:[e(Da,{}),e(Ia,{})]})]})})]})}const ja=({orderFailure:a,inventoryReservationFailure:n,isAmazonPaymentDeclineScenario:r,genericPaymentError:i,processingFailed:u,shouldSuppressReceiptError:o,paymentErrorMessage:_,networkFailure:A})=>{const{i18n:p}=N(),{lastJourneyProgression:h}=O();return r?null:(i||u)&&!o?e(d,{errorType:c.PaymentError,tone:"critical",children:_}):A?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(Ya,{msiSlot:n,hideChoiceListChrome:!1,detailsPresentation:"boxed"})}function Za(){const{displayedPaymentMethods:a}=ye({experienceType:"list"}),n=Pe(a),r=_t(()=>a.map(i=>"name"in i?i.name:i.type),[a]);return n.mode==="knownBuyerShared"?e($a,{impressionType:"payment",impressionFeatures:pa(r,n),children:e(Xa,{})}):e(ha,{renderVaultingAgreementInline:!1})}function nn(){const a=Et(!1),n=xt(),r=fa(),{postPurchaseEnabled:i}=ba(),u=Rt(()=>{a.current=!0},[]);return e(da,{target:"cart.paymentLines[0]",children:[e(la,{section:"payment",children:e(ca,{section:"payment",children:e(Qa,{hostedFieldsLoaded:a.current,children:e(Dt,{blurValidationEnabled:!0,onSetFieldErrors:r,onLoadSuccess:u,children:[e(er,{}),e(Za,{}),e(m,{when:n,children:e(Ot,{})})]})})})}),i&&e(It,{})]})}function er(){return ya(),null}export{er as PaymentMethodCustomizations,nn 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.