dealpos 25.37.1 → 25.37.3
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-S446OPOL.js → chunk-246GVKUS.js} +1 -1
- package/browser/{chunk-ENKSQCL7.js → chunk-2CJDU4L3.js} +1 -1
- package/browser/{chunk-GIVCDZC7.js → chunk-2FXL2HDF.js} +1 -1
- package/browser/{chunk-ILTMDOAK.js → chunk-2QG4JWAE.js} +1 -1
- package/browser/{chunk-XA5DJGAJ.js → chunk-2RWD5W3A.js} +1 -1
- package/browser/{chunk-KRG67JVZ.js → chunk-2W2V2NM7.js} +1 -1
- package/browser/chunk-47I5SA66.js +1 -0
- package/browser/{chunk-RRP7MA2F.js → chunk-4ASACD3Q.js} +1 -1
- package/browser/{chunk-6FHIOHE3.js → chunk-4PBQC5P6.js} +1 -1
- package/browser/{chunk-XAEX53FJ.js → chunk-57IUU6ZC.js} +1 -1
- package/browser/{chunk-S3TDDBTK.js → chunk-5G6GUMV7.js} +1 -1
- package/browser/{chunk-RVAZBTIQ.js → chunk-5O2KKW6F.js} +1 -1
- package/browser/{chunk-3BR4PCS5.js → chunk-5WFN5KAC.js} +1 -1
- package/browser/{chunk-5IZUAM42.js → chunk-6FKZY7NZ.js} +1 -1
- package/browser/{chunk-YE6Q4TXJ.js → chunk-72KIMU7G.js} +1 -1
- package/browser/{chunk-M32CH5AK.js → chunk-76T3TRG4.js} +1 -1
- package/browser/{chunk-KFFKOF5G.js → chunk-77KTGZY6.js} +1 -1
- package/browser/{chunk-PGLMYP4S.js → chunk-7EA7EXS5.js} +1 -1
- package/browser/{chunk-5YW42TCN.js → chunk-7EU2PMHX.js} +1 -1
- package/browser/{chunk-VSZGQHVN.js → chunk-7TZA4PUK.js} +1 -1
- package/browser/{chunk-FJJZD2B7.js → chunk-A4JKVSUB.js} +4 -4
- package/browser/{chunk-SG2KVUZL.js → chunk-ACSIWGQV.js} +2 -2
- package/browser/{chunk-X5I6AL2S.js → chunk-AKPQZTEV.js} +1 -1
- package/browser/{chunk-4G4GU32S.js → chunk-AUWH2QWX.js} +1 -1
- package/browser/{chunk-QXQKVFD2.js → chunk-AXEM33OC.js} +1 -1
- package/browser/{chunk-LJD3LZP3.js → chunk-AXHXNBHV.js} +1 -1
- package/browser/{chunk-2VX2IMUY.js → chunk-BED5HJZ2.js} +1 -1
- package/browser/{chunk-BIBIASY7.js → chunk-BSJU72R6.js} +1 -1
- package/browser/{chunk-R52M4TBM.js → chunk-CG73T3TQ.js} +1 -1
- package/browser/{chunk-EIMAZRK7.js → chunk-CJKH7RU5.js} +1 -1
- package/browser/{chunk-D5QA72I4.js → chunk-CZAQG6WF.js} +1 -1
- package/browser/{chunk-GBAG7EYS.js → chunk-DSIUUK4N.js} +1 -1
- package/browser/{chunk-JH5ADEFC.js → chunk-DTFL44UO.js} +1 -1
- package/browser/{chunk-LPDARX3E.js → chunk-E3GQ2VEU.js} +1 -1
- package/browser/{chunk-ECLYJ54K.js → chunk-EANTJIRK.js} +1 -1
- package/browser/{chunk-FMW2LGMI.js → chunk-ED4YSOUM.js} +2 -2
- package/browser/{chunk-YAXAFRGD.js → chunk-ELFCO6CE.js} +1 -1
- package/browser/{chunk-WBTANXPU.js → chunk-EMYSF46P.js} +1 -1
- package/browser/{chunk-7WLHEC5P.js → chunk-EQT4SGSU.js} +1 -1
- package/browser/{chunk-JW5NCAZI.js → chunk-FE7KGLWI.js} +1 -1
- package/browser/{chunk-UGXIEPP6.js → chunk-FLEDIXNB.js} +1 -1
- package/browser/{chunk-DODUIG3I.js → chunk-FT4VVMUZ.js} +1 -1
- package/browser/{chunk-7PXSKRVE.js → chunk-FY5VLGQC.js} +1 -1
- package/browser/{chunk-MLI2YX5E.js → chunk-GAPY6IUE.js} +1 -1
- package/browser/{chunk-LGW7XM6V.js → chunk-GKTQL7S6.js} +1 -1
- package/browser/{chunk-UEZOI7KW.js → chunk-GTRQV3VX.js} +1 -1
- package/browser/{chunk-GY4HUPHP.js → chunk-H3V5PSCN.js} +1 -1
- package/browser/{chunk-UBVYDOUF.js → chunk-H4SCBKWD.js} +1 -1
- package/browser/{chunk-PYJAEFZM.js → chunk-HHIBVND5.js} +1 -1
- package/browser/{chunk-UTBVTQLT.js → chunk-HMRDZRDD.js} +3 -3
- package/browser/{chunk-AMSDLTX5.js → chunk-HNX747EE.js} +1 -1
- package/browser/{chunk-SJGFFKA7.js → chunk-HUAA5QUE.js} +1 -1
- package/browser/{chunk-PFFR3I5J.js → chunk-HYW3PEDN.js} +1 -1
- package/browser/{chunk-2GYHYM6C.js → chunk-IMEKDDRZ.js} +1 -1
- package/browser/{chunk-2QRHEWZG.js → chunk-IPVEZIYO.js} +1 -1
- package/browser/{chunk-2S4LF35V.js → chunk-IQY2LSF6.js} +1 -1
- package/browser/{chunk-I2W5O5AZ.js → chunk-IWJJRPWB.js} +1 -1
- package/browser/{chunk-AZRT7REO.js → chunk-IXDUCCKR.js} +1 -1
- package/browser/chunk-J4NQVL2U.js +1 -0
- package/browser/{chunk-ONWNB7LP.js → chunk-KEU6GUET.js} +1 -1
- package/browser/chunk-KEUS7V3K.js +1 -0
- package/browser/{chunk-YYZDU5FZ.js → chunk-KMHOACN3.js} +1 -1
- package/browser/{chunk-VOPP62W6.js → chunk-KP2OKS63.js} +1 -1
- package/browser/{chunk-U64KP4NG.js → chunk-KZU22HGO.js} +1 -1
- package/browser/{chunk-OJLB3EQU.js → chunk-L4VLBO5X.js} +1 -1
- package/browser/{chunk-CCEXOHK3.js → chunk-LC2G5X3T.js} +1 -1
- package/browser/{chunk-2ATNLWJL.js → chunk-LD5LH2YH.js} +1 -1
- package/browser/{chunk-64CSHXRW.js → chunk-LHQMGLCO.js} +1 -1
- package/browser/{chunk-2I6DN732.js → chunk-LK3EGJFT.js} +1 -1
- package/browser/{chunk-423RFMVL.js → chunk-LMSUV4DF.js} +1 -1
- package/browser/chunk-LRZRVZHZ.js +24 -0
- package/browser/{chunk-7BVECXK7.js → chunk-M4IEBQUD.js} +2 -2
- package/browser/{chunk-Y6ZOOZLL.js → chunk-ML4LS3JQ.js} +1 -1
- package/browser/{chunk-LVPI72DU.js → chunk-MTMMU7GK.js} +1 -1
- package/browser/chunk-MXD23J36.js +1 -0
- package/browser/{chunk-C247MHLB.js → chunk-N3XWBPCL.js} +1 -1
- package/browser/{chunk-6M6KXCIT.js → chunk-NOK7ZUJF.js} +1 -1
- package/browser/chunk-NUGWNTFZ.js +1 -0
- package/browser/{chunk-YBPDQGQC.js → chunk-O6GMQRZG.js} +1 -1
- package/browser/{chunk-7ALQSEOZ.js → chunk-OFCUJNQU.js} +1 -1
- package/browser/{chunk-IPMVP56X.js → chunk-OSWSFGOJ.js} +1 -1
- package/browser/{chunk-Y5GVVE7N.js → chunk-OVNI7USJ.js} +1 -1
- package/browser/{chunk-ZRBPW7ZZ.js → chunk-OXLXIWTF.js} +1 -1
- package/browser/{chunk-SS2JHDFV.js → chunk-OY46AN7G.js} +1 -1
- package/browser/{chunk-3K4MFJZI.js → chunk-P42NPBKN.js} +1 -1
- package/browser/{chunk-OENSRVQV.js → chunk-PJZKO6EJ.js} +1 -1
- package/browser/{chunk-XF6535OT.js → chunk-PMQCMLOB.js} +1 -1
- package/browser/{chunk-TIZ2EW3A.js → chunk-PTGE5E6V.js} +1 -1
- package/browser/{chunk-HWXWAUNO.js → chunk-QBECNCED.js} +1 -1
- package/browser/{chunk-CDTFGVVS.js → chunk-QILONTOR.js} +1 -1
- package/browser/{chunk-XDV6DITH.js → chunk-QWLFS2FE.js} +1 -1
- package/browser/{chunk-2TUSVIA7.js → chunk-RCW46J3Z.js} +1 -1
- package/browser/{chunk-KSKYFRB7.js → chunk-RLFBLSFM.js} +1 -1
- package/browser/{chunk-2DMQVIBE.js → chunk-RRGRXLUZ.js} +1 -1
- package/browser/{chunk-AYCCLOJL.js → chunk-RT6YCLZW.js} +1 -1
- package/browser/{chunk-BLS6POOW.js → chunk-RW7QZRJ2.js} +2 -2
- package/browser/{chunk-UVQPPKQB.js → chunk-SZDICN4P.js} +1 -1
- package/browser/{chunk-3FOZ56CA.js → chunk-T4MVFJGL.js} +1 -1
- package/browser/{chunk-BWWLIKSO.js → chunk-TDMU55LA.js} +1 -1
- package/browser/chunk-TPPS3QIA.js +1 -0
- package/browser/{chunk-44QE6FET.js → chunk-UGECMXMN.js} +5 -5
- package/browser/{chunk-SHZWWZ7H.js → chunk-V55A6VFC.js} +1 -1
- package/browser/{chunk-YNTAPAX4.js → chunk-VGHP2OV6.js} +1 -1
- package/browser/{chunk-NWOTM7DD.js → chunk-VSFXSQWT.js} +1 -1
- package/browser/{chunk-7KSMTJW6.js → chunk-VX4WL34G.js} +1 -1
- package/browser/{chunk-645U43U6.js → chunk-WDDMKZLZ.js} +1 -1
- package/browser/{chunk-4FZ77NFR.js → chunk-WG2QGIET.js} +1 -1
- package/browser/{chunk-IBLGEDBH.js → chunk-X3P7SVC6.js} +1 -1
- package/browser/{chunk-PDNDXNJG.js → chunk-XOMO7AVU.js} +1 -1
- package/browser/{chunk-YOD6EXLJ.js → chunk-YAGXTRYQ.js} +2 -2
- package/browser/{chunk-AUJWQ5CX.js → chunk-YFN33F7G.js} +1 -1
- package/browser/{chunk-BRRQE5KZ.js → chunk-YLD325HC.js} +1 -1
- package/browser/{chunk-U652AHGM.js → chunk-YMIWL4WY.js} +1 -1
- package/browser/{chunk-FTUOJINV.js → chunk-Z2P2CNKC.js} +1 -1
- package/browser/{chunk-ONCZXBYC.js → chunk-Z7BGVRZR.js} +1 -1
- package/browser/{chunk-XK35I4BF.js → chunk-ZDJDS43F.js} +1 -1
- package/browser/{chunk-D35OBUDE.js → chunk-ZZ7LHETD.js} +4 -4
- package/browser/index.html +2 -2
- package/browser/{main-2IQKAWBF.js → main-E4MQYENS.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-53Y33SQN.js +0 -1
- package/browser/chunk-BAH4UVJ5.js +0 -1
- package/browser/chunk-BEBJKGFP.js +0 -1
- package/browser/chunk-DCCRJE3O.js +0 -1
- package/browser/chunk-EGH7OT7P.js +0 -24
- package/browser/chunk-MQ5ESAAH.js +0 -1
- package/browser/chunk-TUHKOEXH.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N}from"./chunk-
|
|
1
|
+
import{c as N}from"./chunk-2FXL2HDF.js";import"./chunk-246GVKUS.js";import{a as D}from"./chunk-AHCRE4GP.js";import"./chunk-WG2QGIET.js";import{$ as _,$a as l,Ac as k,Ga as P,Ib as o,Jb as e,Kb as u,N as b,Ob as S,Qb as I,Qd as G,Rb as f,Y as m,Yd as j,Zc as A,aa as s,c as p,cd as E,db as d,ec as a,fa as y,fc as x,jd as R,kb as w,n as v,qb as g,va as C,vb as c,wa as O,yb as M,zc as L}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";function T(r,n){r&1&&(o(0,"div",21)(1,"span",22),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",23),a(4,"Click here to learn how to manually activate the location permission"),e()())}function z(r,n){if(r&1){let t=S();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),a(4,"Geo Fencing"),e(),o(5,"p",5),a(6,"You are about to sign-in from this location"),e(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),a(11,"LAT"),e(),o(12,"span",10),a(13),e()(),o(14,"div",8)(15,"span",11),a(16,"LONG"),e(),o(17,"span",12),a(18),e()()(),o(19,"button",13),I("click",function(){C(t);let h=f();return O(h.proceed())}),a(20,"Proceed"),e()(),g(21,T,5,0,"div",14),e(),o(22,"div",15),u(23,"img",16),e()(),o(24,"div",17)(25,"div",18)(26,"div")(27,"span"),a(28,"powered by :"),e(),u(29,"a",19)(30,"img",20),e()()()()}if(r&2){let t=n.ngIf,i=f();l(2),M(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),x(t.latitude),l(5),x(t.longitude),l(),c("disabled",!(t.latitude&&t.longitude)),l(2),c("ngIf",!(t.latitude&&t.longitude))}}var Z=class r{constructor(n,t,i,h){this.ngZone=n;this.auth=t;this.http=i;this.router=h}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(s(t=>new p(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),m(1));this.latLong$=n.pipe(s(()=>new p(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),m(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(s(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),y(n=>this.auth.saveLoginConfigToStorage(n)),s(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(d(P),d(N),d(j),d(G))};static \u0275cmp=w({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],["class","text-start mt-7",4,"ngIf"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://res.cloudinary.com/pos/image/upload/v1685343992/POS/Images/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"],[1,"text-start","mt-7"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){t&1&&(g(0,z,31,6,"div",0),L(1,"async")),t&2&&c("ngIf",k(1,1,i.latLong$))},dependencies:[R,A,E],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{Z as AuthGeolocationComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as $,e as ee}from"./chunk-
|
|
1
|
+
import{d as $,e as ee}from"./chunk-H4SCBKWD.js";import{a as z}from"./chunk-XX6Z7QPA.js";import"./chunk-VQ7WKMGF.js";import{f as te}from"./chunk-WDDMKZLZ.js";import{a as oe,b as ne}from"./chunk-ZU22CVVV.js";import{a as H,b as G,c as A}from"./chunk-AXEM33OC.js";import{b as Q}from"./chunk-NUGWNTFZ.js";import{a as ie}from"./chunk-T4MVFJGL.js";import"./chunk-HYW3PEDN.js";import"./chunk-TYLM2YM3.js";import{a as q}from"./chunk-MTMMU7GK.js";import"./chunk-7TZA4PUK.js";import"./chunk-C73IEBHE.js";import{h as Y,i as Z}from"./chunk-H3V5PSCN.js";import"./chunk-LMSUV4DF.js";import"./chunk-OBNSNZON.js";import"./chunk-DSIUUK4N.js";import"./chunk-RBCKIP6D.js";import"./chunk-FD5YMPRL.js";import"./chunk-MV3QRRW6.js";import"./chunk-3LBZWLLT.js";import"./chunk-LZNTSIJX.js";import"./chunk-C6ARCDXZ.js";import{b as K}from"./chunk-P42NPBKN.js";import"./chunk-52EOLV7I.js";import"./chunk-5UL73W4S.js";import"./chunk-LNVTHMH7.js";import"./chunk-6ZOGADBZ.js";import"./chunk-FY5VLGQC.js";import"./chunk-CIBQBSM6.js";import{O as X,g as U}from"./chunk-IX5URHI7.js";import"./chunk-ZT4RBJMM.js";import"./chunk-GIKR6Y2K.js";import"./chunk-LPGMI3V2.js";import{g as J}from"./chunk-ZZ7LHETD.js";import"./chunk-567HXZXC.js";import"./chunk-I7VBCYOO.js";import"./chunk-CGESXTHC.js";import"./chunk-2FWFPV5I.js";import"./chunk-TLOTIYIE.js";import{F as W,h as B,o as R}from"./chunk-2RSBMS36.js";import"./chunk-2FXL2HDF.js";import"./chunk-246GVKUS.js";import{d as k}from"./chunk-AHCRE4GP.js";import"./chunk-WG2QGIET.js";import{$a as p,Ac as P,Bc as T,Eb as b,Fc as V,Gb as M,Hb as O,Ib as i,Jb as o,Kb as v,Ob as _,Qb as S,Rb as m,Yd as j,Zc as F,db as u,ec as l,fc as h,gc as w,jc as x,jd as N,kb as E,kc as C,lc as y,ob as I,qb as f,va as c,vb as d,wa as s,zc as D}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";function re(r,g){if(r&1){let e=_();i(0,"button",5),S("click",function(){c(e);let t=m();return s(t.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function le(r,g){if(r&1){let e=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),y("ngModelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Outlet,t)||(a.pageData.Filter.Outlet=t),s(t)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),y("selectedCategoryIDChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Category,t)||(a.pageData.Filter.Category=t),s(t)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),y("modelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Discontinued,t)||(a.pageData.Filter.Discontinued=t),s(t)}),o()}if(r&2){let e=m();p(2),d("accessType",2),x("ngModel",e.pageData.Filter.Outlet),p(3),x("selectedCategoryID",e.pageData.Filter.Category),d("showClear",!0),p(3),d("options",e.pageData==null||e.pageData.Options==null?null:e.pageData.Options.Discontinued),x("model",e.pageData.Filter.Discontinued)}}function pe(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",20),l(6),D(7,"quantityFraction"),o()()),r&2){let e=g.$implicit;p(2),h(e.EntityName),p(2),h(e.Name),p(2),w(" ",P(7,3,e.Inventory)," ")}}function me(r,g){if(r&1){let e=_();i(0,"div",10)(1,"div",11)(2,"table",12),S("matSortChange",function(t){c(e);let a=m();return s(a.onSortData(t))}),i(3,"thead",13)(4,"tr",14)(5,"th",15),l(6,"Outlet"),o(),i(7,"th",16),l(8,"Storage Location"),o(),i(9,"th",17),l(10," On Hand "),o()()(),i(11,"tbody"),M(12,pe,8,5,"tr",null,b),o(),i(14,"tfoot")(15,"tr",18),v(16,"td",19),i(17,"td",19),l(18,"Total :"),o(),i(19,"td",20),l(20),D(21,"sum"),D(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",21),S("jumpToPage",function(){c(e);let t=m();return s(t.getListData())})("previousPage",function(){c(e);let t=m();return s(t.getListData())})("nextPage",function(){c(e);let t=m();return s(t.getListData())}),o()()()}if(r&2){let e=m();p(12),O(e.data.Data),p(8),w(" ",P(22,6,T(21,3,e.data.Data,"Inventory"))," "),p(3),d("total",e.data.Data==null?null:e.data.Data.length)("pageData",e.pageData)}}var ae=class r extends q{constructor(e,n,t,a){super(e,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=t;this.roleService=a}datasource;postInit(e){this.datasource=JSON.parse(JSON.stringify(e.Data))}openExportModal(){this.dialog.open(Q,{data:{title:"Storage Location",exportTypes:[{ID:"Inventory/GetProductStorageLocation",Value:"Default",FileName:"Storage Location"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountProductStorageLocation",pagination:!0}})}onSortData(e){let n=this.data.Data?.slice();if(!e.active||e.direction===""){this.data.Data=this.datasource;return}let t=e.direction==="asc";this.data.Data=n.sort((a,L)=>this.compare(a[e.active],L[e.active],t))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(k))};static \u0275cmp=E({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","container-fluid mt-3",4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["placeholder","Choose an outlet","appendTo","body",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","Discontinued",3,"modelChange","options","model"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[1,"header"],["mat-sort-header","EntityName",2,"width","450px"],["mat-sort-header","Brand"],["mat-sort-header","Inventory","arrowPosition","before",1,"text-end",2,"padding-right","100px","width","190px"],[1,"table-footer","fw-bold"],[1,"empty-column"],[1,"text-end",2,"padding-right","100px"],["api","inventory/GetCountProductStorageLocation",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(n,t){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),s(t.searchFromPageOne())}),i(1,"actions")(2,"div",2),f(3,re,3,0,"button",3),o()(),i(4,"filters"),f(5,le,9,6,"ng-template",null,0,V),o(),i(7,"content"),f(8,me,24,8,"div",4),o()()}n&2&&(d("pageData",t.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),d("ngIf",t.roleService.global.Export),p(5),d("ngIf",t.data))},dependencies:[N,F,Z,Y,z,X,U,ee,$,te,ie,W,B,R,ne,oe,A,H,G],encapsulation:2})};export{ae as StorageLocationComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as yt,c as xt}from"./chunk-I7VBCYOO.js";import{a as wt}from"./chunk-CGESXTHC.js";import{a as P}from"./chunk-2FWFPV5I.js";import{la as _t,ma as S,ua as ht}from"./chunk-TLOTIYIE.js";import{F as mt,G as gt,a as st,c as at,h as pt,i as lt,k as ut,o as ct,p as dt}from"./chunk-2RSBMS36.js";import{a as ot}from"./chunk-
|
|
1
|
+
import{a as yt,c as xt}from"./chunk-I7VBCYOO.js";import{a as wt}from"./chunk-CGESXTHC.js";import{a as P}from"./chunk-2FWFPV5I.js";import{la as _t,ma as S,ua as ht}from"./chunk-TLOTIYIE.js";import{F as mt,G as gt,a as st,c as at,h as pt,i as lt,k as ut,o as ct,p as dt}from"./chunk-2RSBMS36.js";import{a as ot}from"./chunk-WG2QGIET.js";import{$a as l,$b as D,Ab as V,Fa as T,Ib as o,Jb as a,Kb as E,Lb as _,Mb as h,Mc as X,Nb as U,Ob as w,Qb as f,Qc as $,Qd as it,Rb as r,Vd as rt,Wc as I,Yb as A,Yc as tt,Yd as ft,Zc as M,_b as N,bc as q,bd as et,cc as K,db as j,ec as m,fc as Y,gb as W,gc as G,ia as R,ja as H,jc as C,jd as nt,ka as L,kb as O,kc as b,lb as z,lc as v,na as x,ob as Q,pc as Z,qb as g,sc as B,tc as J,va as c,vb as u,wa as d,za as F}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var Ot=["input"],Et=(i,s,t)=>({$implicit:i,events:s,index:t});function It(i,s){if(i&1){let t=w();_(0),o(1,"input",2),f("input",function(n){c(t);let p=r().$implicit,y=r();return d(y.onInput(n,p-1))})("focus",function(n){c(t);let p=r(2);return d(p.onInputFocus(n))})("blur",function(n){c(t);let p=r(2);return d(p.onInputBlur(n))})("paste",function(n){c(t);let p=r(2);return d(p.onPaste(n))})("keydown",function(n){c(t);let p=r(2);return d(p.onKeyDown(n))}),a(),h()}if(i&2){let t=r().$implicit,e=r();l(),u("value",e.getModelValue(t))("maxLength",t===1?e.length:1)("type",e.inputType)("pSize",e.size)("variant",e.variant)("readonly",e.readonly)("disabled",e.disabled)("tabindex",e.tabindex)("pAutoFocus",e.getAutofocus(t))("ngClass",e.styleClass)}}function Mt(i,s){i&1&&U(0)}function St(i,s){if(i&1&&(_(0),g(1,Mt,1,0,"ng-container",3),h()),i&2){let t=r().$implicit,e=r();l(),u("ngTemplateOutlet",e.inputTemplate||e._inputTemplate)("ngTemplateOutletContext",J(2,Et,e.getToken(t-1),e.getTemplateEvents(t-1),t))}}function kt(i,s){if(i&1&&(_(0),g(1,It,2,10,"ng-container",1)(2,St,2,6,"ng-container",1),h()),i&2){let t=r();l(),u("ngIf",!t.inputTemplate&&!t._inputTemplate),l(),u("ngIf",t.inputTemplate||t._inputTemplate)}}var Ft=({dt:i})=>`
|
|
2
2
|
.p-inputotp {
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as re}from"./chunk-LNVTHMH7.js";import{u as ae,v as se,w as le}from"./chunk-
|
|
1
|
+
import{a as re}from"./chunk-LNVTHMH7.js";import{u as ae,v as se,w as le}from"./chunk-FY5VLGQC.js";import{P as ce}from"./chunk-IX5URHI7.js";import{a as z,c as K}from"./chunk-GIKR6Y2K.js";import{e as oe}from"./chunk-ZZ7LHETD.js";import{a as g}from"./chunk-2FWFPV5I.js";import{E as te,G as ie,c as X,e as v,h as Y,i as Z,t as $,w as ee}from"./chunk-2RSBMS36.js";import{a as M}from"./chunk-AHCRE4GP.js";import{$a as s,Db as T,E as D,Fa as I,H as G,I as B,Ib as r,Jb as a,Kb as E,Qb as w,Rb as F,T as L,Vd as Q,W as S,Wc as W,Y as N,Yd as ne,Zc as A,aa as U,db as P,e as h,ec as f,fa as H,ja as V,kb as q,la as j,n as k,na as p,o as _,p as x,qb as d,rc as O,sd as J,t as y,v as R,vb as l}from"./chunk-DZT5XHBQ.js";import{j as u}from"./chunk-7DCB7DB2.js";var C=class{};var Be=new j("baseURL"),b=class n extends C{connection;_cache=new Map;_Data=new h({});Data=this._Data.asObservable();previousCountByEpc={};httpService=p(ne);toastService=p(Q);_isConnected=new h(!1);isConnected=this._isConnected.asObservable();_bufferTime=new h(100);set bufferTime(i){this._bufferTime.next(i)}get bufferTime(){return this._bufferTime.getValue()}intializeWebSocket(i="/"){return u(this,null,function*(){if(i.length<=0){this.toastService.error("RFID URL cannot be empty",g.Error);return}this.connection=new K().withUrl(i).configureLogging(z.Information).build();try{yield this.connection.start(),yield this.initiateGroupSubscription(),this.onWebSocketMessageReceived(),this._isConnected.next(!0),this.toastService.success("RFID Connected",g.Success)}catch(t){throw this._isConnected.next(!1),this.toastService.error(JSON.stringify(t),g.Error),setTimeout(()=>this.intializeWebSocket(),5e3),new Error(JSON.stringify(t))}})}initiateGroupSubscription(){return u(this,null,function*(){try{yield this.connection.invoke("SubscribeGroup",{CurrentID:"TransferOrder"})}catch(i){throw this.toastService.error(JSON.stringify(i),g.Error),new Error(JSON.stringify(i))}})}onWebSocketMessageReceived(){try{this.connection.on("ReceiveSignal",i=>{this._Data.next(i)})}catch(i){throw new Error(JSON.stringify(i))}}getVariantByCode(i,t=M.GuidEmpty){let e=[{key:"Code",value:i},{key:"EntityID",value:t}];return this.httpService.get(ce.GetVariantByCode,e).pipe(B(o=>o instanceof J?_(null):x(()=>new Error(o.message))))}processGroupedData(i=M.GuidEmpty){return this._Data.pipe(D(t=>t!==null&&t&&Object.keys(t).length>0),G(this._bufferTime.getValue()),R(t=>k(t)),L(t=>t.epc),R(t=>t.pipe(S((e,o)=>[...e,o],[]),U(e=>{let o=t.key;if(this._cache.has(o))return this._cache.get(o).pipe(y(c=>({epc:o,items:e,response:c})));{let c=this.getVariantByCode(o,i).pipe(D(m=>m),H(m=>this._cache.set(o,_(m))));return this._cache.set(o,c),c.pipe(y(m=>({epc:o,items:e,response:m})))}}))),S((t,e)=>{let o=this.previousCountByEpc&&this.previousCountByEpc[e.epc]||0,c=e.items.length,m=c-o;return t[e.epc]={data:e.items,count:m,variant:e.response},this.previousCountByEpc[e.epc]=c,t},{}),N({bufferSize:1,refCount:!0}))}constructor(){super()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})};var me=n=>({"is-invalid":n});function ue(n,i){n&1&&(r(0,"span"),f(1,"Host URL is required."),a())}function de(n,i){if(n&1&&(r(0,"div",6),d(1,ue,2,0,"span",8),E(2,"span"),a()),n&2){let t,e=F();s(),l("ngIf",(t=e.form.get("hostURL").errors)==null?null:t.required)}}function ge(n,i){n&1&&(r(0,"span"),f(1,"Host URL is required."),a())}function he(n,i){n&1&&(r(0,"span"),f(1,"BufferTime must be at least 100"),a())}function ve(n,i){if(n&1&&(r(0,"div",6),d(1,ge,2,0,"span",8)(2,he,2,0,"span",8),a()),n&2){let t,e,o=F();s(),l("ngIf",(t=o.form.get("bufferTime").errors)==null?null:t.required),s(),l("ngIf",(e=o.form.get("bufferTime").errors)==null?null:e.min)}}var fe=class n{constructor(i){this.dialogRef=i;this.form=this.fb.group({hostURL:["https://localhost:5001/rfidhub",[v.required]],bufferTime:["100",[v.required,v.min(100)]]},{updateOn:"change"}),this.config.title="Connect RFID",this.config.customWidth="400px"}config=new ae;isConnect=new I(!1);RFIDConnectionService=p(b);fb=p(te);onOK=new I;form;ok(){return u(this,null,function*(){this.onOK.emit(this.form.value),this.dialogRef.close("void")})}close(){this.dialogRef.close()}onBlur(i){this.form.patchValue({bufferTime:Number(i.value)})}static \u0275fac=function(t){return new(t||n)(P(oe))};static \u0275cmp=q({type:n,selectors:[["POS-dialog-connect-rfid"]],outputs:{onOK:"onOK"},decls:15,vars:12,consts:[[3,"onCancel","onClose","onOk","dynamicValidated","config"],[1,"d-flex","flex-column",2,"row-gap","1rem"],[1,"fw-normal"],[1,"form-floating-outline",3,"formGroup"],["formControlName","hostURL","id","floatingInput","placeholder","https://localhost:5030/rfidhub","type","text",1,"form-control",3,"ngClass"],["for","floatingInput"],["id","",1,"invalid-feedback"],["formControlName","bufferTime","id","floatingInput","placeholder","100","type","text",1,"form-control",3,"blur","ngClass"],[4,"ngIf"]],template:function(t,e){t&1&&(r(0,"modal-material",0),w("onCancel",function(){return e.close()})("onClose",function(){return e.close()})("onOk",function(){return e.ok()}),r(1,"content")(2,"div",1)(3,"h4",2),f(4,"Please input the RFID Host URL:"),a(),r(5,"div",3),E(6,"input",4),r(7,"label",5),f(8,"Host URL"),a(),d(9,de,3,1,"div",6),a(),r(10,"div",3)(11,"input",7),w("blur",function(){return e.onBlur(e.form.get("bufferTime"))}),a(),r(12,"label",5),f(13,"Buffer Time (ms)"),a(),d(14,ve,3,2,"div",6),a()()()()),t&2&&(l("dynamicValidated",e.form.valid)("config",e.config),s(5),l("formGroup",e.form),s(),l("ngClass",O(8,me,e.form.invalid&&e.form.touched)),s(3),T(e.form.get("hostURL").invalid&&e.form.get("hostURL").touched?9:-1),s(),l("formGroup",e.form),s(),l("ngClass",O(10,me,e.form.invalid&&e.form.touched)),s(3),T(e.form.get("bufferTime").invalid&&e.form.get("bufferTime").touched?14:-1))},dependencies:[le,se,re,A,ie,X,Y,Z,$,ee,W],styles:[".form-control.is-invalid[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]})};export{C as a,b,fe as c};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{F as fe,I as at,M as _e,N as st,O as lt,R as Y,S as K,T as ct,U as dt,V as ye,_ as P,ba as ie,d as ne,ea as be,g as tt,i as ge,l as nt,t as ot,u as it,x as rt,y as H,z as oe}from"./chunk-567HXZXC.js";import{$ as Z,$b as $e,Ba as k,D as Ee,Da as V,E as G,Ea as Be,Fa as Fe,Ga as Le,Ib as He,Jb as Ye,Jc as Qe,Ka as z,Kc as Ze,Ma as ue,N as T,Oc as pe,Pa as Pe,Pb as me,Pc as Xe,Qa as qe,Qb as Ke,Qc as Je,R as je,Sc as te,Ta as Ge,Zb as Ue,_b as We,ab as Ve,c as p,cb as ze,d as S,da as Re,f as Te,ha as ce,ja as R,ka as M,kb as J,kd as et,la as w,lb as B,ma as de,mb as F,n as le,na as d,o as ke,ob as L,pb as Ne,qb as ee,ta as E,u as Ie,ua as Me,ub as N,xb as he,y as Q,za as X}from"./chunk-DZT5XHBQ.js";import{a as O,b as se,j as A,p as _}from"./chunk-7DCB7DB2.js";function Tt(o,l){}var I=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext};var ve=(()=>{class o extends lt{_elementRef=d(z);_focusTrapFactory=d(it);_config;_interactivityChecker=d(ot);_ngZone=d(Le);_overlayRef=d(ye);_focusMonitor=d(nt);_renderer=d(ze);_changeDetectorRef=d(Ze);_injector=d(k);_platform=d(tt);_document=d(te,{optional:!0});_portalOutlet;_focusTrapped=new S;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=d(I,{optional:!0})||new I,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{i(),r(),e.removeAttribute("tabindex")},i=this._renderer.listen(e,"blur",n),r=this._renderer.listen(e,"mousedown",n)})),e.focus(t)}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t)}_trapFocus(e){this._isDestroyed||Ge(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let n=ne(),i=this._elementRef.nativeElement;(!n||n===this._document.body||n===i||i.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus(e)}_containsFocus(){let e=this._elementRef.nativeElement,t=ne();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ne()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=J({type:o,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&Ue(Y,7),t&2){let i;We(i=$e())&&(n._portalOutlet=i.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&N("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&ee(0,
|
|
2
|
-
`],encapsulation:2})}return o})(),U=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(l,e){this.overlayRef=l,this.config=e,this.disableClose=e.disableClose,this.backdropClick=l.backdropClick(),this.keydownEvents=l.keydownEvents(),this.outsidePointerEvents=l.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!oe(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=l.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(l,e){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(l),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(l="",e=""){return this.overlayRef.updateSize({width:l,height:e}),this}addPanelClass(l){return this.overlayRef.addPanelClass(l),this}removePanelClass(l){return this.overlayRef.removePanelClass(l),this}},kt=new w("DialogScrollStrategy",{providedIn:"root",factory:()=>{let o=d(P);return()=>o.scrollStrategies.block()}}),It=new w("DialogData"),Et=new w("DefaultDialogConfig");var Ce=(()=>{class o{_overlay=d(P);_injector=d(k);_defaultOptions=d(Et,{optional:!0});_parentDialog=d(o,{optional:!0,skipSelf:!0});_overlayContainer=d(dt);_idGenerator=d(H);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S;_afterOpenedAtThisLevel=new S;_ariaHiddenElements=new Map;_scrollStrategy=d(kt);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Q(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Z(void 0)));constructor(){}open(e,t){let n=this._defaultOptions||new I;t=O(O({},n),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let i=this._getOverlayConfig(t),r=this._overlay.create(i),a=new U(r,t),s=this._attachContainer(r,a,t);if(a.containerInstance=s,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();s._focusTrapped?s._focusTrapped.pipe(T(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,a,s,t),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){De(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){De(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),De(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let t=new ct({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,n){let i=n.injector||n.viewContainerRef?.injector,r=[{provide:I,useValue:n},{provide:U,useValue:t},{provide:ye,useValue:e}],a;n.container?typeof n.container=="function"?a=n.container:(a=n.container.type,r.push(...n.container.providers(n))):a=ve;let s=new _e(a,n.viewContainerRef,k.create({parent:i||this._injector,providers:r}));return e.attach(s).instance}_attachDialogContent(e,t,n,i){if(e instanceof Ve){let r=this._createInjector(i,t,n,void 0),a={$implicit:i.data,dialogRef:t};i.templateContext&&(a=O(O({},a),typeof i.templateContext=="function"?i.templateContext():i.templateContext)),n.attachTemplatePortal(new st(e,null,a,r))}else{let r=this._createInjector(i,t,n,this._injector),a=n.attachComponentPortal(new _e(e,i.viewContainerRef,r));t.componentRef=a,t.componentInstance=a.instance}}_createInjector(e,t,n,i){let r=e.injector||e.viewContainerRef?.injector,a=[{provide:It,useValue:e.data},{provide:U,useValue:t}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(t,e,n)):a.push(...e.providers)),e.direction&&(!r||!r.get(fe,null,{optional:!0}))&&a.push({provide:fe,useValue:{value:e.direction,change:ke()}}),k.create({parent:r||i,providers:a})}_removeOpenDialog(e,t){let n=this.openDialogs.indexOf(e);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((i,r)=>{i?r.setAttribute("aria-hidden",i):r.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i!==e&&i.nodeName!=="SCRIPT"&&i.nodeName!=="STYLE"&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function De(o,l){let e=o.length;for(;e--;)l(o[e])}var mt=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=B({type:o});static \u0275inj=M({providers:[Ce],imports:[ie,K,rt,K]})}return o})();function jt(o,l){}var $=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},xe="mdc-dialog--open",pt="mdc-dialog--opening",gt="mdc-dialog--closing",Rt=150,Mt=75,yt=(()=>{class o extends ve{_animationMode=d(qe,{optional:!0});_animationStateChanged=new Fe;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?_t(this._config.enterAnimationDuration)??Rt:0;_exitAnimationDuration=this._animationsEnabled?_t(this._config.exitAnimationDuration)??Mt:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ft,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(pt,xe)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(xe),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(xe),this._animationsEnabled?(this._hostElement.style.setProperty(ft,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(gt)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(pt,gt)}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(n){return(e||(e=X(o)))(n||o)}})();static \u0275cmp=J({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,n){t&2&&(me("id",n._config.id),N("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),he("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0))},features:[L],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(He(0,"div",0)(1,"div",1),ee(2,jt,0,0,"ng-template",2),Ye()())},dependencies:[Y],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}
|
|
3
|
-
`],encapsulation:2})}return o})(),ft="--mat-dialog-transition-duration";function _t(o){return o==null?null:typeof o=="number"?o:o.endsWith("ms")?ge(o.substring(0,o.length-2)):o.endsWith("s")?ge(o.substring(0,o.length-1))*1e3:o==="0"?0:null}var W=function(o){return o[o.OPEN=0]="OPEN",o[o.CLOSING=1]="CLOSING",o[o.CLOSED=2]="CLOSED",o}(W||{}),q=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S;_beforeClosed=new S;_result;_closeFallbackTimeout;_state=W.OPEN;_closeInteractionType;constructor(l,e,t){this._ref=l,this._containerInstance=t,this.disableClose=e.disableClose,this.id=l.id,l.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(G(n=>n.state==="opened"),T(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(G(n=>n.state==="closed"),T(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),l.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ee(this.backdropClick(),this.keydownEvents().pipe(G(n=>n.keyCode===27&&!this.disableClose&&!oe(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),Ae(this,n.type==="keydown"?"keyboard":"mouse"))})}close(l){this._result=l,this._containerInstance._animationStateChanged.pipe(G(e=>e.state==="closing"),T(1)).subscribe(e=>{this._beforeClosed.next(l),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=W.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(l){let e=this._ref.config.positionStrategy;return l&&(l.left||l.right)?l.left?e.left(l.left):e.right(l.right):e.centerHorizontally(),l&&(l.top||l.bottom)?l.top?e.top(l.top):e.bottom(l.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(l="",e=""){return this._ref.updateSize(l,e),this}addPanelClass(l){return this._ref.addPanelClass(l),this}removePanelClass(l){return this._ref.removePanelClass(l),this}getState(){return this._state}_finishDialogClose(){this._state=W.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function Ae(o,l,e){return o._closeInteractionType=l,o.close(e)}var bt=new w("MatMdcDialogData"),Dt=new w("mat-mdc-dialog-default-options"),vt=new w("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let o=d(P);return()=>o.scrollStrategies.block()}});var re=(()=>{class o{_overlay=d(P);_defaultOptions=d(Dt,{optional:!0});_scrollStrategy=d(vt);_parentDialog=d(o,{optional:!0,skipSelf:!0});_idGenerator=d(H);_dialog=d(Ce);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S;_afterOpenedAtThisLevel=new S;dialogConfigClass=$;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Q(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Z(void 0)));constructor(){this._dialogRefConstructor=q,this._dialogContainerType=yt,this._dialogDataToken=bt}open(e,t){let n;t=O(O({},this._defaultOptions||new $),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let i=this._dialog.open(e,se(O({},t),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:I,useValue:t}]},templateContext:()=>({dialogRef:n}),providers:(r,a,s)=>(n=new this._dialogRefConstructor(r,t,s),n.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:s},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=i.componentRef,n.componentInstance=i.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let r=this.openDialogs.indexOf(n);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||this._getAfterAllClosed().next())}),n}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Bt=(()=>{class o{dialogRef=d(q,{optional:!0});_elementRef=d(z);_dialog=d(re);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=xt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}_onButtonClick(e){Ae(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(t){return new(t||o)};static \u0275dir=F({type:o,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){t&1&&Ke("click",function(r){return n._onButtonClick(r)}),t&2&&N("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Me]})}return o})(),Ct=(()=>{class o{_dialogRef=d(q,{optional:!0});_elementRef=d(z);_dialog=d(re);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=xt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(t){return new(t||o)};static \u0275dir=F({type:o})}return o})(),Ft=(()=>{class o extends Ct{id=d(H).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=X(o)))(n||o)}})();static \u0275dir=F({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(t,n){t&2&&me("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[L]})}return o})(),Lt=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275dir=F({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Ne([at])]})}return o})(),Pt=(()=>{class o extends Ct{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=X(o)))(n||o)}})();static \u0275dir=F({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(t,n){t&2&&he("mat-mdc-dialog-actions-align-start",n.align==="start")("mat-mdc-dialog-actions-align-center",n.align==="center")("mat-mdc-dialog-actions-align-end",n.align==="end")},inputs:{align:"align"},features:[L]})}return o})();function xt(o,l){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?l.find(t=>t.id===e.id):null}var qt=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=B({type:o});static \u0275inj=M({providers:[re],imports:[mt,ie,K,be,be]})}return o})();function Gt(o){o||(E(Gt),o=d(V));let l=new p(e=>o.onDestroy(e.next.bind(e)));return e=>e.pipe(Re(l))}function Vt(o,l){!l?.injector&&E(Vt);let e=l?.injector??d(k),t=new Te(1),n=Je(()=>{let i;try{i=o()}catch(r){pe(()=>t.error(r));return}pe(()=>t.next(i))},{injector:e,manualCleanup:!0});return e.get(V).onDestroy(()=>{n.destroy(),t.complete()}),t.asObservable()}function zt(o,l){let e=!l?.manualCleanup;e&&!l?.injector&&E(zt);let t=e?l?.injector?.get(V)??d(V):null,n=Nt(l?.equal),i;l?.requireSync?i=ue({kind:0},{equal:n}):i=ue({kind:1,value:l?.initialValue},{equal:n});let r,a=o.subscribe({next:s=>i.set({kind:1,value:s}),error:s=>{if(l?.rejectErrors)throw s;i.set({kind:2,error:s})},complete:()=>{r?.()}});if(l?.requireSync&&i().kind===0)throw new ce(601,!1);return r=t?.onDestroy(a.unsubscribe.bind(a)),Xe(()=>{let s=i();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new ce(601,!1)}},{equal:l?.equal})}function Nt(o=Object.is){return(l,e)=>l.kind===1&&e.kind===1&&o(l.value,e.value)}function Ht(o){o===void 0&&(E(Ht),o=d(k));let l=o.get(Be);return e=>new p(t=>{let n=l.add(),i=!1;function r(){i||(n(),i=!0)}let a=e.subscribe({next:s=>{t.next(s),r()},complete:()=>{t.complete(),r()},error:s=>{t.error(s),r()}});return a.add(()=>{t.unsubscribe(),r()}),a})}var D=function(o){return o.readonly="readonly",o.readwrite="readwrite",o}(D||{}),At=new w(null),wt=new w("Indexed DB"),Yt=new w("Server Indexed DB");function Kt(o,l){return o.objectStoreNames.contains(l)}function x(o,l,e){if(!o){e("You need to use the openDatabase function to create a database before you query it!");return}Kt(o,l)||e(`objectStore does not exists: ${l}`)}function v(o,l){let e=o.transaction(l.storeName,l.dbMode);return e.onerror=l.error,e.onabort=l.abort,e}function C(o,l,e,t){return{storeName:l,dbMode:o,error:n=>{e(n)},abort:n=>{e(n)}}}var Oe=[];function y(o,l,e,t){return new Promise((n,i)=>{o||i("IndexedDB not available");let r=o.open(l,e),a;r.onsuccess=()=>{a=r.result,Oe.push(a),n(a)},r.onerror=()=>{i(`IndexedDB error: ${r.error}`)},typeof t=="function"&&(r.onupgradeneeded=s=>{t(s,a)})})}function we(o,l,e,t,n){return A(this,null,function*(){return new Promise((i,r)=>{if(!o)return;let a=o.open(l,e);a.onupgradeneeded=s=>A(null,null,function*(){let c=s.target.result,g=t.map(m=>A(null,null,function*(){if(!c.objectStoreNames.contains(m.store)){let h=c.createObjectStore(m.store,m.storeConfig);for(let f of m.storeSchema)h.createIndex(f.name,f.keypath,f.options)}}));yield Promise.all(g);let u=n&&n();if(u){let m=Object.keys(u).map(h=>parseInt(h,10)).filter(h=>h>s.oldVersion).sort((h,f)=>h-f);for(let h of m)u[h](c,a.transaction)}c.close(),i()}),a.onsuccess=s=>{s.target.result.close(),i()},a.onerror=s=>{r(s)}})})}function Ut(o,l,e){if(!o||!l||!e)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new p(t=>{try{let n=l+1,i=indexedDB.open(o,n);i.onupgradeneeded=r=>{let a=r.target.result;a.deleteObjectStore(e),a.close(),console.log("onupgradeneeded"),t.next(),t.complete()},i.onerror=r=>t.error(r)}catch(n){t.error(n)}})}function Wt(o){return new Promise((l,e)=>{if(!o){e(new Error("No database to close"));return}try{o.close(),l()}catch(t){e(`Error closing database: ${t}`)}})}function b(){return function(o,l,e){let t=e.value;return e.value=function(...n){let i=t.apply(this,n);return i instanceof p?i.pipe(je(()=>A(this,null,function*(){let r=Oe.map(a=>A(this,null,function*(){yield Wt(a)}));yield Promise.all(r),Oe.length=0}))):i},e}}var $t=(()=>{class o{constructor(e,t){this.dbConfigs=e,this.indexedDB=t,this.defaultDatabaseName=null,Object.values(this.dbConfigs).forEach((n,i,r)=>this.instanciateConfig(n,r.length===1))}instanciateConfig(e,t){return A(this,null,function*(){if(!e.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if((e.isDefault??!1)&&this.defaultDatabaseName)throw new Error("NgxIndexedDB: Only one database can be set as default");((e.isDefault??!1)&&!this.defaultDatabaseName||t)&&(this.defaultDatabaseName=e.name,this.selectedDb=e.name),yield we(this.indexedDB,e.name,e.version,e.objectStoresMeta,e.migrationFactory),y(this.indexedDB,e.name).then(n=>{n.version!==e.version&&(Qe()&&(console.warn(`
|
|
1
|
+
import{F as fe,I as at,M as _e,N as st,O as lt,R as Y,S as K,T as ct,U as dt,V as ye,_ as P,ba as ie,d as ne,ea as be,g as tt,i as ge,l as nt,t as ot,u as it,x as rt,y as H,z as oe}from"./chunk-567HXZXC.js";import{$ as Z,$b as $e,Ba as k,D as Ee,Da as V,E as G,Ea as Be,Fa as Fe,Ga as Le,Ib as He,Jb as Ye,Jc as Qe,Ka as z,Kc as Ze,Ma as ue,N as T,Oc as pe,Pa as Pe,Pb as me,Pc as Xe,Qa as qe,Qb as Ke,Qc as Je,R as je,Sc as te,Ta as Ge,Zb as Ue,_b as We,ab as Ve,c as p,cb as ze,d as S,da as Re,f as Te,ha as ce,ja as R,ka as M,kb as J,kd as et,la as w,lb as B,ma as de,mb as F,n as le,na as d,o as ke,ob as L,pb as Ne,qb as ee,ta as E,u as Ie,ua as Me,ub as N,xb as he,y as Q,za as X}from"./chunk-DZT5XHBQ.js";import{a as O,b as se,j as A,p as _}from"./chunk-7DCB7DB2.js";function Tt(o){o||(E(Tt),o=d(V));let l=new p(e=>o.onDestroy(e.next.bind(e)));return e=>e.pipe(Re(l))}function kt(o,l){!l?.injector&&E(kt);let e=l?.injector??d(k),t=new Te(1),n=Je(()=>{let i;try{i=o()}catch(r){pe(()=>t.error(r));return}pe(()=>t.next(i))},{injector:e,manualCleanup:!0});return e.get(V).onDestroy(()=>{n.destroy(),t.complete()}),t.asObservable()}function It(o,l){let e=!l?.manualCleanup;e&&!l?.injector&&E(It);let t=e?l?.injector?.get(V)??d(V):null,n=Et(l?.equal),i;l?.requireSync?i=ue({kind:0},{equal:n}):i=ue({kind:1,value:l?.initialValue},{equal:n});let r,a=o.subscribe({next:s=>i.set({kind:1,value:s}),error:s=>{if(l?.rejectErrors)throw s;i.set({kind:2,error:s})},complete:()=>{r?.()}});if(l?.requireSync&&i().kind===0)throw new ce(601,!1);return r=t?.onDestroy(a.unsubscribe.bind(a)),Xe(()=>{let s=i();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new ce(601,!1)}},{equal:l?.equal})}function Et(o=Object.is){return(l,e)=>l.kind===1&&e.kind===1&&o(l.value,e.value)}function jt(o){o===void 0&&(E(jt),o=d(k));let l=o.get(Be);return e=>new p(t=>{let n=l.add(),i=!1;function r(){i||(n(),i=!0)}let a=e.subscribe({next:s=>{t.next(s),r()},complete:()=>{t.complete(),r()},error:s=>{t.error(s),r()}});return a.add(()=>{t.unsubscribe(),r()}),a})}function Rt(o,l){}var I=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext};var ve=(()=>{class o extends lt{_elementRef=d(z);_focusTrapFactory=d(it);_config;_interactivityChecker=d(ot);_ngZone=d(Le);_overlayRef=d(ye);_focusMonitor=d(nt);_renderer=d(ze);_changeDetectorRef=d(Ze);_injector=d(k);_platform=d(tt);_document=d(te,{optional:!0});_portalOutlet;_focusTrapped=new S;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=d(I,{optional:!0})||new I,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{i(),r(),e.removeAttribute("tabindex")},i=this._renderer.listen(e,"blur",n),r=this._renderer.listen(e,"mousedown",n)})),e.focus(t)}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t)}_trapFocus(e){this._isDestroyed||Ge(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let n=ne(),i=this._elementRef.nativeElement;(!n||n===this._document.body||n===i||i.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus(e)}_containsFocus(){let e=this._elementRef.nativeElement,t=ne();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ne()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=J({type:o,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&Ue(Y,7),t&2){let i;We(i=$e())&&(n._portalOutlet=i.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&N("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&ee(0,Rt,0,0,"ng-template",0)},dependencies:[Y],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
|
|
2
|
+
`],encapsulation:2})}return o})(),U=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(l,e){this.overlayRef=l,this.config=e,this.disableClose=e.disableClose,this.backdropClick=l.backdropClick(),this.keydownEvents=l.keydownEvents(),this.outsidePointerEvents=l.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!oe(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=l.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(l,e){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(l),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(l="",e=""){return this.overlayRef.updateSize({width:l,height:e}),this}addPanelClass(l){return this.overlayRef.addPanelClass(l),this}removePanelClass(l){return this.overlayRef.removePanelClass(l),this}},Mt=new w("DialogScrollStrategy",{providedIn:"root",factory:()=>{let o=d(P);return()=>o.scrollStrategies.block()}}),Bt=new w("DialogData"),Ft=new w("DefaultDialogConfig");var Ce=(()=>{class o{_overlay=d(P);_injector=d(k);_defaultOptions=d(Ft,{optional:!0});_parentDialog=d(o,{optional:!0,skipSelf:!0});_overlayContainer=d(dt);_idGenerator=d(H);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S;_afterOpenedAtThisLevel=new S;_ariaHiddenElements=new Map;_scrollStrategy=d(Mt);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Q(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Z(void 0)));constructor(){}open(e,t){let n=this._defaultOptions||new I;t=O(O({},n),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let i=this._getOverlayConfig(t),r=this._overlay.create(i),a=new U(r,t),s=this._attachContainer(r,a,t);if(a.containerInstance=s,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();s._focusTrapped?s._focusTrapped.pipe(T(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,a,s,t),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){De(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){De(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),De(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let t=new ct({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,n){let i=n.injector||n.viewContainerRef?.injector,r=[{provide:I,useValue:n},{provide:U,useValue:t},{provide:ye,useValue:e}],a;n.container?typeof n.container=="function"?a=n.container:(a=n.container.type,r.push(...n.container.providers(n))):a=ve;let s=new _e(a,n.viewContainerRef,k.create({parent:i||this._injector,providers:r}));return e.attach(s).instance}_attachDialogContent(e,t,n,i){if(e instanceof Ve){let r=this._createInjector(i,t,n,void 0),a={$implicit:i.data,dialogRef:t};i.templateContext&&(a=O(O({},a),typeof i.templateContext=="function"?i.templateContext():i.templateContext)),n.attachTemplatePortal(new st(e,null,a,r))}else{let r=this._createInjector(i,t,n,this._injector),a=n.attachComponentPortal(new _e(e,i.viewContainerRef,r));t.componentRef=a,t.componentInstance=a.instance}}_createInjector(e,t,n,i){let r=e.injector||e.viewContainerRef?.injector,a=[{provide:Bt,useValue:e.data},{provide:U,useValue:t}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(t,e,n)):a.push(...e.providers)),e.direction&&(!r||!r.get(fe,null,{optional:!0}))&&a.push({provide:fe,useValue:{value:e.direction,change:ke()}}),k.create({parent:r||i,providers:a})}_removeOpenDialog(e,t){let n=this.openDialogs.indexOf(e);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((i,r)=>{i?r.setAttribute("aria-hidden",i):r.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i!==e&&i.nodeName!=="SCRIPT"&&i.nodeName!=="STYLE"&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function De(o,l){let e=o.length;for(;e--;)l(o[e])}var mt=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=B({type:o});static \u0275inj=M({providers:[Ce],imports:[ie,K,rt,K]})}return o})();function Lt(o,l){}var $=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},xe="mdc-dialog--open",pt="mdc-dialog--opening",gt="mdc-dialog--closing",Pt=150,qt=75,yt=(()=>{class o extends ve{_animationMode=d(qe,{optional:!0});_animationStateChanged=new Fe;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?_t(this._config.enterAnimationDuration)??Pt:0;_exitAnimationDuration=this._animationsEnabled?_t(this._config.exitAnimationDuration)??qt:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ft,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(pt,xe)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(xe),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(xe),this._animationsEnabled?(this._hostElement.style.setProperty(ft,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(gt)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(pt,gt)}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(n){return(e||(e=X(o)))(n||o)}})();static \u0275cmp=J({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,n){t&2&&(me("id",n._config.id),N("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),he("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0))},features:[L],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(He(0,"div",0)(1,"div",1),ee(2,Lt,0,0,"ng-template",2),Ye()())},dependencies:[Y],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}
|
|
3
|
+
`],encapsulation:2})}return o})(),ft="--mat-dialog-transition-duration";function _t(o){return o==null?null:typeof o=="number"?o:o.endsWith("ms")?ge(o.substring(0,o.length-2)):o.endsWith("s")?ge(o.substring(0,o.length-1))*1e3:o==="0"?0:null}var W=function(o){return o[o.OPEN=0]="OPEN",o[o.CLOSING=1]="CLOSING",o[o.CLOSED=2]="CLOSED",o}(W||{}),q=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S;_beforeClosed=new S;_result;_closeFallbackTimeout;_state=W.OPEN;_closeInteractionType;constructor(l,e,t){this._ref=l,this._containerInstance=t,this.disableClose=e.disableClose,this.id=l.id,l.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(G(n=>n.state==="opened"),T(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(G(n=>n.state==="closed"),T(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),l.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ee(this.backdropClick(),this.keydownEvents().pipe(G(n=>n.keyCode===27&&!this.disableClose&&!oe(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),Ae(this,n.type==="keydown"?"keyboard":"mouse"))})}close(l){this._result=l,this._containerInstance._animationStateChanged.pipe(G(e=>e.state==="closing"),T(1)).subscribe(e=>{this._beforeClosed.next(l),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=W.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(l){let e=this._ref.config.positionStrategy;return l&&(l.left||l.right)?l.left?e.left(l.left):e.right(l.right):e.centerHorizontally(),l&&(l.top||l.bottom)?l.top?e.top(l.top):e.bottom(l.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(l="",e=""){return this._ref.updateSize(l,e),this}addPanelClass(l){return this._ref.addPanelClass(l),this}removePanelClass(l){return this._ref.removePanelClass(l),this}getState(){return this._state}_finishDialogClose(){this._state=W.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function Ae(o,l,e){return o._closeInteractionType=l,o.close(e)}var bt=new w("MatMdcDialogData"),Dt=new w("mat-mdc-dialog-default-options"),vt=new w("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let o=d(P);return()=>o.scrollStrategies.block()}});var re=(()=>{class o{_overlay=d(P);_defaultOptions=d(Dt,{optional:!0});_scrollStrategy=d(vt);_parentDialog=d(o,{optional:!0,skipSelf:!0});_idGenerator=d(H);_dialog=d(Ce);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S;_afterOpenedAtThisLevel=new S;dialogConfigClass=$;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Q(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Z(void 0)));constructor(){this._dialogRefConstructor=q,this._dialogContainerType=yt,this._dialogDataToken=bt}open(e,t){let n;t=O(O({},this._defaultOptions||new $),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let i=this._dialog.open(e,se(O({},t),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:I,useValue:t}]},templateContext:()=>({dialogRef:n}),providers:(r,a,s)=>(n=new this._dialogRefConstructor(r,t,s),n.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:s},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=i.componentRef,n.componentInstance=i.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let r=this.openDialogs.indexOf(n);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||this._getAfterAllClosed().next())}),n}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Gt=(()=>{class o{dialogRef=d(q,{optional:!0});_elementRef=d(z);_dialog=d(re);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=xt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}_onButtonClick(e){Ae(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(t){return new(t||o)};static \u0275dir=F({type:o,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){t&1&&Ke("click",function(r){return n._onButtonClick(r)}),t&2&&N("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Me]})}return o})(),Ct=(()=>{class o{_dialogRef=d(q,{optional:!0});_elementRef=d(z);_dialog=d(re);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=xt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(t){return new(t||o)};static \u0275dir=F({type:o})}return o})(),Vt=(()=>{class o extends Ct{id=d(H).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=X(o)))(n||o)}})();static \u0275dir=F({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(t,n){t&2&&me("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[L]})}return o})(),zt=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275dir=F({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Ne([at])]})}return o})(),Nt=(()=>{class o extends Ct{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=X(o)))(n||o)}})();static \u0275dir=F({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(t,n){t&2&&he("mat-mdc-dialog-actions-align-start",n.align==="start")("mat-mdc-dialog-actions-align-center",n.align==="center")("mat-mdc-dialog-actions-align-end",n.align==="end")},inputs:{align:"align"},features:[L]})}return o})();function xt(o,l){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?l.find(t=>t.id===e.id):null}var Ht=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=B({type:o});static \u0275inj=M({providers:[re],imports:[mt,ie,K,be,be]})}return o})();var D=function(o){return o.readonly="readonly",o.readwrite="readwrite",o}(D||{}),At=new w(null),wt=new w("Indexed DB"),Yt=new w("Server Indexed DB");function Kt(o,l){return o.objectStoreNames.contains(l)}function x(o,l,e){if(!o){e("You need to use the openDatabase function to create a database before you query it!");return}Kt(o,l)||e(`objectStore does not exists: ${l}`)}function v(o,l){let e=o.transaction(l.storeName,l.dbMode);return e.onerror=l.error,e.onabort=l.abort,e}function C(o,l,e,t){return{storeName:l,dbMode:o,error:n=>{e(n)},abort:n=>{e(n)}}}var Oe=[];function y(o,l,e,t){return new Promise((n,i)=>{o||i("IndexedDB not available");let r=o.open(l,e),a;r.onsuccess=()=>{a=r.result,Oe.push(a),n(a)},r.onerror=()=>{i(`IndexedDB error: ${r.error}`)},typeof t=="function"&&(r.onupgradeneeded=s=>{t(s,a)})})}function we(o,l,e,t,n){return A(this,null,function*(){return new Promise((i,r)=>{if(!o)return;let a=o.open(l,e);a.onupgradeneeded=s=>A(null,null,function*(){let c=s.target.result,g=t.map(m=>A(null,null,function*(){if(!c.objectStoreNames.contains(m.store)){let h=c.createObjectStore(m.store,m.storeConfig);for(let f of m.storeSchema)h.createIndex(f.name,f.keypath,f.options)}}));yield Promise.all(g);let u=n&&n();if(u){let m=Object.keys(u).map(h=>parseInt(h,10)).filter(h=>h>s.oldVersion).sort((h,f)=>h-f);for(let h of m)u[h](c,a.transaction)}c.close(),i()}),a.onsuccess=s=>{s.target.result.close(),i()},a.onerror=s=>{r(s)}})})}function Ut(o,l,e){if(!o||!l||!e)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new p(t=>{try{let n=l+1,i=indexedDB.open(o,n);i.onupgradeneeded=r=>{let a=r.target.result;a.deleteObjectStore(e),a.close(),console.log("onupgradeneeded"),t.next(),t.complete()},i.onerror=r=>t.error(r)}catch(n){t.error(n)}})}function Wt(o){return new Promise((l,e)=>{if(!o){e(new Error("No database to close"));return}try{o.close(),l()}catch(t){e(`Error closing database: ${t}`)}})}function b(){return function(o,l,e){let t=e.value;return e.value=function(...n){let i=t.apply(this,n);return i instanceof p?i.pipe(je(()=>A(this,null,function*(){let r=Oe.map(a=>A(this,null,function*(){yield Wt(a)}));yield Promise.all(r),Oe.length=0}))):i},e}}var $t=(()=>{class o{constructor(e,t){this.dbConfigs=e,this.indexedDB=t,this.defaultDatabaseName=null,Object.values(this.dbConfigs).forEach((n,i,r)=>this.instanciateConfig(n,r.length===1))}instanciateConfig(e,t){return A(this,null,function*(){if(!e.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if((e.isDefault??!1)&&this.defaultDatabaseName)throw new Error("NgxIndexedDB: Only one database can be set as default");((e.isDefault??!1)&&!this.defaultDatabaseName||t)&&(this.defaultDatabaseName=e.name,this.selectedDb=e.name),yield we(this.indexedDB,e.name,e.version,e.objectStoresMeta,e.migrationFactory),y(this.indexedDB,e.name).then(n=>{n.version!==e.version&&(Qe()&&(console.warn(`
|
|
4
4
|
Your DB Config doesn't match the most recent version of the DB with name ${e.name}, please update it
|
|
5
5
|
DB current version: ${n.version};
|
|
6
6
|
Your configuration: ${e.version};
|
|
7
|
-
`),console.warn(`Using latest version ${n.version}`)),this.dbConfigs[e.name].version=n.version),n.close()})})}get dbConfig(){return this.dbConfigs[this.selectedDb]}getDatabaseVersion(){return new p(e=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{e.next(t.version),e.complete()}).catch(t=>e.error(`error during get version of database => ${t} `))})}selectDb(e){if(e=e??this.defaultDatabaseName,!e)throw new Error("No database name specified and no default database set.");if(!Object.keys(this.dbConfigs).includes(e))throw new Error(`NgxIndexedDB: Database ${e} is not initialized.`);this.selectedDb=e}createObjectStore(e,t){return A(this,null,function*(){let n=[e];yield we(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,n,t)})}createDynamicObjectStore(e,t){return A(this,null,function*(){let n=[e];yield we(this.indexedDB,this.dbConfig.name,this.dbConfig.version,n,t)})}add(e,t,n){return new p(i=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{let s=v(r,C(D.readwrite,e,u=>i.error(u))).objectStore(e),g=!!n?s.add(t,n):s.add(t);g.onsuccess=u=>A(this,null,function*(){let m=u.target.result,h=s.get(m);h.onsuccess=f=>{i.next(f.target.result),i.complete()},h.onerror=f=>{i.error(f)}}),g.onerror=u=>{i.error(u)}}).catch(r=>i.error(r))})}bulkAdd(e,t){let n=new Promise((i,r)=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{let c=v(a,C(D.readwrite,e,i,r)).objectStore(e),g=t.map(u=>new Promise(m=>{let h=u.key;delete u.key;let j=!!h?c.add(u,h):c.add(u);j.onsuccess=ae=>{let St=ae.target.result;m(St)}}));i(Promise.all(g))}).catch(a=>r(a))});return le(n)}bulkDelete(e,t){let n=t.map(i=>new Promise((r,a)=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{let c=v(s,C(D.readwrite,e,a,r));c.objectStore(e).delete(i),c.oncomplete=()=>{this.getAll(e).pipe(T(1)).subscribe(u=>{r(u)})}}).catch(s=>a(s))}));return le(Promise.all(n))}getByKey(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{let s=v(i,C(D.readonly,e,n.error)).objectStore(e).get(t);s.onsuccess=c=>{n.next(c.target.result),n.complete()},s.onerror=c=>{n.error(c)}}).catch(i=>n.error(i))})}bulkGet(e,t){let n=t.map(i=>this.getByKey(e,i));return new p(i=>{Ie(n).subscribe(r=>{i.next(r),i.complete()})})}getByID(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{x(i,e,c=>n.error(c));let s=v(i,C(D.readonly,e,n.error,n.next)).objectStore(e).get(t);s.onsuccess=c=>{n.next(c.target.result),n.complete()}}).catch(i=>n.error(i))})}getByIndex(e,t,n){return new p(i=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{x(r,e,u=>i.error(u));let g=v(r,C(D.readonly,e,i.error)).objectStore(e).index(t).get(n);g.onsuccess=u=>{i.next(u.target.result),i.complete()}}).catch(r=>i.error(r))})}getAll(e){return new p(t=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{x(n,e,s=>t.error(s));let a=v(n,C(D.readonly,e,t.error,t.next)).objectStore(e).getAll();a.onerror=s=>{t.error(s)},a.onsuccess=({target:{result:s}})=>{t.next(s),t.complete()}}).catch(n=>t.error(n))})}update(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{x(i,e,c=>n.error(c));let a=v(i,C(D.readwrite,e,c=>n.error(c))).objectStore(e),s=a.put(t);s.onsuccess=c=>A(this,null,function*(){let g=c.target.result,u=a.get(g);u.onsuccess=m=>{n.next(m.target.result),n.complete()}})}).catch(i=>n.error(i))})}bulkPut(e,t){let n;return new p(i=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{x(r,e,s=>i.error(s)),n=v(r,C(D.readwrite,e,s=>i.error(s)));let a=n.objectStore(e);t.forEach((s,c)=>{let g=a.put(s);c===t.length-1&&(g.onsuccess=u=>{n.commit(),i.next(u.target.result),i.complete()}),g.onerror=u=>{n.abort(),i.error(u)}})}).catch(r=>{n?.abort(),i.error(r)})})}delete(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{x(i,e,s=>n.error(s));let r=v(i,C(D.readwrite,e,s=>n.error(s)));r.objectStore(e).delete(t),r.onerror=s=>n.error(s),r.oncomplete=()=>{this.getAll(e).pipe(T(1)).subscribe({next:s=>{n.next(s)},error:s=>n.error(s),complete:()=>n.complete()})}}).catch(i=>n.error(i))})}deleteByKey(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{x(i,e,s=>n.error(s));let r=v(i,C(D.readwrite,e,s=>n.error(s)));r.objectStore(e).delete(t),r.onerror=s=>n.error(s),r.oncomplete=()=>{n.next(),n.complete()}}).catch(i=>n.error(i))})}deleteAllByIndex(e,t,n,i){return new p(r=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{x(a,e,m=>r.error(m));let u=v(a,C(D.readwrite,e,r.error)).objectStore(e).index(t).openCursor(n,i);u.onerror=m=>r.error(m),u.onsuccess=m=>{let h=m.target.result;h?(h.delete(),h.continue()):(r.next(),r.complete())}}).catch(a=>r.error(a))})}clear(e){return new p(t=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{x(n,e,a=>t.error(a));let i=v(n,C(D.readwrite,e,a=>t.error(a)));i.objectStore(e).clear(),i.onerror=a=>t.error(a),i.oncomplete=()=>{t.next(),t.complete()}}).catch(n=>t.error(n))})}deleteDatabase(){return new p(e=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>A(this,null,function*(){t.close();let n=this.indexedDB.deleteDatabase(this.dbConfig.name);n.onsuccess=()=>{e.next(),e.complete()},n.onerror=i=>e.error(i),n.onblocked=()=>{console.warn("Delete blocked: Ensure all tabs, instances, or connections are closed. Database name:",this.dbConfig.name),e.error(new Error("Unable to delete database because it's blocked"))}})).catch(t=>e.error(t))})}openCursor(e){let{storeName:t,query:n,direction:i,mode:r=D.readonly}=e;return new p(a=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{x(s,t,m=>a.error(m));let c=v(s,C(r,t,a.error)),u=c.objectStore(t).openCursor(n,i);c.oncomplete=()=>a.complete(),u.onerror=m=>a.error(m),u.onsuccess=m=>{let h=m.target.result;h&&a.next(h)}}).catch(s=>a.error(s))})}openCursorByIndex(e){let{storeName:t,indexName:n,query:i,direction:r,mode:a=D.readonly}=e;return new p(s=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(c=>{x(c,t,f=>s.error(f));let g=v(c,C(a,t,s.error)),h=g.objectStore(t).index(n).openCursor(i,r);g.oncomplete=()=>s.complete(),h.onerror=f=>s.error(f),h.onsuccess=f=>{let j=f.target.result;j&&s.next(j)}}).catch(c=>s.error(c))})}getAllByIndex(e,t,n,i){return new p(r=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{x(a,e,h=>r.error(h));let u=v(a,C(D.readonly,e,r.error)).objectStore(e).index(t).openCursor(n,i),m=[];u.onerror=h=>r.error(h),u.onsuccess=h=>{let f=h.target.result;f?(m.push(f.value),f.continue()):(r.next(m),r.complete())}}).catch(a=>r.error(a))})}getAllKeysByIndex(e,t,n,i){return new p(r=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{x(a,e,h=>r.error(h));let g=v(a,C(D.readonly,e,r.error)).objectStore(e).index(t),u=[],m=g.openKeyCursor(n,i);m.onerror=h=>r.error(h),m.onsuccess=h=>{let f=h.target.result;if(f){let{primaryKey:j,key:ae}=f;u.push({primaryKey:j,key:ae}),f.continue()}else r.next(u),r.complete()}}).catch(a=>r.error(a))})}count(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{x(i,e,c=>n.error(c));let s=v(i,C(D.readonly,e,n.error)).objectStore(e).count(t);s.onerror=c=>n.error(c),s.onsuccess=c=>{n.next(c.target.result),n.complete()}}).catch(i=>n.error(i))})}countByIndex(e,t,n){return new p(i=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{x(r,e,u=>i.error(u));let g=v(r,C(D.readonly,e,i.error)).objectStore(e).index(t).count(n);g.onerror=u=>i.error(u),g.onsuccess=u=>{i.next(u.target.result),i.complete()}}).catch(r=>i.error(r))})}deleteObjectStore(e){return Ut(this.dbConfig.name,++this.dbConfig.version,e)}getAllObjectStoreNames(){return new p(e=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{e.next(Array.from(t.objectStoreNames)),e.complete()}).catch(t=>e.error(t))})}static{this.\u0275fac=function(t){return new(t||o)(de(At),de(wt))}}static{this.\u0275prov=R({token:o,factory:o.\u0275fac})}}return _([b()],o.prototype,"getDatabaseVersion",null),_([b()],o.prototype,"add",null),_([b()],o.prototype,"bulkAdd",null),_([b()],o.prototype,"bulkDelete",null),_([b()],o.prototype,"getByKey",null),_([b()],o.prototype,"bulkGet",null),_([b()],o.prototype,"getByID",null),_([b()],o.prototype,"getByIndex",null),_([b()],o.prototype,"getAll",null),_([b()],o.prototype,"update",null),_([b()],o.prototype,"bulkPut",null),_([b()],o.prototype,"delete",null),_([b()],o.prototype,"deleteByKey",null),_([b()],o.prototype,"deleteAllByIndex",null),_([b()],o.prototype,"clear",null),_([b()],o.prototype,"deleteDatabase",null),_([b()],o.prototype,"openCursor",null),_([b()],o.prototype,"openCursorByIndex",null),_([b()],o.prototype,"getAllByIndex",null),_([b()],o.prototype,"getAllKeysByIndex",null),_([b()],o.prototype,"count",null),_([b()],o.prototype,"countByIndex",null),_([b()],o.prototype,"getAllObjectStoreNames",null),o})(),Se=class{cmp(){return 0}databases(){return Promise.resolve([])}deleteDatabase(){return{onupgradeneeded:null,onblocked:null,onerror:null,onsuccess:null,error:null}}open(){return{onupgradeneeded:null,onblocked:null,onerror:null,onsuccess:null,error:null}}};function Ot(){E(Ot);let o=d(Pe),l=d(Yt,{optional:!0})??new Se;return et(o)?d(te).defaultView.indexedDB:l}var Qt=(...o)=>{let l=o.reduce((e,t)=>(e[t.name]=t,e),{});return[$t,{provide:At,useValue:l},{provide:wt,useFactory:Ot}]},lo=(()=>{class o{static forRoot(...e){return{ngModule:o,providers:[...Qt(...e)]}}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=B({type:o})}static{this.\u0275inj=M({})}}return o})();export{
|
|
7
|
+
`),console.warn(`Using latest version ${n.version}`)),this.dbConfigs[e.name].version=n.version),n.close()})})}get dbConfig(){return this.dbConfigs[this.selectedDb]}getDatabaseVersion(){return new p(e=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{e.next(t.version),e.complete()}).catch(t=>e.error(`error during get version of database => ${t} `))})}selectDb(e){if(e=e??this.defaultDatabaseName,!e)throw new Error("No database name specified and no default database set.");if(!Object.keys(this.dbConfigs).includes(e))throw new Error(`NgxIndexedDB: Database ${e} is not initialized.`);this.selectedDb=e}createObjectStore(e,t){return A(this,null,function*(){let n=[e];yield we(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,n,t)})}createDynamicObjectStore(e,t){return A(this,null,function*(){let n=[e];yield we(this.indexedDB,this.dbConfig.name,this.dbConfig.version,n,t)})}add(e,t,n){return new p(i=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{let s=v(r,C(D.readwrite,e,u=>i.error(u))).objectStore(e),g=!!n?s.add(t,n):s.add(t);g.onsuccess=u=>A(this,null,function*(){let m=u.target.result,h=s.get(m);h.onsuccess=f=>{i.next(f.target.result),i.complete()},h.onerror=f=>{i.error(f)}}),g.onerror=u=>{i.error(u)}}).catch(r=>i.error(r))})}bulkAdd(e,t){let n=new Promise((i,r)=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{let c=v(a,C(D.readwrite,e,i,r)).objectStore(e),g=t.map(u=>new Promise(m=>{let h=u.key;delete u.key;let j=!!h?c.add(u,h):c.add(u);j.onsuccess=ae=>{let St=ae.target.result;m(St)}}));i(Promise.all(g))}).catch(a=>r(a))});return le(n)}bulkDelete(e,t){let n=t.map(i=>new Promise((r,a)=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{let c=v(s,C(D.readwrite,e,a,r));c.objectStore(e).delete(i),c.oncomplete=()=>{this.getAll(e).pipe(T(1)).subscribe(u=>{r(u)})}}).catch(s=>a(s))}));return le(Promise.all(n))}getByKey(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{let s=v(i,C(D.readonly,e,n.error)).objectStore(e).get(t);s.onsuccess=c=>{n.next(c.target.result),n.complete()},s.onerror=c=>{n.error(c)}}).catch(i=>n.error(i))})}bulkGet(e,t){let n=t.map(i=>this.getByKey(e,i));return new p(i=>{Ie(n).subscribe(r=>{i.next(r),i.complete()})})}getByID(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{x(i,e,c=>n.error(c));let s=v(i,C(D.readonly,e,n.error,n.next)).objectStore(e).get(t);s.onsuccess=c=>{n.next(c.target.result),n.complete()}}).catch(i=>n.error(i))})}getByIndex(e,t,n){return new p(i=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{x(r,e,u=>i.error(u));let g=v(r,C(D.readonly,e,i.error)).objectStore(e).index(t).get(n);g.onsuccess=u=>{i.next(u.target.result),i.complete()}}).catch(r=>i.error(r))})}getAll(e){return new p(t=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{x(n,e,s=>t.error(s));let a=v(n,C(D.readonly,e,t.error,t.next)).objectStore(e).getAll();a.onerror=s=>{t.error(s)},a.onsuccess=({target:{result:s}})=>{t.next(s),t.complete()}}).catch(n=>t.error(n))})}update(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{x(i,e,c=>n.error(c));let a=v(i,C(D.readwrite,e,c=>n.error(c))).objectStore(e),s=a.put(t);s.onsuccess=c=>A(this,null,function*(){let g=c.target.result,u=a.get(g);u.onsuccess=m=>{n.next(m.target.result),n.complete()}})}).catch(i=>n.error(i))})}bulkPut(e,t){let n;return new p(i=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{x(r,e,s=>i.error(s)),n=v(r,C(D.readwrite,e,s=>i.error(s)));let a=n.objectStore(e);t.forEach((s,c)=>{let g=a.put(s);c===t.length-1&&(g.onsuccess=u=>{n.commit(),i.next(u.target.result),i.complete()}),g.onerror=u=>{n.abort(),i.error(u)}})}).catch(r=>{n?.abort(),i.error(r)})})}delete(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{x(i,e,s=>n.error(s));let r=v(i,C(D.readwrite,e,s=>n.error(s)));r.objectStore(e).delete(t),r.onerror=s=>n.error(s),r.oncomplete=()=>{this.getAll(e).pipe(T(1)).subscribe({next:s=>{n.next(s)},error:s=>n.error(s),complete:()=>n.complete()})}}).catch(i=>n.error(i))})}deleteByKey(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{x(i,e,s=>n.error(s));let r=v(i,C(D.readwrite,e,s=>n.error(s)));r.objectStore(e).delete(t),r.onerror=s=>n.error(s),r.oncomplete=()=>{n.next(),n.complete()}}).catch(i=>n.error(i))})}deleteAllByIndex(e,t,n,i){return new p(r=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{x(a,e,m=>r.error(m));let u=v(a,C(D.readwrite,e,r.error)).objectStore(e).index(t).openCursor(n,i);u.onerror=m=>r.error(m),u.onsuccess=m=>{let h=m.target.result;h?(h.delete(),h.continue()):(r.next(),r.complete())}}).catch(a=>r.error(a))})}clear(e){return new p(t=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{x(n,e,a=>t.error(a));let i=v(n,C(D.readwrite,e,a=>t.error(a)));i.objectStore(e).clear(),i.onerror=a=>t.error(a),i.oncomplete=()=>{t.next(),t.complete()}}).catch(n=>t.error(n))})}deleteDatabase(){return new p(e=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>A(this,null,function*(){t.close();let n=this.indexedDB.deleteDatabase(this.dbConfig.name);n.onsuccess=()=>{e.next(),e.complete()},n.onerror=i=>e.error(i),n.onblocked=()=>{console.warn("Delete blocked: Ensure all tabs, instances, or connections are closed. Database name:",this.dbConfig.name),e.error(new Error("Unable to delete database because it's blocked"))}})).catch(t=>e.error(t))})}openCursor(e){let{storeName:t,query:n,direction:i,mode:r=D.readonly}=e;return new p(a=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{x(s,t,m=>a.error(m));let c=v(s,C(r,t,a.error)),u=c.objectStore(t).openCursor(n,i);c.oncomplete=()=>a.complete(),u.onerror=m=>a.error(m),u.onsuccess=m=>{let h=m.target.result;h&&a.next(h)}}).catch(s=>a.error(s))})}openCursorByIndex(e){let{storeName:t,indexName:n,query:i,direction:r,mode:a=D.readonly}=e;return new p(s=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(c=>{x(c,t,f=>s.error(f));let g=v(c,C(a,t,s.error)),h=g.objectStore(t).index(n).openCursor(i,r);g.oncomplete=()=>s.complete(),h.onerror=f=>s.error(f),h.onsuccess=f=>{let j=f.target.result;j&&s.next(j)}}).catch(c=>s.error(c))})}getAllByIndex(e,t,n,i){return new p(r=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{x(a,e,h=>r.error(h));let u=v(a,C(D.readonly,e,r.error)).objectStore(e).index(t).openCursor(n,i),m=[];u.onerror=h=>r.error(h),u.onsuccess=h=>{let f=h.target.result;f?(m.push(f.value),f.continue()):(r.next(m),r.complete())}}).catch(a=>r.error(a))})}getAllKeysByIndex(e,t,n,i){return new p(r=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{x(a,e,h=>r.error(h));let g=v(a,C(D.readonly,e,r.error)).objectStore(e).index(t),u=[],m=g.openKeyCursor(n,i);m.onerror=h=>r.error(h),m.onsuccess=h=>{let f=h.target.result;if(f){let{primaryKey:j,key:ae}=f;u.push({primaryKey:j,key:ae}),f.continue()}else r.next(u),r.complete()}}).catch(a=>r.error(a))})}count(e,t){return new p(n=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{x(i,e,c=>n.error(c));let s=v(i,C(D.readonly,e,n.error)).objectStore(e).count(t);s.onerror=c=>n.error(c),s.onsuccess=c=>{n.next(c.target.result),n.complete()}}).catch(i=>n.error(i))})}countByIndex(e,t,n){return new p(i=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{x(r,e,u=>i.error(u));let g=v(r,C(D.readonly,e,i.error)).objectStore(e).index(t).count(n);g.onerror=u=>i.error(u),g.onsuccess=u=>{i.next(u.target.result),i.complete()}}).catch(r=>i.error(r))})}deleteObjectStore(e){return Ut(this.dbConfig.name,++this.dbConfig.version,e)}getAllObjectStoreNames(){return new p(e=>{y(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{e.next(Array.from(t.objectStoreNames)),e.complete()}).catch(t=>e.error(t))})}static{this.\u0275fac=function(t){return new(t||o)(de(At),de(wt))}}static{this.\u0275prov=R({token:o,factory:o.\u0275fac})}}return _([b()],o.prototype,"getDatabaseVersion",null),_([b()],o.prototype,"add",null),_([b()],o.prototype,"bulkAdd",null),_([b()],o.prototype,"bulkDelete",null),_([b()],o.prototype,"getByKey",null),_([b()],o.prototype,"bulkGet",null),_([b()],o.prototype,"getByID",null),_([b()],o.prototype,"getByIndex",null),_([b()],o.prototype,"getAll",null),_([b()],o.prototype,"update",null),_([b()],o.prototype,"bulkPut",null),_([b()],o.prototype,"delete",null),_([b()],o.prototype,"deleteByKey",null),_([b()],o.prototype,"deleteAllByIndex",null),_([b()],o.prototype,"clear",null),_([b()],o.prototype,"deleteDatabase",null),_([b()],o.prototype,"openCursor",null),_([b()],o.prototype,"openCursorByIndex",null),_([b()],o.prototype,"getAllByIndex",null),_([b()],o.prototype,"getAllKeysByIndex",null),_([b()],o.prototype,"count",null),_([b()],o.prototype,"countByIndex",null),_([b()],o.prototype,"getAllObjectStoreNames",null),o})(),Se=class{cmp(){return 0}databases(){return Promise.resolve([])}deleteDatabase(){return{onupgradeneeded:null,onblocked:null,onerror:null,onsuccess:null,error:null}}open(){return{onupgradeneeded:null,onblocked:null,onerror:null,onsuccess:null,error:null}}};function Ot(){E(Ot);let o=d(Pe),l=d(Yt,{optional:!0})??new Se;return et(o)?d(te).defaultView.indexedDB:l}var Qt=(...o)=>{let l=o.reduce((e,t)=>(e[t.name]=t,e),{});return[$t,{provide:At,useValue:l},{provide:wt,useFactory:Ot}]},lo=(()=>{class o{static forRoot(...e){return{ngModule:o,providers:[...Qt(...e)]}}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=B({type:o})}static{this.\u0275inj=M({})}}return o})();export{Tt as a,kt as b,It as c,jt as d,q as e,bt as f,re as g,Gt as h,Vt as i,zt as j,Nt as k,Ht as l,$t as m,lo as n};
|
package/browser/index.html
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</script>
|
|
47
47
|
<link href="https://cdn.jsdelivr.net/npm/dealpos-font@1.9.18/font-awesome/css/all.min.css" rel="stylesheet"/>
|
|
48
48
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"/>
|
|
49
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.
|
|
49
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/styles-AWHBZGFK.css"></head>
|
|
50
50
|
|
|
51
51
|
<body>
|
|
52
52
|
<app-root>
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
</app-root>
|
|
55
55
|
<script async="" src="https://cdn.jsdelivr.net/npm/dealpos-tm@7.1.0/tinymce.min.js"></script>
|
|
56
56
|
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-element-bundle.min.js"></script>
|
|
57
|
-
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.
|
|
57
|
+
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/chunk-TDMU55LA.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/chunk-M4TPGDOJ.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/chunk-ZT4RBJMM.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/chunk-GIKR6Y2K.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/chunk-LPGMI3V2.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/chunk-ZZ7LHETD.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/chunk-567HXZXC.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/chunk-TLOTIYIE.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/chunk-2RSBMS36.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/chunk-2FXL2HDF.js"><script src="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/polyfills-22A7LMHG.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/scripts-3E2G6IZ4.js" defer></script><script src="https://cdn.jsdelivr.net/npm/dealpos@25.37.3/browser/main-E4MQYENS.js" type="module"></script></body>
|
|
58
58
|
</html>
|