1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[23580],{23580:function(e,i,t){t.r(i),t.d(i,{SCHEDULE_DEFAULT_VIRTUAL_ROW_HEIGHT:function(){return p},default:function(){return f}});var n=t(85893),s=t(25593),r=t(71230),o=t(15746),a=t(66309),l=t(83622),d=t(84567),c=t(1451);let{Text:h}=s.Z,p=132;function f(e){var i;let{index:t,style:s,ariaAttributes:p,items:f,token:x,t:g,scheduleCardRowMarginBottom:u,showFuturePropagationCheckbox:m,showConfirmInlineByCard:y,confirmActionByCard:b,enrollFutureByCard:j,registerLoadingByCard:w,getCardDisplayName:k,toTitleCase:C,formatScheduleTime:R,isScheduleClassPast:S,getWeekDayLowerLabel:v,hexToRgba:W,resetInlineRegisterState:I,ensureCardFullyVisible:T,handleRegisterClass:Z,handleUnregisterClass:z,setShowConfirmInlineByCard:_,setConfirmActionByCard:N,setEnrollFutureByCard:E}=e,q=f[t];if(!q)return null;let P=f.length,B=0===t,H=t===P-1,U=B?0:10,L=C(q.unit||""),A=null!=q.location&&""!==String(q.location).trim(),Y=A?" (".concat(q.location,")"):"",F=q.color&&String(q.color).trim()?String(q.color).trim():"",D=!!(F&&W(F,1)),G=D?F:x.colorPrimary,O=!!q.isRegistered,X=O?G:D&&null!==(i=W(F,.14))&&void 0!==i?i:x.colorPrimaryBg,K=O?"#ffffff"
1:x.colorText,M=O?"#ffffff":x.colorTextSecondary,V=k(q),J="".concat(q.date,"-").concat(V,"-").concat(t),Q=Number(q.occupancy),$=Number(q.capacity),ee=!q.isRegistered&&Number.isFinite(Q)&&Number.isFinite($)&&Q>=$,ei=!!y[J],et=b[J],en=!!j[J],es=!!w[J],er=v(q.date),eo=S(q),ea=ei&&"register"===et,el=ei&&"unregister"===et;return(0,n.jsx)("div",{style:s,...p,children:(0,n.jsxs)("div",{id:"pratique-schedule-card-".concat(t),style:{display:"flex",alignItems:"stretch",marginLeft:24,marginRight:24,marginBottom:u,gap:10,boxSizing:"border-box"},children:[(0,n.jsxs)("div",{style:{width:22,flexShrink:0,position:"relative",alignSelf:"stretch"},children:[H?null:(0,n.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",left:"50%",transform:"translateX(-50%)",width:2,backgroundColor:G,top:U+12+6,bottom:-u,zIndex:0}}),(0,n.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",top:U,left:"50%",transform:"translateX(-50%)",zIndex:1,width:q.isRegistered?15:12,height:q.isRegistered?15:12,borderRadius:"50%",boxSizing:"border-box",...q.isRegistered?{backgroundColor:"#ffffff",border:"2px solid ".concat(G),display:"flex",alignItems:"center",justifyContent:"center"}:{backgroundColor:x.colorBgContainer,border:"2px solid ".concat(G)}},children:q.isRegistered?(0,n.jsx)("div",{"aria-hidden":!0,style:{width:9,height:9,borderRadius:"50%",backgroundColor:G}}):null})]}),(0,n.jsxs)("div",{onClick:()=>{I()},style:{flex:1,minWidth:0,borderRadius:10,padding:"16px 16px 16px",backgroundColor:X,boxSizing:"border-box"},children:[(0,n.jsxs)(r.Z,{justify:"space-between",align:"top",gutter:[8,0],children:[(0,n.jsx)(o.Z,{flex:"1",style:{minWidth:0},children:(0,n.jsx)(h,{strong:!0,style:{fontSize:15,letterSpacing:.3,color:K},children:V})}),(0,n.jsx)(o.Z,{style:{flexShrink:0,textAlign:"right"},children:(0,n.jsx)(h,{style:{color:M},children:R(q.startTime)})})]}),(0,n.jsxs)(r.Z,{justify:"space-between",align:"top",style:{marginTop:6},wrap:!1,children:[(0,n.jsx)(o.Z,{flex:"1",style:{minWidth:0,paddingRight:8},children:(0,n.jsxs)(h,{style:{wordBreak:"break-word",color:M},children:[L,Y]})}),(0,n.jsx)(o.Z,{style:{flexShrink:0,textAlign:"right",maxWidth:"45%"},children:(0,n.jsx)(h,{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:M},children:q.instructor||""})})]}),(0,n.jsxs)(r.Z,{justify:"space-between",align:"middle",style:{marginTop:8},children:[(0,n.jsx)(o.Z,{children:(0,n.jsxs)(a.Z,{bordered:!1,color:"default",style:{margin:0,padding:"4px 8px",borderRadius:8,display:"inline-flex",alignItems:"center",gap:8,flexWrap:"wrap",maxWidth:"100%"},children:[q.icon?(0,n.jsx)("span",{className:"pratique-schedule-badge-icon",style:{color:G,lineHeight:0},dangerouslySetInnerHTML:{__html:q.icon}}):(0,n.jsx)(c.U_j,{size:16,strokeWidth:2,style:{color:G}}),q.modality?(0,n.jsx)("span",{style:{color:x.colorText},children:q.modality}):null,(0,n.jsxs)("span",{style:{color:x.colorTextSecondary},children:[q.occupancy,"/",q.capacity]})]})}),(0,n.jsx)(o.Z,{children:eo?null:q.isRegistered?(0,n.jsx)(l.ZP,{type:"text",size:"small",disabled:es,"aria-label":g(el?"schedule.aria.confirmUnregister":"schedule.aria.openUnregisterConfirm"),onClick:e=>{if(e.stopPropagation(),T(t),el){z(q,{cardKey:J,enrollFutureOccurrences:en});return}_({[J]:!0}),N({[J]:"unregister"}),window.setTimeout(()=>T(t),220)},style:{border:"none",boxShadow:"none",outline:"none",backgroundColor:O?"#ffffff":x.colorBgElevated,minWidth:el?44:36,width:el?"auto":36,height:36,padding:el?"0 10px":0,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:8,transition:"width 220ms ease, padding 220ms ease, min-width 220ms ease"},children:es?(0,n.jsx)("span",{"aria-hidden":!0,style:{width:18,height:18,borderRadius:"50%",border:"3px solid ".concat(G),borderRightColor:"transparent",display:"inline-block",animation:"pratique-schedule-spin 0.8s linear infinite"}}):(0,n.jsxs)("span",{style:{position:"relative",width:el?"auto":18,minWidth:el?void 0:18,height:18,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:[(0,n.jsx)("span",{style:{position:"absolute",inset:0,display:"inline-flex",alignItems:"center",justifyContent:"center",opacity:el?0:1,transform:el?"scale(0.82)":"scale(1)",transition:"opacity 180ms ease, transform 180ms ease"},children:(0,n.jsx)(c.KGR,{size:18,strokeWidth:2,style:{color:G}})}),(0,n.jsx)("span",{style:{fontSize:13,fontWeight:600,color:"#ff4d4f",opacity:el?1:0,transform:el?"translateY(0)":"translateY(3px)",transition:"opacity 180ms ease, transform 180ms ease",whiteSpace:"nowrap"},children:g("schedule.confirm")})]})}):ee?(0,n.jsx)(h,{style:{color:G,fontWeight:500},children:g("schedule.full")}):(0,n.jsx)(l.ZP,{type:"text",size:"small",disabled:es,"aria-label":g(ei?"schedule.aria.confirmRegister":"schedule.aria.openRegisterConfirm"),onClick:e=>{if(e.stopPropagation(),T(t),ea){Z(q,{cardKey:J,enrollFutureOccurrences:en});return}_({[J]:!0}),N({[J]:"register"}),window.setTimeout(()=>T(t),220)},style:{border:"none",boxShadow:"none",outline:"none",backgroundColor:O?"#ffffff"
1:x.colorBgElevated,minWidth:ea?44:36,width:ea?"auto":36,height:36,padding:ea?"0 10px":0,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:8,transition:"width 220ms ease, padding 220ms ease, min-width 220ms ease"},children:es?(0,n.jsx)("span",{"aria-hidden":!0,style:{width:18,height:18,borderRadius:"50%",border:"3px solid ".concat(G),borderRightColor:"transparent",display:"inline-block",animation:"pratique-schedule-spin 0.8s linear infinite"}}):(0,n.jsxs)("span",{style:{position:"relative",width:ea?"auto":18,minWidth:ea?void 0:18,height:18,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:[(0,n.jsx)("span",{style:{position:"absolute",inset:0,display:"inline-flex",alignItems:"center",justifyContent:"center",opacity:ea?0:1,transform:ea?"scale(0.82)":"scale(1)",transition:"opacity 180ms ease, transform 180ms ease"},children:(0,n.jsx)(c.PqE,{size:18,strokeWidth:2,style:{color:G}})}),(0,n.jsx)("span",{style:{fontSize:13,fontWeight:600,color:"#ff4d4f",opacity:ea?1:0,transform:ea?"translateY(0)":"translateY(3px)",transition:"opacity 180ms ease, transform 180ms ease",whiteSpace:"nowrap"},children:g("schedule.confirm")})]})})})]}),!eo&&ei&&m?(0,n.jsx)("div",{style:{marginTop:8,maxHeight:56,opacity:1,overflow:"hidden",transition:"max-height 200ms ease, opacity 200ms ease, margin-top 200ms ease"},children:(0,n.jsx)(d.Z,{className:"pratique-schedule-card-checkbox",style:{color:M,"--pratique-checkbox-accent":G},checked:en,onChange:e=>{E(i=>
1({...i,[J]:e.target.checked}))},children:g(el?"schedule.checkbox.unregisterNext":"schedule.checkbox.registerNext",{day:er?"".concat(er,"s"):"datas"})})}):null]})]})})}}}]);
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.