����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 : |
!function(){function e(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,a=!1,o=void 0;try{for(var r,c=e[Symbol.iterator]();!(i=(r=c.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(s){a=!0,o=s}finally{try{i||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=u(e);if(t){var a=u(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"5RNC":function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return C}));var i=n("ofXK"),a=n("fXoL"),o=n("FKr1"),l=n("8LU1"),u=n("FtGj"),b=n("3Pt+"),h=n("R1ws"),m=n("nLfN"),p=n("quSY"),f=n("u47x"),g=n("cH1L"),v=["sliderWrapper"],k=Object(m.f)({passive:!1}),y={provide:b.s,useExisting:Object(a.V)((function(){return _})),multi:!0},S=function e(){d(this,e)},x=Object(o.z)(Object(o.v)(Object(o.x)((function e(t){d(this,e),this._elementRef=t})),"accent")),_=function(){var e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,e);var t=s(n);function n(e,i,o,r,c,s,l,u){var b;return d(this,n),(b=t.call(this,e))._focusMonitor=i,b._changeDetectorRef=o,b._dir=r,b._ngZone=s,b._animationMode=u,b._invert=!1,b._max=100,b._min=0,b._step=1,b._thumbLabel=!1,b._tickInterval=0,b._value=null,b._vertical=!1,b.change=new a.n,b.input=new a.n,b.valueChange=new a.n,b.onTouched=function(){},b._percent=0,b._isSliding=!1,b._isActive=!1,b._tickIntervalPercent=0,b._sliderDimensions=null,b._controlValueAccessorChangeFn=function(){},b._dirChangeSubscription=p.a.EMPTY,b._pointerDown=function(e){b.disabled||b._isSliding||!T(e)&&0!==e.button||b._ngZone.run((function(){var t=b.value,n=w(e);b._isSliding=!0,b._lastPointerEvent=e,e.preventDefault(),b._focusHostElement(),b._onMouseenter(),b._bindGlobalEvents(e),b._focusHostElement(),b._updateValueFromPosition(n),b._valueOnSlideStart=b.value,b._pointerPositionOnStart=n,t!=b.value&&(b._emitInputEvent(),b._emitChangeEvent())}))},b._pointerMove=function(e){if(b._isSliding){e.preventDefault();var t=b.value;b._lastPointerEvent=e,b._updateValueFromPosition(w(e)),t!=b.value&&b._emitInputEvent()}},b._pointerUp=function(e){if(b._isSliding){var t=b._pointerPositionOnStart,n=w(e);e.preventDefault(),b._removeGlobalEvents(),b._valueOnSlideStart=b._pointerPositionOnStart=b._lastPointerEvent=null,b._isSliding=!1,b._valueOnSlideStart==b.value||b.disabled||!t||t.x===n.x&&t.y===n.y||b._emitChangeEvent()}},b._windowBlur=function(){b._lastPointerEvent&&b._pointerUp(b._lastPointerEvent)},b._document=l,b.tabIndex=parseInt(c)||0,s.runOutsideAngular((function(){var t=e.nativeElement;t.addEventListener("mousedown",b._pointerDown,k),t.addEventListener("touchstart",b._pointerDown,k)})),b}return r(n,[{key:"focus",value:function(e){this._focusHostElement(e)}},{key:"blur",value:function(){this._blurHostElement()}},{key:"_shouldInvertAxis",value:function(){return this.vertical?!this.invert:this.invert}},{key:"_isMinValue",value:function(){return 0===this.percent}},{key:"_getThumbGap",value:function(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}},{key:"_getTrackBackgroundStyles",value:function(){var e=this.vertical?"1, ".concat(1-this.percent,", 1"):1-this.percent+", 1, 1";return{transform:"translate".concat(this.vertical?"Y":"X","(").concat(this._shouldInvertMouseCoords()?"-":"").concat(this._getThumbGap(),"px) scale3d(").concat(e,")")}}},{key:"_getTrackFillStyles",value:function(){var e=this.percent,t=this.vertical?"1, ".concat(e,", 1"):e+", 1, 1";return{transform:"translate".concat(this.vertical?"Y":"X","(").concat(this._shouldInvertMouseCoords()?"":"-").concat(this._getThumbGap(),"px) scale3d(").concat(t,")"),display:0===e?"none":""}}},{key:"_getTicksContainerStyles",value:function(){return{transform:"translate".concat(this.vertical?"Y":"X","(").concat(this.vertical||"rtl"!=this._getDirection()?"-":"").concat(this._tickIntervalPercent/2*100,"%)")}}},{key:"_getTicksStyles",value:function(){var e=100*this._tickIntervalPercent,t={backgroundSize:this.vertical?"2px ".concat(e,"%"):e+"% 2px",transform:"translateZ(0) translate".concat(this.vertical?"Y":"X","(").concat(this.vertical||"rtl"!=this._getDirection()?"":"-").concat(e/2,"%)").concat(this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)")};if(this._isMinValue()&&this._getThumbGap()){var n=this._shouldInvertAxis();t["padding"+(this.vertical?n?"Bottom":"Top":n?"Right":"Left")]=this._getThumbGap()+"px"}return t}},{key:"_getThumbContainerStyles",value:function(){var e=this._shouldInvertAxis();return{transform:"translate".concat(this.vertical?"Y":"X","(-").concat(100*(("rtl"!=this._getDirection()||this.vertical?e:!e)?this.percent:1-this.percent),"%)")}}},{key:"_shouldInvertMouseCoords",value:function(){var e=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?e:!e}},{key:"_getDirection",value:function(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){e._isActive=!!t&&"keyboard"!==t,e._changeDetectorRef.detectChanges()})),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe((function(){e._changeDetectorRef.markForCheck()})))}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;e.removeEventListener("mousedown",this._pointerDown,k),e.removeEventListener("touchstart",this._pointerDown,k),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}},{key:"_onMouseenter",value:function(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}},{key:"_onFocus",value:function(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}},{key:"_onBlur",value:function(){this.onTouched()}},{key:"_onKeydown",value:function(e){if(!this.disabled&&!Object(u.s)(e)){var t=this.value;switch(e.keyCode){case u.l:this._increment(10);break;case u.k:this._increment(-10);break;case u.e:this.value=this.max;break;case u.h:this.value=this.min;break;case u.i:this._increment("rtl"==this._getDirection()?1:-1);break;case u.p:this._increment(1);break;case u.m:this._increment("rtl"==this._getDirection()?-1:1);break;case u.d:this._increment(-1);break;default:return}t!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,e.preventDefault()}}},{key:"_onKeyup",value:function(){this._isSliding=!1}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_bindGlobalEvents",value:function(e){var t=this._document,n=T(e),i=n?"touchend":"mouseup";t.addEventListener(n?"touchmove":"mousemove",this._pointerMove,k),t.addEventListener(i,this._pointerUp,k),n&&t.addEventListener("touchcancel",this._pointerUp,k);var a=this._getWindow();void 0!==a&&a&&a.addEventListener("blur",this._windowBlur)}},{key:"_removeGlobalEvents",value:function(){var e=this._document;e.removeEventListener("mousemove",this._pointerMove,k),e.removeEventListener("mouseup",this._pointerUp,k),e.removeEventListener("touchmove",this._pointerMove,k),e.removeEventListener("touchend",this._pointerUp,k),e.removeEventListener("touchcancel",this._pointerUp,k);var t=this._getWindow();void 0!==t&&t&&t.removeEventListener("blur",this._windowBlur)}},{key:"_increment",value:function(e){this.value=this._clamp((this.value||0)+this.step*e,this.min,this.max)}},{key:"_updateValueFromPosition",value:function(e){if(this._sliderDimensions){var 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{var n=this._calculateValue(t),i=Math.round((n-this.min)/this.step)*this.step+this.min;this.value=this._clamp(i,this.min,this.max)}}}},{key:"_emitChangeEvent",value:function(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}},{key:"_emitInputEvent",value:function(){this.input.emit(this._createChangeEvent())}},{key:"_updateTickIntervalPercent",value:function(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){var 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)}},{key:"_createChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.value,t=new S;return t.source=this,t.value=e,t}},{key:"_calculatePercentage",value:function(e){return((e||0)-this.min)/(this.max-this.min)}},{key:"_calculateValue",value:function(e){return this.min+e*(this.max-this.min)}},{key:"_clamp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(t,Math.min(e,n))}},{key:"_getSliderDimensions",value:function(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}},{key:"_focusHostElement",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_blurHostElement",value:function(){this._elementRef.nativeElement.blur()}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"invert",get:function(){return this._invert},set:function(e){this._invert=Object(l.c)(e)}},{key:"max",get:function(){return this._max},set:function(e){this._max=Object(l.f)(e,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}},{key:"min",get:function(){return this._min},set:function(e){this._min=Object(l.f)(e,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}},{key:"step",get:function(){return this._step},set:function(e){this._step=Object(l.f)(e,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}},{key:"thumbLabel",get:function(){return this._thumbLabel},set:function(e){this._thumbLabel=Object(l.c)(e)}},{key:"tickInterval",get:function(){return this._tickInterval},set:function(e){this._tickInterval="auto"===e?"auto":"number"==typeof e||"string"==typeof e?Object(l.f)(e,this._tickInterval):0}},{key:"value",get:function(){return null===this._value&&(this.value=this._min),this._value},set:function(e){if(e!==this._value){var t=Object(l.f)(e);this._roundToDecimal&&(t=parseFloat(t.toFixed(this._roundToDecimal))),this._value=t,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}},{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=Object(l.c)(e)}},{key:"displayValue",get:function(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}},{key:"percent",get:function(){return this._clamp(this._percent)}}]),n}(x);return e.\u0275fac=function(t){return new(t||e)(a.Nb(a.l),a.Nb(f.h),a.Nb(a.h),a.Nb(g.c,8),a.Yb("tabindex"),a.Nb(a.A),a.Nb(i.e),a.Nb(h.a,8))},e.\u0275cmp=a.Hb({type:e,selectors:[["mat-slider"]],viewQuery:function(e,t){var n;1&e&&a.Nc(v,!0),2&e&&a.rc(n=a.bc())&&(t._sliderWrapper=n.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([y]),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:[i.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 T(e){return"t"===e.type[0]}function w(e){var t=T(e)?e.touches[0]||e.changedTouches[0]:e;return{x:t.clientX,y:t.clientY}}var C=function(){var e=function e(){d(this,e)};return e.\u0275mod=a.Lb({type:e}),e.\u0275inj=a.Kb({factory:function(t){return new(t||e)},imports:[[i.c,o.h],o.h]}),e}()},Eh8b:function(n,i,o){"use strict";o.r(i),o.d(i,"AppAppearanceModule",(function(){return En}));var c,s=o("ofXK"),l=o("NFeN"),u=o("bTqV"),b=o("3Pt+"),h=o("5RNC"),m=o("fXoL"),p=new m.r("APPEARANCE_EDITOR_CONFIG"),f={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}]},g=o("2Vo4"),v=o("lJxs"),k=o("hLX6"),y=o("fKqa"),S=function e(t,n){d(this,e),this.route=t,this.queryParams=n,this.type=y.a.Navigate},x=function e(t,n){d(this,e),this.key=t,this.value=n,this.type=y.a.SetConfig},_=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.selector=t,this.index=n,this.type=y.a.Select},T=function e(){d(this,e),this.type=y.a.Deselect},w=function e(t,n){d(this,e),this.key=t,this.value=n,this.type=y.a.SetColors},C=function e(t){d(this,e),this.content=t,this.type=y.a.SetCustomCss},O=function e(t){d(this,e),this.content=t,this.type=y.a.SetCustomHtml},I=o("LFZc"),M=o("jtHE"),P=o("xgIS"),F=o("pLZG"),$=o("nYR2"),H=o("w1tV"),B=o("WAq7"),N=o("PE4B"),D=o.n(N),E=o("kmQS"),V=o("tyNb"),j=o("LRXf"),A=o("i2dy"),R=((c=function(){function e(t,n,i,a){d(this,e),this.settings=t,this.router=n,this.http=i,this.toast=a,this.activePanel$=new g.a(null),this.defaultSettings={},this.initiated$=new M.a(1),this.loading$=new g.a(!1),this.changes$=new g.a(null)}return r(e,[{key:"addChanges",value:function(e){this.changes$.next(Object.assign(Object.assign({},this.changes$.value),e))}},{key:"openPanel",value:function(e){var t=this.config.sections.find((function(t){return Object(B.a)(t.name)===e}));this.activePanel$.next(t),this.navigate(t)}},{key:"init",value:function(e,t,n){var i=this;return Object(P.a)(window,"message").pipe(Object(F.a)((function(e){return e.data===I.a&&new URL(e.origin).hostname===window.location.hostname}))).subscribe((function(){i.initiated$.next(!0),i.initiated$.complete(),i.activePanel$.value&&i.navigate(i.activePanel$.value)})),t.forEach((function(e){"env"===e.name?i.defaultSettings=Object.assign(Object.assign({},i.defaultSettings),e.value):i.defaultSettings[e.name]=e.value})),this.initConfig(n),this.initIframe(e),this.initiated$}},{key:"saveChanges",value:function(e){var t=this;e&&this.addChanges(e),this.loading$.next(!0);var n=(this.saveRequest?this.saveRequest:function(e){return t.http.post("admin/appearance",e)})(this.changes$.value).pipe(Object($.a)((function(){return t.loading$.next(!1)})),Object(H.a)());return n.subscribe((function(){t.changes$.next(null),t.toast.open("Appearance saved")})),n}},{key:"setSaveRequest",value:function(e){this.saveRequest=e}},{key:"closeActivePanel",value:function(){this.router.navigate(["/admin/appearance"])}},{key:"navigate",value:function(e){this.postMessage(new S((null==e?void 0:e.route)||this.config.defaultRoute,null==e?void 0:e.queryParams))}},{key:"setConfig",value:function(e,t){this.postMessage(new x(e,t))}},{key:"selectNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e&&this.postMessage(new _(e,t))}},{key:"deselectNode",value:function(){this.postMessage(new T)}},{key:"postMessage",value:function(e){this.previewWindow.postMessage(e,"*")}},{key:"currentValue",value:function(e){return e.startsWith("env.")||e.startsWith("custom-code.")?this.defaultSettings[e]:this.settings.get(e)}},{key:"initConfig",value:function(e){var t=D.a.all(e);t.sections=t.sections.sort((function(e,t){return e.position>t.position?1:-1})),t.defaultRoute||(t.defaultRoute="/"),this.config=t}},{key:"initIframe",value:function(e){var t=this.settings.getBaseUrl()+this.config.defaultRoute+"?be-preview-mode="+I.a;e.src=function(e){return e.replace(/([^:]\/)\/+/g,"$1")}(t),this.previewWindow=e.contentWindow}}]),e}()).\u0275fac=function(e){return new(e||c)(m.Xb(E.a),m.Xb(V.d),m.Xb(j.a),m.Xb(A.b))},c.\u0275prov=m.Jb({token:c,factory:c.\u0275fac,providedIn:"root"}),c),z=o("Wf9w"),L=o("Rd8u");function G(e,t){1&e&&m.Ob(0,"mat-icon",9)}function U(e,t){if(1&e&&(m.Tb(0,"span"),m.Fc(1,G,1,0,"mat-icon",7),m.Tb(2,"span",8),m.Hc(3),m.Sb(),m.Sb()),2&e){var n=m.ec(),i=n.first,a=n.last,o=n.$implicit,r=m.ec();m.Bb(1),m.kc("ngIf",!i),m.Bb(1),m.Fb("last",a),m.Bb(1),m.Ic(r.viewName(o))}}function X(e,t){if(1&e&&(m.Rb(0),m.Fc(1,U,4,4,"span",6),m.Qb()),2&e){var n=t.$implicit;m.Bb(1),m.kc("ngIf",n)}}var q,W,J=((W=function(){function e(){d(this,e),this.path=[],this.back=new m.n}return r(e,[{key:"viewName",value:function(e){return Object(z.a)(e).replace(/_/g," ")}}]),e}()).\u0275fac=function(e){return new(e||W)},W.\u0275cmp=m.Hb({type:W,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&&(m.Tb(0,"div",0),m.ac("click",(function(){return t.back.emit()})),m.Ob(1,"mat-icon",1),m.Sb(),m.Tb(2,"div",2),m.Tb(3,"div",3),m.Hc(4,"Customizing"),m.Sb(),m.Tb(5,"div",4),m.Fc(6,X,2,1,"ng-container",5),m.Sb(),m.Sb()),2&e&&(m.Bb(6),m.kc("ngForOf",t.path))},directives:[l.a,L.a,s.s,s.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}),W),Y=((q=function(){function e(t,n){d(this,e),this.el=t,this.editor=n}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.el.nativeElement.addEventListener("focus",(function(){e.editor.selectNode(e.selector)})),this.el.nativeElement.addEventListener("blur",(function(){e.editor.deselectNode()}))}}]),e}()).\u0275fac=function(e){return new(e||q)(m.Nb(m.l),m.Nb(R))},q.\u0275dir=m.Ib({type:q,selectors:[["","highlightInPreview",""]],inputs:{selector:["highlightInPreview","selector"]}}),q),K=o("h586"),Q=o("Lm4C"),Z=o("QeDF"),ee=o("oJgS"),te=o("W5HX"),ne=o("8cGs"),ie=o("STbY"),ae=o("gA0O"),oe=o("bv9b");function re(e,t){1&e&&m.Ob(0,"image-or-icon",11),2&e&&m.kc("src",t.ngIf)}function ce(e,t){1&e&&(m.Tb(0,"div",12),m.Ob(1,"mat-icon",13),m.Tb(2,"span",14),m.Hc(3,"Upload"),m.Sb(),m.Sb())}function se(e,t){if(1&e){var n=m.Ub();m.Tb(0,"div",15),m.ac("click",(function(){return m.vc(n),m.ec().remove()})),m.Hc(1,"Remove"),m.Sb()}}function le(e,t){if(1&e){var n=m.Ub();m.Tb(0,"div",15),m.ac("click",(function(){return m.vc(n),m.ec().useDefault()})),m.Hc(1,"Use Default"),m.Sb()}}function ue(e,t){1&e&&m.Ob(0,"mat-progress-bar",16)}var de,be,he=["*"],me=((de=function(){function e(t,n,i,a){d(this,e),this.editor=t,this.uploadQueue=n,this.validator=i,this.settings=a,this.image$=new g.a(null),this.loading$=new g.a(!1),this.validator.showToast=!0}return r(e,[{key:"openModal",value:function(){var e=this,t={uri:this.backendUri||te.a.Image,httpParams:{diskPrefix:this.diskPrefix},validator:this.validator};Object(Q.a)({types:[Z.a.image]}).then((function(n){e.loading$.next(!0),e.uploadQueue.start(n,t).pipe(Object($.a)((function(){return e.loading$.next(!1)}))).subscribe((function(t){e.updateValue(t.fileEntry.url)}))}))}},{key:"remove",value:function(){this.updateValue(null)}},{key:"useDefault",value:function(){this.updateValue(this.defaultValue)}},{key:"updateValue",value:function(e){this.propagateChange(e),this.image$.next(e+"?v="+Object(ee.a)(8))}},{key:"writeValue",value:function(e){this.image$.next(e)}},{key:"registerOnChange",value:function(e){this.propagateChange=e}},{key:"registerOnTouched",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||de)(m.Nb(R),m.Nb(K.a),m.Nb(ne.a),m.Nb(E.a))},de.\u0275cmp=m.Hb({type:de,selectors:[["appearance-image-input"]],hostAttrs:["tabindex","0"],inputs:{defaultValue:"defaultValue",backendUri:"backendUri",diskPrefix:"diskPrefix"},features:[m.Ab([K.a,{provide:b.s,useExisting:de,multi:!0}])],ngContentSelectors:he,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&&(m.jc(),m.Tb(0,"div",0),m.ac("click",(function(){return t.openModal()})),m.Tb(1,"div",1),m.ic(2),m.Sb(),m.Tb(3,"div",2),m.Fc(4,re,1,1,"image-or-icon",3),m.fc(5,"async"),m.Fc(6,ce,4,0,"ng-template",null,4,m.Gc),m.Tb(8,"div",5),m.Tb(9,"button",6),m.ac("click",(function(e){return e.stopPropagation()})),m.Ob(10,"mat-icon",7),m.Sb(),m.Tb(11,"mat-menu",null,8),m.Fc(13,se,2,0,"div",9),m.fc(14,"async"),m.Fc(15,le,2,0,"div",9),m.Sb(),m.Sb(),m.Sb(),m.Sb(),m.Fc(16,ue,1,0,"mat-progress-bar",10),m.fc(17,"async")),2&e){var n=m.sc(7),i=m.sc(12);m.Bb(4),m.kc("ngIf",m.gc(5,6,t.image$))("ngIfElse",n),m.Bb(5),m.kc("matMenuTriggerFor",i),m.Bb(4),m.kc("ngIf",m.gc(14,8,t.image$)),m.Bb(2),m.kc("ngIf",t.defaultValue),m.Bb(1),m.kc("ngIf",m.gc(17,10,t.loading$))}},directives:[L.a,s.t,ie.c,l.a,ie.d,ae.a,ie.a,oe.a],pipes:[s.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}),de),pe=o("mrSG"),fe=o("JYI4"),ge=o("dz5c"),ve=["*"],ke=((be=function(){function e(t){d(this,e),this.overlayPanel=t,this.color$=new g.a(null)}return r(e,[{key:"ngOnDestroy",value:function(){this.pickerSub&&this.pickerSub.unsubscribe()}},{key:"writeValue",value:function(e){this.color$.next(e)}},{key:"registerOnChange",value:function(e){this.propagateChange=e}},{key:"registerOnTouched",value:function(){}},{key:"openColorPicker",value:function(e){return Object(pe.a)(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,i,a=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.e(1).then(o.bind(null,"0PT2"));case 2:n=t.sent,i=n.BeColorPickerModule,this.pickerSub=this.overlayPanel.open(i.components.panel,{origin:new m.l(e.target),position:fe.a,data:{color:this.color$.value}}).valueChanged().subscribe((function(e){a.color$.next(e),a.propagateChange(a.color$.value)}));case 5:case"end":return t.stop()}}),t,this)})))}}]),e}()).\u0275fac=function(e){return new(e||be)(m.Nb(ge.a))},be.\u0275cmp=m.Hb({type:be,selectors:[["color-picker-input"]],features:[m.Ab([{provide:b.s,useExisting:be,multi:!0}])],ngContentSelectors:ve,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&&(m.jc(),m.Tb(0,"button",0),m.ac("click",(function(e){return t.openColorPicker(e)})),m.Tb(1,"mat-icon",1),m.fc(2,"async"),m.Sb(),m.Tb(3,"span",2),m.ic(4),m.Sb(),m.Tb(5,"span",3),m.Hc(6,"Change"),m.Sb(),m.Sb()),2&e&&(m.Bb(1),m.Cc("color",m.gc(2,2,t.color$)))},directives:[l.a,L.a],pipes:[s.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}),be),ye=o("zW5C");function Se(e,t){if(1&e){var n=m.Ub();m.Tb(0,"div",9),m.Tb(1,"div",10),m.Tb(2,"div",11),m.Hc(3),m.fc(4,"trans"),m.Sb(),m.Tb(5,"button",12),m.ac("click",(function(){m.vc(n);var e=t.index;return m.ec(3).removeFeature("primary",e)})),m.Ob(6,"mat-icon",13),m.Sb(),m.Sb(),m.Tb(7,"div",14),m.Tb(8,"label",15),m.Hc(9,"Title"),m.Sb(),m.Ob(10,"input",16),m.Sb(),m.Tb(11,"div",14),m.Tb(12,"label",15),m.Hc(13,"Subtitle"),m.Sb(),m.Ob(14,"textarea",17),m.Sb(),m.Tb(15,"appearance-image-input",18),m.Hc(16," Image "),m.Sb(),m.Sb()}if(2&e){var i=t.$implicit,a=t.index,o=m.ec(3);m.kc("formGroup",i),m.Bb(3),m.Kc("",m.gc(4,13,"Feature")," #",a+1,""),m.Bb(5),m.kc("for","primary."+a+".title"),m.Bb(2),m.mc("highlightInPreview",".inline-feature:nth-child(",a+1,") h3"),m.kc("id","primary."+a+".title")("placeholder",o.defaultValue("primaryFeatures."+a+".title")),m.Bb(2),m.kc("for","primary."+a+".subtitle"),m.Bb(2),m.mc("highlightInPreview",".inline-feature:nth-child(",a+1,") p"),m.kc("id","primary."+a+".subtitle")("placeholder",o.defaultValue("primaryFeatures."+a+".subtitle")),m.Bb(1),m.mc("highlightInPreview",".inline-feature:nth-child(",a+1,") img"),m.kc("defaultValue",o.defaultValue("primaryFeatures."+a+".image"))}}function xe(e,t){if(1&e){var n=m.Ub();m.Tb(0,"button",19),m.ac("click",(function(){return m.vc(n),m.ec(3).addFeature("primary")})),m.Hc(1,"Add"),m.Sb()}}function _e(e,t){if(1&e&&(m.Rb(0),m.Fc(1,Se,17,15,"div",7),m.Fc(2,xe,2,0,"button",8),m.Qb()),2&e){var n=m.ec(2);m.Bb(1),m.kc("ngForOf",n.primaryArray().controls),m.Bb(1),m.kc("ngIf",n.primaryArray().length<3)}}function Te(e,t){if(1&e){var n=m.Ub();m.Tb(0,"div",9),m.Tb(1,"div",10),m.Tb(2,"div",11),m.Hc(3),m.fc(4,"trans"),m.Sb(),m.Tb(5,"button",12),m.ac("click",(function(){m.vc(n);var e=t.index;return m.ec(3).removeFeature("secondary",e)})),m.Ob(6,"mat-icon",13),m.Sb(),m.Sb(),m.Tb(7,"div",14),m.Tb(8,"label",15),m.Hc(9,"Title"),m.Sb(),m.Ob(10,"input",16),m.Sb(),m.Tb(11,"div",14),m.Tb(12,"label",15),m.Hc(13,"Subtitle"),m.Sb(),m.Ob(14,"input",20),m.Sb(),m.Tb(15,"div",14),m.Tb(16,"label",15),m.Hc(17,"Description"),m.Sb(),m.Ob(18,"textarea",21),m.Sb(),m.Tb(19,"appearance-image-input",22),m.Hc(20,"Image "),m.Sb(),m.Sb()}if(2&e){var i=t.$implicit,a=t.index,o=m.ec(3);m.kc("formGroup",i),m.Bb(3),m.Kc("",m.gc(4,17,"Feature")," #",a+1,""),m.Bb(5),m.kc("for","secondary."+a+".title"),m.Bb(2),m.mc("highlightInPreview",".big-feature:nth-child(",a+1,") h2"),m.kc("id","secondary."+a+".title")("placeholder",o.defaultValue("secondaryFeatures."+a+".title")),m.Bb(2),m.kc("for","secondary."+a+".subtitle"),m.Bb(2),m.mc("highlightInPreview",".big-feature:nth-child(",a+1,") small"),m.kc("id","secondary."+a+".subtitle")("placeholder",o.defaultValue("secondaryFeatures."+a+".subtitle")),m.Bb(2),m.kc("for","secondary."+a+".description"),m.Bb(2),m.mc("highlightInPreview",".big-feature:nth-child(",a+1,") p"),m.kc("id","secondary."+a+".description")("placeholder",o.defaultValue("secondaryFeatures."+a+".description")),m.Bb(1),m.mc("highlightInPreview",".big-feature:nth-child(",a+1,") img"),m.kc("defaultValue",o.defaultValue("secondaryFeatures."+a+".image"))}}function we(e,t){if(1&e){var n=m.Ub();m.Rb(0),m.Fc(1,Te,21,19,"div",7),m.Tb(2,"button",19),m.ac("click",(function(){return m.vc(n),m.ec(2).addFeature("secondary")})),m.Hc(3,"Add"),m.Sb(),m.Qb()}if(2&e){var i=m.ec(2);m.Bb(1),m.kc("ngForOf",i.secondaryArray().controls)}}function Ce(e,t){if(1&e&&(m.Tb(0,"div",23),m.Tb(1,"div",14),m.Tb(2,"label",24),m.Hc(3,"Call to Action #1"),m.Sb(),m.Ob(4,"input",25),m.Sb(),m.Tb(5,"div",14),m.Tb(6,"label",26),m.Hc(7,"Call to Action #2"),m.Sb(),m.Ob(8,"input",27),m.Sb(),m.Sb()),2&e){var n=m.ec(2);m.kc("formGroup",n.form.get("actions")),m.Bb(4),m.kc("placeholder",n.defaultValue("actions.cta1")),m.Bb(4),m.kc("placeholder",n.defaultValue("actions.cta2"))}}function Oe(e,t){if(1&e&&(m.Rb(0),m.Tb(1,"div",4),m.Fc(2,_e,3,2,"ng-container",5),m.Fc(3,we,4,1,"ng-container",5),m.Fc(4,Ce,9,3,"div",6),m.Sb(),m.Qb()),2&e){var n=t.ngIf;m.Bb(1),m.kc("ngSwitch",n),m.Bb(1),m.kc("ngSwitchCase","primaryFeatures"),m.Bb(1),m.kc("ngSwitchCase","secondaryFeatures"),m.Bb(1),m.kc("ngSwitchCase","actions")}}function Ie(e,t){if(1&e){var n=m.Ub();m.Tb(0,"div",23),m.Tb(1,"div",14),m.Tb(2,"label",28),m.Hc(3,"Header Title"),m.Sb(),m.Ob(4,"input",29),m.Sb(),m.Tb(5,"div",14),m.Tb(6,"label",30),m.Hc(7,"Header Subtitle"),m.Sb(),m.Ob(8,"textarea",31),m.Sb(),m.Tb(9,"appearance-image-input",32),m.Hc(10,"Header Image "),m.Sb(),m.Ob(11,"mat-slider",33),m.Tb(12,"color-picker-input",34),m.Hc(13,"Header Overlay Color 1"),m.Sb(),m.Tb(14,"color-picker-input",35),m.Hc(15,"Header Overlay Color 2"),m.Sb(),m.Ob(16,"div",36),m.Tb(17,"ul"),m.Tb(18,"li",37),m.ac("click",(function(){return m.vc(n),m.ec().openSubpanel("actions")})),m.Tb(19,"span",38),m.Hc(20,"Action Buttons"),m.Sb(),m.Ob(21,"mat-icon",39),m.Sb(),m.Tb(22,"li",37),m.ac("click",(function(){return m.vc(n),m.ec().openSubpanel("primaryFeatures")})),m.Tb(23,"span",38),m.Hc(24,"Primary Features"),m.Sb(),m.Ob(25,"mat-icon",39),m.Sb(),m.Tb(26,"li",37),m.ac("click",(function(){return m.vc(n),m.ec().openSubpanel("secondaryFeatures")})),m.Tb(27,"span",38),m.Hc(28,"Secondary Features"),m.Sb(),m.Ob(29,"mat-icon",39),m.Sb(),m.Tb(30,"li",37),m.ac("click",(function(){return m.vc(n),m.ec().openSubpanel("channels")})),m.Tb(31,"span",38),m.Hc(32,"Channels"),m.Sb(),m.Ob(33,"mat-icon",39),m.Sb(),m.Sb(),m.Ob(34,"div",36),m.Tb(35,"div",14),m.Tb(36,"label",40),m.Hc(37,"Footer Title"),m.Sb(),m.Ob(38,"input",41),m.Sb(),m.Tb(39,"div",14),m.Tb(40,"label",42),m.Hc(41,"Footer Subtitle"),m.Sb(),m.Ob(42,"textarea",43),m.Sb(),m.Tb(43,"appearance-image-input",44),m.Hc(44,"Footer Image "),m.Sb(),m.Sb()}if(2&e){var i=m.ec();m.kc("formGroup",i.form),m.Bb(4),m.kc("placeholder",i.defaultValue("headerTitle")),m.Bb(4),m.kc("placeholder",i.defaultValue("headerSubtitle")),m.Bb(1),m.kc("defaultValue",i.defaultValue("headerImage")),m.Bb(29),m.kc("placeholder",i.defaultValue("footerTitle")),m.Bb(4),m.kc("placeholder",i.defaultValue("footerSubtitle")),m.Bb(1),m.kc("defaultValue",i.defaultValue("footerImage"))}}var Me,Pe,Fe,$e,He="homepage.appearance",Be={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:(Me=function(){function e(t,n,i){d(this,e),this.fb=t,this.editor=n,this.settings=i,this.selectedSubpanel$=new g.a(null),this.path$=this.selectedSubpanel$.pipe(Object(v.a)((function(e){var 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([])})}return r(e,[{key:"ngOnInit",value:function(){var e=this,t=this.settings.getJson(He,{});this.defaultValues=this.editor.defaultSettings[He]?JSON.parse(this.editor.defaultSettings[He]):{},(t.primaryFeatures||[]).forEach((function(){e.addFeature("primary")})),(t.secondaryFeatures||[]).forEach((function(){e.addFeature("secondary")})),this.form.patchValue(t),this.form.valueChanges.subscribe((function(t){e.editor.setConfig(He,t),e.editor.addChanges(a({},He,t))}))}},{key:"openPreviousPanel",value:function(){this.selectedSubpanel$.value?this.openSubpanel(null):this.editor.closeActivePanel()}},{key:"openSubpanel",value:function(e){this.selectedSubpanel$.next(e)}},{key:"addFeature",value:function(e){var t=this.form.get(e+"Features"),n={title:[""],subtitle:[""],image:[""]};"secondary"===e&&(n.description=[""]),t.push(this.fb.group(n))}},{key:"removeFeature",value:function(e,t){this.form.get(e+"Features").removeAt(t)}},{key:"defaultValue",value:function(e){return k.pick(e,this.defaultValues)||""}},{key:"primaryArray",value:function(){return this.form.get("primaryFeatures")}},{key:"secondaryArray",value:function(){return this.form.get("secondaryFeatures")}}]),e}(),Me.\u0275fac=function(e){return new(e||Me)(m.Nb(b.h),m.Nb(R),m.Nb(E.a))},Me.\u0275cmp=m.Hb({type:Me,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&&(m.Tb(0,"appearance-panel-meta",0),m.ac("back",(function(){return t.openPreviousPanel()})),m.fc(1,"async"),m.Sb(),m.Tb(2,"div",1),m.Fc(3,Oe,5,4,"ng-container",2),m.fc(4,"async"),m.Fc(5,Ie,45,7,"ng-template",null,3,m.Gc),m.Sb()),2&e){var n=m.sc(6);m.kc("path",m.gc(1,3,t.path$)),m.Bb(3),m.kc("ngIf",m.gc(4,5,t.selectedSubpanel$))("ngIfElse",n)}},directives:[J,s.t,s.x,s.y,s.s,b.v,b.m,u.b,l.a,L.a,b.d,b.u,b.k,b.F,Y,me,h.a,ke],pipes:[s.b,ye.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}),Me),position:1,route:"/"}]},Ne=o("6rvT"),De=((Pe=function e(){d(this,e)}).\u0275mod=m.Lb({type:Pe}),Pe.\u0275inj=m.Kb({factory:function(e){return new(e||Pe)},imports:[[s.c,Ne.a,l.b]]}),Pe),Ee=o("+rOU"),Ve=o("OnlV"),je=o("XhcP"),Ae=function(){return["General"]},Re=((Fe=function(){function e(t,n){d(this,e),this.fb=t,this.editor=n,this.form=this.fb.group({"branding.logo_light":[""],"branding.logo_dark":[""],"branding.favicon":[""],"env.app_name":[""],"branding.site_description":[""]})}return r(e,[{key:"ngOnInit",value:function(){var e=this,t={};Object.keys(this.form.controls).forEach((function(n){t[n]=e.editor.currentValue(n)})),this.form.patchValue(t),this.form.valueChanges.subscribe((function(t){e.editor.addChanges(t)}))}},{key:"defaultValue",value:function(e){return this.editor.defaultSettings[e]}}]),e}()).\u0275fac=function(e){return new(e||Fe)(m.Nb(b.h),m.Nb(R))},Fe.\u0275cmp=m.Hb({type:Fe,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&&(m.Tb(0,"appearance-panel-meta",0),m.ac("back",(function(){return t.editor.closeActivePanel()})),m.Sb(),m.Tb(1,"div",1),m.Tb(2,"appearance-image-input",2),m.Hc(3," Logo #1 (For top navbar) "),m.Sb(),m.Tb(4,"appearance-image-input",3),m.Hc(5," Logo #2 (Everywhere else) "),m.Sb(),m.Tb(6,"appearance-image-input",4),m.Hc(7," Favicon "),m.Sb(),m.Tb(8,"div",5),m.Tb(9,"label",6),m.Hc(10,"Site Name"),m.Sb(),m.Ob(11,"input",7),m.Sb(),m.Tb(12,"div",5),m.Tb(13,"label",8),m.Hc(14,"Site Description"),m.Sb(),m.Ob(15,"textarea",9),m.Sb(),m.Sb()),2&e&&(m.kc("path",m.nc(7,Ae)),m.Bb(1),m.kc("formGroup",t.form),m.Bb(1),m.kc("defaultValue",t.defaultValue("branding.logo_light")),m.Bb(2),m.kc("defaultValue",t.defaultValue("branding.logo_dark")),m.Bb(2),m.kc("defaultValue",t.defaultValue("branding.favicon")),m.Bb(5),m.kc("placeholder",t.defaultValue("env.app_name")),m.Bb(4),m.kc("placeholder",t.defaultValue("branding.site_description")))},directives:[J,b.v,b.m,me,b.u,b.k,Y,L.a,b.d],styles:[""],changeDetection:0}),Fe),ze=o("0IaG"),Le=(($e=function(){function e(t){d(this,e),this.http=t}return r(e,[{key:"all",value:function(){return this.http.get("css-theme")}},{key:"create",value:function(e){return this.http.post("css-theme",e)}},{key:"update",value:function(e,t){return this.http.put("css-theme/"+e,t)}},{key:"delete",value:function(e){return this.http.delete("css-theme/"+e)}}]),e}()).\u0275fac=function(e){return new(e||$e)(m.Xb(j.a))},$e.\u0275prov=m.Jb({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e),Ge=o("1jcm");function Ue(e,t){1&e&&(m.Tb(0,"span",6),m.Hc(1,"Update Theme"),m.Sb())}function Xe(e,t){1&e&&(m.Tb(0,"span",6),m.Hc(1,"Create Theme"),m.Sb())}function qe(e,t){if(1&e&&(m.Tb(0,"div",21),m.Hc(1),m.Sb()),2&e){var n=m.ec().ngIf;m.Bb(1),m.Ic(n.name)}}function We(e,t){1&e&&(m.Tb(0,"span"),m.Hc(1,"Update"),m.Sb())}function Je(e,t){1&e&&(m.Tb(0,"span"),m.Hc(1,"Create"),m.Sb())}function Ye(e,t){if(1&e){var n=m.Ub();m.Tb(0,"form",7),m.ac("ngSubmit",(function(){return m.vc(n),m.ec().confirm()})),m.Tb(1,"mat-dialog-content",8),m.Tb(2,"div",9),m.Tb(3,"label",10),m.Hc(4,"Name"),m.Sb(),m.Ob(5,"input",11),m.Fc(6,qe,2,1,"div",12),m.Sb(),m.Tb(7,"div",13),m.Tb(8,"mat-slide-toggle",14),m.Hc(9,"Dark Theme"),m.Sb(),m.Tb(10,"p",6),m.Hc(11,"Whether this theme has light text on dark background."),m.Sb(),m.Sb(),m.Tb(12,"div",13),m.Tb(13,"mat-slide-toggle",15),m.Hc(14,"Default Dark Theme"),m.Sb(),m.Tb(15,"p",6),m.Hc(16,"Whether this theme should be used as default dark theme."),m.Sb(),m.Sb(),m.Tb(17,"div",13),m.Tb(18,"mat-slide-toggle",16),m.Hc(19,"Default Light Theme"),m.Sb(),m.Tb(20,"p",6),m.Hc(21,"Whether this theme should be used as default light theme."),m.Sb(),m.Sb(),m.Sb(),m.Tb(22,"mat-dialog-actions"),m.Tb(23,"button",17),m.ac("click",(function(){return m.vc(n),m.ec().close()})),m.Hc(24,"Cancel"),m.Sb(),m.Tb(25,"button",18),m.fc(26,"async"),m.Fc(27,We,2,0,"span",19),m.Fc(28,Je,2,0,"ng-template",null,20,m.Gc),m.Sb(),m.Sb(),m.Sb()}if(2&e){var i=t.ngIf,a=m.sc(29),o=m.ec();m.kc("formGroup",o.form),m.Bb(6),m.kc("ngIf",i.name),m.Bb(19),m.kc("disabled",m.gc(26,5,o.loading$)),m.Bb(2),m.kc("ngIf",o.data.theme)("ngIfElse",a)}}var Ke,Qe=((Ke=function(){function e(t,n,i,a,o){var r=this;d(this,e),this.dialogRef=t,this.data=n,this.cssTheme=i,this.toast=a,this.fb=o,this.loading$=new g.a(!1),this.errors$=new g.a({}),this.form=this.fb.group({name:[""],is_dark:[!1],default_dark:[!1],default_light:[!1]}),n.theme&&this.form.patchValue(n.theme),this.form.get("default_dark").valueChanges.pipe(Object(F.a)((function(e){return!!e}))).subscribe((function(){r.form.get("default_light").setValue(!1)})),this.form.get("default_light").valueChanges.pipe(Object(F.a)((function(e){return!!e}))).subscribe((function(){r.form.get("default_dark").setValue(!1)}))}return r(e,[{key:"confirm",value:function(){var e=this;(this.data.theme?this.cssTheme.update(this.data.theme.id,this.form.value):this.cssTheme.create(this.form.value)).subscribe((function(t){e.toast.open(e.data.theme?"Theme updated":"Theme created"),e.close(t.theme)}),(function(t){return e.errors$.next(t.errors)}))}},{key:"close",value:function(e){this.dialogRef.close(e)}}]),e}()).\u0275fac=function(e){return new(e||Ke)(m.Nb(ze.h),m.Nb(ze.a),m.Nb(Le),m.Nb(A.b),m.Nb(b.h))},Ke.\u0275cmp=m.Hb({type:Ke,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&&(m.Tb(0,"div",0),m.Tb(1,"h2",1),m.Fc(2,Ue,2,0,"span",2),m.Fc(3,Xe,2,0,"span",2),m.Sb(),m.Tb(4,"button",3),m.ac("click",(function(){return t.close()})),m.Ob(5,"mat-icon",4),m.Sb(),m.Sb(),m.Fc(6,Ye,30,7,"form",5),m.fc(7,"async")),2&e&&(m.Bb(2),m.kc("ngIf",t.data.theme),m.Bb(1),m.kc("ngIf",!t.data.theme),m.Bb(3),m.kc("ngIf",m.gc(7,3,t.errors$)))},directives:[ze.i,s.t,l.a,L.a,b.v,b.m,ze.f,b.d,b.u,b.k,b.F,b.q,Ge.a,ze.c,u.b],pipes:[s.b],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}"],changeDetection:0}),Ke),Ze=o("/RwR"),et=o("QGXG"),tt=o("FBzJ");function nt(e,t){if(1&e&&(m.Tb(0,"li"),m.Tb(1,"color-picker-input",2),m.Hc(2),m.Sb(),m.Sb()),2&e){var n=t.$implicit,i=m.ec();m.Bb(1),m.kc("formControlName",n.key),m.Bb(1),m.Ic(i.viewName(n.key))}}var it,at=((it=function(){function e(t,n){d(this,e),this.editor=t,this.themes=n,this.form=new b.l({}),this.colorCache={}}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.editor.setSaveRequest(this.saveColors.bind(this)),Object.entries(this.theme.colors).forEach((function(n){var i=t(n,2),a=i[0],o=i[1];e.form.addControl(a,new b.i(o))})),this.editor.initiated$.subscribe((function(){e.setColors(e.theme.colors),e.form.valueChanges.subscribe((function(t){e.setColors(t),e.editor.addChanges({colors:t})}))}))}},{key:"ngOnDestroy",value:function(){this.editor.setSaveRequest(null)}},{key:"saveColors",value:function(e){return this.themes.update(this.theme.id,e)}},{key:"setColors",value:function(e){var n=this;Object.entries(e).forEach((function(e){var i=t(e,2),a=i[0],o=i[1];n.colorCache[a]!==o&&(n.editor.postMessage(new w(a,o)),n.colorCache[a]=o)}))}},{key:"viewName",value:function(e){return e.replace("be-","").replace(/-/g," ")}}]),e}()).\u0275fac=function(e){return new(e||it)(m.Nb(R),m.Nb(Le))},it.\u0275cmp=m.Hb({type:it,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&&(m.Tb(0,"ul",0),m.Fc(1,nt,3,2,"li",1),m.fc(2,"keyvalue"),m.Sb()),2&e&&(m.kc("formGroup",t.form),m.Bb(1),m.kc("ngForOf",m.gc(2,2,t.theme.colors)))},directives:[b.v,b.m,s.s,ke,L.a,b.u,b.k],pipes:[s.l],styles:[""],changeDetection:0}),it);function ot(e,t){1&e&&m.Ob(0,"css-theme-colors-panel",5),2&e&&m.kc("theme",t.ngIf)}function rt(e,t){if(1&e){var n=m.Ub();m.Tb(0,"li",9),m.ac("click",(function(){m.vc(n);var e=t.$implicit;return m.ec(2).setSelectedTheme(e)})),m.Tb(1,"div",10),m.Hc(2),m.Sb(),m.Tb(3,"div",11),m.ac("click",(function(e){return m.vc(n),e.stopPropagation()})),m.Tb(4,"button",12),m.ac("click",(function(){m.vc(n);var e=t.$implicit;return m.ec(2).setSelectedTheme(e)})),m.Ob(5,"mat-icon",13),m.Sb(),m.Tb(6,"button",12),m.ac("click",(function(){m.vc(n);var e=t.$implicit;return m.ec(2).openCrupdateThemeModal(e)})),m.Ob(7,"mat-icon",14),m.Sb(),m.Tb(8,"button",12),m.ac("click",(function(){m.vc(n);var e=t.$implicit;return m.ec(2).maybeDeleteThemeModal(e)})),m.Ob(9,"mat-icon",15),m.Sb(),m.Sb(),m.Sb()}if(2&e){var i=t.$implicit;m.Bb(2),m.Ic(i.name)}}function ct(e,t){if(1&e){var n=m.Ub();m.Tb(0,"button",6),m.ac("click",(function(){return m.vc(n),m.ec().openCrupdateThemeModal()})),m.Hc(1,"New Theme"),m.Sb(),m.Tb(2,"ul",7),m.Fc(3,rt,10,1,"li",8),m.fc(4,"async"),m.Sb()}if(2&e){var i=m.ec();m.Bb(3),m.kc("ngForOf",m.gc(4,1,i.loadedThemes$))}}var st,lt,ut,dt=((st=function(){function e(t,n,i,a,o,r){d(this,e),this.appearance=t,this.modal=n,this.themes=i,this.toast=a,this.router=o,this.route=r,this.loading$=new g.a(!1),this.loadedThemes$=new g.a([]),this.selectedTheme$=new g.a(null),this.path$=this.selectedTheme$.pipe(Object(v.a)((function(e){var t=["Themes"];return e&&t.push(e.name),t})))}return r(e,[{key:"ngOnInit",value:function(){this.reloadThemes()}},{key:"ngOnDestroy",value:function(){this.querySub&&this.querySub.unsubscribe()}},{key:"openCrupdateThemeModal",value:function(e){var t=this;this.modal.open(Qe,{theme:e}).afterClosed().subscribe((function(e){e&&t.reloadThemes()}))}},{key:"setSelectedTheme",value:function(e){this.router.navigate([],{queryParams:{theme:e&&e.id},queryParamsHandling:"merge"})}},{key:"openPreviousPanel",value:function(){this.selectedTheme$.value?this.setSelectedTheme():this.appearance.closeActivePanel()}},{key:"maybeDeleteThemeModal",value:function(e){var t=this;this.modal.show(Ze.a,{title:"Delete Theme",body:"Are you sure you want to delete this theme?",ok:"Delete"}).afterClosed().subscribe((function(n){n&&t.deleteTheme(e)}))}},{key:"reloadThemes",value:function(){var e=this;this.loading$.next(!0),this.themes.all().pipe(Object($.a)((function(){return e.loading$.next(!1)}))).subscribe((function(t){e.loadedThemes$.next(t.pagination.data),e.bindToQueryParams()}))}},{key:"deleteTheme",value:function(e){var t=this;this.themes.delete([e.id]).subscribe((function(){t.toast.open("Theme deleted"),t.reloadThemes()}))}},{key:"bindToQueryParams",value:function(){var e=this;this.querySub||(this.querySub=this.route.queryParams.subscribe((function(t){var n=e.loadedThemes$.value.find((function(e){return e.id===+t.theme}));e.selectedTheme$.next(n)})))}}]),e}()).\u0275fac=function(e){return new(e||st)(m.Nb(R),m.Nb(et.a),m.Nb(Le),m.Nb(A.b),m.Nb(V.d),m.Nb(V.a))},st.\u0275cmp=m.Hb({type:st,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&&(m.Tb(0,"appearance-panel-meta",0),m.ac("back",(function(){return t.openPreviousPanel()})),m.fc(1,"async"),m.Sb(),m.Tb(2,"div",1),m.Fc(3,ot,1,1,"css-theme-colors-panel",2),m.fc(4,"async"),m.Fc(5,ct,5,3,"ng-template",null,3,m.Gc),m.Sb(),m.Ob(7,"loading-indicator",4),m.fc(8,"async")),2&e){var n=m.sc(6);m.kc("path",m.gc(1,4,t.path$)),m.Bb(3),m.kc("ngIf",m.gc(4,6,t.selectedTheme$))("ngIfElse",n),m.Bb(4),m.kc("isVisible",m.gc(8,8,t.loading$))}},directives:[J,s.t,tt.a,at,u.b,L.a,s.s,l.a],pipes:[s.b],styles:[".new-theme-button[_ngcontent-%COMP%]{margin-bottom:15px}"],changeDetection:0}),st),bt=o("WvtK"),ht=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var n in d(this,e),this.type="link",this.order=1,this.condition=null,this.target=null,this.position=0,this.activeExact=!1,t)this[n]=t[n];this.id=Math.floor(999*Math.random())},mt=o("5+WD"),pt=o("f9yG"),ft=((lt=function(){function t(e,n){d(this,t),this.settings=e,this.appearance=n,this.allMenus$=new g.a([]),this.activeMenu$=new g.a(null)}return r(t,[{key:"create",value:function(){var t=e(this.allMenus$.value);this.activeMenu$.next(new pt.a({name:"New Menu"})),t.push(this.activeMenu$.value),this.allMenus$.next(t),this.commitChanges()}},{key:"reorderActiveMenuItems",value:function(e,t){var n=Object.assign({},this.activeMenu$.value);Object(mt.f)(n.items,e,t),this.activeMenu$.next(n),this.commitChanges()}},{key:"deleteActive",value:function(){var t=e(this.allMenus$.value),n=t.indexOf(this.activeMenu$.value);t.splice(n,1),this.activeMenu$.next(null),this.allMenus$.next(t),this.commitChanges()}},{key:"addItem",value:function(e){var t=Object.assign({},this.activeMenu$.value);e=this.transformLocalLinksToRoutes(e),t.items.push(e),this.activeMenu$.next(t),this.commitChanges()}},{key:"removeItem",value:function(e){var t=Object.assign({},this.activeMenu$.value),n=this.activeMenu$.value.items.indexOf(e);t.items.splice(n,1),this.activeMenu$.next(t),this.commitChanges()}},{key:"transformLocalLinksToRoutes",value:function(e){var 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}},{key:"commitChanges",value:function(){var e=JSON.stringify(this.allMenus$.value);this.appearance.setConfig("menus",e),this.appearance.addChanges({menus:e})}},{key:"setFromJson",value:function(e){if(e){var t=JSON.parse(e);if(t){var n=t.map((function(e){var t=new pt.a(e);return t.items=t.items.map((function(e){return new ht(e)})),t}));this.allMenus$.next(n)}}}}]),t}()).\u0275fac=function(e){return new(e||lt)(m.Xb(E.a),m.Xb(R))},lt.\u0275prov=m.Jb({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt),gt=o("ZfYz"),vt=o("sPnx"),kt=((ut=function(){function e(t){d(this,e),this.http=t}return r(e,[{key:"get",value:function(){return this.http.getWithCache("admin/appearance/menu-categories")}}]),e}()).\u0275fac=function(e){return new(e||ut)(m.Xb(vt.a))},ut.\u0275prov=m.Jb({token:ut,factory:ut.\u0275fac,providedIn:"root"}),ut),yt=o("7EHt");function St(e,t){if(1&e){var n=m.Ub();m.Tb(0,"div",17),m.ac("click",(function(){m.vc(n);var e=t.$implicit;return m.ec().addRouteMenuItem(e)})),m.Hc(1),m.Sb()}if(2&e){var i=t.$implicit;m.Bb(1),m.Jc("",i," ")}}function xt(e,t){if(1&e){var n=m.Ub();m.Tb(0,"div",17),m.ac("click",(function(){m.vc(n);var e=t.$implicit;return m.ec(2).addCustomMenuItem(e)})),m.Hc(1),m.Sb()}if(2&e){var i=t.$implicit;m.Bb(1),m.Ic(i.label)}}function _t(e,t){if(1&e&&(m.Tb(0,"mat-expansion-panel",5),m.Tb(1,"mat-expansion-panel-header"),m.Tb(2,"mat-panel-title",6),m.Hc(3),m.Sb(),m.Sb(),m.Tb(4,"div",14),m.Fc(5,xt,2,1,"div",15),m.Sb(),m.Sb()),2&e){var n=t.$implicit;m.Bb(3),m.Ic(n.name),m.Bb(2),m.kc("ngForOf",n.items)}}var Tt,wt=((Tt=function(){function e(t,n,i,a,o){d(this,e),this.editor=t,this.appearance=n,this.overlayPanelRef=i,this.fb=a,this.itemCategories=o,this.linkForm=this.fb.group({action:[""],label:[""]})}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.itemCategories.get().subscribe((function(t){e.menuItemCategories=t.categories}))}},{key:"addLinkMenuItem",value:function(){this.editor.addItem(new ht({type:"link",label:this.linkForm.value.label,action:this.linkForm.value.action})),this.linkForm.reset(),this.close()}},{key:"addRouteMenuItem",value:function(e){this.editor.addItem(new ht({type:"route",label:e,action:e})),this.close()}},{key:"addCustomMenuItem",value:function(e){this.editor.addItem(new ht(e)),this.close()}},{key:"close",value:function(){this.overlayPanelRef.close()}}]),e}()).\u0275fac=function(e){return new(e||Tt)(m.Nb(ft),m.Nb(R),m.Nb(gt.a),m.Nb(b.h),m.Nb(kt))},Tt.\u0275cmp=m.Hb({type:Tt,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&&(m.Tb(0,"div",0),m.Tb(1,"span",1),m.Hc(2,"New Menu Item"),m.Sb(),m.Tb(3,"mat-icon",2),m.ac("click",(function(){return t.close()})),m.Sb(),m.Sb(),m.Tb(4,"div",3),m.Tb(5,"mat-accordion"),m.Tb(6,"form",4),m.ac("ngSubmit",(function(){return t.addLinkMenuItem()})),m.Tb(7,"mat-expansion-panel",5),m.Tb(8,"mat-expansion-panel-header"),m.Tb(9,"mat-panel-title",6),m.Hc(10,"Link"),m.Sb(),m.Sb(),m.Tb(11,"div",7),m.Tb(12,"div",8),m.Tb(13,"label",9),m.Hc(14,"URL"),m.Sb(),m.Ob(15,"input",10),m.Sb(),m.Tb(16,"div",8),m.Tb(17,"label",11),m.Hc(18,"Link Text"),m.Sb(),m.Ob(19,"input",12),m.Sb(),m.Sb(),m.Tb(20,"mat-action-row"),m.Tb(21,"button",13),m.Hc(22,"Add"),m.Sb(),m.Sb(),m.Sb(),m.Sb(),m.Tb(23,"mat-expansion-panel",5),m.Tb(24,"mat-expansion-panel-header"),m.Tb(25,"mat-panel-title",6),m.Hc(26,"Route"),m.Sb(),m.Sb(),m.Tb(27,"div",14),m.Fc(28,St,2,1,"div",15),m.Sb(),m.Sb(),m.Fc(29,_t,6,2,"mat-expansion-panel",16),m.Sb(),m.Sb()),2&e&&(m.Bb(6),m.kc("formGroup",t.linkForm),m.Bb(22),m.kc("ngForOf",t.appearance.config.menus.availableRoutes),m.Bb(1),m.kc("ngForOf",t.menuItemCategories))},directives:[L.a,l.a,yt.a,b.v,b.m,yt.c,yt.e,yt.f,b.d,b.u,b.k,b.F,yt.d,u.b,s.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}),Tt);function Ct(e,t){if(1&e){var n=m.Ub();m.Tb(0,"button",2),m.ac("click",(function(){m.vc(n);var e=t.$implicit;return m.ec().selectIcon(e)})),m.Ob(1,"mat-icon",3),m.Sb()}if(2&e){var i=t.$implicit;m.Bb(1),m.kc("svgIcon",i)}}var Ot,It=((Ot=function(){function e(t,n){d(this,e),this.http=t,this.overlayPanelRef=n,this.icons$=new g.a([]),this.loading$=new g.a(!1),this.iconSelected=new m.n}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading$.next(!0),this.http.get("admin/icons").pipe(Object($.a)((function(){return e.loading$.next(!1)}))).subscribe((function(t){e.icons$.next(t.icons)}))}},{key:"selectIcon",value:function(e){this.iconSelected.observers.length?this.iconSelected.next(e):(this.overlayPanelRef.emitValue(e),this.overlayPanelRef.close())}}]),e}()).\u0275fac=function(e){return new(e||Ot)(m.Nb(vt.a),m.Nb(gt.a))},Ot.\u0275cmp=m.Hb({type:Ot,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&&(m.Fc(0,Ct,2,1,"button",0),m.fc(1,"async"),m.Ob(2,"loading-indicator",1),m.fc(3,"async")),2&e&&(m.kc("ngForOf",m.gc(1,2,t.icons$)),m.Bb(2),m.kc("isVisible",m.gc(3,4,t.loading$)))},directives:[s.s,tt.a,u.b,l.a],pipes:[s.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}),Ot);function Mt(e,t){if(1&e){var n=m.Ub();m.Tb(0,"mat-expansion-panel",5),m.ac("opened",(function(){m.vc(n);var e=t.$implicit;return m.ec(2).toggleMenuItem(e)}))("closed",(function(){m.vc(n);var e=t.$implicit;return m.ec(2).toggleMenuItem(e)})),m.Tb(1,"mat-expansion-panel-header"),m.Tb(2,"mat-panel-title"),m.Ob(3,"mat-icon",6),m.Tb(4,"span",7),m.Hc(5),m.Sb(),m.Sb(),m.Sb(),m.Tb(6,"div",8),m.Tb(7,"div",9),m.Tb(8,"label",10),m.Hc(9,"Label"),m.Sb(),m.Tb(10,"input",11),m.ac("ngModelChange",(function(e){return m.vc(n),t.$implicit.label=e}))("ngModelChange",(function(){return m.vc(n),m.ec(2).menus.commitChanges()})),m.Sb(),m.Sb(),m.Tb(11,"div",9),m.Tb(12,"label",10),m.Hc(13,"Type"),m.Sb(),m.Tb(14,"select",12),m.ac("ngModelChange",(function(e){return m.vc(n),t.$implicit.type=e}))("ngModelChange",(function(){return m.vc(n),m.ec(2).menus.commitChanges()})),m.Tb(15,"option",13),m.Hc(16,"Link"),m.Sb(),m.Tb(17,"option",14),m.Hc(18,"Route"),m.Sb(),m.Tb(19,"option",15),m.Hc(20,"Page"),m.Sb(),m.Sb(),m.Sb(),m.Tb(21,"div",9),m.Tb(22,"label",10),m.Hc(23,"Action"),m.Sb(),m.Tb(24,"input",11),m.ac("ngModelChange",(function(e){return m.vc(n),t.$implicit.action=e}))("ngModelChange",(function(){return m.vc(n),m.ec(2).menus.commitChanges()})),m.Sb(),m.Sb(),m.Tb(25,"div",9),m.Tb(26,"label",10),m.Hc(27,"Condition"),m.Sb(),m.Tb(28,"select",12),m.ac("ngModelChange",(function(e){return m.vc(n),t.$implicit.condition=e}))("ngModelChange",(function(){return m.vc(n),m.ec(2).menus.commitChanges()})),m.Tb(29,"option",16),m.Hc(30,"None"),m.Sb(),m.Tb(31,"option",17),m.Hc(32,"Show to Logged in Users Only"),m.Sb(),m.Tb(33,"option",18),m.Hc(34,"Show to Guest Users Only"),m.Sb(),m.Tb(35,"option",19),m.Hc(36,"Show to Admin Only"),m.Sb(),m.Sb(),m.Sb(),m.Tb(37,"div",9),m.Tb(38,"label",10),m.Hc(39,"Open link in"),m.Sb(),m.Tb(40,"select",12),m.ac("ngModelChange",(function(e){return m.vc(n),t.$implicit.target=e}))("ngModelChange",(function(){return m.vc(n),m.ec(2).menus.commitChanges()})),m.Tb(41,"option",20),m.Hc(42,"Same Window"),m.Sb(),m.Tb(43,"option",21),m.Hc(44,"New Window"),m.Sb(),m.Sb(),m.Sb(),m.Tb(45,"div",22,23),m.ac("click",(function(){m.vc(n);var e=t.$implicit,i=m.sc(46);return m.ec(2).openIconSelector(i,e)})),m.Tb(47,"label",10),m.Hc(48,"Icon"),m.Sb(),m.Tb(49,"input",24),m.ac("ngModelChange",(function(e){return m.vc(n),t.$implicit.icon=e})),m.Sb(),m.Ob(50,"mat-icon",25),m.Sb(),m.Sb(),m.Tb(51,"mat-action-row"),m.Tb(52,"button",26),m.ac("click",(function(){return m.vc(n),m.ec(2).confirmMenuItemDeletion()})),m.Hc(53,"Remove"),m.Sb(),m.Sb(),m.Sb()}if(2&e){var i=t.$implicit;m.Cb("data-id",i.id),m.Bb(5),m.Ic(i.label),m.Bb(3),m.lc("for",i.id+"-label"),m.Bb(2),m.lc("id",i.id+"-label"),m.kc("ngModel",i.label),m.Bb(2),m.lc("for",i.id+"-type"),m.Bb(2),m.lc("id",i.id+"-type"),m.kc("ngModel",i.type),m.Bb(8),m.lc("for",i.id+"-action"),m.Bb(2),m.lc("id",i.id+"-action"),m.kc("ngModel",i.action),m.Bb(2),m.lc("for",i.id+"-condition"),m.Bb(2),m.lc("id",i.id+"-condition"),m.kc("ngModel",i.condition),m.Bb(1),m.kc("ngValue",null),m.Bb(9),m.lc("for",i.id+"-target"),m.Bb(2),m.lc("id",i.id+"-target"),m.kc("ngModel",i.target),m.Bb(7),m.lc("for",i.id+"-icon"),m.Bb(2),m.lc("id",i.id+"-icon"),m.kc("ngModel",i.icon),m.Bb(1),m.kc("svgIcon",i.icon)}}function Pt(e,t){if(1&e){var n=m.Ub();m.Tb(0,"mat-accordion",3),m.ac("cdkDropListDropped",(function(e){return m.vc(n),m.ec().reorderMenuItems(e)})),m.Fc(1,Mt,54,22,"mat-expansion-panel",4),m.Sb()}if(2&e){var i=t.ngIf;m.Bb(1),m.kc("ngForOf",i.items)}}function Ft(e,t){1&e&&(m.Tb(0,"div",27),m.Hc(1,"This menu has no items yet."),m.Sb())}var $t,Ht=(($t=function(){function e(t,n,i,a){d(this,e),this.menus=t,this.modal=n,this.overlayPanel=i,this.cd=a,this.subscriptions=[]}return r(e,[{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){e&&e.unsubscribe()}))}},{key:"reorderMenuItems",value:function(e){this.menus.reorderActiveMenuItems(e.previousIndex,e.currentIndex)}},{key:"toggleMenuItem",value:function(e){this.selectedMenuItem=this.selectedMenuItem===e?null:e}},{key:"confirmMenuItemDeletion",value:function(){var e=this;this.modal.show(Ze.a,{title:"Delete Menu Item",body:"Are you sure you want to delete this menu item?",ok:"Delete"}).afterClosed().subscribe((function(t){t&&(e.menus.removeItem(e.selectedMenuItem),e.selectedMenuItem=null)}))}},{key:"openIconSelector",value:function(e,t){var n=this;this.overlayPanel.open(It,{position:bt.a,origin:new m.l(e)}).valueChanged().subscribe((function(e){t.icon=e,n.menus.commitChanges(),n.cd.detectChanges()}))}}]),e}()).\u0275fac=function(e){return new(e||$t)(m.Nb(ft),m.Nb(et.a),m.Nb(ge.a),m.Nb(m.h))},$t.\u0275cmp=m.Hb({type:$t,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&&(m.Tb(0,"div",0),m.Hc(1,"Menu Items"),m.Sb(),m.Fc(2,Pt,2,1,"mat-accordion",1),m.fc(3,"async"),m.Fc(4,Ft,2,0,"ng-template",null,2,m.Gc)),2&e){var n=m.sc(5);m.Bb(2),m.kc("ngIf",m.gc(3,2,t.menus.activeMenu$))("ngIfElse",n)}},directives:[L.a,s.t,yt.a,mt.d,s.s,yt.c,mt.a,yt.e,yt.f,l.a,mt.b,b.d,b.u,b.x,b.G,b.z,b.J,yt.d,u.b],pipes:[s.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}),$t);function Bt(e,t){if(1&e&&(m.Tb(0,"option",15),m.Hc(1),m.Sb()),2&e){var n=t.$implicit,i=m.ec(2);m.kc("ngValue",n),m.Bb(1),m.Ic(i.getDisplayName(n))}}function Nt(e,t){if(1&e){var n=m.Ub();m.Tb(0,"div",4),m.Tb(1,"div",5),m.Tb(2,"div",6),m.Tb(3,"label",7),m.Hc(4,"Menu Name"),m.Sb(),m.Tb(5,"input",8),m.ac("ngModelChange",(function(e){return m.vc(n),t.ngIf.name=e}))("ngModelChange",(function(){return m.vc(n),m.ec().menus.commitChanges()})),m.Sb(),m.Sb(),m.Tb(6,"div",6),m.Tb(7,"label",9),m.Hc(8,"Menu Position"),m.Sb(),m.Tb(9,"select",10),m.ac("ngModelChange",(function(e){return m.vc(n),t.ngIf.position=e}))("ngModelChange",(function(){return m.vc(n),m.ec().menus.commitChanges()})),m.Fc(10,Bt,2,2,"option",11),m.Sb(),m.Sb(),m.Sb(),m.Ob(11,"menu-items"),m.Tb(12,"div",12),m.Tb(13,"button",13),m.ac("click",(function(){return m.vc(n),m.ec().confirmMenuDeletion()})),m.Hc(14,"Delete Menu"),m.Sb(),m.Tb(15,"button",14),m.ac("click",(function(){return m.vc(n),m.ec().openAddItemPanel()})),m.Hc(16,"Add Item"),m.Sb(),m.Sb(),m.Sb()}if(2&e){var i=t.ngIf,a=m.ec();m.Bb(5),m.kc("ngModel",i.name),m.Bb(4),m.kc("ngModel",i.position),m.Bb(1),m.kc("ngForOf",a.appearance.config.menus.positions)}}function Dt(e,t){if(1&e){var n=m.Ub();m.Tb(0,"div",19),m.ac("click",(function(){m.vc(n);var e=t.$implicit;return m.ec(2).setActiveMenu(e)})),m.Tb(1,"span",20),m.Hc(2),m.Sb(),m.Ob(3,"mat-icon",21),m.Sb()}if(2&e){var i=t.$implicit;m.Bb(2),m.Ic(i.name)}}function Et(e,t){if(1&e){var n=m.Ub();m.Tb(0,"div",16),m.Fc(1,Dt,4,1,"div",17),m.fc(2,"async"),m.Tb(3,"div",12),m.Tb(4,"button",18),m.ac("click",(function(){return m.vc(n),m.ec().menus.create()})),m.Hc(5,"Add a Menu"),m.Sb(),m.Sb(),m.Sb()}if(2&e){var i=m.ec();m.Bb(1),m.kc("ngForOf",m.gc(2,1,i.menus.allMenus$))}}var Vt,jt=function(e){return["Menus",e]},At=((Vt=function(){function e(t,n,i,a,o,r){d(this,e),this.appearance=t,this.menus=n,this.modal=i,this.settings=a,this.panel=o,this.el=r,this.menus.setFromJson(this.settings.get("menus"))}return r(e,[{key:"openAddItemPanel",value:function(){var e=bt.a.slice();e[0].offsetX=10,e[1].offsetX=10,this.panel.open(wt,{position:e,origin:this.el,panelClass:"add-menu-item-panel-container"})}},{key:"openPreviousPanel",value:function(){this.menus.activeMenu$.value?this.menus.activeMenu$.next(null):this.appearance.closeActivePanel()}},{key:"setActiveMenu",value:function(e){this.menus.activeMenu$.next(e)}},{key:"confirmMenuDeletion",value:function(){var e=this;this.modal.show(Ze.a,{title:"Delete Menu",body:"Are you sure you want to delete this menu?",ok:"Delete"}).afterClosed().subscribe((function(t){t&&e.menus.deleteActive()}))}},{key:"getDisplayName",value:function(e){return e.replace(/-/g," ")}}]),e}()).\u0275fac=function(e){return new(e||Vt)(m.Nb(R),m.Nb(ft),m.Nb(et.a),m.Nb(E.a),m.Nb(ge.a),m.Nb(m.l))},Vt.\u0275cmp=m.Hb({type:Vt,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&&(m.Tb(0,"appearance-panel-meta",0),m.ac("back",(function(){return t.openPreviousPanel()})),m.Sb(),m.Tb(1,"div",1),m.Fc(2,Nt,17,3,"div",2),m.fc(3,"async"),m.Fc(4,Et,6,3,"ng-template",null,3,m.Gc),m.Sb()),2&e){var n=m.sc(5);m.kc("path",m.oc(5,jt,t.menus.activeMenu$.value&&t.menus.activeMenu$.value.name)),m.Bb(2),m.kc("ngIf",m.gc(3,3,t.menus.activeMenu$))("ngIfElse",n)}},directives:[J,s.t,L.a,b.d,b.u,b.x,b.G,s.s,Ht,u.b,b.z,b.J,l.a],pipes:[s.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}),Vt);function Rt(e,t){if(1&e&&(m.Rb(0),m.Tb(1,"div",3),m.Tb(2,"label",4),m.Hc(3),m.Sb(),m.Ob(4,"textarea",5),m.Sb(),m.Qb()),2&e){var n=t.$implicit;m.Bb(2),m.kc("for",n.key),m.Bb(1),m.Ic(n.name),m.Bb(1),m.kc("id",n.key)("formControlName",n.key)("placeholder",n.defaultValue)}}var zt,Lt=function(){return["Seo Settings"]},Gt=((zt=function(){function e(t,n){d(this,e),this.editor=t,this.fb=n,this.form=this.fb.group({})}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.seoFields=this.editor.defaultSettings.seo_fields,this.seoFields.forEach((function(t){e.form.addControl(t.key,e.fb.control(t.value))})),this.form.valueChanges.subscribe((function(t){e.editor.addChanges(t)}))}}]),e}()).\u0275fac=function(e){return new(e||zt)(m.Nb(R),m.Nb(b.h))},zt.\u0275cmp=m.Hb({type:zt,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&&(m.Tb(0,"appearance-panel-meta",0),m.ac("back",(function(){return t.editor.closeActivePanel()})),m.Sb(),m.Tb(1,"div",1),m.Fc(2,Rt,5,5,"ng-container",2),m.Sb()),2&e&&(m.kc("path",m.nc(3,Lt)),m.Bb(1),m.kc("formGroup",t.form),m.Bb(1),m.kc("ngForOf",t.seoFields))},directives:[J,b.v,b.m,s.s,L.a,b.d,b.u,b.k],styles:["label[_ngcontent-%COMP%]{text-transform:capitalize}"],changeDetection:0}),zt),Ut=o("FtGj"),Xt=o("5o4b"),qt=["editor"];function Wt(e,t){1&e&&(m.Tb(0,"p",11),m.Hc(1,"If entering javascript, wrap it with <script><\/script> tag."),m.Sb())}var Jt,Yt,Kt=((Jt=function(){function e(t,n,i){d(this,e),this.dialogRef=t,this.data=n,this.lazyLoader=i,this.loading$=new g.a(!1),this.syntaxInvalid$=new g.a(!1)}return r(e,[{key:"ngOnInit",value:function(){this.initEditor(this.data.contents,this.data.language),this.overrideDialogCloseEvents()}},{key:"confirm",value:function(){this.close(this.editor.getValue())}},{key:"close",value:function(e){this.dialogRef.close(e)}},{key:"initEditor",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"html";this.loading$.next(!0),this.lazyLoader.loadAsset("js/ace/ace.js",{type:"js"}).then((function(){t.editor=ace.edit(t.editorEl.nativeElement),t.editor.getSession().setMode("ace/mode/"+n),t.editor.setTheme("ace/theme/chrome"),t.editor.$blockScrolling=1/0,e&&t.editor.setValue(e,1),t.editor.getSession().on("changeAnnotation",(function(){var e=t.editor.getSession().getAnnotations();if(e[0]&&/doctype first/.test(e[0].text))return e.splice(0,1),void t.editor.getSession().setAnnotations(e);var n=t.editor.getSession().getAnnotations().filter((function(e){return"error"===e.type})).length>0;t.syntaxInvalid$.next(n)})),t.loading$.next(!1)}))}},{key:"overrideDialogCloseEvents",value:function(){var e=this;this.dialogRef.disableClose=!0,this.dialogRef.backdropClick().subscribe((function(){e.close()})),this.dialogRef.keydownEvents().pipe(Object(F.a)((function(e){return e.keyCode===Ut.g}))).subscribe((function(){return e.close()}))}}]),e}()).\u0275fac=function(e){return new(e||Jt)(m.Nb(ze.h),m.Nb(ze.a),m.Nb(Xt.a))},Jt.\u0275cmp=m.Hb({type:Jt,selectors:[["code-editor-modal"]],viewQuery:function(e,t){var n;1&e&&m.Bc(qt,!0),2&e&&m.rc(n=m.bc())&&(t.editorEl=n.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&&(m.Tb(0,"div",0),m.Tb(1,"h2",1),m.Hc(2,"Code Editor"),m.Sb(),m.Tb(3,"button",2),m.ac("click",(function(){return t.close()})),m.Ob(4,"mat-icon",3),m.Sb(),m.Sb(),m.Tb(5,"mat-dialog-content"),m.Tb(6,"div",4),m.Fc(7,Wt,2,0,"p",5),m.Ob(8,"div",6,7),m.Sb(),m.Sb(),m.Tb(10,"mat-dialog-actions"),m.Tb(11,"button",8),m.ac("click",(function(){return t.close()})),m.Hc(12,"Cancel"),m.Sb(),m.Tb(13,"button",9),m.ac("click",(function(){return t.confirm()})),m.fc(14,"async"),m.Hc(15,"Update"),m.Sb(),m.Sb(),m.Ob(16,"loading-indicator",10),m.fc(17,"async")),2&e&&(m.Bb(7),m.kc("ngIf","html"===t.data.language),m.Bb(6),m.kc("disabled",m.gc(14,3,t.syntaxInvalid$)),m.Bb(3),m.kc("isVisible",m.gc(17,5,t.loading$)))},directives:[ze.i,L.a,l.a,ze.f,s.t,ze.c,u.b,tt.a],pipes:[s.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}),Jt),Qt=function(){return["Custom Code"]},Zt=((Yt=function(){function e(t,n,i,a){d(this,e),this.editor=t,this.fb=n,this.modal=i,this.toast=a,this.form=this.fb.group({"custom-code.css":[""],"custom-code.html":[""]})}return r(e,[{key:"ngOnInit",value:function(){var e=this,t={};Object.keys(this.form.controls).forEach((function(n){t[n]=e.editor.currentValue(n)})),this.form.patchValue(t)}},{key:"openModal",value:function(e){var t=this,n="custom-code."+e,i=this.form.value[n]||"";this.modal.open(Kt,{contents:this.form.value[n],language:e}).afterClosed().subscribe((function(o){if(void 0!==o&&i!==o){var r=a({},n,o);t.form.patchValue(r),t.editor.saveChanges(r).subscribe((function(){t.addCodeToPreview(e,o),t.toast.open("Custom code saved")}))}}))}},{key:"addCodeToPreview",value:function(e,t){this.editor.postMessage("css"===e?new C(t):new O(t))}}]),e}()).\u0275fac=function(e){return new(e||Yt)(m.Nb(R),m.Nb(b.h),m.Nb(et.a),m.Nb(A.b))},Yt.\u0275cmp=m.Hb({type:Yt,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&&(m.Tb(0,"appearance-panel-meta",0),m.ac("back",(function(){return t.editor.closeActivePanel()})),m.Sb(),m.Tb(1,"div",1),m.Tb(2,"button",2),m.ac("click",(function(){return t.openModal("css")})),m.Tb(3,"span",3),m.Hc(4,"Custom CSS"),m.Sb(),m.Tb(5,"span",4),m.Hc(6,"Modify"),m.Sb(),m.Sb(),m.Tb(7,"button",5),m.ac("click",(function(){return t.openModal("html")})),m.Tb(8,"span",3),m.Hc(9,"Custom HTML & Javascript"),m.Sb(),m.Tb(10,"span",4),m.Hc(11,"Modify"),m.Sb(),m.Sb(),m.Sb()),2&e&&m.kc("path",m.nc(1,Qt))},directives:[J,L.a],styles:[".actions[_ngcontent-%COMP%]{color:var(--be-link);font-size:1.3rem}"],changeDetection:0}),Yt),en=["iframe"];function tn(e,t){1&e&&(m.Tb(0,"span",15),m.Hc(1,"Save"),m.Sb())}function nn(e,t){1&e&&(m.Tb(0,"span",15),m.Hc(1,"Saved"),m.Sb())}function an(e,t){1&e&&m.Ob(0,"general-appearance-panel")}function on(e,t){1&e&&m.Ob(0,"themes-appearance-panel")}function rn(e,t){1&e&&m.Ob(0,"menus-appearance-panel")}function cn(e,t){1&e&&m.Ob(0,"seo-appearance-panel")}function sn(e,t){1&e&&m.Ob(0,"custom-code-appearance-panel")}function ln(e,t){}function un(e,t){1&e&&m.Fc(0,ln,0,0,"ng-template",20),2&e&&m.kc("cdkPortalOutlet",t.ngIf)}function dn(e,t){if(1&e&&(m.Rb(0),m.Fc(1,un,1,1,void 0,19),m.fc(2,"async"),m.Qb()),2&e){var n=m.ec(2);m.Bb(1),m.kc("ngIf",m.gc(2,1,n.panelPortal$))}}function bn(e,t){if(1&e&&(m.Rb(0),m.Rb(1,16),m.Fc(2,an,1,0,"general-appearance-panel",17),m.Fc(3,on,1,0,"themes-appearance-panel",17),m.Fc(4,rn,1,0,"menus-appearance-panel",17),m.Fc(5,cn,1,0,"seo-appearance-panel",17),m.Fc(6,sn,1,0,"custom-code-appearance-panel",17),m.Fc(7,dn,3,3,"ng-container",18),m.Qb(),m.Qb()),2&e){var n=t.ngIf;m.Bb(1),m.kc("ngSwitch",n.name),m.Bb(1),m.kc("ngSwitchCase","general"),m.Bb(1),m.kc("ngSwitchCase","themes"),m.Bb(1),m.kc("ngSwitchCase","menus"),m.Bb(1),m.kc("ngSwitchCase","seo-settings"),m.Bb(1),m.kc("ngSwitchCase","custom-code")}}var hn=function(){return[]},mn=function(e){return{panel:e}};function pn(e,t){if(1&e&&(m.Tb(0,"a",23),m.Tb(1,"span",24),m.Hc(2),m.Sb(),m.Ob(3,"mat-icon",25),m.Sb()),2&e){var n=t.$implicit,i=m.ec(2);m.kc("routerLink",m.nc(3,hn))("queryParams",m.oc(4,mn,i.slugify(n.name))),m.Bb(2),m.Ic(i.viewName(n.name))}}function fn(e,t){if(1&e&&(m.Tb(0,"div",21),m.Fc(1,pn,4,6,"a",22),m.Sb()),2&e){var n=m.ec();m.Bb(1),m.kc("ngForOf",n.editor.config.sections)}}var gn,vn,kn,yn,Sn,xn,_n,Tn=((vn=function(){function e(t,n,i,a,o){d(this,e),this.editor=t,this.router=n,this.route=i,this.breakpoints=a,this.config=o,this.leftColumnIsHidden=!1,this.panelPortal$=this.editor.activePanel$.pipe(Object(v.a)((function(e){return e&&e.component?new Ee.d(e.component):null})))}return r(e,[{key:"ngOnInit",value:function(){var e=this;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((function(t){e.editor.openPanel(t.panel)}))}},{key:"ngOnDestroy",value:function(){this.routerSub&&this.routerSub.unsubscribe()}},{key:"closeEditor",value:function(){this.router.navigate(["admin"])}},{key:"slugify",value:function(e){return Object(B.a)(e)}},{key:"viewName",value:function(e){return e.replace("-"," ")}},{key:"toggleLeftSidebar",value:function(){this.leftColumnIsHidden=!this.leftColumnIsHidden}}]),e}()).\u0275fac=function(e){return new(e||vn)(m.Nb(R),m.Nb(V.d),m.Nb(V.a),m.Nb(Ve.a),m.Nb(p,8))},vn.\u0275cmp=m.Hb({type:vn,selectors:[["appearance"]],viewQuery:function(e,t){var n;1&e&&m.Bc(en,!0),2&e&&m.rc(n=m.bc())&&(t.iframe=n.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&&(m.Tb(0,"mat-sidenav-container"),m.Tb(1,"mat-sidenav",0),m.fc(2,"async"),m.Tb(3,"div",1),m.Tb(4,"div",2),m.ac("click",(function(){return t.closeEditor()})),m.Ob(5,"mat-icon",3),m.Sb(),m.Tb(6,"div",4),m.Hc(7,"Appearance Editor"),m.Sb(),m.Tb(8,"button",5),m.ac("click",(function(){return t.editor.saveChanges()})),m.fc(9,"async"),m.fc(10,"async"),m.Fc(11,tn,2,0,"span",6),m.fc(12,"async"),m.Fc(13,nn,2,0,"ng-template",null,7,m.Gc),m.Sb(),m.Sb(),m.Fc(15,bn,8,6,"ng-container",8),m.fc(16,"async"),m.Fc(17,fn,2,1,"ng-template",null,9,m.Gc),m.Sb(),m.Tb(19,"mat-sidenav-content"),m.Tb(20,"div",10),m.Ob(21,"iframe",11,12),m.Sb(),m.Sb(),m.Sb(),m.Tb(23,"button",13),m.ac("click",(function(){return t.toggleLeftSidebar()})),m.Ob(24,"mat-icon",14),m.Sb()),2&e){var n=m.sc(14),i=m.sc(18);m.Bb(1),m.kc("opened",!t.leftColumnIsHidden)("mode",m.gc(2,7,t.breakpoints.isMobile$)?"over":"side"),m.Bb(7),m.kc("disabled",!m.gc(9,9,t.editor.changes$)||m.gc(10,11,t.editor.loading$)),m.Bb(3),m.kc("ngIf",m.gc(12,13,t.editor.changes$))("ngIfElse",n),m.Bb(4),m.kc("ngIf",m.gc(16,15,t.editor.activePanel$))("ngIfElse",i)}},directives:[je.e,je.d,l.a,L.a,u.b,s.t,je.f,s.x,s.y,s.z,Re,dt,At,Gt,Zt,Ee.c,s.s,V.g],pipes:[s.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}),vn),wn=((gn=function(){function e(t,n){d(this,e),this.editor=t,this.modal=n}return r(e,[{key:"canDeactivate",value:function(){return!this.editor.changes$.value||this.modal.show(Ze.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()}}]),e}()).\u0275fac=function(e){return new(e||gn)(m.Xb(R),m.Xb(et.a))},gn.\u0275prov=m.Jb({token:gn,factory:gn.\u0275fac,providedIn:"root"}),gn),Cn=o("0QyJ"),On=o("JIr8"),In=o("5+tZ"),Mn=o("EY2u"),Pn=o("LRne"),Fn=[{path:"",component:Tn,data:{permissions:["appearance.update"]},resolve:{defaultSettings:(kn=function(){function e(t,n){d(this,e),this.router=t,this.http=n}return r(e,[{key:"resolve",value:function(e,t){var n=this;return this.http.get("admin/appearance/values").pipe(Object(On.a)((function(){return n.router.navigate(["/admin"]),Mn.a})),Object(In.a)((function(e){return e?Object(Pn.a)(e):(n.router.navigate(["/admin"]),Mn.a)})))}}]),e}(),kn.\u0275fac=function(e){return new(e||kn)(m.Xb(V.d),m.Xb(j.a))},kn.\u0275prov=m.Jb({token:kn,factory:kn.\u0275fac,providedIn:"root"}),kn)},canActivate:[Cn.a],canDeactivate:[wn],children:[{path:""},{path:":panel"},{path:":panel/:activeItem"}]}],$n=((yn=function e(){d(this,e)}).\u0275mod=m.Lb({type:yn}),yn.\u0275inj=m.Kb({factory:function(e){return new(e||yn)},imports:[[V.h.forChild(Fn)],V.h]}),yn),Hn=o("X3pI"),Bn=((Sn=function e(){d(this,e)}).\u0275mod=m.Lb({type:Sn}),Sn.\u0275inj=m.Kb({factory:function(e){return new(e||Sn)},imports:[[s.c,Hn.a,u.c,l.b]]}),Sn),Nn=o("MKyN"),Dn=((_n=function e(){d(this,e)}).\u0275mod=m.Lb({type:_n}),_n.\u0275inj=m.Kb({factory:function(e){return new(e||_n)},providers:[{provide:p,useValue:f,multi:!0}],imports:[[$n,s.c,b.o,b.E,Bn,Ne.a,Nn.a,Hn.a,De,ie.b,oe.b,l.b,u.c,ze.g,yt.b,mt.e,je.g,Ee.h,Ge.b]]}),_n),En=((xn=function e(){d(this,e)}).\u0275mod=m.Lb({type:xn}),xn.\u0275inj=m.Kb({factory:function(e){return new(e||xn)},providers:[{provide:p,useValue:Be,multi:!0}],imports:[[s.c,Dn,b.E,De,Ne.a,l.b,u.c,Ne.a,h.b]]}),xn)},WvtK:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:5},{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:5}]}}])}(); //# sourceMappingURL=10-es5.26af29b63e30c2349254.js.map