PageSourceSearch

https://jenis.com/cdn/shopifycloud/checkout-web/assets/c1/74122478.FqQIunJ9.js

js jenis.com collected 2026-10-01 10:26:51 UTC 11,302 bytes, 1 lines download raw bytes

1import{u as e,k as r,f as a,h as t,o as i,S as n,i as s,T as o,A as l,q as c}from"./2c1ab0fe.D_oO1jU7.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.91jcUSQ2.js";import{L as g,P as _,R as j,u as P,S as E}from"./73a9b0a0.D8Gs2o-g.js";import{A as S,L as R,W as w,dc as T,K as k,h as z,d as C,c5 as A,s as L,bI as F,bH as I,c$ as M,M as x,p as B,a1 as D,R as O,U as N,dd as H,_ as U,c as V,H as Y,bU as $,de as q,b as K,P as G,V as Q,I as J,n as W,df as X,m as Z,N as ee,O as re,cR as ae}from"./164ad2e3.DgUUtBtV.js";import{u as te,a as ie,V as ne,e as se,f as oe,h as le,i as ce}from"./86720dbb.lSLFpGJE.js";import{a as de,u as me,b as pe}from"./58314944.QVtJf4c2.js";import{u as ue,S as he,c as fe}from"./ca5e9c49.BL-l7mUG.js";import{B as ye}from"./b9c0319a.Bj2lNtZE.js";import{C as be}from"./a535174a.D9-hmEEh.js";import{M as ve}from"./0b8657b8.CBFRF2sQ.js";import{b as ge,d as _e,c as je,P as Pe,a as Ee}from"./a25deb9a.XIOr6b3K.js";import{u as Se,P as Re,R as we,a as Te,V as ke,S as ze}from"./4ea44c06.D08Q9XyC.js";import{P as Ce}from"./e3e348f2.sbssU431.js";import{a as Ae,T as Le}from"./65f3d4da.8ZfwXSRH.js";import{O as Fe,P as Ie,aX as Me,aT as xe,a7 as Be,cD as De,a8 as Oe,Q as Ne,cK as He,b_ as Ue,bU as Ve,_ as Ye,cL as $e,ae as qe,b0 as Ke}from"./4c290a1e.D9lE9kmU.js";import{I as Ge}from"./55098bf1.CrP8QF43.js";import{K as Qe}from"./dfc03c53.CSYqcfoO.js";import"./app.bDJ3v-8C.js";import"./ac5a19ff.CrIDx928.js";import"./598fef4e.DSM2KxPW.js";import"./e77f7fe0.B5ukwIHt.js";import"./a422df8c.CGT3eUwi.js";import"./efa0389a.-R9eik6_.js";import"./31cc568e.CsDC1k63.js";import"./8599b02a.yKiXuwTF.js";import"./cc6ff67d.SUHuL0DO.js";import"./0a7dffce.BMM606kb.js";import"./08a3b809.CkE7TqUZ.js";import"./e477f96c.dvrL9dgG.js";import"./87bfafec.DaEgHDYY.js";import"./e39bc11c.BNw-kv3c.js";import"./bff2ff9b.DxpvVf7S.js";import"./cf29e63b.CnWxVFH5.js";import"./bb728e1c.BObJOhlA.js";import"./0e67bd3b.DkCvQkdq.js";import"./74835653.9kmD7491.js";import"./3ca8ef7e.DT3qvctx.js";import"./47b970b2.Bspt4mBz.js";import"./29034f35.BY8rOPhQ.js";import"./064f6ac1.CT1iFQsV.js";import"./53bbdad9.Bipg1_Lt.js";import"./e0989459.44TRzqx7.js";import"./60a453ce.BIyixFcg.js";import"./dfca5da5.H1thSL3M.js";import"./7a8217fd.BlWFPiiA.js";import"./7114e006.B60DstSA.js";import"./f692f62f.D8N74P4K.js";import"./b684bff6.Dv62TgX4.js";import"./6720fa5f.gZhcGybT.js";import"./ccdf3592.Jq-5VsnW.js";import"./5fd968f2.DTvmd-mL.js";import"./01973ac7.BVhNP6nv.js";import"./f78726c8.K7FaLIh2.js";import"./ed9f2238.C-XxbQrN.js";import"./50130ded.D7fAevzP.js";function Je(){const{i18n:r,shop:{developmentShop:a},url:t}=Fe();return a?e(w,{errorType:S.PaymentError,tone:"warning",children:r.translate("payment_errors.development_store_with_order_limit",{development_store_order_testing_docs_link:e(R,{href:t.developmentStoreOrderTestingDocs(),children:r.translate("payment_errors.development_store_order_testing_docs_link")})})}):null}const We=r=>e(U,{children:r});function Xe({hostedFieldsLoaded:o,children:l}){const{i18n:c,shop:f,source:y,checkout:b,observability:v}=Fe(),{giftCardsEnabled:P,discountCodesEnabled:E,acceptTipPayments:R}=f,{configuration:ee}=b,re=b.latestReceipt.value,ae=T(),oe=E&&ae.value,{nextPage:le,previousPage:ce}=k(),[pe,fe]=r(!1),[Ge,Qe]=r(!1),[Xe,er]=r(!1),rr="simulated"===y.type,ar=Ie().buyerIdentity.value?.purchasingCompany,tr=Boolean(ar),ir="draftOrder"===y.type,nr=tr&&ir,sr=Me(),{cartLineChangeLoadingSignal:or}=xe(),lr=or.value,[cr,dr]=r(!1),[mr,pr]=r(),{negotiate:ur,progress:hr,progressing:fr}=z(),yr=Be().isBlocked.value,br=De(),vr=Oe(),gr=Ie(),_r=gr.paymentMethods,jr=tr&&!b.isShippingRequired.value,Pr=Se(),Er=!br.value||vr.value,{billingAddressOption:Sr,directPaymentErrors:Rr,generalPaymentError:wr,generalPaymentErrorCode:Tr,paymentLines:{value:kr}}=Ne(),zr=Ae({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)&&(He({lines:kr,paymentMethods:_r?.value,purchasingCompany:Boolean(ar),isBillingAddressForced:!zr})||!Er),Lr=Ne().localizationExtensions.value,{value:Fr}=Ue(),Ir=0!==Fr.length,Mr=Er&&Ir||!Er,xr=kr.some((e=>"direct"===e.method.type)),{displayedPaymentMethods:Br}=te({experienceType:"list"}),Dr="knownBuyerShared"===ie(Br).mode,Or=C().value,Nr=A(),Hr="error"===L({isPayWithPayPalButton:!0}).value.status;d();const Ur=gr.managedByMarketsPro,Vr=yr||rr&&"review"!==le.id||Nr.value&&Hr||lr,{lastJourneyProgression:Yr}=Be(),$r=F(),qr=a((()=>de(Rr))),Kr="failed"===re?.status,Gr=Kr&&"payment"===re?.failure.type?re.failure:void 0,Qr="AUTHENTICATION_ERROR"===Gr?.code,Jr=Kr&&"inventory"===re?.failure?.type?re.failure:void 0,Wr=Xe,Xr=Boolean(Ge||Kr&&"order"===re?.failure?.type),Zr=null!=Gr&&!Qr,ea=I(Gr),ra=wr.value&&!Ve(Tr.value),aa=me(wr.value,Tr.value),ta=c.translate("payment.title"),ia=c.translate("general.pay_now_button_label"),na=b.configuration.layout.isOnePage.value,sa=M(),oa="failed"===re?.status&&"payment"===re.failure.type&&"GENERIC_ERROR"===re.failure.code&&"walletsPlatformPaymentMethod"===kr[0]?.method.type&&kr[0]?.method.name===Ye.AmazonPay;ue({stage:xr&&!o?he.Usable:he.Complete,id:"Payment"}),x("payment");
1const la=Boolean(Gr),ca=re?.id,da=Boolean(Gr&&$e.has(Gr.code));if(t((()=>{$r||!la||tr||(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,$r,tr,ur,v,da,ca]),mr)throw mr;const ma=B("Checkout::Dynamic::Render","PAYMENT1"),pa=B("Checkout::Dynamic::Render","PAYMENT2"),ua=B("Checkout::Dynamic::Render","PAYMENT3"),ha=B("Checkout::Dynamic::Render","PAYMENT4"),fa=B("purchase.checkout.payment-method-list.render-before"),ya=B("purchase.checkout.payment-method-list.render-after"),ba=ee.visibility.showReductions,va=qe(),ga=D({base:!0,medium:!1}),_a=!va.value||ga;let ja=null;ee.visibility.showAside?_a&&(ja=e(Z,{above:"small",children:e(X,{headerLevel:1,monorailSection:"payment"})})):ja=e(X,{headerLevel:1,monorailSection:"payment"});const Pa=ba&&!nr&&(P||E)?ja:null,Ea=!nr&&!sr.value&&R&&!Ke(y),Sa=Ur.value&&Mr&&"review"!==le.id,Ra=cr||fr.value;return i((()=>{"failed"===Yr.value.type&&Qe(!0)})),e(n,{children:[e(Le,{children:ta}),e(O,{onSubmit:async()=>{if(!Vr){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,t="success"===e.status&&"receipt"in e&&"failed"===e.receipt.status;dr(!1),er("fetch_failed"===e.status),Qe(r||a),fe(t)}))}catch(e){e instanceof Error&&pr(e)}finally{dr(!1)}}},disabled:cr||yr,implicitSubmit:ia,children:e(ge,{children:[e(_e,{children:[e(N,{customizations:ma,render:We}),e(Ze,{genericPaymentError:Zr,shouldSuppressReceiptError:$r,inventoryReservationFailure:Jr,isAmazonPaymentDeclineScenario:oa,networkFailure:Wr,orderFailure:Xr,paymentErrorMessage:ea,processingFailed:pe}),e(Je,{}),Pa,Ea?e(n,{children:[e(H,{sectionId:"tips",children:e(m,{renderInSection:!0,headingLevel:1})}),e(N,{customizations:pa,render:We})]}):null,Lr.length>0&&e(n,{children:e(U,{accessibilityLabel:c.translate("localized_fields.additional_information.title"),children:e(V,{gap:"base",children:[e(Y,{id:`${$}-localized-fields`,level:1,children:c.translate("localized_fields.additional_information.title")}),Lr.map(((r,a)=>{const t=`${r.value.key}${a}`;return e(g,{localizationExtension:r,index:a},t)}))]})})}),e(n,{}),e(U,{accessibilityRole:"group",accessibilityLabelledBy:$,children:e(V,{gap:"base",children:[e(_,{headingId:$,autoFocus:!na}),e(s,{when:ee.visibility.showStoreCreditRedemption,children:e(p,{})}),ra?e(w,{errorType:S.PaymentError,tone:"critical",children:aa}):null,e(s,{when:qr,children:e(w,{errorType:S.PaymentError,tone:"critical",children:c.translate("payment.generic_incorrect_card_info")})}),Qr?e(w,{errorType:S.PaymentError,tone:"critical",children:c.translate("payment_errors.three_d_secure_failed")}):null,e(N,{customizations:fa}),e(s,{when:ee.visibility.showStoreCreditRedemption,children:e(u,{})}),l,e(N,{customizations:ya}),e(s,{when:Pr,children:e(be,{})})]})}),e(h,{}),e(N,R?{customizations:ua,render:We}:{customizations:pa,render:We}),!Ar||!(b.isShippingRequired.value||Ke(y)||jr)||sa.value||Dr&&xr?null:e(ye,{}),e(N,R?{customizations:ha,render:We}:{customizations:ua,render:We}),e(j,{compact:!0}),!R&&e(N,{customizations:ha,render:We}),!Or||Dr&&xr?null:e(U,{children:e(ne,{})}),e(s,{when:vr,children:e(Ce,{placement:"default",wrapInSection:!0})}),e(s,{when:ee.visibility.showPurchaseOrderNumberField,children:e(se,{})})]}),Sa&&e(ve,{}),e(Re,{}),oe&&e(q,{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(je,{children:[e(Pe,{children:[e(we,{children:e(Te,{disabled:!Mr||Vr,loading:Ra,defaultLabel:le.label,pixelId:"go_to_next_step"})}),le.notice?e(n,{children:[e(K,{blockSize:"small-200"}),e(G,{textAlign:"center",color:"subdued",type:"small",children:le.notice})]}):null]}),ce.route?e(Ee,{children:e(Q,{href:ce.route,variant:"plain",inlineSize:"fill",textDecoration:"none",pixelId:"go_to_previous_step",children:e(V,{direction:"inline",gap:"small-200",alignItems:"center",children:[e(J,{type:"chevron-left",size:"small"}),e(W,{children:ce.label})]})})}):null]}),"review"===le.id?null:e(n,{children:[e(ke,{}),e(ze,{})]})]})})]})}const Ze=({orderFailure:r,inventoryReservationFailure:a,isAmazonPaymentDeclineScenario:t,genericPaymentError:i,processingFailed:n,shouldSuppressReceiptError:s,paymentErrorMessage:o,networkFailure:l})=>{const{i18n:c}=Fe(),{lastJourneyProgression:d}=Be();return t?null:!i&&!n||s?l?e(w,{errorType:S.PaymentError,tone:"critical",children:c.translate("order_errors.network_failure")}):a?e(w,{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(w,{errorType:S.PaymentError,tone:"critical",children:c.translate("payment_errors.generic_error")}):e(w,{errorType:S.PaymentError,tone:"critical",children:c.translate("order_errors.creation_failure")}):null:e(w,{errorType:S.PaymentError,tone:"critical",children:o})};function er(){const r=f({enableAutoSelect:!1}),{expandedSlot:a}=y(r);return e(Qe,{msiSlot:a,hideChoiceListChrome:!1,detailsPresentation:"boxed"})}function rr(){const{displayedPaymentMethods:r}=te({experienceType:"list"}),a=ie(r),t=o((()=>r.map((e=>"name"in e?e.name:e.type))),[r]);return"knownBuyerShared"===a.mode?e(Ge,{impressionType:"payment",impressionFeatures:oe(t,a),children:e(er,{})}):e(le,{renderVaultingAgreementInline:!1})}function ar(){const r=l(!1),a=P(),t=pe(),{postPurchaseEnabled:i}=fe(),n=c((()=>{r.current=!0}),[]);return e(ae,{target:"cart.paymentLines[0]",children:[e(ee,{section:"payment",children:e(re,{section:"payment",children:e(Xe,{hostedFieldsLoaded:r.current,children:e(b,{blurValidationEnabled:!0,onSetFieldErrors:t,onLoadSuccess:n,children:[e(tr,{}),e(rr,{}),e(s,{when:a,children:e(E,{})})]})})})}),i&&e(v,{})]})}function tr(){return ce(),null}export{tr 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.