(()=>{function e(a,i,c,l){return{list:function(){var e,t=i.appOption("target"),n=[{icon:"c8y-c8y-data",label:l("Concepts`KEEP_ORIGINAL`"),url:o("/docs/concepts/introduction")},{icon:"c8y-user",label:l("Getting started`KEEP_ORIGINAL`"),url:o("/docs/section/getting_started")},{icon:"c8y-administration",label:l("Platform administration`KEEP_ORIGINAL`"),url:o("/docs/section/platform_administration")},{icon:"c8y-device-management",label:l("Device Management"),url:o("/docs/section/device_management")},{icon:"c8y-cockpit",label:l("Application enablement`KEEP_ORIGINAL`"),url:o("/docs/section/app_enablement")},{icon:"c8y-book",label:l("Cumulocity IoT Edge`KEEP_ORIGINAL`"),url:o("/docs/edge/edge-introduction")},{icon:"c8y-data-explorer",label:l("Streaming analytics`KEEP_ORIGINAL`"),url:o("/docs/streaming-analytics/overview-analytics")},{icon:"rest-api",label:l("OpenAPI specification"),url:o("/api")},{icon:"gavel",label:l("Legal notices"),url:"https://documentation.softwareag.com/legal"}];switch(t){case"dt":e=a.resolve([{icon:"comments",label:l("Help & Service"),url:l("https://support.ram.m2m.telekom.com/apps/HelpAndService/index.html")}]);break;case"quarktech":e=a.resolve(n);break;default:e=c.getSupportUrl().then(function(e){return!1!==e&&n.push({icon:"comments",label:l("Forum support"),url:e}),n})}return e.then(function(e){return _.filter(e,"url")})},getBaseUrl:n,getUserGuideLink:o};function n(){return i.appOption("docsBaseUrl")}function o(e){var t;return _.isNull(n())?null:(t=i.appOption("guideHrefTemplate"),e=e,_.isNull(t)||_.isUndefined(t)||0===t.length?void 0:t.replace(/\${docsBaseUrl}/,n()).replace(/\${partialUrl}/,(e=>(_.isEmpty(e)||_.startsWith(e,"/")?"":"/")+e)(e)))}}e.$inject=["$q","c8yBase","c8ySettings","gettext"],angular.module("c8y.ui").factory("c8yDocs",e)})();