1"use strict";(self.webpackChunkinverkids=self.webpackChunkinverkids||[]).push([[6141],{6141:(z,_,s)=>{s.d(_,{S:()=>X});var d=s(81034);const p={1:{en:"Profile",es:"Perfil"},2:{en:"Change user",es:"Cambiar usuario"},3:{en:"Help",es:"Ayuda"},4:{en:"Log out",es:"Cerrar sesi\xf3n"}};var n=s(23279),c=s(56610),h=s(9675),m=s(11488);const b=o=>({selected:o});function u(o,r){if(1&o){const e=n.RV6();n.j41(0,"div",3)(1,"h2",4),n.bIt("click",function(){const t=n.eBV(e).$implicit,a=n.XpG(2);return n.Njj(a.setChild(t))}),n.EFF(2),n.k0s()()}if(2&o){const e=r.$implicit,i=n.XpG(2);n.R7$(),n.Y8G("ngClass",n.eq3(2,b,i.selectedChild.id===e.id)),n.R7$(),n.JRh(e.short_name)}}function v(o,r){if(1&o&&(n.j41(0,"div",1),n.DNE(1,u,3,4,"div",2),n.k0s()),2&o){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.childs)}}let C=(()=>{class o{userProfileService;childs;selectedChild;childSubscription;constructor(e){this.userProfileService=e}ngOnInit(){this.childSubscription=this.userProfileService.childSelected.subscribe(e=>{e&&(this.selectedChild=e)})}setChild(e){this.userProfileService.setChild(e),this.selectedChild=e}ngOnDestroy(){this.childSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||o)(n.rXU(d.c))};static \u0275cmp=n.VBU({type:o,selectors:[["app-childs-navbar"]],inputs:{childs:"childs"},decls:1,vars:1,consts:[["id","childs-container",4,"ngIf"],["id","childs-container"],["class","nav-item mr-25",4,"ngFor","ngForOf"],[1,"nav-item","mr-25"],[3,"click","ngClass"]],template:function(i,t){1&i&&n.DNE(0,v,2,1,"div",0),2&i&&n.Y8G("ngIf",t.childs&&t.selectedChild)},dependencies:[c.YU,c.Sq,c.bT],styles:["#childs-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-start;align-items:center;border-bottom:2px solid #f2f6fa}#childs-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{padding-bottom:7px;padding-top:11px;color:#9ba4b2;line-height:20px;border-bottom:4px solid transparent;cursor:pointer}#childs-container[_ngcontent-%COMP%] h2.selected[_ngcontent-%COMP%]{color:#14004b;border-bottom:4px solid #0096f0}"]})}return o})();const l=o=>({backgroundColor:o}),f=()=>["Student","InverstockUser"],g=()=>({}),w=o=>({selected:o});function k(o,r){if(1&o){const e=n.RV6();n.qex(0),n.j41(1,"img",8),n.bIt("click",function(){n.eBV(e);const t=n.XpG();return n.Njj(t.goTo(t.goBackArrow))}),n.k0s(),n.bVm()}}function O(o,r){if(1&o){const e=n.RV6();n.qex(0),n.j41(1,"img",9),n.bIt("click",function(){n.eBV(e);const t=n.XpG();return n.Njj(t.goTo(t.goBackArrow))}),n.k0s(),n.bVm()}}function P(o,r){if(1&o){const e=n.RV6();n.qex(0),n.j41(1,"img",8),n.bIt("click",function(){n.eBV(e);const t=n.XpG();return n.Njj(t.goBackArrowFunc())}),n.k0s(),n.bVm()}}function G(o,r){if(1&o){const e=n.RV6();n.qex(0),n.j41(1,"img",9),n.bIt("click",function(){n.eBV(e);const t=n.XpG();return n.Njj(t.goBackArrowFunc())}),n.k0s(),n.bVm()}}function M(o,r){if(1&o){const e=n.RV6();n.j41(0,"p",17),n.bIt("click",function(){n.eBV(e);const t=n.XpG(3);return n.Njj(t.goTo(["/users"]))}),n.EFF(1),n.k0s()}if(2&o){const e=n.XpG(3);n.R7$(),n.JRh(e.content[2][e.userLang])}}function x(o,r){if(1&o){const e=n.RV6();n.j41(0,"div",16)(1,"p",17),n.bIt("click",function(){n.eBV(e);const t=n.XpG(2);return n.Njj(t.goTo(["/profile"]))}),n.EFF(2),n.k0s(),n.DNE(3,M,2,1,"p",18),n.j41(4,"p",17),n.bIt("click",function(){n.eBV(e);const t=n.XpG(2);return n.Njj(t.goTo(["/misc/help"]))}),n.EFF(5),n.k0s(),n.j41(6,"p",17),n.bIt("click",function(){n.eBV(e);const t=n.XpG(2);return n.Njj(t.logout())}),n.EFF(7),n.k0s()()}if(2&o){const e=n.XpG(2);n.Y8G("ngStyle",e.dropDownColor?n.eq3(5,l,e.dropDownColor):n.lJ4(7,g)),n.R7$(2),n.JRh(e.content[1][e.userLang]),n.R7$(),n.Y8G("ngIf",e.parentToken),n.R7$(2),n.SpI("",e.content[3][e.userLang]," "),n.R7$(2),n.JRh(e.content[4][e.userLang])}}function T(o,r){if(1&o){const e=n.RV6();n.qex(0),n.j41(1,"div",10)(2,"div",11)(3,"div",12),n.bIt("click",function(){n.eBV(e);const t=n.XpG();return n.Njj(t.dropdownToggled=!t.dropdownToggled)}),n.j41(4,"p"),n.EFF(5),n.k0s(),n.nrm(6,"img",13),n.k0s(),n.j41(7,"div",14),n.bIt("mouseleave",function(){n.eBV(e);const t=n.XpG();return n.Njj(t.dropdownToggled=!1)}),n.DNE(8,x,8,8,"div",15),n.k0s()()(),n.bVm()}if(2&o){const e=n.XpG();n.R7$(3),n.Y8G("ngStyle",e.dropDownColor?n.eq3(3,l,e.dropDownColor):n.lJ4(5,g)),n.R7$(2),n.JRh(e.shortName(e.user.short_name)),n.R7$(3),n.Y8G("ngIf",e.dropdownToggled)}}function R(o,r){if(1&o&&(n.j41(0,"div",19)(1,"h2",20),n.EFF(2),n.k0s()()),2&o){const e=n.XpG();n.R7$(),n.Y8G("ngClass",e.textColor),n.R7$(),n.JRh(e.navbarTitle)}}function j(o,r){if(1&o){const e=n.RV6();n.qex(0),n.j41(1,"img",21),n.bIt("click",function(){n.eBV(e);const t=n.XpG();return n.Njj(t.goBack(t.exitRoute))}),n.k0s(),n.bVm()}}function N(o,r){if(1&o){const e=n.RV6();n.qex(0),n.j41(1,"img",22),n.bIt("click",function(){n.eBV(e);const t=n.XpG();return n.Njj(t.goBack(t.exitRoute))}),n.k0s(),n.bVm()}}function S(o,r){if(1&o&&(n.j41(0,"div",23),n.nrm(1,"img",24),n.j41(2,"h2",20),n.EFF(3),n.nI1(4,"number"),n.k0s()()),2&o){const e=n.XpG();n.R7$(2),n.Y8G("ngClass",e.textColor),n.R7$(),n.JRh(n.bMT(4,2,e.user.premium_points))}}function y(o,r){if(1&o&&(n.j41(0,"div",23),n.nrm(1,"img",25),n.j41(2,"h2",20),n.EFF(3),n.nI1(4,"number"),n.k0s()()),2&o){const e=n.XpG(2);n.R7$(2),n.Y8G("ngClass",e.textColor),n.R7$(),n.JRh(n.bMT(4,2,e.user.health))}}function I(o,r){if(1&o&&(n.qex(0),n.DNE(1,y,5,4,"div",6),n.bVm()),2&o){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.showHitpoints)}}function $(o,r){if(1&o&&(n.qex(0),n.j41(1,"h2",20),n.EFF(2),n.nI1(3,"number"),n.k0s(),n.bVm()),2&o){const e=n.XpG();
1n.R7$(),n.Y8G("ngClass",e.textColor),n.R7$(),n.SpI("$",n.bMT(3,2,e.user.earnings),"")}}function H(o,r){if(1&o&&n.nrm(0,"app-childs-navbar",28),2&o){const e=n.XpG(2);n.Y8G("childs",e.childs)}}function F(o,r){if(1&o){const e=n.RV6();n.j41(0,"div",30)(1,"h2",31),n.bIt("click",function(){const t=n.eBV(e).$implicit,a=n.XpG(3);return n.Njj(a.selectOption(t))}),n.EFF(2),n.k0s()()}if(2&o){const e=r.$implicit,i=n.XpG(3);n.R7$(),n.Y8G("ngClass",n.eq3(2,w,e===i.optionSelected)),n.R7$(),n.SpI(" ",e,"")}}function V(o,r){if(1&o&&(n.qex(0),n.DNE(1,F,3,4,"div",29),n.bVm()),2&o){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.bottomNavbarOptions)}}function B(o,r){if(1&o&&(n.j41(0,"div",26),n.DNE(1,H,1,1,"app-childs-navbar",27)(2,V,2,1,"ng-container",3),n.k0s()),2&o){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.showChildsNavbar),n.R7$(),n.Y8G("ngIf",e.bottomNavbarOptions)}}let X=(()=>{class o{location;router;userProfileService;optionsNavbarService;content=p;user;parentToken;goBackArrow;goBackArrowFunc;showDropdown;navbarTitle;exitRoute;showCurrency;showHitpoints;showEarnings;textColor;whiteCross;whiteArrow;backgroundColor;dropDownColor;bottomNavbarOptions;optionSelected;optionSelectedSubscription;userChangedSubscription;showChildsNavbar;childs;dropdownToggled;userLang;constructor(e,i,t,a){this.location=e,this.router=i,this.userProfileService=t,this.optionsNavbarService=a}ngOnInit(){this.userLang=this.userProfileService.getLang(),this.userChangedSubscription=this.optionsNavbarService.userChanged.subscribe(()=>{this.getUser()}),this.optionSelectedSubscription=this.optionsNavbarService.optionSelected.subscribe(e=>{this.optionSelected=e})}ngOnChanges(e){console.log("Header Changes: ",e,this.user)}getUser(){this.userProfileService.getUserProfile().then(e=>{this.user=e,this.parentToken=this.userProfileService.getParentToken()}).catch(e=>console.log(e))}goBack(e){e?this.router.navigate(e):this.location.back()}goTo(e){"back"===e?window.history.go(-1):this.router.navigate(e)}logout(){this.userProfileService.clearSession(),this.router.navigate(["/"])}selectOption(e){this.optionsNavbarService.setOptionSelected(e)}ngOnDestroy(){this.optionSelectedSubscription&&this.optionSelectedSubscription.unsubscribe(),this.userChangedSubscription&&this.userChangedSubscription.unsubscribe()}shortName(e){return console.log(e),e.split(" ")[0]}static \u0275fac=function(i){return new(i||o)(n.rXU(c.aZ),n.rXU(h.Ix),n.rXU(d.c),n.rXU(m.Y))};static \u0275cmp=n.VBU({type:o,selectors:[["app-global-header"]],inputs:{user:"user",goBackArrow:"goBackArrow",goBackArrowFunc:"goBackArrowFunc",showDropdown:"showDropdown",navbarTitle:"navbarTitle",exitRoute:"exitRoute",showCurrency:"showCurrency",showHitpoints:"showHitpoints",showEarnings:"showEarnings",textColor:"textColor",whiteCross:"whiteCross",whiteArrow:"whiteArrow",backgroundColor:"backgroundColor",dropDownColor:"dropDownColor",bottomNavbarOptions:"bottomNavbarOptions",showChildsNavbar:"showChildsNavbar",childs:"childs"},features:[n.OA$],decls:16,vars:16,consts:[["id","global-header",3,"ngStyle"],[1,"top"],[1,"left-side"],[4,"ngIf"],["class","middle",4,"ngIf"],[1,"right-side"],["class","currecy-container",4,"ngIf"],["class","bottom",4,"ngIf"],["src","assets/images/icons/back.svg",1,"clickable","back-arrow",3,"click"],["src","assets/images/icons/back_white_arrow.svg",1,"clickable","back-arrow",3,"click"],[1,"dropdown-main-container"],[1,"dropdown-container"],[1,"dropdown",3,"click","ngStyle"],["src","assets/images/icons/dropdown-arrow.svg","alt","dropdown-arrow"],[1,"dropdown-options-container",3,"mouseleave"],["class","dropdown-options",3,"ngStyle",4,"ngIf"],[1,"dropdown-options",3,"ngStyle"],[1,"option","small","mt-10",3,"click"],["class","option small mt-10",3,"click",4,"ngIf"],[1,"middle"],[3,"ngClass"],["src","assets/images/icons/close.svg",1,"clickable",3,"click"],["src","assets/images/icons/white_cross.svg",1,"clickable",3,"click"],[1,"currecy-container"],["src","assets/images/icons/moneda.svg","alt","moneda",1,"coin","mr-20"],["src","assets/images/icons/corazon.svg","alt","corazon",1,"hearth","mr-20"],[1,"bottom"],[3,"childs",4,"ngIf"],[3,"childs"],["class","mr-35",4,"ngFor","ngForOf"],[1,"mr-35"],[3,"click","ngClass"]],template:function(i,t){1&i&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2),n.DNE(3,k,2,0,"ng-container",3)(4,O,2,0,"ng-container",3)(5,P,2,0,"ng-container",3)(6,G,2,0,"ng-container",3)(7,T,9,6,"ng-container",3),n.k0s(),n.DNE(8,R,3,2,"div",4),n.j41(9,"div",5),n.DNE(10,j,2,0,"ng-container",3)(11,N,2,0,"ng-container",3)(12,S,5,4,"div",6)(13,I,2,1,"ng-container",3)(14,$,4,4,"ng-container",3),n.k0s()(),n.DNE(15,B,3,2,"div",7),n.k0s()),2&i&&(n.Y8G("ngStyle",n.eq3(13,l,t.backgroundColor)),n.R7$(3),n.Y8G("ngIf",t.goBackArrow&&!t.whiteArrow),n.R7$(),n.Y8G("ngIf",t.goBackArrow&&t.whiteArrow),n.R7$(),n.Y8G("ngIf",t.goBackArrowFunc&&!t.whiteArrow),n.R7$(),n.Y8G("ngIf",t.goBackArrowFunc&&t.whiteArrow),n.R7$(),n.Y8G("ngIf",t.showDropdown&&t.user),n.R7$(),n.Y8G("ngIf",t.navbarTitle),n.R7$(2),n.Y8G("ngIf",t.exitRoute&&!t.whiteCross),n.R7$(),n.Y8G("ngIf",t.exitRoute&&t.whiteCross),n.R7$(),n.Y8G("ngIf",t.user&&t.showCurrency),n.R7$(),n.Y8G("ngIf",t.user&&n.lJ4(15,f).includes(t.user.user_type)),n.R7$(),n.Y8G("ngIf",t.user&&t.showEarnings),n.R7$(),n.Y8G("ngIf",t.showChildsNavbar||t.bottomNavbarOptions))},dependencies:[c.YU,c.Sq,c.bT,c.B3,C,c.QX],styles:["#global-header[_ngcontent-%COMP%]{position:relative;width:100%;min-height:calc(var(--responsive-size) * 12.7);background-color:#fff;z-index:10;padding:calc(var(--responsive-size) * 1.95) calc(var(--responsive-size) * 1.95) 0;display:flex;flex-direction:column;gap:calc(var(--responsive-size) * 1.56)}
1#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{width:100%;height:calc(var(--responsive-size) * 8.79);display:grid;grid-gap:calc(var(--responsive-size) * 1.56);align-items:center;grid-template-columns:repeat(3,1fr)}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:calc(var(--responsive-size) * 3.13)}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%], #global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .right-side[_ngcontent-%COMP%]{grid-row:1}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .middle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;grid-row:1;grid-column:2}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:calc(var(--responsive-size) * 4.1);line-height:calc(var(--responsive-size) * 5.47);text-wrap:nowrap}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%]{display:flex}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .right-side[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;grid-column:3}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .back-arrow[_ngcontent-%COMP%]{margin-right:calc(var(--responsive-size) * 3.13)}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .currecy-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;cursor:pointer}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .currecy-container[_ngcontent-%COMP%] .coin[_ngcontent-%COMP%], #global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .currecy-container[_ngcontent-%COMP%] .hearth[_ngcontent-%COMP%]{width:calc(var(--responsive-size) * 2.93);margin-left:calc(var(--responsive-size) * 2.44)}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .dropdown-main-container[_ngcontent-%COMP%]{width:50%;height:100%;display:flex;justify-content:flex-start;align-items:center}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .dropdown-main-container[_ngcontent-%COMP%] .dropdown-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .dropdown-main-container[_ngcontent-%COMP%] .dropdown-container[_ngcontent-%COMP%] .dropdown-options-container[_ngcontent-%COMP%]{height:0}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .dropdown-main-container[_ngcontent-%COMP%] .dropdown-container[_ngcontent-%COMP%] .dropdown-options-container[_ngcontent-%COMP%] .dropdown-options[_ngcontent-%COMP%]{position:relative;top:calc(var(--responsive-size) * .49);width:calc(var(--responsive-size) * 13.18);padding:calc(var(--responsive-size) * .98) calc(var(--responsive-size) * 1.46);background-color:var(--light-blue, #f2f6fa);border-radius:calc(var(--responsive-size) * .78)}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .dropdown-main-container[_ngcontent-%COMP%] .dropdown-container[_ngcontent-%COMP%] .dropdown-options-container[_ngcontent-%COMP%] .dropdown-options[_ngcontent-%COMP%] .option[_ngcontent-%COMP%]:hover{cursor:pointer;color:var(--gray, #9ba4b2)}#global-header[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .dropdown-main-container[_ngcontent-%COMP%] .dropdown-container[_ngcontent-%COMP%] .dropdown[_ngcontent-%COMP%]{height:calc(var(--responsive-size) * 2.93);min-width:calc(var(--responsive-size) * 14.65);width:auto;display:flex;justify-content:space-between;align-items:center;background-color:var(--light-blue, #f2f6fa);border-radius:calc(var(--responsive-size) * 2.44);padding-left:calc(var(--responsive-size) * 1.46);padding-right:calc(var(--responsive-size) * .29)}#global-header[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{width:100%;min-height:calc(var(--responsive-size) * 1.56);display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-bottom:calc(var(--responsive-size) * .2) solid var(--light-blue, #f2f6fa);overflow-x:auto}#global-header[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{white-space:nowrap;text-wrap:nowrap;padding-bottom:calc(var(--responsive-size) * .68);padding-top:calc(var(--responsive-size) * 1.07);line-height:calc(var(--responsive-size) * 1.95);border-bottom:calc(var(--responsive-size) * .39) solid transparent;color:var(--gray, #9ba4b2);cursor:pointer}#global-header[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] h2.selected[_ngcontent-%COMP%]{color:var(--primary, #14004b);border-bottom:calc(var(--responsive-size) * .39) solid var(--tertiary, #0096f0)}"]})}return o}
1)()}}]);
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.