const _get=require("lodash/get"),{writeFile:writeFile,isMobileProject:isMobileProject}=require("./wm-utils"),{getHandlebarTemplate:getHandlebarTemplate}=require("./handlebar-helpers"),generateCodeGenModule=async(e,a,o,t,r)=>{const l=getHandlebarTemplate("app-codegen-module")({wmProjectProperties:e,pagesConfig:a,prefabConfigMap:o,xsrfTokenHeaderName:_get(t,"csrfConfig.headerName","X-WM-XSRF-TOKEN")});await writeFile(`${r}/src/app/app-codegen.module.ts`,l)},generateAppModule=async(e,a,o)=>{const t=getHandlebarTemplate("app-module-ts")({loadAllComponents:o,isMobileApp:isMobileProject(e)});await writeFile(`${a}/src/app/app.module.ts`,t)};module.exports={generateCodeGenModule:generateCodeGenModule,generateAppModule:generateAppModule};