-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path892.cdf166991bc502b6.js
1 lines (1 loc) · 19.1 KB
/
892.cdf166991bc502b6.js
1
"use strict";(self.webpackChunkfactoriolab=self.webpackChunkfactoriolab||[]).push([[892],{2892:(Lt,h,l)=>{l.r(h),l.d(h,{WizardModule:()=>Mt});var s=l(6895),v=l(5108),t=l(4650),g=l(4006);const T=["rb"],b=function(n,a,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":n,"p-disabled":a,"p-radiobutton-label-focus":e}};function y(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"label",4),t.NdJ("click",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.select(i))}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(),o=t.MAs(3);t.Tol(e.labelStyleClass),t.Q6J("ngClass",t.kEZ(5,b,o.checked,e.disabled,e.focused)),t.uIk("for",e.inputId),t.xp6(1),t.Oqu(e.label)}}const Z=function(n,a,e){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":n,"p-radiobutton-disabled":a,"p-radiobutton-focused":e}},k=function(n,a,e){return{"p-radiobutton-box":!0,"p-highlight":n,"p-disabled":a,"p-focus":e}},A={provide:g.JU,useExisting:(0,t.Gpc)(()=>z),multi:!0};let w=(()=>{class n{constructor(){this.accessors=[]}add(e,o){this.accessors.push([e,o])}remove(e){this.accessors=this.accessors.filter(o=>o[1]!==e)}select(e){this.accessors.forEach(o=>{this.isSameGroup(o,e)&&o[1]!==e&&o[1].writeValue(e.value)})}isSameGroup(e,o){return!!e[0].control&&e[0].control.root===o.control.control.root&&e[1].name===o.name}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),z=(()=>{class n{constructor(e,o,i){this.cd=e,this.injector=o,this.registry=i,this.onClick=new t.vpe,this.onFocus=new t.vpe,this.onBlur=new t.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}ngOnInit(){this.control=this.injector.get(g.a5),this.checkName(),this.registry.add(this.control,this)}handleClick(e,o,i){e.preventDefault(),!this.disabled&&(this.select(e),i&&o.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}onChange(e){this.select(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <p-radioButton formControlName="food" name="food"></p-radioButton>\n ')}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.zs3),t.Y36(w))},n.\u0275cmp=t.Xpm({type:n,selectors:[["p-radioButton"]],viewQuery:function(e,o){if(1&e&&t.Gf(T,5),2&e){let i;t.iGM(i=t.CRH())&&(o.inputViewChild=i.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[t._Bn([A])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(e,o){if(1&e){const i=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),t.NdJ("change",function(c){return o.onChange(c)})("focus",function(c){return o.onInputFocus(c)})("blur",function(c){return o.onInputBlur(c)}),t.qZA()(),t.TgZ(4,"div",4),t.NdJ("click",function(c){t.CHM(i);const p=t.MAs(3);return t.KtG(o.handleClick(c,p,!0))}),t._UZ(5,"span",5),t.qZA()(),t.YNc(6,y,2,9,"label",6)}2&e&&(t.Tol(o.styleClass),t.Q6J("ngStyle",o.style)("ngClass",t.kEZ(15,Z,o.checked,o.disabled,o.focused)),t.xp6(2),t.Q6J("checked",o.checked)("disabled",o.disabled),t.uIk("id",o.inputId)("name",o.name)("value",o.value)("tabindex",o.tabindex)("aria-checked",o.checked)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),t.xp6(2),t.Q6J("ngClass",t.kEZ(19,k,o.checked,o.disabled,o.focused)),t.xp6(2),t.Q6J("ngIf",o.label))},dependencies:[s.mk,s.O5,s.PC],encapsulation:2,changeDetection:0}),n})(),I=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[s.ez]}),n})();var m=l(4258),x=l(3608);let F=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[s.ez,m.Bz,x.z,m.Bz,x.z]}),n})();var Q=l(2518),B=l(9841),E=l(4004),f=l(8273),_=l(2882),q=l(2997),P=l(5593),U=l(4247),H=l(805),V=l(2210),G=l(1795),Y=l(2139),j=l(8290),D=l(2897),K=l(3989),$=l(6188),X=l(7598),tt=l(8098),C=l(1969),et=l(1930);function nt(n,a){1&n&&t.GkF(0)}function it(n,a){if(1&n&&(t.ynx(0),t.YNc(1,nt,1,0,"ng-container",11),t.BQk()),2&n){t.oxw();const e=t.MAs(12);t.xp6(1),t.Q6J("ngTemplateOutlet",e)}}function ot(n,a){1&n&&t.GkF(0)}function at(n,a){if(1&n&&(t.ynx(0),t.YNc(1,ot,1,0,"ng-container",11),t.BQk()),2&n){t.oxw();const e=t.MAs(14);t.xp6(1),t.Q6J("ngTemplateOutlet",e)}}function rt(n,a){1&n&&t.GkF(0)}function lt(n,a){if(1&n&&(t.ynx(0),t.YNc(1,rt,1,0,"ng-container",11),t.BQk()),2&n){t.oxw();const e=t.MAs(16);t.xp6(1),t.Q6J("ngTemplateOutlet",e)}}function ct(n,a){1&n&&t.GkF(0)}function st(n,a){if(1&n&&(t.ynx(0),t.YNc(1,ct,1,0,"ng-container",11),t.BQk()),2&n){t.oxw();const e=t.MAs(18);t.xp6(1),t.Q6J("ngTemplateOutlet",e)}}function pt(n,a){1&n&&t.GkF(0)}function _t(n,a){if(1&n&&(t.ynx(0),t.YNc(1,pt,1,0,"ng-container",11),t.BQk()),2&n){t.oxw();const e=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e)}}function dt(n,a){1&n&&t.GkF(0)}function ut(n,a){if(1&n&&(t.ynx(0),t.YNc(1,dt,1,0,"ng-container",11),t.BQk()),2&n){t.oxw();const e=t.MAs(22);t.xp6(1),t.Q6J("ngTemplateOutlet",e)}}function mt(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"p-divider"),t.TgZ(4,"span"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",12),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(10),r=t.oxw().ngIf;return t.KtG(i.clickOpen(r.data,"item"))}),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"lab-picker",13,14),t.NdJ("selectId",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.selectId(i,r.WizardState.ProductType))}),t.qZA(),t._UZ(11,"p-divider"),t.TgZ(12,"span"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"button",15),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(18),r=t.oxw().ngIf;return t.KtG(i.clickOpen(r.data,"recipe"))}),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"lab-picker",13,16),t.NdJ("selectId",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.selectId(i,r.WizardState.Producer))}),t.qZA(),t._UZ(19,"p-divider")}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,5,"wizard.objectiveType")," "),t.xp6(4),t.Oqu(t.lcZ(6,7,"wizard.produceItems")),t.xp6(2),t.Q6J("label",t.lcZ(8,9,"wizard.produceItemsButton")),t.xp6(6),t.Oqu(t.lcZ(14,11,"wizard.runFactories")),t.xp6(2),t.Q6J("label",t.lcZ(16,13,"wizard.runFactoriesButton")))}function gt(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"p-divider"),t.TgZ(4,"div",17)(5,"i"),t.ALo(6,"iconClass"),t.qZA(),t.TgZ(7,"span",18),t._uU(8),t.qZA()(),t.TgZ(9,"button",19),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.state=i.WizardState.ProductItems)}),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",15),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.state=i.WizardState.ProductFactories)}),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"button",20),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.openViaState())}),t.ALo(14,"translate"),t.qZA(),t._UZ(15,"p-divider"),t.TgZ(16,"button",21),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.state=i.WizardState.ObjectiveType)}),t.ALo(17,"translate"),t.qZA()}if(2&n){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,8,"wizard.productType")," "),t.xp6(4),t.Tol(t.lcZ(6,10,o.id)),t.xp6(3),t.Oqu(e.data.itemEntities[o.id].name),t.xp6(1),t.Q6J("label",t.lcZ(10,12,"wizard.productTypeItems")),t.xp6(2),t.Q6J("label",t.lcZ(12,14,"wizard.productTypeFactories")),t.xp6(2),t.Q6J("label",t.lcZ(14,16,"wizard.productTypeVia")),t.xp6(3),t.Q6J("label",t.lcZ(17,18,"wizard.back"))}}function ft(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"p-divider"),t.TgZ(4,"div",17)(5,"i"),t.ALo(6,"iconClass"),t.qZA(),t.TgZ(7,"span",18),t._uU(8),t.qZA()(),t.TgZ(9,"lab-input-number",22),t.NdJ("setValue",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.rate=i)}),t.qZA(),t.TgZ(10,"p-dropdown",23),t.NdJ("onChange",function(i){t.CHM(e);const r=t.oxw().ngIf,c=t.oxw();return t.KtG(c.setDisplayRate(i.value,r.displayRate))}),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",24),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.createProduct(i.id,i.rate,i.RateType.Items))}),t.ALo(13,"translate"),t.qZA(),t._UZ(14,"p-divider"),t.TgZ(15,"button",21),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.state=i.WizardState.ProductType)}),t.ALo(16,"translate"),t.qZA()}if(2&n){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,10,"wizard.productItems")),t.xp6(4),t.Tol(t.lcZ(6,12,o.id)),t.xp6(3),t.Oqu(e.data.itemEntities[o.id].name),t.xp6(1),t.Q6J("value",o.rate),t.xp6(1),t.Q6J("tooltip",t.lcZ(11,14,"objectives.selectDisplayRate"))("ngModel",e.displayRate)("options",o.displayRateOptions),t.xp6(2),t.Q6J("label",t.lcZ(13,16,"ok")),t.xp6(3),t.Q6J("label",t.lcZ(16,18,"wizard.back"))}}function xt(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"p-divider"),t.TgZ(4,"div",17)(5,"i"),t.ALo(6,"iconClass"),t.qZA(),t.TgZ(7,"span",18),t._uU(8),t.qZA()(),t.TgZ(9,"lab-input-number",22),t.NdJ("setValue",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.rate=i)}),t.qZA(),t.TgZ(10,"button",24),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.createProduct(i.id,i.rate,i.RateType.Factories))}),t.ALo(11,"translate"),t.qZA(),t._UZ(12,"p-divider"),t.TgZ(13,"button",21),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.state=i.WizardState.ProductType)}),t.ALo(14,"translate"),t.qZA()}if(2&n){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,7,"wizard.productFactories")),t.xp6(4),t.Tol(t.lcZ(6,9,o.id)),t.xp6(3),t.Oqu(e.data.itemEntities[o.id].name),t.xp6(1),t.Q6J("value",o.rate),t.xp6(1),t.Q6J("label",t.lcZ(11,11,"ok")),t.xp6(3),t.Q6J("label",t.lcZ(14,13,"wizard.back"))}}function ht(n,a){1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"objectives.viaPlaceholder")," "))}function vt(n,a){if(1&n&&(t.TgZ(0,"div",32)(1,"i"),t.ALo(2,"iconSmClass"),t.qZA(),t.TgZ(3,"div",33),t._uU(4),t.qZA()()),2&n){const e=t.oxw().$implicit,o=t.oxw().ngIf;t.xp6(1),t.Tol(t.xi3(2,3,e.value,o)),t.xp6(3),t.hij(" ",e.label," ")}}function Ct(n,a){if(1&n&&(t.YNc(0,ht,3,3,"span",26),t.YNc(1,vt,5,6,"ng-template",null,31,t.W1O)),2&n){const e=a.$implicit,o=t.MAs(2),i=t.oxw(5);t.Q6J("ngIf",e.value===i.id)("ngIfElse",o)}}function Tt(n,a){if(1&n&&(t.TgZ(0,"div",34),t.ALo(1,"recipeTooltip"),t.ALo(2,"itemTooltip"),t.TgZ(3,"i"),t.ALo(4,"iconSmClass"),t.qZA(),t.TgZ(5,"div",33),t._uU(6),t.qZA()()),2&n){const e=a.$implicit,o=t.oxw().ngIf,i=t.oxw(3).ngIf;t.Q6J("pTooltip","recipe"===o?t.xi3(1,5,e.value,i.data):t.xi3(2,8,e.value,i.data))("escape",!1),t.xp6(3),t.Tol(t.xi3(4,11,e.value,o)),t.xp6(3),t.hij(" ",e.label," ")}}function bt(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"p-dropdown",28),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw(4);return t.KtG(r.viaId=i)}),t.YNc(2,Ct,3,2,"ng-template",29),t.YNc(3,Tt,7,14,"ng-template",30),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(3).ngIf,o=t.oxw();t.xp6(1),t.Q6J("options",e.viaOptions[0])("ngModel",o.viaId)}}function yt(n,a){if(1&n&&(t.ynx(0),t.YNc(1,bt,4,2,"ng-container",0),t.ALo(2,"rateTypeViaDropdown"),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,e.viaRateType))}}function Zt(n,a){1&n&&(t.TgZ(0,"span",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"objectives.noEnabledRecipes")))}function kt(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"p-divider"),t.TgZ(4,"div",17)(5,"i"),t.ALo(6,"iconClass"),t.qZA(),t.TgZ(7,"span",18),t._uU(8),t.qZA()(),t.TgZ(9,"lab-input-number",22),t.NdJ("setValue",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.rate=i)}),t.qZA(),t.TgZ(10,"p-dropdown",25),t.NdJ("ngModelChange",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.viaRateType=i)}),t.qZA(),t.YNc(11,yt,3,3,"ng-container",26),t.YNc(12,Zt,3,3,"ng-template",null,27,t.W1O),t.TgZ(14,"button",24),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.createProduct(i.id,i.rate,i.viaRateType,i.viaId))}),t.ALo(15,"translate"),t.qZA(),t._UZ(16,"p-divider"),t.TgZ(17,"button",21),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.state=i.WizardState.ProductType)}),t.ALo(18,"translate"),t.qZA()}if(2&n){const e=t.MAs(13),o=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,11,"wizard.productVia")),t.xp6(4),t.Tol(t.lcZ(6,13,i.id)),t.xp6(3),t.Oqu(o.data.itemEntities[i.id].name),t.xp6(1),t.Q6J("value",i.rate),t.xp6(1),t.Q6J("options",o.rateTypeOptions)("ngModel",i.viaRateType),t.xp6(1),t.Q6J("ngIf",o.viaOptions[0].length>0)("ngIfElse",e),t.xp6(3),t.Q6J("label",t.lcZ(15,15,"ok")),t.xp6(3),t.Q6J("label",t.lcZ(18,17,"wizard.back"))}}function At(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"p-divider"),t.TgZ(4,"div",17)(5,"i"),t.ALo(6,"iconClass"),t.qZA(),t.TgZ(7,"span",18),t._uU(8),t.qZA()(),t.TgZ(9,"lab-input-number",22),t.NdJ("setValue",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.rate=i)}),t.qZA(),t.TgZ(10,"button",24),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.createProducer(i.id,i.rate))}),t.ALo(11,"translate"),t.qZA(),t._UZ(12,"p-divider"),t.TgZ(13,"button",21),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.state=i.WizardState.ObjectiveType)}),t.ALo(14,"translate"),t.qZA()}if(2&n){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,7,"wizard.productFactories")),t.xp6(4),t.Tol(t.lcZ(6,9,o.id)),t.xp6(3),t.Oqu(e.data.recipeEntities[o.id].name),t.xp6(1),t.Q6J("value",o.rate),t.xp6(1),t.Q6J("label",t.lcZ(11,11,"ok")),t.xp6(3),t.Q6J("label",t.lcZ(14,13,"wizard.back"))}}function wt(n,a){if(1&n&&(t.TgZ(0,"p-card")(1,"div",1),t.ynx(2,2),t.YNc(3,it,2,1,"ng-container",3),t.YNc(4,at,2,1,"ng-container",3),t.YNc(5,lt,2,1,"ng-container",3),t.YNc(6,st,2,1,"ng-container",3),t.YNc(7,_t,2,1,"ng-container",3),t.YNc(8,ut,2,1,"ng-container",3),t.BQk(),t._UZ(9,"button",4),t.ALo(10,"translate"),t.qZA(),t.YNc(11,mt,20,15,"ng-template",null,5,t.W1O),t.YNc(13,gt,18,20,"ng-template",null,6,t.W1O),t.YNc(15,ft,17,20,"ng-template",null,7,t.W1O),t.YNc(17,xt,15,15,"ng-template",null,8,t.W1O),t.YNc(19,kt,19,19,"ng-template",null,9,t.W1O),t.YNc(21,At,15,15,"ng-template",null,10,t.W1O),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngSwitch",e.state),t.xp6(1),t.Q6J("ngSwitchCase",e.WizardState.ObjectiveType),t.xp6(1),t.Q6J("ngSwitchCase",e.WizardState.ProductType),t.xp6(1),t.Q6J("ngSwitchCase",e.WizardState.ProductItems),t.xp6(1),t.Q6J("ngSwitchCase",e.WizardState.ProductFactories),t.xp6(1),t.Q6J("ngSwitchCase",e.WizardState.ProductVia),t.xp6(1),t.Q6J("ngSwitchCase",e.WizardState.Producer),t.xp6(1),t.Q6J("label",t.lcZ(10,8,"cancel"))}}var u=(()=>{return(n=u||(u={}))[n.ObjectiveType=0]="ObjectiveType",n[n.ProductType=1]="ProductType",n[n.ProductItems=2]="ProductItems",n[n.ProductFactories=3]="ProductFactories",n[n.ProductVia=4]="ProductVia",n[n.Producer=5]="Producer",u;var n})();const zt=[{path:"",component:(()=>{class n{constructor(e){this.store=e,this.vm$=(0,B.a)([this.store.select(_.QI.VP),this.store.select(_.Zr.pY),this.store.select(_.Zr.P7),this.store.select(_.Zr.lU)]).pipe((0,E.U)(([o,i,r,c])=>({viaOptions:o,data:i,displayRate:r,rateTypeOptions:c}))),this.id="",this.rate="1",this.viaRateType=f.FN.Items,this.viaId="",this.state=u.ObjectiveType,this.displayRateOptions=f.g6,this.RateType=f.FN,this.WizardState=u}selectId(e,o){this.id=e,this.state=o}openViaState(){this.createProduct(this.id,"1",f.FN.Items),this.state=u.ProductVia}setDisplayRate(e,o){this.store.dispatch(new _.Zr.MO({value:e,prev:o}))}createProduct(e,o,i,r){this.store.dispatch(new _.QI.$f({id:"0",itemId:e,rate:o,rateType:i,viaId:r}))}createProducer(e,o){this.store.dispatch(new _.$_.$f({id:"0",recipeId:e,count:o}))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(q.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["lab-wizard"]],decls:2,vars:3,consts:[[4,"ngIf"],[1,"d-flex","flex-column","p-fluid"],[3,"ngSwitch"],[4,"ngSwitchCase"],["pButton","","pRipple","","type","button","icon","fa-solid fa-xmark","routerLink","/","queryParamsHandling","preserve",1,"p-button-outlined",3,"label"],["objectiveType",""],["productType",""],["productItems",""],["productFactories",""],["productVia",""],["producer",""],[4,"ngTemplateOutlet"],["pButton","","pRipple","","type","button","icon","fa-solid fa-box",1,"mt-2",3,"label","click"],[3,"selectId"],["addProductPicker",""],["pButton","","pRipple","","type","button","icon","fa-solid fa-industry",1,"mt-2",3,"label","click"],["addRecipePicker",""],[1,"d-flex","align-items-center","justify-content-center"],[1,"ms-2"],["pButton","","pRipple","","type","button","icon","fa-solid fa-gauge",1,"mt-2",3,"label","click"],["pButton","","pRipple","","type","button","icon","fa-solid fa-vial",1,"mt-2",3,"label","click"],["pButton","","pRipple","","type","button","icon","fa-solid fa-arrow-left",1,"mb-2","p-button-outlined",3,"label","click"],["tooltipPosition","top",1,"mt-2","w-100",3,"value","setValue"],["labDropdownTranslate","","styleClass","mt-2 h-100",3,"tooltip","ngModel","options","onChange"],["pButton","","pRipple","","type","button","icon","fa-solid fa-check","routerLink","/list",1,"mt-2",3,"label","click"],["styleClass","my-2",3,"options","ngModel","ngModelChange"],[4,"ngIf","ngIfElse"],["recipeNone",""],["labDropdownBase","",3,"options","ngModel","ngModelChange"],["pTemplate","selectedItem"],["pTemplate","item"],["viaSelected",""],[1,"d-flex","align-items-center","h-100"],[1,"ms-3","text-truncate"],[1,"d-flex","align-items-center","py-2","w-100","h-100",3,"pTooltip","escape"],[1,"p-inputgroup-addon","p-error"]],template:function(e,o){1&e&&(t.YNc(0,wt,23,10,"p-card",0),t.ALo(1,"async")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.vm$))},dependencies:[s.O5,s.tP,s.RF,s.n9,v.i,m.rH,x.u,P.Hq,U.Z,H.jx,V.Lt,G.H,g.JJ,g.On,Y.l,j.q,D.W,K.l,s.Ov,$.X$,X.N,tt.E,C.Y,C.y,et.o],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;height:100vh}"],changeDetection:0}),n})()}];let It=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[m.Bz.forChild(zt),m.Bz]}),n})(),Mt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[s.ez,v.x,I,F,It,Q.o]}),n})()}}]);