PageSourceSearch

https://www.drylanddistillers.com/cdn/shopifycloud/checkout-web/assets/c1/74122478.BbAnD3eO.js

js drylanddistillers.com collected 2026-10-05 19:23:04 UTC 11,836 bytes, 1 lines download raw bytes

1import{u as e,z as r,k as a,h as t,p as i,S as o,w as n,T as s,g as l,q as d}from"./2c1ab0fe.RaLGJvq2.js";import{u as c,T as m,S as p,e as u,G as h,f,h as y,D as b,i as g}from"./f3fe2775.CJPIHBqD.js";import{L as j,P as v,R as _,u as P,S as E}from"./73a9b0a0.fGmBKDAB.js";import{a9 as w,L as S,a8 as R,dk as k,w as T,r as z,Q as C,co as A,a4 as F,bZ as x,bY as B,d4 as L,n as M,o as I,ah as D,U as O,dl as N,h as Y,S as $,H,c5 as V,dm as q,d as J,f as U,a0 as G,i as Q,dn as W,$ as Z,ae as K,af as X,c_ as ee}from"./164ad2e3.bPUx3Fg0.js";import{u as re,a as ae,V as te,e as ie,f as oe,h as ne,i as se}from"./86720dbb.Dtbs-eZv.js";import{a as le,u as de,b as ce}from"./58314944.DgleaEYK.js";import{u as me}from"./ca5e9c49.Cl4m3H5N.js";import{B as pe}from"./b9c0319a.Cz7ImAy0.js";import{C as ue}from"./b3389d5c.DmJnEFPk.js";import{M as he}from"./0b8657b8.Y8zWLzWx.js";import{b as fe,d as ye,c as be,P as ge,a as je}from"./0a30a815.ccZD-1L7.js";import{P as ve}from"./4ea44c06.BZNVGSkG.js";import{u as _e,b as Pe,R as Ee,V as we,S as Se}from"./e129c76e.Dm8G_PlY.js";import{P as Re}from"./e3e348f2.C3lLf8U0.js";import{T as ke}from"./7e8cd205.BrnFEGan.js";import{a as Te,aF as ze,cu as Ce,a3 as Ae,cB as Fe,bG as xe,bA as Be,W as Le,b6 as Me,a8 as Ie,C as De}from"./f67abd2c.BTHhdhoM.js";import{i as Oe}from"./9dba8418.DCzpk36x.js";import{B as Ne}from"./0627daf2.D5TuTLdI.js";import{u as Ye}from"./9f047e05.B541JhC9.js";import{u as $e,S as He}from"./71ae3d5c.CamNwqhE.js";import{I as Ve}from"./55098bf1.lh4L-ucv.js";import{K as qe}from"./dfc03c53.D_TaDBuT.js";import"./app.CPIYcwpp.js";import"./ac5a19ff.IFRwIDsW.js";import"./598fef4e.Ct7NLKKD.js";import"./e77f7fe0.D6YnMnfe.js";import"./22345fd4.BOPeNj8v.js";import"./4b1c22b7.DKftNOPJ.js";import"./a422df8c.FHHIb5NR.js";import"./efa0389a.4jo1XZ5U.js";import"./cc6ff67d.CAlDrn_a.js";import"./e12db40c.CeuzD2R-.js";import"./08a3b809.KmYN0HWk.js";import"./d25d1b95.Ctc7RP1h.js";import"./bf513f9c.mwf0ps-z.js";import"./e39bc11c.B4ndlA32.js";import"./7a8217fd.BsB9ld7l.js";import"./8599b02a.DeY28qKv.js";import"./cf29e63b.CjXLGgdv.js";import"./81e109b1.DOkM2TK2.js";import"./0e67bd3b.fkjEM38r.js";import"./74835653.2Ngy7fqB.js";import"./3ca8ef7e.mdJTe1BI.js";import"./2495faa4.DD6nJl2C.js";import"./a9fa9fda.D5UMnVmk.js";import"./ca3e798e.BWruLT5k.js";import"./47b970b2.D1oAm8Vb.js";import"./064f6ac1.TjWXwVYS.js";import"./e0989459.B9f-_Pff.js";import"./cdfd59e6.D3c62CGi.js";import"./d0bb51ec.BIqtCEEY.js";import"./60a453ce.BHWO3gHr.js";import"./dfca5da5.DfW8DdKj.js";import"./dae24aab.CZ5rWyZM.js";import"./6f2620f5.bY_JOuNn.js";import"./f692f62f.5kQNxwXF.js";import"./9babe369.DDn7FcEm.js";import"./b684bff6.xM1h11AS.js";import"./79974aab.BHkkF4M9.js";import"./ccdf3592.BeoyWjXk.js";import"./78ab3dd0.DVuP3OIA.js";import"./d4ea2faa.CUbB3413.js";import"./fe885b80.i76WZfHf.js";import"./f78726c8.DrWBqMbh.js";import"./5fda1420.BxIbEH_S.js";import"./434e3b0a.B1BBnK_d.js";import"./50130ded.DTG2ynWI.js";import"./65f3d4da.Bb3QiqCm.js";import"./31cc568e.95lmLO5k.js";function Je(){const{i18n:r,shop:{developmentShop:a},url:t}=Te();return a?e(R,{errorType:w.PaymentError,tone:"warning",children:r.translate("payment_errors.development_store_with_order_limit",{development_store_order_testing_docs_link:e(S,{href:t.developmentStoreOrderTestingDocs(),children:r.translate("payment_errors.development_store_order_testing_docs_link")})})}):null}const Ue=r=>e(Y,{children:r});function Ge({hostedFieldsLoaded:s,children:l}){const{i18n:d,shop:f,source:y,checkout:b,observability:g}=Te(),{giftCardsEnabled:P,discountCodesEnabled:E,acceptTipPayments:S}=f,{configuration:K}=b,X=b.latestReceipt.value,ee=k(),oe=E&&ee.value,{nextPage:ne,previousPage:se}=T(),[ce,me]=r(!1),[Ve,qe]=r(!1),[Ge,We]=r(!1),Ze="simulated"===y.type,Ke=b.negotiator.current.fields.buyerIdentity.value?.purchasingCompany,Xe=Boolean(Ke),er="draftOrder"===y.type,rr=Xe&&er,ar=ze(),{cartLineChangeLoadingSignal:tr}=b.negotiator.context,ir=tr.value,[or,nr]=r(!1),[sr,lr]=r(),{negotiate:dr,progress:cr,progressing:mr}=z(),pr=b.negotiator.isBlocked.value,ur=Ce(),hr=Ae(),fr=b.negotiator.current.fields.paymentMethods,yr=Xe&&!b.isShippingRequired.value,br=_e(),gr=!ur.value||hr.value,{billingAddressOption:jr,directPaymentErrors:vr,generalPaymentError:_r,generalPaymentErrorCode:Pr,paymentLines:{value:Er}}=b.negotiator.parts,wr=Oe({shop:f,checkout:b,paymentMethods:fr?.value}),Sr=Er.some(e=>"wallet"===e.method.type||"walletsPlatformPaymentMethod"===e.method.type),Rr=!(!gr&&b.isShippingRequired.value&&!Sr&&"shipping"===jr.value)&&(Fe({lines:Er,paymentMethods:fr?.value,purchasingCompany:Boolean(Ke),isBillingAddressForced:!wr})||!gr),kr=b.negotiator.parts.localizationExtensions.value,{value:Tr}=xe(),zr=0!==Tr.length,Cr=gr&&zr||!gr,Ar=Er.some(e=>"direct"===e.method.type),{displayedPaymentMethods:Fr}=re({experienceType:"list"}),xr="knownBuyerShared"===ae(Fr).mode,Br=C().value,Lr=A(),Mr="error"===F({isPayWithPayPalButton:!0}).value.status;c();const Ir=b.negotiator.current.fields.managedByMarketsPro,Dr=pr||Ze&&"review"!==ne.id||Lr.value&&Mr||ir,{lastJourneyProgression:Or}=b.negotiator,Nr=x(),Yr=a(()=>le(vr)),$r="failed"===X?.status,Hr=$r&&"payment"===X?.failure.type?X.failure:void 0,Vr="AUTHENTICATION_ERROR"===Hr?.code,qr=$r&&"inventory"===X?.failure?.type?
1X.failure:void 0,Jr=Ge,Ur=Boolean(Ve||$r&&"order"===X?.failure?.type),Gr=null!=Hr&&!Vr,Qr=B(Hr),Wr=_r.value&&!Be(Pr.value),Zr=de(_r.value,Pr.value),Kr=d.translate("payment.title"),Xr=d.translate("general.pay_now_button_label"),ea=b.configuration.layout.isOnePage.value,ra=L(),aa="failed"===X?.status&&"payment"===X.failure.type&&"GENERIC_ERROR"===X.failure.code&&"walletsPlatformPaymentMethod"===Er[0]?.method.type&&Er[0]?.method.name===Le.AmazonPay;$e({stage:Ar&&!s?He.Usable:He.Complete,id:"Payment"}),Ye("payment");const ta=Boolean(Hr),ia=X?.id,oa=Boolean(Hr&&Me.has(Hr.code));if(t(()=>{Nr||!ta||Xe||(oa?g.log("payment_form_skip_negotiate_captcha","[PaymentForm] Skipped negotiate for CAPTCHA_REQUIRED receipt — handled by useHandleReceipt",{receiptId:ia}):(async()=>{await dr({silenceViolations:["all"],fieldsToResolve:["paymentLines"]})})())},[ta,Nr,Xe,dr,g,oa,ia]),sr)throw sr;const na=M("Checkout::Dynamic::Render","PAYMENT1"),sa=M("Checkout::Dynamic::Render","PAYMENT2"),la=M("Checkout::Dynamic::Render","PAYMENT3"),da=M("Checkout::Dynamic::Render","PAYMENT4"),ca=M("purchase.checkout.payment-method-list.render-before"),ma=M("purchase.checkout.payment-method-list.render-after"),pa=K.visibility.showReductions,ua=Ie(),ha=I({base:!0,medium:!1}),fa=!ua.value||ha;let ya=null;K.visibility.showAside?fa&&(ya=e(Z,{above:"small",children:e(W,{headerLevel:1,monorailSection:"payment"})})):ya=e(W,{headerLevel:1,monorailSection:"payment"});const ba=pa&&!rr&&(P||E)?ya:null,ga=!rr&&!ar.value&&S&&!De(y),ja=Ir.value&&Cr&&"review"!==ne.id,va=or||mr.value;return i(()=>{"failed"===Or.value.type&&qe(!0)}),e(o,{children:[e(ke,{children:Kr}),e(D,{onSubmit:async()=>{if(!Dr){nr(!0);try{await cr("payment-form-submit",e=>{const r="failed"===e.status,a="receipt"in e&&"failed"===e.receipt?.status&&"order"===e.receipt?.failure?.type,t="success"===e.status&&"receipt"in e&&"failed"===e.receipt.status;nr(!1),We("fetch_failed"===e.status),qe(r||a),me(t)})}catch(e){e instanceof Error&&lr(e)}finally{nr(!1)}}},disabled:or||pr,implicitSubmit:Xr,children:e(fe,{children:[e(ye,{children:[e(O,{customizations:na,render:Ue}),e(Qe,{genericPaymentError:Gr,shouldSuppressReceiptError:Nr,inventoryReservationFailure:qr,isAmazonPaymentDeclineScenario:aa,networkFailure:Jr,orderFailure:Ur,paymentErrorMessage:Qr,processingFailed:ce}),e(Je,{}),ba,ga?e(o,{children:[e(N,{sectionId:"tips",children:e(m,{renderInSection:!0,headingLevel:1})}),e(O,{customizations:sa,render:Ue})]}):null,kr.length>0&&e(o,{children:e(Y,{accessibilityLabel:d.translate("localized_fields.additional_information.title"),children:e($,{gap:"base",children:[e(H,{id:`${V}-localized-fields`,level:1,children:d.translate("localized_fields.additional_information.title")}),kr.map((r,a)=>{const t=`${r.value.key}${a}`;return e(j,{localizationExtension:r,index:a},t)})]})})}),e(o,{}),e(Y,{accessibilityRole:"group",accessibilityLabelledBy:V,children:e($,{gap:"base",children:[e(v,{headingId:V,autoFocus:!ea}),e(n,{when:K.visibility.showStoreCreditRedemption,children:e(p,{})}),Wr?e(R,{errorType:w.PaymentError,tone:"critical",children:Zr}):null,e(n,{when:Yr,children:e(R,{errorType:w.PaymentError,tone:"critical",children:d.translate("payment.generic_incorrect_card_info")})}),Vr?e(R,{errorType:w.PaymentError,tone:"critical",children:d.translate("payment_errors.three_d_secure_failed")}):null,e(O,{customizations:ca}),e(n,{when:K.visibility.showStoreCreditRedemption,children:e(u,{})}),l,e(O,{customizations:ma}),e(n,{when:br,children:e(ue,{})})]})}),e(h,{}),e(O,S?{customizations:la,render:Ue}:{customizations:sa,render:Ue}),!Rr||!(b.isShippingRequired.value||De(y)||yr)||ra.value||xr&&Ar?null:e(pe,{}),e(O,S?{customizations:da,render:Ue}:{customizations:la,render:Ue}),e(_,{compact:!0}),!S&&e(O,{customizations:da,render:Ue}),!Br||xr&&Ar?null:e(Y,{children:e(te,{})}),e(n,{when:hr,children:e(Re,{placement:"default",wrapInSection:!0})}),e(n,{when:K.visibility.showPurchaseOrderNumberField,children:e(ie,{})})]}),ja&&e(he,{}),e(Pe,{}),oe&&e(q,{targetSelector:'input[name="reductions"]',icon:"discount",label:d.translate("order_summary.discount_discovery.add_code")}),e(n,{when:hr,children:e(Re,{placement:"above-pay-button"})}),e(be,{children:[e(ge,{children:[e(Ee,{children:e(ve,{disabled:!Cr||Dr,loading:va,defaultLabel:ne.label,pixelId:"go_to_next_step"})}),ne.notice?e(o,{children:[e(J,{blockSize:"small-200"}),e(U,{textAlign:"center",color:"subdued",type:"small",children:ne.n
1otice})]}):null]}),se.route?e(je,{children:e(Ne,{href:se.route,variant:"plain",inlineSize:"fill",textDecoration:"none",pixelId:"go_to_previous_step",children:e($,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(G,{type:"chevron-left",size:"small"}),e(Q,{children:se.label})]})})}):null]}),"review"===ne.id?null:e(o,{children:[e(we,{}),e(Se,{})]})]})})]})}const Qe=({orderFailure:r,inventoryReservationFailure:a,isAmazonPaymentDeclineScenario:t,genericPaymentError:i,processingFailed:o,shouldSuppressReceiptError:n,paymentErrorMessage:s,networkFailure:l})=>{const{i18n:d,checkout:{negotiator:c}}=Te(),{lastJourneyProgression:m}=c;return t?null:!i&&!o||n?l?e(R,{errorType:w.PaymentError,tone:"critical",children:d.translate("order_errors.network_failure")}):a?e(R,{errorType:w.PaymentError,tone:"critical",children:d.translate("order_errors.inventory_reservation_failure")}):r?"failed"===m.value.type&&"decision_rule_block"===m.value.reason?e(R,{errorType:w.PaymentError,tone:"critical",children:d.translate("payment_errors.generic_error")}):e(R,{errorType:w.PaymentError,tone:"critical",children:d.translate("order_errors.creation_failure")}):null:e(R,{errorType:w.PaymentError,tone:"critical",children:s})};function We(){const r=f({enableAutoSelect:!1}),{expandedSlot:a}=y(r);return e(qe,{msiSlot:a,hideChoiceListChrome:!1,detailsPresentation:"boxed"})}function Ze(){const{displayedPaymentMethods:r}=re({experienceType:"list"}),a=ae(r),t=s(()=>r.map(e=>"name"in e?e.name:e.type),[r]);return"knownBuyerShared"===a.mode?e(Ve,{impressionType:"payment",impressionFeatures:oe(t,a),children:e(We,{})}):e(ne,{renderVaultingAgreementInline:!1})}function Ke(){const r=l(!1),a=P(),t=ce(),{postPurchaseEnabled:i}=me(),o=d(()=>{r.current=!0},[]);return e(ee,{target:"cart.paymentLines[0]",children:[e(K,{section:"payment",children:e(X,{section:"payment",children:e(Ge,{hostedFieldsLoaded:r.current,children:e(b,{blurValidationEnabled:!0,onSetFieldErrors:t,onLoadSuccess:o,children:[e(Xe,{}),e(Ze,{}),e(n,{when:a,children:e(E,{})})]})})})}),i&&e(g,{})]})}function Xe(){return se(),null}export{Xe as PaymentMethodCustomizations,Ke 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.