PageSourceSearch

https://novelty.mx/cdn/shopifycloud/checkout-web/assets/c1/hooks-useStableHostMethodsReferences.DObnt9s8.js

js novelty.mx collected 2026-09-26 20:51:25 UTC 1,536 bytes, 1 lines download raw bytes

1import{D as g,u as b,T as y,A as d,q as E,h as A}from"./esnext-vendor.B9Da21W6.js";import{S as w}from"./addresses-is-address-empty.Bn2lNY_L.js";import{b as D}from"./amazon-pay-useAmazonPayPaymentLine.Ju006AId.js";import{fE as I}from"./hydrate.DZ4YTm7p.js";const R=g(function(t,n){const{allow:o,...e}=t;return b("iframe",{...e,ref:n,allow:o})});function S(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=S(s),{observability:a}=w(),_=E(()=>{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 T=(r=>(r.Success="success",r.Error="error",r.ScriptLoadError="script_load_error",r.UnsupportedBrowser="unsupported_browser",r))(T||{});const $=()=>{const{observability:r}=w();return E(({message:t,attributes:n={}})=>{r.leaveErrorBreadcrumb(t,n)},[r])};function j(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,T as S,j as a,$ 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.