dealpos 25.32.0 → 25.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-U4E4GFA3.js → chunk-3BKJB4EB.js} +1 -1
- package/browser/{chunk-NVZO3MOZ.js → chunk-3HGB2KX7.js} +1 -1
- package/browser/{chunk-AU5NSB5E.js → chunk-3IE46WQL.js} +2 -2
- package/browser/{chunk-ZTCHNGR5.js → chunk-42NI5Y2B.js} +1 -1
- package/browser/{chunk-7ZF6XZWY.js → chunk-4D6P6ZN5.js} +1 -1
- package/browser/{chunk-X7I2U4GR.js → chunk-4O6KU55Y.js} +2 -2
- package/browser/{chunk-DBK7DX7N.js → chunk-5MDQYEMB.js} +1 -1
- package/browser/{chunk-X6OU5HV5.js → chunk-6S6Q7SED.js} +1 -1
- package/browser/{chunk-H73MVYHX.js → chunk-6VQ2WO2R.js} +1 -1
- package/browser/{chunk-RIGRHB27.js → chunk-6ZHV4H72.js} +2 -2
- package/browser/{chunk-UWM724IJ.js → chunk-A7WBJIJP.js} +1 -1
- package/browser/{chunk-2SAQDBKA.js → chunk-APVQGR37.js} +1 -1
- package/browser/{chunk-75MGYBWY.js → chunk-B7VLDW2D.js} +1 -1
- package/browser/{chunk-P23T2EVP.js → chunk-BAW2PCX4.js} +1 -1
- package/browser/{chunk-X7J7XCND.js → chunk-BL367NTS.js} +1 -1
- package/browser/{chunk-EANKU65K.js → chunk-CZ7F77ZP.js} +1 -1
- package/browser/{chunk-QYVR6FKS.js → chunk-DDVWUPV6.js} +1 -1
- package/browser/{chunk-BR7ZRI7I.js → chunk-DJA3CX47.js} +1 -1
- package/browser/{chunk-HWY3QH6A.js → chunk-DWBSJPMC.js} +1 -1
- package/browser/{chunk-KO5IVQZS.js → chunk-DZG3LGZ3.js} +1 -1
- package/browser/{chunk-OVRODHEF.js → chunk-EAPNMYHA.js} +1 -1
- package/browser/{chunk-D6K7GLV2.js → chunk-ERJFDQFX.js} +1 -1
- package/browser/{chunk-UUN5OBN5.js → chunk-F6ZI74HP.js} +1 -1
- package/browser/{chunk-WMDD6KTG.js → chunk-GFYZWIV4.js} +1 -1
- package/browser/{chunk-Q45IFUGA.js → chunk-GGEENO4M.js} +1 -1
- package/browser/{chunk-CNMEDN2J.js → chunk-GLZMFXE6.js} +2 -2
- package/browser/{chunk-GIBMYPUI.js → chunk-GPYDY4KE.js} +1 -1
- package/browser/{chunk-KTYLKTKA.js → chunk-HT7MBQYU.js} +1 -1
- package/browser/{chunk-U6AHQ7OA.js → chunk-I33SFWJL.js} +1 -1
- package/browser/{chunk-26RWIMQI.js → chunk-IHY7TFGQ.js} +5 -5
- package/browser/{chunk-S6XWBUA5.js → chunk-JCJZ6B6B.js} +1 -1
- package/browser/{chunk-VUVNZP6V.js → chunk-JDMYDBXN.js} +1 -1
- package/browser/{chunk-35BXZ4TH.js → chunk-JY4TU5LB.js} +1 -1
- package/browser/{chunk-7JLLV4R2.js → chunk-K25WE32L.js} +1 -1
- package/browser/{chunk-YQM3WRXG.js → chunk-KBE7CFXH.js} +1 -1
- package/browser/{chunk-DZPKIRUW.js → chunk-KFV3U2MG.js} +1 -1
- package/browser/{chunk-TLVGFFQE.js → chunk-KU2S24JO.js} +1 -1
- package/browser/{chunk-IXN5A6FJ.js → chunk-LB5S2KZX.js} +1 -1
- package/browser/{chunk-5W2FAFPB.js → chunk-LQKZB5PG.js} +1 -1
- package/browser/{chunk-VWM4STKR.js → chunk-LWWP5RGP.js} +1 -1
- package/browser/{chunk-CIEKEDPX.js → chunk-MA64N42O.js} +1 -1
- package/browser/{chunk-KJGIGEWE.js → chunk-MBSLDPJK.js} +1 -1
- package/browser/{chunk-N6VH67NA.js → chunk-MW5P4LM5.js} +1 -1
- package/browser/{chunk-CSPZYSGN.js → chunk-N66KZGXZ.js} +1 -1
- package/browser/{chunk-35MHVXKF.js → chunk-OM6SJITM.js} +1 -1
- package/browser/{chunk-4746NLIA.js → chunk-PFK4WL2H.js} +1 -1
- package/browser/{chunk-DS5ZUU74.js → chunk-PGQ4D2W6.js} +1 -1
- package/browser/{chunk-YF5Z2Q2D.js → chunk-PKRNN3GZ.js} +1 -1
- package/browser/{chunk-UP2OTHWF.js → chunk-QUWHJ3A2.js} +3 -3
- package/browser/{chunk-TTBALV7Z.js → chunk-RAKPTR5Z.js} +1 -1
- package/browser/{chunk-WULI4TL4.js → chunk-RDARJWEZ.js} +1 -1
- package/browser/{chunk-JBDCESLL.js → chunk-RJVF37GS.js} +1 -1
- package/browser/{chunk-5VBPLGVM.js → chunk-RSSYP5IL.js} +1 -1
- package/browser/{chunk-ALON6KSY.js → chunk-RTJEAKQW.js} +1 -1
- package/browser/{chunk-ZB4GWUQV.js → chunk-RVN4YQAX.js} +1 -1
- package/browser/{chunk-7PVGAJ73.js → chunk-SG2RKHTW.js} +1 -1
- package/browser/{chunk-5FA5XUCV.js → chunk-SL4VOAHY.js} +2 -2
- package/browser/{chunk-ZYLRH43R.js → chunk-TUL555Y3.js} +1 -1
- package/browser/chunk-UFHFKY4U.js +2 -0
- package/browser/{chunk-2TWP52P7.js → chunk-UZGPU4VW.js} +1 -1
- package/browser/{chunk-EL2PFWZR.js → chunk-VVYAL6Y7.js} +1 -1
- package/browser/{chunk-YH6FQJMF.js → chunk-WFX2XCFO.js} +1 -1
- package/browser/{chunk-P3YO27X5.js → chunk-WMOWM6XW.js} +1 -1
- package/browser/{chunk-5H4KL2KJ.js → chunk-WP4PM74K.js} +1 -1
- package/browser/{chunk-KTMKLUKP.js → chunk-WYO3ICL4.js} +1 -1
- package/browser/{chunk-FWKNIZZ3.js → chunk-XDPWF5CB.js} +1 -1
- package/browser/{chunk-WYYDJSSS.js → chunk-ZNWP7UK2.js} +1 -1
- package/browser/{chunk-U765C72H.js → chunk-ZSBJ4BDP.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-ZYWB664N.js → main-Q6EK5PKL.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-TTISSB2D.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-EQ6536VC.js";import{a as t}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-EQ6536VC.js";import{a as t}from"./chunk-LQKZB5PG.js";import{ja as i}from"./chunk-ONCTFURX.js";import{a}from"./chunk-7DCB7DB2.js";var n=class o{constructor(){}inititalizeIntercom(){let e=this.getFromLocalStorage();e?.Enabled&&window.Intercom("boot",{app_id:t.intercom.appId,name:e.Name,email:e.Email,created_at:e.Created,user_hash:e.Hash})}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(e){localStorage.setItem("Intercom",JSON.stringify(e))}getFromLocalStorage(){let e=localStorage.getItem("Intercom");return JSON.parse(e)}hideLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!0,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e))}showLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!1,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e))}isHideLauncher(){let e=this.getFromLocalStorage();return c.IsEmpty(e?.hide_default_launcher)?!1:e?.hide_default_launcher}static \u0275fac=function(r){return new(r||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,d as W}from"./chunk-
|
|
1
|
+
import{c as U,d as W}from"./chunk-PGQ4D2W6.js";import{a as X,b as Y}from"./chunk-VFMAQOEX.js";import{ga as K,ha as Q}from"./chunk-4IJDCXOA.js";import{a as A}from"./chunk-3X3O55NN.js";import{ja as J}from"./chunk-WUSKRV4R.js";import{D as G,h as B,o as q}from"./chunk-J577JGRK.js";import{a as C}from"./chunk-EQ6536VC.js";import{$a as _,$c as N,Db as H,Dc as F,Fa as M,Ib as c,Jb as m,Nb as L,Ob as V,Qb as j,Rb as n,Wd as d,Y as S,ad as P,ca as h,d as x,db as b,dc as I,ec as v,fa as T,ga as u,gc as E,hd as z,ja as w,kb as $,ma as O,na as D,o as f,qb as a,va as p,vb as l,wa as g,xc as R,yc as k}from"./chunk-ONCTFURX.js";var y=class o{signalRClient=D(A);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):f(e),[]),S(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):f(e),[]),S(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(d))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function ie(o,t){o&1&&L(0)}function re(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,ie,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ne(o,t){o&1&&L(0)}function ae(o,t){if(o&1&&a(0,ne,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function le(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),E(" ",e.selectedCategoryLabel," ")}}function ce(o,t){if(o&1){let e=V();c(0,"p-treeSelect",4),R(1,"async"),j("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,le,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",k(1,3,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)}}var Z=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(C.IsEmpty(this.selectedCategoryID)&&C.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel="Select Storage Location"}findSelectedCategory(t,e){if(C.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(d),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory","placeholder","Select Storage Location",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&a(0,re,4,1,"p-floatLabel",1)(1,ae,1,1,"ng-container")(2,ce,3,5,"ng-template",null,0,F),e&2&&H(i.showLabel?0:1)},dependencies:[z,N,P,Q,K,W,U,J,G,B,q,Y,X],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{Z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-MA64N42O.js";import"./chunk-NJIOGT5G.js";import"./chunk-I33SFWJL.js";import"./chunk-4I5BIZRN.js";import"./chunk-3RK6DDJD.js";import"./chunk-CPVATKT5.js";import"./chunk-YWYXEZ6N.js";import"./chunk-GX4UHBDK.js";import"./chunk-AGW24DIE.js";import"./chunk-C7X4JG6F.js";import"./chunk-GGEENO4M.js";import"./chunk-6S6Q7SED.js";import"./chunk-APVQGR37.js";import"./chunk-GDLTEIKV.js";import"./chunk-PNVRIGOW.js";import"./chunk-KMVWE6IR.js";import"./chunk-4IJDCXOA.js";import"./chunk-QMH4FATM.js";import"./chunk-SRELAFRM.js";import"./chunk-O4T67QQ3.js";import"./chunk-2FWFPV5I.js";import"./chunk-WUSKRV4R.js";import"./chunk-J577JGRK.js";import"./chunk-RDARJWEZ.js";import"./chunk-JDMYDBXN.js";import"./chunk-EQ6536VC.js";import"./chunk-LQKZB5PG.js";import"./chunk-ONCTFURX.js";import"./chunk-7DCB7DB2.js";export{a as SensitiveFieldComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f}from"./chunk-
|
|
1
|
+
import{c as f}from"./chunk-RDARJWEZ.js";import{a as m}from"./chunk-LQKZB5PG.js";import{I as c,Td as v,Wd as u,ja as s,k as n,ma as e,od as h,rd as l}from"./chunk-ONCTFURX.js";var d=class o{constructor(t,r,p,i){this.httpService=t;this.authService=r;this.httpClientService=p;this.toastr=i}port=window.location.href.split("localhost:")[1]?.split("/")[0];hostURL=t=>m.production?t:`https://localhost:${this.port}${t}`;configure2FA(t){return this.httpService.post("/api/Authentication/Setup_2FA",t)}validateCode(t,r){let p=this.authService.loginResponse?.Token,i=new h({"Content-Type":"application/json","Cache-Control":"no-cache"});i=i.append("Authorization","Bearer "+p);let S={ValidationCode:t,UserID:r};return this.httpClientService.post(this.hostURL("/api/Login/Validate_2FA "),S,{headers:i}).pipe(c(a=>(this.toastr.error(a?.error?.Message,"Error - "+a.status),n)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/Authentication/Setup_2FA",t)}static \u0275fac=function(r){return new(r||o)(e(u),e(f),e(l),e(v))};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as f}from"./chunk-
|
|
1
|
+
import{i as f}from"./chunk-GGEENO4M.js";import"./chunk-6S6Q7SED.js";import"./chunk-GDLTEIKV.js";import"./chunk-PNVRIGOW.js";import"./chunk-KMVWE6IR.js";import"./chunk-4IJDCXOA.js";import"./chunk-QMH4FATM.js";import"./chunk-SRELAFRM.js";import"./chunk-O4T67QQ3.js";import"./chunk-2FWFPV5I.js";import"./chunk-WUSKRV4R.js";import"./chunk-J577JGRK.js";import"./chunk-RDARJWEZ.js";import"./chunk-JDMYDBXN.js";import"./chunk-EQ6536VC.js";import"./chunk-LQKZB5PG.js";import{Ib as o,Jb as m,Kb as p,Rd as d,ec as c,hd as u,ka as n,kb as l,lb as i}from"./chunk-ONCTFURX.js";import"./chunk-7DCB7DB2.js";var a=class t{menuData={H:"Not Found"};constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=l({type:t,selectors:[["POS-not-found-page"]],standalone:!1,decls:12,vars:0,consts:[[1,"container-fluid","mt-12"],[1,"row"],[1,"col-1"],[1,"col-6","d-flex","align-items-center","justify-content-center","pe-0"],[1,"ms-12"],[1,"mb-0","fw-normal",2,"margin-top","20px","font-size","55px"],[1,"fs-4"],[1,"col-5","ps-0"],["src","//res.cloudinary.com/pos/image/upload/v1652836870/POS/Images/MicrosoftTeams-image.jpg","alt","",2,"width","50%"]],template:function(e,y){e&1&&(o(0,"content")(1,"div",0)(2,"div",1),p(3,"div",2),o(4,"div",3)(5,"div",4)(6,"h1",5),c(7," Page Not Found "),m(),o(8,"p",6),c(9,"The page you are trying to access cannot be found"),m()()(),o(10,"div",7),p(11,"img",8),m()()()())},encapsulation:2})};var M=[{path:"",component:a}],r=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[d.forChild(M),d]})};var N=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[u,r,f]})};export{N as NotFoundModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as de}from"./chunk-
|
|
1
|
+
import{a as de}from"./chunk-I33SFWJL.js";import{h as me,i as se}from"./chunk-GGEENO4M.js";import"./chunk-6S6Q7SED.js";import{b as le}from"./chunk-APVQGR37.js";import"./chunk-GDLTEIKV.js";import"./chunk-PNVRIGOW.js";import{C as ae,D as ne,E as re,u as te,v as ie,w as oe}from"./chunk-KMVWE6IR.js";import"./chunk-4IJDCXOA.js";import"./chunk-QMH4FATM.js";import"./chunk-SRELAFRM.js";import"./chunk-O4T67QQ3.js";import{a as ee}from"./chunk-2FWFPV5I.js";import"./chunk-WUSKRV4R.js";import{C as X,D as Z,c as G,h as z,o as J,y as Q}from"./chunk-J577JGRK.js";import"./chunk-RDARJWEZ.js";import"./chunk-JDMYDBXN.js";import{a as W}from"./chunk-EQ6536VC.js";import"./chunk-LQKZB5PG.js";import{$a as m,Db as F,E as A,Ib as o,Jb as a,Kb as w,Lb as T,Ma as Y,Mb as g,Md as H,Ob as y,Qb as _,Rb as u,Td as q,Uc as U,Wc as j,Wd as $,Xc as v,db as f,dc as O,ec as r,ed as K,fc as R,gc as x,hd as h,jc as E,kb as b,kc as M,lc as P,ob as L,pc as D,qb as S,va as d,vb as c,wa as p,xc as k,yc as B}from"./chunk-ONCTFURX.js";import"./chunk-7DCB7DB2.js";var I=(s=>(s.TRANSACTIONS="TRANSACTIONS",s.PRODUCTS="PRODUCTS",s.CONTACTS="CONTACTS",s.LOYALTY_POINTS="LOYALTY_POINTS",s.RECYCLE_BIN="RECYCLE_BIN",s.INVENTORY="INVENTORY",s))(I||{});function _e(n,l){if(n&1&&(T(0),o(1,"div",4)(2,"div",5)(3,"div",16),w(4,"i",17),o(5,"span"),r(6),a()()()(),g()),n&2){let i=u();m(6),x(" ",i.selectedClearData.message," ")}}function Se(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Subdomain is required "),a(),g())}function Te(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Password is required "),a(),g())}function ge(n,l){n&1&&w(0,"i",14)}function be(n,l){n&1&&w(0,"i",15)}var N=class n{constructor(l,i,t){this.data=l;this.dialogRef=i;this.fb=t;this.modalConfig.title=this.modalTitle[this.data.type],this.subdomain="",this.subdomainPlaceholder=l.subDomain}clearData=[{type:"TRANSACTIONS",api:"Setup/Data/ClearTransaction",message:"Your Invoice, Bill, Adjustment, TransferOrder will be deleted"},{type:"PRODUCTS",api:"Setup/Data/ClearProduct",message:"Your Category, Product and Variant will be deleted"},{type:"LOYALTY_POINTS",api:"Setup/Data/ClearLoyaltyPoint"},{type:"RECYCLE_BIN",api:"Setup/Data/ClearRecycleBin"},{type:"INVENTORY",api:"Setup/Data/ClearInventory",message:"Your Product Inventory will be set to 0"},{type:"CONTACTS",api:"Setup/Data/ClearContact",message:"Your Customer, Supplier and Sales Person will be deleted"}];selectedClearData;modalConfig=new ae;modalTitle={TRANSACTIONS:"Clear Transactions",PRODUCTS:"Clear Products",LOYALTY_POINTS:"Clear Loyalty Points",RECYCLE_BIN:"Clear Recycle Bin",CONTACTS:"Clear Contacts",INVENTORY:"Clear Inventory"};subdomain;subdomainPlaceholder;password;form;passwordVisibility=Y(!1);ngOnInit(){this.initSelectedClearData(),this.form=this.fb.group({subdomain:[""],password:[""]})}initSelectedClearData(){this.selectedClearData=this.clearData.find(l=>l.type===this.data.type)}onSubmit(){let l={password:this.password,subdomain:this.subdomain,apiUrl:this.selectedClearData.api};this.dialogRef.close(l)}static \u0275fac=function(i){return new(i||n)(f(ie),f(te),f(X))};static \u0275cmp=b({type:n,selectors:[["app-confirmation-modal"]],decls:24,vars:10,consts:[["subdomainCtrl","ngModel"],["passwordCtrl","ngModel"],[3,"onOk","onClose","onCancel","config","dynamicValidated"],[4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mt-5"],["type","text","id","subdomain","placeholder","Subdomain","name","subdomain","autofocus","","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"form-floating-outline"],["id","pass","placeholder","Password","name","password","required","",1,"form-control",3,"ngModelChange","type","ngModel"],["for","pass"],[1,"password-visibility"],["type","button",1,"btn","btn-link",3,"click"],[1,"fa-solid","fa-eye"],[1,"fa-solid","fa-eye-slash"],[1,"alert","alert-warning","cursor","w-100"],[1,"fa-solid","fa-circle-exclamation","me-2"],[1,"control-label","text-danger"]],template:function(i,t){if(i&1){let e=y();o(0,"modal-material",2),_("onOk",function(){return d(e),p(t.onSubmit())})("onClose",function(){return d(e),p(t.dialogRef.close())})("onCancel",function(){return d(e),p(t.dialogRef.close())}),o(1,"content"),S(2,_e,7,1,"ng-container",3),o(3,"div",4)(4,"div",5)(5,"strong"),r(6),a(),o(7,"div",6)(8,"input",7,0),P("ngModelChange",function(s){return d(e),M(t.subdomain,s)||(t.subdomain=s),p(s)}),a(),o(10,"label",8),r(11,"Subdomain"),a(),S(12,Se,3,0,"ng-container",3),a()(),o(13,"div",5)(14,"div",9)(15,"input",10,1),P("ngModelChange",function(s){return d(e),M(t.password,s)||(t.password=s),p(s)}),a(),o(17,"label",11),r(18,"Password"),a(),S(19,Te,3,0,"ng-container",3),o(20,"div",12)(21,"button",13),_("click",function(){return d(e),p(t.passwordVisibility.set(!t.passwordVisibility()))}),S(22,ge,1,0,"i",14)(23,be,1,0,"i",15),a()()()()()()()}if(i&2){let e=O(9),C=O(16);c("config",t.modalConfig)("dynamicValidated",t.password&&t.subdomain),m(2),c("ngIf",t.selectedClearData.message),m(4),x("Enter the following subdomain to confirm: ",t.subdomainPlaceholder,""),m(2),E("ngModel",t.subdomain),m(4),c("ngIf",e.invalid&&(e.dirty||e.touched)),m(3),c("type",t.passwordVisibility()?"text":"password"),E("ngModel",t.password),m(4),c("ngIf",C.invalid&&(C.dirty||C.touched)),m(3),F(t.passwordVisibility()?22:23)}},dependencies:[h,v,re,ne,Z,G,z,Q,J],styles:[".password-visibility[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%);cursor:pointer;font-size:1.5rem}"]})};var V=n=>({"border border-0":n});function we(n,l){if(n&1&&(T(0),o(1,"tr",23)(2,"td",23),r(3),a(),o(4,"td",24),r(5),k(6,"number"),a()(),g()),n&2){let i=l.$implicit,t=l.index,e=u(2);m(),c("ngClass",D(7,V,t==e.data.Data.length-1)),m(),c("ngClass",D(9,V,t==e.data.Data.length-1)),m(),R(i.Key),m(),c("ngClass",D(11,V,t==e.data.Data.length-1)),m(),R(B(6,5,i.Value))}}function ye(n,l){if(n&1){let i=y();o(0,"mainpanel-cmp",1)(1,"actions")(2,"div",2)(3,"div",3)(4,"button",4),r(5," Format Data "),a(),o(6,"ul",5)(7,"li")(8,"a",6),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.TRANSACTIONS))}),r(9," 1. Clear Transactions "),a()(),o(10,"li")(11,"a",7),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.INVENTORY))}),r(12," 2. Clear Inventory "),a()(),o(13,"li")(14,"a",8),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.PRODUCTS))}),r(15," 3. Clear Products "),a()(),o(16,"li")(17,"a",9),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.CONTACTS))}),r(18," 4. Clear Contacts "),a()(),o(19,"li")(20,"a",10),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.LOYALTY_POINTS))}),r(21," 5. Clear Loyalty Point "),a()(),o(22,"li")(23,"a",11),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.RECYCLE_BIN))}),r(24," 6. Clear Recycle Bin "),a()()()()()(),o(25,"content")(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5"),r(30,"Database Records"),a(),o(31,"i"),r(32,"Current data count"),a()(),o(33,"div",15)(34,"div",16)(35,"div",17)(36,"table",18)(37,"thead",19)(38,"tr",20)(39,"th"),r(40,"Table"),a(),o(41,"th",21),r(42,"Rows"),a()()(),o(43,"tbody"),S(44,we,7,13,"ng-container",22),a()()()()()()()()()}if(n&2){let i=u();c("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(44),c("ngForOf",i.data.Data)}}var pe=class n extends de{constructor(i,t,e,C,s){super(i,t,"Setup/DataLoader/clearformatdata",e);this.httpService=t;this.activatedRoute=e;this.toaster=C;this.dialog=s}clearDataType=I;onClearRecord(i){this.dialog.open(N,{data:{type:i,subDomain:this.data.SubDomain}}).afterClosed().pipe(A(t=>W.IsNotEmpty(t))).subscribe(t=>{this.formData={Subdomain:t.subdomain,Password:t.password},this.onSubmit(t.apiUrl),i=="PRODUCTS"?this.data.Data.find(e=>e.Key=="Product").Value=0:i=="CONTACTS"?this.data.Data.find(e=>e.Key=="Customer").Value=0:i=="INVENTORY"?this.data.Data.find(e=>e.Key=="ItemTransfer").Value=0:i=="LOYALTY_POINTS"?this.data.Data.find(e=>e.Key=="JournalHeader").Value=0:i=="RECYCLE_BIN"?this.data.Data.find(e=>e.Key=="Recycle Bin").Value=0:i=="TRANSACTIONS"&&(this.data.Data.find(e=>e.Key=="SalesOrder").Value=0)})}onSubmitSuccess(i){this.toaster.success(i.Message,ee.Success)}static \u0275fac=function(t){return new(t||n)(f(le),f($),f(H),f(q),f(oe))};static \u0275cmp=b({type:n,selectors:[["POS-format-data"]],features:[L],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false","confirm-message","Are you sure you want to clear the record?",1,"btn","btn-outline-secondary","dropdown-toggle"],[1,"dropdown-menu","dropdown-menu-end"],["role","button","matTooltipPosition","above","matTooltip","Clear Transaction",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Inventory",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Products",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Contacts",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Loyalty Point",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Recycle Bin",1,"dropdown-item",3,"click"],[1,"container","pt-3"],[1,"row","border-bottom","mt-10","ms-2"],[1,"col-sm-2"],[1,"col-sm-10"],[1,"row"],[1,"col-md-12"],["id","tableGrid",1,"table",2,"width","250px"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"text-end"],[4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-end",3,"ngClass"]],template:function(t,e){t&1&&S(0,ye,45,4,"mainpanel-cmp",0),t&2&&c("ngIf",e.formData)},dependencies:[h,U,j,v,K,se,me],encapsulation:2})};export{pe as FormatDataComponent};
|