Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

comments.min.js 21KB

123456789101112
  1. var Unibase;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends n.Platform.Core.BaseComponent{constructor(){super();this.commentcount=0}cssFiles(){return[""]}jsFiles(){return[""]}html(n,t){let i=`<div class="card card-default shadow-none border-0 mb-0" id="Form_Comments">
  2. <div class="card-header card-header-action"><span id="WidgetTitle" class="biz-highlight-bg-color">Comments (<span class="comments_count">0</span>)</h4></div>
  3. <div class="card-body"><div class="row"><div class="col-sm-12"><div class="divComments" id="divComments"></div></div></div></div>
  4. </div>
  5. <div class="divallcomments comment-list block" id="admincomments">
  6. <div class="allcomment-block"></div>
  7. <div class="row"><div class="form-group col-sm-12 ml-lg-10"><a href="/#/welcome" id="btnrefreshComments" class="btn btn-default hidden btn-sm"><i class="fa fa-plus icon-muted"></i> more</a></div></div>
  8. </div>`;return $("."+t).html(i),""}init(t){var i=this,r,u;i.html("",t);r="";u=n.Themes.Providers.DetailHelper.installedAppId;i.InstalledAppId=u;for(let n of n.Themes.Providers.Detail_Settings.Instance().InputParameters)n.Key==="hf_"+u+"_recordid"&&(r=n.Value);i.load(r,t,null)}load(){var t=this;t.currentuser=n.Platform.Membership.Infos.Identity.currentUser;t.showComments()}showComments(){var n=this,t;$(".allComments_").remove();t='<div class="divComments panel-default mb-2" id="divComments_"><div class="allComments_ allcomment-block bg-light"><\/div> <div id="divComment_items" class="comment-item_ mr-35"><div class="input-group form-group"><input type="text" id="commentTextBox_0" class="form-control commentTextBox txtnewComment_ " placeholder="Type Comments here...." onchange="Unibase.Platform.Automation.Components.Comments.Instance().enableSendbtn(event,0)"><a href="/#/welcome " id="commentPostButton_0" class="list-group-anchor btn btn-sm py-1 border-bottom rounded-0 input-group-addon" onclick="Unibase.Platform.Automation.Components.Comments.Instance().saveComment();"><span class="btn-icon-wrap"><button class="btn btn-white fa fa-paper-plane-o p-0 text-disabled "><\/button><\/span><\/a><\/span><\/a><\/div><\/div><\/div>';$("#divComments").html(t);n.loadComments();n.addComments()}loadComments(){var t=this,i=n.Themes.Providers.DetailHelper.installedAppId,r=n.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+i+"_versionguid").Value;t.fileCacheHelper.loadJsFiles(["platform/automation/managers/commentmanager.js","platform/automation/infos/comment.js","platform/automation/requests/comment.js","platform/automation/enums/commenttype.js"],function(){n.Platform.Automation.Managers.CommentManager.Instance().getMyCommentsByGuid(r).then(function(i){var s=0,y=0,f,w,c,r,l,u,p;$(".commentsCount_").text(i.result.length);$(".comments_count").text(i.result.length);f="";$(".comment-addItem").remove();$(".comment-item_").remove();w=!0;let h="";if(t.currentUser.photoUrl!=""&&t.currentUser.photoUrl!=null){h=t.currentUser.photoUrl;let n=h.split("/");n[n.length-1]=="unnamed.png"&&(h="tenants/themes/compact/imgs/avatar.jpg")}else h="tenants/themes/compact/imgs/avatar.jpg";for(f+=`<form><div id="divComment_items" class="mb-2 d-flex comment-item_">
  9. <div class="comment-right-wrapper m-0 d-flex align-items-center w-100 border-bottom border-light-50"><input type="text" id="commentTextBox_0" class="w-100 border-0 outline-0 commentTextBox txtnewComment_" placeholder="Type Comments here...." oninput="Unibase.Platform.Automation.Components.Comments.Instance().enableSendbtn(event,0)">
  10. <div class="comment-btn-wrapper" id="add-comment-btn">
  11. <a href="/#/welcome" id="commentPostButton_0" class="list-group-anchor btn btn-icon btn-sm rounded" onclick="Unibase.Platform.Automation.Components.Comments.Instance().saveComment();"><span class="btn-icon-wrap"><button class="btn btn-white fa fa-paper-plane-o mt-5 p-0 text-disabled commentSendBtn"></button></span></a>
  12. </div></div></div></form>`,c=0;c<i.result.length;c++){if(r=i.result[c],l="",r.CreatedBy==t.currentuser.userId&&(l='<div class="d-flex align-items-center"> <span class="mr-10"> <a href="/#/welcome" onclick="Unibase.Platform.Automation.Components.Comments.Instance().deleteComment('+r.CommentId+', 0, 0, 0);"> <span class="btn-icon-wrap"> <i class="fa fa-trash-o text-danger font-16"> <\/i><\/span> <\/a><\/span><\/div>'),u=" ",r.FromUserPhotoUrl==null||r.FromUserPhotoUrl=="")if(r.ImageUrl==null){let n="",t=r.FromUserName,i=t.match(/\b(\w)/g);n=i.length==1?$.trim(t).substr(0,2):i.join("").slice(0,2);u=`<h5 class="biz-primary-text-color font-12">${n}</h5>`}else u=`<img src="${r.ImageUrl}" data-dynamic="1" onerror="ReloadImage(event)" class="avatar-img img-fluid rounded-circle font-11" alt="img">`;else{u=r.FromUserPhotoUrl;let n=u.split("/");if(n[n.length-1]=="unnamed.png"||u==null||u==""){let n="",t=r.FromUserName,i=t.match(/\b(\w)/g);n=i.length==1?$.trim(t).substr(0,2):i.join("").slice(0,2);u=`<h5 class="biz-primary-text-color font-12">${n}</h5>`}else u=`<img src="${r.FromUserPhotoUrl}" data-dynamic="1" onerror="ReloadImage(event)" class="avatar-img img-fluid rounded-circle font-11" alt="img">`}p="";p=r.ImageUrl==null||r.ImageUrl==""?"":"<img src='"+r.ImageUrl+"' class='w-100 h-100'>";var e="",o="",b="",a=`<span class="pr-1 toGetReplyCountByParentId${r.CommentId}">Replies</span>`;a+=`<span id="Reply_${r.CommentId}"> (${r.ParentCommentCount}) </span>`;r.ParentCommentCount==0&&(a=`<span class="pr-1 toGetReplyCountByParentId${r.CommentId}">Reply</span>`+`<span id="Reply_${r.CommentId}"></span>`);r.CommentType==n.Platform.Automation.Enums.CommentType.Comment||(r.CommentType==n.Platform.Automation.Enums.CommentType.Call?(e="fa fa-phone text-info",o="Call"):r.CommentType==n.Platform.Automation.Enums.CommentType.Mail?(e="fa fa-envelope-o text-info",o="Mail"):r.CommentType==n.Platform.Automation.Enums.CommentType.Meeting?(e="fa fa-users text-info ",o="Meeting"):r.CommentType==n.Platform.Automation.Enums.CommentType.Follow&&(e="fa fa-flash text-info",o="Event",b="hidden"));$("#hfCommentids").val()!=r.CommentId&&($("#hfCommentids").val()!="0"&&(f+="<\/section><\/article><\/div>"),$("#hfCommentids").val(r.CommentId),f+=r.ParentCommentCount>0?'<div class="block allComments_ allcomment-block comment-addItem pt-1 d-none"><article id="comment-'+r.CommentId+'" class="comment-item clear"><input type="hidden" id="hfAssignedFollowers_'+r.CommentId+'" value="'+r.AssignedFollowers+'" /><section class="comment-body"><div class="comment-body-wrapper d-flex justify-content-between"><div class="comment-user-img"><div class="avatar biz-detail-avatar biz-highlight-color" style="width: 25px !important;height: 25px !important;">'+u+'<\/div><\/span><\/div><div class="comment-details-wrapper ml-1" style="flex-grow:2"><div class="comment-user-details d-flex align-items-center justify-content-between flex-wrap w-100"><div class="comment-username d-flex align-items-center"><h6 class="font-14 biz-highlight-bg-color mr-5 commentusername_'+s+'"> '+r.FromUserName+'<\/h6><\/div><input type="hidden" id="hf_ParentCmtVersionGuid_'+r.CommentId+'" value="'+r.VersionGuid+'"/>':'<div class="block allComments_ allcomment-block comment-addItem pt-1 d-none"><article id="comment-'+r.CommentId+'" class="comment-item clear"><input type="hidden" id="hfAssignedFollowers_'+r.CommentId+'" value="'+r.AssignedFollowers+'" /><section class="comment-body"><div class="comment-body-wrapper d-flex justify-content-between"><div class="comment-user-img"><div class="avatar biz-detail-avatar biz-highlight-color" style="width: 25px !important;height: 25px !important;">'+u+'<\/div><\/span><\/div><div class="comment-details-wrapper ml-1" style="flex-grow:2"><div class="comment-user-details d-flex align-items-center justify-content-between flex-wrap w-100"><div class="comment-username d-flex align-items-center"><h6 class="font-14 biz-highlight-bg-color mr-5 commentusername_'+s+'"> '+r.FromUserName+'<\/h6><\/div><input type="hidden" id="hf_ParentCmtVersionGuid_'+r.CommentId+'" value="'+r.VersionGuid+'"/>',r.IsSystemGenerated!=!0&&(f+=window.innerWidth<=1198?l+'<\/div><div class="comment-text mt-1 w-sm-95 mb-5 text-dark font-11 word-break"><span>'+r.CommentSubject+" <\/span><\/div>":l+'<\/div><div class="comment-text mt-1 w-sm-95 mb-5 text-dark font-14 word-break"><span>'+r.CommentSubject+" <\/span><\/div>"));f+='<div class="stats_container d-flex align-items-center mb-2 justify-content-between"><div class="comment-reply-wrapper"><span><a href="/#/welcome" class="list-group-anchor" onclick="Unibase.Platform.Automation.Components.Comments.Instance().details('+r.CommentId+');"><i class="'+e+'"><\/i> '+o+"<\/a><\/span>";r.IsSystemGenerated!=!0&&(f+=window.innerWidth<=1198?'<span class="panel-default"><a href="/#/welcome" data-parent="divcomment 4" class="list-group-anchor text-dark d-flex mr-3 font-11 list-item-main-title" onclick="Unibase.Platform.Automation.Components.Comments.Instance().childComments('+r.CommentId+');"> '+a+'<\/a><\/span><\/div> <span class="comment-time font-11 text-dark">'+n.Platform.Helpers.DateTimeHelper.Instance().commentsdateformat(r.CreatedDate)+'<\/span><\/div> <div class="bg-white hidden" id = "comments-'+r.CommentId+'" > <div id="childcomment-list_'+r.CommentId+'" class="childcomment-list_'+r.CommentId+'"><\/div><\/div><\/div><\/div><\/section><\/article><\/div>':'<span class="panel-default"><a href="/#/welcome" data-parent="divcomment 4" class="list-group-anchor text-dark d-flex mr-3 font-12 list-item-main-title" onclick="Unibase.Platform.Automation.Components.Comments.Instance().childComments('+r.CommentId+');"> '+a+'<\/a><\/span><\/div> <span class="comment-time font-12 text-dark">'+n.Platform.Helpers.DateTimeHelper.Instance().commentsdateformat(r.CreatedDate)+'<\/span><\/div> <div class="bg-white hidden" id = "comments-'+r.CommentId+'" > <div id="childcomment-list_'+r.CommentId+'" class="childcomment-list_'+r.CommentId+'"><\/div><\/div><\/div><\/div><\/section><\/article><\/div>');s=r.CommentId;y=r.ParentCommentCount}$(".allComments_").after(f);let v=$("#divComments_ .comment-addItem").length;v>=5?$("#loadMore-Comments").removeClass("d-none"):$("#loadMore-Comments").addClass("d-none");t.commentcount=5;$("#divComments_ .comment-addItem:lt("+t.commentcount+")").removeClass("d-none");$("#loadMore-Comments").click(function(){t.commentcount=t.commentcount+5<=v?t.commentcount+5:v;$("#divComments_ .comment-addItem:lt("+t.commentcount+")").removeClass("d-none");t.commentcount==v&&($("#loadMore-Comments").addClass("d-none"),t.commentcount=0)});t.toGetReplyCountByParentId(s,y)},function(){})})}addComments(){$("#divComments_").append("");$("#divComments_").append(`<div class="d-flex align-items-center justify-content-center click-more-btn"><div id="loadMore-Comments" class="btn btn-sm btn-success d-none">More</div></div>`)}toGetReplyCountByParentId(t,i){var r=t,u=i;r!=0&&n.Platform.Automation.Managers.CommentManager.Instance().getCommentsByParentId(r).then(function(n){for(var t=0;t<n.result.length;t++)u=u+n.result[t].ParentCommentCount,u!=0?($(".toGetReplyCountByParentId"+r).text("Replies"),$("#Reply_"+r).text(`(${u})`)):($(".toGetReplyCountByParentId"+r).text("Reply"),$("#Reply_"+r).text(``))})}saveComment(){var t=this;let i=$("#divComments_ .comment-addItem").length;if(i>=5&&$("#loadMore-Comments").removeClass("d-none"),$(".txtnewComment_").val().toString().trim()==null||$(".txtnewComment_").val().toString().trim()=="")return MessageHelper.Instance().showError("Please Enter Something...","div_message"),!1;var r=n.Themes.Providers.DetailHelper.installedAppId,u=n.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+r+"_versionguid").Value,f={CommentId:0,RefGuid:u,CommentSubject:$(".txtnewComment_").val().toString().trim(),CommentType:n.Platform.Automation.Enums.CommentType.Comment,Followers:null,InstallPageId:n.Themes.Providers.DetailHelper.installedAppId,ParentId:0};n.Platform.Automation.Managers.CommentManager.Instance().saveComment(f).then(function(n){var i=n.result.CommentId;$(".txtnewComment_").val(" ");$("#Notifications_txtActivities").val(" ");$("#childcomment-list_"+i).html(" ");t.loadComments();t.childComments(i,undefined,!0)})}childComments(t,i,r){n.Platform.Automation.Managers.CommentManager.Instance().getCommentsByParentId(t).then(function(u){var e,h,f,o,c,l;if(i==undefined?e='<div class="wrapper-sm childcomment-item_'+t+'"><form><div class="d-flex border-bottom border-light-50 bg-white w-85 "><input type="text" id="commentTextBox_'+t+'" class="w-100 border-0 outline-0 commentTextBox txtnewComment_'+t+'" placeholder="Type Comments here...." oninput="Unibase.Platform.Automation.Components.Comments.Instance().enableSendbtn(event,'+t+')"><div class="comment-btn-wrapper mb-1"><a href="/#/welcome" id="commentPostButton_'+t+'"class="list-group-anchor btn btn-icon btn-xs rounded" onclick="Unibase.Platform.Automation.Components.Comments.Instance().addChildCommentsforChildComments('+t+","+t+',true);"><span class="btn-icon-wrap"><button class="btn btn-white fa fa-paper-plane-o mt-5 p-0 text-disabled commentSendBtn"><\/button><\/span><\/a><\/span><\/div><\/div><\/form><\/div>':(!r||r&&$(".childcomment-item_"+t+"").hasClass("ml-35")?e='<div class="ml-35 childcomment-item wrapper-sm childcomment-item_'+t+'">':r&&!$(".childcomment-item_"+t+"").hasClass("ml-35")&&(e='<div class="childcomment-item wrapper-sm childcomment-item_'+t+'">'),e+='<form><div class="d-flex border-bottom border-light-50 bg-white w-85 ml-35"><input type="text" id="commentTextBox_'+t+'" class="w-100 border-0 outline-0 commentTextBox txtnewComment_'+t+'" placeholder="Type Comments here...." oninput="Unibase.Platform.Automation.Components.Comments.Instance().enableSendbtn(event,'+t+')"><div class="comment-btn-wrapper mb-1"><a href="/#/welcome" id="commentPostButton_'+t+'"class="btn btn-icon btn-xs rounded" onclick=" Unibase.Platform.Automation.Components.Comments.Instance().addChildCommentsforChildComments('+t+","+i+',true);"><span class="btn-icon-wrap"><button class="btn btn-white fa fa-paper-plane-o mt-5 p-0 text-disabled commentSendBtn"><\/button><\/span><\/a><\/span><\/div><\/div><\/form><\/div>'),u.result!=null)for(h=u.result.length-1;h>=0;h--){f=u.result[h];o=`<span class="pr-1 toGetReplyCountByParentId${f.CommentId}">Replies</span>`;o+=`<span id="Reply_${f.CommentId}"> (${f.ParentCommentCount}) </span>`;f.ParentCommentCount==0&&(o=`<span class="pr-1 toGetReplyCountByParentId${f.CommentId}">Reply</span>`+`<span id="Reply_${f.CommentId}"></span>`);var v="",s="";if(f.FromUserPhotoUrl==null||f.FromUserPhotoUrl==""){let n="",t=f.FromUserName,i=t.match(/\b(\w)/g);n=i.length==1?$.trim(t).substr(0,2):i.join("").slice(0,2);s=`<h5 class="biz-primary-text-color font-12">${n}</h5>`}else{let t=f.FromUserPhotoUrl,n=t.split("/");if(n[n.length-1]=="unnamed.png"){let n="",t=f.FromUserName,i=t.match(/\b(\w)/g);n=i.length==1?$.trim(t).substr(0,2):i.join("").slice(0,2);s=`<h5 class="biz-primary-text-color font-12">${n}</h5>`}else s=`<img src="${f.FromUserPhotoUrl}" data-dynamic="1" onerror="ReloadImage(event)" class="avatar-img img-fluid rounded-circle font-11" alt="img">`}c="";f.CreatedBy==n.Platform.Automation.Components.Comments.Instance().currentuser.userId&&(c='<div class="d-flex align-items-center"> <span class="mr-10"><a href="/#/welcome" onclick="Unibase.Platform.Automation.Components.Comments.Instance().deleteComment('+f.CommentId+","+t+","+i+',1);"> <span class="btn-icon-wrap"> <i class="fa fa-trash-o text-danger font-16"> <\/i><\/span> <\/a><\/span><\/div>');v="text-warning";$("#hfAssignedFollowers").val(f.AssignedFollowers);l=window.innerWidth<=1198?'<div class="wrapper-sm mt-10 childcomment-item_'+t+'"><section class="comment-body"><div class="comment-body-wrapper d-flex justify-content-between"><div class="comment-user-img"><div class="avatar biz-detail-avatar biz-highlight-color" style="width: 25px !important;height: 25px !important;">'+s+'<\/div><\/div><div class="comment-details-wrapper ml-1" style="flex-grow:2"><div class="comment-user-details"><div class="comment-username"><div class="d-flex align-items-center justify-content-between"><h6 class="font-12 biz-highlight-bg-color mr-5 commentusername_'+t+'">'+f.FromUserName+"<\/h6>"+c+'<\/div><div class="comment-text mt-1 w-sm-80 mb-5 text-dark font-11"><span>'+f.CommentSubject+'<\/span><\/div><div class="commentChild-statsContainer d-flex align-items-center text-dark justify-content-end flex-row-reverse"> <div class="comment-extra-details"><span class="comment-time font-11 1"> '+n.Platform.Helpers.DateTimeHelper.Instance().commentsdateformat(f.CreatedDate)+"<\/span><\/div>":'<div class="wrapper-sm mt-10 childcomment-item_'+t+'"><section class="comment-body"><div class="comment-body-wrapper d-flex justify-content-between"><div class="comment-user-img"><div class="avatar biz-detail-avatar biz-highlight-color" style="width: 25px !important;height: 25px !important;">'+s+'<\/div><\/div><div class="comment-details-wrapper ml-1" style="flex-grow:2"><div class="comment-user-details"><div class="comment-username"><div class="d-flex align-items-center justify-content-between"><h6 class="font-14 biz-highlight-bg-color mr-5 commentusername_'+t+'">'+f.FromUserName+"<\/h6>"+c+'<\/div><div class="comment-text mt-1 w-sm-80 mb-5 text-dark font-14"><span>'+f.CommentSubject+'<\/span><\/div><div class="commentChild-statsContainer d-flex align-items-center text-dark justify-content-end flex-row-reverse"> <div class="comment-extra-details"><span class="comment-time font-12 1"> '+n.Platform.Helpers.DateTimeHelper.Instance().commentsdateformat(f.CreatedDate)+"<\/span><\/div>";l+=i==undefined?'<div class="comment-reply-wrapper mr-3"><span class="panel-default"><a href="/#/welcome" data-parent="divcomment" class="list-group-anchor text-dark d-flex p-0 font-12 list-item-main-title repli_data" onclick=" Unibase.Platform.Automation.Components.Comments.Instance().childComments('+f.CommentId+","+t+');"> '+o+'<\/a><\/span><\/div><\/div> <\/div><\/section><div class="bg-white hidden" id = "comments-'+f.CommentId+'" > <div id="childcomment-list_'+f.CommentId+'" class="childcomment-list_'+f.CommentId+'"><\/div><\/div><\/<\/div>':'<div class="comment-reply-wrapper mr-3"><span class="panel-default"><a href="/#/welcome" data-parent="divcomment" class="p-0 list-group-anchor text-dark d-flex pl-0 font-12 list-item-main-title repli_data" onclick=" Unibase.Platform.Automation.Components.Comments.Instance().childComments('+f.CommentId+","+i+')"> '+o+'<\/a><\/span><\/div><\/div> <\/div><\/section><div class="bg-white hidden" id = "comments-'+f.CommentId+'" > <div id="childcomment-list_'+f.CommentId+'" class="childcomment-list_'+f.CommentId+'"><\/div><\/div><\/<\/div>';e=e+l}r!=!0&&($("#comments-"+t).hasClass("hidden")?$("#comments-"+t).removeClass("hidden").addClass("show"):$("#comments-"+t).removeClass("show").addClass("hidden"));$("#childcomment-list_"+t).html(e);let a;$(".toGetReplyCountByParentId"+t).parents(".stats_container").length>0?a=$(".toGetReplyCountByParentId"+t).parents(".stats_container").siblings(".comment-user-details").find(".comment-username h6").text().trim():$(".toGetReplyCountByParentId"+t).parents(".comment-username").length>0&&(a=$(".toGetReplyCountByParentId"+t).parents(".comment-username").find("h6").text().trim());$(".txtnewComment_"+t).val("@"+a+" ")})}addChildCommentsforChildComments(t,i,r){var f=this,u,e;if($(".txtnewComment_"+t).val()==null||$(".txtnewComment_"+t).val()=="")return MessageHelper.Instance().showError("Please Enter Something...","bizgaze_SpiltErrorMessages"),!1;u=null;$("#hfAssignedFollowers_"+t).val()!=null&&(u=$("#hfAssignedFollowers_"+t).val());e={CommentId:0,RefGuid:$("#hf_ParentCmtVersionGuid_"+i).val().toString(),CommentSubject:$(".txtnewComment_"+t).val().toString(),CommentType:n.Platform.Automation.Enums.CommentType.Comment,Followers:u,InstallPageId:$("#hfBizgaze_InstalledPageId").val(),ParentId:t};n.Platform.Automation.Managers.CommentManager.Instance().saveComment(e).then(function(){$(".txtnewComment_"+t).val(" ");f.childComments(t,i,r);f.toGetReplyCount(t,i)})}deleteComment(t,i,r,u){var f=this;bootbox.confirm("Are you sure want to delete?",function(e){e&&n.Platform.Automation.Managers.CommentManager.Instance().deleteComment(t).then(function(n){MessageHelper.Instance().showSuccess(n.message,"");u==0?f.loadComments():f.childComments(i,r,!0);f.toGetReplyCount(i)})})}toGetReplyCount(t){var i=t,r=0;i!=0&&n.Platform.Automation.Managers.CommentManager.Instance().getCommentByCommentId(i).then(function(n){r=r+n.result.ParentCommentCount;r!=0?($(".toGetReplyCountByParentId"+i).text("Replies"),$("#Reply_"+i).text(`(${r})`)):($(".toGetReplyCountByParentId"+i).text("Reply"),$("#Reply_"+i).text(``));i=n.result.ParentId})}enableSendbtn(n,t){let r=$("#commentTextBox_"+t),i=$("#commentPostButton_"+t).find(".commentSendBtn");r.val().length>0?i.removeClass("text-disabled").addClass("text-primary"):i.removeClass("text-primary").addClass("text-disabled")}static Instance(){return this.instance==undefined&&(this.instance=new i),this.instance}}t.Comments=i})(i=t.Components||(t.Components={}))})(i=t.Automation||(t.Automation={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));