"use strict";var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ArtifactDepBuilderImpl=void 0;const s=require("../../util"),t=e(require("path")),n=require("../../../../common/Constants");exports.ArtifactDepBuilderImpl=class{build(e){const p=(0,s.getPkgStoreDirName)(e.name,e.pinnedSpec),i=p,a=t.default.join(n.Constants.MyModules,e.name);let r,o,c;return e.packageType===n.Constants.HSPPackageType&&e.hspType===n.HspType.BUNDLE_APP&&(r=t.default.join(n.Constants.MyModules,n.Constants.HSPDir,p),c=e.hspType,o=`${e.name}.hsp`.replace(/\//g,"+").replace(/:/g,"+")),{name:e.name,version:e.version,actualName:e.actualName,pinnedSpec:e.pinnedSpec,saveSpec:e.saveSpec,fetchSpec:e.fetchSpec,hspName:o,hspType:c,ohpaType:e.ohpaType,registryType:e.registryType,packageType:e.packageType,isShared:e.isShared,isLink:e.isLink,saveRootDir:i,pkgStoreDir:a,hspStoreDir:r,integrity:e.integrity,shasum:e.shasum,resolved:e.resolved,resolvedHsp:e.resolvedHsp,integrityHsp:e.integrityHsp,isRoot:e.isRoot,needForceInstall:e.needForceInstall,devDependencies:e.devDependencies,dependencies:e.dependencies,dynamicDependencies:e.dynamicDependencies}}};