PageSourceSearch

https://www.judy.legal/chunk-OCXVESRI.js

js judy.legal collected 2026-10-01 12:30:35 UTC 5,383 bytes, 1 lines download raw bytes

1import{a as t}from"./chunk-QSYWM4A3.js";import{a as e,c as a}from"./chunk-FYFJW4VC.js";import"./chunk-JK2X3EZH.js";import"./chunk-AA4ACDAD.js";import"./chunk-GCRLONIL.js";import{C as s,E as i,c as n,i as o,k as r,o as g,p as w}from"./chunk-HCLCTBVB.js";import{Ab as l,Db as p,Eb as d,Fb as c,Gb as m,Hb as h,Ib as u,Rb as b,Ta as f,V as x,Xa as y,_ as v,ec as C,gc as T,kb as k,la as j,ra as S,zb as L,zc as A}from"./chunk-V74A74VE.js";import"./chunk-TSRGIXR5.js";var D=(()=>{class t{constructor(){this.http=v(r)}getChangelogs(t){let e=new o;return t&&(e=e.set("type",t)),this.http.get(`${i.apiUrl}/changelog/`,{params:e})}static{this.ɵfac=function(e){return new(e||t)}}static{this.ɵprov=x({token:t,factory:t.ɵfac,providedIn:"root"})}}return t})(),R=(t,e)=>e.uuid;function _(t,e){1&t&&(m(0,"div",6),u(1,"div",9),h())}function I(t,e){1&t&&(m(0,"div",7)(1,"p",10),C(2,"No updates yet. Check back soon."),h()())}function V(t,e){if(1&t&&(m(0,"div",20),u(1,"img",23),h()),2&t){let t=b().$implicit;y(),c("src",t.image,f)("alt",t.title)}}function $(t,e){if(1&t&&(m(0,"article",12)(1,"div",13)(2,"time",14),C(3),h()(),u(4,"div",15),m(5,"div",16)(6,"div",17)(7,"span",18),C(8),h()(),m(9,"h2",19),C(10),h(),L(11,V,2,2,"div",20),m(12,"div",21),u(13,"markdown",22),h()()()),2&t){let t=e.$implicit,a=b(2);y(3),T(" ",a.formatDateShort(t.published_at)," "),y(4),c("ngClass",a.getTypeColor(t.entry_type)),y(),T(" ",t.type_display," "),y(2),T(" ",t.title," "),y(),l(t.image?11:-1),y(2),c("data",t.content)}}function E(t,e){if(1&t&&(m(0,"div",8),u(1,"div",11),p(2,$,14,6,"article",12,R),h()),2&t){let t=b();y(2),d(t.filteredChangelogs())}}var U=(()=>{class o{constructor(){this.title=v(w),this.meta=v(g),this.changelogService=v(D),this.destroyRef=v(j),this.changelogs=S([]),this.isLoading=S(!0),this.filteredChangelogs=A(()=>this.changelogs())}ngOnInit(){this.setMetaTags(),this.loadChangelogs()}setMetaTags(){let t="Changelog | judy.legal",e="Stay up to date with the latest features, improvements, and updates to judy.legal - Africa's leading legal research platform.",a=`${i.host}/assets/images/og-image-square.jpg`;this.title.setTitle(t),this.meta.updateTag({name:"description",content:e}),this.meta.updateTag({property:"og:title",content:t}),this.meta.updateTag({property:"og:description",content:e}),this.meta.updateTag({property:"og:type",content:"website"}),this.meta.updateTag({property:"og:url",content:`${i.host}/changelog`}),this.meta.updateTag({property:"og:image",content:a}),this.meta.updateTag({property:"og:site_name",content:"judy.legal"}),this.meta.updateTag({property:"og:locale",content:"en_US"}),this.meta.updateTag({name:"twitter:card",content:"summary"}),this.meta.updateTag({name:"twitter:title",content:t}),this.meta.updateTag({name:"twitter:description",content:e}),this.meta.updateTag({name:"twitter:image",content:a})}loadChangelogs(){this.isLoading.set(!0),this.changelogService.getChangelogs().pipe(s(this.destroyRef)).subscribe({next:t=>{this.changelogs.set(t),this.isLoading.set(!1)},error:()=>{this.changelogs.set([]),this.isLoading.set(!1)}})}formatDateShort(t){return new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric"})}getTypeColor(t){return{feature:"tw-bg-purple-100 tw-text-purple-700",improvement:"tw-bg-blue-100 tw-text-blue-700",fix:"tw-bg-green-100 tw-text-green-700",announcement:"tw-bg-amber-100 tw-text-amber-700"}[t]||"tw-bg-gray-100 tw-text-gray-700"}static{this.ɵfac=function(t){return new(t||o)}}static{this.ɵcmp=k({type:o,selectors:[["app-changelog"]],decls:13,vars:1,consts:[[1,"tw-min-h-screen","tw-bg-white"],[1,"tw-border-b","tw-border-gray-100"],[1,"tw-max-w-3xl","tw-mx-auto","tw-px-6","tw-py-16"],[1,"tw-text-4xl","tw-font-semibold","tw-text-gray-900","tw-tracking-tight"],[1,"tw-mt-3","tw-text-lg","tw-text-gray-500"],[1,"tw-max-w-3xl","tw-mx-auto","tw-px-6","tw-py-12"],[1,"tw-flex","tw-justify-center","tw-items-center","tw-py-20"],[1,"tw-text-center","tw-py-20"],[1,"tw-relative"],[1,"tw-animate-spin","tw-rounded-full","tw-h-10","tw-w-10","tw-border-b-2","tw-border-[#9c27b0]"],[1,"tw-text-gray-500"],[1,"tw-absolute","tw-left-[88px]","tw-top-0","tw-bottom-0","tw-w-px","tw-bg-gray-200","max-sm:tw-hidden"],[1,"tw-relative","tw-flex","tw-gap-8","tw-pb-12","max-sm:tw-flex-col","max-sm:tw-gap-3"],[1,"tw-w-[88px]","tw-flex-shrink-0","tw-pt-1","max-sm:tw-w-auto"],[1,"tw-text-sm","tw-text-gray-500","tw-tabular-nums"],[1,"tw-absolute","tw-left-[84px]","tw-top-2","tw-w-2","tw-h-2","tw-rounded-full","tw-border-2","tw-border-gray-300","tw-bg-white","max-sm:tw-hidden"],[1,"tw-flex-1","tw-min-w-0"],[1,"tw-mb-3"],[1,"tw-inline-flex","tw-items-center","tw-text-xs","tw-font-medium","tw-px-2","tw-py-0.5","tw-rounded",3,"ngClass"],[1,"tw-text-xl","t
1w-font-semibold","tw-text-gray-900","tw-leading-tight","tw-mb-3"],[1,"tw-mb-4","tw-rounded-lg","tw-overflow-hidden","tw-border","tw-border-gray-100"],[1,"tw-text-gray-600","tw-leading-relaxed"],[3,"data"],[1,"tw-w-full",3,"src","alt"]],template:function(t,e){1&t&&(u(0,"app-navbar"),m(1,"div",0)(2,"div",1)(3,"div",2)(4,"h1",3),C(5," Changelog "),h(),m(6,"p",4),C(7," New updates and improvements to JUDY. "),h()()(),m(8,"div",5),L(9,_,2,0,"div",6)(10,I,3,0,"div",7)(11,E,4,0,"div",8),h(),u(12,"app-footer"),h()),2&t&&(y(9),l(e.isLoading()?9:0===e.filteredChangelogs().length?10:11))},dependencies:[n,t,e,a],encapsulation:2})}}return o})();export{U as ChangelogComponent};

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.