dealpos 12.2.2 → 12.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/POS/2004.f3082cf57d2bdd1c.js +1 -0
- package/POS/2527.ee572f77820fd7c7.js +1 -0
- package/POS/2750.53e735d02123ddda.js +1 -0
- package/POS/3337.7b3e691f22aa2e50.js +1 -0
- package/POS/4177.6c8fdeca3238ae91.js +1 -0
- package/POS/4941.11991efa0c9ca9f6.js +1 -0
- package/POS/4970.49b3d0e2b41a4736.js +1 -0
- package/POS/500.502b63b835c94db3.js +1 -0
- package/POS/5189.42546270f70cc578.js +1 -0
- package/POS/5453.b8eb5ec710c13e3f.js +1 -0
- package/POS/5510.84d47b3fed683d57.js +1 -0
- package/POS/5586.6557e4bd206a28bd.js +1 -0
- package/POS/6303.1882ce2541c62af6.js +1 -0
- package/POS/6664.1983a13a18aa2c16.js +1 -0
- package/POS/6756.262b1c28c019159f.js +1 -0
- package/POS/6840.d0036ec626577639.js +1 -0
- package/POS/7193.e0f947762f7150e2.js +1 -0
- package/POS/{7298.19d75745aecb3523.js → 7298.f11b8d33926c7f79.js} +1 -1
- package/POS/7516.1e8312abf0fdfbfe.js +1 -0
- package/POS/{8126.a38cad86f4c81065.js → 8126.2a3f67a7639fa6c8.js} +1 -1
- package/POS/8317.5eadaac9d81f9a5f.js +1 -0
- package/POS/8401.3424c8d9d82c1a46.js +1 -0
- package/POS/8425.8d3419e0fb226dda.js +1 -0
- package/POS/{8761.7c5539bff80a4998.js → 8761.1b45a09f1df46068.js} +1 -1
- package/POS/9042.6c4d3181c84b2cb8.js +1 -0
- package/POS/9612.6a332f69514c0983.js +1 -0
- package/POS/9757.4892e7e75edfcada.js +1 -0
- package/POS/{2527.7e671ae42215b675.js → 9841.5c1c03ebf5b7893e.js} +1 -1
- package/POS/common.530cd99e46c8d250.js +1 -0
- package/POS/index.html +2 -2
- package/POS/{main.5719023b63890082.js → main.965c0562a49fac7a.js} +1 -1
- package/POS/runtime.5b99dd33a914eec2.js +1 -0
- package/package.json +1 -1
- package/POS/2004.7dc740293b38e114.js +0 -1
- package/POS/2526.b4ad12c60a108246.js +0 -1
- package/POS/2750.4f3502081043c30b.js +0 -1
- package/POS/3337.3f4f382f45acff41.js +0 -1
- package/POS/4177.98ff79b4b72c8768.js +0 -1
- package/POS/4941.8c2fb6ad16dc21d1.js +0 -1
- package/POS/4970.4b720eacff390388.js +0 -1
- package/POS/500.0c17a4a814815447.js +0 -1
- package/POS/5189.6d0b24db775d8a7c.js +0 -1
- package/POS/5510.479c025aed7612fc.js +0 -1
- package/POS/6303.5724083b307f1ed5.js +0 -1
- package/POS/6551.7ed8f31c22230139.js +0 -1
- package/POS/6664.567ef29551e80239.js +0 -1
- package/POS/6756.ac761ce454dbfce0.js +0 -1
- package/POS/6840.123d77eead78424d.js +0 -1
- package/POS/6911.3b1b89c2d61a261c.js +0 -1
- package/POS/7193.6b127da2a149cb73.js +0 -1
- package/POS/7516.481c1df6180e492c.js +0 -1
- package/POS/8317.f9654b9e65973243.js +0 -1
- package/POS/8401.82c1cc0352887254.js +0 -1
- package/POS/9498.2b6e42b23bdba39a.js +0 -1
- package/POS/9612.0ffe44a08279c42b.js +0 -1
- package/POS/9757.7255467eb7a81e5f.js +0 -1
- package/POS/common.5c2bee0b1072850d.js +0 -1
- package/POS/runtime.f4e420d04496da7f.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[8592],{54147:(I,E,o)=>{o.d(E,{y:()=>t});var t=(()=>{return(e=t||(t={}))[e.PAID=0]="PAID",e[e.OVERDUE=1]="OVERDUE",e[e.SELL_ONLY=2]="SELL_ONLY",e[e.SUSPENDED=3]="SUSPENDED",t;var e})()},45701:(I,E,o)=>{o.d(E,{k:()=>_});var t=o(81180),e=o(70655),h=o(16571),D=o(69753),i=o(67327),l=o(50494),d=o(43429);class _{constructor(c){(0,t.Z)(this,"Product",void 0),(0,t.Z)(this,"Code",void 0),(0,t.Z)(this,"Cost",void 0),(0,t.Z)(this,"DiscountAmount",void 0),(0,t.Z)(this,"EntityName",void 0),(0,t.Z)(this,"UnitCost",void 0),(0,t.Z)(this,"OrderPrice",void 0),(0,t.Z)(this,"TotalWithoutDiscount",void 0),(0,t.Z)(this,"Serial",[]),(0,t.Z)(this,"Discount",void 0),(0,t.Z)(this,"EntityID",void 0),(0,t.Z)(this,"ID",void 0),(0,t.Z)(this,"Index",void 0),(0,t.Z)(this,"Note",void 0),(0,t.Z)(this,"Quantity",void 0),(0,t.Z)(this,"PurchaseOrderID",void 0),(0,t.Z)(this,"Taxable",void 0),(0,t.Z)(this,"UnitPrice",void 0),(0,t.Z)(this,"UnitQuantity",void 0),(0,t.Z)(this,"VariantID",void 0),(0,t.Z)(this,"Variant",void 0),(0,t.Z)(this,"VariantUnitQuantity",void 0),(0,t.Z)(this,"isMaxInventory",void 0),(0,t.Z)(this,"Inventory",void 0),(0,t.Z)(this,"Max",void 0),c&&(this.ID=i.gT.GuidEmpty,this.VariantID=c.ID,this.Cost=c.UnitCost,this.DiscountAmount=c.DiscountAmount,this.Taxable=c.Taxable,this.UnitQuantity=c.UnitQuantity,this.Variant=(0,l.yE)(D.O,c),this.UnitCost=c.UnitCost,this.UnitPrice=c.UnitPrice,this.OrderPrice=c.OrderPrice,this.VariantUnitQuantity=c.VariantUnitQuantity,this.Discount=0,this.Quantity=1,this.isMaxInventory=!1,this.setUnitPrice())}setUnitPrice(){this.UnitPrice=i.gT.IsNotEmpty(this.OrderPrice)?this.OrderPrice:this.UnitCost}get Total(){return this.GrossTotal-this.DiscountPercentAmount-this.DiscountAmount}get GrossTotal(){return this.UnitPrice*(this.Quantity*this.UnitQuantity)||0}get DiscountPercentAmount(){return this.Discount?this.GrossTotal*this.Discount/100:0}checkMatchSerialWithQuantity(){let c=!0,m=0;if(this.isSerialType()){if(!(this.Serial.length>0))return c;this.Serial?.forEach(v=>{m+=v.Qty}),this.Quantity!==m&&(c=!1)}return c}isSerialType(){let c=!1;return this.Variant&&this.Variant.TypeID===h.J.Serialized&&(c=!0),c}}(0,e.gn)([(0,d.D)(()=>D.O)],_.prototype,"Variant",void 0)},93414:(I,E,o)=>{o.d(E,{F:()=>g});var t=o(81180),e=o(70655),h=o(63631),D=o(52029),i=o(23389);class l{constructor(){(0,t.Z)(this,"Att",void 0),(0,t.Z)(this,"CurrencyID",void 0),(0,t.Z)(this,"Date",new Date),(0,t.Z)(this,"DeliveryStateID",void 0),(0,t.Z)(this,"Discount",0),(0,t.Z)(this,"DiscountAmount",0),(0,t.Z)(this,"EntityID",void 0),(0,t.Z)(this,"ID",void 0),(0,t.Z)(this,"Number",void 0),(0,t.Z)(this,"SupplierID",void 0),(0,t.Z)(this,"TaxTypeID",void 0),(0,t.Z)(this,"TypeID",void 0),(0,t.Z)(this,"Note",void 0),(0,t.Z)(this,"CurrencyRate",void 0),(0,t.Z)(this,"PurchaseOrderDeliveryStateID",void 0)}}var d=o(45701),_=o(43429);class g{constructor(){(0,t.Z)(this,"Order",void 0),(0,t.Z)(this,"Invoice",void 0),(0,t.Z)(this,"Items",void 0),(0,t.Z)(this,"Payment",void 0),(0,t.Z)(this,"Info",void 0),(0,t.Z)(this,"Action",{DeliveryEntityID:null}),(0,t.Z)(this,"Shipping",void 0),(0,t.Z)(this,"ContactName",void 0),this.Order=new l,this.Invoice=new h.m,this.Shipping=new D.Q,this.Payment=new i.j,this.Items=[]}clearItems(){this.Items=[]}generateCartItems(m){this.Items=this.Items.map(v=>m.generateCartItem(v))}}(0,e.gn)([(0,_.D)(()=>l)],g.prototype,"Order",void 0),(0,e.gn)([(0,_.D)(()=>h.m)],g.prototype,"Invoice",void 0),(0,e.gn)([(0,_.D)(()=>d.k)],g.prototype,"Items",void 0),(0,e.gn)([(0,_.D)(()=>i.j)],g.prototype,"Payment",void 0),(0,e.gn)([(0,_.D)(()=>D.Q)],g.prototype,"Shipping",void 0)},98818:(I,E,o)=>{o.d(E,{Y:()=>t});var t=(()=>{return(e=t||(t={}))[e.INPUT=0]="INPUT",e[e.INVENTORY=1]="INVENTORY",e[e.SERIAL=2]="SERIAL",t;var e})()},29411:(I,E,o)=>{o.d(E,{c:()=>t});var t=(()=>{return(e=t||(t={}))[e.Unsent=1]="Unsent",e[e.Partial=2]="Partial",e[e.Sent=3]="Sent",t;var e})()},50826:(I,E,o)=>{o.d(E,{q:()=>r});var t=o(81180),e=o(21750),h=o(67327),D=o(54850),i=o(50494),l=o(61135),d=o(54004),_=o(45701),g=o(93414),c=o(29411),m=o(94650),v=o(50),n=o(89156);let r=(()=>{class a{get Data(){return this._Data.value}pushNewValue(s){this._Data.next(s)}constructor(s,u){(0,t.Z)(this,"backendService",void 0),(0,t.Z)(this,"httpService",void 0),(0,t.Z)(this,"buyData",void 0),(0,t.Z)(this,"_Data",new l.X(new g.F)),(0,t.Z)(this,"Data$",this._Data.asObservable()),this.backendService=s,this.httpService=u}createNewTransaction(s,u,y){this.buyData=new g.F,this.buyData.Order.EntityID=s,this.buyData.Order.TaxTypeID=h.gT.IsEmpty(y.DefaultTaxType)?u.Taxes[0].ID:y.DefaultTaxType,this.buyData.Order.CurrencyID=u.Currencies[0].ID,this.initDeliveryEntityID(u,y.EntityID),this.buyData.Order.ID=h.gT.GuidEmpty,u.AppConfigJSON?.ApplicationTransactionNumbering?.OrderNumberGenerator?.Module?.BuyEnabled&&this.generateOrderNumber(s),this.pushNewValue(this.buyData)}initTransaction(s,u,y,P){this.buyData=new g.F,"low"==y&&(this.buyData.Items=P),this.buyData.Order.EntityID=s.EntityID,this.buyData.Order.TaxTypeID=h.gT.IsEmpty(s.DefaultTaxType)?u.Taxes[0].ID:s.DefaultTaxType,this.buyData.Action.DeliveryEntityID=s.EntityID,this.initDeliveryEntityID(u,s.EntityID),this.buyData.Order.DeliveryStateID=c.c.Unsent,this.buyData.Order.ID=h.gT.GuidEmpty,h.gT.IsNotEmpty(s.NumberElement)&&(this.buyData.Order.Number=e.V.Generate(s.NumberElement),this.buyData.Invoice.Number=e.V.Generate(s.NumberElement)),this.buyData.Order.CurrencyID=u.Currencies[0]?u.Currencies[0].ID:null,this.pushNewValue(this.buyData)}generateOrderNumber(s){this.backendService.generateNumber(s,D.W.BuyGenerateNumber).subscribe(u=>{this.buyData.Order.Number=u.Number,this.buyData.Invoice.Number=u.Number})}initDeliveryEntityID(s,u){this.buyData.Action.DeliveryEntityID=s.AppConfigJSON.ModuleBuy.Shipping.BuyShippingDefault?h.gT.GuidEmpty:u}clearTransaction(){this.Data.clearItems(),this.pushNewValue(this.Data)}returTransaction(s,u){return this.httpService.post(D.W.BuyReturInvoice,{EntityID:u,Number:s})}onEditTransaction(s){return this.httpService.post(D.W.BuyGetDataByID,{ID:s}).pipe((0,d.U)(y=>{let P=(0,i.yE)(g.F,y);return P.generateCartItems(this),P=this.initDeliveryOnEdit(P),P.Invoice.CustomDateField=this.initCustomDateField(y.Invoice?.CustomDateField),P}))}initCustomDateField(s){return h.gT.MinDate==s&&(s=null),s}initDeliveryOnEdit(s){return s.Order.DeliveryStateID==c.c.Partial&&(s.Action.DeliveryEntityID=h.gT.GuidEmpty,s.Order.PurchaseOrderDeliveryStateID=c.c.Partial,s.Order.DeliveryStateID=c.c.Partial),s}generateCartItem(s){let u=new _.k(s.Variant);return u.ID=s.ID,u.Discount=s.Discount,u.PurchaseOrderID=s.PurchaseOrderID,u.EntityID=s.EntityID,u.Serial=s.Serial,u.Note=s.Note,u.Quantity=h.gT.IsNotEmpty(s.Quantity)||0==s.Quantity?s.Quantity:1,u.UnitPrice=s.UnitPrice,u.UnitQuantity=s.UnitQuantity,u}}return(0,t.Z)(a,"\u0275fac",function(s){return new(s||a)(m.LFG(v.M),m.LFG(n.O))}),(0,t.Z)(a,"\u0275prov",m.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})),a})()},60769:(I,E,o)=>{o.d(E,{R:()=>c});var t=o(81180),e=o(77579),h=o(45701),D=o(75785),i=o(96700),l=o(94650),d=o(50),_=o(50826),g=o(97185);let c=(()=>{class m{constructor(n,r,a){(0,t.Z)(this,"_backendService",void 0),(0,t.Z)(this,"_buyDataService",void 0),(0,t.Z)(this,"toastr",void 0),(0,t.Z)(this,"inventoryState",""),(0,t.Z)(this,"entityID",void 0),(0,t.Z)(this,"_notifyNewItem",new e.x),(0,t.Z)(this,"notifyNewItem$",this._notifyNewItem.asObservable()),(0,t.Z)(this,"cartItems",[]),(0,t.Z)(this,"buyData",void 0),this._backendService=n,this._buyDataService=r,this.toastr=a,this.subscribeToObservable()}subscribeToObservable(){this._buyDataService.Data$.subscribe(n=>{this.cartItems=n.Items,this.buyData=n})}addCartItemById(n,r){this._backendService.getVariantById(n,r).subscribe(a=>{this.createNewCartItem(a)})}addCartItemByCode(n,r){this._backendService.getVarianByCode(n,r).subscribe(a=>{this.createNewCartItem(a)})}createNewCartItem(n){if(!this.validateCartItem(n))return;let r=new h.k(n);this.addItemToCart(r)}validateCartItem(n){return n.CategoryTypeID!=D.a.SellAble||(this.toastr.info(`${n.Name} is sellable only.`,i.n.Info),!1)}addItemToCart(n,r=!1){let a=this.cartItems.findIndex(p=>p.VariantID===n.VariantID);-1==a||r?(this.cartItems.push(n),this._notifyNewItem.next("NEW")):this.cartItems[a].Quantity+=1,this.buyData.Items=this.cartItems,this._buyDataService.pushNewValue(this.buyData)}updateCartItem(n,r){this.buyData.Items[r]=n,this._buyDataService.pushNewValue(this.buyData)}deleteCartItem(n){this.buyData.Items=this.buyData.Items.filter(r=>r!==n),this._buyDataService.pushNewValue(this.buyData)}}return(0,t.Z)(m,"\u0275fac",function(n){return new(n||m)(l.LFG(d.M),l.LFG(_.q),l.LFG(g._W))}),(0,t.Z)(m,"\u0275prov",l.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"})),m})()},51467:(I,E,o)=>{o.d(E,{W:()=>P,$:()=>b});var t=o(81180),e=o(94650),h=o(36895),D=o(24006),i=o(65412),l=o(63165),d=o(93669);let _=(()=>{class f{constructor(C,O){(0,t.Z)(this,"dialogRef",void 0),(0,t.Z)(this,"data",void 0),(0,t.Z)(this,"inputNumberic",void 0),(0,t.Z)(this,"message",void 0),this.dialogRef=C,this.data=O,this.inputNumberic=this.data.inputNumberic,this.message=this.data.messageData}ngOnInit(){}onOk(){this.dialogRef.close({inputNumberic:this.inputNumberic})}}return(0,t.Z)(f,"\u0275fac",function(C){return new(C||f)(e.Y36(i.so),e.Y36(i.WI))}),(0,t.Z)(f,"\u0275cmp",e.Xpm({type:f,selectors:[["POS-modal-number-input"]],decls:3,vars:3,consts:[[3,"headerType","title","onOk","onCancel"],["autoNum","",1,"border","w-100","rounded","p-4",3,"ngModel","ngModelChange"]],template:function(C,O){1&C&&(e.TgZ(0,"modal-material",0),e.NdJ("onOk",function(){return O.onOk()})("onCancel",function(){return O.dialogRef.close()}),e.TgZ(1,"content")(2,"input",1),e.NdJ("ngModelChange",function(Z){return O.inputNumberic=Z}),e.qZA()()()),2&C&&(e.Q6J("headerType",O.message.Type)("title",O.message.Header),e.xp6(2),e.Q6J("ngModel",O.inputNumberic))},dependencies:[D.Fj,D.JJ,D.On,l.M]})),f})(),g=(()=>{class f{}return(0,t.Z)(f,"\u0275fac",function(C){return new(C||f)}),(0,t.Z)(f,"\u0275mod",e.oAB({type:f})),(0,t.Z)(f,"\u0275inj",e.cJS({imports:[h.ez,d.dr,D.u5,D.UX,l.d]})),f})();var c=o(88796),m=o(67327),v=o(96700);class n{constructor(M=null,C=null,O=null){(0,t.Z)(this,"Type",void 0),(0,t.Z)(this,"Header",void 0),(0,t.Z)(this,"Body",void 0),this.Type=M,this.Header=O,this.Body=C,this.Header||(this.Header=v.n[M])}}var r=o(76359),a=o(77091),p=o(97185);function s(f,M){if(1&f){const C=e.EpF();e.TgZ(0,"a",17),e.NdJ("click",function(){e.CHM(C);const T=e.oxw(),Z=T.$implicit,A=T.index,U=e.oxw();return e.KtG(U.openSplitQuantity(Z,A))}),e._UZ(1,"i",18),e.qZA()}}function u(f,M){if(1&f){const C=e.EpF();e.TgZ(0,"a",19),e.NdJ("click",function(){e.CHM(C);const T=e.oxw(),Z=T.$implicit,A=T.index,U=e.oxw();return e.KtG(U.mergeItem(Z,A))}),e._UZ(1,"i",20),e.qZA()}}function y(f,M){if(1&f){const C=e.EpF();e.TgZ(0,"tr")(1,"td",12),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td",12),e._uU(6),e.qZA(),e.TgZ(7,"td",13),e.YNc(8,s,2,0,"a",14),e.YNc(9,u,2,0,"a",15),e.qZA(),e.TgZ(10,"td",12),e._uU(11),e.ALo(12,"number"),e.qZA(),e.TgZ(13,"td",12),e._uU(14),e.ALo(15,"number"),e.qZA(),e.TgZ(16,"td")(17,"ng-select-infinite",16),e.NdJ("selectedChange",function(T){const A=e.CHM(C).$implicit;return e.KtG(A.SalesID=T)}),e.qZA()()()}if(2&f){const C=M.$implicit,O=M.index,T=e.oxw();e.xp6(2),e.Oqu(O+1),e.xp6(2),e.Oqu(C.Name),e.xp6(2),e.Oqu(C.Quantity),e.xp6(2),e.Q6J("ngIf",C.Quantity>1),e.xp6(1),e.Q6J("ngIf",T.displayMerge(C,O)),e.xp6(2),e.Oqu(e.lcZ(12,9,C.Commission)),e.xp6(3),e.Oqu(e.lcZ(15,11,C.Quantity*C.Commission)),e.xp6(3),e.Q6J("items",T.listSales)("selected",C.SalesID)}}let P=(()=>{class f{constructor(C,O,T){(0,t.Z)(this,"_OrderHttpService",void 0),(0,t.Z)(this,"matDialog",void 0),(0,t.Z)(this,"toastr",void 0),(0,t.Z)(this,"commissionCart",{}),(0,t.Z)(this,"listSales",[]),(0,t.Z)(this,"onSaved",new e.vpe),(0,t.Z)(this,"onBack",new e.vpe),(0,t.Z)(this,"soid",void 0),this._OrderHttpService=C,this.matDialog=O,this.toastr=T}ngOnInit(){m.gT.IsNotEmpty(this.soid)&&this._OrderHttpService.getCommission(this.soid).subscribe(C=>{this.commissionCart=C})}cancelCommission(){}saveCommission(){const C=this.commissionCart.List.filter(O=>m.gT.IsNotEmpty(O.SalesID));this._OrderHttpService.saveCommission(this.soid,C).subscribe(O=>{this.toastr.info(O,"Info"),this.onSaved.emit()})}displayMerge(C,O){const T=this.commissionCart.List.filter(A=>A.SalesOrderItemID==C.SalesOrderItemID);let Z={};return O>0&&(Z=this.commissionCart.List[O-1]),T.length>1&&Z.SalesOrderItemID!=C.SalesOrderItemID}mergeItem(C,O){if(confirm("Are you sure to Merge ?")){const T=this.commissionCart.List.filter(A=>A.SalesOrderItemID==C.SalesOrderItemID);let Z=0;T.forEach(A=>{Z+=A.Quantity,A!=C&&this.commissionCart.List.splice(this.commissionCart.List.indexOf(A),1)}),C.Quantity=Z}}openSplitQuantity(C,O){this.matDialog.open(_,{data:{messageData:new n(v.n.Success,"","Split Quantity?"),inputNumberic:1}}).afterClosed().subscribe(Z=>{if(Z)if(Z.inputNumberic>=C.Quantity)alert("Split must less than Variant Quantity!");else{C.Quantity=C.Quantity-Z.inputNumberic;const A=Object.assign(new Object,C);A.Quantity=Z.inputNumberic,this.commissionCart.List.splice(this.commissionCart.List.indexOf(C)+1,0,A)}})}}return(0,t.Z)(f,"\u0275fac",function(C){return new(C||f)(e.Y36(a.D),e.Y36(i.uw),e.Y36(p._W))}),(0,t.Z)(f,"\u0275cmp",e.Xpm({type:f,selectors:[["commission-cart"]],inputs:{commissionCart:"commissionCart",listSales:"listSales",soid:"soid"},outputs:{onSaved:"onSaved",onBack:"onBack"},decls:24,vars:1,consts:[[1,"table","table-bordered","w-100","mt-lg-5"],[1,"text-dark","fw-bold","p-3",2,"background-color","#FCECA3 !important"],[1,"border-end","text-end",2,"width","10px"],[1,"border-end"],[1,"border-end",2,"width","50px"],[1,"border-end","text-end",2,"width","150px"],[1,"border-end",2,"width","150px"],[4,"ngFor","ngForOf"],["id","CommissionAction"],[1,"d-flex","justify-content-end","mt-5"],[1,"btn","btn-outline-secondary","me-4","btn-lg",3,"click"],[1,"btn","btn-success","btn-lg",3,"click"],[1,"text-end"],[2,"width","50px"],["style","cursor:pointer","matTooltipPosition","above","matTooltip","Split",3,"click",4,"ngIf"],["style","cursor:pointer","matTooltipPosition","above","matTooltip","Merge",3,"click",4,"ngIf"],["bindValue","ID","bindLabel","Name","placeholder","Sales Person",3,"items","selected","selectedChange"],["matTooltipPosition","above","matTooltip","Split",2,"cursor","pointer",3,"click"],[1,"fa-solid","fa-share-from-square"],["matTooltipPosition","above","matTooltip","Merge",2,"cursor","pointer",3,"click"],[1,"fa-solid","fa-share-nodes"]],template:function(C,O){1&C&&(e.TgZ(0,"table",0)(1,"thead",1)(2,"tr")(3,"th",2),e._uU(4," No "),e.qZA(),e.TgZ(5,"th",3),e._uU(6," Name "),e.qZA(),e.TgZ(7,"th",4),e._uU(8," Qty "),e.qZA(),e._UZ(9,"th",3),e.TgZ(10,"th",5),e._uU(11," Commission "),e.qZA(),e.TgZ(12,"th",5),e._uU(13," Total "),e.qZA(),e.TgZ(14,"th",6),e._uU(15," Sales Person "),e.qZA()()(),e.TgZ(16,"tbody"),e.YNc(17,y,18,13,"tr",7),e.qZA()(),e.TgZ(18,"div",8)(19,"div",9)(20,"a",10),e.NdJ("click",function(){return O.onBack.emit()}),e._uU(21,"Cancel"),e.qZA(),e.TgZ(22,"a",11),e.NdJ("click",function(){return O.saveCommission()}),e._uU(23,"Save"),e.qZA()()()),2&C&&(e.xp6(17),e.Q6J("ngForOf",O.commissionCart.List))},dependencies:[h.sg,h.O5,r.R,h.JJ]})),f})(),b=(()=>{class f{}return(0,t.Z)(f,"\u0275fac",function(C){return new(C||f)}),(0,t.Z)(f,"\u0275mod",e.oAB({type:f})),(0,t.Z)(f,"\u0275inj",e.cJS({imports:[h.ez,d.dr,D.u5,D.UX,g,c.A0,r.q]})),f})()},86371:(I,E,o)=>{o.d(E,{J:()=>_,N:()=>g});var t=o(81180),e=o(93470),D=o(94650);const i=o(85262),l=o(50438),d=o(92407);i(e),l(e),d(e),l(e);let _=(()=>{class c{constructor(){(0,t.Z)(this,"config",void 0),(0,t.Z)(this,"data",void 0)}ngAfterViewInit(){this.initPieChart()}ngOnChanges(){this.initPieChart()}initPieChart(){e.chart("container",{chart:{plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1,type:"pie",height:this.config.height},title:{text:this.config.title},credits:{enabled:!1},legend:this.config.legend,tooltip:{pointFormat:"{series.name}: <b>{point.percentage:.1f}%</b>"},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:this.config.dataLabels,format:"<b>{point.name}</b>: {point.percentage:.1f} %"},showInLegend:!0}},series:[{name:this.config.labelTooltips,colorByPoint:!0,data:this.data}]})}}return(0,t.Z)(c,"\u0275fac",function(v){return new(v||c)}),(0,t.Z)(c,"\u0275cmp",D.Xpm({type:c,selectors:[["POS-pie-chart"]],inputs:{config:"config",data:"data"},features:[D.TTD],decls:2,vars:0,consts:[["id","container"],["container",""]],template:function(v,n){1&v&&D._UZ(0,"div",0,1)}})),c})(),g=(()=>{class c{}return(0,t.Z)(c,"\u0275fac",function(v){return new(v||c)}),(0,t.Z)(c,"\u0275mod",D.oAB({type:c})),(0,t.Z)(c,"\u0275inj",D.cJS({})),c})()},36856:(I,E,o)=>{o.d(E,{j:()=>m});var t=o(81180),e=o(65412),h=o(42046),D=o(96700),i=o(94650),l=o(89156),d=o(97185),_=o(24006),g=o(63165),c=o(83902);let m=(()=>{class v{constructor(r,a,p,s){(0,t.Z)(this,"httpService",void 0),(0,t.Z)(this,"toaster",void 0),(0,t.Z)(this,"dialogRef",void 0),(0,t.Z)(this,"data",void 0),(0,t.Z)(this,"Filter",void 0),(0,t.Z)(this,"configModal",void 0),this.httpService=r,this.toaster=a,this.dialogRef=p,this.data=s,this.configModal=new h.O,this.configModal.title="Export Contact",this.configModal.headerType=D.n.Success,this.configModal.okText="<i class='fas fa-upload'></i> Export",this.Filter={PageNumber:1,RowCount:1e4}}onOk(){this.dialogRef.close({PageNumber:this.Filter.PageNumber,RowCount:this.Filter.RowCount})}}return(0,t.Z)(v,"\u0275fac",function(r){return new(r||v)(i.Y36(l.O),i.Y36(d._W),i.Y36(e.so),i.Y36(e.WI))}),(0,t.Z)(v,"\u0275cmp",i.Xpm({type:v,selectors:[["ng-component"]],decls:11,vars:3,consts:[[3,"config","onOk","onCancel","onClose"],[1,"container",2,"width","350px"],[1,"row"],[1,"ps-0","mb-4"],["type","text","autoNum","",1,"form-control",3,"ngModel","ngModelChange"],[1,"ps-0","my-4"]],template:function(r,a){1&r&&(i.TgZ(0,"modal-material",0),i.NdJ("onOk",function(){return a.onOk()})("onCancel",function(){return a.dialogRef.close()})("onClose",function(){return a.dialogRef.close()}),i.TgZ(1,"content")(2,"div",1)(3,"div",2)(4,"label",3),i._uU(5,"Page Number"),i.qZA(),i.TgZ(6,"input",4),i.NdJ("ngModelChange",function(s){return a.Filter.PageNumber=s}),i.qZA()(),i.TgZ(7,"div",2)(8,"label",5),i._uU(9,"Page Size"),i.qZA(),i.TgZ(10,"input",4),i.NdJ("ngModelChange",function(s){return a.Filter.RowCount=s}),i.qZA()()()()()),2&r&&(i.Q6J("config",a.configModal),i.xp6(6),i.Q6J("ngModel",a.Filter.PageNumber),i.xp6(4),i.Q6J("ngModel",a.Filter.RowCount))},dependencies:[_.Fj,_.JJ,_.On,g.M,c.b]})),v})()},78068:(I,E,o)=>{o.d(E,{j$:()=>h});var t=o(81180),e=o(67327);class h{constructor(){(0,t.Z)(this,"Order",void 0),(0,t.Z)(this,"Items",void 0),(0,t.Z)(this,"OrderItems",void 0),this.Order=new D,this.Items=Array(),this.OrderItems=Array()}clearItems(){this.Items=Array(),this.Items=[]}}class D{constructor(){(0,t.Z)(this,"Date",void 0),(0,t.Z)(this,"DestinationEntityID",void 0),(0,t.Z)(this,"Discount",void 0),(0,t.Z)(this,"EntityID",void 0),(0,t.Z)(this,"SourceEntityID",void 0),(0,t.Z)(this,"ID",void 0),(0,t.Z)(this,"Number",void 0),(0,t.Z)(this,"TypeID",void 0),(0,t.Z)(this,"CourierID",void 0),this.EntityID=e.gT.GuidEmpty,this.DestinationEntityID=null,this.Number="",this.ID=e.gT.GuidEmpty}}},26111:(I,E,o)=>{o.d(E,{N:()=>c});var t=o(81180),e=o(94768),h=o(67327),D=o(77579),i=o(54004),l=o(94650),d=o(245),_=o(50),g=o(97185);let c=(()=>{class m{constructor(n,r,a){(0,t.Z)(this,"deliveryDataService",void 0),(0,t.Z)(this,"backEndService",void 0),(0,t.Z)(this,"toastr",void 0),(0,t.Z)(this,"inventoryState",""),(0,t.Z)(this,"lowOnStockInfo",{EntityID:h.gT.GuidEmpty,Items:[]}),(0,t.Z)(this,"_notifyNewItem",new D.x),(0,t.Z)(this,"notifyNewItem$",this._notifyNewItem.asObservable()),this.deliveryDataService=n,this.backEndService=r,this.toastr=a}getItemById(n,r){let a;return this.backEndService.getVariantById(n,r).pipe((0,i.U)(p=>{let s=this.patchVariantToItem(p);return a=s.Variant,s.UnitCost=a.UnitCost,s}))}updateCartItem(n){const r=this.deliveryDataService.Data;r.Items=n,this.deliveryDataService.pushNewValue(r)}patchVariantToItem(n){let r=new e.t;return r.patchByVariant(n),r}addNewItem(n,r){let a=this.checkBehaviourRowItem(n,r);this.updateCartItem(a)}removeItem(n){const r=this.deliveryDataService.Data;r.Items.splice(n.index,1),this.updateCartItem(r.Items)}addCartItemByCode(n,r){this.backEndService.getVarianByCode(n,r,!0).subscribe(a=>{this.createNewCartItem(a)})}addCartItemBySerial(n,r){this.backEndService.getVariantBySerial(n,r).subscribe(a=>{let p=this.deliveryDataService?.Data?.Items;if(p.length>0){let s;p.forEach((u,y)=>{u.Variant.ID==a.ID?(s=u.Serial?.findIndex(P=>P.Code==n),-1==s?(u.Serial.push({Code:n,Qty:1}),u.Note=`[${u.Serial}]`,u.Quantity=u.Serial.length):u.Serial[s].Qty+=1,u.Quantity=u.calculateSerialQty(),p[y]=u,this.updateCartItem(p)):(a.Serial=[{Code:n,Qty:1}],this.createNewCartItem(a))})}else a.Serial=[{Code:n,Qty:1}],this.createNewCartItem(a)})}createNewCartItem(n){let r=new e.t;r.patchByVariant(n),r.UnitPrice=n.UnitPrice,this.addNewItem(r)}updateItem(n){const r=this.deliveryDataService.Data.Items;r[n.index]=n.item,this.updateCartItem(r)}checkBehaviourRowItem(n,r=!1){let a=[];if(r)a=this.deliveryDataService.Data.Items,this._notifyNewItem.next("NEW"),a.push(n);else{a=null!=this.deliveryDataService.Data.Items?this.deliveryDataService.Data.Items:Array();const p=a.findIndex(u=>u.VariantID===n.VariantID),s=n.Quantity;if(-1===p)n.Quantity=h.gT.IsNotEmpty(s)?s:1,this._notifyNewItem.next("NEW"),a.push(n);else{let u=a[p];h.gT.IsNotEmpty(s)?u.Quantity+=s:u.Quantity++}}return a}}return(0,t.Z)(m,"\u0275fac",function(n){return new(n||m)(l.LFG(d.p),l.LFG(_.M),l.LFG(g._W))}),(0,t.Z)(m,"\u0275prov",l.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"})),m})()},245:(I,E,o)=>{o.d(E,{p:()=>i});var t=o(81180),e=o(61135),h=o(78068),D=o(94650);let i=(()=>{class l{constructor(){(0,t.Z)(this,"_Data",new e.X(new h.j$)),(0,t.Z)(this,"Data$",this._Data.asObservable())}get Data(){return this._Data.value}pushNewValue(_){this._Data.next(_)}}return(0,t.Z)(l,"\u0275fac",function(_){return new(_||l)}),(0,t.Z)(l,"\u0275prov",D.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})),l})()},29881:(I,E,o)=>{o.d(E,{O:()=>D});var t=o(81180),e=o(24351),h=o(22863);class D extends h.M{constructor(l,d,_){super(l),(0,t.Z)(this,"data",void 0);const g=this.getInfoID(_);this.menuData$.pipe((0,e.b)(()=>this.getBindDataObservable(d,g))).subscribe({next:c=>{this.bindData(c),this.postBindData(c)}})}getInfoID(l){return l.snapshot.queryParams.ID}getBindDataObservable(l,d){return this.httpService.post(`/API/${l}`,JSON.stringify({ID:d}))}bindData(l){this.data=l}postBindData(l){}}},12422:(I,E,o)=>{o.d(E,{S:()=>t});var t=(()=>{return(e=t||(t={}))[e.DISCOUNT=0]="DISCOUNT",e[e.CALCULATOR=1]="CALCULATOR",t;var e})()},75130:(I,E,o)=>{o.d(E,{B:()=>g});var t=o(81180),e=o(65412),h=o(96700),D=o(67327),i=o(42046),l=o(94650),d=o(63165),_=o(54825);let g=(()=>{class c{constructor(v,n){(0,t.Z)(this,"dialogRef",void 0),(0,t.Z)(this,"data",void 0),(0,t.Z)(this,"Model",void 0),(0,t.Z)(this,"configModal",void 0),this.dialogRef=v,this.data=n,this.Model=n,this.configModal=new i.O,this.configModal.headerType=h.n.Success,this.configModal.title="Note Invoice",this.configModal.customWidth="600px"}isNotEmpty(v){return D.gT.IsNotEmpty(v)}changeSelect(v){this.Model.form.CityName=v.Name}onOk(){this.dialogRef.close(this.Model.form)}}return(0,t.Z)(c,"\u0275fac",function(v){return new(v||c)(l.Y36(e.so),l.Y36(e.WI))}),(0,t.Z)(c,"\u0275cmp",l.Xpm({type:c,selectors:[["POS-modal-add-note"]],decls:6,vars:2,consts:[[3,"config","onOk","onCancel","onClose"],[1,"container-fluid","px-0"],[1,"row"],[1,"col-sm-12"],[3,"value","valueChange"]],template:function(v,n){1&v&&(l.TgZ(0,"modal-material",0),l.NdJ("onOk",function(){return n.onOk()})("onCancel",function(){return n.dialogRef.close()})("onClose",function(){return n.dialogRef.close()}),l.TgZ(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"POS-tinymce-editor",4),l.NdJ("valueChange",function(a){return n.Model.form.SONote=a}),l.qZA()()()()()()),2&v&&(l.Q6J("config",n.configModal),l.xp6(5),l.Q6J("value",n.Model.form.SONote))},dependencies:[d.M,_.V]})),c})()},31920:(I,E,o)=>{o.d(E,{g:()=>g});var t=o(81180),e=o(80529),h=o(70262),D=o(60515),i=o(94650),l=o(89156),d=o(59612),_=o(97185);let g=(()=>{class c{constructor(v,n,r,a){(0,t.Z)(this,"httpService",void 0),(0,t.Z)(this,"authService",void 0),(0,t.Z)(this,"httpClientService",void 0),(0,t.Z)(this,"toastr",void 0),this.httpService=v,this.authService=n,this.httpClientService=r,this.toastr=a}configure2FA(v){return this.httpService.post("/api/Authentication/Setup_2FA",v)}validateCode(v,n){const r=this.authService.loginResponse?.Token;let a=new e.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});return a=a.append("Authorization","Bearer "+r),this.httpClientService.post("/api/Login/Validate_2FA ",{ValidationCode:v,UserID:n},{headers:a}).pipe((0,h.K)(s=>(this.toastr.error(s?.error?.Message,"Error - "+s.status),D.E)))}disableTwoFactorAuthentication(){return this.httpService.post("/api/Authentication/Setup_2FA",{enabled:!1})}}return(0,t.Z)(c,"\u0275fac",function(v){return new(v||c)(i.LFG(l.O),i.LFG(d.e),i.LFG(e.eN),i.LFG(_._W))}),(0,t.Z)(c,"\u0275prov",i.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"})),c})()},94601:(I,E,o)=>{o.d(E,{E:()=>c,h:()=>g});var t=o(81180),e=o(65412),h=o(42046),D=o(36895),i=o(63165),l=o(94650),d=o(97185),_=o(89156);let g=(()=>{class m{constructor(n,r,a,p){(0,t.Z)(this,"data",void 0),(0,t.Z)(this,"dialogRef",void 0),(0,t.Z)(this,"toastService",void 0),(0,t.Z)(this,"httpService",void 0),(0,t.Z)(this,"modalConfig",void 0),(0,t.Z)(this,"flag",void 0),(0,t.Z)(this,"csvResult",void 0),(0,t.Z)(this,"sampleUrl","//res.cloudinary.com/pos/raw/upload/POS/CSV/ItemTransfer_Dealpos.csv"),(0,t.Z)(this,"apiUploadCsv","/API/TransferOrder/UploadCsv"),this.data=n,this.dialogRef=r,this.toastService=a,this.httpService=p,this.flag=!1,this.csvResult=[]}ngOnInit(){this.initModalConfig(),this.initUpload()}initUpload(){this.data&&(this.sampleUrl=this.data.sampleUrl,this.apiUploadCsv=this.data.API)}initModalConfig(){this.modalConfig=new h.O,this.modalConfig.title="Upload",this.modalConfig.customWidth="284px"}onSelectFile(n){const r=n.files;if(r&&r.length){var p=n.files[0].name.split(".").pop().toLowerCase();if(["csv"].indexOf(p)>-1){const u=r[0],y=new FileReader;y.onload=P=>{this.onFileLoad(P)},y.readAsText(u,"UTF-8")}else this.toastService.error("Invalid File Type","Failed")}}onFileLoad(n){let a=n.target.result,p=!1,s=[],u=[],y=0;for(const b of a.split(/[\r\n]+/))if(p){let f={};for(let M=0;M<y;M++)f[u[M]]=b.split(",")[M];s.push(f)}else{for(let f=0;f<b.split(",").length;f++)y=b.split(",").length,u.push(b.split(",")[f].replace(/ /g,""));p=!0}let P=s.filter(b=>""!=b.Code);this.csvResult=P,this.flag=!0}onOk(){this.httpService.post(this.apiUploadCsv,JSON.stringify(this.csvResult)).subscribe(n=>{this.dialogRef.close(n)})}onClose(){this.dialogRef.close()}}return(0,t.Z)(m,"\u0275fac",function(n){return new(n||m)(l.Y36(e.WI),l.Y36(e.so),l.Y36(d._W),l.Y36(_.O))}),(0,t.Z)(m,"\u0275cmp",l.Xpm({type:m,selectors:[["POS-modal-upload"]],decls:14,vars:2,consts:[[3,"config","onOk","onCancel","onClose"],[1,"modal-dialog"],[1,"modal-content","border-0"],[1,"noteBox",3,"href"],[1,"d-flex","justify-content-between"],["accept",".csv","id","csv","type","file","name","myfile",1,"form-control",3,"change"]],template:function(n,r){1&n&&(l.TgZ(0,"modal-material",0),l.NdJ("onOk",function(){return r.onOk()})("onCancel",function(){return r.onClose()})("onClose",function(){return r.onClose()}),l.TgZ(1,"content",1)(2,"div",2)(3,"div")(4,"a",3),l._uU(5,"Download Sample File"),l.qZA()(),l.TgZ(6,"div",4)(7,"table")(8,"tbody")(9,"tr")(10,"th"),l._uU(11," CSV: "),l.qZA(),l.TgZ(12,"td")(13,"input",5),l.NdJ("change",function(p){return r.onSelectFile(p.target)}),l.qZA()()()()()()()()()),2&n&&(l.Q6J("config",r.modalConfig),l.xp6(4),l.Q6J("href",r.sampleUrl,l.LSH))},dependencies:[i.M],styles:[".noteBox[_ngcontent-%COMP%]{background-color:#ffffe1;border:1px solid #cacaca;padding:3px;display:block;outline:0;margin-bottom:5px;font-size:11px;text-decoration:none}"]})),m})(),c=(()=>{class m{}return(0,t.Z)(m,"\u0275fac",function(n){return new(n||m)}),(0,t.Z)(m,"\u0275mod",l.oAB({type:m})),(0,t.Z)(m,"\u0275inj",l.cJS({imports:[D.ez,i.d]})),m})()},29677:(I,E,o)=>{o.d(E,{b:()=>c,y:()=>g});var t=o(81180),e=o(36895),h=o(24006),D=o(65412),i=o(42046),l=o(63165),d=o(94650),_=o(50);let g=(()=>{class m{constructor(n,r,a){(0,t.Z)(this,"data",void 0),(0,t.Z)(this,"_backEndService",void 0),(0,t.Z)(this,"_dialogRef",void 0),(0,t.Z)(this,"config",new i.O),(0,t.Z)(this,"Note",""),(0,t.Z)(this,"model",void 0),this.data=n,this._backEndService=r,this._dialogRef=a,this.config=new i.O,this.config.title="Note",this.model=this.data.transactionData}onOk(n){"Enter"!=n&&(this.data.transactionData.Items.forEach(r=>{delete r.UnitPriceOriginal}),this._backEndService.submitTransaction(this.data.transactionData,this.data.api).subscribe(r=>{this._dialogRef.close(r)}))}onClose(){this._dialogRef.close()}}return(0,t.Z)(m,"\u0275fac",function(n){return new(n||m)(d.Y36(D.WI),d.Y36(_.M),d.Y36(D.so))}),(0,t.Z)(m,"\u0275cmp",d.Xpm({type:m,selectors:[["POS-submit-transaction"]],decls:8,vars:2,consts:[[3,"config","onOk","onCancel","onClose"],[1,"row"],[1,"col-sm-12"],[1,"form-floating-outline"],["rows","6","cols","60",1,"form-control","item-textarea",3,"ngModel","ngModelChange"],["for","bewCourier"]],template:function(n,r){1&n&&(d.TgZ(0,"modal-material",0),d.NdJ("onOk",function(p){return r.onOk(p)})("onCancel",function(){return r.onClose()})("onClose",function(){return r.onClose()}),d.TgZ(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"textarea",4),d.NdJ("ngModelChange",function(p){return(null==r.model?null:r.model.Order).Note=p}),d.qZA(),d.TgZ(6,"label",5),d._uU(7,"Note"),d.qZA()()()()()()),2&n&&(d.Q6J("config",r.config),d.xp6(5),d.Q6J("ngModel",null==r.model?null:r.model.Order.Note))},dependencies:[l.M,h.Fj,h.JJ,h.On]})),m})(),c=(()=>{class m{}return(0,t.Z)(m,"\u0275fac",function(n){return new(n||m)}),(0,t.Z)(m,"\u0275mod",d.oAB({type:m})),(0,t.Z)(m,"\u0275inj",d.cJS({imports:[e.ez,l.d,h.u5]})),m})()},48504:(I,E,o)=>{o.d(E,{k:()=>D});var t=o(81180),e=o(67327),h=o(94650);let D=(()=>{class i{constructor(){(0,t.Z)(this,"dataDaysRange",0),this.bindDataDaysRange()}bindDataDaysRange(){const d=localStorage.getItem("DataDaysRange");e.gT.IsNotEmpty(d)&&e.gT.IsNotEmpty(parseInt(d))&&(this.dataDaysRange=parseInt(d)-1)}getFromDateValidation(d){if(this.checkValidDate(d)){const g=new Date(d).setDate(new Date(d).getDate()-this.dataDaysRange);return new Date(g)}return null}getToDateValidation(d){return this.checkValidDate(d)?new Date(d).setDate(new Date(d).getDate()+this.dataDaysRange):null}checkValidDate(d){return d!==e.gT.MinDate&&e.gT.IsNotEmpty(d)&&0!=this.dataDaysRange}}return(0,t.Z)(i,"\u0275fac",function(d){return new(d||i)}),(0,t.Z)(i,"\u0275prov",h.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})),i})()},29266:(I,E,o)=>{o.d(E,{H:()=>e});var t=o(81180);class e{constructor(D,i){(0,t.Z)(this,"viewGrid",void 0),(0,t.Z)(this,"totalColumn",void 0),this.viewGrid=D||!1,this.totalColumn=i||2}}},128:(I,E,o)=>{o.d(E,{F:()=>r,Z:()=>n});var t=o(81180),e=o(10266),h=o(71948),D=o(56709),i=o(36895),l=o(24006),d=o(29266),_=o(94650);function g(a,p){if(1&a){const s=_.EpF();_.TgZ(0,"li",4)(1,"mat-checkbox",5),_.NdJ("change",function(){const P=_.CHM(s).$implicit,b=_.oxw(2);return _.KtG(b.change(P.ID))}),_._uU(2),_.qZA()()}if(2&a){const s=p.$implicit,u=_.oxw(2);_.xp6(1),_.Q6J("checked",u.checkingCheckbox(s.ID))("value",s.ID)("name",u.name),_.xp6(1),_.hij("",s.Name," ")}}function c(a,p){if(1&a&&(_.TgZ(0,"ul",2),_.YNc(1,g,3,4,"li",3),_.qZA()),2&a){const s=_.oxw();_.xp6(1),_.Q6J("ngForOf",s.options)}}function m(a,p){if(1&a){const s=_.EpF();_.TgZ(0,"li",4)(1,"mat-checkbox",8),_.NdJ("change",function(){const P=_.CHM(s).$implicit,b=_.oxw(2);return _.KtG(b.change(P.ID))}),_._uU(2),_.qZA()()}if(2&a){const s=p.$implicit,u=_.oxw(2);_.Tol("col-"+12/(null!=u.config&&u.config.totalColumn?null==u.config?null:u.config.totalColumn:2)),_.xp6(1),_.Q6J("checked",u.checkingCheckbox(s.ID))("value",s.ID)("name",u.name),_.xp6(1),_.hij("",s.Name," ")}}function v(a,p){if(1&a&&(_.TgZ(0,"ul",6),_.YNc(1,m,3,6,"li",7),_.qZA()),2&a){const s=_.oxw();_.xp6(1),_.Q6J("ngForOf",s.options)}}let n=(()=>{class a{constructor(){(0,t.Z)(this,"model",void 0),(0,t.Z)(this,"options",void 0),(0,t.Z)(this,"name",void 0),(0,t.Z)(this,"config",void 0)}ngOnInit(){null==this.config&&(this.config=new d.H)}change(s){this.checkingCheckbox(s)?this.model=this.removeItemRow(this.model,s):this.model.push(s)}checkingCheckbox(s){return this.model.filter(y=>y==s).length>0}removeItemRow(s,u){const y=s.findIndex(P=>P==u);return s.splice(y,1),s}}return(0,t.Z)(a,"\u0275fac",function(s){return new(s||a)}),(0,t.Z)(a,"\u0275cmp",_.Xpm({type:a,selectors:[["checkbox-options"]],inputs:{model:"model",options:"options",name:"name",config:"config"},decls:2,vars:2,consts:[["class","checkbox-group",4,"ngIf"],["class","checkbox-group view-grid row",4,"ngIf"],[1,"checkbox-group"],["class","checkbox-group-item",4,"ngFor","ngForOf"],[1,"checkbox-group-item"],[3,"checked","value","name","change"],[1,"checkbox-group","view-grid","row"],["class","checkbox-group-item",3,"class",4,"ngFor","ngForOf"],[1,"label-custom",3,"checked","value","name","change"]],template:function(s,u){1&s&&(_.YNc(0,c,2,1,"ul",0),_.YNc(1,v,2,1,"ul",1)),2&s&&(_.Q6J("ngIf",!u.config.viewGrid),_.xp6(1),_.Q6J("ngIf",u.config.viewGrid))},dependencies:[D.oG,i.sg,i.O5],encapsulation:2})),a})(),r=(()=>{class a{}return(0,t.Z)(a,"\u0275fac",function(s){return new(s||a)}),(0,t.Z)(a,"\u0275mod",_.oAB({type:a})),(0,t.Z)(a,"\u0275inj",_.cJS({imports:[h.Fk,D.p9,i.ez,l.u5,e.AV]})),a})()},35355:(I,E,o)=>{o.d(E,{V:()=>v,n:()=>m});var t=o(81180),e=o(10266),h=o(36895),D=o(24006),i=o(94650);function l(n,r){if(1&n&&(i.TgZ(0,"div",3),i._UZ(1,"input",4),i.TgZ(2,"label",5),i._uU(3),i.qZA()()),2&n){const a=i.oxw();i.xp6(1),i.Q6J("value",a.model)("placeholder",a.label),i.xp6(2),i.Oqu(a.label)}}function d(n,r){if(1&n&&(i.TgZ(0,"span",9),i._uU(1),i.qZA()),2&n){const a=r.$implicit;i.xp6(1),i.Oqu(a)}}function _(n,r){if(1&n&&(i.TgZ(0,"div",6)(1,"div",7),i.YNc(2,d,2,1,"span",8),i.qZA(),i.TgZ(3,"label",5),i._uU(4),i.qZA()()),2&n){const a=i.oxw();i.xp6(2),i.Q6J("ngForOf",a.model),i.xp6(2),i.Oqu(a.label)}}function g(n,r){if(1&n&&(i.TgZ(0,"div",3),i._UZ(1,"input",4),i.TgZ(2,"label",5),i._uU(3),i.qZA()()),2&n){const a=r.$implicit,p=i.oxw(2);i.xp6(1),i.Q6J("value",a.Name)("placeholder",p.label),i.xp6(2),i.Oqu(p.label)}}function c(n,r){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,g,4,3,"div",10),i.qZA()),2&n){const a=i.oxw();i.xp6(1),i.Q6J("ngForOf",a.model)}}let m=(()=>{class n{constructor(){(0,t.Z)(this,"model",void 0),(0,t.Z)(this,"label",void 0),(0,t.Z)(this,"multiple",void 0),(0,t.Z)(this,"tags",void 0)}}return(0,t.Z)(n,"\u0275fac",function(a){return new(a||n)}),(0,t.Z)(n,"\u0275cmp",i.Xpm({type:n,selectors:[["floatinglabel"]],inputs:{model:"model",label:"label",multiple:"multiple",tags:"tags"},decls:3,vars:3,consts:[["class","form-floating-outline",4,"ngIf"],["class","form-floating-outline label-floating",4,"ngIf"],[4,"ngIf"],[1,"form-floating-outline"],["type","text","id","inputTitle","disabled","",1,"form-control","bg-white",2,"cursor","auto",3,"value","placeholder"],["for","inputTitle"],[1,"form-floating-outline","label-floating"],[1,"form-control","tags"],["class","bg-secondary",4,"ngFor","ngForOf"],[1,"bg-secondary"],["class","form-floating-outline",4,"ngFor","ngForOf"]],template:function(a,p){1&a&&(i.YNc(0,l,4,3,"div",0),i.YNc(1,_,5,2,"div",1),i.YNc(2,c,2,1,"div",2)),2&a&&(i.Q6J("ngIf",!p.multiple&&!p.tags),i.xp6(1),i.Q6J("ngIf",!p.multiple&&p.tags),i.xp6(1),i.Q6J("ngIf",p.multiple))},dependencies:[h.sg,h.O5],encapsulation:2})),n})(),v=(()=>{class n{}return(0,t.Z)(n,"\u0275fac",function(a){return new(a||n)}),(0,t.Z)(n,"\u0275mod",i.oAB({type:n})),(0,t.Z)(n,"\u0275inj",i.cJS({imports:[h.ez,D.u5,e.AV]})),n})()},17342:(I,E,o)=>{o.d(E,{B:()=>D});var t=o(81180),e=o(67327),h=o(94650);let D=(()=>{class i{set serials(d){d&&(this.serialNote=e.gT.generateSerialasNote(d))}constructor(){(0,t.Z)(this,"serialNote",void 0)}}return(0,t.Z)(i,"\u0275fac",function(d){return new(d||i)}),(0,t.Z)(i,"\u0275cmp",h.Xpm({type:i,selectors:[["app-serial-note"]],inputs:{serials:"serials"},standalone:!0,features:[h.jDz],decls:2,vars:1,template:function(d,_){1&d&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&d&&(h.xp6(1),h.Oqu(_.serialNote))},changeDetection:0})),i})()},12386:(I,E,o)=>{o.d(E,{S:()=>D});var t=o(81180),e=o(36895),h=o(94650);let D=(()=>{class i{}return(0,t.Z)(i,"\u0275fac",function(d){return new(d||i)}),(0,t.Z)(i,"\u0275mod",h.oAB({type:i})),(0,t.Z)(i,"\u0275inj",h.cJS({imports:[e.ez]})),i})()},11365:(I,E,o)=>{o.d(E,{M:()=>d});var t=o(54482),e=o(25403),h=o(38421),D=o(44671),i=o(25032),l=o(63269);function d(..._){const g=(0,l.jO)(_);return(0,t.e)((c,m)=>{const v=_.length,n=new Array(v);let r=_.map(()=>!1),a=!1;for(let p=0;p<v;p++)(0,h.Xf)(_[p]).subscribe((0,e.x)(m,s=>{n[p]=s,!a&&!r[p]&&(r[p]=!0,(a=r.every(D.y))&&(r=null))},i.Z));c.subscribe((0,e.x)(m,p=>{if(a){const s=[p,...n];m.next(g?g(...s):s)}}))})}}}]);
|
package/POS/index.html
CHANGED
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
<script>
|
|
19
19
|
(function () { var w = window; var ic = w.Intercom; if (typeof ic === "function") { ic('reattach_activator'); ic('update', w.intercomSettings); } else { var d = document; var i = function () { i.c(arguments); }; i.q = []; i.c = function (args) { i.q.push(args); }; w.Intercom = i; var l = function () { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io/widget/xv1oomgl'; var x = d.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }; if (w.attachEvent) { w.attachEvent('onload', l); } else { w.addEventListener('load', l, false); } } })();
|
|
20
20
|
</script>
|
|
21
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dealpos@12.2.
|
|
21
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dealpos@12.2.4/POS/styles.45d4f2923299fcf3.css"></head>
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
<body>
|
|
25
25
|
<app-root></app-root>
|
|
26
|
-
<script src="https://cdn.jsdelivr.net/npm/dealpos@12.2.
|
|
26
|
+
<script src="https://cdn.jsdelivr.net/npm/dealpos@12.2.4/POS/runtime.5b99dd33a914eec2.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/dealpos@12.2.4/POS/polyfills.b206b04362e57e9e.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/dealpos@12.2.4/POS/scripts.cae5fdbdb517be56.js" defer></script><script src="https://cdn.jsdelivr.net/npm/dealpos@12.2.4/POS/main.965c0562a49fac7a.js" type="module"></script></body>
|
|
27
27
|
|
|
28
28
|
</html>
|