PageSourceSearch

https://www.krollit.com/cdn/shopifycloud/checkout-web/assets/c1/7a8217fd.Dj-7R-cN.js

js krollit.com collected 2026-10-08 09:23:29 UTC 6,901 bytes, 1 lines download raw bytes

1import{q as e,I as t,t as s,h as a,u as o,g as n}from"./2c1ab0fe.Bf8FS-kA.js";import{c as l,v as c,aA as r,ha as i,br as u,c7 as p,hb as d,hc as g,kN as h,ab as m,c2 as y,cX as b,oI as f}from"./4b4bc88f.C6QXxWcp.js";import{i as _}from"./8599b02a.D0GeWg8T.js";import{aF as k,iu as v,bg as P,bM as w,bN as I,M as A,aX as C,a7 as x,a8 as M,gd as E,ej as L,iv as S}from"./164ad2e3.BPEX42uv.js";function U(){const{shopPay:t,checkout:s}=l(),{paymentMethods:a}=s.negotiator.current.fields,o=s.installments.paymentMethodMustSupportInterestBearingLoans;return{creditCardDisabled:e(e=>_(e,a,t.session.isInstallmentsSelected,o),[a,o,t.session.isInstallmentsSelected])}}const B={id:"fdc8128f690860079c498a10b90912e0f80562eb838162c450f12b65d69b0389",type:"query",name:"MsiCardEligibility",source:"query MsiCardEligibility($checkoutContextInput:CheckoutContextInput!){checkoutSession(checkoutContextInput:$checkoutContextInput){user{paymentMethods{...on CreditCard{id msiEligible __typename}__typename}__typename}__typename}}"},N=Object.freeze({}),R=k(({checkout:e,graphql:a,shop:o,shopPay:n,source:l})=>{const p=e.proposal.negotiated.fields,d=t(()=>p.buyerIdentity.value?.presentmentCurrency),g=t(()=>i(p.paymentMethods.value??[])),h=t(()=>"shopPay"!==e.identity.current.value||!g.value||"MXN"!==d.value),m=t(()=>n.user.paymentMethods.value.filter(u).map(e=>e.id).sort().join(",")),y=a.shopPayGraphql.query(B,{variables:{checkoutContextInput:{checkoutVersion:r({source:l}),checkoutIdentifier:l.checkoutSessionIdentifier??"unknown",shopifyDomain:o.myshopifyDomain,shopId:c(o.id)}},skip:()=>h.value});let b=m.peek(),f=d.peek();return s(function(){const e=m.value,t=d.value,s=e!==b||t!==f;b=e,f=t,s&&!h.peek()&&y.refetch({deduplicate:!0})}),{eligibilityByCardId:t(()=>{if(h.value)return N;const e=y.data.value?.checkoutSession?.user?.paymentMethods;if(!e)return N;const t={};for(const s of e)"CreditCard"===s.__typename&&(t[s.id]=s.msiEligible??!1);return t}),error:y.error,loading:y.loading}});function D(e){if("wallet"!==e?.method.type)return!1;switch(e.method.name){case"APPLE_PAY":return g(e);case"GOOGLE_PAY":return d(e);case"PAYPAL_EXPRESS":return p(e);default:return!1}}function T({checkout:e,shopPay:t}){return"treatment"===t.installments.paymentMethodRequirementRemovalVariant.value&&"shopPay"===e.identity.current.value&&!t.isExternal&&"web"===t.app.config.surface&&!t.app.config.version&&!h(e.proposal.negotiated.fields.customAttributes.value)}const q=v.get("base")??0;function V({children:e,open:t=!1,...s}){const n="entered"===P(t,"slow"),{isAppLayout:c}=w(),r=I(),{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:q}}})};if(n&&c)return e("modal_open"),()=>{e("modal_close")}},[n,c,r,u]),o(A,{size:"large",open:t,...s,children:e})}function O(){const e=C(),{shopPay:t,checkout:{address:s,negotiator:a}}=l(),{value:o}=a.current.fields.paymentMethods,{billingAddress:n,billingAddressOption:c}=a.parts,r=m("shipping"===c.value?e.value:n.value,{extendedAddressMode:s.extendedAddressMode}),{eligibilityByCardId:i}=y(R),p=t.session.selectedPaymentMethod.value,d=b(o),g=!(null==p||!u(p))&&(i.value[p.paymentAttributes.id]??!1);return({sessionToken:e,creditCardInstallments:s,msiEligibleCard:a=g}={})=>{const n=t.session.hsaRequested.peek();return{method:{type:"wallet",name:"SHOP_PAY",walletContent:{paymentMethod:"CREDIT_CARD",sessionToken:e,billingAddress:r,paymentMethodIdentifier:f(o),...null!=s&&s>0&&{creditCardInstallments:s},...a&&{msiEligibleCard:a},...d&&{hsaRequested:n}}}}}}v.get("slow");const X="/cdn/shopifycloud/checkout-web/assets/c1/assets/applepay-logo.BVeJpuwf.svg",Y={walletLogo:"e5syv",xxxsmall:"_7NPtB",xxsmall:"XGA28",xsmall:"gKSKB",small:"DWmRr",medium:"RULId",large:"SMmkH",AmazonPayLogoVerticalAlignment:"EpCJ3",BuyWithPrimeLogoVerticalAlignment:"_705vE",ShopPayLogoVerticalAlignment:"Zxnlh"};function j({size:e="medium",wallet:t,invertColor:s=!1}){const a=x(),n=M(a);let c=E();s&&(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:X,lightIconUrl:X,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")}}[t];if(!u)return i.log("wallet_logo_unsupported_wallet_encountered","Unsupported wallet type in WalletLogo",{wallet:t,severity:"warning"}),null;const p="light"===c?u.lightIconUrl:u.iconUrl,d=[Y.walletLogo,Y[e],u.customClassName&&Y[u.customClassName]].filter(
1Boolean).join(" ");return o("img",{src:p,className:d,alt:u.altText})}function z(){const{i18n:e}=l(),{isWebLayout:t}=w();return({offerGuestCheckout:s=!1}={})=>s&&t?{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(S,{})}),target:L}:{message:e.translate("payment_errors.processing_error"),target:L}}function G(...e){const[t,s]=e,o=n(s),{shopPay:{progressInterceptor:c}}=l();o.current=s,a(()=>c.intercept(t,()=>o.current()),[c,t])}export{q as M,V as O,R as S,j as W,G as a,z as b,T as c,O as d,D as i,U 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.