dealpos 12.6.3 → 12.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/POS/{1001.fae3f1663088c0ea.js → 1001.19ab427a23469205.js} +1 -1
  2. package/POS/2143.f0c90443588ab396.js +1 -0
  3. package/POS/{329.1d15351ddd582087.js → 329.65f7efcd24f4564b.js} +1 -1
  4. package/POS/4192.ff0eba9c5a624d9f.js +1 -0
  5. package/POS/4499.f6b9cd91f512ac41.js +1 -0
  6. package/POS/4971.76385ff752fec4be.js +1 -0
  7. package/POS/53.694f28b8eb4e352f.js +1 -0
  8. package/POS/5774.a42867a3fc7a2173.js +1 -0
  9. package/POS/5880.0f1b95b54ab183a7.js +1 -0
  10. package/POS/7074.0f83b2bef25265bc.js +1 -0
  11. package/POS/7893.b31e9e3cfae85512.js +1 -0
  12. package/POS/844.6b02c0af9d7c6313.js +1 -0
  13. package/POS/9484.76a1e3ce331e411e.js +1 -0
  14. package/POS/9856.39d796a777eeef7e.js +1 -0
  15. package/POS/{9967.66de2be7c715d6f2.js → 9967.474c1fa518199a69.js} +1 -1
  16. package/POS/{common.5bf638d3b9dad051.js → common.b81e2a2dc67bb5fa.js} +1 -1
  17. package/POS/index.html +2 -2
  18. package/POS/{main.78d0cabcdf633fb6.js → main.2c59ce3c5b7d377d.js} +1 -1
  19. package/POS/runtime.1cc68eb3ddd36f0e.js +1 -0
  20. package/package.json +1 -1
  21. package/POS/2143.04cb248fc42af4ce.js +0 -1
  22. package/POS/2557.bcf05f02fb128112.js +0 -1
  23. package/POS/4192.f0ae819bca7798d0.js +0 -1
  24. package/POS/4499.786a7e096bf872d2.js +0 -1
  25. package/POS/4971.5db81df4e29c6625.js +0 -1
  26. package/POS/53.285c18b0043e1d43.js +0 -1
  27. package/POS/5774.9528a61ed9b62555.js +0 -1
  28. package/POS/5880.8693c5e5fea50d63.js +0 -1
  29. package/POS/7074.e8b373e5f97ef43b.js +0 -1
  30. package/POS/7893.fa446ff6d9c96667.js +0 -1
  31. package/POS/844.8ca271c2a4b720c5.js +0 -1
  32. package/POS/9484.bb029211f38bb9d5.js +0 -1
  33. package/POS/9856.f9d4b1d4fd772c2c.js +0 -1
  34. package/POS/runtime.b8932269b284018a.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1001],{41001:(_,g,i)=>{i.d(g,{e:()=>d});var e=i(81180),P=i(86864),t=i(41927),u=i(99397),n=i(65879),A=i(27874),o=i(10459),r=i(64190),s=i(82430),I=i(4508);let d=(()=>{var l;class S{constructor(a,c,p,y,v){(0,e.Z)(this,"httpService",void 0),(0,e.Z)(this,"cookieService",void 0),(0,e.Z)(this,"router",void 0),(0,e.Z)(this,"roleService",void 0),(0,e.Z)(this,"intercomService",void 0),(0,e.Z)(this,"role",[]),(0,e.Z)(this,"_returnUrl",void 0),(0,e.Z)(this,"_loginResponse",void 0),(0,e.Z)(this,"_jwtToken",void 0),this.httpService=a,this.cookieService=c,this.router=p,this.roleService=y,this.intercomService=v}set returnUrl(a){this._returnUrl=a}get returnUrl(){return this._returnUrl}login(a){return this.httpService.post("/api/Login/Web",a).pipe((0,u.b)(c=>{this._loginResponse=c,"geo"==c.Type||"totp"==c.Type||this.saveLoginConfigToStorage(c)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}forgotPassword(){}resetPassword(){}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("MenuPageData"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post(t.W.RefreshToken,{}).subscribe(a=>{localStorage.removeItem("Token"),localStorage.setItem("Token",a.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){const a=localStorage.getItem("Token");if(a){let c=P.g.parseJwt(a);const p=this.convertUnixTimesTamp(c.exp),y=new Date;if(p.getTime()-y.getTime()>0)return!1}return!0}isInRole(a){a.forEach(c=>c(this.role))}convertUnixTimesTamp(a){return new Date(1e3*a)}saveLoginConfigToStorage(a){localStorage.setItem("MenuPageData",JSON.stringify(a?.Menu)),localStorage.setItem("Token",a?.Token),localStorage.setItem("TinyMCEPlugins",a?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(a?.Intercom),localStorage.setItem("CloudinaryConfig",a?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",a?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(a?.SubscriptionStatus));const c=this.getParseToken();localStorage.setItem("NotificationOutletID",c?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let a=localStorage.getItem("Token");return a&&!this._jwtToken&&(this._jwtToken=P.g.parseJwt(a)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let a=localStorage.getItem("SubscriptionStatus");return a?parseInt(a):null}}return l=S,(0,e.Z)(S,"\u0275fac",function(a){return new(a||l)(n.LFG(A.O),n.LFG(o.N),n.LFG(r.F0),n.LFG(s.N),n.LFG(I.f))}),(0,e.Z)(S,"\u0275prov",n.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})),S})()},4508:(_,g,i)=>{i.d(g,{f:()=>u});var e=i(81180),P=i(86864),t=i(65879);let u=(()=>{var n;class A{constructor(){}inititalizeIntercom(){let r=this.getFromLocalStorage();r?.Enabled&&window.Intercom("boot",{app_id:"xv1oomgl",name:r.Name,email:r.Email,created_at:r.Created,user_hash:r.Hash})}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(r){localStorage.setItem("Intercom",JSON.stringify(r))}getFromLocalStorage(){const r=localStorage.getItem("Intercom");return JSON.parse(r)}hideLauncher(){let r=this.getFromLocalStorage();r?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!0}),r.hide_default_launcher=!0,this.updateLocalStorage(r))}showLauncher(){let r=this.getFromLocalStorage();r?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!1}),r.hide_default_launcher=!1,this.updateLocalStorage(r))}isHideLauncher(){let r=this.getFromLocalStorage();return!P.g.IsEmpty(r?.hide_default_launcher)&&r?.hide_default_launcher}}return n=A,(0,e.Z)(A,"\u0275fac",function(r){return new(r||n)}),(0,e.Z)(A,"\u0275prov",t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})),A})()},41927:(_,g,i)=>{i.d(g,{W:()=>P});var e=i(81180);let P=(()=>{class t{}return(0,e.Z)(t,"GetPOSStorage","/API/POS/LoadPOS"),(0,e.Z)(t,"GenerateNumber","/API/POS/GenerateNumber"),(0,e.Z)(t,"RefreshToken","/API/Authentication/RefreshToken"),(0,e.Z)(t,"RemovePark","/API/POS/RemovePark"),(0,e.Z)(t,"VoidPark","/API/POS/VoidPark"),(0,e.Z)(t,"ReturInvoice","/API/POS/ReturInvoice"),(0,e.Z)(t,"BuyReturInvoice","/API/Buy/GetSupplierInvoiceRetur"),(0,e.Z)(t,"GetPOSDataByID","/API/POS/GetPOSDataByID"),(0,e.Z)(t,"MergePark","/API/POS/MergePark"),(0,e.Z)(t,"GetPark","/API/POS/GetParkByEntityID"),(0,e.Z)(t,"GetOutStanding","/API/POS/GetOutStandingByEntityID"),(0,e.Z)(t,"GetVacant","/API/POS/GetParkInfoByEntityID"),(0,e.Z)(t,"RecordOpeningCash","/API/POS/RecordOpeningCash"),(0,e.Z)(t,"OpenRegister","/API/POS/LoadRegister"),(0,e.Z)(t,"GetRegisterInfo","/API/POS/GetRegisterInfo"),(0,e.Z)(t,"GetVariantByID","/API/catalog/variant/GetVariantByID"),(0,e.Z)(t,"GetVariantFormModelByID","/API/catalog/variant/GetVariantFormModelById"),(0,e.Z)(t,"GetVariantByCode","/API/catalog/variant/GetVariantByCode"),(0,e.Z)(t,"UpdateProductImage","/API/catalog/product/UpdateProductImageUrl"),(0,e.Z)(t,"GetVariantWithSameProductID","/API/catalog/variant/GetVariantWithSameProductID"),(0,e.Z)(t,"GetVariantInfoModelById","/API/catalog/variant/GetVariantInfoModelById"),(0,e.Z)(t,"GetStockLogConsistency","/API/Inventory/GetStockLogConsistency"),(0,e.Z)(t,"GetStockLogConsistencyByDate","/API/Inventory/GetStockLogConsistencyByDate"),(0,e.Z)(t,"GetSalesHistory","/Api/catalog/product/GetSalesHistory"),(0,e.Z)(t,"GetPurchaseHistory","/API/catalog/product/GetPurchaseHistory"),(0,e.Z)(t,"GetParkedHistory","/API/catalog/product/GetParkOrder"),(0,e.Z)(t,"CreateVariant","/API/catalog/variant/CreateVariant"),(0,e.Z)(t,"SendInvoiceEmail","/API/Transaction/SendEmail"),(0,e.Z)(t,"SendInvoiceWhatsapp","/API/receipt/Whatsapp"),(0,e.Z)(t,"GetCustomerPrivilegeByID","/API/Contact/GetPrivilegeByID"),(0,e.Z)(t,"GetCustomerByCode","/API/Contact/GetByCode"),(0,e.Z)(t,"GetCustomerCode","/API/Contact/GetCode"),(0,e.Z)(t,"GetCustomerEmailByID","/API/Contact/GetEmailByID"),(0,e.Z)(t,"GetPriceBookByVariantID","/API/catalog/variant/GetPriceBookByVariantID"),(0,e.Z)(t,"GetPackageID","/API/POS/GetPackageID"),(0,e.Z)(t,"InternalEksternalCoupon","/API/PromotionCoupon/AuthorizeByType"),(0,e.Z)(t,"Coupon","/API/PromotionCoupon/Authorize"),(0,e.Z)(t,"Invoice","/api/Invoice/InvoiceInfo"),(0,e.Z)(t,"OrdersLoader","/API/OrdersLoader/CustomerInvoice"),(0,e.Z)(t,"Orders","/api/Invoice/CustomerInvoice"),(0,e.Z)(t,"PaymentReceivedLoader","/API/PaymentLoader/DailyPaymentLoader"),(0,e.Z)(t,"PaymentReceived","/API/Payment/DailyPaymentReceived"),(0,e.Z)(t,"CheckOutUrl","/API/POS/SubmitOrder"),(0,e.Z)(t,"CheckOutUrlBuy","/API/Buy/SubmitOrder"),(0,e.Z)(t,"Scanner","/API/AdjustmentLoader/StockTakeByCSV"),(0,e.Z)(t,"AdjustmentLoader","/API/AdjustmentLoader/GetInventoryAdjustmentList"),(0,e.Z)(t,"Adjustment","/API/Adjustment/GetInventoryAdjustmentList"),(0,e.Z)(t,"AdjustmentStorage","/API/Adjustment/GetStorage"),(0,e.Z)(t,"GetNumberAdjustment","/API/Adjustment/GenerateNumber"),(0,e.Z)(t,"GetAccountReceivableLoader","/API/DebtLoader/AccountsReceiveableSummary"),(0,e.Z)(t,"GetAccountReceivableDetailLoader","/API/DebtLoader/AccountsReceiveableDetails"),(0,e.Z)(t,"GetAccountReceivableSummary","/API/Debt/AccountsReceiveableSummary"),(0,e.Z)(t,"getAccountreceivableDetail","/API/Debt/AccountsReceiveableDetails"),(0,e.Z)(t,"ProductLibrarySuggestion","/API/AC/GetVariantSuggestionByCodeNName"),(0,e.Z)(t,"VoidInvoiceLoader","/API/OrdersLoader/VoidInvoiceLoader"),(0,e.Z)(t,"VoidInvoice","/api/Invoice/VoidInvoiceList"),(0,e.Z)(t,"WaitingPatientList","/API/Treatment/WaitingPatientList"),(0,e.Z)(t,"CheckOutTreatmentByListID","/API/Treatment/CheckOutByListID"),(0,e.Z)(t,"TreatmentRegisterLoader","/API/TreatmentLoader/Registration"),(0,e.Z)(t,"TreatmentRegisterOutletInfo","/API/Treatment/RegistrationGetOutletInfo"),(0,e.Z)(t,"TreatmentCustomerInfo","/API/Treatment/RegistrationGetCustomerInfo"),(0,e.Z)(t,"SubmitTreatementRegistration","/API/Treatment/RegistrationSubmit"),(0,e.Z)(t,"SalesOrderMini","/API/Print/SalesOrderMini"),(0,e.Z)(t,"ProductLoader","/API/catalog/ProductLoader/ProductList"),(0,e.Z)(t,"ProductList","/API/catalog/product/GetProductList"),(0,e.Z)(t,"DeleteProductList","/API/catalog/product/DeleteProductList"),(0,e.Z)(t,"DeleteVariantInfo","/API/catalog/variant/DeleteVariantInfo"),(0,e.Z)(t,"ProductForm","/API/catalog/ProductLoader/ProductForm"),(0,e.Z)(t,"SubmitProduct","/API/catalog/product/SubmitProduct"),(0,e.Z)(t,"ProductInfo","/API/catalog/ProductLoader/ProductInfoInitial"),(0,e.Z)(t,"CreateCategory","/API/catalog/category/CreateProductCategory"),(0,e.Z)(t,"CreateBrand","/API/catalog/product/CreateBrand"),(0,e.Z)(t,"CreateTag","/API/catalog/product/CreateTags"),(0,e.Z)(t,"CreateUOM","/API/catalog/product/CreateProductUOM"),(0,e.Z)(t,"VariantInfo","/API/catalog/variant/GetVariantInfoModelById"),(0,e.Z)(t,"VariantFormData","/API/catalog/variant/GetVariantFormInitialData"),(0,e.Z)(t,"VariantForm","/API/catalog/variant/GetVariantFormModelById"),(0,e.Z)(t,"SubmitVariant","/API/catalog/variant/SubmitVariant"),(0,e.Z)(t,"CreateContact","/API/Contact/Create"),(0,e.Z)(t,"Closure","/API/POS/Closure"),(0,e.Z)(t,"SyncProducts","/API/POSSync/Products"),(0,e.Z)(t,"SyncCustomer","/API/POSSync/Customers"),(0,e.Z)(t,"SynOutletPrice","/API/POSSync/OutletPrices"),(0,e.Z)(t,"SynOutlet","/API/POSSync/Outlets"),(0,e.Z)(t,"SyncPark","/API/POSSync/Parks"),(0,e.Z)(t,"GetRewardByPromotionID","/API/POS/GetRewardByPromotionID"),(0,e.Z)(t,"GetListPromotion","/API/POS/Promotion"),(0,e.Z)(t,"GenerateGopayQrCode","/API/Gopay/GenerateQR"),(0,e.Z)(t,"GopayVerifyPayment","/API/Gopay/VerifyQR"),(0,e.Z)(t,"GenerateBcaQrCode","/API/BCA/GenerateQR"),(0,e.Z)(t,"BcaVerifyPayment","/API/BCA/VerifyQR"),(0,e.Z)(t,"InvoiceA4","/API/Print/Invoice"),(0,e.Z)(t,"UploadCsv","/API/POS/UploadCsv"),(0,e.Z)(t,"UploadCsvBuy","/API/Buy/UploadCsv"),(0,e.Z)(t,"GenerateCommission","/API/Transaction/GetCommission"),(0,e.Z)(t,"InvoiceInfo","/api/Invoice/InvoiceInfo"),(0,e.Z)(t,"GenerateLink","/API/PayNow/GenerateLink"),(0,e.Z)(t,"LoadFormBuy","/API/Buy2/Load"),(0,e.Z)(t,"BuyGetOutletInfo","/API/Buy2/GetOutletInfo"),(0,e.Z)(t,"BuyGenerateNumber","/API/Buy/GenerateNumber"),(0,e.Z)(t,"BuyGetDataByID","/API/Buy2/GetDataByID"),(0,e.Z)(t,"GetQuickKey","/API/catalog/product/GetQuickKey"),(0,e.Z)(t,"GetPrintTemplateID","/API/Buy/GetPrintTemplateID"),(0,e.Z)(t,"GetVariantStockByID","/API/catalog/variant/GetInventoryByVariantID"),(0,e.Z)(t,"GetSupplierInvoice","/API/Buy/GetSupplierInvoiceRetur"),(0,e.Z)(t,"GetSupplierDTO","/API/Contact/GetSupplierDTO"),(0,e.Z)(t,"LoadFormDelivery","/API/TransferOrderLoader/LoadForm"),(0,e.Z)(t,"DeliveryGenerateNumber","/API/TransferOrder/GenerateNumber"),(0,e.Z)(t,"UpdateCourierList","/API/TransferOrder/UpdateCourierList"),(0,e.Z)(t,"SubmitOutletDelivery","/API/TransferOrder/SubmitOrder"),(0,e.Z)(t,"ClearOutlet","/API/TransferOrder/ClearOutlet"),(0,e.Z)(t,"PaymentListSorting","/API/Setup/Payment/SortPaymentMethod"),(0,e.Z)(t,"TaxListSorting","/API/Setup/Payment/SortTax"),(0,e.Z)(t,"LoadFormEstimate","/API/Estimate/LoadForm"),(0,e.Z)(t,"EstimateGenerateNumber","/API/Estimate/GenerateNumber"),(0,e.Z)(t,"SubmitEstimate","/API/Estimate/SubmitOrder"),(0,e.Z)(t,"LoadFormAdjustment","/API/Adjustment/LoadForm"),(0,e.Z)(t,"AdjustmentGenerateNumber","/API/Adjustment/GenerateNumber"),(0,e.Z)(t,"SubmitAdjustment","/API/Adjustment/SubmitOrder"),(0,e.Z)(t,"ForecastData","Inventory/Daystozero"),(0,e.Z)(t,"ForecastLoader","InventoryLoader/Daystozero"),(0,e.Z)(t,"ValidateInventory","/api/inventory/GetByListGuidFromCart"),(0,e.Z)(t,"UsageActivities","Setup/DeveloperSpace/API/Activity"),(0,e.Z)(t,"GetVariantSerialPagedLoader","Catalog/SerialLoader/GetVariantSerialPagedLoader"),(0,e.Z)(t,"GetVariantSerialPagination","Catalog/Serial/GetVariantSerialPagination"),(0,e.Z)(t,"SerialInfo","Catalog/Serial/SerialInfo"),(0,e.Z)(t,"GetVariantSerialFormLoader","/api/Catalog/SerialLoader/GetVariantSerialFormLoader"),(0,e.Z)(t,"GetCountVariantSerial","/api/Catalog/Serial/GetCountVariantSerial"),(0,e.Z)(t,"AddVariantSerial","/api/Catalog/Serial/AddVariantSerial"),(0,e.Z)(t,"EditSerial","/api/Catalog/Serial/EditSerial"),(0,e.Z)(t,"GetVariantSerialByListVariantID","/api/Catalog/Serial/GetVariantSerialByListVariantID"),(0,e.Z)(t,"StockAvailableSerial","/api/Catalog/Serial/StockAvailableSerial"),(0,e.Z)(t,"GetVariantSerialByVariantID","/api/Catalog/Serial/GetVariantSerialByVariantID"),(0,e.Z)(t,"GetVariantSerial","/api/Catalog/Serial/GetVariantSerial"),(0,e.Z)(t,"GetVariantBySerial","/api/catalog/serial/GetVariantbySerial"),t})()},10459:(_,g,i)=>{i.d(g,{N:()=>t});var e=i(65879),P=i(96814);let t=(()=>{var u;class n{constructor(o,r){this.document=o,this.platformId=r,this.documentIsAccessible=(0,P.NF)(this.platformId)}static getCookieRegExp(o){const r=o.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+r+"|;\\s*"+r+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(o){try{return decodeURIComponent(o)}catch{return o}}check(o){return!!this.documentIsAccessible&&(o=encodeURIComponent(o),n.getCookieRegExp(o).test(this.document.cookie))}get(o){if(this.documentIsAccessible&&this.check(o)){o=encodeURIComponent(o);const s=n.getCookieRegExp(o).exec(this.document.cookie);return s[1]?n.safeDecodeURIComponent(s[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const o={},r=this.document;return r.cookie&&""!==r.cookie&&r.cookie.split(";").forEach(s=>{const[I,d]=s.split("=");o[n.safeDecodeURIComponent(I.replace(/^ /,""))]=n.safeDecodeURIComponent(d)}),o}set(o,r,s,I,d,l,S){if(!this.documentIsAccessible)return;if("number"==typeof s||s instanceof Date||I||d||l||S)return void this.set(o,r,{expires:s,path:I,domain:d,secure:l,sameSite:S||"Lax"});let m=encodeURIComponent(o)+"="+encodeURIComponent(r)+";";const a=s||{};a.expires&&(m+="number"==typeof a.expires?"expires="+new Date((new Date).getTime()+1e3*a.expires*60*60*24).toUTCString()+";":"expires="+a.expires.toUTCString()+";"),a.path&&(m+="path="+a.path+";"),a.domain&&(m+="domain="+a.domain+";"),!1===a.secure&&"None"===a.sameSite&&(a.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${o} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),a.secure&&(m+="secure;"),a.sameSite||(a.sameSite="Lax"),m+="sameSite="+a.sameSite+";",this.document.cookie=m}delete(o,r,s,I,d="Lax"){this.documentIsAccessible&&this.set(o,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:r,domain:s,secure:I,sameSite:d})}deleteAll(o,r,s,I="Lax"){if(!this.documentIsAccessible)return;const d=this.getAll();for(const l in d)d.hasOwnProperty(l)&&this.delete(l,o,r,s,I)}}return(u=n).\u0275fac=function(o){return new(o||u)(e.LFG(P.K0),e.LFG(e.Lbi))},u.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),n})()}}]);
1
+ "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1001],{41001:(_,g,i)=>{i.d(g,{e:()=>d});var e=i(81180),P=i(86864),t=i(41927),u=i(99397),n=i(65879),A=i(27874),o=i(10459),r=i(64190),s=i(82430),I=i(4508);let d=(()=>{var l;class S{constructor(a,c,p,y,v){(0,e.Z)(this,"httpService",void 0),(0,e.Z)(this,"cookieService",void 0),(0,e.Z)(this,"router",void 0),(0,e.Z)(this,"roleService",void 0),(0,e.Z)(this,"intercomService",void 0),(0,e.Z)(this,"role",[]),(0,e.Z)(this,"_returnUrl",void 0),(0,e.Z)(this,"_loginResponse",void 0),(0,e.Z)(this,"_jwtToken",void 0),this.httpService=a,this.cookieService=c,this.router=p,this.roleService=y,this.intercomService=v}set returnUrl(a){this._returnUrl=a}get returnUrl(){return this._returnUrl}login(a){return this.httpService.post("/api/Login/Web",a).pipe((0,u.b)(c=>{this._loginResponse=c,"geo"==c.Type||"totp"==c.Type||this.saveLoginConfigToStorage(c)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}forgotPassword(){}resetPassword(){}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("MenuPageData"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post(t.W.RefreshToken,{}).subscribe(a=>{localStorage.removeItem("Token"),localStorage.setItem("Token",a.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){const a=localStorage.getItem("Token");if(a){let c=P.g.parseJwt(a);const p=this.convertUnixTimesTamp(c.exp),y=new Date;if(p.getTime()-y.getTime()>0)return!1}return!0}isInRole(a){a.forEach(c=>c(this.role))}convertUnixTimesTamp(a){return new Date(1e3*a)}saveLoginConfigToStorage(a){localStorage.setItem("MenuPageData",JSON.stringify(a?.Menu)),localStorage.setItem("Token",a?.Token),localStorage.setItem("TinyMCEPlugins",a?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(a?.Intercom),localStorage.setItem("CloudinaryConfig",a?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",a?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(a?.SubscriptionStatus));const c=this.getParseToken();localStorage.setItem("NotificationOutletID",c?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let a=localStorage.getItem("Token");return a&&!this._jwtToken&&(this._jwtToken=P.g.parseJwt(a)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let a=localStorage.getItem("SubscriptionStatus");return a?parseInt(a):null}}return l=S,(0,e.Z)(S,"\u0275fac",function(a){return new(a||l)(n.LFG(A.O),n.LFG(o.N),n.LFG(r.F0),n.LFG(s.N),n.LFG(I.f))}),(0,e.Z)(S,"\u0275prov",n.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})),S})()},4508:(_,g,i)=>{i.d(g,{f:()=>u});var e=i(81180),P=i(86864),t=i(65879);let u=(()=>{var n;class A{constructor(){}inititalizeIntercom(){let r=this.getFromLocalStorage();r?.Enabled&&window.Intercom("boot",{app_id:"xv1oomgl",name:r.Name,email:r.Email,created_at:r.Created,user_hash:r.Hash})}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(r){localStorage.setItem("Intercom",JSON.stringify(r))}getFromLocalStorage(){const r=localStorage.getItem("Intercom");return JSON.parse(r)}hideLauncher(){let r=this.getFromLocalStorage();r?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!0}),r.hide_default_launcher=!0,this.updateLocalStorage(r))}showLauncher(){let r=this.getFromLocalStorage();r?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!1}),r.hide_default_launcher=!1,this.updateLocalStorage(r))}isHideLauncher(){let r=this.getFromLocalStorage();return!P.g.IsEmpty(r?.hide_default_launcher)&&r?.hide_default_launcher}}return n=A,(0,e.Z)(A,"\u0275fac",function(r){return new(r||n)}),(0,e.Z)(A,"\u0275prov",t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})),A})()},41927:(_,g,i)=>{i.d(g,{W:()=>P});var e=i(81180);let P=(()=>{class t{}return(0,e.Z)(t,"GetPOSStorage","/API/POS/LoadPOS"),(0,e.Z)(t,"GenerateNumber","/API/POS/GenerateNumber"),(0,e.Z)(t,"RefreshToken","/API/Authentication/RefreshToken"),(0,e.Z)(t,"RemovePark","/API/POS/RemovePark"),(0,e.Z)(t,"VoidPark","/API/POS/VoidPark"),(0,e.Z)(t,"ReturInvoice","/API/POS/ReturInvoice"),(0,e.Z)(t,"BuyReturInvoice","/API/Buy/GetSupplierInvoiceRetur"),(0,e.Z)(t,"GetPOSDataByID","/API/POS/GetPOSDataByID"),(0,e.Z)(t,"MergePark","/API/POS/MergePark"),(0,e.Z)(t,"GetPark","/API/POS/GetParkByEntityID"),(0,e.Z)(t,"GetOutStanding","/API/POS/GetOutStandingByEntityID"),(0,e.Z)(t,"GetVacant","/API/POS/GetParkInfoByEntityID"),(0,e.Z)(t,"RecordOpeningCash","/API/POS/RecordOpeningCash"),(0,e.Z)(t,"OpenRegister","/API/POS/LoadRegister"),(0,e.Z)(t,"GetRegisterInfo","/API/POS/GetRegisterInfo"),(0,e.Z)(t,"GetVariantByID","/API/catalog/variant/GetVariantByID"),(0,e.Z)(t,"GetVariantFormModelByID","/API/catalog/variant/GetVariantFormModelById"),(0,e.Z)(t,"GetVariantByCode","/API/catalog/variant/GetVariantByCode"),(0,e.Z)(t,"UpdateProductImage","/API/catalog/product/UpdateProductImageUrl"),(0,e.Z)(t,"GetVariantWithSameProductID","/API/catalog/variant/GetVariantWithSameProductID"),(0,e.Z)(t,"GetVariantInfoModelById","/API/catalog/variant/GetVariantInfoModelById"),(0,e.Z)(t,"GetStockLogConsistency","/API/Inventory/GetStockLogConsistency"),(0,e.Z)(t,"GetStockLogConsistencyByDate","/API/Inventory/GetStockLogConsistencyByDate"),(0,e.Z)(t,"GetSalesHistory","/Api/catalog/product/GetSalesHistory"),(0,e.Z)(t,"GetPurchaseHistory","/API/catalog/product/GetPurchaseHistory"),(0,e.Z)(t,"GetParkedHistory","/API/catalog/product/GetParkOrder"),(0,e.Z)(t,"CreateVariant","/API/catalog/variant/CreateVariant"),(0,e.Z)(t,"SendInvoiceEmail","/API/Transaction/SendEmail"),(0,e.Z)(t,"SendInvoiceWhatsapp","/API/receipt/Whatsapp"),(0,e.Z)(t,"GetCustomerPrivilegeByID","/API/Contact/GetPrivilegeByID"),(0,e.Z)(t,"GetCustomerByCode","/API/Contact/GetByCode"),(0,e.Z)(t,"GetCustomerCode","/API/Contact/GetCode"),(0,e.Z)(t,"GetCustomerEmailByID","/API/Contact/GetEmailByID"),(0,e.Z)(t,"GetPriceBookByVariantID","/API/catalog/variant/GetPriceBookByVariantID"),(0,e.Z)(t,"GetPackageID","/API/POS/GetPackageID"),(0,e.Z)(t,"InternalEksternalCoupon","/API/PromotionCoupon/AuthorizeByType"),(0,e.Z)(t,"Coupon","/API/PromotionCoupon/Authorize"),(0,e.Z)(t,"Invoice","/api/Invoice/InvoiceInfo"),(0,e.Z)(t,"OrdersLoader","/API/OrdersLoader/CustomerInvoice"),(0,e.Z)(t,"Orders","/api/Invoice/CustomerInvoice"),(0,e.Z)(t,"PaymentReceivedLoader","/API/PaymentLoader/DailyPaymentLoader"),(0,e.Z)(t,"PaymentReceived","/API/Payment/DailyPaymentReceived"),(0,e.Z)(t,"CheckOutUrl","/API/POS/SubmitOrder"),(0,e.Z)(t,"CheckOutUrlBuy","/API/Buy/SubmitOrder"),(0,e.Z)(t,"Scanner","/API/AdjustmentLoader/StockTakeByCSV"),(0,e.Z)(t,"AdjustmentLoader","/API/AdjustmentLoader/GetInventoryAdjustmentList"),(0,e.Z)(t,"Adjustment","/API/Adjustment/GetInventoryAdjustmentList"),(0,e.Z)(t,"AdjustmentStorage","/API/Adjustment/GetStorage"),(0,e.Z)(t,"GetNumberAdjustment","/API/Adjustment/GenerateNumber"),(0,e.Z)(t,"GetAccountReceivableLoader","/API/DebtLoader/AccountsReceiveableSummary"),(0,e.Z)(t,"GetAccountReceivableDetailLoader","/API/DebtLoader/AccountsReceiveableDetails"),(0,e.Z)(t,"GetAccountReceivableSummary","/API/Debt/AccountsReceiveableSummary"),(0,e.Z)(t,"getAccountreceivableDetail","/API/Debt/AccountsReceiveableDetails"),(0,e.Z)(t,"ProductLibrarySuggestion","/API/AC/GetVariantSuggestionByCodeNName"),(0,e.Z)(t,"VoidInvoiceLoader","/API/OrdersLoader/VoidInvoiceLoader"),(0,e.Z)(t,"VoidInvoice","/api/Invoice/VoidInvoiceList"),(0,e.Z)(t,"WaitingPatientList","/API/Treatment/WaitingPatientList"),(0,e.Z)(t,"CheckOutTreatmentByListID","/API/Treatment/CheckOutByListID"),(0,e.Z)(t,"TreatmentRegisterLoader","/API/TreatmentLoader/Registration"),(0,e.Z)(t,"TreatmentRegisterOutletInfo","/API/Treatment/RegistrationGetOutletInfo"),(0,e.Z)(t,"TreatmentCustomerInfo","/API/Treatment/RegistrationGetCustomerInfo"),(0,e.Z)(t,"SubmitTreatementRegistration","/API/Treatment/RegistrationSubmit"),(0,e.Z)(t,"SalesOrderMini","/API/Print/SalesOrderMini"),(0,e.Z)(t,"ProductLoader","/API/catalog/ProductLoader/ProductList"),(0,e.Z)(t,"ProductList","/API/catalog/product/GetProductList"),(0,e.Z)(t,"DeleteProductList","/API/catalog/product/DeleteProductList"),(0,e.Z)(t,"DeleteVariantInfo","/API/catalog/variant/DeleteVariantInfo"),(0,e.Z)(t,"ProductForm","/API/catalog/ProductLoader/ProductForm"),(0,e.Z)(t,"SubmitProduct","/API/catalog/product/SubmitProduct"),(0,e.Z)(t,"ProductInfo","/API/catalog/ProductLoader/ProductInfoInitial"),(0,e.Z)(t,"CreateCategory","/API/catalog/category/CreateProductCategory"),(0,e.Z)(t,"CreateBrand","/API/catalog/product/CreateBrand"),(0,e.Z)(t,"CreateTag","/API/catalog/product/CreateTags"),(0,e.Z)(t,"CreateUOM","/API/catalog/product/CreateProductUOM"),(0,e.Z)(t,"VariantInfo","/API/catalog/variant/GetVariantInfoModelById"),(0,e.Z)(t,"VariantFormData","/API/catalog/variant/GetVariantFormInitialData"),(0,e.Z)(t,"VariantForm","/API/catalog/variant/GetVariantFormModelById"),(0,e.Z)(t,"SubmitVariant","/API/catalog/variant/SubmitVariant"),(0,e.Z)(t,"CreateContact","/API/Contact/Create"),(0,e.Z)(t,"Closure","/API/POS/Closure"),(0,e.Z)(t,"SyncProducts","/API/POSSync/Products"),(0,e.Z)(t,"SyncCustomer","/API/POSSync/Customers"),(0,e.Z)(t,"SynOutletPrice","/API/POSSync/OutletPrices"),(0,e.Z)(t,"SynOutlet","/API/POSSync/Outlets"),(0,e.Z)(t,"SyncPark","/API/POSSync/Parks"),(0,e.Z)(t,"GetRewardByPromotionID","/API/POS/GetRewardByPromotionID"),(0,e.Z)(t,"GetListPromotion","/API/POS/Promotion"),(0,e.Z)(t,"GenerateGopayQrCode","/API/Gopay/GenerateQR"),(0,e.Z)(t,"GopayVerifyPayment","/API/Gopay/VerifyQR"),(0,e.Z)(t,"GenerateBcaQrCode","/API/BCA/GenerateQR"),(0,e.Z)(t,"BcaVerifyPayment","/API/BCA/VerifyQR"),(0,e.Z)(t,"InvoiceA4","/API/Print/Invoice"),(0,e.Z)(t,"UploadCsv","/API/POS/UploadCsv"),(0,e.Z)(t,"UploadCsvBuy","/API/Buy/UploadCsv"),(0,e.Z)(t,"GenerateCommission","/API/Transaction/GetCommission"),(0,e.Z)(t,"InvoiceInfo","/api/Invoice/InvoiceInfo"),(0,e.Z)(t,"GenerateLink","/API/PayNow/GenerateLink"),(0,e.Z)(t,"LoadFormBuy","/API/Buy2/Load"),(0,e.Z)(t,"BuyGetOutletInfo","/API/Buy2/GetOutletInfo"),(0,e.Z)(t,"BuyGenerateNumber","/API/Buy/GenerateNumber"),(0,e.Z)(t,"BuyGetDataByID","/API/Buy2/GetDataByID"),(0,e.Z)(t,"GetQuickKey","/API/catalog/product/GetQuickKey"),(0,e.Z)(t,"GetPrintTemplateID","/API/Buy/GetPrintTemplateID"),(0,e.Z)(t,"GetVariantStockByID","/API/catalog/variant/GetInventoryByVariantID"),(0,e.Z)(t,"GetSupplierInvoice","/API/Buy/GetSupplierInvoiceRetur"),(0,e.Z)(t,"GetSupplierDTO","/API/Contact/GetSupplierDTO"),(0,e.Z)(t,"LoadFormDelivery","/API/TransferOrderLoader/LoadForm"),(0,e.Z)(t,"DeliveryGenerateNumber","/API/TransferOrder/GenerateNumber"),(0,e.Z)(t,"UpdateCourierList","/API/TransferOrder/UpdateCourierList"),(0,e.Z)(t,"SubmitOutletDelivery","/API/TransferOrder/SubmitOrder"),(0,e.Z)(t,"ClearOutlet","/API/TransferOrder/ClearOutlet"),(0,e.Z)(t,"PaymentListSorting","/API/Setup/Payment/SortPaymentMethod"),(0,e.Z)(t,"TaxListSorting","/API/Setup/Payment/SortTax"),(0,e.Z)(t,"LoadFormEstimate","/API/Estimate/LoadForm"),(0,e.Z)(t,"EstimateGenerateNumber","/API/Estimate/GenerateNumber"),(0,e.Z)(t,"SubmitEstimate","/API/Estimate/SubmitOrder"),(0,e.Z)(t,"LoadFormAdjustment","/API/Adjustment/LoadForm"),(0,e.Z)(t,"AdjustmentGenerateNumber","/API/Adjustment/GenerateNumber"),(0,e.Z)(t,"SubmitAdjustment","/API/Adjustment/SubmitOrder"),(0,e.Z)(t,"ForecastData","Inventory/Daystozero"),(0,e.Z)(t,"ForecastLoader","InventoryLoader/Daystozero"),(0,e.Z)(t,"ValidateInventory","/api/inventory/GetByListGuidFromCart"),(0,e.Z)(t,"UsageActivities","Setup/DeveloperSpace/API/Activity"),(0,e.Z)(t,"GetVariantSerialPagedLoader","Catalog/SerialLoader/GetVariantSerialPagedLoader"),(0,e.Z)(t,"GetVariantSerialPagination","Catalog/Serial/GetVariantSerialPagination"),(0,e.Z)(t,"SerialInfo","Catalog/Serial/SerialInfo"),(0,e.Z)(t,"GetVariantSerialFormLoader","/api/Catalog/SerialLoader/GetVariantSerialFormLoader"),(0,e.Z)(t,"GetCountVariantSerial","/api/Catalog/Serial/GetCountVariantSerial"),(0,e.Z)(t,"AddVariantSerial","/api/Catalog/Serial/AddVariantSerial"),(0,e.Z)(t,"EditSerial","/api/Catalog/Serial/EditSerial"),(0,e.Z)(t,"GetVariantSerialByListVariantID","/api/Catalog/Serial/GetVariantSerialByListVariantID"),(0,e.Z)(t,"StockAvailableSerial","/api/Catalog/Serial/StockAvailableSerial"),(0,e.Z)(t,"GetVariantSerialByVariantID","/api/Catalog/Serial/GetVariantSerialByVariantID"),(0,e.Z)(t,"GetVariantSerial","/api/Catalog/Serial/GetVariantSerial"),(0,e.Z)(t,"GetVariantBySerial","/api/catalog/serial/GetVariantbySerial"),(0,e.Z)(t,"GetDashboardConfig","/API/Dashboard/GetDashboardData2"),(0,e.Z)(t,"GetDashboardSales","/API/Dashboard/Sales"),(0,e.Z)(t,"GetDashboardPurchase","/API/Dashboard/Purchase"),t})()},10459:(_,g,i)=>{i.d(g,{N:()=>t});var e=i(65879),P=i(96814);let t=(()=>{var u;class n{constructor(o,r){this.document=o,this.platformId=r,this.documentIsAccessible=(0,P.NF)(this.platformId)}static getCookieRegExp(o){const r=o.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+r+"|;\\s*"+r+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(o){try{return decodeURIComponent(o)}catch{return o}}check(o){return!!this.documentIsAccessible&&(o=encodeURIComponent(o),n.getCookieRegExp(o).test(this.document.cookie))}get(o){if(this.documentIsAccessible&&this.check(o)){o=encodeURIComponent(o);const s=n.getCookieRegExp(o).exec(this.document.cookie);return s[1]?n.safeDecodeURIComponent(s[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const o={},r=this.document;return r.cookie&&""!==r.cookie&&r.cookie.split(";").forEach(s=>{const[I,d]=s.split("=");o[n.safeDecodeURIComponent(I.replace(/^ /,""))]=n.safeDecodeURIComponent(d)}),o}set(o,r,s,I,d,l,S){if(!this.documentIsAccessible)return;if("number"==typeof s||s instanceof Date||I||d||l||S)return void this.set(o,r,{expires:s,path:I,domain:d,secure:l,sameSite:S||"Lax"});let m=encodeURIComponent(o)+"="+encodeURIComponent(r)+";";const a=s||{};a.expires&&(m+="number"==typeof a.expires?"expires="+new Date((new Date).getTime()+1e3*a.expires*60*60*24).toUTCString()+";":"expires="+a.expires.toUTCString()+";"),a.path&&(m+="path="+a.path+";"),a.domain&&(m+="domain="+a.domain+";"),!1===a.secure&&"None"===a.sameSite&&(a.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${o} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),a.secure&&(m+="secure;"),a.sameSite||(a.sameSite="Lax"),m+="sameSite="+a.sameSite+";",this.document.cookie=m}delete(o,r,s,I,d="Lax"){this.documentIsAccessible&&this.set(o,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:r,domain:s,secure:I,sameSite:d})}deleteAll(o,r,s,I="Lax"){if(!this.documentIsAccessible)return;const d=this.getAll();for(const l in d)d.hasOwnProperty(l)&&this.delete(l,o,r,s,I)}}return(u=n).\u0275fac=function(o){return new(o||u)(e.LFG(P.K0),e.LFG(e.Lbi))},u.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),n})()}}]);