1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4507],{43513:(e,t,a)=>{a.d(t,{default:()=>m});var r=a(26254),i=a(5170),o=a(18853),l=a(65790),n=a(29679),s=a(94269),c=a(68303),d=a(87683);function m({hideHeading:e=!1,categorySlug:t,excludeCategorySlug:a}){let{addToCart:p}=(0,c._)(),[x,u]=(0,l.useState)([]);return(0,l.useEffect)(()=>{!async function(){try{let e=new URLSearchParams({limit:"3"});t&&e.set("category",t),a&&e.set("excludeCategory",a);let r=`/books?${e.toString()}`,i=await d.api.get(r);i.data&&u(i.data)}catch(e){console.error(e)}}()},[t,a]),(0,r.jsx)("section",{id:"books",className:"w-full py-16 md:py-20 bg-transparent relative z-10",children:(0,r.jsxs)("div",{className:"max-w-330 mx-auto px-6 md:px-12 lg:px-6 flex flex-col gap-10 md:gap-12",children:[!e&&(0,r.jsx)("h2",{className:"font-pockota text-[36px] md:text-[48px] font-medium leading-[1.1] tracking-[-1px] text-center text-text-dark",children:"Featured publications"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-330 mx-auto w-full",children:x.map(e=>{let t=e.amazonUrl||e.paperbackAmazonUrl,a=!!(e.formats?.includes("PAPERBACK")||t),l=!e.purchaseOptions||e.purchaseOptions.includes("WEBSITE"),c=!!e.formats?.includes("EBOOK")&&l,d=!!e.formats?.includes("AUDIOBOOK")&&l,m=c||d,x=c?e.ebookPriceInCents??e.priceInCents:d?e.audiobookPriceInCents??e.priceInCents:a?e.paperbackPriceInCents??e.priceInCents:e.priceInCents;return(0,r.jsxs)(s.Zp,{className:"w-full max-w-106 bg-white rounded-[28px] border border-light-grey/80 shadow-sm flex flex-col justify-between p-6 hover:shadow-md transition-all duration-300 group justify-self-center overflow-hidden",children:[(0,r.jsx)("div",{className:"relative w-full h-85 sm:h-95 overflow-hidden flex items-center justify-center p-4 shrink-0",children:(0,r.jsx)("div",{className:"relative w-full h-full transform transition-transform duration-500 group-hover:scale-105 flex items-center justify-center",children:e.coverImageUrl?(0,r.jsx)(o.default,{src:e.coverImageUrl,alt:`${e.title} Cover`,fill:!0,sizes:"(max-width: 768px) 100vw, 424px",className:"object-contain",unoptimized:!0}):(0,r.jsxs)("div",{className:"w-full h-full flex flex-col items-center justify-center bg-[#f4f2ee] rounded-2xl text-text-dark/40 gap-2 p-4 text-center",children:[(0,r.jsxs)("svg",{className:"w-12 h-12 text-grey",fill:"none",stroke:"currentColor",strokeWidth:"1.5",viewBox:"0 0 24 24",children:[(0,r.jsx)("title",{children:"Book Cover Placeholder"}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253"})]}),(0,r.jsx)("span",{className:"font-geist text-[14px] font-medium text-text-dark/60 line-clamp-2",children:e.title})]})})}),(0,r.jsxs)(s.Wu,{className:"px-0 pt-4 grow flex flex-col justify-between gap-5",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h3",{className:"font-pockota text-[22px] md:text-[24px] font-medium leading-tight text-text-dark group-hover:text-primary-red transition-colors line-clamp-2 min-h-14",children:e.title}),(0,r.jsxs)("div",{className:"flex items-center gap-2 text-text-dark/70 font-geist text-[14px]",children:[(0,r.jsx)(i.A,{className:"w-4 h-4 text-text-dark/60 shrink-0 fill-current"}),(0,r.jsx)("span",{children:e.author})]})]}),(0,r.jsxs)("div",{className:"space-y-4 pt-1",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,r.jsxs)("span",{className:"font-geist text-[24px] md:text-[26px] font-bold leading-none text-text-dark block",children:["$",(x/100).toFixed(2)]}),a&&!m&&(0,r.jsx)("span",{className:"font-geist text-[12px] text-grey",children:"Paperback"}),m&&a&&e.paperbackPriceInCents&&(0,r.jsxs)("span",{className:"font-geist text-[12px] text-grey",children:["Paperback: $",(e.paperbackPriceInCents/100).toFixed(2)]})]}),(0,r.jsxs)("div",{className:"space-y-2.5",children:[a&&t?(0,r.jsxs)(n.$,{render:(0,r.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer"}),nativeButton:!1,className:"w-full h-12 bg-black hover:bg-zinc-800 text-white font-geist text-[14px] sm:text-[15px] font-medium rounded-full flex items-center justify-center gap-2.5 transition-colors cursor-pointer border-none shadow-sm",children:[(0,r.jsx)(o.default,{src:"/assets/images/amazon_logo_white.webp",alt:"Amazon",width:18,height:18,className:"object-contain"}),(0,r.jsx)("span",{children:"Buy Paperback on Amazon"})]}):(0,r.jsxs)(n.$,{disabled:!0,"aria-disabled":"true",className:"w-full h-12 bg-[#EAEAEA]/70 text-text-dark/40 font-geist text-[14px] sm:text-[15px] font-medium rounded-full flex items-center justify-center gap-2.5 border-none shadow-none cursor-not-allowed select-none opacity-80",children:[(0,r.jsx)(o.default,{src:"/assets/images/amazon_logo.webp",alt:"Amazon",width:18,height:18,className:"object-contain opacity-30 grayscale"}),(0,r.jsx)("span",{children:"Physical Copy Unavailable"})]}),m?(0,r.jsx)(n.$,{type:"button",onClick:()=>p(e,c?"EBOOK":"AUDIOBOOK"),className:"w-full h-12 bg-[#EAEAEA] hover:bg-[#DCDCDC] text-text-dark font-geist text-[14px] sm:text-[15px] font-medium rounded-full flex items-center justify-center transition-colors cursor-pointer border-none shadow-none",children:c?"Add PDF to Cart":"Add Audiobook to Cart"}):(0,r.jsx)(n.$,{disabled:!0,"aria-disabled":"true",className:"w-full h-12 bg-[#EAEAEA]/70 text-text-dark/40 font-geist text-[14px] sm:text-[15px] font-medium rounded-full flex items-center justify-center border-none shadow-none cursor-not-allowed select-none opacity-80",children:"Digital Edition Unavailable"})]})]})]})]},e.id)})})]})})}},57910:(e,t,a)=>{a.d(t,{CQ:()=>x,qb:()=>n,v_:()=>c});var r=a(99458),i=a(81577);let o=r.k5(["PAPERBACK","EBOOK","AUDIOBOOK"]),l=r.k5(["AMAZON","WEBSITE"]);r.Ik({id:r.Yj(),slug:r.Yj(),title:r.Yj(),subtitle:r.Yj().nullable().optional(),author:r.Yj(),description:r.Yj(),isbn:r.Yj().nullable().optional(),pageCount:r.ai().int().positive().nullable().optional(),language:r.Yj(),priceInCents:r.ai().int().nonnegative(),comparePriceInCents:r.ai().int().nonnegative().nullable().optional(),coverImageUrl:r.Yj().url().nullable().optional(),status:r.k5(["DRAFT","PUBLISHED","UNPUBLISH","ARCHIVE"]),formats:r.YO(o),purchaseOptions:r.YO(l),websiteUrl:r.Yj().url().nullable().optional(),amazonUrl:r.Yj().url().nullable().optional(),paperbackPriceInCents:r.ai().int().nonnegative().nullable().optional(),paperbackAmazonUrl:r.Yj().url().nullable().optional(),ebookPriceInCents:r.ai().int().nonnegative().nullable().optional(),ebookFileUrl:r.Yj().url().nullable().optional(),audiobookPriceInCents:r.ai().int().nonnegative().nullable().optional(),audiobookFileUrl:r.Yj().url().nullable().optional(),digitalFileUrl:r.Yj().url().nullable().optional(),stockQuantity:r.ai().int().nonnegative(),lowStockThreshold:r.ai().int().nonnegative(),previewPageCount:r.ai().int().nonnegative(),editionNumber:r.ai().int().positive().nullable().optional(),editionLabel:r.Yj().nullable().optional(),publisher:r.Yj().nullable().optional(),publicationDate:i.p6().nullable().optional(),categoryId:r.Yj(),isFeatured:r.zM(),sortOrder:r.ai().int()}),r.Ik({id:r.Yj(),guid:r.Yj().optional(),slug:r.Yj(),title:r.Yj(),description:r.Yj(),showNotes:r.Yj().nullable().optional(),audioUrl:r.Yj().url(),duration:r.ai().int().positive().nullable().optional(),thumbnailUrl:r.Yj().url().nullable().optional(),episodeNumber:r.KC([r.ai().int().positive(),r.Yj()]).nullable().optional(),category:r.Yj().nullable().optional(),publishedAt:i.p6()}),r.Ik({category:r.Yj().optional(),format:o.optional(),search:r.Yj().optional(),page:i.ai().int().positive().default(1),limit:i.ai().int().min(1).max(100).default(20),sort:r.k5(["newest","oldest","price-low","price-high","title"]).default("newest")}
1),r.k5(["NEW","READ","IN_PROGRESS","CLOSED"]);let n=r.Ik({fullName:r.Yj().trim().min(1,"Full name is required").max(200),email:r.Yj().trim().email("Invalid email address").max(254),phone:r.Yj().trim().max(50).optional().nullable()});r.Ik({page:i.ai().int().positive().default(1),limit:i.ai().int().min(1).max(100).default(20)});let s=r.Ik({bookId:r.Yj(),quantity:r.ai().int().positive()});r.Ik({items:r.YO(s).min(1)});let c={PUBLISHED:"PUBLISHED",UNPUBLISHED:"UNPUBLISHED"},d=r.k5(["PUBLISHED","UNPUBLISHED"]);r.Ik({bookId:r.Yj().cuid(),rating:r.ai().int().min(1).max(5),title:r.Yj().trim().max(120).optional().nullable(),comment:r.Yj().trim().min(5).max(2e3)}).omit({bookId:!0}).partial().refine(e=>Object.keys(e).length>0,{message:"At least one review field is required"}),r.Ik({rating:r.ai().int().min(1).max(5),title:r.Yj().trim().max(120).optional().nullable(),comment:r.Yj().trim().min(5).max(2e3),customName:r.Yj().trim().min(1).max(120),customRole:r.Yj().trim().max(120).optional().nullable(),status:d.default("UNPUBLISHED")}).partial().refine(e=>Object.keys(e).length>0,{message:"At least one review field is required"}),r.Ik({id:r.Yj(),customerId:r.Yj(),bookId:r.Yj(),orderId:r.Yj().nullable(),rating:r.ai().int().min(1).max(5),title:r.Yj().nullable(),comment:r.Yj(),status:d,createdAt:i.p6(),updatedAt:i.p6()});let m=r.k5(["ACTIVE","INACTIVE"]);r.Ik({email:r.Yj().trim().toLowerCase().email("Invalid email address").max(254)}),r.Ik({status:m.optional(),internalNote:r.Yj().trim().max(2e3).nullable().optional()}).strict().refine(e=>Object.keys(e).length>0,{message:"At least one subscription field is required"});let p=r.k5(["NEW","IN_PROGRESS","CONTACTED","COMPLETED","CLOSED"]);r.Ik({fullName:r.Yj().trim().min(1,"Full name is required").max(200),email:r.Yj().trim().toLowerCase().email("Invalid email address").max(254),phoneNumber:r.Yj().trim().min(3,"Phone number must be at least 3 characters").max(50)}).strict(),r.Ik({status:p.optional(),tags:r.YO(r.Yj().trim().min(1)).optional(),internalNote:r.Yj().trim().max(5e3).optional()}).strict().refine(e=>Object.keys(e).length>0,{message:"At least one contact request field is required"});let x={name:"Gino Arcaro",titleTemplate:"%s | Gino Arcaro",description:"Official website of Gino Arcaro, author, former SWAT detective, championship football coach, fitness leader, and host of the Blunt Talk podcast.",url:"https://ginoarcaro.com",author:{name:"Gino Arcaro",roles:["Author","Former SWAT Detective","Football Coach","Podcaster"]},social:{twitterHandle:"@gino_arcaro",twitter:"https://x.com/gino_arcaro",facebook:"https://www.facebook.com/ginoarcaro",facebookXFitness:"https://www.facebook.com/profile.php?id=61556201540123",linkedin:"https://www.linkedin.com/in/ginoarcaro",instagram:"https://www.instagram.com/gino_arcaro",youtube:"https://www.youtube.com/@ginoarcaro1503",website:"https://ginoarcaro.com",xfitness:"https://xfitness.ca",arcaropolicebooks:"https://arcaropolicebooks.ca",podcast:"https://blunttalk.libsyn.com/",spotify:"https://open.spotify.com",applePodcasts:"https://podcasts.apple.com"},keywords:["Gino Arcaro","Gino Arcaro books","law enforcement books","police training books","Blunt Talk podcast","leadership coaching","football coaching","fitness leadership","former SWAT detective"]}},58408:(e,t,a)=>{a.d(t,{default:()=>i});var r=a(26254);function i({children:e,className:t="",extendBottom:a=!1}){return(0,r.jsxs)("section",{className:`relative w-full bg-transparent pt-25 lg:pt-30 pb-12 ${t}`,children:[(0,r.jsxs)("div",{className:`absolute inset-0 top-23.75 max-w-360 mx-auto z-0 pointer-events-none flex ${a?"-bottom-20 sm:-bottom-24 md:-bottom-28 lg:-bottom-32":"bottom-0"}`,children:[(0,r.jsx)("div",{className:"w-[calc(50%+1px)] h-full rounded-t-[36px] md:rounded-t-[48px]",style:{background:a?"linear-gradient(180deg, #BE1D31 0%, #BE1D31 45%, rgba(190, 29, 49, 0.85) 65%, rgba(190, 29, 49, 0.5) 82%, rgba(190, 29, 49, 0.2) 93%, rgba(190, 29, 49, 0) 100%)":"linear-gradient(180deg, #BE1D31 0%, #BE1D31 40%, rgba(190, 29, 49, 0.75) 65%, rgba(190, 29, 49, 0.35) 82%, rgba(190, 29, 49, 0.1) 94%, rgba(190, 29, 49, 0) 100%)"}}),(0,r.jsx)("div",{className:"w-1/2 h-full rounded-t-[36px] md:rounded-t-[48px]",style:{background:a?"linear-gradient(180deg, #BE1D31 0%, #BE1D31 45%, rgba(190, 29, 49, 0.85) 65%, rgba(190, 29, 49, 0.5) 82%, rgba(190, 29, 49, 0.2) 93%, rgba(190, 29, 49, 0) 100%)":"linear-gradient(180deg, #BE1D31 0%, #BE1D31 40%, rgba(190, 29, 49, 0.75) 65%, rgba(190, 29, 49, 0.35) 82%, rgba(190, 29, 49, 0.1) 94%, rgba(190, 29, 49, 0) 100%)"}})]}),(0,r.jsx)("div",{className:"relative max-w-330 mx-auto z-10 px-6 md:px-1 lg:px-1 py-6 md:py-1 lg:py-0",children:e})]})}},68303:(e,t,a)=>{a.d(t,{CartProvider:()=>n,_:()=>s});var r=a(26254),i=a(65790);let o="gino_arcaro_cart",l=(0,i.createContext)(void 0);function n({children:e}
1){let[t,a]=(0,i.useState)([]),[s,c]=(0,i.useState)(!1);(0,i.useEffect)(()=>{try{let e=localStorage.getItem(o);if(e){let t=JSON.parse(e);Array.isArray(t)&&a(t)}}catch(e){console.error("Failed to restore cart from localStorage:",e)}finally{c(!0)}},[]),(0,i.useEffect)(()=>{if(s)try{t.length>0?localStorage.setItem(o,JSON.stringify(t)):localStorage.removeItem(o)}catch(e){console.error("Failed to persist cart to localStorage:",e)}},[t,s]);let d=(0,i.useCallback)((e,t="EBOOK")=>{if("PAPERBACK"===t){let t=e.amazonUrl||e.paperbackAmazonUrl;t&&window.open(t,"_blank","noopener,noreferrer");return}e.purchaseOptions&&!e.purchaseOptions.includes("WEBSITE")?console.warn(`Book "${e.title}" is not available for direct website purchase.`):e.formats&&!e.formats.includes(t)?console.warn(`Format "${t}" is not available for book "${e.title}".`):a(a=>a.find(a=>a.book.id===e.id&&a.format===t)?a.map(a=>a.book.id===e.id&&a.format===t?{...a,quantity:a.quantity+1}:a):[...a,{book:e,quantity:1,format:t}])},[]),m=(0,i.useCallback)((e,t)=>{a(a=>a.filter(a=>a.book.id!==e||a.format!==t))},[]),p=(0,i.useCallback)((e,t,r)=>{r<=0?a(a=>a.filter(a=>a.book.id!==e||a.format!==t)):a(a=>a.map(a=>a.book.id===e&&a.format===t?{...a,quantity:r}:a))},[]),x=(0,i.useCallback)(()=>{a([]);try{localStorage.removeItem(o)}catch(e){console.error("Failed to clear cart from localStorage:",e)}},[]),u=(0,i.useMemo)(()=>t.reduce((e,t)=>e+t.quantity,0),[t]),f=(0,i.useMemo)(()=>({cartItems:t,cartCount:u,isLoaded:s,addToCart:d,removeFromCart:m,updateQuantity:p,clearCart:x}),[t,u,s,d,m,p,x]);return(0,r.jsx)(l.Provider,{value:f,children:e})}function s(){let e=(0,i.useContext)(l);if(void 0===e)throw Error("useCart must be used within a CartProvider");return e}},87683:(e,t,a)=>{a.d(t,{api:()=>o});class r extends Error{constructor(e,t,a,r){super(t),this.name="ApiError",this.status=e,this.code=a,this.details=r}}async function i(e,t={}){let a,o,{params:l,...n}=t,s=`https://api.ginoarcaro.com/api/v1${e}`;if(l){let e=new URLSearchParams;Object.entries(l).forEach(([t,a])=>{void 0!==a&&e.append(t,String(a))});let t=e.toString();t&&(s+=`?${t}`)}let c=new Headers(n.headers);c.has("Content-Type")||n.body instanceof FormData||c.set("Content-Type","application/json");let d={...n,headers:c,credentials:n.credentials||"include"};try{a=await fetch(s,d)}catch(e){throw e}try{o=await a.json()}catch(e){throw new r(a.status,"Invalid JSON response from server")}if(!a.ok||!o.success)throw new r(a.status,o.message||"An error occurred",o.error?.code,o.error?.details);return o}let o={get:(e,t)=>i(e,{...t,method:"GET"}),post:(e,t,a)=>i(e,{...a,method:"POST",body:t instanceof FormData?t:JSON.stringify(t)}),put:(e,t,a)=>i(e,{...a,method:"PUT",body:t instanceof FormData?t:JSON.stringify(t)}),patch:(e,t,a)=>i(e,{...a,method:"PATCH",body:t instanceof FormData?t:JSON.stringify(t)}),delete:(e,t)=>i(e,{...t,method:"DELETE"})}},93785:(e,t,a)=>{a.d(t,{default:()=>g});var r=a(26254),i=a(489),o=a(65790),l=a(29679),n=a(98907),s=a(70925),c=a(49193);function d({episodes:e,currentEpisodeId:t,isPlaying:a,onEpisodeSelect:i,onPlayToggle:o}){return(0,r.jsx)("div",{className:"flex flex-col overflow-hidden bg-cream/35",children:e.map(e=>{let n=t===e.id;return(0,r.jsxs)("div",{className:`w-full flex items-center justify-between p-6 gap-6 hover:bg-cream/70 transition-colors ${n?"bg-cream/50":""}`,children:[(0,r.jsx)(l.$,{type:"button",onClick:()=>o(e),className:"w-22 h-14 border border-light-grey rounded-[32px] flex items-center justify-center shrink-0 transition-all duration-300 shadow-none cursor-pointer bg-white hover:text-white hover:border-primary-red/10 hover:bg-primary-red/10","aria-label":n&&a?"Pause episode":"Play episode",children:(0,r.jsx)(s.A,{className:"w-5 h-5 text-primary-red fill-current"})}),(0,r.jsxs)("button",{type:"button",onClick:()=>i(e),className:"grow min-w-0 space-y-1 text-left py-2 cursor-pointer bg-transparent border-none p-0 outline-none focus-visible:ring-2 focus-visible:ring-primary-red/50 rounded-lg","aria-label":`Select ${e.title}`,children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 text-[12px] pb-1 font-geist font-medium text-text-dark/50 uppercase tracking-widest",children:[(0,r.jsx)("span",{children:e.episodeNumberText}),(0,r.jsx)("span",{children:"â¢"}),(0,r.jsx)("span",{children:e.dateText})]}),(0,r.jsx)("h4",{className:`font-pockota text-[18px] md:text-[20px] font-medium leading-[1.3] truncate transition-colors ${n?"text-primary-red":"text-text-dark"}`,children:e.title})]}),(0,r.jsxs)("span",{className:"font-geist text-[14px] font-medium text-text-dark/60 px-3 py-1 shrink-0 hidden sm:inline-block",children:[(0,r.jsx)(c.A,{className:"inline-block w-5 h-5 mr-1.5 -mt-0.5 text-white",f
1ill:"black"}),e.durationText,":00"]})]},e.id)})})}var m=a(72009),p=a(18853),x=a(94269);function u({episode:e}){return(0,r.jsxs)(x.Zp,{className:"w-full lg:w-125 bg-cream rounded-[32px] p-4 border-light-grey/40 shadow-sm flex flex-col justify-between min-h-140 overflow-hidden",children:[(0,r.jsx)("div",{className:"relative w-full h-90 rounded-2xl overflow-hidden bg-linear-to-br from-dark to-[#300308] border border-white/5 flex flex-col justify-between p-6 shrink-0",children:(0,r.jsx)(p.default,{src:e.thumbnailUrl,alt:`${e.title} cover artwork`,fill:!0,sizes:"(max-width: 1024px) 100vw, 500px",className:"object-cover"})}),(0,r.jsx)(x.Wu,{className:"pt-5 px-3 grow flex flex-col justify-between gap-4 pb-0",children:(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"inline-flex px-4 py-1.5 bg-primary-red/10 border border-primary-red/20 rounded-[24px] tracking-[3px] uppercase text-[12px] font-geist font-medium text-primary-red",children:e.episodeNumberText}),(0,r.jsx)("h3",{className:"font-pockota text-[24px] font-medium leading-tight text-text-dark",children:e.title}),(0,r.jsxs)("p",{className:"font-geist text-sm leading-relaxed text-text-dark/70 flex items-center gap-2.5 flex-wrap",children:[(0,r.jsxs)("span",{children:[(0,r.jsx)(c.A,{className:"inline-block w-4 h-4 mr-1.5 -mt-0.5"}),e.durationText]}),(0,r.jsxs)("span",{className:"mx-2",children:[(0,r.jsx)(m.A,{className:"inline-block w-4 h-4 mr-1.5 -mt-0.5"}),e.dateText]})]})]})})]})}function f({loading:e}){return(0,r.jsx)("section",{id:"podcast",className:"w-full bg-white py-20 px-6 md:px-12 lg:px-15",children:(0,r.jsxs)("div",{className:"max-w-330 mx-auto flex flex-col gap-12",children:[(0,r.jsx)("h2",{className:"font-pockota text-[36px] md:text-[48px] font-medium leading-[1.1] text-center text-text-dark",children:"Podcast Highlights"}),(0,r.jsx)("div",{className:"bg-cream/35 border border-light-grey/40 rounded-[32px] p-10 text-center font-geist text-text-dark/60",children:e?"Loading the latest podcast episodes...":"Podcast episodes are unavailable."})]})})}var h=a(2325);function g(){let{currentEpisode:e,isPlaying:t,playEpisode:a,pauseEpisode:s}=(0,n.e)(),{episodes:c,loading:m,error:p}=(0,h.o)(),[x,g]=(0,o.useState)(null);(0,o.useEffect)(()=>{e&&c.some(t=>t.id===e.id)&&g(e.id)},[e,c]);let b=c.find(e=>e.id===x)??c[0];if(!b)return(0,r.jsx)(f,{loading:m});let j=c.filter(e=>e.id!==b.id);return(0,r.jsx)("section",{id:"podcast",className:"w-full bg-white py-20 px-6 md:px-12 lg:px-15",children:(0,r.jsxs)("div",{className:"max-w-330 mx-auto flex flex-col gap-12",children:[(0,r.jsx)("h2",{className:"font-pockota text-[36px] md:text-[48px] font-medium leading-[1.1] text-center text-text-dark",children:"Podcast Highlights"}),(0,r.jsx)("p",{className:"-mt-8 text-center font-geist text-[16px] md:text-[18px] font-normal leading-[1.6] text-text-dark/50",children:"This podcast answers your questions about business, strength training, football coaching, how to get a cop job, writing and publishing."}),p&&(0,r.jsx)("p",{className:"-mt-8 text-center font-geist text-[14px] text-text-dark/50",children:"Live feed is temporarily unavailable, so these featured episodes are loaded from backup."}),(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row gap-12 lg:gap-6 justify-between items-stretch",children:[(0,r.jsx)(u,{episode:b}),(0,r.jsx)("div",{className:"grow lg:w-190 flex flex-col justify-between gap-8",children:(0,r.jsx)(d,{episodes:j,currentEpisodeId:e?.id,isPlaying:t,onEpisodeSelect:r=>{g(r.id),e?.id===r.id&&t||a(r)},onPlayToggle:r=>{g(r.id),e?.id===r.id&&t?s():a(r)}})})]}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsxs)(l.$,{render:(0,r.jsx)("a",{href:"https://blunttalk.libsyn.com/",target:"_blank",rel:"noopener noreferrer"}),nativeButton:!1,className:"w-full sm:w-66.25 h-13.25 border border-light-grey hover:border-primary-red/20 bg-white hover:bg-primary-red/20 hover:text-primary-red text-text-dark font-geist text-[16px] font-medium rounded-[32px] flex items-center justify-center transition-colors duration-300 self-center sm:self-start shadow-none cursor-pointer",children:["Listen to All Episodes",(0,r.jsx)(i.A,{className:"w-4 h-4 ml-2 fill-current"})]})})]})})}},94269:(e,t,a)=>{a.d(t,{Wu:()=>l,Zp:()=>o});var r=a(26254),i=a(83052);function o({className:e,size:t="default",...a}){return(0,r.jsx)("div",{"data-slot":"card","data-size":t,className:(0,i.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground
1/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}function l({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,i.cn)("px-(--card-spacing)",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.