dealpos 25.35.2 → 25.35.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.
Files changed (84) hide show
  1. package/browser/{chunk-ZWEHXDXR.js → chunk-24D6MNU3.js} +1 -1
  2. package/browser/{chunk-7VKHUEU6.js → chunk-2DTTV3WZ.js} +1 -1
  3. package/browser/{chunk-VMIXOKE7.js → chunk-2SKOS425.js} +1 -1
  4. package/browser/{chunk-RXY2UMNO.js → chunk-355IJ673.js} +1 -1
  5. package/browser/{chunk-EXCJNRRJ.js → chunk-3F5XHWCR.js} +1 -1
  6. package/browser/{chunk-LFRQUM6J.js → chunk-4JHNDDWK.js} +1 -1
  7. package/browser/{chunk-6CUC5ZVY.js → chunk-4VFWQO4F.js} +1 -1
  8. package/browser/{chunk-Z7WYC46Q.js → chunk-55FBOF2K.js} +1 -1
  9. package/browser/{chunk-4YPJAUSY.js → chunk-5FX6PF7H.js} +1 -1
  10. package/browser/{chunk-J4SLL7XI.js → chunk-5KMED3ED.js} +1 -1
  11. package/browser/{chunk-WDS6MTSX.js → chunk-5QSJVXLI.js} +2 -2
  12. package/browser/{chunk-ETHIPTBJ.js → chunk-5XUCKBED.js} +1 -1
  13. package/browser/chunk-6RT4JFSL.js +12 -0
  14. package/browser/chunk-AFE2LULB.js +3 -0
  15. package/browser/{chunk-Q76KX5JJ.js → chunk-AXIZQIWB.js} +1 -1
  16. package/browser/{chunk-CNY7II6H.js → chunk-BMSGPTDT.js} +1 -1
  17. package/browser/{chunk-LKZE2HD4.js → chunk-BZVJPFC7.js} +1 -1
  18. package/browser/{chunk-LYGTJSME.js → chunk-C2OBU263.js} +1 -1
  19. package/browser/{chunk-VDKUDQZO.js → chunk-CACQ5CUG.js} +1 -1
  20. package/browser/{chunk-2BRCOLHG.js → chunk-CBANXZYR.js} +1 -1
  21. package/browser/chunk-CLANG4EJ.js +1 -0
  22. package/browser/{chunk-WDIJOVDQ.js → chunk-CMJU4DQE.js} +1 -1
  23. package/browser/{chunk-73ESQDPI.js → chunk-CWCCIUHW.js} +1 -1
  24. package/browser/{chunk-XXGDZ22Y.js → chunk-DYBM7A4I.js} +1 -1
  25. package/browser/{chunk-4DIUJNZF.js → chunk-E3FB6FNJ.js} +1 -1
  26. package/browser/{chunk-Q5YFG526.js → chunk-FJ5ZH62P.js} +1 -1
  27. package/browser/{chunk-5MGHIIE6.js → chunk-G6FSBVZ3.js} +2 -2
  28. package/browser/{chunk-U7VNF37P.js → chunk-GATE2JGN.js} +1 -1
  29. package/browser/{chunk-7NMXZ55P.js → chunk-GDGOECTK.js} +12 -12
  30. package/browser/chunk-GLXNXL3M.js +1 -0
  31. package/browser/{chunk-VJWRLXE4.js → chunk-GPQTHDC7.js} +1 -1
  32. package/browser/{chunk-HV7GI3KE.js → chunk-HZYCS27T.js} +1 -1
  33. package/browser/{chunk-FOVCORMR.js → chunk-IH5LFEXQ.js} +1 -1
  34. package/browser/{chunk-M2DBAY4P.js → chunk-IVJDR4KT.js} +1 -1
  35. package/browser/{chunk-AYEQLVMX.js → chunk-JDH4IG5J.js} +1 -1
  36. package/browser/{chunk-6E4UKP3I.js → chunk-JG3KZOXF.js} +4 -4
  37. package/browser/{chunk-E5UK2WMM.js → chunk-KFUZ5H2E.js} +1 -1
  38. package/browser/{chunk-ZCKT34V7.js → chunk-KSHAUAR4.js} +1 -1
  39. package/browser/{chunk-3GB5DSK3.js → chunk-KXWV7BWA.js} +1 -1
  40. package/browser/{chunk-V4OYKDE2.js → chunk-LCWRAZ53.js} +1 -1
  41. package/browser/{chunk-GK45LVUY.js → chunk-MAPKCEZS.js} +1 -1
  42. package/browser/{chunk-OZOAAIBM.js → chunk-MB3LC2X7.js} +1 -1
  43. package/browser/{chunk-A477JKU4.js → chunk-MDKBJ76E.js} +1 -1
  44. package/browser/{chunk-X4VB4DKS.js → chunk-OJXWHEVJ.js} +1 -1
  45. package/browser/{chunk-4YAMWP7V.js → chunk-OQWULNHJ.js} +1 -1
  46. package/browser/{chunk-33JZH2UR.js → chunk-OSEOSRN3.js} +1 -1
  47. package/browser/{chunk-GFFJDDRS.js → chunk-OTJ5RPOM.js} +1 -1
  48. package/browser/{chunk-SO3WWYN3.js → chunk-PB3U4CET.js} +2 -2
  49. package/browser/{chunk-FY4JABYL.js → chunk-POYTNEZA.js} +1 -1
  50. package/browser/{chunk-W64M5WBH.js → chunk-PX3AGMFG.js} +1 -1
  51. package/browser/{chunk-2ULGMZHE.js → chunk-QG3ZXK25.js} +1 -1
  52. package/browser/{chunk-WOBW4V44.js → chunk-QKLEIIBF.js} +1 -1
  53. package/browser/{chunk-HNBLWEAJ.js → chunk-QMC7IUQ4.js} +1 -1
  54. package/browser/{chunk-XGQGO4PE.js → chunk-RMW7CTND.js} +1 -1
  55. package/browser/{chunk-5IY3H7NG.js → chunk-RPXKX6SA.js} +1 -1
  56. package/browser/{chunk-O7H6QE5A.js → chunk-RRAQ3HCY.js} +1 -1
  57. package/browser/{chunk-M7KP6PSY.js → chunk-RRMVK7YL.js} +1 -1
  58. package/browser/{chunk-LXZS75G2.js → chunk-S2UMTJT4.js} +1 -1
  59. package/browser/chunk-SEJO3YK3.js +1 -0
  60. package/browser/chunk-SKDFYIAR.js +1 -0
  61. package/browser/{chunk-P5KSSZK7.js → chunk-SW7527Y6.js} +1 -1
  62. package/browser/{chunk-K76G23WC.js → chunk-T36LQESB.js} +1 -1
  63. package/browser/{chunk-45Q3TR52.js → chunk-TXT5K5RP.js} +1 -1
  64. package/browser/{chunk-7B7ON5E6.js → chunk-U6PF57EL.js} +1 -1
  65. package/browser/{chunk-ZYTLUHOS.js → chunk-UST6Q3MS.js} +1 -1
  66. package/browser/{chunk-LYOMQKFY.js → chunk-UZ4DOUGB.js} +1 -1
  67. package/browser/{chunk-CZTNOFUC.js → chunk-V4XBT2DG.js} +1 -1
  68. package/browser/{chunk-NT4HXAUQ.js → chunk-VQFGGKMC.js} +1 -1
  69. package/browser/{chunk-FBTUV7TY.js → chunk-W2D3QHHC.js} +1 -1
  70. package/browser/{chunk-BMNZHUI6.js → chunk-WO5244FM.js} +1 -1
  71. package/browser/{chunk-BBRBME3A.js → chunk-WQCHGJR2.js} +1 -1
  72. package/browser/{chunk-NPHAQCON.js → chunk-WRP2Q4PH.js} +1 -1
  73. package/browser/{chunk-66WXWMUG.js → chunk-WUXJOKKF.js} +1 -1
  74. package/browser/{chunk-SVW3DCFV.js → chunk-Y7V3HTAD.js} +1 -1
  75. package/browser/{chunk-F3ZJVCRK.js → chunk-ZPTXDCKQ.js} +1 -1
  76. package/browser/index.html +2 -2
  77. package/browser/{main-WYOICQDK.js → main-SRAUXRZ3.js} +2 -2
  78. package/package.json +1 -1
  79. package/browser/chunk-33A5UPQJ.js +0 -1
  80. package/browser/chunk-INDKSR3O.js +0 -3
  81. package/browser/chunk-LHGABVF6.js +0 -12
  82. package/browser/chunk-LI3MYO4W.js +0 -1
  83. package/browser/chunk-PDHJSRKI.js +0 -1
  84. package/browser/chunk-R3IC3THI.js +0 -1
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-AHCRE4GP.js";import{E as r,Q as o,e as s,ja as a}from"./chunk-DZT5XHBQ.js";var l=class i{_destinationOutlet=new s(null);destinationOutlet$=this._destinationOutlet.asObservable().pipe(r(t=>n.IsNotEmpty(t)&&n.IsNotEmpty(t?.ID)),o((t,e)=>JSON.stringify(t)===JSON.stringify(e)));updateDestinationOutlet(t){this._destinationOutlet.next(t)}_items=new s(null);items$=this._items.asObservable().pipe(r(t=>n.IsNotEmpty(t)&&t?.length>0),o((t,e)=>JSON.stringify(t)===JSON.stringify(e)));updateItems(t){this._items.next(t)}resetLowOnStock(){this._destinationOutlet.next(null),this._items.next(null)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=a({token:i,factory:i.\u0275fac,providedIn:"root"})};var u=class i{outletSource=new s(null);outletSource$=this.outletSource.asObservable().pipe(r(t=>n.IsNotEmpty(t)),o((t,e)=>JSON.stringify(t)===JSON.stringify(e)));updateOutletID(t){this.outletSource.next(t)}items=new s(null);items$=this.items.asObservable().pipe(r(t=>n.IsNotEmpty(t)&&t?.length>0),o((t,e)=>JSON.stringify(t)===JSON.stringify(e)));updateItems(t){this.items.next(t)}resetOverOnStock(){this.outletSource.next(null),this.items.next(null)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=a({token:i,factory:i.\u0275fac,providedIn:"root"})};export{l as a,u as b};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-LXZS75G2.js";var h=class extends r{constructor(t,i,a,e,n,s,o){super(t,i,a,e,n,s,o);this.httpService=i}toastrCount=0;nextPageDisabled=!1;extendData=!1;goToLast=!1;listTotal;infiniteList;originalData;StoreRowsCountAPIResult(t,i=!1){this.httpService.post("/api/"+t,this.pageData.Filter).subscribe(a=>{this.listTotal=a.Count,this.pageData.HideStoreApiCount=!0,i&&(this.pageData.Filter.RowCount=this.listTotal,this.goToLast=!0,this.pageData.Filter.PageNumber=1,this.getListData())})}NextPage(t){this.pageData.Filter.PageNumber=this.pageData.Filter.PageNumber||1,this.pageData.Filter.PageNumber+=1,this.extendData=t,this.getListData()}postInit(t){t?.Data?.length>0&&(this.toastrCount=0),t?.Data?.length===0&&this.toastrCount===0&&(this.toastrService?.info("No more data to load","Info"),this.toastrCount=1);let i=Array.isArray(t.Data?.hits),a=Array.isArray(t.Data?.[0]?.Variants);if(this.extendData){let e=this.infiniteList?.length?this.infiniteList[this.infiniteList.length-1]:null,n=t.Data.find(s=>s.ID===e?.ID);if(a&&e)if(e.ID===n?.ID){let s=t.Data.filter(o=>o.ID!=e?.ID);this.infiniteList[this.infiniteList.length-1].Variants=this.infiniteList[this.infiniteList.length-1].Variants.concat(n.Variants),this.infiniteList=this.infiniteList.concat(s)}else this.infiniteList=this.infiniteList.concat(t.Data);else this.infiniteList=this.infiniteList.concat(i?t.Data.hits:t.Data);this.postExtendData(t),this.extendData=!1}else this.infiniteList=i?t.Data.hits:t.Data,this.assignAggregate(t);this.nextPageDisabled=!((i?t.Data.hits.length:t.Data.length)<this.pageData.Filter.RowCount),this.originalData=[...this.infiniteList],this.menuData.H=this.data.PageTitle||this.menuData.H,this.afterPostInit(t)}afterPostInit(t){}preSearchFromPageOne(){this.goToLast=!1}postExtendData(t){}assignAggregate(t){}};export{h as a};
1
+ import{a as r}from"./chunk-S2UMTJT4.js";var h=class extends r{constructor(t,i,a,e,n,s,o){super(t,i,a,e,n,s,o);this.httpService=i}toastrCount=0;nextPageDisabled=!1;extendData=!1;goToLast=!1;listTotal;infiniteList;originalData;StoreRowsCountAPIResult(t,i=!1){this.httpService.post("/api/"+t,this.pageData.Filter).subscribe(a=>{this.listTotal=a.Count,this.pageData.HideStoreApiCount=!0,i&&(this.pageData.Filter.RowCount=this.listTotal,this.goToLast=!0,this.pageData.Filter.PageNumber=1,this.getListData())})}NextPage(t){this.pageData.Filter.PageNumber=this.pageData.Filter.PageNumber||1,this.pageData.Filter.PageNumber+=1,this.extendData=t,this.getListData()}postInit(t){t?.Data?.length>0&&(this.toastrCount=0),t?.Data?.length===0&&this.toastrCount===0&&(this.toastrService?.info("No more data to load","Info"),this.toastrCount=1);let i=Array.isArray(t.Data?.hits),a=Array.isArray(t.Data?.[0]?.Variants);if(this.extendData){let e=this.infiniteList?.length?this.infiniteList[this.infiniteList.length-1]:null,n=t.Data.find(s=>s.ID===e?.ID);if(a&&e)if(e.ID===n?.ID){let s=t.Data.filter(o=>o.ID!=e?.ID);this.infiniteList[this.infiniteList.length-1].Variants=this.infiniteList[this.infiniteList.length-1].Variants.concat(n.Variants),this.infiniteList=this.infiniteList.concat(s)}else this.infiniteList=this.infiniteList.concat(t.Data);else this.infiniteList=this.infiniteList.concat(i?t.Data.hits:t.Data);this.postExtendData(t),this.extendData=!1}else this.infiniteList=i?t.Data.hits:t.Data,this.assignAggregate(t);this.nextPageDisabled=!((i?t.Data.hits.length:t.Data.length)<this.pageData.Filter.RowCount),this.originalData=[...this.infiniteList],this.menuData.H=this.data.PageTitle||this.menuData.H,this.afterPostInit(t)}afterPostInit(t){}preSearchFromPageOne(){this.goToLast=!1}postExtendData(t){}assignAggregate(t){}};export{h as a};
@@ -1 +1 @@
1
- import{a as b}from"./chunk-LYOMQKFY.js";import{a as p,d as T,e as R}from"./chunk-AHCRE4GP.js";import{Pa as S,Qd as v,Sc as d,Yd as k,fa as h,ja as u,kd as I,ma as c}from"./chunk-DZT5XHBQ.js";var U=(o=>(o[o.PAID=0]="PAID",o[o.OVERDUE=1]="OVERDUE",o[o.SELL_ONLY=2]="SELL_ONLY",o[o.SUSPENDED=3]="SUSPENDED",o))(U||{});var y=(()=>{class n{constructor(e,i){this.document=e,this.platformId=i,this.documentIsAccessible=I(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),n.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.check(e)){e=encodeURIComponent(e);let o=n.getCookieRegExp(e).exec(this.document.cookie);return o&&o[1]?n.safeDecodeURIComponent(o[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},i=this.document;return i.cookie&&i.cookie!==""&&i.cookie.split(";").forEach(o=>{let[a,s]=o.split("=");e[n.safeDecodeURIComponent(a.replace(/^ /,""))]=n.safeDecodeURIComponent(s)}),e}set(e,i,o,a,s,m,f,D){if(!this.documentIsAccessible)return;if(typeof o=="number"||o instanceof Date||a||s||m||f){let g={expires:o,path:a,domain:s,secure:m,sameSite:f||"Lax",partitioned:D};this.set(e,i,g);return}let l=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",r=o||{};if(r.expires)if(typeof r.expires=="number"){let g=new Date(new Date().getTime()+r.expires*1e3*60*60*24);l+="expires="+g.toUTCString()+";"}else l+="expires="+r.expires.toUTCString()+";";r.path&&(l+="path="+r.path+";"),r.domain&&(l+="domain="+r.domain+";"),r.secure===!1&&r.sameSite==="None"&&(r.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),r.secure&&(l+="secure;"),r.sameSite||(r.sameSite="Lax"),l+="sameSite="+r.sameSite+";",r.partitioned&&(l+="Partitioned;"),this.document.cookie=l}delete(e,i,o,a,s="Lax"){if(!this.documentIsAccessible)return;let m=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:m,path:i,domain:o,secure:a,sameSite:s})}deleteAll(e,i,o,a="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let m in s)s.hasOwnProperty(m)&&this.delete(m,e,i,o,a)}static{this.\u0275fac=function(i){return new(i||n)(c(d),c(S))}}static{this.\u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var C=class n{constructor(t,e,i,o,a,s){this.httpService=t;this.cookieService=e;this.router=i;this.roleService=o;this.intercomService=a;this.fraction=s}role=[];_returnUrl;_loginResponse;_jwtToken;set returnUrl(t){this._returnUrl=t}get returnUrl(){return this._returnUrl}login(t){return this.httpService.post("/api/Login/Web",t).pipe(h(e=>{this._loginResponse=e,e.Type=="geo"||e.Type=="totp"||this.saveLoginConfigToStorage(e)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}getRedirectUrl(){let t=this.getSubscriptionStatus(),e=this.getRedirectUrlByRole();return(t==2||t==3)&&(e="/menu/Profile/Main/My_Subscription"),e}getRedirectUrlByRole(){let t,e=this.roleService;return e.dashboard.View?t="/menu/Dashboard":e.product.View?t="/menu/Products":t="/menu/Sell",t}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("AccountInfo"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post("/API/Authentication/RefreshToken",{}).subscribe(t=>{localStorage.removeItem("Token"),localStorage.setItem("Token",t.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){let t=localStorage.getItem("Token");if(t){let e=p.parseJwt(t),i=this.convertUnixTimesTamp(e.exp),o=new Date;if(i.getTime()-o.getTime()>0)return!1}return!0}isInRole(t){t.forEach(e=>e(this.role))}convertUnixTimesTamp(t){return new Date(t*1e3)}saveLoginConfigToStorage(t){localStorage.setItem("quantityFraction",JSON.stringify(t.UIConfig.Fraction.Quantity)),localStorage.setItem("amountFraction",JSON.stringify(t.UIConfig.Fraction.Amount)),this.fraction.setAmountFraction(t.UIConfig.Fraction.Amount.Minimum,t.UIConfig.Fraction.Amount.Maximum),this.fraction.setQuantityFraction(t.UIConfig.Fraction.Quantity.Minimum,t.UIConfig.Fraction.Quantity.Maximum),localStorage.setItem("AccountInfo",JSON.stringify(t?.AccountInfo)),localStorage.setItem("Token",t?.Token),localStorage.setItem("TinyMCEPlugins",t?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(t?.Intercom),localStorage.setItem("CloudinaryConfig",t?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",t?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(t?.SubscriptionStatus));let e=this.getParseToken();p.IsNotEmpty(e?.NotificationOutletID)&&localStorage.setItem("NotificationOutletID",e?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let t=localStorage.getItem("Token");return t&&!this._jwtToken&&(this._jwtToken=p.parseJwt(t)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let t=localStorage.getItem("SubscriptionStatus");return t?parseInt(t):null}static \u0275fac=function(e){return new(e||n)(c(k),c(y),c(v),c(T),c(b),c(R))};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})};export{U as a,y as b,C as c};
1
+ import{a as b}from"./chunk-UZ4DOUGB.js";import{a as p,d as T,e as R}from"./chunk-AHCRE4GP.js";import{Pa as S,Qd as v,Sc as d,Yd as k,fa as h,ja as u,kd as I,ma as c}from"./chunk-DZT5XHBQ.js";var U=(o=>(o[o.PAID=0]="PAID",o[o.OVERDUE=1]="OVERDUE",o[o.SELL_ONLY=2]="SELL_ONLY",o[o.SUSPENDED=3]="SUSPENDED",o))(U||{});var y=(()=>{class n{constructor(e,i){this.document=e,this.platformId=i,this.documentIsAccessible=I(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),n.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.check(e)){e=encodeURIComponent(e);let o=n.getCookieRegExp(e).exec(this.document.cookie);return o&&o[1]?n.safeDecodeURIComponent(o[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},i=this.document;return i.cookie&&i.cookie!==""&&i.cookie.split(";").forEach(o=>{let[a,s]=o.split("=");e[n.safeDecodeURIComponent(a.replace(/^ /,""))]=n.safeDecodeURIComponent(s)}),e}set(e,i,o,a,s,m,f,D){if(!this.documentIsAccessible)return;if(typeof o=="number"||o instanceof Date||a||s||m||f){let g={expires:o,path:a,domain:s,secure:m,sameSite:f||"Lax",partitioned:D};this.set(e,i,g);return}let l=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",r=o||{};if(r.expires)if(typeof r.expires=="number"){let g=new Date(new Date().getTime()+r.expires*1e3*60*60*24);l+="expires="+g.toUTCString()+";"}else l+="expires="+r.expires.toUTCString()+";";r.path&&(l+="path="+r.path+";"),r.domain&&(l+="domain="+r.domain+";"),r.secure===!1&&r.sameSite==="None"&&(r.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),r.secure&&(l+="secure;"),r.sameSite||(r.sameSite="Lax"),l+="sameSite="+r.sameSite+";",r.partitioned&&(l+="Partitioned;"),this.document.cookie=l}delete(e,i,o,a,s="Lax"){if(!this.documentIsAccessible)return;let m=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:m,path:i,domain:o,secure:a,sameSite:s})}deleteAll(e,i,o,a="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let m in s)s.hasOwnProperty(m)&&this.delete(m,e,i,o,a)}static{this.\u0275fac=function(i){return new(i||n)(c(d),c(S))}}static{this.\u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var C=class n{constructor(t,e,i,o,a,s){this.httpService=t;this.cookieService=e;this.router=i;this.roleService=o;this.intercomService=a;this.fraction=s}role=[];_returnUrl;_loginResponse;_jwtToken;set returnUrl(t){this._returnUrl=t}get returnUrl(){return this._returnUrl}login(t){return this.httpService.post("/api/Login/Web",t).pipe(h(e=>{this._loginResponse=e,e.Type=="geo"||e.Type=="totp"||this.saveLoginConfigToStorage(e)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}getRedirectUrl(){let t=this.getSubscriptionStatus(),e=this.getRedirectUrlByRole();return(t==2||t==3)&&(e="/menu/Profile/Main/My_Subscription"),e}getRedirectUrlByRole(){let t,e=this.roleService;return e.dashboard.View?t="/menu/Dashboard":e.product.View?t="/menu/Products":t="/menu/Sell",t}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("AccountInfo"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post("/API/Authentication/RefreshToken",{}).subscribe(t=>{localStorage.removeItem("Token"),localStorage.setItem("Token",t.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){let t=localStorage.getItem("Token");if(t){let e=p.parseJwt(t),i=this.convertUnixTimesTamp(e.exp),o=new Date;if(i.getTime()-o.getTime()>0)return!1}return!0}isInRole(t){t.forEach(e=>e(this.role))}convertUnixTimesTamp(t){return new Date(t*1e3)}saveLoginConfigToStorage(t){localStorage.setItem("quantityFraction",JSON.stringify(t.UIConfig.Fraction.Quantity)),localStorage.setItem("amountFraction",JSON.stringify(t.UIConfig.Fraction.Amount)),this.fraction.setAmountFraction(t.UIConfig.Fraction.Amount.Minimum,t.UIConfig.Fraction.Amount.Maximum),this.fraction.setQuantityFraction(t.UIConfig.Fraction.Quantity.Minimum,t.UIConfig.Fraction.Quantity.Maximum),localStorage.setItem("AccountInfo",JSON.stringify(t?.AccountInfo)),localStorage.setItem("Token",t?.Token),localStorage.setItem("TinyMCEPlugins",t?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(t?.Intercom),localStorage.setItem("CloudinaryConfig",t?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",t?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(t?.SubscriptionStatus));let e=this.getParseToken();p.IsNotEmpty(e?.NotificationOutletID)&&localStorage.setItem("NotificationOutletID",e?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let t=localStorage.getItem("Token");return t&&!this._jwtToken&&(this._jwtToken=p.parseJwt(t)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let t=localStorage.getItem("SubscriptionStatus");return t?parseInt(t):null}static \u0275fac=function(e){return new(e||n)(c(k),c(y),c(v),c(T),c(b),c(R))};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})};export{U as a,y as b,C as c};
@@ -1 +1 @@
1
- import{a as ge}from"./chunk-OUDB3GIC.js";import{a as ve}from"./chunk-Z7WYC46Q.js";import{a as Ce}from"./chunk-IVP3GL2V.js";import"./chunk-BYXBJQAS.js";import{h as ce,i as fe}from"./chunk-SO3WWYN3.js";import"./chunk-ETHIPTBJ.js";import{b as se}from"./chunk-M7KP6PSY.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import{u as pe,v as me,w as ue}from"./chunk-677WPFLK.js";import"./chunk-CIBQBSM6.js";import{P as F}from"./chunk-L2RZWAX3.js";import{e as ae,f as le,g as de}from"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-AAJJTF33.js";import"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import{C as oe,D as te,E as ne,c as J,e as b,h as Y,i as X,p as Q,t as Z,u as ee}from"./chunk-P7HKWFZT.js";import"./chunk-HV7GI3KE.js";import"./chunk-LYOMQKFY.js";import{a as w,d as re}from"./chunk-AHCRE4GP.js";import"./chunk-4YAMWP7V.js";import{$a as l,Db as C,E as N,Eb as A,Fc as q,Gb as O,Hb as U,Ib as i,Jb as r,Kb as s,Ma as V,Nb as H,Ob as x,Od as W,Pc as K,Qb as v,Rb as f,Vd as z,Wc as R,Yd as ie,Zc as L,bd as B,db as c,dc as $,ec as a,fc as G,gc as T,jd as M,kb as E,na as h,ob as D,qb as m,rc as _,sc as j,t as k,va as y,vb as p,wa as P}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var I=n=>({"is-invalid":n});function Pe(n,d){n&1&&(i(0,"div",16),a(1," Provider Name is required "),r())}function Ee(n,d){n&1&&(i(0,"div",20),a(1," Validate Coupon URL is required "),r())}function xe(n,d){n&1&&(i(0,"div",20),a(1," Redeem Coupon URL is required "),r())}function Ge(n,d){n&1&&(i(0,"div",20),a(1,"Key is required"),r())}var S=class n{constructor(d){this.data=d;this.config=new pe,this.config.title="Register Provider",this.config.customWidth="600px",this.initForm()}dialogRef=h(ae);config;fb=h(oe);formGroup;initForm(){this.formGroup=this.fb.group({name:[this.data?.name||"",[b.required]],validateCoupon:[this.data?.validateCoupon||"",[b.required]],redeemCoupon:[this.data?.redeemCoupon||"",[b.required]],enabled:[this.data?.enabled!==void 0?this.data.enabled:!0],header:[this.data?.header,[b.required]]})}onClose(){this.dialogRef.close()}onOk(){this.formGroup.markAllAsTouched(),!this.formGroup.invalid&&this.dialogRef.close(this.formGroup.value)}static \u0275fac=function(e){return new(e||n)(c(le))};static \u0275cmp=E({type:n,selectors:[["app-modal-register-provider"]],decls:35,vars:18,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","pt-4"],[1,"row"],[1,"col-12"],[3,"formGroup"],[1,"mb-8"],[1,"d-flex","align-items-center"],[1,"flex-grow-1","me-3"],[1,"form-floating-outline","mb-0"],["type","text","placeholder","Provider Name","id","name","name","name","formControlName","name",1,"form-control","bg-white",3,"ngClass"],["for","name"],[2,"width","75px"],[1,"form-check-floating"],[1,"d-flex","justify-content-center","pt-7","pb-4"],["formControlName","enabled"],[1,"labelFilledInput","text-center"],[1,"invalid-feedback","mt-2",2,"display","block"],[1,"form-floating-outline","mb-8"],["type","text","id","validateCoupon","name","validateCoupon","placeholder","Validate Coupon","formControlName","validateCoupon",1,"form-control","bg-white",3,"ngClass"],["for","validateCoupon"],[1,"invalid-feedback"],["type","text","id","redeemCoupon","placeholder","Redeem Coupon","name","redeemCoupon","formControlName","redeemCoupon",1,"form-control","bg-white",3,"ngClass"],["for","redeemCoupon"],[1,"form-floating-outline","mb-3"],["type","text","id","key","name","key","placeholder","Key: E.g. eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9","formControlName","header","rows","4",1,"form-control","bg-white",3,"ngClass"],["for","key"]],template:function(e,o){e&1&&(i(0,"modal-material",0),v("onOk",function(){return o.onOk()})("onCancel",function(){return o.onClose()})("onClose",function(){return o.onClose()}),i(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8),s(10,"input",9),i(11,"label",10),a(12,"Coupon Provider"),r()()(),i(13,"div",11)(14,"div",12)(15,"div",13),s(16,"app-customize-toggle",14),r(),i(17,"label",15),a(18,"Enabled"),r()()()(),m(19,Pe,2,0,"div",16),r(),i(20,"div",17),s(21,"input",18),i(22,"label",19),a(23,"Validate Coupon URL"),r(),m(24,Ee,2,0,"div",20),r(),i(25,"div",17),s(26,"input",21),i(27,"label",22),a(28,"Redeem Coupon URL"),r(),m(29,xe,2,0,"div",20),r(),i(30,"div",23),s(31,"textarea",24),i(32,"label",25),a(33,"Request Header (Key: value)"),r(),m(34,Ge,2,0,"div",20),r()()()()()()()),e&2&&(p("config",o.config),l(5),p("formGroup",o.formGroup),l(5),p("ngClass",_(10,I,(o.formGroup.controls.name==null?null:o.formGroup.controls.name.invalid)&&((o.formGroup.controls.name==null?null:o.formGroup.controls.name.dirty)||(o.formGroup.controls.name==null?null:o.formGroup.controls.name.touched)))),l(9),C(o.formGroup.controls.name.invalid&&(o.formGroup.controls.name.dirty||o.formGroup.controls.name.touched)?19:-1),l(2),p("ngClass",_(12,I,(o.formGroup.controls.validateCoupon==null?null:o.formGroup.controls.validateCoupon.invalid)&&((o.formGroup.controls.validateCoupon==null?null:o.formGroup.controls.validateCoupon.dirty)||(o.formGroup.controls.validateCoupon==null?null:o.formGroup.controls.validateCoupon.touched)))),l(3),C(o.formGroup.controls.validateCoupon.invalid&&(o.formGroup.controls.validateCoupon.dirty||o.formGroup.controls.validateCoupon.touched)?24:-1),l(2),p("ngClass",_(14,I,(o.formGroup.controls.redeemCoupon==null?null:o.formGroup.controls.redeemCoupon.invalid)&&((o.formGroup.controls.redeemCoupon==null?null:o.formGroup.controls.redeemCoupon.dirty)||(o.formGroup.controls.redeemCoupon==null?null:o.formGroup.controls.redeemCoupon.touched)))),l(3),C(o.formGroup.controls.redeemCoupon.invalid&&(o.formGroup.controls.redeemCoupon.dirty||o.formGroup.controls.redeemCoupon.touched)?29:-1),l(2),p("ngClass",_(16,I,(o.formGroup.controls.header==null?null:o.formGroup.controls.header.invalid)&&((o.formGroup.controls.header==null?null:o.formGroup.controls.header.dirty)||(o.formGroup.controls.header==null?null:o.formGroup.controls.header.touched)))),l(3),C(o.formGroup.controls.header.invalid&&(o.formGroup.controls.header.dirty||o.formGroup.controls.header.touched)?34:-1))},dependencies:[M,R,ne,Q,J,Y,X,Z,ee,ue,me,ge],styles:["div.form-check-floating[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;border-radius:.25rem!important}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}"]})};var Re=(n,d)=>({"bg-success-subtle text-success-emphasis":n,"bg-danger-subtle text-danger-emphasis":d});function Me(n,d){if(n&1){let e=x();i(0,"button",10),v("click",function(){y(e);let t=f();return P(t.addNewCouponProvider())}),a(1," Add "),r()}}function Ie(n,d){n&1&&s(0,"th",11)}function Ne(n,d){if(n&1){let e=x();i(0,"td",15)(1,"i",16),v("click",function(){y(e);let t=f().$index,u=f(2);return P(u.onDeleteProvider(t))}),r()()}}function Te(n,d){if(n&1){let e=x();i(0,"tr"),m(1,Ne,2,0,"td",12),i(2,"td")(3,"a",13),v("click",function(){let t=y(e),u=t.$implicit,g=t.$index,_e=f(2);return P(_e.onUpdateProvider(u,g))}),a(4),r()(),i(5,"td"),a(6),r(),i(7,"td"),a(8),r(),i(9,"td"),a(10),r(),i(11,"td")(12,"span",14),a(13),r()()()}if(n&2){let e=d.$implicit,o=f(2);l(),p("ngIf",o.role.developer.Edit),l(3),T(" ",e.Name," "),l(2),G(e.ValidateCoupon),l(2),G(e.RedeemCoupon),l(2),G(e.KeyUI),l(2),p("ngClass",j(7,Re,e.Enabled,!e.Enabled)),l(),T(" ",e.Enabled?"Enabled":"Disabled"," ")}}function we(n,d){if(n&1&&O(0,Te,14,10,"tr",null,A),n&2){let e=f();U(e.listProviders())}}function Fe(n,d){n&1&&H(0)}function ke(n,d){if(n&1&&m(0,Fe,1,0,"ng-container",17),n&2){f();let e=$(25);p("ngTemplateOutlet",e)}}function Ve(n,d){n&1&&(i(0,"tr",18)(1,"td",19),s(2,"empty-state-table"),r()())}var he=class n extends ve{constructor(e,o,t,u,g){super(e,o,F.WebhookCouponProviderLoader,t);this.activatedRoute=t;this.role=u;this.dialog=g}toastr=h(z);couponProviders=V([]);listProviders=K(()=>this.couponProviders().map(e=>(e.KeyUI=this.generateKeyUI(e.Header),e)));generateKeyUI(e){if(!e||e.length<=25)return e||"";let o=e.substring(0,10),t=e.substring(e.length-10);return`${o}...${t}`}postBindForm(e){this.couponProviders.update(()=>e.Form.CouponProviders.map(t=>({FetchMemberPoint:t.FetchMemberPoint,Enabled:t.Enabled,Name:t.Name,RedeemCoupon:t.RedeemCoupon,ValidateCoupon:t.ValidateCoupon,Header:t.Header})))}addNewCouponProvider(){this.dialog.open(S).afterClosed().pipe(N(e=>w.IsNotEmpty(e)),k(e=>{let o={Name:e.name,ValidateCoupon:e.validateCoupon,RedeemCoupon:e.redeemCoupon,Enabled:e.enabled,Header:e.header};return[...this.couponProviders(),o]})).subscribe(e=>{this.couponProviders.update(()=>e),this.saveCouponProviders(`Coupon provider "${e[e.length-1].Name}" has been successfully added.`)})}onUpdateProvider(e,o){this.dialog.open(S,{data:{name:e.Name,validateCoupon:e.ValidateCoupon,redeemCoupon:e.RedeemCoupon,enabled:e.Enabled,header:e.Header}}).afterClosed().pipe(N(t=>w.IsNotEmpty(t))).subscribe(t=>{let u={Name:t.name,ValidateCoupon:t.validateCoupon,RedeemCoupon:t.redeemCoupon,Enabled:t.enabled,Header:t.header};this.couponProviders.update(g=>(g[o]=u,[...g])),this.saveCouponProviders(`Coupon provider "${t.name}" has been successfully updated.`)})}onDeleteProvider(e){if(confirm("Are you sure you want to delete this coupon provider?")){let o=this.couponProviders()[e]?.Name||"provider";this.couponProviders.update(t=>(t.splice(e,1),[...t])),this.saveCouponProviders(`Coupon provider "${o}" has been successfully deleted.`)}}saveCouponProviders(e){this.httpService.post(F.WebhookCouponProviderSave,this.couponProviders()).subscribe(()=>{this.toastr.success(e||"Coupon provider has been successfully updated.","Success")})}static \u0275fac=function(o){return new(o||n)(c(se),c(ie),c(W),c(re),c(de))};static \u0275cmp=E({type:n,selectors:[["app-coupon-configuration"]],features:[D],decls:26,vars:6,consts:[["EMPTY_STATE",""],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","class","btn btn-success",3,"click",4,"ngIf"],[1,"container-fluid","mt-6"],[1,"row"],[1,"col-12"],[1,"table","table-stripped","custom-table"],[1,"thead-light","sticky-top-thead"],["class","text-center","style","width: 10px",4,"ngIf"],[2,"width","220px"],["type","button",1,"btn","btn-success",3,"click"],[1,"text-center",2,"width","10px"],["class","text-center",4,"ngIf"],["role","button",1,"link-primary","cursor-pointer",3,"click"],[1,"p-3","rounded-2",3,"ngClass"],[1,"text-center"],["title","Delete provider",1,"fa","fa-xmark","text-danger",2,"cursor","pointer",3,"click"],[4,"ngTemplateOutlet"],[1,"table-border-bottom-0"],["colspan","7"]],template:function(o,t){if(o&1&&(i(0,"mainpanel-cmp",1)(1,"actions"),m(2,Me,2,0,"button",2),r(),i(3,"content")(4,"div",3)(5,"div",4)(6,"div",5)(7,"table",6)(8,"thead",7)(9,"tr"),m(10,Ie,1,0,"th",8),i(11,"th",9),a(12,"Name"),r(),i(13,"th"),a(14,"Validate Coupon"),r(),i(15,"th"),a(16,"Redeem Coupon"),r(),i(17,"th"),a(18,"Value"),r(),i(19,"th"),a(20,"Status"),r()()(),i(21,"tbody"),m(22,we,2,0)(23,ke,1,1,"ng-container"),r()()()()(),m(24,Ve,3,0,"ng-template",null,0,q),r()()),o&2){let u;p("pageData",t.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(2),p("ngIf",t.role.developer.Edit),l(8),p("ngIf",t.role.developer.Edit),l(12),C(((u=t.listProviders())==null?null:u.length)>0?22:23)}},dependencies:[M,R,L,B,fe,ce,te,Ce],encapsulation:2})};export{he as CouponConfigurationComponent};
1
+ import{a as ge}from"./chunk-OUDB3GIC.js";import{a as ve}from"./chunk-55FBOF2K.js";import{a as Ce}from"./chunk-IVP3GL2V.js";import"./chunk-BYXBJQAS.js";import{h as ce,i as fe}from"./chunk-PB3U4CET.js";import"./chunk-5XUCKBED.js";import{b as se}from"./chunk-RRMVK7YL.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import{u as pe,v as me,w as ue}from"./chunk-677WPFLK.js";import"./chunk-CIBQBSM6.js";import{P as F}from"./chunk-L2RZWAX3.js";import{e as ae,f as le,g as de}from"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-AAJJTF33.js";import"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import{C as oe,D as te,E as ne,c as J,e as b,h as Y,i as X,p as Q,t as Z,u as ee}from"./chunk-P7HKWFZT.js";import"./chunk-HZYCS27T.js";import"./chunk-UZ4DOUGB.js";import{a as w,d as re}from"./chunk-AHCRE4GP.js";import"./chunk-OQWULNHJ.js";import{$a as l,Db as C,E as N,Eb as A,Fc as q,Gb as O,Hb as U,Ib as i,Jb as r,Kb as s,Ma as V,Nb as H,Ob as x,Od as W,Pc as K,Qb as v,Rb as f,Vd as z,Wc as R,Yd as ie,Zc as L,bd as B,db as c,dc as $,ec as a,fc as G,gc as T,jd as M,kb as E,na as h,ob as D,qb as m,rc as _,sc as j,t as k,va as y,vb as p,wa as P}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var I=n=>({"is-invalid":n});function Pe(n,d){n&1&&(i(0,"div",16),a(1," Provider Name is required "),r())}function Ee(n,d){n&1&&(i(0,"div",20),a(1," Validate Coupon URL is required "),r())}function xe(n,d){n&1&&(i(0,"div",20),a(1," Redeem Coupon URL is required "),r())}function Ge(n,d){n&1&&(i(0,"div",20),a(1,"Key is required"),r())}var S=class n{constructor(d){this.data=d;this.config=new pe,this.config.title="Register Provider",this.config.customWidth="600px",this.initForm()}dialogRef=h(ae);config;fb=h(oe);formGroup;initForm(){this.formGroup=this.fb.group({name:[this.data?.name||"",[b.required]],validateCoupon:[this.data?.validateCoupon||"",[b.required]],redeemCoupon:[this.data?.redeemCoupon||"",[b.required]],enabled:[this.data?.enabled!==void 0?this.data.enabled:!0],header:[this.data?.header,[b.required]]})}onClose(){this.dialogRef.close()}onOk(){this.formGroup.markAllAsTouched(),!this.formGroup.invalid&&this.dialogRef.close(this.formGroup.value)}static \u0275fac=function(e){return new(e||n)(c(le))};static \u0275cmp=E({type:n,selectors:[["app-modal-register-provider"]],decls:35,vars:18,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","pt-4"],[1,"row"],[1,"col-12"],[3,"formGroup"],[1,"mb-8"],[1,"d-flex","align-items-center"],[1,"flex-grow-1","me-3"],[1,"form-floating-outline","mb-0"],["type","text","placeholder","Provider Name","id","name","name","name","formControlName","name",1,"form-control","bg-white",3,"ngClass"],["for","name"],[2,"width","75px"],[1,"form-check-floating"],[1,"d-flex","justify-content-center","pt-7","pb-4"],["formControlName","enabled"],[1,"labelFilledInput","text-center"],[1,"invalid-feedback","mt-2",2,"display","block"],[1,"form-floating-outline","mb-8"],["type","text","id","validateCoupon","name","validateCoupon","placeholder","Validate Coupon","formControlName","validateCoupon",1,"form-control","bg-white",3,"ngClass"],["for","validateCoupon"],[1,"invalid-feedback"],["type","text","id","redeemCoupon","placeholder","Redeem Coupon","name","redeemCoupon","formControlName","redeemCoupon",1,"form-control","bg-white",3,"ngClass"],["for","redeemCoupon"],[1,"form-floating-outline","mb-3"],["type","text","id","key","name","key","placeholder","Key: E.g. eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9","formControlName","header","rows","4",1,"form-control","bg-white",3,"ngClass"],["for","key"]],template:function(e,o){e&1&&(i(0,"modal-material",0),v("onOk",function(){return o.onOk()})("onCancel",function(){return o.onClose()})("onClose",function(){return o.onClose()}),i(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8),s(10,"input",9),i(11,"label",10),a(12,"Coupon Provider"),r()()(),i(13,"div",11)(14,"div",12)(15,"div",13),s(16,"app-customize-toggle",14),r(),i(17,"label",15),a(18,"Enabled"),r()()()(),m(19,Pe,2,0,"div",16),r(),i(20,"div",17),s(21,"input",18),i(22,"label",19),a(23,"Validate Coupon URL"),r(),m(24,Ee,2,0,"div",20),r(),i(25,"div",17),s(26,"input",21),i(27,"label",22),a(28,"Redeem Coupon URL"),r(),m(29,xe,2,0,"div",20),r(),i(30,"div",23),s(31,"textarea",24),i(32,"label",25),a(33,"Request Header (Key: value)"),r(),m(34,Ge,2,0,"div",20),r()()()()()()()),e&2&&(p("config",o.config),l(5),p("formGroup",o.formGroup),l(5),p("ngClass",_(10,I,(o.formGroup.controls.name==null?null:o.formGroup.controls.name.invalid)&&((o.formGroup.controls.name==null?null:o.formGroup.controls.name.dirty)||(o.formGroup.controls.name==null?null:o.formGroup.controls.name.touched)))),l(9),C(o.formGroup.controls.name.invalid&&(o.formGroup.controls.name.dirty||o.formGroup.controls.name.touched)?19:-1),l(2),p("ngClass",_(12,I,(o.formGroup.controls.validateCoupon==null?null:o.formGroup.controls.validateCoupon.invalid)&&((o.formGroup.controls.validateCoupon==null?null:o.formGroup.controls.validateCoupon.dirty)||(o.formGroup.controls.validateCoupon==null?null:o.formGroup.controls.validateCoupon.touched)))),l(3),C(o.formGroup.controls.validateCoupon.invalid&&(o.formGroup.controls.validateCoupon.dirty||o.formGroup.controls.validateCoupon.touched)?24:-1),l(2),p("ngClass",_(14,I,(o.formGroup.controls.redeemCoupon==null?null:o.formGroup.controls.redeemCoupon.invalid)&&((o.formGroup.controls.redeemCoupon==null?null:o.formGroup.controls.redeemCoupon.dirty)||(o.formGroup.controls.redeemCoupon==null?null:o.formGroup.controls.redeemCoupon.touched)))),l(3),C(o.formGroup.controls.redeemCoupon.invalid&&(o.formGroup.controls.redeemCoupon.dirty||o.formGroup.controls.redeemCoupon.touched)?29:-1),l(2),p("ngClass",_(16,I,(o.formGroup.controls.header==null?null:o.formGroup.controls.header.invalid)&&((o.formGroup.controls.header==null?null:o.formGroup.controls.header.dirty)||(o.formGroup.controls.header==null?null:o.formGroup.controls.header.touched)))),l(3),C(o.formGroup.controls.header.invalid&&(o.formGroup.controls.header.dirty||o.formGroup.controls.header.touched)?34:-1))},dependencies:[M,R,ne,Q,J,Y,X,Z,ee,ue,me,ge],styles:["div.form-check-floating[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;border-radius:.25rem!important}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}"]})};var Re=(n,d)=>({"bg-success-subtle text-success-emphasis":n,"bg-danger-subtle text-danger-emphasis":d});function Me(n,d){if(n&1){let e=x();i(0,"button",10),v("click",function(){y(e);let t=f();return P(t.addNewCouponProvider())}),a(1," Add "),r()}}function Ie(n,d){n&1&&s(0,"th",11)}function Ne(n,d){if(n&1){let e=x();i(0,"td",15)(1,"i",16),v("click",function(){y(e);let t=f().$index,u=f(2);return P(u.onDeleteProvider(t))}),r()()}}function Te(n,d){if(n&1){let e=x();i(0,"tr"),m(1,Ne,2,0,"td",12),i(2,"td")(3,"a",13),v("click",function(){let t=y(e),u=t.$implicit,g=t.$index,_e=f(2);return P(_e.onUpdateProvider(u,g))}),a(4),r()(),i(5,"td"),a(6),r(),i(7,"td"),a(8),r(),i(9,"td"),a(10),r(),i(11,"td")(12,"span",14),a(13),r()()()}if(n&2){let e=d.$implicit,o=f(2);l(),p("ngIf",o.role.developer.Edit),l(3),T(" ",e.Name," "),l(2),G(e.ValidateCoupon),l(2),G(e.RedeemCoupon),l(2),G(e.KeyUI),l(2),p("ngClass",j(7,Re,e.Enabled,!e.Enabled)),l(),T(" ",e.Enabled?"Enabled":"Disabled"," ")}}function we(n,d){if(n&1&&O(0,Te,14,10,"tr",null,A),n&2){let e=f();U(e.listProviders())}}function Fe(n,d){n&1&&H(0)}function ke(n,d){if(n&1&&m(0,Fe,1,0,"ng-container",17),n&2){f();let e=$(25);p("ngTemplateOutlet",e)}}function Ve(n,d){n&1&&(i(0,"tr",18)(1,"td",19),s(2,"empty-state-table"),r()())}var he=class n extends ve{constructor(e,o,t,u,g){super(e,o,F.WebhookCouponProviderLoader,t);this.activatedRoute=t;this.role=u;this.dialog=g}toastr=h(z);couponProviders=V([]);listProviders=K(()=>this.couponProviders().map(e=>(e.KeyUI=this.generateKeyUI(e.Header),e)));generateKeyUI(e){if(!e||e.length<=25)return e||"";let o=e.substring(0,10),t=e.substring(e.length-10);return`${o}...${t}`}postBindForm(e){this.couponProviders.update(()=>e.Form.CouponProviders.map(t=>({FetchMemberPoint:t.FetchMemberPoint,Enabled:t.Enabled,Name:t.Name,RedeemCoupon:t.RedeemCoupon,ValidateCoupon:t.ValidateCoupon,Header:t.Header})))}addNewCouponProvider(){this.dialog.open(S).afterClosed().pipe(N(e=>w.IsNotEmpty(e)),k(e=>{let o={Name:e.name,ValidateCoupon:e.validateCoupon,RedeemCoupon:e.redeemCoupon,Enabled:e.enabled,Header:e.header};return[...this.couponProviders(),o]})).subscribe(e=>{this.couponProviders.update(()=>e),this.saveCouponProviders(`Coupon provider "${e[e.length-1].Name}" has been successfully added.`)})}onUpdateProvider(e,o){this.dialog.open(S,{data:{name:e.Name,validateCoupon:e.ValidateCoupon,redeemCoupon:e.RedeemCoupon,enabled:e.Enabled,header:e.Header}}).afterClosed().pipe(N(t=>w.IsNotEmpty(t))).subscribe(t=>{let u={Name:t.name,ValidateCoupon:t.validateCoupon,RedeemCoupon:t.redeemCoupon,Enabled:t.enabled,Header:t.header};this.couponProviders.update(g=>(g[o]=u,[...g])),this.saveCouponProviders(`Coupon provider "${t.name}" has been successfully updated.`)})}onDeleteProvider(e){if(confirm("Are you sure you want to delete this coupon provider?")){let o=this.couponProviders()[e]?.Name||"provider";this.couponProviders.update(t=>(t.splice(e,1),[...t])),this.saveCouponProviders(`Coupon provider "${o}" has been successfully deleted.`)}}saveCouponProviders(e){this.httpService.post(F.WebhookCouponProviderSave,this.couponProviders()).subscribe(()=>{this.toastr.success(e||"Coupon provider has been successfully updated.","Success")})}static \u0275fac=function(o){return new(o||n)(c(se),c(ie),c(W),c(re),c(de))};static \u0275cmp=E({type:n,selectors:[["app-coupon-configuration"]],features:[D],decls:26,vars:6,consts:[["EMPTY_STATE",""],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","class","btn btn-success",3,"click",4,"ngIf"],[1,"container-fluid","mt-6"],[1,"row"],[1,"col-12"],[1,"table","table-stripped","custom-table"],[1,"thead-light","sticky-top-thead"],["class","text-center","style","width: 10px",4,"ngIf"],[2,"width","220px"],["type","button",1,"btn","btn-success",3,"click"],[1,"text-center",2,"width","10px"],["class","text-center",4,"ngIf"],["role","button",1,"link-primary","cursor-pointer",3,"click"],[1,"p-3","rounded-2",3,"ngClass"],[1,"text-center"],["title","Delete provider",1,"fa","fa-xmark","text-danger",2,"cursor","pointer",3,"click"],[4,"ngTemplateOutlet"],[1,"table-border-bottom-0"],["colspan","7"]],template:function(o,t){if(o&1&&(i(0,"mainpanel-cmp",1)(1,"actions"),m(2,Me,2,0,"button",2),r(),i(3,"content")(4,"div",3)(5,"div",4)(6,"div",5)(7,"table",6)(8,"thead",7)(9,"tr"),m(10,Ie,1,0,"th",8),i(11,"th",9),a(12,"Name"),r(),i(13,"th"),a(14,"Validate Coupon"),r(),i(15,"th"),a(16,"Redeem Coupon"),r(),i(17,"th"),a(18,"Value"),r(),i(19,"th"),a(20,"Status"),r()()(),i(21,"tbody"),m(22,we,2,0)(23,ke,1,1,"ng-container"),r()()()()(),m(24,Ve,3,0,"ng-template",null,0,q),r()()),o&2){let u;p("pageData",t.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(2),p("ngIf",t.role.developer.Edit),l(8),p("ngIf",t.role.developer.Edit),l(12),C(((u=t.listProviders())==null?null:u.length)>0?22:23)}},dependencies:[M,R,L,B,fe,ce,te,Ce],encapsulation:2})};export{he as CouponConfigurationComponent};
@@ -1 +1 @@
1
- import{c as N}from"./chunk-HV7GI3KE.js";import"./chunk-LYOMQKFY.js";import{a as D}from"./chunk-AHCRE4GP.js";import"./chunk-4YAMWP7V.js";import{$ as _,$a as l,Ac as k,Ga as P,Ib as o,Jb as e,Kb as u,N as b,Ob as S,Qb as I,Qd as G,Rb as f,Y as m,Yd as j,Zc as A,aa as s,c as p,cd as E,db as d,ec as a,fa as y,fc as x,jd as R,kb as w,n as v,qb as g,va as C,vb as c,wa as O,yb as M,zc as L}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";function T(r,n){r&1&&(o(0,"div",21)(1,"span",22),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",23),a(4,"Click here to learn how to manually activate the location permission"),e()())}function z(r,n){if(r&1){let t=S();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),a(4,"Geo Fencing"),e(),o(5,"p",5),a(6,"You are about to sign-in from this location"),e(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),a(11,"LAT"),e(),o(12,"span",10),a(13),e()(),o(14,"div",8)(15,"span",11),a(16,"LONG"),e(),o(17,"span",12),a(18),e()()(),o(19,"button",13),I("click",function(){C(t);let h=f();return O(h.proceed())}),a(20,"Proceed"),e()(),g(21,T,5,0,"div",14),e(),o(22,"div",15),u(23,"img",16),e()(),o(24,"div",17)(25,"div",18)(26,"div")(27,"span"),a(28,"powered by :"),e(),u(29,"a",19)(30,"img",20),e()()()()}if(r&2){let t=n.ngIf,i=f();l(2),M(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),x(t.latitude),l(5),x(t.longitude),l(),c("disabled",!(t.latitude&&t.longitude)),l(2),c("ngIf",!(t.latitude&&t.longitude))}}var Z=class r{constructor(n,t,i,h){this.ngZone=n;this.auth=t;this.http=i;this.router=h}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(s(t=>new p(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),m(1));this.latLong$=n.pipe(s(()=>new p(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:""}),m(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(s(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),y(n=>this.auth.saveLoginConfigToStorage(n)),s(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(d(P),d(N),d(j),d(G))};static \u0275cmp=w({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[["class","container-fluid",4,"ngIf"],[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"],["class","text-start mt-7",4,"ngIf"],[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://res.cloudinary.com/pos/image/upload/v1685343992/POS/Images/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","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"],[1,"text-start","mt-7"],[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){t&1&&(g(0,z,31,6,"div",0),L(1,"async")),t&2&&c("ngIf",k(1,1,i.latLong$))},dependencies:[R,A,E],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
+ import{c as N}from"./chunk-HZYCS27T.js";import"./chunk-UZ4DOUGB.js";import{a as D}from"./chunk-AHCRE4GP.js";import"./chunk-OQWULNHJ.js";import{$ as _,$a as l,Ac as k,Ga as P,Ib as o,Jb as e,Kb as u,N as b,Ob as S,Qb as I,Qd as G,Rb as f,Y as m,Yd as j,Zc as A,aa as s,c as p,cd as E,db as d,ec as a,fa as y,fc as x,jd as R,kb as w,n as v,qb as g,va as C,vb as c,wa as O,yb as M,zc as L}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";function T(r,n){r&1&&(o(0,"div",21)(1,"span",22),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",23),a(4,"Click here to learn how to manually activate the location permission"),e()())}function z(r,n){if(r&1){let t=S();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),a(4,"Geo Fencing"),e(),o(5,"p",5),a(6,"You are about to sign-in from this location"),e(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),a(11,"LAT"),e(),o(12,"span",10),a(13),e()(),o(14,"div",8)(15,"span",11),a(16,"LONG"),e(),o(17,"span",12),a(18),e()()(),o(19,"button",13),I("click",function(){C(t);let h=f();return O(h.proceed())}),a(20,"Proceed"),e()(),g(21,T,5,0,"div",14),e(),o(22,"div",15),u(23,"img",16),e()(),o(24,"div",17)(25,"div",18)(26,"div")(27,"span"),a(28,"powered by :"),e(),u(29,"a",19)(30,"img",20),e()()()()}if(r&2){let t=n.ngIf,i=f();l(2),M(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),x(t.latitude),l(5),x(t.longitude),l(),c("disabled",!(t.latitude&&t.longitude)),l(2),c("ngIf",!(t.latitude&&t.longitude))}}var Z=class r{constructor(n,t,i,h){this.ngZone=n;this.auth=t;this.http=i;this.router=h}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(s(t=>new p(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),m(1));this.latLong$=n.pipe(s(()=>new p(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:""}),m(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(s(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),y(n=>this.auth.saveLoginConfigToStorage(n)),s(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(d(P),d(N),d(j),d(G))};static \u0275cmp=w({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[["class","container-fluid",4,"ngIf"],[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"],["class","text-start mt-7",4,"ngIf"],[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://res.cloudinary.com/pos/image/upload/v1685343992/POS/Images/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","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"],[1,"text-start","mt-7"],[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){t&1&&(g(0,z,31,6,"div",0),L(1,"async")),t&2&&c("ngIf",k(1,1,i.latLong$))},dependencies:[R,A,E],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 Ct}from"./chunk-TOWVTOFV.js";import{a as pt,b as ct,c as ut,d as dt,e as _t,f as gt}from"./chunk-EYCYL6AL.js";import{a as mt}from"./chunk-3YXP5Q5V.js";import{a as yt}from"./chunk-B7E3DL2Y.js";import{a as bt,b as xt,c as It,d as wt}from"./chunk-H6BFHXJX.js";import{a as ft}from"./chunk-MHBOKOSN.js";import{b as Fe}from"./chunk-S6TMUVGC.js";import{a as Pe}from"./chunk-PPWHSAY6.js";import{b as ht}from"./chunk-SO3WWYN3.js";import{a as Ve,c as Ee}from"./chunk-WEJYVCCX.js";import{a as te}from"./chunk-AAJJTF33.js";import{$ as rt,B as tt,E as nt,N as it,P as Ne,Q as ot,S as ke,T as ce,U as at,X as Ae,ca as lt,e as Ye,fa as st,ja as H,ka as M,la as Oe,s as pe,sa as ue,t as q,v as Xe,w as et}from"./chunk-3PYW74LR.js";import{D as Je,a as Se,g as je,h as Ze,o as We}from"./chunk-P7HKWFZT.js";import{$a as p,$b as y,Ba as Ke,Db as $e,Fa as P,Fc as K,Ga as qe,Ib as _,Jb as g,Kb as S,Lb as k,Ma as G,Mb as O,Mc as h,Nb as F,Nc as L,Ob as v,Pc as _e,Qb as C,Qc as Ge,Rb as s,Wc as W,Yb as T,Yc as ve,Zb as $,Zc as J,_b as b,ad as Y,bd as X,db as de,dc as le,ec as R,fc as Q,gc as me,ia as ye,ja as ne,jc as Ie,jd as ee,ka as ie,kb as j,kc as we,lb as ae,lc as Ce,na as oe,ob as Z,pc as se,qb as u,qc as Te,rc as V,sc as Re,tc as Ue,ua as xe,ub as f,va as d,vb as l,wa as m,wb as He,yb as re,za as U,zb as D}from"./chunk-DZT5XHBQ.js";import{a as fe,b as be}from"./chunk-7DCB7DB2.js";var Ft=["clearicon"],Lt=["incrementbuttonicon"],Dt=["decrementbuttonicon"],Mt=["input"];function Bt(t,r){if(t&1){let e=v();_(0,"TimesIcon",7),C("click",function(){d(e);let n=s(2);return m(n.clear())}),g()}t&2&&(l("ngClass","p-inputnumber-clear-icon"),f("data-pc-section","clearIcon"))}function $t(t,r){}function Rt(t,r){t&1&&u(0,$t,0,0,"ng-template")}function Nt(t,r){if(t&1){let e=v();_(0,"span",8),C("click",function(){d(e);let n=s(2);return m(n.clear())}),u(1,Rt,1,0,null,9),g()}if(t&2){let e=s(2);f("data-pc-section","clearIcon"),p(),l("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function At(t,r){if(t&1&&(k(0),u(1,Bt,1,2,"TimesIcon",5)(2,Nt,2,2,"span",6),O()),t&2){let e=s();p(),l("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),p(),l("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function zt(t,r){if(t&1&&S(0,"span",13),t&2){let e=s(2);l("ngClass",e.incrementButtonIcon),f("data-pc-section","incrementbuttonicon")}}function Qt(t,r){t&1&&S(0,"AngleUpIcon"),t&2&&f("data-pc-section","incrementbuttonicon")}function Kt(t,r){}function qt(t,r){t&1&&u(0,Kt,0,0,"ng-template")}function Ht(t,r){if(t&1&&(k(0),u(1,Qt,1,1,"AngleUpIcon",2)(2,qt,1,0,null,9),O()),t&2){let e=s(2);p(),l("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),p(),l("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function Ut(t,r){if(t&1&&S(0,"span",13),t&2){let e=s(2);l("ngClass",e.decrementButtonIcon),f("data-pc-section","decrementbuttonicon")}}function Gt(t,r){t&1&&S(0,"AngleDownIcon"),t&2&&f("data-pc-section","decrementbuttonicon")}function jt(t,r){}function Zt(t,r){t&1&&u(0,jt,0,0,"ng-template")}function Wt(t,r){if(t&1&&(k(0),u(1,Gt,1,1,"AngleDownIcon",2)(2,Zt,1,0,null,9),O()),t&2){let e=s(2);p(),l("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),p(),l("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function Jt(t,r){if(t&1){let e=v();_(0,"span",10)(1,"button",11),C("mousedown",function(n){d(e);let o=s();return m(o.onUpButtonMouseDown(n))})("mouseup",function(){d(e);let n=s();return m(n.onUpButtonMouseUp())})("mouseleave",function(){d(e);let n=s();return m(n.onUpButtonMouseLeave())})("keydown",function(n){d(e);let o=s();return m(o.onUpButtonKeyDown(n))})("keyup",function(){d(e);let n=s();return m(n.onUpButtonKeyUp())}),u(2,zt,1,2,"span",12)(3,Ht,3,2,"ng-container",2),g(),_(4,"button",11),C("mousedown",function(n){d(e);let o=s();return m(o.onDownButtonMouseDown(n))})("mouseup",function(){d(e);let n=s();return m(n.onDownButtonMouseUp())})("mouseleave",function(){d(e);let n=s();return m(n.onDownButtonMouseLeave())})("keydown",function(n){d(e);let o=s();return m(o.onDownButtonKeyDown(n))})("keyup",function(){d(e);let n=s();return m(n.onDownButtonKeyUp())}),u(5,Ut,1,2,"span",12)(6,Wt,3,2,"ng-container",2),g()()}if(t&2){let e=s();f("data-pc-section","buttonGroup"),p(),D(e.incrementButtonClass),l("ngClass",e._incrementButtonClass)("disabled",e.disabled),f("aria-hidden",!0)("data-pc-section","incrementbutton"),p(),l("ngIf",e.incrementButtonIcon),p(),l("ngIf",!e.incrementButtonIcon),p(),D(e.decrementButtonClass),l("ngClass",e._decrementButtonClass)("disabled",e.disabled),f("aria-hidden",!0)("data-pc-section","decrementbutton"),p(),l("ngIf",e.decrementButtonIcon),p(),l("ngIf",!e.decrementButtonIcon)}}function Yt(t,r){if(t&1&&S(0,"span",13),t&2){let e=s(2);l("ngClass",e.incrementButtonIcon),f("data-pc-section","incrementbuttonicon")}}function Xt(t,r){t&1&&S(0,"AngleUpIcon"),t&2&&f("data-pc-section","incrementbuttonicon")}function en(t,r){}function tn(t,r){t&1&&u(0,en,0,0,"ng-template")}function nn(t,r){if(t&1&&(k(0),u(1,Xt,1,1,"AngleUpIcon",2)(2,tn,1,0,null,9),O()),t&2){let e=s(2);p(),l("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),p(),l("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function on(t,r){if(t&1){let e=v();_(0,"button",11),C("mousedown",function(n){d(e);let o=s();return m(o.onUpButtonMouseDown(n))})("mouseup",function(){d(e);let n=s();return m(n.onUpButtonMouseUp())})("mouseleave",function(){d(e);let n=s();return m(n.onUpButtonMouseLeave())})("keydown",function(n){d(e);let o=s();return m(o.onUpButtonKeyDown(n))})("keyup",function(){d(e);let n=s();return m(n.onUpButtonKeyUp())}),u(1,Yt,1,2,"span",12)(2,nn,3,2,"ng-container",2),g()}if(t&2){let e=s();D(e.incrementButtonClass),l("ngClass",e._incrementButtonClass)("disabled",e.disabled),f("aria-hidden",!0)("data-pc-section","incrementbutton"),p(),l("ngIf",e.incrementButtonIcon),p(),l("ngIf",!e.incrementButtonIcon)}}function an(t,r){if(t&1&&S(0,"span",13),t&2){let e=s(2);l("ngClass",e.decrementButtonIcon),f("data-pc-section","decrementbuttonicon")}}function rn(t,r){t&1&&S(0,"AngleDownIcon"),t&2&&f("data-pc-section","decrementbuttonicon")}function ln(t,r){}function sn(t,r){t&1&&u(0,ln,0,0,"ng-template")}function pn(t,r){if(t&1&&(k(0),u(1,rn,1,1,"AngleDownIcon",2)(2,sn,1,0,null,9),O()),t&2){let e=s(2);p(),l("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),p(),l("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function cn(t,r){if(t&1){let e=v();_(0,"button",11),C("mousedown",function(n){d(e);let o=s();return m(o.onDownButtonMouseDown(n))})("mouseup",function(){d(e);let n=s();return m(n.onDownButtonMouseUp())})("mouseleave",function(){d(e);let n=s();return m(n.onDownButtonMouseLeave())})("keydown",function(n){d(e);let o=s();return m(o.onDownButtonKeyDown(n))})("keyup",function(){d(e);let n=s();return m(n.onDownButtonKeyUp())}),u(1,an,1,2,"span",12)(2,pn,3,2,"ng-container",2),g()}if(t&2){let e=s();D(e.decrementButtonClass),l("ngClass",e._decrementButtonClass)("disabled",e.disabled),f("aria-hidden",!0)("data-pc-section","decrementbutton"),p(),l("ngIf",e.decrementButtonIcon),p(),l("ngIf",!e.decrementButtonIcon)}}var un=({dt:t})=>`
1
+ import{a as Ct}from"./chunk-TOWVTOFV.js";import{a as pt,b as ct,c as ut,d as dt,e as _t,f as gt}from"./chunk-EYCYL6AL.js";import{a as mt}from"./chunk-3YXP5Q5V.js";import{a as yt}from"./chunk-B7E3DL2Y.js";import{a as bt,b as xt,c as It,d as wt}from"./chunk-H6BFHXJX.js";import{a as ft}from"./chunk-MHBOKOSN.js";import{b as Fe}from"./chunk-S6TMUVGC.js";import{a as Pe}from"./chunk-PPWHSAY6.js";import{b as ht}from"./chunk-PB3U4CET.js";import{a as Ve,c as Ee}from"./chunk-WEJYVCCX.js";import{a as te}from"./chunk-AAJJTF33.js";import{$ as rt,B as tt,E as nt,N as it,P as Ne,Q as ot,S as ke,T as ce,U as at,X as Ae,ca as lt,e as Ye,fa as st,ja as H,ka as M,la as Oe,s as pe,sa as ue,t as q,v as Xe,w as et}from"./chunk-3PYW74LR.js";import{D as Je,a as Se,g as je,h as Ze,o as We}from"./chunk-P7HKWFZT.js";import{$a as p,$b as y,Ba as Ke,Db as $e,Fa as P,Fc as K,Ga as qe,Ib as _,Jb as g,Kb as S,Lb as k,Ma as G,Mb as O,Mc as h,Nb as F,Nc as L,Ob as v,Pc as _e,Qb as C,Qc as Ge,Rb as s,Wc as W,Yb as T,Yc as ve,Zb as $,Zc as J,_b as b,ad as Y,bd as X,db as de,dc as le,ec as R,fc as Q,gc as me,ia as ye,ja as ne,jc as Ie,jd as ee,ka as ie,kb as j,kc as we,lb as ae,lc as Ce,na as oe,ob as Z,pc as se,qb as u,qc as Te,rc as V,sc as Re,tc as Ue,ua as xe,ub as f,va as d,vb as l,wa as m,wb as He,yb as re,za as U,zb as D}from"./chunk-DZT5XHBQ.js";import{a as fe,b as be}from"./chunk-7DCB7DB2.js";var Ft=["clearicon"],Lt=["incrementbuttonicon"],Dt=["decrementbuttonicon"],Mt=["input"];function Bt(t,r){if(t&1){let e=v();_(0,"TimesIcon",7),C("click",function(){d(e);let n=s(2);return m(n.clear())}),g()}t&2&&(l("ngClass","p-inputnumber-clear-icon"),f("data-pc-section","clearIcon"))}function $t(t,r){}function Rt(t,r){t&1&&u(0,$t,0,0,"ng-template")}function Nt(t,r){if(t&1){let e=v();_(0,"span",8),C("click",function(){d(e);let n=s(2);return m(n.clear())}),u(1,Rt,1,0,null,9),g()}if(t&2){let e=s(2);f("data-pc-section","clearIcon"),p(),l("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function At(t,r){if(t&1&&(k(0),u(1,Bt,1,2,"TimesIcon",5)(2,Nt,2,2,"span",6),O()),t&2){let e=s();p(),l("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),p(),l("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function zt(t,r){if(t&1&&S(0,"span",13),t&2){let e=s(2);l("ngClass",e.incrementButtonIcon),f("data-pc-section","incrementbuttonicon")}}function Qt(t,r){t&1&&S(0,"AngleUpIcon"),t&2&&f("data-pc-section","incrementbuttonicon")}function Kt(t,r){}function qt(t,r){t&1&&u(0,Kt,0,0,"ng-template")}function Ht(t,r){if(t&1&&(k(0),u(1,Qt,1,1,"AngleUpIcon",2)(2,qt,1,0,null,9),O()),t&2){let e=s(2);p(),l("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),p(),l("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function Ut(t,r){if(t&1&&S(0,"span",13),t&2){let e=s(2);l("ngClass",e.decrementButtonIcon),f("data-pc-section","decrementbuttonicon")}}function Gt(t,r){t&1&&S(0,"AngleDownIcon"),t&2&&f("data-pc-section","decrementbuttonicon")}function jt(t,r){}function Zt(t,r){t&1&&u(0,jt,0,0,"ng-template")}function Wt(t,r){if(t&1&&(k(0),u(1,Gt,1,1,"AngleDownIcon",2)(2,Zt,1,0,null,9),O()),t&2){let e=s(2);p(),l("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),p(),l("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function Jt(t,r){if(t&1){let e=v();_(0,"span",10)(1,"button",11),C("mousedown",function(n){d(e);let o=s();return m(o.onUpButtonMouseDown(n))})("mouseup",function(){d(e);let n=s();return m(n.onUpButtonMouseUp())})("mouseleave",function(){d(e);let n=s();return m(n.onUpButtonMouseLeave())})("keydown",function(n){d(e);let o=s();return m(o.onUpButtonKeyDown(n))})("keyup",function(){d(e);let n=s();return m(n.onUpButtonKeyUp())}),u(2,zt,1,2,"span",12)(3,Ht,3,2,"ng-container",2),g(),_(4,"button",11),C("mousedown",function(n){d(e);let o=s();return m(o.onDownButtonMouseDown(n))})("mouseup",function(){d(e);let n=s();return m(n.onDownButtonMouseUp())})("mouseleave",function(){d(e);let n=s();return m(n.onDownButtonMouseLeave())})("keydown",function(n){d(e);let o=s();return m(o.onDownButtonKeyDown(n))})("keyup",function(){d(e);let n=s();return m(n.onDownButtonKeyUp())}),u(5,Ut,1,2,"span",12)(6,Wt,3,2,"ng-container",2),g()()}if(t&2){let e=s();f("data-pc-section","buttonGroup"),p(),D(e.incrementButtonClass),l("ngClass",e._incrementButtonClass)("disabled",e.disabled),f("aria-hidden",!0)("data-pc-section","incrementbutton"),p(),l("ngIf",e.incrementButtonIcon),p(),l("ngIf",!e.incrementButtonIcon),p(),D(e.decrementButtonClass),l("ngClass",e._decrementButtonClass)("disabled",e.disabled),f("aria-hidden",!0)("data-pc-section","decrementbutton"),p(),l("ngIf",e.decrementButtonIcon),p(),l("ngIf",!e.decrementButtonIcon)}}function Yt(t,r){if(t&1&&S(0,"span",13),t&2){let e=s(2);l("ngClass",e.incrementButtonIcon),f("data-pc-section","incrementbuttonicon")}}function Xt(t,r){t&1&&S(0,"AngleUpIcon"),t&2&&f("data-pc-section","incrementbuttonicon")}function en(t,r){}function tn(t,r){t&1&&u(0,en,0,0,"ng-template")}function nn(t,r){if(t&1&&(k(0),u(1,Xt,1,1,"AngleUpIcon",2)(2,tn,1,0,null,9),O()),t&2){let e=s(2);p(),l("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),p(),l("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function on(t,r){if(t&1){let e=v();_(0,"button",11),C("mousedown",function(n){d(e);let o=s();return m(o.onUpButtonMouseDown(n))})("mouseup",function(){d(e);let n=s();return m(n.onUpButtonMouseUp())})("mouseleave",function(){d(e);let n=s();return m(n.onUpButtonMouseLeave())})("keydown",function(n){d(e);let o=s();return m(o.onUpButtonKeyDown(n))})("keyup",function(){d(e);let n=s();return m(n.onUpButtonKeyUp())}),u(1,Yt,1,2,"span",12)(2,nn,3,2,"ng-container",2),g()}if(t&2){let e=s();D(e.incrementButtonClass),l("ngClass",e._incrementButtonClass)("disabled",e.disabled),f("aria-hidden",!0)("data-pc-section","incrementbutton"),p(),l("ngIf",e.incrementButtonIcon),p(),l("ngIf",!e.incrementButtonIcon)}}function an(t,r){if(t&1&&S(0,"span",13),t&2){let e=s(2);l("ngClass",e.decrementButtonIcon),f("data-pc-section","decrementbuttonicon")}}function rn(t,r){t&1&&S(0,"AngleDownIcon"),t&2&&f("data-pc-section","decrementbuttonicon")}function ln(t,r){}function sn(t,r){t&1&&u(0,ln,0,0,"ng-template")}function pn(t,r){if(t&1&&(k(0),u(1,rn,1,1,"AngleDownIcon",2)(2,sn,1,0,null,9),O()),t&2){let e=s(2);p(),l("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),p(),l("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function cn(t,r){if(t&1){let e=v();_(0,"button",11),C("mousedown",function(n){d(e);let o=s();return m(o.onDownButtonMouseDown(n))})("mouseup",function(){d(e);let n=s();return m(n.onDownButtonMouseUp())})("mouseleave",function(){d(e);let n=s();return m(n.onDownButtonMouseLeave())})("keydown",function(n){d(e);let o=s();return m(o.onDownButtonKeyDown(n))})("keyup",function(){d(e);let n=s();return m(n.onDownButtonKeyUp())}),u(1,an,1,2,"span",12)(2,pn,3,2,"ng-container",2),g()}if(t&2){let e=s();D(e.decrementButtonClass),l("ngClass",e._decrementButtonClass)("disabled",e.disabled),f("aria-hidden",!0)("data-pc-section","decrementbutton"),p(),l("ngIf",e.decrementButtonIcon),p(),l("ngIf",!e.decrementButtonIcon)}}var un=({dt:t})=>`
2
2
  .p-inputnumber {
3
3
  display: inline-flex;
4
4
  position: relative;