marketplacepos 3.13.2 → 3.13.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/Marketplace/{chunk-FG5CLZ6F.js → chunk-2HWKPGG2.js} +1 -1
- package/Marketplace/chunk-4QAG4XV5.js +1 -0
- package/Marketplace/{chunk-OOBUECHW.js → chunk-4QGD62JF.js} +1 -1
- package/Marketplace/{chunk-5TLAX43C.js → chunk-6NUQBHVK.js} +1 -1
- package/Marketplace/chunk-6OWGDOJP.js +2 -0
- package/Marketplace/{chunk-VXKEHQ73.js → chunk-AHK65AO6.js} +1 -1
- package/Marketplace/{chunk-CS5AGUUI.js → chunk-E5ZXRZGR.js} +1 -1
- package/Marketplace/chunk-EVSENZKK.js +1 -0
- package/Marketplace/{chunk-NUHOGS4I.js → chunk-F3ASIPCS.js} +1 -1
- package/Marketplace/{chunk-TOGKMWQK.js → chunk-IIUTIA47.js} +1 -1
- package/Marketplace/chunk-JBAG4TSB.js +1 -0
- package/Marketplace/{chunk-AATQG55J.js → chunk-MQFYT7UC.js} +1 -1
- package/Marketplace/{chunk-4VJSS2RP.js → chunk-O6SPNQMQ.js} +1 -1
- package/Marketplace/{chunk-ABGYQNLC.js → chunk-P7KW5VRW.js} +1 -1
- package/Marketplace/{chunk-LCOFOENF.js → chunk-QCFKCDKM.js} +1 -1
- package/Marketplace/{chunk-FQUPOWRE.js → chunk-QPAHUI3H.js} +1 -1
- package/Marketplace/{chunk-MFCHLZW7.js → chunk-RGIPA4RC.js} +1 -1
- package/Marketplace/{chunk-M67NQISG.js → chunk-VD46BM3E.js} +1 -1
- package/Marketplace/chunk-WQ26K26X.js +1 -0
- package/Marketplace/{chunk-PMOYSZXY.js → chunk-XKP2LBOB.js} +1 -1
- package/Marketplace/chunk-Y2XXDDNX.js +1 -0
- package/Marketplace/{chunk-FON6ZRGN.js → chunk-YERME2YY.js} +1 -1
- package/Marketplace/{chunk-VOVI2B6O.js → chunk-YOU5DY2R.js} +1 -1
- package/Marketplace/{chunk-ENMVK7WN.js → chunk-ZHBHYT7I.js} +1 -1
- package/Marketplace/{chunk-KK2VCYNM.js → chunk-ZVNVZRA7.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-6U2BHS4K.js → main-PVT3FMFE.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-ARA3PK2O.js +0 -1
- package/Marketplace/chunk-BRTVFFDI.js +0 -1
- package/Marketplace/chunk-GEEAZIV4.js +0 -1
- package/Marketplace/chunk-KRNA3GN5.js +0 -2
- package/Marketplace/chunk-MUFSHB3B.js +0 -1
- package/Marketplace/chunk-WMVEBC4Z.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as Zn}from"./chunk-AAIK6JQ3.js";import{a as Vn,b as $e,c as Gn,d as Yn,e as Jn,g as je}from"./chunk-FON6ZRGN.js";import{a as Kn,b as qe,c as $n,d as jn,e as Hn}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import"./chunk-4TYJR476.js";import{f as Xn}from"./chunk-2UXFUEON.js";import{$ as V,$a as C,$c as ze,A as un,B as dt,C as dn,Da as gt,E as hn,Fb as Te,Fc as we,G as ht,Ga as yn,Gb as Sn,Gc as In,Hb as kn,Hc as Rn,Ia as y,Ic as Fn,Ja as J,Jc as Ln,K as pn,Kc as Be,Lc as xn,M as fn,Na as _n,Nb as En,Nc as v,Ob as Cn,Oc as Z,Pa as bn,Pb as Tn,Pc as Bn,Qc as vt,Sc as zn,T as pt,Tc as W,Uc as qn,Va as Q,Vc as St,Wb as wn,Wc as kt,X as mn,Xb as Pn,Ya as ve,Z as k,Za as yt,Zc as Se,_a as E,_c as Et,aa as se,ab as oe,ad as Un,bc as Mn,bd as Qn,ca as U,cb as Fe,cd as Wn,dd as Ke,e as lt,ga as z,gd as Ct,ha as re,ia as gn,kb as R,lb as F,mb as P,nc as An,o as ln,oa as ft,pa as mt,pb as vn,q as ct,qb as _t,qc as Dn,s as cn,sa as te,sc as Le,tb as bt,tc as Nn,vb as O,vc as On,y as ut,zc as xe}from"./chunk-77JORVC2.js";import{a as Re,d as an}from"./chunk-CRRJCY55.js";var Ki=i=>({"background-color":i});function $i(i,e){i&1&&vn(0)}function ji(i,e){if(i&1&&P(0,"sk-cube-grid",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Hi(i,e){if(i&1&&P(0,"sk-chasing-dots",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Vi(i,e){if(i&1&&P(0,"sk-double-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Ui(i,e){if(i&1&&P(0,"sk-rotating-plane",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Qi(i,e){if(i&1&&P(0,"sk-spinner-pulse",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Wi(i,e){if(i&1&&P(0,"sk-three-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Gi(i,e){if(i&1&&P(0,"sk-wandering-cubes",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Yi(i,e){if(i&1&&P(0,"sk-wave",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Xi(i,e){if(i&1&&(R(0,"div",1),ve(1,$i,1,0,"ng-container",2)(2,ji,1,1,"sk-cube-grid",3)(3,Hi,1,1,"sk-chasing-dots",3)(4,Vi,1,1,"sk-double-bounce",3)(5,Ui,1,1,"sk-rotating-plane",3)(6,Qi,1,1,"sk-spinner-pulse",3)(7,Wi,1,1,"sk-three-bounce",3)(8,Gi,1,1,"sk-wandering-cubes",3)(9,Yi,1,1,"sk-wave",3),F()),i&2){let t=O();C("opacity",t.opacity),oe("backdrop",t.backdrop),E("ngStyle",Tn(14,Ki,t.backdrop?t.backdropBackgroundColor:"transparent")),y(),E("ngComponentOutlet",t.entryComponent),y(),E("ngIf",t.spinner===t.spinkit.skCubeGrid),y(),E("ngIf",t.spinner===t.spinkit.skChasingDots),y(),E("ngIf",t.spinner===t.spinkit.skDoubleBounce),y(),E("ngIf",t.spinner===t.spinkit.skRotatingPlane),y(),E("ngIf",t.spinner===t.spinkit.skSpinnerPulse),y(),E("ngIf",t.spinner===t.spinkit.skThreeBounce),y(),E("ngIf",t.spinner===t.spinkit.skWanderingCubes),y(),E("ngIf",t.spinner===t.spinkit.skWave)}}var le=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=gn({type:i,inputs:{backgroundColor:"backgroundColor"}}),i})(),Ji=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-chasing-dots"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),Zi=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-cube-grid"]],features:[Q],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),i})(),es=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-double-bounce"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),ts=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-rotating-plane"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),i})(),ns=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-spinner-pulse"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),i})(),is=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-three-bounce"]],features:[Q],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),i})(),ss=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wandering-cubes"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),i})(),rs=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wave"]],features:[Q],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),i})(),ei={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var Tt=(()=>{class i{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new lt(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(n=>n.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(n=>n.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(n=>t.headers.has(n))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}intercept(t,n){let s=this.shouldBypass(t);return s||(this._pendingRequests++,this._pendingRequests===1&&this._pendingRequestsStatus$.next(!0)),n.handle(t).pipe(fn(()=>{s||(this._pendingRequests--,this._pendingRequests===0&&this._pendingRequestsStatus$.next(!1))}))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),os=[{provide:we,useExisting:Tt,multi:!0}],as=(()=>{class i{constructor(t){this.pendingRequestsInterceptor=t,this._visibility$=new lt(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return i.\u0275fac=function(t){return new(t||i)(U(Tt))},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ti=(()=>{class i{constructor(t,n){this.pendingRequestsInterceptor=t,this.spinnerVisibility=n,this.spinkit=ei,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=ei.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[t,n]=dn(this.pendingRequestsInterceptor.pendingRequestsStatus$,s=>s);this.isVisible$=un(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe(pt(()=>t.pipe(ht(()=>ut(this.debounceDelay))))),t.pipe(pt(()=>n.pipe(ht(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(pn(),mn(s=>this.updateExpirationDelay(s)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(t=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return ut(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return i.\u0275fac=function(t){return new(t||i)(J(Tt),J(as))},i.\u0275cmp=z({type:i,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(t,n){t&1&&(ve(0,Xi,10,16,"div",0),wn(1,"async")),t&2&&E("ngIf",Pn(1,1,n.isVisible$))},dependencies:[Dn,Le,Nn,Zi,Ji,es,ts,ns,is,ss,rs,On],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),i})(),ni=(()=>{class i{static forRoot(){return{ngModule:i,providers:[os]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=re({type:i}),i.\u0275inj=se({imports:[xe]}),i})();var cs=[{path:"",loadChildren:()=>import("./chunk-5TLAX43C.js").then(i=>i.LoginModule)},{path:"menu",loadChildren:()=>import("./chunk-ABGYQNLC.js").then(i=>i.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}],ii=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({imports:[Ct.forRoot(cs),Ct]});let i=e;return i})();var hs=()=>["/api/Channel/GetLastSyncByID"],si=(()=>{let e=class e{constructor(n,s,r){this._router=n,this.titleService=s,this.activatedRoute=r}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe(dt(n=>n instanceof Un)).pipe(ct(()=>this.activatedRoute),ct(n=>{for(;n.firstChild;)n=n.firstChild;return n}),dt(n=>n.outlet==="primary"),cn(n=>n.data)).subscribe(n=>{let s=" | Marketplace";n.title=="Dealpos x Marketplace"&&(s=""),this.titleService.setTitle(n.title+s)})}overrideDateToJsonFunction(){Date.prototype.toJSON=function(){return this.getFullYear()+"-"+n(this.getMonth()+1)+"-"+n(this.getDate())+"T"+n(this.getHours())+":"+n(this.getMinutes())+":"+n(this.getSeconds())+".000"};function n(s){return s<10?"0"+s:s}}};e.\u0275fac=function(s){return new(s||e)(J(Ke),J(xn),J(Qn))},e.\u0275cmp=z({type:e,selectors:[["app-root"]],decls:2,vars:2,consts:[[3,"filteredUrlPatterns"]],template:function(s,r){s&1&&P(0,"ng-http-loader",0)(1,"router-outlet"),s&2&&E("filteredUrlPatterns",Cn(1,hs))},dependencies:[Wn,ti]});let i=e;return i})();function ri(i){return new k(3e3,!1)}function ps(){return new k(3100,!1)}function fs(){return new k(3101,!1)}function ms(i){return new k(3001,!1)}function gs(i){return new k(3003,!1)}function ys(i){return new k(3004,!1)}function _s(i,e){return new k(3005,!1)}function bs(){return new k(3006,!1)}function vs(){return new k(3007,!1)}function Ss(i,e){return new k(3008,!1)}function ks(i){return new k(3002,!1)}function Es(i,e,t,n,s){return new k(3010,!1)}function Cs(){return new k(3011,!1)}function Ts(){return new k(3012,!1)}function ws(){return new k(3200,!1)}function Ps(){return new k(3202,!1)}function Ms(){return new k(3013,!1)}function As(i){return new k(3014,!1)}function Ds(i){return new k(3015,!1)}function Ns(i){return new k(3016,!1)}function Os(i,e){return new k(3404,!1)}function Is(i){return new k(3502,!1)}function Rs(i){return new k(3503,!1)}function Fs(){return new k(3300,!1)}function Ls(i){return new k(3504,!1)}function xs(i){return new k(3301,!1)}function Bs(i,e){return new k(3302,!1)}function zs(i){return new k(3303,!1)}function qs(i,e){return new k(3400,!1)}function Ks(i){return new k(3401,!1)}function $s(i){return new k(3402,!1)}function js(i,e){return new k(3505,!1)}function ce(i){switch(i.length){case 0:return new Se;case 1:return i[0];default:return new Et(i)}}function bi(i,e,t=new Map,n=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((b,_)=>{let p=_,g=b;if(_!=="offset")switch(p=i.normalizePropertyName(p,s),g){case ze:g=t.get(_);break;case Z:g=n.get(_);break;default:g=i.normalizeStyleValue(_,p,g,s);break}u.set(p,g)}),d||r.push(u),a=u,o=c}),s.length)throw Is(s);return r}function Wt(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&wt(t,"start",i)));break;case"done":i.onDone(()=>n(t&&wt(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&wt(t,"destroy",i)));break}}function wt(i,e,t){let n=t.totalTime,s=!!t.disabled,r=Gt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,s),o=i._data;return o!=null&&(r._data=o),r}function Gt(i,e,t,n,s="",r=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function $(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function oi(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var Hs=typeof document>"u"?null:document.documentElement;function Yt(i){let e=i.parentNode||i.host||null;return e===Hs?null:e}function Vs(i){return i.substring(1,6)=="ebkit"}var pe=null,ai=!1;function Us(i){pe||(pe=Qs()||{},ai=pe.style?"WebkitAppearance"in pe.style:!1);let e=!0;return pe.style&&!Vs(i)&&(e=i in pe.style,!e&&ai&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in pe.style)),e}function Qs(){return typeof document<"u"?document.body:null}function vi(i,e){for(;e;){if(e===i)return!0;e=Yt(e)}return!1}function Si(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var Xt=(()=>{let e=class e{validateStyleProperty(n){return Us(n)}containsElement(n,s){return vi(n,s)}getParentElement(n){return Yt(n)}query(n,s,r){return Si(n,s,r)}computeStyle(n,s,r){return r||""}animate(n,s,r,o,a,l=[],c){return new Se(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),tn=class tn{};tn.NOOP=new Xt;var ge=tn,ye=class{};var Ws=1e3,ki="{{",Gs="}}",Ei="ng-enter",Ot="ng-leave",He="ng-trigger",Ge=".ng-trigger",li="ng-animating",It=".ng-animating";function ne(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rt(parseFloat(e[1]),e[2])}function Rt(i,e){switch(e){case"s":return i*Ws;default:return i}}function Ye(i,e,t){return i.hasOwnProperty("duration")?i:Ys(i,e,t)}function Ys(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(ri(i)),{duration:0,delay:0,easing:""};s=Rt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Rt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=i;if(!t){let a=!1,l=e.length;s<0&&(e.push(ps()),a=!0),r<0&&(e.push(fs()),a=!0),a&&e.splice(l,0,ri(i))}return{duration:s,delay:r,easing:o}}function Xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,s)=>{let r=Jt(s);t&&!t.has(s)&&t.set(s,i.style[r]),i.style[r]=n})}function me(i,e){e.forEach((t,n)=>{let s=Jt(n);i.style[s]=""})}function Pe(i){return Array.isArray(i)?i.length==1?i[0]:zn(i):i}function Js(i,e,t){let n=e.params||{},s=Ci(i);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||t.push(ms(r))})}var Ft=new RegExp(`${ki}\\s*(.+?)\\s*${Gs}`,"g");function Ci(i){let e=[];if(typeof i=="string"){let t;for(;t=Ft.exec(i);)e.push(t[1]);Ft.lastIndex=0}return e}function Ae(i,e,t){let n=`${i}`,s=n.replace(Ft,(r,o)=>{let a=e[o];return a==null&&(t.push(gs(o)),a=""),a.toString()});return s==n?i:s}var Zs=/-+([a-z0-9])/g;function Jt(i){return i.replace(Zs,(...e)=>e[1].toUpperCase())}function er(i,e){return i===0||e===0}function tr(i,e,t){if(t.size&&e.length){let n=e[0],s=[];if(t.forEach((r,o)=>{n.has(o)||s.push(o),n.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Zt(i,a)))}}return e}function K(i,e,t){switch(e.type){case v.Trigger:return i.visitTrigger(e,t);case v.State:return i.visitState(e,t);case v.Transition:return i.visitTransition(e,t);case v.Sequence:return i.visitSequence(e,t);case v.Group:return i.visitGroup(e,t);case v.Animate:return i.visitAnimate(e,t);case v.Keyframes:return i.visitKeyframes(e,t);case v.Style:return i.visitStyle(e,t);case v.Reference:return i.visitReference(e,t);case v.AnimateChild:return i.visitAnimateChild(e,t);case v.AnimateRef:return i.visitAnimateRef(e,t);case v.Query:return i.visitQuery(e,t);case v.Stagger:return i.visitStagger(e,t);default:throw ys(e.type)}}function Zt(i,e){return window.getComputedStyle(i)[e]}var nr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Xe=class extends ye{normalizePropertyName(e,t){return Jt(e)}normalizeStyleValue(e,t,n,s){let r="",o=n.toString().trim();if(nr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(_s(e,n))}return o+r}};var Je="*";function ir(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>sr(n,t,e)):t.push(i),t}function sr(i,e,t){if(i[0]==":"){let l=rr(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Ds(i)),e;let s=n[1],r=n[2],o=n[3];e.push(ci(s,o));let a=s==Je&&o==Je;r[0]=="<"&&!a&&e.push(ci(o,s))}function rr(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(Ns(i)),"* => *"}}var Ve=new Set(["true","1"]),Ue=new Set(["false","0"]);function ci(i,e){let t=Ve.has(i)||Ue.has(i),n=Ve.has(e)||Ue.has(e);return(s,r)=>{let o=i==Je||i==s,a=e==Je||e==r;return!o&&t&&typeof s=="boolean"&&(o=s?Ve.has(i):Ue.has(i)),!a&&n&&typeof r=="boolean"&&(a=r?Ve.has(e):Ue.has(e)),o&&a}}var Ti=":self",or=new RegExp(`s*${Ti}s*,?`,"g");function wi(i,e,t,n){return new Lt(i).build(e,t,n)}var ui="",Lt=class{constructor(e){this._driver=e}build(e,t,n){let s=new xt(t);return this._resetContextStyleTimingState(s),K(this,Pe(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=ui,e.collectedStyles=new Map,e.collectedStyles.set(ui,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(bs()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==v.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==v.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(vs())}),{type:v.Trigger,name:e.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,o=s||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Ci(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Ss(e.name,[...r.values()]))}return{type:v.State,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=K(this,Pe(e.animation),t),s=ir(e.expr,t.errors);return{type:v.Transition,matchers:s,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:v.Sequence,steps:e.steps.map(n=>K(this,n,t)),options:fe(e.options)}}visitGroup(e,t){let n=t.currentTime,s=0,r=e.steps.map(o=>{t.currentTime=n;let a=K(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:v.Group,steps:r,options:fe(e.options)}}visitAnimate(e,t){let n=ur(e.timings,t.errors);t.currentAnimateTimings=n;let s,r=e.styles?e.styles:W({});if(r.type==v.Keyframes)s=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=W(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:v.Animate,timings:n,style:s,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Z?n.push(a):t.errors.push(ks(a)):n.push(new Map(Object.entries(a)));let r=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(ki)>=0){r=!0;break}}}),{type:v.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(r!=s&&r>=d.startTime&&s<=d.endTime&&(t.errors.push(Es(l,d.startTime,d.endTime,r,s)),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:s}),t.options&&Js(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:v.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Cs()),n;let s=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(M=>{let A=this._makeStyleAst(M,t),L=A.offset!=null?A.offset:cr(A.styles),N=0;return L!=null&&(r++,N=A.offset=L),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),A});l&&t.errors.push(Ts()),a&&t.errors.push(ws());let u=e.steps.length,b=0;r>0&&r<u?t.errors.push(Ps()):r==0&&(b=s/(u-1));let _=u-1,p=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return d.forEach((M,A)=>{let L=b>0?A==_?1:b*A:o[A],N=L*T;t.currentTime=p+g.delay+N,g.duration=N,this._validateStyleAst(M,t),M.offset=L,n.styles.push(M)}),n}visitReference(e,t){return{type:v.Reference,animation:K(this,Pe(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:v.AnimateChild,options:fe(e.options)}}visitAnimateRef(e,t){return{type:v.AnimateRef,animation:this.visitReference(e.animation,t),options:fe(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=ar(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,$(t.collectedStyles,t.currentQuerySelector,new Map);let a=K(this,Pe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:v.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ms());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ye(e.timings,t.errors,!0);return{type:v.Stagger,animation:K(this,Pe(e.animation),t),timings:n,options:null}}};function ar(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Ti);return e&&(i=i.replace(or,"")),i=i.replace(/@\*/g,Ge).replace(/@\w+/g,t=>Ge+"-"+t.slice(1)).replace(/:animating/g,It),[i,e]}function lr(i){return i?Re({},i):null}var xt=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function cr(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function ur(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=Ye(i,e).duration;return Pt(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Pt(0,0,"");return r.dynamic=!0,r.strValue=t,r}let s=Ye(t,e);return Pt(s.duration,s.delay,s.easing)}function fe(i){return i?(i=Re({},i),i.params&&(i.params=lr(i.params))):i={},i}function Pt(i,e,t){return{duration:i,delay:e,easing:t}}function en(i,e,t,n,s,r,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var De=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},dr=1,hr=":enter",pr=new RegExp(hr,"g"),fr=":leave",mr=new RegExp(fr,"g");function Pi(i,e,t,n,s,r=new Map,o=new Map,a,l,c=[]){return new Bt().buildKeyframes(i,e,t,n,s,r,o,a,l,c)}var Bt=class{buildKeyframes(e,t,n,s,r,o,a,l,c,d=[]){c=c||new De;let u=new zt(e,t,c,s,r,d,[]);u.options=l;let b=l.delay?ne(l.delay):0;u.currentTimeline.delayNextStep(b),u.currentTimeline.setStyles([o],null,u.errors,l),K(this,n,u);let _=u.timelines.filter(p=>p.containsAnimation());if(_.length&&a.size){let p;for(let g=_.length-1;g>=0;g--){let T=_[g];if(T.element===t){p=T;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return _.length?_.map(p=>p.buildKeyframes()):[en(t,[],[],[],0,b,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:ne(Ae(r,s?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,o=n.duration!=null?ne(n.duration):null,a=n.delay!=null?ne(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),K(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,s=t,r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==v.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ze);let o=ne(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>K(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],s=t.currentTimeline.currentTime,r=e.options&&e.options.delay?ne(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),K(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,s=t.params?Ae(n,t.params,t.errors):n;return Ye(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());let r=e.style;r.type==v.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?ne(s.delay):0;r&&(t.previousNode.type===v.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ze);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),K(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let b=u.currentTimeline.currentTime;o=Math.max(o,b)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;K(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-u+(s.startTime-n.currentTimeline.startTime)}},Ze={},zt=class i{constructor(e,t,n,s,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ze,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new et(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,s=this.options;n.duration!=null&&(s.duration=ne(n.duration)),n.delay!=null&&(s.delay=ne(n.delay));let r=n.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ae(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(s=>{n[s]=t[s]})}}return e}createSubContext(e=null,t,n){let s=t||this.element,r=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ze,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new qt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(pr,"."+this._enterClassName),e=e.replace(mr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!r&&a.length==0&&o.push(As(t)),a}},et=class i{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=dr,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Z),this._currentKeyframe.set(t,Z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&this._previousKeyframe.set("easing",t);let r=s&&s.params||{},o=gr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Ae(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Z),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let s=this._styleSummary.get(n);(!s||t.time>s.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===ze?e.add(u):d===Z&&t.add(u)}),n||c.set("offset",l/this.duration),s.push(c)});let r=[...e.values()],o=[...t.values()];if(n){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return en(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},qt=class extends et{constructor(e,t,n,s,r,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",di(a)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let b=new Map(e[u]),_=b.get("offset"),p=t+_*n;b.set("offset",di(p/o)),r.push(b)}n=o,t=0,s="",e=r}return en(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}};function di(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function gr(i,e){let t=new Map,n;return i.forEach(s=>{if(s==="*"){n??=e.keys();for(let r of n)t.set(r,Z)}else for(let[r,o]of s)t.set(r,o)}),t}function hi(i,e,t,n,s,r,o,a,l,c,d,u,b){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:b}}var Mt={},tt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return yr(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,n):new Map}build(e,t,n,s,r,o,a,l,c,d){let u=[],b=this.ast.options&&this.ast.options.params||Mt,_=a&&a.params||Mt,p=this.buildStyles(n,_,u),g=l&&l.params||Mt,T=this.buildStyles(s,g,u),M=new Set,A=new Map,L=new Map,N=s==="void",_e={params:Mi(g,b),delay:this.ast.options?.delay},Y=d?[]:Pi(e,t,this.ast.animation,r,o,p,T,_e,c,u),x=0;return Y.forEach(B=>{x=Math.max(B.duration+B.delay,x)}),u.length?hi(t,this._triggerName,n,s,N,p,T,[],[],A,L,x,u):(Y.forEach(B=>{let ue=B.element,be=$(A,ue,new Set);B.preStyleProps.forEach(de=>be.add(de));let nn=$(L,ue,new Set);B.postStyleProps.forEach(de=>nn.add(de)),ue!==t&&M.add(ue)}),hi(t,this._triggerName,n,s,N,p,T,Y,[...M.values()],A,L,x))}};function yr(i,e,t,n,s){return i.some(r=>r(e,t,n,s))}function Mi(i,e){let t=Re({},e);return Object.entries(i).forEach(([n,s])=>{s!=null&&(t[n]=s)}),t}var Kt=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,s=Mi(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Ae(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function _r(i,e,t){return new $t(i,e,t)}var $t=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new Kt(s.style,r,n))}),pi(this.states,"true","1"),pi(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new tt(e,s,this.states))}),this.fallbackTransition=br(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(o=>o.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function br(i,e,t){let n=[(o,a)=>!0],s={type:v.Sequence,steps:[],options:null},r={type:v.Transition,animation:s,matchers:n,options:null,queryCount:0,depCount:0};return new tt(i,r,e)}function pi(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var vr=new De,jt=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],s=[],r=wi(this._driver,t,n,s);if(n.length)throw Rs(n);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,n){let s=e.element,r=bi(this._normalizer,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Pi(this._driver,t,r,Ei,Ot,new Map,new Map,n,vr,s),o.forEach(d=>{let u=$(a,d.element,new Map);d.postStyleProps.forEach(b=>u.set(b,null))})):(s.push(Fs()),o=[]),s.length)throw Ls(s);a.forEach((d,u)=>{d.forEach((b,_)=>{d.set(_,this._driver.computeStyle(u,_,Z))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=ce(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw xs(e);return t}listen(e,t,n,s){let r=Gt(t,"","","");return Wt(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if(n=="register"){this.register(e,s[0]);return}if(n=="create"){let o=s[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},fi="ng-animate-queued",Sr=".ng-animate-queued",At="ng-animate-disabled",kr=".ng-animate-disabled",Er="ng-star-inserted",Cr=".ng-star-inserted",Tr=[],Ai={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},G="__ng_removed",Ne=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),s=n?e.value:e;if(this.value=Mr(s),n){let r=e,{value:o}=r,a=an(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(s=>{n[s]==null&&(n[s]=t[s])})}}},Me="void",Dt=new Ne(Me),Ht=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,H(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.has(t))throw Bs(n,t);if(n==null||n.length==0)throw zs(t);if(!Ar(n))throw qs(n,t);let r=$(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};r.push(o);let a=$(this._engine.statesByElement,e,new Map);return a.has(t)||(H(e,He),H(e,He+"-"+t),a.set(t,Dt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ks(e);return t}trigger(e,t,n,s=!0){let r=this._getTrigger(t),o=new Oe(this.id,t,e),a=this._engine.statesByElement.get(e);a||(H(e,He),H(e,He+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ne(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Dt),!(c.value===Me)&&l.value===c.value){if(!Or(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),M=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{me(e,T),ee(e,M)})}return}let b=$(this._engine.playersByElement,e,[]);b.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let _=r.matchTransition(l.value,c.value,e,c.params),p=!1;if(!_){if(!s)return;_=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(H(e,fi),o.onStart(()=>{ke(e,fi)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let M=T.indexOf(o);M>=0&&T.splice(M,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ge,!0);n.forEach(s=>{if(s[G])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,n,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Me,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&ce(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let s=new Set;t.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||Dt,d=new Ne(Me),u=new Oe(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{let r=e[G];(!r||r===Ai)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){H(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let s=n.player;if(s.destroyed)return;let r=n.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=Gt(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Wt(n.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((n,s)=>{let r=n.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Vt=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Ht(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,s=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return s.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let s of n.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&t.add(r)}}return t}trigger(e,t,n,s){if(Qe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Qe(t))return;let r=t[G];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),H(e,At)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ke(e,At))}removeNode(e,t,n){if(Qe(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,s,r){this.collectedLeaveElements.push(t),t[G]={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,n,s,r){return Qe(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Ge,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,It,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ce(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[G];if(t&&t.setForRemoval){if(e[G]=Ai,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(At)&&this.markElementAsDisabled(e,!1),this.driver.query(e,kr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let s=this.collectedEnterElements[n];H(s,Er)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let s=0;s<n.length;s++)n[s]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let s=this.collectedLeaveElements[n];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?ce(t).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(e){throw $s(e)}_flushAnimations(e,t){let n=new De,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let f=this.driver.query(h,Sr,!0);for(let m=0;m<f.length;m++)d.add(f[m])});let u=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=yi(b,this.collectedEnterElements),p=new Map,g=0;_.forEach((h,f)=>{let m=Ei+g++;p.set(f,m),h.forEach(S=>H(S,m))});let T=[],M=new Set,A=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let f=this.collectedLeaveElements[h],m=f[G];m&&m.setForRemoval&&(T.push(f),M.add(f),m.hasAnimation?this.driver.query(f,Cr,!0).forEach(S=>M.add(S)):A.add(f))}let L=new Map,N=yi(b,Array.from(M));N.forEach((h,f)=>{let m=Ot+g++;L.set(f,m),h.forEach(S=>H(S,m))}),e.push(()=>{_.forEach((h,f)=>{let m=p.get(f);h.forEach(S=>ke(S,m))}),N.forEach((h,f)=>{let m=L.get(f);h.forEach(S=>ke(S,m))}),T.forEach(h=>{this.processLeaveNode(h)})});let _e=[],Y=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(m=>{let S=m.player,D=m.element;if(_e.push(S),this.collectedEnterElements.length){let I=D[G];if(I&&I.setForMove){if(I.previousTriggersValues&&I.previousTriggersValues.has(m.triggerName)){let he=I.previousTriggersValues.get(m.triggerName),j=this.statesByElement.get(m.element);if(j&&j.has(m.triggerName)){let Ie=j.get(m.triggerName);Ie.value=he,j.set(m.triggerName,Ie)}}S.destroy();return}}let X=!u||!this.driver.containsElement(u,D),q=L.get(D),ie=p.get(D),w=this._buildInstruction(m,n,ie,q,X);if(w.errors&&w.errors.length){Y.push(w);return}if(X){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}if(m.isFallbackTransition){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}let on=[];w.timelines.forEach(I=>{I.stretchStartingKeyframe=!0,this.disabledNodes.has(I.element)||on.push(I)}),w.timelines=on,n.append(D,w.timelines);let zi={instruction:w,player:S,element:D};o.push(zi),w.queriedElements.forEach(I=>$(a,I,[]).push(S)),w.preStyleProps.forEach((I,he)=>{if(I.size){let j=l.get(he);j||l.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))}}),w.postStyleProps.forEach((I,he)=>{let j=c.get(he);j||c.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))})});if(Y.length){let h=[];Y.forEach(f=>{h.push(js(f.triggerName,f.errors))}),_e.forEach(f=>f.destroy()),this.reportError(h)}let x=new Map,B=new Map;o.forEach(h=>{let f=h.element;n.has(f)&&(B.set(f,f),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,x))}),s.forEach(h=>{let f=h.element;this._getPreviousPlayers(f,!1,h.namespaceId,h.triggerName,null).forEach(S=>{$(x,f,[]).push(S),S.destroy()})});let ue=T.filter(h=>_i(h,l,c)),be=new Map;gi(be,this.driver,A,c,Z).forEach(h=>{_i(h,l,c)&&ue.push(h)});let de=new Map;_.forEach((h,f)=>{gi(de,this.driver,new Set(h),l,ze)}),ue.forEach(h=>{let f=be.get(h),m=de.get(h);be.set(h,new Map([...f?.entries()??[],...m?.entries()??[]]))});let ot=[],sn=[],rn={};o.forEach(h=>{let{element:f,player:m,instruction:S}=h;if(n.has(f)){if(d.has(f)){m.onDestroy(()=>ee(f,S.toStyles)),m.disabled=!0,m.overrideTotalTime(S.totalTime),s.push(m);return}let D=rn;if(B.size>1){let q=f,ie=[];for(;q=q.parentNode;){let w=B.get(q);if(w){D=w;break}ie.push(q)}ie.forEach(w=>B.set(w,D))}let X=this._buildAnimation(m.namespaceId,S,x,r,de,be);if(m.setRealPlayer(X),D===rn)ot.push(m);else{let q=this.playersByElement.get(D);q&&q.length&&(m.parentPlayer=ce(q)),s.push(m)}}else me(f,S.fromStyles),m.onDestroy(()=>ee(f,S.toStyles)),sn.push(m),d.has(f)&&s.push(m)}),sn.forEach(h=>{let f=r.get(h.element);if(f&&f.length){let m=ce(f);h.setRealPlayer(m)}}),s.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h<T.length;h++){let f=T[h],m=f[G];if(ke(f,Ot),m&&m.hasAnimation)continue;let S=[];if(a.size){let X=a.get(f);X&&X.length&&S.push(...X);let q=this.driver.query(f,It,!0);for(let ie=0;ie<q.length;ie++){let w=a.get(q[ie]);w&&w.length&&S.push(...w)}}let D=S.filter(X=>!X.destroyed);D.length?Dr(this,f,D):this.processLeaveNode(f)}return T.length=0,ot.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let f=this.players.indexOf(h);this.players.splice(f,1)}),h.play()}),ot}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Me;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(n||s)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let s=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,d=c!==r,u=$(n,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(_=>{let p=_.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),_.destroy(),u.push(_)})}me(r,t.fromStyles)}_buildAnimation(e,t,n,s,r,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,b=t.timelines.map(p=>{let g=p.element;d.add(g);let T=g[G];if(T&&T.removedBeforeQueried)return new Se(p.duration,p.delay);let M=g!==l,A=Nr((n.get(g)||Tr).map(x=>x.getRealPlayer())).filter(x=>{let B=x;return B.element?B.element===g:!1}),L=r.get(g),N=o.get(g),_e=bi(this._normalizer,p.keyframes,L,N),Y=this._buildPlayer(p,_e,A);if(p.subTimeline&&s&&u.add(g),M){let x=new Oe(e,a,g);x.setRealPlayer(Y),c.push(x)}return Y});c.forEach(p=>{$(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>Pr(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>H(p,li));let _=ce(b);return _.onDestroy(()=>{d.forEach(p=>ke(p,li)),ee(l,t.toStyles)}),u.forEach(p=>{$(s,p,[]).push(_)}),_}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Se(e.duration,e.delay)}},Oe=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Se,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(s=>Wt(e,n,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){$(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Pr(i,e,t){let n=i.get(e);if(n){if(n.length){let s=n.indexOf(t);n.splice(s,1)}n.length==0&&i.delete(e)}return n}function Mr(i){return i??null}function Qe(i){return i&&i.nodeType===1}function Ar(i){return i=="start"||i=="done"}function mi(i,e){let t=i.style.display;return i.style.display=e??"none",t}function gi(i,e,t,n,s){let r=[];t.forEach(l=>r.push(mi(l)));let o=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let b=e.computeStyle(c,u,s);d.set(u,b),(!b||b.length==0)&&(c[G]=wr,o.push(c))}),i.set(c,d)});let a=0;return t.forEach(l=>mi(l,r[a++])),o}function yi(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,s=new Set(e),r=new Map;function o(a){if(!a)return n;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=n:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function H(i,e){i.classList?.add(e)}function ke(i,e){i.classList?.remove(e)}function Dr(i,e,t){ce(t).onDone(()=>i.processLeaveNode(e))}function Nr(i){let e=[];return Di(i,e),e}function Di(i,e){for(let t=0;t<i.length;t++){let n=i[t];n instanceof Et?Di(n.players,e):e.push(n)}}function Or(i,e){let t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let s=0;s<t.length;s++){let r=t[s];if(!e.hasOwnProperty(r)||i[r]!==e[r])return!1}return!0}function _i(i,e,t){let n=t.get(i);if(!n)return!1;let s=e.get(i);return s?n.forEach(r=>s.add(r)):e.set(i,n),t.delete(i),!0}var Ce=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Vt(e.body,t,n),this._timelineEngine=new jt(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,t,n,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=wi(this._driver,r,l,c);if(l.length)throw Os(s,l);c.length&&void 0,a=_r(s,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if(n.charAt(0)=="@"){let[r,o]=oi(n),a=s;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if(n.charAt(0)=="@"){let[o,a]=oi(n);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ir(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Nt(e[0]),e.length>1&&(n=Nt(e[e.length-1]))):e instanceof Map&&(t=Nt(e)),t||n?new Ut(i,t,n):null}var Ee=class Ee{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let s=Ee.initialStylesByElement.get(e);s||Ee.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ee.initialStylesByElement.delete(this._element),this._startStyles&&(me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}};Ee.initialStylesByElement=new WeakMap;var Ut=Ee;function Nt(i){let e=null;return i.forEach((t,n)=>{Rr(n)&&(e=e||new Map,e.set(n,t))}),e}function Rr(i){return i==="display"||i==="position"}var nt=class{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,s)=>{s!=="offset"&&e.set(s,this._finished?n:Zt(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},it=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return vi(e,t)}getParentElement(e){return Yt(e)}query(e,t,n){return Si(e,t,n)}computeStyle(e,t,n){return Zt(e,t)}animate(e,t,n,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:n,delay:s,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(_=>_ instanceof nt);er(n,s)&&d.forEach(_=>{_.currentSnapshot.forEach((p,g)=>c.set(g,p))});let u=Xs(t).map(_=>new Map(_));u=tr(e,u,c);let b=Ir(e,u);return new nt(e,u,l,b)}};var We="@",Ni="@.disabled",st=class{constructor(e,t,n,s){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==We&&t==Ni?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Qt=class extends st{constructor(e,t,n,s,r){super(t,n,s,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==We?t.charAt(1)=="."&&t==Ni?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==We){let s=Fr(e),r=t.slice(1),o="";return r.charAt(0)!=We&&([r,o]=Lr(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function Fr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Lr(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var rt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(s,r)=>{let o=r?.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,t){let n="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let u=()=>c.delete(s);d=new st(n,s,this.engine,u),c.set(s,d)}return d}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Qt(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Br=(()=>{let e=class e extends Ce{constructor(n,s,r){super(n,s,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(U(An),U(ge),U(ye))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function zr(){return new Xe}function qr(i,e,t){return new rt(i,e,t)}var Ii=[{provide:ye,useFactory:zr},{provide:Ce,useClass:Br},{provide:_n,useFactory:qr,deps:[Fn,Ce,bn]}],Oi=[{provide:ge,useFactory:()=>new it},{provide:gt,useValue:"BrowserAnimations"},...Ii],Kr=[{provide:ge,useClass:Xt},{provide:gt,useValue:"NoopAnimations"},...Ii],Ri=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?Kr:Oi}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({providers:Oi,imports:[Be]});let i=e;return i})();var Fi=(()=>{let e=class e{constructor(n){this._router=n}intercept(n,s){let r=JSON.parse(window.localStorage.getItem("user")),o=new Date;if(r!=null){let a=new Date(r.Token.expiredAt);o<a?n=n.clone({setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${r.Token.access_token}`}}):n=n.clone({setHeaders:{"Content-Type":"application/json"}})}else n=n.clone({setHeaders:{"Content-Type":"application/json"}});return s.handle(n)}};e.\u0275fac=function(s){return new(s||e)(U(Ke))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var Li=(()=>{let e=class e{constructor(n,s){this.authService=n,this.toastr=s}intercept(n,s){return s.handle(n).pipe(hn(r=>(this.handlerError(r),ln(()=>r))))}handlerError(n){if(!this.unauthorizedErrorHandling(n)&&!Array.isArray(n?.error?.Message)){let r=this.errorMessageHandling(n);this.toastr.error(r.message!=""?r.message:"An unknown error has occured!",r.header,{enableHtml:!0})}}unauthorizedErrorHandling(n){let s=!1;if(n.status==401){let r=localStorage.getItem("currentUser");r&&(JSON.parse(r)?.Token?.access_token?this.tokenExpiredErrorHandling(n):this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout()),s=!0)}return s}tokenExpiredErrorHandling(n){if(this.authService.isActiveToken()){let s=this.errorMessageHandling(n);this.toastr.error(s.message,s.header)}else this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout())}errorMessageHandling(n){let s="API Error",r="Exception Message";return n.error?(s="API Error - "+n.status,n.error.Message&&(n.error.Message.indexOf("Message")!=-1?r=JSON.parse(n.error.Message).Message:r=n.error.Message)):n.message&&(s="API Error - "+n.name,r=n.message),{header:s,message:r}}};e.\u0275fac=function(s){return new(s||e)(U(je),U(qe))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var jr=["custom-toast-component",""];function Hr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O(2);return mt(s.remove())}),Te(1," x "),F()}}function Vr(i,e){if(i&1&&(R(0,"div",6)(1,"div",7)(2,"div",8)(3,"h4"),Te(4),F()()(),R(5,"div",9),ve(6,Hr,2,0,"a",10),F()()),i&2){let t=O();C("display",t.state().value==="inactive"?"none":""),y(2),Fe(t.options.titleClass),yt("aria-label",t.title),y(2),Sn(t.title),y(2),E("ngIf",t.options.closeButton)}}function Ur(i,e){if(i&1&&P(0,"div",12),i&2){let t=O();Fe(t.options.messageClass),E("innerHTML",t.message,yn)}}function Qr(i,e){if(i&1&&(R(0,"div",13),Te(1),F()),i&2){let t=O();Fe(t.options.messageClass),yt("aria-label",t.message),y(),kn(" ",t.message," ")}}function Wr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O();return mt(s.remove())}),Te(1," x "),F()}}function Gr(i,e){if(i&1&&(R(0,"div"),P(1,"div",14),F()),i&2){let t=O();y(),C("width",t.width+"%")}}var xi=(()=>{let e=class e extends $n{constructor(n,s){super(n,s),this.toastrService=n,this.toastPackage=s}ngOnInit(){}action(n){return n.stopPropagation(),this.toastPackage.triggerAction(),!1}};e.\u0275fac=function(s){return new(s||e)(J(qe),J(Kn))},e.\u0275cmp=z({type:e,selectors:[["","custom-toast-component",""]],standalone:!0,features:[Q,En],attrs:jr,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","px-0","text-start"],[1,"my-4"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body","text-start",3,"innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body","text-start"],[1,"toast-progress"]],template:function(s,r){s&1&&(R(0,"div",0),ve(1,Vr,7,7,"div",1)(2,Ur,1,3,"div",2)(3,Qr,2,4,"div",3)(4,Wr,2,0,"a",4)(5,Gr,2,2,"div",5),F()),s&2&&(y(),E("ngIf",r.title),y(),E("ngIf",r.message&&r.options.enableHtml),y(),E("ngIf",r.message&&!r.options.enableHtml),y(),E("ngIf",r.options.closeButton&&r.title==null),y(),E("ngIf",r.options.progressBar))},dependencies:[xe,Le],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:1px solid gainsboro;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding:10px 15px 10px 0}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button[_ngcontent-%COMP%]{color:#dcdcdc!important}"],data:{animation:[Bn("flyInOut",[qn("inactive",W({opacity:0})),kt("inactive => active",vt("400ms ease-out",St([W({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),W({transform:"skewX(20deg)",opacity:1}),W({transform:"skewX(-5deg)",opacity:1}),W({transform:"none",opacity:1})]))),kt("active => removed",vt("400ms ease-out",St([W({opacity:1}),W({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});let i=e;return i})();var Yr={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]},Bi=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e,bootstrap:[si]}),e.\u0275inj=se({providers:[{provide:we,useClass:Fi,multi:!0},{provide:Zn,useValue:{subscriptSizing:"dynamic"}},Hn,Vn,{provide:Mn,useFactory:n=>function(){n.loadPermissions()},deps:[je],multi:!0},{provide:we,useClass:Li,multi:!0},In(Rn())],imports:[Be,ii,Ri,jn.forRoot({toastComponent:xi,positionClass:"toast-bottom-right",closeButton:!0}),Jn.forRoot(Yr),ni.forRoot(),Gn.initializeApp($e.firebaseConfig),Yn,Xn.forRoot()]});let i=e;return i})();$e.production&&void 0;Ln().bootstrapModule(Bi).catch(i=>console.error(i));
|
|
1
|
+
import{e as Zn}from"./chunk-AAIK6JQ3.js";import{a as Vn,b as $e,c as Gn,d as Yn,e as Jn,g as je}from"./chunk-YERME2YY.js";import{a as Kn,b as qe,c as $n,d as jn,e as Hn}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import"./chunk-4TYJR476.js";import{f as Xn}from"./chunk-2UXFUEON.js";import{$ as V,$a as C,$c as ze,A as un,B as dt,C as dn,Da as gt,E as hn,Fb as Te,Fc as we,G as ht,Ga as yn,Gb as Sn,Gc as In,Hb as kn,Hc as Rn,Ia as y,Ic as Fn,Ja as J,Jc as Ln,K as pn,Kc as Be,Lc as xn,M as fn,Na as _n,Nb as En,Nc as v,Ob as Cn,Oc as Z,Pa as bn,Pb as Tn,Pc as Bn,Qc as vt,Sc as zn,T as pt,Tc as W,Uc as qn,Va as Q,Vc as St,Wb as wn,Wc as kt,X as mn,Xb as Pn,Ya as ve,Z as k,Za as yt,Zc as Se,_a as E,_c as Et,aa as se,ab as oe,ad as Un,bc as Mn,bd as Qn,ca as U,cb as Fe,cd as Wn,dd as Ke,e as lt,ga as z,gd as Ct,ha as re,ia as gn,kb as R,lb as F,mb as P,nc as An,o as ln,oa as ft,pa as mt,pb as vn,q as ct,qb as _t,qc as Dn,s as cn,sa as te,sc as Le,tb as bt,tc as Nn,vb as O,vc as On,y as ut,zc as xe}from"./chunk-77JORVC2.js";import{a as Re,d as an}from"./chunk-CRRJCY55.js";var Ki=i=>({"background-color":i});function $i(i,e){i&1&&vn(0)}function ji(i,e){if(i&1&&P(0,"sk-cube-grid",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Hi(i,e){if(i&1&&P(0,"sk-chasing-dots",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Vi(i,e){if(i&1&&P(0,"sk-double-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Ui(i,e){if(i&1&&P(0,"sk-rotating-plane",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Qi(i,e){if(i&1&&P(0,"sk-spinner-pulse",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Wi(i,e){if(i&1&&P(0,"sk-three-bounce",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Gi(i,e){if(i&1&&P(0,"sk-wandering-cubes",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Yi(i,e){if(i&1&&P(0,"sk-wave",4),i&2){let t=O(2);E("backgroundColor",t.backgroundColor)}}function Xi(i,e){if(i&1&&(R(0,"div",1),ve(1,$i,1,0,"ng-container",2)(2,ji,1,1,"sk-cube-grid",3)(3,Hi,1,1,"sk-chasing-dots",3)(4,Vi,1,1,"sk-double-bounce",3)(5,Ui,1,1,"sk-rotating-plane",3)(6,Qi,1,1,"sk-spinner-pulse",3)(7,Wi,1,1,"sk-three-bounce",3)(8,Gi,1,1,"sk-wandering-cubes",3)(9,Yi,1,1,"sk-wave",3),F()),i&2){let t=O();C("opacity",t.opacity),oe("backdrop",t.backdrop),E("ngStyle",Tn(14,Ki,t.backdrop?t.backdropBackgroundColor:"transparent")),y(),E("ngComponentOutlet",t.entryComponent),y(),E("ngIf",t.spinner===t.spinkit.skCubeGrid),y(),E("ngIf",t.spinner===t.spinkit.skChasingDots),y(),E("ngIf",t.spinner===t.spinkit.skDoubleBounce),y(),E("ngIf",t.spinner===t.spinkit.skRotatingPlane),y(),E("ngIf",t.spinner===t.spinkit.skSpinnerPulse),y(),E("ngIf",t.spinner===t.spinkit.skThreeBounce),y(),E("ngIf",t.spinner===t.spinkit.skWanderingCubes),y(),E("ngIf",t.spinner===t.spinkit.skWave)}}var le=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=gn({type:i,inputs:{backgroundColor:"backgroundColor"}}),i})(),Ji=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-chasing-dots"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),Zi=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-cube-grid"]],features:[Q],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),i})(),es=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-double-bounce"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),i})(),ts=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-rotating-plane"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),i})(),ns=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-spinner-pulse"]],features:[Q],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(t,n){t&1&&P(0,"div",0),t&2&&C("background-color",n.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),i})(),is=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-three-bounce"]],features:[Q],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),i})(),ss=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wandering-cubes"]],features:[Q],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),i})(),rs=(()=>{class i extends le{}return i.\u0275fac=(()=>{let e;return function(n){return(e||(e=te(i)))(n||i)}})(),i.\u0275cmp=z({type:i,selectors:[["sk-wave"]],features:[Q],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(t,n){t&1&&(R(0,"div",0),P(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),F()),t&2&&(oe("colored",!n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor),y(),C("background-color",n.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),i})(),ei={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var Tt=(()=>{class i{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new lt(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(n=>n.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(n=>n.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(n=>t.headers.has(n))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}intercept(t,n){let s=this.shouldBypass(t);return s||(this._pendingRequests++,this._pendingRequests===1&&this._pendingRequestsStatus$.next(!0)),n.handle(t).pipe(fn(()=>{s||(this._pendingRequests--,this._pendingRequests===0&&this._pendingRequestsStatus$.next(!1))}))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),os=[{provide:we,useExisting:Tt,multi:!0}],as=(()=>{class i{constructor(t){this.pendingRequestsInterceptor=t,this._visibility$=new lt(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return i.\u0275fac=function(t){return new(t||i)(U(Tt))},i.\u0275prov=V({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ti=(()=>{class i{constructor(t,n){this.pendingRequestsInterceptor=t,this.spinnerVisibility=n,this.spinkit=ei,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=ei.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[t,n]=dn(this.pendingRequestsInterceptor.pendingRequestsStatus$,s=>s);this.isVisible$=un(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe(pt(()=>t.pipe(ht(()=>ut(this.debounceDelay))))),t.pipe(pt(()=>n.pipe(ht(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(pn(),mn(s=>this.updateExpirationDelay(s)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(t=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return ut(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return i.\u0275fac=function(t){return new(t||i)(J(Tt),J(as))},i.\u0275cmp=z({type:i,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(t,n){t&1&&(ve(0,Xi,10,16,"div",0),wn(1,"async")),t&2&&E("ngIf",Pn(1,1,n.isVisible$))},dependencies:[Dn,Le,Nn,Zi,Ji,es,ts,ns,is,ss,rs,On],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),i})(),ni=(()=>{class i{static forRoot(){return{ngModule:i,providers:[os]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=re({type:i}),i.\u0275inj=se({imports:[xe]}),i})();var cs=[{path:"",loadChildren:()=>import("./chunk-6NUQBHVK.js").then(i=>i.LoginModule)},{path:"menu",loadChildren:()=>import("./chunk-P7KW5VRW.js").then(i=>i.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}],ii=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({imports:[Ct.forRoot(cs),Ct]});let i=e;return i})();var hs=()=>["/api/Channel/GetLastSyncByID"],si=(()=>{let e=class e{constructor(n,s,r){this._router=n,this.titleService=s,this.activatedRoute=r}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe(dt(n=>n instanceof Un)).pipe(ct(()=>this.activatedRoute),ct(n=>{for(;n.firstChild;)n=n.firstChild;return n}),dt(n=>n.outlet==="primary"),cn(n=>n.data)).subscribe(n=>{let s=" | Marketplace";n.title=="Dealpos x Marketplace"&&(s=""),this.titleService.setTitle(n.title+s)})}overrideDateToJsonFunction(){Date.prototype.toJSON=function(){return this.getFullYear()+"-"+n(this.getMonth()+1)+"-"+n(this.getDate())+"T"+n(this.getHours())+":"+n(this.getMinutes())+":"+n(this.getSeconds())+".000"};function n(s){return s<10?"0"+s:s}}};e.\u0275fac=function(s){return new(s||e)(J(Ke),J(xn),J(Qn))},e.\u0275cmp=z({type:e,selectors:[["app-root"]],decls:2,vars:2,consts:[[3,"filteredUrlPatterns"]],template:function(s,r){s&1&&P(0,"ng-http-loader",0)(1,"router-outlet"),s&2&&E("filteredUrlPatterns",Cn(1,hs))},dependencies:[Wn,ti]});let i=e;return i})();function ri(i){return new k(3e3,!1)}function ps(){return new k(3100,!1)}function fs(){return new k(3101,!1)}function ms(i){return new k(3001,!1)}function gs(i){return new k(3003,!1)}function ys(i){return new k(3004,!1)}function _s(i,e){return new k(3005,!1)}function bs(){return new k(3006,!1)}function vs(){return new k(3007,!1)}function Ss(i,e){return new k(3008,!1)}function ks(i){return new k(3002,!1)}function Es(i,e,t,n,s){return new k(3010,!1)}function Cs(){return new k(3011,!1)}function Ts(){return new k(3012,!1)}function ws(){return new k(3200,!1)}function Ps(){return new k(3202,!1)}function Ms(){return new k(3013,!1)}function As(i){return new k(3014,!1)}function Ds(i){return new k(3015,!1)}function Ns(i){return new k(3016,!1)}function Os(i,e){return new k(3404,!1)}function Is(i){return new k(3502,!1)}function Rs(i){return new k(3503,!1)}function Fs(){return new k(3300,!1)}function Ls(i){return new k(3504,!1)}function xs(i){return new k(3301,!1)}function Bs(i,e){return new k(3302,!1)}function zs(i){return new k(3303,!1)}function qs(i,e){return new k(3400,!1)}function Ks(i){return new k(3401,!1)}function $s(i){return new k(3402,!1)}function js(i,e){return new k(3505,!1)}function ce(i){switch(i.length){case 0:return new Se;case 1:return i[0];default:return new Et(i)}}function bi(i,e,t=new Map,n=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((b,_)=>{let p=_,g=b;if(_!=="offset")switch(p=i.normalizePropertyName(p,s),g){case ze:g=t.get(_);break;case Z:g=n.get(_);break;default:g=i.normalizeStyleValue(_,p,g,s);break}u.set(p,g)}),d||r.push(u),a=u,o=c}),s.length)throw Is(s);return r}function Wt(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&wt(t,"start",i)));break;case"done":i.onDone(()=>n(t&&wt(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&wt(t,"destroy",i)));break}}function wt(i,e,t){let n=t.totalTime,s=!!t.disabled,r=Gt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,s),o=i._data;return o!=null&&(r._data=o),r}function Gt(i,e,t,n,s="",r=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function $(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function oi(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var Hs=typeof document>"u"?null:document.documentElement;function Yt(i){let e=i.parentNode||i.host||null;return e===Hs?null:e}function Vs(i){return i.substring(1,6)=="ebkit"}var pe=null,ai=!1;function Us(i){pe||(pe=Qs()||{},ai=pe.style?"WebkitAppearance"in pe.style:!1);let e=!0;return pe.style&&!Vs(i)&&(e=i in pe.style,!e&&ai&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in pe.style)),e}function Qs(){return typeof document<"u"?document.body:null}function vi(i,e){for(;e;){if(e===i)return!0;e=Yt(e)}return!1}function Si(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var Xt=(()=>{let e=class e{validateStyleProperty(n){return Us(n)}containsElement(n,s){return vi(n,s)}getParentElement(n){return Yt(n)}query(n,s,r){return Si(n,s,r)}computeStyle(n,s,r){return r||""}animate(n,s,r,o,a,l=[],c){return new Se(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),tn=class tn{};tn.NOOP=new Xt;var ge=tn,ye=class{};var Ws=1e3,ki="{{",Gs="}}",Ei="ng-enter",Ot="ng-leave",He="ng-trigger",Ge=".ng-trigger",li="ng-animating",It=".ng-animating";function ne(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rt(parseFloat(e[1]),e[2])}function Rt(i,e){switch(e){case"s":return i*Ws;default:return i}}function Ye(i,e,t){return i.hasOwnProperty("duration")?i:Ys(i,e,t)}function Ys(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(ri(i)),{duration:0,delay:0,easing:""};s=Rt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Rt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=i;if(!t){let a=!1,l=e.length;s<0&&(e.push(ps()),a=!0),r<0&&(e.push(fs()),a=!0),a&&e.splice(l,0,ri(i))}return{duration:s,delay:r,easing:o}}function Xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,s)=>{let r=Jt(s);t&&!t.has(s)&&t.set(s,i.style[r]),i.style[r]=n})}function me(i,e){e.forEach((t,n)=>{let s=Jt(n);i.style[s]=""})}function Pe(i){return Array.isArray(i)?i.length==1?i[0]:zn(i):i}function Js(i,e,t){let n=e.params||{},s=Ci(i);s.length&&s.forEach(r=>{n.hasOwnProperty(r)||t.push(ms(r))})}var Ft=new RegExp(`${ki}\\s*(.+?)\\s*${Gs}`,"g");function Ci(i){let e=[];if(typeof i=="string"){let t;for(;t=Ft.exec(i);)e.push(t[1]);Ft.lastIndex=0}return e}function Ae(i,e,t){let n=`${i}`,s=n.replace(Ft,(r,o)=>{let a=e[o];return a==null&&(t.push(gs(o)),a=""),a.toString()});return s==n?i:s}var Zs=/-+([a-z0-9])/g;function Jt(i){return i.replace(Zs,(...e)=>e[1].toUpperCase())}function er(i,e){return i===0||e===0}function tr(i,e,t){if(t.size&&e.length){let n=e[0],s=[];if(t.forEach((r,o)=>{n.has(o)||s.push(o),n.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Zt(i,a)))}}return e}function K(i,e,t){switch(e.type){case v.Trigger:return i.visitTrigger(e,t);case v.State:return i.visitState(e,t);case v.Transition:return i.visitTransition(e,t);case v.Sequence:return i.visitSequence(e,t);case v.Group:return i.visitGroup(e,t);case v.Animate:return i.visitAnimate(e,t);case v.Keyframes:return i.visitKeyframes(e,t);case v.Style:return i.visitStyle(e,t);case v.Reference:return i.visitReference(e,t);case v.AnimateChild:return i.visitAnimateChild(e,t);case v.AnimateRef:return i.visitAnimateRef(e,t);case v.Query:return i.visitQuery(e,t);case v.Stagger:return i.visitStagger(e,t);default:throw ys(e.type)}}function Zt(i,e){return window.getComputedStyle(i)[e]}var nr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Xe=class extends ye{normalizePropertyName(e,t){return Jt(e)}normalizeStyleValue(e,t,n,s){let r="",o=n.toString().trim();if(nr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(_s(e,n))}return o+r}};var Je="*";function ir(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>sr(n,t,e)):t.push(i),t}function sr(i,e,t){if(i[0]==":"){let l=rr(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Ds(i)),e;let s=n[1],r=n[2],o=n[3];e.push(ci(s,o));let a=s==Je&&o==Je;r[0]=="<"&&!a&&e.push(ci(o,s))}function rr(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(Ns(i)),"* => *"}}var Ve=new Set(["true","1"]),Ue=new Set(["false","0"]);function ci(i,e){let t=Ve.has(i)||Ue.has(i),n=Ve.has(e)||Ue.has(e);return(s,r)=>{let o=i==Je||i==s,a=e==Je||e==r;return!o&&t&&typeof s=="boolean"&&(o=s?Ve.has(i):Ue.has(i)),!a&&n&&typeof r=="boolean"&&(a=r?Ve.has(e):Ue.has(e)),o&&a}}var Ti=":self",or=new RegExp(`s*${Ti}s*,?`,"g");function wi(i,e,t,n){return new Lt(i).build(e,t,n)}var ui="",Lt=class{constructor(e){this._driver=e}build(e,t,n){let s=new xt(t);return this._resetContextStyleTimingState(s),K(this,Pe(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=ui,e.collectedStyles=new Map,e.collectedStyles.set(ui,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(bs()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==v.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==v.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(vs())}),{type:v.Trigger,name:e.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,o=s||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Ci(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Ss(e.name,[...r.values()]))}return{type:v.State,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=K(this,Pe(e.animation),t),s=ir(e.expr,t.errors);return{type:v.Transition,matchers:s,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:v.Sequence,steps:e.steps.map(n=>K(this,n,t)),options:fe(e.options)}}visitGroup(e,t){let n=t.currentTime,s=0,r=e.steps.map(o=>{t.currentTime=n;let a=K(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:v.Group,steps:r,options:fe(e.options)}}visitAnimate(e,t){let n=ur(e.timings,t.errors);t.currentAnimateTimings=n;let s,r=e.styles?e.styles:W({});if(r.type==v.Keyframes)s=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=W(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:v.Animate,timings:n,style:s,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Z?n.push(a):t.errors.push(ks(a)):n.push(new Map(Object.entries(a)));let r=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(ki)>=0){r=!0;break}}}),{type:v.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(r!=s&&r>=d.startTime&&s<=d.endTime&&(t.errors.push(Es(l,d.startTime,d.endTime,r,s)),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:s}),t.options&&Js(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:v.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Cs()),n;let s=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(M=>{let A=this._makeStyleAst(M,t),L=A.offset!=null?A.offset:cr(A.styles),N=0;return L!=null&&(r++,N=A.offset=L),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),A});l&&t.errors.push(Ts()),a&&t.errors.push(ws());let u=e.steps.length,b=0;r>0&&r<u?t.errors.push(Ps()):r==0&&(b=s/(u-1));let _=u-1,p=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return d.forEach((M,A)=>{let L=b>0?A==_?1:b*A:o[A],N=L*T;t.currentTime=p+g.delay+N,g.duration=N,this._validateStyleAst(M,t),M.offset=L,n.styles.push(M)}),n}visitReference(e,t){return{type:v.Reference,animation:K(this,Pe(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:v.AnimateChild,options:fe(e.options)}}visitAnimateRef(e,t){return{type:v.AnimateRef,animation:this.visitReference(e.animation,t),options:fe(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=ar(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,$(t.collectedStyles,t.currentQuerySelector,new Map);let a=K(this,Pe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:v.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ms());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ye(e.timings,t.errors,!0);return{type:v.Stagger,animation:K(this,Pe(e.animation),t),timings:n,options:null}}};function ar(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Ti);return e&&(i=i.replace(or,"")),i=i.replace(/@\*/g,Ge).replace(/@\w+/g,t=>Ge+"-"+t.slice(1)).replace(/:animating/g,It),[i,e]}function lr(i){return i?Re({},i):null}var xt=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function cr(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function ur(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=Ye(i,e).duration;return Pt(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Pt(0,0,"");return r.dynamic=!0,r.strValue=t,r}let s=Ye(t,e);return Pt(s.duration,s.delay,s.easing)}function fe(i){return i?(i=Re({},i),i.params&&(i.params=lr(i.params))):i={},i}function Pt(i,e,t){return{duration:i,delay:e,easing:t}}function en(i,e,t,n,s,r,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var De=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},dr=1,hr=":enter",pr=new RegExp(hr,"g"),fr=":leave",mr=new RegExp(fr,"g");function Pi(i,e,t,n,s,r=new Map,o=new Map,a,l,c=[]){return new Bt().buildKeyframes(i,e,t,n,s,r,o,a,l,c)}var Bt=class{buildKeyframes(e,t,n,s,r,o,a,l,c,d=[]){c=c||new De;let u=new zt(e,t,c,s,r,d,[]);u.options=l;let b=l.delay?ne(l.delay):0;u.currentTimeline.delayNextStep(b),u.currentTimeline.setStyles([o],null,u.errors,l),K(this,n,u);let _=u.timelines.filter(p=>p.containsAnimation());if(_.length&&a.size){let p;for(let g=_.length-1;g>=0;g--){let T=_[g];if(T.element===t){p=T;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return _.length?_.map(p=>p.buildKeyframes()):[en(t,[],[],[],0,b,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:ne(Ae(r,s?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,o=n.duration!=null?ne(n.duration):null,a=n.delay!=null?ne(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),K(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,s=t,r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==v.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ze);let o=ne(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>K(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],s=t.currentTimeline.currentTime,r=e.options&&e.options.delay?ne(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),K(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,s=t.params?Ae(n,t.params,t.errors):n;return Ye(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());let r=e.style;r.type==v.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?ne(s.delay):0;r&&(t.previousNode.type===v.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ze);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),K(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let b=u.currentTimeline.currentTime;o=Math.max(o,b)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;K(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-u+(s.startTime-n.currentTimeline.startTime)}},Ze={},zt=class i{constructor(e,t,n,s,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ze,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new et(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,s=this.options;n.duration!=null&&(s.duration=ne(n.duration)),n.delay!=null&&(s.delay=ne(n.delay));let r=n.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ae(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(s=>{n[s]=t[s]})}}return e}createSubContext(e=null,t,n){let s=t||this.element,r=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ze,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new qt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(pr,"."+this._enterClassName),e=e.replace(mr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!r&&a.length==0&&o.push(As(t)),a}},et=class i{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=dr,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Z),this._currentKeyframe.set(t,Z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&this._previousKeyframe.set("easing",t);let r=s&&s.params||{},o=gr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Ae(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Z),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let s=this._styleSummary.get(n);(!s||t.time>s.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===ze?e.add(u):d===Z&&t.add(u)}),n||c.set("offset",l/this.duration),s.push(c)});let r=[...e.values()],o=[...t.values()];if(n){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return en(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},qt=class extends et{constructor(e,t,n,s,r,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",di(a)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let b=new Map(e[u]),_=b.get("offset"),p=t+_*n;b.set("offset",di(p/o)),r.push(b)}n=o,t=0,s="",e=r}return en(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}};function di(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function gr(i,e){let t=new Map,n;return i.forEach(s=>{if(s==="*"){n??=e.keys();for(let r of n)t.set(r,Z)}else for(let[r,o]of s)t.set(r,o)}),t}function hi(i,e,t,n,s,r,o,a,l,c,d,u,b){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:b}}var Mt={},tt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return yr(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,n):new Map}build(e,t,n,s,r,o,a,l,c,d){let u=[],b=this.ast.options&&this.ast.options.params||Mt,_=a&&a.params||Mt,p=this.buildStyles(n,_,u),g=l&&l.params||Mt,T=this.buildStyles(s,g,u),M=new Set,A=new Map,L=new Map,N=s==="void",_e={params:Mi(g,b),delay:this.ast.options?.delay},Y=d?[]:Pi(e,t,this.ast.animation,r,o,p,T,_e,c,u),x=0;return Y.forEach(B=>{x=Math.max(B.duration+B.delay,x)}),u.length?hi(t,this._triggerName,n,s,N,p,T,[],[],A,L,x,u):(Y.forEach(B=>{let ue=B.element,be=$(A,ue,new Set);B.preStyleProps.forEach(de=>be.add(de));let nn=$(L,ue,new Set);B.postStyleProps.forEach(de=>nn.add(de)),ue!==t&&M.add(ue)}),hi(t,this._triggerName,n,s,N,p,T,Y,[...M.values()],A,L,x))}};function yr(i,e,t,n,s){return i.some(r=>r(e,t,n,s))}function Mi(i,e){let t=Re({},e);return Object.entries(i).forEach(([n,s])=>{s!=null&&(t[n]=s)}),t}var Kt=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,s=Mi(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Ae(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function _r(i,e,t){return new $t(i,e,t)}var $t=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new Kt(s.style,r,n))}),pi(this.states,"true","1"),pi(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new tt(e,s,this.states))}),this.fallbackTransition=br(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(o=>o.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function br(i,e,t){let n=[(o,a)=>!0],s={type:v.Sequence,steps:[],options:null},r={type:v.Transition,animation:s,matchers:n,options:null,queryCount:0,depCount:0};return new tt(i,r,e)}function pi(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var vr=new De,jt=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],s=[],r=wi(this._driver,t,n,s);if(n.length)throw Rs(n);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,n){let s=e.element,r=bi(this._normalizer,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Pi(this._driver,t,r,Ei,Ot,new Map,new Map,n,vr,s),o.forEach(d=>{let u=$(a,d.element,new Map);d.postStyleProps.forEach(b=>u.set(b,null))})):(s.push(Fs()),o=[]),s.length)throw Ls(s);a.forEach((d,u)=>{d.forEach((b,_)=>{d.set(_,this._driver.computeStyle(u,_,Z))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=ce(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw xs(e);return t}listen(e,t,n,s){let r=Gt(t,"","","");return Wt(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if(n=="register"){this.register(e,s[0]);return}if(n=="create"){let o=s[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},fi="ng-animate-queued",Sr=".ng-animate-queued",At="ng-animate-disabled",kr=".ng-animate-disabled",Er="ng-star-inserted",Cr=".ng-star-inserted",Tr=[],Ai={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},G="__ng_removed",Ne=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),s=n?e.value:e;if(this.value=Mr(s),n){let r=e,{value:o}=r,a=an(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(s=>{n[s]==null&&(n[s]=t[s])})}}},Me="void",Dt=new Ne(Me),Ht=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,H(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.has(t))throw Bs(n,t);if(n==null||n.length==0)throw zs(t);if(!Ar(n))throw qs(n,t);let r=$(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};r.push(o);let a=$(this._engine.statesByElement,e,new Map);return a.has(t)||(H(e,He),H(e,He+"-"+t),a.set(t,Dt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ks(e);return t}trigger(e,t,n,s=!0){let r=this._getTrigger(t),o=new Oe(this.id,t,e),a=this._engine.statesByElement.get(e);a||(H(e,He),H(e,He+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ne(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Dt),!(c.value===Me)&&l.value===c.value){if(!Or(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),M=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{me(e,T),ee(e,M)})}return}let b=$(this._engine.playersByElement,e,[]);b.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let _=r.matchTransition(l.value,c.value,e,c.params),p=!1;if(!_){if(!s)return;_=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(H(e,fi),o.onStart(()=>{ke(e,fi)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let M=T.indexOf(o);M>=0&&T.splice(M,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ge,!0);n.forEach(s=>{if(s[G])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,n,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Me,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&ce(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let s=new Set;t.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||Dt,d=new Ne(Me),u=new Oe(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{let r=e[G];(!r||r===Ai)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){H(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let s=n.player;if(s.destroyed)return;let r=n.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=Gt(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Wt(n.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((n,s)=>{let r=n.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(n.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Vt=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Ht(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,s=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return s.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let s=this._namespaceList.indexOf(n);s>=0&&this._namespaceList.splice(s,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let s of n.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&t.add(r)}}return t}trigger(e,t,n,s){if(Qe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Qe(t))return;let r=t[G];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),H(e,At)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ke(e,At))}removeNode(e,t,n){if(Qe(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,s,r){this.collectedLeaveElements.push(t),t[G]={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,n,s,r){return Qe(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Ge,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,It,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ce(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[G];if(t&&t.setForRemoval){if(e[G]=Ai,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(At)&&this.markElementAsDisabled(e,!1),this.driver.query(e,kr,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,s)=>this._balanceNamespaceList(n,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let s=this.collectedEnterElements[n];H(s,Er)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let s=0;s<n.length;s++)n[s]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let s=this.collectedLeaveElements[n];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?ce(t).onDone(()=>{n.forEach(s=>s())}):n.forEach(s=>s())}}reportError(e){throw $s(e)}_flushAnimations(e,t){let n=new De,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let f=this.driver.query(h,Sr,!0);for(let m=0;m<f.length;m++)d.add(f[m])});let u=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=yi(b,this.collectedEnterElements),p=new Map,g=0;_.forEach((h,f)=>{let m=Ei+g++;p.set(f,m),h.forEach(S=>H(S,m))});let T=[],M=new Set,A=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let f=this.collectedLeaveElements[h],m=f[G];m&&m.setForRemoval&&(T.push(f),M.add(f),m.hasAnimation?this.driver.query(f,Cr,!0).forEach(S=>M.add(S)):A.add(f))}let L=new Map,N=yi(b,Array.from(M));N.forEach((h,f)=>{let m=Ot+g++;L.set(f,m),h.forEach(S=>H(S,m))}),e.push(()=>{_.forEach((h,f)=>{let m=p.get(f);h.forEach(S=>ke(S,m))}),N.forEach((h,f)=>{let m=L.get(f);h.forEach(S=>ke(S,m))}),T.forEach(h=>{this.processLeaveNode(h)})});let _e=[],Y=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(m=>{let S=m.player,D=m.element;if(_e.push(S),this.collectedEnterElements.length){let I=D[G];if(I&&I.setForMove){if(I.previousTriggersValues&&I.previousTriggersValues.has(m.triggerName)){let he=I.previousTriggersValues.get(m.triggerName),j=this.statesByElement.get(m.element);if(j&&j.has(m.triggerName)){let Ie=j.get(m.triggerName);Ie.value=he,j.set(m.triggerName,Ie)}}S.destroy();return}}let X=!u||!this.driver.containsElement(u,D),q=L.get(D),ie=p.get(D),w=this._buildInstruction(m,n,ie,q,X);if(w.errors&&w.errors.length){Y.push(w);return}if(X){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}if(m.isFallbackTransition){S.onStart(()=>me(D,w.fromStyles)),S.onDestroy(()=>ee(D,w.toStyles)),s.push(S);return}let on=[];w.timelines.forEach(I=>{I.stretchStartingKeyframe=!0,this.disabledNodes.has(I.element)||on.push(I)}),w.timelines=on,n.append(D,w.timelines);let zi={instruction:w,player:S,element:D};o.push(zi),w.queriedElements.forEach(I=>$(a,I,[]).push(S)),w.preStyleProps.forEach((I,he)=>{if(I.size){let j=l.get(he);j||l.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))}}),w.postStyleProps.forEach((I,he)=>{let j=c.get(he);j||c.set(he,j=new Set),I.forEach((Ie,at)=>j.add(at))})});if(Y.length){let h=[];Y.forEach(f=>{h.push(js(f.triggerName,f.errors))}),_e.forEach(f=>f.destroy()),this.reportError(h)}let x=new Map,B=new Map;o.forEach(h=>{let f=h.element;n.has(f)&&(B.set(f,f),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,x))}),s.forEach(h=>{let f=h.element;this._getPreviousPlayers(f,!1,h.namespaceId,h.triggerName,null).forEach(S=>{$(x,f,[]).push(S),S.destroy()})});let ue=T.filter(h=>_i(h,l,c)),be=new Map;gi(be,this.driver,A,c,Z).forEach(h=>{_i(h,l,c)&&ue.push(h)});let de=new Map;_.forEach((h,f)=>{gi(de,this.driver,new Set(h),l,ze)}),ue.forEach(h=>{let f=be.get(h),m=de.get(h);be.set(h,new Map([...f?.entries()??[],...m?.entries()??[]]))});let ot=[],sn=[],rn={};o.forEach(h=>{let{element:f,player:m,instruction:S}=h;if(n.has(f)){if(d.has(f)){m.onDestroy(()=>ee(f,S.toStyles)),m.disabled=!0,m.overrideTotalTime(S.totalTime),s.push(m);return}let D=rn;if(B.size>1){let q=f,ie=[];for(;q=q.parentNode;){let w=B.get(q);if(w){D=w;break}ie.push(q)}ie.forEach(w=>B.set(w,D))}let X=this._buildAnimation(m.namespaceId,S,x,r,de,be);if(m.setRealPlayer(X),D===rn)ot.push(m);else{let q=this.playersByElement.get(D);q&&q.length&&(m.parentPlayer=ce(q)),s.push(m)}}else me(f,S.fromStyles),m.onDestroy(()=>ee(f,S.toStyles)),sn.push(m),d.has(f)&&s.push(m)}),sn.forEach(h=>{let f=r.get(h.element);if(f&&f.length){let m=ce(f);h.setRealPlayer(m)}}),s.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h<T.length;h++){let f=T[h],m=f[G];if(ke(f,Ot),m&&m.hasAnimation)continue;let S=[];if(a.size){let X=a.get(f);X&&X.length&&S.push(...X);let q=this.driver.query(f,It,!0);for(let ie=0;ie<q.length;ie++){let w=a.get(q[ie]);w&&w.length&&S.push(...w)}}let D=S.filter(X=>!X.destroyed);D.length?Dr(this,f,D):this.processLeaveNode(f)}return T.length=0,ot.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let f=this.players.indexOf(h);this.players.splice(f,1)}),h.play()}),ot}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Me;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(n||s)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let s=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,d=c!==r,u=$(n,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(_=>{let p=_.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),_.destroy(),u.push(_)})}me(r,t.fromStyles)}_buildAnimation(e,t,n,s,r,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,b=t.timelines.map(p=>{let g=p.element;d.add(g);let T=g[G];if(T&&T.removedBeforeQueried)return new Se(p.duration,p.delay);let M=g!==l,A=Nr((n.get(g)||Tr).map(x=>x.getRealPlayer())).filter(x=>{let B=x;return B.element?B.element===g:!1}),L=r.get(g),N=o.get(g),_e=bi(this._normalizer,p.keyframes,L,N),Y=this._buildPlayer(p,_e,A);if(p.subTimeline&&s&&u.add(g),M){let x=new Oe(e,a,g);x.setRealPlayer(Y),c.push(x)}return Y});c.forEach(p=>{$(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>Pr(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>H(p,li));let _=ce(b);return _.onDestroy(()=>{d.forEach(p=>ke(p,li)),ee(l,t.toStyles)}),u.forEach(p=>{$(s,p,[]).push(_)}),_}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Se(e.duration,e.delay)}},Oe=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Se,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(s=>Wt(e,n,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){$(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Pr(i,e,t){let n=i.get(e);if(n){if(n.length){let s=n.indexOf(t);n.splice(s,1)}n.length==0&&i.delete(e)}return n}function Mr(i){return i??null}function Qe(i){return i&&i.nodeType===1}function Ar(i){return i=="start"||i=="done"}function mi(i,e){let t=i.style.display;return i.style.display=e??"none",t}function gi(i,e,t,n,s){let r=[];t.forEach(l=>r.push(mi(l)));let o=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let b=e.computeStyle(c,u,s);d.set(u,b),(!b||b.length==0)&&(c[G]=wr,o.push(c))}),i.set(c,d)});let a=0;return t.forEach(l=>mi(l,r[a++])),o}function yi(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,s=new Set(e),r=new Map;function o(a){if(!a)return n;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=n:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function H(i,e){i.classList?.add(e)}function ke(i,e){i.classList?.remove(e)}function Dr(i,e,t){ce(t).onDone(()=>i.processLeaveNode(e))}function Nr(i){let e=[];return Di(i,e),e}function Di(i,e){for(let t=0;t<i.length;t++){let n=i[t];n instanceof Et?Di(n.players,e):e.push(n)}}function Or(i,e){let t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let s=0;s<t.length;s++){let r=t[s];if(!e.hasOwnProperty(r)||i[r]!==e[r])return!1}return!0}function _i(i,e,t){let n=t.get(i);if(!n)return!1;let s=e.get(i);return s?n.forEach(r=>s.add(r)):e.set(i,n),t.delete(i),!0}var Ce=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Vt(e.body,t,n),this._timelineEngine=new jt(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,t,n,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=wi(this._driver,r,l,c);if(l.length)throw Os(s,l);c.length&&void 0,a=_r(s,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if(n.charAt(0)=="@"){let[r,o]=oi(n),a=s;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if(n.charAt(0)=="@"){let[o,a]=oi(n);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ir(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Nt(e[0]),e.length>1&&(n=Nt(e[e.length-1]))):e instanceof Map&&(t=Nt(e)),t||n?new Ut(i,t,n):null}var Ee=class Ee{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let s=Ee.initialStylesByElement.get(e);s||Ee.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ee.initialStylesByElement.delete(this._element),this._startStyles&&(me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}};Ee.initialStylesByElement=new WeakMap;var Ut=Ee;function Nt(i){let e=null;return i.forEach((t,n)=>{Rr(n)&&(e=e||new Map,e.set(n,t))}),e}function Rr(i){return i==="display"||i==="position"}var nt=class{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,s)=>{s!=="offset"&&e.set(s,this._finished?n:Zt(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},it=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return vi(e,t)}getParentElement(e){return Yt(e)}query(e,t,n){return Si(e,t,n)}computeStyle(e,t,n){return Zt(e,t)}animate(e,t,n,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:n,delay:s,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(_=>_ instanceof nt);er(n,s)&&d.forEach(_=>{_.currentSnapshot.forEach((p,g)=>c.set(g,p))});let u=Xs(t).map(_=>new Map(_));u=tr(e,u,c);let b=Ir(e,u);return new nt(e,u,l,b)}};var We="@",Ni="@.disabled",st=class{constructor(e,t,n,s){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==We&&t==Ni?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Qt=class extends st{constructor(e,t,n,s,r){super(t,n,s,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==We?t.charAt(1)=="."&&t==Ni?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==We){let s=Fr(e),r=t.slice(1),o="";return r.charAt(0)!=We&&([r,o]=Lr(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function Fr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Lr(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var rt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(s,r)=>{let o=r?.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,t){let n="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let u=()=>c.delete(s);d=new st(n,s,this.engine,u),c.set(s,d)}return d}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Qt(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Br=(()=>{let e=class e extends Ce{constructor(n,s,r){super(n,s,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(U(An),U(ge),U(ye))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function zr(){return new Xe}function qr(i,e,t){return new rt(i,e,t)}var Ii=[{provide:ye,useFactory:zr},{provide:Ce,useClass:Br},{provide:_n,useFactory:qr,deps:[Fn,Ce,bn]}],Oi=[{provide:ge,useFactory:()=>new it},{provide:gt,useValue:"BrowserAnimations"},...Ii],Kr=[{provide:ge,useClass:Xt},{provide:gt,useValue:"NoopAnimations"},...Ii],Ri=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?Kr:Oi}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e}),e.\u0275inj=se({providers:Oi,imports:[Be]});let i=e;return i})();var Fi=(()=>{let e=class e{constructor(n){this._router=n}intercept(n,s){let r=JSON.parse(window.localStorage.getItem("user")),o=new Date;if(r!=null){let a=new Date(r.Token.expiredAt);o<a?n=n.clone({setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${r.Token.access_token}`}}):n=n.clone({setHeaders:{"Content-Type":"application/json"}})}else n=n.clone({setHeaders:{"Content-Type":"application/json"}});return s.handle(n)}};e.\u0275fac=function(s){return new(s||e)(U(Ke))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var Li=(()=>{let e=class e{constructor(n,s){this.authService=n,this.toastr=s}intercept(n,s){return s.handle(n).pipe(hn(r=>(this.handlerError(r),ln(()=>r))))}handlerError(n){if(!this.unauthorizedErrorHandling(n)&&!Array.isArray(n?.error?.Message)){let r=this.errorMessageHandling(n);this.toastr.error(r.message!=""?r.message:"An unknown error has occured!",r.header,{enableHtml:!0})}}unauthorizedErrorHandling(n){let s=!1;if(n.status==401){let r=localStorage.getItem("currentUser");r&&(JSON.parse(r)?.Token?.access_token?this.tokenExpiredErrorHandling(n):this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout()),s=!0)}return s}tokenExpiredErrorHandling(n){if(this.authService.isActiveToken()){let s=this.errorMessageHandling(n);this.toastr.error(s.message,s.header)}else this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout())}errorMessageHandling(n){let s="API Error",r="Exception Message";return n.error?(s="API Error - "+n.status,n.error.Message&&(n.error.Message.indexOf("Message")!=-1?r=JSON.parse(n.error.Message).Message:r=n.error.Message)):n.message&&(s="API Error - "+n.name,r=n.message),{header:s,message:r}}};e.\u0275fac=function(s){return new(s||e)(U(je),U(qe))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var jr=["custom-toast-component",""];function Hr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O(2);return mt(s.remove())}),Te(1," x "),F()}}function Vr(i,e){if(i&1&&(R(0,"div",6)(1,"div",7)(2,"div",8)(3,"h4"),Te(4),F()()(),R(5,"div",9),ve(6,Hr,2,0,"a",10),F()()),i&2){let t=O();C("display",t.state().value==="inactive"?"none":""),y(2),Fe(t.options.titleClass),yt("aria-label",t.title),y(2),Sn(t.title),y(2),E("ngIf",t.options.closeButton)}}function Ur(i,e){if(i&1&&P(0,"div",12),i&2){let t=O();Fe(t.options.messageClass),E("innerHTML",t.message,yn)}}function Qr(i,e){if(i&1&&(R(0,"div",13),Te(1),F()),i&2){let t=O();Fe(t.options.messageClass),yt("aria-label",t.message),y(),kn(" ",t.message," ")}}function Wr(i,e){if(i&1){let t=_t();R(0,"a",11),bt("click",function(){ft(t);let s=O();return mt(s.remove())}),Te(1," x "),F()}}function Gr(i,e){if(i&1&&(R(0,"div"),P(1,"div",14),F()),i&2){let t=O();y(),C("width",t.width+"%")}}var xi=(()=>{let e=class e extends $n{constructor(n,s){super(n,s),this.toastrService=n,this.toastPackage=s}ngOnInit(){}action(n){return n.stopPropagation(),this.toastPackage.triggerAction(),!1}};e.\u0275fac=function(s){return new(s||e)(J(qe),J(Kn))},e.\u0275cmp=z({type:e,selectors:[["","custom-toast-component",""]],standalone:!0,features:[Q,En],attrs:jr,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","px-0","text-start"],[1,"my-4"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body","text-start",3,"innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body","text-start"],[1,"toast-progress"]],template:function(s,r){s&1&&(R(0,"div",0),ve(1,Vr,7,7,"div",1)(2,Ur,1,3,"div",2)(3,Qr,2,4,"div",3)(4,Wr,2,0,"a",4)(5,Gr,2,2,"div",5),F()),s&2&&(y(),E("ngIf",r.title),y(),E("ngIf",r.message&&r.options.enableHtml),y(),E("ngIf",r.message&&!r.options.enableHtml),y(),E("ngIf",r.options.closeButton&&r.title==null),y(),E("ngIf",r.options.progressBar))},dependencies:[xe,Le],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:1px solid gainsboro;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding:10px 15px 10px 0}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button[_ngcontent-%COMP%]{color:#dcdcdc!important}"],data:{animation:[Bn("flyInOut",[qn("inactive",W({opacity:0})),kt("inactive => active",vt("400ms ease-out",St([W({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),W({transform:"skewX(20deg)",opacity:1}),W({transform:"skewX(-5deg)",opacity:1}),W({transform:"none",opacity:1})]))),kt("active => removed",vt("400ms ease-out",St([W({opacity:1}),W({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});let i=e;return i})();var Yr={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]},Bi=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=re({type:e,bootstrap:[si]}),e.\u0275inj=se({providers:[{provide:we,useClass:Fi,multi:!0},{provide:Zn,useValue:{subscriptSizing:"dynamic"}},Hn,Vn,{provide:Mn,useFactory:n=>function(){n.loadPermissions()},deps:[je],multi:!0},{provide:we,useClass:Li,multi:!0},In(Rn())],imports:[Be,ii,Ri,jn.forRoot({toastComponent:xi,positionClass:"toast-bottom-right",closeButton:!0}),Jn.forRoot(Yr),ni.forRoot(),Gn.initializeApp($e.firebaseConfig),Yn,Xn.forRoot()]});let i=e;return i})();$e.production&&void 0;Ln().bootstrapModule(Bi).catch(i=>console.error(i));
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"marketplacepos","version":"3.13.
|
|
1
|
+
{"name":"marketplacepos","version":"3.13.3"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as M}from"./chunk-FX43R2N5.js";import{a as Ee}from"./chunk-LIS3LB3F.js";import{a as xe,b as fe,d as Se,e as Pe}from"./chunk-2Y4N4NSS.js";import{a as E}from"./chunk-BSBYMQ7J.js";import{a as Me,b as B,c as Ne}from"./chunk-BRTVFFDI.js";import{a as ge}from"./chunk-662E5VTA.js";import{a as be,c as De}from"./chunk-NNPT3RN6.js";import{a as Ve,b as Te}from"./chunk-G6CZHXQI.js";import"./chunk-M4VGME5L.js";import{a as Fe}from"./chunk-5WVUQE43.js";import"./chunk-AAIK6JQ3.js";import{g as ue}from"./chunk-FON6ZRGN.js";import{b as oe,e as re}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{d as ye,k as Ie,l as we,m as ve}from"./chunk-PIDUM6XT.js";import"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{b as le,c as ce,h as se,k as _e,m as pe,u as me}from"./chunk-F5YRASNU.js";import{c as de,e as he,f as Ce}from"./chunk-2UXFUEON.js";import{B as A,Eb as H,Fb as d,Gb as R,Ha as V,Hb as T,Ia as l,Ib as J,Ja as f,Jb as y,Kb as I,Lb as w,Mb as Z,Nb as Q,Pb as b,Q as W,Wb as v,X as $,Xb as F,Ya as h,Yb as X,Zb as Y,_a as _,da as j,fb as S,ga as z,gb as N,ib as k,jb as L,kb as o,lb as c,mb as P,nb as G,oa as p,ob as K,pa as m,pc as ee,qb as x,sc as te,tb as u,vb as r,vc as ne,yb as q,yc as ie,zc as ae}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var U=i=>[i],Le=i=>({"text-decoration-line-through":i}),Re=i=>({"bg-gradient-warning":i}),Be=i=>({"ms-10":i});function Ue(i,s){if(i&1&&(o(0,"span",10),P(1,"img",11),c(),d(2)),i&2){let t=s.item;l(),_("src",t==null?null:t.Img,V),l(),T(" ",t.Name," ")}}function Oe(i,s){if(i&1){let t=x();o(0,"button",16),u("click",function(){p(t);let n=r().ngIf,a=r(2);return m(a.updateStock(n))}),P(1,"i",17),d(2," Update "),c()}}function Ae(i,s){if(i&1){let t=x();o(0,"actions")(1,"div",12),h(2,Oe,3,0,"button",13),o(3,"button",14),u("click",function(){p(t);let n=r(2);return m(n.openExportDialog())}),P(4,"i",15),o(5,"span"),d(6,"Export"),c()()()()}if(i&2){let t=s.ngIf,e=r(2);l(2),_("ngIf",e.productService.hasSelectionVariant(t))}}function We(i,s){if(i&1){let t=x();o(0,"th")(1,"input",33),u("change",function(n){p(t);let a=r().ngIf,g=r(2);return m(g.onSelectAllSKU(n.target.checked,a))}),c()()}}function $e(i,s){if(i&1){let t=x();o(0,"input",52),w("ngModelChange",function(n){p(t);let a=r(4).$implicit;return I(a.selected,n)||(a.selected=n),m(n)}),u("ngModelChange",function(){p(t);let n=r(4).$implicit,a=r(3);return m(a.onCheckboxStateProduct(n))}),c()}if(i&2){let t=r(4).$implicit;y("ngModel",t.selected)}}function je(i,s){if(i&1&&h(0,$e,1,1,"ng-template",26),i&2){let t=r(6);_("ngxPermissionsOnly",b(1,U,t.rolePriceEdit))}}function ze(i,s){if(i&1){let t=x();G(0),o(1,"img",53),u("click",function(n){p(t);let a=r(3).$implicit,g=r(3);return m(g.onZoomImage(n,a==null?null:a.ImageUrl))}),c(),K()}if(i&2){let t=r(3).$implicit;l(),q("src",t.ThumbnailUrl,V)}}function Ge(i,s){i&1&&P(0,"img",54)}function Ke(i,s){if(i&1&&(o(0,"small",51),d(1),c()),i&2){let t=r(3).$implicit;l(),T("(",t.Category,")")}}function qe(i,s){if(i&1&&(o(0,"td",45)(1,"div",46),h(2,je,1,3,null,26),o(3,"div",47),h(4,ze,2,1,"ng-container",48)(5,Ge,1,0,"ng-template",null,0,Y),c()()(),o(7,"td",49)(8,"span",50),d(9),c(),h(10,Ke,2,1,"small",51),c()),i&2){let t=H(6),e=r(2).$implicit;_("rowSpan",e.Variants.length),l(2),S((e.Variants==null?null:e.Variants.length)>1?2:-1),l(),_("ngClass",b(8,Be,(e.Variants==null?null:e.Variants.length)<=1)),l(),_("ngIf",e.ThumbnailUrl)("ngIfElse",t),l(3),_("rowSpan",e.Variants.length),l(2),R(e.Name),l(),S(e.Category?10:-1)}}function He(i,s){if(i&1){let t=x();o(0,"input",57),w("ngModelChange",function(n){p(t);let a=r(2).$implicit;return I(a.selected,n)||(a.selected=n),m(n)}),c()}if(i&2){let t=r(2).$implicit;y("ngModel",t.selected)}}function Je(i,s){if(i&1&&(o(0,"td",55),h(1,He,1,1,"input",56),c()),i&2){let t=r().$implicit;l(),S(t.UnitPrice>=0?1:-1)}}function Ze(i,s){i&1&&(o(0,"div",37),d(1," Not Found "),c())}function Qe(i,s){if(i&1&&(o(0,"div"),d(1),v(2,"number"),c()),i&2){let t=r().$implicit;l(),T(" ",F(2,1,t.UnitPrice)," ")}}function Xe(i,s){if(i&1&&(o(0,"div",38)(1,"a",41),P(2,"i",58),c()()),i&2){let t=r().$implicit,e=r(4);l(),_("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(t==null?null:t.ID),V)}}function Ye(i,s){if(i&1){let t=x();o(0,"div",59),u("click",function(){p(t);let n=r().$implicit,a=r().$implicit,g=r(2).ngIf,C=r();return m(C.openTableDialog(n,a,g))}),d(1),v(2,"number"),c()}if(i&2){let t=r().$implicit;l(),T(" ",F(2,1,t.Channel[0]==null?null:t.Channel[0].Price)," ")}}function et(i,s){if(i&1){let t=x();o(0,"tr",34),h(1,qe,11,10),o(2,"td",24),d(3),c(),o(4,"td",27)(5,"span",35),d(6),c()(),h(7,Je,2,1,"ng-template",26),o(8,"td",27)(9,"div",36),h(10,Ze,2,0,"div",37)(11,Qe,3,3,"div")(12,Xe,3,1,"div",38),c()(),o(13,"td",39)(14,"div",36),h(15,Ye,3,3,"div",40),o(16,"div",38)(17,"a",41),P(18,"i",42),c()(),o(19,"div",38)(20,"div",43),u("click",function(){let n=p(t).$implicit,a=r(4);return m(a.refreshPrice(n))}),P(21,"i",44),c()()()()()}if(i&2){let t=s.$implicit,e=s.$index,n=r(4);l(),S(e==0?1:-1),l(2),R(t.Model),l(2),_("matTooltip",t.Discontinued?n.discontinuedVariantMsg:"")("ngClass",b(12,Le,t.Discontinued)),l(),T(" ",t.Code," "),l(),_("ngxPermissionsOnly",b(14,U,n.rolePriceEdit)),l(3),S((t.Channel[0]==null?null:t.Channel[0].Description)!=null?10:-1),l(),S((t.Channel[0]==null?null:t.Channel[0].Description)==null?11:-1),l(),S((t.Channel[0]==null?null:t.Channel[0].Description)==null?12:-1),l(),_("ngClass",b(16,Re,t.UnitPrice!=(t.Channel[0]==null?null:t.Channel[0].Price))),l(2),S(t.Channel.length>0?15:-1),l(2),_("href",t.Channel[0]==null?null:t.Channel[0].Url,V)}}function tt(i,s){if(i&1&&k(0,et,22,18,"tr",34,N),i&2){let t=s.$implicit;L(t.Variants)}}function nt(i,s){if(i&1){let t=x();o(0,"content")(1,"div",18)(2,"div",19)(3,"table",20)(4,"thead",21)(5,"tr")(6,"th",22),d(7," Product "),o(8,"div")(9,"mat-slide-toggle",23),w("ngModelChange",function(n){p(t);let a=r(2);return I(a.toggleDifferentInventory,n)||(a.toggleDifferentInventory=n),m(n)}),u("toggleChange",function(){p(t);let n=r(2);return m(n.onToggleDifferentInventory())}),o(10,"small",7),d(11,"FILTER DIFFERENT PRICE"),c()()()(),o(12,"th",24),d(13,"Variant"),c(),o(14,"th",25),d(15,"SKU"),c(),h(16,We,2,0,"ng-template",26),o(17,"th",27),d(18,"POS"),c(),o(19,"th",27)(20,"div",28),u("click",function(){p(t);let n=r(2);return m(n.openModalFilter())}),P(21,"img",29),o(22,"span",30),d(23),v(24,"stringLimit"),c()()()()(),o(25,"tbody",31),k(26,tt,2,0,null,null,N),c()(),o(28,"infinite-paginator",32),v(29,"async"),u("onNextPage",function(){p(t);let n=r(2);return m(n.infinitePagination.onNextPage(n.searchFilter))})("onLastPage",function(){p(t);let n=r(2);return m(n.onLastPage())})("onGetRowCount",function(){p(t);let n=r(2);return m(n.infinitePagination.getRowCount(n.searchFilter))}),c()()()()}if(i&2){let t=s.ngIf,e=r(2);l(9),y("ngModel",e.toggleDifferentInventory),l(7),_("ngxPermissionsOnly",b(17,U,e.rolePriceEdit)),l(4),_("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>=20?e.selectedChannel==null?null:e.selectedChannel.Name:""),l(),_("src",e.selectedChannel==null?null:e.selectedChannel.Img,V),l(2),J(" ",X(24,12,e.selectedChannel==null?null:e.selectedChannel.Name,20),"",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>=20?"...":""," "),l(3),L(t),l(2),_("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",F(29,15,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.goToLastPage())}}function it(i,s){if(i&1){let t=x();o(0,"mainpanel",2),w("textChange",function(n){p(t);let a=r();return I(a.searchFilter.text,n)||(a.searchFilter.text=n),m(n)}),u("onSubmit",function(){p(t);let n=r();return m(n.onSearch())}),o(1,"filters")(2,"div")(3,"label",3),d(4,"Channel"),c(),o(5,"ng-select",4),w("ngModelChange",function(n){p(t);let a=r();return I(a.searchFilter.ChannelID,n)||(a.searchFilter.ChannelID=n),m(n)}),h(6,Ue,3,2,"ng-template",5),c()(),o(7,"div",6)(8,"label",7),d(9,"Page Number"),c(),o(10,"input",8),w("ngModelChange",function(n){p(t);let a=r();return I(a.searchFilter.PageNumber,n)||(a.searchFilter.PageNumber=n),m(n)}),c()(),o(11,"div",6)(12,"label",7),d(13,"Page Size"),c(),o(14,"input",8),w("ngModelChange",function(n){p(t);let a=r();return I(a.searchFilter.RowCount,n)||(a.searchFilter.RowCount=n),m(n)}),c()()(),h(15,Ae,7,1,"actions",9),v(16,"async"),h(17,nt,30,19,"content",9),v(18,"async"),c()}if(i&2){let t=r();_("headerTitle",t.pageTitle),y("text",t.searchFilter.text),l(5),_("clearable",!1)("items",t.channelOptions),y("ngModel",t.searchFilter.ChannelID),l(5),y("ngModel",t.searchFilter.PageNumber),l(4),y("ngModel",t.searchFilter.RowCount),l(),_("ngIf",F(16,9,t.data$)),l(2),_("ngIf",F(18,11,t.data$))}}var Ot=(()=>{let s=class s{constructor(e,n,a,g,C,D,O,ke){this.http=e,this.toastr=n,this.dialog=a,this.productService=g,this.biggerPictureService=C,this.inventoryService=D,this.authService=O,this.mainPanelService=ke,this.infinitePagination=j(B),this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.rolePriceEdit=ge.price,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.hostName=this.authService.getDomain(),this.data$=this.infinitePagination.data$.pipe(W(1)),this.channelOptions=O.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.dataEndpoint,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`).pipe($(e=>{this.searchFilter=e.Filter,this.searchFilter.filterModel=E.ALL,this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel()}))}onToggleDifferentInventory(){this.toggleDifferentInventory?this.searchFilter.filterModel=E.ALL:this.searchFilter.filterModel=E.DIFFERENCE,this.onSearch()}onCheckboxStateProduct(e){e.Variants=e.Variants.map(n=>(n.selected=e.selected,n))}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(e){let a=this.productService.selectedVariantProduct(e).map(C=>({ID:C.ID,ChannelID:C.Channel[0].ChannelID,Code:C.Code,Price:C.UnitPrice})),g={ListChannelID:[this.searchFilter.ChannelID],ListPrice:a};this.http.post("/api/Price/UpdateChannel",g).subscribe(C=>{this.onSearch(),this.handlingUpdateStock(C.Response)})}handlingUpdateStock(e){if(e.success_list.length>0||e.failure_list.length>0){let n=e.failure_list,a=e.success_list;this.inventoryService.showToastrUpdateInventory("Price",a,n)}else this.toastr.error(e[0]?.Exception,"Error")}refreshPrice(e){let n={ChannelItemID:e?.Channel[0].ChannelItemID,ChannelVariationID:e?.Channel[0]?.ChannelVariationID,ChannelID:e?.Channel[0]?.ChannelID,VariantID:e.ID};this.http.post("/api/Price/RefreshPriceChannel",n).subscribe(a=>{this.toastr.success("Successfully updated","Success"),this.onSearch()})}onSearch(){this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel()}onLastPage(){this.http.post(`/API/${this.rowCountApi}`,this.searchFilter).subscribe({next:e=>{this.searchFilter.PageNumber=1,this.infinitePagination.onLastPage(this.searchFilter,e.Total)}})}openTableDialog(e,n,a){let g=JSON.parse(JSON.stringify(e));this.dialog.open(Me,{data:{Name:n.Name,Variant:g,ChannelID:g?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:g?.Channel[0]?.ChannelItemID}}).afterClosed().pipe(A(D=>de.IsNotEmpty(D))).subscribe(D=>{this.updateItemAfterDialog(D,e)})}updateItemAfterDialog(e,n){let a={ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,Price:parseFloat(e.Price),VariantID:e.ID,SKU:e.Sku};this.http.post("/api/Price/UpdatePriceByID",a).subscribe(g=>{let C=this.productService.findChannelById(a.ID,this.channelOptions);this.toastr.success(`Successfully updated ${e.ItemName} (${e.VarName}) inventory in ${C.Name} to ${a.Price}`,"Success"),n.Channel[0]&&(n.Channel[0].Price=a.Price)})}initSelectedChannel(){this.selectedChannel=this.channelOptions.find(e=>e.ID==this.searchFilter.ChannelID)}onSelectAllSKU(e,n){n=n.map(a=>(a.Variants=a.Variants.map(g=>(g.selected=e,g)),a))}onZoomImage(e,n){this.biggerPictureService.openBiggerPicture(e,n)}openExportDialog(){this.dialog.open(Ee,{data:{title:"Export Price Single Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountApi,exportApi:"price/GetExportSingleChannelComparison"}}).afterClosed().subscribe()}};s.\u0275fac=function(n){return new(n||s)(f(re),f(oe),f(ye),f(be),f(Fe),f(M),f(ue),f(Ie))},s.\u0275cmp=z({type:s,selectors:[["app-price-single-channel"]],standalone:!0,features:[Z([B,M]),Q],decls:2,vars:3,consts:[["elsePic",""],["class","single-price",3,"headerTitle","text","textChange","onSubmit",4,"ngIf"],[1,"single-price",3,"textChange","onSubmit","headerTitle","text"],[1,"fw-bold","mb-2"],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel","appendTo","body",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[4,"ngIf"],[1,"me-2"],[2,"width","18px",3,"src"],[1,"d-flex"],["class","btn btn-success",3,"click",4,"ngIf"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"container-fluid","mt-5"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"text-center","ps-12",2,"width","36%"],["name","differentInventory",3,"ngModelChange","toggleChange","ngModel"],[1,"text-start"],[1,"text-end",2,"width","20%"],[3,"ngxPermissionsOnly"],[1,"text-end"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],["cdkVirtualScrollingElement",""],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["type","checkbox",1,"me-3",3,"change"],[1,"w-100"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"d-flex","align-items-center","justify-content-end"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],[1,"ms-3"],[1,"text-end",3,"ngClass"],[2,"cursor","pointer"],["target","_blank",3,"href"],[1,"fas","external-link-custom","fa-lg","fa-external-link-alt"],["matTooltip","Refresh Unit Price according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","external-link-custom","fa-sync","fa-lg"],[1,"text-start",2,"width","0%",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-start"],[3,"ngClass"],[4,"ngIf","ngIfElse"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],[1,"d-block"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],["loading","lazy",1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"click","src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png","loading","lazy",1,"border","rounded","w-img",2,"margin-left","20px"],[1,"align-middle"],["type","checkbox",3,"ngModel"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"fas","external-link-custom","fa-external-link-alt"],[2,"cursor","pointer",3,"click"]],template:function(n,a){n&1&&(h(0,it,19,13,"mainpanel",1),v(1,"async")),n&2&&_("ngIf",F(1,1,a.loader$))},dependencies:[ae,ee,te,ne,ie,ve,we,Pe,Se,xe,fe,me,ce,pe,le,se,_e,De,Ne,Ce,he,Te,Ve],styles:[".w-img[_ngcontent-%COMP%]{width:40px;height:40px}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}i.fas.custom-size[_ngcontent-%COMP%]{font-size:13px}.item-name[_ngcontent-%COMP%]{font-size:larger}"],changeDetection:0});let i=s;return i})();export{Ot as PriceSingleChannelComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as mt}from"./chunk-662E5VTA.js";import{b as Pt}from"./chunk-NNPT3RN6.js";import{c as bt}from"./chunk-M4VGME5L.js";import{g as xt}from"./chunk-AAIK6JQ3.js";import{e as it}from"./chunk-IPX66YIX.js";import{b as gt,c as ht,g as ft,i as _t,j as Ct}from"./chunk-PIDUM6XT.js";import{t as pt,u as ut}from"./chunk-43TMSPFC.js";import{c as nt,h as ot,k as at,u as rt}from"./chunk-F5YRASNU.js";import{b as lt,c as st,d as ct,f as dt}from"./chunk-2UXFUEON.js";import{$ as q,B as G,Eb as V,F as W,Fb as d,Gb as S,Hb as $,Ia as r,Ja as M,Jb as X,Kb as Z,Lb as tt,Nb as L,O as Y,Q as z,Ua as C,V as U,Wb as w,X as H,Xb as I,Y as J,Ya as g,Zb as F,_a as h,c as j,ca as K,d as A,fb as P,ga as D,ic as N,kb as l,lb as m,mb as O,nb as T,oa as p,ob as v,pa as u,pb as Q,q as y,qb as _,sc as R,tb as x,uc as et,vb as c,xa as f,yc as B,za as E,zc as k}from"./chunk-77JORVC2.js";function wt(i,n){i&1&&Q(0)}function It(i,n){if(i&1&&(T(0),g(1,wt,1,0,"ng-container",5),v()),i&2){c(2);let a=V(4);r(),h("ngTemplateOutlet",a)}}function Nt(i,n){if(i&1&&(l(0,"div",6)(1,"label"),d(2,"Editing Data"),m(),l(3,"div")(4,"span"),d(5),w(6,"number"),m()()()),i&2){let a=c(2);r(5),S(I(6,1,a.value))}}function yt(i,n){if(i&1&&(T(0),g(1,It,2,1,"ng-container",4)(2,Nt,7,3,"ng-template",null,1,F),v()),i&2){let a=V(3),t=c();r(),h("ngIf",t.hasPriceEdit)("ngIfElse",a)}}function Dt(i,n){if(i&1){let a=_();l(0,"div",7)(1,"input",8),tt("ngModelChange",function(e){p(a);let o=c();return Z(o.value,e)||(o.value=e),u(e)}),m(),l(2,"label",9),d(3,"Editing Data"),m()()}if(i&2){let a=c();r(),X("ngModel",a.value),h("max",a.maxEditInventory)}}var Kt=(()=>{let n=class n{constructor(t,e,o){this.dialogRef=t,this.item=e,this.permissionService=o,this.maxEditInventory=1e5,this.permissionService.hasPermission(mt.price).then(s=>this.hasPriceEdit=s)}ngOnInit(){this.selectedChannel=this.item.Variant.Channel.find(t=>t.ChannelID==this.item.ChannelID),this.selectedChannel.ID=this.item.Variant.ID,this.selectedChannel.Sku=this.item.Variant.Code,this.item.Table=="inventory"?(this.value=this.selectedChannel.Inventory,this.maxEditInventory=this.selectedChannel?.TypeID==lt.Tokopedia?1e5:null):this.item.Table=="price"&&(this.value=this.selectedChannel.Price,this.maxEditInventory=null),this.selectedChannel.ItemName=this.item.Name,this.selectedChannel.VarName=this.item.Variant.Model,this.initModalConfig()}initModalConfig(){this.modalConfig=new _t,this.modalConfig.title=`${this.item?.Name} ${this.item?.Variant?.Model} ${this.item?.Table} in ${this.selectedChannel?.Title}`}onSubmit(){this.item.Table=="inventory"?this.selectedChannel.Inventory=this.value:this.item.Table=="price"&&(this.selectedChannel.Price=this.value),this.dialogRef.close(this.selectedChannel)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(e){return new(e||n)(M(gt),M(ht),M(ct))},n.\u0275cmp=D({type:n,selectors:[["app-table-dialog"]],standalone:!0,features:[L],decls:5,vars:4,consts:[["INVENTORY",""],["DISABLED",""],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["matTooltipPosition","above","matTooltip","Cannot edit Unit Price because you dont have access ProductEditor role",1,"info-label-group","mt-3",2,"background","#e9ecef","opacity","1"],[1,"form-label-group","mt-3"],["type","text","name","edit","placeholder","Editing Data","autoNum","",1,"form-control",3,"ngModelChange","ngModel","max"],["for","edit"]],template:function(e,o){if(e&1){let s=_();l(0,"modal-material",2),x("onClose",function(){return p(s),u(o.onClose())})("onCancel",function(){return p(s),u(o.onClose())})("onOk",function(){return p(s),u(o.onSubmit())}),l(1,"div",3),g(2,yt,4,2,"ng-container",4)(3,Dt,4,2,"ng-template",null,0,F),m()()}if(e&2){let s=V(4);h("dynamicValidated",o.value)("config",o.modalConfig),r(2),h("ngIf",o.item.Table=="price")("ngIfElse",s)}},dependencies:[k,R,et,B,ft,xt,bt,Pt,Ct,rt,nt,ot,at,dt,ut,pt],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}.mat-dialog-content[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;margin-left:.5rem;margin-right:.5rem}.font-lg[_ngcontent-%COMP%]{font-size:large}.font-lgr[_ngcontent-%COMP%]{font-size:larger}"]});let i=n;return i})();var ne=(()=>{let n=class n{constructor(t){this.http=t,this.pagination$=new A(null),this._pageNumber=C(1),this.pageNumber=N(()=>this._pageNumber()),this._hideCount=C(!0),this.hideCount=N(()=>this._hideCount()),this._disableNextButton=C(!0),this.disableNextButton=N(()=>this._disableNextButton()),this._goToLastPage=C(!1),this.goToLastPage=N(()=>this._goToLastPage()),this.totalData=C(0),this.destroy$=new j,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this._pageNumber.set(t.PageNumber)}setPaginationButtonState(t,e){e==0?this._disableNextButton.set(!0):this._disableNextButton.set(!(e<t.RowCount*t.PageNumber))}reloadPagination(t){st.IsEmpty(t.PageNumber)&&(t.PageNumber=1),this.pagination$.next(t),this._hideCount.set(!0),this._goToLastPage.set(!1)}onLastPage(t,e){t.RowCount=e,this.pagination$.next(t),this._goToLastPage.set(!0)}paginationFunction(){return this.pagination$.pipe(U(this.destroy$),G(t=>t!=null),W(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(y(e=>e.Data?e.Data:[]))),J(this.pagination$),Y((t,e)=>{let[o,s]=t,[b]=e;return s.PageNumber==1?[b,s]:[o.concat(b),s]}),H(([t,e])=>{this.setPageNumberFooter(e);let o=this.calculateProductLength(t);this.totalData.set(o),this.setPaginationButtonState(e,o)}),y(([t])=>t),z())}getRowCount(t){this._hideCount.set(!1),this.totalRowCount$=this.http.post(`/API/${this.fethRowCountEndpoint}`,t).pipe(y(e=>e.Total))}calculateProductLength(t=[]){return t.reduce((o,s)=>o+(s.Variants?.length?s.Variants?.length:0),0)}};n.\u0275fac=function(e){return new(e||n)(K(it))},n.\u0275prov=q({token:n,factory:n.\u0275fac});let i=n;return i})();function Et(i,n){if(i&1){let a=_();l(0,"span",6),x("click",function(){p(a);let e=c();return u(e.onGetRowCount())}),l(1,"i",7),d(2,"?"),m()()}}function Mt(i,n){if(i&1&&(T(0),l(1,"span"),d(2),w(3,"number"),m(),v()),i&2){let a=c();r(2),S(I(3,1,a.rowCount()))}}function Vt(i,n){if(i&1){let a=_();l(0,"a",10),x("click",function(){p(a);let e=c(2);return u(e.onNextPage())}),O(1,"i",11),d(2," Next"),m()}}function St(i,n){if(i&1){let a=_();l(0,"a",12),x("click",function(){p(a);let e=c(2);return u(e.onLastPage())}),O(1,"i",13),d(2," Last"),m()}}function Lt(i,n){if(i&1&&(l(0,"div",5),g(1,Vt,3,0,"a",8)(2,St,3,0,"a",9),m()),i&2){let a=c();r(),P(a.disableNextButton()&&!a.goToLastPage()?1:-1),r(),P(a.disableNextButton()&&!a.goToLastPage()?2:-1)}}var me=(()=>{let n=class n{constructor(){this.totalData=f(0),this.rowCount=f(),this.pageNumber=f(),this.disableNextButton=f(),this.goToLastPage=f(),this.hideCount=f(),this.nextPage=new E,this.lastPage=new E,this.getRowCount=new E}onNextPage(){this.nextPage.emit()}onLastPage(){this.lastPage.emit()}onGetRowCount(){this.getRowCount.emit()}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=D({type:n,selectors:[["infinite-paginator"]],inputs:{totalData:[1,"totalData"],rowCount:[1,"rowCount"],pageNumber:[1,"pageNumber"],disableNextButton:[1,"disableNextButton"],goToLastPage:[1,"goToLastPage"],hideCount:[1,"hideCount"]},outputs:{nextPage:"onNextPage",lastPage:"onLastPage",getRowCount:"onGetRowCount"},standalone:!0,features:[L],decls:9,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[4,"ngIf"],[1,"btn-group"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0",3,"click"],[1,"fas","fa-share"]],template:function(e,o){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),d(3),w(4,"number"),g(5,Et,3,0,"span",3)(6,Mt,4,3,"ng-container",4),d(7),m()(),g(8,Lt,3,2,"div",5),m()),e&2&&(r(3),$(" Showing 1 - ",I(4,5,o.totalData())," of "),r(2),P(o.hideCount()?5:-1),r(),h("ngIf",!o.hideCount()&&o.rowCount()),r(),$(" records ~ ",o.pageNumber()," Page "),r(),P(o.totalData()>0?8:-1))},dependencies:[k,R,B]});let i=n;return i})();export{Kt as a,ne as b,me as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ve}from"./chunk-IWVYX6KY.js";import{a as Me}from"./chunk-LIS3LB3F.js";import{a as ye,b as Ie,c as we}from"./chunk-DXJFMERC.js";import"./chunk-CS5AGUUI.js";import{a as De}from"./chunk-WJI6JIBR.js";import{a as K}from"./chunk-BSBYMQ7J.js";import{a as Oe,b as Z,c as Ve}from"./chunk-BRTVFFDI.js";import"./chunk-2GZOVNPU.js";import{a as he}from"./chunk-662E5VTA.js";import{a as Fe,c as Ee}from"./chunk-NNPT3RN6.js";import"./chunk-G6CZHXQI.js";import"./chunk-M4VGME5L.js";import{a as Te}from"./chunk-5WVUQE43.js";import"./chunk-AAIK6JQ3.js";import{g as xe}from"./chunk-FON6ZRGN.js";import{b as _e,e as ue}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{d as Pe,l as be,m as Se}from"./chunk-PIDUM6XT.js";import{t as j,u as W}from"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{b as ge,h as L,k as A,u as U}from"./chunk-F5YRASNU.js";import{c as X,e as Ce,f as fe}from"./chunk-2UXFUEON.js";import{B as G,Eb as H,Fb as p,Gb as oe,Ha as T,Hb as P,Ia as l,Ib as re,Ja as S,Jb as V,Kb as N,Lb as k,Mb as ae,Nb as B,Pb as F,Q as q,Qb as le,Wb as b,X as z,Xb as w,Ya as g,Yb as ce,Zb as J,_a as s,bb as te,da as Q,fb as ne,ga as O,gb as E,ib as M,jb as D,kb as a,lb as c,mb as x,nb as v,oa as C,ob as y,pa as f,pc as se,q as Y,qb as I,rc as R,sc as me,tb as h,vb as m,vc as pe,yb as ie,yc as de,za as ee,zc as $}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var Ae=(t,r)=>({color:t,"font-weight":r});function Ue(t,r){if(t&1&&(a(0,"mat-radio-button",2),p(1),c()),t&2){let n=r.$implicit,o=r.index,e=m();te(le(7,Ae,e.model==n.Key&&e.activeBold?"#0976b4":"",e.model==n.Key&&e.activeBold?"700":"")),s("disabled",e.exception==n.Value)("matTooltip",e.title.length>0?e.title[o]:"")("value",n.Key)("name",e.name),l(),P("",n.Value," ")}}var Ne=(()=>{let r=class r{constructor(){this.disabled=!1,this.modelChange=new ee,this.options=[{Key:!1,Value:"No"},{Key:!0,Value:"Yes"}],this.border=!1,this.name="",this.title=[],this.exception="",this.activeBold=""}change(o){this.modelChange.emit(o)}};r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=O({type:r,selectors:[["lib-radio-options"]],inputs:{model:"model",disabled:"disabled",options:"options",border:"border",name:"name",title:"title",exception:"exception",activeBold:"activeBold"},outputs:{modelChange:"modelChange"},standalone:!0,features:[B],decls:2,vars:3,consts:[["color","primary",3,"ngModelChange","disabled","ngModel"],["matTooltipPosition","above","class","me-4 mt-1",3,"style","disabled","matTooltip","value","name",4,"ngFor","ngForOf"],["matTooltipPosition","above",1,"me-4","mt-1",3,"disabled","matTooltip","value","name"]],template:function(e,i){e&1&&(a(0,"mat-radio-group",0),h("ngModelChange",function(_){return i.change(_)}),g(1,Ue,2,10,"mat-radio-button",1),c()),e&2&&(s("disabled",i.disabled)("ngModel",i.model),l(),s("ngForOf",i.options))},dependencies:[$,R,we,ye,Ie,U,L,A,W,j],styles:["html[_ngcontent-%COMP%]{--mdc-radio-state-layer-size: 36px;--mat-radio-touch-target-display: block}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-radio[_ngcontent-%COMP%] .mdc-radio__native-control[_ngcontent-%COMP%]:enabled:checked + .mdc-radio__background[_ngcontent-%COMP%] .mdc-radio__outer-circle[_ngcontent-%COMP%]{border-color:#0976b4!important}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-radio[_ngcontent-%COMP%] .mdc-radio__native-control[_ngcontent-%COMP%]:enabled + .mdc-radio__background[_ngcontent-%COMP%] .mdc-radio__inner-circle[_ngcontent-%COMP%]{background-color:#0976b4!important;border-color:#0976b4!important}"]});let t=r;return t})();var ke=t=>[t],je=t=>({"text-decoration-line-through":t}),We=t=>({"border-bottom":t}),Ke=t=>({"bg-gradient-warning":t});function Ge(t,r){if(t&1){let n=I();v(0),a(1,"div",21)(2,"h6",22),p(3,"Filter by"),c(),a(4,"lib-radio-options",23),k("modelChange",function(e){C(n);let i=m();return N(i.filterType,e)||(i.filterType=e),f(e)}),c()(),y()}if(t&2){let n=m();l(4),V("model",n.filterType),s("options",n.filterTypeOptions)}}function ze(t,r){if(t&1){let n=I();a(0,"button",25),h("click",function(){C(n);let e=m().ngIf,i=m();return f(i.onUpdateItems(e))}),x(1,"i",26),p(2," Update "),c()}}function He(t,r){if(t&1&&(v(0),a(1,"div",4),g(2,ze,3,0,"button",24),c(),y()),t&2){let n=r.ngIf,o=m();l(2),s("ngIf",o.productService.hasSelectionVariant(n))}}function Je(t,r){if(t&1&&(a(0,"th",15)(1,"div",27),x(2,"img",28),a(3,"div",29),p(4),b(5,"stringLimit"),c()()()),t&2){let n=r.$implicit;l(),s("matTooltip",(n.Name==null?null:n.Name.length)>20?n.Name:""),l(),s("src",n==null?null:n.Img,T),l(2),re(" ",ce(5,4,n.Name,20),"",(n.Name==null?null:n.Name.length)>20?"...":""," ")}}function Xe(t,r){if(t&1){let n=I();a(0,"th")(1,"input",30),k("ngModelChange",function(e){C(n);let i=m();return N(i.checkboxState,e)||(i.checkboxState=e),f(e)}),h("ngModelChange",function(){C(n);let e=m();return f(e.onSelectAllData())}),c()()}if(t&2){let n=m();l(),V("ngModel",n.checkboxState)}}function Ze(t,r){t&1&&(a(0,"th",31)(1,"span"),p(2,"Expected"),c(),a(3,"span",32),p(4,"(POS)"),c()(),a(5,"th",31),p(6,"Channel"),c())}function Ye(t,r){if(t&1){let n=I();a(0,"img",45),h("click",function(e){C(n);let i=m(3).$implicit,d=m(2);return f(d.onZoomImage(e,i==null?null:i.ImageUrl))}),c()}if(t&2){let n=m(3).$implicit;ie("src",n==null?null:n.ImageUrl,T)}}function qe(t,r){t&1&&x(0,"img",46)}function Qe(t,r){if(t&1&&(a(0,"small",44),p(1),c()),t&2){let n=m(3).$implicit;l(),P("(",n==null?null:n.Category,")")}}function et(t,r){if(t&1&&(v(0),a(1,"td",40),g(2,Ye,1,1,"img",41)(3,qe,1,0,"ng-template",null,0,J),c(),a(5,"td",42)(6,"h5",43),p(7),c(),g(8,Qe,2,1,"small",44),c(),y()),t&2){let n=H(4),o=m().$index,e=m().$implicit,i=m().ngIf;l(),s("rowSpan",e==null?null:e.Variants.length)("ngClass",F(7,We,o+1==i.length)),l(),s("ngIf",e==null?null:e.ImageUrl)("ngIfElse",n),l(3),s("rowSpan",e==null?null:e.Variants.length),l(2),oe(e==null?null:e.Name),l(),ne(e!=null&&e.Category?8:-1)}}function tt(t,r){if(t&1){let n=I();a(0,"td",47)(1,"input",30),k("ngModelChange",function(e){C(n);let i=m().$implicit;return N(i.selected,e)||(i.selected=e),f(e)}),c()()}if(t&2){let n=m().$implicit;l(),V("ngModel",n.selected)}}function nt(t,r){if(t&1){let n=I();v(0),a(1,"td",49),p(2),b(3,"number"),c(),a(4,"td",50),h("click",function(){let e=C(n).$implicit,i=m(2).$implicit,d=m().$implicit,_=m(2);return f(_.openTableDialog(i,d,e))}),a(5,"div",51)(6,"div",52),p(7),b(8,"number"),c(),a(9,"a",53),h("click",function(e){return C(n),f(e==null?null:e.stopPropagation())}),x(10,"i",38),c()()(),y()}if(t&2){let n=r.$implicit;l(2),P(" ",w(3,4,n.PriceExpected)," "),l(2),s("ngClass",F(8,Ke,n.Price!=n.PriceExpected)),l(3),P(" ",w(8,6,n.Price)," "),l(2),s("href",n.Url,T)}}function it(t,r){t&1&&(a(0,"td",54),p(1," X "),c(),a(2,"td",54),p(3," X "),c())}function ot(t,r){if(t&1&&(v(0),g(1,nt,11,10,"ng-container",48)(2,it,4,0,"ng-template",null,1,J),y()),t&2){let n=r.$implicit,o=H(3),e=m().$implicit,i=m(3);l(),s("ngIf",i.getItemFromChannel(e,n.ID))("ngIfElse",o)}}function rt(t,r){if(t&1&&(a(0,"tr"),g(1,et,9,9,"ng-container",3),a(2,"td",33),p(3),c(),a(4,"td",34)(5,"div",35)(6,"div",36),p(7),c(),a(8,"div",29)(9,"a",37),x(10,"i",38),c()()()(),g(11,tt,2,1,"ng-template",19)(12,ot,4,2,"ng-container",39),c()),t&2){let n=r.$implicit,o=r.$index,e=m(3);l(),s("ngIf",o==0),l(2),P(" ",n==null?null:n.Model," "),l(),s("matTooltip",n.Discontinued?e.discontinuedVariantMsg:""),l(2),s("ngClass",F(8,je,n.Discontinued)),l(),P(" ",n==null?null:n.Code," "),l(2),s("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(n==null?null:n.ID),T),l(2),s("ngxPermissionsOnly",F(10,ke,e.rolePriceEdit)),l(),s("ngForOf",e.channelOptions)}}function at(t,r){if(t&1&&(a(0,"tbody"),M(1,rt,13,12,"tr",null,E),c()),t&2){let n=r.$implicit;l(),D(n.Variants)}}function lt(t,r){if(t&1&&(v(0),M(1,at,3,0,"tbody",null,E),y()),t&2){let n=r.ngIf;l(),D(n)}}var Jt=(()=>{let r=class r{constructor(o,e,i,d,_,u){this.http=o,this.toastr=e,this.dialog=i,this.productService=d,this.authService=_,this.biggerPictureService=u,this.infinitePagination=Q(Z),this.searchFilter=new ve,this.checkboxState=!1,this.rolePriceEdit=he.price,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.rowCountAPI="Inventory/GetMultipleChannelComparisonRowCount",this.filterTypeOptions=[{Key:K.ALL,Value:"All"},{Key:K.DIFFERENCE,Value:"Difference"}],this.filterType=K.ALL,this.pageData={Title:"Price Realtime",Nav:[{Title:"Price Cache",Url:"/menu/price",Active:!1}]},this.channelOptions=this.authService.getChannels(),this.hostName=this.authService.getDomain(),this.initPagination()}initPagination(){this.infinitePagination.fetchDataEndpoint="Price/GetOutletPrice",this.infinitePagination.fethRowCountEndpoint=this.rowCountAPI,this.initProduct(),this.initPageLoader()}initProduct(){this.data$=this.infinitePagination.data$.pipe(q(1))}initPageLoader(){this.loader$=this.http.post("/api/PriceLoader/LoadMultiple",{}).pipe(z(o=>{this.searchFilter=o.Filter,this.infinitePagination.reloadPagination(this.searchFilter)}))}onLastPage(){this.totalData$=this.http.post(`/api/${this.rowCountAPI}`,{}).pipe(z(o=>{this.searchFilter.PageNumber=1,this.infinitePagination.onLastPage(this.searchFilter,o)}))}onSelectAllData(){this.data$=this.data$.pipe(Y(o=>(o.map(e=>(e.Variants&&(e.Variants=e.Variants.map(i=>(i.selected=this.checkboxState,i))),e)),o)))}onFilter(o){this.searchFilter.text=o;let e={text:o,filterModel:this.filterType,PageNumber:this.searchFilter.PageNumber,RowCount:this.searchFilter.RowCount};this.infinitePagination.reloadPagination(e)}updatePrice(o){let e=this.productService.selectedVariantProduct(o);if(e.length>0){let i=e.map(u=>u.ID),_={ListChannelID:this.channelOptions.filter(u=>u.selected).map(u=>u.ID),ListID:i};this.http.post("/api/Price/UpdateChannelOutletPrice",_).subscribe({next:u=>{this.resetSelectedChannel(),this.onFilter(),this.toastr.success("Successfully updated "+_.ListID.length+" items in "+_.ListChannelID.length+" channels","Success")},error:u=>{this.resetSelectedChannel()}})}}resetSelectedChannel(){this.channelOptions=this.channelOptions.map(o=>(o.selected=!1,o))}getItemFromChannel(o,e){return o.Channel.find(i=>i.ChannelID==e)}onUpdateItems(o){let e=this.productService.selectedVariantProduct(o);this.dialog.open(De,{data:{selectedItems:e,channels:this.channelOptions},width:"600px"}).afterClosed().pipe(G(i=>X.IsNotEmpty(i))).subscribe(i=>{this.channelOptions=i,this.updatePrice(o)})}openTableDialog(o,e,i){let d=JSON.parse(JSON.stringify(o));this.dialog.open(Oe,{data:{Name:e.Name,Variant:d,ChannelID:i?.ChannelID,Table:"price",ChannelItemID:i?.ChannelItemID}}).afterClosed().pipe(G(u=>X.IsNotEmpty(u))).subscribe(u=>{this.updateProductPrice(u,i)})}updateProductPrice(o,e){let i={ID:o.ChannelID,ChannelItemID:o.ChannelItemID,ChannelVariantID:o.ChannelVariationID,Price:parseFloat(o.Price),VariantID:o.ID,SKU:o.Sku};this.http.post("/api/Price/UpdatePriceByID",i).subscribe(d=>{e.Price=i.Price;let _=this.productService.findChannelById(i.ID,this.channelOptions);this.toastr.success(`Successfully updated ${o.ItemName} (${o.VarName}) inventory in ${_.Name} to ${i.Price}`,"Success")})}openExportDialog(){this.dialog.open(Me,{data:{title:"Export Custom Channel Price",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountAPI,exportApi:"price/GetExportOutletPrice"}}).afterClosed().subscribe()}onZoomImage(o,e){this.biggerPictureService.openBiggerPicture(o,e)}};r.\u0275fac=function(e){return new(e||r)(S(ue),S(_e),S(Pe),S(Fe),S(xe),S(Te))},r.\u0275cmp=O({type:r,selectors:[["app-custom-channel-price"]],standalone:!0,features:[ae([Z]),B],decls:38,vars:23,consts:[["elsePic",""],["elseCol",""],["headerTitle","Price Comparison",3,"onSubmit","hideSearchBox","hideSearchDropdown","textButton"],[4,"ngIf"],[1,"d-flex"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],[1,"channel-column"],["colspan","5"],["scope","col","colspan","2",1,"text-center","border-bottom-0","border","text-uppercase"],["scope","col","colspan","2",1,"text-center","w-25"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],[3,"ngxPermissionsOnly"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],[2,"height","46px"],[1,"mb-3"],["name","filterModel",3,"modelChange","model","options"],["type","button","class","btn btn-success shadow rounded","data-toggle","modal",3,"click",4,"ngIf"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"text-end","border-top-0","border","w-10"],[1,"ms-1"],[1,"text-start","border-bottom"],["matTooltipPosition","above",1,"text-end","border-bottom",3,"matTooltip"],[1,"d-flex","align-items-center","justify-content-end"],[3,"ngClass"],["target","_blank",3,"href"],[1,"fas","fa-lg","fa-external-link-alt","external-link-custom"],[4,"ngFor","ngForOf"],[1,"text-center",3,"rowSpan","ngClass"],["class","border rounded w-img cursor-pointer",3,"src","click",4,"ngIf","ngIfElse"],[1,"text-start","border-bottom",2,"padding-left","0px",3,"rowSpan"],[1,"mb-0","item-name"],[1,"mt-1"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"align-middle"],[4,"ngIf","ngIfElse"],[1,"text-end","border"],[1,"text-center","border","pointer","cell-hover",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2"],["target","_blank",3,"click","href"],[1,"table-white","border","text-end",2,"color","red"]],template:function(e,i){e&1&&(a(0,"mainpanel",2),h("onSubmit",function(_){return i.onFilter(_)}),a(1,"filters"),g(2,Ge,5,2,"ng-container",3),b(3,"async"),c(),a(4,"actions")(5,"div",4),g(6,He,3,1,"ng-container",3),b(7,"async"),a(8,"button",5),h("click",function(){return i.openExportDialog()}),x(9,"i",6),a(10,"span"),p(11,"Export"),c()()()(),a(12,"content")(13,"div",7)(14,"div",8)(15,"div",9)(16,"div",10)(17,"table",11)(18,"thead",12)(19,"tr",13),x(20,"th",14),M(21,Je,6,7,"th",15,E),c(),a(23,"tr")(24,"th",16)(25,"span"),p(26," Product "),c()(),a(27,"th",17),p(28,"Variant"),c(),a(29,"th",18),p(30,"SKU"),c(),g(31,Xe,2,1,"ng-template",19),M(32,Ze,7,0,null,null,E),c()(),g(34,lt,3,0,"ng-container",3),b(35,"async"),c(),a(36,"infinite-paginator",20),b(37,"async"),h("onNextPage",function(){return i.infinitePagination.onNextPage(i.searchFilter)})("onLastPage",function(){return i.onLastPage()})("onGetRowCount",function(){return i.infinitePagination.getRowCount(i.searchFilter)}),c()()()()()()()),e&2&&(s("hideSearchBox",!1)("hideSearchDropdown",!1)("textButton","Search"),l(2),s("ngIf",w(3,13,i.loader$)),l(4),s("ngIf",w(7,15,i.data$)),l(15),D(i.channelOptions),l(10),s("ngxPermissionsOnly",F(21,ke,i.rolePriceEdit)),l(),D(i.channelOptions),l(2),s("ngIf",w(35,17,i.data$)),l(2),s("totalData",i.infinitePagination.totalData())("hideCount",i.infinitePagination.hideCount())("rowCount",w(37,19,i.infinitePagination.totalRowCount$))("pageNumber",i.infinitePagination.pageNumber())("disableNextButton",i.infinitePagination.disableNextButton())("goToLastPage",i.infinitePagination.goToLastPage()))},dependencies:[$,se,R,me,pe,de,Se,be,U,ge,L,A,Ve,Ne,W,j,Ee,fe,Ce],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{font-weight:400;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}"]});let t=r;return t})();export{Jt as CustomChannelPriceComponent};
|