dealpos 25.37.3 → 25.38.1
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-WDDMKZLZ.js → chunk-2ZLV5QOF.js} +1 -1
- package/browser/{chunk-YMIWL4WY.js → chunk-33Z3MBAK.js} +1 -1
- package/browser/chunk-3HEZ7L27.js +14 -0
- package/browser/{chunk-J4NQVL2U.js → chunk-3R7CKCQC.js} +1 -1
- package/browser/{chunk-4ASACD3Q.js → chunk-4IZK3E4I.js} +1 -1
- package/browser/{chunk-5WFN5KAC.js → chunk-4MKFW5HF.js} +2 -2
- package/browser/{chunk-KEU6GUET.js → chunk-4QPI5R4J.js} +1 -1
- package/browser/{chunk-E3GQ2VEU.js → chunk-53HKNZ5U.js} +1 -1
- package/browser/{chunk-FT4VVMUZ.js → chunk-56F5KRLJ.js} +1 -1
- package/browser/{chunk-FE7KGLWI.js → chunk-5LDMXZLC.js} +1 -1
- package/browser/{chunk-T4MVFJGL.js → chunk-5VKCMGYJ.js} +1 -1
- package/browser/chunk-5VRRYWVC.js +140 -0
- package/browser/{chunk-LD5LH2YH.js → chunk-6QKPMFLS.js} +1 -1
- package/browser/{chunk-OVNI7USJ.js → chunk-6RP2WO45.js} +1 -1
- package/browser/{chunk-EMYSF46P.js → chunk-73MSULVJ.js} +1 -1
- package/browser/chunk-75M3O563.js +1 -0
- package/browser/{chunk-M4IEBQUD.js → chunk-7LY6BGJJ.js} +4 -4
- package/browser/chunk-7OH6LVTJ.js +125 -0
- package/browser/{chunk-7TZA4PUK.js → chunk-7UBJFV53.js} +1 -1
- package/browser/{chunk-2FXL2HDF.js → chunk-7YE4HOHN.js} +1 -1
- package/browser/chunk-A5X65SOA.js +57 -0
- package/browser/{chunk-LEJBHNYP.js → chunk-AESCW6DK.js} +1 -1
- package/browser/chunk-AFU62F2M.js +1 -0
- package/browser/{chunk-Z2P2CNKC.js → chunk-ASU7GMVT.js} +1 -1
- package/browser/{chunk-IPVEZIYO.js → chunk-AZC62B34.js} +1 -1
- package/browser/{chunk-UWNXD5ZO.js → chunk-B3KOTUMH.js} +1 -1
- package/browser/{chunk-AXHXNBHV.js → chunk-BDIOBQ3F.js} +1 -1
- package/browser/{chunk-VX4WL34G.js → chunk-BGRIUOYM.js} +1 -1
- package/browser/{chunk-KMHOACN3.js → chunk-CF6DDJIR.js} +3 -3
- package/browser/{chunk-HYW3PEDN.js → chunk-CFQ7OFCQ.js} +1 -1
- package/browser/{chunk-72KIMU7G.js → chunk-CKBNUI2K.js} +1 -1
- package/browser/chunk-CMTZAHVY.js +1 -0
- package/browser/{chunk-QWLFS2FE.js → chunk-DUEJUN6K.js} +1 -1
- package/browser/{chunk-AUWH2QWX.js → chunk-DV4SS5LL.js} +1 -1
- package/browser/chunk-DXNYWBOJ.js +1 -0
- package/browser/{chunk-HUAA5QUE.js → chunk-EAENAZFY.js} +1 -1
- package/browser/{chunk-NXQT6LJS.js → chunk-EBR5GJGA.js} +1 -1
- package/browser/{chunk-YAGXTRYQ.js → chunk-EPQCS4G7.js} +1 -1
- package/browser/{chunk-YFN33F7G.js → chunk-FC2QVVNL.js} +1 -1
- package/browser/{chunk-RRGRXLUZ.js → chunk-FT7BPR32.js} +1 -1
- package/browser/{chunk-QBECNCED.js → chunk-G7YXYVOM.js} +1 -1
- package/browser/{chunk-5O2KKW6F.js → chunk-GKVCGI4Q.js} +14 -12
- package/browser/{chunk-IWJJRPWB.js → chunk-GNIXWNP2.js} +1 -1
- package/browser/{chunk-FY5VLGQC.js → chunk-GWHR6QGI.js} +1 -1
- package/browser/chunk-H6OITCFT.js +1 -0
- package/browser/{chunk-RCW46J3Z.js → chunk-HFMOHPY7.js} +1 -1
- package/browser/{chunk-BED5HJZ2.js → chunk-HGB2NJEI.js} +1 -1
- package/browser/{chunk-A4JKVSUB.js → chunk-I4UPUEJQ.js} +4 -4
- package/browser/{chunk-JTWFMMM2.js → chunk-ICQLVIY5.js} +1 -1
- package/browser/{chunk-AXEM33OC.js → chunk-IUATJVYE.js} +1 -1
- package/browser/chunk-IV6VX4SW.js +1 -0
- package/browser/chunk-IY5XCLBB.js +1 -0
- package/browser/chunk-J27ER66U.js +2 -0
- package/browser/{chunk-YLD325HC.js → chunk-J6H577U5.js} +1 -1
- package/browser/{chunk-PMQCMLOB.js → chunk-JG6KP3LU.js} +1 -1
- package/browser/{chunk-OFCUJNQU.js → chunk-JHLUUVPP.js} +1 -1
- package/browser/{chunk-2RWD5W3A.js → chunk-JI6KR4QD.js} +1 -1
- package/browser/chunk-JIFR7UDE.js +1 -0
- package/browser/{chunk-IQY2LSF6.js → chunk-JKXSLPGV.js} +1 -1
- package/browser/chunk-JRRUR7IA.js +1 -0
- package/browser/{chunk-NILHRRUO.js → chunk-JSETQAUZ.js} +1 -1
- package/browser/{chunk-7EU2PMHX.js → chunk-K5DJ5WPE.js} +1 -1
- package/browser/{chunk-NOK7ZUJF.js → chunk-K7MKOLA6.js} +1 -1
- package/browser/{chunk-O6GMQRZG.js → chunk-KGDQP4JR.js} +1 -1
- package/browser/chunk-KXOXDBRC.js +1 -0
- package/browser/{chunk-CG73T3TQ.js → chunk-KYSWAYKK.js} +1 -1
- package/browser/{chunk-H4SCBKWD.js → chunk-L3BBA7TR.js} +1 -1
- package/browser/{chunk-CJKH7RU5.js → chunk-L3MPEEI7.js} +1 -1
- package/browser/{chunk-N3XWBPCL.js → chunk-LJYCLPTA.js} +1 -1
- package/browser/{chunk-LHQMGLCO.js → chunk-LT55LCIC.js} +1 -1
- package/browser/{chunk-RT6YCLZW.js → chunk-MGFRGPN4.js} +1 -1
- package/browser/{chunk-246GVKUS.js → chunk-MPENEFJK.js} +1 -1
- package/browser/chunk-MTTML3DV.js +3 -0
- package/browser/chunk-NOHORPPM.js +1 -0
- package/browser/{chunk-DTFL44UO.js → chunk-O27UF6WP.js} +1 -1
- package/browser/{chunk-RLFBLSFM.js → chunk-O6K27TYY.js} +1 -1
- package/browser/{chunk-GAPY6IUE.js → chunk-OQN4WGVB.js} +1 -1
- package/browser/{chunk-57IUU6ZC.js → chunk-OWSL7VZ7.js} +1 -1
- package/browser/{chunk-AKPQZTEV.js → chunk-PMTKXVGT.js} +1 -1
- package/browser/{chunk-LC2G5X3T.js → chunk-PPSWM237.js} +1 -1
- package/browser/{chunk-IX5URHI7.js → chunk-Q3GWLSDE.js} +1 -1
- package/browser/{chunk-MTMMU7GK.js → chunk-Q5WMF6RD.js} +1 -1
- package/browser/chunk-QBWWLEFP.js +24 -0
- package/browser/{chunk-2QG4JWAE.js → chunk-QCJ7PV4R.js} +4 -4
- package/browser/chunk-QHBYJZNS.js +1 -0
- package/browser/chunk-QQ5NVKJL.js +82 -0
- package/browser/{chunk-OXLXIWTF.js → chunk-QVRCMMJJ.js} +1 -1
- package/browser/chunk-QXK4GGIN.js +1 -0
- package/browser/{chunk-CZAQG6WF.js → chunk-QZDLOXOP.js} +1 -1
- package/browser/{chunk-DSIUUK4N.js → chunk-RCRLKTEV.js} +1 -1
- package/browser/{chunk-5G6GUMV7.js → chunk-RPNTNFVK.js} +1 -1
- package/browser/{chunk-PTGE5E6V.js → chunk-SF6TPOUV.js} +1 -1
- package/browser/{chunk-76T3TRG4.js → chunk-SP3U2IDW.js} +1 -1
- package/browser/{chunk-47I5SA66.js → chunk-SSRC3KCP.js} +1 -1
- package/browser/{chunk-VSFXSQWT.js → chunk-STC3XKNG.js} +1 -1
- package/browser/{chunk-V55A6VFC.js → chunk-T4BIKBND.js} +1 -1
- package/browser/{chunk-XOMO7AVU.js → chunk-TF3Q66XY.js} +1 -1
- package/browser/chunk-TIXKTMNP.js +1 -0
- package/browser/{chunk-ELFCO6CE.js → chunk-TNJUQ6BJ.js} +1 -1
- package/browser/{chunk-QILONTOR.js → chunk-TNXU6YBX.js} +1 -1
- package/browser/{chunk-ZDJDS43F.js → chunk-TTGCLMYO.js} +1 -1
- package/browser/{chunk-L4VLBO5X.js → chunk-UF66Z7HD.js} +1 -1
- package/browser/{chunk-ML4LS3JQ.js → chunk-ULVRQWWQ.js} +1 -1
- package/browser/{chunk-2W2V2NM7.js → chunk-UMUBYBGM.js} +1 -1
- package/browser/{chunk-EANTJIRK.js → chunk-UYJZPS2Q.js} +1 -1
- package/browser/{chunk-HNX747EE.js → chunk-V4VZQ5KY.js} +1 -1
- package/browser/chunk-V5A6ADTH.js +1 -0
- package/browser/{chunk-Z7BGVRZR.js → chunk-VE4MEWC3.js} +1 -1
- package/browser/{chunk-OSWSFGOJ.js → chunk-W446RFN2.js} +1 -1
- package/browser/{chunk-FLEDIXNB.js → chunk-W6TD44BK.js} +1 -1
- package/browser/chunk-W7TIYEEV.js +1 -0
- package/browser/{chunk-X3P7SVC6.js → chunk-WLIVNIHK.js} +1 -1
- package/browser/chunk-WNWQWQ7T.js +1 -0
- package/browser/{chunk-HHIBVND5.js → chunk-WO4BYI7W.js} +1 -1
- package/browser/{chunk-LK3EGJFT.js → chunk-X4OHSOA3.js} +1 -1
- package/browser/{chunk-4F7XKKDX.js → chunk-X4UVY3YK.js} +1 -1
- package/browser/{chunk-ZGUZW56H.js → chunk-XG6WOYOZ.js} +1 -1
- package/browser/{chunk-WG2QGIET.js → chunk-XI63Z4XV.js} +1 -1
- package/browser/chunk-XUOXQ56H.js +3 -0
- package/browser/{chunk-4PBQC5P6.js → chunk-Y3XAADIW.js} +1 -1
- package/browser/{chunk-CKB6AES2.js → chunk-Y5RVOKMC.js} +1 -1
- package/browser/{chunk-EQT4SGSU.js → chunk-Y6ACRZOB.js} +1 -1
- package/browser/{chunk-ACSIWGQV.js → chunk-Y6SHFOKM.js} +2 -2
- package/browser/chunk-YNKGRRRO.js +1 -0
- package/browser/{chunk-7EA7EXS5.js → chunk-YTSJ26UL.js} +1 -1
- package/browser/{chunk-GKTQL7S6.js → chunk-Z75HO5XT.js} +1 -1
- package/browser/{chunk-6FKZY7NZ.js → chunk-ZC5TUX6E.js} +1 -1
- package/browser/{chunk-77KTGZY6.js → chunk-ZZVXDXSB.js} +1 -1
- package/browser/index.html +3 -3
- package/browser/{main-E4MQYENS.js → main-HGYA62Q7.js} +2 -2
- package/browser/{styles-AWHBZGFK.css → styles-2TXD27TS.css} +1 -1
- package/package.json +1 -1
- package/browser/chunk-2CJDU4L3.js +0 -1
- package/browser/chunk-BSJU72R6.js +0 -3
- package/browser/chunk-ED4YSOUM.js +0 -56
- package/browser/chunk-GTRQV3VX.js +0 -1
- package/browser/chunk-H3V5PSCN.js +0 -218
- package/browser/chunk-HMRDZRDD.js +0 -12
- package/browser/chunk-IMEKDDRZ.js +0 -1
- package/browser/chunk-IXDUCCKR.js +0 -2
- package/browser/chunk-KEUS7V3K.js +0 -1
- package/browser/chunk-KP2OKS63.js +0 -1
- package/browser/chunk-KZU22HGO.js +0 -1
- package/browser/chunk-LMSUV4DF.js +0 -4
- package/browser/chunk-LRZRVZHZ.js +0 -24
- package/browser/chunk-MXD23J36.js +0 -1
- package/browser/chunk-NUGWNTFZ.js +0 -1
- package/browser/chunk-ODE5SZH6.js +0 -1
- package/browser/chunk-OY46AN7G.js +0 -1
- package/browser/chunk-P42NPBKN.js +0 -1
- package/browser/chunk-PJZKO6EJ.js +0 -1
- package/browser/chunk-RW7QZRJ2.js +0 -3
- package/browser/chunk-SZDICN4P.js +0 -1
- package/browser/chunk-TPPS3QIA.js +0 -1
- package/browser/chunk-UGECMXMN.js +0 -125
- package/browser/chunk-VGHP2OV6.js +0 -1
- package/browser/chunk-X3HEHRBU.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as b}from"./chunk-
|
|
1
|
+
import{D as b}from"./chunk-GWHR6QGI.js";import{P as s}from"./chunk-Q3GWLSDE.js";import{Yd as D,ja as y,ma as c,t as l}from"./chunk-DZT5XHBQ.js";var p=class{_EntityID;_ID;_Note;_Number;_VariantID;_Quantity;_ExpiryDate;constructor(t){t&&(this.EntityID=t.EntityID,this.ID=t.ID,this.Note=t.Note,this.Number=t.Number,this.VariantID=t.VariantID,this.Quantity=t.Quantity,this.ExpiryDate=t.ExpiryDate)}get Quantity(){return this._Quantity}set Quantity(t){this._Quantity=t}get EntityID(){return this._EntityID}get ID(){return this._ID}get Note(){return this._Note}get Number(){return this._Number}get VariantID(){return this._VariantID}set EntityID(t){this._EntityID=t}set ID(t){this._ID=t}set Note(t){this._Note=t}set Number(t){this._Number=t}set VariantID(t){this._VariantID=t}get ExpiryDate(){return this._ExpiryDate}set ExpiryDate(t){this._ExpiryDate=t}};var g=class o{constructor(t,i){this.httpService=t;this.localData=i}findVariantByID(t,i,n=!0){return new Promise((a,e)=>{this.localData.isConfigFromServer().subscribe(u=>{u?this.httpService.get(s.GetVariantByID,[{key:"ID",value:t},{key:"EntityID",value:i},{key:"Promotion",value:n}]).subscribe({next:r=>{a(r)},error:r=>{e(r)}}):this.localData.findVariantById(t,i).subscribe({next:r=>{a(r)},error:r=>{e(r)}})})})}findVariantByCode(t,i,n=!1){return new Promise((a,e)=>{this.localData.isProductFromServer().subscribe(u=>{u?this.httpService.get(s.GetVariantByCode,[{key:"Code",value:t},{key:"EntityID",value:i},{key:"BarcodeSerial",value:n},{key:"Promotion",value:!0}]).subscribe({next:r=>{a(r)},error:r=>{e(r)}}):this.localData.findVariantByCode(t,i).subscribe({next:r=>{a(r)},error:r=>{e(r)}})})})}getVariantSerial(t,i){return this.httpService.post(s.GetVariantSerial,{entityID:t,variantID:i}).pipe(l(n=>n.map(e=>new p(e))))}getSerialByVarianIds(t,i){return this.httpService.post(s.GetVariantSerialByListVariantID,{EntityID:t,ListVariantID:i})}findVariantBySerial(t,i){return this.httpService.get(s.GetVariantBySerial,[{key:"Serial",value:t},{key:"EntityID",value:i}])}getStockByID(t,i){return new Promise((n,a)=>{this.httpService.get(s.GetVariantStockByID,[{key:"ID",value:t},{key:"EntityID",value:i}]).subscribe({next:e=>n(e),error:e=>a(e)})})}static \u0275fac=function(i){return new(i||o)(c(D),c(b))};static \u0275prov=y({token:o,factory:o.\u0275fac,providedIn:"root"})};export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as H,b as at,c as lt}from"./chunk-W2UCLTBY.js";import{a as Q}from"./chunk-NJSJDYUI.js";import{a as U}from"./chunk-TGAOY65D.js";import{O as D,n as nt,o as L,q as et,v as it,z as ot}from"./chunk-IX5URHI7.js";import{a as V}from"./chunk-AHCRE4GP.js";import{$a as i,Ab as q,Ac as f,Bb as W,Bc as b,Cc as M,Db as v,Fc as K,Ib as c,Jb as l,Kb as _,Lb as x,Ma as j,Mb as P,Od as tt,Rb as r,Va as s,Wa as z,Wc as Y,Xa as I,Yc as R,Zc as w,db as B,dc as X,ec as p,fc as C,gc as g,gd as h,hc as y,ic as J,jd as k,ka as O,kb as S,lb as T,qb as d,rc as $,ub as E,vb as a,yb as Z,zb as G,zc as m}from"./chunk-DZT5XHBQ.js";function ft(n,o){if(n&1&&(x(0),c(1,"div",5)(2,"div",6)(3,"div",11)(4,"span"),p(5),l()()()(),P()),n&2){let t=r(2);i(5),y("",t.config==null||t.config.PrintConfigOthers==null||t.config.PrintConfigOthers.Header==null?null:t.config.PrintConfigOthers.Header.PackingReceiptTitle," : ",t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number,"")}}function ut(n,o){if(n&1&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Customer==null?null:t.data.Customer.ContactDisplay)}}function xt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Customer==null?null:t.data.Customer.Email)}}function Pt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Customer==null?null:t.data.Customer.Phone)}}function vt(n,o){if(n&1&&(c(0,"div"),_(1,"span",10),m(2,"newlines"),l()),n&2){let t=r(3);i(),a("innerHtml",f(2,1,t.data.Customer==null?null:t.data.Customer.Address),s)}}function bt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.CityName)}}function Mt(n,o){if(n&1&&(c(0,"div",12)(1,"div",13)(2,"h4"),_(3,"span",10),l(),d(4,ut,2,1,"strong",2)(5,xt,3,1,"div",2)(6,Pt,3,1,"div",2)(7,vt,3,3,"div",2)(8,bt,3,1,"div",2),l()()),n&2){let t=r(2);i(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.Customer,s),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible)}}function yt(n,o){if(n&1&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Shipping.Name)}}function ht(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.Street)}}function Ot(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.Phone)}}function It(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.City)}}function St(n,o){if(n&1&&(c(0,"div"),_(1,"span",10),m(2,"newlines"),l()),n&2){let t=r(3);i(),a("innerHtml",f(2,1,t.data.Shipping==null?null:t.data.Shipping.Description),s)}}function Tt(n,o){if(n&1&&(c(0,"div",5)(1,"div",14)(2,"div",11),_(3,"span",10),l(),d(4,yt,2,1,"strong",2)(5,ht,3,1,"div",2)(6,Ot,3,1,"div",2)(7,It,3,1,"div",2)(8,St,3,3,"div",2),l()()),n&2){let t=r(2);i(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.ShippingAddress,s),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.data.Shipping.Address),i(),a("ngIf",t.data.Shipping.Phone),i(),a("ngIf",t.data.Shipping.City),i(),a("ngIf",t.data.Shipping.Description)}}function Et(n,o){if(n&1&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Shipping.Sender)}}function Rt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderAddress)}}function wt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderPhone)}}function kt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderCity)}}function Vt(n,o){if(n&1&&(c(0,"div",5)(1,"div",14)(2,"div",11)(3,"span"),p(4,"Ship From :"),l()(),d(5,Et,2,1,"strong",2)(6,Rt,3,1,"div",2)(7,wt,3,1,"div",2)(8,kt,3,1,"div",2),l()()),n&2){let t=r(2);i(5),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.data.Shipping.SenderAddress),i(),a("ngIf",t.data.Shipping.SenderPhone),i(),a("ngIf",t.data.Shipping.SenderCity)}}function Lt(n,o){if(n&1&&(x(0),c(1,"div",15)(2,"div",16)(3,"div",17)(4,"span",11),p(5),l()()()(),P()),n&2){let t=r(2);i(5),C(t.data.TypeName)}}function Dt(n,o){if(n&1&&(c(0,"tbody")(1,"tr"),_(2,"td",23),c(3,"td"),p(4),l(),_(5,"td",23),m(6,"number"),l()()),n&2){let t=o.$implicit,e=o.index;i(2),a("innerHtml",e+1+".",s),i(2),g(" ",t.Name," "),i(),a("innerHtml",f(6,3,t.Quantity),s)}}function Ht(n,o){if(n&1&&(c(0,"div",5)(1,"div",6)(2,"table",18)(3,"thead",19)(4,"tr")(5,"th",20),p(6,"No"),l(),c(7,"th",21),p(8,"Name"),l(),c(9,"th",20),p(10,"Qty"),l()()(),d(11,Dt,7,5,"tbody",22),l()()()),n&2){let t=r(2);i(11),a("ngForOf",t.data.List)}}function Nt(n,o){if(n&1&&(c(0,"div",5)(1,"div",6),_(2,"div",24),m(3,"newlines"),l()()),n&2){let t=r(2);i(2),a("innerHtml",f(3,1,t.data.Invoice.Note),s)}}function At(n,o){if(n&1&&(c(0,"div"),d(1,ft,6,2,"ng-container",2)(2,Mt,9,6,"div",3)(3,Tt,9,6,"div",4)(4,Vt,9,4,"div",4)(5,Lt,6,1,"ng-container",2)(6,Ht,12,1,"div",4)(7,Nt,4,3,"div",4),c(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"div",9),_(13,"span",10),m(14,"newlines"),l()()()()()()),n&2){let t=r();q("packingslip_container ",t.printTemplate.PrintLX300?"lx300":"",""),i(),a("ngIf",t.constants.IsNotEmpty(t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number)),i(),a("ngIf",!(t.data.Shipping!=null&&t.data.Shipping.Recipient)),i(),a("ngIf",t.data.Shipping),i(),a("ngIf",(t.data.Shipping==null?null:t.data.Shipping.Sender)&&t.config.PrintConfigPackingSlip.ShippingAddressSenderVisible),i(),a("ngIf",t.data.TypeName),i(),a("ngIf",t.config.PrintConfigPackingSlip.ProductTableVisible),i(),a("ngIf",t.config.PrintConfigPackingSlip.RenderInvoiceNote&&(t.data.Invoice==null?null:t.data.Invoice.Note)!=null),i(6),a("innerHtml",f(14,11,t.printTemplate.DeliveryNote),s)}}var N=class n{data;printTemplate;config;stylesheet;constants=V;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=S({type:n,selectors:[["packing-slip"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config",stylesheet:"stylesheet"},standalone:!1,decls:3,vars:4,consts:[["rel","stylesheet"],[3,"class",4,"ngIf"],[4,"ngIf"],["class","row g-0 pt-3",4,"ngIf"],["class","row g-0",4,"ngIf"],[1,"row","g-0"],[1,"col"],["id","signatureNote"],[1,"note"],[1,"d-flex","justify-content-md-start"],[3,"innerHtml"],[1,"fw-bold"],[1,"row","g-0","pt-3"],[1,"col","border","border-dark","py-2","px-2"],[1,"col","border","border-dark","py-2","px-2","mb-2"],[1,"row","my-2"],[1,"col","text-end","my-2"],[1,"border","border-dark","py-2","px-2","mb-2","text-center"],[1,"table","table-striped","table-sm","table-bordered","w-100"],[2,"background","#fdf3c6"],[1,"text-end",2,"width","10%"],[2,"width","80%"],[4,"ngFor","ngForOf"],[2,"text-align","right",3,"innerHtml"],[2,"text-align","center","padding","16px","border","1px dotted black","background-color","#fceca3",3,"innerHtml"]],template:function(t,e){t&1&&(_(0,"link",0),m(1,"StylesheetSafeUrl"),d(2,At,15,13,"div",1)),t&2&&(E("href",e.stylesheet!=null&&e.stylesheet.Size8cm?f(1,2,e.stylesheet==null?null:e.stylesheet.Size8cm):null,I),i(2),a("ngIf",e.data&&e.config))},dependencies:[R,w,h,L,H],encapsulation:2})},A=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=T({type:n});static \u0275inj=O({imports:[k,D]})};var zt=n=>({width:n}),Bt=n=>({"align-items-end":n});function $t(n,o){if(n&1&&_(0,"POS-print-mode",3),n&2){let t=r(2);a("paperPrints",t.paperPrintMode)}}function Ut(n,o){if(n&1&&_(0,"div",44),n&2){let t=r(4);a("innerHTML",t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.FooterLabel==null?null:t.config.PrintConfigInvoice.FooterLabel.CopyLabelText,s)}}function Qt(n,o){n&1&&(c(0,"div",45),p(1," Void "),l())}function jt(n,o){n&1&&(c(0,"div",46),p(1," Return "),l())}function Zt(n,o){if(n&1&&(c(0,"div",40),d(1,Ut,1,1,"div",41)(2,Qt,2,0,"div",42)(3,jt,2,0,"div",43),l()),n&2){let t=r(3);i(),a("ngIf",!t.data.Bin&&!t.data.Retur),i(),a("ngIf",t.data==null?null:t.data.Bin),i(),a("ngIf",t.data==null?null:t.data.Retur)}}function Gt(n,o){if(n&1&&_(0,"img",48),n&2){let t=r(4);Z($(3,zt,t.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth+"px")),a("src",t.printTemplate==null?null:t.printTemplate.Logo,z)}}function qt(n,o){if(n&1&&(x(0),d(1,Gt,1,5,"img",47),P()),n&2){let t=r(3);i(),a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function Wt(n,o){if(n&1&&_(0,"img",48),n&2){let t=r(4);a("src",t.printTemplate==null?null:t.printTemplate.Logo,z)}}function Xt(n,o){if(n&1&&d(0,Wt,1,1,"img",49),n&2){let t=r(3);a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function Jt(n,o){if(n&1&&_(0,"span",12),n&2){let t=r(3);a("innerHTML",t.data==null?null:t.data.RegisterCode,s)}}function Kt(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r(4);i(),g(" - ",t.data==null||t.data.Customer==null?null:t.data.Customer.Code,"")}}function Yt(n,o){if(n&1&&(c(0,"h6",50)(1,"span"),p(2),l(),d(3,Kt,2,1,"span",17),l()),n&2){let t=r(3);i(2),y("",t.data==null||t.data.Customer==null?null:t.data.Customer.Title," ",t.data.Customer==null?null:t.data.Customer.Name,""),i(),a("ngIf",(t.data==null||t.data.Customer==null?null:t.data.Customer.Code)&&t.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible)}}function tn(n,o){if(n&1&&_(0,"h6",51),n&2){let t=r(3);a("innerHTML",t.data.Customer==null?null:t.data.Customer.NationalIDNumber,s)}}function nn(n,o){if(n&1&&(_(0,"p",52),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data.Customer==null?null:t.data.Customer.Address),s)}}function en(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),g(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+M(2,1,t.data.Customer==null?null:t.data.Customer.Phone,4,(t.data.Customer==null?null:t.data.Customer.Phone.length)-4):" "+(t.data.Customer==null?null:t.data.Customer.Phone)," ")}}function on(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),g(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+M(2,1,t.data.Customer==null?null:t.data.Customer.Mobile,4,(t.data.Customer==null||t.data.Customer.Mobile==null?null:t.data.Customer.Mobile.length)-4):" "+(t.data.Customer==null?null:t.data.Customer.Mobile)," ")}}function an(n,o){if(n&1&&_(0,"p",53),n&2){let t=r(3);a("innerHTML",t.data.Customer==null?null:t.data.Customer.Email,s)}}function ln(n,o){if(n&1&&(c(0,"h2",54),p(1),l()),n&2){let t=r(3);G(t.data.PaymentState==2?"text-warning":"text-danger"),i(),g(" ",t.data.PaymentState==2?"PARTIAL":t.config.PrintConfigInvoice.DocumentLabel.BillLabel," ")}}function cn(n,o){if(n&1&&(c(0,"h2",20),p(1),l()),n&2){let t=r(3);i(),g(" ",!(t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null)&&t.config.PrintConfigInvoice.Header.SalesReturnLabelText?t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null?null:t.config.PrintConfigInvoice.Header.SalesReturnLabelText:"SALES RETURN"," ")}}function rn(n,o){if(n&1&&(x(0),c(1,"h3",54),p(2),l(),P()),n&2){let t=r(3);i(2),C(t.data==null?null:t.data.ParkLabel)}}function pn(n,o){if(n&1&&(c(0,"div",21),p(1),l()),n&2){let t=r(3);i(),g("Cashier : ",t.data.Creator,"")}}function dn(n,o){n&1&&(c(0,"div",55)(1,"div",56),p(2,"SERVER ERROR!"),l(),c(3,"div",57)(4,"a",58),p(5," status.dealpos.com "),l()(),c(6,"div"),p(7,"Please check if order is uploaded successfully"),l()())}function mn(n,o){n&1&&(c(0,"div",59),p(1," OFFLINE ORDER "),l())}function _n(n,o){if(n&1&&d(0,mn,2,0,"div",59),n&2){let t=r(4);v(t.isOffline?0:-1)}}function gn(n,o){if(n&1&&d(0,dn,8,0,"div",55)(1,_n,1,1),n&2){let t=r(3);v(t.isUnknownError==!0?0:1)}}function sn(n,o){if(n&1&&(x(0),_(1,"div",12),P()),n&2){let t=r(4);i(),a("innerHTML",t.data.HeaderTitle,s)}}function Cn(n,o){if(n&1&&(c(0,"div",60),d(1,sn,2,1,"ng-container",17),_(2,"div",12),l()),n&2){let t=r(3);i(),a("ngIf",t.data.HeaderTitle),i(),a("innerHTML",t.data.Number,s)}}function fn(n,o){if(n&1&&(x(0),p(1),P()),n&2){let t=r().index;i(),g(" ",t+1,". ")}}function un(n,o){if(n&1&&(x(0),_(1,"app-serial-note",70),P()),n&2){let t=r().$implicit;i(),a("serials",t.Serial)}}function xn(n,o){if(n&1&&(c(0,"div",71)(1,"i",72),p(2),l()()),n&2){let t=r().$implicit;i(2),g(" sold by ",t.SalesName," ")}}function Pn(n,o){if(n&1&&(_(0,"small",74),m(1,"newlines")),n&2){let t=r(2).$implicit;a("innerHTML",f(1,1,t.Note),s)}}function vn(n,o){if(n&1&&(x(0),d(1,Pn,2,3,"small",73),P()),n&2){let t=r().$implicit,e=r(3);i(),a("ngIf",t.Note&&e.config.PrintConfigInvoice.ItemsTable.NoteItemVisible)}}function bn(n,o){if(n&1&&(c(0,"span",77),p(1),l()),n&2){let t=r(2).$implicit;i(),g(" ",t.Taxable?"V":"N"," ")}}function Mn(n,o){if(n&1&&(c(0,"span",77),p(1),l()),n&2){let t=r(2).$implicit,e=r(3);i(),g(" ",t.Taxable?e.config.PrintConfigInvoice.ItemsTable.TaxableLabel:"N"," ")}}function yn(n,o){if(n&1&&(c(0,"div",75),d(1,bn,2,1,"span",76)(2,Mn,2,1,"span",76),l()),n&2){let t=r(4);i(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel==""||t.config.PrintConfigInvoice.ItemsTable.TaxableLabel=="Taxable"),i(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!=""&&t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!="Taxable")}}function hn(n,o){if(n&1&&(c(0,"span",78),p(1),m(2,"number"),l()),n&2){let t=r().$implicit,e=r(3);i(),J(" ",b(2,3,t.Quantity,"1.0-4")," ",e.config.PrintConfigInvoice.ItemsTable.UOMVisible?t.Variant.UOMName:""," ",t.UnitQuantity!=1?" x "+t.UnitQuantity:""," ")}}function On(n,o){if(n&1&&(x(0),c(1,"span",81),p(2),m(3,"number"),l(),P()),n&2){let t=r(3).$implicit;i(2),C(f(3,1,t==null?null:t.UnitPriceOriginal))}}function In(n,o){if(n&1&&(x(0),d(1,On,4,3,"ng-container",17),P()),n&2){let t=r(2).$implicit;i(),a("ngIf",(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))}}function Sn(n,o){if(n&1&&(x(0),c(1,"span",79),p(2,"x"),l(),c(3,"span",80),d(4,In,2,1,"ng-container",17),p(5),m(6,"number"),l(),P()),n&2){let t=r().$implicit,e=r(3);i(4),a("ngIf",e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice),i(),g(" ",f(6,2,t.Price)," ")}}function Tn(n,o){if(n&1&&(x(0),c(1,"i",82),p(2),m(3,"number"),l(),P()),n&2){let t=r().$implicit;i(2),g(" ","-"+f(3,1,t.Discount)+"%"," ")}}function En(n,o){if(n&1&&(x(0),c(1,"i",83),p(2),m(3,"number"),l(),P()),n&2){let t=r().$implicit;i(2),g(" ","-"+f(3,1,t.DiscountAmount)," ")}}function Rn(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"number"),m(3,"TrailingZero"),l()),n&2){let t=r().$implicit,e=r(3);i(),g(" ",b(3,3,f(2,1,(1-t.Discount/100)*t.Price*t.Quantity*t.UnitQuantity-t.DiscountAmount*t.Quantity),e.config.PrintConfigGeneral.TrailingZero)," ")}}function wn(n,o){if(n&1&&(c(0,"div",61)(1,"div",21)(2,"div",62)(3,"div"),d(4,fn,2,1,"ng-container",17),p(5),l(),d(6,un,2,1,"ng-container",17)(7,xn,3,1,"div",63)(8,vn,2,1,"ng-container",17),l(),d(9,yn,3,2,"div",64),l(),c(10,"div",65)(11,"div",66)(12,"div",67),d(13,hn,3,6,"span",68)(14,Sn,7,4,"ng-container",17)(15,Tn,4,3,"ng-container",17)(16,En,4,3,"ng-container",17),l()(),c(17,"div",69),d(18,Rn,4,6,"span",17),l()()()),n&2){let t=o.$implicit,e=r(3);i(4),a("ngIf",e.config.ModuleSell.Grid.RowNumberVisible),i(),y(" ",t.Variant.Name," ",t.Variant.Code&&e.config.PrintConfigInvoice.ItemsTable.CodeVisible?" - "+t.Variant.Code:""," "),i(),a("ngIf",t.Serial&&(t.Serial==null?null:t.Serial.length)>0),i(),a("ngIf",t.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",t.Note),i(),a("ngIf",e.config.PrintConfigInvoice.ItemsTable.TaxableVisible),i(),a("ngClass",$(13,Bt,(e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice)&&(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))),i(3),a("ngIf",e.config.PrintConfigInvoice.ItemsTable.QuantityVisible),i(),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),a("ngIf",t.Discount!=0&&e.amountVisible),i(),a("ngIf",t.DiscountAmount!=0&&e.amountVisible),i(2),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction)}}function kn(n,o){if(n&1&&(c(0,"span")(1,"span"),p(2),l()()),n&2){let t=r().$implicit;i(2),g("",t.Label," :")}}function Vn(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r().$implicit;i(),g("",t.CurrencySymbol," ")}}function Ln(n,o){if(n&1&&(c(0,"div",85),m(1,"Filter"),c(2,"div",86),p(3),d(4,kn,3,1,"span"),l(),c(5,"div",87)(6,"div",88)(7,"div",89),d(8,Vn,2,1,"span",17),l(),c(9,"div",90)(10,"span"),p(11),m(12,"number"),m(13,"TrailingZero"),l()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);a("ngClass",e==M(1,7,u.data.AmountSummary,1,"Type").length-1?"pb-2":""),i(2),a("ngClass",e==1?"border-top":""),i(),g(" ",e==0&&t.Label=="Amount"?u.totalItemsLabel+" :":""," "),i(),v(e!=0||t.Label!="Amount"?4:-1),i(),a("ngClass",e==1?"border-top":""),i(3),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),C(b(13,13,f(12,11,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function Dn(n,o){if(n&1&&(c(0,"div",84),d(1,Ln,14,16,"div",28),m(2,"Filter"),l()),n&2){let t=r(3);i(),a("ngForOf",M(2,1,t.data.AmountSummary,1,"Type"))}}function Hn(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r().$implicit,e=r(4);i(),g(" ",e.config.PrintConfigInvoice.DocumentVisibility.PaymentCode==3?"- ***"+M(2,1,t.Code,4,t.Code.length-4):"- "+t.Code," ")}}function Nn(n,o){if(n&1&&_(0,"div",12),n&2){let t=r().$implicit;a("innerHTML",t.Note,s)}}function An(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(5);i(),C(t.data.CurrencySymbol)}}function Fn(n,o){if(n&1&&(c(0,"div",92)(1,"div",93),p(2),d(3,Hn,3,5,"span",17)(4,Nn,1,1,"div",12),l(),c(5,"div",94),d(6,An,2,1,"span",95),c(7,"span",90),p(8),m(9,"TrailingZero"),l()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);a("hidden",t.Amount==0),i(2),g(" ",u.config.PrintConfigInvoice.Footer.PaymentMethodVisible?t.MethodName:u.data.Payments.length!=1?"Payment":"Payment "+(e+1)," "),i(),a("ngIf",t.Code&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentCode!=1),i(),v(!(u.config==null||u.config.PrintConfigInvoice==null||u.config.PrintConfigInvoice.DocumentVisibility==null)&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentNoteVisible&&t.Note?4:-1),i(2),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),g(" ",b(9,6,u.change>0?t.PaidAmount:t.Amount,u.config.PrintConfigGeneral.TrailingZero),"")}}function zn(n,o){if(n&1&&(c(0,"div"),d(1,Fn,10,9,"div",91),l()),n&2){let t=r(3);i(),a("ngForOf",t.data.Payments)}}function Bn(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(4);i(),C(t.currencyChange)}}function $n(n,o){if(n&1&&(c(0,"div",96)(1,"div",97),p(2,"Change :"),l(),c(3,"div",94),d(4,Bn,2,1,"span",95),c(5,"span",90),p(6),m(7,"TrailingZero"),l()()()),n&2){let t=r(3);i(4),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),g(" ",b(7,2,t.change,t.config.PrintConfigGeneral.TrailingZero),"")}}function Un(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(4);i(),C(t.data.CurrencySymbol)}}function Qn(n,o){if(n&1&&(c(0,"div",96)(1,"div",97),p(2),l(),c(3,"div",94),d(4,Un,2,1,"span",95),c(5,"span",90),p(6),m(7,"TrailingZero"),l()()()),n&2){let t=r(3);i(2),g("",t.remainingLabel,":"),i(2),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),C(b(7,3,t.diff,t.config.PrintConfigGeneral.TrailingZero))}}function jn(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r().$implicit;i(),g("",t.CurrencySymbol," ")}}function Zn(n,o){if(n&1&&(c(0,"div",85)(1,"div",98),p(2),l(),c(3,"div",99)(4,"div",88)(5,"div",89),d(6,jn,2,1,"span",17),l(),c(7,"div",90)(8,"span"),p(9),m(10,"number"),m(11,"TrailingZero"),l()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(3);a("ngClass",e==0?"border-top pt-2":""),i(2),g("",t.Label," :"),i(4),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),C(b(11,6,f(10,4,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function Gn(n,o){if(n&1&&(x(0),c(1,"strong",100),p(2),l(),_(3,"span",101),P()),n&2){let t=r(3);i(2),g(" ",t.config.LoyaltyLabel?t.config.LoyaltyLabel:"Loyalty Point"," "),i(),a("innerHTML",t.data.LoyaltyPoint,s)}}function qn(n,o){n&1&&(c(0,"h6",102),p(1," Coupon "),l())}function Wn(n,o){if(n&1&&(c(0,"span",103),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),g(" ",t.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon==3?"***"+M(2,1,t.data.Coupon,3,t.data.Coupon.length-3):t.data.Coupon," ")}}function Xn(n,o){n&1&&(c(0,"h6",102),p(1,"ToP"),l())}function Jn(n,o){if(n&1&&_(0,"span",101),n&2){let t=r(4);a("innerHTML",t.data.Due,s)}}function Kn(n,o){if(n&1&&(c(0,"span",103),p(1),l()),n&2){let t=r(4);i(),g("- ",t.top," Days")}}function Yn(n,o){if(n&1&&(c(0,"div",30),d(1,Xn,2,0,"h6",31)(2,Jn,1,1,"span",104)(3,Kn,2,1,"span",32),l()),n&2){let t=r(3);i(),a("ngIf",t.data.ToP),i(),a("ngIf",t.data.ToP),i(),a("ngIf",t.data.ToP)}}function te(n,o){if(n&1&&(c(0,"h6",102),p(1),l()),n&2){let t=r(3);i(),g(" ",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," ")}}function ne(n,o){if(n&1&&(c(0,"p"),p(1),l()),n&2){let t=r(3);i(),g(" ",t.data==null?null:t.data.SalesName," ")}}function ee(n,o){n&1&&(c(0,"h6",102),p(1," Note "),l())}function ie(n,o){if(n&1&&(_(0,"p",12),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data==null?null:t.data.ExtraNote),s)}}function oe(n,o){n&1&&(c(0,"h6",105),p(1," Note "),l())}function ae(n,o){if(n&1&&(_(0,"p",106),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data==null?null:t.data.InvoiceNote),s)}}function le(n,o){if(n&1&&(c(0,"p",107),p(1),l()),n&2){let t=r(3);i(),g(" Printed : ",t.data==null?null:t.data.PrintDate," ")}}function ce(n,o){if(n&1&&(c(0,"p",107),p(1),l()),n&2){let t=r(3);i(),g(" Created : ",t.data==null?null:t.data.Created," ")}}function re(n,o){if(n&1&&(c(0,"div",39)(1,"p",107),p(2),l()()),n&2){let t=r(3);i(2),g("Trace ID : ",t.data==null?null:t.data.InvoiceID,"")}}function pe(n,o){if(n&1&&(c(0,"div"),_(1,"div",108)(2,"packing-slip",109),l()),n&2){let t=r(3);i(2),a("data",t.data)("printTemplate",t.printTemplate)("config",t.config)}}function de(n,o){if(n&1&&(c(0,"div"),d(1,Zt,4,3,"div",6),c(2,"div",7),d(3,qt,2,1,"ng-container",8)(4,Xt,1,1,"ng-template",null,0,K),l(),c(6,"div",7),_(7,"h2",9)(8,"i",10),c(9,"p",11),_(10,"span",12),m(11,"newlines"),_(12,"br"),d(13,Jt,1,1,"span",13),_(14,"br")(15,"span",12),m(16,"newlines"),l(),d(17,Yt,4,3,"h6",14)(18,tn,1,1,"h6",15)(19,nn,2,3,"p",16)(20,en,3,5,"span",17)(21,on,3,5,"span",17)(22,an,1,1,"p",18),l(),d(23,ln,2,3,"h2",19)(24,cn,2,1,"h2",20)(25,rn,3,1,"ng-container",17)(26,pn,2,1,"div",21)(27,gn,2,1),c(28,"div",22),d(29,Cn,3,2,"div",23),c(30,"div",24)(31,"div"),p(32),l()()(),d(33,wn,19,15,"div",25)(34,Dn,3,5,"div",26)(35,zn,2,1,"div",17)(36,$n,8,5,"div",27)(37,Qn,8,6,"div",27)(38,Zn,12,9,"div",28),m(39,"Filter"),c(40,"div",29)(41,"div",30),d(42,Gn,4,2,"ng-container",17)(43,qn,2,0,"h6",31)(44,Wn,3,5,"span",32),l(),d(45,Yn,4,3,"div",33),l(),c(46,"div",34),d(47,te,2,1,"h6",31)(48,ne,2,1,"p",17)(49,ee,2,0,"h6",31)(50,ie,2,3,"p",13)(51,oe,2,0,"h6",35)(52,ae,2,3,"p",36),l(),_(53,"p",12),m(54,"SafeHtml"),c(55,"div",7),d(56,le,2,1,"p",37),l(),c(57,"div",38),d(58,ce,2,1,"p",37),l(),d(59,re,3,1,"div",39)(60,pe,3,3,"div",17),l()),n&2){let t=X(5),e=r(2);W("print_container invoice_mini ",e.printTemplate!=null&&e.printTemplate.PrintLX300?"lx300":""," ",e.printTemplate==null?null:e.printTemplate.CssClass," box mt-5"),i(),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Footer==null?null:e.config.PrintConfigInvoice.Footer.CopyLabelEnabled)&&!(e.printTemplate!=null&&e.printTemplate.PrintLX300)&&(e.data==null?null:e.data.PrintCopyLabel)),i(2),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.LogoConfig==null?null:e.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth)>0)("ngIfElse",t),i(4),a("innerHTML",e.printTemplate==null?null:e.printTemplate.Title,s),i(),a("innerHTML",e.printTemplate==null?null:e.printTemplate.Field,s),i(2),a("innerHTML",f(11,46,e.printTemplate==null?null:e.printTemplate.Address),s),i(3),a("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.RegisterCode),i(2),a("innerHTML",f(16,48,e.printTemplate==null?null:e.printTemplate.ContactInfo),s),i(2),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Name)),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.NationalIDNumber)&&e.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Address)&&e.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Phone)&&e.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)!==null),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Mobile)&&e.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)==null&&(e.data.Customer==null?null:e.data.Customer.Mobile)!==null),i(),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),i(),v(e.data.PaymentState<3?23:-1),i(),v(e.data.Retur&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Header==null)&&e.config.PrintConfigInvoice.Header.SalesReturnLabel)?24:-1),i(),a("ngIf",e.data.PaymentState==1),i(),v(e.data.Creator&&e.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1?26:-1),i(),v(!(e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.WritePrintOffline?27:-1),i(2),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),i(3),C(e.data.Date),i(),a("ngForOf",e.data.Items),i(),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),a("ngIf",(e.data.Payments.length>0||!(e.change>0)||e.diff>0)&&e.amountVisible),i(),a("ngIf",e.change>0&&e.amountVisible),i(),a("ngIf",e.diff>0&&!e.hasSurcharge&&e.amountVisible),i(),a("ngForOf",M(39,50,e.data.AmountSummary,2,"Type")),i(4),a("ngIf",e.config.PrintConfigInvoice.Footer.ShowLoyaltyPoint&&e.data.LoyaltyPoint),i(),a("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),a("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible&&e.data.PaymentState<3&&e.data.Payments.length==0),i(2),a("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",(e.data==null?null:e.data.ExtraNote)&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),a("ngIf",e.data.ExtraNote&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),a("ngIf",(e.data==null?null:e.data.InvoiceNote)&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),a("ngIf",e.data.InvoiceNote&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),a("innerHTML",f(54,54,e.printTemplate!=null&&e.printTemplate.FooterLeft?e.printTemplate==null?null:e.printTemplate.FooterLeft:""),s),i(3),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.CustomerEntryTimeVisible)&&e.data.PrintDate),i(2),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.InvoiceCreatedTimeVisible)&&e.data.Created),i(),v(e.isOffline==!1&&(e.data!=null&&e.data.InvoiceID)&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.TraceID)?59:-1),i(),a("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.PrintPackingslipAftersell)}}function me(n,o){if(n&1&&(x(0),_(1,"qr-code",111),P()),n&2){let t=r(3);i(),a("value",t.data.QRContent)("size",250)}}function _e(n,o){if(n&1&&(c(0,"div",110),d(1,me,2,2,"ng-container",17),l()),n&2){let t=r(2);i(),a("ngIf",(t.config==null||t.config.PrintConfigInvoice==null?null:t.config.PrintConfigInvoice.InvoiceQR.TransformTo)==t.invoiceQR.QRCode)}}function ge(n,o){if(n&1&&(_(0,"link",2),m(1,"StylesheetSafeUrl"),d(2,$t,1,1,"POS-print-mode",3)(3,de,61,56,"div",4)(4,_e,2,1,"div",5)),n&2){let t=r();E("href",t.stylesheet!=null&&t.stylesheet.Size8cm?f(1,4,t.stylesheet==null?null:t.stylesheet.Size8cm):null,I),i(2),v(t.receiptParam?2:-1),i(),a("ngIf",t.data),i(),a("ngIf",(t.config==null||t.config.PrintConfigInvoice==null?null:t.config.PrintConfigInvoice.InvoiceQR.TransformTo)!=t.invoiceQR.None)}}function se(n,o){n&1&&(c(0,"div",1)(1,"div",112)(2,"h1"),p(3," Cannot generate print preview because of client-server displaying different / mismatch items in invoice "),l()()())}var pt=(e=>(e[e.None=1]="None",e[e.Barcode=2]="Barcode",e[e.QRCode=3]="QRCode",e))(pt||{}),ct=class n{constructor(o,t){this.activeRoute=o;this.decimalPipe=t}data;outletInfo;printTemplate;config;emailVisibleRestriction;priceVisibleRestriction;receiptParam;isUnknownError=!1;isOffline=!1;stylesheet;invoiceQR=pt;paperPrintMode;printModeType;customerVisible;amountVisible;diff;change=0;currencyChange;totalItemsLabel;hasSurcharge;top;remainingLabel;totalItemLength=j(0);ngOnInit(){this.initRemainingLabel(),this.generateItemLabel(),this.checkAmountSummary(),this.checkSurcharge(),this.calculatePrintPrice(),this.prepareSalesCommission(),this.initPaperModeConfig(),this.parseTop()}initRemainingLabel(){let o=this.config?this.config.PrintConfigInvoice.Footer.LabelRemaining:"";this.remainingLabel=o||"Remaining"}initPaperModeConfig(){if(this.receiptParam){let o=this.receiptParam;this.paperPrintMode=[{label:"8cm",link:"/print/InvoiceMini",param:o},{label:"A4",link:"/print/Invoice",param:o}]}}parseTop(){this.data&&this.data.ToP&&(this.top=parseInt(this.data.ToP.toFixed(1)))}getJSONQR(){let o,t;return this.data.OutletName!==null&&this.data.Number!=null&&(o={Outlet:this.data.OutletName,Invoice:this.data.Number},t=JSON.stringify(o)),t}calculatePrintPrice(){this.customerVisible=this.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&this.data.Customer;let o=this.activeRoute.snapshot.queryParamMap.get("Price");this.amountVisible=o!=="0",this.calculateChange()}calculateChange(){let o=0;this.data.Payments.forEach(e=>{o+=e.PaidAmount});let t=this.data.FinalAmount;this.calculateDiff(),this.change=o-t,this.currencyChange=this.data.CurrencySymbol}calculateDiff(){let o=0;this.data.Payments.forEach(e=>{o+=e.Amount});let t=this.data.FinalAmount;this.diff=t-o,Math.abs(this.diff)<this.config.ModuleSell.ToleranceAmount&&(this.diff=0)}generateItemLabel(){let o=0,t=this.data.Items.length;for(let F of this.data.Items)(this.config?.PrintConfigInvoice?.ItemsTable?.NonInventoryCount||F.Variant.TypeID!=2)&&(o+=F.Quantity);this.totalItemLength.set(t);let e=o>1?"s":"",u=this.decimalPipe.transform(o,"1.0-4").toString(),dt=this.config.PrintConfigInvoice?.ItemsFooter?.TotalQuantityVisible;this.totalItemsLabel=`Total (Item${e}: ${t}${dt?`, Qty: ${u})`:")"}`}checkSurcharge(){this.hasSurcharge=!1;for(let o of this.data.AmountSummary)o.Label.includes("Surcharge")&&(this.hasSurcharge=!0)}checkAmountSummary(){let o=this.data.AmountSummary.length;this.data.AmountSummary[o-1].Label=="Change"&&(this.change=this.data.AmountSummary[o-1].Amount,this.currencyChange=this.data.AmountSummary[o-1].CurrencySymbol,this.data.AmountSummary.pop(),this.data.AmountSummary.pop())}prepareSalesCommission(){for(let o of this.data.Items)o.SalesID!=null&&o.SalesName==null&&(o.SalesName=this.getSalesName(o.SalesID))}getSalesName(o){let t=this.outletInfo.ListSales.find(e=>e.ID==o);return V.IsNotEmpty(t)?t.Name:""}static \u0275fac=function(t){return new(t||n)(B(tt),B(h))};static \u0275cmp=S({type:n,selectors:[["pos-receipt"]],inputs:{data:"data",outletInfo:"outletInfo",printTemplate:"printTemplate",config:"config",emailVisibleRestriction:"emailVisibleRestriction",priceVisibleRestriction:"priceVisibleRestriction",receiptParam:"receiptParam",isUnknownError:"isUnknownError",isOffline:"isOffline",stylesheet:"stylesheet"},standalone:!1,decls:2,vars:1,consts:[["DEFAULTWIDTH",""],[1,"print_container"],["rel","stylesheet"],["paperType","mini",1,"d-print-none",3,"paperPrints"],[3,"class",4,"ngIf"],["class","d-flex justify-content-center",4,"ngIf"],["class","h5 text-center fw-bold ribbon text-white",4,"ngIf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[1,"m-0","fw-bold",3,"innerHTML"],[1,"d-block",3,"innerHTML"],[1,"mt-1","mb-3"],[3,"innerHTML"],[3,"innerHTML",4,"ngIf"],["class","m-0 pt-2 fw-bold",4,"ngIf"],["class","m-0 pt-2 fw-normal",3,"innerHTML",4,"ngIf"],["class","mb-0",3,"innerHTML",4,"ngIf"],[4,"ngIf"],["class","fst-italic mb-2",3,"innerHTML",4,"ngIf"],[1,"text-center","m-0","p-1",3,"class"],[1,"text-center","m-0","p-1","text-warning"],[1,"row","g-0"],[1,"row","g-0","justify-content-between","py-2"],["class","col fw-bold",4,"ngIf"],[1,"col","text-end"],["class","border-y pt-1",4,"ngFor","ngForOf"],["class","cartAmount pt-2",4,"ngIf"],["class","row g-0 text-end",4,"ngIf"],["class","row g-0 text-end",3,"ngClass",4,"ngFor","ngForOf"],[1,"row","g-0","mt-2"],[1,"col-md-12","text-center"],["class","m-0 fw-bold",4,"ngIf"],["class","pb-3",4,"ngIf"],["class","col-md-12 text-center",4,"ngIf"],[1,"text-center","my-2"],["class","fw-bold",4,"ngIf"],["style","word-break: break-all",3,"innerHTML",4,"ngIf"],["class","m-0",4,"ngIf"],[1,"text-center","mt-3"],[1,"text-center","mt-3","trace-id"],[1,"h5","text-center","fw-bold","ribbon","text-white"],["class","bg-primary ribbon-content receipt py-3",3,"innerHTML",4,"ngIf"],["class","bg-danger void ribbon-content py-3",4,"ngIf"],["class","bg-warning retur ribbon-content py-3",4,"ngIf"],[1,"bg-primary","ribbon-content","receipt","py-3",3,"innerHTML"],[1,"bg-danger","void","ribbon-content","py-3"],[1,"bg-warning","retur","ribbon-content","py-3"],["class","img-fluid border-0",3,"style","src",4,"ngIf"],[1,"img-fluid","border-0",3,"src"],["class","img-fluid border-0",3,"src",4,"ngIf"],[1,"m-0","pt-2","fw-bold"],[1,"m-0","pt-2","fw-normal",3,"innerHTML"],[1,"mb-0",3,"innerHTML"],[1,"fst-italic","mb-2",3,"innerHTML"],[1,"text-center","m-0","p-1"],[1,"text-center","my-3","text-danger"],[1,"fw-bold","fs-4"],[1,"my-1"],["target","_blank","href","https://status.dealpos.com"],[1,"fs-5","text-danger","fw-bold","text-center","mt-1"],[1,"col","fw-bold"],[1,"border-y","pt-1"],[1,"col-11"],["class","fst-italic pt-0 mt-0",4,"ngIf"],["class","col-1 ps-2 text-end",4,"ngIf"],[1,"d-flex","g-0","pb-1",3,"ngClass"],[1,"flex-grow-1","text-end"],[1,"d-flex","align-items-end","justify-content-end","me-5"],["class","small",4,"ngIf"],[1,"col-auto","text-end"],[3,"serials"],[1,"fst-italic","pt-0","mt-0"],[1,"inlineMarginLeft"],["class","fst-italic text-success","style","overflow-wrap: break-word",3,"innerHTML",4,"ngIf"],[1,"fst-italic","text-success",2,"overflow-wrap","break-word",3,"innerHTML"],[1,"col-1","ps-2","text-end"],["class","small fst-italic text-danger",4,"ngIf"],[1,"small","fst-italic","text-danger"],[1,"small"],[1,"small","mx-1"],[1,"small","d-inline-flex","flex-column"],[1,"text-decoration-line-through","text-danger"],[1,"fw-bold","text-danger","me-2","ms-4","small"],[1,"fw-bold","text-danger","me-2","small"],[1,"cartAmount","pt-2"],[1,"row","g-0","text-end",3,"ngClass"],[1,"col-7","fw-bold",3,"ngClass"],[1,"col-5","g-0",3,"ngClass"],[1,"row"],[1,"col-auto"],[1,"col"],["class","row g-0 text-end",3,"hidden",4,"ngFor","ngForOf"],[1,"row","g-0","text-end",3,"hidden"],[1,"col-7","fw-bold","pe-3"],[1,"col-5","row","g-0"],["class","col-auto",4,"ngIf"],[1,"row","g-0","text-end"],[1,"col-7","fw-bold"],[1,"col-7"],[1,"col-5"],[1,"mt-3","mb-1","d-block"],[1,"pb-3",3,"innerHTML"],[1,"m-0","fw-bold"],[1,"pb-3"],["class","pb-3",3,"innerHTML",4,"ngIf"],[1,"fw-bold"],[2,"word-break","break-all",3,"innerHTML"],[1,"m-0"],[2,"border-top-style","dotted"],[3,"data","printTemplate","config"],[1,"d-flex","justify-content-center"],[1,"qrcode-custom",3,"value","size"],[1,"print-error-message"]],template:function(t,e){t&1&&d(0,ge,5,6)(1,se,4,0,"div",1),t&2&&v(e.totalItemLength()==(e.data==null||e.data.Items==null?null:e.data.Items.length)&&e.data?0:1)},dependencies:()=>[Y,R,w,N,at,Q,U,h,nt,L,et,it,ot,H],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}}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #BBBBBB!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}qrcode.qrcode-custom[_ngcontent-%COMP%]{margin-top:-20px}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:100vh;text-align:center}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#dc3545!important;font-weight:500}"]})},rt=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=T({type:n});static \u0275inj=O({imports:[k,D,A,lt,Q,U]})};export{N as a,A as b,ct as c,rt as d};
|
|
1
|
+
import{a as H,b as at,c as lt}from"./chunk-W2UCLTBY.js";import{a as Q}from"./chunk-NJSJDYUI.js";import{a as U}from"./chunk-TGAOY65D.js";import{O as D,n as nt,o as L,q as et,v as it,z as ot}from"./chunk-Q3GWLSDE.js";import{a as V}from"./chunk-AHCRE4GP.js";import{$a as i,Ab as q,Ac as f,Bb as W,Bc as b,Cc as M,Db as v,Fc as K,Ib as c,Jb as l,Kb as _,Lb as x,Ma as j,Mb as P,Od as tt,Rb as r,Va as s,Wa as z,Wc as Y,Xa as I,Yc as R,Zc as w,db as B,dc as X,ec as p,fc as C,gc as g,gd as h,hc as y,ic as J,jd as k,ka as O,kb as S,lb as T,qb as d,rc as $,ub as E,vb as a,yb as Z,zb as G,zc as m}from"./chunk-DZT5XHBQ.js";function ft(n,o){if(n&1&&(x(0),c(1,"div",5)(2,"div",6)(3,"div",11)(4,"span"),p(5),l()()()(),P()),n&2){let t=r(2);i(5),y("",t.config==null||t.config.PrintConfigOthers==null||t.config.PrintConfigOthers.Header==null?null:t.config.PrintConfigOthers.Header.PackingReceiptTitle," : ",t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number,"")}}function ut(n,o){if(n&1&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Customer==null?null:t.data.Customer.ContactDisplay)}}function xt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Customer==null?null:t.data.Customer.Email)}}function Pt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Customer==null?null:t.data.Customer.Phone)}}function vt(n,o){if(n&1&&(c(0,"div"),_(1,"span",10),m(2,"newlines"),l()),n&2){let t=r(3);i(),a("innerHtml",f(2,1,t.data.Customer==null?null:t.data.Customer.Address),s)}}function bt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.CityName)}}function Mt(n,o){if(n&1&&(c(0,"div",12)(1,"div",13)(2,"h4"),_(3,"span",10),l(),d(4,ut,2,1,"strong",2)(5,xt,3,1,"div",2)(6,Pt,3,1,"div",2)(7,vt,3,3,"div",2)(8,bt,3,1,"div",2),l()()),n&2){let t=r(2);i(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.Customer,s),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible)}}function yt(n,o){if(n&1&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Shipping.Name)}}function ht(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.Street)}}function Ot(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.Phone)}}function It(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.City)}}function St(n,o){if(n&1&&(c(0,"div"),_(1,"span",10),m(2,"newlines"),l()),n&2){let t=r(3);i(),a("innerHtml",f(2,1,t.data.Shipping==null?null:t.data.Shipping.Description),s)}}function Tt(n,o){if(n&1&&(c(0,"div",5)(1,"div",14)(2,"div",11),_(3,"span",10),l(),d(4,yt,2,1,"strong",2)(5,ht,3,1,"div",2)(6,Ot,3,1,"div",2)(7,It,3,1,"div",2)(8,St,3,3,"div",2),l()()),n&2){let t=r(2);i(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.ShippingAddress,s),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.data.Shipping.Address),i(),a("ngIf",t.data.Shipping.Phone),i(),a("ngIf",t.data.Shipping.City),i(),a("ngIf",t.data.Shipping.Description)}}function Et(n,o){if(n&1&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Shipping.Sender)}}function Rt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderAddress)}}function wt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderPhone)}}function kt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderCity)}}function Vt(n,o){if(n&1&&(c(0,"div",5)(1,"div",14)(2,"div",11)(3,"span"),p(4,"Ship From :"),l()(),d(5,Et,2,1,"strong",2)(6,Rt,3,1,"div",2)(7,wt,3,1,"div",2)(8,kt,3,1,"div",2),l()()),n&2){let t=r(2);i(5),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.data.Shipping.SenderAddress),i(),a("ngIf",t.data.Shipping.SenderPhone),i(),a("ngIf",t.data.Shipping.SenderCity)}}function Lt(n,o){if(n&1&&(x(0),c(1,"div",15)(2,"div",16)(3,"div",17)(4,"span",11),p(5),l()()()(),P()),n&2){let t=r(2);i(5),C(t.data.TypeName)}}function Dt(n,o){if(n&1&&(c(0,"tbody")(1,"tr"),_(2,"td",23),c(3,"td"),p(4),l(),_(5,"td",23),m(6,"number"),l()()),n&2){let t=o.$implicit,e=o.index;i(2),a("innerHtml",e+1+".",s),i(2),g(" ",t.Name," "),i(),a("innerHtml",f(6,3,t.Quantity),s)}}function Ht(n,o){if(n&1&&(c(0,"div",5)(1,"div",6)(2,"table",18)(3,"thead",19)(4,"tr")(5,"th",20),p(6,"No"),l(),c(7,"th",21),p(8,"Name"),l(),c(9,"th",20),p(10,"Qty"),l()()(),d(11,Dt,7,5,"tbody",22),l()()()),n&2){let t=r(2);i(11),a("ngForOf",t.data.List)}}function Nt(n,o){if(n&1&&(c(0,"div",5)(1,"div",6),_(2,"div",24),m(3,"newlines"),l()()),n&2){let t=r(2);i(2),a("innerHtml",f(3,1,t.data.Invoice.Note),s)}}function At(n,o){if(n&1&&(c(0,"div"),d(1,ft,6,2,"ng-container",2)(2,Mt,9,6,"div",3)(3,Tt,9,6,"div",4)(4,Vt,9,4,"div",4)(5,Lt,6,1,"ng-container",2)(6,Ht,12,1,"div",4)(7,Nt,4,3,"div",4),c(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"div",9),_(13,"span",10),m(14,"newlines"),l()()()()()()),n&2){let t=r();q("packingslip_container ",t.printTemplate.PrintLX300?"lx300":"",""),i(),a("ngIf",t.constants.IsNotEmpty(t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number)),i(),a("ngIf",!(t.data.Shipping!=null&&t.data.Shipping.Recipient)),i(),a("ngIf",t.data.Shipping),i(),a("ngIf",(t.data.Shipping==null?null:t.data.Shipping.Sender)&&t.config.PrintConfigPackingSlip.ShippingAddressSenderVisible),i(),a("ngIf",t.data.TypeName),i(),a("ngIf",t.config.PrintConfigPackingSlip.ProductTableVisible),i(),a("ngIf",t.config.PrintConfigPackingSlip.RenderInvoiceNote&&(t.data.Invoice==null?null:t.data.Invoice.Note)!=null),i(6),a("innerHtml",f(14,11,t.printTemplate.DeliveryNote),s)}}var N=class n{data;printTemplate;config;stylesheet;constants=V;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=S({type:n,selectors:[["packing-slip"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config",stylesheet:"stylesheet"},standalone:!1,decls:3,vars:4,consts:[["rel","stylesheet"],[3,"class",4,"ngIf"],[4,"ngIf"],["class","row g-0 pt-3",4,"ngIf"],["class","row g-0",4,"ngIf"],[1,"row","g-0"],[1,"col"],["id","signatureNote"],[1,"note"],[1,"d-flex","justify-content-md-start"],[3,"innerHtml"],[1,"fw-bold"],[1,"row","g-0","pt-3"],[1,"col","border","border-dark","py-2","px-2"],[1,"col","border","border-dark","py-2","px-2","mb-2"],[1,"row","my-2"],[1,"col","text-end","my-2"],[1,"border","border-dark","py-2","px-2","mb-2","text-center"],[1,"table","table-striped","table-sm","table-bordered","w-100"],[2,"background","#fdf3c6"],[1,"text-end",2,"width","10%"],[2,"width","80%"],[4,"ngFor","ngForOf"],[2,"text-align","right",3,"innerHtml"],[2,"text-align","center","padding","16px","border","1px dotted black","background-color","#fceca3",3,"innerHtml"]],template:function(t,e){t&1&&(_(0,"link",0),m(1,"StylesheetSafeUrl"),d(2,At,15,13,"div",1)),t&2&&(E("href",e.stylesheet!=null&&e.stylesheet.Size8cm?f(1,2,e.stylesheet==null?null:e.stylesheet.Size8cm):null,I),i(2),a("ngIf",e.data&&e.config))},dependencies:[R,w,h,L,H],encapsulation:2})},A=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=T({type:n});static \u0275inj=O({imports:[k,D]})};var zt=n=>({width:n}),Bt=n=>({"align-items-end":n});function $t(n,o){if(n&1&&_(0,"POS-print-mode",3),n&2){let t=r(2);a("paperPrints",t.paperPrintMode)}}function Ut(n,o){if(n&1&&_(0,"div",44),n&2){let t=r(4);a("innerHTML",t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.FooterLabel==null?null:t.config.PrintConfigInvoice.FooterLabel.CopyLabelText,s)}}function Qt(n,o){n&1&&(c(0,"div",45),p(1," Void "),l())}function jt(n,o){n&1&&(c(0,"div",46),p(1," Return "),l())}function Zt(n,o){if(n&1&&(c(0,"div",40),d(1,Ut,1,1,"div",41)(2,Qt,2,0,"div",42)(3,jt,2,0,"div",43),l()),n&2){let t=r(3);i(),a("ngIf",!t.data.Bin&&!t.data.Retur),i(),a("ngIf",t.data==null?null:t.data.Bin),i(),a("ngIf",t.data==null?null:t.data.Retur)}}function Gt(n,o){if(n&1&&_(0,"img",48),n&2){let t=r(4);Z($(3,zt,t.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth+"px")),a("src",t.printTemplate==null?null:t.printTemplate.Logo,z)}}function qt(n,o){if(n&1&&(x(0),d(1,Gt,1,5,"img",47),P()),n&2){let t=r(3);i(),a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function Wt(n,o){if(n&1&&_(0,"img",48),n&2){let t=r(4);a("src",t.printTemplate==null?null:t.printTemplate.Logo,z)}}function Xt(n,o){if(n&1&&d(0,Wt,1,1,"img",49),n&2){let t=r(3);a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function Jt(n,o){if(n&1&&_(0,"span",12),n&2){let t=r(3);a("innerHTML",t.data==null?null:t.data.RegisterCode,s)}}function Kt(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r(4);i(),g(" - ",t.data==null||t.data.Customer==null?null:t.data.Customer.Code,"")}}function Yt(n,o){if(n&1&&(c(0,"h6",50)(1,"span"),p(2),l(),d(3,Kt,2,1,"span",17),l()),n&2){let t=r(3);i(2),y("",t.data==null||t.data.Customer==null?null:t.data.Customer.Title," ",t.data.Customer==null?null:t.data.Customer.Name,""),i(),a("ngIf",(t.data==null||t.data.Customer==null?null:t.data.Customer.Code)&&t.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible)}}function tn(n,o){if(n&1&&_(0,"h6",51),n&2){let t=r(3);a("innerHTML",t.data.Customer==null?null:t.data.Customer.NationalIDNumber,s)}}function nn(n,o){if(n&1&&(_(0,"p",52),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data.Customer==null?null:t.data.Customer.Address),s)}}function en(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),g(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+M(2,1,t.data.Customer==null?null:t.data.Customer.Phone,4,(t.data.Customer==null?null:t.data.Customer.Phone.length)-4):" "+(t.data.Customer==null?null:t.data.Customer.Phone)," ")}}function on(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),g(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+M(2,1,t.data.Customer==null?null:t.data.Customer.Mobile,4,(t.data.Customer==null||t.data.Customer.Mobile==null?null:t.data.Customer.Mobile.length)-4):" "+(t.data.Customer==null?null:t.data.Customer.Mobile)," ")}}function an(n,o){if(n&1&&_(0,"p",53),n&2){let t=r(3);a("innerHTML",t.data.Customer==null?null:t.data.Customer.Email,s)}}function ln(n,o){if(n&1&&(c(0,"h2",54),p(1),l()),n&2){let t=r(3);G(t.data.PaymentState==2?"text-warning":"text-danger"),i(),g(" ",t.data.PaymentState==2?"PARTIAL":t.config.PrintConfigInvoice.DocumentLabel.BillLabel," ")}}function cn(n,o){if(n&1&&(c(0,"h2",20),p(1),l()),n&2){let t=r(3);i(),g(" ",!(t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null)&&t.config.PrintConfigInvoice.Header.SalesReturnLabelText?t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null?null:t.config.PrintConfigInvoice.Header.SalesReturnLabelText:"SALES RETURN"," ")}}function rn(n,o){if(n&1&&(x(0),c(1,"h3",54),p(2),l(),P()),n&2){let t=r(3);i(2),C(t.data==null?null:t.data.ParkLabel)}}function pn(n,o){if(n&1&&(c(0,"div",21),p(1),l()),n&2){let t=r(3);i(),g("Cashier : ",t.data.Creator,"")}}function dn(n,o){n&1&&(c(0,"div",55)(1,"div",56),p(2,"SERVER ERROR!"),l(),c(3,"div",57)(4,"a",58),p(5," status.dealpos.com "),l()(),c(6,"div"),p(7,"Please check if order is uploaded successfully"),l()())}function mn(n,o){n&1&&(c(0,"div",59),p(1," OFFLINE ORDER "),l())}function _n(n,o){if(n&1&&d(0,mn,2,0,"div",59),n&2){let t=r(4);v(t.isOffline?0:-1)}}function gn(n,o){if(n&1&&d(0,dn,8,0,"div",55)(1,_n,1,1),n&2){let t=r(3);v(t.isUnknownError==!0?0:1)}}function sn(n,o){if(n&1&&(x(0),_(1,"div",12),P()),n&2){let t=r(4);i(),a("innerHTML",t.data.HeaderTitle,s)}}function Cn(n,o){if(n&1&&(c(0,"div",60),d(1,sn,2,1,"ng-container",17),_(2,"div",12),l()),n&2){let t=r(3);i(),a("ngIf",t.data.HeaderTitle),i(),a("innerHTML",t.data.Number,s)}}function fn(n,o){if(n&1&&(x(0),p(1),P()),n&2){let t=r().index;i(),g(" ",t+1,". ")}}function un(n,o){if(n&1&&(x(0),_(1,"app-serial-note",70),P()),n&2){let t=r().$implicit;i(),a("serials",t.Serial)}}function xn(n,o){if(n&1&&(c(0,"div",71)(1,"i",72),p(2),l()()),n&2){let t=r().$implicit;i(2),g(" sold by ",t.SalesName," ")}}function Pn(n,o){if(n&1&&(_(0,"small",74),m(1,"newlines")),n&2){let t=r(2).$implicit;a("innerHTML",f(1,1,t.Note),s)}}function vn(n,o){if(n&1&&(x(0),d(1,Pn,2,3,"small",73),P()),n&2){let t=r().$implicit,e=r(3);i(),a("ngIf",t.Note&&e.config.PrintConfigInvoice.ItemsTable.NoteItemVisible)}}function bn(n,o){if(n&1&&(c(0,"span",77),p(1),l()),n&2){let t=r(2).$implicit;i(),g(" ",t.Taxable?"V":"N"," ")}}function Mn(n,o){if(n&1&&(c(0,"span",77),p(1),l()),n&2){let t=r(2).$implicit,e=r(3);i(),g(" ",t.Taxable?e.config.PrintConfigInvoice.ItemsTable.TaxableLabel:"N"," ")}}function yn(n,o){if(n&1&&(c(0,"div",75),d(1,bn,2,1,"span",76)(2,Mn,2,1,"span",76),l()),n&2){let t=r(4);i(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel==""||t.config.PrintConfigInvoice.ItemsTable.TaxableLabel=="Taxable"),i(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!=""&&t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!="Taxable")}}function hn(n,o){if(n&1&&(c(0,"span",78),p(1),m(2,"number"),l()),n&2){let t=r().$implicit,e=r(3);i(),J(" ",b(2,3,t.Quantity,"1.0-4")," ",e.config.PrintConfigInvoice.ItemsTable.UOMVisible?t.Variant.UOMName:""," ",t.UnitQuantity!=1?" x "+t.UnitQuantity:""," ")}}function On(n,o){if(n&1&&(x(0),c(1,"span",81),p(2),m(3,"number"),l(),P()),n&2){let t=r(3).$implicit;i(2),C(f(3,1,t==null?null:t.UnitPriceOriginal))}}function In(n,o){if(n&1&&(x(0),d(1,On,4,3,"ng-container",17),P()),n&2){let t=r(2).$implicit;i(),a("ngIf",(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))}}function Sn(n,o){if(n&1&&(x(0),c(1,"span",79),p(2,"x"),l(),c(3,"span",80),d(4,In,2,1,"ng-container",17),p(5),m(6,"number"),l(),P()),n&2){let t=r().$implicit,e=r(3);i(4),a("ngIf",e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice),i(),g(" ",f(6,2,t.Price)," ")}}function Tn(n,o){if(n&1&&(x(0),c(1,"i",82),p(2),m(3,"number"),l(),P()),n&2){let t=r().$implicit;i(2),g(" ","-"+f(3,1,t.Discount)+"%"," ")}}function En(n,o){if(n&1&&(x(0),c(1,"i",83),p(2),m(3,"number"),l(),P()),n&2){let t=r().$implicit;i(2),g(" ","-"+f(3,1,t.DiscountAmount)," ")}}function Rn(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"number"),m(3,"TrailingZero"),l()),n&2){let t=r().$implicit,e=r(3);i(),g(" ",b(3,3,f(2,1,(1-t.Discount/100)*t.Price*t.Quantity*t.UnitQuantity-t.DiscountAmount*t.Quantity),e.config.PrintConfigGeneral.TrailingZero)," ")}}function wn(n,o){if(n&1&&(c(0,"div",61)(1,"div",21)(2,"div",62)(3,"div"),d(4,fn,2,1,"ng-container",17),p(5),l(),d(6,un,2,1,"ng-container",17)(7,xn,3,1,"div",63)(8,vn,2,1,"ng-container",17),l(),d(9,yn,3,2,"div",64),l(),c(10,"div",65)(11,"div",66)(12,"div",67),d(13,hn,3,6,"span",68)(14,Sn,7,4,"ng-container",17)(15,Tn,4,3,"ng-container",17)(16,En,4,3,"ng-container",17),l()(),c(17,"div",69),d(18,Rn,4,6,"span",17),l()()()),n&2){let t=o.$implicit,e=r(3);i(4),a("ngIf",e.config.ModuleSell.Grid.RowNumberVisible),i(),y(" ",t.Variant.Name," ",t.Variant.Code&&e.config.PrintConfigInvoice.ItemsTable.CodeVisible?" - "+t.Variant.Code:""," "),i(),a("ngIf",t.Serial&&(t.Serial==null?null:t.Serial.length)>0),i(),a("ngIf",t.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",t.Note),i(),a("ngIf",e.config.PrintConfigInvoice.ItemsTable.TaxableVisible),i(),a("ngClass",$(13,Bt,(e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice)&&(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))),i(3),a("ngIf",e.config.PrintConfigInvoice.ItemsTable.QuantityVisible),i(),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),a("ngIf",t.Discount!=0&&e.amountVisible),i(),a("ngIf",t.DiscountAmount!=0&&e.amountVisible),i(2),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction)}}function kn(n,o){if(n&1&&(c(0,"span")(1,"span"),p(2),l()()),n&2){let t=r().$implicit;i(2),g("",t.Label," :")}}function Vn(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r().$implicit;i(),g("",t.CurrencySymbol," ")}}function Ln(n,o){if(n&1&&(c(0,"div",85),m(1,"Filter"),c(2,"div",86),p(3),d(4,kn,3,1,"span"),l(),c(5,"div",87)(6,"div",88)(7,"div",89),d(8,Vn,2,1,"span",17),l(),c(9,"div",90)(10,"span"),p(11),m(12,"number"),m(13,"TrailingZero"),l()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);a("ngClass",e==M(1,7,u.data.AmountSummary,1,"Type").length-1?"pb-2":""),i(2),a("ngClass",e==1?"border-top":""),i(),g(" ",e==0&&t.Label=="Amount"?u.totalItemsLabel+" :":""," "),i(),v(e!=0||t.Label!="Amount"?4:-1),i(),a("ngClass",e==1?"border-top":""),i(3),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),C(b(13,13,f(12,11,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function Dn(n,o){if(n&1&&(c(0,"div",84),d(1,Ln,14,16,"div",28),m(2,"Filter"),l()),n&2){let t=r(3);i(),a("ngForOf",M(2,1,t.data.AmountSummary,1,"Type"))}}function Hn(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r().$implicit,e=r(4);i(),g(" ",e.config.PrintConfigInvoice.DocumentVisibility.PaymentCode==3?"- ***"+M(2,1,t.Code,4,t.Code.length-4):"- "+t.Code," ")}}function Nn(n,o){if(n&1&&_(0,"div",12),n&2){let t=r().$implicit;a("innerHTML",t.Note,s)}}function An(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(5);i(),C(t.data.CurrencySymbol)}}function Fn(n,o){if(n&1&&(c(0,"div",92)(1,"div",93),p(2),d(3,Hn,3,5,"span",17)(4,Nn,1,1,"div",12),l(),c(5,"div",94),d(6,An,2,1,"span",95),c(7,"span",90),p(8),m(9,"TrailingZero"),l()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);a("hidden",t.Amount==0),i(2),g(" ",u.config.PrintConfigInvoice.Footer.PaymentMethodVisible?t.MethodName:u.data.Payments.length!=1?"Payment":"Payment "+(e+1)," "),i(),a("ngIf",t.Code&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentCode!=1),i(),v(!(u.config==null||u.config.PrintConfigInvoice==null||u.config.PrintConfigInvoice.DocumentVisibility==null)&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentNoteVisible&&t.Note?4:-1),i(2),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),g(" ",b(9,6,u.change>0?t.PaidAmount:t.Amount,u.config.PrintConfigGeneral.TrailingZero),"")}}function zn(n,o){if(n&1&&(c(0,"div"),d(1,Fn,10,9,"div",91),l()),n&2){let t=r(3);i(),a("ngForOf",t.data.Payments)}}function Bn(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(4);i(),C(t.currencyChange)}}function $n(n,o){if(n&1&&(c(0,"div",96)(1,"div",97),p(2,"Change :"),l(),c(3,"div",94),d(4,Bn,2,1,"span",95),c(5,"span",90),p(6),m(7,"TrailingZero"),l()()()),n&2){let t=r(3);i(4),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),g(" ",b(7,2,t.change,t.config.PrintConfigGeneral.TrailingZero),"")}}function Un(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(4);i(),C(t.data.CurrencySymbol)}}function Qn(n,o){if(n&1&&(c(0,"div",96)(1,"div",97),p(2),l(),c(3,"div",94),d(4,Un,2,1,"span",95),c(5,"span",90),p(6),m(7,"TrailingZero"),l()()()),n&2){let t=r(3);i(2),g("",t.remainingLabel,":"),i(2),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),C(b(7,3,t.diff,t.config.PrintConfigGeneral.TrailingZero))}}function jn(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r().$implicit;i(),g("",t.CurrencySymbol," ")}}function Zn(n,o){if(n&1&&(c(0,"div",85)(1,"div",98),p(2),l(),c(3,"div",99)(4,"div",88)(5,"div",89),d(6,jn,2,1,"span",17),l(),c(7,"div",90)(8,"span"),p(9),m(10,"number"),m(11,"TrailingZero"),l()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(3);a("ngClass",e==0?"border-top pt-2":""),i(2),g("",t.Label," :"),i(4),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),C(b(11,6,f(10,4,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function Gn(n,o){if(n&1&&(x(0),c(1,"strong",100),p(2),l(),_(3,"span",101),P()),n&2){let t=r(3);i(2),g(" ",t.config.LoyaltyLabel?t.config.LoyaltyLabel:"Loyalty Point"," "),i(),a("innerHTML",t.data.LoyaltyPoint,s)}}function qn(n,o){n&1&&(c(0,"h6",102),p(1," Coupon "),l())}function Wn(n,o){if(n&1&&(c(0,"span",103),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),g(" ",t.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon==3?"***"+M(2,1,t.data.Coupon,3,t.data.Coupon.length-3):t.data.Coupon," ")}}function Xn(n,o){n&1&&(c(0,"h6",102),p(1,"ToP"),l())}function Jn(n,o){if(n&1&&_(0,"span",101),n&2){let t=r(4);a("innerHTML",t.data.Due,s)}}function Kn(n,o){if(n&1&&(c(0,"span",103),p(1),l()),n&2){let t=r(4);i(),g("- ",t.top," Days")}}function Yn(n,o){if(n&1&&(c(0,"div",30),d(1,Xn,2,0,"h6",31)(2,Jn,1,1,"span",104)(3,Kn,2,1,"span",32),l()),n&2){let t=r(3);i(),a("ngIf",t.data.ToP),i(),a("ngIf",t.data.ToP),i(),a("ngIf",t.data.ToP)}}function te(n,o){if(n&1&&(c(0,"h6",102),p(1),l()),n&2){let t=r(3);i(),g(" ",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," ")}}function ne(n,o){if(n&1&&(c(0,"p"),p(1),l()),n&2){let t=r(3);i(),g(" ",t.data==null?null:t.data.SalesName," ")}}function ee(n,o){n&1&&(c(0,"h6",102),p(1," Note "),l())}function ie(n,o){if(n&1&&(_(0,"p",12),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data==null?null:t.data.ExtraNote),s)}}function oe(n,o){n&1&&(c(0,"h6",105),p(1," Note "),l())}function ae(n,o){if(n&1&&(_(0,"p",106),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data==null?null:t.data.InvoiceNote),s)}}function le(n,o){if(n&1&&(c(0,"p",107),p(1),l()),n&2){let t=r(3);i(),g(" Printed : ",t.data==null?null:t.data.PrintDate," ")}}function ce(n,o){if(n&1&&(c(0,"p",107),p(1),l()),n&2){let t=r(3);i(),g(" Created : ",t.data==null?null:t.data.Created," ")}}function re(n,o){if(n&1&&(c(0,"div",39)(1,"p",107),p(2),l()()),n&2){let t=r(3);i(2),g("Trace ID : ",t.data==null?null:t.data.InvoiceID,"")}}function pe(n,o){if(n&1&&(c(0,"div"),_(1,"div",108)(2,"packing-slip",109),l()),n&2){let t=r(3);i(2),a("data",t.data)("printTemplate",t.printTemplate)("config",t.config)}}function de(n,o){if(n&1&&(c(0,"div"),d(1,Zt,4,3,"div",6),c(2,"div",7),d(3,qt,2,1,"ng-container",8)(4,Xt,1,1,"ng-template",null,0,K),l(),c(6,"div",7),_(7,"h2",9)(8,"i",10),c(9,"p",11),_(10,"span",12),m(11,"newlines"),_(12,"br"),d(13,Jt,1,1,"span",13),_(14,"br")(15,"span",12),m(16,"newlines"),l(),d(17,Yt,4,3,"h6",14)(18,tn,1,1,"h6",15)(19,nn,2,3,"p",16)(20,en,3,5,"span",17)(21,on,3,5,"span",17)(22,an,1,1,"p",18),l(),d(23,ln,2,3,"h2",19)(24,cn,2,1,"h2",20)(25,rn,3,1,"ng-container",17)(26,pn,2,1,"div",21)(27,gn,2,1),c(28,"div",22),d(29,Cn,3,2,"div",23),c(30,"div",24)(31,"div"),p(32),l()()(),d(33,wn,19,15,"div",25)(34,Dn,3,5,"div",26)(35,zn,2,1,"div",17)(36,$n,8,5,"div",27)(37,Qn,8,6,"div",27)(38,Zn,12,9,"div",28),m(39,"Filter"),c(40,"div",29)(41,"div",30),d(42,Gn,4,2,"ng-container",17)(43,qn,2,0,"h6",31)(44,Wn,3,5,"span",32),l(),d(45,Yn,4,3,"div",33),l(),c(46,"div",34),d(47,te,2,1,"h6",31)(48,ne,2,1,"p",17)(49,ee,2,0,"h6",31)(50,ie,2,3,"p",13)(51,oe,2,0,"h6",35)(52,ae,2,3,"p",36),l(),_(53,"p",12),m(54,"SafeHtml"),c(55,"div",7),d(56,le,2,1,"p",37),l(),c(57,"div",38),d(58,ce,2,1,"p",37),l(),d(59,re,3,1,"div",39)(60,pe,3,3,"div",17),l()),n&2){let t=X(5),e=r(2);W("print_container invoice_mini ",e.printTemplate!=null&&e.printTemplate.PrintLX300?"lx300":""," ",e.printTemplate==null?null:e.printTemplate.CssClass," box mt-5"),i(),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Footer==null?null:e.config.PrintConfigInvoice.Footer.CopyLabelEnabled)&&!(e.printTemplate!=null&&e.printTemplate.PrintLX300)&&(e.data==null?null:e.data.PrintCopyLabel)),i(2),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.LogoConfig==null?null:e.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth)>0)("ngIfElse",t),i(4),a("innerHTML",e.printTemplate==null?null:e.printTemplate.Title,s),i(),a("innerHTML",e.printTemplate==null?null:e.printTemplate.Field,s),i(2),a("innerHTML",f(11,46,e.printTemplate==null?null:e.printTemplate.Address),s),i(3),a("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.RegisterCode),i(2),a("innerHTML",f(16,48,e.printTemplate==null?null:e.printTemplate.ContactInfo),s),i(2),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Name)),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.NationalIDNumber)&&e.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Address)&&e.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Phone)&&e.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)!==null),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Mobile)&&e.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)==null&&(e.data.Customer==null?null:e.data.Customer.Mobile)!==null),i(),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),i(),v(e.data.PaymentState<3?23:-1),i(),v(e.data.Retur&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Header==null)&&e.config.PrintConfigInvoice.Header.SalesReturnLabel)?24:-1),i(),a("ngIf",e.data.PaymentState==1),i(),v(e.data.Creator&&e.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1?26:-1),i(),v(!(e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.WritePrintOffline?27:-1),i(2),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),i(3),C(e.data.Date),i(),a("ngForOf",e.data.Items),i(),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),a("ngIf",(e.data.Payments.length>0||!(e.change>0)||e.diff>0)&&e.amountVisible),i(),a("ngIf",e.change>0&&e.amountVisible),i(),a("ngIf",e.diff>0&&!e.hasSurcharge&&e.amountVisible),i(),a("ngForOf",M(39,50,e.data.AmountSummary,2,"Type")),i(4),a("ngIf",e.config.PrintConfigInvoice.Footer.ShowLoyaltyPoint&&e.data.LoyaltyPoint),i(),a("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),a("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible&&e.data.PaymentState<3&&e.data.Payments.length==0),i(2),a("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",(e.data==null?null:e.data.ExtraNote)&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),a("ngIf",e.data.ExtraNote&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),a("ngIf",(e.data==null?null:e.data.InvoiceNote)&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),a("ngIf",e.data.InvoiceNote&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),a("innerHTML",f(54,54,e.printTemplate!=null&&e.printTemplate.FooterLeft?e.printTemplate==null?null:e.printTemplate.FooterLeft:""),s),i(3),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.CustomerEntryTimeVisible)&&e.data.PrintDate),i(2),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.InvoiceCreatedTimeVisible)&&e.data.Created),i(),v(e.isOffline==!1&&(e.data!=null&&e.data.InvoiceID)&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.TraceID)?59:-1),i(),a("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.PrintPackingslipAftersell)}}function me(n,o){if(n&1&&(x(0),_(1,"qr-code",111),P()),n&2){let t=r(3);i(),a("value",t.data.QRContent)("size",250)}}function _e(n,o){if(n&1&&(c(0,"div",110),d(1,me,2,2,"ng-container",17),l()),n&2){let t=r(2);i(),a("ngIf",(t.config==null||t.config.PrintConfigInvoice==null?null:t.config.PrintConfigInvoice.InvoiceQR.TransformTo)==t.invoiceQR.QRCode)}}function ge(n,o){if(n&1&&(_(0,"link",2),m(1,"StylesheetSafeUrl"),d(2,$t,1,1,"POS-print-mode",3)(3,de,61,56,"div",4)(4,_e,2,1,"div",5)),n&2){let t=r();E("href",t.stylesheet!=null&&t.stylesheet.Size8cm?f(1,4,t.stylesheet==null?null:t.stylesheet.Size8cm):null,I),i(2),v(t.receiptParam?2:-1),i(),a("ngIf",t.data),i(),a("ngIf",(t.config==null||t.config.PrintConfigInvoice==null?null:t.config.PrintConfigInvoice.InvoiceQR.TransformTo)!=t.invoiceQR.None)}}function se(n,o){n&1&&(c(0,"div",1)(1,"div",112)(2,"h1"),p(3," Cannot generate print preview because of client-server displaying different / mismatch items in invoice "),l()()())}var pt=(e=>(e[e.None=1]="None",e[e.Barcode=2]="Barcode",e[e.QRCode=3]="QRCode",e))(pt||{}),ct=class n{constructor(o,t){this.activeRoute=o;this.decimalPipe=t}data;outletInfo;printTemplate;config;emailVisibleRestriction;priceVisibleRestriction;receiptParam;isUnknownError=!1;isOffline=!1;stylesheet;invoiceQR=pt;paperPrintMode;printModeType;customerVisible;amountVisible;diff;change=0;currencyChange;totalItemsLabel;hasSurcharge;top;remainingLabel;totalItemLength=j(0);ngOnInit(){this.initRemainingLabel(),this.generateItemLabel(),this.checkAmountSummary(),this.checkSurcharge(),this.calculatePrintPrice(),this.prepareSalesCommission(),this.initPaperModeConfig(),this.parseTop()}initRemainingLabel(){let o=this.config?this.config.PrintConfigInvoice.Footer.LabelRemaining:"";this.remainingLabel=o||"Remaining"}initPaperModeConfig(){if(this.receiptParam){let o=this.receiptParam;this.paperPrintMode=[{label:"8cm",link:"/print/InvoiceMini",param:o},{label:"A4",link:"/print/Invoice",param:o}]}}parseTop(){this.data&&this.data.ToP&&(this.top=parseInt(this.data.ToP.toFixed(1)))}getJSONQR(){let o,t;return this.data.OutletName!==null&&this.data.Number!=null&&(o={Outlet:this.data.OutletName,Invoice:this.data.Number},t=JSON.stringify(o)),t}calculatePrintPrice(){this.customerVisible=this.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&this.data.Customer;let o=this.activeRoute.snapshot.queryParamMap.get("Price");this.amountVisible=o!=="0",this.calculateChange()}calculateChange(){let o=0;this.data.Payments.forEach(e=>{o+=e.PaidAmount});let t=this.data.FinalAmount;this.calculateDiff(),this.change=o-t,this.currencyChange=this.data.CurrencySymbol}calculateDiff(){let o=0;this.data.Payments.forEach(e=>{o+=e.Amount});let t=this.data.FinalAmount;this.diff=t-o,Math.abs(this.diff)<this.config.ModuleSell.ToleranceAmount&&(this.diff=0)}generateItemLabel(){let o=0,t=this.data.Items.length;for(let F of this.data.Items)(this.config?.PrintConfigInvoice?.ItemsTable?.NonInventoryCount||F.Variant.TypeID!=2)&&(o+=F.Quantity);this.totalItemLength.set(t);let e=o>1?"s":"",u=this.decimalPipe.transform(o,"1.0-4").toString(),dt=this.config.PrintConfigInvoice?.ItemsFooter?.TotalQuantityVisible;this.totalItemsLabel=`Total (Item${e}: ${t}${dt?`, Qty: ${u})`:")"}`}checkSurcharge(){this.hasSurcharge=!1;for(let o of this.data.AmountSummary)o.Label.includes("Surcharge")&&(this.hasSurcharge=!0)}checkAmountSummary(){let o=this.data.AmountSummary.length;this.data.AmountSummary[o-1].Label=="Change"&&(this.change=this.data.AmountSummary[o-1].Amount,this.currencyChange=this.data.AmountSummary[o-1].CurrencySymbol,this.data.AmountSummary.pop(),this.data.AmountSummary.pop())}prepareSalesCommission(){for(let o of this.data.Items)o.SalesID!=null&&o.SalesName==null&&(o.SalesName=this.getSalesName(o.SalesID))}getSalesName(o){let t=this.outletInfo.ListSales.find(e=>e.ID==o);return V.IsNotEmpty(t)?t.Name:""}static \u0275fac=function(t){return new(t||n)(B(tt),B(h))};static \u0275cmp=S({type:n,selectors:[["pos-receipt"]],inputs:{data:"data",outletInfo:"outletInfo",printTemplate:"printTemplate",config:"config",emailVisibleRestriction:"emailVisibleRestriction",priceVisibleRestriction:"priceVisibleRestriction",receiptParam:"receiptParam",isUnknownError:"isUnknownError",isOffline:"isOffline",stylesheet:"stylesheet"},standalone:!1,decls:2,vars:1,consts:[["DEFAULTWIDTH",""],[1,"print_container"],["rel","stylesheet"],["paperType","mini",1,"d-print-none",3,"paperPrints"],[3,"class",4,"ngIf"],["class","d-flex justify-content-center",4,"ngIf"],["class","h5 text-center fw-bold ribbon text-white",4,"ngIf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[1,"m-0","fw-bold",3,"innerHTML"],[1,"d-block",3,"innerHTML"],[1,"mt-1","mb-3"],[3,"innerHTML"],[3,"innerHTML",4,"ngIf"],["class","m-0 pt-2 fw-bold",4,"ngIf"],["class","m-0 pt-2 fw-normal",3,"innerHTML",4,"ngIf"],["class","mb-0",3,"innerHTML",4,"ngIf"],[4,"ngIf"],["class","fst-italic mb-2",3,"innerHTML",4,"ngIf"],[1,"text-center","m-0","p-1",3,"class"],[1,"text-center","m-0","p-1","text-warning"],[1,"row","g-0"],[1,"row","g-0","justify-content-between","py-2"],["class","col fw-bold",4,"ngIf"],[1,"col","text-end"],["class","border-y pt-1",4,"ngFor","ngForOf"],["class","cartAmount pt-2",4,"ngIf"],["class","row g-0 text-end",4,"ngIf"],["class","row g-0 text-end",3,"ngClass",4,"ngFor","ngForOf"],[1,"row","g-0","mt-2"],[1,"col-md-12","text-center"],["class","m-0 fw-bold",4,"ngIf"],["class","pb-3",4,"ngIf"],["class","col-md-12 text-center",4,"ngIf"],[1,"text-center","my-2"],["class","fw-bold",4,"ngIf"],["style","word-break: break-all",3,"innerHTML",4,"ngIf"],["class","m-0",4,"ngIf"],[1,"text-center","mt-3"],[1,"text-center","mt-3","trace-id"],[1,"h5","text-center","fw-bold","ribbon","text-white"],["class","bg-primary ribbon-content receipt py-3",3,"innerHTML",4,"ngIf"],["class","bg-danger void ribbon-content py-3",4,"ngIf"],["class","bg-warning retur ribbon-content py-3",4,"ngIf"],[1,"bg-primary","ribbon-content","receipt","py-3",3,"innerHTML"],[1,"bg-danger","void","ribbon-content","py-3"],[1,"bg-warning","retur","ribbon-content","py-3"],["class","img-fluid border-0",3,"style","src",4,"ngIf"],[1,"img-fluid","border-0",3,"src"],["class","img-fluid border-0",3,"src",4,"ngIf"],[1,"m-0","pt-2","fw-bold"],[1,"m-0","pt-2","fw-normal",3,"innerHTML"],[1,"mb-0",3,"innerHTML"],[1,"fst-italic","mb-2",3,"innerHTML"],[1,"text-center","m-0","p-1"],[1,"text-center","my-3","text-danger"],[1,"fw-bold","fs-4"],[1,"my-1"],["target","_blank","href","https://status.dealpos.com"],[1,"fs-5","text-danger","fw-bold","text-center","mt-1"],[1,"col","fw-bold"],[1,"border-y","pt-1"],[1,"col-11"],["class","fst-italic pt-0 mt-0",4,"ngIf"],["class","col-1 ps-2 text-end",4,"ngIf"],[1,"d-flex","g-0","pb-1",3,"ngClass"],[1,"flex-grow-1","text-end"],[1,"d-flex","align-items-end","justify-content-end","me-5"],["class","small",4,"ngIf"],[1,"col-auto","text-end"],[3,"serials"],[1,"fst-italic","pt-0","mt-0"],[1,"inlineMarginLeft"],["class","fst-italic text-success","style","overflow-wrap: break-word",3,"innerHTML",4,"ngIf"],[1,"fst-italic","text-success",2,"overflow-wrap","break-word",3,"innerHTML"],[1,"col-1","ps-2","text-end"],["class","small fst-italic text-danger",4,"ngIf"],[1,"small","fst-italic","text-danger"],[1,"small"],[1,"small","mx-1"],[1,"small","d-inline-flex","flex-column"],[1,"text-decoration-line-through","text-danger"],[1,"fw-bold","text-danger","me-2","ms-4","small"],[1,"fw-bold","text-danger","me-2","small"],[1,"cartAmount","pt-2"],[1,"row","g-0","text-end",3,"ngClass"],[1,"col-7","fw-bold",3,"ngClass"],[1,"col-5","g-0",3,"ngClass"],[1,"row"],[1,"col-auto"],[1,"col"],["class","row g-0 text-end",3,"hidden",4,"ngFor","ngForOf"],[1,"row","g-0","text-end",3,"hidden"],[1,"col-7","fw-bold","pe-3"],[1,"col-5","row","g-0"],["class","col-auto",4,"ngIf"],[1,"row","g-0","text-end"],[1,"col-7","fw-bold"],[1,"col-7"],[1,"col-5"],[1,"mt-3","mb-1","d-block"],[1,"pb-3",3,"innerHTML"],[1,"m-0","fw-bold"],[1,"pb-3"],["class","pb-3",3,"innerHTML",4,"ngIf"],[1,"fw-bold"],[2,"word-break","break-all",3,"innerHTML"],[1,"m-0"],[2,"border-top-style","dotted"],[3,"data","printTemplate","config"],[1,"d-flex","justify-content-center"],[1,"qrcode-custom",3,"value","size"],[1,"print-error-message"]],template:function(t,e){t&1&&d(0,ge,5,6)(1,se,4,0,"div",1),t&2&&v(e.totalItemLength()==(e.data==null||e.data.Items==null?null:e.data.Items.length)&&e.data?0:1)},dependencies:()=>[Y,R,w,N,at,Q,U,h,nt,L,et,it,ot,H],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}}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #BBBBBB!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}qrcode.qrcode-custom[_ngcontent-%COMP%]{margin-top:-20px}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:100vh;text-align:center}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#dc3545!important;font-weight:500}"]})},rt=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=T({type:n});static \u0275inj=O({imports:[k,D,A,lt,Q,U]})};export{N as a,A as b,ct as c,rt as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as nt}from"./chunk-5VAXIJEW.js";import{c as Je,d as et,e as tt}from"./chunk-KEU6GUET.js";import{a as pe}from"./chunk-MV3QRRW6.js";import{c as Xe}from"./chunk-CIBQBSM6.js";import{O as it}from"./chunk-IX5URHI7.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-567HXZXC.js";import{a as ze}from"./chunk-2RSBMS36.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-DZT5XHBQ.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-5VAXIJEW.js";import{c as Je,d as et,e as tt}from"./chunk-4QPI5R4J.js";import{a as pe}from"./chunk-MV3QRRW6.js";import{c as Xe}from"./chunk-CIBQBSM6.js";import{O as it}from"./chunk-Q3GWLSDE.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-567HXZXC.js";import{a as ze}from"./chunk-2RSBMS36.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-DZT5XHBQ.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};
|