import { Network } from './models/network' ; export function buildIframeUrl ( iframeUrl , picker , sdkConfig , disabledDialogs , network ? ) { const query = encodeQuery ( { picker , network , sdkConfig : JSON . stringify ( sdkConfig ) , disabledDialogs , } ) ; return `${ iframeUrl }?${ query }` ; } function encodeQuery ( query ) { return Object . entries ( query ) . map ( ( [ key , value ] ) => `${ encodeURIComponent ( key ) }=${ encodeURIComponent ( value ?. toString ( ) ?? '' ) }` ) . join ( '&' ) ; }