dealpos 25.48.6 → 25.48.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-AZHKO7UJ.js → chunk-24DOPC75.js} +1 -1
- package/browser/{chunk-JTQ2DJ3S.js → chunk-26JEGQVT.js} +1 -1
- package/browser/{chunk-332USX7W.js → chunk-26TQYDK4.js} +2 -2
- package/browser/{chunk-N5RGMLD2.js → chunk-32N5MU7O.js} +1 -1
- package/browser/{chunk-XZCKUF3K.js → chunk-45Z3LEE3.js} +1 -1
- package/browser/{chunk-WT3FMUO2.js → chunk-4K7JEM4G.js} +1 -1
- package/browser/{chunk-Q3N7QXAE.js → chunk-4LWL6ONS.js} +1 -1
- package/browser/{chunk-3HW5OYRU.js → chunk-4WQO2RHS.js} +1 -1
- package/browser/{chunk-PHFXJNIZ.js → chunk-4YYRY527.js} +1 -1
- package/browser/{chunk-F7DQLZDB.js → chunk-5QX6TGZZ.js} +1 -1
- package/browser/{chunk-VPCX5SL3.js → chunk-6CHPLSZP.js} +1 -1
- package/browser/{chunk-5S3ODP72.js → chunk-6QO2C3FF.js} +2 -2
- package/browser/{chunk-BF3MVRGL.js → chunk-7ZVJ7VXX.js} +1 -1
- package/browser/{chunk-ZEUW2FNU.js → chunk-B4QLMLCR.js} +1 -1
- package/browser/{chunk-PVEBGKGT.js → chunk-BBFPPEV4.js} +1 -1
- package/browser/{chunk-ZP5JY3GX.js → chunk-BBPEWU6Z.js} +1 -1
- package/browser/{chunk-NEQHRQ56.js → chunk-BDNMLR2O.js} +1 -1
- package/browser/{chunk-O354RIVK.js → chunk-BKW3VOSO.js} +1 -1
- package/browser/{chunk-3KBVHDMW.js → chunk-BZY7P2HB.js} +1 -1
- package/browser/{chunk-WZOD5NOT.js → chunk-C7N5UCSH.js} +1 -1
- package/browser/{chunk-E4O357Z5.js → chunk-CCVWJVWL.js} +1 -1
- package/browser/{chunk-C3OTQN4T.js → chunk-CFHFWDLT.js} +1 -1
- package/browser/{chunk-TWDVQAYI.js → chunk-CSMVZBFP.js} +1 -1
- package/browser/{chunk-5MIYFDIU.js → chunk-DNVNIL4V.js} +1 -1
- package/browser/{chunk-VDEYY3ZP.js → chunk-E3YCEPQG.js} +1 -1
- package/browser/{chunk-N5DU5K47.js → chunk-F5DCGUT4.js} +1 -1
- package/browser/{chunk-VBQ3XDAA.js → chunk-FIRDK7WN.js} +1 -1
- package/browser/{chunk-ZQ3KZRWR.js → chunk-FTFKZAV7.js} +1 -1
- package/browser/{chunk-L4N6SUWU.js → chunk-FW6W4LMW.js} +1 -1
- package/browser/{chunk-TCX4QJVI.js → chunk-G5UYTGCC.js} +1 -1
- package/browser/{chunk-76AAF2XH.js → chunk-GSW52TMP.js} +1 -1
- package/browser/{chunk-7DAOMPKT.js → chunk-GZYOK3YI.js} +1 -1
- package/browser/{chunk-KOB6YLFK.js → chunk-H3DQVRZH.js} +1 -1
- package/browser/{chunk-3ZZKFV67.js → chunk-HGP4PU2C.js} +1 -1
- package/browser/{chunk-WUYZJSXG.js → chunk-HLONXK6B.js} +2 -2
- package/browser/{chunk-QEP6RSHV.js → chunk-HPWNFFWA.js} +1 -1
- package/browser/{chunk-SXXWBS4Q.js → chunk-HRBW33P2.js} +1 -1
- package/browser/{chunk-M4SJ6QNM.js → chunk-IGL2MG7A.js} +1 -1
- package/browser/{chunk-CU53YQQD.js → chunk-IJX2MHXW.js} +1 -1
- package/browser/{chunk-XIYMH3JF.js → chunk-JGGEJZCY.js} +1 -1
- package/browser/{chunk-FH4Y2WG5.js → chunk-JP5SCOH5.js} +1 -1
- package/browser/{chunk-BYKK6PJ6.js → chunk-JPTLNVPA.js} +1 -1
- package/browser/{chunk-EOCYW77B.js → chunk-K7OVJIP4.js} +1 -1
- package/browser/{chunk-D7E53ETR.js → chunk-KX6ZFCRT.js} +1 -1
- package/browser/{chunk-AV6NQKIK.js → chunk-LLHHOUKK.js} +1 -1
- package/browser/{chunk-JEKBZZ5U.js → chunk-LRIVZJGT.js} +1 -1
- package/browser/{chunk-SZY2RG5Z.js → chunk-LTXELZQP.js} +1 -1
- package/browser/{chunk-XOGIPG34.js → chunk-NAB5XIWO.js} +1 -1
- package/browser/{chunk-KGDYUUZW.js → chunk-NKA2626Z.js} +1 -1
- package/browser/{chunk-M665M6PA.js → chunk-NQWQ3LN3.js} +1 -1
- package/browser/{chunk-CUXNQSG5.js → chunk-NVSS6R54.js} +1 -1
- package/browser/{chunk-US6O4OD4.js → chunk-O5HHJLJE.js} +1 -1
- package/browser/{chunk-KHJPKMJG.js → chunk-OKVDERZX.js} +1 -1
- package/browser/{chunk-ZNU6SF5X.js → chunk-P3CFEYTN.js} +1 -1
- package/browser/{chunk-N5ZHCZLF.js → chunk-P6AYULCX.js} +2 -2
- package/browser/{chunk-SMIPNG4O.js → chunk-P6YDBFVU.js} +1 -1
- package/browser/{chunk-7YT7VTC7.js → chunk-PG3N2D4L.js} +1 -1
- package/browser/{chunk-6GBWF2IE.js → chunk-PTQDVVYA.js} +1 -1
- package/browser/{chunk-3HJZRVBA.js → chunk-PVUSJSAF.js} +2 -2
- package/browser/{chunk-QK5RV2BD.js → chunk-QEPHDLMF.js} +1 -1
- package/browser/{chunk-COQRSZM6.js → chunk-QPONSJKG.js} +1 -1
- package/browser/{chunk-ALRWC3CB.js → chunk-R4PV6QMJ.js} +1 -1
- package/browser/{chunk-W6IXGY3Q.js → chunk-RFCRDKKT.js} +1 -1
- package/browser/{chunk-T5T2JDU6.js → chunk-RXCZRYLC.js} +2 -2
- package/browser/{chunk-DMMG2LPV.js → chunk-S7F4QRIF.js} +1 -1
- package/browser/{chunk-I4ZRPW56.js → chunk-TLFU5GQZ.js} +1 -1
- package/browser/{chunk-JR4YQHON.js → chunk-TQF5QQRO.js} +1 -1
- package/browser/{chunk-X7DJSHLD.js → chunk-URSM6NHE.js} +1 -1
- package/browser/{chunk-S65DCKKO.js → chunk-V2P26PYS.js} +1 -1
- package/browser/{chunk-FPGP3VWH.js → chunk-VFENVSIS.js} +1 -1
- package/browser/{chunk-M4CNRLAE.js → chunk-VQNTRDMH.js} +1 -1
- package/browser/{chunk-MKWUM2LV.js → chunk-W7QK25BA.js} +1 -1
- package/browser/{chunk-YAHJ37F6.js → chunk-WJP7UFC3.js} +1 -1
- package/browser/{chunk-7RNMAY2Q.js → chunk-WNXX3Q6C.js} +1 -1
- package/browser/{chunk-RZGFJCUE.js → chunk-WRBDENKA.js} +1 -1
- package/browser/{chunk-DW7WC4FH.js → chunk-XCAYOVJA.js} +2 -2
- package/browser/{chunk-MHI4CB7R.js → chunk-XUW464D2.js} +1 -1
- package/browser/{chunk-QK73Q7YA.js → chunk-Y3GVSEBK.js} +1 -1
- package/browser/{chunk-N2MEEQHJ.js → chunk-YCB2TTRU.js} +1 -1
- package/browser/{chunk-IQGTPKBQ.js → chunk-YOGLS63X.js} +1 -1
- package/browser/{chunk-V7QWHGJY.js → chunk-YZEZDT4J.js} +1 -1
- package/browser/{chunk-MKNNAGYJ.js → chunk-ZJM26VQN.js} +1 -1
- package/browser/{chunk-QOGVK4JI.js → chunk-ZUCFGG4P.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-O4YWLPG2.js → main-4XJPHTNG.js} +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-4K7JEM4G.js";import"./chunk-COA4UL2V.js";import"./chunk-32QBWLTN.js";import"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import"./chunk-ZZBF7AOW.js";import"./chunk-HRBW33P2.js";import"./chunk-BBFPPEV4.js";import"./chunk-JP5SCOH5.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-6P2ASCNY.js";import"./chunk-CSMVZBFP.js";import"./chunk-V2P26PYS.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-THT6CY5E.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import"./chunk-DWZ5JTI2.js";import"./chunk-DNVNIL4V.js";import"./chunk-CFHFWDLT.js";import"./chunk-36GWLMZX.js";import"./chunk-YVBGB3JF.js";import"./chunk-WUV22SZ4.js";import"./chunk-24DOPC75.js";import"./chunk-LGOSIAUC.js";import"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as WebhookJobLogsComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as P}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-BBFPPEV4.js";import{a as w}from"./chunk-JP5SCOH5.js";import{a as C}from"./chunk-6P2ASCNY.js";import{a as A}from"./chunk-V2P26PYS.js";import{a as I}from"./chunk-ZTD4APMR.js";import{a as l}from"./chunk-2FWFPV5I.js";import{a as c}from"./chunk-WUV22SZ4.js";import{fa as y,pa as f,t as L,z as S}from"./chunk-IEVGW2RT.js";import{a as F}from"./chunk-SNAKHGZS.js";var g=class{enabledDragItem;constructor(){this.enabledDragItem=!1}drop(o,t){C(t.Data,o.previousIndex,o.currentIndex)}toggleEnabledDragItem(){}onSaveDragAndDrop(o,t){this.enabledDragItem=!this.enabledDragItem,this.enabledDragItem||t.postListID(o,t.data.Data)}onPutSaveDragAndDrop(o,t){this.enabledDragItem=!this.enabledDragItem,this.enabledDragItem||t.putListID(o,t.data.Data)}};var u=class{constructor(o){this.httpService=o}exportCSV(o,t,e,i){e.pageData.Filter.Export=!0,e.pageData.Filter.FormatType=0,i=i||"export.csv",this.httpService.post(`/api/${t}`,e.pageData.Filter).subscribe(r=>{o.convertToCSV(r,i),e.pageData.Filter.Export=!1})}convertToCSV(o,t=!1,e){let i=this.ExportDataFromUI2(t);o.convertToCSV(i,e)}ExportDataFromUI2(o=!1){let t=document.getElementById("tableGrid"),e=[];return c.IsNotEmpty(t)&&t.querySelectorAll("tr").forEach(r=>{let a=new Object,s=0;r.querySelectorAll("th, td").forEach(n=>{s++;let b=parseInt(n.getAttribute("colspan"));for(let h=1;h<b;h++)a["column"+s]="",s++;let m=n.innerText,v=m.toString().split("");if(o&&v[0]==="0"&&v.length>1){let h="'"+m.trim();a["column"+s]=h}else a["column"+s]=m.trim()}),e.push(a)}),e}};var d=class{listTotal;pageSize;show;constructor(){this.listTotal=0,this.pageSize=0,this.show=!1}changePaginationData(o){this.pageSize=o.pageData.Filter.RowCount,this.listTotal=o.data?.ListTotal??o.data?.Data?.total?.value,this.show=this.pageSize<=this.listTotal}changePage(o,t,e){t.Filter.PageNumber=o.pageIndex+1,e.getListData()}};var x=class extends A{constructor(t,e,i,r,a,s,p){super(t);this.httpService=e;this.dataAPI=i;this.pageAPI=r;this.toastrService=a;this.route=s;this.initOpenDialog=p;this.exportHandler=new u(e),r?(s&&(this.loaderPayload=F({ListIDs:this.reportFilterService?.initOutletFilter()},s.snapshot.queryParams)),this.preInitLoader(),S([this.menuData$,this.httpService.post("/api/"+this.pageAPI,this.loaderPayload)]).pipe(L(([n,b])=>b)).pipe(I()).subscribe(n=>{this.pageData=n,this.pageData.Filter||(this.pageData.Filter={},this.pageData.Filter.RowCount=20),this.pageData.Filter.PageNumber=1,this.pageData.Filter.ID=this.loaderPayload.ID,this.preInitList(),p?this.openDialogFilter.openDialog():this.getListData()})):(this.pageData.Filter.RowCount=20,this.pageData.Filter.PageNumber=1,this.preInitList(),S({menuData:this.menuData$,listData:this.getListData$()}).pipe(I()).subscribe())}openDialogFilter=f(w);reportFilterService=f(P);pageData={Filter:{},Options:{},Roles:{},Config:{}};data;pagination=new d;dragDrop=new g;exportHandler;comparation=0;loaderPayload={};preInitLoader(){}preInitList(){}getListData(t){this.preGetList(),this.dataAPI&&this.httpService.post("/api/"+this.dataAPI,this.pageData.Filter).subscribe(e=>{this.data=e,this.postInit(e),this.pagination.changePaginationData(this),t&&(this.pageData.HideStoreApiCount=!1)})}getListData$(t){return this.preGetList(),this.httpService.post("/api/"+this.dataAPI,this.pageData.Filter).pipe(y(e=>{this.data=e,this.postInit(e),this.pagination.changePaginationData(this),t&&(this.pageData.HideStoreApiCount=!1)}))}searchFromPageOne(){this.preSearchFromPageOne(),this.pageData.Filter.PageNumber=1,this.getListData("filterMode")}postInit(t){t.PageTitle!=null&&(this.menuData.H=t.PageTitle)}preGetList(){this.pageData.Filter.From==null&&(this.pageData.Filter.From=c.MinDate),this.pageData.Filter.To==null&&(this.pageData.Filter.To=c.MinDate)}preSearchFromPageOne(){}onPaginationChange(t){this.pagination.changePage(t,this.pageData,this)}onSelectAllData(t){this.data.Data=this.data.Data.map(e=>(e.selected=t,e))}getSelectedData(){let t=[];return this.data&&(t=this.data.Data.filter(e=>e.selected)),t}httpPostListID(t,e,i){if(e||(e="Are you sure you want to selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.postListID(t,r,i)}httpPutListID(t,e,i){if(e||(e="Are you sure you want to selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.putListID(t,r,i)}httpDeleteListID(t,e,i){if(e||(e="Are you sure you want to delete selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.DeleteListID(t,r,i)}onSaveDragAndDrop(t){this.dragDrop.onSaveDragAndDrop(t,this)}onPutSaveDragAndDrop(t){this.dragDrop.onPutSaveDragAndDrop(t,this)}postListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.post(`/api/${t}`,r,1e6,!0).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.getListData()},a=>{let s=a.status+" "+a.statusText;this.toastrService.error(a.error.Message!=""?a.error.Message:"An unknown error has occured!",s,{enableHtml:!0})})}putListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.put(`/api/${t}`,r).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.afterPutListSuccess(),this.getListData()})}afterPutListSuccess(){}DeleteListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.delete(`/api/${t}`,{body:r}).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.getListData()})}postData(t,e){this.httpService.post("/API/"+t,e).subscribe(i=>{this.getListData(),this.toastrService.success(i.Message?i.Message:i,l.Success)})}compare(t,e,i){return(t<e?-1:1)*(i?1:-1)}exportCSV(t,e,i){this.exportHandler.exportCSV(t,e,this,i)}s2ab(t){for(var e=new ArrayBuffer(t.length),i=new Uint8Array(e),r=0;r!=t.length;++r)i[r]=t.charCodeAt(r)&255;return e}exportXlsx(t,e){this.pageData.Filter.FormatType=1,this.pageData.Filter.Export=!0,this.httpService.post(`/api/${t}`,this.pageData.Filter).subscribe(i=>{e=decodeURI(e);let r=window.URL.createObjectURL(new Blob([this.s2ab(atob(i))],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,"})),a=document.createElement("a");a.href=r,a.setAttribute("download",e),document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(r),a.remove()})}convertToCSV(t,e=!1,i){let r=this.exportHandler.ExportDataFromUI2(e);t.convertToCSV(r,i)}OnCompare(t){let e=t?this.data[t]:this.data;if(e.length<1)return;let i=Object.assign({},this.pageData.Filter);i.From=new Date(new Date(this.pageData.Filter.From).getFullYear(),new Date(this.pageData.Filter.From).getMonth()-1,1),i.To=new Date(new Date(this.pageData.Filter.To).getFullYear(),new Date(this.pageData.Filter.To).getMonth(),0).toDateString(),this.httpService.post("/API/"+this.dataAPI,i).subscribe(r=>{let a=t?r[t]:r;this.comparation=0,e.forEach(s=>{s.PrevIndex="-",s.CurrentIndex="-",s.Increase="-";let p=a.filter(n=>n.EntityID==s.EntityID);if(s.CurrentIndex=s.Rank,p.length>0){let n=p[0];s.PrevIndex=n.Rank,n.SalesNet?s.Increase=(s.SalesNet-n.SalesNet)/n.SalesNet*100:n.Sales&&(s.Increase=(s.Sales-n.Sales)/n.Sales*100),s.IsPositive=s.Increase>0,s.IsNegative=s.Increase<0,this.comparation+=s.Increase}})})}};export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O}from"./chunk-
|
|
1
|
+
import{a as O}from"./chunk-OKVDERZX.js";import{e as Q,f as z}from"./chunk-JP5SCOH5.js";import"./chunk-CSMVZBFP.js";import{b as H}from"./chunk-V2P26PYS.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as j,c as q}from"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-FU2ZGMX4.js";import{a as T}from"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as N,c as k,h as L,o as F}from"./chunk-DWZ5JTI2.js";import"./chunk-DNVNIL4V.js";import"./chunk-CFHFWDLT.js";import"./chunk-36GWLMZX.js";import"./chunk-YVBGB3JF.js";import"./chunk-WUV22SZ4.js";import"./chunk-24DOPC75.js";import{p as V,s as B}from"./chunk-LGOSIAUC.js";import{Ab as C,Ca as _,Fb as x,Gb as n,Hb as o,Nd as P,Pb as y,Sb as S,Ub as l,Xa as s,Yb as D,Zb as b,_b as M,cc as R,eb as f,gd as A,hc as r,ib as W,mb as w,mc as d,nc as u,oc as h,ta as c,ua as m,vd as E,yb as g,yc as I}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,v){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,v){if(p&1&&(n(0,"div",23),g(1,J,2,0,"small"),o()),p&2){let t=l(2);s(),C(t.textReceiptInvalidState()?1:-1)}}function X(p,v){if(p&1){let t=y();n(0,"mainpanel-cmp",1)(1,"actions")(2,"button",2),S("click",function(){c(t);let e=l();return m(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",3)(6,"div",4)(7,"div",5)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",6)(13,"div",7)(14,"div",8)(15,"div",9)(16,"input",10),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),m(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",8)(20,"div",11)(21,"input",12),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),m(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",7)(25,"div",8)(26,"div",13)(27,"input",14),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),m(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",8)(31,"div",15)(32,"input",16),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),m(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",4)(36,"div",5)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",17),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",6)(45,"div",7)(46,"div",18)(47,"div",19)(48,"textarea",20,0),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),m(e)}),S("ngModelChange",function(){c(t);let e=l();return m(e.onTextReceiptChange())}),o(),n(50,"label",21),r(51,"Customize E-Receipt Template"),o(),n(52,"div",22),g(53,K,2,1,"div",23),o()()()()()()()()()}if(p&2){let t=R(49),i=l();x("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),x("disabled",i.textReceiptInvalidState()),s(14),d("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),d("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),d("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),d("ngModel",i.formData.WhatsappConfig.From),s(16),d("ngModel",i.formData.WhatsappConfig.TextReceipt),x("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),C((i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched)?53:-1)}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,T.Warning):this.toaster.success("Config has been updated succesfully!",T.Success)}static \u0275fac=function(i){return new(i||p)(f(H),f(B),f(P),f(V))};static \u0275cmp=W({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&D(Y,5),i&2){let a;b(a=M())&&(e.textReceiptCtrl=a.first)}},features:[w],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],[1,"text-danger"]],template:function(i,e){i&1&&g(0,X,54,13,"mainpanel-cmp",1),i&2&&C(e.formData?0:-1)},dependencies:[E,A,z,Q,N,k,L,F,q,j],encapsulation:2})};export{U as WhatsappComponent};
|