-
Notifications
You must be signed in to change notification settings - Fork 0
/
407.48b367bbb9e4da43.js
1 lines (1 loc) · 38.8 KB
/
407.48b367bbb9e4da43.js
1
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[407],{5407:(mt,ee,f)=>{f.r(ee),f.d(ee,{ReservationViewModule:()=>ht,routes:()=>ge});var R=f(6814),e=f(5879),ye=f(5389),De=f(2362),ve=f(9388),M=f(2495),p=f(8337),Ce=f(2831),te=f(1911),oe=f(8645),Re=f(7715),be=f(5619),ke=f(2664),se=f(2096),b=f(9773),ne=f(8180);const Se=[[["caption"]],[["colgroup"],["col"]]],xe=["caption","colgroup, col"];function Y(t){return class extends t{get sticky(){return this._sticky}set sticky(n){const a=this._sticky;this._sticky=(0,M.Ig)(n),this._hasStickyChanged=a!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}}}const D=new e.OlP("CDK_TABLE");let v=(()=>{var t;class n{constructor(o){this.template=o}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.Rgc))},t.\u0275dir=e.lG2({type:t,selectors:[["","cdkCellDef",""]]}),n})(),C=(()=>{var t;class n{constructor(o){this.template=o}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.Rgc))},t.\u0275dir=e.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),n})(),T=(()=>{var t;class n{constructor(o){this.template=o}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.Rgc))},t.\u0275dir=e.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),n})();class Ee{}const Fe=Y(Ee);let g=(()=>{var t;class n extends Fe{get name(){return this._name}set name(o){this._setNameInput(o)}get stickyEnd(){return this._stickyEnd}set stickyEnd(o){const s=this._stickyEnd;this._stickyEnd=(0,M.Ig)(o),this._hasStickyChanged=s!==this._stickyEnd}constructor(o){super(),this._table=o,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(o){o&&(this._name=o,this.cssClassFriendlyName=o.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(D,8))},t.\u0275dir=e.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(o,s,r){if(1&o&&(e.Suo(r,v,5),e.Suo(r,C,5),e.Suo(r,T,5)),2&o){let i;e.iGM(i=e.CRH())&&(s.cell=i.first),e.iGM(i=e.CRH())&&(s.headerCell=i.first),e.iGM(i=e.CRH())&&(s.footerCell=i.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),e.qOj]}),n})();class G{constructor(n,a){a.nativeElement.classList.add(...n._columnCssClassName)}}let Z=(()=>{var t;class n extends G{constructor(o,s){super(o,s)}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(g),e.Y36(e.SBq))},t.\u0275dir=e.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),n})(),I=(()=>{var t;class n extends G{constructor(o,s){if(super(o,s),1===o._table?._elementRef.nativeElement.nodeType){const r=o._table._elementRef.nativeElement.getAttribute("role");s.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(g),e.Y36(e.SBq))},t.\u0275dir=e.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),n})();class re{constructor(){this.tasks=[],this.endTasks=[]}}const P=new e.OlP("_COALESCED_STYLE_SCHEDULER");let ie=(()=>{var t;class n{constructor(o){this._ngZone=o,this._currentSchedule=null,this._destroyed=new oe.x}schedule(o){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(o)}scheduleEnd(o){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(o)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new re,this._getScheduleObservable().pipe((0,b.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const o=this._currentSchedule;this._currentSchedule=new re;for(const s of o.tasks)s();for(const s of o.endTasks)s()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Re.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,ne.q)(1))}}return(t=n).\u0275fac=function(o){return new(o||t)(e.LFG(e.R0b))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac}),n})(),j=(()=>{var t;class n{constructor(o,s){this.template=o,this._differs=s}ngOnChanges(o){if(!this._columnsDiffer){const s=o.columns&&o.columns.currentValue||[];this._columnsDiffer=this._differs.find(s).create(),this._columnsDiffer.diff(s)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(o){return this instanceof k?o.headerCell.template:this instanceof S?o.footerCell.template:o.cell.template}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},t.\u0275dir=e.lG2({type:t,features:[e.TTD]}),n})();class Ne extends j{}const Ae=Y(Ne);let k=(()=>{var t;class n extends Ae{constructor(o,s,r){super(o,s),this._table=r}ngOnChanges(o){super.ngOnChanges(o)}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(D,8))},t.\u0275dir=e.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),n})();class Be extends j{}const He=Y(Be);let S=(()=>{var t;class n extends He{constructor(o,s,r){super(o,s),this._table=r}ngOnChanges(o){super.ngOnChanges(o)}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(D,8))},t.\u0275dir=e.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),n})(),O=(()=>{var t;class n extends j{constructor(o,s,r){super(o,s),this._table=r}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(D,8))},t.\u0275dir=e.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),n})(),w=(()=>{var t;class n{constructor(o){this._viewContainer=o,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return(t=n).mostRecentCellOutlet=null,t.\u0275fac=function(o){return new(o||t)(e.Y36(e.s_b))},t.\u0275dir=e.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),n})(),z=(()=>{var t;class n{}return(t=n).\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(o,s){1&o&&e.GkF(0,0)},dependencies:[w],encapsulation:2}),n})(),V=(()=>{var t;class n{}return(t=n).\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(o,s){1&o&&e.GkF(0,0)},dependencies:[w],encapsulation:2}),n})(),E=(()=>{var t;class n{constructor(o){this.templateRef=o,this._contentClassName="cdk-no-data-row"}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.Rgc))},t.\u0275dir=e.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const le=["top","bottom","left","right"];class Le{constructor(n,a,o,s,r=!0,i=!0,l){this._isNativeHtmlTable=n,this._stickCellCss=a,this.direction=o,this._coalescedStyleScheduler=s,this._isBrowser=r,this._needsPositionStickyOnElement=i,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:`${a}-border-elem-top`,bottom:`${a}-border-elem-bottom`,left:`${a}-border-elem-left`,right:`${a}-border-elem-right`}}clearStickyPositioning(n,a){const o=[];for(const s of n)if(s.nodeType===s.ELEMENT_NODE){o.push(s);for(let r=0;r<s.children.length;r++)o.push(s.children[r])}this._coalescedStyleScheduler.schedule(()=>{for(const s of o)this._removeStickyStyle(s,a)})}updateStickyColumns(n,a,o,s=!0){if(!n.length||!this._isBrowser||!a.some(h=>h)&&!o.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=n[0],i=r.children.length,l=this._getCellWidths(r,s),c=this._getStickyStartColumnPositions(l,a),u=this._getStickyEndColumnPositions(l,o),d=a.lastIndexOf(!0),m=o.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,y=h?"right":"left",K=h?"left":"right";for(const x of n)for(let _=0;_<i;_++){const we=x.children[_];a[_]&&this._addStickyStyle(we,y,c[_],_===d),o[_]&&this._addStickyStyle(we,K,u[_],_===m)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===d?[]:l.slice(0,d+1).map((x,_)=>a[_]?x:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===m?[]:l.slice(m).map((x,_)=>o[_+m]?x:null).reverse()}))})}stickRows(n,a,o){if(!this._isBrowser)return;const s="bottom"===o?n.slice().reverse():n,r="bottom"===o?a.slice().reverse():a,i=[],l=[],c=[];for(let d=0,m=0;d<s.length;d++){if(!r[d])continue;i[d]=m;const h=s[d];c[d]=this._isNativeHtmlTable?Array.from(h.children):[h];const y=h.getBoundingClientRect().height;m+=y,l[d]=y}const u=r.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let d=0;d<s.length;d++){if(!r[d])continue;const m=i[d],h=d===u;for(const y of c[d])this._addStickyStyle(y,o,m,h)}"top"===o?this._positionListener?.stickyHeaderRowsUpdated({sizes:l,offsets:i,elements:c}):this._positionListener?.stickyFooterRowsUpdated({sizes:l,offsets:i,elements:c})})}updateStickyFooterContainer(n,a){if(!this._isNativeHtmlTable)return;const o=n.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{a.some(s=>!s)?this._removeStickyStyle(o,["bottom"]):this._addStickyStyle(o,"bottom",0,!1)})}_removeStickyStyle(n,a){for(const s of a)n.style[s]="",n.classList.remove(this._borderCellCss[s]);le.some(s=>-1===a.indexOf(s)&&n.style[s])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,a,o,s){n.classList.add(this._stickCellCss),s&&n.classList.add(this._borderCellCss[a]),n.style[a]=`${o}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const a={top:100,bottom:10,left:1,right:1};let o=0;for(const s of le)n.style[s]&&(o+=a[s]);return o?`${o}`:""}_getCellWidths(n,a=!0){if(!a&&this._cachedCellWidths.length)return this._cachedCellWidths;const o=[],s=n.children;for(let r=0;r<s.length;r++)o.push(s[r].getBoundingClientRect().width);return this._cachedCellWidths=o,o}_getStickyStartColumnPositions(n,a){const o=[];let s=0;for(let r=0;r<n.length;r++)a[r]&&(o[r]=s,s+=n[r]);return o}_getStickyEndColumnPositions(n,a){const o=[];let s=0;for(let r=n.length;r>0;r--)a[r]&&(o[r]=s,s+=n[r]);return o}}const q=new e.OlP("CDK_SPL");let F=(()=>{var t;class n{constructor(o,s){this.viewContainer=o,this.elementRef=s}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.s_b),e.Y36(e.SBq))},t.\u0275dir=e.lG2({type:t,selectors:[["","rowOutlet",""]]}),n})(),N=(()=>{var t;class n{constructor(o,s){this.viewContainer=o,this.elementRef=s}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.s_b),e.Y36(e.SBq))},t.\u0275dir=e.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),n})(),A=(()=>{var t;class n{constructor(o,s){this.viewContainer=o,this.elementRef=s}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.s_b),e.Y36(e.SBq))},t.\u0275dir=e.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),n})(),B=(()=>{var t;class n{constructor(o,s){this.viewContainer=o,this.elementRef=s}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.s_b),e.Y36(e.SBq))},t.\u0275dir=e.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),n})(),H=(()=>{var t;class n{get trackBy(){return this._trackByFn}set trackBy(o){this._trackByFn=o}get dataSource(){return this._dataSource}set dataSource(o){this._dataSource!==o&&this._switchDataSource(o)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(o){this._multiTemplateDataRows=(0,M.Ig)(o),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(o){this._fixedLayout=(0,M.Ig)(o),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(o,s,r,i,l,c,u,d,m,h,y,K){this._differs=o,this._changeDetectorRef=s,this._elementRef=r,this._dir=l,this._platform=u,this._viewRepeater=d,this._coalescedStyleScheduler=m,this._viewportRuler=h,this._stickyPositioningListener=y,this._ngZone=K,this._onDestroy=new oe.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new be.X({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","table"),this._document=c,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((o,s)=>this.trackBy?this.trackBy(s.dataIndex,s.data):s),this._viewportRuler.change().pipe((0,b.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const s=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||s,this._forceRecalculateCellWidths=s,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(o=>{o.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,p.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const o=this._dataDiffer.diff(this._renderRows);if(!o)return this._updateNoDataRow(),void this.contentChanged.next();const s=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(o,s,(r,i,l)=>this._getEmbeddedViewArgs(r.item,l),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),o.forEachIdentityChange(r=>{s.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,ne.q)(1),(0,b.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(o){this._customColumnDefs.add(o)}removeColumnDef(o){this._customColumnDefs.delete(o)}addRowDef(o){this._customRowDefs.add(o)}removeRowDef(o){this._customRowDefs.delete(o)}addHeaderRowDef(o){this._customHeaderRowDefs.add(o),this._headerRowDefChanged=!0}removeHeaderRowDef(o){this._customHeaderRowDefs.delete(o),this._headerRowDefChanged=!0}addFooterRowDef(o){this._customFooterRowDefs.add(o),this._footerRowDefChanged=!0}removeFooterRowDef(o){this._customFooterRowDefs.delete(o),this._footerRowDefChanged=!0}setNoDataRow(o){this._customNoDataRow=o}updateStickyHeaderRowStyles(){const o=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=o.length?"":"none");const i=this._headerRowDefs.map(l=>l.sticky);this._stickyStyler.clearStickyPositioning(o,["top"]),this._stickyStyler.stickRows(o,i,"top"),this._headerRowDefs.forEach(l=>l.resetStickyChanged())}updateStickyFooterRowStyles(){const o=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=o.length?"":"none");const i=this._footerRowDefs.map(l=>l.sticky);this._stickyStyler.clearStickyPositioning(o,["bottom"]),this._stickyStyler.stickRows(o,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(l=>l.resetStickyChanged())}updateStickyColumnStyles(){const o=this._getRenderedRows(this._headerRowOutlet),s=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...o,...s,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),o.forEach((i,l)=>{this._addStickyColumnStyles([i],this._headerRowDefs[l])}),this._rowDefs.forEach(i=>{const l=[];for(let c=0;c<s.length;c++)this._renderRows[c].rowDef===i&&l.push(s[c]);this._addStickyColumnStyles(l,i)}),r.forEach((i,l)=>{this._addStickyColumnStyles([i],this._footerRowDefs[l])}),Array.from(this._columnDefsByName.values()).forEach(i=>i.resetStickyChanged())}_getAllRenderRows(){const o=[],s=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r<this._data.length;r++){let i=this._data[r];const l=this._getRenderRowsForData(i,r,s.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(let c=0;c<l.length;c++){let u=l[c];const d=this._cachedRenderRowsMap.get(u.data);d.has(u.rowDef)?d.get(u.rowDef).push(u):d.set(u.rowDef,[u]),o.push(u)}}return o}_getRenderRowsForData(o,s,r){return this._getRowDefs(o,s).map(l=>{const c=r&&r.has(l)?r.get(l):[];if(c.length){const u=c.shift();return u.dataIndex=s,u}return{data:o,rowDef:l,dataIndex:s}})}_cacheColumnDefs(){this._columnDefsByName.clear(),L(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(s=>{this._columnDefsByName.has(s.name),this._columnDefsByName.set(s.name,s)})}_cacheRowDefs(){this._headerRowDefs=L(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=L(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=L(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const o=this._rowDefs.filter(s=>!s.when);this._defaultRowDef=o[0]}_renderUpdatedColumns(){const o=(l,c)=>l||!!c.getColumnsDiff(),s=this._rowDefs.reduce(o,!1);s&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(o,!1);r&&this._forceRenderHeaderRows();const i=this._footerRowDefs.reduce(o,!1);return i&&this._forceRenderFooterRows(),s||r||i}_switchDataSource(o){this._data=[],(0,p.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),o||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=o}_observeRenderChanges(){if(!this.dataSource)return;let o;(0,p.Z9)(this.dataSource)?o=this.dataSource.connect(this):(0,ke.b)(this.dataSource)?o=this.dataSource:Array.isArray(this.dataSource)&&(o=(0,se.of)(this.dataSource)),this._renderChangeSubscription=o.pipe((0,b.R)(this._onDestroy)).subscribe(s=>{this._data=s||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((o,s)=>this._renderRow(this._headerRowOutlet,o,s)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((o,s)=>this._renderRow(this._footerRowOutlet,o,s)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(o,s){const r=Array.from(s.columns||[]).map(c=>this._columnDefsByName.get(c)),i=r.map(c=>c.sticky),l=r.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(o,i,l,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(o){const s=[];for(let r=0;r<o.viewContainer.length;r++){const i=o.viewContainer.get(r);s.push(i.rootNodes[0])}return s}_getRowDefs(o,s){if(1==this._rowDefs.length)return[this._rowDefs[0]];let r=[];if(this.multiTemplateDataRows)r=this._rowDefs.filter(i=>!i.when||i.when(s,o));else{let i=this._rowDefs.find(l=>l.when&&l.when(s,o))||this._defaultRowDef;i&&r.push(i)}return r}_getEmbeddedViewArgs(o,s){return{templateRef:o.rowDef.template,context:{$implicit:o.data},index:s}}_renderRow(o,s,r,i={}){const l=o.viewContainer.createEmbeddedView(s.template,i,r);return this._renderCellTemplateForItem(s,i),l}_renderCellTemplateForItem(o,s){for(let r of this._getCellTemplates(o))w.mostRecentCellOutlet&&w.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,s);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const o=this._rowOutlet.viewContainer;for(let s=0,r=o.length;s<r;s++){const l=o.get(s).context;l.count=r,l.first=0===s,l.last=s===r-1,l.even=s%2==0,l.odd=!l.even,this.multiTemplateDataRows?(l.dataIndex=this._renderRows[s].dataIndex,l.renderIndex=s):l.index=this._renderRows[s].dataIndex}}_getCellTemplates(o){return o&&o.columns?Array.from(o.columns,s=>{const r=this._columnDefsByName.get(s);return o.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const o=this._document.createDocumentFragment(),s=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of s){const i=this._document.createElement(r.tag);i.setAttribute("role","rowgroup");for(const l of r.outlets)i.appendChild(l.elementRef.nativeElement);o.appendChild(i)}this._elementRef.nativeElement.appendChild(o)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const o=(s,r)=>s||r.hasStickyChanged();this._headerRowDefs.reduce(o,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(o,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(o,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Le(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,se.of)()).pipe((0,b.R)(this._onDestroy)).subscribe(s=>{this._stickyStyler.direction=s,this.updateStickyColumnStyles()})}_getOwnDefs(o){return o.filter(s=>!s._table||s._table===this)}_updateNoDataRow(){const o=this._customNoDataRow||this._noDataRow;if(!o)return;const s=0===this._rowOutlet.viewContainer.length;if(s===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(s){const i=r.createEmbeddedView(o.templateRef),l=i.rootNodes[0];1===i.rootNodes.length&&l?.nodeType===this._document.ELEMENT_NODE&&(l.setAttribute("role","row"),l.classList.add(o._contentClassName))}else r.clear();this._isShowingNoDataRow=s,this._changeDetectorRef.markForCheck()}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(ve.Is,8),e.Y36(R.K0),e.Y36(Ce.t4),e.Y36(p.k),e.Y36(P),e.Y36(te.rL),e.Y36(q,12),e.Y36(e.R0b,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(o,s,r){if(1&o&&(e.Suo(r,E,5),e.Suo(r,g,5),e.Suo(r,O,5),e.Suo(r,k,5),e.Suo(r,S,5)),2&o){let i;e.iGM(i=e.CRH())&&(s._noDataRow=i.first),e.iGM(i=e.CRH())&&(s._contentColumnDefs=i),e.iGM(i=e.CRH())&&(s._contentRowDefs=i),e.iGM(i=e.CRH())&&(s._contentHeaderRowDefs=i),e.iGM(i=e.CRH())&&(s._contentFooterRowDefs=i)}},viewQuery:function(o,s){if(1&o&&(e.Gf(F,7),e.Gf(N,7),e.Gf(A,7),e.Gf(B,7)),2&o){let r;e.iGM(r=e.CRH())&&(s._rowOutlet=r.first),e.iGM(r=e.CRH())&&(s._headerRowOutlet=r.first),e.iGM(r=e.CRH())&&(s._footerRowOutlet=r.first),e.iGM(r=e.CRH())&&(s._noDataRowOutlet=r.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(o,s){2&o&&e.ekj("cdk-table-fixed-layout",s.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:D,useExisting:t},{provide:p.k,useClass:p.yy},{provide:P,useClass:ie},{provide:q,useValue:null}])],ngContentSelectors:xe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(o,s){1&o&&(e.F$t(Se),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[F,N,A,B],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function L(t,n){return t.concat(Array.from(n))}let Ge=(()=>{var t;class n{}return(t=n).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[te.Cl]}),n})();var de=f(3680);const Ze=[[["caption"]],[["colgroup"],["col"]]],Ie=["caption","colgroup, col"];let ue=(()=>{var t;class n extends H{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return(t=n).\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(t)))(s||t)}}(),t.\u0275cmp=e.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(o,s){2&o&&e.ekj("mdc-table-fixed-layout",s.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:H,useExisting:t},{provide:D,useExisting:t},{provide:P,useClass:ie},{provide:p.k,useClass:p.yy},{provide:q,useValue:null}]),e.qOj],ngContentSelectors:Ie,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(o,s){1&o&&(e.F$t(Ze),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[F,N,A,B],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),n})(),$=(()=>{var t;class n extends v{}return(t=n).\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(t)))(s||t)}}(),t.\u0275dir=e.lG2({type:t,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:v,useExisting:t}]),e.qOj]}),n})(),Q=(()=>{var t;class n extends C{}return(t=n).\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(t)))(s||t)}}(),t.\u0275dir=e.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:C,useExisting:t}]),e.qOj]}),n})(),W=(()=>{var t;class n extends g{get name(){return this._name}set name(o){this._setNameInput(o)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return(t=n).\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(t)))(s||t)}}(),t.\u0275dir=e.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:g,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),e.qOj]}),n})(),X=(()=>{var t;class n extends Z{}return(t=n).\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(t)))(s||t)}}(),t.\u0275dir=e.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[e.qOj]}),n})(),J=(()=>{var t;class n extends I{}return(t=n).\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(t)))(s||t)}}(),t.\u0275dir=e.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[e.qOj]}),n})(),fe=(()=>{var t;class n extends k{}return(t=n).\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(t)))(s||t)}}(),t.\u0275dir=e.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:k,useExisting:t}]),e.qOj]}),n})(),he=(()=>{var t;class n extends O{}return(t=n).\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(t)))(s||t)}}(),t.\u0275dir=e.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:O,useExisting:t}]),e.qOj]}),n})(),me=(()=>{var t;class n extends z{}return(t=n).\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(t)))(s||t)}}(),t.\u0275cmp=e.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:z,useExisting:t}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(o,s){1&o&&e.GkF(0,0)},dependencies:[w],encapsulation:2}),n})(),_e=(()=>{var t;class n extends V{}return(t=n).\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(t)))(s||t)}}(),t.\u0275cmp=e.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[e._Bn([{provide:V,useExisting:t}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(o,s){1&o&&e.GkF(0,0)},dependencies:[w],encapsulation:2}),n})(),Qe=(()=>{var t;class n{}return(t=n).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[de.BQ,Ge,de.BQ]}),n})();var pe=f(2296);function Xe(t,n){1&t&&(e.TgZ(0,"th",12),e._uU(1,"Username"),e.qZA())}function Je(t,n){if(1&t&&(e.TgZ(0,"td",13),e._uU(1),e.ALo(2,"uppercase"),e.qZA()),2&t){const a=n.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a.userName))}}function Ke(t,n){1&t&&(e.TgZ(0,"th",12),e._uU(1,"Day"),e.qZA())}function et(t,n){if(1&t&&(e.TgZ(0,"td",13),e._uU(1),e.ALo(2,"date"),e.qZA()),2&t){const a=n.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,a.day)," ")}}function tt(t,n){1&t&&(e.TgZ(0,"th",12),e._uU(1,"Hour"),e.qZA())}function ot(t,n){if(1&t&&(e.TgZ(0,"td",13),e._uU(1),e.ALo(2,"date"),e.qZA()),2&t){const a=n.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,a.hour,"HH:mm")," ")}}function st(t,n){1&t&&(e.TgZ(0,"th",12),e._uU(1,"Nombres Personnes"),e.qZA())}function nt(t,n){if(1&t&&(e.TgZ(0,"td",13),e._uU(1),e.qZA()),2&t){const a=n.$implicit;e.xp6(1),e.hij(" ",a.totalGuests," ")}}function at(t,n){1&t&&(e.TgZ(0,"th",12),e._uU(1,"Allergies"),e.qZA())}function rt(t,n){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const a=n.$implicit;e.xp6(1),e.hij("",a," - ")}}function it(t,n){if(1&t&&(e.TgZ(0,"td",13),e._uU(1," - "),e.YNc(2,rt,2,1,"span",14),e.qZA()),2&t){const a=n.$implicit;e.xp6(2),e.Q6J("ngForOf",a.allergies)}}function lt(t,n){1&t&&e._UZ(0,"tr",15)}function ct(t,n){1&t&&e._UZ(0,"tr",16)}let dt=(()=>{var t;class n{constructor(o,s){this.store=o,this.reservationService=s,this.reservationList=[],this.reservationListToday=[],this.today=new Date,this.dataSource=this.reservationListToday,this.columnsToDisplay=["username","day","hour","totalGuests","allergies"],this.reservationService.getReservation()}ngOnInit(){this.store.select("reservations").subscribe(o=>{this.reservationList=o,this.reservationListToday=this.reservationList.filter(s=>new Date(s.day).getMonth()>=this.today.getMonth()&&new Date(s.day).getFullYear()>=this.today.getFullYear()),this.dataSource=this.reservationListToday})}reservAll(){this.dataSource=this.reservationList}reservToday(){this.dataSource=this.reservationListToday}}return(t=n).\u0275fac=function(o){return new(o||t)(e.Y36(ye.y),e.Y36(De.D))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-reservation-view"]],decls:23,vars:3,consts:[[1,"container"],["mat-button","",3,"click"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","username"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","day"],["matColumnDef","hour"],["matColumnDef","totalGuests"],["matColumnDef","allergies"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row",""]],template:function(o,s){1&o&&(e.TgZ(0,"div",0)(1,"button",1),e.NdJ("click",function(){return s.reservAll()}),e._uU(2,"TOUT"),e.qZA(),e.TgZ(3,"button",1),e.NdJ("click",function(){return s.reservToday()}),e._uU(4,"A venir"),e.qZA()(),e.TgZ(5,"table",2),e.ynx(6,3),e.YNc(7,Xe,2,0,"th",4),e.YNc(8,Je,3,3,"td",5),e.BQk(),e.ynx(9,6),e.YNc(10,Ke,2,0,"th",4),e.YNc(11,et,3,3,"td",5),e.BQk(),e.ynx(12,7),e.YNc(13,tt,2,0,"th",4),e.YNc(14,ot,3,4,"td",5),e.BQk(),e.ynx(15,8),e.YNc(16,st,2,0,"th",4),e.YNc(17,nt,2,1,"td",5),e.BQk(),e.ynx(18,9),e.YNc(19,at,2,0,"th",4),e.YNc(20,it,3,1,"td",5),e.BQk(),e.YNc(21,lt,1,0,"tr",10),e.YNc(22,ct,1,0,"tr",11),e.qZA()),2&o&&(e.xp6(5),e.Q6J("dataSource",s.dataSource),e.xp6(16),e.Q6J("matHeaderRowDef",s.columnsToDisplay),e.xp6(1),e.Q6J("matRowDefColumns",s.columnsToDisplay))},dependencies:[R.sg,ue,Q,fe,W,$,he,X,J,me,_e,pe.lW,R.gd,R.uU],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-column-username[_ngcontent-%COMP%]{border-right:1px solid currentColor;padding-right:1rem;text-align:center}.mat-column-day[_ngcontent-%COMP%], .mat-column-hour[_ngcontent-%COMP%], .mat-column-totalGuests[_ngcontent-%COMP%]{padding:.5rem 1rem;text-align:center}"]}),n})();var ut=f(1896);const ge=[{path:"",canActivate:[f(5080).u],component:dt}];let ht=(()=>{var t;class n{}return(t=n).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[R.ez,ut.Bz.forChild(ge),Qe,pe.ot]}),n})()}}]);