1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[216],{5071:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/treinos",function(){return e(77603)}])},74787:function(n,t,e){"use strict";var r=e(67294);t.Z=function(){var n=(0,r.useState)({width:void 0,height:void 0}),t=n[0],e=n[1];return(0,r.useEffect)((function(){var n=function(){e({width:window.screen.width,height:window.innerHeight})};return window.addEventListener("resize",n),n(),function(){return window.removeEventListener("resize",n)}}),[]),t}},77603:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSP:function(){return nn},default:function(){return tn}});var r=e(85893),i=e(16613),o=e(67294),u=e(81127),a=e(56003);function l(n,t){return t||(t=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(t)}}))}function s(){var n=l(["\n display: flex;\n align-items: center;\n"]);return s=function(){return n},n}function c(){var n=l(["\n font-weight: 500;\n font-size: 14px;\n color: #fff;\n text-transform: uppercase;\n"]);return c=function(){return n},n}var d=a.ZP.div.withConfig({componentId:"sc-4fa06391-0"})(s()),f=(a.ZP.p.withConfig({componentId:"sc-4fa06391-1"})(c()),e(17882)),h=e(60666);function v(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function b(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function p(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var r,i,o=[],u=!0,a=!1;try{for(e=e.call(n);!(u=(r=e.next()).done)&&(o.push(r.value),!t||o.length!==t);u=!0);}catch(l){a=!0,i=l}finally{try{u||null==e.return||e.return()}finally{if(a)throw i}}return o}}(n,t)||g(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(n){return function(n){if(Array.isArray(n))return v(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||g(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(n,t){if(n){if("string"===typeof n)return v(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?v(n,t):void 0}}var x=function(n){var t=(0,o.useRef)(!1),e=n.objetivos,i=n.onChange,a=n.placeholder,l=n.allOption,s=e.map((function(n){var t=p(function(n){var t=n.substring(1);return[n[0],t]}(n.attributes.Titulo),2)[1];return{value:n.id,label:t}})),c=[{value:120,label:l}].concat(m(s)),v=(0,o.useState)(null)[0],g=(0,f.V)(),x=(0,o.useMemo)((function(){return(0,h.N)(t,g)}),[g]);return(0,r.jsx)(d,{children:(0,r.jsx)(u.ZP,{styles:x,isSearchable:!1,isDisabled:!1,isLoading:!1,isClearable:!1,isMulti:!1,isOpen:!1,defaultValue:v,onChange:function(n){return function(n){if(n===l.toLowerCase())i("");else{var t=e.find((function(t){return t.attributes.Titulo==="#"+n})).attributes.Titulo;i(t)}}(n.label.toLowerCase())},options:c,placeholder:a,theme:function(n){return function(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{},r=Object.keys(e);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})))),r.forEach((function(t){b(n,t,e[t])}))}return n}({},n,{borderRadius:0,colors:{primary25:"black",primary:"white"}})}})})},j=e(30583);function y(n){var t=n.headerImage,e=n.objetivos,o=n.onChange,u=n.translations;return(0,r.jsx)(i.W2,{children:(0,r.jsxs)(i.UX,{children:[(0,r.jsxs)(i.lS,{children:[(0,r.jsxs)(i.lU,{children:[(0,r.jsx)(i.QE,{children:u.subtitle}),(0,r.jsx)(i.Dx,{children:u.title})]}),(0,r.jsx)(x,{objetivos:e,onChange:o,placeholder:u.placeholder,allOption:u.allOption})]}),(0,r.jsx)(i.pY,{children:(0,r.jsx)(i.U6,{layout:"fill",src:(0,j.bU)(null===t||void 0===t?void 0:t.url),alt:null===t||void 0===t?void 0:t.alternativeText})})]})})}var w=e(80146),C=e(41664),S=e.n(C),P=e(8913),O=e(79056),I=e(6988),Z=e(25675),_=e.n(Z);function k(n,t){return t||(t=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(t)}}))}function z(){var n=k(["\n width: 375px;\n height: auto;\n background-color: ",";\n margin: "," 0;\n display: flex;\n flex-direction: column;\n\n "," {\n max-width: 375px;\n width: 90%;\n }\n"]);return z=function(){return n},n}function E(){var n=k([""]);return E=function(){return n},n}function A(){var n=k(["\n width: 100%;\n height: 200px;\n position: relative;\n"]);return A=function(){return n},n}function T(){var n=k(["\n margin: 27px 0 0 ",";\n display: flex;\n flex-direction: column;\n"]);return T=function(){return n},n}function D(){var n=k(["\n font-style: normal;\n font-weight: 700;\n font-size: ",";\n line-height: ",";\n text-transform: uppercase;\n color: ",";\n"]);return D=function(){return n},n}function L(){var n=k(["\n font-style: normal;\n font-weight: 400;\n font-size: ",";\n line-height: ",";\n text-transform: uppercase;\n color: ",";\n"]);return L=function(){return n},n}function U(){var n=k(["\n padding-right: ",";\n"]);return U=function(){return n},n}function H(){var n=k(["\n font-style: normal;\n font-weight: 400;\n font-size: ",";\n line-height: ",";\n color: ",";\n margin: "," 0 "," ",";\n"]);return H=function(){return n},n}function N(){var n=k(["\n padding: 10px 0;\n"]);return N=function(){return n},n}var M=a.ZP.div.withConfig({componentId:"sc-50ed4b8c-0"})(z(),(function(n){return n.theme.v2.colors["bg-inverse"]}),I.Z.stack.s,O.BC.mobile),R=(0,a.ZP)(_()).withConfig({componentId:"sc-50ed4b8c-1"})(E()),W=a.ZP.div.withConfig({componentId:"sc-50ed4b8c-2"})(A()),V=a.ZP.div.withConfig({componentId:"sc-50ed4b8c-3"})(T(),I.Z.stack.s),X=a.ZP.span.withConfig({componentId:"sc-50ed4b8c-4"})(D(),(function(n){return n.theme.v2.typography.arial.heading2.fontSize}),(function(n){return n.theme.v2.typography.arial.heading2.lineHeight}),(function(n){return n.theme.v2.colors["text-inverse"]})),B=a.ZP.span.withConfig({componentId:"sc-50ed4b8c-5"})(L(),(function(n){return n.theme.v2.typography.arial.bodyDefault.fontSize}),(function(n){return n.theme.v2.typography.arial.bodyDefault.lineHeight}),(function(n){return n.hashtag})),F=a.ZP.div.withConfig({componentId:"sc-50ed4b8c-6"})(U(),I.Z.stack.s),J=a.ZP.p.withConfig({componentId:"sc-50ed4b8c-7"})(H(),(function(n){return n.theme.v2.typography.arial.bodyLarge.fontSize}),(function(n){return n.theme.v2.typography.arial.bodyLarge.lineHeight}),(function(n){return n.theme.v2.colors["text-inverse"]}),I.Z.stack.xxxs,I.Z.stack.xxxs,I.Z.stack.s),K=a.ZP.div.withConfig({componentId:"sc-50ed4b8c-8"})(N());function Q(n){var t,e,i,u,a,l,s,c,d,f,h,v,b,p,m,g,x,y,w=n.treino,C=(0,o.useState)(!1)[0];return(0,r.jsxs)(M,{children:[(0,r.jsx)(W,{children:(0,r.jsx)(R,{layout:"fill",src:(0,j.bU)(null===(t=w.attributes)||void 0===t||null===(e=t.Imagem)||void 0===e||null===(i=e.data)||void 0===i||null===(u=i[0])||void 0===u||null===(a=u.attributes)||void 0===a?void 0:a.url)})}),(0,r.jsxs)(V,{children:[(0,r.jsx)(X,{children:null===(l=w.attributes)||void 0===l?void 0:l.Titulo}),(0,r.jsx)(B,{hashtag:(null===(s=w.attributes)||void 0===s||null===(c=s.objetivo_treino)||void 0===c||null===(d=c.data)||void 0===d||null===(f=d.attributes)||void 0===f?void 0:f.Cor)?w.attributes.objetivo_treino.data.attributes.Cor:"#fff",children:(null===(h=w.attributes)||void 0===h||null===(v=h.objetivo_treino)||void 0===v?void 0:v.data)&&(null===(b=w.attributes.objetivo_treino)||void 0===b||null===(p=b.data)||void 0===p||null===(m=p.attributes)||void 0===m?void 0:m.Titulo)?(y=w.attributes.objetivo_treino.data.attributes.Titulo,y.startsWith("#")?y:"#".concat(y)):"#CARDIOVASCULARES"})]}),(0,r.jsx)(K,{children:C?(0,r.jsx)(F,{children:(0,r.jsx)(J,{children:null===(g=w.attributes)||void 0===g?void 0:g.Descricao})}):(0,r.jsx)(F,{children:(0,r.jsx)(J,{children:null===(x=w.attributes)||void 0===x?void 0:x.DescricaoCurta})})})]})}var Y=e(89451);function $(n){var t=n.treinos,e=n.studios,i=n.translations,o=function(n){var e=3*n,r=e+3;return t.slice(e,r)},u=t.slice(3*e.length),a=u.length>0;return(0,r.jsx)(P.W2,{children:(0,r.jsxs)(P.fH,{children:[e.map((function(n,t){return(0,r.jsxs)(P.C4,{children:[0!==t&&(0,r.jsx)(S(),{href:"/unidades",passHref:!0,children:(0,r.jsx)(P.zx,{children:i.seePlans})}),(0,r.jsxs)(P.rj,{children:[(0,r.jsx)(Y.Z,{studio:n}),(0,r.jsx)(P.W4,{children:(0,r.jsx)(S(),{href:"/unidades",passHref:!0,children:(0,r.jsx)(P.zx,{children:i.seePlans})})}),(0,r.jsx)(P.SD,{children:o(t).map((function(n){return(0,r.jsx)(Q,{treino:n},n.id)}))})]})]},n.id)})),a&&(0,r.jsx)(P.rj,{children:(0,r.jsx)(P.SD,{children:u.map((function(n){return(0,r.jsx)(Q,{treino:n},n.id)}))})})]})})}var q=e(51554),G=e(74787);var nn=!0,tn=function(n){var t,e,i,u,a=n.treinos,l=n.studios,s=n.objetivoTreinos,c=n.headerImage,d=n.i18nProps,f=n.canonicalUrl,h=(0,o.useState)(""),v=h[0],b=h[1],p=(0,G.Z)(),m=q.KS.mobile,g=c.find((function(n){return"treinos"===n.attributes.Slug})),x=null===(t=g.attributes.Imagem)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.attributes,C=null===(i=g.attributes.ImagemMobile)||void 0===i||null===(u=i.data)||void 0===u?void 0:u.attributes,S=(0,j.vb)(x,C,p.width,m),P=(0,o.useMemo)((function(){return(0,j.xk)(a,v)}),[a,v]),O=(0,o.useMemo)((function(){return(0,j.OJ)(l,v)}),[l,v]),I=d.workout,Z=d.common.pages.workoutPage;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{title:Z.title,content:Z.description,canonical:f}),(0,r.jsx)(y,{headerImage:S,objetivos:s,onChange:b,translations:I.header}
1),(0,r.jsx)($,{treinos:P,studios:O,translations:I.body})]})}}},function(n){n.O(0,[613,339,774,888,179],(function(){return t=5071,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
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.