dealpos 25.49.3 → 25.49.5
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-RBODUQFT.js → chunk-234VD4PN.js} +1 -1
- package/browser/{chunk-F7ZEEN7E.js → chunk-2M6MJMM7.js} +1 -1
- package/browser/{chunk-QWQURKKH.js → chunk-3SIDOYEU.js} +1 -1
- package/browser/{chunk-S73WE6MZ.js → chunk-3ZZJHIUG.js} +1 -1
- package/browser/{chunk-WAVD3GYY.js → chunk-55DB5BOP.js} +1 -1
- package/browser/{chunk-FWATBVBG.js → chunk-5QMBTXFS.js} +1 -1
- package/browser/{chunk-MSD6ZNZJ.js → chunk-5YHDDJI4.js} +1 -1
- package/browser/{chunk-JRWOPFEW.js → chunk-63B7VXCP.js} +1 -1
- package/browser/{chunk-2M3VVSGC.js → chunk-6ESMI6WH.js} +1 -1
- package/browser/{chunk-RJZLCRKU.js → chunk-6G74X2UP.js} +1 -1
- package/browser/chunk-6UC76HYF.js +4 -0
- package/browser/{chunk-K2Y7IODA.js → chunk-72YVHXTD.js} +1 -1
- package/browser/{chunk-PFCAE5TL.js → chunk-7MMDSCS7.js} +1 -1
- package/browser/{chunk-JYBOJDPO.js → chunk-7PVAZYM4.js} +1 -1
- package/browser/{chunk-LMSKVJOL.js → chunk-7SAEXKAX.js} +1 -1
- package/browser/{chunk-ZYXRWVB4.js → chunk-A4Y2ZLGW.js} +1 -1
- package/browser/{chunk-5YEAN4WU.js → chunk-AGJ3GOR7.js} +1 -1
- package/browser/{chunk-7IHPSNZY.js → chunk-BCGIIVLI.js} +1 -1
- package/browser/{chunk-V5LXL6ED.js → chunk-BEIHC6NO.js} +1 -1
- package/browser/{chunk-UAUE3L3L.js → chunk-BGT22RIZ.js} +1 -1
- package/browser/{chunk-U564QQHO.js → chunk-CEVAKZDN.js} +2 -2
- package/browser/{chunk-RJ456QEQ.js → chunk-CIJROL7R.js} +1 -1
- package/browser/{chunk-DQUCX3MH.js → chunk-CLWGVNBY.js} +2 -2
- package/browser/{chunk-ADJWIV2X.js → chunk-CNHLZU3Z.js} +2 -2
- package/browser/chunk-D3KDSFJU.js +1 -0
- package/browser/{chunk-DTBM2FVZ.js → chunk-D3QY3EBZ.js} +1 -1
- package/browser/{chunk-UWWD4B2R.js → chunk-DG6Y623Z.js} +1 -1
- package/browser/{chunk-BG2SRLVD.js → chunk-DHKZDGY6.js} +1 -1
- package/browser/{chunk-OOTL4WHK.js → chunk-DYI547BZ.js} +1 -1
- package/browser/{chunk-KVGIFF2D.js → chunk-EV422BEJ.js} +1 -1
- package/browser/{chunk-A2F4CPF2.js → chunk-FBHH3WPM.js} +1 -1
- package/browser/{chunk-VNBUPHIS.js → chunk-FBN34CVL.js} +1 -1
- package/browser/{chunk-KBE7ACT6.js → chunk-FHL5KFJX.js} +1 -1
- package/browser/{chunk-LDQZMMWQ.js → chunk-FQNL3TLZ.js} +1 -1
- package/browser/{chunk-IQAICFFM.js → chunk-FXPNLU4X.js} +1 -1
- package/browser/{chunk-NM7C3KTD.js → chunk-G5NXVDID.js} +1 -1
- package/browser/{chunk-CBQXDARX.js → chunk-G6PEAZWA.js} +1 -1
- package/browser/{chunk-2MU2JN6B.js → chunk-GIPUEMTC.js} +1 -1
- package/browser/{chunk-IMWEIBLY.js → chunk-GLOUVXOJ.js} +1 -1
- package/browser/{chunk-6UDFJ3KL.js → chunk-H6UWRJHQ.js} +1 -1
- package/browser/{chunk-I3NHLTUC.js → chunk-IDZHSRCH.js} +2 -2
- package/browser/{chunk-2ELK4VEE.js → chunk-IK4DEQSO.js} +1 -1
- package/browser/{chunk-RSMPFZYJ.js → chunk-IRQYLVRP.js} +1 -1
- package/browser/{chunk-V5FFXPW6.js → chunk-LC7GFFEX.js} +1 -1
- package/browser/{chunk-DLJQAGDR.js → chunk-LJJMNCST.js} +1 -1
- package/browser/{chunk-XRZ45CVY.js → chunk-LSC2CYCL.js} +1 -1
- package/browser/{chunk-26CNGJ3T.js → chunk-MFNPIWGR.js} +2 -2
- package/browser/{chunk-HCJAEDV7.js → chunk-MOXEW4DH.js} +1 -1
- package/browser/{chunk-6CU2J77W.js → chunk-MVJSAD2O.js} +1 -1
- package/browser/{chunk-A2GJQTMM.js → chunk-N5IOOG55.js} +1 -1
- package/browser/{chunk-YIEP4TNX.js → chunk-NENPGICH.js} +1 -1
- package/browser/{chunk-W5CO3TTZ.js → chunk-NKQHQCUV.js} +1 -1
- package/browser/{chunk-OYAHMLKS.js → chunk-NPQFE4EO.js} +1 -1
- package/browser/{chunk-YECQSID5.js → chunk-OOKDKXRB.js} +1 -1
- package/browser/{chunk-SMPSWQDW.js → chunk-OUOI5WK2.js} +1 -1
- package/browser/{chunk-7MJ36ZVI.js → chunk-OZLXHOG4.js} +1 -1
- package/browser/{chunk-2MUHOEAS.js → chunk-P6DRDJVZ.js} +1 -1
- package/browser/{chunk-IX3NKVEA.js → chunk-P75DFAMB.js} +1 -1
- package/browser/{chunk-BWN3N6E3.js → chunk-PFF34SZG.js} +1 -1
- package/browser/{chunk-D54YUJEN.js → chunk-PXFCSUBN.js} +1 -1
- package/browser/{chunk-GC3NPYZ4.js → chunk-Q3FMCFAP.js} +1 -1
- package/browser/{chunk-326NKS6E.js → chunk-QHP7VC2R.js} +1 -1
- package/browser/{chunk-ENZHEBZ3.js → chunk-QLMHWHUW.js} +1 -1
- package/browser/{chunk-VPTJ74LS.js → chunk-R546P6WC.js} +1 -1
- package/browser/{chunk-5DKILDWP.js → chunk-RJNG3PZF.js} +1 -1
- package/browser/{chunk-G5YP7DBH.js → chunk-RXPEUS2G.js} +1 -1
- package/browser/{chunk-FG57XHDS.js → chunk-SMDHPNT7.js} +1 -1
- package/browser/{chunk-LN3Z2YMJ.js → chunk-SRAJGU6Y.js} +1 -1
- package/browser/{chunk-7GCPXPXG.js → chunk-T6SZ4L7O.js} +1 -1
- package/browser/{chunk-QICBNHRX.js → chunk-TXPKRCHR.js} +1 -1
- package/browser/{chunk-B2TQCJSQ.js → chunk-U57PBUPN.js} +1 -1
- package/browser/{chunk-EULEC2EQ.js → chunk-UNZLSKV5.js} +1 -1
- package/browser/{chunk-AF5ZP7YV.js → chunk-V3FPQMVB.js} +1 -1
- package/browser/{chunk-VU6OKTDN.js → chunk-VFQES62Q.js} +1 -1
- package/browser/{chunk-ZMQBUTHW.js → chunk-WVMPGK5K.js} +1 -1
- package/browser/{chunk-LWV7P2HF.js → chunk-WW4UBOYF.js} +1 -1
- package/browser/{chunk-JBGXOAKJ.js → chunk-WXEEGAH5.js} +1 -1
- package/browser/{chunk-JDCZ7YOI.js → chunk-Y67EVUWI.js} +2 -2
- package/browser/{chunk-2IQSX3TK.js → chunk-Y7D34HYN.js} +1 -1
- package/browser/{chunk-UFGFIP7Q.js → chunk-Y7KMZ7BT.js} +1 -1
- package/browser/{chunk-DQT5UJRI.js → chunk-YVO66RJF.js} +1 -1
- package/browser/{chunk-XTPFVMJ5.js → chunk-YZCJFJZL.js} +2 -2
- package/browser/{chunk-FFUI35CT.js → chunk-Z3UTJURO.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-W4X7ASBA.js → main-FS6A5G45.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-45HQ3R3G.js +0 -4
- package/browser/chunk-MO5TC272.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as L}from"./chunk-R2GUMKAU.js";import{c as ve,j as Se,k as C,l as _e}from"./chunk-FU2ZGMX4.js";import{X as xe,Y as ge,oa as Ce,pa as F,xa as ye}from"./chunk-SLX34TWD.js";import{a as me,g as ke}from"./chunk-DWZ5JTI2.js";import{a as be,c as fe}from"./chunk-
|
|
1
|
+
import{a as L}from"./chunk-R2GUMKAU.js";import{c as ve,j as Se,k as C,l as _e}from"./chunk-FU2ZGMX4.js";import{X as xe,Y as ge,oa as Ce,pa as F,xa as ye}from"./chunk-SLX34TWD.js";import{a as me,g as ke}from"./chunk-DWZ5JTI2.js";import{a as be,c as fe}from"./chunk-Y7D34HYN.js";import{a as H}from"./chunk-WUV22SZ4.js";import{$c as g,Ab as J,Ca as Y,Fb as c,Gb as m,Hb as k,Ia as h,Ib as M,Lb as E,Mb as A,Nb as O,Oc as ae,Pb as W,Pd as ue,Qd as pe,Sb as ee,Sd as he,Tc as j,Ub as u,Xa as a,Xb as R,Ya as _,Yb as te,Zb as B,_b as w,ad as se,eb as I,fc as ne,gc as l,gd as D,hc as T,ib as d,jb as K,jc as ie,jd as le,ka as P,la as $,ma as q,mb as b,na as G,nb as X,nd as de,ob as x,pa as y,ta as v,ua as S,va as p,vd as N,wb as z,wc as oe,xc as ce,ya as U,yb as Z,yc as V,zc as re}from"./chunk-IEVGW2RT.js";var Ne=e=>({"pe-none":e}),Fe=()=>["/menu/Profile/Main/My_Subscription"],Le=e=>({"text-decoration-none":e}),ze=e=>({"text-capitalize":e});function Ae(e,o){if(e&1&&(m(0,"div",1)(1,"h5",2),T(2),m(3,"a",3)(4,"u",4)(5,"span",4),T(6,"please"),k(),T(7," process your payment! "),k()()()()),e&2){let t=u();l("alert rounded-0 mb-0 text-center border-bottom "+(t.subscriptionState==null?null:t.subscriptionState.class)),a(2),ie(" ",t.subscriptionState==null?null:t.subscriptionState.message," "),a(),c("ngClass",V(7,Ne,t.isMySubscriptionMenu))("routerLink",ce(9,Fe)),a(),c("ngClass",V(10,Le,t.isMySubscriptionMenu)),a(),c("ngClass",V(12,ze,t.isNotEmpty(t.currentSubStatus)&&t.currentSubStatus!=t.subsStatusEnum.OVERDUE))}}var Ie=class e{constructor(o,t,i){this.document=o;this.router=t;this.authService=i}subscriptionStatus;subscriptionState;currentSubStatus;subsStatusEnum=be;isMySubscriptionMenu;htmlStyleElement;htmlBodyElement;ngOnInit(){this.checkMySubscriptionMenu(),this.initSubscriptionStatus(),this.getCurrentSubscriptionStatus()}getCurrentSubscriptionStatus(){this.overrideCssStickyHeader()}checkMySubscriptionMenu(){this.isMySubscriptionMenu=!1,this.router.url.includes("/Profile/Main/My_Subscription")&&(this.isMySubscriptionMenu=!0)}isNotEmpty(o){return H.IsNotEmpty(o)}overrideCssStickyHeader(){if(H.IsNotEmpty(this.currentSubStatus)&&this.currentSubStatus!==0){let o=`.sticky-top-thead th {
|
|
2
2
|
top: 100px !important;
|
|
3
3
|
z-index: 1020;
|
|
4
4
|
}`;this.htmlBodyElement=this.document.getElementsByTagName("body")[0],this.htmlStyleElement=this.document.createElement("style"),this.htmlStyleElement.appendChild(this.document.createTextNode(o)),this.htmlBodyElement.appendChild(this.htmlStyleElement)}}initSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus(),this.subscriptionStatus=[{status:1,class:"alert-warning",message:"Your subscription is overdue. To avoid suspension, "},{status:2,class:"alert-danger",message:"Your subscription is partially suspended."},{status:3,class:"alert-danger",message:"Your subscription is suspended."}],this.subscriptionState=this.subscriptionStatus.filter(o=>o.status==this.currentSubStatus)[0]}ngOnDestroy(){this.htmlBodyElement&&this.htmlBodyElement.removeChild(this.htmlStyleElement)}static \u0275fac=function(t){return new(t||e)(I(U),I(ue),I(fe))};static \u0275cmp=d({type:e,selectors:[["subscription-alert"]],decls:1,vars:1,consts:[["role","alert",3,"class"],["role","alert"],[1,"fw-normal"],[1,"alert-link",3,"ngClass","routerLink"],[3,"ngClass"]],template:function(t,i){t&1&&Z(0,Ae,8,14,"div",0),t&2&&J((i.subscriptionState==null?null:i.subscriptionState.status)==i.currentSubStatus&&i.isNotEmpty(i.currentSubStatus)?0:-1)},dependencies:[N,D,he,pe],encapsulation:2})};var Oe=["data-p-icon","check"],Me=(()=>{class e extends L{static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275cmp=d({type:e,selectors:[["","data-p-icon","check"]],features:[b],attrs:Oe,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,n){i&1&&(p(),E(0,"path",0))},encapsulation:2})}return e})();var Re=["data-p-icon","minus"],Ee=(()=>{class e extends L{static \u0275fac=(()=>{let t;return function(n){return(t||(t=h(e)))(n||e)}})();static \u0275cmp=d({type:e,selectors:[["","data-p-icon","minus"]],features:[b],attrs:Re,decls:1,vars:0,consts:[["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(i,n){i&1&&(p(),E(0,"path",0))},encapsulation:2})}return e})();var Be=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Z}from"./chunk-
|
|
1
|
+
import{c as Z}from"./chunk-Y7D34HYN.js";import"./chunk-P6DRDJVZ.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import{a as D}from"./chunk-WUV22SZ4.js";import"./chunk-6UC76HYF.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,4 +1,4 @@
|
|
|
1
|
-
import{a as wt,b as Et}from"./chunk-L6PKNRWO.js";import{b as vt}from"./chunk-SIQZO2WM.js";import{a as Tt,b as Ct,c as xt,d as St,e as Nt}from"./chunk-7YUPYNWQ.js";import{a as yt}from"./chunk-LGINK7BD.js";import{a as Ie,b as He}from"./chunk-QPAUI5EG.js";import{a as bt}from"./chunk-45E6XCHN.js";import{a as It}from"./chunk-SIDUUVNA.js";import{c as _t}from"./chunk-
|
|
1
|
+
import{a as wt,b as Et}from"./chunk-L6PKNRWO.js";import{b as vt}from"./chunk-SIQZO2WM.js";import{a as Tt,b as Ct,c as xt,d as St,e as Nt}from"./chunk-7YUPYNWQ.js";import{a as yt}from"./chunk-LGINK7BD.js";import{a as Ie,b as He}from"./chunk-QPAUI5EG.js";import{a as bt}from"./chunk-45E6XCHN.js";import{a as It}from"./chunk-SIDUUVNA.js";import{c as _t}from"./chunk-PFF34SZG.js";import{b as mt,c as ht}from"./chunk-JBS5UYZC.js";import{a as Ze}from"./chunk-B7AC4RMR.js";import{a as Se,b as dt,c as gt,d as ft}from"./chunk-S7FOJJP2.js";import{b as at,c as pe,d as Pe,j as pt,k as O,l as ut}from"./chunk-FU2ZGMX4.js";import{A as it,F as ot,H as rt,V as Le,W as lt,a as R,ga as Ae,m as tt,oa as ee,pa as P,qa as st,ra as ct,v as Be,w as nt,x as Z,xa as xe,z as de}from"./chunk-SLX34TWD.js";import{F as ce,a as et,h as be,o as ve}from"./chunk-DWZ5JTI2.js";import{a as Te}from"./chunk-WUV22SZ4.js";import{s as Ce}from"./chunk-LGOSIAUC.js";import{$c as T,Ab as U,Ac as Ke,Ca as fe,Fb as a,Fc as We,Gb as m,Gc as Ge,Hb as y,Ia as G,Ib as I,Lc as k,Mb as N,Nb as w,Ob as S,Oc as H,Pb as V,Sb as C,Sc as Ye,Tc as le,Ub as s,Xa as c,Xb as v,Y as Me,Ya as b,Yb as M,Zb as h,_b as _,ad as q,ca as Ve,cc as Y,d as ze,dc as Fe,eb as ie,fa as Qe,fc as J,ga as Oe,gc as f,gd as Je,hc as L,ib as z,ic as _e,id as ae,jb as me,jc as X,jd as se,ka as ue,la as W,ma as ge,mb as oe,mc as $e,md as ye,na as ne,nb as he,nc as qe,nd as j,o as De,oa as Ue,ob as d,oc as je,od as Xe,pa as D,ta as u,ua as g,va as B,vd as K,wb as E,wc as re,yb as Q,yc as A,zc as $}from"./chunk-IEVGW2RT.js";import{a as te}from"./chunk-SNAKHGZS.js";var kt=`
|
|
2
2
|
.p-tree {
|
|
3
3
|
display: block;
|
|
4
4
|
background: dt('tree.background');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O}from"./chunk-
|
|
1
|
+
import{a as O}from"./chunk-Y7KMZ7BT.js";import{e as Q,f as z}from"./chunk-YVO66RJF.js";import"./chunk-PFF34SZG.js";import{b as H}from"./chunk-V3FPQMVB.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-Y7D34HYN.js";import"./chunk-P6DRDJVZ.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-6UC76HYF.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as c}from"./chunk-
|
|
1
|
+
import{b as c}from"./chunk-Y7D34HYN.js";import{la as r,pa as s}from"./chunk-IEVGW2RT.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,d as N}from"./chunk-
|
|
1
|
+
import{c as H,d as N}from"./chunk-Q3FMCFAP.js";import{a as P,b as R}from"./chunk-L6PKNRWO.js";import{oa as F}from"./chunk-SLX34TWD.js";import{F as k,h as A,o as E}from"./chunk-DWZ5JTI2.js";import{a as m}from"./chunk-WUV22SZ4.js";import{s}from"./chunk-LGOSIAUC.js";import{Ab as T,Fb as _,Fc as M,Gb as u,Gc as x,Hb as i,Sb as w,Ub as D,Xa as p,Y as f,Ya as C,ca as O,d as h,eb as a,fa as S,hc as d,ib as y,jc as L,la as g,o as G,ob as v,od as $,pa as b,vd as j,yb as I}from"./chunk-IEVGW2RT.js";var c=class l{http=b(s);onOpenTreeSelector$=new h;outletGroups$=this.onOpenTreeSelector$.pipe(O(e=>e.length?G(e):this.http.get("/API/outlet/ActiveOptions"),[]),f(1));constructor(){}loadOutletGroups(){this.onOpenTreeSelector$.next()}static \u0275fac=function(t){return new(t||l)};static \u0275prov=g({token:l,factory:l.\u0275fac,providedIn:"root"})};function z(l,e){if(l&1&&(u(0,"div"),d(1),i()),l&2){let t=D();p(),L(" ",t.selectedOutletGroupLabel," ")}}function J(l,e){l&1&&(u(0,"label",3),d(1,"Outlet Group"),i())}var B=class l{constructor(e,t){this.http=e;this.outletGroup=t}outletGroups=[];showClear=!1;showLabel=!1;selectedOutletGroup;selectedOutletGroupID;selectedOutletGroupIDChange=new C;selectedOutletGroupLabel;isLoadOutletGroups=!1;top=0;outletGroups$;ngAfterViewInit(){let e=document.querySelector("body");this.top=e.getBoundingClientRect().top*-1}ngOnInit(){this.outletGroups.length>0&&(m.IsEmpty(this.selectedOutletGroupID)&&(this.selectedOutletGroupID=this.outletGroups[0]?.key),this.selectedOutletGroup=this.findSelectedOutletGroup(this.outletGroups,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)),this.outletGroups$=this.outletGroup.outletGroups$.pipe(S(e=>{console.log(e),this.selectedOutletGroup=this.findSelectedOutletGroup(e,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)}))}onSelectOutletGroup(e){this.selectedOutletGroup=e,this.generateLabelSelectedOutletGroup(this.selectedOutletGroup),this.selectedOutletGroupID=e?.key,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}generateLabelSelectedOutletGroup(e){if(e){let t=[];this.selectedOutletGroupLabel="";do t=[...t,e.label],e=e.parent;while(e!==void 0);this.selectedOutletGroupLabel=t.reverse().join("/")}else this.selectedOutletGroupLabel="Select OutletGroup"}findSelectedOutletGroup(e,t){if(m.IsNotEmpty(t))for(let o of e){if(o.key===t)return o;{o.children=o.children?o.children:[],o.children=o.children.map(n=>(n.parent=o,n));let r=this.findSelectedOutletGroup(o.children,t);if(r)return r}}else return null}loadOutletGroups(){try{setTimeout(()=>{let e=document.querySelector(".p-overlay.p-component");if(e){let t=this.top+e.getBoundingClientRect().top,o=e.getAttribute("style")||"";e.setAttribute("style",`${o} top: ${t+this.top}px;`)}},0)}catch(e){console.error("Error:",e)}finally{this.outletGroup.loadOutletGroups()}}onClear(){this.selectedOutletGroupID=null,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}static \u0275fac=function(t){return new(t||l)(a(s),a(c))};static \u0275cmp=y({type:l,selectors:[["POS-outlet-group-tree-select"]],inputs:{outletGroups:"outletGroups",showClear:"showClear",showLabel:"showLabel",selectedOutletGroupID:"selectedOutletGroupID"},outputs:{selectedOutletGroupIDChange:"selectedOutletGroupIDChange"},decls:5,vars:6,consts:[["variant","on",1,"w-full","md:w-80"],["appendTo","body","inputId","selectOutletGroup","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectOutletGroup",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["for","selectOutletGroup"]],template:function(t,o){t&1&&(u(0,"p-floatlabel",0)(1,"p-treeSelect",1),M(2,"async"),w("click",function(){return o.loadOutletGroups()})("ngModelChange",function(n){return o.onSelectOutletGroup(n)})("onClear",function(){return o.onClear()}),v(3,z,2,1,"ng-template",2),i(),I(4,J,2,0,"label",3),i()),t&2&&(p(),_("options",x(2,4,o.outletGroups$))("ngModel",o.selectedOutletGroup)("showClear",o.showClear),p(3),T(o.showLabel?4:-1))},dependencies:[j,N,H,F,k,A,E,R,P,$],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important}"]})};export{B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Q,b as U}from"./chunk-COA4UL2V.js";import{d as te,e as ie}from"./chunk-WMZLH4YK.js";import{a as X}from"./chunk-
|
|
1
|
+
import{a as Q,b as U}from"./chunk-COA4UL2V.js";import{d as te,e as ie}from"./chunk-WMZLH4YK.js";import{a as X}from"./chunk-OOKDKXRB.js";import{e as $,f as ee}from"./chunk-YVO66RJF.js";import{b as Z}from"./chunk-V3FPQMVB.js";import{d as Y}from"./chunk-THT6CY5E.js";import{F as A,c as H,h as z,o as q}from"./chunk-DWZ5JTI2.js";import{b as K}from"./chunk-WFQIMZGL.js";import{p as O,s as G}from"./chunk-LGOSIAUC.js";import{Ab as x,Cb as L,Db as W,Eb as M,Fb as s,Fc as y,Gb as i,Hb as o,Hc as v,Lc as P,Pb as h,Qd as R,Sb as D,Sd as j,Ub as m,Xa as l,eb as _,gd as J,hc as p,ib as w,jc as S,mb as F,mc as u,nc as C,ob as k,oc as b,qd as V,sd as B,ta as c,ua as g,vd as N,xc as T,yb as f,yc as E,zc as I}from"./chunk-IEVGW2RT.js";var ne=()=>["/menu/Developer/Webhook/Job_Logs/Detail"],ae=n=>({ID:n}),re=(n,d)=>({"text-success":n,"text-danger":d});function le(n,d){if(n&1){let e=h();i(0,"div",12)(1,"h6"),p(2,"Status"),o(),i(3,"ng-select",13),b("ngModelChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.Status,t)||(r.pageData.Filter.Status=t),g(t)}),o(),i(4,"h6"),p(5,"Job ID"),o(),i(6,"input",14),b("ngModelChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.JobID,t)||(r.pageData.Filter.JobID=t),g(t)}),o(),i(7,"h6"),p(8,"From"),o(),i(9,"datepicker",15),b("dateChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.From,t)||(r.pageData.Filter.From=t),g(t)}),o(),i(10,"h6"),p(11,"To"),o(),i(12,"datepicker",16),b("dateChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.To,t)||(r.pageData.Filter.To=t),g(t)}),o()()}if(n&2){let e=m(2);l(3),s("disabled",!e.role.developer.Edit)("items",e.pageData.Options.Status),u("ngModel",e.pageData.Filter.Status),l(3),u("ngModel",e.pageData.Filter.JobID),l(3),s("isFloatingLabel",!1),u("date",e.pageData.Filter.From),l(3),s("isFloatingLabel",!1),u("date",e.pageData.Filter.To)}}function pe(n,d){if(n&1&&(i(0,"tr",9)(1,"td")(2,"a",17),p(3),y(4,"date"),o()(),i(5,"td"),p(6),y(7,"number"),o(),i(8,"td",18),p(9),o()()),n&2){let e=d.$implicit;l(2),s("routerLink",T(12,ne))("queryParams",E(13,ae,e._id)),l(),S(" ",v(4,6,e._source["@timestamp_received"],"dd MMM yyyy HH:mm")," "),l(3),S("",v(7,9,e.DurationInSecond,"1.1-1")," s"),l(2),s("ngClass",I(15,re,e._source.log.respCode==200,e._source.log.respCode!=200)),l(),S(" ",e._source.log.respCode," ")}}function me(n,d){if(n&1){let e=h();i(0,"mat-paginator",19),D("page",function(t){c(e);let r=m(2);return g(r.onPaginationChange(t))}),o()}if(n&2){let e=m(2);s("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function se(n,d){if(n&1){let e=h();i(0,"mainpanel-cmp",2),D("onSubmit",function(){c(e);let t=m();return g(t.searchFromPageOne())}),i(1,"filters"),k(2,le,13,8,"ng-template",null,0,P),o(),i(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr",7)(10,"th",8),p(11,"Created"),o(),i(12,"th",8),p(13,"Duration"),o(),i(14,"th",8),p(15,"Status"),o()()(),i(16,"tbody"),W(17,pe,10,18,"tr",9,L),o()()(),i(19,"div",10),f(20,me,1,3,"mat-paginator",11),o()()()()}if(n&2){let e=m();s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),l(17),M(e.data.hits),l(3),x(e.pagination.listTotal>0?20:-1)}}var oe=class n extends X{constructor(e,a,t,r){super(e,a,"Developer/DeveloperSpace/Webhook/JobLogs","Developer/DeveloperSpace/WebhookLoader/GetLogs",t);this.httpService=a;this.role=r}postInit(e){this.data.hits=this.data?.hits.map(a=>(a.DurationInSecond=parseInt(a._source?.Duration)/1e3,a)),this.data.ListTotal=e?.total?.value}static \u0275fac=function(a){return new(a||n)(_(Z),_(G),_(O),_(K))};static \u0275cmp=w({type:n,selectors:[["app-webhook-job-logs"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown"],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","50px"],[1,"border-bottom"],[1,"mt-2"],[3,"length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose a status","appendTo","body",3,"ngModelChange","disabled","items","ngModel"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[3,"routerLink","queryParams"],[3,"ngClass"],[3,"page","length","pageSize","pageIndex"]],template:function(a,t){a&1&&f(0,se,21,4,"mainpanel-cmp",1),a&2&&x(t.data?0:-1)},dependencies:[N,J,ee,$,ie,te,U,Q,Y,A,H,z,q,j,R,B,V],encapsulation:2})};export{oe as a};
|