dealpos 25.36.5 → 25.37.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-LVTGTXYR.js → chunk-2ATNLWJL.js} +1 -1
- package/browser/{chunk-COG3GHJD.js → chunk-2DMQVIBE.js} +1 -1
- package/browser/chunk-2GYHYM6C.js +1 -0
- package/browser/{chunk-GYWSH2X4.js → chunk-2I6DN732.js} +1 -1
- package/browser/chunk-2QRHEWZG.js +1 -0
- package/browser/{chunk-P7HKWFZT.js → chunk-2RSBMS36.js} +1 -1
- package/browser/{chunk-H43K36DA.js → chunk-2S4LF35V.js} +1 -1
- package/browser/{chunk-QRUWFLGV.js → chunk-2TUSVIA7.js} +1 -1
- package/browser/chunk-2VX2IMUY.js +1 -0
- package/browser/{chunk-T43U2XFQ.js → chunk-3BR4PCS5.js} +1 -1
- package/browser/chunk-3FOZ56CA.js +231 -0
- package/browser/{chunk-CQVVIZJ7.js → chunk-3K4MFJZI.js} +1 -1
- package/browser/{chunk-UX2MPDGZ.js → chunk-3TVSUUBD.js} +1 -1
- package/browser/{chunk-T4OLDAMN.js → chunk-423RFMVL.js} +1 -1
- package/browser/chunk-44QE6FET.js +125 -0
- package/browser/{chunk-HRMJHSXP.js → chunk-4F7XKKDX.js} +1 -1
- package/browser/{chunk-CRTHBX5Z.js → chunk-4FZ77NFR.js} +1 -1
- package/browser/{chunk-4FBGU4J6.js → chunk-4G4GU32S.js} +1 -1
- package/browser/chunk-53Y33SQN.js +1 -0
- package/browser/{chunk-HWU7VPX4.js → chunk-5IZUAM42.js} +1 -1
- package/browser/{chunk-URUVKPAB.js → chunk-5YW42TCN.js} +1 -1
- package/browser/{chunk-2RSKW5G2.js → chunk-645U43U6.js} +1 -1
- package/browser/{chunk-ECSUCVRE.js → chunk-64CSHXRW.js} +1 -1
- package/browser/{chunk-PP2K4DVZ.js → chunk-6FHIOHE3.js} +1 -1
- package/browser/{chunk-HK2LGXLR.js → chunk-6GDGY3QJ.js} +2 -2
- package/browser/{chunk-23Y4YCAW.js → chunk-6M6KXCIT.js} +1 -1
- package/browser/{chunk-VVIANPDG.js → chunk-7ALQSEOZ.js} +1 -1
- package/browser/{chunk-NW2SL2BH.js → chunk-7BVECXK7.js} +2 -2
- package/browser/{chunk-FSFWFU4W.js → chunk-7KSMTJW6.js} +1 -1
- package/browser/{chunk-7LHQ4DZG.js → chunk-7LBB7GZS.js} +1 -1
- package/browser/{chunk-7ARFB5UX.js → chunk-7PXSKRVE.js} +1 -1
- package/browser/{chunk-YDEXBKCL.js → chunk-7WLHEC5P.js} +1 -1
- package/browser/{chunk-J2YJ7UWM.js → chunk-AMSDLTX5.js} +1 -1
- package/browser/chunk-AUJWQ5CX.js +1 -0
- package/browser/{chunk-PX7NWQZQ.js → chunk-AYCCLOJL.js} +1 -1
- package/browser/{chunk-NNSCOQQS.js → chunk-AZRT7REO.js} +1 -1
- package/browser/{chunk-6QW64OSB.js → chunk-BAH4UVJ5.js} +1 -1
- package/browser/chunk-BEBJKGFP.js +1 -0
- package/browser/chunk-BIBIASY7.js +3 -0
- package/browser/chunk-BLS6POOW.js +3 -0
- package/browser/{chunk-S2EI3VNS.js → chunk-BRRQE5KZ.js} +1 -1
- package/browser/chunk-BWOG3YI3.js +1 -0
- package/browser/{chunk-BRUTIHV5.js → chunk-C247MHLB.js} +1 -1
- package/browser/{chunk-DADXJJV4.js → chunk-CCEXOHK3.js} +2 -2
- package/browser/{chunk-ALOHPKEB.js → chunk-CDTFGVVS.js} +1 -1
- package/browser/{chunk-M6P3HBWJ.js → chunk-CKB6AES2.js} +1 -1
- package/browser/{chunk-44YH56DF.js → chunk-D5QA72I4.js} +1 -1
- package/browser/chunk-DCCRJE3O.js +1 -0
- package/browser/{chunk-BKS3I5O7.js → chunk-DODUIG3I.js} +1 -1
- package/browser/{chunk-IUVGWNPX.js → chunk-DWWBB3GE.js} +1 -1
- package/browser/chunk-ECLYJ54K.js +1 -0
- package/browser/{chunk-VAZRO2E6.js → chunk-EGH7OT7P.js} +1 -1
- package/browser/{chunk-TR7C2V7C.js → chunk-EIMAZRK7.js} +1 -1
- package/browser/{chunk-FMLC555I.js → chunk-ENKSQCL7.js} +1 -1
- package/browser/chunk-FJJZD2B7.js +18 -0
- package/browser/chunk-FMW2LGMI.js +56 -0
- package/browser/chunk-FTUOJINV.js +1 -0
- package/browser/{chunk-BI62JVGE.js → chunk-FY72UF62.js} +1 -1
- package/browser/{chunk-A4CYZHDA.js → chunk-GBAG7EYS.js} +1 -1
- package/browser/{chunk-RZ4V7O3L.js → chunk-GIVCDZC7.js} +1 -1
- package/browser/chunk-GY4HUPHP.js +218 -0
- package/browser/{chunk-Z7LZBNHM.js → chunk-HWXWAUNO.js} +1 -1
- package/browser/{chunk-TPXSXDZD.js → chunk-HZNLV6RA.js} +1 -1
- package/browser/{chunk-DPLLLOO5.js → chunk-I2W5O5AZ.js} +1 -1
- package/browser/{chunk-5Q5T67DH.js → chunk-I5K3C5EY.js} +1 -1
- package/browser/{chunk-UHJRDVRX.js → chunk-I7VBCYOO.js} +1 -1
- package/browser/{chunk-ADCACICM.js → chunk-IBLGEDBH.js} +1 -1
- package/browser/chunk-IDC6L6JH.js +1 -0
- package/browser/chunk-ILTMDOAK.js +16 -0
- package/browser/{chunk-WKGWRMO2.js → chunk-IPMVP56X.js} +1 -1
- package/browser/{chunk-5UCQBOD6.js → chunk-IX5URHI7.js} +1 -1
- package/browser/{chunk-HSZIMZAT.js → chunk-JH5ADEFC.js} +1 -1
- package/browser/{chunk-OLFWZQFT.js → chunk-JTWFMMM2.js} +1 -1
- package/browser/{chunk-YLH7XCUD.js → chunk-JW5NCAZI.js} +1 -1
- package/browser/{chunk-VR6M3JBL.js → chunk-KFFKOF5G.js} +1 -1
- package/browser/{chunk-FPBO7JOG.js → chunk-KRG67JVZ.js} +1 -1
- package/browser/{chunk-X3I26PYS.js → chunk-KSKYFRB7.js} +1 -1
- package/browser/chunk-LEJBHNYP.js +1 -0
- package/browser/{chunk-PDCSUOQI.js → chunk-LGW7XM6V.js} +1 -1
- package/browser/{chunk-3IOQWLB5.js → chunk-LJD3LZP3.js} +1 -1
- package/browser/{chunk-HA2GY7XU.js → chunk-LNVTHMH7.js} +1 -1
- package/browser/{chunk-2EWXXZKQ.js → chunk-LPDARX3E.js} +1 -1
- package/browser/{chunk-VMY3JQDA.js → chunk-LPGMI3V2.js} +2 -2
- package/browser/{chunk-PBNWYWYT.js → chunk-LVPI72DU.js} +1 -1
- package/browser/chunk-LZNTSIJX.js +30 -0
- package/browser/{chunk-UCSQUJJW.js → chunk-M32CH5AK.js} +1 -1
- package/browser/{chunk-KER7KQ5L.js → chunk-MLI2YX5E.js} +1 -1
- package/browser/chunk-MQ5ESAAH.js +1 -0
- package/browser/{chunk-JXKXAC3X.js → chunk-NILHRRUO.js} +1 -1
- package/browser/{chunk-P2IBO7GU.js → chunk-NWOTM7DD.js} +1 -1
- package/browser/{chunk-3CAN5VUX.js → chunk-NXQT6LJS.js} +1 -1
- package/browser/{chunk-ITEHBWAC.js → chunk-ODE5SZH6.js} +1 -1
- package/browser/chunk-OENSRVQV.js +1 -0
- package/browser/{chunk-4WOVT5XU.js → chunk-OJLB3EQU.js} +1 -1
- package/browser/{chunk-GYLHVSYU.js → chunk-ONCZXBYC.js} +1 -1
- package/browser/{chunk-Y2LBBMGV.js → chunk-ONWNB7LP.js} +1 -1
- package/browser/{chunk-QGOWLTGF.js → chunk-PDNDXNJG.js} +1 -1
- package/browser/chunk-PFFR3I5J.js +401 -0
- package/browser/{chunk-ADD7IJCW.js → chunk-PGLMYP4S.js} +1 -1
- package/browser/{chunk-PEIB3SNV.js → chunk-PYJAEFZM.js} +1 -1
- package/browser/{chunk-OUDB3GIC.js → chunk-QBVLPTV5.js} +1 -1
- package/browser/{chunk-GXVV54HN.js → chunk-QXQKVFD2.js} +1 -1
- package/browser/{chunk-BYT3ZVBA.js → chunk-R52M4TBM.js} +1 -1
- package/browser/chunk-RBCKIP6D.js +1 -0
- package/browser/{chunk-SDCEXGQQ.js → chunk-RMPEAMU7.js} +1 -1
- package/browser/{chunk-XRPLOMD3.js → chunk-RRP7MA2F.js} +1 -1
- package/browser/{chunk-BF3HM72L.js → chunk-RVAZBTIQ.js} +1 -1
- package/browser/{chunk-RUU3H4QQ.js → chunk-S3TDDBTK.js} +1 -1
- package/browser/{chunk-GR3EU2XL.js → chunk-S446OPOL.js} +1 -1
- package/browser/chunk-SG2KVUZL.js +2 -0
- package/browser/{chunk-5ZWOT4WG.js → chunk-SHZWWZ7H.js} +1 -1
- package/browser/{chunk-S2ZO4T7V.js → chunk-SJGFFKA7.js} +1 -1
- package/browser/chunk-SS2JHDFV.js +1 -0
- package/browser/{chunk-H2VTVYZY.js → chunk-TBQI2P7D.js} +1 -1
- package/browser/{chunk-YRZFNDFW.js → chunk-TIZ2EW3A.js} +1 -1
- package/browser/chunk-TUHKOEXH.js +1 -0
- package/browser/{chunk-UP3KWF4T.js → chunk-U64KP4NG.js} +1 -1
- package/browser/{chunk-O65PGOTS.js → chunk-U652AHGM.js} +1 -1
- package/browser/{chunk-PS4PFFPT.js → chunk-UBVYDOUF.js} +1 -1
- package/browser/{chunk-6FWTWEKT.js → chunk-UEZOI7KW.js} +1 -1
- package/browser/{chunk-FHUSU4FC.js → chunk-UGXIEPP6.js} +1 -1
- package/browser/chunk-UTBVTQLT.js +12 -0
- package/browser/{chunk-L2RVOWIA.js → chunk-UVQPPKQB.js} +1 -1
- package/browser/{chunk-IYORR7HN.js → chunk-UWNXD5ZO.js} +1 -1
- package/browser/chunk-VOPP62W6.js +1 -0
- package/browser/{chunk-56WYLSRZ.js → chunk-VSZGQHVN.js} +1 -1
- package/browser/{chunk-7F6H3VFX.js → chunk-VZLT2MGB.js} +1 -1
- package/browser/chunk-W4E3XWPN.js +5 -0
- package/browser/{chunk-IN65Y4XX.js → chunk-WBTANXPU.js} +1 -1
- package/browser/{chunk-I5T3YLJW.js → chunk-WJWWBE6Y.js} +1 -1
- package/browser/{chunk-XWD54EOV.js → chunk-X3HEHRBU.js} +1 -1
- package/browser/{chunk-SSX7RVMB.js → chunk-X5I6AL2S.js} +1 -1
- package/browser/{chunk-D5E7MR22.js → chunk-XA5DJGAJ.js} +1 -1
- package/browser/{chunk-6HZ67QEX.js → chunk-XAEX53FJ.js} +1 -1
- package/browser/{chunk-XNA3D2E7.js → chunk-XDV6DITH.js} +1 -1
- package/browser/{chunk-MTCDHEYA.js → chunk-XF6535OT.js} +1 -1
- package/browser/{chunk-JOT2JETS.js → chunk-XK35I4BF.js} +1 -1
- package/browser/chunk-Y5GVVE7N.js +1 -0
- package/browser/{chunk-R6UDCFVL.js → chunk-Y6ZOOZLL.js} +1 -1
- package/browser/{chunk-LETD7LMJ.js → chunk-YAXAFRGD.js} +1 -1
- package/browser/chunk-YBPDQGQC.js +1 -0
- package/browser/{chunk-WAWDDMQZ.js → chunk-YE6Q4TXJ.js} +1 -1
- package/browser/{chunk-FT4QDBW5.js → chunk-YNTAPAX4.js} +1 -1
- package/browser/{chunk-IWKZ2PDL.js → chunk-YOD6EXLJ.js} +1 -1
- package/browser/{chunk-U3J3KT5P.js → chunk-YYZDU5FZ.js} +2 -2
- package/browser/chunk-ZGUZW56H.js +1 -0
- package/browser/{chunk-AYYLS3ND.js → chunk-ZRBPW7ZZ.js} +1 -1
- package/browser/{chunk-KJ6NWQLT.js → chunk-ZU22CVVV.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-2V5AVI54.js → main-2IQKAWBF.js} +2 -2
- package/browser/{styles-H2UJWE23.css → styles-AWHBZGFK.css} +1 -1
- package/package.json +1 -1
- package/browser/chunk-33NXJZ72.js +0 -1
- package/browser/chunk-3IPP3AZL.js +0 -222
- package/browser/chunk-3O2TNQSP.js +0 -3
- package/browser/chunk-3TA4OWHL.js +0 -56
- package/browser/chunk-44PHIXFD.js +0 -18
- package/browser/chunk-4GUECTPN.js +0 -125
- package/browser/chunk-5DD6XM7Q.js +0 -1
- package/browser/chunk-5DKNOWTW.js +0 -1
- package/browser/chunk-5EWWMBXV.js +0 -1
- package/browser/chunk-6MXSAOYM.js +0 -102
- package/browser/chunk-ARJLWLHF.js +0 -1
- package/browser/chunk-ATKMC4PC.js +0 -79
- package/browser/chunk-D5CTQSRR.js +0 -1
- package/browser/chunk-DGRQO7J7.js +0 -1
- package/browser/chunk-DNC7PRJV.js +0 -1
- package/browser/chunk-DQUPGPLI.js +0 -1
- package/browser/chunk-E5KSEPMR.js +0 -1
- package/browser/chunk-EVX52NA7.js +0 -1
- package/browser/chunk-G7GHTJTG.js +0 -231
- package/browser/chunk-HXWCQE45.js +0 -1
- package/browser/chunk-IB5RZ52J.js +0 -12
- package/browser/chunk-IQ47WQQ7.js +0 -1
- package/browser/chunk-M4WOVW67.js +0 -1
- package/browser/chunk-MUCQWTKH.js +0 -1
- package/browser/chunk-NUW4MIT6.js +0 -1
- package/browser/chunk-ONRDB4BH.js +0 -1
- package/browser/chunk-VGJ6EDWD.js +0 -1
- package/browser/chunk-WLD23T7Q.js +0 -1
- package/browser/chunk-WVU5HUMZ.js +0 -16
- package/browser/chunk-WXF4SX6R.js +0 -1
- package/browser/chunk-X3NWRG4U.js +0 -2
- package/browser/chunk-X4MTY5HS.js +0 -218
- package/browser/chunk-X7G45LGM.js +0 -30
- package/browser/chunk-Y2B6ZAXI.js +0 -3
- package/browser/chunk-Y4MOEVLJ.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,b as W}from"./chunk-
|
|
1
|
+
import{a as V,b as W}from"./chunk-FY72UF62.js";import{a as q}from"./chunk-DODUIG3I.js";import{h as J,i as B}from"./chunk-GY4HUPHP.js";import"./chunk-423RFMVL.js";import{b as P}from"./chunk-3K4MFJZI.js";import"./chunk-52EOLV7I.js";import"./chunk-5UL73W4S.js";import"./chunk-7PXSKRVE.js";import{b as I,c as E}from"./chunk-CIBQBSM6.js";import"./chunk-IX5URHI7.js";import"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-CGESXTHC.js";import"./chunk-2FWFPV5I.js";import"./chunk-TLOTIYIE.js";import"./chunk-2RSBMS36.js";import"./chunk-GIVCDZC7.js";import"./chunk-S446OPOL.js";import"./chunk-AHCRE4GP.js";import"./chunk-4FZ77NFR.js";import{$a as l,Ac as D,Bc as f,Ib as o,Jb as t,Kb as c,Ob as S,Od as M,Qb as v,Rb as b,Yd as T,Zc as x,db as m,ec as p,ed as _,fc as j,fd as k,gc as L,gd as w,jd as R,kb as h,ob as C,qb as y,va as u,vb as a,wa as g,zc as d}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";function N(r,i){if(r&1){let e=S();o(0,"mainpanel-cmp",1)(1,"content")(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h3"),p(8,"General"),t()(),o(9,"div",7)(10,"div",3)(11,"div",8),c(12,"floatinglabel",9),d(13,"date"),t(),o(14,"div",8),c(15,"floatinglabel",10),d(16,"number"),t()(),o(17,"div",3)(18,"div",8),c(19,"floatinglabel",11),t()()()()()(),o(20,"div",3)(21,"div",8)(22,"div",5)(23,"div",12)(24,"div",13)(25,"h3"),p(26,"Request"),t()(),o(27,"div",14)(28,"button",15),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null?null:n.jobLogsDetail.log.req,"Request"))}),p(29,"Copy Request to Clipboard"),t()()(),o(30,"div",7)(31,"pre",16),p(32),d(33,"json"),t()()()(),o(34,"div",8)(35,"div",5)(36,"div",12)(37,"div",13)(38,"h3"),p(39,"Response"),t()(),o(40,"div",14)(41,"button",17),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null||n.jobLogsDetail.log==null?null:n.jobLogsDetail.log.res,"Response"))}),p(42,"Copy Response to Clipboard"),t()()(),o(43,"div",7)(44,"pre",18),p(45),d(46,"json"),t()()()()()()()()}if(r&2){let e=b();a("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(12),a("model",f(13,10,e.jobLogsDetail["@timestamp_received"],"dd MMM yyyy")),l(3),a("model",f(16,13,e.jobLogsDetail==null?null:e.jobLogsDetail.DurationInSecond,"1.1-1")+" s"),l(4),a("model",e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.respCode),l(9),a("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),j(D(33,16,e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.req)),l(9),a("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),L('"',D(46,18,e.jobLogsDetail==null?null:e.jobLogsDetail.log.res),'"')}}var F=class r extends q{jobLogsDetail;copyStatus;msgCopyClipboard;constructor(i,e,s){super(i,e,"Developer/DeveloperSpace/Webhook/JobLogDetail",s)}postBindForm(i){this.jobLogsDetail=i?.hits[0]?._source,this.jobLogsDetail&&(this.jobLogsDetail.DurationInSecond=parseInt(this.jobLogsDetail?.Duration)/1e3)}copyClipboard(i,e){this.copyStatus=!0,this.msgCopyClipboard=e+" has been coppied to clipboard!",navigator.clipboard.writeText(JSON.stringify(i)),setTimeout(()=>{this.copyStatus=!1},3e3)}static \u0275fac=function(e){return new(e||r)(m(P),m(T),m(M))};static \u0275cmp=h({type:r,selectors:[["app-webhook-job-logs-detail"]],features:[C],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["id","webhook-logs",1,"container-fluid","pt-5"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-6"],["label","Created",3,"model"],["label","Duration",3,"model"],["label","Response Code",3,"model"],[1,"card-header","d-lg-flex"],[1,"me-auto","mt-5"],[1,"d-sm-block","mt-2"],["id","btnCopyRequest","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","requestValue",2,"font-size","13px"],["id","btnCopyResponse","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","responseValue",2,"font-size","13px"]],template:function(e,s){e&1&&y(0,N,47,20,"mainpanel-cmp",0),e&2&&a("ngIf",s.jobLogsDetail)},dependencies:[R,x,k,w,_,B,J,W,V,E,I],encapsulation:2})};export{F as WebhookJobLogsDetailComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O}from"./chunk-
|
|
1
|
+
import{a as O}from"./chunk-VZLT2MGB.js";import{u as A,v}from"./chunk-7PXSKRVE.js";import{e as N,f as h}from"./chunk-D35OBUDE.js";import{a as y}from"./chunk-2FWFPV5I.js";import{h as _,o as C}from"./chunk-2RSBMS36.js";import{a as u}from"./chunk-AHCRE4GP.js";import{$a as r,Ib as l,Jb as c,Qb as p,db as a,jc as f,kb as m,kc as g,lc as M,vb as s}from"./chunk-DZT5XHBQ.js";var T=class d{constructor(n,e){this.dialogRef=n;this.data=e;this.note=e,this.configModal=new A,this.configModal.headerType=y.Success,this.configModal.title="Note Invoice",this.configModal.customWidth="600px"}note;configModal;isNotEmpty(n){return u.IsNotEmpty(n)}onOk(){this.dialogRef.close(this.note)}static \u0275fac=function(e){return new(e||d)(a(N),a(h))};static \u0275cmp=m({type:d,selectors:[["POS-modal-add-note"]],standalone:!1,decls:6,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","px-0"],[1,"row"],[1,"col-sm-12"],[3,"ngModelChange","ngModel"]],template:function(e,o){e&1&&(l(0,"modal-material",0),p("onOk",function(){return o.onOk()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),l(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"POS-tinymce-editor",4),M("ngModelChange",function(i){return g(o.note,i)||(o.note=i),i}),c()()()()()()),e&2&&(s("config",o.configModal),r(5),f("ngModel",o.note))},dependencies:[_,C,v,O],encapsulation:2})};export{T as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{F as v,a as y,b as k,h as w,o as x}from"./chunk-2RSBMS36.js";import{$a as u,Ib as i,Jb as s,Kb as d,Ma as c,Ob as f,Qb as b,ia as p,jc as M,jd as P,kb as C,kc as _,lc as h,pc as O,va as r,vb as m,wa as a}from"./chunk-DZT5XHBQ.js";var T=class l{disabled=c(!1);value=c(!1);onToggleChange(e){this.onChange(e)}onChange=e=>{};onTouched=()=>{};setDisabledState(e){this.disabled.set(e)}writeValue(e){this.value.set(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=C({type:l,selectors:[["app-customize-toggle"]],features:[O([{provide:y,useExisting:p(()=>l),multi:!0}])],decls:8,vars:2,consts:[["inp",""],[1,"switch"],["type","checkbox","id","togBtn",3,"ngModelChange","disabled","ngModel"],[1,"slider","round"],[1,"on","toggle-label-text"],[1,"fa-solid","fa-check"],[1,"off","toggle-label-text"],[1,"fa-solid","fa-xmark"]],template:function(o,n){if(o&1){let g=f();i(0,"label",1)(1,"input",2,0),h("ngModelChange",function(t){return r(g),_(n.value,t)||(n.value=t),a(t)}),b("ngModelChange",function(t){return r(g),a(n.onToggleChange(t))}),s(),i(3,"div",3)(4,"span",4),d(5,"i",5),s(),i(6,"span",6),d(7,"i",7),s()()()}o&2&&(u(),m("disabled",n.disabled()),M("ngModel",n.value))},dependencies:[P,v,k,w,x],styles:['.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:60px;height:30px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ca2222;-webkit-transition:.3s;transition:.3s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:26px;width:26px;left:2px;bottom:2px;background-color:#fff;-webkit-transition:.3s;transition:.3s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#2ab934}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{-webkit-transform:translateX(30px);-ms-transform:translateX(30px);transform:translate(30px)}.on[_ngcontent-%COMP%]{display:none}.toggle-label-text[_ngcontent-%COMP%]{color:#fff;position:absolute;transform:translate(-50%,-50%);top:50%;font-size:14px;font-family:Verdana,sans-serif}.on[_ngcontent-%COMP%]{right:55%}.off[_ngcontent-%COMP%]{left:68%}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%] .on[_ngcontent-%COMP%]{display:block}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%] .off[_ngcontent-%COMP%]{display:none}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}input[_ngcontent-%COMP%]:disabled + .slider[_ngcontent-%COMP%]{background-color:#e6e6e6}input[_ngcontent-%COMP%]:disabled + .slider[_ngcontent-%COMP%]:before{background-color:#ccc}input[_ngcontent-%COMP%]:disabled + .slider[_ngcontent-%COMP%] .on[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:disabled + .slider[_ngcontent-%COMP%] .off[_ngcontent-%COMP%]{color:#aaa}input[_ngcontent-%COMP%]:disabled:checked + .slider[_ngcontent-%COMP%]{background-color:#e6e6e6}']})};export{T as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as V}from"./chunk-
|
|
1
|
+
import{a as V}from"./chunk-7PXSKRVE.js";import{E as F,ea as L,l as B,n as j}from"./chunk-567HXZXC.js";import{$a as E,D as u,Db as T,Fa as w,Ib as n,Jb as d,Ka as C,Kb as P,Kc as N,Ma as M,Mc as a,Qa as A,Qb as k,Sb as Y,Tb as z,d as l,db as O,f,ja as y,ka as _,kb as I,la as g,lb as x,mb as H,na as o,pa as b,qa as v,qb as R,ua as S,ub as m,xa as D,xb as p}from"./chunk-DZT5XHBQ.js";var K=["mat-sort-header",""],W=["*"];function Z(e,h){e&1&&(n(0,"div",2),D(),n(1,"svg",3),P(2,"path",4),d()())}var U=new g("MAT_SORT_DEFAULT_OPTIONS"),$=(()=>{class e{_defaultOptions;_initializedStream=new f(1);sortables=new Map;_stateChanges=new l;active;start="asc";get direction(){return this._direction}set direction(t){this._direction=t}_direction="";disableClear;disabled=!1;sortChange=new w;initialized=this._initializedStream;constructor(t){this._defaultOptions=t}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let i=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=G(t.start||this.start,i),s=r.indexOf(this.direction)+1;return s>=r.length&&(s=0),r[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||e)(O(U,8))};static \u0275dir=H({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",a],disabled:[2,"matSortDisabled","disabled",a]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[S]})}return e})();function G(e,h){let t=["asc","desc"];return e=="desc"&&t.reverse(),h||t.push(""),t}var c=(()=>{class e{changes=new l;static \u0275fac=function(i){return new(i||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function J(e){return e||new c}var Q={provide:c,deps:[[new b,new v,c]],useFactory:J},_t=(()=>{class e{_intl=o(c);_sort=o($,{optional:!0});_columnDef=o("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=o(N);_focusMonitor=o(B);_elementRef=o(C);_ariaDescriber=o(F,{optional:!0});_renderChanges;_animationModule=o(A,{optional:!0});_recentlyCleared=M(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}_sortActionDescription="Sort";disableClear;constructor(){o(j).load(V);let t=o(U,{optional:!0});this._sort,t?.arrowPosition&&(this.arrowPosition=t?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=u(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>this._recentlyCleared.set(null))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let t=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(t&&!this._isSorted()?i:null)}}_handleKeydown(t){(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=I({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&k("click",function(){return r._toggleOnInteraction()})("keydown",function(q){return r._handleKeydown(q)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(m("aria-sort",r._getAriaSortAttribute()),p("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",a],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",a]},exportAs:["matSortHeader"],attrs:K,ngContentSelectors:W,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Y(),n(0,"div",0)(1,"div",1),z(2),d(),R(3,Z,3,0,"div",2),d()),i&2&&(p("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationModule==="NoopAnimations"),m("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),E(3),T(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return e})(),gt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=x({type:e});static \u0275inj=_({providers:[Q],imports:[L]})}return e})();export{$ as a,_t as b,gt as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{P as b}from"./chunk-
|
|
1
|
+
import{P as b}from"./chunk-IX5URHI7.js";import{a as m}from"./chunk-2FWFPV5I.js";import{a as u}from"./chunk-4FZ77NFR.js";import{Vd as d,Yd as h,ja as n,na as c}from"./chunk-DZT5XHBQ.js";import{j as l}from"./chunk-7DCB7DB2.js";var p=class a{constructor(){}copy(t){return new Promise((o,r)=>{try{if(navigator.clipboard)navigator.clipboard.writeText(t).then(o,r);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")?o():r(new Error("Failed to copy with execCommand"))}catch(i){r(i)}finally{document.body.removeChild(e)}}}catch(e){r(e)}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac,providedIn:"root"})};var y=class a{toastr=c(d);httpService=c(h);copyToClipBoard=c(p);createCustomerFromNewNumberAndSendReceipt(t,o,r,e,i){r==0?this.httpService.post(b.CreateCustomerInvoice,{InvoiceID:e.ObjectID,Mobile:t}).subscribe(s=>l(this,null,function*(){this.toastr.success(s.Message,m.Success),yield this.sendReceiptToWhatsapp(t,e,o,i)})):this.toastr.info("WABA is not supported yet",m.Info)}createWhatsappReceipt(t,o,r){let e=I=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(I).replace("Rp","").trim().split(",00")?.[0],i=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName,{ObjectID:s,Final:g,InvoiceNumber:f}=t,v=window.location.host,w=`https://receipt.dealpos.app/s?Data=${window.btoa(`${s}_${v}`)}`;return this.convertWhatsappTemplateMessage({Amount:e(g),Brand:i,Currency:o,Number:f,ReceiptLink:w},r)}convertWhatsappTemplateMessage(t,o){let r=o||u?.whatsappTemplateMessage,e=["Brand","Number","Currency","Amount","ReceiptLink"],i=r;return e.forEach(s=>i=i.replace(`{${s}}`,t[s])),i}redirectToWhatsapp(t,o){let r=t;r=r[0]==="0"?`62${r.slice(1)}`:r;let e=`whatsapp://send?phone=${r}&text=${encodeURIComponent(o)}`;window.location.href=e,this.showToastrWhatsappNoInstalled()}showToastrWhatsappNoInstalled(){let t=!1;window.onblur=function(){t=!0},setTimeout(()=>{t||this.toastr.warning(`Currently, sending an e-receipt automatically opens WhatsApp Desktop, provided the device has the app installed
|
|
2
2
|
`,"WhatsApp not installed")},2e3)}copyToClipboard(t){return new Promise((o,r)=>this.copyToClipBoard.copy(t).then(()=>{this.toastr.info("Message copied to clipboard. If WhatsApp doesn't show the message, please paste it manually.","Receipt Ready",{timeOut:8e3}),o("Copied to clipboard")}).catch(e=>{console.log(e),this.toastr.warning("Could not copy message to clipboard","Clipboard Error",{timeOut:8e3}),r(e)}))}sendReceiptToWhatsapp(t,o,r,e){return l(this,null,function*(){try{let i=this.createWhatsappReceipt(o,r,e);try{yield this.copyToClipboard(i)}finally{this.redirectToWhatsapp(t,i)}}catch(i){console.warn(i),this.toastr.error("Failed to send receipt")}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac})};export{y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p}from"./chunk-52EOLV7I.js";import{Ib as c,Jb as m,Kb as d,kb as r,ob as s,ub as l,xa as o,za as a,zb as C}from"./chunk-DZT5XHBQ.js";var g=(()=>{class t extends p{static \u0275fac=(()=>{let i;return function(e){return(i||(i=a(t)))(e||t)}})();static \u0275cmp=r({type:t,selectors:[["ChevronRightIcon"]],features:[s],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,e){n&1&&(o(),c(0,"svg",0),d(1,"path",1),m()),n&2&&(C(e.getClassNames()),l("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role))},encapsulation:2})}return t})();export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,b as E}from"./chunk-
|
|
1
|
+
import{a as V,b as E}from"./chunk-BWOG3YI3.js";import{a as $}from"./chunk-ZT4RBJMM.js";import{F as H,a as j}from"./chunk-2RSBMS36.js";import{Ac as k,D as u,E as S,Ib as b,Jb as y,Qb as O,S as v,Y as g,Yd as M,aa as f,cd as A,d as p,db as C,ia as d,ja as h,jc as _,jd as T,kb as P,kc as R,lc as N,ma as l,o as m,pc as I,t as o,vb as a,zc as w}from"./chunk-DZT5XHBQ.js";var s=class t{constructor(e,n){this.httpService=e;this.signalRService=n;this.initSalesPersons()}salesPersonApi="/api/Contact/SelectSalesPersonOptions";salesPerson$=m([]);onOpenNgSelect=new p;_onOpenNgSelect$=this.onOpenNgSelect.asObservable();initSalesPersons(){this.salesPerson$=u(this._onOpenNgSelect$.pipe(v(),o(e=>({source:"select",value:e}))),this.signalRService.recacheSalesPerson$.pipe(o(e=>({source:"signalR",value:e})))).pipe(S(e=>e.value==!0),f(e=>(e.source=="signalR"&&this.signalRService.resetOutletCache(),this.httpService.get(this.salesPersonApi))),g(1))}onOpenNgselect(){this.onOpenNgSelect.next(!0)}static \u0275fac=function(n){return new(n||t)(l(M),l($))};static \u0275prov=h({token:t,factory:t.\u0275fac,providedIn:"root"})};var F=class t{constructor(e){this.salesPersonService=e}value=null;onChange=()=>{};onTouched=()=>{};placeholder="Choose Sales Person";multiple=!1;clearable=!0;salesPerson$;ngOnInit(){this.salesPerson$=this.salesPersonService.salesPerson$}onClickSelect(){this.salesPersonService.onOpenNgselect()}writeValue(e){this.value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}onSelectChange(){this.onChange(this.value)}static \u0275fac=function(n){return new(n||t)(C(s))};static \u0275cmp=P({type:t,selectors:[["sales-person-selector"]],inputs:{placeholder:"placeholder",multiple:"multiple",clearable:"clearable"},features:[I([{provide:j,useExisting:d(()=>t),multi:!0}])],decls:2,vars:5,consts:[["bindValue","k","bindLabel","v",3,"selectedChange","onOpen","items","selected","placeholder"]],template:function(n,i){n&1&&(b(0,"ng-select-infinite",0),w(1,"async"),N("selectedChange",function(r){return R(i.value,r)||(i.value=r),r}),O("selectedChange",function(){return i.onSelectChange()})("onOpen",function(){return i.onClickSelect()}),y()),n&2&&(a("items",k(1,3,i.salesPerson$)),_("selected",i.value),a("placeholder",i.placeholder))},dependencies:[T,A,H,E,V],encapsulation:2})};export{F as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as W,v as $,w as q}from"./chunk-
|
|
1
|
+
import{u as W,v as $,w as q}from"./chunk-7PXSKRVE.js";import{P as z}from"./chunk-IX5URHI7.js";import{e as B,f as G}from"./chunk-D35OBUDE.js";import{$a as a,Ac as O,Bc as j,Fc as F,Ib as n,Jb as r,Lb as D,Mb as T,Ob as P,Qb as R,Rb as y,Yc as U,Yd as u,Zc as L,db as d,dc as w,ec as p,ed as k,fc as C,gc as V,gd as A,hc as H,ja as b,jd as N,kb as I,ma as E,qb as g,t as M,va as m,vb as f,wa as c,xb as S,zc as x}from"./chunk-DZT5XHBQ.js";import{a as v,b as _}from"./chunk-7DCB7DB2.js";var J=class i{constructor(t){this.httpService=t}verifyEmail(t){let e={Email:t,EmailVerified:!0};return this.httpService.put("/api/v3/Customer/VerifyEmail",e)}verifyMobile(t){let e={Mobile:t,MobileVerified:!0};return this.httpService.put("/api/v3/Customer/VerifyMobile",e)}createSupplierByCustomerID(t){let e={CustomerID:t};return this.httpService.post("/api/Contact/CreateSupplierFromCustomer",e)}deleteCustomer(t){return this.httpService.post("/api/Contact/DeleteContact",{ID:t})}updateImage(t,e){return this.httpService.post("/api/Contact/UpdateContactImageURL",{ID:t,ImageURL:e})}mergeCustomer(t,e){let o={mergeTarget:t,deleted:e};return this.httpService.put(z.MergeCustomer,o)}static \u0275fac=function(e){return new(e||i)(E(u))};static \u0275prov=b({token:i,factory:i.\u0275fac})};function ie(i,t){if(i&1&&(n(0,"tr")(1,"td",7),p(2),x(3,"date"),r(),n(4,"td",8),p(5),x(6,"number"),r(),n(7,"td",8),p(8),r()()),i&2){let e=t.$implicit;a(2),C(j(3,5,e.ExpiryDate,"dd MMM yyyy")),a(3),C(O(6,8,e.Remaining)),a(2),S("text-danger",e.daysTo<=30),a(),V("",e.daysTo," days")}}function ne(i,t){if(i&1&&(D(0),n(1,"div",4)(2,"table",5)(3,"thead",6)(4,"tr")(5,"th",7),p(6,"Date"),r(),n(7,"th",8),p(8,"Point"),r(),n(9,"th",8),p(10,"Days To"),r()()(),n(11,"tbody"),g(12,ie,9,10,"tr",9),r()()(),T()),i&2){let e=y();a(12),f("ngForOf",e.points)}}function oe(i,t){if(i&1&&(n(0,"h5"),p(1),r()),i&2){let e=y();a(),H("",e.data.name," ",e.doesHavePoint?"has no upcoming point that will expire.":"does not have a point!"," ")}}var K=class i{constructor(t,e,o){this.dialogRef=t;this.data=e;this.config.title="Upcoming Point Expiry",this.config.customWidth="500px",this.config.cancelText="Close",this.config.hideOk=!0;let l=e.customerID;e.name&&(this.config.title=e.name+" "+this.config.title),this.doesHavePoint=e.doesHavePoint,o.post("/API/Loyalty/UpcomingPointExpiry",{CustomerID:l}).pipe(M(s=>[...s].map(h=>{let Q=new Date,X=new Date(h.ExpiryDate),Y=Math.abs(X-Q),Z=Math.ceil(Y/(1e3*60*60*24));return _(v({},h),{daysTo:Z})}))).subscribe(s=>this.points=s)}config=new W;points;doesHavePoint;static \u0275fac=function(e){return new(e||i)(d(B),d(G),d(u))};static \u0275cmp=I({type:i,selectors:[["POS-modal-expiry"]],decls:6,vars:3,consts:[["nohistory",""],[3,"onOk","onCancel","onClose","config"],[1,"container-fluid"],[4,"ngIf","ngIfElse"],[1,"table-responsive",2,"max-height","300px"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light"],[1,"text-start"],[1,"text-end"],[4,"ngFor","ngForOf"]],template:function(e,o){if(e&1){let l=P();n(0,"modal-material",1),R("onOk",function(){return m(l),c(o.dialogRef.close())})("onCancel",function(){return m(l),c(o.dialogRef.close())})("onClose",function(){return m(l),c(o.dialogRef.close())}),n(1,"content")(2,"div",2),g(3,ne,13,1,"ng-container",3)(4,oe,2,2,"ng-template",null,0,F),r()()()}if(e&2){let l=w(5);f("config",o.config),a(3),f("ngIf",o.points==null?null:o.points.length)("ngIfElse",l)}},dependencies:[N,U,L,A,k,q,$],encapsulation:2})};export{J as a,K as b};
|