import{bold as n}from"colorette";import{DEFAULT_THEME_NAME as g}from"../../constants/common.js";import{logger as m}from"../../server/tools/notifiers/logger.js";import{getThemeFiles as c,getEjectedFiles as y,copyComponent as p}from"./themeOperations.js";async function T({pathToThemeFolder:i,pathToPortalCustomThemeFolder:e,theme:r=g},t){const s=m.startTiming(),o=c(i,{onlyFilePatterns:t.onlyFiles,ignoreFilePatterns:t.ignoreFiles}),l=c(e),f=y(l,o);for(let F of o)await p({componentToCopy:F,copyFrom:i,copyTo:e,ejectedFiles:f,options:t});m.infoTime(s,`Theme ${n(r)} has been ejected into ${n(e)}`)}export{T as default};
