PageSourceSearch

https://www.milesmasterclass.com/chunk-RGEDSFRD.js

js milesmasterclass.com collected 2026-09-24 13:00:00 UTC 10,688 bytes, 1 lines download raw bytes

1import{a as j}from"./chunk-DH7H32D4.js";import{a as R,b as v}from"./chunk-H47UXDA6.js";import{c as V}from"./chunk-5AO7T3LI.js";import{a as N}from"./chunk-YWY2BYGF.js";import"./chunk-DL6OBE5B.js";import"./chunk-DTAKAWGP.js";import"./chunk-IYAKJKM4.js";import"./chunk-BX7GFWY2.js";import"./chunk-C7FBHL46.js";import"./chunk-EYSJUWD5.js";import"./chunk-B4CAISSP.js";import"./chunk-V6SK3OCV.js";import"./chunk-PINU6JZZ.js";import{f as H}from"./chunk-WBGYSV3U.js";import"./chunk-G43IR3ML.js";import"./chunk-DD4WPPPV.js";import"./chunk-TYZ4IIBI.js";import"./chunk-54ZBT5FL.js";import"./chunk-U6MMUUMZ.js";import{g as L}from"./chunk-VTJ72YT4.js";import"./chunk-R6APU3SA.js";import"./chunk-QJPQKQAU.js";import"./chunk-5CCE3APX.js";import"./chunk-TNDKBMBP.js";import"./chunk-DOYHICU5.js";import{a as b}from"./chunk-GAMBHOSW.js";import"./chunk-RQPHNGPS.js";import"./chunk-PWVZ3RMR.js";import"./chunk-BSTTMKBL.js";import"./chunk-IPKNN4YZ.js";import"./chunk-7XNWVJ7B.js";import"./chunk-6R6R4HQM.js";import"./chunk-NWDWORH2.js";import"./chunk-YFYBZN5P.js";import"./chunk-GEHL6XGR.js";import"./chunk-HPKGILLZ.js";import{$b as o,Ab as B,Ac as T,Db as k,Dc as l,Ec as x,Fc as I,Gc as z,Ia as w,Pc as h,Sc as A,Tc as D,Ub as p,Vb as u,Yb as O,Zb as E,_b as d,ab as S,ac as i,bb as y,bc as s,ga as c,kd as F,lb as r,oa as P,oc as m,pa as C,sa as M,za as g}from"./chunk-ZHQDZIZV.js";import"./chunk-HT2G6UXV.js";import"./chunk-QJI7QS7F.js";var _=class n{sanitizer=c(L);transform(t){return this.sanitizer.bypassSecurityTrustHtml(t??"")}static \u0275fac=function(e){return new(e||n)};static \u0275pipe=k({name:"safeHtml",type:n,pure:!0})};var U=()=>["/blog"],$=()=>["/blog/all"],W=(n,t)=>t.id;function J(n,t){n&1&&(o(0,"div",9),s(1,"div",13),o(2,"div",14),s(3,"div",15)(4,"div",16)(5,"div",17),i()())}function K(n,t){n&1&&(o(0,"div",10)(1,"p",18),l(2,"We couldn't load this article"),i(),o(3,"p",19),l(4,"Please try again in a moment."),i(),o(5,"a",20),l(6," Back to blog "),i()()),n&2&&(r(5),d("routerLink",h(1,U)))}function Q(n,t){n&1&&(o(0,"div",10)(1,"p",21),l(2,"Article not found"),i(),o(3,"p",19),l(4," The article you're looking for may have been moved or removed. "),i(),o(5,"a",20),l(6," Browse all articles "),i()()),n&2&&(r(5),d("routerLink",h(1,$)))}function X(n,t){if(n&1&&(o(0,"div",23),s(1,"img",35),i()),n&2){let e=m();r(),d("src",e.featuredImage,y)("alt",e.featuredImageAlt)}}function Y(n,t){if(n&1&&(o(0,"span",26),l(1),i()),n&2){let e=m();r(),x(e.categories[0].name)}}function Z(n,t){if(n&1&&s(0,"img",30),n&2){let e=m();d("src",e.authorAvatar,y)("alt",e.author)}}function ee(n,t){if(n&1&&(o(0,"span",31),l(1),i()),n&2){let e=m();r(),I(" ",e.author.charAt(0)," ")}}function te(n,t){if(n&1&&s(0,"app-blog-card",40),n&2){let e=t.$implicit;d("post",e)}}function ne(n,t){if(n&1&&(o(0,"div",34)(1,"div",36)(2,"h2",37),l(3,"More like this"),i(),o(4,"a",38),l(5," View all "),i()(),o(6,"div",39),O(7,te,1,1,"app-blog-card",40,W),i()()),n&2){let e=m(2);r(4),d("routerLink",h(1,$)),r(3),E(e.related())}}function oe(n,t){if(n&1&&(o(0,"article",22),p(1,X,2,2,"div",23),o(2,"div",24)(3,"div",25),p(4,Y,2,1,"span",26),o(5,"span",27),l(6),i()(),o(7,"h1",28),l(8),i(),o(9,"div",29),p(10,Z,1,2,"img",30)(11,ee,2,1,"span",31),o(12,"span",32),l(13),i()()(),s(14,"div",33),A(15,"safeHtml"),i(),p(16,ne,9,2,"div",34)),n&2){let e=t,a=m();r(),u(e.featuredImage?1:-1),r(),T("-mt-16",e.featuredImage)("md:-mt-24",e.featuredImage),r(2),u(e.categories.length?4:-1),r(2),z(" ",e.displayDate," | ",e.readingMinutes," mins Read "),r(2),x(e.title),r(2),u(e.authorAvatar?10:11),r(3),x(e.author),r(),d("innerHTML",D(15,13,e.contentHtml),S),r(2),u(a.related().length?16:-1)}}var q=class n{blogApi=c(R);seo=c(N);destroyRef=c(M);slug=F.required();post=g(null);related=g([]);loading=g(!0);notFound=g(!1);errored=g(!1);constructor(){w(()=>{let t=this.slug();t&&this.fetchPost(t)})}fetchPost(t){this.loading.set(!0),this.notFound.set(!1),this.errored.set(!1),this.related.set([]),this.blogApi.getPostBySlug(t).pipe(b(this.destroyRef)).subscribe({next:e=>{if(this.loading.set(!1),!e){this.post.set(null),this.notFound.set(!0),this.seo.setSeo({title:"Article not found | Miles Masterclass",robots:"noindex"});return}let a=v(e);
1this.post.set(a),this.applySeo(a),this.fetchRelated(a)},error:()=>{this.loading.set(!1),this.errored.set(!0)}})}fetchRelated(t){let e=t.categories[0]?.id??null;this.blogApi.getPosts({perPage:4,categoryId:e,exclude:[t.id]}).pipe(b(this.destroyRef)).subscribe({next:a=>{let f=a.posts.map(v);if(!f.length&&e){this.fetchLatestRelated(t.id);return}this.related.set(f)},error:()=>this.related.set([])})}fetchLatestRelated(t){this.blogApi.getPosts({perPage:4,exclude:[t]}).pipe(b(this.destroyRef)).subscribe({next:e=>this.related.set(e.posts.map(v)),error:()=>this.related.set([])})}applySeo(t){let e=t.excerpt,a=t.featuredImage||void 0;this.seo.setSeo({title:`${t.title} | Miles Masterclass Blog`,description:e,image:a,canonicalUrl:`https://www.milesmasterclass.com/blog/${t.slug}`,author:t.author,openGraph:{title:t.title,description:e,image:a,type:"article",site_name:"Miles Masterclass"},twitter:{card:"summary_large_image",title:t.title,description:e,image:a}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=B({type:n,selectors:[["app-blog-post"]],inputs:{slug:[1,"slug"]},decls:18,vars:5,consts:[[1,"min-h-screen","bg-background","text-foreground"],[1,"container","mx-auto","px-4","pb-20","pt-28","md:pt-32"],[1,"mx-auto","flex","max-w-4xl","items-center","gap-2","text-sm","text-muted-foreground"],[1,"inline-flex","items-center","gap-2","transition-colors","hover:text-accent",3,"routerLink"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"h-4","w-4"],["d","m12 19-7-7 7-7"],["d","M19 12H5"],["aria-hidden","true"],[1,"line-clamp-1","text-foreground"],[1,"mx-auto","mt-8","max-w-4xl","space-y-6"],[1,"py-20","text-center"],[1,"mt-20"],[3,"standalone"],[1,"h-[260px]","w-full","animate-pulse","rounded-2xl","bg-muted","md:h-[420px]"],[1,"mx-auto","-mt-16","w-[90%]","space-y-3","rounded-2xl","border","border-border","bg-card","p-6"],[1,"h-3","w-28","animate-pulse","rounded","bg-muted"],[1,"h-8","w-3/4","animate-pulse","rounded","bg-muted"],[1,"h-4","w-40","animate-pulse","rounded","bg-muted"],[1,"text-lg","font-semibold"],[1,"mt-2","text-sm","text-muted-foreground"],[1,"mt-6","inline-block","rounded-full","bg-primary","px-6","py-2.5","text-sm","font-medium","text-accent-foreground","transition-colors","hover:bg-primary/90",3,"routerLink"],[1,"text-2xl","font-bold"],[1,"mx-auto","max-w-4xl"],[1,"overflow-hidden","rounded-2xl"],[1,"relative","mx-auto","w-[94%]","rounded-2xl","border","border-border","bg-card","p-6","md:w-[88%]","md:p-8"],[1,"flex","flex-wrap","items-center","justify-between","gap-3"],[1,"text-sm","font-medium","text-accent"],[1,"rounded-md","bg-background/60","px-3","py-1","text-xs","text-muted-foreground"],[1,"mt-3","text-2xl","font-bold","leading-tight","md:text-3xl"],[1,"mt-4","flex","items-center","gap-2","text-sm"],[1,"h-7","w-7","rounded-full","object-cover",3,"src","alt"],[1,"flex","h-7","w-7","items-center","justify-center","rounded-full","bg-accent/20","text-xs","font-semibold","text-accent"],[1,"text-foreground"],[1,"blog-content","mx-auto","mt-10","max-w-3xl",3,"innerHTML"],[1,"mt-16"],[1,"h-[260px]","w-full","object-cover","md:h-[440px]",3,"src","alt"],[1,"flex","items-end","justify-between"],[1,"text-2xl","font-bold","md:text-3xl"],[1,"text-sm","font-medium","text-accent","transition-colors","hover:underline",3,"routerLink"],[1,"mt-6","grid","grid-cols-1","gap-6","sm:grid-cols-2","lg:grid-cols-4"],[3,"post"]],template:function(e,a){if(e&1&&(o(0,"section",0)(1,"div",1)(2,"nav",2)(3,"a",3),P(),o(4,"svg",4),s(5,"path",5)(6,"path",6),i(),l(7," Back "),i(),C(),o(8,"span",7),l(9,"\u203A"),i(),o(10,"span",8),l(11),i()(),p(12,J,6,0,"div",9)(13,K,7,2,"div",10)(14,Q,7,2,"div",10)(15,oe,17,15),o(16,"div",11),s(17,"app-faq",12),i()()()),e&2){let f;r(3),d("routerLink",h(4,U)),r(8),x(a.post()?.title||"Article"),r(),u(a.loading()?12:a.errored()?13:a.notFound()?14:(f=a.post())?15:-1,f),r(5),d("standalone",!1)}},dependencies:[H,j,V,_],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     .blog-content{font-size:1.0625rem;line-height:1.8;color:var(--foreground)}[_nghost-%COMP%]     .blog-content>*:first-child{margin-top:0}[_nghost-%COMP%]     .blog-content p{margin:1.25rem 0}[_nghost-%COMP%]     .blog-content h2{margin:2.25rem 0 .85rem;font-size:1.6rem;font-weight:700;line-height:1.3;color:var(--foreground)}[_nghost-%COMP%]     .blog-content h3{margin:1.85rem 0 .7rem;font-size:1.3rem;font-weight:600;line-height:1.35;color:var(--foreground)}[_nghost-%COMP%]     .blog-content h4{margin:1.5rem 0 .6rem;font-size:1.125rem;font-weight:600;color:var(--foreground)}[_nghost-%COMP%]     .blog-content a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}[_nghost-%COMP%]     .blog-content a:hover{opacity:.85}[_nghost-%COMP%]     .blog-content ul, [_nghost-%COMP%]     .blog-content ol{margin:1.25rem 0;padding-left:1.5rem}[_nghost-%COMP%]     .blog-content ul{list-style:disc}[_nghost-%COMP%]     .blog-content ol{list-style:decimal}[_nghost-%COMP%]     .blog-content li{margin:.5rem 0}[_nghost-%COMP%]     .blog-content blockquote{margin:1.75rem 0;border-left:3px solid var(--accent);padding:.25rem 0 .25rem 1.25rem;color:var(--muted-foreground);font-style:italic}[_nghost-%COMP%]     .blog-content img{height:auto;max-width:100%;border-radius:.75rem;margin:1.75rem 0}[_nghost-%COMP%]     .blog-content figure{margin:1.75rem 0}[_nghost-%COMP%]     .blog-content figcaption{margin-top:.5rem;text-align:center;font-size:.875rem;color:var(--muted-foreground)}[_nghost-%COMP%]     .blog-content strong{font-weight:700;color:var(--foreground)}[_nghost-%COMP%]     .blog-content code{font-family:var(--font-mono, monospace);font-size:.9em;background:var(--muted);padding:.15rem .35rem;border-radius:.3rem}[_nghost-%COMP%]     .blog-content pre{margin:1.5rem 0;overflow-x:auto;border-radius:.6rem;background:var(--muted);padding:1rem 1.25rem}[_nghost-%COMP%]     .blog-content pre code{background:transparent;padding:0}[_nghost-%COMP%]     .blog-content table{width:100%;margin:1.75rem 0;border-collapse:collapse;font-size:.95rem}[_nghost-%COMP%]     .blog-content th, [_nghost-%COMP%]     .blog-content td{border:1px solid var(--border);padding:.65rem .85rem;text-align:left;vertical-align:top}[_nghost-%COMP%]     .blog-content th{background:var(--muted);font-weight:600}[_nghost-%COMP%]     .blog-content hr{margin:2.5rem 0;border:0;border-top:1px solid var(--border)}"]})};export{q as BlogPost};

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.