import{a as _}from"./chunk-HTYQN767.js";import{a as O}from"./chunk-OIB33BTV.js";import{a as S}from"./chunk-F6AHCJAP.js";import{a as D}from"./chunk-WJLIXXN3.js";import"./chunk-IOKWCZEB.js";import"./chunk-BLIS2XXD.js";import"./chunk-2ZXCNSZZ.js";import"./chunk-3S3T7QLT.js";import"./chunk-N4NZWFKH.js";import"./chunk-LL4377Z2.js";import"./chunk-VPS35GPI.js";import"./chunk-UGBMCXS6.js";import"./chunk-5TTXT2K2.js";import"./chunk-YNQPX5G6.js";import"./chunk-4P6SOZDY.js";import"./chunk-RULWGB4E.js";import"./chunk-2HIDUY57.js";import"./chunk-HY3IUHOC.js";import"./chunk-4AEX2WLA.js";import"./chunk-2MELUOYA.js";import"./chunk-WOPE6PPO.js";import{E as w,h as b,o as C}from"./chunk-MDIMQ3H3.js";import"./chunk-MWDJTJ3O.js";import"./chunk-TKVDP62Z.js";import{Ib as o,Jb as r,Kb as d,Sd as h,Tc as i,Za as n,ib as y,ra as m,rc as l,sc as u,tc as s}from"./chunk-GJDGQISV.js";import"./chunk-WFMAM73Y.js";import{a as c,b as M}from"./chunk-SNAKHGZS.js";var v=class f{activatedRoute=m(h);settings=m(D);options=i(()=>this.settings.options());configDefault=i(()=>this.settings.configDefault());formData=i(()=>this.settings.formData());manufactureFlowOptions=i(()=>{let p=["Raw materials are deducted, and finished goods are added immediately when a manufacturing order is created. Status moves directly to Completed.","Raw materials are deducted when an order is created. Finished goods are added when the order is completed.",'No initial stock movement. Raw materials are deducted at "In Progress", finished goods are added at "Completed".'];return this.options()?.ManufactureFlow?.map((a,e)=>M(c({},a),{tooltip:p[e]}))??[]});constructor(){this.settings.initFormData(this.activatedRoute)}static \u0275fac=function(a){return new(a||f)};static \u0275cmp=y({type:f,selectors:[["POS-manufacture"]],decls:10,vars:19,consts:[["cardTitle","Job Order","id","jobOrderManufacture"],[1,"row"],[1,"col-12"],["tooltipKey","tooltip",3,"ngModelChange","label","options","keyLabel","keyValue","ngModel","description","defaultConfig"],[3,"ngModelChange","label","options","keyLabel","keyValue","ngModel","description","defaultConfig"],["cardTitle","Behaviour","id","behaviourManufacture",3,"description"],[3,"ngModelChange","label","ngModel","description","defaultConfig"]],template:function(a,e){a&1&&(r(0,"POS-card",0)(1,"div",1)(2,"div",2)(3,"POS-button-group",3),s("ngModelChange",function(t){return u(e.formData().JobOrder.Workflow,t)||(e.formData().JobOrder.Workflow=t),t}),d()(),r(4,"div",2)(5,"POS-button-group",4),s("ngModelChange",function(t){return u(e.formData().JobOrder.MaterialMode,t)||(e.formData().JobOrder.MaterialMode=t),t}),d()()()(),r(6,"POS-card",5)(7,"div",1)(8,"div",2)(9,"POS-input-toggle",6),s("ngModelChange",function(t){return u(e.formData().SubmitWithMismatch,t)||(e.formData().SubmitWithMismatch=t),t}),d()()()()),a&2&&(n(3),o("label","Workflow")("options",e.manufactureFlowOptions())("keyLabel","Value")("keyValue","Key"),l("ngModel",e.formData().JobOrder.Workflow),o("description","Add planning step for manufacture")("defaultConfig",e.configDefault().JobOrder.Workflow),n(2),o("label","Material Mode")("options",e.options().ManufactureMaterialMode)("keyLabel","Value")("keyValue","Key"),l("ngModel",e.formData().JobOrder.MaterialMode),o("description","Select how to manage your material")("defaultConfig",e.configDefault().JobOrder.MaterialMode),n(),o("description","Regarding logic for manufacturing process"),n(3),o("label","Allow Mismatch Cost"),l("ngModel",e.formData().SubmitWithMismatch),o("description","Allow/disallow to submit job order with mismatch in total output and total input cost")("defaultConfig",e.configDefault().SubmitWithMismatch))},dependencies:[S,w,b,C,O,_],encapsulation:2,changeDetection:0})};export{v as ManufactureComponent};
