PageSourceSearch

https://blyme.co.uk/cdn/shopifycloud/checkout-web/assets/c1/hooks-useStableHostMethodsReferences.D9BLwpf-.js

js blyme.co.uk collected 2026-09-29 09:41:58 UTC 1,528 bytes, 1 lines download raw bytes

1import{D as g,u as b,T as y,A as d,q as w,h as A}from"./esnext-vendor.7EcvH7tF.js";import{Q as E}from"./utilities-previous.BNOUhCqt.js";import{b as D}from"./amazon-pay-useAmazonPayPaymentLine.Dzl9q1le.js";import{fJ as I}from"./hydrate.CvWSYK3c.js";const R=g(function(t,n){const{allow:o,...e}=t;return b("iframe",{...e,ref:n,allow:o})});function T(r){return y(()=>Math.random(),[r])}const L=({sandboxUrl:r,endpointId:t,iframeTitle:n,iframeId:o,iframeName:e,hostMethods:s,inlineStyle:c,className:v,allow:B,sandbox:h,onConnect:p,onTerminate:M,onIframeLoad:l,onEndpointCreated:m,onUnmount:k})=>{const u=d(null),i=d(null),F=T(s),{observability:a}=E(),_=w(()=>{if(l?.(),!u.current){a.leaveErrorBreadcrumb("Sandbox iframe ref is null, skipping endpoint setup",{iframeName:e});return}const f=D(u.current,r,t,a,{});m?.(),i.current=f,f.expose(s),p(f)},[l,r,t,a,m,s,p,e]);return A(()=>()=>{k?.(),i.current&&(i.current.terminate(),M?.())},[]),b(R,{id:o,name:e,title:n,ref:u,sandbox:h,src:r,style:c,className:v,onLoad:_,allow:B},F)};var q=(r=>(r.Success="success",r.Error="error",r.ScriptLoadError="script_load_error",r.UnsupportedBrowser="unsupported_browser",r))(q||{});const Q=()=>{const{observability:r}=E();return w(({message:t,attributes:n={}})=>{r.leaveErrorBreadcrumb(t,n)},[r])};function S(r){const t=I(r);return y(()=>{const o={};for(const e in r)o[e]=((...s)=>{const c=t.current;if(c[e]===void 0)throw new TypeError(`Missing wallet host method: ${e}`);return c[e](...s)});return o},[])}export{L as B,R as I,q as S,S as a,Q 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.