import i from"@arcgis/core/webscene/Presentation";import{checkArg as s}from"../utilities/checkArg.js";import{Slide as e}from"./Slide.js";export var Presentation;!function(t){t.toEsriApiPresentation=async function(t){s("presentationJson",t).isNotMissing();const n=new i;if(t.slides&&t.slides.length>0)for(const i of t.slides)n.slides.add(await e.toEsriApiSlide(i));return n},t.fromEsriApiPresentation=function(i){s("presentation",i).isNotMissing();const t={slides:[]};return i.slides.forEach((i=>{t.slides.push(e.fromEsriApiSlide(i))})),t}}(Presentation||(Presentation={}));