1(self.webpackChunkpc=self.webpackChunkpc||[]).push([[9027],{20305:(Nt,ne,g)=>{"use strict";g.d(ne,{A:()=>Ke});var d=g(54438);let R=(()=>{var ve;class He{}return(ve=He).\u0275fac=function(We){return new(We||ve)},ve.\u0275prov=d.jDH({token:ve,factory:ve.\u0275fac}),He})();var A=g(24788),x=g(39187),C=g(9310);const e=(0,C.vy)(x.Wh.currentActivite,(0,C.on)(x.En.xm,(ve,{payload:He})=>Object.assign({},He))),y=(0,C.vy)(x.Wh.evenementList,(0,C.on)(x.En.sc,(ve,{payload:He})=>Object.assign([],He)),(0,C.on)(x.En.c,(ve,{payload:He})=>{const Qe=[...ve],We=Qe.findIndex(dt=>dt.id===He);return We>=0&&Qe.splice(We,1),Qe})),U=(0,C.vy)(x.Wh.currentEvenement,(0,C.on)(x.En.ri,(ve,{payload:He})=>Object.assign({},He))),Ae=(0,C.vy)(x.Wh.currentAdhesion,(0,C.on)(x.En.zI,(ve,{payload:He})=>Object.assign({},He))),ge=(0,C.vy)(x.Wh.allowInvite,(0,C.on)(x.En.t2,(ve,{payload:He})=>He)),Fe={currentActivite:function de(ve,He){return e(ve,He)},evenementList:function a(ve,He){return y(ve,He)},currentEvenement:function O(ve,He){return U(ve,He)},currentAdhesion:function Te(ve,He){return Ae(ve,He)},allowInvite:function Ce(ve,He){return ge(ve,He)}};var xe=g(49484),qe=g(67948),rt=g(66345),nt=g(77339),vt=g(6064),Pt=g(45398),l=g(51188),ot=g(10916);let Ke=(()=>{var ve;class He{}return(ve=He).\u0275fac=function(We){return new(We||ve)},ve.\u0275mod=d.$C({type:ve}),ve.\u0275inj=d.G2t({providers:[xe.Z,qe.L,rt.H,A.e],imports:[l.iI,ot.G,Pt.f,vt.E,C.md.forFeature("activite",Fe),nt.Vm.forFeature([R])]}),He})()},24788:(Nt,ne,g)=>{"use strict";g.d(ne,{e:()=>Te});var d=g(54438),R=g(81018),A=g(9310),x=g(49823),C=g(60177),e=g(81405),de=g(88974),y=g(87748),a=g(28167);const U=ge=>({"filter-searche-global-active":ge});function O(ge,Ce){1&ge&&d.nrm(0,"app-copyright-footer")}function Ae(ge,Ce){if(1&ge&&(d.j41(0,"div",2),d.nrm(1,"vplus-activite-profil"),d.DNE(2,O,1,0,"app-copyright-footer"),d.k0s()),2&ge){const Fe=d.XpG();d.R7$(2),d.vxM(2,Fe.isMobile?-1:2)}}let Te=(()=>{var ge;class Ce{constructor(){this.store=(0,d.WQX)(A.il),this.platform=(0,d.WQX)(R.OD),this.showContent=!1}ngOnInit(){this.isMobile=this.platform.is("mobileweb")||this.platform.is("ios")||this.platform.is("android"),this.selectIsSearchHeaderVisible$=this.store.select(x.selectIsSearchHeaderVisible)}ionViewWillEnter(){this.showContent=!0}ionViewDidLeave(){this.showContent=!1}onContentClick(){this.store.dispatch(x.Actions.setIsSearchHeaderVisible({payload:!1}))}}return(ge=Ce).\u0275fac=function(xe){return new(xe||ge)},ge.\u0275cmp=d.VBU({type:ge,selectors:[["vplus-activite-profil-container"]],decls:4,vars:10,consts:[["defaultHref","/utilisateur/profil",1,"hide-desktop","mobile-header",3,"headerTitle","returnButtonType","forceDefault","menuId"],["id","mesReservations","scrollEvents","true",3,"click","ngClass"],[1,"main-page-container","standard-page-content"]],template:function(xe,qe){1&xe&&(d.nrm(0,"vplus-mobile-header",0),d.j41(1,"ion-content",1),d.nI1(2,"async"),d.bIt("click",function(){return qe.onContentClick()}),d.DNE(3,Ae,3,1,"div",2),d.k0s()),2&xe&&(d.Y8G("headerTitle","")("returnButtonType","back-button")("forceDefault",!0)("menuId","mesReservations"),d.R7$(),d.Y8G("ngClass",d.eq3(8,U,d.bMT(2,6,qe.selectIsSearchHeaderVisible$))),d.R7$(2),d.vxM(3,qe.showContent?3:-1))},dependencies:[C.YU,e.f,de.W9,y.G,a.r,C.Jj],encapsulation:2}),Ce})()},28167:(Nt,ne,g)=>{"use strict";g.d(ne,{r:()=>cr});var d=g(53160),R=g(49823),A=g(68901),x=g(77392),C=g(6681),e=g(22467);class de extends C.bc{constructor(){super(...arguments),this.headerElRef=(0,e._3)()}renderSimpleLayout(s,c){let{props:_,context:E}=this,m=[],h=(0,C.ca)(E.options);return s&&m.push({type:"header",key:"header",isSticky:h,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:s}}),m.push({type:"body",key:"body",liquid:!0,chunk:{content:c}}
1),(0,e.n)(C.cq,{elClasses:["fc-daygrid"],viewSpec:E.viewSpec},(0,e.n)(C.bZ,{liquid:!_.isHeightAuto&&!_.forPrint,collapsibleWidth:_.forPrint,cols:[],sections:m}))}renderHScrollLayout(s,c,_,E){let m=this.context.pluginHooks.scrollGridImpl;if(!m)throw new Error("No ScrollGrid implementation");let{props:h,context:V}=this,W=!h.forPrint&&(0,C.ca)(V.options),Q=!h.forPrint&&(0,C.c9)(V.options),le=[];return s&&le.push({type:"header",key:"header",isSticky:W,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:s}]}),le.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:c}]}),Q&&le.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:C.c8}]}),(0,e.n)(C.cq,{elClasses:["fc-daygrid"],viewSpec:V.viewSpec},(0,e.n)(m,{liquid:!h.isHeightAuto&&!h.forPrint,forPrint:h.forPrint,collapsibleWidth:h.forPrint,colGroups:[{cols:[{span:_,minWidth:E}]}],sections:le}))}}function y(f,s){let c=[];for(let _=0;_<s;_+=1)c[_]=[];for(let _ of f)c[_.row].push(_);return c}function a(f,s){let c=[];for(let _=0;_<s;_+=1)c[_]=[];for(let _ of f)c[_.firstCol].push(_);return c}function U(f,s){let c=[];if(f){for(let _=0;_<s;_+=1)c[_]={affectedInstances:f.affectedInstances,isEvent:f.isEvent,segs:[]};for(let _ of f.segs)c[_.row].segs.push(_)}else for(let _=0;_<s;_+=1)c[_]=null;return c}const O=(0,C.x)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ae(f){let{display:s}=f.eventRange.ui;return"list-item"===s||"auto"===s&&!f.eventRange.def.allDay&&f.firstCol===f.lastCol&&f.isStart&&f.isEnd}class Te extends C.B{render(){let{props:s}=this;return(0,e.n)(C.cg,Object.assign({}
1,s,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:O,defaultDisplayEventEnd:s.defaultDisplayEventEnd,disableResizing:!s.seg.eventRange.def.allDay}))}}class ge extends C.B{render(){let{props:s,context:c}=this,{options:_}=c,{seg:E}=s,h=(0,C.bO)(E,_.eventTimeFormat||O,c,!0,s.defaultDisplayEventEnd);return(0,e.n)(C.ck,Object.assign({},s,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:(0,C.bS)(s.seg,c),defaultGenerator:Ce,timeText:h,isResizing:!1,isDateSelecting:!1}))}}function Ce(f){return(0,e.n)(e.FK,null,(0,e.n)("div",{className:"fc-daygrid-event-dot",style:{borderColor:f.borderColor||f.backgroundColor}}),f.timeText&&(0,e.n)("div",{className:"fc-event-time"},f.timeText),(0,e.n)("div",{className:"fc-event-title"},f.event.title||(0,e.n)(e.FK,null,"\xa0")))}class Fe extends C.B{constructor(){super(...arguments),this.compileSegs=(0,C.z)(xe)}render(){let{props:s}=this,{allSegs:c,invisibleSegs:_}=this.compileSegs(s.singlePlacements);return(0,e.n)(C.co,{elClasses:["fc-daygri
1d-more-link"],dateProfile:s.dateProfile,todayRange:s.todayRange,allDayDate:s.allDayDate,moreCnt:s.moreCnt,allSegs:c,hiddenSegs:_,alignmentElRef:s.alignmentElRef,alignGridTop:s.alignGridTop,extraDateSpan:s.extraDateSpan,popoverContent:()=>{let E=(s.eventDrag?s.eventDrag.affectedInstances:null)||(s.eventResize?s.eventResize.affectedInstances:null)||{};return(0,e.n)(e.FK,null,c.map(m=>{let h=m.eventRange.instance.instanceId;return(0,e.n)("div",{className:"fc-daygrid-event-harness",key:h,style:{visibility:E[h]?"hidden":""}},Ae(m)?(0,e.n)(ge,Object.assign({seg:m,isDragging:!1,isSelected:h===s.eventSelection,defaultDisplayEventEnd:!1},(0,C.bQ)(m,s.todayRange))):(0,e.n)(Te,Object.assign({seg:m,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:h===s.eventSelection,defaultDisplayEventEnd:!1},(0,C.bQ)(m,s.todayRange))))}))}})}}function xe(f){let s=[],c=[];for(let _ of f)s.push(_.seg),_.isVisible||c.push(_.seg);return{allSegs:s,invisibleSegs:c}}const qe=(0,C.x)({week:"narrow"});class rt extends C.bc{constructor(){super(...arguments),this.rootElRef=(0,e._3)(),this.state={dayNumberId:(0,C.a3)()},this.handleRootEl=s=>{(0,C.W)(this.rootElRef,s),(0,C.W)(this.props.elRef,s)}}render(){let{context:s,props:c,state:_,rootElRef:E}=this,{options:m,dateEnv:h}=s,{date:V,dateProfile:W}=c;const Q=c.showDayNumber&&function vt(f,s,c){const{start:_,end:E}=s,m=(0,C.be)(E,-1),h=c.getYear(_),V=c.getMonth(_),W=c.getYear(m),Q=c.getMonth(m);return!(h===W&&V===Q)&&(f.valueOf()===_.valueOf()||1===c.getDay(f)&&f.valueOf()<E.valueOf())}(V,W.currentRange,h);return(0,e.n)(C.ci,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
1d-day",...c.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},c.extraDataAttrs),c.showDayNumber?{"aria-labelledby":_.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:nt,date:V,dateProfile:W,todayRange:c.todayRange,showDayNumber:c.showDayNumber,isMonthStart:Q,extraRenderProps:c.extraRenderProps},(le,Pe)=>(0,e.n)("div",{ref:c.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:c.minHeight}},c.showWeekNumber&&(0,e.n)(C.cn,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:(0,C.a_)(s,V,"week"),date:V,defaultFormat:qe}),!Pe.isDisabled&&(c.showDayNumber||(0,C.cj)(m)||c.forceDayTop)?(0,e.n)("div",{className:"fc-daygrid-day-top"},(0,e.n)(le,{elTag:"a",elClasses:["fc-daygrid-day-number",Q&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},(0,C.a_)(s,V)),{id:_.dayNumberId})})):c.showDayNumber?(0,e.n)("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},(0,e.n)("a",{className:"fc-daygrid-day-number"},"\xa0")):void 0,(0,e.n)("div",{className:"fc-daygrid-day-events",ref:c.fgContentElRef},c.fgContent,(0,e.n)("div",{className:"fc-daygrid-day-bottom",style:{marginTop:c.moreMarginTop}},(0,e.n)(Fe,{allDayDate:V,singlePlacements:c.singlePlacements,moreCnt:c.moreCnt,alignmentElRef:E,alignGridTop:!c.showDayNumber,extraDateSpan:c.extraDateSpan,dateProfile:c.dateProfile,eventSelection:c.eventSelection,eventDrag:c.eventDrag,eventResize:c.eventResize,todayRange:c.todayRange}))),(0,e.n)("div",{className:"fc-daygrid-day-bg"},c.bgContent)))}}function nt(f){return f.dayNumberText||(0,e.n)(e.FK,null,"\xa0")}function Pt(f){return f.eventRange.instance.instanceId+":"+f.firstCol}function l(f){return Pt(f)+":"+f.lastCol}function He(f,s,c,_){if(f.firstCol===s&&f.lastCol===c-1)return f;let E=f.eventRange,m=E.range,h=(0,C.o)(m,{start:_[s].date,end:(0,C.t)(_[c-1].date,1)});return Object.assign(Object.assign({},f),{firstCol:s,lastCol:c-1,eventRange:{def:E.def,ui:Object.assign(Object.assign({},E.ui),{durationEditable:!1}),instance:E.instance,range:h},isStart:f.isStart&&h.start.valueOf()===m.start.valueOf(),isEnd:f.isEnd&&h.end.valueOf()===m.end.valueOf()})}class Qe extends C.by{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(s){const c=super.addSegs(s),{entriesByLevel:_}=this,E=m=>!this.forceHidden[(0,C.bz)(m)];for(let m=0;m<_.length;m+=1)_[m]=_[m].filter(E);return c}handleInvalidInsertion(s,c,_){const{entriesByLevel:E,forceHidden:m}=this,{touchingEntry:h,touchingLevel:V,touchingLateral:W}=s;if(this.hiddenConsumes&&h){const Q=(0,C.bz)(h);if(!m[Q])if(this.allowReslicing){const le=Object.assign(Object.assign({},h),{span:(0,C.bD)(h.span,c.span)});m[(0,C.bz)(le)]=!0,E[V][W]=le,_.push(le),this.splitEntry(h,c,_)}else m[Q]=!0,_.push(h)}super.handleInvalidInsertion(s,c,_)}}class We extends C.bc{constructor(){super(...arguments),this.cellElRefs=new C.cd,this.frameElRefs=new C.cd,this.fgElRefs=new C.cd,this.segHarnessRefs=new C.cd,this.rootElRef=(0,e._3)(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=s=>{s&&this.updateSizing(!0)}}render(){let{props:s,state:c,context:_}=this,{options:E}=_,m=s.cells.length,h=a(s.businessHourSegs,m),V=a(s.bgEventSegs,m),W=a(this.getHighlightSegs(),m),Q=a(this.getMirrorSegs(),m),{singleColPlacements:le,multiColPlacements:Pe,moreCnts:Xe,moreMarginTops:Oe}=function ot(f,s,c,_,E,m,h){let V=new Qe(Me=>E[f[Me.index].eventRange.instance.instanceId+":"+Me.span.start+":"+(Me.span.end-1)]||1);V.allowReslicing=!0,V.strictOrder=_,!0===s||!0===c?(V.maxCoord=m,V.hiddenConsumes=!0):"number"==typeof s?V.maxStackCnt=s:"number"==typeof c&&(V.maxStackCnt=c,V.hiddenConsumes=!0);let W=[],Q=[];for(let Me=0;Me<f.length;Me+=1){let ut=f[Me],oe=l(ut);null!=E[oe]?W.push({index:Me,span:{start:ut.firstCol,end:ut.lastCol+1}}):Q.push(ut)}let le=V.addSegs(W),Pe=V.toRects(),{singleColPlacements:Xe,multiColPlacements:Oe,leftoverMargins:st}=function Ke(f,s,c){let _=function ve(f,s){let c=[];for(let _=0;_<s;_+=1)c.push([]);for(let _ of f)for(let E=_.span.start;E<_.span.end;E+=1)c[E].push(_);return c}(f,c.length),E=[],m=[],h=[];for(let V=0;V<c.length;V+=1){let W=_[V],Q=[],le=0,Pe=0;
1for(let Oe of W)Q.push({seg:He(s[Oe.index],V,V+1,c),isVisible:!0,isAbsolute:!1,absoluteTop:Oe.levelCoord,marginTop:Oe.levelCoord-le}),le=Oe.levelCoord+Oe.thickness;let Xe=[];le=0,Pe=0;for(let Oe of W){let st=s[Oe.index],fe=Oe.span.start===V;Pe+=Oe.levelCoord-le,le=Oe.levelCoord+Oe.thickness,Oe.span.end-Oe.span.start>1?(Pe+=Oe.thickness,fe&&Xe.push({seg:He(st,Oe.span.start,Oe.span.end,c),isVisible:!0,isAbsolute:!0,absoluteTop:Oe.levelCoord,marginTop:0})):fe&&(Xe.push({seg:He(st,Oe.span.start,Oe.span.end,c),isVisible:!0,isAbsolute:!1,absoluteTop:Oe.levelCoord,marginTop:Pe}),Pe=0)}E.push(Q),m.push(Xe),h.push(Pe)}return{singleColPlacements:E,multiColPlacements:m,leftoverMargins:h}}(Pe,f,h),k=[],fe=[];for(let Me of Q){Oe[Me.firstCol].push({seg:Me,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let ut=Me.firstCol;ut<=Me.lastCol;ut+=1)Xe[ut].push({seg:He(Me,ut,ut+1,h),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let Me=0;Me<h.length;Me+=1)k.push(0);for(let Me of le){let ut=f[Me.index],oe=Me.span;Oe[oe.start].push({seg:He(ut,oe.start,oe.end,h),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let Qt=oe.start;Qt<oe.end;Qt+=1)k[Qt]+=1,Xe[Qt].push({seg:He(ut,Qt,Qt+1,h),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let Me=0;Me<h.length;Me+=1)fe.push(st[Me]);return{singleColPlacements:Xe,multiColPlacements:Oe,moreCnts:k,moreMarginTops:fe}}((0,C.bP)(s.fgEventSegs,E.eventOrder),s.dayMaxEvents,s.dayMaxEventRows,E.eventOrderStrict,c.segHeights,c.maxContentHeight,s.cells),st=s.eventDrag&&s.eventDrag.affectedInstances||s.eventResize&&s.eventResize.affectedInstances||{};return(0,e.n)("tr",{ref:this.rootElRef,role:"row"},s.renderIntro&&s.renderIntro(),s.cells.map((k,fe)=>{let Me=this.renderFgSegs(fe,s.forPrint?le[fe]:Pe[fe],s.todayRange,st),ut=this.renderFgSegs(fe,function dt(f,s){if(!f.length)return[];let c=function Ct(f){let s={};for(let c of f)for(let _ of c)s[_.seg.eventRange.instance.instanceId]=_.absoluteTop;return s}(s);return f.map(_=>({seg:_,isVisible:!0,isAbsolute:!0,absoluteTop:c[_.eventRange.instance.instanceId],marginTop:0}))}(Q[fe],Pe),s.todayRange,{},!!s.eventDrag,!!s.eventResize,!1);return(0,e.n)(rt,{key:k.key,elRef:this.cellElRefs.createRef(k.key),innerElRef:this.frameElRefs.createRef(k.key),dateProfile:s.dateProfile,date:k.date,showDayNumber:s.showDayNumbers,showWeekNumber:s.showWeekNumbers&&0===fe,forceDayTop:s.showWeekNumbers,todayRange:s.todayRange,eventSelection:s.eventSelection,eventDrag:s.eventDrag,eventResize:s.eventResize,extraRenderProps:k.extraRenderProps,extraDataAttrs:k.extraDataAttrs,extraClassNames:k.extraClassNames,extraDateSpan:k.extraDateSpan,moreCnt:Xe[fe],moreMarginTop:Oe[fe],singlePlacements:le[fe],fgContentElRef:this.fgElRefs.createRef(k.key),fgContent:(0,e.n)(e.FK,null,(0,e.n)(e.FK,null,Me),(0,e.n)(e.FK,null,ut)),bgContent:(0,e.n)(e.FK,null,this.renderFillSegs(W[fe],"highlight"),this.renderFillSegs(h[fe],"non-business"),this.renderFillSegs(V[fe],"bg-event")),minHeight:s.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(s,c){this.updateSizing(!(0,C.E)(s,this.props))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:s}=this;return s.eventDrag&&s.eventDrag.segs.length?s.eventDrag.segs:s.eventResize&&s.eventResize.segs.length?s.eventResize.segs:s.dateSelectionSegs}getMirrorSegs(){let{props:s}=this;return s.eventResize&&s.eventResize.segs.length?s.eventResize.segs:[]}renderFgSegs(s,c,_,E,m,h,V){let{context:W}=this,{eventSelection:Q}=this.props,{framePositions:le}=this.state,Pe=1===this.props.cells.length,Xe=m||h||V,Oe=[];if(le)for(let st of c){let{seg:k}=st,{instanceId:fe}=k.eventRange.instance,Me=st.isVisible&&!E[fe],ut=st.isAbsolute,oe="",Qt="";ut&&(W.isRtl?(Qt=0,oe=le.lefts[k.lastCol]-le.lefts[k.firstCol]):(oe=0,Qt=le.rights[k.firstCol]-le.rights[k.lastCol])),Oe.push((0,e.n)("div",{className:"fc-daygrid-event-harness"+(ut?" fc-daygrid-event-harness-abs":""),key:Pt(k),ref:Xe?null:this.segHarnessRefs.createRef(l(k)),style:{visibility:Me?"":"hidden",marginTop:ut?"":st.marginTop,top:ut?st.absoluteTop:"",left:oe,right:Qt}},Ae(k)?(0,e.n)(ge,Object.assign({seg:k,isDragging:m,isSelected:fe===Q,defaultDisplayEventEnd:Pe},(0,C.bQ)(k,_))):(0,e.n)(Te,Object.assign({seg:k,isDragging:m,isResizing:h,isDateSelecting:V,isSelected:fe===Q,defaultDisplayEventEnd:Pe},(0,C.bQ)(k,_)))))}return Oe}renderFillSegs(s,c){let{isRtl:_}=this.context,{todayRange:E}=this.props,{framePositions:m}=this.state,h=[];if(m)for(let V of s){let W=_?{right:0,left:m.lefts[V.lastCol]-m.lefts[V.firstCol]}:{left:0,right:m.rights[V.firstCol]-m.rights[V.lastCol]};h.push((0,e.n)("div",{key:(0,C.bR)(V.eventRange),className:"fc-daygri
1d-bg-harness",style:W},"bg-event"===c?(0,e.n)(C.cm,Object.assign({seg:V},(0,C.bQ)(V,E))):(0,C.cl)(c)))}return(0,e.n)(e.FK,{},...h)}updateSizing(s){let{props:c,state:_,frameElRefs:E}=this;if(!c.forPrint&&null!==c.clientWidth){if(s){let W=c.cells.map(Q=>E.currentMap[Q.key]);if(W.length){let Q=this.rootElRef.current,le=new C.b8(Q,W,!0,!1);(!_.framePositions||!_.framePositions.similarTo(le))&&this.setState({framePositions:new C.b8(Q,W,!0,!1)})}}const m=this.state.segHeights,h=this.querySegHeights(),V=!0===c.dayMaxEvents||!0===c.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},m),h),maxContentHeight:V?this.computeMaxContentHeight():null})}}querySegHeights(){let s=this.segHarnessRefs.currentMap,c={};for(let _ in s){let E=Math.round(s[_].getBoundingClientRect().height);c[_]=Math.max(c[_]||0,E)}return c}computeMaxContentHeight(){let s=this.props.cells[0].key,_=this.fgElRefs.currentMap[s];return this.cellElRefs.currentMap[s].getBoundingClientRect().bottom-_.getBoundingClientRect().top}getCellEls(){let s=this.cellElRefs.currentMap;return this.props.cells.map(c=>s[c.key])}}We.addStateEquality({segHeights:C.E});class en extends C.bc{constructor(){super(...arguments),this.splitBusinessHourSegs=(0,C.z)(y),this.splitBgEventSegs=(0,C.z)(Je),this.splitFgEventSegs=(0,C.z)(y),this.splitDateSelectionSegs=(0,C.z)(y),this.splitEventDrag=(0,C.z)(U),this.splitEventResize=(0,C.z)(U),this.rowRefs=new C.cd}render(){let{props:s,context:c}=this,_=s.cells.length,E=this.splitBusinessHourSegs(s.businessHourSegs,_),m=this.splitBgEventSegs(s.bgEventSegs,_),h=this.splitFgEventSegs(s.fgEventSegs,_),V=this.splitDateSelectionSegs(s.dateSelectionSegs,_),W=this.splitEventDrag(s.eventDrag,_),Q=this.splitEventResize(s.eventResize,_),le=_>=7&&s.clientWidth?s.clientWidth/c.options.aspectRatio/6:null;return(0,e.n)(C.a6,{unit:"day"},(Pe,Xe)=>(0,e.n)(e.FK,null,s.cells.map((Oe,st)=>(0,e.n)(We,{ref:this.rowRefs.createRef(st),key:Oe.length?Oe[0].date.toISOString():st,showDayNumbers:_>1,showWeekNumbers:s.showWeekNumbers,todayRange:Xe,dateProfile:s.dateProfile,cells:Oe,renderIntro:s.renderRowIntro,businessHourSegs:E[st],eventSelection:s.eventSelection,bgEventSegs:m[st],fgEventSegs:h[st],dateSelectionSegs:V[st],eventDrag:W[st],eventResize:Q[st],dayMaxEvents:s.dayMaxEvents,dayMaxEventRows:s.dayMaxEventRows,clientWidth:s.clientWidth,clientHeight:s.clientHeight,cellMinHeight:le,forPrint:s.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const s=this.rowRefs.currentMap[0].getCellEls()[0],c=s?s.closest(".fc-daygrid-body"):null;c&&(this.rootEl=c,this.context.registerInteractiveComponent(this,{el:c,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new C.b8(this.rootEl,this.rowRefs.collect().map(s=>s.getCellEls()[0]),!1,!0),this.colPositions=new C.b8(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(s,c){let{colPositions:_,rowPositions:E}=this,m=_.leftToIndex(s),h=E.topToIndex(c);if(null!=h&&null!=m){let V=this.props.cells[h][m];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(h,m),allDay:!0},V.extraDateSpan),dayEl:this.getCellEl(h,m),rect:{left:_.lefts[m],right:_.rights[m],top:E.tops[h],bottom:E.bottoms[h]},layer:0}}return null}getCellEl(s,c){return this.rowRefs.currentMap[s].getCellEls()[c]}getCellRange(s,c){let _=this.props.cells[s][c].date;return{start:_,end:(0,C.t)(_,1)}}}function Je(f,s){return y(f.filter(zt),s)}function zt(f){return f.eventRange.def.allDay}class _t extends C.bc{constructor(){super(...arguments),this.elRef=(0,e._3)(),this.needsScrollReset=!1}render(){let{props:s}=this,{dayMaxEventRows:c,dayMaxEvents:_,expandRows:E}=s,m=!0===_||!0===c;return m&&!E&&(m=!1,c=null,_=null),(0,e.n)("div",{ref:this.elRef,className:["fc-daygrid-body",m?"fc-daygri
1d-body-balanced":"fc-daygrid-body-unbalanced",E?"":"fc-daygrid-body-natural"].join(" "),style:{width:s.clientWidth,minWidth:s.tableMinWidth}},(0,e.n)("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:s.clientWidth,minWidth:s.tableMinWidth,height:E?s.clientHeight:""}},s.colGroupNode,(0,e.n)("tbody",{role:"presentation"},(0,e.n)(en,{dateProfile:s.dateProfile,cells:s.cells,renderRowIntro:s.renderRowIntro,showWeekNumbers:s.showWeekNumbers,clientWidth:s.clientWidth,clientHeight:s.clientHeight,businessHourSegs:s.businessHourSegs,bgEventSegs:s.bgEventSegs,fgEventSegs:s.fgEventSegs,dateSelectionSegs:s.dateSelectionSegs,eventSelection:s.eventSelection,eventDrag:s.eventDrag,eventResize:s.eventResize,dayMaxEvents:_,dayMaxEventRows:c,forPrint:s.forPrint,isHitComboAllowed:s.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(s){s.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const s=function ie(f,s){let c;return s.currentRangeUnit.match(/year|month/)&&(c=f.querySelector(`[data-date="${(0,C.bv)(s.currentDate)}-01"]`)),c||(c=f.querySelector(`[data-date="${(0,C.bt)(s.currentDate)}"]`)),c}(this.elRef.current,this.props.dateProfile);if(s){const c=s.closest(".fc-daygrid-body"),_=c.closest(".fc-scroller"),E=s.getBoundingClientRect().top-c.getBoundingClientRect().top;_.scrollTop=E?E+1:0}this.needsScrollReset=!1}}}class Ye extends C.bU{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(s,c){return c.sliceRange(s)}}class re extends C.bc{constructor(){super(...arguments),this.slicer=new Ye,this.tableRef=(0,e._3)()}render(){let{props:s,context:c}=this;return(0,e.n)(_t,Object.assign({ref:this.tableRef},this.slicer.sliceProps(s,s.dateProfile,s.nextDayThreshold,c,s.dayTableModel),{dateProfile:s.dateProfile,cells:s.dayTableModel.cells,colGroupNode:s.colGroupNode,tableMinWidth:s.tableMinWidth,renderRowIntro:s.renderRowIntro,dayMaxEvents:s.dayMaxEvents,dayMaxEventRows:s.dayMaxEventRows,showWeekNumbers:s.showWeekNumbers,expandRows:s.expandRows,headerAlignElRef:s.headerAlignElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:s.forPrint}))}}function ke(f,s){let c=new C.bM(f.renderRange,s);return new C.bT(c,/year|month|week/.test(f.currentRangeUnit))}(0,C.ct)
vendor: 3,529 bytes, line 1
1(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}');var
1De=(0,x.i1)({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:class it extends de{constructor(){super(...arguments),this.buildDayTableModel=(0,C.z)(ke),this.headerRef=(0,e._3)(),this.tableRef=(0,e._3)()}render(){let{options:s,dateProfileGenerator:c}=this.context,{props:_}=this,E=this.buildDayTableModel(_.dateProfile,c),m=s.dayHeaders&&(0,e.n)(C.bI,{ref:this.headerRef,dateProfile:_.dateProfile,dates:E.headerDates,datesRepDistinctDays:1===E.rowCnt}),h=V=>(0,e.n)(re,{ref:this.tableRef,dateProfile:_.dateProfile,dayTableModel:E,businessHours:_.businessHours,dateSelection:_.dateSelection,eventStore:_.eventStore,eventUiBases:_.eventUiBases,eventSelection:_.eventSelection,eventDrag:_.eventDrag,eventResize:_.eventResize,nextDayThreshold:s.nextDayThreshold,colGroupNode:V.tableColGroupNode,tableMinWidth:V.tableMinWidth,dayMaxEvents:s.dayMaxEvents,dayMaxEventRows:s.dayMaxEventRows,showWeekNumbers:s.weekNumbers,expandRows:!_.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:V.clientWidth,clientHeight:V.clientHeight,forPrint:_.forPrint});return s.dayMinWidth?this.renderHScrollLayout(m,h,E.colCnt,s.dayMinWidth):this.renderSimpleLayout(m,h)}},dateProfileGeneratorClass:class Ue extends C.R{buildRenderRange(s,c,_){let E=super.buildRenderRange(s,c,_),{props:m}=this;return function Yt(f){let m,{dateEnv:s,currentRange:c}=f,{start:_,end:E}=c;if(f.snapToWeek&&(_=s.startOfWeek(_),m=s.startOfWeek(E),m.valueOf()!==E.valueOf()&&(E=(0,C.bf)(m,1))),f.fixedWeekCount){let h=s.startOfWeek(s.startOfMonth((0,C.t)(c.end,-1))),V=Math.ceil((0,C.bg)(h,E));E=(0,C.bf)(E,6-V)}return{start:_,end:E}}({currentRange:E,snapToWeek:/^(year|month)$/.test(c),fixedWeekCount:m.fixedWeekCount,dateEnv:m.dateEnv})}}},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});C.bG.touchMouseIgnoreWait=500;let w=0,b=0,J=!1;class ce{constructor(s){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=c=>{if(!this.shouldIgnoreMouse()&&function pe(f){return 0===f.button&&!f.ctrlKey}(c)&&this.tryStart(c)){let _=this.createEventFromMouse(c,!0);this.emitter.trigger("pointerdown",_),this.initScrollWatch(_),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=c=>{let _=this.createEventFromMouse(c);this.recordCoords(_),this.emitter.trigger("pointermove",_)},this.handleMouseUp=c=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(c)),this.cleanup()},this.handleTouchStart=c=>{if(this.tryStart(c)){this.isTouchDragging=!0;let _=this.createEventFromTouch(c,!0);this.emitter.trigger("pointerdown",_),this.initScrollWatch(_);let E=c.target;this.shouldIgnoreMove||E.addEventListener("touchmove",this.handleTouchMove),E.addEventListener("touchend",this.handleTouchEnd),E.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=c=>{let _=this.createEventFromTouch(c);this.recordCoords(_),this.emitter.trigger("pointermove",_)},this.handleTouchEnd=c=>{if(this.isDragging){let _=c.target;_.removeEventListener("touchmove",this.handleTouchMove),_.removeEventListener("touchend",this.handleTouchEnd),_.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(c)),this.cleanup(),this.isTouchDragging=!1,function Ie(){w+=1,setTimeout(()=>{w-=1},C.bG.touchMouseIgnoreWait)}()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=c=>{if(!this.shouldIgnoreMove){let _=window.scrollX-this.prevScrollX+this.prevPageX,E=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:c,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:_,pageY:E,deltaX:_-this.origPageX,deltaY:E-this.origPageY})}},this.containerEl=s,this.emitter=new C.F,s.addEventListener("mousedown",this.handleMouseDown),s.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),function ct(){b+=1,1===b&&window.addEventListener("touchmove",et,{passive:!1})}()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),function ft(){b-=1,b||window.removeEventListener("touchmove",et,{passive:!1})}()}
1tryStart(s){let c=this.querySubjectEl(s);return!(!c||this.handleSelector&&!(0,C.Z)(s.target,this.handleSelector)||(this.subjectEl=c,this.isDragging=!0,this.wasTouchScroll=!1,0))}cleanup(){J=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(s){return this.selector?(0,C.Z)(s.target,this.selector):this.containerEl}shouldIgnoreMouse(){return w||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(J=!0)}initScrollWatch(s){this.shouldWatchScroll&&(this.recordCoords(s),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(s){this.shouldWatchScroll&&(this.prevPageX=s.pageX,this.prevPageY=s.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(s,c){let _=0,E=0;return c?(this.origPageX=s.pageX,this.origPageY=s.pageY):(_=s.pageX-this.origPageX,E=s.pageY-this.origPageY),{origEvent:s,isTouch:!1,subjectEl:this.subjectEl,pageX:s.pageX,pageY:s.pageY,deltaX:_,deltaY:E}}createEventFromTouch(s,c){let E,m,_=s.touches,h=0,V=0;return _&&_.length?(E=_[0].pageX,m=_[0].pageY):(E=s.pageX,m=s.pageY),c?(this.origPageX=E,this.origPageY=m):(h=E-this.origPageX,V=m-this.origPageY),{origEvent:s,isTouch:!0,subjectEl:this.subjectEl,pageX:E,pageY:m,deltaX:h,deltaY:V}}}function et(f){J&&f.preventDefault()}class wt{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(s,c,_){this.sourceEl=s,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=c-window.scrollX,this.origScreenY=_-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(s,c){this.deltaX=s-window.scrollX-this.origScreenX,this.deltaY=c-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(s){s?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=s,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=s)}stop(s,c){let _=()=>{this.cleanup(),c()};s&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(_,this.revertDuration):setTimeout(_,0)}doRevertAnimation(s,c){let _=this.mirrorEl,E=this.sourceEl.getBoundingClientRect();_.style.transition="top "+c+"ms,left "+c+"ms",(0,C.aN)(_,{left:E.left,top:E.top}),(0,C.b0)(_,()=>{_.style.transition="",s()})}cleanup(){this.mirrorEl&&((0,C.aM)(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&(0,C.aN)(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let s=this.sourceElRect,c=this.mirrorEl;return c||(c=this.mirrorEl=this.sourceEl.cloneNode(!0),c.style.userSelect="none",c.style.webkitUserSelect="none",c.style.pointerEvents="none",c.classList.add("fc-event-dragging"),(0,C.aN)(c,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:s.right-s.left,height:s.bottom-s.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(c)),c}}class Ne extends C.b9{constructor(s,c){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=s,this.doesListening=c,this.scrollTop=this.origScrollTop=s.getScrollTop(),this.scrollLeft=this.origScrollLeft=s.getScrollLeft(),this.scrollWidth=s.getScrollWidth(),this.scrollHeight=s.getScrollHeight(),this.clientWidth=s.getClientWidth(),this.clientHeight=s.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(s){this.scrollController.setScrollTop(s),this.doesListening||(this.scrollTop=Math.max(Math.min(s,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(s){this.scrollController.setScrollLeft(s),this.doesListening||(this.scrollLeft=Math.max(Math.min(s,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Ot extends Ne{constructor(s,c){super(new C.ba(s),c)}getEventTarget(){return this.scrollController.el}computeClientRect(){return(0,C.b1)(this.scrollController.el)}}class Ft extends Ne{constructor(s){super(new C.bb,s)}getEventTarget(){return window}
vendor: 8,508 bytes, line 1
1computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const pt="function"==typeof performance?performance.now:Date.now;class yt{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let s=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(s){let c=pt();this.handleSide(s,(c-this.msSinceRequest)/1e3),this.requestAnimation(c)}else this.isAnimating=!1}}}start(s,c,_){this.isEnabled&&(this.scrollCaches=this.buildCaches(_),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(s,c))}handleMove(s,c){if(this.isEnabled){let _=s-window.scrollX,E=c-window.scrollY,m=null===this.pointerScreenY?0:E-this.pointerScreenY,h=null===this.pointerScreenX?0:_-this.pointerScreenX;m<0?this.everMovedUp=!0:m>0&&(this.everMovedDown=!0),h<0?this.everMovedLeft=!0:h>0&&(this.everMovedRight=!0),this.pointerScreenX=_,this.pointerScreenY=E,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(pt()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let s of this.scrollCaches)s.destroy();this.scrollCaches=null}}requestAnimation(s){this.msSinceRequest=s,requestAnimationFrame(this.animate)}handleSide(s,c){let{scrollCache:_}=s,{edgeThreshold:E}=this,m=E-s.distance,h=m*m/(E*E)*this.maxVelocity*c,V=1;switch(s.name){case"left":V=-1;case"right":_.setScrollLeft(_.getScrollLeft()+h*V);break;case"top":V=-1;case"bottom":_.setScrollTop(_.getScrollTop()+h*V)}}computeBestEdge(s,c){let{edgeThreshold:_}=this,E=null,m=this.scrollCaches||[];for(let h of m){let V=h.clientRect,W=s-V.left,Q=V.right-s,le=c-V.top,Pe=V.bottom-c;W>=0&&Q>=0&&le>=0&&Pe>=0&&(le<=_&&this.everMovedUp&&h.canScrollUp()&&(!E||E.distance>le)&&(E={scrollCache:h,name:"top",distance:le}),Pe<=_&&this.everMovedDown&&h.canScrollDown()&&(!E||E.distance>Pe)&&(E={scrollCache:h,name:"bottom",distance:Pe}),W<=_&&this.everMovedLeft&&h.canScrollLeft()&&(!E||E.distance>W)&&(E={scrollCache:h,name:"left",distance:W}),Q<=_&&this.everMovedRight&&h.canScrollRight()&&(!E||E.distance>Q)&&(E={scrollCache:h,name:"right",distance:Q}))}return E}buildCaches(s){return this.queryScrollEls(s).map(c=>c===window?new Ft(!1):new Ot(c,!1))}queryScrollEls(s){let c=[];for(let _ of this.scrollQuery)"object"==typeof _?c.push(_):c.push(...Array.prototype.slice.call(s.getRootNode().querySelectorAll(_)));return c}}class In extends C.bF{constructor(s,c){super(s),this.containerEl=s,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=E=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,(0,C.ap)(document.body),(0,C.ar)(document.body),E.isTouch||E.origEvent.preventDefault(),this.emitter.trigger("pointerdown",E),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(E.subjectEl,E.pageX,E.pageY),this.startDelay(E),this.minDistance||this.handleDistanceSurpassed(E)))},this.onPointerMove=E=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",E),!this.isDistanceSurpassed){let h,m=this.minDistance,{deltaX:V,deltaY:W}=E;h=V*V+W*W,h>=m*m&&this.handleDistanceSurpassed(E)}this.isDragging&&("scroll"!==E.origEvent.type&&(this.mirror.handleMove(E.pageX,E.pageY),this.autoScroller.handleMove(E.pageX,E.pageY)),this.emitter.trigger("dragmove",E))}},this.onPointerUp=E=>{this.isInteracting&&(this.isInteracting=!1,(0,C.aq)(document.body),(0,C.as)(document.body),this.emitter.trigger("pointerup",E),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(E)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let _=this.pointer=new ce(s);_.emitter.on("pointerdown",this.onPointerDown),_.emitter.on("pointermove",this.onPointerMove),_.emitter.on("pointerup",this.onPointerUp),c&&(_.selector=c),this.mirror=new wt,this.autoScroller=new yt}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(s){"number"==typeof this.delay?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(s)},this.delay):this.handleDelayEnd(s)}handleDelayEnd(s){this.isDelayEnded=!0,this.tryStartDrag(s)}handleDistanceSurpassed(s){this.isDistanceSurpassed=!0,this.tryStartDrag(s)}tryStartDrag(s){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(s.pageX,s.pageY,this.containerEl),this.emitter.trigger("dragstart",s),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll())}tryStopDrag(s){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,s))}stopDrag(s){this.isDragging=!1,this.emitter.trigger("dragend",s)}setIgnoreMove(s){this.pointer.shouldIgnoreMove=s}setMirrorIsVisible(s){this.mirror.setIsVisible(s)}setMirrorNeedsRevert(s){this.mirrorNeedsRevert=s}setAutoScrollEnabled(s){this.autoScroller.isEnabled=s}}class tn{constructor(s){this.el=s,this.origRect=(0,C.b4)(s),this.scrollCaches=(0,C.b3)(s).map(c=>new Ot(c,!0))}destroy(){for(let s of this.scrollCaches)s.destroy()}computeLeft(){let s=this.origRect.left;for(let c of this.scrollCaches)s+=c.origScrollLeft-c.getScrollLeft();return s}computeTop(){let s=this.origRect.top;for(let c of this.scrollCaches)s+=c.origScrollTop-c.getScrollTop();return s}isWithinClipping(s,c){let _={left:s,top:c};for(let E of this.scrollCaches)if(!ln(E.getEventTarget())&&!(0,C.aD)(_,E.clientRect))return!1;return!0}}function ln(f){let s=f.tagName;return"HTML"===s||"BODY"===s}class on{constructor(s,c){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=_=>{let{dragging:E}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(_),this.initialHit||!this.requireInitial?(E.setIgnoreMove(!1),this.emitter.trigger("pointerdown",_)):E.setIgnoreMove(!0)},this.handleDragStart=_=>{this.emitter.trigger("dragstart",_),this.handleMove(_,!0)},this.handleDragMove=_=>{this.emitter.trigger("dragmove",_),this.handleMove(_)},this.handlePointerUp=_=>{this.releaseHits(),this.emitter.trigger("pointerup",_)},this.handleDragEnd=_=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,_),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",_)},this.droppableStore=c,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("dragmove",this.handleDragMove),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd),this.dragging=s,this.emitter=new C.F}processFirstCoord(s){let m,c={left:s.pageX,top:s.pageY},_=c,E=s.subjectEl;E instanceof HTMLElement&&(m=(0,C.b4)(E),_=(0,C.aE)(_,m));let h=this.initialHit=this.queryHitForOffset(_.left,_.top);if(h){if(this.useSubjectCenter&&m){let V=(0,C.aC)(m,h.rect);V&&(_=(0,C.aF)(V))}this.coordAdjust=(0,C.aG)(_,c)}else this.coordAdjust={left:0,top:0}}handleMove(s,c){let _=this.queryHitForOffset(s.pageX+this.coordAdjust.left,s.pageY+this.coordAdjust.top);(c||!Vn(this.movingHit,_))&&(this.movingHit=_,this.emitter.trigger("hitupdate",_,!1,s))}prepareHits(){this.offsetTrackers=(0,C.a)(this.droppableStore,s=>(s.component.prepareHits(),new tn(s.el)))}releaseHits(){let{offsetTrackers:s}=this;for(let c in s)s[c].destroy();this.offsetTrackers={}}queryHitForOffset(s,c){let{droppableStore:_,offsetTrackers:E}=this,m=null;for(let h in _){let V=_[h].component,W=E[h];if(W&&W.isWithinClipping(s,c)){let Q=W.computeLeft(),le=W.computeTop(),Pe=s-Q,Xe=c-le,{origRect:Oe}=W,st=Oe.right-Oe.left,k=Oe.bottom-Oe.top;if(Pe>=0&&Pe<st&&Xe>=0&&Xe<k){let fe=V.queryHit(Pe,Xe,st,k);fe&&(0,C.b7)(fe.dateProfile.activeRange,fe.dateSpan.range)&&(this.disablePointCheck||W.el.contains(W.el.getRootNode().elementFromPoint(Pe+Q-window.scrollX,Xe+le-window.scrollY)))&&(!m||fe.layer>m.layer)&&(fe.componentId=h,fe.context=V.context,fe.rect.left+=Q,fe.re
1ct.right+=Q,fe.rect.top+=le,fe.rect.bottom+=le,m=fe)}}}return m}}function Vn(f,s){return!f&&!s||!!f==!!s&&(0,C.bd)(f.dateSpan,s.dateSpan)}function On(f,s){let c={};for(let _ of s.pluginHooks.datePointTransforms)Object.assign(c,_(f,s));return Object.assign(c,function Nn(f,s){return{date:s.toDate(f.range.start),dateStr:s.formatIso(f.range.start,{omitTime:f.allDay}),allDay:f.allDay}}(f,s.dateEnv)),c}let Qn=(()=>{class f extends C.X{constructor(c){super(c),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=V=>{let W=V.origEvent.target,{component:Q,dragging:le}=this,{mirror:Pe}=le,{options:Xe}=Q.context,Oe=Q.context;this.subjectEl=V.subjectEl;let st=this.subjectSeg=(0,C.Y)(V.subjectEl),fe=(this.eventRange=st.eventRange).instance.instanceId;this.relevantEvents=(0,C.aT)(Oe.getCurrentData().eventStore,fe),le.minDistance=V.isTouch?0:Xe.eventDragMinDistance,le.delay=V.isTouch&&fe!==Q.props.eventSelection?function pn(f){let{options:s}=f.context,c=s.eventLongPressDelay;return null==c&&(c=s.longPressDelay),c}(Q):null,Pe.parentNode=Xe.fixedMirrorParent?Xe.fixedMirrorParent:(0,C.Z)(W,".fc"),Pe.revertDuration=Xe.dragRevertDuration;let Me=Q.isValidSegDownEl(W)&&!(0,C.Z)(W,".fc-event-resizer");le.setIgnoreMove(!Me),this.isDragging=Me&&V.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=V=>{let W=this.component.context,Q=this.eventRange,le=Q.instance.instanceId;V.isTouch?le!==this.component.props.eventSelection&&W.dispatch({type:"SELECT_EVENT",eventInstanceId:le}):W.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(W.calendarApi.unselect(V),W.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new C._(W,Q.def,Q.instance),jsEvent:V.origEvent,view:W.viewApi}))},this.handleHitUpdate=(V,W)=>{if(!this.isDragging)return;let Q=this.relevantEvents,le=this.hitDragging.initialHit,Pe=this.component.context,Xe=null,Oe=null,st=null,k=!1,fe={affectedEvents:Q,mutatedEvents:(0,C.H)(),isEvent:!0};if(V){Xe=V.context;let Me=Xe.options;Pe===Xe||Me.editable&&Me.droppable?(Oe=function ii(f,s,c,_){let E=f.dateSpan,m=s.dateSpan,h=E.range.start,V=m.range.start,W={};E.allDay!==m.allDay&&(W.allDay=m.allDay,W.hasEnd=s.context.options.allDayMaintainDuration,h=m.allDay?(0,C.q)(c):c);let Q=(0,C.ay)(h,V,f.context.dateEnv,f.componentId===s.componentId?f.largeUnit:null);Q.milliseconds&&(W.allDay=!1);let le={datesDelta:Q,standardProps:W};for(let Pe of _)Pe(le,f,s);return le}(le,V,this.eventRange.instance.range.start,Xe.getCurrentData().pluginHooks.eventDragMutationMassagers),Oe&&(st=(0,C.bV)(Q,Xe.getCurrentData().eventUiBases,Oe,Xe),fe.mutatedEvents=st,(0,C.bX)(fe,V.dateProfile,Xe)||(k=!0,Oe=null,st=null,fe.mutatedEvents=(0,C.H)()))):Xe=null}this.displayDrag(Xe,fe),k?(0,C.av)():(0,C.au)(),W||(Pe===Xe&&Vn(le,V)&&(Oe=null),this.dragging.setMirrorNeedsRevert(!Oe),this.dragging.setMirrorIsVisible(!V||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=Xe,this.validMutation=Oe,this.mutatedRelevantEvents=st)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=V=>{if(this.isDragging){let W=this.component.context,Q=W.viewApi,{receivingContext:le,validMutation:Pe}=this,Xe=this.eventRange.def,Oe=this.eventRange.instance,st=new C._(W,Xe,Oe),k=this.relevantEvents,fe=this.mutatedRelevantEvents,{finalHit:Me}=this.hitDragging;if(this.clearDrag(),W.emitter.trigger("eventDragStop",{el:this.subjectEl,event:st,jsEvent:V.origEvent,view:Q}),Pe){if(le===W){let ut=new C._(W,fe.defs[Xe.defId],Oe?fe.instances[Oe.instanceId]:null);W.dispatch({type:"MERGE_EVENTS",eventStore:fe});let oe={oldEvent:st,event:ut,relatedEvents:(0,C.w)(fe,W,Oe),revert(){W.dispatch({type:"MERGE_EVENTS",eventStore:k})}},Qt={};for(let sn of W.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(Qt,sn(Pe,W));W.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},oe),Qt),{el:V.subjectEl,delta:Pe.datesDelta,jsEvent:V.origEvent,view:Q})),W.emitter.trigger("eventChange",oe)}else if(le){let ut={event:st,relatedEvents:(0,C.w)(k,W,Oe),revert(){W.dispatch({type:"MERGE_EVENTS",eventStore:k})}};W.emitter.trigger("eventLeave",Object.assign(Object.assign({}
1,ut),{draggedEl:V.subjectEl,view:Q})),W.dispatch({type:"REMOVE_EVENTS",eventStore:k}),W.emitter.trigger("eventRemove",ut);let Qt=fe.instances[Oe.instanceId],sn=new C._(le,fe.defs[Xe.defId],Qt);le.dispatch({type:"MERGE_EVENTS",eventStore:fe});let Sn={event:sn,relatedEvents:(0,C.w)(fe,le,Qt),revert(){le.dispatch({type:"REMOVE_EVENTS",eventStore:fe})}};le.emitter.trigger("eventAdd",Sn),V.isTouch&&le.dispatch({type:"SELECT_EVENT",eventInstanceId:Oe.instanceId}),le.emitter.trigger("drop",Object.assign(Object.assign({},On(Me.dateSpan,le)),{draggedEl:V.subjectEl,jsEvent:V.origEvent,view:Me.context.viewApi})),le.emitter.trigger("eventReceive",Object.assign(Object.assign({},Sn),{draggedEl:V.subjectEl,view:Me.context.viewApi}))}}else W.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:_}=this,{options:E}=_.context,m=this.dragging=new In(c.el);m.pointer.selector=f.SELECTOR,m.touchScrollAllowed=!1,m.autoScroller.isEnabled=E.dragScroll;let h=this.hitDragging=new on(this.dragging,C.a5);h.useSubjectCenter=c.useEventCenter,h.emitter.on("pointerdown",this.handlePointerDown),h.emitter.on("dragstart",this.handleDragStart),h.emitter.on("hitupdate",this.handleHitUpdate),h.emitter.on("pointerup",this.handlePointerUp),h.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(c,_){let m=this.receivingContext;m&&m!==c&&m.dispatch(m===this.component.context?{type:"SET_EVENT_DRAG",state:{affectedEvents:_.affectedEvents,mutatedEvents:(0,C.H)(),isEvent:!0}}:{type:"UNSET_EVENT_DRAG"}),c&&c.dispatch({type:"SET_EVENT_DRAG",state:_})}clearDrag(){let c=this.component.context,{receivingContext:_}=this;_&&_.dispatch({type:"UNSET_EVENT_DRAG"}),c!==_&&c.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}return f.SELECTOR=".fc-event-draggable, .fc-event-resizable",f})();const oi={fixedMirrorParent:C.n},ri={dateClick:C.n,eventDragStart:C.n,eventDragStop:C.n,eventDrop:C.n,eventResizeStart:C.n,eventResizeStop:C.n,eventResize:C.n,drop:C.n,eventReceive:C.n,eventLeave:C.n};C.bG.dataAttrPrefix="";var F=(0,x.i1)({name:"@fullcalendar/interaction",componentInteractions:[class $n extends C.X{constructor(s){super(s),this.handlePointerDown=_=>{let{dragging:E}=this;E.setIgnoreMove(!this.component.isValidDateDownEl(_.origEvent.target))},this.handleDragEnd=_=>{let{component:E}=this,{pointer:m}=this.dragging;if(!m.wasTouchScroll){let{initialHit:h,finalHit:V}=this.hitDragging;if(h&&V&&Vn(h,V)){let{context:W}=E,Q=Object.assign(Object.assign({},On(h.dateSpan,W)),{dayEl:h.dayEl,jsEvent:_.origEvent,view:W.viewApi||W.calendarApi.view});W.emitter.trigger("dateClick",Q)}}},this.dragging=new In(s.el),this.dragging.autoScroller.isEnabled=!1;let c=this.hitDragging=new on(this.dragging,(0,C.bE)(s));c.emitter.on("pointerdown",this.handlePointerDown),c.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class hn extends C.X{constructor(s){super(s),this.dragSelection=null,this.handlePointerDown=h=>{let{component:V,dragging:W}=this,{options:Q}=V.context,le=Q.selectable&&V.isValidDateDownEl(h.origEvent.target);W.setIgnoreMove(!le),W.delay=h.isTouch?function Cn(f){let{options:s}=f.context,c=s.selectLongPressDelay;return null==c&&(c=s.longPressDelay),c}(V):null},this.handleDragStart=h=>{this.component.context.calendarApi.unselect(h)},this.handleHitUpdate=(h,V)=>{let{context:W}=this.component,Q=null,le=!1;if(h){let Pe=this.hitDragging.initialHit;h.componentId===Pe.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(Pe,h)||(Q=function mn(f,s,c){let _=f.dateSpan,E=s.dateSpan,m=[_.range.start,_.range.end,E.range.start,E.range.end];m.sort(C.at);let h={};for(let V of c){let W=V(f,s);if(!1===W)return null;W&&Object.assign(h,W)}return h.range={start:m[0],end:m[3]},h.allDay=_.allDay,h}(Pe,h,W.pluginHooks.dateSelectionTransformers)),(!Q||!(0,C.bY)(Q,h.dateProfile,W))&&(le=!0,Q=null)}Q?W.dispatch({type:"SELECT_DATES",selection:Q}):V||W.dispatch({type:"UNSELECT_DATES"}),le?(0,C.av)():(0,C.au)(),V||(this.dragSelection=Q)},this.handlePointerUp=h=>{this.dragSelection&&((0,C.cr)(this.dragSelection,h,this.component.context),this.dragSelection=null)};let{component:c}=s,{options:_}=c.context,E=this.dragging=new In(s.el);E.touchScrollAllowed=!1,E.minDistance=_.selectMinDistance||0,E.autoScroller.isEnabled=_.dragScroll;let m=this.hitDragging=new on(this.dragging,(0,C.bE)(s));m.emitter.on("pointerdown",this.handlePointerDown),m.emitter.on("dragstart",this.handleDragStart),m.emitter.on("hitupdate",this.handleHitUpdate),m.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}},Qn,class Pn extends C.X{constructor(s){super(s),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=m=>{let{component:h}=this,V=this.querySegEl(m),W=(0,C.Y)(V),Q=this.eventRange=W.eventRange;this.dragging.minDistance=h.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(m.origEvent.target)||m.
1isTouch&&this.component.props.eventSelection!==Q.instance.instanceId)},this.handleDragStart=m=>{let{context:h}=this.component,V=this.eventRange;this.relevantEvents=(0,C.aT)(h.getCurrentData().eventStore,this.eventRange.instance.instanceId);let W=this.querySegEl(m);this.draggingSegEl=W,this.draggingSeg=(0,C.Y)(W),h.calendarApi.unselect(),h.emitter.trigger("eventResizeStart",{el:W,event:new C._(h,V.def,V.instance),jsEvent:m.origEvent,view:h.viewApi})},this.handleHitUpdate=(m,h,V)=>{let{context:W}=this.component,Q=this.relevantEvents,le=this.hitDragging.initialHit,Pe=this.eventRange.instance,Xe=null,Oe=null,st=!1,k={affectedEvents:Q,mutatedEvents:(0,C.H)(),isEvent:!0};m&&(m.componentId===le.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(le,m)||(Xe=function Jn(f,s,c,_){let E=f.context.dateEnv,V=(0,C.ay)(f.dateSpan.range.start,s.dateSpan.range.start,E,f.largeUnit);if(c){if(E.add(_.start,V)<_.end)return{startDelta:V}}else if(E.add(_.end,V)>_.start)return{endDelta:V};return null}(le,m,V.subjectEl.classList.contains("fc-event-resizer-start"),Pe.range))),Xe&&(Oe=(0,C.bV)(Q,W.getCurrentData().eventUiBases,Xe,W),k.mutatedEvents=Oe,(0,C.bX)(k,m.dateProfile,W)||(st=!0,Xe=null,Oe=null,k.mutatedEvents=null)),W.dispatch(Oe?{type:"SET_EVENT_RESIZE",state:k}:{type:"UNSET_EVENT_RESIZE"}),st?(0,C.av)():(0,C.au)(),h||(Xe&&Vn(le,m)&&(Xe=null),this.validMutation=Xe,this.mutatedRelevantEvents=Oe)},this.handleDragEnd=m=>{let{context:h}=this.component,V=this.eventRange.def,W=this.eventRange.instance,Q=new C._(h,V,W),le=this.relevantEvents,Pe=this.mutatedRelevantEvents;if(h.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:Q,jsEvent:m.origEvent,view:h.viewApi}),this.validMutation){let Xe=new C._(h,Pe.defs[V.defId],W?Pe.instances[W.instanceId]:null);h.dispatch({type:"MERGE_EVENTS",eventStore:Pe});let Oe={oldEvent:Q,event:Xe,relatedEvents:(0,C.w)(Pe,h,W),revert(){h.dispatch({type:"MERGE_EVENTS",eventStore:le})}};h.emitter.trigger("eventResize",Object.assign(Object.assign({},Oe),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||(0,C.d)(0),endDelta:this.validMutation.endDelta||(0,C.d)(0),jsEvent:m.origEvent,view:h.viewApi})),h.emitter.trigger("eventChange",Oe)}else h.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:c}=s,_=this.dragging=new In(s.el);_.pointer.selector=".fc-event-resizer",_.touchScrollAllowed=!1,_.autoScroller.isEnabled=c.context.options.dragScroll;let E=this.hitDragging=new on(this.dragging,(0,C.bE)(s));E.emitter.on("pointerdown",this.handlePointerDown),E.emitter.on("dragstart",this.handleDragStart),E.emitter.on("hitupdate",this.handleHitUpdate),E.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(s){return(0,C.Z)(s.subjectEl,".fc-event")}}],calendarInteractions:[class Rn{constructor(s){this.context=s,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=_=>{_.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=_=>{let E=this.context.options.unselectCancel,m=(0,C.aP)(_.origEvent);this.matchesCancel=!!(0,C.Z)(m,E),this.matchesEvent=!!(0,C.Z)(m,Qn.SELECTOR)},this.onDocumentPointerUp=_=>{let{context:E}=this,{documentPointer:m}=this,h=E.getCurrentData();if(!m.wasTouchScroll){if(h.dateSelection&&!this.isRecentPointerDateSelect){let V=E.options.unselectAuto;V&&(!V||!this.matchesCancel)&&E.calendarApi.unselect(_)}h.eventSelection&&!this.matchesEvent&&E.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let c=this.documentPointer=new ce(document);c.shouldIgnoreMove=!0,c.shouldWatchScroll=!1,c.emitter.on("pointerdown",this.onDocumentPointerDown),c.emitter.on("pointerup",this.onDocumentPointerUp),s.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}],elementDraggingImpl:In,optionRefiners:oi,listenerRefiners:ri}),K=g(96508),Y=g.n(K);class be extends C.aW{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(s){return s.allDay?["allDay"]:["timed"]}getKeysForEventDef(s){return s.allDay?(0,C.bN)(s)?["timed","allDay"]:["allDay"]:["timed"]}}const At=(0,C.x)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Et(f){let s=["fc-timegrid-slot","fc-timegrid-slot-label",f.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return(0,e.n)(C.V.Consumer,null,c=>{if(!f.isLabeled)return(0,e.n)("td",{className:s.join(" "),"data-time":f.isoTimeStr});let{dateEnv:_,options:E,viewApi:m}=c,h=null==E.slotLabelFormat?At:Array.isArray(E.slotLabelFormat)?(0,C.x)(E.slotLabelFormat[0]):(0,C.x)(E.slotLabelFormat),V={level:0,time:f.time,date:_.toDate(f.date),view:m,text:_.format(f.date,h)};return(0,e.n)(C.C,{elTag:"td",elClasses:s,elAttrs:{"data-time":f.isoTimeStr},renderProps:V,generatorName:"slotLabelContent",customGenerator:E.slotLabelContent,defaultGenerator:Xt,classNameGenerator:E.slotLabelClassNames,didMount:E.slotLabelDidMount,willUnmount:E.slotLabelWillUnmount},W=>(0,e.n)("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},(0,e.n)(W,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Xt(f){return f.text}class Bt extends C.B{render(){return this.props.slatMetas.map(s=>(0,e.n)("tr",{key:s.key},(0,e.n)(Et,Object.assign({},s))))}}const kn=(0,C.x)({week:"short"});class gn extends C.bc{constructor(){super(...arguments),this.allDaySplitter=new be,this.headerElRef
1=(0,e._3)(),this.rootElRef=(0,e._3)(),this.scrollerElRef=(0,e._3)(),this.state={slatCoords:null},this.handleScrollTopRequest=s=>{let c=this.scrollerElRef.current;c&&(c.scrollTop=s)},this.renderHeadAxis=(s,c="")=>{let{options:_}=this.context,{dateProfile:E}=this.props,m=E.renderRange,V=1===(0,C.bj)(m.start,m.end)?(0,C.a_)(this.context,m.start,"week"):{};return _.weekNumbers&&"day"===s?(0,e.n)(C.cn,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:m.start,defaultFormat:kn},W=>(0,e.n)("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:c}},(0,e.n)(W,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:V}))):(0,e.n)("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},(0,e.n)("div",{className:"fc-timegrid-axis-frame",style:{height:c}}))},this.renderTableRowAxis=s=>{let{options:c,viewApi:_}=this.context;return(0,e.n)(C.C,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:{text:c.allDayText,view:_},generatorName:"allDayContent",customGenerator:c.allDayContent,defaultGenerator:ei,classNameGenerator:c.allDayClassNames,didMount:c.allDayDidMount,willUnmount:c.allDayWillUnmount},m=>(0,e.n)("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==s?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:s}},(0,e.n)(m,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=s=>{this.setState({slatCoords:s})}}renderSimpleLayout(s,c,_){let{context:E,props:m}=this,h=[],V=(0,C.ca)(E.options);return s&&h.push({type:"header",key:"header",isSticky:V,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:s}}),c&&(h.push({type:"body",key:"all-day",chunk:{content:c}}),h.push({type:"body",key:"all-day-divider",outerContent:(0,e.n)("tr",{role:"presentation",className:"fc-scrollgrid-section"},(0,e.n)("td",{className:"fc-timegrid-divider "+E.theme.getClass("tableCellShaded")}))})),h.push({type:"body",key:"body",liquid:!0,expandRows:!!E.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:_}}),(0,e.n)(C.cq,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:E.viewSpec},(0,e.n)(C.bZ,{liquid:!m.isHeightAuto&&!m.forPrint,collapsibleWidth:m.forPrint,cols:[{width:"shrink"}],sections:h}))}renderHScrollLayout(s,c,_,E,m,h,V){let W=this.context.pluginHooks.scrollGridImpl;if(!W)throw new Error("No ScrollGrid implementation");let{context:Q,props:le}=this,Pe=!le.forPrint&&(0,C.ca)(Q.options),Xe=!le.forPrint&&(0,C.c9)(Q.options),Oe=[];s&&Oe.push({type:"header",key:"header",isSticky:Pe,syncRowHeights:!0,chunks:[{key:"axis",rowContent:k=>(0,e.n)("tr",{role:"presentation"},this.renderHeadAxis("day",k.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:s}]}),c&&(Oe.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:k=>(0,e.n)("tr",{role:"presentation"},this.renderTableRowAxis(k.rowSyncHeights[0]))},{key:"cols",content:c}]}),Oe.push({key:"all-day-divider",type:"body",outerContent:(0,e.n)("tr",{role:"presentation",className:"fc-scrollgrid-section"},(0,e.n)("td",{colSpan:2,className:"fc-timegrid-divider "+Q.theme.getClass("tableCellShaded")}))}));let st=Q.options.nowIndicator;return Oe.push({type:"body",key:"body",liquid:!0,expandRows:!!Q.options.expandRows,chunks:[{key:"axis",content:k=>(0,e.n)("div",{className:"fc-timegrid-axis-chunk"},(0,e.n)("table",{"aria-hidden":!0,style:{height:k.expandRows?k.clientHeight:""}},k.tableColGroupNode,(0,e.n)("tbody",null,(0,e.n)(Bt,{slatMetas:h}))),(0,e.n)("div",{className:"fc-timegrid-now-indicator-container"},(0,e.n)(C.a6,{unit:st?"minute":"day"},fe=>{let Me=st&&V&&V.safeComputeTop(fe);return"number"==typeof Me?(0,e.n)(C.ch,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:Me},isAxis:!0,date:fe}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:_}]}),Xe&&Oe.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:C.c8},{key:"cols",content:C.c8}]}),(0,e.n)(C.cq,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:Q.viewSpec},(0,e.n)(W,{liquid:!le.isHeightAuto&&!le.forPrint,forPrint:le.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:E,minWidth:m}]}],sections:Oe}))}getAllDayMaxEventProps(){let{dayMaxEvents:s,dayMaxEventRows:c}=this.context.options;return(!0===s||!0===c)&&(s=void 0,c=5),{dayMaxEvents:s,dayMaxEventRows:c}}}function ei(f){return f.text}class ci{constructor(s,c,_){this.positions=s,this.dateProfile=c,this.slotDuration=_}safeComputeTop(s){let{dateProfile:c}=this;if((0,C.G)(c.currentRange,s)){let _=(0,C.q)(s),E=s.valueOf()-_.valueOf();if(E>=(0,C.bq)(c.slotMinTime)&&E<(0,C.bq)(c.slotMaxTime))return this.computeTimeTop((0,C.d)(E))}return null}computeDateTop(s,c){return c||(c=(0,C.q)(s)),this.computeTimeTop((0,C.d)(s.valueOf()-c.valueOf()))}computeTimeTop(s){let h,V,{positions:c,dateProfile:_}=this,E=c.els.length,m=(s.milliseconds-(0,C.bq)(_.slotMinTime))/(0,C.bq)(this.slotDuration);return m=Math.max(0,m),m=Math.min(E,m),h=Math.floor(m),h=Math.min(h,E-1),V=m-h,c.tops[h]+c.getHeight(h)*V}}class gi extends C.B{render(){let{props:s,context:c}=this,{options:_}=c,{slatElRefs:E}=s;return(0,e.n)("tbody",null,s.slatMetas.map((m,h)=>{let V={time:m.time,date:c.dateEnv.toDate(m.date),view:c.viewApi};return(0,e.n)("tr",{key:m.key,ref:E.createRef(m.key)},s.axis&&(0,e.n)(Et,Object.assign({},m)),(0,e.n)(C.C,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!m.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":m.isoTimeStr},renderProps:V,generatorName:"slotLaneContent",customGenerator:_.slotLaneContent,classNameGenerator:_.slotLaneClassNames,didMount:_.slotLaneDidMount,willUnmount:_.slotLaneWillUnmount}))}))}}class di extends C.B{constructor(){super(...arguments),this.rootElRef=(0,e._3)(),this.slatElRefs=new C.cd}render(){let{props:s,context:c}=this;return(0,e.n)("div",{ref:this.rootElRef,className:"fc-timegrid-slots"}
1,(0,e.n)("table",{"aria-hidden":!0,className:c.theme.getClass("table"),style:{minWidth:s.tableMinWidth,width:s.clientWidth,height:s.minHeight}},s.tableColGroupNode,(0,e.n)(gi,{slatElRefs:this.slatElRefs,axis:s.axis,slatMetas:s.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:s,props:c}=this;c.onCoords&&null!==c.clientWidth&&this.rootElRef.current.offsetHeight&&c.onCoords(new ci(new C.b8(this.rootElRef.current,function I(f,s){return s.map(c=>f[c.key])}(this.slatElRefs.currentMap,c.slatMetas),!1,!0),this.props.dateProfile,s.options.slotDuration))}}function T(f,s){let _,c=[];for(_=0;_<s;_+=1)c.push([]);if(f)for(_=0;_<f.length;_+=1)c[f[_].col].push(f[_]);return c}function L(f,s){let c=[];if(f){for(let _=0;_<s;_+=1)c[_]={affectedInstances:f.affectedInstances,isEvent:f.isEvent,segs:[]};for(let _ of f.segs)c[_.col].segs.push(_)}else for(let _=0;_<s;_+=1)c[_]=null;return c}class j extends C.B{render(){let{props:s}=this;return(0,e.n)(C.co,{elClasses:["fc-timegrid-more-link"],elStyle:{top:s.top,bottom:s.bottom},allDayDate:null,moreCnt:s.hiddenSegs.length,allSegs:s.hiddenSegs,hiddenSegs:s.hiddenSegs,extraDateSpan:s.extraDateSpan,dateProfile:s.dateProfile,todayRange:s.todayRange,popoverContent:()=>vn(s.hiddenSegs,s),defaultGenerator:se,forceTimed:!0},c=>(0,e.n)(c,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function se(f){return f.shortText}function ze(f,s){if(!f)return[[],0];let{level:c,lateralStart:_,lateralEnd:E}=f,m=_,h=[];for(;m<E;)h.push(s(c,m)),m+=1;return h.sort(Be),[h.map(tt),h[0][1]]}function Be(f,s){return s[1]-f[1]}function tt(f){return f[0]}function Ut(f){let s=[];const c=gt((E,m,h)=>(0,C.bz)(E),(E,m,h)=>{let V=Object.assign(Object.assign({},E),{levelCoord:m,stackDepth:h,stackForward:0});return s.push(V),V.stackForward=_(E.nextLevelNodes,m+E.thickness,h+1)+1});function _(E,m,h){let V=0;for(let W of E)V=Math.max(c(W,m,h),V);return V}return _(f,0,0),s}function gt(f,s){const c={};return(..._)=>{let E=f(..._);return E in c?c[E]:c[E]=s(..._)}}function fn(f,s,c=null,_=0){let E=[];if(c)for(let m=0;m<f.length;m+=1){let h=f[m],V=c.computeDateTop(h.start,s),W=Math.max(V+(_||0),c.computeDateTop(h.end,s));E.push({start:Math.round(V),end:Math.round(W)})}return E}const dn=(0,C.x)({hour:"numeric",minute:"2-digit",meridiem:!1});class Wt extends C.B{render(){return(0,e.n)(C.cg,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:dn}))}}class En extends C.B{constructor(){super(...arguments),this.sortEventSegs=(0,C.z)(C.bP)}render(){let{props:s,context:c}=this,{options:_}=c,E=_.selectMirror,m=s.eventDrag&&s.eventDrag.segs||s.eventResize&&s.eventResize.segs||E&&s.dateSelectionSegs||[],h=s.eventDrag&&s.eventDrag.affectedInstances||s.eventResize&&s.eventResize.affectedInstances||{},V=this.sortEventSegs(s.fgEventSegs,_.eventOrder);return(0,e.n)(C.ci,{elTag:"td",elRef:s.elRef,elClasses:["fc-timegrid-col",...s.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},s.extraDataAttrs),date:s.date,dateProfile:s.dateProfile,todayRange:s.todayRange,extraRenderProps:s.extraRenderProps},W=>(0,e.n)("div",{className:"fc-timegrid-col-frame"},(0,e.n)("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(s.businessHourSegs,"non-business"),this.renderFillSegs(s.bgEventSegs,"bg-event"),this.renderFillSegs(s.dateSelectionSegs,"highlight")),(0,e.n)("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(V,h,!1,!1,!1)),(0,e.n)("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(m,{},!!s.eventDrag,!!s.eventResize,!!E,"mirror")),(0,e.n)("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(s.nowIndicatorSegs)),(0,C.cj)(_)&&(0,e.n)(W,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(s,c,_,E,m,h){let{props:V}=this;return V.forPrint?vn(s,V):this.renderPositionedFgSegs(s,c,_,E,m,h)}renderPositionedFgSegs(s,c,_,E,m,h){let{eventMaxStack:V,eventShortHeight:W,eventOrderStrict:Q,eventMinHeight:le}=this.context.options,{date:Pe,slatCoords:Xe,eventSelection:Oe,todayRange:st,nowDate:k}=this.props,fe=_||E||m,Me=fn(s,Pe,Xe,le),{segPlacements:ut,hiddenGroups:oe}=function zn(f,s,c,_){let E=[],m=[];for(let Q=0;Q<f.length;
1Q+=1){let le=s[Q];le?E.push({index:Q,thickness:1,span:le}):m.push(f[Q])}let{segRects:h,hiddenGroups:V}=function he(f,s,c){let _=new C.by;null!=s&&(_.strictOrder=s),null!=c&&(_.maxStackCnt=c);let E=_.addSegs(f),m=(0,C.bC)(E),h=function Ee(f){const{entriesByLevel:s}=f,c=gt((_,E)=>_+":"+E,(_,E)=>{let m=function Mt(f,s,c){let{levelCoords:_,entriesByLevel:E}=f,m=E[s][c],h=_[s]+m.thickness,V=_.length,W=s;for(;W<V&&_[W]<h;W+=1);for(;W<V;W+=1){let le,Q=E[W],Pe=(0,C.bB)(Q,m.span.start,C.bA),Xe=Pe[0]+Pe[1],Oe=Xe;for(;(le=Q[Oe])&&le.span.start<m.span.end;)Oe+=1;if(Xe<Oe)return{level:W,lateralStart:Xe,lateralEnd:Oe}}return null}(f,_,E),h=ze(m,c),V=s[_][E];return[Object.assign(Object.assign({},V),{nextLevelNodes:h[0]}),V.thickness+h[1]]});return ze(s.length?{level:0,lateralStart:0,lateralEnd:s[0].length}:null,c)[0]}(_);return h=function Lt(f,s){const c=gt((_,E,m)=>(0,C.bz)(_),(_,E,m)=>{let le,{nextLevelNodes:h,thickness:V}=_,W=V+m,Q=V/W,Pe=[];if(h.length)for(let Oe of h)if(void 0===le){let st=c(Oe,E,W);le=st[0],Pe.push(st[1])}else{let st=c(Oe,le,0);Pe.push(st[1])}else le=s;let Xe=(le-E)*Q;return[le-Xe,Object.assign(Object.assign({},_),{thickness:Xe,nextLevelNodes:Pe})]});return f.map(_=>c(_,0,0)[1])}(h,1),{segRects:Ut(h),hiddenGroups:m}}(E,c,_),W=[];for(let Q of h)W.push({seg:f[Q.index],rect:Q});for(let Q of m)W.push({seg:Q,rect:null});return{segPlacements:W,hiddenGroups:V}}(s,Me,Q,V);return(0,e.n)(e.FK,null,this.renderHiddenGroups(oe,s),ut.map(Qt=>{let{seg:sn,rect:Sn}=Qt,Fi=sn.eventRange.instance.instanceId,dr=fe||!(c[Fi]||!Sn),ki=te(Sn&&Sn.span),ur=!fe&&Sn?this.computeSegHStyle(Sn):{left:0,right:0},mo=!!Sn&&Sn.span.end-Sn.span.start<W;return(0,e.n)("div",{className:"fc-timegrid-event-harness"+(Sn&&Sn.stackForward>0?" fc-timegrid-event-harness-inset":""),key:h||Fi,style:Object.assign(Object.assign({visibility:dr?"":"hidden"},ki),ur)},(0,e.n)(Wt,Object.assign({seg:sn,isDragging:_,isResizing:E,isDateSelecting:m,isSelected:Fi===Oe,isShort:mo},(0,C.bQ)(sn,st,k))))}))}renderHiddenGroups(s,c){let{extraDateSpan:_,dateProfile:E,todayRange:m,nowDate:h,eventSelection:V,eventDrag:W,eventResize:Q}=this.props;return(0,e.n)(e.FK,null,s.map(le=>{let Pe=te(le.span),Xe=function je(f,s){return f.map(c=>s[c.index])}(le.entries,c);return(0,e.n)(j,{key:(0,C.bu)((0,C.cp)(Xe)),hiddenSegs:Xe,top:Pe.top,bottom:Pe.bottom,extraDateSpan:_,dateProfile:E,todayRange:m,nowDate:h,eventSelection:V,eventDrag:W,eventResize:Q})}))}renderFillSegs(s,c){let{props:_,context:E}=this,h=fn(s,_.date,_.slatCoords,E.options.eventMinHeight).map((V,W)=>{let Q=s[W];return(0,e.n)("div",{key:(0,C.bR)(Q.eventRange),className:"fc-timegrid-bg-harness",style:te(V)},"bg-event"===c?(0,e.n)(C.cm,Object.assign({seg:Q},(0,C.bQ)(Q,_.todayRange,_.nowDate))):(0,C.cl)(c))});return(0,e.n)(e.FK,null,h)}renderNowIndicator(s){let{slatCoords:c,date:_}=this.props;return c?s.map((E,m)=>(0,e.n)(C.ch,{key:m,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:c.computeDateTop(E.start,_)},isAxis:!1,date:_})):null}computeSegHStyle(s){let V,W,{isRtl:c,options:_}=this.context,E=_.slotEventOverlap,m=s.levelCoord,h=s.levelCoord+s.thickness;E&&(h=Math.min(1,m+2*(h-m))),c?(V=1-h,W=m):(V=m,W=1-h);let Q={zIndex:s.stackDepth+1,left:100*V+"%",right:100*W+"%"};return E&&!s.stackForward&&(Q[c?"marginLeft":"marginRight"]=20),Q}}function vn(f,{todayRange:s,nowDate:c,eventSelection:_,eventDrag:E,eventResize:m}){let h=(E?E.affectedInstances:null)||(m?m.affectedInstances:null)||{};return(0,e.n)(e.FK,null,f.map(V=>{let W=V.eventRange.instance.instanceId;return(0,e.n)("div",{key:W,style:{visibility:h[W]?"hidden":""}},(0,e.n)(Wt,Object.assign({seg:V,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:W===_,isShort:!1},(0,C.bQ)(V,s,c))))}))}function te(f){return f?{top:f.start,bottom:-f.end}:{top:"",bottom:""}}class $ extends C.B{constructor(){super(...arguments),this.splitFgEventSegs=(0,C.z)(T),this.splitBgEventSegs=(0,C.z)(T),this.splitBusinessHourSegs=(0,C.z)(T),this.splitNowIndicatorSegs=(0,C.z)(T),this.splitDateSelectionSegs=(0,C.z)(T),this.splitEventDrag=(0,C.z)(L),this.splitEventResize=(0,C.z)(L),this.rootElRef=(0,e._3)(),this.cellElRefs=new C.cd}render(){let{props:s,context:c}=this,_=c.options.nowIndicator&&s.slatCoords&&s.slatCoords.safeComputeTop(s.nowDate),E=s.cells.length,m=this.splitFgEventSegs(s.fgEventSegs,E),h=this.splitBgEventSegs(s.bgEventSegs,E),V=this.splitBusinessHourSegs(s.businessHourSegs,E),W=this.splitNowIndicatorSegs(s.nowIndicatorSegs,E),Q=this.splitDateSelectionSegs(s.dateSelectionSegs,E),le=this.splitEventDrag(s.eventDrag,E),Pe=this.splitEventResize(s.eventResize,E);return(0,e.n)("div",{className:"fc-timegrid-cols",ref:this.rootElRef},(0,e.n)("table",{role:"presentation",style:{minWidth:s.tableMinWidth,width:s.clientWidth}},s.tableColGroupNode,(0,e.n)("tbody",{role:"presentation"},(0,e.n)("tr",{role:"row"}
1,s.axis&&(0,e.n)("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},(0,e.n)("div",{className:"fc-timegrid-col-frame"},(0,e.n)("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof _&&(0,e.n)(C.ch,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:_},isAxis:!0,date:s.nowDate})))),s.cells.map((Xe,Oe)=>(0,e.n)(En,{key:Xe.key,elRef:this.cellElRefs.createRef(Xe.key),dateProfile:s.dateProfile,date:Xe.date,nowDate:s.nowDate,todayRange:s.todayRange,extraRenderProps:Xe.extraRenderProps,extraDataAttrs:Xe.extraDataAttrs,extraClassNames:Xe.extraClassNames,extraDateSpan:Xe.extraDateSpan,fgEventSegs:m[Oe],bgEventSegs:h[Oe],businessHourSegs:V[Oe],nowIndicatorSegs:W[Oe],dateSelectionSegs:Q[Oe],eventDrag:le[Oe],eventResize:Pe[Oe],slatCoords:s.slatCoords,eventSelection:s.eventSelection,forPrint:s.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:s}=this;s.onColCoords&&null!==s.clientWidth&&s.onColCoords(new C.b8(this.rootElRef.current,function H(f,s){return s.map(c=>f[c.key])}(this.cellElRefs.currentMap,s.cells),!0,!1))}}class Z extends C.bc{constructor(){super(...arguments),this.processSlotOptions=(0,C.z)(Re),this.state={slatCoords:null},this.handleRootEl=s=>{s?this.context.registerInteractiveComponent(this,{el:s,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=s=>{let{onScrollTopRequest:c}=this.props,{slatCoords:_}=this.state;if(c&&_){if(s.time){let E=_.computeTimeTop(s.time);E=Math.ceil(E),E&&(E+=1),c(E)}return!0}return!1},this.handleColCoords=s=>{this.colCoords=s},this.handleSlatCoords=s=>{this.setState({slatCoords:s}),this.props.onSlatCoords&&this.props.onSlatCoords(s)}}render(){let{props:s,state:c}=this;return(0,e.n)("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:s.clientWidth,minWidth:s.tableMinWidth}},(0,e.n)(di,{axis:s.axis,dateProfile:s.dateProfile,slatMetas:s.slatMetas,clientWidth:s.clientWidth,minHeight:s.expandRows?s.clientHeight:"",tableMinWidth:s.tableMinWidth,tableColGroupNode:s.axis?s.tableColGroupNode:null,onCoords:this.handleSlatCoords}),(0,e.n)($,{cells:s.cells,axis:s.axis,dateProfile:s.dateProfile,businessHourSegs:s.businessHourSegs,bgEventSegs:s.bgEventSegs,fgEventSegs:s.fgEventSegs,dateSelectionSegs:s.dateSelectionSegs,eventSelection:s.eventSelection,eventDrag:s.eventDrag,eventResize:s.eventResize,todayRange:s.todayRange,nowDate:s.nowDate,nowIndicatorSegs:s.nowIndicatorSegs,clientWidth:s.clientWidth,tableMinWidth:s.tableMinWidth,tableColGroupNode:s.tableColGroupNode,slatCoords:c.slatCoords,onColCoords:this.handleColCoords,forPrint:s.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(s){this.scrollResponder.update(s.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(s,c){let{dateEnv:_,options:E}=this.context,{colCoords:m}=this,{dateProfile:h}=this.props,{slatCoords:V}=this.state,{snapDuration:W,snapsPerSlot:Q}=this.processSlotOptions(this.props.slotDuration,E.snapDuration),le=m.leftToIndex(s),Pe=V.positions.topToIndex(c);if(null!=le&&null!=Pe){let Xe=this.props.cells[le],Oe=V.positions.tops[Pe],st=V.positions.getHeight(Pe),fe=Math.floor((c-Oe)/st*Q),ut=this.props.cells[le].date,oe=(0,C.bn)(h.slotMinTime,(0,C.bm)(W,Pe*Q+fe)),Qt=_.add(ut,oe),sn=_.add(Qt,W);return{dateProfile:h,dateSpan:Object.assign({range:{start:Qt,end:sn},allDay:!1},Xe.extraDateSpan),dayEl:m.els[le],rect:{left:m.lefts[le],right:m.rights[le],top:Oe,bottom:Oe+st},layer:0}}return null}}function Re(f,s){let c=s||f,_=(0,C.br)(f,c);return null===_&&(c=f,_=1),{snapDuration:c,snapsPerSlot:_}}class Tt extends C.bU{sliceRange(s,c){let _=[];for(let E=0;E<c.length;E+=1){let m=(0,C.o)(s,c[E]);m&&_.push({start:m.start,end:m.end,isStart:m.start.valueOf()===s.start.valueOf(),isEnd:m.end.valueOf()===s.end.valueOf(),col:E})}return _}}class P extends C.bc{constructor(){super(...arguments),this.buildDayRanges=(0,C.z)(me),this.slicer=new Tt,this.timeColsRef=(0,e._3)()}render(){let{props:s,context:c}=this,{dateProfile:_,dayTableModel:E}=s,{nowIndicator:m,nextDayThreshold:h}=c.options,V=this.buildDayRanges(E,_,c.dateEnv);return(0,e.n)(C.a6,{unit:m?"minute":"day"},(W,Q)=>(0,e.n)(Z,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(s,_,null,c,V),{forPrint:s.forPrint,axis:s.axis,dateProfile:_,slatMetas:s.slatMetas,slotDuration:s.slotDuration,cells:E.cells[0],tableColGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,clientWidth:s.clientWidth,clientHeight:s.clientHeight,expandRows:s.expandRows,nowDate:W,nowIndicatorSegs:m&&this.slicer.sliceNowDate(W,_,h,c,V),todayRange:Q,onScrollTopRequest:s.onScrollTopRequest,onSlatCoords:s.onSlatCoords})))}}function me(f,s,c){let _=[];for(let E of f.headerDates)_.push({start:c.add(E,s.slotMinTime),end:c.add(E,s.slotMaxTime)});return _}const S=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function M(f,s,c,_,E){let m=new Date(0),h=f,V=(0,C.d)(0),W=c||function D(f){let s,c,_;
1for(s=S.length-1;s>=0;s-=1)if(c=(0,C.d)(S[s]),_=(0,C.br)(c,f),null!==_&&_>1)return c;return f}(_),Q=[];for(;(0,C.bq)(h)<(0,C.bq)(s);){let le=E.add(m,h),Pe=null!==(0,C.br)(V,W);Q.push({date:le,time:h,key:le.toISOString(),isoTimeStr:(0,C.bs)(le),isLabeled:Pe}),h=(0,C.bn)(h,_),V=(0,C.bn)(V,_)}return Q}function $e(f,s){let c=new C.bM(f.renderRange,s);return new C.bT(c,!1)}(0,C.ct)('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');const we={allDaySlot:Boolean};var q=(0,x.i1)({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:we,views:{timeGrid:{component:class _e extends gn{constructor(){super(...arguments),this.buildTimeColsModel=(0,C.z)($e),this.buildSlatMetas=(0,C.z)(M)}render(){let{options:s,dateEnv:c,dateProfileGenerator:_}=this.context,{props:E}=this,{dateProfile:m}=E,h=this.buildTimeColsModel(m,_),V=this.allDaySplitter.splitProps(E),W=this.buildSlatMetas(m.slotMinTime,m.slotMaxTime,s.slotLabelInterval,s.slotDuration,c),{dayMinWidth:Q}=s,le=!Q,Pe=Q,Xe=s.dayHeaders&&(0,e.n)(C.bI,{dates:h.headerDates,dateProfile:m,datesRepDistinctDays:!0,renderIntro:le?this.renderHeadAxis:null}),Oe=!1!==s.allDaySlot&&(k=>(0,e.n)(re,Object.assign({},V.allDay,{dateProfile:m,dayTableModel:h,nextDayThreshold:s.nextDayThreshold,tableMinWidth:k.tableMinWidth,colGroupNode:k.tableColGroupNode,renderRowIntro:le?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:k.clientWidth,clientHeight:k.clientHeight,forPrint:E.forPrint},this.getAllDayMaxEventProps()))),st=k=>(0,e.n)(P,Object.assign({},V.timed,{dayTableModel:h,dateProfile:m,axis:le,slotDuration:s.slotDuration,slatMetas:W,forPrint:E.forPrint,tableColGroupNode:k.tableColGroupNode,tableMinWidth:k.tableMinWidth,clientWidth:k.clientWidth,clientHeight:k.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:k.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return Pe?this.renderHScrollLayout(Xe,Oe,st,h.colCnt,Q,W,this.state.slatCoords):this.renderSimpleLayout(Xe,Oe,st)}},usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),mt=g(77339),kt=g(49484),Zt=g(35052),jt=g(37084),Vt=g(34006),t=g(54438),_n=g(88974);let wn=(()=>{var f;class s{constructor(_,E){this.dialogRef=_,this.data=E}closeDialog(){this.dialogRef.close(!1)}}return(f=s).\u0275fac=function(_){return new(_||f)(t.rXU(Vt.CP),t.rXU(Vt.Vh))},f.\u0275cmp=t.VBU({type:f,selectors:[["cancel-reservation-dialog"]],decls:18,vars:6,consts:()=>{let c,_,E,m;return c="Annulation",_="\xCAtes-vous s\xFBr de vouloir annuler votre r\xE9servation?",E="Retour",m="Annuler la r\xE9servation",[c,_,E,m,[1,"data-wrapper"],[1,"title-wrapper"],[1,"form-section-title"],[1,"reservation-info","data-wrapper"],["mat-dialog-actions","",1,"dialog-buttons-section","button"],["fill","outline","tabindex","1",1,"ion-custom-button-outline","ion-cu
1stom-button-standard","mr-5",3,"mat-dialog-close"],[1,"ion-custom-button-standard","ion-custom-button-full","secondary-button",3,"mat-dialog-close"]]},template:function(_,E){1&_&&(t.j41(0,"div",4)(1,"div",5)(2,"h2",6),t.pXf(3,0),t.k0s(),t.j41(4,"p"),t.pXf(5,1),t.k0s()(),t.j41(6,"div",7)(7,"p"),t.EFF(8),t.k0s(),t.j41(9,"p"),t.EFF(10),t.k0s(),t.j41(11,"p"),t.EFF(12),t.k0s()()(),t.j41(13,"div",8)(14,"ion-button",9),t.pXf(15,2),t.k0s(),t.j41(16,"ion-button",10),t.pXf(17,3),t.k0s()()),2&_&&(t.R7$(8),t.Lme("",E.data.nomActivite," - ",E.data.details[0].resNo,""),t.R7$(2),t.JRh(E.data.date),t.R7$(2),t.JRh(E.data.temps),t.R7$(2),t.Y8G("mat-dialog-close",!1),t.R7$(2),t.Y8G("mat-dialog-close",!0))},dependencies:[Vt.tx,Vt.E7,_n.Jm],styles:[".mr-5[_ngcontent-%COMP%]{margin-right:-5px!important}.title-wrapper[_ngcontent-%COMP%]{align-self:flex-start;text-align:left;width:100%}.form-section-title[_ngcontent-%COMP%]{margin-bottom:-10px;font-size:22px!important}.data-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.data-wrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px}.reservation-info[_ngcontent-%COMP%]{background-color:#eff0f2;padding:24px;border-radius:10px;margin-top:24px;margin-bottom:1.5rem}.reservation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:1.5px}.reservation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-of-type{font-weight:700;white-space:normal;word-break:break-word;text-align-last:center;line-height:25px;margin:0}.dialog-buttons-section[_ngcontent-%COMP%]{padding-top:.5rem}.dialog-buttons-section[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{height:44px}.dialog-buttons-section[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:last-child{--background: var(--error-form-color)}@media (max-width: 600px){.dialog-buttons-section[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:15px}.dialog-buttons-section[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{width:100%;margin-top:10px}.dialog-buttons-section[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:first-child{order:2}.dialog-buttons-section[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]:last-child{order:1}}"]}),s})();var Rt=g(64075),Xn=g(97586),nn=g(97803),Dn=g(98377),Yn=g(95390);function Un(f,s){if(1&f&&(t.j41(0,"div")(1,"h4",11),t.EFF(2),t.k0s(),t.j41(3,"h3",12),t.EFF(4),t.k0s()()),2&f){const c=t.XpG();t.R7$(2),t.JRh(c.data.inscNom),t.R7$(2),t.JRh(c.data.inscNom)}}function ai(f,s){if(1&f&&(t.j41(0,"h4",11),t.EFF(1),t.k0s(),t.j41(2,"h3",12),t.EFF(3),t.k0s()),2&f){const c=t.XpG();t.R7$(),t.JRh(c.data.actiNoms),t.R7$(2),t.JRh(c.data.actiNoms)}}function v(f,s){if(1&f&&(t.j41(0,"div")(1,"div",13)(2,"span",14),t.nrm(3,"i",15),t.EFF(4),t.k0s(),t.j41(5,"span",16),t.EFF(6),t.k0s()(),t.nrm(7,"br"),t.k0s()),2&f){const c=t.XpG();t.R7$(4),t.SpI(" ",c.multipleDateFirst,""),t.R7$(2),t.JRh(c.multipleDateLast)}}function ae(f,s){if(1&f&&(t.j41(0,"span",20),t.nrm(1,"i",25),t.EFF(2),t.k0s()),2&f){const c=t.XpG(2);t.R7$(2),t.JRh(c.singleDaytime)}}function G(f,s){if(1&f&&(t.j41(0,"span",24),t.nrm(1,"i",25),t.EFF(2),t.k0s()),2&f){const c=t.XpG(2);t.R7$(2),t.JRh(c.singleDaytime)}}function B(f,s){if(1&f&&(t.j41(0,"div")(1,"div",17)(2,"span",18),t.nrm(3,"i",19),t.EFF(4),t.k0s(),t.DNE(5,ae,3,1,"span",20),t.k0s(),t.j41(6,"div",21)(7,"span",22),t.nrm(8,"i",19),t.EFF(9),t.k0s()(),t.j41(10,"div",23),t.DNE(11,G,3,1,"span",24),t.k0s()()),2&f){const c=t.XpG();t.R7$(4),t.SpI(" ",c.singleDaydate,""),t.R7$(),t.vxM(5,c.data.temps?5:-1),t.R7$(4),t.SpI(" ",c.singleDaydate,""),t.R7$(2),t.vxM(11,c.data.temps?11:-1)}}function X(f,s){if(1&f&&(t.j41(0,"div")(1,"div",26)(2,"span",27),t.nrm(3,"i",19),t.EFF(4),t.k0s()()()),2&f){const c=t.XpG();t.R7$(4),t.SpI(" ",c.isAdhesionDate,"")}}function ue(f,s){if(1&f&&(t.j41(0,"div",7)(1,"span",24),t.nrm(2,"i",28),t.EFF(3),t.k0s()()),2&f){const c=t.XpG();t.R7$(3),t.SpI(" ",c.data.lieu,"")}}function Ve(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",8)(1,"span",14),t.nrm(2,"i",29),t.EFF(3),t.k0s(),t.j41(4,"span",16),t.EFF(5),t.k0s(),t.j41(6,"span",30),t.bIt("click",function(){t.eBV(c);const E=t.XpG();return t.Njj(E.redirectToGoogleMaps(E.data.adresse))}),t.pXf(7,0),t.k0s()()}if(2&f){const c=t.XpG();t.R7$(3),t.SpI(" ",c.data.lieu,""),t.R7$(2),t.JRh(c.data.adresse)}}function ht(f,s){if(1&f&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&f){const c=s.$implicit;t.R7$(),t.JRh(c.trim())}}function $t(f,s){if(1&f&&(t.j41(0,"div",9)(1,"span",31),t.pXf(2,1),t.k0s(),t.j41(3,"ul",32),t.Z7z(4,ht,2,1,"li",null,t.fX1),t.k0s()()),2&f){const c=t.XpG();t.R7$(4),t.Dyx(c.actNomsArray)}}function St(f,s){if(1&f&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&f){const c=s.$implicit;t.R7$(),t.JRh(c.date?c.date+", "+c.temps:"")}}function bt(f,s){if(1&f&&(t.j41(0,"div",9)(1,"span",31),t.pXf(2,2),t.k0s(),t.j41(3,"ul",32),t.Z7z(4,St,2,1,"li",null,t.Vm6),t.k0s()()),2&f){const c=t.XpG();t.R7$(4),t.Dyx(c.actOccArray)}}function lt(f,s){if(1&f&&(t.j41(0,"div",10)(1,"span",31),t.pXf(2,3),t.k0s(),t.nrm(3,"vplus-froala-container",33),t.k0s()),2&f){const c=t.XpG();t.R7$(3),t.Y8G("content",c.infoAdds)}}let Kt=(()=>{var f;class s{constructor(_,E,m){this.data=_,this.localisationService=E,this.dialogRef=m,this.EnumTypeInscriptionNom=nn.sr,Xn.locale(this.localisationService.getCurrentLocalisation())}ngOnInit(){this.data&&(this.inscNom=this.data.inscNom,this.data.isAdhesionDate?this.isAd
1hesionDate="Du"+" "+this.removeTime(this.data.dateDebut.format("DD MMMM YYYY"))+" "+"au"+" "+this.removeTime(this.data.datefin.format("DD MMMM YYYY")):this.data.isMultipleDay?(this.multipleDateFirst="Du"+" "+this.minimiseFirstLetter(this.data.dateDebut.format("dddd DD MMMM YYYY"))+" "+"\xE0"+" "+this.getCleanedDate(this.data.tempsDebut.format("H:mm")),this.multipleDateLast="au"+" "+this.minimiseFirstLetter(this.data.datefin.format("dddd DD MMMM YYYY"))+" "+"\xE0"+" "+this.getCleanedDate(this.data.tempsfin.format("H:mm"))):(this.singleDaydate=this.data.date.format("dddd DD MMMM YYYY"),this.singleDaytime=this.data.temps),this.data.actNoms&&(this.actNomsArray=this.data.actNoms.split(",")),this.actOccArray=this.data.dateOccurrences,this.infoAdds=this.data.infoAdds)}redirectToGoogleMaps(_){if(_){const m=`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(this.data.adresse)}`;window.open(m,"_blank")}}hasOccurrencesWithDate(){return this.actOccArray&&this.actOccArray.some(_=>!!_.date)}getCleanedDate(_){return _.replace(/^(De|From|\xc0|To)\s+/i,"").trim()}minimiseFirstLetter(_){if(!_)return"";const E=this.removeTime(_);return E.charAt(0).toLowerCase()+E.slice(1)}removeTime(_){return _?_.replace(/\s\d{1,2}:\d{2}$/,""):""}closeDialog(){this.dialogRef.close()}}return(f=s).\u0275fac=function(_){return new(_||f)(t.rXU(Vt.Vh),t.rXU(Dn.A),t.rXU(Vt.CP))},f.\u0275cmp=t.VBU({type:f,selectors:[["vplus-app-carte-activite-dialog"]],decls:16,vars:9,consts:()=>{let c,_,E,m;return c="Voir l'itin\xE9raire",_="Activit\xE9s comprises",E=" Dates et horaires des occurrences ",m="Informations additionnelles",[c,_,E,m,[1,"dialog-container"],[1,"carte-dialog"],[1,"icon-close","close-icone",3,"click"],[1,"ligne-horaire","font-size-16"],[1,"ligne-horaire","font-size-16","localisation"],[1,"activity-padding-p1"],[1,"activity-padding-p2"],[1,"abonnements-actif","hide-mobile"],[1,"abonnements-actif","hide-desktop"],[1,"ligne-horaire","font-size-16","plage-horaire"],[1,"date-multiple"],[1,"icon-calendar-fin","icon-calendar-style",2,"margin-bottom","-14px"],[1,"date-multiple","adresse"],[1,"ligne-horaire","font-size-16","margin-bottom-1","hide-mobile"],[1,"date","font-size-16"],[1,"icon-calendar-fin","icon-calendar-style"],[1,"temps"],[1,"ligne-horaire","desklabel-size","margin-bottom-1","hide-desktop"],[1,"date","desklabel-size"],[1,"ligne-horaire","desklabel-size","hide-desktop","margin-bottom-1"],[1,"date"],[1,"icon-temps","icon-calendar-style"],[1,"ligne-horaire","font-size-16","margin-bottom-1"],[1,"date","margin-bottom-11"],[1,"icon-map-pin","icon-calendar-style"],[1,"icon-map-pin","icon-calendar-style",2,"margin-bottom","-14px"],[1,"date-multiple","adresse","map",3,"click"],[1,"activity-comprises"],[1,"activity-list","black-text"],[1,"infoAdds","responsive-padding-bottom","font-size-16",3,"content"]]},template:function(_,E){1&_&&(t.j41(0,"div",4)(1,"div",5),t.nrm(2,"br"),t.j41(3,"i",6),t.bIt("click",function(){return E.closeDialog()}),t.k0s(),t.nrm(4,"br"),t.DNE(5,Un,5,2,"div")(6,ai,4,2)(7,v,8,2,"div")(8,B,12,4,"div")(9,X,5,1,"div")(10,ue,4,1,"div",7)(11,Ve,8,2,"div",8),t.nrm(12,"br"),t.k0s(),t.DNE(13,$t,6,0,"div",9)(14,bt,6,0,"div",9)(15,lt,4,1,"div",10),t.k0s()),2&_&&(t.R7$(5),t.vxM(5,E.data.type===E.EnumTypeInscriptionNom.Adhesion?5:6),t.R7$(2),t.vxM(7,E.data.isMultipleDay?7:-1),t.R7$(),t.vxM(8,!E.data.isMultipleDay&&E.singleDaydate?8:-1),t.R7$(),t.vxM(9,E.data.isAdhesionDate?9:-1),t.R7$(),t.vxM(10,E.data.lieu&&!E.data.adresse?10:-1),t.R7$(),t.vxM(11,E.data.lieu&&E.data.adresse?11:-1),t.R7$(2),t.vxM(13,E.data.type===E.EnumTypeInscriptionNom.Adhesion?13:-1),t.R7$(),t.vxM(14,!E.data.hasMultiSession&&E.data.type===E.EnumTypeInscriptionNom.Session&&E.hasOccurrencesWithDate()?14:-1),t.R7$(),t.vxM(15,E.infoAdds?15:-1))},dependencies:[Yn.m],styles:[".abonnements-actif[_ngcontent-%COMP%]{margin-top:0;margin-left:2rem;margin-right:2rem;margin-bottom:1.4rem}.calander-icone[_ngcontent-%COMP%]{margin-right:1rem}[_nghost-%COMP%] .h4{margin-top:0}.carte-dialog[_ngcontent-%COMP%]{background-color:var(--primary-color-opacity-24);position:relative}.close-icone[_ngcontent-%COMP%]{float:right;margin-right:1rem;font-size:1.5em;cursor:pointer}.icon-calendar-style[_ngcontent-%COMP%]{margin-right:12px;font-size:1.3em}.plage-horaire[_ngcontent-%COMP%], .localisation[_ngcontent-%COMP%]{display:flow!important;align-items:center;flex-direction:column;text-align:left}.map[_ngcontent-%COMP%]{font-size:12px;text-decoration:underline;cursor:pointer}.dialog-container[_ngcontent-%COMP%]{max-height:80vh;overflow-y:auto}.activity-comprises[_ngcontent-%COMP%]{color:#656565;font-weight:600}.activity-padding-p1[_ngcontent-%COMP%]{padding:2rem 2rem .5rem}.activity-padding-p2[_ngcontent-%COMP%]{padding-top:1.5rem;padding-right:2rem;padding-left:2rem}.infoAdds[_ngcontent-%COMP%]{margin-left:2rem;margin-right:4rem}.activity-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:.5rem;font-size:16px;font-weight:500}.ligne-horaire[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-left:2rem;margin-right:2rem;font-size:15px;line-height:1.5}.date[_ngcontent-%COMP%], .temps[_ngcontent-%COMP%], .date-multiple[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:500}.date[_ngcontent-%COMP%]{text-align:left!important;margin-right:1rem!important}.date-multiple[_ngcontent-%COMP%]{text-align:left!important;margin-right:14px!important}.temps[_ngcontent-%COMP%]{text-align:right;margin-right:3rem}@media (max-width: 960px){.adresse[_ngcontent-%COMP%]{width:90%;margin-left:2.25rem!important}}@media (max-width: 913px){.activity-comprises[_ngcontent-%COMP%]{font-size:16px!important}.ligne-horaire[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-left:2rem;margin-right:1rem;font-size:15px;line-height:1.5}}[_nghost-%COMP%] .froala-inner-html p, .froala-inner-html[_ngcontent-%COMP%] p[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-family:var(--primary-font);font-size:16px;font-weight:500}[_nghost-%COMP%] .froala-inner-html h1, [_nghost-%COMP%] .froala-inner-html h2, [_nghost-%COMP%] .froala-inner-html h3, [_nghost-%COMP%] .froala-inner-html h4, [_nghost-%COMP%] .froala-inner-html h5, [_nghost-%COMP%] .froala-inner-html h6{font-size:16px!important}[_nghost-%COMP%] vplus-froala-container .froala-inner-html ol, [_nghost-%COMP%] vplus-froala-container .froala-inner-html ol *{font-family:var(--primary-font);font-size:16px!important}[_nghost-%COMP%] .froala-inner-html :link, [_nghost-%COMP%] .froala-inner-html :link:hover{text-decoration:none!important;font-size:16px}"]}),s})();var Ht=g(60177),Fn=g(45398);function xn(f,s){if(1&f&&(t.j41(0,"div",14)(1,"div",15)(2,"span",16),t.pXf(3,1),t.k0s(),t.j41(4,"span",16),t.pXf(5,2),t.k0s()(),t.j41(6,"div",17)(7,"span",18),t.EFF(8),t.k0s(),t.j41(9,"span",18),t.EFF(10),t.k0s()()()),2&f){const c=t.XpG();t.R7$(8),t.JRh(c.data.dateDebut),t.R7$(2),t.JRh(c.tempsDebut)}}function bn(f,s){if(1&f&&(t.j41(0,"div",14)(1,"div",15)(2,"span",16),t.pXf(3,3),t.k0s(),t.j41(4,"span",16),t.pXf(5,4),t.k0s(),t.j41(6,"span",16),t.pXf(7,5),t.k0s()(),t.j41(8,"div",17)(9,"span",18),t.EFF(10),t.k0s(),t.j41(11,"span",18),t.EFF(12),t.k0s(),t.j41(13,"span",18),t.EFF(14),t.k0s()()()),2&f){const c=t.XpG();t.R7$(10),t.JRh(c.data.date),t.R7$(2),t.JRh(c.debut),t.R7$(2),t.JRh(c.fin)}}function Wn(f,s){if(1&f){const c=t.RV6();t.j41(0,"button",31),t.bIt("click",function(){t.eBV(c);const E=t.XpG();return t.Njj(E.previousParticipant())}),t.nrm(1,"i",32),t.k0s()}if(2&f){const c=t.XpG();t.Y8G("disabled",0===c.currentIndex)}}function qn(f,s){if(1&f){const c=t.RV6();t.j41(0,"button",33),t.bIt("click",function(){t.eBV(c);const E=t.XpG();return t.Njj(E.nextParticipant())}),t.nrm(1,"i",34),t.k0s()}if(2&f){const c=t.XpG();t.Y8G("disabled",c.currentIndex===c.data.detail.length-1)}}function ti(f,s){if(1&f){const c=t.RV6();t.j41(0,"button",35),t.bIt("click",function(){t.eBV(c);const E=t.XpG();return t.Njj(E.previousParticipant())}),t.nrm(1,"i",32),t.k0s()}if(2&f){const c=t.XpG();t.Y8G("disabled",0===c.currentIndex)}}function li(f,s){if(1&f){const c=t.RV6();t.j41(0,"button",36),t.bIt("click",function(){t.eBV(c);const E=t.XpG();return t.Njj(E.nextParticipant())}),t.nrm(1,"i",34),t.k0s()}if(2&f){const c=t.XpG();t.Y8G("disabled",c.currentIndex===c.data.detail.length-1)}}let It=(()=>{var f;class s{constructor(_,E,m){this.data=_,this.localisationService=E,this.dialogRef=m,this.debut="",this.fin="",this.tempsDebut="",this.currentIndex=0,K.locale(this.localisationService.getCurrentLocalisation())}ngOnInit(){if(this.data.tempsDebut&&(this.tempsDebut=this.getCleanedDate(this.data.tempsDebut)),this.data.temps){const _=this.data.temps.match(/(\d{1,2}:\d{2})/g);_&&2===_.length&&(this.debut=_[0],this.fin=_[1])}}closeDialog(){this.dialogRef.close()}getCleanedDate(_){return _.replace(/^(From|De)\s+/i,"").trim()}get currentParticipant(){return this.data.detail[this.currentIndex]}nextParticipant(){this.currentIndex<this.data.detail.length-1&&this.currentIndex++}previousParticipant(){this.currentIndex>0&&this.currentIndex--}}return(f=s).\u0275fac=function(_){return new(_||f)(t.rXU(Vt.Vh),t.rXU(Dn.A),t.rXU(Vt.CP))},f.\u0275cmp=t.VBU({type:f,selectors:[["vplus-carte-entree-dialog"]],decls:42,vars:21,consts:()=>{let c,_,E,m,h,V;return c="Lieu",_="Date",E="D\xE9but",m="Date",h="D\xE9but",V="Fin",[c,_,E,m,h,V,[1,"dialog-container","entree-container"],[1,"entree-background"],[1,"icon-close","close-icone",3,"click"],[1,"entree-actif"],[1,"entree-actif","margin-left-admission"],[1,"margin-table"],["class","table",4,"ngIf"],[1,"entree-table"],[1,"table"],[1,"table-row","header"],[1,"table-cell"],[1,"table-row"],[1,"table-cell","font-weight-600"],[1,"participant-container","hide-mobile","desktop-container"],["class","arrow-button previousParticipant",3,"disabled","click",4,"ngIf"],[1,"participant-details","text-center"],[3,"qrdata","width","errorCorrectionLevel","margin"],[1,"currentParticipant-enregCode"],[1,"currentParticipant-nomComplet"],["class","arrow-button",3,"disabled","click",4,"ngIf"],[1,"participant-container","hide-desktop","mobile-container"],["class","arrow-button-mobile previousParticipant-mobile",3,"disabled","click",4,"ngIf"],[1,"currentParticipant-enregCode-mobile"],[1,"currentParticipant-nomComplet-mobile"],["class","arrow-button-mobile",3,"disabled","click",4,"ngIf"],[1,"arrow-button","previousParticipant",3,"click","disabled"],[1,"icon-chevron-left","gray-icon"],[1,"arrow-button",3,"click","disabled"],[1,"icon-chevron-right","gray-icon"],[1,"arrow-button-mobile","previousParticipant-mobile",3,"click","disabled"],[1,"arrow-button-mobile",3,"click","disabled"]]},template:function(_,E){1&_&&(t.j41(0,"div",6)(1,"div",7),t.nrm(2,"br"),t.j41(3,"i",8),t.bIt("click",function(){return E.closeDialog()}),t.k0s(),t.j41(4,"h3",9),t.EFF(5),t.k0s(),t.j41(6,"h5",10),t.EFF(7),t.k0s(),t.nrm(8,"br")(9,"br"),t.k0s(),t.j41(10,"div",11),t.DNE(11,xn,11,2,"div",12)(12,bn,15,3,"div",12),t.k0s(),t.j41(13,"div",13)(14,"div",14)(15,"div",15)(16,"span",16),t.pXf(17,0),t.k0s()(),t.j41(18,"div",17)(19,"span",18),t.EFF(20),t.k0s()()()(),t.nrm(21,"br"),t.j41(22,"div",19),t.DNE(23,Wn,2,1,"button",20),t.j41(24,"div",21),t.nrm(25,"qrcode",22),t.j41(26,"p",23),t.EFF(27),t.k0s(),t.j41(28,"p",24),t.EFF(29),t.k0s()(),t.DNE(30,qn,2,1,"button",25),t.k0s(),t.j41(31,"div",26),t.DNE(32,ti,2,1,"button",27),t.j41(33,"div",21),t.nrm(34,"qrcode",22),t.j41(35,"p",28),t.EFF(36),t.k0s(),t.j41(37,"p",29),t.EFF(38),t.k0s()(),t.DNE(39,li,2,1,"button",30),t.k0s(),t.nrm(40,"br")(41,"div"),t.k0s()),2&_&&(t.R7$(5),t.JRh(E.data.nomAct),t.R7$(2),t.JRh(E.currentParticipant.nomAdmission),t.R7$(4),t.Y8G("ngIf",E.data.isMultipleDay),t.R7$(),t.Y8G("ngIf",!E.data.isMultipleDay),t.R7$(8),t.JRh(E.data.lieu),t.R7$(3),t.Y8G("ngIf",E.data.detail.length>1),t.R7$(2),t.Y8G("qrdata",E.currentParticipant.qrCode)("width",200)("errorCorrectionLevel","M")("margin",2),t.R7$(2),t.JRh(E.currentParticipant.enregCode),t.R7$(2),t.JRh(E.currentParticipant.nomComplet),t.R7$(),t.Y8G("ngIf",E.data.detail.length>1),t.R7$(2),t.Y8G("ngIf",E.data.detail.length>1),t.R7$(2),t.Y8G("qrdata",E.currentParticipant.qrCode)("width",120)("errorCorrectionLevel","M")("margin",2),t.R7$(2),t.JRh(E.currentParticipant.enregCode),t.R7$(2),t.JRh(E.currentParticipant.nomComplet),t.R7$(),t.Y8G("ngIf",E.data.detail.length>1))},dependencies:[Ht.bT,Fn.c],styles:[".entree-container[_ngcontent-%COMP%]{max-height:80vh;overflow-y:auto}.close-icone[_ngcontent-%COMP%]{float:right;margin-right:1rem;font-size:1.5em;cursor:pointer;color:#fff}.color[_ngcontent-%COMP%]{color:#fff}.margin-table[_ngcontent-%COMP%]{margin:1rem 2rem .1rem .8rem}.margin-left-admission[_ngcontent-%COMP%]{margin-left:1.4rem!important}.entree-table[_ngcontent-%COMP%]{margin:1rem 2rem .1rem .8rem}.entree-actif[_ngcontent-%COMP%]{text-align:center;color:#fff;margin-right:2rem;margin-left:2rem}.desktop-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}.mobile-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.previousParticipant[_ngcontent-%COMP%]{border:none;background:none;padding:0;margin-top:-4rem;margin-right:3rem}.currentParticipant-enregCode[_ngcontent-%COMP%]{margin:5px 0;font-size:19px;font-weight:800}.currentParticipant-nomComplet[_ngcontent-%COMP%]{margin:5px 0;font-size:19px;font-weight:500}.table[_ngcontent-%COMP%]{display:table;width:100%;border-collapse:collapse}.table-row[_ngcontent-%COMP%]{display:table-row}.table-cell[_ngcontent-%COMP%]{display:table-cell;padding:.3rem .2rem .2rem 2rem;text-align:left;border-bottom:1px solid #fff}.header[_ngcontent-%COMP%] .table-cell[_ngcontent-%COMP%]{color:var(--primary-color);background-color:var(--primary-color-light, #fff)}.arrow-button[_ngcontent-%COMP%]{border:none;background:none;padding:0;margin-top:-4rem;margin-left:3rem;margin-right:3rem}.arrow-button-mobile[_ngcontent-%COMP%]{border:none;background:none;padding:0;margin-top:-4rem;margin-left:2rem!important;margin-right:2rem!important;font-size:x-small}.gray-icon[_ngcontent-%COMP%]{font-size:7em;cursor:pointer;color:gray}.arrow-button[_ngcontent-%COMP%]:disabled .icon-chevron-right[_ngcontent-%COMP%]{color:#d3d3d3;cursor:not-allowed}.arrow-button[_ngcontent-%COMP%]:disabled .icon-chevron-left[_ngcontent-%COMP%]{color:#d3d3d3;cursor:not-allowed}.previousParticipant-mobile[_ngcontent-%COMP%]{border:none;background:none;padding:0}.currentParticipant-enregCode-mobile[_ngcontent-%COMP%]{margin:5px 0;font-size:13px;font-weight:800}.currentParticipant-nomComplet-mobile[_ngcontent-%COMP%]{margin:5px 0;font-size:13px;font-weight:500}.entree-background[_ngcontent-%COMP%]{background-color:var(--primary-color);position:relative}"]}),s})();var yn=g(88834);let Le=(()=>{var f;class s{constructor(){this.dialogRef=(0,t.WQX)(Vt.CP),this.data=(0,t.WQX)(Vt.Vh),this.abortBtnText="Annuler",this.proceedBtnText="Se retirer",this.colorButton="#1976d2"}onConfirm(){this.dialogRef.close({confirm:!0})}}return(f=s).\u0275fac=function(_){return new(_||f)},f.\u0275cmp=t.VBU({type:f,selectors:[["vplus-delete-enregistrement"]],standalone:!0,features:[t.aNF],decls:11,vars:8,consts:[["mat-dialog-title","",1,"padding-0","margin-bottom-1"],["mat-dialog-content",""],[3,"innerHTML"],["mat-dialog-actions",""],["mat-raised-button","",1,"custom-button-stroked",3,"mat-dialog-close"],["mat-raised-button","",1,"custom-button-full","custom-button-standard",3,"click","color","mat-dialog-close"]],template:function(_,E){1&_&&(t.j41(0,"h2",0),t.EFF(1),t.j41(2,"span"),t.EFF(3),t.k0s()(),t.j41(4,"div",1),t.nrm(5,"div",2),t.k0s(),t.j41(6,"div",3)(7,"button",4),t.EFF(8),t.k0s(),t.j41(9,"button",5),t.bIt("click",function(){return E.onConfirm()}),t.EFF(10),t.k0s()()),2&_&&(t.R7$(),t.SpI("",E.data.titleText," "),t.R7$(2),t.JRh(E.data.titleItem?E.data.titleItem:""),t.R7$(2),t.Y8G("innerHTML",E.data.mainText,t.npT),t.R7$(2),t.Y8G("mat-dialog-close",!1),t.R7$(),t.SpI(" ",E.abortBtnText," "),t.R7$(),t.Y8G("color",E.data.colorButton?E.data.colorButton:E.colorButton)("mat-dialog-close",!0),t.R7$(),t.SpI(" ",E.data.proceedBtnText?E.data.proceedBtnText:E.proceedBtnText," "))},dependencies:[Ht.MD,yn.Hl,yn.$z,Vt.hM,Vt.tx,Vt.BI,Vt.E7,Vt.Yi],encapsulation:2}),s})();var Gn=g(92995),wi=g(983),un=g(51188),Xi=g(9310),qt=g(25558),Dt=g(89079),An=g(86600),Ai=g(
182798),ui=g(96850),ni=g(89417),pi=g(64940),go=g(75824),Ui=g(6064);const Pi=["fullCalendar"],Ir=(f,s)=>s.value,Ii=(f,s)=>s.enregId,Ri=(f,s)=>s.enregCode,vi=(f,s)=>s.resNo,Ao=()=>["/activite"],Bn=(f,s)=>[f,s],Io=(f,s,c)=>[f,s,c],Ei=(f,s)=>({activity:f,detail:s});function ji(f,s){1&f&&t.nrm(0,"vplus-loading-spinner")}function No(f,s){if(1&f&&t.nrm(0,"vplus-intro-card",48),2&f){const c=t.XpG(2);t.Y8G("title",c.introCardContent.title)("imgSrc",c.introCardContent.imgSrc)("description",c.introCardContent.description)("buttonLabel",c.introCardContent.buttonLabel)("buttonLink","/activite")}}function Hi(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",76)(1,"div",77)(2,"h6",78),t.EFF(3),t.k0s(),t.j41(4,"p",79),t.EFF(5),t.k0s(),t.j41(6,"p",80),t.EFF(7),t.k0s()(),t.j41(8,"button",81),t.bIt("click",function(){const E=t.eBV(c).$implicit,m=t.XpG(5);return t.Njj(m.removeFromWaitlist(E))}),t.nrm(9,"i",82),t.j41(10,"span"),t.pXf(11,13),t.k0s()()()}if(2&f){const c=s.$implicit;t.R7$(3),t.JRh(c.nomActivite),t.R7$(2),t.JRh(c.nomSession),t.R7$(2),t.JRh(c.nomComplet)}}function zi(f,s){if(1&f&&(t.j41(0,"div",54)(1,"span",56),t.pXf(2,12),t.k0s(),t.nrm(3,"hr",57)(4,"hr",58),t.j41(5,"div",75),t.Z7z(6,Hi,12,3,"div",76,Ii),t.k0s()()),2&f){const c=t.XpG(4);t.R7$(6),t.Dyx(c.waitingList)}}function Di(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",60)(1,"div",77)(2,"div",83)(3,"span",84),t.bIt("click",function(){const E=t.eBV(c).$implicit,m=t.XpG(4);return t.Njj(m.openAbonnementsDialog(E))}),t.EFF(4),t.k0s()(),t.j41(5,"div",85)(6,"span",86),t.EFF(7),t.k0s()()()()}if(2&f){const c=s.$implicit;t.R7$(4),t.SpI(" ",c.inscNom," "),t.R7$(3),t.JRh(c.plageHoraire)}}function bi(f,s){1&f&&(t.j41(0,"p")(1,"span",87),t.nrm(2,"i",88),t.j41(3,"span",89),t.pXf(4,14),t.k0s()()())}function ho(f,s){if(1&f&&(t.j41(0,"mat-option",66),t.EFF(1),t.k0s()),2&f){const c=s.$implicit;t.Y8G("value",c),t.R7$(),t.JRh(c)}}function So(f,s){1&f&&(t.j41(0,"div",67)(1,"p")(2,"span",90),t.nrm(3,"i",91),t.j41(4,"span",89),t.pXf(5,15),t.k0s()()()())}function Ni(f,s){1&f&&(t.j41(0,"div")(1,"p")(2,"span",90),t.nrm(3,"i",91),t.j41(4,"span",89),t.pXf(5,16),t.k0s()()()())}function yi(f,s){if(1&f&&(t.j41(0,"div",96)(1,"span",100),t.EFF(2),t.k0s(),t.j41(3,"span",101),t.EFF(4),t.k0s()()),2&f){const c=t.XpG(2).$implicit;t.R7$(2),t.JRh(c.date),t.R7$(2),t.JRh(c.temps)}}function Yi(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",98)(1,"p",102),t.EFF(2),t.k0s(),t.j41(3,"span",103),t.bIt("click",function(){t.eBV(c);const E=t.XpG(2).$implicit,m=t.XpG(5);return t.Njj(m.openEntreeQrCodeDialog(E))}),t.pXf(4,17),t.k0s()()}if(2&f){const c=t.XpG(2).$implicit;t.R7$(2),t.JRh(c.type)}}function Mo(f,s){if(1&f&&(t.j41(0,"div",104)(1,"div",105)(2,"span",102),t.EFF(3),t.k0s(),t.j41(4,"span",106),t.pXf(5,18),t.k0s()(),t.j41(6,"button",107)(7,"span"),t.pXf(8,19),t.k0s()()()),2&f){const c=t.XpG(3).$implicit;t.R7$(3),t.JRh(c.type)}}function _i(f,s){if(1&f&&(t.j41(0,"div",108)(1,"span",102),t.EFF(2),t.k0s(),t.j41(3,"span",106),t.pXf(4,20),t.k0s()()),2&f){const c=t.XpG(3).$implicit;t.R7$(2),t.JRh(c.type)}}function Li(f,s){if(1&f&&t.DNE(0,Mo,9,1,"div",104)(1,_i,5,1),2&f){const c=t.XpG(2).$implicit;t.vxM(0,c.hasQuestSupp?0:1)}}function Si(f,s){if(1&f&&(t.j41(0,"p",110),t.EFF(1),t.k0s()),2&f){const c=t.XpG(2).$implicit;t.R7$(),t.JRh(c.nomComplet)}}function Oo(f,s){if(1&f&&(t.j41(0,"p",111),t.EFF(1),t.k0s()),2&f){const c=t.XpG(2).$implicit;t.R7$(),t.JRh(c.enregCode)}}function Po(f,s){if(1&f&&(t.j41(0,"p",111),t.EFF(1),t.k0s()),2&f){const c=t.XpG(2).$implicit;t.R7$(),t.JRh(c.resNo)}}function Bi(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",109)(1,"div",105),t.DNE(2,Si,2,1,"p",110)(3,Oo,2,1,"p",111)(4,Po,2,1),t.k0s(),t.j41(5,"button",112),t.bIt("click",function(){t.eBV(c);const E=t.XpG().$implicit,m=t.XpG(2).$implicit,h=t.XpG(5);return t.Njj(h.navigateToFicheInscription(m,E))}),t.j41(6,"span"),t.pXf(7,21),t.k0s()()()}if(2&f){const c=t.XpG().$implicit,_=t.XpG(2).$implicit,E=t.XpG(5);t.R7$(2),t.vxM(2,c.nomComplet?2:-1),t.R7$(),t.vxM(3,t.l_i(2,Bn,E.EnumTypeInscriptionNom.Entree,E.EnumTypeInscriptionNom.Session).includes(_.type)?3:_.type===E.EnumTypeInscriptionNom.Reservation?4:-1)}}function Mi(f,s){if(1&f&&(t.j41(0,"p",110),t.EFF(1),t.k0s()),2&f){const c=t.XpG(2).$implicit;t.R7$(),t.JRh(c.nomComplet)}}function Ro(f,s){if(1&f&&(t.j41(0,"p",111),t.EFF(1),t.k0s()),2&f){const c=t.XpG(2).$implicit;t.R7$(),t.JRh(c.enregCode)}}function Vi(f,s){if(1&f&&(t.j41(0,"p",111),t.EFF(1),t.k0s()),2&f){const c=t.XpG(2).$implicit;t.R7$(),t.JRh(c.resNo)}}function Wi(f,s){if(1&f&&(t.j41(0,"div",96),t.DNE(1,Mi,2,1,"p",110)(2,Ro,2,1,"p",111)(3,Vi,2,1),t.k0s()),2&f){const c=t.XpG().$implicit,_=t.XpG(2).$implicit,E=t.XpG(5);t.R7$(),t.vxM(1,c.nomComplet?1:-1),t.R7$(),t.vxM(2,t.l_i(2,Bn,E.EnumTypeInscriptionNom.Entree,E.EnumTypeInscriptionNom.Session).includes(_.type)?2:_.type===E.EnumTypeInscriptionNom.Reservation?3:-1)}}function vo(f,s){if(1&f&&(t.j41(0,"div",96)(1,"p",100),t.EFF(2),t.k0s()()),2&f){const c=s.$implicit;t.R7$(2),t.JRh(c.nom)}}function Do(f,s){if(1&f&&(t.j41(0,"div"),t.Z7z(1,vo,3,1,"div",96,t.Vm6),t.k0s()),2&f){const c=t.XpG().$implicit;t.R7$(),t.Dyx(c.autreParticipant)}}function qi(f,s){if(1&f&&(t.DNE(0,Bi,8,5,"div",109)(1,Wi,4,5),t.j41(2,"div"),t.DNE(3,Do,3,0,"div"),t.k0s()),2&f){const c=s.$implicit,_=t.XpG(2).$implicit;t.vxM(0,_.hasQuestSupp?0:1),t.R7$(3),t.vxM(3,c.autreParticipant&&c.autreParticipant.length?3:-1)}}function Qi(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",92)(1,"div",93)(2,"p",94),t.bIt("click",function(){t.eBV(c);const E=t.XpG().$implicit,m=t.XpG(5);return t.Njj(m.openActivityDialog(E))}),t.EFF(3),t.k0s(),t.j41(4,"div",95),t.DNE(5,yi,5,2,"div",96),t.nrm(6,"span",97),t.DNE(7,Yi,5,1,"div",98)(8,Li,2,1),t.j41(9,"div",99),t.Z7z(10,qi,4,2,"div",null,t.Vm6),t.k0s()()()()}if(2&f){const c=t.XpG().$implicit,_=t.XpG(5);t.R7$(),t.AVh("clicked-event",c.isClicked),t.R7$(2),t.SpI(" ",c.displayName," "),t.R7$(2),t.vxM(5,c.date?5:-1),t.R7$(2),t.vxM(7,c.type===_.EnumTypeInscriptionNom.Entree?7:-1),t.R7$(),t.vxM(8,t.l_i(6,Bn,_.EnumTypeInscriptionNom.Reservation,_.EnumTypeInscriptionNom.Session).includes(c.type)?8:-1),t.R7$(2),t.Dyx(c.details)}}function bo(f,s){if(1&f&&(t.j41(0,"div"),t.DNE(1,Qi,12,9,"div",92),t.k0s()),2&f){const c=s.$implicit,_=t.XpG(5);t.R7$(),t.vxM(1,c.shouldShowCard&&c.isFutureActivity&&0!==_.futureActivityCount?1:-1)}}function yo(f,s){if(1&f&&(t.j41(0,"div"),t.DNE(1,Ni,6,0,"div"),t.Z7z(2,bo,2,1,"div",null,t.Vm6),t.k0s()),2&f){const c=t.XpG(4);t.R7$(),t.vxM(1,c.hasFutureActivities?-1:1),t.R7$(),t.Dyx(c.sortedActivities)}}function Lo(f,s){if(1&f&&(t.j41(0,"mat-option",70),t.EFF(1),t.k0s()),2&f){const c=s.$implicit;t.Y8G("value",c.value),t.R7$(),t.JRh(c.label)}}function Vo(f,s){if(1&f&&(t.j41(0,"mat-option",70),t.EFF(1),t.k0s()),2&f){const c=s.$implicit;t.Y8G("value",c),t.R7$(),t.JRh(c)}}function Ji(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",49)(1,"div",51)(2,"h4",52),t.pXf(3,3),t.k0s(),t.j41(4,"button",53),t.pXf(5,4),t.k0s()(),t.DNE(6,zi,8,0,"div",54),t.j41(7,"div",55)(8,"span",56),t.pXf(9,5),t.k0s(),t.nrm(10,"hr",57)(11,"hr",58),t.j41(12,"div",59),t.Z7z(13,Di,8,2,"div",60,t.Vm6,!1,bi,5,0,"p"),t.k0s()(),t.j41(16,"div",61)(17,"div",62)(18,"span",56),t.pXf(19,6),t.k0s(),t.nrm(20,"hr",57)(21,"hr",58),t.j41(22,"div",63)(23,"mat-select",64),t.mxI("ngModelChange",function(E){t.eBV(c);const m=t.XpG(3);return t.DH7(m.selectedDetail,E)||(m.selectedDetail=E),t.Njj(E)}),t.j41(24,"mat-option",65),t.pXf(25,7),t.k0s(),t.Z7z(26,ho,2,2,"mat-option",66,t.fX1),t.k0s()(),t.DNE(28,So,6,0,"div",67)(29,y
1o,4,1,"div"),t.nI1(30,"keyvalue"),t.j41(31,"button",68),t.bIt("click",function(){t.eBV(c);const E=t.XpG(3);return t.Njj(E.toggleSections())}),t.pXf(32,8),t.k0s()(),t.j41(33,"div",69)(34,"span",56),t.pXf(35,9),t.k0s(),t.nrm(36,"hr",57)(37,"hr",58),t.j41(38,"div",63)(39,"div")(40,"mat-select",64),t.mxI("ngModelChange",function(E){t.eBV(c);const m=t.XpG(3);return t.DH7(m.selectedView,E)||(m.selectedView=E),t.Njj(E)}),t.bIt("ngModelChange",function(E){t.eBV(c);const m=t.XpG(3);return t.Njj(m.onViewChange(E))}),t.Z7z(41,Lo,2,2,"mat-option",70,Ir),t.k0s()(),t.j41(43,"div")(44,"mat-select",71),t.mxI("ngModelChange",function(E){t.eBV(c);const m=t.XpG(3);return t.DH7(m.selectedDetail,E)||(m.selectedDetail=E),t.Njj(E)}),t.bIt("selectionChange",function(E){t.eBV(c);const m=t.XpG(3);return t.Njj(m.filterEvents(E))}),t.j41(45,"mat-option",66),t.pXf(46,10),t.k0s(),t.Z7z(47,Vo,2,2,"mat-option",70,t.fX1),t.k0s()()(),t.j41(49,"div",72),t.nrm(50,"full-calendar",73,0),t.j41(52,"button",74),t.bIt("click",function(){t.eBV(c);const E=t.XpG(3);return t.Njj(E.toggleSections())}),t.pXf(53,11),t.k0s()()()()()}if(2&f){const c=t.XpG(3);t.R7$(4),t.Y8G("routerLink",t.lJ4(14,Ao)),t.R7$(2),t.vxM(6,(null==c.waitingList?null:c.waitingList.length)>0?6:-1),t.R7$(6),t.AVh("justify-center",0===c.activeAdhesionsList.length),t.R7$(),t.Dyx(c.activeAdhesionsList),t.R7$(10),t.R50("ngModel",c.selectedDetail),t.R7$(3),t.Dyx(c.uniqueComingDetails),t.R7$(2),t.vxM(28,0===c.sortedActivities.length?28:-1),t.R7$(),t.vxM(29,c.entreesList.length>0||c.sessionList.length>0||t.bMT(30,12,c.reservationsHashList).length>0?29:-1),t.R7$(11),t.R50("ngModel",c.selectedView),t.R7$(),t.Dyx(c.timeOptions),t.R7$(3),t.R50("ngModel",c.selectedDetail),t.R7$(),t.Y8G("value",c.selectedDetail),t.R7$(2),t.Dyx(c.uniqueDetails),t.R7$(3),t.Y8G("options",c.calendarOptions)}}function Ki(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",127)(1,"button",112),t.bIt("click",function(E){t.eBV(c);const m=t.XpG(),h=m.activity,V=m.detail,W=t.XpG(4);return E.stopPropagation(),t.Njj(W.navigateToFicheInscription(h,V))}),t.j41(2,"span"),t.pXf(3,23),t.k0s()()()}}function $o(f,s){if(1&f&&t.DNE(0,Ki,4,0,"div",127),2&f){const c=s.activity,_=t.XpG(4);t.vxM(0,c.hasQuestSupp&&t.sMw(1,Io,_.EnumTypeInscriptionNom.Reservation,_.EnumTypeInscriptionNom.Session,_.EnumTypeInscriptionNom.Entree).includes(c.type)?0:-1)}}function xo(f,s){1&f&&(t.j41(0,"span"),t.pXf(1,24),t.k0s())}function Zi(f,s){if(1&f&&(t.j41(0,"span",153),t.EFF(1),t.k0s()),2&f){const c=t.XpG().$implicit;t.R7$(),t.JRh(c.enregCode)}}function Go(f,s){if(1&f&&(t.j41(0,"span",153),t.EFF(1),t.k0s()),2&f){const c=t.XpG().$implicit;t.R7$(),t.JRh(c.resNo)}}function Fo(f,s){if(1&f&&(t.j41(0,"span",155),t.EFF(1),t.k0s()),2&f){const c=t.XpG().$implicit;t.R7$(),t.JRh(c.enregCode)}}function eo(f,s){if(1&f&&(t.j41(0,"span",155),t.EFF(1),t.k0s()),2&f){const c=t.XpG().$implicit;t.R7$(),t.JRh(c.resNo)}}function ko(f,s){1&f&&t.eu8(0)}function wo(f,s){if(1&f&&(t.j41(0,"div",96)(1,"div",146)(2,"div",151)(3,"span",152),t.EFF(4),t.k0s(),t.DNE(5,Zi,2,1,"span",153)(6,Go,2,1,"span",153),t.j41(7,"span",154),t.EFF(8),t.k0s(),t.DNE(9,Fo,2,1,"span",155)(10,eo,2,1,"span",155),t.k0s()(),t.DNE(11,ko,1,0,"ng-container",156),t.k0s()),2&f){const c=s.$implicit,_=t.XpG(3).$implicit;t.XpG();const E=t.sdS(2),m=t.XpG(3);t.R7$(4),t.JRh(c.nomComplet),t.R7$(),t.vxM(5,t.l_i(8,Bn,m.EnumTypeInscriptionNom.Entree,m.EnumTypeInscriptionNom.Session).includes(_.type)?5:-1),t.R7$(),t.vxM(6,_.type===m.EnumTypeInscriptionNom.Reservation?6:-1),t.R7$(2),t.JRh(c.nomComplet),t.R7$(),t.vxM(9,t.l_i(11,Bn,m.EnumTypeInscriptionNom.Entree,m.EnumTypeInscriptionNom.Session).includes(_.type)?9:-1),t.R7$(),t.vxM(10,_.type===m.EnumTypeInscriptionNom.Reservation?10:-1),t.R7$(),t.Y8G("ngTemplateOutlet",E)("ngTemplateOutletContext",t.l_i(14,Ei,_,c))}}function Xo(f,s){if(1&f&&(t.j41(0,"div",151)(1,"span",152),t.EFF(2),t.k0s(),t.j41(3,"span",154),t.EFF(4),t.k0s()()),2&f){const c=s.$implicit;t.R7$(2),t.JRh(c.nom),t.R7$(2),t.JRh(c.nom)}}function Uo(f,s){if(1&f&&(t.j41(0,"div",146),t.Z7z(1,Xo,5,2,"div",151,t.Vm6),t.k0s()),2&f){const c=t.XpG().$implicit;t.R7$(),t.Dyx(c.autreParticipant)}}function jo(f,s){if(1&f&&(t.j41(0,"div",96),t.DNE(1,Uo,3,0,"div",146),t.k0s()),2&f){const c=s.$implicit;t.R7$(),t.vxM(1,c.autreParticipant&&c.autreParticipant.length?1:-1)}}function to(f,s){if(1&f&&(t.j41(0,"div",145),t.nrm(1,"br")(2,"hr",57)(3,"hr",58),t.j41(4,"div",146)(5,"div",147)(6,"span",148),t.pXf(7,25),t.k0s(),t.j41(8,"span",149),t.pXf(9,26),t.k0s(),t.j41(10,"span",150),t.pXf(11,27),t.k0s()()(),t.Z7z(12,wo,12,17,"div",96,t.Vm6),t.Z7z(14,jo,2,1,"div",96,t.Vm6),t.k0s()),2&f){const c=t.XpG(2).$implicit;t.R7$(12),t.Dyx(c.details),t.R7$(2),t.Dyx(c.details)}}function Ho(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",128)(1,"div",129),t.bIt("click",function(){t.eBV(c);const E=t.XpG().$index,m=t.XpG(4);return t.Njj(m.toggleDetails(E))}),t.j41(2,"div",130)(3,"div",131)(4,"div",132)(5,"div",133)(6,"h4")(7,"span",134),t.EFF(8),t.k0s(),t.nrm(9,"span",135),t.j41(10,"span",136),t.EFF(11),t.k0s(),t.j41(12,"span",137),t.EFF(13),t.k0s()()()(),t.j41(14,"div",138),t.EFF(15),t.k0s(),t.j41(16,"div",139),t.EFF(17),t.k0s(),t.j41(18,"span",140),t.EFF(19),t.k0s(),t.j41(20,"div",141),t.EFF(21),t.k0s(),t.j41(22,"span",142),t.EFF(23),t.k0s()(),t.j41(24,"div",143)(25,"span",144),t.nrm(26,"ion-icon"),t.k0s()()(),t.DNE(27,to,16,0,"div",145),t.k0s()()}if(2&f){const c=t.XpG(),_=c.$implicit,E=c.$index,m=t.XpG(4);t.R7$(8),t.SpI("",_.displayName,"\xa0\xa0\xa0\xa0"),t.R7$(3),t.JRh(_.formattedDate),t.R7$(2),t.Lme("",_.type," x",_.nomCompletCount,""),t.R7$(2),t.JRh(_.displayName),t.R7$(2),t.JRh(_.formattedDate),t.R7$(2),t.JRh(_.lieu),t.R7$(2),t.Lme("",_.type," x",_.nomCompletCount,""),t.R7$(2),t.JRh(_.lieu),t.R7$(3),t.HbH(m.toggleStates[E]?"icon-chevron-up":"icon-chevron-down"),t.R7$(),t.vxM(27,m.toggleStates[E]?27:-1)}}function $i(f,s){if(1&f&&(t.j41(0,"div"),t.DNE(1,Ho,28,13,"div",128),t.k0s()),2&f){const c=s.$implicit;t.R7$(),t.vxM(1,c.isPastActivity?1:-1)}}function no(f,s){if(1&f&&(t.j41(0,"div",158),t.nrm(1,"br")(2,"hr",57)(3,"hr",58),t.j41(4,"div",146)(5,"div",147)(6,"span",148),t.pXf(7,28),t.k0s()()(),t.j41(8,"div",96)(9,"div",146)(10,"div",151)(11,"span",152),t.EFF(12),t.k0s(),t.j41(13,"span",154),t.EFF(14),t.k0s()()()()()),2&f){const c=t.XpG().$implicit;t.R7$(12),t.JRh(c.nomComplet),t.R7$(2),t.JRh(c.nomComplet)}}function io(f,s){if(1&f){const c=t.RV6();t.j41(0,"div")(1,"div")(2,"div",128)(3,"div",129),t.bIt("click",function(){const E=t.eBV(c).$index,m=t.XpG(4);return t.Njj(m.toggleDetailsAdhesion(E))}),t.j41(4,"div",157)(5,"div",131)(6,"div",132)(7,"div",133)(8,"h4")(9,"span",134),t.EFF(10),t.k0s(),t.nrm(11,"span",135),t.j41(12,"span",136),t.EFF(13),t.k0s(),t.j41(14,"span",137),t.EFF(15),t.k0s()()()(),t.j41(16,"div",138),t.EFF(17),t.k0s(),t.j41(18,"div",139),t.EFF(19),t.k0s(),t.j41(20,"div",141),t.EFF(21),t.k0s()(),t.j41(22,"div",143)(23,"span",144),t.nrm(24,"ion-icon"),t.k0s()()(),t.DNE(25,no,15,2,"div",158),t.k0s()()()()}if(2&f){const c=s.$implicit,_=s.$index,E=t.XpG(4);t.R7$(10),t.SpI(" ",c.inscNom,"\xa0\xa0\xa0\xa0"),t.R7$(3),t.JRh(c.formattedDate),t.R7$(2),t.SpI("",c.adhesionType," x1"),t.R7$(2),t.JRh(c.inscNom),t.R7$(2),t.JRh(c.formattedDate),t.R7$(2),t.SpI("",c.adhesionType," x1"),t.R7$(3),t.HbH(E.toggleStatesAdhesion[_]?"icon-chevron-up":"icon-chevron-down"),t.R7$(),t.vxM(25,E.toggleStatesAdhesion[_]?25:-1)}}function zo(f,s){1&f&&(t.j41(0,"div",122),t.nrm(1,"i",159),t.j41(2,"span"),t.pXf(3,29),t.k0s()())}
1function Yo(f,s){1&f&&(t.j41(0,"span"),t.pXf(1,30),t.k0s())}function mi(f,s){1&f&&t.eu8(0)}function Mn(f,s){if(1&f&&(t.j41(0,"div",96)(1,"div",146)(2,"div",151)(3,"span",152),t.EFF(4),t.k0s(),t.j41(5,"span",153),t.EFF(6),t.k0s(),t.j41(7,"span",154),t.EFF(8),t.k0s(),t.j41(9,"span",155),t.EFF(10),t.k0s()()(),t.DNE(11,mi,1,0,"ng-container",156),t.k0s()),2&f){const c=s.$implicit,_=t.XpG(4).$implicit;t.XpG();const E=t.sdS(2);t.R7$(4),t.JRh(c.nomComplet),t.R7$(2),t.JRh(c.enregCode),t.R7$(2),t.JRh(c.nomComplet),t.R7$(2),t.JRh(c.enregCode),t.R7$(),t.Y8G("ngTemplateOutlet",E)("ngTemplateOutletContext",t.l_i(6,Ei,_,c))}}function oo(f,s){if(1&f&&(t.j41(0,"div",145),t.nrm(1,"br")(2,"hr",57)(3,"hr",58),t.j41(4,"div",146)(5,"div",147)(6,"span",148),t.pXf(7,31),t.k0s(),t.j41(8,"span",149),t.pXf(9,32),t.k0s(),t.j41(10,"span",160),t.pXf(11,33),t.k0s()()(),t.Z7z(12,Mn,12,9,"div",96,Ri),t.k0s()),2&f){const c=t.XpG(3).$implicit;t.R7$(12),t.Dyx(c.details)}}function xi(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",128)(1,"div",129),t.bIt("click",function(){t.eBV(c);const E=t.XpG(2).$index,m=t.XpG(4);return t.Njj(m.toggleDetails(E))}),t.j41(2,"div",130)(3,"div",131)(4,"div",132)(5,"div",133)(6,"h4")(7,"span",134),t.EFF(8),t.k0s(),t.nrm(9,"span",135),t.j41(10,"span",136),t.EFF(11),t.k0s(),t.j41(12,"span",137),t.EFF(13),t.k0s()()()(),t.j41(14,"div",138),t.EFF(15),t.k0s(),t.j41(16,"div",139),t.EFF(17),t.k0s(),t.j41(18,"span",140),t.EFF(19),t.k0s(),t.j41(20,"div",141),t.EFF(21),t.k0s(),t.j41(22,"span",142),t.EFF(23),t.k0s()(),t.j41(24,"div",143)(25,"span",144),t.nrm(26,"ion-icon"),t.k0s()()(),t.DNE(27,oo,14,0,"div",145),t.k0s()()}if(2&f){const c=t.XpG(2),_=c.$implicit,E=c.$index,m=t.XpG(4);t.R7$(8),t.SpI("",_.nomActivite,"\xa0\xa0\xa0\xa0"),t.R7$(3),t.JRh(_.formattedDate),t.R7$(2),t.Lme("",_.type," x",_.nomCompletCount,""),t.R7$(2),t.JRh(_.nomActivite),t.R7$(2),t.JRh(_.formattedDate),t.R7$(2),t.JRh(_.lieu),t.R7$(2),t.Lme("",_.type," x",_.nomCompletCount,""),t.R7$(2),t.JRh(_.lieu),t.R7$(3),t.HbH(m.toggleStates[E]?"icon-chevron-up":"icon-chevron-down"),t.R7$(),t.vxM(27,m.toggleStates[E]?27:-1)}}function ro(f,s){if(1&f&&(t.j41(0,"div"),t.DNE(1,xi,28,13,"div",128),t.k0s()),2&f){const c=t.XpG().$implicit,_=t.XpG(4);t.R7$(),t.vxM(1,c.type===_.EnumTypeInscriptionNom.Entree?1:-1)}}function Bo(f,s){if(1&f&&(t.j41(0,"div"),t.DNE(1,ro,2,1,"div"),t.k0s()),2&f){const c=s.$implicit;t.R7$(),t.vxM(1,c.isPastActivity?1:-1)}}function so(f,s){1&f&&(t.j41(0,"div",122),t.nrm(1,"i",159),t.j41(2,"span"),t.pXf(3,34),t.k0s()())}function Wo(f,s){1&f&&(t.j41(0,"span"),t.pXf(1,35),t.k0s())}function Oi(f,s){1&f&&t.eu8(0)}function ao(f,s){if(1&f&&(t.j41(0,"div",96)(1,"div",146)(2,"div",151)(3,"span",152),t.EFF(4),t.k0s(),t.j41(5,"span",153),t.EFF(6),t.k0s(),t.j41(7,"span",154),t.EFF(8),t.k0s(),t.j41(9,"span",155),t.EFF(10),t.k0s()()(),t.DNE(11,Oi,1,0,"ng-container",156),t.k0s()),2&f){const c=s.$implicit,_=t.XpG(4).$implicit;t.XpG();const E=t.sdS(2);t.R7$(4),t.JRh(c.nomComplet),t.R7$(2),t.JRh(c.enregCode),t.R7$(2),t.JRh(c.nomComplet),t.R7$(2),t.JRh(c.enregCode),t.R7$(),t.Y8G("ngTemplateOutlet",E)("ngTemplateOutletContext",t.l_i(6,Ei,_,c))}}function qo(f,s){if(1&f&&(t.j41(0,"div",145),t.nrm(1,"br")(2,"hr",57)(3,"hr",58),t.j41(4,"div",146)(5,"div",147)(6,"span",148),t.pXf(7,36),t.k0s(),t.j41(8,"span",149),t.pXf(9,37),t.k0s(),t.j41(10,"span",160),t.pXf(11,38),t.k0s()()(),t.Z7z(12,ao,12,9,"div",96,Ri),t.k0s()),2&f){const c=t.XpG(3).$implicit;t.R7$(12),t.Dyx(c.details)}}function Qo(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",128)(1,"div",129),t.bIt("click",function(){t.eBV(c);const E=t.XpG(2).$index,m=t.XpG(4);return t.Njj(m.toggleDetails(E))}),t.j41(2,"div",130)(3,"div",131)(4,"div",132)(5,"div",133)(6,"h4")(7,"span",134),t.EFF(8),t.k0s(),t.nrm(9,"span",135),t.j41(10,"span",136),t.EFF(11),t.k0s(),t.j41(12,"span",137),t.EFF(13),t.k0s()()()(),t.j41(14,"div",138),t.EFF(15),t.k0s(),t.j41(16,"div",139),t.EFF(17),t.k0s(),t.j41(18,"span",140),t.EFF(19),t.k0s(),t.j41(20,"div",141),t.EFF(21),t.k0s(),t.j41(22,"span",142),t.EFF(23),t.k0s()(),t.j41(24,"div",143)(25,"span",144),t.nrm(26,"ion-icon"),t.k0s()()(),t.DNE(27,qo,14,0,"div",145),t.k0s()()}if(2&f){const c=t.XpG(2),_=c.$implicit,E=c.$index,m=t.XpG(4);t.R7$(8),t.SpI("",_.displayName,"\xa0\xa0\xa0\xa0"),t.R7$(3),t.JRh(_.formattedDate),t.R7$(2),t.Lme("",_.type," x",_.nomCompletCount,""),t.R7$(2),t.JRh(_.displayName),t.R7$(2),t.JRh(_.formattedDate),t.R7$(2),t.JRh(_.lieu),t.R7$(2),t.Lme("",_.type," x",_.nomCompletCount,""),t.R7$(2),t.JRh(_.lieu),t.R7$(3),t.HbH(m.toggleStates[E]?"icon-chevron-up":"icon-chevron-down"),t.R7$(),t.vxM(27,m.toggleStates[E]?27:-1)}}function Jo(f,s){if(1&f&&(t.j41(0,"div"),t.DNE(1,Qo,28,13,"div",128),t.k0s()),2&f){const c=t.XpG().$implicit,_=t.XpG(4);t.R7$(),t.vxM(1,c.type===_.EnumTypeInscriptionNom.Session?1:-1)}}function Ko(f,s){if(1&f&&(t.j41(0,"div"),t.DNE(1,Jo,2,1,"div"),t.k0s()),2&f){const c=s.$implicit;t.R7$(),t.vxM(1,c.isPastActivity?1:-1)}}function Zo(f,s){1&f&&(t.j41(0,"div",122),t.nrm(1,"i",159),t.j41(2,"span"),t.pXf(3,39),t.k0s()())}function lo(f,s){1&f&&(t.j41(0,"span"),t.pXf(1,40),t.k0s())}function er(f,s){if(1&f&&(t.j41(0,"div",158),t.nrm(1,"br")(2,"hr",57)(3,"hr",58),t.j41(4,"div",146)(5,"div",147)(6,"span",148),t.pXf(7,41),t.k0s()()(),t.j41(8,"div",96)(9,"div",146)(10,"div",151)(11,"span",152),t.EFF(12),t.k0s(),t.j41(13,"span",154),t.EFF(14),t.k0s()()()()()),2&f){const c=t.XpG(2).$implicit;t.R7$(12),t.JRh(c.nomComplet),t.R7$(2),t.JRh(c.nomComplet)}}function _o(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",128)(1,"div",129),t.bIt("click",function(){t.eBV(c);const E=t.XpG().$index,m=t.XpG(4);return t.Njj(m.toggleDetails(E))}),t.j41(2,"div",157)(3,"div",131)(4,"div",132)(5,"div",133)(6,"h4")(7,"span",134),t.EFF(8),t.k0s(),t.nrm(9,"span",135),t.j41(10,"span",136),t.EFF(11),t.k0s(),t.j41(12,"span",137),t.EFF(13),t.k0s()()()(),t.j41(14,"div",138),t.EFF(15),t.k0s(),t.j41(16,"div",139),t.EFF(17),t.k0s(),t.j41(18,"div",141),t.EFF(19),t.k0s()(),t.j41(20,"div",143)(21,"span",144),t.nrm(22,"ion-icon"),t.k0s()()(),t.DNE(23,er,15,2,"div",158),t.k0s()()}if(2&f){const c=t.XpG(),_=c.$implicit,E=c.$index,m=t.XpG(4);t.R7$(8),t.SpI(" ",_.inscNom,"\xa0\xa0\xa0\xa0"),t.R7$(3),t.JRh(_.formattedDate),t.R7$(2),t.SpI("",_.adhesionType," x1"),t.R7$(2),t.JRh(_.inscNom),t.R7$(2),t.JRh(_.formattedDate),t.R7$(2),t.SpI("",_.adhesionType," x1"),t.R7$(3),t.HbH(m.toggleStates[E]?"icon-chevron-up":"icon-chevron-down"),t.R7$(),t.vxM(23,m.toggleStates[E]?23:-1)}}function tr(f,s){if(1&f&&(t.j41(0,"div")(1,"div"),t.DNE(2,_o,24,9,"div",128),t.k0s()()),2&f){const c=s.$implicit,_=t.XpG(4);t.R7$(2),t.vxM(2,c.adhesionType===_.EnumTypeInscriptionNom.Adhesion?2:-1)}}function co(f,s){1&f&&(t.j41(0,"div",122),t.nrm(1,"i",161),t.j41(2,"span"),t.pXf(3,42),t.k0s()())}function nr(f,s){1&f&&(t.j41(0,"span"),t.pXf(1,43),t.k0s())}function ir(f,s){1&f&&t.eu8(0)}function uo(f,s){if(1&f&&(t.j41(0,"div",96)(1,"div",146)(2,"div",151)(3,"span",152),t.EFF(4),t.k0s(),t.j41(5,"span",153),t.EFF(6),t.k0s(),t.j41(7,"span",154),t.EFF(8),t.k0s(),t.j41(9,"span",155),t.EFF(10),t.k0s()()(),t.DNE(11,ir,1,0,"ng-container",156),t.k0s()),2&f){const c=s.$implicit,_=t.XpG(4).$implicit;t.XpG();const E=t.sdS(2);t.R7$(4),t.JRh(c.nomComplet),t.R7$(2),t.JRh(c.resNo),t.R7$(2),t.JRh(c.nomComplet),t.R7$(2),t.JRh(c.resNo),t.R7$(),t.Y8G("ngTemplateOutlet",E)("ngTemplateOutletContext",t.l_i(6,Ei,_,c))}}function or(f,s){if(1&f&&(t.j41(0,"div",151)(1,"span",152),t.EFF(2),t.k0s(),t.j41(3,"span",154),t.EFF(4),t.k0s()()),2&f){const c=s.$implicit;t.R7$(2),t.JRh(c.nom),t.R7$(2),t.JRh(c.nom)}}function rr(f,s){if(1&f&&(t.j41(0,"div",146),t.Z7z(1,or,5,2,"div",151,t.Vm6),t.k0s()),2&f){const c=t.XpG().$implicit;t.R7$(),t.Dyx(c.autreParticipant)}}function Eo(f,s){if(1&f&&(t.j41(0,"div",96),t.DNE(1,rr,3,0,"div",146),t.k0s()),2&f){const c=s.$implicit;t.R7$(),t.vxM(1,c.autreParticipant&&c.autreParticipant.length?1:-1)}}function sr(f,s){if(1&f&&(t.j41(0,"div",145),t.nrm(1,"br")(2,"hr",57)(3,"hr",58),t.j41(4,"div",146)(5,"div",147)(6,"span",148),t.pXf(7,44),t.k0s(),t.j41(8,"span",149),t.pXf(9,45),t.k0s(),t.j41(10,"span",160),t.pXf(11,46),t.k0s()()(),t.Z7z(12,uo,12,9,"div",96,vi),t.Z7z(14,Eo,2,1,"div",96,t.Vm6),t.k0s()),2&f){const c=t.XpG(3).$implicit;t.R7$(12),t.Dyx(c.details),t.R7$(2),t.Dyx(c.details)}}function fo(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",128)(1,"div",129),t.bIt("click",function(){t.eBV(c);const E=t.XpG(2).$index,m=t.XpG(4);return t.Njj(m.toggleDetails(E))}),t.j41(2,"div",130)(3,"div",131)(4,"div",132)(5,"div",133)(6,"h4")(7,"span",134),t.EFF(8),t.k0s(),t.nrm(9,"span",135),t.j41(10,"span",136),t.EFF(11),t.k0s(),t.j41(12,"span",137),t.EFF(13),t.k0s()()()(),t.j41(14,"div",138),t.EFF(15),t.k0s(),t.j41(16,"div",139),t.EFF(17),t.k0s(),t.j41(18,"span",140),t.EFF(19),t.k0s(),t.j41(20,"div",141),t.EFF(21),t.k0s(),t.j41(22,"span",142),t.EFF(23),t.k0s()(),t.j41(24,"div",143)(25,"span",144),t.nrm(26,"ion-icon"),t.k0s()()(),t.DNE(27,sr,16,0,"div",145),t.k0s()()}if(2&f){const c=t.XpG(2),_=c.$implicit,E=c.$index,m=t.XpG(4);t.R7$(8),t.SpI(" ",_.nomActivite,"\xa0\xa0\xa0\xa0"),t.R7$(3),t.JRh(_.formattedDate),t.R7$(2),t.Lme("",_.type," x",_.nomCompletCount,""),t.R7$(2),t.JRh(_.nomActivite),t.R7$(2),t.JRh(_.formattedDate),t.R7$(2),t.JRh(_.lieu),t.R7$(2),t.Lme("",_.type," x",_.nomCompletCount,""),t.R7$(2),t.JRh(_.lieu),t.R7$(3),t.HbH(m.toggleStates[E]?"icon-chevron-up":"icon-chevron-down"),t.R7$(),t.vxM(27,m.toggleStates[E]?27:-1)}}function ar(f,s){if(1&f&&(t.j41(0,"div"),t.DNE(1,fo,28,13,"div",128),t.k0s()),2&f){const c=t.XpG().$implicit,_=t.XpG(4);t.R7$(),t.vxM(1,c.type===_.EnumTypeInscriptionNom.Reservation?1:-1)}}function lr(f,s){if(1&f&&(t.j41(0,"div"),t.DNE(1,ar,2,1,"div"),t.k0s()),2&f){const c=s.$implicit;t.R7$(),t.vxM(1,c.isPastActivity?1:-1)}}function Co(f,s){1&f&&(t.j41(0,"div",122),t.nrm(1,"i",159),t.j41(2,"span"),t.pXf(3,47),t.k0s()())}function _r(f,s){if(1&f){const c=t.RV6();t.j41(0,"div",50),t.DNE(1,$o,1,5,"ng-template",null,1,t.C5r),t.j41(3,"div",51)(4,"h4",113)(5,"ion-buttons",114)(6,"ion-button",115),t.bIt("click",function(){t.eBV(c);const E=t.XpG(3);return t.Njj(E.goToPreviousPage())}),t.nrm(7,"ion-icon",116),t.k0s()(),t.j41(8,"ion-buttons",117)(9,"ion-button",115),t.bIt("click",function(){t.eBV(c);const E=t.XpG(3);return t.Njj(E.goToPreviousPage())}),t.nrm(10,"ion-icon",116),t.k0s()(),t.j41(11,"span"),t.pXf(12,22),t.k0s()()(),t.j41(13,"mat-tab-group",118,2)(15,"div",119)(16,"mat-tab",120),t.DNE(17,xo,2,0,"ng-template",121),t.Z7z(18,$i,2,1,"div",null,t.Vm6),t.Z7z(20,io,26,9,"div",null,t.Vm6),t.DNE(22,zo,4,0,"div",122),t.k0s(),t.j41(23,"mat-tab",123),t.DNE(24,Yo,2,0,"ng-template",121),t.Z7z(25,Bo,2,1,"div",null,t.Vm6),t.DNE(27,so,4,0,"div",122),t.k0s(),t.j41(28,"mat-tab",124),t.DNE(29,Wo,2,0,"ng-template",121),t.Z7z(30,Ko,2,1,"div",null,t.Vm6),t.DNE(32,Zo,4,0,"div",122),t.k0s(),t.j41(33,"mat-tab",125),t.DNE(34,lo,2,0,"ng-template",121),t.Z7z(35,tr,3,1,"div",null,t.Vm6),t.DNE(37,co,4,0,"div",122),t.k0s(),t.j41(38,"mat-tab",126),t.DNE(39,nr,2,0,"ng-template",121),t.Z7z(40,lr,2,1,"div",null,t.Vm6),t.DNE(42,Co,4,0,"div",122),t.k0s()()()()}if(2&f){const c=t.XpG(3);t.R7$(5),t.Y8G("matRippleCentered",!0)("matRippleRadius",50),t.R7$(13),t.Dyx(c.sortedHistorique),t.R7$(2),t.Dyx(c.pastAdhesionsList),t.R7$(2),t.vxM(22,c.hasHistoriqueToutes()?-1:22),t.R7$(3),t.Dyx(c.sortedHistorique),t.R7$(2),t.vxM(27,c.hasHistoriqueEntrees()?-1:27),t.R7$(3),t.Dyx(c.sortedHistorique),t.R7$(2),t.vxM(32,c.hasHistoriqueSessions()?-1:32),t.R7$(3),t.Dyx(c.pastAdhesionsList),t.R7$(2),t.vxM(37,c.hasHistoriqueAdhesions()?-1:37),t.R7$(3),t.Dyx(c.sortedHistorique),t.R7$(2),t.vxM(42,c.hasHistoriqueReservations()?-1:42)}}function Gi(f,s){if(1&f&&t.DNE(0,Ji,54,15,"div",49)(1,_r,43,7,"div",50),2&f){const c=t.XpG(2);t.vxM(0,c.hideHistorique?0:-1),t.R7$(),t.vxM(1,c.hideHistorique?-1:1)}}function po(f,s){if(1&f&&(t.j41(0,"div"),t.DNE(1,No,1,5,"vplus-intro-card",48)(2,Gi,2,2),t.k0s()),2&f){const c=t.XpG();t.R7$(),t.vxM(1,c.hasActivites?-1:1),t.R7$(),t.vxM(2,c.hasActivites?2:-1)}}let cr=(()=>{var f;class s{constructor(){this.sortedHistoriqueSignal=(0,t.vPA)([]),this.pastAdhesionsListSignal=(0,t.vPA)([]),this.cdr=(0,t.WQX)(t.gRc),this.store=(0,t.WQX)(Xi.il),this.activiteService=(0,t.WQX)(kt.Z),this.dialog=(0,t.WQX)(Vt.bZ),this.appConfig=(0,t.WQX)(Zt.o),this.appMetaTags=(0,t.WQX)(jt.W),this.localisationService=(0,t.WQX)(Dn.A),this.actions$=(0,t.WQX)(mt.En),this.destroyRef=(0,t.WQX)(t.abz),this.router=(0,t.WQX)(un.Ix),this.hasHistoriqueToutes=(0,t.EWP)(()=>this.sortedHistoriqueSignal().some(_=>_.isPastActivity)||this.pastAdhesionsListSignal().length>0),this.hasHistoriqueEntrees=(0,t.EWP)(()=>this.sortedHistoriqueSignal().some(_=>_.isPastActivity&&_.type===nn.sr.Entree)),this.hasHistoriqueSessions=(0,t.EWP)(()=>this.sortedHistoriqueSignal().some(_=>_.isPastActivity&&_.type===nn.sr.Session)),this.hasHistoriqueAdhesions=(0,t.EWP)(()=>this.pastAdhesionsListSignal().some(_=>_.adhesionType===nn.sr.Adhesion)),this.hasHistoriqueReservations=(0,t.EWP)(()=>this.sortedHistoriqueSignal().some(_=>_.isPastActivity&&_.type===nn.sr.Reservation)),this.futureActivityCount=0,this.pastActivityCount=0,this.waitingList=[],this.hasActivites=!1,this.dataLoaded=!1,this.currentLocalisation=this.localisationService.getCurrentLocalisation(),this.isLocalisationFr=this.localisationService.getCurrentLocalisation()===Gn.fi.FR,this.EnumTypeInscriptionNom=nn.sr,this.groupedEntrees=[],this.groupedSessions=[],this.groupedReservations=[],this.sortedActivities=[],this.sortedHistorique=[],this.selectedView="month",this.selectedDetail="Tout le monde",this.allEvents=[],this.allGroup=[],this.uniqueDetails=[],this.uniqueComingDetails=[],this.dateFormat=this.isLocalisationFr?"DD/MM/YYYY":"MM/DD/YYYY",this.fullDateFormat=this.isLocalisationFr?"dddd DD MMMM YYYY":"dddd, MMMM D, YYYY",this.fullDateFormatWithTime=`${this.fullDateFormat} HH:mm`,this.timeFormat=this.isLocalisationFr?"HH:mm":"h:mm A",this.dbDateFormat="YYYY-MM-DD",this.fullTimeFormat="HH:mm:00",this.timezone=Y().tz.guess(),this.hideHistorique=!0,this.toggleStates=[],this.toggleStatesAdhesion=[],this.introCardContent={title:"Participez \xE0 une premi\xE8re activit\xE9 !",imgSrc:"assets/svg/reservation-complete.svg",description:"Consulter les activit\xE9s disponibles en ligne",buttonLabel:"Consulter les activit\xE9s"},this.labels={today:"Aujourd'hui"},this.timeOptions=[{value:"month",label:"Mois"},{value:"week",label:"Semaine"},{value:"day",label:"Jour"}],this.mergeEvent=_=>{var E;const m=null===(E=this.allEvents)||void 0===E?void 0:E.find(h=>h.title===_.title&&h.start===_.start&&h.end===_.end);
1m?m.nomComplet=Array.isArray(m.nomComplet)?[...m.nomComplet,_.nomComplet]:[m.nomComplet,_.nomComplet]:this.allEvents.push({..._,nomComplet:[_.nomComplet]})},this.transformEventsGroup=_=>Array.from(_.values()).flatMap(E=>{if(E.temps){const m=E.temps.match(/\d{1,2}:\d{2}/g);if(m&&2===m.length){const[h,V]=m;return E.details.map(W=>{const Q=Y()(E.date,this.fullDateFormat).format(this.dbDateFormat),le=`${Q}T${Y()(h,this.timeFormat).format(this.fullTimeFormat)}`,Pe=`${Q}T${Y()(V,this.timeFormat).format(this.fullTimeFormat)}`;return{title:E.nomActivite,start:le,end:Pe,nomComplet:W.nomComplet}})}}return E.tempsDebut&&E.tempsFin?E.details.map(m=>{const[h]=E.tempsDebut.match(/\d{1,2}:\d{2}/g),W=`${Y()(E.dateDebut,this.fullDateFormat).format(this.dbDateFormat)}T${Y()(h,this.timeFormat).format(this.fullTimeFormat)}`,[Q]=E.tempsFin.match(/\d{1,2}:\d{2}/g),Pe=`${Y()(E.dateFin,this.fullDateFormat).format(this.dbDateFormat)}T${Y()(Q,this.timeFormat).format(this.fullTimeFormat)}`;return{title:E.nomActivite,start:W,end:Pe,nomComplet:m.nomComplet}}):[]}),this.extractTime=_=>{if(null==_||!_.trim())return null;const E=_.match(/(?:De|\xc0|From\s*)\s*(\d{1,2}:\d{2})/);return E?Y()(E[1],this.timeFormat).format(this.timeFormat):null},Y().locale(this.localisationService.getCurrentLocalisation()),this.calendarOptions={events:this.allEvents,initialView:"dayGridMonth",plugins:[De,F,q],headerToolbar:{left:"title",center:"",right:"prev,today,next"},allDaySlot:!1,weekends:!0,locale:this.isLocalisationFr?Gn.fi.FR:Gn.fi.EN,buttonText:{today:this.labels.today},firstDay:1,dayHeaderFormat:{weekday:"long"},views:{timeGridWeek:{dayHeaderFormat:{day:"numeric",weekday:"short",omitCommas:!0}}},eventMouseEnter:_=>{const E=_.event.title,m=document.createElement("div");m.className="mat-tooltip",m.innerText=E,m.style.position="absolute",m.style.background="#000",m.style.color="#fff",m.style.padding="5px 10px",m.style.fontSize="10px",m.style.pointerEvents="none",m.style.left=`${_.jsEvent.pageX+10}px`,m.style.top=`${_.jsEvent.pageY+10}px`,document.body.appendChild(m),_.el.addEventListener("mouseleave",()=>{document.body.contains(m)&&document.body.removeChild(m)})},eventContent:_=>{let E="";const m=_.event.start&&_.event.end&&!Y()(_.event.start).isSame(_.event.end,"day"),h="timeGridWeek"===_.view.type;if(m){const V=_.event.start,W=_.event.end,le=_.isEnd;_.isStart&&V?E=V.toLocaleTimeString(this.isLocalisationFr?"fr-FR":"en-US",this.isLocalisationFr?{hour:"2-digit",minute:"2-digit",hour12:!1}:{hour:"numeric",minute:"2-digit",hour12:!0}):le&&h&&W&&(E=W.toLocaleTimeString(this.isLocalisationFr?"fr-FR":"en-US",this.isLocalisationFr?{hour:"2-digit",minute:"2-digit",hour12:!1}:{hour:"numeric",minute:"2-digit",hour12:!0}))}else E=_.timeText||"";return{html:`\n <div class="align-center" style="overflow: hidden; width: 100%; display: flex; gap: 3px; align-items: center; font-size: 14px;">\n ${E?`<span class="fc-event-time black-text font-weight-600" style="flex-shrink: 0;">${E}</span>`:""}\n <span class="fc-event-title black-text font-weight-600" style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;">${_.event.title}</span>\n </div>\n `}},eventTimeFormat:this.isLocalisationFr?{hour:"2-digit",minute:"2-digit",hour12:!1}:{hour:"numeric",minute:"2-digit",hour12:!0},slotLabelFormat:this.isLocalisationFr?{hour:"2-digit",minute:"2-digit",hour12:!1}:{hour:"numeric",minute:"2-digit",hour12:!0},slotDuration:"00:30:00",slotLabelInterval:"00:30",datesSet:()=>{setTimeout(()=>{const m=document.querySelector(".fc-prev-button"),h=document.querySelector(".fc-next-button");m&&m.setAttribute("title",this.isLocalisationFr?"Mois pr\xe9c\xe9dent":"Previous month"),h&&h.setAttribute("title",this.isLocalisationFr?"Mois suivant":"Next month")});const _=(new Date).toISOString().split("T")[0];document.querySelectorAll(".fc-col-header-cell-cushion").forEach(m=>{m.closest(".fc-col-header-cell").getAttribute("data-date")===_&&(m.style.color="var(--primary-color)")})},eventDidMount:_=>{const E=Y()(_.event.end);Y()().isAfter(E,"day")&&(_.el.classList.add("past-event"),_.el.style.pointerEvents="none")},eventClick:_=>{this.handleEventClick(_.event)}}}ngOnInit(){this.currentDate=Y()(),this.appMetaTags.updateMetaTags("Activit\xE9s"),this.store.select(R.selectCurrentUser).pipe((0,qt.n)(_=>this.activiteService.getParticipantActivites(_.perId)),(0,Dt.pQ)(this.destroyRef)).subscribe(_=>{var E,m,h,V,W,Q,le;_.reservations.forEach(k=>{var fe,Me;k.eveCatNom=null!==(fe=null===(Me=k.activiteLocalisations.find(ut=>ut.lclzTag===this.currentLocalisation))||void 0===Me?void 0:Me.nom)&&void 0!==fe?fe:k.activiteLocalisations.find(ut=>ut.lclzTag===this.appConfig.appConfig.localisationDefaut).nom}),this.store.dispatch(d.sc({payload:_.reservations})),this.adhesionsList=_.adhesions,this.adhesionsList.forEach(k=>{const fe=Y().tz(k.perioDateFin,this.timezone);k.plageHoraire=Y()(k.perioDateDebut).format(this.dateFormat)+" - "+Y()(k.perioDateFin).format(this.dateFormat),k.dateDebut=(0,Rt.Zrt)(Y()(k.perioDateDebut).format(this.dateFormat)),k.dateFin=(0,Rt.Zrt)(Y()(k.perioDateFin).format(this.dateFormat)),k.adhesionType=nn.sr.Adhesion,k.date=(0,Rt.Zrt)(Y()(k.perioDateDebut).format(this.fullDateFormat)),k.dateReference=(0,Rt.Zrt)(fe.format(this.fullDateFormatWithTime)),k.temps="De"+" "+(0,Rt.Zrt)(Y()(k.perioDateFin).format(this.timeFormat)),k.isAdhesionDate=!0}),this.activeAdhesionsList=this.formatActivite(this.adhesionsList.filter(k=>this.isActiveAdhesion(k))),this.pastAdhesionsList=this.formatActivite(this.adhesionsList.filter(k=>this.isPastActivityAdhesion(k))),this.pastAdhesionsListSignal.set(null!==(E=this.pastAdhesionsList)&&void 0!==E?E:[]);const Pe=new Map;this.entreesList=_.entrees,this.entreesList.forEach(k=>{const fe=Y()(k.dateHeureDebut),Me=Y()(k.dateHeureFin),ut=Y().tz(k.dateHeureFin,this.timezone);k.date=(0,Rt.Zrt)(fe.format(this.fullDateFormat)),k.dateReference=(0,Rt.Zrt)(ut.format(this.fullDateFormatWithTime)),fe.isSame(Me,"day")?(k.temps="De"+" "+fe.format(this.timeFormat)+" "+"\xE0"+" "+Me.format(this.timeFormat),k.isMultipleDay=!1):(k.temps="De"+" "+fe.format(this.timeFormat),k.dateDebut=(0,Rt.Zrt)(fe.format(this.fullDateFormat)),k.dateFin=(0,Rt.Zrt)(Me.format(this.fullDateFormat)),k.tempsDebut="De"+" "+fe.format(this.timeFormat),k.tempsFin="\xC0"+" "+Me.format(this.timeFormat),k.isMultipleDay=!0)}),this.entreesList.forEach(k=>{const fe=`${k.inscNom}-${k.nomActivite}-${k.siteLocalisations}-${k.dateHeureDebut}-${k.dateHeureFin}-${nn.sr.Entree} `;Pe.has(fe)||Pe.set(fe,{inscNom:k.inscNom,nomActivite:k.nomActivite,date:k.date,dateReference:k.dateReference,type:nn.sr.Entree,temps:k.temps,dateDebut:k.dateDebut,dateFin:k.dateFin,tempsDebut:k.tempsDebut,tempsFin:k.tempsFin,isMultipleDay:k.isMultipleDay,lieu:k.siteLocalisations,adresse:k.adresse?k.adresse:null,details:[],dateOccurrences:[],infoAdds:k.infosAdditionnelles,hasQuestSupp:k.hasQuestSupp,perId:k.perId,enregId:k.enregId,eveActId:k.eveActId}),Pe.get(fe).details.push({nomComplet:k.nomComplet,enregCode:k.enregCode,qrCode:k.enregQrCode,nomAdmission:k.trfOptNom,perId:k.perId,enregId:k.enregId})}),this.groupedEntrees=Array.from(Pe.values()),this.groupedEntrees.length>
10&&this.groupedEntrees.forEach(k=>{this.allGroup.some(Me=>Me.inscNom===k.inscNom&&Me.nomActivite===k.nomActivite&&Me.date===k.date&&Me.temps===k.temps&&Me.lieu===k.lieu)||this.allGroup.push(k)});const Xe=this.transformEventsGroup(Pe);Xe.forEach(k=>{this.isFutureOrToday(k.start)&&(Xe.filter(fe=>!this.allEvents.some(Me=>Me.title===fe.title&&Me.start===fe.start&&Me.end===fe.end&&Me.nomComplet===fe.nomComplet)).forEach(this.mergeEvent),this.uniqueComingDetails=Array.from(new Set([...this.uniqueComingDetails,...this.allEvents.filter(fe=>this.isFutureOrToday(fe.start)).flatMap(fe=>fe.nomComplet).filter(fe=>null==fe?void 0:fe.trim())])))}),Xe.filter(k=>!this.allEvents.some(fe=>fe.title===k.title&&fe.start===k.start&&fe.end===k.end&&fe.nomComplet===k.nomComplet)).forEach(this.mergeEvent),this.uniqueDetails=Array.from(new Set([...this.uniqueDetails,...this.allEvents.flatMap(k=>k.nomComplet).filter(k=>null==k?void 0:k.trim())])),this.calendarOptions.events=[...this.allEvents],this.waitingList=_.waitingList;const Oe=new Map;this.sessionList=_.sessions,this.sessionList.forEach(k=>{k.evenements&&k.evenements.length>0&&k.evenements.forEach(fe=>{const Me=Y()(fe.dateHeureDebut),ut=Y()(fe.dateHeureFin),oe=Y().tz(fe.dateHeureFin,this.timezone);k.date=(0,Rt.Zrt)(Me.format(this.fullDateFormat)),k.dateReference=(0,Rt.Zrt)(oe.format(this.fullDateFormatWithTime)),Me.isSame(ut,"day")?(k.temps="De"+" "+Me.format(this.timeFormat)+" "+"\xE0"+" "+ut.format(this.timeFormat),k.isMultipleDay=!1):(k.temps="De"+" "+Me.format(this.timeFormat),k.dateDebut=(0,Rt.Zrt)(Me.format(this.fullDateFormat)),k.dateFin=(0,Rt.Zrt)(ut.format(this.fullDateFormat)),k.tempsDebut="De"+" "+Me.format(this.timeFormat),k.tempsFin="\xC0"+" "+ut.format(this.timeFormat),k.isMultipleDay=!0),k.site=fe.site,k.dateOccurrences=k.evenements.map(Qt=>{const sn=Y()(Qt.dateHeureDebut),Sn=Y()(Qt.dateHeureFin);return{date:(0,Rt.Zrt)(sn.format(this.fullDateFormat)),temps:"de"+" "+sn.format(this.timeFormat)+" "+"\xE0"+" "+Sn.format(this.timeFormat),site:Qt.site,occDateDebut:sn,sesId:Qt.sesId}}).sort((Qt,sn)=>Qt.occDateDebut.valueOf()-sn.occDateDebut.valueOf())})}),this.sessionList.forEach(k=>{let fe;k.evenements&&k.evenements.length>0?k.evenements.forEach(Me=>{if(fe=`${k.inscNom}-${k.nomActivite}-${k.sesNom||""}-${Me.dateHeureDebut}-${Me.dateHeureFin}-${nn.sr.Session}`,!Oe.has(fe)){const ut=Y()(Me.dateHeureDebut),oe=Y()(Me.dateHeureFin),Qt=Y().tz(Me.dateHeureFin,this.timezone);this.sessionList.forEach(sn=>{sn.evenements&&sn.evenements.length>0&&(sn.date=(0,Rt.Zrt)(ut.format(this.fullDateFormat)),sn.dateDebut=(0,Rt.Zrt)(ut.format(this.fullDateFormat)),sn.dateFin=(0,Rt.Zrt)(oe.format(this.fullDateFormat)),sn.dateReference=(0,Rt.Zrt)(Qt.format(this.fullDateFormatWithTime)),ut.isSame(oe,"day")?(sn.temps="De"+" "+ut.format(this.timeFormat)+" "+"\xE0"+" "+oe.format(this.timeFormat),sn.isMultipleDay=!1):(sn.temps="De"+" "+ut.format(this.timeFormat),sn.isMultipleDay=!0),sn.site=Me.site,sn.adresse=Me.adresse)}),Oe.set(fe,{inscNom:k.inscNom,nomActivite:k.nomActivite,sesNom:k.sesNom,date:k.date,dateReference:k.dateReference,type:nn.sr.Session,temps:k.temps,dateDebut:(0,Rt.Zrt)(ut.format(this.fullDateFormat)),dateFin:(0,Rt.Zrt)(oe.format(this.fullDateFormat)),tempsDebut:ut.format(this.timeFormat),tempsFin:oe.format(this.timeFormat),isMultipleDay:k.isMultipleDay,lieu:k.site,adresse:k.adresse?k.adresse:null,details:[],dateOccurrences:k.dateOccurrences||[],infoAdds:k.infosAdditionnelles,hasMultiSession:k.hasMultiSession,hasQuestSupp:k.hasQuestSupp,perId:k.perId,sesConfigId:k.sesConfigId,sesId:k.sesId})}Oe.get(fe).details.push({nomComplet:k.nomComplet,enregCode:k.enregCode,sesId:k.sesId,perId:k.perId})}):(fe=`${k.inscNom}-${k.nomActivite}-${k.sesNom||""}`,Oe.has(fe)||(this.sessionList.forEach(Me=>{if(Me.evenements&&Me.evenements.length>0){const ut=Y()(Me.evenements[0].dateHeureDebut),oe=Y()(Me.evenements[0].dateHeureFin),Qt=Y().tz(Me.evenements[0].dateHeureFin,this.timezone);Me.date=(0,Rt.Zrt)(ut.format(this.fullDateFormat)),Me.dateDebut=(0,Rt.Zrt)(ut.format(this.fullDateFormat)),Me.dateFin=(0,Rt.Zrt)(oe.format(this.fullDateFormat)),Me.dateReference=(0,Rt.Zrt)(Qt.format(this.fullDateFormatWithTime)),ut.isSame(oe,"day")?(Me.temps="De"+" "+ut.format(this.timeFormat)+" "+"\xE0"+" "+oe.format(this.timeFormat),Me.isMultipleDay=!1):(Me.temps="De"+" "+ut.format(this.timeFormat),Me.isMultipleDay=!0),Me.site=Me.evenements[0].site,Me.adresse=Me.evenements[0].adresse}}),Oe.set(fe,{inscNom:k.inscNom,nomActivite:k.nomActivite,sesNom:k.sesNom,date:k.date,dateReference:k.dateReference,type:nn.sr.Session,temps:k.temps,dateDebut:k.dateDebut,dateFin:k.dateFin,tempsDebut:k.tempsDebut,tempsFin:k.tempsFin,isMultipleDay:k.isMultipleDay,lieu:k.site,adresse:k.adresse?k.adresse:null,details:[],dateOccurrences:k.dateOccurrences||[],infoAdds:k.infosAdditionnelles,hasQuestSupp:k.hasQuestSupp,perId:k.perId,sesConfigId:k.sesConfigId})),Oe.get(fe).details.push({nomComplet:k.nomComplet,enregCode:k.enregCode,perId:k.perId}))}),this.groupedSessions=Array.from(Oe.values()),this.groupedSessions.length>0&&this.groupedSessions.forEach(k=>{this.allGroup.some(Me=>Me.inscNom===k.inscNom&&Me.nomActivite===k.nomActivite&&Me.sesNom===k.sesNom&&Me.date===k.date&&Me.temps===k.temps&&Me.lieu===k.lieu)||this.allGroup.push(k)});const st=this.transformEventsGroup(Oe).filter(k=>!this.allEvents.some(fe=>fe.title===k.title&&fe.start===k.start&&fe.end===k.end&&fe.nomComplet===k.nomComplet));st.forEach(k=>{this.isFutureOrToday(k.start)&&(st.filter(fe=>!this.allEvents.some(Me=>
1Me.title===fe.title&&Me.start===fe.start&&Me.end===fe.end&&Me.nomComplet===fe.nomComplet)).forEach(this.mergeEvent),this.uniqueComingDetails=Array.from(new Set([...this.uniqueComingDetails,...this.allEvents.filter(fe=>this.isFutureOrToday(fe.start)).flatMap(fe=>fe.nomComplet).filter(fe=>null==fe?void 0:fe.trim())])))}),st.forEach(this.mergeEvent),this.uniqueDetails=Array.from(new Set([...this.uniqueDetails,...this.allEvents.flatMap(k=>k.nomComplet).filter(k=>null==k?void 0:k.trim())])),this.calendarOptions.events=[...this.allEvents],this.hasActivites=((null===(m=_.reservations)||void 0===m?void 0:m.length)>0||(null===(h=_.adhesions)||void 0===h?void 0:h.length)>0||(null===(V=_.entrees)||void 0===V?void 0:V.length)>0||(null===(W=_.sessions)||void 0===W?void 0:W.length)>0||(null===(Q=_.waitingList)||void 0===Q?void 0:Q.length)>0)&&!this.appConfig.appConfig.paramList[Gn.fW.RestrictPCActivite],this.dataLoaded=!0,this.sortedActivities=this.sortActivities(this.allGroup,!0),this.sortedHistorique=this.sortActivities(this.allGroup,!1),this.sortedHistoriqueSignal.set(null!==(le=this.sortedHistorique)&&void 0!==le?le:[]),this.hasFutureActivities=this.sortedActivities.some(k=>this.isFutureActivity(k.dateReference)),this.toggleStates=new Array(this.sortedActivities.length).fill(!1)}),this.store.select(A.Gp).pipe((0,Dt.pQ)(this.destroyRef)).subscribe(_=>{this.reservationsHashList={},_.forEach(Q=>{Q.isFuturEvenement=this.currentDate.isBefore(Q.dateHeureDebut);const le=Y()(Q.dateHeureDebut),Pe=le.startOf("day").diff(Y()().startOf("day"),"days"),Xe=le.locale(this.currentLocalisation),Oe=0===Pe?"Aujourd'hui":1===Pe?"Demain":this.isLocalisationFr?(0,Rt.Zrt)(Xe.format("dddd D MMMM yyyy")):Xe.format("dddd, MMMM D, yyyy");Oe in this.reservationsHashList||(this.reservationsHashList[Oe]=[]);const st=Object.assign({},Q),k=Y()(Q.dateHeureDebut),fe=Y()(Q.dateHeureFin);st.plageHoraire=Y()(k).format("LT")+" "+"\xE0"+" "+Y()(fe).format("LT"),this.reservationsHashList[Oe]=[...this.reservationsHashList[Oe],st]});const E=new Map;this.reservationsList=_,this.reservationsList.forEach(Q=>{const le=Y()(Q.dateHeureDebut),Pe=Y()(Q.dateHeureFin);Q.date=(0,Rt.Zrt)(le.format(this.fullDateFormat)),Q.dateReference=(0,Rt.Zrt)(Pe.format(this.fullDateFormatWithTime)),Q.temps=le.isSame(Pe,"day")?"De"+" "+le.format(this.timeFormat)+" "+"\xE0"+" "+Pe.format(this.timeFormat):"De"+" "+le.format(this.timeFormat)}),this.reservationsList.forEach(Q=>{var le,Pe,Xe;Q.eveCatNom=null!==(le=null===(Pe=Q.activiteLocalisations.find(fe=>fe.lclzTag===this.currentLocalisation))||void 0===Pe?void 0:Pe.nom)&&void 0!==le?le:Q.activiteLocalisations.find(fe=>fe.lclzTag===this.appConfig.appConfig.localisationDefaut).nom;const Oe=Y()(Q.dateHeureDebut),st=Y()(Q.dateHeureFin),k=`${Q.installationNom}-${Q.eveCatNom}-${Q.siteLocalisations}-${Oe.format("YYYY-MM-DD-HH")}-${st.format("YYYY-MM-DD-HH")}`;E.has(k)||(this.reservationsList.forEach(fe=>{const Me=Y()(fe.dateHeureDebut),ut=Y()(fe.dateHeureFin);fe.date=(0,Rt.Zrt)(Me.format(this.fullDateFormat)),fe.dateReference=(0,Rt.Zrt)(ut.format(this.fullDateFormatWithTime)),Me.isSame(ut,"day")?(fe.temps="De"+" "+Me.format(this.timeFormat)+" "+"\xE0"+" "+ut.format(this.timeFormat),fe.isMultipleDay=!1):(fe.temps="De"+" "+Me.format(this.timeFormat),fe.dateDebut=(0,Rt.Zrt)(Me.format(this.fullDateFormat)),fe.dateFin=(0,Rt.Zrt)(ut.format(this.fullDateFormat)),fe.tempsDebut="De"+" "+Me.format(this.timeFormat),fe.tempsFin="\xC0"+" "+ut.format(this.timeFormat),fe.isMultipleDay=!0)}),E.set(k,{inscNom:Q.installationNom,nomActivite:Q.eveCatNom,id:Q.id,date:Q.date,dateReference:Q.dateReference,type:nn.sr.Reservation,temps:Q.temps,dateDebut:Q.dateDebut,dateFin:Q.dateFin,tempsDebut:Q.tempsDebut,tempsFin:Q.tempsFin,isMultipleDay:Q.isMultipleDay,lieu:Q.siteLocalisations,adresse:Q.adresse,details:[],dateOccurrences:[],infoAdds:Q.infosAdditionnelles,hasQuestSupp:Q.hasQuestSupp,perId:Q.perId,eveActId:Q.eveActId})),E.get(k).details.push({nomComplet:Q.nomComplet,resNo:Q.no,autreParticipant:JSON.parse(null!==(Xe=Q.friends)&&void 0!==Xe?Xe:"[]"),perId:Q.perId})}),this.groupedReservations=Array.from(E.values()),this.groupedReservations.length>0&&this.groupedReservations.forEach(Q=>{this.allGroup.some(Pe=>Pe.inscNom===Q.inscNom&&Pe.nomActivite===Q.nomActivite&&Pe.date===Q.date&&Pe.temps===Q.temps)||this.allGroup.push(Q)});const h=Array.from(E.values()).flatMap(Q=>Q.details.map(le=>{const[Pe]=Q.temps.match(/\d{1,2}:\d{2}/g),Oe=`${Y()(Q.date,this.fullDateFormat).format(this.dbDateFormat)}T${Y()(Pe,this.timeFormat).format(this.fullTimeFormat)}`;return{title:`${Q.nomActivite}`,start:Oe,nomComplet:le.nomComplet,autreParticipant:le.autreParticipant}})).filter(Q=>!this.allEvents.some(le=>le.title===Q.title&&le.start===Q.start&&le.nomComplet===Q.nomComplet));h.forEach(Q=>
1{h&&this.allEvents.push(Q)});const V=this.allEvents.map(Q=>Q.nomComplet);this.uniqueDetails=Array.from(new Set([...this.uniqueDetails,...V]));const W=this.allEvents.flatMap(Q=>Q.autreParticipant||[]).map(Q=>Q.nom);this.uniqueDetails=Array.from(new Set([...this.uniqueDetails,...W]))}),this.allEvents.forEach(_=>{if(this.isFutureOrToday(_.start)){var E;this.uniqueComingDetails=Array.from(new Set([...this.uniqueComingDetails,..._.nomComplet?[_.nomComplet]:[]]));const h=(null===(E=_.autreParticipant)||void 0===E?void 0:E.map(V=>V.nom))||[];this.uniqueComingDetails=Array.from(new Set([...this.uniqueComingDetails,...h]))}}),this.calendarOptions.events=[...this.allEvents],this.calendarOptions={...this.calendarOptions,events:[...this.allEvents]},this.cdr.detectChanges(),this.actions$.pipe((0,mt.gp)(d.c),(0,Dt.pQ)(this.destroyRef)).subscribe(({payload:_})=>{this.sortedActivities=this.sortedActivities.filter(m=>m.id!==_);const E=this.sortedActivities.map(m=>({title:m.nomActivite,start:(0,Rt.c2F)(m.date,m.temps)}));this.allEvents=this.allEvents.filter(m=>E.some(h=>h.title===m.title&&h.start===m.start)),this.calendarOptions.events=[...this.allEvents]})}onViewChange(_){switch(_){case"month":this.fullCalendar.getApi().changeView("dayGridMonth");break;case"week":this.fullCalendar.getApi().changeView("timeGridWeek");break;case"day":this.fullCalendar.getApi().changeView("timeGridDay")}}sortActivities(_,E=!0){return this.formatActivite([..._].sort((m,h)=>this.compareActivities(m,h,E)))}formatActivite(_){return _.map(E=>{const m=this.isFutureActivity(E.dateReference),h=this.isPastActivity(E.dateReference),V=this.formatDateAndTime(E),W=this.getCountDetails(E);return{...E,isFutureActivity:m,isPastActivity:h,formattedDate:V,displayName:this.getActivityDisplayName(E),nomCompletCount:W,shouldShowCard:this.shouldShowCard(E)}})}getActivityDisplayName(_){var E,m;const h=null==_||null===(E=_.nomActivite)||void 0===E?void 0:E.trim(),V=null==_||null===(m=_.sesNom)||void 0===m?void 0:m.trim();return(null==_?void 0:_.type)===nn.sr.Session?V&&h&&h!==V?`${h} - ${V}`:h||V||"":h||""}compareActivities(_,E,m=!0){const h=Y()(_.date,this.fullDateFormat,!0).isValid()?Y()(_.date,this.fullDateFormat,!0).valueOf():-1/0,V=Y()(E.date,this.fullDateFormat,!0).isValid()?Y()(E.date,this.fullDateFormat,!0).valueOf():-1/0;if(h!==V)return m?h-V:V-h;const W=this.extractStartTime(_.temps)||"00:00",Q=this.extractStartTime(E.temps)||"00:00",le=Y()(W,this.timeFormat,!0).valueOf(),Pe=Y()(Q,this.timeFormat,!0).valueOf();return m?le-Pe:Pe-le}extractStartTime(_){if(null==_||!_.trim())return null;const E=this.isLocalisationFr?[/De (\d{1,2}:\d{2})/,/From (\d{1,2}:\d{2})/]:[/De (\d{1,2}:\d{2} (?:AM|PM))/i,/From (\d{1,2}:\d{2} (?:AM|PM))/i];for(const m of E){const h=m.exec(_);if(null!=h&&h[1])return h[1]}return null}getCountDetails(_){var E,m;let h=(null===(E=_.details)||void 0===E?void 0:E.length)||0;return null==_||null===(m=_.details)||void 0===m||m.forEach(V=>{V.autreParticipant&&V.autreParticipant.length&&(h+=V.autreParticipant.length)}),h}formatDateAndTime(_){if(!_.date||!_.temps)return"";const E=_.date.split(" "),m=_.temps.split(" ");if(E.length>=4&&m.length>=1){const h=E[1],V=E[2],W=E[3],Q=m[1];return this.isLocalisationFr?`${"Le"} ${h} ${V} ${W} ${"\xE0"} ${Q}`:`${"Le"} ${h} ${V} ${W}, ${"\xE0"} ${Q} ${m[2]}`}return""}openConfirmCancelDialog(_){this.dialog.open(wn,{width:Gn.Uq.Medium,data:_}).afterClosed().pipe((0,Dt.pQ)(this.destroyRef)).subscribe(E=>{E&&this.cancelReservation(_.id)})}cancelReservation(_){this.activiteService.cancelEvenement(_).pipe((0,Dt.pQ)(this.destroyRef)).subscribe({next:()=>{this.store.dispatch(d.c({payload:_})),this.store.dispatch(new R.Actions.ShowSnackBar("R\xE9servation annul\xE9e avec succ\xE8s"))},error:()=>{this.store.dispatch(new R.Actions.ShowSnackBar("Une erreur est survenue lors de l'annulation de la r\xE9servation",R.EnumSnackBarType.Echec))}})}navigateToFicheInscription(_,E){const h={type:{[nn.sr.Entree]:"entree",[nn.sr.Session]:"session",[nn.sr.Reservation]:"reservation"}[_.type]||_.type,perId:(null==E?void 0:E.perId)||_.perId,nomActivite:_.nomActivite},V=(null==E?void 0:E.partId)||_.partId;V&&(h.partId=V),_.sesConfigId&&(h.sesConfigId=_.sesConfigId);const W=(null==E?void 0:E.enregId)||_.enregId;W&&(h.enregId=W),_.eveActId&&(h.eveActId=_.eveActId),sessionStorage.setItem("fic
1heInscriptionParams",JSON.stringify(h)),window.innerWidth<=768?this.router.navigate(["/utilisateur/activite/fiche-inscription"],{queryParams:h}):this.router.navigate(["/utilisateur/profil",{outlets:{profil:["activite","fiche-inscription"]}}])}toggleSections(){this.hideHistorique=!this.hideHistorique}toggleDetails(_){this.toggleStates[_]=!this.toggleStates[_]}toggleDetailsAdhesion(_){this.toggleStatesAdhesion[_]=!this.toggleStatesAdhesion[_]}goToPreviousPage(){this.hideHistorique=!0}filterEvents(_){const E=_.value,m="Tout le monde"===E?this.allEvents:this.allEvents.filter(h=>h.nomComplet.includes(E)||h.autreParticipant&&h.autreParticipant.some(V=>V.nom===E));this.calendarOptions={...this.calendarOptions,events:m}}handleEventClick(_){const E={title:_.title,start:_.start},m=Y()(E.start).locale(this.isLocalisationFr?Gn.fi.FR:Gn.fi.EN).format(this.fullDateFormat),h=Y()(E.start).format(this.timeFormat),V=this.sortedActivities.filter(W=>{var Q,le;return W.nomActivite===E.title&&(null===(Q=this.extractTime(W.temps))||void 0===Q?void 0:Q.trim())===(null==h?void 0:h.trim())&&this.minimiseFirstLetter(null===(le=W.date)||void 0===le?void 0:le.trim())===this.minimiseFirstLetter(null==m?void 0:m.trim())});V.length>0&&(this.sortedActivities=[...V.map(W=>(W.isClicked=!0,W)),...this.sortedActivities.filter(W=>!V.includes(W))],setTimeout(()=>
1{V.forEach(W=>{W.isClicked=!1})},5e3),this.sortedActivities=[...this.sortedActivities.slice(0,V.length),...this.sortedActivities.slice(V.length).sort((W,Q)=>this.compareActivities(W,Q,!0))])}minimiseFirstLetter(_){return _?_.charAt(0).toLowerCase()+_.slice(1):""}isFutureActivity(_){const E=Y()(_,this.fullDateFormatWithTime,!0),m=E.isValid()&&E.isSameOrAfter(Y()());return m&&this.futureActivityCount++,m}isFutureOrToday(_){const E=Y()(_,Y().ISO_8601,!0);return E.isValid()&&E.isSameOrAfter(Y()(),"day")}shouldShowCard(_){return"Tout le monde"===this.selectedDetail||_.details.some(E=>E.nomComplet===this.selectedDetail||E.autreParticipant&&E.autreParticipant.some(m=>m.nom===this.selectedDetail))}isActiveAdhesion(_){const E=Y().tz(this.timezone),m=Y().tz(_.perioDateFin,this.timezone);return E.isSameOrBefore(m)}isPastActivityAdhesion(_){const E=Y().tz(this.timezone),m=Y().tz(_.perioDateFin,this.timezone);return E.isAfter(m)}isPastActivity(_){const E=Y()(_,this.fullDateFormatWithTime,!0),m=E.isValid()&&E.isBefore(Y()());return m&&this.pastActivityCount++,m}openAbonnementsDialog(_){this.dialog.open(Kt,{data:{inscNom:_.inscNom,plageHoraire:_.plageHoraire,dateDebut:_.dateDebut,datefin:_.dateFin,actNoms:_.actNoms,infoAdds:_.Adh_InscInfosAdditionnelles,type:_.adhesionType,isAdhesionDate:_.isAdhesionDate},width:Gn.Uq.Medium,panelClass:"dialog-container-without-padding"})}openEntreeQrCodeDialog(_){this.dialog.open(It,{data:{nomAct:_.nomActivite,date:_.date,temps:_.temps,detail:_.details,dateDebut:_.dateDebut,tempsDebut:_.tempsDebut,datefin:_.dateFin,tempsfin:_.tempsFin,isMultipleDay:_.isMultipleDay,lieu:_.lieu},width:Gn.Uq.Medium,panelClass:"dialog-container-without-padding"})}openActivityDialog(_){this.dialog.open(Kt,{data:{actiNoms:_.nomActivite,date:_.date,temps:_.temps,dateDebut:_.dateDebut,tempsDebut:_.tempsDebut,datefin:_.dateFin,tempsfin:_.tempsFin,isMultipleDay:_.isMultipleDay,dateOccurrences:_.dateOccurrences,infoAdds:_.infoAdds,inscNom:_.inscNom,lieu:_.lieu,adresse:_.adresse?_.adresse:null,type:_.type,hasMultiSession:_.hasMultiSession},width:Gn.Uq.Medium,panelClass:"dialog-container-without-padding"})}removeFromWaitlist(_){const E=`${_.nomActivite} - ${_.nomSession}`;this.dialog.open(Le,{data:{titleText:this.currentLocalisation===Gn.fi.FR?`Retrait de la liste d'attente de \xab\xa0${E}\xa0\xbb `:`Removing "${E}" from the waiting list`,mainText:this.currentLocalisation===Gn.fi.FR?`\xcates-vous s\xfbr de vouloir retirer ${_.nomComplet} de la liste d'attente ?`:`Are you sure you want to remove ${_.nomComplet} from the waiting list ?`},width:Gn.Uq.Medium}).afterClosed().pipe((0,Dt.pQ)(this.destroyRef),(0,qt.n)(V=>V?this.activiteService.deleteSessionEnregistrement(_.enregId):wi.w)).subscribe(V=>{V&&(1===V.returnValue?(this.waitingList=this.waitingList.filter(W=>W.enregId!==_.enregId),this.store.dispatch(new R.Actions.ShowSnackBar("Inscription supprim\xE9e avec succ\xE8s",R.EnumSnackBarType.Succes))):this.store.dispatch(new R.Actions.ShowSnackBar("Une erreur est survenue. Impossible de supprimer l'inscription",R.EnumSnackBarType.Echec)))})}}return(f=s).\u0275fac=function(_){return new(_||f)},f.\u0275cmp=t.VBU({type:f,selectors:[["vplus-activite-profil"]],viewQuery:function(_,E){if(1&_&&t.GBs(Pi,5),2&_){let m;t.mGM(m=t.lsd())&&(E.fullCalendar=m.first)}},decls:2,vars:2,consts:()=>{let c,_,E,m,h,V,W,Q,le,Pe,Xe,Oe,st,k,fe,Me,ut,oe,Qt,sn,Sn,Fi,dr,ki,ur,Er,mo,Mr,Or,Nr,Pr,hr,Rr,To,fr,vr,Dr,Sr,xr,br,Cr,pr,yr,Lr,mr;return c="Mes activit\xE9s",_=" Consulter les activit\xE9s ",E="Abonnements actifs",m="\xC0 venir",h="Tout le monde",V=" Voir l'historique des activit\xE9s ",W="Calendrier",Q="Tout le monde",le=" Voir l'historique des activit\xE9s ",Pe="Listes d'attente",Xe="Se retirer",Oe="Aucun abonnement actif",st=" Aucune activit\xE9 \xE0 venir pour le moment",k=" Aucune activit\xE9 \xE0 venir pour le moment",fe="Afficher les QR codes",Me="N\xB0 de r\xE9servation",ut="Modifier",oe="N\xB0 de r\xE9servation",Qt="Modifier",sn=" Historique",Sn="Modifier",Fi="Toutes",dr="Participants",ki="N\xB0 de r\xE9servation",ur="N\xB0 de r\xE9servation",Er="Participants",mo="Aucune activit\xE9 enregistr\xE9e",Mr="Entr\xE9es ",Or="Participants",Nr="N\xB0 de r\xE9servation",Pr="N\xB0 de r\xE9servation",hr="Aucune activit\xE9 enregistr\xE9e",Rr="Sessions",To="Participants",fr="No r\xE9servation",vr="N\xB0 de r\xE9servation",Dr="Aucune activit\xE9 enregistr\xE9e",Sr="Abonnements",xr="Participants",br="Aucune activit\xE9 enregistr\xE9e",Cr="R\xE9servations",pr="Participants",yr="N\xB0 de r\xE9servation",Lr="N\xB0 de r\xE9servation",mr="Aucune activit\xE9 enregistr\xE9e",[["fullCalendar",""],["btnModifierFiche",""],["tabs",""],c,_,E,m,h,V,W,Q,le,Pe,Xe,Oe,st,k,fe,Me,ut,oe,Qt,sn,Sn,Fi,dr,ki,ur,Er,mo,Mr,Or,Nr,Pr,hr,Rr,To,fr,vr,Dr,Sr,xr,br,Cr,pr,yr,Lr,mr,[3,"title","imgSrc","description","buttonLabel","buttonLink"],[1,"hideHistorique"],[1,"showHistorique"],[1,"activites-header"],[1,"form-section-title"],["color","primary",1,"consulter-button",3,"routerLink"],[1,"activites-content","margin-bottom-2"],[1,"activites-content"],[1,"active-subscriptions"],[1,"custom-divider"],[1,"divi
1der"],[1,"activite-post-list","margin-bottom-2"],[1,"activite-post"],[1,"content-container"],[1,"class-coming"],[1,"custom-select","right-container"],["panelClass","fit-content",3,"ngModelChange","ngModel"],["value","Tout le monde","selected",""],[3,"value"],[1,"no-activities-message"],[1,"view-history-button","hide-desktop","margin-top-2-imp",3,"click"],[1,"class-calander","hide-mobile"],[1,"font-weight-500",3,"value"],["panelClass","fit-content",3,"ngModelChange","selectionChange","ngModel"],[1,"toolbar-container"],[1,"full-calendar",3,"options"],[1,"view-history-button",3,"click"],[1,"cards-waiting-container"],[1,"waitlist-card"],[1,"requete-post-top","padding-16"],[1,"activity-name"],[1,"session-name"],[1,"participant-name"],[1,"btn-remove",3,"click"],[1,"icon-close"],[1,"requete-post-title","half-margin-bottom"],[1,"activity-namesize","adhesion-inscreption",3,"click"],[1,"no-margin-bottom","primary-color"],[1,"adhesion-plage-horaire"],[1,"no-adhesion","margin-bottom-1"],[1,"icon-param-adhesion","small-margin-right","center-noactivity","font-size24px"],[1,"center-noactivity"],[1,"no-activity"],[1,"icon-calendar-fin","small-margin-right","center-noactivity","font-size-24"],[1,"margin-top-1","margin-bottom-1","container-cards","col-4"],[1,"entree-post"],[1,"activity-namesize","activity-inscreption","activity-namesPadding",3,"click"],[1,"container-entree"],[1,"ligne-horaire","desklabel-size"],[1,"insc-nom","desklabel-size","font-weight-500"],[1,"ligne-horaire","desklabel-size","margin-top"],[1,"margin-bottom-1"],[1,"date"],[1,"temps"],[1,"date","primary-color"],[1,"temps","activity-type",3,"click"],[1,"detail-row","has-modifier","desklabel-size","margin-top-1"],[1,"detail-info"],[1,"temps","primary-color"],["type","button","mat-raised-button","",1,"btn-modifier-reponses","btn-modifier-placeholder"],[1,"ligne-horaire","desklabel-size","margin-top-1"],[1,"detail-row","has-modifier","desklabel-size"],[1,"date","font-weight-300"],[1,"temps","font-weight-300"],["color","primary","type","button","mat-raised-button","",1,"btn-modifier-reponses",3,"click"],[1,"activite-titre","align-title"],["slot","start","matRipple","",1,"hide-desktop",3,"matRippleCentered","matRippleRadius"],[3,"click"],["mode","md","slot","icon-only","name","arrow-back",1,"hide-ion-tooltip","cursor-style","black-text"],["slot","start",1,"hide-mobile"],["mat-align-tabs","start","animationDuration","0ms",1,"margin-top-1"],[1,"margin-bottom-22-rem"],["label","Toutes"],["mat-tab-label",""],[1,"no-content-placeholder","margin-top-1"],["label","Entr\xe9es"],["label","Sessions"],["label","Adhesions"],["label","Reservations"],[1,"btn-modifier-wrapper"],[1,"margin-top-2","container-cards","col-4"],[1,"requete-post","container-card",3,"click"],[1,"mat-panel-activity"],[1,"activity-panel"],[1,"hide-mobile","historique-nom-activite","adhesion-header"],[1,"adhesion-header"],[1,"titre-activite"],[1,"big-dot"],[1,"format-date-time"],[1,"counts"],[1,"hide-desktop","historique-nom-activite-mobile"],[1,"hide-desktop","format-date-time-mobile"],[1,"hide-desktop","font-size-16"],[1,"hide-desktop","counts-mobile"],[1,"hide-mobile","font-size-18"],[1,"toggleStates-panel"],[1,"toggleStates-click"],[1,"toggleParticipant","margin-bottom--15"],[1,"table"],[1,"table-row","header"],[1,"table-cell","participant-label"],[1,"table-cell","font-weight-300","hide-mobile","font-size-16","primary-color","width-50"],[1,"table-cell","hide-desktop","font-size-12","resrvation-label-mobile"],[1,"table-row"],[1,"table-cell","font-weight-300","hide-mobile","font-size-18"],[1,"table-cell","font-weight-300","hide-mobile","font-size-18","width-50"],[1,"table-cell","font-weight-300","hide-desktop","font-size-14"],[1,"table-cell","font-weight-300","hide-desktop","table-enrgcode"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-panel-activity","margin-top-8"],[1,"toggleParticipant"],[1,"icon-calendar-fin"],[1,"table-cell","hide-desktop","resrvation-label-mobile"],[1,"icon-param-adhesion"]]},template:function(_,E){1&_&&t.DNE(0,ji,1,0,"vplus-loading-spinner")(1,po,3,2,"div"),2&_&&(t.vxM(0,E.dataLoaded?-1:0),t.R7$(),t.vxM(1,E.dataLoaded?1:-1))},dependencies:[un.Wk,An.wT,Ai.VO,yn.$z,ui.ES,ui.mq,ui.T8,An.r6,Ht.T3,ni.BC,ni.vS,_n.Jm,_n.QW,_n.iq,_n.N7,pi.m,go.N,Ui.x,Ht.lG],styles:['@charset "UTF-8";.date-cancel[_ngcontent-%COMP%]{width:100%;justify-content:space-between}.font-weight-500[_ngcontent-%COMP%]{font-weight:500}[_nghost-%COMP%] vplus-activite-profil .mat-mdc-tab-body-content, [_nghost-%COMP%] vplus-activite-profil .mat-tab-body, [_nghost-%COMP%] vplus-activite-profil .mat-mdc-tab-body-wrapper, [_nghost-%COMP%] vplus-activite-profil .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow:visible!important}.container-cards[_ngcontent-%COMP%]{grid-column-gap:20px;grid-template-columns:repeat(1,1fr);grid-row-gap:20px}@media (min-width: 600px){.container-cards.col-4[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 960px){.container-cards.col-4[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}}@media (min-width: 1920px){.container-cards.col-4[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}}.container-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;flex-wrap:wrap;gap:1rem;align-items:flex-start}.container-entree[_ngcontent-%COMP%]{text-align:left}.container-entree[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:1rem;line-height:0rem}.activites-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.activite-titre[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700;margin-top:0;direction:ltr;display:flex;align-items:center}.icon-left-arrow[_ngcontent-%COMP%]{order:-1}.primary-color[_ngcontent-%COMP%]{color:var(--primary-color);font-weight:400}.consulter-button[_ngcontent-%COMP%]{background-color:var(--primary-color);border-radius:100px!important;padding:0 20px!important;font-weight:600;line-height:52px!important;font-size:.8rem;color:var(--primary-color-contrast-text);border:none}.adhesion-inscreption[_ngcontent-%COMP%]{font-weight:600;margin-top:.5rem;cursor:pointer}.adhesion-plage-horaire[_ngcontent-%COMP%]{font-size:16px;margin-bottom:.4rem}.activity-inscreption[_ngcontent-%COMP%]{font-weight:600;line-height:1.5rem;cursor:pointer}.activity-type[_ngcontent-%COMP%]{color:var(--primary-color);text-decoration:underline;cursor:pointer}@media (max-width: 768px){.consulter-button[_ngcontent-%COMP%]{background-color:var(--primary-color);border-radius:100px!important;padding:0 10px!important;font-weight:600;line-height:4!important;font-size:12px;color:#fff;border:none}.adhesion-plage-horaire[_ngcontent-%COMP%]{font-size:14px;margin-bottom:.4rem}.activity-namesize[_ngcontent-%COMP%]{font-weight:600!important;font-size:16px!important}}@media (max-width: 768px){[_nghost-%COMP%] h4{font-size:16px}}.active-subscriptions[_ngcontent-%COMP%]{font-size:18px;font-weight:500;display:block}.class-coming[_ngcontent-%COMP%]{width:31.6%;position:relative;float:left;margin-bottom:4rem}.class-calander[_ngcontent-%COMP%]{width:66.3%;position:relative;float:right;margin-bottom:2rem}@media (max-width: 1310px){.content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.class-calander[_ngcontent-%COMP%]{width:100%;position:relative;float:right;margin-bottom:2rem;order:1}.class-coming[_ngcontent-%COMP%]{width:100%;position:relative;float:left;margin-bottom:4rem;order:2}}@media (max-width: 913px){.class-coming[_ngcontent-%COMP%]{width:100%;float:none;margin-bottom:2.5rem!important}}.right-container[_ngcontent-%COMP%]{display:flex;justify-content:right}.right-select[_ngcontent-%COMP%]{font-size:14px;margin-top:-.3rem;margin-bottom:-.5rem;font-weight:500;border:none;background-color:transparent;width:auto;outline:none;cursor:pointer}.month-select[_ngcontent-%COMP%]{position:absolute;right:250PX;z-index:10;margin-top:.4rem;font-weight:500}.filter-event[_ngcontent-%COMP%]{position:absolute;right:320PX;z-index:10;margin-top:.4rem;font-weight:500}.right-select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:12px;padding:.2rem .5rem;border:none}
1.right-select[_ngcontent-%COMP%] option.unique-name[_ngcontent-%COMP%]{text-align:left;border:none;width:100%}.right-select[_ngcontent-%COMP%]::-ms-expand{display:none;border:none}.right-select[_ngcontent-%COMP%]:hover{border:1px solid #ccc;border-radius:1px;border:none}.no-activity[_ngcontent-%COMP%]{margin-top:2rem!important;font-size:18px;color:#909090;font-weight:500;display:flex;align-items:center;justify-content:center;height:100%;text-align:center}.no-adhesion[_ngcontent-%COMP%]{font-size:18px;color:#909090;font-weight:500;display:flex;align-items:center;justify-content:center;height:100%;text-align:center}.font-size24px[_ngcontent-%COMP%]{font-size:24px!important}.center-noactivity[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.no-abonnements[_ngcontent-%COMP%]{font-size:18px;color:#909090;margin-top:-15px;margin-bottom:15px;justify-content:center}@media (min-width: 1559px){.month-select[_ngcontent-%COMP%]{right:180PX;margin-top:.45rem}.filter-event[_ngcontent-%COMP%]{right:290PX;margin-top:.69rem}}@media (min-width: 900px) and (max-width: 1559px){.month-select[_ngcontent-%COMP%]{right:150PX}.filter-event[_ngcontent-%COMP%]{right:241px}}@media (min-width: 1280px) and (max-width: 1310px){.month-select[_ngcontent-%COMP%]{right:150PX}.filter-event[_ngcontent-%COMP%]{right:261px}}@media (min-width: 1000px) and (max-width: 1279px){.month-select[_ngcontent-%COMP%]{right:132PX}.filter-event[_ngcontent-%COMP%]{right:231px}}.activity-namesize[_ngcontent-%COMP%]{font-weight:600;font-size:20px;padding-top:6px;line-height:1.5rem}.activity-namesPadding[_ngcontent-%COMP%]{padding:0rem 18px 0rem 1rem}.ligne-horaire[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:.4rem}.date[_ngcontent-%COMP%]{margin-left:1rem;text-align:left!important;margin-right:1rem!important;font-weight:500!important}.temps[_ngcontent-%COMP%]{text-align:right;margin-right:1rem;font-weight:500}.insc-nom[_ngcontent-%COMP%]{display:block;margin-left:1rem;margin-top:-.3rem}.right-list[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0;width:-moz-fit-content;width:fit-content;border:1px solid #ddd;border-radius:1px;overflow:hidden;background-color:#fff;box-shadow:0 2px 4px #0000001a}.right-item[_ngcontent-%COMP%]{font-size:12px;padding:.4rem 1rem;cursor:pointer;transition:background-color .2s;text-align:left} .custom-select{max-width:100%} .custom-select .mat-mdc-select{font-weight:500} .custom-select .mat-mdc-select-trigger{gap:1rem}.custom-select.right-container[_ngcontent-%COMP%]{position:absolute;max-width:100%;gap:1rem}.custom-select.right-container[_ngcontent-%COMP%] .mat-mdc-select-trigger[_ngcontent-%COMP%]{gap:1rem}.class-calander[_ngcontent-%COMP%] .custom-select.right-container[_ngcontent-%COMP%]{margin-top:.3rem;right:162px}.class-coming[_ngcontent-%COMP%] .custom-select.right-container[_ngcontent-%COMP%]{right:0;top:0}.custom-select[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-size:14px;padding:.01em 1em 0;border:none;border-radius:.25rem;color:#000;cursor:pointer} .mat-mdc-select-panel.fit-content{min-width:-moz-fit-content;min-width:fit-content}.right-select[_ngcontent-%COMP%]{width:auto;max-width:300px}@media (min-width: 900px) and (max-width: 1559px){[_nghost-%COMP%] .year-month-select .mat-select-value{padding-right:10px!important;color:#000}}[_nghost-%COMP%] .icon-param-adhesion:before{font-size:27px}[_nghost-%COMP%] a{background-color:transparent;color:#313030}[_nghost-%COMP%] .fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px;font-weight:600;font-size:14px}[_nghost-%COMP%] .fc-direction-ltr .fc-daygrid-event.fc-event-end, .fc-direction-rtl[_ngcontent-%COMP%] .fc-daygrid-event.fc-event-start[_ngcontent-%COMP%]{margin-right:2px;font-size:14PX}.clicked-event[_ngcontent-%COMP%]{border:2px solid var(--primary-color);transition:border .3s ease-in-out}[_nghost-%COMP%] .fc .fc-daygrid-day-number{font-size:14px}[_nghost-%COMP%] .mat-option-text{font-weight:500}[_nghost-%COMP%] .mat-option-text .mat-tab-header .mat-tab-labels{justify-content:flex-start!important}.activity-details[_ngcontent-%COMP%]{display:flex;align-items:center}.activity-details[_ngcontent-%COMP%] .activity-date[_ngcontent-%COMP%]{font-size:13px;color:#909090;margin-left:1rem}.table[_ngcontent-%COMP%]{display:table;width:75%;border-collapse:collapse}.table-row[_ngcontent-%COMP%]{display:table-row}.table-cell[_ngcontent-%COMP%]{display:table-cell;padding-right:8px;padding-top:8px;padding-bottom:8px;vertical-align:middle}.header-cell[_ngcontent-%COMP%]{font-size:small;color:var(--primary-color);font-weight:700}.no-borders[_ngcontent-%COMP%] .table-cell[_ngcontent-%COMP%]{border:none}.table-row[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.historique-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;align-items:flex-start;width:100%}.mat-panel-activity[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%}.historique-nom-activite[_ngcontent-%COMP%]{font-weight:500;margin-bottom:1rem;font-size:24px}
1.format-date-time[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#868383}.counts[_ngcontent-%COMP%]{right:80px;font-size:14px;position:absolute;font-weight:500;margin-top:4px}.historique-nom-activite-mobile[_ngcontent-%COMP%]{font-size:18px;font-weight:600;margin-bottom:.5rem}.format-date-time-mobile[_ngcontent-%COMP%]{font-size:16px;margin-bottom:.3rem}.counts-mobile[_ngcontent-%COMP%]{font-size:16px;margin-bottom:.3rem;margin-top:.3rem}.toggleStates-panel[_ngcontent-%COMP%]{width:20%;display:flex;align-items:center;justify-content:center;position:relative}.toggleStates-click[_ngcontent-%COMP%]{font-size:1.7rem;position:absolute;right:20px;margin-top:15px}.cursor-style[_ngcontent-%COMP%]{cursor:pointer}.toggleParticipant[_ngcontent-%COMP%]{width:100%;padding-left:1.7rem;padding-right:1.7rem;margin-top:-21px}.participant-label[_ngcontent-%COMP%]{font-size:16px;color:var(--primary-color)}.resrvation-label-mobile[_ngcontent-%COMP%]{font-size:13px;color:var(--primary-color);position:absolute;margin-left:14px}.table-enrgcode[_ngcontent-%COMP%]{font-size:14px;position:absolute;margin-left:14px}.activity-panel[_ngcontent-%COMP%]{width:80%;margin-left:1.7rem}.width-50[_ngcontent-%COMP%]{width:50%!important}.full-calendar[_ngcontent-%COMP%]{display:block;margin-bottom:16px}.view-history-button[_ngcontent-%COMP%]{display:block;margin-left:auto;font-size:1rem;background:none;color:#000;border:none;cursor:pointer;text-decoration:underline;padding-right:0}.view-history-button[_ngcontent-%COMP%]:hover{color:var(--primary-color)}[_nghost-%COMP%] .mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:none}@media (max-width: 768px){.table[_ngcontent-%COMP%]{width:65%}.participant-label[_ngcontent-%COMP%]{font-size:13px;color:var(--primary-color)}}[_nghost-%COMP%] .mat-tab-label{padding:0 24px;min-width:120px}[_nghost-%COMP%] .mat-tab-body-wrapper{padding:18px 40px 0}.adhesion-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-bottom:0rem;margin-top:0rem}h4[_ngcontent-%COMP%]{font-size:36px;display:flex;align-items:center;gap:2px}.big-dot[_ngcontent-%COMP%]{display:inline-block;width:7px;height:7px;background-color:gray;border-radius:50%;margin-right:20px}.format-date-time[_ngcontent-%COMP%]{font-size:14px;color:gray;margin-top:4px}@media (max-width: 1300px){.adhesion-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{display:flex;align-items:center}.toggleStates-panel[_ngcontent-%COMP%]{width:56%}.counts[_ngcontent-%COMP%]{font-weight:500;right:65px}.big-dot[_ngcontent-%COMP%]{flex-shrink:0;margin-right:10px}}@media (max-width: 1300px) and (min-width: 1184px){.toggleStates-panel[_ngcontent-%COMP%]{width:51%}.format-date-time[_ngcontent-hcb-c536][_ngcontent-%COMP%]{font-size:14px;color:gray;width:77%}}@media (max-width: 1024px){.toggleStates-panel[_ngcontent-%COMP%]{width:60%}}@media (max-width: 768px){[_nghost-%COMP%] .mat-tab-body-wrapper{padding:0}.activity-panel[_ngcontent-%COMP%]{width:80%;margin-left:0rem}.toggleStates-panel[_ngcontent-%COMP%]{width:0%}.mat-panel-activity[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:0 2rem}.toggleStates-click[_ngcontent-%COMP%]{font-size:1.7rem;position:absolute;right:-70px;margin-top:15px}}@media (max-width: 768px){h4[_ngcontent-%COMP%]{font-size:22.8px}}.align-title[_ngcontent-%COMP%]{margin-left:-14px}@media (max-width: 768px){h4[_ngcontent-%COMP%]{font-size:22.8px}.no-adhesion[_ngcontent-%COMP%], .no-activity[_ngcontent-%COMP%]{font-size:14px}}.btn-cancel-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;padding-top:.5rem}.btn-cancel-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{right:12px;height:44px;box-shadow:none!important}.btn-cancel-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px}.activite-post-list[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap;padding-top:.5rem}.titre-activite[_ngcontent-%COMP%]{font-size:1.25rem!important;line-height:1.5rem}.btn-modifier-reponses[_ngcontent-%COMP%]{font-size:.8rem;padding:0 8px;min-width:auto;height:2rem;line-height:2rem;margin-left:1rem;margin-right:1rem;flex-shrink:0}.detail-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:.4rem}.detail-row[_ngcontent-%COMP%] .detail-info[_ngcontent-%COMP%]{display:flex;flex:1;min-width:0}.detail-row[_ngcontent-%COMP%] .detail-info[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{flex:1;line-height:1.4;margin-top:0;margin-bottom:0;word-wrap:break-word;overflow-wrap:break-word}.detail-row[_ngcontent-%COMP%] .detail-info[_ngcontent-%COMP%] .temps[_ngcontent-%COMP%]{flex-shrink:0;margin-right:.5rem;text-align:right;line-height:1.4;margin-top:0;margin-bottom:0}.btn-modifier-placeholder[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none;height:0;line-height:0;padding-top:0;padding-bottom:0;border:none}.btn-modifier-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex-shrink:0}@media (max-width: 959px){.toggleParticipant[_ngcontent-%COMP%] .ligne-horaire[_ngcontent-%COMP%]{flex-wrap:wrap}.btn-modifier-wrapper[_ngcontent-%COMP%]{flex-basis:100%;margin-top:.35rem}}@media (max-width: 599px){.detail-row.has-modifier[_ngcontent-%COMP%] .detail-info[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{flex-shrink:1;min-width:60px;word-wrap:break-word;overflow-wrap:break-word}.btn-modifier-reponses[_ngcontent-%COMP%]{margin-left:.5rem;margin-right:.5rem;font-size:.65rem;padding:0 5px;line-height:22px}.btn-modifier-placeholder[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none;height:0;line-height:0;border:none;font-size:.65rem;padding:0 5px;margin-left:.5rem;margin-right:.5rem}}.cards-waiting-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:20px}.waitlist-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #d1d1d1;border-radius:8px;padding:5px;width:calc(33.33% - 1rem);display:flex;flex-direction:column;justify-content:space-between;min-height:180px}
1.waitlist-card[_ngcontent-%COMP%] .activity-name[_ngcontent-%COMP%]{font-size:20px;font-weight:600;margin:0 0 8px}.waitlist-card[_ngcontent-%COMP%] .session-name[_ngcontent-%COMP%]{font-weight:600;font-size:14px;margin:4px 0}.waitlist-card[_ngcontent-%COMP%] .participant-name[_ngcontent-%COMP%]{font-size:14px;margin:4px 0}.waitlist-card[_ngcontent-%COMP%] .btn-remove[_ngcontent-%COMP%]{align-self:flex-end;background-color:#e8f0fe;color:#1a73e8;border:none;padding:10px 20px;border-radius:25px;cursor:pointer;font-weight:500;display:flex;align-items:center;gap:8px;transition:background-color .2s;margin:16px}.waitlist-card[_ngcontent-%COMP%] .btn-remove[_ngcontent-%COMP%]:hover{background-color:#d2e3fc}']}),s})()},50505:(Nt,ne,g)=>{"use strict";g.d(ne,{T:()=>vn});var d=g(53160),R=g(49823),A=g(68901),x=g(20986),C=g(82889),e=g.n(C),de=g(97586),y=g.n(de),a=g(89417),U=g(8953),O=g(77339),Ae=g(49276),Te=g(51611),ge=g(49484),Ce=g(64075),Fe=g(35052),xe=g(37084),qe=g(84572),rt=g(25558),nt=g(96354),vt=g(7673),Pt=g(983),l=g(54438),ot=g(66345),Ke=g(92995),ve=g(97803),He=g(98377),Qe=g(60177),We=g(34006),dt=g(373),Ct=g(51188),en=g(9310),Je=g(89079),zt=g(17446),_t=g(59042),ie=g(32102),Ye=g(88834),re=g(36013),it=g(32430),ke=g(81405),Ue=g(88974),Yt=g(58820),Jt=g(33916),De=g(75824),w=g(6220),b=g(16175),J=g(96508),ce=g.n(J),pe=g(26450),Ie=g(25084),ct=g(73910),ft
1=g(88821);const et=(te,je)=>je.icon,wt=(te,je)=>je.instId,Ne=()=>["choixInstallationDetail"];function Ot(te,je){if(1&te){const $=l.RV6();l.j41(0,"button",27),l.bIt("click",function(){const Z=l.eBV($).$implicit,Re=l.XpG(2);return l.Njj(Re.navigateByDay(Z.forward))}),l.nrm(1,"i",28),l.k0s()}if(2&te){const $=je.$implicit;l.HbH($.extraClass),l.R7$(),l.Y8G("ngClass",$.icon)}}function Ft(te,je){1&te&&(l.j41(0,"th",29),l.pXf(1,1),l.k0s())}function pt(te,je){if(1&te&&(l.j41(0,"p",31),l.EFF(1),l.nI1(2,"vplusMoment"),l.nI1(3,"vplusCapitalizeFirstLetter"),l.k0s(),l.j41(4,"p",31),l.EFF(5),l.k0s()),2&te){const $=l.XpG().$implicit;l.R7$(),l.JRh(l.bMT(3,7,l.ii3(2,2,$.dateHeureDebut,!1,"dddd, DD/MM/yyyy",null))),l.R7$(4),l.JRh($.plageHoraire)}}function yt(te,je){if(1&te&&(l.EFF(0),l.nI1(1,"vplusMoment"),l.nI1(2,"vplusCapitalizeFirstLetter")),2&te){const $=l.XpG().$implicit;l.SpI(" ",l.bMT(2,6,l.ii3(1,1,$.dateHeureDebut,!1,"dddd, DD/MM/yyyy",null))," ")}}function In(te,je){if(1&te&&(l.j41(0,"td",30),l.DNE(1,pt,6,9)(2,yt,3,8),l.k0s()),2&te){const $=l.XpG(2);l.R7$(),l.vxM(1,$.hidePlageHoraireCol?1:2)}}function tn(te,je){if(1&te&&(l.j41(0,"th",32),l.pXf(1,2),l.k0s()),2&te){const $=l.XpG(2);l.Y8G("hidden",$.hidePlageHoraireCol)}}function ln(te,je){if(1&te&&(l.j41(0,"td",33),l.EFF(1),l.k0s()),2&te){const $=je.$implicit,H=l.XpG(2);l.Y8G("hidden",H.hidePlageHoraireCol),l.R7$(),l.SpI(" ",$.plageHoraire,"")}}function on(te,je){1&te&&l.nrm(0,"th",29)}function Vn(te,je){if(1&te){const $=l.RV6();l.j41(0,"ion-button",35),l.bIt("click",function(){l.eBV($);const Z=l.XpG(3);return l.Njj(Z.collapseReservation())}),l.pXf(1,3),l.k0s()}}function On(te,je){if(1&te){const $=l.RV6();l.j41(0,"ion-button",36),l.bIt("click",function(){l.eBV($);const Z=l.XpG().$implicit,Re=l.XpG(2);return l.Njj(Re.toggleReservationExpand(Z))}),l.pXf(1,4),l.k0s()}}function Nn(te,je){if(1&te&&(l.j41(0,"td",30),l.DNE(1,Vn,2,0,"ion-button",34)(2,On,2,0),l.k0s()),2&te){const $=je.$implicit,H=l.XpG(2);l.R7$(),l.vxM(1,H.isChoixInstallation()&&$===H.expandedElement?1:2)}}function $n(te,je){1&te&&(l.j41(0,"span",46),l.pXf(1,7),l.k0s())}function hn(te,je){1&te&&(l.j41(0,"span",47),l.pXf(1,8),l.k0s())}function Cn(te,je){if(1&te){const $=l.RV6();l.j41(0,"button",42),l.bIt("click",function(){const Z=l.eBV($).$implicit,Re=l.XpG(4);return l.Njj(Re.selectInstallation(Z))}),l.j41(1,"span",43),l.nrm(2,"span",44),l.j41(3,"span",45),l.EFF(4),l.k0s()(),l.DNE(5,$n,2,0,"span",46)(6,hn,2,0),l.k0s()}if(2&te){const $=je.$implicit,H=l.XpG(4);l.AVh("choix-installation-carte--selected",$.instId===H.selectedInstallationId)("choix-installation-carte--indispo",!$.disponible),l.Y8G("disabled",!$.disponible),l.R7$(4),l.JRh($.instNom),l.R7$(),l.vxM(5,$.disponible?5:6)}}function mn(te,je){if(1&te){const $=l.RV6();l.j41(0,"div",37)(1,"p",38),l.pXf(2,5),l.k0s(),l.j41(3,"div",39),l.Z7z(4,Cn,7,7,"button",40,wt),l.k0s(),l.j41(6,"ion-button",41),l.bIt("click",function(){l.eBV($);const Z=l.XpG().$implicit,Re=l.XpG(2);return l.Njj(Re.confirmInstallation(Z))}),l.pXf(7,6),l.k0s()()}if(2&te){const $=l.XpG().$implicit,H=l.XpG(2);l.R7$(4),l.Dyx($.installationChoices),l.R7$(2),l.Y8G("disabled",!H.selectedInstallationId)}}function Qn(te,je){if(1&te&&(l.j41(0,"td",30),l.DNE(1,mn,8,1,"div",37),l.k0s()),2&te){const $=je.$implicit,H=l.XpG(2);l.BMQ("colspan",H.displayedColumns.length),l.R7$(),l.vxM(1,H.isChoixInstallation()&&$===H.expandedElement?1:-1)}}function ii(te,je){1&te&&l.nrm(0,"tr",48)}function pn(te,je){if(1&te&&l.nrm(0,"tr",49),2&te){const $=je.$implicit,H=l.XpG(2);l.AVh("horaire-row--expanded",H.isChoixInstallation()&&$===H.expandedElement)}}function Pn(te,je){if(1&te&&l.nrm(0,"tr",50),2&te){const $=je.$implicit,H=l.XpG(2);l.AVh("choix-installation-row--open",$===H.expandedElement)}}function Jn(te,je){if(1&te&&(l.j41(0,"div",26),l.nrm(1,"vplus-loading-spinner",51),l.k0s()),2&te){const $=l.XpG(2);l.R7$(),l.Y8G("loadingFailed",$.dataLoadingFailed)("message",null)}}function Rn(te,je){if(1&te&&(l.j41(0,"div",10),l.Z7z(1,Ot,2,3,"button",11,et),l.j41(3,"mat-form-field",12),l.nrm(4,"input",13)(5,"mat-datepicker-toggle",14)(6,"mat-datepicker",null,0),l.k0s()(),l.nrm(8,"br"),l.j41(9,"div",15)(10,"table",16),l.qex(11,17),l.DNE(12,Ft,2,0,"th",18)(13,In,3,1,"td",19),l.bVm(),l.qex(14,17),l.DNE(15,tn,2,1,"th",20)(16,ln,2,2,"td",21),l.bVm(),l.qex(17,17),l.DNE(18,on,1,0,"th",18)(19,Nn,3,1,"td",19),l.bVm(),l.qex(20,22),l.DNE(21,Qn,2,2,"td",19),l.bVm(),l.DNE(22,ii,1,0,"tr",23)(23,pn,1,2,"tr",24)(24,Pn,1,2,"tr",25),l.k0s()(),l.DNE(25,Jn,2,2,"div",26)
1),2&te){const $=l.sdS(7),H=l.XpG();l.R7$(),l.Dyx(H.navigationButtons),l.R7$(2),l.Y8G("floatLabel","never"),l.R7$(),l.Y8G("formControl",H.dateReservation)("min",H.dateMinimum)("max",H.dateMaximum?H.dateMaximum:null)("matDatepicker",$),l.R7$(),l.Y8G("for",$),l.R7$(5),l.Y8G("dataSource",H.dataSourceSuggestion),l.R7$(),l.Y8G("matColumnDef",H.displayedColumns[0]),l.R7$(3),l.Y8G("matColumnDef",H.displayedColumns[1]),l.R7$(3),l.Y8G("matColumnDef",H.displayedColumns[2]),l.R7$(5),l.Y8G("matHeaderRowDef",H.displayedColumns),l.R7$(),l.Y8G("matRowDefColumns",H.displayedColumns),l.R7$(),l.Y8G("matRowDefColumns",l.lJ4(15,Ne))("matRowDefWhen",H.isChoixInstallation),l.R7$(),l.vxM(25,H.dataNavigationLoaded||H.isFirstLoad?-1:25)}}function oi(te,je){1&te&&(l.j41(0,"div",52)(1,"span"),l.pXf(2,9),l.k0s()())}let ri=(()=>{var te;class je{constructor(){this.store=(0,l.WQX)(en.il),this.route=(0,l.WQX)(Ct.Ix),this.appMetaTags=(0,l.WQX)(xe.W),this.appConfig=(0,l.WQX)(Fe.o),this.activiteService=(0,l.WQX)(ge.Z),this.localisationService=(0,l.WQX)(He.A),this.destroyRef=(0,l.WQX)(l.abz),this.onSelectEvent=new l.bkB,this.dataLoaded=!1,this.dataNavigationLoaded=!0,this.dataLoadingFailed=!1,this.isFirstLoad=!0,this.aucunePlageDisponible=!1,this.evenementList=[],this.expandedElement=null,this.selectedInstallationId=null,this.localisation=this.localisationService.getCurrentLocalisation(),this.currencyPipe=new Ce.aJo,this.displayedColumns=["dateHeureDebut","plageHoraire","Reserver"],this.dateMaximum=null,this.timezone=this.appConfig.appConfig.timeZone,this.hidePlageHoraireCol=!1,this.navigationButtons=[{forward:!1,icon:"icon-chevron-left",extraClass:""},{forward:!0,icon:"icon-chevron-right",extraClass:"margin-right-10"}],this.isChoixInstallation=()=>!!this.currentActivite.isChoixInstallation&&this.currentActivite.installations.length>1}windowResized(){this.hidePlageHoraireCol=window.innerWidth<600}ngOnInit(){this.selectIsSearchHeaderVisible$=this.store.select(R.selectIsSearchHeaderVisible),ce().locale(this.localisationService.getCurrentLocalisation());const H=ce()().set({hours:12,minutes:0,seconds:0,milliseconds:0}).format("YYYY-MM-DD HH:mm:ss");this.dateCurrent=new Date(H),this.dateMinimum=new Date(H),this.dateReservation=new a.MJ,this.hidePlageHoraireCol=window.innerWidth<600,this.getSuggestionList(),this.dateReservation.valueChanges.pipe((0,Je.pQ)(this.destroyRef)).subscribe(()=>{this.refreshSuggestionList()}),this.dateReservation.patchValue(this.dateCurrent),this.setDateInitial(),this.loadData()}onContentClick(){this.store.dispatch(R.Actions.setIsSearchHeaderVisible({payload:!1}))}navigateByDay(H){const Z=H?ce()(this.dateReservation.value).add(1,"day").toDate():ce()(this.dateReservation.value).subtract(1,"day").toDate();Z.getTime()>=this.dateMinimum.getTime()&&(!this.dateMaximum||Z.getTime()<=this.dateMaximum.getTime())&&this.dateReservation.patchValue(Z)}refreshSuggestionList(){this.dataLoaded&&(this.dataNavigationLoaded=!1,this.dataSourceSuggestion=new pe.I6,this.getCurrentDayEvents().pipe((0,Je.pQ)(this.destroyRef)).subscribe(H=>{this.setEvenementList(H),this.getSuggestionList(),this.dataNavigationLoaded=!0}))}setEvenementList(H){this.evenementList=H,this.evenementList.forEach(Z=>{Z.dateHeureDebut=ce()(Z.dateHeureDebut).toDate(),Z.dateHeureFin=ce()(Z.dateHeureFin).toDate()})}loadData(){this.getCurrentDayEvents().pipe((0,Je.pQ)(this.destroyRef)).subscribe({next:H=>{this.setEvenementList(H),this.getSuggestionList(),this.dataLoaded=!0,this.isFirstLoad=!1},error:()=>{this.dataLoadingFailed=!0}})}getCurrentDayEvents(){const H=ce()(this.dateReservation.value).local();return this.activiteService.getEvenements(`${H.format("YYYY-MM-DD")} 00:00`,`${H.format("YYYY-MM-DD")} 23:59`)}getSuggestionList(){const H=ce()(),Z=[],Re=ce()(this.dateReservation.value).local();for(const me of this.currentActivite.installations){var Tt,P;const S=null!==(Tt=me.duree)&&void 0!==Tt?Tt:this.currentActivite.duree,M=null!==(P=me.intervalleDepart)&&void 0!==P?P:this.currentActivite.intervalleDepart;for(const D of this.getHorairePlagesDuJour(me,Re)){const{startTimePlage:_e,endTimePlage:$e}=this.getBornesPlage(D,Re),Ge=ce()(_e);let we=ce()(_e);for(we.add(S,"minute");we<=$e;){if(Ge.isAfter(H)&&!Z.find(q=>q.dateHeureDebut.toString()===Ge.toString()&&q.dateHeureFin.toString()===we.toString())&&this.isSlotAvailable(Ge,we,me.instId,this.evenementList)){const q=new Ae._6;q.dateHeureDebut=Ge.clone(),q.dateHeureFin=we.clone(),q.plageHoraire=Ge.format("LT")+" "+"\xE0"+" "+we.format("LT"),q.installationId=me.instId,q.installationNom=me.instNom,q.siteNom=me.siteNom,q.adresse=me.adresse,this.isChoixInstallation()&&(q.installationChoices=this.buildInstallationChoices(Ge,we)),q.eveCatId=this.currentActivite.id,q.eveCatNom=this.currentActivite.nom,q.isRequiredFraisService=this.currentActivite.isRequiredFraisService,q.unrequiredTaxes=this.currentActivite.unrequiredTaxes,q.tarifications=this.currentActivite.tarifications.map(mt=>({...mt,tarifFormatted:this.currencyPipe.transform(mt.tarif,this.localisation),acces:[],fteId:(0,Ce.SiN)()})),Z.push(q)}Ge.add(M,"minute"),we=Ge.clone().add(S,"minute")}}}Z.sort((me,S)=>me.dateHeureDebut.isSame(S.dateHeureDebut)?S.dateHeureFin.isSameOrBefore(S.dateHeureFin)?1:-1:S.dateHeureDebut.isSameOrBefore(me.dateHeureDebut)?1:-1),this.dataSourceSuggestion=new pe.I6(Z)}isSlotAvailable(H,Z,Re,Tt){const P=Tt.filter(me=>me.installationId===Re&&!me.isSuggestion);for(const me of P)if(H>=me.dateHeureDebut&&H<me.dateHeureFin||Z<=me.dateHeureFin&&Z>me.dateHeureDebut||H<me.dateHeureDebut&&Z>
1me.dateHeureFin)return!1;return!0}buildInstallationChoices(H,Z){return this.currentActivite.installations.map(Re=>({instId:Re.instId,instNom:Re.instNom,disponible:this.isInstallationOpen(H,Z,Re)&&this.isSlotAvailable(H,Z,Re.instId,this.evenementList)})).sort((Re,Tt)=>Re.instNom.localeCompare(Tt.instNom,this.localisation,{numeric:!0,sensitivity:"base"}))}isInstallationOpen(H,Z,Re){const Tt=ce()(this.dateReservation.value).local();return this.getHorairePlagesDuJour(Re,Tt).some(P=>{const{startTimePlage:me,endTimePlage:S}=this.getBornesPlage(P,Tt);return H.isSameOrAfter(me)&&Z.isSameOrBefore(S)})}getHorairePlagesDuJour(H,Z){const Re=H.instHoraire[Z.isoWeekday()-1];return null!=Re&&Re.jourActif?Re.horairePlageList:[]}getBornesPlage(H,Z){const Re=Z.format("YYYY-MM-DD");return{startTimePlage:ce()(`${Re} ${H.timeFrom}`),endTimePlage:ce()(`${Re} ${H.timeTo}`)}}toggleReservationExpand(H){this.isChoixInstallation()?this.expandedElement===H?this.collapseReservation():(this.expandedElement=H,this.selectedInstallationId=null):this.prepareReservation(H)}collapseReservation(){this.expandedElement=null,this.selectedInstallationId=null}selectInstallation(H){H.disponible&&(this.selectedInstallationId=H.instId)}confirmInstallation(H){const Z=this.currentActivite.installations.find(Re=>Re.instId===this.selectedInstallationId);Z&&(H.installationId=Z.instId,H.installationNom=Z.instNom,H.siteNom=Z.siteNom,H.adresse=Z.adresse,this.prepareReservation(H))}prepareReservation(H){this.store.dispatch(d.ri({payload:H})),this.onSelectEvent.emit(H)}backToActivite(){this.store.dispatch(d.ri({payload:null})),this.route.navigateByUrl("/activite")}ionViewWillEnter(){this.appMetaTags.updateMetaTags("Activit\xE9 - Horaire"),this.setDateInitial()}setDateInitial(){const H=this.currentActivite.periodesReservation.length;if(1!==H)return;const Z=this.currentActivite.periodesReservation[H-1],Re=ce()(this.dateCurrent).format("YYYY-MM-DD"),Tt=ce()(Z.dateFin).format("YYYY-MM-DD");if(Re>Tt)return void(this.aucunePlageDisponible=!0);if(Re===Tt)return void(this.dateMaximum=this.dateMinimum);if(ce()(Z.dateDebut).format("YYYY-MM-DD")>Re){const S=ce()(Z.dateDebut).set({hours:12,minutes:0,seconds:0,milliseconds:0}).format("YYYY-MM-DD HH:mm:ss");this.dateCurrent=new Date(S),this.dateMinimum=new Date(S),this.dateReservation.patchValue(this.dateCurrent)}const me=ce()(Z.dateFin).set({hours:23,minutes:59,seconds:0,milliseconds:0}).format("YYYY-MM-DD HH:mm:ss");this.dateMaximum=new Date(me)}}return(te=je).\u0275fac=function(H){return new(H||te)},te.\u0275cmp=l.VBU({type:te,selectors:[["vplus-activite-horaire"]],hostBindings:function(H,Z){1&H&&l.bIt("resize",function(){return Z.windowResized()},!1,l.tSv)},inputs:{currentActivite:"currentActivite"},outputs:{onSelectEvent:"onSelectEvent"},decls:3,vars:1,consts:()=>{let $,H,Z,Re,Tt,P,me,S,M;return $="Date",H="Plage horaire ",Z="Fermer ",Re="R\xE9server ",Tt="Choisissez votre terrain",P="Confirmer ce terrain ",me="Disponible",S="R\xE9serv\xE9",M="Aucune plage horaire n'est actuellement disponible pour cette activit\xE9",[["picker",""],$,H,Z,Re,Tt,P,me,S,M,[1,"inline-checkbox-container"],["mat-button","","type","button",1,"margin-top-12",3,"class"],["appearance","fill",1,"width-220","date",3,"floatLabel"],["readonly","","tabindex","-1","autocomplete","off","matInput","",3,"formControl","min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"responsive-table-stroked"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell","",3,"hidden",4,"matHeaderCellDef"],["mat-cell","",3,"hidden",4,"matCellDef"],["matColumnDef","choixInstallationDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"horaire-row--expanded",4,"matRowDef","matRowDefColumns"],["mat-row","","class","choix-installation-row",3,"choix-installation-row--open",4,"matRowDef","matRowDefColumns","matRowDefWhen"],[1,"padding-40"],["mat-button","","type","button",1,"margin-top-12",3,"click"],[1,"standard-icon",3,"ngClass"],["mat-header-cell",""],["mat-cell",""],[1,"margin-auto"],["mat-header-cell","",3,"hidden"],["mat-cell","",3,"hidden"],["fill","outline",1,"ion-custom-button-standard","ion-cu
1stom-button-outline","ion-custom-table-button"],["fill","outline",1,"ion-custom-button-standard","ion-custom-button-outline","ion-custom-table-button",3,"click"],[1,"ion-custom-button-standard","ion-custom-button-full","ion-custom-table-button",3,"click"],[1,"choix-installation"],[1,"choix-installation-titre"],[1,"choix-installation-liste"],["type","button",1,"choix-installation-carte",3,"choix-installation-carte--selected","choix-installation-carte--indispo","disabled"],[1,"ion-custom-button-standard","ion-custom-button-full","ion-custom-table-button",3,"click","disabled"],["type","button",1,"choix-installation-carte",3,"click","disabled"],[1,"choix-installation-nom"],[1,"choix-installation-pastille"],[1,"choix-installation-nom-texte"],[1,"choix-installation-statut","choix-installation-statut--dispo"],[1,"choix-installation-statut","choix-installation-statut--indispo"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"choix-installation-row"],[3,"loadingFailed","message"],[1,"justify-center","margin-top-2"]]},template:function(H,Z){1&H&&(l.j41(0,"div"),l.DNE(1,Rn,26,16)(2,oi,3,0),l.k0s()),2&H&&(l.R7$(),l.vxM(1,Z.aucunePlageDisponible?2:1))},dependencies:[pe.Zl,pe.tL,pe.ji,pe.cC,pe.YV,pe.iL,pe.KS,pe.$R,pe.YZ,pe.NB,_t.fg,ie.rl,ie.yw,Ye.$z,Ie.Vh,Ie.bZ,Ie.bU,Qe.YU,a.me,a.BC,a.l_,Ue.Jm,De.N,ct.x,ft.X],styles:[".standard-icon[_ngcontent-%COMP%]{font-size:30px;font-weight:700}.date[_ngcontent-%COMP%]{transform:translateY(12px)}[_nghost-%COMP%] .mat-mdc-icon-button.mat-mdc-button-base, [_nghost-%COMP%] .mat-mdc-icon-button .mat-mdc-button-touch-target{width:20px!important}.mat-column-dateHeureDebut[_ngcontent-%COMP%], .mat-column-plageHoraire[_ngcontent-%COMP%], .mat-column-Reserver[_ngcontent-%COMP%]{width:33.33%}.mat-column-plageHoraire[_ngcontent-%COMP%]{text-align:center}.responsive-table-stroked[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] td.mat-mdc-cell.mat-column-dateHeureDebut[_ngcontent-%COMP%], .responsive-table-stroked[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] th.mat-mdc-header-cell.mat-column-dateHeureDebut[_ngcontent-%COMP%]{padding-left:18px}.responsive-table-stroked[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] td.mat-mdc-cell.mat-column-Reserver[_ngcontent-%COMP%], .responsive-table-stroked[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] th.mat-mdc-header-cell.mat-column-Reserver[_ngcontent-%COMP%]{text-align:right;padding-right:18px}.responsive-table-stroked[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] td.mat-mdc-cell.mat-column-Reserver[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%], .responsive-table-stroked[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] th.mat-mdc-header-cell.mat-column-Reserver[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin-inline:0}.responsive-table-stroked[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .choix-installation-row[_ngcontent-%COMP%] td.mat-mdc-cell[_ngcontent-%COMP%]{padding:0;border-bottom:none;background:#f7f8fa}.responsive-table-stroked[_ngcontent-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] button.choix-installation-carte[_ngcontent-%COMP%]{margin:0}.choix-installation-row[_ngcontent-%COMP%]{display:none}.choix-installation-row--open[_ngcontent-%COMP%]{display:table-row}.horaire-row--expanded[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:#eaf1fe;border-bottom:1px dashed #b9cdf3}.choix-installation[_ngcontent-%COMP%]{padding:20px 18px 24px}.choix-installation[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin-inline:0}.choix-installation-titre[_ngcontent-%COMP%]{margin:0 0 16px;font-weight:700;font-size:1.1rem}.choix-installation-liste[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-bottom:20px}.choix-installation-carte[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:16px;border:1px solid #e0e0e0;border-radius:12px;background:#fff;cursor:pointer;font:inherit;text-align:left;transition:border-color .15s ease,box-shadow .15s ease}
1.choix-installation-carte[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--ion-color-primary, #3880ff)}.choix-installation-carte--selected[_ngcontent-%COMP%]{border-color:var(--ion-color-primary, #3880ff);box-shadow:0 0 0 1px var(--ion-color-primary, #3880ff)}.choix-installation-carte--indispo[_ngcontent-%COMP%], .choix-installation-carte[_ngcontent-%COMP%]:disabled{background:#f5f5f5;cursor:not-allowed}.choix-installation-nom[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;width:100%;font-weight:700;color:#202124}.choix-installation-carte--indispo[_ngcontent-%COMP%] .choix-installation-nom[_ngcontent-%COMP%]{color:#9aa0a6}.choix-installation-nom-texte[_ngcontent-%COMP%]{min-width:0;overflow-wrap:anywhere}.choix-installation-pastille[_ngcontent-%COMP%]{width:10px;height:10px;margin-top:6px;border-radius:50%;background:#1e8e3e;flex-shrink:0}.choix-installation-carte--indispo[_ngcontent-%COMP%] .choix-installation-pastille[_ngcontent-%COMP%]{background:#bdc1c6}.choix-installation-statut[_ngcontent-%COMP%]{margin-top:auto;font-size:.8rem;font-weight:600;padding:3px 10px;border-radius:6px}.choix-installation-statut--dispo[_ngcontent-%COMP%]{color:#1e8e3e;background:#e6f4ea}.choix-installation-statut--indispo[_ngcontent-%COMP%]{color:#9aa0a6;background:#f1f3f4}"]}),je})();var Kn=g(84529);const Zn=["stepper"],si=["stepParticipants"],jn=(te,je)=>je.get("id").value,rn=(te,je)=>je.id,Hn=()=>[],Ci=(te,je)=>[te,!1,"dddd, DD/MM/yyyy",null,je];function F(te,je){if(1&te&&l.nrm(0,"vplus-loading-spinner",51),2&te){const $=l.XpG();l.Y8G("loadingFailed",$.dataLoadingFailed)}}function K(te,je){1&te&&l.nrm(0,"i",80)}function Y(te,je){1&te&&(l.j41(0,"mat-error"),l.pXf(1,20),l.k0s())}function be(te,je){1&te&&(l.j41(0,"mat-error"),l.pXf(1,21),l.k0s())}function At(te,je){1&te&&(l.j41(0,"mat-error"),l.pXf(1,22),l.k0s())}function Et(te,je){1&te&&(l.j41(0,"mat-error"),l.pXf(1,23),l.k0s())}function Xt(te,je){1&te&&(l.j41(0,"mat-error"),l.pXf(1,24),l.k0s())}function Bt(te,je){if(1&te){const $=l.RV6();l.j41(0,"mat-step",59)(1,"div")(2,"h2"),l.pXf(3,11),l.k0s()(),l.j41(4,"div",81)(5,"form",82)(6,"div")(7,"div",83)(8,"mat-form-field")(9,"mat-label"),l.pXf(10,12),l.k0s(),l.nrm(11,"input",84),l.j41(12,"mat-error"),l.pXf(13,13),l.k0s()(),l.j41(14,"mat-form-field")(15,"mat-label"),l.pXf(16,14),l.k0s(),l.nrm(17,"input",85),l.j41(18,"mat-error"),l.pXf(19,15),l.k0s()()(),l.j41(20,"div",83)(21,"mat-form-field")(22,"mat-label"),l.pXf(23,16),l.k0s(),l.nrm(24,"input",86),l.DNE(25,Y,2,0,"mat-error")(26,be,2,0,"mat-error")(27,At,2,0,"mat-error"),l.k0s(),l.j41(28,"mat-form-field")(29,"mat-label"),l.pXf(30,17),l.k0s(),l.nrm(31,"input",87),l.DNE(32,Et,2,0,"mat-error")(33,Xt,2,0,"mat-error"),l.k0s()()()()(),l.j41(34,"div",63)(35,"button",64),l.bIt("click",function(){l.eBV($);const Z=l.XpG(2);return l.Njj(Z.back())}),l.pXf(36,18),l.k0s(),l.j41(37,"button",70),l.bIt("click",function(){l.eBV($);const Z=l.XpG(2);return l.Njj(Z.nextToPlages())}),l.pXf(38,19),l.k0s()()()}if(2&te){const $=l.XpG(2);l.Y8G("stepControl",$.citoyenSansCompteForm)("formGroup",$.citoyenSansCompteForm),l.R7$(5),l.Y8G("formGroup",$.citoyenSansCompteForm),l.R7$(20),l.vxM(25,null!=$.citoyenSansCompteForm.controls.courriel.errors&&$.citoyenSansCompteForm.controls.courriel.errors.required?25:-1),l.R7$(),l.vxM(26,$.citoyenSansCompteForm.controls.courriel.hasError("invalidEmail")?26:-1),l.R7$(),l.vxM(27,$.citoyenSansCompteForm.controls.courriel.hasError("courrielUtilise")?27:-1),l.R7$(4),l.Y8G("imask",$.appConfig.appConfig.telMaskObjet)("unmask",!0),l.R7$(),l.vxM(32,null!=$.citoyenSansCompteForm.controls.telephone.errors&&$.citoyenSansCompteForm.controls.telephone.errors.required?32:-1),l.R7$(),l.vxM(33,null!=$.citoyenSansCompteForm.controls.telephone.errors&&$.citoyenSansCompteForm.controls.telephone.errors.pattern?33:-1)}}function kn(te,je){if(1&te&&(l.j41(0,"p"),l.EFF(1),l.nI1(2,"ordinal"),l.j41(3,"span"),l.pXf(4,27),l.k0s(),l.EFF(5),l.nI1(6,"vplusCurrency"),l.j41(7,"span"),l.pXf(8,28),l.k0s()()),2&te){const $=l.XpG(2).$implicit,H=l.XpG(2).$implicit,Z=l.XpG(2);l.R7$(),l.SpI("",l.i5U(2,2,$.ordre,Z.isFr),"\xa0"),l.R7$(4),l.SpI("\xa0",l.i5U(6,5,H.get("tarif").value-$.montantRabais,Z.localisation),"")}}function Tn(te,je){if(1&te&&(l.j41(0,"p"),l.EFF(1),l.nI1(2,"ordinal"),l.j41(3,"span"),l.pXf(4,29),l.k0s(),l.EFF(5),l.nI1(6,"vplusCurrency"),l.j41(7,"span"),l.pXf(8,30),l.k0s()()),2&te){const $=l.XpG(2).$implicit,H=l.XpG(2).$implicit,Z=l.XpG(2);l.R7$(),l.SpI("",l.i5U(2,2,$.ordre,Z.isFr),"\xa0"),l.R7$(4),l.SpI("\xa0",l.i5U(6,5,H.get("tarif").value-$.montantRabais,Z.localisation),"")}}function gn(te,je){if(1&te&&l.DNE(0,kn,9,8,"p")(1,Tn,9,8),2&te){const $=l.XpG();l.vxM(0,$.$index!==$.$count-1?0:1)}}function ei(te,je){1&te&&l.DNE(0,gn,2,1),2&te&&l.vxM(0,0!==je.$index?0:-1)}function ci(te,je){if(1&te&&(l.j41(0,"div",91)(1,"h3"),l.pXf(2,25),l.k0s(),l.Z7z(3,ei,1,1,null,null,rn),l.j41(5,"p"),l.pXf(6,26),l.k0s()()),2&te){let $;const H=l.XpG().$implicit;l.R7$(3),l.Dyx(null!==($=H.get("paliersRabaisFamilialOptions").value)&&void 0!==$?$:l.lJ4(0,Hn))}}function gi(te,je){if(1&te&&(l.j41(0,"mat-error",100)(1,"span"),l.EFF(2),l.k0s()()),2&te){const $=l.XpG(2).$implicit,H=l.XpG(2);l.R7$(2),l.E5c("",H.EnumLabelsErreurQte.QteAdmTropFaible," ",$.get("min").value," ",1===$.get("min").value?H.EnumLabelsErreurQte.QteUneRsv:H.EnumLabelsErreurQte.QteRsv,"")}}function di(te,je){if(1&te&&(l.j41(0,"mat-error",100)(1,"span"),l.EFF(2),l.k0s()()),2&te){const $=l.XpG(2).$implicit,H=l.XpG(2);l.R7$(2),l.E5c("",H.EnumLabelsErreurQte.QteAdmTropElevee," ",$.get("max").value," ",1===$.get("max").value?H.EnumLabelsErreurQte.QteUneRsv:H.EnumLabelsErreurQte.QteRsv,"")}}function I(te,je){if(1&te&&(l.j41(0,"mat-error",100)(1,"span"),l.EFF(2),l.k0s()()),2&te){const $=l.XpG(2).$implicit,H=l.XpG(2);l.R7$(2),l.SjE("",H.EnumLabelsErreurQte.QteAdmTropFaible," ",$.get("min").value," ",H.EnumLabelsErreurQte.QteMax," ",$.get("max").value," ",H.EnumLabelsErreurQte.QteRsv,"")}}function T(te,je){if(1&te&&(l.j41(0,"mat-error",100)(1,"span"),l.EFF(2),l.k0s()()),2&te){const $=l.XpG(2).$implicit,H=l.XpG(2);l.R7$(2),l.E5c("",H.EnumLabelsErreurQte.QtesEgales," ",$.get("min").value," ",1===$.get("min").value?H.EnumLabelsErreurQte.QteUneRsv:H.EnumLabelsErreurQte.QteAchat,"")}}function L(te,je){if(1&te&&(l.j41(0,"div",99),l.DNE(1,gi,3,3,"mat-error",100)(2,di,3,3,"mat-error",100)(3,I,3,5,"mat-error",100)(4,T,3,3,"mat-error",100),l.k0s()),2&te){const $=l.XpG().$implicit,H=l.XpG(2);l.R7$(),l.vxM(1,$.hasError(H.EnumTypeErreurQte.QteTropFaible)&&$.touched?1:-1),l.R7$(),l.vxM(2,$.hasError(H.EnumTypeErreurQte.QteTropElevee)&&$.touched?2:-1),l.R7$(),l.vxM(3,$.hasError(H.EnumTypeErreurQte.QteHorsLimites)&&$.touched?3:-1),l.R7$(),l.vxM(4,$.hasError(H.EnumTypeErreurQte.QtesEgales)&&$.touched?4:-1)}}function j(te,je){if(1&te){const $=l.RV6();l.j41(0,"div",67)(1,"div",88)(2,"div",89)(3,"div")(4,"span",90),l.EFF(5),l.k0s(),l.DNE(6,ci,7,1,"div",91),l.k0s(),l.j41(7,"div",92)(8,"button",93),l.bIt("click",function(){const Z=l.eBV($).$implicit,Re=l.XpG(2);return l.Njj(Re.decreaseQte(Z))}),l.nrm(9,"i",94),l.k0s(),l.j41(10,"input",95),l.bIt("blur",function(){const Z=l.eBV($).$implicit,Re=l.XpG(2);return l.Njj(Re.onBlurQte(Z))}),l.k0s(),l.j41(11,"button",96),l.bIt("click",function(){const Z=l.eBV($).$implicit,Re=l.XpG(2);return l.Njj(Re.increaseQte(Z))}),l.nrm(12,"i",97),l.k0s()(),l.j41(13,"span",98),l.EFF(14),l.k0s()(),l.DNE(15,L,5,4,"div",99),l.k0s()()}if(2&te){const $=je.$implicit,H=je.$index,Z=l.XpG(2);l.Y8G("formGroupName",H),l.R7$(5),l.JRh($.get("trfOptNom").value?$.get("trfOptNom").value:$.get("ftbNom").value),l.R7$(),l.vxM(6,$.get("isRabaisFamilial").value&&!Z.isInvite?6:-1),l.R7$(2),l.Y8G("disabled","0"===$.get("qte").value),l.R7$(2),l.Y8G("imask",Z.maskQte),l.R7$(4),l.SpI(" ",$.get("tarifFormatted").value,""),l.R7$(),l.vxM(15,($.hasError(Z.EnumTypeErreurQte.QteHorsLimites)||$.hasError(Z.EnumTypeErreurQte.QteTropElevee)||$.hasError(Z.EnumTypeErreurQte.QteTropFaible)||$.hasError(Z.EnumTypeErreurQte.QtesEgales))&&$.touched?15:-1)}}function se(te,je){1&te&&(l.j41(0,"mat-error",68),l.pXf(1,31),l.k0s())}function he(te,je){if(1&te&&(l.j41(0,"mat-error",101)(1,"span"),l.EFF(2),l.k0s()()),2&te){const $=l.XpG(3);l.R7$(2),l.E5c("",$.EnumLabelsErreurQte.QteTropFaible," ",$.currentActivite.inscriptionEntree.min," ",1===$.currentActivite.inscriptionEntree.min?$.EnumLabelsErreurQte.QteUneRsv:$.EnumLabelsErreurQte.QteRsv,"")}}function Ee(te,je){if(1&te&&(l.j41(0,"mat-error",101)(1,"span")(2,"span"),l.EFF(3),l.k0s()()()),2&te){const $=l.XpG(3);l.R7$(3),l.E5c("",$.EnumLabelsErreurQte.QteTropElevee," ",$.currentActivite.inscriptionEntree.max," ",1===$.currentActivite.inscriptionEntree.max?$.EnumLabelsErreurQte.QteUneRsv:$.EnumLabelsErreurQte.QteRsv,"")}}function ze(te,je){if(1&te&&(l.j41(0,"mat-error",101)(1,"span"),l.EFF(2),l.k0s()()),2&te){const $=l.XpG(3);l.R7$(2),l.SjE("",$.EnumLabelsErreurQte.QteTropFaible," ",$.currentActivite.inscriptionEntree.min," ",$.EnumLabelsErreurQte.QteMax," ",$.currentActivite.inscriptionEntree.max," ",$.EnumLabelsErreurQte.QteRsv,"")}}function Be(te,je){if(1&te&&(l.j41(0,"mat-error",101)(1,"span"),l.EFF(2),l.k0s()()),2&te){const $=l.XpG(3);l.R7$(2),l.E5c("",$.EnumLabelsErreurQte.QtesEgales," ",$.currentActivite.inscriptionEntree.min," ",1===$.currentActivite.inscriptionEntree.min?$.EnumLabelsErreurQte.QteUneRsv:$.EnumLabelsErreurQte.QteRsv,"")}}function tt(te,je){if(1&te&&(l.j41(0,"div",69),l.DNE(1,he,3,3,"mat-error",101)(2,Ee,4,3,"mat-error",101)(3,ze,3,5,"mat-error",101)(4,Be,3,3,"mat-error",101),l.k0s()),2&te){const $=l.XpG(2);l.R7$(),l.vxM(1,$.tarificationFA.hasError($.EnumTypeErreurQte.QteTropFaible)&&$.tarificationFA.touched?1:-1),l.R7$(),l.vxM(2,$.tarificationFA.hasError($.EnumTypeErreurQte.QteTropElevee)&&$.tarifications.touched?2:-1),l.R7$(),l.vxM(3,$.tarificationFA.hasError($.EnumTypeErreurQte.QteHorsLimites)&&$.tarificationFA.touched?3:-1),l.R7$(),l.vxM(4,$.tarificationFA.hasError($.EnumTypeErreurQte.QtesEgales)&&$.tarificationFA.touched?4:-1)}}
1function Mt(te,je){if(1&te){const $=l.RV6();l.j41(0,"mat-step",74,2)(2,"div",102)(3,"h2",103),l.pXf(4,32),l.k0s()(),l.nrm(5,"vplus-activite-articles-supplementaires-selecteur",104),l.j41(6,"div",63)(7,"button",73),l.pXf(8,33),l.k0s(),l.j41(9,"button",70),l.bIt("click",function(){l.eBV($);const Z=l.XpG(2);return l.Njj(Z.nextFromArticles())}),l.j41(10,"span"),l.pXf(11,34),l.k0s()()()()}if(2&te){const $=l.XpG(2);l.Y8G("stepControl",$.formStepArticles)("formGroup",$.formStepArticles),l.R7$(5),l.Y8G("articlesFA",$.articlesFA)}}function Lt(te,je){if(1&te){const $=l.RV6();l.j41(0,"p",105),l.pXf(1,35),l.k0s(),l.j41(2,"a",106),l.bIt("click",function(){l.eBV($);const Z=l.XpG(2);return l.Njj(Z.displayDescription(Z.currentActivite.politiqueRemboursement))}),l.pXf(3,36),l.k0s(),l.EFF(4,". ")}}function Ut(te,je){if(1&te){const $=l.RV6();l.j41(0,"div",107)(1,"h3"),l.pXf(2,37),l.k0s(),l.j41(3,"p")(4,"span"),l.pXf(5,38),l.k0s(),l.j41(6,"span",108),l.EFF(7),l.k0s(),l.j41(8,"span"),l.pXf(9,39),l.k0s()(),l.j41(10,"div",109)(11,"ion-button",110),l.bIt("click",function(){l.eBV($);const Z=l.XpG(3);return l.Njj(Z.backStep())}),l.pXf(12,40),l.k0s(),l.j41(13,"ion-button",111),l.bIt("click",function(){l.eBV($);const Z=l.XpG(3);return l.Njj(Z.navigateMesActivites())}),l.EFF(14),l.k0s()()()}if(2&te){const $=l.XpG(3);l.R7$(7),l.JRh($.currentReservation.plageHoraire),l.R7$(7),l.SpI(" ",$.labels.txtBtn," ")}}function gt(te,je){if(1&te){const $=l.RV6();l.j41(0,"div",107)(1,"h3"),l.pXf(2,41),l.k0s(),l.j41(3,"p")(4,"span"),l.pXf(5,42),l.k0s(),l.j41(6,"span",108),l.EFF(7),l.nI1(8,"vplusMoment"),l.k0s(),l.j41(9,"span"),l.pXf(10,43),l.k0s()(),l.j41(11,"div",109)(12,"ion-button",110),l.bIt("click",function(){l.eBV($);const Z=l.XpG(3);return l.Njj(Z.backStep())}),l.pXf(13,44),l.k0s(),l.j41(14,"ion-button",111),l.bIt("click",function(){l.eBV($);const Z=l.XpG(3);return l.Njj(Z.navigateMesActivites())}),l.EFF(15),l.k0s()()()}if(2&te){const $=l.XpG(3);l.R7$(7),l.JRh(l.iJd(8,2,l.l_i(8,Ci,$.currentReservation.dateHeureDebut,$.timezone))),l.R7$(8),l.SpI(" ",$.labels.txtBtn," ")}}function fn(te,je){if(1&te){const $=l.RV6();l.j41(0,"div",107)(1,"h3"),l.pXf(2,45),l.k0s(),l.j41(3,"p")(4,"span"),l.pXf(5,46),l.k0s(),l.j41(6,"span"),l.pXf(7,47),l.k0s()(),l.j41(8,"div",109)(9,"ion-button",110),l.bIt("click",function(){l.eBV($);const Z=l.XpG(3);return l.Njj(Z.backStep())}),l.pXf(10,48),l.k0s(),l.j41(11,"ion-button",111),l.bIt("click",function(){l.eBV($);const Z=l.XpG(3);return l.Njj(Z.navigateMesActivites())}),l.EFF(12),l.k0s()()()}if(2&te){const $=l.XpG(3);l.R7$(12),l.SpI(" ",$.labels.txtBtn," ")}}function zn(te,je){if(1&te&&(l.j41(0,"div",79),l.DNE(1,Ut,15,2,"div",107)(2,gt,16,11)(3,fn,13,1),l.k0s()),2&te){const $=l.XpG(2);l.R7$(),l.vxM(1,$.currentReservation.horaireDispo===$.EnumErreurDisponibilite.PlageIndisponible?1:$.currentReservation.horaireDispo===$.EnumErreurDisponibilite.MaxJour?2:$.currentReservation.horaireDispo===$.EnumErreurDisponibilite.MaxTotal?3:-1)}}function dn(te,je){if(1&te){const $=l.RV6();l.j41(0,"div",52)(1,"vplus-req-toolbar",53),l.bIt("back",function(){l.eBV($);const Z=l.XpG();return l.Njj(Z.backToActivite())}),l.k0s(),l.j41(2,"div",54)(3,"div",55)(4,"div",56)(5,"mat-horizontal-stepper",57,0),l.bIt("selectionChange",function(Z){l.eBV($);const Re=l.XpG();return l.Njj(Re.onStepChange(Z))}),l.DNE(7,K,1,0,"ng-template",58)(8,Bt,39,10,"mat-step",59),l.j41(9,"mat-step",60)(10,"div")(11,"h2"),l.pXf(12,3),l.k0s()(),l.j41(13,"div",61)(14,"vplus-activite-horaire",62),l.bIt("onSelectEvent",function(Z){l.eBV($);const Re=l.XpG();return l.Njj(Re.onSelectEvent(Z))})("onDataLoaded",function(Z){l.eBV($);const Re=l.XpG();return l.Njj(Re.onDataLoaded(Z))}),l.k0s()(),l.j41(15,"div",63)(16,"button",64),l.bIt("click",function(){l.eBV($);const Z=l.XpG();return l.Njj(Z.isInvite?Z.onStepperBack():Z.back())}),l.pXf(17,4),l.k0s()()(),l.j41(18,"mat-step",65)(19,"div")(20,"h2"),l.pXf(21,5),l.k0s()(),l.j41(22,"div",66),l.Z7z(23,j,16,7,"div",67,jn),l.k0s(),l.DNE(25,se,2,0,"mat-error",68)(26,tt,5,4,"div",69),l.j41(27,"div",63)(28,"button",64),l.bIt("click",function(){l.eBV($);const Z=l.XpG();return l.Njj(Z.onStepperBack())}),l.pXf(29,6),l.k0s(),l.j41(30,"button",70),l.bIt("click",function(){l.eBV($);const Z=l.XpG();return l.Njj(Z.nextFromTarifications())}),l.pXf(31,7),l.k0s()()(),l.j41(32,"mat-step",71,1),l.nrm(34,"vplus-activite-selection-
1participants",72),l.j41(35,"div",63)(36,"button",73),l.pXf(37,8),l.k0s(),l.j41(38,"button",70),l.bIt("click",function(){l.eBV($);const Z=l.XpG();return l.Njj(Z.nextFromParticipants())}),l.j41(39,"span"),l.pXf(40,9),l.k0s()()()(),l.DNE(41,Mt,12,3,"mat-step",74),l.j41(42,"mat-step",75)(43,"vplus-square-card-payment",76),l.bIt("onLaunchedPayment",function(){l.eBV($);const Z=l.XpG();return l.Njj(Z.updateOrderLaunched(!0))})("onPreparedPayment",function(Z){l.eBV($);const Re=l.XpG();return l.Njj(Re.order(Z))})("onErrorPayment",function(){l.eBV($);const Z=l.XpG();return l.Njj(Z.updateOrderLaunched(!1))})("onCardReady",function(){l.eBV($);const Z=l.XpG();return l.Njj(Z.onCardReady())})("onSquareDeconnecte",function(Z){l.eBV($);const Re=l.XpG();return l.Njj(Re.squareDeconnecte=Z)}),l.k0s(),l.DNE(44,Lt,5,0),l.j41(45,"div",63)(46,"button",64),l.bIt("click",function(){l.eBV($);const Z=l.XpG();return l.Njj(Z.onStepperBack())}),l.pXf(47,10),l.k0s(),l.j41(48,"button",77),l.nrm(49,"vplus-button-icon",78),l.j41(50,"span"),l.EFF(51),l.k0s()()()()()()()()(),l.DNE(52,zn,4,1,"div",79)}if(2&te){const $=l.XpG();l.Y8G("hidden",$.step===$.EnumStep.Invalide),l.R7$(),l.Y8G("title",$.activityNom),l.R7$(7),l.vxM(8,$.isInvite?8:-1),l.R7$(6),l.Y8G("currentActivite",$.currentActivite),l.R7$(4),l.Y8G("stepControl",$.formStepTarifications)("formGroup",$.formStepTarifications),l.R7$(5),l.Dyx($.tarifications.controls),l.R7$(2),l.vxM(25,$.tarifications.hasError("required")&&$.tarifications.touched?25:-1),l.R7$(),l.vxM(26,($.tarificationFA.hasError($.EnumTypeErreurQte.QteTropFaible)||$.tarificationFA.hasError($.EnumTypeErreurQte.QteTropElevee)||$.tarificationFA.hasError($.EnumTypeErreurQte.QteHorsLimites)||$.tarificationFA.hasError($.EnumTypeErreurQte.QtesEgales))&&$.tarificationFA.touched?26:-1),l.R7$(6),l.Y8G("stepControl",$.formStepParticipants)("formGroup",$.formStepParticipants),l.R7$(2),l.Y8G("tarificationFA",$.tarificationFA)("participantFA",$.participantFA)("user",$.user)("canOrderForCurrentUser",$.canOrderForCurrentUser)("famillesCurrentUser",$.famillesCurrentUser)("familleMembreHashList",$.familleMembreHashList)("isInvite",$.isInvite)("ageTrfs",$.ageTrfs)("contexte",$.EnumTypeInscriptionCode.Reservation)("isAllowedInscWithRestr",$.currentActivite.isAllowedInscWithRestr),l.R7$(7),l.vxM(41,$.hasArticlesSupp?41:-1),l.R7$(),l.Y8G("completed",!1),l.R7$(),l.Y8G("items",$.itemsPayment)("isRequiredFraisService",null==$.currentReservation?null:$.currentReservation.isRequiredFraisService)("activityNom",$.activityNom)("unrequiredTaxes",null==$.currentReservation?null:$.currentReservation.unrequiredTaxes)("orderLaunched",$.orderLaunched)("user",$.citoyenSansCompteForm.value)("optionsVersement",l.lJ4(37,Hn))("isAllowedInscWithRestr",$.isAllowedInscWithRestr)("eventDate",$.eventDate)("installationsBySite",$.installationsBySite),l.R7$(),l.vxM(44,$.currentActivite.politiqueRemboursement.id?44:-1),l.R7$(4),l.Y8G("disabled",$.squareDeconnecte.deconnecte?$.squareDeconnecte.sectionVide:!$.isCardReady&&$.requiredCheckout),l.R7$(),l.Y8G("isSubmitting",$.orderLaunched),l.R7$(2),l.JRh($.requiredCheckout?$.labels.payerMntn:$.labels.passerCommande),l.R7$(),l.vxM(52,$.step===$.EnumStep.Invalide?52:-1)}}var Wt=function(te){return te[te.Achat=1]="Achat",te[te.Invalide=-1]="Invalide",te}(Wt||{}),En=function(te){return te[te.PlageIndisponible=-1]="PlageIndisponible",te[te.MaxJour=-2]="MaxJour",te[te.MaxTotal=-3]="MaxTotal",te}(En||{});let vn=(()=>{var te;class je{constructor(){var H;this.store=(0,l.WQX)(en.il),this.activiteService=(0,l.WQX)(ge.Z),this.route=(0,l.WQX)(Ct.Ix),this.localisationService=(0,l.WQX)(He.A),this.location=(0,l.WQX)(Qe.hb),this.formBuilder=(0,l.WQX)(a.ok),this.appConfig=(0,l.WQX)(Fe.o),this.asyncCourrielValidators=(0,l.WQX)(ot.H),this.utilisateurService=(0,l.WQX)(zt.$),this.destroyRef=(0,l.WQX)(l.abz),this.appMetaTags=(0,l.WQX)(xe.W),this.dialog=(0,l.WQX)(We.bZ),this.actions$=(0,l.WQX)(O.En),this.dataLoaded=!1,this.dataLoadingFailed=!1,this.defaultLocalisation=this.appConfig.appConfig.localisationDefaut,this.maskQte={mask:"000000"},this.isInvite=!(null===(H=this.route.routerState.snapshot.root.queryParams)||void 0===H||!H.invite),this.timezone=this.appConfig.appConfig.timeZone,this.EnumStep=Wt,this.step=Wt.Achat,this.EnumErreurDisponibilite=En,this.selectIsSearchHeaderVisible$=this.store.select(R.selectIsSearchHeaderVisible),this.canOrderForCurrentUser=!0,this.EnumTypeInscriptionCode=ve.bO,this.hasArticlesSupp=!1,this.itemsPayment=[],this.famillesCurrentUser=[],this.familleMembreHashList={},this.localisation=this.localisationService.getCurrentLocalisation(),this.currencyPipe=new Ce.aJo,this.formatDate="YYYY-MM-DD HH:mm:ss",this.timezoneLocal=y().tz.guess(),this.installationsBySite=[],this.idempotencyKey=(0,Ce.SiN)(),this.isCardReady=!1,this.isAllowedInscWithRestr=!1,this.acces={},this.accesIds={},this.ageTrfs=new Map,this.EnumTypeErreurQte=Ke.Hy,this.EnumLabelsErreurQte=Ke.oO,this.labels={payerMntn:"Payer maintenant",passerCommande:"Passer la commande",txtBtn:"Retour aux activit\xE9s"},this.squareDeconnecte={deconnecte:!1,sectionVide:!1}}ngOnInit(){y().locale(this.localisationService.getCurrentLocalisation()),this.isFr=this.localisationService.getCurrentLocalisation()===Ke.fi.FR,this.txtBtn=this.isInvite?"Retour aux activit\xE9s":"Retour \xE0 mes activit\xE9s",this.citoyenSansCompteForm=this.formBuilder.group({perId:new a.MJ((0,Ce.SiN)()),prenom:new a.MJ(null,[a.k0.required,(0,Ce.zl_)()]),nom:new a.MJ(null,[a.k0.required,(0,Ce.zl_)()]),courriel:new a.MJ(null,[(0,Ce.Bjz)()],this.asyncCourrielValidators.validateCourriel()),telephone:new a.MJ(null,[a.k0.required,a.k0.pattern(this.appConfig.appConfig.telPattern)])}),(0,qe.z)([this.store.select(R.selectCurrentUser),this.store.select(A.FB)]).pipe((0,rt.n)(([H,Z])=>null!=H&&H.perId?this.utilisateurService.getFamilleByPerId(H.perId).pipe((0,nt.T)(Re=>({user:H,activite:Z,familles:Re}))):(0,vt.of)({user:H,activite:Z,familles:[]})),(0,Je.pQ)(this.destroyRef)).subscribe(({user:H,activite:Z,familles:Re})=>{var Tt,P,me,S,M,D,_e;this.user=H;const $e=JSON.parse(null!==(Tt=localStorage.getItem("activite"))&&void 0!==Tt?Tt:"{}");this.currentActivite=!Z&&Object.keys($e).length>0?$e:Z;const Ge=JSON.parse(null!==(P=localStorage.getItem("reservationTarifications"))&&void 0!==P?P:"[]");var we;(null===(me=this.currentActivite)||void 0===me||null===(me=me.tarifications)||void 0===me?void 0:me.length)>0?localStorage.setItem("reservationTarifications",JSON.stringify(this.currentActivite.tarifications)):Ge.length>0&&(this.currentActivite.tarifications=Ge),this.activityNom=(null===(S=this.currentActivite.localisations)||void 0===S||null===(S=S.find(q=>q.lclzTag===(this.isFr?Ke.fi.FR:Ke.fi.EN)))||void 0===S?void 0:S.nom)||(null===(M=this.currentActivite.localisations)||void 0===M||null===(M=M.find(q=>q.nom))||void 0===M?void 0:M.nom)||"",(null===(D=this.currentActivite.tarifications)||void 0===D?void 0:D.length)>0&&this.currentActivite.tarifications.forEach(q=>{var mt,kt;q.tarifFormatted=this.currencyPipe.transform(q.tarif,this.localisation),q.fteId=(0,Ce.SiN)(),q.acces=(0,Ce.NzR)(q.acces,this.localisationService.getCurrentLocalisation(),this.defaultLocalisation),this.accesIds[q.id]=q.acces.map(Zt=>
1Zt.id),this.ageTrfs.set(q.id,[null!==(mt=q.ageMin)&&void 0!==mt?mt:null,null!==(kt=q.ageMax)&&void 0!==kt?kt:null,null==q?void 0:q.dateMinRef,null==q?void 0:q.dateMaxRef])}),this.hasArticlesSupp=this.currentActivite.isConfigArticlesSupp&&this.currentActivite.articlesSupp.length>0,this.famillesCurrentUser=(Re||[]).filter(q=>q.membres.filter(mt=>{var kt;return mt.perId!==(null===(kt=this.user)||void 0===kt?void 0:kt.perId)}).length>0),this.famillesCurrentUser.sort((q,mt)=>q.nom.trim().localeCompare(mt.nom.trim())),this.famillesCurrentUser.forEach(q=>{this.familleMembreHashList[q.id]=q.membres.filter(mt=>{var kt;return mt.perId!==(null===(kt=this.user)||void 0===kt?void 0:kt.perId)})}),null!==(_e=this.user)&&void 0!==_e&&_e.perId&&(this.currentReservation={...this.currentReservation,requerantPerId:this.user.perId}),this.initForm(),this.isInvite||null===(we=this.stepper)||void 0===we||we.reset(),this.dataLoaded=!0}),this.actions$.pipe((0,O.gp)(x.En.addChildFamilySuccess),(0,Je.pQ)(this.destroyRef),(0,rt.n)(()=>this.utilisateurService.getFamilleByPerId(this.user.perId))).subscribe(H=>{const Z=H.filter(Re=>Re.membres.some(Tt=>Tt.perId!==this.user.perId)).sort((Re,Tt)=>Re.nom.trim().localeCompare(Tt.nom.trim()));this.famillesCurrentUser.push(...Z),this.famillesCurrentUser.forEach(Re=>{this.familleMembreHashList[Re.id]=Re.membres.filter(Tt=>Tt.perId!==this.user.perId)})})}displayDescription(H){this.dialog.open(dt.V,{data:{title:"POLITIQUE DE REMBOURSEMENT",htmlContent:H.description,understandAction:!0},width:Ke.Uq.Medium})}onContentClick(){this.store.dispatch(R.Actions.setIsSearchHeaderVisible({payload:!1}))}nextToPlages(){this.citoyenSansCompteForm.invalid?this.citoyenSansCompteForm.markAllAsTouched():(this.utilisateurService.getInvite(this.citoyenSansCompteForm.get("courriel").value).pipe((0,Je.pQ)(this.destroyRef)).subscribe(H=>{var Z;const Re=this.citoyenSansCompteForm.value,Tt=null!==(Z=null==H?void 0:H.perId)&&void 0!==Z?Z:Re.perId;this.user={...this.citoyenSansCompteForm.value,perId:Tt};const P=new Ae.YS;P.perId=Tt,P.courriel=Re.courriel,P.nomComplet=`${Re.prenom} ${Re.nom}`,this.currentReservation={...this.currentReservation,requerantPerId:Tt,participants:[P],requerantInvite:this.isInvite?{prenom:Re.prenom,nom:Re.nom,courriel:Re.courriel,telephone:Re.telephone}:null}}),this.stepper.next())}initForm(){var H,Z;this.formStepTarifications=this.formBuilder.group({tarifications:new a.Yp([],[(0,U.YK)(),(0,Ce.UW_)(null===(H=this.currentActivite)||void 0===H||null===(H=H.inscriptionEntree)||void 0===H?void 0:H.min,null===(Z=this.currentActivite)||void 0===Z||null===(Z=Z.inscriptionEntree)||void 0===Z?void 0:Z.max)])}),this.tarificationFA=this.formStepTarifications.get("tarifications"),this.tarificationFA.setDefaultControlBuilder(()=>(0,Ce.nqI)(this.formBuilder)),this.tarificationFA.patchValue(this.currentActivite.tarifications),this.formStepParticipants=this.formBuilder.group({participants:new a.Yp([])}),this.participantFA=this.formStepParticipants.get("participants"),this.participantFA.setDefaultControlBuilder(this.createMembreFormControl.bind(this)),this.formStepArticles=this.formBuilder.group({articlesSupp:new a.Yp([])}),this.articlesFA=this.formStepArticles.get("articlesSupp"),this.articlesFA.setDefaultControlBuilder(()=>(0,Ce.eqW)(this.formBuilder)),this.articlesFA.patchValue(this.currentActivite.articlesSupp)}createMembreFormControl(){const H=(0,U.cf)(this.formBuilder),Z=[(0,U.z3)(this.famillesCurrentUser,this.isInvite)];return this.currentActivite.isAllowedInscWithRestr||Z.push((0,U.uc)(this.accesIds,this.isInvite),(0,U._d)(this.tarificationFA,this.isInvite),(0,Ce.CBP)(this.ageTrfs,this.isInvite)),H.addValidators(Z),H.updateValueAndValidity({emitEvent:!1}),H}get tarifications(){return this.formStepTarifications.get("tarifications")}nextFromParticipants(){if(this.formStepParticipants.invalid)return this.formStepParticipants.markAllAsTouched(),void this.store.dispatch(new R.Actions.ShowSnackBar("La commande ne peut pas \xEAtre effectu\xE9e car elle contient des \xE9l\xE9ments invalides",R.EnumSnackBarType.Echec));const H=this.tarificationFA.value.filter(Tt=>Tt.qte>0),Z=this.articlesFA.value.filter(Tt=>Tt.qte>0),Re=H.map(Tt=>Tt.tarif).reduce((Tt,P)=>Tt+P)+Z.map(Tt=>Tt.prix).reduce((Tt,P)=>Tt+P,0);this.requiredCheckout=0!==parseFloat(Re),this.currentActivite.isAllowedInscWithRestr&&(this.isAllowedInscWithRestr=this.participantFA.controls.some(Tt=>{var P;return!(null!==(P=Tt.get("isAllRestrictionsRespected"))&&void 0!==P&&P.value)})),this.stepper.next()}nextFromArticles(H=!0){const Z=this.tarificationFA.value.filter(P=>P.qte>0),Re=this.articlesFA.value.filter(P=>P.qte>0),Tt=Z.map(P=>P.tarif).reduce((P,me)=>P+me)+Re.map(P=>P.prix).reduce((P,me)=>P+me,0);this.requiredCheckout=0!==parseFloat(Tt),this.processFactureItemsCheckout(Z,Re),H&&this.stepper.next()}onStepChange(H){H.selectedIndex===(this.isInvite?4:3)&&!this.hasArticlesSupp&&this.nextFromArticles(!1)}increaseQte(H){(0,Ce.fKT)(H)}decreaseQte(H){(0,Ce.XOW)(H)}onBlurQte(H){(0,Ce.T6x)(H)}back(){this.location.back()}onStepperBack(){this.stepper.previous()}onCardReady(){this.isCardReady=!0}nextFromTarifications(){this.formStepTarifications.get("tarifications").invalid?this.formStepTarifications.markAllAsTouched():(this.stepParticipants.reset(),this.participantsComponent.generateParticipants(),setTimeout(()=>{this.stepper.next()}))}processFactureItemsCheckout(H,Z){const Re=H.map(P=>{var me;return{id:P.id,nom:null!==(me=P.trfOptNom)&&void 0!==me?me:P.ftbN
1om,prix:"string"==typeof P.tarif?parseFloat(P.tarif):P.tarif,acces:P.acces,prixFormatted:P.tarifFormatted,qte:P.qte,total:e()(P.tarif*P.qte,2),totalWithRabais:null,membreWithRabais:null}}),Tt=Z.map(P=>(0,Ce.$iX)(P,this.localisation));this.itemsPayment=[...Re,...Tt],this.itemsPayment.forEach(P=>{P.totalWithRabais&&(P.totalWithRabaisFormatted=this.currencyPipe.transform(P.totalWithRabais,this.localisation)),P.total&&(P.totalFormatted=this.currencyPipe.transform(P.total,this.localisation))})}backToActivite(){this.store.dispatch(d.ri({payload:null})),this.route.navigateByUrl("/activite")}backStep(){this.step===Wt.Invalide&&(this.step=Wt.Achat)}onDataLoaded(H){this.dataLoaded=H,this.dataLoadingFailed=!H}updateOrderLaunched(H){this.orderLaunched=H}order(H){const Z=this.tarificationFA.value.filter(M=>M.qte>0),Re=this.articlesFA.value.filter(M=>M.qte>0),Tt=Z.map(M=>({id:M.fteId,facturableNom:M.ftbNom,facturableId:M.ftbId,montantFinal:M.tarif,qte:M.qte,totalWithRabais:null,total:e()(M.tarif*M.qte,2),membreWithRabais:null})),P=(0,Ce.HyN)(Re,this.localisation);H.paymentBody&&(H.paymentBody.idempotencyKey=this.idempotencyKey);const me={actId:this.currentReservation.eveCatId,eveActId:this.currentReservation.eveActId,instId:this.currentReservation.installationId,dateHeureDebut:this.formatHeureLocale(this.currentReservation.dateHeureDebut),dateHeureFin:this.formatHeureLocale(this.currentReservation.dateHeureFin),enregistrements:this.participantFA.value,citoyenRequerant:{id:this.user.perId,isInvite:this.isInvite,courriel:this.user.courriel,prenom:this.user.prenom,nom:this.user.nom,telephone:this.user.telephone},facture:{id:(0,Ce.SiN)(),items:[...Tt,...P]},unrequiredTaxes:this.currentReservation.unrequiredTaxes,isRequiredFraisService:this.currentReservation.isRequiredFraisService,resume:null==H?void 0:H.resume},S={...this.currentReservation,dateHeureDebut:me.dateHeureDebut,dateHeureFin:me.dateHeureFin};this.activiteService.checkDisponibiliteReservation(S).pipe((0,rt.n)(M=>M.codeDisponibilite===En.PlageIndisponible?(this.store.dispatch(new R.Actions.ShowSnackBar("Cette plage horaire n'est plus disponible. Veuillez en s\xE9lectionner un autre.",R.EnumSnackBarType.Echec)),this.orderLaunched=!1,Pt.w):this.activiteService.createReservationEnregistrementCheckout(me,null==H?void 0:H.paymentBody)),(0,Je.pQ)(this.destroyRef)).subscribe({next:M=>{if([En.MaxJour,En.PlageIndisponible,En.MaxTotal].includes(M.code))switch(M.code===En.PlageIndisponible&&(this.idempotencyKey=(0,Ce.SiN)()),M.code){case En.PlageIndisponible:this.store.dispatch(new R.Actions.ShowSnackBar("Cette plage horaire n'est plus disponible. Veuillez en s\xE9lectionner un autre.",R.EnumSnackBarType.Echec));break;case En.MaxJour:this.store.dispatch(new R.Actions.ShowSnackBar("Vous avez atteint le nombre maximal des r\xE9servations par jour",R.EnumSnackBarType.Echec));break;case En.MaxTotal:this.store.dispatch(new R.Actions.ShowSnackBar("Vous avez atteint le nombre maximal des r\xE9servations futures",R.EnumSnackBarType.Echec))}else M.status!==Ke.B2.Completed&&this.requiredCheckout?this.store.dispatch(new R.Actions.ShowSnackBar("\xC9chec \xE0 la compl\xE9tion de paiement, le statut est"+` ${M.status}`,R.EnumSnackBarType.Echec)):(this.canDeactivate=!0,this.route.navigate(["/activite/reservation-confirmation"],{queryParamsHandling:"merge"}),localStorage.removeItem("activite"));this.orderLaunched=!1},error:M=>{this.orderLaunched=!1,null!=M&&M.isSquareError&&(this.idempotencyKey=(0,Ce.SiN)()),(0,Ce.TuW)(M,this.store,R)}})}navigateMesActivites(){let H;H=this.isInvite?["/activite/"]:window.innerWidth>=960?["utilisateur","profil","activite"]:["utilisateur","activite"],this.route.navigate(H)}ionViewWillEnter(){var H;this.appMetaTags.updateMetaTags("Activit\xE9 - R\xE9servation"),this.isInvite||null===(H=this.stepper)||void 0===H||H.reset()}formatHeureLocale(H){return y().tz(H,this.timezoneLocal).format(this.formatDate)}onSelectEvent(H){this.currentReservation=H,this.currentReservation.requerantPerId||(this.currentReservation={...this.currentReservation,requerantPerId:this.user.perId,requerantInvite:this.isInvite?{prenom:this.user.prenom,nom:this.user.nom,courriel:this.user.courriel,telephone:this.user.telephone}:null});const Z={...this.currentReservation,dateHeureDebut:this.formatHeureLocale(this.currentReservation.dateHeureDebut),dateHeureFin:this.formatHeureLocale(this.currentReservation.dateHeureFin)};this.activiteService.checkDisponibiliteReservation(Z).pipe((0,Je.pQ)(this.destroyRef)).subscribe(Tt=>{this.currentReservation.horaireDispo=Tt.codeDisponibilite,Object.values(En).includes(Tt.codeDisponibilite)?this.step=Wt.Invalide:this.stepper.next()});const Re=(0,Ce.cA3)(this.currentReservation.dateHeureDebut,this.currentReservation.dateHeureFin,this.isFr,!0);this.eventDate=`${Re.dateComplete} ${Re.temps}`.trim(),this.installationsBySite=(0,Ce.LO9)([{siteNom:this.currentReservation.siteNom,installationNom:this.currentReservation.installationNom,adresse:this.currentReservation.adresse}
1])}}return(te=je).\u0275fac=function(H){return new(H||te)},te.\u0275cmp=l.VBU({type:te,selectors:[["vplus-activite-reservation"]],viewQuery:function(H,Z){if(1&H&&(l.GBs(Zn,5),l.GBs(si,5),l.GBs(Te.D,5)),2&H){let Re;l.mGM(Re=l.lsd())&&(Z.stepper=Re.first),l.mGM(Re=l.lsd())&&(Z.stepParticipants=Re.first),l.mGM(Re=l.lsd())&&(Z.participantsComponent=Re.first)}},decls:5,vars:9,consts:()=>{let $,H,Z,Re,Tt,P,me,S,M,D,_e,$e,Ge,we,q,mt,kt,Zt,jt,Vt,t,_n,wn,Rt,Xn,nn,Dn,Yn,Un,ai,v,ae,G,B,X,ue,Ve,ht,$t,St,bt,lt,Kt,Ht,Fn,xn,bn,Wn,qn,ti,li;return $="Plage horaire",H="S\xE9lection",Z="Participants",Re="Articles compl\xE9mentaires",Tt="R\xE9sum\xE9 et paiement",P="Plage horaire",me=" Retour ",S="S\xE9lection",M=" Retour ",D="Suivant",_e="Retour",$e="Suivant",Ge=" Retour ",we="Identification",q="Pr\xE9nom",mt=" Champ obligatoire ",kt="Nom",Zt=" Champ obligatoire ",jt="Courriel",Vt="T\xE9l\xE9phone",t=" Retour ",_n="Suivant",wn=" Champ obligatoire ",Rt=" Courriel non valide ",Xn=" Adresse courriel d\xE9j\xE0 utilis\xE9e par un compte citoyen ",nn=" Champ obligatoire ",Dn=" T\xE9l\xE9phone non valide ",Yn="Rabais familial appliqu\xE9 d\xE8s le 2e inscrit.",Un="Calcul\xE9 au r\xE9sum\xE9 de la commande",ai="inscrit :",v=" de r\xE9duction",ae="inscrit et plus :",G=" de r\xE9duction par inscription additionnelle",B=" Veuillez pr\xE9ciser au moins une quantit\xE9 ",X="Articles compl\xE9mentaires",ue="Retour",Ve="Suivant",ht=" En proc\xE9dant au paiement, vous acceptez notre ",$t="politique de remboursement",St="Plage horaire indisponible",bt="La plage choisie de ",lt=" n'est plus disponible.",Kt=" Pr\xE9c\xE9dent ",Ht="Maximum par jour",Fn="Vous avez d\xE9j\xE0 une r\xE9servation le ",xn=". Une seule r\xE9servation par jour est permise.",bn=" Pr\xE9c\xE9dent ",Wn="Maximum total",qn="Vous avez un total de 4 r\xE9servations.",ti=" Vous ne pouvez pas d\xE9passer le maximum autoris\xE9.",li=" Pr\xE9c\xE9dent ",[["stepper",""],["stepParticipants",""],["stepArticles",""],P,me,S,M,D,_e,$e,Ge,we,q,mt,kt,Zt,jt,Vt,t,_n,wn,Rt,Xn,nn,Dn,Yn,Un,ai,v,ae,G,B,X,ue,Ve,ht,$t,St,bt,lt,Kt,Ht,Fn,xn,bn,Wn,qn,ti,li,[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","activiteReservation",3,"click"],[3,"loadingFailed"],[1,"main-page-container",3,"hidden"],[3,"back","title"],[1,"standard-page-content"],[1,"stepper-container"],[1,"stepper-form-activite"],["linear","true",1,"inscription-stepper",3,"selectionChange"],["matStepperIcon","edit"],["aria-labelledby","readonly-title","label","Identification",3,"stepControl","formGroup"],["aria-labelledby","readonly-title","label",$],[1,"margin-top-2","option-tarification-container"],[3,"onSelectEvent","onDataLoaded","currentActivite"],[1,"flex-space-between","spacing-top"],["type","button","mat-stroked-button","",1,"custom-button-standard","custom-button-stroked",3,"click"],["aria-labelledby","readonly-title","label",H,3,"stepControl","formGroup"],["formArrayName","tarifications",1,"margin-top-2"],[3,"formGroupName"],[1,"custom-mat-error-message","margin-top-1"],[1,"margin-top"],["type","button","mat-raised-button","",1,"custom-button-full","custom-button-standard","custom-button-stepper",3,"click"],["aria-labelledby","readonly-title","label",Z,3,"stepControl","formGroup"],[3,"tarificationFA","participantFA","user","canOrderForCurrentUser","fam
1illesCurrentUser","familleMembreHashList","isInvite","ageTrfs","contexte","isAllowedInscWithRestr"],["type","button","mat-stroked-button","","matStepperPrevious","",1,"custom-button-standard","custom-button-stroked","custom-button-stepper"],["label",Re,3,"stepControl","formGroup"],["label",Tt,"aria-labelledby","readonly-title",3,"completed"],[3,"onLaunchedPayment","onPreparedPayment","onErrorPayment","onCardReady","onSquareDeconnecte","items","isRequiredFraisService","activityNom","unrequiredTaxes","orderLaunched","user","optionsVersement","isAllowedInscWithRestr","eventDate","installationsBySite"],["id","card-button","type","button","mat-raised-button","",1,"custom-button-full","custom-button-standard","custom-button-stepper",3,"disabled"],["iconClass","icon-shopping-cart",3,"isSubmitting"],[1,"flat-window","small","margin-top-4"],[1,"icon-check"],[1,"margin-top-2"],[1,"max-720",3,"formGroup"],[1,"form-field-inline-section"],["required","","matInput","","type","text","formControlName","prenom"],["required","","matInput","","type","text","formControlName","nom"],["matInput","","type","email","required","true","formControlName","courriel"],["matInput","","type","tel","maskTelephoneEvents","","formControlName","telephone",3,"imask","unmask"],[1,"border-bottom","padding-tarification"],[1,"option-tarification-content"],[1,"option-tarification-nom"],[1,"rabais-familial"],[1,"stepper-input"],[3,"click","disabled"],[1,"icon-delete"],["matInput","","formControlName","qte",3,"blur","imask"],[3,"click"],[1,"icon-add"],[1,"option-tarification-montant"],[1,"small-margin-top","container-mat-errors"],[1,"action-delete"],[1,"custom-mat-error-message","action-delete","margin-top-1"],[1,"margin-bottom-12"],[1,"form-section-title-underline"],[3,"articlesFA"],[1,"inline-text"],[1,"politique",3,"click"],[1,"flat-window-content","center"],[1,"statut-highlight"],[1,"actions-container"],["type","button",1,"ion-custom-button-standard","et","ion-custom-button-outline",3,"click"],["expand","false",1,"ion-custom-button-standard","ion-custom-button-full",3,"click"]]},template:function(H,Z){1&H&&(l.nrm(0,"vplus-mobile-header",49),l.j41(1,"ion-content",50),l.nI1(2,"async"),l.bIt("click",function(){return Z.onContentClick()}),l.DNE(3,F,1,1,"vplus-loading-spinner",51)(4,dn,53,38),l.k0s()),2&H&&(l.Y8G("defaultHref","/activite")("headerTitle","")("returnButtonType","back-button")("menuId","activiteReservation"),l.R7$(),l.AVh("filter-searche-global-active",l.bMT(2,7,Z.selectIsSearchHeaderVisible$)),l.R7$(2),l.vxM(3,Z.dataLoaded?Z.step===Z.EnumStep.Achat||Z.step===Z.EnumStep.Invalide?4:-1:3))},dependencies:[_t.fg,ie.rl,ie.nJ,ie.TL,Ye.$z,re.V5,re.M6,re.FR,re.xJ,a.qT,a.me,a.BC,a.cb,a.YS,a.j4,a.JD,a.$R,a.v8,Ce.xGI,it.Zq,ke.f,Ue.Jm,Ue.W9,Yt.x,Jt.z,De.N,w.X,b.b,ri,Te.D,Qe.Jj,ct.x,Kn.a,Ce.ihR],styles:[".standard-page-content[_ngcontent-%COMP%] .icon-chevron-left[_ngcontent-%COMP%], .standard-page-content[_ngcontent-%COMP%] .icon-chevron-right[_ngcontent-%COMP%]{font-size:30px}.nom-participants-span[_ngcontent-%COMP%]{white-space:pre}.main-page-container[hidden][_ngcontent-%COMP%]{display:none}.actions-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.margin-top-4[_ngcontent-%COMP%]{margin-top:4rem}textarea[_ngcontent-%COMP%]{overflow:hidden!important}[_nghost-%COMP%] .stepper-form-activite .mat-horizontal-content-container form{min-height:0!important}[_nghost-%COMP%] .mat-step-header[aria-labelledby=readonly-title]{pointer-events:none}[_nghost-%COMP%] .mat-step-header[aria-labelledby=readonly-title] .mat-step-label{color:var(--disabled-mat-step-header)}[_nghost-%COMP%] .step-two-form-content{display:flex;flex-wrap:wrap;justify-content:space-between}[_nghost-%COMP%] .step-two-form-content .field-container{margin-bottom:0!important}[_nghost-%COMP%] .step-two-form-content .mat-mdc-form-field, [_nghost-%COMP%] .step-two-form-content .field-custom-wrapper{flex-grow:1;width:100%;margin-bottom:1rem}@media (min-width: 960px){[_nghost-%COMP%] .step-two-form-content .mat-mdc-form-field, [_nghost-%COMP%] .step-two-form-content .field-custom-wrapper{min-width:calc(50% - 18px);max-width:calc(50% - 18px)}[_nghost-%COMP%] .step-two-form-content .mat-mdc-form-field.full-width, [_nghost-%COMP%] .step-two-form-content .field-custom-wrapper.full-width{min-width:initial;max-width:initial}}
1[_nghost-%COMP%] .participant-actions-btn{display:flex;justify-content:flex-end}[_nghost-%COMP%] .extension-panel-container mat-expansion-panel{box-shadow:unset!important;border:1px solid #e5e5e5;margin-bottom:36px}[_nghost-%COMP%] .extension-panel-container .mat-expansion-panel-body{padding:0 24px 24px!important}.option-tarification-montant[_ngcontent-%COMP%]{text-align:right;font-weight:550;white-space:nowrap}.option-tarification-nom[_ngcontent-%COMP%]{font-weight:450}"]}),je})()},4673:(Nt,ne,g)=>{"use strict";g.d(ne,{N:()=>ai});var d=g(97586),R=g.n(d),A=g(89417),x=g(35052),C=g(64075),e=g(54438),de=g(86600),y=g(92995),a=g(53387),U=g(98377),O=g(75263),Ae=g(34006),Te=g(373),ge=g(10916),Ce=g(89079),Fe=g(9454),xe=g(59042),qe=g(32102),rt=g(37403),nt=g(82765),vt=g(82798),Pt=g(88834),l=g(25084),ot=g(14823),Ke=g(32430),ve=g(53419),He=g(22669);const Qe=(v,ae)=>ae.code,We=(v,ae)=>ae.id,dt=v=>[v,"renseigementAdditionnels","personneACharge"];function Ct(v,ae){1&v&&(e.j41(0,"h2",148),e.pXf(1,2),e.k0s())}function en(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,7),e.k0s())}function Je(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,8),e.k0s())}function zt(v,ae){if(1&v){const G=e.RV6();e.j41(0,"h3",161),e.pXf(1,4),e.k0s(),e.j41(2,"div",156)(3,"div",157)(4,"mat-form-field",157)(5,"mat-label"),e.pXf(6,5),e.k0s(),e.j41(7,"input",162),e.bIt("input",function(X){e.eBV(G);const ue=e.XpG().$implicit,Ve=e.XpG();return e.Njj(Ve.onNumeroAssuranceInput(X.target.value,ue))}),e.k0s(),e.DNE(8,en,2,0,"mat-error"),e.k0s()(),e.j41(9,"div",163)(10,"mat-form-field",164),e.nrm(11,"input",165),e.j41(12,"mat-label"),e.pXf(13,6),e.k0s(),e.nrm(14,"mat-datepicker-toggle",166),e.j41(15,"mat-datepicker",167,1),e.bIt("yearSelected",function(X){e.eBV(G);const ue=e.XpG(2);return e.Njj(ue.selectYear(X))})("monthSelected",function(X){e.eBV(G);const ue=e.sdS(16),Ve=e.XpG().$implicit,ht=e.XpG();return e.Njj(ht.selectMonth(X,ue,Ve.get("renseigementAdditionnels.dateExpiration")))}),e.k0s()(),e.DNE(17,Je,2,0,"mat-error"),e.k0s()()}if(2&v){let G,B,X;const ue=e.sdS(16),Ve=e.XpG().$implicit,ht=e.XpG();e.R7$(7),e.Y8G("imask",ht.assMaladieMask),e.R7$(),e.vxM(8,null!=(G=Ve.get("renseigementAdditionnels.numeroAssurance"))&&G.touched&&null!=(G=Ve.get("renseigementAdditionnels.numeroAssurance"))&&G.hasError("numeroAssuranceInvalide")?8:-1),e.R7$(),e.AVh("error-space",(null==(B=Ve.get("renseigementAdditionnels.numeroAssurance"))?null:B.touched)&&(null==(B=Ve.get("renseigementAdditionnels.numeroAssurance"))?null:B.hasError("required"))),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("matDatepicker",ue),e.R7$(3),e.Y8G("for",ue),e.R7$(3),e.vxM(17,null!=(X=Ve.get("renseigementAdditionnels.dateExpiration"))&&X.touched&&null!=(X=Ve.get("renseigementAdditionnels.dateExpiration"))&&X.hasError("required")?17:-1)}}function _t(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,11),e.k0s())}function ie(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,12),e.k0s())}function Ye(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,13),e.k0s())}function re(v,ae){if(1&v&&(e.j41(0,"div",156)(1,"mat-form-field",157)(2,"mat-label"),e.pXf(3,9),e.k0s(),e.nrm(4,"input",168),e.DNE(5,_t,2,0,"mat-error"),e.k0s(),e.j41(6,"mat-form-field",157)(7,"mat-label"),e.pXf(8,10),e.k0s(),e.nrm(9,"input",169),e.DNE(10,ie,2,0,"mat-error")(11,Ye,2,0,"mat-error"),e.k0s()()),2&v){let G,B,X;const ue=e.XpG().$implicit,Ve=e.XpG();e.R7$(4),e.Y8G("errorStateMatcher",Ve.matcher),e.R7$(),e.vxM(5,ue.get("renseigementAdditionnels.nomMedecin").touched&&null!=(G=ue.get("renseigementAdditionnels.nomMedecin").errors)&&G.required?5:-1),e.R7$(4),e.Y8G("errorStateMatcher",Ve.matcher)("imask",Ve.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(10,null!=(B=ue.get("renseigementAdditionnels.telephoneMedecin"))&&B.touched&&null!=(B=ue.get("renseigementAdditionnels.telephoneMedecin").errors)&&B.required?10:-1),e.R7$(),e.vxM(11,null!=(X=ue.get("renseigementAdditionnels.telephoneMedecin"))&&X.touched&&null!=(X=ue.get("renseigementAdditionnels.telephoneMedecin"))&&X.hasError("pattern")?11:-1)}}function it(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,15),e.k0s())}function ke(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,18),e.k0s())}function Ue(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,19),e.k0s())}function Yt(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,21),e.k0s())}function Jt(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,20),e.k0s(),e.nrm(3,"input",174),e.DNE(4,Yt,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG(3).$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.vxM(4,null!=(G=B.get("renseigementAdditionnels.medicamentsAllergiesMedicamentueuse"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.medicamentsAllergiesMedicamentueuse").errors)&&G.required?4:-1)}}function De(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,16),e.k0s(),e.nrm(3,"input",172),e.DNE(4,ke,2,0,"mat-error"),e.k0s(),e.j41(5,"mat-form-field",157)(6,"mat-label"),e.pXf(7,17),e.k0s(),e.j41(8,"mat-select",173)(9,"mat-option",171),e.EFF(10),e.k0s(),e.j41(11,"mat-option",171),e.EFF(12),e.k0s()(),e.DNE(13,Ue,2,0,"mat-error"),e.k0s(),e.DNE(14,Jt,5,2,"mat-form-field",157)),2&v){let G,B;const X=e.XpG(2).$implicit,ue=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",ue.matcher),e.R7$(),e.vxM(4,X.get("renseigementAdditionnels.listeAllergiesMedicaments").touched&&null!=(G=X.get("renseigementAdditionnels.listeAllergiesMedicaments").errors)&&G.required?4:-1),e.R7$(4),e.Y8G("errorStateMatcher",ue.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Non," "),e.R7$(),e.vxM(13,null!=(B=X.get("renseigementAdditionnels.medicamentsContreAllergies"))&&B.touched&&null!=(B=X.get("renseigementAdditionnels.medicamentsContreAllergies").errors)&&B.required?13:-1),e.R7$(),e.vxM(14,X.get("renseigementAdditionnels.medicamentsContreAllergies").value?14:-1)}}function w(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,14),e.k0s(),e.j41(3,"mat-select",170)(4,"mat-option",171),e.EFF(5),e.k0s(),e.j41(6,"mat-option",171),e.EFF(7),e.k0s()(),e.DNE(8,it,2,0,"mat-error"),e.k0s(),e.DNE(9,De,15,9)),2&v){let G,B;const X=e.XpG().$implicit,ue=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",ue.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Non," "),e.R7$(),e.vxM(8,null!=(G=X.get("renseigementAdditionnels.isAllergiesMedicaments"))&&G.touched&&null!=(G=X.get("renseigementAdditionnels.isAllergiesMedicaments").errors)&&G.required?8:-1),e.R7$(),e.vxM(9,null!=(B=X.get("renseigementAdditionnels.isAllergiesMedicaments"))&&B.value?9:-1)}}function b(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,23),e.k0s())}function J(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,26),e.k0s())}function ce(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,27),e.k0s())}function pe(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,29),e.k0s())}function Ie(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,28),e.k0s(),e.nrm(3,"input",178),e.DNE(4,pe,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG(3).$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.vxM(4,null!=(G=B.get("renseigementAdditionnels.medicamentsContreAllergiesAlimentaire"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.medicamentsContreAllergiesAlimentaire").errors)&&G.required?4:-1)}}function ct(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,24),e.k0s(),e.nrm(3,"input",176),e.DNE(4,J,2,0,"mat-error"),e.k0s(),e.j41(5,"mat-form-field",157)(6,"mat-label"),e.pXf(7,25),e.k0s(),e.j41(8,"mat-select",177)(9,"mat-option",171),e.EFF(10),e.k0s(),e.j41(11,"mat-option",171),e.EFF(12),e.k0s()(),e.DNE(13,ce,2,0,"mat-error"),e.k0s(),e.DNE(14,Ie,5,2,"mat-form-field",157)),2&v){let G,B,X;const ue=e.XpG(2).$implicit,Ve=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",Ve.matcher),e.R7$(),e.vxM(4,null!=(G=ue.get("renseigementAdditionnels.listeAllergiesAlimentaires"))&&G.touched&&null!=(G=ue.get("renseigementAdditionnels.listeAllergiesAlimentaires").errors)&&G.required?4:-1),e.R7$(4),e.Y8G("errorStateMatcher",Ve.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",Ve.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",Ve.EnumYesOrNo.Non," "),e.R7$(),e.vxM(13,ue.get("renseigementAdditionnels.medicamentsAllergiesAlimentaires").touched&&null!=(B=ue.get("renseigementAdditionnels.medicamentsAllergiesAlimentaires").errors)&&B.required?13:-1),e.R7$(),e.vxM(14,null!=(X=ue.get("renseigementAdditionnels.medicamentsAllergiesAlimentaires"))&&X.value?14:-1)}}function ft(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,22),e.k0s(),e.j41(3,"mat-select",175)(4,"mat-option",171),e.EFF(5),e.k0s(),e.j41(6,"mat-option",171),e.EFF(7),e.k0s()(),e.DNE(8,b,2,0,"mat-error"),e.k0s(),e.DNE(9,ct,15,9)),2&v){let G,B;const X=e.XpG().$implicit,ue=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",ue.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Non," "),e.R7$(),e.vxM(8,null!=(G=X.get("renseigementAdditionnels.isAllergiesAlimentaires"))&&G.touched&&null!=(G=X.get("renseigementAdditionnels.isAllergiesAlimentaires").errors)&&G.required?8:-1),e.R7$(),e.vxM(9,null!=(B=X.get("renseigementAdditionnels.isAllergiesAlimentaires"))&&B.value?9:-1)}}function et(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,31),e.k0s())}function wt(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,30),e.k0s(),e.j41(3,"mat-select",179)(4,"mat-option",171),e.EFF(5),e.k0s(),e.j41(6,"mat-option",171),e.EFF(7),e.k0s()(),e.DNE(8,et,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG().$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",X.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",X.EnumYesOrNo.Non," "),e.R7$(),e.vxM(8,null!=(G=B.get("renseigementAdditionnels.injection"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.injection").errors)&&G.required?8:-1)}}function Ne(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,33),e.k0s())}function Ot(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,35),e.k0s())}function Ft(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,34),e.k0s(),e.nrm(3,"input",181),e.DNE(4,Ot,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG(2).$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.vxM(4,null!=(G=B.get("renseigementAdditionnels.medicationPrise"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.medicationPrise").errors)&&G.required?4:-1)}}function pt(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,32),e.k0s(),e.j41(3,"mat-select",180)(4,"mat-option",171),e.EFF(5),e.k0s(),e.j41(6,"mat-option",171),e.EFF(7),e.k0s()(),e.DNE(8,Ne,2,0,"mat-error"),e.k0s(),e.DNE(9,Ft,5,2,"mat-form-field",157)),2&v){let G,B;const X=e.XpG().$implicit,ue=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",ue.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Non," "),e.R7$(),e.vxM(8,null!=(G=X.get("renseigementAdditionnels.isPriseMed"))&&G.touched&&null!=(G=X.get("renseigementAdditionnels.isPriseMed").errors)&&G.required?8:-1),e.R7$(),e.vxM(9,null!=(B=X.get("renseigementAdditionnels.isPriseMed"))&&B.value?9:-1)}}function yt(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,37),e.k0s())}function In(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,39),e.k0s())}function tn(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,38),e.k0s(),e.nrm(3,"input",183),e.DNE(4,In,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG(2).$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.vxM(4,B.get("renseigementAdditionnels.descriptionComportement").touched&&null!=(G=B.get("renseigementAdditionnels.descriptionComportement").errors)&&G.required?4:-1)}}function ln(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,36),e.k0s(),e.j41(3,"mat-select",182)(4,"mat-option",171),e.EFF(5),e.k0s(),e.j41(6,"mat-option",171),e.EFF(7),e.k0s()(),e.DNE(8,yt,2,0,"mat-error"),e.k0s(),e.DNE(9,tn,5,2,"mat-form-field",157)),2&v){let G,B;const X=e.XpG().$implicit,ue=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",ue.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Non," "),e.R7$(),e.vxM(8,null!=(G=X.get("renseigementAdditionnels.troublesComportement"))&&G.touched&&null!=(G=X.get("renseigementAdditionnels.troublesComportement").errors)&&G.required?8:-1),e.R7$(),e.vxM(9,null!=(B=X.get("renseigementAdditionnels.troublesComportement"))&&B.value?9:-1)}}function on(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,43),e.k0s())}function Vn(v,ae){if(1&v){const G=e.RV6();e.j41(0,"button",186),e.bIt("click",function(){e.eBV(G);const X=e.XpG(3);return e.Njj(X.displayDescription(null==X.questSupp?null:X.questSupp.descConsent,"descConsent"))}),e.nrm(1,"i",187),e.k0s()}}function On(v,ae){if(1&v&&(e.j41(0,"div",158)(1,"mat-form-field",157)(2,"mat-label"),e.pXf(3,40),e.k0s(),e.j41(4,"mat-select",184)(5,"mat-option",171),e.pXf(6,41),e.k0s(),e.j41(7,"mat-option",171),e.pXf(8,42),e.k0s()(),e.DNE(9,on,2,0,"mat-error"),e.k0s(),e.DNE(10,Vn,2,0,"button",185),e.k0s()),2&v){let G;const B=e.XpG().$implicit,X=e.XpG();e.R7$(4),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(2),e.Y8G("value",!1),e.R7$(2),e.vxM(9,null!=(G=B.get("renseigementAdditionnels.isConsentementMedical"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.isConsentementMedical").errors)&&G.required?9:-1),e.R7$(),e.vxM(10,X.questSupp.descConsent?10:-1)}}function Nn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,46),e.k0s())}function $n(v,ae){if(1&v&&(e.j41(0,"mat-option",171),e.EFF(1),e.k0s()),2&v){const G=ae.$implicit;e.Y8G("value",G.code),e.R7$(),e.SpI(" ",G.nom," ")}}function hn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,48),e.k0s())}function Cn(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,47),e.k0s(),e.j41(3,"mat-select",189),e.Z7z(4,$n,2,2,"mat-option",171,Qe),e.k0s(),e.DNE(6,hn,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG(2).$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.Dyx(X.allergiesAlimentaires),e.R7$(2),e.vxM(6,null!=(G=B.get("renseigementAdditionnels.regimeAlimentaire"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.regimeAlimentaire").errors)&&G.required?6:-1)}}function mn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,50),e.k0s())}function Qn(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,49),e.k0s(),e.nrm(3,"input",190),e.DNE(4,mn,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG(2).$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.vxM(4,null!=(G=B.get("renseigementAdditionnels.descriptionRegime"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.descriptionRegime").errors)&&G.required?4:-1)}}function ii(v,ae){if(1&v&&(e.j41(0,"h3"),e.pXf(1,44),e.k0s(),e.j41(2,"mat-form-field",157)(3,"mat-label"),e.pXf(4,45),e.k0s(),e.j41(5,"mat-select",188)(6,"mat-option",171),e.EFF(7),e.k0s(),e.j41(8,"mat-option",171),e.EFF(9),e.k0s()(),e.DNE(10,Nn,2,0,"mat-error"),e.k0s(),e.DNE(11,Cn,7,2,"mat-form-field",157)(12,Qn,5,2,"mat-form-field",157)),2&v){let G,B,X;const ue=e.XpG().$implicit,Ve=e.XpG();e.R7$(5),e.Y8G("errorStateMatcher",Ve.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",Ve.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",Ve.EnumYesOrNo.Non," "),e.R7$(),e.vxM(10,null!=(G=ue.get("renseigementAdditionnels.isRegimeAlimentaire"))&&G.touched&&null!=(G=ue.get("renseigementAdditionnels.isRegimeAlimentaire").errors)&&G.required?10:-1),e.R7$(),e.vxM(11,null!=(B=ue.get("renseigementAdditionnels.isRegimeAlimentaire"))&&B.value?11:-1),e.R7$(),e.vxM(12,null!=(X=ue.get("renseigementAdditionnels.regimeAlimentaire"))&&null!=X.value&&X.value.includes("Autre")&&null!=(X=ue.get("renseigementAdditionnels.isRegimeAlimentaire"))&&X.value?12:-1)}}function pn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,58),e.k0s())}function Pn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,59),e.k0s())}function Jn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,60),e.k0s())}function Rn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,61),e.k0s())}function oi(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,62),e.k0s())}function ri(v,ae){1&v&&(e.j41(0,"mat-error"),e.
1pXf(1,63),e.k0s())}function Kn(v,ae){if(1&v&&(e.j41(0,"mat-option",171),e.EFF(1),e.k0s()),2&v){const G=ae.$implicit;e.Y8G("value",G.id),e.R7$(),e.SpI(" ",G.nom," ")}}function Zn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,64),e.k0s())}function si(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",202)(1,"button",203),e.bIt("click",function(){e.eBV(G);const X=e.XpG().$index,ue=e.XpG(3).$index,Ve=e.XpG();return e.Njj(Ve.deleteTuteurLegal(ue,X))}),e.nrm(2,"i",204),e.k0s(),e.j41(3,"span",205),e.pXf(4,65),e.k0s()()}if(2&v){let G;const B=e.XpG().$implicit;e.AVh("error-space",(null==(G=B.get("lien"))?null:G.touched)&&(null==(G=B.get("lien"))||null==G.errors?null:G.errors.required))}}function jn(v,ae){if(1&v&&(e.j41(0,"div",149)(1,"h4",194)(2,"span"),e.pXf(3,52),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.j41(6,"div",156)(7,"mat-form-field",157)(8,"mat-label"),e.pXf(9,53),e.k0s(),e.nrm(10,"input",195),e.DNE(11,pn,2,0,"mat-error"),e.k0s(),e.j41(12,"mat-form-field",157)(13,"mat-label"),e.pXf(14,54),e.k0s(),e.nrm(15,"input",196),e.DNE(16,Pn,2,0,"mat-error"),e.k0s()(),e.j41(17,"div",156)(18,"mat-form-field",157)(19,"mat-label"),e.pXf(20,55),e.k0s(),e.nrm(21,"input",197),e.DNE(22,Jn,2,0,"mat-error")(23,Rn,2,0,"mat-error"),e.k0s(),e.j41(24,"mat-form-field",157)(25,"mat-label"),e.pXf(26,56),e.k0s(),e.nrm(27,"input",198),e.DNE(28,oi,2,0,"mat-error")(29,ri,2,0,"mat-error"),e.k0s()(),e.j41(30,"mat-form-field",199)(31,"mat-label"),e.pXf(32,57),e.k0s(),e.j41(33,"mat-select",200),e.Z7z(34,Kn,2,2,"mat-option",171,We),e.k0s(),e.DNE(36,Zn,2,0,"mat-error"),e.k0s(),e.DNE(37,si,5,2,"div",201),e.k0s()),2&v){let G,B,X,ue,Ve,ht,$t,St;const bt=ae.$implicit,lt=ae.$index,Kt=e.XpG(3).$implicit,Ht=e.XpG();e.Y8G("formGroupName",lt),e.R7$(5),e.SpI(" ",lt+1,""),e.R7$(5),e.Y8G("errorStateMatcher",Ht.matcher),e.R7$(),e.vxM(11,null!=(G=bt.get("prenom"))&&G.touched&&null!=(G=bt.get("prenom"))&&null!=G.errors&&G.errors.required?11:-1),e.R7$(4),e.Y8G("errorStateMatcher",Ht.matcher),e.R7$(),e.vxM(16,null!=(B=bt.get("nom"))&&B.touched&&null!=(B=bt.get("nom"))&&null!=B.errors&&B.errors.required?16:-1),e.R7$(5),e.Y8G("errorStateMatcher",Ht.matcher)("imask",Ht.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(22,null!=(X=bt.get("telephoneCellulaire"))&&X.touched&&null!=(X=bt.get("telephoneCellulaire"))&&null!=X.errors&&X.errors.required?22:-1),e.R7$(),e.vxM(23,null!=(ue=bt.get("telephoneCellulaire"))&&ue.touched&&null!=(ue=bt.get("telephoneCellulaire"))&&null!=ue.errors&&ue.errors.required?23:-1),e.R7$(4),e.Y8G("errorStateMatcher",Ht.matcher),e.R7$(),e.vxM(28,null!=(Ve=bt.get("courriel"))&&Ve.touched&&null!=(Ve=bt.get("courriel"))&&null!=Ve.errors&&Ve.errors.required?28:-1),e.R7$(),e.vxM(29,null!=(ht=bt.get("courriel"))&&ht.hasError("invalidEmail")&&null!=(ht=bt.get("courriel"))&&ht.touched?29:-1),e.R7$(4),e.Y8G("errorStateMatcher",Ht.matcher),e.R7$(),e.Dyx(Ht.EnumFamilleMembreLien),e.R7$(2),e.vxM(36,null!=($t=bt.get("lien"))&&$t.touched&&null!=($t=bt.get("lien").errors)&&$t.required?36:-1),e.R7$(),e.vxM(37,(null==(St=Kt.get("renseigementAdditionnels.tuteurLegal"))||null==St.value?null:St.value.length)>1?37:-1)}}function rn(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",193)(1,"button",206),e.bIt("click",function(){e.eBV(G);const X=e.XpG(3).$index,ue=e.XpG();return e.Njj(ue.addTuteurLegal(X))}),e.nrm(2,"i",207),e.k0s(),e.j41(3,"span",205),e.pXf(4,66),e.k0s()()}}function Hn(v,ae){if(1&v&&(e.j41(0,"div",192),e.Z7z(1,jn,38,17,"div",149,e.Vm6),e.k0s(),e.DNE(3,rn,5,0,"div",193)),2&v){let G;const B=e.XpG(2).$implicit,X=e.XpG();e.R7$(),e.Dyx(X.getFormArray(B,"renseigementAdditionnels.tuteurLegal").controls),e.R7$(2),e.vxM(3,(null==(G=B.get("renseigementAdditionnels.tuteurLegal"))||null==G.value?null:G.value.length)<2?3:-1)}}function Ci(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,75),e.k0s())}function F(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,76),e.k0s())}function K(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,77),e.k0s())}function Y(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,78),e.k0s())}function be(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,79),e.k0s())}function At(v,ae){if(1&v&&(e.j41(0,"mat-option",171),e.EFF(1),e.k0s()),2&v){const G=ae.$implicit;e.Y8G("value",G.id),e.R7$(),e.SpI(" ",G.nom," ")}}function Et(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,80),e.k0s())}function Xt(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",149)(1,"h4",194)(2,"span"),e.pXf(3,67),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s(),e.j41(6,"span"),e.pXf(7,68),e.k0s()(),e.j41(8,"div",156)(9,"mat-form-field",157)(10,"mat-label"),e.pXf(11,69),e.k0s(),e.nrm(12,"input",195),e.DNE(13,Ci,2,0,"mat-error"),e.k0s(),e.j41(14,"mat-form-field",157)(15,"mat-label"),e.pXf(16,70),e.k0s(),e.nrm(17,"input",196),e.DNE(18,F,2,0,"mat-error"),e.k0s()(),e.j41(19,"div",156)(20,"mat-form-field",157)(21,"mat-label"),e.pXf(22,71),e.k0s(),e.nrm(23,"input",197),e.DNE(24,K,2,0,"mat-error")(25,Y,2,0,"mat-error"),e.k0s(),e.j41(26,"mat-form-field",157)(27,"mat-label"),e.pXf(28,72),e.k0s(),e.nrm(29,"input",208),e.DNE(30,be,2,0,"mat-error"),e.k0s()(),e.j41(31,"mat-form-field",199)(32,"mat-label"),e.pXf(33,73),e.k0s(),e.j41(34,"mat-select",200),e.Z7z(35,At,2,2,"mat-option",171,We),e.k0s(),e.DNE(37,Et,2,0,"mat-error"),e.k0s(),e.j41(38,"div",202)(39,"div",202)(40,"button",203),e.bIt("click",function(){const X=e.eBV(G).$index,ue=e.XpG(3).$index,Ve=e.XpG();
1return e.Njj(Ve.deleteContactUrgence(ue,X))}),e.nrm(41,"i",204),e.k0s(),e.j41(42,"span",205),e.pXf(43,74),e.k0s()()()()}if(2&v){let G,B,X,ue,Ve,ht,$t;const St=ae.$implicit,bt=ae.$index,lt=e.XpG(4);e.Y8G("formGroupName",bt),e.R7$(5),e.SpI(" ",bt+1," "),e.R7$(7),e.Y8G("errorStateMatcher",lt.matcher),e.R7$(),e.vxM(13,null!=(G=St.get("prenom"))&&G.touched&&null!=(G=St.get("prenom").errors)&&G.required?13:-1),e.R7$(4),e.Y8G("errorStateMatcher",lt.matcher),e.R7$(),e.vxM(18,null!=(B=St.get("nom"))&&B.touched&&null!=(B=St.get("nom"))&&null!=B.errors&&B.errors.required?18:-1),e.R7$(5),e.Y8G("errorStateMatcher",lt.matcher)("imask",lt.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(24,null!=(X=St.get("telephoneCellulaire"))&&X.touched&&null!=(X=St.get("telephoneCellulaire").errors)&&X.required?24:-1),e.R7$(),e.vxM(25,null!=(ue=St.get("telephoneCellulaire"))&&ue.touched&&null!=(ue=St.get("telephoneCellulaire"))&&ue.hasError("pattern")?25:-1),e.R7$(4),e.Y8G("errorStateMatcher",lt.matcher)("imask",lt.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(30,null!=(Ve=St.get("telephoneMaison"))&&Ve.touched&&null!=(Ve=St.get("telephoneMaison"))&&Ve.hasError("pattern")?30:-1),e.R7$(4),e.Y8G("errorStateMatcher",lt.matcher),e.R7$(),e.Dyx(lt.EnumFamilleMembreLien),e.R7$(2),e.vxM(37,null!=(ht=St.get("lien"))&&ht.touched&&null!=(ht=St.get("lien").errors)&&ht.required?37:-1),e.R7$(2),e.AVh("error-space",(null==($t=St.get("lien"))?null:$t.touched)&&(null==($t=St.get("lien"))||null==$t.errors?null:$t.errors.required))}}function Bt(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",193)(1,"button",206),e.bIt("click",function(){e.eBV(G);const X=e.XpG(3).$index,ue=e.XpG();return e.Njj(ue.addContactUrgence(X))}),e.nrm(2,"i",207),e.k0s(),e.j41(3,"span",205),e.pXf(4,81),e.k0s()()}}function kn(v,ae){if(1&v&&(e.j41(0,"div",191),e.Z7z(1,Xt,44,19,"div",149,e.Vm6),e.DNE(3,Bt,5,0,"div",193),e.k0s()),2&v){let G;const B=e.XpG(2).$implicit,X=e.XpG();e.R7$(),e.Dyx(X.getFormArray(B,"renseigementAdditionnels.contactUrgence").controls),e.R7$(2),e.vxM(3,(null==(G=B.get("renseigementAdditionnels.contactUrgence"))||null==G.value?null:G.value.length)<3?3:-1)}}function Tn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,90),e.k0s())}function gn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,91),e.k0s())}function ei(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,92),e.k0s())}function ci(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,93),e.k0s())}function gi(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,94),e.k0s())}function di(v,ae){if(1&v&&(e.j41(0,"mat-option",171),e.EFF(1),e.k0s()),2&v){const G=ae.$implicit;e.Y8G("value",G.id),e.R7$(),e.SpI(" ",G.nom," ")}}function I(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,95),e.k0s())}function T(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",149)(1,"h4",194)(2,"span"),e.pXf(3,82),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s(),e.j41(6,"span"),e.pXf(7,83),e.k0s()(),e.j41(8,"div",156)(9,"mat-form-field",157)(10,"mat-label"),e.pXf(11,84),e.k0s(),e.nrm(12,"input",195),e.DNE(13,Tn,2,0,"mat-error"),e.k0s(),e.j41(14,"mat-form-field",157)(15,"mat-label"),e.pXf(16,85),e.k0s(),e.nrm(17,"input",196),e.DNE(18,gn,2,0,"mat-error"),e.k0s()(),e.j41(19,"div",156)(20,"mat-form-field",157)(21,"mat-label"),e.pXf(22,86),e.k0s(),e.nrm(23,"input",197),e.DNE(24,ei,2,0,"mat-error")(25,ci,2,0,"mat-error"),e.k0s(),e.j41(26,"mat-form-field",157)(27,"mat-label"),e.pXf(28,87),e.k0s(),e.nrm(29,"input",208),e.DNE(30,gi,2,0,"mat-error"),e.k0s()(),e.j41(31,"mat-form-field",199)(32,"mat-label"),e.pXf(33,88),e.k0s(),e.j41(34,"mat-select",200),e.Z7z(35,di,2,2,"mat-option",171,We),e.k0s(),e.DNE(37,I,2,0,"mat-error"),e.k0s(),e.j41(38,"div",202)(39,"button",203),e.bIt("click",function(){const X=e.eBV(G).$index,ue=e.XpG(3).$index,Ve=e.XpG();return e.Njj(Ve.deletePersonneAutorisee(ue,X))}),e.nrm(40,"i",204),e.k0s(),e.j41(41,"span",205),e.pXf(42,89),e.k0s()()()}if(2&v){let G,B,X,ue,Ve,ht,$t;const St=ae.$implicit,bt=ae.$index,lt=e.XpG(4);e.Y8G("formGroupName",bt),e.R7$(5),e.SpI(" ",bt+1," "),e.R7$(7),e.Y8G("errorStateMatcher",lt.matcher),e.R7$(),e.vxM(13,null!=(G=St.get("prenom"))&&G.touched&&null!=(G=St.get("prenom").errors)&&G.required?13:-1),e.R7$(4),e.Y8G("errorStateMatcher",lt.matcher),e.R7$(),e.vxM(18,null!=(B=St.get("nom"))&&B.touched&&null!=(B=St.get("nom").errors)&&B.required?18:-1),e.R7$(5),e.Y8G("errorStateMatcher",lt.matcher)("imask",lt.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(24,null!=(X=St.get("telephoneCellulaire"))&&X.touched&&null!=(X=St.get("telephoneCellulaire").errors)&&X.required?24:-1),e.R7$(),e.vxM(25,null!=(ue=St.get("telephoneCellulaire"))&&ue.touched&&null!=(ue=St.get("telephoneCellulaire"))&&ue.hasError("pattern")?25:-1),e.R7$(4),e.Y8G("errorStateMatcher",lt.matcher)("imask",lt.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(30,null!=(Ve=St.get("telephoneMaison"))&&Ve.touched&&null!=(Ve=St.get("telephoneMaison"))&&Ve.hasError("pattern")?30:-1),e.R7$(4),e.Y8G("errorStateMatcher",lt.matcher),e.R7$(),e.Dyx(lt.EnumFamilleMembreLien),e.R7$(2),e.vxM(37,null!=(ht=St.get("lien"))&&ht.touched&&null!=(ht=St.get("lien").errors)&&ht.required?37:-1),e.R7$(),e.AVh("error-space",(null==($t=St.get("lien"))?null:$t.touched)&&(null==($t=St.get("lien"))||null==$t.errors?null:$t.errors.required))}}function L(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",193)(1,"button",206),e.bIt("click",function(){e.eBV(G);const X=e.XpG(3).$index,ue=e.XpG();return e.Njj(ue.addPersonneAutorisee(X))}),e.nrm(2,"i",207),e.k0s(),e.j41(3,"span",205),e.pXf(4,96),e.k0s()()}}function j(v,ae){if(1&v&&(e.j41(0,"div",209),e.Z7z(1,T,43,19,"div",149,e.Vm6),e.k0s(),e.DNE(3,L,5,0,"div",193)),2&v){let G;const B=e.XpG(2).$implicit,X=e.XpG();e.R7$(),e.Dyx(X.getFormArray(B,"renseigementAdditionnels.personneAutorisee").controls),e.R7$(2),e.vxM(3,(null==(G=B.get("renseigementAdditionnels.personneAutorisee"))||null==G.value?null:G.value.length)<5?3:-1)}}function se(v,ae){if(1&v&&(e.j41(0,"h3"),e.pXf(1,51),e.k0s(),e.DNE(2,Hn,4,1)(3,kn,4,1,"div",191)(4,j,4,1)),2&v){const G=e.XpG(2);e.R7$(2),e.vxM(2,G.questSupp.hasTuteurLeg?2:-1),e.R7$(),e.vxM(3,G.questSupp.hasContactUrg?3:-1),e.R7$(),e.vxM(4,G.questSupp.hasPersAutorise?4:-1)}}function he(v,ae){1&v&&(e.j41(0,"h3"),e.pXf(1,97),e.k0s())}function Ee(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,99),e.k0s())}function ze(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,98),e.k0s(),e.j41(3,"mat-select",210)(4,"mat-option",171),e.EFF(5),e.k0s(),e.j41(6,"mat-option",171),e.EFF(7),e.k0s()(),e.DNE(8,Ee,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG().$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",X.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",X.EnumYesOrNo.Non," "),e.R7$(),e.vxM(8,null!=(G=B.get("renseigementAdditionnels.isPortLunette"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.isPortLunette").errors)&&G.required?8:-1)}}function Be(v,ae){if(1&v&&(e.j41(0,"mat-option",171),e.EFF(1),e.k0s()),2&v){const G=ae.$implicit;e.Y8G("value",G.code),e.R7$(),e.SpI(" ",G.nom," ")}}function tt(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,101),e.k0s())}function Mt(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,100),e.k0s(),e.j41(3,"mat-select",211),e.Z7z(4,Be,2,2,"mat-option",171,Qe),e.k0s(),e.DNE(6,tt,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG().$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.Dyx(X.enumNiveauNatation),e.R7$(2),e.vxM(6,null!=(G=B.get("renseigementAdditionnels.niveauNatation"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.niveauNatation").errors)&&G.required?6:-1)}}function Lt(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,103),e.k0s())}function Ut(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,102),e.k0s(),e.j41(3,"mat-select",212)(4,"mat-option",171),e.EFF(5),e.k0s(),e.j41(6,"mat-option",171),e.EFF(7),e.k0s()(),e.DNE(8,Lt,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG().$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",X.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",X.EnumYesOrNo.Non," "),e.R7$(),e.vxM(8,null!=(G=B.get("renseigementAdditionnels.needJacket"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.needJacket").errors)&&G.required?8:-1)}}
1function gt(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,105),e.k0s())}function fn(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,104),e.k0s(),e.j41(3,"mat-select",213)(4,"mat-option",171),e.EFF(5),e.k0s(),e.j41(6,"mat-option",171),e.EFF(7),e.k0s()(),e.DNE(8,gt,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG().$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",X.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",X.EnumYesOrNo.Non," "),e.R7$(),e.vxM(8,null!=(G=B.get("renseigementAdditionnels.demandeSpecial"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.demandeSpecial").errors)&&G.required?8:-1)}}function zn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,107),e.k0s())}function dn(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,106),e.k0s(),e.nrm(3,"input",214),e.DNE(4,zn,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG().$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.vxM(4,null!=(G=B.get("renseigementAdditionnels.nomPrenomDemande"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.nomPrenomDemande").errors)&&G.required?4:-1)}}function Wt(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,111),e.k0s())}function En(v,ae){if(1&v&&(e.j41(0,"div")(1,"mat-form-field",157)(2,"mat-label"),e.pXf(3,108),e.k0s(),e.j41(4,"mat-select",215)(5,"mat-option",171),e.pXf(6,109),e.k0s(),e.j41(7,"mat-option",171),e.pXf(8,110),e.k0s()(),e.DNE(9,Wt,2,0,"mat-error"),e.k0s()()),2&v){let G;const B=e.XpG().$implicit,X=e.XpG();e.R7$(4),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(2),e.Y8G("value",!1),e.R7$(2),e.vxM(9,null!=(G=B.get("renseigementAdditionnels.isAutoQuitter"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.isAutoQuitter").errors)&&G.required?9:-1)}}function vn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,115),e.k0s())}function te(v,ae){if(1&v){const G=e.RV6();e.j41(0,"button",218),e.bIt("click",function(){e.eBV(G);const X=e.XpG(3);return e.Njj(X.displayDescription(null==X.questSupp?null:X.questSupp.descAutorisPhoto,"descAutorisPhoto"))}),e.nrm(1,"i",187),e.k0s()}}function je(v,ae){if(1&v&&(e.j41(0,"div",158)(1,"mat-form-field",157)(2,"mat-label"),e.pXf(3,112),e.k0s(),e.j41(4,"mat-select",216)(5,"mat-option",171),e.pXf(6,113),e.k0s(),e.j41(7,"mat-option",171),e.pXf(8,114),e.k0s()(),e.DNE(9,vn,2,0,"mat-error"),e.k0s(),e.DNE(10,te,2,0,"button",217),e.k0s()),2&v){let G;const B=e.XpG().$implicit,X=e.XpG();e.R7$(4),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(2),e.Y8G("value",!1),e.R7$(2),e.vxM(9,null!=(G=B.get("renseigementAdditionnels.autoPhoto"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.autoPhoto").errors)&&G.required?9:-1),e.R7$(),e.vxM(10,null!=X.questSupp&&X.questSupp.descAutorisPhoto?10:-1)}}function $(v,ae){if(1&v){const G=e.RV6();e.j41(0,"button",221),e.bIt("click",function(){e.eBV(G);const X=e.XpG(3);return e.Njj(X.displayDescription(null==X.questSupp?null:X.questSupp.descCodeVie,"descCodeVie"))}),e.nrm(1,"i",187),e.k0s()}}function H(v,ae){if(1&v&&(e.j41(0,"div",158)(1,"mat-checkbox",219),e.pXf(2,116),e.k0s(),e.DNE(3,$,2,0,"button",220),e.k0s()),2&v){const G=e.XpG(2);e.R7$(3),e.vxM(3,null!=G.questSupp&&G.questSupp.descCodeVie?3:-1)}}function Z(v,ae){1&v&&(e.j41(0,"mat-error")(1,"span",222),e.pXf(2,117),e.k0s()())}function Re(v,ae){if(1&v){const G=e.RV6();e.j41(0,"button",225),e.bIt("click",function(){e.eBV(G);const X=e.XpG(3);return e.Njj(X.displayDescription(null==X.questSupp?null:X.questSupp.descRenonRespo,"descRen
1onRespo"))}),e.nrm(1,"i",187),e.k0s()}}function Tt(v,ae){if(1&v&&(e.j41(0,"div",158)(1,"mat-checkbox",223),e.pXf(2,118),e.k0s(),e.DNE(3,Re,2,0,"button",224),e.k0s()),2&v){const G=e.XpG(2);e.R7$(3),e.vxM(3,G.questSupp.descRenonRespo?3:-1)}}function P(v,ae){1&v&&(e.j41(0,"mat-error")(1,"span",222),e.pXf(2,119),e.k0s()())}function me(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,121),e.k0s())}function S(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,123),e.k0s())}function M(v,ae){if(1&v&&(e.j41(0,"mat-form-field",227)(1,"mat-label"),e.pXf(2,122),e.k0s(),e.nrm(3,"textarea",228),e.DNE(4,S,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG(2).$implicit,X=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",X.matcher),e.R7$(),e.vxM(4,null!=(G=B.get("renseigementAdditionnels.autre"))&&G.touched&&null!=(G=B.get("renseigementAdditionnels.autre").errors)&&G.required?4:-1)}}function D(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,120),e.k0s(),e.j41(3,"mat-select",226)(4,"mat-option",171),e.EFF(5),e.k0s(),e.j41(6,"mat-option",171),e.EFF(7),e.k0s()(),e.DNE(8,me,2,0,"mat-error"),e.k0s(),e.DNE(9,M,5,2,"mat-form-field",227)),2&v){let G,B;const X=e.XpG().$implicit,ue=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",ue.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",ue.EnumYesOrNo.Non," "),e.R7$(),e.vxM(8,null!=(G=X.get("renseigementAdditionnels.isAutre"))&&G.touched&&null!=(G=X.get("renseigementAdditionnels.isAutre").errors)&&G.required?8:-1),e.R7$(),e.vxM(9,null!=(B=X.get("renseigementAdditionnels.isAutre"))&&B.value?9:-1)}}function _e(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,126),e.k0s())}function $e(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,132),e.k0s())}function Ge(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,133),e.k0s())}function we(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,134),e.k0s())}function q(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,135),e.k0s())}function mt(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,136),e.k0s())}function kt(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,138),e.k0s())}function Zt(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,137),e.k0s(),e.nrm(3,"input",235),e.DNE(4,kt,2,0,"mat-error"),e.k0s()),2&v){let G;const B=e.XpG().$implicit,X=e.XpG(4);e.R7$(3),e.Y8G("errorStateMatcher",X.matcher)("imask",X.maskPourcentage)("unmask",!0),e.R7$(),e.vxM(4,null!=(G=B.get("pourcentage"))&&G.touched&&null!=(G=B.get("pourcentage").errors)&&G.required?4:-1)}}function jt(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",234)(1,"label",236),e.pXf(2,139),e.k0s(),e.j41(3,"div"),e.EFF(4),e.k0s(),e.j41(5,"button",237),e.bIt("click",function(){e.eBV(G);const X=e.XpG().$index,ue=e.XpG(4);return e.Njj(ue.editNas(X))}),e.j41(6,"span",238),e.pXf(7,140),e.k0s()()()}if(2&v){const G=e.XpG().$implicit;e.R7$(4),e.JRh(G.get("numeroAssuranceSociale").value)}}function Vt(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,142),e.k0s())}function t(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,143),e.k0s())}function _n(v,ae){if(1&v&&(e.j41(0,"mat-form-field",157)(1,"mat-label"),e.pXf(2,141),e.k0s(),e.nrm(3,"input",239),e.DNE(4,Vt,2,0,"mat-error")(5,t,2,0,"mat-error"),e.k0s()),2&v){let G,B;const X=e.XpG().$implicit,ue=e.XpG(4);e.R7$(3),e.Y8G("imask",ue.maskNas)("unmask",!0)("errorStateMatcher",ue.matcher),e.R7$(),e.vxM(4,null!=(G=X.get("numeroAssuranceSociale"))&&G.touched&&null!=(G=X.get("numeroAssuranceSociale").errors)&&G.required?4:-1),e.R7$(),e.vxM(5,null!=(B=X.get("numeroAssuranceSociale"))&&B.touched&&null!=(B=X.get("numeroAssuranceSociale"))&&B.hasError("invalidNas")?5:-1)}}function wn(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",202)(1,"button",203),e.bIt("click",function(){e.eBV(G);const X=e.XpG().$index,ue=e.XpG(3).$index,Ve=e.XpG();return e.Njj(Ve.deletePersonneACharge(ue,X))}),e.nrm(2,"i",204),e.k0s(),e.j41(3,"span",205),e.pXf(4,144),e.k0s()()}if(2&v){let G;const B=e.XpG().$implicit;e.AVh("error-space",(null==(G=B.get("numeroAssuranceSociale"))?null:G.touched)&&(null==(G=B.get("numeroAssuranceSociale"))||null==G.errors?null:G.errors.required))}}function Rt(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",149)(1,"h4",194)(2,"span"),e.pXf(3,127),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.j41(6,"div",156)(7,"mat-form-field",157)(8,"mat-label"),e.pXf(9,128),e.k0s(),e.nrm(10,"input",195),e.DNE(11,$e,2,0,"mat-error"),e.k0s(),e.j41(12,"mat-form-field",157)(13,"mat-label"),e.pXf(14,129),e.k0s(),e.nrm(15,"input",196),e.DNE(16,Ge,2,0,"mat-error"),e.k0s()(),e.j41(17,"div",156)(18,"vplus-adresse-autocomplete",231),e.bIt("adresseChanged",function(X){const ue=e.eBV(G).$implicit,Ve=e.XpG(4);return e.Njj(Ve.onPersonneAChargeAdresseChanged(X,ue))}),e.k0s()(),e.j41(19,"div",156)(20,"mat-form-field",157)(21,"mat-label"),e.pXf(22,130),e.k0s(),e.nrm(23,"input",232),e.DNE(24,we,2,0,"mat-error"),e.k0s(),e.j41(25,"mat-form-field",157)(26,"mat-label"),e.pXf(27,131),e.k0s(),e.nrm(28,"input",233),e.DNE(29,q,2,0,"mat-error")(30,mt,2,0,"mat-error"),e.k0s()(),e.j41(31,"div",156),e.DNE(32,Zt,5,4,"mat-form-field",157)(33,jt,8,1,"div",234)(34,_n,6,5),e.k0s(),e.DNE(35,wn,5,2,"div",201),e.k0s()}if(2&v){let G,B,X,ue,Ve,ht,$t,St,bt,lt;const Kt=ae.$implicit,Ht=ae.$index,Fn=e.XpG(3).$implicit,xn=e.XpG();e.Y8G("formGroupName",Ht),e.R7$(5),e.SpI(" ",Ht+1,""),e.R7$(5),e.Y8G("errorStateMatcher",xn.matcher),e.R7$(),e.vxM(11,null!=(G=Kt.get("prenom"))&&G.touched&&null!=(G=Kt.get("prenom").errors)&&G.required?11:-1),e.R7$(4),e.Y8G("errorStateMatcher",xn.matcher),e.R7$(),e.vxM(16,null!=(B=Kt.get("nom"))&&B.touched&&null!=(B=Kt.get("nom").errors)&&B.required?16:-1),e.R7$(2),e.Y8G("isRequired",(null==(X=Kt.get("adressePostale"))?null:X.touched)&&(null==(X=Fn.get("renseigementAdditionnels.isFraisGardeEnfant"))?null:X.value))("adresseControl",Kt.get("adressePostale"))("showErrorMessage",(null==(ue=Kt.get("adressePostale"))?null:ue.touched)&&(null==(ue=Kt.get("adressePostale"))?null:ue.hasError("required")))("placeholderRequiredIfNotRequired",!(null!=(Ve=Fn.get("renseigementAdditionnels.isFraisGardeEnfant"))&&Ve.value&&null!=(Ve=Kt.get("adressePostale"))&&Ve.touched)),e.R7$(5),e.Y8G("errorStateMatcher",xn.matcher),e.R7$(),e.vxM(24,null!=(ht=Kt.get("ville"))&&ht.touched&&null!=(ht=Kt.get("ville").errors)&&ht.required?24:-1),e.R7$(4),e.Y8G("imask",xn.codePostalMaskObjet)("unmask",!0)("errorStateMatcher",xn.matcher),e.R7$(),e.vxM(29,null!=($t=Kt.get("codePostal"))&&$t.touched&&null!=($t=Kt.get("codePostal").errors)&&$t.required?29:-1),e.R7$(),e.vxM(30,null!=(St=Kt.get("codePostal"))&&St.touched&&null!=(St=Kt.get("codePostal"))&&St.hasError("invalidCodePostal")?30:-1),e.R7$(2),e.vxM(32,(null==(bt=Fn.get("renseigementAdditionnels.personneACharge"))||null==bt.value?null:bt.value.length)>1?32:-1),e.R7$(),e.vxM(33,Kt.get("isEditNas").value?Kt.get("isEditNas").value?34:-1:33),e.R7$(2),e.vxM(35,(null==(lt=Fn.get("renseigementAdditionnels.personneACharge"))||null==lt.value?null:lt.value.length)>1?35:-1)}}function Xn(v,ae){if(1&v&&(e.j41(0,"div",230),e.Z7z(1,Rt,36,20,"div",149,e.Vm6),e.k0s()),2&v){const G=e.XpG(2).$implicit,B=e.XpG();e.R7$(),e.Dyx(B.getFormArray(G,"renseigementAdditionnels.personneACharge").controls)}}function nn(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",193)(1,"button",206),e.bIt("click",function(){e.eBV(G);const X=e.XpG(2).$index,ue=e.XpG();return e.Njj(ue.addPersonneACharge(X))}),e.nrm(2,"i",207),e.k0s(),e.j41(3,"span",205),e.pXf(4,145),e.k0s()()}}function Dn(v,ae){if(1&v&&(e.j41(0,"h3"),e.pXf(1,124),e.k0s(),e.j41(2,"mat-form-field",157)(3,"mat-label"),e.pXf(4,125),e.k0s(),e.j41(5,"mat-select",229)(6,"mat-option",171),e.EFF(7),e.k0s(),e.j41(8,"mat-option",171),e.EFF(9),e.k0s()(),e.DNE(10,_e,2,0,"mat-error"),e.k0s(),e.DNE(11,Xn,3,0,"div",230)(12,nn,5,0,"div",193)),2&v){let G,B,X;const ue=e.XpG().$implicit,Ve=e.XpG();e.R7$(5),e.Y8G("errorStateMatcher",Ve.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.SpI(" ",Ve.EnumYesOrNo.Oui," "),e.R7$(),e.Y8G("value",!1),e.R7$(),e.SpI(" ",Ve.EnumYesOrNo.Non," "),e.R7$(),e.vxM(10,null!=(G=ue.get("renseigementAdditionnels.isFraisGardeEnfant"))&&G.touched&&null!=(G=ue.get("renseigementAdditionnels.isFraisGardeEnfant").errors)&&G.required?10:-1),e.R7$(),e.vxM(11,null!=(B=ue.get("renseigementAdditionnels.isFraisGardeEnfant"))&&B.value?11:-1),e.R7$(),e.vxM(12,(null==(X=ue.get("renseigementAdditionnels.personneACharge"))||null==X.value?null:X.value.length)<2&&null!=(X=ue.get("renseigementAdditionnels.isFraisGardeEnfant"))&&X.value?12:-1)}}function Yn(v,ae){1&v&&(e.j41(0,"mat-error"),e.pXf(1,146),e.k0s())}function Un(v,ae){if(1&v){const G=e.RV6();e.j41(0,"div",149)(1,"mat-expansion-panel",150,0),e.bIt("opened",function(){const X=e.eBV(G).$index,ue=e.XpG();return e.Njj(ue.openParticipant(X))}),e.j41(3,"mat-expansion-panel-header",151)(4,"mat-panel-title",152)(5,"b"),e.EFF(6),e.nI1(7,"trim"),e.nI1(8,"trim"),e.k0s()(),e.j41(9,"div",153),e.nrm(10,"i",154),e.k0s()(),e.j41(11,"form",155)(12,"div"),e.DNE(13,zt,18,8)(14,re,12,7,"div",156)(15,w,10,7)(16,ft,10,7)(17,wt,9,6,"mat-form-field",157)(18,pt,10,7)(19,ln,10,7)(20,On,11,5,"div",158)(21,ii,13,8)(22,se,5,3)(23,he,2,0,"h3")(24,ze,9,6,"mat-form-field",157)(25,Mt,7,2,"mat-form-field",157)(26,Ut,9,6,"mat-form-field",157)(27,fn,9,6,"mat-form-field",157)(28,dn,5,2,"mat-form-field",157)(29,En,10,4,"div")(30,je,11,5,"div",158)(31,H,4,1,"div",158)(32,Z,3,0,"mat-error")(33,Tt,4,1,"div",158)(34,P,3,0,"mat-error")(35,D,10,7)(36,Dn,13,8),e.j41(37,"div",159)(38,"button",160),e.bIt("click",function(){const X=e.eBV(G).$index,ue=e.XpG();return e.Njj(ue.confirmParticipant(X))}),e.j41(39,"span"),e.pXf(40,3),e.k0s()()(),e.DNE(41,Yn,2,0,"mat-error"),e.k0s()()()()}if(2&v){let G,B,X,ue,Ve;const ht=ae.$implicit,$t=ae.$index,St=ae.$index,bt=e.sdS(2),lt=e.XpG();e.Y8G("formGroupName",$t),e.R7$(),e.AVh("margin-top-2-imp",0!==St),e.Y8G("expanded",lt.openedParticipantIndexArray.includes($t)),e.R7$(2),e.Y8G("collapsedHeight","80px")("expandedHeight","80px"),e.R7$(3),e.Lme("",e.bMT(7,38,ht.get("prenom").value),"\xa0",e.bMT(8,40,ht.get("nom").value),""),e.R7$(4),e.AVh("icon-chevron-up",!bt.expanded)("icon-chevron-down",bt.expanded),e.R7$(),e.Y8G("formGroup",ht.get("renseigementAdditionnels")),e.R7$(2),e.vxM(13,lt.questSupp.hasNoAssurance?13:-1),e.R7$(),e.vxM(14,lt.questSupp.hasInfoMedecin?14:-1),e.R7$(),e.vxM(15,lt.questSupp.hasAllergieMed?15:-1),e.R7$(),e.vxM(16,lt.questSupp.hasAllergieAlim?16:-1),e.R7$(),e.vxM(17,null!=(G=ht.get("renseigementAdditionnels.isAllergiesMedicaments"))&&G.value||null!=(G=ht.get("renseigementAdditionnels.isAllergiesAlimentaires"))&&G.value?17:-1),e.R7$(),e.vxM(18,lt.questSupp.hasPriseMed?18:-1),e.R7$(),e.vxM(19,lt.questSupp.hasConditionPhy?19:-1),e.R7$(),e.vxM(20,lt.questSupp.hasConsentementSoin?20:-1),e.R7$(),e.vxM(21,lt.questSupp.hasRegimeAlim?21:-1),e.R7$(),e.vxM(22,lt.questSupp.hasContactUrg||lt.questSupp.hasPersAutorise||lt.questSupp.hasTuteurLeg?22:-1),e.R7$(),e.vxM(23,lt.questSupp.hasPortLun||lt.questSupp.hasNiveauNatation||lt.questSupp.hasNeedJacket||lt.questSupp.hasDemandeSpeciale||lt.questSupp.hasAutoPhoto||lt.questSupp.hasCodeVie||lt.questSupp.hasRenonRespo?23:-1),e.R7$(),e.vxM(24,lt.questSupp.hasPortLun?24:-1),e.R7$(),e.vxM(25,lt.questSupp.hasNiveauNatation?25:-1),e.R7$(),e.vxM(26,lt.questSupp.hasNeedJacket?26:-1),e.R7$(),e.vxM(27,lt.questSupp.hasDemandeSpeciale?27:-1),e.R7$(),e.vxM(28,null!=(B=ht.get("renseigementAdditionnels.demandeSpecial"))&&B.value?28:-1),e.R7$(),e.vxM(29,lt.questSupp.hasAutoQuitter?29:-1),e.R7$(),e.vxM(30,lt.questSupp.hasAutoPhoto?30:-1),e.R7$(),e.vxM(31,lt.questSupp.hasCodeVie?31:-1),e.R7$(),e.vxM(32,null!=(X=ht.get("renseigementAdditionnels.codeVie"))&&X.touched&&null!=(X=ht.get("renseigementAdditionnels.codeVie").errors)&&X.required?32:-1),e.R7$(),e.vxM(33,lt.questSupp.hasRenonRespo?33:-1),e.R7$(),e.vxM(34,null!=(ue=ht.get("renseigementAdditionnels.renonRespo"))&&ue.touched&&null!=(ue=ht.get("renseigementAdditionnels.renonRespo").errors)&&ue.required?34:-1),e.R7$(),e.vxM(35,lt.questSupp.hasAutre?35:-1),e.R7$(),e.vxM(36,lt.questSupp.hasInfoRelative?36:-1),e.R7$(5),e.vxM(41,null!=(Ve=lt.participantsFA.get(e.eq3(42,dt,$t)))&&
1Ve.hasError("totalPourcentageIncorrect")?41:-1)}}let ai=(()=>{var v;class ae{constructor(){this.fb=(0,e.WQX)(A.ok),this.appConfig=(0,e.WQX)(x.o),this.dialog=(0,e.WQX)(Ae.bZ),this.localisationService=(0,e.WQX)(U.A),this.destroyRef=(0,e.WQX)(e.abz),this.isSession=!1,this.showTitle=!0,this.openedParticipantIndexArray=[0],this.allergiesAlimentaires=Object.values(y.K6),this.EnumYesOrNo=y.x2,this.assMaladieMask=C.trO,this.maskPourcentage=C.d0d,this.maskNas=C.NGV,this.codePostalMaskObjet=C.fJE,this.matcher=new C.HIC,this.EnumFamilleMembreLien=a.Qu.sort((B,X)=>B.nom.localeCompare(X.nom)),this.enumNiveauNatation=Object.values(y.CV),this.requiredValidator=A.k0.required,this.telMaskObjet=this.appConfig.appConfig.telMaskObjet,this.dateFormControl=new A.MJ(R()())}initForm(){var B,X,ue,Ve,ht,$t,St,bt,lt,Kt,Ht,Fn,xn,bn,Wn,qn,ti,li,It,yn;this.openedParticipantIndexArray=[0];const Le=this.fb.group({numeroAssurance:new A.MJ(null,{validators:[(0,C.aI8)()],updateOn:"blur"}),dateExpiration:new A.MJ(null),nomMedecin:new A.MJ(null,null!==(B=this.questSupp)&&void 0!==B&&B.hasInfoMedecin?[A.k0.required]:[]),telephoneMedecin:new A.MJ(null,{validators:null!==(X=this.questSupp)&&void 0!==X&&X.hasInfoMedecin?[A.k0.required,A.k0.pattern(this.appConfig.appConfig.telPattern)]:[],updateOn:"blur"}),isAllergiesMedicaments:new A.MJ(null,null!==(ue=this.questSupp)&&void 0!==ue&&ue.hasAllergieMed?[A.k0.required]:[]),listeAllergiesMedicaments:new A.MJ(null),medicamentsContreAllergies:new A.MJ(null),injection:new A.MJ(null),isAllergiesAlimentaires:new A.MJ(null,null!==(Ve=this.questSupp)&&void 0!==Ve&&Ve.hasAllergieAlim?[A.k0.required]:[]),listeAllergiesAlimentaires:new A.MJ(null),isPriseMed:new A.MJ(null,null!==(ht=this.questSupp)&&void 0!==ht&&ht.hasPriseMed?[A.k0.required]:[]),medicationPrise:new A.MJ(null),medicamentsAllergiesAlimentaires:new A.MJ(null),medicamentsAllergiesMedicamentueuse:new A.MJ(null),troublesComportement:new A.MJ(null,null!==($t=this.questSupp)&&void 0!==$t&&$t.hasConditionPhy?[A.k0.required]:[]),descriptionComportement:new A.MJ(null,null!==(St=this.questSupp)&&void 0!==St&&St.hasConditionPhy?[A.k0.required]:[]),descriptionRegime:new A.MJ(null,null!==(bt=this.questSupp)&&void 0!==bt&&bt.hasRegimeAlim?[A.k0.required]:[]),regimeAlimentaire:new A.MJ(null),medicamentsContreAllergiesAlimentaire:new A.MJ(null),isConsentementMedical:new A.MJ(null,null!==(lt=this.questSupp)&&void 0!==lt&<.hasConsentementSoin?[A.k0.required]:[]),isRegimeAlimentaire:new A.MJ(null,null!==(Kt=this.questSupp)&&void 0!==Kt&&Kt.hasRegimeAlim?[A.k0.required]:[]),isPortLunette:new A.MJ(null,null!==(Ht=this.questSupp)&&void 0!==Ht&&Ht.hasPortLun?[A.k0.required]:[]),niveauNatation:new A.MJ(null,null!==(Fn=this.questSupp)&&void 0!==Fn&&Fn.hasNiveauNatation?[A.k0.required]:[]),needJacket:new A.MJ(null,null!==(xn=this.questSupp)&&void 0!==xn&&xn.hasNeedJacket?[A.k0.required]:[]),demandeSpecial:new A.MJ(null,null!==(bn=this.questSupp)&&void 0!==bn&&bn.hasDemandeSpeciale?[A.k0.required]:[]),nomPrenomDemande:new A.MJ(null),isAutoQuitter:new A.MJ(null,null!==(Wn=this.questSupp)&&void 0!==Wn&&Wn.hasAutoQuitter?[A.k0.required]:[]),autoPhoto:new A.MJ(null,null!==(qn=this.questSupp)&&void 0!==qn&&qn.hasAutoPhoto?[A.k0.required]:[]),codeVie:new A.MJ(null,null!==(ti=this.questSupp)&&void 0!==ti&&ti.hasCodeVie?[A.k0.requiredTrue]:[]),isAutre:new A.MJ(null,null!==(li=this.questSupp)&&void 0!==li&&li.hasAutre?[A.k0.required]:[]),autre:new A.MJ(null),renonRespo:new A.MJ(null,null!==(It=this.questSupp)&&void 0!==It&&It.hasRenonRespo?[A.k0.requiredTrue]:[]),isFraisGardeEnfant:new A.MJ(null,null!==(yn=this.questSupp)&&void 0!==yn&&yn.hasInfoRelative?[A.k0.required]:[]),contactUrgence:new A.Yp([]),personneAutorisee:new A.Yp([]),personneACharge:new A.Yp([]),tuteurLegal:new A.Yp([])});Le.get("contactUrgence").setDefaultControlBuilder(this.createFormContactUrgence.bind(this)),Le.get("personneAutorisee").setDefaultControlBuilder(this.createFormPersonneAutorisee.bind(this));const un=Le.get("personneACharge");return un.setDefaultControlBuilder(this.createFormPersonneACharge.bind(this)),un.valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{if(2===qt.length){const Dt=un.at(0).get("pourcentage"),An=un.at(1).get("pourcentage");Dt.valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(Ai=>{const ni=100-(0,C.BYj)(Ai);An.setValue(ni.toString(),{emitEvent:!1})}),An.valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(Ai=>{const ni=100-(0,C.BYj)(Ai);Dt.setValue(ni.toString(),{emitEvent:!1})})}}),Le.get("tuteurLegal").setDefaultControlBuilder(this.createFormTuteurLegal.bind(this)),Le.get("isAllergiesMedicaments").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{qt?(Le.get("listeAllergiesMedicaments").addValidators(A.k0.required),Le.get("medicamentsContreAllergies").addValidators(A.k0.required),Le.get("injection").addValidators(A.k0.required)):(Le.get("listeAllergiesMedicaments").clearValidators(),Le.get("listeAllergiesMedicaments").setErrors(null),Le.get("medicamentsContreAllergies").clearValidators(),Le.get("medicamentsContreAllergies").setErrors(null),Le.get("injection").clearValidators(),Le.get("injection").setErrors(null),Le.get("medicamentsAllergiesMedicamentueuse").clearValidators(),Le.get("medicamentsAllergiesMedicamentueuse").setErrors(null)),Le.get("listeAllergiesMedicaments").markAsUntouched(),Le.get("medicamentsAllergiesMedicamentueuse").markAsUntouched(),Le.get("medicamentsContreAllergies").markAsUntouched(),Le.get("injection").markAsUntouched(),Le.get("injection").updateV
1alueAndValidity(),Le.get("listeAllergiesMedicaments").updateValueAndValidity(),Le.get("medicamentsContreAllergies").updateValueAndValidity(),Le.get("medicamentsAllergiesMedicamentueuse").updateValueAndValidity()}),Le.get("medicamentsContreAllergies").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{qt&&Le.get("isAllergiesMedicaments").value?Le.get("medicamentsAllergiesMedicamentueuse").addValidators(A.k0.required):(Le.get("medicamentsAllergiesMedicamentueuse").clearValidators(),Le.get("medicamentsAllergiesMedicamentueuse").setErrors(null)),Le.get("medicamentsAllergiesMedicamentueuse").markAsUntouched(),Le.get("medicamentsAllergiesMedicamentueuse").updateValueAndValidity()}),Le.get("isAllergiesAlimentaires").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{qt?(Le.get("listeAllergiesAlimentaires").addValidators(A.k0.required),Le.get("medicamentsAllergiesAlimentaires").addValidators(A.k0.required),Le.get("injection").addValidators(A.k0.required)):(Le.get("listeAllergiesAlimentaires").clearValidators(),Le.get("listeAllergiesAlimentaires").setErrors(null),Le.get("medicamentsAllergiesAlimentaires").clearValidators(),Le.get("medicamentsAllergiesAlimentaires").setErrors(null),Le.get("injection").clearValidators(),Le.get("injection").setErrors(null),Le.get("medicamentsContreAllergiesAlimentaire").clearValidators(),Le.get("medicamentsContreAllergiesAlimentaire").setErrors(null)),Le.get("injection").markAsUntouched(),Le.get("listeAllergiesAlimentaires").markAsUntouched(),Le.get("medicamentsAllergiesAlimentaires").markAsUntouched(),Le.get("medicamentsContreAllergiesAlimentaire").markAsUntouched(),Le.get("injection").markAsUntouched(),Le.get("injection").updateValueAndValidity(),Le.get("listeAllergiesAlimentaires").updateValueAndValidity(),Le.get("medicamentsAllergiesAlimentaires").updateValueAndValidity(),Le.get("medicamentsContreAllergiesAlimentaire").updateValueAndValidity()}),Le.get("isPriseMed").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{qt?Le.get("medicationPrise").addValidators(A.k0.required):(Le.get("medicationPrise").clearValidators(),Le.get("medicationPrise").setErrors(null)),Le.get("medicationPrise").markAsUntouched(),Le.get("medicationPrise").updateValueAndValidity()}),Le.get("demandeSpecial").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{qt?Le.get("nomPrenomDemande").addValidators(A.k0.required):(Le.get("nomPrenomDemande").clearValidators(),Le.get("nomPrenomDemande").setErrors(null)),Le.get("nomPrenomDemande").markAsUntouched(),Le.get("nomPrenomDemande").updateValueAndValidity()}),Le.get("isAutre").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{qt?Le.get("autre").addValidators(A.k0.required):(Le.get("autre").clearValidators(),Le.get("autre").setErrors(null)),Le.get("autre").markAsUntouched(),Le.get("autre").updateValueAndValidity()}),Le.get("medicamentsAllergiesAlimentaires").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{qt&&Le.get("isAllergiesAlimentaires").value?Le.get("medicamentsContreAllergiesAlimentaire").addValidators(A.k0.required):(Le.get("medicamentsContreAllergiesAlimentaire").clearValidators(),Le.get("medicamentsContreAllergiesAlimentaire").setErrors(null)),Le.get("medicamentsContreAllergiesAlimentaire").markAsUntouched(),Le.get("medicamentsContreAllergiesAlimentaire").updateValueAndValidity()}),Le.get("troublesComportement").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{qt?Le.get("descriptionComportement").addValidators(A.k0.required):(Le.get("descriptionComportement").clearValidators(),Le.get("descriptionComportement").setErrors(null)),Le.get("descriptionComportement").markAsUntouched(),Le.get("descriptionComportement").updateValueAndValidity()}),Le.get("isRegimeAlimentaire").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{qt?Le.get("regimeAlimentaire").addValidators(A.k0.required):(Le.get("regimeAlimentaire").clearValidators(),Le.get("regimeAlimentaire").setErrors(null),Le.get("descriptionRegime").clearValidators(),Le.get("descriptionRegime").setErrors(null)),Le.get("regimeAlimentaire").markAsUntouched(),Le.get("descriptionRegime").markAsUntouched(),Le.get("regimeAlimentaire").updateV
1alueAndValidity(),Le.get("descriptionRegime").updateValueAndValidity()}),Le.get("regimeAlimentaire").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{null!=qt&&qt.includes("Autre")&&Le.get("isRegimeAlimentaire").value?Le.get("descriptionRegime").addValidators(A.k0.required):(Le.get("descriptionRegime").clearValidators(),Le.get("descriptionRegime").setErrors(null)),Le.get("descriptionRegime").markAsUntouched(),Le.get("descriptionRegime").updateValueAndValidity()}),Le.get("isFraisGardeEnfant").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(qt=>{qt?(0===un.length&&un.push(this.createFormPersonneACharge()),un.length>1&&un.setValidators(C.GZy)):(un.clearValidators(),un.setErrors(null)),un.markAsUntouched(),un.updateValueAndValidity(),un.controls.forEach(Dt=>{qt?(Dt.get("prenom").addValidators(A.k0.required),Dt.get("nom").addValidators(A.k0.required),Dt.get("adressePostale").addValidators(A.k0.required),Dt.get("ville").addValidators(A.k0.required),Dt.get("codePostal").addValidators([A.k0.required,(0,C.$Gt)()]),un.length>1?Dt.get("pourcentage").addValidators(A.k0.required):(Dt.get("pourcentage").clearValidators(),Dt.get("pourcentage").value||Dt.get("pourcentage").setValue("100"))):(Dt.get("prenom").clearValidators(),Dt.get("nom").clearValidators(),Dt.get("adressePostale").clearValidators(),Dt.get("ville").clearValidators(),Dt.get("codePostal").clearValidators(),Dt.get("pourcentage").clearValidators(),Dt.clearValidators(),Dt.get("prenom").setErrors(null),Dt.get("nom").setErrors(null),Dt.get("adressePostale").setErrors(null),Dt.get("ville").setErrors(null),Dt.get("codePostal").setErrors(null),Dt.get("pourcentage").setErrors(null)),Dt.get("prenom").markAsUntouched(),Dt.get("nom").markAsUntouched(),Dt.get("adressePostale").markAsUntouched(),Dt.get("ville").markAsUntouched(),Dt.get("codePostal").markAsUntouched(),Dt.get("pourcentage").markAsUntouched(),Dt.get("prenom").updateValueAndValidity(),Dt.get("nom").updateValueAndValidity(),Dt.get("adressePostale").updateValueAndValidity(),Dt.get("ville").updateValueAndValidity(),Dt.get("codePostal").updateValueAndValidity(),Dt.get("pourcentage").updateValueAndValidity()})}),Le.get("personneACharge").valueChanges.pipe((0,Ce.pQ)(this.destroyRef)).subscribe(()=>{const qt=un.controls.length;if(qt>1)un.setValidators(C.GZy),un.controls.forEach(Dt=>{const An=Dt.get("pourcentage");Le.get("isFraisGardeEnfant").value?(An.setValidators(A.k0.required),An.updateValueAndValidity({emitEvent:!1})):(An.clearValidators(),An.markAsUntouched(),An.updateValueAndValidity({emitEvent:!1}))});else if(1===qt){un.clearValidators(),un.setErrors(null);const An=un.at(0).get("pourcentage");An.value||An.setValue("100"),An.clearValidators(),An.updateValueAndValidity({emitEvent:!1})}un.updateValueAndValidity({emitEvent:!1})}),Le}getFormArray(B,X){return B.get(X)}createFormContactUrgence(){var B,X,ue,Ve;return new A.gE({prenom:new A.MJ(null,null!==(B=this.questSupp)&&void 0!==B&&B.hasContactUrg?[A.k0.required]:[]),nom:new A.MJ(null,null!==(X=this.questSupp)&&void 0!==X&&X.hasContactUrg?[A.k0.required]:[]),telephoneCellulaire:new A.MJ(null,{validators:null!==(ue=this.questSupp)&&void 0!==ue&&ue.hasContactUrg?[A.k0.required,A.k0.pattern(this.appConfig.appConfig.telPattern)]:[],updateOn:"blur"}),telephoneMaison:new A.MJ(null,{validators:A.k0.pattern(this.appConfig.appConfig.telPattern),updateOn:"blur"}),lien:new A.MJ(null,null!==(Ve=this.questSupp)&&void 0!==Ve&&Ve.hasContactUrg?[A.k0.required]:[])})}addContactUrgence(B){const X=this.form.get([this.isSession?"membres":"participants",B,"renseigementAdditionnels","contactUrgence"]);(null==X?void 0:X.length)<3&&X.push(this.createFormContactUrgence())}selectYear(B){const X=this.dateFormControl.value;X.year(B.year()),this.dateFormControl.setValue(X)}selectMonth(B,X,ue){const Ve=this.dateFormControl.value;Ve.month(B.month()),ue.setValue(Ve),X.close()}createFormPersonneAutorisee(){var B;const X=null!==(B=this.questSupp)&&void 0!==B&&B.hasPersAutorise?A.k0.required:[];return new A.gE({prenom:new A.MJ(null,X),nom:new A.MJ(null,X),telephoneCellulaire:new A.MJ(null,{validators:A.k0.pattern(this.appConfig.appConfig.telPattern),updateOn:"blur"}),telephoneMaison:new A.MJ(null,{validators:A.k0.pattern(this.appConfig.appConfig.telPattern),updateOn:"blur"}),lien:new A.MJ(null,X)})}addPersonneAutorisee(B){const X=this.form.get([this.isSession?"membres":"participants",B,"renseigementAdditionnels","personneAutorisee"]);(null==X?void 0:X.length)<5&&X.push(this.createFormPersonneAutorisee())}createFormPersonneACharge(){return new A.gE({prenom:new A.MJ(null,A.k0.required),nom:new A.MJ(null,A.k0.required),adressePostale:ne
1w A.MJ(null,A.k0.required),ville:new A.MJ(null,A.k0.required),codePostal:new A.MJ(null,[A.k0.required,(0,C.$Gt)()]),pourcentage:new A.MJ(null,A.k0.required),numeroAssuranceSociale:new A.MJ(null,{validators:[(0,C.NSs)()],updateOn:"blur"}),numeroAssuranceSocialeEncrypted:new A.MJ(null),isEditNas:new A.MJ(!0)})}onPersonneAChargeAdresseChanged(B,X){var ue,Ve,ht,$t,St;const bt={adressePostale:null!==(ue=null==B?void 0:B.adresse)&&void 0!==ue?ue:null,ville:null!==(Ve=null==B?void 0:B.adrVille)&&void 0!==Ve?Ve:null},lt=null!==(ht=null==B||null===($t=B.adrCodePostal)||void 0===$t?void 0:$t.replace(/\s/g,""))&&void 0!==ht?ht:null;(lt||!(null!==(St=X.get("codePostal"))&&void 0!==St&&St.value))&&(bt.codePostal=lt),X.patchValue(bt)}editNas(B){const X=this.form.get([this.isSession?"membres":"participants",B,"renseigementAdditionnels","personneACharge"]),ue=X.at(B).get("numeroAssuranceSociale"),Ve=X.at(B).get("isEditNas");ue.patchValue(null),Ve.patchValue(!0)}addPersonneACharge(B){var X,ue;const Ve=this.form.get([this.isSession?"membres":"participants",B,"renseigementAdditionnels","personneACharge"]);(null==Ve||null===(X=Ve.controls)||void 0===X?void 0:X.length)<2&&Ve.push(this.createFormPersonneACharge()),2===(null==Ve||null===(ue=Ve.controls)||void 0===ue?void 0:ue.length)&&Ve.controls.forEach(ht=>{ht.get("pourcentage").patchValue("50")})}createFormTuteurLegal(){var B,X;const ue=null!==(B=this.questSupp)&&void 0!==B&&B.hasTuteurLeg?[A.k0.required]:[];return new A.gE({prenom:new A.MJ(null,ue),nom:new A.MJ(null,ue),telephoneCellulaire:new A.MJ(null,{validators:[...ue,A.k0.pattern(this.appConfig.appConfig.telPattern)],updateOn:"blur"}),courriel:new A.MJ(null,{validators:null!==(X=this.questSupp)&&void 0!==X&&X.hasTuteurLeg?[(0,C.Bjz)()]:[],updateOn:"blur"}),lien:new A.MJ(null,ue)})}addTuteurLegal(B){const X=this.form.get([this.isSession?"membres":"participants",B,"renseigementAdditionnels","tuteurLegal"]);(null==X?void 0:X.length)<2&&X.push(this.createFormTuteurLegal())}deleteContactUrgence(B,X){this.form.get([this.isSession?"membres":"participants",B,"renseigementAdditionnels","contactUrgence"]).removeAt(X)}deletePersonneAutorisee(B,X){this.form.get([this.isSession?"membres":"participants",B,"renseigementAdditionnels","personneAutorisee"]).removeAt(X)}deletePersonneACharge(B,X){var ue;const Ve=this.form.get([this.isSession?"membres":"participants",B,"renseigementAdditionnels","personneACharge"]);Ve.removeAt(X),1===(null==Ve||null===(ue=Ve.value)||void 0===ue?void 0:ue.length)&&(null==Ve||Ve.at(0).get("pourcentage").patchValue("100"))}deleteTuteurLegal(B,X){this.form.get([this.isSession?"membres":"participants",B,"renseigementAdditionnels","tuteurLegal"]).removeAt(X)}displayDescription(B,X){var ue;const Ve=this.localisationService.getCurrentLocalisation();let ht=B.localisations.find($t=>$t.lclzTag===Ve);(!ht||""===(null===(ue=ht)||void 0===ue||null===(ue=ue.description)||void 0===ue?void 0:ue.trim()))&&(ht=B.localisations.find($t=>$t.lclzTag===y.fi.FR)),this.dialog.open(Te.V,{data:{title:(0,C.o5K)(X),htmlContent:ht.description,closeAction:!0},width:y.Uq.Small})}confirmParticipant(B){this.participantsFA.get(`${B}`).invalid?this.participantsFA.get(`${B}`).markAllAsTouched():this.openedParticipantIndexArray=[B+1]}onNumeroAssuranceInput(B,X){const ue=X.get("renseigementAdditionnels.dateExpiration");(null==B?void 0:B.trim().length)>0?ue.addValidators(A.k0.required):(ue.clearValidators(),ue.setErrors(null)),ue.updateValueAndValidity({emitEvent:!1})}openParticipant(B){this.openedParticipantIndexArray.includes(B)||this.openedParticipantIndexArray.push(B)}}return(v=ae).\u0275fac=function(B){return new(B||v)},v.\u0275cmp=e.VBU({type:v,selectors:[["vplus-activite-citoyen-renseignements-additionnels"]],inputs:{form:"form",participantsFA:"participantsFA",questSupp:"questSupp",isSession:"isSession",showTitle:"showTitle"},standalone:!0,features:[e.Jv_([{provide:de.MJ,useClass:O.QH,deps:[de.Ju,O.ij]},{provide:de.de,useValue:C.JKX}]),e.aNF],decls:4,vars:2,consts:()=>{let G,B,X,ue,Ve,ht,$t,St,bt,lt,Kt,Ht,Fn,xn,bn,Wn,qn,ti,li,It,yn,Le,Gn,wi,un,Xi,qt,Dt,An,Ai,ui,ni,pi,go,Ui,Pi,Ir,Ii,Ri,vi,Ao,Bn,Io,Ei,ji,No,Hi,zi,Di,bi,ho,So,Ni,yi,Yi,Mo,_i,Li,Si,Oo,Po,Bi,Mi,Ro,Vi,Wi,vo,Do,qi,Qi,bo,yo,Lo,Vo,Ji,Ki,$o,xo,Zi,Go,Fo,eo,ko,wo,Xo,Uo,jo,to,Ho,$i,no,io,zo,Yo,mi,Mn,oo,xi,ro,Bo,so,Wo,Oi,ao,qo,Qo,Jo,Ko,Zo,lo,er,_o,tr,co,nr,ir,uo,or,rr,Eo,sr,fo,ar,lr,Co,_r,Gi,po,Ti,cr,f,s,c,_,E,m,h,V,W,Q,le,Pe,Xe,Oe,st,k,fe,Me,ut;return G="Renseignements additionnels des participants",B="Confirmer",X="Informations m\xE9dicales",ue="Num\xE9ro d\u2019assurance maladie",Ve="Date d'expiration",ht="Format attendu : AAAA 0000 0000",$t="Champ obligatoire",St="Nom du m\xE9decin",bt="T\xE9l\xE9phone du m\xE9decin",lt=" Champ obligatoire ",Kt=" Champ obligatoire ",Ht=" T\xE9l\xE9phone non valide ",Fn="Allergies m\xE9dicamenteuses",xn=" Champ obligatoire ",bn="Veuillez pr\xE9ciser les allergies m\xE9dicamenteuses",Wn="Des m\xE9dicaments sont-ils utilis\xE9s pour traiter les allergies m\xE9dicamenteuses?",qn=" Champ obligatoire ",ti=" Champ obligatoire ",li="Veuillez pr\xE9ciser les m\xE9dicaments utilis\xE9s pour traiter les allergies m\xE9dicamenteuses",It=" Champ obligatoire ",yn="Allergies alimentaires",Le=" Champ obligatoire ",G
1n="Veuillez pr\xE9ciser les allergies alimentaires",wi="Des m\xE9dicaments sont-ils utilis\xE9s pour traiter les allergies alimentaires?",un=" Champ obligatoire ",Xi=" Champ obligatoire ",qt="Veuillez pr\xE9ciser les m\xE9dicaments utilis\xE9s pour traiter les allergies alimentaires",Dt=" Champ obligatoire ",An="A-t-il son auto-injecteur d'adr\xE9naline (EpiPen) avec lui?",Ai=" Champ obligatoire ",ui="Prise de m\xE9dication",ni=" Champ obligatoire ",pi="Veuillez sp\xE9cifier la m\xE9dication prise, incluant les quantit\xE9s et moments",go=" Champ obligatoire ",Ui="Maladie(s) et trouble(s) de comportement",Pi=" Champ obligatoire ",Ir="Veuillez pr\xE9ciser les maladies et troubles de comportement",Ii=" Champ obligatoire ",Ri="Plus d'informations",vi="Autorisation pour les soins m\xE9dicaux en cas d\u2019urgence",Ao=" J\u2019autorise \xE0 prodiguer les soins m\xE9dicaux n\xE9cessaires en cas d\u2019urgence ",Bn=" Je n\u2019autorise pas \xE0 prodiguer les soins m\xE9dicaux n\xE9cessaires en cas d\u2019urgence ",Io=" Champ obligatoire ",Ei="R\xE9gime alimentaire",ji="R\xE9gime alimentaire particulier",No=" Champ obligatoire ",Hi="Veuillez s\xE9lectionner le r\xE9gime alimentaire",zi=" Champ obligatoire ",Di="Veuillez pr\xE9ciser le r\xE9gime alimentaire",bi=" Champ obligatoire ",ho="Informations sur les contacts",So="Tuteur l\xE9gal",Ni="Pr\xE9nom",yi="Nom",Yi="T\xE9l\xE9phone cellulaire",Mo="Courriel",_i="Lien",Li=" Champ obligatoire ",Si=" Champ obligatoire ",Oo=" Champ obligatoire ",Po=" Champ obligatoire ",Bi=" Champ obligatoire ",Mi=" Courriel invalide ",Ro=" Champ obligatoire ",Vi="Retirer le tuteur",Wi="Ajouter un tuteur l\xE9gal",vo="Contact en cas d'urgence",Do="(autre qu'un tuteur l\xE9gal)",qi="Pr\xE9nom",Qi="Nom",bo="T\xE9l\xE9phone cellulaire",yo="T\xE9l\xE9phone maison",Lo="Lien",Vo="Retirer le contact en cas d'urgence (autre qu'un tuteur l\xE9gal)",Ji=" Champ obligatoire ",Ki=" Champ obligatoire ",$o=" Champ obligatoire ",xo=" T\xE9l\xE9phone non valide ",Zi=" T\xE9l\xE9phone non valide ",Go=" Champ obligatoire ",Fo="Ajouter un contact en cas d\u2019urgence (autre qu\u2019un tuteur l\xE9gal)",eo="Personne autoris\xE9e \xE0 quitter avec l'enfant",ko="(autre qu\u2019un tuteur l\xE9gal)",wo="Pr\xE9nom",Xo="Nom",Uo="T\xE9l\xE9phone cellulaire",jo="T\xE9l\xE9phone maison",to="Lien",Ho="Retirer la personne autoris\xE9e \xE0 quitter avec l'enfant (autre qu\u2019un tuteur l\xE9gal)",$i=" Champ obligatoire ",no=" Champ obligatoire ",io=" Champ obligatoire ",zo=" T\xE9l\xE9phone non valide ",Yo=" T\xE9l\xE9phone non valide ",mi=" Champ obligatoire ",Mn="Ajouter une personne autoris\xE9e \xE0 quitter avec l'enfant (autre qu\u2019un tuteur l\xE9gal)",oo="Informations suppl\xE9mentaires",xi="Port de lunettes",ro=" Champ obligatoire ",Bo="Niveau de natation",so=" Champ obligatoire ",Wo="N\xE9cessite un gilet de flottaison",Oi=" Champ obligatoire ",ao="Demande sp\xE9ciale pour \xEAtre avec des amis",qo=" Champ obligatoire ",Qo="Veuillez indiquer les pr\xE9noms et noms",Jo=" Champ obligatoire ",Ko="Autorisation \xE0 quitter seul",Zo=" J'autorise \xE0 quitter seul \xE0 la fin de l'activit\xE9 ",lo=" Je n'autorise pas \xE0 quitter seul \xE0 la fin de l'activit\xE9 ",er=" Champ obligatoire ",_o="Plus d'informations",tr="Autorisation pour la prise de photos",co=" J\u2019autorise la prise de photos ",nr=" Je n\u2019autorise pas la prise de photos ",ir=" Champ obligatoire ",uo="Plus d'informations",or="J\u2019adh\xE8re au code de vie *",rr=" Champ obligatoire ",Eo="Plus d'informations",sr=" J\u2019accepte de d\xE9charger la ville et les organisateurs de l'activit\xE9 de toute responsabilit\xE9 en cas d'incident ou d'accident * ",fo=" Champ obligatoire ",ar="Avez-vous d'autres informations \xE0 nous partager?",lr=" Champ obligatoire ",Co="Veuillez sp\xE9cifier les informations suppl\xE9mentaires",_r=" Champ obligatoire ",Gi="Relev\xE9 24",po="Souhaitez-vous r\xE9clamer les frais de garde pour l\u2019enfant?",Ti=" Champ obligatoire ",cr="Personne r\xE9clamant les frais de garde",f="Pr\xE9nom",s="Nom",c="Ville",_="Code Postal",E=" Champ obligatoire ",m=" Champ obligatoire ",h=" Champ obligatoire ",V=" Champ obligatoire ",W="Le code postal est invalide. Format attendu : A1A 1A1",Q="Pourcentage r\xE9clam\xE9",le=" Champ obligatoire ",Pe="Num\xE9ro d\u2019assurance sociale",Xe="\xC9diter",Oe="Num\xE9ro d\u2019assurance sociale",st="Champ obligatoire",k="Le num\xE9ro d'assurance sociale est invalide. Format attendu : 000 000 000",fe="Retirer la personne r\xE9clamant les frais de garde",Me="Ajouter une personne r\xE9clamant les frais de garde",ut=" Le total des pourcentages r\xE9clam\xE9s doit \xEAtre \xE9gal \xE0 100% ",[["expansionPanel",""],["picker",""],G,B,X,ue,Ve,ht,$t,St,bt,lt,Kt,Ht,Fn,xn,bn,Wn,qn,ti,li,It,yn,Le,Gn,wi,un,Xi,qt,Dt,An,Ai,ui,ni,pi,go,Ui,Pi,Ir,Ii,vi,Ao,Bn,Io,Ei,ji,No,Hi,zi,Di,bi,ho,So,Ni,yi,Yi,Mo,_i,Li,Si,Oo,Po,Bi,Mi,Ro,Vi,Wi,vo,Do,qi,Qi,bo,yo,Lo,Vo,Ji,Ki,$o,xo,Zi,Go,Fo,eo,ko,wo,Xo,Uo,jo,to,Ho,$i,no,io,zo,Yo,mi,Mn,oo,xi,ro,Bo,so,Wo,Oi,ao,qo,Qo,Jo,Ko,Zo,lo,er,tr,co,nr,ir,or,rr,sr,fo,ar,lr,Co,_r,Gi,po,Ti,cr,f,s,c,_,E,m,h,V,W,Q,le,Pe,Xe,Oe,st,k,fe,Me,ut,[1,"option-tarification-container",3,"formGroup"],[1,"margin-bottom-2","title-renseignements"],[3,"formGroupName"],["hideToggle","true",1,"extension-panel-container",3,"opened","expanded"],[3,"collapsedHeight","expandedHeight"],[1,"font-size-16"],[1,"margin-top-5"],[1,"expand-icon","inverted-color"],[3,"formGroup"],[1,"champs"],[1,"full-width"],[1,"align-baseline"],[1,"margin-top-1","participant-actions-btn"],["type","button","mat-raised-button","",1,"custom-button-full","custom-button-standard","custom-button-stepper",3,"click"],[1,"margin-bottom-12"],["matInput","","type","text","autocomplete","bday-day","formControlName","numeroAssurance",3,"input","imask"],[1,"full-width","date-picker","margin-bottom"],["appearance","fill",1,"full-width","margin-bottom-0",3,"floatLabel"],["readonly","","tabindex","-1","autocomplete","off","matInput","","formControlName","dateE
1xpiration",3,"matDatepicker"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected","monthSelected"],["matInput","","formControlName","nomMedecin","autocomplete","bday-day",3,"errorStateMatcher"],["matInput","","formControlName","telephoneMedecin","type","tel","autocomplete","disabled","maskTelephoneEvents","",3,"errorStateMatcher","imask","unmask"],["formControlName","isAllergiesMedicaments",3,"errorStateMatcher"],[3,"value"],["matInput","","formControlName","listeAllergiesMedicaments","type","text",3,"errorStateMatcher"],["formControlName","medicamentsContreAllergies",3,"errorStateMatcher"],["matInput","","formControlName","medicamentsAllergiesMedicamentueuse","type","text",3,"errorStateMatcher"],["formControlName","isAllergiesAlimentaires",3,"errorStateMatcher"],["matInput","","formControlName","listeAllergiesAlimentaires","type","text",3,"errorStateMatcher"],["formControlName","medicamentsAllergiesAlimentaires",3,"errorStateMatcher"],["matInput","","formControlName","medicamentsContreAllergiesAlimentaire","type","text",3,"errorStateMatcher"],["formControlName","injection",3,"errorStateMatcher"],["formControlName","isPriseMed",3,"errorStateMatcher"],["matInput","","formControlName","medicationPrise","type","text",3,"errorStateMatcher"],["formControlName","troublesComportement",3,"errorStateMatcher"],["matInput","","formControlName","descriptionComportement","type","text",3,"errorStateMatcher"],["formControlName","isConsentementMedical",3,"errorStateMatcher"],["matTooltip",Ri,"mat-icon-button","",1,"transform-button","margin-left--5","position-button"],["matTooltip",Ri,"mat-icon-button","",1,"transform-button","margin-left--5","position-button",3,"click"],[1,"icon-form-info"],["formControlName","isRegimeAlimentaire",3,"errorStateMatcher"],["formControlName","regimeAlimentaire","multiple","",3,"errorStateMatcher"],["matInput","","formControlName","descriptionRegime","type","text",3,"errorStateMatcher"],["formArrayName","contactUrgence"],["formArrayName","tuteurLegal"],[1,"array-element-button","margin-top-1"],[1,"sub-title-info"],["matInput","","formControlName","prenom",3,"errorStateMatcher"],["matInput","","formControlName","nom",3,"errorStateMatcher"],["matInput","","formControlName","telephoneCellulaire","type","tel","autocomplete","disabled","maskTelephoneEvents","",3,"errorStateMatcher","imask","unmask"],["matInput","","formControlName","courriel","type","text",3,"errorStateMatcher"],[1,"lien-field","espace-champs","full-width"],["formControlName","lien",3,"errorStateMatcher"],[1,"array-element-button",3,"error-space"],[1,"array-element-button"],["mat-button","",1,"publication-button","secondary-button",3,"click"],[1,"icon-poubelle"],[1,"array-element-button-text"],["type","button","mat-button","",1,"publication-button","secondary-button",3,"click"],[1,"icon-nouvel-element"],["matInput","","formControlName","telephoneMaison","type","tel","autocomplete","disabled","maskTelephoneEvents","",3,"errorStateMatcher","imask","unmask"],["formArrayName","personneAutorisee"],["formControlName","isPortLunette",3,"errorStateMatcher"],["formControlName","niveauNatation",3,"errorStateMatcher"],["formControlName","needJacket",3,"errorStateMatcher"],["formControlName","demandeSpecial",3,"errorStateMatcher"],["matInput","","formControlName","nomPrenomDemande",3,"errorStateMatcher"],["formControlName","isAutoQuitter",3,"errorStateMatcher"],["formControlName","autoPhoto",3,"errorStateMatcher"],["matTooltip",_o,"mat-icon-button","",1,"transform-button","margin-left--5"],["matTooltip",_o,"mat-icon-button","",1,"transform-button","margin-left--5",3,"click"],["formControlName","codeVie"],["matTooltip",uo,"mat-icon-button","",1,"transform-button","margin-left--5"],["matTooltip",uo,"mat-icon-button","",1,"transform-button","margin-left--5",3,"click"],["ischecked",""],["formControlName","renonRespo"],["matTooltip",Eo,"mat-icon-button","",1,"transform-button","margin-left--5"],["matTooltip",Eo,"mat-icon-button","",1,"transform-button","margin-left--5",3,"click"],["formControlName","isAutre",3,"errorStateMatcher"],["appearance","outline",1,"full-width"],["cdkTextareaAutosize","","matInput","","maxlength","500","rows","3","formControlName","autre",3,"errorStateMatcher"],["formControlName","isFraisGardeEnfant",3,"errorStateMatcher"],["formArrayName","personneACharge"],[1,"field-custom-wrapper","full-width",3,"adresseChanged","isRequired","adresseControl","showErrorMessage","placeholderRequiredIfNotRequired"],["matInput","","formControlName","ville",3,"errorStateMatcher"],["matInput","","formControlName","codePostal",3,"imask","unmask","errorStateMatcher"],[1,"full-width","margin-bottom-20"],["matInput","","formControlName","pourcentage",3,"errorStateMatcher","imask","unmask"],[1,"show-nas-view-form-label"],["type","button","mat-button","","color","primary",3,"click"],[1,"edit-label"],["matInput","","autocomplete","name","formControlName","numeroAssuranceSociale",3,"imask","unmask","errorStateMatcher"]]},template:function(B,X){1&B&&(e.j41(0,"div",147),e.DNE(1,Ct,2,0,"h2",148),e.Z7z(2,Un,42,44,"div",149,e.Vm6),e.k0s()),2&B&&(e.Y8G("formGroup",X.participantsFA),e.R7$(),e.vxM(1,X.showTitle?1:-1),e.R7$(),e.Dyx(X.participantsFA.controls))},dependencies:[ge.G,Fe.GK,Fe.Z2,Fe.WN,xe.fg,qe.rl,qe.nJ,qe.TL,qe.yw,rt.xb,de.wT,nt.So,vt.VO,Pt.$z,Pt.iY,l.Vh,l.bZ,l.bU,ot.oV,A.qT,A.me,A.BC,A.cb,A.tU,A.j4,A.JD,A.$R,A.v8,C.xGI,Ke.Zq,ve.v,He.T,A.X1],styles:[".form-section-title-underline[_ngcontent-%COMP%]{padding-top:0}.flex-mat-form-field-container.programmation-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child:not(.no-padding):not(:last-child){padding-right:3%}.wrap-mat-radio-label[_ngcontent-%COMP%]{white-space:normal}[_nghost-%COMP%] .activite-color .mat-radio-button{margin-bottom:6px}.icon-warning[_ngcontent-%COMP%]{position:relative;top:1px}mat-checkbox[_ngcontent-%COMP%]{display:block;margin-bottom:1rem}h3[_ngcontent-%COMP%]{font-weight:500;font-size:15px;margin-top:10px}.array-element-button[_ngcontent-%COMP%]{margin-bottom:20px}.sub-title-info[_ngcontent-%COMP%]{color:#676767;font-size:14px;margin-bottom:.5em}mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:unset!important;border:1px solid #e5e5e5!important;margin-bottom:36px!important}mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0 24px 24px!important}.publication-button[_ngcontent-%COMP%]{border:none!important;font-size:20px!important;padding:0 8px!important;min-width:0!important;background:#262a411a;height:36px;width:36px;display:flex!important;align-items:center!important;justify-content:center}.array-element-button[_ngcontent-%COMP%]{display:flex;align-items:center}.array-element-button[_ngcontent-%COMP%] .array-element-button-text[_ngcontent-%COMP%]{margin-left:18px}.icon-form-info[_ngcontent-%COMP%]{font-size:16px!important}.title-renseignements[_ngcontent-%COMP%]{font-size:1.5rem}.champs[_ngcontent-%COMP%]{display:flex;gap:3rem}[_nghost-%COMP%] div.e-float-input.e-control-wrapper{width:100%}[_nghost-%COMP%] vplus-adresse-autocomplete .adresse-inputs-container{display:block}@media (max-width: 730px){.champs[_ngcontent-%COMP%]{display:block}.champs[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.champs[_ngcontent-%COMP%] .error-space[_ngcontent-%COMP%]{margin-top:8px}mat-option[_ngcontent-%COMP%]{white-space:normal!important;overflow-wrap:break-word!important;font-size:13px!important;height:-moz-fit-content!important;height:fit-content!important}}.error-space[_ngcontent-%COMP%]{margin-top:8px}.icon-nouvel-element[_ngcontent-%COMP%], .icon-poubelle[_ngcontent-%COMP%]{vertical-align:unset}.edit-label[_ngcontent-%COMP%]{font-size:12px}"]}),ae})()},51611:(Nt,ne,g)=>{"use strict";g.d(ne,{D:()=>Tt});var d=g(53160),R=g(49823),A=g(20986),x=g(4407),C=g(77339),e=g(49484),de=g(53387),y=g(35052),a=g(54438),U=g(92995),O=g(97803),Ae=g(42444),Te=g(46756),ge=g(64075),Ce=g(98377),Fe=g(96697),xe=g(25558),qe=g(96354),rt=g(34006),nt=g(51188),vt=g(9310),Pt=g(89079),l=g(17446),ot=g(9454),Ke=g(59042),ve=g(32102),He=g(86600),Qe=g(5951),We=g(82798),dt=g(88834),Ct=g(14823),en=g(60177),Je=g(89417),zt=g(88974);const _t=(P,me)=>me.id,ie=(P,me)=>me.perId,Ye=()=>["carte"],re=P=>({profil:P}),it=P=>({outlets:P}),ke=P=>["/utilisateur/profil",P],Ue=()=>["editer"],Yt=P=>({"light-text-color":P}),Jt=()=>["familles"],De=P=>({famille:P});function w(P,me){if(1&P&&a.EFF(0),2&P){const S=a.XpG().$implicit;a.SpI(" - ",S.get("trfOptChildNom").value," ")}}function b(P,me){if(1&P&&(a.j41(0,"span",43),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3).$implicit,M=a.XpG();a.R7$(),a.E5c("L'achat de \xab ",S.get("optNom").value," \xbb est restreint aux d\xe9tenteurs de la Carte ",M.nomCarte," avec acc\xe8s ",M.acces[S.get("optId").value],".")}}function J(P,me){if(1&P&&(a.j41(0,"span",43),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3).$implicit,M=a.XpG();a.R7$(),a.E5c('The purchase of "',S.get("optNom").value,'" is restricted to holders of the ',M.nomCarte," Card with ",M.acces[S.get("optId").value],".")}}function ce(P,me){if(1&P&&a.DNE(0,b,2,3,"span",43)(1,J,2,3),2&P){const S=a.XpG(3);a.vxM(0,S.isFr?0:1)}}function pe(P,me){if(1&P&&(a.j41(0,"span",43),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme("L'achat de \xab ",M.get("optNom").value," \xbb est restreint aux personnes ayant l'\xe2ge minimum requis (",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," ans).")}}function Ie(P,me){if(1&P&&(a.j41(0,"span",43),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme('The purchase of "',M.get("optNom").value,'" is restricted to people with the minimum age requirement (',null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," years old).")}}function ct(P,me){if(1&P&&a.DNE(0,pe,2,2,"span",43)(1,Ie,2,2),2&P){const S=a.XpG(3);a.vxM(0,S.isFr?0:1)}}function ft(P,me){if(1&P&&(a.j41(0,"span",43),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme("L'achat de \xab ",M.get("optNom").value," \xbb est restreint aux personnes ayant l'\xe2ge maximum requis (",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," ans).")}}function et(P,me){if(1&P&&(a.j41(0,"span",43),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme('The purchase of "',M.get("optNom").value,'" is restricted to people with the maximum age requirement (',null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," years old).")}}function wt(P,me){if(1&P&&a.DNE(0,ft,2,2,"span",43)(1,et,2,2),2&P){const S=a.XpG(3);a.vxM(0,S.isFr?0:1)}}function Ne(P,me){if(1&P&&(a.j41(0,"span",43),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.E5c("L'achat de \xab ",M.get("optNom").value," \xbb est restreint aux personnes ayant l'\xe2ge requis (entre ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," ans et ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," ans).")}}function Ot(P,me){if(1&P&&(a.j41(0,"span",43),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.E5c('The purchase of "',M.get("optNom").value,'" is restricted to people with the required age (between ',null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," years old and ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," years old).")}}function Ft(P,me){if(1&P&&a.DNE(0,Ne,2,3,"span",43)(1,Ot,2,3),2&P){const S=a.XpG(3);a.vxM(0,S.isFr?0:1)}}function pt(P,me){if(1&P&&(a.j41(0,"span",43),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3).$implicit,M=a.XpG();a.R7$(),a.Lme("L'achat de \xab ",S.get("optNom").value," \xbb est restreint aux d\xe9tenteurs de(s) abonnement(s) ",M.accesAdhNames[S.get("optId").value],".")}}function yt(P,me){if(1&P&&(a.j41(0,"span",43),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3).$implicit,M=a.XpG();a.R7$(),a.Lme('The purchase of "',S.get("optNom").value,'" is restricted to holders of the ',M.accesAdhNames[S.get("optId").value]," subscription(s).")}}function In(P,me){if(1&P&&a.DNE(0,pt,2,2,"span",43)(1,yt,2,2),2&P){const S=a.XpG(3);a.vxM(0,S.isFr?0:1)}}function tn(P,me){if(1&P&&(a.j41(0,"div",32),a.DNE(1,ce,2,1)(2,ct,2,1)(3,wt,2,1)(4,Ft,2,1)(5,In,2,1),a.k0s()),2&P){let S,M,D;const _e=a.XpG().$implicit,$e=a.XpG();a.R7$(),a.vxM(1,$e.acces[_e.get("optId").value]?1:-1),a.R7$(),a.vxM(2,null==(S=$e.ageTrfs.get(_e.get("optId").value))||!S[0]||null!=(S=$e.ageTrfs.get(_e.get("optId").value))&&S[1]?-1:2),a.R7$(),a.vxM(3,null==(M=$e.ageTrfs.get(_e.get("optId").value))||!M[
11]||null!=(M=$e.ageTrfs.get(_e.get("optId").value))&&M[0]?-1:3),a.R7$(),a.vxM(4,null!=(D=$e.ageTrfs.get(_e.get("optId").value))&&D[0]&&null!=(D=$e.ageTrfs.get(_e.get("optId").value))&&D[1]?4:-1),a.R7$(),a.vxM(5,$e.accesAdhNames[_e.get("optId").value]?5:-1)}}function ln(P,me){if(1&P){const S=a.RV6();a.j41(0,"mat-radio-button",44),a.bIt("change",function(D){a.eBV(S);const _e=a.XpG().$implicit,$e=a.XpG();return a.Njj($e.selectionParticipantChange(D,_e))}),a.j41(1,"span",45),a.EFF(2),a.k0s()()}if(2&P){const S=a.XpG(2);a.Y8G("value",S.EnumParticipantType.CurrentUser),a.R7$(2),a.Lme("",S.user.prenom," ",S.user.nom,"")}}function on(P,me){if(1&P){const S=a.RV6();a.j41(0,"mat-radio-button",46),a.bIt("change",function(D){a.eBV(S);const _e=a.XpG().$implicit,$e=a.XpG();return a.Njj($e.selectionParticipantChange(D,_e))}),a.pXf(1,3),a.k0s()}if(2&P){const S=a.XpG(2);a.Y8G("value",S.EnumParticipantType.MembreFamille)}}function Vn(P,me){if(1&P){const S=a.RV6();a.j41(0,"div",38)(1,"mat-error",39),a.pXf(2,4),a.k0s(),a.j41(3,"span",47),a.bIt("click",function(){a.eBV(S);const D=a.XpG(3);return a.Njj(D.openPopup())}),a.pXf(4,5),a.k0s()()}}function On(P,me){if(1&P){const S=a.RV6();a.j41(0,"div",38)(1,"mat-error",39),a.pXf(2,6),a.k0s(),a.j41(3,"span",47),a.bIt("click",function(){a.eBV(S);const D=a.XpG(3).$implicit,_e=a.XpG();return a.Njj(_e.addChildToFamily(_e.currentFamily,!0,D))}),a.pXf(4,7),a.k0s()()}}function Nn(P,me){if(1&P&&a.DNE(0,On,5,0,"div",38),2&P){let S;const M=a.XpG(2).$implicit,D=a.XpG();a.vxM(0,M.get("type").value===D.EnumParticipantType.MembreFamille&&!((null==(S=D.familleMembreHashList[M.get("familleId").value])?null:S.length)>0)&&D.famillesCurrentUser.length<1?0:-1)}}function $n(P,me){if(1&P&&(a.j41(0,"div"),a.DNE(1,Vn,5,0,"div",38)(2,Nn,1,1),a.k0s()),2&P){const S=a.XpG(2);a.R7$(),a.vxM(1,S.hasFamily?2:1)}}function hn(P,me){if(1&P&&(a.j41(0,"mat-option",36),a.EFF(1),a.k0s()),2&P){const S=me.$implicit;a.Y8G("value",S.id),a.R7$(),a.JRh(S.nom)}}function Cn(P,me){1&P&&(a.j41(0,"mat-error"),a.pXf(1,9),a.k0s())}function mn(P,me){if(1&P){const S=a.RV6();a.j41(0,"mat-form-field",48)(1,"mat-label"),a.pXf(2,8),a.k0s(),a.j41(3,"mat-select",50),a.bIt("selectionChange",function(D){a.eBV(S);const _e=a.XpG(2).$implicit,$e=a.XpG();return a.Njj($e.onSelectFamille(D,_e))}),a.Z7z(4,hn,2,2,"mat-option",36,_t),a.k0s(),a.DNE(6,Cn,2,0,"mat-error"),a.k0s()}if(2&P){const S=a.XpG(2).$implicit,M=a.XpG();a.R7$(4),a.Dyx(M.famillesCurrentUser),a.R7$(2),a.vxM(6,S.get("familleId").hasError("required")&&S.get("familleId").touched?6:-1)}}function Qn(P,me){if(1&P&&(a.j41(0,"mat-option",36),a.EFF(1),a.k0s()),2&P){const S=me.$implicit;a.Y8G("value",S.perId),a.R7$(),a.JRh(S.nomComplet)}}function ii(P,me){if(1&P){const S=a.RV6();a.j41(0,"mat-form-field",48)(1,"mat-label"),a.pXf(2,10),a.k0s(),a.j41(3,"mat-select",51),a.bIt("selectionChange",function(D){a.eBV(S);const _e=a.XpG(2),$e=_e.$implicit,Ge=_e.$index,we=a.XpG();return a.Njj(we.selectionMembreFamilleChange(D,$e.get("familleId").value,Ge))}),a.Z7z(4,Qn,2,2,"mat-option",36,ie),a.k0s()()}if(2&P){const S=a.XpG(2).$implicit,M=a.XpG();a.R7$(4),a.Dyx(M.familleMembreHashList[S.get("familleId").value])}}function pn(P,me){if(1&P){const S=a.RV6();a.j41(0,"div",52)(1,"span",53),a.bIt("click",function(){a.eBV(S);const D=a.XpG(2).$implicit,_e=a.XpG();return a.Njj(_e.addChildToFamily(_e.currentFamily,!0,D))}),a.pXf(2,11),a.k0s()()}if(2&P){const S=a.XpG(2).$implicit;a.AVh("error-margin",S.get("familleId").hasError("required")&&S.get("familleId").touched)}}function Pn(P,me){if(1&P&&(a.j41(0,"div",37),a.DNE(1,mn,7,1,"mat-form-field",48)(2,ii,6,0,"mat-form-field",48)(3,pn,3,2,"div",49),a.k0s()),2&P){let S,M;const D=a.XpG().$implicit,_e=a.XpG();a.R7$(),a.vxM(1,_e.famillesCurrentUser.length>1?1:-1),a.R7$(),a.vxM(2,(null==(S=_e.familleMembreHashList[D.get("familleId").value])?null:S.length)>0?2:-1),a.R7$(),a.vxM(3,(null==(M=_e.familleMembreHashList[D.get("familleId").value])?null:M.length)>0||_e.famillesCurrentUser.length>1?3:-1)}}function Jn(P,me){if(1&P){const S=a.RV6();a.j41(0,"mat-radio-button",46),a.bIt("change",function(D){a.eBV(S);const _e=a.XpG().$implicit,$e=a.XpG();return a.Njj($e.selectionParticipantChange(D,_e))}),a.pXf(1,12),a.k0s()}if(2&P){const S=a.XpG(2);a.Y8G("value",S.EnumParticipantType.Autre)}}function Rn(P,me){1&P&&(a.j41(0,"mat-error",55),a.pXf(1,16),a.k0s())}function oi(P,me){1&P&&(a.j41(0,"mat-error",55),a.pXf(1,17),a.k0s())}function ri(P,me){if(1&P&&(a.j41(0,"mat-error",55),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3);a.R7$(),a.SpI(" ",S.hasMultisession?S.labels.erreurDejaInscriMultiSession:S.labels.erreurDejaInscrit," ")}}function Kn(P,me){if(1&P){const S=a.RV6();a.j41(0,"div",37)(1,"mat-form-field")(2,"mat-label"),a.pXf(3,13),a.k0s(),a.j41(4,"input",54),a.bIt("blur",function(){a.eBV(S);const D=a.XpG().$implicit,_e=a.XpG();return a.Njj(_e.onInputBlur(D.get("prenom")))}),a.k0s(),a.DNE(5,Rn,2,0,"mat-error",55),a.k0s(),a.j41(6,"mat-form-field")(7,"mat-label"),a.pXf(8,14),a.k0s(),a.j41(9,"input",56),a.bIt("blur",function(){a.eBV(S);const D=a.XpG().$implicit,_e=a.XpG();return a.Njj(_e.onInputBlur(D.get("nom")))}),a.k0s(),a.DNE(10,oi,2,0,"mat-error",55),a.k0s(),a.j41(11,"mat-form-field",57)(12,"mat-label"),a.pXf(13,15),a.k0s(),a.j41(14,"input",58),a.bIt("blur",function(){a.eBV(S);const D=a.XpG().$implicit,_e=a.XpG();return a.Njj(_e.onInputBlur(D.get("courriel")))}),a.k0s(),a.j41(15,"mat-hint"),a.EFF(16),a.k0s(),a.DNE(17,ri,2,1,"mat-error",55),a.k0s()()}if(2&P){const S=a.XpG().$implicit,M=a.XpG();a.R7$(5),a.vxM(5,S.get("prenom").hasError("required")?5:-1),a.R7$(5),a.vxM(10,S.get("nom").touched&&S.get("nom").hasError("required")?10:-1),a.R7$(6),a.SpI("",M.labels.placeholderCourriel,"."),a.R7$(),a.vxM(17,S.get("courriel").touched&&S.get("courriel").hasError("existAbonnement")?17:-1)}}function Zn(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3).$implicit,M=a.XpG();a.R7$(),a.E5c("L'admission \xab ",S.get("optNom").value," \xbb est restreinte aux d\xe9tenteurs de la carte \xab ",M.nomCarte," \xbb ayant l\u2019acc\xe8s ",M.acces[S.get("optId").value],".")}}function si(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3).$implicit,M=a.XpG();a.R7$(),a.E5c('Admission "',S.get("optNom").value,'" is restricted to cardholders of "',M.nomCarte,'" with access ',M.acces[S.get("optId").value],".")}}function jn(P,me){if(1&P&&(a.DNE(0,Zn,2,3,"mat-error",39)(1,si,2,3),a.j41(2,"a",59),a.pXf(3,18),a.k0s()),2&P){const S=a.XpG(3);a.vxM(0,S.isFr?0:1),a.R7$(2),a.Y8G("routerLink",a.eq3(7,ke,a.eq3(5,it,a.eq3(3,re,a.lJ4(2,Ye)))))}}function rn(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme("L'admission \xab ",M.get("optNom").value," \xbb est r\xe9serv\xe9e aux personnes de ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," ans et plus.")}}function Hn(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme('Admission "',M.get("optNom").value,'" is restricted to individuals aged ',null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," years old and over.")}}function Ci(P,me){1&P&&(a.j41(0,"a",59),a.pXf(1,19),a.k0s()),2&P&&a.Y8G("routerLink",a.eq3(6,ke,a.eq3(4,it,a.eq3(2,re,a.lJ4(1,Ue)))))}function F(P,me){if(1&P&&a.DNE(0,rn,2,2,"mat-error",39)(1,Hn,2,2)(2,Ci,2,8,"a",59),2&P){const S=a.XpG(2).$implicit,M=a.XpG();a.vxM(0,M.isFr?0:1),a.R7$(2),a.vxM(2,S.get("age").value?-1:2)}}function K(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme("L'admission \xab ",M.get("optNom").value," \xbb est r\xe9serv\xe9e aux personnes de ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," ans et moins.")}}function Y(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme('Admission "',M.get("optNom").value,'" is restricted to individuals aged ',null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," years old and under.")}}function be(P,me){1&P&&(a.j41(0,"a",59),a.pXf(1,20),a.k0s()),2&P&&a.Y8G("routerLink",a.eq3(6,ke,a.eq3(4,it,a.eq3(2,re,a.lJ4(1,Ue)))))}function At(P,me){if(1&P&&a.DNE(0,K,2,2,"mat-error",39)(1,Y,2,2)(2,be,2,8,"a",59),2&P){const S=a.XpG(2).$implicit,M=a.XpG();a.vxM(0,M.isFr?0:1),a.R7$(2),a.vxM(2,S.get("age").value?-1:2)}}function Et(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.E5c("L'admission \xab ",M.get("optNom").value," \xbb est restreinte aux personnes \xe2g\xe9es de ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," ans \xe0 ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," ans.")}}function Xt(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.E5c('Admission "',M.get("optNom").value,'" is restricted to individuals aged from ',null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," years old to ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," years old.")}}function Bt(P,me){1&P&&(a.j41(0,"a",59),a.pXf(1,21),a.k0s()),2&P&&a.Y8G("routerLink",a.eq3(6,ke,a.eq3(4,it,a.eq3(2,re,a.lJ4(1,Ue)))))}function kn(P,me){if(1&P&&a.DNE(0,Et,2,3,"mat-error",39)(1,Xt,2,3)(2,Bt,2,8,"a",59),2&P){const S=a.XpG(2).$implicit,M=a.XpG();a.vxM(0,M.isFr?0:1),a.R7$(2),a.vxM(2,S.get("age").value?-1:2)}}function Tn(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.E5c("L'admission \xab ",M.get("optNom").value," \xbb est restreinte aux d\xe9tenteurs ",(null==(S=D.accesAdhNames[M.get("optId").value])?null:S.split("\xbb").length)-1>1?"des abonnements":"de l'abonnement"," ",D.accesAdhNames[M.get("optId").value],".")}}function gn(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3).$implicit,M=a.XpG();a.R7$(),a.Lme('Admission "',S.get("optNom").value,'" is restricted to ',M.accesAdhNames[S.get("optId").value]," pass holders.")}}function ei(P,me){if(1&P&&a.EFF(0),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.SpI(" ",(null==(S=D.accesAdhNames[M.get("optId").value])?null:S.split("\xbb").length)-1>1?"Acheter les abonnements.":"Acheter l'abonnement.","")}}function ci(P,me){if(1&P&&a.EFF(0),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.SpI(" ",(null==(S=D.accesAdhNames[M.get("optId").value])?null:S.split("\xbb").length)-1>1?"Buy subscriptions.":"Buy the subscription.","")}}function gi(P,me){if(1&P){const S=a.RV6();a.DNE(0,Tn,2,3,"mat-error",39)(1,gn,2,2),a.j41(2,"div",60)(3,"button",61,1),a.bIt("click",function(){a.eBV(S);const D=a.sdS(4),_e=a.XpG(2).$implicit,$e=a.XpG();return a.Njj($e.onClickAcheter(_e.get("optId").value,D))}),a.DNE(5,ei,1,1)(6,ci,1,1),a.k0s()()}if(2&P){const S=a.sdS(4),M=a.XpG(2).$implicit,D=a.XpG();a.vxM(0,D.isFr?0:1),a.R7$(3),a.Y8G("ngClass",a.eq3(5,Yt,D.adhesionStatusByOptId[M.get("optId").value]))("disabled",D.adhesionStatusByOptId[M.get("optId").value])("matTooltip",S.disabled?D.labels.btnAchatTooltip:""),a.R7$(2),a.vxM(5,D.isFr?5:6)}}function di(P,me){if(1&P&&a.DNE(0,jn,4,9,"a",59)(1,F,3,2)(2,At,3,2)(3,kn,3,2)(4,gi,7,7,"div",60),2&P){const S=a.XpG().$implicit;a.vxM(0,S.hasError("accesRestricted")?0:-1),a.R7$(),a.vxM(1,S.hasError("ageMinError")?1:-1),a.R7$(),a.vxM(2,S.hasError("ageMaxError")?2:-1),a.R7$(),a.vxM(3,S.hasError("ageMinMaxError")?3:-1),a.R7$(),a.vxM(4,S.hasError("accesAdhRestricted")?4:-1)}}function I(P,me){1&P&&(a.j41(0,"mat-error",39),a.pXf(1,22),a.k0s())}function T(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3);a.R7$(),a.JRh(S.labels.erreurDejaInscriMultiSession)}}function L(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3);a.R7$(),a.JRh(S.labels.erreurDejaInscrit)}}function j(P,me){if(1&P&&a.DNE(0,T,2,1,"mat-error",39)(1,L,2,1),2&P){const S=a.XpG(2);a.vxM(0,S.hasMultisession?0:1)}}function se(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3).$implicit,M=a.XpG();a.R7$(),a.E5c("L'admission \xab ",S.get("optNom").value," \xbb est restreinte aux d\xe9tenteurs de la carte \xab ",M.nomCarte," \xbb ayant l\u2019acc\xe8s ",M.acces[S.get("optId").value],".")}}function he(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3).$implicit,M=a.XpG();a.R7$(),a.E5c('Admission "',S.get("optNom").value,'" is restricted to cardholders of "',M.nomCarte,'" with access ',M.acces[S.get("optId").value],".")}}function Ee(P,me){if(1&P&&(a.DNE(0,se,2,3,"mat-error",39)(1,he,2,3),a.j41(2,"a",62),a.pXf(3,23),a.k0s()),2&P){let S;const M=a.XpG(2).$implicit,D=a.XpG();a.vxM(0,D.isFr?0:1),a.R7$(2),a.Y8G("routerLink",a.eq3(8,ke,a.eq3(6,it,a.eq3(4,re,a.lJ4(3,Jt)))))("queryParams",a.eq3(10,De,null==(S=M.get("familleId"))?null:S.value))}}function ze(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme("L'admission \xab ",M.get("optNom").value," \xbb est r\xe9serv\xe9e aux personnes de ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," ans et plus.")}}function Be(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme('Admission "',M.get("optNom").value,'" is restricted to individuals aged ',null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," years old and over.")}}function tt(P,me){if(1&P&&a.DNE(0,ze,2,2,"mat-error",39)(1,Be,2,2),2&P){const S=a.XpG(3);a.vxM(0,S.isFr?0:1)}}function Mt(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme("L'admission \xab ",M.get("optNom").value," \xbb est r\xe9serv\xe9e aux personnes de ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," ans et moins.")}}function Lt(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.Lme('Admission "',M.get("optNom").value,'" is restricted to individuals aged ',null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," years old and under.")}}function Ut(P,me){if(1&P&&a.DNE(0,Mt,2,2,"mat-error",39)(1,Lt,2,2),2&P){const S=a.XpG(3);a.vxM(0,S.isFr?0:1)}}function gt(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.E5c("L'admission \xab ",M.get("optNom").value," \xbb est restreinte aux personnes \xe2g\xe9es de ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," ans \xe0 ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," ans.")}}function fn(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.E5c('Admission "',M.get("optNom").value,'" is restricted to individuals aged from ',null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[0]," years old to ",null==(S=D.ageTrfs.get(null==(S=M.get("optId"))?null:S.value))?null:S[1]," years old.")}}function zn(P,me){if(1&P&&a.DNE(0,gt,2,3,"mat-error",39)(1,fn,2,3),2&P){const S=a.XpG(3);a.vxM(0,S.isFr?0:1)}}function dn(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.R7$(),a.E5c("L'admission \xab ",M.get("optNom").value," \xbb est restreinte aux d\xe9tenteurs ",(null==(S=D.accesAdhNames[M.get("optId").value])?null:S.split("\xbb").length)-1>1?"des abonnements":"de l'abonnement"," ",D.accesAdhNames[M.get("optId").value],".")}}function Wt(P,me){if(1&P&&(a.j41(0,"mat-error",39),a.EFF(1),a.k0s()),2&P){const S=a.XpG(3).$implicit,M=a.XpG();a.R7$(),a.Lme('Admission "',S.get("optNom").value,'" is restricted to ',M.accesAdhNames[S.get("optId").value]," pass holders.")}}function En(P,me){if(1&P&&a.EFF(0),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.SpI(" ",(null==(S=D.accesAdhNames[M.get("optId").value])?null:S.split("\xbb").length)-1>1?"Acheter les abonnements.":"Acheter l'abonnement.","")}}function vn(P,me){if(1&P&&a.EFF(0),2&P){let S;const M=a.XpG(3).$implicit,D=a.XpG();a.SpI(" ",(null==(S=D.accesAdhNames[M.get("optId").value])?null:S.split("\xbb").length)-1>1?"Buy subscriptions.":"Buy the subscription.","")}}
1function te(P,me){if(1&P){const S=a.RV6();a.DNE(0,dn,2,3,"mat-error",39)(1,Wt,2,2),a.j41(2,"div",60)(3,"button",61,1),a.bIt("click",function(){a.eBV(S);const D=a.sdS(4),_e=a.XpG(2).$implicit,$e=a.XpG();return a.Njj($e.onClickAcheter(_e.get("optId").value,D))}),a.DNE(5,En,1,1)(6,vn,1,1),a.k0s()()}if(2&P){const S=a.sdS(4),M=a.XpG(2).$implicit,D=a.XpG();a.vxM(0,D.isFr?0:1),a.R7$(3),a.Y8G("ngClass",a.eq3(5,Yt,D.adhesionStatusByOptId[M.get("optId").value]))("disabled",D.adhesionStatusByOptId[M.get("optId").value])("matTooltip",S.disabled?D.labels.btnAchatTooltip:""),a.R7$(2),a.vxM(5,D.isFr?5:6)}}function je(P,me){if(1&P&&a.DNE(0,Ee,4,12,"a",62)(1,tt,2,1)(2,Ut,2,1)(3,zn,2,1)(4,te,7,7,"div",60),2&P){const S=a.XpG().$implicit;a.vxM(0,S.touched&&S.hasError("accesRestricted")?0:-1),a.R7$(),a.vxM(1,S.hasError("ageMinError")?1:-1),a.R7$(),a.vxM(2,S.hasError("ageMaxError")?2:-1),a.R7$(),a.vxM(3,S.hasError("ageMinMaxError")?3:-1),a.R7$(),a.vxM(4,S.hasError("accesAdhRestricted")?4:-1)}}function $(P,me){1&P&&(a.j41(0,"span",40),a.pXf(1,24),a.k0s())}function H(P,me){1&P&&(a.j41(0,"span",40),a.pXf(1,25),a.k0s())}function Z(P,me){if(1&P){const S=a.RV6();a.j41(0,"div",27)(1,"mat-expansion-panel",29,0),a.bIt("opened",function(){const D=a.eBV(S).$index,_e=a.XpG();return a.Njj(_e.openParticipant(D))}),a.j41(3,"mat-expansion-panel-header",30)(4,"mat-panel-title")(5,"span")(6,"b")(7,"span"),a.EFF(8),a.k0s(),a.EFF(9),a.DNE(10,w,1,1),a.k0s()()(),a.j41(11,"div"),a.nrm(12,"i",31),a.k0s()(),a.DNE(13,tn,6,5,"div",32),a.j41(14,"div",33)(15,"mat-radio-group",34),a.DNE(16,ln,3,3,"mat-radio-button",35)(17,on,2,1,"mat-radio-button",36)(18,$n,3,1,"div")(19,Pn,4,3,"div",37)(20,Jn,2,1,"mat-radio-button",36),a.k0s(),a.DNE(21,Kn,18,4,"div",37),a.j41(22,"div",38),a.DNE(23,di,5,5)(24,I,2,0,"mat-error",39)(25,j,2,1)(26,je,5,5),a.k0s(),a.DNE(27,$,2,0,"span",40)(28,H,2,0,"span",40),a.j41(29,"div",41)(30,"button",42),a.bIt("click",function(){const D=a.eBV(S).$index,_e=a.XpG();return a.Njj(_e.confirmParticipant(D))}),a.j41(31,"span"),a.pXf(32,2),a.k0s()()()()()()}if(2&P){let S,M;const D=me.$implicit,_e=me.$index,$e=a.sdS(2),Ge=a.XpG();a.Y8G("formGroupName",_e),a.R7$(),a.Y8G("expanded",Ge.openedParticipantIndexArray.includes(_e)),a.R7$(2),a.Y8G("collapsedHeight","80px")("expandedHeight","80px"),a.R7$(5),a.JRh(Ge.labels.titreIndividuel),a.R7$(),a.Lme(" ",_e+1," - ",D.get("optNom").value," "),a.R7$(),a.vxM(10,D.get("trfOptChildNom").value?10:-1),a.R7$(2),a.Y8G("ngClass",$e.expanded?"icon-chevron-down":"icon-chevron-up"),a.R7$(),a.vxM(13,Ge.isAllowedInscWithRestr&&!Ge.isInvite?13:-1),a.R7$(3),a.vxM(16,!Ge.canOrderForCurrentUser||D.get("type").value!==Ge.EnumParticipantType.CurrentUser&&Ge.existOrderForCurrentUser?-1:16),a.R7$(),a.vxM(17,Ge.isInvite?-1:17),a.R7$(),a.vxM(18,D.get("type").value===Ge.EnumParticipantType.MembreFamille?18:-1),a.R7$(),a.vxM(19,D.get("type").value===Ge.EnumParticipantType.MembreFamille?19:-1),a.R7$(),a.vxM(20,(""===(null==(S=Ge.acces[D.get("optId").value])?null:S.trim())&&null===(null==(S=Ge.ageTrfs.get(null==(S=D.get("optId"))?null:S.value))?null:S[0])&&null===(null==(S=Ge.ageTrfs.get(null==(S=D.get("optId"))?null:S.value))?null:S[1])&&""===(null==(S=Ge.accesAdhNames[D.get("optId").value])?null:S.trim())||Ge.isAllowedInscWithRestr)&&!Ge.isInvite||Ge.isInvite&&Ge.canOrderForCurrentUser&&(D.get("type").value===Ge.EnumParticipantType.CurrentUser||!Ge.existOrderForCurrentUser)?20:-1),a.R7$(),a.vxM(21,D.get("type").value===Ge.EnumParticipantType.Autre?21:-1),a.R7$(2),a.vxM(23,D.get("type").value!==Ge.EnumParticipantType.CurrentUser||Ge.isAllowedInscWithRestr?-1:23),a.R7$(),a.vxM(24,D.get("perId").hasError("required")&&D.get("perId").touched?24:-1),a.R7$(),a.vxM(25,D.get("perId").hasError("existAbonnement")&&D.get("perId").touched?25:-1),a.R7$(),a.vxM(26,D.get("type").value!==Ge.EnumParticipantType.MembreFamille||Ge.isAllowedInscWithRestr?-1:26),a.R7$(),a.vxM(27,!D.get("isAllRestrictionsRespected").value&&Ge.isAllowedInscWithRestr?27:-1),a.R7$(),a.vxM(28,D.get("type").value===Ge.EnumParticipantType.Autre&&Ge.isAllowedInscWithRestr&&(""!==(null==(M=Ge.acces[D.get("optId").value])?null:M.trim())||null!=(M=Ge.ageTrfs.get(null==(M=D.get("optId"))?null:M.value))&&M[0]||0===(null==(M=Ge.ageTrfs.get(null==(M=D.get("optId"))?null:M.value))?null:M[0])||null!=(M=Ge.ageTrfs.get(null==(M=D.get("optId"))?null:M.value))&&M[1]||0===(null==(M=Ge.ageTrfs.get(null==(M=D.get("optId"))?null:M.value))?null:M[1])||""!==(null==(M=Ge.accesAdhNames[D.get("optId").value])?null:M.trim()))?28:-1)}}function Re(P,me){if(1&P&&(a.j41(0,"mat-error",28),a.EFF(1),a.k0s()),2&P){const S=a.XpG();a.R7$(),a.JRh(S.labels.erreurUnicite)}}let Tt=(()=>{var P;class me{constructor(){this.dialog=(0,a.WQX)(rt.bZ),this.appConfig=(0,a.WQX)(y.o),this.actions$=(0,a.WQX)(C.En),this.localisationService=(0,a.WQX)(Ce.A),this.utilisateurService=(0,a.WQX)(l.$),this.store=(0,a.WQX)(vt.il),this.destroyRef=(0,a.WQX)(a.abz),this.router=(0,a.WQX)(nt.Ix),this.activiteService=(0,a.WQX)(e.Z),this.famillesCurrentUser=[],this.familleMembreHashList={},this.ageTrfs=new Map,this.sessionList=[],this.allowInvite=!1,this.isAllowedInscWithRestr=!1,this.selectedFamId=new a.bkB,this.selectedPerId=new a.bkB,this.EnumTypeInscriptionCode=O.bO,this.EnumParticipantType=U.z5,this.nomCarte=this.appConfig.getDefaultCarteConfig(),this.openedParticipantIndexArray=[0],this.familles=[],this.show
1FamilyOptions=!1,this.acces={},this.accesIds={},this.accesAdh={},this.accesAdhNames={},this.isFr=this.localisationService.getCurrentLocalisation()===U.fi.FR,this.hasFamily=!1,this.hasMultisession=!1,this.labels={placeholderNom:"Nom",titrePlurial:null,titreIndividuel:null,erreurDejaInscrit:null,erreurDejaInscriMultiSession:"Ce participant est d\xE9j\xE0 inscrit \xE0 toutes les sessions",erreurUnicite:null,placeholderCourriel:null,btnAchatTooltip:"Contactez-nous pour plus d\u2019informations"},this.showFamilleInfo=!1,this.adhesionStatusByOptId={}}static generateParticipantsAnonymous(M){const D=[];return M.forEach(_e=>{for(let $e=0;$e<_e.qte;$e++)_e.trfOptTypId!==O.G5.Groupe?D.push({fteId:_e.fteId}):_e.trfOptOptions.forEach(Ge=>{for(let we=0;we<Ge.qte;we++)D.push({fteId:_e.fteId,trfOptChildId:Ge.id})})}),D}ngOnInit(){var M;switch(this.isInvite||(this.store.select(R.selectCurrentUser).pipe((0,Pt.pQ)(this.destroyRef)).subscribe(D=>{this.currentUser=D}),this.utilisateurService.getFamilleByPerId(this.currentUser.perId).pipe((0,Pt.pQ)(this.destroyRef)).subscribe({next:D=>{D.forEach(_e=>this.sortMembresFamille(_e)),this.familles=this.sortFamilles(D),this.setHasFamily(),this.showFamilleInfo=!0}})),this.participantFA.setValidators(this.participantsValidator()),this.setLabelsByContexte(),this.contexte){case O.bO.Adhesion:this.contexteNom="d'abonnement";break;case O.bO.Entree:this.contexteNom="d'entr\xE9es";break;case O.bO.Session:this.contexteNom="\xE0 la session"}this.hasMultisession=(null===(M=this.sessionList)||void 0===M?void 0:M.length)>1}filtrerSessionsParItemId(M,D){return M.map(_e=>({..._e,items:_e.items.filter($e=>$e.ftbIdRef===D)})).filter(_e=>_e.items.length>0)}participantsValidator(){return M=>{if(M.parent){const D=this.participantFA.value,_e=D.filter(q=>!!q.courriel),$e=D.filter(q=>!!q.perId),Ge=new Set(_e.map(q=>q.courriel)),we=new Set($e.map(q=>q.perId));if(_e.length!==Ge.size||$e.length!==we.size)return{duplicatedParticipant:!0}}return null}}setLabelsByContexte(){const M=[O.bO.Entree,O.bO.Session,O.bO.Reservation].includes(this.contexte);this.labels={...this.labels,titrePlurial:M?"Participants":"Abonn\xE9s",titreIndividuel:M?"Participant":"Abonn\xE9",erreurDejaInscrit:M?"D\xE9j\xE0 participant":"D\xE9j\xE0 abonn\xE9",erreurUnicite:M?"Les participants doivent \xEAtre uniques":"Les abonn\xE9s doivent \xEAtre uniques",placeholderCourriel:M?"En fournissant une adresse courriel distincte pour chaque participant, chacun recevra une copie de son entr\xE9e, en plus d'avoir acc\xE8s \xE0 celle-ci en ligne":"En fournissant une adresse courriel distincte pour chaque abonn\xE9, chacun recevra une copie de son abonnement, en plus d'avoir acc\xE8s \xE0 celui-ci en ligne"}}precheckAdhesions(M){M.forEach(D=>{var _e;1===(null===(_e=D.adhesions)||void 0===_e?void 0:_e.length)&&this.activiteService.getAdhesion(D.adhesions[0].adhId).pipe((0,Pt.pQ)(this.destroyRef)).subscribe($e=>{this.adhesionStatusByOptId[D.id]=!$e.inscEnLigne})})}onClickAcheter(M,D){const $e=this.tarificationFA.value.find(Ge=>Ge.id===M).adhesions||[];1===$e.length?this.activiteService.getAdhesion($e[0].adhId).pipe((0,Pt.pQ)(this.destroyRef)).subscribe(Ge=>{this.store.dispatch(d.zI({payload:Ge})),this.router.navigateByUrl(`/activite/options-tarification?adh=${x.A.sanitize(Ge.inscNom)}&allowInvite=${this.allowInvite}`)}):this.router.navigateByUrl("/activite")}generateParticipants(){this.openedParticipantIndexArray=[0];const M=this.tarificationFA.value.filter(_e=>_e.qte>0),D=[];this.precheckAdhesions(M),M.forEach(_e=>{for(let $e=0;$e<_e.qte;$e++){let Ge=this.canOrderForCurrentUser&&0===D.length;this.accesAdh[_e.id]=_e.adhesions,this.accesAdhNames[_e.id]=this.formatAdhNames(_e.adhesions||[]),this.acces[_e.id]=(0,ge.xkh)(_e.acces,this.localisationService.getCurrentLocalisation(),this.appConfig.appConfig.localisationDefaut),this.accesIds[_e.id]=(_e.acces||[]).map(we=>we.id),_e.trfOptTypId!==O.G5.Groupe?D.push(this.generateParticipant(Ge,_e)):_e.trfOptOptions.forEach(we=>{for(let q=0;q<we.qte;q++)Ge=this.canOrderForCurrentUser&&0===D.length,D.push(this.generateParticipant(Ge,_e,we))})}}),this.existOrderForCurrentUser=this.canOrderForCurrentUser,this.participantFA.patchValue(D),this.participantFA.controls.forEac
1h(_e=>this.evaluateRestrictionsForAll(_e)),this.currentUser&&this.familles.length>0&&this.selectedPerId.emit(this.currentUser.perId)}generateParticipant(M,D,_e=null){var $e,Ge,we,q,mt,kt,Zt,jt,Vt,t,_n,wn,Rt;const Xn=M?U.z5.CurrentUser:0===this.famillesCurrentUser.length&&0===(null===($e=D.acces)||void 0===$e?void 0:$e.length)&&null===(null===(Ge=this.ageTrfs[D.id])||void 0===Ge?void 0:Ge[0])&&null===(null===(we=this.ageTrfs[D.id])||void 0===we?void 0:we[1])||this.isInvite?U.z5.Autre:null,nn=this.filtrerSessionsParItemId(this.sessionList,D.ftbId).map(Dn=>({...Dn,items:Dn.items.map(Yn=>({fteId:(0,ge.SiN)(),...Yn}))}));return{handleId:(0,ge.SiN)(),perId:M?null===(q=this.user)||void 0===q?void 0:q.perId:null,prenom:M?null===(mt=this.user)||void 0===mt?void 0:mt.prenom:null,nom:M?null===(kt=this.user)||void 0===kt?void 0:kt.nom:null,courriel:M?null===(Zt=this.user)||void 0===Zt?void 0:Zt.courriel:null,accesId:M?null===(jt=this.user)||void 0===jt?void 0:jt.accesId:null,fteId:D.fteId,optId:D.id,optNom:null!==(Vt=D.trfOptNom)&&void 0!==Vt?Vt:D.ftbNom,type:Xn,dateNaissance:null===(t=this.user)||void 0===t?void 0:t.dateNaissance,age:null===(_n=this.user)||void 0===_n?void 0:_n.age,trfOptChildId:null==_e?void 0:_e.id,trfOptChildNom:null==_e?void 0:_e.nom,renseigementAdditionnels:new de.DT,sessionArray:nn,adhIds:M?null===(wn=this.user)||void 0===wn?void 0:wn.adhIds:[],isAllRestrictionsRespected:M?null===(Rt=this.user)||void 0===Rt?void 0:Rt.isAllRestrictionsRespected:null}}openPopup(){var M;this.dialog.open(Ae.W,{data:{currentUser:this.currentUser,currentFamilyName:null===(M=this.currentFamily)||void 0===M?void 0:M.nom,isRename:!1},width:U.Uq.Small,disableClose:!0}).afterClosed().pipe((0,Fe.s)(1)).subscribe(_e=>{var $e;_e&&(this.store.dispatch(A.En.upsertFamily({famille:_e})),this.familles=[...this.familles,_e],this.hasFamily=!0,1===(null===($e=this.familles)||void 0===$e?void 0:$e.length)&&this.participantFA.controls.forEach(Ge=>{var we;Ge.get("type").value===U.z5.MembreFamille&&Ge.get("familleId").patchValue(null===(we=this.familles[0])||void 0===we?void 0:we.id)}))})}selectionParticipantChange(M,D){if(M.value===U.z5.CurrentUser)D.get("perId").patchValue(this.user.perId),D.get("prenom").patchValue(this.user.prenom),D.get("nom").patchValue(this.user.nom),D.get("courriel").patchValue(this.user.courriel),D.get("accesId").patchValue(this.user.accesId),this.resetPropertyParticipantControl(D,"familleId"),D.get("age").patchValue(this.user.age),D.get("dateNaissance").patchValue(this.user.dateNaissance),D.get("adhIds").patchValue(this.user.adhIds);else if(this.resetPropertyParticipantControl(D,"perId"),this.resetPropertyParticipantControl(D,"prenom"),this.resetPropertyParticipantControl(D,"nom"),this.resetPropertyParticipantControl(D,"courriel"),this.resetPropertyParticipantControl(D,"familleId"),this.resetPropertyParticipantControl(D,"accesId"),this.resetPropertyParticipantControl(D,"age"),this.resetPropertyParticipantControl(D,"dateNaissance"),this.resetPropertyParticipantControl(D,"adhIds"),D.markAsUntouched(),M.value===U.z5.MembreFamille&&1===this.famillesCurrentUser.length){var _e;D.get("familleId").patchValue(this.famillesCurrentUser[0].id),D.get("nom").patchValue(this.famillesCurrentUser[0].nom),D.get("prenom").patchValue(null===(_e=this.famillesCurrentUser[0].nomComplet)||void 0===_e?void 0:_e.replace(this.famillesCurrentUser[0].nom,"")),this.reactSelectFamille(this.famillesCurrentUser[0].id,D)}this.evaluateRestrictionsForAll(D),this.existOrderForCurrentUser=M.value===U.z5.CurrentUser||!(0,ge.gD_)(this.participantFA.controls.find($e=>$e!==D&&$e.get("type").value===U.z5.CurrentUser))}resetPropertyParticipantControl(M,D){M.get(D).patchValue(null),M.get(D).clearValidators(),M.get(D).updateV
1alueAndValidity()}onSelectFamille(M,D){this.reactSelectFamille(M.value,D),this.selectedFamId.emit(M.value);const _e=D.value.perId;_e&&this.selectedPerId.emit(_e)}sortMembresFamille(M){M.membres.sort((D,_e)=>D.isPrincipal&&!_e.isPrincipal?-1:!D.isPrincipal&&_e.isPrincipal?1:0)}sortFamilles(M){return M.sort((D,_e)=>D.nom.localeCompare(_e.nom))}showFamily(M){this.currentFamily=M}setHasFamily(){this.hasFamily=this.familles.length>0}selectionMembreFamilleChange(M,D,_e){var $e,Ge,we,q,mt,kt,Zt,jt;const Vt=this.familleMembreHashList[D].findIndex(t=>t.perId===M.value);this.participantFA.at(_e).get("accesId").patchValue(null===($e=this.familleMembreHashList[D][Vt])||void 0===$e?void 0:$e.accesId),this.participantFA.at(_e).get("age").patchValue(null===(Ge=this.familleMembreHashList[D][Vt])||void 0===Ge?void 0:Ge.age),null===(we=this.participantFA.at(_e).get("dateNaissance"))||void 0===we||we.patchValue(null===(q=this.familleMembreHashList[D][Vt])||void 0===q?void 0:q.dateNaissance),this.participantFA.at(_e).get("prenom").patchValue(null===(mt=this.familleMembreHashList[D][Vt])||void 0===mt||null===(mt=mt.nomComplet)||void 0===mt?void 0:mt.replace(null===(kt=this.familleMembreHashList[D][Vt])||void 0===kt?void 0:kt.nom,"")),this.participantFA.at(_e).get("nom").patchValue(null===(Zt=this.familleMembreHashList[D][Vt])||void 0===Zt?void 0:Zt.nom),this.participantFA.at(_e).get("adhIds").patchValue(null===(jt=this.familleMembreHashList[D][Vt])||void 0===jt?void 0:jt.adhIds),this.selectedFamId.emit(D),this.selectedPerId.emit(M.value),this.evaluateRestrictionsForAll(this.participantFA.at(_e))}reactSelectFamille(M,D){var _e,$e,Ge,we,q,mt;D.get("perId").patchValue(1===this.familleMembreHashList[M].length?this.familleMembreHashList[M][0].perId:null),1===this.familleMembreHashList[M].length&&(D.get("accesId").patchValue(null===(_e=this.familleMembreHashList[M][0])||void 0===_e?void 0:_e.accesId),D.get("prenom").patchValue(null===($e=this.familleMembreHashList[M][0])||void 0===$e||null===($e=$e.nomComplet)||void 0===$e?void 0:$e.replace(this.familleMembreHashList[M][0].nom,"")),D.get("nom").patchValue(null===(Ge=this.familleMembreHashList[M][0])||void 0===Ge?void 0:Ge.nom),D.get("perId").markAsTouched(),D.get("age").patchValue(null===(we=this.familleMembreHashList[M][0])||void 0===we?void 0:we.age),D.get("dateNaissance").patchValue(null===(q=this.familleMembreHashList[M][0])||void 0===q?void 0:q.dateNaissance),D.get("adhIds").patchValue(null===(mt=this.familleMembreHashList[M][0])||void 0===mt?void 0:mt.adhIds))}addChildToFamily(M,D=!1,_e){const $e=this.familles;1===this.familles.length?(this.dialog.open(Te.S,{data:{currentUser:this.currentUser,famille:this.familles[0],isMultipleFamily:!1},width:U.Uq.Large,disableClose:!0}).afterClosed().pipe((0,Pt.pQ)(this.destroyRef)).subscribe(we=>{null!=we&&we.famille&&this.store.dispatch(A.En.addChildFamily(we))}),this.actions$.pipe((0,C.gp)(A.En.addChildFamilySuccess),(0,Fe.s)(1),(0,xe.n)(we=>this.utilisateurService.getFamilleByPerId(this.currentUser.perId).pipe((0,qe.T)(q=>({familles:q,perId:we.perId,famId:we.savedFamille.id}))))).subscribe(({familles:we,perId:q})=>{this.familles=we,this.famillesCurrentUser=this.familles.filter(mt=>mt.membres.filter(kt=>kt.perId!==this.user.perId).length>0),this.famillesCurrentUser.sort((mt,kt)=>mt.nom.trim().localeCompare(kt.nom.trim())),this.famillesCurrentUser.forEach(mt=>{this.familleMembreHashList[mt.id]=mt.membres.filter(kt=>kt.perId!==this.user.perId)}),_e.get("familleId").patchValue(this.familles[0].id),_e.get("perId").patchValue(q),this.familles.forEach(mt=>this.processFamilyMembers(mt,_e))})):(this.dialog.open(Te.S,{data:{currentUser:this.currentUser,familylist:$e,isMultipleFamily:!0,isParticipant:D},width:U.Uq.Large,disableClose:!0}).afterClosed().pipe((0,Pt.pQ)(this.destroyRef)).subscribe(we=>{null!=we&&we.famille&&this.store.dispatch(A.En.addChildFamily(we))}),this.actions$.pipe((0,C.gp)(A.En.addChildFamilySuccess),(0,Fe.s)(1),(0,xe.n)(we=>this.utilisateurService.getFamilleByPerId(this.currentUser.perId).pipe((0,qe.T)(q=>({familles:q,perId:we.perId,famId:we.savedFamille.id})))),(0,xe.n)(({familles:we,perId:q,famId:mt})=>{this.familles=we,this.famillesCurrentUser=this.familles.filter(jt=>jt.membres.filter(Vt=>Vt.perId!==this.user.perId).length>0),this.famillesCurrentUser.sort((jt,Vt)=>jt.nom.trim().localeCompare(Vt.nom.trim())),this.famillesCurrentUser.forEach(jt=>{this.familleMembreHashList[jt.id]=jt.membres.filter(Vt=>Vt.perId!==this.user.perId)});const kt=we.filter(jt=>jt.membres.length>1);if(1===kt.length){var Zt;if(this.familleAvecPlusieursMembres=kt[0],this.familleMembreHashList[this.familleAvecPlusieursMembres.id]=this.familleAvecPlusieursMembres.membres.filter(jt=>!jt.isPrincipal),1===(null===(Zt=this.familleMembreHashList[this.familleAvecPlusieursMembres.id])||void 0===Zt?void 0:Zt.length)){const jt=this.familleMembreHashList[this.familleAvecPlusieursMembres.id][0];_e.get("familleId").patchValue(this.familleAvecPlusieursMembres.id),_e.get("perId").patchValue(jt.perId)}return[]}return _e.get("familleId").patchValue(mt),_e.get("perId").patchValue(q),this.utilisateurService.getFamilleByPerId(this.user.perId)}),(0,Pt.pQ)(this.destroyRef)).subscribe(we=>{we.length>0&&(this.famillesCurrentUser=we.filter(q=>q.membres.filter(mt=>mt.perId!==this.user.perId).length>0),this.famillesCurrentUser.sort((q,mt)=>q.nom.trim().localeCompare(mt.nom.trim())),this.famillesCurrentUser.forEach(q=>{this.familleMembreHashList[q.id]=q.membres.filter(mt=>mt.perId!==this.user.perId)}))}))}confirmParticipant(M){var D,_e,$e;const Ge=this.participantFA.get(`${M}`).get("renseigementAdditionnels");null==Ge||Ge.disable({emitEvent:!1}),null==Ge||Ge.updateValueAndValidity({onlySelf:!0}),this.participantFA.get(`${M}`).invalid?this.participantFA.get(`${M}`).markAllAsTouched():(null===(D=this.participantFA.get(`${M}`).get("renseigementAdditionnels"))||void 0===D||D.enable(),null===(_e=this.participantFA.get(`${M}`).get("renseigementAdditionnels"))||void 0===_e||_e.markAsUntouched({onlySelf:!1}),null===($e=this.participantFA.get(`${M}`).get("renseigementAdditionnels"))||void 0===$e||$e.updateValueAndValidity(),this.openedParticipantIndexArray=[M+1])}openParticipant(M){this.openedParticipantIndexArray.includes(M)||this.openedParticipantIndexArray.push(M)}evaluateRestrictionsForAll(M){var D,_e,$e,Ge,we,q,mt,kt,Zt;if(!this.isAllowedInscWithRestr)return;const jt=null===(D=M.get("optId"))||void 0===D?void 0:D.value,Vt=null===(_e=M.get("perId"))||void 0===_e?void 0:_e.value,t=null===($e=M.get("accesId"))||void 0===$e?void 0:$e.value,_n=null===(Ge=M.get("age"))||void 0===Ge?void 0:Ge.value,wn=(null===(we=M.get("adhIds"))||void 0===we?void 0:we.value)||[];let Rt=!0;const[Xn,nn]=null!==(q=null===(mt=this.ageTrfs)||void 0===mt?void 0:mt.get(jt))&&void 0!==q?q:[null,null];Vt&&!this.isInvite&&(Xn||nn)&&(_n?(Xn&&_n<Xn&&(Rt=!1),nn&&_n>nn&&(Rt=!1)):Rt=!1),Vt&&(null===(kt=this.accesIds[jt])||void 0===kt?void 0:kt.length)>0&&!this.accesIds[jt].includes(t)&&!this.isInvite&&(Rt=!1);const Dn=this.tarificationFA.controls.find(Un=>Un.get("id").value===jt),Yn=(null==Dn||null===(Zt=Dn.get("adhesions"))||void 0===Zt||null===(Zt=Zt.value)||void 0===Zt?void 0:Zt.map(Un=>Un.adhId))||[];Vt&&Yn.length&&!this.isInvite&&Yn.some(ai=>!wn.includes(ai))&&(Rt=!1),M.patchValue({isAllRestrictionsRespected:Rt},{emitEvent:!1})}processFamilyMembers(M,D){var _e;if(this.familleMembreHashList[M.id]){const $e=M.membres.filter(q=>!q.isPrincipal&&q.perId!==this.user.perId&&!this.familleMembreHashList[M.id].some(mt=>mt.perId===q.perId));this.familleMembreHashList[M.id].push(...$e);const Ge=this.familleMembreHashList[M.id].findIndex(q=>q.perId===D.get("perId").value),we=this.familleMembreHashList[M.id][Ge];D.get("familleId").patchValue(M.id),D.get("perId").patchValue(we.perId),D.get("prenom").patchValue(null==we?void 0:we.prenom),D.get("nom").patchValue(null==we?void 0:we.nom),D.get("age").patchValue(null==we?void 0:we.age),D.get("dateNaissance").patchValue(null==we?void 0:we.dateNaissance)}else this.familleMembreHashList[M.id]=M.membres.filter($e=>!$e.isPrincipal&&$e.perId!==this.user.perId);if(1===(null===(_e=this.familleMembreHashList[M.id])||void 0===_e?void 0:_e.length)){const $e=this.familleMembreHashList[M.id][0];D.get("familleId").patchValue(M.id),D.get("perId").patchValue($e.perId),D.get("prenom").patchValue(null==$e?void 0:$e.prenom),D.get("nom").patchValue(null==$e?void 0:$e.nom),D.get("age").patchValue(null==$e?void 0:$e.age),D.get("dateNaissance").patchValue(null==$e?void 0:$e.dateNaissance)}}onInputBlur(M){var D;M.patchValue(null===(D=M.value)||void 0===D?void 0:D.trim())}
1formatAdhNames(M){if(!M||!M.length)return"";const D=M.map(_e=>this.isFr?`\xab ${_e.nom} \xbb`:`"${_e.nom}"`);if(1===D.length)return D[0];if(2===D.length)return`${D[0]} ${"et"} ${D[1]}`;{const _e=D.pop();return`${D.join(", ")} ${"et"} ${_e}`}}}return(P=me).\u0275fac=function(M){return new(M||P)},P.\u0275cmp=a.VBU({type:P,selectors:[["vplus-activite-selection-participants"]],inputs:{tarificationFA:"tarificationFA",participantFA:"participantFA",user:"user",famillesCurrentUser:"famillesCurrentUser",familleMembreHashList:"familleMembreHashList",canOrderForCurrentUser:"canOrderForCurrentUser",isInvite:"isInvite",contexte:"contexte",ageTrfs:"ageTrfs",sessionList:"sessionList",allowInvite:"allowInvite",isAllowedInscWithRestr:"isAllowedInscWithRestr"},outputs:{selectedFamId:"selectedFamId",selectedPerId:"selectedPerId"},decls:7,vars:3,consts:()=>{let S,M,D,_e,$e,Ge,we,q,mt,kt,Zt,jt,Vt,t,_n,wn,Rt,Xn,nn,Dn,Yn,Un,ai,v;return S="Confirmer",M=" Un membre de ma famille ",D="Aucune famille n'est associ\xE9e \xE0 votre compte.",_e="Ajouter une famille",$e="Vous n\u2019avez aucun membre dans votre famille.",Ge="Ajouter un enfant",we="Famille",q="Champ obligatoire",mt="Membre",kt=" Ajouter un enfant ",Zt=" Autre personne ",jt="Pr\xE9nom",Vt="Nom",t="Courriel",_n="Champ obligatoire",wn="Champ obligatoire",Rt=" Faire une demande. ",Xn=" Ajouter ma date de naissance. ",nn=" Ajouter ma date de naissance. ",Dn=" Ajouter ma date de naissance. ",Yn="Champ obligatoire",Un="Voir la famille.",ai="Cette personne ne r\xE9pond pas encore aux crit\xE8res requis. Veuillez prendre les mesures n\xE9cessaires afin qu\u2019elle soit conforme le jour de l\u2019activit\xE9 et en mesure de fournir une preuve.",v="Veuillez vous assurer que cette personne r\xE9pond aux crit\xE8res requis et qu\u2019elle sera en mesure de fournir une preuve le jour de l\u2019activit\xE9.",[["expansionPanel",""],["btn",""],S,M,D,_e,$e,Ge,we,q,mt,kt,Zt,jt,Vt,t,_n,wn,Rt,Xn,nn,Dn,Yn,Un,ai,v,[1,"margin-top-2","option-tarification-container",3,"formGroup"],[1,"extension-panel-container",3,"formGroupName"],[1,"custom-mat-error-message","margin-top-minus-10"],["hideToggle","true",3,"opened","expanded"],[1,"custom-header",3,"collapsedHeight","expandedHeight"],[1,"expand-icon","inverted-color",3,"ngClass"],[1,"black-text","block"],[1,"membre-container"],["required","","formControlName","type"],[1,"padding-bottom-6",3,"value"],[3,"value"],[1,"step-two-form-content"],[1,"flex-column"],[1,"custom-mat-error"],[1,"warning-yellow-color"],[1,"margin-top-1","participant-actions-btn"],["type","button","mat-raised-button","",1,"custom-button-full","custom-button-standard","custom-button-stepper",3,"click"],[1,"block"],[1,"padding-bottom-6",3,"change","value"],[1,"wrap-mat-radio-label"],[3,"change","value"],[1,"primary-color","select-par-add-button",3,"click"],[1,"lien-field","espace-champs"],[1,"field-container",3,"error-margin"],["required","","formControlName","familleId",3,"selectionChange"],["required","","formControlName","perId",3,"selectionChange"],[1,"field-container"],[1,"select-par-add-button",3,"click"],["required","","matInput","","type","text","formControlName","prenom","name","prenom","autocomplete","given- ",3,"blur"],[1,"custom-mat-error-field"],["required","","matInput","","type","text","formControlName","nom","name","nom","autocomplete","family-name",3,"blur"],["subscriptSizing","dynamic"],["matInput","","formControlName","courriel","name","courriel","autocomplete","email",3,"blur"],[1,"primary-color","select-par-add-button",3,"routerLink"],[1,"flex-start"],["type","button",1,"primary-color","white-bg","select-par-add-button",3,"click","ngClass","disabled","matTooltip"],[1,"primary-color","select-par-add-button",3,"routerLink","queryParams"]]},template:function(M,D){1&M&&(a.j41(0,"div")(1,"h2"),a.EFF(2),a.k0s()(),a.j41(3,"div",26),a.Z7z(4,Z,33,22,"div",27,a.Vm6),a.k0s(),a.DNE(6,Re,2,1,"mat-error",28)),2&M&&(a.R7$(2),a.JRh(D.labels.titrePlurial),a.R7$(),a.Y8G("formGroup",D.participantFA),a.R7$(),a.Dyx(D.participantFA.controls),a.R7$(2),a.vxM(6,D.participantFA.errors&&D.participantFA.touched?6:-1))},dependencies:[ot.GK,ot.Z2,ot.WN,Ke.fg,ve.rl,ve.nJ,ve.MV,ve.TL,He.wT,Qe.VT,Qe._g,We.VO,dt.$z,Ct.oV,en.YU,Je.me,Je.BC,Je.cb,Je.YS,Je.j4,Je.JD,Je.$R,zt.oY,nt.Wk],encapsulation:2}),me})()},98472:(Nt,ne,g)=>{"use strict";g.d(ne,{n:()=>en});var d=g(10467),R=g(49823),A=g(51188),x=g(4673),C=g(49484),e=g(35052),de=g(64075),y=g(54438),a=g(54843),U=g(89417),O=g(10916),Ae=g(9310),Te=g(89079),ge=g(88834),Ce=g(60177),Fe=g(81405),xe=g(88974),qe=g(75824);function rt(Je,zt){1&Je&&y.eu8(0)}function nt(Je,zt){if(1&Je&&y.DNE(0,rt,1,0,"ng-container",6),2&Je){y.XpG();const _t=y.sdS(3);y.Y8G("ngTemplateOutlet",_t)}}function vt(Je,zt){1&Je&&y.eu8(0)}function Pt(Je,zt){if(1&Je&&(y.nrm(0,"vplus-mobile-header",7),y.j41(1,"ion-content",8),y.DNE(2,vt,1,0,"ng-container",6),y.k0s()),2&Je){y.XpG();const _t=y.sdS(3);y.Y8G("headerTitle","")("returnButtonType","back-button")("forceDefault",!0)("menuId","ficheInscription"),y.R7$(2),y.Y8G("ngTemplateOutlet",_t)}}function l(Je,zt){1&Je&&y.nrm(0,"vplus-loading-spinner")}function ot(Je,zt){if(1&Je){const _t=y.RV6();y.j41(0,"a",11),y.bIt("click",function(){y.eBV(_t);const Ye=y.XpG(3);return y.Njj(Ye.onCancel())}),y.nrm(1,"ion-icon",12),y.j41(2,"span"),y.pXf(3,1),y.k0s()(),y.j41(4,"h1",13),y.pXf(5,2),y.k0s(),y.j41(6,"p",14),y.EFF(7),y.k0s()}if(2&Je){const _t=y.XpG(3);y.R7$(7),y.JRh(_t.nomActivite)}}function Ke(Je,zt){if(1&Je&&(y.j41(0,"h1",13),y.pXf(1,4),y.k0s(),y.j41(2,"p",14),y.EFF(3),y.k0s()),2&Je){const _t=y.XpG(4);y.R7$(3),y.JRh(_t.nomActivite)}}function ve(Je,zt){if(1&Je){const _t=y.RV6();y.j41(0,"button",19),y.bIt("click",function(){y.eBV(_t);const Ye=y.XpG(4);return y.Njj(Ye.onCancel())}),y.j41(1,"span"),y.pXf(2,5),y.k0s()()}if(2&Je){const _t=y.XpG(4);y.Y8G("disabled",_t.isSaving())}}function He(Je,zt){if(1&Je){const _t=y.RV6();y.j41(0,"div",10),y.DNE(1,Ke,4,1),y.nrm(2,"vplus-activite-citoyen-rense
1ignements-additionnels",15),y.j41(3,"div",16),y.DNE(4,ve,3,1,"button",17),y.j41(5,"button",18),y.bIt("click",function(){y.eBV(_t);const Ye=y.XpG(3);return y.Njj(Ye.onSave())}),y.j41(6,"span"),y.pXf(7,3),y.k0s()()()()}if(2&Je){const _t=y.XpG(3);y.R7$(),y.vxM(1,_t.isLoggedIn?-1:1),y.R7$(),y.Y8G("form",_t.form)("participantsFA",_t.participantsFA)("questSupp",_t.questSupp)("showTitle",!1),y.R7$(2),y.vxM(4,_t.isLoggedIn?4:-1),y.R7$(),y.Y8G("disabled",_t.isSaving())}}function Qe(Je,zt){1&Je&&y.nrm(0,"vplus-loading-spinner")}function We(Je,zt){if(1&Je&&y.DNE(0,ot,8,1)(1,He,8,7,"div",10)(2,Qe,1,0),2&Je){const _t=y.XpG(2);y.vxM(0,_t.isLoggedIn?0:-1),y.R7$(),y.vxM(1,_t.isFormReady()?1:2)}}function dt(Je,zt){if(1&Je&&y.nrm(0,"vplus-loading-spinner",20),2&Je){const _t=y.XpG(2);y.Y8G("loadingFailed",_t.dataLoadingFailed)}}function Ct(Je,zt){if(1&Je&&(y.j41(0,"div",9),y.DNE(1,l,1,0,"vplus-loading-spinner")(2,We,3,2)(3,dt,1,1),y.k0s()),2&Je){const _t=y.XpG();y.R7$(),y.vxM(1,_t.isLoading()?1:_t.questSupp?2:3)}}let en=(()=>{var Je;class zt{constructor(){this.route=(0,y.WQX)(A.nX),this.router=(0,y.WQX)(A.Ix),this.activiteService=(0,y.WQX)(C.Z),this.destroyRef=(0,y.WQX)(y.abz),this.store=(0,y.WQX)(Ae.il),this.appConfig=(0,y.WQX)(e.o),this.canDeactivate=!0,this.isLoading=(0,y.vPA)(!0),this.isFormReady=(0,y.vPA)(!1),this.isSaving=(0,y.vPA)(!1),this.isSaved=!1,this.isLoggedIn=!1,this.isInProfilOutlet="profil"===this.route.snapshot.outlet,this.dataLoadingFailed=!1;const ie="ficheInscriptionParams",Ye=this.route.snapshot.queryParams;Ye.type&&sessionStorage.setItem(ie,JSON.stringify(Ye));const re=Ye.type?Ye:JSON.parse(sessionStorage.getItem(ie)||"{}");this.type=re.type,this.perId=re.perId,this.partId=re.partId,this.sesConfigId=re.sesConfigId,this.enregId=re.enregId,this.eveActId=re.eveActId,this.nomActivite=re.nomActivite?decodeURIComponent(re.nomActivite):null,this.store.select(R.selectIsLoggedIn).pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{this.isLoggedIn=ke});const it=window.innerWidth<=768;if(this.isLoggedIn&&!this.isInProfilOutlet&&!it)return sessionStorage.setItem(ie,JSON.stringify(re)),void this.router.navigate(["/utilisateur/profil",{outlets:{profil:["activite","fiche-inscription"]}}]);this.loadFormData()}loadFormData(){var ie=this;return(0,d.A)(function*(){try{ie.formData=yield(0,a._)(ie.activiteService.getEnregistrementRenseigSuppPC({type:ie.type,perId:ie.perId,partId:ie.partId,sesConfigId:ie.sesConfigId,enregId:ie.enregId,eveActId:ie.eveActId})),ie.personName=ie.formData.personName,ie.questSupp=ie.formData.questSupp,ie.initForm(),ie.isLoading.set(!1)}catch{ie.isLoading.set(!1),ie.dataLoadingFailed=!0}})()}initForm(){const[ie,...Ye]=(this.personName||"").split(" "),re=Ye.join(" "),it=this.buildRenseignementsForm();if(this.formData.currentAnswers){const Ue=this.normalizeRenseignements(it,this.formData.currentAnswers);it.patchValue(Ue);const Yt=it.get("personneACharge");null==Yt||Yt.controls.forEach(Jt=>{var De,w;const b=null===(De=Jt.get("numeroAssuranceSociale"))||void 0===De?void 0:De.value;null===(w=Jt.get("isEditNas"))||void 0===w||w.setValue(!b)})}const ke=new U.gE({prenom:new U.MJ(ie),nom:new U.MJ(re),renseigementAdditionnels:it});this.participantsFA=new U.Yp([ke]),this.form=new U.gE({participants:this.participantsFA}),it.markAsUntouched(),it.updateValueAndValidity(),it.valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(()=>{this.isSaved||(this.canDeactivate=!1)}),this.isFormReady.set(!0)}buildRenseignementsForm(){const ie=this.questSupp,Ye=this.appConfig.appConfig.telPattern,re=new U.gE({numeroAssurance:new U.MJ(null,{validators:[(0,de.aI8)()],updateOn:"blur"}),dateExpiration:new U.MJ(null),nomMedecin:new U.MJ(null,null!=ie&&ie.hasInfoMedecin?[U.k0.required]:[]),telephoneMedecin:new U.MJ(null,{validators:null!=ie&&ie.hasInfoMedecin?[U.k0.required,U.k0.pattern(Ye)]:[],updateOn:"blur"}),isAllergiesMedicaments:new U.MJ(null,null!=ie&&ie.hasAllergieMed?[U.k0.required]:[]),listeAllergiesMedicaments:new U.MJ(null),medicamentsContreAllergies:new U.MJ(null),injection:new U.MJ(null),isAllergiesAlimentaires:new U.MJ(null,null!=ie&&ie.hasAllergieAlim?[U.k0.required]:[]),listeAllergiesAlimentaires:new U.MJ(null),isPriseMed:new U.MJ(null,null!=ie&&ie.hasPriseMed?[U.k0.required]:[]),medicationPrise:new U.MJ(null),medicamentsAllergiesAlimentaires:new U.MJ(null),medicamentsAllergiesMedicamentueuse:new U.MJ(null),troublesComportement:new U.MJ(null,null!=ie&&ie.hasConditionPhy?[U.k0.required]:[]),descriptionComportement:new U.MJ(null,null!=ie&&ie.hasConditionPhy?[U.k0.required]:[]),descriptionRegime:new U.MJ(null,null!=ie&&ie.hasRegimeAlim?[U.k0.required]:[]),regimeAlimentaire:new U.MJ(null),medicamentsContreAllergiesAlimentaire:new U.MJ(null),isConsentementMedical:new U.MJ(null,null!=ie&&ie.hasConsentementSoin?[U.k0.required]:[]),isRegimeAlimentaire:new U.MJ(null,null!=ie&&ie.hasRegimeAlim?[U.k0.required]:[]),isPortLunette:new U.MJ(null,null!=ie&&ie.hasPortLun?[U.k0.required]:[]),niveauNatation:new U.MJ(null,null!=ie&&ie.hasNiveauNatation?[U.k0.required]:[]),needJacket:new U.MJ(null,null!=ie&&ie.hasNeedJacket?[U.k0.required]:[]),demandeSpecial:new U.MJ(null,null!=ie&&ie.hasDemandeSpeciale?[U.k0.required]:[]),nomPrenomDemande:new U.MJ(null),isAutoQuitter:new U.MJ(null,null!=ie&&ie.hasAutoQuitter?[U.k0.required]:[]),autoPhoto:new U.MJ(null,null!=ie&&ie.hasAutoPhoto?[U.k0.required]:[]),codeVie:new U.MJ(null,null!=ie&&ie.hasCodeVie?[U.k0.requiredTrue]:[]),isAutre:new U.MJ(null,null!=ie&&ie.hasAutre?[U.k0.required]:[]),autre:new U.MJ(null),renonRespo:new U.MJ(null,null!=ie&&ie.hasRenonRespo?[U.k0.requiredTrue]:[]),isFraisGardeEnfant:new U.MJ(null,null!=ie&&ie.hasInfoRelative?[U.k0.required]:[]),contactUrgence:new
1U.Yp([]),personneAutorisee:new U.Yp([]),personneACharge:new U.Yp([]),tuteurLegal:new U.Yp([])});re.get("contactUrgence").setDefaultControlBuilder(this.createFormContactUrgence.bind(this)),re.get("personneAutorisee").setDefaultControlBuilder(this.createFormPersonneAutorisee.bind(this)),re.get("personneACharge").setDefaultControlBuilder(this.createFormPersonneACharge.bind(this)),re.get("tuteurLegal").setDefaultControlBuilder(this.createFormTuteurLegal.bind(this));const it=re.get("personneACharge");return re.get("isAllergiesMedicaments").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{ke?(re.get("listeAllergiesMedicaments").addValidators(U.k0.required),re.get("medicamentsContreAllergies").addValidators(U.k0.required),re.get("injection").addValidators(U.k0.required)):(re.get("listeAllergiesMedicaments").clearValidators(),re.get("listeAllergiesMedicaments").setErrors(null),re.get("medicamentsContreAllergies").clearValidators(),re.get("medicamentsContreAllergies").setErrors(null),re.get("injection").clearValidators(),re.get("injection").setErrors(null),re.get("medicamentsAllergiesMedicamentueuse").clearValidators(),re.get("medicamentsAllergiesMedicamentueuse").setErrors(null)),re.get("listeAllergiesMedicaments").markAsUntouched(),re.get("medicamentsAllergiesMedicamentueuse").markAsUntouched(),re.get("medicamentsContreAllergies").markAsUntouched(),re.get("injection").markAsUntouched(),re.get("injection").updateValueAndValidity(),re.get("listeAllergiesMedicaments").updateValueAndValidity(),re.get("medicamentsContreAllergies").updateValueAndValidity(),re.get("medicamentsAllergiesMedicamentueuse").updateValueAndValidity()}),re.get("medicamentsContreAllergies").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{ke&&re.get("isAllergiesMedicaments").value?re.get("medicamentsAllergiesMedicamentueuse").addValidators(U.k0.required):(re.get("medicamentsAllergiesMedicamentueuse").clearValidators(),re.get("medicamentsAllergiesMedicamentueuse").setErrors(null)),re.get("medicamentsAllergiesMedicamentueuse").markAsUntouched(),re.get("medicamentsAllergiesMedicamentueuse").updateValueAndValidity()}),re.get("isAllergiesAlimentaires").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{ke?(re.get("listeAllergiesAlimentaires").addValidators(U.k0.required),re.get("medicamentsAllergiesAlimentaires").addValidators(U.k0.required),re.get("injection").addValidators(U.k0.required)):(re.get("listeAllergiesAlimentaires").clearValidators(),re.get("listeAllergiesAlimentaires").setErrors(null),re.get("medicamentsAllergiesAlimentaires").clearValidators(),re.get("medicamentsAllergiesAlimentaires").setErrors(null),re.get("injection").clearValidators(),re.get("injection").setErrors(null),re.get("medicamentsContreAllergiesAlimentaire").clearValidators(),re.get("medicamentsContreAllergiesAlimentaire").setErrors(null)),re.get("injection").markAsUntouched(),re.get("listeAllergiesAlimentaires").markAsUntouched(),re.get("medicamentsAllergiesAlimentaires").markAsUntouched(),re.get("medicamentsContreAllergiesAlimentaire").markAsUntouched(),re.get("injection").updateValueAndValidity(),re.get("listeAllergiesAlimentaires").updateValueAndValidity(),re.get("medicamentsAllergiesAlimentaires").updateValueAndValidity(),re.get("medicamentsContreAllergiesAlimentaire").updateValueAndValidity()}),re.get("isPriseMed").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{ke?re.get("medicationPrise").addValidators(U.k0.required):(re.get("medicationPrise").clearValidators(),re.get("medicationPrise").setErrors(null)),re.get("medicationPrise").markAsUntouched(),re.get("medicationPrise").updateValueAndValidity()}),re.get("troublesComportement").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{ke?re.get("descriptionComportement").addValidators(U.k0.required):(re.get("descriptionComportement").clearValidators(),re.get("descriptionComportement").setErrors(null)),re.get("descriptionComportement").markAsUntouched(),re.get("descriptionComportement").updateValueAndValidity()}),re.get("isRegimeAlimentaire").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{ke?re.get("regimeAlimentaire").addValidators(U.k0.required):(re.get("regimeAlimentaire").clearValidators(),re.get("regimeAlimentaire").setErrors(null),re.get("descriptionRegime").clearValidators(),re.get("descriptionRegime").setErrors(null)),re.get("regimeAlimentaire").markAsUntouched(),re.get("descriptionRegime").markAsUntouched(),re.get("regimeAlimentaire").updateV
1alueAndValidity(),re.get("descriptionRegime").updateValueAndValidity()}),re.get("regimeAlimentaire").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{null!=ke&&ke.includes("Autre")&&re.get("isRegimeAlimentaire").value?re.get("descriptionRegime").addValidators(U.k0.required):(re.get("descriptionRegime").clearValidators(),re.get("descriptionRegime").setErrors(null)),re.get("descriptionRegime").markAsUntouched(),re.get("descriptionRegime").updateValueAndValidity()}),re.get("demandeSpecial").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{ke?re.get("nomPrenomDemande").addValidators(U.k0.required):(re.get("nomPrenomDemande").clearValidators(),re.get("nomPrenomDemande").setErrors(null)),re.get("nomPrenomDemande").markAsUntouched(),re.get("nomPrenomDemande").updateValueAndValidity()}),re.get("isAutre").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{ke?re.get("autre").addValidators(U.k0.required):(re.get("autre").clearValidators(),re.get("autre").setErrors(null)),re.get("autre").markAsUntouched(),re.get("autre").updateValueAndValidity()}),re.get("medicamentsAllergiesAlimentaires").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{ke&&re.get("isAllergiesAlimentaires").value?re.get("medicamentsContreAllergiesAlimentaire").addValidators(U.k0.required):(re.get("medicamentsContreAllergiesAlimentaire").clearValidators(),re.get("medicamentsContreAllergiesAlimentaire").setErrors(null)),re.get("medicamentsContreAllergiesAlimentaire").markAsUntouched(),re.get("medicamentsContreAllergiesAlimentaire").updateValueAndValidity()}),re.get("isFraisGardeEnfant").valueChanges.pipe((0,Te.pQ)(this.destroyRef)).subscribe(ke=>{ke?0===it.length&&it.push(this.createFormPersonneACharge()):(it.clearValidators(),it.setErrors(null)),it.markAsUntouched(),it.updateValueAndValidity(),it.controls.forEach(Ue=>{ke?(Ue.get("prenom").addValidators(U.k0.required),Ue.get("nom").addValidators(U.k0.required),Ue.get("adressePostale").addValidators(U.k0.required),Ue.get("ville").addValidators(U.k0.required),Ue.get("codePostal").addValidators([U.k0.required,(0,de.$Gt)()]),it.length>1?Ue.get("pourcentage").addValidators(U.k0.required):(Ue.get("pourcentage").clearValidators(),Ue.get("pourcentage").value||Ue.get("pourcentage").setValue("100"))):(Ue.get("prenom").clearValidators(),Ue.get("nom").clearValidators(),Ue.get("adressePostale").clearValidators(),Ue.get("ville").clearValidators(),Ue.get("codePostal").clearValidators(),Ue.get("pourcentage").clearValidators(),Ue.clearValidators(),Ue.get("prenom").setErrors(null),Ue.get("nom").setErrors(null),Ue.get("adressePostale").setErrors(null),Ue.get("ville").setErrors(null),Ue.get("codePostal").setErrors(null),Ue.get("pourcentage").setErrors(null)),Ue.get("prenom").markAsUntouched(),Ue.get("nom").markAsUntouched(),Ue.get("adressePostale").markAsUntouched(),Ue.get("ville").markAsUntouched(),Ue.get("codePostal").markAsUntouched(),Ue.get("pourcentage").markAsUntouched(),Ue.get("prenom").updateValueAndValidity(),Ue.get("nom").updateValueAndValidity(),Ue.get("adressePostale").updateValueAndValidity(),Ue.get("ville").updateValueAndValidity(),Ue.get("codePostal").updateValueAndValidity(),Ue.get("pourcentage").updateValueAndValidity()})}),re}createFormContactUrgence(){const ie=this.appConfig.appConfig.telPattern,Ye=this.questSupp;return new U.gE({prenom:new U.MJ(null,null!=Ye&&Ye.hasContactUrg?[U.k0.required]:[]),nom:new U.MJ(null,null!=Ye&&Ye.hasContactUrg?[U.k0.required]:[]),telephoneCellulaire:new U.MJ(null,{validators:null!=Ye&&Ye.hasContactUrg?[U.k0.required,U.k0.pattern(ie)]:[],updateOn:"blur"}),telephoneMaison:new U.MJ(null,{validators:U.k0.pattern(ie),updateOn:"blur"}),lien:new U.MJ(null,null!=Ye&&Ye.hasContactUrg?[U.k0.required]:[])})}createFormPersonneAutorisee(){var ie;const Ye=this.appConfig.appConfig.telPattern,re=null!==(ie=this.questSupp)&&void 0!==ie&&ie.hasPersAutorise?U.k0.required:[];return new U.gE({prenom:new U.MJ(null,re),nom:new U.MJ(null,re),telephoneCellulaire:new U.MJ(null,{validators:U.k0.pattern(Ye),updateOn:"blur"}),telephoneMaison:new U.MJ(null,{validators:U.k0.pattern(Ye),updateOn:"blur"}),lien:new U.MJ(null,re)})}createFormPersonneACharge(){return new U.gE({prenom:new U.MJ(null,U.k0.required),nom:new U.MJ(null,U.k0.required),adressePostale:ne
1w U.MJ(null,U.k0.required),ville:new U.MJ(null,U.k0.required),codePostal:new U.MJ(null,[U.k0.required,(0,de.$Gt)()]),pourcentage:new U.MJ(null,U.k0.required),numeroAssuranceSociale:new U.MJ(null,{validators:[(0,de.NSs)()],updateOn:"blur"}),numeroAssuranceSocialeEncrypted:new U.MJ(null),isEditNas:new U.MJ(!0)})}createFormTuteurLegal(){var ie,Ye;const re=this.appConfig.appConfig.telPattern,it=null!==(ie=this.questSupp)&&void 0!==ie&&ie.hasTuteurLeg?[U.k0.required]:[];return new U.gE({prenom:new U.MJ(null,it),nom:new U.MJ(null,it),telephoneCellulaire:new U.MJ(null,{validators:[...it,U.k0.pattern(re)],updateOn:"blur"}),courriel:new U.MJ(null,{validators:null!==(Ye=this.questSupp)&&void 0!==Ye&&Ye.hasTuteurLeg?[(0,de.Bjz)()]:[],updateOn:"blur"}),lien:new U.MJ(null,it)})}normalizeRenseignements(ie,Ye){var re;const it={},ke=null===(re=this.questSupp)||void 0===re?void 0:re.hasTuteurLeg;return Object.keys(ie.controls).forEach(Ue=>{const Yt=ie.get(Ue),Jt=Ye[Ue];it[Ue]=Yt instanceof U.Yp?Array.isArray(Jt)?"tuteurLegal"===Ue&&ke&&0===Jt.length?[{prenom:"",nom:"",telephoneCellulaire:"",courriel:"",lien:""}]:"personneACharge"!==Ue||Ye.isFraisGardeEnfant?Jt:[]:Yt.value:null==Jt?Yt.value:Jt}),it}onSave(){var ie=this;return(0,d.A)(function*(){var Ye;const re=null===(Ye=ie.participantsFA.at(0))||void 0===Ye?void 0:Ye.get("renseigementAdditionnels");if(re){if(re.markAllAsTouched(),re.invalid)return void ie.store.dispatch(new R.Actions.ShowSnackBar("Impossible d'enregistrer car certains champs sont invalides",R.EnumSnackBarType.Echec));ie.isSaving.set(!0);try{yield(0,a._)(ie.activiteService.updateRegistrationRenseigSupp({type:ie.type,perId:ie.perId,partId:ie.partId,sesConfigId:ie.sesConfigId,enregId:ie.enregId,eveActId:ie.eveActId,renseigSupp:re.getRawValue()})),ie.isSaved=!0,ie.canDeactivate=!0,ie.isSaving.set(!1),ie.store.dispatch(new R.Actions.ShowSnackBar("Vos modifications ont \xE9t\xE9 enregistr\xE9es avec succ\xE8s.",R.EnumSnackBarType.Succes))}catch{ie.isSaving.set(!1),ie.store.dispatch(new R.Actions.ShowSnackBar("Une erreur est survenue lors de la sauvegarde.",R.EnumSnackBarType.Echec))}}})()}onCancel(){sessionStorage.removeItem("ficheInscriptionParams"),this.router.navigate(this.isInProfilOutlet?["/utilisateur/profil",{outlets:{profil:["activite"]}}]:["/utilisateur/profil/activite"])}}return(Je=zt).\u0275fac=function(ie){return new(ie||Je)},Je.\u0275cmp=y.VBU({type:Je,selectors:[["vplus-fiche-inscription"]],standalone:!0,features:[y.aNF],decls:4,vars:1,consts:()=>{let _t,ie,Ye,re,it;return _t="Mes activit\xE9s",ie="Modification de la fiche d'inscription",Ye="Enregistrer les modifications",re="Modification de la fiche d'inscription",it="Annuler",[["formContent",""],_t,ie,Ye,re,it,[4,"ngTemplateOutlet"],["defaultHref","/utilisateur/profil/activite",1,"hide-desktop","mobile-header",3,"headerTitle","returnButtonType","forceDefault","menuId"],["id","ficheInscription"],[1,"fiche-inscription-container"],[1,"formulaire-wrapper"],[1,"back-link","primary-color",3,"click"],["name","arrow-back",1,"hide-ion-tooltip","back-icon"],[1,"titre-page"],[1,"nom-activite","primary-color"],[3,"form","participantsFA","questSupp","showTitle"],[1,"actions-container"],["mat-stroked-button","",1,"btn-annuler",3,"disabled"],["mat-raised-button","","color","primary",1,"btn-enregistrer",3,"click","disabled"],["mat-stroked-button","",1,"btn-annuler",3,"click","disabled"],[3,"loadingFailed"]]},template:function(ie,Ye){1&ie&&y.DNE(0,nt,1,1,"ng-container")(1,Pt,3,5)(2,Ct,4,1,"ng-template",null,0,y.C5r),2&ie&&y.vxM(0,Ye.isInProfilOutlet?0:1)},dependencies:[O.G,ge.$z,Ce.T3,Fe.f,xe.W9,xe.iq,qe.N,x.N],styles:[".fiche-inscription-container[_ngcontent-%COMP%]{padding:.5rem 0 2rem}@media (max-width: 768px){.fiche-inscription-container[_ngcontent-%COMP%]{padding:1rem 1rem 2rem;display:flex;flex-direction:column;align-items:center}}.back-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;align-self:flex-start;gap:.25rem;text-decoration:none;font-weight:500;margin-bottom:.75rem;cursor:pointer}.back-link[_ngcontent-%COMP%] .back-icon[_ngcontent-%COMP%]{font-size:1rem}.titre-page[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:700;margin-bottom:.25rem;margin-top:0}@media (max-width: 768px){.titre-page[_ngcontent-%COMP%]{font-size:1.4rem}}.nom-activite[_ngcontent-%COMP%]{font-size:1rem;margin-top:0;margin-bottom:1rem}
1@media (max-width: 768px){.nom-activite[_ngcontent-%COMP%]{font-size:.9rem}}.formulaire-wrapper[_ngcontent-%COMP%]{max-width:900px;margin:0 auto;width:100%}.formulaire-wrapper[_ngcontent-%COMP%] .participant-actions-btn{display:flex;justify-content:flex-end}@media (max-width: 768px){.formulaire-wrapper[_ngcontent-%COMP%]{max-width:100%}}.actions-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:1.5rem;padding:.5rem 0 1rem}@media (max-width: 768px){.actions-container[_ngcontent-%COMP%]{flex-direction:column;gap:.75rem;margin-top:1rem}.actions-container[_ngcontent-%COMP%] .btn-enregistrer[_ngcontent-%COMP%], .actions-container[_ngcontent-%COMP%] .btn-annuler[_ngcontent-%COMP%]{width:100%;margin:0}}.btn-annuler[_ngcontent-%COMP%]{margin-right:auto}.btn-enregistrer[_ngcontent-%COMP%]{margin-left:auto}"]}),zt})()},97803:(Nt,ne,g)=>{"use strict";g.d(ne,{G5:()=>C,aG:()=>A,ah:()=>x,bO:()=>d,sr:()=>R});var d=function(e){return e.Reservation="reservation",e.Session="session",e.Entree="entree",e.Adhesion="adhesion",e}(d||{});const R={Reservation:"R\xE9servation",Session:"Session",Entree:"Entr\xE9e",Adhesion:"Abonnement"};var A=function(e){return e.Parent="49403E41-A8EB-43ED-8B20-DA78FDBF635D",e.Personnalisee="DDDA3DE9-1B18-4540-898D-72159A5ED32E",e.Aucune="07103C3B-7FE6-4D7C-9801-E69D307CAA25",e}(A||{});const x=[{id:d.Entree,nom:R.Entree},{id:d.Session,nom:R.Session},{id:d.Reservation,nom:R.Reservation},{id:d.Adhesion,nom:R.Adhesion}];var C=function(e){return e.Individuel="63EA5DAB-79B9-43DE-9D36-8ADC4CBECD7E",e.Familial="EFA48E29-D32D-4779-AC6C-00864AF85788",e.Groupe="E7007D4A-165B-4533-B172-11A2779D90F7",e}(C||{})},37903:(Nt,ne,g)=>{"use strict";g.d(ne,{g:()=>d});const d=R=>{if(R.canDeactivate)return!0;const A="Vos modifications seront perdues. \xCAtes-vous s\xFBr de vouloir quitter ?";return window.confirm(A)}},67948:(Nt,ne,g)=>{"use strict";g.d(ne,{L:()=>x});var d=g(49484),R=g(54438),A=g(7673);let x=(()=>{var C;class e{constructor(){this.activiteService=(0,R.WQX)(d.Z),this.sesHoldGroupeId=null,this.holdDateExpiration=null}setStepSessionForm(y){this.formStepSessions=y}mapSessionInscriptionPerPerson(y){return null!=y&&y.length?this.activiteService.getSessionsInscrites(y):(0,A.of)([])}getNbrParticiantsPerSelectedSession(){const a=this.formStepSessions.get("participantList").value.reduce((U,O)=>(O.sessionList.forEach(Ae=>{Ae.checked&&(U[Ae.id]=(U[Ae.id]||0)+1)}),U),{});return Object.entries(a).map(([U,O])=>({sesId:U,nbrParticipants:O}))}setHold(y,a){this.sesHoldGroupeId=y,this.holdDateExpiration=a}clearHold(){this.sesHoldGroupeId=null,this.holdDateExpiration=null}}return(C=e).\u0275fac=function(y){return new(y||C)},C.\u0275prov=R.jDH({token:C,factory:C.\u0275fac}),e})()},8953:(Nt,ne,g)=>{"use strict";g.d(ne,{YK:()=>e,_d:()=>a,cf:()=>C,t5:()=>x,uc:()=>de,z3:()=>y});var d=g(89417),R=g(64075),A=g(92995);function x(U){localStorage.removeItem("activite"),localStorage.setItem("activite",JSON.stringify(U))}function C(U,O=null){var Ae;return U.group({handleId:(0,R.SiN)(),type:new d.MJ(A.z5.Autre),perId:new d.MJ(null),familleId:null,prenom:null,nom:null,courriel:new d.MJ(null,[(0,R.Bjz)()]),fteId:null,optNom:null,optId:null,accesId:null,age:null,dateNaissance:null,trfOptChildId:null,trfOptChildNom:null,renseigementAdditionnels:null!==(Ae=null==O?void 0:O.initForm())&&void 0!==Ae?Ae:null,sessionArray:new d.MJ([]),sessionChecked:new d.MJ([]),adhIds:new d.MJ([]),isAllRestrictionsRespected:null})}function e(){return U=>U.parent&&0===U.value.filter(O=>O.qte>0).length?{required:!0}:null}function de(U,O){return Ae=>{var Te,ge,Ce,Fe,xe;return null!==(Te=Ae.get("perId"))&&void 0!==Te&&Te.value&&(null===(ge=U[null===(Ce=Ae.get("optId"))||void 0===Ce?void 0:Ce.value])||void 0===ge?void 0:ge.length)>0&&!U[null===(Fe=Ae.get("optId"))||void 0===Fe?void 0:Fe.value].includes(null===(xe=Ae.get("accesId"))||void 0===xe?void 0:xe.value)&&!O?{accesRestricted:!0}:null}}function y(U,O){return Ae=>{var Te;return(null===(Te=Ae.get("type"))||void 0===Te?void 0:Te.value)!==A.z5.MembreFamille||0!==U.length||O?null:{pasDeFamille:!0}}}function a(U,O){return Ae=>{var Te,ge,Ce,Fe;const xe=(null===(Te=Ae.get("adhIds"))||void 0===Te?void 0:Te.value)||[],qe=null===(ge=Ae.get("optId"))||void 0===ge?void 0:ge.value,rt=U.controls.find(Pt=>{var l;return(null===(l=Pt.get("id"))||void 0===l?void 0:l.value)===qe}),nt=(null==rt||null===(Ce=rt.get("adhesions"))||void 0===Ce||null===(Ce=Ce.value)||void 0===Ce?void 0:Ce.map(Pt=>Pt.adhId))||[],vt=!!nt.length&&nt.some(Pt=>!xe.includes(Pt));return null!==(Fe=Ae.get("perId"))&&void 0!==Fe&&Fe.value&&vt&&!O?{accesAdhRestricted:!0}:null}}},88821:(Nt,ne,g)=>{"use strict";g.d(ne,{X:()=>R});var d=g(54438);let R=(()=>{var A;class x{transform(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}}return(A=x).\u0275fac=function(e){return new(e||A)},A.\u0275pipe=d.EJ8({name:"vplusCapitalizeFirstLetter",type:A,pure:!0}),x})()},42444:(Nt,ne,g)=>{"use strict";g.d(ne,{W:()=>U});var d=g(89417),R=g(34006),A=g(53387),x=g(54438),C=g(59042),e=g(32102),de=g(88834),y=g(60177);function a(O,Ae){1&O&&(x.j41(0,"mat-error"),x.pXf(1,2),x.k0s())}let U=(()=>{var O;class Ae{constructor(ge,Ce,Fe){this.fb=ge,this.dialogRef=Ce,this.data=Fe,this.labels={add:"Ajouter",rename:"Renommer",newFamily:"Nouvelle famille",renameFamily:"Renommer la famille"}}ngOnInit(){this.form=this.fb.group({nomFamille:[this.data.isRename?this.data.currentFamilyName:null,d.k0.required]})}
1save(){if(this.form.invalid)return void this.form.markAllAsTouched();const ge=new A.Vy;ge.nom=this.form.get("nomFamille").value;const Ce=new A.zb;Ce.perId=this.data.currentUser.perId,ge.requerantPerId=this.data.currentUser.perId,ge.membres=[Ce],this.dialogRef.close(ge)}}return(O=Ae).\u0275fac=function(ge){return new(ge||O)(x.rXU(d.ok),x.rXU(R.CP),x.rXU(R.Vh))},O.\u0275cmp=x.VBU({type:O,selectors:[["vplus-famille-dialog"]],decls:13,vars:5,consts:()=>{let Te,ge,Ce;return Te="Nom de la famille",ge="Annuler",Ce=" Champ obligatoire ",[Te,ge,Ce,[3,"formGroup"],[1,"full-width"],["matInput","","type","text","formControlName","nomFamille","autocomplete","disabled"],[4,"ngIf"],["mat-dialog-actions","",1,"no-grid-column-gap","dialog-buttons-section","envoyer-code-container","actions"],["mat-stroked-button","","color","primary","type","button",3,"mat-dialog-close"],["mat-flat-button","","color","primary",3,"click"]]},template:function(ge,Ce){1&ge&&(x.j41(0,"h2"),x.EFF(1),x.k0s(),x.j41(2,"form",3)(3,"mat-form-field",4)(4,"mat-label"),x.pXf(5,0),x.k0s(),x.nrm(6,"input",5),x.DNE(7,a,2,0,"mat-error",6),x.k0s(),x.j41(8,"div",7)(9,"button",8),x.pXf(10,1),x.k0s(),x.j41(11,"button",9),x.bIt("click",function(){return Ce.save()}),x.EFF(12),x.k0s()()()),2&ge&&(x.R7$(),x.JRh(Ce.data.isRename?Ce.labels.renameFamily:Ce.labels.newFamily),x.R7$(),x.Y8G("formGroup",Ce.form),x.R7$(5),x.Y8G("ngIf",Ce.form.get("nomFamille").touched&&Ce.form.get("nomFamille").invalid),x.R7$(2),x.Y8G("mat-dialog-close",!1),x.R7$(3),x.SpI(" ",Ce.data.isRename?Ce.labels.rename:Ce.labels.add," "))},dependencies:[C.fg,e.rl,e.nJ,e.TL,de.$z,R.tx,R.E7,y.bT,d.qT,d.me,d.BC,d.cb,d.j4,d.JD],styles:["mat-form-field[_ngcontent-%COMP%]{padding-top:15px}@media (min-width: 330px) and (max-width: 350px){.actions[_ngcontent-%COMP%]{display:ruby-text;margin-left:-15px}}"]}),Ae})()},46756:(Nt,ne,g)=>{"use strict";g.d(ne,{S:()=>_t});var d=g(97586),R=g.n(d),A=g(64075),x=g(35052),C=g(89417),e=g(25558),de=g(96354),y=g(99437),a=g(67376),O=g(54438),Ae=g(86600),Te=g(53387),ge=g(34006),Ce=g(75263),Fe=g(7673),xe=g(1807),qe=g(17446),rt=g(59042),nt=g(32102),vt=g(82798),Pt=g(88834),l=g(25084);const ot=(ie,Ye)=>Ye.id;function Ke(ie,Ye){1&ie&&(O.j41(0,"mat-error"),O.pXf(1,10),O.k0s())}function ve(ie,Ye){1&ie&&(O.j41(0,"mat-error"),O.pXf(1,11),O.k0s())}function He(ie,Ye){1&ie&&(O.j41(0,"mat-error"),O.pXf(1,12),O.k0s())}function Qe(ie,Ye){1&ie&&(O.j41(0,"mat-error"),O.pXf(1,13),O.k0s())}function We(ie,Ye){1&ie&&(O.j41(0,"mat-error"),O.pXf(1,14),O.k0s())}function dt(ie,Ye){1&ie&&(O.j41(0,"mat-error"),O.pXf(1,15),O.k0s())}function Ct(ie,Ye){1&ie&&(O.j41(0,"mat-error"),O.pXf(1,16),O.k0s())}function en(ie,Ye){if(1&ie&&(O.j41(0,"mat-option",33),O.EFF(1),O.k0s()),2&ie){const re=Ye.$implicit;O.Y8G("value",re.id),O.R7$(),O.SpI(" ",re.nom," ")}}function Je(ie,Ye){if(1&ie&&(O.j41(0,"mat-option",33),O.EFF(1),O.k0s()),2&ie){const re=Ye.$implicit;O.Y8G("value",re.id),O.R7$(),O.SpI(" ",re.nom," ")}}function zt(ie,Ye){if(1&ie&&(O.j41(0,"div",25)(1,"mat-form-field",31)(2,"mat-label"),O.pXf(3,17),O.k0s(),O.j41(4,"mat-select",37),O.Z7z(5,Je,2,2,"mat-option",33,ot),O.k0s(),O.j41(7,"mat-error"),O.pXf(8,18),O.k0s()()()),2&ie){const re=O.XpG();O.R7$(5),O.Dyx(re.familyList)}}let _t=(()=>{var ie;class Ye{constructor(it){this.data=it,this.fb=(0,O.WQX)(C.ok),this.dialogRef=(0,O.WQX)(ge.CP),this.utilisateurService=(0,O.WQX)(qe.$),this.appConfig=(0,O.WQX)(x.o),this.isMultipleFamily=!1,this.today=new Date,this.familyList=[],this.isEnfantExiste=!1,this.isHampstead="hampstead"===this.appConfig.appConfig.appNom,this.EnumFamilleMembreLien=Te.Qu.filter(ke=>!["C6F0308B-012C-44DC-9C87-C82C7B865536","7782DA3B-700B-4BD7-AA8B-B6D41740AE78","C1B4268F-F59A-4BB6-B03A-C107C03CC6E8","5C2D458C-C13C-42C9-9E58-8602D36D7B12","E2B2513F-A825-40C2-89C1-BEAE84C61696","F099EA8B-7F63-4FCC-9C2E-35FB39315DC5","A80A11A2-E3CA-4B35-BF77-BA5E2C0604C4","CE146560-DB2D-4248-AD7D-38B2353C6960","BA129F5F-9FD4-434F-9115-59E06A5979BE","AE9A7B6B-9FFD-45A1-A9E0-4623CB7404DB","40932E46-BF7D-4392-8921-D152D06E0865","2CF614A3-669F-4DF2-9EA4-37A50B52000B","C31D8EE1-3899-46DD-B614-3EFD73985D95","D77DCED9-21B6-49A4-AD60-C60B1866BDCB"].includes(ke.id)).sort((ke,Ue)=>ke.nom.localeCompare(Ue.nom))}ngOnInit(){this.isMultipleFamily=this.data.isMultipleFamily,this.familyList=this.data.familylist||[],this.form=this.fb.group({nom:[null,[C.k0.required,(0,A.zl_)()]],prenom:[null,[C.k0.required,(0,A.zl_)()]],dateNaissance:[null,[C.k0.required,(0,A.HzN)()]],lien:[null,C.k0.required],familleId:[null]}),this.isMultipleFamily?this.form.get("familleId").setValidators([C.k0.required]):this.form.get("familleId").clearValidators(),this.form.get("familleId").updateV
1alueAndValidity(),this.form.setAsyncValidators(this.validateExistPersonneAsync()),this.form.updateValueAndValidity()}validateExistPersonneAsync(){return it=>{const ke=it.value;return ke.nom&&ke.prenom&&ke.dateNaissance?(0,xe.O)(300).pipe((0,e.n)(()=>this.utilisateurService.isExistPersonne(ke)),(0,de.T)(Ue=>Ue?(this.isEnfantExiste=!0,this.isHampstead?null:{enfantExist:!0}):(this.isEnfantExiste=!1,null)),(0,y.W)(()=>(this.isEnfantExiste=!1,(0,Fe.of)(null)))):(this.isEnfantExiste=!1,(0,Fe.of)(null))}}onChangeLien(it){this.form.get("lien").patchValue(it.itemData.id)}save(){if(this.form.invalid)return void this.form.markAllAsTouched();const it=this.form.get("familleId").value,ke=this.familyList.find(Jt=>Jt.id===it),Ue=new Te.zb;Ue.nom=this.form.get("nom").value,Ue.prenom=this.form.get("prenom").value,Ue.dateNaissance=this.form.get("dateNaissance").value?R()(this.form.get("dateNaissance").value).format("YYYY-MM-DD"):null,Ue.perId=(0,A.SiN)();const Yt=new Te.zb;if(Yt.perId=Ue.perId,Yt.nomComplet=`${Ue.prenom} ${Ue.nom}`,Yt.lien=this.form.get("lien").value,ke)this.familleClone=(0,a.cloneDeep)(ke);else{const Jt=(0,a.cloneDeep)(this.data.famille);this.familleClone=(0,a.cloneDeep)(Jt)}this.familleClone.membres.push(Yt),this.dialogRef.close({famille:this.familleClone,enfant:Ue,isHampsteadEnfantExisting:this.isEnfantExiste})}}return(ie=Ye).\u0275fac=function(it){return new(it||ie)(O.rXU(ge.Vh))},ie.\u0275cmp=O.VBU({type:ie,selectors:[["vplus-famille-enfant-dialog"]],inputs:{isMultipleFamily:"isMultipleFamily"},features:[O.Jv_([{provide:Ae.Ju,useValue:"fr-FR"},{provide:Ae.de,useValue:A.dLJ},{provide:Ae.MJ,useClass:Ce.QH},{provide:Ce.ij,useValue:{useUtc:!0}}])],decls:44,vars:14,consts:()=>{let re,it,ke,Ue,Yt,Jt,De,w,b,J,ce,pe,Ie,ct,ft,et,wt,Ne;return re="Ajouter un enfant",it="Pr\xE9nom",ke="Nom",Ue="Date de naissance",Yt="JJ/MM/AAAA",Jt="Lien avec l'administrateur",De=" Champ obligatoire ",w="Annuler",b=" Ajouter ",J=" Champ obligatoire ",ce=" Champ invalide ",pe=" Champ obligatoire ",Ie=" Champ invalide ",ct=" Champ obligatoire ",ft=" Un enfant doit avoir moins de 16 ans ",et=" L'enfant existe d\xE9j\xE0, veuillez nous contacter ",wt="Famille",Ne=" Champ obligatoire ",[["picker",""],re,it,ke,Ue,Yt,Jt,De,w,b,J,ce,pe,Ie,ct,ft,et,wt,Ne,[1,"margin-top-35",3,"formGroup"],[1,"grid","fields","fields-mobile"],[1,"full-width"],["matInput","","type","text","formControlName","prenom","autocomplete","disabled"],[1,"full-width","espace-champs"],["matInput","","type","text","formControlName","nom","autocomplete","disabled"],[1,"grid","fields","padding-top-1","fields-mobile"],[1,"date-naissance"],["appearance","fill",1,"full-width","margin-bottom-0",3,"floatLabel"],["tabindex","-1","autocomplete","off","matInput","","formControlName","dateNaissance",3,"matDatepicker","max"],[1,"birthday-hint"],["matSuffix","",3,"for"],[1,"lien-field","espace-champs"],["formControlName","lien"],[3,"value"],["mat-dialog-actions","",1,"dialog-buttons-section","envoyer-code-container","actions"],["mat-stroked-button","","color","primary","type","button",3,"mat-dialog-close"],["mat-flat-button","","color","primary",3,"click"],["formControlName","familleId"]]},template:function(it,ke){if(1&it){const Ue=O.RV6();O.j41(0,"h2"),O.pXf(1,1),O.k0s(),O.j41(2,"form",19)(3,"div",20)(4,"mat-form-field",21)(5,"mat-label"),O.pXf(6,2),O.k0s(),O.nrm(7,"input",22),O.DNE(8,Ke,2,0,"mat-error")(9,ve,2,0,"mat-error"),O.k0s(),O.j41(10,"mat-form-field",23)(11,"mat-label"),O.pXf(12,3),O.k0s(),O.nrm(13,"input",24),O.DNE(14,He,2,0,"mat-error")(15,Qe,2,0,"mat-error"),O.k0s()(),O.j41(16,"div",25)(17,"div",26)(18,"mat-form-field",27)(19,"mat-label"),O.pXf(20,4),O.k0s(),O.nrm(21,"input",28),O.j41(22,"mat-hint",29),O.pXf(23,5),O.k0s(),O.nrm(24,"mat-datepicker-toggle",30)(25,"mat-datepicker",null,0),O.k0s(),O.DNE(27,We,2,0,"mat-error")(28,dt,2,0,"mat-error")(29,Ct,2,0,"mat-error"),O.k0s(),O.j41(30,"mat-form-field",31)(31,"mat-label"),O.pXf(32,6),O.k0s(),O.j41(33,"mat-select",32),O.Z7z(34,en,2,2,"mat-option",33,ot),O.k0s(),O.j41(36,"mat-error"),O.pXf(37,7),O.k0s()()(),O.DNE(38,zt,9,0,"div",25),O.j41(39,"div",34)(40,"button",35),O.pXf(41,8),O.k0s(),O.j41(42,"button",36),O.bIt("click",function(){return O.eBV(Ue),O.Njj(ke.save())}),O.pXf(43,9),O.k0s()()()}if(2&it){const Ue=O.sdS(26);O.R7$(2),O.Y8G("formGroup",ke.form),O.R7$(6),O.vxM(8,ke.form.get("prenom").touched&&ke.form.get("prenom").hasError("required")?8:-1),O.R7$(),O.vxM(9,ke.form.get("prenom").touched&&ke.form.get("prenom").hasError("invalidName")?9:-1),O.R7$(5),O.vxM(14,ke.form.get("nom").touched&&ke.form.get("nom").hasError("required")?14:-1),O.R7$(),O.vxM(15,ke.form.get("nom").touched&&ke.form.get("nom").hasError("invalidName")?15:-1),O.R7$(3),O.Y8G("floatLabel","Auto"),O.R7$(3),O.Y8G("matDatepicker",Ue)("max",ke.today),O.R7$(3),O.Y8G("for",Ue),O.R7$(3),O.vxM(27,ke.form.controls.dateNaissance.touched&&null!=ke.form.controls.dateNaissance.errors&&ke.form.controls.dateNaissance.errors.required?27:-1),O.R7$(),O.vxM(28,ke.form.controls.dateNaissance.hasError("invalidAgeMaximal")?28:-1),O.R7$(),O.vxM(29,ke.form.hasError("enfantExist")&&!ke.isHampstead?29:-1),O.R7$(5),O.Dyx(ke.EnumFamilleMembreLien),O.R7$(4),O.vxM(38,ke.isMultipleFamily?38:-1),O.R7$(2),O.Y8G("mat-dialog-close",!1)}},dependencies:[rt.fg,nt.rl,nt.nJ,nt.MV,nt.TL,nt.yw,Ae.wT,vt.VO,Pt.$z,l.Vh,l.bZ,l.bU,ge.tx,ge.E7,C.qT,C.me,C.BC,C.cb,C.j4,C.JD],styles:[".fields[_ngcontent-%COMP%]{grid-column-gap:1rem;grid-template-columns:1fr 1fr}@media (max-width: 1030px){.fields-mobile[_ngcontent-%COMP%]{display:block;padding-top:0rem!important}.lien-field[_ngcontent-%COMP%]{width:100%}.espace-champs[_ngcontent-%COMP%]{padding-top:1rem}}.enfant-hint[_ngcontent-%COMP%]{display:block;color:#f9a825;font-size:18px}"]}),Ye})()},55430:(Nt,ne,g)=>{"use strict";g.d(ne,{Q:()=>x});var d=g(35052),R=g(51188),A=g(54438);const x=()=>{const C=(0,A.WQX)(R.Ix);return!!(0,A.WQX)(d.o).appConfig.allowConnection||C.createUrlTree(["page-non-trouvee"])}},4407:(Nt,ne,g)=>{"use strict";g.d(ne,{A:()=>A});var d=g(5812),R=g.n(d);class A{static sanitize(C){return R()(C,{lower:!0,strict:!0})}}},80243:Nt=>{"use strict";var ne={single_source_shortest_paths:function(g,d,R){var A={},x={};x[d]=0;var e,de,y,a,U,Ae,C=ne.PriorityQueue.make();for(C.push(d,0);!C.empty();)for(y in a=(e=C.pop()).cost,U=g[de=e.value]||{})U.hasOwnProperty(y)&&(Ae=a+U[y],(typeof x[y]>"u"||x[y]>Ae)&&(x[y]=Ae,C.push(y,Ae),A[y]=de));if(typeof R<"u"&&typeof x[R]>"u"){var Ce=["Could not find a path from ",d," to ",R,"."].join("");throw new Error(Ce)}return A},extract_shortest_path_from_predecessor_list:function(g,d){for(var R=[],A=d;A;)R.push(A),A=g[A];return R.reverse(),R},find_path:function(g,d,R){var A=ne.single_source_shortest_paths(g,d,R);return ne.extract_shortest_path_from_predecessor_list(A,R)}
1,PriorityQueue:{make:function(g){var A,d=ne.PriorityQueue,R={};for(A in g=g||{},d)d.hasOwnProperty(A)&&(R[A]=d[A]);return R.queue=[],R.sorter=g.sorter||d.default_sorter,R},default_sorter:function(g,d){return g.cost-d.cost},push:function(g,d){this.queue.push({value:g,cost:d}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Nt.exports=ne},33174:Nt=>{"use strict";Nt.exports=function(g){for(var d=[],R=g.length,A=0;A<R;A++){var x=g.charCodeAt(A);if(x>=55296&&x<=56319&&R>A+1){var C=g.charCodeAt(A+1);C>=56320&&C<=57343&&(x=1024*(x-55296)+C-56320+65536,A+=1)}x<128?d.push(x):x<2048?(d.push(x>>6|192),d.push(63&x|128)):x<55296||x>=57344&&x<65536?(d.push(x>>12|224),d.push(x>>6&63|128),d.push(63&x|128)):x>=65536&&x<=1114111?(d.push(x>>18|240),d.push(x>>12&63|128),d.push(x>>6&63|128),d.push(63&x|128)):d.push(239,191,189)}return new Uint8Array(d).buffer}},72912:(Nt,ne,g)=>{"use strict";g.d(ne,{d5:()=>Ne});var A,x,C,d=g(22467),de=[],y=[],a=d.fF.__b,U=d.fF.__r,O=d.fF.diffed,Ae=d.fF.__c,Te=d.fF.unmount;function He(){for(var F;F=de.shift();)if(F.__P&&F.__H)try{F.__H.__h.forEach(dt),F.__H.__h.forEach(Ct),F.__H.__h=[]}catch(K){F.__H.__h=[],d.fF.__e(K,F.__v)}}d.fF.__b=function(F){A=null,a&&a(F)},d.fF.__r=function(F){U&&U(F);var K=(A=F.__c).__H;K&&(x===A?(K.__h=[],A.__h=[],K.__.forEach(function(Y){Y.__N&&(Y.__=Y.__N),Y.__V=y,Y.__N=Y.i=void 0})):(K.__h.forEach(dt),K.__h.forEach(Ct),K.__h=[])),x=A},d.fF.diffed=function(F){O&&O(F);var K=F.__c;K&&K.__H&&(K.__H.__h.length&&(1!==de.push(K)&&C===d.fF.requestAnimationFrame||((C=d.fF.requestAnimationFrame)||We)(He)),K.__H.__.forEach(function(Y){Y.i&&(Y.__H=Y.i),Y.__V!==y&&(Y.__=Y.__V),Y.i=void 0,Y.__V=y})),x=A=null},d.fF.__c=function(F,K){K.some(function(Y){try{Y.__h.forEach(dt),Y.__h=Y.__h.filter(function(be){return!be.__||Ct(be)})}catch(be){K.some(function(At){At.__h&&(At.__h=[])}),K=[],d.fF.__e(be,Y.__v)}}),Ae&&Ae(F,K)},d.fF.unmount=function(F){Te&&Te(F);var K,Y=F.__c;Y&&Y.__H&&(Y.__H.__.forEach(function(be){try{dt(be)}catch(At){K=At}}),Y.__H=void 0,K&&d.fF.__e(K,Y.__v))};var Qe="function"==typeof requestAnimationFrame;function We(F){var K,Y=function(){clearTimeout(be),Qe&&cancelAnimationFrame(K),setTimeout(F)},be=setTimeout(Y,100);Qe&&(K=requestAnimationFrame(Y))}function dt(F){var K=A,Y=F.__c;"function"==typeof Y&&(F.__c=void 0,Y()),A=K}function Ct(F){var K=A;F.__c=F.__(),A=K}function _t(F,K){for(var Y in F)if("__source"!==Y&&!(Y in K))return!0;for(var be in K)if("__source"!==be&&F[be]!==K[be])return!0;return!1}function Ye(F){this.props=F}(Ye.prototype=new d.uA).isPureReactComponent=!0,Ye.prototype.shouldComponentUpdate=function(F,K){return _t(this.props,F)||_t(this.state,K)};var it=d.fF.__b;d.fF.__b=function(F){F.type&&F.type.__f&&F.ref&&(F.props.ref=F.ref,F.ref=null),it&&it(F)},typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref");var De=d.fF.__e;d.fF.__e=function(F,K,Y,be){if(F.then)for(var At,Et=K;Et=Et.__;)if((At=Et.__c)&&At.__c)return null==K.__e&&(K.__e=Y.__e,K.__k=Y.__k),At.__c(F,K);De(F,K,Y,be)};var w=d.fF.unmount;function b(F,K,Y){return F&&(F.__c&&F.__c.__H&&(F.__c.__H.__.forEach(function(be){"function"==typeof be.__c&&be.__c()}),F.__c.__H=null),null!=(F=function zt(F,K){for(var Y in K)F[Y]=K[Y];return F}({},F)).__c&&(F.__c.__P===Y&&(F.__c.__P=K),F.__c=null),F.__k=F.__k&&F.__k.map(function(be){return b(be,K,Y)})),F}function J(F,K,Y){return F&&(F.__v=null,F.__k=F.__k&&F.__k.map(function(be){return J(be,K,Y)}),F.__c&&F.__c.__P===K&&(F.__e&&Y.insertBefore(F.__e,F.__d),F.__c.__e=!0,F.__c.__P=Y)),F}function ce(){this.__u=0,this.t=null,this.__b=null}function pe(F){var K=F.__.__c;return K&&K.__a&&K.__a(F)}function ct(){this.u=null,this.o=null}d.fF.unmount=function(F){var K=F.__c;K&&K.__R&&K.__R(),K&&!0===F.__h&&(F.type=null),w&&w(F)},(ce.prototype=new d.uA).__c=function(F,K){var Y=K.__c,be=this;null==be.t&&(be.t=[]),be.t.push(Y);var At=pe(be.__v),Et=!1,Xt=function(){Et||(Et=!0,Y.__R=null,At?At(Bt):Bt())};Y.__R=Xt;var Bt=function(){if(! --be.__u){if(be.state.__a){var Tn=be.state.__a;be.__v.__k[0]=J(Tn,Tn.__c.__P,Tn.__c.__O)}var gn;for(be.setState({__a:be.__b=null});gn=be.t.pop();)gn.forceUpdate()}},kn=!0===K.__h;be.__u++||kn||be.setState({__a:be.__b=be.__v.__k[0]}),F.then(Xt,Xt)},ce.prototype.componentWillUnmount=function(){this.t=[]},ce.prototype.render=function(F,K){if(this.__b){if(this.__v.__k){var Y=document.createElement("div"),be=this.__v.__k[0].__c;this.__v.__k[0]=b(this.__b,Y,be.__O=be.__P)}this.__b=null}var At=K.__a&&(0,d.n)(d.FK,null,F.fallback);return At&&(At.__h=null),[(0,d.n)(d.FK,null,K.__a?null:F.children),At]};var ft=function(F,K,Y){if(++Y[1]===Y[0]&&F.o.delete(K),F.props.revealOrder&&("t"!==F.props.revealOrder[0]||!F.o.size))for(Y=F.u;Y;){for(;Y.length>3;)Y.pop()();if(Y[1]<Y[0])break;F.u=Y=Y[2]}};function et(F){return this.getChildContext=function(){return F.context},F.children}function wt(F){var K=this,Y=F.i;K.componentWillUnmount=function(){(0,d.XX)(null,K.l),K.l=null,K.i=null},K.i&&K.i!==Y&&K.componentWillUnmount(),F.__v?(K.l||(K.i=Y,K.l={nodeType:1,parentNode:Y,childNodes:[],appendChild:function(be){this.childNodes.push(be),K.i.appendChild(be)},insertBefore:function(be,At){this.childNodes.push(be),K.i.appendChild(be)},removeChild:function(be){this.childNodes.splice(this.childNodes.indexOf(be)>>>1,1),K.i.removeChild(be)}}),(0,d.XX)((0,d.n)(et,{context:K.context},F.__v),K.l)):K.l&&K.componentWillUnmount()}function Ne(F,K){var Y=(0,d.n)(wt,{__v:F,i:K});return Y.containerInfo=K,Y}(ct.prototype=new d.uA).__a=function(F){var K=this,Y=pe(K.__v),be=K.o.get(F);return be[0]++,function(At){var Et=function(){K.props.revealOrder?(be.push(At),ft(K,F,be)):At()};Y?Y(Et):Et()}},ct.prototype.render=function(F){this.u=null,this.o=new Map;var K=(0,d.v2)(F.children);F.revealOrder&&"b"===F.revealOrder[0]&&K.reverse();for(var Y=K.length;Y--;)this.o.set(K[Y],this.u=[1,0,this.u]);return F.children},ct.prototype.componentDidUpdate=ct.prototype.componentDidMount=function(){var F=this;this.o.forEach(function(K,Y){ft(F,Y,K)})};var Ot=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ft=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,pt=typeof document<"u",yt=function(F){return(typeof Symbol<"u"&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(F)};d.uA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(F){Object.defineProperty(d.uA.prototype,F,{configurable:!0,get:function(){return this["UNSAFE_"+F]},set:function(K){Object.defineProperty(this,F,{configurable:!0,writable:!0,value:K})}})});var ln=d.fF.event;function on(){}function Vn(){return this.cancelBubble}function On(){return this.defaultPrevented}d.fF.event=function(F){return ln&&(F=ln(F)),F.persist=on,F.isPropagationStopped=Vn,F.isDefaultPrevented=On,F.nativeEvent=F};var $n={configurable:!0,get:function(){return this.class}},hn=d.fF.vnode;d.fF.vnode=function(F){var K=F.type,Y=F.props,be=Y;if("string"==typeof K){var At=-1===K.indexOf("-");for(var Et in be={},Y){var Xt=Y[Et];pt&&"children"===Et&&"noscript"===K||"value"===Et&&"defaultValue"in Y&&null==Xt||("defaultValue"===Et&&"value"in Y&&null==Y.value?Et="value":"download"===Et&&!0===Xt?Xt="":/ondoubleclick/i.test(Et)?Et="ondblclick":/^onchange(textarea|input)/i.test(Et+K)&&!yt(Y.type)?Et="oninput":/^onfocus$/i.test(Et)?Et="onfocusin":/^onblur$/i.test(Et)?Et="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(Et)?Et=Et.toLowerCase():At&&Ft.test(Et)?Et=Et.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===Xt&&(Xt=void 0),/^oninput$/i.test(Et)&&(Et=Et.toLowerCase(),be[Et]&&(Et="oninputCapture")),be[Et]=Xt)}"select"==K&&be.multiple&&Array.isArray(be.value)&&(be.value=(0,d.v2)(Y.children).forEac
vendor: 4,499 bytes, line 1
1h(function(Bt){Bt.props.selected=-1!=be.value.indexOf(Bt.props.value)})),"select"==K&&null!=be.defaultValue&&(be.value=(0,d.v2)(Y.children).forEach(function(Bt){Bt.props.selected=be.multiple?-1!=be.defaultValue.indexOf(Bt.props.value):be.defaultValue==Bt.props.value})),F.props=be,Y.class!=Y.className&&($n.enumerable="className"in Y,null!=Y.className&&(be.class=Y.className),Object.defineProperty(be,"className",$n))}F.$$typeof=Ot,hn&&hn(F)};var Cn=d.fF.__r;d.fF.__r=function(F){Cn&&Cn(F)}},22467:(Nt,ne,g)=>{"use strict";g.d(ne,{FK:()=>qe,Ob:()=>Jt,Qv:()=>Yt,XX:()=>Ue,_3:()=>xe,fF:()=>R,n:()=>Ce,q6:()=>De,uA:()=>ot,v2:()=>en,zO:()=>x});var d,R,A,x,C,e,de,y,a,U={},O=[],Ae=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Te(w,b){for(var J in b)w[J]=b[J];return w}function ge(w){var b=w.parentNode;b&&b.removeChild(w)}function Ce(w,b,J){var ce,pe,Ie,ct={};for(Ie in b)"key"==Ie?ce=b[Ie]:"ref"==Ie?pe=b[Ie]:ct[Ie]=b[Ie];if(arguments.length>2&&(ct.children=arguments.length>3?d.call(arguments,2):J),"function"==typeof w&&null!=w.defaultProps)for(Ie in w.defaultProps)void 0===ct[Ie]&&(ct[Ie]=w.defaultProps[Ie]);return Fe(w,ct,ce,pe,null)}function Fe(w,b,J,ce,pe){var Ie={type:w,props:b,key:J,ref:ce,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==pe?++A:pe};return null==pe&&null!=R.vnode&&R.vnode(Ie),Ie}function xe(){return{current:null}}function qe(w){return w.children}function nt(w,b,J){"-"===b[0]?w.setProperty(b,null==J?"":J):w[b]=null==J?"":"number"!=typeof J||Ae.test(b)?J:J+"px"}function vt(w,b,J,ce,pe){var Ie;e:if("style"===b)if("string"==typeof J)w.style.cssText=J;else{if("string"==typeof ce&&(w.style.cssText=ce=""),ce)for(b in ce)J&&b in J||nt(w.style,b,"");if(J)for(b in J)ce&&J[b]===ce[b]||nt(w.style,b,J[b])}else if("o"===b[0]&&"n"===b[1])Ie=b!==(b=b.replace(/Capture$/,"")),b=b.toLowerCase()in w?b.toLowerCase().slice(2):b.slice(2),w.l||(w.l={}),w.l[b+Ie]=J,J?ce||w.addEventListener(b,Ie?l:Pt,Ie):w.removeEventListener(b,Ie?l:Pt,Ie);else if("dangerouslySetInnerHTML"!==b){if(pe)b=b.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==b&&"height"!==b&&"href"!==b&&"list"!==b&&"form"!==b&&"tabIndex"!==b&&"download"!==b&&b in w)try{w[b]=null==J?"":J;break e}catch{}"function"==typeof J||(null==J||!1===J&&-1==b.indexOf("-")?w.removeAttribute(b):w.setAttribute(b,J))}}function Pt(w){C=!0;try{return this.l[w.type+!1](R.event?R.event(w):w)}finally{C=!1}}function l(w){C=!0;try{return this.l[w.type+!0](R.event?R.event(w):w)}finally{C=!1}}function ot(w,b){this.props=w,this.context=b}function Ke(w,b){if(null==b)return w.__?Ke(w.__,w.__.__k.indexOf(w)+1):null;for(var J;b<w.__k.length;b++)if(null!=(J=w.__k[b])&&null!=J.__e)return J.__e;return"function"==typeof w.type?Ke(w):null}function ve(w){var b,J;if(null!=(w=w.__)&&null!=w.__c){for(w.__e=w.__c.base=null,b=0;b<w.__k.length;b++)if(null!=(J=w.__k[b])&&null!=J.__e){w.__e=w.__c.base=J.__e;break}return ve(w)}}function He(w){C?setTimeout(w):y(w)}function Qe(w){(!w.__d&&(w.__d=!0)&&e.push(w)&&!We.__r++||de!==R.debounceRendering)&&((de=R.debounceRendering)||He)(We)}function We(){var w,b,J,ce,pe,Ie,ct,ft;for(e.sort(function(et,wt){return et.__v.__b-wt.__v.__b});w=e.shift();)w.__d&&(b=e.length,ce=void 0,pe=void 0,ct=(Ie=(J=w).__v).__e,(ft=J.__P)&&(ce=[],(pe=Te({},Ie)).__v=Ie.__v+1,_t(ft,Ie,pe,J.__n,void 0!==ft.ownerSVGElement,null!=Ie.__h?[ct]:null,ce,null==ct?Ke(Ie):ct,Ie.__h),ie(ce,Ie),Ie.__e!=ct&&ve(Ie)),e.length>b&&e.sort(function(et,wt){return et.__v.__b-wt.__v.__b}));We.__r=0}function dt(w,b,J,ce,pe,Ie,ct,ft,et,wt){var Ne,Ot,Ft,pt,yt,In,tn,ln=ce&&ce.__k||O,on=ln.length;for(J.__k=[],Ne=0;Ne<b.length;Ne++)if(null!=(pt=J.__k[Ne]=null==(pt=b[Ne])||"boolean"==typeof pt?null:"string"==typeof pt||"number"==typeof pt||"bigint"==typeof pt?Fe(null,pt,null,null,pt):Array.isArray(pt)?Fe(qe,{children:pt},null,null,null):pt.__b>0?Fe(pt.type,pt.props,pt.key,pt.ref?pt.ref:null,pt.__v):pt)){if(pt.__=J,pt.__b=J.__b+1,null===(Ft=ln[Ne])||Ft&&pt.key==Ft.key&&pt.type===Ft.type)ln[Ne]=void 0;else for(Ot=0;Ot<on;Ot++){if((Ft=ln[Ot])&&pt.key==Ft.key&&pt.type===Ft.type){ln[Ot]=void 0;break}Ft=null}_t(w,pt,Ft=Ft||U,pe,Ie,ct,ft,et,wt),yt=pt.__e,(Ot=pt.ref)&&Ft.ref!=Ot&&(tn||(tn=[]),Ft.ref&&tn.push(Ft.ref,null,pt),tn.push(Ot,pt.__c||yt,pt)),null!=yt?(null==In&&(In=yt),"function"==typeof pt.type&&pt.__k===Ft.__k?pt.__d=et=Ct(pt,et,w):et=Je(w,pt,Ft,ln,yt,et),"function"==typeof J.type&&(J.__d=et)):et&&Ft.__e==et&&et.parentNode!=w&&(et=Ke(Ft))}
vendor: 7,455 bytes, line 1
1for(J.__e=In,Ne=on;Ne--;)null!=ln[Ne]&&("function"==typeof J.type&&null!=ln[Ne].__e&&ln[Ne].__e==J.__d&&(J.__d=zt(ce).nextSibling),it(ln[Ne],ln[Ne]));if(tn)for(Ne=0;Ne<tn.length;Ne++)re(tn[Ne],tn[++Ne],tn[++Ne])}function Ct(w,b,J){for(var ce,pe=w.__k,Ie=0;pe&&Ie<pe.length;Ie++)(ce=pe[Ie])&&(ce.__=w,b="function"==typeof ce.type?Ct(ce,b,J):Je(J,ce,ce,pe,ce.__e,b));return b}function en(w,b){return b=b||[],null==w||"boolean"==typeof w||(Array.isArray(w)?w.some(function(J){en(J,b)}):b.push(w)),b}function Je(w,b,J,ce,pe,Ie){var ct,ft,et;if(void 0!==b.__d)ct=b.__d,b.__d=void 0;else if(null==J||pe!=Ie||null==pe.parentNode)e:if(null==Ie||Ie.parentNode!==w)w.appendChild(pe),ct=null;else{for(ft=Ie,et=0;(ft=ft.nextSibling)&&et<ce.length;et+=1)if(ft==pe)break e;w.insertBefore(pe,Ie),ct=Ie}return void 0!==ct?ct:pe.nextSibling}function zt(w){var b,J,ce;if(null==w.type||"string"==typeof w.type)return w.__e;if(w.__k)for(b=w.__k.length-1;b>=0;b--)if((J=w.__k[b])&&(ce=zt(J)))return ce;return null}function _t(w,b,J,ce,pe,Ie,ct,ft,et){var wt,Ne,Ot,Ft,pt,yt,In,tn,ln,on,Vn,On,Nn,$n,hn,Cn=b.type;if(void 0!==b.constructor)return null;null!=J.__h&&(et=J.__h,ft=b.__e=J.__e,b.__h=null,Ie=[ft]),(wt=R.__b)&&wt(b);try{e:if("function"==typeof Cn){if(tn=b.props,ln=(wt=Cn.contextType)&&ce[wt.__c],on=wt?ln?ln.props.value:wt.__:ce,J.__c?In=(Ne=b.__c=J.__c).__=Ne.__E:("prototype"in Cn&&Cn.prototype.render?b.__c=Ne=new Cn(tn,on):(b.__c=Ne=new ot(tn,on),Ne.constructor=Cn,Ne.render=ke),ln&&ln.sub(Ne),Ne.props=tn,Ne.state||(Ne.state={}),Ne.context=on,Ne.__n=ce,Ot=Ne.__d=!0,Ne.__h=[],Ne._sb=[]),null==Ne.__s&&(Ne.__s=Ne.state),null!=Cn.getDerivedStateFromProps&&(Ne.__s==Ne.state&&(Ne.__s=Te({},Ne.__s)),Te(Ne.__s,Cn.getDerivedStateFromProps(tn,Ne.__s))),Ft=Ne.props,pt=Ne.state,Ne.__v=b,Ot)null==Cn.getDerivedStateFromProps&&null!=Ne.componentWillMount&&Ne.componentWillMount(),null!=Ne.componentDidMount&&Ne.__h.push(Ne.componentDidMount);else{if(null==Cn.getDerivedStateFromProps&&tn!==Ft&&null!=Ne.componentWillReceiveProps&&Ne.componentWillReceiveProps(tn,on),!Ne.__e&&null!=Ne.shouldComponentUpdate&&!1===Ne.shouldComponentUpdate(tn,Ne.__s,on)||b.__v===J.__v){for(b.__v!==J.__v&&(Ne.props=tn,Ne.state=Ne.__s,Ne.__d=!1),b.__e=J.__e,b.__k=J.__k,b.__k.forEach(function(mn){mn&&(mn.__=b)}),Vn=0;Vn<Ne._sb.length;Vn++)Ne.__h.push(Ne._sb[Vn]);Ne._sb=[],Ne.__h.length&&ct.push(Ne);break e}null!=Ne.componentWillUpdate&&Ne.componentWillUpdate(tn,Ne.__s,on),null!=Ne.componentDidUpdate&&Ne.__h.push(function(){Ne.componentDidUpdate(Ft,pt,yt)})}if(Ne.context=on,Ne.props=tn,Ne.__P=w,On=R.__r,Nn=0,"prototype"in Cn&&Cn.prototype.render){for(Ne.state=Ne.__s,Ne.__d=!1,On&&On(b),wt=Ne.render(Ne.props,Ne.state,Ne.context),$n=0;$n<Ne._sb.length;$n++)Ne.__h.push(Ne._sb[$n]);Ne._sb=[]}else do{Ne.__d=!1,On&&On(b),wt=Ne.render(Ne.props,Ne.state,Ne.context),Ne.state=Ne.__s}while(Ne.__d&&++Nn<25);Ne.state=Ne.__s,null!=Ne.getChildContext&&(ce=Te(Te({},ce),Ne.getChildContext())),Ot||null==Ne.getSnapshotBeforeUpdate||(yt=Ne.getSnapshotBeforeUpdate(Ft,pt)),hn=null!=wt&&wt.type===qe&&null==wt.key?wt.props.children:wt,dt(w,Array.isArray(hn)?hn:[hn],b,J,ce,pe,Ie,ct,ft,et),Ne.base=b.__e,b.__h=null,Ne.__h.length&&ct.push(Ne),In&&(Ne.__E=Ne.__=null),Ne.__e=!1}else null==Ie&&b.__v===J.__v?(b.__k=J.__k,b.__e=J.__e):b.__e=function Ye(w,b,J,ce,pe,Ie,ct,ft){var et,wt,Ne,Ot=J.props,Ft=b.props,pt=b.type,yt=0;if("svg"===pt&&(pe=!0),null!=Ie)for(;yt<Ie.length;yt++)if((et=Ie[yt])&&"setAttribute"in et==!!pt&&(pt?et.localName===pt:3===et.nodeType)){w=et,Ie[yt]=null;break}if(null==w){if(null===pt)return document.createTextNode(Ft);w=pe?document.createElementNS("http://www.w3.org/2000/svg",pt):document.createElement(pt,Ft.is&&Ft),Ie=null,ft=!1}if(null===pt)Ot===Ft||ft&&w.data===Ft||(w.data=Ft);else{if(Ie=Ie&&d.call(w.childNodes),wt=(Ot=J.props||U).dangerouslySetInnerHTML,Ne=Ft.dangerouslySetInnerHTML,!ft){if(null!=Ie)for(Ot={},yt=0;yt<w.attributes.length;yt++)Ot[w.attributes[yt].name]=w.attributes[yt].value;(Ne||wt)&&(Ne&&(wt&&Ne.__html==wt.__html||Ne.__html===w.innerHTML)||(w.innerHTML=Ne&&Ne.__html||""))}if(function rt(w,b,J,ce,pe){var Ie;for(Ie in J)"children"===Ie||"key"===Ie||Ie in b||vt(w,Ie,null,J[Ie],ce);for(Ie in b)pe&&"function"!=typeof b[Ie]||"children"===Ie||"key"===Ie||"value"===Ie||"checked"===Ie||J[Ie]===b[Ie]||vt(w,Ie,b[Ie],J[Ie],ce)}(w,Ft,Ot,pe,ft),Ne)b.__k=[];else if(yt=b.props.children,dt(w,Array.isArray(yt)?yt:[yt],b,J,ce,pe&&"foreignObject"!==pt,Ie,ct,Ie?Ie[0]:J.__k&&Ke(J,0),ft),null!=Ie)for(yt=Ie.length;yt--;)null!=Ie[yt]&&ge(Ie[yt]);ft||("value"in Ft&&void 0!==(yt=Ft.value)&&(yt!==w.value||"progress"===pt&&!yt||"option"===pt&&yt!==Ot.value)&&vt(w,"value",yt,Ot.value,!1),"checked"in Ft&&void 0!==(yt=Ft.checked)&&yt!==w.checked&&vt(w,"checked",yt,Ot.checked,!1))}return w}(J.__e,b,J,ce,pe,Ie,ct,et);(wt=R.diffed)&&wt(b)}catch(mn){b.__v=null,(et||null!=Ie)&&(b.__e=ft,b.__h=!!et,Ie[Ie.indexOf(ft)]=null),R.__e(mn,b,J)}}function ie(w,b){R.__c&&R.__c(b,w),w.some(function(J){try{w=J.__h,J.__h=[],w.some(function(ce){ce.call(J)})}catch(ce){R.__e(ce,J.__v)}})}function re(w,b,J){try{"function"==typeof w?w(b):w.current=b}catch(ce){R.__e(ce,J)}}function it(w,b,J){var ce,pe;if(R.unmount&&R.unmount(w),(ce=w.ref)&&(ce.current&&ce.current!==w.__e||re(ce,null,b)),null!=(ce=w.__c)){if(ce.componentWillUnmount)try{ce.componentWillUnmount()}catch(Ie){R.__e(Ie,b)}ce.base=ce.__P=null,w.__c=void 0}if(ce=w.__k)for(pe=0;pe<ce.length;pe++)ce[pe]&&it(ce[pe],b,J||"function"!=typeof w.type);J||null==w.__e||ge(w.__e),w.__=w.__e=w.__d=void 0}function ke(w,b,J){return this.constructor(w,J)}function Ue(w,b,J){var ce,pe,Ie;R.__&&R.__(w,b),pe=(ce="function"==typeof J)?null:J&&J.__k||b.__k,Ie=[],_t(b,w=(!ce&&J||b).__k=Ce(qe,null,[w]),pe||U,U,void 0!==b.ownerSVGElement,!ce&&J?[J]:pe?null:b.firstChild?d.call(b.childNodes):null,Ie,!ce&&J?J:pe?pe.__e:b.firstChild,ce),ie(Ie,w)}function Yt(w,b){Ue(w,b,Yt)}function Jt(w,b,J){var ce,pe,Ie,ct=Te({},w.props);for(Ie in b)"key"==Ie?ce=b[Ie]:"ref"==Ie?pe=b[Ie]:ct[Ie]=b[Ie];return arguments.length>2&&(ct.children=arguments.length>3?d.call(arguments,2):J),Fe(w.type,ct,ce||w.key,pe||w.ref,null)}function De(w,b){var J={__c:b="__cC"+a++,__:w,Consumer:function(ce,pe){return ce.children(pe)},Provider:function(ce){var pe,Ie;return this.getChildContext||(pe=[],(Ie={})[b]=this,this.getChildContext=function(){return Ie},this.shouldComponentUpdate=function(ct){this.props.value!==ct.value&&pe.some(function(ft){ft.__e=!0,Qe(ft)})},this.sub=function(ct){pe.push(ct);var ft=ct.componentWillUnmount;ct.componentWillUnmount=function(){pe.splice(pe.indexOf(ct),1),ft&&ft.call(ct)}}),ce.children}};return J.Provider.__=J.Consumer.contextType=J}d=O.slice,R={__e:function(w,b,J,ce){for(var pe,Ie,ct;b=b.__;)if((pe=b.__c)&&!pe.__)try{if((Ie=pe.constructor)&&null!=Ie.getDerivedStateFromError&&(pe.setState(Ie.getDerivedStateFromError(w)),ct=pe.__d),null!=pe.componentDidCatch&&(pe.componentDidCatch(w,ce||{}),ct=pe.__d),ct)return pe.__E=pe}catch(ft){w=ft}throw w}},A=0,x=function(w){return null!=w&&void 0===w.constructor},C=!1,ot.prototype.setState=function(w,b){var J;J=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Te({},this.state),"function"==typeof w&&(w=w(Te({},J),this.props)),w&&Te(J,w),null!=w&&this.__v&&(b&&this._sb.push(b),Qe(this))},ot.prototype.forceUpdate=function(w){this.__v&&(this.__e=!0,w&&this.__h.push(w),Qe(this))},ot.prototype.render=qe,e=[],y="function"==typeof Promise?Promise.prototype.then.bind(Prom
vendor: 19,593 bytes, line 1
1ise.resolve()):setTimeout,We.__r=0,a=0},68314:(Nt,ne,g)=>{const R=g(72836),A=g(89460),x=g(7030),C=g(56511);function e(de,y,a,U,O){const Ae=[].slice.call(arguments,1),Te=Ae.length,ge="function"==typeof Ae[Te-1];if(!ge&&!R())throw new Error("Callback required as last argument");if(!ge){if(Te<1)throw new Error("Too few arguments provided");return 1===Te?(a=y,y=U=void 0):2===Te&&!y.getContext&&(U=a,a=y,y=void 0),new Promise(function(Ce,Fe){try{const xe=A.create(a,U);Ce(de(xe,y,U))}catch(xe){Fe(xe)}})}if(Te<2)throw new Error("Too few arguments provided");2===Te?(O=a,a=y,y=U=void 0):3===Te&&(y.getContext&&typeof O>"u"?(O=U,U=void 0):(O=U,U=a,a=y,y=void 0));try{const Ce=A.create(a,U);O(null,de(Ce,y,U))}catch(Ce){O(Ce)}}ne.mo=e.bind(null,x.render),ne.dY=e.bind(null,x.renderToDataURL),ne.toString=e.bind(null,function(de,y,a){return C.render(de,a)})},72836:Nt=>{Nt.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},96214:(Nt,ne,g)=>{const d=g(19089).getSymbolSize;ne.getRowColCoords=function(A){if(1===A)return[];const x=Math.floor(A/7)+2,C=d(A),e=145===C?26:2*Math.ceil((C-13)/(2*x-2)),de=[C-7];for(let y=1;y<x-1;y++)de[y]=de[y-1]-e;return de.push(6),de.reverse()},ne.getPositions=function(A){const x=[],C=ne.getRowColCoords(A),e=C.length;for(let de=0;de<e;de++)for(let y=0;y<e;y++)0===de&&0===y||0===de&&y===e-1||de===e-1&&0===y||x.push([C[de],C[y]]);return x}},1018:(Nt,ne,g)=>{const d=g(91677),R=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function A(x){this.mode=d.ALPHANUMERIC,this.data=x}A.getBitsLength=function(C){return 11*Math.floor(C/2)+C%2*6},A.prototype.getLength=function(){return this.data.length},A.prototype.getBitsLength=function(){return A.getBitsLength(this.data.length)},A.prototype.write=function(C){let e;for(e=0;e+2<=this.data.length;e+=2){let de=45*R.indexOf(this.data[e]);de+=R.indexOf(this.data[e+1]),C.put(de,11)}this.data.length%2&&C.put(R.indexOf(this.data[e]),6)},Nt.exports=A},84662:Nt=>{function ne(){this.buffer=[],this.length=0}ne.prototype={get:function(g){const d=Math.floor(g/8);return 1==(this.buffer[d]>>>7-g%8&1)},put:function(g,d){for(let R=0;R<d;R++)this.putBit(1==(g>>>d-R-1&1))},getLengthInBits:function(){return this.length},putBit:function(g){const d=Math.floor(this.length/8);this.buffer.length<=d&&this.buffer.push(0),g&&(this.buffer[d]|=128>>>this.length%8),this.length++}},Nt.exports=ne},35941:Nt=>{function ne(g){if(!g||g<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=g,this.data=new Uint8Array(g*g),this.reservedBit=new Uint8Array(g*g)}ne.prototype.set=function(g,d,R,A){const x=g*this.size+d;this.data[x]=R,A&&(this.reservedBit[x]=!0)},ne.prototype.get=function(g,d){return this.data[g*this.size+d]},ne.prototype.xor=function(g,d,R){this.data[g*this.size+d]^=R},ne.prototype.isReserved=function(g,d){return this.reservedBit[g*this.size+d]},Nt.exports=ne},54969:(Nt,ne,g)=>{const d=g(33174),R=g(91677);function A(x){this.mode=R.BYTE,"string"==typeof x&&(x=d(x)),this.data=new Uint8Array(x)}A.getBitsLength=function(C){return 8*C},A.prototype.getLength=function(){return this.data.length},A.prototype.getBitsLength=function(){return A.getBitsLength(this.data.length)},A.prototype.write=function(x){for(let C=0,e=this.data.length;C<e;C++)x.put(this.data[C],8)},Nt.exports=A},46058:(Nt,ne,g)=>{const d=g(47424),R=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],A=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ne.getBlocksCount=function(C,e){switch(e){case d.L:return R[4*(C-1)+0];case d.M:return R[4*(C-1)+1];case d.Q:return R[4*(C-1)+2];case d.H:return R[4*(C-1)+3];default:return}},ne.getTotalCodewordsCount=function(C,e){switch(e){case d.L:return A[4*(C-1)+0];case d.M:return A[4*(C-1)+1];case d.Q:return A[4*(C-1)+2];case d.H:return A[4*(C-1)+3];default:return}}},47424:(Nt,ne)=>{ne.L={bit:1},ne.M={bit:0},ne.Q={bit:3},ne.H={bit:2},ne.isValid=function(R){return R&&typeof R.bit<"u"&&R.bit>=0&&R.bit<4},ne.from=function(R,A){if(ne.isValid(R))return R;try{return function g(d){if("string"!=typeof d)throw new Error("Param is not a string");switch(d.toLowerCase()){case"l":case"low":return ne.L;case"m":case"medium":return ne.M;case"q":case"quartile":return ne.Q;case"h":case"high":return ne.H;default:throw new Error("Unknown EC Level: "+d)}}(R)}catch{return A}}},76269:(Nt,ne,g)=>{const d=g(19089).getSymbolSize;ne.getPositions=function(x){const C=d(x);return[[0,0],[C-7,0],[0,C-7]]}},26254:(Nt,ne,g)=>{const d=g(19089),x=d.getBCHDigit(1335);ne.getEncodedBits=function(e,de){const y=e.bit<<3|de;let a=y<<10;for(;d.getBCHDigit(a)-x>=0;)a^=1335<<d.getBCHDigit(a)-x;return 21522^(y<<10|a)}},66686:(Nt,ne)=>{const g=new Uint8Array(512),d=new Uint8Array(256);(function(){let A=1;for(let x=0;x<255;x++)g[x]=A,d[A]=x,A<<=1,256&A&&(A^=285);for(let x=255;x<512;x++)g[x]=g[x-255]})(),ne.log=function(A){if(A<1)throw new Error("log("+A+")");return d[A]},ne.exp=function(A){return g[A]},ne.mul=function(A,x){return 0===A||0===x?0:g[d[A]+d[x]]}},83264:(Nt,ne,g)=>{const d=g(91677),R=g(19089);function A(x){this.mode=d.KANJI,this.data=x}A.getBitsLength=function(C){return 13*C},A.prototype.getLength=function(){return this.data.length},A.prototype.getBitsLength=function(){return A.getBitsLength(this.data.length)},A.prototype.write=function(x){let C;for(C=0;C<this.data.length;C++){let e=R.toSJIS(this.data[C]);if(e>=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[C]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),x.put(e,13)}},Nt.exports=A},3361:(Nt,ne)=>{ne.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function d(R,A,x){switch(R){case ne.Patterns.PATTERN000:return(A+x)%2==0;case ne.Patterns.PATTERN001:return A%2==0;case ne.Patterns.PATTERN010:return x%3==0;case ne.Patterns.PATTERN011:return(A+x)%3==0;case ne.Patterns.PATTERN100:return(Math.floor(A/2)+Math.floor(x/3))%2==0;case ne.Patterns.PATTERN101:return A*x%2+A*x%3==0;case ne.Patterns.PATTERN110:return(A*x%2+A*x%3)%2==0;case ne.Patterns.PATTERN111:return(A*x%3+(A+x)%2)%2==0;default:throw new Error("bad maskPattern:"+R)}}ne.isValid=function(A){return null!=A&&""!==A&&!isNaN(A)&&A>=0&&A<=7},ne.from=function(A){return ne.isValid(A)?parseInt(A,10):void 0},ne.getPenaltyN1=function(A){const x=A.size;let C=0,e=0,de=0,y=null,a=null;for(let U=0;U<x;U++){e=de=0,y=a=null;for(let O=0;O<x;O++){let Ae=A.get(U,O);Ae===y?e++:(e>=5&&(C+=e-5+3),y=Ae,e=1),Ae=A.get(O,U),Ae===a?de++:(de>=5&&(C+=de-5+3),a=Ae,de=1)}e>=5&&(C+=e-5+3),de>=5&&(C+=de-5+3)}return C},ne.getPenaltyN2=function(A){const x=A.size;let C=0;for(let e=0;e<x-1;e++)for(let de=0;de<x-1;de++){const y=A.get(e,de)+A.get(e,de+1)+A.get(e+1,de)+A.get(e+1,de+1);(4===y||0===y)&&C++}return 3*C},ne.getPenaltyN3=function(A){const x=A.size;let C=0,e=0,de=0;for(let y=0;y<x;y++){e=de=0;for(let a=0;a<x;a++)e=e<<1&2047|A.get(y,a),a>=10&&(1488===e||93===e)&&C++,de=de<<1&2047|A.get(a,y),a>=10&&(1488===de||93===de)&&C++}return 40*C},ne.getPenaltyN4=function(A){let x=0;const C=A.data.length;for(let de=0;de<C;de++)x+=A.data[de];return 10*Math.abs(Math.ceil(100*x/C/5)-10)},ne.applyMask=function(A,x){const C=x.size;for(let e=0;e<C;e++)for(let de=0;de<C;de++)x.isReserved(de,e)||x.xor(de,e,d(A,de,e))},ne.getBestMask=function(A,x){const C=Object.keys(ne.Patterns).length;let e=0,de=1/0;for(let y=0;y<C;y++){x(y),ne.applyMask(y,A);const a=ne.getPenaltyN1(A)+ne.getPenaltyN2(A)+ne.getPenaltyN3(A)+ne.getPenaltyN4(A);ne.applyMask(y,A),a<de&&(de=a,e=y)}return e}},91677:(Nt,ne,g)=>{const d=g(80377),R=g(99359);ne.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},ne.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},ne.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},ne.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},ne.MIXED={bit:-1},ne.getCharCountIndicator=function(C,e){if(!C.ccBits)throw new Error("Invalid mode: "+C);if(!d.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?C.ccBits[0]:e<27?C.ccBits[1]:C.ccBits[2]},ne.getBestModeForData=function(C){return R.testNumeric(C)?ne.NUMERIC:R.testAlphanumeric(C)?ne.ALPHANUMERIC:R.testKanji(C)?ne.KANJI:ne.BYTE},ne.toString=function(C){if(C&&C.id)return C.id;throw new Error("Invalid mode")},ne.isValid=function(C){return C&&C.bit&&C.ccBits},ne.from=function(C,e){if(ne.isValid(C))return C;try{return function A(x){if("string"!=typeof x)throw new Error("Param is not a string");switch(x.toLowerCase()){case"numeric":return ne.NUMERIC;case"alphanumeric":return ne.ALPHANUMERIC;case"kanji":return ne.KANJI;case"byte":return ne.BYTE;default:throw new Error("Unknown mode: "+x)}}(C)}catch{return e}}},96628:(Nt,ne,g)=>{const d=g(91677);function R(A){this.mode=d.NUMERIC,this.data=A.toString()}R.getBitsLength=function(x){return 10*Math.floor(x/3)+(x%3?x%3*3+1:0)},R.prototype.getLength=function(){return this.data.length},R.prototype.getBitsLength=function(){return R.getBitsLength(this.data.length)},R.prototype.write=function(x){let C,e,de;for(C=0;C+3<=this.data.length;C+=3)e=this.data.substr(C,3),de=parseInt(e,10),x.put(de,10);const y=this.data.length-C;y>0&&(e=this.data.substr(C),de=parseInt(e,10),x.put(de,3*y+1))},Nt.exports=R},81744:(Nt,ne,g)=>{const d=g(66686);ne.mul=function(A,x){const C=new Uint8Array(A.length+x.length-1);for(let e=0;e<A.length;e++)for(let de=0;de<x.length;de++)C[e+de]^=d.mul(A[e],x[de]);return C},ne.mod=function(A,x){let C=new Uint8Array(A);for(;C.length-x.length>=0;){const e=C[0];for(let y=0;y<x.length;y++)C[y]^=d.mul(x[y],e);let de=0;for(;de<C.length&&0===C[de];)de++;C=C.slice(de)}return C},ne.generateECPolynomial=function(A){let x=new Uint8Array([1]);for(let C=0;C<A;C++)x=ne.mul(x,new Uint8Array([1,d.exp(C)]));return x}},89460:(Nt,ne,g)=>{const d=g(19089),R=g(47424),A=g(84662),x=g(35941),C=g(96214),e=g(76269),de=g(3361),y=g(46058),a=g(86289),U=g(91252),O=g(26254),Ae=g(91677),Te=g(22868);function qe(l,ot,Ke){const ve=l.size,He=O.getEncodedBits(ot,Ke);let Qe,We;for(Qe=0;Qe<15;Qe++)We=1==(He>>Qe&1),l.set(Qe<6?Qe:Qe<8?Qe+1:ve-15+Qe,8,We,!0),l.set(8,Qe<8?ve-Qe-1:Qe<9?15-Qe-1+1:15-Qe-1,We,!0);l.set(ve-8,8,1,!0)}function Pt(l,ot,Ke,ve){let He;if(Array.isArray(l))He=Te.fromArray(l);else{if("string"!=typeof l)throw new Error("Invalid data");{let en=ot;if(!en){const Je=Te.rawSplit(l);en=U.getBestVersionForData(Je,Ke)}He=Te.fromString(l,en||40)}}const Qe=U.getBestVersionForData(He,Ke);if(!Qe)throw new Error("The amount of data is too big to be stored in a QR Code");if(ot){if(ot<Qe)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+Qe+".\n")}else ot=Qe;const We=function nt(l,ot,Ke){const ve=new A;Ke.forEach(function(Ct){ve.put(Ct.mode.bit,4),ve.put(Ct.getLength(),Ae.getCharCountIndicator(Ct.mode,l)),Ct.write(ve)});const We=8*(d.getSymbolTotalCodewords(l)-y.getTotalCodewordsCount(l,ot));for(ve.getLengthInBits()+4<=We&&ve.put(0,4);ve.getLengthInBits()%8!=0;)ve.putBit(0);const dt=(We-ve.getLengthInBits())/8;for(let Ct=0;Ct<dt;Ct++)ve.put(Ct%2?17:236,8);return function vt(l,ot,Ke){const ve=d.getSymbolTotalCodewords(ot),Qe=ve-y.getTotalCodewordsCount(ot,Ke),We=y.getBlocksCount(ot,Ke),Ct=We-ve%We,en=Math.floor(ve/We),Je=Math.floor(Qe/We),zt=Je+1,_t=en-Je,ie=new a(_t);let Ye=0;const re=new Array(We),it=new Array(We);let ke=0;const Ue=new Uint8Array(l.buffer);for(let b=0;b<We;b++){const J=b<Ct?Je:zt;re[b]=Ue.slice(Ye,Ye+J),it[b]=ie.encode(re[b]),Ye+=J,ke=Math.max(ke,J)}const Yt=new Uint8Array(ve);let De,w,Jt=0;for(De=0;De<ke;De++)for(w=0;w<We;w++)De<re[w].length&&(Yt[Jt++]=re[w][De]);for(De=0;De<_t;De++)for(w=0;w<We;w++)Yt[Jt++]=it[w][De];return Yt}(ve,l,ot)}(ot,Ke,He),dt=d.getSymbolSize(ot),Ct=new x(dt);return function ge(l,ot){const Ke=l.size,ve=e.getPositions(ot);for(let He=0;He<ve.length;He++){const Qe=ve[He][0],We=ve[He][1];for(let dt=-1;dt<=7;dt++)if(!(Qe+dt<=-1||Ke<=Qe+dt))for(let Ct=-1;Ct<=7;Ct++)We+Ct<=-1||Ke<=We+Ct||l.set(Qe+dt,We+Ct,dt>=0&&dt<=6&&(0===Ct||6===Ct)||Ct>=0&&Ct<=6&&(0===dt||6===dt)||dt>=2&&dt<=4&&Ct>=2&&Ct<=4,!0)}}(Ct,ot),function Ce(l){const ot=l.size;for(let Ke=8;Ke<ot-8;Ke++){const ve=Ke%2==0;l.set(Ke,6,ve,!0),l.set(6,Ke,ve,!0)}}(Ct),function Fe(l,ot){const Ke=C.getPositions(ot);for(let ve=0;ve<Ke.length;ve++){const He=Ke[ve][0],Qe=Ke[ve][1];for(let We=-2;We<=2;We++)for(let dt=-2;dt<=2;dt++)l.set(He+We,Qe+dt,-2===We||2===We||-2===dt||2===dt||0===We&&0===dt,!0)}}(Ct,ot),qe(Ct,Ke,0),ot>=7&&function xe(l,ot){const Ke=l.size,ve=U.getEncodedBits(ot);let He,Qe,We;for(let dt=0;dt<18;dt++)He=Math.floor(dt/3),Qe=dt%3+Ke-8-3,We=1==(ve>>dt&1),l.set(He,Qe,We,!0),l.set(Qe,He,We,!0)}(Ct,ot),function rt(l,ot){const Ke=l.size;let ve=-1,He=Ke-1,Qe=7,We=0;for(let dt=Ke-1;dt>0;dt-=2)for(6===dt&&dt--;;){for(let Ct=0;Ct<2;Ct++)if(!l.isReserved(He,dt-Ct)){let en=!1;We<ot.length&&(en=1==(ot[We]>>>Qe&1)),l.set(He,dt-Ct,en),Qe--,-1===Qe&&(We++,Qe=7)}if(He+=ve,He<0||Ke<=He){He-=ve,ve=-ve;break}}}(Ct,We),isNaN(ve)&&(ve=de.getBestMask(Ct,qe.bind(null,Ct,Ke))),de.applyMask(ve,Ct),qe(Ct,Ke,ve),{modules:Ct,version:ot,errorCorrectionLevel:Ke,maskPattern:ve,segments:He}}ne.create=function(ot,Ke){if(typeof ot>"u"||""===ot)throw new Error("No input text");let He,Qe,ve=R.M;return typeof Ke<"u"&&(ve=R.from(Ke.errorCorrectionLevel,R.M),He=U.from(Ke.version),Qe=de.from(Ke.maskPattern),Ke.toSJISFunc&&d.setToSJISFunction(Ke.toSJISFunc)),Pt(ot,He,ve,Qe)}},86289:(Nt,ne,g)=>{const d=g(81744);function R(A){this.genPoly=void 0,this.degree=A,this.degree&&this.initialize(this.degree)}R.prototype.initialize=function(x){this.degree=x,this.genPoly=d.generateECPolynomial(this.degree)},R.prototype.encode=function(x){if(!this.genPoly)throw new Error("Encoder not initialized");const C=new Uint8Array(x.length+this.degree);C.set(x);const e=d.mod(C,this.genPoly),de=this.degree-e.length;if(de>0){const y=new Uint8Array(this.degree);return y.set(e,de),y}return e},Nt.exports=R},99359:(Nt,ne)=>{const g="[0-9]+";let R="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";R=R.replace(/u/g,"\\u");const A="(?:(?![A-Z0-9 $%*+\\-./:]|"+R+")(?:.|[\r\n]))+";ne.KANJI=new RegExp(R,"g"),ne.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),ne.BYTE=new RegExp(A,"g"),ne.NUMERIC=new RegExp(g,"g"),ne.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const x=new RegExp("^"+R+"$"),C=new RegExp("^"+g+"$"),e=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ne.testKanji=function(y){return x.test(y)},ne.testNumeric=function(y){return C.test(y)},ne.testAlphanumeric=function(y){return e.test(y)}},22868:(Nt,ne,g)=>{const d=g(91677),R=g(96628),A=g(1018),x=g(54969),C=g(83264),e=g(99359),de=g(19089),y=g(80243);function a(xe){return unescape(encodeURIComponent(xe)).length}function U(xe,qe,rt){const nt=[];let vt;for(;null!==(vt=xe.exec(rt));)nt.push({data:vt[0],index:vt.index,mode:qe,length:vt[0].length});return nt}function O(xe){const qe=U(e.NUMERIC,d.NUMERIC,xe),rt=U(e.ALPHANUMERIC,d.ALPHANUMERIC,xe);let nt,vt;return de.isKanjiModeEnabled()?(nt=U(e.BYTE,d.BYTE,xe),vt=U(e.KANJI,d.KANJI,xe)):(nt=U(e.BYTE_KANJI,d.BYTE,xe),vt=[]),qe.concat(rt,nt,vt).sort(function(l,ot){return l.index-ot.index}).map(function(l){return{data:l.data,mode:l.mode,length:l.length}})}function Ae(xe,qe){switch(qe){case d.NUMERIC:return R.getBitsLength(xe);case d.ALPHANUMERIC:return A.getBitsLength(xe);case d.KANJI:return C.getBitsLength(xe);case d.BYTE:return x.getBitsLength(xe)}}function Fe(xe,qe){let rt;const nt=d.getBestModeForData(xe);if(rt=d.from(qe,nt),rt!==d.BYTE&&rt.bit<nt.bit)throw new Error('"'+xe+'" cannot be encoded with mode '+d.toString(rt)+".\n Suggested mode is: "+d.toString(nt));switch(rt===d.KANJI&&!de.isKanjiModeEnabled()&&(rt=d.BYTE),rt){case d.NUMERIC:return new R(xe);case d.ALPHANUMERIC:return new A(xe);case d.KANJI:return new C(xe);case d.BYTE:return new x(xe)}}ne.fromArray=function(qe){return qe.reduce(function(rt,nt){return"string"==typeof nt?rt.push(Fe(nt,null)):nt.data&&rt.push(Fe(nt.data,nt.mode)),rt},[])},ne.fromString=function(qe,rt){const vt=function ge(xe){const qe=[];for(let rt=0;rt<xe.length;rt++){const nt=xe[rt];switch(nt.mode){case d.NUMERIC:qe.push([nt,{data:nt.data,mode:d.ALPHANUMERIC,length:nt.length},{data:nt.data,mode:d.BYTE,length:nt.length}]);break;case d.ALPHANUMERIC:qe.push([nt,{data:nt.data,mode:d.BYTE,length:nt.length}]);break;case d.KANJI:qe.push([nt,{data:nt.data,mode:d.BYTE,length:a(nt.data)}]);break;case d.BYTE:qe.push([{data:nt.data,mode:d.BYTE,length:a(nt.data)}])}}return qe}(O(qe,de.isKanjiModeEnabled())),Pt=function Ce(xe,qe){const rt={},nt={start:{}};let vt=["start"];for(let Pt=0;Pt<xe.length;Pt++){const l=xe[Pt],ot=[];for(let Ke=0;Ke<l.length;Ke++){const ve=l[Ke],He=""+Pt+Ke;ot.push(He),rt[He]={node:ve,lastCount:0},nt[He]={};for(let Qe=0;Qe<vt.length;Qe++){const We=vt[Qe];rt[We]&&rt[We].node.mode===ve.mode?(nt[We][He]=Ae(rt[We].lastCount+ve.length,ve.mode)-Ae(rt[We].lastCount,ve.mode),rt[We].lastCount+=ve.length):(rt[We]&&(rt[We].lastCount=ve.length),nt[We][He]=Ae(ve.length,ve.mode)+4+d.getCharCountIndicator(ve.mode,qe))}}vt=ot}for(let Pt=0;Pt<vt.length;Pt++)nt[vt[Pt]].end=0;return{map:nt,table:rt}}(vt,rt),l=y.find_path(Pt.map,"start","end"),ot=[];for(let Ke=1;Ke<l.length-1;Ke++)ot.push(Pt.table[l[Ke]].node);return ne.fromArray(function Te(xe){return xe.reduce(function(qe,rt){const nt=qe.length-1>=0?qe[qe.length-1]:null;return nt&&nt.mode===rt.mode?(qe[qe.length-1].data+=rt.data,qe):(qe.push(rt),qe)},[])}(ot))},ne.rawSplit=function(qe){return ne.fromArray(O(qe,de.isKanjiModeEnabled()))}},19089:(Nt,ne)=>{let g;const d=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ne.getSymbolSize=function(A){if(!A)throw new Error('"version" cannot be null or undefined');if(A<1||A>40)throw new Error('"version" should be in range from 1 to 40');return 4*A+17},ne.getSymbolTotalCodewords=function(A){return d[A]},ne.getBCHDigit=function(R){let A=0;for(;0!==R;)A++,R>>>=1;return A},ne.setToSJISFunction=function(A){if("function"!=typeof A)throw new Error('"toSJISFunc" is not a valid function.');g=A},ne.isKanjiModeEnabled=function(){return typeof g<"u"},ne.toSJIS=function(A){return g(A)}},80377:(Nt,ne)=>{ne.isValid=function(d){return!isNaN(d)&&d>=1&&d<=40}},91252:(Nt,ne,g)=>{const d=g(19089),R=g(46058),A=g(47424),x=g(91677),C=g(80377),de=d.getBCHDigit
1(7973);function a(Ae,Te){return x.getCharCountIndicator(Ae,Te)+4}function U(Ae,Te){let ge=0;return Ae.forEach(function(Ce){const Fe=a(Ce.mode,Te);ge+=Fe+Ce.getBitsLength()}),ge}ne.from=function(Te,ge){return C.isValid(Te)?parseInt(Te,10):ge},ne.getCapacity=function(Te,ge,Ce){if(!C.isValid(Te))throw new Error("Invalid QR Code version");typeof Ce>"u"&&(Ce=x.BYTE);const qe=8*(d.getSymbolTotalCodewords(Te)-R.getTotalCodewordsCount(Te,ge));if(Ce===x.MIXED)return qe;const rt=qe-a(Ce,Te);switch(Ce){case x.NUMERIC:return Math.floor(rt/10*3);case x.ALPHANUMERIC:return Math.floor(rt/11*2);case x.KANJI:return Math.floor(rt/13);default:return Math.floor(rt/8)}},ne.getBestVersionForData=function(Te,ge){let Ce;const Fe=A.from(ge,A.M);if(Array.isArray(Te)){if(Te.length>1)return function O(Ae,Te){for(let ge=1;ge<=40;ge++)if(U(Ae,ge)<=ne.getCapacity(ge,Te,x.MIXED))return ge}(Te,Fe);if(0===Te.length)return 1;Ce=Te[0]}else Ce=Te;return function y(Ae,Te,ge){for(let Ce=1;Ce<=40;Ce++)if(Te<=ne.getCapacity(Ce,ge,Ae))return Ce}(Ce.mode,Ce.getLength(),Fe)},ne.getEncodedBits=function(Te){if(!C.isValid(Te)||Te<7)throw new Error("Invalid QR Code version");let ge=Te<<12;for(;d.getBCHDigit(ge)-de>=0;)ge^=7973<<d.getBCHDigit(ge)-de;return Te<<12|ge}},7030:(Nt,ne,g)=>{const d=g(47077);ne.render=function(C,e,de){let y=de,a=e;typeof y>"u"&&(!e||!e.getContext)&&(y=e,e=void 0),e||(a=function A(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),y=d.getOptions(y);const U=d.getImageWidth(C.modules.size,y),O=a.getContext("2d"),Ae=O.createImageData(U,U);return d.qrToImageData(Ae.data,C,y),function R(x,C,e){x.clearRect(0,0,C.width,C.height),C.style||(C.style={}),C.height=e,C.width=e,C.style.height=e+"px",C.style.width=e+"px"}(O,a,U),O.putImageData(Ae,0,0),a},ne.renderToDataURL=function(C,e,de){let y=de;return typeof y>"u"&&(!e||!e.getContext)&&(y=e,e=void 0),y||(y={}),ne.render(C,e,y).toDataURL(y.type||"image/png",(y.rendererOpts||{}).quality)}},56511:(Nt,ne,g)=>{const d=g(47077);function R(C,e){const de=C.a/255,y=e+'="'+C.hex+'"';return de<1?y+" "+e+'-opacity="'+de.toFixed(2).slice(1)+'"':y}function A(C,e,de){let y=C+e;return typeof de<"u"&&(y+=" "+de),y}ne.render=function(e,de,y){const a=d.getOptions(de),U=e.modules.size,O=e.modules.data,Ae=U+2*a.margin,Te=a.color.light.a?"<path "+R(a.color.light,"fill")+' d="M0 0h'+Ae+"v"+Ae+'H0z"/>':"",ge="<path "+R(a.color.dark,"stroke")+' d="'+function x(C,e,de){let y="",a=0,U=!1,O=0;for(let Ae=0;Ae<C.length;Ae++){const Te=Math.floor(Ae%e),ge=Math.floor(Ae/e);!Te&&!U&&(U=!0),C[Ae]?(O++,Ae>0&&Te>0&&C[Ae-1]||(y+=U?A("M",Te+de,.5+ge+de):A("m",a,0),a=0,U=!1),Te+1<e&&C[Ae+1]||(y+=A("h",O),O=0)):a++}return y}(O,U,a.margin)+'"/>',xe='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+'viewBox="0 0 '+Ae+" "+Ae+'" shape-rendering="crispEdges">'+Te+ge+"</svg>\n";return"function"==typeof y&&y(null,xe),xe}},47077:(Nt,ne)=>{function g(d){if("number"==typeof d&&(d=d.toString()),"string"!=typeof d)throw new Error("Color should be defined as hex string");let R=d.slice().replace("#","").split("");if(R.length<3||5===R.length||R.length>8)throw new Error("Invalid hex color: "+d);(3===R.length||4===R.length)&&(R=Array.prototype.concat.apply([],R.map(function(x){return[x,x]}))),6===R.length&&R.push("F","F");const A=parseInt(R.join(""),16);return{r:A>>24&255,g:A>>16&255,b:A>>8&255,a:255&A,hex:"#"+R.slice(0,6).join("")}}ne.getOptions=function(R){R||(R={}),R.color||(R.color={});const x=R.width&&R.width>=21?R.width:void 0;return{width:x,scale:x?4:R.scale||4,margin:typeof R.margin>"u"||null===R.margin||R.margin<0?4:R.margin,color:{dark:g(R.color.dark||"#000000ff"),light:g(R.color.light||"#ffffffff")},type:R.type,rendererOpts:R.rendererOpts||{}}},ne.getScale=function(R,A){return A.width&&A.width>=R+2*A.margin?A.width/(R+2*A.margin):A.scale},ne.getImageWidth=function(R,A){const x=ne.getScale(R,A);return Math.floor((R+2*A.margin)*x)},ne.qrToImageData=function(R,A,x){const C=A.modules.size,e=A.modules.data,de=ne.getScale(C,x),y=Math.floor((C+2*x.margin)*de),a=x.margin*de,U=[x.color.light,x.color.dark];for(let O=0;O<y;O++)for(let Ae=0;Ae<y;Ae++){let Te=4*(O*y+Ae),ge=x.color.light;O>=a&&Ae>
1=a&&O<y-a&&Ae<y-a&&(ge=U[e[Math.floor((O-a)/de)*C+Math.floor((Ae-a)/de)]?1:0]),R[Te++]=ge.r,R[Te++]=ge.g,R[Te++]=ge.b,R[Te]=ge.a}}},54843:(Nt,ne,g)=>{"use strict";g.d(ne,{_:()=>A});var d=g(9350),R=g(47707);function A(x,C){const e="object"==typeof C;return new Promise((de,y)=>{const a=new R.Ms({next:U=>{de(U),a.unsubscribe()},error:y,complete:()=>{e?de(C.defaultValue):y(new d.G)}});x.subscribe(a)})}},6064:(Nt,ne,g)=>{"use strict";g.d(ne,{E:()=>Jt,x:()=>Yt});var d=g(54438),R=g(77392),A=g(6681),x=g(60177);const C=["*"],e=["rootEl"],de=De=>({$implicit:De});function y(De,w){if(1&De&&(d.j41(0,"div",2,0),d.eu8(2,3),d.k0s()),2&De){const b=d.XpG();d.Y8G("ngClass",b.elClasses||"")("ngStyle",b.elStyle||null),d.R7$(2),d.Y8G("ngTemplateOutlet",b.template)("ngTemplateOutletContext",d.eq3(4,de,b.renderProps))}}function a(De,w){if(1&De&&(d.j41(0,"span",2,0),d.eu8(2,3),d.k0s()),2&De){const b=d.XpG();d.Y8G("ngClass",b.elClasses||"")("ngStyle",b.elStyle||null),d.R7$(2),d.Y8G("ngTemplateOutlet",b.template)("ngTemplateOutletContext",d.eq3(4,de,b.renderProps))}}function U(De,w){if(1&De&&(d.j41(0,"a",2,0),d.eu8(2,3),d.k0s()),2&De){const b=d.XpG();d.Y8G("ngClass",b.elClasses||"")("ngStyle",b.elStyle||null),d.R7$(2),d.Y8G("ngTemplateOutlet",b.template)("ngTemplateOutletContext",d.eq3(4,de,b.renderProps))}}function O(De,w){if(1&De&&(d.j41(0,"tr",2,0),d.eu8(2,3),d.k0s()),2&De){const b=d.XpG();d.Y8G("ngClass",b.elClasses||"")("ngStyle",b.elStyle||null),d.R7$(2),d.Y8G("ngTemplateOutlet",b.template)("ngTemplateOutletContext",d.eq3(4,de,b.renderProps))}}function Ae(De,w){if(1&De&&(d.j41(0,"th",2,0),d.eu8(2,3),d.k0s()),2&De){const b=d.XpG();d.Y8G("ngClass",b.elClasses||"")("ngStyle",b.elStyle||null),d.R7$(2),d.Y8G("ngTemplateOutlet",b.template)("ngTemplateOutletContext",d.eq3(4,de,b.renderProps))}}function Te(De,w){if(1&De&&(d.j41(0,"td",2,0),d.eu8(2,3),d.k0s()),2&De){const b=d.XpG();d.Y8G("ngClass",b.elClasses||"")("ngStyle",b.elStyle||null),d.R7$(2),d.Y8G("ngTemplateOutlet",b.template)("ngTemplateOutletContext",d.eq3(4,de,b.renderProps))}}const ge=["dayHeaderContent"],Ce=["dayCellContent"],Fe=["weekNumberContent"],xe=["nowIndicatorContent"],qe=["eventContent"],rt=["slotLaneContent"],nt=["slotLabelContent"],vt=["allDayContent"],Pt=["moreLinkContent"],l=["noEventsContent"],ot=["resourceAreaHeaderContent"],Ke=["resourceGroupLabelContent"],ve=["resourceLabelContent"],He=["resourceLaneContent"],Qe=["resourceGroupLaneContent"];function We(De,w){if(1&De&&d.nrm(0,"transport-container",1),2&De){const b=w.$implicit;d.Y8G("inPlaceOf",b.containerEl)("reportEl",b.reportNewContainerEl)("elTag",b.elTag)("elClasses",b.elClasses)("elStyle",b.elStyle)("elAttrs",b.elAttrs)("template",b.generatorMeta)("renderProps",b.renderProps)}}const dt={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Ct=["events","eventSources","resources"],en=Object.prototype.hasOwnProperty;function Je(De){return Array.isArray(De)?De.map(Je):De instanceof Date?new Date(De.valueOf()):"object"==typeof De&&De?zt(De,Je):De}function zt(De,w){const b={};for(const J in De)en.call(De,J)&&(b[J]=w(De[J],J));return b}function _t(De,w){if(De===w)return!0;if(De&&w&&"object"==typeof De&&"object"==typeof w){if(De.constructor!==w.constructor)return!1;var b,J,ce;if(Array.isArray(De)){if((b=De.length)!=w.length)return!1;for(J=b;0!=J--;)if(!_t(De[J],w[J]))return!1;return!0}if(De.constructor===RegExp)return De.source===w.source&&De.flags===w.flags;if(De.valueOf!==Object.prototype.valueOf)return De.valueOf()===w.valueOf();if(De.toString!==Object.prototype.toString)return De.toString()===w.toString();if((b=(ce=Object.keys(De)).length)!==Object.keys(w).length)return!1;for(J=b;0!=J--;)if(!Object.prototype.hasOwnProperty.call(w,ce[J]))return!1;for(J=b;0!=J--;){var pe=ce[J];if(!_t(De[pe],w[pe]))return!1}return!0}return De!=De&&w!=w}const ie=typeof document<"u"?document.createDocumentFragment():null;let Ye=(()=>{class De{constructor(b){this.element=b}ngAfterViewInit(){ie&&ie.appendChild(this.element.nativeElement)}ngOnDestroy(){ie&&ie.removeChild(this.element.nativeElement)}}return De.\u0275fac=function(b){return new(b||De)(d.rXU(d.aKT))},De.\u0275cmp=d.VBU({type:De,selectors:[["offscreen-fragment"]],ngContentSelectors:C,decls:1,vars:0,template:function(b,J){1&b&&(d.NAR(),d.SdG(0))},encapsulation:2}),De})();const re=typeof document<"u"?document.createDocumentFragment():null;let it=(()=>{class De{ngAfterViewInit(){var b;const J=null===(b=this.rootElRef)||void 0===b?void 0:b.nativeElement;ke(J,this.inPlaceOf),Ue(J,void 0,this.elAttrs),this.inPlaceOf.style.display="none",this.reportEl(J)}ngOnChanges(b){var J;const ce=null===(J=this.rootElRef)||void 0===J?void 0:J.nativeElement;if(ce)if(this.inPlaceOf.parentNode!==re)ke(ce,this.inPlaceOf),Ue(ce,void 0,this.elAttrs),this.reportEl(ce);else{const pe=b.elAttrs;pe&&Ue(ce,pe.previousValue,pe.currentValue)}}ngOnDestroy(){this.inPlaceOf.parentNode===re&&re&&re.removeChild(this.inPlaceOf),this.reportEl(null)}}return De.\u0275fac=function(b){return new(b||De)},De.\u0275cmp=d.VBU({type:De,selectors:[["transport-container"]],viewQuery:function(b,J){if(1&b&&d.GBs(e,5),2&b){let ce;d.mGM(ce=d.lsd())&&(J.rootElRef=ce.first)}},inputs:{inPlaceOf:"inPlaceOf",reportEl:"reportEl",elTag:"elTag",elClasses:"elClasses",elStyle:"elStyle",elAttrs:"elAttrs",template:"template",renderProps:"renderProps"},features:[d.OA$],decls:6,vars:6,consts:[["rootEl",""],[3,"ngIf"],[3,"ngClass","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(b,J){1&b&&d.DNE(0,y,3,6,"ng-template",1)(1,a,3,6,"ng-template",1)(2,U,3,6,"ng-template",1)(3,O,3,6,"ng-template",1)(4,Ae,3,6,"ng-template",1)(5,Te,3,6,"ng-template",1),2&b&&(d.Y8G("ngIf","div"==J.elTag),d.R7$(),d.Y8G("ngIf","span"==J.elTag),d.R7$(),d.Y8G("ngIf","a"==J.elTag),d.R7$(),d.Y8G("ngIf","tr"==J.elTag),d.R7$(),d.Y8G("ngIf","th"==J.elTag),d.R7$(),d.Y8G("ngIf","td"==J.elTag))},dependencies:[x.bT,x.YU,x.B3,x.T3],encapsulation:2}),De})();function ke(De,w){var b;null===(b=w.parentNode)||void 0===b||b.insertBefore(De,w.nextSibling),re&&re.appendChild(w)}function Ue(De,w={},b={}){for(const J in w)J in b||(De[J]=null);for(const J in b)De[J]=b[J]}let Yt=(()=>{class De{constructor(b,J){this.element=b,this.calendar=null,this.optionSnapshot={},this.customRenderingMap=new Map;const ce=new A.cv;ce.subscribe(pe=>{this.customRenderingMap=pe,this.customRenderingArray=void 0,J.detectChanges()}),this.handleCustomRendering=ce.handle.bind(ce)}ngAfterViewInit(){const{deepChangeDetection:b}=this,J={...this.options,...this.buildInputOptions()};this.optionSnapshot=zt(J,(ct,ft)=>b&&dt[ft]?Je(ct):ct);const ce=this.element.nativeElement,pe=this.calendar=new R.Vv(ce,{...J,...this.buildExtraOptions()}),Ie=ce.closest("ion-content");Ie&&Ie.componentOnReady?Ie.componentOnReady().then(()=>{window.requestAnimationFrame(()=>{pe.render()})}):pe.render(),setTimeout(()=>pe.updateSize())}ngDoCheck(){if(this.calendar){const{deepChangeDetection:b,optionSnapshot:J}=this,ce={...this.options,...this.buildInputOptions()}
1,pe={},Ie=[];for(const ft in ce)if(ce.hasOwnProperty(ft)){let et=ce[ft];b&&dt[ft]?_t(J[ft],et)||(J[ft]=Je(et),Ie.push(ft)):J[ft]!==et&&(J[ft]=et,Ie.push(ft)),pe[ft]=et}const ct=Object.keys(J);for(const ft of ct)ft in ce||(delete J[ft],Ie.push(ft));Ie.length&&(this.calendar.pauseRendering(),this.calendar.resetOptions({...pe,...this.buildExtraOptions()},Ie))}}ngAfterContentChecked(){this.calendar&&this.calendar.resumeRendering()}ngOnDestroy(){this.calendar&&(this.calendar.destroy(),this.calendar=null)}get customRenderings(){return this.customRenderingArray||(this.customRenderingArray=[...this.customRenderingMap.values()])}getApi(){return this.calendar}buildInputOptions(){const b={};for(const J of Ct){const ce=this[J];null!=ce&&(b[J]=ce)}return b}buildExtraOptions(){return{handleCustomRendering:this.handleCustomRendering,customRenderingMetaMap:this,customRenderingReplaces:!0}}trackCustomRendering(b,J){return J.id}}return De.\u0275fac=function(b){return new(b||De)(d.rXU(d.aKT),d.rXU(d.gRc))},De.\u0275cmp=d.VBU({type:De,selectors:[["full-calendar"]],contentQueries:function(b,J,ce){if(1&b&&(d.wni(ce,ge,7),d.wni(ce,Ce,7),d.wni(ce,Fe,7),d.wni(ce,xe,7),d.wni(ce,qe,7),d.wni(ce,rt,7),d.wni(ce,nt,7),d.wni(ce,vt,7),d.wni(ce,Pt,7),d.wni(ce,l,7),d.wni(ce,ot,7),d.wni(ce,Ke,7),d.wni(ce,ve,7),d.wni(ce,He,7),d.wni(ce,Qe,7)),2&b){let pe;d.mGM(pe=d.lsd())&&(J.dayHeaderContent=pe.first),d.mGM(pe=d.lsd())&&(J.dayCellContent=pe.first),d.mGM(pe=d.lsd())&&(J.weekNumberContent=pe.first),d.mGM(pe=d.lsd())&&(J.nowIndicatorContent=pe.first),d.mGM(pe=d.lsd())&&(J.eventContent=pe.first),d.mGM(pe=d.lsd())&&(J.slotLaneContent=pe.first),d.mGM(pe=d.lsd())&&(J.slotLabelContent=pe.first),d.mGM(pe=d.lsd())&&(J.allDayContent=pe.first),d.mGM(pe=d.lsd())&&(J.moreLinkContent=pe.first),d.mGM(pe=d.lsd())&&(J.noEventsContent=pe.first),d.mGM(pe=d.lsd())&&(J.resourceAreaHeaderContent=pe.first),d.mGM(pe=d.lsd())&&(J.resourceGroupLabelContent=pe.first),d.mGM(pe=d.lsd())&&(J.resourceLabelContent=pe.first),d.mGM(pe=d.lsd())&&(J.resourceLaneContent=pe.first),d.mGM(pe=d.lsd())&&(J.resourceGroupLaneContent=pe.first)}},inputs:{options:"options",deepChangeDetection:"deepChangeDetection",events:"events",eventSources:"eventSources",resources:"resources"},decls:2,vars:2,consts:[[3,"inPlaceOf","reportEl","elTag","elClasses","elStyle","elAttrs","template","renderProps",4,"ngFor","ngForOf","ngForTrackBy"],[3,"inPlaceOf","reportEl","elTag","elClasses","elStyle","elAttrs","template","renderProps"]],template:function(b,J){1&b&&(d.j41(0,"offscreen-fragment"),d.DNE(1,We,1,8,"transport-container",0),d.k0s()),2&b&&(d.R7$(),d.Y8G("ngForOf",J.customRenderings)("ngForTrackBy",J.trackCustomRendering))},dependencies:[Ye,it,x.Sq],encapsulation:2}),De})(),Jt=(()=>{class De{}return De.\u0275fac=function(b){return new(b||De)},De.\u0275mod=d.$C({type:De}),De.\u0275inj=d.G2t({imports:[[x.MD]]}),De})()},77392:(Nt,ne,g)=>{"use strict";g.d(ne,{Vv:()=>Tn,i1:()=>Ae});var d=g(6681),R=g(22467);g(72912);const x=[],C={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},e=Object.assign(Object.assign({},C),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(I,T)=>"day"===T?"Today":`This ${I}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:I=>`Show ${I} more event${1===I?"":"s"}`});function de(I){let T=I.length>0?I[0].code:"en",L=x.concat(I),j={en:e};for(let se of L)j[se.code]=se;return{map:j,defaultCode:T}}function y(I,T){return"object"!=typeof I||Array.isArray(I)?function a(I,T){let L=[].concat(I||[]),j=function U(I,T){for(let L=0;L<I.length;L+=1){let j=I[L].toLocaleLowerCase().split("-");for(let se=j.length;se>0;se-=1){let he=j.slice(0,se).join("-");if(T[he])return T[he]}}return null}(L,T)||e;return O(I,L,j)}(I,T):O(I.code,[I.code],I)}function O(I,T,L){let j=(0,d.m)([C,L],["buttonText"]);delete j.code;let{week:se}=j;
vendor: 4,580 bytes, line 1
1return delete j.week,{codeArg:I,codes:T,week:se,simpleNumberFormat:new Intl.NumberFormat(I),options:j}}function Ae(I){return{id:(0,d.g)(),name:I.name,premiumReleaseDate:I.premiumReleaseDate?new Date(I.premiumReleaseDate):void 0,deps:I.deps||[],reducers:I.reducers||[],isLoadingFuncs:I.isLoadingFuncs||[],contextInit:[].concat(I.contextInit||[]),eventRefiners:I.eventRefiners||{},eventDefMemberAdders:I.eventDefMemberAdders||[],eventSourceRefiners:I.eventSourceRefiners||{},isDraggableTransformers:I.isDraggableTransformers||[],eventDragMutationMassagers:I.eventDragMutationMassagers||[],eventDefMutationAppliers:I.eventDefMutationAppliers||[],dateSelectionTransformers:I.dateSelectionTransformers||[],datePointTransforms:I.datePointTransforms||[],dateSpanTransforms:I.dateSpanTransforms||[],views:I.views||{},viewPropsTransformers:I.viewPropsTransformers||[],isPropsValid:I.isPropsValid||null,externalDefTransforms:I.externalDefTransforms||[],viewContainerAppends:I.viewContainerAppends||[],eventDropTransformers:I.eventDropTransformers||[],componentInteractions:I.componentInteractions||[],calendarInteractions:I.calendarInteractions||[],themeClasses:I.themeClasses||{},eventSourceDefs:I.eventSourceDefs||[],cmdFormatter:I.cmdFormatter,recurringTypes:I.recurringTypes||[],namedTimeZonedImpl:I.namedTimeZonedImpl,initialView:I.initialView||"",elementDraggingImpl:I.elementDraggingImpl,optionChangeHandlers:I.optionChangeHandlers||{},scrollGridImpl:I.scrollGridImpl||null,listenerRefiners:I.listenerRefiners||{},optionRefiners:I.optionRefiners||{},propSetHandlers:I.propSetHandlers||{}}}function Ce(I,T){return{premiumReleaseDate:Fe(I.premiumReleaseDate,T.premiumReleaseDate),reducers:I.reducers.concat(T.reducers),isLoadingFuncs:I.isLoadingFuncs.concat(T.isLoadingFuncs),contextInit:I.contextInit.concat(T.contextInit),eventRefiners:Object.assign(Object.assign({},I.eventRefiners),T.eventRefiners),eventDefMemberAdders:I.eventDefMemberAdders.concat(T.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},I.eventSourceRefiners),T.eventSourceRefiners),isDraggableTransformers:I.isDraggableTransformers.concat(T.isDraggableTransformers),eventDragMutationMassagers:I.eventDragMutationMassagers.concat(T.eventDragMutationMassagers),eventDefMutationAppliers:I.eventDefMutationAppliers.concat(T.eventDefMutationAppliers),dateSelectionTransformers:I.dateSelectionTransformers.concat(T.dateSelectionTransformers),datePointTransforms:I.datePointTransforms.concat(T.datePointTransforms),dateSpanTransforms:I.dateSpanTransforms.concat(T.dateSpanTransforms),views:Object.assign(Object.assign({},I.views),T.views),viewPropsTransformers:I.viewPropsTransformers.concat(T.viewPropsTransformers),isPropsValid:T.isPropsValid||I.isPropsValid,externalDefTransforms:I.externalDefTransforms.concat(T.externalDefTransforms),viewContainerAppends:I.viewContainerAppends.concat(T.viewContainerAppends),eventDropTransformers:I.eventDropTransformers.concat(T.eventDropTransformers),calendarInteractions:I.calendarInteractions.concat(T.calendarInteractions),componentInteractions:I.componentInteractions.concat(T.componentInteractions),themeClasses:Object.assign(Object.assign({},I.themeClasses),T.themeClasses),eventSourceDefs:I.eventSourceDefs.concat(T.eventSourceDefs),cmdFormatter:T.cmdFormatter||I.cmdFormatter,recurringTypes:I.recurringTypes.concat(T.recurringTypes),namedTimeZonedImpl:T.namedTimeZonedImpl||I.namedTimeZonedImpl,initialView:I.initialView||T.initialView,elementDraggingImpl:I.elementDraggingImpl||T.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},I.optionChangeHandlers),T.optionChangeHandlers),scrollGridImpl:T.scrollGridImpl||I.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},I.listenerRefiners),T.listenerRefiners),optionRefiners:Object.assign(Object.assign({},I.optionRefiners),T.optionRefiners),propSetHandlers:Object.assign(Object.assign({},I.propSetHandlers),T.propSetHandlers)}}function Fe(I,T){return void 0===I?T:void 0===T?I:new Date(Math.max(I.valueOf(),T.valueOf()))}class xe extends d.T{}function rt(I,T,L,j){if(T[I])return T[I];let se=function nt(I,T,L,j){let se=L[I],he=j[I],Ee=Mt=>se&&null!==se[Mt]?se[Mt]:he&&null!==he[Mt]?he[Mt]:null,ze=Ee("component"),Be=Ee("superType"),tt=null;if(Be){if(Be===I)throw new Error("Can't have a custom view type that references itself");tt=rt(Be,T,L,j)}return!ze&&tt&&(ze=tt.component),ze?{type:I,component:ze,defaults:Object.assign(Object.assign({},tt?tt.defaults:{}),se?se.rawOptions:{}),overrides:Object.assign(Object.assign({},tt?tt.overrides:{}),he?he.rawOptions:{})}:null}
1(I,T,L,j);return se&&(T[I]=se),se}function vt(I){return(0,d.a)(I,Pt)}function Pt(I){let T="function"==typeof I?{component:I}:I,{component:L}=T;return T.content?L=l(T):L&&!(L.prototype instanceof d.B)&&(L=l(Object.assign(Object.assign({},T),{content:L}))),{superType:T.type,component:L,rawOptions:T}}function l(I){return T=>(0,R.n)(d.V.Consumer,null,L=>(0,R.n)(d.C,{elTag:"div",elClasses:(0,d.b)(L.viewSpec),renderProps:Object.assign(Object.assign({},T),{nextDayThreshold:L.options.nextDayThreshold}),generatorName:void 0,customGenerator:I.content,classNameGenerator:I.classNames,didMount:I.didMount,willUnmount:I.willUnmount}))}function ot(I,T,L,j){let se=vt(I),he=vt(T.views),Ee=function qe(I,T){let j,L={};for(j in I)rt(j,L,I,T);for(j in T)rt(j,L,I,T);return L}(se,he);return(0,d.a)(Ee,ze=>function Ke(I,T,L,j,se){let he=I.overrides.duration||I.defaults.duration||j.duration||L.duration,Ee=null,ze="",Be="",tt={};if(he&&(Ee=function He(I){let T=JSON.stringify(I),L=ve[T];return void 0===L&&(L=(0,d.d)(I),ve[T]=L),L}(he),Ee)){let Ut=(0,d.c)(Ee);ze=Ut.unit,1===Ut.value&&(Be=ze,tt=T[ze]?T[ze].rawOptions:{})}let Mt=Ut=>{let gt=Ut.buttonText||{},fn=I.defaults.buttonTextKey;return null!=fn&&null!=gt[fn]?gt[fn]:null!=gt[I.type]?gt[I.type]:null!=gt[Be]?gt[Be]:null},Lt=Ut=>{let gt=Ut.buttonHints||{},fn=I.defaults.buttonTextKey;return null!=fn&&null!=gt[fn]?gt[fn]:null!=gt[I.type]?gt[I.type]:null!=gt[Be]?gt[Be]:null};return{type:I.type,component:I.component,duration:Ee,durationUnit:ze,singleUnit:Be,optionDefaults:I.defaults,optionOverrides:Object.assign(Object.assign({},tt),I.overrides),buttonTextOverride:Mt(j)||Mt(L)||I.overrides.buttonText,buttonTextDefault:Mt(se)||I.defaults.buttonText||Mt(d.e)||I.type,buttonTitleOverride:Lt(j)||Lt(L)||I.overrides.buttonHint,buttonTitleDefault:Lt(se)||I.defaults.buttonHint||Lt(d.e)}}(ze,he,T,L,j))}xe.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},xe.prototype.baseIconClass="fc-icon",xe.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},xe.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},xe.prototype.iconOverrideOption="buttonIcons",xe.prototype.iconOverrideCustomButtonOption="icon",xe.prototype.iconOverridePrefix="fc-icon-";let ve={};function ie(I){for(let T in I)if(I[T].isFetching)return!0;return!1}function Ye(I,T,L,j){let se={};for(let he of T)se[he.sourceId]=he;return L&&(se=it(se,L,j)),Object.assign(Object.assign({},I),se)}function it(I,T,L){return Ue(I,(0,d.h)(I,j=>function ke(I,T,L){return b(I,L)?!L.options.lazyFetching||!I.fetchRange||I.isFetching||T.start<I.fetchRange.start||T.end>I.fetchRange.end:!I.latestFetchId}(j,T,L)),T,!1,L)}function Ue(I,T,L,j,se){let he={};for(let Ee in I){let ze=I[Ee];he[Ee]=T[Ee]?Yt(ze,L,j,se):ze}return he}function Yt(I,T,L,j){let{options:se,calendarApi:he}=j,Ee=j.pluginHooks.eventSourceDefs[I.sourceDefId],ze=(0,d.g)();return Ee.fetch({eventSource:I,range:T,isRefetch:L,context:j},Be=>{let{rawEvents:tt}=Be;se.eventSourceSuccess&&(tt=se.eventSourceSuccess.call(he,tt,Be.response)||tt),I.success&&(tt=I.success.call(he,tt,Be.response)||tt),j.dispatch({type:"RECEIVE_EVENTS",sourceId:I.sourceId,fetchId:ze,fetchRange:T,rawEvents:tt})},Be=>{let tt=!1;se.eventSourceFailure&&(se.eventSourceFailure.call(he,Be),tt=!0),I.failure&&(I.failure(Be),tt=!0),tt||console.warn(Be.message,Be),j.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:I.sourceId,fetchId:ze,fetchRange:T,error:Be})}),Object.assign(Object.assign({},I),{isFetching:!0,latestFetchId:ze})}function De(I,T){return(0,d.h)(I,L=>b(L,T))}function b(I,T){return!T.pluginHooks.eventSourceDefs[I.sourceDefId].ignoreRange}function J(I,T){switch(T.type){case"UNSELECT_DATES":return null;
vendor: 2,169 bytes, line 1
1case"SELECT_DATES":return T.selection;default:return I}}function ce(I,T){switch(T.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return T.eventInstanceId;default:return I}}function pe(I,T){let L;switch(T.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return L=T.state,{affectedEvents:L.affectedEvents,mutatedEvents:L.mutatedEvents,isEvent:L.isEvent};default:return I}}function Ie(I,T){let L;switch(T.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return L=T.state,{affectedEvents:L.affectedEvents,mutatedEvents:L.mutatedEvents,isEvent:L.isEvent};default:return I}}function ct(I,T,L,j,se){return{header:I.headerToolbar?ft(I.headerToolbar,I,T,L,j,se):null,footer:I.footerToolbar?ft(I.footerToolbar,I,T,L,j,se):null}}function ft(I,T,L,j,se,he){let Ee={},ze=[],Be=!1;for(let tt in I){let Lt=et(I[tt],T,L,j,se,he);Ee[tt]=Lt.widgets,ze.push(...Lt.viewsWithButtons),Be=Be||Lt.hasTitle}return{sectionWidgets:Ee,viewsWithButtons:ze,hasTitle:Be}}function et(I,T,L,j,se,he){let Ee="rtl"===T.direction,ze=T.customButtons||{},Be=L.buttonText||{},tt=T.buttonText||{},Mt=L.buttonHints||{},Lt=T.buttonHints||{},Ut=I?I.split(" "):[],gt=[],fn=!1;return{widgets:Ut.map(dn=>dn.split(",").map(Wt=>{if("title"===Wt)return fn=!0,{buttonName:Wt};let En,vn,te,je,$,H;if(En=ze[Wt])te=Z=>{En.click&&En.click.call(Z.target,Z,Z.target)},(je=j.getCustomButtonIconClass(En))||(je=j.getIconClass(Wt,Ee))||($=En.text),H=En.hint||En.text;else if(vn=se[Wt]){gt.push(Wt),te=()=>{he.changeView(Wt)},($=vn.buttonTextOverride)||(je=j.getIconClass(Wt,Ee))||($=vn.buttonTextDefault);let Z=vn.buttonTextOverride||vn.buttonTextDefault;H=(0,d.k)(vn.buttonTitleOverride||vn.buttonTitleDefault||T.viewHint,[Z,Wt],Z)}else if(he[Wt])if(te=()=>{he[Wt]()},($=Be[Wt])||(je=j.getIconClass(Wt,Ee))||($=tt[Wt]),"prevYear"===Wt||"nextYear"===Wt){let Z="prevYear"===Wt?"prev":"next";H=(0,d.k)(Mt[Z]||Lt[Z],[tt.year||"year","year"],tt[Wt])}else H=Z=>(0,d.k)(Mt[Wt]||Lt[Wt],[tt[Z]||Z,Z],tt[Wt]);return{buttonName:Wt,buttonClick:te,buttonIcon:je,buttonText:$,buttonHint:H}})),viewsWithButtons:gt,hasTitle:fn}}class wt{constructor(T,L,j){this.type=T,this.getCurrentData=L,this.dateEnv=j}
1get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(T){return this.getCurrentData().options[T]}}function hn(I,T){let L=(0,d.v)(T.getCurrentData().eventSources);if(1===L.length&&1===I.length&&Array.isArray(L[0]._raw)&&Array.isArray(I[0]))return void T.dispatch({type:"RESET_RAW_EVENTS",sourceId:L[0].sourceId,rawEvents:I[0]});let j=[];for(let se of I){let he=!1;for(let Ee=0;Ee<L.length;Ee+=1)if(L[Ee]._raw===se){L.splice(Ee,1),he=!0;break}he||j.push(se)}for(let se of L)T.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:se.sourceId});for(let se of j)T.calendarApi.addEventSource(se)}const Qn=[Ae({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:I=>Array.isArray(I.events)?I.events:null,fetch(I,T){T({rawEvents:I.eventSource.meta})}}]}),Ae({name:"func-event-source",eventSourceDefs:[{parseMeta:I=>"function"==typeof I.events?I.events:null,fetch(I,T,L){const{dateEnv:j}=I.context;(0,d.u)(I.eventSource.meta.bind(null,(0,d.l)(I.range,j)),he=>T({rawEvents:he}),L)}}]}),Ae({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:d.n,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:I=>!I.url||"json"!==I.format&&I.format?null:{url:I.url,format:"json",method:(I.method||"GET").toUpperCase(),extraParams:I.extraParams,startParam:I.startParam,endParam:I.endParam,timeZoneParam:I.timeZoneParam},fetch(I,T,L){const{meta:j}=I.eventSource,se=function ln(I,T,L){let he,Ee,ze,Be,{dateEnv:j,options:se}=L,tt={};return he=I.startParam,null==he&&(he=se.startParam),Ee=I.endParam,null==Ee&&(Ee=se.endParam),ze=I.timeZoneParam,null==ze&&(ze=se.timeZoneParam),Be="function"==typeof I.extraParams?I.extraParams():I.extraParams||{},Object.assign(tt,Be),tt[he]=j.formatIso(T.start),tt[Ee]=j.formatIso(T.end),"local"!==j.timeZone&&(tt[ze]=j.timeZone),tt}(j,I.range,I.context);(0,d.r)(j.method,j.url,se).then(([he,Ee])=>{T({rawEvents:he,response:Ee})},L)}}]}),Ae({name:"simple-recurring-event",recurringTypes:[{parse(I,T){if(I.daysOfWeek||I.startTime||I.endTime||I.startRecur||I.endRecur){let j,L={daysOfWeek:I.daysOfWeek||null,startTime:I.startTime||null,endTime:I.endTime||null,startRecur:I.startRecur?T.createMarker(I.startRecur):null,endRecur:I.endRecur?T.createMarker(I.endRecur):null,dateEnv:T};return I.duration&&(j=I.duration),!j&&I.startTime&&I.endTime&&(j=(0,d.s)(I.endTime,I.startTime)),{allDayGuess:!I.startTime&&!I.endTime,duration:j,typeData:L}}return null},expand(I,T,L){let j=(0,d.o)(T,{start:I.startRecur,end:I.endRecur});return j?function Nn(I,T,L,j,se){let he=I?(0,d.f)(I):null,Ee=(0,d.q)(se.start),ze=se.end,Be=[];for(T&&(T.milliseconds<0?ze=(0,d.t)(ze,1):T.milliseconds>=864e5&&(Ee=(0,d.t)(Ee,-1)));Ee<ze;){let tt;(!he||he[Ee.getUTCDay()])&&(tt=T?j.add(Ee,T):Ee,Be.push(j.createMarker(L.toDate(tt)))),Ee=(0,d.t)(Ee,1)}return Be}(I.daysOfWeek,I.startTime,I.dateEnv,L,j):[]}}],eventRefiners:{daysOfWeek:d.n,startTime:d.d,endTime:d.d,duration:d.d,startRecur:d.n,endRecur:d.n}}),Ae({name:"change-handler",optionChangeHandlers:{events(I,T){hn([I],T)},eventSources:hn}}),Ae({name:"misc",isLoadingFuncs:[I=>ie(I.eventSources)],propSetHandlers:{dateProfile:function Cn(I,T){T.emitter.trigger("datesSet",Object.assign(Object.assign({},(0,d.l)(I.activeRange,T.dateEnv)),{view:T.viewApi}))},eventStore:function mn(I,T){let{emitter:L}=T;L.hasHandlers("eventsSet")&&L.trigger("eventsSet",(0,d.w)(I,T))}}})];class ii{constructor(T,L){this.runTaskOption=T,this.drainedOption=L,this.queue=[],this.delayedRunner=new d.D(this.drain.bind(this))}request(T,L){this.queue.push(T),this.delayedRunner.request(L)}pause(T){this.delayedRunner.pause(T)}resume(T,L){this.delayedRunner.resume(T,L)}drain(){let{queue:T}=this;for(;T.length;){let j,L=[];for(;j=T.shift();)this.runTask(j),L.push(j);this.drained(L)}}runTask(T){this.runTaskOption&&this.runTaskOption(T)}drained(T){this.drainedOption&&this.drainedOption(T)}}
1function pn(I,T,L){let j;return j=/^(year|month)$/.test(I.currentRangeUnit)?I.currentRange:I.activeRange,L.formatRange(j.start,j.end,(0,d.x)(T.titleFormat||function Pn(I){let{currentRangeUnit:T}=I;if("year"===T)return{year:"numeric"};if("month"===T)return{year:"numeric",month:"long"};let L=(0,d.y)(I.currentRange.start,I.currentRange.end);return null!==L&&L>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(I)),{isEndExclusive:I.isRangeAllDay,defaultSeparator:T.titleRangeSeparator})}class Jn{constructor(){this.resetListeners=new Set}handleInput(T,L){const j=this.dateEnv;if(T!==j&&("function"==typeof L?this.nowFn=L:j||(this.nowAnchorDate=T.toDate(L?T.createMarker(L):T.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=T,j))for(const se of this.resetListeners.values())se()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(T){this.resetListeners.add(T)}removeResetListener(T){this.resetListeners.delete(T)}}class Rn{constructor(T){this.computeCurrentViewData=(0,d.z)(this._computeCurrentViewData),this.organizeRawLocales=(0,d.z)(de),this.buildLocale=(0,d.z)(y),this.buildPluginHooks=function ge(){let L,I=[],T=[];return(j,se)=>((!L||!(0,d.i)(j,I)||!(0,d.i)(se,T))&&(L=function Te(I,T){let L={},j={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function se(he){for(let Ee of he){const ze=Ee.name,Be=L[ze];void 0===Be?(L[ze]=Ee.id,se(Ee.deps),j=Ce(j,Ee)):Be!==Ee.id&&console.warn(`Duplicate plugin '${ze}'`)}}return I&&se(I),se(T),j}(j,se)),I=j,T=se,L)}(),this.buildDateEnv=(0,d.z)(oi),this.buildTheme=(0,d.z)(ri),this.parseToolbars=(0,d.z)(ct),this.buildViewSpecs=(0,d.z)(ot),this.buildDateProfileGenerator=(0,d.A)(Kn),this.buildViewApi=(0,d.z)(Zn),this.buildViewUiProps=(0,d.A)(rn),this.buildEventUiBySource=(0,d.z)(si,d.E),this.buildEventUiBases=(0,d.z)(jn),this.parseContextBusinessHours=(0,d.A)(Ci),this.buildTitle=(0,d.z)(pn),this.nowManager=new Jn,this.emitter=new d.F,this.actionRunner=new ii(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=Ut=>{this.actionRunner.request(Ut)},this.props=T,this.actionRunner.pause(),this.nowManager=new Jn;let L={},j=this.computeOptionsData(T.optionOverrides,L,T.calendarApi),se=j.calendarOptions.initialView||j.pluginHooks.initialView,he=this.computeCurrentViewData(se,j,T.optionOverrides,L);T.calendarApi.currentDataManager=this,this.emitter.setThisContext(T.calendarApi),this.emitter.setOptions(he.options);let Ee={nowManager:this.nowManager,dateEnv:j.dateEnv,options:j.calendarOptions,pluginHooks:j.pluginHooks,calendarApi:T.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},ze=function dt(I,T,L){let j=I.initialDate;return null!=j?T.createMarker(j):L.getDateMarker()}(j.calendarOptions,j.dateEnv,this.nowManager),Be=he.dateProfileGenerator.build(ze);(0,d.G)(Be.activeRange,ze)||(ze=Be.currentRange.start);for(let Ut of j.pluginHooks.contextInit)Ut(Ee);let tt=function Je(I,T,L){let j=T?T.activeRange:null;return Ye({},function w(I,T){let L=(0,d.j)(T),j=[].concat(I.eventSources||[]),se=[];I.initialEvents&&j.unshift(I.initialEvents),I.events&&j.unshift(I.events);for(let he of j){let Ee=(0,d.p)(he,T,L);Ee&&se.push(Ee)}return se}(I,L),j,L)}(j.calendarOptions,Be,Ee),Mt={dynamicOptionOverrides:L,currentViewType:se,currentDate:ze,dateProfile:Be,businessHours:this.parseContextBusinessHours(Ee),eventSources:tt,eventUiBases:{},eventStore:(0,d.H)(),renderableEventStore:(0,d.H)(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(Ee).selectionConfig},Lt=Object.assign(Object.assign({},Ee),Mt);for(let Ut of j.pluginHooks.reducers)Object.assign(Mt,Ut(null,null,Lt));Hn(Mt,Ee)&&this.emitter.trigger("loading",!0),this.state=Mt,this.updateData(),this.actionRunner.resume()}resetOptions(T,L){let{props:j}=this;void 0===L?j.optionOverrides=T:(j.optionOverrides=Object.assign(Object.assign({},j.optionOverrides||{}),T),this.optionsForRefining.push(...L)),(void 0===L||L.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(T){let{props:L,state:j,emitter:se}=this,he=function Ct(I,T){return"SET_OPTION"===T.type?Object.assign(Object.assign({},I),{[T.optionName]:T.rawOptionValue}):I}(j.dynamicOptionOverrides,T),Ee=this.computeOptionsData(L.optionOverrides,he,L.calendarApi),ze=function Qe(I,T){return"CHANGE_VIEW_TYPE"===T.type&&(I=T.viewType),I}(j.currentViewType,T),Be=this.computeCurrentViewData(ze,Ee,L.optionOverrides,he);L.calendarApi.currentDataManager=this,se.setThisContext(L.calendarApi),se.setOptions(Be.options);let tt={nowManager:this.nowManager,dateEnv:Ee.dateEnv,options:Ee.calendarOptions,pluginHooks:Ee.pluginHooks,calendarApi:L.calendarApi,dispatch:this.dispatch,emitter:se,getCurrentData:this.getCurrentData},{currentDate:Mt,dateProfile:Lt}=j;this.data&&this.data.dateProfileGenerator!==Be.dateProfileGenerator&&(Lt=Be.dateProfileGenerator.build(Mt)),Mt=function We(I,T){return"CHANGE_DATE"===T.type?T.dateMarker:I}(Mt,T),Lt=function en(I,T,L,j){let se;switch(T.type){case"CHANGE_VIEW_TYPE":return j.build(T.dateMarker||L);case"CHANGE_DATE":return j.build(T.dateMarker);case"PREV":if(se=j.buildPrev(I,L),se.isValid)return se;break;case"NEXT":if(se=j.buildNext(I,L),se.isValid)return se}return I}(Lt,T,Mt,Be.dateProfileGenerator),("PREV"===T.type||"NEXT"===T.type||!(0,d.G)(Lt.currentRange,Mt))&&(Mt=Lt.currentRange.start);let Ut=function zt(I,T,L,j){let se=L?L.activeRange:null;switch(T.type){case"ADD_EVENT_SOURCES":return Ye(I,T.sources,se,j);
vendor: 6,678 bytes, line 1
1case"REMOVE_EVENT_SOURCE":return function re(I,T){return(0,d.h)(I,L=>L.sourceId!==T)}(I,T.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return L?it(I,se,j):I;case"FETCH_EVENT_SOURCES":return Ue(I,T.sourceIds?(0,d.f)(T.sourceIds):De(I,j),se,T.isRefetch||!1,j);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function Jt(I,T,L,j){let se=I[T];return se&&L===se.latestFetchId?Object.assign(Object.assign({},I),{[T]:Object.assign(Object.assign({},se),{isFetching:!1,fetchRange:j})}):I}(I,T.sourceId,T.fetchId,T.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return I}}(j.eventSources,T,Lt,tt),gt=(0,d.I)(j.eventStore,T,Ut,Lt,tt),zn=ie(Ut)&&!Be.options.progressiveEventRendering&&j.renderableEventStore||gt,{eventUiSingleBase:dn,selectionConfig:Wt}=this.buildViewUiProps(tt),En=this.buildEventUiBySource(Ut),te={dynamicOptionOverrides:he,currentViewType:ze,currentDate:Mt,dateProfile:Lt,eventSources:Ut,eventStore:gt,renderableEventStore:zn,selectionConfig:Wt,eventUiBases:this.buildEventUiBases(zn.defs,dn,En),businessHours:this.parseContextBusinessHours(tt),dateSelection:J(j.dateSelection,T),eventSelection:ce(j.eventSelection,T),eventDrag:pe(j.eventDrag,T),eventResize:Ie(j.eventResize,T)},je=Object.assign(Object.assign({},tt),te);for(let Z of Ee.pluginHooks.reducers)Object.assign(te,Z(j,T,je));let $=Hn(j,tt),H=Hn(te,tt);!$&&H?se.trigger("loading",!0):$&&!H&&se.trigger("loading",!1),this.state=te,L.onAction&&L.onAction(T)}updateData(){let{props:T,state:L}=this,j=this.data,se=this.computeOptionsData(T.optionOverrides,L.dynamicOptionOverrides,T.calendarApi),he=this.computeCurrentViewData(L.currentViewType,se,T.optionOverrides,L.dynamicOptionOverrides),Ee=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(L.dateProfile,he.options,se.dateEnv),calendarApi:T.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},se),he),L),ze=se.pluginHooks.optionChangeHandlers,Be=j&&j.calendarOptions,tt=se.calendarOptions;if(Be&&Be!==tt){Be.timeZone!==tt.timeZone&&(L.eventSources=Ee.eventSources=function _t(I,T,L){let j=T?T.activeRange:null;return Ue(I,De(I,L),j,!0,L)}(Ee.eventSources,L.dateProfile,Ee),L.eventStore=Ee.eventStore=(0,d.J)(Ee.eventStore,j.dateEnv,Ee.dateEnv),L.renderableEventStore=Ee.renderableEventStore=(0,d.J)(Ee.renderableEventStore,j.dateEnv,Ee.dateEnv));for(let Mt in ze)(-1!==this.optionsForHandling.indexOf(Mt)||Be[Mt]!==tt[Mt])&&ze[Mt](tt[Mt],Ee)}this.optionsForHandling=[],T.onData&&T.onData(Ee)}computeOptionsData(T,L,j){if(!this.optionsForRefining.length&&T===this.stableOptionOverrides&&L===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:se,pluginHooks:he,localeDefaults:Ee,availableLocaleData:ze,extra:Be}=this.processRawCalendarOptions(T,L);F(Be);let tt=this.buildDateEnv(se.timeZone,se.locale,se.weekNumberCalculation,se.firstDay,se.weekText,he,ze,se.defaultRangeSeparator),Mt=this.buildViewSpecs(he.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,Ee),Lt=this.buildTheme(se,he),Ut=this.parseToolbars(se,this.stableOptionOverrides,Lt,Mt,j);return this.stableCalendarOptionsData={calendarOptions:se,pluginHooks:he,dateEnv:tt,viewSpecs:Mt,theme:Lt,toolbarConfig:Ut,localeDefaults:Ee,availableRawLocales:ze.map}}processRawCalendarOptions(T,L){let{locales:j,locale:se}=(0,d.K)([d.e,T,L]),he=this.organizeRawLocales(j),ze=this.buildLocale(se||he.defaultCode,he.map).options,Be=this.buildPluginHooks(T.plugins||[],Qn),tt=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d.L),d.M),d.N),Be.listenerRefiners),Be.optionRefiners),Mt={},Lt=(0,d.K)([d.e,ze,T,L]),Ut={},gt=this.currentCalendarOptionsInput,fn=this.currentCalendarOptionsRefined,zn=!1;for(let dn in Lt)-1===this.optionsForRefining.indexOf(dn)&&(Lt[dn]===gt[dn]||d.O[dn]&&dn in gt&&d.O[dn](gt[dn],Lt[dn]))?Ut[dn]=fn[dn]:tt[dn]?(Ut[dn]=tt[dn](Lt[dn]),zn=!0):Mt[dn]=gt[dn];return zn&&(this.currentCalendarOptionsInput=Lt,this.currentCalendarOptionsRefined=Ut,this.stableOptionOverrides=T,this.stableDynamicOptionOverrides=L),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:Be,availableLocaleData:he,localeDefaults:ze,extra:Mt}}_computeCurrentViewData(T,L,j,se){let he=L.viewSpecs[T];if(!he)throw new Error(`viewType "${T}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:Ee,extra:ze}=this.processRawViewOptions(he,L.pluginHooks,L.localeDefaults,j,se);return F(ze),this.nowManager.handleInput(L.dateEnv,Ee.now),{viewSpec:he,options:Ee,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:he.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:he.duration,durationUnit:he.durationUnit,usesMinMaxTime:he.optionDefaults.usesMinMaxTime,dateEnv:L.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:Ee.slotMinTime,slotMaxTime:Ee.slotMaxTime,showNonCurrentDates:Ee.showNonCurrentDates,dayCount:Ee.dayCount,dateAlignment:Ee.dateAlignment,dateIncrement:Ee.dateIncrement,hiddenDays:Ee.hiddenDays,weekends:Ee.weekends,validRangeInput:Ee.validRange,visibleRangeInput:Ee.visibleRange,fixedWeekCount:Ee.fixedWeekCount}),viewApi:this.buildViewApi(T,this.getCurrentData,L.dateEnv)}}processRawViewOptions(T,L,j,se,he){let Ee=(0,d.K)([d.e,T.optionDefaults,j,se,T.optionOverrides,he]),ze=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d.L),d.M),d.N),d.P),L.listenerRefiners),L.optionRefiners),Be={},tt=this.currentViewOptionsInput,Mt=this.currentViewOptionsRefined,Lt=!1,Ut={};for(let gt in Ee)Ee[gt]===tt[gt]||d.O[gt]&&d.O[gt](Ee[gt],tt[gt])?Be[gt]=Mt[gt]:(Ee[gt]===this.currentCalendarOptionsInput[gt]||d.O[gt]&&d.O[gt](Ee[gt],this.currentCalendarOptionsInput[gt])?gt in this.currentCalendarOptionsRefined&&(Be[gt]=this.currentCalendarOptionsRefined[gt]):ze[gt]?Be[gt]=ze[gt](Ee[gt]):Ut[gt]=Ee[gt],Lt=!0);return Lt&&(this.currentViewOptionsInput=Ee,this.currentViewOptionsRefined=Be),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:Ut}}}function oi(I,T,L,j,se,he,Ee,ze){let Be=y(T||Ee.defaultCode,Ee.map);return new d.Q({calendarSystem:"gregory",timeZone:I,namedTimeZoneImpl:he.namedTimeZonedImpl,locale:Be,weekNumberCalculation:L,firstDay:j,weekText:se,cmdFormatter:he.cmdFormatter,defaultSeparator:ze})}function ri(I,T){return new(T.themeClasses[I.themeSystem]||xe)(I)}function Kn(I){return new(I.dateProfileGeneratorClass||d.R)(I)}
1function Zn(I,T,L){return new wt(I,T,L)}function si(I){return(0,d.a)(I,T=>T.ui)}function jn(I,T,L){let j={"":T};for(let se in I){let he=I[se];he.sourceId&&L[he.sourceId]&&(j[se]=L[he.sourceId])}return j}function rn(I){let{options:T}=I;return{eventUiSingleBase:(0,d.S)({display:T.eventDisplay,editable:T.editable,startEditable:T.eventStartEditable,durationEditable:T.eventDurationEditable,constraint:T.eventConstraint,overlap:"boolean"==typeof T.eventOverlap?T.eventOverlap:void 0,allow:T.eventAllow,backgroundColor:T.eventBackgroundColor,borderColor:T.eventBorderColor,textColor:T.eventTextColor,color:T.eventColor},I),selectionConfig:(0,d.S)({constraint:T.selectConstraint,overlap:"boolean"==typeof T.selectOverlap?T.selectOverlap:void 0,allow:T.selectAllow},I)}}function Hn(I,T){for(let L of T.pluginHooks.isLoadingFuncs)if(L(I))return!0;return!1}function Ci(I){return(0,d.U)(I.options.businessHours,I)}function F(I,T){for(let L in I)console.warn(`Unknown option '${L}'`+(T?` for view '${T}'`:""))}class K extends d.B{render(){let T=this.props.widgetGroups.map(L=>this.renderWidgetGroup(L));return(0,R.n)("div",{className:"fc-toolbar-chunk"},...T)}renderWidgetGroup(T){let{props:L}=this,{theme:j}=this.context,se=[],he=!0;for(let Ee of T){let{buttonName:ze,buttonClick:Be,buttonText:tt,buttonIcon:Mt,buttonHint:Lt}=Ee;if("title"===ze)he=!1,se.push((0,R.n)("h2",{className:"fc-toolbar-title",id:L.titleId},L.title));else{let Ut=ze===L.activeButton,gt=!L.isTodayEnabled&&"today"===ze||!L.isPrevEnabled&&"prev"===ze||!L.isNextEnabled&&"next"===ze,fn=[`fc-${ze}-button`,j.getClass("button")];Ut&&fn.push(j.getClass("buttonActive")),se.push((0,R.n)("button",{type:"button",title:"function"==typeof Lt?Lt(L.navUnit):Lt,disabled:gt,"aria-pressed":Ut,className:fn.join(" "),onClick:Be},tt||(Mt?(0,R.n)("span",{className:Mt,role:"img"}):"")))}}if(se.length>1){let Ee=he&&j.getClass("buttonGroup")||"";return(0,R.n)("div",{className:Ee},...se)}return se[0]}}class Y extends d.B{render(){let se,he,{model:T,extraClassName:L}=this.props,j=!1,Ee=T.sectionWidgets,ze=Ee.center;return Ee.left?(j=!0,se=Ee.left):se=Ee.start,Ee.right?(j=!0,he=Ee.right):he=Ee.end,(0,R.n)("div",{className:[L||"","fc-toolbar",j?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",se||[]),this.renderSection("center",ze||[]),this.renderSection("end",he||[]))}renderSection(T,L){let{props:j}=this;return(0,R.n)(K,{key:T,widgetGroups:L,title:j.title,navUnit:j.navUnit,activeButton:j.activeButton,isTodayEnabled:j.isTodayEnabled,isPrevEnabled:j.isPrevEnabled,isNextEnabled:j.isNextEnabled,titleId:j.titleId})}}class be extends d.B{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=T=>{this.el=T,(0,d.W)(this.props.elRef,T),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:T,state:L}=this,{aspectRatio:j}=T,he="",Ee="";return j?null!==L.availableWidth?he=L.availableWidth/j:Ee=1/j*100+"%":he=T.height||"",(0,R.n)("div",{"aria-labelledby":T.labeledById,ref:this.handleEl,className:["fc-view-harness",j||T.liquid||T.height?"fc-view-harness-active":"fc-view-harness-passive"].join(" "),style:{height:he,paddingBottom:Ee}},T.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class At extends d.X{constructor(T){super(T),this.handleSegClick=(L,j)=>{let{component:se}=this,{context:he}=se,Ee=(0,d.Y)(j);if(Ee&&se.isValidSegDownEl(L.target)){let ze=(0,d.Z)(L.target,".fc-event-forced-url"),Be=ze?ze.querySelector("a[href]").href:"";he.emitter.trigger("eventClick",{el:j,event:new d._(se.context,Ee.eventRange.def,Ee.eventRange.instance),jsEvent:L,view:he.viewApi}),Be&&!L.defaultPrevented&&(window.location.href=Be)}},this.destroy=(0,d.$)(T.el,"click",".fc-event",this.handleSegClick)}}class Et extends d.X{constructor(T){super(T),this.handleEventElRemove=L=>{L===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(L,j)=>{(0,d.Y)(j)&&(this.currentSegEl=j,this.triggerEvent("eventMouseEnter",L,j))},this.handleSegLeave=(L,j)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",L,j))},this.removeHoverListeners=(0,d.a0)(T.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(T,L,j){let{component:se}=this,{context:he}=se,Ee=(0,d.Y)(j);(!L||se.isValidSegDownEl(L.target))&&he.emitter.trigger(T,{el:j,event:new d._(he,Ee.eventRange.def,Ee.eventRange.instance),jsEvent:L,view:he.viewApi})}}class Xt extends d.a1{constructor(){super(...arguments),this.buildViewContext=(0,d.z)(d.a2),this.buildViewPropTransformers=(0,d.z)(kn),this.buildToolbarProps=(0,d.z)(Bt),this.headerRef=(0,R._3)(),this.footerRef=(0,R._3)(),this.interactionsStore={},this.state={viewLabelId:(0,d.a3)()},this.registerInteractiveComponent=(T,L)=>{let j=(0,d.a4)(T,L),Ee=[At,Et].concat(this.props.pluginHooks.componentInteractions).map(ze=>new ze(j));this.interactionsStore[T.uid]=Ee,d.a5[T.uid]=j},this.unregisterInteractiveComponent=T=>{let L=this.interactionsStore[T.uid];if(L){for(let j of L)j.destroy();delete this.interactionsStore[T.uid]}delete d.a5[T.uid]},this.resizeRunner=new d.D(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=T=>{let{options:L}=this.props;L.handleWindowResize&&T.target===window&&this.resizeRunner.request(L.windowResizeDelay)}}render(){let Ee,{props:T}=this,{toolbarConfig:L,options:j}=T,se=!1,he="";
1T.isHeightAuto||T.forPrint?he="":null!=j.height?se=!0:null!=j.contentHeight?he=j.contentHeight:Ee=Math.max(j.aspectRatio,.5);let ze=this.buildViewContext(T.viewSpec,T.viewApi,T.options,T.dateProfileGenerator,T.dateEnv,T.nowManager,T.theme,T.pluginHooks,T.dispatch,T.getCurrentData,T.emitter,T.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),Be=L.header&&L.header.hasTitle?this.state.viewLabelId:void 0;return(0,R.n)(d.V.Provider,{value:ze},(0,R.n)(d.a6,{unit:"day"},tt=>{let Mt=this.buildToolbarProps(T.viewSpec,T.dateProfile,T.dateProfileGenerator,T.currentDate,tt,T.viewTitle);return(0,R.n)(R.FK,null,L.header&&(0,R.n)(Y,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:L.header,titleId:Be},Mt)),(0,R.n)(be,{liquid:se,height:he,aspectRatio:Ee,labeledById:Be},this.renderView(T),this.buildAppendContent()),L.footer&&(0,R.n)(Y,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:L.footer,titleId:""},Mt)))}))}componentDidMount(){let{props:T}=this;this.calendarInteractions=T.pluginHooks.calendarInteractions.map(j=>new j(T)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:L}=T.pluginHooks;for(let j in L)L[j](T[j],T)}componentDidUpdate(T){let{props:L}=this,{propSetHandlers:j}=L.pluginHooks;for(let se in j)L[se]!==T[se]&&j[se](L[se],L)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let T of this.calendarInteractions)T.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:T}=this,L=T.pluginHooks.viewContainerAppends.map(j=>j(T));return(0,R.n)(R.FK,{},...L)}renderView(T){let{pluginHooks:L}=T,{viewSpec:j}=T,se={dateProfile:T.dateProfile,businessHours:T.businessHours,eventStore:T.renderableEventStore,eventUiBases:T.eventUiBases,dateSelection:T.dateSelection,eventSelection:T.eventSelection,eventDrag:T.eventDrag,eventResize:T.eventResize,isHeightAuto:T.isHeightAuto,forPrint:T.forPrint},he=this.buildViewPropTransformers(L.viewPropsTransformers);for(let ze of he)Object.assign(se,ze.transform(se,T));return(0,R.n)(j.component,Object.assign({},se))}}function Bt(I,T,L,j,se,he){let Ee=L.build(se,void 0,!1),ze=L.buildPrev(T,j,!1),Be=L.buildNext(T,j,!1);return{title:he,activeButton:I.type,navUnit:I.singleUnit,isTodayEnabled:Ee.isValid&&!(0,d.G)(T.currentRange,se),isPrevEnabled:ze.isValid,isNextEnabled:Be.isValid}}function kn(I){return I.map(T=>new T)}class Tn extends d.a7{constructor(T,L={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=j=>{switch(j.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=j=>
1{this.currentData=j,this.renderRunner.request(j.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:j}=this;(0,d.a8)(()=>{(0,R.XX)((0,R.n)(d.a9,{options:j.calendarOptions,theme:j.theme,emitter:j.emitter},(se,he,Ee,ze)=>(this.setClassNames(se),this.setHeight(he),(0,R.n)(d.aa.Provider,{value:this.customContentRenderId},(0,R.n)(Xt,Object.assign({isHeightAuto:Ee,forPrint:ze},j))))),this.el)})}else this.isRendered&&(this.isRendered=!1,(0,R.XX)(null,this.el),this.setClassNames([]),this.setHeight(""))},(0,d.ab)(T),this.el=T,this.renderRunner=new d.D(this.handleRenderRequest),new Rn({optionOverrides:L,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let T=this.isRendering;T?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),T&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){(0,d.a8)(()=>{super.updateSize()})}batchRendering(T){this.renderRunner.pause("batchRendering"),T(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(T,L){this.currentDataManager.resetOptions(T,L)}setClassNames(T){if(!(0,d.i)(T,this.currentClassNames)){let{classList:L}=this.el;
1for(let j of this.currentClassNames)L.remove(j);for(let j of T)L.add(j);this.currentClassNames=T}}setHeight(T){(0,d.ac)(this.el,"height",T)}}},6681:(Nt,ne,g)=>{"use strict";g.d(ne,{$:()=>Qe,A:()=>T,B:()=>Ht,C:()=>yn,D:()=>ge,E:()=>_n,F:()=>eo,G:()=>pi,H:()=>_i,I:()=>yo,J:()=>xo,K:()=>Ge,L:()=>Tt,M:()=>me,N:()=>S,O:()=>M,P:()=>$e,Q:()=>X,R:()=>Ri,S:()=>Vi,T:()=>ue,U:()=>Uo,V:()=>bt,W:()=>bn,X:()=>f,Y:()=>Wo,Z:()=>Fe,_:()=>Mn,a:()=>jt,a0:()=>We,a1:()=>Kt,a2:()=>lt,a3:()=>Ke,a4:()=>s,a5:()=>_,a6:()=>E,a7:()=>h,a8:()=>Ve,a9:()=>cr,aC:()=>W,aD:()=>V,aE:()=>le,aF:()=>Pe,aG:()=>Xe,aM:()=>Ce,aN:()=>vt,aP:()=>l,aT:()=>Yi,aW:()=>st,a_:()=>sn,aa:()=>It,ab:()=>e,ac:()=>Pt,ap:()=>re,aq:()=>it,ar:()=>ke,as:()=>Ue,at:()=>ce,au:()=>Ye,av:()=>ie,ay:()=>Ii,b:()=>un,b0:()=>Ct,b1:()=>Or,b3:()=>hr,b4:()=>Nr,b7:()=>ni,b8:()=>Rr,b9:()=>fr,bA:()=>Cr,bB:()=>Gr,bC:()=>yr,bD:()=>mr,bE:()=>c,bF:()=>is,bG:()=>os,bI:()=>cs,bM:()=>us,bN:()=>Bo,bO:()=>lo,bP:()=>qo,bQ:()=>er,bR:()=>tr,bS:()=>co,bT:()=>Es,bU:()=>fs,bV:()=>io,bX:()=>Cs,bY:()=>ps,bZ:()=>Qr,ba:()=>vr,bb:()=>Dr,bc:()=>Sr,bd:()=>or,be:()=>Pn,bf:()=>ii,bg:()=>Jn,bj:()=>Rn,bm:()=>In,bn:()=>pt,bq:()=>Nn,br:()=>$n,bs:()=>gi,bt:()=>ei,bu:()=>gn,bv:()=>ci,by:()=>br,bz:()=>pr,c:()=>hn,c8:()=>ys,c9:()=>Vs,ca:()=>Ls,cd:()=>kr,cg:()=>Jr,ch:()=>Gs,ci:()=>Kr,cj:()=>Zr,ck:()=>wr,cl:()=>Us,cm:()=>ws,cn:()=>js,co:()=>Bs,cp:()=>ts,cq:()=>wi,cr:()=>to,ct:()=>C,cv:()=>Zs,d:()=>et,e:()=>P,f:()=>Vt,g:()=>_t,h:()=>Zt,i:()=>mn,j:()=>Qi,k:()=>J,l:()=>sr,m:()=>kt,n:()=>q,o:()=>An,p:()=>qi,q:()=>rn,r:()=>_r,s:()=>yt,t:()=>pn,u:()=>lr,v:()=>t,w:()=>xi,x:()=>Re,y:()=>jn,z:()=>I});var d=g(22467),R=g(72912);const A=[],x=new Map;function C(i){A.push(i),x.forEach(n=>{a(n,i)})}function e(i){i.isConnected&&i.getRootNode&&de(i.getRootNode())}function de(i){let n=x.get(i);if(!n||!n.isConnected){if(n=i.querySelector("style[data-fullcalendar]"),!n){n=document.createElement("style"),n.setAttribute("data-fullcalendar","");const o=function O(){return void 0===U&&(U=function Ae(){const i=document.querySelector('meta[name="csp-nonce"]');if(i&&i.hasAttribute("content"))return i.getAttribute("content");const n=document.querySelector("script[nonce]");return n&&n.nonce||""}()),U}();o&&(n.nonce=o);const r=i===document?document.head:i,u=i===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(n,u)}x.set(i,n),function y(i){for(const n of A)a(i,n)}(n)}}function a(i,n){const{sheet:o}=i,r=o.cssRules.length;n.split("}").forEach((u,p)=>{(u=u.trim())&&o.insertRule(u+"}",r+p)})}let U;typeof document<"u"&&de(document),C(
vendor: 14,301 bytes, line 1
1':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}'
vendor: 25,525 bytes, line 1
1);class ge{constructor(n){this.drainedOption=n,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(n){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==n?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),n))}pause(n=""){let{pauseDepths:o}=this;o[n]=(o[n]||0)+1,this.clearTimeout()}resume(n="",o){let{pauseDepths:r}=this;n in r&&(o?delete r[n]:(r[n]-=1,r[n]<=0&&delete r[n]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function Ce(i){i.parentNode&&i.parentNode.removeChild(i)}function Fe(i,n){if(i.closest)return i.closest(n);if(!document.documentElement.contains(i))return null;do{if(xe(i,n))return i;i=i.parentElement||i.parentNode}while(null!==i&&1===i.nodeType);return null}function xe(i,n){return(i.matches||i.matchesSelector||i.msMatchesSelector).call(i,n)}const nt=/(top|left|right|bottom|width|height)$/i;function vt(i,n){for(let o in n)Pt(i,o,n[o])}function Pt(i,n,o){i.style[n]=null==o?"":"number"==typeof o&&nt.test(n)?`${o}px`:o}function l(i){var n,o;return null!==(o=null===(n=i.composedPath)||void 0===n?void 0:n.call(i)[0])&&void 0!==o?o:i.target}let ot=0;function Ke(){return ot+=1,"fc-dom-"+ot}function ve(i){i.preventDefault()}function Qe(i,n,o,r){let u=function He(i,n){return o=>{let r=Fe(o.target,i);r&&n.call(r,o,r)}}(o,r);return i.addEventListener(n,u),()=>{i.removeEventListener(n,u)}}function We(i,n,o,r){let u;return Qe(i,"mouseover",n,(p,N)=>{if(N!==u){u=N,o(p,N);let z=ee=>{u=null,r(ee,N),N.removeEventListener("mouseleave",z)};N.addEventListener("mouseleave",z)}})}const dt=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ct(i,n){let o=r=>{n(r),dt.forEach(u=>{i.removeEventListener(u,o)})};dt.forEach(r=>{i.addEventListener(r,o)})}function en(i){return Object.assign({onClick:i},Je(i))}function Je(i){return{tabIndex:0,onKeyDown(n){("Enter"===n.key||" "===n.key)&&(i(n),n.preventDefault())}}}let zt=0;function _t(){return zt+=1,String(zt)}function ie(){document.body.classList.add("fc-not-allowed")}function Ye(){document.body.classList.remove("fc-not-allowed")}function re(i){i.style.userSelect="none",i.style.webkitUserSelect="none",i.addEventListener("selectstart",ve)}function it(i){i.style.userSelect="",i.style.webkitUserSelect="",i.removeEventListener("selectstart",ve)}function ke(i){i.addEventListener("contextmenu",ve)}function Ue(i){i.removeEventListener("contextmenu",ve)}function De(i,n,o){return o.func?o.func(i,n):function w(i,n){return i||n?null==n?-1:null==i?1:"string"==typeof i||"string"==typeof n?String(i).localeCompare(String(n)):i-n:0}(i[o.field],n[o.field])*(o.order||1)}function b(i,n){let o=String(i);return"000".substr(0,n-o.length)+o}function J(i,n,o){return"function"==typeof i?i(...n):"string"==typeof i?n.reduce((r,u,p)=>r.replace("$"+p,u||""),i):o}function ce(i,n){return i-n}function pe(i){return i%1==0}function Ie(i){let n=i.querySelector(".fc-scrollgrid-shrink-frame"),o=i.querySelector(".fc-scrollgrid-shrink-cushion");if(!n)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!o)throw new Error("needs fc-scrollgrid-shrink-cushion className");return i.getBoundingClientRect().width-n.getBoundingClientRect().width+o.getBoundingClientRect().width}const ct=["years","months","days","milliseconds"],ft=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function et(i,n){return"string"==typeof i?function wt(i){let n=ft.exec(i);if(n){let o=n[1]?-1:1;return{years:0,months:0,days:o*(n[2]?parseInt(n[2],10):0),milliseconds:o*(60*(n[3]?parseInt(n[3],10):0)*60*1e3+60*(n[4]?parseInt(n[4],10):0)*1e3+1e3*(n[5]?parseInt(n[5],10):0)+(n[6]?parseInt(n[6],10):0))}}return null}(i):"object"==typeof i&&i?Ne(i):"number"==typeof i?Ne({[n||"milliseconds"]:i}):null}function Ne(i){let n={years:i.years||i.year||0,months:i.months||i.month||0,days:i.days||i.day||0,milliseconds:60*(i.hours||i.hour||0)*60*1e3+60*(i.minutes||i.minute||0)*1e3+1e3*(i.seconds||i.second||0)+(i.milliseconds||i.millisecond||i.ms||0)},o=i.weeks||i.week;return o&&(n.days+=7*o,n.specifiedWeeks=!0),n}function pt(i,n){return{years:i.years+n.years,months:i.months+n.months,days:i.days+n.days,milliseconds:i.milliseconds+n.milliseconds}}function yt(i,n){return{years:i.years-n.years,months:i.months-n.months,days:i.days-n.days,milliseconds:i.milliseconds-n.milliseconds}}function In(i,n){return{years:i.years*n,months:i.months*n,days:i.days*n,milliseconds:i.milliseconds*n}}function on(i){return Nn(i)/864e5}function Nn(i){return 31536e6*i.years+2592e6*i.months+864e5*i.days+i.milliseconds}function $n(i,n){let o=null;for(let r=0;r<ct.length;r+=1){let u=ct[r];if(n[u]){let p=i[u]/n[u];if(!pe(p)||null!==o&&o!==p)return null;o=p}else if(i[u])return null}return o}function hn(i){let n=i.milliseconds;if(n){if(n%1e3!=0)return{unit:"millisecond",value:n};if(n%6e4!=0)return{unit:"second",value:n/1e3};if(n%36e5!=0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return i.days?i.specifiedWeeks&&i.days%7==0?{unit:"week",value:i.days/7}:{unit:"day",value:i.days}:i.months?{unit:"month",value:i.months}:i.years?{unit:"year",value:i.years}:{unit:"millisecond",value:0}}function mn(i,n,o){if(i===n)return!0;let u,r=i.length;if(r!==n.length)return!1;for(u=0;u<r;u+=1)if(!(o?o(i[u],n[u]):i[u]===n[u]))return!1;return!0}const Qn=["sun","mon","tue","wed","thu","fri","sat"];function ii(i,n){let o=Xt(i);return o[2]+=7*n,Bt(o)}function pn(i,n){let o=Xt(i);return o[2]+=n,Bt(o)}function Pn(i,n){let o=Xt(i);return o[6]+=n,Bt(o)}function Jn(i,n){return Rn(i,n)/7}function Rn(i,n){return(n.valueOf()-i.valueOf())/864e5}function jn(i,n){return Tn(i)===Tn(n)?Math.round(Rn(i,n)):null}function rn(i){return Bt([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()])}function Y(i,n,o,r){let u=Bt([n,0,1+be(n,o,r)]),p=rn(i),N=Math.round(Rn(u,p));return Math.floor(N/7)+1}function be(i,n,o){let r=7+n-o;return-(7+Bt([i,0,r]).getUTCDay()-n)%7+r-1}function At(i){return[i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()]}function Et(i){return new Date(i[0],i[1]||0,null==i[2]?1:i[2],i[3]||0,i[4]||0,i[5]||0)}function Xt(i){return[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()]}function Bt(i){return 1===i.length&&(i=i.concat([0])),new Date(Date.UTC(...i))}function kn(i){return!isNaN(i.valueOf())}function Tn(i){return 1e3*i.getUTCHours()*60*60+1e3*i.getUTCMinutes()*60+1e3*i.getUTCSeconds()+i.getUTCMilliseconds()}function gn(i,n,o=!1){let r=i.toISOString();return r=r.replace(".000",""),o&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==n?r=r.replace("Z",""):0!==n&&(r=r.replace("Z",di(n,!0)))),r}function ei(i){return i.toISOString().replace(/T.*$/,"")}function ci(i){return i.toISOString().match(/^\d{4}-\d{2}/)[0]}function gi(i){return b(i.getUTCHours(),2)+":"+b(i.getUTCMinutes(),2)+":"+b(i.getUTCSeconds(),2)}function di(i,n=!1){let o=i<0?"-":"+",r=Math.abs(i),u=Math.floor(r/60),p=Math.round(r%60);return n?`${o+b(u,2)}:${b(p,2)}`:`GMT${o}${u}${p?`:${b(p,2)}`:""}`}function I(i,n,o){let r,u;return function(...p){if(r){if(!mn(r,p)){o&&o(u);let N=i.apply(this,p);(!n||!n(N,u))&&(u=N)}}else u=i.apply(this,p);return r=p,u}}function T(i,n,o){let r,u;return p=>{if(r){if(!_n(r,p)){o&&o(u);let N=i.call(this,p);(!n||!n(N,u))&&(u=N)}}else u=i.call(this,p);return r=p,u}}const se={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},he={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Ee=/\s*([ap])\.?m\.?/i,ze=/,/g,Be=/\s+/g,tt=/\u200e/g,Mt=/UTC|GMT/;class Lt{constructor(n){let o={},r={},u=9;for(let p in n)p in se?(r[p]=n[p],se[p]<9&&(u=Math.min(se[p],u))):(o[p]=n[p],p in he&&(u=Math.min(he[p],u)));this.standardDateProps=o,this.extendedSettings=r,this.smallestUnitNum=u,this.buildFormattingFunc=I(Ut)}format(n,o){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,o)(n)}formatRange(n,o,r,u){let{standardDateProps:p,extendedSettings:N}=this,z=function En(i,n,o){return o.getMarkerYear(i)!==o.getMarkerYear(n)?5:o.getMarkerMonth(i)!==o.getMarkerMonth(n)?4:o.getMarkerDay(i)!==o.getMarkerDay(n)?2:Tn(i)!==Tn(n)?1:0}(n.marker,o.marker,r.calendarSystem);if(!z)return this.format(n,r);let ee=z;ee>1&&("numeric"===p.year||"2-digit"===p.year)&&("numeric"===p.month||"2-digit"===p.month)&&("numeric"===p.day||"2-digit"===p.day)&&(ee=1);let Se=this.format(n,r),ye=this.format(o,r);if(Se===ye)return Se;let at=function vn(i,n){let o={};for(let r in i)(!(r in he)||he[r]<=n)&&(o[r]=i[r]);return o}(p,ee),Ze=Ut(at,N,r),Gt=Ze(n),an=Ze(o),cn=function te(i,n,o,r){let u=0;for(;u<i.length;){let p=i.indexOf(n,u);if(-1===p)break;let N=i.substr(0,p);u=p+n.length;let z=i.substr(u),ee=0;for(;ee<o.length;){let Se=o.indexOf(r,ee);if(-1===Se)break;let ye=o.substr(0,Se);ee=Se+r.length;let at=o.substr(ee);if(N===ye&&z===at)return{before:N,after:z}}}return null}(Se,Gt,ye,an),Ln=N.separator||u||r.defaultSeparator||"";return cn?cn.before+Gt+Ln+an+cn.after:Se+Ln+ye}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Ut(i,n,o){let r=Object.keys(i).length;return 1===r&&"short"===i.timeZoneName?u=>di(u.timeZoneOffset):0===r&&n.week?u=>function Wt(i,n,o,r,u){let p=[];return"long"===u?p.push(o):("short"===u||"narrow"===u)&&p.push(n),("long"===u||"short"===u)&&p.push(" "),p.push(r.simpleNumberFormat.format(i)),"rtl"===r.options.direction&&p.reverse(),p.join("")}(o.computeWeekNumber(u.marker),o.weekText,o.weekTextLong,o.locale,n.week):function gt(i,n,o){i=Object.assign({},i),n=Object.assign({},n),function fn(i,n){i.timeZoneName&&(i.hour||(i.hour="2-digit"),i.minute||(i.minute="2-digit")),"long"===i.timeZoneName&&(i.timeZoneName="short"),n.omitZeroMinute&&(i.second||i.millisecond)&&delete n.omitZeroMinute}(i,n),i.timeZone="UTC";let u,r=new Intl.DateTimeFormat(o.locale.codes,i);if(n.omitZeroMinute){let p=Object.assign({},i);delete p.minute,u=new Intl.DateTimeFormat(o.locale.codes,p)}return p=>{let z,{marker:N}=p;return z=u&&!N.getUTCMinutes()?u:r,function zn(i,n,o,r,u){return i=i.replace(tt,""),"short"===o.timeZoneName&&(i=function dn(i,n){let o=!1;return i=i.replace(Mt,()=>(o=!0,n)),o||(i+=` ${n}`),i}(i,"UTC"===u.timeZone||null==n.timeZoneOffset?"UTC":di(n.timeZoneOffset))),r.omitCommas&&(i=i.replace(ze,"").trim()),r.omitZeroMinute&&(i=i.replace(":00","")),!1===r.meridiem?i=i.replace(Ee,"").trim():"narrow"===r.meridiem?i=i.replace(Ee,(p,N)=>N.toLocaleLowerCase()):"short"===r.meridiem?i=i.replace(Ee,(p,N)=>`${N.toLocaleLowerCase()}m`):"lowercase"===r.meridiem&&(i=i.replace(Ee,p=>p.toLocaleLowerCase())),i=(i=i.replace(Be," ")).trim()}(z.format(N),p,i,n,o)}}(i,n,o)}function je(i,n){let o=n.markerToArray(i.marker);return{marker:i.marker,timeZoneOffset:i.timeZoneOffset,array:o,year:o[0],month:o[1],day:o[2],hour:o[3],minute:o[4],second:o[5],millisecond:o[6]}}function $(i,n,o,r){let u=je(i,o.calendarSystem);return{date:u,start:u,end:n?je(n,o.calendarSystem):null,timeZone:o.timeZone,localeCodes:o.locale.codes,defaultSeparator:r||o.defaultSeparator}}class H{constructor(n){this.cmdStr=n}format(n,o,r){return o.cmdFormatter(this.cmdStr,$(n,null,o,r))}formatRange(n,o,r,u){return r.cmdFormatter(this.cmdStr,$(n,o,r,u))}}class Z{constructor(n){this.func=n}format(n,o,r){return this.func($(n,null,o,r))}formatRange(n,o,r,u){return this.func($(n,o,r,u))}}function Re(i){return"object"==typeof i&&i?new Lt(i):"string"==typeof i?new H(i):"function"==typeof i?new Z(i):null}const Tt={navLinkDayClick:q,navLinkWeekClick:q,duration:et,bootstrapFontAwesome:q,buttonIcons:q,customButtons:q,defaultAllDayEventDuration:et,defaultTimedEventDuration:et,nextDayThreshold:et,scrollTime:et,scrollTimeReset:Boolean,slotMinTime:et,slotMaxTime:et,dayPopoverFormat:Re,slotDuration:et,snapDuration:et,headerToolbar:q,footerToolbar:q,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Re,dayHeaderClassNames:q,dayHeaderContent:q,dayHeaderDidMount:q,dayHeaderWillUnmount:q,dayCellClassNames:q,dayCellContent:q,dayCellDidMount:q,dayCellWillUnmount:q,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:q,weekNumbers:Boolean,weekNumberClassNames:q,weekNumberContent:q,weekNumberDidMount:q,weekNumberWillUnmount:q,editable:Boolean,viewClassNames:q,viewDidMount:q,viewWillUnmount:q,nowIndicator:Boolean,nowIndicatorSnap:q,nowIndicatorClassNames:q,nowIndicatorContent:q,nowIndicatorDidMount:q,nowIndicatorWillUnmount:q,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:q,locale:q,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:q,eventOrder:function Yt(i){let r,u,n=[],o=[];for("string"==typeof i?o=i.split(/\s*,\s*/):"function"==typeof i?o=[i]:Array.isArray(i)&&(o=i),r=0;r<o.length;r+=1)u=o[r],"string"==typeof u?n.push("-"===u.charAt(0)?{field:u.substring(1),order:-1}:{field:u,order:1}):"function"==typeof u&&n.push({func:u});return n},eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:q,contentHeight:q,direction:String,weekNumberFormat:Re,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:q,initialDate:q,now:q,eventDataTransform:q,stickyHeaderDates:q,stickyFooterScrollbar:q,viewHeight:q,defaultAllDay:Boolean,eventSourceFailure:q,eventSourceSuccess:q,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:q,eventConstraint:q,eventAllow:q,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:q,eventContent:q,eventDidMount:q,eventWillUnmount:q,selectConstraint:q,selectOverlap:q,selectAllow:q,droppable:Boolean,unselectCancel:String,slotLabelFormat:q,slotLaneClassNames:q,slotLaneContent:q,slotLaneDidMount:q,slotLaneWillUnmount:q,slotLabelClassNames:q,slotLabelContent:q,slotLabelDidMount:q,slotLabelWillUnmount:q,dayMaxEvents:q,dayMaxEventRows:q,dayMinWidth:Number,slotLabelInterval:et,allDayText:String,allDayClassNames:q,allDayContent:q,allDayDidMount:q,allDayWillUnmount:q,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Re,rerenderDelay:Number,moreLinkText:q,moreLinkHint:q,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:q,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:et,hiddenDays:q,fixedWeekCount:Boolean,validRange:q,visibleRange:q,titleFormat:q,eventInteractive:Boolean,noEventsText:String,viewHint:q,navLinkHint:q,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:q,moreLinkClassNames:q,moreLinkContent:q,moreLinkDidMount:q,moreLinkWillUnmount:q,monthStartFormat:Re,handleCustomRendering:q,customRenderingMetaMap:q,customRenderingReplaces:Boolean},P={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" \u2013 ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},me={datesSet:q,eventsSet:q,eventAdd:q,eventChange:q,eventRemove:q,windowResize:q,eventClick:q,eventMouseEnter:q,eventMouseLeave:q,select:q,unselect:q,loading:q,_unmount:q,_beforeprint:q,_afterprint:q,_noEventDrop:q,_noEventResize:q,_resize:q,_scrollRequest:q},S={buttonText:q,buttonHints:q,views:q,plugins:q,initialEvents:q,events:q,eventSources:q},M={headerToolbar:D,footerToolbar:D,buttonText:D,buttonHints:D,buttonIcons:D,dateIncrement:D,plugins:_e,events:_e,eventSources:_e,resources:_e};function D(i,n){return"object"==typeof i&&"object"==typeof n&&i&&n?_n(i,n):i===n}function _e(i,n){return Array.isArray(i)&&Array.isArray(n)?mn(i,n):i===n}const $e={type:String,component:q,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:q,usesMinMaxTime:Boolean,classNames:q,content:q,didMount:q,willUnmount:q};function Ge(i){return kt(i,M)}function we(i,n){let o={},r={};for(let u in n)u in i&&(o[u]=n[u](i[u]));for(let u in i)u in n||(r[u]=i[u]);return{refined:o,extra:r}}function q(i){return i}const{hasOwnProperty:mt}=Object.prototype;function kt(i,n){let o={};if(n)for(let r in n)if(n[r]===D){let u=[];for(let p=i.length-1;p>=0;p-=1){let N=i[p][r];if("object"==typeof N&&N)u.unshift(N);else if(void 0!==N){o[r]=N;break}}u.length&&(o[r]=kt(u))}for(let r=i.length-1;r>=0;r-=1){let u=i[r];for(let p in u)p in o||(o[p]=u[p])}return o}function Zt(i,n){let o={};for(let r in i)n(i[r],r)&&(o[r]=i[r]);return o}function jt(i,n){let o={};for(let r in i)o[r]=n(i[r],r);return o}function Vt(i){let n={};for(let o of i)n[o]=!0;return n}function t(i){let n=[];for(let o in i)n.push(i[o]);return n}function _n(i,n){if(i===n)return!0;for(let o in i)if(mt.call(i,o)&&!(o in n))return!1;for(let o in n)if(mt.call(n,o)&&i[o]!==n[o])return!1;return!0}const wn=/^on[A-Z]/;function nn(i,n,o={}){if(i===n)return!0;for(let r in n)if(!(r in i)||!Dn(i[r],n[r],o[r]))return!1;for(let r in i)if(!(r in n))return!1;return!0}function Dn(i,n,o){return i===n||!0===o||!!o&&o(i,n)}let Un={};!function ai(i,n){Un[i]=n}("gregory",class ae{getMarkerYear(n){return n.getUTCFullYear()}getMarkerMonth(n){return n.getUTCMonth()}getMarkerDay(n){return n.getUTCDate()}arrayToMarker(n){return Bt(n)}markerToArray(n){return Xt(n)}});const G=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class X{constructor(n){let o=this.timeZone=n.timeZone,r="local"!==o&&"UTC"!==o;n.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new n.namedTimeZoneImpl(o)),this.canComputeOffset=!(r&&!this.namedTimeZoneImpl),this.calendarSystem=function v(i){return new Un[i]}(n.calendarSystem),this.locale=n.locale,this.weekDow=n.locale.week.dow,this.weekDoy=n.locale.week.doy,"ISO"===n.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof n.firstDay&&(this.weekDow=n.firstDay),"function"==typeof n.weekNumberCalculation&&(this.weekNumberFunc=n.weekNumberCalculation),this.weekText=null!=n.weekText?n.weekText:n.locale.options.weekText,this.weekTextLong=(null!=n.weekTextLong?n.weekTextLong:n.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=n.cmdFormatter,this.defaultSeparator=n.defaultSeparator}createMarker(n){let o=this.createMarkerMeta(n);return null===o?null:o.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Bt(At(new Date))}createMarkerMeta(n){if("string"==typeof n)return this.parse(n);let o=null;return"number"==typeof n?o=this.timestampToMarker(n):n instanceof Date?(n=n.valueOf(),isNaN(n)||(o=this.timestampToMarker(n))):Array.isArray(n)&&(o=Bt(n)),null!==o&&kn(o)?{marker:o,isTimeUnspecified:!1,forcedTzo:null}:null}parse(n){let o=function B(i){let n=G.exec(i);if(n){let o=new Date(Date.UTC(Number(n[1]),n[3]?Number(n[3])-1:0,Number(n[5]||1),Number(n[7]||0),Number(n[8]||0),Number(n[10]||0),n[12]?1e3*+`0.${n[12]}`:0));if(kn(o)){let r=null;return n[13]&&(r=("-"===n[15]?-1:1)*(60*Number(n[16]||0)+Number(n[18]||0))),{marker:o,isTimeUnspecified:!n[6],timeZoneOffset:r}}}return null}(n);if(null===o)return null;let{marker:r}=o,u=null;return null!==o.timeZoneOffset&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-60*o.timeZoneOffset*1e3):u=o.timeZoneOffset),{marker:r,isTimeUnspecified:o.isTimeUnspecified,forcedTzo:u}}getYear(n){return this.calendarSystem.getMarkerYear(n)}getMonth(n){return this.calendarSystem.getMarkerMonth(n)}getDay(n){return this.calendarSystem.getMarkerDay(n)}add(n,o){let r=this.calendarSystem.markerToArray(n);return r[0]+=o.years,r[1]+=o.months,r[2]+=o.days,r[6]+=o.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(n,o){let r=this.calendarSystem.markerToArray(n);return r[0]-=o.years,r[1]-=o.months,r[2]-=o.days,r[6]-=o.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(n,o){let r=this.calendarSystem.markerToArray(n);return r[0]+=o,this.calendarSystem.arrayToMarker(r)}addMonths(n,o){let r=this.calendarSystem.markerToArray(n);return r[1]+=o,this.calendarSystem.arrayToMarker(r)}diffWholeYears(n,o){let{calendarSystem:r}=this;return Tn(n)===Tn(o)&&r.getMarkerDay(n)===r.getMarkerDay(o)&&r.getMarkerMonth(n)===r.getMarkerMonth(o)?r.getMarkerYear(o)-r.getMarkerYear(n):null}diffWholeMonths(n,o){let{calendarSystem:r}=this;return Tn(n)===Tn(o)&&r.getMarkerDay(n)===r.getMarkerDay(o)?r.getMarkerMonth(o)-r.getMarkerMonth(n)+12*(r.getMarkerYear(o)-r.getMarkerYear(n)):null}greatestWholeUnit(n,o){let r=this.diffWholeYears(n,o);return null!==r?{unit:"year",value:r}:(r=this.diffWholeMonths(n,o),null!==r?{unit:"month",value:r}:(r=function si(i,n){let o=jn(i,n);return null!==o&&o%7==0?o/7:null}(n,o),null!==r?{unit:"week",value:r}:(r=jn(n,o),null!==r?{unit:"day",value:r}:(r=function oi(i,n){return(n.valueOf()-i.valueOf())/36e5}(n,o),pe(r)?{unit:"hour",value:r}:(r=function ri(i,n){return(n.valueOf()-i.valueOf())/6e4}(n,o),pe(r)?{unit:"minute",value:r}:(r=function Kn(i,n){return(n.valueOf()-i.valueOf())/1e3}(n,o),pe(r)?{unit:"second",value:r}:{unit:"millisecond",value:o.valueOf()-n.valueOf()}))))))}countDurationsBetween(n,o,r){let u;return r.years&&(u=this.diffWholeYears(n,o),null!==u)?u/function tn(i){return on(i)/365}(r):r.months&&(u=this.diffWholeMonths(n,o),null!==u)?u/function ln(i){return on(i)/30}(r):r.days&&(u=jn(n,o),null!==u)?u/on(r):(o.valueOf()-n.valueOf())/Nn(r)}startOf(n,o){return"year"===o?this.startOfYear(n):"month"===o?this.startOfMonth(n):"week"===o?this.startOfWeek(n):"day"===o?rn(n):"hour"===o?function Hn(i){return Bt([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours()])}(n):"minute"===o?function Ci(i){return Bt([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes()])}(n):"second"===o?function F(i){return Bt([i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds()])}(n):null}startOfYear(n){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(n)])}startOfMonth(n){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(n),this.calendarSystem.getMarkerMonth(n)])}startOfWeek(n){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(n),this.calendarSystem.getMarkerMonth(n),n.getUTCDate()-(n.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(n){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(n)):function K(i,n,o){let r=i.getUTCFullYear(),u=Y(i,r,n,o);if(u<1)return Y(i,r-1,n,o);let p=Y(i,r+1,n,o);return p>=1?Math.min(u,p):u}(n,this.weekDow,this.weekDoy)}format(n,o,r={}){return o.format({marker:n,timeZoneOffset:null!=r.forcedTzo?r.forcedTzo:this.offsetForMarker(n)},this)}formatRange(n,o,r,u={}){return u.isEndExclusive&&(o=Pn(o,-1)),r.formatRange({marker:n,timeZoneOffset:null!=u.forcedStartTzo?u.forcedStartTzo:this.offsetForMarker(n)},{marker:o,timeZoneOffset:null!=u.forcedEndTzo?u.forcedEndTzo:this.offsetForMarker(o)},this,u.defaultSeparator)}formatIso(n,o={}){let r=null;return o.omitTimeZoneOffset||(r=null!=o.forcedTzo?o.forcedTzo:this.offsetForMarker(n)),gn(n,r,o.omitTime)}timestampToMarker(n){return"local"===this.timeZone?Bt(At(new Date(n))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Bt(this.namedTimeZoneImpl.timestampToArray(n)):new Date(n)}offsetForMarker(n){return"local"===this.timeZone?-Et(Xt(n)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Xt(n)):null}toDate(n,o){return"local"===this.timeZone?Et(Xt(n)):"UTC"===this.timeZone?new Date(n.valueOf()):this.namedTimeZoneImpl?new Date(n.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Xt(n))*60):new Date(n.valueOf()-(o||0))}}class ue{constructor(n){this.iconOverrideOption&&this.setIconOverride(n[this.iconOverrideOption])}setIconOverride(n){let o,r;if("object"==typeof n&&n){for(r in o=Object.assign({},this.iconClasses),n)o[r]=this.applyIconOverridePrefix(n[r]);this.iconClasses=o}else!1===n&&(this.iconClasses={})}applyIconOverridePrefix(n){let o=this.iconOverridePrefix;
1return o&&0!==n.indexOf(o)&&(n=o+n),n}getClass(n){return this.classes[n]||""}getIconClass(n,o){let r;return r=o&&this.rtlIconClasses&&this.rtlIconClasses[n]||this.iconClasses[n],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(n){let o;return this.iconOverrideCustomButtonOption&&(o=n[this.iconOverrideCustomButtonOption],o)?`${this.baseIconClass} ${this.applyIconOverridePrefix(o)}`:""}}function Ve(i){i();let n=d.fF.debounceRendering,o=[];for(d.fF.debounceRendering=function r(u){o.push(u)},d.XX(d.n(ht,{}),document.createElement("div"));o.length;)o.shift()();d.fF.debounceRendering=n}ue.prototype.classes={},ue.prototype.iconClasses={},ue.prototype.baseIconClass="",ue.prototype.iconOverridePrefix="";class ht extends d.uA{render(){return d.n("div",{})}componentDidMount(){this.setState({})}}function $t(i){let n=d.q6(i),o=n.Provider;return n.Provider=function(){let r=!this.getChildContext,u=o.apply(this,arguments);if(r){let p=[];this.shouldComponentUpdate=N=>{this.props.value!==N.value&&p.forEach(z=>{z.context=N.value,z.forceUpdate()})},this.sub=N=>{p.push(N);let z=N.componentWillUnmount;N.componentWillUnmount=()=>{p.splice(p.indexOf(N),1),z&&z.call(N)}}}return u},n}class St{constructor(n,o,r,u){this.execFunc=n,this.emitter=o,this.scrollTime=r,this.scrollTimeReset=u,this.handleScrollRequest=p=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},p),this.drain()},o.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(n){n&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const bt=$t({});function lt(i,n,o,r,u,p,N,z,ee,Se,ye,at,Ze,Gt){return{dateEnv:u,nowManager:p,options:o,pluginHooks:z,emitter:ye,dispatch:ee,getCurrentData:Se,calendarApi:at,viewSpec:i,viewApi:n,dateProfileGenerator:r,theme:N,isRtl:"rtl"===o.direction,addResizeHandler(an){ye.on("_resize",an)},removeResizeHandler(an){ye.off("_resize",an)},createScrollResponder:an=>new St(an,ye,et(o.scrollTime),o.scrollTimeReset),registerInteractiveComponent:Ze,unregisterInteractiveComponent:Gt}}let Kt=(()=>{class i extends d.uA{shouldComponentUpdate(o,r){return!nn(this.props,o,this.propEquality)||!nn(this.state,r,this.stateEquality)}safeSetState(o){nn(this.state,Object.assign(Object.assign({},this.state),o),this.stateEquality)||this.setState(o)}}return i.addPropsEquality=Fn,i.addStateEquality=xn,i.contextType=bt,i})();Kt.prototype.propEquality={},Kt.prototype.stateEquality={};let Ht=(()=>{class i extends Kt{}return i.contextType=bt,i})();function Fn(i){let n=Object.create(this.prototype.propEquality);Object.assign(n,i),this.prototype.propEquality=n}function xn(i){let n=Object.create(this.prototype.stateEquality);Object.assign(n,i),this.prototype.stateEquality=n}function bn(i,n){"function"==typeof i?i(n):i&&(i.current=n)}class Wn extends Ht{constructor(){super(...arguments),this.id=_t(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=n=>{const{options:o}=this.context,{generatorName:r}=this.props;(!o.customRenderingReplaces||!qn(r,o))&&this.updateElRef(n)},this.updateElRef=n=>{this.props.elRef&&bn(this.props.elRef,n)}}render(){const{props:n,context:o}=this,{options:r}=o,{customGenerator:u,defaultGenerator:p,renderProps:N}=n,z=ti(n,[],this.handleEl);let Se,at,ee=!1,ye=[];if(null!=u){const Ze="function"==typeof u?u(N,d.n):u;if(!0===Ze)ee=!0;else{const Gt=Ze&&"object"==typeof Ze;Gt&&"html"in Ze?z.dangerouslySetInnerHTML={__html:Ze.html}:Gt&&"domNodes"in Ze?ye=Array.prototype.slice.call(Ze.domNodes):(Gt?(0,d.zO)(Ze):"function"!=typeof Ze)?Se=Ze:at=Ze}}else ee=!qn(n.generatorName,r);return ee&&p&&(Se=p(N)),this.queuedDomNodes=ye,this.currentGeneratorMeta=at,(0,d.n)(n.elTag,z,Se)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(n){var o;const{props:r,context:u}=this,{handleCustomRendering:p,customRenderingMetaMap:N}=u.options;if(p){const z=null!==(o=this.currentGeneratorMeta)&&void 0!==o?o:null==N?void 0:N[r.generatorName];z&&p(Object.assign(Object.assign({id:this.id,isActive:n,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:z},r),{elClasses:(r.elClasses||[]).filter(li)}))}}applyQueueudDomNodes(){const{queuedDomNodes:n,currentDomNodes:o}=this,r=this.base;if(!mn(n,o)){o.forEach(Ce);for(let u of n)r.appendChild(u);this.currentDomNodes=n}}}function qn(i,n){var o;return!!(n.handleCustomRendering&&i&&null!==(o=n.customRenderingMetaMap)&&void 0!==o&&o[i])}function ti(i,n,o){const r=Object.assign(Object.assign({},i.elAttrs),{ref:o});return(i.elClasses||n)&&(r.className=(i.elClasses||[]).concat(n||[]).concat(r.className||[]).filter(
vendor: 29,844 bytes, line 1
1Boolean).join(" ")),i.elStyle&&(r.style=i.elStyle),r}function li(i){return!!i}Wn.addPropsEquality({elClasses:mn,elStyle:_n,elAttrs:function Rt(i,n){const o=function Xn(i,n){let o=[];for(let r in i)mt.call(i,r)&&(r in n||o.push(r));for(let r in n)mt.call(n,r)&&i[r]!==n[r]&&o.push(r);return o}(i,n);for(let r of o)if(!wn.test(r))return!1;return!0},renderProps:_n});const It=$t(0);let yn=(()=>{class i extends d.uA{constructor(){super(...arguments),this.InnerContent=Le.bind(void 0,this),this.handleEl=o=>{this.el=o,this.props.elRef&&(bn(this.props.elRef,o),o&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:o}=this,r=function Gn(i,n){const o="function"==typeof i?i(n):i||[];return"string"==typeof o?[o]:o}(o.classNameGenerator,o.renderProps);if(o.children){const u=ti(o,r,this.handleEl),p=o.children(this.InnerContent,o.renderProps,u);return o.elTag?(0,d.n)(o.elTag,u,p):p}return(0,d.n)(Wn,Object.assign(Object.assign({},o),{elRef:this.handleEl,elTag:o.elTag||"div",elClasses:(o.elClasses||[]).concat(r),renderId:this.context}))}componentDidMount(){var o,r;this.el?null===(r=(o=this.props).didMount)||void 0===r||r.call(o,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var o,r;null===(r=(o=this.props).willUnmount)||void 0===r||r.call(o,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}return i.contextType=It,i})();function Le(i,n){const o=i.props;return(0,d.n)(Wn,Object.assign({renderProps:o.renderProps,generatorName:o.generatorName,customGenerator:o.customGenerator,defaultGenerator:o.defaultGenerator,renderId:i.context},n))}class wi extends Ht{render(){let{props:n,context:o}=this,{options:r}=o,u={view:o.viewApi};return(0,d.n)(yn,{elRef:n.elRef,elTag:n.elTag||"div",elAttrs:n.elAttrs,elClasses:[...un(n.viewSpec),...n.elClasses||[]],elStyle:n.elStyle,renderProps:u,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>n.children)}}function un(i){return[`fc-${i.type}-view`,"fc-view"]}function qt(i,n){let u,p,o=[],{start:r}=n;for(i.sort(Dt),u=0;u<i.length;u+=1)p=i[u],p.start>r&&o.push({start:r,end:p.start}),p.end>r&&(r=p.end);return r<n.end&&o.push({start:r,end:n.end}),o}function Dt(i,n){return i.start.valueOf()-n.start.valueOf()}function An(i,n){let{start:o,end:r}=i,u=null;return null!==n.start&&(o=null===o?n.start:new Date(Math.max(o.valueOf(),n.start.valueOf()))),null!=n.end&&(r=null===r?n.end:new Date(Math.min(r.valueOf(),n.end.valueOf()))),(null===o||null===r||o<r)&&(u={start:o,end:r}),u}function ui(i,n){return(null===i.end||null===n.start||i.end>n.start)&&(null===i.start||null===n.end||i.start<n.end)}function ni(i,n){return(null===i.start||null!==n.start&&n.start>=i.start)&&(null===i.end||null!==n.end&&n.end<=i.end)}function pi(i,n){return(null===i.start||n>=i.start)&&(null===i.end||n<i.end)}function Ui(i){let n=Math.floor(Rn(i.start,i.end))||1,o=rn(i.start);return{start:o,end:pn(o,n)}}function Pi(i,n=et(0)){let o=null,r=null;if(i.end){r=rn(i.end);let u=i.end.valueOf()-r.valueOf();u&&u>=Nn(n)&&(r=pn(r,1))}return i.start&&(o=rn(i.start),r&&r<=o&&(r=pn(o,1))),{start:o,end:r}}function Ii(i,n,o,r){return"year"===r?et(o.diffWholeYears(i,n),"year"):"month"===r?et(o.diffWholeMonths(i,n),"month"):function Zn(i,n){let o=rn(i),r=rn(n);return{years:0,months:0,days:Math.round(Rn(o,r)),milliseconds:n.valueOf()-r.valueOf()-(i.valueOf()-o.valueOf())}}(i,n)}class Ri{constructor(n){this.props=n,this.initHiddenDays()}buildPrev(n,o,r){let{dateEnv:u}=this.props,p=u.subtract(u.startOf(o,n.currentRangeUnit),n.dateIncrement);return this.build(p,-1,r)}buildNext(n,o,r){let{dateEnv:u}=this.props,p=u.add(u.startOf(o,n.currentRangeUnit),n.dateIncrement);return this.build(p,1,r)}build(n,o,r=!0){let p,N,z,ee,Se,ye,{props:u}=this;return p=this.buildValidRange(),p=this.trimHiddenDays(p),r&&(n=function go(i,n){return null!=n.start&&i<n.start?n.start:null!=n.end&&i>=n.end?new Date(n.end.valueOf()-1):i}(n,p)),N=this.buildCurrentRangeInfo(n,o),z=/^(year|month|week|day)$/.test(N.unit),ee=this.buildRenderRange(this.trimHiddenDays(N.range),N.unit,z),ee=this.trimHiddenDays(ee),Se=ee,u.showNonCurrentDates||(Se=An(Se,N.range)),Se=this.adjustActiveRange(Se),Se=An(Se,p),ye=ui(N.range,p),pi(ee,n)||(n=ee.start),{currentDate:n,validRange:p,currentRange:N.range,currentRangeUnit:N.unit,isRangeAllDay:z,activeRange:Se,renderRange:ee,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:ye,dateIncrement:this.buildDateIncrement(N.duration)}}buildValidRange(){let n=this.props.validRangeInput,o="function"==typeof n?n.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):n;return this.refineRange(o)||{start:null,end:null}}buildCurrentRangeInfo(n,o){let z,{props:r}=this,u=null,p=null,N=null;return r.duration?(u=r.duration,p=r.durationUnit,N=this.buildRangeFromDuration(n,o,u,p)):(z=this.props.dayCount)?(p="day",N=this.buildRangeFromDayCount(n,o,z)):(N=this.buildCustomVisibleRange(n))?p=r.dateEnv.greatestWholeUnit(N.start,N.end).unit:(u=this.getFallbackDuration(),p=hn(u).unit,N=this.buildRangeFromDuration(n,o,u,p)),{duration:u,unit:p,range:N}}getFallbackDuration(){return et({day:1})}adjustActiveRange(n){let{dateEnv:o,usesMinMaxTime:r,slotMinTime:u,slotMaxTime:p}=this.props,{start:N,end:z}=n;return r&&(on(u)<0&&(N=rn(N),N=o.add(N,u)),on(p)>1&&(z=rn(z),z=pn(z,-1),z=o.add(z,p))),{start:N,end:z}}buildRangeFromDuration(n,o,r,u){let z,ee,Se,{dateEnv:p,dateAlignment:N}=this.props;if(!N){let{dateIncrement:at}=this.props;N=at&&Nn(at)<Nn(r)?hn(at).unit:u}function ye(){z=p.startOf(n,N),ee=p.add(z,r),Se={start:z,end:ee}}return on(r)<=1&&this.isHiddenDay(z)&&(z=this.skipHiddenDays(z,o),z=rn(z)),ye(),this.trimHiddenDays(Se)||(n=this.skipHiddenDays(n,o),ye()),Se}buildRangeFromDayCount(n,o,r){let ee,{dateEnv:u,dateAlignment:p}=this.props,N=0,z=n;p&&(z=u.startOf(z,p)),z=rn(z),z=this.skipHiddenDays(z,o),ee=z;do{ee=pn(ee,1),this.isHiddenDay(ee)||(N+=1)}while(N<r);return{start:z,end:ee}}buildCustomVisibleRange(n){let{props:o}=this,r=o.visibleRangeInput,u="function"==typeof r?r.call(o.calendarApi,o.dateEnv.toDate(n)):r,p=this.refineRange(u);return!p||null!=p.start&&null!=p.end?p:null}buildRenderRange(n,o,r){return n}buildDateIncrement(n){let r,{dateIncrement:o}=this.props;return o||((r=this.props.dateAlignment)?et(1,r):n||et({days:1}))}refineRange(n){if(n){let o=function Xi(i,n){let o=null,r=null;return i.start&&(o=n.createMarker(i.start)),i.end&&(r=n.createMarker(i.end)),!o&&!r||o&&r&&r<o?null:{start:o,end:r}}(n,this.props.dateEnv);return o&&(o=Pi(o)),o}return null}initHiddenDays(){let u,n=this.props.hiddenDays||[],o=[],r=0;for(!1===this.props.weekends&&n.push(0,6),u=0;u<7;u+=1)(o[u]=-1!==n.indexOf(u))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=o}trimHiddenDays(n){let{start:o,end:r}=n;return o&&(o=this.skipHiddenDays(o)),r&&(r=this.skipHiddenDays(r,-1,!0)),null==o||null==r||o<r?{start:o,end:r}:null}isHiddenDay(n){return n instanceof Date&&(n=n.getUTCDay()),this.isHiddenDayHash[n]}skipHiddenDays(n,o=1,r=!1){for(;this.isHiddenDayHash[(n.getUTCDay()+(r?o:0)+7)%7];)n=pn(n,o);return n}}function vi(i,n,o,r){return{instanceId:_t(),defId:i,range:n,forcedStartTzo:null==o?null:o,forcedEndTzo:null==r?null:r}}function Bn(i,n,o){let{dateEnv:r,pluginHooks:u,options:p}=o,{defs:N,instances:z}=i;z=Zt(z,ee=>!N[ee.defId].recurringDef);for(let ee in N){let Se=N[ee];if(Se.recurringDef){let{duration:ye}=Se.recurringDef;ye||(ye=Se.allDay?p.defaultAllDayEventDuration:p.defaultTimedEventDuration);let at=Io(Se,ye,n,r,u.recurringTypes);for(let Ze of at){let Gt=vi(ee,{start:Ze,end:r.add(Ze,ye)});z[Gt.instanceId]=Gt}}}return{defs:N,instances:z}}function Io(i,n,o,r,u){let N=u[i.recurringDef.typeId].expand(i.recurringDef.typeData,{start:r.subtract(o.start,n),end:o.end},r);return i.allDay&&(N=N.map(rn)),N}const Ei={id:String,groupId:String,title:String,url:String,interactive:Boolean},ji={start:q,end:q,date:q,allDay:Boolean},No=Object.assign(Object.assign(Object.assign({},Ei),ji),{extendedProps:q});function Hi(i,n,o,r,u=Di(o),p,N){let{refined:z,extra:ee}=zi(i,o,u),Se=function So(i,n){let o=null;return i&&(o=i.defaultAllDay),null==o&&(o=n.options.defaultAllDay),o}(n,o),ye=function Ao(i,n,o,r){for(let u=0;u<r.length;u+=1){let p=r[u].parse(i,o);if(p){let{allDay:N}=i;return null==N&&(N=n,null==N&&(N=p.allDayGuess,null==N&&(N=!1))),{allDay:N,duration:p.duration,typeData:p.typeData,typeId:u}}}return null}(z,Se,o.dateEnv,o.pluginHooks.recurringTypes);if(ye){let Ze=bi(z,ee,n?n.sourceId:"",ye.allDay,!!ye.duration,o,p);return Ze.recurringDef={typeId:ye.typeId,typeData:ye.typeData,duration:ye.duration},{def:Ze,instance:null}}let at=function ho(i,n,o,r){let p,ee,{allDay:u}=i,N=null,z=!1,Se=null;if(p=o.dateEnv.createMarkerMeta(null!=i.start?i.start:i.date),p)N=p.marker;else if(!r)return null;return null!=i.end&&(ee=o.dateEnv.createMarkerMeta(i.end)),null==u&&(u=null!=n?n:(!p||p.isTimeUnspecified)&&(!ee||ee.isTimeUnspecified)),u&&N&&(N=rn(N)),ee&&(Se=ee.marker,u&&(Se=rn(Se)),N&&Se<=N&&(Se=null)),Se?z=!0:r||(z=o.options.forceEventDuration||!1,Se=o.dateEnv.add(N,u?o.options.defaultAllDayEventDuration:o.options.defaultTimedEventDuration)),{allDay:u,hasEnd:z,range:{start:N,end:Se},forcedStartTzo:p?p.forcedTzo:null,forcedEndTzo:ee?ee.forcedTzo:null}}(z,Se,o,r);if(at){let Ze=bi(z,ee,n?n.sourceId:"",at.allDay,at.hasEnd,o,p),Gt=vi(Ze.defId,at.range,at.forcedStartTzo,at.forcedEndTzo);return N&&Ze.publicId&&N[Ze.publicId]&&(Gt.instanceId=N[Ze.publicId]),{def:Ze,instance:Gt}}return null}function zi(i,n,o=Di(n)){return we(i,o)}function Di(i){return Object.assign(Object.assign(Object.assign({},Mi),No),i.pluginHooks.eventRefiners)}function bi(i,n,o,r,u,p,N){let z={title:i.title||"",groupId:i.groupId||"",publicId:i.id||"",url:i.url||"",recurringDef:null,defId:(N&&i.id?N[i.id]:"")||_t(),sourceId:o,allDay:r,hasEnd:u,interactive:i.interactive,ui:Vi(i,p),extendedProps:Object.assign(Object.assign({},i.extendedProps||{}),n)};for(let ee of p.pluginHooks.eventDefMemberAdders)Object.assign(z,ee(i));return Object.freeze(z.ui.classNames),Object.freeze(z.extendedProps),z}function Ni(i,n,o,r,u,p){let N={defs:{},instances:{}},z=Di(o);for(let ee of i){let Se=Hi(ee,n,o,r,z,u,p);Se&&yi(Se,N)}return N}function yi(i,n={defs:{},instances:{}}){return n.defs[i.def.defId]=i.def,i.instance&&(n.instances[i.instance.instanceId]=i.instance),n}function Yi(i,n){let o=i.instances[n];if(o){let r=i.defs[o.defId],u=Si(i,p=>function Mo(i,n){return!(!i.groupId||i.groupId!==n.groupId)}(r,p));return u.defs[r.defId]=r,u.instances[o.instanceId]=o,u}return{defs:{},instances:{}}}function _i(){return{defs:{},instances:{}}}function Li(i,n){return{defs:Object.assign(Object.assign({},i.defs),n.defs),instances:Object.assign(Object.assign({},i.instances),n.instances)}}function Si(i,n){let o=Zt(i.defs,n),r=Zt(i.instances,u=>o[u.defId]);return{defs:o,instances:r}}function Bi(i){return Array.isArray(i)?i:"string"==typeof i?i.split(/\s+/):[]}const Mi={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:q,overlap:q,allow:q,className:Bi,classNames:Bi,color:String,backgroundColor:String,borderColor:String,textColor:String},Ro={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Vi(i,n){let o=function Po(i,n){return Array.isArray(i)?Ni(i,null,n,!0):"object"==typeof i&&i?Ni([i],null,n,!0):null!=i?String(i):null}(i.constraint,n);return{display:i.display||null,startEditable:null!=i.startEditable?i.startEditable:i.editable,durationEditable:null!=i.durationEditable?i.durationEditable:i.editable,constraints:null!=o?[o]:[],overlap:null!=i.overlap?i.overlap:null,allows:null!=i.allow?[i.allow]:[],backgroundColor:i.backgroundColor||i.color||"",borderColor:i.borderColor||i.color||"",textColor:i.textColor||"",classNames:(i.className||[]).concat(i.classNames||[])}}function Wi(i){return i.reduce(vo,Ro)}function vo(i,n){return{display:null!=n.display?n.display:i.display,startEditable:null!=n.startEditable?n.startEditable:i.startEditable,durationEditable:null!=n.durationEditable?n.durationEditable:i.durationEditable,constraints:i.constraints.concat(n.constraints),overlap:"boolean"==typeof n.overlap?n.overlap:i.overlap,allows:i.allows.concat(n.allows),backgroundColor:n.backgroundColor||i.backgroundColor,borderColor:n.borderColor||i.borderColor,textColor:n.textColor||i.textColor,classNames:i.classNames.concat(n.classNames)}}const Do={id:String,defaultAllDay:Boolean,url:String,format:String,events:q,eventDataTransform:q,success:q,failure:q};function qi(i,n,o=Qi(n)){let r;if("string"==typeof i?r={url:i}:"function"==typeof i||Array.isArray(i)?r={events:i}:"object"==typeof i&&i&&(r=i),r){let{refined:u,extra:p}=we(r,o),N=function bo(i,n){let o=n.pluginHooks.eventSourceDefs;for(let r=o.length-1;r>=0;r-=1){let p=o[r].parseMeta(i);if(p)return{sourceDefId:r,meta:p}}return null}(u,n);if(N)return{_raw:i,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:u.defaultAllDay,eventDataTransform:u.eventDataTransform,success:u.success,failure:u.failure,publicId:u.id||"",sourceId:_t(),sourceDefId:N.sourceDefId,meta:N.meta,ui:Vi(u,n),extendedProps:p}}return null}function Qi(i){return Object.assign(Object.assign(Object.assign({},Mi),Do),i.pluginHooks.eventSourceRefiners)}function yo(i,n,o,r,u){switch(n.type){case"RECEIVE_EVENTS":return function Lo(i,n,o,r,u,p){if(n&&o===n.latestFetchId){let N=Ni(Ji(u,n,p),n,p);return r&&(N=Bn(N,r,p)),Li(Zi(i,n.sourceId),N)}return i}(i,o[n.sourceId],n.fetchId,n.fetchRange,n.rawEvents,u);case"RESET_RAW_EVENTS":return function Vo(i,n,o,r,u){const{defIdMap:p,instanceIdMap:N}=function Fo(i){const{defs:n,instances:o}=i,r={},u={};for(let p in n){const N=n[p],{publicId:z}=N;z&&(r[z]=p)}for(let p in o){const z=n[o[p].defId],{publicId:ee}=z;ee&&(u[ee]=p)}return{defIdMap:r,instanceIdMap:u}}(i);return Bn(Ni(Ji(o,n,u),n,u,!1,p,N),r,u)}(i,o[n.sourceId],n.rawEvents,r.activeRange,u);case"ADD_EVENTS":return function $o(i,n,o,r){return o&&(n=Bn(n,o,r)),Li(i,n)}(i,n.eventStore,r?r.activeRange:null,u);case"RESET_EVENTS":return n.eventStore;case"MERGE_EVENTS":return Li(i,n.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Bn(i,r.activeRange,u):i;case"REMOVE_EVENTS":return function Oo(i,n){let{defs:o,instances:r}=i,u={},p={};for(let N in o)n.defs[N]||(u[N]=o[N]);for(let N in r)!n.instances[N]&&u[r[N].defId]&&(p[N]=r[N]);return{defs:u,instances:p}}(i,n.eventStore);case"REMOVE_EVENT_SOURCE":return Zi(i,n.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Si(i,p=>!p.sourceId);case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return i}}function Ji(i,n,o){let r=o.options.eventDataTransform,u=n?n.eventDataTransform:null;return u&&(i=Ki(i,u)),r&&(i=Ki(i,r)),i}function Ki(i,n){let o;if(n){o=[];for(let r of i){let u=n(r);u?o.push(u):null==u&&o.push(r)}}else o=i;return o}function xo(i,n,o){let{defs:r}=i,u=jt(i.instances,p=>r[p.defId].allDay?p:Object.assign(Object.assign({},p),{range:{start:o.createMarker(n.toDate(p.range.start,p.forcedStartTzo)),end:o.createMarker(n.toDate(p.range.end,p.forcedEndTzo))},forcedStartTzo:o.canComputeOffset?null:p.forcedStartTzo,forcedEndTzo:o.canComputeOffset?null:p.forcedEndTzo}));return{defs:r,instances:u}}function Zi(i,n){return Si(i,o=>o.sourceId!==n)}class eo{constructor(){this.handlers={},this.thisContext=null}setThisContext(n){this.thisContext=n}setOptions(n){this.options=n}on(n,o){!function ko(i,n,o){(i[n]||(i[n]=[])).push(o)}(this.handlers,n,o)}off(n,o){!function wo(i,n,o){o?i[n]&&(i[n]=i[n].filter(r=>r!==o)):delete i[n]}(this.handlers,n,o)}trigger(n,...o){let p=[].concat(this.options&&this.options[n]||[],this.handlers[n]||[]);for(let N of p)N.apply(this.thisContext,o)}hasHandlers(n){return!!(this.handlers[n]&&this.handlers[n].length||this.options&&this.options[n])}}const Xo={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Uo(i,n){return Ni(function jo(i){let n;return n=!0===i?[{}]:Array.isArray(i)?i.filter(o=>o.daysOfWeek):"object"==typeof i&&i?[i]:[],n=n.map(o=>Object.assign(Object.assign({},Xo),o)),n}(i),null,n)}function to(i,n,o){o.emitter.trigger("select",Object.assign(Object.assign({},$i(i,o)),{jsEvent:n?n.origEvent:null,view:o.viewApi||o.calendarApi.view}))}function $i(i,n){let o={};for(let r of n.pluginHooks.dateSpanTransforms)Object.assign(o,r(i,n));return Object.assign(o,function Eo(i,n){return Object.assign(Object.assign({},fo(i.range,n,i.allDay)),{allDay:i.allDay})}(i,n.dateEnv)),o}function no(i,n,o){let{dateEnv:r,options:u}=o,p=n;return i?(p=rn(p),p=r.add(p,u.defaultAllDayEventDuration)):p=r.add(p,u.defaultTimedEventDuration),p}function io(i,n,o,r){let u=Oi(i.defs,n),p={defs:{},instances:{}};for(let N in i.defs)p.defs[N]=zo(i.defs[N],u[N],o,r);for(let N in i.instances){let z=i.instances[N];p.instances[N]=Yo(z,p.defs[z.defId],u[z.defId],o,r)}return p}function zo(i,n,o,r){let u=o.standardProps||{};null==u.hasEnd&&n.durationEditable&&(o.startDelta||o.endDelta)&&(u.hasEnd=!0);let p=Object.assign(Object.assign(Object.assign({},i),u),{ui:Object.assign(Object.assign({},i.ui),u.ui)});o.extendedProps&&(p.extendedProps=Object.assign(Object.assign({},p.extendedProps),o.extendedProps));for(let N of r.pluginHooks.eventDefMutationAppliers)N(p,o,r);return!p.hasEnd&&r.options.forceEventDuration&&(p.hasEnd=!0),p}function Yo(i,n,o,r,u){let{dateEnv:p}=u,N=r.standardProps&&!0===r.standardProps.allDay,z=r.standardProps&&!1===r.standardProps.hasEnd,ee=Object.assign({},i);return N&&(ee.range=Ui(ee.range)),r.datesDelta&&o.startEditable&&(ee.range={start:p.add(ee.range.start,r.datesDelta),end:p.add(ee.range.end,r.datesDelta)}),r.startDelta&&o.durationEditable&&(ee.range={start:p.add(ee.range.start,r.startDelta),end:ee.range.end}),r.endDelta&&o.durationEditable&&(ee.range={start:ee.range.start,end:p.add(ee.range.end,r.endDelta)}),z&&(ee.range={start:ee.range.start,end:no(n.allDay,ee.range.start,u)}),n.allDay&&(ee.range={start:rn(ee.range.start),end:rn(ee.range.end)}),ee.range.end<ee.range.start&&(ee.range.end=no(n.allDay,ee.range.start,u)),ee}class mi{constructor(n,o){this.context=n,this.internalEventSource=o}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Mn{constructor(n,o,r){this._context=n,this._def=o,this._instance=r||null}setProp(n,o){if(n in ji)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===n)o=Ei[n](o),this.mutate({standardProps:{publicId:o}});else if(n in Ei)o=Ei[n](o),this.mutate({standardProps:{[n]:o}});else if(n in Mi){let r=Mi[n](o);r="color"===n?{backgroundColor:o,borderColor:o}:"editable"===n?{startEditable:o,durationEditable:o}:{[n]:o},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${n}'. Use setExtendedProp instead.`)}setExtendedProp(n,o){this.mutate({extendedProps:{[n]:o}})}setStart(n,o={}){let{dateEnv:r}=this._context,u=r.createMarker(n);if(u&&this._instance){let N=Ii(this._instance.range.start,u,r,o.granularity);this.mutate(o.maintainDuration?{datesDelta:N}:{startDelta:N})}}setEnd(n,o={}){let u,{dateEnv:r}=this._context;if((null==n||(u=r.createMarker(n),u))&&this._instance)if(u){let p=Ii(this._instance.range.end,u,r,o.granularity);this.mutate({endDelta:p})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(n,o,r={}){let z,{dateEnv:u}=this._context,p={allDay:r.allDay},N=u.createMarker(n);if(N&&(null==o||(z=u.createMarker(o),z))&&this._instance){let ee=this._instance.range;!0===r.allDay&&(ee=Ui(ee));let Se=Ii(ee.start,N,u,r.granularity);if(z){let ye=Ii(ee.end,z,u,r.granularity);!function Ot(i,n){return i.years===n.years&&i.months===n.months&&i.days===n.days&&i.milliseconds===n.milliseconds}(Se,ye)?this.mutate({startDelta:Se,endDelta:ye,standardProps:p}):this.mutate({datesDelta:Se,standardProps:p})}else p.hasEnd=!1,this.mutate({datesDelta:Se,standardProps:p})}}moveStart(n){let o=et(n);o&&this.mutate({startDelta:o})}moveEnd(n){let o=et(n);o&&this.mutate({endDelta:o})}moveDates(n){let o=et(n);o&&this.mutate({datesDelta:o})}setAllDay(n,o={}){let r={allDay:n},{maintainDuration:u}=o;null==u&&(u=this._context.options.allDayMaintainDuration),this._def.allDay!==n&&(r.hasEnd=u),this.mutate({standardProps:r})}formatRange(n){let{dateEnv:o}=this._context,r=this._instance,u=Re(n);return this._def.hasEnd?o.formatRange(r.range.start,r.range.end,u,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):o.format(r.range.start,u,{forcedTzo:r.forcedStartTzo})}mutate(n){let o=this._instance;if(o){let r=this._def,u=this._context,{eventStore:p}=u.getCurrentData(),N=Yi(p,o.instanceId);N=io(N,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},n,u);let ee=new Mn(u,r,o);this._def=N.defs[r.defId],this._instance=N.instances[o.instanceId],u.dispatch({type:"MERGE_EVENTS",eventStore:N}),u.emitter.trigger("eventChange",{oldEvent:ee,event:this,relatedEvents:xi(N,u,o),revert(){u.dispatch({type:"RESET_EVENTS",eventStore:p})}})}}remove(){let n=this._context,o=oo(this);n.dispatch({type:"REMOVE_EVENTS",eventStore:o}),n.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){n.dispatch({type:"MERGE_EVENTS",eventStore:o})}})}get source(){let{sourceId:n}=this._def;return n?new mi(this._context,this._context.getCurrentData().eventSources[n]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let n=this._instance;return n?this._context.dateEnv.formatIso(n.range.start,{omitTime:this._def.allDay,forcedTzo:n.forcedStartTzo}):""}get endStr(){let n=this._instance;return n&&this._def.hasEnd?this._context.dateEnv.formatIso(n.range.end,{omitTime:this._def.allDay,forcedTzo:n.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(n={}){let o=this._def,{ui:r}=o,{startStr:u,endStr:p}=this,N={allDay:o.allDay};return o.title&&(N.title=o.title),u&&(N.start=u),p&&(N.end=p),o.publicId&&(N.id=o.publicId),o.groupId&&(N.groupId=o.groupId),o.url&&(N.url=o.url),r.display&&"auto"!==r.display&&(N.display=r.display),n.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?N.color=r.backgroundColor:(r.backgroundColor&&(N.backgroundColor=r.backgroundColor),r.borderColor&&(N.borderColor=r.borderColor)),r.textColor&&(N.textColor=r.textColor),r.classNames.length&&(N.classNames=r.classNames),Object.keys(o.extendedProps).length&&(n.collapseExtendedProps?Object.assign(N,o.extendedProps):N.extendedProps=o.extendedProps),N}toJSON(){return this.toPlainObject()}}function oo(i){let n=i._def,o=i._instance;return{defs:{[n.defId]:n},instances:o?{[o.instanceId]:o}:{}}}function xi(i,n,o){let{defs:r,instances:u}=i,p=[],N=o?o.instanceId:"";for(let z in u){let ee=u[z];ee.instanceId!==N&&p.push(new Mn(n,r[ee.defId],ee))}return p}function ro(i,n,o,r){let u={},p={},N={},z=[],ee=[],Se=Oi(i.defs,n);for(let ye in i.defs){let at=i.defs[ye];"inverse-background"===Se[at.defId].display&&(at.groupId?(u[at.groupId]=[],N[at.groupId]||(N[at.groupId]=at)):p[ye]=[])}for(let ye in i.instances){let at=i.instances[ye],Ze=i.defs[at.defId],Gt=Se[Ze.defId],an=at.range,cn=!Ze.allDay&&r?Pi(an,r):an,Ln=An(cn,o);Ln&&("inverse-background"===Gt.display?Ze.groupId?u[Ze.groupId].push(Ln):p[at.defId].push(Ln):"none"!==Gt.display&&("background"===Gt.display?z:ee).push({def:Ze,ui:Gt,instance:at,range:Ln,isStart:cn.start&&cn.start.valueOf()===Ln.start.valueOf(),isEnd:cn.end&&cn.end.valueOf()===Ln.end.valueOf()}))}for(let ye in u){let Ze=qt(u[ye],o);for(let Gt of Ze){let an=N[ye];z.push({def:an,ui:Se[an.defId],instance:null,range:Gt,isStart:!1,isEnd:!1})}}for(let ye in p){let Ze=qt(p[ye],o);for(let Gt of Ze)z.push({def:i.defs[ye],ui:Se[ye],instance:null,range:Gt,isStart:!1,isEnd:!1})}return{bg:z,fg:ee}}function Bo(i){return"background"===i.ui.display||"inverse-background"===i.ui.display}function so(i,n){i.fcSeg=n}function Wo(i){return i.fcSeg||i.parentNode.fcSeg||null}function Oi(i,n){return jt(i,o=>ao(o,n))}function ao(i,n){let o=[];return n[""]&&o.push(n[""]),n[i.defId]&&o.push(n[i.defId]),o.push(i.ui),Wi(o)}function qo(i,n){let o=i.map(Qo);return o.sort((r,u)=>function Jt(i,n,o){let r,u;for(r=0;r<o.length;r+=1)if(u=De(i,n,o[r]),u)return u;return 0}(r,u,n)),o.map(r=>r._seg)}function Qo(i){let{eventRange:n}=i,o=n.def,r=n.instance?n.instance.range:n.range,u=r.start?r.start.valueOf():0,p=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},o.extendedProps),o),{id:o.publicId,start:u,end:p,duration:p-u,allDay:Number(o.allDay),_seg:i})}function Jo(i,n){let{pluginHooks:o}=n,r=o.isDraggableTransformers,{def:u,ui:p}=i.eventRange,N=p.startEditable;for(let z of r)N=z(N,u,p,n);return N}function Ko(i,n){return i.isStart&&i.eventRange.ui.durationEditable&&n.options.eventResizableFromStart}function lo(i,n,o,r,u,p,N){let{dateEnv:z,options:ee}=o,{displayEventTime:Se,displayEventEnd:ye}=ee,at=i.eventRange.def,Ze=i.eventRange.instance;null==Se&&(Se=!1!==r),null==ye&&(ye=!1!==u);let Gt=Ze.range.start,an=Ze.range.end,cn=p||i.start||i.eventRange.range.start,Ln=N||i.end||i.eventRange.range.end,fi=rn(Gt).valueOf()===rn(cn).valueOf(),hi=rn(Pn(an,-1)).valueOf()===rn(Pn(Ln,-1)).valueOf();return Se&&!at.allDay&&(fi||hi)?(cn=fi?Gt:cn,Ln=hi?an:Ln,ye&&at.hasEnd?z.formatRange(cn,Ln,n,{forcedStartTzo:p?null:Ze.forcedStartTzo,forcedEndTzo:N?null:Ze.forcedEndTzo}):z.format(cn,n,{forcedTzo:p?null:Ze.forcedStartTzo})):""}function er(i,n,o){let r=i.eventRange.range;return{isPast:r.end<=(o||n.start),isFuture:r.start>=(o||n.end),isToday:n&&pi(n,r.start)}}function _o(i){let n=["fc-event"];return i.isMirror&&n.push("fc-event-mirror"),i.isDraggable&&n.push("fc-event-draggable"),(i.isStartResizable||i.isEndResizable)&&n.push("fc-event-resizable"),i.isDragging&&n.push("fc-event-dragging"),i.isResizing&&n.push("fc-event-resizing"),i.isSelected&&n.push("fc-event-selected"),i.isStart&&n.push("fc-event-start"),i.isEnd&&n.push("fc-event-end"),i.isPast&&n.push("fc-event-past"),i.isToday&&n.push("fc-event-today"),i.isFuture&&n.push("fc-event-future"),n}function tr(i){return i.instance?i.instance.instanceId:`${i.def.defId}:${i.range.start.toISOString()}`}function co(i,n){let{def:o,instance:r}=i.eventRange,{url:u}=o;if(u)return{href:u};let{emitter:p,options:N}=n,{eventInteractive:z}=N;return null==z&&(z=o.interactive,null==z&&(z=!!p.hasHandlers("eventClick"))),z?Je(ee=>{p.trigger("eventClick",{el:ee.target,event:new Mn(n,o,r),jsEvent:ee,view:n.viewApi})}):{}}const nr={start:q,end:q,allDay:Boolean};function or(i,n){return function Ai(i,n){return(null===i.start?null:i.start.valueOf())===(null===n.start?null:n.start.valueOf())&&(null===i.end?null:i.end.valueOf())===(null===n.end?null:n.end.valueOf())}(i.range,n.range)&&i.allDay===n.allDay&&function rr(i,n){for(let o in n)if("range"!==o&&"allDay"!==o&&i[o]!==n[o])return!1;for(let o in i)if(!(o in n))return!1;return!0}(i,n)}function sr(i,n,o){return Object.assign(Object.assign({},fo(i,n,o)),{timeZone:n.timeZone})}function fo(i,n,o){return{start:n.toDate(i.start),end:n.toDate(i.end),startStr:n.formatIso(i.start,{omitTime:o}),endStr:n.formatIso(i.end,{omitTime:o})}}function lr(i,n,o){let r=!1,u=function(z){r||(r=!0,n(z))},p=function(z){r||(r=!0,o(z))},N=i(u,p);N&&"function"==typeof N.then&&N.then(u,p)}class Co extends Error{constructor(n,o){super(n),this.response=o}}function _r(i,n,o){const r={method:i=i.toUpperCase()};return"GET"===i?n+=(-1===n.indexOf("?")?"?":"&")+new URLSearchParams(o):(r.body=new URLSearchParams(o),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(n,r).then(u=>{if(u.ok)return u.json().then(p=>[p,u],()=>{throw new Co("Failure parsing JSON",u)});throw new Co("Request failed",u)})}let Gi;function po(){return null==Gi&&(Gi=function Ti(){if(typeof document>"u")return!0;let i=document.createElement("div");i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.innerHTML="<table><tr><td><div></div></td></tr></table>",i.querySelector("table").style.height="100px",i.querySelector("div").style.height="100%",document.body.appendChild(i);let o=i.querySelector("div").offsetHeight>0;return document.body.removeChild(i),o}()),Gi}class cr extends Ht{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Ve(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Ve(()=>{this.setState({forPrint:!1})})}}render(){let{props:n}=this,{options:o}=n,{forPrint:r}=this.state,u=r||"auto"===o.height||"auto"===o.contentHeight,p=u||null==o.height?"":o.height,N=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${o.direction}
1`,n.theme.getClass("root")];return po()||N.push("fc-liquid-hack"),n.children(N,p,u,r)}componentDidMount(){let{emitter:n}=this.props;n.on("_beforeprint",this.handleBeforePrint),n.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:n}=this.props;n.off("_beforeprint",this.handleBeforePrint),n.off("_afterprint",this.handleAfterPrint)}}class f{constructor(n){this.component=n.component,this.isHitComboAllowed=n.isHitComboAllowed||null}destroy(){}}function s(i,n){return{component:i,el:n.el,useEventCenter:null==n.useEventCenter||n.useEventCenter,isHitComboAllowed:n.isHitComboAllowed||null}}function c(i){return{[i.component.uid]:i}}const _={};let E=(()=>{class i extends d.uA{constructor(o,r){super(o,r),this.handleRefresh=()=>{let u=this.computeTiming();u.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(u.state),this.clearTimeout(),this.setTimeout(u.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:o,state:r}=this;return o.children(r.nowDate,r.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(o){o.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let N,z,{props:o,context:r}=this,u=r.nowManager.getDateMarker(),{nowIndicatorSnap:p}=r.options;return"auto"===p&&(p=/year|month|week|day/.test(o.unit)||1===(o.unitValue||1)),p?(N=r.dateEnv.startOf(u,o.unit),z=r.dateEnv.add(N,et(1,o.unit)).valueOf()-u.valueOf()):(N=u,z=6e4),z=Math.min(864e5,z),{state:{nowDate:N,todayRange:m(N)},waitMs:z}}setTimeout(o=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const r=this.computeTiming();this.setState(r.state,()=>{this.setTimeout(r.waitMs)})},o)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}return i.contextType=bt,i})();function m(i){let n=rn(i);return{start:n,end:pn(n,1)}}class h{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(n){this.currentDataManager.dispatch(n)}get view(){return this.getCurrentData().viewApi}batchRendering(n){n()}updateSize(){this.trigger("_resize",!0)}setOption(n,o){this.dispatch({type:"SET_OPTION",optionName:n,rawOptionValue:o})}getOption(n){return this.currentDataManager.currentCalendarOptionsInput[n]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(n,o){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[n]?r.emitter.on(n,o):console.warn(`Unknown listener name '${n}'`)}off(n,o){this.currentDataManager.emitter.off(n,o)}trigger(n,...o){this.currentDataManager.emitter.trigger(n,...o)}changeView(n,o){this.batchRendering(()=>{if(this.unselect(),o)if(o.start&&o.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:o});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n,dateMarker:r.createMarker(o)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n})})}zoomTo(n,o){let u;u=this.getCurrentData().viewSpecs[o=o||"day"]||this.getUnitViewSpec(o),this.unselect(),this.dispatch(u?{type:"CHANGE_VIEW_TYPE",viewType:u.type,dateMarker:n}:{type:"CHANGE_DATE",dateMarker:n})}getUnitViewSpec(n){let p,N,{viewSpecs:o,toolbarConfig:r}=this.getCurrentData(),u=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]);for(let z in o)u.push(z);for(p=0;p<u.length;p+=1)if(N=o[u[p]],N&&N.singleUnit===n)return N;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.addYears(n.currentDate,-1)})}nextYear(){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.addYears(n.currentDate,1)})}today(){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.nowManager.getDateMarker()})}gotoDate(n){let o=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:o.dateEnv.createMarker(n)})}incrementDate(n){let o=this.getCurrentData(),r=et(n);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:o.dateEnv.add(o.currentDate,r)}
vendor: 27,303 bytes, line 1
1))}getDate(){let n=this.getCurrentData();return n.dateEnv.toDate(n.currentDate)}formatDate(n,o){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(n),Re(o))}formatRange(n,o,r){let{dateEnv:u}=this.getCurrentData();return u.formatRange(u.createMarker(n),u.createMarker(o),Re(r),r)}formatIso(n,o){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(n),{omitTime:o})}select(n,o){let r;r=null==o?null!=n.start?n:{start:n,end:null}:{start:n,end:o};let u=this.getCurrentData(),p=function ir(i,n,o){let r=function uo(i,n){let{refined:o,extra:r}=we(i,nr),u=o.start?n.createMarkerMeta(o.start):null,p=o.end?n.createMarkerMeta(o.end):null,{allDay:N}=o;return null==N&&(N=u&&u.isTimeUnspecified&&(!p||p.isTimeUnspecified)),Object.assign({range:{start:u?u.marker:null,end:p?p.marker:null},allDay:N},r)}(i,n),{range:u}=r;if(!u.start)return null;if(!u.end){if(null==o)return null;u.end=n.add(u.start,o)}return r}(r,u.dateEnv,et({days:1}));p&&(this.dispatch({type:"SELECT_DATES",selection:p}),to(p,null,u))}unselect(n){let o=this.getCurrentData();o.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function Ho(i,n){n.emitter.trigger("unselect",{jsEvent:i?i.origEvent:null,view:n.viewApi||n.calendarApi.view})}(n,o))}addEvent(n,o){if(n instanceof Mn){let N=n._def,z=n._instance;return this.getCurrentData().eventStore.defs[N.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:yi({def:N,instance:z})}),this.triggerEventAdd(n)),n}let u,r=this.getCurrentData();if(o instanceof mi)u=o.internalEventSource;else if("boolean"==typeof o)o&&([u]=t(r.eventSources));else if(null!=o){let N=this.getEventSourceById(o);if(!N)return console.warn(`Could not find an event source with ID "${o}"`),null;u=N.internalEventSource}let p=Hi(n,u,r,!1);if(p){let N=new Mn(r,p.def,p.def.recurringDef?null:p.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:yi(p)}),this.triggerEventAdd(N),N}return null}triggerEventAdd(n){let{emitter:o}=this.getCurrentData();o.trigger("eventAdd",{event:n,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:oo(n)})}})}getEventById(n){let o=this.getCurrentData(),{defs:r,instances:u}=o.eventStore;n=String(n);for(let p in r){let N=r[p];if(N.publicId===n){if(N.recurringDef)return new Mn(o,N,null);for(let z in u){let ee=u[z];if(ee.defId===N.defId)return new Mn(o,N,ee)}}}return null}getEvents(){let n=this.getCurrentData();return xi(n.eventStore,n)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let n=this.getCurrentData(),o=n.eventSources,r=[];for(let u in o)r.push(new mi(n,o[u]));return r}getEventSourceById(n){let o=this.getCurrentData(),r=o.eventSources;n=String(n);for(let u in r)if(r[u].publicId===n)return new mi(o,r[u]);return null}addEventSource(n){let o=this.getCurrentData();if(n instanceof mi)return o.eventSources[n.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n.internalEventSource]}),n;let r=qi(n,o);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new mi(o,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(n){let o=et(n);o&&this.trigger("_scrollRequest",{time:o})}}function V(i,n){return i.left>=n.left&&i.left<n.right&&i.top>=n.top&&i.top<n.bottom}function W(i,n){let o={left:Math.max(i.left,n.left),right:Math.min(i.right,n.right),top:Math.max(i.top,n.top),bottom:Math.min(i.bottom,n.bottom)};return o.left<o.right&&o.top<o.bottom&&o}function le(i,n){return{left:Math.min(Math.max(i.left,n.left),n.right),top:Math.min(Math.max(i.top,n.top),n.bottom)}}function Pe(i){return{left:(i.left+i.right)/2,top:(i.top+i.bottom)/2}}function Xe(i,n){return{left:i.left-n.left,top:i.top-n.top}}const Oe={defs:{},instances:{}};class st{constructor(){this.getKeysForEventDefs=I(this._getKeysForEventDefs),this.splitDateSelection=I(this._splitDateSpan),this.splitEventStore=I(this._splitEventStore),this.splitIndividualUi=I(this._splitIndividualUi),this.splitEventDrag=I(this._splitInteraction),this.splitEventResize=I(this._splitInteraction),this.eventUiBuilders={}}splitProps(n){let o=this.getKeyInfo(n),r=this.getKeysForEventDefs(n.eventStore),u=this.splitDateSelection(n.dateSelection),p=this.splitIndividualUi(n.eventUiBases,r),N=this.splitEventStore(n.eventStore,r),z=this.splitEventDrag(n.eventDrag),ee=this.splitEventResize(n.eventResize),Se={};this.eventUiBuilders=jt(o,(ye,at)=>this.eventUiBuilders[at]||I(k));for(let ye in o){let at=o[ye],Ze=N[ye]||Oe;Se[ye]={businessHours:at.businessHours||n.businessHours,dateSelection:u[ye]||null,eventStore:Ze,eventUiBases:(0,this.eventUiBuilders[ye])(n.eventUiBases[""],at.ui,p[ye]),eventSelection:Ze.instances[n.eventSelection]?n.eventSelection:"",eventDrag:z[ye]||null,eventResize:ee[ye]||null}}return Se}_splitDateSpan(n){let o={};if(n){let r=this.getKeysForDateSpan(n);for(let u of r)o[u]=n}return o}_getKeysForEventDefs(n){return jt(n.defs,o=>this.getKeysForEventDef(o))}_splitEventStore(n,o){let{defs:r,instances:u}=n,p={};for(let N in r)for(let z of o[N])p[z]||(p[z]={defs:{},instances:{}}),p[z].defs[N]=r[N];for(let N in u){let z=u[N];for(let ee of o[z.defId])p[ee]&&(p[ee].instances[N]=z)}return p}_splitIndividualUi(n,o){let r={};for(let u in n)if(u)for(let p of o[u])r[p]||(r[p]={}),r[p][u]=n[u];return r}_splitInteraction(n){let o={};if(n){let r=this._splitEventStore(n.affectedEvents,this._getKeysForEventDefs(n.affectedEvents)),u=this._getKeysForEventDefs(n.mutatedEvents),p=this._splitEventStore(n.mutatedEvents,u),N=z=>{o[z]||(o[z]={affectedEvents:r[z]||Oe,mutatedEvents:p[z]||Oe,isEvent:n.isEvent})};for(let z in r)N(z);for(let z in p)N(z)}return o}}function k(i,n,o){let r=[];i&&r.push(i),n&&r.push(n);let u={"":Wi(r)};return o&&Object.assign(u,o),u}function fe(i,n,o,r){return{dow:i.getUTCDay(),isDisabled:!(!r||r.activeRange&&pi(r.activeRange,i)),isOther:!(!r||pi(r.currentRange,i)),isToday:!(!n||!pi(n,i)),isPast:!!(o?i<o:n&&i<n.start),isFuture:!!(o?i>o:n&&i>=n.end)}}function Me(i,n){let o=["fc-day",`fc-day-${Qn[i.dow]}`];return i.isDisabled?o.push("fc-day-disabled"):(i.isToday&&(o.push("fc-day-today"),o.push(n.getClass("today"))),i.isPast&&o.push("fc-day-past"),i.isFuture&&o.push("fc-day-future"),i.isOther&&o.push("fc-day-other")),o}const oe=Re({year:"numeric",month:"long",day:"numeric"}),Qt=Re({week:"long"});function sn(i,n,o="day",r=!0){const{dateEnv:u,options:p,calendarApi:N}=i;let z=u.format(n,"week"===o?Qt:oe);if(p.navLinks){let ee=u.toDate(n);const Se=ye=>{let at="day"===o?p.navLinkDayClick:"week"===o?p.navLinkWeekClick:null;"function"==typeof at?at.call(N,u.toDate(n),ye):("string"==typeof at&&(o=at),N.zoomTo(n,o))};return Object.assign({title:J(p.navLinkHint,[z,ee],z),"data-navlink":""},r?en(Se):{onClick:Se})}return{"aria-label":z}}let ki,Sn=null;function mo(i){return{x:i.offsetHeight-i.clientHeight,y:i.offsetWidth-i.clientWidth}}function Or(i,n=!1,o){let r=o?i.getBoundingClientRect():Nr(i),u=function Mr(i,n=!1){let o=window.getComputedStyle(i),r=parseInt(o.borderLeftWidth,10)||0,u=parseInt(o.borderRightWidth,10)||0,p=parseInt(o.borderTopWidth,10)||0,N=parseInt(o.borderBottomWidth,10)||0,z=mo(i),ee=z.y-r-u,ye={borderLeft:r,borderRight:u,borderTop:p,borderBottom:N,scrollbarBottom:z.x-p-N,scrollbarLeft:0,scrollbarRight:0};return function Fi(){return null===Sn&&(Sn=function dr(){let i=document.createElement("div");vt(i,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),i.innerHTML="<div></div>",document.body.appendChild(i);let o=i.firstChild.getBoundingClientRect().left>i.getBoundingClientRect().left;return Ce(i),o}()),Sn}()&&"rtl"===o.direction?ye.scrollbarLeft=ee:ye.scrollbarRight=ee,n&&(ye.paddingLeft=parseInt(o.paddingLeft,10)||0,ye.paddingRight=parseInt(o.paddingRight,10)||0,ye.paddingTop=parseInt(o.paddingTop,10)||0,ye.paddingBottom=parseInt(o.paddingBottom,10)||0),ye}(i,n),p={left:r.left+u.borderLeft+u.scrollbarLeft,right:r.right-u.borderRight-u.scrollbarRight,top:r.top+u.borderTop,bottom:r.bottom-u.borderBottom-u.scrollbarBottom};return n&&(p.left+=u.paddingLeft,p.right-=u.paddingRight,p.top+=u.paddingTop,p.bottom-=u.paddingBottom),p}function Nr(i){let n=i.getBoundingClientRect();return{left:n.left+window.scrollX,top:n.top+window.scrollY,right:n.right+window.scrollX,bottom:n.bottom+window.scrollY}}function hr(i){let n=[];for(;i instanceof HTMLElement;){let o=window.getComputedStyle(i);if("fixed"===o.position)break;/(auto|scroll)/.test(o.overflow+o.overflowY+o.overflowX)&&n.push(i),i=i.parentNode}return n}class Rr{constructor(n,o,r,u){this.els=o;let p=this.originClientRect=n.getBoundingClientRect();r&&this.buildElHorizontals(p.left),u&&this.buildElVerticals(p.top)}buildElHorizontals(n){let o=[],r=[];for(let u of this.els){let p=u.getBoundingClientRect();o.push(p.left-n),r.push(p.right-n)}this.lefts=o,this.rights=r}buildElVerticals(n){let o=[],r=[];for(let u of this.els){let p=u.getBoundingClientRect();o.push(p.top-n),r.push(p.bottom-n)}this.tops=o,this.bottoms=r}leftToIndex(n){let p,{lefts:o,rights:r}=this,u=o.length;for(p=0;p<u;p+=1)if(n>=o[p]&&n<r[p])return p}topToIndex(n){let p,{tops:o,bottoms:r}=this,u=o.length;for(p=0;p<u;p+=1)if(n>=o[p]&&n<r[p])return p}getWidth(n){return this.rights[n]-this.lefts[n]}getHeight(n){return this.bottoms[n]-this.tops[n]}similarTo(n){return To(this.tops||[],n.tops||[])&&To(this.bottoms||[],n.bottoms||[])&&To(this.lefts||[],n.lefts||[])&&To(this.rights||[],n.rights||[])}}function To(i,n){const o=i.length;if(o!==n.length)return!1;for(let r=0;r<o;r++)if(Math.round(i[r])!==Math.round(n[r]))return!1;return!0}class fr{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class vr extends fr{constructor(n){super(),this.el=n}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(n){this.el.scrollTop=n}setScrollLeft(n){this.el.scrollLeft=n}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Dr extends fr{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(n){window.scroll(window.scrollX,n)}setScrollLeft(n){window.scroll(n,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Sr extends Ht{constructor(){super(...arguments),this.uid=_t()}prepareHits(){}queryHit(n,o,r,u){return null}isValidSegDownEl(n){return!this.props.eventDrag&&!this.props.eventResize&&!Fe(n,".fc-event-mirror")}isValidDateDownEl(n){return!(Fe(n,".fc-event:not(.fc-bg-event)")||Fe(n,".fc-more-link")||Fe(n,"a[data-navlink]")||Fe(n,".fc-popover"))}}class br{constructor(n=(o=>o.thickness||1)){this.getEntryThickness=n,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(n){let o=[];for(let r of n)this.insertEntry(r,o);return o}insertEntry(n,o){let r=this.findInsertion(n);this.isInsertionValid(r,n)?this.insertEntryAt(n,r):this.handleInvalidInsertion(r,n,o)}isInsertionValid(n,o){return(-1===this.maxCoord||n.levelCoord+this.getEntryThickness(o)<=this.maxCoord)&&(-1===this.maxStackCnt||n.stackCnt<this.maxStackCnt)}handleInvalidInsertion(n,o,r){if(this.allowReslicing&&n.touchingEntry){const u=Object.assign(Object.assign({},o),{span:mr(o.span,n.touchingEntry.span)});r.push(u),this.splitEntry(o,n.touchingEntry,r)}else r.push(o)}splitEntry(n,o,r){let u=n.span,p=o.span;u.start<p.start&&this.insertEntry({index:n.index,thickness:n.thickness,span:{start:u.start,end:p.start}},r),u.end>p.end&&this.insertEntry({index:n.index,thickness:n.thickness,span:{start:p.end,end:u.end}},r)}insertEntryAt(n,o){let{entriesByLevel:r,levelCoords:u}=this;-1===o.lateral?(xt(u,o.level,o.levelCoord),xt(r,o.level,[n])):xt(r[o.level],o.lateral,n),this.stackCnts[pr(n)]=o.stackCnt}findInsertion(n){let{levelCoords:o,entriesByLevel:r,strictOrder:u,stackCnts:p}=this,N=o.length,z=0,ee=-1,Se=-1,ye=null,at=0;for(let an=0;an<N;an+=1){const cn=o[an];if(!u&&cn>=z+this.getEntryThickness(n))break;let fi,Ln=r[an],hi=Gr(Ln,n.span.start,Cr),Tr=hi[0]+hi[1];for(;(fi=Ln[Tr])&&fi.span.start<n.span.end;){let gr=cn+this.getEntryThickness(fi);gr>z&&(z=gr,ye=fi,ee=an,Se=Tr),gr===z&&(at=Math.max(at,p[pr(fi)]+1)),Tr+=1}}let Ze=0;if(ye)for(Ze=ee+1;Ze<N&&o[Ze]<z;)Ze+=1;let Gt=-1;return Ze<N&&o[Ze]===z&&(Gt=Gr(r[Ze],n.span.end,Cr)[0]),{touchingLevel:ee,touchingLateral:Se,touchingEntry:ye,stackCnt:at,levelCoord:z,level:Ze,lateral:Gt}}toRects(){let{entriesByLevel:n,levelCoords:o}=this,r=n.length,u=[];for(let p=0;p<r;p+=1){let N=n[p],z=o[p];for(let ee of N)u.push(Object.assign(Object.assign({},ee),{thickness:this.getEntryThickness(ee),levelCoord:z}))}return u}}function Cr(i){return i.span.end}function pr(i){return i.index+":"+i.span.start}function yr(i){let n=[];for(let o of i){let r=[],u={span:o.span,entries:[o]};for(let p of n)mr(p.span,u.span)?u={entries:p.entries.concat(u.entries),span:Lr(p.span,u.span)}:r.push(p);r.push(u),n=r}return n}function Lr(i,n){return{start:Math.min(i.start,n.start),end:Math.max(i.end,n.end)}}function mr(i,n){let o=Math.max(i.start,n.start),r=Math.min(i.end,n.end);return o<r?{start:o,end:r}:null}function xt(i,n,o){i.splice(n,0,o)}function Gr(i,n,o){let r=0,u=i.length;if(!u||n<o(i[r]))return[0,0];if(n>o(i[u-1]))return[u,0];for(;r<u;){let p=Math.floor(r+(u-r)/2),N=o(i[p]);if(n<N)u=p;else{if(!(n>N))return[p,1];r=p+1}}return[r,0]}class is{constructor(n,o){this.emitter=new eo}destroy(){}setMirrorIsVisible(n){}setMirrorNeedsRevert(n){}setAutoScrollEnabled(n){}}const os={};Boolean;const zr="fc-col-header-cell";function Yr(i){return i.text}class as extends Ht{render(){let{dateEnv:n,options:o,theme:r,viewApi:u}=this.context,{props:p}=this,{date:N,dateProfile:z}=p,ee=fe(N,p.todayRange,null,z),Se=[zr].concat(Me(ee,r)),ye=n.format(N,p.dayHeaderFormat),at=!ee.isDisabled&&p.colCnt>1?sn(this.context,N):{},Ze=n.toDate(N);n.namedTimeZoneImpl&&(Ze=Pn(Ze,36e5));let Gt=Object.assign(Object.assign(Object.assign({date:Ze,view:u},p.extraRenderProps),{text:ye}),ee);return(0,d.n)(yn,{elTag:"th",elClasses:Se,elAttrs:Object.assign({role:"columnheader",colSpan:p.colSpan,"data-date":ee.isDisabled?void 0:ei(N)},p.extraDataAttrs),renderProps:Gt,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:Yr,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},an=>(0,d.n)("div",{className:"fc-scrollgrid-sync-inner"},!ee.isDisabled&&(0,d.n)(an,{elTag:"a",elAttrs:at,elClasses:["fc-col-header-cell-cushion",p.isSticky&&"fc-sticky"]})))}}const ls=Re({weekday:"long"});class _s extends Ht{render(){let{props:n}=this,{dateEnv:o,theme:r,viewApi:u,options:p}=this.context,N=pn(new Date(2592e5),n.dow),z={dow:n.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},ee=o.format(N,n.dayHeaderFormat),Se=Object.assign(Object.assign(Object.assign(Object.assign({date:N},z),{view:u}),n.extraRenderProps),{text:ee});return(0,d.n)(yn,{elTag:"th",elClasses:[zr,...Me(z,r),...n.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:n.colSpan},n.extraDataAttrs),renderProps:Se,generatorName:"dayHeaderContent",customGenerator:p.dayHeaderContent,defaultGenerator:Yr,classNameGenerator:p.dayHeaderClassNames,didMount:p.dayHeaderDidMount,willUnmount:p.dayHeaderWillUnmount},ye=>(0,d.n)("div",{className:"fc-scrollgrid-sync-inner"},(0,d.n)(ye,{elTag:"a",elClasses:["fc-col-header-cell-cushion",n.isSticky&&"fc-sticky"],elAttrs:{"aria-label":o.format(N,ls)}})))}}class cs extends Ht{constructor(){super(...arguments),this.createDayHeaderFormatter=I(ds)}render(){let{context:n}=this,{dates:o,dateProfile:r,datesRepDistinctDays:u,renderIntro:p}=this.props,N=this.createDayHeaderFormatter(n.options.dayHeaderFormat,u,o.length);return(0,d.n)(E,{unit:"day"},(z,ee)=>(0,d.n)("tr",{role:"row"},p&&p("day"),o.map(Se=>u?(0,d.n)(as,{key:Se.toISOString(),date:Se,dateProfile:r,todayRange:ee,colCnt:o.length,dayHeaderFormat:N}):(0,d.n)(_s,{key:Se.getUTCDay(),dow:Se.getUTCDay(),dayHeaderFormat:N}))))}}function ds(i,n,o){return i||function ss(i,n){return Re(!i||n>10?{weekday:"short"}:n>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}(n,o)}class us{constructor(n,o){let r=n.start,{end:u}=n,p=[],N=[],z=-1;for(;r<u;)o.isHiddenDay(r)?p.push(z+.5):(z+=1,p.push(z),N.push(r)),r=pn(r,1);this.dates=N,this.indices=p,this.cnt=N.length}sliceRange(n){let o=this.getDateDayIndex(n.start),r=this.getDateDayIndex(pn(n.end,-1)),u=Math.max(0,o),p=Math.min(this.cnt-1,r);return u=Math.ceil(u),p=Math.floor(p),u<=p?{firstIndex:u,lastIndex:p,isStart:o===u,isEnd:r===p}:null}getDateDayIndex(n){let{indices:o}=this,r=Math.floor(Rn(this.dates[0],n));return r<0?o[0]-1:r>=o.length?o[o.length-1]+1:o[r]}}class Es{constructor(n,o){let u,p,N,{dates:r}=n;if(o){for(p=r[0].getUTCDay(),u=1;u<r.length&&r[u].getUTCDay()!==p;u+=1);N=Math.ceil(r.length/u)}else N=1,u=r.length;this.rowCnt=N,this.colCnt=u,this.daySeries=n,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let n=[];for(let o=0;o<this.rowCnt;o+=1){let r=[];for(let u=0;u<this.colCnt;u+=1)r.push(this.buildCell(o,u));n.push(r)}return n}buildCell(n,o){let r=this.daySeries.dates[n*this.colCnt+o];return{key:r.toISOString(),date:r}}buildHeaderDates(){let n=[];for(let o=0;o<this.colCnt;o+=1)n.push(this.cells[0][o].date);return n}sliceRange(n){let{colCnt:o}=this,r=this.daySeries.sliceRange(n),u=[];if(r){let{firstIndex:p,lastIndex:N}=r,z=p;for(;z<=N;){let ee=Math.floor(z/o),Se=Math.min((ee+1)*o,N+1);u.push({row:ee,firstCol:z%o,lastCol:(Se-1)%o,isStart:r.isStart&&z===p,isEnd:r.isEnd&&Se-1===N}),z=Se}}return u}}class fs{constructor(){this.sliceBusinessHours=I(this._sliceBusinessHours),this.sliceDateSelection=I(this._sliceDateSpan),this.sliceEventStore=I(this._sliceEventStore),this.sliceEventDrag=I(this._sliceInteraction),this.sliceEventResize=I(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(n,o,r,u,...p){let{eventUiBases:N}=n,z=this.sliceEventStore(n.eventStore,N,o,r,...p);return{dateSelectionSegs:this.sliceDateSelection(n.dateSelection,o,r,N,u,...p),businessHourSegs:this.sliceBusinessHours(n.businessHours,o,r,u,...p),fgEventSegs:z.fg,bgEventSegs:z.bg,eventDrag:this.sliceEventDrag(n.eventDrag,N,o,r,...p),eventResize:this.sliceEventResize(n.eventResize,N,o,r,...p),eventSelection:n.eventSelection}}sliceNowDate(n,o,r,u,...p){return this._sliceDateSpan({range:{start:n,end:Pn(n,1)},allDay:!1},o,r,{},u,...p)}_sliceBusinessHours(n,o,r,u,...p){return n?this._sliceEventStore(Bn(n,Vr(o,!!r),u),{},o,r,...p).bg:[]}_sliceEventStore(n,o,r,u,...p){if(n){let N=ro(n,o,Vr(r,!!u),u);return{bg:this.sliceEventRanges(N.bg,p),fg:this.sliceEventRanges(N.fg,p)}}return{bg:[],fg:[]}}_sliceInteraction(n,o,r,u,...p){if(!n)return null;let N=ro(n.mutatedEvents,o,Vr(r,!!u),u);return{segs:this.sliceEventRanges(N.fg,p),affectedInstances:n.affectedEvents.instances,isEvent:n.isEvent}}_sliceDateSpan(n,o,r,u,p,...N){if(!n)return[];let z=Vr(o,!!r),ee=An(n.range,z);if(ee){let Se=function ar(i,n,o){let r=zi({editable:!1},o),u=bi(r.refined,r.extra,"",i.allDay,!0,o);return{def:u,ui:ao(u,n),instance:vi(u.defId,i.range),range:i.range,isStart:!0,isEnd:!0}}(n=Object.assign(Object.assign({},n),{range:ee}),u,p),ye=this.sliceRange(n.range,...N);for(let at of ye)at.eventRange=Se;return ye}return[]}sliceEventRanges(n,o){let r=[];for(let u of n)r.push(...this.sliceEventRange(u,o));return r}sliceEventRange(n,o){let r=n.range;this.forceDayIfListItem&&"list-item"===n.ui.display&&(r={start:r.start,end:pn(r.start,1)});let u=this.sliceRange(r,...o);for(let p of u)p.eventRange=n,p.isStart=n.isStart&&p.isStart,p.isEnd=n.isEnd&&p.isEnd;return u}}function Vr(i,n){let o=i.activeRange;return n?o:{start:Pn(o.start,i.slotMinTime.milliseconds),end:Pn(o.end,i.slotMaxTime.milliseconds-864e5)}}function Cs(i,n,o){let{instances:r}=i.mutatedEvents;for(let u in r)if(!ni(n.validRange,r[u].range))return!1;return Br({eventDrag:i},o)}function ps(i,n,o){return!!ni(n.validRange,i.range)&&Br({dateSelection:i},o)}function Br(i,n){let o=n.getCurrentData(),r=Object.assign({businessHours:o.businessHours,dateSelection:"",eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},i);return(n.pluginHooks.isPropsValid||ms)(r,n)}function ms(i,n,o={},r){return!(i.eventDrag&&!function Ts(i,n,o,r){let u=n.getCurrentData(),p=i.eventDrag,N=p.mutatedEvents,z=N.defs,ee=N.instances,Se=Oi(z,p.isEvent?i.eventUiBases:{"":u.selectionConfig});r&&(Se=jt(Se,r));let ye=function Go(i,n){return{defs:i.defs,instances:Zt(i.instances,o=>!n[o.instanceId])}}(i.eventStore,p.affectedEvents.instances),at=ye.defs,Ze=ye.instances,Gt=Oi(at,i.eventUiBases);for(let an in ee){let cn=ee[an],Ln=cn.range,fi=Se[cn.defId],hi=z[cn.defId];if(!Wr(fi.constraints,Ln,ye,i.businessHours,n))return!1;let{eventOverlap:Tr}=n.options,gr="function"==typeof Tr?Tr:null;for(let Ur in Ze){let Ar=Ze[Ur];if(ui(Ln,Ar.range)&&(!1===Gt[Ar.defId].overlap&&p.isEvent||!1===fi.overlap||gr&&!gr(new Mn(n,at[Ar.defId],Ar),new Mn(n,hi,cn))))return!1}let ns=u.eventStore;for(let Ur of fi.allows){let Hr,Ar=Object.assign(Object.assign({},o),{range:cn.range,allDay:hi.allDay}),jr=ns.defs[hi.defId];if(Hr=jr?new Mn(n,jr,ns.instances[an]):new Mn(n,hi),!Ur($i(Ar,n),Hr))return!1}}return!0}(i,n,o,r)||i.dateSelection&&!function gs(i,n,o,r){let u=i.eventStore,p=u.defs,N=u.instances,z=i.dateSelection,ee=z.range,{selectionConfig:Se}=n.getCurrentData();if(r&&(Se=r(Se)),!Wr(Se.constraints,ee,u,i.businessHours,n))return!1;let{selectOverlap:ye}=n.options,at="function"==typeof ye?ye:null;for(let Ze in N){let Gt=N[Ze];if(ui(ee,Gt.range)&&(!1===Se.overlap||at&&!at(new Mn(n,p[Gt.defId],Gt),null)))return!1}for(let Ze of Se.allows)if(!Ze($i(Object.assign(Object.assign({},o),z),n),null))return!1;return!0}(i,n,o,r))}function Wr(i,n,o,r,u){for(let p of i)if(!Is(As(p,n,o,r,u),n))return!1;return!0}function As(i,n,o,r,u){return"businessHours"===i?Fr(Bn(r,n,u)):"string"==typeof i?Fr(Si(o,p=>p.groupId===i)):"object"==typeof i&&i?Fr(Bn(i,n,u)):[]}function Fr(i){let{instances:n}=i,o=[];for(let r in n)o.push(n[r].range);return o}function Is(i,n){for(let o of i)if(ni(o,n))return!0;return!1}const $r=/^(visible|hidden)$/;class Ns extends Ht{constructor(){super(...arguments),this.handleEl=n=>{this.el=n,bn(this.props.elRef,n)}}render(){let{props:n}=this,{liquid:o,liquidIsAbsolute:r}=n,u=o&&r,p=["fc-scroller"];return o&&p.push(r?"fc-scroller-liquid-absolute":"fc-scroller-liquid"),(0,d.n)("div",{ref:this.handleEl,className:p.join(" "),style:{overflowX:n.overflowX,overflowY:n.overflowY,left:u&&-(n.overcomeLeft||0)||"",right:u&&-(n.overcomeRight||0)||"",bottom:u&&-(n.overcomeBottom||0)||"",marginLeft:!u&&-(n.overcomeLeft||0)||"",marginRight:!u&&-(n.overcomeRight||0)||"",marginBottom:!u&&-(n.overcomeBottom||0)||"",maxHeight:n.maxHeight||""}},n.children)}needsXScrolling(){if($r.test(this.props.overflowX))return!1;let{el:n}=this,o=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=n;for(let u=0;u<r.length;u+=1)if(r[u].getBoundingClientRect().width>o)return!0;return!1}needsYScrolling(){if($r.test(this.props.overflowY))return!1;let{el:n}=this,o=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=n;for(let u=0;u<r.length;u+=1)if(r[u].getBoundingClientRect().height>o)return!0;return!1}getXScrollbarWidth(){return $r.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return $r.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class kr{constructor(n){this.masterCallback=n,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(o,r)=>{let{depths:u,currentMap:p}=this,N=!1,z=!1;null!==o?(N=r in p,p[r]=o,u[r]=(u[r]||0)+1,z=!0):(u[r]-=1,u[r]||(delete p[r],delete this.callbackMap[r],N=!0)),this.masterCallback&&(N&&this.masterCallback(null,String(r)),z&&this.masterCallback(o,String(r)))}}createRef(n){let o=this.callbackMap[n];return o||(o=this.callbackMap[n]=r=>{this.handleValue(r,String(n))}),o}collect(n,o,r){return function Yn(i,n=0,o,r=1){let u=[];null==o&&(o=Object.keys(i).length);for(let p=n;p<o;p+=r){let N=i[p];void 0!==N&&u.push(N)}return u}(this.currentMap,n,o,r)}getAll(){return t(this.currentMap)}}function qr(i,n){return i.liquid&&n.liquid}function Os(i,n){return mn(i,n,_n)}function Ps(i,n){let o=[];for(let r of i){let u=r.span||1;for(let p=0;p<u;p+=1)o.push((0,d.n)("col",{style:{width:"shrink"===r.width?Rs(n):r.width||"",minWidth:r.minWidth||""}}))}return(0,d.n)("colgroup",{},...o)}function Rs(i){return null==i?4:i}function bs(i,n){let o=["fc-scrollgrid-section",`fc-scrollgrid-section-${i.type}`,i.className];return n&&i.liquid&&null==i.maxHeight&&o.push("fc-scrollgrid-section-liquid"),i.isSticky&&o.push("fc-scrollgrid-section-sticky"),o}function ys(i){return(0,d.n)("div",{className:"fc-scrollgrid-sticky-shim",style:{width:i.clientWidth,minWidth:i.tableMinWidth}})}function Ls(i){let{stickyHeaderDates:n}=i;return(null==n||"auto"===n)&&(n="auto"===i.height||"auto"===i.viewHeight),n}function Vs(i){let{stickyFooterScrollbar:n}=i;return(null==n||"auto"===n)&&(n="auto"===i.height||"auto"===i.viewHeight),n}class Qr extends Ht{constructor(){super(...arguments),this.processCols=I(n=>n,Os),this.renderMicroColGroup=I(Ps),this.scrollerRefs=new kr,this.scrollerElRefs=new kr(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:n,state:o,context:r}=this,u=n.sections||[],p=this.processCols(n.cols),N=this.renderMicroColGroup(p,o.shrinkWidth),z=function Ds(i,n){let o=["fc-scrollgrid",n.theme.getClass("table")];return i&&o.push("fc-scrollgrid-liquid"),o}(n.liquid,r);n.collapsibleWidth&&z.push("fc-scrollgrid-collapsible");let ye,ee=u.length,Se=0,at=[],Ze=[],Gt=[];for(;Se<ee&&"header"===(ye=u[Se]).type;)at.push(this.renderSection(ye,N,!0)),Se+=1;for(;Se<ee&&"body"===(ye=u[Se]).type;)Ze.push(this.renderSection(ye,N,!1)),Se+=1;for(;Se<ee&&"footer"===(ye=u[Se]).type;)Gt.push(this.renderSection(ye,N,!0)),Se+=1;let an=!po();const cn={role:"rowgroup"};return(0,d.n)("table",{role:"grid",className:z.join(" "),style:{height:n.height}},!(an||!at.length)&&(0,d.n)("thead",cn,...at),!(an||!Ze.length)&&(0,d.n)("tbody",cn,...Ze),!(an||!Gt.length)&&(0,d.n)("tfoot",cn,...Gt),an&&(0,d.n)("tbody",cn,...at,...Ze,...Gt))}renderSection(n,o,r){return"outerContent"in n?(0,d.n)(d.FK,{key:n.key},n.outerContent):(0,d.n)("tr",{key:n.key,role:"presentation",className:bs(n,this.props.liquid
1).join(" ")},this.renderChunkTd(n,o,n.chunk,r))}renderChunkTd(n,o,r,u){if("outerContent"in r)return r.outerContent;let{props:p}=this,{forceYScrollbars:N,scrollerClientWidths:z,scrollerClientHeights:ee}=this.state,Se=function Ss(i,n){return null!=n.maxHeight||qr(i,n)}(p,n),ye=qr(p,n),at=p.liquid?N?"scroll":Se?"auto":"hidden":"visible",Ze=n.key,Gt=function Ms(i,n,o,r){let{expandRows:u}=o;return"function"==typeof n.content?n.content(o):(0,d.n)("table",{role:"presentation",className:[n.tableClassName,i.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:o.tableMinWidth,width:o.clientWidth,height:u?o.clientHeight:""}},o.tableColGroupNode,(0,d.n)(r?"thead":"tbody",{role:"presentation"},"function"==typeof n.rowContent?n.rowContent(o):n.rowContent))}(n,r,{tableColGroupNode:o,tableMinWidth:"",clientWidth:p.collapsibleWidth||void 0===z[Ze]?null:z[Ze],clientHeight:void 0!==ee[Ze]?ee[Ze]:null,expandRows:n.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},u);return(0,d.n)(u?"th":"td",{ref:r.elRef,role:"presentation"},(0,d.n)("div",{className:"fc-scroller-harness"+(ye?" fc-scroller-harness-liquid":"")},(0,d.n)(Ns,{ref:this.scrollerRefs.createRef(Ze),elRef:this.scrollerElRefs.createRef(Ze),overflowY:at,overflowX:p.liquid?"hidden":"visible",maxHeight:n.maxHeight,liquid:ye,liquidIsAbsolute:!0},Gt)))}_handleScrollerEl(n,o){let r=function $s(i,n){for(let o of i)if(o.key===n)return o;return null}(this.props.sections,o);r&&bn(r.chunk.scrollerElRef,n)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return function vs(i){for(let n of i)if("shrink"===n.width)return!0;return!1}(this.props.cols)?function hs(i){let n=function qe(i,n){let o=i instanceof HTMLElement?[i]:i,r=[];for(let u=0;u<o.length;u+=1){let p=o[u].querySelectorAll(n);for(let N=0;N<p.length;N+=1)r.push(p[N])}return r}(i,".fc-scrollgrid-shrink"),o=0;for(let r of n)o=Math.max(o,Ie(r));return Math.ceil(o)}(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let n=function ur(){return ki||(ki=function Er(){let i=document.createElement("div");i.style.overflow="scroll",i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",document.body.appendChild(i);let n=mo(i);return document.body.removeChild(i),n}()),ki}(),{scrollerRefs:o,scrollerElRefs:r}=this,u=!1,p={},N={};for(let z in o.currentMap){let ee=o.currentMap[z];if(ee&&ee.needsYScrolling()){u=!0;break}}for(let z of this.props.sections){let ee=z.key,Se=r.currentMap[ee];if(Se){let ye=Se.parentNode;p[ee]=Math.floor(ye.getBoundingClientRect().width-(u?n.y:0)),N[ee]=Math.floor(ye.getBoundingClientRect().height)}}return{forceYScrollbars:u,scrollerClientWidths:p,scrollerClientHeights:N}}}Qr.addStateEquality({scrollerClientWidths:_n,scrollerClientHeights:_n});class wr extends Ht{constructor(){super(...arguments),this.buildPublicEvent=I((n,o,r)=>new Mn(n,o,r)),this.handleEl=n=>{this.el=n,bn(this.props.elRef,n),n&&so(n,this.props.seg)}}render(){const{props:n,context:o}=this,{options:r}=o,{seg:u}=n,{eventRange:p}=u,{ui:N}=p,z={event:this.buildPublicEvent(o,p.def,p.instance),view:o.viewApi,timeText:n.timeText,textColor:N.textColor,backgroundColor:N.backgroundColor,borderColor:N.borderColor,isDraggable:!n.disableDragging&&Jo(u,o),isStartResizable:!n.disableResizing&&Ko(u,o),isEndResizable:!n.disableResizing&&(i=u,i.isEnd&&i.eventRange.ui.durationEditable),isMirror:!!(n.isDragging||n.isResizing||n.isDateSelecting),isStart:!!u.isStart,isEnd:!!u.isEnd,isPast:!!n.isPast,isFuture:!!n.isFuture,isToday:!!n.isToday,isSelected:!!n.isSelected,isDragging:!!n.isDragging,isResizing:!!n.isResizing};var i;return(0,d.n)(yn,{elRef:this.handleEl,elTag:n.elTag,elAttrs:n.elAttrs,elClasses:[..._o(z),...u.eventRange.ui.classNames,...n.elClasses||[]],elStyle:n.elStyle,renderProps:z,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:n.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},n.children)}componentDidUpdate(n){this.el&&this.props.seg!==n.seg&&so(this.el,this.props.seg)}}class Jr extends Ht{render(){let{props:n,context:o}=this,{options:r}=o,{seg:u}=n,{ui:p}=u.eventRange,z=lo(u,r.eventTimeFormat||n.defaultTimeFormat,o,n.defaultDisplayEventTime,n.defaultDisplayEventEnd);return(0,d.n)(wr,Object.assign({},n,{elTag:"a",elStyle:{borderColor:p.borderColor,backgroundColor:p.backgroundColor},elAttrs:co(u,o),defaultGenerator:xs,timeText:z}),(ee,Se)=>(0,d.n)(d.FK,null,(0,d.n)(ee,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:Se.textColor}}),!!Se.isStartResizable&&(0,d.n)("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!Se.isEndResizable&&(0,d.n)("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function xs(i){return(0,d.n)("div",{className:"fc-event-main-frame"},i.timeText&&(0,d.n)("div",{className:"fc-event-time"},i.timeText),(0,d.n)("div",{className:"fc-event-title-container"},(0,d.n)("div",{className:"fc-event-title fc-sticky"},i.event.title||(0,d.n)(d.FK,null,"\xa0"))))}Jr.addPropsEquality({seg:_n});const Gs=i=>(0,d.n)(bt.Consumer,null,n=>{let{options:o}=n,r={isAxis:i.isAxis,date:n.dateEnv.toDate(i.date),view:n.viewApi};return(0,d.n)(yn,{elRef:i.elRef,elTag:i.elTag||"div",elAttrs:i.elAttrs,elClasses:i.elClasses,elStyle:i.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:o.nowIndicatorContent,classNameGenerator:o.nowIndicatorClassNames,didMount:o.nowIndicatorDidMount,willUnmount:o.nowIndicatorWillUnmount},i.children)}),Fs=Re({day:"numeric"});class Kr extends Ht{constructor(){super(...arguments),this.refineRenderProps=T(ks)}render(){let{props:n,context:o}=this,{options:r}=o,u=this.refineRenderProps({date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,isMonthStart:n.isMonthStart||!1,showDayNumber:n.showDayNumber,extraRenderProps:n.extraRenderProps,viewApi:o.viewApi,dateEnv:o.dateEnv,monthStartFormat:r.monthStartFormat});return(0,d.n)(yn,{elRef:n.elRef,elTag:n.elTag,elAttrs:Object.assign(Object.assign({},n.elAttrs),u.isDisabled?{}:{"data-date":ei(n.date)}),elClasses:[...Me(u,o.theme),...n.elClasses||[]],elStyle:n.elStyle,renderProps:u,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:n.defaultGenerator,classNameGenerator:u.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},n.children)}}function Zr(i){return!(!i.dayCellContent&&!qn("dayCellContent",i))}function ks(i){let{date:n,dateEnv:o,dateProfile:r,isMonthStart:u}=i,p=fe(n,i.todayRange,null,r),N=i.showDayNumber?o.format(n,u?i.monthStartFormat:Fs):"";return Object.assign(Object.assign(Object.assign({date:o.toDate(n),view:i.viewApi},p),{isMonthStart:u,dayNumberText:N}),i.extraRenderProps)}class ws extends Ht{render(){let{props:n}=this,{seg:o}=n;return(0,d.n)(wr,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:o.eventRange.ui.backgroundColor},defaultGenerator:Xs,seg:o,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:n.isPast,isFuture:n.isFuture,isToday:n.isToday,disableDragging:!0,disableResizing:!0})}}function Xs(i){let{title:n}=i.event;return n&&(0,d.n)("div",{className:"fc-event-title"},i.event.title)}function Us(i){return(0,d.n)("div",{className:`fc-${i}`})}const js=i=>(0,d.n)(bt.Consumer,null,n=>{let{dateEnv:o,options:r}=n,{date:u}=i,p=r.weekNumberFormat||i.defaultFormat,N=o.computeWeekNumber(u),z=o.format(u,p);return(0,d.n)(yn,{elRef:i.elRef,elTag:i.elTag,elAttrs:i.elAttrs,elClasses:i.elClasses,elStyle:i.elStyle,renderProps:{num:N,text:z,date:u},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Hs,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},i.children)});function Hs(i){return i.text}class zs extends Ht{constructor(){super(...arguments),this.state={t
1itleId:Ke()},this.handleRootEl=n=>{this.rootEl=n,this.props.elRef&&bn(this.props.elRef,n)},this.handleDocumentMouseDown=n=>{const o=l(n);this.rootEl.contains(o)||this.handleCloseClick()},this.handleDocumentKeyDown=n=>{"Escape"===n.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:n}=this.props;n&&n()}}render(){let{theme:n,options:o}=this.context,{props:r,state:u}=this,p=["fc-popover",n.getClass("popover")].concat(r.extraClassNames||[]);return(0,R.d5)((0,d.n)("div",Object.assign({},r.extraAttrs,{id:r.id,className:p.join(" "),"aria-labelledby":u.titleId,ref:this.handleRootEl}),(0,d.n)("div",{className:"fc-popover-header "+n.getClass("popoverHeader")},(0,d.n)("span",{className:"fc-popover-title",id:u.titleId},r.title),(0,d.n)("span",{className:"fc-popover-close "+n.getIconClass("close"),title:o.closeHint,onClick:this.handleCloseClick})),(0,d.n)("div",{className:"fc-popover-body "+n.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:n}=this.context,{alignmentEl:o,alignGridTop:r}=this.props,{rootEl:u}=this,p=function Pr(i){let n=hr(i),o=i.getBoundingClientRect();for(let r of n){let u=W(o,r.getBoundingClientRect());if(!u)return null;o=u}return o}(o);if(p){let N=u.getBoundingClientRect(),z=r?Fe(o,".fc-scrollgrid").getBoundingClientRect().top:p.top,ee=n?p.right-N.width:p.left;z=Math.max(z,10),ee=Math.min(ee,document.documentElement.clientWidth-10-N.width),ee=Math.max(ee,10);let Se=u.offsetParent.getBoundingClientRect();vt(u,{top:z-Se.top,left:ee-Se.left})}}}class Ys extends Sr{constructor(){super(...arguments),this.handleRootEl=n=>{this.rootEl=n,n?this.context.registerInteractiveComponent(this,{el:n,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:n,dateEnv:o}=this.context,{props:r}=this,{startDate:u,todayRange:p,dateProfile:N}=r,z=o.format(u,n.dayPopoverFormat);return(0,d.n)(Kr,{elRef:this.handleRootEl,date:u,dateProfile:N,todayRange:p},(ee,Se,ye)=>(0,d.n)(zs,{elRef:ye.ref,id:r.id,title:z,extraClassNames:["fc-more-popover"].concat(ye.className||[]),extraAttrs:ye,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},Zr(n)&&(0,d.n)(ee,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(n,o,r,u){let{rootEl:p,props:N}=this;return n>=0&&n<r&&o>=0&&o<u?{dateProfile:N.dateProfile,dateSpan:Object.assign({allDay:!N.forceTimed,range:{start:N.startDate,end:N.endDate}},N.extraDateSpan),dayEl:p,rect:{left:0,top:0,right:r,bottom:u},layer:1}:null}}class Bs extends Ht{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Ke()},this.handleLinkEl=n=>{this.linkEl=n,this.props.elRef&&bn(this.props.elRef,n)},this.handleClick=n=>{let{props:o,context:r}=this,{moreLinkClick:u}=r.options,p=es(o).start;function N(z){let{def:ee,instance:Se,range:ye}=z.eventRange;return{event:new Mn(r,ee,Se),start:r.dateEnv.toDate(ye.start),end:r.dateEnv.toDate(ye.end),isStart:z.isStart,isEnd:z.isEnd}}"function"==typeof u&&(u=u({date:p,allDay:!!o.allDayDate,allSegs:o.allSegs.map(N),hiddenSegs:o.hiddenSegs.map(N),jsEvent:n,view:r.viewApi})),u&&"popover"!==u?"string"==typeof u&&r.calendarApi.zoomTo(p,u):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:n,state:o}=this;return(0,d.n)(bt.Consumer,null,r=>{let{viewApi:u,options:p,calendarApi:N}=r,{moreLinkText:z}=p,{moreCnt:ee}=n,Se=es(n),ye="function"==typeof z?z.call(N,ee):`+${ee} ${z}`,at=J(p.moreLinkHint,[ee],ye),Ze={num:ee,shortText:`+${ee}`,text:ye,view:u};return(0,d.n)(d.FK,null,!!n.moreCnt&&(0,d.n)(yn,{elTag:n.elTag||"a",elRef:this.handleLinkEl,elClasses:[...n.elClasses||[],"fc-more-link"],elStyle:n.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},n.elAttrs),en(this.handleClick)),{title:at,"aria-expanded":o.isPopoverOpen,"aria-controls":o.isPopoverOpen?o.popoverId:""}),renderProps:Ze,generatorName:"moreLinkContent",customGenerator:p.moreLinkContent,defaultGenerator:n.defaultGenerator||Ws,classNameGenerator:p.moreLinkClassNames,didMount:p.moreLinkDidMount,willUnmount:p.moreLinkWillUnmount},n.children),o.isPopoverOpen&&(0,d.n)(Ys,{id:o.popoverId,startDate:Se.start,endDate:Se.end,dateProfile:n.dateProfile,todayRange:n.todayRange,extraDateSpan:n.extraDateSpan,parentEl:this.parentEl,alignmentEl:n.alignmentElRef?n.alignmentElRef.current:this.linkEl,alignGridTop:n.alignGridTop,forceTimed:n.forceTimed,onClose:this.handlePopoverClose},n.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Fe(this.linkEl,".fc-view-harness"))}}function Ws(i){return i.text}function es(i){if(i.allDayDate)return{start:i.allDayDate,end:pn(i.allDayDate,1)};let{hiddenSegs:n}=i;return{start:ts(n),end:Qs(n)}}function ts(i){return i.reduce(qs).eventRange.range.start}function qs(i,n){return i.eventRange.range.start<n.eventRange.range.start?i:n}function Qs(i){return i.reduce(Js).eventRange.range.end}function Js(i,n){return i.eventRange.range.end>n.eventRange.range.end?i:n}class Ks{constructor(){this.handlers=[]}set(n){this.currentValue=n;for(let o of this.handlers)o(n)}subscribe(n){this.handlers.push(n),void 0!==this.currentValue&&n(this.currentValue)}}class Zs extends Ks{constructor(){super(...arguments),this.map=new Map}handle(n){const{map:o}=this;let r=!1;n.isActive?(o.set(n.id,n),r=!0):o.has(n.id)&&(o.delete(n.id),r=!0),r&&this.set(o)}}},45398:(Nt,ne,g)=>{"use strict";g.d(ne,{c:()=>e,f:()=>de});var d=g(10467),R=g(54438),A=g(68314),x=g(345);const C=["qrcElement"];let e=(()=>{var y;class a{constructor(O,Ae){this.renderer=O,this.sanitizer=Ae,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new R.bkB,this.context=null}ngOnChanges(){var O=this;return(0,d.A)(function*(){yield O.createQRCode()})()}isValidQrCodeText(O){return!1===this.allowEmptyString?!(typeof O>"u"||""===O||"null"===O||null===O):!(typeof O>"u")}toDataURL(O){return new Promise((Ae,Te)=>{(0,A.dY)(this.qrdata,O,(ge,Ce)=>{ge?Te(ge):Ae(Ce)})})}toCanvas(O,Ae){return new Promise((Te,ge)=>{(0,A.mo)(O,this.qrdata,Ae,Ce=>{Ce?ge(Ce):Te("success")})})}toSVG(O){return new Promise((Ae,Te)=>{(0,A.toString)(this.qrdata,O,(ge,Ce)=>{ge?Te(ge):Ae(Ce)})})}renderElement(O){for(const Ae of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,Ae);this.renderer.appendChild(this.qrcElement.nativeElement,O)}createQRCode(){var O=this;return(0,d.A)(function*(){O.version&&O.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),O.version=40):O.version&&O.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),O.version=1):void 0!==O.version&&isNaN(O.version)&&(console.warn("[angularx-qrcode] ver
1sion should be a number, defaulting to auto."),O.version=void 0);try{if(!O.isValidQrCodeText(O.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");O.isValidQrCodeText(O.qrdata)&&""===O.qrdata&&(O.qrdata=" ");const Ae={color:{dark:O.colorDark,light:O.colorLight},errorCorrectionLevel:O.errorCorrectionLevel,margin:O.margin,scale:O.scale,version:O.version,width:O.width},Te=O.imageSrc,ge=O.imageHeight||40,Ce=O.imageWidth||40;switch(O.elementType){case"canvas":{const Fe=O.renderer.createElement("canvas");O.context=Fe.getContext("2d"),O.toCanvas(Fe,Ae).then(()=>{if(O.ariaLabel&&O.renderer.setAttribute(Fe,"aria-label",`${O.ariaLabel}`),O.title&&O.renderer.setAttribute(Fe,"title",`${O.title}`),Te&&O.context){O.centerImage=new Image(Ce,ge),Te!==O.centerImage.src&&(O.centerImage.src=Te),ge!==O.centerImage.height&&(O.centerImage.height=ge),Ce!==O.centerImage.width&&(O.centerImage.width=Ce);const xe=O.centerImage;xe&&(xe.onload=()=>{var qe;null===(qe=O.context)||void 0===qe||qe.drawImage(xe,Fe.width/2-Ce/2,Fe.height/2-ge/2,Ce,ge)})}O.renderElement(Fe),O.emitQRCodeURL(Fe)}).catch(xe=>{console.error("[angularx-qrcode] canvas error:",xe)});break}case"svg":{const Fe=O.renderer.createElement("div");O.toSVG(Ae).then(xe=>{O.renderer.setProperty(Fe,"innerHTML",xe);const qe=Fe.firstChild;O.renderer.setAttribute(qe,"height",`${O.width}`),O.renderer.setAttribute(qe,"width",`${O.width}`),O.renderElement(qe),O.emitQRCodeURL(qe)}).catch(xe=>{console.error("[angularx-qrcode] svg error:",xe)});break}default:{const Fe=O.renderer.createElement("img");O.toDataURL(Ae).then(xe=>{O.alt&&Fe.setAttribute("alt",O.alt),O.ariaLabel&&Fe.setAttribute("aria-label",O.ariaLabel),Fe.setAttribute("src",xe),O.title&&Fe.setAttribute("title",O.title),O.renderElement(Fe),O.emitQRCodeURL(Fe)}).catch(xe=>{console.error("[angularx-qrcode] img/url error:",xe)})}}}catch(Ae){console.error("[angularx-qrcode] Error generating QR Code:",Ae.message)}})()}emitQRCodeURL(O){const Ae=O.constructor.name;if(Ae===SVGSVGElement.name){const Ce=new Blob([O.outerHTML],{type:"image/svg+xml"}),Fe=URL.createObjectURL(Ce),xe=this.sanitizer.bypassSecurityTrustUrl(Fe);return void this.qrCodeURL.emit(xe)}let Te="";Ae===HTMLCanvasElement.name&&(Te=O.toDataURL("image/png")),Ae===HTMLImageElement.name&&(Te=O.src),fetch(Te).then(ge=>ge.blob()).then(ge=>URL.createObjectURL(ge)).then(ge=>this.sanitizer.bypassSecurityTrustUrl(ge)).then(ge=>{this.qrCodeURL.emit(ge)}).catch(ge=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+ge)})}}return(y=a).\u0275fac=function(O){return new(O||y)(R.rXU(R.sFG),R.rXU(x.up))},y.\u0275cmp=R.VBU({type:y,selectors:[["qrcode"]],viewQuery:function(O,Ae){if(1&O&&R.GBs(C,7),2&O){let Te;R.mGM(Te=R.lsd())&&(Ae.qrcElement=Te.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[R.OA$],decls:2,vars:2,consts:[["qrcElement",""]],template:function(O,Ae){1&O&&R.nrm(0,"div",null,0),2&O&&R.HbH(Ae.cssClass)},encapsulation:2,changeDetection:0}),a})(),de=(()=>{var y;class a{}return(y=a).\u0275fac=function(O){return new(O||y)},y.\u0275mod=R.$C({type:y}),y.\u0275inj=R.G2t({}),a})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.