var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(i){class r extends t.Core.BaseComponent{constructor(){super(...arguments);this.isFilterApplied=!1;this.Followers=[];this.recordId=0}cssFiles(){return[]}jsFiles(){return["platform/automation/enums/eventtype.js","platform/forms/managers/formmanager.js","platform/automation/components/actions/externalfollowers.js","platform/apps/managers/stagemanager.js","platform/automation/managers/commentmanager.js","platform/automation/infos/comment.js","platform/automation/requests/comment.js","platform/automation/enums/commenttype.js"]}html(){return null}load(){}init(t){const i=this;i.render(t);i.loadJsFiles();let r="";if(n.Themes.Providers.Detail_Settings.Instance().InputParameters.length>0)for(let t of n.Themes.Providers.Detail_Settings.Instance().InputParameters)t.Key==="hf_"+n.Themes.Providers.DetailHelper.installedAppId+"_versionguid"&&(r=t.Value.toString());i.loadDataComments(r,t);$(`#toggleCommentInputBtn_${t}`).click(function(){$(this).addClass("d-none");$(`#timelineHeaderRight_${t}`).removeClass("d-flex").addClass("d-none");$(`#timelineCommentInputWrap_${t}`).removeClass("d-none").addClass("d-flex")});$(`#closeCommentSearchBtn_${t}`).click(function(){$(`#toggleCommentInputBtn_${t}`).removeClass("d-none");$(`#timelineHeaderRight_${t}`).removeClass("d-none").addClass("d-flex");$(`#timelineCommentInputWrap_${t}`).removeClass("d-flex").addClass("d-none")});$(`#timelineCommentForm_${t}`).submit(function(n){n.preventDefault();i.saveComment(r,t)});$(`#timelineCommentInput_${t}`).on("input",function(){const n=$(this).val().toString().trim();n?$(`#saveCommentBtn_${t}`).removeClass("d-none"):$(`#saveCommentBtn_${t}`).addClass("d-none")})}loadJsFiles(){var t=this.jsFiles();n.Platform.Helpers.FileCacheHelper.Instance().loadJsFiles(t,function(){n.Platform.TimeLine.Components.TimeLine.Instance().getFollowers()})}getFollowers(){var t=n.Themes.Providers.Detail_Settings.Instance().InputParameters.find(t=>t.Key=="hf_"+n.Themes.Providers.DetailHelper.installedAppId+"_recordid");t!=undefined&&(this.recordId=Number(t.Value),n.Platform.Automation.Managers.RuleManager.Instance().GetFollwersByPkid(this.recordId).then(function(n){n.result!=null&&(r.Instance().Followers=n.result)}))}render(n){$("#"+n).empty();let t=`
No data available<\/div>',$(`#timeLineWrap_${i}`).append(o));else if(t.result!=null){const k=$(`#timeLineList_${i}`);for(k.html(""),$(`#timelineBody_${i}`).removeClass("d-none"),u=0;ureasons<\/span><\/a>'):(s="",f="Result Action"),t.result[u].Keys!="{}"&&t.result[u].Keys!=null){let n=JSON.parse(t.result[u].Keys);c=Object.getOwnPropertyNames(n);for(let t=0;t