dealpos 26.34.50 → 26.34.52
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-RRTMGXQ6.js → chunk-2B7CZUYG.js} +1 -1
- package/browser/{chunk-BJU2SIDD.js → chunk-2BGEXYMX.js} +1 -1
- package/browser/{chunk-PBG3OYMR.js → chunk-2FW4YVXE.js} +2 -2
- package/browser/{chunk-OA377BLK.js → chunk-2JK4WD4W.js} +1 -1
- package/browser/{chunk-Q5WOFWLC.js → chunk-3DIA5WLM.js} +1 -1
- package/browser/{chunk-ARRXBP5U.js → chunk-3TGFG72I.js} +1 -1
- package/browser/{chunk-LI3F3CIW.js → chunk-4GWFDXF5.js} +1 -1
- package/browser/{chunk-QEFSVDT5.js → chunk-4HFI5DH2.js} +1 -1
- package/browser/{chunk-PUP6QKJ7.js → chunk-4ZNPMWY7.js} +1 -1
- package/browser/{chunk-E6LLDJ6V.js → chunk-5JHFYETO.js} +1 -1
- package/browser/{chunk-SKJBOEO2.js → chunk-5UDO26AR.js} +1 -1
- package/browser/{chunk-TTSU36AE.js → chunk-5WD6ECTM.js} +1 -1
- package/browser/{chunk-LHGZNLNL.js → chunk-6PSYAXG3.js} +1 -1
- package/browser/{chunk-5IPMF2C4.js → chunk-6TNSXSZX.js} +1 -1
- package/browser/{chunk-YCJS263H.js → chunk-76SVSDEV.js} +1 -1
- package/browser/chunk-7MJ3JHVL.js +1 -0
- package/browser/{chunk-E2QICZB2.js → chunk-A7GXUKTV.js} +1 -1
- package/browser/{chunk-P7WNCSM7.js → chunk-ALP3TNQI.js} +1 -1
- package/browser/{chunk-CXQXQNRG.js → chunk-AMQC2DR2.js} +2 -2
- package/browser/{chunk-HWWEML7Y.js → chunk-APQF363U.js} +1 -1
- package/browser/{chunk-5CNGMZOH.js → chunk-APYX3H2Z.js} +1 -1
- package/browser/{chunk-YZTNXMNL.js → chunk-ASETE4E3.js} +1 -1
- package/browser/{chunk-K2WO4457.js → chunk-ASONTZAG.js} +1 -1
- package/browser/{chunk-4FSHQLDB.js → chunk-AUDBQHWE.js} +1 -1
- package/browser/{chunk-NSWZDGCA.js → chunk-BBCZFKFS.js} +1 -1
- package/browser/{chunk-2OEVSEUD.js → chunk-BI2E3DDP.js} +1 -1
- package/browser/{chunk-XB5DYRF3.js → chunk-BSP5KSS3.js} +1 -1
- package/browser/{chunk-DBD5AC44.js → chunk-C4JW5KCK.js} +1 -1
- package/browser/{chunk-6N5FEZF5.js → chunk-CK3GLXIG.js} +1 -1
- package/browser/{chunk-XFBD4EZF.js → chunk-CNWPFQPV.js} +1 -1
- package/browser/{chunk-D2RYYRFL.js → chunk-CPXFCS66.js} +1 -1
- package/browser/{chunk-BKSYGR6U.js → chunk-CRY4SSPF.js} +2 -2
- package/browser/{chunk-H3CWU4PM.js → chunk-CZRXQXNR.js} +1 -1
- package/browser/{chunk-VZP5RDDT.js → chunk-DIZDHDOC.js} +1 -1
- package/browser/{chunk-TUJQTVKA.js → chunk-DNHCC4VK.js} +1 -1
- package/browser/{chunk-RFIMKXPO.js → chunk-DT2QNDHC.js} +1 -1
- package/browser/{chunk-AW2AGRKR.js → chunk-DWHZX5DP.js} +1 -1
- package/browser/{chunk-447VGGKO.js → chunk-DX7A6OD5.js} +1 -1
- package/browser/{chunk-TI3AGVT3.js → chunk-EI2YQ3HL.js} +2 -2
- package/browser/{chunk-HFWYGVFY.js → chunk-EKGGAX73.js} +1 -1
- package/browser/{chunk-XAVJJLWV.js → chunk-EP5DNLZB.js} +1 -1
- package/browser/{chunk-XDLYOB56.js → chunk-ES7LCPED.js} +2 -2
- package/browser/{chunk-MVZATUQD.js → chunk-FCGU4I5Q.js} +1 -1
- package/browser/{chunk-IRAFJJOG.js → chunk-FDPGUBZY.js} +1 -1
- package/browser/{chunk-LSM5ZY23.js → chunk-GIUTPAYS.js} +1 -1
- package/browser/{chunk-CZ4D3CGF.js → chunk-GY3GLVGP.js} +1 -1
- package/browser/{chunk-BG4LR34Y.js → chunk-HELCKG2A.js} +1 -1
- package/browser/{chunk-YW44BON3.js → chunk-HZEI2RQR.js} +1 -1
- package/browser/{chunk-7RFOTCBL.js → chunk-I7TDJ3RP.js} +7 -7
- package/browser/{chunk-5PW7WUUQ.js → chunk-IL7G2EYK.js} +1 -1
- package/browser/{chunk-QH67R6UZ.js → chunk-ILSB5YUE.js} +1 -1
- package/browser/{chunk-ZYVGSHM6.js → chunk-IQ7HRXXO.js} +1 -1
- package/browser/{chunk-C5LO2BFM.js → chunk-JLA3AONE.js} +1 -1
- package/browser/{chunk-EI2Q27OG.js → chunk-JLBB7X53.js} +1 -1
- package/browser/{chunk-K3VWGHFE.js → chunk-JLRYTVYI.js} +2 -2
- package/browser/{chunk-GFBF2YZ6.js → chunk-JMVYDVY3.js} +1 -1
- package/browser/{chunk-6DLCMZ6T.js → chunk-KOXVGUDP.js} +1 -1
- package/browser/{chunk-7K6C5CQW.js → chunk-LE6TUQRK.js} +1 -1
- package/browser/{chunk-VM4J7CVL.js → chunk-LJSH355B.js} +1 -1
- package/browser/{chunk-6CTNPC7M.js → chunk-LQVLQDLB.js} +1 -1
- package/browser/{chunk-AHK5RBJW.js → chunk-LUPLKDTO.js} +1 -1
- package/browser/{chunk-ITG36PKM.js → chunk-LYOHO7FY.js} +1 -1
- package/browser/{chunk-A76KHYX6.js → chunk-M3S4XKLX.js} +1 -1
- package/browser/{chunk-6N77I4OS.js → chunk-MI2R4KKX.js} +1 -1
- package/browser/{chunk-UKZAME2M.js → chunk-MJOPU3N4.js} +1 -1
- package/browser/{chunk-NQKL7EW6.js → chunk-MMRZPLUB.js} +1 -1
- package/browser/{chunk-7RKBQNTO.js → chunk-MMUMBNHJ.js} +1 -1
- package/browser/chunk-MP646XKC.js +1 -0
- package/browser/{chunk-PX6BB7IG.js → chunk-MQUCBIPV.js} +1 -1
- package/browser/{chunk-GSKZW67V.js → chunk-MVCRRCKW.js} +1 -1
- package/browser/{chunk-SRSSDWLH.js → chunk-MW4FEIOJ.js} +1 -1
- package/browser/{chunk-EGTCOFED.js → chunk-NBRAKKZT.js} +1 -1
- package/browser/{chunk-G4EWP7T4.js → chunk-NHJWHWRN.js} +1 -1
- package/browser/{chunk-IMWO7Z3Y.js → chunk-NIUOFXNT.js} +1 -1
- package/browser/{chunk-YPQEXWB4.js → chunk-NLL2OVTU.js} +1 -1
- package/browser/{chunk-DB237FRB.js → chunk-OIB3RGNS.js} +1 -1
- package/browser/{chunk-T6E2PBKF.js → chunk-OMKAIULG.js} +1 -1
- package/browser/{chunk-EW2MRZFT.js → chunk-OMPMXHSQ.js} +1 -1
- package/browser/{chunk-TFXHZ3MP.js → chunk-ONNPWVDK.js} +1 -1
- package/browser/{chunk-DHIS3QSM.js → chunk-OUBROCND.js} +1 -1
- package/browser/{chunk-7W3Y7VIJ.js → chunk-P32EOWXX.js} +1 -1
- package/browser/{chunk-ZLZYFK3L.js → chunk-PUXE2X4J.js} +1 -1
- package/browser/{chunk-GXDVZABG.js → chunk-PV5OOAR4.js} +1 -1
- package/browser/{chunk-XVQEGXF7.js → chunk-PXLYGT76.js} +1 -1
- package/browser/{chunk-46URYII4.js → chunk-PY6L6VLM.js} +2 -2
- package/browser/{chunk-LBSWNV55.js → chunk-PZ6OV4A5.js} +1 -1
- package/browser/{chunk-QC5IBQ6K.js → chunk-RB373VQE.js} +2 -2
- package/browser/{chunk-JHHOID44.js → chunk-RBDGV7AS.js} +1 -1
- package/browser/{chunk-MWAF6S4P.js → chunk-RENYMHV6.js} +2 -2
- package/browser/{chunk-XUH6LKCM.js → chunk-SEKSAULI.js} +1 -1
- package/browser/{chunk-UJULBYX5.js → chunk-T4OSCOY3.js} +1 -1
- package/browser/{chunk-SEGZCOMR.js → chunk-TTJULOMC.js} +1 -1
- package/browser/{chunk-2UVSCMKZ.js → chunk-TVYO57CU.js} +1 -1
- package/browser/{chunk-HPGDUC2I.js → chunk-U2VBCT3K.js} +1 -1
- package/browser/{chunk-3GBRXCMR.js → chunk-U3BDGSWH.js} +1 -1
- package/browser/{chunk-Y5KRA53X.js → chunk-U42RQTBZ.js} +1 -1
- package/browser/{chunk-ENE2K4SE.js → chunk-UGOUW6AR.js} +1 -1
- package/browser/{chunk-OVVLMMLF.js → chunk-UHHPYFXJ.js} +1 -1
- package/browser/{chunk-ZAWDCRD4.js → chunk-UOXMCZEX.js} +1 -1
- package/browser/{chunk-NQGDL3EO.js → chunk-USZI2WOC.js} +1 -1
- package/browser/{chunk-SG7J27F2.js → chunk-V7ZVPJLF.js} +1 -1
- package/browser/{chunk-SE7EFHGK.js → chunk-VDTN4LVK.js} +1 -1
- package/browser/chunk-VUWS5RED.js +1 -0
- package/browser/chunk-X4IVTXCH.js +1 -0
- package/browser/{chunk-DSVTARFL.js → chunk-XKHBZUBO.js} +1 -1
- package/browser/{chunk-V2VGYS72.js → chunk-XMZGUAOP.js} +1 -1
- package/browser/{chunk-QBMANGZA.js → chunk-XQMFDX6E.js} +1 -1
- package/browser/{chunk-QCQEYXET.js → chunk-XVPZ7ZC3.js} +1 -1
- package/browser/{chunk-WMISRWUK.js → chunk-Y4RIVIH6.js} +1 -1
- package/browser/{chunk-TD63ZHBZ.js → chunk-YJBPEWHI.js} +1 -1
- package/browser/{chunk-IDLN5VU7.js → chunk-YKVZSJG3.js} +1 -1
- package/browser/index.html +45 -45
- package/browser/main-HRPV5QML.js +289 -0
- package/browser/ngsw.json +510 -510
- package/package.json +1 -1
- package/browser/chunk-ALH2JPOZ.js +0 -1
- package/browser/chunk-LGIF2MHJ.js +0 -1
- package/browser/chunk-MYPR7WVE.js +0 -1
- package/browser/chunk-NQX7EX5A.js +0 -1
- package/browser/main-SJ2SEIPD.js +0 -289
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as de}from"./chunk-SCY42TYL.js";import{a as le}from"./chunk-HCYTXZ5W.js";import"./chunk-BYXBJQAS.js";import"./chunk-DBEO4KRX.js";import{g as ae,h as se}from"./chunk-
|
|
1
|
+
import{a as de}from"./chunk-SCY42TYL.js";import{a as le}from"./chunk-HCYTXZ5W.js";import"./chunk-BYXBJQAS.js";import"./chunk-DBEO4KRX.js";import{g as ae,h as se}from"./chunk-KOXVGUDP.js";import"./chunk-RBDGV7AS.js";import{a as re}from"./chunk-U3BDGSWH.js";import"./chunk-6TCXJK4F.js";import"./chunk-4EA2QRAL.js";import"./chunk-MVCRRCKW.js";import"./chunk-4YGM4JKY.js";import"./chunk-ILSFAXUS.js";import"./chunk-ZNPTJE3D.js";import"./chunk-B227YYCQ.js";import"./chunk-PPMQE2JW.js";import"./chunk-NZFPGRBB.js";import"./chunk-GY3GLVGP.js";import{a as oe,b as ie,c as ne}from"./chunk-LJSWE6HK.js";import"./chunk-X7PYX457.js";import"./chunk-NFZWRCG7.js";import"./chunk-XSBZBBVE.js";import"./chunk-BUTFQ43B.js";import"./chunk-X57U7UOP.js";import{a as D}from"./chunk-EVOMMNG4.js";import{b as ee,c as te}from"./chunk-2F7KZZBQ.js";import"./chunk-DJXVAHRZ.js";import"./chunk-TOSIAKSZ.js";import"./chunk-S7ZGXV2D.js";import"./chunk-VR7TSKSX.js";import{F as W,G as X,c as G,h as J,p as Q}from"./chunk-DUKZEV2X.js";import"./chunk-4HFI5DH2.js";import"./chunk-JLBB7X53.js";import"./chunk-GEAPD2GY.js";import{b as Z}from"./chunk-3APSQ3EL.js";import"./chunk-PPTZHIIZ.js";import"./chunk-CPXFCS66.js";import{n as q,q as z}from"./chunk-Q3OWCGSJ.js";import{Ab as P,Bb as g,Da as b,Db as C,Eb as v,F as T,Fb as _,Gb as i,Hb as a,Ib as H,Mb as A,Nb as N,Nc as $,Ob as K,Qc as L,Qd as Y,Rb as M,Ub as m,Wa as l,Wb as u,bb as f,ec as j,fb as k,jc as d,kb as F,kc as O,lb as E,mc as B,oc as S,pa as h,pc as x,qc as w,qd as U,ta as c,ua as p,yb as I,yd as R}from"./chunk-QXHPRUBR.js";import"./chunk-NF7PG5F2.js";function he(n,r){if(n&1){let e=M();i(0,"tr")(1,"td")(2,"div",11)(3,"i",15),m("click",function(){let t=c(e).$index,s=u();return p(s.onRemoveHeader(t))}),a()()(),i(4,"td")(5,"input",16),w("ngModelChange",function(t){let s=c(e).$implicit;return x(s.Key,t)||(s.Key=t),p(t)}),a()(),i(6,"td")(7,"input",17),w("ngModelChange",function(t){let s=c(e).$implicit;return x(s.Value,t)||(s.Value=t),p(t)}),a()()()}if(n&2){let e=r.$implicit;l(5),S("ngModel",e.Key),l(2),S("ngModel",e.Value)}}var y=class n{dialogRef=h(oe);toastr=h(q);config;headers=b([{Value:"",Key:""}]);host=b("");data=h(ie);lastHeader=L(()=>this.headers()[this.headers()?.length-1]);constructor(){this.initModalConfig(),this.data&&(this.host.set(this.data.Host),this.headers.set(this.data.Headers))}initModalConfig(){this.config=new ee,this.config.title="Host Request Header",this.config.customWidth="600px"}onRemoveHeader(r){let e=this.headers();e.splice(r,1),this.headers.set([...e])}onSave(){if(!this.validateForm())return;let r={Host:this.host(),Headers:this.headers()};this.dialogRef.close(r)}validateForm(){let r=!0;return this.host()||(this.toastr.error("Host is required","Invalid Host"),r=!1),this.headers().length===0&&r&&(this.toastr.error("At least one header is required","No Headers"),r=!1),this.headers().forEach((e,o)=>{(!e.Key||!e.Value)&&r&&(this.toastr.error(`Header ${o+1} is incomplete`,"Invalid Header"),r=!1)}),r}onClose(){this.dialogRef.close()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=k({type:n,selectors:[["app-modal-webhook-request-header"]],decls:25,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","pt-4"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mb-8"],["type","text","id","host","name","host","placeholder","Host",1,"form-control","bg-white",3,"ngModelChange","ngModel"],["for","host"],[1,"card-title"],[1,"table","table-bordered","custom-table"],[1,"thead-light","sticky-top-thead-webhook-request-header"],[2,"width","20px"],[1,"d-flex","justify-content-center"],["type","button",1,"btn","btn-outline-dark","btn-sm","bg-white","text-black",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-plus"],[2,"width","100px"],[1,"fa","fa-xmark","text-danger","cursor-pointer",3,"click"],["type","text","id","key","name","key","placeholder","Key",1,"form-control","bg-white",3,"ngModelChange","ngModel"],["type","text","id","value","name","value","placeholder","Value",1,"form-control","bg-white",3,"ngModelChange","ngModel"]],template:function(e,o){if(e&1&&(i(0,"modal-material",0),m("onOk",function(){return o.onSave()})("onCancel",function(){return o.onClose()})("onClose",function(){return o.onClose()}),i(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"input",5),w("ngModelChange",function(s){return x(o.host,s)||(o.host=s),s}),a(),i(7,"label",6),d(8,"Host"),a()(),i(9,"h5",7),d(10,"Headers"),a(),i(11,"table",8)(12,"thead",9)(13,"tr")(14,"th",10)(15,"div",11)(16,"button",12),m("click",function(){return o.headers.set([...o.headers(),{Key:"",Value:""}])}),H(17,"i",13),a()()(),i(18,"th",14),d(19,"Key"),a(),i(20,"th"),d(21,"Value"),a()()(),i(22,"tbody"),C(23,he,8,2,"tr",null,g),a()()()()()()()),e&2){let t;_("config",o.config),l(6),S("ngModel",o.host),l(10),_("disabled",(!((t=o.lastHeader())!=null&&t.Key)||!((t=o.lastHeader())!=null&&t.Value))&&o.headers().length>0),l(7),v(o.headers())}},dependencies:[R,X,G,J,te,W,Q],styles:[".sticky-top-thead-webhook-request-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:sticky!important;top:-16px!important;z-index:1020!important}"]})};function fe(n,r){if(n&1&&(i(0,"div"),d(1),a()),n&2){let e=r.$implicit;l(),B(" ",e.Key," : ",e.Value," ")}}function _e(n,r){if(n&1){let e=M();i(0,"tr",11),m("click",function(){let t=c(e),s=t.$implicit,V=t.$index,ce=u(2);return p(ce.onUpdateHost(s,V))}),i(1,"td")(2,"div",12)(3,"i",13),m("click",function(){let t=c(e).$index,s=u(2);return p(s.onRemoveHeader(t))}),a()()(),i(4,"td"),d(5),a(),i(6,"td"),C(7,fe,2,2,"div",null,g),a()()}if(n&2){let e=r.$implicit;l(5),O(e.Host),l(2),v(e.Headers)}}function be(n,r){if(n&1&&C(0,_e,9,1,"tr",10,g),n&2){let e=u();v(e.host())}}function ge(n,r){n&1&&K(0)}function Ce(n,r){if(n&1&&E(0,ge,1,0,"ng-container",14),n&2){u();let e=j(20);_("ngTemplateOutlet",e)}}function ve(n,r){n&1&&(i(0,"tr",15)(1,"td",16),H(2,"empty-state-table"),a()())}var me=class n extends de{constructor(e,o,t,s,V){super(e,o,D.WebhookRequestCustomHeaderLoader,t);this.activatedRoute=t;this.role=s;this.dialog=V}activatedRoute;role;dialog;host=b([]);toastr=h(q);postBindForm(e){let o=e.Form?.CustomHeaders;this.host.set(o)}addCustomHeader(){this.dialog.open(y).afterClosed().pipe(T(e=>!!e)).subscribe(e=>{if(e){let o=[...this.host(),e];this.saveHost(o)}})}onUpdateHost(e,o){this.dialog.open(y,{data:e}).afterClosed().pipe(T(t=>!!t)).subscribe(t=>{if(t){let s=[...this.host()];s[o]=t,this.saveHost(s)}})}onRemoveHeader(e){let o=this.host();o.splice(e,1);let t=[...o];this.saveHost(t)}saveHost(e){this.httpService.post(D.WebhookRequestCustomHeaderSave,e).subscribe({next:()=>{this.host.set(e),this.toastr.success("Host and headers saved successfully","Success")}})}static \u0275fac=function(o){return new(o||n)(f(re),f(z),f(Y),f(Z),f(ne))};static \u0275cmp=k({type:n,selectors:[["app-webhook-request-header"]],features:[F],decls:21,vars:4,consts:[["EMPTY_STATE",""],[3,"pageData","hideSearchDropdown","hideSearchBox"],["ngProjectAs","actions",5,["actions"]],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","mt-6"],[1,"row"],[1,"col-12"],[1,"table","table-stripped","custom-table"],[1,"thead-light","sticky-top-thead"],["width","30"],[1,"cursor-pointer"],[1,"cursor-pointer",3,"click"],[1,"d-flex","justify-content-center"],[1,"fa","fa-xmark","text-danger","cursor-pointer",3,"click"],[4,"ngTemplateOutlet"],[1,"table-border-bottom-0"],["colspan","3"]],template:function(o,t){o&1&&(i(0,"mainpanel-cmp",1),A(1,2),i(2,"button",3),m("click",function(){return t.addCustomHeader()}),d(3," Add "),a(),N(),i(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"table",7)(9,"thead",8)(10,"tr"),H(11,"th",9),i(12,"th"),d(13,"Host"),a(),i(14,"th"),d(15,"Headers"),a()()(),i(16,"tbody"),I(17,be,2,0)(18,Ce,1,1,"ng-container"),a()()()()(),E(19,ve,3,0,"ng-template",null,0,$),a()()),o&2&&(_("pageData",t.menuData())("hideSearchDropdown",!0)("hideSearchBox",!0),l(17),P(t.host().length>0?17:18))},dependencies:[R,U,se,ae,W,le],encapsulation:2,changeDetection:0})};export{me as WebhookRequestHeaderComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C}from"./chunk-
|
|
1
|
+
import{c as C}from"./chunk-4HFI5DH2.js";import"./chunk-JLBB7X53.js";import"./chunk-GEAPD2GY.js";import"./chunk-3APSQ3EL.js";import{a as y}from"./chunk-PPTZHIIZ.js";import"./chunk-CPXFCS66.js";import{q as E}from"./chunk-Q3OWCGSJ.js";import{Ab as u,Da as c,Jb as e,Kb as t,Lb as m,Sb as f,Sd as v,Vb as h,Wa as l,bb as d,fb as p,hc as x,jc as o,kc as s,yb as g,yd as b}from"./chunk-QXHPRUBR.js";import"./chunk-NF7PG5F2.js";function O(r,i){r&1&&(e(0,"div",13)(1,"span",20),o(2,"Latitude and Longitude is empty, please allow your browser location permission!"),t(),e(3,"a",21),o(4,"Click here to learn how to manually activate the location permission"),t()())}var _=class r{constructor(i,a,n){this.auth=i;this.http=a;this.router=n}auth;http;router;centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong=c({latitude:"",longitude:""});ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body"),this.getGeolocation()}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){y.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}getGeolocation(){if(!navigator.geolocation){this.latLong.set({latitude:"",longitude:""});return}navigator.geolocation.getCurrentPosition(i=>{this.latLong.set({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()})},()=>{this.latLong.set({latitude:"",longitude:""})},{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})}proceed(){let i=this.latLong();this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:i.latitude,Longitude:i.longitude}).subscribe(a=>{this.auth.saveLoginConfigToStorage(a),this.router.navigate([this.auth.getRedirectUrl()])})}static \u0275fac=function(a){return new(a||r)(d(C),d(E),d(v))};static \u0275cmp=p({type:r,selectors:[["POS-auth-geolocation"]],decls:31,vars:6,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(a,n){a&1&&(e(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),o(4,"Geo Fencing"),t(),e(5,"p",4),o(6,"You are about to sign-in from this location"),t(),e(7,"div",5)(8,"div",6)(9,"div",7)(10,"span",8),o(11,"LAT"),t(),e(12,"span",9),o(13),t()(),e(14,"div",7)(15,"span",10),o(16,"LONG"),t(),e(17,"span",11),o(18),t()()(),e(19,"button",12),h("click",function(){return n.proceed()}),o(20," Proceed "),t()(),g(21,O,5,0,"div",13),t(),e(22,"div",14),m(23,"img",15),t()(),e(24,"div",16)(25,"div",17)(26,"div")(27,"span"),o(28,"powered by :"),t(),m(29,"a",18)(30,"img",19),t()()()()),a&2&&(l(2),x(n.latLong().latitude&&n.latLong().longitude?n.centerGeoPanelStyle:""),l(11),s(n.latLong().latitude),l(5),s(n.latLong().longitude),l(),f("disabled",!(n.latLong().latitude&&n.latLong().longitude)),l(2),u(n.latLong().latitude&&n.latLong().longitude?-1:21))},dependencies:[b],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}"],changeDetection:0})};export{_ as AuthGeolocationComponent};
|