dealpos 25.37.1 → 25.37.2

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 (126) hide show
  1. package/browser/{chunk-ENKSQCL7.js → chunk-2CJDU4L3.js} +1 -1
  2. package/browser/{chunk-HWXWAUNO.js → chunk-2LHNA5AI.js} +1 -1
  3. package/browser/chunk-2URCBLJ7.js +1 -0
  4. package/browser/{chunk-XF6535OT.js → chunk-2Z5J6Q7M.js} +1 -1
  5. package/browser/{chunk-RRP7MA2F.js → chunk-4ASACD3Q.js} +1 -1
  6. package/browser/{chunk-6FHIOHE3.js → chunk-4PBQC5P6.js} +1 -1
  7. package/browser/{chunk-FMW2LGMI.js → chunk-5432OTF7.js} +2 -2
  8. package/browser/{chunk-KSKYFRB7.js → chunk-5A5MC6CY.js} +1 -1
  9. package/browser/{chunk-S3TDDBTK.js → chunk-5G6GUMV7.js} +1 -1
  10. package/browser/{chunk-AUJWQ5CX.js → chunk-5MV4W4N6.js} +1 -1
  11. package/browser/{chunk-XA5DJGAJ.js → chunk-5WG74DJT.js} +1 -1
  12. package/browser/{chunk-PGLMYP4S.js → chunk-5WHPKSFW.js} +1 -1
  13. package/browser/{chunk-EIMAZRK7.js → chunk-5XLUITBY.js} +1 -1
  14. package/browser/{chunk-7BVECXK7.js → chunk-624G6F5C.js} +2 -2
  15. package/browser/{chunk-5IZUAM42.js → chunk-6FKZY7NZ.js} +1 -1
  16. package/browser/{chunk-44QE6FET.js → chunk-6G2IT6WP.js} +5 -5
  17. package/browser/{chunk-NWOTM7DD.js → chunk-6HQRARSZ.js} +1 -1
  18. package/browser/{chunk-423RFMVL.js → chunk-6JCU4GNE.js} +1 -1
  19. package/browser/{chunk-KFFKOF5G.js → chunk-6WHOPHRH.js} +1 -1
  20. package/browser/{chunk-YE6Q4TXJ.js → chunk-72KIMU7G.js} +1 -1
  21. package/browser/{chunk-M32CH5AK.js → chunk-76T3TRG4.js} +1 -1
  22. package/browser/{chunk-5YW42TCN.js → chunk-7IFXHB4V.js} +1 -1
  23. package/browser/{chunk-XAEX53FJ.js → chunk-7ZD2267X.js} +1 -1
  24. package/browser/{chunk-PFFR3I5J.js → chunk-A4RN7PGI.js} +1 -1
  25. package/browser/{chunk-U652AHGM.js → chunk-AASLGLOM.js} +1 -1
  26. package/browser/{chunk-ONCZXBYC.js → chunk-ACGNZNFL.js} +1 -1
  27. package/browser/{chunk-D5QA72I4.js → chunk-AHC27CIW.js} +1 -1
  28. package/browser/{chunk-X5I6AL2S.js → chunk-AKPQZTEV.js} +1 -1
  29. package/browser/{chunk-FTUOJINV.js → chunk-AQH2TWJK.js} +1 -1
  30. package/browser/{chunk-4G4GU32S.js → chunk-AUWH2QWX.js} +1 -1
  31. package/browser/{chunk-QXQKVFD2.js → chunk-AXEM33OC.js} +1 -1
  32. package/browser/{chunk-KRG67JVZ.js → chunk-BO2Z4RGZ.js} +1 -1
  33. package/browser/{chunk-R52M4TBM.js → chunk-BQJ7JR25.js} +1 -1
  34. package/browser/{chunk-Y6ZOOZLL.js → chunk-C2LSF7S2.js} +1 -1
  35. package/browser/{chunk-2VX2IMUY.js → chunk-CEOPBVEH.js} +1 -1
  36. package/browser/chunk-CFWQ2KY4.js +1 -0
  37. package/browser/{chunk-DODUIG3I.js → chunk-CJJZFHED.js} +1 -1
  38. package/browser/{chunk-UTBVTQLT.js → chunk-CZ2RXLZJ.js} +3 -3
  39. package/browser/{chunk-XDV6DITH.js → chunk-D5JRP2GG.js} +1 -1
  40. package/browser/{chunk-LJD3LZP3.js → chunk-DGPCJB6P.js} +1 -1
  41. package/browser/{chunk-GBAG7EYS.js → chunk-DSIUUK4N.js} +1 -1
  42. package/browser/chunk-DSLMCH3G.js +1 -0
  43. package/browser/{chunk-JH5ADEFC.js → chunk-DTFL44UO.js} +1 -1
  44. package/browser/{chunk-2QRHEWZG.js → chunk-DZ35QZ6L.js} +1 -1
  45. package/browser/{chunk-LPDARX3E.js → chunk-E3GQ2VEU.js} +1 -1
  46. package/browser/{chunk-JW5NCAZI.js → chunk-E52CQ3NY.js} +1 -1
  47. package/browser/{chunk-ECLYJ54K.js → chunk-EANTJIRK.js} +1 -1
  48. package/browser/{chunk-YAXAFRGD.js → chunk-ELFCO6CE.js} +1 -1
  49. package/browser/{chunk-WBTANXPU.js → chunk-EMYSF46P.js} +1 -1
  50. package/browser/{chunk-7WLHEC5P.js → chunk-EQT4SGSU.js} +1 -1
  51. package/browser/{chunk-64CSHXRW.js → chunk-FJULFWMX.js} +1 -1
  52. package/browser/{chunk-UGXIEPP6.js → chunk-FLEDIXNB.js} +1 -1
  53. package/browser/{chunk-7PXSKRVE.js → chunk-FY5VLGQC.js} +1 -1
  54. package/browser/chunk-G7B75J34.js +24 -0
  55. package/browser/{chunk-MLI2YX5E.js → chunk-GAPY6IUE.js} +1 -1
  56. package/browser/{chunk-UEZOI7KW.js → chunk-GTRQV3VX.js} +1 -1
  57. package/browser/{chunk-UBVYDOUF.js → chunk-H4SCBKWD.js} +1 -1
  58. package/browser/{chunk-PYJAEFZM.js → chunk-HHIBVND5.js} +1 -1
  59. package/browser/{chunk-AMSDLTX5.js → chunk-HNX747EE.js} +1 -1
  60. package/browser/{chunk-CCEXOHK3.js → chunk-HPGHC3LU.js} +1 -1
  61. package/browser/{chunk-SJGFFKA7.js → chunk-HUAA5QUE.js} +1 -1
  62. package/browser/{chunk-2DMQVIBE.js → chunk-I3EBD4BM.js} +1 -1
  63. package/browser/{chunk-OENSRVQV.js → chunk-IWIKKZRE.js} +1 -1
  64. package/browser/{chunk-I2W5O5AZ.js → chunk-IWJJRPWB.js} +1 -1
  65. package/browser/{chunk-S446OPOL.js → chunk-J7WZSDR6.js} +1 -1
  66. package/browser/{chunk-VOPP62W6.js → chunk-JDDFGHZC.js} +1 -1
  67. package/browser/{chunk-645U43U6.js → chunk-JIYAVK6J.js} +1 -1
  68. package/browser/chunk-JZ7HH3AD.js +1 -0
  69. package/browser/{chunk-BRRQE5KZ.js → chunk-K463QEUH.js} +1 -1
  70. package/browser/{chunk-ONWNB7LP.js → chunk-KEU6GUET.js} +1 -1
  71. package/browser/{chunk-AZRT7REO.js → chunk-KOWDWAD2.js} +1 -1
  72. package/browser/{chunk-U64KP4NG.js → chunk-KZU22HGO.js} +1 -1
  73. package/browser/{chunk-OJLB3EQU.js → chunk-L4VLBO5X.js} +1 -1
  74. package/browser/{chunk-SG2KVUZL.js → chunk-L6G7INVR.js} +2 -2
  75. package/browser/{chunk-2ATNLWJL.js → chunk-LD5LH2YH.js} +1 -1
  76. package/browser/{chunk-2I6DN732.js → chunk-LK3EGJFT.js} +1 -1
  77. package/browser/{chunk-RVAZBTIQ.js → chunk-LPFP4NOL.js} +1 -1
  78. package/browser/{chunk-2GYHYM6C.js → chunk-LUMOPVCB.js} +1 -1
  79. package/browser/{chunk-IPMVP56X.js → chunk-M5R3Y6BD.js} +1 -1
  80. package/browser/{chunk-YOD6EXLJ.js → chunk-MH3LXNOS.js} +2 -2
  81. package/browser/{chunk-6M6KXCIT.js → chunk-N276B6EI.js} +1 -1
  82. package/browser/{chunk-GY4HUPHP.js → chunk-N2FNF62O.js} +1 -1
  83. package/browser/{chunk-C247MHLB.js → chunk-N3XWBPCL.js} +1 -1
  84. package/browser/chunk-NDQYXKAN.js +1 -0
  85. package/browser/{chunk-AYCCLOJL.js → chunk-ORFYFJKS.js} +1 -1
  86. package/browser/{chunk-ZRBPW7ZZ.js → chunk-OXLXIWTF.js} +1 -1
  87. package/browser/{chunk-BIBIASY7.js → chunk-PT4Y2VNN.js} +1 -1
  88. package/browser/{chunk-LGW7XM6V.js → chunk-PXNAXAQB.js} +1 -1
  89. package/browser/{chunk-7ALQSEOZ.js → chunk-QRI23WCG.js} +1 -1
  90. package/browser/{chunk-GIVCDZC7.js → chunk-R5MMHEH6.js} +1 -1
  91. package/browser/{chunk-2TUSVIA7.js → chunk-RCW46J3Z.js} +1 -1
  92. package/browser/{chunk-LVPI72DU.js → chunk-SF3RHVSN.js} +1 -1
  93. package/browser/{chunk-VSZGQHVN.js → chunk-SOE2QU22.js} +1 -1
  94. package/browser/{chunk-UVQPPKQB.js → chunk-SZDICN4P.js} +1 -1
  95. package/browser/{chunk-BWWLIKSO.js → chunk-TDMU55LA.js} +1 -1
  96. package/browser/{chunk-3BR4PCS5.js → chunk-TOOIVKU3.js} +1 -1
  97. package/browser/{chunk-Y5GVVE7N.js → chunk-TPDNCYEZ.js} +1 -1
  98. package/browser/{chunk-BAH4UVJ5.js → chunk-UQKMHV26.js} +1 -1
  99. package/browser/{chunk-3FOZ56CA.js → chunk-UR37FTL2.js} +1 -1
  100. package/browser/{chunk-FJJZD2B7.js → chunk-UTHVS7YI.js} +4 -4
  101. package/browser/{chunk-SHZWWZ7H.js → chunk-V55A6VFC.js} +1 -1
  102. package/browser/{chunk-YNTAPAX4.js → chunk-VGHP2OV6.js} +1 -1
  103. package/browser/{chunk-4FZ77NFR.js → chunk-VWRUQ7XW.js} +1 -1
  104. package/browser/{chunk-3K4MFJZI.js → chunk-WF6K2YER.js} +1 -1
  105. package/browser/{chunk-CDTFGVVS.js → chunk-WUZXIQKO.js} +1 -1
  106. package/browser/{chunk-IBLGEDBH.js → chunk-X3P7SVC6.js} +1 -1
  107. package/browser/{chunk-ILTMDOAK.js → chunk-XNE22IC6.js} +1 -1
  108. package/browser/{chunk-PDNDXNJG.js → chunk-XOMO7AVU.js} +1 -1
  109. package/browser/{chunk-YYZDU5FZ.js → chunk-XQCKNZ75.js} +1 -1
  110. package/browser/{chunk-TIZ2EW3A.js → chunk-YFWHKWUO.js} +1 -1
  111. package/browser/{chunk-YBPDQGQC.js → chunk-YUSWA5RC.js} +1 -1
  112. package/browser/{chunk-SS2JHDFV.js → chunk-Z6TVE7B7.js} +1 -1
  113. package/browser/{chunk-BLS6POOW.js → chunk-ZAJBQGZU.js} +2 -2
  114. package/browser/{chunk-XK35I4BF.js → chunk-ZDJDS43F.js} +1 -1
  115. package/browser/{chunk-7KSMTJW6.js → chunk-ZLGNHROO.js} +1 -1
  116. package/browser/{chunk-2S4LF35V.js → chunk-ZWXGSLUJ.js} +1 -1
  117. package/browser/{chunk-D35OBUDE.js → chunk-ZZ7LHETD.js} +4 -4
  118. package/browser/index.html +2 -2
  119. package/browser/{main-2IQKAWBF.js → main-T6SFWIAO.js} +2 -2
  120. package/package.json +1 -1
  121. package/browser/chunk-53Y33SQN.js +0 -1
  122. package/browser/chunk-BEBJKGFP.js +0 -1
  123. package/browser/chunk-DCCRJE3O.js +0 -1
  124. package/browser/chunk-EGH7OT7P.js +0 -24
  125. package/browser/chunk-MQ5ESAAH.js +0 -1
  126. package/browser/chunk-TUHKOEXH.js +0 -1
