PageSourceSearch

https://nbmedical.com/chunk-SB4IXGND.js

js nbmedical.com collected 2026-10-02 07:02:09 UTC 9,128 bytes, 1 lines download raw bytes

1import{a as X}from"./chunk-JB47OGZK.js";import{a as U,m as W}from"./chunk-S33CAPPZ.js";import"./chunk-2K2V3AF7.js";import"./chunk-C6TWE4FZ.js";import"./chunk-Q2YLND27.js";import"./chunk-NU4ZUM7K.js";import"./chunk-NLZC42V6.js";import"./chunk-ZBQW7NJG.js";import"./chunk-ZUSG72XP.js";import"./chunk-HJWJPZ5W.js";import"./chunk-LQY2VBIU.js";import"./chunk-WRBQWUEI.js";import{k as Q}from"./chunk-LRSFZQSP.js";import{$b as C,Ab as c,Ac as J,Bb as a,Cb as w,Db as V,Eb as k,Ec as T,Fb as N,Gb as z,Hb as H,Lb as O,Ma as j,Mb as L,Nb as y,Pb as p,Ra as o,Z as $,_b as A,ac as d,bc as R,cc as f,da as v,dc as S,ea as b,eb as l,hb as I,jc as q,qc as u,sb as m,sc as h,sd as K,tc as E,ub as _,uc as G,wb as P,xb as M,yb as x,zb as g}from"./chunk-IXJZIWF6.js";import"./chunk-IZQOVDKO.js";import"./chunk-6IZLXKZM.js";var Y=(()=>{class t{transform(e){if(e>1)return"s"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=I({name:"plural",type:t,pure:!0})}}return t})();var Z=(()=>{class t{constructor(){this.topic=T(void 0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=l({type:t,selectors:[["nbm-topic-preview"]],inputs:{topic:[1,"topic"]},decls:7,vars:5,consts:[[1,"shadow","border","p-3"],[1,"text-center"],[3,"innerHTML"]],template:function(n,i){n&1&&(V(0,"div",0)(1,"div",1)(2,"h5")(3,"u"),d(4),k()()(),N(5,"div",2),h(6,"safe"),k()),n&2&&(o(4),R(i.topic().title),o(),L("innerHTML",G(6,2,i.topic().content,"html"),j))},dependencies:[U],encapsulation:2})}}return t})();var te=(t,r)=>({active:t,"non-previewable":r}),ne=(t,r)=>({"btn-primary":t,"btn-secondary":r});function ie(t,r){if(t&1&&(c(0,"a",4),d(1),a()),t&2){let e=p().$implicit,n=p();C(u(3,ne,e!==n.selectedTopic,e===n.selectedTopic)),o(),f(" ",e===n.selectedTopic?"Close Topic":"View Topic"," ")}}function oe(t,r){if(t&1&&(c(0,"div",3),w(1,"nbm-topic-preview",5),a()),t&2){let e=p().$implicit;o(),g("topic",e)}}function re(t,r){if(t&1){let e=O();z(0),c(1,"div",1),y("click",function(){let i=v(e).$implicit,s=p();return b(s.toggleSelected(i))}),c(2,"a"),d(3),a(),m(4,ie,2,6,"a",2),a(),m(5,oe,2,1,"div",3),H()}if(t&2){let e=r.$implicit,n=p();o(),C(u(5,te,e===n.selectedTopic,e.content===null)),o(2),f(" ",e.title," "),o(),_(e.content?4:-1),o(),_(e===n.selectedTopic&&e.content?5:-1)}}var ee=(()=>{class t{constructor(){this.chapter=T(void 0),this.selectedTopic=void 0}toggleSelected(e){this.selectedTopic===e?this.selectedTopic=void 0:this.selectedTopic=e}get topics(){return this.chapter().topics.sort((e,n)=>e.displayOrder>n.displayOrder?1:e.displayOrder===n.displayOrder?0:-1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=l({type:t,selectors:[["nbm-chapter-preview"]],inputs:{chapter:[1,"chapter"]},decls:3,vars:0,consts:[[1,"topic_tabs"],[1,"mb-2",3,"click"],[1,"show-hide","btn",3,"class"],[1,"content","mb-2"],[1,"show-hide","btn"],[3,"topic"]],template:function(n,i){n&1&&(c(0,"div",0),M(1,re,6,8,"ng-container",null,P),a()),n&2&&(o(),x(i.topics))},dependencies:[Z],styles:[".topic_tabs[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;list-style:none}@media only screen and (max-width:1024px){.topic_tabs[_ngcontent-%COMP%]{margin:0}}.topic_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;border-color:#eee!important;background-color:#eee;border-radius:.25em;display:flex;justify-content:space-between}.topic_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-right:0}.topic_tabs[_ngcontent-%COMP%] > div.content[_ngcontent-%COMP%]{background:none;border:none}.topic_tabs[_ngcontent-%COMP%] > div.purchased[_ngcontent-%COMP%]{cursor:pointer}.topic_tabs[_ngcontent-%COMP%] > div.active[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:first-child{border-left:.5em solid rgba(255,152,0,.8)}.topic_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:.875rem;text-decoration:none;display:flex;padding:.75em 1em .5em}.topic_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:first-child{border-left:.5em solid rgb(151,180,197);border-radius:.25em}.topic_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   a.show-hide[_ngcontent-%COMP%]{min-width:6rem;max-width:6rem;padding:.5em .75em;text-decoration:none;color:#fff;margin:0 1em 0 auto;border-radius:0 .25em .25em 0;display:flex;align-items:center;justify-content:center}.topic_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{display:block;width:100%;padding:.75em 0 .5em;border-radius:.25em}.topic_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{max-width:10em;min-width:8em;display:flex;justify-content:center;padding:.5em 1em;margin-right:1em;color:#fff;background-color:#0b4664;border-radius:.25em 0 0 .25em}.topic_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .primary[_ngcontent-%COMP%]{padding:.5em .75em;text-decoration:none;color:#fff;margin:0 0 0 auto;border-radius:0 .25em .25em 0}.non-previewable[_ngcontent-%COMP%]{background-color:#c8c8c8!important}"]})}}return t})();var ce=(t,r)=>({"btn-primary":t,"btn-secondary":r});function ae(t,r){if(t&1&&(c(0,"div",3),d(1),h(2,"plural"),a()),t&2){let e=p().$implicit;o(),S(" * ",e.previewableTopics," previewable topic",E(2,2,e.previewableTopics)," * ")}}function pe(t,r){if(t&1&&w(0,"nbm-chapter-preview",5),t&2){let e=p().$implicit;g("chapter",e)}}function de(t,r){if(t&1){let e=O();c(0,"div",1)(1,"div",2),y("click",function(){let i=v(e).$implicit,s=p();return b(s.toggleSelected(i))}),c(2,"a"),d(3),m(4,ae,3,4,"div",3),a(),c(5,"a",4),d(6),a()(),m(7,pe,1,1,"nbm-chapter-preview",5),a()}if(t&2){let e=r.$implicit,n=r.$index,i=p();o(),A("active",e===i.selectedChapter),g("id",q("chapter-",e.id)),o(2),S(" ",n+1," | ",e.title," "),o(),_(e.previewableTopics>0?4:-1),o(),C(u(11,ce,e!==i.selectedChapter,e===i.selectedChapter)),o(),f(" ",e===i.selectedChapter?"Close Chapter":"View Chapter"," "),o(),_(e===i.selectedChapter?7:-1)}}var Te=(()=>{class t{constructor(){this.route=$(Q),this.routeData=K(this.route.data),this.book=J(()=>this.routeData()?.book??null)}get metaDescription(){let e=this.book();return e?`NB Medical presents our ${e.name}.`:""}
1toggleSelected(e){this.selectedChapter===e?this.selectedChapter=void 0:this.selectedChapter=e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=l({type:t,selectors:[["nbm-book-preview"]],decls:4,vars:6,consts:[["titleTextClass","text-white",3,"title","titleBgClass","description","image"],[1,"chapter_tabs"],[1,"mb-2",3,"click","id"],[1,"ms-2","previewable-topic-notice"],[1,"show-hide","btn"],[1,"ms-2","w-100",3,"chapter"]],template:function(n,i){if(n&1&&(c(0,"nbm-site-page",0),h(1,"contentTypeSlug"),M(2,de,8,14,"div",1,P),a()),n&2){let s,B,D;g("title",((s=i.book())==null?null:s.name)+" preview")("titleBgClass","bg-gradient bg-"+E(1,4,i.book()))("description",i.metaDescription)("image",(B=i.book())==null?null:B.image),o(2),x((D=i.book())==null?null:D.chapters)}},dependencies:[W,ee,Y,X],styles:[".chapter_tabs[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;list-style:none}@media only screen and (max-width:1024px){.chapter_tabs[_ngcontent-%COMP%]{margin:0}}.chapter_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;border-color:#eee!important;background-color:#eee;border-radius:.25em;display:flex;justify-content:space-between}.chapter_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-right:0}.chapter_tabs[_ngcontent-%COMP%] > div.content[_ngcontent-%COMP%]{background:none;border:none}.chapter_tabs[_ngcontent-%COMP%] > div.purchased[_ngcontent-%COMP%]{cursor:pointer}.chapter_tabs[_ngcontent-%COMP%] > div.active[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:first-child{border-left:.5em solid rgba(255,152,0,.8)}.chapter_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:.875rem;text-decoration:none;display:flex;padding:.75em 1em .5em}.chapter_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:first-child{border-left:.5em solid rgb(151,180,197);border-radius:.25em}.chapter_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   a.show-hide[_ngcontent-%COMP%]{min-width:6rem;max-width:6rem;padding:.5em .75em;text-decoration:none;color:#fff;margin:0 1em 0 auto;border-radius:0 .25em .25em 0;display:flex;align-items:center;justify-content:center}.chapter_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{display:block;width:100%;padding:.75em 0 .5em;border-radius:.25em}.chapter_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{max-width:10em;min-width:8em;display:flex;justify-content:center;padding:.5em 1em;margin-right:1em;color:#fff;background-color:#0b4664;border-radius:.25em 0 0 .25em}.chapter_tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .primary[_ngcontent-%COMP%]{padding:.5em .75em;text-decoration:none;color:#fff;margin:0 0 0 auto;border-radius:0 .25em .25em 0}.previewable-topic-notice[_ngcontent-%COMP%]{color:orange;font-weight:700}"]})}}return t})();export{Te as BookPreviewComponent};

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.