dealpos 12.0.6 → 12.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/POS/{1161.f7be7565ac22e93a.js → 1161.6b4b1542063e9175.js} +1 -1
  2. package/POS/{1407.74182243cc7810d9.js → 1407.6769d65d63c39421.js} +1 -1
  3. package/POS/{2750.8b446abeb80d773f.js → 2750.47cb4f77603ef65f.js} +1 -1
  4. package/POS/2884.64edea609706ef74.js +1 -0
  5. package/POS/{3515.e2af5d043919d782.js → 3515.1c4e823e38453cef.js} +1 -1
  6. package/POS/{3894.7ba8d30644321e4e.js → 3894.fa1c3b71100f00d6.js} +1 -1
  7. package/POS/{4020.57e0a385a6857ed5.js → 4020.7b54bdd52bd6b9b5.js} +1 -1
  8. package/POS/4537.46fd2b9d9141b7ec.js +1 -0
  9. package/POS/{4941.97b31c337833f694.js → 4941.31b78844d931c727.js} +1 -1
  10. package/POS/4961.a7e953a403b1017c.js +1 -0
  11. package/POS/{5378.cd9b02ed84a522ad.js → 5378.b4a8a9db671b7c95.js} +1 -1
  12. package/POS/{6268.d7b9c650bf6a3f56.js → 6268.2fee3368e7536ab7.js} +1 -1
  13. package/POS/6972.0c860e9b3cc38812.js +1 -0
  14. package/POS/{7193.d942825e3eae4b05.js → 7193.e92b194a0a7ee8ea.js} +1 -1
  15. package/POS/7298.dc0b4d8f9cfb5552.js +1 -0
  16. package/POS/{4694.902648b90b44f8b9.js → 7538.db18f4244937ec7c.js} +1 -1
  17. package/POS/7767.d2afcb9ad905678c.js +1 -0
  18. package/POS/7803.af23ef6d7f480636.js +1 -0
  19. package/POS/{7998.a981e2bc965820c3.js → 7998.a82c3dfd9944aba9.js} +1 -1
  20. package/POS/{8094.0d4acb965066426c.js → 8094.fc38ea3825b80ba8.js} +1 -1
  21. package/POS/8195.cce0725ad03289a8.js +1 -0
  22. package/POS/8589.08d6ea684c79e297.js +1 -0
  23. package/POS/common.df46f498277c6d70.js +1 -0
  24. package/POS/index.html +2 -2
  25. package/POS/{main.22ae24a6c82bb6cf.js → main.e6424fe75b860c3d.js} +1 -1
  26. package/POS/runtime.d9d2e4044e2bbaa5.js +1 -0
  27. package/package.json +1 -1
  28. package/POS/2884.e8f95da9c49fc704.js +0 -1
  29. package/POS/4537.6fbc3f1f9d9b2be5.js +0 -1
  30. package/POS/4961.f5332883230cb027.js +0 -1
  31. package/POS/6972.e63ccbcc418161af.js +0 -1
  32. package/POS/7298.a68c6353f8a31acb.js +0 -1
  33. package/POS/7767.f32828a67139d131.js +0 -1
  34. package/POS/8195.10e007f85f1a0f52.js +0 -1
  35. package/POS/8589.b62957f724afe6f0.js +0 -1
  36. package/POS/9207.14833f751b1c9444.js +0 -1
  37. package/POS/common.0d2fad3e52d21748.js +0 -1
  38. package/POS/runtime.6f961de9b3f5db1a.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1161],{51161:(P,c,s)=>{s.d(c,{N:()=>m});var u=s(37407),i=s(67327),p=s(94650);let m=(()=>{class l{constructor(){this.parseJWTRoles()}parseJWTRoles(){const e=localStorage.getItem("Token");if(i.gT.IsNotEmpty(e)){var n=i.gT.parseJwt(e);this._roles=n["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]}}isInRole(e,n){const t={};return n.forEach((r,a)=>t[e[a]]="string"==typeof r?this._roles.includes(r):r(this._roles)),t}isUserHasRole(e){return this._roles.includes(e)}get product(){return i.gT.IsEmpty(this._product)&&(this._product=this.setBulkRole("product")),this._product}get contact(){return i.gT.IsEmpty(this._contact)&&(this._contact=this.setBulkRole("contact")),this._contact}get promotion(){return i.gT.IsEmpty(this._promotion)&&(this._promotion=this.setBulkRole("promotion")),this._promotion}get accounting(){return i.gT.IsEmpty(this._accounting)&&(this._accounting=this.setBulkRole("accounting")),this._accounting}get users(){return i.gT.IsEmpty(this._users)&&(this._users=this.setBulkRole("users")),this._users}get outlets(){return i.gT.IsEmpty(this._outlets)&&(this._outlets=this.setBulkRole("outlets")),this._outlets}get setup(){return i.gT.IsEmpty(this._setup)&&(this._setup=this.setBulkRole("setup")),this._setup}get service(){return i.gT.IsEmpty(this._service)&&(this._service=this.setBulkRole("service")),this._service}get profile(){return i.gT.IsEmpty(this._profile)&&(this._profile=this.setBulkRole("myProfile")),this._profile}get customerDisplay(){return i.gT.IsEmpty(this._customerDisplay)&&(this._customerDisplay=this.setBulkRole("customerDisplay")),this._customerDisplay}get orderDisplay(){return i.gT.IsEmpty(this._orderDisplay)&&(this._orderDisplay=this.setBulkRole("orderDisplay")),this._orderDisplay}get global(){return i.gT.IsEmpty(this._global)&&(this._global=this.setBulkRole("global")),this._global}get apps(){return i.gT.IsEmpty(this._apps)&&(this._apps=this.setBulkRole("apps")),this._apps}get fulfillment(){return i.gT.IsEmpty(this._fulfillment)&&(this._fulfillment=this.setBulkRole("fulfillment")),this._fulfillment}get manufacture(){return i.gT.IsEmpty(this._manufacture)&&(this._manufacture=this.setBulkRole("manufacture")),this._manufacture}get inventory(){return i.gT.IsEmpty(this._inventory)&&(this._inventory=this.setBulkRole("inventory")),this._inventory}get sell(){return i.gT.IsEmpty(this._sell)&&(this._sell=this.setBulkRole("sell")),this._sell}get report(){return i.gT.IsEmpty(this._report)&&(this._report=this.setBulkRole("report")),this._report}get buy(){return i.gT.IsEmpty(this._buy)&&(this._buy=this.setBulkRole("buy")),this._buy}get adjustment(){return i.gT.IsEmpty(this._adjustment)&&(this._adjustment=this.setBulkRole("adjustment")),this._adjustment}get debt(){return i.gT.IsEmpty(this._debt)&&(this._debt=this.setBulkRole("debt")),this._debt}get payment(){return i.gT.IsEmpty(this._payment)&&(this._payment=this.setBulkRole("payment")),this._payment}get prepaidPackage(){return i.gT.IsEmpty(this._prepaidPackage)&&(this._prepaidPackage=this.setBulkRole("prepaidPackage")),this._prepaidPackage}get order(){return i.gT.IsEmpty(this._order)&&(this._order=this.setBulkRole("orders")),this._order}get logistic(){return i.gT.IsEmpty(this._logistic)&&(this._logistic=this.setBulkRole("logistics")),this._logistic}get estimate(){return i.gT.IsEmpty(this._estimate)&&(this._estimate=this.setBulkRole("estimate")),this._estimate}get shift(){return i.gT.IsEmpty(this._shift)&&(this._shift=this.setBulkRole("shift")),this._shift}setBulkRole(e){const n={};for(const t in u.G[e])n[t]=this.isUserHasRole(u.G[e][t]);return n}get isSystemUser(){const e=localStorage.getItem("Token");return"System"==i.gT.parseJwt(e).Type}resetRoles(){this._roles=[],this._accounting=null,this._adjustment=null,this._apps=null,this._buy=null,this._contact=null,this._customerDisplay=null,this._debt=null,this._fulfillment=null,this._estimate=null,this._global=null,this._inventory=null,this._logistic=null,this._manufacture=null,this._order=null,this._orderDisplay=null,this._outlets=null,this._payment=null,this._product=null,this._prepaidPackage=null,this._profile=null,this._promotion=null,this._report=null,this._sell=null,this._service=null,this._setup=null,this._shift=null,this._users=null}}return l.\u0275fac=function(e){return new(e||l)},l.\u0275prov=p.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},67327:(P,c,s)=>{s.d(c,{FI:()=>i,Wz:()=>l,g7:()=>m,gT:()=>u});let u=(()=>{class e{static StringFormat(t,...r){for(let a=0;a<r.length;a++)t=t.replace(`{${a}}`,r[a]);return t}static IsNotEmpty(t){return""!=t&&t!=e.GuidEmpty&&null!=t&&null!=t}static IsEmpty(t){return""==t||null==t||null==t||t==e.GuidEmpty}static FilterByID(t,r){try{const a=t.filter(o=>o.ID==r);if(a.length>0)return a[0]}catch{}return null}static GenerateYears(t,r,a){let o=-1;(null==r||null==r)&&(r=11),(null==a||null==a||!a)&&(o=1);const d=[];for(let y=0;y<r;y++)d.push(t+y*o);return d}static DateOnly(t){return t?new Date(new Date(t).toDateString()):new Date((new Date).toDateString())}static calculateNumberBetweenDate(t,r){let a=r.getTime()-t.getTime();return Math.floor(a/864e5)}static Guid_NewGuid(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var o=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==a?o:3&o|8).toString(16)})}static parseJwt(t){var a=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(atob(a).split("").map(function(d){return"%"+("00"+d.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(o)}static numberOnly(t){const r=t.which?t.which:t.keyCode;return!(r>31&&(r<48||r>57))}static formatNumber(t){let r,a="",o=Math.abs(t);return o>999&&o<1e6?(a="K",r=(o/1e3).toFixed(0)):o>=1e6?(a="M",r=(o/1e6).toFixed(0)):o<900&&(r=o.toString()),t<0&&(r="-"+r),r.replace(/\B(?=(\d{3})+(?!\d))/g,",")+a}static isToDay(t){if(t){const r=new Date;return r.setHours(0,0,0,0),r.getTime()==t.getTime()}}static compare(t,r,a){return(t<r?-1:1)*(a?1:-1)}}return e.GuidEmpty="00000000-0000-0000-0000-000000000000",e.DecimalMinValue="-7.922816251426434e+28",e.InputLockTimeSpan=500,e.MinDate="0001-01-01T00:00:00",e.MinTime="00:00:00",e.tinyMceApiKey="zc58cdrrftek5r5igtmjiar7ed4n3wr00hzd4w4mvtx8mpxa",e.Months=[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}],e})();function i(e){return new Promise((n,t)=>{let r=new Image;r.src=e,r.decode().then(()=>{n({img:e,height:r.height,width:r.width})}).catch(()=>{t(new Error(`Image load error for ${e}`))})})}let m=(()=>{class e{}return e.emptyDate="Please fill invoice date",e.emptyNumber="Please fill invoice number",e.failGetMenu="Fail to get pos menu",e.failToGetRetur="Fail to get retur",e.failGetLocalPosStorage="Fail to get setting and option from local storage, Please re-cache your data while online!",e.failGetVariant='"Error getting variant with {0} {1}" - {2}',e.failGetLocalVariant="Fail to get variant from local storage, Please re-cache your data while online!",e.emptyBarcodeFormat='No product with barcode "{0}"',e.emptyCustomerFormat='No customer with code "{0}"',e.failGetSalesOrder="Fail to get sales order",e.failBin="Fail to bin transaction",e.failGetCustomer="Fail to get customer's data",e.failCreateCustomer="Fail to create customer",e.noRoleContact="You have no right to create new customer",e.submitLocally="Connection unavailable ~ offline! Order stored locally",e.OfflineOrderNotSupport="Offline order is not Supported!",e.failOrderConnectionTimeOut="Connection timeout! Please try uploading your order again!",e.failDeletePark="Fail to delete park",e.emptyAccessRegister="You do not have access to any Register",e.failGenerateNewNumber="Fail to generate new number",e.emptyPayment="There is no active payment method.",e.failOpenRegister="Fail to open register",e.failGetLocalOutletInfo="Fail to get outlet information from local storage, Please re-cache your data while online!",e.failTrySubmit="[Error submitting order] \n{0}",e.failTryCreateCustomer='"[Error creating customer] \n"{0}',e.createCustomerOffline="Create customer is not supported when the connection offline",e.emptyCustomer="Please select customer!",e.emptySalesPerson="Please select sales person!",e.emptySalesType="Please select sales type!",e.failCreateNewVariant="Fail to create new variant",e.requiredDefaultCategory="[WARNING] - POS / Quick Create Product requires Default Category",e.emptyVariant="Item is undefined, please re-type",e.emptyPOItem="You must have at least one item",e.emptyEntity="Please select entity before proceeding..",e.failGetRetrieve="Fail to get retrieve",e.failTryPark="[Error submitting park] \n{0}",e.failTryGetPark="[Error during get park] \n{0}",e.failTryGetOutStanding="[Error during get outstanding] \n{0}",e.failTryGetParkSelect="[Error during get available park select] \n{0}",e.failGetSerial="Fail to get variant serial",e.successSendOrder="Orders synchronized to server. Upload Transaction Complete!",e.successSyncProduct="Products synchronized to Local Storage",e.failGetPark="Fail to get park",e.failMergePark="Fail to merge park",e.failGetOutStanding="Fail to get outstanding",e.failGetParkSelect="Fail to get available park select",e.confirmationDeleteOrder="Are you sure want to delete this order?",e.confirmationCloseRegister="The Register is still occupied under '{0}'. Do you want to end his / her session?",e.closeActiveRegister="You already have an active register with name '{0}'. Do you want to end your session?",e.successSendEmail="Email is sent successfully to '{0}'",e.wrongOfflineAction="This action is not supported when the connection offline",e.emptyCustomerCredit="Credit Payment requires customer specified!",e.debtLimit="Your debt is over limit!",e.emptyCustomerDeposit="Deposit Payment requires customer specified!",e.creditLock="You have no right to give credit!",e.failToSyncProduct="Fail sync product to local storage!",e.failToSyncOrder="Fail sync Order to local storage!",e.emptyDeliveryOutlet="There is no outlet in delivery module.",e.wrongAuthorizationCode="Wrong Authorize Code!",e.priceMinimumRestriction="You have no right to sell this item lower than {0}",e.clearBrowsingData="A new version of our POS is available, please clear your browsing data to apply changes!",e.offlineModeNotification="WARNING! Your point of sale configuration is set to LOCAL, orders are not synchronized automatically.",e.failServerConnection="Something happen to the server, switch query to local mode to continue work!",e.taxEmpty="Tax options is empty, go to setup and add tax!",e.clearCommission="Are you sure to leave this page without saving?",e.voidConfirm="This will replace current order's item(s) with blank order.",e.notSellAble="This item is not for sell",e.partialLoyaltyPointUnable="You only can fully pay with loyalty point, otherwise please remove the loyalty point and use other available payment options",e.DiffDate="Client date is not equal with Server Date",e.pointOnly="{0} need paid by point only",e.cashOnly="{0} cannot paid by point",e.ovoConfig="WARNING! Your ovo configuration is not set",e.failGenerateQR="Failed to generate qr code",e.failPaymentOvo="Failed to pay with ovo, Try again",e.emptyPhone="Please Fill Phone",e.maxInventory="Your Bought Qty will exceed the Max Inventory",e.payNowOnly="You have no access to sell with Later Payment",e})(),l=(()=>{class e{}return e.GetPOSStorage="/API/POS/LoadPOS",e.GenerateNumber="/API/POS/GenerateNumber",e.RefreshToken="/API/Authentication/RefreshToken",e.RemovePark="/API/POS/RemovePark",e.VoidPark="/API/POS/VoidPark",e.ReturInvoice="/API/POS/ReturInvoice",e.BuyReturInvoice="/API/Buy/GetSupplierInvoiceRetur",e.GetSalesOrderJSONByID="/API/POS/GetSalesOrderJSONByID",e.GetPOSDataByID="/API/POS/GetPOSDataByID",e.MergePark="/API/POS/MergePark",e.GetPark="/API/POS/GetParkByEntityID",e.GetOutStanding="/API/POS/GetOutStandingByEntityID",e.GetVacant="/API/POS/GetParkInfoByEntityID",e.RecordOpeningCash="/API/POS/RecordOpeningCash",e.OpenRegister="/API/POS/LoadRegister",e.GetRegisterInfo="/API/POS/GetRegisterInfo",e.BackdateNumber="/API/POS/GenerateBackdateNumber",e.GetVariantByID="/API/catalog/variant/GetVariantByID",e.GetVariantFormModelByID="/API/catalog/variant/GetVariantFormModelById",e.GetVariantByCode="/API/catalog/variant/GetVariantByCode",e.GetVariantSerial="/API/catalog/variant/GetVariantSerial",e.UpdateProductImage="/API/catalog/product/UpdateProductImageUrl",e.GetVariantWithSameProductID="/API/catalog/variant/GetVariantWithSameProductID",e.GetVariantInfoModelById="/API/catalog/variant/GetVariantInfoModelById",e.GetSalesHistory="/Api/catalog/product/GetSalesHistory",e.GetPurchaseHistory="/API/catalog/product/GetPurchaseHistory",e.GetParkedHistory="/API/catalog/product/GetParkOrder",e.CreateVariant="/API/catalog/variant/CreateVariant",e.SendInvoiceEmail="/API/Transaction/SendEmail",e.GetCustomerPrivilegeByID="/API/Contact/GetPrivilegeByID",e.GetCustomerByCode="/API/Contact/GetByCode",e.GetCustomerCode="/API/Contact/GetCode",e.GetCustomerEmailByID="/API/Contact/GetEmailByID",e.GetPriceBookByVariantID="/API/catalog/variant/GetPriceBookByVariantID",e.GetPackageID="/API/POS/GetPackageID",e.Authorize="/API/AuthorizationKey/AuthorizeByType",e.Invoice="/api/Invoice/InvoiceInfo",e.OrdersLoader="/API/OrdersLoader/CustomerInvoice",e.Orders="/api/Invoice/CustomerInvoice",e.PaymentReceivedLoader="/API/PaymentLoader/DailyPaymentLoader",e.PaymentReceived="/API/Payment/DailyPaymentReceived",e.CheckOutUrl="/API/POS/SubmitOrder",e.CheckOutUrlBuy="/API/Buy/SubmitOrder",e.Scanner="/API/AdjustmentLoader/StockTakeByCSV",e.AdjustmentLoader="/API/AdjustmentLoader/GetInventoryAdjustmentList",e.Adjustment="/API/Adjustment/GetInventoryAdjustmentList",e.AdjustmentStorage="/API/Adjustment/GetStorage",e.GetNumberAdjustment="/API/Adjustment/GenerateNumber",e.GetAccountReceivableLoader="/API/DebtLoader/AccountsReceiveableSummary",e.GetAccountReceivableDetailLoader="/API/DebtLoader/AccountsReceiveableDetails",e.GetAccountReceivableSummary="/API/Debt/AccountsReceiveableSummary",e.getAccountreceivableDetail="/API/Debt/AccountsReceiveableDetails",e.ProductLibrarySuggestion="/API/AC/GetVariantSuggestionByCodeNName",e.VoidInvoiceLoader="/API/OrdersLoader/VoidInvoiceLoader",e.VoidInvoice="/api/Invoice/VoidInvoiceList",e.WaitingPatientList="/API/Treatment/WaitingPatientList",e.CheckOutTreatmentByListID="/API/Treatment/CheckOutByListID",e.TreatmentRegisterLoader="/API/TreatmentLoader/Registration",e.TreatmentRegisterOutletInfo="/API/Treatment/RegistrationGetOutletInfo",e.TreatmentCustomerInfo="/API/Treatment/RegistrationGetCustomerInfo",e.SubmitTreatementRegistration="/API/Treatment/RegistrationSubmit",e.SalesOrderMini="/API/Print/SalesOrderMini",e.ProductLoader="/API/catalog/ProductLoader/ProductList",e.ProductList="/API/catalog/product/GetProductList",e.DeleteProductList="/API/catalog/product/DeleteProductList",e.DeleteVariantInfo="/API/catalog/variant/DeleteVariantInfo",e.ProductForm="/API/catalog/ProductLoader/ProductForm",e.SubmitProduct="/API/catalog/product/SubmitProduct",e.ProductInfo="/API/catalog/ProductLoader/ProductInfoInitial",e.CreateCategory="/API/catalog/category/CreateProductCategory",e.CreateBrand="/API/catalog/product/CreateBrand",e.CreateTag="/API/catalog/product/CreateTags",e.CreateUOM="/API/catalog/product/CreateProductUOM",e.VariantInfo="/API/catalog/variant/GetVariantInfoModelById",e.VariantFormData="/API/catalog/variant/GetVariantFormInitialData",e.VariantForm="/API/catalog/variant/GetVariantFormModelById",e.SubmitVariant="/API/catalog/variant/SubmitVariant",e.CreateContact="/API/Contact/Create",e.Closure="/API/POS/Closure",e.SyncProducts="/API/POSSync/Products",e.SyncCustomer="/API/POSSync/Customers",e.SynOutletPrice="/API/POSSync/OutletPrices",e.SynOutlet="/API/POSSync/Outlets",e.SyncPark="/API/POSSync/Parks",e.GetRewardByPromotionID="/API/POS/GetRewardByPromotionID",e.GenerateGopayQrCode="/API/POS/GenerateGoPayQrCode",e.GenerateEmpatKaliQrCode="/API/POS/GenerateEmpatKaliQrCode",e.VerifyPayment="/API/PaymentNotification/VerifyPayment",e.PayWithOvo="/API/POS/PayWithOvo",e.InvoiceA4="/API/Print/Invoice",e.UploadCsv="/API/POS/UploadCsv",e.UploadCsvBuy="/API/Buy/UploadCsv",e.GenerateCommission="/API/Transaction/GetCommission",e.InvoiceInfo="/api/Invoice/InvoiceInfo",e.GenerateLink="/API/PayNow/GenerateLink",e.LoadFormBuy="/API/Buy2/Load",e.BuyGetOutletInfo="/API/Buy2/GetOutletInfo",e.BuyGenerateNumber="/API/Buy/GenerateNumber",e.BuyGetDataByID="/API/Buy2/GetDataByID",e.GetQuickKey="/API/catalog/product/GetQuickKey",e.GetPrintTemplateID="/API/Buy/GetPrintTemplateID",e.GetVariantStockByID="/API/catalog/variant/GetInventoryByVariantID",e.GetSupplierInvoice="/API/Buy/GetSupplierInvoiceRetur",e.GetSupplierDTO="/API/Contact/GetSupplierDTO",e.LoadFormDelivery="/API/TransferOrderLoader/LoadForm",e.DeliveryGenerateNumber="/API/TransferOrder/GenerateNumber",e.UpdateCourierList="/API/TransferOrder/UpdateCourierList",e.SubmitOutletDelivery="/API/TransferOrder/SubmitOrder",e.ClearOutlet="/API/TransferOrder/ClearOutlet",e.PaymentListSorting="/API/Setup/SortPaymentMethod",e.TaxListSorting="/API/Setup/SortTax",e.LoadFormEstimate="/API/Estimate/LoadForm",e.EstimateGenerateNumber="/API/Estimate/GenerateNumber",e.SubmitEstimate="/API/Estimate/SubmitOrder",e.LoadFormAdjustment="/API/Adjustment/LoadForm",e.AdjustmentGenerateNumber="/API/Adjustment/GenerateNumber",e.SubmitAdjustment="/API/Adjustment/SubmitOrder",e.ForecastData="Inventory/Daystozero",e.ForecastLoader="InventoryLoader/Daystozero",e})()},37407:(P,c,s)=>{s.d(c,{G:()=>u});const u={dashboard:{WeeklySales:"Chart"},estimate:{Create:"EstC",Edit:"EstE",Delete:"EstD"},report:{View:"Rep",Advanced:"RepA",Profit:"RepF"},shift:{View:"Shift",Create:"ShiftC",Edit:"ShiftE",Delete:"ShiftD"},contact:{View:"Con",Create:"ConC",Edit:"ConE",Delete:"ConD",LoyaltyPointEditor:"LoyPE",ContactDetailRestriction:"ContactDetailRestriction",ContactImageEditor:"ContactImageEditor"},sell:{Create:"Sell",PricebookSelector:"PricebookSelector",Edit:"SellEditor",Delete:"SellDelete",Date:"DateEditor",Number:"NumberEditor",SalesPerson:"SalesmanEditor",Return:"Return",Discount:"Discount",UnitPriceEditor:"UnitPriceEditor",Commission:"Commission",TaxRestriction:"TaxRestriction",CustomerInputLock:"CustomerInputLock",PaymentRestriction:"PaymentRestriction",PriceVisibleRestriction:"PriceVisibleRestriction",PriceMinimum:"PriceMinimum",EmailRestriction:"EmailRestriction",DeleteItemRestriction:"DeleteItemRestriction",ShippingRestriction:"ShippingRestriction",PaymentCodeLock:"PaymentCodeLock",EraseVoidOrd:"EraseVoidOrd",RestoreVoidOrd:"RestoreVoidOrd",RetrieveRestriction:"RetrieveRestriction",BundlingPrice:"BundlingPrice",ClearCartRestriction:"ClearCartRestriction",CreditSalesLock:"CreditSalesLock"},orders:{View:"Ord",SupplierBill:"OrdB",VoidInvoice:"OrdVo",ReprintRestriction:"OrdRpr",NoteEditor:"OrdNe",InvoiceRestricted:"Ordlr"},product:{View:"Prod",Delete:"ProdD",ImageEditor:"ImgE",Create:"ProdC",Edit:"ProdE",Cost:"Cost",BarcodePrintingRestriction:"BarP",DeleteAllOutletPrice:"DeleteAllOutletPrice",Expense:"Expense"},payment:{View:"Pay",Delete:"PayD",Create:"PayC",Edit:"PayE",PaymentDate:"PayDE"},adjustment:{View:"Adj",Delete:"AdjD",Create:"AdjC",Edit:"AdjE",Approval:"AdjApp",InventoryProductCount:"InvPC"},buy:{Delete:"BuyD",Create:"Buy",Edit:"BuyE",DateEditor:"BuyDE",ShippingRestriction:"BuyShippingRestriction",Approval:"PurA"},logistics:{View:"Del",Create:"DelC",Edit:"DelE",Delete:"DelD",TransferOrderEditor:"DelRE",Outbound:"FulF",TransferOrderApproval:"DelA",TransferDateEditor:"DelDE",TransferOrderReceiver:"DelR"},debt:{View:"Debt",Delete:"DebtD",Create:"DebtC",Edit:"DebtE"},prepaidPackage:{View:"Tre",Create:"TreC",Edit:"TreE",Delete:"TreD",TreatmentIncentive:"TreI",SharePackageEditor:"SharPacE",TreatmentNote:"TreN",Doctor:"Doct"},inventory:{View:"Inv",Edit:"InvE"},promotion:{View:"Prom",Create:"PromC",Edit:"PromE",Delete:"PromD",Coupon:"Cou",Pricebook:"Pri"},accounting:{View:"Act",Create:"ActC",Edit:"ActE",Delete:"ActD",Report:"ActRep",Ledger:"ActL",EmptyOutlet:"ActEO",ClosingEditor:"ActCE",Advanced:"ActRA",Recurring:"ActRec"},users:{View:"Use",Create:"UseC",Edit:"UseE",Delete:"UseD",Groups:"Gro",LoginTimeRestriction:"LogTR",UserIPRestriction:"UseIR",GroupsRestriction:"UserGroupsRestriction",LogRestriction:"LogResct"},outlets:{View:"Out",Create:"OutC",Edit:"OutE",Delete:"OutD"},setup:{View:"Stp",Create:"StpC",Edit:"StpE",Delete:"StpD",Webhook:"StpWh",Developer:"StpDev"},service:{View:"Serv"},myProfile:{View:"Prof",Notification:"Notf",Subscription:"Subs",Activity:"Actv"},customerDisplay:{View:"Disp"},orderDisplay:{View:"KitD"},global:{Export:"Export"},apps:{Marketplace:"Mrp",Jurnal:"Jurnal",Tools:"Tools"},fulfillment:{View:"Ful",Edit:"FulE",Create:"FulC",Delete:"FulD",Ship:"FulS"},manufacture:{View:"Man",Create:"ManC",Edit:"ManE",Delete:"ManD"}}}}]);
1
+ "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1161],{51161:(P,c,s)=>{s.d(c,{N:()=>m});var u=s(37407),i=s(67327),p=s(94650);let m=(()=>{class l{constructor(){this.parseJWTRoles()}parseJWTRoles(){const e=localStorage.getItem("Token");if(i.gT.IsNotEmpty(e)){var n=i.gT.parseJwt(e);this._roles=n["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]}}isInRole(e,n){const t={};return n.forEach((r,a)=>t[e[a]]="string"==typeof r?this._roles.includes(r):r(this._roles)),t}isUserHasRole(e){return this._roles.includes(e)}get product(){return i.gT.IsEmpty(this._product)&&(this._product=this.setBulkRole("product")),this._product}get contact(){return i.gT.IsEmpty(this._contact)&&(this._contact=this.setBulkRole("contact")),this._contact}get promotion(){return i.gT.IsEmpty(this._promotion)&&(this._promotion=this.setBulkRole("promotion")),this._promotion}get accounting(){return i.gT.IsEmpty(this._accounting)&&(this._accounting=this.setBulkRole("accounting")),this._accounting}get users(){return i.gT.IsEmpty(this._users)&&(this._users=this.setBulkRole("users")),this._users}get outlets(){return i.gT.IsEmpty(this._outlets)&&(this._outlets=this.setBulkRole("outlets")),this._outlets}get setup(){return i.gT.IsEmpty(this._setup)&&(this._setup=this.setBulkRole("setup")),this._setup}get service(){return i.gT.IsEmpty(this._service)&&(this._service=this.setBulkRole("service")),this._service}get profile(){return i.gT.IsEmpty(this._profile)&&(this._profile=this.setBulkRole("myProfile")),this._profile}get customerDisplay(){return i.gT.IsEmpty(this._customerDisplay)&&(this._customerDisplay=this.setBulkRole("customerDisplay")),this._customerDisplay}get orderDisplay(){return i.gT.IsEmpty(this._orderDisplay)&&(this._orderDisplay=this.setBulkRole("orderDisplay")),this._orderDisplay}get global(){return i.gT.IsEmpty(this._global)&&(this._global=this.setBulkRole("global")),this._global}get apps(){return i.gT.IsEmpty(this._apps)&&(this._apps=this.setBulkRole("apps")),this._apps}get fulfillment(){return i.gT.IsEmpty(this._fulfillment)&&(this._fulfillment=this.setBulkRole("fulfillment")),this._fulfillment}get manufacture(){return i.gT.IsEmpty(this._manufacture)&&(this._manufacture=this.setBulkRole("manufacture")),this._manufacture}get inventory(){return i.gT.IsEmpty(this._inventory)&&(this._inventory=this.setBulkRole("inventory")),this._inventory}get sell(){return i.gT.IsEmpty(this._sell)&&(this._sell=this.setBulkRole("sell")),this._sell}get report(){return i.gT.IsEmpty(this._report)&&(this._report=this.setBulkRole("report")),this._report}get buy(){return i.gT.IsEmpty(this._buy)&&(this._buy=this.setBulkRole("buy")),this._buy}get adjustment(){return i.gT.IsEmpty(this._adjustment)&&(this._adjustment=this.setBulkRole("adjustment")),this._adjustment}get debt(){return i.gT.IsEmpty(this._debt)&&(this._debt=this.setBulkRole("debt")),this._debt}get payment(){return i.gT.IsEmpty(this._payment)&&(this._payment=this.setBulkRole("payment")),this._payment}get prepaidPackage(){return i.gT.IsEmpty(this._prepaidPackage)&&(this._prepaidPackage=this.setBulkRole("prepaidPackage")),this._prepaidPackage}get order(){return i.gT.IsEmpty(this._order)&&(this._order=this.setBulkRole("orders")),this._order}get logistic(){return i.gT.IsEmpty(this._logistic)&&(this._logistic=this.setBulkRole("logistics")),this._logistic}get estimate(){return i.gT.IsEmpty(this._estimate)&&(this._estimate=this.setBulkRole("estimate")),this._estimate}get shift(){return i.gT.IsEmpty(this._shift)&&(this._shift=this.setBulkRole("shift")),this._shift}setBulkRole(e){const n={};for(const t in u.G[e])n[t]=this.isUserHasRole(u.G[e][t]);return n}get isSystemUser(){const e=localStorage.getItem("Token");return"System"==i.gT.parseJwt(e).Type}resetRoles(){this._roles=[],this._accounting=null,this._adjustment=null,this._apps=null,this._buy=null,this._contact=null,this._customerDisplay=null,this._debt=null,this._fulfillment=null,this._estimate=null,this._global=null,this._inventory=null,this._logistic=null,this._manufacture=null,this._order=null,this._orderDisplay=null,this._outlets=null,this._payment=null,this._product=null,this._prepaidPackage=null,this._profile=null,this._promotion=null,this._report=null,this._sell=null,this._service=null,this._setup=null,this._shift=null,this._users=null}}return l.\u0275fac=function(e){return new(e||l)},l.\u0275prov=p.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},67327:(P,c,s)=>{s.d(c,{FI:()=>i,Wz:()=>l,g7:()=>m,gT:()=>u});let u=(()=>{class e{static StringFormat(t,...r){for(let a=0;a<r.length;a++)t=t.replace(`{${a}}`,r[a]);return t}static IsNotEmpty(t){return""!=t&&t!=e.GuidEmpty&&null!=t&&null!=t}static IsEmpty(t){return""==t||null==t||null==t||t==e.GuidEmpty}static FilterByID(t,r){try{const a=t.filter(o=>o.ID==r);if(a.length>0)return a[0]}catch{}return null}static GenerateYears(t,r,a){let o=-1;(null==r||null==r)&&(r=11),(null==a||null==a||!a)&&(o=1);const d=[];for(let y=0;y<r;y++)d.push(t+y*o);return d}static DateOnly(t){return t?new Date(new Date(t).toDateString()):new Date((new Date).toDateString())}static calculateNumberBetweenDate(t,r){let a=r.getTime()-t.getTime();return Math.floor(a/864e5)}static Guid_NewGuid(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var o=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==a?o:3&o|8).toString(16)})}static parseJwt(t){var a=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(atob(a).split("").map(function(d){return"%"+("00"+d.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(o)}static numberOnly(t){const r=t.which?t.which:t.keyCode;return!(r>31&&(r<48||r>57))}static formatNumber(t){let r,a="",o=Math.abs(t);return o>999&&o<1e6?(a="K",r=(o/1e3).toFixed(0)):o>=1e6?(a="M",r=(o/1e6).toFixed(0)):o<900&&(r=o.toString()),t<0&&(r="-"+r),r.replace(/\B(?=(\d{3})+(?!\d))/g,",")+a}static isToDay(t){if(t){const r=new Date;return r.setHours(0,0,0,0),r.getTime()==t.getTime()}}static compare(t,r,a){return(t<r?-1:1)*(a?1:-1)}}return e.GuidEmpty="00000000-0000-0000-0000-000000000000",e.DecimalMinValue="-7.922816251426434e+28",e.InputLockTimeSpan=500,e.MinDate="0001-01-01T00:00:00",e.MinTime="00:00:00",e.tinyMceApiKey="zc58cdrrftek5r5igtmjiar7ed4n3wr00hzd4w4mvtx8mpxa",e.Months=[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}],e})();function i(e){return new Promise((n,t)=>{let r=new Image;r.src=e,r.decode().then(()=>{n({img:e,height:r.height,width:r.width})}).catch(()=>{t(new Error(`Image load error for ${e}`))})})}let m=(()=>{class e{}return e.emptyDate="Please fill invoice date",e.emptyNumber="Please fill invoice number",e.failGetMenu="Fail to get pos menu",e.failToGetRetur="Fail to get retur",e.failGetLocalPosStorage="Fail to get setting and option from local storage, Please re-cache your data while online!",e.failGetVariant='"Error getting variant with {0} {1}" - {2}',e.failGetLocalVariant="Fail to get variant from local storage, Please re-cache your data while online!",e.emptyBarcodeFormat='No product with barcode "{0}"',e.emptyCustomerFormat='No customer with code "{0}"',e.failGetSalesOrder="Fail to get sales order",e.failBin="Fail to bin transaction",e.failGetCustomer="Fail to get customer's data",e.failCreateCustomer="Fail to create customer",e.noRoleContact="You have no right to create new customer",e.submitLocally="Connection unavailable ~ offline! Order stored locally",e.OfflineOrderNotSupport="Offline order is not Supported!",e.failOrderConnectionTimeOut="Connection timeout! Please try uploading your order again!",e.failDeletePark="Fail to delete park",e.emptyAccessRegister="You do not have access to any Register",e.failGenerateNewNumber="Fail to generate new number",e.emptyPayment="There is no active payment method.",e.failOpenRegister="Fail to open register",e.failGetLocalOutletInfo="Fail to get outlet information from local storage, Please re-cache your data while online!",e.failTrySubmit="[Error submitting order] \n{0}",e.failTryCreateCustomer='"[Error creating customer] \n"{0}',e.createCustomerOffline="Create customer is not supported when the connection offline",e.emptyCustomer="Please select customer!",e.emptySalesPerson="Please select sales person!",e.emptySalesType="Please select sales type!",e.failCreateNewVariant="Fail to create new variant",e.requiredDefaultCategory="[WARNING] - POS / Quick Create Product requires Default Category",e.emptyVariant="Item is undefined, please re-type",e.emptyPOItem="You must have at least one item",e.emptyEntity="Please select entity before proceeding..",e.failGetRetrieve="Fail to get retrieve",e.failTryPark="[Error submitting park] \n{0}",e.failTryGetPark="[Error during get park] \n{0}",e.failTryGetOutStanding="[Error during get outstanding] \n{0}",e.failTryGetParkSelect="[Error during get available park select] \n{0}",e.failGetSerial="Fail to get variant serial",e.successSendOrder="Orders synchronized to server. Upload Transaction Complete!",e.successSyncProduct="Products synchronized to Local Storage",e.failGetPark="Fail to get park",e.failMergePark="Fail to merge park",e.failGetOutStanding="Fail to get outstanding",e.failGetParkSelect="Fail to get available park select",e.confirmationDeleteOrder="Are you sure want to delete this order?",e.confirmationCloseRegister="The Register is still occupied under '{0}'. Do you want to end his / her session?",e.closeActiveRegister="You already have an active register with name '{0}'. Do you want to end your session?",e.successSendEmail="Email is sent successfully to '{0}'",e.wrongOfflineAction="This action is not supported when the connection offline",e.emptyCustomerCredit="Credit Payment requires customer specified!",e.debtLimit="Your debt is over limit!",e.emptyCustomerDeposit="Deposit Payment requires customer specified!",e.creditLock="You have no right to give credit!",e.failToSyncProduct="Fail sync product to local storage!",e.failToSyncOrder="Fail sync Order to local storage!",e.emptyDeliveryOutlet="There is no outlet in delivery module.",e.wrongAuthorizationCode="Wrong Authorize Code!",e.priceMinimumRestriction="You have no right to sell this item lower than {0}",e.clearBrowsingData="A new version of our POS is available, please clear your browsing data to apply changes!",e.offlineModeNotification="WARNING! Your point of sale configuration is set to LOCAL, orders are not synchronized automatically.",e.failServerConnection="Something happen to the server, switch query to local mode to continue work!",e.taxEmpty="Tax options is empty, go to setup and add tax!",e.clearCommission="Are you sure to leave this page without saving?",e.voidConfirm="This will replace current order's item(s) with blank order.",e.notSellAble="This item is not for sell",e.partialLoyaltyPointUnable="You only can fully pay with loyalty point, otherwise please remove the loyalty point and use other available payment options",e.DiffDate="Client date is not equal with Server Date",e.pointOnly="{0} need paid by point only",e.cashOnly="{0} cannot paid by point",e.ovoConfig="WARNING! Your ovo configuration is not set",e.failGenerateQR="Failed to generate qr code",e.failPaymentOvo="Failed to pay with ovo, Try again",e.emptyPhone="Please Fill Phone",e.maxInventory="Your Bought Qty will exceed the Max Inventory",e.payNowOnly="You have no access to sell with Later Payment",e})(),l=(()=>{class e{}return e.GetPOSStorage="/API/POS/LoadPOS",e.GenerateNumber="/API/POS/GenerateNumber",e.RefreshToken="/API/Authentication/RefreshToken",e.RemovePark="/API/POS/RemovePark",e.VoidPark="/API/POS/VoidPark",e.ReturInvoice="/API/POS/ReturInvoice",e.BuyReturInvoice="/API/Buy/GetSupplierInvoiceRetur",e.GetSalesOrderJSONByID="/API/POS/GetSalesOrderJSONByID",e.GetPOSDataByID="/API/POS/GetPOSDataByID",e.MergePark="/API/POS/MergePark",e.GetPark="/API/POS/GetParkByEntityID",e.GetOutStanding="/API/POS/GetOutStandingByEntityID",e.GetVacant="/API/POS/GetParkInfoByEntityID",e.RecordOpeningCash="/API/POS/RecordOpeningCash",e.OpenRegister="/API/POS/LoadRegister",e.GetRegisterInfo="/API/POS/GetRegisterInfo",e.BackdateNumber="/API/POS/GenerateBackdateNumber",e.GetVariantByID="/API/catalog/variant/GetVariantByID",e.GetVariantFormModelByID="/API/catalog/variant/GetVariantFormModelById",e.GetVariantByCode="/API/catalog/variant/GetVariantByCode",e.GetVariantSerial="/API/catalog/variant/GetVariantSerial",e.GetVariantBySerial="/API/catalog/variant/GetVariantbySerial",e.UpdateProductImage="/API/catalog/product/UpdateProductImageUrl",e.GetVariantWithSameProductID="/API/catalog/variant/GetVariantWithSameProductID",e.GetVariantInfoModelById="/API/catalog/variant/GetVariantInfoModelById",e.GetSalesHistory="/Api/catalog/product/GetSalesHistory",e.GetPurchaseHistory="/API/catalog/product/GetPurchaseHistory",e.GetParkedHistory="/API/catalog/product/GetParkOrder",e.CreateVariant="/API/catalog/variant/CreateVariant",e.SendInvoiceEmail="/API/Transaction/SendEmail",e.GetCustomerPrivilegeByID="/API/Contact/GetPrivilegeByID",e.GetCustomerByCode="/API/Contact/GetByCode",e.GetCustomerCode="/API/Contact/GetCode",e.GetCustomerEmailByID="/API/Contact/GetEmailByID",e.GetPriceBookByVariantID="/API/catalog/variant/GetPriceBookByVariantID",e.GetPackageID="/API/POS/GetPackageID",e.Authorize="/API/AuthorizationKey/AuthorizeByType",e.Invoice="/api/Invoice/InvoiceInfo",e.OrdersLoader="/API/OrdersLoader/CustomerInvoice",e.Orders="/api/Invoice/CustomerInvoice",e.PaymentReceivedLoader="/API/PaymentLoader/DailyPaymentLoader",e.PaymentReceived="/API/Payment/DailyPaymentReceived",e.CheckOutUrl="/API/POS/SubmitOrder",e.CheckOutUrlBuy="/API/Buy/SubmitOrder",e.Scanner="/API/AdjustmentLoader/StockTakeByCSV",e.AdjustmentLoader="/API/AdjustmentLoader/GetInventoryAdjustmentList",e.Adjustment="/API/Adjustment/GetInventoryAdjustmentList",e.AdjustmentStorage="/API/Adjustment/GetStorage",e.GetNumberAdjustment="/API/Adjustment/GenerateNumber",e.GetAccountReceivableLoader="/API/DebtLoader/AccountsReceiveableSummary",e.GetAccountReceivableDetailLoader="/API/DebtLoader/AccountsReceiveableDetails",e.GetAccountReceivableSummary="/API/Debt/AccountsReceiveableSummary",e.getAccountreceivableDetail="/API/Debt/AccountsReceiveableDetails",e.ProductLibrarySuggestion="/API/AC/GetVariantSuggestionByCodeNName",e.VoidInvoiceLoader="/API/OrdersLoader/VoidInvoiceLoader",e.VoidInvoice="/api/Invoice/VoidInvoiceList",e.WaitingPatientList="/API/Treatment/WaitingPatientList",e.CheckOutTreatmentByListID="/API/Treatment/CheckOutByListID",e.TreatmentRegisterLoader="/API/TreatmentLoader/Registration",e.TreatmentRegisterOutletInfo="/API/Treatment/RegistrationGetOutletInfo",e.TreatmentCustomerInfo="/API/Treatment/RegistrationGetCustomerInfo",e.SubmitTreatementRegistration="/API/Treatment/RegistrationSubmit",e.SalesOrderMini="/API/Print/SalesOrderMini",e.ProductLoader="/API/catalog/ProductLoader/ProductList",e.ProductList="/API/catalog/product/GetProductList",e.DeleteProductList="/API/catalog/product/DeleteProductList",e.DeleteVariantInfo="/API/catalog/variant/DeleteVariantInfo",e.ProductForm="/API/catalog/ProductLoader/ProductForm",e.SubmitProduct="/API/catalog/product/SubmitProduct",e.ProductInfo="/API/catalog/ProductLoader/ProductInfoInitial",e.CreateCategory="/API/catalog/category/CreateProductCategory",e.CreateBrand="/API/catalog/product/CreateBrand",e.CreateTag="/API/catalog/product/CreateTags",e.CreateUOM="/API/catalog/product/CreateProductUOM",e.VariantInfo="/API/catalog/variant/GetVariantInfoModelById",e.VariantFormData="/API/catalog/variant/GetVariantFormInitialData",e.VariantForm="/API/catalog/variant/GetVariantFormModelById",e.SubmitVariant="/API/catalog/variant/SubmitVariant",e.CreateContact="/API/Contact/Create",e.Closure="/API/POS/Closure",e.SyncProducts="/API/POSSync/Products",e.SyncCustomer="/API/POSSync/Customers",e.SynOutletPrice="/API/POSSync/OutletPrices",e.SynOutlet="/API/POSSync/Outlets",e.SyncPark="/API/POSSync/Parks",e.GetRewardByPromotionID="/API/POS/GetRewardByPromotionID",e.GenerateGopayQrCode="/API/POS/GenerateGoPayQrCode",e.GenerateEmpatKaliQrCode="/API/POS/GenerateEmpatKaliQrCode",e.VerifyPayment="/API/PaymentNotification/VerifyPayment",e.PayWithOvo="/API/POS/PayWithOvo",e.InvoiceA4="/API/Print/Invoice",e.UploadCsv="/API/POS/UploadCsv",e.UploadCsvBuy="/API/Buy/UploadCsv",e.GenerateCommission="/API/Transaction/GetCommission",e.InvoiceInfo="/api/Invoice/InvoiceInfo",e.GenerateLink="/API/PayNow/GenerateLink",e.LoadFormBuy="/API/Buy2/Load",e.BuyGetOutletInfo="/API/Buy2/GetOutletInfo",e.BuyGenerateNumber="/API/Buy/GenerateNumber",e.BuyGetDataByID="/API/Buy2/GetDataByID",e.GetQuickKey="/API/catalog/product/GetQuickKey",e.GetPrintTemplateID="/API/Buy/GetPrintTemplateID",e.GetVariantStockByID="/API/catalog/variant/GetInventoryByVariantID",e.GetSupplierInvoice="/API/Buy/GetSupplierInvoiceRetur",e.GetSupplierDTO="/API/Contact/GetSupplierDTO",e.LoadFormDelivery="/API/TransferOrderLoader/LoadForm",e.DeliveryGenerateNumber="/API/TransferOrder/GenerateNumber",e.UpdateCourierList="/API/TransferOrder/UpdateCourierList",e.SubmitOutletDelivery="/API/TransferOrder/SubmitOrder",e.ClearOutlet="/API/TransferOrder/ClearOutlet",e.PaymentListSorting="/API/Setup/SortPaymentMethod",e.TaxListSorting="/API/Setup/SortTax",e.LoadFormEstimate="/API/Estimate/LoadForm",e.EstimateGenerateNumber="/API/Estimate/GenerateNumber",e.SubmitEstimate="/API/Estimate/SubmitOrder",e.LoadFormAdjustment="/API/Adjustment/LoadForm",e.AdjustmentGenerateNumber="/API/Adjustment/GenerateNumber",e.SubmitAdjustment="/API/Adjustment/SubmitOrder",e.ForecastData="Inventory/Daystozero",e.ForecastLoader="InventoryLoader/Daystozero",e})()},37407:(P,c,s)=>{s.d(c,{G:()=>u});const u={dashboard:{WeeklySales:"Chart"},estimate:{Create:"EstC",Edit:"EstE",Delete:"EstD"},report:{View:"Rep",Advanced:"RepA",Profit:"RepF"},shift:{View:"Shift",Create:"ShiftC",Edit:"ShiftE",Delete:"ShiftD"},contact:{View:"Con",Create:"ConC",Edit:"ConE",Delete:"ConD",LoyaltyPointEditor:"LoyPE",ContactDetailRestriction:"ContactDetailRestriction",ContactImageEditor:"ContactImageEditor"},sell:{Create:"Sell",PricebookSelector:"PricebookSelector",Edit:"SellEditor",Delete:"SellDelete",Date:"DateEditor",Number:"NumberEditor",SalesPerson:"SalesmanEditor",Return:"Return",Discount:"Discount",UnitPriceEditor:"UnitPriceEditor",Commission:"Commission",TaxRestriction:"TaxRestriction",CustomerInputLock:"CustomerInputLock",PaymentRestriction:"PaymentRestriction",PriceVisibleRestriction:"PriceVisibleRestriction",PriceMinimum:"PriceMinimum",EmailRestriction:"EmailRestriction",DeleteItemRestriction:"DeleteItemRestriction",ShippingRestriction:"ShippingRestriction",PaymentCodeLock:"PaymentCodeLock",EraseVoidOrd:"EraseVoidOrd",RestoreVoidOrd:"RestoreVoidOrd",RetrieveRestriction:"RetrieveRestriction",BundlingPrice:"BundlingPrice",ClearCartRestriction:"ClearCartRestriction",CreditSalesLock:"CreditSalesLock"},orders:{View:"Ord",SupplierBill:"OrdB",VoidInvoice:"OrdVo",ReprintRestriction:"OrdRpr",NoteEditor:"OrdNe",InvoiceRestricted:"Ordlr"},product:{View:"Prod",Delete:"ProdD",ImageEditor:"ImgE",Create:"ProdC",Edit:"ProdE",Cost:"Cost",BarcodePrintingRestriction:"BarP",DeleteAllOutletPrice:"DeleteAllOutletPrice",Expense:"Expense"},payment:{View:"Pay",Delete:"PayD",Create:"PayC",Edit:"PayE",PaymentDate:"PayDE"},adjustment:{View:"Adj",Delete:"AdjD",Create:"AdjC",Edit:"AdjE",Approval:"AdjApp",InventoryProductCount:"InvPC"},buy:{Delete:"BuyD",Create:"Buy",Edit:"BuyE",DateEditor:"BuyDE",ShippingRestriction:"BuyShippingRestriction",Approval:"PurA"},logistics:{View:"Del",Create:"DelC",Edit:"DelE",Delete:"DelD",TransferOrderEditor:"DelRE",Outbound:"FulF",TransferOrderApproval:"DelA",TransferDateEditor:"DelDE",TransferOrderReceiver:"DelR"},debt:{View:"Debt",Delete:"DebtD",Create:"DebtC",Edit:"DebtE"},prepaidPackage:{View:"Tre",Create:"TreC",Edit:"TreE",Delete:"TreD",TreatmentIncentive:"TreI",SharePackageEditor:"SharPacE",TreatmentNote:"TreN",Doctor:"Doct"},inventory:{View:"Inv",Edit:"InvE"},promotion:{View:"Prom",Create:"PromC",Edit:"PromE",Delete:"PromD",Coupon:"Cou",Pricebook:"Pri"},accounting:{View:"Act",Create:"ActC",Edit:"ActE",Delete:"ActD",Report:"ActRep",Ledger:"ActL",EmptyOutlet:"ActEO",ClosingEditor:"ActCE",Advanced:"ActRA",Recurring:"ActRec"},users:{View:"Use",Create:"UseC",Edit:"UseE",Delete:"UseD",Groups:"Gro",LoginTimeRestriction:"LogTR",UserIPRestriction:"UseIR",GroupsRestriction:"UserGroupsRestriction",LogRestriction:"LogResct"},outlets:{View:"Out",Create:"OutC",Edit:"OutE",Delete:"OutD"},setup:{View:"Stp",Create:"StpC",Edit:"StpE",Delete:"StpD",Webhook:"StpWh",Developer:"StpDev"},service:{View:"Serv"},myProfile:{View:"Prof",Notification:"Notf",Subscription:"Subs",Activity:"Actv"},customerDisplay:{View:"Disp"},orderDisplay:{View:"KitD"},global:{Export:"Export"},apps:{Marketplace:"Mrp",Jurnal:"Jurnal",Tools:"Tools"},fulfillment:{View:"Ful",Edit:"FulE",Create:"FulC",Delete:"FulD",Ship:"FulS"},manufacture:{View:"Man",Create:"ManC",Edit:"ManE",Delete:"ManD"}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1407],{11989:(h,M,o)=>{o.d(M,{AM:()=>C});class C{}},42011:(h,M,o)=>{o.d(M,{D:()=>l,H:()=>i});var C=o(36895),e=o(94650),O=o(24006),t=o(58393),p=o(93669),s=o(65412);function n(r,_){if(1&r){const a=e.EpF();e.TgZ(0,"div",7)(1,"a",11),e.NdJ("click",function(){e.CHM(a);const g=e.oxw();return e.KtG(g.openUploadModal())}),e._UZ(2,"i",12),e.qZA()()}}let i=(()=>{class r{constructor(a){this._matDialog=a,this.onOpenUploadModal=new e.vpe,this.onAddItem=new e.vpe,this.onScanCode=new e.vpe,this.onCreateItem=new e.vpe}handleF4(){this._matDialog.openDialogs&&this._matDialog.openDialogs.length>0||this.createItem()}createItem(){this.onCreateItem.emit()}openUploadModal(){this.onOpenUploadModal.emit()}addItem(a){this.onAddItem.emit(a)}scanCode(a){this.onScanCode.emit(a)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(s.uw))},r.\u0275cmp=e.Xpm({type:r,selectors:[["POS-cart-header"]],hostBindings:function(a,m){1&a&&e.NdJ("keydown.F4",function(u){return m.handleF4(u)},!1,e.Jf7)},inputs:{cartItems:"cartItems",isUpload:"isUpload"},outputs:{onOpenUploadModal:"onOpenUploadModal",onAddItem:"onAddItem",onScanCode:"onScanCode",onCreateItem:"onCreateItem"},decls:20,vars:6,consts:[[1,"row","cart-header","border-bottom-0","g-0","justify-content-between","align-items-center","p-6"],[1,"col-auto"],[1,"input-group","barcode"],[1,"input-group-text","input-group-text"],["aria-hidden","true",1,"fa","fa-barcode"],["placeholder","Search product by name / code","requestUrl","/API/AC/GetVariantSuggestionByCodeNName","inputID","product","notFoundMessageFor","product",1,"input-left",3,"clearOnSelect","onSelect","onInputEnter"],["class","col-auto add-item",4,"ngIf"],[1,"col-auto","add-item"],["matTooltipPosition","above","matTooltip","Add Item (F4)",1,"pointer","d-block","position-relative","cart-add",3,"click"],["aria-hidden","true",1,"fa","fa-plus","fa-2x","text-success"],[1,"position-absolute","fst-italic","right-bottom","text-dark"],["matTooltipPosition","above","matTooltip","Upload Item","data-bs-toggle","modal",1,"pointer","d-block","position-relative","cart-add",3,"click"],["aria-hidden","true",1,"fa","fa-upload","fa-2x","text-success"]],template:function(a,m){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h5"),e._UZ(3,"span"),e._uU(4,"\xa0"),e.TgZ(5,"span"),e._uU(6),e.ALo(7,"sum"),e.qZA()()(),e.TgZ(8,"div",1)(9,"div",2)(10,"div",3)(11,"span"),e._UZ(12,"i",4),e.qZA()(),e.TgZ(13,"autocompleteV2",5),e.NdJ("onSelect",function(u){return m.addItem(u)})("onInputEnter",function(u){return m.scanCode(u)}),e.qZA()()(),e.YNc(14,n,3,0,"div",6),e.TgZ(15,"div",7)(16,"a",8),e.NdJ("click",function(){return m.createItem()}),e._UZ(17,"i",9),e.TgZ(18,"small",10),e._uU(19,"(F4)"),e.qZA()()()()),2&a&&(e.xp6(6),e.hij("",e.xi3(7,3,m.cartItems,"Quantity")," ITEM (S)"),e.xp6(7),e.Q6J("clearOnSelect",!0),e.xp6(1),e.Q6J("ngIf",m.isUpload))},dependencies:[C.O5,t.J,p.qU],styles:["div.row.cart-header[_ngcontent-%COMP%]{border:solid 1px #cfcfcf;border-radius:3px 3px 0 0;background:#f2f7fa;color:#222}div.row.cart-header[_ngcontent-%COMP%] .right-bottom[_ngcontent-%COMP%]{font-size:9px;right:-6px;bottom:-10px}autocompleteV2.input-left[_ngcontent-%COMP%] > mat-form-field[_ngcontent-%COMP%] > input.form-control[_ngcontent-%COMP%]{padding-left:0!important}.barcode[_ngcontent-%COMP%]{width:305px!important}.barcode[_ngcontent-%COMP%] autocompleteV2 mat-form-field input{border-left:none!important}.barcode[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:28px!important}.barcode[_ngcontent-%COMP%] autocompleteV2[_ngcontent-%COMP%]{width:267px!important}.cashier[_ngcontent-%COMP%]{width:550px;max-width:50rem;min-width:30rem}@media (max-width: 1222px){.cashier[_ngcontent-%COMP%]{width:450px}}@media (max-width: 1210px){.cashier[_ngcontent-%COMP%]{width:480px}}@media (max-width: 1092px){.cashier[_ngcontent-%COMP%]{min-width:20rem;width:400px}.barcode[_ngcontent-%COMP%]{width:260px!important;margin-left:0}.barcode[_ngcontent-%COMP%] autocompleteV2[_ngcontent-%COMP%]{width:200px!important}}@media (max-width: 991px){.cashier[_ngcontent-%COMP%]{min-width:20rem;width:430px}.barcode[_ngcontent-%COMP%]{width:280px!important;margin-left:0}.barcode[_ngcontent-%COMP%] autocompleteV2[_ngcontent-%COMP%]{width:200px!important}}"]}),r})(),l=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[C.ez,O.UX,t.Q,p.dr]}),r})()},241:(h,M,o)=>{o.d(M,{w:()=>E});var C=o(67327),e=o(77579),O=o(82722),t=o(94650),p=o(26128),s=o(36895),n=o(3848),i=o(36806),l=o(93669);function r(d,f){if(1&d&&t._UZ(0,"img",17),2&d){const c=t.oxw().$implicit;t.Q6J("src",c.ImageURLClient.indexOf("cloudinary")>-1?"https:"+c.ImageURLClient:c.ImageURLClient,t.LSH)}}function _(d,f){if(1&d&&(t.TgZ(0,"p",18),t._uU(1),t.ALo(2,"slice"),t.qZA()),2&d){const c=t.oxw().$implicit;t.xp6(1),t.Oqu(t.Dn7(2,1,c.Display,0,3))}}function a(d,f){if(1&d){const c=t.EpF();t.TgZ(0,"div",13)(1,"a",14),t.NdJ("click",function(){const k=t.CHM(c).$implicit,K=t.oxw(3);return t.KtG(K.select(k))}),t.YNc(2,r,1,1,"img",15),t.YNc(3,_,3,5,"p",16),t.TgZ(4,"small"),t._uU(5),t.ALo(6,"slice"),t.qZA()()()}if(2&d){const c=f.$implicit;t.xp6(2),t.Q6J("ngIf",c.ImageURLClient),t.xp6(1),t.Q6J("ngIf",!c.ImageURLClient),t.xp6(2),t.Oqu(t.Dn7(6,3,c.Display,0,36))}}const m=function(){return["/menu/Outlets/Master/Quick_Key_Templates/Form"]},g=function(d){return{ID:d}};function u(d,f){if(1&d&&(t.TgZ(0,"mat-tab",6)(1,"div",7)(2,"div",8),t.YNc(3,a,7,7,"div",9),t.TgZ(4,"div",10)(5,"a",11),t._UZ(6,"i",12),t.qZA()()()()()),2&d){const c=f.$implicit,P=t.oxw(2);t.Q6J("label",c.Name),t.xp6(3),t.Q6J("ngForOf",c.Items),t.xp6(2),t.Q6J("routerLink",t.DdM(4,m))("queryParams",t.VKq(5,g,P.quickKeyId))}}function y(d,f){if(1&d&&(t.TgZ(0,"mat-tab-group",4),t.YNc(1,u,7,7,"mat-tab",5),t.qZA()),2&d){const c=t.oxw();t.Q6J("disableRipple",!0)("hidden",c.subQuickKey),t.xp6(1),t.Q6J("ngForOf",c.quickKey.Groups)}}function x(d,f){if(1&d){const c=t.EpF();t.TgZ(0,"div",13)(1,"a",14),t.NdJ("click",function(){const k=t.CHM(c).$implicit,K=t.oxw(2);return t.KtG(K.selectChild(k.ID))}),t.TgZ(2,"p"),t._uU(3),t.ALo(4,"limitTo"),t.qZA(),t.TgZ(5,"small"),t._uU(6),t.ALo(7,"limitTo"),t.qZA()()()}if(2&d){const c=f.$implicit;t.xp6(3),t.Oqu(t.xi3(4,2,c.Model,3)),t.xp6(3),t.Oqu(t.xi3(7,5,c.Model,30))}}function v(d,f){if(1&d){const c=t.EpF();t.TgZ(0,"div",19)(1,"div",20),t.NdJ("click",function(){t.CHM(c);const b=t.oxw();return t.KtG(b.back())}),t.TgZ(2,"div",21),t._UZ(3,"i",22),t.qZA(),t.TgZ(4,"div",23)(5,"b"),t._uU(6),t.qZA()()(),t.TgZ(7,"div",24),t.YNc(8,x,8,8,"div",9),t.qZA()()}if(2&d){const c=t.oxw();t.xp6(6),t.hij(" ",c.subQuickKey.Name," "),t.xp6(2),t.Q6J("ngForOf",c.subQuickKey.Items)}}const D=function(d){return{OutletID:d}};function I(d,f){if(1&d&&(t.TgZ(0,"a",25)(1,"strong"),t._uU(2,"QUICK KEYS UNCONFIGURED"),t.qZA(),t._UZ(3,"i",26),t.TgZ(4,"span"),t._uU(5,"Click here to setup your Quick keys"),t.qZA()()),2&d){const c=t.oxw();t.Q6J("routerLink",t.DdM(2,m))("queryParams",t.VKq(3,D,c.outletID))}}let E=(()=>{class d{constructor(c){this._quickKeyService=c,this.destroy$=new e.x}ngOnInit(){this.initQuickey()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}initQuickey(){this._quickKeyService.Data$.pipe((0,O.R)(this.destroy$)).subscribe(c=>{this.setQuickey(c)})}setQuickey(c){if(c){let P;c.Groups&&0!==c.Groups.length&&(P=c.Groups),this.quickKey=P?c:null}}addQuickKeyItem(c){this._quickKeyService.addQuickKeyItem(c)}selectChild(c){this.addQuickKeyItem(c),this.back(),this.openNextProduct(this.NextProductID)}select(c){this.NextProductID=c.NextProductID,!c.Children||c.Children.length<1?this.selectChild(c.ItemID):1==c.Children.length?this.selectChild(c.Children[0].ID):this.subQuickKey={Items:c.Children,Name:c.Display}}openNextProduct(c){C.gT.IsNotEmpty(c)&&this.data.Groups.forEach(P=>{const b=P.Items.find(k=>k.ProductID==c);null!=b&&b.Children.length>1&&(this.NextProductID=b.NextProductID,this.subQuickKey={Items:b.Children,Name:b.Display})})}back(){delete this.subQuickKey}}return d.\u0275fac=function(c){return new(c||d)(t.Y36(p.w))},d.\u0275cmp=t.Xpm({type:d,selectors:[["pos-quick-key"]],inputs:{quickKeyId:"quickKeyId",outletID:"outletID"},decls:5,vars:4,consts:[[1,"quickKeys",3,"ngClass"],["animationDuration","0ms","class","quickKeyTabs",3,"disableRipple","hidden",4,"ngIf","ngIfElse"],["class","container",4,"ngIf"],["noQuickKey",""],["animationDuration","0ms",1,"quickKeyTabs",3,"disableRipple","hidden"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],["class","col-3 column",4,"ngFor","ngForOf"],[1,"col-3","column","add"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-solid","fa-circle-plus","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[1,"col-3","column"],[3,"click"],["class","productTab",3,"src",4,"ngIf"],["class","productTab",4,"ngIf"],[1,"productTab",3,"src"],[1,"productTab"],[1,"container"],[1,"row","g-0","border","align-items-center","variants-header","cursor",3,"click"],[1,"col-auto","border-end","py-5","px-7"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","h5"],[1,"tabItems","row","g-0"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(c,P){if(1&c&&(t.TgZ(0,"section",0),t.YNc(1,y,2,3,"mat-tab-group",1),t.YNc(2,v,9,2,"div",2),t.YNc(3,I,6,5,"ng-template",null,3,t.W1O),t.qZA()),2&c){const b=t.MAs(4);t.Q6J("ngClass",P.quickKey?"":"no-quick-key"),t.xp6(1),t.Q6J("ngIf",P.quickKey)("ngIfElse",b),t.xp6(1),t.Q6J("ngIf",P.subQuickKey)}},dependencies:[s.mk,s.sg,s.O5,n.SP,n.uX,i.yS,s.OU,l.OI],styles:['.btn-add[_ngcontent-%COMP%]{-webkit-border-radius:50%;-moz-border-radius:50%;padding:6px 10px;cursor:pointer;right:-14px;top:5px;border:solid 1px #dddddd}section.quickKeys.no-quick-key[_ngcontent-%COMP%]{background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Cashier/no-quick-key.png);background-repeat:no-repeat;height:544px;position:relative}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;width:80px;display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd}.quickKeys[_ngcontent-%COMP%] .row.g-0.border.align-items-center.variants-header.cursor[_ngcontent-%COMP%]{background:linear-gradient(to bottom,#ffffff 0%,#eeeeee 100%)}.btn-add[_ngcontent-%COMP%]{-webkit-border-radius:50%;-moz-border-radius:50%;padding:6px 10px;cursor:pointer;right:-14px;top:5px;border:solid 1px #DDDDDD}section.quickKeys.no-quick-key[_ngcontent-%COMP%]{background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Cashier/no-quick-key.png);background-repeat:no-repeat;height:544px}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%]{border-bottom:0px;display:flex;border-radius:3px;cursor:pointer}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]{background:#ffffff;background:linear-gradient(to bottom,#ffffff 0%,#eeeeee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#eeeeee",GradientType=0);height:44px;max-height:44px;overflow:hidden;color:#aaa!important;font-size:14px;text-decoration:none;font-weight:700;outline:none;text-transform:uppercase;text-align:center;min-width:25%;display:flex;justify-content:center}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{align-self:center;text-align:center}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:last-child{border-right:none}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(4n){border-right:none}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:first-child{border-left:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(-n+4){border-right:1px solid #cfcfcf;border-top:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(4n+1){border-left:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(4n+2){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(4n+3){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(4n+4){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(n+5){width:25%;flex-grow:0}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col.active[_ngcontent-%COMP%]{color:#268ec1!important}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%]{padding:0}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:10px;word-break:break-all}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border:solid 1px #cfcfcf}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{text-align:center;display:block;cursor:pointer}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;width:80px;display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #DDDDDD}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{height:80px;width:80px;font-size:20px;display:block;margin:0 auto;padding-top:22px;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#000;font-size:11px;display:block;margin:5px 0 0}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] .ion-icon[_ngcontent-%COMP%]{font-size:75px;margin:10px}.quickKeys[_ngcontent-%COMP%] .variants-header[_ngcontent-%COMP%]{background:#ffffff;background:linear-gradient(to bottom,#ffffff 0%,#eeeeee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#eeeeee",GradientType=0);color:#268ec1;cursor:pointer}.quickKeys[_ngcontent-%COMP%] .col-md-3.column.add[_ngcontent-%COMP%]{cursor:pointer}.quickKeys[_ngcontent-%COMP%] .col-md-3.column.add[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-top:10px}.quickKeys[_ngcontent-%COMP%] i.icon-col.fa.fa-xmark.text-danger[_ngcontent-%COMP%]{color:#fb404b!important;position:absolute;right:16px;top:5px}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%], .quickKeys[_ngcontent-%COMP%] a#LinkConfigureParkLayout[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:5px}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:120px;left:90px}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover, .quickKeys[_ngcontent-%COMP%] a#LinkConfigureParkLayout[_ngcontent-%COMP%]:hover{opacity:.95}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%], .quickKeys[_ngcontent-%COMP%] a#LinkConfigureParkLayout[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .quickKeys[_ngcontent-%COMP%] a#LinkConfigureParkLayout[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .quickKeys[_ngcontent-%COMP%] a#LinkConfigureParkLayout[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}.quickKeys[_ngcontent-%COMP%] .row.no-gutters.border.align-items-center.variants-header.cursor[_ngcontent-%COMP%]{background:linear-gradient(to bottom,#ffffff 0%,#eeeeee 100%)}.general-information[_ngcontent-%COMP%] ol.mt-5.ml-5.pl-7[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{line-height:20px}.quickKeys[_ngcontent-%COMP%] {width:420px;position:relative}.quickKeys[_ngcontent-%COMP%] .mat-tab-header-pagination{display:none!important}.quickKeys[_ngcontent-%COMP%] .mat-tab-header{border-bottom:none}.quickKeys[_ngcontent-%COMP%] .mat-ink-bar{display:none!important}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label{height:44px;max-height:44px;overflow:hidden;padding:0!important;border-right:1px solid #cfcfcf;min-width:25%!important;flex-grow:1;flex-basis:0;font-size:14px;font-weight:700;outline:none;text-transform:uppercase;background:#ffffff;background:linear-gradient(to bottom,#ffffff 0%,#eeeeee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#eeeeee",GradientType=0);display:flex;white-space:normal!important}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label .mat-tab-label-content{white-space:normal!important;align-self:center}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(4n){border-right:none}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:first-child{border-left:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(-n+4){border-right:1px solid #cfcfcf;border-top:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(4n+1){border-left:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(4n+2){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(4n+3){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(4n+4){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(n+5){width:25%;flex-grow:0}@media (max-width: 1092px){.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label{font-size:12px}}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label-active{color:#268ec1!important;text-shadow:0px 0px 1px #268ec1!important}@media (max-width: 1210px){.quickKeys[_ngcontent-%COMP%]{width:350px}}@media (max-width: 1092px){.quickKeys[_ngcontent-%COMP%]{width:280px}.tabItems[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .tabItems[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:60px!important;height:60px!important;font-size:14px!important}.mat-tab-label[_ngcontent-%COMP%] {font-size:12px!important}#LinkConfigureQuickkey[_ngcontent-%COMP%]{left:10%!important}}']}),d})()},88441:(h,M,o)=>{o.d(M,{S:()=>n});var C=o(36895),e=o(3848),O=o(93669),t=o(26128),p=o(36806),s=o(94650);let n=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=s.oAB({type:i}),i.\u0275inj=s.cJS({providers:[t.w],imports:[C.ez,e.Nh,O.dr,p.Bz]}),i})()},26128:(h,M,o)=>{o.d(M,{w:()=>p});var C=o(61135),e=o(77579),O=o(11989),t=o(94650);let p=(()=>{class s{constructor(){this._Data=new C.X(new O.AM),this.Data$=this._Data.asObservable(),this._itemID=new e.x,this.onSelectQuickeyItem$=this._itemID.asObservable()}set EntityID(i){this._EntityID=i}set Data(i){this._Data.next(i)}addQuickKeyItem(i,l=this._EntityID){this._itemID.next({id:i,entityID:l})}}return s.\u0275fac=function(i){return new(i||s)},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()},86751:(h,M,o)=>{o.d(M,{U:()=>_,X:()=>r});var C=o(36895),e=o(24006),O=o(65412),t=o(42046),p=o(63165),s=o(93669),n=o(94650);const i=function(a){return{active:a}};function l(a,m){if(1&a){const g=n.EpF();n.TgZ(0,"div",9)(1,"div",10),n.NdJ("click",function(){const x=n.CHM(g).$implicit,v=n.oxw();return n.KtG(v.select(x))}),n.TgZ(2,"div",11)(3,"h5",12)(4,"span"),n._UZ(5,"i",13),n._uU(6),n.ALo(7,"limitTo"),n.qZA()(),n.TgZ(8,"div",14)(9,"div")(10,"span",15),n._uU(11,"VACANT"),n.qZA()()()()()()}if(2&a){const g=m.$implicit,u=n.oxw();n.xp6(2),n.Tol(n.VKq(6,i,(null==g?null:g.Name)==(null==u.selectedRegister?null:u.selectedRegister.Name))),n.xp6(4),n.hij(" ",n.xi3(7,3,g.Name,15)," ")}}let r=(()=>{class a{constructor(g,u){this.dialogRef=u,this.searchInput="",this.modalConfig=new t.O,this.Outlets=g.Entities,this.selectedRegister=g.SelectedRegister}ngOnInit(){this.modalConfig.hideClose=!0,this.modalConfig.bodyScrollable=!0,this.modalConfig.title="Choose an outlet"}select(g){this.selectedRegister=g}onOk(){this.dialogRef.close({outlet:this.selectedRegister})}}return a.\u0275fac=function(g){return new(g||a)(n.Y36(O.WI),n.Y36(O.so))},a.\u0275cmp=n.Xpm({type:a,selectors:[["POS-modal-outlet"]],decls:12,vars:7,consts:[[3,"config","onOk","onCancel","onClose"],[1,"ms-0","mb-8",2,"width","200px",3,"hidden"],[1,"input-group","mb-3"],[1,"input-group-text","txtFilter"],["aria-hidden","true",1,"fa","fa-magnifying-glass"],["type","text","placeholder","Filter by Name","aria-label","Search",1,"txtFilter","form-control","border-start-0",3,"ngModel","ngModelChange"],[1,"container","mt-8"],[1,"row",2,"width","600px !important"],["class","col-4",4,"ngFor","ngForOf"],[1,"col-4"],[1,"card","border-0",3,"click"],[1,"card-body","p-0"],[1,"card-title","mb-0"],[1,"fa","fa-circle-info","pe-1"],[1,"card-text","px-0","py-2"],[1,"idle"]],template:function(g,u){1&g&&(n.TgZ(0,"modal-material",0),n.NdJ("onOk",function(){return u.onOk()})("onCancel",function(){return u.dialogRef.close()})("onClose",function(){return u.dialogRef.close()}),n.TgZ(1,"content")(2,"div",1)(3,"div",2)(4,"span",3),n._UZ(5,"i",4),n.qZA(),n.TgZ(6,"input",5),n.NdJ("ngModelChange",function(x){return u.searchInput=x}),n.qZA()()(),n.TgZ(7,"div",6)(8,"div",7),n.YNc(9,l,12,8,"div",8),n.ALo(10,"FilterByName"),n.qZA()()(),n._UZ(11,"footer"),n.qZA()),2&g&&(n.Q6J("config",u.modalConfig),n.xp6(2),n.Q6J("hidden",u.Outlets.length<=6),n.xp6(4),n.Q6J("ngModel",u.searchInput),n.xp6(3),n.Q6J("ngForOf",n.xi3(10,4,u.Outlets,u.searchInput)))},dependencies:[C.sg,p.M,e.Fj,e.JJ,e.On,s.OI,s.bs],styles:[".bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px,#f5c6cb 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#28a745,#28a745 15px,#a2dbb0 15px,#a2dbb0 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#FCF3CF,#FCF3CF 15px,#F9E79F 15px,#F9E79F 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.col-4[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{width:180px;min-height:95px;margin-right:17px;margin-bottom:17px;position:relative}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%]{display:block;outline:0;border:1px solid #B1AAAA;border-radius:5px;cursor:pointer}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{height:30px;border-radius:4px;padding:5px 10px;color:#fff;background:#B1AAAA;overflow:hidden}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:5px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%]:hover, .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.active[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.vacant[_ngcontent-%COMP%]{background:#ffffe1;border:1px solid #89b03e}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%]:hover > h5[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.active[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.vacant[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%]{background:#89b03e}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%]:hover{border:1px solid #c9302c}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%] > h6[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%]:hover > h6[_ngcontent-%COMP%]{background:#c9302c!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%] span.alias[_ngcontent-%COMP%]{background:#c9302c}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%]:hover{background:white}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%]{border:1px solid #f6a828}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%] > h6[_ngcontent-%COMP%]{background:#f6a828!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%]:hover{border:1px solid #f6a828;background:white}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%]:hover > strong[_ngcontent-%COMP%]{background:#f6a828!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%] span.alias[_ngcontent-%COMP%]{background:#f6a828}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%] div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.75rem!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{height:80px;padding:15px 10px;position:relative}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;font-weight:400;font-size:.875rem;width:100%;margin-bottom:5px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{margin-top:-10px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{margin-bottom:0}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span.alias[_ngcontent-%COMP%]{text-align:center;position:absolute;bottom:0px;right:0px;width:auto;background-color:#b1aaaa;border-radius:3px;padding:2px 5px;color:#fff;display:none!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span.idle[_ngcontent-%COMP%]{display:block;font-size:1.25rem;text-align:center}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{position:absolute;width:27px;height:28px;cursor:pointer;top:5px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#000}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:last-of-type{right:-5px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:nth-last-of-type(2){right:15px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{bottom:20px;right:5px;position:absolute}.col-4[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{border:1px solid!important;position:absolute;bottom:-3px;left:58px;background:#fff;border-radius:5px}"]}),a})(),_=(()=>{class a{}return a.\u0275fac=function(g){return new(g||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[C.ez,p.d,e.u5,s.dr]}),a})()},47634:(h,M,o)=>{o.d(M,{G:()=>n,s:()=>s});var C=o(36895),e=o(42046),O=o(63165),t=o(94650),p=o(65412);let s=(()=>{class i{constructor(r){this.dialogRef=r,this.config=new e.O,this.config.title="Void Transaction?"}onOk(){this.dialogRef.close(!0)}}return i.\u0275fac=function(r){return new(r||i)(t.Y36(p.so))},i.\u0275cmp=t.Xpm({type:i,selectors:[["POS-modal-void"]],decls:4,vars:1,consts:[[3,"config","onOk","onCancel","onClose"],[1,"fw-normal"]],template:function(r,_){1&r&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return _.onOk()})("onCancel",function(){return _.dialogRef.close(!1)})("onClose",function(){return _.dialogRef.close(!1)}),t.TgZ(1,"content")(2,"h4",1),t._uU(3,"This will erase all current data. Are you sure?"),t.qZA()()()),2&r&&t.Q6J("config",_.config)},dependencies:[O.M]}),i})(),n=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[C.ez,O.d]}),i})()},50:(h,M,o)=>{o.d(M,{M:()=>t});var C=o(67327),e=o(94650),O=o(89156);let t=(()=>{class p{constructor(n){this.httpService=n}generateNumber(n,i){return this.httpService.post(i,JSON.stringify({ID:n}))}getQuickKey(n,i){return this.httpService.post(i,JSON.stringify(n))}updateCourierList(n){return this.httpService.post(C.Wz.UpdateCourierList,JSON.stringify({name:n}))}getVarianByCode(n,i,l){return this.httpService.post(C.Wz.GetVariantByCode,{code:n,entityID:i,barcodeSerial:l,Promotion:!0})}getVariantById(n,i){return this.httpService.post(C.Wz.GetVariantByID,{id:n,entityID:i})}submitTransaction(n,i){return this.httpService.post(i,n)}getPrintTemplateID(n){return this.httpService.post(C.Wz.GetPrintTemplateID,JSON.stringify(n))}createNewContact(n,i){const l=[];return n.Group&&l.push(n.Group),this.httpService.post(C.Wz.CreateContact,{contact:n,type:i,groups:l})}getItemStock(n,i){return this.httpService.post(C.Wz.GetVariantStockByID,{id:n,entityID:i})}clearOutlet(n){return this.httpService.post("/api/TransferOrder/ClearOutlet",JSON.stringify(n))}}return p.\u0275fac=function(n){return new(n||p)(e.LFG(O.O))},p.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},23945:(h,M,o)=>{o.d(M,{O:()=>i});var C=o(90287),e=o(61135),O=o(39300),t=o(18505),p=o(94650),s=o(89156),n=o(51161);let i=(()=>{class l{constructor(_,a){this.httpService=_,this.roleService=a,this._role=new e.X(new C.Q(this.roleService)),this.role$=this._role.asObservable(),this._Data=new e.X(null),this.Data$=this._Data.asObservable().pipe((0,O.h)(m=>null!==m)),this.role=this._role.value}get Data(){return this._Data.value}pushNewValue(_){this._Data.next(_)}getStorage(_,a,m){return this.httpService.post(_,JSON.stringify({ID:a,EntityID:m})).pipe((0,t.b)(u=>this.pushNewValue(u)))}getLoadData(_){return this.httpService.post(_).pipe((0,t.b)(a=>this.pushNewValue(a)))}get pageState(){return this._pageState}set pageState(_){this._pageState=_}updateRole(_){this.role=_,this._role.next(_)}}return l.\u0275fac=function(_){return new(_||l)(p.LFG(s.O),p.LFG(n.N))},l.\u0275prov=p.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()}}]);
1
+ "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1407],{11989:(h,M,o)=>{o.d(M,{AM:()=>p});class p{}},42011:(h,M,o)=>{o.d(M,{D:()=>l,H:()=>i});var p=o(36895),e=o(94650),O=o(24006),t=o(58393),u=o(93669),s=o(65412);function n(r,_){if(1&r){const a=e.EpF();e.TgZ(0,"div",7)(1,"a",11),e.NdJ("click",function(){e.CHM(a);const g=e.oxw();return e.KtG(g.openUploadModal())}),e._UZ(2,"i",12),e.qZA()()}}let i=(()=>{class r{constructor(a){this._matDialog=a,this.onOpenUploadModal=new e.vpe,this.onAddItem=new e.vpe,this.onScanCode=new e.vpe,this.onCreateItem=new e.vpe}handleF4(){this._matDialog.openDialogs&&this._matDialog.openDialogs.length>0||this.createItem()}createItem(){this.onCreateItem.emit()}openUploadModal(){this.onOpenUploadModal.emit()}addItem(a){this.onAddItem.emit(a)}scanCode(a){this.onScanCode.emit(a)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(s.uw))},r.\u0275cmp=e.Xpm({type:r,selectors:[["POS-cart-header"]],hostBindings:function(a,m){1&a&&e.NdJ("keydown.F4",function(C){return m.handleF4(C)},!1,e.Jf7)},inputs:{cartItems:"cartItems",isUpload:"isUpload"},outputs:{onOpenUploadModal:"onOpenUploadModal",onAddItem:"onAddItem",onScanCode:"onScanCode",onCreateItem:"onCreateItem"},decls:20,vars:6,consts:[[1,"row","cart-header","border-bottom-0","g-0","justify-content-between","align-items-center","p-6"],[1,"col-auto"],[1,"input-group","barcode"],[1,"input-group-text","input-group-text"],["aria-hidden","true",1,"fa","fa-barcode"],["placeholder","Search product by name / code","requestUrl","/API/AC/GetVariantSuggestionByCodeNName","inputID","product","notFoundMessageFor","product",1,"input-left",3,"clearOnSelect","onSelect","onInputEnter"],["class","col-auto add-item",4,"ngIf"],[1,"col-auto","add-item"],["matTooltipPosition","above","matTooltip","Add Item (F4)",1,"pointer","d-block","position-relative","cart-add",3,"click"],["aria-hidden","true",1,"fa","fa-plus","fa-2x","text-success"],[1,"position-absolute","fst-italic","right-bottom","text-dark"],["matTooltipPosition","above","matTooltip","Upload Item","data-bs-toggle","modal",1,"pointer","d-block","position-relative","cart-add",3,"click"],["aria-hidden","true",1,"fa","fa-upload","fa-2x","text-success"]],template:function(a,m){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h5"),e._UZ(3,"span"),e._uU(4,"\xa0"),e.TgZ(5,"span"),e._uU(6),e.ALo(7,"sum"),e.qZA()()(),e.TgZ(8,"div",1)(9,"div",2)(10,"div",3)(11,"span"),e._UZ(12,"i",4),e.qZA()(),e.TgZ(13,"autocompleteV2",5),e.NdJ("onSelect",function(C){return m.addItem(C)})("onInputEnter",function(C){return m.scanCode(C)}),e.qZA()()(),e.YNc(14,n,3,0,"div",6),e.TgZ(15,"div",7)(16,"a",8),e.NdJ("click",function(){return m.createItem()}),e._UZ(17,"i",9),e.TgZ(18,"small",10),e._uU(19,"(F4)"),e.qZA()()()()),2&a&&(e.xp6(6),e.hij("",e.xi3(7,3,m.cartItems,"Quantity")," ITEM (S)"),e.xp6(7),e.Q6J("clearOnSelect",!0),e.xp6(1),e.Q6J("ngIf",m.isUpload))},dependencies:[p.O5,t.J,u.qU],styles:["div.row.cart-header[_ngcontent-%COMP%]{border:solid 1px #cfcfcf;border-radius:3px 3px 0 0;background:#f2f7fa;color:#222}div.row.cart-header[_ngcontent-%COMP%] .right-bottom[_ngcontent-%COMP%]{font-size:9px;right:-6px;bottom:-10px}autocompleteV2.input-left[_ngcontent-%COMP%] > mat-form-field[_ngcontent-%COMP%] > input.form-control[_ngcontent-%COMP%]{padding-left:0!important}.barcode[_ngcontent-%COMP%]{width:305px!important}.barcode[_ngcontent-%COMP%] autocompleteV2 mat-form-field input{border-left:none!important}.barcode[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:28px!important}.barcode[_ngcontent-%COMP%] autocompleteV2[_ngcontent-%COMP%]{width:267px!important}.cashier[_ngcontent-%COMP%]{width:550px;max-width:50rem;min-width:30rem}@media (max-width: 1222px){.cashier[_ngcontent-%COMP%]{width:450px}}@media (max-width: 1210px){.cashier[_ngcontent-%COMP%]{width:480px}}@media (max-width: 1092px){.cashier[_ngcontent-%COMP%]{min-width:20rem;width:400px}.barcode[_ngcontent-%COMP%]{width:260px!important;margin-left:0}.barcode[_ngcontent-%COMP%] autocompleteV2[_ngcontent-%COMP%]{width:200px!important}}@media (max-width: 991px){.cashier[_ngcontent-%COMP%]{min-width:20rem;width:430px}.barcode[_ngcontent-%COMP%]{width:280px!important;margin-left:0}.barcode[_ngcontent-%COMP%] autocompleteV2[_ngcontent-%COMP%]{width:200px!important}}"]}),r})(),l=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[p.ez,O.UX,t.Q,u.dr]}),r})()},241:(h,M,o)=>{o.d(M,{w:()=>E});var p=o(67327),e=o(77579),O=o(82722),t=o(94650),u=o(26128),s=o(36895),n=o(3848),i=o(36806),l=o(93669);function r(d,f){if(1&d&&t._UZ(0,"img",17),2&d){const c=t.oxw().$implicit;t.Q6J("src",c.ImageURLClient.indexOf("cloudinary")>-1?"https:"+c.ImageURLClient:c.ImageURLClient,t.LSH)}}function _(d,f){if(1&d&&(t.TgZ(0,"p",18),t._uU(1),t.ALo(2,"slice"),t.qZA()),2&d){const c=t.oxw().$implicit;t.xp6(1),t.Oqu(t.Dn7(2,1,c.Display,0,3))}}function a(d,f){if(1&d){const c=t.EpF();t.TgZ(0,"div",13)(1,"a",14),t.NdJ("click",function(){const k=t.CHM(c).$implicit,K=t.oxw(3);return t.KtG(K.select(k))}),t.YNc(2,r,1,1,"img",15),t.YNc(3,_,3,5,"p",16),t.TgZ(4,"small"),t._uU(5),t.ALo(6,"slice"),t.qZA()()()}if(2&d){const c=f.$implicit;t.xp6(2),t.Q6J("ngIf",c.ImageURLClient),t.xp6(1),t.Q6J("ngIf",!c.ImageURLClient),t.xp6(2),t.Oqu(t.Dn7(6,3,c.Display,0,36))}}const m=function(){return["/menu/Outlets/Master/Quick_Key_Templates/Form"]},g=function(d){return{ID:d}};function C(d,f){if(1&d&&(t.TgZ(0,"mat-tab",6)(1,"div",7)(2,"div",8),t.YNc(3,a,7,7,"div",9),t.TgZ(4,"div",10)(5,"a",11),t._UZ(6,"i",12),t.qZA()()()()()),2&d){const c=f.$implicit,P=t.oxw(2);t.Q6J("label",c.Name),t.xp6(3),t.Q6J("ngForOf",c.Items),t.xp6(2),t.Q6J("routerLink",t.DdM(4,m))("queryParams",t.VKq(5,g,P.quickKeyId))}}function y(d,f){if(1&d&&(t.TgZ(0,"mat-tab-group",4),t.YNc(1,C,7,7,"mat-tab",5),t.qZA()),2&d){const c=t.oxw();t.Q6J("disableRipple",!0)("hidden",c.subQuickKey),t.xp6(1),t.Q6J("ngForOf",c.quickKey.Groups)}}function x(d,f){if(1&d){const c=t.EpF();t.TgZ(0,"div",13)(1,"a",14),t.NdJ("click",function(){const k=t.CHM(c).$implicit,K=t.oxw(2);return t.KtG(K.selectChild(k.ID))}),t.TgZ(2,"p"),t._uU(3),t.ALo(4,"limitTo"),t.qZA(),t.TgZ(5,"small"),t._uU(6),t.ALo(7,"limitTo"),t.qZA()()()}if(2&d){const c=f.$implicit;t.xp6(3),t.Oqu(t.xi3(4,2,c.Model,3)),t.xp6(3),t.Oqu(t.xi3(7,5,c.Model,30))}}function v(d,f){if(1&d){const c=t.EpF();t.TgZ(0,"div",19)(1,"div",20),t.NdJ("click",function(){t.CHM(c);const b=t.oxw();return t.KtG(b.back())}),t.TgZ(2,"div",21),t._UZ(3,"i",22),t.qZA(),t.TgZ(4,"div",23)(5,"b"),t._uU(6),t.qZA()()(),t.TgZ(7,"div",24),t.YNc(8,x,8,8,"div",9),t.qZA()()}if(2&d){const c=t.oxw();t.xp6(6),t.hij(" ",c.subQuickKey.Name," "),t.xp6(2),t.Q6J("ngForOf",c.subQuickKey.Items)}}const D=function(d){return{OutletID:d}};function I(d,f){if(1&d&&(t.TgZ(0,"a",25)(1,"strong"),t._uU(2,"QUICK KEYS UNCONFIGURED"),t.qZA(),t._UZ(3,"i",26),t.TgZ(4,"span"),t._uU(5,"Click here to setup your Quick keys"),t.qZA()()),2&d){const c=t.oxw();t.Q6J("routerLink",t.DdM(2,m))("queryParams",t.VKq(3,D,c.outletID))}}let E=(()=>{class d{constructor(c){this._quickKeyService=c,this.destroy$=new e.x}ngOnInit(){this.initQuickey()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}initQuickey(){this._quickKeyService.Data$.pipe((0,O.R)(this.destroy$)).subscribe(c=>{this.setQuickey(c)})}setQuickey(c){if(c){let P;c.Groups&&0!==c.Groups.length&&(P=c.Groups),this.quickKey=P?c:null}}addQuickKeyItem(c){this._quickKeyService.addQuickKeyItem(c)}selectChild(c){this.addQuickKeyItem(c),this.back(),this.openNextProduct(this.NextProductID)}select(c){this.NextProductID=c.NextProductID,!c.Children||c.Children.length<1?this.selectChild(c.ItemID):1==c.Children.length?this.selectChild(c.Children[0].ID):this.subQuickKey={Items:c.Children,Name:c.Display}}openNextProduct(c){p.gT.IsNotEmpty(c)&&this.data.Groups.forEach(P=>{const b=P.Items.find(k=>k.ProductID==c);null!=b&&b.Children.length>1&&(this.NextProductID=b.NextProductID,this.subQuickKey={Items:b.Children,Name:b.Display})})}back(){delete this.subQuickKey}}return d.\u0275fac=function(c){return new(c||d)(t.Y36(u.w))},d.\u0275cmp=t.Xpm({type:d,selectors:[["pos-quick-key"]],inputs:{quickKeyId:"quickKeyId",outletID:"outletID"},decls:5,vars:4,consts:[[1,"quickKeys",3,"ngClass"],["animationDuration","0ms","class","quickKeyTabs",3,"disableRipple","hidden",4,"ngIf","ngIfElse"],["class","container",4,"ngIf"],["noQuickKey",""],["animationDuration","0ms",1,"quickKeyTabs",3,"disableRipple","hidden"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],["class","col-3 column",4,"ngFor","ngForOf"],[1,"col-3","column","add"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-solid","fa-circle-plus","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[1,"col-3","column"],[3,"click"],["class","productTab",3,"src",4,"ngIf"],["class","productTab",4,"ngIf"],[1,"productTab",3,"src"],[1,"productTab"],[1,"container"],[1,"row","g-0","border","align-items-center","variants-header","cursor",3,"click"],[1,"col-auto","border-end","py-5","px-7"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","h5"],[1,"tabItems","row","g-0"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(c,P){if(1&c&&(t.TgZ(0,"section",0),t.YNc(1,y,2,3,"mat-tab-group",1),t.YNc(2,v,9,2,"div",2),t.YNc(3,I,6,5,"ng-template",null,3,t.W1O),t.qZA()),2&c){const b=t.MAs(4);t.Q6J("ngClass",P.quickKey?"":"no-quick-key"),t.xp6(1),t.Q6J("ngIf",P.quickKey)("ngIfElse",b),t.xp6(1),t.Q6J("ngIf",P.subQuickKey)}},dependencies:[s.mk,s.sg,s.O5,n.SP,n.uX,i.yS,s.OU,l.OI],styles:['.btn-add[_ngcontent-%COMP%]{-webkit-border-radius:50%;-moz-border-radius:50%;padding:6px 10px;cursor:pointer;right:-14px;top:5px;border:solid 1px #dddddd}section.quickKeys.no-quick-key[_ngcontent-%COMP%]{background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Cashier/no-quick-key.png);background-repeat:no-repeat;height:544px;position:relative}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;width:80px;display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd}.quickKeys[_ngcontent-%COMP%] .row.g-0.border.align-items-center.variants-header.cursor[_ngcontent-%COMP%]{background:linear-gradient(to bottom,#ffffff 0%,#eeeeee 100%)}.btn-add[_ngcontent-%COMP%]{-webkit-border-radius:50%;-moz-border-radius:50%;padding:6px 10px;cursor:pointer;right:-14px;top:5px;border:solid 1px #DDDDDD}section.quickKeys.no-quick-key[_ngcontent-%COMP%]{background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Cashier/no-quick-key.png);background-repeat:no-repeat;height:544px}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%]{border-bottom:0px;display:flex;border-radius:3px;cursor:pointer}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]{background:#ffffff;background:linear-gradient(to bottom,#ffffff 0%,#eeeeee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#eeeeee",GradientType=0);height:44px;max-height:44px;overflow:hidden;color:#aaa!important;font-size:14px;text-decoration:none;font-weight:700;outline:none;text-transform:uppercase;text-align:center;min-width:25%;display:flex;justify-content:center}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{align-self:center;text-align:center}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:last-child{border-right:none}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(4n){border-right:none}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:first-child{border-left:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(-n+4){border-right:1px solid #cfcfcf;border-top:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(4n+1){border-left:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(4n+2){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(4n+3){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(4n+4){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col[_ngcontent-%COMP%]:nth-child(n+5){width:25%;flex-grow:0}.quickKeys[_ngcontent-%COMP%] .quickKeyTabs[_ngcontent-%COMP%] div.row[_ngcontent-%COMP%] > div.col.active[_ngcontent-%COMP%]{color:#268ec1!important}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%]{padding:0}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:10px;word-break:break-all}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border:solid 1px #cfcfcf}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{text-align:center;display:block;cursor:pointer}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;width:80px;display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #DDDDDD}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{height:80px;width:80px;font-size:20px;display:block;margin:0 auto;padding-top:22px;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#000;font-size:11px;display:block;margin:5px 0 0}.quickKeys[_ngcontent-%COMP%] .tabItems[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] .ion-icon[_ngcontent-%COMP%]{font-size:75px;margin:10px}.quickKeys[_ngcontent-%COMP%] .variants-header[_ngcontent-%COMP%]{background:#ffffff;background:linear-gradient(to bottom,#ffffff 0%,#eeeeee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#eeeeee",GradientType=0);color:#268ec1;cursor:pointer}.quickKeys[_ngcontent-%COMP%] .col-md-3.column.add[_ngcontent-%COMP%]{cursor:pointer}.quickKeys[_ngcontent-%COMP%] .col-md-3.column.add[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-top:10px}.quickKeys[_ngcontent-%COMP%] i.icon-col.fa.fa-xmark.text-danger[_ngcontent-%COMP%]{color:#fb404b!important;position:absolute;right:16px;top:5px}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%], .quickKeys[_ngcontent-%COMP%] a#LinkConfigureParkLayout[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:5px}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:120px;left:90px}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover, .quickKeys[_ngcontent-%COMP%] a#LinkConfigureParkLayout[_ngcontent-%COMP%]:hover{opacity:.95}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%], .quickKeys[_ngcontent-%COMP%] a#LinkConfigureParkLayout[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .quickKeys[_ngcontent-%COMP%] a#LinkConfigureParkLayout[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}.quickKeys[_ngcontent-%COMP%] a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .quickKeys[_ngcontent-%COMP%] a#LinkConfigureParkLayout[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}.quickKeys[_ngcontent-%COMP%] .row.no-gutters.border.align-items-center.variants-header.cursor[_ngcontent-%COMP%]{background:linear-gradient(to bottom,#ffffff 0%,#eeeeee 100%)}.general-information[_ngcontent-%COMP%] ol.mt-5.ml-5.pl-7[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{line-height:20px}.quickKeys[_ngcontent-%COMP%] {width:420px;position:relative}.quickKeys[_ngcontent-%COMP%] .mat-tab-header-pagination{display:none!important}.quickKeys[_ngcontent-%COMP%] .mat-tab-header{border-bottom:none}.quickKeys[_ngcontent-%COMP%] .mat-ink-bar{display:none!important}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label{height:44px;max-height:44px;overflow:hidden;padding:0!important;border-right:1px solid #cfcfcf;min-width:25%!important;flex-grow:1;flex-basis:0;font-size:14px;font-weight:700;outline:none;text-transform:uppercase;background:#ffffff;background:linear-gradient(to bottom,#ffffff 0%,#eeeeee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#eeeeee",GradientType=0);display:flex;white-space:normal!important}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label .mat-tab-label-content{white-space:normal!important;align-self:center}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(4n){border-right:none}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:first-child{border-left:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(-n+4){border-right:1px solid #cfcfcf;border-top:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(4n+1){border-left:1px solid #cfcfcf;border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(4n+2){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(4n+3){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(4n+4){border-bottom:1px solid #cfcfcf;border-right:1px solid #cfcfcf}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label:nth-child(n+5){width:25%;flex-grow:0}@media (max-width: 1092px){.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label{font-size:12px}}.quickKeys[_ngcontent-%COMP%] .mat-tab-labels .mat-tab-label-active{color:#268ec1!important;text-shadow:0px 0px 1px #268ec1!important}@media (max-width: 1210px){.quickKeys[_ngcontent-%COMP%]{width:350px}}@media (max-width: 1092px){.quickKeys[_ngcontent-%COMP%]{width:280px}.tabItems[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .tabItems[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:60px!important;height:60px!important;font-size:14px!important}.mat-tab-label[_ngcontent-%COMP%] {font-size:12px!important}#LinkConfigureQuickkey[_ngcontent-%COMP%]{left:10%!important}}']}),d})()},88441:(h,M,o)=>{o.d(M,{S:()=>n});var p=o(36895),e=o(3848),O=o(93669),t=o(26128),u=o(36806),s=o(94650);let n=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=s.oAB({type:i}),i.\u0275inj=s.cJS({providers:[t.w],imports:[p.ez,e.Nh,O.dr,u.Bz]}),i})()},26128:(h,M,o)=>{o.d(M,{w:()=>u});var p=o(61135),e=o(77579),O=o(11989),t=o(94650);let u=(()=>{class s{constructor(){this._Data=new p.X(new O.AM),this.Data$=this._Data.asObservable(),this._itemID=new e.x,this.onSelectQuickeyItem$=this._itemID.asObservable()}set EntityID(i){this._EntityID=i}set Data(i){this._Data.next(i)}addQuickKeyItem(i,l=this._EntityID){this._itemID.next({id:i,entityID:l})}}return s.\u0275fac=function(i){return new(i||s)},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()},86751:(h,M,o)=>{o.d(M,{U:()=>_,X:()=>r});var p=o(36895),e=o(24006),O=o(65412),t=o(42046),u=o(63165),s=o(93669),n=o(94650);const i=function(a){return{active:a}};function l(a,m){if(1&a){const g=n.EpF();n.TgZ(0,"div",9)(1,"div",10),n.NdJ("click",function(){const x=n.CHM(g).$implicit,v=n.oxw();return n.KtG(v.select(x))}),n.TgZ(2,"div",11)(3,"h5",12)(4,"span"),n._UZ(5,"i",13),n._uU(6),n.ALo(7,"limitTo"),n.qZA()(),n.TgZ(8,"div",14)(9,"div")(10,"span",15),n._uU(11,"VACANT"),n.qZA()()()()()()}if(2&a){const g=m.$implicit,C=n.oxw();n.xp6(2),n.Tol(n.VKq(6,i,(null==g?null:g.Name)==(null==C.selectedRegister?null:C.selectedRegister.Name))),n.xp6(4),n.hij(" ",n.xi3(7,3,g.Name,15)," ")}}let r=(()=>{class a{constructor(g,C){this.dialogRef=C,this.searchInput="",this.modalConfig=new t.O,this.Outlets=g.Entities,this.selectedRegister=g.SelectedRegister}ngOnInit(){this.modalConfig.hideClose=!0,this.modalConfig.bodyScrollable=!0,this.modalConfig.title="Choose an outlet"}select(g){this.selectedRegister=g}onOk(){this.dialogRef.close({outlet:this.selectedRegister})}}return a.\u0275fac=function(g){return new(g||a)(n.Y36(O.WI),n.Y36(O.so))},a.\u0275cmp=n.Xpm({type:a,selectors:[["POS-modal-outlet"]],decls:12,vars:7,consts:[[3,"config","onOk","onCancel","onClose"],[1,"ms-0","mb-8",2,"width","200px",3,"hidden"],[1,"input-group","mb-3"],[1,"input-group-text","txtFilter"],["aria-hidden","true",1,"fa","fa-magnifying-glass"],["type","text","placeholder","Filter by Name","aria-label","Search",1,"txtFilter","form-control","border-start-0",3,"ngModel","ngModelChange"],[1,"container","mt-8"],[1,"row",2,"width","600px !important"],["class","col-4",4,"ngFor","ngForOf"],[1,"col-4"],[1,"card","border-0",3,"click"],[1,"card-body","p-0"],[1,"card-title","mb-0"],[1,"fa","fa-circle-info","pe-1"],[1,"card-text","px-0","py-2"],[1,"idle"]],template:function(g,C){1&g&&(n.TgZ(0,"modal-material",0),n.NdJ("onOk",function(){return C.onOk()})("onCancel",function(){return C.dialogRef.close()})("onClose",function(){return C.dialogRef.close()}),n.TgZ(1,"content")(2,"div",1)(3,"div",2)(4,"span",3),n._UZ(5,"i",4),n.qZA(),n.TgZ(6,"input",5),n.NdJ("ngModelChange",function(x){return C.searchInput=x}),n.qZA()()(),n.TgZ(7,"div",6)(8,"div",7),n.YNc(9,l,12,8,"div",8),n.ALo(10,"FilterByName"),n.qZA()()(),n._UZ(11,"footer"),n.qZA()),2&g&&(n.Q6J("config",C.modalConfig),n.xp6(2),n.Q6J("hidden",C.Outlets.length<=6),n.xp6(4),n.Q6J("ngModel",C.searchInput),n.xp6(3),n.Q6J("ngForOf",n.xi3(10,4,C.Outlets,C.searchInput)))},dependencies:[p.sg,u.M,e.Fj,e.JJ,e.On,s.OI,s.bs],styles:[".bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px,#f5c6cb 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#28a745,#28a745 15px,#a2dbb0 15px,#a2dbb0 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#FCF3CF,#FCF3CF 15px,#F9E79F 15px,#F9E79F 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.col-4[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{width:180px;min-height:95px;margin-right:17px;margin-bottom:17px;position:relative}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%]{display:block;outline:0;border:1px solid #B1AAAA;border-radius:5px;cursor:pointer}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{height:30px;border-radius:4px;padding:5px 10px;color:#fff;background:#B1AAAA;overflow:hidden}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:5px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%]:hover, .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.active[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.vacant[_ngcontent-%COMP%]{background:#ffffe1;border:1px solid #89b03e}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%]:hover > h5[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.active[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.vacant[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%]{background:#89b03e}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%]:hover{border:1px solid #c9302c}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%] > h6[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%]:hover > h6[_ngcontent-%COMP%]{background:#c9302c!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%] span.alias[_ngcontent-%COMP%]{background:#c9302c}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.occupied[_ngcontent-%COMP%]:hover{background:white}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%]{border:1px solid #f6a828}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%] > h6[_ngcontent-%COMP%]{background:#f6a828!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%]:hover{border:1px solid #f6a828;background:white}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%]:hover > strong[_ngcontent-%COMP%]{background:#f6a828!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%] span.alias[_ngcontent-%COMP%]{background:#f6a828}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body.preparing[_ngcontent-%COMP%] div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:.75rem!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{height:80px;padding:15px 10px;position:relative}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;font-weight:400;font-size:.875rem;width:100%;margin-bottom:5px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{margin-top:-10px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{margin-bottom:0}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span.alias[_ngcontent-%COMP%]{text-align:center;position:absolute;bottom:0px;right:0px;width:auto;background-color:#b1aaaa;border-radius:3px;padding:2px 5px;color:#fff;display:none!important}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > .card-body[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span.idle[_ngcontent-%COMP%]{display:block;font-size:1.25rem;text-align:center}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{position:absolute;width:27px;height:28px;cursor:pointer;top:5px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#000}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:last-of-type{right:-5px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:nth-last-of-type(2){right:15px}.col-4[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{bottom:20px;right:5px;position:absolute}.col-4[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{border:1px solid!important;position:absolute;bottom:-3px;left:58px;background:#fff;border-radius:5px}"]}),a})(),_=(()=>{class a{}return a.\u0275fac=function(g){return new(g||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[p.ez,u.d,e.u5,s.dr]}),a})()},47634:(h,M,o)=>{o.d(M,{G:()=>n,s:()=>s});var p=o(36895),e=o(42046),O=o(63165),t=o(94650),u=o(65412);let s=(()=>{class i{constructor(r){this.dialogRef=r,this.config=new e.O,this.config.title="Void Transaction?"}onOk(){this.dialogRef.close(!0)}}return i.\u0275fac=function(r){return new(r||i)(t.Y36(u.so))},i.\u0275cmp=t.Xpm({type:i,selectors:[["POS-modal-void"]],decls:4,vars:1,consts:[[3,"config","onOk","onCancel","onClose"],[1,"fw-normal"]],template:function(r,_){1&r&&(t.TgZ(0,"modal-material",0),t.NdJ("onOk",function(){return _.onOk()})("onCancel",function(){return _.dialogRef.close(!1)})("onClose",function(){return _.dialogRef.close(!1)}),t.TgZ(1,"content")(2,"h4",1),t._uU(3,"This will erase all current data. Are you sure?"),t.qZA()()()),2&r&&t.Q6J("config",_.config)},dependencies:[O.M]}),i})(),n=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[p.ez,O.d]}),i})()},50:(h,M,o)=>{o.d(M,{M:()=>t});var p=o(67327),e=o(94650),O=o(89156);let t=(()=>{class u{constructor(n){this.httpService=n}generateNumber(n,i){return this.httpService.post(i,JSON.stringify({ID:n}))}getQuickKey(n,i){return this.httpService.post(i,JSON.stringify(n))}updateCourierList(n){return this.httpService.post(p.Wz.UpdateCourierList,JSON.stringify({name:n}))}getVarianByCode(n,i,l){return this.httpService.post(p.Wz.GetVariantByCode,{code:n,entityID:i,barcodeSerial:l,Promotion:!0})}getVariantBySerial(n,i){return this.httpService.post(p.Wz.GetVariantBySerial,{Serial:n,EntityID:i,Promotion:!0})}getVariantById(n,i){return this.httpService.post(p.Wz.GetVariantByID,{id:n,entityID:i})}submitTransaction(n,i){return this.httpService.post(i,n)}getPrintTemplateID(n){return this.httpService.post(p.Wz.GetPrintTemplateID,JSON.stringify(n))}createNewContact(n,i){const l=[];return n.Group&&l.push(n.Group),this.httpService.post(p.Wz.CreateContact,{contact:n,type:i,groups:l})}getItemStock(n,i){return this.httpService.post(p.Wz.GetVariantStockByID,{id:n,entityID:i})}clearOutlet(n){return this.httpService.post("/api/TransferOrder/ClearOutlet",JSON.stringify(n))}}return u.\u0275fac=function(n){return new(n||u)(e.LFG(O.O))},u.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()},23945:(h,M,o)=>{o.d(M,{O:()=>i});var p=o(90287),e=o(61135),O=o(39300),t=o(18505),u=o(94650),s=o(89156),n=o(51161);let i=(()=>{class l{constructor(_,a){this.httpService=_,this.roleService=a,this._role=new e.X(new p.Q(this.roleService)),this.role$=this._role.asObservable(),this._Data=new e.X(null),this.Data$=this._Data.asObservable().pipe((0,O.h)(m=>null!==m)),this.role=this._role.value}get Data(){return this._Data.value}pushNewValue(_){this._Data.next(_)}getStorage(_,a,m){return this.httpService.post(_,JSON.stringify({ID:a,EntityID:m})).pipe((0,t.b)(C=>this.pushNewValue(C)))}getLoadData(_){return this.httpService.post(_).pipe((0,t.b)(a=>this.pushNewValue(a)))}get pageState(){return this._pageState}set pageState(_){this._pageState=_}updateRole(_){this.role=_,this._role.next(_)}}return l.\u0275fac=function(_){return new(_||l)(u.LFG(s.O),u.LFG(n.N))},l.\u0275prov=u.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()}}]);