@@ -1 +1 @@
1
- import{a as xe}from"./chunk-UZKYLAUE.js";import{d as we,e as Se}from"./chunk-SHZWWZ7H.js";import{B as V,D as L,u as he,v as Me,w as ye}from"./chunk-7PXSKRVE.js";import{O as ve,P as G}from"./chunk-IX5URHI7.js";import{d as R}from"./chunk-LPGMI3V2.js";import{e as _e,f as be}from"./chunk-D35OBUDE.js";import{A as pe,B as ue,F as ge,G as Ce,c as oe,h as re,i as ae,k as le,o as de,p as se,x as ce,y as me}from"./chunk-2RSBMS36.js";import{a as ie}from"./chunk-AHCRE4GP.js";import{$ as K,$a as a,A as k,D as U,Db as y,Ib as d,Jb as l,Kb as Y,Ma as J,Ob as v,Qb as D,Rb as g,Vb as B,Vd as ne,Wc as Z,Yc as $,Yd as fe,Zc as ee,db as P,dc as h,e as j,ec as m,gc as x,ja as E,jc as C,jd as te,ka as z,kb as Q,kc as f,lb as X,lc as _,ma as S,q as A,qb as b,rc as M,t as w,u as H,va as p,vb as c,wa as u}from"./chunk-DZT5XHBQ.js";var F=class i{constructor(n,e){this.localDataService=n;this.toastr=e;this.initLocalDataConfig()}localConfig=new V;_offlineConfigSubject=new j(this.localConfig);offlineConfig$=this._offlineConfigSubject.asObservable();online$=U(k(window,"offline").pipe(w(()=>!1)),k(window,"online").pipe(w(()=>!0))).pipe(K(navigator.onLine));get isOnline(){return navigator.onLine}initLocalDataConfig(){this.localDataService.getOfflineConfig().subscribe({next:n=>{let e=new V(n.configUsingLocal,n.productUsingLocal,n.orderUsingLocal);this.pushNewValue(e),this.localConfig=e,this.updateOfflineConfigDB(n)},error:n=>{this.onErrorInitConfig()}})}onErrorInitConfig(){let n=new V;this.pushNewValue(n),this.localConfig=n,this.updateOfflineConfigDB(n)}getOnlineStatus$(){return H([this.offlineConfig$.pipe(w(n=>n.configUsingLocal)),this.online$]).pipe(w(n=>{let e=n[0],t=n[1],r;return e===!0?r=!1:r=t&&this.isOnline,r}))}pushNewValue(n){this._offlineConfigSubject.next(n)}updateOfflineConfigDB(n){this.localDataService.updateOfflineConfig(n).subscribe({next:e=>{this.pushNewValue(n)}})}static \u0275fac=function(e){return new(e||i)(S(L),S(ne))};static \u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})};var W=class i{constructor(n,e,t){this.httpService=n;this.LocalData=e;this._onlineStatusService=t}Data=new xe;addCustomer(n){let e=[];n.Group&&e.push(n.Group);let t={contact:n,groups:e};if(this._onlineStatusService.isOnline)return A(this.httpService.post("/API/Contact/Customer/Create",t)).catch(r=>Promise.reject(r))}findCustomerByCode(n){let e={Code:n};return this.httpService.post("/API/Contact/GetByCode",e)}GetPrivilegeByID(n,e){return this.httpService.get(G.GetCustomerPrivilegeByID,[{key:"ID",value:n},{key:"EntityID",value:e}],!0)}getCustomerSuggestionCode(){return this.httpService.get(G.GetCustomerSuggestionCode).pipe(w(n=>n.Code))}static \u0275fac=function(e){return new(e||i)(S(fe),S(L),S(F))};static \u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})};var T=i=>({selected:i}),Pe=i=>({"border border-danger":i}),O=i=>({"is-invalid":i}),Ve=i=>({"is-invalid border border-danger":i}),Le=i=>({"has-error":i});function Fe(i,n){if(i&1){let e=v();d(0,"a",12),D("click",function(){p(e);let r=g();return u(r.chooiceDetail("id"))}),m(1," ID "),l()}if(i&2){let e=g();c("ngClass",M(1,T,e.tabState=="id"))}}function We(i,n){if(i&1&&Y(0,"option",48),i&2){let e=n.$implicit;c("value",e.Name)}}function ke(i,n){if(i&1&&(d(0,"div",49)(1,"i",50),m(2," Name is mandatory."),l()()),i&2){g();let e=h(25);c("ngClass",M(1,Le,e.touched&&e.invalid))}}function Be(i,n){i&1&&(d(0,"div",40),m(1," Mobile Phone is mandatory "),l())}function Re(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){g(2);let e=h(37);a(),x(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}function Ge(i,n){if(i&1&&b(0,Be,2,0,"div",40)(1,Re,2,1,"div",40),i&2){g();let e=h(37);y(e.getError("required")&&!e.getError("minLength")?0:-1),a(),y(e.getError("minLength")?1:-1)}}function qe(i,n){i&1&&(d(0,"div",40),m(1," Email must be a valid email address "),l())}function je(i,n){i&1&&(d(0,"div",40),m(1,"Email is mandatory"),l())}function Ae(i,n){if(i&1&&b(0,qe,2,0,"div",51)(1,je,2,0,"div",40),i&2){g();let e=h(44);c("ngIf",e.errors==null?null:e.errors.email),a(),y(e.errors!=null&&e.errors.required?1:-1)}}function He(i,n){i&1&&(d(0,"div",40),m(1,"Birthdate is mandatory"),l())}function Ue(i,n){if(i&1&&b(0,He,2,0,"div",40),i&2){g();let e=h(3);y(e.invalid?0:-1)}}function Ke(i,n){if(i&1){let e=v();d(0,"div",46)(1,"div",17)(2,"datepicker",52,6),_("ngModelChange",function(r){p(e);let s=g();return f(s.customer.Birthdate,r)||(s.customer.Birthdate=r),u(r)}),l(),b(4,Ue,1,1),l()()}if(i&2){let e=h(3),t=g();a(2),C("ngModel",t.customer.Birthdate),c("required",t.requiredField().Birthdate)("ngClass",M(4,O,e.invalid&&(e.dirty||e.touched))),a(2),y(e.dirty||e.touched?4:-1)}}function ze(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){let e=g(2);a(),x(" ",e.type=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function Je(i,n){if(i&1){let e=v();d(0,"div",46)(1,"div",17)(2,"input",53,7),_("ngModelChange",function(r){p(e);let s=g();return f(s.customer.Code,r)||(s.customer.Code=r),u(r)}),l(),b(4,ze,2,1,"div",40),d(5,"label",54),m(6),l()()()}if(i&2){let e=h(3),t=g();a(2),B("placeholder","",t.type=="supplier"?"Supplier":"Member"," code"),C("ngModel",t.customer.Code),c("required",t.requiredField().Code)("ngClass",M(7,O,e.invalid&&(e.dirty||e.touched))),a(2),y(e.invalid&&(e.dirty||e.touched)?4:-1),a(2),x("",t.type=="supplier"?"Supplier":"Member"," Code")}}function Qe(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){let e=g(2);a(),x(" ",e.type=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function Xe(i,n){if(i&1){let e=v();d(0,"div",55)(1,"div",17)(2,"input",53,7),_("ngModelChange",function(r){p(e);let s=g();return f(s.customer.Code,r)||(s.customer.Code=r),u(r)}),l(),b(4,Qe,2,1,"div",40),d(5,"label",54),m(6),l()()()}if(i&2){let e=h(3),t=g();a(2),B("placeholder","",t.type=="supplier"?"Supplier":"Member"," code"),C("ngModel",t.customer.Code),c("required",t.requiredField().Code)("ngClass",M(7,O,e.invalid&&(e.dirty||e.touched))),a(2),y(e.invalid&&(e.dirty||e.touched)?4:-1),a(2),x("",t.type=="supplier"?"Supplier":"Member"," Code")}}function Ye(i,n){if(i&1){let e=v();d(0,"div",55)(1,"div",56)(2,"ng-select",57),_("ngModelChange",function(r){p(e);let s=g();return f(s.customer.Group,r)||(s.customer.Group=r),u(r)}),l(),d(3,"label",58),m(4,"Group"),l()()()}if(i&2){let e=g();a(),c("ngClass",M(3,T,e.isNotEmpty(e.customer.Group))),a(),C("ngModel",e.customer.Group),c("items",e.options==null?null:e.options.Groups)}}function Ze(i,n){if(i&1){let e=v();d(0,"div",55)(1,"div",56)(2,"ng-select",59),_("ngModelChange",function(r){p(e);let s=g();return f(s.customer.City,r)||(s.customer.City=r),u(r)}),l(),d(3,"label",60),m(4,"City"),l()()()}if(i&2){let e=g();a(),c("ngClass",M(3,T,e.isNotEmpty(e.customer.City))),a(),C("ngModel",e.customer.City),c("items",e.options==null?null:e.options.Cities)}}function $e(i,n){i&1&&(d(0,"div",40),m(1,"Address is mandatory."),l())}function et(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){g();let e=h(67);a(),x(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}var Ne=class i{constructor(n,e,t){this.dialogRef=n;this.data=e;this._CustomerHttpService=t;this.modalConfig=new he,this.modalConfig.title=this.data.title,this.modalConfig.customWidth="650px",this.options=this.data.options,this.options?.Genders||(this.options.Genders=[{Key:0,Value:"Male"},{Key:1,Value:"Female"}]),this.config=this.data.config,this.type=this.data.type}customer;options;type;config;more;modalConfig;detailVisible;tabState="general";requiredField=J({Mobile:!1,Email:!1,Code:!1,Address:!1,SignUpOutlet:!1,Birthdate:!1});ngOnInit(){this.customer=new q,this.initFirstName(),this.customer.Gender=this.config.DefaultValue.Gender,this.more=!1,this.initRequiredField()}initRequiredField(){let n=this.config.Advance?.RequiredFields;n&&this.type!="supplier"&&n.forEach(e=>{this.requiredField.update(t=>(t[e]=!0,t))})}initFirstName(){this.data&&this.data.inputTextName&&(this.customer.FirstName=this.data.inputTextName)}onOk(n){if(n.form?.markAllAsTouched(),n.form.invalid)return;let e=this.customer.Title?this.customer.Title:"";e+=" "+this.customer.FirstName,e+=" "+(this.customer.LastName?this.customer.LastName:""),e=e.trim(),this.customer.Name=e,this.type=="customer"?this._CustomerHttpService.addCustomer(this.customer).then(t=>{this.dialogRef.close({ContactName:e,CustomerID:t.ID})}).catch(t=>{this.dialogRef.close({Error:t})}):this.type=="supplier"&&this.dialogRef.close({supplier:this.customer})}chooiceDetail(n){this.tabState=n}isNotEmpty(n){return ie.IsNotEmpty(n)||n==0}static \u0275fac=function(e){return new(e||i)(P(_e),P(be),P(W))};static \u0275cmp=Q({type:i,selectors:[["POS-modal-customer"]],standalone:!1,decls:80,vars:56,consts:[["f","ngForm"],["FirstName","ngModel"],["phoneNumber","ngModel"],["Email","ngModel"],["addressCtrl","ngModel"],["nationalId","ngModel"],["birthdateCtrl","ngModel"],["codeCtrl","ngModel"],[3,"onOk","onCancel","onClose","config"],[1,"container",2,"height","270px"],["name","form"],[1,"row","align-items-center","border-bottom"],[1,"btn","btn-link",3,"click","ngClass"],["class","btn btn-link",3,"ngClass","click",4,"ngIf"],[1,"mt-6"],[1,"row","g-4",3,"hidden"],[1,"col-md-2","mt-4"],[1,"form-floating-outline"],["list","cust-title","id","Title","name","Title","placeholder","Title",1,"form-control",3,"ngModelChange","ngModel"],["for","Title"],["id","cust-title"],[3,"value",4,"ngFor","ngForOf"],[1,"col-md-5","mt-4"],["type","text","id","FirstName","name","FirstName","placeholder","First Name",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],[3,"ngClass",4,"ngIf"],["for","FirstName"],["type","text","id","LastName","name","LastName","placeholder","Last Name",1,"form-control",3,"ngModelChange","ngModel"],["for","LastName"],[1,"col-md-6","mt-4"],["type","text","name","Phone","placeholder","Mobile",1,"form-control",3,"ngModelChange","ngModel","required","ngClass"],["for","Phone"],["type","email","name","Email","placeholder","Email","email","",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],["for","email"],["class","col-6 mt-4",4,"ngIf"],["name","gender","bindLabel","Value","bindValue","Key","placeholder","Gender","dropdownPosition","buttom",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"row","g-4","mt-2",3,"hidden"],["class","col-4 mt-4",4,"ngIf"],[1,"col-md-12","mt-4"],["id","address","name","address","placeholder","Address",1,"form-control","h-100",3,"ngModelChange","rows","ngModel","required","ngClass"],["for","address"],[1,"invalid-feedback"],["type","text","id","Identification","name","Identification","placeholder","NationalID","numericInputOnly","nationalId",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","Identification"],["type","text","id","TaxId","name","TaxId","placeholder","TaxID",1,"form-control",3,"ngModelChange","ngModel"],["for","TaxId"],["name","NationalityID","bindLabel","Name","bindValue","ID","placeholder","Nationality","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"col-6","mt-4"],["name","race","bindLabel","Name","bindValue","ID","placeholder","Race","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[3,"value"],[3,"ngClass"],[1,"control-label","text-danger"],["class","invalid-feedback",4,"ngIf"],["placeholder","Birthdate","name","birthDate",3,"ngModelChange","ngModel","required","ngClass"],["type","text","name","code","id","code",1,"form-control",3,"ngModelChange","ngModel","placeholder","required","ngClass"],["for","code"],[1,"col-4","mt-4"],[1,"form-floating-outline","flexRow",3,"ngClass"],["id","customerGroup","bindLabel","Name","bindValue","ID","name","customerGroup","appendTo","body",1,"productform","tall",3,"ngModelChange","ngModel","items"],["for","customerGroup",1,"ng-select"],["id","city","bindLabel","Name","bindValue","ID","name","city","appendTo","body",1,"productform","tall",3,"ngModelChange","ngModel","items"],["for","city",1,"ng-select"]],template:function(e,t){if(e&1){let r=v();d(0,"modal-material",8),D("onOk",function(){p(r);let o=h(4);return u(t.onOk(o))})("onCancel",function(){return p(r),u(t.dialogRef.close())})("onClose",function(){return p(r),u(t.dialogRef.close())}),d(1,"content")(2,"div",9)(3,"form",10,0)(5,"div",11)(6,"div")(7,"a",12),D("click",function(){return p(r),u(t.chooiceDetail("general"))}),m(8," General "),l(),d(9,"a",12),D("click",function(){return p(r),u(t.chooiceDetail("detail"))}),m(10," Detail "),l(),b(11,Fe,2,3,"a",13),l()(),d(12,"div")(13,"div",14)(14,"div",15)(15,"div",16)(16,"div",17)(17,"input",18),_("ngModelChange",function(o){return p(r),f(t.customer.Title,o)||(t.customer.Title=o),u(o)}),l(),d(18,"label",19),m(19,"Title"),l(),d(20,"datalist",20),b(21,We,1,1,"option",21),l()()(),d(22,"div",22)(23,"div",17)(24,"input",23,1),_("ngModelChange",function(o){return p(r),f(t.customer.FirstName,o)||(t.customer.FirstName=o),u(o)}),l(),b(26,ke,3,3,"div",24),d(27,"label",25),m(28,"First Name"),l()()(),d(29,"div",22)(30,"div",17)(31,"input",26),_("ngModelChange",function(o){return p(r),f(t.customer.LastName,o)||(t.customer.LastName=o),u(o)}),l(),d(32,"label",27),m(33,"Last Name"),l()()(),d(34,"div",28)(35,"div",17)(36,"input",29,2),_("ngModelChange",function(o){return p(r),f(t.customer.Mobile,o)||(t.customer.Mobile=o),u(o)}),l(),b(38,Ge,2,2),d(39,"label",30),m(40,"Mobile"),l()()(),d(41,"div",28)(42,"div",17)(43,"input",31,3),_("ngModelChange",function(o){return p(r),f(t.customer.Email,o)||(t.customer.Email=o),u(o)}),l(),b(45,Ae,2,2),d(46,"label",32),m(47,"Email"),l()()(),b(48,Ke,5,6,"div",33)(49,Je,7,9,"div",33),d(50,"div",28)(51,"ng-select",34),_("ngModelChange",function(o){return p(r),f(t.customer.Gender,o)||(t.customer.Gender=o),u(o)}),l()()(),d(52,"div",35),b(53,Xe,7,9,"div",36)(54,Ye,5,5,"div",36)(55,Ze,5,5,"div",36),d(56,"div",37)(57,"div",17)(58,"textarea",38,4),_("ngModelChange",function(o){return p(r),f(t.customer.Address,o)||(t.customer.Address=o),u(o)}),l(),d(60,"label",39),m(61,"Address"),l(),b(62,$e,2,0,"div",40),l()()(),d(63,"div",35)(64,"div",28)(65,"div",17)(66,"input",41,5),_("ngModelChange",function(o){return p(r),f(t.customer.NationalIDNumber,o)||(t.customer.NationalIDNumber=o),u(o)}),l(),b(68,et,2,1,"div",40),d(69,"label",42),m(70,"National ID"),l()()(),d(71,"div",28)(72,"div",17)(73,"input",43),_("ngModelChange",function(o){return p(r),f(t.customer.TaxIDNumber,o)||(t.customer.TaxIDNumber=o),u(o)}),l(),d(74,"label",44),m(75,"Tax ID"),l()()(),d(76,"div",28)(77,"ng-select",45),_("ngModelChange",function(o){return p(r),f(t.customer.NationalityID,o)||(t.customer.NationalityID=o),u(o)}),l()(),d(78,"div",46)(79,"ng-select",47),_("ngModelChange",function(o){return p(r),f(t.customer.RaceID,o)||(t.customer.RaceID=o),u(o)}),l()()()()()()()()()}if(e&2){let r=h(25),s=h(37),o=h(44),I=h(59),N=h(67);c("config",t.modalConfig),a(7),c("ngClass",M(42,T,t.tabState=="general")),a(2),c("ngClass",M(44,T,t.tabState=="detail")),a(2),c("ngIf",t.type!="supplier"),a(3),c("hidden",t.tabState!="general"),a(3),C("ngModel",t.customer.Title),a(4),c("ngForOf",t.options==null?null:t.options.Titles),a(3),c("ngClass",M(46,Pe,r.touched&&r.invalid)),C("ngModel",t.customer.FirstName),c("required",!0),a(2),c("ngIf",r.touched&&r.invalid),a(5),C("ngModel",t.customer.LastName),a(5),C("ngModel",t.customer.Mobile),c("required",t.requiredField().Mobile)("ngClass",M(48,O,s.invalid&&(s.dirty||s.touched))),a(2),y(s.invalid&&(s.dirty||s.touched)?38:-1),a(5),c("ngClass",M(50,Ve,o.invalid&&(o.dirty||o.touched))),C("ngModel",t.customer.Email),c("required",t.requiredField().Email),a(2),y(o.invalid&&(o.dirty||o.touched)?45:-1),a(3),c("ngIf",t.type!="supplier"),a(),c("ngIf",t.type=="supplier"),a(2),C("ngModel",t.customer.Gender),c("items",t.options==null?null:t.options.Genders),a(),c("hidden",t.tabState!="detail"),a(),c("ngIf",t.type!="supplier"),a(),c("ngIf",t.type!="supplier"),a(),c("ngIf",t.type!="supplier"),a(3),c("rows",t.type!="supplier"?6:9),C("ngModel",t.customer.Address),c("required",t.requiredField().Address)("ngClass",M(52,O,I.invalid&&(I.dirty||I.touched))),a(4),y(I.invalid&&(I.dirty||I.touched)?62:-1),a(),c("hidden",t.tabState!="id"),a(3),C("ngModel",t.customer.NationalIDNumber),c("ngClass",M(54,O,N.invalid&&(N.dirty||N.touched))),a(2),y(N.invalid&&(N.dirty||N.touched)?68:-1),a(5),C("ngModel",t.customer.TaxIDNumber),a(4),C("ngModel",t.customer.NationalityID),c("items",t.options==null?null:t.options.Nationalities),a(2),C("ngModel",t.customer.RaceID),c("items",t.options==null?null:t.options.Races)}},dependencies:()=>[Z,$,ee,Me,se,ce,me,oe,re,ae,pe,ue,de,le,we,R],styles:[".text-warning[_ngcontent-%COMP%]{color:var(--bs-warning)!important}.bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-danger[_ngcontent-%COMP%]{color:#212529;background-color:#f8d7da!important;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:hover{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5}.btn-light-danger[_ngcontent-%COMP%]:focus, .btn-light-danger.focus[_ngcontent-%COMP%]{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5;box-shadow:0 0 0 .2rem #dc354540}.btn-light-danger.disabled[_ngcontent-%COMP%], .btn-light-danger[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#f8d7da;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#f1aeb5;border-color:#ea868f}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #dc354540}.btn-link[_ngcontent-%COMP%]{padding-top:0;color:#868686;padding-bottom:8px;border-radius:unset;font-family:Roboto Slab,serif}.btn-link.selected[_ngcontent-%COMP%]{color:#3b3b3b;border-bottom:2px solid #07a519}.form-floating-outline[_ngcontent-%COMP%]{margin-bottom:.2rem!important}"]})},Oe=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=X({type:i});static \u0275inj=z({imports:[te,ve,ye,ge,Ce,Se,R]})},q=class{Title;FirstName;LastName;Name;Gender;Mobile;Email;TaxIDNumber;TaxID;Group;Code;City;Address;Birthdate;MemberIdentification;NationalIDNumber;NationalityID;RaceID;CreatorEntityID};export{F as a,W as b,Ne as c,Oe as d,q as e};
1
+ import{a as xe}from"./chunk-UZKYLAUE.js";import{d as we,e as Se}from"./chunk-V55A6VFC.js";import{B as V,D as L,u as he,v as Me,w as ye}from"./chunk-FY5VLGQC.js";import{O as ve,P as G}from"./chunk-IX5URHI7.js";import{d as R}from"./chunk-LPGMI3V2.js";import{e as _e,f as be}from"./chunk-ZZ7LHETD.js";import{A as pe,B as ue,F as ge,G as Ce,c as oe,h as re,i as ae,k as le,o as de,p as se,x as ce,y as me}from"./chunk-2RSBMS36.js";import{a as ie}from"./chunk-AHCRE4GP.js";import{$ as K,$a as a,A as k,D as U,Db as y,Ib as d,Jb as l,Kb as Y,Ma as J,Ob as v,Qb as D,Rb as g,Vb as B,Vd as ne,Wc as Z,Yc as $,Yd as fe,Zc as ee,db as P,dc as h,e as j,ec as m,gc as x,ja as E,jc as C,jd as te,ka as z,kb as Q,kc as f,lb as X,lc as _,ma as S,q as A,qb as b,rc as M,t as w,u as H,va as p,vb as c,wa as u}from"./chunk-DZT5XHBQ.js";var F=class i{constructor(n,e){this.localDataService=n;this.toastr=e;this.initLocalDataConfig()}localConfig=new V;_offlineConfigSubject=new j(this.localConfig);offlineConfig$=this._offlineConfigSubject.asObservable();online$=U(k(window,"offline").pipe(w(()=>!1)),k(window,"online").pipe(w(()=>!0))).pipe(K(navigator.onLine));get isOnline(){return navigator.onLine}initLocalDataConfig(){this.localDataService.getOfflineConfig().subscribe({next:n=>{let e=new V(n.configUsingLocal,n.productUsingLocal,n.orderUsingLocal);this.pushNewValue(e),this.localConfig=e,this.updateOfflineConfigDB(n)},error:n=>{this.onErrorInitConfig()}})}onErrorInitConfig(){let n=new V;this.pushNewValue(n),this.localConfig=n,this.updateOfflineConfigDB(n)}getOnlineStatus$(){return H([this.offlineConfig$.pipe(w(n=>n.configUsingLocal)),this.online$]).pipe(w(n=>{let e=n[0],t=n[1],r;return e===!0?r=!1:r=t&&this.isOnline,r}))}pushNewValue(n){this._offlineConfigSubject.next(n)}updateOfflineConfigDB(n){this.localDataService.updateOfflineConfig(n).subscribe({next:e=>{this.pushNewValue(n)}})}static \u0275fac=function(e){return new(e||i)(S(L),S(ne))};static \u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})};var W=class i{constructor(n,e,t){this.httpService=n;this.LocalData=e;this._onlineStatusService=t}Data=new xe;addCustomer(n){let e=[];n.Group&&e.push(n.Group);let t={contact:n,groups:e};if(this._onlineStatusService.isOnline)return A(this.httpService.post("/API/Contact/Customer/Create",t)).catch(r=>Promise.reject(r))}findCustomerByCode(n){let e={Code:n};return this.httpService.post("/API/Contact/GetByCode",e)}GetPrivilegeByID(n,e){return this.httpService.get(G.GetCustomerPrivilegeByID,[{key:"ID",value:n},{key:"EntityID",value:e}],!0)}getCustomerSuggestionCode(){return this.httpService.get(G.GetCustomerSuggestionCode).pipe(w(n=>n.Code))}static \u0275fac=function(e){return new(e||i)(S(fe),S(L),S(F))};static \u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"})};var T=i=>({selected:i}),Pe=i=>({"border border-danger":i}),O=i=>({"is-invalid":i}),Ve=i=>({"is-invalid border border-danger":i}),Le=i=>({"has-error":i});function Fe(i,n){if(i&1){let e=v();d(0,"a",12),D("click",function(){p(e);let r=g();return u(r.chooiceDetail("id"))}),m(1," ID "),l()}if(i&2){let e=g();c("ngClass",M(1,T,e.tabState=="id"))}}function We(i,n){if(i&1&&Y(0,"option",48),i&2){let e=n.$implicit;c("value",e.Name)}}function ke(i,n){if(i&1&&(d(0,"div",49)(1,"i",50),m(2," Name is mandatory."),l()()),i&2){g();let e=h(25);c("ngClass",M(1,Le,e.touched&&e.invalid))}}function Be(i,n){i&1&&(d(0,"div",40),m(1," Mobile Phone is mandatory "),l())}function Re(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){g(2);let e=h(37);a(),x(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}function Ge(i,n){if(i&1&&b(0,Be,2,0,"div",40)(1,Re,2,1,"div",40),i&2){g();let e=h(37);y(e.getError("required")&&!e.getError("minLength")?0:-1),a(),y(e.getError("minLength")?1:-1)}}function qe(i,n){i&1&&(d(0,"div",40),m(1," Email must be a valid email address "),l())}function je(i,n){i&1&&(d(0,"div",40),m(1,"Email is mandatory"),l())}function Ae(i,n){if(i&1&&b(0,qe,2,0,"div",51)(1,je,2,0,"div",40),i&2){g();let e=h(44);c("ngIf",e.errors==null?null:e.errors.email),a(),y(e.errors!=null&&e.errors.required?1:-1)}}function He(i,n){i&1&&(d(0,"div",40),m(1,"Birthdate is mandatory"),l())}function Ue(i,n){if(i&1&&b(0,He,2,0,"div",40),i&2){g();let e=h(3);y(e.invalid?0:-1)}}function Ke(i,n){if(i&1){let e=v();d(0,"div",46)(1,"div",17)(2,"datepicker",52,6),_("ngModelChange",function(r){p(e);let s=g();return f(s.customer.Birthdate,r)||(s.customer.Birthdate=r),u(r)}),l(),b(4,Ue,1,1),l()()}if(i&2){let e=h(3),t=g();a(2),C("ngModel",t.customer.Birthdate),c("required",t.requiredField().Birthdate)("ngClass",M(4,O,e.invalid&&(e.dirty||e.touched))),a(2),y(e.dirty||e.touched?4:-1)}}function ze(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){let e=g(2);a(),x(" ",e.type=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function Je(i,n){if(i&1){let e=v();d(0,"div",46)(1,"div",17)(2,"input",53,7),_("ngModelChange",function(r){p(e);let s=g();return f(s.customer.Code,r)||(s.customer.Code=r),u(r)}),l(),b(4,ze,2,1,"div",40),d(5,"label",54),m(6),l()()()}if(i&2){let e=h(3),t=g();a(2),B("placeholder","",t.type=="supplier"?"Supplier":"Member"," code"),C("ngModel",t.customer.Code),c("required",t.requiredField().Code)("ngClass",M(7,O,e.invalid&&(e.dirty||e.touched))),a(2),y(e.invalid&&(e.dirty||e.touched)?4:-1),a(2),x("",t.type=="supplier"?"Supplier":"Member"," Code")}}function Qe(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){let e=g(2);a(),x(" ",e.type=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function Xe(i,n){if(i&1){let e=v();d(0,"div",55)(1,"div",17)(2,"input",53,7),_("ngModelChange",function(r){p(e);let s=g();return f(s.customer.Code,r)||(s.customer.Code=r),u(r)}),l(),b(4,Qe,2,1,"div",40),d(5,"label",54),m(6),l()()()}if(i&2){let e=h(3),t=g();a(2),B("placeholder","",t.type=="supplier"?"Supplier":"Member"," code"),C("ngModel",t.customer.Code),c("required",t.requiredField().Code)("ngClass",M(7,O,e.invalid&&(e.dirty||e.touched))),a(2),y(e.invalid&&(e.dirty||e.touched)?4:-1),a(2),x("",t.type=="supplier"?"Supplier":"Member"," Code")}}function Ye(i,n){if(i&1){let e=v();d(0,"div",55)(1,"div",56)(2,"ng-select",57),_("ngModelChange",function(r){p(e);let s=g();return f(s.customer.Group,r)||(s.customer.Group=r),u(r)}),l(),d(3,"label",58),m(4,"Group"),l()()()}if(i&2){let e=g();a(),c("ngClass",M(3,T,e.isNotEmpty(e.customer.Group))),a(),C("ngModel",e.customer.Group),c("items",e.options==null?null:e.options.Groups)}}function Ze(i,n){if(i&1){let e=v();d(0,"div",55)(1,"div",56)(2,"ng-select",59),_("ngModelChange",function(r){p(e);let s=g();return f(s.customer.City,r)||(s.customer.City=r),u(r)}),l(),d(3,"label",60),m(4,"City"),l()()()}if(i&2){let e=g();a(),c("ngClass",M(3,T,e.isNotEmpty(e.customer.City))),a(),C("ngModel",e.customer.City),c("items",e.options==null?null:e.options.Cities)}}function $e(i,n){i&1&&(d(0,"div",40),m(1,"Address is mandatory."),l())}function et(i,n){if(i&1&&(d(0,"div",40),m(1),l()),i&2){g();let e=h(67);a(),x(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}var Ne=class i{constructor(n,e,t){this.dialogRef=n;this.data=e;this._CustomerHttpService=t;this.modalConfig=new he,this.modalConfig.title=this.data.title,this.modalConfig.customWidth="650px",this.options=this.data.options,this.options?.Genders||(this.options.Genders=[{Key:0,Value:"Male"},{Key:1,Value:"Female"}]),this.config=this.data.config,this.type=this.data.type}customer;options;type;config;more;modalConfig;detailVisible;tabState="general";requiredField=J({Mobile:!1,Email:!1,Code:!1,Address:!1,SignUpOutlet:!1,Birthdate:!1});ngOnInit(){this.customer=new q,this.initFirstName(),this.customer.Gender=this.config.DefaultValue.Gender,this.more=!1,this.initRequiredField()}initRequiredField(){let n=this.config.Advance?.RequiredFields;n&&this.type!="supplier"&&n.forEach(e=>{this.requiredField.update(t=>(t[e]=!0,t))})}initFirstName(){this.data&&this.data.inputTextName&&(this.customer.FirstName=this.data.inputTextName)}onOk(n){if(n.form?.markAllAsTouched(),n.form.invalid)return;let e=this.customer.Title?this.customer.Title:"";e+=" "+this.customer.FirstName,e+=" "+(this.customer.LastName?this.customer.LastName:""),e=e.trim(),this.customer.Name=e,this.type=="customer"?this._CustomerHttpService.addCustomer(this.customer).then(t=>{this.dialogRef.close({ContactName:e,CustomerID:t.ID})}).catch(t=>{this.dialogRef.close({Error:t})}):this.type=="supplier"&&this.dialogRef.close({supplier:this.customer})}chooiceDetail(n){this.tabState=n}isNotEmpty(n){return ie.IsNotEmpty(n)||n==0}static \u0275fac=function(e){return new(e||i)(P(_e),P(be),P(W))};static \u0275cmp=Q({type:i,selectors:[["POS-modal-customer"]],standalone:!1,decls:80,vars:56,consts:[["f","ngForm"],["FirstName","ngModel"],["phoneNumber","ngModel"],["Email","ngModel"],["addressCtrl","ngModel"],["nationalId","ngModel"],["birthdateCtrl","ngModel"],["codeCtrl","ngModel"],[3,"onOk","onCancel","onClose","config"],[1,"container",2,"height","270px"],["name","form"],[1,"row","align-items-center","border-bottom"],[1,"btn","btn-link",3,"click","ngClass"],["class","btn btn-link",3,"ngClass","click",4,"ngIf"],[1,"mt-6"],[1,"row","g-4",3,"hidden"],[1,"col-md-2","mt-4"],[1,"form-floating-outline"],["list","cust-title","id","Title","name","Title","placeholder","Title",1,"form-control",3,"ngModelChange","ngModel"],["for","Title"],["id","cust-title"],[3,"value",4,"ngFor","ngForOf"],[1,"col-md-5","mt-4"],["type","text","id","FirstName","name","FirstName","placeholder","First Name",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],[3,"ngClass",4,"ngIf"],["for","FirstName"],["type","text","id","LastName","name","LastName","placeholder","Last Name",1,"form-control",3,"ngModelChange","ngModel"],["for","LastName"],[1,"col-md-6","mt-4"],["type","text","name","Phone","placeholder","Mobile",1,"form-control",3,"ngModelChange","ngModel","required","ngClass"],["for","Phone"],["type","email","name","Email","placeholder","Email","email","",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],["for","email"],["class","col-6 mt-4",4,"ngIf"],["name","gender","bindLabel","Value","bindValue","Key","placeholder","Gender","dropdownPosition","buttom",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"row","g-4","mt-2",3,"hidden"],["class","col-4 mt-4",4,"ngIf"],[1,"col-md-12","mt-4"],["id","address","name","address","placeholder","Address",1,"form-control","h-100",3,"ngModelChange","rows","ngModel","required","ngClass"],["for","address"],[1,"invalid-feedback"],["type","text","id","Identification","name","Identification","placeholder","NationalID","numericInputOnly","nationalId",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","Identification"],["type","text","id","TaxId","name","TaxId","placeholder","TaxID",1,"form-control",3,"ngModelChange","ngModel"],["for","TaxId"],["name","NationalityID","bindLabel","Name","bindValue","ID","placeholder","Nationality","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"col-6","mt-4"],["name","race","bindLabel","Name","bindValue","ID","placeholder","Race","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[3,"value"],[3,"ngClass"],[1,"control-label","text-danger"],["class","invalid-feedback",4,"ngIf"],["placeholder","Birthdate","name","birthDate",3,"ngModelChange","ngModel","required","ngClass"],["type","text","name","code","id","code",1,"form-control",3,"ngModelChange","ngModel","placeholder","required","ngClass"],["for","code"],[1,"col-4","mt-4"],[1,"form-floating-outline","flexRow",3,"ngClass"],["id","customerGroup","bindLabel","Name","bindValue","ID","name","customerGroup","appendTo","body",1,"productform","tall",3,"ngModelChange","ngModel","items"],["for","customerGroup",1,"ng-select"],["id","city","bindLabel","Name","bindValue","ID","name","city","appendTo","body",1,"productform","tall",3,"ngModelChange","ngModel","items"],["for","city",1,"ng-select"]],template:function(e,t){if(e&1){let r=v();d(0,"modal-material",8),D("onOk",function(){p(r);let o=h(4);return u(t.onOk(o))})("onCancel",function(){return p(r),u(t.dialogRef.close())})("onClose",function(){return p(r),u(t.dialogRef.close())}),d(1,"content")(2,"div",9)(3,"form",10,0)(5,"div",11)(6,"div")(7,"a",12),D("click",function(){return p(r),u(t.chooiceDetail("general"))}),m(8," General "),l(),d(9,"a",12),D("click",function(){return p(r),u(t.chooiceDetail("detail"))}),m(10," Detail "),l(),b(11,Fe,2,3,"a",13),l()(),d(12,"div")(13,"div",14)(14,"div",15)(15,"div",16)(16,"div",17)(17,"input",18),_("ngModelChange",function(o){return p(r),f(t.customer.Title,o)||(t.customer.Title=o),u(o)}),l(),d(18,"label",19),m(19,"Title"),l(),d(20,"datalist",20),b(21,We,1,1,"option",21),l()()(),d(22,"div",22)(23,"div",17)(24,"input",23,1),_("ngModelChange",function(o){return p(r),f(t.customer.FirstName,o)||(t.customer.FirstName=o),u(o)}),l(),b(26,ke,3,3,"div",24),d(27,"label",25),m(28,"First Name"),l()()(),d(29,"div",22)(30,"div",17)(31,"input",26),_("ngModelChange",function(o){return p(r),f(t.customer.LastName,o)||(t.customer.LastName=o),u(o)}),l(),d(32,"label",27),m(33,"Last Name"),l()()(),d(34,"div",28)(35,"div",17)(36,"input",29,2),_("ngModelChange",function(o){return p(r),f(t.customer.Mobile,o)||(t.customer.Mobile=o),u(o)}),l(),b(38,Ge,2,2),d(39,"label",30),m(40,"Mobile"),l()()(),d(41,"div",28)(42,"div",17)(43,"input",31,3),_("ngModelChange",function(o){return p(r),f(t.customer.Email,o)||(t.customer.Email=o),u(o)}),l(),b(45,Ae,2,2),d(46,"label",32),m(47,"Email"),l()()(),b(48,Ke,5,6,"div",33)(49,Je,7,9,"div",33),d(50,"div",28)(51,"ng-select",34),_("ngModelChange",function(o){return p(r),f(t.customer.Gender,o)||(t.customer.Gender=o),u(o)}),l()()(),d(52,"div",35),b(53,Xe,7,9,"div",36)(54,Ye,5,5,"div",36)(55,Ze,5,5,"div",36),d(56,"div",37)(57,"div",17)(58,"textarea",38,4),_("ngModelChange",function(o){return p(r),f(t.customer.Address,o)||(t.customer.Address=o),u(o)}),l(),d(60,"label",39),m(61,"Address"),l(),b(62,$e,2,0,"div",40),l()()(),d(63,"div",35)(64,"div",28)(65,"div",17)(66,"input",41,5),_("ngModelChange",function(o){return p(r),f(t.customer.NationalIDNumber,o)||(t.customer.NationalIDNumber=o),u(o)}),l(),b(68,et,2,1,"div",40),d(69,"label",42),m(70,"National ID"),l()()(),d(71,"div",28)(72,"div",17)(73,"input",43),_("ngModelChange",function(o){return p(r),f(t.customer.TaxIDNumber,o)||(t.customer.TaxIDNumber=o),u(o)}),l(),d(74,"label",44),m(75,"Tax ID"),l()()(),d(76,"div",28)(77,"ng-select",45),_("ngModelChange",function(o){return p(r),f(t.customer.NationalityID,o)||(t.customer.NationalityID=o),u(o)}),l()(),d(78,"div",46)(79,"ng-select",47),_("ngModelChange",function(o){return p(r),f(t.customer.RaceID,o)||(t.customer.RaceID=o),u(o)}),l()()()()()()()()()}if(e&2){let r=h(25),s=h(37),o=h(44),I=h(59),N=h(67);c("config",t.modalConfig),a(7),c("ngClass",M(42,T,t.tabState=="general")),a(2),c("ngClass",M(44,T,t.tabState=="detail")),a(2),c("ngIf",t.type!="supplier"),a(3),c("hidden",t.tabState!="general"),a(3),C("ngModel",t.customer.Title),a(4),c("ngForOf",t.options==null?null:t.options.Titles),a(3),c("ngClass",M(46,Pe,r.touched&&r.invalid)),C("ngModel",t.customer.FirstName),c("required",!0),a(2),c("ngIf",r.touched&&r.invalid),a(5),C("ngModel",t.customer.LastName),a(5),C("ngModel",t.customer.Mobile),c("required",t.requiredField().Mobile)("ngClass",M(48,O,s.invalid&&(s.dirty||s.touched))),a(2),y(s.invalid&&(s.dirty||s.touched)?38:-1),a(5),c("ngClass",M(50,Ve,o.invalid&&(o.dirty||o.touched))),C("ngModel",t.customer.Email),c("required",t.requiredField().Email),a(2),y(o.invalid&&(o.dirty||o.touched)?45:-1),a(3),c("ngIf",t.type!="supplier"),a(),c("ngIf",t.type=="supplier"),a(2),C("ngModel",t.customer.Gender),c("items",t.options==null?null:t.options.Genders),a(),c("hidden",t.tabState!="detail"),a(),c("ngIf",t.type!="supplier"),a(),c("ngIf",t.type!="supplier"),a(),c("ngIf",t.type!="supplier"),a(3),c("rows",t.type!="supplier"?6:9),C("ngModel",t.customer.Address),c("required",t.requiredField().Address)("ngClass",M(52,O,I.invalid&&(I.dirty||I.touched))),a(4),y(I.invalid&&(I.dirty||I.touched)?62:-1),a(),c("hidden",t.tabState!="id"),a(3),C("ngModel",t.customer.NationalIDNumber),c("ngClass",M(54,O,N.invalid&&(N.dirty||N.touched))),a(2),y(N.invalid&&(N.dirty||N.touched)?68:-1),a(5),C("ngModel",t.customer.TaxIDNumber),a(4),C("ngModel",t.customer.NationalityID),c("items",t.options==null?null:t.options.Nationalities),a(2),C("ngModel",t.customer.RaceID),c("items",t.options==null?null:t.options.Races)}},dependencies:()=>[Z,$,ee,Me,se,ce,me,oe,re,ae,pe,ue,de,le,we,R],styles:[".text-warning[_ngcontent-%COMP%]{color:var(--bs-warning)!important}.bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-danger[_ngcontent-%COMP%]{color:#212529;background-color:#f8d7da!important;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:hover{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5}.btn-light-danger[_ngcontent-%COMP%]:focus, .btn-light-danger.focus[_ngcontent-%COMP%]{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5;box-shadow:0 0 0 .2rem #dc354540}.btn-light-danger.disabled[_ngcontent-%COMP%], .btn-light-danger[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#f8d7da;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#f1aeb5;border-color:#ea868f}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #dc354540}.btn-link[_ngcontent-%COMP%]{padding-top:0;color:#868686;padding-bottom:8px;border-radius:unset;font-family:Roboto Slab,serif}.btn-link.selected[_ngcontent-%COMP%]{color:#3b3b3b;border-bottom:2px solid #07a519}.form-floating-outline[_ngcontent-%COMP%]{margin-bottom:.2rem!important}"]})},Oe=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=X({type:i});static \u0275inj=z({imports:[te,ve,ye,ge,Ce,Se,R]})},q=class{Title;FirstName;LastName;Name;Gender;Mobile;Email;TaxIDNumber;TaxID;Group;Code;City;Address;Birthdate;MemberIdentification;NationalIDNumber;NationalityID;RaceID;CreatorEntityID};export{F as a,W as b,Ne as c,Oe as d,q as e};
@@ -1,2 +1,2 @@
1
- import{u as G,v as q,w as B}from"./chunk-7PXSKRVE.js";import{b as P,c as R}from"./chunk-CIBQBSM6.js";import{e as j,f as V,g as W,l as L}from"./chunk-D35OBUDE.js";import{a as w}from"./chunk-2FWFPV5I.js";import{F as A,a as E,c as O,h as F,o as k}from"./chunk-2RSBMS36.js";import{a as D}from"./chunk-AHCRE4GP.js";import{$a as r,E as g,Ib as t,Jb as m,Qb as u,Vd as S,Wc as T,Zc as I,db as a,ec as l,gc as d,jc as C,jd as f,kb as p,kc as M,lc as h,pc as _,qb as N,sc as y,vb as s}from"./chunk-DZT5XHBQ.js";var b=class n{constructor(e,i,o){this.dialogRef=e;this.data=i;this.toastr=o;this.config.title=`Edit ${i.transactionType} Number`,this.config.customWidth="300px",this.invoiceNumber=i.invoiceNumber,this.transactionType=i.transactionType}config=new G;invoiceNumber;transactionType;ok(){D.IsNotEmpty(this.invoiceNumber)?this.dialogRef.close(this.invoiceNumber):this.toastr.info("Invoice number can not be empty",w.Info)}static \u0275fac=function(i){return new(i||n)(a(j),a(V),a(S))};static \u0275cmp=p({type:n,selectors:[["POS-modal-invoice-number"]],decls:6,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"form-floating-outline","m-0"],["type","text","id","invoiceNumber","name","invoiceNumber",1,"form-control",3,"ngModelChange","ngModel"],["for","invoiceNumber"]],template:function(i,o){i&1&&(t(0,"modal-material",0),u("onOk",function(){return o.ok()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t(1,"content")(2,"div",1)(3,"input",2),h("ngModelChange",function(v){return M(o.invoiceNumber,v)||(o.invoiceNumber=v),v}),m(),t(4,"label",3),l(5),m()()()()),i&2&&(s("config",o.config),r(3),C("ngModel",o.invoiceNumber),r(2),d("",o.transactionType," Number"))},dependencies:[f,A,O,F,k,B,q],encapsulation:2})};var K=(n,e)=>({"px-2 py-2 number-disabled":n,pointer:e});function Q(n,e){n&1&&(t(0,"span"),l(1,"Editing"),m())}var H=class n{constructor(e){this.matDialog=e}isEdit=!1;transactionType="Purchase Order";disabled=!1;invoiceNumber="";onChange=e=>{};onTouched=()=>{};writeValue(e){this.invoiceNumber=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}openModalSelectOutlet(){this.disabled||this.matDialog.open(b,{data:{transactionType:this.transactionType,invoiceNumber:this.invoiceNumber}}).afterClosed().pipe(g(e=>e)).subscribe(e=>{this.invoiceNumber=e,this.onChange(this.invoiceNumber)})}static \u0275fac=function(i){return new(i||n)(a(W))};static \u0275cmp=p({type:n,selectors:[["POS-invoice-number-form"]],inputs:{isEdit:"isEdit",transactionType:"transactionType"},features:[_([{provide:E,multi:!0,useExisting:n}])],decls:3,vars:7,consts:[[1,"fw-normal",3,"click","ngClass","matTooltip"],[4,"ngIf"]],template:function(i,o){i&1&&(t(0,"h6",0),u("click",function(){return o.openModalSelectOutlet()}),N(1,Q,2,0,"span",1),l(2),m()),i&2&&(s("ngClass",y(4,K,o.disabled,!o.disabled))("matTooltip",o.disabled?"Number Edit role is required":""),r(),s("ngIf",o.isEdit),r(),d(" ",o.invoiceNumber?o.transactionType+" #"+o.invoiceNumber:"Order Number",`
1
+ import{u as G,v as q,w as B}from"./chunk-FY5VLGQC.js";import{b as P,c as R}from"./chunk-CIBQBSM6.js";import{e as j,f as V,g as W,l as L}from"./chunk-ZZ7LHETD.js";import{a as w}from"./chunk-2FWFPV5I.js";import{F as A,a as E,c as O,h as F,o as k}from"./chunk-2RSBMS36.js";import{a as D}from"./chunk-AHCRE4GP.js";import{$a as r,E as g,Ib as t,Jb as m,Qb as u,Vd as S,Wc as T,Zc as I,db as a,ec as l,gc as d,jc as C,jd as f,kb as p,kc as M,lc as h,pc as _,qb as N,sc as y,vb as s}from"./chunk-DZT5XHBQ.js";var b=class n{constructor(e,i,o){this.dialogRef=e;this.data=i;this.toastr=o;this.config.title=`Edit ${i.transactionType} Number`,this.config.customWidth="300px",this.invoiceNumber=i.invoiceNumber,this.transactionType=i.transactionType}config=new G;invoiceNumber;transactionType;ok(){D.IsNotEmpty(this.invoiceNumber)?this.dialogRef.close(this.invoiceNumber):this.toastr.info("Invoice number can not be empty",w.Info)}static \u0275fac=function(i){return new(i||n)(a(j),a(V),a(S))};static \u0275cmp=p({type:n,selectors:[["POS-modal-invoice-number"]],decls:6,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"form-floating-outline","m-0"],["type","text","id","invoiceNumber","name","invoiceNumber",1,"form-control",3,"ngModelChange","ngModel"],["for","invoiceNumber"]],template:function(i,o){i&1&&(t(0,"modal-material",0),u("onOk",function(){return o.ok()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t(1,"content")(2,"div",1)(3,"input",2),h("ngModelChange",function(v){return M(o.invoiceNumber,v)||(o.invoiceNumber=v),v}),m(),t(4,"label",3),l(5),m()()()()),i&2&&(s("config",o.config),r(3),C("ngModel",o.invoiceNumber),r(2),d("",o.transactionType," Number"))},dependencies:[f,A,O,F,k,B,q],encapsulation:2})};var K=(n,e)=>({"px-2 py-2 number-disabled":n,pointer:e});function Q(n,e){n&1&&(t(0,"span"),l(1,"Editing"),m())}var H=class n{constructor(e){this.matDialog=e}isEdit=!1;transactionType="Purchase Order";disabled=!1;invoiceNumber="";onChange=e=>{};onTouched=()=>{};writeValue(e){this.invoiceNumber=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}openModalSelectOutlet(){this.disabled||this.matDialog.open(b,{data:{transactionType:this.transactionType,invoiceNumber:this.invoiceNumber}}).afterClosed().pipe(g(e=>e)).subscribe(e=>{this.invoiceNumber=e,this.onChange(this.invoiceNumber)})}static \u0275fac=function(i){return new(i||n)(a(W))};static \u0275cmp=p({type:n,selectors:[["POS-invoice-number-form"]],inputs:{isEdit:"isEdit",transactionType:"transactionType"},features:[_([{provide:E,multi:!0,useExisting:n}])],decls:3,vars:7,consts:[[1,"fw-normal",3,"click","ngClass","matTooltip"],[4,"ngIf"]],template:function(i,o){i&1&&(t(0,"h6",0),u("click",function(){return o.openModalSelectOutlet()}),N(1,Q,2,0,"span",1),l(2),m()),i&2&&(s("ngClass",y(4,K,o.disabled,!o.disabled))("matTooltip",o.disabled?"Number Edit role is required":""),r(),s("ngIf",o.isEdit),r(),d(" ",o.invoiceNumber?o.transactionType+" #"+o.invoiceNumber:"Order Number",`
2
2
  `))},dependencies:[f,T,I,L,R,P],styles:[".number-disabled[_ngcontent-%COMP%]{background-color:#ebebe4}"]})};export{H as a};