import{a as _}from"./chunk-72HORKXP.js";import{a as D}from"./chunk-F6AHCJAP.js";import{a as S}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-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 W,h as C,o as y}from"./chunk-MDIMQ3H3.js";import"./chunk-MWDJTJ3O.js";import"./chunk-3DEA4WWC.js";import"./chunk-TKVDP62Z.js";import{Ib as n,Jb as a,Kb as o,Sd as h,Tc as f,Za as i,ib as u,mc as m,ra as g,rc as p,sc as r,tc as s}from"./chunk-GJDGQISV.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var w=class c{activatedRoute=g(h);settings=g(S);formData=f(()=>this.settings.formData());options=f(()=>this.settings.options());configDefault=f(()=>this.settings.configDefault());constructor(){this.settings.initFormData(this.activatedRoute)}static \u0275fac=function(l){return new(l||c)};static \u0275cmp=u({type:c,selectors:[["POS-whatsapp"]],decls:20,vars:20,consts:[["cardTitle","Whatsapp Invoice Settings","id","whatsappInvoiceSettingsWhatsapp"],[1,"row"],[1,"col-6"],[3,"ngModelChange","label","tooltip","type","ngModel"],[1,"row","mt-4"],["cardTitle","Whatsapp Receipt Settings","id","whatsappReceiptSettingsWhatsapp",3,"description"],[1,"col-12"],[1,"text-end","fst-italic"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"]],template:function(l,t){l&1&&(a(0,"POS-card",0)(1,"div",1)(2,"div",2)(3,"POS-input-field",3),s("ngModelChange",function(e){return r(t.formData().WhatsappConfig.AccountSID,e)||(t.formData().WhatsappConfig.AccountSID=e),e}),o()(),a(4,"div",2)(5,"POS-input-field",3),s("ngModelChange",function(e){return r(t.formData().WhatsappConfig.AuthToken,e)||(t.formData().WhatsappConfig.AuthToken=e),e}),o()()(),a(6,"div",4)(7,"div",2)(8,"POS-input-field",3),s("ngModelChange",function(e){return r(t.formData().WhatsappConfig.ContentTemplateSID,e)||(t.formData().WhatsappConfig.ContentTemplateSID=e),e}),o()(),a(9,"div",2)(10,"POS-input-field",3),s("ngModelChange",function(e){return r(t.formData().WhatsappConfig.From,e)||(t.formData().WhatsappConfig.From=e),e}),o()()()(),a(11,"POS-card",5)(12,"div",1)(13,"div",6)(14,"POS-input-field",3),s("ngModelChange",function(e){return r(t.formData().WhatsappConfig.TextReceipt,e)||(t.formData().WhatsappConfig.TextReceipt=e),e}),o()(),a(15,"div",7),m(16," *Please refer this "),a(17,"a",8),m(18,"Article"),o(),m(19," for more information. "),o()()()),l&2&&(i(3),n("label","Account SID")("tooltip","The unique identifier for your Twilio account, used for authenticating API requests.")("type","text"),p("ngModel",t.formData().WhatsappConfig.AccountSID),i(2),n("label","Auth Token")("tooltip","The authentication token for secure access to the Twilio API.")("type","text"),p("ngModel",t.formData().WhatsappConfig.AuthToken),i(3),n("label","Content Template SID")("tooltip","The unique identifier for the WhatsApp message template to format your invoice content.")("type","text"),p("ngModel",t.formData().WhatsappConfig.ContentTemplateSID),i(2),n("label","From")("tooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.")("type","text"),p("ngModel",t.formData().WhatsappConfig.From),i(),n("description"," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. "),i(3),n("label","Customize E-Receipt Template")("type","textarea"),p("ngModel",t.formData().WhatsappConfig.TextReceipt))},dependencies:[D,_,W,C,y],encapsulation:2})};export{w as WhatsappComponent};
