import{a as C}from"./chunk-HTYQN767.js";import{a as v}from"./chunk-F6AHCJAP.js";import{a as b}from"./chunk-WJLIXXN3.js";import"./chunk-2ZXCNSZZ.js";import"./chunk-N4NZWFKH.js";import"./chunk-LL4377Z2.js";import"./chunk-VPS35GPI.js";import"./chunk-5TTXT2K2.js";import"./chunk-YNQPX5G6.js";import"./chunk-4P6SOZDY.js";import"./chunk-RULWGB4E.js";import"./chunk-2HIDUY57.js";import"./chunk-2MELUOYA.js";import"./chunk-WOPE6PPO.js";import{E as y,h as c,o as D}from"./chunk-MDIMQ3H3.js";import"./chunk-MWDJTJ3O.js";import"./chunk-TKVDP62Z.js";import{Ib as r,Jb as l,Kb as d,Sd as g,Tc as n,Za as a,ib as f,ra as i,rc as s,sc as u,tc as p}from"./chunk-GJDGQISV.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var S=class m{activatedRoute=i(g);settings=i(b);formData=n(()=>this.settings.formData());options=n(()=>this.settings.options());configDefault=n(()=>this.settings.configDefault());constructor(){this.settings.initFormData(this.activatedRoute)}static \u0275fac=function(o){return new(o||m)};static \u0275cmp=f({type:m,selectors:[["POS-debt"]],decls:6,vars:10,consts:[["cardTitle","Settings","id","settingsDebt"],[1,"row"],[1,"col-12"],["keyLabel","Value","keyValue","Key",3,"ngModelChange","label","description","options","defaultConfig","ngModel"]],template:function(o,e){o&1&&(l(0,"POS-card",0)(1,"div",1)(2,"div",2)(3,"POS-button-group",3),p("ngModelChange",function(t){return u(e.formData().DeliveryRule,t)||(e.formData().DeliveryRule=t),t}),d()(),l(4,"div",2)(5,"POS-button-group",3),p("ngModelChange",function(t){return u(e.formData().DeliveryArRule,t)||(e.formData().DeliveryArRule=t),t}),d()()()()),o&2&&(a(3),r("label","AP Calculation")("description","Set default AP calculation to be counted after/before delivery")("options",e.options().DebtDeliveryRule)("defaultConfig",e.configDefault().DeliveryRule),s("ngModel",e.formData().DeliveryRule),a(2),r("label","AR Calculation")("description","Set default AR calculation to be counted after/before delivery")("options",e.options().DebtDeliveryRule)("defaultConfig",e.configDefault().DeliveryArRule),s("ngModel",e.formData().DeliveryArRule))},dependencies:[v,C,y,c,D],encapsulation:2})};export{S as DebtComponent};
