dealpos 25.35.2 → 25.35.3

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 (79) hide show
  1. package/browser/{chunk-FY4JABYL.js → chunk-2XMIL3M5.js} +1 -1
  2. package/browser/{chunk-LKZE2HD4.js → chunk-32XPQS72.js} +1 -1
  3. package/browser/{chunk-ZYTLUHOS.js → chunk-3BF3LB6Z.js} +1 -1
  4. package/browser/{chunk-VMIXOKE7.js → chunk-3T3RRVKX.js} +1 -1
  5. package/browser/{chunk-BBRBME3A.js → chunk-3Z3TRQBS.js} +1 -1
  6. package/browser/{chunk-ETHIPTBJ.js → chunk-4E4L6WXO.js} +1 -1
  7. package/browser/{chunk-45Q3TR52.js → chunk-5LVF3GQO.js} +1 -1
  8. package/browser/{chunk-M2DBAY4P.js → chunk-6DJNKKNB.js} +1 -1
  9. package/browser/{chunk-LHGABVF6.js → chunk-7AAAKDTU.js} +2 -2
  10. package/browser/{chunk-LYOMQKFY.js → chunk-7BDVBLHM.js} +1 -1
  11. package/browser/{chunk-2BRCOLHG.js → chunk-7IVZ7O4B.js} +1 -1
  12. package/browser/{chunk-LFRQUM6J.js → chunk-7J6JNI44.js} +1 -1
  13. package/browser/{chunk-4DIUJNZF.js → chunk-AAVH5EBY.js} +1 -1
  14. package/browser/{chunk-FBTUV7TY.js → chunk-AK6EELSP.js} +1 -1
  15. package/browser/{chunk-SVW3DCFV.js → chunk-BGQQUPTZ.js} +1 -1
  16. package/browser/{chunk-A477JKU4.js → chunk-BN2DUB4S.js} +1 -1
  17. package/browser/{chunk-XGQGO4PE.js → chunk-BUFUGEKP.js} +1 -1
  18. package/browser/{chunk-U7VNF37P.js → chunk-BXFKD2CO.js} +1 -1
  19. package/browser/{chunk-ZCKT34V7.js → chunk-BZAN6DNV.js} +1 -1
  20. package/browser/{chunk-AYEQLVMX.js → chunk-CESIM7I2.js} +1 -1
  21. package/browser/{chunk-EXCJNRRJ.js → chunk-CUD4PHJT.js} +1 -1
  22. package/browser/{chunk-E5UK2WMM.js → chunk-DDSUKJHT.js} +1 -1
  23. package/browser/{chunk-M7KP6PSY.js → chunk-DHQUQTIV.js} +1 -1
  24. package/browser/{chunk-GK45LVUY.js → chunk-DKX7YVH4.js} +1 -1
  25. package/browser/{chunk-OZOAAIBM.js → chunk-DO6W6BG2.js} +1 -1
  26. package/browser/{chunk-73ESQDPI.js → chunk-DU2U47CB.js} +1 -1
  27. package/browser/{chunk-5IY3H7NG.js → chunk-E7SOAHON.js} +1 -1
  28. package/browser/{chunk-6CUC5ZVY.js → chunk-EIPWN4ZG.js} +1 -1
  29. package/browser/{chunk-J4SLL7XI.js → chunk-F3QKO3WX.js} +1 -1
  30. package/browser/{chunk-WDIJOVDQ.js → chunk-FQSQUAUB.js} +1 -1
  31. package/browser/{chunk-NT4HXAUQ.js → chunk-GIMMGWIY.js} +1 -1
  32. package/browser/chunk-GLXNXL3M.js +1 -0
  33. package/browser/chunk-GWY532ZF.js +3 -0
  34. package/browser/{chunk-2ULGMZHE.js → chunk-H24HNIUV.js} +1 -1
  35. package/browser/{chunk-6E4UKP3I.js → chunk-H5EACBML.js} +2 -2
  36. package/browser/chunk-H7DCK5WJ.js +1 -0
  37. package/browser/{chunk-RXY2UMNO.js → chunk-HJZUPJW2.js} +1 -1
  38. package/browser/{chunk-GFFJDDRS.js → chunk-HKACPPVL.js} +1 -1
  39. package/browser/{chunk-HV7GI3KE.js → chunk-HSQKKFE6.js} +1 -1
  40. package/browser/{chunk-66WXWMUG.js → chunk-IWQEXFGO.js} +1 -1
  41. package/browser/{chunk-XXGDZ22Y.js → chunk-JRMGNV6W.js} +1 -1
  42. package/browser/chunk-JUDTCQVV.js +1 -0
  43. package/browser/{chunk-W64M5WBH.js → chunk-K4YUTEMS.js} +1 -1
  44. package/browser/{chunk-3GB5DSK3.js → chunk-KHHM6IFR.js} +1 -1
  45. package/browser/{chunk-33JZH2UR.js → chunk-KM4YGIPJ.js} +1 -1
  46. package/browser/{chunk-CNY7II6H.js → chunk-KQLFNIFZ.js} +1 -1
  47. package/browser/{chunk-7NMXZ55P.js → chunk-LS4LCNAF.js} +2 -2
  48. package/browser/{chunk-SO3WWYN3.js → chunk-MERQX2AF.js} +1 -1
  49. package/browser/{chunk-4YPJAUSY.js → chunk-MLMSIZGP.js} +1 -1
  50. package/browser/{chunk-FOVCORMR.js → chunk-MUFGLBTW.js} +1 -1
  51. package/browser/{chunk-WDS6MTSX.js → chunk-MXRJZC7D.js} +2 -2
  52. package/browser/{chunk-V4OYKDE2.js → chunk-NHVQ6BHI.js} +1 -1
  53. package/browser/{chunk-LXZS75G2.js → chunk-NLWPMDWU.js} +1 -1
  54. package/browser/{chunk-WOBW4V44.js → chunk-NMGT5PYX.js} +1 -1
  55. package/browser/{chunk-CZTNOFUC.js → chunk-NQPOGM3H.js} +1 -1
  56. package/browser/{chunk-Q76KX5JJ.js → chunk-NY4SVPPU.js} +1 -1
  57. package/browser/{chunk-Q5YFG526.js → chunk-O3IGBF5Z.js} +1 -1
  58. package/browser/{chunk-F3ZJVCRK.js → chunk-OFNXPEBH.js} +1 -1
  59. package/browser/{chunk-P5KSSZK7.js → chunk-P4TUOMJ4.js} +1 -1
  60. package/browser/{chunk-7B7ON5E6.js → chunk-QZFGYG5J.js} +1 -1
  61. package/browser/{chunk-K76G23WC.js → chunk-RJSPJ6CG.js} +1 -1
  62. package/browser/{chunk-Z7WYC46Q.js → chunk-RYONOB6O.js} +1 -1
  63. package/browser/{chunk-VDKUDQZO.js → chunk-S7QH3NMD.js} +1 -1
  64. package/browser/{chunk-NPHAQCON.js → chunk-SJ7OFVH5.js} +1 -1
  65. package/browser/{chunk-5MGHIIE6.js → chunk-SKFIRYCU.js} +2 -2
  66. package/browser/{chunk-HNBLWEAJ.js → chunk-TYIDA4YO.js} +1 -1
  67. package/browser/{chunk-VJWRLXE4.js → chunk-W2TSDYEA.js} +1 -1
  68. package/browser/{chunk-4YAMWP7V.js → chunk-W7HVLC6V.js} +1 -1
  69. package/browser/{chunk-O7H6QE5A.js → chunk-XEKUUP6Y.js} +1 -1
  70. package/browser/{chunk-X4VB4DKS.js → chunk-YCPSIUQ3.js} +1 -1
  71. package/browser/{chunk-7VKHUEU6.js → chunk-YGUNDEOT.js} +1 -1
  72. package/browser/{chunk-LYGTJSME.js → chunk-ZFMK7BOT.js} +1 -1
  73. package/browser/index.html +2 -2
  74. package/browser/{main-WYOICQDK.js → main-XQZCWN5T.js} +2 -2
  75. package/package.json +1 -1
  76. package/browser/chunk-INDKSR3O.js +0 -3
  77. package/browser/chunk-LI3MYO4W.js +0 -1
  78. package/browser/chunk-PDHJSRKI.js +0 -1
  79. package/browser/chunk-R3IC3THI.js +0 -1
