1"use strict";(self.webpackChunkzaakpay_self_onboarding=self.webpackChunkzaakpay_self_onboarding||[]).push([[491],{2491:(V,D,p)=>{p.d(D,{N:()=>j,r:()=>g});var t=p(7705),v=p(3334),E=p(83);let b=(()=>{class i{constructor(r){this.commonUtils=r,this.defaultConfig={url:"",params:{},data:"",headers:{useAuth:"true"}}}getChartData(r,h){let l={url:`${v.$.apiEndpoints.dashboard.chart}?period=${r}&payMode=${h}`,cache:!1,skipParsing:!0,silent:!1};return l=Object.assign({},this.defaultConfig,l),this.commonUtils.getRequest(l)}getSummaryData(r,h){let l={url:`${v.$.apiEndpoints.dashboard.summary}?period=${r}&payMode=${h}`,cache:!1,skipParsing:!0,silent:!1};return l=Object.assign({},this.defaultConfig,l),this.commonUtils.getRequest(l)}static{this.\u0275fac=function(h){return new(h||i)(t.KVO(E.E))}}static{this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var C=p(9955),S=p(529),s=p(177),x=p(2471),M=p(3319),R=p(7290),P=p(675),_=p(4533),T=p(3802),H=p(2432),c=p(9417);function k(i,u){if(1&i){const r=t.RV6();t.j41(0,"a",20),t.bIt("click",function(){const f=t.eBV(r).$implicit,B=t.XpG();return t.Njj(B.changePaymode(f))}),t.j41(1,"span"),t.EFF(2),t.k0s()()}if(2&i){const r=u.$implicit,h=t.XpG();t.Y8G("active",h.activeLink==r),t.R7$(2),t.JRh(r.viewValue)}}function I(i,u){if(1&i&&(t.j41(0,"div",21)(1,"p",22),t.EFF(2,"Total Transaction Amount"),t.k0s(),t.j41(3,"h4",23),t.EFF(4),t.k0s(),t.j41(5,"p",24)(6,"mat-icon",25),t.EFF(7,"phone_android"),t.k0s(),t.EFF(8),t.k0s(),t.j41(9,"p",26)(10,"mat-icon",25),t.EFF(11,"laptop_mac"),t.k0s(),t.EFF(12),t.k0s()()),2&i){const r=t.XpG();t.R7$(4),t.SpI("\u20b9 ",null==r.displayObj?null:r.displayObj.totalTxnAmount,""),t.R7$(4),t.SpI(" \u20b9 ",null==r.displayObj?null:r.displayObj.totalTxnAmtMobile," "),t.R7$(4),t.SpI(" \u20b9 ",null==r.displayObj?null:r.displayObj.totalTxnAmtWeb," ")}}function y(i,u){1&i&&(t.j41(0,"div",27),t.nrm(1,"div",28)(2,"div",29)(3,"div",30)(4,"div",30),t.k0s())}function O(i,u){if(1&i&&(t.j41(0,"div",21)(1,"p",22),t.EFF(2,"No. of Transactions"),t.k0s(),t.j41(3,"h4",23),t.EFF(4),t.k0s(),t.j41(5,"p",24)(6,"mat-icon",25),t.EFF(7,"phone_android"),t.k0s(),t.EFF(8),t.k0s(),t.j41(9,"p",26)(10,"mat-icon",25),t.EFF(11,"laptop_mac"),t.k0s(),t.EFF(12),t.k0s()()),2&i){const r=t.XpG();t.R7$(4),t.JRh(null==r.displayObj?null:r.displayObj.totalTxnCount),t.R7$(4),t.SpI(" ",null==r.displayObj?null:r.displayObj.totalTxnCountMobile," "),t.R7$(4),t.SpI(" ",null==r.displayObj?null:r.displayObj.totalTxnCountWeb," ")}}function L(i,u){1&i&&(t.j41(0,"div"),t.nrm(1,"div",28)(2,"div",29)(3,"div",30)(4,"div",30),t.k0s())}function m(i,u){if(1&i&&(t.j41(0,"div",21)(1,"p",22),t.EFF(2,"Success Rate"),t.k0s(),t.j41(3,"h4",23),t.EFF(4),t.k0s(),t.j41(5,"p",24)(6,"mat-icon",25),t.EFF(7,"phone_android"),t.k0s(),t.EFF(8),t.k0s(),t.j41(9,"p",26)(10,"mat-icon",25),t.EFF(11,"laptop_mac"),t.k0s(),t.EFF(12),t.k0s()()),2&i){const r=t.XpG();t.R7$(4),t.SpI("",null==r.displayObj?null:r.displayObj.successRate,"%"),t.R7$(4),t.SpI(" ",null==r.displayObj?null:r.displayObj.successRateMobile,"% "),t.R7$(4),t.SpI(" ",null==r.displayObj?null:r.displayObj.successRateWeb,"% ")}}function U(i,u){1&i&&(t.j41(0,"div"),t.nrm(1,"div",28)(2,"div",29)(3,"div",30)(4,"div",30),t.k0s())}function w(i,u){1&i&&(t.j41(0,"div"),t.nrm(1,"div",35),t.k0s())}function F(i,u){if(1&i&&t.nrm(0,"google-chart",36,37),2&i){const r=t.XpG(2);t.Y8G("type",r.area_type)("data",r.area_data)("options",r.area_options)}}function G(i,u){if(1&i){const r=t.RV6();t.j41(0,"div",38)(1,"div")(2,"mat-button-toggle-group",39),t.bIt("change",function(l){t.eBV(r);const f=t.XpG(2);return t.Njj(f.toggleGraphTab(l))}),t.j41(3,"mat-button-toggle",40),t.EFF(4,"Transactions "),t.k0s(),t.j41(5,"mat-button-toggle",40),t.EFF(6,"Amount"),t.k0s(),t.j41(7,"mat-button-toggle",40),t.EFF(8,"Success Rate "),t.k0s()()()()}if(2&i){const r=t.XpG(2);t.R7$(2),t.Y8G("value",r.selectedGraphTab),t.R7$(1),t.Y8G("disableRipple",!0)("value",r.graphTabs.Transactions),t.R7$(2),t.Y8G("disableRipple",!0)("value",r.graphTabs.Amount),t.R7$(2),t.Y8G("disableRipple",!0)("value",r.graphTabs.SuccessRate)}}function A(i,u){1&i&&(t.j41(0,"div",41),t.nrm(1,"div",42)(2,"div",42)(3,"div",42),t.k0s())}function W(i,u){if(1&i&&(t.j41(0,"div",31)(1,"article",14),t.DNE(2,w,2,0,"div",17),t.DNE(3,F,2,3,"google-chart",32),t.DNE(4,G,9,7,"div",33),t.DNE(5,A,4,0,"div",34),t.k0s()()),2&i){const r=t.XpG();t.R7$(2),t.Y8G("ngIf",!r.graphObj),t.R7$(1),t.Y8G("ngIf",r.graphObj),t.R7$(1),t.Y8G("ngIf",r.graphObj),t.R7$(1),t.Y8G("ngIf",!r.graphObj)}}function z(i,u){1&i&&(t.j41(0,"p",48),t.EFF(1,"Analysis of Payment Modes"),t.k0s())}function Y(i,u){1&i&&(t.j41(0,"div",49),t.nrm(1,"div",28)(2,"div",50),t.j41(3,"div",51)(4,"div",52),t.nrm(5,"div",29)(6,"div",30)(7,"div",30)(8,"div",30)(9,"div",30),t.k0s(),t.j41(10,"div",52),t.nrm(11,"div",29)(12,"div",30)(13,"div",30)(14,"div",30)(15,"div",30),t.k0s()()())}function $(i,u){1&i&&(t.j41(0,"div",53)(1,"div",54),t.nrm(2,"img",55),t.j41(3,"p"),t.EFF(4,"You'll see stats on split of transactions by modes once you have transactions happening "),t.k0s()()())}function a(i,u){if(1&i&&(t.j41(0,"li")(1,"span"),t.nrm(2,"i"),t.EFF(3),t.nI1(4,"titlecase"),t.k0s(),t.j41(5,"span"),t.EFF(6),t.k0s()()),2&i){const r=u.$implicit,h=u.index;t.R7$(2),t.ZvI("colr-",h+1,""),t.R7$(1),t.SpI("",t.bMT(4,5,r.scheme)," "),t.R7$(3),t.JRh(r.totalTxnCount)}}function d(i,u){if(1&i&&(t.j41(0,"div",53),t.nrm(1,"google-chart",56,57),t.j41(3,"div",58)(4,"p",59)(5,"span"),t.EFF(6,"Payment Modes"),t.k0s(),t.j41(7,"span"),t.EFF(8,"Transaction Count"),t.k0s()(),t.j41(9,"ul"),t.DNE(10,a,7,7,"li",60),t.k0s()()()),2&i){const r=t.XpG(2);t.R7$(1),t.Y8G("type",r.pie_type)("data",r.pie_data)("options",r.pie_options),t.R7$(9),t.Y8G("ngForOf",null==r.displayObj?null:r.displayObj.schemeWiseDetails)}}function e(i,u){if(1&i&&(t.j41(0,"div",43)(1,"div",44)(2,"article",14),t.DNE(3,z,2,0,"p",45),t.DNE(4,Y,16,0,"div",46),t.DNE(5,$,5,0,"div",47),t.DNE(6,d,11,4,"div",47),t.k0s()()()),2&i){const r=t.XpG();t.R7$(3),t.Y8G("ngIf",r.pieObj),t.R7$(1),t.Y8G("ngIf",!r.pieObj),t.R7$(1),t.Y8G("ngIf",!r.pie_data.length&&r.pieObj),t.R7$(1),t.Y8G("ngIf",r.pie_data.length&&r.pieObj)}}function n(i,u){1&i&&(t.j41(0,"section")(1,"div",61),t.EFF(2," For more comprehensive insights please visit from your PC/laptop "),t.k0s()())}var o=function(i){return i[i.Transactions=0]="Transactions",i[i.Amount=1]="Amount",i[i.SuccessRate=2]="SuccessRate",i}(o||{}
1),g=function(i){return i[i.Today=0]="Today",i[i.Last7=7]="Last7",i[i.Last30=30]="Last30",i.custom="custom",i.selectedDate="dateRange",i}(g||{});let j=(()=>{class i{constructor(r,h,l){this.dashboardService=r,this._snackBar=h,this.appService=l,this.selectedGraphTab=0,this.graphTabs=o,this.graphData={},this.graphObj=!1,this.pieObj=!1,this.timeFrame=g,this.timeframeOptions=["Today","Last 7 Days","Last 30 days"],this.selectedPeriod=this.timeFrame.Today,this.paymode="all",this.transformToLocale=["totalTxnAmount","totalTxnAmtWeb","totalTxnAmtMobile"],this.links=[{value:"all",viewValue:"All",icon:"search"},{value:"credit",viewValue:"Credit Card",icon:"payment"},{value:"debit",viewValue:"Debit Card",icon:"payment"},{value:"netbanking",viewValue:"Net Banking",icon:"account_balance"},{value:"upi",viewValue:"UPI",icon:""},{value:"wallet",viewValue:"Wallet",icon:"account_balance_wallet"}],this.activeLink=this.links[0],this.pie_type="PieChart",this.pie_data=[],this.pie_options={colors:["#ff5d2d","#4A90E2","#f58a24","#ff0143","#7ED321","#058842","#00b294","#00bcf2","#00188f","#bb00ea","#ec008c","#e81123"],is3D:!1,pieHole:.4,legend:{position:"none"}},this.area_type="AreaChart",this.area_data=[],this.area_options={areaOpacity:.05,colors:["#07366f"],vAxis:{format:"short",minValue:100,gridlines:{color:"#efefef"}},hAxis:{textStyle:{fontSize:9}},pointSize:5,animation:{startup:!0,duration:800,easing:"inAndOut"},chartArea:{width:"85%",height:"80%"},curveType:"function",legend:{position:"none"},crosshair:{color:"#000000",trigger:"focus",orientation:"vertical",opacity:.07,focused:{color:"#ccc",opacity:.8}}}}ngOnInit(){this.deviceSubscription=this.appService.isMobile$.subscribe(r=>
1this.isMobile=r),this.getChartData(),this.getSummaryData()}getChartData(){this.dashboardService.getChartData(this.selectedPeriod,this.paymode).subscribe(r=>{this.graphData=r.data,this.graphObj=!0,this.updateTabData()})}getSummaryData(){this.dashboardService.getSummaryData(this.selectedPeriod,this.paymode).subscribe(r=>{this.summaryData=r.data,this.updateDisplayData()})}updateDisplayData(){if(Array.isArray(this.summaryData)){const r=this.summaryData.find(h=>h.period==this.selectedPeriod);this.displayObj=r.summary.find(h=>h.payMode.toLowerCase()==this.paymode);for(let h in this.displayObj)this.transformToLocale.includes(h)&&(this.displayObj[h]=this.displayObj[h].toLocaleString("en-IN"));this.pieObj=!0,this.pie_data=[...this.displayObj.pieData],this.updatePieLedger()}}updatePieLedger(){}toggleGraphTab(r){this.selectedGraphTab=r.value,this.updateTabData()}changePeriod(r){this.getChartData(),this.updateDisplayData()}updateTabData(){switch(this.selectedGraphTab){case o.Amount:this.area_data=this.graphData.amounts;break;case o.Transactions:this.area_data=this.graphData.transactions;break;case o.SuccessRate:this.area_data=this.graphData.successRate}}changePaymode(r){this.paymode=r.value,this.activeLink=r,this.getChartData(),this.updateDisplayData()}ngOnDestroy(){this._snackBar.dismiss(),this.deviceSubscription.unsubscribe()}static{this.\u0275fac=function(h){return new(h||i)(t.rXU(b),t.rXU(C.nf),t.rXU(S.d))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-dashboard-home"]],decls:32,vars:14,consts:[[1,"current-account-component-header"],[1,"bluebg-02","an-dash","minvhFull"],[1,"col-12","d-flex","bg-white"],[1,"col-md-10","pl-0"],["mat-tab-nav-bar",""],["mat-tab-link","",3,"active","click",4,"ngFor","ngForOf"],[1,"col-md-2","d-flex","justify-content-end","pr-0","duration-filter"],["appearance","outline",1,"w-100","nolabel-select"],[3,"ngModel","selectionChange","ngModelChange"],["periodSelector",""],[3,"value"],[1,"row","m-0","mt-4"],[3,"ngClass"],[1,"outer-wrap","info-cards"],[1,"outer-block"],["class","zi1 posrel fadeIn",4,"ngIf"],["style","height: 135px;",4,"ngIf"],[4,"ngIf"],["class","outer-wrap mt-4",4,"ngIf"],["class","col-4",4,"ngIf"],["mat-tab-link","",3,"active","click"],[1,"zi1","posrel","fadeIn"],[1,"mb-0"],[1,"themecolor","fw-bold","ft24","py-2"],[1,"fw-bold","d-flex","align-content-center"],[1,"tgreyteel","op-4","ft16"],[1,"fw-bold","d-flex","align-content-center","mb-0"],[2,"height","135px"],[1,"lines","shine","h-2"],[1,"lines","shine","mt-4"],[1,"lines","shine","mt-2"],[1,"outer-wrap","mt-4"],["class","area-chart fadeIn","style","width: 100%; height:233px;",3,"type","data","options",4,"ngIf"],["class","text-center fadeIn",4,"ngIf"],["class","mt-4 d-flex justify-content-center",4,"ngIf"],[1,"lines","shine",2,"height","230px"],[1,"area-chart","fadeIn",2,"width","100%","height","233px",3,"type","data","options"],["area_chart",""],[1,"text-center","fadeIn"],["name","graphTabs",1,"chart-fltr-warp",3,"value","change"],[1,"fltr-type",3,"disableRipple","value"],[1,"mt-4","d-flex","justify-content-center"],[1,"lines","shine","h-2",2,"width","22%","margin","0 3%"],[1,"col-4"],[1,"outer-wrap","vh100"],["class","fw-bold ft16 pt-4 text-center",4,"ngIf"],["class","text-center",4,"ngIf"],["class","fadeIn",4,"ngIf"],[1,"fw-bold","ft16","pt-4","text-center"],[1,"text-center"],[1,"round","shine",2,"width","180px","height","180px","margin","50px 0"],[1,"row"],[1,"col-6"],[1,"fadeIn"],[1,"text-center","tgreyteel","ft15","mt-3",2,"padding-top","120px"],["src","assets/images/dummy-pie-graph.svg","alt","",1,"pb-3"],["align","center",2,"width","100%","height","250px",3,"type","data","options"],["pie_chart",""],[1,"pie-legend"],[1,"fw-bold","ft14","d-flex","justify-content-around","ttls"],[4,"ngFor","ngForOf"],[1,"mobile-msg"]],template:function(h,l){if(1&h){const f=t.RV6();t.j41(0,"div",0),t.EFF(1," Overview\n"),t.k0s(),t.j41(2,"main",1)(3,"div",2)(4,"div",3)(5,"nav",4),t.DNE(6,k,3,2,"a",5),t.k0s()(),t.j41(7,"div",6)(8,"mat-form-field",7)(9,"mat-select",8,9),t.bIt("selectionChange",function(N){return t.eBV(f),t.sdS(10).close(),t.Njj(l.changePerio
1d(N))})("ngModelChange",function(N){return l.selectedPeriod=N}),t.j41(11,"mat-option",10),t.EFF(12,"Today"),t.k0s(),t.j41(13,"mat-option",10),t.EFF(14,"Last 7 days"),t.k0s()()()()(),t.j41(15,"section")(16,"div",11)(17,"div",12)(18,"section")(19,"div",13)(20,"article",14),t.DNE(21,I,13,3,"div",15),t.DNE(22,y,5,0,"div",16),t.k0s(),t.j41(23,"article",14),t.DNE(24,O,13,3,"div",15),t.DNE(25,L,5,0,"div",17),t.k0s(),t.j41(26,"article",14),t.DNE(27,m,13,3,"div",15),t.DNE(28,U,5,0,"div",17),t.k0s()(),t.DNE(29,W,6,4,"div",18),t.k0s()(),t.DNE(30,e,7,4,"div",19),t.k0s()(),t.DNE(31,n,3,0,"section",17),t.k0s()}2&h&&(t.R7$(6),t.Y8G("ngForOf",l.links),t.R7$(3),t.Y8G("ngModel",l.selectedPeriod),t.R7$(2),t.Y8G("value",l.timeFrame.Today),t.R7$(2),t.Y8G("value",l.timeFrame.Last7),t.R7$(4),t.Y8G("ngClass",l.isMobile?"col-12":"col-8"),t.R7$(4),t.Y8G("ngIf",l.displayObj),t.R7$(1),t.Y8G("ngIf",!l.displayObj),t.R7$(2),t.Y8G("ngIf",l.displayObj),t.R7$(1),t.Y8G("ngIf",!l.displayObj),t.R7$(2),t.Y8G("ngIf",l.displayObj),t.R7$(1),t.Y8G("ngIf",!l.displayObj),t.R7$(1),t.Y8G("ngIf",!l.isMobile),t.R7$(1),t.Y8G("ngIf",!l.isMobile),t.R7$(1),t.Y8G("ngIf",l.isMobile))},dependencies:[s.YU,s.Sq,s.bT,x.An,M.Ky,R.cu,P.d1,_.ec,_.pc,T.et,T.BW,H.TT,c.BC,c.vS,s.PV],styles:[".top-filter-sec[_ngcontent-%COMP%]{display:flex;align-items:center}.top-filter-sec[_ngcontent-%COMP%] .pay-type-nav[_ngcontent-%COMP%]{margin:30px 0;flex:1;border:0}.top-filter-sec[_ngcontent-%COMP%] .pay-type-nav[_ngcontent-%COMP%] .paymode[_ngcontent-%COMP%]{margin-right:20px;font-size:16px;cursor:pointer;display:inline-flex;overflow:hidden;align-items:center;color:gray;border-radius:8px;border:0;background:transparent}.top-filter-sec[_ngcontent-%COMP%] .pay-type-nav[_ngcontent-%COMP%] .paymode[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:20px;width:17px;margin-right:5px}.top-filter-sec[_ngcontent-%COMP%] .pay-type-nav[_ngcontent-%COMP%] .paymode[_ngcontent-%COMP%]:hover, .top-filter-sec[_ngcontent-%COMP%] .pay-type-nav[_ngcontent-%COMP%] .paymode.mat-button-toggle-checked[_ngcontent-%COMP%]{color:#3043ce;box-shadow:inset 0 1px 2px #00000026;background-color:#fdfdff}.top-filter-sec[_ngcontent-%COMP%] .pay-type-nav[_ngcontent-%COMP%] .paymode[_ngcontent-%COMP%]:hover{font-weight:400}.top-filter-sec[_ngcontent-%COMP%] .duration-filter[_ngcontent-%COMP%]{width:150px}.chart-fltr-warp[_ngcontent-%COMP%]{margin:10px 0 20px;border-radius:8px;padding:9px 10px;display:inline-flex;border:0}.chart-fltr-warp[_ngcontent-%COMP%] .fltr-type[_ngcontent-%COMP%]{color:#3043ce;border-radius:4px;margin:0 10px;font-size:13px;cursor:pointer;font-weight:700;border:1px solid #3043CE}.chart-fltr-warp[_ngcontent-%COMP%] .fltr-type[_ngcontent-%COMP%]:hover{background-color:#f5f8ff}.chart-fltr-warp[_ngcontent-%COMP%] .fltr-type.mat-button-toggle-checked[_ngcontent-%COMP%]{color:#fff;background-color:#3043ce}.outer-wrap[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between}.outer-wrap[_ngcontent-%COMP%] .outer-block[_ngcontent-%COMP%]{flex-basis:100%;position:relative;box-shadow:0 1px 3px #0000000a;border-radius:8px;padding:15px;background:#fff}.info-cards[_ngcontent-%COMP%] .outer-block[_ngcontent-%COMP%]{flex-basis:32%;font-size:14px}.pie-legend[_ngcontent-%COMP%] .ttls[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:130px;text-align:left}.pie-legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:11px;display:flex;align-items:center;justify-content:space-around;margin-bottom:20px}.pie-legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:120px;text-align:left;display:flex}.pie-legend[_ngcontent-%COMP%] li[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:12px;height:12px;border-radius:50%;margin-right:7px}.pie-legend-value[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:12px;display:flex;align-items:center;margin-bottom:18px}.mobile-msg[_ngcontent-%COMP%]{margin:20px;color:gray;text-align:center}@media only screen and (max-width: 959px){.info-cards[_ngcontent-%COMP%] .outer-block[_ngcontent-%COMP%]{flex-basis:100%}.top-filter-sec[_ngcontent-%COMP%] .pay-type-nav[_ngcontent-%COMP%]{display:none}.top-filter-sec[_ngcontent-%COMP%] .duration-filter[_ngcontent-%COMP%]{margin:30px 0}}.mat-tab-link[_ngcontent-%COMP%]{min-width:60px}"]})}}return i})()},2432:(V,D,p)=>{p.d(D,{JB:()=>$,TT:()=>z});var t=p(7673),v=p(1413),E=p(1985),b=p(2771),C=p(4572),S=p(3726),s=p(7705),x=p(1397),M=p(6354),R=p(5558),P=p(152);const _=["*"];var c=function(a){return a.AnnotationChart="AnnotationChart",a.AreaChart="AreaChart",a.Bar="Bar",a.BarChart="BarChart",a.BubbleChart="BubbleChart",a.Calendar="Calendar",a.CandlestickChart="CandlestickChart",a.ColumnChart="ColumnChart",a.ComboChart="ComboChart",a.PieChart="PieChart",a.Gantt="Gantt",a.Gauge="Gauge",a.GeoChart="GeoChart",a.Histogram="Histogram",a.Line="Line",a.LineChart="LineChart",a.Map="Map",a.OrgChart="OrgChart",a.Sankey="Sankey",a.Scatter="Scatter",a.ScatterChart="ScatterChart",a.SteppedAreaChart="SteppedAreaChart",a.Table="Table",a.Timeline="Timeline",a.TreeMap="TreeMap",a.WordTree="WordTree",a}(c||{});const k={[c.AnnotationChart]:"annotationchart",[c.AreaChart]:"corechart",[c.Bar]:"bar",[c.BarChart]:"corechart",[c.BubbleChart]:"corechart",[c.Calendar]:"calendar",[c.CandlestickChart]:"corechart",[c.ColumnChart]:"corechart",[c.ComboChart]:"corechart",[c.PieChart]:"corechart",[c.Gantt]:"gantt",[c.Gauge]:"gauge",[c.GeoChart]:"geochart",[c.Histogram]:"corechart",[c.Line]:"line",[c.LineChart]:"corechart",[c.Map]:"map",[c.OrgChart]:"orgchart",[c.Sankey]:"sankey",[c.Scatter]:"scatter",[c.ScatterChart]:"corechart",[c.SteppedAreaChart]:"corechart",[c.Table]:"table",[c.Timeline]:"timeline",[c.TreeMap]:"treemap",[c.WordTree]:"wordtree"},O=new s.nKC("GOOGLE_CHARTS_CONFIG"),L=new s.nKC("GOOGLE_CHARTS_LAZY_CONFIG",{providedIn:"root",factory:()=>{const a=(0,s.WQX)(O,s.$GK.Optional);return(0,t.of)(Object.assign(Object.assign({},{version:"current",safeMode:!1}),a||{}))}});let m=(()=>{class a{constructor(e,n,o){this.zone=e,this.localeId=n,this.config$=o,this.scriptSource="https://www.gstatic.
1com/charts/loader.js",this.scriptLoadSubject=new v.B}isGoogleChartsAvailable(){return!(typeof google>"u"||typeof google.charts>"u")}loadChartPackages(...e){return this.loadGoogleCharts().pipe((0,x.Z)(()=>this.config$),(0,M.T)(n=>Object.assign(Object.assign({},{version:"current",safeMode:!1}),n||{})),(0,R.n)(n=>new E.c(o=>{google.charts.load(n.version,{packages:e,language:this.localeId,mapsApiKey:n.mapsApiKey,safeMode:n.safeMode}),google.charts.setOnLoadCallback(()=>{this.zone.run(()=>{o.next(),o.complete()})})})))}loadGoogleCharts(){if(this.isGoogleChartsAvailable())return(0,t.of)(void 0);if(!this.isLoadingGoogleCharts()){const e=this.createGoogleChartsScript();e.onload=()=>{this.zone.run(()=>{this.scriptLoadSubject.next(),this.scriptLoadSubject.complete()})},e.onerror=()=>{this.zone.run(()=>{console.error("Failed to load the google charts script!"),this.scriptLoadSubject.error(new Error("Failed to load the google charts script!"))})}}return this.scriptLoadSubject.asObservable()}isLoadingGoogleCharts(){return null!=this.getGoogleChartsScript()}getGoogleChartsScript(){return Array.from(document.getElementsByTagName("script")).find(n=>n.src===this.scriptSource)}createGoogleChartsScript(){const e=document.createElement("script");return e.type="text/javascript",e.src=this.scriptSource,e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e}}return a.\u0275fac=function(e){return new(e||a)(s.KVO(s.SKi),s.KVO(s.xe9),s.KVO(L))},a.\u0275prov=s.jDH({token:a,factory:a.\u0275fac}),a})(),w=(()=>{class a{create(e,n,o){if(null==e)return;let g=!0;null!=n&&(g=!1);const j=google.visualization.arrayToDataTable(this.getDataAsTable(e,n),g);return o&&this.applyFormatters(j,o),j}getDataAsTable(e,n){return n?[n,...e]:e}applyFormatters(e,n){for(const o of n)o.formatter.format(e,o.colIndex)}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275prov=s.jDH({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),A=(()=>{class a{constructor(e){this.loaderService=e,this.error=new s.bkB,this.ready=new s.bkB,this.stateChange=new s.bkB,this.id=function F(){return"_"+Math.random().toString(36).substr(2,9)}
1(),this.wrapperReadySubject=new b.m(1)}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get controlWrapper(){if(!this._controlWrapper)throw new Error("Cannot access the control wrapper before it being initialized.");return this._controlWrapper}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.createControlWrapper()})}ngOnChanges(e){this._controlWrapper&&(e.type&&this._controlWrapper.setControlType(this.type),e.options&&this._controlWrapper.setOptions(this.options||{}),e.state&&this._controlWrapper.setState(this.state||{}))}createControlWrapper(){this._controlWrapper=new google.visualization.ControlWrapper({containerId:this.id,controlType:this.type,state:this.state,options:this.options}),this.addEventListeners(),this.wrapperReadySubject.next(this._controlWrapper)}addEventListeners(){google.visualization.events.removeAllListeners(this._controlWrapper),google.visualization.events.addListener(this._controlWrapper,"ready",e=>this.ready.emit(e)),google.visualization.events.addListener(this._controlWrapper,"error",e=>this.error.emit(e)),google.visualization.events.addListener(this._controlWrapper,"statechange",e=>this.stateChange.emit(e))}}return a.\u0275fac=function(e){return new(e||a)(s.rXU(m))},a.\u0275cmp=s.VBU({type:a,selectors:[["control-wrapper"]],hostAttrs:[1,"control-wrapper"],hostVars:1,hostBindings:function(e,n){2&e&&s.Mr5("id",n.id)},inputs:{for:"for",type:"type",options:"options",state:"state"},outputs:{error:"error",ready:"ready",stateChange:"stateChange"},exportAs:["controlWrapper"],features:[s.OA$],decls:0,vars:0,template:function(e,n){},encapsulation:2,changeDetection:0}),a})(),W=(()=>{class a{constructor(e,n,o){this.element=e,this.loaderService=n,this.dataTableService=o,this.ready=new s.bkB,this.error=new s.bkB,this.initialized=!1}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.createDashboard(),this.initialized=!0})}ngOnChanges(e){this.initialized&&(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.dashboard.draw(this.dataTable))}createDashboard(){const e=this.controlWrappers.map(o=>o.wrapperReady$),n=this.controlWrappers.map(o=>o.for).map(o=>Array.isArray(o)?(0,C.z)(o.map(g=>g.wrapperReady$)):o.wrapperReady$);(0,C.z)([...e,...n]).subscribe(()=>{this.dashboard=new google.visualization.Dashboard(this.element.nativeElement),this.initializeBindings(),this.registerEvents(),this.dashboard.draw(this.dataTable)})}registerEvents(){google.visualization.events.removeAllListeners(this.dashboard);const e=(n,o,g)=>{google.visualization.events.addListener(n,o,g)};e(this.dashboard,"ready",()=>this.ready.emit()),e(this.dashboard,"error",n=>this.error.emit(n))}initializeBindings(){this.controlWrappers.forEach(e=>{if(Array.isArray(e.for)){const n=e.for.map(o=>o.chartWrapper);this.dashboard.bind(e.controlWrapper,n)}else this.dashboard.bind(e.controlWrapper,e.for.chartWrapper)})}}return a.\u0275fac=function(e){return new(e||a)(s.rXU(s.aKT),s.rXU(m),s.rXU(w))},a.\u0275cmp=s.VBU({type:a,selectors:[["dashboard"]],contentQueries:function(e,n,o){if(1&e&&s.wni(o,A,4),2&e){let g;s.mGM(g=s.lsd())&&(n.controlWrappers=g)}},hostAttrs:[1,"dashboard"],inputs:{data:"data",columns:"columns",formatters:"formatters"},outputs:{ready:"ready",error:"error"},exportAs:["dashboard"],features:[s.OA$],ngContentSelectors:_,decls:1,vars:0,template:function(e,n){1&e&&(s.NAR(),s.SdG(0))},encapsulation:2,changeDetection:0}),a})(),z=(()=>{class a{constructor(e,n,o,g){this.element=e,this.scriptLoaderService=n,this.dataTableService=o,this.dashboard=g,this.options={},this.dynamicResize=!1,this.ready=new s.bkB,this.error=new s.bkB,this.select=new s.bkB,this.mouseover=new s.bkB,this.mouseleave=new s.bkB,this.wrapperReadySubject=ne
1w b.m(1),this.initialized=!1,this.eventListeners=new Map}get chart(){return this.chartWrapper.getChart()}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get chartWrapper(){if(!this.wrapper)throw new Error("Trying to access the chart wrapper before it was fully initialized");return this.wrapper}set chartWrapper(e){this.wrapper=e,this.drawChart()}ngOnInit(){this.scriptLoaderService.loadChartPackages(function I(a){return k[a]}(this.type)).subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper=new google.visualization.ChartWrapper({container:this.element.nativeElement,chartType:this.type,dataTable:this.dataTable,options:this.mergeOptions()}),this.registerChartEvents(),this.wrapperReadySubject.next(this.wrapper),this.initialized=!0,this.drawChart()})}ngOnChanges(e){if(e.dynamicResize&&this.updateResizeListener(),this.initialized){let n=!1;(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper.setDataTable(this.dataTable),n=!0),e.type&&(this.wrapper.setChartType(this.type),n=!0),(e.options||e.width||e.height||e.title)&&(this.wrapper.setOptions(this.mergeOptions()),n=!0),n&&this.drawChart()}}ngOnDestroy(){this.unsubscribeToResizeIfSubscribed()}addEventListener(e,n){const o=this.registerChartEvent(this.chart,e,n);return this.eventListeners.set(o,{eventName:e,callback:n,handle:o}),o}removeEventListener(e){const n=this.eventListeners.get(e);n&&(google.visualization.events.removeListener(n.handle),this.eventListeners.delete(e))}updateResizeListener(){this.unsubscribeToResizeIfSubscribed(),this.dynamicResize&&(this.resizeSubscription=(0,S.R)(window,"resize",{passive:!0}).pipe((0,P.B)(100)).subscribe(()=>{this.initialized&&this.drawChart()}))}unsubscribeToResizeIfSubscribed(){null!=this.resizeSubscription&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=void 0)}mergeOptions(){return Object.assign({title:this.title,width:this.width,height:this.height},this.options)}registerChartEvents(){google.visualization.events.removeAllListeners(this.wrapper),this.registerChartEvent(this.wrapper,"ready",()=>{google.visualization.events.removeAllListeners(this.chart),this.registerChartEvent(this.chart,"onmouseover",e=>this.mouseover.emit(e)),this.registerChartEvent(this.chart,"onmouseout",e=>this.mouseleave.emit(e)),this.registerChartEvent(this.chart,"select",()=>{const e=this.chart.getSelection();this.select.emit({selection:e})}),this.eventListeners.forEach(e=>e.handle=this.registerChartEvent(this.chart,e.eventName,e.callback)),this.ready.emit({chart:this.chart})}),this.registerChartEvent(this.wrapper,"error",e=>this.error.emit(e))}registerChartEvent(e,n,o){return google.visualization.events.addListener(e,n,o)}drawChart(){null==this.dashboard&&this.wrapper.draw()}}return a.\u0275fac=function(e){return new(e||a)(s.rXU(s.aKT),s.rXU(m),s.rXU(w),s.rXU(W,8))},a.\u0275cmp=s.VBU({type:a,selectors:[["google-chart"]],hostAttrs:[1,"google-chart"],inputs:{type:"type",data:"data",columns:"columns",title:"title",width:"width",height:"height",options:"options",formatters:"formatters",dynamicResize:"dynamicResize"},outputs:{ready:"ready",error:"error",select:"select",mouseover:"mouseover",mouseleave:"mou
1seleave"},exportAs:["googleChart"],features:[s.OA$],decls:0,vars:0,template:function(e,n){},styles:["[_nghost-%COMP%] { width: fit-content; display: block; }"],changeDetection:0}),a})(),$=(()=>{class a{static forRoot(e={}){return{ngModule:a,providers:[{provide:O,useValue:e}]}}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=s.$C({type:a}),a.\u0275inj=s.G2t({providers:[m]}),a})()}}]);
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.