"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebideCompilewxmlService=void 0;const runWcc_1=require("./pageFrameWasm/wcc/runWcc");async function compileUseWCC(e){const{files:n,configSplit:c,cwd:i,configContent:o,isCut:t,genfuncName:r,hasWxs:l=!0,isPlugin:s,lazyloadConfig:a,replaceContent:m={}}=e;let u;try{u=await(0,runWcc_1.runWcc)({files:n,debugWXS:l,debug:!0,genfuncName:r,isPlugin:s,isCut:t,configContent:o,configSplit:c,replaceContent:m,cwd:i,lazyloadConfig:a})}catch(e){throw e}if("true"!==(null==u?void 0:u.success))throw new Error(u.errmsg);if(u=u.content,!a)return{code:u,name:r};const{generateFunctionContent:p,generateFunctionName:g}=u;return{pages:p,names:g}}class WebideCompilewxmlService{compileWxml(e){return compileUseWCC(e)}async compileWxmlToGlassEasel(e){throw new Error("compileWxmlToGlassEasel is not implemented yet")}}exports.WebideCompilewxmlService=WebideCompilewxmlService;