PageSourceSearch

https://app.beaglesecurity.com/chunk-BNNNLQHW.js

js beaglesecurity.com collected 2026-09-24 08:47:22 UTC 11,058 bytes, 115 lines download raw bytes

1import{a as A,b as I,c as N,d as F}from"./chunk-P5NBAINL.js";import"./chunk-W7PPZJOL.js";import{a as V}from"./chunk-UOXYWH2N.js";import{a as M}from"./chunk-6JVWF4IY.js";import{b as B}from"./chunk-BTMCQCAC.js";import{a as W}from"./chunk-KSLKAXOU.js";import"./chunk-GZFHPB25.js";import"./chunk-OFDVQPEO.js";import{c as w,d as v,f as g,g as _,h as y}from"./chunk-W4BNGQYG.js";import"./chunk-RENC6YYK.js";import"./chunk-MRHP2H4K.js";import"./chunk-7HS5D4RH.js";import"./chunk-HUR2FVZB.js";import"./chunk-TTH7GFZH.js";import"./chunk-AR546XJC.js";import{a as k}from"./chunk-PKRSU6VJ.js";import"./chunk-MAW7FMI2.js";import{a as T}from"./chunk-KO2D6ELQ.js";import"./chunk-W2FPCXJS.js";import{f as R,h as L}from"./chunk-PRNDDZIA.js";import"./chunk-B7G3T42L.js";import"./chunk-A44CX4PV.js";import{Ab as p,Fc as d,Gb as u,Gc as P,Ka as l,La as s,Mb as O,Rb as b,Zb as h,dc as f,ic as o,jc as r,oc as m,qa as x,tc as c,uc as a,za as E}from"./chunk-HWT7D4EW.js";function z(n,C){if(n&1){let e=m();o(0,"a",11),c("click",function(){l(e);let t=a();return s(t.configureReport("BRANDED"))}),d(1,"Configure"),r()}}function j(n,C){if(n&1){let e=m();o(0,"a",11),c("click",function(){l(e);let t=a(2);return s(t.configureReport("WHITELABELLED"))}),d(1,"Configure"),r()}}function H(n,C){if(n&1){let e=m();o(0,"div",3)(1,"div",4)(2,"h6",5),d(3,"White labelled report"),r(),o(4,"div",6),d(5,"Deliver reports that are fully tailored to your brand, with no mention of Beagle Security"),r()(),o(6,"div",7),b(7,j,2,0,"a",8),o(8,"app-button",9),c("click",function(t){return l(e),s(t.stopPropagation())})("onClick",function(){l(e);let t=a();return s(t.downloadWhitelabelPreview())}),r()()()}if(n&2){let e=a();p(7),f(e.customReport.allowEdit?7:-1),p(),h("showSpinner",e.uiState=="DOWNLOAD_WL_REPORT")}}function U(n,C){if(n&1){let e=m();o(0,"app-branded",18),c("getData",function(){l(e);let t=a(2);return s(t.getWhiteLabelDetails())})("close",function(){l(e);let t=a(2);return s(t.hideOverlay())}),r()}if(n&2){let e=a(2);h("brandingDetails",e.customReport.brandingDetails)}}function q(n,C){if(n&1){let e=m();o(0,"app-white-label",19),c("getData",function(){l(e);let t=a(2);return s(t.getWhiteLabelDetails())})("close",function(){l(e);let t=a(2);return s(t.hideOverlay())}),r()}if(n&2){let e=a(2);h("whitelabelDetails",e.customReport.whitelabelingDetails)}}function G(n,C){if(n&1){let e=m();o(0,"div",10)(1,"div",12),c("click",function(){l(e);let t=a();return s(t.hideOverlay())}),r(),o(2,"div",13)(3,"div",14)(4,"span",1),d(5),r(),o(6,"i",15),c("click",function(){l(e);let t=a();return s(t.hideOverlay())}),r()(),b(7,U,1,1,"app-branded",16)(8,q,1,1,"app-white-label",17),r()()}if(n&2){let e=a();h("@showHideOverlay",e.showConfig.sidePanel?"show":"hide"),p(2),h("@toggleSidebar",e.showConfig.sidePanel?"show":"hide"),p(3),P(e.showConfig.reportType=="BRANDED"?"Branded report":"White-labelled report"),p(2),f(e.showConfig.reportType=="BRANDED"?7:8)}}var pe=(()=>{class n{router;route;whiteLabelService;toastr;_FileSaverService;showConfig={reportType:"",overlay:!1,sidePanel:!1};showItem={whitelabelAvailable:!1,brandedAvailable:!1};uiState="";customReport={allowEdit:!0,brandingDetails:{active:!1,companyInfo1:"",companyInfo2:"",companyLogo:"",companyName:"",configured:!1,createdOn:null,isBrandingEnabled:!0,updatedOn:null},reportingType:"",whitelabelingDetails:{active:!1,companyEmail:"",companyLogo:"",companyName:"",copyrightNote:"",createdOn:null,configured:!1,footerCopyright:"",isFeatureVisible:!1,phone:"",reportTitle:"",updatedOn:null,backgroundColor:"#002e63",fontColor:"#ffffff"}};crispService=E(M);firebaseService=E(W);constructor(e,i,t,S,D){this.router=e,this.route=i,this.whiteLabelService=t,this.toastr=S,this._FileSaverService=D}ngOnInit(){window.scrollTo(0,0),this.getWhiteLabelDetails(),this.route.queryParams.subscribe(e=>{let i=e.type;i=="BRANDED"&&(this.showConfig.reportType="BRANDED",this.showSidePanel()),i=="WHITELABEL"&&(this.showConfig.reportType="WHITELABEL",this.showSidePanel())})}getWhiteLabelDetails(){this.uiState="GET_CONFIG",this.whiteLabelService.getCustomReportDetails().pipe(x({error:e=>{e.status==403&&(setTimeout(()=>{this.toastr.warning("You dont have permission to view the content","Warning")},100),this.router.navigateByUrl("/dashboard/home")),this.uiState="API_ERROR"}})).subscribe(e=>{this.customReport=e,this.customReport.whitelabelingDetails.isFeatureVisible&&(this.showItem.whitelabelAvailable=!0,this.customReport.whitelabelingDetails.companyLogo!=null,this.customReport.brandingDetails!=null&&this.customReport.brandingDetails.companyLogo!=null),this.uiState="SUCCESS"})}downloadWhitelabelPreview(){if(!this.customReport.whitelabelingDetails.isFeatureVisible){this.toastr.warning("Please configure white labelling","Warning");return}this.uiState="DOWNLOAD_WL_REPORT",this.whiteLabelService.downloadWhitelabelReport().pipe(x({error:e=>{e&&e.error&&e.error.message?this.toastr.error(e.error.message,"Error"):this.toastr.error("Unable to download the sample report. Try again or check your configurations.","Error"),this.uiState="API_ERROR"}})).subscribe(e=>{this.firebaseService.getReports(),this.firebaseService.watchReportDownload(),this.uiState="SUCCESS"})}downloadBrandedReportPreview(){this.uiState="DOWNLOAD_BR_REPORT",this.whiteLabelService.downloadBrandReport().pipe(x({error:e=>{e&&e.error&&e.error.message?this.toastr.error(e.error.message,"Error"):this.toastr.error("Unable to download the sample report. Try again or check your configurations.","Error"),this.uiState="API_ERROR"}})).subscribe(e=>{this.firebaseService.getReports(),this.firebaseService.watchReportDownload(),this.uiState="SUCCESS"})}configureReport(e){let i={type:""};e=="BRANDED"?i.type="BRANDED":i.type="WHITELABEL",this.router.navigate([],{relativeTo:this.route,queryParams:i}
1)}showSidePanel(){this.showConfig.overlay=!0,this.crispService.hideChat(),setTimeout(()=>{this.showConfig.sidePanel=!0},10)}hideOverlay(){this.showConfig.sidePanel=!1,this.crispService.showChat(),setTimeout(()=>{this.showConfig.overlay=!1},300),this.router.navigate([],{queryParams:{type:null},queryParamsHandling:"merge"})}static \u0275fac=function(i){return new(i||n)(u(L),u(R),u(A),u(k),u(V))};static \u0275cmp=O({type:n,selectors:[["app-white-labelling"]],decls:15,vars:4,consts:[[1,"title-section"],[1,"title"],[1,"main-container"],[1,"d-flex","align-items-center","justify-content-between","gap-3","report-type-box"],[1,"w-100"],[1,"fw-500","title"],[1,"description"],[1,"d-flex","align-items-center","justify-content-between","gap-4","right-section"],["role","button",1,"configure-link"],["type","white-primary","label","Download preview",3,"click","onClick","showSpinner"],[1,"drawer-overlay"],["role","button",1,"configure-link",3,"click"],[1,"left-dummy-panel",3,"click"],[1,"sidebar","sm-sidebar"],[1,"d-flex","align-items-center","justify-content-between","sidebar-title"],[1,"bs-cancel",3,"click"],[3,"brandingDetails"],[3,"whitelabelDetails"],[3,"getData","close","brandingDetails"],[3,"getData","close","whitelabelDetails"]],template:function(i,t){i&1&&(o(0,"div",0)(1,"div",1),d(2,"Custom report"),r()(),o(3,"div",2)(4,"div",3)(5,"div",4)(6,"h6",5),d(7,"Branded report"),r(),o(8,"div",6),d(9,"Highlight collaboration by sharing reports customized with both Beagle Security\u2019s and your brand\u2019s identity."),r()(),o(10,"div",7),b(11,z,2,0,"a",8),o(12,"app-button",9),c("click",function(D){return D.stopPropagation()})("onClick",function(){return t.downloadBrandedReportPreview()}),r()()(),b(13,H,9,2,"div",3),r(),b(14,G,9,4,"div",10)),i&2&&(p(11),f(t.customReport.allowEdit?11:-1),p(),h("showSpinner",t.uiState=="DOWNLOAD_BR_REPORT"),p(),f(t.showItem.whitelabelAvailable?13:-1),p(),f(t.showConfig.overlay?14:-1))},dependencies:[T,N,B,I,F],styles:[`
2
3.title-section[_ngcontent-%COMP%] {
4  border-bottom: 1px solid var(--border-color);
5  padding: 32px 24px 24px 42px;
6  position: sticky;
7  top: 0;
8  z-index: 1;
9  background-color: #ffffff;
10}
11.title-section[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {
12  font-size: 1.125rem;
13  font-weight: 500;
14  color: var(--text-primary);
15}
16.main-container[_ngcontent-%COMP%] {
17  padding: 36px 24px 50px 42px;
18}
19.report-type-box[_ngcontent-%COMP%] {
20  padding: 16px 20px 16px 28px;
21  margin-bottom: 8px;
22  border: 1px solid var(--border-color);
23  border-radius: 8px;
24  background-color: var(--bs-card-bg);
25}
26.report-type-box[_ngcontent-%COMP%]:hover {
27  background-color: var(--bs-card-active-bg);
28  border-color: var(--card-hover-border-color);
29}
30.report-type-box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {
31  font-size: 0.875rem;
32  color: var(--text-primary);
33  margin-bottom: 4px;
34}
35.report-type-box[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%] {
36  font-size: 0.75rem;
37  color: var(--text-tertiary);
38}
39.report-type-box[_ngcontent-%COMP%]   .right-section[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {
40  transform: rotate(-90deg);
41  display: block;
42  transition: all 0.2s ease-in-out;
43}
44.report-type-box[_ngcontent-%COMP%]   .right-section[_ngcontent-%COMP%]   i.rotate[_ngcontent-%COMP%] {
45  transform: rotate(0deg);
46}
47.report-details-container[_ngcontent-%COMP%] {
48  padding: 24px 36px 45px 36px;
49  margin-bottom: 24px;
50  background-color: var(--bs-card-bg);
51  border-radius: 8px;
52  border: 1px solid var(--border-color);
53}
54.file-input-box[_ngcontent-%COMP%] {
55  padding: 11px 12px;
56  border: 1px solid #BDBDBD;
57  border-radius: 6px;
58  color: var(--text-primary);
59  cursor: pointer;
60  transition: all 0.2s ease-in-out;
61}
62.file-input-box[_ngcontent-%COMP%]:hover {
63  border-color: #757575;
64}
65.color-picker[_ngcontent-%COMP%] {
66  height: 26px;
67  width: 26px;
68  border: 1px solid var(--border-color);
69  border-radius: 4px;
70  left: 12px;
71  top: 10px;
72}
73.color-popup[_ngcontent-%COMP%] {
74  height: 0;
75  z-index: 1;
76}
77.tooltip-info[_ngcontent-%COMP%] {
78  color: var(--text-tertiary);
79  margin-left: 4px;
80  line-height: 1;
81}
82.user-warning[_ngcontent-%COMP%] {
83  display: flex;
84  align-items: center;
85  padding: 10px 10px 10px 16px;
86  margin-bottom: 24px;
87  border: 1px solid #FAEBCC;
88  border-radius: 6px;
89  background-color: #FCF8E3;
90  font-size: 13px;
91}
92.warning-icon[_ngcontent-%COMP%] {
93  font-size: 1.125rem;
94  color: #8A6D3B;
95  line-height: 1;
96  margin-right: 12px;
97}
98.error-wrap[_ngcontent-%COMP%] {
99  gap: 8px;
100  border: 1px solid #900B0940;
101  border-radius: 4px;
102  background-color: #FEE9E7;
103  padding: 6px 10px;
104  margin-bottom: 10px;
105}
106.error-wrap[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {
107  line-height: 1;
108  color: #EC221F;
109  font-size: 1.25rem;
110  height: 24px;
111}
112.error-wrap[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%] {
113  font-size: 0.75rem;
114  color: #000000;
115}`],data:{animation:[w("expandView",[_("collapse",g({height:"0px"}
115)),_("expand",g({height:"*"})),y("collapse <=> expand",[v("0.3s ease-in-out")])]),w("showHideOverlay",[_("show",g({opacity:"1"})),_("hide",g({opacity:"0"})),y("show <=> hide",[v("0.3s ease-in-out")])]),w("toggleSidebar",[_("show",g({right:"0"})),_("hide",g({right:"*"})),y("show <=> hide",[v("0.3s ease-in-out")])])]}})}return n})();export{pe as WhiteLabellingComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.