PageSourceSearch

https://linyalinya.ph/cdn/shopifycloud/checkout-web/assets/c1/hooks-useShopPayProgressIntercepts.DJVsS6aH.js

js linyalinya.ph collected 2026-09-28 23:55:12 UTC 6,735 bytes, 1 lines download raw bytes

1import{q as L,E as h,j as x,h as k,u as _,A as B}from"./esnext-vendor.DDpcaSqU.js";import{T as m,a5 as v,aY as D,I as T,aZ as V,u as G,m as M,z as N,A as R,B as O,a$ as W,W as Y,bH as q,bI as z,bJ as J,bK as K}from"./utilities-previous.Cnwy8G2v.js";import{i as X}from"./cvv-cvvBridge.CLYVr7ZJ.js";import{bD as S,b7 as F,bx as U,by as H,bC as Q,aJ as j,z as Z,A as $,bE as ee,bF as I,bG as te}from"./hydrate.BcfGVx0L.js";function xe(){const{shopPay:e,checkout:t}=m(),{paymentMethods:o}=v(),r=t.installments.paymentMethodMustSupportInterestBearingLoans;return{creditCardDisabled:L(n=>X(n,o,e.session.isInstallmentsSelected,r),[o,r,e.session.isInstallmentsSelected])}}const se={id:"fdc8128f690860079c498a10b90912e0f80562eb838162c450f12b65d69b0389",type:"query",name:"MsiCardEligibility",source:"query MsiCardEligibility($checkoutContextInput:CheckoutContextInput!){checkoutSession(checkoutContextInput:$checkoutContextInput){user{paymentMethods{...on CreditCard{id msiEligible __typename}__typename}__typename}__typename}}"},A=Object.freeze({}),oe=D(({checkout:e,graphql:t,shop:o,shopPay:r,source:a})=>{const n=e.proposal.negotiated.fields,s=h(()=>n.buyerIdentity.value?.presentmentCurrency),c=h(()=>G(n.paymentMethods.value??[])),l=h(()=>e.identity.current.value!=="shopPay"||!c.value||s.value!=="MXN"),i=h(()=>r.user.paymentMethods.value.filter(M).map(d=>d.id).sort().join(",")),u=t.shopPayGraphql.query(se,{variables:{checkoutContextInput:{checkoutVersion:V({source:a}),checkoutIdentifier:a.checkoutSessionIdentifier??"unknown",shopifyDomain:o.myshopifyDomain,shopId:T(o.id)}},skip:()=>l.value});let y=i.peek(),P=s.peek();return x(function(){const p=i.value,g=s.value,E=p!==y||g!==P;y=p,P=g,!(!E||l.peek())&&u.refetch({deduplicate:!0})}),{eligibilityByCardId:h(()=>{if(l.value)return A;const d=u.data.value?.checkoutSession?.user?.paymentMethods;if(!d)return A;const p={};for(const g of d)g.__typename==="CreditCard"&&(p[g.id]=g.msiEligible??!1);return p}),error:u.error,loading:u.loading}});function Be(e){if(e?.method.type!=="wallet")return!1;switch(e.method.name){case"APPLE_PAY":return O(e);case"GOOGLE_PAY":return R(e);case"PAYPAL_EXPRESS":return N(e);default:return!1}}const w=S.get("base")??0;S.get("slow");function De({children:e,open:t=!1,...o}){const a=F(t,"slow")==="entered",{isAppLayout:n}=U(),s=H(),{checkoutProtocolModalEventSignal:c}=W();return k(()=>{const l=i=>{c.value=i==="modal_open"?"redesign":"none",s.notify({checkout_ui:{type:i,payload:{duration:w}}})};if(!(!a||!n))return l("modal_open"),()=>{l("modal_close")}},[a,n,s,c]),_(Q,{size:"large",open:t,...o,children:e})}function Te(){const{value:e}=v().paymentMethods,{billingAddress:t,billingAddressOption:o}=Y(),r=j(),{shopPay:a,checkout:{address:n}}=m(),s=q(o.value==="shipping"?r.value:t.value,{extendedAddressMode:n.extendedAddressMode}),{eligibilityByCardId:c}=z(oe),l=a.session.selectedPaymentMethod.value,i=J(e),u=l!=null&&M(l)?c.value[l.paymentAttributes.id]??!1:!1;
1return({sessionToken:P,creditCardInstallments:b,msiEligibleCard:d=u}={})=>{const p=a.session.hsaRequested.peek();return{method:{type:"wallet",name:"SHOP_PAY",walletContent:{paymentMethod:"CREDIT_CARD",sessionToken:P,billingAddress:s,paymentMethodIdentifier:K(e),...b!=null&&b>0&&{creditCardInstallments:b},...d&&{msiEligibleCard:d},...i&&{hsaRequested:p}}}}}}const ae="/cdn/shopifycloud/checkout-web/assets/c1/assets/apay-logo-light.BOpRNbfJ.svg",ne="/cdn/shopifycloud/checkout-web/assets/c1/assets/apay-logo.qbCmTpxR.svg",le="/cdn/shopifycloud/checkout-web/assets/c1/assets/applepay-logo-borderless-light.D4uI0NI6.svg",ie="/cdn/shopifycloud/checkout-web/assets/c1/assets/applepay-logo-borderless.BpIqGUgE.svg",C="/cdn/shopifycloud/checkout-web/assets/c1/assets/applepay-logo.BVeJpuwf.svg",re="/cdn/shopifycloud/checkout-web/assets/c1/assets/bwp-logo-light.Be3NC6rq.svg",ce="/cdn/shopifycloud/checkout-web/assets/c1/assets/bwp-logo.BRDn9X4f.svg",ue="/cdn/shopifycloud/checkout-web/assets/c1/assets/gpay-logo-light.B_DsI0cq.svg",de="/cdn/shopifycloud/checkout-web/assets/c1/assets/gpay-logo.BbJVlra3.svg",pe="/cdn/shopifycloud/checkout-web/assets/c1/assets/paypal-logo-light.Do6ddnMD.svg",ge="/cdn/shopifycloud/checkout-web/assets/c1/assets/paypal-logo.Q2f7XzPy.svg",ye="/cdn/shopifycloud/checkout-web/assets/c1/assets/shop-pay-logo-light.Ts-yoc2V.svg",he="/cdn/shopifycloud/checkout-web/assets/c1/assets/shop-pay-logo.yJ-5VMKh.svg",me="/cdn/shopifycloud/checkout-web/assets/c1/assets/venmo-logo-light.Nme_SAlP.svg",Pe="/cdn/shopifycloud/checkout-web/assets/c1/assets/venmo-logo.DabXQIZQ.svg",be="e5syv",fe="_7NPtB",_e="XGA28",Ie="gKSKB",Ae="DWmRr",Ce="RULId",ke="SMmkH",ve="EpCJ3",Me="_705vE",Se="Zxnlh",f={walletLogo:be,xxxsmall:fe,xxsmall:_e,xsmall:Ie,small:Ae,medium:Ce,large:ke,AmazonPayLogoVerticalAlignment:ve,BuyWithPrimeLogoVerticalAlignment:Me,ShopPayLogoVerticalAlignment:Se};function Ve({size:e="medium",wallet:t,invertColor:o=!1}){const r=Z(),a=$(r);let n=ee();o&&(n=n==="light"?"dark":"light");const{i18n:s,observability:c}=m(),l={amazon_pay:{iconUrl:ne,customClassName:"AmazonPayLogoVerticalAlignment",lightIconUrl:ae,altText:s.translate("brand.amazon_pay")},APPLE_PAY:{iconUrl:C,lightIconUrl:C,altText:s.translate("brand.apple_pay")},APPLE_PAY_BORDERLESS:{iconUrl:ie,lightIconUrl:le,altText:s.translate("brand.apple_pay")},buy_with_prime:{iconUrl:ce,customClassName:"BuyWithPrimeLogoVerticalAlignment",lightIconUrl:re,altText:s.translate("brand.buy_with_prime")},GOOGLE_PAY:{iconUrl:de,lightIconUrl:ue,altText:s.translate("brand.google_pay")},PAYPAL_EXPRESS:{iconUrl:a?Pe:ge,lightIconUrl:a?me:pe,altText:a?s.translate("brand.venmo"):s.translate("brand.paypal")},SHOP_PAY:{iconUrl:he,customClassName:"ShopPayLogoVerticalAlignment",lightIconUrl:ye,altText:s.translate("brand.shop_pay")}};if(!(t in l))return c.log("wallet_logo_unsupported_wallet_encountered","Unsupported wallet type in WalletLogo",{wallet:t,severity:"warning"}),null;const i=l[t],u=n==="light"?i.lightIconUrl:i.iconUrl,y=[f.walletLogo,f[e],i.customClassName&&f[i.customClassName]].filter(Boolean).join(" ");return _("img",{src:u,className:y,alt:i.altText})}function Ge(){const{i18n:e}=m(),{isWebLayout:t}=U();return({offerGuestCheckout:o=!1}={})=>o&&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:_(te,{})}),target:I}:{message:e.translate("payment_errors.processing_error"),target:I}}function Ne(...e){const[t,o]=e,r=B(o),{shopPay:{progressInterceptor:a}}=m();r.current=o,k(()=>a.intercept(t,()=>r.current()),[a,t])}export{w as M,De as O,oe as S,Ve as W,Ne as a,Ge as b,Te as c,Be as i,xe 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.