import{a as W}from"./chunk-72HORKXP.js";import{a as O}from"./chunk-SQMWYYIH.js";import{a as E}from"./chunk-OIB33BTV.js";import{a as b}from"./chunk-F6AHCJAP.js";import{a as C}from"./chunk-WJLIXXN3.js";import"./chunk-IOKWCZEB.js";import"./chunk-3PTVMOA6.js";import"./chunk-BLIS2XXD.js";import"./chunk-3S3T7QLT.js";import"./chunk-JLQUTBFH.js";import"./chunk-JEKS3WOF.js";import"./chunk-GAOYV53E.js";import"./chunk-W6JPMHYE.js";import"./chunk-VPS35GPI.js";import"./chunk-UGBMCXS6.js";import"./chunk-5TTXT2K2.js";import"./chunk-YNQPX5G6.js";import"./chunk-IEJVBN5K.js";import"./chunk-HLLBCLO6.js";import"./chunk-4P6SOZDY.js";import"./chunk-XN7T54IM.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 S,h as y,o as M}from"./chunk-MDIMQ3H3.js";import"./chunk-MWDJTJ3O.js";import"./chunk-3DEA4WWC.js";import"./chunk-TKVDP62Z.js";import{Ib as o,Jb as i,Kb as a,Sd as c,Tc as s,Za as n,ib as u,ra as m,rc as r,sc as l,tc as d}from"./chunk-GJDGQISV.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var _=class g{activatedRoute=m(c);settings=m(C);formData=s(()=>this.settings.formData());options=s(()=>this.settings.options());configDefault=s(()=>this.settings.configDefault());constructor(){this.settings.initFormData(this.activatedRoute)}static \u0275fac=function(p){return new(p||g)};static \u0275cmp=u({type:g,selectors:[["POS-end-of-week-report"]],decls:10,vars:17,consts:[["cardTitle","Basic Settings","id","basicSettingsEndOfWeekReport"],[1,"row"],[1,"col-6"],["bindLabel","Name","bindValue","ID",3,"ngModelChange","label","options","ngModel"],[3,"ngModelChange","label","tooltip","type","ngModel"],[1,"col-12"],[3,"ngModelChange","label","tooltip","type","ngModel","isHorizontalLayout","description"],[3,"ngModelChange","label","description","ngModel","defaultConfig"]],template:function(p,t){p&1&&(i(0,"POS-card",0)(1,"div",1)(2,"div",2)(3,"POS-input-select",3),d("ngModelChange",function(e){return l(t.formData().EndOfWeekMail.ReceiverGroup,e)||(t.formData().EndOfWeekMail.ReceiverGroup=e),e}),a()(),i(4,"div",2)(5,"POS-input-field",4),d("ngModelChange",function(e){return l(t.formData().EndOfWeekMail.EmailSubject,e)||(t.formData().EndOfWeekMail.EmailSubject=e),e}),a()(),i(6,"div",5)(7,"POS-input-field",6),d("ngModelChange",function(e){return l(t.formData().EndOfWeekMail.CustomerBirthdaySubject,e)||(t.formData().EndOfWeekMail.CustomerBirthdaySubject=e),e}),a()(),i(8,"div",5)(9,"POS-input-toggle",7),d("ngModelChange",function(e){return l(t.formData().EndOfWeekMail.LastYearSpendingVisible,e)||(t.formData().EndOfWeekMail.LastYearSpendingVisible=e),e}),a()()()()),p&2&&(n(3),o("label","Group to Receive EOW Mail")("options",t.options().Groups),r("ngModel",t.formData().EndOfWeekMail.ReceiverGroup),n(2),o("label","Email Subject")("tooltip","Configure default value for subject report by email")("type","text"),r("ngModel",t.formData().EndOfWeekMail.EmailSubject),n(2),o("label","Customer Birthday Subject")("tooltip","Show info for customer's birthday")("type","text"),r("ngModel",t.formData().EndOfWeekMail.CustomerBirthdaySubject),o("isHorizontalLayout",!0)("description","Configure the subject line for customer birthday emails."),n(2),o("label","Last year Spending Visible")("description","Show last year spending report"),r("ngModel",t.formData().EndOfWeekMail.LastYearSpendingVisible),o("defaultConfig",t.configDefault().EndOfWeekMail.LastYearSpendingVisible))},dependencies:[b,W,S,y,M,O,E],encapsulation:2})};export{_ as EndOfWeekReportComponent};
