import{b as I}from"./chunk-P2NRYBYH.js";import{a as c}from"./chunk-KHAMQZND.js";import{c as k}from"./chunk-KANMOB5U.js";import{c as x}from"./chunk-OBT56KUD.js";import{m as j}from"./chunk-NMCXU7N6.js";import{Ba as v,F as h,Jc as H,K as u,Rb as w,Uc as b,Vc as S,dc as y,ea as g,g as l,ha as n,o as m,p as d,pa as p,tb as s,u as f,ua as a}from"./chunk-IYD54RT7.js";var C=(()=>{let t=class t{constructor(e){this.http=e}getHelpPage(e){return this.http.get(c+"/orcs/help/"+e)}getHelpPages(e){return this.http.get(c+"/orcs/help",{params:{app:e}})}};t.\u0275fac=function(i){return new(i||t)(a(x))},t.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var E=(()=>{let t=class t{constructor(e){this.helpHttpService=e}getHelpPage(e){return this.helpHttpService.getHelpPage(e)}getHelpPages(e){return this.helpHttpService.getHelpPages(e).pipe(g({bufferSize:1,refCount:!0}))}getHelpNavElements(e){return this.getHelpPages(e).pipe(n(i=>m(i).pipe(f(r=>this.helpPageToNavElement(r)))),u((i,r)=>[...i,r],[]))}helpPageToNavElement(e){return{label:e.name,cypressLabel:"cy-help-nav-"+e.id,pageTitle:"",isDropdown:e.header,isDropdownOpen:!1,requiredRoles:[],routerLink:"page/"+e.id,icon:"",description:"",children:e.children.map(r=>this.helpPageToNavElement(r))}}};t.\u0275fac=function(i){return new(i||t)(a(C))},t.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var D=(()=>{let t=class t{constructor(e,i){this.route=e,this.helpService=i,this.id=new l(""),this.markdown=this.id.pipe(h(r=>r!==""&&r!=="-1"),n(r=>this.helpService.getHelpPage(r).pipe(n(T=>d(T.markdownContent))))),this.route.paramMap.subscribe(r=>{this.id.next(r.get("id")||"")})}};t.\u0275fac=function(i){return new(i||t)(s(k),s(E))},t.\u0275cmp=v({type:t,selectors:[["osee-messaging-help-content"]],standalone:!0,features:[H],decls:2,vars:4,consts:[[1,"[&_code]:tw-text-primary-700","[&_ol]:tw-list-decimal","[&_ol]:tw-pl-8","[&_ul]:tw-list-disc","[&_ul]:tw-pl-8",3,"data","disableSanitizer"]],template:function(i,r){i&1&&(y(0,"markdown",0),b(1,"async")),i&2&&w("data",S(1,2,r.markdown))("disableSanitizer",!0)},dependencies:[j,I],encapsulation:2});let o=t;return o})(),Q=D;export{E as a,D as b,Q as c};
