-
Notifications
You must be signed in to change notification settings - Fork 0
/
251.030bf04acff2ef62.js
1 lines (1 loc) · 37.1 KB
/
251.030bf04acff2ef62.js
1
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[251],{4251:(Lt,A,r)=>{r.r(A),r.d(A,{GalleryUpdateModule:()=>Mt,routes:()=>F});var g=r(6814),U=r(1896),p=r(6223),t=r(5879),B=r(9862),G=r(3327),J=r(2939),H=r(5389),v=r(5195),I=r(8645),y=r(2296),w=r(8525),f=r(9773),V=r(8180),h=r(2495),M=r(6028),L=r(2831),O=r(4300),Q=r(9388),C=r(3651),R=r(1911),j=r(8484),b=(r(6825),r(3680));const X=["tooltip"],E=new t.OlP("mat-tooltip-scroll-strategy"),K={provide:E,deps:[C.aV],useFactory:function q(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}},tt=new t.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function W(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),N="tooltip-panel",Z=(0,L.i$)({passive:!0});let nt=(()=>{var o;class l{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=(0,h.Ig)(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=(0,h.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=(0,h.su)(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=(0,h.su)(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,s,n,c,m,u,S,z,P,d,D){this._overlay=e,this._elementRef=i,this._scrollDispatcher=s,this._viewContainerRef=n,this._ngZone=c,this._platform=m,this._ariaDescriber=u,this._focusMonitor=S,this._dir=P,this._defaultOptions=d,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new I.x,this._scrollStrategy=z,this._document=D,d&&(this._showDelay=d.showDelay,this._hideDelay=d.hideDelay,d.position&&(this.position=d.position),d.positionAtOrigin&&(this.positionAtOrigin=d.positionAtOrigin),d.touchGestures&&(this.touchGestures=d.touchGestures)),P.change.pipe((0,f.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,f.R)(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,s])=>{e.removeEventListener(i,s,Z)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const s=this._createOverlay(i);this._detach(),this._portal=this._portal||new j.C5(this._tooltipComponent,this._viewContainerRef);const n=this._tooltipInstance=s.attach(this._portal).instance;n._triggerElement=this._elementRef.nativeElement,n._mouseLeaveHideDelay=this._hideDelay,n.afterHidden().pipe((0,f.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),n.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const n=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&n._origin instanceof t.SBq)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return s.positionChanges.pipe((0,f.R)(this._destroyed)).subscribe(n=>{this._updateCurrentPositionClass(n.connectionPair),this._tooltipInstance&&n.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:`${this._cssClassPrefix}-${N}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,f.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,f.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,f.R)(this._destroyed)).subscribe(n=>{this._isTooltipVisible()&&n.keyCode===M.hY&&!(0,M.Vb)(n)&&(n.preventDefault(),n.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,s=this._getOrigin(),n=this._getOverlayPosition();i.withPositions([this._addOffset({...s.main,...n.main}),this._addOffset({...s.fallback,...n.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i||"below"==i?s={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={originX:"end",originY:"center"});const{x:n,y:c}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:n,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i?s={overlayX:"center",overlayY:"bottom"}:"below"==i?s={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:n,y:c}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:n,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,V.q)(1),(0,f.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:s,originY:n}=e;let c;if(c="center"===i?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===i&&"top"===n?"above":"below",c!==this._currentPosition){const m=this._overlayRef;if(m){const u=`${this._cssClassPrefix}-${N}-`;m.removePanelClass(u+this._currentPosition),m.addPanelClass(u+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],s=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,s),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const s=i.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,s])=>{this._elementRef.nativeElement.addEventListener(i,s,Z)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;i!==s&&!s.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,s=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!i.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return(o=l).\u0275fac=function(e){t.$Z()},o.\u0275dir=t.lG2({type:o,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),l})(),lt=(()=>{var o;class l extends nt{constructor(e,i,s,n,c,m,u,S,z,P,d,D){super(e,i,s,n,c,m,u,S,z,P,d,D),this._tooltipComponent=ct,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const s=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=s?-8:8:"end"===e.originX&&(e.offsetX=s?8:-8),e}}return(o=l).\u0275fac=function(e){return new(e||o)(t.Y36(C.aV),t.Y36(t.SBq),t.Y36(R.mF),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(L.t4),t.Y36(O.$s),t.Y36(O.tE),t.Y36(E),t.Y36(Q.Is,8),t.Y36(tt,8),t.Y36(g.K0))},o.\u0275dir=t.lG2({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("mat-mdc-tooltip-disabled",i.disabled)},exportAs:["matTooltip"],features:[t.qOj]}),l})(),rt=(()=>{var o;class l{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new I.x,this._animationsDisabled="NoopAnimations"===i}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,s=this._showAnimation,n=this._hideAnimation;if(i.classList.remove(e?n:s),i.classList.add(e?s:n),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(i);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return(o=l).\u0275fac=function(e){return new(e||o)(t.Y36(t.sBO),t.Y36(t.QbO,8))},o.\u0275dir=t.lG2({type:o}),l})(),ct=(()=>{var o;class l extends rt{constructor(e,i,s){super(e,s),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}}return(o=l).\u0275fac=function(e){return new(e||o)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(t.QbO,8))},o.\u0275cmp=t.Xpm({type:o,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&t.Gf(X,7),2&e){let s;t.iGM(s=t.CRH())&&(i._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("mouseleave",function(n){return i._handleMouseLeave(n)}),2&e&&t.Udp("zoom",i.isVisible()?1:null)},features:[t.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0,1),t.NdJ("animationend",function(n){return i._handleAnimationEnd(n)}),t.TgZ(2,"div",2),t._uU(3),t.qZA()()),2&e&&(t.ekj("mdc-tooltip--multiline",i._isMultiline),t.Q6J("ngClass",i.tooltipClass),t.xp6(3),t.Oqu(i.message))},dependencies:[g.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),l})(),pt=(()=>{var o;class l{}return(o=l).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({providers:[K],imports:[O.rt,g.ez,C.U8,b.BQ,b.BQ,R.ZD]}),l})();var x=r(9157);function dt(o,l){if(1&o&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&o){const a=l.$implicit;t.Q6J("value",a),t.xp6(1),t.hij(" ",a," ")}}function ht(o,l){if(1&o){const a=t.EpF();t.TgZ(0,"mat-form-field",16)(1,"mat-select",17),t.NdJ("selectionChange",function(i){t.CHM(a);const s=t.oxw(2);return t.KtG(s._changePageSize(i.value))}),t.YNc(2,dt,2,2,"mat-option",18),t.qZA()()}if(2&o){const a=t.oxw(2);t.Q6J("appearance",a._formFieldAppearance)("color",a.color),t.xp6(1),t.Q6J("value",a.pageSize)("disabled",a.disabled)("aria-labelledby",a._pageSizeLabelId)("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",a.selectConfig.disableOptionCentering),t.xp6(1),t.Q6J("ngForOf",a._displayedPageSizeOptions)}}function mt(o,l){if(1&o&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&o){const a=t.oxw(2);t.xp6(1),t.Oqu(a.pageSize)}}function gt(o,l){if(1&o&&(t.TgZ(0,"div",12)(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,ht,3,8,"mat-form-field",14),t.YNc(4,mt,2,1,"div",15),t.qZA()),2&o){const a=t.oxw();t.xp6(1),t.s9C("id",a._pageSizeLabelId),t.xp6(1),t.hij(" ",a._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",a._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",a._displayedPageSizeOptions.length<=1)}}function _t(o,l){if(1&o){const a=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){t.CHM(a);const i=t.oxw();return t.KtG(i.firstPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA()()}if(2&o){const a=t.oxw();t.Q6J("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),t.uIk("aria-label",a._intl.firstPageLabel)}}function ut(o,l){if(1&o){const a=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(a);const i=t.oxw();return t.KtG(i.lastPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA()()}if(2&o){const a=t.oxw();t.Q6J("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),t.uIk("aria-label",a._intl.lastPageLabel)}}let T=(()=>{var o;class l{constructor(){this.changes=new I.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,s)=>{if(0==s||0==i)return`0 of ${s}`;const n=e*i;return`${n+1} \u2013 ${n<(s=Math.max(s,0))?Math.min(n+i,s):n+i} of ${s}`}}}return(o=l).\u0275fac=function(e){return new(e||o)},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),l})();const vt={provide:T,deps:[[new t.FiY,new t.tp0,T]],useFactory:function ft(o){return o||new T}},yt=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),xt=(0,b.Id)((0,b.dB)(class{}));let Tt=(()=>{var o;class l extends xt{get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max((0,h.su)(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=(0,h.su)(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max((0,h.su)(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>(0,h.su)(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=(0,h.Ig)(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=(0,h.Ig)(e)}constructor(e,i,s){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new t.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),s){const{pageSize:n,pageSizeOptions:c,hidePageSize:m,showFirstLastButtons:u}=s;null!=n&&(this._pageSize=n),null!=c&&(this._pageSizeOptions=c),null!=m&&(this._hidePageSize=m),null!=u&&(this._showFirstLastButtons=u)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){const s=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(s)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,i)=>e-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return(o=l).\u0275fac=function(e){t.$Z()},o.\u0275dir=t.lG2({type:o,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[t.qOj]}),l})(),Pt=0,It=(()=>{var o;class l extends Tt{constructor(e,i,s){super(e,i,s),this._pageSizeLabelId="mat-paginator-page-size-label-"+Pt++,this._formFieldAppearance=s?.formFieldAppearance||"outline"}}return(o=l).\u0275fac=function(e){return new(e||o)(t.Y36(T),t.Y36(t.sBO),t.Y36(yt,8))},o.\u0275cmp=t.Xpm({type:o,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,gt,5,4,"div",2),t.TgZ(3,"div",3)(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,_t,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return i.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA()(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return i.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA()(),t.YNc(13,ut,3,5,"button",11),t.qZA()()()),2&e&&(t.xp6(2),t.Q6J("ngIf",!i.hidePageSize),t.xp6(3),t.hij(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),t.xp6(1),t.Q6J("ngIf",i.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",i.showFirstLastButtons))},dependencies:[g.sg,g.O5,y.RK,x.KE,w.gD,b.ey,lt],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),l})(),wt=(()=>{var o;class l{}return(o=l).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({providers:[vt],imports:[g.ez,y.ot,w.LD,pt]}),l})();var k=r(617),Y=r(2032);function Ot(o,l){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"Titre obligatoire et compris entre 3 et 24 caract\xe8res"),t.qZA())}function Ct(o,l){if(1&o&&(t.TgZ(0,"div",15),t._UZ(1,"img",16),t.qZA()),2&o){const a=t.oxw();t.xp6(1),t.Q6J("src",a.imagePreview,t.LSH)("alt",a.fileName)}}function St(o,l){if(1&o){const a=t.EpF();t.TgZ(0,"div",18)(1,"div",19),t._uU(2),t.qZA(),t.TgZ(3,"div",19),t._uU(4),t.qZA(),t._UZ(5,"div",20),t.TgZ(6,"div",19)(7,"button",5),t.NdJ("click",function(){t.CHM(a);const i=t.oxw().$implicit,s=t.oxw();return t.KtG(s.deleteHandle(i.id))}),t.TgZ(8,"mat-icon",21),t._uU(9,"delete"),t.qZA()()()()}if(2&o){const a=t.oxw().$implicit;t.xp6(2),t.Oqu(a.title),t.xp6(2),t.Oqu(a.content),t.xp6(1),t.Udp("background-image","url("+a.path+")")}}function zt(o,l){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,St,10,4,"div",17),t.qZA()),2&o){const a=l.index,e=t.oxw();t.xp6(1),t.Q6J("ngIf",a<10*e.pageNumber+1&&a>10*e.pageNumber-9)}}let Dt=(()=>{var o;class l{onSavePost(){this.form.invalid||this.form.value&&this.file&&(this.galleryService.addGallery(this.form.value.title,this.form.value.content,this.file),this.snackBar.open("image enregistr\xe9e","",{duration:1e3}))}onImageSelected(e){if(this.file=e.target.files[0],this.file){this.fileName=this.file.name;const i=new FileReader;i.onload=s=>{this.imagePreview=i.result;let n=this.imagePreview.split(";")[0].split(":")[1];if(!["image/jpeg","image/jpg","image/png","image/gif","image/svg+xml"].includes(n))return alert("ce type de fichier n'est pas autoris\xe9")},i.readAsDataURL(this.file)}}handlePageEvent(e){this.pageNumber=e.pageIndex+1,console.log(e)}deleteHandle(e){this.galleryService.deleteGallery(e).subscribe(i=>{this.snackBar.open("image effac\xe9e","",{duration:1e3}),this.galleryService.getGalleries()})}constructor(e,i,s,n){this.http=e,this.galleryService=i,this.snackBar=s,this.store=n,this.fileName="",this.gallery=[],this.pageNumber=1,this.previousPageNumber=0,this.pageSize=10,this.form=new p.cw({title:new p.NI("titre",{validators:[p.kI.required,p.kI.minLength(3),p.kI.maxLength(24)]}),content:new p.NI("contenu",{validators:[p.kI.maxLength(100)]}),image:new p.NI(null,{})})}ngOnInit(){this.galleryService.getGalleries(),this.store.select("gallery").subscribe(e=>{this.gallery=e})}}return(o=l).\u0275fac=function(e){return new(e||o)(t.Y36(B.eN),t.Y36(G.r),t.Y36(J.ux),t.Y36(H.y))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-galleryUpdate"]],decls:30,vars:7,consts:[[3,"formGroup","submit"],["appearance","fill"],["matInput","","type","text","name","title","placeholder","entrez le titre","formControlName","title"],[4,"ngIf"],[1,"field__image"],["mat-icon-button","","matTooltip","Basic",3,"click"],["color","basic",1,"icon__upload"],["class","image-preview",4,"ngIf"],["type","file","accept",".jpg, .png",3,"change"],["fileSelector",""],["placeholder","entrez le contenu","matInput","","type","textArea","name","content","rows","4","formControlName","content",1,"content"],["mat-raised-button","","type","submit",1,"mat-button","button__form"],[1,"gallery__table"],[4,"ngFor","ngForOf"],[3,"length","pageSize","page"],[1,"image-preview"],[3,"src","alt"],["class","row",4,"ngIf"],[1,"row"],[1,"element"],[1,"element","updatedImage"],[1,"icon__trash"]],template:function(e,i){if(1&e){const s=t.EpF();t.TgZ(0,"mat-card")(1,"mat-card-header")(2,"mat-card-title"),t._uU(3,"Mettez a jour Votre gallerie d'image"),t.qZA(),t.TgZ(4,"mat-card-subtitle"),t._uU(5,"taille minimum : 400*600px"),t.qZA()(),t.TgZ(6,"mat-card-content")(7,"form",0),t.NdJ("submit",function(){return i.onSavePost()}),t.TgZ(8,"div")(9,"mat-form-field",1),t._UZ(10,"input",2),t.YNc(11,Ot,2,0,"mat-error",3),t.qZA()(),t.TgZ(12,"div",4),t._uU(13),t.TgZ(14,"button",5),t.NdJ("click",function(){t.CHM(s);const c=t.MAs(20);return t.KtG(c.click())}),t.TgZ(15,"mat-icon",6),t._uU(16,"file_present"),t.qZA()(),t._UZ(17,"br"),t.YNc(18,Ct,2,2,"div",7),t.TgZ(19,"input",8,9),t.NdJ("change",function(c){return i.onImageSelected(c)}),t.qZA()(),t.TgZ(21,"mat-form-field",1),t._UZ(22,"input",10),t.qZA(),t.TgZ(23,"div")(24,"button",11),t._uU(25," Save Post "),t.qZA()()()()(),t.TgZ(26,"mat-card")(27,"div",12),t.YNc(28,zt,2,1,"div",13),t.qZA(),t.TgZ(29,"mat-paginator",14),t.NdJ("page",function(c){return i.handlePageEvent(c)}),t.qZA()()}if(2&e){let s;t.xp6(7),t.Q6J("formGroup",i.form),t.xp6(4),t.Q6J("ngIf",null==(s=i.form.get("title"))?null:s.invalid),t.xp6(2),t.hij(" Ajoutez une image ",i.fileName," "),t.xp6(5),t.Q6J("ngIf",""!==i.imagePreview&&i.imagePreview),t.xp6(10),t.Q6J("ngForOf",i.gallery),t.xp6(1),t.Q6J("length",100)("pageSize",10)}},dependencies:[g.sg,g.O5,v.a8,v.dn,v.dk,v.$j,v.n5,It,x.KE,x.TO,k.Hw,p._Y,p.Fj,p.JJ,p.JL,p.sg,p.u,Y.Nt,y.lW,y.RK],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%}input[type=file][_ngcontent-%COMP%]{display:none}.image-preview[_ngcontent-%COMP%]{height:5rem;margin:1rem 0}.image-preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%}.content[_ngcontent-%COMP%]{margin-right:1.5rem}.mat-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.field__image[_ngcontent-%COMP%]{display:block;margin:1.5rem}.gallery__table[_ngcontent-%COMP%]{min-width:50rem;min-height:50rem;display:flex;flex-direction:column;margin-top:.5rem;align-items:center}.row[_ngcontent-%COMP%]{margin-top:.2rem;display:flex;height:100px;min-width:100px;align-items:center;justify-content:center;text-align:center}.updatedImage[_ngcontent-%COMP%]{height:50px;width:50px;background-size:cover;background-position:center}.element[_ngcontent-%COMP%]{width:100px;padding:1.5rem}@media (max-width: 50em){.element[_ngcontent-%COMP%]{width:70px}}mat-icon[_ngcontent-%COMP%]{color:#fff;background-position:center;background-size:cover}.icon__trash[_ngcontent-%COMP%]{color:#f52929}.icon__upload[_ngcontent-%COMP%]{color:#af8b6e}mat-fab[_ngcontent-%COMP%]{background-color:#f0f8ff}"]}),l})();const F=[{path:"",canActivate:[r(5080).u],component:Dt}];let Mt=(()=>{var o;class l{}return(o=l).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[g.ez,v.QW,wt,x.lN,b.Ng,w.LD,k.Ps,p.UX,Y.c,y.ot,U.Bz.forChild(F)]}),l})()}}]);