PageSourceSearch

https://destinyrecipes.com/chunk-PNF3L4GE.js

js destinyrecipes.com collected 2026-10-05 00:59:02 UTC 63,213 bytes, 6 lines download raw bytes

1import{a as Ae}from"./chunk-OZJQYICG.js";import{a as nt}from"./chunk-5GZENTRJ.js";import{a as je}from"./chunk-GEBIWSLM.js";import{Ba as A,Bb as q,Bc as ke,D as me,Da as S,F as he,Fa as h,Gd as Ve,Ha as H,Hd as Ge,I,Ia as F,J as E,Ja as z,La as T,Ma as re,Na as p,O as Ce,Oa as C,Pa as xe,Qa as U,R as _e,Rd as Ue,S as ue,Sb as be,Sd as $e,V as oe,Vc as De,W as k,X as fe,Xa as y,Xb as Y,Y as r,Ya as R,Yb as ct,Za as $,Zb as w,_a as ye,_e as tt,aa as b,ab as f,bb as v,bc as Se,bd as Be,ca as D,cb as Q,cc as Le,cd as Fe,da as ve,dc as Ie,dd as ze,de as Qe,e as st,ec as Ee,ed as qe,fc as j,fd as He,gd as K,ge as Ze,h as V,hb as Z,he as Ye,id as Ne,j as se,ja as G,jc as Te,k as ce,ka as _,m as le,ma as u,me as Xe,n as pe,oa as P,oc as N,od as We,p as ie,pa as M,pb as we,pc as Re,pe as Ke,qa as O,r as de,ra as d,re as Je,sa as a,ta as s,te as et,ua as m,va as Pe,wa as Me,xa as Oe,y as ge,zc as X}from"./chunk-H5IL24EX.js";var W=st(ct());var lt=["dropdown"];function pt(n,c){if(n&1){let e=A();a(0,"div",4),S("click",function(){I(e);let i=h();return E(i.clear())}),p(1),f(2,"translate"),s()}n&2&&(r(),C(v(2,1,"SECTIONS.PROGRESS.CLEAR_REWARD")))}function dt(n,c){if(n&1){let e=A();a(0,"div",5),S("click",function(){let i=I(e).$implicit,o=h();return E(o.simulate(i))}),m(1,"img",6),a(2,"span"),p(3),f(4,"translate"),s()()}if(n&2){let e=c.$implicit;r(),d("src","assets/slots/"+e.slot+".png",k)("alt",e.slot),r(2),C(v(4,3,"SECTIONS.PROGRESS.SLOTS."+e.slot))}}var ot=(()=>{class n{constructor(e){this.eRef=e,this.position={top:0,left:0},this.select$=new V}ngOnInit(){this.currentPositionStyle={left:this.position.left+"px",top:this.position.top+"px"}}ngAfterViewInit(){this.currentPositionStyle=Fe(this.dropdown,this.position,"right")}clear(){this.select$.next({clear:!0,milestone:this.data.milestone})}simulate(e){this.select$.next({selected:e,milestone:this.data.milestone})}dismiss(){this.ref.destroy()}onSubmit(){return this.select$}clickout(e){this.eRef.nativeElement.contains(e.target)||this.dismiss()}static{this.\u0275fac=function(t){return new(t||n)(b(ue))}}static{this.\u0275cmp=D({type:n,selectors:[["dr-simulation-dropdown"]],viewQuery:function(t,i){if(t&1&&H(lt,5),t&2){let o;F(o=z())&&(i.dropdown=o.first)}},hostBindings:function(t,i){t&1&&S("mousedown",function(l){return i.clickout(l)},fe)},standalone:!1,decls:5,vars:5,consts:[["dropdown",""],[1,"dropdown"],[1,"possible-drop","clear"],[1,"possible-drop"],[1,"possible-drop","clear",3,"click"],[1,"possible-drop",3,"click"],[3,"src","alt"]],template:function(t,i){t&1&&(a(0,"div",1,0),_(2,pt,3,3,"div",2),M(3,dt,5,5,"div",3,P),s()),t&2&&(T("top",i.currentPositionStyle.top)("left",i.currentPositionStyle.left),r(2),u(i.data.isSimulated?2:-1),r(),O(i.data.slots))},dependencies:[N],styles:[`.progress-ctn[_ngcontent-%COMP%]{width:400px;background:var(--box-secondary)}.progress-ctn[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{padding:1em;text-align:center;font-weight:700;background:var(--box-primary);text-transform:uppercase}.progress-ctn.selected[_ngcontent-%COMP%]{width:1100px;margin:0 auto;display:grid;grid-template-columns:400px 700px;grid-template-rows:min-content 90px 550px 85px;grid-template-areas:"character-card course" "progress rewards" "items rewards" "exotic rewards"}.progress-ctn.selected[_ngcontent-%COMP%]   .power-progress[_ngcontent-%COMP%]{grid-area:progress}.progress-ctn.selected[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]{grid-area:character-card}.progress-ctn.selected[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]     .character-card:hover:before{content:"Unselect character"!important}.progress-ctn.selected[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]{grid-area:items}.progress-ctn.selected[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]{grid-area:course}.progress-ctn.selected[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]{grid-area:rewards;overflow-y:auto;overflow-x:visible}.progress-ctn.selected[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.progress-ctn.selected[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .reward[_ngcontent-%COMP%]{justify-content:flex-end;
1gap:1em}.progress-ctn.collapsed[_ngcontent-%COMP%]   .power-progress[_ngcontent-%COMP%], .progress-ctn.collapsed[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%], .progress-ctn.collapsed[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%], .progress-ctn.collapsed[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]{display:none}.progress-ctn[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]  .character-card{max-width:inherit;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.progress-ctn[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]  .character-card:hover{filter:brightness(1.25)}.progress-ctn[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]  .character-card:hover:before{content:"Select character";position:absolute;top:50%;transform:translate(-50%,-50%);left:50%;padding:1em;background-color:#000d;color:#fff}.progress-ctn[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]  .character-card:active{filter:brightness(.8)}.progress-ctn[_ngcontent-%COMP%]   .equipment-level[_ngcontent-%COMP%]{padding:.5em 1em;display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-weight:700}.progress-ctn[_ngcontent-%COMP%]   .equipment-level[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{flex:1}.progress-ctn[_ngcontent-%COMP%]   .equipment-level[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{color:var(--bungie-gold-light)}.progress-ctn[_ngcontent-%COMP%]   .progress-level-bars[_ngcontent-%COMP%]{display:grid;padding:.5em 1em;gap:5px;grid-template-columns:repeat(10,1fr);align-items:center}.progress-ctn[_ngcontent-%COMP%]   .progress-level-bars[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{opacity:.7}.progress-ctn[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]{height:5px;background-color:#666}.progress-ctn[_ngcontent-%COMP%]   .bar.active[_ngcontent-%COMP%]{background-color:var(--dr-blue)}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]{padding:1em;display:flex}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]:hover{background:#2f2f2f;cursor:pointer}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:.75em;background-color:#1f1f1f}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general[_ngcontent-%COMP%], .progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .campaign[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .campaign[_ngcontent-%COMP%]{align-items:flex-start;gap:.5em;opacity:.8;font-size:.8em}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general.soft[_ngcontent-%COMP%]     strong{color:#008cff}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general.powerful[_ngcontent-%COMP%]     strong{color:var(--legendary-item)}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general.pinnacle[_ngcontent-%COMP%]     strong{color:var(--exotic-item)}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general.seasonPass[_ngcontent-%COMP%]     strong{color:var(--legendary-item)}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:36px}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:1em}@media screen and (max-width:1150px){.progress-ctn.selected[_ngcontent-%COMP%]{width:900px;grid-template-columns:400px 500px}}@media screen and (max-width:950px){.progress-ctn.selected[_ngcontent-%COMP%]{width:400px;grid-template-columns:400px;grid-template-areas:"character-card" "progress" "items" "exotic" "course" "rewards"}}.dropdown[_ngcontent-%COMP%]{z-index:200;position:fixed;background-color:#000;display:block}.dropdown[_ngcontent-%COMP%]   .possible-drop[_ngcontent-%COMP%]{color:#fff;white-space:nowrap;cursor:pointer;padding:.5em;display:flex;flex-direction:row;align-items:center;gap:.5em}.dropdown[_ngcontent-%COMP%]   .possible-drop[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:24px;width:24px}.dropdown[_ngcontent-%COMP%]   .possible-drop.clear[_ngcontent-%COMP%]{background-color:#fff1}.dropdown[_ngcontent-%COMP%]   .possible-drop[_ngcontent-%COMP%]:hover{background-color:#fff3}.dropdown[_ngcontent-%COMP%]   .possible-drop[_ngcontent-%COMP%]:active{background-color:#fff1}.exotic-warning[_ngcontent-%COMP%]{grid-area:exotic;padding:1em;background-color:hsla(var(--exotic),.2);font-size:.9em;color:#fffc}.exotic-warning[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{padding-right:.25em;opacity:.8}.error[_ngcontent-%COMP%]{background-color:#f002;padding:1em}.activities[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1em;padding:1em;box-sizing:border-box}.activity-card[_ngcontent-%COMP%]{box-shadow:0 0 5px #0003;height:150px;gap:.5em;background-size:cover;background-repeat:no-repeat;border-radius:5px;position:relative}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]{justify-content:flex-end;display:flex;flex-direction:column;align-items:baseline;height:100%;padding:1em;box-sizing:border-box;background:linear-gradient(to top,rgba(0,0,0,.7) 30%,transparent)}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1em;align-items:center;justify-content:flex-start}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{position:relative}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]   .power[_ngcontent-%COMP%]{position:absolute;bottom:7px;background:#efefef;right:6px;z-index:100;color:#000;padding:1px 3px;box-sizing:border-box;font-size:.7em}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]   .power-gains[_ngcontent-%COMP%]{display:flex;flex-direction:column}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]   .gain[_ngcontent-%COMP%]{font-weight:700;color:var(--dr-blue);font-size:1.5em;display:flex;align-items:center;justify-content:flex-start;gap:5px}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]   .gain[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]{width:15px;height:3px}.activity-card.highlight[_ngcontent-%COMP%]{box-shadow:0 0 10px #ffd700cc}.activity-card.highlight[_ngcontent-%COMP%]:after{position:absolute;top:0;right:0;padding:3px 5px;font-size:.8em;content:"Guaranteed";color:#fff;background:#ffd700cc;border-bottom-left-radius:3px}
2/*# sourceMappingURL=progress-character.component-74STAOXT.css.map */`]})}}return n})();var _t=(n,c)=>({selected:n,collapsed:c}),ut=(n,c)=>({level:n,seasonPassLevel:c}),te=()=>[0,1,2,3,4,5,6,7],ae=n=>({active:n}),ft=(n,c,e)=>({pos:n,neg:c,simulated:e}),vt=n=>({simulated:n}),Pt=n=>({type:"item",instance:n,richPerks:!0}),Mt=()=>["fas","info-circle"],Ot=()=>[1,2,3,4,5,6,7,8],ee=()=>["fas","spinner"],xt=()=>({level:1980,seasonPassLevel:0}),yt=(n,c)=>({pos:n,neg:c,simulated:!0}),wt=()=>({simulated:!0});function bt(n,c){if(n&1&&m(0,"div",21),n&2){let e=c.$implicit,t=h(4);d("ngClass",R(1,ae,e<t.partsForNextLevel))}}function St(n,c){if(n&1&&(a(0,"div",5)(1,"span"),p(2),s(),M(3,bt,1,3,"div",21,P),a(5,"span"),p(6),s()()),n&2){let e=h(3);r(2),C(e.equipmentLightLevel),r(),O(y(2,te)),r(3),C(e.equipmentLightLevel+1)}}function Lt(n,c){n&1&&m(0,"div",22)}function It(n,c){if(n&1&&(a(0,"div",5)(1,"span"),p(2),s(),M(3,Lt,1,0,"div",22,P),a(5,"span"),p(6),s()()),n&2){let e=h(3);r(2),C(e.equipmentLightLevel-1),r(),O(y(2,te)),r(3),C(e.equipmentLightLevel)}}function Et(n,c){if(n&1&&m(0,"app-destiny-item",23),n&2){let e=h().$implicit;d("inventoryItem",e.item)("iconOnly",!0)("crTooltip",e.item.definition)("displayScore",!1)("crTooltipOptions",R(5,Pt,e.item))}}function Tt(n,c){if(n&1&&(a(0,"div",24),m(1,"img",11),s()),n&2){let e=h().$implicit;r(),d("src","assets/slots/"+e.slot+".png",k)("alt",e.slot)}}function Rt(n,c){if(n&1&&(a(0,"div",7),_(1,Et,1,7,"app-destiny-item",23),_(2,Tt,2,2,"div",24),a(3,"div",25),m(4,"div",26)(5,"div",27),a(6,"div",28)(7,"strong"),p(8),s(),a(9,"span",29),p(10),f(11,"translate"),f(12,"translate"),s(),a(13,"span",30),p(14),s()()()()),n&2){let e=c.$implicit,t=h(3);d("ngClass",ye(17,ft,e.delta>0,e.delta<0,e.simulated)),r(),u(e.item&&!e.simulated?1:-1),r(),u(e.simulated?2:-1),r(),d("ngClass",R(21,vt,e.simulated)),r(),T("left",t.equipmentLightLevelPosition),G("data-level",t.equipmentLightLevel),r(),T("width",e.progress),r(3),C(e.simulated?e.simulatedPowerLevel:e.item==null?null:e.item.powerLevel),r(2),U("",v(11,13,"SECTIONS.PROGRESS.SLOTS."+e.slot)," ",e.simulated?v(12,15,"SECTIONS.PROGRESS.progress-character.SIMULATED"):""),r(4),C((e.delta<0?"":"+")+e.delta)}}function kt(n,c){n&1&&(a(0,"div",8),m(1,"fa-icon",31),a(2,"span"),p(3),f(4,"translate"),s()()),n&2&&(r(),d("icon",y(4,Mt)),r(2),C(v(4,2,"SECTIONS.PROGRESS.progress-character.EXOTIC_WARNING")))}function Dt(n,c){if(n&1&&m(0,"img",11),n&2){let e=h(3);d("src","assets/engram/"+e.canPowerUpWith+".png",k)("alt",e.canPowerUpWith)}}function At(n,c){if(n&1&&m(0,"app-destiny-item",12),n&2){let e=h(3);
2d("hash",e.seasonPassItemWithBiggestBonus.itemHash)}}function Bt(n,c){if(n&1&&m(0,"app-destiny-item",13),n&2){let e=h(3);d("item",e.activityItemWithBiggestBonus)}}function Ft(n,c){if(n&1&&m(0,"app-destiny-item",13),n&2){let e=c.$implicit;d("item",e)}}function zt(n,c){if(n&1&&(a(0,"div",14),M(1,Ft,1,1,"app-destiny-item",13,P),s()),n&2){let e=h(3);r(),O(e.zavalaItemsToBuy)}}function qt(n,c){if(n&1){let e=A();a(0,"button",32),S("click",function(){I(e);let i=h(3);return E(i.clearAllSimulations())}),p(1),f(2,"translate"),s()}n&2&&(r(),C(v(2,1,"SECTIONS.PROGRESS.progress-character.CLEAR_SIMS")))}function Ht(n,c){n&1&&m(0,"div",22)}function Nt(n,c){if(n&1&&_(0,Ht,1,0,"div",22),n&2){let e=c.$implicit,t=h(3).$implicit;u(e<=t.gains.activities?0:-1)}}function Wt(n,c){if(n&1&&(a(0,"div",34)(1,"div",35)(2,"div",36)(3,"div",37)(4,"div",38),p(5),s(),m(6,"app-destiny-item",13),s(),a(7,"div",39)(8,"div",40)(9,"span"),p(10),s(),M(11,Nt,1,1,null,null,P),s()()(),a(13,"small"),p(14),f(15,"itemName"),s(),a(16,"strong"),p(17),s()()()),n&2){let e=c.$implicit,t=h(2).$implicit,i=h(3);T("background-image","url(https://www.bungie.net/"+e.activity.pgcrImage+")"),re("highlight",e.uiStyle.indexOf("guaranteed")>-1),r(4),re("over",t.activityRewardPowerLevel+t.item.powerLevel>i.SEASON_POWER_CAPS.softCap),r(),C(t.activityRewardPowerLevel+t.item.powerLevel),r(),d("item",e.item),r(4),xe("+",t.activityRewardPowerLevel),r(),O(y(14,Ot)),r(3),C(Q(15,11,e.activity.activityTypeHash,"DestinyActivityTypeDefinition")),r(3),C(e.activity.displayProperties.name)}}function jt(n,c){if(n&1&&M(0,Wt,18,15,"div",33,P),n&2){let e=h().$implicit;O(e.activityRewards)}}function Vt(n,c){if(n&1&&_(0,jt,2,0),n&2){let e=c.$implicit;u(e.gains.activities>0?0:-1)}}function Gt(n,c){if(n&1){let e=A();a(0,"div",1)(1,"app-character-card",2),S("click",function(){I(e);let i=h(2);return E(i.selectCharacter())}),s(),a(2,"div",3)(3,"div",4)(4,"span"),p(5),f(6,"translate"),s(),a(7,"span"),p(8),s()(),_(9,St,7,3,"div",5),_(10,It,7,3,"div",5),s(),a(11,"div",6),M(12,Rt,15,23,"div",7,P),s(),_(14,kt,5,5,"div",8),a(15,"div",9),S("click",function(){I(e);let i=h(2);return E(i.selectCharacter())}),a(16,"div",10),_(17,Dt,1,2,"img",11),_(18,At,1,1,"app-destiny-item",12),_(19,Bt,1,1,"app-destiny-item",13),_(20,zt,3,0,"div",14),m(21,"span",15),f(22,"translate"),s()(),a(23,"div",16)(24,"div",17)(25,"span"),p(26,"Relevant Portal Activities"),s(),_(27,qt,3,3,"button",18),s(),a(28,"p",19),p(29,"You need to aim B rank or higher in the Portal Activities to loot the focused items. "),m(30,"br"),a(31,"strong"),p(32,"All power levels are calculated for an A rank"),s()(),a(33,"div",20),M(34,Vt,1,1,null,null,P),s()()()}if(n&2){let e=h(2);d("ngClass",$(21,_t,e.selected&&e.selected===e.character,e.selected&&e.selected!==e.character)),r(),d("characterId",e.character.characterId)("equipmentLevel",e.equipmentLightLevel)("artifactLevel",e.artifactLevel),r(4),C(v(6,16,"SECTIONS.PROGRESS.progress-character.MAX_POWER")),r(3),C(e.equipmentLightLevel),r(),u(e.equipmentLightLevel!==e.pinnacleCap?9:-1),r(),u(e.equipmentLightLevel===e.pinnacleCap?10:-1),r(2),O(e.slots),r(2),u((e.exoticsEquipped==null?null:e.exoticsEquipped.weapons)>1||(e.exoticsEquipped==null?null:e.exoticsEquipped.armor)>1?14:-1),r(2),d("ngClass",e.canPowerUpWith),r(),u(e.canPowerUpWith!=="seasonPass"&&e.canPowerUpWith!=="activities"&&e.canPowerUpWith!=="zavala"?17:-1),r(),u(e.canPowerUpWith==="seasonPass"?18:-1),r(),u(e.canPowerUpWith==="activities"?19:-1),r(),u(e.zavalaItemsToBuy.length?20:-1),r(),d("innerHTML",Q(22,18,"SECTIONS.PROGRESS.progress-character.CAN_POWERUP_WITH."+e.canPowerUpWith,$(24,ut,e.powerUpToLevel,e.seasonPassItemWithBiggestBonus==null?null:e.seasonPassItemWithBiggestBonus.rewardedAtProgressionLevel)),oe),r(6),u((e.simulations==null?null:e.simulations.length)>0?27:-1),r(7),O(e.sortedSlots)}}function Ut(n,c){if(n&1&&m(0,"app-character-card",43),n&2){let e=h(3);d("characterId",e.character.characterId)}}function $t(n,c){if(n&1&&m(0,"div",21),n&2){let e=c.$implicit;d("ngClass",R(1,ae,e<2))}}function Qt(n,c){if(n&1&&(a(0,"div",44)(1,"div",24),m(2,"img",11),s(),a(3,"div",47),m(4,"div",26)(5,"div",48),a(6,"div",28)(7,"strong"),m(8,"fa-icon",42),s(),a(9,"span",29),p(10),f(11,"translate"),f(12,"translate"),s(),a(13,"span",30),m(14,"fa-icon",42),s()()()()),n&2){let e=c.$implicit;r(2),d("src","assets/slots/"+e.slot+".png",k)("alt",e.slot),r(2),T("left","50%"),G("data-level","loading"),r(4),d("icon",y(13,ee)),r(2),U("",v(11,9,"SECTIONS.PROGRESS.SLOTS."+e.slot)," ",e.simulated?v(12,11,"SECTIONS.PROGRESS.progress-character.SIMULATED"):""),r(4),d("icon",y(14,ee))}}function Zt(n,c){if(n&1&&(a(0,"div",0)(1,"div",41),m(2,"fa-icon",42),p(3," Loading character"),s(),_(4,Ut,1,1,"app-ch
2aracter-card",43),a(5,"div",3)(6,"div",4)(7,"span"),p(8),f(9,"translate"),s(),a(10,"span"),p(11,"?"),s()(),a(12,"div",5)(13,"span"),p(14,"?"),s(),M(15,$t,1,3,"div",21,P),a(17,"span"),p(18,"?"),s()()(),a(19,"div",6),M(20,Qt,15,15,"div",44,P),s(),a(22,"div",45)(23,"div",46),m(24,"fa-icon",42),a(25,"span"),p(26,"Searching all possible rewards to determine the best course"),s()()()()),n&2){let e=h(2);r(2),d("icon",y(6,ee)),r(2),u(e.character?4:-1),r(4),C(v(9,4,"SECTIONS.PROGRESS.progress-character.MAX_POWER")),r(7),O(y(7,te)),r(5),O(e.slots),r(4),d("icon",y(8,ee))}}function Yt(n,c){if(n&1&&_(0,Gt,36,27,"div",1)(1,Zt,27,9,"div",0),n&2){let e=h();u(e.ready?0:1)}}function Xt(n,c){if(n&1&&m(0,"div",21),n&2){let e=c.$implicit;d("ngClass",R(1,ae,e<2))}}function Kt(n,c){if(n&1&&(a(0,"div",7)(1,"div",24),m(2,"img",11),s(),a(3,"div",25),m(4,"div",26)(5,"div",27),a(6,"div",28)(7,"strong"),p(8),s(),a(9,"span",29),p(10),f(11,"translate"),f(12,"translate"),s(),a(13,"span",30),p(14),s()()()()),n&2){let e=c.$implicit,t=c.$index;d("ngClass",$(17,yt,t%4>0,t%4===0)),r(2),d("src","assets/slots/"+e.slot+".png",k)("alt",e.slot),r(),d("ngClass",y(20,wt)),r(),T("left","50%"),G("data-level",1984),r(),T("width",t%4?"52%":"45%"),r(3),C(t%4===0?1978:1981),r(2),U("",v(11,13,"SECTIONS.PROGRESS.SLOTS."+e.slot)," ",e.simulated?v(12,15,"SECTIONS.PROGRESS.progress-character.SIMULATED"):""),r(4),C(t%4?"+1":"-2")}}function Jt(n,c){if(n&1&&(a(0,"div",0)(1,"div",41),p(2,"\u2193 This is an example \u2193"),s(),m(3,"app-character-card",49),a(4,"div",3)(5,"div",4)(6,"span"),p(7),f(8,"translate"),s(),a(9,"span"),p(10,"2000"),s()(),a(11,"div",5)(12,"span"),p(13,"1984"),s(),M(14,Xt,1,3,"div",21,P),a(16,"span"),p(17),s()()(),a(18,"div",6),M(19,Kt,15,21,"div",7,P),s(),a(21,"div",45)(22,"div",46),m(23,"img",50)(24,"span",15),f(25,"translate"),s()()()),n&2){let e=h();r(3),d("equipmentLevel",1984)("artifactLevel",14)("example",!0),r(4),C(v(8,7,"SECTIONS.PROGRESS.progress-character.MAX_POWER")),r(7),O(y(12,te)),r(3),C(1985),r(2),O(e.slots),r(4),d("src","assets/engram/pinnacle.png",k),r(),d("innerHTML",Q(25,9,"SECTIONS.PROGRESS.progress-character.CAN_POWERUP_WITH.pinnacle",y(13,xt)),oe)}}var en=[],ne=(()=>{class n{constructor(e,t,i){this.data=e,this.coreService=t,this.dropdownService=i,this.characterSelect=new Ce,this.overrides={3603098564:73143230,1260977951:73143230},this.slots=[{slot:w.PRIMARY,item:null},{slot:w.ENERGY,item:null},{slot:w.POWER,item:null},{slot:w.A_HELMET,item:null},{slot:w.A_ARMS,item:null},{slot:w.A_CHEST,item:null},{slot:w.A_LEGS,item:null},{slot:w.A_CLASS,item:null}],this.sortedSlots=[],this.ready=!1,this.challengeEnabled=!1,this.RANGE=30,this.UPPER_RANGE=10,this.SOFT_RANGE=100,this.SOFT_UPPER_RANGE=50,this.showChallengesMode="relevant",this.zavalaArmorStock=null,this.zavalaWeaponStock=null,this.zavalaItemsToBuy=[],this.Math=Math,this.SEASON_POWER_CAPS=j}ngOnInit(){this.filterChallenges$=new V,this.filteredChallenges=this.filterChallenges$.pipe(ie(()=>this.challengeEnabled),pe(()=>{if(this.milestones)return se(this.milestones).pipe(ie(e=>{if(this.milestoneHasSimulation(e))return!0;switch(this.showChallengesMode){case"powerful":return this.patchRewardHash(e.reward.hash)!==73143230;case"pinnacle":return this.patchRewardHash(e.reward.hash)===73143230;case"relevant":return this.isMilestoneRelevant(e);default:return!0}}),de());ce([])}))}ngOnChanges(){this.character&&this.getVendor().subscribe(()=>this.reload())}patchRewardHash(e){return this.overrides[e]||e}isMilestoneRelevant(e){return this.canPowerUpWith==="powerful"||this.canPowerUpWith==="soft"&&this.equipmentLightLevel>=this.softCap?this.milestones.filter(t=>this.patchRewardHash(t.reward.hash)!==73143230).length>0?this.patchRewardHash(e.reward.hash)!==73143230:this.patchRewardHash(e.reward.hash)===73143230:this.canPowerUpWith==="soft"||this.canPowerUpWith==="none"?!1:e.rewardProgress>0}milestoneHasSimulation(e){return this.simulations?.find(t=>t.milestone.milestone.milestoneHash===e.milestone.milestoneHash)?.slot}simulationIndex(e){return this.simulations?.findIndex(t=>t.milestone.milestone.milestoneHash===e.milestone.milestoneHash)+1}
2reload(){this.portalActivityRewards=this.getGuaranteedRewardsFromActivities(),this.exoticsEquipped={armor:0,weapons:0},this.pinnacleCap=j.pinnacleCap,this.powerfulCap=j.powerfulCap,this.softCap=j.softCap,this.simulated=!1,this.seasonPassRewardsItem=this.getSeasonPassReward();let e=0;this.slots.forEach(o=>{this.refreshSlot(o),e+=o.item?.powerLevel||0}),this.equipmentLightLevel=Math.floor(e/8),this.partsForNextLevel=e%8,this.applySimulations(),this.equipmentLightLevel<this.softCap?(this.rangeMax=Math.min(this.equipmentLightLevel-this.equipmentLightLevel%50+this.SOFT_UPPER_RANGE,this.pinnacleCap),this.currentRange=this.SOFT_RANGE):(this.rangeMax=Math.min(this.equipmentLightLevel-this.equipmentLightLevel%10+this.UPPER_RANGE,this.pinnacleCap),this.currentRange=this.RANGE),this.rangeMin=this.rangeMax-this.currentRange,this.getZavalaSlot(),this.slots.forEach(o=>this.updateSlotProgress(o));let t=(this.equipmentLightLevel-this.rangeMin)/this.currentRange;this.equipmentLightLevelPosition="calc("+Math.floor(Math.max(0,t)*100)+"% - 1px";let i=this.findAvailablePowerUp();this.canPowerUpWith=i.general,this.canPowerUpWithCampaign=i.campaign,this.milestonesNotLoaded=!1,this.itemsComponents&&this.itemsComponents.forEach(o=>o.refresh()),this.sortedSlots=[...this.slots].sort((o,l)=>l.gains.activities-o.gains.activities),this.ready=!0}getZavalaSlot(){let e=this.getZavalaStock();if(e.hasArmorToken){let t=this.slots.filter(i=>this.findZavalaItemFromCategory(i.slot)!==null&&i.slot>=w.A_HELMET&&i.slot<=w.A_CLASS).reduce((i,o)=>!i||o.item&&(!i||o.item.powerLevel<i.item.powerLevel)?o:i,null);this.zavalaArmorStock=t?{slotCategory:t.slot,item:this.findZavalaItemFromCategory(t.slot),gains:t.item?Math.max(this.equipmentLightLevel+4-t.item.powerLevel,0):0}:null}if(e.hasWeaponToken){let t=this.slots.filter(i=>this.findZavalaItemFromCategory(i.slot)!==null&&i.slot>=w.PRIMARY&&i.slot<=w.POWER).reduce((i,o)=>!i||o.item&&(!i||o.item.powerLevel<i.item.powerLevel)?o:i,null);this.zavalaWeaponStock=t?{slotCategory:t.slot,item:this.findZavalaItemFromCategory(t.slot),gains:t.item?Math.max(this.equipmentLightLevel+4-t.item.powerLevel,0):0}:null}}findZavalaItemFromCategory(e){if(!this.zavalaVendorStock||!this.zavalaVendorStock.saleItems)return null;let t=Object.keys(this.zavalaVendorStock.saleItems).find(i=>this.data.getDefinitionById("DestinyInventoryItemDefinition",this.zavalaVendorStock.saleItems[i].itemHash).itemCategoryHashes.includes(e)&&this.zavalaVendorStock.saleItems[i].saleStatus===0);return t?this.data.getDefinitionById("DestinyInventoryItemDefinition",this.zavalaVendorStock.saleItems[t].itemHash):null}applySimulations(){if(!this.simulations?.length)return;let e=this.equipmentLightLevel,t=0;this.slots.forEach(i=>i.simulatedPowerLevel=i.item.powerLevel||0);for(let i of this.simulations){let o=0;this.slots.forEach(l=>{if(i.slot===l){let g=Math.min(e+i.milestone.rewardProgress,this.pinnacleCap);l.simulatedPowerLevel=Math.max(l.simulatedPowerLevel,g),l.simulated=!0}o+=l.simulatedPowerLevel||0}),e=Math.floor(o/8),t=o%8}this.simulated=!0,this.equipmentLightLevel=e,this.partsForNextLevel=t}updateChallengeFilter(e){this.showChallengesMode=e,this.filterChallenges$.next()}findAvailablePowerUp(){let e={};if(this.equipmentLightLevel===this.pinnacleCap)return{general:"none",campaign:!1};for(let o of["seasonPass","zavala","activities","soft","powerful","pinnacle"]){let l=this.slots.reduce((x,B)=>x+B.gains[o],0),g=Math.floor(this.equipmentLightLevel+(this.partsForNextLevel+l)/8);if(g>this.equipmentLightLevel){this.powerUpToLevel=g,e.general=o;break}}e.general==="soft"&&this.calculateSoftGains(),this.zavalaItemsToBuy=[],e.general==="zavala"&&this.displayZavala();let t=this.slots.reduce((o,l)=>o+l.gains.campaign,0),i=Math.floor(this.equipmentLightLevel+(this.partsForNextLevel+t)/8);return i>this.equipmentLightLevel&&(this.powerUpToLevelWithCampaign=i,e.campaign=!0),e}displayZavala(){if(this.zavalaWeaponStock&&Math.floor(this.equipmentLightLevel+(this.partsForNextLevel+this.zavalaWeaponStock.gains)/8)>this.equipmentLightLevel){this.zavalaItemsToBuy=[this.zavalaWeaponStock.item];return}if(this.zavalaArmorStock&&Math.floor(this.equipmentLightLevel+(this.partsForNextLevel+this.zavalaArmorStock.gains)/8)>this.equipmentLightLevel){this.zavalaItemsToBuy=[this.zavalaArmorStock.item];return}this.zavalaWeaponStock?.item&&this.zavalaArmorStock?.item&&(this.zavalaItemsToBuy=[this.zavalaWeaponStock.item,this.zavalaArmorStock.item])}getSeasonPassReward(){if(!this.data.currentSeason||!this.character)return[];let e=this.data.currentSeason.seasonPassList?.find(o=>{let l=new Date(o.seasonPassStartDate),g=new Date(o.seasonPassEndDate);return l<=new Date&&g>=new Date});if(!e)return[];let t=this.data.getDefinitionById("DestinySeasonPassDefinition",e.seasonPassHash);
2if(!t)return console.warn("No season pass found"),[];this.seasonPassProgression=this.data.getDefinitionById("DestinyProgressionDefinition",t.rewardProgressionHash);let i=this.data.inventoryData.characterProgressions.data[this.character.characterId].progressions[t.rewardProgressionHash];return i?this.seasonPassProgression.rewardItems.filter((o,l)=>!!(i.rewardItemStates[l]&8)).map(o=>this.data.getDefinitionById("DestinyInventoryItemDefinition",o.itemHash)).filter(o=>o.itemType===2||o.itemType===3):[]}calculateSoftGains(){let e=this.slots.reduce((l,g)=>l+g.gains.soft,0),t=this.equipmentLightLevel+(this.partsForNextLevel+e)/8,i=Math.floor(t),o=!0;for(;o;){e=this.slots.reduce((g,x)=>g+Math.max(i-(x.simulatedPowerLevel||x.item?.powerLevel),0),0),t=this.equipmentLightLevel+(this.partsForNextLevel+e)/8;let l=i;i=Math.floor(t),l>=i&&(o=!1)}this.powerUpToLevel=i}refreshSlot(e){let t=[e.slot];e.slot>=45&&e.slot<=49&&t.push(Se.classTypeToItemCategory(this.character?.classType));let i=this.data.filterInventory({category:t});if(e.item=null,i.length){let o=W.maxBy(i,"powerLevel"),l=i.filter(x=>x.powerLevel===o.powerLevel),g=l.find(x=>x.definition.inventory.tierType===5);g||(g=l.find(x=>x.definition.inventory.tierType===6)),g||(g=l[0]),e.item=g,e.item?.definition.inventory.tierType===6&&(this.exoticsEquipped[e.item.isWeapon?"weapon":"armor"]+=1)}e.simulated=!1,e.simulatedPowerLevel=void 0}getZavalaStock(){if(!this.data.inventoryData)return{hasArmorToken:!1,hasWeaponToken:!1};let e=this.data.inventoryData.characterInventories.data[this.character.characterId];if(!e)return{hasArmorToken:!1,hasWeaponToken:!1};let t=e.items.find(o=>Le.includes(o.itemHash)&&o.quantity>0),i=e.items.find(o=>Ie.includes(o.itemHash)&&o.quantity>0);return{hasArmorToken:!!t,hasWeaponToken:!!i}}getZavalaSlotProgress(e){return!this.zavalaArmorStock&&!this.zavalaWeaponStock?0:this.zavalaWeaponStock&&this.zavalaWeaponStock.slotCategory===e.slot?this.zavalaWeaponStock.gains??0:this.zavalaArmorStock&&this.zavalaArmorStock&&this.zavalaArmorStock.slotCategory===e.slot?this.zavalaArmorStock.gains??0:0}updateSlotProgress(e){let t=e.simulatedPowerLevel??e.item?.powerLevel,i=(t-this.rangeMin)/this.currentRange,o=this.seasonPassRewardsItem?.find(g=>g.itemCategoryHashes.includes(e.slot)),l=this.portalActivityRewards?.filter(g=>g.item.itemCategoryHashes.includes(e.slot));e.progress=Math.floor(Math.min(100,Math.max(0,i)*100))+"%",e.delta=t-this.equipmentLightLevel,e.gains={campaign:t<100?Math.max(100-t,0):0,soft:t<this.softCap?Math.max(this.softCap-t,0):t<this.powerfulCap?Math.max(this.equipmentLightLevel-t,0):0,powerful:t<this.powerfulCap?Math.max(this.equipmentLightLevel-t,this.powerfulCap-t):Math.max(this.equipmentLightLevel-t,0),pinnacle:this.pinnacleCap-t,seasonPass:o?Math.max(this.equipmentLightLevel-t,0):0,activities:l.length?Math.max(this.equipmentLightLevel+this.getMaxGainForPortalActivity()-t,0):0,zavala:this.getZavalaSlotProgress(e)},o?(e.seasonPassRewardItem=o,e.seasonPassReward=this.seasonPassProgression.rewardItems.find(g=>g.itemHash===this.patchRewardHash(o.hash)),(!this.seasonPassItemWithBiggestBonusValue||Math.max(this.equipmentLightLevel-t,0)>this.seasonPassItemWithBiggestBonusValue)&&(this.seasonPassItemWithBiggestBonusValue=Math.max(this.equipmentLightLevel-t,0),this.seasonPassItemWithBiggestBonus=this.seasonPassProgression.rewardItems.find(g=>g.itemHash===this.patchRewardHash(o.hash)))):(e.seasonPassRewardItem=null,e.seasonPassReward=null),l?.length?(e.activityRewards=l.map(g=>({item:g.item,activity:this.data.getDefinitionById("DestinyActivityDefinition",g.activity),uiStyle:g.uiStyle})),e.activityRewardPowerLevel=Math.max(this.equipmentLightLevel+this.getMaxGainForPortalActivity()-t,0),(!this.activityItemWithBiggestBonusValue||Math.max(this.equipmentLightLevel+this.getMaxGainForPortalActivity()-t,0)>this.activityItemWithBiggestBonusValue)&&(this.activityItemWithBiggestBonusValue=Math.max(this.equipmentLightLevel+this.getMaxGainForPortalActivity()-t,0),this.activityItemWithBiggestBonus=e.activityRewards[0].item)):(e.activityRewards=[],e.activityRewardPowerLevel=0)}getMaxGainForPortalActivity(){return this.equipmentLightLevel<=this.powerfulCap?this.equipmentLightLevel<300?4:Math.min(3,this.powerfulCap-this.equipmentLightLevel):0}getVendor(){return this.data.loadVendor(this.character.characterId).pipe(le(e=>e.sales?.data[Ee])).pipe(ge(e=>{this.zavalaVendorStock=e}))}
2getGuaranteedRewardsFromActivities(){if(this.data.inventoryData?.characterActivities){let e=[],t=this.data.inventoryData.characterActivities.data[this.character.characterId];if(!t.availableActivities)return;for(let i of t.availableActivities)e.push(this.data.getDefinitionById("DestinyActivityDefinition",i.activityHash));return t.availableActivities.filter(i=>i.visibleRewards?.length).map(i=>i.visibleRewards.map(o=>o.rewardItems).flat().filter(o=>o.uiStyle).map(o=>({item:this.data.getDefinitionById("DestinyInventoryItemDefinition",o.itemQuantity.itemHash),activity:i.activityHash,uiStyle:o.uiStyle}))).filter(i=>i.length>0).flat()}return[]}getMilestones(){if(this.data.inventoryData?.characterProgressions){let e=this.data.inventoryData.characterProgressions.data[this.character.characterId];this.milestones=[];for(let t in e.milestones)if(e.milestones.hasOwnProperty(t)){let o=this.getMilestoneReward(e.milestones[t]).filter(l=>l.reward);o.length&&this.milestones.push(...o)}}this.milestones?.sort((e,t)=>{let i=this.milestoneHasSimulation(e),o=this.milestoneHasSimulation(t);return i&&!o?-1:o&&!i?1:t.rewardProgress-e.rewardProgress})}getMilestoneReward(e){let t={milestone:e};if(t.definition=this.data.getDefinitionById("DestinyMilestoneDefinition",e.milestoneHash),e.activities?.length){let i;if(e.activities.forEach(o=>{i?i=W.intersectionWith(i,[...o.challenges],(l,g)=>l.objective.objectiveHash===g.objective.objectiveHash):i=[...o.challenges]}),i?.length){t.objectiveProgress=i[0].objective,t.objective=this.data.getDefinitionById("DestinyObjectiveDefinition",t.objectiveProgress.objectiveHash);let o=this.data.getDefinitionById("DestinyActivityDefinition",t.objectiveProgress.activityHash);if(o){let l=o.challenges.find(g=>g.objectiveHash===t.objective.hash);t.reward=this.data.getDefinitionById("DestinyInventoryItemDefinition",l.dummyRewards[0].itemHash),t.milestone.milestoneHash===1194402836&&(t.reward=this.data.getDefinitionById("DestinyInventoryItemDefinition",3114385605)),t.reward&&(t.rewardProgress=this.getRewardProgressValue(this.patchRewardHash(t.reward.hash),e))}}}else if(e.availableQuests?.length){let i=e.availableQuests.filter(o=>!!o.status);if(i.length>0){t.objectiveProgress=i[0].status.stepObjectives[0],t.objective=this.data.getDefinitionById("DestinyObjectiveDefinition",t.objectiveProgress.objectiveHash);let o=t.definition.quests?.[i[0].questItemHash],l;if(o&&o.questRewards)l=o.questRewards.items[0].itemHash;else if(o.questItemHash){let g=this.data.getDefinitionById("DestinyInventoryItemDefinition",o.questItemHash);g?.value?.itemValue?.length&&(l=g?.value?.itemValue[0].itemHash)}l&&(t.reward=this.data.getDefinitionById("DestinyInventoryItemDefinition",l),t.milestone.milestoneHash===1194402836&&(t.reward=this.data.getDefinitionById("DestinyInventoryItemDefinition",3114385605)),t.reward&&(t.rewardProgress=this.getRewardProgressValue(this.patchRewardHash(t.reward.hash),e)))}}else if(e.rewards){let i=[];
2if(Object.keys(e.rewards).forEach(o=>{let l=e.rewards[o];l.entries?.length&&Object.keys(l.entries).forEach(g=>{let x=l.entries[g],B=t.definition.rewards[l.rewardCategoryHash].rewardEntries[x.rewardEntryHash];if(B.items?.length){let L=W.cloneDeep(t);L.reward=this.data.getDefinitionById("DestinyInventoryItemDefinition",B.items[0].itemHash),L.milestone.milestoneHash===1194402836&&(L.reward=this.data.getDefinitionById("DestinyInventoryItemDefinition",3114385605)),L.reward&&(L.rewardProgress=this.getRewardProgressValue(this.patchRewardHash(L.reward.hash),e)),L.definition.displayProperties.name=L.definition.displayProperties.name+" - "+B.displayProperties.name,L.objective={progressDescription:B.displayProperties.description,displayProperties:B.displayProperties,completionValue:1},L.objectiveProgress={progress:x.earned?1:0,complete:x.earned,completionValue:1},x.redeemed||i.push(L)}})}),i.length>0)return i}return[t]}getRewardProgressValue(e,t){switch(this.overrides[e]!==void 0&&(e=this.overrides[e]),e){case 3114385605:case 2246571627:case 4039143015:case 882778888:return this.equipmentLightLevel>=this.powerfulCap?0:Math.min(this.powerfulCap-this.equipmentLightLevel,3);case 3114385606:return this.equipmentLightLevel>=this.powerfulCap?0:Math.min(this.powerfulCap-this.equipmentLightLevel,4);case 3114385607:return this.equipmentLightLevel>=this.powerfulCap?0:Math.min(this.powerfulCap-this.equipmentLightLevel,5);case 73143230:{let i=2;return en.includes(t.milestoneHash)&&(i=1),this.equipmentLightLevel<this.powerfulCap?Math.min(this.powerfulCap+1-this.equipmentLightLevel,6):this.equipmentLightLevel<this.pinnacleCap?Math.min(this.pinnacleCap-this.equipmentLightLevel,i):0}}}selectCharacter(){this.characterSelect.emit(this.character)}clearAllSimulations(){this.simulations=[],this.reload()}devVerbose(e){this.coreService.devMode&&console.log(e)}openDropdown(e,t){this.dropdownService.openDropdown(ot,{isSimulated:!!this.milestoneHasSimulation(t),slots:this.slots,milestone:t},{top:e.clientY,left:e.clientX}).subscribe(i=>{i.clear?this.clearSimulation(i.milestone):i.selected&&this.simulateLoot(i.milestone,i.selected)})}simulateLoot(e,t){this.simulations||(this.simulations=[]);let i=this.simulations.findIndex(o=>o.milestone.milestone.milestoneHash===e.milestone.milestoneHash);i>-1&&this.simulations.splice(i,1),this.simulations.push({milestone:e,slot:t}),this.reload()}clearSimulation(e){this.simulations||(this.simulations=[]);let t=this.simulations.findIndex(i=>i.milestone.milestone.milestoneHash===e.milestone.milestoneHash);t>-1&&this.simulations.splice(t,1),this.reload()}static{this.\u0275fac=function(t){return new(t||n)(b(X),b(Y),b(Ae))}}static{this.\u0275cmp=D({type:n,selectors:[["app-progress-character"]],viewQuery:function(t,i){if(t&1&&H(K,5),t&2){let o;F(o=z())&&(i.itemsComponents=o)}},inputs:{character:"character",selected:"selected",example:"example"},outputs:{characterSelect:"characterSelect"},standalone:!1,features:[_e],decls:2,vars:1,consts:[[1,"progress-ctn"],[1,"progress-ctn",3,"ngClass"],[3,"click","characterId","equipmentLevel","artifactLevel"],[1,"power-progress"],[1,"equipment-level"],[1,"progress-level-bars"],[1,"items"],[1,"item-bar",3,"ngClass"],[1,"exotic-warning"],[1,"valid-course",3,"click"],[1,"general",3,"ngClass"],[3,"src","alt"],["iconOnly","true",3,"hash"],["iconOnly","true",3,"item"],[1,"stacked-icons"],[3,"innerHTML"],[1,"rewards"],[1,"section-title"],[1,"clear-btn"],[1,"hint"],[1,"activities"],[1,"bar",3,"ngClass"],[1,"bar","active"],[3,"inventoryItem","iconOnly","crTooltip","displayScore","crTooltipOptions"],[1,"image"],[1,"item-level-bar",3,"ngClass"],[1,"level-vertical-bar"],[1,"progress-bg"],[1,"progress-text"],[1,"slot-name"],[1,"delta"],[3,"icon"],[1,"clear-btn",3,"click"],[1,"activity-card",3,"highlight","background-image"],[1,"activity-card"],[1,"activity-card-content"],[1,"reward-icon"],[1,"item-icon"],[1,"power"],[1,"power-gains"],[1,"gain"],[1,"warning"],["animation","spin",3,"icon"],[3,"characterId"],[1,"item-bar"],[1,"valid-course"],[1,"general","pinnacle"],[1,"item-level-bar"],[1,"progress-bg","loading"],[3,"equipmentLevel","artifactLevel","example"],["alt","pinnacle",3,"src"]],template:function(t,i){t&1&&_(0,Yt,2,1)(1,Jt,26,14,"div",0),t&2&&u(i.example?1:0)},dependencies:[Z,K,Je,et,qe,Ne,N],styles:[`.progress-ctn[_ngcontent-%COMP%]{width:400px;background:var(--box-secondary)}.progress-ctn[_ngcontent-%COMP%]   .warning[_ngcontent-%COMP%]{padding:1em;text-align:center;font-weight:700;background:var(--box-primary);text-transform:uppercase}.progress-ctn.selected[_ngcontent-%COMP%]{width:1100px;margin:0 auto;display:grid;grid-template-columns:400px 700px;grid-template-rows:min-content 90px 550px 85px;grid-template-areas:"character-card course" "progress rewards" "items rewards" "exotic rewards"}.progress-ctn.selected[_ngcontent-%COMP%]   .power-progress[_ngcontent-%COMP%]{grid-area:progress}.progress-ctn.selected[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]{grid-area:character-card}.progress-ctn.selected[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]     .character-card:hover:before{content:"Unselect character"!important}.progress-ctn.selected[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]{grid-area:items}.progress-ctn.selected[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]{grid-area:course}.progress-ctn.selected[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]{grid-area:rewards;overflow-y:auto;overflow-x:visible}.progress-ctn.selected[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.progress-ctn.selected[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   .reward[_ngcontent-%COMP%]{justify-content:flex-end;
2gap:1em}.progress-ctn.collapsed[_ngcontent-%COMP%]   .power-progress[_ngcontent-%COMP%], .progress-ctn.collapsed[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%], .progress-ctn.collapsed[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%], .progress-ctn.collapsed[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]{display:none}.progress-ctn[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]  .character-card{max-width:inherit;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.progress-ctn[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]  .character-card:hover{filter:brightness(1.25)}.progress-ctn[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]  .character-card:hover:before{content:"Select character";position:absolute;top:50%;transform:translate(-50%,-50%);left:50%;padding:1em;background-color:#000d;color:#fff}.progress-ctn[_ngcontent-%COMP%]   app-character-card[_ngcontent-%COMP%]  .character-card:active{filter:brightness(.8)}.progress-ctn[_ngcontent-%COMP%]   .equipment-level[_ngcontent-%COMP%]{padding:.5em 1em;display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-weight:700}.progress-ctn[_ngcontent-%COMP%]   .equipment-level[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{flex:1}.progress-ctn[_ngcontent-%COMP%]   .equipment-level[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{color:var(--bungie-gold-light)}.progress-ctn[_ngcontent-%COMP%]   .progress-level-bars[_ngcontent-%COMP%]{display:grid;padding:.5em 1em;gap:5px;grid-template-columns:repeat(10,1fr);align-items:center}.progress-ctn[_ngcontent-%COMP%]   .progress-level-bars[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{opacity:.7}.progress-ctn[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]{height:5px;background-color:#666}.progress-ctn[_ngcontent-%COMP%]   .bar.active[_ngcontent-%COMP%]{background-color:var(--dr-blue)}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]{padding:1em;display:flex}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]:hover{background:#2f2f2f;cursor:pointer}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:.75em;background-color:#1f1f1f}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general[_ngcontent-%COMP%], .progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .campaign[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .campaign[_ngcontent-%COMP%]{align-items:flex-start;gap:.5em;opacity:.8;font-size:.8em}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general.soft[_ngcontent-%COMP%]     strong{color:#008cff}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general.powerful[_ngcontent-%COMP%]     strong{color:var(--legendary-item)}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general.pinnacle[_ngcontent-%COMP%]     strong{color:var(--exotic-item)}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general.seasonPass[_ngcontent-%COMP%]     strong{color:var(--legendary-item)}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:36px}.progress-ctn[_ngcontent-%COMP%]   .valid-course[_ngcontent-%COMP%]   .general[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:1em}@media screen and (max-width:1150px){.progress-ctn.selected[_ngcontent-%COMP%]{width:900px;grid-template-columns:400px 500px}}@media screen and (max-width:950px){.progress-ctn.selected[_ngcontent-%COMP%]{width:400px;grid-template-columns:400px;grid-template-areas:"character-card" "progress" "items" "exotic" "course" "rewards"}}.dropdown[_ngcontent-%COMP%]{z-index:200;position:fixed;background-color:#000;display:block}.dropdown[_ngcontent-%COMP%]   .possible-drop[_ngcontent-%COMP%]{color:#fff;white-space:nowrap;cursor:pointer;padding:.5em;display:flex;flex-direction:row;align-items:center;gap:.5em}.dropdown[_ngcontent-%COMP%]   .possible-drop[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:24px;width:24px}.dropdown[_ngcontent-%COMP%]   .possible-drop.clear[_ngcontent-%COMP%]{background-color:#fff1}.dropdown[_ngcontent-%COMP%]   .possible-drop[_ngcontent-%COMP%]:hover{background-color:#fff3}.dropdown[_ngcontent-%COMP%]   .possible-drop[_ngcontent-%COMP%]:active{background-color:#fff1}.exotic-warning[_ngcontent-%COMP%]{grid-area:exotic;padding:1em;background-color:hsla(var(--exotic),.2);font-size:.9em;color:#fffc}.exotic-warning[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{padding-right:.25em;opacity:.8}.error[_ngcontent-%COMP%]{background-color:#f002;padding:1em}.activities[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1em;padding:1em;box-sizing:border-box}.activity-card[_ngcontent-%COMP%]{box-shadow:0 0 5px #0003;height:150px;gap:.5em;background-size:cover;background-repeat:no-repeat;border-radius:5px;position:relative}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]{justify-content:flex-end;display:flex;flex-direction:column;align-items:baseline;height:100%;padding:1em;box-sizing:border-box;background:linear-gradient(to top,rgba(0,0,0,.7) 30%,transparent)}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1em;align-items:center;justify-content:flex-start}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{position:relative}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]   .power[_ngcontent-%COMP%]{position:absolute;bottom:7px;background:#efefef;right:6px;z-index:100;color:#000;padding:1px 3px;box-sizing:border-box;font-size:.7em}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]   .power-gains[_ngcontent-%COMP%]{display:flex;flex-direction:column}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]   .gain[_ngcontent-%COMP%]{font-weight:700;color:var(--dr-blue);font-size:1.5em;display:flex;align-items:center;justify-content:flex-start;gap:5px}.activity-card[_ngcontent-%COMP%]   .activity-card-content[_ngcontent-%COMP%]   .reward-icon[_ngcontent-%COMP%]   .gain[_ngcontent-%COMP%]   .bar[_ngcontent-%COMP%]{width:15px;height:3px}.activity-card.highlight[_ngcontent-%COMP%]{box-shadow:0 0 10px #ffd700cc}.activity-card.highlight[_ngcontent-%COMP%]:after{position:absolute;top:0;right:0;padding:3px 5px;font-size:.8em;content:"Guaranteed";color:#fff;background:#ffd700cc;border-bottom-left-radius:3px}
3/*# sourceMappingURL=progress-character.component-74STAOXT.css.map */`,`.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]{padding:.5em 1em;position:relative;margin-bottom:1em}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;width:100%}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{height:48px;width:48px;margin:.5em;box-sizing:border-box}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:48px;border:1px solid #CDCDCD}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .level-vertical-bar[_ngcontent-%COMP%]{position:absolute;top:0;bottom:-1em;width:2px;background-color:var(--bungie-gold-light);opacity:.8;z-index:2;align-items:center}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]:last-child   .level-vertical-bar[_ngcontent-%COMP%]{bottom:0}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]:last-child   .level-vertical-bar[_ngcontent-%COMP%]:after{content:attr(data-level);bottom:-1.5em;color:var(--bungie-gold-light);opacity:.9;position:absolute;transform:translate(-50%)}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .item-level-bar[_ngcontent-%COMP%]{flex:1;height:48px;border:1px solid #666;border-left:0;margin-left:-5px;background-color:var(--box-primary);padding-left:.5em;padding-right:.5em;display:flex;align-items:center;position:relative}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .item-level-bar[_ngcontent-%COMP%]   .progress-bg[_ngcontent-%COMP%]{position:absolute;
3left:0;top:0;bottom:0;height:48px;background-color:#ddd3;z-index:1;transition:all .25s ease}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .item-level-bar[_ngcontent-%COMP%]   .progress-bg.loading[_ngcontent-%COMP%]{background:linear-gradient(90deg,#fff8,#fff1);width:100%;animation:_ngcontent-%COMP%_loading .5s infinite linear}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .item-level-bar.simulated[_ngcontent-%COMP%]   .progress-text[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:var(--bungie-gold-light)}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .item-level-bar.simulated[_ngcontent-%COMP%]   .progress-bg[_ngcontent-%COMP%]{background-color:rgba(var(--bungie-gold-rgb),.2)}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .item-level-bar[_ngcontent-%COMP%]   .progress-text[_ngcontent-%COMP%]{display:flex;flex:1;align-items:center;z-index:3}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .item-level-bar[_ngcontent-%COMP%]   .progress-text[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{margin-right:5px;font-size:1.2em}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .item-level-bar[_ngcontent-%COMP%]   .progress-text[_ngcontent-%COMP%]   .slot-name[_ngcontent-%COMP%]{flex:1}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar[_ngcontent-%COMP%]   .item-level-bar[_ngcontent-%COMP%]   .progress-text[_ngcontent-%COMP%]   .delta[_ngcontent-%COMP%]{font-weight:700;z-index:5;font-size:1.2em}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar.pos[_ngcontent-%COMP%]   .progress-text[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%], .progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar.pos[_ngcontent-%COMP%]   .delta[_ngcontent-%COMP%]{color:#23cb47}.progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar.neg[_ngcontent-%COMP%]   .progress-text[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%], .progress-ctn[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .item-bar.neg[_ngcontent-%COMP%]   .delta[_ngcontent-%COMP%]{color:#570000}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .no-challenges[_ngcontent-%COMP%]{padding:1em}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{padding:1em;font-size:1.2em;text-align:center;border-top:1px solid #666;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background-color:var(--box-primary)}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{text-align:left}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{opacity:.8;font-size:.7em}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .hint[_ngcontent-%COMP%]{padding:1em;margin:0;font-size:.9em;color:#fffc;border-bottom:1px solid rgba(255,255,255,.5333333333);background:#fff2}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]{display:grid;grid-gap:8px;padding:.5em;grid-template-columns:auto min-content;align-items:center;grid-template-areas:"details simulate" "objective objective"}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .simulation[_ngcontent-%COMP%]{grid-area:simulate;position:relative}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .simulation[_ngcontent-%COMP%]   .simulate-button[_ngcontent-%COMP%]{--size: 36px;height:var(--size);width:var(--size);background-color:var(--box-primary);border:2px dashed rgba(204,204,204,.1333333333);border-radius:5px;cursor:pointer;display:flex;align-items:center;justify-content:center;position:relative;color:#fff9}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .simulation[_ngcontent-%COMP%]   .simulate-button[_ngcontent-%COMP%]:hover{background-color:var(--box-secondary)}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .simulation[_ngcontent-%COMP%]   .simulate-button[_ngcontent-%COMP%]:active{background-color:var(--box-primary-border)}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .simulation[_ngcontent-%COMP%]   .simulate-button.active[_ngcontent-%COMP%]{border-style:solid}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .simulation[_ngcontent-%COMP%]   .simulate-button.active[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:var(--size);width:var(--size)}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .simulation[_ngcontent-%COMP%]   .simulate-button[_ngcontent-%COMP%]   .index[_ngcontent-%COMP%]{color:#fff;background-color:var(--box-primary);padding:2px;position:absolute;font-size:.7em;bottom:2px;right:2px}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{margin-bottom:5px;font-weight:700}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{width:100%;
3grid-area:details}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .objective[_ngcontent-%COMP%]{width:100%;grid-area:objective}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .reward[_ngcontent-%COMP%]{opacity:.8;font-size:.95em;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;margin-bottom:5px}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .reward[_ngcontent-%COMP%]   .reward-name[_ngcontent-%COMP%]{flex:1}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .reward[_ngcontent-%COMP%]   .delta[_ngcontent-%COMP%]{color:var(--bungie-gold-light);font-weight:700}.progress-ctn[_ngcontent-%COMP%]   .rewards[_ngcontent-%COMP%]   .activity[_ngcontent-%COMP%]   .reward[_ngcontent-%COMP%]   .delta.none[_ngcontent-%COMP%]{color:#ccc}@keyframes _ngcontent-%COMP%_loading{0%{width:0;opacity:1}to{width:100%;opacity:0}}
4/*# sourceMappingURL=progress-item-CL2JORPD.css.map */`]})}}return n})();var rt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=D({type:n,selectors:[["app-ad-instant-gaming"]],decls:5,vars:0,consts:[[1,"instant-banner","instant-banner-md"],[1,"ig-new-banner-block"],["href","https://go.expressvpn.com/c/6925314/3784871/16063","target","_blank","rel","sponsored nofollow",1,"ig-new-banner"],["src","/assets/partners/ExpressRegular_Web_Desktop_v3.png",1,"ig-new-banner-img","ig-new-banner-lg"],["src","/assets/partners/ExpressRegular_Web_Mobile_v3.png",1,"ig-new-banner-img","ig-new-banner-sm"]],template:function(t,i){t&1&&(Pe(0,"div",0)(1,"div",1)(2,"a",2),Oe(3,"img",3)(4,"img",4),Me()()())},styles:[`.ig-new-banner[_ngcontent-%COMP%]{max-width:100%;margin:10px auto;border:2px solid #57290d;border-radius:6px;box-shadow:0 0 5px #00000080;overflow:hidden;background:#090909;display:inline-block;-webkit-transition:all .15s ease-out;-moz-transition:all .15s ease-out;-o-transition:all .15s ease-out;transition:all .15s ease-out}.ig-new-banner[_ngcontent-%COMP%] > .ig-new-banner-img[_ngcontent-%COMP%]{display:block;height:auto;max-width:100%}.ig-new-banner[_ngcontent-%COMP%] > .ig-new-banner-img.ig-new-banner-sm[_ngcontent-%COMP%]{display:none}.ig-new-banner[_ngcontent-%COMP%]:hover, .ig-new-banner[_ngcontent-%COMP%]:focus{border-color:#ff3131}@media(max-width:525px){.ig-new-banner[_ngcontent-%COMP%] > .ig-new-banner-img.ig-new-banner-lg[_ngcontent-%COMP%]{display:none}.ig-new-banner[_ngcontent-%COMP%] > .ig-new-banner-img.ig-new-banner-sm[_ngcontent-%COMP%]{display:block}.ig-new-banner[_ngcontent-%COMP%]{width:auto;max-width:100%}}
5/*# sourceMappingURL=ad-instant-gaming.component-F7F2AFEF.css.map */`]})}}return n})();var on=["sideRail"],rn=n=>({"has-selected":n}),an=n=>({selected:n});function sn(n,c){n&1&&(a(0,"div",2),m(1,"app-ad-instant-gaming"),s())}function cn(n,c){if(n&1){let e=A();a(0,"app-progress-character",11),S("characterSelect",function(i){I(e);let o=h(2);return E(o.selectCharacter(i))}),s()}if(n&2){let e=c.$implicit,t=h(2);d("character",e)("selected",t.selected)("ngClass",R(3,an,t.selected===e))}}function ln(n,c){if(n&1&&(a(0,"div",6),M(1,cn,1,5,"app-progress-character",10,P),s()),n&2){let e=h();d("ngClass",R(1,rn,!!e.selected)),r(),O(e.characters)}}function pn(n,c){n&1&&m(0,"app-should-login")}function dn(n,c){n&1&&(a(0,"div"),p(1," Loading your characters... Please wait "),s())}function gn(n,c){if(n&1&&(a(0,"div",7),_(1,pn,1,0,"app-should-login"),_(2,dn,2,0,"div"),m(3,"app-progress-character",12),s()),n&2){let e=h();r(),u(e.coreService.components[e.LoadingComponent.AUTH]&&!e.authService.authenticated?1:-1),r(),u(e.coreService.components[e.LoadingComponent.AUTH]&&e.authService.authenticated?2:-1),r(),d("example",!0)}}var at=(()=>{class n{constructor(e,t,i,o,l){this.coreService=e,this.authService=t,this.recipesApi=i,this.voltron=o,this.data=l,this.LoadingComponent=q}ngOnInit(){this.authenticated=this.authService.authenticated,this.authenticated&&this.load(),this.authService.authChanged.subscribe(e=>{this.authenticated=e,this.authenticated&&this.load()})}ngOnDestroy(){this.sideRail?.destroy()}load(){if(this.loaded)return;this.loaded=!0;let e=[q.MANIFEST,q.INVENTORY,q.VOLTRON];this.coreService.loadComponents(e),this.coreService.waitAll(e).subscribe(()=>{this.reloadCharacterCards(),this.refreshInterval&&clearInterval(this.refreshInterval),this.refreshInterval=setInterval(this.refresh.bind(this),3e4)})}refresh(){this.reloading||(this.reloading=!0,this.coreService.loadComponents([q.INVENTORY],{force:!0,background:!0}),this.coreService.waitFor(q.INVENTORY).subscribe({next:()=>{this.reloading=!1,this.reloadCharacterCards()},error:()=>{this.reloading=!1}}))}reloadCharacterCards(){if(this.data?.inventoryData?.characters?.data){let e=[];for(let t in this.data.inventoryData.characters.data)this.data.inventoryData.characters.data.hasOwnProperty(t)&&e.push(this.data.inventoryData.characters.data[t]);!this.characters||e.some(t=>this.characters.findIndex(i=>t.characterId===i.characterId)===-1)?this.characters=e:this.characterComponents.forEac
5h(t=>t.reload())}}selectCharacter(e){this.selected?.characterId===e?.characterId?this.selected=void 0:this.selected=e}static{this.\u0275fac=function(t){return new(t||n)(b(Y),b(Te),b(Be),b(ke),b(X))}}static{this.\u0275cmp=D({type:n,selectors:[["app-progress"]],viewQuery:function(t,i){if(t&1&&H(on,5)(ne,5),t&2){let o;F(o=z())&&(i.sideRail=o.first),F(o=z())&&(i.characterComponents=o)}},hostBindings:function(t,i){t&1&&S("unloaded",function(){return i.ngOnDestroy()})},standalone:!1,decls:15,vars:11,consts:[["sideRail",""],[1,"container"],[1,"banner",2,"max-width","100%"],[1,"subtitle"],[1,"top-info"],[3,"refresh","refreshing"],[1,"characters",3,"ngClass"],[1,"characters","vertical"],["size","sideRail","bannerId","rail-progress",3,"hideBreakpoint"],["size","video","bannerId","video-progress"],[3,"character","selected","ngClass"],[3,"characterSelect","character","selected","ngClass"],[3,"example"]],template:function(t,i){t&1&&(a(0,"div",1),_(1,sn,2,0,"div",2),a(2,"h1"),p(3),f(4,"translate"),s(),a(5,"p",3),p(6),f(7,"translate"),s(),a(8,"div",4)(9,"app-bungie-card",5),S("refresh",function(){return i.refresh()}),s()(),_(10,ln,3,3,"div",6),_(11,gn,4,3,"div",7),s(),m(12,"app-ad",8,0)(14,"app-ad",9)),t&2&&(r(),u(i.coreService.adsDisabled?-1:1),r(2),C(v(4,7,"TOOLS.PROGRESS.NAME")),r(3),C(v(7,9,"SECTIONS.PROGRESS.SUBTITLE")),r(3),d("refreshing",i.reloading),r(),u(i.coreService.components[i.LoadingComponent.INVENTORY]?10:-1),r(),u(i.coreService.components[i.LoadingComponent.INVENTORY]?-1:11),r(),d("hideBreakpoint",900))},dependencies:[Z,We,nt,je,rt,ne,N],styles:[`.characters[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,400px);width:100%;margin:0 auto;justify-content:center;grid-gap:2em}.characters.vertical[_ngcontent-%COMP%]{grid-template-columns:400px}.characters.has-selected[_ngcontent-%COMP%]{grid-template-columns:100%;grid-template-areas:"selected"}.characters.has-selected[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{grid-area:selected}.characters.has-selected[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(.selected){display:none}.characters.has-selected[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(.selected):first-child{grid-area:second}.characters.has-selected[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(.selected):last-child{grid-area:last}.banner[_ngcontent-%COMP%]{padding:1em 0;max-width:100%}.banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%}
6/*# sourceMappingURL=progress.component-H6K653AC.css.map */`]})}}return n})();var mi=(()=>{class n{constructor(e){this.library=e,e.addIcons(Ze,Qe,Xe,Ue,Ye,$e,Ve,Ge)}static{this.\u0275fac=function(t){return new(t||n)(he(ze))}}static{this.\u0275mod=ve({type:n})}static{this.\u0275inj=me({imports:[we,tt,Re.forChild({extend:!0}),be.forChild([{path:"",component:at,data:{title:"PAGE_TITLES.PROGRESS"}}]),He,De,Ke]})}}return n})();export{mi as ProgressModule};

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.