1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[56216],{40056:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var o=n(67294),i=n(89739),a=n(4340),r=n(97937),l=n(21640),s=n(78860),c=n(93967),u=n.n(c),d=n(29372),p=n(64217),m=n(42550),f=n(96159),g=n(53124),h=n(49790),v=n(14747),y=n(83559);let b=(e,t,n,o,i)=>({background:e,border:`${(0,h.bf)(o.lineWidth)} ${o.lineType} ${t}`,[`${i}-icon`]:{color:n}}),w=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:i,fontSize:a,fontSizeLG:r,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:p,withDescriptionPadding:m,defaultPadding:f}=e;return{[t]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:f,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, 2 padding-top ${n} ${c}, padding-bottom ${n} ${c}, 3 margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:m,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:p,fontSize:r},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},j=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:i,colorWarning:a,colorWarningBorder:r,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:m}=e;return{[t]:{"&-success":b(i,o,n,e,t),"&-info":b(m,p,d,e,t),"&-warning":b(l,r,a,e,t),"&-error":Object.assign(Object.assign({},b(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},x=e=>{let{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:i,fontSizeIcon:a,colorIcon:r,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:(0,h.bf)(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:r,transition:`color ${o}`,"&:hover":{color:l}}},"&-close-text":{color:r,transition:`color ${o}`,"&:hover":{color:l}}}}};var $=(0,y.I$)("Alert",e=>[w(e),j(e),x(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};let _={success:i.Z,info:s.Z,error:a.Z,warning:l.Z},N=e=>{let{icon:t,prefixCls:n,type:i}=e,a=_[i]||null;return t?(0,f.wm)(t,o.createElement("span",{className:`${n}-icon`},t),()=>({className:u()(`${n}-icon`,t.props.className)})):o.createElement(a,{className:`${n}-icon`})},Z=e=>{let{isClosable:t,prefixCls:n,closeIcon:i,handleClose:a,ariaProps:l}=e,s=!0===i||void 0===i?o.createElement(r.Z,null):i;return t?o.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},l),s):null},C=o.forwardRef((e,t)=>{let{description:n,prefixCls:i,message:a,banner:r,className:l,rootClassName:s,style:c,onMouseEnter:f,onMouseLeave:h,onClick:v,afterClose:y,showIcon:b,closable:w,closeText:j,closeIcon:x,action:_,id:C}=e,k=E(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[I,S]=o.useState(!1),O=o.useRef(null);o.useImperativeHandle(t,()=>({nativeElement:O.current}));let{getPrefixCls:P,direction:T,closable:M,closeIcon:z,className:H,style:R}=(0,g.dj)("alert"),B=P("alert",i),[D,L,q]=$(B),Y=t=>{var n;S(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},A=o.useMemo(()=>
3void 0!==e.type?e.type:r?"warning":"info",[e.type,r]),W=o.useMemo(()=>"object"==typeof w&&!!w.closeIcon||!!j||("boolean"==typeof w?w:!1!==x&&null!=x||!!M),[j,x,w,M]),X=!!r&&void 0===b||b,F=u()(B,`${B}-${A}`,{[`${B}-with-description`]:!!n,[`${B}-no-icon`]:!X,[`${B}-banner`]:!!r,[`${B}-rtl`]:"rtl"===T},H,l,s,q,L),G=(0,p.Z)(k,{aria:!0,data:!0}),K=o.useMemo(()=>"object"==typeof w&&w.closeIcon?w.closeIcon:j||(void 0!==x?x:"object"==typeof M&&M.closeIcon?M.closeIcon:z),[x,w,M,j,z]),V=o.useMemo(()=>{let e=null!=w?w:M;if("object"==typeof e){let{closeIcon:t}=e,n=E(e,["closeIcon"]);return n}return{}},[w,M]);return D(o.createElement(d.ZP,{visible:!I,motionName:`${B}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:y},({className:t,style:i},r)=>o.createElement("div",Object.assign({id:C,ref:(0,m.sQ)(O,r),"data-show":!I,className:u()(F,t),style:Object.assign(Object.assign(Object.assign({},R),c),i),onMouseEnter:f,onMouseLeave:h,onClick:v,role:"alert"},G),X?o.createElement(N,{description:n,icon:e.icon,prefixCls:B,type:A}):null,o.createElement("div",{className:`${B}-content`},a?o.createElement("div",{className:`${B}-message`},a):null,n?o.createElement("div",{className:`${B}-description`},n):null),_?o.createElement("div",{className:`${B}-action`},_):null,o.createElement(Z,{isClosable:W,prefixCls:B,closeIcon:K,handleClose:Y,ariaProps:V}))))});var k=n(15671),I=n(43144),S=n(61120),O=n(78814),P=n(82963),T=n(60136);let M=function(e){function t(){var e,n,o;return(0,k.Z)(this,t),n=t,o=arguments,n=(0,S.Z)(n),(e=(0,P.Z)(this,(0,O.Z)()?Reflect.construct(n,o||[],(0,S.Z)(this).constructor):n.apply(this,o))).state={error:void 0,info:{componentStack:""}},e}return(0,T.Z)(t,e),(0,I.Z)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,id:n,children:i}=this.props,{error:a,info:r}=this.state,l=(null==r?void 0:r.componentStack)||null,s=void 0===e?(a||"").toString():e;return a?o.createElement(C,{id:n,type:"error",message:s,description:o.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},void 0===t?l:t)}):i}}])}(o.Component);C.ErrorBoundary=M;var z=C},54831:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/aulas_coletivas/_AulasColetivas",function(){return n(41994)}])},47332:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(85893),i=n(57381),a=n(25593),r=n(81627);function l(e){let{spinning:t,children:n}=e,l=(0,r.T)("common");return t?(0,o.jsxs)("div",{className:"w-100 p-10 text-center",children:[(0,o.jsx)(i.Z,{spinning:!0}),(0,o.jsx)(a.Z.Title,{level:5,style:{margin:0},children:l("loading")})]}):n}},7353:function(e,t){"use strict";t.Z={spinning:"14",jump:"15",running:"17",treinosdiarios:"18",yoga:"19",queime_em_casa:"20",queimeacasa:"20",pratique_dance:"21",cardio:"22",abdominais:"23",spinning2:"24",fitdance:"21",pratique_flow:"25",flow:"25",netFit_spinning:"26",powerdance:"29",powerbumbum:"30",powercore:"31",intensivejump:"28",coreografias:"33"}},41994:function(e,t,n){"use strict";n.r(t),n.d(t,{capasPossiveis:function(){return j},default:function(){return x}});var o=n(85893),i=n(61943),a=n(40056),r=n(71230),l=n(15746),s=n(4393),c=n(66309),u=n(32983),d=n(83622),p=n(67294),m=n(9473),f=n(81627),g=n(75015),h=n(7353),v=n(47332),y=n(33786),b=n(53361);let w=e=>{let t=(e.aula_linkvideo||"").trim();if(t)return t;let n=(e.aula_capa||"").match(/\/vi\/([^/]+)\//);return n?n[1]:""},j=e=>{let t=[],n=(e.aula_capa||"").trim(),o=w(e);!n||n.includes("/vi/")||n.includes("ytimg")||t.push(n),o&&(t.push("https://i.ytimg.com/vi/".concat(o,"/hq720.jpg")),t.push("https://i.ytimg.com/vi/".concat(o,"/sddefault.jpg")),t.push("https://i.ytimg.com/vi/".concat(o,"/hqdefault.jpg")));let i=(e.aula_capa_sprout||"").trim();return i&&t.push(i),n&&!n.includes("/vi//")&&t.push(n),t.push("/images/webp/bike/cycle.webp"),[...new Set(t)]};function x(e){let{tema:t,hideLangNotice:n=!1}=e,[w,j]=(0,p.useState)(null),{data:x,loading:E,loadingMore:_,hasMore:N}=(0,m.v9)(e=>e.aulasColetivas),Z=(0,m.I0)(),C=(0,f.T)("bikePage"),k=(0,f.T)("aulasColetivas"),I=(0,g.bU)();return(0,p.useEffect)(()=>{t&&Z((0,i.o)(h.Z[t]||14,{skip:0,take:24}))},[t,Z]),(0,o.jsxs)(v.Z,{spinning:E,children:[(0,o.jsxs)("div",{className:"p-1",children:[!n&&"pt-BR"!==I&&"pt-PT"!==I&&(0,o.jsx)(a.Z,{type:"info",showIcon:!0,className:"mb-2",message:C("videoLanguageNotice")}),(0,o.jsx)(r.Z,{gutter:16,children:x.map(e=>(0,o.jsx)(l.Z,{xs:{span:24},md:{span:12},className:"pb-4",children:(0,o.jsx)(s.Z,{title:e.aula_nome,size:"small",onClick:()=>j(e),style:{cursor:"pointer"},children:(0,o.jsxs)("div",{style:{position:"relative"},children:[(0,o.jsx)($,{aula:e}),(0,o.jsx)(c.Z,{color:"5"===e.aula_plano?"#87d068":"#2db7f5",style:{position:"absolute",top:8,right:0},children:"5"===e.aula_plano?k("premium"):k("free")})]})})},e.aula_id))}),!E&&!x.length&&(0,o.jsx)(u.Z,{description:k("empty")}),N&&(0,o.jsx)("div",{className:"text-center pb-4",children:(0,o.jsx)(d.ZP,{loading:_,onClick:()=>Z((0,i.o)(h.Z[t]||14,{skip:x.length,take:24})),children:k("loadMore")})})]}),w&&("33"===w.aula_categoria?(0,o.jsx)(b.default,{id:w.aula_sprout,onClose:()=>j(null)}):(0,o.jsx)(y.default,{id:w.aula_linkvideo,onClose:()=>j(null)}))]})}function $(e){let{aula:t}=e,n=j(t),[i,a]=(0,p.useState)(0),r=i>=n.length-1;return(0,o.jsx)("img",{src:n[i],alt:t.aula_nome,width:"100%",loading:"lazy",style:{display:"block",aspectRatio:"16 / 9",objectFit:r?"contain":"cover",background:"#f5f5f5"},onError:()=>a(e=>Math.min(e+1,n.length-1))})}},53361:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n(85893),i=n(29273),a=n(2585);function r(e){let{id:t,onClose:n}=e;return(0,o.jsxs)("div",{className:"youtube-fullscreen",children:[(0,o.jsx)("iframe",{width:"100%",height:"200",src:"https://videos.sproutvideo.com/embed/".concat(t),title:"YoutubePlayer",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:!1}),(0,o.jsx)(i.Z,{icon:(0,o.jsx)(a.dS3,{}),className:"youtube-close",onClick:n,style:{zIndex:99}})]})}n(67294)},33786:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var o=n(85893),i=n(67294),a=n(29273),r=n(2585);function l(e){let{id:t,onClose:n,onEnd:l}=e;return(0,i.useRef)(null),(0,i.useEffect)(()=>{let e;let n=document.createElement("script");n.src="https://www.youtube.com/iframe_api";let o=document.getElementsByTagName("script")[0];function i(e){e.data===window.YT.PlayerState.ENDED&&l&&l()}return o.parentNode.insertBefore(n,o),window.onYouTubeIframeAPIReady=function(){e=new window.YT.Player("youtube-player
3-".concat(t),{videoId:t,events:{onStateChange:i},playerVars:{autoplay:1,controls:1}})},()=>{e&&e.destroy&&e.destroy()}},[t,l]),(0,o.jsxs)("div",{className:"youtube-fullscreen",children:[(0,o.jsx)("div",{id:"youtube-player-".concat(t)}),(0,o.jsx)(a.Z,{icon:(0,o.jsx)(r.dS3,{}),className:"youtube-close",onClick:n,style:{zIndex:99}})]})}},61943:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var o=n(54395),i=n(81173);let a=function(e){let{skip:t=0,take:n=24}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async a=>{let r=t>0;return a(r?(0,o.C7)(!0):(0,o.K4)(!0)),i.Z.get("/aulas_coletivas",{params:{aula_categoria:e,skip:t,take:n}}).then(e=>{let{items:t=[],hasMore:n=!1}=e.data||{};a(r?(0,o.Y1)({items:t,hasMore:n}):(0,o.a_)({items:t,hasMore:n}))}).finally(()=>{a(r?(0,o.C7)(!1):(0,o.K4)(!1))})}}}},function(e){e.O(0,[4980,40411,29273,49774,92888,40179],function(){return e(e.s=54831)}),_N_E=e.O()}]);
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.