1import{a as t}from"./chunk-EAPWNPZ6.js";import{a as e}from"./chunk-ZXLRUJZR.js";import{a as o}from"./chunk-KJQEI4PK.js";import{a as s}from"./chunk-P5TH4PHL.js";import{a,c as i}from"./chunk-FYFJW4VC.js";import"./chunk-JK2X3EZH.js";import"./chunk-AA4ACDAD.js";import"./chunk-GCRLONIL.js";import{B as r,C as n,o as l,p,u as w,x as c}from"./chunk-HCLCTBVB.js";import{Ab as u,Db as m,Eb as h,Fb as d,Gb as g,Hb as f,Ib as x,N as b,Rb as v,Sa as k,Ta as y,Xa as j,_ as L,ec as S,fc as B,gc as H,ha as C,ia as A,kb as R,la as T,ra as F,uc as V,vc as _,zb as D}from"./chunk-V74A74VE.js";import"./chunk-TSRGIXR5.js";var M=(t,e)=>e.id;function P(t,e){1&t&&(g(0,"div",1),x(1,"app-loading-spinner"),f())}function E(t,e){1&t&&(g(0,"div",2),C(),g(1,"svg",4),x(2,"path",5),f(),A(),g(3,"h1",6),S(4," Article Not Found "),f(),g(5,"p",7),S(6," The article you're looking for doesn't exist or has been removed. "),f(),g(7,"a",8),S(8," Back to Blog "),f()())}function G(t,e){if(1&t&&(g(0,"div",12),x(1,"img",19),f()),2&t){let t=v(2);j(),d("src",t.post().feature_image,y)("alt",t.post().title)}}function I(t,e){if(1&t&&(g(0,"span",20),S(1),f()),2&t){let t=e.$implicit;j(),H(" ",t.name," ")}}function J(t,e){if(1&t&&(g(0,"div",14),m(1,I,2,1,"span",20,M),f()),2&t){let t=v(2);j(),h(t.post().tags)}}function N(t,e){if(1&t&&x(0,"img",21),2&t){let t=v(3);d("src",t.post().authors[0].profile_image,y)("alt",t.post().authors[0].name)}}function X(t,e){if(1&t&&(g(0,"div",17),D(1,N,1,2,"img",21),g(2,"span"),S(3),f()()),2&t){let t=v(2);j(),u(t.post().authors[0].profile_image?1:-1),j(2),B(t.post().authors[0].name)}}function Z(t,e){if(1&t&&(g(0,"span"),S(1),f()),2&t){let t=v(2);j(),H("",t.post().reading_time," min read")}}function K(t,e){if(1&t&&(g(0,"article",3)(1,"a",9),C(),g(2,"svg",10),x(3,"path",11),f(),S(4," Back to Blog "),f(),D(5,G,2,2,"div",12),A(),g(6,"header",13),D(7,J,3,0,"div",14),g(8,"h1",15),S(9),f(),g(10,"div",16),D(11,X,4,2,"div",17),g(12,"span"),S(13),f(),D(14,Z,2,1,"span"),f()(),x(15,"div",18),V(16,"safeHtml"),f()),2&t){let t=v();j(5),u(t.post().feature_image?5:-1),j(2),u(t.post().tags&&t.post().tags.length>0?7:-1),j(2),H(" ",t.post().title," "),j(2),u(t.post().authors&&t.post().authors.length>0?11:-1),j(2),B(t.formatDate(t.post().published_at)),j(),u(t.post().reading_time?14:-1),j(),d("innerHTML",_(16,7,t.post().html),k)}}var U=(()=>{class m{constructor(){this.route=L(w),this.titleService=L(p),this.metaService=L(l),this.blogService=L(t),this.destroyRef=L(T),this.seoService=L(s),this.post=F(null),this.isLoading=F(!0),this.notFound=F(!1)}ngOnInit(){this.route.params.pipe(b(t=>this.blogService.getPost(t.slug)),n(this.destroyRef)).subscribe({next:t=>{if(t.posts&&t.posts.length>0){let e=t.posts[0];this.post.set(e),this.titleService.setTitle(`${e.title} | Blog | judy.legal`),this.metaService.updateTag({name:"description",content:e.excerpt||e.title}),this.seoService.createCanonicalURL(`blog/${e.slug}`)}else this.notFound.set(!0);this.isLoading.set(!1)},error:()=>{this.notFound.set(!0),this.isLoading.set(!1)}})}formatDate(t){return new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}static{this.ɵfac=function(t){return new(t||m)}}static{this.ɵcmp=R({type:m,selectors:[["app-blog-article"]],decls:6,vars:1,consts:[[1,"tw-min-h-screen","tw-bg-gray-50"],[1,"tw-flex","tw-justify-center","tw-items-center","tw-py-32"],[1,"tw-max-w-4xl","tw-mx-auto","tw-px-4","sm:tw-px-6","lg:tw-px-8","tw-py-20","tw-text-center"],[1,"tw-max-w-4xl","tw-mx-auto","tw-px-4","sm:tw-px-6","lg:tw-px-8","tw-py-12"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"tw-w-16","tw-h-16","tw-mx-auto","tw-text-gray-400"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"],[1,"tw-mt-4","tw-text-2xl","tw-font-bold","tw-text-gray-900"],[1,"tw-mt-2","tw-text-gray-600"],["routerLink","/blog","aria-label","Go back to blog",1,"tw-inline-block","tw-mt-6","tw-bg-[#9c27b0]","hover:tw-bg-[#7b1fa2]","tw-text-white","tw-font-medium","tw-py-3","tw-px-6","tw-rounded-lg","tw-transition-colors"],["routerLink","/blog","aria-label","Go back to blog",1,"tw-inline-flex","tw-items-center","tw-text-purple-600","hover:tw-underline","tw-mb-8"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"tw-w-5","tw-h-5","tw-mr-1"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 19l-7-7m0 0l7-7m-7 7h18"],[1,"tw-aspect-video","tw-overflow-hidden","tw-rounded-lg","tw-mb-8"],[1,"tw-mb-8"],[1,"tw-flex","tw-flex-wrap","tw-gap-2","tw-mb-4"],[1,"tw-text-3xl","sm:tw-text-4xl","tw-font-bold","tw-text-gray-900","tw-mb-4"],[1,"tw-flex","tw-flex-wrap","tw-items-center","tw-gap-4","tw-text-gray-600"],[1,"tw-flex","tw-items-center","tw-gap-2"],[1,"prose","prose-lg","prose-purple","max-w-none","tw-text-gray-800",3,"innerHTML"],[1,"tw-w-full","tw-h-full","tw-object-cover",3,"src","alt"],[1,"tw-text-sm","tw-font-medium","tw-text-purple-600","tw-bg-purple-100","tw-px-3","tw-py-1","tw-rounded-full"],[1,"tw-w-8","tw-h-8","tw-rounded-full","tw-object-cover",3,"src","alt"]],template:function(t,e){1&t&&(x(0,"app-navbar"),g(1,"div",0),D(2,P,2,0,"div",1)(3,E,9,0,"div",2)(4,K,17,9,"article",3),x(5,"app-footer"),f()),2&t&&(j(2),u(e.isLoading()?2:e.notFound()?3:e.post()?4:-1))},dependencies:[r,c,a,i,e,o],encapsulation:2})}}return m})();export{U as BlogArticleComponent};
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.