PageSourceSearch

https://voxsamples.com/cdn/shopifycloud/checkout-web/assets/c1/7a8217fd.BsB9ld7l.js

js voxsamples.com collected 2026-10-06 05:29:35 UTC 6,614 bytes, 1 lines download raw bytes

1import{q as e,I as s,t,h as a,u as o,g as n}from"./2c1ab0fe.RaLGJvq2.js";import{a as l,p as c,az as r,hl as i,bn as u,b$ as d,hm as p,hn as g,a1 as h,bY as m,cs as y,oA as b}from"./f67abd2c.BTHhdhoM.js";import{i as _}from"./8599b02a.DeY28qKv.js";import{aE as f,ii as k,be as v,bJ as P,bK as w,M as I,aV as A,a6 as C,a7 as x,g5 as E,eb as M,ij as L}from"./164ad2e3.bPUx3Fg0.js";function S(){const{shopPay:s,checkout:t}=l(),{paymentMethods:a}=t.negotiator.current.fields,o=t.installments.paymentMethodMustSupportInterestBearingLoans;return{creditCardDisabled:e(e=>_(e,a,s.session.isInstallmentsSelected,o),[a,o,s.session.isInstallmentsSelected])}}const U={id:"fdc8128f690860079c498a10b90912e0f80562eb838162c450f12b65d69b0389",type:"query",name:"MsiCardEligibility",source:"query MsiCardEligibility($checkoutContextInput:CheckoutContextInput!){checkoutSession(checkoutContextInput:$checkoutContextInput){user{paymentMethods{...on CreditCard{id msiEligible __typename}__typename}__typename}__typename}}"},B=Object.freeze({}),D=f(({checkout:e,graphql:a,shop:o,shopPay:n,source:l})=>{const d=e.proposal.negotiated.fields,p=s(()=>d.buyerIdentity.value?.presentmentCurrency),g=s(()=>i(d.paymentMethods.value??[])),h=s(()=>"shopPay"!==e.identity.current.value||!g.value||"MXN"!==p.value),m=s(()=>n.user.paymentMethods.value.filter(u).map(e=>e.id).sort().join(",")),y=a.shopPayGraphql.query(U,{variables:{checkoutContextInput:{checkoutVersion:r({source:l}),checkoutIdentifier:l.checkoutSessionIdentifier??"unknown",shopifyDomain:o.myshopifyDomain,shopId:c(o.id)}},skip:()=>h.value});let b=m.peek(),_=p.peek();return t(function(){const e=m.value,s=p.value,t=e!==b||s!==_;b=e,_=s,t&&!h.peek()&&y.refetch({deduplicate:!0})}),{eligibilityByCardId:s(()=>{if(h.value)return B;const e=y.data.value?.checkoutSession?.user?.paymentMethods;if(!e)return B;const s={};for(const t of e)"CreditCard"===t.__typename&&(s[t.id]=t.msiEligible??!1);return s}),error:y.error,loading:y.loading}});function N(e){if("wallet"!==e?.method.type)return!1;switch(e.method.name){case"APPLE_PAY":return g(e);case"GOOGLE_PAY":return p(e);case"PAYPAL_EXPRESS":return d(e);default:return!1}}const R=k.get("base")??0;function T({children:e,open:s=!1,...t}){const n="entered"===v(s,"slow"),{isAppLayout:c}=P(),r=w(),{checkout:{negotiator:i}}=l(),{checkoutProtocolModalEventSignal:u}=i.context;return a(()=>{const e=e=>{u.value="modal_open"===e?"redesign":"none",r.notify({checkout_ui:{type:e,payload:{duration:R}}})};if(n&&c)return e("modal_open"),()=>{e("modal_close")}},[n,c,r,u]),o(I,{size:"large",open:s,...t,children:e})}function V(){const e=A(),{shopPay:s,checkout:{address:t,negotiator:a}}=l(),{value:o}=a.current.fields.paymentMethods,{billingAddress:n,billingAddressOption:c}=a.parts,r=h("shipping"===c.value?e.value:n.value,{extendedAddressMode:t.extendedAddressMode}),{eligibilityByCardId:i}=m(D),d=s.session.selectedPaymentMethod.value,p=y(o),g=!(null==d||!u(d))&&
1(i.value[d.paymentAttributes.id]??!1);return({sessionToken:e,creditCardInstallments:t,msiEligibleCard:a=g}={})=>{const n=s.session.hsaRequested.peek();return{method:{type:"wallet",name:"SHOP_PAY",walletContent:{paymentMethod:"CREDIT_CARD",sessionToken:e,billingAddress:r,paymentMethodIdentifier:b(o),...null!=t&&t>0&&{creditCardInstallments:t},...a&&{msiEligibleCard:a},...p&&{hsaRequested:n}}}}}}k.get("slow");const q="/cdn/shopifycloud/checkout-web/assets/c1/assets/applepay-logo.BVeJpuwf.svg",O={walletLogo:"e5syv",xxxsmall:"_7NPtB",xxsmall:"XGA28",xsmall:"gKSKB",small:"DWmRr",medium:"RULId",large:"SMmkH",AmazonPayLogoVerticalAlignment:"EpCJ3",BuyWithPrimeLogoVerticalAlignment:"_705vE",ShopPayLogoVerticalAlignment:"Zxnlh"};function Y({size:e="medium",wallet:s,invertColor:t=!1}){const a=C(),n=x(a);let c=E();t&&(c="light"===c?"dark":"light");const{i18n:r,observability:i}=l(),u={amazon_pay:{iconUrl:"/cdn/shopifycloud/checkout-web/assets/c1/assets/apay-logo.qbCmTpxR.svg",customClassName:"AmazonPayLogoVerticalAlignment",lightIconUrl:"/cdn/shopifycloud/checkout-web/assets/c1/assets/apay-logo-light.BOpRNbfJ.svg",altText:r.translate("brand.amazon_pay")},APPLE_PAY:{iconUrl:q,lightIconUrl:q,altText:r.translate("brand.apple_pay")},APPLE_PAY_BORDERLESS:{iconUrl:"/cdn/shopifycloud/checkout-web/assets/c1/assets/applepay-logo-borderless.BpIqGUgE.svg",lightIconUrl:"/cdn/shopifycloud/checkout-web/assets/c1/assets/applepay-logo-borderless-light.D4uI0NI6.svg",altText:r.translate("brand.apple_pay")},buy_with_prime:{iconUrl:"/cdn/shopifycloud/checkout-web/assets/c1/assets/bwp-logo.BRDn9X4f.svg",customClassName:"BuyWithPrimeLogoVerticalAlignment",lightIconUrl:"/cdn/shopifycloud/checkout-web/assets/c1/assets/bwp-logo-light.Be3NC6rq.svg",altText:r.translate("brand.buy_with_prime")},GOOGLE_PAY:{iconUrl:"/cdn/shopifycloud/checkout-web/assets/c1/assets/gpay-logo.BbJVlra3.svg",lightIconUrl:"/cdn/shopifycloud/checkout-web/assets/c1/assets/gpay-logo-light.B_DsI0cq.svg",altText:r.translate("brand.google_pay")},PAYPAL_EXPRESS:{iconUrl:n?"/cdn/shopifycloud/checkout-web/assets/c1/assets/venmo-logo.DabXQIZQ.svg":"/cdn/shopifycloud/checkout-web/assets/c1/assets/paypal-logo.Q2f7XzPy.svg",lightIconUrl:n?"/cdn/shopifycloud/checkout-web/assets/c1/assets/venmo-logo-light.Nme_SAlP.svg":"/cdn/shopifycloud/checkout-web/assets/c1/assets/paypal-logo-light.Do6ddnMD.svg",altText:n?r.translate("brand.venmo"):r.translate("brand.paypal")},SHOP_PAY:{iconUrl:"/cdn/shopifycloud/checkout-web/assets/c1/assets/shop-pay-logo.yJ-5VMKh.svg",customClassName:"ShopPayLogoVerticalAlignment",lightIconUrl:"/cdn/shopifycloud/checkout-web/assets/c1/assets/shop-pay-logo-light.Ts-yoc2V.svg",altText:r.translate("brand.shop_pay")}};if(!(s in u))return i.log("wallet_logo_unsupported_wallet_encountered","Unsupported wallet type in WalletLogo",{wallet:s,severity:"warning"}),null;const d=u[s],p="light"===c?d.lightIconUrl:d.iconUrl,g=[O.walletLogo,O[e],d.customClassName&&O[d.customClassName]].filter(Boolean).join(" ");return o("img",{src:p,className:g,alt:d.altText})}function z(){const{i18n:e}=l(),{isWebLayout:s}=P();return({offerGuestCheckout:t=!1}={})=>t&&s?{message:e.translate("payment_errors.processing_error_checkout_as_guest",{checkout_as_guest_link:e.translate("account_management.checkout_as_guest_link")}),messageNode:e.translate("payment_errors.processing_error_checkout_as_guest",{checkout_as_guest_link:o(L,{})}),target:M}:{message:e.translate("payment_errors.processing_error"),target:M}}function j(...e){const[s,t]=e,o=n(t),{shopPay:{progressInterceptor:c}}=l();o.current=t,a(()=>c.intercept(s,()=>o.current()),[c,s])}export{R as M,T as O,D as S,Y as W,j as a,z as b,V as c,N as i,S as u};

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.