import{a as E}from"./chunk-72HORKXP.js";import{a as v}from"./chunk-SQMWYYIH.js";import{a as D}from"./chunk-F6AHCJAP.js";import{a as _}from"./chunk-WJLIXXN3.js";import"./chunk-3PTVMOA6.js";import"./chunk-JLQUTBFH.js";import"./chunk-JEKS3WOF.js";import"./chunk-GAOYV53E.js";import"./chunk-W6JPMHYE.js";import"./chunk-VPS35GPI.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 g,o as C}from"./chunk-MDIMQ3H3.js";import"./chunk-MWDJTJ3O.js";import"./chunk-3DEA4WWC.js";import"./chunk-TKVDP62Z.js";import{Ib as i,Jb as n,Kb as a,Sd as f,Tc as s,Za as o,ib as u,ra as c,rc as r,sc as p,tc as l}from"./chunk-GJDGQISV.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var R=class y{activatedRoute=c(f);settings=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(m){return new(m||y)};static \u0275cmp=u({type:y,selectors:[["POS-e-receipt"]],decls:12,vars:29,consts:[["cardTitle","Basic Settings","id","basicSettingsEreceipt"],[1,"row"],[1,"col-12"],[3,"ngModelChange","label","tooltip","type","ngModel","isHorizontalLayout","description"],["bindLabel","Name","bindValue","ID",3,"ngModelChange","label","options","ngModel","isHorizontalLayout","description"]],template:function(m,t){m&1&&(n(0,"POS-card",0)(1,"div",1)(2,"div",2)(3,"POS-input-field",3),l("ngModelChange",function(e){return p(t.formData().InvoiceByEmail.ReceiptSubject,e)||(t.formData().InvoiceByEmail.ReceiptSubject=e),e}),a()(),n(4,"div",2)(5,"POS-input-field",3),l("ngModelChange",function(e){return p(t.formData().InvoiceByEmail.DisplayName,e)||(t.formData().InvoiceByEmail.DisplayName=e),e}),a()(),n(6,"div",2)(7,"POS-input-field",3),l("ngModelChange",function(e){return p(t.formData().InvoiceByEmail.ReplyTo,e)||(t.formData().InvoiceByEmail.ReplyTo=e),e}),a()(),n(8,"div",2)(9,"POS-input-field",3),l("ngModelChange",function(e){return p(t.formData().InvoiceByEmail.CCReceiptTo,e)||(t.formData().InvoiceByEmail.CCReceiptTo=e),e}),a()(),n(10,"div",2)(11,"POS-input-select",4),l("ngModelChange",function(e){return p(t.formData().InvoiceByEmail.Group,e)||(t.formData().InvoiceByEmail.Group=e),e}),a()()()()),m&2&&(o(3),i("label","Receipt Subject")("tooltip","Set E-Receipt Subject")("type","text"),r("ngModel",t.formData().InvoiceByEmail.ReceiptSubject),i("isHorizontalLayout",!0)("description","Customize E-Receipt Subject. Use {0} for Store Name and {1} for Invoice Number"),o(2),i("label","Display Name")("tooltip","Name that is displayed on customer's email")("type","text"),r("ngModel",t.formData().InvoiceByEmail.DisplayName),i("isHorizontalLayout",!0)("description","Configure the displayed name on E-Receipt"),o(2),i("label","Reply Mail Address")("tooltip","Email to reply when user click 'Reply' on email")("type","email"),r("ngModel",t.formData().InvoiceByEmail.ReplyTo),i("isHorizontalLayout",!0)("description","Configure email address to send a feedback / email reply"),o(2),i("label","CC Receipt Address")("tooltip","CC Receipt Address")("type","text"),r("ngModel",t.formData().InvoiceByEmail.CCReceiptTo),i("isHorizontalLayout",!0)("description","Configure CC email address to send a feedback / email reply"),o(2),i("label","Group to Send Receipt")("options",t.options().Groups),r("ngModel",t.formData().InvoiceByEmail.Group),i("isHorizontalLayout",!0)("description","Configure the group of users to which the receipt will be sent."))},dependencies:[D,E,S,g,C,v],encapsulation:2})};export{R as EReceiptComponent};
