dealpos 25.48.3 → 25.48.4
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-4VZ44DFH.js → chunk-335MTOI2.js} +1 -1
- package/browser/{chunk-ZX2PZLXX.js → chunk-3DSF6ERB.js} +1 -1
- package/browser/{chunk-YPG7NXW6.js → chunk-3R6XTRIS.js} +1 -1
- package/browser/{chunk-BFH7QECY.js → chunk-443UJP4E.js} +1 -1
- package/browser/{chunk-76HEQQHO.js → chunk-4CPJUJ5L.js} +1 -1
- package/browser/{chunk-FR45A6EK.js → chunk-4F7IU5IR.js} +1 -1
- package/browser/{chunk-O2SKATLU.js → chunk-4IBCJLJE.js} +1 -1
- package/browser/{chunk-ISNO6K5N.js → chunk-5THS2GXN.js} +1 -1
- package/browser/{chunk-VJJIUPEN.js → chunk-5VQTC5KM.js} +1 -1
- package/browser/{chunk-SRC3HH3O.js → chunk-6BXLBSVS.js} +1 -1
- package/browser/{chunk-4LPKNH7W.js → chunk-6GBUH4A7.js} +1 -1
- package/browser/{chunk-PMVUKT2P.js → chunk-73R34UN3.js} +1 -1
- package/browser/chunk-7BVPHIEF.js +1 -0
- package/browser/{chunk-N6QOUUEK.js → chunk-A2HQD76V.js} +1 -1
- package/browser/{chunk-7PWZYJQP.js → chunk-A2R2SRZS.js} +1 -1
- package/browser/{chunk-IYXZ6DM6.js → chunk-BYRR2B2X.js} +1 -1
- package/browser/{chunk-S43AJQWQ.js → chunk-CA34NNP2.js} +1 -1
- package/browser/{chunk-XNRJ3UHI.js → chunk-CKHIFDBW.js} +1 -1
- package/browser/{chunk-5BE4626O.js → chunk-COHKLV67.js} +1 -1
- package/browser/{chunk-UGA6CKWS.js → chunk-D45QKGTU.js} +1 -1
- package/browser/{chunk-MNEZCILO.js → chunk-DF4DHBHG.js} +1 -1
- package/browser/{chunk-JLJ6CCD3.js → chunk-DI4JWRN2.js} +1 -1
- package/browser/{chunk-57LTUNGL.js → chunk-DLRH3QKL.js} +1 -1
- package/browser/{chunk-YSM3FPZM.js → chunk-E42VMBXZ.js} +1 -1
- package/browser/{chunk-BDINGIQV.js → chunk-EPINMFAX.js} +1 -1
- package/browser/{chunk-WTAIDRV6.js → chunk-F2I7C3M3.js} +1 -1
- package/browser/{chunk-HE7N7GWE.js → chunk-FSSIO7GL.js} +1 -1
- package/browser/{chunk-5WC44KI7.js → chunk-FZCOVHS7.js} +1 -1
- package/browser/{chunk-VXOS2AWO.js → chunk-GAMK6E3M.js} +1 -1
- package/browser/{chunk-VG3PJFDU.js → chunk-GC6XKSVW.js} +2 -2
- package/browser/{chunk-RFRD7Y7N.js → chunk-GRT6SQUV.js} +1 -1
- package/browser/{chunk-GFZBO5RW.js → chunk-HAIP6P4F.js} +1 -1
- package/browser/{chunk-KU2O2EHB.js → chunk-HMEQKB3Z.js} +1 -1
- package/browser/{chunk-CJCEJIDM.js → chunk-HMXHET62.js} +1 -1
- package/browser/{chunk-MWJTE5VJ.js → chunk-HNGDEK6A.js} +1 -1
- package/browser/{chunk-O3R6FNX7.js → chunk-HNGOCAAQ.js} +1 -1
- package/browser/{chunk-O5A5DNRB.js → chunk-HSURS7A5.js} +1 -1
- package/browser/{chunk-C7XESRQV.js → chunk-JQQXPIW7.js} +1 -1
- package/browser/{chunk-C5DGBRES.js → chunk-JSYUX55K.js} +1 -1
- package/browser/{chunk-NXNTQNWD.js → chunk-K522UIWE.js} +1 -1
- package/browser/{chunk-G6XFCO2C.js → chunk-K6UBXXMV.js} +1 -1
- package/browser/{chunk-TYV6AS5A.js → chunk-KL7TZ4L3.js} +1 -1
- package/browser/{chunk-AY2G4OD6.js → chunk-KS4MCBAD.js} +1 -1
- package/browser/{chunk-7NB2JM2Z.js → chunk-KVYFWAXC.js} +1 -1
- package/browser/{chunk-NCSIYRDC.js → chunk-LOSZONX5.js} +1 -1
- package/browser/{chunk-3BIA7JJK.js → chunk-MBB74QVL.js} +1 -1
- package/browser/{chunk-DZPZK3FC.js → chunk-MSVDVTIV.js} +1 -1
- package/browser/{chunk-QVUZMITO.js → chunk-MTMXY32O.js} +1 -1
- package/browser/{chunk-CJJZ3NN6.js → chunk-MU6SCZAC.js} +1 -1
- package/browser/{chunk-WGOJUNBF.js → chunk-N5UL5CKI.js} +1 -1
- package/browser/{chunk-2YNPPAZH.js → chunk-NGBNFGPJ.js} +1 -1
- package/browser/{chunk-QGKX2IE5.js → chunk-NIA3RUK3.js} +1 -1
- package/browser/{chunk-SNEK2BS2.js → chunk-NIT4LLPE.js} +1 -1
- package/browser/{chunk-AOWEKBY6.js → chunk-OFSDKSGP.js} +1 -1
- package/browser/{chunk-LLYADZXM.js → chunk-OLKDSXBA.js} +1 -1
- package/browser/{chunk-VKFZNKM5.js → chunk-PFCZZYN7.js} +1 -1
- package/browser/{chunk-L5VX4XJU.js → chunk-QGWSDMHC.js} +1 -1
- package/browser/{chunk-3ALPLNFL.js → chunk-QQ2YQAKU.js} +1 -1
- package/browser/{chunk-Y3KLG6WD.js → chunk-QWGF65NY.js} +2 -2
- package/browser/{chunk-XQEJUVQP.js → chunk-QZ5KTZ5O.js} +1 -1
- package/browser/{chunk-KTPBLT2O.js → chunk-RF626YRZ.js} +1 -1
- package/browser/{chunk-QKNGNLDI.js → chunk-ROLD7LRS.js} +2 -2
- package/browser/{chunk-MVISUVLB.js → chunk-S7F2VAOO.js} +1 -1
- package/browser/{chunk-JDXKVQWT.js → chunk-SLOQCSJQ.js} +1 -1
- package/browser/{chunk-HQ574TNK.js → chunk-SZCBZJWT.js} +1 -1
- package/browser/{chunk-W2BNI7QT.js → chunk-T6O6272L.js} +2 -2
- package/browser/{chunk-YTQA4ZQ5.js → chunk-T7FNDCBZ.js} +1 -1
- package/browser/{chunk-Y6BFENML.js → chunk-TFTQPXT2.js} +1 -1
- package/browser/{chunk-JNZBO6JV.js → chunk-TNW4DJDF.js} +1 -1
- package/browser/{chunk-5ATOLSOU.js → chunk-TX4QVA3F.js} +1 -1
- package/browser/{chunk-WNAYJWEQ.js → chunk-U544TRDM.js} +1 -1
- package/browser/{chunk-I2VTAB36.js → chunk-V2R4WJOF.js} +1 -1
- package/browser/{chunk-WFN42V6H.js → chunk-VFQB2MVW.js} +1 -1
- package/browser/{chunk-4PJRRPIJ.js → chunk-W3TN26PX.js} +13 -13
- package/browser/{chunk-PVW5CNDF.js → chunk-WCIAQ44B.js} +2 -2
- package/browser/{chunk-NTC7KH7U.js → chunk-X2JPG7JJ.js} +1 -1
- package/browser/{chunk-CTYPZCCF.js → chunk-X7GD2PTG.js} +1 -1
- package/browser/{chunk-2RLL7E46.js → chunk-Y23YZCOK.js} +1 -1
- package/browser/{chunk-M2WWQMGM.js → chunk-Y2EBDHRL.js} +1 -1
- package/browser/{chunk-OUYWPXOM.js → chunk-Y4V2WEIH.js} +1 -1
- package/browser/{chunk-BD6OKJBW.js → chunk-Y54ES5RG.js} +1 -1
- package/browser/{chunk-DTOZS4FK.js → chunk-YXVOA736.js} +1 -1
- package/browser/{chunk-S6FFSXPE.js → chunk-ZCQ45ILW.js} +1 -1
- package/browser/{chunk-KZXFGU4G.js → chunk-ZH54LQDR.js} +2 -2
- package/browser/index.html +2 -2
- package/browser/{main-OHTLAVEH.js → main-33B7R4OS.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-CVNF5DNI.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as J}from"./chunk-
|
|
1
|
+
import{c as J}from"./chunk-3DSF6ERB.js";import{a as G}from"./chunk-KL7TZ4L3.js";import"./chunk-PFCZZYN7.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{e as q,f as z}from"./chunk-U544TRDM.js";import"./chunk-TFTQPXT2.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-6P2ASCNY.js";import"./chunk-COHKLV67.js";import{b as A}from"./chunk-BYRR2B2X.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as j,c as k}from"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import"./chunk-SLX34TWD.js";import{F as W,h as B,o as H}from"./chunk-DWZ5JTI2.js";import"./chunk-TX4QVA3F.js";import"./chunk-ZCQ45ILW.js";import"./chunk-36GWLMZX.js";import"./chunk-YVBGB3JF.js";import"./chunk-WUV22SZ4.js";import"./chunk-JSYUX55K.js";import{p as V,s as R}from"./chunk-LGOSIAUC.js";import{Bb as x,Db as M,Eb as w,Fb as d,Fc as C,Gb as i,Gc as F,Hb as n,Hc as T,Lc as E,Pb as v,Sb as N,Ub as S,Xa as l,eb as c,hc as o,ib as D,ic as u,mb as y,mc as _,nc as b,ob as I,oc as h,qd as P,sd as L,ta as p,ua as s,vd as O}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function U(r,g){if(r&1){let e=v();i(0,"div")(1,"div",9)(2,"h6"),o(3,"Outlet"),n(),i(4,"outlet-selector",10),h("ngModelChange",function(t){p(e);let m=S();return b(m.pageData.Filter.ListIDs,t)||(m.pageData.Filter.ListIDs=t),s(t)}),n()()()}if(r&2){let e=S();l(4),d("accessType",2),_("ngModel",e.pageData.Filter.ListIDs),d("multiple",!0)}}function X(r,g){if(r&1&&(i(0,"tr")(1,"td"),o(2),n(),i(3,"td"),o(4),C(5,"number"),n(),i(6,"td"),o(7),C(8,"date"),n()()),r&2){let e=g.$implicit;l(2),u(e==null?null:e.EntityName),l(2),u(F(5,3,e==null?null:e.Number)),l(3),u(T(8,5,e==null?null:e.Modified,"dd MMM yyyy HH:mm"))}}var K=class r extends G{constructor(e,a,t){super(e,a,"Setup/Data/TransactionInvoiceNumber",null,t);this.httpService=a}preGetList(){let e=this.pageData.Filter?.ListIDs?this.pageData.Filter?.ListIDs:[];this.pageData.Filter={ListIDs:e}}static \u0275fac=function(a){return new(a||r)(c(A),c(R),c(V))};static \u0275cmp=D({type:r,selectors:[["app-invoice-numbering"]],features:[y],decls:19,vars:4,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","isFilterOnDropdown","hideSearchBox","filter"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],["matTooltip","Next invoice number index to be generated",2,"width","200px"],[2,"width","200px"],[1,"dialog-filter"],["placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","multiple"]],template:function(a,t){if(a&1){let m=v();i(0,"mainpanel-cmp",1),N("onSubmit",function(){return p(m),s(t.searchFromPageOne())}),h("filterChange",function(f){return p(m),b(t.pageData.Filter,f)||(t.pageData.Filter=f),s(f)}),i(1,"filters"),I(2,U,5,3,"ng-template",null,0,E),n(),i(4,"content")(5,"div",2)(6,"div",3)(7,"table",4)(8,"thead",5)(9,"tr",6)(10,"th"),o(11,"Outlet"),n(),i(12,"th",7),o(13," Next Number "),n(),i(14,"th",8),o(15,"Modified"),n()()(),i(16,"tbody"),M(17,X,9,8,"tr",null,x),n()()()()()()}a&2&&(d("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),_("filter",t.pageData.Filter),l(17),w(t.data==null?null:t.data.Data))},dependencies:[O,z,q,J,W,B,H,k,j,L,P],encapsulation:2})};export{K as InvoiceNumberingComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Z}from"./chunk-
|
|
1
|
+
import{c as Z}from"./chunk-TX4QVA3F.js";import"./chunk-ZCQ45ILW.js";import"./chunk-36GWLMZX.js";import"./chunk-YVBGB3JF.js";import{a as D}from"./chunk-WUV22SZ4.js";import"./chunk-JSYUX55K.js";import{s as j}from"./chunk-LGOSIAUC.js";import{$ as _,Ab as u,Fc as k,Gc as A,Jb as o,Kb as e,Lb as f,N as b,Pb as w,Pd as G,Qb as M,Tb as S,Ub as x,Xa as l,Y as p,Za as O,aa as m,c as s,eb as c,fa as C,fc as L,hc as a,ib as P,ic as h,n as v,od as I,ta as E,ua as y,vd as R,yb as g}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function N(r,n){r&1&&(o(0,"div",13)(1,"span",20),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",21),a(4,"Click here to learn how to manually activate the location permission"),e()())}function T(r,n){if(r&1){let t=w();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),a(4,"Geo Fencing"),e(),o(5,"p",4),a(6,"You are about to sign-in from this location"),e(),o(7,"div",5)(8,"div",6)(9,"div",7)(10,"span",8),a(11,"LAT"),e(),o(12,"span",9),a(13),e()(),o(14,"div",7)(15,"span",10),a(16,"LONG"),e(),o(17,"span",11),a(18),e()()(),o(19,"button",12),S("click",function(){E(t);let d=x();return y(d.proceed())}),a(20,"Proceed"),e()(),g(21,N,5,0,"div",13),e(),o(22,"div",14),f(23,"img",15),e()(),o(24,"div",16)(25,"div",17)(26,"div")(27,"span"),a(28,"powered by :"),e(),f(29,"a",18)(30,"img",19),e()()()()}if(r&2){let t=n,i=x();l(2),L(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),h(t.latitude),l(5),h(t.longitude),l(),M("disabled",!(t.latitude&&t.longitude)),l(2),u(t.latitude&&t.longitude?-1:21)}}var z=class r{constructor(n,t,i,d){this.ngZone=n;this.auth=t;this.http=i;this.router=d}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(m(t=>new s(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),p(1));this.latLong$=n.pipe(m(()=>new s(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),p(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(m(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),C(n=>this.auth.saveLoginConfigToStorage(n)),m(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(c(O),c(Z),c(j),c(G))};static \u0275cmp=P({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],[1,"text-start","mt-7"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://cdn.dealpos.xyz/web-image/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){if(t&1&&(g(0,T,31,6,"div",0),k(1,"async")),t&2){let d;u((d=A(1,1,i.latLong$))?0:-1,d)}},dependencies:[R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{z as AuthGeolocationComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O}from"./chunk-
|
|
1
|
+
import{a as O}from"./chunk-443UJP4E.js";import{e as Q,f as z}from"./chunk-U544TRDM.js";import"./chunk-COHKLV67.js";import{b as H}from"./chunk-BYRR2B2X.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-TX4QVA3F.js";import"./chunk-ZCQ45ILW.js";import"./chunk-36GWLMZX.js";import"./chunk-YVBGB3JF.js";import"./chunk-WUV22SZ4.js";import"./chunk-JSYUX55K.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};
|