import { ISOD } from "../../../@types/helper" ; /**
 * Script on Demand (SOD)
 */ export const SOD = { execute : ( key , functionName , ... args ) => { window [ "SP" ] ? window [ "SP" ] . SOD . execute ( key , functionName , args ) : null ; } , executeFunc : ( key , functionName , fn ) => { window [ "SP" ] ? window [ "SP" ] . SOD . executeFunc ( key , functionName , fn ) : null ; } , executeOrDelayUntilEventNotified : ( func , eventName ) => { window [ "SP" ] ? window [ "SP" ] . SOD . executeOrDelayUntilEventNotified ( func , eventName ) : null ; } , executeOrDelayUntilScriptLoaded : ( func , depScriptFileName ) => { window [ "SP" ] ? window [ "SP" ] . SOD . executeOrDelayUntilScriptLoaded ( func , depScriptFileName ) : null ; } , notifyEventAndExecuteWaitingJobs : ( eventName ) => { window [ "SP" ] ? window [ "SP" ] . SOD . notifyEventAndExecuteWaitingJobs ( eventName ) : null ; } , notifyScriptLoadedAndExecuteWaitingJobs : ( scriptFileName ) => { window [ "SP" ] ? window [ "SP" ] . SOD . notifyScriptLoadedAndExecuteWaitingJobs ( scriptFileName ) : null ; } , registerSod : ( key , url ) => { window [ "SP" ] ? window [ "SP" ] . SOD . registerSod ( key , url ) : null ; } , registerSodDep : ( key , dep ) => { window [ "SP" ] ? window [ "SP" ] . SOD . registerSodDep ( key , dep ) : null ; } , } ;