marketplacepos 3.9.7 → 3.10.0
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/3rdpartylicenses.txt +37 -37
- package/Marketplace/chunk-2WK2VI24.js +1 -0
- package/Marketplace/{chunk-G4XG7N2M.js → chunk-32LBRSCJ.js} +4 -4
- package/Marketplace/chunk-35L7AOGR.js +1 -0
- package/Marketplace/chunk-3KM6M3SV.js +1 -0
- package/Marketplace/chunk-3SVOLAII.js +1 -0
- package/Marketplace/chunk-4HJGWXQ3.js +1 -0
- package/Marketplace/{chunk-Z6VJNXH5.js → chunk-4PF4YRRT.js} +1 -1
- package/Marketplace/chunk-6D7NMKRE.js +1 -0
- package/Marketplace/chunk-6NPWPFG3.js +2 -0
- package/Marketplace/chunk-7KXQRJHI.js +1 -0
- package/Marketplace/chunk-7MM3ONJ5.js +1 -0
- package/Marketplace/chunk-7RTQ2IDL.js +1 -0
- package/Marketplace/chunk-BLMEJMMZ.js +1 -0
- package/Marketplace/chunk-ECAAF5I6.js +1 -0
- package/Marketplace/{chunk-IKKEE3ZC.js → chunk-FA44W5LU.js} +2 -2
- package/Marketplace/chunk-FBXFQ4G2.js +39 -0
- package/Marketplace/chunk-FDI2UIO2.js +1 -0
- package/Marketplace/chunk-GR5OKYJS.js +1 -0
- package/Marketplace/chunk-HT7RDS3I.js +1 -0
- package/Marketplace/chunk-I5POPG3M.js +1 -0
- package/Marketplace/chunk-JYZZ37SG.js +1 -0
- package/Marketplace/chunk-KB7PR6DP.js +1 -0
- package/Marketplace/{chunk-OJIY47SY.js → chunk-KPPQNI2R.js} +1 -1
- package/Marketplace/chunk-L6CJT6UC.js +1 -0
- package/Marketplace/chunk-L7Q6GF26.js +1 -0
- package/Marketplace/chunk-LAEELPPC.js +1 -0
- package/Marketplace/chunk-LBQ2LOYA.js +1 -0
- package/Marketplace/chunk-NJM2XHQY.js +1 -0
- package/Marketplace/chunk-NN3SPEH5.js +1 -0
- package/Marketplace/chunk-O3IHPLVP.js +1 -0
- package/Marketplace/chunk-ORA63EP5.js +1 -0
- package/Marketplace/chunk-OV2NRCQ5.js +1 -0
- package/Marketplace/chunk-OZKNF6S2.js +1 -0
- package/Marketplace/chunk-P3IVG6BD.js +1 -0
- package/Marketplace/chunk-PNLW4YVH.js +1 -0
- package/Marketplace/chunk-POSHHHMT.js +1 -0
- package/Marketplace/{chunk-SXTJAABI.js → chunk-PZX3AESM.js} +2 -2
- package/Marketplace/chunk-QTQ6GNKJ.js +5 -0
- package/Marketplace/{chunk-3E3AJFQR.js → chunk-RUB4SQ54.js} +2 -2
- package/Marketplace/{chunk-KX4RY3YM.js → chunk-SHX3JAGT.js} +1 -1
- package/Marketplace/chunk-SOPDRQWM.js +2 -0
- package/Marketplace/chunk-SQGOM2WU.js +1 -0
- package/Marketplace/chunk-SQR4ZRTF.js +2 -0
- package/Marketplace/chunk-SUMLYFC7.js +1 -0
- package/Marketplace/{chunk-MHU6SJ5A.js → chunk-TBOHCD6E.js} +1 -1
- package/Marketplace/chunk-ULR2QT4D.js +2 -0
- package/Marketplace/chunk-UW4B35JC.js +1 -0
- package/Marketplace/chunk-VCLTTDX7.js +1 -0
- package/Marketplace/chunk-WCQU2HIE.js +3 -0
- package/Marketplace/chunk-WKDJS327.js +1 -0
- package/Marketplace/chunk-WOHUGR5B.js +1 -0
- package/Marketplace/chunk-XDU5GZAR.js +4 -0
- package/Marketplace/chunk-XLZ3ZJTK.js +1 -0
- package/Marketplace/chunk-YGL3QYTJ.js +1 -0
- package/Marketplace/chunk-YILL4GKX.js +5 -0
- package/Marketplace/chunk-ZMC2DAP2.js +1 -0
- package/Marketplace/chunk-ZRFFM47Q.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-525IC5TZ.js +1 -0
- package/Marketplace/styles-SUQABHBL.css +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2IJJWAYN.js +0 -1
- package/Marketplace/chunk-2MVWDXPG.js +0 -3
- package/Marketplace/chunk-3CMEFVHV.js +0 -1
- package/Marketplace/chunk-5MP2C2GN.js +0 -1
- package/Marketplace/chunk-5OQFKOT3.js +0 -1
- package/Marketplace/chunk-6LY5BIL3.js +0 -1
- package/Marketplace/chunk-7XM22FKG.js +0 -1
- package/Marketplace/chunk-BHWMGQZN.js +0 -1
- package/Marketplace/chunk-BUDL76ZU.js +0 -1
- package/Marketplace/chunk-CC6GVMJK.js +0 -1
- package/Marketplace/chunk-COBXXWMY.js +0 -1
- package/Marketplace/chunk-CUSPCEJT.js +0 -4
- package/Marketplace/chunk-DSWUPDVF.js +0 -1
- package/Marketplace/chunk-DUJ654ZX.js +0 -1
- package/Marketplace/chunk-EJ5KL5JT.js +0 -1
- package/Marketplace/chunk-FAU3DFPX.js +0 -1
- package/Marketplace/chunk-FRAPCUOC.js +0 -1
- package/Marketplace/chunk-G3L2MSRM.js +0 -1
- package/Marketplace/chunk-GZ6EJLC2.js +0 -1
- package/Marketplace/chunk-HNVCUZMB.js +0 -1
- package/Marketplace/chunk-HSB44YON.js +0 -1
- package/Marketplace/chunk-HSQYSU2F.js +0 -5
- package/Marketplace/chunk-IPUL4A72.js +0 -39
- package/Marketplace/chunk-IU36UM4K.js +0 -1
- package/Marketplace/chunk-JH5HJCDZ.js +0 -1
- package/Marketplace/chunk-KQDNRM3M.js +0 -1
- package/Marketplace/chunk-KXVR2ZP3.js +0 -1
- package/Marketplace/chunk-L346FFAX.js +0 -1
- package/Marketplace/chunk-LJORI5SH.js +0 -1
- package/Marketplace/chunk-M2RVZO2N.js +0 -2
- package/Marketplace/chunk-MGEKJ45C.js +0 -1
- package/Marketplace/chunk-MNZYX56J.js +0 -1
- package/Marketplace/chunk-NBQR434T.js +0 -2
- package/Marketplace/chunk-O42LRLFS.js +0 -1
- package/Marketplace/chunk-OIOMVXRX.js +0 -1
- package/Marketplace/chunk-QGIVCWJ5.js +0 -1
- package/Marketplace/chunk-QWWXJFHN.js +0 -1
- package/Marketplace/chunk-RNVH2THT.js +0 -1
- package/Marketplace/chunk-SLBGML3Y.js +0 -1
- package/Marketplace/chunk-TH7T5L4B.js +0 -1
- package/Marketplace/chunk-VFADXTL7.js +0 -1
- package/Marketplace/chunk-VOTVGH4Q.js +0 -1
- package/Marketplace/chunk-VWZWQO2U.js +0 -1
- package/Marketplace/chunk-VZL6YUAQ.js +0 -1
- package/Marketplace/chunk-W3OMCM7Z.js +0 -1
- package/Marketplace/chunk-W7B34I4A.js +0 -1
- package/Marketplace/chunk-WFFW6WSV.js +0 -1
- package/Marketplace/chunk-WY3SS6E7.js +0 -2
- package/Marketplace/chunk-X42AN3JK.js +0 -2
- package/Marketplace/chunk-X4C725KJ.js +0 -5
- package/Marketplace/chunk-XC4T4XXY.js +0 -1
- package/Marketplace/chunk-YZMKXH5W.js +0 -1
- package/Marketplace/main-U2MNCBIN.js +0 -1
- package/Marketplace/styles-AQQ2FNHV.css +0 -1
- /package/Marketplace/{chunk-WDTFLB3R.js → chunk-4RJDBICZ.js} +0 -0
- /package/Marketplace/{chunk-KO2R4FW6.js → chunk-OOD7TLAL.js} +0 -0
- /package/Marketplace/{chunk-YQZUILJJ.js → chunk-ZKZWHDGN.js} +0 -0
- /package/Marketplace/{polyfills-OTWIPYTS.js → polyfills-ZMM4NOHE.js} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as wt,E as ee,F as st,G as At,J as Ct,a as fe,b as mt,c as ue,d as w,e as ti,g as nt,h as q,j as ei,k as ii,m as Kt,n as me,o as _e,t as oi,w as Jt,x as te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-NN3SPEH5.js";import{c as qe,h as Qe,k as Ke,u as Je}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-FDI2UIO2.js";import{$ as b,$a as u,A as Yt,Ac as Ue,B as $,Ba as Xt,Ca as k,D as le,Ga as v,Ha as c,I as tt,Ja as ce,Jb as bt,Ka as Ne,Kb as ht,La as C,Lb as pt,Ma as F,Na as lt,Nb as ft,Oa as de,Ob as Ze,Pa as Zt,Qa as y,Ra as It,S as Pt,Sa as ct,Sb as $e,Ua as ze,V as A,Va as dt,Vb as ut,W as je,Wa as R,Yb as x,Zb as Ut,_b as qt,a as J,aa as I,ab as m,b as zt,ba as L,bb as X,bc as Qt,c as _,ca as d,cb as He,d as Fe,da as W,db as Ye,dc as Ge,ea as j,eb as We,fa as M,fb as G,ga as N,gb as he,ia as Wt,ic as ot,ja as V,jb as E,ka as B,lb as T,mb as Mt,n as Tt,nb as Z,rb as it,sa as Ve,sb as $t,ta as z,tb as Gt,v as Ht,wa as et,wb as U,x as Le,yb as Xe,za as Be,zb as pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-FA44W5LU.js";import{a as S,b as Nt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-ZKZWHDGN.js";var ni=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,s,e=!0,i){this._multiple=t,this._emitChanges=e,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new _,s&&s.length&&(t?s.forEach(o=>this._markSelected(o)):this._markSelected(s[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}setSelection(...t){this._verifyValueAssignment(t);let s=this.selected,e=new Set(t);t.forEach(o=>this._markSelected(o)),s.filter(o=>!e.has(o)).forEach(o=>this._unmarkSelected(o));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let s=this._hasQueuedChanges();return t&&this._emitChangeEvent(),s}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let s of this._selection)if(this.compareWith(t,s))return s;return t}else return t}};var $o=(()=>{let t=class t{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ji=20,Ft=(()=>{let t=class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new _,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=ji){return this._platform.isBrowser?new zt(i=>{this._globalSubscription||this._addGlobalListener();let o=e>0?this._scrolled.pipe(le(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Tt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe($(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=ti(i),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Le(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(i){return new(i||t)(d(F),d(q),d(x,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Vi=20,oe=(()=>{let t=class t{constructor(e,i,o){this._platform=e,this._change=new _,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){let r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,l=-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0;return{top:a,left:l}}change(e=Vi){return e>0?this._change.pipe(le(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}};t.\u0275fac=function(i){return new(i||t)(d(q),d(F),d(x,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ie=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({});let n=t;return n})(),ge=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[At,ie,At,ie]});let n=t;return n})();var Lt=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},rt=class extends Lt{constructor(t,s,e,i,o){super(),this.component=t,this.viewContainerRef=s,this.injector=e,this.componentFactoryResolver=i,this.projectableNodes=o}},_t=class extends Lt{constructor(t,s,e,i){super(),this.templateRef=t,this.viewContainerRef=s,this.context=e,this.injector=i}get origin(){return this.templateRef.elementRef}attach(t,s=this.context){return this.context=s,super.attach(t)}detach(){return this.context=void 0,super.detach()}},ve=class extends Lt{constructor(t){super(),this.element=t instanceof k?t.nativeElement:t}},xt=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof rt)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof _t)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof ve)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var ne=class extends xt{constructor(t,s,e,i,o){super(),this.outletElement=t,this._componentFactoryResolver=s,this._appRef=e,this._defaultInjector=i,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector||z.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let s=t.viewContainerRef,e=s.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(i=>this.outletElement.appendChild(i)),e.detectChanges(),this.setDisposeFn(()=>{let i=s.indexOf(e);i!==-1&&s.remove(i)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var St=(()=>{let t=class t extends xt{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new C,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let l=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(i){return new(i||t)(c(Xt),c(dt),c(x))},t.\u0275dir=N({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[lt]});let n=t;return n})();var Q=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({});let n=t;return n})();var ai=ii(),ye=class{constructor(t,s){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=w(-this._previousScrollPosition.left),t.style.top=w(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,s=this._document.body,e=t.style,i=s.style,o=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),ai&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ai&&(e.scrollBehavior=o,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let s=this._document.body,e=this._viewportRuler.getViewportSize();return s.scrollHeight>e.height||s.scrollWidth>e.width}};var be=class{constructor(t,s,e,i){this._scrollDispatcher=t,this._ngZone=s,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe($(s=>!s||!this._overlayRef.overlayElement.contains(s.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},se=class{enable(){}disable(){}attach(){}};function we(n,t){return t.some(s=>{let e=n.bottom<s.top,i=n.top>s.bottom,o=n.right<s.left,r=n.left>s.right;return e||i||o||r})}function li(n,t){return t.some(s=>{let e=n.top<s.top,i=n.bottom>s.bottom,o=n.left<s.left,r=n.right>s.right;return e||i||o||r})}var Ce=class{constructor(t,s,e,i){this._scrollDispatcher=t,this._viewportRuler=s,this._ngZone=e,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();we(s,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},zi=(()=>{let t=class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new se,this.close=a=>new be(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new ye(this._viewportRuler,this._document),this.reposition=a=>new Ce(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}};t.\u0275fac=function(i){return new(i||t)(d(Ft),d(oe),d(F),d(x))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Et=class{constructor(t){if(this.scrollStrategy=new se,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let s=Object.keys(t);for(let e of s)t[e]!==void 0&&(this[e]=t[e])}}};var xe=class{constructor(t,s){this.connectionPair=t,this.scrollableViewProperties=s}};var fi=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(i){return new(i||t)(d(x))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Hi=(()=>{let t=class t extends fi{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{let r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){let l=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};t.\u0275fac=function(i){return new(i||t)(d(x),d(F,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Yi=(()=>{let t=class t extends fi{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=me(r)},this._clickListener=r=>{let a=me(r),l=r.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let p=this._attachedOverlays.slice();for(let h=p.length-1;h>-1;h--){let f=p[h];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(f.overlayElement.contains(a)||f.overlayElement.contains(l))break;let D=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>D.next(r)):D.next(r)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}};t.\u0275fac=function(i){return new(i||t)(d(x),d(q),d(F,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Dt=(()=>{let t=class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||_e()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove()}let i=this._document.createElement("div");i.classList.add(e),_e()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}};t.\u0275fac=function(i){return new(i||t)(d(x),d(q))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),K=class{constructor(t,s,e,i,o,r,a,l,p,h=!1){this._portalOutlet=t,this._host=s,this._pane=e,this._config=i,this._ngZone=o,this._keyboardDispatcher=r,this._document=a,this._location=l,this._outsideClickDispatcher=p,this._animationsDisabled=h,this._backdropElement=null,this._backdropClick=new _,this._attachments=new _,this._detachments=new _,this._locationChanges=J.EMPTY,this._backdropClickHandler=f=>this._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new _,this._outsidePointerEvents=new _,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let s=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(tt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof s?.onDestroy=="function"&&s.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),s}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=S(S({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Nt(S({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=w(this._config.width),t.height=w(this._config.height),t.minWidth=w(this._config.minWidth),t.minHeight=w(this._config.minHeight),t.maxWidth=w(this._config.maxWidth),t.maxHeight=w(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,s,e){let i=ue(s||[]).filter(o=>!!o);i.length&&(e?t.classList.add(...i):t.classList.remove(...i))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{let t=this._ngZone.onStable.pipe(A(Yt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},ci="cdk-overlay-connected-position-bounding-box",Wi=/([A-Za-z%]+)$/,Se=class{get positions(){return this._preferredPositions}constructor(t,s,e,i,o){this._viewportRuler=s,this._document=e,this._platform=i,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new _,this._resizeSubscription=J.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(ci),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,s=this._overlayRect,e=this._viewportRect,i=this._containerRect,o=[],r;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,i,a),p=this._getOverlayPoint(l,s,a),h=this._getOverlayFit(p,s,e,a);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(h,p,e)){o.push({position:a,origin:l,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!r||r.overlayFit.visibleArea<h.visibleArea)&&(r={overlayFit:h,overlayPoint:p,originPoint:l,position:a,overlayRect:s})}if(o.length){let a=null,l=-1;for(let p of o){let h=p.boundingBoxRect.width*p.boundingBoxRect.height*(p.position.weight||1);h>l&&(l=h,a=p)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&>(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ci),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let s=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,s)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,s,e){let i;if(e.originX=="center")i=t.left+t.width/2;else{let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i=e.originX=="start"?r:a}s.left<0&&(i-=s.left);let o;return e.originY=="center"?o=t.top+t.height/2:o=e.originY=="top"?t.top:t.bottom,s.top<0&&(o-=s.top),{x:i,y:o}}_getOverlayPoint(t,s,e){let i;e.overlayX=="center"?i=-s.width/2:e.overlayX==="start"?i=this._isRtl()?-s.width:0:i=this._isRtl()?0:-s.width;let o;return e.overlayY=="center"?o=-s.height/2:o=e.overlayY=="top"?0:-s.height,{x:t.x+i,y:t.y+o}}_getOverlayFit(t,s,e,i){let o=hi(s),{x:r,y:a}=t,l=this._getOffset(i,"x"),p=this._getOffset(i,"y");l&&(r+=l),p&&(a+=p);let h=0-r,f=r+o.width-e.width,D=0-a,g=a+o.height-e.height,O=this._subtractOverflows(o.width,h,f),Y=this._subtractOverflows(o.height,D,g),Ae=O*Y;return{visibleArea:Ae,isCompletelyWithinViewport:o.width*o.height===Ae,fitsInViewportVertically:Y===o.height,fitsInViewportHorizontally:O==o.width}}_canFitWithFlexibleDimensions(t,s,e){if(this._hasFlexibleDimensions){let i=e.bottom-s.y,o=e.right-s.x,r=di(this._overlayRef.getConfig().minHeight),a=di(this._overlayRef.getConfig().minWidth),l=t.fitsInViewportVertically||r!=null&&r<=i,p=t.fitsInViewportHorizontally||a!=null&&a<=o;return l&&p}return!1}_pushOverlayOnScreen(t,s,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let i=hi(s),o=this._viewportRect,r=Math.max(t.x+i.width-o.width,0),a=Math.max(t.y+i.height-o.height,0),l=Math.max(o.top-e.top-t.y,0),p=Math.max(o.left-e.left-t.x,0),h=0,f=0;return i.width<=o.width?h=p||-r:h=t.x<this._viewportMargin?o.left-e.left-t.x:0,i.height<=o.height?f=l||-a:f=t.y<this._viewportMargin?o.top-e.top-t.y:0,this._previousPushAmount={x:h,y:f},{x:t.x+h,y:t.y+f}}_applyPosition(t,s){if(this._setTransformOrigin(t),this._setOverlayElementStyles(s,t),this._setBoundingBoxStyles(s,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){let e=this._getScrollVisibility(),i=new xe(t,e);this._positionChanges.next(i)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let s=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,i=t.overlayY;t.overlayX==="center"?e="center":this._isRtl()?e=t.overlayX==="start"?"right":"left":e=t.overlayX==="start"?"left":"right";for(let o=0;o<s.length;o++)s[o].style.transformOrigin=`${e} ${i}`}_calculateBoundingBoxRect(t,s){let e=this._viewportRect,i=this._isRtl(),o,r,a;if(s.overlayY==="top")r=t.y,o=e.height-r+this._viewportMargin;else if(s.overlayY==="bottom")a=e.height-t.y+this._viewportMargin*2,o=e.height-a+this._viewportMargin;else{let g=Math.min(e.bottom-t.y+e.top,t.y),O=this._lastBoundingBoxSize.height;o=g*2,r=t.y-g,o>O&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-O/2)}let l=s.overlayX==="start"&&!i||s.overlayX==="end"&&i,p=s.overlayX==="end"&&!i||s.overlayX==="start"&&i,h,f,D;if(p)D=e.width-t.x+this._viewportMargin,h=t.x-this._viewportMargin;else if(l)f=t.x,h=e.right-t.x;else{let g=Math.min(e.right-t.x+e.left,t.x),O=this._lastBoundingBoxSize.width;h=g*2,f=t.x-g,h>O&&!this._isInitialRender&&!this._growAfterOpen&&(f=t.x-O/2)}return{top:r,left:f,bottom:a,right:D,width:h,height:o}}_setBoundingBoxStyles(t,s){let e=this._calculateBoundingBoxRect(t,s);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=w(e.height),i.top=w(e.top),i.bottom=w(e.bottom),i.width=w(e.width),i.left=w(e.left),i.right=w(e.right),s.overlayX==="center"?i.alignItems="center":i.alignItems=s.overlayX==="end"?"flex-end":"flex-start",s.overlayY==="center"?i.justifyContent="center":i.justifyContent=s.overlayY==="bottom"?"flex-end":"flex-start",o&&(i.maxHeight=w(o)),r&&(i.maxWidth=w(r))}this._lastBoundingBoxSize=e,gt(this._boundingBox.style,i)}_resetBoundingBoxStyles(){gt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){gt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,s){let e={},i=this._hasExactPosition(),o=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){let h=this._viewportRuler.getViewportScrollPosition();gt(e,this._getExactOverlayY(s,t,h)),gt(e,this._getExactOverlayX(s,t,h))}else e.position="static";let a="",l=this._getOffset(s,"x"),p=this._getOffset(s,"y");l&&(a+=`translateX(${l}px) `),p&&(a+=`translateY(${p}px)`),e.transform=a.trim(),r.maxHeight&&(i?e.maxHeight=w(r.maxHeight):o&&(e.maxHeight="")),r.maxWidth&&(i?e.maxWidth=w(r.maxWidth):o&&(e.maxWidth="")),gt(this._pane.style,e)}_getExactOverlayY(t,s,e){let i={top:"",bottom:""},o=this._getOverlayPoint(s,this._overlayRect,t);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,e)),t.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;i.bottom=`${r-(o.y+this._overlayRect.height)}px`}else i.top=w(o.y);return i}_getExactOverlayX(t,s,e){let i={left:"",right:""},o=this._getOverlayPoint(s,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,e));let r;if(this._isRtl()?r=t.overlayX==="end"?"left":"right":r=t.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(o.x+this._overlayRect.width)}px`}else i.left=w(o.x);return i}_getScrollVisibility(){let t=this._getOriginRect(),s=this._pane.getBoundingClientRect(),e=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:li(t,e),isOriginOutsideView:we(t,e),isOverlayClipped:li(s,e),isOverlayOutsideView:we(s,e)}}_subtractOverflows(t,...s){return s.reduce((e,i)=>e-Math.max(i,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+s-this._viewportMargin,width:t-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,s){return s==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&ue(t).forEach(s=>{s!==""&&this._appliedPanelClasses.indexOf(s)===-1&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof k)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let s=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+s,height:e,width:s}}};function gt(n,t){for(let s in t)t.hasOwnProperty(s)&&(n[s]=t[s]);return n}function di(n){if(typeof n!="number"&&n!=null){let[t,s]=n.split(Wi);return!s||s==="px"?parseFloat(t):null}return n||null}function hi(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}var pi="cdk-global-overlay-wrapper",Ee=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let s=t.getConfig();this._overlayRef=t,this._width&&!s.width&&t.updateSize({width:this._width}),this._height&&!s.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(pi),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:i,height:o,maxWidth:r,maxHeight:a}=e,l=(i==="100%"||i==="100vw")&&(!r||r==="100%"||r==="100vw"),p=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),h=this._xPosition,f=this._xOffset,D=this._overlayRef.getConfig().direction==="rtl",g="",O="",Y="";l?Y="flex-start":h==="center"?(Y="center",D?O=f:g=f):D?h==="left"||h==="end"?(Y="flex-end",g=f):(h==="right"||h==="start")&&(Y="flex-start",O=f):h==="left"||h==="start"?(Y="flex-start",g=f):(h==="right"||h==="end")&&(Y="flex-end",O=f),t.position=this._cssPosition,t.marginLeft=l?"0":g,t.marginTop=p?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":O,s.justifyContent=Y,s.alignItems=p?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,e=s.style;s.classList.remove(pi),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},Xi=(()=>{let t=class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new Ee}flexibleConnectedTo(e){return new Se(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(i){return new(i||t)(d(oe),d(x),d(q),d(Dt))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Zi=0,P=(()=>{let t=class t{constructor(e,i,o,r,a,l,p,h,f,D,g,O){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=l,this._ngZone=p,this._document=h,this._directionality=f,this._location=D,this._outsideClickDispatcher=g,this._animationsModuleType=O}create(e){let i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),a=new Et(e);return a.direction=a.direction||this._directionality.value,new K(r,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations")}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${Zi++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get($e)),new ne(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(i){return new(i||t)(d(zi),d(Dt),d(Xt),d(Xi),d(Hi),d(z),d(F),d(x),d(st),d(Ut),d(Yi),d(et,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),$i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ui=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=W(P);return()=>n.scrollStrategies.reposition()}}),Gi=(()=>{let t=class t{constructor(e){this.elementRef=e}};t.\u0275fac=function(i){return new(i||t)(c(k))},t.\u0275dir=N({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let n=t;return n})(),Mn=(()=>{let t=class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,o,r,a){this._overlay=e,this._dir=a,this._backdropSubscription=J.EMPTY,this._attachSubscription=J.EMPTY,this._detachSubscription=J.EMPTY,this._positionSubscription=J.EMPTY,this._disposeOnNavigation=!1,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new C,this.positionChange=new C,this.attach=new C,this.detach=new C,this.overlayKeydown=new C,this.overlayOutsideClick=new C,this._templatePortal=new _t(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=$i);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!nt(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Et({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Gi?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(je(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(c(P),c(bt),c(dt),c(ui),c(st,8))},t.\u0275dir=N({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop",ut],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition",ut],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",ut],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen",ut],push:["cdkConnectedOverlayPush","push",ut],disposeOnNavigation:["cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",ut]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[de,Wt]});let n=t;return n})();function Ui(n){return()=>n.scrollStrategies.reposition()}var qi={provide:ui,deps:[P],useFactory:Ui},Ot=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({providers:[P,qi],imports:[At,Q,ge,ge]});let n=t;return n})();var Qi=["tooltip"],vi=20;var yi=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=W(P);return()=>n.scrollStrategies.reposition({scrollThrottle:vi})}});function Ki(n){return()=>n.scrollStrategies.reposition({scrollThrottle:vi})}var Ji={provide:yi,deps:[P],useFactory:Ki};function to(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var eo=new L("mat-tooltip-default-options",{providedIn:"root",factory:to});var mi="tooltip-panel",_i=ei({passive:!0}),io=500,oo=8,no=8,so=24,ro=200,bi=(()=>{let t=class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=fe(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=fe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=mt(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=mt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,o,r,a,l,p,h,f,D,g,O){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=a,this._platform=l,this._ariaDescriber=p,this._focusMonitor=h,this._dir=D,this._defaultOptions=g,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=ao,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new _,this._scrollStrategy=f,this._document=O,g&&(this._showDelay=g.showDelay,this._hideDelay=g.hideDelay,g.position&&(this.position=g.position),g.positionAtOrigin&&(this.positionAtOrigin=g.positionAtOrigin),g.touchGestures&&(this.touchGestures=g.touchGestures)),D.change.pipe(A(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=oo}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(A(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{e.removeEventListener(i,o,_i)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(i);this._detach(),this._portal=this._portal||new rt(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(A(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&r._origin instanceof k)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(A(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${mi}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(A(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(A(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(A(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&r.keyCode===27&&!nt(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(S(S({},o.main),r.main)),this._addOffset(S(S({},o.fallback),r.fallback))])}_addOffset(e){let i=no,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=o?-i:i:e.originX==="end"&&(e.offsetX=o?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,o;i=="above"||i=="below"?o={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?o={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,o;i=="above"?o={overlayX:"center",overlayY:"bottom"}:i=="below"?o={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(tt(1),A(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:o,originY:r}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=i==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let l=this._overlayRef;if(l){let p=`${this._cssClassPrefix}-${mi}-`;l.removePanelClass(p+this._currentPosition),l.addPanelClass(p+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],o=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),io)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let o=i.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,_i)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,o=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};t.\u0275fac=function(i){return new(i||t)(c(P),c(k),c(Ft),c(dt),c(F),c(q),c(oi),c(wt),c(yi),c(st),c(eo,8),c(x))},t.\u0275dir=N({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,o){i&2&&ct("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]});let n=t;return n})(),ao=(()=>{let t=class t{constructor(e,i,o){this._changeDetectorRef=e,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new _,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>so&&e.width>=ro}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:o),i.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}};t.\u0275fac=function(i){return new(i||t)(c(ce),c(k),c(et,8))},t.\u0275cmp=j({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,o){if(i&1&&pt(Qi,7),i&2){let r;ht(r=ft())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,o){i&1&&E("mouseleave",function(a){return o._handleMouseLeave(a)}),i&2&&It("zoom",o.isVisible()?1:null)},decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(i,o){i&1&&(u(0,"div",0,1),E("animationend",function(a){return o._handleAnimationEnd(a)}),u(2,"div",2),it(3),m()()),i&2&&(ct("mdc-tooltip--multiline",o._isMultiline),y("ngClass",o.tooltipClass),v(3),$t(o.message))},dependencies:[qt],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let n=t;return n})();var wi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({providers:[Ji],imports:[ee,ot,Ot,Ct,Ct,ie]});let n=t;return n})();function co(n,t){}var yt=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var re=(()=>{let t=class t extends xt{constructor(e,i,o,r,a,l,p,h){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=r,this._interactivityChecker=a,this._ngZone=l,this._overlayRef=p,this._focusMonitor=h,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=f=>{this._portalOutlet.hasAttached();let D=this._portalOutlet.attachDomPortal(f);return this._contentAttached(),D},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_trapFocus(){let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let o=Kt(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,i=Kt();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Kt())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};t.\u0275fac=function(i){return new(i||t)(c(k),c(te),c(x,8),c(yt),c(Jt),c(F),c(K),c(wt))},t.\u0275cmp=j({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,o){if(i&1&&pt(St,7),i&2){let r;ht(r=ft())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,o){i&2&&Zt("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[lt,U],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,o){i&1&&R(0,co,0,0,"ng-template",0)},dependencies:[Q,St],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let n=t;return n})(),Vt=class{constructor(t,s){this.overlayRef=t,this.config=s,this.closed=new _,this.disableClose=s.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=s.id,this.keydownEvents.subscribe(e=>{e.keyCode===27&&!this.disableClose&&!nt(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=t.detachments().subscribe(()=>{s.closeOnOverlayDetachments!==!1&&this.close()})}close(t,s){if(this.containerInstance){let e=this.closed;this.containerInstance._closeInteractionType=s?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(t),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",s=""){return this.overlayRef.updateSize({width:t,height:s}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}},ho=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=W(P);return()=>n.scrollStrategies.block()}}),po=new L("DialogData"),fo=new L("DefaultDialogConfig");var uo=0,ke=(()=>{let t=class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,o,r,a,l){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _,this._afterOpenedAtThisLevel=new _,this._ariaHiddenElements=new Map,this.afterAllClosed=Ht(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Pt(void 0))),this._scrollStrategy=l}open(e,i){let o=this._defaultOptions||new yt;i=S(S({},o),i),i.id=i.id||`cdk-dialog-${uo++}`,i.id&&this.getDialogById(i.id);let r=this._getOverlayConfig(i),a=this._overlay.create(r),l=new Vt(a,i),p=this._attachContainer(a,l,i);return l.containerInstance=p,this._attachDialogContent(e,l,p,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){Oe(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){Oe(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),Oe(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Et({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:yt,useValue:o},{provide:Vt,useValue:i},{provide:K,useValue:e}],l;o.container?typeof o.container=="function"?l=o.container:(l=o.container.type,a.push(...o.container.providers(o))):l=re;let p=new rt(l,o.viewContainerRef,z.create({parent:r||this._injector,providers:a}),o.componentFactoryResolver);return e.attach(p).instance}_attachDialogContent(e,i,o,r){if(e instanceof bt){let a=this._createInjector(r,i,o,void 0),l={$implicit:r.data,dialogRef:i};r.templateContext&&(l=S(S({},l),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new _t(e,null,l,a))}else{let a=this._createInjector(r,i,o,this._injector),l=o.attachComponentPortal(new rt(e,r.viewContainerRef,a,r.componentFactoryResolver));i.componentRef=l,i.componentInstance=l.instance}}_createInjector(e,i,o,r){let a=e.injector||e.viewContainerRef?.injector,l=[{provide:po,useValue:e.data},{provide:Vt,useValue:i}];return e.providers&&(typeof e.providers=="function"?l.push(...e.providers(i,e,o)):l.push(...e.providers)),e.direction&&(!a||!a.get(st,null,{optional:!0}))&&l.push({provide:st,useValue:{value:e.direction,change:Tt()}}),z.create({parent:a||r,providers:l})}_removeOpenDialog(e,i){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){let r=i[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}};t.\u0275fac=function(i){return new(i||t)(d(P),d(z),d(fo,8),d(t,12),d(Dt),d(ho))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Oe(n,t){let s=n.length;for(;s--;)t(n[s])}var Ci=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({providers:[ke],imports:[Ot,Q,ee,re,Q]});let n=t;return n})();function mo(n,t){}var Bt=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},Re="mdc-dialog--open",xi="mdc-dialog--opening",Si="mdc-dialog--closing",_o=150,go=75,Oi=(()=>{let t=class t extends re{constructor(e,i,o,r,a,l,p,h,f){super(e,i,o,r,a,l,p,f),this._animationMode=h,this._animationStateChanged=new C,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Di(this._config.enterAnimationDuration)??_o:0,this._exitAnimationDuration=this._animationsEnabled?Di(this._config.exitAnimationDuration)??go:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ei,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(xi,Re)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Re),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Re),this._animationsEnabled?(this._hostElement.style.setProperty(Ei,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Si)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(xi,Si)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}};t.\u0275fac=function(i){return new(i||t)(c(k),c(te),c(x,8),c(Bt),c(Jt),c(F),c(K),c(et,8),c(wt))},t.\u0275cmp=j({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(i,o){i&2&&(he("id",o._config.id),Zt("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),ct("_mat-animation-noopable",!o._animationsEnabled))},standalone:!0,features:[lt,U],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,o){i&1&&(u(0,"div",0)(1,"div",1),R(2,mo,0,0,"ng-template",2),m()())},dependencies:[Q,St],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2});let n=t;return n})(),Ei="--mat-dialog-transition-duration";function Di(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?mt(n.substring(0,n.length-2)):n.endsWith("s")?mt(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var kt=class{constructor(t,s,e){this._ref=t,this._containerInstance=e,this._afterOpened=new _,this._beforeClosed=new _,this._state=0,this.disableClose=s.disableClose,this.id=t.id,e._animationStateChanged.pipe($(i=>i.state==="opened"),tt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe($(i=>i.state==="closed"),tt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Yt(this.backdropClick(),this.keydownEvents().pipe($(i=>i.keyCode===27&&!this.disableClose&&!nt(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),vo(this,i.type==="keydown"?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe($(s=>s.state==="closing"),tt(1)).subscribe(s=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),s.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let s=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?s.left(t.left):s.right(t.right):s.centerHorizontally(),t&&(t.top||t.bottom)?t.top?s.top(t.top):s.bottom(t.bottom):s.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",s=""){return this._ref.updateSize(t,s),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function vo(n,t,s){return n._closeInteractionType=t,n.close(s)}var Te=new L("MatMdcDialogData"),yo=new L("mat-mdc-dialog-default-options"),bo=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=W(P);return()=>n.scrollStrategies.block()}});var wo=0,ae=(()=>{let t=class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,o,r,a,l,p,h){this._overlay=e,this._defaultOptions=r,this._scrollStrategy=a,this._parentDialog=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _,this._afterOpenedAtThisLevel=new _,this.dialogConfigClass=Bt,this.afterAllClosed=Ht(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Pt(void 0))),this._dialog=i.get(ke),this._dialogRefConstructor=kt,this._dialogContainerType=Oi,this._dialogDataToken=Te}open(e,i){let o;i=S(S({},this._defaultOptions||new Bt),i),i.id=i.id||`mat-mdc-dialog-${wo++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Nt(S({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:yt,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(a,l,p)=>(o=new this._dialogRefConstructor(a,i,p),o.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:p},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}};t.\u0275fac=function(i){return new(i||t)(d(P),d(z),d(Ut,8),d(yo,8),d(bo),d(t,12),d(Dt),d(et,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Co=0;var ki=(()=>{let t=class t{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id=`mat-mdc-dialog-title-${Co++}`}ngOnInit(){this._dialogRef||(this._dialogRef=xo(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){let e=this._dialogRef?._containerInstance?._ariaLabelledByQueue;e&&Promise.resolve().then(()=>{let i=e.indexOf(this.id);i>-1&&e.splice(i,1)})}};t.\u0275fac=function(i){return new(i||t)(c(kt,8),c(k),c(ae))},t.\u0275dir=N({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,o){i&2&&he("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0});let n=t;return n})(),Ri=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=N({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0});let n=t;return n})(),Ti=(()=>{let t=class t{constructor(){this.align="start"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=N({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(i,o){i&2&&ct("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},standalone:!0});let n=t;return n})();function xo(n,t){let s=n.nativeElement.parentElement;for(;s&&!s.classList.contains("mat-mdc-dialog-container");)s=s.parentElement;return s?t.find(e=>e.id===s.id):null}var Pi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({providers:[ae],imports:[Ci,Ot,Q,Ct,Oi,Ct]});let n=t;return n})();var at=function(n){return n.Success="Success",n.Info="Info",n.Warning="Warning",n.Error="Error",n}(at||{});var Rt=class{constructor(){this.title="New Modal",this.titleExtra="",this.okText="OK",this.cancelText="CANCEL",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=at.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.showMoreButton=!1,this.noPadding=!1}};function So(n,t){if(n&1){let s=G();u(0,"div",9),E("click",function(){V(s);let i=T();return B(i.onBack.emit())}),u(1,"a",10),X(2,"i",11),m()()}}function Eo(n,t){if(n&1){let s=G();u(0,"div",12)(1,"a",13),E("click",function(){V(s);let i=T();return B(i.onCancel.emit())}),X(2,"i",14),m()()}}function Do(n,t){n&1&&Z(0,2,["*ngIf","more"])}function Oo(n,t){if(n&1){let s=G();u(0,"a",19),E("click",function(){V(s);let i=T(2);return B(i.more=!i.more)}),it(1,"More"),m()}}function ko(n,t){if(n&1){let s=G();u(0,"button",20),E("click",function(){V(s);let i=T(2);return B(i.onCancel.emit())}),it(1),m()}if(n&2){let s=T(2);v(1),Gt(" ",s.config.cancelText?s.config.cancelText:"CANCEL","")}}function Ro(n,t){if(n&1){let s=G();u(0,"button",21),E("click",function(){V(s);let i=T(2);return B(i.onOk.emit())})("keyup.F2",function(){V(s);let i=T(2);return B(i.onOk.emit())}),m()}if(n&2){let s=T(2);y("disabled",!s.config.validated||!s.dynamicValidated)("innerHTML",s.config.okText?s.config.okText:"OK",Be)}}function To(n,t){if(n&1&&(u(0,"mat-dialog-actions",15),R(1,Oo,2,0,"a",16),Z(2,3),R(3,ko,2,1,"button",17)(4,Ro,1,2,"button",18),m()),n&2){let s=T();v(1),y("ngIf",s.config.showMoreButton),v(2),y("ngIf",!s.config.hideCancel),v(1),y("ngIf",!s.config.hideOk)}}var Po=[[["","header",""]],[["","content",""]],[["","more-content",""]],[["","footer",""]]],Io=(n,t)=>({bodyScrollable:n,hideScrollbar:t}),Mo=n=>({"mx-auto":n}),Ao=(n,t)=>({"show-footer":n,"p-0":t}),Fo=["[header]","[content]","[more-content]","[footer]"],Ii=(()=>{let t=class t{constructor(){this.dynamicValidated=!0,this.onOk=new C,this.onCancel=new C,this.onClose=new C,this.onBack=new C,this.term="",this.more=!1}ngOnInit(){switch(this.config==null&&(this.config=new Rt),this.config.headerType){case at.Success:this.background="bg-success";break;case at.Warning:this.background="bg-warning";break;case at.Info:this.background="bg-warning";break;case at.Error:this.background="bg-danger";break;default:this.background="";break}}onKeyup(e){this.config.disableKeyup||(e.code=="F2"&&this.onOk.emit("F2"),(e.code=="Enter"||e.code=="NumpadEnter")&&this.onOk.emit("Enter"))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=j({type:t,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},standalone:!0,features:[U],ngContentSelectors:Fo,decls:12,vars:21,consts:[[1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"ngClass","keyup"],["mat-dialog-title",""],["class","back-button position-absolute pointer d-print-none",3,"click",4,"ngIf"],[1,"d-flex","flex-row","d-print-none",3,"ngClass"],[1,"fw-normal","text-white"],["class","ps-3",4,"ngIf"],[1,"modal-body","w-100",3,"ngClass"],[4,"ngIf"],["class","w-100 mt-10 py-7 border-top d-flex justify-content-end d-print-none",4,"ngIf"],[1,"back-button","position-absolute","pointer","d-print-none",3,"click"],[1,"btn","back-button"],[1,"fa-solid","fa-arrow-left"],[1,"ps-3"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fas","fa-times","fa-md","text-primary"],[1,"w-100","mt-10","py-7","border-top","d-flex","justify-content-end","d-print-none"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg fw-bold mx-3 py-8",3,"click",4,"ngIf"],["style","width: 70px;","class","btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3 py-8","data-cy","ConfirmOk",3,"disabled","innerHTML","click","keyup.F2",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3","py-8",3,"click"],["data-cy","ConfirmOk",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3","py-8",2,"width","70px",3,"disabled","innerHTML","click","keyup.F2"]],template:function(i,o){i&1&&(Mt(Po),u(0,"div",0),E("keyup",function(a){return o.onKeyup(a)}),u(1,"div",1),R(2,So,3,0,"div",2),u(3,"div",3)(4,"h3",4),it(5),m(),Z(6),m(),R(7,Eo,3,0,"div",5),m(),u(8,"mat-dialog-content",6),Z(9,1),R(10,Do,1,0,"ng-content",7),m(),R(11,To,5,3,"mat-dialog-actions",8),m()),i&2&&(It("width",o.config.customWidth),y("ngClass",pe(13,Io,o.config.bodyScrollable,o.config.hideScrollbar)),v(1),ze("d-flex w-100 justify-content-between modal-header position-relative ",o.background,""),v(1),y("ngIf",o.config.eMoney),v(1),y("ngClass",Xe(16,Mo,o.config.eMoney)),v(2),$t(o.config.title),v(2),y("ngIf",!o.config.hideClose),v(1),y("ngClass",pe(18,Ao,!o.config.hideFooter,o.config.noPadding)),v(2),y("ngIf",o.more),v(1),y("ngIf",!o.config.hideFooter))},dependencies:[ot,qt,Qt,Pi,ki,Ti,Ri],styles:[".mat-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:100%!important}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px!important;overflow-y:auto}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]});let n=t;return n})();function Lo(n,t){n&1&&We(0)}var Ie=(()=>{let t=class t{constructor(e,i){this.dialogRef=e,this.data=i,this.initModal()}initModal(){this.modalConfig=new Rt,this.modalConfig.title="Filter",this.modalConfig.customWidth="450px"}onSubmit(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}};t.\u0275fac=function(i){return new(i||t)(c(kt),c(Te))},t.\u0275cmp=j({type:t,selectors:[["app-modal-filter"]],standalone:!0,features:[U],decls:3,vars:2,consts:[[3,"config","onClose","onCancel","onOk"],["content",""],[4,"ngTemplateOutlet"]],template:function(i,o){i&1&&(u(0,"modal-material",0),E("onClose",function(){return o.onClose()})("onCancel",function(){return o.onClose()})("onOk",function(){return o.onSubmit()}),u(1,"div",1),R(2,Lo,1,0,"ng-container",2),m()()),i&2&&(y("config",o.modalConfig),v(2),y("ngTemplateOutlet",o.data.template))},dependencies:[ot,Ge,Ii]});let n=t;return n})();function Me(n){n||(Ve(Me),n=W(Ne));let t=new zt(s=>n.onDestroy(s.next.bind(s)));return s=>s.pipe(A(t))}var Mi=(()=>{let t=class t{toggleSidebar(){this._toggleState.next(!this._toggleState.value)}constructor(){this._toggleState=new Fe(!1),this.toggleState$=this._toggleState.asObservable()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Ai=(()=>{let t=class t{constructor(){this.filterSubject=new _,this.onTriggerfilter$=this.filterSubject.asObservable()}openModalFilter(){this.filterSubject.next()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Bo=["filterTemplateRef"];function No(n,t){if(n&1){let s=G();He(0),u(1,"div",18)(2,"input",19),E("ngModelChange",function(i){V(s);let o=T();return B(o.text=i)})("keyup",function(){V(s);let i=T();return B(i.onTextChange())})("keyup.enter",function(){V(s);let i=T();return B(i.onSubmit())}),m(),u(3,"div")(4,"button",20),E("click",function(){V(s);let i=T();return B(i.onSubmit())}),X(5,"i",21),m()()(),Ye()}if(n&2){let s=T();v(2),y("ngModel",s.text)("placeholder",s.searchBoxPlaceHolder)}}function zo(n,t){n&1&&Z(0,2)}function Ho(n,t){if(n&1){let s=G();u(0,"div",22)(1,"a",23),E("click",function(){V(s);let i=T();return B(i.openFilterModal())}),u(2,"i",24),X(3,"i",25),m()(),R(4,zo,1,0,"ng-template",null,26,Ze),m()}}var Yo=[[["actions"]],[["content"]],[["filters"]]],Wo=["actions","content","filters"],Br=(()=>{let t=class t{constructor(e,i,o){this.sidebarService=e,this.dialog=i,this.mainPanelService=o,this.submitEvent=new C,this.textChange=new C,this.searchBoxPlaceHolder=this.searchBoxPlaceHolder||"Search..",this.mainPanelService.onTriggerfilter$.pipe(Me()).subscribe(()=>{this.openFilterModal()})}onSubmit(){this.inputText=this.text,this.submitEvent.emit(this.inputText)}onTextChange(){this.textChange.emit(this.text)}toggleMenu(){this.sidebarService.toggleSidebar()}openFilterModal(){this.dialog.open(Ie,{data:{template:this.filterTemplateRef}}).afterClosed().subscribe(e=>{e&&this.onSubmit()})}};t.\u0275fac=function(i){return new(i||t)(c(Mi),c(ae),c(Ai))},t.\u0275cmp=j({type:t,selectors:[["mainpanel"]],viewQuery:function(i,o){if(i&1&&pt(Bo,5),i&2){let r;ht(r=ft())&&(o.filterTemplateRef=r.first)}},inputs:{text:"text",headerTitle:"headerTitle",textButton:"textButton",hideSearchBox:"hideSearchBox",hideSearchDropdown:"hideSearchDropdown",searchBoxPlaceHolder:"searchBoxPlaceHolder",description:"description"},outputs:{submitEvent:"onSubmit",textChange:"textChange"},ngContentSelectors:Wo,decls:26,vars:4,consts:[[1,"navbar","navbar-default","fixed-top","navbar-expand-lg","fixed-top","d-block","d-print-none","bg-white"],[1,"row","px-7",2,"margin-top","9px"],[1,"col-auto","pe-0","order-0","g-0","ms-6"],[1,"navbar-brand","me-5","float-start","my-1",2,"margin-right","0px !important",3,"matTooltip"],["id","action-filter",1,"col-lg-auto","col-12","d-lg-flex","collapse","order-lg-1","ps-0","order-2","gx-0","ms-5",2,"padding-left","0px"],[1,"search-box"],[1,"d-flex","h-100","align-items-center","justify-content-lg-start","justify-content-end"],[4,"ngIf"],["class","text-secondary ps-5",4,"ngIf"],[1,"col","d-lg-none","d-flex","justify-content-end","align-items-center","order-lg-2","order-1"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-button","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-sort-down"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-filter","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-search"],["type","button","aria-controls","navigation-index","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right","float-end","toggle-menu","ps-2","pe-0",2,"width","max-content","height","max-content",3,"click"],[1,"navbar-toggler-bar","burger-lines"],["id","action-button",1,"col-lg","col-12","d-lg-flex","justify-content-end","collapse","order-3"],[1,"main-panel-content","d-block","d-print-none"],[1,"input-group",2,"width","13.375rem"],["type","text",1,"form-control",2,"font-size","1rem",3,"ngModel","placeholder","ngModelChange","keyup","keyup.enter"],["type","button",1,"btn","btn-outline-secondary","fw-bold","rounded-0","border-start-0",3,"click"],[1,"fa","fa-search"],[1,"text-secondary","ps-5"],["role","button","aria-expanded","false",1,"text-muted","h5",3,"click"],[1,"fa","fa-filter"],[1,"fa-solid","fa-caret-down"],["filterTemplateRef",""]],template:function(i,o){i&1&&(Mt(Yo),u(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),it(4),m()(),u(5,"div",4)(6,"div",5)(7,"div",6)(8,"div")(9,"div"),R(10,No,6,2,"ng-container",7),m()(),R(11,Ho,6,0,"div",8),m()()(),u(12,"div",9)(13,"button",10),X(14,"i",11),m(),u(15,"button",12),X(16,"i",13),m(),u(17,"button",14),E("click",function(){return o.toggleMenu()}),X(18,"span",15)(19,"span",15)(20,"span",15),m()(),u(21,"div",16),Z(22),m()()(),u(23,"div",17)(24,"div"),Z(25,1),m()()),i&2&&(v(3),y("matTooltip",o.description?o.description:""),v(1),Gt(" ",o.headerTitle," "),v(6),y("ngIf",!o.hideSearchBox),v(1),y("ngIf",!o.hideSearchDropdown))},dependencies:[Qt,qe,Qe,Ke,bi],styles:[`.search-box .form-control{height:auto}.navbar .navbar-brand{white-space:nowrap;max-width:24.75rem;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize}@media (max-width: 468px){.navbar .navbar-brand{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media (max-width: 480px){.navbar.page-nav{height:auto}}@media (min-width: 1366px){.navbar.page-nav{height:44px}}
|
|
2
|
+
`],encapsulation:2});let n=t;return n})(),Nr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=I({imports:[ot,Je,Ue,wi,Ie]});let n=t;return n})();export{Mi as a,ni as b,$o as c,Ft as d,oe as e,ie as f,rt as g,_t as h,St as i,Q as j,Et as k,Se as l,P as m,Gi as n,Mn as o,Ot as p,bi as q,wi as r,kt as s,Te as t,ae as u,Ri as v,Ti as w,Pi as x,at as y,Rt as z,Ii as A,Ai as B,Br as C,Nr as D};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-7KXQRJHI.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-4PF4YRRT.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-PZX3AESM.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-POSHHHMT.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-OV2NRCQ5.js";import{b as u}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-3KM6M3SV.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-KPPQNI2R.js";import{a as f}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-NJM2XHQY.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-XDU5GZAR.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-L6CJT6UC.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-SHX3JAGT.js";import{D as l}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-SQR4ZRTF.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-NN3SPEH5.js";import{u as d}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-FDI2UIO2.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-7RTQ2IDL.js";import{Ac as m,aa as r,bb as c,ea as a,fa as i,ic as n,wc as s}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-FA44W5LU.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-ZKZWHDGN.js";var C=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a({type:t,selectors:[["app-report"]],decls:1,vars:0,template:function(e,O){e&1&&c(0,"router-outlet")},dependencies:[s],styles:["ul[_ngcontent-%COMP%] > li.dropdown-item[_ngcontent-%COMP%]{font-size:.6875rem!important}"]});let o=t;return o})();var y=[{path:"",component:C,children:[{path:"",redirectTo:"order",pathMatch:"full"},{path:"order",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-6D7NMKRE.js").then(o=>o.OrderModule),canActivate:[f]}]}],g=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i({type:t}),t.\u0275inj=r({imports:[n,m.forChild(y)]});let o=t;return o})();var z=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i({type:t}),t.\u0275inj=r({imports:[n,u,g,d,l,m,h]});let o=t;return o})();export{z as ReportModule};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as at}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.
|
|
1
|
+
import{c as at}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-7RTQ2IDL.js";import{$ as ut}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-FA44W5LU.js";import{a as Ee,b as ct,h as ft}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-ZKZWHDGN.js";function L(){}var Je=e=>e;function dt(e,t){for(let n in t)e[n]=t[n];return e}function Tt(e){return e()}function X(e){e.forEach(Tt)}function Re(e){return typeof e=="function"}function se(e,t){return e!=e?t==t:e!==t}function At(e){return Object.keys(e).length===0}function Ht(e,...t){if(e==null)return L;let n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function me(e,t,n){e.$$.on_destroy.push(Ht(t,n))}function Ye(e){return e&&Re(e.destroy)?e.destroy:L}var Ve=()=>globalThis.performance.now(),Ge=e=>requestAnimationFrame(e),ge=new Set;function It(e){ge.forEach(t=>{t.c(e)||(ge.delete(t),t.f())}),ge.size!==0&&Ge(It)}function Qe(e){let t;return ge.size===0&&Ge(It),{promise:new Promise(n=>{ge.add(t={c:e,f:n})}),abort(){ge.delete(t)}}}function G(e,t){e.appendChild(t)}function S(e,t,n){e.insertBefore(t,n||null)}function A(e){e.parentNode.removeChild(e)}function M(e){return document.createElement(e)}function Lt(e){return document.createTextNode(e)}function Ie(){return Lt("")}function H(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function v(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function D(e,t,n,i){n===null?e.style.removeProperty(t):e.style.setProperty(t,n)}function Y(e,t,n){e.classList[n?"add":"remove"](t)}function Ot(e,t,n=!1){let i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n,!1,t),i}var he,xe=0,Fe={};function Mt(e,t,n,i,o,r,s,c=0){let l=16.666/i,f=`{
|
|
2
2
|
`;for(let d=0;d<=1;d+=l){let u=t+(n-t)*r(d);f+=d*100+`%{${s(u,1-u)}}
|
|
3
3
|
`}let a=f+`100% {${s(n,1-n)}}
|
|
4
4
|
}`,m=`_bp_${Math.round(Math.random()*1e9)}_${c}`;if(!Fe[m]){if(!he){let d=M("style");document.head.appendChild(d),he=d.sheet}Fe[m]=!0,he.insertRule(`@keyframes ${m} ${a}`,he.cssRules.length)}let _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${m} ${i}ms linear ${o}ms 1 both`,xe+=1,m}function je(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?n=>n.indexOf(t)<0:n=>n.indexOf("_bp")===-1).join(", "),t&&!--xe&&Rt()}function Rt(){Ge(()=>{if(xe)return;let e=he.cssRules.length;for(;e--;)he.deleteRule(e);Fe={}})}var et;function Te(e){et=e}var ze=[],pt=[],Ae=[],mt=[],Yt=Promise.resolve(),Ze=!1;function Nt(){Ze||(Ze=!0,Yt.then(Ct))}function ne(e){Ae.push(e)}var Xe=new Set,Se=0;function Ct(){let e=et;do{for(;Se<ze.length;){let t=ze[Se];Se++,Te(t),Xt(t.$$)}for(Te(null),ze.length=0,Se=0;pt.length;)pt.pop()();for(let t=0;t<Ae.length;t+=1){let n=Ae[t];Xe.has(n)||(Xe.add(n),n())}Ae.length=0}while(ze.length);for(;mt.length;)mt.pop()();Ze=!1,Xe.clear(),Te(e)}function Xt(e){if(e.fragment!==null){e.update(),X(e.before_update);let t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ne)}}var ve;function Dt(){return ve||(ve=Promise.resolve(),ve.then(()=>{ve=null})),ve}function Le(e,t,n){e.dispatchEvent(Ot(`${t?"intro":"outro"}${n}`))}var He=new Set,V;function ie(){V={r:0,c:[],p:V}}function oe(){V.r||X(V.c),V=V.p}function z(e,t){e&&e.i&&(He.delete(e),e.i(t))}function P(e,t,n,i){if(e&&e.o){if(He.has(e))return;He.add(e),V.c.push(()=>{He.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}}var Pt={duration:0};function $t(e,t,n){let i=t(e,n),o=!1,r,s,c=0;function l(){r&&je(e,r)}function f(){let{delay:m=0,duration:_=300,easing:d=Je,tick:u=L,css:h}=i||Pt;h&&(r=Mt(e,0,1,_,m,d,h,c++)),u(0,1);let k=Ve()+m,O=k+_;s&&s.abort(),o=!0,ne(()=>Le(e,!0,"start")),s=Qe(N=>{if(o){if(N>=O)return u(1,0),Le(e,!0,"end"),l(),o=!1;if(N>=k){let y=d((N-k)/_);u(y,1-y)}}return o})}let a=!1;return{start(){a||(a=!0,je(e),Re(i)?(i=i(),Dt().then(f)):f())},invalidate(){a=!1},end(){o&&(l(),o=!1)}}}function _e(e,t,n){let i=t(e,n),o=!0,r,s=V;s.r+=1;function c(){let{delay:l=0,duration:f=300,easing:a=Je,tick:m=L,css:_}=i||Pt;_&&(r=Mt(e,1,0,f,l,a,_));let d=Ve()+l,u=d+f;ne(()=>Le(e,!1,"start")),Qe(h=>{if(o){if(h>=u)return m(0,1),Le(e,!1,"end"),--s.r||X(s.c),!1;if(h>=d){let k=a((h-d)/f);m(1-k,k)}}return o})}return Re(i)?Dt().then(()=>{i=i(),c()}):c(),{end(l){l&&i.tick&&i.tick(1,0),o&&(r&&je(e,r),o=!1)}}}function ke(e){e&&e.c()}function le(e,t,n,i){let{fragment:o,on_mount:r,on_destroy:s,after_update:c}=e.$$;o&&o.m(t,n),i||ne(()=>{let l=r.map(Tt).filter(Re);s?s.push(...l):X(l),e.$$.on_mount=[]}),c.forEach(ne)}function ce(e,t){let n=e.$$;n.fragment!==null&&(X(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Wt(e,t){e.$$.dirty[0]===-1&&(ze.push(e),Nt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ce(e,t,n,i,o,r,s,c=[-1]){let l=et;Te(e);let f=e.$$={fragment:null,ctx:null,props:r,update:L,not_equal:o,bound:{},on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:{},dirty:c,skip_bound:!1,root:t.target||l.$$.root};s&&s(f.root);let a=!1;f.ctx=n?n(e,t.props||{},(m,_,...d)=>{let u=d.length?d[0]:_;return f.ctx&&o(f.ctx[m],f.ctx[m]=u)&&(!f.skip_bound&&f.bound[m]&&f.bound[m](u),a&&Wt(e,m)),_}):[],f.update(),a=!0,X(f.before_update),f.fragment=i?i(f.ctx):!1,t.target&&(f.fragment&&f.fragment.c(),le(e,t.target,t.anchor,t.customElement),Ct()),Te(l)}var re=class{$destroy(){ce(this,1),this.$destroy=L}$on(t,n){let i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{let o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!At(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}};function tt(e){let t=e-1;return t*t*t+1}function Q(e,{delay:t=0,duration:n=400,easing:i=tt,x:o=0,y:r=0,opacity:s=0}={}){let c=getComputedStyle(e),l=+c.opacity,f=c.transform==="none"?"":c.transform,a=l*(1-s);return{delay:t,duration:n,easing:i,css:(m,_)=>`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as Ie,b as Me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-WKDJS327.js";import{a as De}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-LAEELPPC.js";import{g as xe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-KPPQNI2R.js";import{d as be,e as Te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-SOPDRQWM.js";import{d as ye,j as Se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-XDU5GZAR.js";import{a as ge}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-L6CJT6UC.js";import{A as w,q as A,s as D,t as O,z as E}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-SQR4ZRTF.js";import{_ as ve}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-NN3SPEH5.js";import{b as Ce,h as F,k as L,u as _e}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-FDI2UIO2.js";import{b as p,c as _}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-7RTQ2IDL.js";import{$ as oe,$a as l,Aa as M,B as ne,Fb as R,Ga as s,Gb as q,H as ie,Ha as g,Hb as ce,K as ae,La as J,Ob as W,Pa as Y,Qa as d,Ra as se,T as G,V as j,Wa as u,_b as pe,aa as le,ab as r,ac as x,bb as C,bc as U,c as $,ca as K,cb as V,db as N,ea as y,fa as re,fb as k,fc as me,hc as he,ic as fe,ja as v,jb as f,ka as I,lb as h,n as ee,q as te,qb as z,rb as c,sb as S,tb as T,xc as ue,yb as de}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-FA44W5LU.js";function Pe(o,n){if(o&1&&(l(0,"mat-option",9)(1,"div",10),C(2,"img",11),l(3,"span"),c(4),r()()()),o&2){let i=n.$implicit;d("value",i.ID)("disabled",i.disabled),s(1),d("matTooltip",i.disabled?"Single Product Scan disabled for this type of Channel":null),s(1),d("src",i.Img,M),s(2),S(i.Name)}}function Ve(o,n){if(o&1){let i=k();l(0,"div",12)(1,"label",13),c(2,"Scan Type"),r(),l(3,"mat-radio-group",14),f("ngModelChange",function(e){v(i);let a=h();return I(a.filter.ScanFull=e)}),l(4,"mat-radio-button",15),c(5," Full (Include Inactive Products) "),r(),l(6,"mat-radio-button",16),c(7," Active "),r()()()}if(o&2){let i=h();s(3),d("ngModel",i.filter.ScanFull),s(1),d("value",!0),s(2),d("value",!1)}}function Ne(o,n){if(o&1){let i=k();l(0,"div",17)(1,"label",3),c(2),R(3,"date"),r(),l(4,"mat-radio-group",18),f("ngModelChange",function(e){v(i);let a=h();return I(a.filter.UpdatedProduct=e)}),l(5,"mat-radio-button",19),c(6," Scan All Products "),r(),l(7,"mat-radio-button",20),c(8),r()()()}if(o&2){let i=h();s(2),T(" Last Scan: ",ce(3,6,i.selectedChannel.LastSync,"dd MMMM yyyy HH:mm")," "),s(2),d("ngModel",i.filter.UpdatedProduct),s(1),d("value",!1),s(2),d("value",!0)("matTooltip",i.selectedChannel.TypeID==i.channelType.Tokopedia?"Use Tokopedia URL for mapping SKU between POS and Tokopedia":"Scan only products that have been updated since the last channel scan"),s(1),T(" ",i.selectedChannel.TypeID==i.channelType.Tokopedia?"Product Download By URL":"Scan Updated Products"," ")}}function Ue(o,n){if(o&1){let i=k();l(0,"div",17)(1,"label",3),c(2," Scan Option "),r(),l(3,"mat-radio-group",21),f("ngModelChange",function(e){v(i);let a=h();return I(a.filter.Async=e)}),l(4,"mat-radio-button",22),c(5," Asynchronous (Get Notified when Complete) "),r(),l(6,"mat-radio-button",23),c(7," Synchronous (Wait until Complete) "),r()()()}if(o&2){let i=h();s(3),d("ngModel",i.filter.Async),s(1),d("value",!0),s(2),d("value",!1)}}var at=(()=>{let n=class n{constructor(t,e,a){this.dialogRef=t,this.data=e,this.router=a,this.channelType=p,this.disabledChannelOption=!1,this.filter={ChannelID:_.GuidEMpty,ScanFull:!0,UpdatedProduct:!1,Async:!1},this.isSingleChannel=_.IsNotEmpty(e.isSingleChannel)?this.data.isSingleChannel:!1,this.disabledChannelOption=_.IsEmpty(e.disabledChannelOption)?!1:this.data.disabledChannelOption}ngOnInit(){this.initChannelOptions(),this.initFilter(),this.onSelectChannel(this.data?.filter?.ChannelID),this.initModalConfig()}initModalConfig(){this.modalConfig=new E,this.modalConfig.title="Scan Marketplace",this.modalConfig.bodyScrollable=!0}initFilter(){this.filter.ChannelID=this.data?.filter?.ChannelID,this.filter.ScanFull=!1}initChannelOptions(){this.channelOptions=JSON.parse(JSON.stringify(this.data.channelOptions)),this.isSingleChannel&&(this.channelOptions=this.channelOptions.map(t=>(t.disabled=!0,(t.TypeID==p.Tiktok||t.TypeID==p.Tokopedia||t.TypeID==p.Lazada||t.TypeID==p.WooCommerce)&&(t.disabled=!1),t)).sort(t=>t.disabled?1:-1))}onSelectChannel(t){let e=this.filterChannelById(t);this.selectedChannel=e,this.filter.Async=!0,this.iniHasScanUpdate(),this.setDefaultConfigUpdate()}setDefaultConfigUpdate(){this.filter.UpdatedProduct=!1,this.selectedChannel&&_.IsNotEmpty(this.selectedChannel.LastSync)&&(this.selectedChannel.TypeID==p.Shopee||this.selectedChannel.TypeID==p.Tiktok||this.selectedChannel.TypeID==p.Lazada)&&(this.filter.UpdatedProduct=!0)}iniHasScanUpdate(){this.selectedChannel?.TypeID!=p.WooCommerce&&this.selectedChannel?.TypeID!=p.KalCare&&this.selectedChannel?.TypeID!=p.None&&_.IsNotEmpty(this.selectedChannel?.LastSync)&&!this.isSingleChannel?this.hasScanUpdate=!0:this.hasScanUpdate=!1}filterChannelById(t){let e;return this.channelOptions&&(e=this.channelOptions.find(a=>a.ID==t)),e}submit(){this.selectedChannel.TypeID==p.Tokopedia&&this.filter.UpdatedProduct?this.router.navigate(["/menu/products/download/by-url"]).then(()=>{this.dialogRef.close()}):(this.beforeSubmit(),this.dialogRef.close(this.filter))}beforeSubmit(){this.filter.UpdatedProduct&&(this.filter.Async=!1)}isNotEmpty(t){return _.IsNotEmpty(t)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(e){return new(e||n)(g(D),g(O),g(ue))},n.\u0275cmp=y({type:n,selectors:[["app-scan-dialog"]],decls:11,vars:8,consts:[[3,"dynamicValidated","config","onOk","onClose","onCancel"],["content",""],[1,"mx-4"],[1,"mb-2","fw-bold"],["appearance","outline",1,"w-100"],["name","channelid","placeholder","Channel",1,"mat-select-channel",3,"disabled","ngModel","ngModelChange"],["class","channel-option",3,"value","disabled",4,"ngFor","ngForOf"],["class","mt-4",4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"channel-option",3,"value","disabled"],["matTooltipPosition","above","matTooltipClass","custom-width-tooltip",3,"matTooltip"],[2,"width","18px","margin-right","10px",3,"src"],[1,"mt-4"],[1,"mb-2","fw-bold","mt-3"],["name","scanType",1,"form-control","h-100","round",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Full Scan Product",1,"me-5",3,"value"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Only Active Product",1,"me-5",3,"value"],[1,"mt-8"],["name","ScanFull",1,"form-control","h-100","round",2,"line-height","2",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Scan product from beginning ( use this if you haven't scanned at all)",1,"me-5",3,"value"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above",1,"me-5",3,"value","matTooltip"],["name","Async",1,"form-control","h-100","round",2,"line-height","2",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltip","Scan is running in the background, status will be visible in the notification menu","matTooltipPosition","above",1,"me-5",3,"value"],[1,"me-5",3,"value"]],template:function(e,a){e&1&&(l(0,"modal-material",0),f("onOk",function(){return a.submit()})("onClose",function(){return a.onClose()})("onCancel",function(){return a.onClose()}),l(1,"div",1)(2,"div",2)(3,"label",3),c(4,"Select a Channel"),r(),l(5,"mat-form-field",4)(6,"mat-select",5),f("ngModelChange",function(b){return a.filter.ChannelID=b})("ngModelChange",function(b){return a.onSelectChannel(b)}),u(7,Pe,5,5,"mat-option",6),r()(),u(8,Ve,8,3,"div",7)(9,Ne,9,9,"div",8)(10,Ue,8,3,"div",8),r()()()),e&2&&(d("dynamicValidated",a.isNotEmpty(a.filter.ChannelID))("config",a.modalConfig),s(6),d("disabled",a.disabledChannelOption)("ngModel",a.filter.ChannelID),s(1),d("ngForOf",a.channelOptions),s(1),d("ngIf",!a.isSingleChannel&&a.isNotEmpty(a.filter.ChannelID)),s(1),d("ngIf",a.hasScanUpdate),s(1),d("ngIf",!(a.filter!=null&&a.filter.UpdatedProduct)&&!a.isSingleChannel&&a.isNotEmpty(a.filter.ChannelID)))},dependencies:[x,U,F,L,Ie,Me,xe,De,ve,A,w,me],encapsulation:2});let o=n;return o})();var P=function(o){return o.Tokopedia="https://seller.tokopedia.com",o.Shoope="https://seller.shopee.co.id",o.Tiktok="https://seller-id.tiktok.com",o.WooCommerce="https://woocommerce.dealpos.app",o.Lazada="https://sellercenter.lazada.co.id",o}(P||{});function Fe(o,n){if(o&1&&(V(0),l(1,"tr")(2,"td",11),c(3),r(),l(4,"td",11),c(5),r(),l(6,"td",12)(7,"p",13),c(8,"Product Not in Channel!"),r()()(),N()),o&2){let i=h().$implicit;s(3),T(" ",i==null?null:i.Model,""),s(2),T(" ",i==null?null:i.Code,"")}}function Le(o,n){if(o&1&&(l(0,"td",11),c(1),r()),o&2){let i=h(3).$implicit;Y("rowspan",i.Channel.length),s(1),T(" ",i==null?null:i.Model,"")}}function Ae(o,n){if(o&1&&(l(0,"td",11),c(1),r()),o&2){let i=h(3).$implicit;Y("rowspan",i.Channel.length),s(1),T(" ",i==null?null:i.Code,"")}}var $e=o=>({"is-disabled":o});function Re(o,n){if(o&1&&(l(0,"tr"),u(1,Le,2,2,"td",14)(2,Ae,2,2,"td",14),l(3,"td",11)(4,"div",15)(5,"a",16),C(6,"img",17),r(),l(7,"div",18),c(8),r()()(),l(9,"td",11),c(10),R(11,"number"),r(),l(12,"td",19),c(13),R(14,"number"),r(),l(15,"td",19)(16,"a",20),C(17,"i",21),l(18,"span",22),c(19,"Edit"),r()()()()),o&2){let i=n.$implicit,t=n.index,e=h(3);s(1),d("ngIf",t==0),s(1),d("ngIf",t==0),s(3),d("href",i.Url,M)("title",i.Title),s(1),d("src",e.getChannelLogo(i.TypeID),M),s(1),d("matTooltip",(i==null||i.Name==null?null:i.Name.length)>55?i==null?null:i.Name:""),s(1),T(" ",i.Name," "),s(2),S(q(11,12,i.Price)),s(3),S(q(14,14,i.Inventory)),s(3),d("href",e.getHyperlinkSellerCenter(i),M)("ngClass",de(16,$e,i.TypeID==e.channelType.KalCare))("matTooltip",i.TypeID!=e.channelType.KalCare?"Edit this product in Seller Center, inventory changes must be done via DEALPOS":"")}}function Be(o,n){if(o&1&&u(0,Re,20,18,"tr",8),o&2){let i=h().$implicit;d("ngForOf",i==null?null:i.Channel)}}function je(o,n){if(o&1&&(V(0),u(1,Fe,9,2,"ng-container",9)(2,Be,1,1,"ng-template",null,10,W),N()),o&2){let i=n.$implicit,t=z(3);s(1),d("ngIf",!i.Channel||i.Channel.length<1)("ngIfElse",t)}}var mt=(()=>{let n=class n{constructor(t,e){this.data=t,this.dialogRef=e,this.channelType=p,this.variants=t.variants,this.title=t.title}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new E,this.modalConfig.title=this.data.title,this.modalConfig.bodyScrollable=!0,this.modalConfig.hideCancel=!0,this.modalConfig.hideOk=!0}getChannelLogo(t){return _.getChannelLogoByTypeId(t)}getHyperlinkSellerCenter(t){let e="javascript:void(0)";switch(t.TypeID){case p.Shopee:e=`${P.Shoope}/portal/product/${t.ChannelItemID}`;break;case p.Tiktok:e=`${P.Tiktok}/product/edit/${t.ChannelItemID}`;break;case p.Tokopedia:e=`${P.Tokopedia}/edit-product/${t.ChannelItemID}`;break;case p.WooCommerce:e=`${P.WooCommerce}/wp-admin/post.php?post=${t.ChannelItemID}&action=edit`;break;case p.Lazada:e=`${P.Lazada}/apps/product/publish?productId=${t.ChannelItemID}`;break}return e}};n.\u0275fac=function(e){return new(e||n)(g(O),g(D))},n.\u0275cmp=y({type:n,selectors:[["app-modal-variant"]],decls:22,vars:2,consts:[[3,"config","onCancel"],["content",""],[1,"table"],[1,"sticky-top-thead","variant-modal"],[1,"text-start","sticky-top"],["matTooltip","Variant from POS",1,"fas","fa-info-circle","ms-1"],["matTooltip","Product and Variant from each Channel",1,"fas","fa-info-circle","ms-1"],[1,"text-start","sticky-top",2,"width","0%"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["printChannelModal",""],[1,"text-start"],["colspan","3",1,"text-center"],[1,"my-auto"],["class","text-start",4,"ngIf"],[1,"d-flex"],["target","_blank",1,"me-1",3,"href","title"],[2,"width","20px","height","20px",3,"src"],[1,"text-ellipsis","ps-2",2,"max-width","18vw",3,"matTooltip"],[1,"text-center"],["target","_blank",1,"btn","btn-small","btn-light","px-4","py-2",3,"href","ngClass","matTooltip"],[1,"fa-solid","fa-pencil","me-2",2,"font-size","10px"],[1,"fs-6"]],template:function(e,a){e&1&&(l(0,"modal-material",0),f("onCancel",function(){return a.dialogRef.close()}),l(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),c(6," VARIANT "),l(7,"sup"),C(8,"i",5),r()(),l(9,"th",4),c(10,"SKU"),r(),l(11,"th",4),c(12," PRODUCT "),l(13,"sup"),C(14,"i",6),r()(),l(15,"th",4),c(16,"PRICE"),r(),l(17,"th",7),c(18,"INVENTORY"),r(),C(19,"th",4),r()(),l(20,"tbody"),u(21,je,4,2,"ng-container",8),r()()()()),e&2&&(d("config",a.modalConfig),s(21),d("ngForOf",a.variants))},dependencies:[pe,x,U,A,w,he],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.sticky-top-thead[_ngcontent-%COMP%] th.sticky-top[_ngcontent-%COMP%]{top:0}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr.sticky-top[_ngcontent-%COMP%]{border:none!important;border-bottom:1px solid!important}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{border-top:none!important;border-left:none!important;border-right:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fff!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child:after{border-right:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child:before{border-left:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:before{border-top:0px}a.is-disabled[_ngcontent-%COMP%]{color:gray;cursor:default}a.is-disabled[_ngcontent-%COMP%]:hover{text-decoration:none}"]});let o=n;return o})();var H=class{constructor(){this._input$=new $,this._destroy$=new $,this._loading=!1,this._bufferSize=50,this.data=[]}onSearch(){this._input$.pipe(ie(200),ae(),te(n=>(n&&(n=n.toLowerCase()),this.filterData(n))),ne(n=>n!==void 0),j(this._destroy$)).subscribe(n=>{this._dataBuffer=n.slice(0,this._bufferSize)})}onClear(){this._dataBuffer=this._data.slice(0,this._bufferSize)}filterData(n){let i=-1,t;return this._data.filter(a=>(t=JSON.stringify(a).toLowerCase(),i=t.indexOf(n),i!==-1||n==null))}get input$(){return this._input$}get bufferData(){return this._dataBuffer}get loading(){return this._loading}set data(n){this._data=n||[],this._dataBuffer=this._data.slice(0,this._bufferSize),this.onSearch()}initSelectedValue(n,i){if(_.IsNotEmpty(n)){let t=this._data.filter(e=>e[i].toString().toLowerCase().indexOf(n)!==-1);this._dataBuffer=t.slice(0,this._bufferSize)}}set bufferSize(n){this._bufferSize=n}onScrollToEnd(){this.fetchMore()}fetchMore(){let n=this._dataBuffer.length,i=this._data.slice(n,this._bufferSize+n);this._loading=!0,setTimeout(()=>{this._loading=!1,this._dataBuffer=this._dataBuffer.concat(i)},200)}destroy(){this._destroy$.next(!0),this._destroy$.complete()}};var we=(()=>{let n=class n{set items(t){this.ngSelectInfiniteScroll.data=t,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}get selected(){return this._selected}set selected(t){this._selected=t,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}constructor(){this.width="100%",this.clearable=!0,this.disabled=!1,this.ngSelectInfiniteScroll=new H,this.selectedChange=new J,this.selectedLabel=new J}onSelectChange(t){t?(this.selectedChange.emit(t[this.bindValue]),this.selectedLabel.emit(t[this.bindLabel])):(this.selectedChange.emit(null),this.selectedLabel.emit(null))}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=y({type:n,selectors:[["ng-select-infinite"]],inputs:{placeholder:"placeholder",bindValue:"bindValue",bindLabel:"bindLabel",width:"width",clearable:"clearable",parent:"parent",disabled:"disabled",items:"items",selected:"selected"},outputs:{selectedChange:"selectedChange",selectedLabel:"selectedLabel"},decls:1,vars:12,consts:[[3,"disabled","virtualScroll","typeahead","items","bindLabel","bindValue","placeholder","ngModel","clearable","appendTo","clear","scrollToEnd","change"]],template:function(e,a){e&1&&(l(0,"ng-select",0),f("clear",function(){return a.ngSelectInfiniteScroll.onClear()})("scrollToEnd",function(){return a.ngSelectInfiniteScroll.onScrollToEnd()})("change",function(b){return a.onSelectChange(b)}),r()),e&2&&(se("width",a.width),d("disabled",a.disabled)("virtualScroll",!0)("typeahead",a.ngSelectInfiniteScroll.input$)("items",a.ngSelectInfiniteScroll.bufferData)("bindLabel",a.bindLabel)("bindValue",a.bindValue)("placeholder",a.placeholder)("ngModel",a.selected)("clearable",a.clearable)("appendTo",a.parent))},dependencies:[be,F,L]});let o=n;return o})(),Ot=(()=>{let n=class n{};n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=re({type:n}),n.\u0275inj=le({imports:[fe,Te,_e]});let o=n;return o})();var ke=(()=>{let n=class n{constructor(t,e){this.LocalData=t,this.httpService=e}getCategoriesByTypeId(t,e){return this.LocalData.getCategoriesByChannelType(t).pipe(G(a=>a!=null?ee(a):this._getCategoriesByTypeID(t,e)))}_getCategoriesByTypeID(t,e){let a={TypeID:t,ID:e};return this.httpService.post("/api/Channel/getCategoriesByTypeID",a).pipe(G(m=>this.LocalData.saveCategoriesByChannelType(m,t)))}};n.\u0275fac=function(e){return new(e||n)(K(Se),K(ge))},n.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();function He(o,n){if(o&1){let i=k();V(0),l(1,"ng-select-infinite",16),f("selectedChange",function(e){v(i);let a=h().index,m=h();return I(m.onSelectCategory(e,a))}),r(),N()}if(o&2){let i=h().$implicit;s(1),d("items",i.Categories)("clearable",!1)}}function Ge(o,n){if(o&1&&(l(0,"div",17),C(1,"input",18),r()),o&2){let i=h().$implicit,t=h();d("matTooltip",t.channelType.WooCommerce==i.TypeID||t.channelType.Shopify==i.TypeID?"":"Product Category is Harcoded, Please Change Product Category in Seller Center"),s(1),d("placeholder",t.getChannelCategory(i.TypeID))}}function Ke(o,n){if(o&1){let i=k();V(0),l(1,"tr")(2,"td",9)(3,"input",10),f("ngModelChange",function(e){let m=v(i).$implicit;return I(m.Selected=e)})("ngModelChange",function(){v(i);let e=h();return I(e.onSelectChannel())}),r()(),l(4,"td")(5,"div",11),C(6,"img",12),l(7,"span",13),c(8),r()()(),l(9,"td"),u(10,He,2,2,"ng-container",14)(11,Ge,2,2,"ng-template",null,15,W),r()(),N()}if(o&2){let i=n.$implicit,t=z(12);s(3),d("ngModel",i.Selected),s(3),d("src",i==null?null:i.Img,M)("alt",i.Name),s(2),S(i.Name),s(2),d("ngIf",i.Categories.length>0)("ngIfElse",t)}}var Lt=(()=>{let n=class n{constructor(t,e,a,m){this.data=t,this.channelService=e,this.dialogRef=a,this.toastrService=m,this.channelOptions=[],this.uploadResponse=[],this.channelType=p,this.enableBtnOk=!1,this.destroy$=new $,this.uploadResponse=[],this.channels=this.data.channels,this.product=t.product}ngOnInit(){this.initModalConfig(),this.initChannelOptions(),this.initCategories()}initModalConfig(){this.modalConfig=new E,this.modalConfig.title=this.data.title,this.modalConfig.bodyScrollable=!0}initCategories(){this.filterChannelTypeId().forEach(e=>{this.channelService.getCategoriesByTypeId(e.channelType,e.channelId).pipe(j(this.destroy$)).subscribe(a=>{this.setCategoriesChannelOption(e.channelType,a)})})}setCategoriesChannelOption(t,e){this.channelOptions=this.channelOptions.map(a=>(a.TypeID==t&&(a.Categories=e),a))}initChannelOptions(){this.channelOptions=this.channels.map(t=>({Name:t.Name,Img:t.Img,ID:t.ID,Selected:!1,CategoryID:this.initDefaultChannelCategoryId(t.TypeID),TypeID:t.TypeID,Categories:[]}))}initDefaultChannelCategoryId(t){let e=0;switch(t){case p.Lazada:e=6509;break}return e}filterChannelTypeId(){return this.data.channels.map(e=>({channelType:e.TypeID,channelId:e.ID})).filter((e,a,m)=>m.findIndex(b=>e.channelType==b.channelType)==a).filter(e=>e.channelType==p.Tokopedia)}onSelectCategory(t,e){this.channelOptions[e].CategoryID=t,this.channelOptions[e].Selected=!0,this.onSelectChannel()}onSelectAllChannel(t){this.channelOptions=this.channelOptions.map(e=>(e.Selected=t,e)),this.enableBtnOk=t}onSelectChannel(){this.enableBtnOk=this.hasSelectedChannel()}hasSelectedChannel(){return this.channelOptions.findIndex(t=>t.Selected)!==-1}onClose(){this.dialogRef.close()}onSave(){if(!this.validateSelectedCategory()){this.toastrService.warning("Category is required","Warning!");return}let t=this.channelOptions.filter(e=>e.Selected).map(e=>({CategoryID:e.CategoryID,ChannelID:e.ID}));this.dialogRef.close(t)}validateSelectedCategory(){return this.channelOptions.filter(e=>e.Selected).filter(e=>e.TypeID==p.Tokopedia).findIndex(e=>e.CategoryID==0)==-1}getChannelCategory(t){let e;switch(t){case p.Shopee:e="Aksesoris Fashion";break;case p.Tiktok:e="Aksesoris Fashion - Aksesoris Pakaian";break;case p.WooCommerce:e=this.product?.Category?this.product?.Category:"Following the category in POS";break;case p.Lazada:e="Fashion Accessories / Women Accessories / Others";break;case p.Shopify:e=this.product?.Category?this.product?.Category:"Following the category in POS";break;default:e="Unavailable Category"}return e}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};n.\u0275fac=function(e){return new(e||n)(g(O),g(ke),g(D),g(ye))},n.\u0275cmp=y({type:n,selectors:[["app-modal-uploadMultiple-product"]],decls:15,vars:3,consts:[[3,"dynamicValidated","config","onOk","onClose","onCancel"],["content",""],[1,"table"],[1,"text-center",2,"width","6%"],["type","checkbox",3,"change"],[2,"width","30%"],[1,"fs-6"],[2,"width","60%"],[4,"ngFor","ngForOf"],[1,"text-center"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src","alt"],[1,"ms-3","fs-6"],[4,"ngIf","ngIfElse"],["EMPTY",""],["bindValue","Key","bindLabel","Value","width","100%","parent","body","position","top","placeholder","Select Category",3,"items","clearable","selectedChange"],["matTooltipPosition","above","matTooltipClass","custom-width-tooltip",3,"matTooltip"],["type","text","disabled","",1,"form-control","rounded",2,"height","40px",3,"placeholder"]],template:function(e,a){e&1&&(l(0,"modal-material",0),f("onOk",function(){return a.onSave()})("onClose",function(){return a.onClose()})("onCancel",function(){return a.onClose()}),l(1,"div",1)(2,"table",2)(3,"thead")(4,"tr")(5,"th",3)(6,"input",4),f("change",function(b){return a.onSelectAllChannel(b.target.checked)}),r()(),l(7,"th",5)(8,"span",6),c(9,"CHANNEL"),r()(),l(10,"th",7)(11,"span",6),c(12,"CATEGORY"),r()()()(),l(13,"tbody"),u(14,Ke,13,6,"ng-container",8),r()()()()),e&2&&(d("dynamicValidated",a.enableBtnOk)("config",a.modalConfig),s(14),d("ngForOf",a.channelOptions))},dependencies:[x,U,Ce,F,L,A,w,we],styles:[`input[type=checkbox]{width:15px;height:15px}table>thead>tr{border-top:none!important;border-left:none!important;border-right:none!important}
|
|
2
|
+
`],encapsulation:2});let o=n;return o})();function Je(o,n){if(o&1&&(l(0,"tr")(1,"td"),c(2),r(),l(3,"td"),c(4),r()()),o&2){let i=n.$implicit;s(2),S(i==null?null:i.Name),s(2),S(i==null?null:i.ChannelVariationSKU)}}var Bt=(()=>{let n=class n{constructor(t,e){this.data=t,this.dialogRef=e}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new E,this.modalConfig.title=this.data?.title,this.modalConfig.hideOk=!0,this.modalConfig.hideCancel=!0}};n.\u0275fac=function(e){return new(e||n)(g(O),g(D))},n.\u0275cmp=y({type:n,selectors:[["app-modal-variants"]],decls:11,vars:2,consts:[[3,"config","onCancel"],["content",""],[1,"table"],[1,"thead-light"],[4,"ngFor","ngForOf"]],template:function(e,a){e&1&&(l(0,"modal-material",0),f("onCancel",function(){return a.dialogRef.close()}),l(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th"),c(6,"Variant"),r(),l(7,"th"),c(8,"SKU"),r()()(),l(9,"tbody"),u(10,Je,5,2,"tr",4),r()()()()),e&2&&(d("config",a.modalConfig),s(10),d("ngForOf",a.data.variants))},dependencies:[x,w],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]});let o=n;return o})();export{at as a,mt as b,Ot as c,Lt as d,Bt as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as st,H as ct,I as dt,J as ht,K as R,P as lt,a as P,t as nt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-NN3SPEH5.js";import{b as u,c as rt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-7RTQ2IDL.js";import{$ as F,$a as _,A as j,Aa as $,Ca as K,Cc as g,Dc as h,Ga as m,Gc as a,Ha as d,Hc as s,Ic as b,Ja as W,Jc as c,Kc as ot,La as q,Lc as at,Na as E,Pa as H,Qa as p,Sa as O,Wa as G,Xa as J,aa as D,ab as S,ba as B,bb as w,c as M,ea as C,fa as A,fb as Q,ga as Y,ia as L,ic as it,ja as T,jb as N,ka as k,lb as y,mb as X,nb as Z,pa as z,qa as U,rb as tt,sb as et}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-FA44W5LU.js";var ut=["mat-sort-header",""];function gt(r,e){if(r&1){let n=Q();_(0,"div",3),N("@arrowPosition.start",function(){T(n);let i=y();return k(i._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){T(n);let i=y();return k(i._disableViewStateAnimation=!1)}),w(1,"div",4),_(2,"div",5),w(3,"div",6)(4,"div",7)(5,"div",8),S()()}if(r&2){let n=y();p("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),m(2),p("@indicator",n._getArrowDirectionState()),m(1),p("@leftPointer",n._getArrowDirectionState()),m(1),p("@rightPointer",n._getArrowDirectionState())}}var St=["*"];var ft=new B("MAT_SORT_DEFAULT_OPTIONS"),vt=lt(R(class{})),wt=(()=>{let e=class e extends vt{get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=P(t)}constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new M,this.start="asc",this._direction="",this.sortChange=new q}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let i=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=bt(t.start||this.start,i),l=o.indexOf(this.direction)+1;return l>=o.length&&(l=0),o[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}};e.\u0275fac=function(i){return new(i||e)(d(ft,8))},e.\u0275dir=Y({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[E,L]});let r=e;return r})();function bt(r,e){let n=["asc","desc"];return r=="desc"&&n.reverse(),e||n.push(""),n}var f=dt.ENTERING+" "+ct.STANDARD_CURVE,v={indicator:g("indicator",[s("active-asc, asc",a({transform:"translateY(0px)"})),s("active-desc, desc",a({transform:"translateY(10px)"})),c("active-asc <=> active-desc",h(f))]),leftPointer:g("leftPointer",[s("active-asc, asc",a({transform:"rotate(-45deg)"})),s("active-desc, desc",a({transform:"rotate(45deg)"})),c("active-asc <=> active-desc",h(f))]),rightPointer:g("rightPointer",[s("active-asc, asc",a({transform:"rotate(45deg)"})),s("active-desc, desc",a({transform:"rotate(-45deg)"})),c("active-asc <=> active-desc",h(f))]),arrowOpacity:g("arrowOpacity",[s("desc-to-active, asc-to-active, active",a({opacity:1})),s("desc-to-hint, asc-to-hint, hint",a({opacity:.54})),s("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",a({opacity:0})),c("* => asc, * => desc, * => active, * => hint, * => void",h("0ms")),c("* <=> *",h(f))]),arrowPosition:g("arrowPosition",[c("* => desc-to-hint, * => desc-to-active",h(f,b([a({transform:"translateY(-25%)"}),a({transform:"translateY(0)"})]))),c("* => hint-to-desc, * => active-to-desc",h(f,b([a({transform:"translateY(0)"}),a({transform:"translateY(25%)"})]))),c("* => asc-to-hint, * => asc-to-active",h(f,b([a({transform:"translateY(25%)"}),a({transform:"translateY(0)"})]))),c("* => hint-to-asc, * => active-to-asc",h(f,b([a({transform:"translateY(0)"}),a({transform:"translateY(-25%)"})]))),s("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",a({transform:"translateY(0)"})),s("hint-to-desc, active-to-desc, desc",a({transform:"translateY(-25%)"})),s("hint-to-asc, active-to-asc, asc",a({transform:"translateY(25%)"}))]),allowChildren:g("allowChildren",[c("* <=> *",[at("@*",ot(),{optional:!0})])])},I=(()=>{let e=class e{constructor(){this.changes=new M}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function Dt(r){return r||new I}var Ct={provide:I,deps:[[new z,new U,I]],useFactory:Dt},At=R(class{}),Lt=(()=>{let e=class e extends At{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=P(t)}constructor(t,i,o,l,x,pt,_t,V){super(),this._intl=t,this._changeDetectorRef=i,this._sort=o,this._columnDef=l,this._focusMonitor=x,this._elementRef=pt,this._ariaDescriber=_t,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",V?.arrowPosition&&(this.arrowPosition=V?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let i=!!t;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=j(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(i){return new(i||e)(d(I),d(W),d(wt,8),d("MAT_SORT_HEADER_COLUMN_DEF",8),d(st),d(K),d(nt,8),d(ft,8))},e.\u0275cmp=C({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,o){i&1&&N("click",function(){return o._handleClick()})("keydown",function(x){return o._handleKeydown(x)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),i&2&&(H("aria-sort",o._getAriaSortAttribute()),O("mat-sort-header-disabled",o._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[E],attrs:ut,ngContentSelectors:St,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,o){i&1&&(X(),_(0,"div",0)(1,"div",1),Z(2),S(),G(3,gt,6,6,"div",2),S()),i&2&&(O("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),H("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),J(3,o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[v.indicator,v.leftPointer,v.rightPointer,v.arrowOpacity,v.arrowPosition,v.allowChildren]},changeDetection:0});let r=e;return r})(),zt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=A({type:e}),e.\u0275inj=D({providers:[Ct],imports:[ht]});let r=e;return r})();var Gt=(()=>{let e=class e{set typeId(t){this.channelLogo=rt.getChannelLogoByTypeId(t),this.initChannelName(t)}constructor(){}initChannelName(t){switch(t){case u.Tokopedia:this.channelName="Tokopedia";break;case u.Tiktok:this.channelName="Tiktok";break;case u.WooCommerce:this.channelName="WooCommerce";break;case u.Shopee:this.channelName="Shopee";break;case u.Lazada:this.channelName="Lazada";break;case u.KalCare:this.channelName="Kalcare";break}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=C({type:e,selectors:[["app-channel-logo"]],inputs:{typeId:"typeId"},decls:4,vars:2,consts:[[1,"d-flex","align-items-center"],[2,"width","20px",3,"src"],[1,"ms-3","fw-normal"]],template:function(i,o){i&1&&(_(0,"div",0),w(1,"img",1),_(2,"span",2),tt(3),S()()),i&2&&(m(1),p("src",o.channelLogo,$),m(2),et(o.channelName))}});let r=e;return r})();var te=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=A({type:e}),e.\u0275inj=D({imports:[it]});let r=e;return r})();export{wt as a,Lt as b,zt as c,Gt as d,te as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$a as o,Fb as c,Ga as a,Gb as u,La as r,Qa as s,Wa as C,ab as l,bb as f,bc as T,ea as b,fb as P,hc as w,ic as y,ja as v,jb as d,ka as _,lb as h,rb as m,sb as k,ub as N,wb as S}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.10.0/Marketplace/chunk-FA44W5LU.js";function I(t,i){if(t&1){let g=P();o(0,"span",10),d("click",function(){v(g);let n=h();return n.getTotal(),_(n.hasClicked=!0)}),o(1,"i",11),m(2,"?"),l()()}}function M(t,i){if(t&1&&(o(0,"span"),m(1),c(2,"number"),l()),t&2){let g=h();a(1),k(u(2,1,g.paginationTotal))}}var O=(()=>{let i=class i{constructor(){this.get=new r,this.change=new r,this.next=new r,this.previous=new r,this.total=new r,this.hasClicked=!1}changePage(p){this.filter.PageNumber=p.pageIndex+1,this.change.emit(this.filter)}getTotal(){this.total.emit()}PreviousPage(){this.previous.emit()}NextPage(){this.next.emit()}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=b({type:i,selectors:[["app-mat-paginator-no-count"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{get:"get",change:"change",next:"next",previous:"previous",total:"total"},standalone:!0,features:[S],decls:13,vars:10,consts:[[1,"d-flex","justify-content-end","mt-5"],[1,"d-sm-block","collapse","mt-3","me-5"],[1,"text-dark","hidden-xxs"],["style","cursor:pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button",1,"btn","btn-outline-secondary","btn-sm","me-3","border-0",3,"disabled","click"],[1,"fas","fa-chevron-left"],["role","button",1,"btn","btn-outline-secondary","btn-sm","border-0",3,"disabled","click"],[1,"fas","fa-chevron-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(n,e){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),m(3),c(4,"number"),c(5,"number"),C(6,I,3,0,"span",3)(7,M,3,3,"span",4),l()(),o(8,"div",5)(9,"button",6),d("click",function(){return e.PreviousPage()}),f(10,"i",7),l(),o(11,"button",8),d("click",function(){return e.NextPage()}),f(12,"i",9),l()()()),n&2&&(a(3),N(" Showing ",u(4,6,e.filter.PageSize*(e.filter.PageNumber-1)+1)," - ",u(5,8,e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata)," of "),a(3),s("ngIf",!e.hasClicked),a(1),s("ngIf",e.hasClicked),a(2),s("disabled",e.filter.PageNumber==1),a(2),s("disabled",e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata==e.paginationTotal||e.totaldata<e.filter.PageSize))},dependencies:[y,T,w]});let t=i;return t})();export{O as a};
|