{"version":3,"file":"uofx-core-mcore-config.mjs","sources":["../../mcore-config/src/mcore-config.interface.ts","../../mcore-config/uofx-core-mcore-config.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\n/** UOF客戶類型 */\r\nexport type CustomType = 'cloud' | 'local';\r\n\r\n// 與 MCoreConfig 類別對應的介面 (可依實際需求再擴充)\r\nexport interface IMCoreConfig {\r\n  /** Uof Site URL，不含 PathCode */\r\n  ServerUrl: string;\r\n  /** 殼的URL ex. http://localhost or capacitor://localhost */\r\n  AppRootUrl: string;\r\n  /** 由consul提供的軟體包資訊 */\r\n  PackageInfo: any;\r\n  /** API 版本 */\r\n  ApiVersion: string;\r\n  /** 設定公司 PathCode */\r\n  CurrentPathCode: string;\r\n  /** 軟體包自動更新 flag */\r\n  PackageUpdateFlag: boolean;\r\n  /** 殼自動更新 flag */\r\n  AppUpdateFlag: boolean;\r\n  /** 判斷 config 是不是 Mock 出來的 */\r\n  IsMock: boolean;\r\n  /** 設定 App 當前語系 */\r\n  setCurrentCulture(culture: string): void;\r\n  /** 取得 App 當前語系 */\r\n  getCurrentCulture(): Promise<string> | string;\r\n  /** 客戶類型(雲端或地端) */\r\n  CustomType: CustomType;\r\n  /** 返回殼首頁是否預設打開開發者模式(給前端方便開發測試用) */\r\n  AllwayShowDevContent: boolean;\r\n  /** 是否有勾選指定軟體包下載站台 */\r\n  UsedCustDownloadSite: boolean;\r\n}\r\n\r\n// 提供 DI 使用的 InjectionToken\r\nexport const MCORE_CONFIG = new InjectionToken<IMCoreConfig>('MCORE_CONFIG');\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAmCA;MACa,YAAY,GAAG,IAAI,cAAc,CAAe,cAAc;;ACpC3E;;AAEG;;;;"}