dealpos 25.41.0 → 25.41.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-KAIC6JKI.js → chunk-24DG45I3.js} +1 -1
- package/browser/{chunk-S7PUQN3L.js → chunk-3DJNARG4.js} +1 -1
- package/browser/chunk-3KQOMCSD.js +1 -0
- package/browser/{chunk-FVV3OZGL.js → chunk-4LXRG6WX.js} +1 -1
- package/browser/{chunk-FNC65DTW.js → chunk-52UQUKPX.js} +1 -1
- package/browser/{chunk-RM6J5M7M.js → chunk-642QVB6F.js} +1 -1
- package/browser/{chunk-VNDXYRE3.js → chunk-6OCNT66S.js} +1 -1
- package/browser/{chunk-IKWOYHRW.js → chunk-76X64SMO.js} +1 -1
- package/browser/{chunk-7LAIQ66I.js → chunk-7N2QYF7R.js} +1 -1
- package/browser/{chunk-MWZWI55C.js → chunk-AM5NRIT6.js} +2 -2
- package/browser/{chunk-TBLF6HGT.js → chunk-ANX6LLW2.js} +2 -2
- package/browser/{chunk-BIRF2ABZ.js → chunk-ARRQ5EFW.js} +1 -1
- package/browser/{chunk-UIFA2SDY.js → chunk-AVTXYQVU.js} +1 -1
- package/browser/{chunk-D66QGFWL.js → chunk-CBNETPSR.js} +1 -1
- package/browser/{chunk-EGYLYR4R.js → chunk-CE2F7JXC.js} +2 -2
- package/browser/{chunk-INKPSHU5.js → chunk-CIK2MP4R.js} +1 -1
- package/browser/{chunk-SPCOCDB5.js → chunk-CTUOHQZX.js} +1 -1
- package/browser/{chunk-7AKAJDA6.js → chunk-CYN5RPKH.js} +1 -1
- package/browser/{chunk-2PYNUKOZ.js → chunk-CYZLSELK.js} +2 -2
- package/browser/{chunk-WYAOC74R.js → chunk-D4TIVA7X.js} +1 -1
- package/browser/{chunk-WWMFBTW6.js → chunk-DAFBCHSD.js} +1 -1
- package/browser/{chunk-KLIM7HC4.js → chunk-DG3LALNR.js} +1 -1
- package/browser/{chunk-E32TPBTM.js → chunk-DV7R2OHQ.js} +1 -1
- package/browser/{chunk-K24FIZWW.js → chunk-E3OJDQJU.js} +1 -1
- package/browser/{chunk-PWFFXKPT.js → chunk-EBF5TQA3.js} +1 -1
- package/browser/{chunk-2PLZSFZT.js → chunk-FFUG72H7.js} +1 -1
- package/browser/{chunk-QGSVNOUM.js → chunk-FUNMA7BH.js} +1 -1
- package/browser/{chunk-5BMWUUZC.js → chunk-FVNVDFZ3.js} +1 -1
- package/browser/chunk-FWGEWZZR.js +112 -0
- package/browser/{chunk-XBKHQX2Z.js → chunk-G4ZMJRES.js} +1 -1
- package/browser/{chunk-AZMKFBK2.js → chunk-GP2FLELQ.js} +2 -2
- package/browser/{chunk-HHL6JGRR.js → chunk-GYDKPYAE.js} +1 -1
- package/browser/{chunk-HLB5LHMM.js → chunk-HLQAJGPW.js} +1 -1
- package/browser/{chunk-UBCZUCAI.js → chunk-I2RCZFBC.js} +1 -1
- package/browser/{chunk-GBCEUME2.js → chunk-IAYC7I3R.js} +2 -2
- package/browser/{chunk-2Q63FHAZ.js → chunk-IIT2DVM4.js} +1 -1
- package/browser/{chunk-F6SLXCNW.js → chunk-IP5MKSCZ.js} +1 -1
- package/browser/{chunk-P4D3ZFU6.js → chunk-IXT3DF55.js} +1 -1
- package/browser/{chunk-2HPAHDH3.js → chunk-JBCRZS7M.js} +1 -1
- package/browser/{chunk-T7SZQ5ER.js → chunk-JC3JZZBR.js} +1 -1
- package/browser/{chunk-A5S5YAD4.js → chunk-JGWX2EZR.js} +1 -1
- package/browser/{chunk-T57FXNTH.js → chunk-JI2OEM7G.js} +2 -2
- package/browser/{chunk-J5G2T7JL.js → chunk-JRXXNT73.js} +2 -2
- package/browser/{chunk-MO72TCM3.js → chunk-JS4S7VFN.js} +1 -1
- package/browser/{chunk-3CGMC22M.js → chunk-JSKQZOB7.js} +1 -1
- package/browser/{chunk-PKXXNSOA.js → chunk-KANC33RT.js} +1 -1
- package/browser/{chunk-32VED5SX.js → chunk-KFVZHASH.js} +1 -1
- package/browser/{chunk-ICZOEWBT.js → chunk-KN7SLSEV.js} +1 -1
- package/browser/{chunk-CHVYE7JV.js → chunk-LGV5H2SN.js} +1 -1
- package/browser/{chunk-OID2F56F.js → chunk-LQ62MECB.js} +1 -1
- package/browser/{chunk-SK5RQIZA.js → chunk-MQZACMWS.js} +1 -1
- package/browser/{chunk-BSVRNBBT.js → chunk-N5JMFZAI.js} +1 -1
- package/browser/{chunk-7EM2LL7R.js → chunk-NDGJRYJP.js} +1 -1
- package/browser/{chunk-26Z4OH2A.js → chunk-NRLKPOI4.js} +1 -1
- package/browser/{chunk-EWKPKHEM.js → chunk-OEZ36AB7.js} +1 -1
- package/browser/{chunk-HPOSI4EB.js → chunk-P5LBXEXP.js} +1 -1
- package/browser/{chunk-FS3WBME7.js → chunk-QAIN2I4M.js} +1 -1
- package/browser/{chunk-E25FM2KY.js → chunk-QIC4NC44.js} +1 -1
- package/browser/{chunk-2335JJ7I.js → chunk-SIBFXOZL.js} +2 -2
- package/browser/{chunk-4DC2TBLV.js → chunk-SNZ3XOYS.js} +1 -1
- package/browser/{chunk-VF4OMJUM.js → chunk-T4WKRJX6.js} +1 -1
- package/browser/{chunk-YQNCI5SR.js → chunk-TE7XVDMD.js} +1 -1
- package/browser/{chunk-GXZ2EIQO.js → chunk-U6QZY6DE.js} +2 -2
- package/browser/chunk-UQVUEHMY.js +1 -0
- package/browser/{chunk-NTYGQQVE.js → chunk-V6FJC4FI.js} +6 -6
- package/browser/{chunk-SXVT4ARO.js → chunk-VSSVZBFF.js} +1 -1
- package/browser/{chunk-ZPQXV57H.js → chunk-VURYHR5V.js} +1 -1
- package/browser/{chunk-INZNIUUT.js → chunk-WBIEQKM7.js} +1 -1
- package/browser/{chunk-AZG6NVGX.js → chunk-WUBJGORE.js} +1 -1
- package/browser/{chunk-7YKJZAV2.js → chunk-XZ4YJQEE.js} +1 -1
- package/browser/{chunk-6LF24U22.js → chunk-Y3SZN2BF.js} +1 -1
- package/browser/{chunk-MRV7ZBNN.js → chunk-YKHH5WEY.js} +1 -1
- package/browser/{chunk-KC52V6JH.js → chunk-YQOPOHHS.js} +1 -1
- package/browser/{chunk-MMBFUP5P.js → chunk-YRDHQEJD.js} +1 -1
- package/browser/{chunk-JZGPSRHE.js → chunk-ZJETYSCY.js} +1 -1
- package/browser/{chunk-U2PLVLVX.js → chunk-ZNOOG4JF.js} +1 -1
- package/browser/chunk-ZV4Y6TGK.js +1 -0
- package/browser/index.html +2 -2
- package/browser/{main-D4SWIXO5.js → main-EOSK3VZT.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-B7NI6C35.js +0 -1
- package/browser/chunk-HOODBZSK.js +0 -112
- package/browser/chunk-JXWFGUDB.js +0 -1
- package/browser/chunk-MG5VMZYP.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as l}from"./chunk-
|
|
1
|
+
import{e as l}from"./chunk-NRLKPOI4.js";import"./chunk-HLQAJGPW.js";import"./chunk-OI2RWAOV.js";import"./chunk-7LXPGNYF.js";import"./chunk-45BASVRZ.js";import"./chunk-XOQ4SW2R.js";import"./chunk-4SOJX57D.js";import"./chunk-6BL2JKZG.js";import"./chunk-REQUYIUO.js";import"./chunk-T2PMKO3M.js";import"./chunk-2FWFPV5I.js";import"./chunk-OE7PM4Y4.js";import"./chunk-CB33ZMNF.js";import"./chunk-CIK2MP4R.js";import"./chunk-52UQUKPX.js";import"./chunk-TYBAV5LT.js";import"./chunk-FUNMA7BH.js";import{Ib as o,Jb as m,Kb as c,Td as d,ec as p,jd as f,ka as n,kb as u,lb as i}from"./chunk-DJOHANFC.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=u({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),c(3,"div",2),o(4,"div",3)(5,"div",4)(6,"h1",5),p(7," Page Not Found "),m(),o(8,"p",6),p(9,"The page you are trying to access cannot be found"),m()()(),o(10,"div",7),c(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:[f,r,l]})};export{N as NotFoundModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as de}from"./chunk-
|
|
1
|
+
import{a as de}from"./chunk-YQOPOHHS.js";import{d as me,e as se}from"./chunk-NRLKPOI4.js";import"./chunk-HLQAJGPW.js";import{b as le}from"./chunk-7N2QYF7R.js";import"./chunk-OI2RWAOV.js";import"./chunk-7LXPGNYF.js";import{u as ae,v as ne,w as re}from"./chunk-45BASVRZ.js";import"./chunk-XOQ4SW2R.js";import"./chunk-4SOJX57D.js";import{e as te,f as ie,g as oe}from"./chunk-6BL2JKZG.js";import"./chunk-REQUYIUO.js";import"./chunk-T2PMKO3M.js";import{a as ee}from"./chunk-2FWFPV5I.js";import"./chunk-OE7PM4Y4.js";import{A as Q,E as X,F as Z,c as G,h as z,o as J}from"./chunk-CB33ZMNF.js";import"./chunk-CIK2MP4R.js";import"./chunk-52UQUKPX.js";import{a as W}from"./chunk-TYBAV5LT.js";import"./chunk-FUNMA7BH.js";import{$a as m,Ac as B,Db as F,E as A,Ib as o,Jb as a,Kb as w,Lb as T,Ma as Y,Mb as g,Ob as y,Od as H,Qb as _,Rb as u,Vd as q,Wc as U,Yc as j,Yd as $,Zc as v,db as f,dc as O,ec as r,fc as R,gc as x,gd as K,jc as E,jd as h,kb as b,kc as M,lc as P,ob as L,qb as S,rc as D,va as d,vb as c,wa as p,zc as k}from"./chunk-DJOHANFC.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as c}from"./chunk-
|
|
1
|
+
import{b as c}from"./chunk-CIK2MP4R.js";import{ja as r,na as s}from"./chunk-DJOHANFC.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
|