1import{a as W}from"./chunk-5KMVH43O.js";import{a as z}from"./chunk-7ZGFQZMB.js";import{a as O}from"./chunk-VYKQ2VWW.js";import"./chunk-EH3ZA36I.js";import{a as G}from"./chunk-W72KJQMW.js";import"./chunk-PE3U4RDN.js";import{a as q}from"./chunk-7W3QRQSD.js";import"./chunk-HNWSV3B3.js";import{m as R}from"./chunk-PSH5TAI2.js";import"./chunk-W3NUKB7B.js";import"./chunk-KJJHSOFJ.js";import"./chunk-USN3IUD3.js";import"./chunk-AZUCPPFK.js";import"./chunk-SGQORKKV.js";import"./chunk-ZBQW7NJG.js";import"./chunk-C6O6I5LW.js";import"./chunk-O2P25Q5F.js";import{ja as j,la as A}from"./chunk-TPCL2XMH.js";import"./chunk-WRBQWUEI.js";import{k as P,n as $,o as N,s as L}from"./chunk-KSTBAVB4.js";import{Ab as r,Ac as y,Bb as o,Cb as d,Lb as K,Nb as D,Pb as I,Ra as a,Z as g,ac as s,bc as w,cc as T,da as k,dc as h,ea as x,eb as c,m as b,n as E,pc as B,qa as F,sb as v,sc as M,sd as S,tc as V,ub as C,wb as u,xb as f,yb as _,zb as l}from"./chunk-P2OBJROK.js";import"./chunk-IZQOVDKO.js";import"./chunk-6IZLXKZM.js";var U=t=>["/kiss","year",t],X=t=>["/kiss",t];function Y(t,m){if(t&1&&(r(0,"li",7)(1,"div",8)(2,"div",9)(3,"a",5),s(4),o(),d(5,"br"),r(6,"small"),s(7),M(8,"dayjsDate"),o(),d(9,"nbm-content-type-badge-list",10),o()()()),t&2){let e=m.$implicit;a(3),l("routerLink",B(7,X,e.slug)),a(),w(e.title),a(3),h(" ",e.writtenBy," - ",V(8,5,e.datePublished)," "),a(2),l("contentTypes",e.contentTypes)}}function Z(t,m){if(t&1&&(r(0,"ul",2),f(1,Y,10,9,"li",7,u),o()),t&2){let e=I().$implicit;a(),_(e.kisses)}}function ee(t,m){if(t&1){let e=K();r(0,"li",3),s(1),r(2,"a",4),D("click",function(){let i=k(e).$implicit;return x(i.expanded=!i.expanded)}),s(3),o(),v(4,Z,3,0,"ul",2),o()}if(t&2){let e=m.$implicit;a(),T(" ",e.expanded?"\u25BC":"\u25BA"," "),a(2),h(" ",e.name," (",e.kisses.length,") "),a(),C(e.expanded?4:-1)}}function te(t,m){if(t&1&&(r(0,"ul",6),f(1,ee,5,4,"li",3,u),o()),t&2){let e=I().$implicit;a(),_(e.months)}}function ie(t,m){if(t&1){let e=K();r(0,"li",3),s(1),r(2,"a",4),D("click",function(){let i=k(e).$implicit;return x(i.expanded=!i.expanded)}),s(3),o(),r(4,"small")(5,"a",5),s(6,"View All"),o()(),v(7,te,3,0,"ul",6),o()}if(t&2){let e=m.$implicit;a(),T(" ",e.expanded?"\u25BC":"\u25BA"," "),a(2),h(" ",e.year," (",e.totalKisses,") "),a(2),l("routerLink",B(5,U,e.year)),a(2),C(e.expanded?7:-1)}}function ne(t,m){t&1&&(r(0,"ul",2),f(1,ie,8,7,"li",3,u),o()),t&2&&(a(),_(m))}function oe(t,m){t&1&&d(0,"nbm-loading")}var J=(()=>{class t{constructor(){this.kissService=g(W),this.months=S(this.kissService.getByDate().pipe(b(e=>{let n={};return e.forEach(i=>{n[i.yearVal]||(n[i.yearVal]=[]),n[i.yearVal].push(i)}),n}),b(e=>Object.keys(e).sort((n,i)=>parseInt(i,10)-parseInt(n,10)).map(n=>({year:parseInt(n,10),expanded:!1,totalKisses:e[parseInt(n,10)].reduce((i,p)=>i+p.kisses.length,0),months:e[parseInt(n,10)].sort((i,p)=>p.monthVal-i.monthVal).map(i=>({expanded:!1,name:i.month,kisses:i.kisses}))})))))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=c({type:t,selectors:[["nbm-kisses-by-date"]],decls:6,vars:1,consts:[[1,"row","mb-3"],[1,"col"],[1,"list-unstyled"],[1,"my-2"],["role","button",3,"click"],[3,"routerLink"],[1,"list-unstyled","ms-3"],[1,"p-2"],[1,"mb-3","border-start","border-primary","border-2"],[1,"ms-3"],[3,"contentTypes"]],template:function(n,i){if(n&1&&(r(0,"div",0)(1,"div",1)(2,"h4"),s(3,"Keep It Simple Summaries By Date"),o(),v(4,ne,3,0,"ul",2)(5,oe,1,0,"nbm-loading"),o()()),n&2){let p;a(4),C((p=i.months())?4:5,p)}},dependencies:[L,N,j,G,A],encapsulation:2})}}return t})();var Q=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=c({type:t,selectors:[["nbm-seo-kiss"]],decls:10,vars:1,consts:[[1,"py-lg-5","p-3"],[3,"title"]],template:function(n,i){n&1&&(r(0,"div",0)(1,"nbm-content-container",1)(2,"p"),s(3,' Designed around the principle of "Keep It Simple," the KISS summaries provide clear, focused learning that cuts through complexity and delivers clinically relevant teaching in a quick and accessible format. '),o(),r(4,"p"),s(5," Created for busy healthcare professionals, KISS summaries condense complex conditions into concise one to two page documents, providing practical patient management advice, key guideline updates and guidance on common clinical presentations seen in everyday practice. The content is designed to be straightforward, engaging and immediately useful, helping clinicians build confidence and stay up to date with evolving evidence and best practice. "),o(),r(6,"p"),s(7," Written by experienced GP and nurse educators, KISS summaries are ideal for healthcare professionals looking for efficient, focused continuing professional development or quick, practical guidance during consultations. "),o(),r(8,"p"),s(9," Suitable for GPs, nurses, pharmacists and the wider primary care team, KISS supports ongoing professional development through concise, evidence-based learning tailored to primary care. "),o()()()),n&2&&(a(),l("title","NB Medical KISS"))},dependencies:[q],encapsulation:2})}}return t})();function ae(t,m){if(t&1&&d(0,"nbm-kiss-summary",3),t&2){let e=m.$implicit;l("kiss",e)}}var Be=(()=>{class t{constructor(){this.route=g(P),this.router=g($),this.routeState=S(E([this.route.data,this.route.params])),this.kisses=y(()=>this.routeState()?.[0]?.kisses??null),this.year=y(()=>{let e=this.routeState()?.[1];return e?.year&&parseInt(e.year,10)?parseInt(e.year,10):null}),this.page=y(()=>this.kisses()?.pageNumber??null),this.breadcrumbTitle=y(()=>{let e=this.year();return e?e.toString():"Keep It Simple Summaries (KISS)"}),this.title=y(()=>{let e=this.kisses(),n=this.year(),i="Keep It Simple Summaries (KISS)";return n&&(i+=` - ${n.toString()}`),!e||e.isFirstPage?i:`${i} - Page ${e.pageNumber}`}),F(()=>{let e=this.kisses();e&&e.pageNumber>1&&!e.data.length&&this.setPage(1)})}setPage(e){e<=1&&(e=void 0),this.router.navigate(["/kiss"],{queryParams:{page:e}})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=c({type:t,selectors:[["nbm-kiss"]],decls:9,vars:3,consts:[[3,"title","breadcrumbTitle"],[1,"row"],[1,"col-lg-8"],[3,"kiss"],[3,"items"],[1,"col-lg-4"]],template:function(n,i){if
1(n&1&&(r(0,"nbm-site-page",0)(1,"div",1)(2,"div",2),f(3,ae,1,1,"nbm-kiss-summary",3,u),d(5,"nbm-item-pager",4),o(),r(6,"div",5),d(7,"nbm-kisses-by-date"),o()(),d(8,"nbm-seo-kiss"),o()),n&2){let p;l("title",i.title())("breadcrumbTitle",i.breadcrumbTitle()),a(3),_((p=i.kisses())==null?null:p.data),a(2),l("items",i.kisses())}},dependencies:[R,z,O,J,Q],encapsulation:2})}}return t})();export{Be as KissComponent};
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.