PageSourceSearch

https://dein.ai-fitness.de/075532e6f44f0d3596e3.chunk.js

js ai-fitness.de collected 2026-10-03 21:42:22 UTC 28,617 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmysports_web=self.webpackChunkmysports_web||[]).push([[7866],{87866:function(e,t,n){n.r(t),n.d(t,{default:function(){return ge}});var o,r,i,a,l,s,c,u,d,p,m,b,f,g,h,x,y=n(85608),j=n(31085),w=n(9023),v=n(3838),C=n(44191),k=n(14041),P=n(23495),_=n(77890),I=n(36889),T=n(99643),O=n(48444),A=n(74184),N=n(47280),M=n(35286),S=n(62066),D=n(46951),R=n(26802),B=n(48667),E=n(10253),F={current:{NOT_PARTICIPATING:{id:"enums.participantstatus.notparticipating",defaultMessage:"Not participating"},PARTICIPATING:{id:"enums.participantstatus.participating",defaultMessage:"Participating"}},past:{NOT_PARTICIPATING:{id:"enums.participantstatus.notparticipating.past",defaultMessage:"Not participated"},PARTICIPATING:{id:"enums.participantstatus.participating.past",defaultMessage:"Participated"}}},L=P.Ay.div.withConfig({displayName:"Column",componentId:"-1pznfgx"})(o||(o=(0,y.__makeTemplateObject)(["\n    display: flex;\n    align-items: center;\n    flex: 1;\n    height: 100%;\n"],["\n    display: flex;\n    align-items: center;\n    flex: 1;\n    height: 100%;\n"]))),G=(0,P.Ay)(L).withConfig({displayName:"ColumnName",componentId:"-s2fenf"}
1)(r||(r=(0,y.__makeTemplateObject)(["\n    flex: 2;\n"],["\n    flex: 2;\n"]))),U=(0,P.Ay)(I.PE).withConfig({displayName:"ColumnDate",componentId:"-nsu4b3"})(i||(i=(0,y.__makeTemplateObject)(["\n    flex: 0 0 ",";\n    ","\n"],["\n    flex: 0 0 ",";\n    ","\n"])),(function(){return(0,B.S)("FACILITY_BOOKING")?"192px":"55px"}),(function(){return(0,B.S)("FACILITY_BOOKING")&&"\n        min-width: 192px;\n        overflow: hidden;\n    "})),W=(0,P.Ay)(I.PE).withConfig({displayName:"ColumnRemove",componentId:"-xdfint"})(a||(a=(0,y.__makeTemplateObject)(["\n    flex: 0 0 30px;\n"],["\n    flex: 0 0 30px;\n"]))),H=(0,P.Ay)(L).withConfig({displayName:"ColumnWorkloadDesktop",componentId:"-19xm6eu"})(l||(l=(0,y.__makeTemplateObject)(["\n    flex: 0 0 300px;\n    justify-content: center;\n"],["\n    flex: 0 0 300px;\n    justify-content: center;\n"]))),q=(0,P.Ay)(L).withConfig({displayName:"ColumnWorkloadTablet",componentId:"-uqoubi"})(s||(s=(0,y.__makeTemplateObject)(["\n    flex: 0 0 65px;\n    justify-content: flex-end;\n"],["\n    flex: 0 0 65px;\n    justify-content: flex-end;\n"]))),Y=(0,P.Ay)(L).withConfig({displayName:"ColumnStream",componentId:"-1nhoygk"}
1)(c||(c=(0,y.__makeTemplateObject)(["\n    flex: 0 0 100px;\n"],["\n    flex: 0 0 100px;\n"]))),K=(0,P.Ay)(I.PE).withConfig({displayName:"DesktopContainer",componentId:"-1ya2m1t"})(d||(d=(0,y.__makeTemplateObject)(["\n    height: 150px;\n    background-color: ",";\n    transition: transform 0.1s linear;\n    ",";\n\n    &:first-child {\n        border-top: 1px solid ",";\n    }\n\n    &:last-child {\n        border-bottom: 1px solid ",";\n    }\n"],["\n    height: 150px;\n    background-color: ",";\n    transition: transform 0.1s linear;\n    ",";\n\n    &:first-child {\n        border-top: 1px solid ",";\n    }\n\n    &:last-child {\n        border-bottom: 1px solid ",";\n    }\n"])),(function(e){return e.lightBG?(0,S.B3)((0,I.oU)("slotSelectedColor"),.5):(0,I.oU)("backgroundColor2")}),(function(e){return e.lightBG?(0,P.AH)(u||(u=(0,y.__makeTemplateObject)(["\n                  border-top: 1px solid ",";\n                  border-bottom: 1px solid ",";\n              "],["\n                  border-top: 1px solid ",";\n                  border-bottom: 1px solid ",";\n              "])),(0,I.oU)("backgroundColor2"),(0,I.oU)("backgroundColor2")):""}),(0,I.oU)("backgroundColor2"),(0,I.oU)("backgroundColor2")),Q=(0,P.Ay)(I.PE).withConfig({displayName:"MobileContainer",componentId:"-1l3r26"}
1)(p||(p=(0,y.__makeTemplateObject)(["\n    background-color: ",";\n    border-bottom: 1px solid ",";\n\n    &:first-child {\n        border-top: 1px solid ",";\n    }\n"],["\n    background-color: ",";\n    border-bottom: 1px solid ",";\n\n    &:first-child {\n        border-top: 1px solid ",";\n    }\n"])),(function(e){return e.lightBG?(0,S.B3)((0,I.oU)("slotSelectedColor"),.5):(0,I.oU)("backgroundColor2")}),(0,I.oU)("backgroundColor2"),(0,I.oU)("backgroundColor2")),z=(0,P.Ay)(I.PE).withConfig({displayName:"MobileContent",componentId:"-1p95ly6"})(m||(m=(0,y.__makeTemplateObject)(["\n    flex: 1;\n"],["\n    flex: 1;\n"]))),$=(0,P.Ay)(I.PE).withConfig({displayName:"CourseNameContainer",componentId:"-e1t984"})(b||(b=(0,y.__makeTemplateObject)(["\n    flex: 1;\n"],["\n    flex: 1;\n"]))),X=(0,P.Ay)(I.In).withConfig({displayName:"BookedIcon",componentId:"-1dxqh8g"})(f||(f=(0,y.__makeTemplateObject)(["\n    position: absolute;\n    right: -4px;\n    bottom: -2px;\n    font-size: 26px;\n    background: ",";\n    border-radius: 100%;\n    border: 2px solid\n        ",";\n    z-index: 1;\n"],["\n    position: absolute;\n    right: -4px;\n    bottom: -2px;\n    font-size: 26px;\n    background: ",";\n    border-radius: 100%;\n    border: 2px solid\n        ",";\n    z-index: 1;\n"])),(function(e){return(0,I.oU)(e.lightBG?"slotSelectedColor":"backgroundColor2")}),(function(e){return(0,I.oU)(e.lightBG?"slotSelectedColor":"backgroundColor2")})),Z=(0,P.Ay)(I.$n).withConfig({displayName:"CancelButton",componentId:"-wkg153"}
1)(g||(g=(0,y.__makeTemplateObject)(["\n    padding: ",";\n"],["\n    padding: ",";\n"])),(0,I.pp)("8")),J=(0,v.PA)((function(e){var t=(0,M.g)(A.F).formatMessage,n=e.stream,o=function(){switch(null==n?void 0:n.type){case"MANUAL":return n.url;case"ZOOM":return n.mySportsUrl;default:return}}();return o?(0,j.jsx)(I.N_,{href:o,target:"_blank",decoration:"underline",children:t({id:"noxweb.streaming.open",defaultMessage:"Open stream"})}):null})),V=function(e){var t=e.color,n=void 0===t?"textColor":t,o=e.item;return(0,j.jsx)(I.QR,{color:n,children:(0,E.hg)(o)})},ee=function(e){var t=e.standIn,n=(0,M.g)(A.F).formatMessage,o=t.firstname,r=t.lastname,i=n({id:"standin.title",defaultMessage:"Stand-In"});return(0,j.jsx)(I.QR,{color:"textColor",children:"".concat(i,":  ").concat(o," ").concat(r)})},te=function(e){var t=e.employees;return(0,j.jsx)(j.Fragment,{children:null==t?void 0:t.map((function(e,n){var o=t.length-1===n;return e.standIn?(0,j.jsxs)("span",{children:[(0,j.jsx)(V,{color:"coolgrey",item:e}),", ",e.standIn&&(0,j.jsx)(ee,{standIn:e.standIn}),!o&&", "]},n):(0,j.jsxs)(k.Fragment,{children:[(0,j.jsx)(V,{item:e}),!o&&", "]},null==e?void 0:e.id)}))})},ne=(0,v.PA)((function(e){var t=e.status,n=e.viewmode,o=(0,M.g)(T.t).mobile,r=(0,M.g)(A.F).formatMessage,i=(0,M.g)(R.j).isWhitelabel,a=function(e,t){var n;if(t&&"UNSET"!==t)return null===(n=F[e])||void 0===n?void 0:n[t]}(n,t);if(!a)return null;var l="NOT_PARTICIPATING"===t?"errorColor":i?"textColor":"coolgrey",s=r(a);return o?(0,j.jsx)(I.H5,{color:l,children:s}):(0,j.jsx)(I.QR,{color:l,children:s})})),oe=function(e,t){return(null==e?void 0:e.email)&&e.email===t?(0,(0,M.g)(A.F).formatMessage)({id:"noxweb.family.booking.you",defaultMessage:"You"}):[null==e?void 0:e.firstName,null==e?void 0:e.lastName].filter(Boolean).join(" ")},re=function(e,t){var n=(0,M.g)(A.F).formatMessage,o=(0,M.g)(R.j).userInfo,r=n({id:"noxweb.family.booking.booked.for",defaultMessage:"Booked for:"}),i=n({id:"noxweb.family.booking.by",defaultMessage:"Booked by:"});return{bookingForKey:r,bookedForName:oe(e,null==o?void 0:o.email),bookingByKey:i,bookedByName:oe(t,null==o?void 0:o.email)}},ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,y.__extends)(t,e),Object.defineProperty(t.prototype,"i18n",{get:function(){return(0,M.g)(A.F)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"appStore",{get:function(){return(0,M.g)(T.t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"api",{get:function(){return(0,M.g)(R.j)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.i18n.formatMessage,n=this.props,o=n.className,r=n.course,i=n.lightBG,a=n.showRemove,l=n.viewmode,s=r.name,c=r.imageUrl,u=r.employees,d=r.locations,p=r.studio,m=r.onWaitingList,b=r.waitingListPosition,f=r.participantStatus,g=r.bookedFor,h=r.bookedBy,x=re(g,h),w=x.bookingForKey,v=x.bookedForName,C=x.bookingByKey,k=x.bookedByName,P=this.api.isWhitelabel?"textColor":"coolgrey";return(0,j.jsxs)(K,{"data-role":"booking-row",className:o,padding:[0,"32"],between:"32",vAlign:"center",hAlign:"space-between",lightBG:i,children:[(0,j.jsx)(U,{stack:!0,children:this.renderDate()}),(0,j.jsx)(G,{children:(0,j.jsxs)($,{between:"16",vAlign:"center",children:[(0,j.jsx)(I.eu,{type:"circle",src:c,size:70,children:r.alreadyBooked&&!r.onWaitingList&&(0,j.jsx)(X,{type:"ok",color:"highlightColor",title:t({id:"booking.already.booked",defaultMessage:"You booked this appointment."}),lightBG:i})}),(0,j.jsxs)(I.PE,{between:"4",stack:!0,children:[(0,j.jsx)(I.H4,{color:"textColor",whiteSpace:"pre",children:s}),(0,j.jsx)(te,{employees:u}),v&&(0,j.jsxs)(I.PE,{between:"4",children:[(0,j.jsx)(I.QR,{color:P,children:w}),(0,j.jsx)(I.QR,{weight:"bold",color:P,children:v})]}),k&&(0,j.jsxs)(I.PE,{between:"4",children:[(0,j.jsx)(I.QR,{color:P,children:C}),(0,j.jsx)(I.QR,{weight:"bold",color:P,children:k})]})]})]})}),(0,j.jsx)(L,{children:(0,j.jsxs)(I.PE,{between:"4",stack:!0,children:[(null==p?void 0:p.name)&&(0,j.jsx)(I.H4,{color:"textColor",children:p.name}),(0,j.jsx)(I.QR,{color:"textColor",children:null==d?void 0:d.map((function(e){return e.name})).join(", ")}),(0,j.jsx)(ne,{viewmode:l,status:f})]})}),this.appStore.tablet&&(0,j.jsx)(L,{children:m&&(0,j.jsxs)(I.QR,{color:"highlightColor",children:[t({id:"noxweb.courses.slot.on.waiting.list",defaultMessage:"On waiting list"})," ","(",b,")"]})}),this.renderWorkload(),this.renderStream(),a&&(0,j.jsx)(W,{children:(0,j.jsx)(Z,(0,y.__assign)({"data-role":"booking-cancel-button","data-role-value":r.name,clean:!0,title:t({id:"commons.remove",defaultMessage:"Delete"}),color:"textColor",onClick:function(t){return e.onRemove(t)}},(0,D.rg)(D.yt.button,D.t.remove),{children:(0,j.jsx)(I.In,{type:"bin",extent:20,color:"textColor"})}))})]})}}),Object.defineProperty(t.prototype,"renderDate",{enumerable:!1,
1configurable:!0,writable:!0,value:function(){var e=this.i18n,t=e.formatTime,n=e.formatDateShort,o=e.formatMessage,r=this.props,i=r.course,a=r.displayDate,l=this.api.isWhitelabel,s=l?"textColor":"coolgrey";if(a){if((0,B.S)("FACILITY_BOOKING")){var c=i.endDateTime?(0,E.op)(i.startDateTime,i.endDateTime):null,u=(0,E.j0)(i.startDateTime,i.endDateTime,t);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(I.PE,{hAlign:"space-between",vAlign:"center",children:[(0,j.jsx)(I.H4,{color:s,weight:l?"regular":void 0,whiteSpace:"nowrap",children:n(i.startDateTime)}),null!==c&&(0,j.jsx)(C.Se,{round:!0,children:(0,j.jsxs)(I.PE,{vAlign:"center",between:"4",children:[(0,j.jsx)(I.In,{type:"clock",extent:12}),(0,j.jsx)("span",{children:"".concat(c," ").concat(o({id:"noxweb.facility.minutes",defaultMessage:"min(s)"}))})]})})]}),(0,j.jsx)(I.QR,{color:"textColor",weight:"bold",extent:"XL",whiteSpace:"nowrap",children:u})]})}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(I.H4,{color:s,whiteSpace:"nowrap",children:n(i.startDateTime)}),(0,j.jsx)(I.QR,{color:"textColor",weight:"bold",extent:"XL",whiteSpace:"nowrap",children:t(i.startDateTime)})]})}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(I.H4,{color:"textColor",weight:"bold",children:t(i.startDateTime)}),(0,j.jsx)(I.H4,{color:s,children:t(i.endDateTime)})]})}}),Object.defineProperty(t.prototype,"renderWorkload",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.i18n.formatMessage,t=this.props.disableWorkload,n=this.props.course,o=n.bookedParticipants,r=n.maxParticipants,i=n.onWaitingList,a=n.waitingListPosition;return this.appStore.desktop?(0,j.jsx)(H,{children:(0,j.jsxs)(I.PE,{stack:!0,between:"8",children:[(0,j.jsx)(I.z2,{value:o,max:r,direction:"horizontal",invisible:t}),i&&(0,j.jsxs)(I.QR,{color:"highlightColor",children:[e({id:"noxweb.courses.slot.on.waiting.list",defaultMessage:"On waiting list"})," ","(",a,")"]})]})}):(0,j.jsx)(q,{children:(0,j.jsx)(I.z2,{value:o,max:r,extent:"S",hideNumbers:!0,direction:"vertical",invisible:t})})}}),Object.defineProperty(t.prototype,"renderStream",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props.stream;return(0,j.jsx)(Y,{children:(0,j.jsx)(J,{stream:e})})}}),Object.defineProperty(t.prototype,"onRemove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,n,o=this.props.course;(0,E.iY)(o.uuid,"A uuid has to be defined to chancel the course"),e.stopPropagation(),(0,E.iY)(o.uuid,"A uuid need to be defined"),null===(n=(t=this.props).onRemove)||void 0===n||n.call(t,o.id,o.uuid)}}),(0,y.__decorate)([_.external,v.PA],t)}(k.Component),ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,y.__extends)(t,e),Object.defineProperty(t.prototype,"i18n",{get:function(){return(0,M.g)(A.F)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"appStore",{get:function(){return(0,M.g)(T.t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"api",{get:function(){return(0,M.g)(R.j)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.i18n.formatMessage,n=this.props,o=n.className,r=n.disableWorkload,i=n.showRemove,a=n.lightBG,l=n.course,s=n.onWaitingList,c=n.viewmode,u=l.name,d=l.bookedParticipants,p=l.maxParticipants,m=l.imageUrl,b=l.employees,f=l.stream,g=l.studio,h=l.participantStatus,x=l.bookedFor,w=l.bookedBy,v=this.appStore.mobile,C=this.api.isWhitelabel?"textColor":"coolgrey",k=re(x,w),P=k.bookingForKey,_=k.bookedForName,T=k.bookingByKey,O=k.bookedByName;return(0,j.jsxs)(Q,{"data-role":"booking-row",className:o,stack:!0,between:"16",padding:["16","8"],lightBG:a,children:[(0,j.jsxs)(I.PE,{hAlign:"space-between",children:[(0,j.jsxs)(I.PE,{vAlign:(0,B.S)("FACILITY_BOOKING")?"flex-start":"center",between:"8",children:[l.alreadyBooked&&!l.onWaitingList&&!(0,B.S)("FACILITY_BOOKING")&&(0,j.jsx)(I.In,{type:"ok",color:"highlightColor",title:t({id:"booking.already.booked",defaultMessage:"You booked this appointment."})}),this.renderDate(),s&&(0,j.jsxs)(I.QR,{color:"highlightColor",children:[t({id:"noxweb.courses.slot.on.waiting.list",defaultMessage:"On waiting list"})," ","(",l.waitingListPosition,")"]})]}),(0,j.jsx)(I.eu,{type:"circle",src:m,size:30})]}),(0,j.jsxs)(z,{hAlign:"space-between",children:[(0,j.jsxs)(I.PE,{stack:!0,vAlign:"space-between",padding:["4",0,0,0],between:"4",children:[(0,j.jsx)(I.H4,{color:"textColor",children:u}),(0,j.jsxs)(I.PE,{stack:!0,children:[(null==g?void 0:g.name)&&(0,j.jsx)(I.H5,{color:C,weight:"semi",children:g.name}),(0,j.jsx)(I.H5,{color:C,weight:"semi",children:null==b?void 0:b.map((function(e){return"".concat(e.firstname," ").concat(e.lastname)})).join(", ")}),_&&(0,j.jsxs)(I.H5,{color:C,weight:"semi",children:[P," ",_]}),O&&(0,j.jsxs)(I.H5,{color:C,weight:"semi",children:[T," ",O]}),(0,j.jsx)(ne,{viewmode:c,status:h})]})]}),(0,j.jsx)(I.PE,{padding:[0,"8"],children:(0,j.jsx)(I.z2,{value:d,max:p,direction:"vertical",extent:"S",hideNumbers:v,invisible:r})})]}),f&&(0,j.jsx)(I.PE,{hAlign:"center",children:(0,j.jsx)(J,{stream:f})}),i&&(0,j.jsx)(I.$n,(0,y.__assign)({"data-role":"booking-cancel-button","data-role-value":this.props.course.name,clean:!0,onClick:function(){return e.onRemove()},color:"textColor"},(0,D.rg)(D.yt.button,D.t.remove),{children:t({id:"commons.remove",defaultMessage:"Delete"})}))]})}}),Object.defineProperty(t.prototype,"renderDate",{enumerable:!1,
1configurable:!0,writable:!0,value:function(){var e=this.i18n,t=e.formatTime,n=e.formatDateShort,o=e.formatMessage,r=this.props,i=r.course,a=r.displayDate,l=this.api.isWhitelabel,s=l?"textColor":"coolgrey";if(a){if((0,B.S)("FACILITY_BOOKING")){var c=i.endDateTime?(0,E.op)(i.startDateTime,i.endDateTime):null,u=(0,E.j0)(i.startDateTime,i.endDateTime,t);return(0,j.jsxs)(I.PE,{stack:!0,between:"4",children:[(0,j.jsxs)(I.PE,{hAlign:"space-between",vAlign:"center",children:[(0,j.jsx)(I.H4,{color:s,weight:l?"regular":void 0,whiteSpace:"nowrap",children:n(i.startDateTime)}),null!==c&&(0,j.jsx)(C.Se,{round:!0,children:(0,j.jsxs)(I.PE,{vAlign:"center",between:"4",children:[(0,j.jsx)(I.In,{type:"clock",extent:12}),(0,j.jsx)("span",{children:"".concat(c," ").concat(o({id:"noxweb.facility.minutes",defaultMessage:"min(s)"}))})]})})]}),(0,j.jsx)(I.QR,{color:"textColor",weight:"bold",extent:"XL",whiteSpace:"nowrap",children:u})]})}return(0,j.jsxs)(I.PE,{vAlign:"center",between:"16",children:[(0,j.jsx)(I.H4,{color:s,children:n(i.startDateTime)}),(0,j.jsx)(I.H4,{color:"textColor",weight:"bold",children:t(i.startDateTime)})]})}return(0,j.jsxs)(I.PE,{vAlign:"center",between:"4",children:[(0,j.jsx)(I.H4,{weight:"bold",color:"textColor",children:t(i.startDateTime)}),(0,j.jsxs)(I.H4,{weight:"semi",color:s,children:["- ",t(i.endDateTime)]})]})}}),Object.defineProperty(t.prototype,"onRemove",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t;(0,E.iY)(this.props.course.uuid,"A uuid has to be defined to cancel the course"),null===(t=(e=this.props).onRemove)||void 0===t||t.call(e,this.props.course.id,this.props.course.uuid)}}),(0,y.__decorate)([_.external,v.PA],t)}(k.Component),le=(0,v.PA)((function(e){return(0,M.g)(T.t).desktop?(0,j.jsx)(ie,(0,y.__assign)({},e)):(0,j.jsx)(ae,(0,y.__assign)({},e))})),se=n(83794),ce=n(73890),ue=n(64751),de=n(10252),pe=function(){function e(){var e=this;Object.defineProperty(this,"reactionDisposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentCalendarItems",{enumerable:!0,configurable:!0,writable:!0,value:(0,ce.wrapRequest)((function(){return(0,y.__awaiter)(e,void 0,void 0,(function(){var e,t;return(0,y.__generator)(this,(function(n){switch(n.label){case 0:return e=this.api.clientNox.CalendarItemController,this.familyAccountsStore.isFamilyBookingAvailable?[4,e.getCurrentSharedContractCalendarItems({limit:100})]:[3,2];case 1:return t=n.sent(),[3,4];case 2:return[4,e.getCurrentCalendarItems({limit:100})];case 3:t=n.sent(),n.label=4;case 4:return[2,t.filter((function(e){return"WORKOUT"!==e.itemType})).map(E.Uj)]}}))}))}),{defaultData:[]})}),Object.defineProperty(this,"pastCalendarItems",{enumerable:!0,configurable:!0,writable:!0,value:(0,ce.wrapRequest)((function(){return(0,y.__awaiter)(e,void 0,void 0,(function(){var e,t;return(0,y.__generator)(this,(function(n){switch(n.label){case 0:return e=this.api.clientNox.CalendarItemController,this.familyAccountsStore.isFamilyBookingAvailable?[4,e.getHistorySharedContractCalendarItems({limit:100})]:[3,2];case 1:return t=n.sent(),[3,4];case 2:return[4,e.getHistoryCalendarItems({limit:100})];case 3:t=n.sent(),n.label=4;case 4:return[2,t.filter((function(e){return"WORKOUT"!==e.itemType})).map(E.Uj).sort((function(e,t){return e.startDateTime>t.startDateTime?-1:1}))]}}))}))}),{defaultData:[]})}),Object.defineProperty(this,"cancellationRuleInfoRequest",{enumerable:!0,configurable:!0,writable:!0,value:(0,ce.wrapRequest)((function(t){return e.api.clientMlNox.NoxCalendarItemController.getCancelationRuleInfo(t)}))}),Object.defineProperty(this,"viewmode",{enumerable:!0,configurable:!0,writable:!0,value:"current"})}return Object.defineProperty(e.prototype,"api",{get:function(){return(0,M.g)(R.j)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"i18n",{get:function(){return(0,M.g)(A.F)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"familyAccountsStore",{get:function(){return(0,M.g)(ue.a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;(0,se.makeAutoObservable)(this),this.reactionDisposer=(0,se.reaction)((function(){return e.viewmode}),(function(t){return e.fetchBookings(t)}),{fireImmediately:!0})}}
1),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.reactionDisposer()}}),Object.defineProperty(e.prototype,"items",{get:function(){switch(this.viewmode){case"current":return this.currentCalendarItems;case"past":return this.pastCalendarItems}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loading",{get:function(){return this.currentCalendarItems.loading||this.pastCalendarItems.loading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fetchBookings",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return(0,y.__awaiter)(this,void 0,Promise,(function(){return(0,y.__generator)(this,(function(t){switch(t.label){case 0:return(0,B.S)("FAMILY_ACCOUNTS")||(0,B.S)("FAMILY_BOOKING")?[4,this.familyAccountsStore.sharedContractGroupConfig.when().catch((function(){console.error("Failed to load family accounts config, falling back to non-family booking endpoints")}))]:[3,2];case 1:t.sent(),t.label=2;case 2:switch(e){case"current":this.currentCalendarItems.request();break;case"past":this.pastCalendarItems.request()}return[2]}}
1))}))}}),Object.defineProperty(e.prototype,"cancelBooking",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,o){return(0,y.__awaiter)(this,void 0,Promise,(function(){var r;return(0,y.__generator)(this,(function(i){switch(i.label){case 0:return r=null==n?void 0:n.customerNumber,this.familyAccountsStore.isFamilyBookingAvailable&&Boolean(r)&&Boolean(null==o?void 0:o.customerNumber)&&r!==(null==o?void 0:o.customerNumber)?[4,this.api.clientMlNox.NoxCalendarItemController.cancelAppointmentForMember(t,{memberCustomerNumber:r})]:[3,2];case 1:return i.sent(),[3,4];case 2:return[4,this.api.clientNox.CalendarItemController.cancelAppointment(e)];case 3:i.sent(),i.label=4;case 4:return[4,this.fetchBookings(this.viewmode)];case 5:return i.sent(),[2]}}))}))}}),Object.defineProperty(e.prototype,"requestCancellationInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.cancellationRuleInfoRequest.request(e)}}),Object.defineProperty(e.prototype,"isCancellationPossible",{get:function(){var e,t=null!==(e=this.cancellationRuleInfoRequest.$)&&void 0!==e?e:{},n=t.afterLastPossibleCancelationDate,o=t.cancelationType;return!(n&&"CANCELATION_AFTER_LATEST_NOT_POSSIBLE"===o)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cancellationNotPossibleMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n,o=this.i18n,r=o.formatMessage,i=o.formatDateTime;if(this.isCancellationPossible)return null;var a=null!==(n=this.cancellationRuleInfoRequest.$)&&void 0!==n?n:{},l=a.afterLastPossibleCancelationDate,s=a.cancelationType,c=a.lastPossibleCancelationDate;return c&&l&&"CANCELATION_AFTER_LATEST_NOT_POSSIBLE"===s?r({id:"noxweb.booking.cancel.not.possible",defaultMessage:"You can not cancel **{0}** on **{1}**. The last possible time to cancel it was **{2}**. Please contact your studio to cancel the appointment."},[e,i(t),i(c)]):null}}),Object.defineProperty(e.prototype,"cancellationPossibleWarningMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n,o=this.i18n,r=o.formatMessage,i=o.formatDateTime,a=null!==(n=this.cancellationRuleInfoRequest.$)&&void 0!==n?n:{},l=a.afterLastPossibleCancelationDate,s=a.cancelationType;return l&&"CANCELATION_AFTER_LATEST_POSSIBLE"===s?r({id:"noxweb.booking.cancel.warning.message",defaultMessage:"You can cancel **{0}** on **{1}**. Please note that your inclusive contingent will be used for this. Do you really want to cancel the appointment?"},[e,i(t)]):null}}),Object.defineProperty(e.prototype,"cancellationMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this.i18n;return(0,n.formatMessage)({id:"noxweb.booking.cancel.text",defaultMessage:"Do you really want to cancel your booking **{0}** for the **{1}**?"},[e,(0,n.formatDateTime)(t)])}}),(0,y.__decorate)([_.initialize,(0,y.__metadata)("design:type",Function),(0,y.__metadata)("design:paramtypes",[]),(0,y.__metadata)("design:returntype",void 0)],e.prototype,"init",null),(0,y.__decorate)([_.destroy,(0,y.__metadata)("design:type",Function),(0,y.__metadata)("design:paramtypes",[]),(0,y.__metadata)("design:returntype",void 0)],e.prototype,"dispose",null),(0,y.__decorate)([(0,_.component)({scope:de.Wu.myBookings()})],e)}(),me=(0,P.Ay)(le).withConfig({displayName:"StyledCourseRow",componentId:"-v37s31"}
1)(h||(h=(0,y.__makeTemplateObject)(["\n    &:first-child {\n        border-top: 1px solid ",";\n    }\n"],["\n    &:first-child {\n        border-top: 1px solid ",";\n    }\n"])),(function(){return(0,I.oU)("hrColor")})),be=(0,P.Ay)(I.oz).withConfig({displayName:"CenteredMarkdown",componentId:"-1pqf6mn"})(x||(x=(0,y.__makeTemplateObject)(["\n    text-align: center;\n"],["\n    text-align: center;\n"]))),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,y.__extends)(t,e),Object.defineProperty(t.prototype,"store",{get:function(){return(0,M.g)(pe)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"modal",{get:function(){return(0,M.g)(N.aF)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"appStore",{get:function(){return(0,M.g)(T.t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"i18n",{get:function(){return(0,M.g)(A.F)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headline",{get:function(){var e=this.store.viewmode,t=this.i18n.formatMessage;switch(e){case"current":return t({id:"noxweb.bookings.current",defaultMessage:"My bookings"});case"past":return t({id:"noxweb.bookings.past",defaultMessage:"Past bookings"})}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTabClick",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.store.viewmode;this.store.viewmode="current"===e?"past":"current"}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=this.store,n=t.items,o=t.viewmode,r=this.appStore.mobile,i=this.i18n.formatMessage,a=[{title:i(r?{id:"commons.actual",defaultMessage:"Current"}:{id:"noxweb.bookings.current",defaultMessage:"My bookings"}),active:"current"===o,onClick:function(){e.onTabClick()}},{title:i(r?{id:"commons.past",defaultMessage:"Past"}:{id:"noxweb.bookings.past",defaultMessage:"Past bookings"}),active:"past"===o,onClick:function(){e.onTabClick()}}];return(0,j.jsx)(I.PE,{stretch:!0,stack:!0,"data-role":"my-bookings",children:(0,j.jsxs)(I.HD,{extent:"1200",children:[(0,j.jsx)(C.CI,{align:"center",stretch:r,children:a.map((function(e){var t=e.active,n=e.title,o=e.onClick;return(0,j.jsx)(C.co,{active:t,onClick:o,align:r?"center":"left",stretch:r,children:n},n)}))}),(0,j.jsx)(I.PE,{stack:!0,hAlign:"center",padding:["32",0,r?"32":"50"],between:r?"32":"50",children:(0,j.jsx)(I.H2,{children:this.headline})}),n.match({loading:function(){return(0,j.jsx)(I.y$,{})},empty:function(){return(0,j.jsx)(I.PE,{"data-role":"my-bookings-empty",children:(0,j.jsx)(I.L7,{outerSpace:!r,type:"notice",children:i({id:"commons.noentries",defaultMessage:"No entries."})})})},fetched:function(t){return(0,j.jsx)("div",{children:t.map((function(t,n){var r,i=w.Ip.now((null===(r=t.studio)||void 0===r?void 0:r.zoneId)||(0,O.q4)())>t.startDateTime;return(0,j.jsx)(me,{showRemove:!i,viewmode:o,displayDate:!0,course:t,lightBG:n%2!=0,disableWorkload:"COURSE"!==t.itemType||i,onRemove:function(t,n){return e.onRemove(t,n)},onWaitingList:t.onWaitingList,stream:t.stream},t.id)}))})}})]})})}}),Object.defineProperty(t.prototype,"onRemove",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return(0,y.__awaiter)(this,void 0,Promise,(function(){var n,o,r,i,a=this;return(0,y.__generator)(this,(function(l){switch(l.label){case 0:return n=this.i18n.formatMessage,o=this.store.items,r=o.$.find((function(t){return t.id===e})),[4,this.store.requestCancellationInfo(e)];case 1:return l.sent(),i=this.store.isCancellationPossible,[4,this.modal.confirm((0,j.jsx)(I.PE,{hAlign:"center",vAlign:"center",stretch:!0,stack:!0,between:"32",children:(0,j.jsx)(I.QR,{children:(0,j.jsx)(be,{children:this.store.cancellationNotPossibleMessage(r.name,r.startDateTime)||this.store.cancellationPossibleWarningMessage(r.name,r.startDateTime)||this.store.cancellationMessage(r.name,r.startDateTime)})})}),{title:n({id:"noxweb.booking.cancel",defaultMessage:"Cancel booking"}),confirmText:i?n({id:"commons.confirm",defaultMessage:"Confirm"}):void 0,confirmColor:"errorColor",confirmAction:function(){return a.store.cancelBooking(t,e,r.bookedFor,r.bookedBy)}})];case 2:return l.sent(),[2]}}))}))}}),(0,y.__decorate)([_.external,v.PA],t)}(k.Component),ge=fe}}]);

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.