����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 3.141.107.132 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/public_html/public/client/ |
Upload File : |
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"5RNC":function(e,t,i){"use strict";i.d(t,"a",(function(){return x})),i.d(t,"b",(function(){return _}));var n=i("ofXK"),a=i("fXoL"),o=i("FKr1"),s=i("8LU1"),r=i("FtGj"),c=i("3Pt+"),l=i("R1ws"),d=i("nLfN"),u=i("quSY"),b=i("u47x"),h=i("cH1L");const m=["sliderWrapper"],p=Object(d.f)({passive:!1}),g={provide:c.s,useExisting:Object(a.V)(()=>x),multi:!0};class f{}class v{constructor(e){this._elementRef=e}}const k=Object(o.z)(Object(o.v)(Object(o.x)(v),"accent"));let x=(()=>{class e extends k{constructor(e,t,i,n,o,s,r,c){super(e),this._focusMonitor=t,this._changeDetectorRef=i,this._dir=n,this._ngZone=s,this._animationMode=c,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new a.n,this.input=new a.n,this.valueChange=new a.n,this.onTouched=()=>{},this._percent=0,this._isSliding=!1,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=u.a.EMPTY,this._pointerDown=e=>{this.disabled||this._isSliding||!S(e)&&0!==e.button||this._ngZone.run(()=>{const t=this.value,i=y(e);this._isSliding=!0,this._lastPointerEvent=e,e.preventDefault(),this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(e),this._focusHostElement(),this._updateValueFromPosition(i),this._valueOnSlideStart=this.value,this._pointerPositionOnStart=i,t!=this.value&&(this._emitInputEvent(),this._emitChangeEvent())})},this._pointerMove=e=>{if(this._isSliding){e.preventDefault();const t=this.value;this._lastPointerEvent=e,this._updateValueFromPosition(y(e)),t!=this.value&&this._emitInputEvent()}},this._pointerUp=e=>{if(this._isSliding){const t=this._pointerPositionOnStart,i=y(e);e.preventDefault(),this._removeGlobalEvents(),this._valueOnSlideStart=this._pointerPositionOnStart=this._lastPointerEvent=null,this._isSliding=!1,this._valueOnSlideStart==this.value||this.disabled||!t||t.x===i.x&&t.y===i.y||this._emitChangeEvent()}},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=r,this.tabIndex=parseInt(o)||0,s.runOutsideAngular(()=>{const t=e.nativeElement;t.addEventListener("mousedown",this._pointerDown,p),t.addEventListener("touchstart",this._pointerDown,p)})}get invert(){return this._invert}set invert(e){this._invert=Object(s.c)(e)}get max(){return this._max}set max(e){this._max=Object(s.f)(e,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(e){this._min=Object(s.f)(e,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(e){this._step=Object(s.f)(e,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(e){this._thumbLabel=Object(s.c)(e)}get tickInterval(){return this._tickInterval}set tickInterval(e){this._tickInterval="auto"===e?"auto":"number"==typeof e||"string"==typeof e?Object(s.f)(e,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(e){if(e!==this._value){let t=Object(s.f)(e);this._roundToDecimal&&(t=parseFloat(t.toFixed(this._roundToDecimal))),this._value=t,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(e){this._vertical=Object(s.c)(e)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(e){this._focusHostElement(e)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const e=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${e})`}}_getTrackFillStyles(){const e=this.percent,t=this.vertical?`1, ${e}, 1`:e+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${t})`,display:0===e?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let e=100*this._tickIntervalPercent,t={backgroundSize:this.vertical?`2px ${e}%`:e+"% 2px",transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${e/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const e=this._shouldInvertAxis();let i;i=this.vertical?e?"Bottom":"Top":e?"Right":"Left",t["padding"+i]=this._getThumbGap()+"px"}return t}_getThumbContainerStyles(){const e=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?e:!e)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const e=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?e:!e}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{this._isActive=!!e&&"keyboard"!==e,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mousedown",this._pointerDown,p),e.removeEventListener("touchstart",this._pointerDown,p),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(e){if(this.disabled||Object(r.s)(e))return;const t=this.value;switch(e.keyCode){case r.l:this._increment(10);break;case r.k:this._increment(-10);break;case r.e:this.value=this.max;break;case r.h:this.value=this.min;break;case r.i:this._increment("rtl"==this._getDirection()?1:-1);break;case r.p:this._increment(1);break;case r.m:this._increment("rtl"==this._getDirection()?-1:1);break;case r.d:this._increment(-1);break;default:return}t!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,e.preventDefault()}_onKeyup(){this._isSliding=!1}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(e){const t=this._document,i=S(e),n=i?"touchend":"mouseup";t.addEventListener(i?"touchmove":"mousemove",this._pointerMove,p),t.addEventListener(n,this._pointerUp,p),i&&t.addEventListener("touchcancel",this._pointerUp,p);const a=this._getWindow();void 0!==a&&a&&a.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const e=this._document;e.removeEventListener("mousemove",this._pointerMove,p),e.removeEventListener("mouseup",this._pointerUp,p),e.removeEventListener("touchmove",this._pointerMove,p),e.removeEventListener("touchend",this._pointerUp,p),e.removeEventListener("touchcancel",this._pointerUp,p);const t=this._getWindow();void 0!==t&&t&&t.removeEventListener("blur",this._windowBlur)}_increment(e){this.value=this._clamp((this.value||0)+this.step*e,this.min,this.max)}_updateValueFromPosition(e){if(!this._sliderDimensions)return;let t=this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(t=1-t),0===t)this.value=this.min;else if(1===t)this.value=this.max;else{const e=this._calculateValue(t),i=Math.round((e-this.min)/this.step)*this.step+this.min;this.value=this._clamp(i,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let e=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,t=Math.ceil(30/(e*this.step/(this.max-this.min)));this._tickIntervalPercent=t*this.step/e}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(e=this.value){let t=new f;return t.source=this,t.value=e,t}_calculatePercentage(e){return((e||0)-this.min)/(this.max-this.min)}_calculateValue(e){return this.min+e*(this.max-this.min)}_clamp(e,t=0,i=1){return Math.max(t,Math.min(e,i))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(e){this._elementRef.nativeElement.focus(e)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(e){this.value=e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}}return e.\u0275fac=function(t){return new(t||e)(a.Nb(a.l),a.Nb(b.h),a.Nb(a.h),a.Nb(h.c,8),a.Yb("tabindex"),a.Nb(a.A),a.Nb(n.e),a.Nb(l.a,8))},e.\u0275cmp=a.Hb({type:e,selectors:[["mat-slider"]],viewQuery:function(e,t){var i;1&e&&a.Nc(m,!0),2&e&&a.rc(i=a.bc())&&(t._sliderWrapper=i.first)},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:28,hostBindings:function(e,t){1&e&&a.ac("focus",(function(){return t._onFocus()}))("blur",(function(){return t._onBlur()}))("keydown",(function(e){return t._onKeydown(e)}))("keyup",(function(){return t._onKeyup()}))("mouseenter",(function(){return t._onMouseenter()}))("selectstart",(function(e){return e.preventDefault()})),2&e&&(a.Wb("tabIndex",t.tabIndex),a.Cb("aria-disabled",t.disabled)("aria-valuemax",t.max)("aria-valuemin",t.min)("aria-valuenow",t.value)("aria-orientation",t.vertical?"vertical":"horizontal"),a.Fb("mat-slider-disabled",t.disabled)("mat-slider-has-ticks",t.tickInterval)("mat-slider-horizontal",!t.vertical)("mat-slider-axis-inverted",t._shouldInvertAxis())("mat-slider-invert-mouse-coords",t._shouldInvertMouseCoords())("mat-slider-sliding",t._isSliding)("mat-slider-thumb-label-showing",t.thumbLabel)("mat-slider-vertical",t.vertical)("mat-slider-min-value",t._isMinValue())("mat-slider-hide-last-tick",t.disabled||t._isMinValue()&&t._getThumbGap()&&t._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",value:"value",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",vertical:"vertical",displayWith:"displayWith"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[a.Ab([g]),a.yb],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(e,t){1&e&&(a.Tb(0,"div",0,1),a.Tb(2,"div",2),a.Ob(3,"div",3),a.Ob(4,"div",4),a.Sb(),a.Tb(5,"div",5),a.Ob(6,"div",6),a.Sb(),a.Tb(7,"div",7),a.Ob(8,"div",8),a.Ob(9,"div",9),a.Tb(10,"div",10),a.Tb(11,"span",11),a.Hc(12),a.Sb(),a.Sb(),a.Sb(),a.Sb()),2&e&&(a.Bb(3),a.kc("ngStyle",t._getTrackBackgroundStyles()),a.Bb(1),a.kc("ngStyle",t._getTrackFillStyles()),a.Bb(1),a.kc("ngStyle",t._getTicksContainerStyles()),a.Bb(1),a.kc("ngStyle",t._getTicksStyles()),a.Bb(1),a.kc("ngStyle",t._getThumbContainerStyles()),a.Bb(5),a.Ic(t.displayValue))},directives:[n.w],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),e})();function S(e){return"t"===e.type[0]}function y(e){const t=S(e)?e.touches[0]||e.changedTouches[0]:e;return{x:t.clientX,y:t.clientY}}let _=(()=>{class e{}return e.\u0275mod=a.Lb({type:e}),e.\u0275inj=a.Kb({factory:function(t){return new(t||e)},imports:[[n.c,o.h],o.h]}),e})()},Eh8b:function(e,t,i){"use strict";i.r(t),i.d(t,"AppAppearanceModule",(function(){return ni}));var n=i("ofXK"),a=i("NFeN"),o=i("bTqV"),s=i("3Pt+"),r=i("5RNC"),c=i("fXoL");const l=new c.r("APPEARANCE_EDITOR_CONFIG"),d={navigationRoutes:[],menus:{availableRoutes:["login","register","contact","billing/pricing","account-settings","admin/appearance","admin/users","admin/settings/authentication","admin/settings/branding","admin/settings/cache","admin/settings/providers","admin/roles"],positions:["admin-navbar","custom-page-navbar","auth-page-footer"]},sections:[{name:"general",position:1},{name:"themes",position:2},{name:"menus",position:3},{name:"custom-code",position:4},{name:"seo-settings",position:5}]};var u=i("2Vo4"),b=i("lJxs"),h=i("hLX6"),m=i("fKqa");class p{constructor(e,t){this.route=e,this.queryParams=t,this.type=m.a.Navigate}}class g{constructor(e,t){this.key=e,this.value=t,this.type=m.a.SetConfig}}class f{constructor(e,t=0){this.selector=e,this.index=t,this.type=m.a.Select}}class v{constructor(){this.type=m.a.Deselect}}class k{constructor(e,t){this.key=e,this.value=t,this.type=m.a.SetColors}}class x{constructor(e){this.content=e,this.type=m.a.SetCustomCss}}class S{constructor(e){this.content=e,this.type=m.a.SetCustomHtml}}var y=i("LFZc"),_=i("jtHE"),T=i("xgIS"),C=i("pLZG"),w=i("nYR2"),O=i("w1tV"),I=i("WAq7"),M=i("PE4B"),P=i.n(M),F=i("kmQS"),$=i("tyNb"),H=i("LRXf"),B=i("i2dy");let N=(()=>{class e{constructor(e,t,i,n){this.settings=e,this.router=t,this.http=i,this.toast=n,this.activePanel$=new u.a(null),this.defaultSettings={},this.initiated$=new _.a(1),this.loading$=new u.a(!1),this.changes$=new u.a(null)}addChanges(e){this.changes$.next(Object.assign(Object.assign({},this.changes$.value),e))}openPanel(e){const t=this.config.sections.find(t=>Object(I.a)(t.name)===e);this.activePanel$.next(t),this.navigate(t)}init(e,t,i){return Object(T.a)(window,"message").pipe(Object(C.a)(e=>e.data===y.a&&new URL(e.origin).hostname===window.location.hostname)).subscribe(()=>{this.initiated$.next(!0),this.initiated$.complete(),this.activePanel$.value&&this.navigate(this.activePanel$.value)}),t.forEach(e=>{"env"===e.name?this.defaultSettings=Object.assign(Object.assign({},this.defaultSettings),e.value):this.defaultSettings[e.name]=e.value}),this.initConfig(i),this.initIframe(e),this.initiated$}saveChanges(e){e&&this.addChanges(e),this.loading$.next(!0);const t=(this.saveRequest?this.saveRequest:e=>this.http.post("admin/appearance",e))(this.changes$.value).pipe(Object(w.a)(()=>this.loading$.next(!1)),Object(O.a)());return t.subscribe(()=>{this.changes$.next(null),this.toast.open("Appearance saved")}),t}setSaveRequest(e){this.saveRequest=e}closeActivePanel(){this.router.navigate(["/admin/appearance"])}navigate(e){this.postMessage(new p((null==e?void 0:e.route)||this.config.defaultRoute,null==e?void 0:e.queryParams))}setConfig(e,t){this.postMessage(new g(e,t))}selectNode(e,t=0){e&&this.postMessage(new f(e,t))}deselectNode(){this.postMessage(new v)}postMessage(e){this.previewWindow.postMessage(e,"*")}currentValue(e){return e.startsWith("env.")||e.startsWith("custom-code.")?this.defaultSettings[e]:this.settings.get(e)}initConfig(e){const t=P.a.all(e);t.sections=t.sections.sort((e,t)=>e.position>t.position?1:-1),t.defaultRoute||(t.defaultRoute="/"),this.config=t}initIframe(e){const t=this.settings.getBaseUrl()+this.config.defaultRoute+"?be-preview-mode="+y.a;e.src=function(e){return e.replace(/([^:]\/)\/+/g,"$1")}(t),this.previewWindow=e.contentWindow}}return e.\u0275fac=function(t){return new(t||e)(c.Xb(F.a),c.Xb($.d),c.Xb(H.a),c.Xb(B.b))},e.\u0275prov=c.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var D=i("Wf9w"),E=i("Rd8u");function V(e,t){1&e&&c.Ob(0,"mat-icon",9)}function z(e,t){if(1&e&&(c.Tb(0,"span"),c.Fc(1,V,1,0,"mat-icon",7),c.Tb(2,"span",8),c.Hc(3),c.Sb(),c.Sb()),2&e){const e=c.ec(),t=e.first,i=e.last,n=e.$implicit,a=c.ec();c.Bb(1),c.kc("ngIf",!t),c.Bb(1),c.Fb("last",i),c.Bb(1),c.Ic(a.viewName(n))}}function A(e,t){if(1&e&&(c.Rb(0),c.Fc(1,z,4,4,"span",6),c.Qb()),2&e){const e=t.$implicit;c.Bb(1),c.kc("ngIf",e)}}let L=(()=>{class e{constructor(){this.path=[],this.back=new c.n}viewName(e){return Object(D.a)(e).replace(/_/g," ")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Hb({type:e,selectors:[["appearance-panel-meta"]],inputs:{path:"path"},outputs:{back:"back"},decls:7,vars:1,consts:[[1,"back-button",3,"click"],["svgIcon","keyboard-arrow-left"],[1,"title"],["trans","",1,"static"],[1,"path"],[4,"ngFor","ngForOf"],[4,"ngIf"],["svgIcon","keyboard-arrow-right","class","separator",4,"ngIf"],["trans","",1,"name"],["svgIcon","keyboard-arrow-right",1,"separator"]],template:function(e,t){1&e&&(c.Tb(0,"div",0),c.ac("click",(function(){return t.back.emit()})),c.Ob(1,"mat-icon",1),c.Sb(),c.Tb(2,"div",2),c.Tb(3,"div",3),c.Hc(4,"Customizing"),c.Sb(),c.Tb(5,"div",4),c.Fc(6,A,2,1,"ng-container",5),c.Sb(),c.Sb()),2&e&&(c.Bb(6),c.kc("ngForOf",t.path))},directives:[a.a,E.a,n.s,n.t],styles:["[_nghost-%COMP%]{display:flex;align-items:center;height:70px;margin-bottom:10px;border-bottom:1px solid var(--be-divider-default);background-color:var(--be-background)}.title[_ngcontent-%COMP%]{padding:10px}.path[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.name[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;text-transform:capitalize}.last[_ngcontent-%COMP%]{color:var(--be-accent-default)}.separator[_ngcontent-%COMP%]{vertical-align:middle;color:var(--be-secondary-text);width:18px;height:18px;line-height:18px}"],changeDetection:0}),e})(),R=(()=>{class e{constructor(e,t){this.el=e,this.editor=t}ngOnInit(){this.el.nativeElement.addEventListener("focus",()=>{this.editor.selectNode(this.selector)}),this.el.nativeElement.addEventListener("blur",()=>{this.editor.deselectNode()})}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(c.l),c.Nb(N))},e.\u0275dir=c.Ib({type:e,selectors:[["","highlightInPreview",""]],inputs:{selector:["highlightInPreview","selector"]}}),e})();var j=i("h586"),G=i("Lm4C"),U=i("QeDF"),X=i("oJgS"),q=i("W5HX"),W=i("8cGs"),J=i("STbY"),Y=i("gA0O"),K=i("bv9b");function Q(e,t){1&e&&c.Ob(0,"image-or-icon",11),2&e&&c.kc("src",t.ngIf)}function Z(e,t){1&e&&(c.Tb(0,"div",12),c.Ob(1,"mat-icon",13),c.Tb(2,"span",14),c.Hc(3,"Upload"),c.Sb(),c.Sb())}function ee(e,t){if(1&e){const e=c.Ub();c.Tb(0,"div",15),c.ac("click",(function(){return c.vc(e),c.ec().remove()})),c.Hc(1,"Remove"),c.Sb()}}function te(e,t){if(1&e){const e=c.Ub();c.Tb(0,"div",15),c.ac("click",(function(){return c.vc(e),c.ec().useDefault()})),c.Hc(1,"Use Default"),c.Sb()}}function ie(e,t){1&e&&c.Ob(0,"mat-progress-bar",16)}const ne=["*"];let ae=(()=>{class e{constructor(e,t,i,n){this.editor=e,this.uploadQueue=t,this.validator=i,this.settings=n,this.image$=new u.a(null),this.loading$=new u.a(!1),this.validator.showToast=!0}openModal(){const e={uri:this.backendUri||q.a.Image,httpParams:{diskPrefix:this.diskPrefix},validator:this.validator};Object(G.a)({types:[U.a.image]}).then(t=>{this.loading$.next(!0),this.uploadQueue.start(t,e).pipe(Object(w.a)(()=>this.loading$.next(!1))).subscribe(e=>{this.updateValue(e.fileEntry.url)})})}remove(){this.updateValue(null)}useDefault(){this.updateValue(this.defaultValue)}updateValue(e){this.propagateChange(e),this.image$.next(e+"?v="+Object(X.a)(8))}writeValue(e){this.image$.next(e)}registerOnChange(e){this.propagateChange=e}registerOnTouched(){}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(N),c.Nb(j.a),c.Nb(W.a),c.Nb(F.a))},e.\u0275cmp=c.Hb({type:e,selectors:[["appearance-image-input"]],hostAttrs:["tabindex","0"],inputs:{defaultValue:"defaultValue",backendUri:"backendUri",diskPrefix:"diskPrefix"},features:[c.Ab([j.a,{provide:s.s,useExisting:e,multi:!0}])],ngContentSelectors:ne,decls:18,vars:12,consts:[[1,"field-container",3,"click"],["trans","",1,"label","fake-label"],[1,"img-container"],[3,"src",4,"ngIf","ngIfElse"],["noImage",""],[1,"actions-dropdown"],[1,"no-style",3,"matMenuTriggerFor","click"],["svgIcon","settings",1,"trigger-icon"],["actionsMenu",""],["mat-menu-item","","trans","",3,"click",4,"ngIf"],["mode","indeterminate","color","accent",4,"ngIf"],[3,"src"],[1,"no-image"],["svgIcon","photo-size-select-actual"],["trans","",1,"text"],["mat-menu-item","","trans","",3,"click"],["mode","indeterminate","color","accent"]],template:function(e,t){if(1&e&&(c.jc(),c.Tb(0,"div",0),c.ac("click",(function(){return t.openModal()})),c.Tb(1,"div",1),c.ic(2),c.Sb(),c.Tb(3,"div",2),c.Fc(4,Q,1,1,"image-or-icon",3),c.fc(5,"async"),c.Fc(6,Z,4,0,"ng-template",null,4,c.Gc),c.Tb(8,"div",5),c.Tb(9,"button",6),c.ac("click",(function(e){return e.stopPropagation()})),c.Ob(10,"mat-icon",7),c.Sb(),c.Tb(11,"mat-menu",null,8),c.Fc(13,ee,2,0,"div",9),c.fc(14,"async"),c.Fc(15,te,2,0,"div",9),c.Sb(),c.Sb(),c.Sb(),c.Sb(),c.Fc(16,ie,1,0,"mat-progress-bar",10),c.fc(17,"async")),2&e){const e=c.sc(7),i=c.sc(12);c.Bb(4),c.kc("ngIf",c.gc(5,6,t.image$))("ngIfElse",e),c.Bb(5),c.kc("matMenuTriggerFor",i),c.Bb(4),c.kc("ngIf",c.gc(14,8,t.image$)),c.Bb(2),c.kc("ngIf",t.defaultValue),c.Bb(1),c.kc("ngIf",c.gc(17,10,t.loading$))}},directives:[E.a,n.t,J.c,a.a,J.d,Y.a,J.a,K.a],pipes:[n.b],styles:["[_nghost-%COMP%]{display:block;cursor:pointer;margin-bottom:15px;position:relative}.label[_ngcontent-%COMP%]{margin-bottom:5px}.img-container[_ngcontent-%COMP%]{position:relative;height:80px;padding:5px;border:1px solid var(--be-divider-default);border-radius:4px;background-color:var(--be-chip);overflow:hidden}.img-container[_ngcontent-%COMP%], image-or-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%}image-or-icon[_ngcontent-%COMP%]{height:100%}img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover}.no-image[_ngcontent-%COMP%]{text-align:center}.no-image[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:block;color:var(--be-hint-text);width:40px;height:40px}.no-image[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:var(--be-link);margin-top:3px;font-size:1.3rem}.actions-dropdown[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:5px;color:var(--be-secondary-text)}.actions-dropdown[_ngcontent-%COMP%] .trigger-icon[_ngcontent-%COMP%]{width:20px;height:20px}.mat-progress-bar[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}"],changeDetection:0}),e})();var oe=i("mrSG"),se=i("JYI4"),re=i("dz5c");const ce=["*"];let le=(()=>{class e{constructor(e){this.overlayPanel=e,this.color$=new u.a(null)}ngOnDestroy(){this.pickerSub&&this.pickerSub.unsubscribe()}writeValue(e){this.color$.next(e)}registerOnChange(e){this.propagateChange=e}registerOnTouched(){}openColorPicker(e){return Object(oe.a)(this,void 0,void 0,(function*(){const{BeColorPickerModule:t}=yield i.e(1).then(i.bind(null,"0PT2"));this.pickerSub=this.overlayPanel.open(t.components.panel,{origin:new c.l(e.target),position:se.a,data:{color:this.color$.value}}).valueChanged().subscribe(e=>{this.color$.next(e),this.propagateChange(this.color$.value)})}))}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(re.a))},e.\u0275cmp=c.Hb({type:e,selectors:[["color-picker-input"]],features:[c.Ab([{provide:s.s,useExisting:e,multi:!0}])],ngContentSelectors:ce,decls:7,vars:4,consts:[["type","button",1,"no-style","color-picker-btn",3,"click"],["svgIcon","drop-custom",1,"color-icon"],["trans","",1,"name"],["trans","",1,"change"]],template:function(e,t){1&e&&(c.jc(),c.Tb(0,"button",0),c.ac("click",(function(e){return t.openColorPicker(e)})),c.Tb(1,"mat-icon",1),c.fc(2,"async"),c.Sb(),c.Tb(3,"span",2),c.ic(4),c.Sb(),c.Tb(5,"span",3),c.Hc(6,"Change"),c.Sb(),c.Sb()),2&e&&(c.Bb(1),c.Cc("color",c.gc(2,2,t.color$)))},directives:[a.a,E.a],pipes:[n.b],styles:[".color-picker-btn[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 10px 0 15px;margin-bottom:15px;border-radius:4px;border:1px solid var(--be-divider-default);background-color:var(--be-background);cursor:pointer;height:57px;font-size:1.5rem;overflow:hidden;width:100%}.color-picker-btn[_ngcontent-%COMP%] .color-icon[_ngcontent-%COMP%]{width:35px;height:35px}.color-picker-btn[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{margin-left:3px;margin-top:3px;font-size:1.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px;text-transform:capitalize}.color-picker-btn[_ngcontent-%COMP%] .change[_ngcontent-%COMP%]{color:var(--be-link);font-size:1.3rem;margin-left:auto}"],changeDetection:0}),e})();var de=i("zW5C");function ue(e,t){if(1&e){const e=c.Ub();c.Tb(0,"div",9),c.Tb(1,"div",10),c.Tb(2,"div",11),c.Hc(3),c.fc(4,"trans"),c.Sb(),c.Tb(5,"button",12),c.ac("click",(function(){c.vc(e);const i=t.index;return c.ec(3).removeFeature("primary",i)})),c.Ob(6,"mat-icon",13),c.Sb(),c.Sb(),c.Tb(7,"div",14),c.Tb(8,"label",15),c.Hc(9,"Title"),c.Sb(),c.Ob(10,"input",16),c.Sb(),c.Tb(11,"div",14),c.Tb(12,"label",15),c.Hc(13,"Subtitle"),c.Sb(),c.Ob(14,"textarea",17),c.Sb(),c.Tb(15,"appearance-image-input",18),c.Hc(16," Image "),c.Sb(),c.Sb()}if(2&e){const e=t.$implicit,i=t.index,n=c.ec(3);c.kc("formGroup",e),c.Bb(3),c.Kc("",c.gc(4,13,"Feature")," #",i+1,""),c.Bb(5),c.kc("for","primary."+i+".title"),c.Bb(2),c.mc("highlightInPreview",".inline-feature:nth-child(",i+1,") h3"),c.kc("id","primary."+i+".title")("placeholder",n.defaultValue("primaryFeatures."+i+".title")),c.Bb(2),c.kc("for","primary."+i+".subtitle"),c.Bb(2),c.mc("highlightInPreview",".inline-feature:nth-child(",i+1,") p"),c.kc("id","primary."+i+".subtitle")("placeholder",n.defaultValue("primaryFeatures."+i+".subtitle")),c.Bb(1),c.mc("highlightInPreview",".inline-feature:nth-child(",i+1,") img"),c.kc("defaultValue",n.defaultValue("primaryFeatures."+i+".image"))}}function be(e,t){if(1&e){const e=c.Ub();c.Tb(0,"button",19),c.ac("click",(function(){return c.vc(e),c.ec(3).addFeature("primary")})),c.Hc(1,"Add"),c.Sb()}}function he(e,t){if(1&e&&(c.Rb(0),c.Fc(1,ue,17,15,"div",7),c.Fc(2,be,2,0,"button",8),c.Qb()),2&e){const e=c.ec(2);c.Bb(1),c.kc("ngForOf",e.primaryArray().controls),c.Bb(1),c.kc("ngIf",e.primaryArray().length<3)}}function me(e,t){if(1&e){const e=c.Ub();c.Tb(0,"div",9),c.Tb(1,"div",10),c.Tb(2,"div",11),c.Hc(3),c.fc(4,"trans"),c.Sb(),c.Tb(5,"button",12),c.ac("click",(function(){c.vc(e);const i=t.index;return c.ec(3).removeFeature("secondary",i)})),c.Ob(6,"mat-icon",13),c.Sb(),c.Sb(),c.Tb(7,"div",14),c.Tb(8,"label",15),c.Hc(9,"Title"),c.Sb(),c.Ob(10,"input",16),c.Sb(),c.Tb(11,"div",14),c.Tb(12,"label",15),c.Hc(13,"Subtitle"),c.Sb(),c.Ob(14,"input",20),c.Sb(),c.Tb(15,"div",14),c.Tb(16,"label",15),c.Hc(17,"Description"),c.Sb(),c.Ob(18,"textarea",21),c.Sb(),c.Tb(19,"appearance-image-input",22),c.Hc(20,"Image "),c.Sb(),c.Sb()}if(2&e){const e=t.$implicit,i=t.index,n=c.ec(3);c.kc("formGroup",e),c.Bb(3),c.Kc("",c.gc(4,17,"Feature")," #",i+1,""),c.Bb(5),c.kc("for","secondary."+i+".title"),c.Bb(2),c.mc("highlightInPreview",".big-feature:nth-child(",i+1,") h2"),c.kc("id","secondary."+i+".title")("placeholder",n.defaultValue("secondaryFeatures."+i+".title")),c.Bb(2),c.kc("for","secondary."+i+".subtitle"),c.Bb(2),c.mc("highlightInPreview",".big-feature:nth-child(",i+1,") small"),c.kc("id","secondary."+i+".subtitle")("placeholder",n.defaultValue("secondaryFeatures."+i+".subtitle")),c.Bb(2),c.kc("for","secondary."+i+".description"),c.Bb(2),c.mc("highlightInPreview",".big-feature:nth-child(",i+1,") p"),c.kc("id","secondary."+i+".description")("placeholder",n.defaultValue("secondaryFeatures."+i+".description")),c.Bb(1),c.mc("highlightInPreview",".big-feature:nth-child(",i+1,") img"),c.kc("defaultValue",n.defaultValue("secondaryFeatures."+i+".image"))}}function pe(e,t){if(1&e){const e=c.Ub();c.Rb(0),c.Fc(1,me,21,19,"div",7),c.Tb(2,"button",19),c.ac("click",(function(){return c.vc(e),c.ec(2).addFeature("secondary")})),c.Hc(3,"Add"),c.Sb(),c.Qb()}if(2&e){const e=c.ec(2);c.Bb(1),c.kc("ngForOf",e.secondaryArray().controls)}}function ge(e,t){if(1&e&&(c.Tb(0,"div",23),c.Tb(1,"div",14),c.Tb(2,"label",24),c.Hc(3,"Call to Action #1"),c.Sb(),c.Ob(4,"input",25),c.Sb(),c.Tb(5,"div",14),c.Tb(6,"label",26),c.Hc(7,"Call to Action #2"),c.Sb(),c.Ob(8,"input",27),c.Sb(),c.Sb()),2&e){const e=c.ec(2);c.kc("formGroup",e.form.get("actions")),c.Bb(4),c.kc("placeholder",e.defaultValue("actions.cta1")),c.Bb(4),c.kc("placeholder",e.defaultValue("actions.cta2"))}}function fe(e,t){if(1&e&&(c.Rb(0),c.Tb(1,"div",4),c.Fc(2,he,3,2,"ng-container",5),c.Fc(3,pe,4,1,"ng-container",5),c.Fc(4,ge,9,3,"div",6),c.Sb(),c.Qb()),2&e){const e=t.ngIf;c.Bb(1),c.kc("ngSwitch",e),c.Bb(1),c.kc("ngSwitchCase","primaryFeatures"),c.Bb(1),c.kc("ngSwitchCase","secondaryFeatures"),c.Bb(1),c.kc("ngSwitchCase","actions")}}function ve(e,t){if(1&e){const e=c.Ub();c.Tb(0,"div",23),c.Tb(1,"div",14),c.Tb(2,"label",28),c.Hc(3,"Header Title"),c.Sb(),c.Ob(4,"input",29),c.Sb(),c.Tb(5,"div",14),c.Tb(6,"label",30),c.Hc(7,"Header Subtitle"),c.Sb(),c.Ob(8,"textarea",31),c.Sb(),c.Tb(9,"appearance-image-input",32),c.Hc(10,"Header Image "),c.Sb(),c.Ob(11,"mat-slider",33),c.Tb(12,"color-picker-input",34),c.Hc(13,"Header Overlay Color 1"),c.Sb(),c.Tb(14,"color-picker-input",35),c.Hc(15,"Header Overlay Color 2"),c.Sb(),c.Ob(16,"div",36),c.Tb(17,"ul"),c.Tb(18,"li",37),c.ac("click",(function(){return c.vc(e),c.ec().openSubpanel("actions")})),c.Tb(19,"span",38),c.Hc(20,"Action Buttons"),c.Sb(),c.Ob(21,"mat-icon",39),c.Sb(),c.Tb(22,"li",37),c.ac("click",(function(){return c.vc(e),c.ec().openSubpanel("primaryFeatures")})),c.Tb(23,"span",38),c.Hc(24,"Primary Features"),c.Sb(),c.Ob(25,"mat-icon",39),c.Sb(),c.Tb(26,"li",37),c.ac("click",(function(){return c.vc(e),c.ec().openSubpanel("secondaryFeatures")})),c.Tb(27,"span",38),c.Hc(28,"Secondary Features"),c.Sb(),c.Ob(29,"mat-icon",39),c.Sb(),c.Tb(30,"li",37),c.ac("click",(function(){return c.vc(e),c.ec().openSubpanel("channels")})),c.Tb(31,"span",38),c.Hc(32,"Channels"),c.Sb(),c.Ob(33,"mat-icon",39),c.Sb(),c.Sb(),c.Ob(34,"div",36),c.Tb(35,"div",14),c.Tb(36,"label",40),c.Hc(37,"Footer Title"),c.Sb(),c.Ob(38,"input",41),c.Sb(),c.Tb(39,"div",14),c.Tb(40,"label",42),c.Hc(41,"Footer Subtitle"),c.Sb(),c.Ob(42,"textarea",43),c.Sb(),c.Tb(43,"appearance-image-input",44),c.Hc(44,"Footer Image "),c.Sb(),c.Sb()}if(2&e){const e=c.ec();c.kc("formGroup",e.form),c.Bb(4),c.kc("placeholder",e.defaultValue("headerTitle")),c.Bb(4),c.kc("placeholder",e.defaultValue("headerSubtitle")),c.Bb(1),c.kc("defaultValue",e.defaultValue("headerImage")),c.Bb(29),c.kc("placeholder",e.defaultValue("footerTitle")),c.Bb(4),c.kc("placeholder",e.defaultValue("footerSubtitle")),c.Bb(1),c.kc("defaultValue",e.defaultValue("footerImage"))}}const ke="homepage.appearance",xe={defaultRoute:"dashboard",navigationRoutes:["dashboard","dashboard/projects/new","builder","account/settings","admin"],menus:{availableRoutes:["dashboard","dashboard/projects/new"],positions:["dashboard","footer"]},sections:[{name:"landing page",component:(()=>{class e{constructor(e,t,i){this.fb=e,this.editor=t,this.settings=i,this.selectedSubpanel$=new u.a(null),this.path$=this.selectedSubpanel$.pipe(Object(b.a)(e=>{const t=["Homepage"];return e&&t.push(e),t})),this.form=this.fb.group({headerTitle:[""],headerSubtitle:[""],headerImage:[""],headerImageOpacity:[1],headerOverlayColor1:[""],headerOverlayColor2:[""],footerTitle:[""],footerSubtitle:[""],footerImage:[""],actions:this.fb.group({inputText:[""],inputButton:[""],cta1:[""],cta2:[""]}),primaryFeatures:this.fb.array([]),secondaryFeatures:this.fb.array([]),channelIds:this.fb.control([])})}ngOnInit(){const e=this.settings.getJson(ke,{});this.defaultValues=this.editor.defaultSettings[ke]?JSON.parse(this.editor.defaultSettings[ke]):{},(e.primaryFeatures||[]).forEach(()=>{this.addFeature("primary")}),(e.secondaryFeatures||[]).forEach(()=>{this.addFeature("secondary")}),this.form.patchValue(e),this.form.valueChanges.subscribe(e=>{this.editor.setConfig(ke,e),this.editor.addChanges({[ke]:e})})}openPreviousPanel(){this.selectedSubpanel$.value?this.openSubpanel(null):this.editor.closeActivePanel()}openSubpanel(e){this.selectedSubpanel$.next(e)}addFeature(e){const t=this.form.get(e+"Features"),i={title:[""],subtitle:[""],image:[""]};"secondary"===e&&(i.description=[""]),t.push(this.fb.group(i))}removeFeature(e,t){this.form.get(e+"Features").removeAt(t)}defaultValue(e){return h.pick(e,this.defaultValues)||""}primaryArray(){return this.form.get("primaryFeatures")}secondaryArray(){return this.form.get("secondaryFeatures")}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(s.h),c.Nb(N),c.Nb(F.a))},e.\u0275cmp=c.Hb({type:e,selectors:[["homepage-appearance-panel"]],decls:7,vars:7,consts:[[3,"path","back"],[1,"appearance-panel-content"],[4,"ngIf","ngIfElse"],["mainPanel",""],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","many-inputs",3,"formGroup",4,"ngSwitchCase"],["class","many-inputs feature-group",3,"formGroup",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent","trans","",3,"click",4,"ngIf"],[1,"many-inputs","feature-group",3,"formGroup"],[1,"feature-group-header"],[1,"text"],["mat-icon-button","","color","warn",3,"click"],["svgIcon","close"],[1,"input-container"],["trans","",3,"for"],["type","text","formControlName","title","required","",3,"id","placeholder","highlightInPreview"],["formControlName","subtitle","rows","3","required","",3,"id","placeholder","highlightInPreview"],["formControlName","image","diskPrefix","homepage","trans","",3,"defaultValue","highlightInPreview"],["mat-flat-button","","color","accent","trans","",3,"click"],["type","text","formControlName","subtitle","required","",3,"id","placeholder","highlightInPreview"],["type","text","formControlName","description","rows","4","required","",3,"id","placeholder","highlightInPreview"],["diskPrefix","homepage","formControlName","image","trans","",3,"defaultValue","highlightInPreview"],[1,"many-inputs",3,"formGroup"],["for","home.actions.cta1","trans",""],["type","text","id","home.actions.cta1","formControlName","cta1","highlightInPreview",".get-started-button","required","",3,"placeholder"],["for","home.actions.cta2","trans",""],["type","text","id","home.actions.cta2","formControlName","cta2","highlightInPreview",".learn-more-button","required","",3,"placeholder"],["for","home.header.title","trans",""],["type","text","id","home.header.title","formControlName","headerTitle","highlightInPreview",".header-title","required","",3,"placeholder"],["for","home.header.subtitle","trans",""],["type","text","id","home.header.subtitle","formControlName","headerSubtitle","rows","4","highlightInPreview",".header-description","required","",3,"placeholder"],["highlightInPreview",".hero","diskPrefix","homepage","formControlName","headerImage","trans","",3,"defaultValue"],["min","0","max","1","step","0.1","formControlName","headerImageOpacity",1,"opacity-slider"],["formControlName","headerOverlayColor1","trans",""],["formControlName","headerOverlayColor2","trans",""],[1,"separator"],[1,"nav-item",3,"click"],["trans","",1,"text"],["svgIcon","keyboard-arrow-right",1,"actions"],["for","home.footer.title","trans",""],["type","text","id","home.footer.title","formControlName","footerTitle","highlightInPreview",".footer-title","required","",3,"placeholder"],["for","home.footer.subtitle","trans",""],["type","text","id","home.footer.subtitle","formControlName","footerSubtitle","rows","4","highlightInPreview",".footer-description","required","",3,"placeholder"],["highlightInPreview",".bottom-cta","diskPrefix","homepage","formControlName","footerImage","trans","",3,"defaultValue"]],template:function(e,t){if(1&e&&(c.Tb(0,"appearance-panel-meta",0),c.ac("back",(function(){return t.openPreviousPanel()})),c.fc(1,"async"),c.Sb(),c.Tb(2,"div",1),c.Fc(3,fe,5,4,"ng-container",2),c.fc(4,"async"),c.Fc(5,ve,45,7,"ng-template",null,3,c.Gc),c.Sb()),2&e){const e=c.sc(6);c.kc("path",c.gc(1,3,t.path$)),c.Bb(3),c.kc("ngIf",c.gc(4,5,t.selectedSubpanel$))("ngIfElse",e)}},directives:[L,n.t,n.x,n.y,n.s,s.v,s.m,o.b,a.a,E.a,s.d,s.u,s.k,s.F,R,ae,r.a,le],pipes:[n.b,de.a],styles:[".separator[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--be-divider-default);margin:20px 0}.feature-group[_ngcontent-%COMP%]{padding-bottom:5px;margin-bottom:15px}.feature-group[_ngcontent-%COMP%], .feature-group-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-default)}.feature-group-header[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;padding-bottom:10px;margin-bottom:10px}.feature-group-header[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{margin-left:auto}.opacity-slider[_ngcontent-%COMP%]{width:100%;margin-top:-20px}"],changeDetection:0}),e})(),position:1,route:"/"}]};var Se=i("6rvT");let ye=(()=>{class e{}return e.\u0275mod=c.Lb({type:e}),e.\u0275inj=c.Kb({factory:function(t){return new(t||e)},imports:[[n.c,Se.a,a.b]]}),e})();var _e=i("+rOU"),Te=i("OnlV"),Ce=i("XhcP");const we=function(){return["General"]};let Oe=(()=>{class e{constructor(e,t){this.fb=e,this.editor=t,this.form=this.fb.group({"branding.logo_light":[""],"branding.logo_dark":[""],"branding.favicon":[""],"env.app_name":[""],"branding.site_description":[""]})}ngOnInit(){const e={};Object.keys(this.form.controls).forEach(t=>{e[t]=this.editor.currentValue(t)}),this.form.patchValue(e),this.form.valueChanges.subscribe(e=>{this.editor.addChanges(e)})}defaultValue(e){return this.editor.defaultSettings[e]}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(s.h),c.Nb(N))},e.\u0275cmp=c.Hb({type:e,selectors:[["general-appearance-panel"]],hostAttrs:[1,"appearance-panel"],decls:16,vars:8,consts:[[3,"path","back"],[1,"appearance-panel-content","many-inputs",3,"formGroup"],["formControlName","branding.logo_light","diskPrefix","branding_media","highlightInPreview",".logo",3,"defaultValue"],["formControlName","branding.logo_dark","diskPrefix","branding_media","highlightInPreview",".logo",3,"defaultValue"],["backendUri","uploads/favicon","diskPrefix","branding_media","formControlName","branding.favicon",3,"defaultValue"],[1,"input-container"],["for","env.app_name","trans",""],["type","text","id","env.app_name","formControlName","env.app_name",3,"placeholder"],["for","branding.site_description","trans",""],["id","branding.site_description","rows","4","formControlName","branding.site_description",3,"placeholder"]],template:function(e,t){1&e&&(c.Tb(0,"appearance-panel-meta",0),c.ac("back",(function(){return t.editor.closeActivePanel()})),c.Sb(),c.Tb(1,"div",1),c.Tb(2,"appearance-image-input",2),c.Hc(3," Logo #1 (For top navbar) "),c.Sb(),c.Tb(4,"appearance-image-input",3),c.Hc(5," Logo #2 (Everywhere else) "),c.Sb(),c.Tb(6,"appearance-image-input",4),c.Hc(7," Favicon "),c.Sb(),c.Tb(8,"div",5),c.Tb(9,"label",6),c.Hc(10,"Site Name"),c.Sb(),c.Ob(11,"input",7),c.Sb(),c.Tb(12,"div",5),c.Tb(13,"label",8),c.Hc(14,"Site Description"),c.Sb(),c.Ob(15,"textarea",9),c.Sb(),c.Sb()),2&e&&(c.kc("path",c.nc(7,we)),c.Bb(1),c.kc("formGroup",t.form),c.Bb(1),c.kc("defaultValue",t.defaultValue("branding.logo_light")),c.Bb(2),c.kc("defaultValue",t.defaultValue("branding.logo_dark")),c.Bb(2),c.kc("defaultValue",t.defaultValue("branding.favicon")),c.Bb(5),c.kc("placeholder",t.defaultValue("env.app_name")),c.Bb(4),c.kc("placeholder",t.defaultValue("branding.site_description")))},directives:[L,s.v,s.m,ae,s.u,s.k,R,E.a,s.d],styles:[""],changeDetection:0}),e})();var Ie=i("0IaG");let Me=(()=>{class e{constructor(e){this.http=e}all(){return this.http.get("css-theme")}create(e){return this.http.post("css-theme",e)}update(e,t){return this.http.put("css-theme/"+e,t)}delete(e){return this.http.delete("css-theme/"+e)}}return e.\u0275fac=function(t){return new(t||e)(c.Xb(H.a))},e.\u0275prov=c.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Pe=i("1jcm");function Fe(e,t){1&e&&(c.Tb(0,"span",6),c.Hc(1,"Update Theme"),c.Sb())}function $e(e,t){1&e&&(c.Tb(0,"span",6),c.Hc(1,"Create Theme"),c.Sb())}function He(e,t){if(1&e&&(c.Tb(0,"div",21),c.Hc(1),c.Sb()),2&e){const e=c.ec().ngIf;c.Bb(1),c.Ic(e.name)}}function Be(e,t){1&e&&(c.Tb(0,"span"),c.Hc(1,"Update"),c.Sb())}function Ne(e,t){1&e&&(c.Tb(0,"span"),c.Hc(1,"Create"),c.Sb())}function De(e,t){if(1&e){const e=c.Ub();c.Tb(0,"form",7),c.ac("ngSubmit",(function(){return c.vc(e),c.ec().confirm()})),c.Tb(1,"mat-dialog-content",8),c.Tb(2,"div",9),c.Tb(3,"label",10),c.Hc(4,"Name"),c.Sb(),c.Ob(5,"input",11),c.Fc(6,He,2,1,"div",12),c.Sb(),c.Tb(7,"div",13),c.Tb(8,"mat-slide-toggle",14),c.Hc(9,"Dark Theme"),c.Sb(),c.Tb(10,"p",6),c.Hc(11,"Whether this theme has light text on dark background."),c.Sb(),c.Sb(),c.Tb(12,"div",13),c.Tb(13,"mat-slide-toggle",15),c.Hc(14,"Default Dark Theme"),c.Sb(),c.Tb(15,"p",6),c.Hc(16,"Whether this theme should be used as default dark theme."),c.Sb(),c.Sb(),c.Tb(17,"div",13),c.Tb(18,"mat-slide-toggle",16),c.Hc(19,"Default Light Theme"),c.Sb(),c.Tb(20,"p",6),c.Hc(21,"Whether this theme should be used as default light theme."),c.Sb(),c.Sb(),c.Sb(),c.Tb(22,"mat-dialog-actions"),c.Tb(23,"button",17),c.ac("click",(function(){return c.vc(e),c.ec().close()})),c.Hc(24,"Cancel"),c.Sb(),c.Tb(25,"button",18),c.fc(26,"async"),c.Fc(27,Be,2,0,"span",19),c.Fc(28,Ne,2,0,"ng-template",null,20,c.Gc),c.Sb(),c.Sb(),c.Sb()}if(2&e){const e=t.ngIf,i=c.sc(29),n=c.ec();c.kc("formGroup",n.form),c.Bb(6),c.kc("ngIf",e.name),c.Bb(19),c.kc("disabled",c.gc(26,5,n.loading$)),c.Bb(2),c.kc("ngIf",n.data.theme)("ngIfElse",i)}}let Ee=(()=>{class e{constructor(e,t,i,n,a){this.dialogRef=e,this.data=t,this.cssTheme=i,this.toast=n,this.fb=a,this.loading$=new u.a(!1),this.errors$=new u.a({}),this.form=this.fb.group({name:[""],is_dark:[!1],default_dark:[!1],default_light:[!1]}),t.theme&&this.form.patchValue(t.theme),this.form.get("default_dark").valueChanges.pipe(Object(C.a)(e=>!!e)).subscribe(()=>{this.form.get("default_light").setValue(!1)}),this.form.get("default_light").valueChanges.pipe(Object(C.a)(e=>!!e)).subscribe(()=>{this.form.get("default_dark").setValue(!1)})}confirm(){(this.data.theme?this.cssTheme.update(this.data.theme.id,this.form.value):this.cssTheme.create(this.form.value)).subscribe(e=>{this.toast.open(this.data.theme?"Theme updated":"Theme created"),this.close(e.theme)},e=>this.errors$.next(e.errors))}close(e){this.dialogRef.close(e)}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(Ie.h),c.Nb(Ie.a),c.Nb(Me),c.Nb(B.b),c.Nb(s.h))},e.\u0275cmp=c.Hb({type:e,selectors:[["crupdate-css-theme-modal"]],decls:8,vars:5,consts:[[1,"modal-header"],["mat-dialog-title",""],["trans","",4,"ngIf"],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["trans",""],["ngNativeValidate","",3,"formGroup","ngSubmit"],[1,"many-inputs"],[1,"input-container"],["for","name","trans",""],["type","text","id","name","formControlName","name","required","","minlength","3"],["class","error",4,"ngIf"],[1,"setting-toggle-container"],["id","is_dark","formControlName","is_dark","trans",""],["id","default_dark","formControlName","default_dark","trans",""],["id","default_light","formControlName","default_light","trans",""],["type","button","mat-button","","trans","",3,"click"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"],[4,"ngIf","ngIfElse"],["creating",""],[1,"error"]],template:function(e,t){1&e&&(c.Tb(0,"div",0),c.Tb(1,"h2",1),c.Fc(2,Fe,2,0,"span",2),c.Fc(3,$e,2,0,"span",2),c.Sb(),c.Tb(4,"button",3),c.ac("click",(function(){return t.close()})),c.Ob(5,"mat-icon",4),c.Sb(),c.Sb(),c.Fc(6,De,30,7,"form",5),c.fc(7,"async")),2&e&&(c.Bb(2),c.kc("ngIf",t.data.theme),c.Bb(1),c.kc("ngIf",!t.data.theme),c.Bb(3),c.kc("ngIf",c.gc(7,3,t.errors$)))},directives:[Ie.i,n.t,a.a,E.a,s.v,s.m,Ie.f,s.d,s.u,s.k,s.F,s.q,Pe.a,Ie.c,o.b],pipes:[n.b],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}"],changeDetection:0}),e})();var Ve=i("/RwR"),ze=i("QGXG"),Ae=i("FBzJ");function Le(e,t){if(1&e&&(c.Tb(0,"li"),c.Tb(1,"color-picker-input",2),c.Hc(2),c.Sb(),c.Sb()),2&e){const e=t.$implicit,i=c.ec();c.Bb(1),c.kc("formControlName",e.key),c.Bb(1),c.Ic(i.viewName(e.key))}}let Re=(()=>{class e{constructor(e,t){this.editor=e,this.themes=t,this.form=new s.l({}),this.colorCache={}}ngOnInit(){this.editor.setSaveRequest(this.saveColors.bind(this)),Object.entries(this.theme.colors).forEach(([e,t])=>{this.form.addControl(e,new s.i(t))}),this.editor.initiated$.subscribe(()=>{this.setColors(this.theme.colors),this.form.valueChanges.subscribe(e=>{this.setColors(e),this.editor.addChanges({colors:e})})})}ngOnDestroy(){this.editor.setSaveRequest(null)}saveColors(e){return this.themes.update(this.theme.id,e)}setColors(e){Object.entries(e).forEach(([e,t])=>{this.colorCache[e]!==t&&(this.editor.postMessage(new k(e,t)),this.colorCache[e]=t)})}viewName(e){return e.replace("be-","").replace(/-/g," ")}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(N),c.Nb(Me))},e.\u0275cmp=c.Hb({type:e,selectors:[["css-theme-colors-panel"]],inputs:{theme:"theme"},decls:3,vars:4,consts:[[1,"unstyled-list",3,"formGroup"],[4,"ngFor","ngForOf"],["trans","",3,"formControlName"]],template:function(e,t){1&e&&(c.Tb(0,"ul",0),c.Fc(1,Le,3,2,"li",1),c.fc(2,"keyvalue"),c.Sb()),2&e&&(c.kc("formGroup",t.form),c.Bb(1),c.kc("ngForOf",c.gc(2,2,t.theme.colors)))},directives:[s.v,s.m,n.s,le,E.a,s.u,s.k],pipes:[n.l],styles:[""],changeDetection:0}),e})();function je(e,t){1&e&&c.Ob(0,"css-theme-colors-panel",5),2&e&&c.kc("theme",t.ngIf)}function Ge(e,t){if(1&e){const e=c.Ub();c.Tb(0,"li",9),c.ac("click",(function(){c.vc(e);const i=t.$implicit;return c.ec(2).setSelectedTheme(i)})),c.Tb(1,"div",10),c.Hc(2),c.Sb(),c.Tb(3,"div",11),c.ac("click",(function(t){return c.vc(e),t.stopPropagation()})),c.Tb(4,"button",12),c.ac("click",(function(){c.vc(e);const i=t.$implicit;return c.ec(2).setSelectedTheme(i)})),c.Ob(5,"mat-icon",13),c.Sb(),c.Tb(6,"button",12),c.ac("click",(function(){c.vc(e);const i=t.$implicit;return c.ec(2).openCrupdateThemeModal(i)})),c.Ob(7,"mat-icon",14),c.Sb(),c.Tb(8,"button",12),c.ac("click",(function(){c.vc(e);const i=t.$implicit;return c.ec(2).maybeDeleteThemeModal(i)})),c.Ob(9,"mat-icon",15),c.Sb(),c.Sb(),c.Sb()}if(2&e){const e=t.$implicit;c.Bb(2),c.Ic(e.name)}}function Ue(e,t){if(1&e){const e=c.Ub();c.Tb(0,"button",6),c.ac("click",(function(){return c.vc(e),c.ec().openCrupdateThemeModal()})),c.Hc(1,"New Theme"),c.Sb(),c.Tb(2,"ul",7),c.Fc(3,Ge,10,1,"li",8),c.fc(4,"async"),c.Sb()}if(2&e){const e=c.ec();c.Bb(3),c.kc("ngForOf",c.gc(4,1,e.loadedThemes$))}}let Xe=(()=>{class e{constructor(e,t,i,n,a,o){this.appearance=e,this.modal=t,this.themes=i,this.toast=n,this.router=a,this.route=o,this.loading$=new u.a(!1),this.loadedThemes$=new u.a([]),this.selectedTheme$=new u.a(null),this.path$=this.selectedTheme$.pipe(Object(b.a)(e=>{const t=["Themes"];return e&&t.push(e.name),t}))}ngOnInit(){this.reloadThemes()}ngOnDestroy(){this.querySub&&this.querySub.unsubscribe()}openCrupdateThemeModal(e){this.modal.open(Ee,{theme:e}).afterClosed().subscribe(e=>{e&&this.reloadThemes()})}setSelectedTheme(e){this.router.navigate([],{queryParams:{theme:e&&e.id},queryParamsHandling:"merge"})}openPreviousPanel(){this.selectedTheme$.value?this.setSelectedTheme():this.appearance.closeActivePanel()}maybeDeleteThemeModal(e){this.modal.show(Ve.a,{title:"Delete Theme",body:"Are you sure you want to delete this theme?",ok:"Delete"}).afterClosed().subscribe(t=>{t&&this.deleteTheme(e)})}reloadThemes(){this.loading$.next(!0),this.themes.all().pipe(Object(w.a)(()=>this.loading$.next(!1))).subscribe(e=>{this.loadedThemes$.next(e.pagination.data),this.bindToQueryParams()})}deleteTheme(e){this.themes.delete([e.id]).subscribe(()=>{this.toast.open("Theme deleted"),this.reloadThemes()})}bindToQueryParams(){this.querySub||(this.querySub=this.route.queryParams.subscribe(e=>{const t=this.loadedThemes$.value.find(t=>t.id===+e.theme);this.selectedTheme$.next(t)}))}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(N),c.Nb(ze.a),c.Nb(Me),c.Nb(B.b),c.Nb($.d),c.Nb($.a))},e.\u0275cmp=c.Hb({type:e,selectors:[["themes-appearance-panel"]],decls:9,vars:10,consts:[[3,"path","back"],[1,"appearance-panel-content"],[3,"theme",4,"ngIf","ngIfElse"],["themesList",""],[1,"overlay","overlay-partial",3,"isVisible"],[3,"theme"],["mat-raised-button","","color","accent","type","button","trans","",1,"new-theme-button",3,"click"],[1,"unstyled-list"],["class","nav-item",3,"click",4,"ngFor","ngForOf"],[1,"nav-item",3,"click"],[1,"name"],[1,"actions",3,"click"],["mat-icon-button","","type","button",3,"click"],["svgIcon","drop-custom"],["svgIcon","edit"],["svgIcon","delete"]],template:function(e,t){if(1&e&&(c.Tb(0,"appearance-panel-meta",0),c.ac("back",(function(){return t.openPreviousPanel()})),c.fc(1,"async"),c.Sb(),c.Tb(2,"div",1),c.Fc(3,je,1,1,"css-theme-colors-panel",2),c.fc(4,"async"),c.Fc(5,Ue,5,3,"ng-template",null,3,c.Gc),c.Sb(),c.Ob(7,"loading-indicator",4),c.fc(8,"async")),2&e){const e=c.sc(6);c.kc("path",c.gc(1,4,t.path$)),c.Bb(3),c.kc("ngIf",c.gc(4,6,t.selectedTheme$))("ngIfElse",e),c.Bb(4),c.kc("isVisible",c.gc(8,8,t.loading$))}},directives:[L,n.t,Ae.a,Re,o.b,E.a,n.s,a.a],pipes:[n.b],styles:[".new-theme-button[_ngcontent-%COMP%]{margin-bottom:15px}"],changeDetection:0}),e})();var qe=i("WvtK");class We{constructor(e={}){this.type="link",this.order=1,this.condition=null,this.target=null,this.position=0,this.activeExact=!1;for(const t in e)this[t]=e[t];this.id=Math.floor(999*Math.random())}}var Je=i("5+WD"),Ye=i("f9yG");let Ke=(()=>{class e{constructor(e,t){this.settings=e,this.appearance=t,this.allMenus$=new u.a([]),this.activeMenu$=new u.a(null)}create(){const e=[...this.allMenus$.value];this.activeMenu$.next(new Ye.a({name:"New Menu"})),e.push(this.activeMenu$.value),this.allMenus$.next(e),this.commitChanges()}reorderActiveMenuItems(e,t){const i=Object.assign({},this.activeMenu$.value);Object(Je.f)(i.items,e,t),this.activeMenu$.next(i),this.commitChanges()}deleteActive(){const e=[...this.allMenus$.value],t=e.indexOf(this.activeMenu$.value);e.splice(t,1),this.activeMenu$.next(null),this.allMenus$.next(e),this.commitChanges()}addItem(e){const t=Object.assign({},this.activeMenu$.value);e=this.transformLocalLinksToRoutes(e),t.items.push(e),this.activeMenu$.next(t),this.commitChanges()}removeItem(e){const t=Object.assign({},this.activeMenu$.value),i=this.activeMenu$.value.items.indexOf(e);t.items.splice(i,1),this.activeMenu$.next(t),this.commitChanges()}transformLocalLinksToRoutes(e){const t=this.settings.getBaseUrl();return"link"!==e.type||-1===e.action.indexOf(t)||(e.type="route",e.action=e.action.replace(this.settings.getBaseUrl(),"")),e}commitChanges(){const e=JSON.stringify(this.allMenus$.value);this.appearance.setConfig("menus",e),this.appearance.addChanges({menus:e})}setFromJson(e){if(!e)return;const t=JSON.parse(e);if(!t)return;const i=t.map(e=>{const t=new Ye.a(e);return t.items=t.items.map(e=>new We(e)),t});this.allMenus$.next(i)}}return e.\u0275fac=function(t){return new(t||e)(c.Xb(F.a),c.Xb(N))},e.\u0275prov=c.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Qe=i("ZfYz"),Ze=i("sPnx");let et=(()=>{class e{constructor(e){this.http=e}get(){return this.http.getWithCache("admin/appearance/menu-categories")}}return e.\u0275fac=function(t){return new(t||e)(c.Xb(Ze.a))},e.\u0275prov=c.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var tt=i("7EHt");function it(e,t){if(1&e){const e=c.Ub();c.Tb(0,"div",17),c.ac("click",(function(){c.vc(e);const i=t.$implicit;return c.ec().addRouteMenuItem(i)})),c.Hc(1),c.Sb()}if(2&e){const e=t.$implicit;c.Bb(1),c.Jc("",e," ")}}function nt(e,t){if(1&e){const e=c.Ub();c.Tb(0,"div",17),c.ac("click",(function(){c.vc(e);const i=t.$implicit;return c.ec(2).addCustomMenuItem(i)})),c.Hc(1),c.Sb()}if(2&e){const e=t.$implicit;c.Bb(1),c.Ic(e.label)}}function at(e,t){if(1&e&&(c.Tb(0,"mat-expansion-panel",5),c.Tb(1,"mat-expansion-panel-header"),c.Tb(2,"mat-panel-title",6),c.Hc(3),c.Sb(),c.Sb(),c.Tb(4,"div",14),c.Fc(5,nt,2,1,"div",15),c.Sb(),c.Sb()),2&e){const e=t.$implicit;c.Bb(3),c.Ic(e.name),c.Bb(2),c.kc("ngForOf",e.items)}}let ot=(()=>{class e{constructor(e,t,i,n,a){this.editor=e,this.appearance=t,this.overlayPanelRef=i,this.fb=n,this.itemCategories=a,this.linkForm=this.fb.group({action:[""],label:[""]})}ngOnInit(){this.itemCategories.get().subscribe(e=>{this.menuItemCategories=e.categories})}addLinkMenuItem(){this.editor.addItem(new We({type:"link",label:this.linkForm.value.label,action:this.linkForm.value.action})),this.linkForm.reset(),this.close()}addRouteMenuItem(e){this.editor.addItem(new We({type:"route",label:e,action:e})),this.close()}addCustomMenuItem(e){this.editor.addItem(new We(e)),this.close()}close(){this.overlayPanelRef.close()}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(Ke),c.Nb(N),c.Nb(Qe.a),c.Nb(s.h),c.Nb(et))},e.\u0275cmp=c.Hb({type:e,selectors:[["add-menu-item-panel"]],decls:30,vars:3,consts:[[1,"header"],["trans","",1,"title"],["svgIcon","close",3,"click"],[1,"new-item-tabs"],["ngNativeValidate","",3,"formGroup","ngSubmit"],[1,"mat-elevation-z"],["trans",""],[1,"many-inputs","expansion-panel-content"],[1,"input-container"],["for","external-link-url","trans",""],["type","url","id","external-link-url","formControlName","action","required",""],["for","external-link-text","trans",""],["type","text","id","external-link-text","formControlName","label","required",""],["mat-button","","color","accent","type","submit","trans",""],[1,"items-list","expansion-panel-content"],["class","item",3,"click",4,"ngFor","ngForOf"],["class","mat-elevation-z",4,"ngFor","ngForOf"],[1,"item",3,"click"]],template:function(e,t){1&e&&(c.Tb(0,"div",0),c.Tb(1,"span",1),c.Hc(2,"New Menu Item"),c.Sb(),c.Tb(3,"mat-icon",2),c.ac("click",(function(){return t.close()})),c.Sb(),c.Sb(),c.Tb(4,"div",3),c.Tb(5,"mat-accordion"),c.Tb(6,"form",4),c.ac("ngSubmit",(function(){return t.addLinkMenuItem()})),c.Tb(7,"mat-expansion-panel",5),c.Tb(8,"mat-expansion-panel-header"),c.Tb(9,"mat-panel-title",6),c.Hc(10,"Link"),c.Sb(),c.Sb(),c.Tb(11,"div",7),c.Tb(12,"div",8),c.Tb(13,"label",9),c.Hc(14,"URL"),c.Sb(),c.Ob(15,"input",10),c.Sb(),c.Tb(16,"div",8),c.Tb(17,"label",11),c.Hc(18,"Link Text"),c.Sb(),c.Ob(19,"input",12),c.Sb(),c.Sb(),c.Tb(20,"mat-action-row"),c.Tb(21,"button",13),c.Hc(22,"Add"),c.Sb(),c.Sb(),c.Sb(),c.Sb(),c.Tb(23,"mat-expansion-panel",5),c.Tb(24,"mat-expansion-panel-header"),c.Tb(25,"mat-panel-title",6),c.Hc(26,"Route"),c.Sb(),c.Sb(),c.Tb(27,"div",14),c.Fc(28,it,2,1,"div",15),c.Sb(),c.Sb(),c.Fc(29,at,6,2,"mat-expansion-panel",16),c.Sb(),c.Sb()),2&e&&(c.Bb(6),c.kc("formGroup",t.linkForm),c.Bb(22),c.kc("ngForOf",t.appearance.config.menus.availableRoutes),c.Bb(1),c.kc("ngForOf",t.menuItemCategories))},directives:[E.a,a.a,tt.a,s.v,s.m,tt.c,tt.e,tt.f,s.d,s.u,s.k,s.F,tt.d,o.b,n.s],styles:["[_nghost-%COMP%]{background-color:var(--be-background-alternative);box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);overflow:hidden;width:300px;border-radius:4px}.header[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:var(--be-background);padding:15px;font-size:1.7rem;font-weight:300;border-bottom:1px solid var(--be-divider-default);margin-bottom:10px}.header[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{cursor:pointer;color:var(--be-secondary-text);margin-left:auto}.new-item-tabs[_ngcontent-%COMP%]{padding:10px}.items-list[_ngcontent-%COMP%]{overflow:auto;max-height:300px}.items-list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{color:var(--be-link);padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--be-divider-default);cursor:pointer}.items-list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{text-decoration:underline}.mat-expansion-panel[_ngcontent-%COMP%]{border:1px solid var(--be-divider-default);margin-bottom:10px}.mat-expansion-panel-header[_ngcontent-%COMP%]{min-height:57px}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-default)}.expansion-panel-content[_ngcontent-%COMP%]{padding-top:25px}"],changeDetection:0}),e})();function st(e,t){if(1&e){const e=c.Ub();c.Tb(0,"button",2),c.ac("click",(function(){c.vc(e);const i=t.$implicit;return c.ec().selectIcon(i)})),c.Ob(1,"mat-icon",3),c.Sb()}if(2&e){const e=t.$implicit;c.Bb(1),c.kc("svgIcon",e)}}let rt=(()=>{class e{constructor(e,t){this.http=e,this.overlayPanelRef=t,this.icons$=new u.a([]),this.loading$=new u.a(!1),this.iconSelected=new c.n}ngOnInit(){this.loading$.next(!0),this.http.get("admin/icons").pipe(Object(w.a)(()=>this.loading$.next(!1))).subscribe(e=>{this.icons$.next(e.icons)})}selectIcon(e){this.iconSelected.observers.length?this.iconSelected.next(e):(this.overlayPanelRef.emitValue(e),this.overlayPanelRef.close())}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(Ze.a),c.Nb(Qe.a))},e.\u0275cmp=c.Hb({type:e,selectors:[["icon-selector"]],outputs:{iconSelected:"iconSelected"},decls:4,vars:6,consts:[["mat-icon-button","",3,"click",4,"ngFor","ngForOf"],[1,"overlay","overlay-partial",3,"isVisible"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(e,t){1&e&&(c.Fc(0,st,2,1,"button",0),c.fc(1,"async"),c.Ob(2,"loading-indicator",1),c.fc(3,"async")),2&e&&(c.kc("ngForOf",c.gc(1,2,t.icons$)),c.Bb(2),c.kc("isVisible",c.gc(3,4,t.loading$)))},directives:[n.s,Ae.a,o.b,a.a],pipes:[n.b],styles:["[_nghost-%COMP%]{display:block;background-color:var(--be-background);padding:15px;border-radius:4px;width:490px;max-width:90vw;min-height:390px;overflow:auto;position:relative;text-align:center;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-icon-button[_ngcontent-%COMP%]{transition:transform .1s ease-in-out}.mat-icon-button[_ngcontent-%COMP%]:hover{transform:scale(1.6)}"],changeDetection:0}),e})();function ct(e,t){if(1&e){const e=c.Ub();c.Tb(0,"mat-expansion-panel",5),c.ac("opened",(function(){c.vc(e);const i=t.$implicit;return c.ec(2).toggleMenuItem(i)}))("closed",(function(){c.vc(e);const i=t.$implicit;return c.ec(2).toggleMenuItem(i)})),c.Tb(1,"mat-expansion-panel-header"),c.Tb(2,"mat-panel-title"),c.Ob(3,"mat-icon",6),c.Tb(4,"span",7),c.Hc(5),c.Sb(),c.Sb(),c.Sb(),c.Tb(6,"div",8),c.Tb(7,"div",9),c.Tb(8,"label",10),c.Hc(9,"Label"),c.Sb(),c.Tb(10,"input",11),c.ac("ngModelChange",(function(i){return c.vc(e),t.$implicit.label=i}))("ngModelChange",(function(){return c.vc(e),c.ec(2).menus.commitChanges()})),c.Sb(),c.Sb(),c.Tb(11,"div",9),c.Tb(12,"label",10),c.Hc(13,"Type"),c.Sb(),c.Tb(14,"select",12),c.ac("ngModelChange",(function(i){return c.vc(e),t.$implicit.type=i}))("ngModelChange",(function(){return c.vc(e),c.ec(2).menus.commitChanges()})),c.Tb(15,"option",13),c.Hc(16,"Link"),c.Sb(),c.Tb(17,"option",14),c.Hc(18,"Route"),c.Sb(),c.Tb(19,"option",15),c.Hc(20,"Page"),c.Sb(),c.Sb(),c.Sb(),c.Tb(21,"div",9),c.Tb(22,"label",10),c.Hc(23,"Action"),c.Sb(),c.Tb(24,"input",11),c.ac("ngModelChange",(function(i){return c.vc(e),t.$implicit.action=i}))("ngModelChange",(function(){return c.vc(e),c.ec(2).menus.commitChanges()})),c.Sb(),c.Sb(),c.Tb(25,"div",9),c.Tb(26,"label",10),c.Hc(27,"Condition"),c.Sb(),c.Tb(28,"select",12),c.ac("ngModelChange",(function(i){return c.vc(e),t.$implicit.condition=i}))("ngModelChange",(function(){return c.vc(e),c.ec(2).menus.commitChanges()})),c.Tb(29,"option",16),c.Hc(30,"None"),c.Sb(),c.Tb(31,"option",17),c.Hc(32,"Show to Logged in Users Only"),c.Sb(),c.Tb(33,"option",18),c.Hc(34,"Show to Guest Users Only"),c.Sb(),c.Tb(35,"option",19),c.Hc(36,"Show to Admin Only"),c.Sb(),c.Sb(),c.Sb(),c.Tb(37,"div",9),c.Tb(38,"label",10),c.Hc(39,"Open link in"),c.Sb(),c.Tb(40,"select",12),c.ac("ngModelChange",(function(i){return c.vc(e),t.$implicit.target=i}))("ngModelChange",(function(){return c.vc(e),c.ec(2).menus.commitChanges()})),c.Tb(41,"option",20),c.Hc(42,"Same Window"),c.Sb(),c.Tb(43,"option",21),c.Hc(44,"New Window"),c.Sb(),c.Sb(),c.Sb(),c.Tb(45,"div",22,23),c.ac("click",(function(){c.vc(e);const i=t.$implicit,n=c.sc(46);return c.ec(2).openIconSelector(n,i)})),c.Tb(47,"label",10),c.Hc(48,"Icon"),c.Sb(),c.Tb(49,"input",24),c.ac("ngModelChange",(function(i){return c.vc(e),t.$implicit.icon=i})),c.Sb(),c.Ob(50,"mat-icon",25),c.Sb(),c.Sb(),c.Tb(51,"mat-action-row"),c.Tb(52,"button",26),c.ac("click",(function(){return c.vc(e),c.ec(2).confirmMenuItemDeletion()})),c.Hc(53,"Remove"),c.Sb(),c.Sb(),c.Sb()}if(2&e){const e=t.$implicit;c.Cb("data-id",e.id),c.Bb(5),c.Ic(e.label),c.Bb(3),c.lc("for",e.id+"-label"),c.Bb(2),c.lc("id",e.id+"-label"),c.kc("ngModel",e.label),c.Bb(2),c.lc("for",e.id+"-type"),c.Bb(2),c.lc("id",e.id+"-type"),c.kc("ngModel",e.type),c.Bb(8),c.lc("for",e.id+"-action"),c.Bb(2),c.lc("id",e.id+"-action"),c.kc("ngModel",e.action),c.Bb(2),c.lc("for",e.id+"-condition"),c.Bb(2),c.lc("id",e.id+"-condition"),c.kc("ngModel",e.condition),c.Bb(1),c.kc("ngValue",null),c.Bb(9),c.lc("for",e.id+"-target"),c.Bb(2),c.lc("id",e.id+"-target"),c.kc("ngModel",e.target),c.Bb(7),c.lc("for",e.id+"-icon"),c.Bb(2),c.lc("id",e.id+"-icon"),c.kc("ngModel",e.icon),c.Bb(1),c.kc("svgIcon",e.icon)}}function lt(e,t){if(1&e){const e=c.Ub();c.Tb(0,"mat-accordion",3),c.ac("cdkDropListDropped",(function(t){return c.vc(e),c.ec().reorderMenuItems(t)})),c.Fc(1,ct,54,22,"mat-expansion-panel",4),c.Sb()}if(2&e){const e=t.ngIf;c.Bb(1),c.kc("ngForOf",e.items)}}function dt(e,t){1&e&&(c.Tb(0,"div",27),c.Hc(1,"This menu has no items yet."),c.Sb())}let ut=(()=>{class e{constructor(e,t,i,n){this.menus=e,this.modal=t,this.overlayPanel=i,this.cd=n,this.subscriptions=[]}ngOnDestroy(){this.subscriptions.forEach(e=>{e&&e.unsubscribe()})}reorderMenuItems(e){this.menus.reorderActiveMenuItems(e.previousIndex,e.currentIndex)}toggleMenuItem(e){this.selectedMenuItem=this.selectedMenuItem===e?null:e}confirmMenuItemDeletion(){this.modal.show(Ve.a,{title:"Delete Menu Item",body:"Are you sure you want to delete this menu item?",ok:"Delete"}).afterClosed().subscribe(e=>{e&&(this.menus.removeItem(this.selectedMenuItem),this.selectedMenuItem=null)})}openIconSelector(e,t){this.overlayPanel.open(rt,{position:qe.a,origin:new c.l(e)}).valueChanged().subscribe(e=>{t.icon=e,this.menus.commitChanges(),this.cd.detectChanges()})}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(Ke),c.Nb(ze.a),c.Nb(re.a),c.Nb(c.h))},e.\u0275cmp=c.Hb({type:e,selectors:[["menu-items"]],decls:6,vars:4,consts:[["trans","",1,"title"],["cdkDropList","",3,"cdkDropListDropped",4,"ngIf","ngIfElse"],["noActiveMenu",""],["cdkDropList","",3,"cdkDropListDropped"],["class","mat-elevation-z menu-item-container","cdkDrag","",3,"opened","closed",4,"ngFor","ngForOf"],["cdkDrag","",1,"mat-elevation-z","menu-item-container",3,"opened","closed"],["cdkDragHandle","","svgIcon","drag-handle",1,"drag-handle"],[1,"name"],[1,"many-inputs","menu-item-list"],[1,"input-container"],["trans","",3,"for"],["type","text",3,"ngModel","id","ngModelChange"],[3,"ngModel","id","ngModelChange"],["value","link","trans",""],["value","route","trans",""],["value","page","trans",""],["trans","",3,"ngValue"],["value","auth","trans",""],["value","guest","trans",""],["value","admin","trans",""],["value","_self","trans",""],["value","_blank","trans",""],[1,"input-container","icon-input-container",3,"click"],["iconInput",""],["type","text","readonly","","placeholder","(Optional)","trans-placeholder","",3,"ngModel","id","ngModelChange"],[3,"svgIcon"],["mat-button","","color","warn","trans","",1,"delete-button",3,"click"],["trans","",1,"no-menu-items"]],template:function(e,t){if(1&e&&(c.Tb(0,"div",0),c.Hc(1,"Menu Items"),c.Sb(),c.Fc(2,lt,2,1,"mat-accordion",1),c.fc(3,"async"),c.Fc(4,dt,2,0,"ng-template",null,2,c.Gc)),2&e){const e=c.sc(5);c.Bb(2),c.kc("ngIf",c.gc(3,2,t.menus.activeMenu$))("ngIfElse",e)}},directives:[E.a,n.t,tt.a,Je.d,n.s,tt.c,Je.a,tt.e,tt.f,a.a,Je.b,s.d,s.u,s.x,s.G,s.z,s.J,tt.d,o.b],pipes:[n.b],styles:["[_nghost-%COMP%]{display:block}.title[_ngcontent-%COMP%]{margin:35px 0 5px}.no-menu-items[_ngcontent-%COMP%]{font-size:1.6rem;font-style:italic;color:var(--be-secondary-text);margin:10px 0}.icon-input-container[_ngcontent-%COMP%]{position:relative}.icon-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:35px}.icon-input-container[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{position:absolute;top:36px;left:8px;color:var(--be-secondary-text)}.menu-item-list[_ngcontent-%COMP%]{padding-top:25px}.mat-expansion-panel[_ngcontent-%COMP%]{margin-bottom:10px;border-radius:4px;border:1px solid var(--be-divider-default)}.mat-expansion-panel-header[_ngcontent-%COMP%]{min-height:57px}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-default)}.mat-action-row[_ngcontent-%COMP%]{border:none;padding:0 15px 10px}.drag-handle[_ngcontent-%COMP%]{display:block;color:var(--be-secondary-text);margin-right:8px;cursor:move}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .cdk-drop-list-dragging[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0}),e})();function bt(e,t){if(1&e&&(c.Tb(0,"option",15),c.Hc(1),c.Sb()),2&e){const e=t.$implicit,i=c.ec(2);c.kc("ngValue",e),c.Bb(1),c.Ic(i.getDisplayName(e))}}function ht(e,t){if(1&e){const e=c.Ub();c.Tb(0,"div",4),c.Tb(1,"div",5),c.Tb(2,"div",6),c.Tb(3,"label",7),c.Hc(4,"Menu Name"),c.Sb(),c.Tb(5,"input",8),c.ac("ngModelChange",(function(i){return c.vc(e),t.ngIf.name=i}))("ngModelChange",(function(){return c.vc(e),c.ec().menus.commitChanges()})),c.Sb(),c.Sb(),c.Tb(6,"div",6),c.Tb(7,"label",9),c.Hc(8,"Menu Position"),c.Sb(),c.Tb(9,"select",10),c.ac("ngModelChange",(function(i){return c.vc(e),t.ngIf.position=i}))("ngModelChange",(function(){return c.vc(e),c.ec().menus.commitChanges()})),c.Fc(10,bt,2,2,"option",11),c.Sb(),c.Sb(),c.Sb(),c.Ob(11,"menu-items"),c.Tb(12,"div",12),c.Tb(13,"button",13),c.ac("click",(function(){return c.vc(e),c.ec().confirmMenuDeletion()})),c.Hc(14,"Delete Menu"),c.Sb(),c.Tb(15,"button",14),c.ac("click",(function(){return c.vc(e),c.ec().openAddItemPanel()})),c.Hc(16,"Add Item"),c.Sb(),c.Sb(),c.Sb()}if(2&e){const e=t.ngIf,i=c.ec();c.Bb(5),c.kc("ngModel",e.name),c.Bb(4),c.kc("ngModel",e.position),c.Bb(1),c.kc("ngForOf",i.appearance.config.menus.positions)}}function mt(e,t){if(1&e){const e=c.Ub();c.Tb(0,"div",19),c.ac("click",(function(){c.vc(e);const i=t.$implicit;return c.ec(2).setActiveMenu(i)})),c.Tb(1,"span",20),c.Hc(2),c.Sb(),c.Ob(3,"mat-icon",21),c.Sb()}if(2&e){const e=t.$implicit;c.Bb(2),c.Ic(e.name)}}function pt(e,t){if(1&e){const e=c.Ub();c.Tb(0,"div",16),c.Fc(1,mt,4,1,"div",17),c.fc(2,"async"),c.Tb(3,"div",12),c.Tb(4,"button",18),c.ac("click",(function(){return c.vc(e),c.ec().menus.create()})),c.Hc(5,"Add a Menu"),c.Sb(),c.Sb(),c.Sb()}if(2&e){const e=c.ec();c.Bb(1),c.kc("ngForOf",c.gc(2,1,e.menus.allMenus$))}}const gt=function(e){return["Menus",e]};let ft=(()=>{class e{constructor(e,t,i,n,a,o){this.appearance=e,this.menus=t,this.modal=i,this.settings=n,this.panel=a,this.el=o,this.menus.setFromJson(this.settings.get("menus"))}openAddItemPanel(){const e=qe.a.slice();e[0].offsetX=10,e[1].offsetX=10,this.panel.open(ot,{position:e,origin:this.el,panelClass:"add-menu-item-panel-container"})}openPreviousPanel(){this.menus.activeMenu$.value?this.menus.activeMenu$.next(null):this.appearance.closeActivePanel()}setActiveMenu(e){this.menus.activeMenu$.next(e)}confirmMenuDeletion(){this.modal.show(Ve.a,{title:"Delete Menu",body:"Are you sure you want to delete this menu?",ok:"Delete"}).afterClosed().subscribe(e=>{e&&this.menus.deleteActive()})}getDisplayName(e){return e.replace(/-/g," ")}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(N),c.Nb(Ke),c.Nb(ze.a),c.Nb(F.a),c.Nb(re.a),c.Nb(c.l))},e.\u0275cmp=c.Hb({type:e,selectors:[["menus-appearance-panel"]],decls:6,vars:7,consts:[[3,"path","back"],[1,"appearance-panel-content"],["class","menu-panel",4,"ngIf","ngIfElse"],["allMenuList",""],[1,"menu-panel"],[1,"many-inputs","menu-settings"],[1,"input-container"],["for","menu-name","trans",""],["type","text","id","menu-name",3,"ngModel","ngModelChange"],["for","menu-position","trans",""],["id","menu-position",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"action-buttons"],["mat-button","","color","warn","trans","",3,"click"],["mat-button","","color","accent","trans","",1,"button","flat","add-item-button",3,"click"],[3,"ngValue"],[1,"menus"],["class","menu nav-item",3,"click",4,"ngFor","ngForOf"],["mat-button","","color","accent","trans","",1,"button","primary",3,"click"],[1,"menu","nav-item",3,"click"],[1,"name"],["svgIcon","keyboard-arrow-right",1,"actions"]],template:function(e,t){if(1&e&&(c.Tb(0,"appearance-panel-meta",0),c.ac("back",(function(){return t.openPreviousPanel()})),c.Sb(),c.Tb(1,"div",1),c.Fc(2,ht,17,3,"div",2),c.fc(3,"async"),c.Fc(4,pt,6,3,"ng-template",null,3,c.Gc),c.Sb()),2&e){const e=c.sc(5);c.kc("path",c.oc(5,gt,t.menus.activeMenu$.value&&t.menus.activeMenu$.value.name)),c.Bb(2),c.kc("ngIf",c.gc(3,3,t.menus.activeMenu$))("ngIfElse",e)}},directives:[L,n.t,E.a,s.d,s.u,s.x,s.G,n.s,ut,o.b,s.z,s.J,a.a],pipes:[n.b],styles:["[_nghost-%COMP%]{display:block}.menu-settings[_ngcontent-%COMP%]{margin:10px 0}.menu-settings[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{text-transform:capitalize}.action-buttons[_ngcontent-%COMP%]{text-align:right;margin:10px 0}"],changeDetection:0}),e})();function vt(e,t){if(1&e&&(c.Rb(0),c.Tb(1,"div",3),c.Tb(2,"label",4),c.Hc(3),c.Sb(),c.Ob(4,"textarea",5),c.Sb(),c.Qb()),2&e){const e=t.$implicit;c.Bb(2),c.kc("for",e.key),c.Bb(1),c.Ic(e.name),c.Bb(1),c.kc("id",e.key)("formControlName",e.key)("placeholder",e.defaultValue)}}const kt=function(){return["Seo Settings"]};let xt=(()=>{class e{constructor(e,t){this.editor=e,this.fb=t,this.form=this.fb.group({})}ngOnInit(){this.seoFields=this.editor.defaultSettings.seo_fields,this.seoFields.forEach(e=>{this.form.addControl(e.key,this.fb.control(e.value))}),this.form.valueChanges.subscribe(e=>{this.editor.addChanges(e)})}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(N),c.Nb(s.h))},e.\u0275cmp=c.Hb({type:e,selectors:[["seo-appearance-panel"]],decls:3,vars:4,consts:[[3,"path","back"],[1,"appearance-panel-content","many-inputs",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"input-container"],["trans","",3,"for"],["type","text","rows","2",3,"id","formControlName","placeholder"]],template:function(e,t){1&e&&(c.Tb(0,"appearance-panel-meta",0),c.ac("back",(function(){return t.editor.closeActivePanel()})),c.Sb(),c.Tb(1,"div",1),c.Fc(2,vt,5,5,"ng-container",2),c.Sb()),2&e&&(c.kc("path",c.nc(3,kt)),c.Bb(1),c.kc("formGroup",t.form),c.Bb(1),c.kc("ngForOf",t.seoFields))},directives:[L,s.v,s.m,n.s,E.a,s.d,s.u,s.k],styles:["label[_ngcontent-%COMP%]{text-transform:capitalize}"],changeDetection:0}),e})();var St=i("FtGj"),yt=i("5o4b");const _t=["editor"];function Tt(e,t){1&e&&(c.Tb(0,"p",11),c.Hc(1,"If entering javascript, wrap it with <script><\/script> tag."),c.Sb())}let Ct=(()=>{class e{constructor(e,t,i){this.dialogRef=e,this.data=t,this.lazyLoader=i,this.loading$=new u.a(!1),this.syntaxInvalid$=new u.a(!1)}ngOnInit(){this.initEditor(this.data.contents,this.data.language),this.overrideDialogCloseEvents()}confirm(){this.close(this.editor.getValue())}close(e){this.dialogRef.close(e)}initEditor(e,t="html"){this.loading$.next(!0),this.lazyLoader.loadAsset("js/ace/ace.js",{type:"js"}).then(()=>{this.editor=ace.edit(this.editorEl.nativeElement),this.editor.getSession().setMode("ace/mode/"+t),this.editor.setTheme("ace/theme/chrome"),this.editor.$blockScrolling=1/0,e&&this.editor.setValue(e,1),this.editor.getSession().on("changeAnnotation",()=>{const e=this.editor.getSession().getAnnotations();if(e[0]&&/doctype first/.test(e[0].text))return e.splice(0,1),void this.editor.getSession().setAnnotations(e);const t=this.editor.getSession().getAnnotations().filter(e=>"error"===e.type).length>0;this.syntaxInvalid$.next(t)}),this.loading$.next(!1)})}overrideDialogCloseEvents(){this.dialogRef.disableClose=!0,this.dialogRef.backdropClick().subscribe(()=>{this.close()}),this.dialogRef.keydownEvents().pipe(Object(C.a)(e=>e.keyCode===St.g)).subscribe(()=>this.close())}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(Ie.h),c.Nb(Ie.a),c.Nb(yt.a))},e.\u0275cmp=c.Hb({type:e,selectors:[["code-editor-modal"]],viewQuery:function(e,t){var i;1&e&&c.Bc(_t,!0),2&e&&c.rc(i=c.bc())&&(t.editorEl=i.first)},decls:18,vars:7,consts:[[1,"modal-header"],["mat-dialog-title","","trans","",1,"modal-title"],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],[1,"editor-container"],["class","info","trans","",4,"ngIf"],[1,"editor"],["editor",""],["type","button","mat-button","","trans","",3,"click"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled","click"],[1,"overlay",3,"isVisible"],["trans","",1,"info"]],template:function(e,t){1&e&&(c.Tb(0,"div",0),c.Tb(1,"h2",1),c.Hc(2,"Code Editor"),c.Sb(),c.Tb(3,"button",2),c.ac("click",(function(){return t.close()})),c.Ob(4,"mat-icon",3),c.Sb(),c.Sb(),c.Tb(5,"mat-dialog-content"),c.Tb(6,"div",4),c.Fc(7,Tt,2,0,"p",5),c.Ob(8,"div",6,7),c.Sb(),c.Sb(),c.Tb(10,"mat-dialog-actions"),c.Tb(11,"button",8),c.ac("click",(function(){return t.close()})),c.Hc(12,"Cancel"),c.Sb(),c.Tb(13,"button",9),c.ac("click",(function(){return t.confirm()})),c.fc(14,"async"),c.Hc(15,"Update"),c.Sb(),c.Sb(),c.Ob(16,"loading-indicator",10),c.fc(17,"async")),2&e&&(c.Bb(7),c.kc("ngIf","html"===t.data.language),c.Bb(6),c.kc("disabled",c.gc(14,3,t.syntaxInvalid$)),c.Bb(3),c.kc("isVisible",c.gc(17,5,t.loading$)))},directives:[Ie.i,E.a,a.a,Ie.f,n.t,Ie.c,o.b,Ae.a],pipes:[n.b],styles:["[_nghost-%COMP%]{display:block;width:800px;max-width:100%}.modal-header[_ngcontent-%COMP%]{margin:0 0 15px}.editor[_ngcontent-%COMP%]{min-height:550px;border:1px solid var(--be-divider-default);font-size:1.4rem}.info[_ngcontent-%COMP%]{color:var(--be-secondary-text)}"],changeDetection:0}),e})();const wt=function(){return["Custom Code"]};let Ot=(()=>{class e{constructor(e,t,i,n){this.editor=e,this.fb=t,this.modal=i,this.toast=n,this.form=this.fb.group({"custom-code.css":[""],"custom-code.html":[""]})}ngOnInit(){const e={};Object.keys(this.form.controls).forEach(t=>{e[t]=this.editor.currentValue(t)}),this.form.patchValue(e)}openModal(e){const t="custom-code."+e,i=this.form.value[t]||"";this.modal.open(Ct,{contents:this.form.value[t],language:e}).afterClosed().subscribe(n=>{if(void 0===n||i===n)return;const a={[t]:n};this.form.patchValue(a),this.editor.saveChanges(a).subscribe(()=>{this.addCodeToPreview(e,n),this.toast.open("Custom code saved")})})}addCodeToPreview(e,t){this.editor.postMessage("css"===e?new x(t):new S(t))}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(N),c.Nb(s.h),c.Nb(ze.a),c.Nb(B.b))},e.\u0275cmp=c.Hb({type:e,selectors:[["custom-code-appearance-panel"]],decls:12,vars:2,consts:[[3,"path","back"],[1,"appearance-panel-content"],["type","button",1,"nav-item",3,"click"],["trans","",1,"text"],["trans","",1,"actions"],[1,"nav-item",3,"click"]],template:function(e,t){1&e&&(c.Tb(0,"appearance-panel-meta",0),c.ac("back",(function(){return t.editor.closeActivePanel()})),c.Sb(),c.Tb(1,"div",1),c.Tb(2,"button",2),c.ac("click",(function(){return t.openModal("css")})),c.Tb(3,"span",3),c.Hc(4,"Custom CSS"),c.Sb(),c.Tb(5,"span",4),c.Hc(6,"Modify"),c.Sb(),c.Sb(),c.Tb(7,"button",5),c.ac("click",(function(){return t.openModal("html")})),c.Tb(8,"span",3),c.Hc(9,"Custom HTML & Javascript"),c.Sb(),c.Tb(10,"span",4),c.Hc(11,"Modify"),c.Sb(),c.Sb(),c.Sb()),2&e&&c.kc("path",c.nc(1,wt))},directives:[L,E.a],styles:[".actions[_ngcontent-%COMP%]{color:var(--be-link);font-size:1.3rem}"],changeDetection:0}),e})();const It=["iframe"];function Mt(e,t){1&e&&(c.Tb(0,"span",15),c.Hc(1,"Save"),c.Sb())}function Pt(e,t){1&e&&(c.Tb(0,"span",15),c.Hc(1,"Saved"),c.Sb())}function Ft(e,t){1&e&&c.Ob(0,"general-appearance-panel")}function $t(e,t){1&e&&c.Ob(0,"themes-appearance-panel")}function Ht(e,t){1&e&&c.Ob(0,"menus-appearance-panel")}function Bt(e,t){1&e&&c.Ob(0,"seo-appearance-panel")}function Nt(e,t){1&e&&c.Ob(0,"custom-code-appearance-panel")}function Dt(e,t){}function Et(e,t){1&e&&c.Fc(0,Dt,0,0,"ng-template",20),2&e&&c.kc("cdkPortalOutlet",t.ngIf)}function Vt(e,t){if(1&e&&(c.Rb(0),c.Fc(1,Et,1,1,void 0,19),c.fc(2,"async"),c.Qb()),2&e){const e=c.ec(2);c.Bb(1),c.kc("ngIf",c.gc(2,1,e.panelPortal$))}}function zt(e,t){if(1&e&&(c.Rb(0),c.Rb(1,16),c.Fc(2,Ft,1,0,"general-appearance-panel",17),c.Fc(3,$t,1,0,"themes-appearance-panel",17),c.Fc(4,Ht,1,0,"menus-appearance-panel",17),c.Fc(5,Bt,1,0,"seo-appearance-panel",17),c.Fc(6,Nt,1,0,"custom-code-appearance-panel",17),c.Fc(7,Vt,3,3,"ng-container",18),c.Qb(),c.Qb()),2&e){const e=t.ngIf;c.Bb(1),c.kc("ngSwitch",e.name),c.Bb(1),c.kc("ngSwitchCase","general"),c.Bb(1),c.kc("ngSwitchCase","themes"),c.Bb(1),c.kc("ngSwitchCase","menus"),c.Bb(1),c.kc("ngSwitchCase","seo-settings"),c.Bb(1),c.kc("ngSwitchCase","custom-code")}}const At=function(){return[]},Lt=function(e){return{panel:e}};function Rt(e,t){if(1&e&&(c.Tb(0,"a",23),c.Tb(1,"span",24),c.Hc(2),c.Sb(),c.Ob(3,"mat-icon",25),c.Sb()),2&e){const e=t.$implicit,i=c.ec(2);c.kc("routerLink",c.nc(3,At))("queryParams",c.oc(4,Lt,i.slugify(e.name))),c.Bb(2),c.Ic(i.viewName(e.name))}}function jt(e,t){if(1&e&&(c.Tb(0,"div",21),c.Fc(1,Rt,4,6,"a",22),c.Sb()),2&e){const e=c.ec();c.Bb(1),c.kc("ngForOf",e.editor.config.sections)}}let Gt=(()=>{class e{constructor(e,t,i,n,a){this.editor=e,this.router=t,this.route=i,this.breakpoints=n,this.config=a,this.leftColumnIsHidden=!1,this.panelPortal$=this.editor.activePanel$.pipe(Object(b.a)(e=>e&&e.component?new _e.d(e.component):null))}ngOnInit(){this.leftColumnIsHidden=this.breakpoints.isMobile$.value,this.editor.init(this.iframe.nativeElement,this.route.snapshot.data.defaultSettings,this.config),this.routerSub=this.route.queryParams.subscribe(e=>{this.editor.openPanel(e.panel)})}ngOnDestroy(){this.routerSub&&this.routerSub.unsubscribe()}closeEditor(){this.router.navigate(["admin"])}slugify(e){return Object(I.a)(e)}viewName(e){return e.replace("-"," ")}toggleLeftSidebar(){this.leftColumnIsHidden=!this.leftColumnIsHidden}}return e.\u0275fac=function(t){return new(t||e)(c.Nb(N),c.Nb($.d),c.Nb($.a),c.Nb(Te.a),c.Nb(l,8))},e.\u0275cmp=c.Hb({type:e,selectors:[["appearance"]],viewQuery:function(e,t){var i;1&e&&c.Bc(It,!0),2&e&&c.rc(i=c.bc())&&(t.iframe=i.first)},decls:25,vars:17,consts:[[1,"sidebar",3,"opened","mode"],[1,"header"],[1,"back-button",3,"click"],["svgIcon","close"],["trans","",1,"title"],["mat-raised-button","","color","accent",1,"button","primary","save-button",3,"disabled","click"],["trans","",4,"ngIf","ngIfElse"],["saved",""],[4,"ngIf","ngIfElse"],["navigation",""],[1,"live-preview"],["src","about:blank"],["iframe",""],["mat-fab","",1,"sidebar-toggle-button",3,"click"],["svgIcon","edit"],["trans",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],[3,"cdkPortalOutlet"],[1,"root-navigation"],["class","nav-item",3,"routerLink","queryParams",4,"ngFor","ngForOf"],[1,"nav-item",3,"routerLink","queryParams"],["trans","",1,"text"],["svgIcon","keyboard-arrow-right",1,"actions"]],template:function(e,t){if(1&e&&(c.Tb(0,"mat-sidenav-container"),c.Tb(1,"mat-sidenav",0),c.fc(2,"async"),c.Tb(3,"div",1),c.Tb(4,"div",2),c.ac("click",(function(){return t.closeEditor()})),c.Ob(5,"mat-icon",3),c.Sb(),c.Tb(6,"div",4),c.Hc(7,"Appearance Editor"),c.Sb(),c.Tb(8,"button",5),c.ac("click",(function(){return t.editor.saveChanges()})),c.fc(9,"async"),c.fc(10,"async"),c.Fc(11,Mt,2,0,"span",6),c.fc(12,"async"),c.Fc(13,Pt,2,0,"ng-template",null,7,c.Gc),c.Sb(),c.Sb(),c.Fc(15,zt,8,6,"ng-container",8),c.fc(16,"async"),c.Fc(17,jt,2,1,"ng-template",null,9,c.Gc),c.Sb(),c.Tb(19,"mat-sidenav-content"),c.Tb(20,"div",10),c.Ob(21,"iframe",11,12),c.Sb(),c.Sb(),c.Sb(),c.Tb(23,"button",13),c.ac("click",(function(){return t.toggleLeftSidebar()})),c.Ob(24,"mat-icon",14),c.Sb()),2&e){const e=c.sc(14),i=c.sc(18);c.Bb(1),c.kc("opened",!t.leftColumnIsHidden)("mode",c.gc(2,7,t.breakpoints.isMobile$)?"over":"side"),c.Bb(7),c.kc("disabled",!c.gc(9,9,t.editor.changes$)||c.gc(10,11,t.editor.loading$)),c.Bb(3),c.kc("ngIf",c.gc(12,13,t.editor.changes$))("ngIfElse",e),c.Bb(4),c.kc("ngIf",c.gc(16,15,t.editor.activePanel$))("ngIfElse",i)}},directives:[Ce.e,Ce.d,a.a,E.a,o.b,n.t,Ce.f,n.x,n.y,n.z,Oe,Xe,ft,xt,Ot,_e.c,n.s,$.g],pipes:[n.b],styles:[".mat-sidenav-container[_ngcontent-%COMP%]{height:100vh}.sidebar-toggle-button[_ngcontent-%COMP%]{display:none;position:fixed;bottom:15px;right:15px;z-index:3}.sidebar[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);width:330px;background-color:var(--be-background-alternative)}.sidebar[_ngcontent-%COMP%] .root-navigation[_ngcontent-%COMP%]{padding:10px}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:10px;border-bottom:1px solid var(--be-divider-default);height:50px}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding-left:10px;font-size:1.7rem;font-weight:300}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]{margin-left:auto;max-height:36px;box-shadow:none}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]:disabled{cursor:default}.live-preview[_ngcontent-%COMP%]{display:flex;height:100%;justify-content:center;align-items:center;flex:1 1 auto;position:relative}.live-preview[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{border:none;width:100%;height:100%}@media screen and (max-width:768px){.sidebar-toggle-button[_ngcontent-%COMP%]{display:block}}"],changeDetection:0}),e})(),Ut=(()=>{class e{constructor(e,t){this.editor=e,this.modal=t}canDeactivate(){return!this.editor.changes$.value||this.modal.show(Ve.a,{title:"Close Appearance Editor",body:"Are you sure you want to close appearance editor?",bodyBold:"All unsaved changes will be lost.",ok:"Close",cancel:"Stay"}).afterClosed()}}return e.\u0275fac=function(t){return new(t||e)(c.Xb(N),c.Xb(ze.a))},e.\u0275prov=c.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Xt=i("0QyJ"),qt=i("JIr8"),Wt=i("5+tZ"),Jt=i("EY2u"),Yt=i("LRne");const Kt=[{path:"",component:Gt,data:{permissions:["appearance.update"]},resolve:{defaultSettings:(()=>{class e{constructor(e,t){this.router=e,this.http=t}resolve(e,t){return this.http.get("admin/appearance/values").pipe(Object(qt.a)(()=>(this.router.navigate(["/admin"]),Jt.a)),Object(Wt.a)(e=>e?Object(Yt.a)(e):(this.router.navigate(["/admin"]),Jt.a)))}}return e.\u0275fac=function(t){return new(t||e)(c.Xb($.d),c.Xb(H.a))},e.\u0275prov=c.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},canActivate:[Xt.a],canDeactivate:[Ut],children:[{path:""},{path:":panel"},{path:":panel/:activeItem"}]}];let Qt=(()=>{class e{}return e.\u0275mod=c.Lb({type:e}),e.\u0275inj=c.Kb({factory:function(t){return new(t||e)},imports:[[$.h.forChild(Kt)],$.h]}),e})();var Zt=i("X3pI");let ei=(()=>{class e{}return e.\u0275mod=c.Lb({type:e}),e.\u0275inj=c.Kb({factory:function(t){return new(t||e)},imports:[[n.c,Zt.a,o.c,a.b]]}),e})();var ti=i("MKyN");let ii=(()=>{class e{}return e.\u0275mod=c.Lb({type:e}),e.\u0275inj=c.Kb({factory:function(t){return new(t||e)},providers:[{provide:l,useValue:d,multi:!0}],imports:[[Qt,n.c,s.o,s.E,ei,Se.a,ti.a,Zt.a,ye,J.b,K.b,a.b,o.c,Ie.g,tt.b,Je.e,Ce.g,_e.h,Pe.b]]}),e})(),ni=(()=>{class e{}return e.\u0275mod=c.Lb({type:e}),e.\u0275inj=c.Kb({factory:function(t){return new(t||e)},providers:[{provide:l,useValue:xe,multi:!0}],imports:[[n.c,ii,s.E,ye,Se.a,a.b,o.c,Se.a,r.b]]}),e})()},WvtK:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));const n=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:5},{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:5}]}}]); //# sourceMappingURL=10-es2015.26af29b63e30c2349254.js.map