-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.93f93ce483d60d18.js
2 lines (2 loc) · 3.84 KB
/
common.93f93ce483d60d18.js
1
2
"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([["common"],{8672:(M,g,c)=>{c.d(g,{y:()=>D});var l=c(5460),C=c(3267);function p(h,a){1&h&&(l.S2Z(),l.I0R(0,"g"),l.wR5(1,"circle",2)(2,"circle",3),l.C$Y())}let D=(()=>{var h;class a{constructor(){this.circleGroups=new Array(9).fill(0)}}return(h=a).\u0275fac=function(E){return new(E||h)},h.\u0275cmp=l.In1({type:h,selectors:[["ngrx-circles"]],decls:2,vars:1,consts:[["width","200px","height","200px","viewBox","0 0 200 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],[4,"ngFor","ngForOf"],["cx","8","cy","8","r","6"],["cx","8","cy","182","r","6"]],template:function(E,v){1&E&&(l.S2Z(),l.I0R(0,"svg",0),l.yuY(1,p,3,0,"g",1),l.C$Y()),2&E&&(l.yG2(),l.E7m("ngForOf",v.circleGroups))},dependencies:[C.ay],encapsulation:2}),a})()},5260:(M,g,c)=>{c.r(g),c.d(g,{CirclesModule:()=>D});var l=c(3267),C=c(8672),p=c(5460);let D=(()=>{var h;class a{constructor(){this.customElementComponent=C.y}}return(h=a).\u0275fac=function(E){return new(E||h)},h.\u0275mod=p.a4G({type:h}),h.\u0275inj=p.s3X({imports:[l.MD]}),a})()},5344:(M,g,c)=>{c.d(g,{e2:()=>w,kT:()=>T}),c(576),c(3512),c(972);var h=c(3441),a=c(5460);class w{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,t,s=!0,o){this._multiple=e,this._emitChanges=s,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new h.E,t&&t.length&&(e?t.forEach(n=>this._markSelected(n)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(s=>this._markSelected(s));const t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(s=>this._unmarkSelected(s));const t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);const t=this.selected,s=new Set(e);e.forEach(n=>this._markSelected(n)),t.filter(n=>!s.has(this._getConcreteValue(n,s))).forEach(n=>this._unmarkSelected(n));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();const t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}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(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let s of t)if(this.compareWith(e,s))return s;return e}return e}}let T=(()=>{var i;class e{constructor(){this._listeners=[]}notify(s,o){for(let n of this._listeners)n(s,o)}listen(s){return this._listeners.push(s),()=>{this._listeners=this._listeners.filter(o=>s!==o)}}ngOnDestroy(){this._listeners=[]}}return(i=e).\u0275fac=function(s){return new(s||i)},i.\u0275prov=a.wxM({token:i,factory:i.\u0275fac,providedIn:"root"}),e})()}}]);
//# sourceMappingURL=common.93f93ce483d60d18.js.map