"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9107],{99107:function(e,n,i){i.r(n),i.d(n,{default:function(){return p}}),i(67294);var a=i(87379),t=a.ZP.div.withConfig({displayName:"TrainerContainer",componentId:"sc-12jawfc-0"})(["align-items:center;display:flex;margin-top:5.1rem;"]),r=a.ZP.img.withConfig({displayName:"TrainerImage",componentId:"sc-12jawfc-1"})(["max-width:10rem;margin-right:2.4rem;height:auto;"]),c=a.ZP.div.withConfig({displayName:"TrainerInfo",componentId:"sc-12jawfc-2"})([""]),s=a.ZP.div.withConfig({displayName:"TrainerName",componentId:"sc-12jawfc-3"})(["font-weight:",";"],function(e){return e.theme.bold}),o=a.ZP.div.withConfig({displayName:"TrainerSince",componentId:"sc-12jawfc-4"})(["margin-top:0.4rem;margin-bottom:1.2rem;"]),l=a.ZP.a.withConfig({displayName:"TrainerBioLink",componentId:"sc-12jawfc-5"})([""]),g=i(8508),m=i(72679),d=i(85893),p=function(e){var n=e.trainer,i="https://assets.cbtnuggets.com",a=new Date(null==n?void 0:n.trainerSince).getFullYear(),p="".concat(i,"/assetshttps://www.cbtnuggets.com/images/trainers/refresh/webp/small/").concat(null==n?void 0:n.slug.replace("-","_"),".webp"),u="".concat(i,"/assetshttps://www.cbtnuggets.com/images/trainers/refresh/small/").concat(null==n?void 0:n.slug.replace("-","_"),".png");return(0,d.jsxs)(t,{children:[(0,d.jsx)(m.LazyLoadComponent,{children:(0,d.jsxs)("picture",{children:[(0,d.jsx)(r,{width:100,height:100,alt:"".concat(null==n?void 0:n.name," CBT Nuggets Trainer"),src:u}),(0,d.jsx)("source",{srcSet:p,type:(0,g.y)(p)})]})}),(0,d.jsxs)(c,{children:[(0,d.jsx)(s,{children:null==n?void 0:n.name}),(0,d.jsxs)(o,{children:["Nugget trainer since ",a]}),(0,d.jsx)(l,{href:"/trainers/".concat(null==n?void 0:n.slug),children:"Read the full bio"})]})]})}},8508:function(e,n,i){i.d(n,{y:function(){return a}});var a=function(e){var n=e.match(/^.*\.(jpg|jpeg|png|gif|bmp)$/);switch(n&&n.length>=2?n[1]:"jpeg"){case"jpeg":case"jpg":default:return"image/jpeg";case"png":return"image/png";case"gif":return"image/gif"}}}}]);