/*
 * Copyright (c) 2018, 2026, Oracle and/or its affiliates.
 * Licensed under The Universal Permissive License (UPL), Version 1.0
 * as shown at https://oss.oracle.com/licenses/upl/
 */
function OJetLib(ojetConfig,tsConfig,appPath){this._ojetConfig=ojetConfig;this._tsConfig=tsConfig;this._appPath=appPath;this._isVDom=false;let arch;if(arch=this.getConfigProperty("architecture")){this._isVDom=arch==="vdom"}};OJetLib.prototype.getConfig=function(){return this._ojetConfig};OJetLib.prototype.getTsConfig=function(){return this._tsConfig};OJetLib.prototype.getConfigProperty=function(prop){return _getProp(this._ojetConfig,prop)};OJetLib.prototype.getTsConfigProperty=function(prop){return _getProp(this._tsConfig,prop)};OJetLib.prototype.getAppPath=function(){return this._appPath};OJetLib.prototype.isVDom=function(){return this._isVDom};function _getProp(obj,prop){var ret;if(obj){let props=prop.split(".");let p;for(let i=0;i<props.length;i++){p=props[i];if(obj.hasOwnProperty(p)){ret=obj[p];if(i+1<props.length){if(Array.isArray(ret)||typeof ret!=="object"){ret=null;break}obj=ret}continue}ret=null;break}}return ret};module.exports=OJetLib;