dealpos 26.41.2 → 26.41.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.
- package/browser/{chunk-7PMRNQOH.js → chunk-24DKEEAF.js} +1 -1
- package/browser/{chunk-MOHHPXPL.js → chunk-2VVXEJG5.js} +1 -1
- package/browser/{chunk-C67POROJ.js → chunk-3KXXQZKR.js} +2 -2
- package/browser/{chunk-3VIRUKYH.js → chunk-3X4S7S7G.js} +1 -1
- package/browser/{chunk-KVWDGYTG.js → chunk-4NJMYXX4.js} +2 -2
- package/browser/{chunk-7RCSF535.js → chunk-4VU6ZIZK.js} +1 -1
- package/browser/{chunk-7PGLVINC.js → chunk-56HCUKXV.js} +1 -1
- package/browser/{chunk-PWCV33X5.js → chunk-56JJXOJF.js} +1 -1
- package/browser/{chunk-UYPJEGCR.js → chunk-5KIJ6ZVL.js} +1 -1
- package/browser/{chunk-WIGG5PBD.js → chunk-5O3ISRPQ.js} +1 -1
- package/browser/{chunk-RGKLOY5A.js → chunk-5SPGLBR4.js} +1 -1
- package/browser/{chunk-OMGFPYOH.js → chunk-67NJBLG2.js} +1 -1
- package/browser/{chunk-2RCMTTEI.js → chunk-6AFXHDIK.js} +1 -1
- package/browser/{chunk-P6C3VGVC.js → chunk-6JAF5RJ6.js} +1 -1
- package/browser/{chunk-NJTYDSRU.js → chunk-6VFC6FPO.js} +1 -1
- package/browser/{chunk-K4PQSMGH.js → chunk-6WFNZOKR.js} +1 -1
- package/browser/{chunk-KAAK23NG.js → chunk-7DKWMBFI.js} +1 -1
- package/browser/{chunk-IIL2WABF.js → chunk-AJEW7PT7.js} +1 -1
- package/browser/{chunk-QYLDRXX7.js → chunk-AKDTDTPW.js} +1 -1
- package/browser/{chunk-6KBVCS5R.js → chunk-AS6YJL6K.js} +1 -1
- package/browser/{chunk-GGECR76A.js → chunk-AYO5YIMB.js} +1 -1
- package/browser/{chunk-OKY6JWKS.js → chunk-B3IVCH2X.js} +11 -11
- package/browser/{chunk-D3UHSM7Q.js → chunk-B5JKALPE.js} +1 -1
- package/browser/{chunk-6ZQONDCK.js → chunk-BBEXAIFV.js} +1 -1
- package/browser/{chunk-K5REP24M.js → chunk-BJYPJUNI.js} +1 -1
- package/browser/{chunk-HUM2TD2V.js → chunk-BK3REKJK.js} +1 -1
- package/browser/{chunk-5C6SUHF7.js → chunk-CAO2GTOG.js} +1 -1
- package/browser/{chunk-PVWHZNJO.js → chunk-CMNMTQF6.js} +1 -1
- package/browser/{chunk-3ACIUVND.js → chunk-DI7GWKOM.js} +1 -1
- package/browser/{chunk-RRA52DS3.js → chunk-DIZQ3IYW.js} +1 -1
- package/browser/{chunk-5G2JP4BU.js → chunk-DNMHFWF5.js} +1 -1
- package/browser/{chunk-CRM35ZY5.js → chunk-DU5PMK3P.js} +1 -1
- package/browser/{chunk-BKVM2DJC.js → chunk-DUDJZAAO.js} +1 -1
- package/browser/{chunk-XDD3NCNY.js → chunk-ERCL4D6P.js} +1 -1
- package/browser/{chunk-QNONHXNG.js → chunk-EVO3VNAM.js} +1 -1
- package/browser/{chunk-7JINZXNW.js → chunk-F44EJ47F.js} +1 -1
- package/browser/{chunk-GDUK5NHD.js → chunk-FFURNSSE.js} +1 -1
- package/browser/{chunk-3ZEVWIEK.js → chunk-FX6KWPGY.js} +1 -1
- package/browser/chunk-G4XJ2JEK.js +2 -0
- package/browser/{chunk-IZRWNSEG.js → chunk-GW5YES7Q.js} +1 -1
- package/browser/{chunk-SMWPOPWN.js → chunk-HENCOWSS.js} +9 -9
- package/browser/{chunk-SRBGGQBM.js → chunk-HF2NQ4W3.js} +1 -1
- package/browser/{chunk-QLAI7TCM.js → chunk-HGQ4GVFH.js} +1 -1
- package/browser/{chunk-35OOU25S.js → chunk-HKSAQ4M2.js} +1 -1
- package/browser/{chunk-BWAGFTKH.js → chunk-HMHZ5BDZ.js} +1 -1
- package/browser/{chunk-6J5GXFW2.js → chunk-HQ6D6FJW.js} +1 -1
- package/browser/{chunk-IDYV2NQ6.js → chunk-I34LO4DC.js} +1 -1
- package/browser/{chunk-EMLAKVQ7.js → chunk-IPO5WHEB.js} +1 -1
- package/browser/{chunk-BFP7S3X7.js → chunk-IWNQJE4F.js} +1 -1
- package/browser/{chunk-RBDUYRGI.js → chunk-IWZEF2TO.js} +1 -1
- package/browser/{chunk-QJZ6KZJD.js → chunk-JJOUD4SD.js} +1 -1
- package/browser/{chunk-KK3ZYM4L.js → chunk-JKC4ZMXV.js} +1 -1
- package/browser/{chunk-XN226JYV.js → chunk-JMQTA3D2.js} +1 -1
- package/browser/{chunk-2QK4RDZQ.js → chunk-JPC7NZ4Y.js} +1 -1
- package/browser/{chunk-2Z2NIKVK.js → chunk-KA5UQNW5.js} +1 -1
- package/browser/{chunk-PY6N4YXS.js → chunk-KC6TKKFJ.js} +1 -1
- package/browser/{chunk-X36OVR3Z.js → chunk-KQTVJW3K.js} +1 -1
- package/browser/chunk-L3CKBCQ5.js +1 -0
- package/browser/{chunk-2SQWY73B.js → chunk-L3XA3HBF.js} +1 -1
- package/browser/{chunk-4PWWQ54B.js → chunk-LAP45GC2.js} +1 -1
- package/browser/{chunk-OU7T5RYK.js → chunk-LFLAHKM7.js} +1 -1
- package/browser/{chunk-6DYIT3AR.js → chunk-MARB3TY7.js} +1 -1
- package/browser/{chunk-2VTRMONB.js → chunk-MH2FTMDJ.js} +1 -1
- package/browser/{chunk-MGARVFBT.js → chunk-N4UH64HL.js} +2 -2
- package/browser/{chunk-TBUQMKRV.js → chunk-NBR7TUHP.js} +2 -2
- package/browser/{chunk-VDHK3F4F.js → chunk-NSWLWA7W.js} +1 -1
- package/browser/{chunk-7XICX54L.js → chunk-O3BU5I73.js} +1 -1
- package/browser/{chunk-QADFQFNZ.js → chunk-OMFZXXGP.js} +1 -1
- package/browser/{chunk-ONHUMF4L.js → chunk-ON6CLASB.js} +1 -1
- package/browser/{chunk-5VMSDCKY.js → chunk-OREBWYII.js} +1 -1
- package/browser/{chunk-QSLYV565.js → chunk-OS4JEDHC.js} +1 -1
- package/browser/{chunk-RAFUDI4T.js → chunk-OT5JCDNW.js} +1 -1
- package/browser/{chunk-WUSS4EQR.js → chunk-P423UVHY.js} +1 -1
- package/browser/{chunk-F63P5EJE.js → chunk-PIO3QSF3.js} +1 -1
- package/browser/{chunk-ZRYWTQ7A.js → chunk-PS4QURQQ.js} +1 -1
- package/browser/{chunk-N5IOFNXD.js → chunk-PTTVOMAJ.js} +1 -1
- package/browser/{chunk-6ALTZJMK.js → chunk-PVB7GBSK.js} +1 -1
- package/browser/{chunk-Z33ALP5X.js → chunk-PX2UKSKC.js} +2 -2
- package/browser/{chunk-GHKJR5D4.js → chunk-Q7FVOX6K.js} +1 -1
- package/browser/{chunk-BYYLGUOY.js → chunk-QGRO3YRJ.js} +1 -1
- package/browser/{chunk-PIBR3BHL.js → chunk-QN3744VG.js} +1 -1
- package/browser/{chunk-LDHQM4GO.js → chunk-R3CJAQKG.js} +1 -1
- package/browser/{chunk-KTCWDGA5.js → chunk-R7CVOFVR.js} +1 -1
- package/browser/{chunk-FAJIXL35.js → chunk-RGBM5FRL.js} +1 -1
- package/browser/{chunk-PL462WBD.js → chunk-RGXXTPXX.js} +1 -1
- package/browser/{chunk-QP27ZFWU.js → chunk-SEHJNQXN.js} +1 -1
- package/browser/{chunk-YGUDSR5K.js → chunk-SMGKMTZM.js} +1 -1
- package/browser/{chunk-NNKTTRKK.js → chunk-SOGFUBUN.js} +1 -1
- package/browser/{chunk-RHEF2HLV.js → chunk-SX5WJCES.js} +1 -1
- package/browser/{chunk-KLJISHCW.js → chunk-TNZBTARX.js} +1 -1
- package/browser/chunk-TZVEBVWQ.js +1 -0
- package/browser/{chunk-UL47OEOI.js → chunk-UBEUGILQ.js} +1 -1
- package/browser/chunk-UI32X6QC.js +1 -0
- package/browser/{chunk-HECAL2FJ.js → chunk-UJOEQFEY.js} +1 -1
- package/browser/{chunk-EOQMPDFP.js → chunk-VJDEKNQQ.js} +1 -1
- package/browser/{chunk-M5A7YJ6N.js → chunk-VRNI2HOL.js} +1 -1
- package/browser/{chunk-ETE7F7DF.js → chunk-VZOAWFD3.js} +1 -1
- package/browser/{chunk-APWIFDPA.js → chunk-W2E4NMUY.js} +1 -1
- package/browser/{chunk-7Q52J2DF.js → chunk-WJOBIYMD.js} +2 -2
- package/browser/{chunk-UQIY5HM6.js → chunk-WONVJLUQ.js} +1 -1
- package/browser/{chunk-LZ2IGHP5.js → chunk-WQDU4NSB.js} +1 -1
- package/browser/{chunk-7QALWVOK.js → chunk-WYV2VGE6.js} +1 -1
- package/browser/{chunk-MOLFPWPV.js → chunk-XDA3HAB3.js} +1 -1
- package/browser/{chunk-QLIQXPLN.js → chunk-XEFYOHD5.js} +1 -1
- package/browser/{chunk-IAW2UGGI.js → chunk-Y3AUHJUM.js} +1 -1
- package/browser/{chunk-54JDLSBR.js → chunk-YCTXIH4M.js} +1 -1
- package/browser/{chunk-VQG37255.js → chunk-YFHXJ2BM.js} +1 -1
- package/browser/{chunk-Z2U7BGQQ.js → chunk-YPPJTBH7.js} +2 -2
- package/browser/{chunk-O5TBW4Z6.js → chunk-Z3POHU6P.js} +14 -14
- package/browser/{chunk-SANYO3TC.js → chunk-Z65PSS2C.js} +1 -1
- package/browser/{chunk-WXJWX7ZH.js → chunk-Z7YC4KTU.js} +1 -1
- package/browser/{chunk-MAAMFX5G.js → chunk-ZUNFOLLT.js} +1 -1
- package/browser/index.html +3 -3
- package/browser/{main-EDUAVV5V.js → main-W3R4WJHA.js} +6 -6
- package/browser/ngsw-config.json +1 -1
- package/browser/ngsw.json +512 -512
- package/package.json +1 -1
- package/browser/chunk-CKRAYZKU.js +0 -1
- package/browser/chunk-FGU4QONB.js +0 -1
- package/browser/chunk-JTCR66PH.js +0 -2
- package/browser/chunk-WPDUANVY.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as Me}from"./chunk-PJHXZWSV.js";import{p as j}from"./chunk-SCH7M36Q.js";import{P as he}from"./chunk-FGU4QONB.js";import{d as H}from"./chunk-BUIP3UCE.js";import{a as be,b as ye}from"./chunk-3V6FZIJD.js";import{b as G,c as A}from"./chunk-BKOMMH62.js";import{A as ge,B as Ce,F as _e,G as fe,c as re,g as ae,h as le,i as de,l as se,p as me,q as ce,y as ue,z as pe}from"./chunk-AJDQZ346.js";import{a as oe}from"./chunk-PPTZHIIZ.js";import{$a as F,Ab as Y,Ba as v,Bb as Z,Cb as $,Db as m,Eb as d,Fb as l,Ga as z,Gb as ee,Pb as w,Sb as x,Tc as L,Ua as o,Ub as u,Yc as te,cc as h,db as J,eb as Q,fb as X,hc as c,jc as N,kd as ne,la as U,mc as f,nc as b,oa as q,oc as y,ra as C,sa as _,tc as R,wb as p,xd as ie,yb as g,yc as M}from"./chunk-7D344CRC.js";import{a as D,b as V}from"./chunk-NF7PG5F2.js";var k=class n{elementRef=q(z);control=q(ae,{optional:!0,self:!0});trimInputPrefix=L(null);trimInputSuffix=L(null);trimInputWhitespace=L(!0);onBlur(){let r=this.elementRef.nativeElement;if(!r)return;let e=r.value??"",t=e,a=this.trimInputPrefix(),s=this.trimInputSuffix(),i=this.trimInputWhitespace();i&&(e=e.trim()),a&&e.startsWith(a)&&(e=e.slice(a.length)),s&&e.endsWith(s)&&(e=e.slice(0,e.length-s.length)),i&&(e=e.trim()),e!==t&&(r.value=e,this.control?.control?(this.control.control.setValue(e,{emitEvent:!1}),this.control.control.updateValueAndValidity()):r.dispatchEvent(new Event("input",{bubbles:!0})))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=X({type:n,selectors:[["","trimInput",""]],hostBindings:function(e,t){e&1&&x("blur",function(){return t.onBlur()})},inputs:{trimInputPrefix:[1,"trimInputPrefix"],trimInputSuffix:[1,"trimInputSuffix"],trimInputWhitespace:[1,"trimInputWhitespace"]}})};var O=n=>({selected:n}),Se=n=>({"border border-danger":n}),P=n=>({"is-invalid":n}),Ie=n=>({"is-invalid border border-danger":n}),Te=n=>({"has-error":n});function Ee(n,r){if(n&1){let e=w();d(0,"a",12),x("click",function(){C(e);let a=u();return _(a.chooiceDetail("id"))}),c(1," ID "),l()}if(n&2){let e=u();m("ngClass",M(1,O,e.tabState()=="id"))}}function Pe(n,r){if(n&1&&ee(0,"option",21),n&2){let e=r.$implicit;m("value",e.Name)}}function De(n,r){if(n&1&&(d(0,"div",24)(1,"i",47),c(2," Name is mandatory."),l()()),n&2){u();let e=h(26);m("ngClass",M(1,Te,e.touched&&e.invalid))}}function Ve(n,r){n&1&&(d(0,"div",40),c(1," Mobile Phone is mandatory "),l())}function Oe(n,r){if(n&1&&(d(0,"div",40),c(1),l()),n&2){u(2);let e=h(38);o(),N(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}function We(n,r){if(n&1&&(p(0,Ve,2,0,"div",40),p(1,Oe,2,1,"div",40)),n&2){u();let e=h(38);g(e.getError("required")&&!e.getError("minLength")?0:-1),o(),g(e.getError("minLength")?1:-1)}}function Fe(n,r){n&1&&(d(0,"div",40),c(1," Email must be a valid email address "),l())}function Le(n,r){n&1&&(d(0,"div",40),c(1,"Email is mandatory"),l())}function ke(n,r){if(n&1&&(p(0,Fe,2,0,"div",40),p(1,Le,2,0,"div",40)),n&2){u();let e=h(45);g(e.errors!=null&&e.errors.email?0:-1),o(),g(e.errors!=null&&e.errors.required?1:-1)}}function Be(n,r){n&1&&(d(0,"div",40),c(1," Birthdate is mandatory "),l())}function qe(n,r){if(n&1&&p(0,Be,2,0,"div",40),n&2){u();let e=h(3);g(e.invalid?0:-1)}}function Re(n,r){if(n&1){let e=w();d(0,"div",33)(1,"div",17)(2,"datepicker",48,6),y("ngModelChange",function(a){C(e);let s=u();return b(s.customer().Birthdate,a)||(s.customer().Birthdate=a),_(a)}),l(),p(4,qe,1,1),l()()}if(n&2){let e=h(3),t=u();o(2),f("ngModel",t.customer().Birthdate),m("required",t.requiredField().Birthdate)("ngClass",M(4,P,e.invalid&&(e.dirty||e.touched))),o(2),g(e.dirty||e.touched?4:-1)}}function Ge(n,r){if(n&1&&(d(0,"div",40),c(1),l()),n&2){let e=u(2);o(),N(" ",e.type()=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function Ae(n,r){if(n&1){let e=w();d(0,"div",33)(1,"div",17)(2,"input",49,7),y("ngModelChange",function(a){C(e);let s=u();return b(s.customer().Code,a)||(s.customer().Code=a),_(a)}),l(),p(4,Ge,2,1,"div",40),d(5,"label",50),c(6),l()()()}if(n&2){let e=h(3),t=u();o(2),m("placeholder",R("",t.type()=="supplier"?"Supplier":"Member"," code")),f("ngModel",t.customer().Code),m("required",t.requiredField().Code)("ngClass",M(7,P,e.invalid&&(e.dirty||e.touched))),o(2),g(e.invalid&&(e.dirty||e.touched)?4:-1),o(2),N(" ",t.type()=="supplier"?"Supplier":"Member"," Code ")}}function He(n,r){if(n&1&&(d(0,"div",40),c(1),l()),n&2){let e=u(2);o(),N(" ",e.type()=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function je(n,r){if(n&1){let e=w();d(0,"div",36)(1,"div",17)(2,"input",49,7),y("ngModelChange",function(a){C(e);let s=u();return b(s.customer().Code,a)||(s.customer().Code=a),_(a)}),l(),p(4,He,2,1,"div",40),d(5,"label",50),c(6),l()()()}if(n&2){let e=h(3),t=u();o(2),m("placeholder",R("",t.type()=="supplier"?"Supplier":"Member"," code")),f("ngModel",t.customer().Code),m("required",t.requiredField().Code)("ngClass",M(7,P,e.invalid&&(e.dirty||e.touched))),o(2),g(e.invalid&&(e.dirty||e.touched)?4:-1),o(2),N(" ",t.type()=="supplier"?"Supplier":"Member"," Code ")}}function Ke(n,r){if(n&1){let e=w();d(0,"div",36)(1,"div",51)(2,"ng-select",52),y("ngModelChange",function(a){C(e);let s=u();return b(s.customer().Group,a)||(s.customer().Group=a),_(a)}),l(),d(3,"label",53),c(4,"Group"),l()()()}if(n&2){let e,t=u();o(),m("ngClass",M(3,O,t.isNotEmpty(t.customer().Group))),o(),f("ngModel",t.customer().Group),m("items",(e=t.options())==null?null:e.Groups)}}function Ue(n,r){if(n&1){let e=w();d(0,"div",36)(1,"div",51)(2,"ng-select",54),y("ngModelChange",function(a){C(e);let s=u();return b(s.customer().City,a)||(s.customer().City=a),_(a)}),l(),d(3,"label",55),c(4,"City"),l()()()}if(n&2){let e,t=u();o(),m("ngClass",M(3,O,t.isNotEmpty(t.customer().City))),o(),f("ngModel",t.customer().City),m("items",(e=t.options())==null?null:e.Cities)}}function ze(n,r){n&1&&(d(0,"div",40),c(1,"Address is mandatory."),l())}function Je(n,r){if(n&1&&(d(0,"div",40),c(1),l()),n&2){u();let e=h(68);o(),N(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}var ve=class n{constructor(r,e,t){this.dialogRef=r;this.data=e;this._CustomerHttpService=t;this.modalConfig.set(new G),this.modalConfig.update(a=>V(D({},a),{title:this.data.title,customWidth:"650px"})),this.options.set(this.data.options),this.options().Genders||this.options.update(a=>V(D({},a),{Genders:[{Key:0,Value:"Male"},{Key:1,Value:"Female"}]})),this.config.set(this.data.config),this.type.set(this.data.type)}dialogRef;data;_CustomerHttpService;customer=te(new B);options=v(null);type=v("");config=v(null);more=v(!1);modalConfig=v(new G);detailVisible=v(!1);tabState=v("general");requiredField=v({Mobile:!1,Email:!1,Code:!1,Address:!1,SignUpOutlet:!1,Birthdate:!1});ngOnInit(){this.customer.set(new B),this.initFirstName(),this.customer.update(r=>V(D({},r),{Gender:this.config().DefaultValue.Gender})),this.more.set(!1),this.initRequiredField()}initRequiredField(){let r=this.config().Advance?.RequiredFields;r&&this.type()!="supplier"&&r.forEach(e=>{this.requiredField.update(t=>(t[e]=!0,t))})}initFirstName(){this.data&&this.data.inputTextName&&this.customer.update(r=>V(D({},r),{FirstName:this.data.inputTextName}))}onOk(r){if(r.form?.markAllAsTouched(),r.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(r){this.tabState.set(r)}isNotEmpty(r){return oe.IsNotEmpty(r)||r==0}static \u0275fac=function(e){return new(e||n)(F(be),F(ye),F(Me))};static \u0275cmp=J({type:n,selectors:[["POS-modal-customer"]],inputs:{customer:[1,"customer"]},outputs:{customer:"customerChange"},standalone:!1,decls:81,vars:55,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"],[1,"btn","btn-link",3,"ngClass"],[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"],[1,"col-md-5","mt-4"],["type","text","id","FirstName","name","FirstName","placeholder","First Name","trimInput","",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],[3,"ngClass"],["for","FirstName"],["type","text","id","LastName","name","LastName","placeholder","Last Name","trimInput","",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"],[1,"col-6","mt-4"],["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"],[1,"col-4","mt-4"],[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"],["name","race","bindLabel","Name","bindValue","ID","placeholder","Race","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"control-label","text-danger"],["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,"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 a=w();d(0,"modal-material",8),x("onOk",function(){C(a);let i=h(4);return _(t.onOk(i))})("onCancel",function(){return t.dialogRef.close()})("onClose",function(){return t.dialogRef.close()}),d(1,"content")(2,"div",9)(3,"form",10,0)(5,"div",11)(6,"div")(7,"a",12),x("click",function(){return t.chooiceDetail("general")}),c(8," General "),l(),d(9,"a",12),x("click",function(){return t.chooiceDetail("detail")}),c(10," Detail "),l(),p(11,Ee,2,3,"a",13),l()(),d(12,"div")(13,"div",14)(14,"div",15)(15,"div",16)(16,"div",17)(17,"input",18),y("ngModelChange",function(i){return C(a),b(t.customer().Title,i)||(t.customer().Title=i),_(i)}),l(),d(18,"label",19),c(19,"Title"),l(),d(20,"datalist",20),Z(21,Pe,1,1,"option",21,Y),l()()(),d(23,"div",22)(24,"div",17)(25,"input",23,1),y("ngModelChange",function(i){return C(a),b(t.customer().FirstName,i)||(t.customer().FirstName=i),_(i)}),l(),p(27,De,3,3,"div",24),d(28,"label",25),c(29,"First Name"),l()()(),d(30,"div",22)(31,"div",17)(32,"input",26),y("ngModelChange",function(i){return C(a),b(t.customer().LastName,i)||(t.customer().LastName=i),_(i)}),l(),d(33,"label",27),c(34,"Last Name"),l()()(),d(35,"div",28)(36,"div",17)(37,"input",29,2),y("ngModelChange",function(i){return C(a),b(t.customer().Mobile,i)||(t.customer().Mobile=i),_(i)}),l(),p(39,We,2,2),d(40,"label",30),c(41,"Mobile"),l()()(),d(42,"div",28)(43,"div",17)(44,"input",31,3),y("ngModelChange",function(i){return C(a),b(t.customer().Email,i)||(t.customer().Email=i),_(i)}),l(),p(46,ke,2,2),d(47,"label",32),c(48,"Email"),l()()(),p(49,Re,5,6,"div",33),p(50,Ae,7,9,"div",33),d(51,"div",28)(52,"ng-select",34),y("ngModelChange",function(i){return C(a),b(t.customer().Gender,i)||(t.customer().Gender=i),_(i)}),l()()(),d(53,"div",35),p(54,je,7,9,"div",36),p(55,Ke,5,5,"div",36),p(56,Ue,5,5,"div",36),d(57,"div",37)(58,"div",17)(59,"textarea",38,4),y("ngModelChange",function(i){return C(a),b(t.customer().Address,i)||(t.customer().Address=i),_(i)}),l(),d(61,"label",39),c(62,"Address"),l(),p(63,ze,2,0,"div",40),l()()(),d(64,"div",35)(65,"div",28)(66,"div",17)(67,"input",41,5),y("ngModelChange",function(i){return C(a),b(t.customer().NationalIDNumber,i)||(t.customer().NationalIDNumber=i),_(i)}),l(),p(69,Je,2,1,"div",40),d(70,"label",42),c(71,"National ID"),l()()(),d(72,"div",28)(73,"div",17)(74,"input",43),y("ngModelChange",function(i){return C(a),b(t.customer().TaxIDNumber,i)||(t.customer().TaxIDNumber=i),_(i)}),l(),d(75,"label",44),c(76,"Tax ID"),l()()(),d(77,"div",28)(78,"ng-select",45),y("ngModelChange",function(i){return C(a),b(t.customer().NationalityID,i)||(t.customer().NationalityID=i),_(i)}),l()(),d(79,"div",33)(80,"ng-select",46),y("ngModelChange",function(i){return C(a),b(t.customer().RaceID,i)||(t.customer().RaceID=i),_(i)}),l()()()()()()()()()}if(e&2){let a,s,i,K,W=h(26),S=h(38),I=h(45),T=h(60),E=h(68);m("config",t.modalConfig()),o(7),m("ngClass",M(41,O,t.tabState()=="general")),o(2),m("ngClass",M(43,O,t.tabState()=="detail")),o(2),g(t.type()!="supplier"?11:-1),o(3),m("hidden",t.tabState()!="general"),o(3),f("ngModel",t.customer().Title),o(4),$((a=t.options())==null?null:a.Titles),o(4),m("ngClass",M(45,Se,W.touched&&W.invalid)),f("ngModel",t.customer().FirstName),m("required",!0),o(2),g(W.touched&&W.invalid?27:-1),o(5),f("ngModel",t.customer().LastName),o(5),f("ngModel",t.customer().Mobile),m("required",t.requiredField().Mobile)("ngClass",M(47,P,S.invalid&&(S.dirty||S.touched))),o(2),g(S.invalid&&(S.dirty||S.touched)?39:-1),o(5),m("ngClass",M(49,Ie,I.invalid&&(I.dirty||I.touched))),f("ngModel",t.customer().Email),m("required",t.requiredField().Email),o(2),g(I.invalid&&(I.dirty||I.touched)?46:-1),o(3),g(t.type()!="supplier"?49:-1),o(),g(t.type()=="supplier"?50:-1),o(2),f("ngModel",t.customer().Gender),m("items",(s=t.options())==null?null:s.Genders),o(),m("hidden",t.tabState()!="detail"),o(),g(t.type()!="supplier"?54:-1),o(),g(t.type()!="supplier"?55:-1),o(),g(t.type()!="supplier"?56:-1),o(3),m("rows",t.type()!="supplier"?6:9),f("ngModel",t.customer().Address),m("required",t.requiredField().Address)("ngClass",M(51,P,T.invalid&&(T.dirty||T.touched))),o(4),g(T.invalid&&(T.dirty||T.touched)?63:-1),o(),m("hidden",t.tabState()!="id"),o(3),f("ngModel",t.customer().NationalIDNumber),m("ngClass",M(53,P,E.invalid&&(E.dirty||E.touched))),o(2),g(E.invalid&&(E.dirty||E.touched)?69:-1),o(5),f("ngModel",t.customer().TaxIDNumber),o(4),f("ngModel",t.customer().NationalityID),m("items",(i=t.options())==null?null:i.Nationalities),o(2),f("ngModel",t.customer().RaceID),m("items",(K=t.options())==null?null:K.Races)}},dependencies:()=>[ne,A,ce,ue,pe,re,le,de,ge,Ce,me,se,j,H,k],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}"]})},we=class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Q({type:n});static \u0275inj=U({imports:[ie,he,A,_e,fe,j,H]})},B=class{Title;FirstName;LastName;Name;Gender;Mobile;Email;TaxIDNumber;TaxID;Group;Code;City;Address;Birthdate;MemberIdentification;NationalIDNumber;NationalityID;RaceID;CreatorEntityID};export{k as a,ve as b,we as c,B as d};
|
|
1
|
+
import{b as Me}from"./chunk-PJHXZWSV.js";import{p as j}from"./chunk-SCH7M36Q.js";import{O as he}from"./chunk-UI32X6QC.js";import{d as H}from"./chunk-BUIP3UCE.js";import{a as be,b as ye}from"./chunk-3V6FZIJD.js";import{b as G,c as A}from"./chunk-BKOMMH62.js";import{A as ge,B as Ce,F as _e,G as fe,c as re,g as ae,h as le,i as de,l as se,p as me,q as ce,y as ue,z as pe}from"./chunk-AJDQZ346.js";import{a as oe}from"./chunk-PPTZHIIZ.js";import{$a as F,Ab as Y,Ba as v,Bb as Z,Cb as $,Db as m,Eb as d,Fb as l,Ga as z,Gb as ee,Pb as w,Sb as x,Tc as L,Ua as o,Ub as u,Yc as te,cc as h,db as J,eb as Q,fb as X,hc as c,jc as N,kd as ne,la as U,mc as f,nc as b,oa as q,oc as y,ra as C,sa as _,tc as R,wb as p,xd as ie,yb as g,yc as M}from"./chunk-7D344CRC.js";import{a as D,b as V}from"./chunk-NF7PG5F2.js";var k=class n{elementRef=q(z);control=q(ae,{optional:!0,self:!0});trimInputPrefix=L(null);trimInputSuffix=L(null);trimInputWhitespace=L(!0);onBlur(){let r=this.elementRef.nativeElement;if(!r)return;let e=r.value??"",t=e,a=this.trimInputPrefix(),s=this.trimInputSuffix(),i=this.trimInputWhitespace();i&&(e=e.trim()),a&&e.startsWith(a)&&(e=e.slice(a.length)),s&&e.endsWith(s)&&(e=e.slice(0,e.length-s.length)),i&&(e=e.trim()),e!==t&&(r.value=e,this.control?.control?(this.control.control.setValue(e,{emitEvent:!1}),this.control.control.updateValueAndValidity()):r.dispatchEvent(new Event("input",{bubbles:!0})))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=X({type:n,selectors:[["","trimInput",""]],hostBindings:function(e,t){e&1&&x("blur",function(){return t.onBlur()})},inputs:{trimInputPrefix:[1,"trimInputPrefix"],trimInputSuffix:[1,"trimInputSuffix"],trimInputWhitespace:[1,"trimInputWhitespace"]}})};var O=n=>({selected:n}),Se=n=>({"border border-danger":n}),P=n=>({"is-invalid":n}),Ie=n=>({"is-invalid border border-danger":n}),Te=n=>({"has-error":n});function Ee(n,r){if(n&1){let e=w();d(0,"a",12),x("click",function(){C(e);let a=u();return _(a.chooiceDetail("id"))}),c(1," ID "),l()}if(n&2){let e=u();m("ngClass",M(1,O,e.tabState()=="id"))}}function Pe(n,r){if(n&1&&ee(0,"option",21),n&2){let e=r.$implicit;m("value",e.Name)}}function De(n,r){if(n&1&&(d(0,"div",24)(1,"i",47),c(2," Name is mandatory."),l()()),n&2){u();let e=h(26);m("ngClass",M(1,Te,e.touched&&e.invalid))}}function Ve(n,r){n&1&&(d(0,"div",40),c(1," Mobile Phone is mandatory "),l())}function Oe(n,r){if(n&1&&(d(0,"div",40),c(1),l()),n&2){u(2);let e=h(38);o(),N(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}function We(n,r){if(n&1&&(p(0,Ve,2,0,"div",40),p(1,Oe,2,1,"div",40)),n&2){u();let e=h(38);g(e.getError("required")&&!e.getError("minLength")?0:-1),o(),g(e.getError("minLength")?1:-1)}}function Fe(n,r){n&1&&(d(0,"div",40),c(1," Email must be a valid email address "),l())}function Le(n,r){n&1&&(d(0,"div",40),c(1,"Email is mandatory"),l())}function ke(n,r){if(n&1&&(p(0,Fe,2,0,"div",40),p(1,Le,2,0,"div",40)),n&2){u();let e=h(45);g(e.errors!=null&&e.errors.email?0:-1),o(),g(e.errors!=null&&e.errors.required?1:-1)}}function Be(n,r){n&1&&(d(0,"div",40),c(1," Birthdate is mandatory "),l())}function qe(n,r){if(n&1&&p(0,Be,2,0,"div",40),n&2){u();let e=h(3);g(e.invalid?0:-1)}}function Re(n,r){if(n&1){let e=w();d(0,"div",33)(1,"div",17)(2,"datepicker",48,6),y("ngModelChange",function(a){C(e);let s=u();return b(s.customer().Birthdate,a)||(s.customer().Birthdate=a),_(a)}),l(),p(4,qe,1,1),l()()}if(n&2){let e=h(3),t=u();o(2),f("ngModel",t.customer().Birthdate),m("required",t.requiredField().Birthdate)("ngClass",M(4,P,e.invalid&&(e.dirty||e.touched))),o(2),g(e.dirty||e.touched?4:-1)}}function Ge(n,r){if(n&1&&(d(0,"div",40),c(1),l()),n&2){let e=u(2);o(),N(" ",e.type()=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function Ae(n,r){if(n&1){let e=w();d(0,"div",33)(1,"div",17)(2,"input",49,7),y("ngModelChange",function(a){C(e);let s=u();return b(s.customer().Code,a)||(s.customer().Code=a),_(a)}),l(),p(4,Ge,2,1,"div",40),d(5,"label",50),c(6),l()()()}if(n&2){let e=h(3),t=u();o(2),m("placeholder",R("",t.type()=="supplier"?"Supplier":"Member"," code")),f("ngModel",t.customer().Code),m("required",t.requiredField().Code)("ngClass",M(7,P,e.invalid&&(e.dirty||e.touched))),o(2),g(e.invalid&&(e.dirty||e.touched)?4:-1),o(2),N(" ",t.type()=="supplier"?"Supplier":"Member"," Code ")}}function He(n,r){if(n&1&&(d(0,"div",40),c(1),l()),n&2){let e=u(2);o(),N(" ",e.type()=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function je(n,r){if(n&1){let e=w();d(0,"div",36)(1,"div",17)(2,"input",49,7),y("ngModelChange",function(a){C(e);let s=u();return b(s.customer().Code,a)||(s.customer().Code=a),_(a)}),l(),p(4,He,2,1,"div",40),d(5,"label",50),c(6),l()()()}if(n&2){let e=h(3),t=u();o(2),m("placeholder",R("",t.type()=="supplier"?"Supplier":"Member"," code")),f("ngModel",t.customer().Code),m("required",t.requiredField().Code)("ngClass",M(7,P,e.invalid&&(e.dirty||e.touched))),o(2),g(e.invalid&&(e.dirty||e.touched)?4:-1),o(2),N(" ",t.type()=="supplier"?"Supplier":"Member"," Code ")}}function Ke(n,r){if(n&1){let e=w();d(0,"div",36)(1,"div",51)(2,"ng-select",52),y("ngModelChange",function(a){C(e);let s=u();return b(s.customer().Group,a)||(s.customer().Group=a),_(a)}),l(),d(3,"label",53),c(4,"Group"),l()()()}if(n&2){let e,t=u();o(),m("ngClass",M(3,O,t.isNotEmpty(t.customer().Group))),o(),f("ngModel",t.customer().Group),m("items",(e=t.options())==null?null:e.Groups)}}function Ue(n,r){if(n&1){let e=w();d(0,"div",36)(1,"div",51)(2,"ng-select",54),y("ngModelChange",function(a){C(e);let s=u();return b(s.customer().City,a)||(s.customer().City=a),_(a)}),l(),d(3,"label",55),c(4,"City"),l()()()}if(n&2){let e,t=u();o(),m("ngClass",M(3,O,t.isNotEmpty(t.customer().City))),o(),f("ngModel",t.customer().City),m("items",(e=t.options())==null?null:e.Cities)}}function ze(n,r){n&1&&(d(0,"div",40),c(1,"Address is mandatory."),l())}function Je(n,r){if(n&1&&(d(0,"div",40),c(1),l()),n&2){u();let e=h(68);o(),N(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}var ve=class n{constructor(r,e,t){this.dialogRef=r;this.data=e;this._CustomerHttpService=t;this.modalConfig.set(new G),this.modalConfig.update(a=>V(D({},a),{title:this.data.title,customWidth:"650px"})),this.options.set(this.data.options),this.options().Genders||this.options.update(a=>V(D({},a),{Genders:[{Key:0,Value:"Male"},{Key:1,Value:"Female"}]})),this.config.set(this.data.config),this.type.set(this.data.type)}dialogRef;data;_CustomerHttpService;customer=te(new B);options=v(null);type=v("");config=v(null);more=v(!1);modalConfig=v(new G);detailVisible=v(!1);tabState=v("general");requiredField=v({Mobile:!1,Email:!1,Code:!1,Address:!1,SignUpOutlet:!1,Birthdate:!1});ngOnInit(){this.customer.set(new B),this.initFirstName(),this.customer.update(r=>V(D({},r),{Gender:this.config().DefaultValue.Gender})),this.more.set(!1),this.initRequiredField()}initRequiredField(){let r=this.config().Advance?.RequiredFields;r&&this.type()!="supplier"&&r.forEach(e=>{this.requiredField.update(t=>(t[e]=!0,t))})}initFirstName(){this.data&&this.data.inputTextName&&this.customer.update(r=>V(D({},r),{FirstName:this.data.inputTextName}))}onOk(r){if(r.form?.markAllAsTouched(),r.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(r){this.tabState.set(r)}isNotEmpty(r){return oe.IsNotEmpty(r)||r==0}static \u0275fac=function(e){return new(e||n)(F(be),F(ye),F(Me))};static \u0275cmp=J({type:n,selectors:[["POS-modal-customer"]],inputs:{customer:[1,"customer"]},outputs:{customer:"customerChange"},standalone:!1,decls:81,vars:55,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"],[1,"btn","btn-link",3,"ngClass"],[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"],[1,"col-md-5","mt-4"],["type","text","id","FirstName","name","FirstName","placeholder","First Name","trimInput","",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],[3,"ngClass"],["for","FirstName"],["type","text","id","LastName","name","LastName","placeholder","Last Name","trimInput","",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"],[1,"col-6","mt-4"],["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"],[1,"col-4","mt-4"],[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"],["name","race","bindLabel","Name","bindValue","ID","placeholder","Race","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"control-label","text-danger"],["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,"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 a=w();d(0,"modal-material",8),x("onOk",function(){C(a);let i=h(4);return _(t.onOk(i))})("onCancel",function(){return t.dialogRef.close()})("onClose",function(){return t.dialogRef.close()}),d(1,"content")(2,"div",9)(3,"form",10,0)(5,"div",11)(6,"div")(7,"a",12),x("click",function(){return t.chooiceDetail("general")}),c(8," General "),l(),d(9,"a",12),x("click",function(){return t.chooiceDetail("detail")}),c(10," Detail "),l(),p(11,Ee,2,3,"a",13),l()(),d(12,"div")(13,"div",14)(14,"div",15)(15,"div",16)(16,"div",17)(17,"input",18),y("ngModelChange",function(i){return C(a),b(t.customer().Title,i)||(t.customer().Title=i),_(i)}),l(),d(18,"label",19),c(19,"Title"),l(),d(20,"datalist",20),Z(21,Pe,1,1,"option",21,Y),l()()(),d(23,"div",22)(24,"div",17)(25,"input",23,1),y("ngModelChange",function(i){return C(a),b(t.customer().FirstName,i)||(t.customer().FirstName=i),_(i)}),l(),p(27,De,3,3,"div",24),d(28,"label",25),c(29,"First Name"),l()()(),d(30,"div",22)(31,"div",17)(32,"input",26),y("ngModelChange",function(i){return C(a),b(t.customer().LastName,i)||(t.customer().LastName=i),_(i)}),l(),d(33,"label",27),c(34,"Last Name"),l()()(),d(35,"div",28)(36,"div",17)(37,"input",29,2),y("ngModelChange",function(i){return C(a),b(t.customer().Mobile,i)||(t.customer().Mobile=i),_(i)}),l(),p(39,We,2,2),d(40,"label",30),c(41,"Mobile"),l()()(),d(42,"div",28)(43,"div",17)(44,"input",31,3),y("ngModelChange",function(i){return C(a),b(t.customer().Email,i)||(t.customer().Email=i),_(i)}),l(),p(46,ke,2,2),d(47,"label",32),c(48,"Email"),l()()(),p(49,Re,5,6,"div",33),p(50,Ae,7,9,"div",33),d(51,"div",28)(52,"ng-select",34),y("ngModelChange",function(i){return C(a),b(t.customer().Gender,i)||(t.customer().Gender=i),_(i)}),l()()(),d(53,"div",35),p(54,je,7,9,"div",36),p(55,Ke,5,5,"div",36),p(56,Ue,5,5,"div",36),d(57,"div",37)(58,"div",17)(59,"textarea",38,4),y("ngModelChange",function(i){return C(a),b(t.customer().Address,i)||(t.customer().Address=i),_(i)}),l(),d(61,"label",39),c(62,"Address"),l(),p(63,ze,2,0,"div",40),l()()(),d(64,"div",35)(65,"div",28)(66,"div",17)(67,"input",41,5),y("ngModelChange",function(i){return C(a),b(t.customer().NationalIDNumber,i)||(t.customer().NationalIDNumber=i),_(i)}),l(),p(69,Je,2,1,"div",40),d(70,"label",42),c(71,"National ID"),l()()(),d(72,"div",28)(73,"div",17)(74,"input",43),y("ngModelChange",function(i){return C(a),b(t.customer().TaxIDNumber,i)||(t.customer().TaxIDNumber=i),_(i)}),l(),d(75,"label",44),c(76,"Tax ID"),l()()(),d(77,"div",28)(78,"ng-select",45),y("ngModelChange",function(i){return C(a),b(t.customer().NationalityID,i)||(t.customer().NationalityID=i),_(i)}),l()(),d(79,"div",33)(80,"ng-select",46),y("ngModelChange",function(i){return C(a),b(t.customer().RaceID,i)||(t.customer().RaceID=i),_(i)}),l()()()()()()()()()}if(e&2){let a,s,i,K,W=h(26),S=h(38),I=h(45),T=h(60),E=h(68);m("config",t.modalConfig()),o(7),m("ngClass",M(41,O,t.tabState()=="general")),o(2),m("ngClass",M(43,O,t.tabState()=="detail")),o(2),g(t.type()!="supplier"?11:-1),o(3),m("hidden",t.tabState()!="general"),o(3),f("ngModel",t.customer().Title),o(4),$((a=t.options())==null?null:a.Titles),o(4),m("ngClass",M(45,Se,W.touched&&W.invalid)),f("ngModel",t.customer().FirstName),m("required",!0),o(2),g(W.touched&&W.invalid?27:-1),o(5),f("ngModel",t.customer().LastName),o(5),f("ngModel",t.customer().Mobile),m("required",t.requiredField().Mobile)("ngClass",M(47,P,S.invalid&&(S.dirty||S.touched))),o(2),g(S.invalid&&(S.dirty||S.touched)?39:-1),o(5),m("ngClass",M(49,Ie,I.invalid&&(I.dirty||I.touched))),f("ngModel",t.customer().Email),m("required",t.requiredField().Email),o(2),g(I.invalid&&(I.dirty||I.touched)?46:-1),o(3),g(t.type()!="supplier"?49:-1),o(),g(t.type()=="supplier"?50:-1),o(2),f("ngModel",t.customer().Gender),m("items",(s=t.options())==null?null:s.Genders),o(),m("hidden",t.tabState()!="detail"),o(),g(t.type()!="supplier"?54:-1),o(),g(t.type()!="supplier"?55:-1),o(),g(t.type()!="supplier"?56:-1),o(3),m("rows",t.type()!="supplier"?6:9),f("ngModel",t.customer().Address),m("required",t.requiredField().Address)("ngClass",M(51,P,T.invalid&&(T.dirty||T.touched))),o(4),g(T.invalid&&(T.dirty||T.touched)?63:-1),o(),m("hidden",t.tabState()!="id"),o(3),f("ngModel",t.customer().NationalIDNumber),m("ngClass",M(53,P,E.invalid&&(E.dirty||E.touched))),o(2),g(E.invalid&&(E.dirty||E.touched)?69:-1),o(5),f("ngModel",t.customer().TaxIDNumber),o(4),f("ngModel",t.customer().NationalityID),m("items",(i=t.options())==null?null:i.Nationalities),o(2),f("ngModel",t.customer().RaceID),m("items",(K=t.options())==null?null:K.Races)}},dependencies:()=>[ne,A,ce,ue,pe,re,le,de,ge,Ce,me,se,j,H,k],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}"]})},we=class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Q({type:n});static \u0275inj=U({imports:[ie,he,A,_e,fe,j,H]})},B=class{Title;FirstName;LastName;Name;Gender;Mobile;Email;TaxIDNumber;TaxID;Group;Code;City;Address;Birthdate;MemberIdentification;NationalIDNumber;NationalityID;RaceID;CreatorEntityID};export{k as a,ve as b,we as c,B as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as J}from"./chunk-WHKDTNK2.js";import"./chunk-WM2CE23W.js";import{a as G}from"./chunk-
|
|
1
|
+
import{a as J}from"./chunk-WHKDTNK2.js";import"./chunk-WM2CE23W.js";import{a as G}from"./chunk-MH2FTMDJ.js";import"./chunk-ROZU3QVN.js";import"./chunk-DUDJZAAO.js";import"./chunk-ONECCHQ5.js";import"./chunk-GKGUNK27.js";import"./chunk-QSFZAHQ2.js";import"./chunk-TGQEO6S3.js";import"./chunk-ONKLHHM3.js";import"./chunk-X2OQT5MH.js";import"./chunk-XTOFMSDQ.js";import"./chunk-ZM456L6A.js";import"./chunk-F5JDPCBG.js";import"./chunk-LN7LGRLI.js";import{f as q,g as z}from"./chunk-JMQTA3D2.js";import"./chunk-RGXXTPXX.js";import{a as A}from"./chunk-4VU6ZIZK.js";import"./chunk-3DC26I3D.js";import"./chunk-UHM2XEMM.js";import"./chunk-WJOBIYMD.js";import"./chunk-4BITXMRY.js";import"./chunk-2AOZZW2I.js";import"./chunk-TM2I5PAG.js";import{a as j,b as k}from"./chunk-JXEPD3CF.js";import"./chunk-PPMQE2JW.js";import"./chunk-UI32X6QC.js";import"./chunk-OVCNCVGF.js";import"./chunk-PWMMCY25.js";import"./chunk-OKQYRKDJ.js";import"./chunk-SIAVPMSP.js";import"./chunk-N5VS2V7L.js";import"./chunk-3V6FZIJD.js";import"./chunk-DEJ5V3PF.js";import"./chunk-T45W4CQR.js";import"./chunk-OK7LFGGQ.js";import"./chunk-VGLTFO5N.js";import"./chunk-UTSVZMZD.js";import"./chunk-BP6PECKT.js";import"./chunk-GNDUQZGK.js";import"./chunk-7KKUTTZ3.js";import"./chunk-ZS4XLRDB.js";import"./chunk-TYEI4SD2.js";import"./chunk-BKOMMH62.js";import"./chunk-7ESJNFN4.js";import"./chunk-JTDKDDTJ.js";import"./chunk-3TKWEWIY.js";import"./chunk-SXVOKLC4.js";import{F as R,h as V,p as W}from"./chunk-AJDQZ346.js";import"./chunk-KA5UQNW5.js";import"./chunk-WONVJLUQ.js";import"./chunk-YY6WVNU4.js";import"./chunk-KLHHVIRS.js";import"./chunk-PPTZHIIZ.js";import"./chunk-QGRO3YRJ.js";import{n as B,q as H}from"./chunk-QGYXJUX3.js";import{$a as p,Bb as M,Cb as N,Db as s,Eb as i,Fb as n,Fc as h,Gc as F,Hc as T,Lc as E,Pb as _,Sb as w,Ua as m,Ub as v,db as C,hc as o,ib as D,ic as c,jb as I,mc as S,nc as b,oc as y,ra as g,sa as f,sd as P,ud as L,xd as O,zb as x}from"./chunk-7D344CRC.js";import"./chunk-NF7PG5F2.js";function U(r,u){if(r&1){let e=_();i(0,"div")(1,"div",9)(2,"h6"),o(3,"Outlet"),n(),i(4,"outlet-selector",10),y("ngModelChange",function(t){g(e);let l=v();return b(l.pageData().Filter.ListIDs,t)||(l.pageData().Filter.ListIDs=t),f(t)}),n()()()}if(r&2){let e=v();m(4),s("accessType",2),S("ngModel",e.pageData().Filter.ListIDs),s("multiple",!0)}}function X(r,u){if(r&1&&(i(0,"tr")(1,"td"),o(2),n(),i(3,"td"),o(4),h(5,"number"),n(),i(6,"td"),o(7),h(8,"date"),n()()),r&2){let e=u.$implicit;m(2),c(e==null?null:e.EntityName),m(2),c(F(5,3,e==null?null:e.Number)),m(3),c(T(8,5,e==null?null:e.Modified,"dd MMM yyyy HH:mm"))}}var K=class r extends G{constructor(e,a,t){super(e,a,"Setup/Data/TransactionInvoiceNumber",null,t);this.httpService=a}httpService;preGetList(){let e=this.pageData().Filter?.ListIDs?this.pageData().Filter?.ListIDs:[];this.pageData().Filter={ListIDs:e}}static \u0275fac=function(a){return new(a||r)(p(A),p(H),p(B))};static \u0275cmp=C({type:r,selectors:[["app-invoice-numbering"]],features:[D],decls:19,vars:4,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","isFilterOnDropdown","hideSearchBox","filter"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],["matTooltip","Next invoice number index to be generated",2,"width","200px"],[2,"width","200px"],[1,"dialog-filter"],["placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","multiple"]],template:function(a,t){if(a&1){let l=_();i(0,"mainpanel-cmp",1),w("onSubmit",function(){return t.searchFromPageOne()}),y("filterChange",function(d){return g(l),b(t.pageData().Filter,d)||(t.pageData().Filter=d),f(d)}),i(1,"filters"),I(2,U,5,3,"ng-template",null,0,E),n(),i(4,"content")(5,"div",2)(6,"div",3)(7,"table",4)(8,"thead",5)(9,"tr",6)(10,"th"),o(11,"Outlet"),n(),i(12,"th",7),o(13," Next Number "),n(),i(14,"th",8),o(15,"Modified"),n()()(),i(16,"tbody"),M(17,X,9,8,"tr",null,x),n()()()()()()}if(a&2){let l;s("pageData",t.menuData())("isFilterOnDropdown",!1)("hideSearchBox",!0),S("filter",t.pageData().Filter),m(17),N((l=t.data())==null?null:l.Data)}},dependencies:[O,z,q,J,R,V,W,k,j,L,P],encapsulation:2})};export{K as InvoiceNumberingComponent};
|