dealpos 25.41.2 → 25.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-HVMUCZ5I.js → chunk-24QKQISF.js} +1 -1
- package/browser/{chunk-PPWXHE7X.js → chunk-2BNZCUNP.js} +1 -1
- package/browser/{chunk-XU5SOTZS.js → chunk-2EXFDYJN.js} +1 -1
- package/browser/{chunk-F4FAZ5ZL.js → chunk-2J7JBH5Q.js} +1 -1
- package/browser/{chunk-QHX74QID.js → chunk-2MVRUWW3.js} +1 -1
- package/browser/{chunk-V3YO2TDM.js → chunk-2QXPXRI6.js} +1 -1
- package/browser/{chunk-ILF7FISN.js → chunk-2U6W2RNU.js} +1 -1
- package/browser/{chunk-FBH7LG5C.js → chunk-2XAVDG2R.js} +1 -1
- package/browser/{chunk-X4LYU5XA.js → chunk-36CZUBXB.js} +1 -1
- package/browser/{chunk-UBMYMSUW.js → chunk-3D3ELK7I.js} +1 -1
- package/browser/{chunk-XUVY2IO6.js → chunk-3FE73ETM.js} +1 -1
- package/browser/{chunk-3MDUYQJU.js → chunk-3ITPIAO7.js} +1 -1
- package/browser/{chunk-HV6ZFQAQ.js → chunk-3UUHT4HG.js} +1 -1
- package/browser/{chunk-HUMRIGHZ.js → chunk-46WFGTJC.js} +1 -1
- package/browser/{chunk-DE2STA2G.js → chunk-4XFE7DMP.js} +2 -2
- package/browser/{chunk-SDADDOK4.js → chunk-4XFOSHBI.js} +1 -1
- package/browser/{chunk-N5QWMN2M.js → chunk-5POWTQ67.js} +1 -1
- package/browser/{chunk-L2PLXSAS.js → chunk-5YBGDA3S.js} +1 -1
- package/browser/{chunk-OFGVLEEZ.js → chunk-62VDXLDP.js} +1 -1
- package/browser/{chunk-RP636SRQ.js → chunk-66BLMMOK.js} +1 -1
- package/browser/{chunk-KZTKYVZF.js → chunk-6JJK75CC.js} +1 -1
- package/browser/{chunk-34DMF3QT.js → chunk-74QSXJ42.js} +1 -1
- package/browser/{chunk-JY5XX3QX.js → chunk-757ORJKN.js} +2 -2
- package/browser/{chunk-45BASVRZ.js → chunk-7G4UPOQP.js} +1 -1
- package/browser/{chunk-BAORXMVG.js → chunk-A5XBD65B.js} +1 -1
- package/browser/{chunk-FRO3O6SU.js → chunk-A6ZPTR67.js} +1 -1
- package/browser/{chunk-PZID6T4A.js → chunk-AC24RKU6.js} +1 -1
- package/browser/{chunk-J3C5CJEH.js → chunk-AJHV3SOU.js} +1 -1
- package/browser/{chunk-H54MTXKN.js → chunk-ATAC2AND.js} +1 -1
- package/browser/{chunk-W4BJ4JBG.js → chunk-BH4ZE4CF.js} +1 -1
- package/browser/{chunk-MFIRFGE2.js → chunk-BYEI3PJ6.js} +1 -1
- package/browser/{chunk-DNLMIUJF.js → chunk-C3WNOC5F.js} +1 -1
- package/browser/{chunk-QE22VQQ7.js → chunk-CIR6MTD4.js} +1 -1
- package/browser/{chunk-ZKRFSVUW.js → chunk-CKRE4XBG.js} +2 -2
- package/browser/{chunk-SQC25JWL.js → chunk-D32G7TJK.js} +1 -1
- package/browser/{chunk-B73NC3X2.js → chunk-DAMKEWK6.js} +1 -1
- package/browser/{chunk-EPBMDUPY.js → chunk-DF2W7YLH.js} +1 -1
- package/browser/{chunk-SO3422SX.js → chunk-DMK6CUHM.js} +1 -1
- package/browser/{chunk-7USMFPWJ.js → chunk-DVOCY3CZ.js} +1 -1
- package/browser/{chunk-4E2C3JC6.js → chunk-E3SP7B7S.js} +1 -1
- package/browser/{chunk-LDEAORXA.js → chunk-EDZXH4US.js} +1 -1
- package/browser/{chunk-DINWVJP7.js → chunk-EGOF4SFE.js} +1 -1
- package/browser/{chunk-4VMXYBU3.js → chunk-EGRPFCSJ.js} +2 -2
- package/browser/{chunk-Z3OYXF5N.js → chunk-EKOCQO55.js} +1 -1
- package/browser/{chunk-YQEL63SF.js → chunk-ESHN7M3P.js} +1 -1
- package/browser/{chunk-CIEDGY7H.js → chunk-FKYQUS5M.js} +1 -1
- package/browser/{chunk-EYV7AZ42.js → chunk-GBAAG52Z.js} +1 -1
- package/browser/{chunk-UESUOHI6.js → chunk-GLQBFUNO.js} +1 -1
- package/browser/{chunk-GZ2EJLH3.js → chunk-GVGUEGZI.js} +1 -1
- package/browser/{chunk-BAL3IIDS.js → chunk-H4CCCG5S.js} +1 -1
- package/browser/{chunk-HBC5DBVS.js → chunk-HS3NKKBN.js} +1 -1
- package/browser/chunk-I3O4QZ4X.js +1 -0
- package/browser/{chunk-TNLZPCYK.js → chunk-I4I6FJDX.js} +1 -1
- package/browser/{chunk-ZC4V4XIM.js → chunk-INWN4VE6.js} +1 -1
- package/browser/{chunk-6IIF7CKF.js → chunk-JJ4V6TS4.js} +1 -1
- package/browser/{chunk-24OZA3GF.js → chunk-K4P3FNHD.js} +1 -1
- package/browser/{chunk-G7VSP6EW.js → chunk-K5AWJ3PF.js} +1 -1
- package/browser/{chunk-LID6CN6L.js → chunk-K6YXV6DF.js} +1 -1
- package/browser/{chunk-YDXY6QHK.js → chunk-KEUOT5UT.js} +1 -1
- package/browser/{chunk-E4R5MW6J.js → chunk-KHIJN7MP.js} +14 -14
- package/browser/{chunk-AFYPHUZX.js → chunk-KMO6SBV2.js} +1 -1
- package/browser/{chunk-RZFAYPJW.js → chunk-KST6UNFB.js} +1 -1
- package/browser/{chunk-NPTTEU4B.js → chunk-LE5ZGH7A.js} +1 -1
- package/browser/{chunk-5DDIIEIO.js → chunk-LFRP6C5Y.js} +1 -1
- package/browser/{chunk-D5LBI5TH.js → chunk-LIVWB266.js} +1 -1
- package/browser/{chunk-PJHIUSNN.js → chunk-LJW6HW5T.js} +1 -1
- package/browser/{chunk-AKTKAREU.js → chunk-LX2RVE4Q.js} +1 -1
- package/browser/{chunk-UERDXH3W.js → chunk-MEMBBEAI.js} +1 -1
- package/browser/{chunk-SSE7KV5S.js → chunk-MPJPWARV.js} +1 -1
- package/browser/{chunk-VP42CBUF.js → chunk-NOEPKA4W.js} +1 -1
- package/browser/{chunk-6CJCT6YT.js → chunk-NRDJEOWR.js} +1 -1
- package/browser/{chunk-AAR4B3HZ.js → chunk-NTIVPZGS.js} +2 -2
- package/browser/{chunk-IXHBD564.js → chunk-NVGKWF2G.js} +1 -1
- package/browser/{chunk-I45IV26L.js → chunk-NXN7NE47.js} +1 -1
- package/browser/{chunk-UZFW2WNI.js → chunk-O5RZTQKV.js} +1 -1
- package/browser/{chunk-Z7LRKY4R.js → chunk-OGI634A2.js} +1 -1
- package/browser/{chunk-TLWH7QTW.js → chunk-OINGZOF4.js} +1 -1
- package/browser/{chunk-QHYHGORX.js → chunk-OK4CL2M4.js} +1 -1
- package/browser/{chunk-R5IO2SN4.js → chunk-P6TNAQ2F.js} +1 -1
- package/browser/{chunk-3VQLYVVB.js → chunk-PRGXQYOR.js} +1 -1
- package/browser/{chunk-O3HYW3PV.js → chunk-QKCOYSSN.js} +1 -1
- package/browser/{chunk-2F5STFEV.js → chunk-QTXCHVAR.js} +1 -1
- package/browser/{chunk-Y3CUYCSX.js → chunk-RB6SQ4EV.js} +1 -1
- package/browser/{chunk-ZIQAYIU4.js → chunk-RNILXGHZ.js} +1 -1
- package/browser/{chunk-ZFNJGBST.js → chunk-RTIMT7MB.js} +1 -1
- package/browser/{chunk-CSAGSFL3.js → chunk-S32IOJJR.js} +1 -1
- package/browser/{chunk-NA7ZJQET.js → chunk-SETNDGZG.js} +1 -1
- package/browser/{chunk-W2NHEKCW.js → chunk-SGIO47PC.js} +1 -1
- package/browser/{chunk-5PE5X2VB.js → chunk-SW2DBPIJ.js} +1 -1
- package/browser/{chunk-5TV4QYNO.js → chunk-T6L7V6VB.js} +1 -1
- package/browser/{chunk-YYR3XEAQ.js → chunk-T7EVNQJZ.js} +1 -1
- package/browser/{chunk-FZNAOCWZ.js → chunk-T7JKTLRY.js} +2 -2
- package/browser/{chunk-EPYFG6SH.js → chunk-T7UL42MO.js} +1 -1
- package/browser/{chunk-JJK4XCMN.js → chunk-TBQRBWDN.js} +1 -1
- package/browser/{chunk-DOTR5PYR.js → chunk-TDFRMUQQ.js} +1 -1
- package/browser/{chunk-WIB47ZGF.js → chunk-TDG64PZU.js} +1 -1
- package/browser/{chunk-S4FLFLTR.js → chunk-TU4DJ5OY.js} +1 -1
- package/browser/{chunk-GHLCUW72.js → chunk-TXL4UCFA.js} +1 -1
- package/browser/{chunk-65CKGM2C.js → chunk-U4QA2337.js} +1 -1
- package/browser/{chunk-M7G3WT32.js → chunk-UEKHGOJL.js} +1 -1
- package/browser/{chunk-BT6BH634.js → chunk-ULF57NM6.js} +1 -1
- package/browser/{chunk-6BXO4MVU.js → chunk-UMLR3NXV.js} +1 -1
- package/browser/{chunk-GVI4QM2F.js → chunk-UNFJ7644.js} +1 -1
- package/browser/{chunk-3XMWVJ2L.js → chunk-V5O3E5XQ.js} +1 -1
- package/browser/{chunk-WA5AGHFF.js → chunk-V7RYZJVN.js} +1 -1
- package/browser/{chunk-7KXMZBQB.js → chunk-V7XF5OHI.js} +1 -1
- package/browser/{chunk-4CRQAT4Y.js → chunk-VF6HKAFR.js} +1 -1
- package/browser/chunk-VKT5PPFS.js +1 -0
- package/browser/{chunk-6ZEEVCRE.js → chunk-W6BB4ADK.js} +1 -1
- package/browser/{chunk-AD5C5J25.js → chunk-WIRVWYB3.js} +1 -1
- package/browser/{chunk-KMA5VOEA.js → chunk-WS5EBPC2.js} +1 -1
- package/browser/{chunk-LOMNHHBV.js → chunk-WUBF7SHA.js} +1 -1
- package/browser/{chunk-N22LFPQL.js → chunk-WVFDCBPZ.js} +2 -2
- package/browser/{chunk-QJWMNNK6.js → chunk-XAZ4U5H6.js} +2 -2
- package/browser/{chunk-2EQ7Y56O.js → chunk-XR7Q6MPP.js} +2 -2
- package/browser/{chunk-GVSOBS5Q.js → chunk-Y2V6RDWT.js} +2 -2
- package/browser/{chunk-XHAPRGGF.js → chunk-Y726HBE5.js} +1 -1
- package/browser/{chunk-K3367VWX.js → chunk-YG2JH54R.js} +1 -1
- package/browser/{chunk-BZHL4W7T.js → chunk-YK6QAFHR.js} +1 -1
- package/browser/{chunk-5MZEP3D7.js → chunk-YUZ32SM6.js} +1 -1
- package/browser/chunk-YWZWCZZB.js +1 -0
- package/browser/{chunk-LGCRFIIA.js → chunk-YXVAJ7AI.js} +1 -1
- package/browser/{chunk-SN3DTCGO.js → chunk-YYZIKSOW.js} +1 -1
- package/browser/{chunk-3CCLSY4U.js → chunk-Z3VGSV3R.js} +1 -1
- package/browser/{chunk-GMX2JWEW.js → chunk-Z3VZQOTA.js} +1 -1
- package/browser/{chunk-7S5F6JOF.js → chunk-ZEWGIKVI.js} +1 -1
- package/browser/chunk-ZFQRWOU2.js +1 -0
- package/browser/{chunk-WEAIMPRM.js → chunk-ZJDIZNTX.js} +1 -1
- package/browser/{chunk-4SOJX57D.js → chunk-ZJMIEPWF.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-6UNPCULN.js → main-YLCIT32A.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-7E6SMB44.js +0 -1
- package/browser/chunk-EZCQYLCW.js +0 -1
- package/browser/chunk-PQUVDF3D.js +0 -1
- package/browser/chunk-Y4MHZTLF.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-Y726HBE5.js";import{K as o}from"./chunk-DJOHANFC.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as me}from"./chunk-NQX7EX5A.js";import{a as le}from"./chunk-
|
|
1
|
+
import{a as me}from"./chunk-NQX7EX5A.js";import{a as le}from"./chunk-EGOF4SFE.js";import{a as ie,c as ne,e as re,f as ae,g as oe}from"./chunk-P6TNAQ2F.js";import{a as Y}from"./chunk-7UFQPOGN.js";import{a as Z,c as ee}from"./chunk-CN5SHMHF.js";import{m as X}from"./chunk-7G4UPOQP.js";import{N as te}from"./chunk-ZJMIEPWF.js";import{d as T}from"./chunk-3GV7FUAX.js";import{a as J}from"./chunk-2FWFPV5I.js";import{F as z,c as G,h as U,o as q}from"./chunk-CB33ZMNF.js";import{a as K}from"./chunk-TYBAV5LT.js";import{$a as m,Ac as F,Bc as Q,Fa as y,Fc as A,Ib as a,Jb as l,Kb as x,Lb as h,Mb as g,Ob as S,Qb as f,Rb as s,Vd as $,Y as D,Yc as H,Zc as W,cd as L,db as I,dc as C,ec as _,ed as j,fa as N,fc as k,gc as b,jc as v,jd as B,ka as O,kb as P,kc as E,lb as R,lc as w,qb as u,t as V,va as p,vb as c,wa as d,zc as M}from"./chunk-DJOHANFC.js";function de(i,t){i&1&&(h(0),a(1,"div",5)(2,"div",6),_(3,"Edit Serial is disabled during EDIT MODE"),l(),a(4,"div"),_(5," If you make a mistake, please delete the item and then add again "),l()(),g())}function _e(i,t){if(i&1){let e=S();a(0,"mat-chip-row",19),f("removed",function(){let r=p(e).$implicit,o=s(3);return d(o.onRemoveSerialChip(r))}),_(1),a(2,"button",20),x(3,"i",21),l()()}if(i&2){let e=t.$implicit;m(),b(" ",e," ")}}function ue(i,t){if(i&1){let e=S();h(0),a(1,"div",10)(2,"div",11)(3,"mat-form-field",12),f("keyup.enter",function(r){return p(e),d(r.stopPropagation())}),a(4,"mat-chip-grid",null,1),u(6,_e,4,1,"mat-chip-row",13),a(7,"input",14,2),f("matChipInputTokenEnd",function(r){p(e);let o=C(8),pe=s(2);return d(pe.addSerial(r,o))}),l()()()(),a(9,"div",15)(10,"button",16),f("click",function(){p(e);let r=C(8),o=s(2);return d(o.submitSerial(r))}),x(11,"i",17),a(12,"strong",18),_(13,"ADD"),l()()()(),g()}if(i&2){let e=C(5),n=s(2);m(6),c("ngForOf",n.serials),m(),c("matChipInputFor",e)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)}}function he(i,t){if(i&1){let e=S();a(0,"ng-select",22),M(1,"async"),w("ngModelChange",function(r){p(e);let o=s(2);return E(o.serials,r)||(o.serials=r),d(r)}),f("remove",function(r){p(e);let o=s(2);return d(o.onRemoveSerialFromOption(r.value))})("change",function(r){p(e);let o=s(2);return d(o.onSelectSerial(r))}),l()}if(i&2){let e=s(2);c("items",F(1,3,e.serials$)),v("ngModel",e.serials),c("multiple",!0)}}function ge(i,t){if(i&1&&(h(0),a(1,"div",7)(2,"div",8),u(3,ue,14,3,"ng-container",9)(4,he,2,5,"ng-template",null,0,A),l()(),g()),i&2){let e=C(5),n=s();m(3),c("ngIf",n.isReturn)("ngIfElse",e)}}function fe(i,t){i&1&&(h(0),x(1,"th",29),g())}function Se(i,t){i&1&&(h(0),a(1,"th",30),_(2,"Expiry Date"),l(),g())}function Ce(i,t){if(i&1){let e=S();h(0),a(1,"td",32)(2,"i",33),f("click",function(){p(e);let r=s().index,o=s(2);return d(o.onRemoveSerial(r))}),l()(),g()}}function xe(i,t){if(i&1&&(h(0),a(1,"td"),_(2),M(3,"date"),l(),g()),i&2){let e=s().$implicit;m(2),b(" ",e.ExpiryDate?Q(3,1,e.ExpiryDate,"dd MMM yyyy"):"-"," ")}}function ye(i,t){if(i&1){let e=S();a(0,"tr"),u(1,Ce,3,0,"ng-container",4),a(2,"td"),_(3),l(),u(4,xe,4,4,"ng-container",4),a(5,"td")(6,"input",31),w("ngModelChange",function(r){let o=p(e).$implicit;return E(o.Quantity,r)||(o.Quantity=r),d(r)}),f("change",function(){p(e);let r=s(2);return d(r.onChangeQty())}),l()()()}if(i&2){let e=t.$implicit,n=s(2);m(),c("ngIf",!n.disabled),m(2),k(e.Number),m(),c("ngIf",n.showExpiryDate),m(2),v("ngModel",e.Quantity),c("disabled",n.disabled)("decimalPlaces",0)}}function Ie(i,t){if(i&1&&(h(0),a(1,"div",23)(2,"div",8)(3,"table",24)(4,"thead",25)(5,"tr"),u(6,fe,2,0,"ng-container",4),a(7,"th",26),_(8,"Serial Number"),l(),u(9,Se,3,0,"ng-container",4),a(10,"th",27),_(11,"Quantity"),l()()(),a(12,"tbody"),u(13,ye,7,6,"tr",28),l()()()(),g()),i&2){let e=s();m(6),c("ngIf",!e.disabled),m(3),c("ngIf",e.showExpiryDate),m(4),c("ngForOf",e.selectedSerial)}}var se=class i{constructor(t,e){this.productService=t;this.toastr=e;this.cartItemChange=new y,this.serialsChange=new y}separatorKeysCodes=[13,188];_cartItem;isReturn=!1;disabled=!1;set cartItem(t){t&&(this._cartItem=t,this.initSelectedSerial(),t.Quantity<0?this.isReturn=!0:this.getSerialVariant())}get cartItem(){return this._cartItem}cartItemChange;entityId;serials;serialsChange;serials$;selectedSerial=[];showExpiryDate;ngOnDestroy(){this.serialsChange.emit([])}initSelectedSerial(){let t=this.cartItem.Serial;t&&t.length>0&&(this.selectedSerial=t,this.checkShowExpiryDate())}getSerialVariant(){let t=this.cartItem.VariantID,e;this.serials$=this.productService.getVariantSerial(this.entityId,t).pipe(V(n=>n.map(r=>(e=new me,e.Number=r.Number,e.Quantity=r.Quantity?r.Quantity:1,e.ExpiryDate=r.ExpiryDate,e))),N(()=>{this.isReturn||(this.serials=this.generateSerialCode(this.selectedSerial))}),D())}generateSerialCode(t=[]){return t.map(e=>e.Number)}onSelectSerial(t){let e=t.filter(n=>this.selectedSerial.findIndex(r=>r.Number==n.Number)==-1);e.length>0&&(e[0].Quantity=1,this.selectedSerial=[...this.selectedSerial,...e],this.updateCartItem())}onRemoveSerial(t){this.selectedSerial=this.selectedSerial.filter((e,n)=>n!==t),this.serials=this.generateSerialCode(this.selectedSerial),this.updateCartItem()}onRemoveSerialChip(t){this.serials=this.serials.filter(e=>e!==t),this.serialsChange.emit(this.serials)}onRemoveSerialFromOption(t){this.selectedSerial=this.selectedSerial.filter(e=>e.Number!==t.Number),this.serials=this.generateSerialCode(this.selectedSerial)}onChangeQty(){this.updateCartItem()}submitSerial(t){t.value.trim()&&(this.serials.push(t.value.trim()),t.value="");let e=this.generateSerialData();this.selectedSerial=[...this.selectedSerial,...e],this.serials=[],this.updateCartItem()}generateSerialData(){return this.serials.filter(e=>this.selectedSerial.findIndex(n=>n.Number==e)==-1).map(e=>({Number:e,Quantity:this.isReturn?-1:1,ExpiryDate:null}))}addSerial(t,e){let n=(t.value||"").trim();if(n)if(this.serials.find(r=>r==n)){e.value="",this.toastr.info("Serial already exists",J.Info);return}else this.serials.push(n),this.serialsChange.emit(this.serials);t.chipInput.clear()}updateCartItem(){this.cartItem.Serial=this.selectedSerial,this.checkShowExpiryDate(),this.calculateSerialQty(),this.cartItemChange.emit(this.cartItem)}calculateSerialQty(){let t=0;this.selectedSerial.forEach(e=>{t+=e.Quantity}),this.cartItem.Quantity=t}checkShowExpiryDate(){let t=0;this.selectedSerial.forEach(e=>{K.IsNotEmpty(e.ExpiryDate)&&(t+=1)}),this.showExpiryDate=t>0}static \u0275fac=function(e){return new(e||i)(I(le),I($))};static \u0275cmp=P({type:i,selectors:[["app-item-serial"]],inputs:{disabled:"disabled",cartItem:"cartItem",entityId:"entityId",serials:"serials"},outputs:{cartItemChange:"cartItemChange",serialsChange:"serialsChange"},standalone:!1,decls:4,vars:3,consts:[["NOT_RETURN",""],["chipGrid",""],["inputChip",""],[1,"my-8"],[4,"ngIf"],[1,"alert","alert-warning","text-center","my-5","py-3"],[1,"fw-bold"],[1,"row"],[1,"col-12"],[4,"ngIf","ngIfElse"],[1,"input-group","mb-3"],[1,"col"],["appearance","outline",1,"serial-chip",3,"keyup.enter"],[3,"removed",4,"ngFor","ngForOf"],["placeholder","E.g. Serial1 Serial2",3,"matChipInputTokenEnd","matChipInputFor","matChipInputSeparatorKeyCodes"],[1,"col-auto"],["type","button",1,"btn","btn-outline-secondary","btn-sm","add-chip",3,"click"],["aria-hidden","true",1,"fa","fa-plus","me-1","fs-6"],[1,"headings-font-family","h6","font-weight-bold"],[3,"removed"],["matChipRemove",""],[1,"fa-solid","fa-circle-xmark"],["bindLabel","Number","appendTo","body","bindValue","Number","placeholder","Insert Number",1,"ng-select-multiple",3,"ngModelChange","remove","change","items","ngModel","multiple"],[1,"row","mt-8"],[1,"table","table-bordered"],[1,"thead-light"],[1,"border-end"],[1,"border-end","text-end",2,"width","60px"],[4,"ngFor","ngForOf"],[1,"border-end",2,"width","40px"],[1,"border-end",2,"width","100px"],["type","text","placeholder","Serial Quantity","autoNum","",1,"form-control","text-end",3,"ngModelChange","change","ngModel","disabled","decimalPlaces"],[1,"text-center"],["aria-hidden","true","title","Remove serial",1,"fa","fa-xmark","text-danger","cursor-pointer","fa-2x",3,"click"]],template:function(e,n){e&1&&(a(0,"div",3),u(1,de,6,0,"ng-container",4)(2,ge,6,2,"ng-container",4)(3,Ie,14,3,"ng-container",4),l()),e&2&&(m(),c("ngIf",n.disabled),m(),c("ngIf",!n.disabled),m(),c("ngIf",n.selectedSerial.length>0))},dependencies:()=>[H,W,T,G,U,q,ee,re,ae,ie,ne,X,L,j],styles:[".serial-chip[_ngcontent-%COMP%]{width:100%}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input, .serial-chip[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:40px!important}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing, .serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch, .serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading{border-color:#ccc!important}.serial-chip[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.add-chip[_ngcontent-%COMP%]{height:calc(100% - 18.4px);margin-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}"]})},ce=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=R({type:i});static \u0275inj=O({imports:[B,te,T,z,Z,oe,Y]})};export{se as a,ce as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as A,b as G}from"./chunk-
|
|
1
|
+
import{a as A,b as G}from"./chunk-5YBGDA3S.js";import{d as Z,e as $}from"./chunk-OGI634A2.js";import{a as K}from"./chunk-U4QA2337.js";import{d as X,e as Y}from"./chunk-ATAC2AND.js";import{b as U}from"./chunk-Y726HBE5.js";import{d as Q}from"./chunk-3GV7FUAX.js";import{F as H,c as B,h as R,o as j}from"./chunk-CB33ZMNF.js";import{d as q}from"./chunk-TYBAV5LT.js";import{$a as p,Bc as y,Fc as W,Ib as i,Jb as o,Ob as S,Qb as C,Rb as s,Rd as V,Td as N,Vd as O,Wc as M,Yc as I,Yd as z,Zc as T,db as _,ec as m,ed as E,gc as x,gd as P,jc as b,jd as J,kb as F,kc as h,lc as f,ob as v,qb as u,qc as w,rc as L,sc as k,va as d,vb as l,wa as g,zc as D}from"./chunk-DJOHANFC.js";var te=()=>["/menu/Developer/Webhook/Job_Logs/Detail"],ie=a=>({ID:a}),oe=(a,c)=>({"text-success":a,"text-danger":c});function ae(a,c){if(a&1){let e=S();i(0,"div",12)(1,"h6"),m(2,"Status"),o(),i(3,"ng-select",13),f("ngModelChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.Status,t)||(r.pageData.Filter.Status=t),g(t)}),o(),i(4,"h6"),m(5,"Job ID"),o(),i(6,"input",14),f("ngModelChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.JobID,t)||(r.pageData.Filter.JobID=t),g(t)}),o(),i(7,"h6"),m(8,"From"),o(),i(9,"datepicker",15),f("dateChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.From,t)||(r.pageData.Filter.From=t),g(t)}),o(),i(10,"h6"),m(11,"To"),o(),i(12,"datepicker",16),f("dateChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.To,t)||(r.pageData.Filter.To=t),g(t)}),o()()}if(a&2){let e=s(2);p(3),l("disabled",!e.role.developer.Edit)("items",e.pageData.Options.Status),b("ngModel",e.pageData.Filter.Status),p(3),b("ngModel",e.pageData.Filter.JobID),p(3),l("isFloatingLabel",!1),b("date",e.pageData.Filter.From),p(3),l("isFloatingLabel",!1),b("date",e.pageData.Filter.To)}}function ne(a,c){if(a&1&&(i(0,"tr",17)(1,"td")(2,"a",18),m(3),D(4,"date"),o()(),i(5,"td"),m(6),D(7,"number"),o(),i(8,"td",19),m(9),o()()),a&2){let e=c.$implicit;p(2),l("routerLink",w(12,te))("queryParams",L(13,ie,e._id)),p(),x(" ",y(4,6,e._source["@timestamp_received"],"dd MMM yyyy HH:mm")," "),p(3),x("",y(7,9,e.DurationInSecond,"1.1-1")," s"),p(2),l("ngClass",k(15,oe,e._source.log.respCode==200,e._source.log.respCode!=200)),p(),x(" ",e._source.log.respCode," ")}}function re(a,c){if(a&1){let e=S();i(0,"mat-paginator",20),C("page",function(t){d(e);let r=s(2);return g(r.onPaginationChange(t))}),o()}if(a&2){let e=s(2);l("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function pe(a,c){if(a&1){let e=S();i(0,"mainpanel-cmp",2),C("onSubmit",function(){d(e);let t=s();return g(t.searchFromPageOne())}),i(1,"filters"),u(2,ae,13,8,"ng-template",null,0,W),o(),i(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr",7)(10,"th",8),m(11,"Created"),o(),i(12,"th",8),m(13,"Duration"),o(),i(14,"th",8),m(15,"Status"),o()()(),i(16,"tbody"),u(17,ne,10,18,"tr",9),o()()(),i(18,"div",10),u(19,re,1,3,"mat-paginator",11),o()()()()}if(a&2){let e=s();l("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(17),l("ngForOf",e.data.hits),p(2),l("ngIf",e.pagination.listTotal>0)}}var ee=class a extends K{constructor(e,n,t,r){super(e,n,"Developer/DeveloperSpace/Webhook/JobLogs","Developer/DeveloperSpace/WebhookLoader/GetLogs",t);this.httpService=n;this.role=r}postInit(e){this.data.hits=this.data?.hits.map(n=>(n.DurationInSecond=parseInt(n._source?.Duration)/1e3,n)),this.data.ListTotal=e?.total?.value}static \u0275fac=function(n){return new(n||a)(_(U),_(z),_(O),_(q))};static \u0275cmp=F({type:a,selectors:[["app-webhook-job-logs"]],features:[v],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","onSubmit",4,"ngIf"],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","50px"],["class","border-bottom",4,"ngFor","ngForOf"],[1,"mt-2"],[3,"length","pageSize","pageIndex","page",4,"ngIf"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose a status","appendTo","body",3,"ngModelChange","disabled","items","ngModel"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[1,"border-bottom"],[3,"routerLink","queryParams"],[3,"ngClass"],[3,"page","length","pageSize","pageIndex"]],template:function(n,t){n&1&&u(0,pe,20,5,"mainpanel-cmp",1),n&2&&l("ngIf",t.data)},dependencies:[J,M,I,T,P,E,Y,X,$,Z,G,A,Q,H,B,R,j,N,V],encapsulation:2})};export{ee as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ot}from"./chunk-TLANLIUC.js";import{a as nt}from"./chunk-I2O3VGCS.js";import{a as it}from"./chunk-ZY3EJSWW.js";import{u as Z,v as tt,w as et}from"./chunk-
|
|
1
|
+
import{a as ot}from"./chunk-TLANLIUC.js";import{a as nt}from"./chunk-I2O3VGCS.js";import{a as it}from"./chunk-ZY3EJSWW.js";import{u as Z,v as tt,w as et}from"./chunk-7G4UPOQP.js";import{b as q,c as H}from"./chunk-XOQ4SW2R.js";import{N as b,n as P}from"./chunk-ZJMIEPWF.js";import{e as J,f as K,g as X,l as Y}from"./chunk-6BL2JKZG.js";import{F as $,a as W,c as z,h as G,o as U}from"./chunk-CB33ZMNF.js";import{$a as l,Bc as h,E as y,Eb as N,Fa as T,Gb as A,Hb as F,Ib as i,Jb as a,Kb as m,Ob as I,Qb as d,Rb as s,Wc as Q,Zc as _,db as u,ec as g,fa as w,fc as k,gc as E,jc as L,jd as M,kb as O,kc as V,lc as B,na as S,pc as j,qb as p,rc as R,va as v,vb as r,wa as D,zc as f}from"./chunk-DJOHANFC.js";var pt=n=>({selected:n});function mt(n,t){if(n&1){let e=I();i(0,"div",5)(1,"div",6)(2,"span",7),m(3,"i",8),a(),i(4,"input",9),B("ngModelChange",function(c){v(e);let C=s();return V(C.outletQuery,c)||(C.outletQuery=c),D(c)}),a()()()}if(n&2){let e=s();l(4),L("ngModel",e.outletQuery)}}function dt(n,t){if(n&1){let e=I();i(0,"div",11),d("click",function(){v(e);let c=s().$implicit,C=s();return D(C.selectOutlet(c))}),m(1,"i",12),i(2,"h5"),g(3),f(4,"limitTo"),a(),i(5,"div",13),g(6," VACANT "),a()()}if(n&2){let e=s().$implicit,o=s();r("ngClass",R(5,pt,e.ID===o.id)),l(3),k(h(4,2,e.Name,15))}}function gt(n,t){if(n&1&&p(0,dt,7,7,"div",10),n&2){let e=t.$implicit,o=s();r("ngIf",e.ID!==o.sourceOutletID)}}var x=class n{constructor(t,e){this.dialogRef=t;this.data=e;this.config.title=e.dialogTitle,this.config.customWidth="600px",this.config.hideScrollbar=!0,this.config.hideFooter=!0,this.id=e.outletID,this.sourceOutletID=e.sourceOutletID}outletQuery="";config=new Z;name="";id="";sourceOutletID="";outlet;selectOutlet(t){this.outlet=t,this.name=t.Name,this.id=t.ID,this.saveOnSelectOutlet()}saveOnSelectOutlet(){this.dialogRef.close({Name:this.name,ID:Object.prototype.hasOwnProperty.call(this.outlet,"EntityID")?this.outlet.EntityID:this.outlet.ID})}static \u0275fac=function(e){return new(e||n)(u(J),u(K))};static \u0275cmp=O({type:n,selectors:[["POS-modal-select-outlet"]],decls:8,vars:5,consts:[[3,"onClose","config"],["class","p-0 search-container",4,"ngIf"],[1,"container","custom-scroll","mt-8"],[1,"row",2,"width","600px"],[1,"col-4","outlet-option","pointer",3,"ngClass"],[1,"p-0","search-container"],[1,"input-group","mb-3"],[1,"input-group-text","txtFilter","rounded-start-1","rounded-end-0"],["aria-hidden","true",1,"fa","fa-magnifying-glass"],["type","text","placeholder","Filter by Name","aria-label","Search",1,"txtFilter","form-control","border-start-0","rounded-1","rounded-start-0",3,"ngModelChange","ngModel"],["class","col-4 outlet-option pointer",3,"ngClass","click",4,"ngIf"],[1,"col-4","outlet-option","pointer",3,"click","ngClass"],[1,"fa-solid","fa-shop"],[1,"text-center","mt-6",2,"font-size","1.25rem"]],template:function(e,o){e&1&&(i(0,"modal-material",0),d("onClose",function(){return o.dialogRef.close()}),i(1,"content"),p(2,mt,5,1,"div",1),i(3,"div",2)(4,"div",3),A(5,gt,1,1,"div",4,N),f(7,"filterByName"),a()()()()),e&2&&(r("config",o.config),l(2),r("ngIf",o.data.outlets.length>6),l(3),F(h(7,2,o.data.outlets,o.outletQuery)))},dependencies:[M,Q,_,et,tt,it,$,z,G,U,b,P],styles:[".search-container[_ngcontent-%COMP%]{transition:all .3s ease;width:97%}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{position:relative;transition:all .3s ease;height:2.3rem}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover, .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e4d,0 0 8px 4px #89b03e33;border-radius:4px}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]{transition:all .3s ease;border-left:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]:focus{box-shadow:none!important;border-color:#ced4da!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{transition:all .3s ease;background-color:#fff;border-right:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .input-group-text[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .input-group-text[_ngcontent-%COMP%]{background-color:#89b03e1a;border-color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .fa-magnifying-glass[_ngcontent-%COMP%]{transition:all .3s ease}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .fa-magnifying-glass[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .fa-magnifying-glass[_ngcontent-%COMP%]{color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e66,0 0 12px 6px #89b03e40!important}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#89b03e;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7a9e37}.container[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;max-height:260px;min-height:150px}.row[_ngcontent-%COMP%]{row-gap:20px;column-gap:12px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]{height:110px;width:175px;border:1px solid #B1AAAA;border-radius:5px;padding:0;font-size:14px;position:relative}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:8px;left:10px;color:#fff}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{border-radius:4px;color:#fff;background:#b1aaaa;overflow:hidden;height:30px;width:100%;display:flex;align-items:center;padding-left:38px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover, .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%]{background:#ffffe1;border:1px solid #89b03e}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover > h5[_ngcontent-%COMP%], .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%]{background:#89b03e}"]})};function ft(n,t){n&1&&m(0,"i",3)}var lt=class n{constructor(t){this.matDialog=t}sf=S(nt);_isOpenAfterLoad;hideLocationIcon=!1;dialogTitle="Choose an Outlet";limitOutletText=25;sourceOutletID="";set isOpenAfterLoad(t){t!==void 0&&(this._isOpenAfterLoad=t,this._isOpenAfterLoad&&this._outlets?.length>1&&this.openModalSelectOutlet())}_outlets;set outlets(t){if(t)if(this._outlets=t,this._outlets.length==1){let e=this._outlets[0];this.assignOutlet(e.Name,Object.prototype.hasOwnProperty.call(e,"EntityID")?e.EntityID:e.ID)}else this._isOpenAfterLoad&&this.openModalSelectOutlet()}onCloseDialog=new T;outlet={ID:"",Name:"Choose an Outlet"};disabled=!1;onChange=t=>{};onTouched=()=>{};writeValue(t){this.outlet=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}openModalSelectOutlet(){this.disabled||(this.onTouched(),this.matDialog.getDialogById("select-outlet-modal")||this.matDialog.open(x,{id:"select-outlet-modal",data:{outlets:this._outlets,outletID:this.outlet.ID,dialogTitle:this.dialogTitle,sourceOutletID:this.sourceOutletID}}).afterClosed().pipe(y(t=>t),ot("modal select outlet"),w(()=>this.onCloseDialog.emit())).subscribe(t=>{this.assignOutlet(t.Name,t.ID),this.sf.searchFilterNativeEl?.focus()}))}assignOutlet(t,e){this.outlet={ID:e,Name:t},this.onChange(this.outlet)}static \u0275fac=function(e){return new(e||n)(u(X))};static \u0275cmp=O({type:n,selectors:[["POS-select-outlet-form"]],inputs:{hideLocationIcon:"hideLocationIcon",dialogTitle:"dialogTitle",limitOutletText:"limitOutletText",sourceOutletID:"sourceOutletID",isOpenAfterLoad:"isOpenAfterLoad",outlets:"outlets"},outputs:{onCloseDialog:"onCloseDialog"},features:[j([{provide:W,multi:!0,useExisting:n}])],decls:5,vars:6,consts:[["matTooltipPosition","above",1,"outlet-container","d-flex","pointer",3,"click","matTooltip"],["class","fa-solid fa-location-dot",4,"ngIf"],[1,"mb-0"],[1,"fa-solid","fa-location-dot"]],template:function(e,o){e&1&&(i(0,"div",0),d("click",function(){return o.openModalSelectOutlet()}),p(1,ft,1,0,"i",1),i(2,"h3",2),g(3),f(4,"limitTo"),a()()),e&2&&(r("matTooltip",o.outlet==null?null:o.outlet.Name),l(),r("ngIf",!o.hideLocationIcon),l(2),E(" ",h(4,3,!(o.outlet==null||o.outlet.Name==null)&&o.outlet.Name.length?o.outlet==null?null:o.outlet.Name:"Choose an Outlet",o.limitOutletText)," "))},dependencies:[M,_,Y,b,P,H,q],styles:[".outlet-container[_ngcontent-%COMP%] .fa-location-dot[_ngcontent-%COMP%]{color:#fb404b!important;font-size:32px;width:32px}"]})};export{lt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as de}from"./chunk-
|
|
1
|
+
import{a as de}from"./chunk-RTIMT7MB.js";import{d as me,e as se}from"./chunk-ATAC2AND.js";import"./chunk-OK4CL2M4.js";import{b as le}from"./chunk-Y726HBE5.js";import"./chunk-OI2RWAOV.js";import"./chunk-7LXPGNYF.js";import{u as ae,v as ne,w as re}from"./chunk-7G4UPOQP.js";import"./chunk-XOQ4SW2R.js";import"./chunk-ZJMIEPWF.js";import{e as te,f as ie,g as oe}from"./chunk-6BL2JKZG.js";import"./chunk-REQUYIUO.js";import"./chunk-T2PMKO3M.js";import{a as ee}from"./chunk-2FWFPV5I.js";import"./chunk-OE7PM4Y4.js";import{A as Q,E as X,F as Z,c as G,h as z,o as J}from"./chunk-CB33ZMNF.js";import"./chunk-OINGZOF4.js";import"./chunk-I4I6FJDX.js";import{a as W}from"./chunk-TYBAV5LT.js";import"./chunk-QKCOYSSN.js";import{$a as m,Ac as B,Db as F,E as A,Ib as o,Jb as a,Kb as w,Lb as T,Ma as Y,Mb as g,Ob as y,Od as H,Qb as _,Rb as u,Vd as q,Wc as U,Yc as j,Yd as $,Zc as v,db as f,dc as O,ec as r,fc as R,gc as x,gd as K,jc as E,jd as h,kb as b,kc as M,lc as P,ob as L,qb as S,rc as D,va as d,vb as c,wa as p,zc as k}from"./chunk-DJOHANFC.js";import"./chunk-7DCB7DB2.js";var I=(s=>(s.TRANSACTIONS="TRANSACTIONS",s.PRODUCTS="PRODUCTS",s.CONTACTS="CONTACTS",s.LOYALTY_POINTS="LOYALTY_POINTS",s.RECYCLE_BIN="RECYCLE_BIN",s.INVENTORY="INVENTORY",s))(I||{});function _e(n,l){if(n&1&&(T(0),o(1,"div",4)(2,"div",5)(3,"div",16),w(4,"i",17),o(5,"span"),r(6),a()()()(),g()),n&2){let i=u();m(6),x(" ",i.selectedClearData.message," ")}}function Se(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Subdomain is required "),a(),g())}function Te(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Password is required "),a(),g())}function ge(n,l){n&1&&w(0,"i",14)}function be(n,l){n&1&&w(0,"i",15)}var N=class n{constructor(l,i,t){this.data=l;this.dialogRef=i;this.fb=t;this.modalConfig.title=this.modalTitle[this.data.type],this.subdomain="",this.subdomainPlaceholder=l.subDomain}clearData=[{type:"TRANSACTIONS",api:"Setup/Data/ClearTransaction",message:"Your Invoice, Bill, Adjustment, TransferOrder will be deleted"},{type:"PRODUCTS",api:"Setup/Data/ClearProduct",message:"Your Category, Product and Variant will be deleted"},{type:"LOYALTY_POINTS",api:"Setup/Data/ClearLoyaltyPoint"},{type:"RECYCLE_BIN",api:"Setup/Data/ClearRecycleBin"},{type:"INVENTORY",api:"Setup/Data/ClearInventory",message:"Your Product Inventory will be set to 0"},{type:"CONTACTS",api:"Setup/Data/ClearContact",message:"Your Customer, Supplier and Sales Person will be deleted"}];selectedClearData;modalConfig=new ae;modalTitle={TRANSACTIONS:"Clear Transactions",PRODUCTS:"Clear Products",LOYALTY_POINTS:"Clear Loyalty Points",RECYCLE_BIN:"Clear Recycle Bin",CONTACTS:"Clear Contacts",INVENTORY:"Clear Inventory"};subdomain;subdomainPlaceholder;password;form;passwordVisibility=Y(!1);ngOnInit(){this.initSelectedClearData(),this.form=this.fb.group({subdomain:[""],password:[""]})}initSelectedClearData(){this.selectedClearData=this.clearData.find(l=>l.type===this.data.type)}onSubmit(){let l={password:this.password,subdomain:this.subdomain,apiUrl:this.selectedClearData.api};this.dialogRef.close(l)}static \u0275fac=function(i){return new(i||n)(f(ie),f(te),f(X))};static \u0275cmp=b({type:n,selectors:[["app-confirmation-modal"]],decls:24,vars:10,consts:[["subdomainCtrl","ngModel"],["passwordCtrl","ngModel"],[3,"onOk","onClose","onCancel","config","dynamicValidated"],[4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mt-5"],["type","text","id","subdomain","placeholder","Subdomain","name","subdomain","autofocus","","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"form-floating-outline"],["id","pass","placeholder","Password","name","password","required","",1,"form-control",3,"ngModelChange","type","ngModel"],["for","pass"],[1,"password-visibility"],["type","button",1,"btn","btn-link",3,"click"],[1,"fa-solid","fa-eye"],[1,"fa-solid","fa-eye-slash"],[1,"alert","alert-warning","cursor","w-100"],[1,"fa-solid","fa-circle-exclamation","me-2"],[1,"control-label","text-danger"]],template:function(i,t){if(i&1){let e=y();o(0,"modal-material",2),_("onOk",function(){return d(e),p(t.onSubmit())})("onClose",function(){return d(e),p(t.dialogRef.close())})("onCancel",function(){return d(e),p(t.dialogRef.close())}),o(1,"content"),S(2,_e,7,1,"ng-container",3),o(3,"div",4)(4,"div",5)(5,"strong"),r(6),a(),o(7,"div",6)(8,"input",7,0),P("ngModelChange",function(s){return d(e),M(t.subdomain,s)||(t.subdomain=s),p(s)}),a(),o(10,"label",8),r(11,"Subdomain"),a(),S(12,Se,3,0,"ng-container",3),a()(),o(13,"div",5)(14,"div",9)(15,"input",10,1),P("ngModelChange",function(s){return d(e),M(t.password,s)||(t.password=s),p(s)}),a(),o(17,"label",11),r(18,"Password"),a(),S(19,Te,3,0,"ng-container",3),o(20,"div",12)(21,"button",13),_("click",function(){return d(e),p(t.passwordVisibility.set(!t.passwordVisibility()))}),S(22,ge,1,0,"i",14)(23,be,1,0,"i",15),a()()()()()()()}if(i&2){let e=O(9),C=O(16);c("config",t.modalConfig)("dynamicValidated",t.password&&t.subdomain),m(2),c("ngIf",t.selectedClearData.message),m(4),x("Enter the following subdomain to confirm: ",t.subdomainPlaceholder,""),m(2),E("ngModel",t.subdomain),m(4),c("ngIf",e.invalid&&(e.dirty||e.touched)),m(3),c("type",t.passwordVisibility()?"text":"password"),E("ngModel",t.password),m(4),c("ngIf",C.invalid&&(C.dirty||C.touched)),m(3),F(t.passwordVisibility()?22:23)}},dependencies:[h,v,re,ne,Z,G,z,Q,J],styles:[".password-visibility[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%);cursor:pointer;font-size:1.5rem}"]})};var V=n=>({"border border-0":n});function we(n,l){if(n&1&&(T(0),o(1,"tr",23)(2,"td",23),r(3),a(),o(4,"td",24),r(5),k(6,"number"),a()(),g()),n&2){let i=l.$implicit,t=l.index,e=u(2);m(),c("ngClass",D(7,V,t==e.data.Data.length-1)),m(),c("ngClass",D(9,V,t==e.data.Data.length-1)),m(),R(i.Key),m(),c("ngClass",D(11,V,t==e.data.Data.length-1)),m(),R(B(6,5,i.Value))}}function ye(n,l){if(n&1){let i=y();o(0,"mainpanel-cmp",1)(1,"actions")(2,"div",2)(3,"div",3)(4,"button",4),r(5," Format Data "),a(),o(6,"ul",5)(7,"li")(8,"a",6),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.TRANSACTIONS))}),r(9," 1. Clear Transactions "),a()(),o(10,"li")(11,"a",7),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.INVENTORY))}),r(12," 2. Clear Inventory "),a()(),o(13,"li")(14,"a",8),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.PRODUCTS))}),r(15," 3. Clear Products "),a()(),o(16,"li")(17,"a",9),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.CONTACTS))}),r(18," 4. Clear Contacts "),a()(),o(19,"li")(20,"a",10),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.LOYALTY_POINTS))}),r(21," 5. Clear Loyalty Point "),a()(),o(22,"li")(23,"a",11),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.RECYCLE_BIN))}),r(24," 6. Clear Recycle Bin "),a()()()()()(),o(25,"content")(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5"),r(30,"Database Records"),a(),o(31,"i"),r(32,"Current data count"),a()(),o(33,"div",15)(34,"div",16)(35,"div",17)(36,"table",18)(37,"thead",19)(38,"tr",20)(39,"th"),r(40,"Table"),a(),o(41,"th",21),r(42,"Rows"),a()()(),o(43,"tbody"),S(44,we,7,13,"ng-container",22),a()()()()()()()()()}if(n&2){let i=u();c("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(44),c("ngForOf",i.data.Data)}}var pe=class n extends de{constructor(i,t,e,C,s){super(i,t,"Setup/DataLoader/clearformatdata",e);this.httpService=t;this.activatedRoute=e;this.toaster=C;this.dialog=s}clearDataType=I;onClearRecord(i){this.dialog.open(N,{data:{type:i,subDomain:this.data.SubDomain}}).afterClosed().pipe(A(t=>W.IsNotEmpty(t))).subscribe(t=>{this.formData={Subdomain:t.subdomain,Password:t.password},this.onSubmit(t.apiUrl),i=="PRODUCTS"?this.data.Data.find(e=>e.Key=="Product").Value=0:i=="CONTACTS"?this.data.Data.find(e=>e.Key=="Customer").Value=0:i=="INVENTORY"?this.data.Data.find(e=>e.Key=="ItemTransfer").Value=0:i=="LOYALTY_POINTS"?this.data.Data.find(e=>e.Key=="JournalHeader").Value=0:i=="RECYCLE_BIN"?this.data.Data.find(e=>e.Key=="Recycle Bin").Value=0:i=="TRANSACTIONS"&&(this.data.Data.find(e=>e.Key=="SalesOrder").Value=0)})}onSubmitSuccess(i){this.toaster.success(i.Message,ee.Success)}static \u0275fac=function(t){return new(t||n)(f(le),f($),f(H),f(q),f(oe))};static \u0275cmp=b({type:n,selectors:[["POS-format-data"]],features:[L],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false","confirm-message","Are you sure you want to clear the record?",1,"btn","btn-outline-secondary","dropdown-toggle"],[1,"dropdown-menu","dropdown-menu-end"],["role","button","matTooltipPosition","above","matTooltip","Clear Transaction",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Inventory",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Products",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Contacts",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Loyalty Point",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Recycle Bin",1,"dropdown-item",3,"click"],[1,"container","pt-3"],[1,"row","border-bottom","mt-10","ms-2"],[1,"col-sm-2"],[1,"col-sm-10"],[1,"row"],[1,"col-md-12"],["id","tableGrid",1,"table",2,"width","250px"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"text-end"],[4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-end",3,"ngClass"]],template:function(t,e){t&1&&S(0,ye,45,4,"mainpanel-cmp",0),t&2&&c("ngIf",e.formData)},dependencies:[h,U,j,v,K,se,me],encapsulation:2})};export{pe as FormatDataComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as nt}from"./chunk-I2O3VGCS.js";import{c as Je,d as et,e as tt}from"./chunk-6CJCT6YT.js";import{a as pe}from"./chunk-6IW4MVP2.js";import{c as Xe}from"./chunk-XOQ4SW2R.js";import{N as it}from"./chunk-4SOJX57D.js";import{B as Ge,F as B,N as We,T as le,X as de,Y as Ze,_ as G,ba as $e,e as ae,k as ce,l as Ye,y as ue,z as g}from"./chunk-REQUYIUO.js";import{a as ze}from"./chunk-CB33ZMNF.js";import{$ as q,$a as u,$b as qe,Ba as ee,Cc as A,D as N,F as ve,Fa as I,Fc as K,Ga as Q,Ib as c,Jb as l,Ka as H,Kb as M,Kc as re,Lb as V,M as Ie,Ma as Fe,Mb as j,Mc as oe,O as Ce,Ob as w,Pb as ie,Pc as Qe,Q as xe,Qb as h,Rb as p,Rd as Ve,Td as je,Wa as te,Yb as Be,Yc as He,Z as Se,Zc as Le,_ as Te,_b as Ne,aa as Ee,cb as L,d as k,da as m,dc as F,ec as f,fb as Re,fc as R,gc as z,id as Ue,ja as Z,jd as Y,ka as Oe,kb as U,la as S,lb as Pe,mb as b,na as r,oa as $,ob as D,pa as X,pc as C,qa as J,qb as _,qc as ne,rc as se,ua as De,ub as T,v as be,va as E,vb as d,w as Me,wa as O,xb as Ae,za as we,zb as Ke,zc as P}from"./chunk-DJOHANFC.js";import{a as x,b as ye}from"./chunk-7DCB7DB2.js";var ot=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],gt=t=>({ID:t}),_t=t=>({OutletID:t});function ft(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function kt(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,ft,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function yt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Display,0,3))}}function bt(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(4);return O(o.onSelectQuickKeyItem(n))}),_(2,kt,4,1,"ng-container",7)(3,yt,5,5,"ng-template",null,2,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Display,0,36))}}function Mt(t,s){if(t&1&&(c(0,"mat-tab",11)(1,"div",12)(2,"div",13),_(3,bt,8,7,"div",14),c(4,"div",15)(5,"a",16),M(6,"i",17),l()()()()()),t&2){let e=s.$implicit,i=p(3);d("label",e.Name),u(3),d("ngForOf",e==null?null:e.Items),u(2),d("routerLink",ne(4,ot))("queryParams",se(5,gt,i.quickKey.ID))}}function vt(t,s){if(t&1){let e=w();c(0,"mat-tab-group",9),h("selectedIndexChange",function(n){E(e);let o=p(2);return O(o.onChangeTab(n))}),_(1,Mt,7,7,"mat-tab",10),l()}if(t&2){let e=p(2);d("disableRipple",!0)("selectedIndex",e.selectedTabIndex),u(),d("ngForOf",e.quickKey==null?null:e.quickKey.Groups)}}function It(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function Ct(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,It,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function xt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Model,0,3))}}function St(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(3);return O(o.onSelectVariant(n.ID))}),_(2,Ct,4,1,"ng-container",7)(3,xt,5,5,"ng-template",null,3,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Model,0,30))}}function Tt(t,s){if(t&1){let e=w();c(0,"div",25)(1,"div",26),h("click",function(){E(e);let n=p(2);return O(n.quickKeyState="QUICKKEY")}),M(2,"i",27),l(),c(3,"div",28)(4,"b"),f(5),l()()(),c(6,"div",12)(7,"div",13),_(8,St,8,7,"div",14),l()()}if(t&2){let e=p(2);u(5),z(" ",e.subQuickKeyPack.Display,""),u(3),d("ngForOf",e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Et(t,s){if(t&1&&(V(0),_(1,vt,2,3,"mat-tab-group",8)(2,Tt,9,2,"ng-template",null,1,K),j()),t&2){let e=F(3),i=p();u(),d("ngIf",i.quickKeyState=="QUICKKEY")("ngIfElse",e)}}function Ot(t,s){if(t&1&&(c(0,"div",29)(1,"a",30)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),l(),M(4,"i",31),c(5,"span"),f(6,"Click here to setup your Quick keys"),l()()()),t&2){let e=p();u(),d("routerLink",ne(2,ot))("queryParams",se(3,_t,e.outletID))}}var st=class t{sf=r(nt);quickKey;get outletID(){return this._outletID}set outletID(s){this._outletID=s,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new I;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=s=>{};onTouched=()=>{};writeValue(s){}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.disabled=s}onSelectQuickKeyItem(s){s.Children?s.Children.length==1?this.onSelectVariant(s.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:s.Children,Display:s.Display}):this.onSelectVariant(s.ItemID)}onSelectVariant(s){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(s),this.onChange(s),this.sf.searchFilterNativeEl?.focus()}onChangeTab(s){this.selectedTabIndex=s}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[C([{provide:ze,multi:!0,useExisting:t}])],decls:6,vars:2,consts:[["noQuickKey",""],["SUBQUICKEY",""],["BLANK_IMG",""],["BLANK_IMG_SUB",""],[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[4,"ngIf","ngIfElse"],["class","h-100 bgQuickkeyIllustration landscape",3,"disableRipple","selectedIndex","selectedIndexChange",4,"ngIf","ngIfElse"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],["class","col-3 column px-6",4,"ngFor","ngForOf"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[1,"col-3","column","px-6"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],["class","full-screen-image",3,"src",4,"ngIf"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],[1,"no-quick-key"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){if(e&1&&(c(0,"div",4)(1,"div",5)(2,"section",6),_(3,Et,4,2,"ng-container",7)(4,Ot,7,5,"ng-template",null,0,K),l()()()),e&2){let n=F(5);u(3),d("ngIf",i.quickKey&&i.quickKey.Groups)("ngIfElse",n)}},dependencies:[Y,He,Le,Ue,je,Ve,it,tt,Je,et],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(//res.cloudinary.com/pos/image/upload/w_500/POS/Images/Cashier/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[C([{provide:pe,useClass:pe}])]})}return t})(),_e=new S("cdk-menu"),v=function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t}(v||{}),y=new S("cdk-menu-stack"),wt={provide:y,deps:[[new X,new J,new $(y)]],useFactory:t=>t||new fe},Ft=t=>({provide:y,deps:[[new X,new J,new $(y)]],useFactory:s=>s||fe.inline(t)}),fe=(()=>{class t{id=r(ue).getId("cdk-menu-stack-");_elements=[];_close=new k;_empty=new k;_hasFocus=new k;closed=this._close;hasFocus=this._hasFocus.pipe(q(!1),Ie(0),xe());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:o}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:o});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let o=this._elements.pop();o&&this._close.next({item:o,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac})}return t})(),W=new S("cdk-menu-trigger"),Rt=new S("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=r(G);return()=>t.scrollStrategies.reposition()}}),lt=(()=>{class t{injector=r(ee);viewContainerRef=r(Re);menuStack=r(y);menuScrollStrategy=r(Rt);menuPosition;opened=new I;closed=new I;menuTemplateRef;menuData;overlayRef=null;destroyed=new k;stopOutsideClicksListener=N(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new We(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||ee.create({providers:[{provide:W,useValue:this},{provide:y,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,hostVars:2,hostBindings:function(i,n){i&2&&T("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var ke=new S("cdk-menu-aim");function dt(t,s){if(!s.isTrusted)return!1;let e=t.nativeElement,i=s.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var Pt=(()=>{class t extends lt{_elementRef=r(H);_overlay=r(G);_ngZone=r(Q);_changeDetectorRef=r(re);_inputModalityDetector=r(ce);_directionality=r(B,{optional:!0});_renderer=r(L);_cleanupMouseenter;_parentMenu=r(_e,{optional:!0});_menuAim=r(ke,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||this._overlay.create(this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!g(e)&&!dt(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:g(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:g(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:g(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new le({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?de:Ze)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=ae(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&h("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&T("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[C([{provide:W,useExisting:t},wt]),D,De]})}return t})(),At=(()=>{class t{_dir=r(B,{optional:!0});_elementRef=r(H);_ngZone=r(Q);_inputModalityDetector=r(ce);_renderer=r(L);_cleanupMouseEnter;_menuAim=r(ke,{optional:!0});_menuStack=r(y);_parentMenu=r(_e,{optional:!0});_menuTrigger=r(Pt,{optional:!0,self:!0});disabled=!1;typeaheadLabel;triggered=new I;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new k;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!g(e)&&!dt(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?v.previousItem:v.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:v.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:2,hostBindings:function(i,n){i&1&&h("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(){return n.trigger()})("keydown",function(a){return n._onKeydown(a)}),i&2&&(ie("tabindex",n._tabindex),T("aria-disabled",n.disabled||null))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",oe],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),ge=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new k;exited=new k;activeElement;previousElement;constructor(s,e){this._renderer=s,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(q(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(s=>{let e=s._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(s)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(s)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(s=>s()),this._eventCleanups=void 0}},Kt=(()=>{class t extends ut{_focusMonitor=r(Ye);ngZone=r(Q);_renderer=r(L);nativeElement=r(H).nativeElement;menuStack=r(y);menuAim=r(ke,{optional:!0,self:!0});dir=r(B,{optional:!0});id=r(ue).getId("cdk-menu-");items;orientation="vertical";isInline=!1;keyManager;destroyed=new k;triggerItem;pointerTracker;_menuStackHasFocus=Fe(!1);_tabIndexSignal=Qe(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),o=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?o.setActiveItem(a):o.setFirstItemActive()))}_setKeyManager(){this.keyManager=new Ge(this.items).withWrap().withTypeAhead().withHomeAndEnd(),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=N(this.items.changes,this.destroyed);this.items.changes.pipe(q(this.items),be(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Ce(n),m(e)))),Me(),Ee(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new ge(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=we(t)))(n||t)}})();static \u0275dir=b({type:t,contentQueries:function(i,n,o){if(i&1&&Be(o,At,5),i&2){let a;Ne(a=qe())&&(n.items=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&h("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(ie("tabindex",n._getTabIndex())("id",n.id),T("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[D]})}return t})(),vi=(()=>{class t extends Kt{_parentTrigger=r(W,{optional:!0});closed=new I;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:g(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:g(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:v.currentItem,focusParentTrigger:!0}));break;case 9:g(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case v.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case v.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case v.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&h("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&Ae("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[C([{provide:ut,useExisting:t},{provide:_e,useExisting:t},Ft("vertical")]),D]})}return t})();var Bt=de.map(t=>{let s=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return ye(x({},t),{offsetX:s,offsetY:e})}),Nt=(()=>{class t{static _openContextMenuTrigger;update(e){t._openContextMenuTrigger!==e&&(t._openContextMenuTrigger?.close(),t._openContextMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ii=(()=>{class t extends lt{_overlay=r(G);_directionality=r(B,{optional:!0});_contextMenuTracker=r(Nt);_changeDetectorRef=r(re);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._contextMenuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new le({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){return this._overlay.position().flexibleConnectedTo(e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??Bt)}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,o]=ve(i,({type:a})=>a==="auxclick");i=N(o.pipe(Te((a,mt)=>e.ctrlKey&&mt===0&&a.ctrlKey)),n.pipe(Se(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(ae(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=this._overlay.create(this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&h("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&T("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],disabled:[2,"cdkContextMenuDisabled","disabled",oe]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[C([{provide:W,useExisting:t},{provide:y,useClass:fe}]),D]})}return t})();var Ci=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Pe({type:t});static \u0275inj=Oe({imports:[$e]})}return t})();var pt=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),M(3,"i",3),l(),c(4,"div",4),f(5),l()()()),e&2&&(u(3),Ke(i.icon),u(2),z(" ",i.label," "))},dependencies:[Y,Xe],encapsulation:2})};export{st as a,At as b,vi as c,Ii as d,Ci as e,pt as f};
|
|
1
|
+
import{a as nt}from"./chunk-I2O3VGCS.js";import{c as Je,d as et,e as tt}from"./chunk-NRDJEOWR.js";import{a as pe}from"./chunk-6IW4MVP2.js";import{c as Xe}from"./chunk-XOQ4SW2R.js";import{N as it}from"./chunk-ZJMIEPWF.js";import{B as Ge,F as B,N as We,T as le,X as de,Y as Ze,_ as G,ba as $e,e as ae,k as ce,l as Ye,y as ue,z as g}from"./chunk-REQUYIUO.js";import{a as ze}from"./chunk-CB33ZMNF.js";import{$ as q,$a as u,$b as qe,Ba as ee,Cc as A,D as N,F as ve,Fa as I,Fc as K,Ga as Q,Ib as c,Jb as l,Ka as H,Kb as M,Kc as re,Lb as V,M as Ie,Ma as Fe,Mb as j,Mc as oe,O as Ce,Ob as w,Pb as ie,Pc as Qe,Q as xe,Qb as h,Rb as p,Rd as Ve,Td as je,Wa as te,Yb as Be,Yc as He,Z as Se,Zc as Le,_ as Te,_b as Ne,aa as Ee,cb as L,d as k,da as m,dc as F,ec as f,fb as Re,fc as R,gc as z,id as Ue,ja as Z,jd as Y,ka as Oe,kb as U,la as S,lb as Pe,mb as b,na as r,oa as $,ob as D,pa as X,pc as C,qa as J,qb as _,qc as ne,rc as se,ua as De,ub as T,v as be,va as E,vb as d,w as Me,wa as O,xb as Ae,za as we,zb as Ke,zc as P}from"./chunk-DJOHANFC.js";import{a as x,b as ye}from"./chunk-7DCB7DB2.js";var ot=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],gt=t=>({ID:t}),_t=t=>({OutletID:t});function ft(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function kt(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,ft,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function yt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Display,0,3))}}function bt(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(4);return O(o.onSelectQuickKeyItem(n))}),_(2,kt,4,1,"ng-container",7)(3,yt,5,5,"ng-template",null,2,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Display,0,36))}}function Mt(t,s){if(t&1&&(c(0,"mat-tab",11)(1,"div",12)(2,"div",13),_(3,bt,8,7,"div",14),c(4,"div",15)(5,"a",16),M(6,"i",17),l()()()()()),t&2){let e=s.$implicit,i=p(3);d("label",e.Name),u(3),d("ngForOf",e==null?null:e.Items),u(2),d("routerLink",ne(4,ot))("queryParams",se(5,gt,i.quickKey.ID))}}function vt(t,s){if(t&1){let e=w();c(0,"mat-tab-group",9),h("selectedIndexChange",function(n){E(e);let o=p(2);return O(o.onChangeTab(n))}),_(1,Mt,7,7,"mat-tab",10),l()}if(t&2){let e=p(2);d("disableRipple",!0)("selectedIndex",e.selectedTabIndex),u(),d("ngForOf",e.quickKey==null?null:e.quickKey.Groups)}}function It(t,s){if(t&1&&M(0,"img",23),t&2){let e=p(2).$implicit;d("src",e.ImageURLClient,te)}}function Ct(t,s){if(t&1&&(V(0),c(1,"div",20)(2,"div",21),_(3,It,1,1,"img",22),l()(),j()),t&2){let e=p().$implicit;u(3),d("ngIf",e.ImageURLClient)}}function xt(t,s){if(t&1&&(c(0,"div",21)(1,"p",24)(2,"span"),f(3),P(4,"slice"),l()()()),t&2){let e=p().$implicit;u(3),R(A(4,1,e.Model,0,3))}}function St(t,s){if(t&1){let e=w();c(0,"div",18)(1,"a",19),h("click",function(){let n=E(e).$implicit,o=p(3);return O(o.onSelectVariant(n.ID))}),_(2,Ct,4,1,"ng-container",7)(3,xt,5,5,"ng-template",null,3,K),c(5,"small"),f(6),P(7,"slice"),l()()()}if(t&2){let e=s.$implicit,i=F(4);u(2),d("ngIf",e.ImageURLClient)("ngIfElse",i),u(4),R(A(7,3,e.Model,0,30))}}function Tt(t,s){if(t&1){let e=w();c(0,"div",25)(1,"div",26),h("click",function(){E(e);let n=p(2);return O(n.quickKeyState="QUICKKEY")}),M(2,"i",27),l(),c(3,"div",28)(4,"b"),f(5),l()()(),c(6,"div",12)(7,"div",13),_(8,St,8,7,"div",14),l()()}if(t&2){let e=p(2);u(5),z(" ",e.subQuickKeyPack.Display,""),u(3),d("ngForOf",e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Et(t,s){if(t&1&&(V(0),_(1,vt,2,3,"mat-tab-group",8)(2,Tt,9,2,"ng-template",null,1,K),j()),t&2){let e=F(3),i=p();u(),d("ngIf",i.quickKeyState=="QUICKKEY")("ngIfElse",e)}}function Ot(t,s){if(t&1&&(c(0,"div",29)(1,"a",30)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),l(),M(4,"i",31),c(5,"span"),f(6,"Click here to setup your Quick keys"),l()()()),t&2){let e=p();u(),d("routerLink",ne(2,ot))("queryParams",se(3,_t,e.outletID))}}var st=class t{sf=r(nt);quickKey;get outletID(){return this._outletID}set outletID(s){this._outletID=s,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new I;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=s=>{};onTouched=()=>{};writeValue(s){}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.disabled=s}onSelectQuickKeyItem(s){s.Children?s.Children.length==1?this.onSelectVariant(s.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:s.Children,Display:s.Display}):this.onSelectVariant(s.ItemID)}onSelectVariant(s){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(s),this.onChange(s),this.sf.searchFilterNativeEl?.focus()}onChangeTab(s){this.selectedTabIndex=s}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[C([{provide:ze,multi:!0,useExisting:t}])],decls:6,vars:2,consts:[["noQuickKey",""],["SUBQUICKEY",""],["BLANK_IMG",""],["BLANK_IMG_SUB",""],[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[4,"ngIf","ngIfElse"],["class","h-100 bgQuickkeyIllustration landscape",3,"disableRipple","selectedIndex","selectedIndexChange",4,"ngIf","ngIfElse"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],["class","col-3 column px-6",4,"ngFor","ngForOf"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[1,"col-3","column","px-6"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],["class","full-screen-image",3,"src",4,"ngIf"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],[1,"no-quick-key"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){if(e&1&&(c(0,"div",4)(1,"div",5)(2,"section",6),_(3,Et,4,2,"ng-container",7)(4,Ot,7,5,"ng-template",null,0,K),l()()()),e&2){let n=F(5);u(3),d("ngIf",i.quickKey&&i.quickKey.Groups)("ngIfElse",n)}},dependencies:[Y,He,Le,Ue,je,Ve,it,tt,Je,et],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(//res.cloudinary.com/pos/image/upload/w_500/POS/Images/Cashier/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var ut=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[C([{provide:pe,useClass:pe}])]})}return t})(),_e=new S("cdk-menu"),v=function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t}(v||{}),y=new S("cdk-menu-stack"),wt={provide:y,deps:[[new X,new J,new $(y)]],useFactory:t=>t||new fe},Ft=t=>({provide:y,deps:[[new X,new J,new $(y)]],useFactory:s=>s||fe.inline(t)}),fe=(()=>{class t{id=r(ue).getId("cdk-menu-stack-");_elements=[];_close=new k;_empty=new k;_hasFocus=new k;closed=this._close;hasFocus=this._hasFocus.pipe(q(!1),Ie(0),xe());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:o}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:o});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let o=this._elements.pop();o&&this._close.next({item:o,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac})}return t})(),W=new S("cdk-menu-trigger"),Rt=new S("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=r(G);return()=>t.scrollStrategies.reposition()}}),lt=(()=>{class t{injector=r(ee);viewContainerRef=r(Re);menuStack=r(y);menuScrollStrategy=r(Rt);menuPosition;opened=new I;closed=new I;menuTemplateRef;menuData;overlayRef=null;destroyed=new k;stopOutsideClicksListener=N(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new We(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||ee.create({providers:[{provide:W,useValue:this},{provide:y,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,hostVars:2,hostBindings:function(i,n){i&2&&T("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var ke=new S("cdk-menu-aim");function dt(t,s){if(!s.isTrusted)return!1;let e=t.nativeElement,i=s.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var Pt=(()=>{class t extends lt{_elementRef=r(H);_overlay=r(G);_ngZone=r(Q);_changeDetectorRef=r(re);_inputModalityDetector=r(ce);_directionality=r(B,{optional:!0});_renderer=r(L);_cleanupMouseenter;_parentMenu=r(_e,{optional:!0});_menuAim=r(ke,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||this._overlay.create(this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!g(e)&&!dt(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:g(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:g(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:g(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new le({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?de:Ze)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=ae(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&h("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&T("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[C([{provide:W,useExisting:t},wt]),D,De]})}return t})(),At=(()=>{class t{_dir=r(B,{optional:!0});_elementRef=r(H);_ngZone=r(Q);_inputModalityDetector=r(ce);_renderer=r(L);_cleanupMouseEnter;_menuAim=r(ke,{optional:!0});_menuStack=r(y);_parentMenu=r(_e,{optional:!0});_menuTrigger=r(Pt,{optional:!0,self:!0});disabled=!1;typeaheadLabel;triggered=new I;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new k;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!g(e)&&!dt(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:g(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?v.previousItem:v.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:v.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:2,hostBindings:function(i,n){i&1&&h("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(){return n.trigger()})("keydown",function(a){return n._onKeydown(a)}),i&2&&(ie("tabindex",n._tabindex),T("aria-disabled",n.disabled||null))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",oe],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),ge=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new k;exited=new k;activeElement;previousElement;constructor(s,e){this._renderer=s,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(q(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(s=>{let e=s._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(s)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(s)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(s=>s()),this._eventCleanups=void 0}},Kt=(()=>{class t extends ut{_focusMonitor=r(Ye);ngZone=r(Q);_renderer=r(L);nativeElement=r(H).nativeElement;menuStack=r(y);menuAim=r(ke,{optional:!0,self:!0});dir=r(B,{optional:!0});id=r(ue).getId("cdk-menu-");items;orientation="vertical";isInline=!1;keyManager;destroyed=new k;triggerItem;pointerTracker;_menuStackHasFocus=Fe(!1);_tabIndexSignal=Qe(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),o=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?o.setActiveItem(a):o.setFirstItemActive()))}_setKeyManager(){this.keyManager=new Ge(this.items).withWrap().withTypeAhead().withHomeAndEnd(),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=N(this.items.changes,this.destroyed);this.items.changes.pipe(q(this.items),be(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Ce(n),m(e)))),Me(),Ee(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new ge(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=we(t)))(n||t)}})();static \u0275dir=b({type:t,contentQueries:function(i,n,o){if(i&1&&Be(o,At,5),i&2){let a;Ne(a=qe())&&(n.items=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&h("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(ie("tabindex",n._getTabIndex())("id",n.id),T("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[D]})}return t})(),vi=(()=>{class t extends Kt{_parentTrigger=r(W,{optional:!0});closed=new I;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:g(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:g(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:v.currentItem,focusParentTrigger:!0}));break;case 9:g(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case v.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case v.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case v.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&h("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&Ae("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[C([{provide:ut,useExisting:t},{provide:_e,useExisting:t},Ft("vertical")]),D]})}return t})();var Bt=de.map(t=>{let s=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return ye(x({},t),{offsetX:s,offsetY:e})}),Nt=(()=>{class t{static _openContextMenuTrigger;update(e){t._openContextMenuTrigger!==e&&(t._openContextMenuTrigger?.close(),t._openContextMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ii=(()=>{class t extends lt{_overlay=r(G);_directionality=r(B,{optional:!0});_contextMenuTracker=r(Nt);_changeDetectorRef=r(re);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._contextMenuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new le({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){return this._overlay.position().flexibleConnectedTo(e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??Bt)}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,o]=ve(i,({type:a})=>a==="auxclick");i=N(o.pipe(Te((a,mt)=>e.ctrlKey&&mt===0&&a.ctrlKey)),n.pipe(Se(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(ae(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=this._overlay.create(this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=b({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&h("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&T("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],disabled:[2,"cdkContextMenuDisabled","disabled",oe]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[C([{provide:W,useExisting:t},{provide:y,useClass:fe}]),D]})}return t})();var Ci=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Pe({type:t});static \u0275inj=Oe({imports:[$e]})}return t})();var pt=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=U({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),M(3,"i",3),l(),c(4,"div",4),f(5),l()()()),e&2&&(u(3),Ke(i.icon),u(2),z(" ",i.label," "))},dependencies:[Y,Xe],encapsulation:2})};export{st as a,At as b,vi as c,Ii as d,Ci as e,pt as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as B}from"./chunk-JXJUXV43.js";import{N as D,g as V,o as y,p as z,q as b,y as F}from"./chunk-4SOJX57D.js";import{$a as n,Ab as S,Ac as g,Bb as N,Bc as C,Ib as r,Jb as a,Kb as p,Rb as m,Va as d,Xa as k,Yc as A,Zc as x,ec as _,ed as E,fc as v,gc as f,gd as O,hc as u,jd as w,ka as h,kb as P,lb as T,qb as s,ub as H,vb as i,zc as c}from"./chunk-DJOHANFC.js";function U(e,o){if(e&1&&(r(0,"div",4),_(1),c(2,"DecimalRound"),c(3,"TrailingZero"),a()),e&2){let t=m(2);n(),f(" ",C(3,4,C(2,1,(1-t.item.Discount/100)*t.item.Price*t.item.Quantity*t.item.UnitQuantity,4),t.decimal)," ")}}function $(e,o){if(e&1&&(r(0,"div",2)(1,"div"),_(2),c(3,"number"),r(4,"span"),_(5),a(),r(6,"i"),_(7),a()(),s(8,U,4,7,"div",3),a()),e&2){let t=m();S("d-flex justify-content-between ms-2 ",t.item.Quantity<0?"cancel":"",""),n(2),f(" ",g(3,8,t.item.Quantity)," x "),n(3),u(" ",t.item.Variant==null?null:t.item.Variant.Name," ",t.item.Variant!=null&&t.item.Variant.Code&&t.code?" - "+(t.item.Variant==null?null:t.item.Variant.Code):""," "),n(2),v(t.amount&&t.item.Discount!=0?t.item.Discount+" %":""),n(),i("ngIf",t.amount)}}function X(e,o){if(e&1&&(p(0,"mark",5),c(1,"newlines")),e&2){let t=m();i("innerHtml",g(1,1,t.item.Note),d)}}var M=class e{item;decimal;code;amount;note;constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=P({type:e,selectors:[["park-item"]],inputs:{item:"item",decimal:"decimal",code:"code",amount:"amount",note:"note"},standalone:!1,decls:2,vars:2,consts:[["style","font-family:Arial, Helvetica, sans-serif !important;",3,"class",4,"ngIf"],[3,"innerHtml",4,"ngIf"],[2,"font-family","Arial, Helvetica, sans-serif !important"],["class","text-start",4,"ngIf"],[1,"text-start"],[3,"innerHtml"]],template:function(t,l){t&1&&s(0,$,9,10,"div",0)(1,X,2,3,"mark",1),t&2&&(i("ngIf",l.item),n(),i("ngIf",l.item.Note&&l.note))},dependencies:[x,O,y,b,z],encapsulation:2})};function q(e,o){if(e&1&&p(0,"div",18),e&2){let t=m(2);i("innerHtml",t.printTemplate.Field,d)}}function J(e,o){if(e&1&&(r(0,"div",19),p(1,"div",12),c(2,"newlines"),p(3,"div",12),c(4,"newlines"),a()),e&2){let t=m(2);n(),i("innerHtml",g(2,2,t.printTemplate==null?null:t.printTemplate.Address),d),n(2),i("innerHtml",g(4,4,t.printTemplate==null?null:t.printTemplate.ContactInfo),d)}}function K(e,o){if(e&1&&p(0,"h3",12),e&2){let t=m(3);i("innerHtml",t.data==null?null:t.data.Customer.Name,d)}}function W(e,o){if(e&1&&p(0,"h3",12),e&2){let t=m(3);i("innerHtml",t.data==null?null:t.data.Customer.MemberIdentification,d)}}function Y(e,o){if(e&1&&(p(0,"p",12),c(1,"newlines")),e&2){let t=m(3);i("innerHtml",g(1,1,t.data==null?null:t.data.Customer.Address),d)}}function tt(e,o){if(e&1&&p(0,"span",12),e&2){let t=m(3);i("innerHtml",t.data==null?null:t.data.Customer.Phone,d)}}function et(e,o){if(e&1&&p(0,"span",12),e&2){let t=m(3);i("innerHtml",t.data==null?null:t.data.Customer.Email,d)}}function nt(e,o){if(e&1&&(r(0,"div",19),s(1,K,1,1,"h3",20)(2,W,1,1,"h3",20)(3,Y,2,3,"p",20)(4,tt,1,1,"span",20)(5,et,1,1,"span",20),a()),e&2){let t=m(2);n(),i("ngIf",t.data==null?null:t.data.Customer.Name),n(),i("ngIf",t.data==null?null:t.data.Customer.MemberIdentification),n(),i("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),n(),i("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1),n(),i("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible)}}function it(e,o){if(e&1&&(r(0,"div"),_(1),a()),e&2){let t=m(2);n(),f(" ",t.data==null?null:t.data.Title," ")}}function ot(e,o){if(e&1&&(r(0,"div",24),p(1,"park-item",25),a()),e&2){let t=o.$implicit,l=m(3);n(),i("item",t)("code",l.config.PrintConfigInvoice.ItemsTable.CodeVisible)("decimal",l.config.PrintConfigGeneral.TrailingZero)("amount",l.config.ApplicationParkAndRetrieve.PrintOutput.AmountVisible)("note",l.config.PrintConfigInvoice.Footer.NoteVisible)}}function rt(e,o){if(e&1&&(r(0,"div",21)(1,"h6",22),_(2),a(),s(3,ot,2,5,"div",23),a()),e&2){let t=o.$implicit;n(2),f(" ",t.Name," "),n(),i("ngForOf",t.Items)}}function at(e,o){if(e&1&&(r(0,"div",28),p(1,"park-item",25),a()),e&2){let t=o.$implicit,l=m(3);n(),i("item",t)("code",l.config.PrintConfigInvoice.ItemsTable.CodeVisible)("decimal",l.config.PrintConfigGeneral.TrailingZero)("amount",l.config.ApplicationParkAndRetrieve.PrintOutput.AmountVisible)("note",l.config.PrintConfigInvoice.Footer.NoteVisible)}}function lt(e,o){if(e&1&&(r(0,"div",26),s(1,at,2,5,"div",27),a()),e&2){let t=m(2);n(),i("ngForOf",t.data.Items)}}function mt(e,o){if(e&1&&(r(0,"tr")(1,"th",34),_(2),c(3,"sum"),c(4,"number"),a(),r(5,"td",35),_(6,":"),a(),r(7,"td",35),_(8),a(),r(9,"td",36),_(10),c(11,"TrailingZero"),a()()),e&2){let t=o.$implicit,l=o.index,I=m(4);n(2),u(" ",l==1&&I.data.Items.length>1?"Qty: "+g(4,7,C(3,4,I.data.Items,"Quantity")):""," ",t.Label," "),n(6),v(t.CurrencySymbol),n(2),f(" ",C(11,9,t.Amount,I.config.PrintConfigGeneral.TrailingZero)," ")}}function pt(e,o){if(e&1&&(r(0,"div",31)(1,"table",32)(2,"tbody"),s(3,mt,12,12,"tr",33),a()()()),e&2){let t=m(3);n(3),i("ngForOf",t.data.AmountSummary)}}function ct(e,o){e&1&&p(0,"div",31)}function dt(e,o){if(e&1&&(r(0,"div",29),s(1,pt,4,1,"div",30)(2,ct,1,0,"div",30),a()),e&2){let t=m(2);n(),i("ngIf",t.data.AmountSummary.length>0),n(),i("ngIf",t.data.AmountSummary.length>0)}}function st(e,o){if(e&1&&(r(0,"div"),_(1),c(2,"number"),a()),e&2){let t=m(2);n(),f(" Number of Person: ",g(2,1,t.data.NumberOfPerson)," ")}}function _t(e,o){if(e&1&&(r(0,"div"),_(1),a()),e&2){let t=m(2);n(),u(" ",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," : ",t.data.SalesName," ")}}function gt(e,o){e&1&&(r(0,"h6",37),_(1," Note : "),a())}function ft(e,o){if(e&1&&(p(0,"div",38),c(1,"newlines")),e&2){let t=m(2);i("innerHTML",g(1,1,t.data.InvoiceNote),d)}}function Ct(e,o){if(e&1&&p(0,"small",39),e&2){let t=m(2);i("innerHtml",t.data.Creator,d)}}function vt(e,o){if(e&1&&(r(0,"div"),p(1,"div",2),s(2,q,1,1,"div",3)(3,J,5,6,"div",4)(4,nt,6,5,"div",4),r(5,"div",5),s(6,it,2,1,"div",6),r(7,"div"),_(8),a()(),r(9,"div",7),s(10,rt,4,2,"div",8)(11,lt,2,1,"div",9),a(),s(12,dt,3,2,"div",10),r(13,"div",11),s(14,st,3,3,"div",6)(15,_t,2,2,"div",6),p(16,"div",12),c(17,"newlines"),s(18,gt,2,0,"h6",13)(19,ft,2,3,"div",14),a(),p(20,"div",15),c(21,"SafeHtml"),p(22,"small",16),c(23,"date"),s(24,Ct,1,1,"small",17),a()),e&2){let t=m();N("print_container sales_order_mini ",t.printTemplate.PrintLX300?"lx300":""," ",t.printTemplate.CssClass,""),n(),i("innerHtml",t.printTemplate==null?null:t.printTemplate.Title,d),n(),i("ngIf",t.config.ApplicationParkAndRetrieve.PrintOutput.OutletAddressVisible),n(),i("ngIf",t.config.ApplicationParkAndRetrieve.PrintOutput.OutletAddressVisible),n(),i("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&t.data.Customer),n(2),i("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),n(2),v(t.data==null?null:t.data.Date),n(2),i("ngForOf",t.itembyCategory),n(),i("ngIf",!t.config.ApplicationParkAndRetrieve.PrintOutput.GroupByCategory),n(),i("ngIf",t.data.AmountSummary),n(2),i("ngIf",t.data.NumberOfPerson&&t.config.ApplicationParkAndRetrieve.PrintOutput.ShowNumberOfPerson),n(),i("ngIf",t.data.SalesName),n(),i("innerHtml",g(17,21,t.data==null?null:t.data.ExtraNote),d),n(2),i("ngIf",t.data.InvoiceNote&&t.config.PrintConfigInvoice.Footer.NoteVisible),n(),i("ngIf",t.data.InvoiceNote&&t.config.PrintConfigInvoice.Footer.NoteVisible),n(),i("innerHtml",g(21,23,t.printTemplate.FooterRight?t.printTemplate.FooterRight:""),d),n(2),i("innerHtml",C(23,25,t.data.PrintDate,"dd MMM yyyy HH:mm"),d),n(2),i("ngIf",t.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1)}}var R=class e{data;printTemplate;config;stylesheet;itembyCategory=[];ngOnInit(){this.config.ApplicationParkAndRetrieve.PrintOutput.GroupByCategory&&this.data.Items.forEach(o=>{let t=this.itembyCategory.find(l=>l.Name==o.Variant.CategoryName);t==null&&(t={},t.Name=o.Variant.CategoryName,t.Items=this.data.Items.filter(l=>l.Variant.CategoryName==t.Name),this.itembyCategory.push(t))})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=P({type:e,selectors:[["park-order"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config",stylesheet:"stylesheet"},standalone:!1,decls:3,vars:4,consts:[["rel","stylesheet"],[3,"class",4,"ngIf"],[1,"text-center","invoiceHeader","h1",3,"innerHtml"],["class","text-center",3,"innerHtml",4,"ngIf"],["class","d-block text-center",4,"ngIf"],[1,"d-flex","justify-content-between"],[4,"ngIf"],[1,"park-items"],["class","border border-dark p-0 pe-1 mt-4 border-bottom",4,"ngFor","ngForOf"],["class","border-bottom border-dark",4,"ngIf"],["class","row",4,"ngIf"],[1,"text-center"],[3,"innerHtml"],["class","m-0 fw-bold",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"note",3,"innerHtml"],[1,"d-flex","justify-content-center",3,"innerHtml"],["class","d-flex justify-content-center fw-bold",3,"innerHtml",4,"ngIf"],[1,"text-center",3,"innerHtml"],[1,"d-block","text-center"],[3,"innerHtml",4,"ngIf"],[1,"border","border-dark","p-0","pe-1","mt-4","border-bottom"],[1,"text-center",2,"font-size","12px !important"],["style","font-size: 10px !important",4,"ngFor","ngForOf"],[2,"font-size","10px !important"],[3,"item","code","decimal","amount","note"],[1,"border-bottom","border-dark"],["class","border-top border-dark p-0 pt-1 pe-1",4,"ngFor","ngForOf"],[1,"border-top","border-dark","p-0","pt-1","pe-1"],[1,"row"],["class","col-md-12",4,"ngIf"],[1,"col-md-12"],[1,"table","table-borderless","table-sm","float-end","border-bottom","border-dark"],[4,"ngFor","ngForOf"],[1,"text-end"],[2,"width","10px"],[1,"text-end",2,"width","80px"],[1,"m-0","fw-bold"],[3,"innerHTML"],[1,"d-flex","justify-content-center","fw-bold",3,"innerHtml"]],template:function(t,l){t&1&&(p(0,"link",0),c(1,"StylesheetSafeUrl"),s(2,vt,25,28,"div",1)),t&2&&(H("href",l.stylesheet!=null&&l.stylesheet.Size8cm?g(1,2,l.stylesheet==null?null:l.stylesheet.Size8cm):null,k),n(2),i("ngIf",l.data))},dependencies:()=>[A,x,M,O,E,V,y,b,F,B],styles:[".invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}"]})},j=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=T({type:e});static \u0275inj=h({imports:[w,D]})};export{R as a,j as b};
|
|
1
|
+
import{a as B}from"./chunk-JXJUXV43.js";import{N as D,g as V,o as y,p as z,q as b,y as F}from"./chunk-ZJMIEPWF.js";import{$a as n,Ab as S,Ac as g,Bb as N,Bc as C,Ib as r,Jb as a,Kb as p,Rb as m,Va as d,Xa as k,Yc as A,Zc as x,ec as _,ed as E,fc as v,gc as f,gd as O,hc as u,jd as w,ka as h,kb as P,lb as T,qb as s,ub as H,vb as i,zc as c}from"./chunk-DJOHANFC.js";function U(e,o){if(e&1&&(r(0,"div",4),_(1),c(2,"DecimalRound"),c(3,"TrailingZero"),a()),e&2){let t=m(2);n(),f(" ",C(3,4,C(2,1,(1-t.item.Discount/100)*t.item.Price*t.item.Quantity*t.item.UnitQuantity,4),t.decimal)," ")}}function $(e,o){if(e&1&&(r(0,"div",2)(1,"div"),_(2),c(3,"number"),r(4,"span"),_(5),a(),r(6,"i"),_(7),a()(),s(8,U,4,7,"div",3),a()),e&2){let t=m();S("d-flex justify-content-between ms-2 ",t.item.Quantity<0?"cancel":"",""),n(2),f(" ",g(3,8,t.item.Quantity)," x "),n(3),u(" ",t.item.Variant==null?null:t.item.Variant.Name," ",t.item.Variant!=null&&t.item.Variant.Code&&t.code?" - "+(t.item.Variant==null?null:t.item.Variant.Code):""," "),n(2),v(t.amount&&t.item.Discount!=0?t.item.Discount+" %":""),n(),i("ngIf",t.amount)}}function X(e,o){if(e&1&&(p(0,"mark",5),c(1,"newlines")),e&2){let t=m();i("innerHtml",g(1,1,t.item.Note),d)}}var M=class e{item;decimal;code;amount;note;constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=P({type:e,selectors:[["park-item"]],inputs:{item:"item",decimal:"decimal",code:"code",amount:"amount",note:"note"},standalone:!1,decls:2,vars:2,consts:[["style","font-family:Arial, Helvetica, sans-serif !important;",3,"class",4,"ngIf"],[3,"innerHtml",4,"ngIf"],[2,"font-family","Arial, Helvetica, sans-serif !important"],["class","text-start",4,"ngIf"],[1,"text-start"],[3,"innerHtml"]],template:function(t,l){t&1&&s(0,$,9,10,"div",0)(1,X,2,3,"mark",1),t&2&&(i("ngIf",l.item),n(),i("ngIf",l.item.Note&&l.note))},dependencies:[x,O,y,b,z],encapsulation:2})};function q(e,o){if(e&1&&p(0,"div",18),e&2){let t=m(2);i("innerHtml",t.printTemplate.Field,d)}}function J(e,o){if(e&1&&(r(0,"div",19),p(1,"div",12),c(2,"newlines"),p(3,"div",12),c(4,"newlines"),a()),e&2){let t=m(2);n(),i("innerHtml",g(2,2,t.printTemplate==null?null:t.printTemplate.Address),d),n(2),i("innerHtml",g(4,4,t.printTemplate==null?null:t.printTemplate.ContactInfo),d)}}function K(e,o){if(e&1&&p(0,"h3",12),e&2){let t=m(3);i("innerHtml",t.data==null?null:t.data.Customer.Name,d)}}function W(e,o){if(e&1&&p(0,"h3",12),e&2){let t=m(3);i("innerHtml",t.data==null?null:t.data.Customer.MemberIdentification,d)}}function Y(e,o){if(e&1&&(p(0,"p",12),c(1,"newlines")),e&2){let t=m(3);i("innerHtml",g(1,1,t.data==null?null:t.data.Customer.Address),d)}}function tt(e,o){if(e&1&&p(0,"span",12),e&2){let t=m(3);i("innerHtml",t.data==null?null:t.data.Customer.Phone,d)}}function et(e,o){if(e&1&&p(0,"span",12),e&2){let t=m(3);i("innerHtml",t.data==null?null:t.data.Customer.Email,d)}}function nt(e,o){if(e&1&&(r(0,"div",19),s(1,K,1,1,"h3",20)(2,W,1,1,"h3",20)(3,Y,2,3,"p",20)(4,tt,1,1,"span",20)(5,et,1,1,"span",20),a()),e&2){let t=m(2);n(),i("ngIf",t.data==null?null:t.data.Customer.Name),n(),i("ngIf",t.data==null?null:t.data.Customer.MemberIdentification),n(),i("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),n(),i("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1),n(),i("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible)}}function it(e,o){if(e&1&&(r(0,"div"),_(1),a()),e&2){let t=m(2);n(),f(" ",t.data==null?null:t.data.Title," ")}}function ot(e,o){if(e&1&&(r(0,"div",24),p(1,"park-item",25),a()),e&2){let t=o.$implicit,l=m(3);n(),i("item",t)("code",l.config.PrintConfigInvoice.ItemsTable.CodeVisible)("decimal",l.config.PrintConfigGeneral.TrailingZero)("amount",l.config.ApplicationParkAndRetrieve.PrintOutput.AmountVisible)("note",l.config.PrintConfigInvoice.Footer.NoteVisible)}}function rt(e,o){if(e&1&&(r(0,"div",21)(1,"h6",22),_(2),a(),s(3,ot,2,5,"div",23),a()),e&2){let t=o.$implicit;n(2),f(" ",t.Name," "),n(),i("ngForOf",t.Items)}}function at(e,o){if(e&1&&(r(0,"div",28),p(1,"park-item",25),a()),e&2){let t=o.$implicit,l=m(3);n(),i("item",t)("code",l.config.PrintConfigInvoice.ItemsTable.CodeVisible)("decimal",l.config.PrintConfigGeneral.TrailingZero)("amount",l.config.ApplicationParkAndRetrieve.PrintOutput.AmountVisible)("note",l.config.PrintConfigInvoice.Footer.NoteVisible)}}function lt(e,o){if(e&1&&(r(0,"div",26),s(1,at,2,5,"div",27),a()),e&2){let t=m(2);n(),i("ngForOf",t.data.Items)}}function mt(e,o){if(e&1&&(r(0,"tr")(1,"th",34),_(2),c(3,"sum"),c(4,"number"),a(),r(5,"td",35),_(6,":"),a(),r(7,"td",35),_(8),a(),r(9,"td",36),_(10),c(11,"TrailingZero"),a()()),e&2){let t=o.$implicit,l=o.index,I=m(4);n(2),u(" ",l==1&&I.data.Items.length>1?"Qty: "+g(4,7,C(3,4,I.data.Items,"Quantity")):""," ",t.Label," "),n(6),v(t.CurrencySymbol),n(2),f(" ",C(11,9,t.Amount,I.config.PrintConfigGeneral.TrailingZero)," ")}}function pt(e,o){if(e&1&&(r(0,"div",31)(1,"table",32)(2,"tbody"),s(3,mt,12,12,"tr",33),a()()()),e&2){let t=m(3);n(3),i("ngForOf",t.data.AmountSummary)}}function ct(e,o){e&1&&p(0,"div",31)}function dt(e,o){if(e&1&&(r(0,"div",29),s(1,pt,4,1,"div",30)(2,ct,1,0,"div",30),a()),e&2){let t=m(2);n(),i("ngIf",t.data.AmountSummary.length>0),n(),i("ngIf",t.data.AmountSummary.length>0)}}function st(e,o){if(e&1&&(r(0,"div"),_(1),c(2,"number"),a()),e&2){let t=m(2);n(),f(" Number of Person: ",g(2,1,t.data.NumberOfPerson)," ")}}function _t(e,o){if(e&1&&(r(0,"div"),_(1),a()),e&2){let t=m(2);n(),u(" ",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," : ",t.data.SalesName," ")}}function gt(e,o){e&1&&(r(0,"h6",37),_(1," Note : "),a())}function ft(e,o){if(e&1&&(p(0,"div",38),c(1,"newlines")),e&2){let t=m(2);i("innerHTML",g(1,1,t.data.InvoiceNote),d)}}function Ct(e,o){if(e&1&&p(0,"small",39),e&2){let t=m(2);i("innerHtml",t.data.Creator,d)}}function vt(e,o){if(e&1&&(r(0,"div"),p(1,"div",2),s(2,q,1,1,"div",3)(3,J,5,6,"div",4)(4,nt,6,5,"div",4),r(5,"div",5),s(6,it,2,1,"div",6),r(7,"div"),_(8),a()(),r(9,"div",7),s(10,rt,4,2,"div",8)(11,lt,2,1,"div",9),a(),s(12,dt,3,2,"div",10),r(13,"div",11),s(14,st,3,3,"div",6)(15,_t,2,2,"div",6),p(16,"div",12),c(17,"newlines"),s(18,gt,2,0,"h6",13)(19,ft,2,3,"div",14),a(),p(20,"div",15),c(21,"SafeHtml"),p(22,"small",16),c(23,"date"),s(24,Ct,1,1,"small",17),a()),e&2){let t=m();N("print_container sales_order_mini ",t.printTemplate.PrintLX300?"lx300":""," ",t.printTemplate.CssClass,""),n(),i("innerHtml",t.printTemplate==null?null:t.printTemplate.Title,d),n(),i("ngIf",t.config.ApplicationParkAndRetrieve.PrintOutput.OutletAddressVisible),n(),i("ngIf",t.config.ApplicationParkAndRetrieve.PrintOutput.OutletAddressVisible),n(),i("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&t.data.Customer),n(2),i("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),n(2),v(t.data==null?null:t.data.Date),n(2),i("ngForOf",t.itembyCategory),n(),i("ngIf",!t.config.ApplicationParkAndRetrieve.PrintOutput.GroupByCategory),n(),i("ngIf",t.data.AmountSummary),n(2),i("ngIf",t.data.NumberOfPerson&&t.config.ApplicationParkAndRetrieve.PrintOutput.ShowNumberOfPerson),n(),i("ngIf",t.data.SalesName),n(),i("innerHtml",g(17,21,t.data==null?null:t.data.ExtraNote),d),n(2),i("ngIf",t.data.InvoiceNote&&t.config.PrintConfigInvoice.Footer.NoteVisible),n(),i("ngIf",t.data.InvoiceNote&&t.config.PrintConfigInvoice.Footer.NoteVisible),n(),i("innerHtml",g(21,23,t.printTemplate.FooterRight?t.printTemplate.FooterRight:""),d),n(2),i("innerHtml",C(23,25,t.data.PrintDate,"dd MMM yyyy HH:mm"),d),n(2),i("ngIf",t.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1)}}var R=class e{data;printTemplate;config;stylesheet;itembyCategory=[];ngOnInit(){this.config.ApplicationParkAndRetrieve.PrintOutput.GroupByCategory&&this.data.Items.forEach(o=>{let t=this.itembyCategory.find(l=>l.Name==o.Variant.CategoryName);t==null&&(t={},t.Name=o.Variant.CategoryName,t.Items=this.data.Items.filter(l=>l.Variant.CategoryName==t.Name),this.itembyCategory.push(t))})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=P({type:e,selectors:[["park-order"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config",stylesheet:"stylesheet"},standalone:!1,decls:3,vars:4,consts:[["rel","stylesheet"],[3,"class",4,"ngIf"],[1,"text-center","invoiceHeader","h1",3,"innerHtml"],["class","text-center",3,"innerHtml",4,"ngIf"],["class","d-block text-center",4,"ngIf"],[1,"d-flex","justify-content-between"],[4,"ngIf"],[1,"park-items"],["class","border border-dark p-0 pe-1 mt-4 border-bottom",4,"ngFor","ngForOf"],["class","border-bottom border-dark",4,"ngIf"],["class","row",4,"ngIf"],[1,"text-center"],[3,"innerHtml"],["class","m-0 fw-bold",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"note",3,"innerHtml"],[1,"d-flex","justify-content-center",3,"innerHtml"],["class","d-flex justify-content-center fw-bold",3,"innerHtml",4,"ngIf"],[1,"text-center",3,"innerHtml"],[1,"d-block","text-center"],[3,"innerHtml",4,"ngIf"],[1,"border","border-dark","p-0","pe-1","mt-4","border-bottom"],[1,"text-center",2,"font-size","12px !important"],["style","font-size: 10px !important",4,"ngFor","ngForOf"],[2,"font-size","10px !important"],[3,"item","code","decimal","amount","note"],[1,"border-bottom","border-dark"],["class","border-top border-dark p-0 pt-1 pe-1",4,"ngFor","ngForOf"],[1,"border-top","border-dark","p-0","pt-1","pe-1"],[1,"row"],["class","col-md-12",4,"ngIf"],[1,"col-md-12"],[1,"table","table-borderless","table-sm","float-end","border-bottom","border-dark"],[4,"ngFor","ngForOf"],[1,"text-end"],[2,"width","10px"],[1,"text-end",2,"width","80px"],[1,"m-0","fw-bold"],[3,"innerHTML"],[1,"d-flex","justify-content-center","fw-bold",3,"innerHtml"]],template:function(t,l){t&1&&(p(0,"link",0),c(1,"StylesheetSafeUrl"),s(2,vt,25,28,"div",1)),t&2&&(H("href",l.stylesheet!=null&&l.stylesheet.Size8cm?g(1,2,l.stylesheet==null?null:l.stylesheet.Size8cm):null,k),n(2),i("ngIf",l.data))},dependencies:()=>[A,x,M,O,E,V,y,b,F,B],styles:[".invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}"]})},j=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=T({type:e});static \u0275inj=h({imports:[w,D]})};export{R as a,j as b};
|