PageSourceSearch

https://cozyearth.com/cdn/shopifycloud/checkout-web/assets/c1/graphql-PaymentSessionMutation.CAXCwUvV.js

js cozyearth.com collected 2026-09-27 21:30:31 UTC 3,952 bytes, 1 lines download raw bytes

1import{h as r}from"./esnext-vendor.B9Da21W6.js";import{S as c}from"./addresses-is-address-empty.Bn2lNY_L.js";function S(e,t,n){const i=window.webkit?.messageHandlers?.CheckoutSheetProtocolConsumer,u=window.CheckoutSheetProtocolConsumer,d=[i,u,n];for(const s of d)if(s&&typeof s?.postMessage=="function")try{const o={name:t.handlerId,body:JSON.stringify(t.body)};return e.log("checkout_sheet_protocol_client_message_posted","Posting message to checkout sheet protocol consumer.",{handlerId:t.handlerId}),s.postMessage(JSON.stringify(o)),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(t.handlerId),status:"success"}}),!0}catch(o){return e.log("checkout_sheet_protocol_client_message_posting_failed","Error posting message to checkout sheet protocol consumer",{handlerId:t.handlerId,error:o instanceof Error?o.message:String(o)}),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(t.handlerId),status:"failed"}}),console.info("Error received when posting message to checkout sheet protocol consumer",t,o),!1}return e.log("checkout_sheet_protocol_client_no_consumer_found","No checkout sheet protocol consumer found",{handlerId:t.handlerId}),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(t.handlerId),status:"no_consumer"}}),!1}function I(){const e=window.opener||(window.parent===window?void 0:window.parent);return e?{postMessage(t){e.postMessage({_ecp:"2025-10",data:t},"*")}}:void 0}function v(e){return e!=null&&"merchandiseLine"in e}function y(e){return e!=null&&!("merchandiseLine"in e)?e:void 0}function k(e){return a(e.discount)}function a(e){return e.type==="code"||e.type==="automatic"||e.type==="custom"}var l=(e=>(e.Ddp="DDP",e.Dap="DAP",e.Ddu="DDU",e.Unsupported="UNSUPPORTED",e))(l||{}),h=(e=>(e.BuyerConfigured="Buyer Configured",e.DefaultDuties="Default Duties and Taxes",e.DutyAndTaxInclusive="Duty and Tax Inclusive Pricing",e.DutyInclusive="Duty Inclusive Pricing",e.ErrorOccured="Error Occured",e.FlowConfigured="Flow Configured",e.LowValueGoodsFallback="Low Value Goods Taxes Apply",e.PreConfigured="Pre-configured",e.UnsupportedRegion="Unsupported Region",e))(h||{});function D(e,t){const n=t.translations.get(e);return!!(n&&n.toString().trim()!=="")}function P(e){r(()=>{document.title=e},[e])}function C(e,{pageWasPainted:t=!0}={}){const{observability:n}=c();r(()=>{t&&n.log("page_rendered",`"${e}" page was rendered.`)},[n,e,t])}class $ extends Error{constructor(){super(...arguments),this.name="PaymentMethodDoNotMatchError"}}var p=(e=>(e.ShopPayProgressIntercept="ShopPay::Exception::ShopPayProgressIntercept",e))(p||{}),m=(e=>(e.Online="online",e.RetailPos="retail_pos",e))(m||{}),g=(e=>(e.Dismissed="dismissed",e.Pending="pending",e.Verified="verified",e))(g||{});const w={id:"4e99c51c5187daa6375cfd7696d3f3580e3ab58fd003c6f48fc55555907904f6",type:"mutation",name:"PaymentSession",source:"mutation PaymentSession($addressId:ID,$creditCardId:ID!,$checkoutSessionIdentifier:String!,$shopifyDomain:String!,$installmentsAgreements:InstallmentsAgreementsInput,$unvaultedShippingAddress:AddressInput,$checkoutClientSource:CheckoutClientSourceEnum,$batchCheckouts:[BatchCheckoutsInput!],$batchOnly:Boolean,$publicCvvSessionId:String){paymentSessionGenerate(addressId:$addressId creditCardId:$creditCardId checkoutIdentifier:$checkoutSessionIdentifier shopifyDomain:$shopifyDomain installmentsAgreements:$installmentsAgreements unvaultedShippingAddress:$unvaultedShippingAddress checkoutClientSource:$checkoutClientSource batchCheckouts:$batchCheckouts batchOnly:$batchOnly publicCvvSessionId:$publicCvvSessionId){userErrors{message field __typename}sessionId batchCheckoutSessionIds{sessionId shopId __typename}__typename}}"};export{m as C,l as I,$ as P,p as S,P as a,v as b,a as c,g as d,y as e,h as f,I as g,D as h,k as i,S as p,w as s,C 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.