1"use strict";(self.webpackChunkratings_ui_v2=self.webpackChunkratings_ui_v2||[]).push([["src_app_components_new-navigation_userprofile_userprofile_module_ts"],{16725:(we,O,h)=>{h.r(O),h.d(O,{UserProfileModule:()=>Oe});var u=h(496),b=h(1083),t=h(37580),x=h(16262),U=h(42534),m=h(60316);function S(a,r){1&a&&(t.j41(0,"li",15)(1,"a",16)(2,"span",12),t.nrm(3,"i",17),t.k0s(),t.j41(4,"span"),t.EFF(5,"Security"),t.k0s()()())}function G(a,r){1&a&&(t.j41(0,"li",15)(1,"a",18)(2,"span",12),t.nrm(3,"i",19),t.k0s(),t.j41(4,"span"),t.EFF(5,"Preferences"),t.k0s()()())}function N(a,r){1&a&&(t.j41(0,"li",15)(1,"a",20)(2,"span",12),t.nrm(3,"i",21),t.k0s(),t.j41(4,"span"),t.EFF(5,"Quota Usage"),t.k0s()()())}function Q(a,r){1&a&&(t.j41(0,"li",15)(1,"a",22)(2,"span",12),t.nrm(3,"i",23),t.k0s(),t.j41(4,"span"),t.EFF(5,"Users"),t.k0s()()())}const Y=function(a){return{"show-nav":a}};function B(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",6)(1,"button",7),t.bIt("click",function(o){t.eBV(e);const i=t.XpG();return t.Njj(i.toggleShowMobileNav(o))}),t.EFF(2,"X"),t.k0s(),t.j41(3,"h6",8),t.EFF(4,"Account Settings"),t.k0s(),t.j41(5,"ul",9)(6,"li",10)(7,"a",11)(8,"span",12),t.nrm(9,"i",13),t.k0s(),t.j41(10,"span"),t.EFF(11,"Personal Info"),t.k0s()()(),t.DNE(12,S,6,0,"li",14),t.DNE(13,G,6,0,"li",14),t.DNE(14,N,6,0,"li",14),t.DNE(15,Q,6,0,"li",14),t.k0s()()}if(2&a){const e=t.XpG();t.Y8G("ngClass",t.eq3(5,Y,e.showMobileNav)),t.R7$(12),t.Y8G("ngIf",!e.isSocial),t.R7$(1),t.Y8G("ngIf",e.isEnterprise),t.R7$(1),t.Y8G("ngIf",e.isEnterprise),t.R7$(1),t.Y8G("ngIf",e.isAccountAdmin)}}let L=(()=>{class a{constructor(e,n,o){this.user=e,this._router=n,this._eventBus=o}ngOnInit(){this._router.events.subscribe(e=>{e instanceof b.wF&&(this.hideNavigation=e.url.indexOf("watchlist")>=0)}),setTimeout(()=>{this._eventBus.showFeedback()},500),this.isAccountAdmin=this.user.accountAdminEnabled(),this.isSocial=this.user.session.userId.indexOf("google")>=0||this.user.session.userId.indexOf("linkedin")>=0,this.isEnterprise=!this.user.isFreemium()}goto(e){this.currentHighlight=e,this._router.navigate([e])}toggleShowMobileNav(e){this.showMobileNav=!this.showMobileNav,e.stopPropagation()}onClick(e){this.showMobileNav&&(this.showMobileNav=!1),e.stopPropagation()}onScroll(){if(window.matchMedia&&window.matchMedia("(max-device-width: 960px)").matches||screen.width<=960)return;const n=jQuery(".user-profile-main-content .right-content").offset().top,o=jQuery(window).scrollTop(),i=jQuery(".user-profile-main-content").hasClass("sticky-nav");o<120&&i?jQuery(".user-profile-main-content").removeClass("sticky-nav"):n<o&&!i&&jQuery(".user-profile-main-content").addClass("sticky-nav")}static{this.\u0275fac=function(n){return new(n||a)(t.rXU(x.KJ),t.rXU(b.Ix),t.rXU(U.W))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["user-profile"]],hostBindings:function(n,o){1&n&&t.bIt("click",function(s){return o.onClick(s)},!1,t.tSv)("scroll",function(s){return o.onScroll(s)},!1,t.tSv)},decls:7,vars:1,consts:[[1,"user-profile-main-content"],["class","side-navigation user-profile",3,"ngClass",4,"ngIf"],[1,"right-content"],[1,"container-fluid","main-content"],[1,"btn","btn-link","p-0","mobile-menu-toggler",3,"click"],["src","/assets/images/icon-three-bars.svg","alt","Bar Icon"],[1,"side-navigation","user-profile",3,"ngClass"],[1,"btn","btn-link","mobile-menu-close",3,"click"],[1,"title"],[1,"nav","flex-column"],[1,"nav-item","active"],["routerLink","/account-settings/info","routerLinkActive","active",1,"nav-link"],[1,"navIcon"],[1,"fa","fa-info"],["class","nav-item",4,"ngIf"],[1,"nav-item"],["routerLink","/account-settings/security","routerLinkActive","active",1,"nav-link"],[1,"fa","fa-key"],["routerLink","/account-settings/preferences","routerLinkActive","active",1,"nav-link"],[1,"fa","fa-cogs"],["routerLink","/account-settings/quota-usage","routerLinkActive","active",1,"nav-link"],[1,"fa","fa-bar-chart"],["routerLink","/account-settings/manage-users","routerLinkActive","active",1,"nav-link"],[1,"fa","fa-users"]],template:function(n,o){1&n&&(t.j41(0,"div",0),t.DNE(1,B,16,7,"div",1),t.j41(2,"div",2)(3,"div",3)(4,"div",4),t.bIt("click",function(s){return o.toggleShowMobileNav(s)}),t.nrm(5,"img",5),t.k0s(),t.nrm(6,"router-outlet"),t.k0s()()()),2&n&&(t.R7$(1),t.Y8G("ngIf",!o.hideNavigation))},dependencies:[m.YU,m.bT,b.n3,b.Wk,b.wQ],styles:[".title[_ngcontent-%COMP%]{padding-left:24px;padding-top:32px;padding-bottom:15px;color:#2652b2;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.75px}.mobile-menu-toggler[_ngcontent-%COMP%]{display:none}.mobile-menu-close[_ngcontent-%COMP%]{display:none;position:absolute;right:0;text-decoration:none;color:#000}
1.side-navigation[_ngcontent-%COMP%]{width:200px}.side-navigation[_ngcontent-%COMP%] ul.nav[_ngcontent-%COMP%] li.nav-item[_ngcontent-%COMP%]{height:38px;padding-left:24px;position:relative;display:flex;align-items:center;margin:0 12px}.side-navigation[_ngcontent-%COMP%] ul.nav[_ngcontent-%COMP%] li.nav-item[_ngcontent-%COMP%] a.nav-link[_ngcontent-%COMP%]{color:#0b1731e0;font-size:13px;font-weight:800;padding:0;transition:opacity .5s;cursor:pointer;display:flex;align-items:center}.side-navigation[_ngcontent-%COMP%] ul.nav[_ngcontent-%COMP%] li.nav-item[_ngcontent-%COMP%] a.nav-link[_ngcontent-%COMP%] span.navIcon[_ngcontent-%COMP%]{font-size:16px;margin-right:5px;width:24px;text-align:center}.side-navigation[_ngcontent-%COMP%] ul.nav[_ngcontent-%COMP%] li.nav-item[_ngcontent-%COMP%] a.nav-link.active[_ngcontent-%COMP%]{position:absolute;z-index:10;inset:0;margin-right:-2px;padding-left:24px;border-radius:24px;background:#E6EBF0;color:#2652b2}.side-navigation[_ngcontent-%COMP%] ul.nav[_ngcontent-%COMP%] li.nav-item[_ngcontent-%COMP%] a.nav-link[_ngcontent-%COMP%]:hover{color:#2652b2}.sticky-nav[_ngcontent-%COMP%] .side-navigation[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:200px;z-index:100;bottom:0;margin-bottom:0;margin-top:0}@media (max-width: 675px){.user-profile[_ngcontent-%COMP%]{display:none}.mobile-menu-toggler[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:-8px;right:25px;z-index:200}.mobile-menu-close[_ngcontent-%COMP%]{display:block}.side-navigation[_ngcontent-%COMP%]{display:block;position:fixed!important;top:0;bottom:0;background:#fff;z-index:9999;right:0;width:0px;overflow:auto;transition:width .3s;max-height:unset}.side-navigation.show-nav[_ngcontent-%COMP%]{width:200px}.side-navigation.sticky-nav[_ngcontent-%COMP%]{margin-top:0;padding-bottom:20px}.right-content[_ngcontent-%COMP%]{padding:24px 0!important}}"]})}}return a})();var q=h(83126),w=h(44796);let V=(()=>{class a{constructor(e,n){this.user=e,this.auth=n}ngOnInit(){this.user.getIdentity().name||this.auth.getUserInfo().then(e=>{jQuery.extend(this.user.session,e)})}static{this.\u0275fac=function(n){return new(n||a)(t.rXU(x.KJ),t.rXU(w.u))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["user-profile-info"]],decls:14,vars:2,consts:[[1,"title"],[1,"container-fluid","pl-0"],[1,"wrapper"],[1,"tag","tag-default","text-capitalize"],[1,"tag","tag-default"]],template:function(n,o){1&n&&(t.j41(0,"h2",0),t.EFF(1,"Personal Info"),t.k0s(),t.j41(2,"div",1)(3,"div",2)(4,"h5"),t.EFF(5,"Name"),t.k0s(),t.j41(6,"p")(7,"span",3),t.EFF(8),t.k0s()(),t.j41(9,"h5"),t.EFF(10,"Email"),t.k0s(),t.j41(11,"p")(12,"span",4),t.EFF(13),t.k0s()()()()),2&n&&(t.R7$(8),t.JRh(o.user.getIdentity().name),t.R7$(5),t.JRh(o.user.getIdentity().userEmailAddress))},styles:[".tag[_ngcontent-%COMP%]{font-size:100%!important}.wrapper[_ngcontent-%COMP%]{padding-top:20px}h3[_ngcontent-%COMP%]{border-bottom:1px solid #cccccc;padding-top:25px;margin-left:15px}\n\n/*# sourceMappingURL=info.css.map*/"]})}}return a})(),A=(()=>{class a{constructor(){this.onvalidate=new t.bkB,this.colors=["#F00","#F90","#FF0","#9F0","#0F0"]}static measureStrength(e){var n=0,d=[/[a-z]+/.test(e),/[A-Z]+/.test(e),/[0-9]+/.test(e),/[!#@$-/:-?{-~!"^_`\[\]]/g.test(e)],p=0;for(let g of d)p+=!0===g?1:0;return n+=2*e.length+(e.length>=10?1:0),n+=10*p,n=e.length<=7?Math.min(n,10):n,n=1===p?Math.min(n,10):n,n=2===p?Math.min(n,20):n,n=3===p?Math.min(n,30):n,4===p?Math.min(n,40):n}getColor(e){var n;return{idx:1+(n=e<=10?0:e<=20?1:e<=30?2:e<=40?3:4),col:this.colors[n]}}ngOnChanges(e){var n=e.passwordToCheck.currentValue;if(this.setBarColors(5,"#DDD"),n){let o=a.measureStrength(n);this.onvalidate.emit(o);let i=this.getColor(o);this.setBarColors(i.idx,i.col)}}setBarColors(e,n){for(let o=0;o<e;o++)this["bar"+o]=n}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["px-pw-strength-bar"]],inputs:{passwordToCheck:"passwordToCheck"},outputs:{onvalidate:"onvalidate"},features:[t.OA$],decls:9,vars:10,consts:[["id","strength"],["id","strengthBar"],[1,"point"]],template:function(n,o){1&n&&(t.j41(0,"div",0)(1,"small"),t.EFF(2,"Password strength: "),t.k0s(),t.j41(3,"ul",1),t.nrm(4,"li",2)(5,"li",2)(6,"li",2)(7,"li",2)(8,"li",2),t.k0s()()),2&n&&(t.R7$(4),t.xc7("background-color",o.bar0),t.R7$(1),t.xc7("background-color",o.bar1),t.R7$(1),t.xc7("background-color",o.bar2),t.R7$(1),t.xc7("background-color",o.bar3),t.R7$(1),t.xc7("background-color",o.bar4))},styles:["ul#strengthBar[_ngcontent-%COMP%]{display:inline;list-style:none;margin:0 0 0 15px;padding:0;vertical-align:2px}ul#strengthBar[_ngcontent-%COMP%] .point[_ngcontent-%COMP%]{background:#DDD;border-radius:2px;display:inline-block;height:5px;margin-right:1px;width:20px}ul#strengthBar[_ngcontent-%COMP%] .point[_ngcontent-%COMP%]:last{margin:0!important}"]})}}return a})();function z(a,r){if(1&a&&(t.j41(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),t.EFF(4),t.k0s()()()()),2&a){const e=t.XpG();t.R7$(4),t.JRh(e.errorText)}}function X(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",8)(1,"div",6)(2,"button",9),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.isChangePassword=!0)}),t.EFF(3," Change Password "),t.k0s()()()}}function J(a,r){1&a&&(t.j41(0,"div",26),t.EFF(1," Password does not meet requirements. "),t.k0s())}function K(a,r){1&a&&(t.j41(0,"div",26),t.EFF(1," Confirm Password does not match. "),t.k0s())}const E=function(){return{standalone:!0}};function H(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",4)(1,"form",10),t.bIt("ngSubmit",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.onSubmit())}),t.j41(2,"div",5)(3,"div",6)(4,"div",11)(5,"label"),t.EFF(6,"New Password"),t.k0s(),t.j41(7,"a",12),t.nrm(8,"i",13),t.j41(9,"div",14)(10,"ul",15)(11,"li"),t.EFF(12,"At least 8 characters"),t.k0s(),t.j41(13,"li"),t.EFF(14,"Must have at least one uppercase letter (A-Z)"),t.k0s(),t.j41(15,"li"),t.EFF(16,"Must have at least one lowercase letter (a-z)"),t.k0s(),t.j41(17,"li"),t.EFF(18,"Must have at least one number (0-9)"),t.k0s(),t.j41(19,"li"),t.EFF(20,"Must have at least one special character (e.g. @, !, $)"),t.k0s()()()()(),t.j41(21,"input",16),t.bIt("ngModelChange",function(o){t.eBV(e);const i=t.XpG();return t.Njj(i.newpassword=o)}),t.k0s(),t.j41(22,"px-pw-strength-bar",17),t.bIt("onvalidate",function(o){t.eBV(e);const i=t.XpG();return t.Njj(i.validateStrength(o))}),t.k0s()()(),t.j41(23,"div",5)(24,"div",18),t.DNE(25,J,2,0,"div",19),t.k0s()(),t.j41(26,"div",5)(27,"div",6)(28,"div",20)(29,"label"),t.EFF(30,"Confirm Password"),t.k0s(),t.j41(31,"input",21),t.bIt("ngModelChange",function(o){t.eBV(e);const i=t.XpG();return t.Njj(i.confpassword=o)}),t.k0s()()()(),t.j41(32,"div",5)(33,"div",18),t.DNE(34,K,2,0,"div",19),t.k0s()(),t.j41(35,"div",22)(36,"div",23)(37,"button",24),t.EFF(38,"Update Password"),t.k0s(),t.j41(39,"button",25),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.isChangePassword=!1)}),t.EFF(40,"Cancel"),t.k0s()()()()()}if(2&a){const e=t.XpG();t.R7$(21),t.Y8G("ngModel",e.newpassword)("ngModelOptions",t.lJ4(8,E)),t.R7$(1),t.Y8G("passwordToCheck",e.newpassword),t.R7$(3),t.Y8G("ngIf",e.newpassworderror),t.R7$(6),t.Y8G("ngModel",e.confpassword)("ngModelOptions",t.lJ4(9,E)),t.R7$(3),t.Y8G("ngIf",e.confpassworderror),t.R7$(3),t.Y8G("disabled",e.loading||e.strength<40||e.newpassword!==e.confpassword)}}function Z(a,r){1&a&&(t.j41(0,"div",4)(1,"div",5)(2,"div",27),t.EFF(3," Updating password... "),t.nrm(4,"div",28),t.k0s()()())}function W(a,r){1&a&&(t.j41(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",29),t.EFF(4,"Password Updated."),t.k0s()()()())}let tt=(()=>{class a{constructor(e,n){this.user=e,this.auth=n,this.loading=!1,this.strength=0}ngOnInit(){}validateStrength(e){setTimeout(n=>{this.hasError=!1,this.strength=e},100)}onSubmit(){this.confpassworderror=this.newpassword!==this.confpassword,this.confpassworderror||(this.loading=!0,this.auth.updatePassword(this.user.session.userId,this.auth.getToken(),this.newpassword).then(e=>{this.hasResponse=!0,this.loading=!1}
1).catch(e=>{this.hasError=!0,this.loading=!1,this.errorText=`Update Failed. (${e.status} : ${e.statusText})`}))}static{this.\u0275fac=function(n){return new(n||a)(t.rXU(x.KJ),t.rXU(w.u))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["user-profile-info"]],decls:8,vars:5,consts:[[1,"title"],[1,"container-fluid","pl-0"],["class","wrapper",4,"ngIf"],["class","row wrapper",4,"ngIf"],[1,"wrapper"],[1,"row"],[1,"col-md-12"],[1,"alert","alert-danger","py-2"],[1,"row","wrapper"],[1,"btn","btn-primary",3,"click"],[3,"ngSubmit"],["id","pwd-container",1,"form-group"],["data-toggle","tooltip"],["aria-hidden","true",1,"fa","fa-question-circle"],[1,"tooltipCont"],[1,"mb-0"],["type","password","id","newpassword","required","",1,"form-control","pull-xs-right",3,"ngModel","ngModelOptions","ngModelChange"],[1,"text-right",3,"passwordToCheck","onvalidate"],[1,"col-md-12","error-container"],["class","alert alert-danger",4,"ngIf"],[1,"form-group"],["type","password","id","confpassword","required","",1,"form-control","pull-xs-right",3,"ngModel","ngModelOptions","ngModelChange"],[1,"row","p-t-1"],[1,"col-md-12","d-flex","justify-content-end"],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","button",1,"btn","btn-secondary","ml-2",3,"click"],[1,"alert","alert-danger"],[1,"col-md-12","text-xs-center"],["data-loader","circle-side",1,"m-x-auto"],[1,"alert","alert-success"]],template:function(n,o){1&n&&(t.j41(0,"h2",0),t.EFF(1,"Security"),t.k0s(),t.j41(2,"div",1),t.DNE(3,z,5,1,"div",2),t.DNE(4,X,4,0,"div",3),t.DNE(5,H,41,10,"div",2),t.DNE(6,Z,5,0,"div",2),t.DNE(7,W,5,0,"div",2),t.k0s()),2&n&&(t.R7$(3),t.Y8G("ngIf",o.hasError),t.R7$(1),t.Y8G("ngIf",!o.isChangePassword),t.R7$(1),t.Y8G("ngIf",o.isChangePassword&&!o.loading&&!o.hasResponse),t.R7$(1),t.Y8G("ngIf",o.loading),t.R7$(1),t.Y8G("ngIf",o.hasResponse))},dependencies:[A,m.bT,u.qT,u.me,u.BC,u.cb,u.YS,u.vS,u.cV],styles:[".tag[_ngcontent-%COMP%]{font-size:100%!important}.wrapper[_ngcontent-%COMP%]{padding-top:20px;max-width:375px;font-size:14px}h3[_ngcontent-%COMP%]{border-bottom:1px solid #cccccc;padding-top:25px;margin-left:15px}.error-container[_ngcontent-%COMP%]{height:32px}.alert-danger[_ngcontent-%COMP%]{padding:0 0 0 15px}.pwstrength_viewport_progress[_ngcontent-%COMP%]{float:right;width:200px}.pwstrength_viewport_progress[_ngcontent-%COMP%] .progress{background:#cccccc;border-radius:5px}.pwstrength_viewport_progress[_ngcontent-%COMP%] .progress-bar{border-top-left-radius:5px;border-bottom-left-radius:5px}.pwstrength_viewport_progress[_ngcontent-%COMP%] span.password-verdict{white-space:nowrap}.form-group[_ngcontent-%COMP%], .form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:0}a[data-toggle=tooltip] div.tooltipCont[_ngcontent-%COMP%]{display:none}a[data-toggle=tooltip][_ngcontent-%COMP%]:hover{cursor:pointer}a[data-toggle=tooltip][_ngcontent-%COMP%]:hover div.tooltipCont{background:#9fdaee;display:inline-block;position:absolute;border:1px solid #2bb0d7;border-radius:5px;margin-top:-70px;font-size:12px;width:320px;margin-left:5px}a[data-toggle=tooltip][_ngcontent-%COMP%]:hover div.tooltipCont ul[_ngcontent-%COMP%]{margin:0;list-style:none;padding:10px}.btn[_ngcontent-%COMP%]{font-size:14px}"]})}}return a})();var C=h(56071);const T=function(a){return{selected:a}};function et(a,r){if(1&a){const e=t.RV6();t.j41(0,"a",11),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG();return t.Njj(s.selectLandingPage(i))}),t.k0s()}if(2&a){const e=r.$implicit,n=t.XpG();t.Y8G("ngClass",t.eq3(3,T,n.defaultLandingPage.id===e.id))("innerHTML",null==e?null:e.label,t.npT)("hidden",e.hidden)}}function nt(a,r){if(1&a){const e=t.RV6();t.j41(0,"a",11),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG().$implicit,l=t.XpG().$implicit,c=t.XpG();return t.Njj(c.selectPageParamOption(l,s,i))}),t.k0s()}if(2&a){const e=r.$implicit,n=t.XpG().$implicit;t.Y8G("ngClass",t.eq3(3,T,(null==n||null==n.selected?null:n.selected.id)===(null==e?null:e.id)))("innerHTML",null==e?null:e.label,t.npT)("hidden",null==e?null:e.hidden)}}function ot(a,r){if(1&a&&(t.j41(0,"div",16),t.nrm(1,"label",17),t.j41(2,"div",18)(3,"button",19),t.EFF(4),t.k0s(),t.j41(5,"div",20),t.DNE(6,nt,1,5,"a",8),t.k0s()()()),2&a){const e=r.$implicit,n=t.XpG().$implicit;t.R7$(1),t.Y8G("innerHTML",null==e?null:e.label,t.npT),t.R7$(2),t.FCK("id","dropdownMenuButton-",n.id,"-",e.id,""),t.R7$(1),t.SpI(" ",null==e||null==e.selected?null:e.selected.label," "),t.R7$(1),t.BMQ("aria-labelledby","dropdownMenuButton-"+n.id+"-"+e.id),t.R7$(1),t.Y8G("ngForOf",e.options)}}function at(a,r){if(1&a&&(t.j41(0,"div",12)(1,"div",2)(2,"label",13),t.EFF(3),t.k0s(),t.j41(4,"div",14),t.DNE(5,ot,7,6,"div",15),t.k0s()()()),2&a){const e=r.$implicit;t.Y8G("hidden",e.hidden),t.R7$(3),t.JRh(null==e?null:e.label),t.R7$(2),t.Y8G("ngForOf",e.params)}}let it=(()=>{class a{constructor(e){this.user=e}ngOnInit(){this.landingPageOptions=JSON.parse(JSON.stringify(C.ZD)),this.landingPageOptions.forEach(n=>{if(n.permissions&&n.permissions.length>0){let o=!1;n.permissions.forEach(i=>
1{o||(o=this.user.hasPermission(i))}),o||(n.hidden=!0)}}),this.defaultLandingPage=C.w9;const e=localStorage.getItem(C.gr);if(e){const n=JSON.parse(e);this.landingPageOptions.some(i=>i.id===n.id)&&(this.defaultLandingPage=n)}this.pageOptions=JSON.parse(JSON.stringify(C.lJ)),this.pageOptions.forEach(n=>{if(n.permissions&&n.permissions.length>0){let o=!1;n.permissions.forEach(i=>{o||(o=this.user.hasPermission(i))}),o||(n.hidden=!0)}n.params.forEach(o=>{let i=localStorage.getItem(`${C.BQ}${n.id}-${o.id}`);if(i&&(o.selected=JSON.parse(i),o.selected.permissions&&o.selected.permissions.length>0)){let s=!1;o.selected.permissions.forEach(l=>{s||(s=this.user.hasPermission(l))}),s||(o.selected=null)}if(o.options.forEach(s=>{if(s.permissions&&s.permissions.length>0){let l=!1;s.permissions.forEach(c=>{l||(l=this.user.hasPermission(c))}),l||(s.hidden=!0)}}),o.selected&&o.selected.id){let s=o.options.filter(l=>l.id===o.selected.id)[0];if(s&&s.permissions&&s.permissions.length>0){let l=!1;s.permissions.forEach(c=>{l||(l=this.user.hasPermission(c))}),l||(o.selected=null)}}else console.log("PAGE PARAM NO SELECTED DUE TO NO PERMISSIONS ENABLED : "+JSON.stringify(o));if(!o.selected||null===o.selected){let s=o.options.filter(l=>!l.hidden);o.selected=s?s[0]:o.options[0]}})})}selectLandingPage(e){e.id!==this.defaultLandingPage.id&&(this.defaultLandingPage=e,localStorage.setItem(C.gr,JSON.stringify(this.defaultLandingPage)))}selectPageParamOption(e,n,o){if(n.selected.id!==o.id&&(n.selected=o,localStorage.setItem(`${C.BQ}${e.id}-${n.id}`,JSON.stringify(o)),"trends"===e.id&&"type"===n.id)){let i=e.params.filter(l=>"store"===l.id)[0],s=null;"downloads"===n.selected.id?(i.options.forEach(l=>{l.hidden="ios"===l.id}),s={id:"android",label:"Google Play"}):(i.options.forEach(l=>{l.hidden=!1}),s={id:"ios",label:"App Store"}),i.selected=s,localStorage.setItem(`${C.BQ}${e.id}-${i.id}`,JSON.stringify(s))}}static{this.\u0275fac=function(n){return new(n||a)(t.rXU(x.KJ))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["user-preferences"]],decls:17,vars:3,consts:[[1,"title"],[1,"container-fluid","px-0"],[1,"form-group","row"],["for","landingPageSelect",1,"col-lg-12","col-form-label","font-weight-bold"],[1,"col-lg-12"],[1,"dropdown","filter-dropdown","mt-1"],["type","button","id","rankingsSelectDropdown","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle","rounded-0"],["aria-labelledby","rankingsSelectDropdown",1,"dropdown-menu"],["class","dropdown-item",3,"ngClass","innerHTML","hidden","click",4,"ngFor","ngForOf"],[1,"row"],["class","col-lg-12",3,"hidden",4,"ngFor","ngForOf"],[1,"dropdown-item",3,"ngClass","innerHTML","hidden","click"],[1,"col-lg-12",3,"hidden"],["for","rankingsSelect",1,"col-lg-12","col-form-label","font-weight-bold"],[1,"col-lg-12","d-flex","flex-row","flex-wrap"],["class","mr-2",4,"ngFor","ngForOf"],[1,"mr-2"],[1,"col-form-label-sm","pb-0","mb-0","font-weight-bold",3,"innerHTML"],[1,"dropdown","filter-dropdown"],["type","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle","rounded-0",3,"id"],[1,"dropdown-menu"]],template:function(n,o){1&n&&(t.j41(0,"h2",0),t.EFF(1,"Preferences"),t.k0s(),t.j41(2,"div",1)(3,"form")(4,"div",2)(5,"label",3),t.EFF(6,"Default Landing Page"),t.k0s(),t.j41(7,"div",4)(8,"div",5)(9,"button",6),t.EFF(10),t.k0s(),t.j41(11,"div",7),t.DNE(12,et,1,5,"a",8),t.k0s()()()(),t.j41(13,"h2",0),t.EFF(14,"Default Page Parameters"),t.k0s(),t.j41(15,"div",9),t.DNE(16,at,6,3,"div",10),t.k0s()()()),2&n&&(t.R7$(10),t.SpI(" ",o.defaultLandingPage.label," "),t.R7$(2),t.Y8G("ngForOf",o.landingPageOptions),t.R7$(4),t.Y8G("ngForOf",o.pageOptions))},dependencies:[m.YU,m.Sq,u.qT,u.cb,u.cV],styles:[".tag[_ngcontent-%COMP%]{font-size:100%!important}.wrapper[_ngcontent-%COMP%]{padding-top:20px}h3[_ngcontent-%COMP%]{border-bottom:1px solid #cccccc;padding-top:25px;margin-left:15px}.container-fluid[_ngcontent-%COMP%]{height:unset}.form-group[_ngcontent-%COMP%]{margin-bottom:10px;background:#fff;padding-top:.25rem;padding-bottom:.5rem;margin-left:0;margin-right:0}.form-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], .form-group[_ngcontent-%COMP%] .form-control-sm[_ngcontent-%COMP%]{border-radius:0}.form-group[_ngcontent-%COMP%] .col-form-label[_ngcontent-%COMP%]{font-size:14px}.form-group[_ngcontent-%COMP%] .col-form-label.subtitle[_ngcontent-%COMP%]{font-size:18px;padding-left:0}.form-group[_ngcontent-%COMP%] .col-form-label-sm[_ngcontent-%COMP%]{font-size:10px;text-transform:uppercase}.bg-none[_ngcontent-%COMP%]{background:none}"]})}}return a})();var st=h(83220);let rt=(()=>{class a{constructor(){this.headerUsers=[],this.users=[]}ngOnInit(){this.headerUsers.push({class:"col-md-4 py-2",text:"Username",key:"username",tooltipkey:""}),this.headerUsers.push({class:"col-md-8 py-2",text:"Insights and Guid
1ance Rule",key:"rule",tooltipkey:""}),this.users.push({username:"[email protected]",rule:"User"})}goTo(e){}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-manage-users"]],decls:66,vars:4,consts:[[1,"container-fluid","px-0"],[1,"row","users-heading"],[1,"col-md-6"],[1,"title"],["data-toggle","modal","data-target","#inviteUsersModal",1,"btn","btn-primary","invite-users","float-right"],["id","inviteUsersModal","tabindex","-1","role","dialog","aria-labelledby","inviteUsersModalLabel","aria-hidden","true",1,"modal","fade","invite-users-modal"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","inviteUsersModalLabel",1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],["for","inputFirstName"],["type","text","id","inputFirstName","aria-describedby","firstnameHelp","placeholder","Enter firstname",1,"form-control"],["type","text","id","inputLastName","aria-describedby","lastnameHelp","placeholder","Enter lastname",1,"form-control"],["for","exampleInputEmail1"],["type","email","id","exampleInputEmail1","aria-describedby","emailHelp","placeholder","Enter email",1,"form-control"],["id","emailHelp",1,"form-text","text-muted"],[1,"form-check"],[1,"form-check-label"],["type","radio","name","optionsRadios","id","optionsRadios1","value","admin","checked","",1,"form-check-input"],["type","radio","name","optionsRadios","id","optionsRadios2","value","option2",1,"form-check-input"],["type","radio","name","optionsRadios","id","optionsRadios3","value","option3",1,"form-check-input"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],["type","button",1,"btn","btn-primary"],[1,"form-group","row","search-users"],[1,"input-group"],["id","search-users",1,"input-group-addon"],[1,"fa","fa-search"],["type","text","placeholder","Search Users","aria-describedby","search-users",1,"form-control"],[1,"form-group","row","users-table-label"],[1,"label-users"],[1,"row","ml-0","users-table"],[1,"col-md-12"],[3,"headers","currentSort","data","limit","itemClick"]],template:function(n,o){1&n&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),t.EFF(4,"Users"),t.k0s()(),t.j41(5,"div",2)(6,"button",4),t.EFF(7," Invite Users "),t.k0s(),t.j41(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"h5",9),t.EFF(13,"Invite User"),t.k0s(),t.j41(14,"button",10)(15,"span",11),t.EFF(16,"\xd7"),t.k0s()()(),t.j41(17,"div",12)(18,"form")(19,"div",13)(20,"label",14),t.EFF(21,"First Name"),t.k0s(),t.nrm(22,"input",15),t.k0s(),t.j41(23,"div",13)(24,"label",14),t.EFF(25,"Last Name"),t.k0s(),t.nrm(26,"input",16),t.k0s(),t.j41(27,"div",13)(28,"label",17),t.EFF(29,"Email"),t.k0s(),t.nrm(30,"input",18),t.j41(31,"small",19),t.EFF(32,"We'll never share your email with anyone else."),t.k0s()(),t.j41(33,"fieldset",13)(34,"label"),t.EFF(35,"Insight and Guidance Permissions"),t.k0s(),t.j41(36,"div",20)(37,"label",21),t.nrm(38,"input",22),t.EFF(39," Admin "),t.k0s()(),t.j41(40,"div",20)(41,"label",21),t.nrm(42,"input",23),t.EFF(43," User "),t.k0s()(),t.j41(44,"div",20)(45,"label",21),t.nrm(46,"input",24),t.EFF(47," Read Only "),t.k0s()()()()(),t.j41(48,"div",25)(49,"button",26),t.EFF(50,"Close"),t.k0s(),t.j41(51,"button",27),t.EFF(52,"Invite User"),t.k0s()()()()()()(),t.j41(53,"form")(54,"div",28)(55,"div",29)(56,"span",30),t.nrm(57,"i",31),t.k0s(),t.nrm(58,"input",32),t.k0s()()(),t.j41(59,"form")(60,"div",33)(61,"div",34),t.EFF(62,"Users (23)"),t.k0s()()(),t.j41(63,"div",35)(64,"div",36)(65,"app-data-table-component",37),t.bIt("itemClick",function(s){return o.goTo(s)}),t.k0s()()()()),2&n&&(t.R7$(65),t.Y8G("headers",o.headerUsers)("currentSort","username")("data",o.users)("limit",o.showMoreLimit))},dependencies:[st.u,u.qT,u.cb,u.cV],styles:[".form-group[_ngcontent-%COMP%]{margin-bottom:10px;background:#fff;margin-left:0;padding:8px 10px;border:1px solid #E6EBF0;border-radius:4px}.form-group.search-users[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border:1px solid #ebebf0}.form-group.search-users[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-addon[_ngcontent-%COMP%]{border:none;background:none;font-size:14px;padding-left:10px;padding-right:10px}.form-group.search-users[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border:none;padding-left:0;font-size:14px}.form-group.users-table-label[_ngcontent-%COMP%] .label-users[_ngcontent-%COMP%]{font-size:16px}.users-table[_ngcontent-%COMP%]{background:#fff}.users-table[_ngcontent-%COMP%] .col-header .fa{position:absolute;right:0;margin-right:12px}.users-heading[_ngcontent-%COMP%]{margin-bottom:16px}
1.invite-users-modal[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{border:none;background:no-repeat}"]})}}return a})();var lt=h(36646);let P=(()=>{class a{constructor(e,n){this.router=e,this.user=n}canActivate(e,n){return!this.user.isAnonymous()&&!this.user.isFreemium()||this.router.parseUrl("/account-settings/info")}static{this.\u0275fac=function(n){return new(n||a)(t.KVO(b.Ix),t.KVO(x.KJ))}}static{this.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var ct=h(18129),j=h(60914);function dt(a,r){if(1&a&&(t.j41(0,"span",11),t.EFF(1),t.nI1(2,"num"),t.k0s()),2&a){const e=r.$implicit;t.xc7("bottom",e.pct,"%"),t.R7$(1),t.SpI(" ",t.bMT(2,3,e.value)," ")}}function pt(a,r){if(1&a&&t.nrm(0,"div",12),2&a){const e=r.$implicit;t.xc7("bottom",e.pct,"%"),t.AVh("baseline",0===e.value)}}function gt(a,r){if(1&a&&t.nrm(0,"div",16),2&a){const e=r.$implicit;t.xc7("flex-grow",e.value)("background",e.color)}}function ut(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",13),t.bIt("mouseenter",function(){const o=t.eBV(e),i=o.$implicit,s=o.index,l=t.XpG();return t.Njj(l.onEnter(i,s))})("click",function(){const i=t.eBV(e).$implicit,s=t.XpG();return t.Njj(s.onClick(i))}),t.j41(1,"div",14),t.DNE(2,gt,1,4,"div",15),t.k0s()()}if(2&a){const e=r.$implicit,n=r.index,o=t.XpG();t.AVh("hovered",o.hoverIndex===n)("selected",o.selectedDay===e.day)("dimmed",o.isDimmed(e)),t.BMQ("aria-label",o.longDate(e.day)+": "+e.total+" quota"),t.R7$(1),t.xc7("height",e.totalPct,"%"),t.R7$(1),t.Y8G("ngForOf",e.segments)}}function ft(a,r){if(1&a&&(t.j41(0,"div",24),t.nrm(1,"span",25),t.j41(2,"span",26),t.EFF(3),t.k0s(),t.j41(4,"span",27),t.EFF(5),t.nI1(6,"num"),t.k0s()()),2&a){const e=r.$implicit;t.R7$(1),t.xc7("background",e.color),t.R7$(2),t.JRh(e.label),t.R7$(2),t.JRh(t.bMT(6,4,e.value))}}function ht(a,r){1&a&&(t.j41(0,"div",28),t.EFF(1,"No usage"),t.k0s())}function mt(a,r){if(1&a&&(t.j41(0,"div",17)(1,"div",18)(2,"span",19),t.EFF(3),t.k0s(),t.j41(4,"span",20),t.EFF(5),t.nI1(6,"num"),t.k0s()(),t.DNE(7,ft,7,6,"div",21),t.DNE(8,ht,2,0,"div",22),t.j41(9,"div",23),t.EFF(10),t.k0s()()),2&a){const e=t.XpG();t.xc7("left",e.hoverLeftPct,"%"),t.AVh("align-right",e.hoverAlignRight),t.R7$(3),t.JRh(e.longDate(e.hovered.day)),t.R7$(2),t.JRh(t.bMT(6,9,e.hovered.total)),t.R7$(2),t.Y8G("ngForOf",e.hovered.segments),t.R7$(1),t.Y8G("ngIf",0===e.hovered.segments.length),t.R7$(2),t.SpI(" ",e.selectedDay===e.hovered.day?"Click to clear the selection":"Click to focus this day"," ")}}function _t(a,r){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const e=t.XpG().$implicit;t.R7$(1),t.JRh(e.label)}}function bt(a,r){if(1&a&&(t.j41(0,"div",29),t.DNE(1,_t,2,1,"span",30),t.k0s()),2&a){const e=r.$implicit;t.R7$(1),t.Y8G("ngIf",e.showLabel)}}const R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];let vt=(()=>{class a{constructor(){this.days=[],this.series=[],this.selectedDay=null,this.dayClick=new t.bkB,this.rendered=[],this.ticks=[],this.hovered=null,this.hoverIndex=-1,this.hoverLeftPct=0,this.hoverAlignRight=!1}ngOnChanges(){this.build()}build(){const e=this.days||[],n=e.reduce((l,c)=>Math.max(l,c.total),0),o=this.niceCeiling(n),i=Math.max(1,Math.ceil(e.length/10));this.ticks=[];const s=this.tickStep(n);for(let l=0;l<=o+s/2;l+=s)this.ticks.push({value:l,pct:l/o*100});this.rendered=e.map((l,c)=>{const d=this.series.map(p=>{const g=l.values[p.key]||0;return{key:p.key,label:p.label,color:p.color,value:g,heightPct:o>0?g/o*100:0}}).filter(p=>p.value>0);return{day:l.day,label:this.shortDate(l.day),showLabel:c%i==0,total:l.total,totalPct:o>0?l.total/o*100:0,segments:d}}),this.hovered&&(this.hovered=this.rendered.find(l=>l.day===this.hovered.day)||null)}niceCeiling(e){if(e<=0)return 4;const n=this.tickStep(e);return Math.ceil(e/n)*n}tickStep(e){if(e<=0)return 1;const n=e/4,o=Math.pow(10,Math.floor(Math.log10(n))),i=n/o;let s;return s=i<=1?1:i<=2?2:i<=2.5?2.5:i<=5?5:10,s*o}shortDate(e){const n=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);return n?`${R[Number(n[2])-1]} ${Number(n[3])}`:e}longDate(e){const n=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);return n?`${R[Number(n[2])-1]} ${Number(n[3])}, ${n[1]}`:e}onEnter(e,n){this.hovered=e,this.hoverIndex=n,this.hoverLeftPct=(n+.5)/(this.rendered.length||1)*100,this.hoverAlignRight=this.hoverLeftPct>65}onLeave(){this.hovered=null,this.hoverIndex=-1}onClick(e){this.dayClick.emit(e.day)}isDimmed(e){return!!this.selectedDay&&this.selectedDay!==e.day}trackByDay(e,n){return n.day}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["quota-trend-chart"]],inputs:{days:"days",series:"series",selectedDay:"selectedDay"},outputs:{dayClick:"dayClick"},features:[t.OA$],decls:11,vars:7,consts:[[1,"trend",3,"mouseleave"],[1,"trend-axis"],["class","trend-tick-label",3,"bottom",4,"ngFor","ngForOf"],[1,"trend-plot"],[1,"trend-grid"],["class","trend-gridline",3,"bottom","baseline",4,"ngFor","ngForOf"],["role","list",1,"trend-columns"],["class","trend-slot","role","listitem",3,"hovered","selected","dimmed","mouseenter","click",4,"ngFor","ngForOf","ngForTrackBy"],["class","trend-tooltip",3,"left","align-right",4,"ngIf"],[1,"trend-x-axis"],["class","trend-x-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"trend-tick-label"],[1,"trend-gridline"],["role","listitem",1,"trend-slot",3,"mouseenter","click"],[1,"trend-bar"],["class","trend-segment",3,"flex-grow","background",4,"ngFor","ngForOf"],[1,"trend-segment"],[1,"trend-tooltip"],[1,"trend-tooltip-head"],[1,"trend-tooltip-date"],[1,"trend-tooltip-total"],["class","trend-tooltip-row",4,"ngFor","ngForOf"],["class","trend-tooltip-row muted",4,"ngIf"],[1,"trend-tooltip-hint"],[1,"trend-tooltip-row"],[1,"trend-swatch"],[1,"trend-tooltip-label"],[1,"trend-tooltip-value"],[1,"trend-tooltip-row","muted"],[1,"trend-x-label"],[4,"ngIf"]],template:function(n,o){1&n&&(t.j41(0,"div",0),t.bIt("mouseleave",function(){return o.onLeave()}),t.j41(1,"div",1),t.DNE(2,dt,3,5,"span",2),t.k0s(),t.j41(3,"div",3)(4,"div",4),t.DNE(5,pt,1,4,"div",5),t.k0s(),t.j41(6,"div",6),t.DNE(7,ut,3,10,"div",7),t.k0s(),t.DNE(8,mt,11,11,"div",8),t.k0s(),t.j41(9,"div",9),t.DNE(10,bt,2,1,"div",10),t.k0s()()),2&n&&(t.R7$(2),t.Y8G("ngForOf",o.ticks),t.R7$(3),t.Y8G("ngForOf",o.ticks),t.R7$(2),t.Y8G("ngForOf",o.rendered)("ngForTrackBy",o.trackByDay),t.R7$(1),t.Y8G("ngIf",o.hovered),t.R7$(2),t.Y8G("ngForOf",o.rendered)("ngForTrackBy",o.trackByDay))},dependencies:[m.Sq,m.bT,j.jE],styles:['.trend[_ngcontent-%COMP%]{display:grid;grid-template-columns:48px 1fr;
1grid-template-rows:240px auto;-webkit-user-select:none;user-select:none}.trend-axis[_ngcontent-%COMP%]{position:relative;height:240px}.trend-tick-label[_ngcontent-%COMP%]{color:#6b7280;font-size:11px;font-variant-numeric:tabular-nums;position:absolute;right:10px;transform:translateY(50%)}.trend-plot[_ngcontent-%COMP%]{height:240px;position:relative}.trend-grid[_ngcontent-%COMP%]{inset:0;pointer-events:none;position:absolute}.trend-gridline[_ngcontent-%COMP%]{border-top:1px solid #eceff4;left:0;position:absolute;right:0}.trend-gridline.baseline[_ngcontent-%COMP%]{border-top-color:#cfd6e0}.trend-columns[_ngcontent-%COMP%]{align-items:flex-end;display:flex;height:100%;position:relative}.trend-slot[_ngcontent-%COMP%]{align-items:center;cursor:pointer;display:flex;flex:1 1 0;height:100%;justify-content:center;min-width:0;position:relative;transition:opacity .15s ease}.trend-slot[_ngcontent-%COMP%]:before{background:rgba(38,82,178,.06);border-radius:4px;content:"";inset:0 1px;opacity:0;position:absolute;transition:opacity .12s ease}.trend-slot.hovered[_ngcontent-%COMP%]:before, .trend-slot.selected[_ngcontent-%COMP%]:before{opacity:1}.trend-slot.selected[_ngcontent-%COMP%]:before{background:rgba(38,82,178,.12)}.trend-slot.dimmed[_ngcontent-%COMP%]{opacity:.3}.trend-bar[_ngcontent-%COMP%]{align-self:flex-end;border-radius:4px 4px 0 0;display:flex;flex-direction:column-reverse;max-width:24px;min-height:0;overflow:hidden;position:relative;transition:height .25s ease;width:62%}.trend-segment[_ngcontent-%COMP%]{flex-basis:0;min-height:1px}.trend-segment[_ngcontent-%COMP%] + .trend-segment[_ngcontent-%COMP%]{border-bottom:2px solid #fff}.trend-x-axis[_ngcontent-%COMP%]{display:flex;grid-column:2;margin-top:8px}.trend-x-label[_ngcontent-%COMP%]{color:#6b7280;flex:1 1 0;font-size:11px;min-width:0;text-align:center;white-space:nowrap}.trend-x-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;transform:translate(0)}.trend-tooltip[_ngcontent-%COMP%]{background:#111827;border-radius:8px;box-shadow:0 8px 24px #0f172a40;color:#fff;font-size:12px;min-width:170px;padding:10px 12px;pointer-events:none;position:absolute;top:8px;transform:translate(12px);z-index:5}.trend-tooltip.align-right[_ngcontent-%COMP%]{transform:translate(calc(-100% - 12px))}.trend-tooltip-head[_ngcontent-%COMP%]{align-items:baseline;border-bottom:1px solid rgba(255,255,255,.14);display:flex;gap:16px;justify-content:space-between;margin-bottom:6px;padding-bottom:6px}.trend-tooltip-date[_ngcontent-%COMP%]{color:#ffffffbf}.trend-tooltip-total[_ngcontent-%COMP%]{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}.trend-tooltip-row[_ngcontent-%COMP%]{align-items:center;display:flex;gap:8px;line-height:1.7}.trend-tooltip-row.muted[_ngcontent-%COMP%]{color:#fff9}.trend-swatch[_ngcontent-%COMP%]{border-radius:2px;display:inline-block;flex:none;height:10px;width:10px}.trend-tooltip-label[_ngcontent-%COMP%]{color:#ffffffd9;flex:1;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trend-tooltip-value[_ngcontent-%COMP%]{font-variant-numeric:tabular-nums;font-weight:600}.trend-tooltip-hint[_ngcontent-%COMP%]{color:#ffffff80;font-size:11px;margin-top:6px}']})}}return a})();function Ct(a,r){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const e=t.XpG().ngIf;t.R7$(1),t.SpI("Runs out ",e.runOutLabel,"")}}function kt(a,r){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const e=t.XpG().ngIf;t.R7$(1),t.SpI("On track \xb7 ~",e.projectedPercent,"% by period end")}}function yt(a,r){if(1&a&&(t.qex(0),t.j41(1,"div",65),t.nrm(2,"i",66),t.DNE(3,Ct,2,1,"span",33),t.DNE(4,kt,2,1,"span",33),t.k0s(),t.bVm()),2&a){const e=r.ngIf;t.R7$(1),t.Y8G("ngClass",e.status),t.R7$(1),t.Y8G("ngClass",e.exhausts?"fa-exclamation-triangle":"fa-check-circle"),t.R7$(1),t.Y8G("ngIf",e.exhausts),t.R7$(1),t.Y8G("ngIf",!e.exhausts)}}function xt(a,r){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"num"),t.k0s()),2&a){const e=t.XpG().$implicit,n=t.XpG(2);t.R7$(1),t.SpI("",t.bMT(2,1,n.daysLeft(e))," days left")}}function Mt(a,r){1&a&&(t.j41(0,"span",67),t.EFF(1,"\xb7"),t.k0s())}function Ft(a,r){if(1&a&&(t.j41(0,"div",52)(1,"div",53)(2,"span",54),t.EFF(3),t.k0s(),t.j41(4,"span",55),t.EFF(5),t.k0s()(),t.j41(6,"div",56)(7,"span",57),t.EFF(8),t.nI1(9,"num"),t.k0s(),t.j41(10,"span",58),t.EFF(11,"remaining"),t.k0s()(),t.j41(12,"div",59),t.nrm(13,"div",60),t.k0s(),t.j41(14,"div",61),t.EFF(15),t.nI1(16,"num"),t.nI1(17,"num"),t.k0s(),t.j41(18,"div",62),t.DNE(19,yt,5,4,"ng-container",33),t.j41(20,"div",63),t.DNE(21,xt,3,3,"span",33),t.DNE(22,Mt,2,0,"span",64),t.j41(23,"span"),t.EFF(24),t.k0s()()()()),2&a){const e=r.$implicit,n=t.XpG(2);t.Y8G("ngClass",n.alertLevel(n.percentConsumed(e))),t.R7$(3),t.JRh(e.Entity),t.R7$(1),t.Y8G("ngClass",n.alertLevel(n.percentConsumed(e))),t.R7$(1),t.SpI(" ",n.percentConsumed(e),"% "),t.R7$(3),t.JRh(t.bMT(9,15,e["Display Remaining"])),t.R7$(4),t.BMQ("aria-label",n.percentConsumed(e)+"% consumed"),t.R7$(1),t.xc7("width",n.percentConsumed(e),"%"),t.Y8G("ngClass",n.alertLevel(n.percentConsumed(e))),t.R7$(2),t.Lme(" ",t.bMT(16,17,e.Consumed)," of ",t.bMT(17,19,e["Display Quota"])," used "),t.R7$(4),t.Y8G("ngIf",n.projection(e)),t.R7$(2),t.Y8G("ngIf",null!==n.daysLeft(e)),t.R7$(1),t.Y8G("ngIf",null!==n.daysLeft(e)),t.R7$(2),t.SpI("resets ",n.formatPerio
1dDate(e["Quota End Date"]),"")}}function Pt(a,r){if(1&a&&(t.j41(0,"div",50),t.DNE(1,Ft,25,21,"div",51),t.k0s()),2&a){const e=t.XpG();t.R7$(1),t.Y8G("ngForOf",e.balanceByUrgency)}}function Ot(a,r){if(1&a&&(t.j41(0,"div",30),t.EFF(1),t.k0s()),2&a){const e=t.XpG();t.R7$(1),t.SpI("",e.rangeLabel," \xb7 UTC")}}function wt(a,r){if(1&a){const e=t.RV6();t.j41(0,"form",68),t.bIt("ngSubmit",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.applyCustomRange())}),t.j41(1,"input",69),t.bIt("ngModelChange",function(o){t.eBV(e);const i=t.XpG();return t.Njj(i.customFrom=o)}),t.k0s(),t.j41(2,"span",70),t.EFF(3,"to"),t.k0s(),t.j41(4,"input",71),t.bIt("ngModelChange",function(o){t.eBV(e);const i=t.XpG();return t.Njj(i.customTo=o)}),t.k0s(),t.j41(5,"button",72),t.EFF(6,"Apply"),t.k0s()()}if(2&a){const e=t.XpG();t.R7$(1),t.Y8G("ngModel",e.customFrom),t.R7$(3),t.Y8G("ngModel",e.customTo)}}function Et(a,r){if(1&a&&(t.j41(0,"div",73),t.EFF(1),t.k0s()),2&a){const e=t.XpG();t.R7$(1),t.JRh(e.rangeError)}}function Tt(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",74),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.focusPeakDay())})("keyup.enter",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.focusPeakDay())}),t.j41(1,"span",14),t.EFF(2,"Busiest day"),t.k0s(),t.j41(3,"span",15),t.EFF(4),t.nI1(5,"num"),t.k0s(),t.j41(6,"span",16),t.EFF(7),t.nrm(8,"i",75),t.k0s()()}if(2&a){const e=t.XpG();t.R7$(4),t.JRh(t.bMT(5,2,e.stats.peakQuota)),t.R7$(3),t.SpI("",e.formatDay(e.stats.peakDay)," ")}}function jt(a,r){1&a&&(t.j41(0,"div",13)(1,"span",14),t.EFF(2,"Busiest day"),t.k0s(),t.j41(3,"span",15),t.EFF(4,"\u2014"),t.k0s(),t.j41(5,"span",16),t.EFF(6,"no activity yet"),t.k0s()())}function Rt(a,r){if(1&a&&(t.j41(0,"span",78),t.nrm(1,"span",79),t.EFF(2),t.k0s()),2&a){const e=r.$implicit;t.R7$(1),t.xc7("background",e.color),t.R7$(1),t.SpI("",e.label," ")}}function $t(a,r){if(1&a&&(t.j41(0,"div",76),t.DNE(1,Rt,3,3,"span",77),t.k0s()),2&a){const e=t.XpG();t.R7$(1),t.Y8G("ngForOf",e.chartSeries)}}function It(a,r){if(1&a&&(t.j41(0,"div",76)(1,"span",78),t.nrm(2,"span",79),t.EFF(3),t.k0s()()),2&a){const e=t.XpG();t.R7$(2),t.xc7("background",e.chartSeries[0].color),t.R7$(1),t.SpI("",e.chartSeries[0].label," ")}}function Dt(a,r){1&a&&(t.j41(0,"div",80),t.nrm(1,"div",81),t.k0s())}function Ut(a,r){1&a&&(t.j41(0,"div",80)(1,"span",82),t.EFF(2,"No quota was consumed in this range."),t.k0s()())}function St(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",80)(1,"span",82),t.EFF(2),t.j41(3,"button",83),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.retry())}),t.EFF(4,"Retry"),t.k0s()()()}if(2&a){const e=t.XpG();t.R7$(2),t.SpI("",e.loadError," ")}}function Gt(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",84),t.nrm(1,"i",85),t.EFF(2),t.nI1(3,"num"),t.nI1(4,"num"),t.j41(5,"button",86),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.loadMore())}),t.EFF(6),t.k0s(),t.EFF(7," or choose a shorter range. "),t.k0s()}if(2&a){const e=t.XpG();t.R7$(2),t.Lme(" Showing the first ",t.bMT(3,4,e.calls.length)," of ",t.bMT(4,6,e.numFound)," calls in this range. Totals cover what is loaded. "),t.R7$(3),t.Y8G("disabled",e.loading),t.R7$(1),t.SpI(" ",e.loading?"Loading\u2026":"Load the rest"," ")}}function Nt(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",87)(1,"span",88),t.nrm(2,"i",89),t.EFF(3),t.j41(4,"button",90),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.clearDay())}),t.EFF(5,"\xd7"),t.k0s()(),t.j41(6,"span",91),t.EFF(7),t.nI1(8,"num"),t.nI1(9,"num"),t.k0s()()}if(2&a){const e=t.XpG();t.R7$(3),t.SpI(" ",e.formatDay(e.selectedDay,!0)," "),t.R7$(4),t.E5c(" ",t.bMT(8,4,e.focusQuota)," quota across ",t.bMT(9,6,e.focusCallCount)," ",1===e.focusCallCount?"call":"calls",". The lists and log below show this day only. ")}}function Qt(a,r){if(1&a&&(t.j41(0,"div",101)(1,"div",102)(2,"span",103),t.EFF(3),t.k0s(),t.j41(4,"span",104),t.EFF(5),t.k0s(),t.j41(6,"span",105),t.EFF(7),t.nI1(8,"num"),t.k0s(),t.j41(9,"span",106),t.EFF(10),t.nI1(11,"num"),t.k0s()(),t.j41(12,"div",107),t.nrm(13,"div",108),t.k0s()()),2&a){const e=r.$implicit;t.R7$(2),t.Y8G("title",e.label),t.R7$(1),t.JRh(e.label),t.R7$(1),t.xc7("--type-color",e.color),t.R7$(1),t.JRh(e.sublabel),t.R7$(2),t.Lme("",t.bMT(8,12,e.calls)," ",1===e.calls?"call":"calls",""),t.R7$(3),t.JRh(t.bMT(11,14,e.quota)),t.R7$(3),t.xc7("width",e.barPct,"%")("background",e.color)}}function Yt(a,r){if(1&a&&(t.j41(0,"div",99),t.DNE(1,Qt,14,16,"div",100),t.k0s()),2&a){const e=t.XpG(2);t.R7$(1),t.Y8G("ngForOf",e.topConsumers)}}function Bt(a,r){1&a&&(t.j41(0,"div",109),t.EFF(1,"No entity lookups in this selection."),t.k0s())}function Lt(a,r){if(1&a&&t.nrm(0,"span",112),2&a){const e=t.XpG().$implicit;t.xc7("background",e.color)}}function qt(a,r){if(1&a&&(t.j41(0,"div",101)(1,"div",102)(2,"span",103),t.DNE(3,Lt,1,2,"span",110),t.EFF(4),t.k0s(),t.j41(5,"span",105),t.EFF(6),t.nI1(7,"num"),t.k0s(),t.j41(8,"span",111),t.EFF(9),t.k0s(),t.j41(10,"span",106),t.EFF(11),t.nI1(12,"num"),t.k0s()(),t.j41(13,"div",107),t.nrm(14,"div",108),t.k0s()()),2&a){const e=r.$implicit;t.R7$(2),t.Y8G("title",e.label),t.R7$(1),t.Y8G("ngIf",e.color),t.R7$(1),t.SpI("",e.label," "),t.R7$(2),t.Lme("",t.bMT(7,11,e.calls)," ",1===e.calls?"call":"calls",""),t.R7$(3),t.SpI("",e.sharePct,"%"),t.R7$(2),t.JRh(t.bMT(12,13,e.quota)),t.R7$(3),t.xc7("width",e.barPct,"%")("background",e.color||"#2652b2")}}function Vt(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",92)(1,"div",93)(2,"div",94)(3,"span",95),t.EFF(4,"Top consumers"),t.k0s(),t.j41(5,"span",96
1),t.EFF(6),t.k0s()(),t.DNE(7,Yt,2,1,"div",97),t.DNE(8,Bt,2,0,"div",98),t.k0s(),t.j41(9,"div",93)(10,"div",94)(11,"span",95),t.EFF(12,"Breakdown"),t.k0s(),t.j41(13,"div",23)(14,"button",8),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.setBreakdownTab("type"))}),t.EFF(15,"Type"),t.k0s(),t.j41(16,"button",8),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.setBreakdownTab("operation"))}),t.EFF(17,"Operation"),t.k0s(),t.j41(18,"button",8),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.setBreakdownTab("user"))}),t.EFF(19,"User"),t.k0s()()(),t.j41(20,"div",99),t.DNE(21,qt,15,15,"div",100),t.k0s()()()}if(2&a){const e=t.XpG();t.R7$(6),t.JRh(e.selectedDay?"on "+e.formatDay(e.selectedDay):"in range"),t.R7$(1),t.Y8G("ngIf",e.topConsumers.length>0),t.R7$(1),t.Y8G("ngIf",0===e.topConsumers.length),t.R7$(6),t.AVh("active","type"===e.breakdownTab),t.R7$(2),t.AVh("active","operation"===e.breakdownTab),t.R7$(2),t.AVh("active","user"===e.breakdownTab),t.R7$(3),t.Y8G("ngForOf",e.breakdown)}}function At(a,r){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"num"),t.k0s()),2&a){const e=t.XpG();t.R7$(1),t.SpI("(",t.bMT(2,1,e.filteredCalls.length),")")}}function zt(a,r){if(1&a&&(t.j41(0,"option",113),t.EFF(1),t.k0s()),2&a){const e=r.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(1),t.JRh(n.typeLabel(e))}}function Xt(a,r){if(1&a&&(t.j41(0,"option",113),t.EFF(1),t.k0s()),2&a){const e=r.$implicit;t.Y8G("value",e),t.R7$(1),t.JRh(e)}}function Jt(a,r){if(1&a&&(t.j41(0,"option",113),t.EFF(1),t.k0s()),2&a){const e=r.$implicit;t.Y8G("value",e),t.R7$(1),t.JRh(e)}}function Kt(a,r){if(1&a){const e=t.RV6();t.j41(0,"span",88),t.EFF(1),t.j41(2,"button",90),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.clearDay())}),t.EFF(3,"\xd7"),t.k0s()()}if(2&a){const e=t.XpG();t.R7$(1),t.SpI(" ",e.formatDay(e.selectedDay)," ")}}function Ht(a,r){if(1&a){const e=t.RV6();t.j41(0,"button",114),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.clearLogFilters())}),t.EFF(1," Clear "),t.k0s()}}function Zt(a,r){if(1&a&&(t.qex(0),t.j41(1,"a",137)(2,"span",138),t.EFF(3),t.k0s(),t.nrm(4,"i",139),t.k0s(),t.bVm()),2&a){const e=t.XpG().$implicit;t.R7$(1),t.Y8G("routerLink",e.routerLink)("queryParams",e.queryParams)("title","Open "+e.target+" in Insight"),t.R7$(2),t.JRh(e.target||"\u2014")}}function Wt(a,r){if(1&a&&(t.j41(0,"span",140),t.EFF(1),t.k0s()),2&a){const e=t.XpG().$implicit;t.Y8G("title",e.target),t.R7$(1),t.JRh(e.target||"\u2014")}}function te(a,r){if(1&a&&(t.j41(0,"span",142)(1,"span",143),t.EFF(2),t.k0s(),t.j41(3,"span",144),t.EFF(4),t.k0s()()),2&a){const e=r.$implicit;t.R7$(2),t.JRh(e.key),t.R7$(2),t.JRh(e.value)}}function ee(a,r){if(1&a&&(t.qex(0),t.DNE(1,te,5,2,"span",141),t.bVm()),2&a){const e=t.XpG().$implicit;t.R7$(1),t.Y8G("ngForOf",e.params)}}function ne(a,r){1&a&&(t.j41(0,"span",145),t.EFF(1,"\u2014"),t.k0s())}function oe(a,r){if(1&a&&(t.j41(0,"tr")(1,"td",125)(2,"span",126),t.EFF(3),t.k0s(),t.j41(4,"span",127),t.EFF(5),t.k0s()(),t.j41(6,"td",128),t.EFF(7),t.k0s(),t.j41(8,"td",129)(9,"span",130),t.EFF(10),t.k0s()(),t.j41(11,"td",120)(12,"span",104),t.EFF(13),t.k0s()(),t.j41(14,"td",131),t.DNE(15,Zt,5,4,"ng-container",132),t.DNE(16,Wt,2,2,"ng-template",null,133,t.C5r),t.k0s(),t.j41(18,"td",134),t.DNE(19,ee,2,1,"ng-container",132),t.DNE(20,ne,2,0,"ng-template",null,135,t.C5r),t.k0s(),t.j41(22,"td",136),t.EFF(23),t.nI1(24,"num"),t.k0s()()),2&a){const e=r.$implicit,n=t.sdS(17),o=t.sdS(21),i=t.XpG(2);t.R7$(3),t.JRh(i.formatDay(e.day)),t.R7$(2),t.JRh(e.time),t.R7$(1),t.Y8G("title",e.user),t.R7$(1),t.JRh(e.user),t.R7$(2),t.Y8G("ngClass",i.operationKind(e.operation)),t.R7$(1),t.JRh(e.operation),t.R7$(2),t.xc7("--type-color",i.typeColor(e.type)),t.R7$(1),t.JRh(i.typeLabel(e.type)),t.R7$(2),t.Y8G("ngIf",e.routerLink)("ngIfElse",n),t.R7$(3),t.Y8G("title",e.paramsText),t.R7$(1),t.Y8G("ngIf",e.params.length)("ngIfElse",o),t.R7$(4),t.JRh(t.bMT(24,15,e.quota))}}function ae(a,r){if(1&a){const e=t.RV6();t.j41(0,"table",115)(1,"thead")(2,"tr")(3,"th",116),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.sortBy("date"))}),t.EFF(4," Time (UTC) "),t.nrm(5,"i",117),t.k0s(),t.j41(6,"th",118),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.sortBy("user"))}),t.EFF(7," User "),t.nrm(8,"i",117),t.k0s(),t.j41(9,"th",119),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.sortBy("operation"))}),t.EFF(10," Operation "),t.nrm(11,"i",117),t.k0s(),t.j41(12,"th",120),t.EFF(13,"Type"),t.k0s(),t.j41(14,"th",121),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.sortBy("target"))}),t.EFF(15," Target "),t.nrm(16,"i",117),t.k0s(),t.j41(17,"th",122),t.EFF(18,"Parameters"),t.k0s(),t.j41(19,"th",123),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.sortBy("quota"))}),t.EFF(20," Quota "),t.nrm(21,"i",117),t.k0s()()(),t.j41(22,"tbody"),t.DNE(23,oe,25,17,"tr",124),t.k0s()()}if(2&a){const e=t.XpG();t.R7$(3),t.AVh("sorted","date"===e.sortKey),t.R7$(2),t.Y8G("ngClass","date"===e.sortKey?e.sortDesc?"fa-caret-down":"fa-caret-up":"fa-sort"),t.R7$(1),t.AVh("sorted","user"===e.sortKey),t.R7$(2),t.Y8G("ngClass","user"===e.sortKey?e.sortDesc?"fa-caret-down":"fa-caret-up":"fa-sort"),t.R7$(1),t.AVh("sorted","operation"===e.sortKey),t.R7$(2),t.Y8G("ngClass","operation"===e.sortKey?e.sortDesc?"fa-caret-down":"fa-caret-up":"fa-sort"),t.R7$(3),t.AVh("sorted","target"===e.sortKey),t.R7$(2),t.Y8G("ngClass","target"===e.sortKey?e.sortDesc?"fa-caret-down":"fa-caret-up":"fa-sort"),t.R7$(3),t.AVh("sorted","quota"===e.sortKey),t.R7$(2),t.Y8G("ngClass","quota"===e.sortKey?e.sortDesc?"fa-caret-down":"fa-caret-up":"fa-sort"),t.R7$(2),t.Y8G("ngForOf",e.pagedCalls)("ngForTrackBy",e.trackByCall)}}
1function ie(a,r){1&a&&(t.qex(0),t.EFF(1,"No quota was consumed in this range."),t.bVm())}function se(a,r){if(1&a){const e=t.RV6();t.qex(0),t.EFF(1," No calls match these filters. "),t.j41(2,"button",83),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.clearLogFilters())}),t.EFF(3,"Clear filters"),t.k0s(),t.bVm()}}function re(a,r){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const e=t.XpG(2);t.R7$(1),t.JRh(e.loadError)}}function le(a,r){if(1&a&&(t.j41(0,"div",146),t.DNE(1,ie,2,0,"ng-container",33),t.DNE(2,se,4,0,"ng-container",33),t.DNE(3,re,2,1,"ng-container",33),t.k0s()),2&a){const e=t.XpG();t.R7$(1),t.Y8G("ngIf",0===e.calls.length&&!e.loadError),t.R7$(1),t.Y8G("ngIf",e.calls.length>0),t.R7$(1),t.Y8G("ngIf",e.loadError)}}function ce(a,r){1&a&&(t.j41(0,"div",146),t.nrm(1,"div",147),t.k0s())}function de(a,r){if(1&a&&(t.j41(0,"span",164),t.EFF(1),t.nI1(2,"num"),t.k0s()),2&a){const e=t.XpG(2);t.R7$(1),t.SpI("(filtered from ",t.bMT(2,1,e.calls.length),")")}}function pe(a,r){if(1&a&&(t.j41(0,"option",165),t.EFF(1),t.k0s()),2&a){const e=r.$implicit;t.Y8G("ngValue",e),t.R7$(1),t.JRh(e)}}function ge(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",148)(1,"div",149),t.EFF(2),t.nI1(3,"num"),t.nI1(4,"num"),t.nI1(5,"num"),t.DNE(6,de,3,3,"span",150),t.k0s(),t.j41(7,"div",151)(8,"label",152)(9,"span"),t.EFF(10,"Rows"),t.k0s(),t.j41(11,"select",153),t.bIt("ngModelChange",function(o){t.eBV(e);const i=t.XpG();return t.Njj(i.setPageSize(o))}),t.DNE(12,pe,2,2,"option",154),t.k0s()(),t.j41(13,"button",155),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.goToPage(1))}),t.nrm(14,"i",156),t.k0s(),t.j41(15,"button",157),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.goToPage(o.page-1))}),t.nrm(16,"i",158),t.k0s(),t.j41(17,"span",159),t.EFF(18),t.nI1(19,"num"),t.nI1(20,"num"),t.k0s(),t.j41(21,"button",160),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.goToPage(o.page+1))}),t.nrm(22,"i",161),t.k0s(),t.j41(23,"button",162),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.goToPage(o.pageCount))}),t.nrm(24,"i",163),t.k0s()()()}if(2&a){const e=t.XpG();t.R7$(2),t.E5c(" ",t.bMT(3,12,e.pageStart),"\u2013",t.bMT(4,14,e.pageEnd)," of ",t.bMT(5,16,e.filteredCalls.length)," "),t.R7$(4),t.Y8G("ngIf",e.hasLogFilters),t.R7$(5),t.Y8G("ngModel",e.pageSize),t.R7$(1),t.Y8G("ngForOf",e.pageSizes),t.R7$(1),t.Y8G("disabled",1===e.page),t.R7$(2),t.Y8G("disabled",1===e.page),t.R7$(3),t.Lme("Page ",t.bMT(19,18,e.page)," of ",t.bMT(20,20,e.pageCount),""),t.R7$(3),t.Y8G("disabled",e.page===e.pageCount),t.R7$(2),t.Y8G("disabled",e.page===e.pageCount)}}const he=new Set(["reportid","facetreportid","widgetid","bulkuploadreportid","bulkuploadtype","client","clientid","issecurerequest","issecuredrequest","isasync","callback","nocache","pretty","format","download","mrttype","servicetype","providerid","apikey","token","start","limit","offset","facet","facetconfig","ip","cc","userid","filepath","s3uri","notfoundlisturi","notfoundlist","foundlist","status","endtime","quotaconsumed","_"]),me=["appId","adDomain","domain","bundleId","importedFileName","fileName"],_e={appid:"App ID",addomain:"Domain",domain:"Domain",bundleid:"Bundle ID",country:"Country",countrycode:"Country",region:"Region",month:"Month",date:"Date",epoch:"Epoch",devicetype:"Device",device:"Device",os:"OS",platformname:"Platform",genre:"Genre",category:"Category",channel:"Channel",appstore:"App Store",widget:"Widget",includespoofing:"Spoofing",includesubdomains:"Subdomains",importedfilename:"File",total:"Rows",found:"Found",notfound:"Not found",totalcombinationsfound:"Combinations",sortby:"Sort",iscreatorcontent:"Creator content",toptimeofday:"Top Time of Day"},v={apps:"#2652b2",ctv:"#eb6834",domains:"#1baf7a",other:"#898781"},be=["#2652b2","#eb6834","#1baf7a","#eda100"],M={apps:"Apps",ctv:"CTV",domains:"Domains",other:"Other"};let Ce=(()=>{class a{constructor(e){this._quotaService=e,this.rangePreset=30,this.customFrom="",this.customTo="",this.rangeError="",this.appliedFrom="",this.appliedTo="",this.calls=[],this.numFound=0,this.loading=!1,this.loadError="",this.stackBy="type",this.chartDays=[],this.chartSeries=[],this.selectedDay=null,this.stats={quota:0,calls:0,perDay:0,activeDays:0,peakDay:"",peakQuota:0},this.topConsumers=[],this.breakdownTab="type",this.breakdown=[],this.search="",this.logType="",this.logOperation="",this.logUser="",this.sortKey="date",this.sortDe
1sc=!0,this.page=1,this.pageSize=50,this.pageSizes=[25,50,100],this.filteredCalls=[],this.pagedCalls=[],this.typeOptions=[],this.operationOptions=[],this.userOptions=[],this.maxRangeDays=90,this.typeLabels=M}ngOnInit(){this.getQuotaUsage(),this.setPreset(30)}getQuotaUsage(){this._quotaService.getQuotaUsage().then(e=>{this.accountBalance=e.accountBalance})}percentConsumed(e){const n=Number(e["Display Quota"]),o=Number(e.Consumed);return!n||n<=0||isNaN(o)?0:Math.min(100,Math.round(o/n*100))}alertLevel(e){return e>=90?"critical":e>=75?"warning":null}get balanceByUrgency(){return this.accountBalance&&this.accountBalance.length?[...this.accountBalance].sort((e,n)=>this.percentConsumed(n)-this.percentConsumed(e)):[]}parsePeriodDate(e){if(!e)return null;const n=new Date(e.replace(" ","T"));return isNaN(n.getTime())?null:n}daysLeft(e){const n=this.parsePeriodDate(e["Quota End Date"]);return n?Math.max(0,Math.ceil((n.getTime()-Date.now())/864e5)):null}projection(e){const n=this.parsePeriodDate(e["Quota Start Date"]),o=this.parsePeriodDate(e["Quota End Date"]),i=Number(e["Display Quota"]),s=Number(e.Consumed);if(!n||!o||!i||i<=0||isNaN(s))return null;const l=Date.now()-n.getTime(),c=o.getTime()-n.getTime();if(l<864e5||c<=0||s<=0)return null;const d=s/l,p=d*c,g=Math.round(p/i*100);if(p>i){const y=n.getTime()+i/d,_=new Date(Math.min(y,o.getTime())),f=Math.ceil((_.getTime()-Date.now())/864e5);let k;return k=f<=0?"today at this pace":1===f?"tomorrow at this pace":`around ${this.formatDay(_.toISOString().slice(0,10))}`,{status:"critical",exhausts:!0,runOutLabel:k,projectedPercent:g}}return{status:g>=75?"warning":"ok",exhausts:!1,projectedPercent:g}}formatPeriodDate(e){if(!e)return"N/A";const n=/^\d{4}-\d{2}-\d{2}/.exec(e);return n?this.formatDay(n[0]):e}setPreset(e){if(this.rangePreset=e,this.rangeError="","custom"===e)return this.customFrom=this.appliedFrom,void(this.customTo=this.appliedTo);const n=this.todayUtc(),o=new Date(n.getTime()-864e5*(e-1));this.load(o.toISOString().slice(0,10),n.toISOString().slice(0,10))}applyCustomRange(){if(this.rangeError="",!this.customFrom||!this.customTo)return void(this.rangeError="Choose both a start and an end date.");const e=new Date(`${this.customFrom}T00:00:00Z`),n=new Date(`${this.customTo}T00:00:00Z`);if(isNaN(e.getTime())||isNaN(n.getTime()))return void(this.rangeError="Enter valid dates.");if(e>n)return void(this.rangeError="The start date must be on or before the end date.");const o=Math.round((n.getTime()-e.getTime())/864e5)+1;o>90?this.rangeError=`Choose 90 days or fewer (that range is ${o}).`:this.load(this.customFrom,this.customTo)}get rangeLabel(){return this.appliedFrom?`${this.formatDay(this.appliedFrom)} \u2013 ${this.formatDay(this.appliedTo)}`:""}get rangeDayCount(){return this.appliedFrom&&this.appliedTo?this.dayList(this.appliedFrom,this.appliedTo).length:0}todayUtc(){const e=new Date;return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))}load(e,n){this.appliedFrom=e,this.appliedTo=n,this.calls=[],this.numFound=0,this.selectedDay=null,this.page=1,this.loadError="",this.loading=!0,this.recompute(),this.fetch()}fetch(){const e={fromDate:this.appliedFrom,toDate:this.appliedTo},n=this.appliedFrom;this.loading=!0,this._quotaService.getActivityLogs(this.calls.length,5e3,e).then(o=>{if(n!==this.appliedFrom)return;const s=this.calls.length;this.calls=this.calls.concat((o&&o.docs||[]).map((l,c)=>this.normalise(l,s+c))),this.numFound=Number(o&&o.numFound)||this.calls.length,this.loading=!1,this.recompute()}).catch(()=>{this.loading=!1,this.loadError="The activity log could not be loaded. Try again."})}get hasMore(){return this.numFound>this.calls.length}loadMore(){!this.loading&&this.hasMore&&this.fetch()}retry(){this.load(this.appliedFrom,this.appliedTo)}normalise(e,n){const o=e.params||{},i=o.q?this.getQueryMapping(o.q):{},s={};
1Object.keys(i).forEach(f=>{i[f]&&(s[f]=i[f])}),Object.keys(o).forEach(f=>{if("q"===f)return;const k=this.formatParamValue(o[f]);""!==k&&(s[f]=k)});let l="";for(const f of me)if(s[f]){l=s[f];break}const c=Object.keys(s).filter(f=>this.isUserParam(f)&&s[f]!==l).map(f=>({key:this.paramLabel(f),value:s[f]})),d=Number(e.dateInMills)||0,p=this.dayKey(e),g=String(e.date||""),_={id:n,millis:d,day:p,time:d>0?new Date(d).toISOString().slice(11,16):g.length>=16?g.slice(11,16):"",user:String(e.user||""),operation:String(e.operation||""),type:String(e.mrtType||"other"),target:l,quota:Number(e.quotaConsumed)||0,params:c,paramsText:c.map(f=>`${f.key}: ${f.value}`).join(" \xb7 "),searchText:""};return _.searchText=[_.user,_.operation,_.type,_.target,_.paramsText].join(" ").toLowerCase(),"Insight UI"===_.operation&&o.q&&this.attachRouterLink(_,e,i),_}attachRouterLink(e,n,o){const i=["/insight",n.mrtType],s={};let l=[];switch(n.mrtType){case"apps":l=["appId","region","os","deviceType"];break;case"ctv":l=["appId","region","device"],n.params.includeSpoofing&&n.params.includeSpoofing[0]&&(s.includeAppSpoofing=n.params.includeSpoofing[0]);break;case"domains":l=["adDomain","countryCode","deviceType"];break;default:return}l.forEach(c=>i.push(o[c])),["country","month"].forEach(c=>{o[c]&&(s[c]=o[c])}),e.routerLink=i,e.queryParams=s}isUserParam(e){return!he.has(e.toLowerCase())}paramLabel(e){const n=_e[e.toLowerCase()];if(n)return n;const o=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ");return o.charAt(0).toUpperCase()+o.slice(1)}formatParamValue(e){return null==e?"":Array.isArray(e)?e.map(n=>this.formatParamValue(n)).filter(n=>""!==n).join(", "):"object"==typeof e?JSON.stringify(e):String(e)}dayKey(e){const n=Number(e.dateInMills);if(n&&!isNaN(n))return new Date(n).toISOString().slice(0,10);const o=String(e.date||"");return/^\d{4}-\d{2}-\d{2}/.test(o)?o.slice(0,10):""}getQueryMapping(e){const n={};return String(e).replace(/^WHERE|\s|'/g,"").split("AND").forEach(o=>{const[i,s]=o.split("=");i&&(n[i]=s)}),n}recompute(){this.buildOptions(),this.buildChart(),this.buildStats(),this.buildTopConsumers(),this.buildBreakdown(),this.buildLog()}buildOptions(){const e=new Set,n=new Set,o=new Set;this.calls.forEach(i=>{e.add(i.type),n.add(i.operation),o.add(i.user)}),this.typeOptions=Array.from(e).sort(),this.operationOptions=Array.from(n).sort(),this.userOptions=Array.from(o).sort()}get rangeCalls(){return this.calls}get focusCalls(){return this.selectedDay?this.calls.filter(e=>e.day===this.selectedDay):this.calls}dimensionOf(e,n){switch(n){case"operation":return e.operation||"Unknown";case"user":return e.user||"Unknown";default:return e.type||"other"}}buildSeries(e){if("type"===e){const c=new Set(this.rangeCalls.map(g=>g.type)),d=["apps","ctv","domains"].filter(g=>c.has(g)).map(g=>({key:g,label:M[g],color:v[g]}));return Array.from(c).some(g=>!["apps","ctv","domains"].includes(g))&&d.push({key:"other",label:"Other",color:v.other}),{series:d,keyFor:g=>v[g.type]&&"other"!==g.type?g.type:"other"}}const n=new Map;this.rangeCalls.forEach(c=>{const d=this.dimensionOf(c,e);n.set(d,(n.get(d)||0)+c.quota)});const o=Array.from(n.entries()).sort((c,d)=>d[1]-c[1]||(c[0]<d[0]?-1:1)).map(c=>c[0]),i=o.slice(0,4),s=i.map((c,d)=>({key:c,label:c,color:be[d]}));o.length>4&&s.push({key:"__other",label:"Other",color:"#898781"});const l=new Set(i);return{series:s,keyFor:c=>{const d=this.dimensionOf(c,e);return l.has(d)?d:"__other"}}}buildChart(){const{series:e,keyFor:n}=this.buildSeries(this.stackBy);this.chartSeries=e;const o=new Map;this.dayList(this.appliedFrom,this.appliedTo).forEach(i=>{o.set(i,{day:i,total:0,values:{}})}),this.rangeCalls.forEach(i=>{if(!i.day)return;let s=o.get(i.day);s||(s={day:i.day,total:0,values:{}},o.set(i.day,s));const l=n(i);s.values[l]=(s.values[l]||0)+i.quota,s.total+=i.quota}),this.chartDays=Array.from(o.values()).sort((i,s)=>i.day<s.day?-1:1)}buildStats(){let e=0;const n=new Map;this.rangeCalls.forEach(l=>{e+=l.quota,n.set(l.day,(n.get(l.day)||0)+l.quota)});let o="",i=0;n.forEach((l,c)=>{l>i&&(i=l,o=c)});const s=Math.max(1,this.rangeDayCount);this.stats={quota:e,calls:this.rangeCalls.length,perDay:Math.round(e/s),activeDays:n.size,peakDay:o,peakQuota:i}}shareRows(e,n,o){const i=new Map;let s=0;e.forEach(d=>{const p=n(d);let g=i.get(p);g||(g={key:p,label:p,calls:0,quota:0,sharePct:0,barPct:0},i.set(p,g)),g.calls+=1,g.quota+=d.quota,s+=d.quota});const l=Array.from(i.values()).sort((d,p)=>p.quota-d.quota||p.calls-d.calls).slice(0,o),c=l.length?l[0].quota:0;return l.forEach(d=>{d.sharePct=s>0?Math.round(d.quota/s*100):0,d.barPct=c>0?d.quota/c*100:0}),l}buildTopConsumers(){const e=this.focusCalls.filter(n=>n.target);this.topConsumers=this.shareRows(e,n=>`${n.type}|${n.target}`,8).map(n=>{const[o,i]=n.key.split("|");return{...n,label:i,sublabel:M[o]||o,color:v[o]||v.other}}
1)}buildBreakdown(){const e=this.breakdownTab;this.breakdown=this.shareRows(this.focusCalls,n=>this.dimensionOf(n,e),8).map(n=>({...n,label:"type"===e&&M[n.key]||n.key,color:"type"===e?v[n.key]||v.other:void 0}))}buildLog(){const e=this.search.trim().toLowerCase();let n=this.calls.filter(c=>!(this.selectedDay&&c.day!==this.selectedDay||this.logType&&c.type!==this.logType||this.logOperation&&c.operation!==this.logOperation||this.logUser&&c.user!==this.logUser||e&&-1===c.searchText.indexOf(e)));const o=this.sortDesc?-1:1,i=this.sortKey;n=n.sort((c,d)=>{let p=0;if("date"===i)p=c.millis-d.millis;else if("quota"===i)p=c.quota-d.quota;else{const g=String(c[i]||"").toLowerCase(),y=String(d[i]||"").toLowerCase();p=g<y?-1:g>y?1:0}return 0===p?(p=d.millis-c.millis,p):p*o}),this.filteredCalls=n;const s=Math.max(1,Math.ceil(n.length/this.pageSize));this.page=Math.min(Math.max(1,this.page),s);const l=(this.page-1)*this.pageSize;this.pagedCalls=n.slice(l,l+this.pageSize)}setStackBy(e){this.stackBy!==e&&(this.stackBy=e,this.buildChart())}setBreakdownTab(e){this.breakdownTab!==e&&(this.breakdownTab=e,this.buildBreakdown())}onDayClick(e){this.selectedDay=this.selectedDay===e?null:e,this.page=1,this.buildTopConsumers(),this.buildBreakdown(),this.buildLog()}clearDay(){this.selectedDay&&this.onDayClick(this.selectedDay)}focusPeakDay(){this.stats.peakDay&&(this.selectedDay=null,this.onDayClick(this.stats.peakDay))}onLogFilterChange(){this.page=1,this.buildLog()}clearLogFilters(){this.search="",this.logType="",this.logOperation="",this.logUser="",this.selectedDay=null,this.page=1,this.buildTopConsumers(),this.buildBreakdown(),this.buildLog()}get hasLogFilters(){return!!(this.search||this.logType||this.logOperation||this.logUser||this.selectedDay)}sortBy(e){this.sortKey===e?this.sortDesc=!this.sortDesc:(this.sortKey=e,this.sortDesc="date"===e||"quota"===e),this.buildLog()}setPageSize(e){this.pageSize=Number(e)||50,this.page=1,this.buildLog()}get pageCount(){return Math.max(1,Math.ceil(this.filteredCalls.length/this.pageSize))}get pageStart(){return this.filteredCalls.length?(this.page-1)*this.pageSize+1:0}get pageEnd(){return Math.min(this.page*this.pageSize,this.filteredCalls.length)}goToPage(e){const n=Math.min(Math.max(1,e),this.pageCount);n!==this.page&&(this.page=n,this.buildLog())}get focusQuota(){return this.focusCalls.reduce((e,n)=>e+n.quota,0)}get focusCallCount(){return this.focusCalls.length}operationKind(e){const n=(e||"").toLowerCase();return-1!==n.indexOf("import")?"import":-1!==n.indexOf("download")?"download":-1!==n.indexOf("api")?"api":"ui"}typeColor(e){return v[e]||v.other}typeLabel(e){return M[e]||e}trackByCall(e,n){return n.id}dayList(e,n){if(!e||!n)return[];const o=[],i=new Date(`${e}T00:00:00Z`),s=new Date(`${n}T00:00:00Z`);if(isNaN(i.getTime())||isNaN(s.getTime()))return[];for(;i<=s&&o.length<=91;)o.push(i.toISOString().slice(0,10)),i.setUTCDate(i.getUTCDate()+1);return o}formatDay(e,n=!1){const o=/^(\d{4})-(\d{2})-(\d{2})/.exec(e||"");if(!o)return e||"";const s=`${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][Number(o[2])-1]} ${Number(o[3])}`,l=String((new Date).getUTCFullYear());return n||o[1]!==l?`${s}, ${o[1]}`:s}exportCsv(){const e=this.filteredCalls;if(!e.length)return;const n=[];e.forEach(l=>{l.params.forEach(c=>{-1===n.indexOf(c.key)&&n.push(c.key)})});const o=["Date (UTC)","Time (UTC)","Timestamp (ms)","User","Type","Operation","Target","Quota Consumed",...n],i=e.map(l=>{const c={};return l.params.forEach(d=>c[d.key]=d.value),[l.day,l.time,l.millis,l.user,l.type,l.operation,l.target,l.quota,...n.map(d=>c[d])].map(d=>this.csvCell(d)).join(",")}),s=[o.map(l=>this.csvCell(l)).join(","),...i].join("\r\n");this.downloadCsv(s)}csvCell(e){if(null==e)return"";const n=String(e);return/[",\r\n]/.test(n)?`"${n.replace(/"/g,'""')}"`:n}downloadCsv(e){const n=`${this.appliedFrom}_${this.appliedTo}`,o=new Blob([e],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(o),s=document.createElement("a");s.href=i,s.download=`quota-activity-${n}.csv`,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)}static{this.\u0275fac=function(n){return new(n||a)(t.rXU(ct.E))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["quota-usage"]],decls:100,vars:65,consts:[[1,"quota-page"],[1,"title"],["data-loader","circle-side",1,"loading-icon","mx-auto",3,"hidden"],["class","quota-cards",4,"ngIf"],[1,"panel-head"],["class","panel-sub",4,"ngIf"],[1,"range-control"],["role","tablist","aria-label","Date range",1,"segmented"],["type","button",1,"segment",3,"click"],["class","custom-range",3,"ngSubmit",4,"ngIf"],["class","range-error",4,"ngIf"],[1,"panel"],[1,"stat-strip"],[1,"stat"],[1,"stat-label"],[1,"stat-value"],[1,"stat-note"],["class","stat stat-clickable","role","button","tabindex","0","title","Focus this day",3,"click","keyup.enter",4,"ngIf"],["class","stat",4,"ngIf"],[1,"chart-toolbar"],["class","legend",4,"ngIf"],[1,"stack-control"],[1,"stack-label"],[1,"segmented","small"],[1,"chart-wrap"],[3,"days","series","selectedDay","dayClick"],["class","chart-overlay",4,"ngIf"],["class","partial-note",4,"ngIf"],["class","focus-bar",4,"ngIf"],["class","lists",4,"ngIf"],[1,"panel-sub"],["type","button",1,"btn","btn-outline-primary","btn-sm","export-btn",3,"disabled","click"],["aria-hidden","true",1,"fa","fa-download","mr-1"],[4,"ngIf"],[1,"panel","log-panel"],[1,"log-toolbar"],[1,"log-search"],["aria-hidden","true",1,"fa","fa-search"],["type","search","placeholder","Search target, user or parameter","name","search",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],["name","logType","aria-label","Type",1,"form-control","form-control-sm","log-select",3,"ngModel","ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],["name","logOperation","aria-label","Operation",1,"form-control","form-control-sm","log-select",3,"ngModel","ngModelChange"],["name","logUser","aria-label","User",1,"form-control","form-control-sm","log-select","log-select-user",3,"ngModel","ngModelChange"],["class","focus-chip",4,"ngIf"],["type","button","class","btn btn-link btn-sm log-clear",3,"click",4,"ngIf"],[1,"log-table-wrap"],["class","log-table",4,"ngIf"],["class","log-empty",4,"ngIf"],["class","log-footer",4,"ngIf"],[1,"quota-cards"],["class","quota-card",3,"ngClass",4,"ngFor","ngForOf"],[1,"quota-card",3,"ngClass"],[1,"quota-card-head"],[1,"quota-card-entity"],[1,"quota-card-pct",3,"ngClass"],[1,"quota-card-remaining"],[1,"quota-card-remaining-value"],[1,"quota-card-remaining-label"],[1,"quota-bar"],[1,"quota-bar-fill",3,"ngClass"],[1,"quota-card-meta"],[1,"quota-card-footer"],[1,"quota-card-period"],["class","quota-card-dot",4,"ngIf"],[1,"quota-forecast",3,"ngClass"],["aria-hidden","true",1,"fa","mr-1",3,"ngClass"],[1,"quota-card-dot"],[1,"custom-range",3,"ngSubmit"],["type","date","name","customFrom","aria-label","From date (UTC)",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],[1,"custom-range-sep"],["type","date","name","customTo","aria-label","To date (UTC)",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary","btn-sm"],[1,"range-error"],["role","button","tabindex","0","title","Focus this day",1,"stat","stat-clickable",3,"click","keyup.enter"],["aria-hidden","true",1,"fa","fa-angle-right","ml-1"],[1,"legend"],["class","legend-item",4,"ngFor","ngForOf"],[1,"legend-item"],[1,"legend-swatch"],[1,"chart-overlay"],["data-loader","circle-side",1,"loading-icon"],[1,"chart-empty"],["type","button",1,"btn","btn-link","btn-sm","p-0","ml-1",3,"click"],[1,"partial-note"],["aria-hidden","true",1,"fa","fa-info-circle","mr-1"],["type","button",1,"btn","btn-link","btn-sm","p-0","ml-1",3,"disabled","click"],[1,"focus-bar"],[1,"focus-chip"],["aria-hidden","true",1,"fa","fa-calendar-o","mr-1"],["type","button","aria-label","Clear day focus",1,"focus-chip-clear",3,"click"],[1,"focus-text"],[1,"lists"],[1,"list-card"],[1,"list-head"],[1,"list-title"],[1,"list-sub"],["class","share-rows",4,"ngIf"],["class","list-empty",4,"ngIf"],[1,"share-rows"],["class","share-row",4,"ngFor","ngForOf"],[1,"share-row"],[1,"share-main"],[1,"share-label",3,"title"],[1,"type-badge"],[1,"share-calls"],[1,"share-quota"],[1,"share-track"],[1,"share-fill"],[1,"list-empty"],["class","share-dot",3,"background",4,"ngIf"],[1,"share-pct"],[1,"share-dot"],[3,"value"],["type","button",1,"btn","btn-link","btn-sm","log-clear",3,"click"],[1,"log-table"],[1,"col-time","sortable",3,"click"],["aria-hidden","true",1,"fa",3,"ngClass"],[1,"col-user","sortable",3,"click"],[1,"col-op","sortable",3,"click"],[1,"col-type"],[1,"col-target","sortable",3,"click"],[1,"col-params"],[1,"col-quota","sortable","text-right",3,"click"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"col-time"],[1,"log-day"],[1,"log-clock"],[1,"col-user","text-truncate",3,"title"],[1,"col-op"],[1,"op-badge",3,"ngClass"],[1,"col-target"],[4,"ngIf","ngIfElse"],["plain_target",""],[1,"col-params",3,"title"],["no_params",""],[1,"col-quota","text-right"],[1,"target-link",3,"routerLink","queryParams","title"],[1,"text-truncate"],["aria-hidden","true",1,"fa","fa-external-link"],[1,"target-text",3,"title"],["class","param",4,"ngFor","ngForOf"],[1,"param"],[1,"param-key"],[1,"param-value"],[1,"param-none"],[1,"log-empty"],["data-loader","circle-side",1,"loading-icon","mx-auto"],[1,"log-footer"],[1,"log-count"],["class","log-count-note",4,"ngIf"],[1,"log-pager"],[1,"page-size"],[1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],["type","button","aria-label","First page",1,"pager-btn",3,"disabled","click"],["aria-hidden","true",1,"fa","fa-angle-double-left"],["type","button","aria-label","Previous page",1,"pager-btn",3,"disabled","click"],["aria-hidden","true",1,"fa","fa-angle-left"],[1,"pager-state"],["type","button","aria-label","Next page",1,"pager-btn",3,"disabled","click"],["aria-hidden","true",1,"fa","fa-angle-right"],["type","button","aria-label","Last page",1,"pager-btn",3,"disabled","click"],["aria-hidden","true",1,"fa","fa-angle-double-right"],[1,"log-count-note"],[3,"ngValue"]],template:function(n,o){1&n&&(t.j41(0,"div",0)(1,"h2",1),t.EFF(2,"Quota Status"),t.k0s(),t.nrm(3,"div",2),t.DNE(4,Pt,2,1,"div",3),t.j41(5,"div",4)(6,"div")(7,"h2",1),t.EFF(8,"Usage History"),t.k0s(),t.DNE(9,Ot,2,1,"div",5),t.k0s(),t.j41(10,"div",6)(11,"div",7)(12,"button",8),t.bIt("click",function(){return o.setPreset(7)}),t.EFF(13,"7D"),t.k0s(),t.j41(14,"button",8),t.bIt("click",function(){return o.setPreset(30)}),t.EFF(15,"30D"),t.k0s(),t.j41(16,"button",8),t.bIt("click",function(){return o.setPreset(90)}),t.EFF(17,"90D"),t.k0s(),t.j41(18,"button",8),t.bIt("click",function(){return o.setPreset("custom")}),t.EFF(19,"Custom"),t.k0s()(),t.DNE(20,wt,7,2,"form",9),t.k0s()(),t.DNE(21,Et,2,1,"div",10),t.j41(22,"div",11)(23,"div",12)(24,"div",13)(25,"span",14),t.EFF(26,"Quota consumed"),t.k0s(),t.j41(27,"span",15),t.EFF(28),t.nI1(29,"num"),t.k0s(),t.j41(30,"span",16),t.EFF(31),t.nI1(32,"num"),t.k0s()(),t.j41(33,"div",13)(34,"span",14),t.EFF(35,"Average per day"),t.k0s(),t.j41(36,"span",15),t.EFF(37),t.nI1(38,"num"),t.k0s(),t.j41(39,"span",16),t.EFF(40),t.nI1(41,"num"),t.nI1(42,"num"),t.k0s()(),t.DNE(43,Tt,9,4,"div",17),t.DNE(44,jt,7,0,"div",18),t.k0s(),t.j41(45,"div",19),t.DNE(46,$t,2,1,"div",20),t.DNE(47,It,4,3,"div",20),t.j41(48,"div",21)(49,"span",22),t.EFF(50,"Stack by"),t.k0s(),t.j41(51,"div",23)(52,"button",8),t.bIt("click",function(){return o.setStackBy("type")}),t.EFF(53,"Type"),t.k0s(),t.j41(54,"button",8),t.bIt("click",function(){return o.setStackBy("operation")}),t.EFF(55,"Operation"),t.k0s(),t.j41(56,"button",8),t.bIt("click",function(){return o.setStackBy("user")}),t.EFF(57,"User"),t.k0s()()()(),t.j41(58,"div",24)(59,"quota-trend-chart",25),t.bIt("dayClick",function(s){return o.onDayCl
1ick(s)}),t.k0s(),t.DNE(60,Dt,2,0,"div",26),t.DNE(61,Ut,3,0,"div",26),t.DNE(62,St,5,1,"div",26),t.k0s(),t.DNE(63,Gt,8,8,"div",27),t.DNE(64,Nt,10,8,"div",28),t.DNE(65,Vt,22,10,"div",29),t.k0s(),t.j41(66,"div",4)(67,"div")(68,"h2",1),t.EFF(69,"Activity Log"),t.k0s(),t.j41(70,"div",30),t.EFF(71,"Every call that consumed quota, with the parameters it used"),t.k0s()(),t.j41(72,"button",31),t.bIt("click",function(){return o.exportCsv()}),t.nrm(73,"i",32),t.EFF(74,"Export CSV "),t.DNE(75,At,3,3,"span",33),t.k0s()(),t.j41(76,"div",34)(77,"div",35)(78,"div",36),t.nrm(79,"i",37),t.j41(80,"input",38),t.bIt("ngModelChange",function(s){return o.search=s})("ngModelChange",function(){return o.onLogFilterChange()}),t.k0s()(),t.j41(81,"select",39),t.bIt("ngModelChange",function(s){return o.logType=s})("ngModelChange",function(){return o.onLogFilterChange()}),t.j41(82,"option",40),t.EFF(83,"All types"),t.k0s(),t.DNE(84,zt,2,2,"option",41),t.k0s(),t.j41(85,"select",42),t.bIt("ngModelChange",function(s){return o.logOperation=s})("ngModelChange",function(){return o.onLogFilterChange()}),t.j41(86,"option",40),t.EFF(87,"All operations"),t.k0s(),t.DNE(88,Xt,2,2,"option",41),t.k0s(),t.j41(89,"select",43),t.bIt("ngModelChange",function(s){return o.logUser=s})("ngModelChange",function(){return o.onLogFilterChange()}),t.j41(90,"option",40),t.EFF(91,"All users"),t.k0s(),t.DNE(92,Jt,2,2,"option",41),t.k0s(),t.DNE(93,Kt,4,1,"span",44),t.DNE(94,Ht,2,0,"button",45),t.k0s(),t.j41(95,"div",46),t.DNE(96,ae,24,17,"table",47),t.DNE(97,le,4,3,"div",48),t.DNE(98,ce,2,0,"div",48),t.k0s(),t.DNE(99,ge,25,22,"div",49),t.k0s()()),2&n&&(t.R7$(3),t.Y8G("hidden",o.accountBalance),t.R7$(1),t.Y8G("ngIf",o.accountBalance),t.R7$(5),t.Y8G("ngIf",o.rangeLabel),t.R7$(3),t.AVh("active",7===o.rangePreset),t.R7$(2),t.AVh("active",30===o.rangePreset),t.R7$(2),t.AVh("active",90===o.rangePreset),t.R7$(2),t.AVh("active","custom"===o.rangePreset),t.R7$(2),t.Y8G("ngIf","custom"===o.rangePreset),t.R7$(1),t.Y8G("ngIf",o.rangeError),t.R7$(7),t.JRh(t.bMT(29,55,o.stats.quota)),t.R7$(3),t.Lme("across ",t.bMT(32,57,o.stats.calls)," ",1===o.stats.calls?"call":"calls",""),t.R7$(6),t.JRh(t.bMT(38,59,o.stats.perDay)),t.R7$(3),t.Lme("",t.bMT(41,61,o.stats.activeDays)," of ",t.bMT(42,63,o.rangeDayCount)," days had activity"),t.R7$(3),t.Y8G("ngIf",o.stats.peakDay),t.R7$(1),t.Y8G("ngIf",!o.stats.peakDay),t.R7$(2),t.Y8G("ngIf",o.chartSeries.length>1),t.R7$(1),t.Y8G("ngIf",1===o.chartSeries.length),t.R7$(5),t.AVh("active","type"===o.stackBy),t.R7$(2),t.AVh("active","operation"===o.stackBy),t.R7$(2),t.AVh("active","user"===o.stackBy),t.R7$(2),t.AVh("is-loading",o.loading&&0===o.calls.length),t.R7$(1),t.Y8G("days",o.chartDays)("series",o.chartSeries)("selectedDay",o.selectedDay),t.R7$(1),t.Y8G("ngIf",o.loading&&0===o.calls.length),t.R7$(1),t.Y8G("ngIf",!o.loading&&!o.loadError&&0===o.calls.length&&o.chartDays.length>0),t.R7$(1),t.Y8G("ngIf",o.loadError),t.R7$(1),t.Y8G("ngIf",o.hasMore),t.R7$(1),t.Y8G("ngIf",o.selectedDay),t.R7$(1),t.Y8G("ngIf",o.calls.length>0),t.R7$(7),t.Y8G("disabled",!o.filteredCalls.length),t.R7$(3),t.Y8G("ngIf",o.filteredCalls.length),t.R7$(5),t.Y8G("ngModel",o.search),t.R7$(1),t.Y8G("ngModel",o.logType),t.R7$(3),t.Y8G("ngForOf",o.typeOptions),t.R7$(1),t.Y8G("ngModel",o.logOperation),t.R7$(3),t.Y8G("ngForOf",o.operationOptions),t.R7$(1),t.Y8G("ngModel",o.logUser),t.R7$(3),t.Y8G("ngForOf",o.userOptions),t.R7$(1),t.Y8G("ngIf",o.selectedDay),t.R7$(1),t.Y8G("ngIf",o.hasLogFilters),t.R7$(2),t.Y8G("ngIf",o.pagedCalls.length>0),t.R7$(1),t.Y8G("ngIf",!o.loading&&0===o.pagedCalls.length),t.R7$(1),t.Y8G("ngIf",o.loading&&0===o.calls.length),t.R7$(1),t.Y8G("ngIf",o.filteredCalls.length>0))},dependencies:[m.YU,m.Sq,m.bT,u.qT,u.xH,u.y7,u.me,u.wz,u.BC,u.cb,u.vS,u.cV,b.Wk,vt,j.jE],styles:['@charset "UTF-8";.quota-page[_ngcontent-%COMP%]{padding-bottom:32px}.panel-head[_ngcontent-%COMP%]{align-items:flex-end;display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;margin-bottom:12px}.panel-head[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:2px}.panel-sub[_ngcontent-%COMP%]{color:#6b7280;font-size:.82rem}.panel[_ngcontent-%COMP%]{background:#fff;border:1px solid #e3e8ef;border-radius:10px;margin-bottom:28px;padding:20px 22px}.segmented[_ngcontent-%COMP%]{background:#f7f9fc;border:1px solid #e3e8ef;border-radius:8px;display:inline-flex;padding:3px}.segmented[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{background:transparent;border:0;border-radius:6px;color:#4b5563;cursor:pointer;font-size:.82rem;font-weight:600;line-height:1.2;padding:6px 12px;transition:background .12s ease,color .12s ease;width:auto}.segmented[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]:hover{color:#2652b2}.segmented[_ngcontent-%COMP%] .segment.active[_ngcontent-%COMP%]{background:#fff;box-shadow:0 1px 2px #0f172a1f;color:#2652b2}.segmented[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]:focus-visible{outline:2px solid rgba(38,82,178,.4);outline-offset:1px}.segmented.small[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{font-size:.75rem;padding:4px 10px}.range-control[_ngcontent-%COMP%]{align-items:center;display:flex;flex-wrap:wrap;gap:10px}.custom-range[_ngcontent-%COMP%]{align-items:center;display:flex;gap:8px}.custom-range[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{width:150px}.custom-range[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{width:auto}.custom-range-sep[_ngcontent-%COMP%]{color:#6b7280;font-size:.82rem}.range-error[_ngcontent-%COMP%]{color:#a12622;font-size:.82rem;margin:-6px 0 10px}.stat-strip[_ngcontent-%COMP%]{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:18px}.stat[_ngcontent-%COMP%]{border-left:3px solid #e3e8ef;display:flex;flex-direction:column;gap:2px;padding-left:14px}.stat.stat-clickable[_ngcontent-%COMP%]{border-radius:0 6px 6px 0;cursor:pointer;transition:background .12s ease}.stat.stat-clickable[_ngcontent-%COMP%]:hover{background:#f7f9fc;border-left-color:#2652b2}.stat-label[_ngcontent-%COMP%]{color:#6b7280;font-size:.75rem;font-weight:600;letter-spacing:.03em;text-transform:uppercase}.stat-value[_ngcontent-%COMP%]{color:#1f2937;font-size:1.6rem;font-weight:600;line-height:1.15}.stat-note[_ngcontent-%COMP%]{color:#6b7280;font-size:.78rem}.chart-toolbar[_ngcontent-%COMP%]{align-items:center;display:flex;flex-wrap:wrap;gap:10px 20px;justify-content:space-between;margin-bottom:14px}.legend[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 16px}.legend-item[_ngcontent-%COMP%]{align-items:center;color:#4b5563;display:inline-flex;font-size:.8rem;gap:6px}.legend-swatch[_ngcontent-%COMP%]{border-radius:3px;display:inline-block;height:10px;width:10px}.stack-control[_ngcontent-%COMP%]{align-items:center;display:flex;gap:8px}.stack-label[_ngcontent-%COMP%]{color:#6b7280;font-size:.75rem;font-weight:600;letter-spacing:.03em;text-transform:uppercase}.chart-wrap[_ngcontent-%COMP%]{position:relative}.chart-wrap.is-loading[_ngcontent-%COMP%] quota-trend-chart[_ngcontent-%COMP%]{opacity:.35}.chart-overlay[_ngcontent-%COMP%]{align-items:center;display:flex;inset:0 0 24px 48px;justify-content:center;pointer-events:none;position:absolute}.chart-overlay[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{pointer-events:auto;width:auto}.chart-empty[_ngcontent-%COMP%]{background:rgba(255,255,255,.9);border-radius:6px;color:#6b7280;font-size:.85rem;padding:6px 12px}.partial-note[_ngcontent-%COMP%]{background:#fff8e6;border:1px solid #f5dfa3;border-radius:8px;color:#8a5a00;font-size:.82rem;margin-top:16px;padding:8px 12px}.partial-note[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{color:#8a5a00;font-size:inherit;font-weight:600;text-decoration:underline;vertical-align:baseline;width:auto}
1.focus-bar[_ngcontent-%COMP%]{align-items:center;background:rgba(38,82,178,.06);border-radius:8px;display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;padding:8px 12px}.focus-chip[_ngcontent-%COMP%]{align-items:center;background:#2652b2;border-radius:999px;color:#fff;display:inline-flex;font-size:.78rem;font-weight:600;gap:4px;line-height:1;padding:6px 6px 6px 10px;white-space:nowrap}.focus-chip-clear[_ngcontent-%COMP%]{background:rgba(255,255,255,.2);border:0;border-radius:999px;color:#fff;cursor:pointer;font-size:.9rem;height:16px;line-height:14px;padding:0;width:16px}.focus-chip-clear[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.35)}.focus-text[_ngcontent-%COMP%]{color:#4b5563;font-size:.82rem}.lists[_ngcontent-%COMP%]{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));margin-top:22px}.list-card[_ngcontent-%COMP%]{border-top:1px solid #f0f2f5;padding-top:14px}.list-head[_ngcontent-%COMP%]{align-items:center;display:flex;gap:10px;justify-content:space-between;margin-bottom:10px;min-height:28px}.list-title[_ngcontent-%COMP%]{color:#6b7280;font-size:.75rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.list-sub[_ngcontent-%COMP%]{color:#9ca3af;font-size:.75rem}.list-empty[_ngcontent-%COMP%]{color:#6b7280;font-size:.82rem;padding:12px 0}.share-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:9px}.share-main[_ngcontent-%COMP%]{align-items:center;display:flex;font-size:.85rem;gap:10px;margin-bottom:4px}.share-label[_ngcontent-%COMP%]{align-items:center;color:#1f2937;display:inline-flex;flex:1;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.share-dot[_ngcontent-%COMP%]{border-radius:50%;display:inline-block;flex:none;height:8px;width:8px}.share-calls[_ngcontent-%COMP%]{color:#9ca3af;font-size:.75rem;white-space:nowrap}.share-pct[_ngcontent-%COMP%]{color:#6b7280;font-size:.78rem;font-variant-numeric:tabular-nums;min-width:34px;text-align:right}.share-quota[_ngcontent-%COMP%]{color:#1f2937;font-variant-numeric:tabular-nums;font-weight:600;min-width:48px;text-align:right}.share-track[_ngcontent-%COMP%]{background:#f0f2f5;border-radius:2px;height:4px;overflow:hidden}.share-fill[_ngcontent-%COMP%]{border-radius:2px;height:100%;transition:width .25s ease}.type-badge[_ngcontent-%COMP%]{--type-color: #2652b2;background:color-mix(in srgb,var(--type-color) 12%,#fff);border-radius:4px;color:color-mix(in srgb,var(--type-color) 75%,#000);display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.02em;line-height:1;padding:4px 6px;text-transform:uppercase;white-space:nowrap}.op-badge[_ngcontent-%COMP%]{border-radius:4px;display:inline-block;font-size:.75rem;font-weight:600;line-height:1;padding:4px 7px;white-space:nowrap}.op-badge.ui[_ngcontent-%COMP%]{background:#e8eefb;color:#1f3f8a}.op-badge.api[_ngcontent-%COMP%]{background:#ecfdf3;color:#166534}.op-badge.import[_ngcontent-%COMP%]{background:#fff4e0;color:#8a5a00}.op-badge.download[_ngcontent-%COMP%]{background:#f3e8ff;color:#6b21a8}.log-panel[_ngcontent-%COMP%]{padding:0}.export-btn[_ngcontent-%COMP%]{width:auto}.log-toolbar[_ngcontent-%COMP%]{align-items:center;border-bottom:1px solid #e3e8ef;display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px}.log-search[_ngcontent-%COMP%]{flex:1 1 240px;position:relative}.log-search[_ngcontent-%COMP%] .fa-search[_ngcontent-%COMP%]{color:#9ca3af;font-size:.8rem;left:10px;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.log-search[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{padding-left:28px}.log-select[_ngcontent-%COMP%]{flex:0 1 150px;width:auto}.log-select.log-select-user[_ngcontent-%COMP%]{flex-basis:220px}.log-clear[_ngcontent-%COMP%]{width:auto}.log-table-wrap[_ngcontent-%COMP%]{overflow-x:auto}.log-table[_ngcontent-%COMP%]{border-collapse:collapse;font-size:.85rem;min-width:860px;width:100%}.log-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#f7f9fc;border-bottom:1px solid #e3e8ef;color:#6b7280;font-size:.72rem;font-weight:600;letter-spacing:.04em;padding:10px 12px;position:sticky;text-transform:uppercase;top:0;white-space:nowrap;z-index:1}.log-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{color:#9ca3af;font-size:.7rem;margin-left:4px}.log-table[_ngcontent-%COMP%] th.sortable[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none}.log-table[_ngcontent-%COMP%] th.sortable[_ngcontent-%COMP%]:hover, .log-table[_ngcontent-%COMP%] th.sorted[_ngcontent-%COMP%], .log-table[_ngcontent-%COMP%] th.sorted[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{color:#2652b2}.log-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:1px solid #f0f2f5;color:#1f2937;padding:9px 12px;vertical-align:middle}.log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background:#f7f9fc}.log-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:0}
1.log-table[_ngcontent-%COMP%] .col-time[_ngcontent-%COMP%]{white-space:nowrap;width:120px}.log-table[_ngcontent-%COMP%] .col-user[_ngcontent-%COMP%]{max-width:200px}.log-table[_ngcontent-%COMP%] .col-op[_ngcontent-%COMP%], .log-table[_ngcontent-%COMP%] .col-type[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.log-table[_ngcontent-%COMP%] .col-target[_ngcontent-%COMP%]{max-width:220px}.log-table[_ngcontent-%COMP%] .col-params[_ngcontent-%COMP%]{color:#4b5563;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.log-table[_ngcontent-%COMP%] .col-quota[_ngcontent-%COMP%]{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap;width:80px}.log-day[_ngcontent-%COMP%]{display:block;line-height:1.2}.log-clock[_ngcontent-%COMP%]{color:#6b7280;display:block;font-size:.75rem;font-variant-numeric:tabular-nums;line-height:1.2}.target-link[_ngcontent-%COMP%]{align-items:center;color:#2652b2;display:inline-flex;gap:5px;max-width:100%}.target-link[_ngcontent-%COMP%] .text-truncate[_ngcontent-%COMP%]{display:inline-block;max-width:190px;vertical-align:bottom}.target-link[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:.7rem;opacity:.7}.target-link[_ngcontent-%COMP%]:hover{text-decoration:none}.target-link[_ngcontent-%COMP%]:hover .text-truncate[_ngcontent-%COMP%]{text-decoration:underline}.target-text[_ngcontent-%COMP%]{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}.param[_ngcontent-%COMP%]{font-size:.78rem}.param[_ngcontent-%COMP%] + .param[_ngcontent-%COMP%]:before{color:#9ca3af;content:"\\b7";margin:0 6px}.param-key[_ngcontent-%COMP%]{color:#6b7280;margin-right:3px}.param-value[_ngcontent-%COMP%]{color:#4b5563}.param-none[_ngcontent-%COMP%]{color:#9ca3af}.log-empty[_ngcontent-%COMP%]{color:#6b7280;font-size:.85rem;padding:36px 16px;text-align:center}.log-empty[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{font-size:inherit;vertical-align:baseline;width:auto}.log-footer[_ngcontent-%COMP%]{align-items:center;border-top:1px solid #e3e8ef;color:#6b7280;display:flex;flex-wrap:wrap;font-size:.8rem;gap:10px 20px;justify-content:space-between;padding:10px 16px}.log-count-note[_ngcontent-%COMP%]{color:#9ca3af}.log-pager[_ngcontent-%COMP%]{align-items:center;display:flex;gap:4px}.page-size[_ngcontent-%COMP%]{align-items:center;display:inline-flex;gap:6px;margin:0 12px 0 0}.page-size[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{height:28px;padding:2px 6px;width:auto}.pager-btn[_ngcontent-%COMP%]{background:transparent;border:1px solid transparent;border-radius:6px;color:#4b5563;cursor:pointer;height:28px;line-height:1;padding:0;width:28px}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#f7f9fc;border-color:#e3e8ef;color:#2652b2}.pager-btn[_ngcontent-%COMP%]:disabled{color:#9ca3af;cursor:default;opacity:.6}.pager-state[_ngcontent-%COMP%]{color:#4b5563;font-variant-numeric:tabular-nums;margin:0 6px;white-space:nowrap}.quota-cards[_ngcontent-%COMP%]{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));margin-bottom:28px}.quota-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e3e8ef;border-left:4px solid #2652b2;border-radius:10px;padding:16px 18px}.quota-card.warning[_ngcontent-%COMP%]{border-left-color:#f0ad4e}.quota-card.critical[_ngcontent-%COMP%]{border-left-color:#d9534f}.quota-card-head[_ngcontent-%COMP%]{align-items:baseline;display:flex;justify-content:space-between}.quota-card-entity[_ngcontent-%COMP%]{color:#6b7280;font-size:.78rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.quota-card-pct[_ngcontent-%COMP%]{color:#6b7280;font-size:.82rem;font-weight:600}.quota-card-pct.warning[_ngcontent-%COMP%]{color:#8a5a00}.quota-card-pct.critical[_ngcontent-%COMP%]{color:#a12622}.quota-card-remaining[_ngcontent-%COMP%]{align-items:baseline;display:flex;gap:6px;margin:4px 0 10px}.quota-card-remaining-value[_ngcontent-%COMP%]{color:#1f2937;font-size:2rem;font-weight:600;line-height:1.1}.quota-card-remaining-label[_ngcontent-%COMP%]{color:#6b7280;font-size:.82rem}
1.quota-bar[_ngcontent-%COMP%]{background-color:#eceff4;border-radius:3px;height:6px;overflow:hidden;width:100%}.quota-bar-fill[_ngcontent-%COMP%]{background-color:#2652b2;height:100%;transition:width .2s ease-in-out}.quota-bar-fill.warning[_ngcontent-%COMP%]{background-color:#f0ad4e}.quota-bar-fill.critical[_ngcontent-%COMP%]{background-color:#d9534f}.quota-card-meta[_ngcontent-%COMP%]{color:#6b7280;font-size:.78rem;margin-top:6px}.quota-card-footer[_ngcontent-%COMP%]{border-top:1px solid #f0f2f5;margin-top:12px;padding-top:10px}.quota-forecast[_ngcontent-%COMP%]{font-size:.82rem;font-weight:600}.quota-forecast.ok[_ngcontent-%COMP%]{color:#2f7d4f}.quota-forecast.warning[_ngcontent-%COMP%]{color:#8a5a00}.quota-forecast.critical[_ngcontent-%COMP%]{color:#a12622}.quota-card-period[_ngcontent-%COMP%]{color:#6b7280;font-size:.75rem;margin-top:2px}.quota-card-dot[_ngcontent-%COMP%]{margin:0 4px}.quota-page[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:auto}']})}}return a})();const ke=[{path:"",component:L,canActivate:(0,b.lv)([q.q,lt.d]),children:[{path:"",redirectTo:"preferences",pathMatch:"full"},{path:"info",component:V},{path:"security",component:tt},{path:"preferences",component:it,canActivate:(0,b.lv)([P])},{path:"quota-usage",component:Ce,canActivate:(0,b.lv)([P])},{path:"manage-users",component:rt}]}],ye=[P],xe=b.iI.forChild(ke);let Me=(()=>{class a{static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275mod=t.$C({type:a})}static{this.\u0275inj=t.G2t({imports:[m.MD,u.YN]})}}return a})();var Fe=h(34659),Pe=h(41683);let Oe=(()=>{class a{static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275mod=t.$C({type:a})}static{this.\u0275inj=t.G2t({providers:[ye],imports:[Fe.h,Me,m.MD,u.YN,Pe.Y,xe]})}}return a})()}}]); 2//# sourceMappingURL=src_app_components_new-navigation_userprofile_userprofile_module_ts.efdd4edbf0f06a48.js.map
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.