-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathchunk-BFFABMML.js
2 lines (2 loc) · 28.7 KB
/
chunk-BFFABMML.js
1
2
import{a as Xt}from"./chunk-IAQLQ4AY.js";import{d as te,e as ee}from"./chunk-Z2EVLKY2.js";import{b as Ut}from"./chunk-PBIPOVA6.js";import{b as Jt}from"./chunk-ZRFPTSRT.js";import{f as Gt}from"./chunk-SPZX4ZIV.js";import{c as Nt,d as nt,f as $,g as Q,h as ot}from"./chunk-72KMKTKB.js";import{d as At,e as Zt,h as at}from"./chunk-DL6SABIV.js";import{c as N,j as Vt,k as qt,n as jt,o as it,q as E,r as Ht,t as Qt}from"./chunk-JR4OZW53.js";import{c as Yt}from"./chunk-4JHZ4AP3.js";import{$ as k,$a as bt,$b as Mt,Aa as yt,Ab as s,Ba as C,Bb as j,Da as Y,Db as kt,Ea as v,Ga as D,Ia as h,Ib as H,Ja as m,Jb as z,Jc as $t,Kb as Pt,La as O,Lb as Ot,Ld as Wt,Ma as S,Na as b,Nb as et,Nd as Kt,Oa as o,P as st,Pa as a,Qa as I,Qb as Dt,S as T,Sb as Lt,T as B,Ta as L,U as ct,Ua as G,Ub as Ft,V as mt,Va as F,Wa as c,Xa as Tt,Xb as Rt,Ya as gt,Yb as A,Za as St,_ as w,_b as zt,ab as It,ac as Z,ba as W,bb as Et,cb as Bt,db as J,ea as K,eb as r,fa as _t,fb as d,gb as q,hb as R,ia as P,ja as ut,ka as ft,pa as Ct,pb as wt,qa as i,ra as g,rb as X,sb as tt,ua as xt,xa as vt,ya as ht,za as U,zb as p}from"./chunk-YDUZY7N5.js";var Fi=(()=>{class e{constructor(){this.contentSvc=T(Ut),this.pDropdown=T(Gt,{self:!0}),this.labDropdownBase=P(),this.setAutoFocusFilter=et(()=>{let t=this.contentSvc.isMobile();this.pDropdown.autofocusFilter=!t}),this.setStyleClass=et(()=>{this.pDropdown.styleClass=this.labDropdownBase()})}ngOnInit(){this.pDropdown.appendTo="body",this.pDropdown.filter=!0,this.pDropdown.scrollHeight="40vh",this.pDropdown.panelStyleClass="tooltip"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=mt({type:e,selectors:[["","labDropdownBase",""]],inputs:{labDropdownBase:[1,"labDropdownBase"]},standalone:!0})}}return e})();var oe=["*"],ae=(e,l)=>({showTransitionParams:e,hideTransitionParams:l}),le=(e,l)=>({value:e,params:l});function re(e,l){e&1&&L(0)}function pe(e,l){e&1&&I(0,"TimesIcon",8),e&2&&v("styleClass","p-overlaypanel-close-icon")}function de(e,l){}function se(e,l){e&1&&C(0,de,0,0,"ng-template")}function ce(e,l){if(e&1&&(o(0,"span",9),C(1,se,1,0,null,3),a()),e&2){let t=c(3);i(),v("ngTemplateOutlet",t.closeIconTemplate)}}function me(e,l){if(e&1){let t=G();o(0,"button",5),F("click",function(_){w(t);let u=c(2);return k(u.onCloseClick(_))})("keydown.enter",function(){w(t);let _=c(2);return k(_.hide())}),C(1,pe,1,1,"TimesIcon",6)(2,ce,2,1,"span",7),a()}if(e&2){let t=c(2);Y("aria-label",t.ariaCloseLabel),i(),v("ngIf",!t.closeIconTemplate),i(),v("ngIf",t.closeIconTemplate)}}function _e(e,l){if(e&1){let t=G();o(0,"div",1),F("click",function(_){w(t);let u=c();return k(u.onOverlayClick(_))})("@animation.start",function(_){w(t);let u=c();return k(u.onAnimationStart(_))})("@animation.done",function(_){w(t);let u=c();return k(u.onAnimationEnd(_))}),o(1,"div",2),F("click",function(_){w(t);let u=c();return k(u.onContentClick(_))})("mousedown",function(_){w(t);let u=c();return k(u.onContentClick(_))}),gt(2),C(3,re,1,0,"ng-container",3),a(),C(4,me,3,3,"button",4),a()}if(e&2){let t=c();h(t.styleClass),v("ngClass","p-overlaypanel p-component")("ngStyle",t.style)("@animation",tt(13,le,t.overlayVisible?"open":"close",tt(10,ae,t.showTransitionOptions,t.hideTransitionOptions))),Y("aria-modal",t.overlayVisible)("aria-label",t.ariaLabel)("aria-labelledBy",t.ariaLabelledBy),i(3),v("ngTemplateOutlet",t.contentTemplate),i(),v("ngIf",t.showCloseIcon)}}var rt=(()=>{class e{document;platformId;el;renderer;cd;zone;config;overlayService;ariaLabel;ariaLabelledBy;dismissable=!0;showCloseIcon;style;styleClass;appendTo="body";autoZIndex=!0;ariaCloseLabel;baseZIndex=0;focusOnShow=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onShow=new K;onHide=new K;templates;container;overlayVisible=!1;render=!1;isOverlayAnimationInProgress=!1;selfClick=!1;documentClickListener;target;willHide;scrollHandler;documentResizeListener;contentTemplate;closeIconTemplate;destroyCallback;overlayEventListener;overlaySubscription;constructor(t,n,_,u,x,y,M,V){this.document=t,this.platformId=n,this.el=_,this.renderer=u,this.cd=x,this.zone=y,this.config=M,this.overlayService=V}ngAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"content":this.contentTemplate=t.template;break;case"closeicon":this.closeIconTemplate=t.template;break;default:this.contentTemplate=t.template;break}this.cd.markForCheck()})}bindDocumentClickListener(){if(Z(this.platformId)&&!this.documentClickListener&&this.dismissable){let t=E.isIOS()?"touchstart":"click",n=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(n,t,_=>{!this.container?.contains(_.target)&&this.target!==_.target&&!this.target.contains(_.target)&&!this.selfClick&&this.hide(),this.selfClick=!1,this.cd.markForCheck()})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(t,n){this.isOverlayAnimationInProgress||(this.overlayVisible?(this.hasTargetChanged(t,n)&&(this.destroyCallback=()=>{this.show(null,n||t.currentTarget||t.target)}),this.hide()):this.show(t,n))}show(t,n){n&&t&&t.stopPropagation(),!this.isOverlayAnimationInProgress&&(this.target=n||t.currentTarget||t.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck())}onOverlayClick(t){this.overlayService.add({originalEvent:t,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(t){let n=t.target;this.selfClick=t.offsetX<n.clientWidth&&t.offsetY<n.clientHeight}hasTargetChanged(t,n){return this.target!=null&&this.target!==(n||t.currentTarget||t.target)}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.container):E.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}align(){this.autoZIndex&&N.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),E.absolutePosition(this.container,this.target,!1);let t=E.getOffset(this.container),n=E.getOffset(this.target),_=this.document.defaultView?.getComputedStyle(this.container).getPropertyValue("border-radius"),u=0;t.left<n.left&&(u=n.left-t.left-parseFloat(_)*2),this.container?.style.setProperty("--overlayArrowLeft",`${u}px`),t.top<n.top&&(E.addClass(this.container,"p-overlaypanel-flipped"),this.showCloseIcon&&this.renderer.setStyle(this.container,"margin-top","-30px"))}onAnimationStart(t){t.toState==="open"&&(this.container=t.element,this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=n=>{this.container&&this.container.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)),this.isOverlayAnimationInProgress=!0}onAnimationEnd(t){switch(t.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&N.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1;break}this.isOverlayAnimationInProgress=!1}focus(){let t=E.findSingle(this.container,"[autofocus]");t&&this.zone.runOutsideAngular(()=>{setTimeout(()=>t.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(t){this.hide(),t.preventDefault()}onEscapeKeydown(t){this.hide()}onWindowResize(){this.overlayVisible&&!E.isTouchDevice()&&this.hide()}bindDocumentResizeListener(){if(Z(this.platformId)&&!this.documentResizeListener){let t=this.document.defaultView;this.documentResizeListener=this.renderer.listen(t,"resize",this.onWindowResize.bind(this))}}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){Z(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new Ht(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&N.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)(g(Dt),g(ft),g(ut),g(xt),g(H),g(_t),g(qt),g(Vt))};static \u0275cmp=B({type:e,selectors:[["p-overlayPanel"]],contentQueries:function(n,_,u){if(n&1&&St(u,jt,4),n&2){let x;bt(x=It())&&(_.templates=x)}},hostAttrs:[1,"p-element"],hostBindings:function(n,_){n&1&&F("keydown.escape",function(x){return _.onEscapeKeydown(x)},!1,Ct)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",dismissable:[2,"dismissable","dismissable",z],showCloseIcon:[2,"showCloseIcon","showCloseIcon",z],style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:[2,"autoZIndex","autoZIndex",z],ariaCloseLabel:"ariaCloseLabel",baseZIndex:[2,"baseZIndex","baseZIndex",Pt],focusOnShow:[2,"focusOnShow","focusOnShow",z],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},features:[yt],ngContentSelectors:oe,decls:1,vars:1,consts:[["role","dialog",3,"ngClass","ngStyle","class","click",4,"ngIf"],["role","dialog",3,"click","ngClass","ngStyle"],[1,"p-overlaypanel-content",3,"click","mousedown"],[4,"ngTemplateOutlet"],["type","button","class","p-overlaypanel-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],["type","button","pRipple","",1,"p-overlaypanel-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],["class","p-overlaypanel-close-icon",4,"ngIf"],[3,"styleClass"],[1,"p-overlaypanel-close-icon"]],template:function(n,_){n&1&&(Tt(),C(0,_e,5,16,"div",0)),n&2&&v("ngIf",_.render)},dependencies:()=>[Lt,Ft,A,Rt,At,at],styles:[`@layer primeng{.p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.p-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after{border-bottom-color:transparent}.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}}
`],encapsulation:2,data:{animation:[Nt("animation",[Q("void",$({transform:"scaleY(0.8)",opacity:0})),Q("close",$({opacity:0})),Q("open",$({transform:"translateY(0)",opacity:1})),ot("void => open",nt("{{showTransitionParams}}")),ot("open => close",nt("{{hideTransitionParams}}"))])]},changeDetection:0})}return e})(),nn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ct({type:e});static \u0275inj=st({imports:[Mt,Zt,it,at,it]})}return e})();var ie=(()=>{class e{constructor(){this.cancel=vt(!1)}onHide(){this.cancel()||this.save()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=B({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,_){},encapsulation:2})}}return e})(),pn=(()=>{class e extends ie{constructor(){super(...arguments),this.ref=T(H),this.visible=!1}hide(t){t===!0&&this.cancel.set(t),this.visible=!1}show(){this.cancel.set(!1),this.visible=!0,this.ref.markForCheck()}static{this.\u0275fac=(()=>{let t;return function(_){return(t||(t=W(e)))(_||e)}})()}static{this.\u0275cmp=B({type:e,selectors:[["ng-component"]],features:[U],decls:0,vars:0,template:function(n,_){},encapsulation:2})}}return e})(),dn=(()=>{class e extends ie{constructor(){super(...arguments),this.overlayPanel=ht.required(rt)}hide(t){t===!0&&this.cancel.set(t),this.overlayPanel().hide()}_show(t){this.cancel.set(!1),this.overlayPanel().toggle(t)}static{this.\u0275fac=(()=>{let t;return function(_){return(t||(t=W(e)))(_||e)}})()}static{this.\u0275cmp=B({type:e,selectors:[["ng-component"]],viewQuery:function(n,_){n&1&&Et(_.overlayPanel,rt,5),n&2&&Bt()},features:[U],decls:0,vars:0,template:function(n,_){},encapsulation:2})}}return e})();var pt=(e,l)=>l.key,ne=e=>({recipe:e});function ue(e,l){e&1&&L(0)}function fe(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c(),n=c(3);D("error-text",n.data().flags.has("minimumFactor")&&t.consumption.eq(n.recipeSvc.minFactor)),i(2),d(s(3,4,"data.energyConsumption")),i(3),d(s(6,6,t.consumption.sub(n.rational.one)))}}function Ce(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c(),n=c(3);D("error-text",n.data().flags.has("minimumFactor")&&t.speed.eq(n.recipeSvc.minFactor)),i(2),d(s(3,4,"data.speed")),i(3),d(s(6,6,t.speed.sub(n.rational.one)))}}function xe(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c(),n=c(3);D("error-text",n.data().flags.has("maximumFactor")&&t.productivity.eq(n.recipeSvc.maxFactor)),i(2),d(s(3,4,"data.productivity")),i(3),d(s(6,6,t.productivity.sub(n.rational.one)))}}function ve(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c(),n=c(3);D("error-text",n.data().flags.has("minimumFactor")&&t.pollution.eq(n.recipeSvc.minFactor)),i(2),d(s(3,4,"data.pollution")),i(3),d(s(6,6,t.pollution.sub(n.rational.one)))}}function he(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.quality")),i(3),d(s(6,4,t.quality))}}function ye(e,l){if(e&1&&(o(0,"table"),C(1,fe,7,8,"tr",3)(2,Ce,7,8,"tr",3)(3,xe,7,8,"tr",3)(4,ve,7,8,"tr",3)(5,he,7,6,"tr"),a()),e&2){let t=l,n=c(3);i(),m(t.consumption.eq(n.rational.one)?-1:1),i(),m(t.speed.eq(n.rational.one)?-1:2),i(),m(t.productivity.eq(n.rational.one)?-1:3),i(),m(t.pollution.eq(n.rational.one)?-1:4),i(),m(t.quality.nonzero()?5:-1)}}function Te(e,l){if(e&1&&(o(0,"div",1),r(1),a(),C(2,ue,1,0,"ng-container",2)(3,ye,6,5,"table")),e&2){let t,n=l,_=c(2),u=J(3);i(),d(n.name),i(),v("ngTemplateOutlet",u)("ngTemplateOutletContext",X(4,ne,n)),i(),m((t=(t=_.adjustedRecipe())==null?null:t.effects)?3:-1,t)}}function ge(e,l){if(e&1&&C(0,Te,4,6),e&2){let t,n=c();m((t=n.data().recipeEntities[n.id()])?0:-1,t)}}function Se(e,l){e&1&&L(0)}function be(e,l){if(e&1&&C(0,Se,1,0,"ng-container",2),e&2){c(3);let t=J(3);v("ngTemplateOutlet",t)("ngTemplateOutletContext",X(2,ne,l))}}function Ie(e,l){if(e&1&&(I(0,"i"),p(1,"iconSmClass")),e&2){let t=l.$implicit;h(s(1,2,t))}}function Ee(e,l){e&1&&(o(0,"div",4),r(1),p(2,"translate"),a(),o(3,"div"),S(4,Ie,2,4,"i",5,O),a()),e&2&&(i(),d(s(2,1,"data.prerequisites")),i(3),b(l))}function Be(e,l){if(e&1&&(o(0,"table")(1,"tr")(2,"td"),r(3),p(4,"translate"),a(),o(5,"td"),r(6),a()()()),e&2){let t=c();i(3),d(s(4,2,"data.unlockedRecipes")),i(3),d(t.length)}}function we(e,l){if(e&1&&(I(0,"i"),p(1,"iconSmClass")),e&2){let t=l.$implicit;h(j(1,2,t,"recipe"))}}function ke(e,l){if(e&1&&(o(0,"div",4),r(1),p(2,"translate"),a(),o(3,"div"),S(4,we,2,5,"i",5,O),a()),e&2){let t=c();i(),d(s(2,1,"data.unlockedRecipes")),i(3),b(t)}}function Pe(e,l){e&1&&C(0,Be,7,4,"table")(1,ke,6,3),e&2&&m(l.length>5?0:1)}function Oe(e,l){if(e&1&&C(0,Ee,6,3)(1,Pe,2,1),e&2){let t,n,_=c(3);m((t=_.data().technologyEntities[_.id()].prerequisites)?0:-1,t),i(),m((n=_.data().technologyEntities[_.id()].unlockedRecipes)?1:-1,n)}}function De(e,l){if(e&1&&(o(0,"div",1),r(1),a(),C(2,be,1,4,"ng-container")(3,Oe,2,2)),e&2){let t,n=c(2);i(),d(l.name),i(),m((t=n.recipe())?2:-1,t),i(),m(n.type()==="technology"?3:-1)}}function Le(e,l){e&1&&(o(0,"div"),r(1),p(2,"translate"),a()),e&2&&(i(),d(s(2,1,"data.moduleSlots")))}function Fe(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),a()()),e&2){let t=c();i(2),d(s(3,2,"data.energySource")),i(3),d(t.type)}}function Re(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"usage"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.energyConsumption")),i(3),d(s(6,4,t.usage))}}function ze(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),a()()),e&2){let t=c();i(2),d(s(3,2,"data.disallowedEffects")),i(3),d(t.disallowedEffects.join(", "))}}function Me(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),a()()),e&2){let t=c();i(2),d(s(3,3,"data.dimensions")),i(3),R("",t.size[0],"\xD7",t.size[1],"")}}function Ve(e,l){if(e&1&&(o(0,"table")(1,"tr")(2,"td"),r(3),p(4,"translate"),a(),o(5,"td"),r(6),p(7,"round"),a()(),o(8,"tr")(9,"td"),r(10),p(11,"translate"),a(),o(12,"td"),r(13),a()(),o(14,"tr")(15,"td"),r(16),p(17,"translate"),a(),o(18,"td"),r(19),a()(),C(20,Fe,6,4,"tr")(21,Re,7,6,"tr")(22,ze,6,4,"tr")(23,Me,6,5,"tr"),a()),e&2){let t=l;i(3),d(s(4,10,"data.efficiency")),i(3),d(s(7,12,t.effectivity)),i(4),d(s(11,14,"data.modules")),i(3),d(t.modules),i(3),d(s(17,16,"data.range")),i(3),d(t.range),i(),m(t.type?20:-1),i(),m(t.usage?21:-1),i(),m(t.disallowedEffects?22:-1),i(),m(t.size?23:-1)}}function qe(e,l){if(e&1&&(o(0,"table")(1,"tr")(2,"td"),r(3),p(4,"translate"),a(),o(5,"td"),r(6),p(7,"translate"),a()()()),e&2){let t=c(2);i(3),d(s(4,3,"data.speed")),i(3),R(" ",t.beltSpeedTxt()[t.id()],"",s(7,5,t.dispRateInfo().suffix)," ")}}function je(e,l){e&1&&(o(0,"table")(1,"tr")(2,"td"),r(3),p(4,"translate"),a(),o(5,"td"),r(6),a()()()),e&2&&(i(3),d(s(4,2,"data.storageSize")),i(3),d(l.size))}function He(e,l){e&1&&(o(0,"table")(1,"tr")(2,"td"),r(3),p(4,"translate"),a(),o(5,"td"),r(6),a()()()),e&2&&(i(3),d(s(4,2,"data.fluidCapacity")),i(3),d(l.capacity))}function Ae(e,l){if(e&1&&(o(0,"table")(1,"tr")(2,"td"),r(3),p(4,"translate"),a(),o(5,"td"),r(6),a()(),o(7,"tr")(8,"td"),r(9),p(10,"translate"),a(),o(11,"td"),r(12),p(13,"round"),a()()()),e&2){let t=l;i(3),d(s(4,4,"data.fuelCategory")),i(3),d(t.category),i(3),d(s(10,6,"data.fuelValue")),i(3),q("",s(13,8,t.value)," MJ")}}function Ze(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"round"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.craftingSpeed")),i(3),d(s(6,4,t.speed))}}function Ne(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.energyConsumption")),i(3),d(s(6,4,t.consumption))}}function $e(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.speed")),i(3),d(s(6,4,t.speed))}}function Qe(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.productivity")),i(3),d(s(6,4,t.productivity))}}function We(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.pollution")),i(3),d(s(6,4,t.pollution))}}function Ke(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.quality")),i(3),d(s(6,4,t.quality))}}function Ue(e,l){if(e&1&&C(0,Ne,7,6,"tr")(1,$e,7,6,"tr")(2,Qe,7,6,"tr")(3,We,7,6,"tr")(4,Ke,7,6,"tr"),e&2){let t=l;m(t.consumption&&t.consumption.nonzero()?0:-1),i(),m(t.speed&&t.speed.nonzero()?1:-1),i(),m(t.productivity&&t.productivity.nonzero()?2:-1),i(),m(t.pollution&&t.pollution.nonzero()?3:-1),i(),m(t.quality&&t.quality.nonzero()?4:-1)}}function Ye(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),a()()),e&2){let t=c();i(2),d(s(3,2,"data.modules")),i(3),d(t.modules)}}function Ge(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),a()()),e&2){let t=c();i(2),d(s(3,2,"data.disallowedEffects")),i(3),d(t.disallowedEffects.join(", "))}}function Je(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),a()()),e&2){let t=c();i(2),d(s(3,2,"data.energySource")),i(3),d(t.type)}}function Xe(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),a()()),e&2){let t=c();i(2),d(s(3,2,"data.fuelCategories")),i(3),d(t.fuelCategories.join(", "))}}function ti(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),a()()),e&2){let t=c();i(2),d(s(3,2,"data.fuel")),i(3),d(t.fuel)}}function ei(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"usage"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.energyConsumption")),i(3),d(s(6,4,t.usage))}}function ii(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"usage"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.energyDrain")),i(3),d(s(6,4,t.drain))}}function ni(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"round"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.pollution")),i(3),q("",s(6,4,t.pollution),"/m")}}function oi(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),a()()),e&2){let t=c();i(2),d(s(3,3,"data.dimensions")),i(3),R("",t.size[0],"\xD7",t.size[1],"")}}function ai(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"round"),a()(),o(7,"tr")(8,"td"),r(9),p(10,"translate"),a(),o(11,"td"),r(12),p(13,"round"),a()()),e&2){let t=c();i(2),d(s(3,4,"data.rocketPartsRequired")),i(3),d(s(6,6,t.silo.parts)),i(4),d(s(10,8,"data.rocketLaunchTime")),i(3),q("",s(13,10,t.silo.launch),"s")}}function li(e,l){if(e&1&&(o(0,"i"),p(1,"iconSmClass"),o(2,"span"),r(3),p(4,"round"),a()()),e&2){let t=l.$implicit;h(s(1,3,t.key)),i(3),d(s(4,5,t.value))}}function ri(e,l){if(e&1&&(o(0,"div",6),S(1,li,5,7,"i",5,pt),p(3,"keyvalue"),a()),e&2){let t=c();i(),b(s(3,0,t.consumption))}}function pi(e,l){if(e&1&&(I(0,"i"),p(1,"iconSmClass")),e&2){let t=l.$implicit;h(j(1,2,t,"location"))}}function di(e,l){if(e&1&&(o(0,"div",4),r(1),p(2,"translate"),a(),o(3,"div"),S(4,pi,2,5,"i",5,O),a()),e&2){let t=c();i(),d(s(2,1,"data.locations")),i(3),b(t.locations)}}function si(e,l){if(e&1&&(o(0,"table"),C(1,Ze,7,6,"tr")(2,Ue,5,5)(3,Ye,6,4,"tr")(4,Ge,6,4,"tr")(5,Je,6,4,"tr")(6,Xe,6,4,"tr")(7,ti,6,4,"tr")(8,ei,7,6,"tr")(9,ii,7,6,"tr")(10,ni,7,6,"tr")(11,oi,6,5,"tr")(12,ai,14,12),a(),C(13,ri,4,2,"div",6)(14,di,6,3)),e&2){let t,n=l,_=c(2);i(),m(n.speed&&!_.data().flags.has("hideMachineSettings")?1:-1),i(),m((t=n.baseEffect)?2:-1,t),i(),m(n.modules?3:-1),i(),m(n.disallowedEffects?4:-1),i(),m(n.type?5:-1),i(),m(n.fuelCategories?6:-1),i(),m(n.fuel?7:-1),i(),m(n.usage&&n.usage.nonzero()?8:-1),i(),m(n.drain&&n.drain.nonzero()?9:-1),i(),m(n.pollution&&n.pollution.nonzero()?10:-1),i(),m(n.size?11:-1),i(),m(n.silo?12:-1),i(),m(n.consumption?13:-1),i(),m(n.locations?14:-1)}}function ci(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.energyConsumption")),i(3),d(s(6,4,t.consumption))}}function mi(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.speed")),i(3),d(s(6,4,t.speed))}}function _i(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.productivity")),i(3),d(s(6,4,t.productivity))}}function ui(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.pollution")),i(3),d(s(6,4,t.pollution))}}function fi(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"bonusPercent"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.quality")),i(3),d(s(6,4,t.quality))}}function Ci(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),p(3,"translate"),a(),o(4,"td"),r(5),p(6,"round"),a()()),e&2){let t=c();i(2),d(s(3,2,"data.sprays")),i(3),d(s(6,4,t.sprays))}}function xi(e,l){if(e&1&&(o(0,"table"),C(1,ci,7,6,"tr")(2,mi,7,6,"tr")(3,_i,7,6,"tr")(4,ui,7,6,"tr")(5,fi,7,6,"tr")(6,Ci,7,6,"tr"),a()),e&2){let t=l;i(),m(t.consumption&&t.consumption.nonzero()?1:-1),i(),m(t.speed&&t.speed.nonzero()?2:-1),i(),m(t.productivity&&t.productivity.nonzero()?3:-1),i(),m(t.pollution&&t.pollution.nonzero()?4:-1),i(),m(t.quality&&t.quality.nonzero()?5:-1),i(),m(t.sprays&&t.sprays.nonzero()?6:-1)}}function vi(e,l){if(e&1&&(o(0,"table")(1,"tr")(2,"td"),r(3),p(4,"translate"),a(),o(5,"td"),r(6),p(7,"translate"),a()()()),e&2){let t=c(2);i(3),d(s(4,3,"data.flowRate")),i(3),R(" ",t.beltSpeedTxt()[t.id()],"",s(7,5,t.dispRateInfo().suffix)," ")}}function hi(e,l){if(e&1&&C(0,De,4,3)(1,Le,3,3,"div")(2,Ve,24,18,"table")(3,qe,8,7,"table")(4,je,7,4,"table")(5,He,7,4,"table")(6,Ae,14,10,"table")(7,si,15,14)(8,xi,7,6,"table")(9,vi,8,7,"table"),e&2){let t,n,_,u,x,y,M,V,dt,f=c();m((t=f.data().itemEntities[f.id()])?0:f.type()==="module"?1:-1,t),i(2),m((n=f.type()==="beacon"&&f.data().beaconEntities[f.id()])?2:-1,n),i(),m((_=f.type()==="belt"&&f.data().beltEntities[f.id()])?3:-1,_),i(),m((u=f.type()==="cargo-wagon"&&f.data().cargoWagonEntities[f.id()])?4:-1,u),i(),m((x=f.type()==="fluid-wagon"&&f.data().fluidWagonEntities[f.id()])?5:-1,x),i(),m((y=f.type()==="fuel"&&f.data().fuelEntities[f.id()])?6:-1,y),i(),m((M=f.type()==="machine"&&f.data().machineEntities[f.id()])?7:-1,M),i(),m((V=f.type()==="module"&&f.data().moduleEntities[f.id()])?8:-1,V),i(),m((dt=f.type()==="pipe"&&f.data().beltEntities[f.id()])?9:-1,dt)}}function yi(e,l){if(e&1&&(o(0,"i"),p(1,"iconSmClass"),o(2,"span"),r(3),p(4,"round"),a()()),e&2){let t=l.$implicit;h(s(1,3,t.key)),i(3),d(s(4,5,t.value))}}function Ti(e,l){if(e&1&&(o(0,"i"),p(1,"iconSmClass"),o(2,"span"),r(3),p(4,"round"),a()()),e&2){let t=l.$implicit;h(s(1,3,t.key)),i(3),d(s(4,5,t.value))}}function gi(e,l){if(e&1&&(I(0,"i"),p(1,"iconSmClass")),e&2){let t=c().$implicit;h(s(1,2,t))}}function Si(e,l){if(e&1&&C(0,gi,2,4,"i",5),e&2){let t=l.$implicit,n=c(4);m(n.data().itemEntities[t].quality==null?0:-1)}}function bi(e,l){if(e&1&&(o(0,"div",4),r(1),p(2,"translate"),a(),o(3,"div"),S(4,Si,1,1,null,null,O),a()),e&2){let t=c();i(),d(s(2,1,"data.producers")),i(3),b(t.producers)}}function Ii(e,l){if(e&1&&(I(0,"i"),p(1,"iconSmClass")),e&2){let t=l.$implicit;h(j(1,2,t,"location"))}}function Ei(e,l){if(e&1&&(o(0,"div",4),r(1),p(2,"translate"),a(),o(3,"div"),S(4,Ii,2,5,"i",5,O),a()),e&2){let t=c();i(),d(s(2,1,"data.locations")),i(3),b(t.locations)}}function Bi(e,l){if(e&1&&(o(0,"div",6)(1,"i"),p(2,"iconSmClass"),o(3,"span"),r(4),p(5,"round"),a()(),S(6,yi,5,7,"i",5,pt),p(8,"keyvalue"),I(9,"i",7),S(10,Ti,5,7,"i",5,pt),p(12,"keyvalue"),a(),C(13,bi,6,3)(14,Ei,6,3)),e&2){let t=l;i(),h(s(2,5,"time")),i(3),d(s(5,7,t.time.toNumber())),i(2),b(s(8,9,t.in)),i(4),b(s(12,11,t.out)),i(3),m(t.flags.has("hideProducer")?-1:13),i(),m(t.locations?14:-1)}}function wi(e,l){if(e&1&&C(0,Bi,15,13),e&2){let t,n=l.recipe,_=c();m((t=_.data().recipeEntities[n.id])?0:-1,t)}}function ki(e,l){e&1&&(o(0,"div")(1,"i"),r(2),a()()),e&2&&(i(2),d(l))}var bn=(()=>{class e{constructor(){this.recipeSvc=T(Wt),this.recipesSvc=T(Yt),this.settingsSvc=T(Kt),this.id=P.required(),this.type=P("item"),this.action=P(),this.adjustedRecipe=P(),this.rational=$t,this.dataKey={item:"items",beacon:"beacons",belt:"belts","cargo-wagon":"cargoWagons","fluid-wagon":"fluidWagons",fuel:"fuels",machine:"machines",module:"modules",pipe:"pipes",technology:"technologies",recipe:"recipes"},this.beltSpeedTxt=this.settingsSvc.beltSpeedTxt,this.dispRateInfo=this.settingsSvc.displayRateInfo,this.data=this.recipesSvc.adjustedDataset,this.recipe=Ot(()=>{let t=this.type();if(t!=="item"&&t!=="technology")return;let n=this.id(),_=this.data(),x=_.itemRecipeIds[n].map(y=>_.adjustedRecipe[y]).filter(y=>y.quality==null&&y.produces.has(n));if(x.length===1)return x[0]})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=B({type:e,selectors:[["lab-tooltip"]],inputs:{id:[1,"id"],type:[1,"type"],action:[1,"action"],adjustedRecipe:[1,"adjustedRecipe"]},standalone:!0,features:[wt],decls:5,vars:2,consts:[["recipeProcess",""],[1,"title"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"error-text"],[1,"mt-1"],[3,"class"],[1,"d-flex","align-items-center","justify-content-center","flex-wrap","mt-2"],[1,"m-1","me-2","fa-solid","fa-arrow-right"]],template:function(n,_){if(n&1&&C(0,ge,1,1)(1,hi,10,9)(2,wi,1,1,"ng-template",null,0,kt)(4,ki,3,1,"div"),n&2){let u;m(_.type()==="recipe"?0:1),i(4),m((u=_.action())?4:-1,u)}},dependencies:[zt,A,Xt,Jt,te,Qt,ee],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;font-size:12px}.title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.lab-icon[_ngcontent-%COMP%]{margin:7px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{word-break:normal}"],changeDetection:0})}}return e})();export{Fi as a,rt as b,nn as c,pn as d,dn as e,bn as f};