1import{a as N}from"./chunk-53VQFLC6.js";import{a as A}from"./chunk-LNIJ2HUA.js";import"./chunk-J3XPSEKY.js";import"./chunk-NJ52MWOP.js";import"./chunk-4BUZVP2S.js";import"./chunk-X4SHYDUW.js";import"./chunk-LZ4IU7MX.js";import"./chunk-K5MOEJHJ.js";import"./chunk-DMOUHCSB.js";import"./chunk-XOCNTRU3.js";import"./chunk-VEN27BFE.js";import"./chunk-4YL5A6AE.js";import"./chunk-RPOZN3D3.js";import{a as B}from"./chunk-NWUPVDF4.js";import"./chunk-XV5FY7WU.js";import"./chunk-EH3ZA36I.js";import"./chunk-S5HQIT7E.js";import"./chunk-GD7JF4J3.js";import"./chunk-Y3MPSEMC.js";import{a as D}from"./chunk-JB47OGZK.js";import"./chunk-YZUIGZAI.js";import{d as x,m as S}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{a as M}from"./chunk-ZUSG72XP.js";import"./chunk-HJWJPZ5W.js";import{c as T}from"./chunk-LQY2VBIU.js";import"./chunk-WRBQWUEI.js";import{k as _}from"./chunk-LRSFZQSP.js";import{Ab as h,Ac as n,Bb as b,Cb as u,Pb as g,Ra as l,Z as a,bd as y,eb as C,m as f,qa as d,sb as s,sc as w,sd as P,tc as v,ub as c,zb as m}from"./chunk-IXJZIWF6.js";import"./chunk-IZQOVDKO.js";import"./chunk-6IZLXKZM.js";function O(t,p){t&1&&u(0,"nbm-course-access-code",1),t&2&&m("productPage",!0)}function E(t,p){if(t&1&&u(0,"nbm-webinar-page-display",2),t&2){let e=g();m("webinar",e)}}function G(t,p){if(t&1&&(h(0,"nbm-site-page",0),w(1,"contentTypeSlug"),s(2,O,1,1,"nbm-course-access-code",1),s(3,E,1,1,"nbm-webinar-page-display",2),b()),t&2){let e=p,i=g();m("title",e.name)("titleBgClass","bg-gradient bg-"+v(1,8,e))("description",i.metaDescription())("fullWidth",!0)("noBottomMargin",!0)("hideTitle",!0),l(2),c(i.requiresAccessCode()?2:-1),l(),c(i.requiresAccessCode()?-1:3)}}var U=(()=>{class t{constructor(){this.route=a(_),this.googleTagManagerService=a(T),this.jsonLdService=a(M),this.currencyPipe=new y("en-GB","GBP"),this.webinar=P(this.route.data.pipe(f(e=>e.webinar))),this.minPrice=n(()=>{let e=this.webinar();if(!(!e||!e.variants||e.variants.length===0))return Math.min(...e.variants.map(i=>i.price))}),this.maxPrice=n(()=>{let e=this.webinar();if(!(!e||!e.variants||e.variants.length===0))return Math.max(...e.variants.map(i=>i.price))}),this.metaDescription=n(()=>{let e=this.webinar();if(!e)return"";if("locked"in e)return"NB Medical presents our bespoke course";let i=e.contentTypes?.[0]?.slug,o=i?N[i]:void 0;if(o)return o;let r=this.minPrice();return`NB Medical presents our ${e.name}. Available from ${this.currencyPipe.transform(r)}`}),this.requiresAccessCode=n(()=>{let e=this.webinar();return e?"locked"in e:!1}),d(()=>{let e=this.webinar();e&&this.googleTagManagerService.sendDetailView(e,x.Webinars)}),d(()=>{let e=this.webinar();!e||"locked"in e||this.setJsonLdData(e)})}setJsonLdData(e){this.jsonLdService.insertSchema({"@context":"http://schema.org/","@type":"Course",name:e.name,image:"https://www.nbmedical.com/assets/img/logo.png",description:e.plainSummary,provider:{"@type":"Organization",name:"NB Medical Education",url:"https://www.nbmedical.com"},hasCourseInstance:[{"@type":"CourseInstance",courseMode:["distance learning","Online"],offers:{"@type":"Offer",price:this.maxPrice(),priceCurrency:"GBP"}}]},"webinar")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=C({type:t,selectors:[["nbm-online-courses-page"]],decls:1,vars:1,consts:[["titleTextClass","text-white",3,"title","titleBgClass","description","fullWidth","noBottomMargin","hideTitle"],[3,"productPage"],[3,"webinar"]],template:function(i,o){if(i&1&&s(0,G,4,10,"nbm-site-page",0),i&2){let r;c((r=o.webinar())?0:-1,r)}},dependencies:[S,B,A,D],encapsulation:2})}}return t})();export{U as OnlineCoursesPageComponent};
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.