@@ -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-7BDVBLHM.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 G,b as U}from"./chunk-3USDNSPA.js";import{h as A,i as H}from"./chunk-SO3WWYN3.js";import"./chunk-ETHIPTBJ.js";import{a as j,b as k}from"./chunk-M7KP6PSY.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import"./chunk-677WPFLK.js";import"./chunk-CIBQBSM6.js";import{P as B}from"./chunk-L2RZWAX3.js";import"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-AAJJTF33.js";import"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import"./chunk-P7HKWFZT.js";import"./chunk-HV7GI3KE.js";import"./chunk-LYOMQKFY.js";import{d as w}from"./chunk-AHCRE4GP.js";import"./chunk-4YAMWP7V.js";import{$a as l,Ac as L,Ib as r,Jb as a,Kb as m,Od as _,Rb as P,Rd as x,Td as $,Y as I,Yd as q,Zc as N,aa as g,cd as T,db as c,ec as s,fa as y,jd as V,kb as h,mc as F,na as u,nc as E,ob as C,oc as D,qb as b,qc as R,rc as M,t as v,u as S,vb as o,zc as O}from"./chunk-DZT5XHBQ.js";import{a as d,b as f}from"./chunk-7DCB7DB2.js";var J=()=>["/menu/Logistics/Setup/Courier/Form"],K=n=>({ID:n});function Q(n,z){if(n&1&&(r(0,"a",13),m(1,"i",14),s(2,"Edit"),a()),n&2){P();let e=D(0);o("routerLink",R(2,J))("queryParams",M(3,K,e==null||e.Form==null?null:e.Form.ID))}}var Y=class n extends j{constructor(e,t){super(e);this.pageSetupService=e;this.role=t;this.initCourierInfo()}httpService=u(q);activeRoute=u(_);courierInfo$;ngOnInit(){}initCourierInfo(){this.courierInfo$=S([this.menuData$,this.activeRoute.queryParams]).pipe(g(([e,t])=>this.httpService.get(`${B.GetCourierInfo}/${t.ID}`)),v(e=>{let t=e?.Form?.EntityName?e?.Form?.EntityName?.join(", "):"";return e.Form=f(d({},e.Form),{Entity:t}),e}),y(e=>{this.menuData.H=e?.PageTitle||"Courier Info"}),I(1))}static \u0275fac=function(t){return new(t||n)(c(k),c(w))};static \u0275cmp=h({type:n,selectors:[["app-courier-info"]],features:[C],decls:24,vars:10,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown"],["class","btn btn-outline-secondary me-3","role","button","matTooltipPosition","above","matTooltip","Edit",3,"routerLink","queryParams",4,"ngIf"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-6"],[1,"form-floating-outline"],["labelValue","Name",3,"inputValue"],["labelValue","Suspend",3,"inputValue"],["labelValue","Outlets",3,"inputValue"],["role","button","matTooltipPosition","above","matTooltip","Edit",1,"btn","btn-outline-secondary","me-3",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-solid","fa-pen-to-square","me-3"]],template:function(t,p){if(t&1&&(F(0),O(1,"async"),r(2,"mainpanel-cmp",0)(3,"actions"),b(4,Q,3,5,"a",1),a(),r(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"h3"),s(12,"General"),a()(),r(13,"div",7)(14,"div",3)(15,"div",8)(16,"div",9),m(17,"POS-info-page-input",10),a()(),r(18,"div",8)(19,"div",9),m(20,"POS-info-page-input",11),a()(),r(21,"div",8)(22,"div",9),m(23,"POS-info-page-input",12),a()()()()()()()()()()),t&2){let i=E(L(1,7,p.courierInfo$));l(2),o("pageData",p.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),o("ngIf",p.role.logistic.Edit),l(13),o("inputValue",i==null||i.Form==null?null:i.Form.Name),l(3),o("inputValue",!(i==null||i.Form==null)&&i.Form.Bin?"Yes":"No"),l(3),o("inputValue",i==null||i.Form==null?null:i.Form.Entity)}},dependencies:[V,N,T,H,A,$,x,U,G],encapsulation:2})};export{Y as CourierInfoComponent};
1
+ import{a as G,b as U}from"./chunk-3USDNSPA.js";import{h as A,i as H}from"./chunk-MERQX2AF.js";import"./chunk-4E4L6WXO.js";import{a as j,b as k}from"./chunk-DHQUQTIV.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import"./chunk-677WPFLK.js";import"./chunk-CIBQBSM6.js";import{P as B}from"./chunk-L2RZWAX3.js";import"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-AAJJTF33.js";import"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import"./chunk-P7HKWFZT.js";import"./chunk-HSQKKFE6.js";import"./chunk-7BDVBLHM.js";import{d as w}from"./chunk-AHCRE4GP.js";import"./chunk-W7HVLC6V.js";import{$a as l,Ac as L,Ib as r,Jb as a,Kb as m,Od as _,Rb as P,Rd as x,Td as $,Y as I,Yd as q,Zc as N,aa as g,cd as T,db as c,ec as s,fa as y,jd as V,kb as h,mc as F,na as u,nc as E,ob as C,oc as D,qb as b,qc as R,rc as M,t as v,u as S,vb as o,zc as O}from"./chunk-DZT5XHBQ.js";import{a as d,b as f}from"./chunk-7DCB7DB2.js";var J=()=>["/menu/Logistics/Setup/Courier/Form"],K=n=>({ID:n});function Q(n,z){if(n&1&&(r(0,"a",13),m(1,"i",14),s(2,"Edit"),a()),n&2){P();let e=D(0);o("routerLink",R(2,J))("queryParams",M(3,K,e==null||e.Form==null?null:e.Form.ID))}}var Y=class n extends j{constructor(e,t){super(e);this.pageSetupService=e;this.role=t;this.initCourierInfo()}httpService=u(q);activeRoute=u(_);courierInfo$;ngOnInit(){}initCourierInfo(){this.courierInfo$=S([this.menuData$,this.activeRoute.queryParams]).pipe(g(([e,t])=>this.httpService.get(`${B.GetCourierInfo}/${t.ID}`)),v(e=>{let t=e?.Form?.EntityName?e?.Form?.EntityName?.join(", "):"";return e.Form=f(d({},e.Form),{Entity:t}),e}),y(e=>{this.menuData.H=e?.PageTitle||"Courier Info"}),I(1))}static \u0275fac=function(t){return new(t||n)(c(k),c(w))};static \u0275cmp=h({type:n,selectors:[["app-courier-info"]],features:[C],decls:24,vars:10,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown"],["class","btn btn-outline-secondary me-3","role","button","matTooltipPosition","above","matTooltip","Edit",3,"routerLink","queryParams",4,"ngIf"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-6"],[1,"form-floating-outline"],["labelValue","Name",3,"inputValue"],["labelValue","Suspend",3,"inputValue"],["labelValue","Outlets",3,"inputValue"],["role","button","matTooltipPosition","above","matTooltip","Edit",1,"btn","btn-outline-secondary","me-3",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-solid","fa-pen-to-square","me-3"]],template:function(t,p){if(t&1&&(F(0),O(1,"async"),r(2,"mainpanel-cmp",0)(3,"actions"),b(4,Q,3,5,"a",1),a(),r(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"h3"),s(12,"General"),a()(),r(13,"div",7)(14,"div",3)(15,"div",8)(16,"div",9),m(17,"POS-info-page-input",10),a()(),r(18,"div",8)(19,"div",9),m(20,"POS-info-page-input",11),a()(),r(21,"div",8)(22,"div",9),m(23,"POS-info-page-input",12),a()()()()()()()()()()),t&2){let i=E(L(1,7,p.courierInfo$));l(2),o("pageData",p.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),o("ngIf",p.role.logistic.Edit),l(13),o("inputValue",i==null||i.Form==null?null:i.Form.Name),l(3),o("inputValue",!(i==null||i.Form==null)&&i.Form.Bin?"Yes":"No"),l(3),o("inputValue",i==null||i.Form==null?null:i.Form.Entity)}},dependencies:[V,N,T,H,A,$,x,U,G],encapsulation:2})};export{Y as CourierInfoComponent};