PageSourceSearch

https://yes.fit/_next/static/chunks/pages/blog/[slug]-d6e6f7b8fdeb4e0b.js

js yes.fit collected 2026-09-24 11:24:57 UTC 12,886 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2492],{13214:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/[slug]",function(){return n(91288)}])},55995:function(e,t,n){"use strict";n.d(t,{o:function(){return d}});var r=n(85893),l=n(41664),i=n(67294),s=n(20064);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,i=[],s=!0,o=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(a){o=!0,l=a}finally{try{s||null==n.return||n.return()}finally{if(o)throw l}}return i}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,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.")}()}var d=function(e){var t=e.data,n=e.CustomContent,o=e.title,a=void 0===o?null:o,d=e.titleIconComponent,m=void 0===d?null:d,f=e.description,x=void 0===f?null:f,p=e.seeAllHref,h=e.hideArrows,v=void 0!==h&&h,g=e.customItemWidth,b=e.emptyComponent,j=void 0===b?null:b,y=u(function(){var e=(0,i.useRef)(),t=(0,i.useState)(0),n=t[0],r=t[1],l=(0,i.useState)(0),s=l[0],o=l[1];return[{ref:e,onMouseDown:function(t){var n=t.nativeEvent;r(n.clientX),o(e.current.scrollLeft)},onMouseMove:function(t){var r=t.nativeEvent;r.buttons>0&&(r.preventDefault(),e.current.scrollTo({left:s+n-r.clientX,behavior:"smooth"}))}},e]}(),1)[0];return(0,r.jsxs)("div",{className:"pl-2 md:pl-14",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[a&&(0,r.jsxs)("div",{className:"flex items-center mb-2",children:[m&&(0,r.jsxs)(r.Fragment,{children:[m(),(0,r.jsx)("div",{className:"mr-3"})]}),(0,r.jsx)("p",{className:"text-gray-800 font-medium text-xl md:text-3xl",children:a})]}),p&&(0,r.jsx)("div",{className:"mb-5 mr-5",children:(0,r.jsx)(l.default,{href:p,passHref:!0,children:(0,r.jsx)("a",{onClick:function(){return window.scrollTo(0,0)},className:"underline text-gray-600 font-normal text-lg md:text-xl ",children:"See All"})})})]}),(0,r.jsxs)("div",{className:"box-border grid grid-cols-1 relative ".concat(x?"gap-10":"gap-0"),children:[x&&(0,r.jsx)("div",{className:"lg:max-w-[850px]",children:(0,r.jsx)("p",{className:"font-normal text-lg leading-8 text-gray-800 pr-6 md:pr-6 lg:pr-0",children:x})}),j&&!t.length?j():(0,r.jsx)("ul",c({className:"lane list-none m-0 grid grid-flow-col ".concat(g||"auto-cols-card"," overflow-x-scroll pb-10 cursor-move relative"),style:{scrollSnapType:"x mandatory",scrollPadding:"0 1rem",WebkitOverflowScrolling:"touch",cursor:"grab"}},y,{children:n||(null===t||void 0===t?void 0:t.map((function(e,t){return(0,r.jsx)("li",{style:{scrollSnapAlign:"start"},children:(0,r.jsx)(s.Z,c({},e),e.cardType+t)},t)})))}),a),v?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"hidden md:flex absolute top-0 w-16 h-[88%]  opacity-0 hover:opacity-70 items-center justify-center z-50 transition-all cursor-pointer ".concat(x&&"md:left-[0px]"),onClick:function(){y.ref.current.scrollTo({left:y.ref.current.scrollLeft-240,behavior:"smooth"})},children:(0,r.jsx)("div",{className:"bg-black cursor-pointer rounded-full w-[52px] h-[52px] flex items-center justify-center",children:(0,r.jsx)("i",{"aria-hidden":!0,
1className:"far fa-angle-left text-[40px] leading-none p-0 text-white mr-[3px] mt-[3px]"})})}),(0,r.jsx)("div",{className:"hidden md:flex absolute right-0 top-0 w-16 h-[88%] opacity-0 hover:opacity-70 items-center justify-center z-50 transition-all cursor-pointer",onClick:function(){y.ref.current.scrollTo({left:y.ref.current.scrollLeft+240,behavior:"smooth"})},children:(0,r.jsx)("div",{className:"bg-black cursor-pointer rounded-full w-[52px] h-[52px] flex items-center justify-center",children:(0,r.jsx)("i",{"aria-hidden":!0,className:"far fa-angle-right text-[40px] leading-none p-0 text-white mr-[-3px] mt-[3px]"})})})]})]})]})}},28194:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(85893),l=n(57960),i=n(8553),s=n(41664),o=function(e){var t=e.items,n=e.hasProfileStyling,o=void 0!==n&&n;return(0,r.jsx)("nav",{className:"relative h-[75px] flex flex-shrink-0 overflow-x-auto hide-webkit-scrollbar",children:(0,r.jsx)(l.s,{children:t.map((function(e,t){return(0,r.jsxs)("div",{className:o?"w-full relative flex items-center max-w-[150px] md:max-w-[180px] h-full justify-center flex-shrink-0 mr-8":"w-full relative flex items-center max-w-[150px] md:max-w-[285px] h-full justify-center flex-shrink-0 mr-2 md:mr-[150px] min-w-[40vw] md:min-w-0",children:[(0,r.jsx)(s.default,{replace:!0,href:e.href?e.href:"#",children:(0,r.jsx)("a",{className:"".concat(e.isActive?"opacity-100 font-medium":"opacity-50 font-normal"," cursor-pointer w-full h-full flex items-center justify-center no-underline text-lg"),children:e.text})}),e.isActive&&(0,r.jsx)(i.E.div,{className:"h-1 bg-yf-green w-full bottom-0 left-0 absolute z-10",layoutId:"border",initial:!1,animate:{opacity:1},transition:{type:"spring",stiffness:400,damping:40}})]},t)}))})})}},91288:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return k},default:function(){return C}});var r=n(85893),l=n(11510),i=n(12870),s=n.n(i),o=n(12918),a=n(25675),c=n(41664),u=n(11163),d=(n(67294),n(25456)),m=n(86459);var f=(0,n(79075).Z)("pinterest",(function(e,t){var n=t.media,r=t.description;return(0,d.Z)(e,"pinterest.url"),(0,d.Z)(n,"pinterest.media"),"https://pinterest.com/pin/create/button/"+(0,m.Z)({url:e,media:n,description:r})}),(function(e){return{media:e.media,description:e.description}}),{windowWidth:1e3,windowHeight:730}),x=(0,n(67267).Z)({color:"#cb2128",networkName:"pinterest",path:"M32,16c-8.8,0-16,7.2-16,16c0,6.6,3.9,12.2,9.6,14.7c0-1.1,0-2.5,0.3-3.7 c0.3-1.3,2.1-8.7,2.1-8.7s-0.5-1-0.5-2.5c0-2.4,1.4-4.1,3.1-4.1c1.5,0,2.2,1.1,2.2,2.4c0,1.5-0.9,3.7-1.4,5.7 c-0.4,1.7,0.9,3.1,2.5,3.1c3,0,5.1-3.9,5.1-8.5c0-3.5-2.4-6.1-6.7-6.1c-4.9,0-7.9,3.6-7.9,7.7c0,1.4,0.4,2.4,1.1,3.1 c0.3,0.3,0.3,0.5,0.2,0.9c-0.1,0.3-0.3,1-0.3,1.3c-0.1,0.4-0.4,0.6-0.8,0.4c-2.2-0.9-3.3-3.4-3.3-6.1c0-4.5,3.8-10,11.4-10 c6.1,0,10.1,4.4,10.1,9.2c0,6.3-3.5,11-8.6,11c-1.7,0-3.4-0.9-3.9-2c0,0-0.9,3.7-1.1,4.4c-0.3,1.2-1,2.5-1.6,3.4 c1.4,0.4,3,0.7,4.5,0.7c8.8,0,16-7.2,16-16C48,23.2,40.8,16,32,16z"}),p=n(16573),h=n(1020),v=n(46616),g=n(87385),b=n(55995),j=n(48840),y=n(28194),w=n(67446);function N(){var e,t,n=(e=['\n  *[_type == "post" && slug.current == $slug][0] {\n\tauthor->{\n\t\tname,\n\t\t"image": image.asset,\n\t\t"slug": slug.current,\n\t\t"biopt": pt::text(bio)\n\t},\n\tpublishedAt,\n    _id,\n    title,\n    body,\n    mainImage,\n    categories[]->{\n      _id,\n      title,\n\t  "slug": slug.current,\n    },\n    "slug": slug.current,\n\t"relatedPosts": *[_type=="post" && references(^.categories[]->_id)] | order(publishedAt desc){\n\t\tauthor->{\n\t\t\t\t\tname,\n\t\t\t\t\t"image": image.asset,\n\t\t\t\t\t"slug": slug.current,\n\t\t\t},\n\t\t\tpublishedAt,\n\t\t\ttitle,\n\t\t\t"slug": slug.current,\n\t\t\tmainImage,\n\t\t\tcategories[]->{\n\t\t\t\ttitle,\n\t\t\t\t"slug": slug.current,\n\t\t\t},\n\t\t\t"plaintext": pt::text(body),\n\t  }[1..15]\n  }\n'],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return N=function(){return n},n}var _=s()(N()),k=!0,C=function(e){var t,n,i,s,d,m,N=e.data,k=e.preview,C=(0,u.useRouter)(),A=(0,w.$r)(_,{params:{slug:null===N||void 0===N||null===(t=N.post)||void 0===t?void 0:t.slug},initialData:null===N||void 0===N?void 0:N.post,enabled:k&&(null===N||void 0===N||null===(n=N.post)||void 0===n?void 0:n.slug)}).data;if(!A)return(0,r.jsx)(o.default,{statusCode:500});var S,I,O,P=A.title,z=A.mainImage,T=A.categories,Z=A.body,E=A.relatedPosts;return C.isFallback||(null===N||void 0===N||null===(i=N.post)||void 0===i?void 0:i.slug)?(null===N||void 0===N?void 0:N.post)?(0,r.jsxs)(j.L,{cjPageType:"information",pageTitle:P,metaImage:(0,w.uH)(z).size(1920,500).quality(80).url(),children:[(0,r.jsx)("div",{className:"flex items-center justify-center relative",children:(0,r.jsx)(a.default,{width:1920,height:500,src:z.asset._ref,loader:function(e){var t=e.quality;return(0,w.uH)(z).size(1920,500).quality(t).url()},placeholder:"blur",blurDataURL:(0,w.uH)(z).size(1920,500).blur(99).url(),className:"w-full h-auto"})}),(0,r.jsxs)("div",{className:"max-w-screen-fullHd mx-auto ",children:[(0,r.jsx)("div",{className:"bg-white ",children:(0,r.jsx)(y.m,{items:[{href:"/blog/".concat(encodeURIComponent(A.slug)),isActive:!0,text:"Post"}]})}),(0,r.jsxs)("div",{className:"flex content-between flex-col md:flex-row",children:[(0,r.jsxs)("div",{className:"flex md:ml-8 py-3 md:py-5 pl-6 items-center flex-wrap",children:[(null===T||void 0===T?void 0:T.length)?(0,r.jsx)("p",{className:"font-medium mr-1 md:mr-5",children:"Categories: "}):null,null!==(I=null===T||void 0===T?void 0:T.map((function(e){return(0,r.jsx)(c.default,{href:"/blog/categories/".concat(e.slug),children:(0,r.jsx)("a",{children:(0,r.jsx)("div",{className:"py-1.5 px-4 roun
1ded bg-yf-purple m-1",children:(0,r.jsx)("p",{className:"text-white font-medium text-xs md:text-sm uppercase",children:null!==(S=e.title)&&void 0!==S?S:"..."})})})},e._id)})))&&void 0!==I?I:[]]}),(0,r.jsxs)("div",{className:"md:ml-auto flex py-1 md:py-5 pl-6 md:pl-0 items-center pr-5",children:[(0,r.jsx)("div",{className:"mr-2",children:(0,r.jsx)(p.Z,{url:"https://yes.fit/".concat(encodeURIComponent(A.slug)),children:(0,r.jsx)(h.Z,{size:30,round:!0})})}),(0,r.jsx)("div",{className:"mr-2",children:(0,r.jsx)(v.Z,{url:"https://yes.fit/".concat(encodeURIComponent(A.slug)),children:(0,r.jsx)(g.Z,{size:30,round:!0})})}),(0,r.jsx)("div",{className:"mr-2",children:(0,r.jsx)(f,{media:(0,w.uH)(z).url(),url:"".concat("web-next-jki590450.web-dev.yes.fit","/").concat(encodeURIComponent(A.slug)),children:(0,r.jsx)(x,{size:30,round:!0})})})]})]}),(0,r.jsx)("div",{className:"h-px bg-gray-200 mb-10"})]}),(0,r.jsx)("article",{className:"prose max-w-7xl mx-auto px-5 mb-14",children:(0,r.jsx)(w.YI,{blocks:Z})}),(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-5 mb-14",children:[(0,r.jsx)("p",{className:"text-3xl font-medium mb-7",children:"About the Author"}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("img",{className:"rounded-full border-solid border-2 border-yf-green mr-5 max-h-[100px] max-w-[100px]",src:(0,w.uH)(null===A||void 0===A||null===(s=A.author)||void 0===s?void 0:s.image).size(100,100).url()}),(0,r.jsxs)("div",{children:[(0,r.jsx)(c.default,{href:"/trainers/".concat(null===(d=A.author)||void 0===d?void 0:d.slug),children:(0,r.jsx)("a",{className:"text-yf-green text-xl font-medium underline cursor-pointer block mb-2",children:null===(m=A.author)||void 0===m?void 0:m.name})}),(0,r.jsx)("div",{className:"block",children:(0,r.jsx)("p",{children:A.author.biopt})})]})]})]}),(null===E||void 0===E?void 0:E.length)?(0,r.jsx)("div",{className:"max-w-7xl mx-auto mb-14",children:(0,r.jsx)(b.o,{title:"Related Posts",data:null!==(O=null===E||void 0===E?void 0:E.map((function(e){var t,n,r,i,s,o;return{cardType:"blog",sanitySrc:e.mainImage,imageURL:"",title:e.title,href:"/blog/".concat(null!==(o=null===e||void 0===e?void 0:e.slug)&&void 0!==o?o:""),publishedDate:(0,l.Z)(new Date(e.publishedAt),"MMM d"),author:{imageURL:(null===e||void 0===e||null===(t=e.author)||void 0===t?void 0:t.image)?(0,w.uH)(null===e||void 0===e||null===(n=e.author)||void 0===n?void 0:n.image).width(38).height(38).url():null},category:(null===e||void 0===e||null===(r=e.categories)||void 0===r?void 0:r.length)?{color:"#8C80F8",name:null===(i=e.categories[0])||void 0===i?void 0:i.title,href:"/blog/categories/".concat(null===(s=e.categories[0])||void 0===s?void 0:s.slug)}:null,previewText:e.plaintext.slice(0,180)}})))&&void 0!==O?O:[]})}):null]}):(0,r.jsx)(o.default,{statusCode:500}):(0,r.jsx)(o.default,{statusCode:404})}},12918:function(e,t,n){e.exports=n(89185)}},function(e){e.O(0,[4885,1887,2004,1035,1510,2713,1599,64,9774,2888,179],(function(){return t=13214,e(e.s=t);var t}));var t=e.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.