dealpos 25.40.3 → 25.41.1
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-24DG45I3.js +222 -0
- package/browser/{chunk-6TE7JZAY.js → chunk-24OZA3GF.js} +1 -1
- package/browser/{chunk-E3TMOYBP.js → chunk-2F5STFEV.js} +1 -1
- package/browser/{chunk-6ENKLZEP.js → chunk-3CCLSY4U.js} +1 -1
- package/browser/{chunk-5DFDFG2P.js → chunk-3CCOX4FN.js} +1 -1
- package/browser/{chunk-SPDYAKM4.js → chunk-3DJNARG4.js} +1 -1
- package/browser/chunk-3KQOMCSD.js +1 -0
- package/browser/{chunk-J45TXCA6.js → chunk-3R5GV4J5.js} +1 -1
- package/browser/{chunk-OC76LLTB.js → chunk-3VQLYVVB.js} +1 -1
- package/browser/{chunk-KTA5HCUQ.js → chunk-3XMWVJ2L.js} +1 -1
- package/browser/{chunk-B4IX7BMU.js → chunk-45BASVRZ.js} +1 -1
- package/browser/{chunk-IFIBQUT3.js → chunk-4CRQAT4Y.js} +1 -1
- package/browser/{chunk-WFTWYIDX.js → chunk-4E2C3JC6.js} +1 -1
- package/browser/{chunk-NJ26HPPY.js → chunk-4LXRG6WX.js} +1 -1
- package/browser/{chunk-A7ZWFYP4.js → chunk-4SOJX57D.js} +1 -1
- package/browser/{chunk-3Q7UXVEJ.js → chunk-52UQUKPX.js} +1 -1
- package/browser/{chunk-YLEMIFBY.js → chunk-5DDIIEIO.js} +1 -1
- package/browser/{chunk-JDUQN72H.js → chunk-5TV4QYNO.js} +1 -1
- package/browser/{chunk-5JFVPOVI.js → chunk-642QVB6F.js} +1 -1
- package/browser/{chunk-KUWGWL2Z.js → chunk-6CJCT6YT.js} +1 -1
- package/browser/{chunk-KBLPR3U4.js → chunk-6OCNT66S.js} +1 -1
- package/browser/{chunk-LBLVFHYM.js → chunk-6ZEEVCRE.js} +1 -1
- package/browser/chunk-76X64SMO.js +1 -0
- package/browser/{chunk-Q4EIRSXE.js → chunk-7KXMZBQB.js} +1 -1
- package/browser/chunk-7N2QYF7R.js +1 -0
- package/browser/{chunk-H24LTKLU.js → chunk-7USMFPWJ.js} +1 -1
- package/browser/chunk-AD5C5J25.js +1 -0
- package/browser/{chunk-QZEE3BIX.js → chunk-AM5NRIT6.js} +1 -1
- package/browser/chunk-ANX6LLW2.js +14 -0
- package/browser/{chunk-FJPAOEQH.js → chunk-ARRQ5EFW.js} +1 -1
- package/browser/{chunk-76MASKAQ.js → chunk-ATYFAKRP.js} +1 -1
- package/browser/chunk-AVTXYQVU.js +1 -0
- package/browser/{chunk-M2HT3MNZ.js → chunk-B56YVUVP.js} +1 -1
- package/browser/{chunk-WQZRIM6G.js → chunk-B73NC3X2.js} +1 -1
- package/browser/{chunk-Y24USACE.js → chunk-BAORXMVG.js} +1 -1
- package/browser/{chunk-LJGV36SK.js → chunk-BT6BH634.js} +1 -1
- package/browser/{chunk-35MFGEZI.js → chunk-CBNETPSR.js} +1 -1
- package/browser/chunk-CE2F7JXC.js +2 -0
- package/browser/{chunk-YM7SBYD5.js → chunk-CHSEYRJF.js} +1 -1
- package/browser/{chunk-UC2B2WJN.js → chunk-CIK2MP4R.js} +1 -1
- package/browser/{chunk-3LJ5PM42.js → chunk-CSAGSFL3.js} +1 -1
- package/browser/{chunk-4BYJBTBW.js → chunk-CTUOHQZX.js} +1 -1
- package/browser/{chunk-6OO64KAO.js → chunk-CYN5RPKH.js} +1 -1
- package/browser/chunk-CYZLSELK.js +297 -0
- package/browser/chunk-D4TIVA7X.js +1 -0
- package/browser/chunk-DAFBCHSD.js +1 -0
- package/browser/chunk-DG3LALNR.js +1 -0
- package/browser/{chunk-ZKMJRNCL.js → chunk-DINWVJP7.js} +1 -1
- package/browser/{chunk-2FINBSQQ.js → chunk-DNLMIUJF.js} +1 -1
- package/browser/{chunk-VOC7I5E7.js → chunk-DOTR5PYR.js} +1 -1
- package/browser/{chunk-X6GVGUA7.js → chunk-DV7R2OHQ.js} +1 -1
- package/browser/{chunk-CRYG455U.js → chunk-E3OJDQJU.js} +1 -1
- package/browser/{chunk-2QEPMODF.js → chunk-EBF5TQA3.js} +1 -1
- package/browser/{chunk-VLWQGO7J.js → chunk-EPBMDUPY.js} +1 -1
- package/browser/{chunk-22VVADHO.js → chunk-EPYFG6SH.js} +1 -1
- package/browser/{chunk-MEFUUTBS.js → chunk-FBOZUHXS.js} +1 -1
- package/browser/{chunk-HSHYA63I.js → chunk-FFUG72H7.js} +1 -1
- package/browser/{chunk-FRCN6C2S.js → chunk-FUNMA7BH.js} +1 -1
- package/browser/{chunk-BCS3JDRX.js → chunk-FVNVDFZ3.js} +1 -1
- package/browser/chunk-FWGEWZZR.js +112 -0
- package/browser/{chunk-LAGRW3KI.js → chunk-G4ZMJRES.js} +1 -1
- package/browser/{chunk-64UDU34W.js → chunk-G5HGRNM6.js} +1 -1
- package/browser/{chunk-U5ERES6W.js → chunk-GGJKYPV4.js} +1 -1
- package/browser/{chunk-QTAOV4NJ.js → chunk-GHC4BCCW.js} +1 -1
- package/browser/{chunk-GSS2NRMS.js → chunk-GOLWWX2Q.js} +1 -1
- package/browser/{chunk-OHHX5AVS.js → chunk-GP2FLELQ.js} +2 -2
- package/browser/{chunk-EWXPGGNY.js → chunk-GYDKPYAE.js} +1 -1
- package/browser/{chunk-PNM3PGBM.js → chunk-GZAARWM2.js} +1 -1
- package/browser/{chunk-O55KYVIP.js → chunk-HLQAJGPW.js} +1 -1
- package/browser/chunk-HPLAMF75.js +180 -0
- package/browser/{chunk-WDC6EOX3.js → chunk-HUMRIGHZ.js} +1 -1
- package/browser/{chunk-VPLAJK5S.js → chunk-HV6ZFQAQ.js} +1 -1
- package/browser/{chunk-DMHVB7ER.js → chunk-I2RCZFBC.js} +1 -1
- package/browser/{chunk-GW3UEDTL.js → chunk-IAYC7I3R.js} +2 -2
- package/browser/{chunk-DXDH6I6R.js → chunk-IIT2DVM4.js} +1 -1
- package/browser/{chunk-PDV6AI5F.js → chunk-ILF7FISN.js} +1 -1
- package/browser/{chunk-QWRP6R5Q.js → chunk-IP5MKSCZ.js} +1 -1
- package/browser/{chunk-SF2N5AY3.js → chunk-IRAEKG7Q.js} +1 -1
- package/browser/{chunk-RAWC3LA6.js → chunk-ISWF7KQF.js} +1 -1
- package/browser/{chunk-XIHCJDZO.js → chunk-IXT3DF55.js} +1 -1
- package/browser/{chunk-NLPDFOMQ.js → chunk-J3C5CJEH.js} +1 -1
- package/browser/chunk-JBCRZS7M.js +1 -0
- package/browser/{chunk-4UYACZG5.js → chunk-JC3JZZBR.js} +1 -1
- package/browser/{chunk-O3MFYOEB.js → chunk-JGWX2EZR.js} +1 -1
- package/browser/{chunk-BGTYUNJU.js → chunk-JI2OEM7G.js} +1 -1
- package/browser/{chunk-RRPDIZ3O.js → chunk-JJK4XCMN.js} +1 -1
- package/browser/{chunk-ZOVUG76U.js → chunk-JRXXNT73.js} +2 -2
- package/browser/{chunk-WOLVGMVY.js → chunk-JS4S7VFN.js} +1 -1
- package/browser/{chunk-OLAYYOYX.js → chunk-JSKQZOB7.js} +1 -1
- package/browser/chunk-KANC33RT.js +1 -0
- package/browser/{chunk-IJ5QIFAX.js → chunk-KFVZHASH.js} +1 -1
- package/browser/{chunk-TEXOB45T.js → chunk-KN7SLSEV.js} +1 -1
- package/browser/{chunk-ZKOMV4BY.js → chunk-KZTKYVZF.js} +1 -1
- package/browser/{chunk-4HDGWFYM.js → chunk-L2PLXSAS.js} +1 -1
- package/browser/{chunk-FYB534C2.js → chunk-LGV5H2SN.js} +1 -1
- package/browser/{chunk-LSMHOEEJ.js → chunk-LOMNHHBV.js} +1 -1
- package/browser/{chunk-FV3BKJGW.js → chunk-LQ62MECB.js} +1 -1
- package/browser/{chunk-A4EX7WBL.js → chunk-MQZACMWS.js} +1 -1
- package/browser/{chunk-D7YIFG3G.js → chunk-MZQRC3WK.js} +1 -1
- package/browser/{chunk-SEV7H5KZ.js → chunk-N5JMFZAI.js} +1 -1
- package/browser/{chunk-ZXI2VI4Z.js → chunk-N5QWMN2M.js} +1 -1
- package/browser/chunk-NDGJRYJP.js +1 -0
- package/browser/{chunk-YK34HYBV.js → chunk-NPTTEU4B.js} +1 -1
- package/browser/{chunk-F5VCUVZF.js → chunk-NRLKPOI4.js} +1 -1
- package/browser/{chunk-VJNM25N5.js → chunk-OEZ36AB7.js} +1 -1
- package/browser/{chunk-NKY2S7AY.js → chunk-P5LBXEXP.js} +1 -1
- package/browser/{chunk-RQEBYX3F.js → chunk-PJHIUSNN.js} +1 -1
- package/browser/chunk-QAIN2I4M.js +1 -0
- package/browser/{chunk-ZV3KDIWY.js → chunk-QIC4NC44.js} +1 -1
- package/browser/{chunk-EVVI3ASJ.js → chunk-R5IO2SN4.js} +1 -1
- package/browser/{chunk-LOOZU2KI.js → chunk-S4FLFLTR.js} +1 -1
- package/browser/{chunk-TJIGR2WO.js → chunk-SIBFXOZL.js} +13 -13
- package/browser/{chunk-HHCO4QOU.js → chunk-SN3DTCGO.js} +1 -1
- package/browser/{chunk-SB6OBWNM.js → chunk-SNZ3XOYS.js} +1 -1
- package/browser/{chunk-YULBQPYG.js → chunk-T4WKRJX6.js} +1 -1
- package/browser/{chunk-XQXVOXXG.js → chunk-TE7XVDMD.js} +1 -1
- package/browser/chunk-TYBAV5LT.js +1 -0
- package/browser/{chunk-BHR44XGQ.js → chunk-U6QZY6DE.js} +4 -4
- package/browser/{chunk-XPSHJW3T.js → chunk-UESUOHI6.js} +1 -1
- package/browser/{chunk-LJJ5S6BL.js → chunk-UKTKBEVE.js} +1 -1
- package/browser/{chunk-VSDXDXYG.js → chunk-UQKBA274.js} +1 -1
- package/browser/chunk-UQVUEHMY.js +1 -0
- package/browser/{chunk-56ONABHX.js → chunk-UZFW2WNI.js} +1 -1
- package/browser/chunk-V6FJC4FI.js +127 -0
- package/browser/{chunk-7G6TIMT4.js → chunk-VSSVZBFF.js} +1 -1
- package/browser/{chunk-443ZJ45F.js → chunk-VURYHR5V.js} +1 -1
- package/browser/{chunk-YAHLQ7AI.js → chunk-W2NHEKCW.js} +1 -1
- package/browser/{chunk-PMVLWI3N.js → chunk-WA5AGHFF.js} +1 -1
- package/browser/{chunk-6ZW5QNJV.js → chunk-WBIEQKM7.js} +1 -1
- package/browser/{chunk-GEVZO5DH.js → chunk-WEAIMPRM.js} +1 -1
- package/browser/chunk-WIB47ZGF.js +1 -0
- package/browser/{chunk-CQHU6TYE.js → chunk-WOZLNXGI.js} +1 -1
- package/browser/{chunk-XYZHL2RI.js → chunk-WUBJGORE.js} +1 -1
- package/browser/{chunk-YBYLFCJT.js → chunk-XJD4HFEN.js} +1 -1
- package/browser/{chunk-BIHQKESC.js → chunk-XU5SOTZS.js} +1 -1
- package/browser/{chunk-3XCGOH67.js → chunk-XUVY2IO6.js} +1 -1
- package/browser/{chunk-YFMHWW77.js → chunk-XZ4YJQEE.js} +1 -1
- package/browser/{chunk-QGGIOQJT.js → chunk-Y3CUYCSX.js} +1 -1
- package/browser/{chunk-6YAD56QC.js → chunk-Y3SZN2BF.js} +1 -1
- package/browser/{chunk-EG46WMFJ.js → chunk-YKHH5WEY.js} +1 -1
- package/browser/chunk-YQEL63SF.js +1 -0
- package/browser/{chunk-RJFOMYK6.js → chunk-YQOPOHHS.js} +1 -1
- package/browser/chunk-YRDHQEJD.js +1 -0
- package/browser/{chunk-R3RNGCN5.js → chunk-YYR3XEAQ.js} +1 -1
- package/browser/{chunk-VULOVOPY.js → chunk-Z7LRKY4R.js} +1 -1
- package/browser/{chunk-GC77Y2AW.js → chunk-ZCQOFB7U.js} +1 -1
- package/browser/chunk-ZJETYSCY.js +1 -0
- package/browser/chunk-ZNOOG4JF.js +1 -0
- package/browser/chunk-ZV4Y6TGK.js +1 -0
- package/browser/index.html +2 -2
- package/browser/{main-2ZNMWLVC.js → main-EOSK3VZT.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-2G7CFAEB.js +0 -1
- package/browser/chunk-2IABFNTY.js +0 -1
- package/browser/chunk-436LRP6L.js +0 -1
- package/browser/chunk-4OLDMBIN.js +0 -1
- package/browser/chunk-4WC2MKQM.js +0 -1
- package/browser/chunk-BAPETH6A.js +0 -1
- package/browser/chunk-BNHAQL3W.js +0 -1
- package/browser/chunk-C6V3DPDE.js +0 -1
- package/browser/chunk-EEHG6F3B.js +0 -401
- package/browser/chunk-J53S6EAV.js +0 -1
- package/browser/chunk-KRGBGZ3Z.js +0 -1
- package/browser/chunk-MB4ENY3T.js +0 -1
- package/browser/chunk-MUPMKSCT.js +0 -1
- package/browser/chunk-NETNSE7N.js +0 -1
- package/browser/chunk-NRYV57E3.js +0 -1
- package/browser/chunk-OQABAMLZ.js +0 -1
- package/browser/chunk-PYNQZXQQ.js +0 -2
- package/browser/chunk-Q3RST7GR.js +0 -1
- package/browser/chunk-QKJHIZWL.js +0 -14
- package/browser/chunk-RCHPMIRB.js +0 -1
- package/browser/chunk-TKBUOGER.js +0 -1
- package/browser/chunk-WIT6FJSI.js +0 -125
- package/browser/chunk-WT2YZYZ7.js +0 -112
- package/browser/chunk-YMI65UH7.js +0 -1
- package/browser/chunk-ZCF5NNRJ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O}from"./chunk-
|
|
1
|
+
import{a as O}from"./chunk-YQOPOHHS.js";import{d as Q,e as z}from"./chunk-NRLKPOI4.js";import"./chunk-HLQAJGPW.js";import{b as H}from"./chunk-7N2QYF7R.js";import"./chunk-OI2RWAOV.js";import"./chunk-7LXPGNYF.js";import"./chunk-45BASVRZ.js";import{b as j,c as q}from"./chunk-XOQ4SW2R.js";import"./chunk-4SOJX57D.js";import"./chunk-6BL2JKZG.js";import"./chunk-REQUYIUO.js";import"./chunk-T2PMKO3M.js";import{a as S}from"./chunk-2FWFPV5I.js";import"./chunk-OE7PM4Y4.js";import{F as B,c as k,h as F,o as L}from"./chunk-CB33ZMNF.js";import"./chunk-CIK2MP4R.js";import"./chunk-52UQUKPX.js";import"./chunk-TYBAV5LT.js";import"./chunk-FUNMA7BH.js";import{$a as s,$b as b,Ib as n,Jb as o,Ma as _,Ob as w,Od as P,Qb as v,Rb as l,Vd as V,Wc as R,Yd as N,Zb as y,Zc as A,_b as D,db as g,dc as M,ec as r,jc as u,jd as E,kb as T,kc as h,lc as f,ob as W,qb as C,rc as I,va as m,vb as d,wa as c}from"./chunk-DJOHANFC.js";import"./chunk-7DCB7DB2.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,x){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,x){if(p&1&&(n(0,"div",25),C(1,J,2,0,"small",26),o()),p&2){let t=l(2);s(),d("ngIf",t.textReceiptInvalidState())}}function X(p,x){if(p&1){let t=w();n(0,"mainpanel-cmp",2)(1,"actions")(2,"button",3),v("click",function(){m(t);let e=l();return c(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(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",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"input",11),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),c(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",9)(20,"div",12)(21,"input",13),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),c(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",8)(25,"div",9)(26,"div",14)(27,"input",15),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),c(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",9)(31,"div",16)(32,"input",17),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),c(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",5)(36,"div",6)(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",18),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",7)(45,"div",8)(46,"div",19)(47,"div",20)(48,"textarea",21,0),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),c(e)}),v("ngModelChange",function(){m(t);let e=l();return c(e.onTextReceiptChange())}),o(),n(50,"label",22),r(51,"Customize E-Receipt Template"),o(),n(52,"div",23),C(53,K,2,1,"div",24),o()()()()()()()()()}if(p&2){let t=M(49),i=l();d("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),d("disabled",i.textReceiptInvalidState()),s(14),u("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),u("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),u("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),u("ngModel",i.formData.WhatsappConfig.From),s(16),u("ngModel",i.formData.WhatsappConfig.TextReceipt),d("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),d("ngIf",(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))}}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,S.Warning):this.toaster.success("Config has been updated succesfully!",S.Success)}static \u0275fac=function(i){return new(i||p)(g(H),g(N),g(P),g(V))};static \u0275cmp=T({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&y(Y,5),i&2){let a;D(a=b())&&(e.textReceiptCtrl=a.first)}},features:[W],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[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"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[4,"ngIf"]],template:function(i,e){i&1&&C(0,X,54,13,"mainpanel-cmp",1),i&2&&d("ngIf",e.formData)},dependencies:[E,R,A,z,Q,B,k,F,L,q,j],encapsulation:2})};export{U as WhatsappComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-TYBAV5LT.js";var n=class{Prefix;Seed;Digit;constructor(){this.Prefix=null,this.Seed=null,this.Digit=null}static Generate(t){let i="";if(t.Seed){let e=t.Seed+"";for(;e.length<t.Digit;)e="0"+e;i=r.StringFormat(t.Prefix,e)}return i}};var m=class{ID;Number;Due;Date;CustomDateField;TimeCustom;SurchargePcg;TempSurchargePcg;ToP;Note;ReferenceInvoiceID;PaymentStateID;Sales;DateCustom;constructor(){this.ID=r.GuidEmpty,this.SurchargePcg=0,this.TempSurchargePcg=0,this.Due=null}};var o=class{Name;Phone;Address;City;constructor(){this.Name="",this.Phone="",this.Address="",this.City=""}};export{n as a,m as b,o as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as k,c as S}from"./chunk-XOQ4SW2R.js";import{a as N}from"./chunk-
|
|
1
|
+
import{b as k,c as S}from"./chunk-XOQ4SW2R.js";import{a as N}from"./chunk-TYBAV5LT.js";import{$a as o,Ac as g,Ib as l,Jb as c,Ka as b,Kb as M,Lb as V,Mb as T,Rb as s,Va as y,Wc as F,Zc as O,db as r,ec as d,fb as h,fc as P,gc as _,gd as w,jd as D,kb as v,mb as I,nb as C,qb as m,rc as x,sc as E,vb as a,zb as u,zc as f}from"./chunk-DJOHANFC.js";var z=(()=>{class e{transform(t){return typeof t=="number"&&(t=t.toString()),t!=null?t.replace(/\n/g,"<br />"):t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275pipe=C({name:"newlines",type:e,pure:!0})}}return e})();var B=e=>({disabled:e}),L=(e,p)=>({labelFilledInput:e,labelEmptyInput:p});function j(e,p){if(e&1&&(l(0,"p"),d(1),f(2,"number"),c()),e&2){let t=s();o(),P(t.inputValueType()==="number"?g(2,1,t.inputValue):t.inputValue)}}function q(e,p){if(e&1&&(M(0,"p",3),f(1,"newlines")),e&2){let t=s();a("innerHTML",g(1,1,t.inputValue),y)}}function A(e,p){if(e&1&&(V(0),d(1),T()),e&2){let t=s();o(),_(" ",t.labelValue," ")}}var H=(()=>{class e{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=!0,this.disabled=!1,this.class="mb-6",this.tooltip="",this.isInputFilled=!1,this.isNotEmpty=N.IsNotEmpty}inputValueType(){return typeof this.inputValue}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=v({type:e,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip"},decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(i,n){i&1&&(l(0,"div",0),m(1,j,3,3,"p",1)(2,q,2,3,"p",2),l(3,"label"),m(4,A,2,1,"ng-container",1),c()()),i&2&&(u(n.class),a("ngClass",x(9,B,n.disabled))("matTooltip",n.tooltip),o(),a("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="input"),o(),a("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),o(),u(E(11,L,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),o(),a("ngIf",n.labelVisible))},dependencies:[D,F,O,w,z,S,k],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})}}return e})();var $=(()=>{class e{constructor(t,i){this.vcr=t,this.elementRef=i,this.type="input",this.label="",this.value="",this.isMasked=!1}ngOnInit(){let t=this.elementRef.nativeElement;if(t.firstChild&&this.isMasked){for(;t.firstChild;)t.removeChild(t.firstChild);let i=this.vcr.createComponent(H);i.instance.inputType=this.type,i.instance.inputValue=this.value,i.instance.labelValue=this.label,i.instance.tooltip="This Value is sensitive, Please contact your administrator if you need to view this!",i.instance.disabled=!0;let n=this.elementRef.nativeElement;n.insertBefore(i.location.nativeElement,n.firstChild)}}static{this.\u0275fac=function(i){return new(i||e)(r(h),r(b))}}static{this.\u0275dir=I({type:e,selectors:[["","pOSFormOrFloatingOnMasked",""]],inputs:{type:"type",label:"label",value:"value",isMasked:"isMasked"}})}}return e})();export{$ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S,b as o,c as v}from"./chunk-GIKR6Y2K.js";import{a}from"./chunk-
|
|
1
|
+
import{a as S,b as o,c as v}from"./chunk-GIKR6Y2K.js";import{a}from"./chunk-TYBAV5LT.js";import{I as l,N as u,Vd as g,d as n,e as i,ja as b,ma as C,n as h,p as r}from"./chunk-DJOHANFC.js";var f=class c{constructor(e){this.toastr=e;this.socketConnection=new v().withUrl("/POSHub").withAutomaticReconnect().configureLogging(S.Information).build(),this.registerEventHandler()}lastGroupID;OnPaymentReceived=new n;OnReceivePushNotification=new n;OnContactReceive=new n;OnPromotionEventChange=new n;_recacheOutlet=new i(!1);recacheOutlet$=this._recacheOutlet.asObservable();_recacheCategory=new i(!1);recacheCategory$=this._recacheCategory.asObservable();_recacheSalesPerson=new i(!1);recacheSalesPerson$=this._recacheSalesPerson.asObservable();socketConnection;connectionStateSubject=new n;startConnection(){this.socketConnection.state==o.Disconnected&&this.socketConnection.start().then(()=>{console.info("SignalR Connected"),this.connectionStateSubject.next(!0)}).catch(e=>{console.log(e)})}SubscribeGroup(e,t=null){e!=this.lastGroupID&&(this.socketConnection.state==o.Disconnected?this.socketConnection.start().then(()=>{this.invokeSubscribe(e,t)}).catch(s=>{this.toastr.error(s,"Error")}):this.socketConnection.state==o.Connecting?this.connectionStateSubject.pipe(u(1)).subscribe({next:()=>{this.invokeSubscribe(e,t)}}):this.socketConnection.state==o.Connected&&this.invokeSubscribe(e,t))}invokeSubscribe(e,t){let s={CurrentID:e,PreviousID:t};this.socketConnection.invoke("SubscribeGroup",s).then(()=>{console.info(`SignalR Subscribed to Group: [${e}]`),this.lastGroupID=e}).catch(p=>{console.error(p)})}registerEventHandler(){this.socketConnection.on("ReceiveMobilePaymentSignal",e=>{this.OnPaymentReceived.next(e)}),this.socketConnection.on("OnContactReceive",e=>{this.OnContactReceive.next(e)}),this.socketConnection.on("ReceiveNewPromotionSignal",e=>{this.OnPromotionEventChange.next(e)}),this.socketConnection.on("ReceivePushNotificationSignal",e=>{this.OnReceivePushNotification.next(e)}),this.socketConnection.on("ReceiveOutletChanges",()=>{this._recacheOutlet.next(!0)}),this.socketConnection.on("ReceiveProductCategoryChanges",()=>{this._recacheCategory.next(!0)}),this.socketConnection.on("ReceiveSalesPersonChanges",()=>{this._recacheSalesPerson.next(!0)})}isSocketConnected(){return a.IsEmpty(this.socketConnection)?!1:this.socketConnection.state==o.Connected&&a.IsNotEmpty(this.socketConnection.connectionId)}broadcast(e){return this.isSocketConnected()?h(this.socketConnection.invoke("BroadCast",e)).pipe(l(t=>(this.toastr.error(t,"Error"),r(()=>t)))):r(()=>"SignalR is not connected")}resetOutletCache(){this._recacheOutlet.next(!1)}resetCategoryCache(){this._recacheCategory.next(!1)}resetSalesPersonCache(){this._recacheSalesPerson.next(!1)}static \u0275fac=function(t){return new(t||c)(C(g))};static \u0275prov=b({token:c,factory:c.\u0275fac,providedIn:"root"})};export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as m}from"./chunk-
|
|
1
|
+
import{e as m}from"./chunk-TYBAV5LT.js";import{db as r,gd as o,nb as e}from"./chunk-DJOHANFC.js";var n=class a{constructor(t,i){this.fractionData=t;this.decimalPipe=i}transform(t){let i="1."+this.fractionData.amount.minimumFraction+"-"+this.fractionData.amount.maximumFraction;return this.decimalPipe.transform(t,i)}static \u0275fac=function(i){return new(i||a)(r(m,16),r(o,16))};static \u0275pipe=e({name:"amountFraction",type:a,pure:!0})};export{n as a};
|